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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b59a516d2e4ba77e47687f54990e9a2e4f955197 | 1,185 | py | Python | LoopStructural/modelling/features/lambda_geological_feature.py | wgorczyk/LoopStructural | bedc7abd4c1868fdbd6ed659c8d72ef19f793875 | [
"MIT"
] | 67 | 2020-06-25T06:50:58.000Z | 2022-03-29T17:15:43.000Z | LoopStructural/modelling/features/lambda_geological_feature.py | wgorczyk/LoopStructural | bedc7abd4c1868fdbd6ed659c8d72ef19f793875 | [
"MIT"
] | 60 | 2020-06-28T22:58:21.000Z | 2022-03-24T01:30:59.000Z | LoopStructural/modelling/features/lambda_geological_feature.py | wgorczyk/LoopStructural | bedc7abd4c1868fdbd6ed659c8d72ef19f793875 | [
"MIT"
] | 9 | 2020-06-25T13:07:39.000Z | 2021-12-01T01:41:24.000Z | """
Geological features
"""
import logging
import numpy as np
logger = logging.getLogger(__name__)
class LambdaGeologicalFeature:
def __init__(self,function = None,name = 'unnamed_lambda', gradient_function = None, model = None):
self.function = function
self.name = name
self.gradient_fu... | 27.55814 | 103 | 0.563713 | 148 | 1,185 | 4.351351 | 0.283784 | 0.124224 | 0.093168 | 0.055901 | 0.350932 | 0.285714 | 0.285714 | 0.285714 | 0.21118 | 0.121118 | 0 | 0.021014 | 0.3173 | 1,185 | 43 | 104 | 27.55814 | 0.775031 | 0.057384 | 0 | 0.147059 | 0 | 0 | 0.012613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.058824 | 0.058824 | 0.352941 | 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 |
b59a84378daec5c068b0ad9a5875001c348356a9 | 2,137 | py | Python | 2021/day8.py | Bug38/AoC | 576ee0d3745242b71240a62c121c52bc92f7253e | [
"MIT"
] | null | null | null | 2021/day8.py | Bug38/AoC | 576ee0d3745242b71240a62c121c52bc92f7253e | [
"MIT"
] | null | null | null | 2021/day8.py | Bug38/AoC | 576ee0d3745242b71240a62c121c52bc92f7253e | [
"MIT"
] | null | null | null | from typing import Set
import utils
data = utils.getLinesFromFile("day8.input")
# data = ['be cfbegad cbdgef fgaecd cgeb fdcge agebfd fecdb fabcd edb | fdgacbe cefdb cefbgd gcbe','edbfga begcd cbg gc gcadebf fbgde acbgfd abcde gfcbed gfec | fcgedb cgb dgebacf gc','fgaebd cg bdaec gdafb agbcfd gdcbef bgcad gfac gcb cdg... | 35.616667 | 860 | 0.657932 | 364 | 2,137 | 3.862637 | 0.535714 | 0.010669 | 0.012802 | 0.036273 | 0.102418 | 0.078236 | 0.041252 | 0.041252 | 0 | 0 | 0 | 0.025045 | 0.215255 | 2,137 | 59 | 861 | 36.220339 | 0.813357 | 0.44642 | 0 | 0.230769 | 0 | 0 | 0.036441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.115385 | 0.038462 | 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 |
b59a9f26b84db7052d875507a0706016c6d4734b | 108 | py | Python | max_two_numbers.py | sayaliborade/My-Programming-Space | a7ac4436afa76143f4961e043097d33076532b6d | [
"MIT"
] | null | null | null | max_two_numbers.py | sayaliborade/My-Programming-Space | a7ac4436afa76143f4961e043097d33076532b6d | [
"MIT"
] | null | null | null | max_two_numbers.py | sayaliborade/My-Programming-Space | a7ac4436afa76143f4961e043097d33076532b6d | [
"MIT"
] | null | null | null | num1 = 5
num2 = 4
max_num = max(num1,num2)
print("Max between {0} and {1} is {2}".format(num1,num2,max_num)) | 27 | 65 | 0.666667 | 22 | 108 | 3.181818 | 0.636364 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 0.138889 | 108 | 4 | 65 | 27 | 0.634409 | 0 | 0 | 0 | 0 | 0 | 0.275229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b59b156deb529184049dc84975771504d0687be0 | 298 | py | Python | scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py | WarrenWeckesser/scipywork | e74888e8909022575f3b3effc28f1496f4f3fde6 | [
"MIT"
] | null | null | null | scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py | WarrenWeckesser/scipywork | e74888e8909022575f3b3effc28f1496f4f3fde6 | [
"MIT"
] | 1 | 2020-03-07T05:20:36.000Z | 2020-03-07T05:20:36.000Z | scipy/stats/anova/examples/twoway/sokalrohlf_box11_1.py | WarrenWeckesser/scipywork | e74888e8909022575f3b3effc28f1496f4f3fde6 | [
"MIT"
] | null | null | null | # ANOVA example from Sokal & Rohlf (fourth ed.), Box 11.1
import numpy as np
from anova import anova_twoway_balanced
consumption = np.array(
[[[709, 679, 699],
[592, 538, 476]],
[[657, 594, 677],
[508, 505, 539]]])
result = anova_twoway_balanced(consumption)
print(result)
| 19.866667 | 57 | 0.651007 | 42 | 298 | 4.52381 | 0.761905 | 0.115789 | 0.2 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165957 | 0.211409 | 298 | 14 | 58 | 21.285714 | 0.642553 | 0.184564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b59c0e7ce913172c25c6a249bc299d0133408394 | 4,951 | py | Python | utils/optimizers.py | csalt-research/OpenASR-py | 9aea6753689d87d321260d7eb0ea0544e1b3403a | [
"MIT"
] | 2 | 2019-11-29T15:46:14.000Z | 2021-05-28T06:54:41.000Z | utils/optimizers.py | csalt-research/OpenASR-py | 9aea6753689d87d321260d7eb0ea0544e1b3403a | [
"MIT"
] | null | null | null | utils/optimizers.py | csalt-research/OpenASR-py | 9aea6753689d87d321260d7eb0ea0544e1b3403a | [
"MIT"
] | null | null | null | """ Optimizers class """
import torch
import torch.optim as optim
from torch.nn.utils import clip_grad_norm_
import operator
import functools
from copy import copy
from math import sqrt
def build_torch_optimizer(model, opt):
params = [p for p in model.parameters() if p.requires_grad]
if opt.optim == 'sgd':
... | 31.941935 | 75 | 0.613411 | 615 | 4,951 | 4.64878 | 0.214634 | 0.096537 | 0.044771 | 0.033228 | 0.284715 | 0.221056 | 0.173487 | 0.173487 | 0.149003 | 0.149003 | 0 | 0.011638 | 0.288427 | 4,951 | 155 | 76 | 31.941935 | 0.799886 | 0.07655 | 0 | 0.205128 | 0 | 0 | 0.0338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119658 | false | 0 | 0.059829 | 0.017094 | 0.299145 | 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 |
b59da18e5dee5065a74262a17b2223e79fa39bac | 3,019 | py | Python | src/argcompile/meta.py | artu-hnrq/argcompile | 48b8997cc21b861fd090a809a9149d95476edbf8 | [
"MIT"
] | null | null | null | src/argcompile/meta.py | artu-hnrq/argcompile | 48b8997cc21b861fd090a809a9149d95476edbf8 | [
"MIT"
] | null | null | null | src/argcompile/meta.py | artu-hnrq/argcompile | 48b8997cc21b861fd090a809a9149d95476edbf8 | [
"MIT"
] | null | null | null | import inspect
class MetaComposition(type):
"""Overwrites a target method to behave calling same-type superclasses' implementation orderly"""
def __new__(meta, name, bases, attr, __func__='__call__'):
attr['__run__'] = attr[__func__]
attr[__func__] = meta.__run__
return super(MetaComposition, meta).__new__(... | 26.716814 | 100 | 0.663796 | 375 | 3,019 | 4.72 | 0.237333 | 0.050847 | 0.073446 | 0.072316 | 0.217514 | 0.159887 | 0.09435 | 0.079096 | 0.079096 | 0.040678 | 0 | 0.00082 | 0.191785 | 3,019 | 112 | 101 | 26.955357 | 0.72459 | 0.233852 | 0 | 0.083333 | 0 | 0 | 0.033654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.013889 | 0.013889 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
b5a053b0143ef5854f560bee76e6b4b427176e12 | 384 | py | Python | WAISN/Database/admin.py | willkendall01/WAISN-Fellowship | bf638d9ae124e5e51518b6dc53e32023bb2ca027 | [
"MIT"
] | null | null | null | WAISN/Database/admin.py | willkendall01/WAISN-Fellowship | bf638d9ae124e5e51518b6dc53e32023bb2ca027 | [
"MIT"
] | null | null | null | WAISN/Database/admin.py | willkendall01/WAISN-Fellowship | bf638d9ae124e5e51518b6dc53e32023bb2ca027 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Product
from .forms import CreateProductForm
# Improves upon the basic admin page functionality by
# displaying the database as a formatted table
class CreateProductAdmin(admin.ModelAdmin):
list_display = ["product_name", "product_quantity"]
form = Creat... | 25.6 | 55 | 0.796875 | 45 | 384 | 6.733333 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143229 | 384 | 14 | 56 | 27.428571 | 0.920973 | 0.255208 | 0 | 0 | 0 | 0 | 0.09894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b5a0cac842fff324e018f25672c1b93817ef376b | 761 | py | Python | linux/keyman-config/tests/test_gnome_keyboards_util.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | linux/keyman-config/tests/test_gnome_keyboards_util.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | linux/keyman-config/tests/test_gnome_keyboards_util.py | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import unittest
from unittest.mock import patch
from keyman_config.gnome_keyboards_util import is_gnome_shell, _reset_gnome_shell
class GnomeKeyboardsUtilTests(unittest.TestCase):
def setUp(self):
_reset_gnome_shell()
@patch('keyman_config.os.system')
def test_IsGnomeShell_Run... | 26.241379 | 81 | 0.710907 | 86 | 761 | 5.930233 | 0.476744 | 0.098039 | 0.070588 | 0.07451 | 0.486275 | 0.486275 | 0.329412 | 0.172549 | 0 | 0 | 0 | 0.004918 | 0.198423 | 761 | 28 | 82 | 27.178571 | 0.831148 | 0.07753 | 0 | 0.125 | 0 | 0 | 0.077475 | 0.065997 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.4375 | 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 |
b5a22c7ed55e816b9317d7d3ca45276bbf0eae8f | 4,059 | py | Python | ghostwriter/users/forms.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | 1 | 2022-02-04T20:24:35.000Z | 2022-02-04T20:24:35.000Z | ghostwriter/users/forms.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | null | null | null | ghostwriter/users/forms.py | bbhunter/Ghostwriter | 1b684ddd119feed9891e83b39c9b314b41d086ca | [
"BSD-3-Clause"
] | null | null | null | """This contains all of the forms used by the Users application."""
# Django Imports
from django.contrib.admin.widgets import FilteredSelectMultiple
from django.contrib.auth import forms, get_user_model
from django.contrib.auth.forms import UserChangeForm
from django.contrib.auth.models import Group
from django.core.e... | 33 | 151 | 0.60951 | 459 | 4,059 | 5.270153 | 0.357298 | 0.028938 | 0.029764 | 0.028111 | 0.120711 | 0.060356 | 0.060356 | 0.060356 | 0.060356 | 0.060356 | 0 | 0.004773 | 0.277408 | 4,059 | 122 | 152 | 33.270492 | 0.81998 | 0.136487 | 0 | 0.160494 | 0 | 0 | 0.132743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061728 | false | 0 | 0.111111 | 0 | 0.296296 | 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 |
b5a405be96095986ee0bca6128c66be907263013 | 5,119 | py | Python | nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 54 | 2020-03-04T17:37:17.000Z | 2022-02-22T13:16:10.000Z | nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 9 | 2020-08-26T13:17:54.000Z | 2021-11-09T09:02:00.000Z | nxsdk_modules_contrib/pelenet/pelenet/utils/spikes.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 26 | 2020-03-18T17:09:34.000Z | 2021-11-22T16:23:14.000Z | import numpy as np
import scipy.linalg as la
from statsmodels.tsa.api import SimpleExpSmoothing, Holt
"""
@desc: From activity probe, calculate spike patterns
"""
def getSpikesFromActivity(self, activityProbes):
# Get number of probes (equals number of used cores)
numProbes = np.shape(activityProbes)[0]
# ... | 31.99375 | 116 | 0.66302 | 657 | 5,119 | 5.150685 | 0.252664 | 0.01448 | 0.008865 | 0.016253 | 0.345154 | 0.345154 | 0.31383 | 0.291371 | 0.291371 | 0.291371 | 0 | 0.012462 | 0.231881 | 5,119 | 159 | 117 | 32.194969 | 0.848169 | 0.268412 | 0 | 0.253521 | 0 | 0 | 0.02013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112676 | false | 0 | 0.042254 | 0 | 0.309859 | 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 |
b5a44828d5483c6c45161cfac8ca00bdef446848 | 102 | py | Python | Ex066.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | Ex066.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | Ex066.py | leonardoDelefrate/Curso-de-Python | 60313563c4d40f24a318a6d24da941730f04b8b0 | [
"MIT"
] | null | null | null | lanche = ('Hamburguer', 'Suco', 'Pizza', 'Pudim')
for c in range(0, len(lanche)):
print(lanche[c]) | 34 | 49 | 0.617647 | 15 | 102 | 4.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.147059 | 102 | 3 | 50 | 34 | 0.712644 | 0 | 0 | 0 | 0 | 0 | 0.23301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b5a5c87aa9d81229a227e759c198a1d1b4eb7d1c | 43 | py | Python | backend/soap/config.py | stepanov1997/mdp-backend | 32cae4ab8c1949c27278fc493ff4a77c03d0d860 | [
"MIT"
] | null | null | null | backend/soap/config.py | stepanov1997/mdp-backend | 32cae4ab8c1949c27278fc493ff4a77c03d0d860 | [
"MIT"
] | null | null | null | backend/soap/config.py | stepanov1997/mdp-backend | 32cae4ab8c1949c27278fc493ff4a77c03d0d860 | [
"MIT"
] | null | null | null | SOAP_HOST = '127.0.0.1'
SOAP_PORT = 8083
| 14.333333 | 24 | 0.651163 | 9 | 43 | 2.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.186047 | 43 | 2 | 25 | 21.5 | 0.457143 | 0 | 0 | 0 | 0 | 0 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b5a74044f5f2241591f7f602964eb017fc2ac290 | 6,429 | py | Python | src/bst.py | tranduythanh/algorithm-in-python | b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a | [
"MIT"
] | null | null | null | src/bst.py | tranduythanh/algorithm-in-python | b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a | [
"MIT"
] | null | null | null | src/bst.py | tranduythanh/algorithm-in-python | b883ea0bc4dcd46b9a9f72f0ca3786aa3545f58a | [
"MIT"
] | null | null | null | from visualize import pprint
class Node:
def __init__(self, key):
self.left = None
self.right = None
self.val = key
def __repr__(self):
ptr = id(self)
ret = f'{ptr}:'
if self.left:
ret = f'{ret} {self.left.val}'
else:
ret = f'{ret... | 27.474359 | 63 | 0.492767 | 770 | 6,429 | 3.923377 | 0.11039 | 0.057597 | 0.029791 | 0.033102 | 0.461106 | 0.359484 | 0.265475 | 0.209202 | 0.139027 | 0.106587 | 0 | 0.00187 | 0.417639 | 6,429 | 233 | 64 | 27.592275 | 0.805021 | 0.053196 | 0 | 0.473404 | 0 | 0 | 0.013999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159574 | false | 0 | 0.005319 | 0.047872 | 0.404255 | 0.010638 | 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 |
b5a768c1e95c0cadc94391b379feeeb1bdde832a | 560 | py | Python | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | null | null | null | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | 10 | 2017-11-23T18:28:11.000Z | 2021-06-10T19:53:06.000Z | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-12-02 20:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0006_auto_20171126_1433'),
]
operations = [
migrations.AddField(
... | 26.666667 | 162 | 0.621429 | 61 | 560 | 5.52459 | 0.754098 | 0.065282 | 0.118694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081019 | 0.228571 | 560 | 20 | 163 | 28 | 0.699074 | 0.121429 | 0 | 0 | 1 | 0 | 0.206544 | 0.047035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5a8ce20825359ee43189cb3855431dba7b2a76f | 424 | py | Python | structural/adapter/test_client.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | structural/adapter/test_client.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | structural/adapter/test_client.py | pascalweiss/gof_design_patterns | d142ebf21bb1a1e7925b0e7915eb6d857df58299 | [
"Apache-2.0"
] | null | null | null | import unittest
from hamcrest import equal_to, assert_that
from structural.adapter.adapter import InvokerTargetAdapter
from structural.adapter.target import InvokerTarget
def target_invoker(target: InvokerTarget):
return target.request()
class TestClient(unittest.TestCase):
def test(self):
target =... | 26.5 | 79 | 0.785377 | 48 | 424 | 6.8125 | 0.520833 | 0.042813 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 424 | 15 | 80 | 28.266667 | 0.898352 | 0 | 0 | 0 | 0 | 0 | 0.051887 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
b5aa67663a42b92a7d170586d7626bb2aa4c2ae4 | 350 | py | Python | problems/reverse-words-in-string/reverse-words-in-string.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 1,571 | 2015-12-09T14:08:47.000Z | 2022-03-30T21:34:36.000Z | problems/reverse-words-in-string/reverse-words-in-string.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 117 | 2015-10-22T05:59:19.000Z | 2021-09-17T00:14:38.000Z | problems/reverse-words-in-string/reverse-words-in-string.py | vidyadeepa/the-coding-interview | 90171b77b6884176a6c28bdccb5d45bd6929b489 | [
"MIT"
] | 452 | 2015-10-21T23:00:58.000Z | 2022-03-18T21:16:50.000Z | import re
def reverse_str(string):
string = string.strip()
string = re.sub("\s+", " ", string)
result = [word[::-1] for word in string[::-1].split(" ")]
return " ".join(result)
# "degree CS":
print reverse_str(" CS degree")
print reverse_str("CS degree")
print reverse_str("CS degree ")
print re... | 23.333333 | 61 | 0.614286 | 48 | 350 | 4.375 | 0.416667 | 0.238095 | 0.285714 | 0.32381 | 0.438095 | 0.438095 | 0.438095 | 0.438095 | 0.438095 | 0.438095 | 0 | 0.00722 | 0.208571 | 350 | 14 | 62 | 25 | 0.750903 | 0.034286 | 0 | 0.4 | 0 | 0 | 0.167164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.4 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b5aa825a7935ba4d77fce082856c1d3665daa828 | 36 | py | Python | tests/__init__.py | SachinLouw/Design | a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe | [
"MIT"
] | null | null | null | tests/__init__.py | SachinLouw/Design | a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe | [
"MIT"
] | null | null | null | tests/__init__.py | SachinLouw/Design | a49c841f9a3e27e2a1ac3edde3c14bb8fdfcabfe | [
"MIT"
] | 1 | 2020-09-26T17:14:51.000Z | 2020-09-26T17:14:51.000Z | """Unit test package for Design."""
| 18 | 35 | 0.666667 | 5 | 36 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 36 | 1 | 36 | 36 | 0.774194 | 0.805556 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
b5ab0cc6d56f4bb448790870183992c30226988d | 405 | py | Python | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | null | null | null | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | 12 | 2019-02-03T07:54:32.000Z | 2022-03-11T23:33:19.000Z | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | 2 | 2018-12-28T11:38:17.000Z | 2019-09-11T22:45:04.000Z | # Generated by Django 2.1.3 on 2019-05-05 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0011_remove_team_position'),
]
operations = [
migrations.AddField(
model_name='team',
name='title',
... | 21.315789 | 75 | 0.604938 | 45 | 405 | 5.311111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071672 | 0.276543 | 405 | 18 | 76 | 22.5 | 0.744027 | 0.111111 | 0 | 0 | 1 | 0 | 0.142458 | 0.069832 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5ad8a76a11325ddca7cdc3828c5aa0284e06719 | 1,926 | py | Python | ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | ontology_learning/data_type/knowledge_graph/knowledge_graph_node.py | jromero132/bachelor_thesis_code | 1eea2876abdece9628d6fdec115e93bbf2722e99 | [
"MIT"
] | null | null | null | from ..annotation.attribute import Attribute
from ..annotation.relation import Relation
from .knowledge_graph_edge import KnowledgeGraphEdge
from ontology_learning.utils.hash import get_hash
class KnowledgeGraphNode(object):
def __init__(self, label, type_):
self.label = " ".join(sorted(set(label.split(" "))))
se... | 30.571429 | 97 | 0.731568 | 234 | 1,926 | 5.636752 | 0.269231 | 0.036391 | 0.033359 | 0.065959 | 0.090978 | 0.090978 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141225 | 1,926 | 63 | 98 | 30.571429 | 0.795647 | 0 | 0 | 0 | 0 | 0 | 0.053451 | 0.021277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.078431 | 0.098039 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
b5af94b7bf661eb528749316c8d0360da97313c8 | 1,023 | py | Python | pythonModules/plugin_showRainbowAllLEDs.py | mhoelzner/BinaryClock_RP | 3dcd6c9369b827c4228c90c8c4da6dd9c21ab632 | [
"MIT"
] | null | null | null | pythonModules/plugin_showRainbowAllLEDs.py | mhoelzner/BinaryClock_RP | 3dcd6c9369b827c4228c90c8c4da6dd9c21ab632 | [
"MIT"
] | null | null | null | pythonModules/plugin_showRainbowAllLEDs.py | mhoelzner/BinaryClock_RP | 3dcd6c9369b827c4228c90c8c4da6dd9c21ab632 | [
"MIT"
] | null | null | null | from neopixel import Color
import time
class ShowRainbowAllLEDs():
def __init__(self, strip, config):
self.strip = strip
self.configuration = config
def wheel(self, pos):
"""Generate rainbow colors across 0-255 positions."""
if pos < 85:
return Color(pos * 3, 255... | 26.230769 | 72 | 0.507331 | 119 | 1,023 | 4.327731 | 0.428571 | 0.046602 | 0.040777 | 0.062136 | 0.178641 | 0.135922 | 0.135922 | 0 | 0 | 0 | 0 | 0.06891 | 0.390029 | 1,023 | 38 | 73 | 26.921053 | 0.75641 | 0.095797 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.423077 | 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 |
b5b10a9848f882ce50edffdefcb5be881ccbdc3f | 347 | py | Python | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | '''Problem 29 from project Euler: Distinct powers
https://projecteuler.net/problem=29'''
RESULT = 9183
def solve():
'''Main function'''
vals = set()
limit = 100
for i in xrange(2, limit + 1):
for j in xrange(2, limit + 1):
vals.add(i**j)
return len(vals)
if __name__ == '__... | 16.52381 | 49 | 0.579251 | 48 | 347 | 4.020833 | 0.6875 | 0.093264 | 0.093264 | 0.145078 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.273775 | 347 | 20 | 50 | 17.35 | 0.706349 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5b23767bc452d1d161330f945974af76c7faa29 | 3,337 | py | Python | tronx/modules/group.py | TronUb/Tron | 55b5067a34cf2849913647533d7d035cab64568e | [
"MIT"
] | 4 | 2022-03-07T07:27:04.000Z | 2022-03-29T05:59:57.000Z | tronx/modules/group.py | TronUb/Tron | 55b5067a34cf2849913647533d7d035cab64568e | [
"MIT"
] | null | null | null | tronx/modules/group.py | TronUb/Tron | 55b5067a34cf2849913647533d7d035cab64568e | [
"MIT"
] | 3 | 2022-03-05T15:24:51.000Z | 2022-03-14T08:48:05.000Z | import asyncio
from pyrogram.raw import functions
from pyrogram.types import Message
from tronx import app, gen
app.CMD_HELP.update(
{"group" : (
"group",
{
"bgroup [group name]" : "Creates a basic group.",
"sgroup [group name]" : "Creates a super group.",
"unread" : "Mark a chat as unread in your tele... | 26.275591 | 145 | 0.66407 | 503 | 3,337 | 4.326044 | 0.214712 | 0.084559 | 0.066176 | 0.088235 | 0.559283 | 0.518842 | 0.463235 | 0.463235 | 0.399816 | 0.399816 | 0 | 0.011527 | 0.168115 | 3,337 | 126 | 146 | 26.484127 | 0.772334 | 0.002397 | 0 | 0.49 | 0 | 0.02 | 0.269312 | 0.034265 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.07 | 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 |
b5b452ab3b7a17e033f9002b103343c10716d627 | 27 | py | Python | my_env/lib/python3.6/site-packages/affine/tests/__init__.py | wilsonfilhodev/gis | 65926fd36460a7a3590ef7511ccae1d64e3d9988 | [
"MIT"
] | 121 | 2015-03-26T15:40:37.000Z | 2021-10-10T14:19:06.000Z | my_env/lib/python3.6/site-packages/affine/tests/__init__.py | wilsonfilhodev/gis | 65926fd36460a7a3590ef7511ccae1d64e3d9988 | [
"MIT"
] | 53 | 2015-06-01T23:44:58.000Z | 2020-12-14T15:40:47.000Z | my_env/lib/python3.6/site-packages/affine/tests/__init__.py | wilsonfilhodev/gis | 65926fd36460a7a3590ef7511ccae1d64e3d9988 | [
"MIT"
] | 24 | 2015-06-01T19:30:21.000Z | 2021-08-13T19:47:41.000Z | """Affine tests package"""
| 13.5 | 26 | 0.666667 | 3 | 27 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.75 | 0.740741 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b5b4862f7fdb7c41318549c096be4b0001eba966 | 109,366 | py | Python | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | 1 | 2021-07-15T01:02:15.000Z | 2021-07-15T01:02:15.000Z | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | 1 | 2021-07-15T01:11:26.000Z | 2021-09-24T01:06:45.000Z | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | null | null | null | from IPython.display import display, HTML
import time
import math
import re
import sys
import inspect
"""
Original Created at: 23rd October 2018
by: Tolga Atam
v2.1.0 Updated at: 15th March 2021
by: Tolga Atam
Module for drawing classic Turtle figures on Google Colab notebooks.
It uses html capabilit... | 44.206144 | 1,897 | 0.586517 | 13,776 | 109,366 | 4.563589 | 0.097706 | 0.015111 | 0.010689 | 0.011071 | 0.461857 | 0.407998 | 0.35091 | 0.307024 | 0.275387 | 0.260005 | 0 | 0.03235 | 0.297917 | 109,366 | 2,473 | 1,898 | 44.224019 | 0.786362 | 0.309328 | 0 | 0.335256 | 0 | 0.026676 | 0.179058 | 0.031544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075703 | false | 0 | 0.004326 | 0.005047 | 0.14708 | 0.001442 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5b4a7c2bcf95fde6a181a23d3adc5de69780240 | 5,152 | py | Python | benchmark/bit_task/input_pipeline.py | Fanxingye/AutoDL | 6f409aefc8b81e5fe47df57b82332c8df427875d | [
"Apache-2.0"
] | 1 | 2021-11-04T09:19:14.000Z | 2021-11-04T09:19:14.000Z | benchmark/bit_task/input_pipeline.py | Fanxingye/AutoDL | 6f409aefc8b81e5fe47df57b82332c8df427875d | [
"Apache-2.0"
] | null | null | null | benchmark/bit_task/input_pipeline.py | Fanxingye/AutoDL | 6f409aefc8b81e5fe47df57b82332c8df427875d | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 38.162963 | 103 | 0.606366 | 635 | 5,152 | 4.711811 | 0.297638 | 0.048128 | 0.048128 | 0.037433 | 0.225267 | 0.142045 | 0.090241 | 0.090241 | 0.090241 | 0.090241 | 0 | 0.011242 | 0.29212 | 5,152 | 134 | 104 | 38.447761 | 0.809158 | 0.209627 | 0 | 0.204819 | 0 | 0 | 0.03733 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0 | 0.060241 | 0 | 0.180723 | 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 |
b5b4c824ddba4f2d18052e43c4be91b69f16e79d | 5,997 | py | Python | accrpc/maps.py | manucabral/accrpc | 8b8f3d47751732706570fded73cdc64bf1edb41d | [
"MIT"
] | 3 | 2022-01-18T01:11:21.000Z | 2022-01-25T01:04:42.000Z | accrpc/maps.py | manucabral/accrpc | 8b8f3d47751732706570fded73cdc64bf1edb41d | [
"MIT"
] | null | null | null | accrpc/maps.py | manucabral/accrpc | 8b8f3d47751732706570fded73cdc64bf1edb41d | [
"MIT"
] | null | null | null | from ctypes import Structure, sizeof, c_int, c_int32, c_float, c_wchar
# Credits
# https://github.com/dabde/acc_shared_mem_access_python
# https://github.com/rrennoir/PyAccSharedMemory
class Statics(Structure):
_fields_ = [
("smVersion", c_wchar * 15),
("acVersion", c_wchar * 15),
("number... | 32.416216 | 70 | 0.516925 | 592 | 5,997 | 4.925676 | 0.334459 | 0.162551 | 0.062414 | 0.00823 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017703 | 0.302985 | 5,997 | 184 | 71 | 32.592391 | 0.679904 | 0.017842 | 0 | 0.028571 | 0 | 0 | 0.303262 | 0.022766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005714 | 0 | 0.04 | 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 |
b5b4c9c1dbb3216905a27aa4ce2edea78394a9e2 | 2,554 | py | Python | scripts/plot_fc_bc.py | dpmerrell/TrialMDP-analyses | 07e7d2b8aa918e6d314a315be487afc28659a00e | [
"MIT"
] | null | null | null | scripts/plot_fc_bc.py | dpmerrell/TrialMDP-analyses | 07e7d2b8aa918e6d314a315be487afc28659a00e | [
"MIT"
] | null | null | null | scripts/plot_fc_bc.py | dpmerrell/TrialMDP-analyses | 07e7d2b8aa918e6d314a315be487afc28659a00e | [
"MIT"
] | null | null | null |
import matplotlib.pyplot as plt
import script_util as su
import pandas as pd
import numpy as np
import argparse
def get_score(tsv_file, pA, pB, score_name):
df = pd.read_csv(tsv_file, sep="\t")
df.set_index(["pA", "pB"], inplace=True)
return float(df.loc[(pA, pB), score_name])
def get_N(tsv_file, pA,... | 27.462366 | 82 | 0.583399 | 388 | 2,554 | 3.613402 | 0.255155 | 0.022825 | 0.054922 | 0.03709 | 0.268188 | 0.098431 | 0.075606 | 0.075606 | 0.075606 | 0.075606 | 0 | 0.002644 | 0.259593 | 2,554 | 92 | 83 | 27.76087 | 0.738763 | 0.028191 | 0 | 0.070175 | 0 | 0 | 0.046774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.087719 | 0 | 0.22807 | 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 |
b5b5bab4def1ed3509dd85a680dfad03dc1b2fa0 | 5,466 | py | Python | pyai/search/minimax.py | bpesquet/pyai | 09f6e9989c9c3d3619b45a0aab2bd363141dfe58 | [
"MIT"
] | null | null | null | pyai/search/minimax.py | bpesquet/pyai | 09f6e9989c9c3d3619b45a0aab2bd363141dfe58 | [
"MIT"
] | null | null | null | pyai/search/minimax.py | bpesquet/pyai | 09f6e9989c9c3d3619b45a0aab2bd363141dfe58 | [
"MIT"
] | null | null | null | """
Minimax algorithm with alpha-beta pruning applied to the Connect 4 game.
Inspired by https://youtu.be/l-hh51ncgDI
"""
import os
import copy
import math
def minimax(game, depth, maximize, alpha=None, beta=None):
"""Minimax algorithm, using (optionally) alpha-beta pruning."""
if depth == 0:
# Max... | 32.730539 | 89 | 0.612697 | 747 | 5,466 | 4.382865 | 0.231593 | 0.058644 | 0.023824 | 0.021381 | 0.229383 | 0.154246 | 0.148748 | 0.132254 | 0.132254 | 0.132254 | 0 | 0.012652 | 0.291438 | 5,466 | 166 | 90 | 32.927711 | 0.832171 | 0.374131 | 0 | 0.089744 | 0 | 0 | 0.005738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.038462 | 0 | 0.282051 | 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 |
b5b7e6c47eafcf7703a0e022d44052d760708267 | 2,346 | py | Python | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 23 | 2015-08-25T19:40:18.000Z | 2020-12-27T09:23:06.000Z | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | null | null | null | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 8 | 2016-05-18T20:13:06.000Z | 2020-11-03T16:09:50.000Z | import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--group")
args = parser.parse_args()
import yaml
import numpy as np
from lfd import registration, tps
import os.path as osp
tps.VERBOSE=False
np.seterr(all='raise')
np.set_printoptions(precision=3)
def axisanglepart(m):
if np.linalg.det(... | 36.092308 | 130 | 0.617221 | 369 | 2,346 | 3.791328 | 0.373984 | 0.008578 | 0.012866 | 0.030021 | 0.1594 | 0.130808 | 0.130808 | 0.092209 | 0.075768 | 0 | 0 | 0.037652 | 0.230179 | 2,346 | 64 | 131 | 36.65625 | 0.736988 | 0.01364 | 0 | 0 | 0 | 0 | 0.059282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.134615 | null | null | 0.173077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5b832c7207c148b4f89c1e17e84f452793c1e36 | 3,397 | py | Python | src/preparation/2_prepare_0_tokens.py | wietsedv/gpt2-recycle | 7d1dbac01f111d87445de5b950c88971c0a1b733 | [
"Apache-2.0"
] | 42 | 2020-12-11T09:21:10.000Z | 2022-02-20T01:44:32.000Z | src/preparation/2_prepare_0_tokens.py | wietsedv/gpt2-recycle | 7d1dbac01f111d87445de5b950c88971c0a1b733 | [
"Apache-2.0"
] | 2 | 2020-12-15T14:40:33.000Z | 2021-08-02T07:04:42.000Z | src/preparation/2_prepare_0_tokens.py | wietsedv/gpt2-recycle | 7d1dbac01f111d87445de5b950c88971c0a1b733 | [
"Apache-2.0"
] | 5 | 2020-12-13T16:03:03.000Z | 2021-08-09T14:18:37.000Z | from argparse import ArgumentParser
from pathlib import Path
import pickle
import os
from tqdm import tqdm
from tokenizers import Tokenizer
from tokenizers.processors import RobertaProcessing
from transformers import AutoTokenizer
def init_tokenizer(lang, n, m):
if n is None and m is None:
print('size no... | 30.603604 | 79 | 0.578746 | 411 | 3,397 | 4.649635 | 0.306569 | 0.029304 | 0.041863 | 0.039246 | 0.186813 | 0.132391 | 0.03977 | 0 | 0 | 0 | 0 | 0.001664 | 0.292317 | 3,397 | 110 | 80 | 30.881818 | 0.792845 | 0 | 0 | 0.151163 | 0 | 0 | 0.158669 | 0.02826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.197674 | 0.081395 | 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 |
b5b8963f6516bffc7a6999cc9be33b3103b93631 | 1,175 | py | Python | src/notifi/consumers.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | null | null | null | src/notifi/consumers.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | 7 | 2021-03-19T10:46:09.000Z | 2022-03-12T00:28:55.000Z | src/notifi/consumers.py | earth-emoji/love | 3617bd47c396803c411e136b3e1de87c18e03890 | [
"BSD-2-Clause"
] | null | null | null | from channels.generic.websocket import WebsocketConsumer
import json
from asgiref.sync import async_to_sync
class NotificationConsumer(WebsocketConsumer):
# Function to connect to the websocket
def connect(self):
# Checking if the User is logged in
if self.scope["user"].is_anonymous:
... | 43.518519 | 199 | 0.685106 | 168 | 1,175 | 4.720238 | 0.470238 | 0.045397 | 0.065574 | 0.040353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241702 | 1,175 | 27 | 200 | 43.518519 | 0.890011 | 0.440851 | 0 | 0.133333 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.466667 | 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 |
a9085ff8566d990dfd43c879277cd4b73db4ecb9 | 185 | py | Python | exercicios1/ex017A_hypotensue.py | GabrielaCardosoSilva/python | 51d2733c3f3378427f025633d7d0d623fb6c2d73 | [
"MIT"
] | 1 | 2021-12-21T21:46:31.000Z | 2021-12-21T21:46:31.000Z | exercicios1/ex017A_hypotensue.py | GabrielaCardosoSilva/python | 51d2733c3f3378427f025633d7d0d623fb6c2d73 | [
"MIT"
] | null | null | null | exercicios1/ex017A_hypotensue.py | GabrielaCardosoSilva/python | 51d2733c3f3378427f025633d7d0d623fb6c2d73 | [
"MIT"
] | null | null | null | co = float(input('Comprimento do cateto oposto: '))
ca = float(input('Comprimento do cateto adjacente: '))
hy = ((co**2 + ca**2) ** (1/2))
print('A hipotenusa mede {:.2f}'.format(hy))
| 30.833333 | 54 | 0.632432 | 28 | 185 | 4.178571 | 0.642857 | 0.17094 | 0.358974 | 0.393162 | 0.495727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0.140541 | 185 | 5 | 55 | 37 | 0.704403 | 0 | 0 | 0 | 0 | 0 | 0.47027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a90935ea9eaeec17fd69395a2c757ba3a6870196 | 45 | py | Python | chapter03/array.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | 17 | 2016-08-12T13:15:43.000Z | 2021-03-22T13:35:33.000Z | chapter03/array.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | null | null | null | chapter03/array.py | gothedistance/python-book | 18d82b96e8336e2a26608e25b2c2424e19dab2a3 | [
"MIT"
] | 13 | 2016-08-12T13:31:47.000Z | 2021-01-28T11:06:48.000Z | array = [1,2,3]
for v in array:
print(v)
| 11.25 | 15 | 0.555556 | 10 | 45 | 2.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.266667 | 45 | 3 | 16 | 15 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a909774bf8b8ead0a6b26b707982f6f0737bb165 | 1,479 | py | Python | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | null | null | null | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | 21 | 2015-05-30T16:17:02.000Z | 2015-07-29T17:30:12.000Z | animations/vertical/vanimation.py | juliendelplanque/lcddaemon | 77fe0587fe88418aa72897c3a60eff8e7be01372 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
import time
from animations.abstractanimation import AbstractAnimation
from animations.noanimation.noanimation import MultiLineNoAnimation
class VerticalAnimation(AbstractAnimation):
def __init__(self, driver):
# Call super class constructor.
super().__init__(driver)
... | 36.073171 | 70 | 0.676133 | 166 | 1,479 | 5.831325 | 0.343373 | 0.072314 | 0.049587 | 0.041322 | 0.454545 | 0.36157 | 0.36157 | 0.36157 | 0.36157 | 0.36157 | 0 | 0.0035 | 0.227181 | 1,479 | 40 | 71 | 36.975 | 0.843395 | 0.0595 | 0 | 0.322581 | 0 | 0 | 0.001441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.096774 | 0 | 0.354839 | 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 |
a90997632623c70526b57f88d63354bc898f0759 | 5,056 | py | Python | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | 1 | 2020-10-05T21:44:18.000Z | 2020-10-05T21:44:18.000Z | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | null | null | null | django_backbone/healthchecks/viewsets.py | Jordan-Kowal/django-backbone | 19d123adf00b3f7d22e6ef75ba6da0fe7b5e00b0 | [
"MIT"
] | null | null | null | """Viewsets for the 'healthchecks' app"""
# Built-in
import logging
from enum import Enum
from functools import wraps
from secrets import token_urlsafe
# Django
from django.core.cache import cache
from django.core.exceptions import FieldError, ImproperlyConfigured, ObjectDoesNotExist
from django.db import connection
... | 36.114286 | 87 | 0.625791 | 546 | 5,056 | 5.679487 | 0.302198 | 0.035472 | 0.014511 | 0.038697 | 0.208965 | 0.158659 | 0.158659 | 0.148017 | 0.133183 | 0.103515 | 0 | 0.008779 | 0.233979 | 5,056 | 139 | 88 | 36.374101 | 0.791893 | 0.187896 | 0 | 0.088889 | 0 | 0 | 0.134161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0 | 0.155556 | 0 | 0.411111 | 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 |
a90a3b893c4a5282243641ddfdb4b678a42dfab0 | 595 | py | Python | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null | slack-notification.py | JSourabh/codepipeline | 77b7fb5963199f7d235861a7aed68631d192147d | [
"Apache-2.0"
] | null | null | null | def send_message_to_slack(text):
from urllib import request, parse
import json
post = {"text": "{0}".format(text)}
try:
json_data = json.dumps(post)
req = request.Request("https://hooks.slack.com/services/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",
... | 31.315789 | 114 | 0.608403 | 65 | 595 | 5.446154 | 0.676923 | 0.062147 | 0.073446 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025114 | 0.263866 | 595 | 18 | 115 | 33.055556 | 0.783105 | 0 | 0 | 0 | 0 | 0 | 0.278992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a90a5cf5add76b19b473f9f00bc495423c4006b7 | 2,418 | py | Python | src/adawat/transforms.py | rafidka/adawat | 81828bbea2c3d06d560d6bdbea698b2427dd9917 | [
"MIT"
] | null | null | null | src/adawat/transforms.py | rafidka/adawat | 81828bbea2c3d06d560d6bdbea698b2427dd9917 | [
"MIT"
] | 4 | 2020-08-02T23:50:50.000Z | 2020-08-29T02:19:34.000Z | src/adawat/transforms.py | rafidka/adawat | 81828bbea2c3d06d560d6bdbea698b2427dd9917 | [
"MIT"
] | null | null | null | from typing import Any, TypeVar, Generic, Callable, List
import numpy as np
import torch
class Compose(object):
"""
Compose multiple transforms together, applying the first, then the second,
and so on until the last.
"""
def __init__(self, *args):
self.transforms = args
def __call__... | 26.282609 | 79 | 0.61828 | 298 | 2,418 | 4.865772 | 0.302013 | 0.055862 | 0.037931 | 0.03931 | 0.395172 | 0.362069 | 0.293793 | 0.245517 | 0.245517 | 0.245517 | 0 | 0.009765 | 0.279983 | 2,418 | 91 | 80 | 26.571429 | 0.82309 | 0.277916 | 0 | 0.175 | 0 | 0 | 0.005707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.075 | 0.05 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a90b6c7a5acda4657cfa1d865f79e1eaf7650120 | 1,701 | py | Python | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | null | null | null | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | 93 | 2020-05-19T18:14:12.000Z | 2022-03-29T00:26:39.000Z | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | 1 | 2020-11-21T20:24:35.000Z | 2020-11-21T20:24:35.000Z | # Generated by Django 3.0.6 on 2020-05-09 11:51
import django.contrib.postgres.fields
from django.db import migrations, models
import apps.attachment.models.attachment
class Migration(migrations.Migration):
dependencies = [
('attachment', '0005_auto_20200507_2306'),
]
operations = [
mig... | 53.15625 | 439 | 0.661376 | 185 | 1,701 | 5.945946 | 0.427027 | 0.043636 | 0.054545 | 0.073636 | 0.330909 | 0.330909 | 0.245455 | 0.245455 | 0.245455 | 0.245455 | 0 | 0.026969 | 0.171664 | 1,701 | 31 | 440 | 54.870968 | 0.753726 | 0.026455 | 0 | 0.28 | 1 | 0 | 0.333132 | 0.060459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a90c404f04036069bd2082d181651a2189166074 | 2,788 | py | Python | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | 12 | 2018-08-02T13:40:22.000Z | 2022-03-01T09:08:32.000Z | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | null | null | null | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | 1 | 2020-10-24T13:11:13.000Z | 2020-10-24T13:11:13.000Z | import math
import os
import time
from unittest import TestCase
import mock
from tests.StubTimer import StubTimer
from tests.StubUTime import StubUTime
class TestValve(TestCase):
def setUp(self):
self.mock_machine = mock.Mock()
self.mock_utime = StubUTime()
self.mock_machine.Timer.return... | 36.684211 | 126 | 0.694763 | 413 | 2,788 | 4.457627 | 0.230024 | 0.10755 | 0.048886 | 0.082564 | 0.528517 | 0.503531 | 0.463335 | 0.326453 | 0.243889 | 0.240087 | 0 | 0.022809 | 0.197991 | 2,788 | 75 | 127 | 37.173333 | 0.800537 | 0.039096 | 0 | 0.267857 | 0 | 0 | 0.025421 | 0 | 0 | 0 | 0 | 0.013333 | 0.303571 | 1 | 0.160714 | false | 0 | 0.142857 | 0 | 0.339286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a90d8ca252bf2267c50c432c7ac883793403748f | 7,085 | py | Python | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import sys
import Pycluster as pc
from pylab import *
from collections import defaultdict
colors = ('green',
'blue',
'orange',
'cyan',
'magenta',
'red',
'yellow',
'pink',
'purple',
'brown')
def main():
"""docstring fo... | 27.784314 | 73 | 0.500494 | 857 | 7,085 | 4.061844 | 0.231039 | 0.059753 | 0.052858 | 0.022407 | 0.461936 | 0.423729 | 0.396725 | 0.370009 | 0.321172 | 0.321172 | 0 | 0.021629 | 0.36048 | 7,085 | 255 | 74 | 27.784314 | 0.746634 | 0.033169 | 0 | 0.363095 | 0 | 0 | 0.081563 | 0.005313 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005952 | 0.02381 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9110b5c0117f2af8467c6b63060a19e830d3f66 | 3,381 | py | Python | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | data/image_folder.py | VuongTuanKhanh/Brain-MRI-GAN | c115b9aa92aac9efe11710df38e0312b3a508b4c | [
"MIT"
] | null | null | null | """A modified image folder class
We modify the official PyTorch image folder (https://github.com/pytorch/vision/blob/master/torchvision/datasets/folder.py)
so that this class can load images from both current directory and its subdirectories.
"""
import torch.utils.data as data
from PIL import Image
import nibabel a... | 31.305556 | 122 | 0.631174 | 463 | 3,381 | 4.393089 | 0.332613 | 0.043265 | 0.017699 | 0.023599 | 0.108161 | 0.092429 | 0.048181 | 0.048181 | 0.048181 | 0.048181 | 0 | 0.014182 | 0.228335 | 3,381 | 107 | 123 | 31.598131 | 0.765427 | 0.070985 | 0 | 0 | 0 | 0 | 0.062221 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 1 | 0.116883 | false | 0 | 0.090909 | 0.038961 | 0.311688 | 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 |
a91339cbacf313c26ddda2e22c112331ab363a81 | 448 | py | Python | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | 1 | 2021-01-03T01:54:23.000Z | 2021-01-03T01:54:23.000Z | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | null | null | null | tests/test_powrap.py | awecx/powrap | d96763e5838d7b105a672a9dacea70e270290b22 | [
"MIT"
] | null | null | null | from pathlib import Path
import pytest
from powrap import powrap
FIXTURE_DIR = Path(__file__).resolve().parent
@pytest.mark.parametrize("po_file", (FIXTURE_DIR / "bad").glob("*.po"))
def test_fail_on_bad_wrapping(po_file):
assert powrap.check_style([po_file]) == [po_file]
@pytest.mark.parametrize("po_file", ... | 24.888889 | 72 | 0.734375 | 66 | 448 | 4.621212 | 0.393939 | 0.137705 | 0.137705 | 0.15082 | 0.518033 | 0.518033 | 0.518033 | 0.27541 | 0.27541 | 0 | 0 | 0 | 0.107143 | 448 | 17 | 73 | 26.352941 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0.064732 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | 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 |
a916d3cf1a3dfecb0957b149dfe4924022d506c7 | 472 | py | Python | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of cryptidy module
"""
The cryptidy module wraps PyCrpytodome(x) functions into simple
symmetric and asymmetric functions
"""
__intname__ = "cryptidy"
__author__ = "Orsiris de Jong"
__copyright__ = "Copyright (C) 2018-2021 Orsiris de Jong"
__descri... | 24.842105 | 83 | 0.739407 | 60 | 472 | 5.35 | 0.816667 | 0.087227 | 0.080997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057644 | 0.154661 | 472 | 18 | 84 | 26.222222 | 0.746867 | 0.381356 | 0 | 0 | 0 | 0 | 0.540925 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9183d49bf73710dff21d0bf9ba6860835767866 | 5,323 | pyw | Python | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | null | null | null | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | 1 | 2019-04-13T14:47:06.000Z | 2019-04-14T13:22:31.000Z | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | null | null | null | import praw
import ctypes
import shutil
import requests
import requests_cache
from PIL import Image
import os
import io
requests_cache.install_cache('bg_cache')
filepath = "reddit.creds.txt"
with open(filepath, "r") as fin:
client_id = fin.readline().replace("\n", "")
# TODO: update code to accept... | 42.927419 | 115 | 0.507233 | 540 | 5,323 | 4.909259 | 0.335185 | 0.037344 | 0.018861 | 0.037722 | 0.195398 | 0.164466 | 0.164466 | 0.152018 | 0.065258 | 0.049793 | 0 | 0.014624 | 0.396205 | 5,323 | 123 | 116 | 43.276423 | 0.810205 | 0.122863 | 0 | 0.20202 | 0 | 0 | 0.082966 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 1 | 0.050505 | false | 0.070707 | 0.080808 | 0 | 0.171717 | 0.070707 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a91c4d71080e49a5432f9894381a21354fd82539 | 6,450 | py | Python | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | benchmark.py | kwang2049/benchmarking-ann | 8b98331181286ace0216c7079a38af337a65557d | [
"Apache-2.0"
] | null | null | null | import json
import faiss
import pickle
import os
import tqdm
import numpy as np
import argparse
import time
from functools import wraps
parser = argparse.ArgumentParser()
parser.add_argument('--d', type=int, default=768, help='dimension size')
parser.add_argument('--buffer_size', type=int, default=50000)
parser.add_ar... | 36.647727 | 106 | 0.666667 | 912 | 6,450 | 4.52193 | 0.218202 | 0.050921 | 0.025218 | 0.038797 | 0.394762 | 0.365179 | 0.343113 | 0.294374 | 0.275461 | 0.189622 | 0 | 0.009256 | 0.179225 | 6,450 | 175 | 107 | 36.857143 | 0.769739 | 0.052713 | 0 | 0.243056 | 0 | 0 | 0.118381 | 0.027487 | 0 | 0 | 0 | 0 | 0.034722 | 1 | 0.069444 | false | 0 | 0.0625 | 0 | 0.201389 | 0.048611 | 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 |
a91cd484fb7ee6f69e7e02fdf7a857174e746328 | 295 | py | Python | Labs/Wave_3_labs/unzip.py | Babawale/WeJapaInternship | 0a8ada12c08d5129934868b0e2c80d72f3045ed0 | [
"MIT"
] | null | null | null | Labs/Wave_3_labs/unzip.py | Babawale/WeJapaInternship | 0a8ada12c08d5129934868b0e2c80d72f3045ed0 | [
"MIT"
] | null | null | null | Labs/Wave_3_labs/unzip.py | Babawale/WeJapaInternship | 0a8ada12c08d5129934868b0e2c80d72f3045ed0 | [
"MIT"
] | null | null | null | #Unzip Tuples
#Unzip the cast tuple into two names and heights tuples.
cast = (("Barney", 72), ("Robin", 68), ("Ted", 72), ("Lily", 66), ("Marshall", 76))
# define names and heights here
names, heights = zip(*cast) # unzips cast into two tuples(names and heights)
print(names)
print(heights)
| 26.818182 | 83 | 0.677966 | 44 | 295 | 4.545455 | 0.545455 | 0.12 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.159322 | 295 | 10 | 84 | 29.5 | 0.766129 | 0.488136 | 0 | 0 | 0 | 0 | 0.176871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
a9243210b5050d1609507b8edecbe58a2ea18c39 | 2,243 | py | Python | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 126 | 2015-03-24T17:37:33.000Z | 2022-03-29T18:37:39.000Z | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 1,815 | 2015-03-16T21:01:30.000Z | 2019-09-09T18:47:29.000Z | meta/management/commands/bulkcreateusers.py | mepsd/CLAC | ee15111e9ad12e51fe349d3339319e30b3b69d9e | [
"CC0-1.0"
] | 69 | 2015-03-27T23:44:26.000Z | 2021-02-14T09:45:28.000Z | import djclick as click
from django.contrib.auth.models import User, Group
from django.db import transaction
from django.core.management.base import CommandError
class DryRunFinished(Exception):
pass
def get_or_create_users(email_addresses):
users = []
for email in email_addresses:
if not email... | 31.591549 | 78 | 0.623718 | 276 | 2,243 | 4.98913 | 0.398551 | 0.050835 | 0.026144 | 0.023239 | 0.079884 | 0.079884 | 0 | 0 | 0 | 0 | 0 | 0.000616 | 0.27597 | 2,243 | 70 | 79 | 32.042857 | 0.847291 | 0.11547 | 0 | 0.096154 | 0 | 0 | 0.153374 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0.019231 | 0.076923 | 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 |
a92832dc73ab475a159970bd2c9e45e28feec5c7 | 544 | py | Python | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | args.py | Pragyanstha/ImageRecognition | 94626185b24ef1406896c81f5a583a5e1898ae29 | [
"MIT"
] | null | null | null | import configargparse
def parse(commands = None):
p = configargparse.ArgParser()
p.add('-c', '--config', is_config_file = True)
p.add('--mode', default='test', type=str)
p.add('--num_cosines', type = int)
p.add('--dim_subspace', type = int)
p.add('--dim_diffspace', type = int)
p.add('--meth... | 27.2 | 50 | 0.582721 | 76 | 544 | 4.078947 | 0.460526 | 0.116129 | 0.077419 | 0.106452 | 0.090323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220588 | 544 | 20 | 51 | 27.2 | 0.731132 | 0 | 0 | 0 | 0 | 0 | 0.172477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 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 |
a92ab375e3c0927ad6ddd2ae99cba78e73a59cc7 | 3,767 | py | Python | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 472 | 2021-12-03T03:12:55.000Z | 2022-03-31T01:33:13.000Z | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 127 | 2021-12-03T05:00:14.000Z | 2022-03-31T13:47:33.000Z | mmhuman3d/data/data_structures/human_data_cache.py | ykk648/mmhuman3d | 26af92bcf6abbe1855e1a8a48308621410f9c047 | [
"Apache-2.0"
] | 37 | 2021-12-03T03:23:22.000Z | 2022-03-31T08:41:58.000Z | from typing import List
import numpy as np
from mmhuman3d.utils.path_utils import (
Existence,
check_path_existence,
check_path_suffix,
)
from .human_data import HumanData
class HumanDataCacheReader():
def __init__(self, npz_path: str):
self.npz_path = npz_path
npz_file = np.load(np... | 35.205607 | 78 | 0.609238 | 482 | 3,767 | 4.423237 | 0.20332 | 0.075985 | 0.085366 | 0.055816 | 0.116792 | 0.090994 | 0.036585 | 0.036585 | 0.036585 | 0.036585 | 0 | 0.000383 | 0.307406 | 3,767 | 106 | 79 | 35.537736 | 0.816788 | 0.114415 | 0 | 0.052632 | 0 | 0 | 0.044245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092105 | false | 0 | 0.052632 | 0 | 0.197368 | 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 |
a92aefa88c9e1677341b516fd325e4f5ca942f90 | 10,174 | py | Python | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | code/instance_tests.py | ahillbs/minimum_scan_cover | e41718e5a8e0e3039d161800da70e56bd50a1b97 | [
"MIT"
] | null | null | null | from typing import List
import math
import configargparse
import numpy as np
import sqlalchemy
import yaml
import sys
import tqdm
from IPython import embed
from celery import group
from angular_solver import solve, bulk_solve
from database import Config, ConfigHolder, Graph, Task, TaskJobs, get_session
from solver im... | 47.32093 | 169 | 0.650285 | 1,323 | 10,174 | 4.842026 | 0.187453 | 0.023884 | 0.045114 | 0.021542 | 0.245551 | 0.214955 | 0.194661 | 0.172651 | 0.167031 | 0.151421 | 0 | 0.001959 | 0.247395 | 10,174 | 215 | 170 | 47.32093 | 0.834661 | 0.005013 | 0 | 0.158163 | 0 | 0 | 0.15659 | 0 | 0 | 0 | 0 | 0.004651 | 0.015306 | 1 | 0.045918 | false | 0.005102 | 0.071429 | 0 | 0.153061 | 0.015306 | 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 |
a92c71e28235d4a2efca0061d489e377536349be | 322 | py | Python | distrib/kotlin_kernel/detect_jars_location.py | strangepleasures/kotlin-jupyter | 01b5d4327422919305a7538e331cee7e3762fe49 | [
"Apache-2.0"
] | 512 | 2019-11-28T08:39:23.000Z | 2022-03-31T01:49:27.000Z | distrib/kotlin_kernel/detect_jars_location.py | strangepleasures/kotlin-jupyter | 01b5d4327422919305a7538e331cee7e3762fe49 | [
"Apache-2.0"
] | 177 | 2019-12-03T17:50:21.000Z | 2022-03-17T11:58:01.000Z | distrib/kotlin_kernel/detect_jars_location.py | erokhins/kotlin-jupyter | 895528926ab14f0f2d15fcbc8a88b0ea1259632a | [
"Apache-2.0"
] | 66 | 2019-12-21T20:35:53.000Z | 2022-02-14T21:34:25.000Z | import os
from typing import AnyStr
from run_kotlin_kernel.run_kernel import module_install_path
def detect_jars_location() -> None:
run_kernel_path = module_install_path()
jars_dir: AnyStr = os.path.join(run_kernel_path, "jars")
print(str(jars_dir))
if __name__ == "__main__":
detect_jars_location(... | 21.466667 | 60 | 0.757764 | 47 | 322 | 4.659574 | 0.489362 | 0.123288 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 322 | 14 | 61 | 23 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a92d996e996a1ad325d7ff8b5ebcfa9511fd291d | 78 | py | Python | value_functions/__init__.py | daniellawson9999/compositional_reinforcement_learning | aa20413485d654d29cfcaad8ddb8fd07efcafc8c | [
"MIT"
] | 7 | 2020-04-18T01:31:26.000Z | 2021-12-23T13:58:55.000Z | value_functions/__init__.py | daniellawson9999/compositional_reinforcement_learning | aa20413485d654d29cfcaad8ddb8fd07efcafc8c | [
"MIT"
] | 1 | 2020-11-17T03:39:21.000Z | 2021-05-06T04:09:24.000Z | value_functions/__init__.py | daniellawson9999/compositional_reinforcement_learning | aa20413485d654d29cfcaad8ddb8fd07efcafc8c | [
"MIT"
] | 4 | 2020-03-20T01:38:55.000Z | 2021-09-14T03:50:44.000Z | from .value_function import NNVFunction, NNQFunction, NNDiscriminatorFunction
| 39 | 77 | 0.884615 | 7 | 78 | 9.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 78 | 1 | 78 | 78 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
a92f10539fc879fc6144252e415f0ed5e662c25e | 7,679 | py | Python | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | 8 | 2019-11-13T22:26:45.000Z | 2022-03-23T15:30:37.000Z | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | null | null | null | frads/room.py | LBNL-ETA/frads | dbd9980c7cfebd363089180d8fb1b7107e73ec92 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-08-10T18:22:04.000Z | 2021-08-30T23:16:27.000Z | """Generic room model"""
import argparse
import os
from frads import radgeom
from frads import radutil, util
class Room(object):
"""Make a shoebox."""
def __init__(self, width, depth, height, origin=radgeom.Vector()):
self.width = width
self.depth = depth
self.height = height
... | 42.192308 | 90 | 0.594218 | 963 | 7,679 | 4.601246 | 0.208723 | 0.032498 | 0.018957 | 0.017603 | 0.168585 | 0.158429 | 0.130896 | 0.098172 | 0.069059 | 0.069059 | 0 | 0.012357 | 0.272822 | 7,679 | 181 | 91 | 42.425414 | 0.78116 | 0.0405 | 0 | 0.065789 | 0 | 0 | 0.101582 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 1 | 0.059211 | false | 0 | 0.026316 | 0 | 0.111842 | 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 |
a92f6dae240175ed04d97420af8139933f7227f7 | 83 | py | Python | wine/apps.py | zenith0/vinum-db | d601b1e1da6d748450f454e6f6d6803d7a4ecea8 | [
"Apache-2.0"
] | null | null | null | wine/apps.py | zenith0/vinum-db | d601b1e1da6d748450f454e6f6d6803d7a4ecea8 | [
"Apache-2.0"
] | null | null | null | wine/apps.py | zenith0/vinum-db | d601b1e1da6d748450f454e6f6d6803d7a4ecea8 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class WineConfig(AppConfig):
name = 'wine'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a9303881f52bbb7f52abc64facc0144ae2221c86 | 2,073 | py | Python | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 66 | 2017-07-25T04:02:59.000Z | 2022-02-24T21:15:10.000Z | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 6 | 2017-09-04T18:05:54.000Z | 2020-11-19T22:32:43.000Z | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 23 | 2017-08-28T18:18:14.000Z | 2021-11-13T06:41:52.000Z | """
python test.py my-api-key
"""
import ondemand
import sys
od = ondemand.OnDemandClient(api_key=sys.argv[1])
od.debug = True
# Get that Crypto
resp = od.crypto('^BTCUSD,^LTCUSD')
print('')
print(resp)
print('')
# Get a Quote
resp = od.quote('AAPL', 'bid,ask')
print('')
print(resp)
print('')
... | 20.939394 | 72 | 0.639653 | 246 | 2,073 | 5.349594 | 0.430894 | 0.077508 | 0.128419 | 0.148176 | 0.036474 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008499 | 0.148577 | 2,073 | 98 | 73 | 21.153061 | 0.73711 | 0.150507 | 0 | 0.459016 | 0 | 0 | 0.245432 | 0.03106 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 0.672131 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a93139d8990a5f884a5f91950142a530d39d5797 | 170 | py | Python | correctiv_auth/urls.py | correctiv/django-allauth-correctiv | 833e1f6e019834df04146c25198a93f411d66b79 | [
"MIT"
] | null | null | null | correctiv_auth/urls.py | correctiv/django-allauth-correctiv | 833e1f6e019834df04146c25198a93f411d66b79 | [
"MIT"
] | null | null | null | correctiv_auth/urls.py | correctiv/django-allauth-correctiv | 833e1f6e019834df04146c25198a93f411d66b79 | [
"MIT"
] | null | null | null | from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import CorrectivProvider
urlpatterns = default_urlpatterns(CorrectivProvider)
| 34 | 75 | 0.882353 | 17 | 170 | 8.705882 | 0.647059 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.070588 | 170 | 4 | 76 | 42.5 | 0.93038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a931b52e06e6999322f4b50a1f8d242014570def | 198 | py | Python | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | 1 | 2019-11-17T03:03:04.000Z | 2019-11-17T03:03:04.000Z | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | null | null | null | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | null | null | null | import random
def choose_random(values, k=1):
if len(values) < k:
k = len(values)
results = random.choices(values, k=k)
if k == 1:
return results[0]
return results
| 18 | 41 | 0.590909 | 29 | 198 | 4 | 0.448276 | 0.181034 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.292929 | 198 | 10 | 42 | 19.8 | 0.807143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a931b982d8994d2cd901db4713baba148c9468eb | 10,825 | py | Python | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 9 | 2019-11-03T10:15:06.000Z | 2022-02-26T06:16:10.000Z | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 2 | 2020-07-08T18:23:02.000Z | 2022-01-17T17:31:18.000Z | src/mcsdk/git/client.py | Stick97/mcsdk-automation-framework-core | 5c7cc798fd4e0d54dfb3e0b900a828db4a72034e | [
"BSD-3-Clause"
] | 5 | 2020-07-06T16:28:15.000Z | 2022-02-22T00:51:48.000Z | import os
import requests
from requests.auth import HTTPBasicAuth
from ..integration.os.process import Command
from ..integration.os.utils import chdir
class RepoClient:
""" The class handles the GIT processes """
def __init__(self, root_dir, token, owner, repo, repo_dir):
""" Git class constructor... | 33.410494 | 119 | 0.584388 | 1,267 | 10,825 | 4.828729 | 0.166535 | 0.040536 | 0.023374 | 0.020922 | 0.456522 | 0.393756 | 0.363354 | 0.320039 | 0.291435 | 0.22965 | 0 | 0.005449 | 0.304942 | 10,825 | 323 | 120 | 33.513932 | 0.807682 | 0.140416 | 0 | 0.382353 | 0 | 0 | 0.193952 | 0.010225 | 0 | 0 | 0 | 0.003096 | 0 | 1 | 0.058824 | false | 0 | 0.02451 | 0 | 0.210784 | 0.205882 | 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 |
a934ac7175537d5e0f644f854f7833119ee2a065 | 4,697 | py | Python | dfa_App/migrations/0020_auto_20200805_2155.py | aejsi5/digifaa | e178986ba556db6175ede3fa1a2c1c39489b7e68 | [
"MIT"
] | null | null | null | dfa_App/migrations/0020_auto_20200805_2155.py | aejsi5/digifaa | e178986ba556db6175ede3fa1a2c1c39489b7e68 | [
"MIT"
] | null | null | null | dfa_App/migrations/0020_auto_20200805_2155.py | aejsi5/digifaa | e178986ba556db6175ede3fa1a2c1c39489b7e68 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.1 on 2020-08-05 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dfa_App', '0019_auto_20200805_2140'),
]
operations = [
migrations.AddField(
model_name='constraint',
name='Constrain... | 59.455696 | 255 | 0.613157 | 519 | 4,697 | 5.38921 | 0.140655 | 0.130139 | 0.088309 | 0.1069 | 0.93064 | 0.93064 | 0.93064 | 0.93064 | 0.93064 | 0.878441 | 0 | 0.031668 | 0.220141 | 4,697 | 78 | 256 | 60.217949 | 0.731914 | 0.009581 | 0 | 0.652778 | 1 | 0 | 0.350108 | 0.106022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013889 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a935dc2fa82547bf6d3850ba747641cf2ca1a91f | 908,364 | py | Python | flashcards-data-service/aliok/flashcards/data_service/dictSet.py | aliok/flashcards | 9cca41e0b2ec68b329d2030160e505017fcc182c | [
"Apache-2.0"
] | 6 | 2015-11-13T22:13:24.000Z | 2021-03-25T01:30:01.000Z | flashcards-data-service/aliok/flashcards/data_service/dictSet.py | aliok/flashcards | 9cca41e0b2ec68b329d2030160e505017fcc182c | [
"Apache-2.0"
] | null | null | null | flashcards-data-service/aliok/flashcards/data_service/dictSet.py | aliok/flashcards | 9cca41e0b2ec68b329d2030160e505017fcc182c | [
"Apache-2.0"
] | 5 | 2016-02-28T22:11:05.000Z | 2020-07-31T02:06:11.000Z | #Found stateFile, trying to restore the crawler state.
dictSet_0 = [('das', u'Bearbeiten', u'editing a document'), ('der', u'Politiker', u'politician; centrist'), ('der', u'Januar', u'January'), ('der', u'August', u'August'), ('der', u'Komponist', u'composer'), ('der', u'Mai', u'May'), ('die', u'T\xfcrkei', u'T\xfcrk... | 5,937.019608 | 7,698 | 0.675164 | 122,546 | 908,364 | 5.003378 | 0.2494 | 0.039854 | 0.001507 | 0.000279 | 0.06619 | 0.04504 | 0.033208 | 0.023094 | 0.016539 | 0.012222 | 0 | 0.001959 | 0.098616 | 908,364 | 152 | 7,699 | 5,976.078947 | 0.746887 | 0.000058 | 0 | 0 | 0 | 4.748344 | 0.733205 | 0.002829 | 0 | 0 | 0 | 0 | 0.05298 | 1 | 0 | false | 0.350993 | 0.07947 | 0 | 0.07947 | 0.192053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 |
a93610cab32e285ce4c6a541e3cc023ff8fe9e1f | 25,186 | py | Python | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | 1 | 2021-10-04T19:56:25.000Z | 2021-10-04T19:56:25.000Z | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | null | null | null | src/frontend/gui/popupentry.py | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | null | null | null | from tkinter import *
from tkinter.ttk import *
from frontend.gui.widgets import ToggleFrame
from frontend.mod.automaton import *
from frontend.mod.constants import *
from frontend.mod.hyir import *
from frontend.mod.session import Session
class PopupEntry(Toplevel):
def __init__(self, parent):
Toplevel.... | 31.017241 | 92 | 0.581077 | 2,959 | 25,186 | 4.800608 | 0.095978 | 0.025343 | 0.020275 | 0.010841 | 0.590356 | 0.514185 | 0.501443 | 0.441042 | 0.418515 | 0.379585 | 0 | 0.006863 | 0.311522 | 25,186 | 812 | 93 | 31.017241 | 0.812341 | 0.165449 | 0 | 0.50533 | 0 | 0 | 0.04145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078891 | false | 0 | 0.014925 | 0 | 0.17484 | 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 |
a9363e554d610fb201aa75a84231ad4a9b284d4a | 749 | py | Python | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | 1 | 2021-10-01T09:59:22.000Z | 2021-10-01T09:59:22.000Z | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | null | null | null | MatplotLib/9_PlottingLiveDataInRealTime.py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | null | null | null | """In this code we wanna plot real-time data."""
# import random
from itertools import count
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
plt.style.use('fivethirtyeight')
x_vals = []
y_vals = []
index = count()
def animate(i):
"""Plot the gr... | 20.805556 | 59 | 0.635514 | 111 | 749 | 4.189189 | 0.558559 | 0.034409 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02906 | 0.218959 | 749 | 35 | 60 | 21.4 | 0.765812 | 0.125501 | 0 | 0.095238 | 0 | 0 | 0.129721 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 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 |
a937efbd3e11f0b5981cad6ed7badf54a6c3173d | 10,688 | py | Python | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | 1 | 2020-03-12T04:27:26.000Z | 2020-03-12T04:27:26.000Z | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | null | null | null | scripts/move_run.py | EdinburghGenomics/hesiod | 70df28714878bd57bd2e315b5b3a60f4dc56e1e3 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
import os, sys, re
import logging as L
import shutil
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from pprint import pformat, pprint
DRY_RUN = []
TALLIES = dict( runs = 0,
fastqdirs = 0 )
# Could import this from hesiod/__init__.py but I don't want the deps... | 37.900709 | 96 | 0.625561 | 1,507 | 10,688 | 4.288653 | 0.202389 | 0.054154 | 0.025994 | 0.013616 | 0.420084 | 0.337769 | 0.289339 | 0.273867 | 0.264892 | 0.219712 | 0 | 0.006104 | 0.264222 | 10,688 | 281 | 97 | 38.035587 | 0.815743 | 0.239989 | 0 | 0.224138 | 0 | 0 | 0.157237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.011494 | 0.034483 | 0 | 0.132184 | 0.005747 | 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 |
a9386e5cb5a9cdff5dcde3ebc831677dfecb0b4f | 1,478 | py | Python | run.py | pacyu/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | 5 | 2020-03-01T09:24:57.000Z | 2020-10-14T07:52:22.000Z | run.py | yomikochan/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | null | null | null | run.py | yomikochan/visualize | 0f5523ea5181af7972abb2534bb0fa8af0519125 | [
"MIT"
] | 5 | 2020-02-28T14:57:25.000Z | 2020-10-14T07:59:34.000Z | import audio_visual
import argparse
import sys
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog='Audio visualization', conflict_handler='resolve')
parser.add_argument('-e', '--effect',
help='visualization effect: 1d or 2d or 3d')
parser.add_argument('-f', '--filenam... | 38.894737 | 101 | 0.56157 | 178 | 1,478 | 4.494382 | 0.337079 | 0.10125 | 0.0825 | 0.06 | 0.2275 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0.022417 | 0.305819 | 1,478 | 37 | 102 | 39.945946 | 0.75731 | 0 | 0 | 0.242424 | 0 | 0 | 0.163957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.030303 | 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 |
a9396c4b2a5db6f805687ea1be44d44fa3d0fd9d | 1,091 | py | Python | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | null | null | null | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | 5 | 2020-06-06T01:01:48.000Z | 2021-09-22T18:16:22.000Z | feeds/tasks.py | ralphqq/rss-apifier | cd056654abf24fd178f1e5d8661cafcb3cc1236b | [
"MIT"
] | null | null | null | import logging
from celery import shared_task
from .models import Feed
@shared_task(name='fetch-entries')
def fetch_entries():
"""Fetches and saves all new entries for each RSS feed in the db.
Returns:
int: count of all RSS entries successfully saved
"""
logging.info('Fetching... | 28.710526 | 94 | 0.590284 | 133 | 1,091 | 4.721805 | 0.421053 | 0.133758 | 0.10828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001379 | 0.335472 | 1,091 | 37 | 95 | 29.486486 | 0.864828 | 0.114574 | 0 | 0.083333 | 0 | 0 | 0.26044 | 0.023077 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.208333 | 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 |
a93a4d9b6bed301ebae7d372b616b0296d0f4625 | 6,816 | py | Python | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 6 | 2021-03-18T19:27:03.000Z | 2021-09-10T10:26:15.000Z | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 3 | 2021-04-06T07:30:40.000Z | 2021-04-29T17:00:29.000Z | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 4 | 2021-04-02T10:08:15.000Z | 2021-11-16T01:26:28.000Z | ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'
}
DOCUMENTATION = '''
---
module: tetration_application_query
short_description: Search the application api for scope id's or details
version_added: '2.9'
description:
- "Search the Application API by ... | 30.841629 | 120 | 0.657424 | 811 | 6,816 | 5.381011 | 0.241677 | 0.044913 | 0.036664 | 0.020165 | 0.283914 | 0.20967 | 0.131989 | 0.090284 | 0.048121 | 0.038039 | 0 | 0.012118 | 0.261444 | 6,816 | 220 | 121 | 30.981818 | 0.854787 | 0.00983 | 0 | 0.307292 | 0 | 0 | 0.67719 | 0.049652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0.005208 | 0.020833 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a93c706774e1f4d0d457d316c78682d027154d47 | 3,831 | py | Python | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 15 | 2015-09-13T14:40:48.000Z | 2021-04-29T15:21:13.000Z | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 9 | 2015-09-07T07:57:20.000Z | 2020-12-14T07:11:59.000Z | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 10 | 2015-09-07T07:56:09.000Z | 2020-05-22T12:43:21.000Z | import datetime
import json
import os
import random
import re
import string
import unittest
from mock import patch, Mock
from six import string_types
import payjp
NOW = datetime.datetime.now()
DUMMY_CARD = {
'number': '4242424242424242',
'exp_month': NOW.month,
'exp_year': NOW.year + 4
}
DUMMY_CHARGE ... | 25.711409 | 106 | 0.640825 | 406 | 3,831 | 5.8867 | 0.344828 | 0.048954 | 0.015063 | 0.021339 | 0.067782 | 0.025105 | 0 | 0 | 0 | 0 | 0 | 0.015658 | 0.249804 | 3,831 | 148 | 107 | 25.885135 | 0.815936 | 0.006787 | 0 | 0.163462 | 0 | 0 | 0.101499 | 0.016829 | 0 | 0 | 0 | 0 | 0.009615 | 1 | 0.076923 | false | 0.057692 | 0.096154 | 0 | 0.288462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a93f9ae56030b3bb1d933321fd043f4b7c020edb | 2,473 | py | Python | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | lvancrayelynghe/dotfiles | 6cbf95368f18d26adc3520b4223157a0ed6acebc | [
"MIT"
] | 17 | 2019-03-25T23:43:40.000Z | 2022-03-08T17:56:06.000Z | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | pection/dotfiles | b93759598a601833b14d87fc38ff034f027faea0 | [
"MIT"
] | null | null | null | sublime-text-3/Packages/CommandOnSave/CommandOnSave.py | pection/dotfiles | b93759598a601833b14d87fc38ff034f027faea0 | [
"MIT"
] | 6 | 2019-03-20T18:17:22.000Z | 2020-12-11T04:38:22.000Z | import sublime
import sublime_plugin
import subprocess
import re
import time
import threading
class CommandOnSave(sublime_plugin.EventListener):
def __init__(self):
self.timeout = 2
self.timer = None
def cancel_timer(self):
if self.timer != None:
self.timer.cancel()
de... | 34.830986 | 109 | 0.608573 | 285 | 2,473 | 5.133333 | 0.249123 | 0.073821 | 0.071087 | 0.051948 | 0.467532 | 0.420369 | 0.382092 | 0.270677 | 0.270677 | 0.270677 | 0 | 0.00225 | 0.281035 | 2,473 | 70 | 110 | 35.328571 | 0.820585 | 0.02224 | 0 | 0.368421 | 0 | 0 | 0.113411 | 0.037252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175439 | false | 0 | 0.105263 | 0 | 0.315789 | 0.070175 | 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 |
a9413ba0562d76a3686a4648b8027621dd78c41b | 2,736 | py | Python | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | src/erb/_parse.py | lyy289065406/pyyaml-erb | e0723bda98fae97c3cfeb1e9377821bd88f7ea2d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : EXP
# -----------------------------------------------
import os
import re
import numbers
def _parse_dict(conf_dict) :
'''
递归解析字典值中的表达式
:param conf_dict: 原始配置字典
:return: 解析表达式后的配置字典
'''
result_dict = {}
for key, val in conf_dict.it... | 23.186441 | 83 | 0.50402 | 308 | 2,736 | 4.340909 | 0.275974 | 0.035901 | 0.040389 | 0.038145 | 0.094989 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008782 | 0.334064 | 2,736 | 117 | 84 | 23.384615 | 0.725027 | 0.142544 | 0 | 0.134328 | 0 | 0 | 0.045373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.044776 | 0 | 0.208955 | 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 |
a9420e4c78acda83f196da1eaae00337d68d7f90 | 132 | py | Python | docs/src/mkautodoc/__init__.py | kabirkhan/spacy-data-debug | 5df124d5520d5eb9bbdcd45943e325e07ed2aed2 | [
"MIT"
] | null | null | null | docs/src/mkautodoc/__init__.py | kabirkhan/spacy-data-debug | 5df124d5520d5eb9bbdcd45943e325e07ed2aed2 | [
"MIT"
] | null | null | null | docs/src/mkautodoc/__init__.py | kabirkhan/spacy-data-debug | 5df124d5520d5eb9bbdcd45943e325e07ed2aed2 | [
"MIT"
] | null | null | null |
from .extension import MKAutoDocExtension, makeExtension
__version__ = "0.1.0"
__all__ = ["MKAutoDocExtension", "makeExtension"]
| 18.857143 | 56 | 0.772727 | 12 | 132 | 7.833333 | 0.75 | 0.659574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.113636 | 132 | 6 | 57 | 22 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.274809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a9440e6319530ec77d36ca44c2d10c5d28d16894 | 3,227 | py | Python | pullintradayprices.py | rtstock/rtstock4 | 040b3409cfb022767dde467578f359210a689512 | [
"MIT"
] | null | null | null | pullintradayprices.py | rtstock/rtstock4 | 040b3409cfb022767dde467578f359210a689512 | [
"MIT"
] | null | null | null | pullintradayprices.py | rtstock/rtstock4 | 040b3409cfb022767dde467578f359210a689512 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Retrieve intraday stock data from Google Finance.
"""
import csv
import datetime
import re
import pandas as pd
import requests
def intradaystockprices(ticker, period=60, days=1):
"""
Retrieve intraday stock data from Google Finance.
Parameters
----------
ticker : str
... | 40.3375 | 132 | 0.515029 | 377 | 3,227 | 4.3687 | 0.339523 | 0.027322 | 0.048573 | 0.075896 | 0.375835 | 0.375835 | 0.375835 | 0.316333 | 0.200364 | 0.200364 | 0 | 0.015289 | 0.35141 | 3,227 | 79 | 133 | 40.848101 | 0.77162 | 0.321661 | 0 | 0.058824 | 0 | 0.029412 | 0.091022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a946ab769d869df40935f6c4d6219757e390f7ee | 1,750 | py | Python | auto/lookup.py | ggicci/fuck-leetcode | 45b488530b9dbcc8b7c0b90160ea45b1ab4f8475 | [
"MIT"
] | null | null | null | auto/lookup.py | ggicci/fuck-leetcode | 45b488530b9dbcc8b7c0b90160ea45b1ab4f8475 | [
"MIT"
] | null | null | null | auto/lookup.py | ggicci/fuck-leetcode | 45b488530b9dbcc8b7c0b90160ea45b1ab4f8475 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import json
from argparse import ArgumentParser
ROOT = os.path.dirname(os.path.abspath(__file__))
DB_FILE = os.path.join(ROOT, 'problems.json')
def parse_args():
"""Parse CLI tool options.
"""
parser = ArgumentParser()
parser.add_argument('problem_id', type... | 25 | 74 | 0.582286 | 219 | 1,750 | 4.534247 | 0.383562 | 0.054381 | 0.068479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00159 | 0.281143 | 1,750 | 69 | 75 | 25.362319 | 0.787758 | 0.070857 | 0 | 0.044444 | 0 | 0 | 0.166976 | 0.022882 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.266667 | 0.088889 | 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 |
a9470a504b0eced5d1fe21002e68de978c63f971 | 6,789 | py | Python | src/application/dungeon.py | meteoric-minks/code-jam | b094350176e54d873a04a483dc37d70533013c37 | [
"MIT"
] | 1 | 2021-07-09T14:41:12.000Z | 2021-07-09T14:41:12.000Z | src/application/dungeon.py | meteoric-minks/code-jam | b094350176e54d873a04a483dc37d70533013c37 | [
"MIT"
] | null | null | null | src/application/dungeon.py | meteoric-minks/code-jam | b094350176e54d873a04a483dc37d70533013c37 | [
"MIT"
] | null | null | null | from __future__ import annotations # Fixes an issue with some annotations
from .ascii_box import Light, LineChar
from .ascii_drawing import DrawingChar
class Item:
"""Represents an item within a Room."""
def __init__(self, x: int, y: int, c: DrawingChar, interact: bool = False):
self.x, self.y = x,... | 32.328571 | 112 | 0.531153 | 956 | 6,789 | 3.718619 | 0.210251 | 0.019691 | 0.020253 | 0.016878 | 0.149086 | 0.081013 | 0.057947 | 0.007876 | 0.007876 | 0 | 0 | 0.018963 | 0.355281 | 6,789 | 209 | 113 | 32.483254 | 0.793237 | 0.261158 | 0 | 0.157025 | 0 | 0 | 0.016974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132231 | false | 0.008264 | 0.024793 | 0.016529 | 0.264463 | 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 |
a947b10cb0870e9e229f94e7dbdc49713a33eb91 | 1,216 | py | Python | ntc103f397/ntc103f397.py | hhk7734/avr_proj | cb0c5c53af7eb8a0924f8c483a1a010be4b92636 | [
"MIT"
] | null | null | null | ntc103f397/ntc103f397.py | hhk7734/avr_proj | cb0c5c53af7eb8a0924f8c483a1a010be4b92636 | [
"MIT"
] | null | null | null | ntc103f397/ntc103f397.py | hhk7734/avr_proj | cb0c5c53af7eb8a0924f8c483a1a010be4b92636 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
# NTC103F397F datasheet
d_T = np.array(np.arange(-40, 121, 5))
d_R = np.array([333.110, 240.704, 175.794, 129.707, 96.646, 72.691, 55.169, 42.234, 32.6,
25.364, 19.886, 15.705, 12.490, 10.0, 8.0584, 6.5341, 5.3297, 4.3722,
3.6065, 2.990... | 26.434783 | 89 | 0.613487 | 265 | 1,216 | 2.709434 | 0.407547 | 0.022284 | 0.02507 | 0.033426 | 0.097493 | 0.097493 | 0.072423 | 0 | 0 | 0 | 0 | 0.247024 | 0.171053 | 1,216 | 45 | 90 | 27.022222 | 0.464286 | 0.077303 | 0 | 0.176471 | 0 | 0 | 0.061828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a94809d2a1b0b2d4efef4518fceb1a00c7233013 | 3,836 | py | Python | math2/graph/graphs.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | 2 | 2021-03-29T03:15:57.000Z | 2021-03-29T03:23:21.000Z | math2/graph/graphs.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | 1 | 2021-04-07T11:07:17.000Z | 2021-04-07T11:07:17.000Z | math2/graph/graphs.py | AussieSeaweed/math2 | 9e83fa8a5a5d227d72fec1b08f6759f0f0f41fca | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from collections import defaultdict
from functools import partial
from auxiliary import default
class Edge:
def __init__(self, u, v, *, weight=None, capacity=None):
self.u = u
self.v = v
self.weight = weight
self.capacity = capacity
se... | 25.573333 | 79 | 0.574035 | 503 | 3,836 | 4.202783 | 0.133201 | 0.033113 | 0.026017 | 0.035951 | 0.53264 | 0.464995 | 0.441343 | 0.373699 | 0.31315 | 0.280038 | 0 | 0.000381 | 0.316476 | 3,836 | 149 | 80 | 25.744966 | 0.805873 | 0 | 0 | 0.481481 | 0 | 0 | 0.029718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0.009259 | 0.037037 | 0.046296 | 0.398148 | 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 |
a9486ecd7a389e48b19a2604872a64308d6ffd50 | 216 | py | Python | anasyspythontools/__init__.py | quiksand/anasys-pytools | 50c21711c742d3201a72f9eab4986317b8590095 | [
"MIT"
] | 3 | 2019-11-05T16:44:45.000Z | 2020-07-27T17:02:02.000Z | anasyspythontools/__init__.py | quiksand/anasys-pytools | 50c21711c742d3201a72f9eab4986317b8590095 | [
"MIT"
] | 1 | 2018-05-30T15:44:02.000Z | 2018-05-30T17:05:53.000Z | anasyspythontools/__init__.py | quiksand/anasys-pytools | 50c21711c742d3201a72f9eab4986317b8590095 | [
"MIT"
] | 3 | 2019-02-21T13:11:27.000Z | 2022-02-21T17:27:32.000Z | from . import anasysfile
from . import anasysdoc
from . import heightmap
from . import irspectra
from . import anasysio
def read(fn):
doc = anasysio.AnasysFileReader(fn)._doc
return anasysdoc.AnasysDoc(doc)
| 21.6 | 44 | 0.759259 | 27 | 216 | 6.037037 | 0.481481 | 0.306748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 216 | 9 | 45 | 24 | 0.905556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.625 | 0 | 0.875 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
a948b58d4adf86897d648d15d474fef3166794ec | 5,734 | py | Python | src/models/test_ensemble.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | null | null | null | src/models/test_ensemble.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | 8 | 2020-09-25T22:32:00.000Z | 2022-02-10T01:17:17.000Z | src/models/test_ensemble.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | 1 | 2021-08-12T12:48:51.000Z | 2021-08-12T12:48:51.000Z | import os
import sys
import time
import numpy as np
from sklearn.metrics import accuracy_score
from utils.config import TRANSFORMATION
from utils.ensemble import load_models, prediction, ensemble_defenses_util
def testOneData(
datasetFilePath,
models,
nClasses,
transformationList,
... | 33.144509 | 142 | 0.671085 | 638 | 5,734 | 5.87931 | 0.296238 | 0.012797 | 0.017595 | 0.018129 | 0.279126 | 0.252466 | 0.227939 | 0.18635 | 0.154625 | 0.115702 | 0 | 0.04044 | 0.206488 | 5,734 | 172 | 143 | 33.337209 | 0.783956 | 0.070108 | 0 | 0.294118 | 0 | 0 | 0.190145 | 0.103254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007353 | false | 0 | 0.051471 | 0 | 0.066176 | 0.036765 | 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 |
a9497a37feb2dcdef1ff9d5ca11f00c665e15759 | 20,716 | py | Python | ems/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | ems/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | ems/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.admin.views.decorators import staff_member_required
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponse
from ems.models import Score, Level, Judge, Label, T... | 32.217729 | 203 | 0.695791 | 2,791 | 20,716 | 5.088499 | 0.080975 | 0.074356 | 0.038023 | 0.041825 | 0.712857 | 0.642515 | 0.571962 | 0.515139 | 0.47106 | 0.456837 | 0 | 0.001805 | 0.170931 | 20,716 | 643 | 204 | 32.217729 | 0.825095 | 0.002365 | 0 | 0.552459 | 0 | 0.006557 | 0.137334 | 0.029906 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022951 | 0.016393 | null | null | 0.001639 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a949db919cd36868c22671e2839695a92034044f | 3,117 | py | Python | config.py | eicc27/Pixcrawl-Full | dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb | [
"MIT"
] | null | null | null | config.py | eicc27/Pixcrawl-Full | dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb | [
"MIT"
] | null | null | null | config.py | eicc27/Pixcrawl-Full | dfa36ee5b9990ff2781a9bc39a6a60c12b1c9bdb | [
"MIT"
] | null | null | null | from msedge.selenium_tools import Edge, EdgeOptions
from lxml import html
import time
import curses
stdscr = curses.initscr()
max_y = stdscr.getmaxyx()[0] - 1
if max_y < 16:
raise Exception("Terminal row size must be more then 17, but now it is %d." % (max_y + 1))
# changelog: more OOP.
# class: illust,ill... | 39.961538 | 120 | 0.600898 | 410 | 3,117 | 4.468293 | 0.37561 | 0.085153 | 0.056769 | 0.051856 | 0.283843 | 0.225437 | 0.130459 | 0.112445 | 0.112445 | 0.112445 | 0 | 0.03392 | 0.252807 | 3,117 | 77 | 121 | 40.480519 | 0.752684 | 0.041065 | 0 | 0.176471 | 0 | 0.029412 | 0.290678 | 0.029584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0.058824 | 0 | 0.088235 | 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 |
a94bba226fe399a457f809ece3327258a884ffc0 | 1,181 | py | Python | dev/tools/roadnet_convert/geo/formats/osm.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/tools/roadnet_convert/geo/formats/osm.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/tools/roadnet_convert/geo/formats/osm.py | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | from geo.position import Location
import geo.helper
class RoadNetwork:
'''The primary container class for OSM road networks. (See: simmob.py)
Note that key/value properties are reduced to lowercase for both keys
and values.
'''
def __init__(self):
self.bounds = [] #[Location,Location], min. poin... | 31.078947 | 92 | 0.675699 | 172 | 1,181 | 4.523256 | 0.5 | 0.057841 | 0.071979 | 0.043702 | 0.203085 | 0.156812 | 0.087404 | 0.087404 | 0 | 0 | 0 | 0.002134 | 0.206605 | 1,181 | 37 | 93 | 31.918919 | 0.828175 | 0.298899 | 0 | 0.095238 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.380952 | 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 |
a94bd224bee59029c8d307451756cf94ded0c086 | 375 | py | Python | profiles/tables/role_binding_by_team_table.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 112 | 2021-04-21T08:52:55.000Z | 2022-03-01T15:09:19.000Z | profiles/tables/role_binding_by_team_table.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 216 | 2021-04-21T09:06:47.000Z | 2022-03-30T14:21:28.000Z | profiles/tables/role_binding_by_team_table.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 21 | 2021-04-20T13:53:54.000Z | 2022-03-30T21:43:04.000Z | from django_tables2 import tables, Column
from profiles.models import TeamRoleBinding
class RoleBindingByTeamTable(tables.Table):
object_name = Column(verbose_name='Name')
class Meta:
model = TeamRoleBinding
attrs = {"id": "teams_by_object_table", "class": "table squest-pagination-tables "}
... | 31.25 | 91 | 0.712 | 42 | 375 | 6.166667 | 0.619048 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.178667 | 375 | 11 | 92 | 34.090909 | 0.837662 | 0 | 0 | 0 | 0 | 0 | 0.237333 | 0.12 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a94dde590f87aeb3b20de4c6b4b586cab3f571b5 | 1,441 | py | Python | Sorts/bubble_sort_recursive.py | Neiva07/Algorithms | cc2b22d1f69f0af7b91a8326550e759abfba79c8 | [
"MIT"
] | 199 | 2019-12-01T01:23:34.000Z | 2022-02-28T10:30:40.000Z | Sorts/bubble_sort_recursive.py | Neiva07/Algorithms | cc2b22d1f69f0af7b91a8326550e759abfba79c8 | [
"MIT"
] | 35 | 2020-06-08T17:59:22.000Z | 2021-11-11T04:00:29.000Z | Sorts/bubble_sort_recursive.py | Neiva07/Algorithms | cc2b22d1f69f0af7b91a8326550e759abfba79c8 | [
"MIT"
] | 106 | 2020-02-05T01:28:19.000Z | 2022-03-11T05:38:54.000Z | # Script: bubble_sort_recursive.py
# Author: Joseph L. Crandal
# Purpose: Demonstrate bubble sort with recursion
# data will be the list to be sorted
data = [ 0, 5, 2, 3, 10, 123, -53, 23, 9, 2 ]
dataOrig = [ 0, 5, 2, 3, 10, 123, -53, 23, 9, 2 ]
# In a bubble sort you will work your way through the dataset
# and move... | 35.146341 | 118 | 0.668286 | 241 | 1,441 | 3.987552 | 0.53112 | 0.024974 | 0.01873 | 0.034339 | 0.098855 | 0.07076 | 0.031217 | 0.031217 | 0.031217 | 0.031217 | 0 | 0.03154 | 0.251908 | 1,441 | 40 | 119 | 36.025 | 0.859926 | 0.575989 | 0 | 0 | 0 | 0 | 0.050336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 0.2 | 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 |
a94f07dd94305ef8cca149684b5c8e4ef5b6072f | 19,260 | py | Python | mcv_consoler/plugins/tempest/runner.py | vladryk/mcv | ee74beafc65053ce200e03da423784cee0724e23 | [
"Apache-2.0"
] | null | null | null | mcv_consoler/plugins/tempest/runner.py | vladryk/mcv | ee74beafc65053ce200e03da423784cee0724e23 | [
"Apache-2.0"
] | null | null | null | mcv_consoler/plugins/tempest/runner.py | vladryk/mcv | ee74beafc65053ce200e03da423784cee0724e23 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015-2016 Mirantis, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 40.125 | 79 | 0.546625 | 2,182 | 19,260 | 4.662236 | 0.20165 | 0.017301 | 0.025066 | 0.020643 | 0.237983 | 0.167502 | 0.14106 | 0.12602 | 0.098889 | 0.079524 | 0 | 0.004958 | 0.340291 | 19,260 | 479 | 80 | 40.208768 | 0.795687 | 0.077362 | 0 | 0.204787 | 0 | 0 | 0.207173 | 0.030619 | 0 | 0 | 0 | 0.002088 | 0 | 1 | 0.037234 | false | 0.005319 | 0.037234 | 0 | 0.117021 | 0.00266 | 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 |
a9508614454f6bf05864b1611a7fc47f5a0baa76 | 299 | py | Python | numpy_demo/version.py | mpmkp2020/numpy_demo | 796262e06c84b7e9aa446b244a3faf3891d9ece1 | [
"BSD-3-Clause"
] | null | null | null | numpy_demo/version.py | mpmkp2020/numpy_demo | 796262e06c84b7e9aa446b244a3faf3891d9ece1 | [
"BSD-3-Clause"
] | null | null | null | numpy_demo/version.py | mpmkp2020/numpy_demo | 796262e06c84b7e9aa446b244a3faf3891d9ece1 | [
"BSD-3-Clause"
] | null | null | null |
# THIS FILE IS GENERATED FROM NUMPY SETUP.PY
#
# To compare versions robustly, use `numpy_demo.lib.NumpyVersion`
short_version = '1.29.0'
version = '1.29.0'
full_version = '1.29.0'
git_revision = 'dd8e9be4d35e25e795d8d139ff4658715767c211'
release = True
if not release:
version = full_version
| 23 | 65 | 0.755853 | 42 | 299 | 5.261905 | 0.690476 | 0.108597 | 0.135747 | 0.149321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152344 | 0.143813 | 299 | 12 | 66 | 24.916667 | 0.710938 | 0.354515 | 0 | 0 | 1 | 0 | 0.308511 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9525cb4b63e18ce45a9ca957c592c3c20ea53fe | 1,385 | py | Python | docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py | EricHughesABC/pygamma_gallery | 64565d364e68a185aeee25b904813d795ecbe87c | [
"MIT"
] | null | null | null | docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py | EricHughesABC/pygamma_gallery | 64565d364e68a185aeee25b904813d795ecbe87c | [
"MIT"
] | null | null | null | docsource/sphinx/source/auto_examples/hammersleypoints/plot_hamm_points_sphere.py | EricHughesABC/pygamma_gallery | 64565d364e68a185aeee25b904813d795ecbe87c | [
"MIT"
] | null | null | null | """
#################
Hammersley Sphere
#################
"""
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
def return_point(m, n, p):
"""
m is the index number of the Hammersley point to calculate
n is the maximun number of points
p is the order of the... | 22.704918 | 76 | 0.519856 | 252 | 1,385 | 2.769841 | 0.365079 | 0.028653 | 0.025788 | 0.017192 | 0.113181 | 0.06447 | 0.06447 | 0.06447 | 0.06447 | 0.06447 | 0 | 0.081527 | 0.300361 | 1,385 | 61 | 77 | 22.704918 | 0.638803 | 0.231769 | 0 | 0 | 0 | 0 | 0.02924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.088235 | 0 | 0.176471 | 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 |
a953cb0fff14bcb71d5e717da31296569a25a401 | 11,261 | py | Python | org/heather/setup/__init__.py | PandaLunatiquePrivate/Heather | a50ce59a7a61ac103003434fc0defc0e3bb4860c | [
"Apache-2.0"
] | 2 | 2021-03-06T20:15:14.000Z | 2021-03-28T16:58:13.000Z | org/heather/setup/__init__.py | PandaLunatiquePrivate/Heather | a50ce59a7a61ac103003434fc0defc0e3bb4860c | [
"Apache-2.0"
] | null | null | null | org/heather/setup/__init__.py | PandaLunatiquePrivate/Heather | a50ce59a7a61ac103003434fc0defc0e3bb4860c | [
"Apache-2.0"
] | null | null | null | import enum
import json
import os
import requests
import yaml
import socket
import sqlite3
import traceback
from org.heather.api.tools import Tools
from org.heather.api.log import Log, LogLevel
@enum.unique
class VerifyResult(enum.Enum):
OK = 0
NEED_SETUP = 1
NEED_REPAIR = 2
class Setup():
@stati... | 42.334586 | 534 | 0.610958 | 1,350 | 11,261 | 5.008889 | 0.186667 | 0.033126 | 0.055753 | 0.035492 | 0.560337 | 0.489352 | 0.404022 | 0.360101 | 0.316474 | 0.280982 | 0 | 0.023833 | 0.273422 | 11,261 | 265 | 535 | 42.49434 | 0.802616 | 0.007282 | 0 | 0.20904 | 0 | 0.079096 | 0.431218 | 0.022107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0.00565 | 0.056497 | 0 | 0.124294 | 0.00565 | 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 |
a955fd4758fdef6a817f379d021c4f3cc6b7730c | 5,421 | py | Python | utils/belief_prop.py | atitus5/ocr-869 | 1d714dd28e933fb320b099a4631d25e93bb01678 | [
"MIT"
] | null | null | null | utils/belief_prop.py | atitus5/ocr-869 | 1d714dd28e933fb320b099a4631d25e93bb01678 | [
"MIT"
] | null | null | null | utils/belief_prop.py | atitus5/ocr-869 | 1d714dd28e933fb320b099a4631d25e93bb01678 | [
"MIT"
] | null | null | null | import math
import sys
import time
from nltk import word_tokenize
import numpy as np
def bp_error_correction(kjv, all_predictions):
start_t = time.time()
# Run belief propagation to correct any words not found in dictionary
print("Setting up word set and tokenizing predictions...")
word_set = set(wor... | 46.333333 | 120 | 0.643239 | 725 | 5,421 | 4.571034 | 0.257931 | 0.031382 | 0.038624 | 0.015691 | 0.235063 | 0.085697 | 0.068196 | 0.028968 | 0.028968 | 0.028968 | 0 | 0.016447 | 0.259731 | 5,421 | 116 | 121 | 46.732759 | 0.80937 | 0.182808 | 0 | 0.025641 | 0 | 0 | 0.066485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.064103 | 0 | 0.115385 | 0.089744 | 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 |
a9562047bea821bb81235f635245c2aa193d719c | 619 | py | Python | PWN/jarvisoj.com/level1/exploit.py | WinDDDog/Note | 5489ffeabe75d256b8bffffb24ab131cc74f3aed | [
"Apache-2.0"
] | null | null | null | PWN/jarvisoj.com/level1/exploit.py | WinDDDog/Note | 5489ffeabe75d256b8bffffb24ab131cc74f3aed | [
"Apache-2.0"
] | null | null | null | PWN/jarvisoj.com/level1/exploit.py | WinDDDog/Note | 5489ffeabe75d256b8bffffb24ab131cc74f3aed | [
"Apache-2.0"
] | null | null | null | from pwn import *
shellcode = "\x31\xc0\x31\xdb\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x31\xd2\xb0\x0b\x51\x52\x55\x89\xe5\x0f\x34\x31\xc0\x31\xdb\xfe\xc0\x51\x52\x55\x89\xe5\x0f\x34"
HOST = 'pwn2.jarvisoj.com'
PORT = 9877
def PrettyTommy(ip,port):
con = remote(ip,port)
... | 29.47619 | 195 | 0.592892 | 96 | 619 | 3.822917 | 0.572917 | 0.057221 | 0.049046 | 0.065395 | 0.114441 | 0.114441 | 0.114441 | 0 | 0 | 0 | 0 | 0.178344 | 0.239095 | 619 | 20 | 196 | 30.95 | 0.600849 | 0 | 0 | 0 | 0 | 0.066667 | 0.345576 | 0.300501 | 0 | 0 | 0.006678 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a956dee6345202cc212985e79e8f74cb1e26aa99 | 1,065 | py | Python | botx/clients/methods/errors/unauthorized_bot.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 13 | 2021-01-21T12:43:10.000Z | 2022-03-23T11:11:59.000Z | botx/clients/methods/errors/unauthorized_bot.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 259 | 2020-02-26T08:51:03.000Z | 2022-03-23T11:08:36.000Z | botx/clients/methods/errors/unauthorized_bot.py | ExpressApp/pybotx | 97c8b1ce5d45a05567ed01d545cb43174a2dcbb9 | [
"MIT"
] | 5 | 2019-12-02T16:19:22.000Z | 2021-11-22T20:33:34.000Z | """Definition for "invalid bot credentials" error."""
from typing import NoReturn
from botx.clients.methods.base import APIErrorResponse, BotXMethod
from botx.clients.types.http import HTTPResponse
from botx.exceptions import BotXAPIError
class InvalidBotCredentials(BotXAPIError):
"""Error for raising when got i... | 30.428571 | 80 | 0.71831 | 122 | 1,065 | 6.172131 | 0.508197 | 0.074369 | 0.083665 | 0.069057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200939 | 1,065 | 34 | 81 | 31.323529 | 0.884841 | 0.296714 | 0 | 0 | 0 | 0 | 0.09887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.411765 | 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 |
a9578f51cee02781b1cf946c958d1259116e97c7 | 16,515 | py | Python | ld38/game_scene.py | irskep/rogue_basement | f92637d7870662a401ca7bb745e3855364b5ac9c | [
"MIT"
] | 16 | 2017-04-24T02:29:43.000Z | 2021-07-31T15:53:15.000Z | ld38/game_scene.py | irskep/rogue_basement | f92637d7870662a401ca7bb745e3855364b5ac9c | [
"MIT"
] | 4 | 2017-04-24T20:13:45.000Z | 2017-05-07T16:22:52.000Z | ld38/game_scene.py | irskep/rogue_basement | f92637d7870662a401ca7bb745e3855364b5ac9c | [
"MIT"
] | 2 | 2017-05-14T20:57:38.000Z | 2017-05-19T22:08:37.000Z | # This file has a lot going on in it because really ties the game together,
# just like The Dude's rug. You can probably read it start to finish, but
# by all means start jumping around from here.
# Dependencies for rendering the UI
from clubsandwich.ui import (
LabelView,
LayoutOptions,
UIScene,
)
# including s... | 37.44898 | 102 | 0.711051 | 2,462 | 16,515 | 4.657595 | 0.25264 | 0.032267 | 0.019273 | 0.014128 | 0.186274 | 0.158629 | 0.134211 | 0.113718 | 0.095404 | 0.084765 | 0 | 0.002673 | 0.207206 | 16,515 | 440 | 103 | 37.534091 | 0.873138 | 0.482652 | 0 | 0.246377 | 0 | 0 | 0.064593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10628 | false | 0 | 0.048309 | 0 | 0.207729 | 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 |
a958227f8764279c1268ab44258acb82a4b5a6c0 | 4,882 | py | Python | main.py | yanxurui/portfolio | 032cf47ccac1c5815fd4827bf0d5f3cf43cec990 | [
"MIT"
] | null | null | null | main.py | yanxurui/portfolio | 032cf47ccac1c5815fd4827bf0d5f3cf43cec990 | [
"MIT"
] | null | null | null | main.py | yanxurui/portfolio | 032cf47ccac1c5815fd4827bf0d5f3cf43cec990 | [
"MIT"
] | null | null | null | import os
import shutil
import argparse
from pathlib import Path
from time import time
from collections import defaultdict
import torch
import numpy as np
import pandas as pd
torch.manual_seed(0)
def allocate(a):
a[a<0] = 0
if a.sum() <= 1:
return a
else:
return a/a.sum()
def ret(output,... | 33.438356 | 88 | 0.621262 | 661 | 4,882 | 4.416036 | 0.258699 | 0.024666 | 0.033573 | 0.020555 | 0.169236 | 0.055498 | 0 | 0 | 0 | 0 | 0 | 0.007505 | 0.235764 | 4,882 | 145 | 89 | 33.668966 | 0.774859 | 0.07374 | 0 | 0.1 | 0 | 0 | 0.123087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058333 | false | 0 | 0.083333 | 0 | 0.191667 | 0.058333 | 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 |
a958be1401872e502507925a19d9666e8b808383 | 736 | py | Python | listing_manager/utils.py | mikezareno/listing-manager | 7cf07c2f654925254949b8d0000104cd0cfcafe9 | [
"MIT"
] | null | null | null | listing_manager/utils.py | mikezareno/listing-manager | 7cf07c2f654925254949b8d0000104cd0cfcafe9 | [
"MIT"
] | null | null | null | listing_manager/utils.py | mikezareno/listing-manager | 7cf07c2f654925254949b8d0000104cd0cfcafe9 | [
"MIT"
] | null | null | null | #
from __future__ import unicode_literals
import frappe, erpnext
from frappe import _
import json
from frappe.utils import flt, cstr, nowdate, nowtime
from six import string_types
class InvalidWarehouseCompany(frappe.ValidationError): pass
@frappe.whitelist()
def get_item_code(scancode=None):
if scancode:
#try ba... | 26.285714 | 107 | 0.754076 | 100 | 736 | 5.37 | 0.45 | 0.089385 | 0.104283 | 0.074488 | 0.260708 | 0.260708 | 0.260708 | 0.126629 | 0 | 0 | 0 | 0 | 0.141304 | 736 | 27 | 108 | 27.259259 | 0.849684 | 0.057065 | 0 | 0.210526 | 0 | 0 | 0.137482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.315789 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
a95b262364cdeaaec9745537650c70b839330456 | 1,368 | py | Python | package_installer.py | LukasDoesDev/deployarch | 775e15220003ddbf30774167a0c3d145d84489a0 | [
"MIT"
] | 2 | 2021-02-07T14:47:28.000Z | 2021-02-08T10:42:54.000Z | package_installer.py | LukasDoesDev/deployarch | 775e15220003ddbf30774167a0c3d145d84489a0 | [
"MIT"
] | 1 | 2021-02-08T13:46:39.000Z | 2021-02-08T13:46:39.000Z | package_installer.py | LukasDoesDev/deployarch | 775e15220003ddbf30774167a0c3d145d84489a0 | [
"MIT"
] | 1 | 2021-02-07T14:47:35.000Z | 2021-02-07T14:47:35.000Z | import json
import subprocess
PACMAN_SYNC_DB_COMMAND = 'sudo pacman --noconfirm -Sy'
AUR_HELPER_COMMAND = 'paru --noconfirm -S {}'
PACMAN_COMMAND = 'sudo pacman --noconfirm -S {}'
def run_cmds(array):
subprocess.run('\n'.join(array),shell=True, check=True,executable='/bin/bash')
with open('./config.json') as f:
... | 31.090909 | 82 | 0.706871 | 189 | 1,368 | 4.878307 | 0.343915 | 0.106291 | 0.070499 | 0.041215 | 0.058568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1,368 | 43 | 83 | 31.813953 | 0.800347 | 0.083333 | 0 | 0 | 0 | 0 | 0.139311 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a95cd5050cc5338cb7021667243f069114685055 | 2,293 | py | Python | utils/forms.py | JakubBialoskorski/notes | 1016581cbf7d2024df42f85df039c7e2a5b03205 | [
"MIT"
] | null | null | null | utils/forms.py | JakubBialoskorski/notes | 1016581cbf7d2024df42f85df039c7e2a5b03205 | [
"MIT"
] | 1 | 2021-06-22T20:26:20.000Z | 2021-06-22T20:26:20.000Z | utils/forms.py | JakubBialoskorski/notes | 1016581cbf7d2024df42f85df039c7e2a5b03205 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, SelectMultipleField, HiddenField
from flask_pagedown.fields import PageDownField
from wtforms import validators
class LoginForm(FlaskForm):
username = StringField('Username*', [validators.InputRequired("Please enter your n... | 61.972973 | 286 | 0.756651 | 245 | 2,293 | 7.04898 | 0.261224 | 0.146497 | 0.151129 | 0.177186 | 0.59641 | 0.594094 | 0.547771 | 0.484076 | 0.406485 | 0.2652 | 0 | 0.005944 | 0.119494 | 2,293 | 36 | 287 | 63.694444 | 0.84943 | 0 | 0 | 0 | 0 | 0 | 0.309202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.266667 | 0.133333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a95cdc019a431df0ac19c35d5980e2ea22fe3fdc | 2,508 | py | Python | toolkit/retry.py | blackmatrix7/iphone_hunter | 1df7bee48f4d67397fae821f8a675115525f4ef8 | [
"Apache-2.0"
] | 2 | 2017-09-27T14:11:59.000Z | 2022-02-28T06:38:30.000Z | toolkit/retry.py | blackmatrix7/iphone_hunter | 1df7bee48f4d67397fae821f8a675115525f4ef8 | [
"Apache-2.0"
] | 1 | 2021-06-01T21:38:59.000Z | 2021-06-01T21:38:59.000Z | toolkit/retry.py | blackmatrix7/iphone_hunter | 1df7bee48f4d67397fae821f8a675115525f4ef8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/8/18 上午9:50
# @Author : Matrix
# @Github : https://github.com/blackmatrix7/
# @Blog : http://www.cnblogs.com/blackmatrix/
# @File : retry.py
# @Software: PyCharm
import time
from functools import wraps
__author__ = 'blackmatrix'
"""
在函数执行出现异常时自动重试的简单装饰器
""... | 30.585366 | 77 | 0.598086 | 237 | 2,508 | 6.219409 | 0.594937 | 0.033921 | 0.012212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01092 | 0.30622 | 2,508 | 81 | 78 | 30.962963 | 0.836207 | 0.415072 | 0 | 0.055556 | 0 | 0 | 0.021674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.027778 | 0.055556 | 0.027778 | 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 |
a95ff83ce47a3bbf06a07f81219704a5cbadd7ad | 2,564 | py | Python | data_loader/data_loader.py | Lishjie/LUPVisQ | b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163 | [
"Apache-2.0"
] | null | null | null | data_loader/data_loader.py | Lishjie/LUPVisQ | b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163 | [
"Apache-2.0"
] | null | null | null | data_loader/data_loader.py | Lishjie/LUPVisQ | b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021/01/02 16:26
# @Author : lishijie
import torch
from torch.utils import data
from torch.utils.data import DataLoader
import torchvision
from torchvision.transforms.transforms import Resize
from .databases import *
class LUPVisQDataLoader(object):
"""Dataste class for LUPV... | 45.785714 | 128 | 0.585023 | 262 | 2,564 | 5.587786 | 0.278626 | 0.229508 | 0.110656 | 0.02459 | 0.46653 | 0.433743 | 0.367486 | 0.293716 | 0.293716 | 0.293716 | 0 | 0.056122 | 0.312012 | 2,564 | 55 | 129 | 46.618182 | 0.77381 | 0.072933 | 0 | 0.355556 | 0 | 0 | 0.016477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.133333 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a96249e5e27a4fb1f8a7acc8336f250dfb9992c9 | 64,609 | py | Python | pyeccodes/defs/grib2/localConcepts/eswi/name_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 7 | 2020-04-14T09:41:17.000Z | 2021-08-06T09:38:19.000Z | pyeccodes/defs/grib2/localConcepts/eswi/name_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | null | null | null | pyeccodes/defs/grib2/localConcepts/eswi/name_def.py | ecmwf/pyeccodes | dce2c72d3adcc0cb801731366be53327ce13a00b | [
"Apache-2.0"
] | 3 | 2020-04-30T12:44:48.000Z | 2020-12-15T08:40:26.000Z | import pyeccodes.accessors as _
def load(h):
def wrapped(h):
discipline = h.get_l('discipline')
parameterCategory = h.get_l('parameterCategory')
parameterNumber = h.get_l('parameterNumber')
if discipline == 3 and parameterCategory == 1 and parameterNumber == 19:
retu... | 42.646205 | 102 | 0.638208 | 6,691 | 64,609 | 6.161112 | 0.086385 | 0.145546 | 0.112895 | 0.138948 | 0.847128 | 0.838104 | 0.82042 | 0.797303 | 0.563968 | 0.441175 | 0 | 0.047594 | 0.287808 | 64,609 | 1,514 | 103 | 42.674373 | 0.848307 | 0 | 0 | 0.217262 | 0 | 0 | 0.172654 | 0.000511 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001984 | false | 0 | 0.000992 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a968e5c87a6a2fba1534a27a1696dd6c0f7117a1 | 1,568 | py | Python | apetools/proletarians/setuprun.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | apetools/proletarians/setuprun.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null | apetools/proletarians/setuprun.py | rsnakamura/oldape | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | [
"Apache-2.0"
] | null | null | null |
# apetools Libraries
from apetools.baseclass import BaseClass
from apetools.builders import builder
from apetools.lexicographers.lexicographer import Lexicographer
class SetUp(BaseClass):
"""
The SetUp sets up the infrastructure
"""
def __init__(self, arguments, *args, **kwargs):
"""
... | 28 | 80 | 0.588648 | 154 | 1,568 | 5.863636 | 0.363636 | 0.094131 | 0.049834 | 0.048726 | 0.057586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00186 | 0.314413 | 1,568 | 55 | 81 | 28.509091 | 0.83814 | 0.153061 | 0 | 0.2 | 0 | 0 | 0.087603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.1 | 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 |
a969c4d30c2cfa4664e0f50b541bf7d5cc4223f3 | 11,423 | py | Python | bleu.py | divyang02/English_to_Hindi_Machine_language_translator | 0502b7bb1f86f45d452868a8701009d421765b64 | [
"MIT"
] | 1 | 2022-02-22T04:10:34.000Z | 2022-02-22T04:10:34.000Z | bleu.py | divyang02/English_to_Hindi_Machine_language_translator | 0502b7bb1f86f45d452868a8701009d421765b64 | [
"MIT"
] | null | null | null | bleu.py | divyang02/English_to_Hindi_Machine_language_translator | 0502b7bb1f86f45d452868a8701009d421765b64 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Sentence level and Corpus level BLEU score calculation tool
"""
from __future__ import division, print_function
import io
import os
import math
import sys
import argparse
from fractions import Fraction
from collections import Counter
from functools import reduce
from... | 45.692 | 109 | 0.604044 | 1,578 | 11,423 | 4.227503 | 0.190748 | 0.012292 | 0.005396 | 0.008095 | 0.286914 | 0.239694 | 0.192475 | 0.162344 | 0.15335 | 0.105531 | 0 | 0.022946 | 0.290379 | 11,423 | 249 | 110 | 45.875502 | 0.799531 | 0.247133 | 0 | 0.188571 | 0 | 0 | 0.076743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.062857 | 0 | 0.154286 | 0.034286 | 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 |
a96d1ad4941b2f2e2aed74363daf53f8103f7801 | 54 | py | Python | configs/postgres.py | enabokov/chat | 4a3a11c68c5089c119ebe5bec1dfebe699aa7c78 | [
"MIT"
] | 1 | 2019-04-14T16:49:32.000Z | 2019-04-14T16:49:32.000Z | configs/postgres.py | enabokov/Chat | 4a3a11c68c5089c119ebe5bec1dfebe699aa7c78 | [
"MIT"
] | 1 | 2021-03-25T21:44:52.000Z | 2021-03-25T21:44:52.000Z | configs/postgres.py | enabokov/chat | 4a3a11c68c5089c119ebe5bec1dfebe699aa7c78 | [
"MIT"
] | null | null | null | DSN = 'postgresql://edward:edward@postgres:5432/chat'
| 27 | 53 | 0.759259 | 7 | 54 | 5.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0.055556 | 54 | 1 | 54 | 54 | 0.72549 | 0 | 0 | 0 | 0 | 0 | 0.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |