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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45502c36194120822d47a489bb35792d7a4b090d | 754 | py | Python | matplotlib/axessetting.py | mk43/python-practice-project | 4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e | [
"Apache-2.0"
] | 7 | 2018-05-29T07:14:22.000Z | 2020-03-05T06:45:04.000Z | matplotlib/axessetting.py | mk43/python-practice-project | 4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e | [
"Apache-2.0"
] | null | null | null | matplotlib/axessetting.py | mk43/python-practice-project | 4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e | [
"Apache-2.0"
] | 5 | 2018-11-08T04:03:48.000Z | 2020-03-05T06:45:06.000Z | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-10, 10, 40)
y1 = 10 * x + 50
y2 = x**2
plt.figure()
plt.plot(x, y1, 'b-')
plt.plot(x, y2, 'b--')
plt.xlim((-20, 20))
plt.ylim((-60, 160))
plt.xlabel('I am x')
plt.ylabel('I am y')
plt.xticks(np.linspace(-20, 20, 5))
plt.yticks([0, 50, 100], [r'$bad$... | 24.322581 | 60 | 0.690981 | 119 | 754 | 4.294118 | 0.436975 | 0.156556 | 0.031311 | 0.101761 | 0.227006 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053857 | 0.088859 | 754 | 31 | 61 | 24.322581 | 0.689956 | 0 | 0 | 0 | 0 | 0 | 0.104636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4552844d1989cd409ab97253e0c1d21d415c08b6 | 1,943 | py | Python | Xgam/__init__.py | aurelio-amerio/Xgam | fb65ed009bb35984eadd0c576aa385ca3702c8ce | [
"MIT"
] | 1 | 2021-06-14T20:27:30.000Z | 2021-06-14T20:27:30.000Z | Xgam/__init__.py | aurelio-amerio/Xgam | fb65ed009bb35984eadd0c576aa385ca3702c8ce | [
"MIT"
] | null | null | null | Xgam/__init__.py | aurelio-amerio/Xgam | fb65ed009bb35984eadd0c576aa385ca3702c8ce | [
"MIT"
] | 1 | 2021-06-14T20:27:55.000Z | 2021-06-14T20:27:55.000Z | #!/usr/bin/env python #
# #
# Autor: Michela Negro, GSFC/CRESST/UMBC . #
# On behalf of the Fermi-LAT Collaboration. ... | 36.660377 | 80 | 0.507463 | 230 | 1,943 | 4.086957 | 0.452174 | 0.042553 | 0.053191 | 0.058511 | 0.188298 | 0.044681 | 0 | 0 | 0 | 0 | 0 | 0.004747 | 0.34946 | 1,943 | 52 | 81 | 37.365385 | 0.738924 | 0.468863 | 0 | 0.083333 | 0 | 0 | 0.224299 | 0.03271 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4555f8bdea823e3c6bf72f128d96fb3a61fb035f | 6,542 | py | Python | day_10.py | JeffHanna/Advent_of_Code_2018 | a47f7c5dc1ef28df41a26a21fc16626cb2a9c922 | [
"MIT"
] | null | null | null | day_10.py | JeffHanna/Advent_of_Code_2018 | a47f7c5dc1ef28df41a26a21fc16626cb2a9c922 | [
"MIT"
] | null | null | null | day_10.py | JeffHanna/Advent_of_Code_2018 | a47f7c5dc1ef28df41a26a21fc16626cb2a9c922 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
--- Day 10: The Stars Align ---
It's no use; your navigation system simply isn't capable of providing walking directions in the arctic circle, and certainly not in 1018.
The Elves suggest an alternative. In times like these, North Pole rescue operations will arrange points of light in the s... | 32.068627 | 419 | 0.486854 | 790 | 6,542 | 3.943038 | 0.298734 | 0.046228 | 0.019262 | 0.034671 | 0.097271 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030822 | 0.151941 | 6,542 | 203 | 420 | 32.226601 | 0.530642 | 0.752369 | 0 | 0 | 0 | 0 | 0.081316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.181818 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45563edf7177293ae810f1142fc2457d7d0c9f98 | 170,658 | py | Python | TACT.py | CFARS/TACT | 1b2bbf1f9d0a45cff232ec447286419faac66b58 | [
"BSD-3-Clause"
] | 1 | 2022-03-23T11:50:53.000Z | 2022-03-23T11:50:53.000Z | TACT.py | CFARS/TACT | 1b2bbf1f9d0a45cff232ec447286419faac66b58 | [
"BSD-3-Clause"
] | 4 | 2021-12-18T04:01:41.000Z | 2022-03-10T16:13:18.000Z | TACT.py | CFARS/TACT | 1b2bbf1f9d0a45cff232ec447286419faac66b58 | [
"BSD-3-Clause"
] | null | null | null | """
This is the main script to analyze projects without an NDA in place.
Authors: Nikhil Kondabala, Alexandra Arntsen, Andrew Black, Barrett Goudeau, Nigel Swytink-Binnema, Nicolas Jolin
Updated: 7/01/2021
Example command line execution:
python TACT.py -in /Users/aearntsen/cfarsMASTER/CFARSPhase3/test/518Tower... | 55.211258 | 372 | 0.607127 | 20,203 | 170,658 | 4.846854 | 0.054447 | 0.015523 | 0.033701 | 0.020711 | 0.733673 | 0.688953 | 0.636186 | 0.602935 | 0.569541 | 0.546042 | 0 | 0.015021 | 0.282993 | 170,658 | 3,090 | 373 | 55.229126 | 0.785205 | 0.12818 | 0 | 0.488698 | 0 | 0.000904 | 0.135432 | 0.010268 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015823 | false | 0.027577 | 0.026221 | 0.000452 | 0.057414 | 0.055154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4557176f3d49e4358253305342218dd4750b9adc | 1,343 | py | Python | FileStorage/language/LanguagePack.py | Thiefxt/FileStorage | db2882b2ea861f4412cb453edef6439501b13705 | [
"MIT"
] | 1 | 2020-07-15T10:02:40.000Z | 2020-07-15T10:02:40.000Z | FileStorage/language/LanguagePack.py | Thiefxt/FileStorage | db2882b2ea861f4412cb453edef6439501b13705 | [
"MIT"
] | null | null | null | FileStorage/language/LanguagePack.py | Thiefxt/FileStorage | db2882b2ea861f4412cb453edef6439501b13705 | [
"MIT"
] | null | null | null | """
@Author : xiaotao
@Email : 18773993654@163.com
@Lost modifid : 2020/4/24 10:18
@Filename : LanguagePack.py
@Description :
@Software : PyCharm
"""
class RET:
"""
语言类包
"""
OK = "200"
DBERR = "501"
NODATA = "462"
DATAEXIST = "433"
DATAERR = "499"
REQERR = "521"
... | 19.463768 | 52 | 0.531646 | 155 | 1,343 | 4.522581 | 0.567742 | 0.049929 | 0.042796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071277 | 0.300074 | 1,343 | 68 | 53 | 19.75 | 0.674468 | 0.204021 | 0 | 0.046512 | 0 | 0 | 0.11943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0 | 0 | 0.488372 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4558b0a8efff5ece908e59c6b9303248612636c0 | 2,427 | py | Python | validate_binary_tree/solution_2.py | nunezpaul/practice_problems | 22449c014046b702a4284bb66548f3a70c265622 | [
"MIT"
] | null | null | null | validate_binary_tree/solution_2.py | nunezpaul/practice_problems | 22449c014046b702a4284bb66548f3a70c265622 | [
"MIT"
] | null | null | null | validate_binary_tree/solution_2.py | nunezpaul/practice_problems | 22449c014046b702a4284bb66548f3a70c265622 | [
"MIT"
] | null | null | null | class TreeNode(object):
def __str__(self):
left = self.left.val if self.left else 'N'
right = self.right.val if self.right else 'N'
return "{left} {val} {right}".format(val=self.val, left=left, right=right)
def __init__(self, val):
self.val = val
self.right = None
... | 22.682243 | 82 | 0.651834 | 337 | 2,427 | 4.468843 | 0.160237 | 0.113546 | 0.060425 | 0.045153 | 0.555113 | 0.439575 | 0.409031 | 0.363878 | 0.363878 | 0.363878 | 0 | 0.025405 | 0.237742 | 2,427 | 107 | 83 | 22.682243 | 0.788649 | 0.011949 | 0 | 0.369863 | 0 | 0 | 0.012516 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 1 | 0.123288 | false | 0 | 0 | 0 | 0.246575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
455cfcd1a4533c63cce20863058bc3230fd98394 | 2,076 | py | Python | aoc_cqkh42/year_2020/day_12.py | cqkh42/advent-of-code | bcf31cf8973a5b6d67492c412dce10df742e04d1 | [
"MIT"
] | null | null | null | aoc_cqkh42/year_2020/day_12.py | cqkh42/advent-of-code | bcf31cf8973a5b6d67492c412dce10df742e04d1 | [
"MIT"
] | null | null | null | aoc_cqkh42/year_2020/day_12.py | cqkh42/advent-of-code | bcf31cf8973a5b6d67492c412dce10df742e04d1 | [
"MIT"
] | null | null | null | """
Solutions for day 12 of 2020's Advent of Code
"""
from typing import Tuple
def _rotate_right(n, e) -> Tuple[int, int]:
return -e, n
def _rotate_left(n, e) -> Tuple[int, int]:
return e, -n
def part_a(data) -> int:
"""
Solution for part a
Parameters
----------
data: str
Return... | 21.625 | 65 | 0.461464 | 255 | 2,076 | 3.627451 | 0.207843 | 0.108108 | 0.138378 | 0.073514 | 0.765405 | 0.568649 | 0.456216 | 0.456216 | 0.456216 | 0.404324 | 0 | 0.021395 | 0.3921 | 2,076 | 95 | 66 | 21.852632 | 0.711569 | 0.100674 | 0 | 0.551724 | 0 | 0 | 0.012936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.017241 | 0.034483 | 0.155172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
455db22f99db07331fddab80325507e7476dc805 | 3,786 | py | Python | src/main/resources/python/stack.py | VAlgoLang/ManimDSLCompiler | 87020d135fa7360aaeccf7e2b9a453f6ffb0fb33 | [
"BSD-3-Clause"
] | 19 | 2020-11-05T13:55:45.000Z | 2021-01-08T13:19:40.000Z | src/main/resources/python/stack.py | VAlgoLang/ManimDSLCompiler | 87020d135fa7360aaeccf7e2b9a453f6ffb0fb33 | [
"BSD-3-Clause"
] | 29 | 2020-10-13T10:29:21.000Z | 2021-01-10T18:34:06.000Z | src/main/resources/python/stack.py | VAlgoLang/ManimDSLCompiler | 87020d135fa7360aaeccf7e2b9a453f6ffb0fb33 | [
"BSD-3-Clause"
] | 6 | 2021-03-20T07:04:11.000Z | 2022-03-22T02:39:03.000Z | class Stack(DataStructure, ABC):
def __init__(self, ul, ur, ll, lr, aligned_edge, color=WHITE, text_color=WHITE, text_weight=NORMAL,
font="Times New Roman"):
super().__init__(ul, ur, ll, lr, aligned_edge, color, text_color, text_weight, font)
self.empty = None
def create_init(s... | 46.740741 | 120 | 0.626519 | 513 | 3,786 | 4.423002 | 0.192982 | 0.040106 | 0.033936 | 0.019392 | 0.379022 | 0.304099 | 0.304099 | 0.285148 | 0.285148 | 0.227413 | 0 | 0.014376 | 0.246698 | 3,786 | 80 | 121 | 47.325 | 0.781206 | 0.011094 | 0 | 0.169014 | 0 | 0 | 0.016301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112676 | false | 0 | 0 | 0.014085 | 0.239437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
455ecf77b284ae23c05aaa297b5a0ed55da0477f | 1,519 | py | Python | notebooks_for_development/phase_fold_bh_peg.py | mwanakijiji/rrlfe2 | 0637b348b8d3e54ff34c56caa8b4c6fdac1c699e | [
"MIT"
] | null | null | null | notebooks_for_development/phase_fold_bh_peg.py | mwanakijiji/rrlfe2 | 0637b348b8d3e54ff34c56caa8b4c6fdac1c699e | [
"MIT"
] | null | null | null | notebooks_for_development/phase_fold_bh_peg.py | mwanakijiji/rrlfe2 | 0637b348b8d3e54ff34c56caa8b4c6fdac1c699e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# Reads in photometry from different sources, normalizes them, and puts them
# onto a BJD time scale
# Created 2021 Dec. 28 by E.S.
import numpy as np
import pandas as pd
from astropy.time import Time
import matplotlib.pyplot as plt
from sklearn.preprocessing import MinMaxScaler... | 33.021739 | 120 | 0.75181 | 251 | 1,519 | 4.290837 | 0.474104 | 0.132776 | 0.120706 | 0.059424 | 0.181987 | 0.057567 | 0.057567 | 0 | 0 | 0 | 0 | 0.021545 | 0.113891 | 1,519 | 45 | 121 | 33.755556 | 0.778603 | 0.20079 | 0 | 0 | 0 | 0 | 0.217789 | 0.088944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
456020c6f80bf546826faf9d3db7db5ef4399eed | 4,012 | py | Python | history/predict.py | Snipa22/pytrader | 5a730435332a159e68ba13ec01b4b7bfa380ec82 | [
"MIT"
] | 3 | 2016-04-11T13:51:07.000Z | 2022-03-10T15:42:24.000Z | history/predict.py | Snipa22/pytrader | 5a730435332a159e68ba13ec01b4b7bfa380ec82 | [
"MIT"
] | null | null | null | history/predict.py | Snipa22/pytrader | 5a730435332a159e68ba13ec01b4b7bfa380ec82 | [
"MIT"
] | null | null | null | from history.tools import normalization, filter_by_mins, create_sample_row
from history.models import Price, PredictionTest
import time
from history.tools import print_and_log
def predict_v2(ticker,hidden_layers=15,NUM_MINUTES_BACK=1000,NUM_EPOCHS=1000,granularity_minutes=15,datasetinputs=5,learningrate=0.005,bias=F... | 48.337349 | 380 | 0.692423 | 532 | 4,012 | 4.943609 | 0.255639 | 0.03346 | 0.034221 | 0.04943 | 0.242586 | 0.201521 | 0.093536 | 0.093536 | 0.093536 | 0.093536 | 0 | 0.016886 | 0.202891 | 4,012 | 82 | 381 | 48.926829 | 0.805503 | 0.021934 | 0 | 0.029851 | 0 | 0.029851 | 0.096988 | 0.010975 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0.014925 | 0.059701 | 0 | 0.089552 | 0.059701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
456368c28972d08c5777b27f3941bd69bf9f4b4c | 2,786 | py | Python | rl_teacher/selector.py | oguzserbetci/rl-teacher-atari | fd6c399921d347333d7c5b4b12c63f1a955cea5c | [
"MIT"
] | null | null | null | rl_teacher/selector.py | oguzserbetci/rl-teacher-atari | fd6c399921d347333d7c5b4b12c63f1a955cea5c | [
"MIT"
] | 5 | 2018-10-15T11:52:05.000Z | 2018-10-30T12:58:53.000Z | rl_teacher/selector.py | oguzserbetci/rl-teacher-atari | fd6c399921d347333d7c5b4b12c63f1a955cea5c | [
"MIT"
] | null | null | null | from rl_teacher.segment_sampling import segments_from_rand_rollout, sample_segment_from_path, basic_segment_from_null_action
import numpy as np
class Selector(object):
def __init__(self):
print("Selector initialized")
def select(self, segments):
print("Selector.select()")
return segmen... | 37.648649 | 169 | 0.66224 | 348 | 2,786 | 5.014368 | 0.321839 | 0.036676 | 0.058453 | 0.048138 | 0.209169 | 0.187393 | 0.187393 | 0.187393 | 0.139255 | 0.139255 | 0 | 0.008057 | 0.242642 | 2,786 | 73 | 170 | 38.164384 | 0.818957 | 0.072146 | 0 | 0.259259 | 0 | 0 | 0.060924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.037037 | 0.018519 | 0.351852 | 0.12963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45636a74d98ccc7ab3ff22be9c83602f958559c0 | 9,474 | py | Python | pynet/models/vae/vunet.py | CorentinAmbroise/pynet | c353e5f80e75f785a460422ab7b39fa8f776991a | [
"CECILL-B"
] | null | null | null | pynet/models/vae/vunet.py | CorentinAmbroise/pynet | c353e5f80e75f785a460422ab7b39fa8f776991a | [
"CECILL-B"
] | null | null | null | pynet/models/vae/vunet.py | CorentinAmbroise/pynet | c353e5f80e75f785a460422ab7b39fa8f776991a | [
"CECILL-B"
] | null | null | null | # -*- coding: utf-8 -*-
##########################################################################
# NSAp - Copyright (C) CEA, 2020
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
#... | 34.830882 | 79 | 0.576947 | 1,212 | 9,474 | 4.378713 | 0.237624 | 0.025061 | 0.007537 | 0.01319 | 0.140946 | 0.10929 | 0.100622 | 0.084794 | 0.084794 | 0.07085 | 0 | 0.010666 | 0.307262 | 9,474 | 271 | 80 | 34.95941 | 0.797958 | 0.329533 | 0 | 0.081481 | 0 | 0 | 0.088324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051852 | false | 0 | 0.074074 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
456499cb6f4f56978c9d9e33ec8c47f7702e105f | 1,161 | py | Python | api/subparts/alpha/alpha.py | schana/swagger-based-api | 964cd549e73a81a0a72037cb8f75271708d061db | [
"Apache-2.0"
] | null | null | null | api/subparts/alpha/alpha.py | schana/swagger-based-api | 964cd549e73a81a0a72037cb8f75271708d061db | [
"Apache-2.0"
] | null | null | null | api/subparts/alpha/alpha.py | schana/swagger-based-api | 964cd549e73a81a0a72037cb8f75271708d061db | [
"Apache-2.0"
] | null | null | null | import collections
import flask_restplus
from flask_restplus import fields
from flask_restplus import reqparse
from api import util
api = util.build_api('alpha', __name__, url_prefix='/subparts/alpha')
v1 = util.build_namespace(api, 'v1', description='Version 1')
AlphaSpec = collections.namedtuple('Alpha', ['x_and_... | 32.25 | 77 | 0.707149 | 166 | 1,161 | 4.728916 | 0.439759 | 0.084076 | 0.019108 | 0.084076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009109 | 0.149009 | 1,161 | 35 | 78 | 33.171429 | 0.785425 | 0 | 0 | 0 | 0 | 0 | 0.12317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
456b9d36efdf097837bfdedc583dac092dcbd61c | 4,927 | py | Python | EDGAR/Generic_Parser.py | laurakchen/Intended-Use-Of_Proceeds | 4d958fbeddb3eb20b6a3ab1166ad918673408ddc | [
"Apache-2.0"
] | null | null | null | EDGAR/Generic_Parser.py | laurakchen/Intended-Use-Of_Proceeds | 4d958fbeddb3eb20b6a3ab1166ad918673408ddc | [
"Apache-2.0"
] | null | null | null | EDGAR/Generic_Parser.py | laurakchen/Intended-Use-Of_Proceeds | 4d958fbeddb3eb20b6a3ab1166ad918673408ddc | [
"Apache-2.0"
] | 4 | 2021-01-10T02:22:24.000Z | 2021-01-29T07:01:16.000Z | """
Program to provide generic parsing for all files in user-specified directory.
The program assumes the input files have been scrubbed,
i.e., HTML, ASCII-encoded binary, and any other embedded document structures that are not
intended to be analyzed have been deleted from the file.
Dependencies:
Pytho... | 38.795276 | 104 | 0.629592 | 645 | 4,927 | 4.683721 | 0.336434 | 0.047666 | 0.050645 | 0.039722 | 0.102615 | 0.03906 | 0 | 0 | 0 | 0 | 0 | 0.030213 | 0.247615 | 4,927 | 126 | 105 | 39.103175 | 0.784192 | 0.331642 | 0 | 0 | 0 | 0 | 0.191929 | 0.090562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.101449 | 0 | 0.144928 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
456d5f84b2506b512723f3a37ab5b953c8eded00 | 4,882 | py | Python | Code/techne_library_code.py | uk-gov-mirror/nationalarchives.TechneTraining | aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a | [
"MIT"
] | null | null | null | Code/techne_library_code.py | uk-gov-mirror/nationalarchives.TechneTraining | aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a | [
"MIT"
] | null | null | null | Code/techne_library_code.py | uk-gov-mirror/nationalarchives.TechneTraining | aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a | [
"MIT"
] | null | null | null | import os
from sklearn.model_selection import train_test_split
import numpy as np
from operator import itemgetter
from math import log
import random
from gensim.summarization.summarizer import summarize
from sklearn.naive_bayes import BernoulliNB
from sklearn.metrics import accuracy_score
from sklearn.metrics import co... | 33.902778 | 140 | 0.670012 | 704 | 4,882 | 4.396307 | 0.255682 | 0.028433 | 0.012924 | 0.024233 | 0.107593 | 0.087884 | 0.03231 | 0.01874 | 0 | 0 | 0 | 0.010694 | 0.214666 | 4,882 | 143 | 141 | 34.13986 | 0.796557 | 0.031135 | 0 | 0.071429 | 0 | 0 | 0.011844 | 0.004865 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103175 | false | 0 | 0.134921 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
456e07cc6bba172145470a41d9133e6c7f291230 | 2,701 | py | Python | sensor/src/upload_metrics.py | tubone24/raspi_plant_checker | e80ccd61c50cbba883f4af8fafafc0404bdf8978 | [
"MIT"
] | null | null | null | sensor/src/upload_metrics.py | tubone24/raspi_plant_checker | e80ccd61c50cbba883f4af8fafafc0404bdf8978 | [
"MIT"
] | null | null | null | sensor/src/upload_metrics.py | tubone24/raspi_plant_checker | e80ccd61c50cbba883f4af8fafafc0404bdf8978 | [
"MIT"
] | 1 | 2021-12-03T05:28:20.000Z | 2021-12-03T05:28:20.000Z | from gql import gql, Client
from gql.transport.requests import RequestsHTTPTransport
import requests
from datetime import datetime, timedelta, timezone
import os
from os.path import join, dirname
from dotenv import load_dotenv
dotenv_path = join(dirname(__file__), "../../", '.env')
load_dotenv(dotenv_path)
RASPI_URL ... | 28.135417 | 90 | 0.583858 | 277 | 2,701 | 5.451264 | 0.306859 | 0.023841 | 0.023841 | 0.02649 | 0.460927 | 0.328477 | 0.328477 | 0.328477 | 0.328477 | 0.328477 | 0 | 0.00159 | 0.30137 | 2,701 | 95 | 91 | 28.431579 | 0.798622 | 0 | 0 | 0.42623 | 0 | 0 | 0.112595 | 0.020038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.114754 | 0 | 0.196721 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4571c0f5a311380362a2ed94f464b2d2bf10f14f | 1,162 | py | Python | project/concept_recog.py | hskang9/HelloWorld | 50b09f710176f082c5dac955bc7ea3578a42bd40 | [
"MIT"
] | null | null | null | project/concept_recog.py | hskang9/HelloWorld | 50b09f710176f082c5dac955bc7ea3578a42bd40 | [
"MIT"
] | null | null | null | project/concept_recog.py | hskang9/HelloWorld | 50b09f710176f082c5dac955bc7ea3578a42bd40 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import json
from watson_developer_cloud import NaturalLanguageUnderstandingV1 as nlu
import watson_developer_cloud.natural_language_understanding.features.v1 \
as Features
def concept_recog(path='./test.txt'):
#with open(path, 'rt', encoding='utf-8') as f:
# inputs = f.read()
... | 28.341463 | 74 | 0.605852 | 128 | 1,162 | 5.3125 | 0.539063 | 0.088235 | 0.164706 | 0.029412 | 0.041176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043581 | 0.269363 | 1,162 | 40 | 75 | 29.05 | 0.757362 | 0.113597 | 0 | 0 | 0 | 0 | 0.15918 | 0.068359 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.033333 | 0.1 | 0 | 0.166667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4573153b3fe512c2a5e16ccae54eb2974cf42494 | 6,242 | py | Python | i7app/__main__.py | eblade/images7 | 7fa7c961e046a178243c866fd1f3b82f7e58c73d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | i7app/__main__.py | eblade/images7 | 7fa7c961e046a178243c866fd1f3b82f7e58c73d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | i7app/__main__.py | eblade/images7 | 7fa7c961e046a178243c866fd1f3b82f7e58c73d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import os
import zmq
import time
import logging
from PyQt5 import QtWidgets as W, QtCore as C, QtGui as G
from qtzevents.bus import Pub, Push
from qtzevents.background import Background
from images7.config import Config
from images7.system import System
from .grid import ThumbView
... | 27.257642 | 103 | 0.630567 | 723 | 6,242 | 5.278008 | 0.272476 | 0.014413 | 0.023847 | 0.023061 | 0.138889 | 0.037212 | 0.037212 | 0.018868 | 0.018868 | 0 | 0 | 0.006892 | 0.256168 | 6,242 | 228 | 104 | 27.377193 | 0.81499 | 0.009773 | 0 | 0.132948 | 0 | 0 | 0.061347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121387 | false | 0 | 0.17341 | 0 | 0.346821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45754cc8939f2ca8f5551df60c1a102df61680b5 | 2,049 | py | Python | week01/day01/shopping.py | GsQxZz/fullstack | 9010c0c69aec901fd0e0b4434445e822f682c367 | [
"Apache-2.0"
] | null | null | null | week01/day01/shopping.py | GsQxZz/fullstack | 9010c0c69aec901fd0e0b4434445e822f682c367 | [
"Apache-2.0"
] | null | null | null | week01/day01/shopping.py | GsQxZz/fullstack | 9010c0c69aec901fd0e0b4434445e822f682c367 | [
"Apache-2.0"
] | null | null | null |
iphone_price = 5800
mac_price = 9000
coffee_price = 32
python_price = 80
bicyle_price = 1500
list = []
salary = int(input("Please input your salary:"))
print("**********欢迎来到购物车系统**********")
while True:
print("1. iPhone 11 ————%d元" % iphone_price)
print("2. Mac book ————%d" % mac_price)
print("3. cof... | 28.859155 | 60 | 0.537823 | 244 | 2,049 | 4.495902 | 0.241803 | 0.070191 | 0.068368 | 0.077484 | 0.315406 | 0.273473 | 0.273473 | 0.273473 | 0.273473 | 0.273473 | 0 | 0.024045 | 0.309907 | 2,049 | 71 | 61 | 28.859155 | 0.737624 | 0 | 0 | 0.209677 | 0 | 0 | 0.219619 | 0.070278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.354839 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45756f7f3335ea9abab94df669ff19ff707b1db9 | 1,079 | py | Python | test/test_edit_contact.py | Zaichkov/python_training | be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a | [
"Apache-2.0"
] | null | null | null | test/test_edit_contact.py | Zaichkov/python_training | be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a | [
"Apache-2.0"
] | null | null | null | test/test_edit_contact.py | Zaichkov/python_training | be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
import random
def test_edit_some_contact(app, orm, check_ui):
if len(orm.get_contact_list()) == 0:
app.contact.create(Contact(firstname="St_Claus"))
old_contacts = orm.get_contact_list()
contact_for_edit = random.choice(old_contacts)
contact = Contact(firstnam... | 46.913043 | 107 | 0.720111 | 154 | 1,079 | 4.701299 | 0.331169 | 0.075967 | 0.077348 | 0.077348 | 0.212707 | 0.143646 | 0 | 0 | 0 | 0 | 0 | 0.007778 | 0.165894 | 1,079 | 22 | 108 | 49.045455 | 0.796667 | 0 | 0 | 0 | 0 | 0 | 0.091752 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
457919564bdf80b71f716bf686e0ed54de0bb593 | 9,424 | py | Python | pytype/overlays/typed_dict.py | hboshnak/pytype | b6b6448dc562a7200326c92e75efeed203984e16 | [
"Apache-2.0"
] | null | null | null | pytype/overlays/typed_dict.py | hboshnak/pytype | b6b6448dc562a7200326c92e75efeed203984e16 | [
"Apache-2.0"
] | null | null | null | pytype/overlays/typed_dict.py | hboshnak/pytype | b6b6448dc562a7200326c92e75efeed203984e16 | [
"Apache-2.0"
] | null | null | null | """Implementation of TypedDict."""
import dataclasses
from typing import Any, Dict, Set
from pytype.abstract import abstract
from pytype.abstract import abstract_utils
from pytype.abstract import function
from pytype.overlays import classgen
from pytype.pytd import pytd
@dataclasses.dataclass
class TypedDictProper... | 34.520147 | 80 | 0.694822 | 1,344 | 9,424 | 4.65253 | 0.194196 | 0.031345 | 0.02047 | 0.028146 | 0.303534 | 0.225972 | 0.184391 | 0.168079 | 0.168079 | 0.149048 | 0 | 0.0004 | 0.205008 | 9,424 | 272 | 81 | 34.647059 | 0.834223 | 0.170204 | 0 | 0.221053 | 0 | 0 | 0.049864 | 0.006201 | 0 | 0 | 0 | 0 | 0.005263 | 1 | 0.152632 | false | 0 | 0.042105 | 0.036842 | 0.373684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4579450f7ab9dcd55c2527f2db1b882e121fbb78 | 4,962 | py | Python | esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py | cffbots/ESMValTool | a9b6592a02f2085634a214ff5f36a736fa18ff47 | [
"Apache-2.0"
] | 148 | 2017-02-07T13:16:03.000Z | 2022-03-26T02:21:56.000Z | esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py | cffbots/ESMValTool | a9b6592a02f2085634a214ff5f36a736fa18ff47 | [
"Apache-2.0"
] | 2,026 | 2017-02-03T12:57:13.000Z | 2022-03-31T15:11:51.000Z | esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py | cffbots/ESMValTool | a9b6592a02f2085634a214ff5f36a736fa18ff47 | [
"Apache-2.0"
] | 113 | 2017-01-27T13:10:19.000Z | 2022-02-03T13:42:11.000Z | """ESMValTool CMORizer for APHRODITE Monsoon Asia (APHRO-MA) data.
Tier
Tier 3: restricted dataset.
Source
http://aphrodite.st.hirosaki-u.ac.jp/download/
Last access
20200306
Download and processing instructions
Register at
http://aphrodite.st.hirosaki-u.ac.jp/download/create/
Download the ... | 33.08 | 77 | 0.620919 | 598 | 4,962 | 4.964883 | 0.386288 | 0.025935 | 0.018188 | 0.02324 | 0.274166 | 0.228697 | 0.185248 | 0.175817 | 0.129336 | 0.129336 | 0 | 0.046963 | 0.283353 | 4,962 | 149 | 78 | 33.302013 | 0.787683 | 0.403265 | 0 | 0.235294 | 0 | 0 | 0.11376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
457e2b38d8a451c8e775c1c394ef7b2670d5e8bd | 5,074 | py | Python | tests/walkers/enum_values_test.py | yyang08/swagger-spec-compatibility | e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe | [
"Apache-2.0"
] | 18 | 2019-04-30T21:07:30.000Z | 2021-12-16T17:56:08.000Z | tests/walkers/enum_values_test.py | yyang08/swagger-spec-compatibility | e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe | [
"Apache-2.0"
] | 30 | 2019-02-26T11:25:44.000Z | 2021-04-16T00:12:11.000Z | tests/walkers/enum_values_test.py | yyang08/swagger-spec-compatibility | e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe | [
"Apache-2.0"
] | 6 | 2019-02-25T22:12:29.000Z | 2020-12-23T00:24:48.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from copy import deepcopy
import mock
import pytest
from swagger_spec_compatibility.spec_utils import load_spec_from_spec_dict
from swagger_spec_compatibility.util import Entit... | 38.732824 | 136 | 0.522862 | 467 | 5,074 | 5.379015 | 0.188437 | 0.038217 | 0.055732 | 0.055732 | 0.52707 | 0.407245 | 0.364252 | 0.343551 | 0.282643 | 0.282643 | 0 | 0.013383 | 0.307844 | 5,074 | 130 | 137 | 39.030769 | 0.701879 | 0.004139 | 0 | 0.252101 | 0 | 0 | 0.192635 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 1 | 0.02521 | false | 0 | 0.092437 | 0 | 0.117647 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
458209565dea8013a3f4eb68bbd3789f17400e4a | 2,458 | py | Python | igvjs/main.py | Sparktx-Data-Science/igv.js-flask | 1fc3a6623b6a747830ea0b4c3636adb4e6134c9f | [
"MIT"
] | 25 | 2017-07-20T07:41:30.000Z | 2021-12-30T15:49:03.000Z | igvjs/main.py | kkapuria3/igv.js-flask | f3cde4547eaa29133535f95501778d9fe492532d | [
"MIT"
] | 10 | 2017-09-07T23:30:26.000Z | 2021-08-06T05:08:32.000Z | igvjs/main.py | kkapuria3/igv.js-flask | f3cde4547eaa29133535f95501778d9fe492532d | [
"MIT"
] | 12 | 2017-10-05T15:00:13.000Z | 2021-12-30T15:49:07.000Z | import requests
import re
import os
from flask import Response, request, abort, render_template, url_for, Blueprint
from igvjs._config import basedir
seen_tokens = set()
igvjs_blueprint = Blueprint('igvjs', __name__)
# give blueprint access to app config
@igvjs_blueprint.record
def record_igvjs(setup_state):
igv... | 35.114286 | 94 | 0.634662 | 321 | 2,458 | 4.707165 | 0.376947 | 0.083388 | 0.066181 | 0.051621 | 0.064196 | 0.045003 | 0.045003 | 0 | 0 | 0 | 0 | 0.010707 | 0.240033 | 2,458 | 69 | 95 | 35.623188 | 0.79818 | 0.021155 | 0 | 0.034483 | 0 | 0 | 0.12448 | 0.009992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0.017241 | 0.086207 | 0.017241 | 0.275862 | 0.155172 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4584c9acdb19bbdce86f86b2d488f787d8a6387a | 5,068 | py | Python | kraken/shut_down/common_shut_down_func.py | Sau1506mya/kraken-1 | 4f7616a1508e0f1f64356512aeda265e1dce5144 | [
"Apache-2.0"
] | 83 | 2021-01-15T10:42:22.000Z | 2022-03-23T16:01:22.000Z | kraken/shut_down/common_shut_down_func.py | Sau1506mya/kraken-1 | 4f7616a1508e0f1f64356512aeda265e1dce5144 | [
"Apache-2.0"
] | 126 | 2021-01-19T07:41:06.000Z | 2022-03-31T16:27:02.000Z | kraken/shut_down/common_shut_down_func.py | Sau1506mya/kraken-1 | 4f7616a1508e0f1f64356512aeda265e1dce5144 | [
"Apache-2.0"
] | 26 | 2021-01-27T19:34:33.000Z | 2022-03-18T21:18:35.000Z | #!/usr/bin/env python
import sys
import yaml
import logging
import time
from multiprocessing.pool import ThreadPool
import kraken.cerberus.setup as cerberus
import kraken.kubernetes.client as kubecli
import kraken.post_actions.actions as post_actions
from kraken.node_actions.aws_node_scenarios import AWS
from kraken.n... | 40.870968 | 103 | 0.653907 | 641 | 5,068 | 4.892356 | 0.215289 | 0.063776 | 0.0625 | 0.026786 | 0.214286 | 0.153061 | 0.103954 | 0.103954 | 0.065689 | 0.065689 | 0 | 0.005325 | 0.258879 | 5,068 | 123 | 104 | 41.203252 | 0.829606 | 0.032557 | 0 | 0.142857 | 0 | 0 | 0.108798 | 0.005307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4588e1870c69bb48a27afabbf83f4786a23a64c3 | 16,539 | py | Python | game_seq_embedder/app/app_utils.py | Anonymous9999999/Pretrain-via-MTC | bc47c162aecb68708b68d8ff7c9bfd54b0fc485e | [
"Artistic-1.0-Perl"
] | null | null | null | game_seq_embedder/app/app_utils.py | Anonymous9999999/Pretrain-via-MTC | bc47c162aecb68708b68d8ff7c9bfd54b0fc485e | [
"Artistic-1.0-Perl"
] | null | null | null | game_seq_embedder/app/app_utils.py | Anonymous9999999/Pretrain-via-MTC | bc47c162aecb68708b68d8ff7c9bfd54b0fc485e | [
"Artistic-1.0-Perl"
] | null | null | null | import h5py
import collections
import numpy as np
import os
import ipdb
import math
import time
import datetime
import random
import torch
from torch.utils.data.dataset import Dataset
def hdf5_load_dataset(hdf5_file_path, all_indices, step_size, large_batch=1024, is_decode_utf8=False):
random.shuffle(all_indice... | 39.949275 | 120 | 0.589697 | 2,063 | 16,539 | 4.41493 | 0.146389 | 0.024594 | 0.022398 | 0.019763 | 0.417435 | 0.388669 | 0.339152 | 0.306324 | 0.271959 | 0.242973 | 0 | 0.012125 | 0.311869 | 16,539 | 413 | 121 | 40.046005 | 0.787892 | 0.147953 | 0 | 0.339161 | 0 | 0 | 0.030469 | 0.001581 | 0 | 0 | 0 | 0.002421 | 0.027972 | 1 | 0.045455 | false | 0 | 0.038462 | 0.006993 | 0.153846 | 0.013986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
458a74a131096b9821f4d2a10c82a473fe5352fd | 30,220 | py | Python | src/pagure/forms.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | src/pagure/forms.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | src/pagure/forms.py | yifengyou/learn-pagure | e54ba955368918c92ad2be6347b53bb2c24a228c | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
(c) 2014-2016 - Copyright Red Hat Inc
Authors:
Pierre-Yves Chibon <pingou@pingoured.fr>
"""
# pylint: disable=too-few-public-methods
# pylint: disable=no-init
# pylint: disable=super-on-old-class
from __future__ import unicode_literals, absolute_import
import datetime
import re
i... | 30.556117 | 79 | 0.615321 | 3,120 | 30,220 | 5.852244 | 0.141346 | 0.111726 | 0.068459 | 0.013144 | 0.522537 | 0.4865 | 0.446903 | 0.402048 | 0.333096 | 0.296566 | 0 | 0.003344 | 0.26777 | 30,220 | 988 | 80 | 30.587045 | 0.821809 | 0.151621 | 0 | 0.363768 | 0 | 0 | 0.088881 | 0.007851 | 0 | 0 | 0 | 0.001012 | 0 | 1 | 0.030435 | false | 0.001449 | 0.021739 | 0 | 0.272464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
458b9c87e0590b71665c205e005ed91d9aac38d7 | 5,285 | py | Python | docknv/shell/handlers/service.py | sharingcloud/docknv | 6eec6a576a32cb05278b7af045f90859066c9f1d | [
"MIT"
] | null | null | null | docknv/shell/handlers/service.py | sharingcloud/docknv | 6eec6a576a32cb05278b7af045f90859066c9f1d | [
"MIT"
] | null | null | null | docknv/shell/handlers/service.py | sharingcloud/docknv | 6eec6a576a32cb05278b7af045f90859066c9f1d | [
"MIT"
] | null | null | null | """Service sub commands."""
from docknv.shell.common import exec_handler, load_project
def _init(subparsers):
cmd = subparsers.add_parser(
"service", help="manage one service at a time (service mode)"
)
cmd.add_argument(
"-c", "--config", help="configuration name (swap)", default=None
... | 28.111702 | 78 | 0.653359 | 686 | 5,285 | 4.80758 | 0.123907 | 0.045482 | 0.10188 | 0.048514 | 0.513341 | 0.50849 | 0.470891 | 0.360825 | 0.31413 | 0.090964 | 0 | 0.000241 | 0.216083 | 5,285 | 187 | 79 | 28.262032 | 0.7958 | 0.01457 | 0 | 0.297872 | 0 | 0 | 0.174658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.007092 | 0.007092 | 0.099291 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
458efec9cad1dcaa401e2261be2ecb2c2d569528 | 1,466 | py | Python | canvasaio/bookmark.py | spapadim/canvasaio | a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8 | [
"MIT"
] | null | null | null | canvasaio/bookmark.py | spapadim/canvasaio | a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8 | [
"MIT"
] | null | null | null | canvasaio/bookmark.py | spapadim/canvasaio | a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8 | [
"MIT"
] | null | null | null | from canvasaio.canvas_object import CanvasObject
from canvasaio.util import combine_kwargs
class Bookmark(CanvasObject):
def __str__(self):
return "{} ({})".format(self.name, self.id)
async def delete(self, **kwargs):
"""
Delete this bookmark.
:calls: `DELETE /api/v1/users/se... | 32.577778 | 100 | 0.621419 | 157 | 1,466 | 5.66242 | 0.318471 | 0.094488 | 0.08099 | 0.031496 | 0.485939 | 0.485939 | 0.485939 | 0.485939 | 0.485939 | 0.485939 | 0 | 0.001807 | 0.244884 | 1,466 | 44 | 101 | 33.318182 | 0.801265 | 0 | 0 | 0.272727 | 0 | 0 | 0.072632 | 0.048421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0.045455 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4590230328e5c1d8487fcc4dc18325b330d72349 | 2,712 | py | Python | sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py | herove/dotfiles | 5f08d4d6f518758b3ad0516d9e704edf251e8ff3 | [
"MIT"
] | 1 | 2018-06-23T08:07:39.000Z | 2018-06-23T08:07:39.000Z | sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py | herove/dotfiles | 5f08d4d6f518758b3ad0516d9e704edf251e8ff3 | [
"MIT"
] | null | null | null | sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py | herove/dotfiles | 5f08d4d6f518758b3ad0516d9e704edf251e8ff3 | [
"MIT"
] | null | null | null | import bh_plugin
class SelectAttr(bh_plugin.BracketPluginCommand):
def run(self, edit, name, direction='right'):
"""
Select next attribute in the given direction.
Wrap when the end is hit.
"""
if self.left.size() <= 1:
return
tag_name = r'[\w\:\.\-]+'
... | 35.220779 | 106 | 0.450959 | 285 | 2,712 | 4.217544 | 0.224561 | 0.087354 | 0.052413 | 0.066556 | 0.481697 | 0.468386 | 0.429285 | 0.404326 | 0.404326 | 0.342762 | 0 | 0.002004 | 0.448009 | 2,712 | 76 | 107 | 35.684211 | 0.800935 | 0.101032 | 0 | 0.357143 | 0 | 0 | 0.04125 | 0.032917 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.017857 | 0.017857 | 0.107143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4591e96ca8eecc10cdc680e19398cdebfb252e8a | 5,189 | py | Python | interpro7dw/interpro/oracle/clans.py | matthiasblum/i7dw | b40e5b9984dec2895956828ddf9db8af4a8ec932 | [
"Apache-2.0"
] | null | null | null | interpro7dw/interpro/oracle/clans.py | matthiasblum/i7dw | b40e5b9984dec2895956828ddf9db8af4a8ec932 | [
"Apache-2.0"
] | null | null | null | interpro7dw/interpro/oracle/clans.py | matthiasblum/i7dw | b40e5b9984dec2895956828ddf9db8af4a8ec932 | [
"Apache-2.0"
] | null | null | null | import json
import pickle
from typing import Dict
import cx_Oracle
from interpro7dw import pfam
from interpro7dw.utils import logger
from interpro7dw.utils.oracle import lob_as_str
from interpro7dw.utils.store import BasicStore
def get_clans(cur: cx_Oracle.Cursor) -> Dict[str, dict]:
cur.execute(
"""
... | 28.827778 | 78 | 0.533629 | 582 | 5,189 | 4.582474 | 0.238832 | 0.041995 | 0.025497 | 0.021372 | 0.036745 | 0.036745 | 0.025497 | 0 | 0 | 0 | 0 | 0.009457 | 0.368279 | 5,189 | 179 | 79 | 28.988827 | 0.804149 | 0.029293 | 0 | 0.166667 | 0 | 0 | 0.060372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.063492 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
459361bbb100cff1efc28163721eb85c951bcf87 | 4,054 | py | Python | tests/test_core/test_controller.py | aaron-parsons/pymalcolm | 4e7ebd6b09382ab7e013278a81097d17873fa5c4 | [
"Apache-2.0"
] | null | null | null | tests/test_core/test_controller.py | aaron-parsons/pymalcolm | 4e7ebd6b09382ab7e013278a81097d17873fa5c4 | [
"Apache-2.0"
] | null | null | null | tests/test_core/test_controller.py | aaron-parsons/pymalcolm | 4e7ebd6b09382ab7e013278a81097d17873fa5c4 | [
"Apache-2.0"
] | null | null | null | import unittest
from annotypes import add_call_types, Anno
from malcolm.core import Controller, Part, PartRegistrar, StringMeta, \
Process, Queue, Get, Return, Put, Error, Post, Subscribe, Update, \
Unsubscribe
with Anno("The return value"):
AWorld = str
class MyPart(Part):
my_attribute = None
... | 33.783333 | 91 | 0.629008 | 483 | 4,054 | 5.165631 | 0.221532 | 0.024048 | 0.030862 | 0.050501 | 0.381162 | 0.34509 | 0.319439 | 0.296994 | 0.296994 | 0.296994 | 0 | 0.013509 | 0.251357 | 4,054 | 119 | 92 | 34.067227 | 0.808567 | 0.028614 | 0 | 0.333333 | 0 | 0 | 0.081363 | 0.005339 | 0 | 0 | 0 | 0 | 0.270833 | 1 | 0.072917 | false | 0.010417 | 0.03125 | 0.010417 | 0.177083 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4594f72e405e0824b4be1fe0fefd39e46766217c | 684 | py | Python | dado.py | crysller/Dado | 63c77bb81bec6fe9d2add2b0d14ba5d399b30018 | [
"MIT"
] | null | null | null | dado.py | crysller/Dado | 63c77bb81bec6fe9d2add2b0d14ba5d399b30018 | [
"MIT"
] | null | null | null | dado.py | crysller/Dado | 63c77bb81bec6fe9d2add2b0d14ba5d399b30018 | [
"MIT"
] | null | null | null | from random import randint
from time import sleep
continuar = 'Ss'
while continuar in 'Ss':
print('\033[1;32mVamos jogar. Exemplo: 1d20 ou 5d10\033[m')
opc = input()
qntDados = int(opc[:1])
valorDado = int(opc[2:])
if qntDados > 10 or valorDado not in [4,6,8,10,12,20,100]:
print('\033[1;31m... | 34.2 | 89 | 0.599415 | 110 | 684 | 3.727273 | 0.536364 | 0.039024 | 0.043902 | 0.02439 | 0.068293 | 0.068293 | 0.068293 | 0.068293 | 0 | 0 | 0 | 0.115686 | 0.254386 | 684 | 20 | 90 | 34.2 | 0.688235 | 0 | 0 | 0 | 0 | 0 | 0.29635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4595f169799444e02f534a9747ed945159901694 | 1,094 | py | Python | test/signature.py | orbs-network/orbs-client-sdk-python | 1e8d5699ee98e2ff59d36081eb569237949a558b | [
"MIT"
] | 5 | 2018-08-10T15:39:46.000Z | 2020-02-10T03:14:51.000Z | test/signature.py | orbs-network/orbs-client-sdk-python | 1e8d5699ee98e2ff59d36081eb569237949a558b | [
"MIT"
] | 3 | 2018-06-22T07:32:46.000Z | 2018-12-13T14:16:56.000Z | test/signature.py | orbs-network/orbs-client-sdk-python | 1e8d5699ee98e2ff59d36081eb569237949a558b | [
"MIT"
] | 2 | 2018-07-01T12:45:38.000Z | 2020-04-13T11:09:36.000Z | import unittest
from os import sys, path
from crypto.signature import Signature
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
class TestSignatureFunctions(unittest.TestCase):
def test_sign_ed25519(self):
private_key = bytes.fromhex('3b24b5f9e6b1371c3b5de2e402a96930eeafe52111bb4a1b00... | 42.076923 | 167 | 0.761426 | 116 | 1,094 | 6.939655 | 0.5 | 0.03354 | 0.089441 | 0.074534 | 0.131677 | 0.131677 | 0.131677 | 0.131677 | 0.131677 | 0 | 0 | 0.167568 | 0.154479 | 1,094 | 25 | 168 | 43.76 | 0.702703 | 0.019196 | 0 | 0 | 0 | 0 | 0.27451 | 0.179272 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
459719287cbd8d4d670931c7497d555a6c24e23b | 318 | py | Python | q3volume.py | tiwa2022/Lab2 | 22ebbe4367316a969c0a1642747516b606618ca5 | [
"MIT"
] | 1 | 2022-01-27T16:57:53.000Z | 2022-01-27T16:57:53.000Z | q3volume.py | tiwa2022/Lab2 | 22ebbe4367316a969c0a1642747516b606618ca5 | [
"MIT"
] | null | null | null | q3volume.py | tiwa2022/Lab2 | 22ebbe4367316a969c0a1642747516b606618ca5 | [
"MIT"
] | null | null | null | #input
print("This program find the volume of a cylinder")
PI= 3.14159265359
diameter= float(input("Enter diameter: "))
height= float(input("Enter height: "))
#processing
volume= PI * diameter *height
#output
(print("The volume of a cyclinder with a diameter of",diameter, "and a height of", height, "is",volume))
| 26.5 | 105 | 0.72327 | 47 | 318 | 4.893617 | 0.489362 | 0.078261 | 0.095652 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.141509 | 318 | 11 | 106 | 28.909091 | 0.798535 | 0.069182 | 0 | 0 | 0 | 0 | 0.453925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
459b4482cc67e06b82631e6053118e1bd6455789 | 2,219 | py | Python | ebay_accounts/test_settings.py | luke-dixon/django-ebay-accounts | 54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0 | [
"BSD-3-Clause"
] | 4 | 2018-01-28T20:10:11.000Z | 2020-09-06T14:30:36.000Z | ebay_accounts/test_settings.py | luke-dixon/django-ebay-accounts | 54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0 | [
"BSD-3-Clause"
] | 7 | 2017-06-04T08:50:06.000Z | 2020-09-06T16:03:53.000Z | ebay_accounts/test_settings.py | luke-dixon/django-ebay-accounts | 54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0 | [
"BSD-3-Clause"
] | 7 | 2017-06-01T09:51:35.000Z | 2021-05-25T16:01:53.000Z | # -*- coding: utf-8 -*-
"""
Test Settings
"""
import django
APP_NAME = 'ebay_accounts'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'ebay_accounts',
)
MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.Cs... | 26.105882 | 74 | 0.605228 | 206 | 2,219 | 6.262136 | 0.42233 | 0.08062 | 0.039535 | 0.048062 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007884 | 0.256872 | 2,219 | 84 | 75 | 26.416667 | 0.774409 | 0.04822 | 0 | 0.084507 | 0 | 0 | 0.482644 | 0.308131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014085 | 0 | 0.014085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
459db3d81ac904122652cb0bff922fb7f630a44a | 5,475 | py | Python | export/views.py | felix-engelmann/badgecc | 5bc0ced339f18737e24cc34935a87e96ae14a825 | [
"MIT"
] | null | null | null | export/views.py | felix-engelmann/badgecc | 5bc0ced339f18737e24cc34935a87e96ae14a825 | [
"MIT"
] | null | null | null | export/views.py | felix-engelmann/badgecc | 5bc0ced339f18737e24cc34935a87e96ae14a825 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.template.loader import render_to_string
from django.http import HttpResponse
from django.conf import settings
from persons.models import Role, Right, Department, Person
from math import floor
import os
from subprocess import Popen, PIPE
import tempfile
# Create your... | 29.755435 | 184 | 0.588493 | 673 | 5,475 | 4.692422 | 0.273403 | 0.015199 | 0.018999 | 0.015199 | 0.479417 | 0.437935 | 0.41387 | 0.368588 | 0.317923 | 0.317923 | 0 | 0.002509 | 0.271963 | 5,475 | 183 | 185 | 29.918033 | 0.789764 | 0.103744 | 0 | 0.424779 | 0 | 0 | 0.117901 | 0.029835 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061947 | false | 0 | 0.079646 | 0 | 0.230089 | 0.044248 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
459fe241fa9cf83ded4a40b6c2040315ffceaa98 | 7,118 | py | Python | Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py | fromasmtodisasm/o3de | 0d728a76778cb0ca88caa5c07f17162fac668b2a | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py | fromasmtodisasm/o3de | 0d728a76778cb0ca88caa5c07f17162fac668b2a | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py | fromasmtodisasm/o3de | 0d728a76778cb0ca88caa5c07f17162fac668b2a | [
"Apache-2.0",
"MIT"
] | null | null | null | # coding:utf-8
#!/usr/bin/python
#
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
# lut_helper.py
import sys
import os
import argparse
import math
import s... | 38.064171 | 139 | 0.631779 | 944 | 7,118 | 4.54661 | 0.246822 | 0.056384 | 0.045666 | 0.033551 | 0.179171 | 0.146552 | 0.14096 | 0.048462 | 0.030289 | 0.030289 | 0 | 0.023542 | 0.212279 | 7,118 | 186 | 140 | 38.268817 | 0.74193 | 0.147232 | 0 | 0.12605 | 0 | 0.02521 | 0.16807 | 0.007578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008403 | false | 0.016807 | 0.193277 | 0 | 0.210084 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45a097cba2dbbe048aae9c8954d61af23516651a | 7,560 | py | Python | recon/nmap.py | bbhunter/recon-pipeline | 234fe5e639c2a6ef7573410eb4765df07fb352d1 | [
"MIT"
] | null | null | null | recon/nmap.py | bbhunter/recon-pipeline | 234fe5e639c2a6ef7573410eb4765df07fb352d1 | [
"MIT"
] | null | null | null | recon/nmap.py | bbhunter/recon-pipeline | 234fe5e639c2a6ef7573410eb4765df07fb352d1 | [
"MIT"
] | 1 | 2020-01-30T10:27:30.000Z | 2020-01-30T10:27:30.000Z | import pickle
import logging
import subprocess
import concurrent.futures
from pathlib import Path
import luigi
from luigi.util import inherits
from recon.config import defaults
from recon.masscan import ParseMasscanOutput
@inherits(ParseMasscanOutput)
class ThreadedNmapScan(luigi.Task):
""" Run nmap against spe... | 38.571429 | 121 | 0.626852 | 925 | 7,560 | 5.069189 | 0.261622 | 0.034122 | 0.049904 | 0.060994 | 0.517594 | 0.493495 | 0.489657 | 0.459373 | 0.441459 | 0.441459 | 0 | 0.014585 | 0.274471 | 7,560 | 195 | 122 | 38.769231 | 0.840292 | 0.497884 | 0 | 0.275 | 0 | 0 | 0.156693 | 0.066934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.1125 | 0 | 0.2875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45a34389a4196f702824ce54a8d761be8862131f | 3,041 | py | Python | docs/source/generate_cli_help.py | Conzel/CompressAI | 55be017e93e25fc936fe0fb4fa5851b3c1032dfc | [
"BSD-3-Clause-Clear"
] | 515 | 2020-06-24T23:48:02.000Z | 2022-03-31T08:09:19.000Z | docs/source/generate_cli_help.py | Conzel/CompressAI | 55be017e93e25fc936fe0fb4fa5851b3c1032dfc | [
"BSD-3-Clause-Clear"
] | 102 | 2020-08-12T15:13:19.000Z | 2022-03-30T22:28:16.000Z | docs/source/generate_cli_help.py | Conzel/CompressAI | 55be017e93e25fc936fe0fb4fa5851b3c1032dfc | [
"BSD-3-Clause-Clear"
] | 123 | 2020-06-25T00:32:29.000Z | 2022-03-28T19:19:16.000Z | # Copyright (c) 2021-2022, InterDigital Communications, Inc
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the disclaimer
# below) provided that the following conditions are met:
# * Redistributions of source cod... | 34.954023 | 111 | 0.694837 | 413 | 3,041 | 5.03632 | 0.479419 | 0.038942 | 0.019231 | 0.022115 | 0.116346 | 0.065385 | 0.065385 | 0.065385 | 0.065385 | 0.065385 | 0 | 0.016007 | 0.219336 | 3,041 | 86 | 112 | 35.360465 | 0.860152 | 0.583032 | 0 | 0.128205 | 0 | 0 | 0.128122 | 0.047542 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.153846 | 0 | 0.205128 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45a3d4d8a1f127580265a0a3c5979a90f99be58c | 2,219 | py | Python | implementation/data_io.py | rpalo/masters-thesis | fcc0beb933634b17dbe41bde982e947204fd498b | [
"MIT"
] | null | null | null | implementation/data_io.py | rpalo/masters-thesis | fcc0beb933634b17dbe41bde982e947204fd498b | [
"MIT"
] | null | null | null | implementation/data_io.py | rpalo/masters-thesis | fcc0beb933634b17dbe41bde982e947204fd498b | [
"MIT"
] | null | null | null | """Data I/O: Import and export data to other useable formats."""
import csv
from pathlib import Path
from model import Job
def import_csv(filename, base_dir=Path("data/")):
"""Converts CSV files with the relevant data (see columns below) to
a list of Jobs.
"""
datafile = base_dir / filename
with ... | 36.377049 | 85 | 0.545291 | 240 | 2,219 | 5.004167 | 0.4125 | 0.049958 | 0.05995 | 0.079933 | 0.038301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001348 | 0.33123 | 2,219 | 61 | 86 | 36.377049 | 0.807951 | 0.141505 | 0 | 0.170213 | 0 | 0 | 0.143469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45a6eb2cafb85abd876f4684bf56dbe0066463d9 | 16,694 | py | Python | research/cv/eppmvsnet/src/networks.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/eppmvsnet/src/networks.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/eppmvsnet/src/networks.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 41.424318 | 117 | 0.636157 | 2,369 | 16,694 | 4.257915 | 0.093288 | 0.008526 | 0.036681 | 0.047189 | 0.651135 | 0.637752 | 0.608803 | 0.567067 | 0.531674 | 0.527114 | 0 | 0.120376 | 0.229184 | 16,694 | 402 | 118 | 41.527363 | 0.663506 | 0.054331 | 0 | 0.333333 | 0 | 0 | 0.014935 | 0.007212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070922 | false | 0 | 0.021277 | 0 | 0.163121 | 0.017731 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45aa13a44c60964639568833f156cf26339f8f91 | 9,162 | py | Python | master-v0/todolist_seperated.py | kaixindelele/Study-System | d64ed15d425064445e2ca6a4bb89515dec68d19c | [
"Apache-2.0"
] | null | null | null | master-v0/todolist_seperated.py | kaixindelele/Study-System | d64ed15d425064445e2ca6a4bb89515dec68d19c | [
"Apache-2.0"
] | null | null | null | master-v0/todolist_seperated.py | kaixindelele/Study-System | d64ed15d425064445e2ca6a4bb89515dec68d19c | [
"Apache-2.0"
] | null | null | null | import tkinter
from tkinter import messagebox
import random
WINDOW_HEIGHT=1200
WINDOW_WIDTH=600
BUTTON_HEIGHT=2
BUTTON_WIDTH=10
class Item:
def __init__(self, id, content):
self.index=id
if len(content.split(" ")) == 1:
self.text=content.split(" ")[0]
elif not c... | 34.186567 | 127 | 0.573456 | 1,174 | 9,162 | 4.308348 | 0.189949 | 0.030051 | 0.028272 | 0.023725 | 0.28964 | 0.234085 | 0.184263 | 0.175168 | 0.132661 | 0.132661 | 0 | 0.017801 | 0.307138 | 9,162 | 268 | 128 | 34.186567 | 0.778986 | 0.081314 | 0 | 0.179104 | 0 | 0 | 0.043103 | 0 | 0 | 0 | 0 | 0.003731 | 0 | 1 | 0.144279 | false | 0.00995 | 0.014925 | 0 | 0.174129 | 0.004975 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45aafdc53dd12d0a6a957bd81175c72fb3ad70c0 | 2,665 | py | Python | src/settings/base.py | Hammerstad/blog | 3075e59c46321fd5fd5ccafbfb36e6d59b765259 | [
"MIT"
] | null | null | null | src/settings/base.py | Hammerstad/blog | 3075e59c46321fd5fd5ccafbfb36e6d59b765259 | [
"MIT"
] | null | null | null | src/settings/base.py | Hammerstad/blog | 3075e59c46321fd5fd5ccafbfb36e6d59b765259 | [
"MIT"
] | null | null | null | import os, re
from django.contrib.messages import constants as messages
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
makepath = lambda *f: os.path.join(BASE_DIR, *f)
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ')2x-r4x+4oxdmvvxenj*dhq##uxrgl%f3=#+l*1s32y=f^51hz'
ALLOWED_H... | 26.386139 | 73 | 0.734709 | 317 | 2,665 | 6.037855 | 0.485804 | 0.115465 | 0.043887 | 0.048589 | 0.017764 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006092 | 0.137711 | 2,665 | 101 | 74 | 26.386139 | 0.826806 | 0.127955 | 0 | 0 | 0 | 0 | 0.507991 | 0.397408 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028169 | 0 | 0.028169 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45af13113748b76dff6737ce6168b834565ba369 | 737 | py | Python | cpias/cli/__init__.py | CellProfiling/cpias | e2d9426436573b40625287101570b849ce9f4a38 | [
"Apache-2.0"
] | null | null | null | cpias/cli/__init__.py | CellProfiling/cpias | e2d9426436573b40625287101570b849ce9f4a38 | [
"Apache-2.0"
] | null | null | null | cpias/cli/__init__.py | CellProfiling/cpias | e2d9426436573b40625287101570b849ce9f4a38 | [
"Apache-2.0"
] | null | null | null | # type: ignore
"""Provide a CLI."""
import logging
import click
from cpias import __version__
from cpias.cli.client import run_client
from cpias.cli.server import start_server
SETTINGS = dict(help_option_names=["-h", "--help"])
@click.group(
options_metavar="", subcommand_metavar="<command>", context_settings=... | 23.03125 | 81 | 0.717775 | 99 | 737 | 5.121212 | 0.434343 | 0.053254 | 0.047337 | 0.118343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143826 | 737 | 31 | 82 | 23.774194 | 0.803487 | 0.062415 | 0 | 0 | 0 | 0 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.047619 | 0.238095 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45b1387d07ded17b27c38254744ea03c4ab7dcf9 | 1,368 | py | Python | server/config.py | knrdl/casa | 411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180 | [
"MIT"
] | 40 | 2022-01-08T18:33:33.000Z | 2022-01-17T11:52:40.000Z | server/config.py | knrdl/casa | 411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180 | [
"MIT"
] | null | null | null | server/config.py | knrdl/casa | 411a71f2fcc7b2f7c6cd33973ce6f5919c9f7180 | [
"MIT"
] | 3 | 2022-01-10T03:05:45.000Z | 2022-01-10T16:17:29.000Z | import os
from typing import Literal, get_args, Final, Set, Dict
AUTH_API_URL = os.getenv('AUTH_API_URL')
AUTH_API_FIELD_USERNAME = os.getenv('AUTH_API_FIELD_USERNAME', 'username')
AUTH_API_FIELD_PASSWORD = os.getenv('AUTH_API_FIELD_PASSWORD', 'password')
if not AUTH_API_URL:
raise Exception('please provide AUTH_A... | 41.454545 | 103 | 0.681287 | 183 | 1,368 | 4.885246 | 0.349727 | 0.06264 | 0.044743 | 0.050336 | 0.091723 | 0.04698 | 0.04698 | 0 | 0 | 0 | 0 | 0 | 0.179094 | 1,368 | 32 | 104 | 42.75 | 0.796082 | 0 | 0 | 0 | 0 | 0 | 0.225146 | 0.049708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.037037 | 0.074074 | 0 | 0.074074 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45b98152e1ec2d40f01789e515fcc68c070f6c42 | 2,452 | py | Python | src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py | arve0/example_lessons | 56ce7f386df2478165f4583a86b462974f5e19ec | [
"CC0-1.0"
] | 2 | 2017-02-19T21:31:34.000Z | 2019-06-27T07:55:50.000Z | src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py | arve0/example_lessons | 56ce7f386df2478165f4583a86b462974f5e19ec | [
"CC0-1.0"
] | null | null | null | src/python/lessons/Pokedex/Club Leader Resources/pokedex-finished.py | arve0/example_lessons | 56ce7f386df2478165f4583a86b462974f5e19ec | [
"CC0-1.0"
] | null | null | null | from random import *
import tkinter
from pokeapi import *
smallFont = ["Ariel" , 10]
mediumFont = ["Ariel" , 14]
bigFont = ["Ariel" , 24]
#function to display data for a pokemon number
def showPokemonData():
#get the number typed into the entry box
pokemonNumber = randint(1,178)
#use the function above t... | 31.844156 | 98 | 0.745514 | 289 | 2,452 | 6.32526 | 0.269896 | 0.04814 | 0.084245 | 0.12035 | 0.210613 | 0.090263 | 0 | 0 | 0 | 0 | 0 | 0.041742 | 0.101142 | 2,452 | 76 | 99 | 32.263158 | 0.787659 | 0.12398 | 0 | 0 | 0 | 0 | 0.115115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.06 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45bb4339df10b2c504d23e3c5f87aad73571f0d8 | 551 | py | Python | PythonExercicios/ex092.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null | PythonExercicios/ex092.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null | PythonExercicios/ex092.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null | from datetime import date
info = dict()
info['nome'] = str(input('Nome: '))
ano = int(input('Ano de Nascimento: '))
info['idade'] = date.today().year - ano
info['ctps'] = int(input('Carteira de Trabalho (0 não tem): '))
if info['ctps'] > 0:
info['contratação'] = int(input('Ano de contratação: '))
info['Salário'... | 36.733333 | 63 | 0.618875 | 77 | 551 | 4.428571 | 0.519481 | 0.070381 | 0.064516 | 0.076246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013015 | 0.163339 | 551 | 14 | 64 | 39.357143 | 0.726681 | 0 | 0 | 0 | 0 | 0 | 0.323049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45bb5f01972a0422e197939fbc86dcc3efd9e8cf | 2,547 | py | Python | src/words/compiler/compile.py | DavidStrootman/ATP | 72005be0ac75339bb5da037a7e98573e338d16db | [
"MIT"
] | 2 | 2021-08-20T17:56:15.000Z | 2021-08-21T01:04:08.000Z | src/words/compiler/compile.py | DavidStrootman/Words | 72005be0ac75339bb5da037a7e98573e338d16db | [
"MIT"
] | null | null | null | src/words/compiler/compile.py | DavidStrootman/Words | 72005be0ac75339bb5da037a7e98573e338d16db | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Callable, Dict, List, Type, Iterator
from words.lexer.lex import Lexer
from words.parser.parse import Parser
from words.parser.parse_util import Program
from words.token_types.lexer_token import LexerToken
from words.token_types.parser_token import ParserToken, VariableParse... | 29.964706 | 97 | 0.650962 | 302 | 2,547 | 5.301325 | 0.307947 | 0.065584 | 0.068707 | 0.026234 | 0.087445 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.257951 | 2,547 | 84 | 98 | 30.321429 | 0.843386 | 0.135846 | 0 | 0.134615 | 0 | 0 | 0.043987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.019231 | 0.134615 | 0.038462 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45bb63a16d11fc1ffe3d85d5f0903a0791235525 | 666 | py | Python | digger/modules/load.py | fxxkrlab/Digger | b69e23aee1f2a8eac4989badd354bd128d35100e | [
"MIT"
] | null | null | null | digger/modules/load.py | fxxkrlab/Digger | b69e23aee1f2a8eac4989badd354bd128d35100e | [
"MIT"
] | null | null | null | digger/modules/load.py | fxxkrlab/Digger | b69e23aee1f2a8eac4989badd354bd128d35100e | [
"MIT"
] | null | null | null | import os, logging, toml
_cfgFile_RAW = os.path.abspath(os.path.join("conf.toml"))
_cfg = toml.load(_cfgFile_RAW)
'''
log setting
'''
if _cfg['Servers']['server']['CONSOLE'] == 'DEBUG':
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
level=logging.DEBUG,
)
e... | 28.956522 | 125 | 0.564565 | 102 | 666 | 3.558824 | 0.401961 | 0.038567 | 0.049587 | 0.041322 | 0.451791 | 0.451791 | 0.451791 | 0.451791 | 0.369146 | 0.369146 | 0 | 0.022928 | 0.148649 | 666 | 23 | 125 | 28.956522 | 0.617284 | 0 | 0 | 0.25 | 0 | 0.0625 | 0.424383 | 0.21142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45bbcaa18c9d8b0af41194ae911dd0604064bd55 | 11,982 | py | Python | rados_deploy/internal/remoto/modules/rados_install.py | MariskaIJpelaar/rados-deploy | 4ffb467211c2b05d17d76c2423c72c0ee4d4ec99 | [
"MIT"
] | null | null | null | rados_deploy/internal/remoto/modules/rados_install.py | MariskaIJpelaar/rados-deploy | 4ffb467211c2b05d17d76c2423c72c0ee4d4ec99 | [
"MIT"
] | null | null | null | rados_deploy/internal/remoto/modules/rados_install.py | MariskaIJpelaar/rados-deploy | 4ffb467211c2b05d17d76c2423c72c0ee4d4ec99 | [
"MIT"
] | 1 | 2022-02-08T10:47:14.000Z | 2022-02-08T10:47:14.000Z | import os
import subprocess
import tempfile
import urllib.request
def _get_ceph_deploy(location, silent=False, retries=5):
url = 'https://github.com/ceph/ceph-deploy/archive/refs/heads/master.zip'
with tempfile.TemporaryDirectory() as tmpdir: # We use a tempfile to store the downloaded archive.
archiv... | 54.963303 | 227 | 0.647304 | 1,562 | 11,982 | 4.898207 | 0.220871 | 0.022219 | 0.009411 | 0.010064 | 0.547641 | 0.509868 | 0.467521 | 0.424781 | 0.405176 | 0.381127 | 0 | 0.004078 | 0.242864 | 11,982 | 217 | 228 | 55.21659 | 0.839286 | 0.284176 | 0 | 0.509554 | 0 | 0.031847 | 0.235818 | 0.036554 | 0.006369 | 0 | 0 | 0 | 0 | 1 | 0.031847 | false | 0.012739 | 0.025478 | 0 | 0.197452 | 0.133758 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45bc17edfd4d56c459c035506d016dde933b4b38 | 1,539 | py | Python | segment.py | jorjao81/zh-learn | 9d14033361918a759dd245984c35c1cb8aa3f24f | [
"MIT"
] | 2 | 2020-12-04T16:23:02.000Z | 2021-12-25T12:54:45.000Z | segment.py | jorjao81/zh-learn | 9d14033361918a759dd245984c35c1cb8aa3f24f | [
"MIT"
] | null | null | null | segment.py | jorjao81/zh-learn | 9d14033361918a759dd245984c35c1cb8aa3f24f | [
"MIT"
] | 1 | 2021-12-22T20:17:08.000Z | 2021-12-22T20:17:08.000Z | from pysubparser import parser
from pysubparser.util import time_to_millis
from pydub import AudioSegment
# find segments of conversation
import sys
FIVE_SECONDS = 5000
def get_segments(subtitles):
segments = []
prev_end = -1000000
curr_segment = None
for subtitle in subtitles:
this_start ... | 22.632353 | 104 | 0.622482 | 195 | 1,539 | 4.723077 | 0.312821 | 0.045603 | 0.091205 | 0.065147 | 0.098806 | 0.095548 | 0.054289 | 0 | 0 | 0 | 0 | 0.031379 | 0.213125 | 1,539 | 67 | 105 | 22.970149 | 0.729149 | 0.031839 | 0 | 0.046512 | 0 | 0 | 0.088156 | 0.048452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.162791 | 0.209302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45bc4038c9107e889c840e27905e254cabf514d3 | 4,766 | py | Python | bot.py | BinaryWorld0101201/RSS_Feederbot | 177c175fc309645661d2dd804e76f5dc8c5d726e | [
"MIT"
] | 1 | 2019-05-14T11:34:40.000Z | 2019-05-14T11:34:40.000Z | bot.py | BinaryWorld0101201/RSS_Feederbot | 177c175fc309645661d2dd804e76f5dc8c5d726e | [
"MIT"
] | null | null | null | bot.py | BinaryWorld0101201/RSS_Feederbot | 177c175fc309645661d2dd804e76f5dc8c5d726e | [
"MIT"
] | null | null | null | try:
import feedparser, html2text, asyncio, json, datetime, telepot
from loguru import logger
from telepot.aio.loop import MessageLoop
from telepot.aio.delegate import per_chat_id, create_open, pave_event_space
except ImportError:
print("Failed to import required modules.")
class RSS(telepot.aio.h... | 42.936937 | 110 | 0.563785 | 585 | 4,766 | 4.42906 | 0.304274 | 0.055577 | 0.01235 | 0.011579 | 0.056349 | 0.041683 | 0.023157 | 0 | 0 | 0 | 0 | 0.007442 | 0.323332 | 4,766 | 110 | 111 | 43.327273 | 0.795969 | 0.080781 | 0 | 0.064935 | 0 | 0.012987 | 0.13869 | 0.031557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012987 | false | 0.012987 | 0.077922 | 0 | 0.12987 | 0.025974 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45be769f411fd4437219b4961db9cd7cef98434f | 1,423 | py | Python | Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py | OrangePeelFX/Python-Tutorial | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | null | null | null | Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py | OrangePeelFX/Python-Tutorial | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | 1 | 2021-06-02T00:28:17.000Z | 2021-06-02T00:28:17.000Z | Scripts/005_pyo/scripts/tutorial/s042_hilbert_transform.py | florianwns/python-scripts | 0d47f194553666304765f5bbc928374b7aec8a48 | [
"MIT"
] | 1 | 2020-01-13T11:08:18.000Z | 2020-01-13T11:08:18.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Effet de déphasage à la Barberpole.
Cet exemple utilise deux déphaseurs (basés sur une modulation complexe)
décalant linéairement le contenu fréquentiel d'un son.
Le décalage de fréquence est similaire à la modulation en anneaux, sauf que les
bandes latérales supérie... | 25.410714 | 79 | 0.668306 | 200 | 1,423 | 4.69 | 0.625 | 0.025586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025067 | 0.215039 | 1,423 | 55 | 80 | 25.872727 | 0.814682 | 0.511595 | 0 | 0 | 0 | 0 | 0.012158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45bebfee1fc6c99b8d76516c463bc09140a29f6d | 8,885 | py | Python | odfdo/paragraph_base.py | mat-m/odfdo | a4a509a056517ecf91449e029b36fe9a8ffa8ed0 | [
"Apache-2.0"
] | null | null | null | odfdo/paragraph_base.py | mat-m/odfdo | a4a509a056517ecf91449e029b36fe9a8ffa8ed0 | [
"Apache-2.0"
] | null | null | null | odfdo/paragraph_base.py | mat-m/odfdo | a4a509a056517ecf91449e029b36fe9a8ffa8ed0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Jérôme Dumonteil
# Copyright (c) 2009-2013 Ars Aperta, Itaapy, Pierlis, Talend.
#
# 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... | 31.39576 | 79 | 0.538323 | 942 | 8,885 | 4.956476 | 0.279193 | 0.066824 | 0.023988 | 0.016278 | 0.152495 | 0.077104 | 0.077104 | 0.051831 | 0.035554 | 0.035554 | 0 | 0.006149 | 0.35937 | 8,885 | 282 | 80 | 31.507092 | 0.814125 | 0.270906 | 0 | 0.346369 | 0 | 0 | 0.074181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039106 | false | 0 | 0.01676 | 0 | 0.134078 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45c2d3a01088393fc4acdc16b9de54511df97676 | 17,834 | py | Python | reveries/maya/pipeline.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 3 | 2020-04-01T10:51:17.000Z | 2021-08-05T18:35:23.000Z | reveries/maya/pipeline.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | null | null | null | reveries/maya/pipeline.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 1 | 2020-07-05T12:06:30.000Z | 2020-07-05T12:06:30.000Z |
import os
import logging
import avalon.maya
import avalon.io
from collections import defaultdict
from avalon.maya.pipeline import (
AVALON_CONTAINER_ID,
AVALON_CONTAINERS,
containerise,
)
from maya import cmds
from . import lib
from .vendor import sticker
from .capsule import namespaced, nodes_locker
from... | 29.236066 | 79 | 0.618313 | 1,993 | 17,834 | 5.364777 | 0.196187 | 0.015152 | 0.00795 | 0.007108 | 0.151048 | 0.078002 | 0.06229 | 0.055556 | 0.050505 | 0.040591 | 0 | 0.002499 | 0.282046 | 17,834 | 609 | 80 | 29.284072 | 0.832552 | 0.232533 | 0 | 0.114907 | 0 | 0 | 0.111094 | 0.010148 | 0 | 0 | 0 | 0.003284 | 0.003106 | 1 | 0.074534 | false | 0 | 0.037267 | 0.009317 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45c440eae6695f819733ad7666e871c73dcc0582 | 2,697 | py | Python | app.py | kmr2/vefferk5 | 5fe8604781ed65f62a6be8e71381296693215343 | [
"MIT"
] | null | null | null | app.py | kmr2/vefferk5 | 5fe8604781ed65f62a6be8e71381296693215343 | [
"MIT"
] | null | null | null | app.py | kmr2/vefferk5 | 5fe8604781ed65f62a6be8e71381296693215343 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, session, redirect, url_for
import pyrebase
app = Flask(__name__)
app.config['SECRET_KEY'] = 'covid_19'
config = {
"apiKey": "AIzaSyB6L9PLOIa-y8spupA2UFiegQGN7gmp12E",
"authDomain": "vefferk5.firebaseapp.com",
"databaseURL": "https://vefferk5.firebaseio.c... | 26.70297 | 88 | 0.622914 | 314 | 2,697 | 5.257962 | 0.363057 | 0.076317 | 0.096911 | 0.025439 | 0.307692 | 0.205936 | 0.205936 | 0.205936 | 0.205936 | 0.205936 | 0 | 0.029117 | 0.223211 | 2,697 | 100 | 89 | 26.97 | 0.75895 | 0.123841 | 0 | 0.264706 | 0 | 0 | 0.250744 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.029412 | 0.029412 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45c45593e29f001e140d37954419e1ef43c370f9 | 2,511 | py | Python | pax/utils.py | jacr20/pax | d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940 | [
"BSD-3-Clause"
] | 17 | 2016-04-24T12:02:03.000Z | 2021-07-19T19:39:47.000Z | pax/utils.py | jacr20/pax | d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940 | [
"BSD-3-Clause"
] | 300 | 2016-04-01T15:29:57.000Z | 2021-01-03T23:59:45.000Z | pax/utils.py | jacr20/pax | d64d0ae4e4ec3e9bb3e61065ed92e9ea23328940 | [
"BSD-3-Clause"
] | 20 | 2016-04-14T15:11:26.000Z | 2021-09-18T06:39:09.000Z | """Helper routines needed in pax
Please only put stuff here that you *really* can't find any other place for!
e.g. a list clustering routine that isn't in some standard, library but several plugins depend on it
"""
import re
import sys
import inspect
import random
import string
import logging
import time
import os
im... | 26.15625 | 103 | 0.657905 | 346 | 2,511 | 4.66474 | 0.479769 | 0.026022 | 0.02974 | 0.022305 | 0.055762 | 0.039653 | 0.039653 | 0.039653 | 0 | 0 | 0 | 0.006767 | 0.234966 | 2,511 | 95 | 104 | 26.431579 | 0.83342 | 0.284349 | 0 | 0.035714 | 0 | 0 | 0.054639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.160714 | 0.017857 | 0.482143 | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45c8bb81a03ef5a3614a21fdea7815af182bb4cc | 674 | py | Python | tock/session/memory.py | elebescond/tock-py | 2addcaa671be4a7af7cdf9bc061c707bbcf7128a | [
"MIT"
] | 4 | 2020-09-05T10:08:34.000Z | 2021-10-05T05:38:59.000Z | tock/session/memory.py | elebescond/tock-py | 2addcaa671be4a7af7cdf9bc061c707bbcf7128a | [
"MIT"
] | 16 | 2020-09-03T14:13:24.000Z | 2021-03-22T09:54:08.000Z | tock/session/memory.py | elebescond/tock-py | 2addcaa671be4a7af7cdf9bc061c707bbcf7128a | [
"MIT"
] | 3 | 2020-09-15T09:04:06.000Z | 2021-03-04T12:40:27.000Z | # -*- coding: utf-8 -*-
from typing import List
from tock.session.storage import Storage
from tock.session.session import Session
from tock.models import UserId
class MemoryStorage(Storage):
def __init__(self):
self.__sessions: List[Session] = []
def get_session(self, user_id: UserId) -> Session:
... | 26.96 | 54 | 0.648368 | 84 | 674 | 4.952381 | 0.345238 | 0.086538 | 0.09375 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002004 | 0.259644 | 674 | 24 | 55 | 28.083333 | 0.831663 | 0.031157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45c8f3a70c973964d6c049db2cb9fbfddac2a6fa | 2,607 | py | Python | tests/tests.py | hamedrb/pystripe | 8ffd6f64f9074562d2c8b293b57cc795bfdcc196 | [
"MIT"
] | null | null | null | tests/tests.py | hamedrb/pystripe | 8ffd6f64f9074562d2c8b293b57cc795bfdcc196 | [
"MIT"
] | null | null | null | tests/tests.py | hamedrb/pystripe | 8ffd6f64f9074562d2c8b293b57cc795bfdcc196 | [
"MIT"
] | null | null | null | import numpy as np
import unittest
import os
import tempfile
# import matplotlib.pyplot as plt
from pystripe import core
class TestWavedec(unittest.TestCase):
def test(self):
img = np.eye(5)
coeffs = core.wavedec(img, wavelet='db1', level=None)
approx = coeffs[0]
self.assertEqual(l... | 31.409639 | 108 | 0.628308 | 366 | 2,607 | 4.434426 | 0.281421 | 0.034504 | 0.07024 | 0.088725 | 0.621688 | 0.555145 | 0.521257 | 0.40419 | 0.269871 | 0.227973 | 0 | 0.089832 | 0.222862 | 2,607 | 83 | 109 | 31.409639 | 0.711254 | 0.136172 | 0 | 0.25 | 0 | 0 | 0.006242 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.178571 | false | 0 | 0.089286 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45cd8cd79b7985a77b217cfc932114de4167b993 | 8,854 | py | Python | third_party/lid_adversarial_subspace_detection/adaptive_attacks.py | ptrcarta/neural-fingerprinting | 01fa8cb592f6fa7497c6884861adf7680ffa7f29 | [
"BSD-3-Clause"
] | 29 | 2018-03-10T04:33:25.000Z | 2022-03-18T13:03:37.000Z | third_party/lid_adversarial_subspace_detection/adaptive_attacks.py | ptrcarta/neural-fingerprinting | 01fa8cb592f6fa7497c6884861adf7680ffa7f29 | [
"BSD-3-Clause"
] | 2 | 2019-07-22T20:59:01.000Z | 2019-11-17T07:00:00.000Z | third_party/lid_adversarial_subspace_detection/adaptive_attacks.py | StephanZheng/neural-fingerprinting | 57e93e487ef324427456b14d1d81bc9e08483d27 | [
"BSD-3-Clause"
] | 20 | 2018-03-14T14:01:55.000Z | 2021-09-17T19:19:56.000Z | from __future__ import absolute_import
from __future__ import print_function
import copy
from collections import defaultdict
import numpy as np
import tensorflow as tf
from tqdm import tqdm
from six.moves import xrange
import sys
sys.path.append('../../.')
from cleverhans.utils import other_classes
from cl... | 35.99187 | 106 | 0.583465 | 1,228 | 8,854 | 4.010586 | 0.219055 | 0.027614 | 0.021117 | 0.035736 | 0.39797 | 0.381726 | 0.374213 | 0.358376 | 0.315736 | 0.273096 | 0 | 0.014595 | 0.311272 | 8,854 | 245 | 107 | 36.138776 | 0.793047 | 0.200474 | 0 | 0.253165 | 0 | 0 | 0.017758 | 0 | 0 | 0 | 0 | 0.008163 | 0 | 1 | 0.031646 | false | 0 | 0.101266 | 0.006329 | 0.164557 | 0.050633 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45cdb841e19bbd7ee0c6ca21d0ef0accbb5b6f9d | 2,009 | py | Python | pykit/ir/pretty.py | ContinuumIO/pyk | 1730d7b831e0cf12a641ac23b5cf03e17e0dc550 | [
"BSD-3-Clause"
] | 9 | 2015-06-23T00:13:49.000Z | 2022-02-23T02:46:43.000Z | pykit/ir/pretty.py | ContinuumIO/pyk | 1730d7b831e0cf12a641ac23b5cf03e17e0dc550 | [
"BSD-3-Clause"
] | 1 | 2017-08-30T08:13:12.000Z | 2017-08-31T06:36:32.000Z | pykit/ir/pretty.py | ContinuumIO/pyk | 1730d7b831e0cf12a641ac23b5cf03e17e0dc550 | [
"BSD-3-Clause"
] | 7 | 2015-05-08T10:17:47.000Z | 2021-04-01T15:00:57.000Z | # -*- coding: utf-8 -*-
"""
Pretty print pykit IR.
"""
from __future__ import print_function, division, absolute_import
from pykit.utils import hashable
prefix = lambda s: '%' + s
indent = lambda s: '\n'.join(' ' + s for s in s.splitlines())
ejoin = "".join
sjoin = " ".join
ajoin = ", ".join
njoin = "\n".join... | 25.75641 | 86 | 0.594823 | 265 | 2,009 | 4.456604 | 0.358491 | 0.027096 | 0.013548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005818 | 0.229965 | 2,009 | 78 | 87 | 25.75641 | 0.757595 | 0.022399 | 0 | 0 | 0 | 0 | 0.07256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192982 | false | 0 | 0.070175 | 0.087719 | 0.491228 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45cea41fbca701da0133eaa849e6902c4fa1ad42 | 9,059 | py | Python | parser.py | JonahSussman/closure-language | 9cbe9e381e81dc645c8e82096366fd50a60a6d32 | [
"MIT"
] | null | null | null | parser.py | JonahSussman/closure-language | 9cbe9e381e81dc645c8e82096366fd50a60a6d32 | [
"MIT"
] | null | null | null | parser.py | JonahSussman/closure-language | 9cbe9e381e81dc645c8e82096366fd50a60a6d32 | [
"MIT"
] | null | null | null | from expr import Expr
from stmt import Stmt
class Parser:
class ParserError(Exception):
pass
def __init__(self, tokens):
self.tokens = tokens
self.c_tok = 0
def match(self, *kinds):
if self.c_tok == len(self.tokens):
return False
for kind in kinds:
if kind == self.tokens[self.... | 24.286863 | 85 | 0.610001 | 1,196 | 9,059 | 4.524247 | 0.10786 | 0.059139 | 0.094622 | 0.076511 | 0.494548 | 0.445759 | 0.403068 | 0.381445 | 0.347256 | 0.279061 | 0 | 0.007887 | 0.258196 | 9,059 | 372 | 86 | 24.352151 | 0.797321 | 0 | 0 | 0.467128 | 0 | 0 | 0.063142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100346 | false | 0.00346 | 0.00692 | 0.00346 | 0.259516 | 0.034602 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45d7d0388364df4712cd375ea072f369e100ecba | 3,542 | py | Python | oocran/django/operators/views.py | howls90/oocran | 9951f3ff752f9f6517a4d016476c1d1e2bb44a4d | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-12-12T10:32:16.000Z | 2022-02-07T19:46:10.000Z | oocran/django/operators/views.py | howls90/oocran | 9951f3ff752f9f6517a4d016476c1d1e2bb44a4d | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2017-01-11T06:56:35.000Z | 2017-01-11T06:58:44.000Z | oocran/django/operators/views.py | howls90/OOCRAN | 9951f3ff752f9f6517a4d016476c1d1e2bb44a4d | [
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2017-05-29T03:34:23.000Z | 2022-02-07T19:46:11.000Z | """
Open Orchestrator Cloud Radio Access Network
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... | 34.38835 | 115 | 0.709486 | 436 | 3,542 | 5.639908 | 0.341743 | 0.0244 | 0.044734 | 0.038634 | 0.230582 | 0.186255 | 0.123627 | 0.123627 | 0.123627 | 0.038227 | 0 | 0.005618 | 0.195935 | 3,542 | 103 | 116 | 34.38835 | 0.857795 | 0.160361 | 0 | 0.275362 | 0 | 0 | 0.142174 | 0.007177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.028986 | 0.144928 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45d7eeb536d9afa54b424f98a4bd81f25efce2fc | 2,066 | py | Python | ad2dispatch/news/views.py | cetaSYN/ad2dispatch | a3fa7585aaf18905d7914faaa5d1d6f584c2dab4 | [
"Apache-2.0"
] | null | null | null | ad2dispatch/news/views.py | cetaSYN/ad2dispatch | a3fa7585aaf18905d7914faaa5d1d6f584c2dab4 | [
"Apache-2.0"
] | 29 | 2019-01-25T16:05:58.000Z | 2020-03-21T21:18:58.000Z | ad2dispatch/news/views.py | cetaSYN/ad2dispatch | a3fa7585aaf18905d7914faaa5d1d6f584c2dab4 | [
"Apache-2.0"
] | 4 | 2019-01-25T15:55:04.000Z | 2019-01-25T17:33:02.000Z | import markdown
from django.http import Http404
from django.shortcuts import render
from pages.models import get_top_pages
from userprofiles.models import Volunteer
from .models import Article
def index(request):
try:
article_list = Article.objects.values(
'id', 'title', 'created_date').order... | 29.514286 | 102 | 0.631171 | 231 | 2,066 | 5.502165 | 0.311688 | 0.056648 | 0.056648 | 0.033045 | 0.549961 | 0.520063 | 0.520063 | 0.455547 | 0.387097 | 0.387097 | 0 | 0.003924 | 0.259923 | 2,066 | 69 | 103 | 29.942029 | 0.827338 | 0.014037 | 0 | 0.436364 | 0 | 0 | 0.193215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0.036364 | 0.109091 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45d824fccee32ba7826f0cbb0aaa47b2a5382c06 | 727 | py | Python | src/python/zquantum/core/history/recording_functions_with_gradient_test.py | kottmanj/z-quantum-core | 21752e92e79aafedbfeb6e7ae196bdc2fd5803e4 | [
"Apache-2.0"
] | null | null | null | src/python/zquantum/core/history/recording_functions_with_gradient_test.py | kottmanj/z-quantum-core | 21752e92e79aafedbfeb6e7ae196bdc2fd5803e4 | [
"Apache-2.0"
] | null | null | null | src/python/zquantum/core/history/recording_functions_with_gradient_test.py | kottmanj/z-quantum-core | 21752e92e79aafedbfeb6e7ae196bdc2fd5803e4 | [
"Apache-2.0"
] | null | null | null | """Test cases for recording functions with gradients."""
import pytest
import numpy as np
from .example_functions import function_1, Function2, Function5
from .recorder import recorder
from ..interfaces.functions import CallableWithGradient
@pytest.mark.parametrize(
"function,params",
[
(function_1, n... | 31.608696 | 77 | 0.72077 | 89 | 727 | 5.741573 | 0.483146 | 0.054795 | 0.031311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027732 | 0.156809 | 727 | 22 | 78 | 33.045455 | 0.805873 | 0.068776 | 0 | 0 | 0 | 0 | 0.022355 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45da00cb76f03be18a89a07dd9e8e2426fff0cf4 | 15,085 | py | Python | optical/converter/utils.py | hashtagml/optical | 1ed11c403b5041497e5b795681b962280c4723d8 | [
"MIT"
] | 10 | 2021-04-11T04:45:54.000Z | 2022-02-17T07:49:48.000Z | optical/converter/utils.py | hashtagml/optical | 1ed11c403b5041497e5b795681b962280c4723d8 | [
"MIT"
] | 9 | 2021-04-13T18:09:38.000Z | 2021-05-05T13:21:20.000Z | optical/converter/utils.py | hashtagml/optical | 1ed11c403b5041497e5b795681b962280c4723d8 | [
"MIT"
] | null | null | null | """
__author__: HashTagML
license: MIT
Created: Sunday, 28th March 2021
"""
import json
import io
import os
import shutil
import warnings
from pathlib import Path, PosixPath
from typing import Any, Callable, Dict, Optional, Union
import pandas as pd
from lxml import etree as xml
from PIL import Image
import xml.etree... | 34.284091 | 115 | 0.628638 | 2,025 | 15,085 | 4.553086 | 0.157037 | 0.024295 | 0.030369 | 0.054664 | 0.272993 | 0.20705 | 0.142625 | 0.093601 | 0.053579 | 0.053579 | 0 | 0.005372 | 0.234935 | 15,085 | 439 | 116 | 34.362187 | 0.793519 | 0.201061 | 0 | 0.052632 | 0 | 0 | 0.123787 | 0.02486 | 0 | 0 | 0 | 0 | 0.003509 | 1 | 0.080702 | false | 0.007018 | 0.045614 | 0.021053 | 0.196491 | 0.003509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45daf2ba13dd10d36a72a6b2b05dc29e34435812 | 2,960 | py | Python | bad_requests/request.py | Ben435/BensLoadTestTool | 039c28a6c46cc8b7d6284fffdbf3a5c95158daed | [
"Apache-2.0"
] | 1 | 2018-03-08T07:09:12.000Z | 2018-03-08T07:09:12.000Z | bad_requests/request.py | Ben435/BensLoadTestTool | 039c28a6c46cc8b7d6284fffdbf3a5c95158daed | [
"Apache-2.0"
] | null | null | null | bad_requests/request.py | Ben435/BensLoadTestTool | 039c28a6c46cc8b7d6284fffdbf3a5c95158daed | [
"Apache-2.0"
] | null | null | null | import socket
import ssl
from bad_requests.response import Response
HTTP_STANDARD_PORTS = [80]
HTTPS_STANDARD_PORTS = [443, 8080]
BUFFERSIZE = 1024
class Request:
def __init__(self, host, message, get_body=True):
self.host = host
self.message = message
self.get_body = get_body
def s... | 30.515464 | 113 | 0.529392 | 352 | 2,960 | 4.338068 | 0.301136 | 0.011788 | 0.055665 | 0.058939 | 0.090373 | 0.073346 | 0.057629 | 0.057629 | 0 | 0 | 0 | 0.018605 | 0.346284 | 2,960 | 96 | 114 | 30.833333 | 0.770543 | 0.043243 | 0 | 0.106667 | 0 | 0 | 0.06551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0.013333 | 0.133333 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45db1ddc9bbef6c02d6ebbfcea0de3c07ec3bc2b | 2,055 | py | Python | tests/status_test.py | araines/supervisor-newrelic | 8061ced419e1603367272a42b729414a7a51ac35 | [
"MIT"
] | 4 | 2019-02-11T03:17:45.000Z | 2022-01-17T19:53:03.000Z | tests/status_test.py | araines/supervisor-newrelic | 8061ced419e1603367272a42b729414a7a51ac35 | [
"MIT"
] | 3 | 2016-12-24T07:30:32.000Z | 2017-07-11T11:12:51.000Z | tests/status_test.py | araines/supervisor-newrelic | 8061ced419e1603367272a42b729414a7a51ac35 | [
"MIT"
] | 2 | 2018-11-27T08:31:23.000Z | 2021-03-04T16:59:13.000Z | import mock
import unittest
from StringIO import StringIO
from supervisor_newrelic.status import Status
def mock_request(*args, **kwargs):
class MockResponse:
def __init__(self, json_data, status_code):
self.json_data = json_data
self.status_code = status_code
def json(sel... | 36.052632 | 87 | 0.66618 | 265 | 2,055 | 4.988679 | 0.316981 | 0.061271 | 0.05295 | 0.034039 | 0.568079 | 0.568079 | 0.568079 | 0.568079 | 0.539334 | 0.539334 | 0 | 0.014724 | 0.206813 | 2,055 | 56 | 88 | 36.696429 | 0.796319 | 0 | 0 | 0.4 | 0 | 0 | 0.210219 | 0.067153 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.155556 | false | 0 | 0.088889 | 0.022222 | 0.377778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45ddecfc6b040befb28c16618390c57c59d78c8c | 11,100 | py | Python | tuning.py | grdavis/college-basketball-elo | b26518d3114012bac8b1994f82e7dc93099f15bf | [
"MIT"
] | 6 | 2022-02-07T01:07:57.000Z | 2022-03-28T05:49:37.000Z | tuning.py | grdavis/college-basketball-elo | b26518d3114012bac8b1994f82e7dc93099f15bf | [
"MIT"
] | 4 | 2022-03-01T21:55:24.000Z | 2022-03-29T18:49:45.000Z | tuning.py | grdavis/college-basketball-elo | b26518d3114012bac8b1994f82e7dc93099f15bf | [
"MIT"
] | 2 | 2022-02-25T01:32:53.000Z | 2022-03-03T03:45:36.000Z | import numpy as np
from tqdm import tqdm
import elo
import utils
import random
import plotly.graph_objects as go
from sklearn.metrics import r2_score
from scipy.stats import linregress
import pandas as pd
from predictions import predict_tournament, ROUNDS
ERRORS_START = 4 #after 4 seasons (starts counting errors 20141... | 49.333333 | 202 | 0.697117 | 1,771 | 11,100 | 4.21118 | 0.229249 | 0.010727 | 0.01609 | 0.010324 | 0.239877 | 0.222178 | 0.20059 | 0.155001 | 0.105792 | 0.088764 | 0 | 0.050482 | 0.148739 | 11,100 | 225 | 203 | 49.333333 | 0.738808 | 0.635045 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091954 | false | 0 | 0.114943 | 0 | 0.264368 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45dfa94f9d32503706cf8aacffa0d5d22fe3e19c | 3,075 | py | Python | aula4/classifica_junto.py | davidpvilaca/TEP | decbf61a96863d76e1b84dc097aa37b12038aa75 | [
"MIT"
] | 2 | 2017-08-28T18:24:47.000Z | 2019-08-29T03:34:15.000Z | aula4/classifica_junto.py | davidpvilaca/TEP | decbf61a96863d76e1b84dc097aa37b12038aa75 | [
"MIT"
] | null | null | null | aula4/classifica_junto.py | davidpvilaca/TEP | decbf61a96863d76e1b84dc097aa37b12038aa75 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 19 13:21:45 2017
@author: davidpvilaca
"""
import matplotlib.pyplot as plt
import numpy as np
import cv2
def getHist(arr_img):
hists = []
sm = []
for img in arr_img:
hist = cv2.calcHist([img], [0, 1, 2], None, [8, 8, 8],
[0, 2... | 27.954545 | 113 | 0.506341 | 330 | 3,075 | 4.660606 | 0.393939 | 0.117035 | 0.117035 | 0.035111 | 0.044213 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052088 | 0.338211 | 3,075 | 110 | 114 | 27.954545 | 0.703686 | 0.040976 | 0 | 0.133333 | 0 | 0 | 0.124872 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 1 | 0.044444 | false | 0 | 0.033333 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45dfb1283861c5bba5c59b6a90a79e3eb6fa9f46 | 8,005 | py | Python | package_management/package_manager.py | m-j/ziprepo-server | 35c1f40c3ba5489fb8731e8d66b301333dc9f8b0 | [
"MIT"
] | null | null | null | package_management/package_manager.py | m-j/ziprepo-server | 35c1f40c3ba5489fb8731e8d66b301333dc9f8b0 | [
"MIT"
] | null | null | null | package_management/package_manager.py | m-j/ziprepo-server | 35c1f40c3ba5489fb8731e8d66b301333dc9f8b0 | [
"MIT"
] | null | null | null | import copy
import json
import logging
import os
import shutil
from distutils.version import LooseVersion
from threading import Lock
from typing import List, Dict, Optional
from zipfile import ZipFile
import aiofiles
from tornado.ioloop import IOLoop
from package_management.constants import zpspec_filename, package_n... | 41.262887 | 132 | 0.713679 | 1,008 | 8,005 | 5.314484 | 0.170635 | 0.086242 | 0.053761 | 0.035281 | 0.446892 | 0.326675 | 0.278141 | 0.234646 | 0.152697 | 0.132164 | 0 | 0.00208 | 0.219363 | 8,005 | 193 | 133 | 41.476684 | 0.855177 | 0.018364 | 0 | 0.207143 | 0 | 0 | 0.068518 | 0.00917 | 0 | 0 | 0 | 0.005181 | 0 | 1 | 0.078571 | false | 0 | 0.128571 | 0.014286 | 0.307143 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45e194e23cc8440b698a5029bc927b2512c3eb9c | 17,667 | py | Python | cell2location/models/base/_pyro_mixin.py | jjhong922/cell2location | 2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9 | [
"Apache-2.0"
] | null | null | null | cell2location/models/base/_pyro_mixin.py | jjhong922/cell2location | 2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9 | [
"Apache-2.0"
] | null | null | null | cell2location/models/base/_pyro_mixin.py | jjhong922/cell2location | 2c2eb49aa3c0263fe8c6d45baf4ca0345baf21d9 | [
"Apache-2.0"
] | null | null | null | from datetime import date
from functools import partial
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pyro
import torch
from pyro import poutine
from pyro.infer.autoguide import AutoNormal, init_to_mean
from scipy.sparse import issparse
from scvi import _CONSTANTS
from... | 35.263473 | 119 | 0.582159 | 2,068 | 17,667 | 4.758221 | 0.182785 | 0.03435 | 0.009756 | 0.011382 | 0.430996 | 0.367988 | 0.32002 | 0.302033 | 0.273984 | 0.273984 | 0 | 0.009895 | 0.319296 | 17,667 | 500 | 120 | 35.334 | 0.808332 | 0.25058 | 0 | 0.254417 | 0 | 0 | 0.077186 | 0.015209 | 0 | 0 | 0 | 0.002 | 0 | 1 | 0.060071 | false | 0 | 0.056537 | 0.007067 | 0.190813 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45e2441449b8a57f4c898888fafc70417c101445 | 570 | py | Python | mayan/apps/sources/literals.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 343 | 2015-01-05T14:19:35.000Z | 2018-12-10T19:07:48.000Z | mayan/apps/sources/literals.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 191 | 2015-01-03T00:48:19.000Z | 2018-11-30T09:10:25.000Z | mayan/apps/sources/literals.py | atitaya1412/Mayan-EDMS | bda9302ba4b743e7d829ad118b8b836221888172 | [
"Apache-2.0"
] | 114 | 2015-01-08T20:21:05.000Z | 2018-12-10T19:07:53.000Z | import os
from django.conf import settings
DEFAULT_BINARY_SCANIMAGE_PATH = '/usr/bin/scanimage'
DEFAULT_SOURCES_BACKEND_ARGUMENTS = {
'mayan.apps.sources.source_backends.SourceBackendSANEScanner': {
'scanimage_path': DEFAULT_BINARY_SCANIMAGE_PATH
}
}
DEFAULT_SOURCES_CACHE_STORAGE_BACKEND = 'django.cor... | 30 | 85 | 0.815789 | 68 | 570 | 6.367647 | 0.5 | 0.12933 | 0.101617 | 0.120092 | 0.152425 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005859 | 0.101754 | 570 | 18 | 86 | 31.666667 | 0.839844 | 0 | 0 | 0 | 0 | 0 | 0.307018 | 0.215789 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45e3e43df6217404133f05bdb8876753107b0f86 | 3,050 | py | Python | test/test14_advanced_search.py | kyu-su/pixplusPlus | 2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8 | [
"MIT"
] | null | null | null | test/test14_advanced_search.py | kyu-su/pixplusPlus | 2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8 | [
"MIT"
] | null | null | null | test/test14_advanced_search.py | kyu-su/pixplusPlus | 2813771c8292ea05d0fd9e7e6b1f4a71e2aba1f8 | [
"MIT"
] | null | null | null | import warnings
import time
import random
import util
from test_base import TestCase
class Test_AdvancedSearch(TestCase):
def get_radio(self, name):
return self.q('#search-option .content form input[type="radio"][name="%s"]:checked' % name)
def set_size(self, wlt, hlt, wgt, hgt):
for name in 'wlt', 'hlt... | 32.795699 | 99 | 0.639672 | 464 | 3,050 | 4.099138 | 0.262931 | 0.11041 | 0.028391 | 0.037855 | 0.445321 | 0.360147 | 0.284437 | 0.284437 | 0.284437 | 0.258675 | 0 | 0.013242 | 0.182951 | 3,050 | 92 | 100 | 33.152174 | 0.75 | 0.064262 | 0 | 0.253731 | 0 | 0 | 0.164326 | 0.066362 | 0 | 0 | 0 | 0 | 0.223881 | 1 | 0.074627 | false | 0 | 0.074627 | 0.014925 | 0.19403 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
45e52e60e920306770881bdab0e81dba6a9ab8d4 | 511 | py | Python | cogs/help/onHelpMessage.py | Narzaru/AiShindou | 01daa4e51c5d19b0fa39ab7dff24adad6d764976 | [
"BSD-2-Clause"
] | null | null | null | cogs/help/onHelpMessage.py | Narzaru/AiShindou | 01daa4e51c5d19b0fa39ab7dff24adad6d764976 | [
"BSD-2-Clause"
] | null | null | null | cogs/help/onHelpMessage.py | Narzaru/AiShindou | 01daa4e51c5d19b0fa39ab7dff24adad6d764976 | [
"BSD-2-Clause"
] | null | null | null | import discord
from discord.ext import commands
from service.utils import TemplateColours
class Help_command(commands.MinimalHelpCommand):
async def send_pages(self):
ctx = self.get_destination()
self.paginator.suffix = "\nif something is wrong, he is to blame\n ---> <@202011264589758464>"
... | 36.5 | 114 | 0.716243 | 61 | 511 | 5.95082 | 0.655738 | 0.071625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043269 | 0.18591 | 511 | 13 | 115 | 39.307692 | 0.829327 | 0 | 0 | 0 | 0 | 0 | 0.189824 | 0.097847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afd77d47937da5ad76e9e4fe3eba28dc639a3d40 | 3,587 | py | Python | tools/WBDSP/UI_InputSignal.py | ptracton/wb_dsp | 73586b10141952e26bbbfb2213b2ccaa1ddbcd39 | [
"MIT"
] | null | null | null | tools/WBDSP/UI_InputSignal.py | ptracton/wb_dsp | 73586b10141952e26bbbfb2213b2ccaa1ddbcd39 | [
"MIT"
] | null | null | null | tools/WBDSP/UI_InputSignal.py | ptracton/wb_dsp | 73586b10141952e26bbbfb2213b2ccaa1ddbcd39 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
from PyQt4 import QtGui
import Signal
class UI_InputSignal(QtGui.QDialog):
"""
"""
def __init__(self, parent=None):
super(UI_InputSignal, self).__init__(parent)
vbox = QtGui.QVBoxLayout()
label = QtGui.QLabel("Input Signal")
vbox.addWidget(label)
... | 39.417582 | 70 | 0.681628 | 328 | 3,587 | 7.42378 | 0.265244 | 0.106776 | 0.065708 | 0.015606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004954 | 0.212155 | 3,587 | 90 | 71 | 39.855556 | 0.856688 | 0.006133 | 0 | 0 | 0 | 0 | 0.051253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.028571 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afd967c3188fbb324693e3925d0624ce1f560347 | 1,044 | py | Python | ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py | crankycoder/ichnaea | fb54000e92c605843b7a41521e36fd648c11ae94 | [
"Apache-2.0"
] | 1 | 2018-01-18T16:02:43.000Z | 2018-01-18T16:02:43.000Z | ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py | crankycoder/ichnaea | fb54000e92c605843b7a41521e36fd648c11ae94 | [
"Apache-2.0"
] | null | null | null | ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py | crankycoder/ichnaea | fb54000e92c605843b7a41521e36fd648c11ae94 | [
"Apache-2.0"
] | 1 | 2018-01-19T17:56:48.000Z | 2018-01-19T17:56:48.000Z | """Extend api keys with sample_store columns.
Revision ID: cad2875fd8cb
Revises: 385f842b2526
Create Date: 2017-02-22 11:52:47.837989
"""
import logging
from alembic import op
import sqlalchemy as sa
log = logging.getLogger('alembic.migration')
revision = 'cad2875fd8cb'
down_revision = '385f842b2526'
def upgrade... | 24.27907 | 63 | 0.672414 | 137 | 1,044 | 4.919708 | 0.416058 | 0.146884 | 0.065282 | 0.089021 | 0.246291 | 0.246291 | 0.246291 | 0.246291 | 0.246291 | 0.246291 | 0 | 0.071253 | 0.220307 | 1,044 | 42 | 64 | 24.857143 | 0.756757 | 0.125479 | 0 | 0.357143 | 0 | 0 | 0.523179 | 0.143488 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.107143 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afdbf4b87bacf33c9e03d4659cab0141ad61a3a5 | 1,870 | py | Python | sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py | tzhanl/azure-sdk-for-python | 18cd03f4ab8fd76cc0498f03e80fbc99f217c96e | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 37.4 | 82 | 0.642781 | 200 | 1,870 | 5.88 | 0.485 | 0.055272 | 0.044218 | 0.071429 | 0.237245 | 0.201531 | 0.201531 | 0.201531 | 0.120748 | 0.120748 | 0 | 0.003305 | 0.190909 | 1,870 | 49 | 83 | 38.163265 | 0.773959 | 0.567914 | 0 | 0 | 0 | 0 | 0.259459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afdccd4d644296589a91c7378dac649e2358df5a | 11,059 | py | Python | backUp/jd_jxz.py | ZelZhu/faker3 | 4d1f2aff532211da9f356119c9f8273c3d0796dd | [
"MIT"
] | 68 | 2021-11-19T09:28:04.000Z | 2022-03-25T07:06:01.000Z | backUp/jd_jxz.py | ZelZhu/faker3 | 4d1f2aff532211da9f356119c9f8273c3d0796dd | [
"MIT"
] | 2 | 2022-03-09T12:26:22.000Z | 2022-03-10T03:00:49.000Z | backUp/jd_jxz.py | ZelZhu/faker3 | 4d1f2aff532211da9f356119c9f8273c3d0796dd | [
"MIT"
] | 83 | 2021-11-19T08:27:05.000Z | 2022-03-23T07:32:01.000Z | #!/usr/bin/python3
# -*- coding: utf8 -*-
"""
cron: 30 9 * * *
new Env('集勋章');
活动入口:东东农场->东东乐园(点大风车)->集勋章 500豆
"""
# 是否开启通知,Ture:发送通知,False:不发送
isNotice = True
# UA 可自定义你的, 默认随机生成UA。
UserAgent = ''
import asyncio
import json
import random
import os, re, sys
try:
import requests
except Exception as e:
print(... | 31.962428 | 353 | 0.559996 | 1,306 | 11,059 | 4.688361 | 0.239663 | 0.014699 | 0.009799 | 0.011759 | 0.44586 | 0.44586 | 0.430508 | 0.385922 | 0.385922 | 0.380532 | 0 | 0.042487 | 0.270006 | 11,059 | 345 | 354 | 32.055072 | 0.715967 | 0.072068 | 0 | 0.440816 | 0 | 0.032653 | 0.286089 | 0.139915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.008163 | 0.036735 | 0 | 0.122449 | 0.110204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afdcedd441d4f48bbd1a4d60e657e73de3e6409b | 1,726 | py | Python | SRTM/convert_hgt.py | iDigBio/guoda-datasets | abcba7b03b27e641cd96825dde64f2180a65d978 | [
"MIT"
] | 6 | 2016-06-24T09:47:22.000Z | 2018-04-10T20:04:58.000Z | SRTM/convert_hgt.py | iDigBio/guoda-datasets | abcba7b03b27e641cd96825dde64f2180a65d978 | [
"MIT"
] | 14 | 2016-06-17T20:29:21.000Z | 2019-06-13T13:17:21.000Z | SRTM/convert_hgt.py | iDigBio/guoda-datasets | abcba7b03b27e641cd96825dde64f2180a65d978 | [
"MIT"
] | null | null | null | from __future__ import division, absolute_import, print_function
import os
import csv
import re
import sys
import numpy as np
import multiprocessing
re_split = re.compile("([NS])(\d+)([EW])(\d+)")
SAMPLES = 1201
def read_hgt_file(f):
fname = os.path.split(f)[-1][:-4].upper()
with open(f, "rb") as hgt_data:
... | 25.382353 | 98 | 0.479722 | 219 | 1,726 | 3.634703 | 0.415525 | 0.050251 | 0.027638 | 0.037688 | 0.026382 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047214 | 0.386443 | 1,726 | 67 | 99 | 25.761194 | 0.704438 | 0 | 0 | 0.075472 | 0 | 0 | 0.040556 | 0.012746 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.132075 | 0 | 0.207547 | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afe45f4906350be6c265277d8a549116790aeb73 | 895 | py | Python | iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py | iamsuman/iv | bf68d3fd45455b6041e74b09272f69503bf7a8ac | [
"MIT"
] | 2 | 2020-09-19T22:28:15.000Z | 2020-10-03T01:44:53.000Z | iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py | iamsuman/iv | bf68d3fd45455b6041e74b09272f69503bf7a8ac | [
"MIT"
] | null | null | null | iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py | iamsuman/iv | bf68d3fd45455b6041e74b09272f69503bf7a8ac | [
"MIT"
] | 1 | 2020-10-03T01:43:30.000Z | 2020-10-03T01:43:30.000Z | class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def getMinimumDifference(self, root: TreeNode) -> int:
nodes = []
def traversal(root, nodes: list):
if not root:
... | 24.189189 | 58 | 0.532961 | 104 | 895 | 4.548077 | 0.336538 | 0.109937 | 0.07611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017422 | 0.358659 | 895 | 36 | 59 | 24.861111 | 0.80662 | 0.013408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0 | 0 | 0.25 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afe5cfafb8008bc831b95a3a68e90c4bb129626a | 2,964 | py | Python | barbante/utils/tests/test_text.py | hypermindr/barbante | 40056e9e4f4564461294b3a1d9afc855062350ac | [
"MIT"
] | 10 | 2015-06-01T21:48:16.000Z | 2021-08-20T20:18:48.000Z | barbante/utils/tests/test_text.py | hypermindr/barbante | 40056e9e4f4564461294b3a1d9afc855062350ac | [
"MIT"
] | null | null | null | barbante/utils/tests/test_text.py | hypermindr/barbante | 40056e9e4f4564461294b3a1d9afc855062350ac | [
"MIT"
] | 2 | 2015-06-03T21:54:32.000Z | 2015-11-24T23:13:05.000Z | """ Test module for barbante.text.
"""
import nose.tools
import barbante.utils.text as text
def test_calculate_tf_en():
""" Tests calculate_tf for English contents.
"""
language = "english"
contents = "Cooks who don't love cooking don't cook well."
results = text.calculate_tf(language, contents)... | 36.146341 | 89 | 0.610999 | 366 | 2,964 | 4.789617 | 0.330601 | 0.056475 | 0.06275 | 0.071877 | 0.327439 | 0.284084 | 0.255562 | 0.131204 | 0.131204 | 0.131204 | 0 | 0.01731 | 0.239879 | 2,964 | 81 | 90 | 36.592593 | 0.760763 | 0.111673 | 0 | 0.115385 | 0 | 0 | 0.193972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.057692 | 0 | 0.173077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afe5dba68241cb5dd2453af805ca160811228622 | 3,365 | py | Python | YouTubeDownloader/views.py | gabzin/django-ytdownloader | e59e728aeac459b73fd4fb9ca663560855af19fd | [
"MIT"
] | 27 | 2021-11-18T22:01:26.000Z | 2022-01-08T14:10:32.000Z | YouTubeDownloader/views.py | gabzin/django-ytdownloader | e59e728aeac459b73fd4fb9ca663560855af19fd | [
"MIT"
] | 1 | 2021-11-21T13:28:00.000Z | 2021-11-21T15:05:42.000Z | YouTubeDownloader/views.py | gabzin/django-ytdownloader | e59e728aeac459b73fd4fb9ca663560855af19fd | [
"MIT"
] | 5 | 2021-11-20T07:16:54.000Z | 2021-12-16T10:44:38.000Z | #Imports
from django.http.response import HttpResponse
from django.shortcuts import render
from django.contrib import messages
from .forms import DownloadForm
from pytube import YouTube
from math import pow, floor, log
from datetime import timedelta
from requests import get
# Your YouTube V3 Api Key
KEY = ""
# Conver... | 37.388889 | 142 | 0.581278 | 413 | 3,365 | 4.585956 | 0.37046 | 0.042239 | 0.019007 | 0.033791 | 0.248152 | 0.12038 | 0.12038 | 0.083421 | 0.083421 | 0.083421 | 0 | 0.01112 | 0.278455 | 3,365 | 90 | 143 | 37.388889 | 0.768946 | 0.067459 | 0 | 0.140845 | 0 | 0.014085 | 0.129393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0 | 0.112676 | 0 | 0.239437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afe75e37643caa6a9af81c6d249b336b0e5aca17 | 45,429 | py | Python | fhirzeug/fhirspec.py | skalarsystems/fhir-zeug | 19973438823c41247e3efb5b1d35e8942ae01fdb | [
"Apache-2.0"
] | 10 | 2020-04-23T18:13:13.000Z | 2020-11-25T07:45:26.000Z | fhirzeug/fhirspec.py | skalarsystems/fhir-zeug | 19973438823c41247e3efb5b1d35e8942ae01fdb | [
"Apache-2.0"
] | 71 | 2020-05-20T09:11:22.000Z | 2020-10-26T14:01:03.000Z | fhirzeug/fhirspec.py | skalarsystems/fhir-zeug | 19973438823c41247e3efb5b1d35e8942ae01fdb | [
"Apache-2.0"
] | 1 | 2020-06-03T11:55:47.000Z | 2020-06-03T11:55:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import re
import json
import datetime
from pathlib import Path
import stringcase # type: ignore
from typing import Any, Dict, List, Optional, Union, TYPE_CHECKING
from .logger import logger
from . import fhirclass
if TYPE_CHECKING:
from .generato... | 36.964199 | 173 | 0.585133 | 5,104 | 45,429 | 5.063284 | 0.112265 | 0.014859 | 0.013234 | 0.011492 | 0.250938 | 0.175328 | 0.134311 | 0.097318 | 0.074527 | 0.046047 | 0 | 0.003476 | 0.328689 | 45,429 | 1,228 | 174 | 36.9943 | 0.843919 | 0.143323 | 0 | 0.192661 | 0 | 0.009174 | 0.105339 | 0.008263 | 0 | 0 | 0 | 0.003257 | 0.019495 | 1 | 0.079128 | false | 0.002294 | 0.013761 | 0.016055 | 0.183486 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afecd187c7058a489009b41d8ff819203ecdac2f | 1,868 | py | Python | src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 118 | 2019-08-31T04:33:18.000Z | 2022-03-28T21:12:14.000Z | src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 15 | 2019-12-05T01:29:46.000Z | 2022-02-18T17:13:46.000Z | src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | 28 | 2019-09-07T04:11:05.000Z | 2022-02-07T18:31:40.000Z | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from typing import Tuple, Any, Callable
from protocolbuffer... | 36.627451 | 125 | 0.697002 | 212 | 1,868 | 5.886792 | 0.419811 | 0.100962 | 0.041667 | 0.014423 | 0.059295 | 0.059295 | 0.059295 | 0.059295 | 0.059295 | 0.059295 | 0 | 0.009504 | 0.211456 | 1,868 | 50 | 126 | 37.36 | 0.837746 | 0.181478 | 0 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
afee559bb9619fc76eddbb0de5034b9cc836e90b | 1,923 | py | Python | build_an_ai_startup_demo/app/views/main.py | bbueno5000/BuildAnAIStartUpDemo | f70371802a2546530c34b7f04e2b644cd1faec8a | [
"MIT"
] | null | null | null | build_an_ai_startup_demo/app/views/main.py | bbueno5000/BuildAnAIStartUpDemo | f70371802a2546530c34b7f04e2b644cd1faec8a | [
"MIT"
] | null | null | null | build_an_ai_startup_demo/app/views/main.py | bbueno5000/BuildAnAIStartUpDemo | f70371802a2546530c34b7f04e2b644cd1faec8a | [
"MIT"
] | null | null | null | """
DOCSTRING
"""
import app
import flask
import keras
import numpy
import os
import random
@app.app.route('/')
#disease_list = [
# 'Atelectasis',
# 'Consolidation',
# 'Infiltration',
# 'Pneumothorax',
# 'Edema',
# 'Emphysema',
# 'Fibrosis',
# 'Effusion',
# 'Pneumonia',
# 'Pleural_Thicke... | 27.869565 | 86 | 0.658346 | 237 | 1,923 | 5.244726 | 0.421941 | 0.038616 | 0.061947 | 0.100563 | 0.138375 | 0.138375 | 0.083669 | 0.083669 | 0.083669 | 0 | 0 | 0.036318 | 0.169527 | 1,923 | 68 | 87 | 28.279412 | 0.742016 | 0.133645 | 0 | 0 | 0 | 0 | 0.101582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.095238 | 0.428571 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
aff5059c5098386517f47226d8e0e39141c4a8f9 | 3,001 | py | Python | MGCosmoPop/posteriors/prior.py | nicoborghi/MGCosmoPop | ebf07744caed1ac6694e7c750c1147ac30442fe5 | [
"BSD-3-Clause"
] | 4 | 2022-01-31T02:00:30.000Z | 2022-03-22T08:00:00.000Z | MGCosmoPop/posteriors/prior.py | nicoborghi/MGCosmoPop | ebf07744caed1ac6694e7c750c1147ac30442fe5 | [
"BSD-3-Clause"
] | null | null | null | MGCosmoPop/posteriors/prior.py | nicoborghi/MGCosmoPop | ebf07744caed1ac6694e7c750c1147ac30442fe5 | [
"BSD-3-Clause"
] | 5 | 2021-12-13T03:33:48.000Z | 2022-03-22T08:00:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 4 11:31:43 2021
@author: Michi
"""
import numpy as np
class Prior(object):
'''
Class implementing the prior. At the moment it only supports disjoint priors.
contains a method logPrior that returns the sum of log priors for each varia... | 30.313131 | 94 | 0.539154 | 340 | 3,001 | 4.694118 | 0.367647 | 0.065789 | 0.047619 | 0.016291 | 0.076441 | 0.048872 | 0.048872 | 0.048872 | 0 | 0 | 0 | 0.020526 | 0.366878 | 3,001 | 99 | 95 | 30.313131 | 0.819474 | 0.373209 | 0 | 0.216216 | 0 | 0 | 0.011853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.027027 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
aff8c4003c708639ad7c4f72b3b09d1135fb4817 | 4,058 | py | Python | mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 472 | 2021-12-03T03:12:55.000Z | 2022-03-31T01:33:13.000Z | mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 127 | 2021-12-03T05:00:14.000Z | 2022-03-31T13:47:33.000Z | mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 37 | 2021-12-03T03:23:22.000Z | 2022-03-31T08:41:58.000Z | from typing import Iterable, Optional, Tuple, Union
import torch
from pytorch3d.structures import Meshes
from mmhuman3d.core.cameras import MMCamerasBase
from .base_renderer import BaseRenderer
from .builder import RENDERER, build_shader
from .utils import normalize
@RENDERER.register_module(
name=['Depth', 'de... | 36.558559 | 79 | 0.575899 | 438 | 4,058 | 5.207763 | 0.260274 | 0.028058 | 0.036826 | 0.01929 | 0.170978 | 0.055239 | 0.055239 | 0.033319 | 0.033319 | 0 | 0 | 0.007034 | 0.334401 | 4,058 | 110 | 80 | 36.890909 | 0.837468 | 0.294973 | 0 | 0.065574 | 0 | 0 | 0.026892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.114754 | 0 | 0.262295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
aff8e664de9e8a592be6d93982dd50a72c78e151 | 7,131 | py | Python | bot.py | 0xsmoos/PMD | 049ef60f9a4c44b635fc4dc88c5096685d78b5b7 | [
"MIT"
] | 3 | 2021-04-22T17:00:05.000Z | 2021-08-19T05:33:37.000Z | bot.py | 0xsmoos/PMD | 049ef60f9a4c44b635fc4dc88c5096685d78b5b7 | [
"MIT"
] | 4 | 2021-04-24T10:46:03.000Z | 2022-01-06T14:36:00.000Z | bot.py | 0xsmoos/PMD | 049ef60f9a4c44b635fc4dc88c5096685d78b5b7 | [
"MIT"
] | 1 | 2021-05-06T17:12:52.000Z | 2021-05-06T17:12:52.000Z | # -*- coding: utf-8 -*-
# filename : bot.py
# description : Discord bot interface for interacting with the server
# author : LikeToAccess
# email : liketoaccess@protonmail.com
# date : 08-01-2021
# version : v2.0
# usage : python main.py
# notes ... | 29.345679 | 98 | 0.680409 | 944 | 7,131 | 5.020127 | 0.261653 | 0.026588 | 0.014349 | 0.015193 | 0.097489 | 0.088204 | 0.0498 | 0.034606 | 0.018569 | 0 | 0 | 0.02026 | 0.169401 | 7,131 | 242 | 99 | 29.466942 | 0.779841 | 0.160567 | 0 | 0.115607 | 0 | 0 | 0.172802 | 0.013111 | 0 | 0 | 0.001345 | 0 | 0 | 1 | 0.011561 | false | 0 | 0.057803 | 0.00578 | 0.075145 | 0.028902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
affae23e9d7b59854ff8ab5e58706d9252734abf | 12,277 | py | Python | rq1and3_localness/happiness/compute_happiness.py | joh12041/chi-2016-localness | a7048015aac417217d23fccb5f49971922af6322 | [
"MIT"
] | 4 | 2016-11-06T21:55:51.000Z | 2019-07-23T19:39:00.000Z | rq1and3_localness/happiness/compute_happiness.py | joh12041/chi-2016-localness | a7048015aac417217d23fccb5f49971922af6322 | [
"MIT"
] | null | null | null | rq1and3_localness/happiness/compute_happiness.py | joh12041/chi-2016-localness | a7048015aac417217d23fccb5f49971922af6322 | [
"MIT"
] | null | null | null | """RQ3: Happiness algorithm as impacted by localness"""
import csv
import os
import argparse
import sys
from collections import OrderedDict
import numpy
from scipy.stats import spearmanr
from scipy.stats import wilcoxon
sys.path.append("./utils")
import bots
LOCALNESS_METRICS = ['nday','plurality']
HAPPINESS_EVALU... | 49.108 | 194 | 0.564144 | 1,394 | 12,277 | 4.753228 | 0.186514 | 0.045276 | 0.019016 | 0.024298 | 0.235738 | 0.193027 | 0.147751 | 0.095684 | 0.08693 | 0.08693 | 0 | 0.011243 | 0.333469 | 12,277 | 250 | 195 | 49.108 | 0.798485 | 0.116315 | 0 | 0.165854 | 0 | 0.004878 | 0.137538 | 0.015375 | 0 | 0 | 0 | 0 | 0.019512 | 1 | 0.019512 | false | 0 | 0.043902 | 0 | 0.068293 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
affb5675ca38a4b1d3c3c74ee6838fd7720f8076 | 4,239 | py | Python | rubix-stress/workload_runner.py | raunaqmorarka/presto-rubix | 3149b6385f6685f5fe934551126b6593f59da9c8 | [
"Apache-2.0"
] | 162 | 2016-07-04T05:03:52.000Z | 2022-03-29T03:31:59.000Z | rubix-stress/workload_runner.py | raunaqmorarka/presto-rubix | 3149b6385f6685f5fe934551126b6593f59da9c8 | [
"Apache-2.0"
] | 381 | 2016-07-25T04:09:36.000Z | 2022-02-11T11:39:27.000Z | rubix-stress/workload_runner.py | raunaqmorarka/presto-rubix | 3149b6385f6685f5fe934551126b6593f59da9c8 | [
"Apache-2.0"
] | 64 | 2016-07-13T05:47:14.000Z | 2022-03-10T09:03:35.000Z | import logging
import random
import time
import threading
from threading import Event
from patched_commands import PrestoCommand
class WorkloadRunner(threading.Thread):
log = logging.getLogger(__name__)
def __init__(self, exitEvent, silencePeriodEvent, tid, queries, cluster_label):
threading.Thread... | 39.616822 | 137 | 0.624912 | 510 | 4,239 | 5.094118 | 0.317647 | 0.080447 | 0.102386 | 0.046189 | 0.100077 | 0.030793 | 0.030793 | 0.021555 | 0 | 0 | 0 | 0.011195 | 0.283557 | 4,239 | 106 | 138 | 39.990566 | 0.844254 | 0.176457 | 0 | 0.135135 | 0 | 0 | 0.062482 | 0 | 0 | 0 | 0 | 0.009434 | 0 | 1 | 0.081081 | false | 0.013514 | 0.081081 | 0 | 0.216216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b30543d6bc96edaac43450d48578207ded1283f4 | 2,585 | py | Python | src/commands/debug.py | mdabessa/discordbot | 37f605c5218f55365d4a82914ba604f8c62266e3 | [
"MIT"
] | 5 | 2021-03-11T01:47:12.000Z | 2022-01-18T05:33:18.000Z | src/commands/debug.py | mdabessa/discordbot | 37f605c5218f55365d4a82914ba604f8c62266e3 | [
"MIT"
] | null | null | null | src/commands/debug.py | mdabessa/discordbot | 37f605c5218f55365d4a82914ba604f8c62266e3 | [
"MIT"
] | null | null | null | import modules.database as db
import modules.entity as entity
category = 'Depuração'
entity.Command.newcategory(category, 'Depuração',is_visible=False)
async def exe(message, commandpar, bot):
if commandpar != None:
cont = commandpar.split()
text = f'Executando: {cont[0]}'
if le... | 41.031746 | 191 | 0.677369 | 343 | 2,585 | 4.991254 | 0.28863 | 0.060748 | 0.058411 | 0.030374 | 0.442173 | 0.297897 | 0.238318 | 0.238318 | 0.143692 | 0.143692 | 0 | 0.003763 | 0.177563 | 2,585 | 62 | 192 | 41.693548 | 0.800564 | 0 | 0 | 0.272727 | 0 | 0 | 0.238298 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b30ec77ef09bdffed154fe1328bf919b56c53f19 | 2,877 | py | Python | tests/test_amqp_transport.py | 0x1EE7/tomodachi | 8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83 | [
"MIT"
] | null | null | null | tests/test_amqp_transport.py | 0x1EE7/tomodachi | 8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83 | [
"MIT"
] | null | null | null | tests/test_amqp_transport.py | 0x1EE7/tomodachi | 8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83 | [
"MIT"
] | null | null | null | import os
import signal
import pytest
from typing import Any
from tomodachi.transport.amqp import AmqpTransport, AmqpException
from run_test_service_helper import start_service
def test_routing_key(monkeypatch: Any) -> None:
routing_key = AmqpTransport.get_routing_key('test.topic', {})
assert routing_key == '... | 42.308824 | 138 | 0.75113 | 323 | 2,877 | 6.427245 | 0.229102 | 0.105973 | 0.074181 | 0.100674 | 0.638728 | 0.638728 | 0.638728 | 0.638728 | 0.575145 | 0.575145 | 0 | 0.112306 | 0.127216 | 2,877 | 67 | 139 | 42.940299 | 0.714456 | 0 | 0 | 0.155556 | 0 | 0 | 0.295794 | 0.161627 | 0 | 0 | 0 | 0 | 0.311111 | 1 | 0.111111 | false | 0 | 0.133333 | 0 | 0.244444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b30f1e158c5e65ac948bbdec93ad290aa5c96a51 | 3,451 | py | Python | enteletaor_lib/modules/redis/__init__.py | Seabreg/enteletaor | d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db | [
"BSD-3-Clause"
] | 159 | 2016-03-05T09:57:19.000Z | 2022-02-20T02:45:03.000Z | enteletaor_lib/modules/redis/__init__.py | Seabreg/enteletaor | d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db | [
"BSD-3-Clause"
] | 8 | 2016-03-06T13:02:45.000Z | 2020-06-12T08:19:16.000Z | enteletaor_lib/modules/redis/__init__.py | Seabreg/enteletaor | d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db | [
"BSD-3-Clause"
] | 30 | 2016-03-06T16:52:42.000Z | 2021-03-31T09:46:39.000Z | # -*- coding: utf-8 -*-
#
# Enteletaor - https://github.com/cr0hn/enteletaor
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of con... | 38.344444 | 118 | 0.753115 | 460 | 3,451 | 5.48913 | 0.419565 | 0.06099 | 0.047129 | 0.036436 | 0.145347 | 0.080792 | 0.053861 | 0.053861 | 0.053861 | 0.053861 | 0 | 0.003388 | 0.144596 | 3,451 | 89 | 119 | 38.775281 | 0.851965 | 0.488554 | 0 | 0.12 | 0 | 0 | 0.177457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.24 | 0 | 0.42 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b31211dcdebcd9d087794655b7c39c4690abb81c | 1,110 | py | Python | handler.py | altbdoor/legend-of-8ball-bot | d6be034bc6e440c2b99cfbf2c7f608f15af3f537 | [
"WTFPL"
] | null | null | null | handler.py | altbdoor/legend-of-8ball-bot | d6be034bc6e440c2b99cfbf2c7f608f15af3f537 | [
"WTFPL"
] | null | null | null | handler.py | altbdoor/legend-of-8ball-bot | d6be034bc6e440c2b99cfbf2c7f608f15af3f537 | [
"WTFPL"
] | null | null | null | import random
import time
def send_bytes(con, channel, msg):
con.send((f'PRIVMSG #{channel} : {msg}\r\n').encode('utf-8'))
def sync_fn(con, channel, epoch, user, msg):
pass
def async_fn(con, channel, epoch, user, msg):
if msg.startswith('!8ball'):
answer_list = [
'it is certain',
... | 27.073171 | 81 | 0.502703 | 136 | 1,110 | 4.036765 | 0.588235 | 0.07286 | 0.043716 | 0.069217 | 0.087432 | 0.087432 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.37027 | 1,110 | 40 | 82 | 27.75 | 0.776824 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 0.024324 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.030303 | 0.060606 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b3129e2827a5d1653cdcb5e64182818266d524f0 | 518 | py | Python | main.py | gruporofex/alexa_rofex | 338eb1e08da37a45f44eaab70a633e255d4b2be7 | [
"Apache-2.0"
] | null | null | null | main.py | gruporofex/alexa_rofex | 338eb1e08da37a45f44eaab70a633e255d4b2be7 | [
"Apache-2.0"
] | null | null | null | main.py | gruporofex/alexa_rofex | 338eb1e08da37a45f44eaab70a633e255d4b2be7 | [
"Apache-2.0"
] | 1 | 2019-06-02T14:17:14.000Z | 2019-06-02T14:17:14.000Z | import logging
from configuration.config import LOGGING_LEVEL
from alexa_handlers.AlexaForRFXHandler import AlexaForRFXHandler
"""
Main entry point for the Lambda function.
"""
logging.basicConfig(format='%(asctime)s %(message)s')
logging.getLogger().setLevel(LOGGING_LEVEL)
def lambda_handler(event, context):
... | 21.583333 | 78 | 0.787645 | 59 | 518 | 6.779661 | 0.576271 | 0.065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127413 | 518 | 23 | 79 | 22.521739 | 0.884956 | 0 | 0 | 0 | 0 | 0 | 0.17382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b314cd99dbfe61e94cec61ba01708bcc90cd79e7 | 236 | py | Python | course/source/exercises/E001/test.py | sebastian-mutz/integrate | ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8 | [
"MIT"
] | 2 | 2021-05-17T14:23:50.000Z | 2021-08-24T13:07:42.000Z | course/source/exercises/E001/test.py | sebastian-mutz/integrate | ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8 | [
"MIT"
] | null | null | null | course/source/exercises/E001/test.py | sebastian-mutz/integrate | ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8 | [
"MIT"
] | 1 | 2021-08-24T13:04:01.000Z | 2021-08-24T13:04:01.000Z | # wow. such script. many calculation. wow.
# let's do some operations and save the results in variables
a=20 + 22
b=2077 - 93
c=578 * 4
d=1332/2
e=16**2
print(a, b, c, d, e) # tell the computer to show us the values of each variable
| 21.454545 | 80 | 0.686441 | 49 | 236 | 3.306122 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0.207627 | 236 | 10 | 81 | 23.6 | 0.748663 | 0.661017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b3171b0e547151b36dca4c7d117c611b0459a447 | 5,070 | py | Python | scripts/test_script.py | OmoooJ/gluon-facex | c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54 | [
"MIT"
] | 257 | 2018-12-28T12:02:28.000Z | 2021-11-25T08:43:52.000Z | scripts/test_script.py | OmoooJ/gluon-facex | c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54 | [
"MIT"
] | 37 | 2019-01-10T02:31:12.000Z | 2020-11-09T03:09:40.000Z | scripts/test_script.py | OmoooJ/gluon-facex | c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54 | [
"MIT"
] | 57 | 2018-12-29T01:18:31.000Z | 2021-09-14T14:41:35.000Z | # -*- coding: utf-8 -*-
# Author: pistonyang@gmail.com
import argparse
import os
import mxnet as mx
import sklearn
import numpy as np
from mxnet import gluon, nd
from mxnet.gluon.data import DataLoader
from mxnet.gluon.data.vision import transforms
from gluonfr.model_zoo import get_model
from gluonfr.data import get_r... | 44.867257 | 104 | 0.65641 | 690 | 5,070 | 4.652174 | 0.268116 | 0.025234 | 0.047664 | 0.028037 | 0.241433 | 0.209657 | 0.17134 | 0.099065 | 0.038006 | 0.038006 | 0 | 0.023471 | 0.210059 | 5,070 | 112 | 105 | 45.267857 | 0.778027 | 0.009862 | 0 | 0 | 0 | 0 | 0.135738 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 1 | 0.021978 | false | 0 | 0.120879 | 0 | 0.164835 | 0.032967 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b317c5d6b720147d41037a618b469ae428deb28e | 7,043 | py | Python | gamepyd/readPad.py | Marceline/PyXinput | fa60e215e99b8c0fe95767c21fd9ba239a0719bd | [
"Unlicense"
] | 2 | 2020-11-26T09:23:35.000Z | 2020-11-27T13:36:46.000Z | gamepyd/readPad.py | Marceline/PyXinput | fa60e215e99b8c0fe95767c21fd9ba239a0719bd | [
"Unlicense"
] | 7 | 2020-10-03T16:38:26.000Z | 2020-10-03T17:17:00.000Z | gamepyd/readPad.py | Marceline/PyXinput | fa60e215e99b8c0fe95767c21fd9ba239a0719bd | [
"Unlicense"
] | 1 | 2021-06-04T17:44:55.000Z | 2021-06-04T17:44:55.000Z | """Read the current state of Xbox Controllers"""
from ctypes import *
import pandas as pd
from time import time_ns
# Xinput DLL
try:
_xinput = windll.xinput1_4
except OSError as err:
_xinput = windll.xinput1_3
class _xinput_gamepad(Structure):
"""CType XInput Gamepad Object"""
_fields_ = [
("... | 31.868778 | 129 | 0.552321 | 832 | 7,043 | 4.519231 | 0.325721 | 0.014362 | 0.01516 | 0.011968 | 0.207979 | 0.170745 | 0.137766 | 0.117021 | 0.10266 | 0.10266 | 0 | 0.031198 | 0.317336 | 7,043 | 220 | 130 | 32.013636 | 0.750832 | 0.192106 | 0 | 0.22973 | 0 | 0.013514 | 0.167094 | 0.034773 | 0 | 0 | 0.015373 | 0 | 0 | 1 | 0.087838 | false | 0 | 0.027027 | 0.040541 | 0.25 | 0.087838 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |