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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68fde3ad8bca8a935316b931dbeed03bfbbc6152 | 91,006 | py | Python | tests/test_core.py | netMedi/hl7apy | 50fc4f1e3a6edbbb4575a4e709ed804bcb62f83b | [
"MIT"
] | null | null | null | tests/test_core.py | netMedi/hl7apy | 50fc4f1e3a6edbbb4575a4e709ed804bcb62f83b | [
"MIT"
] | null | null | null | tests/test_core.py | netMedi/hl7apy | 50fc4f1e3a6edbbb4575a4e709ed804bcb62f83b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2018, CRS4
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify... | 42.526168 | 248 | 0.655869 | 12,321 | 91,006 | 4.586397 | 0.043828 | 0.136438 | 0.112371 | 0.134846 | 0.832381 | 0.768479 | 0.714223 | 0.689129 | 0.636129 | 0.572281 | 0 | 0.051524 | 0.212415 | 91,006 | 2,139 | 249 | 42.54605 | 0.736882 | 0.052304 | 0 | 0.614801 | 0 | 0.023403 | 0.120279 | 0.057729 | 0 | 0 | 0 | 0.000468 | 0.295383 | 1 | 0.086654 | false | 0 | 0.006325 | 0.003163 | 0.099937 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec08a77a7361cede39f79c1d8a9087df5f774999 | 2,912 | py | Python | text_tokenizers.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 17 | 2019-08-01T07:45:46.000Z | 2022-03-25T05:15:13.000Z | text_tokenizers.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 14 | 2020-05-30T16:18:28.000Z | 2021-06-24T08:08:19.000Z | text_tokenizers.py | kotikkonstantin/convasr | 3d4d7f3627269372ae1eb7ff7423b29838f47ac0 | [
"MIT"
] | 6 | 2020-07-10T14:43:02.000Z | 2021-04-08T19:28:53.000Z | import re
import sentencepiece
import typing
from collections import defaultdict
class CharTokenizerLegacy:
def __init__(self, alphabet: str):
self.alphabet = alphabet
self.unk_token = '*'
self.punkt_token = '.'
self.repeat_token = '2'
self.space_token = ' '
self.ep... | 30.978723 | 128 | 0.644918 | 391 | 2,912 | 4.629156 | 0.189258 | 0.064641 | 0.061878 | 0.046961 | 0.491713 | 0.39779 | 0.332597 | 0.264088 | 0.177901 | 0.177901 | 0 | 0.006806 | 0.243132 | 2,912 | 94 | 129 | 30.978723 | 0.814428 | 0.03331 | 0 | 0.223881 | 0 | 0 | 0.003973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.253731 | false | 0 | 0.059701 | 0.164179 | 0.567164 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec18a5ae8ff3c875c8116ef1833aa8729d0acf31 | 348 | py | Python | day01_part1.py | jkbockstael/adventofcode-2020 | 94a4f818a6fb3f89370d37d2bd2223ef3023ab5a | [
"Unlicense"
] | 1 | 2020-12-02T10:03:08.000Z | 2020-12-02T10:03:08.000Z | day01_part1.py | jkbockstael/adventofcode-2020 | 94a4f818a6fb3f89370d37d2bd2223ef3023ab5a | [
"Unlicense"
] | null | null | null | day01_part1.py | jkbockstael/adventofcode-2020 | 94a4f818a6fb3f89370d37d2bd2223ef3023ab5a | [
"Unlicense"
] | null | null | null | # Advent of Code 2020 - Day 1 - Report Repair
# https://adventofcode.com/2020/day/1
import sys
def parse_input(lines):
return [int(line.strip()) for line in lines]
def part1(expenses):
return [a * b for a in expenses for b in expenses if a + b == 2020][0]
if __name__ == "__main__":
print(part1(parse_inp... | 24.857143 | 74 | 0.681034 | 57 | 348 | 3.982456 | 0.596491 | 0.061674 | 0.070485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059859 | 0.183908 | 348 | 13 | 75 | 26.769231 | 0.739437 | 0.227011 | 0 | 0 | 0 | 0 | 0.030075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 0.714286 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec1f6cedba8311cdb465a824a6c11a9433cde1af | 162 | py | Python | django_robokassa/app.py | AlekseyA/django-robokassa | 825f5633f5bebe54aa2ea180573b2de683fd8589 | [
"MIT"
] | null | null | null | django_robokassa/app.py | AlekseyA/django-robokassa | 825f5633f5bebe54aa2ea180573b2de683fd8589 | [
"MIT"
] | null | null | null | django_robokassa/app.py | AlekseyA/django-robokassa | 825f5633f5bebe54aa2ea180573b2de683fd8589 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class RobokassaConfig(AppConfig):
name = 'django-robokassa'
label = 'Robokassa'
verbose_name = u'Робокасса'
| 23.142857 | 35 | 0.697531 | 18 | 162 | 6.277778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209877 | 162 | 6 | 36 | 27 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.219355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ec21b5a8516b029995f799fb5dd969c7759c2b66 | 889 | py | Python | exchangelib/services/expand_dl.py | mishmashclone/ecederstrand-exchangelib | 1bbae0e527dc82a45bf3b5946b438d69de96c20f | [
"BSD-2-Clause"
] | null | null | null | exchangelib/services/expand_dl.py | mishmashclone/ecederstrand-exchangelib | 1bbae0e527dc82a45bf3b5946b438d69de96c20f | [
"BSD-2-Clause"
] | null | null | null | exchangelib/services/expand_dl.py | mishmashclone/ecederstrand-exchangelib | 1bbae0e527dc82a45bf3b5946b438d69de96c20f | [
"BSD-2-Clause"
] | null | null | null | from .common import EWSService
from ..errors import ErrorNameResolutionMultipleResults
from ..properties import Mailbox
from ..util import create_element, set_xml_value, MNS
class ExpandDL(EWSService):
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/expanddl-operation"""
... | 40.409091 | 120 | 0.778403 | 111 | 889 | 5.963964 | 0.522523 | 0.120846 | 0.033233 | 0.07855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12036 | 889 | 21 | 121 | 42.333333 | 0.846547 | 0.11811 | 0 | 0 | 0 | 0 | 0.062982 | 0.026992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.285714 | 0.214286 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec29c175f6b9f37d0b9f63c7911bcae9864316ed | 2,440 | py | Python | deprecated/rcbu/common/activity_mixin.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 4 | 2015-02-10T14:28:12.000Z | 2016-12-26T22:52:07.000Z | deprecated/rcbu/common/activity_mixin.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 17 | 2015-01-22T21:58:36.000Z | 2018-01-25T19:47:43.000Z | deprecated/rcbu/common/activity_mixin.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 9 | 2015-01-26T19:25:45.000Z | 2018-11-01T20:14:12.000Z | import rcbu.common.status as status
import rcbu.common.activity as activity
from rcbu.common.http import Http
_predicates = {
"backup_history": lambda j: j['Type'] == 'Backup' and not _is_running(j),
"restore_history": lambda j: j['Type'] == 'Restore' and not _is_running(j),
"cleanup_history": lambda j: j... | 30.123457 | 79 | 0.678279 | 307 | 2,440 | 5.123779 | 0.221498 | 0.051494 | 0.050858 | 0.106802 | 0.342022 | 0.273363 | 0 | 0 | 0 | 0 | 0 | 0.001525 | 0.193852 | 2,440 | 80 | 80 | 30.5 | 0.79817 | 0 | 0 | 0.15 | 0 | 0 | 0.133197 | 0.009426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.05 | 0.183333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ec4e572c58b42681f0615a8ac44d492d58e51cb0 | 397 | py | Python | ex01/first_last.py | aiit2016/2016-2Q-SP | 97f2472733052df4f8a3604ad71d5b1d36586a8b | [
"MIT"
] | null | null | null | ex01/first_last.py | aiit2016/2016-2Q-SP | 97f2472733052df4f8a3604ad71d5b1d36586a8b | [
"MIT"
] | null | null | null | ex01/first_last.py | aiit2016/2016-2Q-SP | 97f2472733052df4f8a3604ad71d5b1d36586a8b | [
"MIT"
] | null | null | null | def first_last(s1):
# [out of bound error] s2 = s1[0] + s1[1] + s1[4] + s1[5]
# [out of bound error] s2 = s1[0] + s1[1] + s1[-2] + s1[-1]
# [false result] s2 = s1[0:2] + s1[-2:-1]
s2 = s1[0:2] + s1[-2:]
# [out of bound error] s2 = s1[:2] + s1[-2]
return s2
print(first_last("spring"))
p... | 30.538462 | 64 | 0.526448 | 72 | 397 | 2.833333 | 0.305556 | 0.220588 | 0.098039 | 0.220588 | 0.426471 | 0.426471 | 0.245098 | 0.245098 | 0.245098 | 0.245098 | 0 | 0.126246 | 0.241814 | 397 | 12 | 65 | 33.083333 | 0.551495 | 0.491184 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.571429 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6b530ce60fbcd7c7f382196f4a7a9f53a1fe8b9e | 12,283 | py | Python | DatabaseLayer/DataModel.py | BenTeo11/python-docs-hello-world | 3da9c9a1fadccdb1769c4f04124a7b68d7795bf0 | [
"MIT"
] | null | null | null | DatabaseLayer/DataModel.py | BenTeo11/python-docs-hello-world | 3da9c9a1fadccdb1769c4f04124a7b68d7795bf0 | [
"MIT"
] | null | null | null | DatabaseLayer/DataModel.py | BenTeo11/python-docs-hello-world | 3da9c9a1fadccdb1769c4f04124a7b68d7795bf0 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import desc
from sqlalchemy_utils import UUIDType
from uuid import uuid4
import json
from DatabaseLayer.Settings import app
#from DatabaseLayer.UserModel import *
db = SQLAlchemy()
class Company(db.Model):
__tablename_ = 'Company'
... | 37.910494 | 152 | 0.644224 | 1,446 | 12,283 | 5.226141 | 0.070539 | 0.044065 | 0.047638 | 0.05002 | 0.590975 | 0.570067 | 0.519651 | 0.47241 | 0.434829 | 0.364827 | 0 | 0.002246 | 0.238867 | 12,283 | 324 | 153 | 37.910494 | 0.806076 | 0.003012 | 0 | 0.385214 | 0 | 0 | 0.026621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22179 | false | 0.023346 | 0.027237 | 0.101167 | 0.51751 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6b67ea7e1f7e6f73a8512b82067bb9e1ddd02754 | 7,790 | py | Python | waterflow/utility/fluxfunctions.py | bramappelt/flow | e2a6e931813feccf317a3bca8fad8f93191fdb09 | [
"MIT"
] | null | null | null | waterflow/utility/fluxfunctions.py | bramappelt/flow | e2a6e931813feccf317a3bca8fad8f93191fdb09 | [
"MIT"
] | 6 | 2019-09-11T15:37:24.000Z | 2021-08-30T11:12:03.000Z | waterflow/utility/fluxfunctions.py | bramappelt/flow | e2a6e931813feccf317a3bca8fad8f93191fdb09 | [
"MIT"
] | null | null | null | """ Several flow equations for (un)saturated flow problems and a
storage change function """
def darcy(x, s, gradient, kfun=lambda x, s: 1):
""" Flux function for saturated flow
Flow equation as first described by :cite:`Darcy1856`.
Parameters
----------
x : `float`
Positional argument :... | 31.92623 | 81 | 0.602182 | 1,014 | 7,790 | 4.598619 | 0.183432 | 0.013725 | 0.019301 | 0.028951 | 0.631139 | 0.575166 | 0.516835 | 0.507399 | 0.507399 | 0.507399 | 0 | 0.020185 | 0.249551 | 7,790 | 243 | 82 | 32.057613 | 0.777455 | 0.83543 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6b7d9e5a2669647cac8172ea89c374c1adf391b7 | 139 | py | Python | robotSrv/constants.py | JDownloader/GEL-3014_Design3 | dea01245592c97f73e6a78426270d91ade5e25c7 | [
"MIT"
] | null | null | null | robotSrv/constants.py | JDownloader/GEL-3014_Design3 | dea01245592c97f73e6a78426270d91ade5e25c7 | [
"MIT"
] | null | null | null | robotSrv/constants.py | JDownloader/GEL-3014_Design3 | dea01245592c97f73e6a78426270d91ade5e25c7 | [
"MIT"
] | null | null | null |
ROBOT_POSITION_RESSOURCE = '/robotposition'
CUBE_POSITION_RESSOURCE = '/cubeposition'
PATH_RESSOURCE = '/path'
FLAG_RESSOURCE = '/flag' | 17.375 | 43 | 0.776978 | 14 | 139 | 7.285714 | 0.571429 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107914 | 139 | 8 | 44 | 17.375 | 0.822581 | 0 | 0 | 0 | 0 | 0 | 0.266187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6b94d0334e232802439724b3fba7371055622d49 | 169 | py | Python | supervised_learning/0x08-deep_cnns/4-main.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | supervised_learning/0x08-deep_cnns/4-main.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | supervised_learning/0x08-deep_cnns/4-main.py | kyeeh/holbertonschool-machine_learning | 8e4894c2b036ec7f4750de5bf99b95aee5b94449 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import tensorflow.keras as K
resnet50 = __import__('4-resnet50').resnet50
if __name__ == '__main__':
model = resnet50()
model.summary()
| 18.777778 | 44 | 0.698225 | 21 | 169 | 5.047619 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070423 | 0.159763 | 169 | 8 | 45 | 21.125 | 0.676056 | 0.12426 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6b9a5460a63d098d9fa6913f42556e1ab99f6450 | 1,070 | py | Python | cowsay/lib/cows/black_mesa.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | cowsay/lib/cows/black_mesa.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | cowsay/lib/cows/black_mesa.py | Ovlic/cowsay_py | 1ee8d11d6d895d7695d57e26003d71ce18379d3b | [
"MIT"
] | null | null | null | def Black_mesa(thoughts, eyes, eye, tongue):
return f"""
{thoughts}
{thoughts}
.-;+\$XHHHHHHX\$+;-.
,;X\@\@X%/;=----=:/%X\@\@X/,
=\$\@\@%=. .=+H\@X:
-XMX: =XMX=
/\@\@: =H\@+
%\@X, .\$\@\$
... | 42.8 | 66 | 0.118692 | 39 | 1,070 | 3.230769 | 0.435897 | 0.079365 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.354206 | 1,070 | 25 | 67 | 42.8 | 0.182344 | 0 | 0 | 0.08 | 0 | 0 | 0.94211 | 0.418301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0.04 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bb00e54f0e1134bc23f3eb78651d55347669c5e | 439 | py | Python | dh_abstracts/app/abstracts/migrations/0019_auto_20200331_1723.py | dSHARP-CMU/dhweb_app | fe3d89aeb6c59e6606596747a236a2df5529e9a4 | [
"MIT"
] | 3 | 2021-05-07T17:01:33.000Z | 2022-01-08T07:54:22.000Z | dh_abstracts/app/abstracts/migrations/0019_auto_20200331_1723.py | dSHARP-CMU/dhweb_app | fe3d89aeb6c59e6606596747a236a2df5529e9a4 | [
"MIT"
] | 336 | 2019-12-04T23:06:08.000Z | 2022-03-31T16:23:15.000Z | dh_abstracts/app/abstracts/migrations/0019_auto_20200331_1723.py | dSHARP-CMU/dhweb_app | fe3d89aeb6c59e6606596747a236a2df5529e9a4 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-31 21:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('abstracts', '0018_auto_20200331_1715'),
]
operations = [
migrations.RemoveField(
model_name='work',
name='published_version'... | 19.954545 | 49 | 0.567198 | 43 | 439 | 5.651163 | 0.744186 | 0.17284 | 0.213992 | 0.246914 | 0.312757 | 0.312757 | 0 | 0 | 0 | 0 | 0 | 0.104027 | 0.321185 | 439 | 21 | 50 | 20.904762 | 0.711409 | 0.102506 | 0 | 0.4 | 1 | 0 | 0.158163 | 0.058673 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bb8b58e3d4c509f2ab9e15701ed9173e1ab9a10 | 814 | py | Python | Lib/test/test_decr.py | zingero/cpython | da36d8cdedc1cf1937c3579e2bc089a8ff97c093 | [
"0BSD"
] | null | null | null | Lib/test/test_decr.py | zingero/cpython | da36d8cdedc1cf1937c3579e2bc089a8ff97c093 | [
"0BSD"
] | 13 | 2020-12-01T05:38:24.000Z | 2022-03-01T18:00:55.000Z | Lib/test/test_decr.py | zingero/cpython | da36d8cdedc1cf1937c3579e2bc089a8ff97c093 | [
"0BSD"
] | null | null | null | # Decrement test.
import unittest
class DecrementTest(unittest.TestCase):
def testBasic(self):
x = 2
x--
self.assertEqual(x, 1)
x --
self.assertEqual(x, 0)
def test_in_loop(self):
original_x = x = 2
decrementation_number = 10
START_FROM_INDEX_O... | 23.941176 | 91 | 0.592138 | 105 | 814 | 4.32381 | 0.352381 | 0.297357 | 0.246696 | 0.112335 | 0.193833 | 0.114537 | 0.114537 | 0.114537 | 0 | 0 | 0 | 0.035026 | 0.298526 | 814 | 33 | 92 | 24.666667 | 0.76007 | 0.018428 | 0 | 0.36 | 0 | 0 | 0.010038 | 0 | 0 | 0 | 0 | 0 | 0.36 | 0 | null | null | 0 | 0.04 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6bea332ba0e011a3d57549e2e8dc5c7c34aff05f | 3,993 | py | Python | bmstu_project/student/forms.py | TrungLuong1194/django-student-management | 5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a | [
"MIT"
] | 1 | 2020-07-17T14:10:50.000Z | 2020-07-17T14:10:50.000Z | bmstu_project/student/forms.py | TrungLuong1194/django-student-management | 5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a | [
"MIT"
] | null | null | null | bmstu_project/student/forms.py | TrungLuong1194/django-student-management | 5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a | [
"MIT"
] | null | null | null | from django import forms
from student.models import Major, UserProfile
from django.contrib.auth.models import User
class MajorForm(forms.ModelForm):
code = forms.CharField(max_length=20)
viName = forms.CharField(max_length=128)
enName = forms.CharField(max_length=128)
class Meta:
model = Major
fields ... | 38.76699 | 79 | 0.78287 | 483 | 3,993 | 6.362319 | 0.240166 | 0.164985 | 0.210218 | 0.284413 | 0.622193 | 0.530101 | 0.530101 | 0 | 0 | 0 | 0 | 0.043588 | 0.103681 | 3,993 | 103 | 80 | 38.76699 | 0.815032 | 0.030303 | 0 | 0.025974 | 0 | 0 | 0.026908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038961 | 0 | 0.844156 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d43ac1ad4b191e4a65578eda72985a89e1d01856 | 179 | py | Python | tests/test_provider.py | ApeWorX/ape-fantom | 694a3b8dde48dd0432a58768879f528dca4edbed | [
"Apache-2.0"
] | null | null | null | tests/test_provider.py | ApeWorX/ape-fantom | 694a3b8dde48dd0432a58768879f528dca4edbed | [
"Apache-2.0"
] | 4 | 2022-03-11T21:38:56.000Z | 2022-03-20T15:39:16.000Z | tests/test_provider.py | ApeWorX/ape-fantom | 694a3b8dde48dd0432a58768879f528dca4edbed | [
"Apache-2.0"
] | null | null | null | def test_use_provider(accounts, networks):
with networks.fantom.local.use_provider("test"):
account = accounts.test_accounts[0]
account.transfer(account, 100)
| 35.8 | 52 | 0.72067 | 22 | 179 | 5.681818 | 0.590909 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.167598 | 179 | 4 | 53 | 44.75 | 0.812081 | 0 | 0 | 0 | 0 | 0 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d43f5fac407ab9b3be82deb729884bcc04eb0392 | 837 | py | Python | src/openprocurement/tender/esco/procedure/serializers/bid.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 10 | 2020-02-18T01:56:21.000Z | 2022-03-28T00:32:57.000Z | src/openprocurement/tender/esco/procedure/serializers/bid.py | quintagroup/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 26 | 2018-07-16T09:30:44.000Z | 2021-02-02T17:51:30.000Z | src/openprocurement/tender/esco/procedure/serializers/bid.py | ProzorroUKR/openprocurement.api | 2855a99aa8738fb832ee0dbad4e9590bd3643511 | [
"Apache-2.0"
] | 15 | 2019-08-08T10:50:47.000Z | 2022-02-05T14:13:36.000Z | from openprocurement.tender.core.procedure.serializers.base import ListSerializer
from openprocurement.tender.core.procedure.serializers.document import ConfidentialDocumentSerializer
from openprocurement.tender.core.procedure.serializers.parameter import ParameterSerializer
from openprocurement.tender.esco.procedure.s... | 52.3125 | 101 | 0.833931 | 71 | 837 | 9.816901 | 0.366197 | 0.163558 | 0.215208 | 0.124821 | 0.351506 | 0.351506 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097969 | 837 | 15 | 102 | 55.8 | 0.923179 | 0 | 0 | 0 | 0 | 0 | 0.039427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d453eb393dd54ae2eef12fe9e70bae23ed170871 | 1,076 | py | Python | user_service/user/schema/user_schema.py | ss-o-furda/part_of_proj-user_service | 20553eebaa2189cd47b08119850cd17ab0b1cd20 | [
"CC0-1.0"
] | null | null | null | user_service/user/schema/user_schema.py | ss-o-furda/part_of_proj-user_service | 20553eebaa2189cd47b08119850cd17ab0b1cd20 | [
"CC0-1.0"
] | 1 | 2021-06-02T02:43:39.000Z | 2021-06-02T02:43:39.000Z | user_service/user/schema/user_schema.py | ss-o-furda/part_of_proj-user_service | 20553eebaa2189cd47b08119850cd17ab0b1cd20 | [
"CC0-1.0"
] | null | null | null | from marshmallow import fields, validate, validates_schema, ValidationError
from user import MARSHMALLOW
from user.models.user_model import User
class UserSchema(MARSHMALLOW.ModelSchema):
user_password = fields.Str(validate=validate.Length(6, 255))
user_email = fields.Str(validate=validate.Email())
class... | 33.625 | 75 | 0.750929 | 133 | 1,076 | 5.909774 | 0.270677 | 0.091603 | 0.173028 | 0.254453 | 0.452926 | 0.452926 | 0.452926 | 0.358779 | 0.246819 | 0.127226 | 0 | 0.021645 | 0.141264 | 1,076 | 31 | 76 | 34.709677 | 0.829004 | 0 | 0 | 0.190476 | 0 | 0 | 0.061338 | 0.019517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.428571 | 0.142857 | 0 | 0.809524 | 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 |
d4609e8f44efe020f44060fbdd7755f9870ce65b | 756 | py | Python | similarity/io/kv_storage.py | diepdaocs/redis-minhash-es | e570fabd05730375af3e91c7830044cc0413fd9d | [
"Apache-2.0"
] | 1 | 2020-10-06T15:40:46.000Z | 2020-10-06T15:40:46.000Z | similarity/io/kv_storage.py | diepdaocs/redis-minhash-es | e570fabd05730375af3e91c7830044cc0413fd9d | [
"Apache-2.0"
] | null | null | null | similarity/io/kv_storage.py | diepdaocs/redis-minhash-es | e570fabd05730375af3e91c7830044cc0413fd9d | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from redis import StrictRedis
class KVStorage(ABC):
@abstractmethod
def put(self, name, key, value):
pass
@abstractmethod
def get(self, name, key):
pass
@abstractmethod
def delete(self, key):
pass
class RedisStorage(KVStorage):
... | 20.432432 | 74 | 0.628307 | 93 | 756 | 5.010753 | 0.344086 | 0.090129 | 0.094421 | 0.103004 | 0.242489 | 0.193133 | 0.133047 | 0 | 0 | 0 | 0 | 0.007246 | 0.269841 | 756 | 36 | 75 | 21 | 0.836957 | 0 | 0 | 0.5 | 0 | 0 | 0.017196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.125 | 0.083333 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
00fe339e324ca87a706ae6136e567aedc5f923dd | 329 | py | Python | slackhandler/blockkit.py | bonartm/slackhandler | 55c78c9761c1e552857fe9cdbe97ee2597487b77 | [
"MIT"
] | null | null | null | slackhandler/blockkit.py | bonartm/slackhandler | 55c78c9761c1e552857fe9cdbe97ee2597487b77 | [
"MIT"
] | null | null | null | slackhandler/blockkit.py | bonartm/slackhandler | 55c78c9761c1e552857fe9cdbe97ee2597487b77 | [
"MIT"
] | 1 | 2021-12-17T10:44:30.000Z | 2021-12-17T10:44:30.000Z | def make_divider():
return {"type": "divider"}
def make_markdown(text):
return {"type": "mrkdwn", "text": text }
def make_section(text):
return {"type":"section", "text": make_markdown(text)}
def make_context(*args):
return {"type":"context", "elements": [*args]}
def make_blocks(*args):
return [... | 19.352941 | 58 | 0.635258 | 41 | 329 | 4.95122 | 0.317073 | 0.172414 | 0.157635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167173 | 329 | 16 | 59 | 20.5625 | 0.740876 | 0 | 0 | 0 | 0 | 0 | 0.180428 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
00ff4a8835d914f17981db009280fc3a6e9e3c0c | 588 | py | Python | build/imu_calib/catkin_generated/pkg.develspace.context.pc.py | dawnchen123/AutonomousCar | 6595c5f64f89dcee32f84f414c54028c2da25a45 | [
"BSD-2-Clause"
] | null | null | null | build/imu_calib/catkin_generated/pkg.develspace.context.pc.py | dawnchen123/AutonomousCar | 6595c5f64f89dcee32f84f414c54028c2da25a45 | [
"BSD-2-Clause"
] | null | null | null | build/imu_calib/catkin_generated/pkg.develspace.context.pc.py | dawnchen123/AutonomousCar | 6595c5f64f89dcee32f84f414c54028c2da25a45 | [
"BSD-2-Clause"
] | 1 | 2019-10-22T05:54:23.000Z | 2019-10-22T05:54:23.000Z | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/nvidia/linorobot_ws/src/imu_calib/include;/usr/local/include/eigen3".split(';') if "/home/nvidia/linorobot_ws/src/imu_calib/include;/usr/local/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS... | 65.333333 | 213 | 0.767007 | 84 | 588 | 5.047619 | 0.52381 | 0.070755 | 0.134434 | 0.148585 | 0.283019 | 0.283019 | 0.283019 | 0.283019 | 0.283019 | 0.283019 | 0 | 0.009107 | 0.066327 | 588 | 8 | 214 | 73.5 | 0.763206 | 0.091837 | 0 | 0 | 1 | 0 | 0.494361 | 0.411654 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e44abcfdbb18d94c222ffb45f03c16751379a76 | 312 | py | Python | wafer/tickets/urls.py | liip-forks/wafer | e7f90f61c820d2d643738f590bb2614d87a2bda7 | [
"ISC"
] | null | null | null | wafer/tickets/urls.py | liip-forks/wafer | e7f90f61c820d2d643738f590bb2614d87a2bda7 | [
"ISC"
] | null | null | null | wafer/tickets/urls.py | liip-forks/wafer | e7f90f61c820d2d643738f590bb2614d87a2bda7 | [
"ISC"
] | null | null | null | from django.conf.urls import url
from wafer.tickets.views import ClaimView, zapier_cancel_hook, zapier_guest_hook
urlpatterns = [
url(r'^claim/$', ClaimView.as_view(), name='wafer_ticket_claim'),
url(r'^zapier_guest_hook/$', zapier_guest_hook),
url(r'^zapier_cancel_hook/$', zapier_cancel_hook),
]
| 31.2 | 80 | 0.75 | 45 | 312 | 4.866667 | 0.466667 | 0.164384 | 0.219178 | 0.200913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112179 | 312 | 9 | 81 | 34.666667 | 0.790614 | 0 | 0 | 0 | 0 | 0 | 0.214744 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2e569471592d5ed61cf0d5d23478440e96810c7e | 2,507 | py | Python | AtlasOEM.py | pratikgharte/Python_GUI_EC_PH | 5dd6a166ffc59a55a45e711481261644879a3d8a | [
"MIT"
] | 2 | 2020-11-24T05:43:55.000Z | 2021-01-23T18:08:17.000Z | AtlasOEM.py | pratikgharte/Python_GUI_EC_PH | 5dd6a166ffc59a55a45e711481261644879a3d8a | [
"MIT"
] | null | null | null | AtlasOEM.py | pratikgharte/Python_GUI_EC_PH | 5dd6a166ffc59a55a45e711481261644879a3d8a | [
"MIT"
] | 4 | 2020-11-03T22:06:52.000Z | 2022-03-14T15:59:07.000Z | import smbus
class AtlasOEM(object):
DEFAULT_BUS = 1
def __init__(self, address, name = "", bus=None):
self._address = address
self.bus = smbus.SMBus(bus or self.DEFAULT_BUS)
self._name = name
def read_byte(self, reg):
return self.bus.read_byte_data(self._addre... | 30.950617 | 72 | 0.613083 | 358 | 2,507 | 4.053073 | 0.167598 | 0.121296 | 0.083391 | 0.113715 | 0.627843 | 0.510682 | 0.510682 | 0.510682 | 0.487939 | 0.461751 | 0 | 0.036876 | 0.26446 | 2,507 | 81 | 73 | 30.950617 | 0.75 | 0.026326 | 0 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02542 | 0 | 0 | 1 | 0.288136 | false | 0 | 0.016949 | 0.118644 | 0.525424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2e69e33a61b81c558f9fa525e6c07b5e5e1425ef | 574 | py | Python | prototypes/test-examples/pytest/test_parameterize_bootstrap.py | mikej888/recipy-test | 6db030fb4013baf57ec7fb78c287f9f0fbbc28a0 | [
"Apache-2.0"
] | null | null | null | prototypes/test-examples/pytest/test_parameterize_bootstrap.py | mikej888/recipy-test | 6db030fb4013baf57ec7fb78c287f9f0fbbc28a0 | [
"Apache-2.0"
] | null | null | null | prototypes/test-examples/pytest/test_parameterize_bootstrap.py | mikej888/recipy-test | 6db030fb4013baf57ec7fb78c287f9f0fbbc28a0 | [
"Apache-2.0"
] | 2 | 2016-08-17T12:17:56.000Z | 2021-12-17T09:58:22.000Z | import os
import pytest
@pytest.fixture(scope="module")
def some_context():
return [1,2,3,4,5]
def get_scripts():
with open(config_file) as f:
scripts = [line.strip('\n') for line in f.readlines()]
return scripts
config_file = os.environ["RECIPY_TEST_CASES_CONFIG"]
def case_name(value):
retu... | 22.96 | 64 | 0.675958 | 82 | 574 | 4.560976 | 0.597561 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01073 | 0.188153 | 574 | 24 | 65 | 23.916667 | 0.791845 | 0 | 0 | 0 | 0 | 0 | 0.118467 | 0.041812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.105263 | 0.105263 | 0.473684 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
2e6c9f854f514e9716b7ba0dd3593165017fce65 | 280 | py | Python | paper_submission/debug/chrom_expression_by_tissue.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 1 | 2019-09-13T13:24:18.000Z | 2019-09-13T13:24:18.000Z | paper_submission/debug/chrom_expression_by_tissue.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 65 | 2019-07-24T16:23:08.000Z | 2020-03-06T22:18:47.000Z | paper_submission/debug/chrom_expression_by_tissue.py | jfear/larval_gonad | 624a71741864b74e0372f89bdcca578e5cca3722 | [
"MIT"
] | 1 | 2021-06-02T19:09:35.000Z | 2021-06-02T19:09:35.000Z | import builtins
from larval_gonad.mock import MockSnake
from larval_gonad.config import read_config
builtins.snakemake = MockSnake(
input="../../output/paper_submission/fig1_data_avg_tpm_per_chrom.feather",
params=dict(colors=read_config("../../config/colors.yaml")),
)
| 28 | 78 | 0.778571 | 37 | 280 | 5.621622 | 0.675676 | 0.096154 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.092857 | 280 | 9 | 79 | 31.111111 | 0.814961 | 0 | 0 | 0 | 0 | 0 | 0.317857 | 0.317857 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2e771c1ec9cc8816ff1943c4758c4e36106d4a67 | 440 | py | Python | mlflow_ext/mlflow_wrapper.py | vashineyu/mlflow_extension | 3dfe36c9cdfda2f29c3ef2ccbf95a751c6dadde5 | [
"Apache-2.0"
] | null | null | null | mlflow_ext/mlflow_wrapper.py | vashineyu/mlflow_extension | 3dfe36c9cdfda2f29c3ef2ccbf95a751c6dadde5 | [
"Apache-2.0"
] | null | null | null | mlflow_ext/mlflow_wrapper.py | vashineyu/mlflow_extension | 3dfe36c9cdfda2f29c3ef2ccbf95a751c6dadde5 | [
"Apache-2.0"
] | null | null | null | """mlflow_wrapper.py
Decorators for class/functions
"""
from .tracker import TrackMetric, TrackParam
__all__ = [
"metric",
"param",
]
def metric(*args, **kwargs):
def function_wrapper(function):
return TrackMetric(function, *args, **kwargs)
return function_wrapper
def param(*args, **kwargs... | 19.130435 | 53 | 0.688636 | 47 | 440 | 6.255319 | 0.425532 | 0.136054 | 0.088435 | 0.142857 | 0.55102 | 0.55102 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0.190909 | 440 | 22 | 54 | 20 | 0.825843 | 0.109091 | 0 | 0.307692 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2e83eb480f254310c1ea5d79c17f9c04a6c5fc95 | 127 | py | Python | datacollection/routing.py | playfulMIT/kimchi | 66802cc333770932a8c8b1a44ea5d235d916a8f1 | [
"MIT"
] | null | null | null | datacollection/routing.py | playfulMIT/kimchi | 66802cc333770932a8c8b1a44ea5d235d916a8f1 | [
"MIT"
] | 16 | 2019-12-10T19:40:27.000Z | 2022-02-10T11:51:06.000Z | datacollection/routing.py | playfulMIT/kimchi | 66802cc333770932a8c8b1a44ea5d235d916a8f1 | [
"MIT"
] | null | null | null | from django.urls import path
from . import consumers
websocket_urlpatterns = [path("ws/", consumers.DataCollectionConsumer)]
| 21.166667 | 71 | 0.795276 | 14 | 127 | 7.142857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110236 | 127 | 5 | 72 | 25.4 | 0.884956 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cf045db39dc893e6400d3ca1bbbfd66ec8458f5a | 654 | py | Python | greenflow/greenflow/dataframe_flow/__init__.py | t-triobox/gQuant | 6ee3ba104ce4c6f17a5755e7782298902d125563 | [
"Apache-2.0"
] | null | null | null | greenflow/greenflow/dataframe_flow/__init__.py | t-triobox/gQuant | 6ee3ba104ce4c6f17a5755e7782298902d125563 | [
"Apache-2.0"
] | null | null | null | greenflow/greenflow/dataframe_flow/__init__.py | t-triobox/gQuant | 6ee3ba104ce4c6f17a5755e7782298902d125563 | [
"Apache-2.0"
] | null | null | null | from .node import * # noqa: F401,F403
from .taskSpecSchema import * # noqa: F401,F403
from .taskGraph import * # noqa: F401,F403
from .portsSpecSchema import * # noqa: F401,F403
from .metaSpec import * # noqa: F401,F403
import sys
try:
# For python 3.8 and later
import importlib.metadata as importlib_metad... | 32.7 | 70 | 0.718654 | 90 | 654 | 5.144444 | 0.455556 | 0.107991 | 0.151188 | 0.194384 | 0.190065 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064394 | 0.192661 | 654 | 19 | 71 | 34.421053 | 0.8125 | 0.302752 | 0 | 0 | 0 | 0 | 0.035794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cf10a62bfa588f7cc575521ddb7d0ab5db20c7cd | 146 | py | Python | src/users/urls.py | MichaelNest/My-First-Show-Project | 45dda51f97ea4338200453e82f769efe2c075e40 | [
"Apache-2.0"
] | null | null | null | src/users/urls.py | MichaelNest/My-First-Show-Project | 45dda51f97ea4338200453e82f769efe2c075e40 | [
"Apache-2.0"
] | null | null | null | src/users/urls.py | MichaelNest/My-First-Show-Project | 45dda51f97ea4338200453e82f769efe2c075e40 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from .views import Signup
app_name = 'users'
urlpatterns = [
path('signup/', Signup.as_view(), name='signup')
] | 18.25 | 52 | 0.69863 | 20 | 146 | 5 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157534 | 146 | 8 | 53 | 18.25 | 0.813008 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cf5c77c555ecb2e02b90f5f6cbb36c241e07712b | 205 | py | Python | test_suite.py | williangl/locust_jtl_reporter | 2eeed97d3aa454223f443fb406076500dd5b2934 | [
"MIT"
] | null | null | null | test_suite.py | williangl/locust_jtl_reporter | 2eeed97d3aa454223f443fb406076500dd5b2934 | [
"MIT"
] | null | null | null | test_suite.py | williangl/locust_jtl_reporter | 2eeed97d3aa454223f443fb406076500dd5b2934 | [
"MIT"
] | null | null | null | from locust import HttpUser
from product_route import ProductLoadTest
from user_route import UserLoadTest
class WebsiteUser(HttpUser):
tasks = [
UserLoadTest,
ProductLoadTest
]
| 15.769231 | 41 | 0.731707 | 20 | 205 | 7.4 | 0.6 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234146 | 205 | 12 | 42 | 17.083333 | 0.942675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cf5e85c8ee7f4df53eddd407cd62cbb100762cc1 | 609 | py | Python | everbug/utils/manager.py | everhide/everbug | 72da1372510a2116e45c23da934a40dca1f4dbd5 | [
"MIT"
] | 182 | 2018-06-15T07:07:11.000Z | 2021-06-15T21:53:58.000Z | everbug/utils/manager.py | everhide/everbug | 72da1372510a2116e45c23da934a40dca1f4dbd5 | [
"MIT"
] | 7 | 2018-06-15T07:03:58.000Z | 2018-09-13T08:43:19.000Z | everbug/utils/manager.py | everhide/everbug | 72da1372510a2116e45c23da934a40dca1f4dbd5 | [
"MIT"
] | 3 | 2018-06-15T20:44:51.000Z | 2018-09-12T19:05:39.000Z | class _Manager(type):
""" Singletone for cProfile manager """
_inst = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._inst:
cls._inst[cls] = super(_Manager, cls).__call__(*args, **kwargs)
return cls._inst[cls]
class ProfileManager(metaclass=_Manager):
def __init... | 21.75 | 75 | 0.609195 | 70 | 609 | 4.957143 | 0.428571 | 0.172911 | 0.086455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26601 | 609 | 27 | 76 | 22.555556 | 0.776286 | 0.050903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cf5fdc935b246205705bebdc1988c54f65a6701d | 2,025 | py | Python | tests/extern/conftest.py | deepdoctection/deepdoctection | 7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036 | [
"Apache-2.0"
] | 39 | 2021-12-14T11:05:25.000Z | 2022-03-31T18:50:58.000Z | tests/extern/conftest.py | deepdoctection/deepdoctection | 7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036 | [
"Apache-2.0"
] | 17 | 2022-01-04T14:32:26.000Z | 2022-03-29T14:01:36.000Z | tests/extern/conftest.py | deepdoctection/deepdoctection | 7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036 | [
"Apache-2.0"
] | 4 | 2022-01-11T16:40:17.000Z | 2022-03-30T02:09:55.000Z | # -*- coding: utf-8 -*-
# File: conftest.py
# Copyright 2021 Dr. Janis Meyer. All rights reserved.
#
# 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/LICE... | 24.107143 | 74 | 0.724938 | 260 | 2,025 | 5.461538 | 0.419231 | 0.056338 | 0.064789 | 0.05493 | 0.165493 | 0.165493 | 0.165493 | 0.083099 | 0 | 0 | 0 | 0.007729 | 0.169383 | 2,025 | 83 | 75 | 24.39759 | 0.836504 | 0.390617 | 0 | 0 | 0 | 0 | 0.095792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | true | 0 | 0.222222 | 0 | 0.740741 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
cf623e082d962d40a1a6dbfc452f070c88e7054c | 491 | py | Python | hospi/admin.py | Vicky-Rathod/django-hospital-management | b553f1da64f10eae527b438dd28acaad56d2d774 | [
"MIT"
] | null | null | null | hospi/admin.py | Vicky-Rathod/django-hospital-management | b553f1da64f10eae527b438dd28acaad56d2d774 | [
"MIT"
] | 4 | 2021-05-21T01:48:19.000Z | 2022-02-10T13:01:49.000Z | hospi/admin.py | Vicky-Rathod/django-hospital-management | b553f1da64f10eae527b438dd28acaad56d2d774 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Patient,Ipd,Rooms,TreatmentAdviced,TreatmentGiven,Discharge,Procedure,Investigation,DailyRound,Opd
admin.site.register(Opd)# Register your models here.
admin.site.register(Patient)
admin.site.register(Ipd)
admin.site.register(Rooms)
admin.site.register(TreatmentAdv... | 32.733333 | 118 | 0.843177 | 62 | 491 | 6.677419 | 0.322581 | 0.217391 | 0.410628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04888 | 491 | 14 | 119 | 35.071429 | 0.88651 | 0.052953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cf68f65115320cc914dad608b3c27f36cbd7b332 | 413 | py | Python | examples/required.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | examples/required.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | examples/required.py | klauer/apischema | 0da9b96b74dabe8704e2dcfca4502aed98500799 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional
from pytest import raises
from apischema import ValidationError, deserialize
from apischema.metadata import required
@dataclass
class Foo:
bar: Optional[int] = field(default=None, metadata=required)
with raises(ValidationError) as err:
d... | 22.944444 | 72 | 0.755448 | 50 | 413 | 6.24 | 0.6 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140436 | 413 | 17 | 73 | 24.294118 | 0.878873 | 0 | 0 | 0 | 0 | 0 | 0.060533 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | true | 0 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cf819ed4b5395493fc3886a54331635b6add69a6 | 532 | py | Python | src/prosi3d/meta/cluster.py | pzimbrod/prosi-3d | 6eaa5b9cdb7192f542417429b1775c3e61a9bc60 | [
"MIT"
] | null | null | null | src/prosi3d/meta/cluster.py | pzimbrod/prosi-3d | 6eaa5b9cdb7192f542417429b1775c3e61a9bc60 | [
"MIT"
] | 3 | 2021-11-11T07:32:01.000Z | 2021-11-23T15:42:26.000Z | src/prosi3d/meta/cluster.py | pzimbrod/prosi-3d | 6eaa5b9cdb7192f542417429b1775c3e61a9bc60 | [
"MIT"
] | null | null | null | """
Abstract Base Class for data models that conduct clustering upon the input data
"""
from abc import ABC, ABCMeta, abstractmethod
from .analysis import DataModel
class Cluster(DataModel):
"""
Keep in mind that you have to define the abstract methods inherited from DataModel
"""
""" Cus... | 28 | 87 | 0.680451 | 64 | 532 | 5.625 | 0.671875 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25188 | 532 | 19 | 88 | 28 | 0.904523 | 0.304511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d855337d24fef7108d2c7f6be570fa5e4a79e014 | 684 | py | Python | sanskrit_parser/generator/test/test_list.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 54 | 2017-06-30T09:11:53.000Z | 2022-03-22T15:35:41.000Z | sanskrit_parser/generator/test/test_list.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 159 | 2017-06-30T07:04:36.000Z | 2021-06-17T17:03:43.000Z | sanskrit_parser/generator/test/test_list.py | avinashvarna/sanskrit_parser | 79338213128b29927fe2f06031379bb1e3864a83 | [
"MIT"
] | 18 | 2017-08-17T13:22:00.000Z | 2022-01-20T01:08:58.000Z | # flake8: noqa
from sanskrit_parser.generator.pratyaya import *
from sanskrit_parser.generator.dhatu import *
from sanskrit_parser.generator.pratipadika import *
from sanskrit_parser.base.sanskrit_base import SLP1, DEVANAGARI
from sanskrit_parser.generator.sutras_yaml import sutra_list
from conftest import run_test, g... | 31.090909 | 63 | 0.830409 | 99 | 684 | 5.444444 | 0.313131 | 0.089054 | 0.166976 | 0.200371 | 0.252319 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008091 | 0.096491 | 684 | 21 | 64 | 32.571429 | 0.864078 | 0.017544 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.6 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d86dd9f210c5df5e89d8cb021f9c722ac4523556 | 942 | py | Python | utilities/vector.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | utilities/vector.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | utilities/vector.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | import math
class Vec3:
def __init__(self, x=.0, y=.0, z=.0):
self.x = float(x)
self.y = float(y)
self.z = float(z)
def __str__(self):
return "Vector(%.4f, %.4f, %.4f)" % (self.x, self.y, self.z)
def __add__(self, vec):
return Vec3(self.x+vec.x,... | 26.914286 | 69 | 0.543524 | 152 | 942 | 3.157895 | 0.184211 | 0.09375 | 0.0625 | 0.125 | 0.441667 | 0.441667 | 0.441667 | 0.441667 | 0.441667 | 0.441667 | 0 | 0.020958 | 0.29087 | 942 | 34 | 70 | 27.705882 | 0.697605 | 0 | 0 | 0 | 0 | 0 | 0.026432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.041667 | 0.375 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d8791e91f3ee327e4337c89763504ef7887ad364 | 361 | py | Python | Week 1/grok/samples/1b/21.mean of sets of fits file.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | 4 | 2021-07-02T02:57:31.000Z | 2022-02-01T17:31:14.000Z | Week 1/grok/samples/1b/21.mean of sets of fits file.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | null | null | null | Week 1/grok/samples/1b/21.mean of sets of fits file.py | anandprabhakar0507/Assignments-Data-Driven-Astronomy-from-University-of-sydney-on-coursera- | 58fab1c413d7ad5693b1d63f14be05b0f5ec448c | [
"MIT"
] | 3 | 2021-07-12T21:54:43.000Z | 2022-02-01T17:31:42.000Z | from astropy.io import fits
import numpy as np
def mean_fits(files):
n = len(files)
if n > 0:
hdulist = fits.open(files[0])
data = hdulist[0].data
hdulist.close()
for i in range(1, n):
hdulist = fits.open(files[i])
data += hdulist[0].data
hdulist.close()
... | 20.055556 | 36 | 0.548476 | 52 | 361 | 3.788462 | 0.480769 | 0.22335 | 0.182741 | 0.203046 | 0.284264 | 0.284264 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.33518 | 361 | 18 | 37 | 20.055556 | 0.8 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8842c3d0cfc878e5c92a8fc8ba1dbc585a91688 | 3,452 | py | Python | persistent_list_kata/day_5.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | persistent_list_kata/day_5.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | persistent_list_kata/day_5.py | Alex-Diez/python-tdd-katas | a176f16cfd103e618e539a57cac0748fba52221c | [
"MIT"
] | null | null | null | import unittest
class PersistentList(object):
def __repr__(self):
return ''
def prepend(self, item):
return _Node(item, self)
def head(self):
pass
def tail(self):
return self
def __eq__(self, other):
return isinstance(other, self.__class__) \
... | 25.014493 | 81 | 0.612688 | 401 | 3,452 | 5.047382 | 0.177057 | 0.075593 | 0.067194 | 0.071146 | 0.339921 | 0.253953 | 0.224802 | 0.188241 | 0.188241 | 0.188241 | 0 | 0.012774 | 0.274334 | 3,452 | 137 | 82 | 25.19708 | 0.79521 | 0.019409 | 0 | 0.37234 | 0 | 0 | 0.007392 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 1 | 0.329787 | false | 0.010638 | 0.010638 | 0.138298 | 0.585106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d888b3b4dddb7b72686e118afab1a93389e16130 | 210 | py | Python | backend/src/tools/exceptions/predict.py | robersh0/flask_gunicorn | 9679c4edb3ecccbbfc3131e742558fdf4cda9287 | [
"Apache-2.0"
] | null | null | null | backend/src/tools/exceptions/predict.py | robersh0/flask_gunicorn | 9679c4edb3ecccbbfc3131e742558fdf4cda9287 | [
"Apache-2.0"
] | null | null | null | backend/src/tools/exceptions/predict.py | robersh0/flask_gunicorn | 9679c4edb3ecccbbfc3131e742558fdf4cda9287 | [
"Apache-2.0"
] | null | null | null | from src.tools.exceptions.base import GunicornFlaskBaseException
class PredictException(GunicornFlaskBaseException):
def __init__(self, tag=None):
self.tag = tag
super().__init__(tag=tag)
| 26.25 | 64 | 0.742857 | 22 | 210 | 6.727273 | 0.681818 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 210 | 7 | 65 | 30 | 0.845714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d8a196320c18913764b54a765deebe37c40b5c84 | 269 | py | Python | tetris/tetrominos/i.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | tetris/tetrominos/i.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | tetris/tetrominos/i.py | JacobChen258/AI-Constraints-Satisfaction | 9b01cfce447e40678eb2e426413b4e2e437257f0 | [
"MIT"
] | null | null | null | from .tetromino import Tetromino
class I(Tetromino):
def __init__(self):
super().__init__("I")
def _build(self):
self._original = [[0, 0, 0, 0],
[0, 0, 0, 0],
[6, 6, 6, 6],
[0, 0, 0, 0]]
| 19.214286 | 35 | 0.423792 | 34 | 269 | 3.058824 | 0.382353 | 0.192308 | 0.230769 | 0.230769 | 0.076923 | 0.076923 | 0.076923 | 0 | 0 | 0 | 0 | 0.101266 | 0.412639 | 269 | 13 | 36 | 20.692308 | 0.556962 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d8ae1711c8821ff7256011b5606ef3bf956e921c | 204 | py | Python | flask_socketapi/exc.py | Teino1978-Corp/-Flask-SocketAPI | 8be1a59d7b27484f53173d36390b31303cf4137e | [
"MIT"
] | 6 | 2016-07-10T23:02:15.000Z | 2021-08-30T02:45:38.000Z | flask_socketapi/exc.py | Teino1978-Corp/-Flask-SocketAPI | 8be1a59d7b27484f53173d36390b31303cf4137e | [
"MIT"
] | null | null | null | flask_socketapi/exc.py | Teino1978-Corp/-Flask-SocketAPI | 8be1a59d7b27484f53173d36390b31303cf4137e | [
"MIT"
] | 2 | 2017-05-18T21:33:44.000Z | 2017-05-21T13:51:48.000Z | class SocketAPIError(Exception):
pass
class InvalidRequestError(SocketAPIError):
pass
class InvalidURIError(InvalidRequestError):
pass
class NotFoundError(InvalidRequestError):
pass
| 13.6 | 43 | 0.77451 | 16 | 204 | 9.875 | 0.4375 | 0.170886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 204 | 14 | 44 | 14.571429 | 0.929412 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d8e7740d5edbf0356e3cb8d4bb1d76a9e629b9f0 | 513 | py | Python | src/__main__.py | bahorn/backup_script | de5809779ddbba8cd4a767f79dfd929848cc2893 | [
"MIT"
] | null | null | null | src/__main__.py | bahorn/backup_script | de5809779ddbba8cd4a767f79dfd929848cc2893 | [
"MIT"
] | null | null | null | src/__main__.py | bahorn/backup_script | de5809779ddbba8cd4a767f79dfd929848cc2893 | [
"MIT"
] | null | null | null | """
A tool to generate scripts using rclone to do backups.
Allows some sanity checking over your config, etc.
The scripts outputted are meant to be human readable.
"""
import sys
import toml
from config import Config
from tool import BackupScript
def main(args):
"""
Entry point for the tool
"""
cfg_... | 19.730769 | 54 | 0.699805 | 74 | 513 | 4.689189 | 0.648649 | 0.023055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002451 | 0.204678 | 513 | 25 | 55 | 20.52 | 0.848039 | 0.362573 | 0 | 0 | 1 | 0 | 0.029605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d8fedc190540c35b3a505fff6934e0015a2f67d4 | 136 | py | Python | hookit/exc.py | xhs/hookit | f3be94779ce628583caf43663d22288f47588ea5 | [
"BSD-2-Clause"
] | 1 | 2020-04-06T20:53:27.000Z | 2020-04-06T20:53:27.000Z | hookit/exc.py | xhs/hookit | f3be94779ce628583caf43663d22288f47588ea5 | [
"BSD-2-Clause"
] | null | null | null | hookit/exc.py | xhs/hookit | f3be94779ce628583caf43663d22288f47588ea5 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class HookitConnectionError(Exception):
pass
__all__ = ['HookitConnectionError']
| 13.6 | 39 | 0.683824 | 13 | 136 | 6.846154 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.154412 | 136 | 9 | 40 | 15.111111 | 0.756522 | 0.316176 | 0 | 0 | 0 | 0 | 0.230769 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2b042d2ba8d298c0c460075d008cdbddf6e17de2 | 1,349 | py | Python | pyglobi/__init__.py | nicholac/pyglobi | aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a | [
"MIT"
] | null | null | null | pyglobi/__init__.py | nicholac/pyglobi | aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a | [
"MIT"
] | null | null | null | pyglobi/__init__.py | nicholac/pyglobi | aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# PyGlobi
# TODO:
"""
PyGlobi Library
~~~~~~~~~~~~~~~~~~~~~
Python API for the Global Biotic Interactions (GloBI) dataset.
Basic usage:
>>> import pyglobi
>>> ...
"""
import os
import json
import warnings
from .__version__ import __title__, __description__, __url__, __version__
from .... | 24.527273 | 110 | 0.704967 | 163 | 1,349 | 5.411043 | 0.521472 | 0.056689 | 0.057823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002688 | 0.172721 | 1,349 | 54 | 111 | 24.981481 | 0.787634 | 0.255745 | 0 | 0.066667 | 0 | 0 | 0.049495 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | false | 0 | 0.566667 | 0 | 0.566667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2b09e8fb8c2377d4b204c8e5bd9ec89132b62561 | 63 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/N/natural unit of mom.um in MeVc.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/N/natural unit of mom.um in MeVc.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/N/natural unit of mom.um in MeVc.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["natural unit of mom.um in MeV/c"] | 63 | 63 | 0.809524 | 11 | 63 | 4.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 63 | 1 | 63 | 63 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0.484375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b0ea7efdc61f1404f5f267f63e7be99818357ef | 68 | py | Python | config/models/transformer.py | IdiosyncraticDragon/OpenNMT-tf | 99f17c2c2436b45d8a730c662530f4428f9632ca | [
"MIT"
] | 2 | 2018-09-28T14:44:59.000Z | 2018-11-29T02:31:28.000Z | config/models/transformer.py | Nourhene95/Film_Translation | 52538d992abcce044911ee945ffaabd1d12ffe9d | [
"MIT"
] | null | null | null | config/models/transformer.py | Nourhene95/Film_Translation | 52538d992abcce044911ee945ffaabd1d12ffe9d | [
"MIT"
] | 1 | 2019-06-17T21:36:56.000Z | 2019-06-17T21:36:56.000Z | from opennmt.models.catalog import Transformer
model = Transformer
| 17 | 46 | 0.838235 | 8 | 68 | 7.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 68 | 3 | 47 | 22.666667 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2b10c856b49f877d086d499a00dcb3bd008295be | 317 | py | Python | build/lib/pyhpeimc/version.py | HPNetworking/HP-Intelligent-Management-Center | 4fba31827573587e03a6233c7db60f188038c8e5 | [
"Apache-2.0"
] | 13 | 2016-03-14T17:55:03.000Z | 2021-03-26T07:18:26.000Z | build/lib/pyhpeimc/version.py | HPNetworking/HP-Intelligent-Management-Center | 4fba31827573587e03a6233c7db60f188038c8e5 | [
"Apache-2.0"
] | 7 | 2016-08-04T17:39:11.000Z | 2017-09-19T13:42:35.000Z | build/lib/pyhpeimc/version.py | HPNetworking/HP-Intelligent-Management-Center | 4fba31827573587e03a6233c7db60f188038c8e5 | [
"Apache-2.0"
] | 17 | 2016-03-03T05:24:20.000Z | 2022-03-10T08:16:31.000Z | def version():
"""Function takes no aruguments and returns a STR value of the current version of the library. This value should match
the value in the setup.py
:param None
:return str value of the current version of the library
:rtype str
>>> version()
1.0.33
"""
print ('1.0.34') | 28.818182 | 122 | 0.652997 | 50 | 317 | 4.14 | 0.6 | 0.096618 | 0.096618 | 0.125604 | 0.376812 | 0.376812 | 0.376812 | 0.376812 | 0.376812 | 0 | 0 | 0.034188 | 0.26183 | 317 | 11 | 123 | 28.818182 | 0.850427 | 0.763407 | 0 | 0 | 0 | 0 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
2b2517c362cf2f3a86a36ce0643cc246ce4e7c00 | 130 | py | Python | src/flax_extra/training/__init__.py | manifest/flax-extra | e19de992c7acefefca9ed4c9f7ce3e092943363a | [
"Apache-2.0"
] | null | null | null | src/flax_extra/training/__init__.py | manifest/flax-extra | e19de992c7acefefca9ed4c9f7ce3e092943363a | [
"Apache-2.0"
] | 3 | 2021-08-10T04:59:35.000Z | 2021-10-07T21:10:37.000Z | src/flax_extra/training/__init__.py | manifest/flax-extra | e19de992c7acefefca9ed4c9f7ce3e092943363a | [
"Apache-2.0"
] | null | null | null | r"""Training API."""
from flax_extra.training._loop import TrainLoop, TrainTask
__all__ = [
"TrainLoop",
"TrainTask",
]
| 14.444444 | 58 | 0.676923 | 14 | 130 | 5.857143 | 0.785714 | 0.439024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176923 | 130 | 8 | 59 | 16.25 | 0.766355 | 0.1 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b2b28c4e353e666464f155d20c16f44f9ef5fba | 662 | py | Python | moviebot/nlu/annotation/values.py | benebjoern/XAI_MovieBot | fbf47aba22081dd2efe9b89d5797da2dc143f15e | [
"MIT"
] | 2 | 2021-05-27T09:48:04.000Z | 2021-12-01T11:05:12.000Z | moviebot/nlu/annotation/values.py | benebjoern/XAI_MovieBot | fbf47aba22081dd2efe9b89d5797da2dc143f15e | [
"MIT"
] | 20 | 2020-09-18T17:59:32.000Z | 2021-04-12T11:09:29.000Z | moviebot/nlu/annotation/values.py | benebjoern/XAI_MovieBot | fbf47aba22081dd2efe9b89d5797da2dc143f15e | [
"MIT"
] | 5 | 2020-09-10T19:49:25.000Z | 2021-07-30T05:46:29.000Z | """This file contains the list of possible slot values other than the values
fetched from the database.
This approach will help the dialogue state tracker to update state for specific
type of slot values easily"""
__author__ = 'Javeria Habib'
from enum import Enum
class Values(Enum):
"""This class contains the ... | 30.090909 | 80 | 0.743202 | 99 | 662 | 4.828283 | 0.424242 | 0.083682 | 0.062762 | 0.07113 | 0.686192 | 0.686192 | 0.686192 | 0.686192 | 0.686192 | 0.686192 | 0 | 0 | 0.203927 | 662 | 21 | 81 | 31.52381 | 0.907021 | 0.628399 | 0 | 0 | 0 | 0 | 0.189427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2b3ca91f91a1ba9b2896646d6f63a90d1691a84b | 179 | py | Python | tests/regressiontests/initial_sql_regress/tests.py | alex/django-old | 6f964c8f03e5d25c9e36898a001c8463f82fbb81 | [
"BSD-3-Clause"
] | 2 | 2015-11-05T06:07:13.000Z | 2019-01-04T07:35:59.000Z | tests/regressiontests/initial_sql_regress/tests.py | alex/django-old | 6f964c8f03e5d25c9e36898a001c8463f82fbb81 | [
"BSD-3-Clause"
] | null | null | null | tests/regressiontests/initial_sql_regress/tests.py | alex/django-old | 6f964c8f03e5d25c9e36898a001c8463f82fbb81 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from models import Simple
class InitialSQLTests(TestCase):
def test_initial_sql(self):
self.assertEqual(Simple.objects.count(), 7)
| 19.888889 | 51 | 0.75419 | 23 | 179 | 5.782609 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.162011 | 179 | 8 | 52 | 22.375 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2b6e242775999039db97b7ad1387761e2155fb1f | 117 | py | Python | W3Schools Online Lessons/ML/Normal Data Distribution.py | Hetti219/Python-Projects | cf483836496d329ea056928b719e485cbab303a8 | [
"MIT"
] | 1 | 2021-12-13T06:04:57.000Z | 2021-12-13T06:04:57.000Z | W3Schools Online Lessons/ML/Normal Data Distribution.py | Hetti219/Python-Projects | cf483836496d329ea056928b719e485cbab303a8 | [
"MIT"
] | null | null | null | W3Schools Online Lessons/ML/Normal Data Distribution.py | Hetti219/Python-Projects | cf483836496d329ea056928b719e485cbab303a8 | [
"MIT"
] | null | null | null | import numpy
import matplotlib.pyplot as plt
x = numpy.random.normal(1.9, 1.0, 109324)
plt.hist(x, 100)
plt.show()
| 14.625 | 41 | 0.717949 | 22 | 117 | 3.818182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 0.136752 | 117 | 7 | 42 | 16.714286 | 0.70297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2b70cd1b06b98aa2f379bc712bb472936bde0e5b | 222 | py | Python | src/digit_reader/model/model.py | dadamsncsa/python-best-practices-course | e87e60673b0b5d601a7c6de1f9efd543962cc3ba | [
"MIT"
] | null | null | null | src/digit_reader/model/model.py | dadamsncsa/python-best-practices-course | e87e60673b0b5d601a7c6de1f9efd543962cc3ba | [
"MIT"
] | 162 | 2021-01-04T13:49:04.000Z | 2021-05-25T18:56:34.000Z | src/digit_reader/model/model.py | dadamsncsa/python-best-practices-course | e87e60673b0b5d601a7c6de1f9efd543962cc3ba | [
"MIT"
] | null | null | null | class MNISTModel:
def __init__(self):
pass
def train_model(self):
"""
some notes
"""
pass
def evaluate_model(self
"""
more notes
"""
pass
| 15.857143 | 27 | 0.445946 | 20 | 222 | 4.65 | 0.6 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.463964 | 222 | 13 | 28 | 17.076923 | 0.781513 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.428571 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
2b73fa429d2f99e7400e0b73f68e23d4093c7080 | 46 | py | Python | tests/fixtures/script-files/sample_script.py | avoltz/poetry-core | e4d04bab77915b8ec5e995c9b88b539bacb55bc8 | [
"MIT"
] | 205 | 2020-07-03T13:01:07.000Z | 2022-03-27T09:56:16.000Z | tests/fixtures/script-files/sample_script.py | avoltz/poetry-core | e4d04bab77915b8ec5e995c9b88b539bacb55bc8 | [
"MIT"
] | 149 | 2020-06-28T00:02:05.000Z | 2022-03-29T14:35:58.000Z | tests/fixtures/script-files/sample_script.py | avoltz/poetry-core | e4d04bab77915b8ec5e995c9b88b539bacb55bc8 | [
"MIT"
] | 152 | 2020-06-27T00:04:52.000Z | 2022-03-28T15:50:40.000Z | #!/usr/bin/env python
hello = "Hello World!"
| 11.5 | 22 | 0.652174 | 7 | 46 | 4.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 3 | 23 | 15.333333 | 0.769231 | 0.434783 | 0 | 0 | 0 | 0 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
991e4c9bf468f89dba7418269af96a2b5903a976 | 71 | py | Python | drivers/i2c.py | clapeyre/pico-arcade | 9ad4bc3250fcf0eadf4f92a83255c178acd5fe77 | [
"MIT"
] | null | null | null | drivers/i2c.py | clapeyre/pico-arcade | 9ad4bc3250fcf0eadf4f92a83255c178acd5fe77 | [
"MIT"
] | null | null | null | drivers/i2c.py | clapeyre/pico-arcade | 9ad4bc3250fcf0eadf4f92a83255c178acd5fe77 | [
"MIT"
] | null | null | null | from machine import Pin, I2C
I2C0 = I2C(0, scl=Pin(21), sda=Pin(20))
| 14.2 | 39 | 0.661972 | 14 | 71 | 3.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 0.169014 | 71 | 4 | 40 | 17.75 | 0.644068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
99201f751c7178bfc4351c34dbc7bdde562c0c86 | 101 | py | Python | Other/modulosort.py | devAdhiraj/coding-problems | e15d0eeb025e1ad503c73eb9280e6226fd979164 | [
"MIT"
] | null | null | null | Other/modulosort.py | devAdhiraj/coding-problems | e15d0eeb025e1ad503c73eb9280e6226fd979164 | [
"MIT"
] | null | null | null | Other/modulosort.py | devAdhiraj/coding-problems | e15d0eeb025e1ad503c73eb9280e6226fd979164 | [
"MIT"
] | null | null | null | input()
c = int(input())
a = sorted((map(int, input().split())))
a.sort(key= lambda x: x%c)
print(*a) | 20.2 | 39 | 0.594059 | 19 | 101 | 3.157895 | 0.631579 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 101 | 5 | 40 | 20.2 | 0.674157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
992a1b97ab841088ba1a353a1387dd164ee55119 | 468 | py | Python | DecoratorEx.py | JaeGyu/PythonEx_1 | e67053db6ca7431c3dd66351c190c53229e3f141 | [
"MIT"
] | null | null | null | DecoratorEx.py | JaeGyu/PythonEx_1 | e67053db6ca7431c3dd66351c190c53229e3f141 | [
"MIT"
] | null | null | null | DecoratorEx.py | JaeGyu/PythonEx_1 | e67053db6ca7431c3dd66351c190c53229e3f141 | [
"MIT"
] | null | null | null |
def greet(name):
return "Hello {}".format(name)
print(greet("Alice"))
def greet2(name):
def greet_message():
return "Hello"
return "{} {}".format(greet_message(),name)
print(greet2("Alice"))
def change_name_greet(func):
name = "Alice"
return func(name)
print(change_name_greet(greet))
... | 16.714286 | 47 | 0.634615 | 59 | 468 | 4.932203 | 0.254237 | 0.092784 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005391 | 0.207265 | 468 | 27 | 48 | 17.333333 | 0.778976 | 0 | 0 | 0 | 0 | 0 | 0.08137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.666667 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
99362ec1918c5a228d1484342057785ff49599d9 | 770 | py | Python | 2020/17/part1.py | cheshyre/advent-of-code | 2ccc1529bbf8b0deed938d0783deb09dcc8f5e50 | [
"Unlicense"
] | 1 | 2021-12-03T07:20:23.000Z | 2021-12-03T07:20:23.000Z | 2020/17/part1.py | cheshyre/advent-of-code | 2ccc1529bbf8b0deed938d0783deb09dcc8f5e50 | [
"Unlicense"
] | null | null | null | 2020/17/part1.py | cheshyre/advent-of-code | 2ccc1529bbf8b0deed938d0783deb09dcc8f5e50 | [
"Unlicense"
] | null | null | null | import os
import cube
cur_dir = os.path.dirname(os.path.abspath(__file__))
z = 0
active_dict = {}
with open(f"{cur_dir}/input") as f:
for y, line in enumerate(f):
for x, char in enumerate(line.strip()):
if char == "#":
active_dict[(x, y, z)] = cube.Cube(x, y, z)
active_dict ... | 30.8 | 77 | 0.741558 | 123 | 770 | 4.308943 | 0.333333 | 0.415094 | 0.362264 | 0.415094 | 0.539623 | 0.532075 | 0.532075 | 0.532075 | 0.532075 | 0.532075 | 0 | 0.00152 | 0.145455 | 770 | 24 | 78 | 32.083333 | 0.803951 | 0 | 0 | 0.333333 | 0 | 0 | 0.107792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
994cfc719e1e719affbbe45627d217841cc00c12 | 86 | py | Python | scripts/misc/redis_test.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 344 | 2020-06-12T22:12:56.000Z | 2022-03-29T06:48:20.000Z | scripts/misc/redis_test.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 29 | 2020-06-13T19:56:49.000Z | 2022-03-30T20:26:48.000Z | scripts/misc/redis_test.py | cclauss/archai | a5fb8f937f7f1319e3204120803b2a045e9f768b | [
"MIT"
] | 68 | 2020-06-12T19:32:43.000Z | 2022-03-05T06:58:40.000Z | import redis
redis_client = redis.StrictRedis(host="127.0.0.1", port=6379)
input("") | 17.2 | 61 | 0.72093 | 14 | 86 | 4.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 0.093023 | 86 | 5 | 62 | 17.2 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
994d943e1ed28992f43ea83c07fdc959e483bccf | 383 | py | Python | app/route/errors.py | DreamAndDead/flask-glass | b00cd7ae56b8dc4e7d35bce88f5f1d2a1ebc45b3 | [
"MIT"
] | 2 | 2017-06-29T07:34:11.000Z | 2018-01-15T05:38:15.000Z | app/route/errors.py | DreamAndDead/flask-glass | b00cd7ae56b8dc4e7d35bce88f5f1d2a1ebc45b3 | [
"MIT"
] | null | null | null | app/route/errors.py | DreamAndDead/flask-glass | b00cd7ae56b8dc4e7d35bce88f5f1d2a1ebc45b3 | [
"MIT"
] | null | null | null | """
what flask do when 404 or something wrong happens
"""
from flask import render_template
from . import main
@main.app_errorhandler(404)
def page_not_found(e):
"""
404 error page
"""
return render_template('404.html'), 404
@main.app_errorhandler(500)
def internal_server_error(e):
"""
500 e... | 16.652174 | 49 | 0.678851 | 53 | 383 | 4.735849 | 0.509434 | 0.167331 | 0.151394 | 0.167331 | 0.231076 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088525 | 0.203655 | 383 | 22 | 50 | 17.409091 | 0.734426 | 0.206266 | 0 | 0 | 0 | 0 | 0.060377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9959d60654ba2b048caafd94de2c99ac44a44a32 | 311 | py | Python | polygon_cli/colors.py | SergeyMelnikov/polygon-cli | 62bb6a94a5c70f20681c41f1371b0328690e2df3 | [
"MIT"
] | 50 | 2016-01-16T12:58:25.000Z | 2022-01-29T13:34:03.000Z | polygon_cli/colors.py | SergeyMelnikov/polygon-cli | 62bb6a94a5c70f20681c41f1371b0328690e2df3 | [
"MIT"
] | 18 | 2016-01-22T08:25:33.000Z | 2021-09-09T17:41:00.000Z | polygon_cli/colors.py | SergeyMelnikov/polygon-cli | 62bb6a94a5c70f20681c41f1371b0328690e2df3 | [
"MIT"
] | 19 | 2016-01-15T09:57:08.000Z | 2021-09-09T15:02:52.000Z | import colorama
colorama.init(autoreset=True)
def colored(color):
return lambda message, *args: color + message.format(*args) + colorama.Style.RESET_ALL
error = colored(colorama.Fore.RED)
warning = colored(colorama.Fore.YELLOW)
success = colored(colorama.Fore.GREEN)
info = colored(colorama.Fore.CYAN)
| 22.214286 | 90 | 0.765273 | 41 | 311 | 5.780488 | 0.609756 | 0.253165 | 0.320675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11254 | 311 | 13 | 91 | 23.923077 | 0.858696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
996b1949e70fc34bc768d1d7c758d44a55cd4930 | 863 | py | Python | Botnets/Exploits/kace.py | 1ucif3r/DDOS-th31ucif3r | b5f6db19ea25ed3ceca71862eaae58c184270fdd | [
"MIT"
] | 1 | 2021-09-22T13:11:00.000Z | 2021-09-22T13:11:00.000Z | Botnets/Exploits/kace.py | 1ucif3r/DDOS-th31ucif3r | b5f6db19ea25ed3ceca71862eaae58c184270fdd | [
"MIT"
] | null | null | null | Botnets/Exploits/kace.py | 1ucif3r/DDOS-th31ucif3r | b5f6db19ea25ed3ceca71862eaae58c184270fdd | [
"MIT"
] | 3 | 2021-06-27T00:20:17.000Z | 2022-02-26T09:11:03.000Z | #!/usr/bin/python
import threading
import sys
import time
import random
import socket
import subprocess
import re
import os
import struct
import array
import requests
from threading import Thread
from time import sleep
from requests.auth import HTTPDigestAuth
from decimal import *
ips = open(sys.argv[1], "r").readli... | 19.613636 | 147 | 0.687138 | 141 | 863 | 4.148936 | 0.539007 | 0.041026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032349 | 0.17613 | 863 | 43 | 148 | 20.069767 | 0.790436 | 0 | 0 | 0.111111 | 0 | 0.027778 | 0.154846 | 0.039007 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.055556 | 0.416667 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
997ad5b828ec5c693ac582854d231b4393d0c3e7 | 69 | py | Python | test.py | geographika/hashtable-swig | 70af890a4be76759da31800d5ccac0edbb1f5e92 | [
"MIT"
] | null | null | null | test.py | geographika/hashtable-swig | 70af890a4be76759da31800d5ccac0edbb1f5e92 | [
"MIT"
] | null | null | null | test.py | geographika/hashtable-swig | 70af890a4be76759da31800d5ccac0edbb1f5e92 | [
"MIT"
] | null | null | null | import mapscript
ht = mapscript.hashTableObj()
ht["key1"] = "value1" | 17.25 | 29 | 0.724638 | 8 | 69 | 6.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.115942 | 69 | 4 | 30 | 17.25 | 0.786885 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
997d8639bd8a8bfc58b088df644e2d3dc0795f81 | 15,901 | py | Python | osbot_utils/utils/Misc.py | owasp-sbot/OSBot-Utils | 7269390b8fc42a38b8318a21cb824d63eca88bed | [
"Apache-2.0"
] | null | null | null | osbot_utils/utils/Misc.py | owasp-sbot/OSBot-Utils | 7269390b8fc42a38b8318a21cb824d63eca88bed | [
"Apache-2.0"
] | 2 | 2021-01-23T22:04:30.000Z | 2021-02-10T03:30:32.000Z | osbot_utils/utils/Misc.py | owasp-sbot/OSBot-Utils | 7269390b8fc42a38b8318a21cb824d63eca88bed | [
"Apache-2.0"
] | 2 | 2021-01-24T21:52:12.000Z | 2021-01-25T11:15:25.000Z | import base64
import hashlib
import inspect
import logging
import os
import random
import string
import sys
import textwrap
import re
import uuid
import warnings
from datetime import datetime
from secrets import token_bytes
from time import sleep
from urllib.parse import urlencode, quote_plus, unquote_plus
from d... | 29.610801 | 137 | 0.668574 | 2,165 | 15,901 | 4.688222 | 0.139492 | 0.021281 | 0.017931 | 0.007685 | 0.224926 | 0.134286 | 0.100788 | 0.036847 | 0.010837 | 0 | 0 | 0.012707 | 0.223005 | 15,901 | 536 | 138 | 29.666045 | 0.80866 | 0.040123 | 0 | 0.196643 | 0 | 0 | 0.029354 | 0.003743 | 0 | 0 | 0 | 0.001866 | 0 | 1 | 0.270983 | false | 0.014388 | 0.05036 | 0.100719 | 0.616307 | 0.028777 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
99816183077905edc8336bb93429867821a7ec88 | 700 | py | Python | tests/unit_tests/test_config.py | sspbft/sspbft-template | 894967f003c42111737b29398935514446d00a42 | [
"MIT"
] | 6 | 2019-11-12T01:45:55.000Z | 2022-03-18T10:57:21.000Z | tests/unit_tests/test_config.py | sspbft/sspbft-template | 894967f003c42111737b29398935514446d00a42 | [
"MIT"
] | 4 | 2019-02-14T10:57:09.000Z | 2019-03-21T15:22:08.000Z | tests/unit_tests/test_config.py | sspbft/BFTList | d73aee5bd0ab05995509f0fcfaf3c0a5944e617a | [
"MIT"
] | 1 | 2019-04-04T15:09:33.000Z | 2019-04-04T15:09:33.000Z | import unittest
import os
from conf import config
class TestConfig(unittest.TestCase):
def test_config_can_parse_nodes_txt(self):
s = "0,localhost,127.0.0.1,5000\n1,localhost,127.0.0.1,5001\n"
path = "conf/tmp.txt"
with open(path, "w") as f:
f.write(s)
hosts = config.get... | 33.333333 | 70 | 0.63 | 103 | 700 | 4.135922 | 0.456311 | 0.211268 | 0.234742 | 0.197183 | 0.070423 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07326 | 0.22 | 700 | 21 | 71 | 33.333333 | 0.70696 | 0 | 0 | 0 | 0 | 0.052632 | 0.135521 | 0.079886 | 0 | 0 | 0 | 0 | 0.315789 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41eb1acb7cda0b372b4b8452e6c7a221809bf54c | 370 | py | Python | resotocore/resotocore/db/jobdb.py | someengineering/resoto | ee17313f5376e9797ed305e7fdb62d40139a6608 | [
"Apache-2.0"
] | 126 | 2022-01-13T18:22:03.000Z | 2022-03-31T11:03:14.000Z | resotocore/resotocore/db/jobdb.py | someengineering/resoto | ee17313f5376e9797ed305e7fdb62d40139a6608 | [
"Apache-2.0"
] | 110 | 2022-01-13T22:27:55.000Z | 2022-03-30T22:26:50.000Z | resotocore/resotocore/db/jobdb.py | someengineering/resoto | ee17313f5376e9797ed305e7fdb62d40139a6608 | [
"Apache-2.0"
] | 8 | 2022-01-15T10:28:16.000Z | 2022-03-30T16:38:21.000Z | from resotocore.db.async_arangodb import AsyncArangoDB
from resotocore.db.entitydb import EntityDb, EventEntityDb, ArangoEntityDb
from resotocore.task.task_description import Job
JobDb = EntityDb[Job]
EventJobDb = EventEntityDb[Job]
def job_db(db: AsyncArangoDB, collection: str) -> ArangoEntityDb[Job]:
return Ar... | 33.636364 | 74 | 0.805405 | 46 | 370 | 6.413043 | 0.478261 | 0.142373 | 0.108475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110811 | 370 | 10 | 75 | 37 | 0.896657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
41f51fdc9a71d64ddec01f1bc88fca3ad12d55cf | 1,022 | py | Python | allegroapi/entities/aftersalesserviceconditions.py | OceanFireSoftware/python-allegro | 112b0f2570fcf3840645dd62f6f7150956e56f9c | [
"MIT"
] | 17 | 2018-10-29T11:41:54.000Z | 2022-03-26T10:17:36.000Z | allegroapi/entities/aftersalesserviceconditions.py | OceanFireSoftware/python-allegro | 112b0f2570fcf3840645dd62f6f7150956e56f9c | [
"MIT"
] | 4 | 2018-11-12T14:41:23.000Z | 2020-06-24T13:22:27.000Z | allegroapi/entities/aftersalesserviceconditions.py | OceanFireSoftware/python-allegro | 112b0f2570fcf3840645dd62f6f7150956e56f9c | [
"MIT"
] | 8 | 2018-11-07T00:04:32.000Z | 2021-11-01T11:06:13.000Z | # coding=utf-8
"""
The After Sale Service Conditions endpoint
Documentation: https://developer.allegro.pl/documentation/#/
Schema:
"""
from __future__ import unicode_literals
from ..base import BaseApi
from .aftersalesserviceconditionreturnpolicies import AfterSaleServiceConditionReturnPolicies
from .aftersalesservi... | 34.066667 | 100 | 0.779843 | 76 | 1,022 | 10.289474 | 0.552632 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001144 | 0.144814 | 1,022 | 29 | 101 | 35.241379 | 0.893593 | 0.161448 | 0 | 0 | 0 | 0 | 0.036991 | 0.036991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 0.583333 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
41f894f092cd6bbf807db69e5558917ec8c1411a | 277 | py | Python | second.py | cplanck/remote-playground | 75fd5de176cee4a31c28e06e8f030c25dd1e5106 | [
"MIT"
] | null | null | null | second.py | cplanck/remote-playground | 75fd5de176cee4a31c28e06e8f030c25dd1e5106 | [
"MIT"
] | null | null | null | second.py | cplanck/remote-playground | 75fd5de176cee4a31c28e06e8f030c25dd1e5106 | [
"MIT"
] | null | null | null | print('this is the first line of second.py')
for x in range(20):
print(x)
print('this is the chunk of code added to the fourth branch')
print('Im editing this file in GitHub to see if fetch finds it')
print('adding this code to push to the main on the remote repository') | 34.625 | 70 | 0.732852 | 54 | 277 | 3.759259 | 0.648148 | 0.08867 | 0.108374 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008889 | 0.187726 | 277 | 8 | 70 | 34.625 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0.730216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.833333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
41fcafa9cfe3c6364437bc4f87db3975572a073b | 395 | py | Python | findastring.py | Vicfred/hackerrankpython | c1f12ba006af67fede23885eda384f7d4f70eaf4 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T06:35:56.000Z | 2019-10-09T06:35:56.000Z | findastring.py | Vicfred/hackerrankpython | c1f12ba006af67fede23885eda384f7d4f70eaf4 | [
"BSD-3-Clause"
] | null | null | null | findastring.py | Vicfred/hackerrankpython | c1f12ba006af67fede23885eda384f7d4f70eaf4 | [
"BSD-3-Clause"
] | null | null | null | def count_substring(string, sub_string):
k = len(sub_string)
ans = 0
for i in range(len(string)):
if i+k > len(string):
break
if sub_string == string[i:i+k]:
ans += 1
return ans
if __name__ == '__main__':
string = input().strip()
sub_string = input().stri... | 21.944444 | 47 | 0.567089 | 53 | 395 | 3.943396 | 0.415094 | 0.215311 | 0.191388 | 0.220096 | 0.277512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.306329 | 395 | 17 | 48 | 23.235294 | 0.755474 | 0 | 0 | 0 | 0 | 0 | 0.020305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
41fd165db6c8a84c540b7e600fd39047e08cbea8 | 164 | py | Python | Programming_warmup.py | Databackbone/Automate_the_boring_stuff_with_python | 9bdd776a5fbcd01383eccd86d03743fbcfdf8d4d | [
"MIT"
] | null | null | null | Programming_warmup.py | Databackbone/Automate_the_boring_stuff_with_python | 9bdd776a5fbcd01383eccd86d03743fbcfdf8d4d | [
"MIT"
] | null | null | null | Programming_warmup.py | Databackbone/Automate_the_boring_stuff_with_python | 9bdd776a5fbcd01383eccd86d03743fbcfdf8d4d | [
"MIT"
] | null | null | null | print("Hello World")
my_name = input("Whats your name? ")
print("Hello " + my_name)
print('Did you know that your name is ' + str(len(my_name)) + ' letters long!')
| 32.8 | 79 | 0.670732 | 27 | 164 | 3.962963 | 0.62963 | 0.168224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 164 | 4 | 80 | 41 | 0.775362 | 0 | 0 | 0 | 0 | 0 | 0.481707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
41fd6b1df7ad49effb746320550c4a72ebdd85f9 | 600 | py | Python | plotplayer/__init__.py | Jman420/plotplayer | 3a224fc38c2825c4166e7534970a792f0e96bd84 | [
"Apache-2.0"
] | null | null | null | plotplayer/__init__.py | Jman420/plotplayer | 3a224fc38c2825c4166e7534970a792f0e96bd84 | [
"Apache-2.0"
] | 7 | 2018-06-20T19:44:45.000Z | 2022-03-11T23:18:57.000Z | plotplayer/__init__.py | Jman420/plotplayer | 3a224fc38c2825c4166e7534970a792f0e96bd84 | [
"Apache-2.0"
] | 2 | 2018-04-08T14:36:13.000Z | 2018-06-20T19:41:42.000Z | """
Root PlotPlayer Package contains all the data structures, modules and classes used by the
PlotPlayer project.
Public Modules:
* plotplayer - Contains the PlotPlayer interface and functionality; this is the most
common entry point for most usages
Subpackages:
* helpers - Contains various modules containi... | 30 | 89 | 0.788333 | 74 | 600 | 6.391892 | 0.689189 | 0.082452 | 0.093023 | 0.10148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 600 | 19 | 90 | 31.578947 | 0.949799 | 0.908333 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
51060c7c0ec077094d06da205e431f242f2cef7b | 636 | py | Python | app/graham/training-snakes-master/app/snakes/unused/snake_2.py | CallumBrown743/starter-snake-python | 79495dcb5f84fca1d67b563380f3b9a1e961db02 | [
"MIT"
] | null | null | null | app/graham/training-snakes-master/app/snakes/unused/snake_2.py | CallumBrown743/starter-snake-python | 79495dcb5f84fca1d67b563380f3b9a1e961db02 | [
"MIT"
] | null | null | null | app/graham/training-snakes-master/app/snakes/unused/snake_2.py | CallumBrown743/starter-snake-python | 79495dcb5f84fca1d67b563380f3b9a1e961db02 | [
"MIT"
] | 1 | 2019-07-10T18:12:25.000Z | 2019-07-10T18:12:25.000Z | from utils.vector import up, down, left, right, noop
from .base_snake import BaseSnake
class Snake2(BaseSnake):
def move(self, gamestate):
current_vector = gamestate.me.current_direction
if current_vector == noop:
return up
return gamestate.first_empty_direction(
... | 19.272727 | 55 | 0.580189 | 73 | 636 | 4.945205 | 0.479452 | 0.110803 | 0.055402 | 0.083102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016471 | 0.331761 | 636 | 32 | 56 | 19.875 | 0.832941 | 0 | 0 | 0.090909 | 0 | 0 | 0.036164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.045455 | 0.090909 | 0.181818 | 0.681818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5107eafd84fb53ab4ae640dc672eec0eebc624d4 | 304 | py | Python | receipt_parser/__init__.py | slgero/check_parser | 7419da2d6ce99a7a9d7b666072b138059ad856d4 | [
"MIT"
] | 48 | 2020-08-06T11:13:19.000Z | 2022-02-27T10:12:09.000Z | receipt_parser/__init__.py | slgero/check_parser | 7419da2d6ce99a7a9d7b666072b138059ad856d4 | [
"MIT"
] | 3 | 2020-08-11T21:00:11.000Z | 2020-09-06T08:46:59.000Z | receipt_parser/__init__.py | slgero/check_parser | 7419da2d6ce99a7a9d7b666072b138059ad856d4 | [
"MIT"
] | 5 | 2020-08-06T11:34:05.000Z | 2021-08-21T12:46:45.000Z | """A package which allow parsing Reussian receipts."""
__version__ = "0.0.28"
__license__ = "MIT"
from .receipt_parser import RuleBased # type: ignore
from .finder import Finder # type: ignore
from .normalizer import Normalizer # type: ignore
from .cat_model import PredictCategory # type: ignore
| 27.636364 | 54 | 0.753289 | 39 | 304 | 5.615385 | 0.615385 | 0.182648 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.157895 | 304 | 10 | 55 | 30.4 | 0.839844 | 0.332237 | 0 | 0 | 0 | 0 | 0.046392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
510a9fe0a0e3d149e12c9abb482ed45935c45cee | 10 | py | Python | Commons/Variables.py | CT83/PyDashBoard | 4bd5437660fbae319620e845a6cd4c34f75bea5c | [
"Apache-2.0"
] | null | null | null | Commons/Variables.py | CT83/PyDashBoard | 4bd5437660fbae319620e845a6cd4c34f75bea5c | [
"Apache-2.0"
] | null | null | null | Commons/Variables.py | CT83/PyDashBoard | 4bd5437660fbae319620e845a6cd4c34f75bea5c | [
"Apache-2.0"
] | null | null | null | RESP = []
| 5 | 9 | 0.4 | 1 | 10 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 10 | 1 | 10 | 10 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
511bec133fc272de551e34b13120c9365863cf42 | 2,586 | py | Python | src/pyramidbridge/rethinkdb/connection.py | sawdog/pyramidbridge | 1ecc0721c79287093d091d8a717d78b6a8a05814 | [
"MIT"
] | 1 | 2019-08-26T00:32:03.000Z | 2019-08-26T00:32:03.000Z | src/pyramidbridge/rethinkdb/connection.py | sawdog/pyramidbridge | 1ecc0721c79287093d091d8a717d78b6a8a05814 | [
"MIT"
] | null | null | null | src/pyramidbridge/rethinkdb/connection.py | sawdog/pyramidbridge | 1ecc0721c79287093d091d8a717d78b6a8a05814 | [
"MIT"
] | null | null | null | """rethinkDB connection"""
import rethinkdb as r
class Connection(object):
"""RethinkDB Connection handler"""
__connection__ = None
__db__ = None
__host__ = None
__port__ = None
__user__ = None
__password__ = None
__session__ = None
__table__ = None
def __init__(self,
... | 22.884956 | 67 | 0.515468 | 255 | 2,586 | 4.756863 | 0.219608 | 0.099753 | 0.06925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.400619 | 2,586 | 112 | 68 | 23.089286 | 0.782581 | 0.12761 | 0 | 0.166667 | 0 | 0 | 0.002299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217949 | false | 0.076923 | 0.012821 | 0.102564 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
513759d13dd5462b1537f2db4b0063b913418839 | 285 | py | Python | flask_restly/exception/too_many_requests.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 16 | 2018-10-16T20:07:02.000Z | 2021-01-07T13:01:05.000Z | flask_restly/exception/too_many_requests.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 16 | 2018-10-16T14:09:55.000Z | 2020-01-16T07:52:22.000Z | flask_restly/exception/too_many_requests.py | gorzechowski/flask-restly | 54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a | [
"MIT"
] | 1 | 2019-04-17T03:20:41.000Z | 2019-04-17T03:20:41.000Z | from werkzeug.exceptions import TooManyRequests as WerkzeugTooManyRequests
class TooManyRequests(WerkzeugTooManyRequests):
description = "Too many requests"
def __init__(self, description=None):
if description is not None:
self.description = description
| 28.5 | 74 | 0.754386 | 27 | 285 | 7.814815 | 0.703704 | 0.14218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192982 | 285 | 9 | 75 | 31.666667 | 0.917391 | 0 | 0 | 0 | 0 | 0 | 0.059649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
514c76cd5cdbcebe4713f627287bda1e28cfc687 | 286 | py | Python | has_keyword_extractor/hwo.py | 360medics/has-keyword-extractor | 054555f91483d022d49430f53de6efc61971db5a | [
"Apache-2.0"
] | null | null | null | has_keyword_extractor/hwo.py | 360medics/has-keyword-extractor | 054555f91483d022d49430f53de6efc61971db5a | [
"Apache-2.0"
] | null | null | null | has_keyword_extractor/hwo.py | 360medics/has-keyword-extractor | 054555f91483d022d49430f53de6efc61971db5a | [
"Apache-2.0"
] | null | null | null | from typing import Dict
def compute_hwo(word: str, monogram_frequency: Dict, cumul_monogram: Dict):
if word not in monogram_frequency:
return -100
key_max = max(list(cumul_monogram.keys()))
return cumul_monogram[monogram_frequency[word]] / cumul_monogram[key_max]
| 31.777778 | 77 | 0.748252 | 40 | 286 | 5.1 | 0.525 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012552 | 0.164336 | 286 | 8 | 78 | 35.75 | 0.841004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
515ae96a561a1c35551edb67a4d8a1065b12af4d | 538 | py | Python | morphablegraphs/construction/preprocessing/__init__.py | dfki-asr/morphablegraphs | 02c77aab72aa4b58f4067c720f5d124f0be3ea80 | [
"MIT"
] | 5 | 2020-03-03T21:07:01.000Z | 2021-05-12T16:59:28.000Z | morphablegraphs/construction/preprocessing/__init__.py | dfki-asr/morphablegraphs | 02c77aab72aa4b58f4067c720f5d124f0be3ea80 | [
"MIT"
] | null | null | null | morphablegraphs/construction/preprocessing/__init__.py | dfki-asr/morphablegraphs | 02c77aab72aa4b58f4067c720f5d124f0be3ea80 | [
"MIT"
] | 1 | 2020-07-20T06:57:08.000Z | 2020-07-20T06:57:08.000Z | LEN_ROOT = 3
LEN_QUATERNION = 4
LEN_EULER = 3
from .bitvector import gen_foot_contact_annotation
from .semantic_annotation import gen_walk_annotation, gen_synthetic_semantic_annotation_pick_and_place, \
gen_synthetic_semantic_annotation_for_screw, \
gen_... | 53.8 | 105 | 0.732342 | 57 | 538 | 6.368421 | 0.526316 | 0.247934 | 0.165289 | 0.247934 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.241636 | 538 | 10 | 106 | 53.8 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
515f039ce8de13a1a9168df8be2a64c24d2921e7 | 183 | py | Python | setup.py | Giwasawa/dcdevaluation | 99de135829fb7247199465bb15d7851fb54aea76 | [
"MIT"
] | null | null | null | setup.py | Giwasawa/dcdevaluation | 99de135829fb7247199465bb15d7851fb54aea76 | [
"MIT"
] | 1 | 2020-12-22T19:20:29.000Z | 2020-12-22T19:20:29.000Z | setup.py | Giwasawa/dcdevaluation | 99de135829fb7247199465bb15d7851fb54aea76 | [
"MIT"
] | 1 | 2021-02-25T19:58:36.000Z | 2021-02-25T19:58:36.000Z | from setuptools import setup
setup(name = 'dcdevaluation',
version = '0.8.0' ,
packages = ['dcdevaluation'] ,
zip_safe = False )
| 26.142857 | 40 | 0.497268 | 16 | 183 | 5.625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.398907 | 183 | 6 | 41 | 30.5 | 0.790909 | 0 | 0 | 0 | 0 | 0 | 0.169399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5a93a24f1d966360aa485fed2cc52caa6f59d647 | 144 | py | Python | changelog/constants.py | automation-liberation/deployment-helper | 9a048e03a8c9648f37f8936065eaacfa60c6c5ca | [
"Apache-2.0"
] | null | null | null | changelog/constants.py | automation-liberation/deployment-helper | 9a048e03a8c9648f37f8936065eaacfa60c6c5ca | [
"Apache-2.0"
] | null | null | null | changelog/constants.py | automation-liberation/deployment-helper | 9a048e03a8c9648f37f8936065eaacfa60c6c5ca | [
"Apache-2.0"
] | null | null | null | from enum import Enum
class ChangelogEntryEnum(Enum):
ADDED = 'Added'
CHANGED = 'Changed'
FIXED = 'Fixed'
REMOVED = 'Removed'
| 16 | 31 | 0.645833 | 15 | 144 | 6.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 144 | 8 | 32 | 18 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5ab4fc794c36d5f0a1b8b67b0fd3261bb0d2784b | 285 | py | Python | __init__.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 8 | 2020-01-08T19:42:01.000Z | 2021-12-28T08:30:56.000Z | __init__.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 2 | 2020-09-10T12:22:57.000Z | 2022-02-17T05:21:22.000Z | __init__.py | HAL-42/AlchemyCat | ca924755ff48e2ff74543bb0e446376eb2b1f150 | [
"Apache-2.0"
] | 1 | 2021-05-12T01:50:27.000Z | 2021-05-12T01:50:27.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: Xiaobo Yang
@contact: hal_42@zju.edu.cn
@software: PyCharm
@file: __init__.py
@time: 2020/1/8 0:15
@desc:
"""
from alchemy_cat.acplot.utils import CHW2HWC, HWC2CHW, RGB2BGR, BGR2RGB
from alchemy_cat.py_tools import quick_init | 21.923077 | 71 | 0.726316 | 46 | 285 | 4.304348 | 0.847826 | 0.111111 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.115789 | 285 | 13 | 72 | 21.923077 | 0.722222 | 0.550877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5ad7bdb023ce3f4bae104ac618053c302491c623 | 135 | py | Python | sa/profiles/Harmonic/bNSG9000/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/Harmonic/bNSG9000/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/Harmonic/bNSG9000/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | __author__ = "fedoseev.ns"
from noc.core.profile.base import BaseProfile
class Profile(BaseProfile):
name = "Harmonic.bNSG9000"
| 16.875 | 45 | 0.755556 | 16 | 135 | 6.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.140741 | 135 | 7 | 46 | 19.285714 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.207407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5afa49d75904a78bfb9dd63e2ba071f66cdc95fa | 1,987 | py | Python | store.py | yinziyan1206/nado-db | 85c3008bc339cc36c7d7803ac74b8df7b9eceddd | [
"MIT"
] | 1 | 2021-05-22T16:48:18.000Z | 2021-05-22T16:48:18.000Z | store.py | yinziyan1206/nado_db | 85c3008bc339cc36c7d7803ac74b8df7b9eceddd | [
"MIT"
] | null | null | null | store.py | yinziyan1206/nado_db | 85c3008bc339cc36c7d7803ac74b8df7b9eceddd | [
"MIT"
] | null | null | null | __author__ = 'ziyan.yin'
from threading import local
class Store(local):
"""
Thread local storage.
>>> d = Store()
>>> d.x = 1
>>> d.x
1
>>> import threading
>>> def f(): d.x = 2
...
>>> t = threading.Thread(target=f)
>>> t.start()
... | 20.915789 | 85 | 0.572219 | 234 | 1,987 | 4.363248 | 0.32906 | 0.117532 | 0.123408 | 0.088149 | 0.062684 | 0.062684 | 0.062684 | 0 | 0 | 0 | 0 | 0.002888 | 0.302969 | 1,987 | 94 | 86 | 21.138298 | 0.734296 | 0.19225 | 0 | 0 | 0 | 0 | 0.012378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.404255 | false | 0 | 0.021277 | 0.255319 | 0.787234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5199971ef7967614dfb2e5ce751de5f42b8d27c2 | 204 | py | Python | assistant/forms.py | RiadSaidur/django-hospitals | 11a3022d4cbf6a67bfce65a32de47204d6362f51 | [
"MIT"
] | 1 | 2020-03-22T13:20:32.000Z | 2020-03-22T13:20:32.000Z | assistant/forms.py | RiadSaidur/django-hospitals | 11a3022d4cbf6a67bfce65a32de47204d6362f51 | [
"MIT"
] | 8 | 2021-03-30T12:54:35.000Z | 2021-09-26T07:28:01.000Z | assistant/forms.py | RiadSaidur/django-hospitals | 11a3022d4cbf6a67bfce65a32de47204d6362f51 | [
"MIT"
] | null | null | null | from django import forms
# model
from patient.models import Request
class RequestApproveForm(forms.ModelForm):
class Meta:
model = Request
fields = ["confirmed"]
# fields = "__all__"
| 17 | 42 | 0.696078 | 22 | 204 | 6.272727 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220588 | 204 | 11 | 43 | 18.545455 | 0.867925 | 0.117647 | 0 | 0 | 0 | 0 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
51b8c45d57e0eee325c252fe858686fbb59f637a | 326 | py | Python | detectors/__init__.py | bc-jcarlson/secret-bridge | 3aef518143fd29b8b0f12a13a7ecf175f63a397b | [
"BSD-3-Clause"
] | 152 | 2019-09-25T15:08:16.000Z | 2022-03-31T03:34:36.000Z | detectors/__init__.py | bc-jcarlson/secret-bridge | 3aef518143fd29b8b0f12a13a7ecf175f63a397b | [
"BSD-3-Clause"
] | 23 | 2019-09-30T11:04:10.000Z | 2022-02-23T18:44:46.000Z | detectors/__init__.py | jhabikal21/secret-bridge | 4be6d1914928fadbd8f3ef2c2dc9a66535fe674b | [
"BSD-3-Clause"
] | 43 | 2019-09-25T16:57:04.000Z | 2021-11-25T05:21:16.000Z | from detectors.detectsecrets import DetectSecrets
from detectors.gitsecrets import GitSecrets
from detectors.trufflehog import TruffleHog
# TODO: Turn this into a registry to match the notifiers pattern?
AvailableDetectors = {
'detect-secrets': DetectSecrets,
'git-secrets': GitSecrets,
'trufflehog': Truffle... | 32.6 | 65 | 0.791411 | 35 | 326 | 7.371429 | 0.6 | 0.151163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141104 | 326 | 9 | 66 | 36.222222 | 0.921429 | 0.193252 | 0 | 0 | 0 | 0 | 0.1341 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
51ba19c075b1bd6dd872d7b78548f7b40c2a731c | 3,653 | py | Python | release/stubs.min/System/Windows/Controls/__init___parts/ItemContainerGenerator.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Controls/__init___parts/ItemContainerGenerator.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Controls/__init___parts/ItemContainerGenerator.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class ItemContainerGenerator(
object,
IRecyclingItemContainerGenerator,
IItemContainerGenerator,
IWeakEventListener,
):
""" Generates the user interface (UI) on behalf of its host,such as an�System.Windows.Controls.ItemsControl. """
def ContainerFromIndex(self, index):
"""
C... | 29.224 | 221 | 0.697235 | 397 | 3,653 | 6.297229 | 0.24937 | 0.0884 | 0.0792 | 0.048 | 0.43 | 0.3588 | 0.3588 | 0.326 | 0.3036 | 0.3036 | 0.000274 | 0.001059 | 0.224473 | 3,653 | 124 | 222 | 29.459677 | 0.881045 | 0.643033 | 0 | 0.291667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.291667 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
51cc4cf728d75c828633a0e56f07238bcecfa0ab | 672 | py | Python | mbzextract/plugins/skeleton/module_name.py | davidschlachter/mbzextract | c6124e6ac08c31818af545323202dc2768497813 | [
"MIT"
] | 2 | 2017-06-01T21:04:53.000Z | 2020-09-14T15:52:30.000Z | mbzextract/plugins/skeleton/module_name.py | davidschlachter/mbzextract | c6124e6ac08c31818af545323202dc2768497813 | [
"MIT"
] | 5 | 2015-11-10T19:23:31.000Z | 2015-11-25T23:55:48.000Z | mbzextract/plugins/skeleton/module_name.py | ocdude/moodle2-data-extractor | fc01cbfc740f4ee41f778640c18a3db9bb11bde9 | [
"MIT"
] | 2 | 2019-05-18T11:11:18.000Z | 2020-09-14T15:54:31.000Z | """Basic template for creating new plugins.
A basic plugin should have at the very minimum a class called 'moodle_module',
with an '__init__(self, **kwargs)' method that populates a table in the temporary
backup database with the structure of the module it is attempting to extract, a
parse method that parses the backu... | 28 | 82 | 0.736607 | 106 | 672 | 4.575472 | 0.528302 | 0.061856 | 0.057732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21131 | 672 | 23 | 83 | 29.217391 | 0.915094 | 0.74256 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
51d1f5509211084832acb8e2c8c5f7a69ac3df76 | 579 | py | Python | npc_engine/services/text_generation/__init__.py | npc-engine/npc-engine | 0047794e96369c23515f794a1e77009c516a382c | [
"MIT"
] | 12 | 2021-11-10T21:03:19.000Z | 2022-03-21T21:55:34.000Z | npc_engine/services/text_generation/__init__.py | npc-engine/npc-engine | 0047794e96369c23515f794a1e77009c516a382c | [
"MIT"
] | 1 | 2021-12-05T14:51:44.000Z | 2021-12-05T14:51:44.000Z | npc_engine/services/text_generation/__init__.py | npc-engine/npc-engine | 0047794e96369c23515f794a1e77009c516a382c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Text generation API services.
This module implements specific models and wraps them under
the common interface for loading and inference.
Example:
```
from npc_engine.services.text_generation import TextGenerationAPI
model = TextGenerationAPI.load("path/to/model... | 34.058824 | 74 | 0.715026 | 70 | 579 | 5.8 | 0.671429 | 0.137931 | 0.098522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025751 | 0.195164 | 579 | 16 | 75 | 36.1875 | 0.845494 | 0.727116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a40542ebea8665b137335fe128377d7f95c37f2c | 1,631 | py | Python | stubs.min/System/__init___parts/Object.py | ricardyn/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2021-02-02T13:39:16.000Z | 2021-02-02T13:39:16.000Z | stubs.min/System/__init___parts/Object.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/__init___parts/Object.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class Object:
"""
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
object()
"""
def __delattr__(self,*args):
""" __delattr__(self: o... | 31.980392 | 221 | 0.6542 | 204 | 1,631 | 4.573529 | 0.308824 | 0.102894 | 0.045016 | 0.054662 | 0.247588 | 0.247588 | 0.189711 | 0.189711 | 0.121115 | 0.121115 | 0.001839 | 0 | 0.187615 | 1,631 | 50 | 222 | 32.62 | 0.701887 | 0.579399 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0.448276 | 0 | 0 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
cf8b19fbe5f731f22b00f0e8cbf2dacf2cbb775f | 243 | py | Python | LSTMText/utils.py | Cristina-cxq/models-1 | b1acb2ee66900bd4be36e41d36aa407a04b5b3ac | [
"Apache-2.0"
] | null | null | null | LSTMText/utils.py | Cristina-cxq/models-1 | b1acb2ee66900bd4be36e41d36aa407a04b5b3ac | [
"Apache-2.0"
] | null | null | null | LSTMText/utils.py | Cristina-cxq/models-1 | b1acb2ee66900bd4be36e41d36aa407a04b5b3ac | [
"Apache-2.0"
] | null | null | null | """
imdb dataset saved in https://github.com/Oneflow-Inc/models/imdb
"""
import sys
sys.path.append("../")
from imdb.utils import pad_sequences, load_imdb_data, colored_string
__all__ = ["pad_sequences", "load_imdb_data", "colored_string"]
| 22.090909 | 68 | 0.748971 | 35 | 243 | 4.857143 | 0.657143 | 0.141176 | 0.188235 | 0.235294 | 0.435294 | 0.435294 | 0.435294 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 243 | 10 | 69 | 24.3 | 0.776256 | 0.263374 | 0 | 0 | 0 | 0 | 0.25731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cf8eec3c909d7c269516f865d5a681fbefe44e6f | 297 | py | Python | app/feature/get_details/service.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | app/feature/get_details/service.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | app/feature/get_details/service.py | KatlehoGxagxa/kk_secure | 043dfbe9511a3b950686240ae36a6e676b009390 | [
"MIT"
] | null | null | null | from app.db_models.models import userModel
from sqlalchemy.orm import session
from app.db_models import Session
from app.db_models.users import User
import math
class get_details():
def __init__(self, inputs: userModel):
self.__inputs = inputs
self.session = Session()
| 21.214286 | 42 | 0.737374 | 41 | 297 | 5.097561 | 0.463415 | 0.100478 | 0.129187 | 0.215311 | 0.267943 | 0.267943 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195286 | 297 | 13 | 43 | 22.846154 | 0.874477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5c62dc56ece7620a65aca836edbd7df4ee9b5ef1 | 245 | py | Python | genderdecoder/__init__.py | sagahansson/genderdecoder | db18f51c8a3708aac9f4ba5d71e4c8f78df33257 | [
"MIT"
] | null | null | null | genderdecoder/__init__.py | sagahansson/genderdecoder | db18f51c8a3708aac9f4ba5d71e4c8f78df33257 | [
"MIT"
] | null | null | null | genderdecoder/__init__.py | sagahansson/genderdecoder | db18f51c8a3708aac9f4ba5d71e4c8f78df33257 | [
"MIT"
] | null | null | null | import sys
import os
current_dir = os.getcwd()
sys.path.append(current_dir + "/genderdecoder/genderdecoder")
from assess import assess, assess_v2, assess_v3
from wordlists import feminine_coded_words
from wordlists import masculine_coded_words
| 27.222222 | 61 | 0.836735 | 35 | 245 | 5.628571 | 0.514286 | 0.101523 | 0.192893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.102041 | 245 | 8 | 62 | 30.625 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5cb08180d3e03612a7b3aec37914002eb797ce9e | 261 | py | Python | simianpy/io/trodes/__init__.py | jselvan/simianpy | 5b2b162789e11bc89ca2179358ab682269e7df15 | [
"MIT"
] | null | null | null | simianpy/io/trodes/__init__.py | jselvan/simianpy | 5b2b162789e11bc89ca2179358ab682269e7df15 | [
"MIT"
] | null | null | null | simianpy/io/trodes/__init__.py | jselvan/simianpy | 5b2b162789e11bc89ca2179358ab682269e7df15 | [
"MIT"
] | null | null | null | from .io import Trodes
def infer_session_name(path):
matches = list(path.glob('*.raw'))
if matches:
session_name = matches[0].stem.replace('.raw','')
return session_name
else:
raise ValueError('Could not infer session name') | 29 | 57 | 0.64751 | 34 | 261 | 4.852941 | 0.676471 | 0.266667 | 0.193939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.226054 | 261 | 9 | 58 | 29 | 0.811881 | 0 | 0 | 0 | 0 | 0 | 0.141221 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a2ce153b4cd45d584ee454d5eb65e0e47462daa | 168 | py | Python | backend/app/paste/schemas/paste_schema.py | d4sein/Pastebin | ffe57809f5383696ea6055743755da01d7e6130c | [
"Unlicense"
] | 3 | 2020-01-02T23:43:35.000Z | 2020-11-11T10:40:42.000Z | backend/app/paste/schemas/paste_schema.py | d4sein/Pastebin | ffe57809f5383696ea6055743755da01d7e6130c | [
"Unlicense"
] | 2 | 2021-10-06T09:03:47.000Z | 2022-02-18T17:10:26.000Z | backend/app/paste/schemas/paste_schema.py | d4sein/Pastebin | ffe57809f5383696ea6055743755da01d7e6130c | [
"Unlicense"
] | 2 | 2020-01-07T15:54:49.000Z | 2020-01-09T00:57:19.000Z | from app import ma
from app.paste.models.paste_model import Paste
class PasteSchema(ma.ModelSchema):
class Meta:
model = Paste
include_fk = True
| 16.8 | 46 | 0.696429 | 23 | 168 | 5 | 0.608696 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244048 | 168 | 9 | 47 | 18.666667 | 0.905512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7a2d4709f847bfae9973773e6b771f2d944d8f6a | 408 | py | Python | UE4Parse/IO/IoObjects/FIoDirectoryIndexEntry.py | MinshuG/pyUE4Parse | 96cda8132ff423bd36be20828025c2c1c0a7e406 | [
"MIT"
] | 13 | 2021-06-09T09:21:00.000Z | 2022-03-30T22:13:24.000Z | UE4Parse/IO/IoObjects/FIoDirectoryIndexEntry.py | MinshuG/pyUE4Parse | 96cda8132ff423bd36be20828025c2c1c0a7e406 | [
"MIT"
] | 3 | 2021-09-04T22:23:02.000Z | 2022-03-04T09:45:45.000Z | UE4Parse/IO/IoObjects/FIoDirectoryIndexEntry.py | MinshuG/pyUE4Parse | 96cda8132ff423bd36be20828025c2c1c0a7e406 | [
"MIT"
] | 6 | 2021-09-02T10:28:21.000Z | 2022-03-30T22:13:37.000Z | from UE4Parse.BinaryReader import BinaryStream
class FIoDirectoryIndexEntry:
Name: int
FirstChildEntry: int
NextSiblingEntry: int
FirstFileEntry: int
def __init__(self, reader: BinaryStream):
self.Name = reader.readUInt32()
self.FirstChildEntry = reader.readUInt32()
self.N... | 27.2 | 51 | 0.715686 | 36 | 408 | 8 | 0.472222 | 0.222222 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027864 | 0.208333 | 408 | 14 | 52 | 29.142857 | 0.863777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7a34585cee5f6c6c91b2cf53bed30b1788441684 | 1,576 | py | Python | Week 3/ex2/courses/course.py | rmit-s3559384-andrew-alvaro/IoT | ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f | [
"MIT"
] | null | null | null | Week 3/ex2/courses/course.py | rmit-s3559384-andrew-alvaro/IoT | ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f | [
"MIT"
] | 1 | 2021-06-01T23:39:58.000Z | 2021-06-01T23:39:58.000Z | Week 3/ex2/courses/course.py | AndrewAlvaro/IoT | ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f | [
"MIT"
] | null | null | null | from abc import ABC, ABCMeta, abstractmethod
class Course(ABC):
def __init__(self, id, name, teacherName, students):
super().__init__()
self.__id = id
self.__name = name
self.__teacherName = teacherName
self.__students = students if students is not None else set()
... | 27.649123 | 111 | 0.614213 | 159 | 1,576 | 5.786164 | 0.295597 | 0.104348 | 0.076087 | 0.081522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284898 | 1,576 | 56 | 112 | 28.142857 | 0.816327 | 0 | 0 | 0.238095 | 0 | 0.02381 | 0.059211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.095238 | 0.02381 | 0.166667 | 0.595238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
7a5aa6189fc8e42cc3bd513c379d34e07b3d5263 | 189 | py | Python | Curso de Cisco/Actividades/Operaciones con cadenas - min().py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | Curso de Cisco/Actividades/Operaciones con cadenas - min().py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | Curso de Cisco/Actividades/Operaciones con cadenas - min().py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | # Demonstrando min() - Ejemplo 1
print(min("aAbByYzZ"))
# Demonstrando min() - Examplos 2 y 3
t = 'Los Caballeros Que Dicen "¡Ni!"'
print('[' + min(t) + ']')
t = [0, 1, 2]
print(min(t)) | 18.9 | 37 | 0.587302 | 31 | 189 | 3.645161 | 0.612903 | 0.212389 | 0.159292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.185185 | 189 | 10 | 38 | 18.9 | 0.681818 | 0.349206 | 0 | 0 | 0 | 0 | 0.341667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7a5fee112f902807e76829aa201549d3ad0aaa04 | 8,247 | py | Python | sdk/python/pulumi_grafana/organization.py | mazamats/pulumi-grafana | f7bbcbcd386a523e96862bf140e3fd31879885a4 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2019-12-06T16:29:04.000Z | 2022-03-09T03:10:14.000Z | sdk/python/pulumi_grafana/organization.py | mazamats/pulumi-grafana | f7bbcbcd386a523e96862bf140e3fd31879885a4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_grafana/organization.py | mazamats/pulumi-grafana | f7bbcbcd386a523e96862bf140e3fd31879885a4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class Organiz... | 54.615894 | 187 | 0.680975 | 1,085 | 8,247 | 5.001843 | 0.165899 | 0.036484 | 0.038695 | 0.058043 | 0.718813 | 0.700018 | 0.691911 | 0.691911 | 0.670905 | 0.651741 | 0 | 0.000162 | 0.250637 | 8,247 | 150 | 188 | 54.98 | 0.877994 | 0.45556 | 0 | 0.033898 | 1 | 0 | 0.140028 | 0.013791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0.016949 | 0.101695 | 0.033898 | 0.355932 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a61a5f99ef1647f179b9b8ba21e03e5c3108ee4 | 875 | py | Python | stac/test_sort.py | amandaortega/stac | c4e126ff211e4256b19ccb4104c4ca86014c8edd | [
"BSD-2-Clause"
] | null | null | null | stac/test_sort.py | amandaortega/stac | c4e126ff211e4256b19ccb4104c4ca86014c8edd | [
"BSD-2-Clause"
] | null | null | null | stac/test_sort.py | amandaortega/stac | c4e126ff211e4256b19ccb4104c4ca86014c8edd | [
"BSD-2-Clause"
] | null | null | null | from sort_algorithms import sort_algorithms
def print_sort(database_path, alpha, header):
print(header)
[rankings, average, better, worse] = sort_algorithms(database_path, alpha)
print('Rankings: ', rankings, '\n')
print('Average: ', average, '\n')
print('#<: ', worse, '\n')
print('#>: ', bet... | 51.470588 | 141 | 0.733714 | 120 | 875 | 5.241667 | 0.3 | 0.071542 | 0.082671 | 0.120827 | 0.540541 | 0.540541 | 0.540541 | 0.540541 | 0.540541 | 0.540541 | 0 | 0.020075 | 0.089143 | 875 | 17 | 142 | 51.470588 | 0.769134 | 0.152 | 0 | 0 | 0 | 0.25 | 0.481132 | 0.404313 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 0.833333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
7a8af1f00b23ee7ec14f2f6cc5bec1afdb6d0b35 | 286 | py | Python | team_app/sitemaps.py | dcopm999/initpy | 63e4452d7c3523bb3b38abdae8d685c7e0f54233 | [
"MIT"
] | null | null | null | team_app/sitemaps.py | dcopm999/initpy | 63e4452d7c3523bb3b38abdae8d685c7e0f54233 | [
"MIT"
] | 3 | 2019-07-29T05:33:39.000Z | 2022-01-13T01:24:41.000Z | team_app/sitemaps.py | dcopm999/initpy | 63e4452d7c3523bb3b38abdae8d685c7e0f54233 | [
"MIT"
] | 2 | 2019-07-12T04:12:20.000Z | 2019-07-29T04:34:04.000Z | from django.contrib.sitemaps import Sitemap
from django.shortcuts import reverse
class StaticViewSitemap(Sitemap):
changefreq = "weekly"
priority = 0.5
def items(self):
return ['team_app:index']
def location(self, item):
return reverse(item)
| 15.888889 | 43 | 0.671329 | 33 | 286 | 5.787879 | 0.727273 | 0.104712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009217 | 0.241259 | 286 | 17 | 44 | 16.823529 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.222222 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.