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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3ff101fa20db976038b1a2f890a8cb7a4bb1880 | 2,689 | py | Python | day_14.py | JamesOwers/aoc2018 | cb41c5d2c91986d39d988c3dc18677dc666c64e7 | [
"MIT"
] | null | null | null | day_14.py | JamesOwers/aoc2018 | cb41c5d2c91986d39d988c3dc18677dc666c64e7 | [
"MIT"
] | null | null | null | day_14.py | JamesOwers/aoc2018 | cb41c5d2c91986d39d988c3dc18677dc666c64e7 | [
"MIT"
] | null | null | null | from my_utils.tests import test_and_solve
DAY_NR = 14
def part_1(puzzle_input):
"""Function which calculates the solution to part 1
Arguments
---------
Returns
-------
"""
puzzle_input = int(puzzle_input)
recipe_scores = [3, 7]
elf_1 = 0
elf_2 = 1
while len(reci... | 29.228261 | 71 | 0.552994 | 335 | 2,689 | 4.155224 | 0.280597 | 0.206897 | 0.107759 | 0.068966 | 0.461207 | 0.418103 | 0.403736 | 0.403736 | 0.403736 | 0.272989 | 0 | 0.076027 | 0.329862 | 2,689 | 91 | 72 | 29.549451 | 0.696448 | 0.168836 | 0 | 0.350877 | 0 | 0 | 0.056918 | 0.011569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.017544 | 0 | 0.087719 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3ffbf319859ea098c57c385a588ce0b58ca93ff | 347 | py | Python | addon/import_vcap/amulet_nbt/amulet_nbt_py/__init__.py | Sam54123/mc-world-export | b82632d76f012121de389276880ddb2eed9e6661 | [
"MIT"
] | 2 | 2021-11-30T20:59:36.000Z | 2022-03-09T18:43:23.000Z | addon/import_vcap/amulet_nbt/amulet_nbt_py/__init__.py | Sam54123/mc-world-export | b82632d76f012121de389276880ddb2eed9e6661 | [
"MIT"
] | 2 | 2021-11-04T03:45:42.000Z | 2022-03-27T00:23:16.000Z | addon/import_vcap/amulet_nbt/amulet_nbt_py/__init__.py | Sam54123/mc-world-export | b82632d76f012121de389276880ddb2eed9e6661 | [
"MIT"
] | null | null | null | from .nbt_types import (
TAG_Byte,
TAG_Short,
TAG_Int,
TAG_Long,
TAG_Float,
TAG_Double,
TAG_Byte_Array,
TAG_String,
TAG_List,
TAG_Compound,
TAG_Int_Array,
TAG_Long_Array,
NBTFile,
BaseValueType,
BaseArrayType,
AnyNBT,
)
from ._load import load, from_snbt
f... | 16.52381 | 34 | 0.665706 | 45 | 347 | 4.733333 | 0.511111 | 0.065728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270893 | 347 | 20 | 35 | 17.35 | 0.841897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.15 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4300d13eb226c97158af61d59d579bbef217ee98 | 523 | py | Python | setup.py | porimol/vhost | ba8aab38148ae33f289b2a323adea789212442f2 | [
"MIT"
] | 12 | 2016-06-23T08:19:58.000Z | 2021-07-29T00:19:10.000Z | setup.py | porimol/vhost | ba8aab38148ae33f289b2a323adea789212442f2 | [
"MIT"
] | 2 | 2016-10-02T19:25:17.000Z | 2019-08-15T23:14:19.000Z | setup.py | porimol/vhost | ba8aab38148ae33f289b2a323adea789212442f2 | [
"MIT"
] | 7 | 2016-06-23T10:49:15.000Z | 2021-02-13T06:10:39.000Z | from setuptools import setup
setup(
name = "VirtualHost",
version = "0.0.2",
py_modules = "VirtualHost",
install_requires = [
'Click'
],
packages=['VirtualHost'],
entry_points = '''
[console_scripts]
vhost=VirtualHost.vhost:main
''',
author = "P.C ROY",
a... | 24.904762 | 57 | 0.58891 | 56 | 523 | 5.392857 | 0.732143 | 0.013245 | 0.033113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007653 | 0.250478 | 523 | 21 | 58 | 24.904762 | 0.762755 | 0 | 0 | 0 | 0 | 0 | 0.421756 | 0.053435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4304b708185cbfe31a6924ffab019f28857cd6bb | 557 | py | Python | src/data/908.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | src/data/908.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | src/data/908.py | NULLCT/LOMC | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | [
"MIT"
] | null | null | null | import sys
sys.setrecursionlimit(10**7)
N, Q = map(int, input().split())
G = [[] for _ in range(N)]
for i in range(N - 1):
a, b = map(int, input().split())
G[a - 1].append(b - 1)
G[b - 1].append(a - 1)
used = [0] * N
dist = [-1] * N
def dfs(v, p):
used[v] = 1
dist[v] = dist[p] + 1
for w in G... | 17.40625 | 39 | 0.464991 | 99 | 557 | 2.606061 | 0.383838 | 0.069767 | 0.127907 | 0.186047 | 0.131783 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045093 | 0.32316 | 557 | 31 | 40 | 17.967742 | 0.639257 | 0.010772 | 0 | 0 | 0 | 0 | 0.014572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4308da04bb6e5659ae0e9ed4134f062e1005f450 | 5,834 | py | Python | qq/error.py | foxwhite25/qq.py | 92e744205e57b4c8922aa5843095ae900b3c1d84 | [
"MIT"
] | 40 | 2021-12-07T02:18:14.000Z | 2022-03-28T13:14:16.000Z | qq/error.py | foxwhite25/qq.py | 92e744205e57b4c8922aa5843095ae900b3c1d84 | [
"MIT"
] | 2 | 2021-12-12T17:34:29.000Z | 2021-12-17T04:43:03.000Z | qq/error.py | foxwhite25/qq.py | 92e744205e57b4c8922aa5843095ae900b3c1d84 | [
"MIT"
] | 5 | 2021-12-10T11:17:41.000Z | 2022-03-05T13:53:50.000Z | # The MIT License (MIT)
# Copyright (c) 2021-present foxwhite25
#
# 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, ... | 27.913876 | 112 | 0.6289 | 651 | 5,834 | 5.543779 | 0.37788 | 0.022444 | 0.009144 | 0.019119 | 0.038238 | 0.018842 | 0 | 0 | 0 | 0 | 0 | 0.005086 | 0.258485 | 5,834 | 208 | 113 | 28.048077 | 0.829172 | 0.393041 | 0 | 0.157895 | 0 | 0 | 0.090392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0.094737 | 0.052632 | 0 | 0.231579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
430b7ac931db276e2e4788946246a07e807cce3a | 2,394 | py | Python | schemas/invoice.py | troyharvey/stripe_plugin | cb3a9500b1c084d844f3dd3d9fc1db20b537bac5 | [
"Apache-2.0"
] | 5 | 2018-01-11T16:11:14.000Z | 2020-06-19T20:16:57.000Z | schemas/invoice.py | troyharvey/stripe_plugin | cb3a9500b1c084d844f3dd3d9fc1db20b537bac5 | [
"Apache-2.0"
] | 2 | 2018-07-19T21:41:04.000Z | 2021-06-08T21:54:06.000Z | schemas/invoice.py | troyharvey/stripe_plugin | cb3a9500b1c084d844f3dd3d9fc1db20b537bac5 | [
"Apache-2.0"
] | 14 | 2018-04-24T04:32:45.000Z | 2022-02-16T17:21:21.000Z | invoice = [{"name": "id",
"type": "varchar(256)"},
{"name": "object",
"type": "varchar(256)"},
{"name": "amount_due",
"type": "integer"},
{"name": "application_fee",
"type": "integer"},
{"name": "attempt_count",
"typ... | 33.71831 | 49 | 0.391813 | 172 | 2,394 | 5.354651 | 0.313953 | 0.16721 | 0.152009 | 0.19544 | 0.117264 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.390977 | 2,394 | 70 | 50 | 34.2 | 0.606996 | 0 | 0 | 0.471429 | 0 | 0 | 0.400585 | 0.019632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
431115cd48d2c868afa4babc32763416e222b2d2 | 241 | py | Python | scripts/get_ud_treebank_lang.py | rycolab/intrinsic-probing | d2566446b56ab579b2fb51e5d1d9f652e1701000 | [
"MIT"
] | 3 | 2020-10-20T22:49:19.000Z | 2021-07-13T08:56:10.000Z | scripts/get_ud_treebank_lang.py | rycolab/intrinsic-probing | d2566446b56ab579b2fb51e5d1d9f652e1701000 | [
"MIT"
] | null | null | null | scripts/get_ud_treebank_lang.py | rycolab/intrinsic-probing | d2566446b56ab579b2fb51e5d1d9f652e1701000 | [
"MIT"
] | null | null | null | import pycountry
with open("scripts/languages_common_coded.lst", "r") as h:
for l in h:
language_code = l.strip("\n").split(" ")[1]
lang_3 = pycountry.languages.get(alpha_2=language_code)
print(lang_3.alpha_3)
| 24.1 | 63 | 0.651452 | 37 | 241 | 4.027027 | 0.72973 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026178 | 0.207469 | 241 | 9 | 64 | 26.777778 | 0.753927 | 0 | 0 | 0 | 0 | 0 | 0.158333 | 0.141667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43154b61801651bd42d76a8c14e69327165df415 | 850 | py | Python | backend/users/models.py | simobasso/pycon | 74cde50eea3e7352095db8a84f76611456c5004f | [
"MIT"
] | null | null | null | backend/users/models.py | simobasso/pycon | 74cde50eea3e7352095db8a84f76611456c5004f | [
"MIT"
] | null | null | null | backend/users/models.py | simobasso/pycon | 74cde50eea3e7352095db8a84f76611456c5004f | [
"MIT"
] | null | null | null | from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
# from django.core.mail import send_mail
from django.db import models
from django.utils.translation import ugettext_lazy as _
from .managers import UserManager
class User(AbstractBaseUser, PermissionsMi... | 31.481481 | 85 | 0.748235 | 103 | 850 | 5.990291 | 0.543689 | 0.081037 | 0.055105 | 0.068071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.149412 | 850 | 26 | 86 | 32.692308 | 0.849239 | 0.044706 | 0 | 0.117647 | 0 | 0 | 0.062963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.294118 | 0.058824 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
431ccd968045497f15af47bc2143ca92678d5aec | 1,179 | py | Python | src/utils/csv_headers.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | null | null | null | src/utils/csv_headers.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | 8 | 2020-09-25T22:32:00.000Z | 2022-02-10T01:17:17.000Z | src/utils/csv_headers.py | nybupt/athena | 2808f5060831382e603e5dc5ec6a9e9d8901a3b2 | [
"MIT"
] | 1 | 2021-08-12T12:48:51.000Z | 2021-08-12T12:48:51.000Z | """
@author: Ying Meng (y(dot)meng201011(at)gmail(dot)com)
"""
from enum import Enum
class IdealModelEvalHeaders(Enum):
NUM_OF_WEAK_DEFENSES = 'Num_of_Weak_Defenses'
TOP_K = 'TopK'
BOTTOM_K = 'BottomK'
RANDK_R0 = 'RandK_R0'
RANDK_R1 = 'RandK_R1'
RANDK_R2 = 'RandK_R2'
RANDK_R3 = 'RandK_R3'... | 25.085106 | 54 | 0.648855 | 169 | 1,179 | 4.076923 | 0.360947 | 0.014514 | 0.026125 | 0.049347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11804 | 0.238338 | 1,179 | 46 | 55 | 25.630435 | 0.64922 | 0.045802 | 0 | 0 | 0 | 0 | 0.294803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
43227719be8a33c037253c108f25832ecd332988 | 3,276 | py | Python | volatility/framework/exceptions.py | doomedraven/volatility3 | 337d2ee01657fa2886da0d69d47b2daadc08df4e | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | volatility/framework/exceptions.py | doomedraven/volatility3 | 337d2ee01657fa2886da0d69d47b2daadc08df4e | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | volatility/framework/exceptions.py | doomedraven/volatility3 | 337d2ee01657fa2886da0d69d47b2daadc08df4e | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | # This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
#
"""A list of potential exceptions that volatility can throw.
These include exceptions that can be thrown on errors by the symbol
spa... | 36.4 | 110 | 0.740537 | 411 | 3,276 | 5.746959 | 0.340633 | 0.034293 | 0.025402 | 0.025402 | 0.243014 | 0.223539 | 0.213802 | 0.202794 | 0.157917 | 0.091448 | 0 | 0.002995 | 0.184676 | 3,276 | 89 | 111 | 36.808989 | 0.881318 | 0.476801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.068966 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4328571c86dcbfee9a502f874ff3425a2cc0a015 | 3,863 | py | Python | tests/providers/redis/hooks/test_redis.py | emilioego/airflow | 3457c7847cd24413ff5b622e65c27d8370f94502 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 79 | 2021-10-15T07:32:27.000Z | 2022-03-28T04:10:19.000Z | tests/providers/redis/hooks/test_redis.py | emilioego/airflow | 3457c7847cd24413ff5b622e65c27d8370f94502 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 153 | 2021-10-15T05:23:46.000Z | 2022-02-23T06:07:10.000Z | tests/providers/redis/hooks/test_redis.py | emilioego/airflow | 3457c7847cd24413ff5b622e65c27d8370f94502 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 23 | 2021-10-15T02:36:37.000Z | 2022-03-17T02:59:27.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 40.239583 | 101 | 0.660368 | 482 | 3,863 | 5.109959 | 0.290456 | 0.025579 | 0.059683 | 0.058465 | 0.294762 | 0.224117 | 0.155907 | 0.093382 | 0.060901 | 0.060901 | 0 | 0.003391 | 0.236604 | 3,863 | 95 | 102 | 40.663158 | 0.831807 | 0.194667 | 0 | 0.15625 | 0 | 0 | 0.312641 | 0.05464 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.078125 | false | 0.078125 | 0.078125 | 0 | 0.171875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43291f7fb3b00199f66a74738573b8a77a65b717 | 1,777 | py | Python | linetface/core.py | hongquan/Linetface | 09d6a52e041d0caeb50960320b29a92b09214a3e | [
"Apache-2.0"
] | null | null | null | linetface/core.py | hongquan/Linetface | 09d6a52e041d0caeb50960320b29a92b09214a3e | [
"Apache-2.0"
] | null | null | null | linetface/core.py | hongquan/Linetface | 09d6a52e041d0caeb50960320b29a92b09214a3e | [
"Apache-2.0"
] | null | null | null | import dataclasses
from dataclasses import dataclass
from ipaddress import IPv4Address, IPv6Address
from typing import List, Tuple, Union, Optional
from netaddr import EUI
from netaddr.strategy.eui48 import mac_unix_expanded
from .consts import LinkFlag, OperState, LinkMode, LinkType
class LinuxMAC(EUI):
''' Sub... | 23.077922 | 101 | 0.693303 | 223 | 1,777 | 5.381166 | 0.475336 | 0.046667 | 0.025 | 0.041667 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0 | 0.006503 | 0.221159 | 1,777 | 76 | 102 | 23.381579 | 0.860549 | 0.155318 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.134615 | 0.038462 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
432d2702008e3d1e767a1b28ab6f9dbd7c12305f | 1,160 | py | Python | tests/unittests/api/basic_app_with_cqrs/application/controllers/UserCqrsResource.py | ahmetcagriakca/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | 2 | 2021-12-09T21:07:46.000Z | 2021-12-11T22:18:01.000Z | tests/unittests/api/basic_app_with_cqrs/application/controllers/UserCqrsResource.py | fmuyilmaz/pdip | f7e30b0c04d9e85ef46b0b7094fafd3ce18bccab | [
"MIT"
] | null | null | null | tests/unittests/api/basic_app_with_cqrs/application/controllers/UserCqrsResource.py | fmuyilmaz/pdip | f7e30b0c04d9e85ef46b0b7094fafd3ce18bccab | [
"MIT"
] | 3 | 2021-11-15T00:47:00.000Z | 2021-12-17T11:35:45.000Z | from injector import inject
from pdip.api.base import ResourceBase
from pdip.cqrs import Dispatcher
from tests.unittests.api.basic_app_with_cqrs.application.CreateUser.CreateUserCommand import CreateUserCommand
from tests.unittests.api.basic_app_with_cqrs.application.CreateUser.CreateUserRequest import CreateUserReque... | 41.428571 | 110 | 0.77069 | 128 | 1,160 | 6.804688 | 0.3125 | 0.051665 | 0.10333 | 0.120551 | 0.322618 | 0.322618 | 0.322618 | 0.322618 | 0.322618 | 0.322618 | 0 | 0 | 0.15431 | 1,160 | 27 | 111 | 42.962963 | 0.88787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.363636 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
432fcbca4f5da3658803523f59c0771c459b4740 | 440 | py | Python | lab_programs/lab2/Geometry/circle.py | HariShankar08/SchoolWork | 6f7364351357530e2c140b611a1d32e7fc88831f | [
"MIT"
] | null | null | null | lab_programs/lab2/Geometry/circle.py | HariShankar08/SchoolWork | 6f7364351357530e2c140b611a1d32e7fc88831f | [
"MIT"
] | null | null | null | lab_programs/lab2/Geometry/circle.py | HariShankar08/SchoolWork | 6f7364351357530e2c140b611a1d32e7fc88831f | [
"MIT"
] | null | null | null | from math import pi
"""Circle module for Lab2 Program
Various functions regarding circles (Area and Perimeter)"""
def c_area(r):
"""Function for calculating Area of Circle
Value is calculated and rounded to 2 decimal places."""
return round(pi * r * r, 2)
def c_perimeter(r):
"""Function for calcu... | 22 | 59 | 0.695455 | 66 | 440 | 4.606061 | 0.484848 | 0.026316 | 0.078947 | 0.151316 | 0.407895 | 0.407895 | 0.407895 | 0.407895 | 0.407895 | 0.407895 | 0 | 0.017442 | 0.218182 | 440 | 19 | 60 | 23.157895 | 0.866279 | 0.436364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4333db913aed8061c132b2db3937a3f05a71d5b9 | 444 | py | Python | syntax/class_object/testRectangle.py | Dev-Learn/LearnPython | a601f5eeeb05236a3e179bf8c34425a95cb0c919 | [
"Apache-2.0"
] | null | null | null | syntax/class_object/testRectangle.py | Dev-Learn/LearnPython | a601f5eeeb05236a3e179bf8c34425a95cb0c919 | [
"Apache-2.0"
] | null | null | null | syntax/class_object/testRectangle.py | Dev-Learn/LearnPython | a601f5eeeb05236a3e179bf8c34425a95cb0c919 | [
"Apache-2.0"
] | null | null | null | from syntax.class_object.rectangle import Rectangle
# Tạo 2 đối tượng: r1 & r2
r1 = Rectangle(10, 5)
r2 = Rectangle(20, 11)
print("r1.width = ", r1.width)
print("r1.height = ", r1.height)
print("r1.getWidth() = ", r1.getWidth())
print("r1.getArea() = ", r1.getArea())
print("-----------------")
print("r2.width = "... | 23.368421 | 51 | 0.612613 | 62 | 444 | 4.370968 | 0.33871 | 0.103321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072539 | 0.130631 | 444 | 19 | 52 | 23.368421 | 0.629534 | 0.054054 | 0 | 0 | 0 | 0 | 0.298329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
43341aa182b28ba651562ff684086a7d6b9819d1 | 6,442 | py | Python | data/passiv_de/passivization_corpus_proc.py | mawilson1234/multilingual-transformations | 1e7abc158158d9cd09e6d68ed51eb16801494ab4 | [
"MIT"
] | null | null | null | data/passiv_de/passivization_corpus_proc.py | mawilson1234/multilingual-transformations | 1e7abc158158d9cd09e6d68ed51eb16801494ab4 | [
"MIT"
] | null | null | null | data/passiv_de/passivization_corpus_proc.py | mawilson1234/multilingual-transformations | 1e7abc158158d9cd09e6d68ed51eb16801494ab4 | [
"MIT"
] | null | null | null | import random
import argparse
from collections import Counter
parser = argparse.ArgumentParser()
parser.add_argument('--train_size', help='Size for the training set', type=int, default=100000)
parser.add_argument('--dev_size', help='Size for the dev set', type=int, default=1000)
parser.add_argument('--test_size', help... | 25.563492 | 133 | 0.62108 | 899 | 6,442 | 4.250278 | 0.252503 | 0.020937 | 0.023816 | 0.026695 | 0.225595 | 0.190526 | 0.142109 | 0.093693 | 0.032452 | 0.023031 | 0 | 0.031332 | 0.232071 | 6,442 | 251 | 134 | 25.665339 | 0.741055 | 0.032909 | 0 | 0.14433 | 0 | 0 | 0.140791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025773 | false | 0.061856 | 0.015464 | 0 | 0.087629 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4335198a8909bf055572aa2c0fe7b43698fd576c | 9,049 | py | Python | AV_BlackFridayHack/finalModel.py | galileoSolution/ML | 0a7c545ed6f592e1c1ff617392346723a2ab86ec | [
"MIT"
] | 212 | 2015-07-11T06:01:15.000Z | 2022-03-08T11:42:34.000Z | AV_BlackFridayHack/finalModel.py | arjunbhasin2013/ML | 0a7c545ed6f592e1c1ff617392346723a2ab86ec | [
"MIT"
] | 3 | 2018-03-12T12:58:11.000Z | 2020-01-31T22:19:32.000Z | AV_BlackFridayHack/finalModel.py | arjunbhasin2013/ML | 0a7c545ed6f592e1c1ff617392346723a2ab86ec | [
"MIT"
] | 238 | 2015-11-14T23:21:27.000Z | 2022-01-19T10:25:44.000Z | import sys
import pandas as pd
import numpy as np
from sklearn.cross_validation import KFold
from sklearn import ensemble
from sklearn import metrics
from sklearn.preprocessing import LabelEncoder
sys.path.append("/home/sudalai/Softwares/XGB_pointfour/xgboost-master/wrapper/")
import xgboost as xgb
gender_dict = {'F':... | 48.650538 | 161 | 0.702288 | 1,262 | 9,049 | 4.59271 | 0.130745 | 0.15528 | 0.067633 | 0.05521 | 0.671153 | 0.642857 | 0.633885 | 0.328157 | 0.314355 | 0.314355 | 0 | 0.023262 | 0.187645 | 9,049 | 185 | 162 | 48.913514 | 0.765202 | 0.01746 | 0 | 0.038217 | 0 | 0 | 0.184877 | 0.099809 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050955 | null | null | 0.038217 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
433696c9152d169f1c292edffe91144f70a4b359 | 1,379 | py | Python | src/distributors.py | berjc/sandpile-load-balancer | f5fc199d3da6123c08149dc0b1f8e7378e00a9ae | [
"MIT"
] | null | null | null | src/distributors.py | berjc/sandpile-load-balancer | f5fc199d3da6123c08149dc0b1f8e7378e00a9ae | [
"MIT"
] | null | null | null | src/distributors.py | berjc/sandpile-load-balancer | f5fc199d3da6123c08149dc0b1f8e7378e00a9ae | [
"MIT"
] | null | null | null | """
'distributors.py' implements packet distribution strategies.
"""
from copy import deepcopy
from random import randint, shuffle
# Blindly distribute packets to neighbors
# @params
# server <Server> : server object to topple
# @return
# None
def blind_distribute(server):
servers = server.neighbors
... | 30.644444 | 71 | 0.704133 | 184 | 1,379 | 5.26087 | 0.26087 | 0.07438 | 0.030992 | 0.061983 | 0.661157 | 0.645661 | 0.645661 | 0.645661 | 0.645661 | 0.645661 | 0 | 0.000876 | 0.171864 | 1,379 | 44 | 72 | 31.340909 | 0.84676 | 0.319797 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43387e69d4e99e39ed749a0711eebd1948c737b6 | 1,892 | py | Python | backend/story/migrations/0016_auto_20220124_1738.py | PY-GZKY/ck-miniprogram | 0cc49736dbe7bfd64dbcb224c57d7df7b9c72d3a | [
"Apache-2.0"
] | 2 | 2021-11-19T03:44:57.000Z | 2021-11-19T10:49:47.000Z | backend/story/migrations/0016_auto_20220124_1738.py | PY-GZKY/django-miniprogram | 0cc49736dbe7bfd64dbcb224c57d7df7b9c72d3a | [
"Apache-2.0"
] | null | null | null | backend/story/migrations/0016_auto_20220124_1738.py | PY-GZKY/django-miniprogram | 0cc49736dbe7bfd64dbcb224c57d7df7b9c72d3a | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.13 on 2022-01-24 09:38
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('story', '0015_stories_mp4'),
]
operations = [
migrations.CreateModel(
name='StorieDetail',
... | 33.785714 | 124 | 0.550211 | 172 | 1,892 | 5.889535 | 0.465116 | 0.086871 | 0.094768 | 0.11846 | 0.263574 | 0.218164 | 0.096742 | 0 | 0 | 0 | 0 | 0.021505 | 0.311839 | 1,892 | 55 | 125 | 34.4 | 0.756528 | 0.024313 | 0 | 0.367347 | 1 | 0 | 0.163232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.040816 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
433a5591419b095a6a91631e688d736eaec8904c | 2,042 | py | Python | tests/bugs/core_4561_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_4561_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_4561_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_4561
# title: BUGCHECK(183) when use cursor with "order by ID+0" and "for update with lock"
# decription:
# tracker_id: CORE-4561
# min_versions: ['3.0']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# ... | 25.209877 | 97 | 0.606268 | 283 | 2,042 | 4.229682 | 0.452297 | 0.030075 | 0.0401 | 0.016708 | 0.133668 | 0.100251 | 0.100251 | 0.100251 | 0 | 0 | 0 | 0.052265 | 0.297258 | 2,042 | 80 | 98 | 25.525 | 0.781882 | 0.127326 | 0 | 0.210526 | 0 | 0.017544 | 0.719774 | 0.011864 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.017544 | false | 0 | 0.035088 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
433ede4681cba17282811dc6ce6355cd887d94d2 | 39,419 | py | Python | bench/bench_graph_svg.py | Frankie-666/color-emoji.skia | f1634a9952086155b9069d49ab91f1fa43b5ec6a | [
"BSD-3-Clause"
] | 1 | 2018-06-18T03:20:08.000Z | 2018-06-18T03:20:08.000Z | bench/bench_graph_svg.py | Frankie-666/color-emoji.skia | f1634a9952086155b9069d49ab91f1fa43b5ec6a | [
"BSD-3-Clause"
] | null | null | null | bench/bench_graph_svg.py | Frankie-666/color-emoji.skia | f1634a9952086155b9069d49ab91f1fa43b5ec6a | [
"BSD-3-Clause"
] | null | null | null | '''
Created on May 16, 2011
@author: bungeman
'''
import bench_util
import getopt
import httplib
import itertools
import json
import os
import re
import sys
import urllib
import urllib2
import xml.sax.saxutils
# We throw out any measurement outside this range, and log a warning.
MIN_REASONABLE_TIME = 0
MAX_REASONABLE... | 37.757663 | 90 | 0.588371 | 4,698 | 39,419 | 4.771179 | 0.147297 | 0.023645 | 0.035333 | 0.015615 | 0.22128 | 0.168637 | 0.141869 | 0.114611 | 0.097613 | 0.077537 | 0 | 0.008261 | 0.296735 | 39,419 | 1,043 | 91 | 37.793864 | 0.800303 | 0.035465 | 0 | 0.1475 | 0 | 0.0075 | 0.323595 | 0.079619 | 0 | 0 | 0 | 0.000959 | 0.00125 | 0 | null | null | 0 | 0.01375 | null | null | 0.14 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4343bbb6b8651b2c61f54f1f826117e0e5892204 | 2,616 | py | Python | src/cyhy_api/api.py | cisagov/cyhy-api | f2cd870c7ef7e9f9116883d2b849125362418e40 | [
"CC0-1.0"
] | 1 | 2022-02-24T03:10:55.000Z | 2022-02-24T03:10:55.000Z | src/cyhy_api/api.py | cisagov/cyhy-api | f2cd870c7ef7e9f9116883d2b849125362418e40 | [
"CC0-1.0"
] | 1 | 2019-04-12T20:38:00.000Z | 2019-04-12T20:38:00.000Z | src/cyhy_api/api.py | cisagov/cyhy-api | f2cd870c7ef7e9f9116883d2b849125362418e40 | [
"CC0-1.0"
] | null | null | null | """CyHy API Server."""
from datetime import timedelta
import pprint
from flask import Flask, request
from flask_jwt_extended import JWTManager, decode_token
from flask_cors import CORS
from .util import load_config, connect_from_config
from .schema import Schema
from .model import UserModel
def load_secret(filenam... | 31.518072 | 78 | 0.647171 | 321 | 2,616 | 5.105919 | 0.339564 | 0.060403 | 0.042709 | 0.025625 | 0.075656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001483 | 0.226682 | 2,616 | 82 | 79 | 31.902439 | 0.8087 | 0.110092 | 0 | 0.032787 | 0 | 0 | 0.189753 | 0.030829 | 0 | 0 | 0 | 0.012195 | 0 | 1 | 0.081967 | false | 0 | 0.131148 | 0 | 0.295082 | 0.065574 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43468db6a7bf45ef98959b0b712b68c7e3b75e76 | 617 | py | Python | python/ray/experimental/data/datasource/__init__.py | aryavohra/ray | 6d884f1442c271329829ff0bceae588f3cd49d7d | [
"Apache-2.0"
] | 1 | 2019-03-12T05:47:00.000Z | 2019-03-12T05:47:00.000Z | python/ray/experimental/data/datasource/__init__.py | aryavohra/ray | 6d884f1442c271329829ff0bceae588f3cd49d7d | [
"Apache-2.0"
] | 29 | 2021-11-20T08:11:38.000Z | 2022-03-26T07:09:22.000Z | python/ray/experimental/data/datasource/__init__.py | aryavohra/ray | 6d884f1442c271329829ff0bceae588f3cd49d7d | [
"Apache-2.0"
] | null | null | null | from ray.experimental.data.datasource.datasource import (
Datasource, RangeDatasource, DummyOutputDatasource, ReadTask, WriteTask)
from ray.experimental.data.datasource.json_datasource import JSONDatasource
from ray.experimental.data.datasource.csv_datasource import CSVDatasource
from ray.experimental.data.datasour... | 32.473684 | 76 | 0.779579 | 51 | 617 | 9.235294 | 0.372549 | 0.059448 | 0.161359 | 0.195329 | 0.547771 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.13128 | 617 | 18 | 77 | 34.277778 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.209076 | 0.034036 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a2c3f3ca855facd0447a354e31dd09d2789f742 | 306 | py | Python | image_caption_online/gen_js.py | kimiyoung/review | 0ada0f408783a9ac7a29c32d136af18a2b93df9e | [
"MIT"
] | 212 | 2016-09-17T15:46:47.000Z | 2021-11-17T03:27:39.000Z | image_caption_online/gen_js.py | kimiyoung/review | 0ada0f408783a9ac7a29c32d136af18a2b93df9e | [
"MIT"
] | 8 | 2016-10-18T09:17:33.000Z | 2018-01-02T13:33:20.000Z | image_caption_online/gen_js.py | kimiyoung/review | 0ada0f408783a9ac7a29c32d136af18a2b93df9e | [
"MIT"
] | 65 | 2016-09-17T16:49:03.000Z | 2019-09-10T15:47:43.000Z |
import json
data = []
for i in range(1, 5):
for line in open('server_test/ensemble.{}.txt'.format(i)):
inputs = line.strip().split('\t')
data.append({'image_id': int(inputs[0]), 'caption': inputs[1]})
json.dump(data, open('server_test/captions_test2014_reviewnet_results.json', 'w'))
| 30.6 | 82 | 0.650327 | 46 | 306 | 4.195652 | 0.695652 | 0.103627 | 0.145078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.150327 | 306 | 9 | 83 | 34 | 0.711538 | 0 | 0 | 0 | 0 | 0 | 0.319079 | 0.259868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a3821cb2f2c2614acb2e4efcfb26a65cb02996b | 2,862 | py | Python | JumpscaleLibs/sal/sshd/SSHD.py | grimpy/jumpscaleX_libs | 4cd8a8b69dd3aa7a1a558c81befc97894ab2ec39 | [
"Apache-2.0"
] | null | null | null | JumpscaleLibs/sal/sshd/SSHD.py | grimpy/jumpscaleX_libs | 4cd8a8b69dd3aa7a1a558c81befc97894ab2ec39 | [
"Apache-2.0"
] | 117 | 2019-09-01T11:59:19.000Z | 2020-07-14T11:10:08.000Z | JumpscaleLibs/sal/sshd/SSHD.py | grimpy/jumpscaleX_libs | 4cd8a8b69dd3aa7a1a558c81befc97894ab2ec39 | [
"Apache-2.0"
] | 2 | 2020-04-06T15:21:23.000Z | 2020-05-07T04:29:53.000Z | from Jumpscale import j
import subprocess
JSBASE = j.baseclasses.object
OP_ADD = "+"
OP_DEL = "-"
OP_ERS = "--"
class SSHD(JSBASE, j.baseclasses.testtools):
__jslocation__ = "j.sal.sshd"
def _init(self, **kwargs):
self._keys = None
self._transactions = []
@property
def ssh_root_pat... | 30.446809 | 84 | 0.596087 | 361 | 2,862 | 4.548476 | 0.362881 | 0.093788 | 0.041413 | 0.051157 | 0.191839 | 0.146163 | 0.146163 | 0.113276 | 0.113276 | 0 | 0 | 0.000495 | 0.294549 | 2,862 | 93 | 85 | 30.774194 | 0.812779 | 0.23515 | 0 | 0.092593 | 0 | 0 | 0.049116 | 0.010806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0.018519 | 0.037037 | 0.037037 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a3b7c826ab8a9e4300d84ddb89786b751f6bc9e | 6,537 | py | Python | fw_basic_tests.py | sesazhin/pyats_seccon | 986c94694b16b7cecfc80158d42d089a915e28e6 | [
"MIT"
] | null | null | null | fw_basic_tests.py | sesazhin/pyats_seccon | 986c94694b16b7cecfc80158d42d089a915e28e6 | [
"MIT"
] | 1 | 2020-11-05T15:32:18.000Z | 2020-11-05T15:32:18.000Z | fw_basic_tests.py | sesazhin/pyats_seccon | 986c94694b16b7cecfc80158d42d089a915e28e6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# To get a logger for the script
import logging
import re
import shlex
import subprocess
import time
from pyats import aetest
from pyats.log.utils import banner
from typing import List
from typing import Tuple
# Genie Imports
from genie.conf import Genie
from genie import metaparser
# To h... | 39.379518 | 122 | 0.629188 | 783 | 6,537 | 5.074074 | 0.231162 | 0.05034 | 0.044299 | 0.040272 | 0.303801 | 0.237604 | 0.189781 | 0.120312 | 0.10219 | 0.046313 | 0 | 0.002121 | 0.278721 | 6,537 | 165 | 123 | 39.618182 | 0.840509 | 0.045434 | 0 | 0.241667 | 0 | 0 | 0.273548 | 0.031129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058333 | false | 0.058333 | 0.125 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4a3d601dcdab448301534c0288ce968edc4b7405 | 361 | py | Python | supervisely/labeling-tool/src/ui/settings_tab.py | supervisely-ecosystem/gl-metric-learning | 3dd0f70616c3a743ed4113ade4cf401fd816ef47 | [
"MIT"
] | null | null | null | supervisely/labeling-tool/src/ui/settings_tab.py | supervisely-ecosystem/gl-metric-learning | 3dd0f70616c3a743ed4113ade4cf401fd816ef47 | [
"MIT"
] | null | null | null | supervisely/labeling-tool/src/ui/settings_tab.py | supervisely-ecosystem/gl-metric-learning | 3dd0f70616c3a743ed4113ade4cf401fd816ef47 | [
"MIT"
] | null | null | null | import supervisely_lib as sly
import sly_globals as g
def init(data, state):
# state["applyTo"] = "image" # "object" # "image" #@TODO: for debug
# state["assignMode"] = "append"
state["topn"] = 5
state["pad"] = 10
state["addEveryAssignedToReference"] = True
state["tagPerImage"] = True
... | 24.066667 | 73 | 0.637119 | 39 | 361 | 5.846154 | 0.692308 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01049 | 0.207756 | 361 | 14 | 74 | 25.785714 | 0.786713 | 0.263158 | 0 | 0 | 0 | 0 | 0.273077 | 0.203846 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a427755a801a304b452a5a0dd20f92dfe4d331d | 1,304 | py | Python | graphics/makecurves.py | paulscottrobson/merlin-trainer | 6b766f3d7ac3a3028b32218101f8154a6f610856 | [
"MIT"
] | null | null | null | graphics/makecurves.py | paulscottrobson/merlin-trainer | 6b766f3d7ac3a3028b32218101f8154a6f610856 | [
"MIT"
] | null | null | null | graphics/makecurves.py | paulscottrobson/merlin-trainer | 6b766f3d7ac3a3028b32218101f8154a6f610856 | [
"MIT"
] | null | null | null | #
# Notebutton graphics creator.
#
from PIL import Image,ImageDraw
import math
widthGroup = [ 30,60,90,120,150,200,250,300 ]
xOrigin = 200
yOrigin = 200
for width in widthGroup:
im = Image.new("RGBA",(600,300),0x00000000)
draw = ImageDraw.Draw(im)
points = [x for x in range(0,width,7)]
points.ap... | 34.315789 | 84 | 0.646472 | 220 | 1,304 | 3.827273 | 0.322727 | 0.099762 | 0.114014 | 0.171021 | 0.372922 | 0.372922 | 0.372922 | 0.372922 | 0.372922 | 0.372922 | 0 | 0.10434 | 0.169479 | 1,304 | 38 | 85 | 34.315789 | 0.67313 | 0.466258 | 0 | 0 | 0 | 0 | 0.043546 | 0.037325 | 0 | 0 | 0.046656 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a45e6006719ff7957b7f9fd479fafea14f8e3df | 1,621 | py | Python | scripts/python/migration/backup.py | bwackwat/event-spiral | 177331035a23f68a0294a0f3e9af948779eef794 | [
"MIT"
] | 3 | 2016-12-08T02:28:27.000Z | 2019-05-15T23:16:11.000Z | scripts/python/migration/backup.py | bwackwat/event-spiral | 177331035a23f68a0294a0f3e9af948779eef794 | [
"MIT"
] | 3 | 2017-02-10T18:21:28.000Z | 2017-09-21T00:06:44.000Z | scripts/python/migration/backup.py | bwackwat/event-spiral | 177331035a23f68a0294a0f3e9af948779eef794 | [
"MIT"
] | 3 | 2017-02-04T01:37:24.000Z | 2019-05-15T23:17:43.000Z | #!/usr/bin/python3
import requests, json, getpass, os, sys, datetime, urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
if len(sys.argv) > 1 and sys.argv[1] == "reset":
print("Resetting.")
if os.path.exists("artifacts/backup.json"):
os.remove("artifacts/backup.json")
exit()
config = {}... | 30.018519 | 159 | 0.691548 | 227 | 1,621 | 4.903084 | 0.348018 | 0.053908 | 0.085355 | 0.075472 | 0.249775 | 0.122192 | 0.059299 | 0 | 0 | 0 | 0 | 0.007746 | 0.123998 | 1,621 | 53 | 160 | 30.584906 | 0.776056 | 0.010487 | 0 | 0.102564 | 0 | 0 | 0.271081 | 0.065584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.102564 | 0.025641 | 0 | 0.025641 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4a4dace777a9b6fe6222a08ecb49c97ed7fd196e | 15,389 | py | Python | talks/contributors/forms.py | davan690/talks.ox | a90b034b34600c06bc68cda0e48dd3c0663f4538 | [
"Apache-2.0"
] | null | null | null | talks/contributors/forms.py | davan690/talks.ox | a90b034b34600c06bc68cda0e48dd3c0663f4538 | [
"Apache-2.0"
] | null | null | null | talks/contributors/forms.py | davan690/talks.ox | a90b034b34600c06bc68cda0e48dd3c0663f4538 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from django.db.models.query_utils import Q
from django.forms.widgets import Select, RadioSelect
from django.utils.safestring import mark_safe
from django.contrib.contenttypes.models import ContentType
from talks.events import models, typeahead, datas... | 39.560411 | 122 | 0.621938 | 1,713 | 15,389 | 5.465266 | 0.207239 | 0.02916 | 0.032044 | 0.019654 | 0.330592 | 0.278039 | 0.260949 | 0.251122 | 0.194403 | 0.178381 | 0 | 0.00145 | 0.282799 | 15,389 | 388 | 123 | 39.662371 | 0.846788 | 0.076548 | 0 | 0.282313 | 0 | 0.003401 | 0.165584 | 0.003826 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037415 | null | null | 0.003401 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a4f12e1bc69236892f6871be6b1f7b06ac611e5 | 5,226 | py | Python | tests/datasets/motion_forecasting/eval/test_metrics.py | johnwlambert/argoverse2-api | caf514b972460e103dc69bbb561152b161aced81 | [
"MIT"
] | null | null | null | tests/datasets/motion_forecasting/eval/test_metrics.py | johnwlambert/argoverse2-api | caf514b972460e103dc69bbb561152b161aced81 | [
"MIT"
] | null | null | null | tests/datasets/motion_forecasting/eval/test_metrics.py | johnwlambert/argoverse2-api | caf514b972460e103dc69bbb561152b161aced81 | [
"MIT"
] | null | null | null | # <Copyright 2022, Argo AI, LLC. Released under the MIT license.>
"""Unit tests for motion forecasting metrics."""
from typing import Final
import numpy as np
import pytest
import av2.datasets.motion_forecasting.eval.metrics as metrics
from av2.utils.typing import NDArrayFloat, NDArrayNumber
# Build stationary GT ... | 44.666667 | 120 | 0.757176 | 699 | 5,226 | 5.316166 | 0.187411 | 0.219053 | 0.094726 | 0.014532 | 0.58746 | 0.479817 | 0.402583 | 0.280409 | 0.205867 | 0.15958 | 0 | 0.030405 | 0.144087 | 5,226 | 116 | 121 | 45.051724 | 0.800358 | 0.232109 | 0 | 0.112676 | 0 | 0 | 0.086879 | 0.036688 | 0 | 0 | 0 | 0 | 0.056338 | 1 | 0.042254 | false | 0 | 0.070423 | 0 | 0.112676 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a5405cbf0d41587be4563483bcadaa35da50036 | 1,656 | py | Python | tests/conftest.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 46 | 2021-03-09T23:34:52.000Z | 2022-03-08T01:30:04.000Z | tests/conftest.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 127 | 2021-02-24T00:41:44.000Z | 2022-03-31T05:14:31.000Z | tests/conftest.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 9 | 2021-03-11T18:18:28.000Z | 2022-03-11T20:32:01.000Z | import json
from pathlib import Path
from pytest_insta import Fmt
from beet import DataPack, ProjectConfig, ResourcePack
from beet.core.utils import dump_json
from beet.library.test_utils import ignore_name
class FmtResourcePack(Fmt[ResourcePack]):
extension = ".resource_pack"
def load(self, path: Path) ->... | 30.109091 | 85 | 0.675725 | 211 | 1,656 | 5.218009 | 0.255924 | 0.072661 | 0.065395 | 0.040872 | 0.271571 | 0.254314 | 0.190736 | 0.108992 | 0.050863 | 0 | 0 | 0 | 0.213768 | 1,656 | 54 | 86 | 30.666667 | 0.845622 | 0 | 0 | 0.054054 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.162162 | 0.054054 | 0.594595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4a540ba8c66e93373b64f8f11350db4b882e1b6d | 1,778 | py | Python | UE4Parse/IoObjects/FExportMapEntry.py | MinshuG/pyUE4Parse | 96cda8132ff423bd36be20828025c2c1c0a7e406 | [
"MIT"
] | 13 | 2021-06-09T09:21:00.000Z | 2022-03-30T22:13:24.000Z | UE4Parse/IoObjects/FExportMapEntry.py | MinshuG/pyUE4Parse | 96cda8132ff423bd36be20828025c2c1c0a7e406 | [
"MIT"
] | 3 | 2021-09-04T22:23:02.000Z | 2022-03-04T09:45:45.000Z | UE4Parse/IoObjects/FExportMapEntry.py | MinshuG/pyUE4Parse | 96cda8132ff423bd36be20828025c2c1c0a7e406 | [
"MIT"
] | 6 | 2021-09-02T10:28:21.000Z | 2022-03-30T22:13:37.000Z | from UE4Parse.Assets.Objects.FName import FName
from enum import IntEnum
from typing import TYPE_CHECKING
from UE4Parse.BinaryReader import BinaryStream
from UE4Parse.IoObjects.FMappedName import FMappedName
from UE4Parse.IoObjects.FPackageObjectIndex import FPackageObjectIndex
from UE4Parse.Assets.Objects.EObjectFlag... | 31.192982 | 70 | 0.736783 | 157 | 1,778 | 8.305732 | 0.401274 | 0.055215 | 0.111196 | 0.038344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012614 | 0.197413 | 1,778 | 56 | 71 | 31.75 | 0.901191 | 0.00225 | 0 | 0 | 0 | 0 | 0.007905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.021739 | 0.217391 | 0.021739 | 0.673913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4a5468a009db2ade2eae256e55ab1115bddf697a | 519 | py | Python | tests/testapp/urls_default.py | vaibhavantil2/detail-personalized-feed | 1fc74a5c8c514c4979fa08257eea5a95924e82bd | [
"MIT"
] | 15 | 2019-02-16T12:17:30.000Z | 2022-03-27T20:11:49.000Z | tests/testapp/urls_default.py | vaibhavantil2/detail-personalized-feed | 1fc74a5c8c514c4979fa08257eea5a95924e82bd | [
"MIT"
] | 7 | 2019-05-10T08:27:14.000Z | 2021-04-26T15:19:06.000Z | tests/testapp/urls_default.py | andreynovikov/django-rated-reviews | ccb24f5412bf5c831f79120c32e1cd51ddca5fe8 | [
"MIT"
] | 8 | 2019-11-07T21:05:10.000Z | 2021-08-03T06:59:37.000Z | try:
from django.urls import include, re_path
except ImportError:
# Django 1.11 - switch to simple path after dropping support of 1.11
from django.conf.urls import include, url as re_path
from django.contrib.auth.views import LoginView, LogoutView
urlpatterns = [
re_path(r'^', include('reviews.urls')... | 30.529412 | 81 | 0.720617 | 76 | 519 | 4.815789 | 0.539474 | 0.081967 | 0.057377 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.16185 | 519 | 16 | 82 | 32.4375 | 0.827586 | 0.217726 | 0 | 0 | 0 | 0 | 0.143921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a56b395135c47bee7b6c56b908594f6236f1ce0 | 925 | py | Python | src/Passphrase.py | theycallmecharlie/pwgen | 0038d4d58a97949ac611035862c4d33be77ba6df | [
"MIT"
] | null | null | null | src/Passphrase.py | theycallmecharlie/pwgen | 0038d4d58a97949ac611035862c4d33be77ba6df | [
"MIT"
] | null | null | null | src/Passphrase.py | theycallmecharlie/pwgen | 0038d4d58a97949ac611035862c4d33be77ba6df | [
"MIT"
] | null | null | null | # encoding=utf8
#!/usr/bin/python3
import random
import pyperclip
from src.Timer import *
class Passphrase:
def __init__(self, length, verbose):
self.length = length
self.verbose = verbose
def passphrase(self):
passphrase = ''
with open('wl.txt', 'r') as f:
words =... | 35.576923 | 117 | 0.617297 | 113 | 925 | 5.017699 | 0.442478 | 0.176367 | 0.132275 | 0.141093 | 0.199295 | 0.162258 | 0.162258 | 0.162258 | 0.162258 | 0.162258 | 0 | 0.002751 | 0.214054 | 925 | 25 | 118 | 37 | 0.777166 | 0.032432 | 0 | 0 | 0 | 0.1 | 0.357623 | 0.293722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.35 | 0.15 | 0 | 0.35 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4a6c56030fc4f3b84c79e7a58f8da0df6bd639f9 | 2,188 | py | Python | app/application.py | skostya64/Selenium_tasks | d7a01b0149aee543fa6278fd532a43afe571cf70 | [
"Apache-2.0"
] | null | null | null | app/application.py | skostya64/Selenium_tasks | d7a01b0149aee543fa6278fd532a43afe571cf70 | [
"Apache-2.0"
] | null | null | null | app/application.py | skostya64/Selenium_tasks | d7a01b0149aee543fa6278fd532a43afe571cf70 | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
from pages.admin_panel_login_page import AdminPanelLoginPage
from pages.add_to_cart_page import AddToCartPage
from pages.main_page import MainPage
from pages.select_product_page import SelectProductPage
from pages.shopping_page import ShoppingPage
from pages.add_to_user_page import AddToU... | 45.583333 | 86 | 0.787934 | 277 | 2,188 | 5.898917 | 0.227437 | 0.104039 | 0.111383 | 0.069767 | 0.191554 | 0.104039 | 0 | 0 | 0 | 0 | 0 | 0.001074 | 0.148995 | 2,188 | 47 | 87 | 46.553191 | 0.876477 | 0 | 0 | 0 | 0 | 0 | 0.00777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.047619 | 0.357143 | 0 | 0.452381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a758965134b5c0a474875b52e53e935ae4da87b | 1,486 | py | Python | geekshop/authapp/migrations/0003_auto_20220227_0011.py | A1eksAwP/GB-Internet-Store | a7cffcf3e7a73efc0cad3cd67ccdbaf245889ce5 | [
"MIT"
] | null | null | null | geekshop/authapp/migrations/0003_auto_20220227_0011.py | A1eksAwP/GB-Internet-Store | a7cffcf3e7a73efc0cad3cd67ccdbaf245889ce5 | [
"MIT"
] | null | null | null | geekshop/authapp/migrations/0003_auto_20220227_0011.py | A1eksAwP/GB-Internet-Store | a7cffcf3e7a73efc0cad3cd67ccdbaf245889ce5 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.11 on 2022-02-26 21:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('authapp', '0002_auto_20220224_1226'),
]
operations = [
migrations.AlterFi... | 37.15 | 149 | 0.604307 | 155 | 1,486 | 5.651613 | 0.529032 | 0.075342 | 0.085616 | 0.099315 | 0.256849 | 0.256849 | 0.116438 | 0.116438 | 0.116438 | 0.116438 | 0 | 0.037975 | 0.25572 | 1,486 | 39 | 150 | 38.102564 | 0.754069 | 0.030956 | 0 | 0.30303 | 1 | 0 | 0.114743 | 0.015994 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a763947a03c4ae34fa364bf72958ce7735c021a | 222 | py | Python | exercicios curso em video/ex067.py | Nilton-Miguel/Prog_Python3 | 4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b | [
"MIT"
] | null | null | null | exercicios curso em video/ex067.py | Nilton-Miguel/Prog_Python3 | 4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b | [
"MIT"
] | null | null | null | exercicios curso em video/ex067.py | Nilton-Miguel/Prog_Python3 | 4cabcb1a30dde6ababce3cb8d1fbb7d417cb1d8b | [
"MIT"
] | null | null | null | resultado = 1
while True:
n = int(input('Valor para tabuada: ').strip())
if n < 0:
break
for fator in range(1, 11):
resultado = n * fator
print(f'{n} x {fator} = {resultado}')
| 22.2 | 51 | 0.509009 | 30 | 222 | 3.766667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.346847 | 222 | 9 | 52 | 24.666667 | 0.744828 | 0 | 0 | 0 | 0 | 0 | 0.220657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a79890b8a91c3f1d9dc6075732286ee423e495a | 390 | py | Python | app/api/exceptions.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | app/api/exceptions.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | 35 | 2019-12-09T19:29:10.000Z | 2020-02-02T19:06:53.000Z | app/api/exceptions.py | MetaGenScope/metagenscope-server | 609cd57c626c857c8efde8237a1f22f4d1e6065d | [
"MIT"
] | null | null | null | """API Exceptions."""
from flask_api.exceptions import APIException
class InvalidRequest(APIException):
"""Exception for invalid requests."""
status_code = 400
detail = 'Request is invalid.'
class InternalError(APIException):
"""Exception for unexpected internal errors."""
status_code = 500
... | 21.666667 | 70 | 0.725641 | 40 | 390 | 7 | 0.65 | 0.092857 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.176923 | 390 | 17 | 71 | 22.941176 | 0.853583 | 0.228205 | 0 | 0 | 0 | 0 | 0.259649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4a7b11432d0b217a4b9850db2fbb186e3d479e05 | 1,319 | py | Python | PyObjCTest/test_nsexpression.py | Khan/pyobjc-framework-Cocoa | f8b015ea2a72d8d78be6084fb12925c4785b8f1f | [
"MIT"
] | 132 | 2015-01-01T10:02:42.000Z | 2022-03-09T12:51:01.000Z | mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsexpression.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 6 | 2015-01-06T08:23:19.000Z | 2019-03-14T12:22:06.000Z | mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsexpression.py | mba811/music-player | 7998986b34cfda2244ef622adefb839331b81a81 | [
"BSD-2-Clause"
] | 27 | 2015-02-23T11:51:43.000Z | 2022-03-07T02:34:18.000Z | from PyObjCTools.TestSupport import *
from Foundation import *
class TestNSExpression (TestCase):
def testConstants(self):
self.assertEqual(NSConstantValueExpressionType, 0)
self.assertEqual(NSEvaluatedObjectExpressionType, 1)
self.assertEqual(NSVariableExpressionType, 2)
self.asse... | 34.710526 | 86 | 0.71721 | 124 | 1,319 | 7.467742 | 0.580645 | 0.178186 | 0.032397 | 0.038877 | 0.051836 | 0.051836 | 0 | 0 | 0 | 0 | 0 | 0.030841 | 0.188779 | 1,319 | 37 | 87 | 35.648649 | 0.834579 | 0.076573 | 0 | 0.111111 | 0 | 0 | 0.046914 | 0.020576 | 0 | 0 | 0 | 0 | 0.481481 | 1 | 0.148148 | false | 0 | 0.074074 | 0 | 0.259259 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a7b59dab177dec85584369c7fabc7390697421a | 577 | py | Python | Python Programs/vowgram.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | 2 | 2021-06-26T21:50:59.000Z | 2021-09-18T04:55:51.000Z | Python Programs/vowgram.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Python Programs/vowgram.py | muhammad-masood-ur-rehman/Skillrack | 71a25417c89d0efab40ee6229ccd758b26ae4312 | [
"CC0-1.0"
] | null | null | null | Vowgram
Vowgrams are words or sentences that has every vowel of the English alphabet occurring at least once. Write an algorithm and a subsequent Python code to check whether a string is a vowgram or not. Write a function to check if a given string is a vowgram. For example, "The quick brown fox jumps over the laz... | 41.214286 | 331 | 0.708839 | 112 | 577 | 3.642857 | 0.553571 | 0.073529 | 0.04902 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016598 | 0.164645 | 577 | 13 | 332 | 44.384615 | 0.827801 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a7be07c7039742cb57f79d218b6330158fdf5d4 | 593 | py | Python | collegebaseball/__init__.py | nathanblumenfeld/abstract | c5e5f033900df002e4eddd1a5ab0146424d6d0f8 | [
"Apache-2.0"
] | null | null | null | collegebaseball/__init__.py | nathanblumenfeld/abstract | c5e5f033900df002e4eddd1a5ab0146424d6d0f8 | [
"Apache-2.0"
] | null | null | null | collegebaseball/__init__.py | nathanblumenfeld/abstract | c5e5f033900df002e4eddd1a5ab0146424d6d0f8 | [
"Apache-2.0"
] | null | null | null | from .ncaa_scraper import get_roster, get_multiyear_roster, get_career_stats, \
get_team_stats, lookup_season_ids, lookup_season_ids_reverse, \
lookup_season_id, lookup_seasons_played, lookup_school_id, \
lookup_player_id
from .metrics import load_linear_weights, load_season_weights, \
calculate_woba_ma... | 49.416667 | 79 | 0.836425 | 83 | 593 | 5.349398 | 0.518072 | 0.081081 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005671 | 0.107926 | 593 | 12 | 80 | 49.416667 | 0.833648 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a80e3009039e2b0cea2759c57f722fa1d202748 | 43,956 | py | Python | sdl2/test/video_test.py | zmarvel/py-sdl2 | fa91007e6eebcbf5838f08cfe8d0b9d5cdf3ab83 | [
"CC0-1.0"
] | null | null | null | sdl2/test/video_test.py | zmarvel/py-sdl2 | fa91007e6eebcbf5838f08cfe8d0b9d5cdf3ab83 | [
"CC0-1.0"
] | null | null | null | sdl2/test/video_test.py | zmarvel/py-sdl2 | fa91007e6eebcbf5838f08cfe8d0b9d5cdf3ab83 | [
"CC0-1.0"
] | null | null | null | import os
import sys
from ctypes.util import find_library
from ctypes import c_int, c_float, byref, cast, POINTER, py_object
import unittest
from sdl2.stdinc import SDL_FALSE, SDL_TRUE
from sdl2 import video, rect, surface, SDL_GetError
if sys.version_info[0] >= 3:
long = int
to_ctypes = lambda seq, dtype: (dtype... | 45.409091 | 87 | 0.623806 | 4,997 | 43,956 | 5.295177 | 0.080248 | 0.139683 | 0.047619 | 0.039305 | 0.759297 | 0.716704 | 0.689229 | 0.63288 | 0.562736 | 0.517574 | 0 | 0.030718 | 0.274934 | 43,956 | 967 | 88 | 45.45605 | 0.799504 | 0.147579 | 0 | 0.558571 | 0 | 0 | 0.039851 | 0 | 0 | 0 | 0.001286 | 0.001034 | 0.242857 | 1 | 0.094286 | false | 0.011429 | 0.01 | 0 | 0.11 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a845d59a074496827fd18c5a976a326811dee4f | 2,106 | py | Python | pyspider/database/oracle/oraclebase.py | jay900323/pyspider | a6f4d1c18a18b8ca4a00f4388726e0583dd5cda7 | [
"Apache-2.0"
] | null | null | null | pyspider/database/oracle/oraclebase.py | jay900323/pyspider | a6f4d1c18a18b8ca4a00f4388726e0583dd5cda7 | [
"Apache-2.0"
] | null | null | null | pyspider/database/oracle/oraclebase.py | jay900323/pyspider | a6f4d1c18a18b8ca4a00f4388726e0583dd5cda7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<i@binux.me>
# http://binux.me
# Created on 2014-11-05 10:42:24
import time
import cx_Oracle
class OracleMixin(object):
@staticmethod
def escape(string):
return '%s' % string
... | 29.661972 | 229 | 0.593542 | 251 | 2,106 | 4.780876 | 0.410359 | 0.046667 | 0.035 | 0.05 | 0.055 | 0.055 | 0.055 | 0 | 0 | 0 | 0 | 0.016173 | 0.295347 | 2,106 | 70 | 230 | 30.085714 | 0.792453 | 0.081671 | 0 | 0.269231 | 0 | 0 | 0.091805 | 0.010892 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038462 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a85c4420210c36cc60799f334e7989132f1aaf2 | 2,308 | py | Python | backend_app/users/utils.py | shakil2995/IUB-Help-Desk-System | 2bf6deb1dbd4f84c784894f69db4dfa971fb65dd | [
"Apache-2.0"
] | 1 | 2021-11-17T14:03:42.000Z | 2021-11-17T14:03:42.000Z | backend_app/users/utils.py | shakil2995/IUB-Help-Desk-System | 2bf6deb1dbd4f84c784894f69db4dfa971fb65dd | [
"Apache-2.0"
] | null | null | null | backend_app/users/utils.py | shakil2995/IUB-Help-Desk-System | 2bf6deb1dbd4f84c784894f69db4dfa971fb65dd | [
"Apache-2.0"
] | null | null | null | from rest_framework.exceptions import APIException, ValidationError
from rest_framework import status
from rest_framework.response import Response
from .jwtAuth import check_access_token
from jwt.exceptions import *
from .models import Ticket
class CustomExcpetion(APIException):
status_code = status.HTTP_400_BAD_R... | 41.214286 | 135 | 0.675043 | 267 | 2,308 | 5.674157 | 0.307116 | 0.059406 | 0.073927 | 0.087789 | 0.369637 | 0.349175 | 0.236304 | 0.155776 | 0.155776 | 0.10429 | 0 | 0.01528 | 0.234402 | 2,308 | 55 | 136 | 41.963636 | 0.842105 | 0 | 0 | 0.148936 | 0 | 0 | 0.136108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085106 | false | 0 | 0.12766 | 0 | 0.510638 | 0.148936 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4a869fd5b373a466fead551bb8d998766604657a | 821 | py | Python | salingbantu/views.py | defranssco/berlapan-core | d63a3a1f9642335265981a7286efb0393080a46e | [
"Unlicense"
] | null | null | null | salingbantu/views.py | defranssco/berlapan-core | d63a3a1f9642335265981a7286efb0393080a46e | [
"Unlicense"
] | null | null | null | salingbantu/views.py | defranssco/berlapan-core | d63a3a1f9642335265981a7286efb0393080a46e | [
"Unlicense"
] | 1 | 2021-10-22T00:32:17.000Z | 2021-10-22T00:32:17.000Z | from django.shortcuts import render
from django.views.generic import ListView, DetailView, CreateView
from django.urls import reverse_lazy
from salingbantu.models import *
from salingbantu.forms import *
# Create your views here.
class SalingBantu(ListView):
model = Post
template_name='home.html'
class Detai... | 24.878788 | 65 | 0.725944 | 100 | 821 | 5.74 | 0.47 | 0.062718 | 0.08885 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182704 | 821 | 32 | 66 | 25.65625 | 0.85544 | 0.051157 | 0 | 0.173913 | 0 | 0 | 0.112258 | 0.029677 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.956522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4a88e529faf51bcac38f060f9992f88d315788bf | 653 | py | Python | resources/utils/file_handling.py | 84KaliPleXon3/leakz | eedfff991bb2c5842d17a1c7e7b6d610c8e0e30c | [
"MIT"
] | 2 | 2021-09-14T01:14:59.000Z | 2021-09-19T03:06:07.000Z | resources/utils/file_handling.py | 84KaliPleXon3/leakz | eedfff991bb2c5842d17a1c7e7b6d610c8e0e30c | [
"MIT"
] | 1 | 2021-06-02T02:54:51.000Z | 2021-06-02T02:54:51.000Z | resources/utils/file_handling.py | 84KaliPleXon3/leakz | eedfff991bb2c5842d17a1c7e7b6d610c8e0e30c | [
"MIT"
] | 2 | 2020-08-30T13:57:05.000Z | 2021-09-14T01:15:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
def load_document(filename):
try:
with open(filename, 'r') as f:
return f.readlines()
except IOError as e:
print e
sys.exit(1)
def save_document(filename, document):
with open(filename, 'w') as f:
... | 20.40625 | 52 | 0.598775 | 89 | 653 | 4.235955 | 0.460674 | 0.095491 | 0.084881 | 0.090186 | 0.233422 | 0.233422 | 0.233422 | 0.233422 | 0.233422 | 0.233422 | 0 | 0.005988 | 0.232772 | 653 | 31 | 53 | 21.064516 | 0.746507 | 0.064319 | 0 | 0.1 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a8b4703dff7b35102e1ee9264bf7347e12a82e5 | 758 | py | Python | speechloop/summary.py | robmsmt/SpeechLoop | 0530beeaabcb15448b148702bfc958250bdec977 | [
"Apache-2.0"
] | 13 | 2021-08-24T03:03:26.000Z | 2022-03-01T07:31:55.000Z | speechloop/summary.py | robmsmt/SpeechLoop | 0530beeaabcb15448b148702bfc958250bdec977 | [
"Apache-2.0"
] | null | null | null | speechloop/summary.py | robmsmt/SpeechLoop | 0530beeaabcb15448b148702bfc958250bdec977 | [
"Apache-2.0"
] | null | null | null | import datetime
def print_summary(list_of_asr, df_wer, start_time):
wer_cols = [c for c in df_wer.columns if "wer" in c]
for w in wer_cols:
print("-" * 30)
print(f"Average value of {w} is {df_wer[w].mean():.4f}\n")
for asr in list_of_asr:
print(f"Total inference time taken for {a... | 36.095238 | 117 | 0.650396 | 130 | 758 | 3.615385 | 0.415385 | 0.076596 | 0.057447 | 0.068085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.201847 | 758 | 20 | 118 | 37.9 | 0.758678 | 0 | 0 | 0.2 | 0 | 0.066667 | 0.473615 | 0.067282 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4a8eba23840c7eca849fde607a0760cc0aa9cb02 | 1,623 | py | Python | leet_code/longest_palindrome.py | ShadyPenguin/Educational | 1e7484b3c40e26e22b476b72925c6d6c726e5a09 | [
"MIT"
] | null | null | null | leet_code/longest_palindrome.py | ShadyPenguin/Educational | 1e7484b3c40e26e22b476b72925c6d6c726e5a09 | [
"MIT"
] | null | null | null | leet_code/longest_palindrome.py | ShadyPenguin/Educational | 1e7484b3c40e26e22b476b72925c6d6c726e5a09 | [
"MIT"
] | null | null | null | def longest_palindrome(s: str) -> str:
"""
Find the longest substring palindrome inside given string
https://leetcode.com/problems/longest-palindromic-substring/submissions/
TODO: This answer is too slow. You must improve algorithm speed
>>> longest_palindrome("abab")
'aba'
>>> longest_pal... | 23.521739 | 85 | 0.558842 | 208 | 1,623 | 4.259615 | 0.432692 | 0.06772 | 0.031603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006506 | 0.33703 | 1,623 | 68 | 86 | 23.867647 | 0.816915 | 0.429452 | 0 | 0.137931 | 0 | 0 | 0.009792 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a90eafb10a4c59ecef74704bd33dff708cc8b0e | 743 | py | Python | longest_substr_with_k_distinct.py | rksaxena/leetcode_solutions | 00c8879f739706653d955c1390e2b3ecf1294b8d | [
"MIT"
] | null | null | null | longest_substr_with_k_distinct.py | rksaxena/leetcode_solutions | 00c8879f739706653d955c1390e2b3ecf1294b8d | [
"MIT"
] | null | null | null | longest_substr_with_k_distinct.py | rksaxena/leetcode_solutions | 00c8879f739706653d955c1390e2b3ecf1294b8d | [
"MIT"
] | null | null | null |
__author__ = Rohit Kamal Saxena
__email__ = rohit_kamal2003@yahoo.com
"""
Given a string, find the longest substring that contains only two unique characters. For example, given "abcbbbbcccbdddadacb", the longest substring that contains 2 unique character is "bcbbbbcccb"
"""
class Solution(object):
def lengthO... | 25.62069 | 197 | 0.537012 | 98 | 743 | 3.928571 | 0.581633 | 0.051948 | 0.098701 | 0.119481 | 0.161039 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021008 | 0.359354 | 743 | 28 | 198 | 26.535714 | 0.787815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a9261c8f88f5dd14332261a18cf9063666da90e | 463 | py | Python | BestRoute/migrations/0006_auto_20170417_2240.py | christinagee/Safe-Route-Home | 6eb17ddd3c8f4893d9dcf1e08fc8374901a68d7c | [
"MIT"
] | 1 | 2017-10-09T19:42:23.000Z | 2017-10-09T19:42:23.000Z | BestRoute/migrations/0006_auto_20170417_2240.py | christinagee/Safe-Route-Home | 6eb17ddd3c8f4893d9dcf1e08fc8374901a68d7c | [
"MIT"
] | null | null | null | BestRoute/migrations/0006_auto_20170417_2240.py | christinagee/Safe-Route-Home | 6eb17ddd3c8f4893d9dcf1e08fc8374901a68d7c | [
"MIT"
] | 2 | 2017-04-30T22:25:20.000Z | 2021-03-04T19:51:14.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-17 22:40
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('BestRoute', '0005_crimedatapoint_occurred_on_date'),
]
operations = [
migrations.Re... | 22.047619 | 62 | 0.634989 | 50 | 463 | 5.6 | 0.78 | 0.078571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061047 | 0.257019 | 463 | 20 | 63 | 23.15 | 0.752907 | 0.146868 | 0 | 0 | 1 | 0 | 0.211735 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a92f54322c569bc6bdc80e6bc8f596c8582368d | 5,698 | py | Python | vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/ramload.py | nateglims/amazon-freertos | 5cc32eb29d935f124101a3584c6d29aa1f5d687d | [
"MIT"
] | 2,637 | 2017-11-29T18:41:48.000Z | 2022-03-29T01:03:36.000Z | vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/ramload.py | nateglims/amazon-freertos | 5cc32eb29d935f124101a3584c6d29aa1f5d687d | [
"MIT"
] | 1,926 | 2017-11-29T21:42:02.000Z | 2022-03-31T22:12:50.000Z | vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/ramload.py | nateglims/amazon-freertos | 5cc32eb29d935f124101a3584c6d29aa1f5d687d | [
"MIT"
] | 1,384 | 2017-11-29T19:04:27.000Z | 2022-03-29T14:40:27.000Z | #! /usr/bin/env python
# Copyright (C) 2018 Marvell International Ltd.
# All Rights Reserved.
# Load application to ram helper script
# Note: sys.stdout.flush() and sys.stderr.flush() are required for proper
# console output in eclipse
import os, sys, platform, getopt, subprocess
from sys import platform as _platform... | 34.325301 | 207 | 0.593366 | 717 | 5,698 | 4.596932 | 0.267782 | 0.030036 | 0.014563 | 0.025789 | 0.315534 | 0.239078 | 0.229369 | 0.207524 | 0.180825 | 0.180825 | 0 | 0.01147 | 0.265532 | 5,698 | 165 | 208 | 34.533333 | 0.776105 | 0.048789 | 0 | 0.261538 | 0 | 0.015385 | 0.237022 | 0.00388 | 0 | 0 | 0.003695 | 0 | 0 | 0 | null | null | 0.007692 | 0.015385 | null | null | 0.184615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a97cf6b6b50aeeed25a8ba3b7fed6e7a7be6eac | 730 | py | Python | {{cookiecutter.project_slug}}/backend/app/services/posthog.py | tonyf/full-stack-fastapi-postgresql | 2bd73227b14c55ea2c69af46ce169e25e3f4cd26 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/backend/app/services/posthog.py | tonyf/full-stack-fastapi-postgresql | 2bd73227b14c55ea2c69af46ce169e25e3f4cd26 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/backend/app/services/posthog.py | tonyf/full-stack-fastapi-postgresql | 2bd73227b14c55ea2c69af46ce169e25e3f4cd26 | [
"MIT"
] | null | null | null | import posthog
from app.core.config import settings
class PosthogClient:
""" Singleton class for posthog client """
_instance = None
def _initialize(self) -> posthog:
posthog.host = settings.POSTHOG_HOST
posthog.api_key = settings.POSTHOG_API_KEY
return posthog
def get_clie... | 26.071429 | 77 | 0.657534 | 83 | 730 | 5.506024 | 0.39759 | 0.131291 | 0.085339 | 0.091904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264384 | 730 | 27 | 78 | 27.037037 | 0.851024 | 0.046575 | 0 | 0.117647 | 0 | 0 | 0.080058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4a987277cf16e2a58a7cb4ab9c5b3ac60003c863 | 1,564 | py | Python | Project:-Make-Sense-of-Census-100-GreyAtom/code.py | healerprince/greyatom-python-for-data-science | 44155d83610f42093088e3464ca6aab8cec3d5c6 | [
"MIT"
] | 1 | 2021-11-23T07:14:00.000Z | 2021-11-23T07:14:00.000Z | Project:-Make-Sense-of-Census-100-GreyAtom/code.py | healerprince/greyatom-python-for-data-science | 44155d83610f42093088e3464ca6aab8cec3d5c6 | [
"MIT"
] | null | null | null | Project:-Make-Sense-of-Census-100-GreyAtom/code.py | healerprince/greyatom-python-for-data-science | 44155d83610f42093088e3464ca6aab8cec3d5c6 | [
"MIT"
] | null | null | null | # --------------
# Importing header files
import numpy as np
import warnings
warnings.filterwarnings('ignore')
#New record
new_record=[[50, 9, 4, 1, 0, 0, 40, 0]]
#Reading file
data = np.genfromtxt(path, delimiter=",", skip_header=1)
#Code starts here
census=np.concatenate((data,new_record),axis=... | 20.853333 | 59 | 0.691176 | 272 | 1,564 | 3.724265 | 0.224265 | 0.094768 | 0.064166 | 0.015795 | 0.114511 | 0.063179 | 0 | 0 | 0 | 0 | 0 | 0.048041 | 0.13491 | 1,564 | 74 | 60 | 21.135135 | 0.700665 | 0.047954 | 0 | 0.038462 | 0 | 0 | 0.034752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.423077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4a9b9903606702bd343f2dc97745310460916dda | 9,367 | py | Python | aws-nats.py | dankomiocevic/aws-nats | 1d1c02fae7df2597db56015df403330d937e055d | [
"Apache-2.0"
] | 33 | 2016-02-15T23:34:39.000Z | 2021-12-17T04:38:39.000Z | aws-nats.py | dankomiocevic/aws-nats | 1d1c02fae7df2597db56015df403330d937e055d | [
"Apache-2.0"
] | 2 | 2016-02-18T15:50:09.000Z | 2016-02-18T16:53:22.000Z | aws-nats.py | dankomiocevic/aws-nats | 1d1c02fae7df2597db56015df403330d937e055d | [
"Apache-2.0"
] | 3 | 2016-10-11T09:12:56.000Z | 2019-07-09T20:09:02.000Z | #!/usr/bin/python
# Copyright 2016 Danko Miocevic. 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/LICENSE-2.0
#
# Unless required... | 26.164804 | 105 | 0.609587 | 1,165 | 9,367 | 4.806867 | 0.269528 | 0.023571 | 0.0125 | 0.005714 | 0.181607 | 0.14 | 0.107143 | 0.088393 | 0.073036 | 0.073036 | 0 | 0.015158 | 0.281627 | 9,367 | 357 | 106 | 26.238095 | 0.81706 | 0.107398 | 0 | 0.247826 | 0 | 0 | 0.215733 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026087 | 0.021739 | null | null | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4aa0017fdf0ae9d3e13db1c4bf1ca9fbe65e0298 | 330 | py | Python | Chapter 2/2.5.7.py | Netmistro/Py-Practical-Problems | d4446ab6cda2def2fa94939f349ff27285243f25 | [
"MIT"
] | null | null | null | Chapter 2/2.5.7.py | Netmistro/Py-Practical-Problems | d4446ab6cda2def2fa94939f349ff27285243f25 | [
"MIT"
] | null | null | null | Chapter 2/2.5.7.py | Netmistro/Py-Practical-Problems | d4446ab6cda2def2fa94939f349ff27285243f25 | [
"MIT"
] | null | null | null | # 7. Write a program that uses exactly four for loops to print the sequence of letters below
# AAAAAAAAAABBBBBBBCDCDCDCDEFFFFFFG
for i in range(10):
print('A', end='')
for j in range(7):
print('B', end='')
for k in range(4):
print('CD', end='')
print('E', end='')
for l in range(6):
print('F', end='')
p... | 23.571429 | 92 | 0.627273 | 55 | 330 | 3.763636 | 0.6 | 0.135266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.193939 | 330 | 13 | 93 | 25.384615 | 0.755639 | 0.375758 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4aa6d90c7e8744efb483a097e3a0d1799984ee7c | 744 | py | Python | pokemon_image_dataset/data_sources/path_dict.py | jneuendorf/pokemon-image-dataset | 120b5beb4f058ee7c8fa86cc7e5b8030b75a03f1 | [
"MIT"
] | null | null | null | pokemon_image_dataset/data_sources/path_dict.py | jneuendorf/pokemon-image-dataset | 120b5beb4f058ee7c8fa86cc7e5b8030b75a03f1 | [
"MIT"
] | null | null | null | pokemon_image_dataset/data_sources/path_dict.py | jneuendorf/pokemon-image-dataset | 120b5beb4f058ee7c8fa86cc7e5b8030b75a03f1 | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Dict, Optional, TypeVar, Generic
T = TypeVar('T')
class PathDict(Generic[T], dict):
"""Keys are strings representing paths.
Item access happens with `Path` instances.
"""
@classmethod
def with_prefix(cls, prefix: str, kwargs: Dict[str, T]):
ret... | 28.615385 | 85 | 0.592742 | 96 | 744 | 4.489583 | 0.552083 | 0.037123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287634 | 744 | 25 | 86 | 29.76 | 0.813208 | 0.235215 | 0 | 0 | 0 | 0 | 0.025316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4ab54f42834ea97a040fedc01a0a6659d41521e3 | 465 | py | Python | Day 18/part2.py | BytewaveMLP/Advent-of-Code-2020 | a60fb28e9a373a5309fcaaf61ec4e8b561324d97 | [
"MIT"
] | 1 | 2020-12-14T06:06:57.000Z | 2020-12-14T06:06:57.000Z | Day 18/part2.py | BytewaveMLP/Advent-of-Code-2020 | a60fb28e9a373a5309fcaaf61ec4e8b561324d97 | [
"MIT"
] | null | null | null | Day 18/part2.py | BytewaveMLP/Advent-of-Code-2020 | a60fb28e9a373a5309fcaaf61ec4e8b561324d97 | [
"MIT"
] | null | null | null | import sys
import re
input_lines = [line for line in open(sys.argv[1]).read().split('\n') if line != '']
class N:
def __init__(self, n):
self.n = n
def __truediv__(self, b):
return N(self.n + b.n)
def __add__(self, b):
return N(self.n * b.n)
results = []
for line in input_lines:
line = re.sub(r'(\d+)', r'N... | 20.217391 | 83 | 0.617204 | 79 | 465 | 3.455696 | 0.417722 | 0.07326 | 0.065934 | 0.087912 | 0.139194 | 0.139194 | 0.139194 | 0.139194 | 0 | 0 | 0 | 0.005141 | 0.163441 | 465 | 22 | 84 | 21.136364 | 0.696658 | 0 | 0 | 0 | 0 | 0 | 0.034409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.111111 | 0.444444 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4abcfe192707e12c2e5f2d5d36815f911a12f405 | 7,948 | py | Python | tests/test_generate.py | Descent098/hyde | 7f415402cc3e007a746eb2b5bc102281fdb415bd | [
"MIT"
] | 804 | 2015-01-03T22:52:38.000Z | 2022-02-19T08:47:54.000Z | tests/test_generate.py | Descent098/hyde | 7f415402cc3e007a746eb2b5bc102281fdb415bd | [
"MIT"
] | 86 | 2015-01-16T16:56:43.000Z | 2021-10-05T05:25:25.000Z | tests/test_generate.py | Descent098/hyde | 7f415402cc3e007a746eb2b5bc102281fdb415bd | [
"MIT"
] | 161 | 2015-01-06T18:52:17.000Z | 2022-02-04T21:21:54.000Z | # -*- coding: utf-8 -*-
"""
Use nose
`$ pip install nose`
`$ nosetests`
"""
from hyde.generator import Generator
from hyde.model import Config
from hyde.site import Site
from pyquery import PyQuery
from fswrap import File, Folder
TEST_SITE = File(__file__).parent.child_folder('_test')
class TestGenerator(object):... | 29.437037 | 78 | 0.572471 | 924 | 7,948 | 4.738095 | 0.13961 | 0.063956 | 0.05048 | 0.059388 | 0.754683 | 0.71037 | 0.669712 | 0.600503 | 0.589082 | 0.579945 | 0 | 0.005032 | 0.29995 | 7,948 | 269 | 79 | 29.546468 | 0.781812 | 0.008304 | 0 | 0.666667 | 0 | 0 | 0.255779 | 0 | 0 | 0 | 0 | 0 | 0.084388 | 1 | 0.046414 | false | 0 | 0.029536 | 0 | 0.080169 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4abd86b06b25198507ee2fafcd3c8fc43c33cbe2 | 841 | py | Python | tests/test_api/conftest.py | ashesh705/hungry-bear-api | 989be550a13ef702110062e41d1b6cd3b85e5d79 | [
"MIT"
] | null | null | null | tests/test_api/conftest.py | ashesh705/hungry-bear-api | 989be550a13ef702110062e41d1b6cd3b85e5d79 | [
"MIT"
] | 5 | 2021-04-28T11:03:37.000Z | 2021-05-04T02:31:21.000Z | tests/test_api/conftest.py | ashesh705/hungry-bear-api | 989be550a13ef702110062e41d1b6cd3b85e5d79 | [
"MIT"
] | null | null | null | """ Fixtures for testing the API"""
import logging
from collections.abc import AsyncGenerator
import pytest
from fastapi import FastAPI
from httpx import AsyncClient
from src.api import create_api
from src.models import Base
from src.utils.database import connection
logger = logging.getLogger(__name__)
@pytest.fi... | 24.028571 | 70 | 0.731272 | 112 | 841 | 5.392857 | 0.446429 | 0.034768 | 0.059603 | 0.069536 | 0.115894 | 0.115894 | 0.115894 | 0.115894 | 0 | 0 | 0 | 0 | 0.179548 | 841 | 34 | 71 | 24.735294 | 0.875362 | 0.033294 | 0 | 0.090909 | 0 | 0 | 0.060794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4abfbf0392a6d87bb35f015ead7fd92a5fade5d9 | 1,935 | py | Python | sms/syss/messages.py | NovelLab/sms | b9df8d22d8a5bd555a4c7f5bf9cdd0084f156ae9 | [
"MIT"
] | null | null | null | sms/syss/messages.py | NovelLab/sms | b9df8d22d8a5bd555a4c7f5bf9cdd0084f156ae9 | [
"MIT"
] | null | null | null | sms/syss/messages.py | NovelLab/sms | b9df8d22d8a5bd555a4c7f5bf9cdd0084f156ae9 | [
"MIT"
] | null | null | null | """Define message templates."""
# Official Libraries
def _with_data(text: str) -> str:
assert isinstance(text, str)
return text + ': %s'
# Process messages
PROC_START = '> Starting {proc} ...'
PROC_SUCCESS = '___{proc} Successfull.'
PROC_DONE = '... {proc} ...DONE.'
PROC_DONE_WITH_DATA = _with_data(PRO... | 25.460526 | 79 | 0.786563 | 278 | 1,935 | 4.874101 | 0.158273 | 0.17048 | 0.21107 | 0.153506 | 0.565314 | 0.340221 | 0.17417 | 0.073063 | 0 | 0 | 0 | 0 | 0.110078 | 1,935 | 75 | 80 | 25.8 | 0.786876 | 0.048579 | 0 | 0 | 0 | 0 | 0.229803 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 1 | 0.030303 | false | 0 | 0 | 0 | 0.060606 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
4ac64d3710356ae8732ad16fdba2d0e08f767d0c | 7,768 | py | Python | source/sphinxext/jsonschemaext.py | adamaltman/understanding-json-schema | 1f104ab631a924df556683c0b67887eca36f22a2 | [
"BSD-3-Clause"
] | 1 | 2020-07-03T17:45:05.000Z | 2020-07-03T17:45:05.000Z | source/sphinxext/jsonschemaext.py | adamaltman/understanding-json-schema | 1f104ab631a924df556683c0b67887eca36f22a2 | [
"BSD-3-Clause"
] | null | null | null | source/sphinxext/jsonschemaext.py | adamaltman/understanding-json-schema | 1f104ab631a924df556683c0b67887eca36f22a2 | [
"BSD-3-Clause"
] | null | null | null | import json
from docutils import nodes
from docutils import statemachine
from docutils.parsers.rst import Directive
from sphinx.util.nodes import set_source_info
import jsonschema
from jschon import create_catalog, JSON, JSONSchema, URI
legacy = {
'http://json-schema.org/draft-03/schema#': jsonschema.validators... | 30.462745 | 97 | 0.571833 | 800 | 7,768 | 5.41375 | 0.225 | 0.03879 | 0.01801 | 0.019626 | 0.319095 | 0.219349 | 0.168091 | 0.105749 | 0.086816 | 0.086816 | 0 | 0.009026 | 0.315397 | 7,768 | 254 | 98 | 30.582677 | 0.805378 | 0.004634 | 0 | 0.273632 | 0 | 0 | 0.14075 | 0.01837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049751 | false | 0.084577 | 0.034826 | 0 | 0.164179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4ac7f693bd6d30095a0430f454581bed79e67c8e | 5,037 | py | Python | mars/tensor/random/uniform.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | 1 | 2022-02-02T03:03:48.000Z | 2022-02-02T03:03:48.000Z | mars/tensor/random/uniform.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | null | null | null | mars/tensor/random/uniform.py | wjsi/mars | a69fb19edfe748d4393b90ff2c4941a76c084596 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-... | 34.979167 | 85 | 0.660314 | 694 | 5,037 | 4.70317 | 0.371758 | 0.019301 | 0.022059 | 0.011029 | 0.086397 | 0.08027 | 0.03125 | 0.03125 | 0.03125 | 0.03125 | 0 | 0.01112 | 0.232281 | 5,037 | 143 | 86 | 35.223776 | 0.832945 | 0.653167 | 0 | 0.054054 | 0 | 0 | 0.025256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.135135 | 0.081081 | 0.567568 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4ac98022d10551a93c8a580d7fb4ff7817d43e74 | 149 | py | Python | config.py | daQuincy/VAE-GAN-Autoencoding-Beyond-Pixels-Using-a-Similarity-Metric | 55f73a3f527d5822b38658c25f9b1007f7c79043 | [
"MIT"
] | 6 | 2019-05-10T17:54:05.000Z | 2021-12-16T10:45:38.000Z | config.py | daQuincy/VAE-GAN-Autoencoding-Beyond-Pixels-Using-a-Similarity-Metric | 55f73a3f527d5822b38658c25f9b1007f7c79043 | [
"MIT"
] | 3 | 2019-12-13T21:06:10.000Z | 2022-02-25T03:05:43.000Z | config.py | daQuincy/VAE-GAN-Autoencoding-Beyond-Pixels-Using-a-Similarity-Metric | 55f73a3f527d5822b38658c25f9b1007f7c79043 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 14 13:26:55 2019
@author: YQ
"""
batch_size = 64
epochs = 250
learning_rate = 5e-4
latent_dim = 128 | 12.416667 | 35 | 0.637584 | 26 | 149 | 3.538462 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193277 | 0.201342 | 149 | 12 | 36 | 12.416667 | 0.579832 | 0.47651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
434a29e245ba78fcb7e65029e079e5c896dbfabc | 483 | py | Python | ZhangBlogIdea/ZhangBlogIdea/wsgi.py | huajianzhanggithub/ZhangBlogIdea | d125335352d8b7d4089fbb5da03462c8d489564d | [
"MIT"
] | 1 | 2019-11-23T06:27:51.000Z | 2019-11-23T06:27:51.000Z | ZhangBlogIdea/ZhangBlogIdea/wsgi.py | huajianzhanggithub/ZhangBlogIdea | d125335352d8b7d4089fbb5da03462c8d489564d | [
"MIT"
] | null | null | null | ZhangBlogIdea/ZhangBlogIdea/wsgi.py | huajianzhanggithub/ZhangBlogIdea | d125335352d8b7d4089fbb5da03462c8d489564d | [
"MIT"
] | null | null | null | """
WSGI config for ZhangBlogIdea project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
profile = os.environ.get('ZHA... | 26.833333 | 92 | 0.784679 | 65 | 483 | 5.723077 | 0.646154 | 0.053763 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.097308 | 483 | 17 | 93 | 28.411765 | 0.848624 | 0.453416 | 0 | 0 | 0 | 0 | 0.292969 | 0.265625 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
434af92bc84d89cea779ea4852c844a7f4acc54f | 1,471 | py | Python | App/2_bama_web_scrape_initial.py | joexu22/BamaWebScraper | 8b68915ee1f073cd3b389c43a5571de98569ba6a | [
"Apache-2.0"
] | null | null | null | App/2_bama_web_scrape_initial.py | joexu22/BamaWebScraper | 8b68915ee1f073cd3b389c43a5571de98569ba6a | [
"Apache-2.0"
] | null | null | null | App/2_bama_web_scrape_initial.py | joexu22/BamaWebScraper | 8b68915ee1f073cd3b389c43a5571de98569ba6a | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# connect to webdriver
browser = webdriver.Firefox()
browser.g... | 29.42 | 71 | 0.783141 | 195 | 1,471 | 5.753846 | 0.487179 | 0.053476 | 0.046346 | 0.074866 | 0.165775 | 0.11943 | 0 | 0 | 0 | 0 | 0 | 0.006798 | 0.099932 | 1,471 | 49 | 72 | 30.020408 | 0.840634 | 0.339225 | 0 | 0.095238 | 0 | 0 | 0.134313 | 0.0766 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0 | false | 0 | 0.238095 | 0 | 0.238095 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43517d544809b004adcb22cecc26ccf773f496ed | 411 | py | Python | pastebin/migrations/0010_auto_20170218_1009.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | pastebin/migrations/0010_auto_20170218_1009.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | pastebin/migrations/0010_auto_20170218_1009.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11a1 on 2017-02-18 10:09
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pastebin', '0009_auto_20170217_1649'),
]
operations = [
migrations.RenameModel(
... | 20.55 | 48 | 0.632603 | 43 | 411 | 5.813953 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108197 | 0.257908 | 411 | 19 | 49 | 21.631579 | 0.711475 | 0.16545 | 0 | 0 | 1 | 0 | 0.170588 | 0.067647 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4353a16f1a791c7b09783d4f57c3d7bbf8b11cda | 2,068 | py | Python | src/infi/storagemodel/vendor/infinidat/infinibox/connectivity.py | Infinidat/infi.storagemodel | 81740970b5b1c0a691472f2e360d3a6e5c4d0875 | [
"Python-2.0",
"BSD-3-Clause"
] | 6 | 2015-07-29T11:22:36.000Z | 2019-01-22T19:07:42.000Z | src/infi/storagemodel/vendor/infinidat/infinibox/connectivity.py | Infinidat/infi.storagemodel | 81740970b5b1c0a691472f2e360d3a6e5c4d0875 | [
"Python-2.0",
"BSD-3-Clause"
] | null | null | null | src/infi/storagemodel/vendor/infinidat/infinibox/connectivity.py | Infinidat/infi.storagemodel | 81740970b5b1c0a691472f2e360d3a6e5c4d0875 | [
"Python-2.0",
"BSD-3-Clause"
] | 3 | 2015-01-05T13:55:38.000Z | 2018-07-07T05:05:36.000Z | from infi.storagemodel.errors import StorageModelError
class InvalidInfiniboxConnectivity(StorageModelError):
pass
class LocalConnectivityException(StorageModelError):
pass
def get_system_serial_from_wwn(port_wwn):
from infi.storagemodel.vendor.infinidat.infinibox.wwn import InfinidatWWN, InvalidWWN
... | 44 | 125 | 0.761605 | 237 | 2,068 | 6.43038 | 0.337553 | 0.059055 | 0.07874 | 0.08727 | 0.213255 | 0.082677 | 0.082677 | 0.082677 | 0 | 0 | 0 | 0.006325 | 0.159091 | 2,068 | 46 | 126 | 44.956522 | 0.87004 | 0.046905 | 0 | 0.142857 | 0 | 0 | 0.122905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0.057143 | 0.114286 | 0.028571 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43568df59ef4a863a8dea9a7d8af68a749827acc | 1,040 | py | Python | myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/soundcloud/views.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 3 | 2015-02-13T15:06:40.000Z | 2016-05-23T23:23:11.000Z | myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/soundcloud/views.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 9 | 2020-06-05T17:18:43.000Z | 2022-03-11T23:15:04.000Z | myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/soundcloud/views.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 3 | 2015-08-13T22:28:36.000Z | 2016-07-04T18:46:46.000Z | import requests
from allauth.socialaccount.providers.oauth2.views import (OAuth2Adapter,
OAuth2LoginView,
OAuth2CallbackView)
from .provider import SoundCloudProvider
class SoundCloudOAuth2Adapter(OAut... | 41.6 | 77 | 0.627885 | 91 | 1,040 | 6.989011 | 0.516484 | 0.037736 | 0.034591 | 0.066038 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017663 | 0.292308 | 1,040 | 24 | 78 | 43.333333 | 0.846467 | 0 | 0 | 0 | 0 | 0 | 0.109615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4359b1c8e094895796b7d1ef12b9a73a7f70db19 | 2,777 | py | Python | main.py | VaclavDedik/classifier | 9d45a63311f943c1a6ea27e3c6ea03f4886b09e5 | [
"MIT"
] | 2 | 2015-09-09T19:32:19.000Z | 2017-12-30T00:41:00.000Z | main.py | VaclavDedik/classifier | 9d45a63311f943c1a6ea27e3c6ea03f4886b09e5 | [
"MIT"
] | null | null | null | main.py | VaclavDedik/classifier | 9d45a63311f943c1a6ea27e3c6ea03f4886b09e5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import random
from triager.classifier import models, kernels, selectors, tests, utils
from triager.classifier.parsers import Label
from triager import parsers
def main():
# Parse data into documents
#parser = parsers.MRSParser("data/prop/MRs/", project_match="OPW.*")... | 39.112676 | 78 | 0.688153 | 368 | 2,777 | 5.057065 | 0.336957 | 0.045137 | 0.067706 | 0.053735 | 0.185384 | 0.134336 | 0.05051 | 0.05051 | 0 | 0 | 0 | 0.007682 | 0.203097 | 2,777 | 70 | 79 | 39.671429 | 0.833258 | 0.157364 | 0 | 0 | 0 | 0 | 0.273743 | 0.010314 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.096154 | null | null | 0.288462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
435d30799b21e3565765ebc78e53ccbf2c333abb | 376 | py | Python | edsr_test.py | Codesflow-Simon/super-resolution | 4ba4a42332fbf0fd0fda43bd5f126e5dce561fec | [
"Apache-2.0"
] | 1 | 2020-02-19T17:16:17.000Z | 2020-02-19T17:16:17.000Z | edsr_test.py | primesoftwareco/super-resolution | 4ba4a42332fbf0fd0fda43bd5f126e5dce561fec | [
"Apache-2.0"
] | null | null | null | edsr_test.py | primesoftwareco/super-resolution | 4ba4a42332fbf0fd0fda43bd5f126e5dce561fec | [
"Apache-2.0"
] | null | null | null | import os
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
from model import resolve_single
from model.edsr import edsr
from utils import load_image, plot_sample
model = edsr(scale=4, num_res_blocks=16)
model.load_weights('weights/edsr-16-x4/weights.h5')
lr = load_image('demo/DIV2k_valid_LR_difficult/0801x4d.png'... | 26.857143 | 61 | 0.760638 | 61 | 376 | 4.459016 | 0.557377 | 0.066176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042683 | 0.12766 | 376 | 14 | 62 | 26.857143 | 0.786585 | 0 | 0 | 0 | 0 | 0 | 0.252747 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4369232f7c2eff4a857edd3ab02e0d82d7f1d7b2 | 1,088 | py | Python | api/platforms.py | BhasherBEL/LDMv2 | 84871490d52249850c42546ca1fb807f1ce45ade | [
"MIT"
] | 15 | 2019-07-07T00:39:09.000Z | 2022-02-09T21:37:12.000Z | api/platforms.py | BhasherBEL/LDMv2 | 84871490d52249850c42546ca1fb807f1ce45ade | [
"MIT"
] | null | null | null | api/platforms.py | BhasherBEL/LDMv2 | 84871490d52249850c42546ca1fb807f1ce45ade | [
"MIT"
] | null | null | null | # coding: utf-8
# Source: https://github.com/easybuilders/easybuild/wiki/OS_flavor_name_version
import platform
class Platform:
def __init__(self):
if platform.system() and platform.dist() and platform.machine():
self.system = platform.system()
if self.system == 'SunOS':
self.dist_name, __, self.dist_... | 26.536585 | 92 | 0.672794 | 143 | 1,088 | 4.881119 | 0.307692 | 0.160458 | 0.19341 | 0.136103 | 0.287966 | 0.169054 | 0 | 0 | 0 | 0 | 0 | 0.016892 | 0.183824 | 1,088 | 40 | 93 | 27.2 | 0.769144 | 0.08364 | 0 | 0.103448 | 0 | 0 | 0.05332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.103448 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
436a8af9e579d813a18f0abd0a5897acbfe41196 | 449 | py | Python | BeautyForMe/myvenv/Scripts/ebp-script.py | YooInKeun/CAU_CSE_Capstone_3 | 51405c4bed2b55661aa0708c8acea17fe72aa701 | [
"MIT"
] | 6 | 2019-12-07T07:30:34.000Z | 2022-01-20T14:26:44.000Z | BeautyForMe/myvenv/Scripts/ebp-script.py | YooInKeun/CAU_CSE_Capstone_3 | 51405c4bed2b55661aa0708c8acea17fe72aa701 | [
"MIT"
] | 9 | 2019-12-28T06:18:53.000Z | 2022-01-13T01:54:21.000Z | BeautyForMe/myvenv/Scripts/ebp-script.py | YooInKeun/CAU_CSE_Capstone_3 | 51405c4bed2b55661aa0708c8acea17fe72aa701 | [
"MIT"
] | 1 | 2020-05-21T15:55:45.000Z | 2020-05-21T15:55:45.000Z | #!c:\users\keun0\appdata\local\cau_cse_capstone_3\beautyforme\myvenv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'awsebcli==3.15.3','console_scripts','ebp'
__requires__ = 'awsebcli==3.15.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | 34.538462 | 87 | 0.69265 | 68 | 449 | 4.25 | 0.588235 | 0.093426 | 0.114187 | 0.124567 | 0.200692 | 0.200692 | 0.200692 | 0 | 0 | 0 | 0 | 0.0401 | 0.111359 | 449 | 12 | 88 | 37.416667 | 0.684211 | 0.347439 | 0 | 0 | 0 | 0 | 0.278351 | 0.079038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
436dbde227b7cb889a893e265d81dbae2c9011ab | 286 | py | Python | 2016/Round_1A/The_Last_Word/the_last_word.py | abhishek-kdm/Google-Code-Jam-Solutions | e3a998885f70a8af93d76c4a83f41226b906b2e2 | [
"MIT"
] | 2 | 2016-10-04T12:59:57.000Z | 2016-10-04T13:00:27.000Z | 2016/Round_1A/The_Last_Word/the_last_word.py | abhishek-kdm/Google-Code-Jam-Solutions | e3a998885f70a8af93d76c4a83f41226b906b2e2 | [
"MIT"
] | null | null | null | 2016/Round_1A/The_Last_Word/the_last_word.py | abhishek-kdm/Google-Code-Jam-Solutions | e3a998885f70a8af93d76c4a83f41226b906b2e2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf8 -*-
from string import ascii_lowercase as al
for case in range(int(input())):
S = raw_input().strip().lower()
s = S[0]
for i in S[1:]:
if al.index(i)>=al.index(s[0]): s = i+s
else: s+=i
print 'Case #%d: %s'%(case+1, s.upper())
| 22 | 43 | 0.56993 | 54 | 286 | 2.981481 | 0.592593 | 0.024845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 0.199301 | 286 | 12 | 44 | 23.833333 | 0.681223 | 0.143357 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
436e1b9db7acfc212bca74f16b34c4bc773010a2 | 4,669 | py | Python | application/scripts/LoogalRank.py | abhi608/lucid-web-v2 | 875bea63cfad7a9cff14196d18a6922dddb91940 | [
"MIT"
] | 1 | 2021-03-11T21:16:33.000Z | 2021-03-11T21:16:33.000Z | application/scripts/LoogalRank.py | abhi608/lucid-web-v2 | 875bea63cfad7a9cff14196d18a6922dddb91940 | [
"MIT"
] | null | null | null | application/scripts/LoogalRank.py | abhi608/lucid-web-v2 | 875bea63cfad7a9cff14196d18a6922dddb91940 | [
"MIT"
] | null | null | null | # Run generate_offline to get json file for pageranks
import networkx as nx
import json
import random
import numpy as np
from app.scripts.utils import Mongo
from os import listdir
from networkx.readwrite import json_graph
class PageRank:
def __init__(self):
self.graph = nx.DiGraph()
self.ranks = ... | 31.979452 | 75 | 0.609767 | 599 | 4,669 | 4.552588 | 0.217028 | 0.041071 | 0.03117 | 0.023102 | 0.3293 | 0.320132 | 0.266227 | 0.266227 | 0.235424 | 0.235424 | 0 | 0.009428 | 0.273078 | 4,669 | 145 | 76 | 32.2 | 0.794048 | 0.112444 | 0 | 0.267327 | 1 | 0 | 0.098203 | 0.00763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148515 | false | 0 | 0.069307 | 0 | 0.237624 | 0.138614 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
436e974ca1bcf93cde2446bf5b98230d6a7107c7 | 2,083 | py | Python | sapmon/payload/helper/providerfactory.py | bluereign/AzureMonitorForSAPSolutions | 6f8e8e686fbdd675f89c481378244b3468500993 | [
"MIT"
] | null | null | null | sapmon/payload/helper/providerfactory.py | bluereign/AzureMonitorForSAPSolutions | 6f8e8e686fbdd675f89c481378244b3468500993 | [
"MIT"
] | null | null | null | sapmon/payload/helper/providerfactory.py | bluereign/AzureMonitorForSAPSolutions | 6f8e8e686fbdd675f89c481378244b3468500993 | [
"MIT"
] | null | null | null | import logging
import sys
from helper.context import *
from provider.saphana import *
from provider.prometheus import *
from provider.sqlserver import *
from provider.sapnetweaver import *
from provider.syslog import *
availableProviders = {
"SapHana": (saphanaProviderInstance, saphanaProvider... | 45.282609 | 101 | 0.603457 | 121 | 2,083 | 10.38843 | 0.471074 | 0.039777 | 0.071599 | 0.054097 | 0.084328 | 0.084328 | 0.084328 | 0.084328 | 0 | 0 | 0 | 0.001431 | 0.328853 | 2,083 | 45 | 102 | 46.288889 | 0.897711 | 0 | 0 | 0.195122 | 0 | 0 | 0.070091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.195122 | 0 | 0.317073 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4370fb691753ef4f2afbc06150a9902769fa73d2 | 1,301 | py | Python | dissolution and disintegrator machine control code/MAX6675.py | faizan1234567/Dissolution-and-Disintegerator-machine-control-and-testing | 15b70eadd78d3caed081a95d5368e0d08f0e7d2a | [
"MIT"
] | null | null | null | dissolution and disintegrator machine control code/MAX6675.py | faizan1234567/Dissolution-and-Disintegerator-machine-control-and-testing | 15b70eadd78d3caed081a95d5368e0d08f0e7d2a | [
"MIT"
] | null | null | null | dissolution and disintegrator machine control code/MAX6675.py | faizan1234567/Dissolution-and-Disintegerator-machine-control-and-testing | 15b70eadd78d3caed081a95d5368e0d08f0e7d2a | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
# set pin number for communicate with MAX6675
def set_pin (CS, SCK, SO, UNIT):
global sck
sck= SCK
global so
so = SO
global unit
unit = UNIT
GPIO.setup(CS, GPIO.OUT, initial = GPIO.HIGH)
GPIO.setup(S... | 21.327869 | 51 | 0.582629 | 209 | 1,301 | 3.578947 | 0.258373 | 0.160428 | 0.139037 | 0.181818 | 0.382353 | 0.314171 | 0.221925 | 0.144385 | 0.144385 | 0.144385 | 0 | 0.046088 | 0.282859 | 1,301 | 60 | 52 | 21.683333 | 0.755627 | 0.033052 | 0 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.042553 | 0 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4373a9dd2e6288eb9f9f8707e5ee18de0324e3a1 | 1,974 | py | Python | src/mains/main.py | JungleEngine/Intelligent_Frame_Skipping_Network | 8178acfe06e112f5d33acbd17ad33239a6c4afc2 | [
"MIT"
] | null | null | null | src/mains/main.py | JungleEngine/Intelligent_Frame_Skipping_Network | 8178acfe06e112f5d33acbd17ad33239a6c4afc2 | [
"MIT"
] | null | null | null | src/mains/main.py | JungleEngine/Intelligent_Frame_Skipping_Network | 8178acfe06e112f5d33acbd17ad33239a6c4afc2 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import cv2
from src.data_loader.data_generator import DataGenerator
from src.models.discriminator_model import DiscriminatorModel
from src.trainers.discriminator_trainer import DiscriminatorTrainer
from src.testers.discriminator_tester import DiscriminatorTester
from sr... | 41.125 | 136 | 0.745187 | 233 | 1,974 | 6.090129 | 0.347639 | 0.034531 | 0.080338 | 0.114165 | 0.378436 | 0.305144 | 0.305144 | 0.305144 | 0.305144 | 0.262861 | 0 | 0.001195 | 0.151976 | 1,974 | 47 | 137 | 42 | 0.846476 | 0.381966 | 0 | 0 | 0 | 0 | 0.036176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.344828 | 0 | 0.37931 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4376cdf1941d21a5aa3531244a883bf3ec9c0ec3 | 16,085 | py | Python | Server/Python/src/dbs/dao/Oracle/Dataset/List.py | vkuznet/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 8 | 2015-08-14T04:01:32.000Z | 2021-06-03T00:56:42.000Z | Server/Python/src/dbs/dao/Oracle/Dataset/List.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 162 | 2015-01-07T21:34:47.000Z | 2021-10-13T09:42:41.000Z | Server/Python/src/dbs/dao/Oracle/Dataset/List.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 16 | 2015-01-22T15:27:29.000Z | 2021-04-28T09:23:28.000Z | #!/usr/bin/env python
"""
This module provides Dataset.List data access object.
Lists dataset_parent and output configuration parameters too.
"""
from types import GeneratorType
from WMCore.Database.DBFormatter import DBFormatter
from dbs.utils.dbsExceptionHandler import dbsExceptionHandler
from dbs.utils.DBSTransformI... | 52.737705 | 158 | 0.592788 | 1,960 | 16,085 | 4.567347 | 0.12551 | 0.042225 | 0.047475 | 0.013405 | 0.364611 | 0.311104 | 0.27357 | 0.228217 | 0.211573 | 0.211573 | 0 | 0.005108 | 0.30631 | 16,085 | 304 | 159 | 52.911184 | 0.797186 | 0.029095 | 0 | 0.187755 | 0 | 0 | 0.226103 | 0.046573 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008163 | 0.02449 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
437a65350cbef526119c5cb939017acaa5ec6dc3 | 23,382 | py | Python | api_v1/api_patient.py | China-jp/leancloud-medical | 18b3cdf6474cf8c667c546a898285318c92d2df9 | [
"MIT"
] | null | null | null | api_v1/api_patient.py | China-jp/leancloud-medical | 18b3cdf6474cf8c667c546a898285318c92d2df9 | [
"MIT"
] | null | null | null | api_v1/api_patient.py | China-jp/leancloud-medical | 18b3cdf6474cf8c667c546a898285318c92d2df9 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from leancloud.errors import LeanCloudError
from leancloud.query import Query
from api_v1.swagger_models.comment import PatientMedicalCommentFields
from api_v1.swagger_models.medical import ProcessesFields, ProcessFields
from api_v1.swagger_models.patient import PatientInfoFields, PatientMedical... | 39.765306 | 143 | 0.603584 | 2,320 | 23,382 | 5.841379 | 0.114655 | 0.132231 | 0.047226 | 0.027155 | 0.520218 | 0.457349 | 0.40459 | 0.374779 | 0.322904 | 0.264537 | 0 | 0.008251 | 0.289881 | 23,382 | 587 | 144 | 39.833049 | 0.807938 | 0.052434 | 0 | 0.48046 | 0 | 0 | 0.12202 | 0.022831 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009195 | 0.032184 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
437cc46943f9c75c8feaab28f935d814a888de8d | 154 | py | Python | LCM.py | amanmishra2391/MathswithPython | 9578c2bc4bcfd22af785865c10884b896648a170 | [
"MIT"
] | 1 | 2020-01-12T17:10:02.000Z | 2020-01-12T17:10:02.000Z | LCM.py | amanmishra2391/MathswithPython | 9578c2bc4bcfd22af785865c10884b896648a170 | [
"MIT"
] | null | null | null | LCM.py | amanmishra2391/MathswithPython | 9578c2bc4bcfd22af785865c10884b896648a170 | [
"MIT"
] | null | null | null | def LCM(x,y):
c=1
a=2
while (x!=1 or y!=1):
if x%a==0 or y%a==0:
c=c*a
if x%a==0:
x=x/a
if y%a==0:
y=y/a
else:
a=a+1
return c
| 11 | 22 | 0.428571 | 45 | 154 | 1.466667 | 0.311111 | 0.121212 | 0.121212 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087379 | 0.331169 | 154 | 13 | 23 | 11.846154 | 0.553398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
438d5ef9187a2911de6e9242811aaab162fe2f72 | 5,314 | py | Python | scripts/main.py | GeorgePap-719/Python_VLSI | d3d6e71e0a4e54571a8fa4b9ecbc2ffd48444f66 | [
"MIT"
] | 1 | 2021-06-14T17:35:44.000Z | 2021-06-14T17:35:44.000Z | scripts/main.py | GeorgePap-719/Python_VLSI | d3d6e71e0a4e54571a8fa4b9ecbc2ffd48444f66 | [
"MIT"
] | 1 | 2021-06-19T08:59:15.000Z | 2021-06-19T08:59:15.000Z | scripts/main.py | GeorgePap-719/Python_VLSI | d3d6e71e0a4e54571a8fa4b9ecbc2ffd48444f66 | [
"MIT"
] | 1 | 2021-06-14T17:35:46.000Z | 2021-06-14T17:35:46.000Z | import copy
from scripts import functions
from scripts.classes.Net import total_calculate_net_wirelength
from scripts.part1.Legalization import legalizing_tetris_like_algo, lr_legalizing_tetris_like_algo
from scripts.part1.Model import modeling
from scripts.part1.Overlaps import count_overlaps_in_row_list
from scripts... | 38.507246 | 115 | 0.731464 | 692 | 5,314 | 5.174855 | 0.160405 | 0.054733 | 0.046914 | 0.067858 | 0.477241 | 0.352136 | 0.296286 | 0.272829 | 0.201899 | 0.135158 | 0 | 0.006803 | 0.197779 | 5,314 | 138 | 116 | 38.507246 | 0.833216 | 0.192134 | 0 | 0.134146 | 0 | 0 | 0.126025 | 0.005388 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097561 | 0 | 0.097561 | 0.47561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
4394f1c910ef134b07ac7ea28f507c4ad0cbcfd4 | 2,115 | py | Python | LPTools/LPTools.py | alex-tu-cc/launchpad-tools | 54aee1d025157c9005888aa27f308ff7ec14783b | [
"MIT"
] | 1 | 2020-05-15T09:25:22.000Z | 2020-05-15T09:25:22.000Z | LPTools/LPTools.py | alex-tu-cc/launchpad-tools | 54aee1d025157c9005888aa27f308ff7ec14783b | [
"MIT"
] | null | null | null | LPTools/LPTools.py | alex-tu-cc/launchpad-tools | 54aee1d025157c9005888aa27f308ff7ec14783b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from launchpadlib.launchpad import Launchpad
import logging
import os
class LPTools(object):
"""Docstring for MyClass. """
# base url, refer to https://launchpad.net/+apidoc/1.0.html
base_url = "https://api.launchpad.net/1.0/"
bug_base_url = base_url+"bug... | 35.847458 | 73 | 0.614657 | 239 | 2,115 | 5.280335 | 0.414226 | 0.033281 | 0.057052 | 0.057052 | 0.0729 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003942 | 0.280378 | 2,115 | 58 | 74 | 36.465517 | 0.82523 | 0.104019 | 0 | 0.093023 | 0 | 0 | 0.087119 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.116279 | false | 0 | 0.069767 | 0.023256 | 0.44186 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4395191dfed1893cb60d9dcee032d38f557e0d1b | 1,964 | py | Python | atomsciflow/qe/pwscf.py | DeqiTang/build-test-atomsciflow | 6fb65c79e74993e2100fbbca31b910d495076805 | [
"MIT"
] | 1 | 2022-01-25T01:44:32.000Z | 2022-01-25T01:44:32.000Z | atomsciflow/qe/pwscf.py | DeqiTang/build-test-atomsciflow | 6fb65c79e74993e2100fbbca31b910d495076805 | [
"MIT"
] | null | null | null | atomsciflow/qe/pwscf.py | DeqiTang/build-test-atomsciflow | 6fb65c79e74993e2100fbbca31b910d495076805 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2021 Deqi Tang
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, merge, publish, dis... | 35.709091 | 78 | 0.726069 | 281 | 1,964 | 4.935943 | 0.487544 | 0.063446 | 0.043259 | 0.068493 | 0.137707 | 0.137707 | 0.083634 | 0.083634 | 0.083634 | 0.083634 | 0 | 0.008202 | 0.192974 | 1,964 | 54 | 79 | 36.37037 | 0.866877 | 0.542261 | 0 | 0.5 | 0 | 0 | 0.12009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
439590b413d299a22d8f707d63714bb13779fdd1 | 437 | py | Python | setup.py | VGGVRobotics/doper | d0ebb9bc8ad9c326deac0b457769d04a92066f11 | [
"MIT"
] | 1 | 2020-11-05T10:11:31.000Z | 2020-11-05T10:11:31.000Z | setup.py | VGGVRobotics/doper | d0ebb9bc8ad9c326deac0b457769d04a92066f11 | [
"MIT"
] | null | null | null | setup.py | VGGVRobotics/doper | d0ebb9bc8ad9c326deac0b457769d04a92066f11 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="doper",
version="0.0.1",
description="End-to-end learning with differentiable dynamics",
packages=find_packages(),
python_requires=">=3.6",
install_requires=[
"torch==1.4.0",
"numpy==1.18.1",
"jax==0.1.68",
... | 20.809524 | 67 | 0.546911 | 53 | 437 | 4.433962 | 0.660377 | 0.025532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072555 | 0.2746 | 437 | 20 | 68 | 21.85 | 0.66877 | 0 | 0 | 0 | 0 | 0 | 0.350114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
439ce9a1e690eae9d7667e242531e46b9f76cb34 | 1,848 | py | Python | map_size_trials/evolve_player_parallel.py | ckinvents/neat-python-sokoban | 325ce3d690f7ad1038144401985980fc600db461 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | map_size_trials/evolve_player_parallel.py | ckinvents/neat-python-sokoban | 325ce3d690f7ad1038144401985980fc600db461 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | map_size_trials/evolve_player_parallel.py | ckinvents/neat-python-sokoban | 325ce3d690f7ad1038144401985980fc600db461 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | ##
# @file evolve_player_parallel.py
# @brief Module for evolving NEAT Sokoban player.
# @author Connor Ennis
# @version 12-27-17
#
import os
import neat
import visualize
import sokoban
from time import time
test_maps = sokoban.map_getter("test_maps")
def main(config_file):
# Get initial time.
start_tim... | 30.295082 | 118 | 0.688853 | 241 | 1,848 | 5.124481 | 0.460581 | 0.032389 | 0.021053 | 0.02915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012162 | 0.199134 | 1,848 | 60 | 119 | 30.8 | 0.822297 | 0.270022 | 0 | 0 | 0 | 0 | 0.05497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
439d6c754bc1c9febb9b760d5e9d508b77872431 | 5,313 | py | Python | tests/test_factory_fixtures.py | theY4Kman/pytest-factoryboy | 37e46da05ca781b0034c84875c7cef08348abf58 | [
"MIT"
] | null | null | null | tests/test_factory_fixtures.py | theY4Kman/pytest-factoryboy | 37e46da05ca781b0034c84875c7cef08348abf58 | [
"MIT"
] | null | null | null | tests/test_factory_fixtures.py | theY4Kman/pytest-factoryboy | 37e46da05ca781b0034c84875c7cef08348abf58 | [
"MIT"
] | null | null | null | """Factory fixtures tests."""
import factory
from factory import fuzzy
import pytest
from pytest_factoryboy import register, LazyFixture
class User(object):
"""User account."""
def __init__(self, username, password, is_active):
self.username = username
self.password = password
self.... | 27.528497 | 106 | 0.694335 | 640 | 5,313 | 5.5875 | 0.184375 | 0.047539 | 0.052852 | 0.022371 | 0.28132 | 0.180928 | 0.129195 | 0.129195 | 0.107942 | 0.082215 | 0 | 0.008107 | 0.187465 | 5,313 | 192 | 107 | 27.671875 | 0.820246 | 0.161867 | 0 | 0.093458 | 0 | 0 | 0.127277 | 0.026516 | 0 | 0 | 0 | 0 | 0.252336 | 1 | 0.140187 | false | 0.056075 | 0.037383 | 0 | 0.383178 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
439f9a7607e0f1aa822296f709f84889c55f165c | 423 | py | Python | src/outpost/django/research/conf.py | medunigraz/outpost.django.research | 4336835663b9e1a8984c08ca709860ead8791d32 | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/research/conf.py | medunigraz/outpost.django.research | 4336835663b9e1a8984c08ca709860ead8791d32 | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/research/conf.py | medunigraz/outpost.django.research | 4336835663b9e1a8984c08ca709860ead8791d32 | [
"BSD-2-Clause"
] | null | null | null | from appconf import AppConf
from django.conf import settings
class ResearchAppConf(AppConf):
DB_MAP = {}
PUBMED_URL = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils"
PUBMED_TIMEOUT = 5
PUBMED_CHUNK_SIZE = 20
PUBMED_AUTHOR_TOKEN = "[Author]"
PUBMED_PDAT_TOKEN = "[PDAT]"
PUBMED_XPATH_PUBMEDA... | 26.4375 | 81 | 0.718676 | 49 | 423 | 5.959184 | 0.673469 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008721 | 0.186761 | 423 | 15 | 82 | 28.2 | 0.840116 | 0 | 0 | 0 | 0 | 0 | 0.229314 | 0.070922 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
43a7bbf803f135230b0b2527312c0076db0391d7 | 8,061 | py | Python | nova/scheduler/filters/vcpu_model_filter.py | austinsun/stx-nova | 2556ad28eb44a6916922ad2b489ac610db2ffeb5 | [
"Apache-2.0"
] | null | null | null | nova/scheduler/filters/vcpu_model_filter.py | austinsun/stx-nova | 2556ad28eb44a6916922ad2b489ac610db2ffeb5 | [
"Apache-2.0"
] | null | null | null | nova/scheduler/filters/vcpu_model_filter.py | austinsun/stx-nova | 2556ad28eb44a6916922ad2b489ac610db2ffeb5 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2013-2017 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
"""Scheduler filter "VCpuModelFilter", host_passes() returns True when the host
CPU model is newer than or equal to the guest CPU model as specified in the
instance type.
The CPU models considered are currently limited to a... | 41.984375 | 80 | 0.570029 | 974 | 8,061 | 4.536961 | 0.198152 | 0.057026 | 0.02444 | 0.020367 | 0.406427 | 0.367278 | 0.345327 | 0.300294 | 0.239647 | 0.230821 | 0 | 0.003153 | 0.3311 | 8,061 | 191 | 81 | 42.204188 | 0.816395 | 0.160278 | 0 | 0.532847 | 0 | 0 | 0.20024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043796 | false | 0.087591 | 0.051095 | 0 | 0.233577 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43ae232a54e0391c78685c704dcf6515652abbe2 | 1,094 | py | Python | mphelp/src/XMLHelp.py | builder08/enigma2-plugins | 45583c69b807ce26d756a51973c81d877afe3694 | [
"OLDAP-2.3"
] | null | null | null | mphelp/src/XMLHelp.py | builder08/enigma2-plugins | 45583c69b807ce26d756a51973c81d877afe3694 | [
"OLDAP-2.3"
] | null | null | null | mphelp/src/XMLHelp.py | builder08/enigma2-plugins | 45583c69b807ce26d756a51973c81d877afe3694 | [
"OLDAP-2.3"
] | null | null | null | from __future__ import absolute_import
# for localized messages
from . import _
from .MPHelp import HelpPage
from xml.etree.cElementTree import parse as cet_parse
class XMLHelpPage(HelpPage):
def __init__(self, node):
# calling HelpPage.__init__ is not required
self.node = node
def getText(self):
node = sel... | 26.047619 | 71 | 0.690128 | 151 | 1,094 | 4.728477 | 0.496689 | 0.056022 | 0.030812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003352 | 0.181901 | 1,094 | 41 | 72 | 26.682927 | 0.794413 | 0.13894 | 0 | 0 | 0 | 0 | 0.077908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.133333 | 0.033333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
43ae6a3738a3672bd13e6929085e3adf5b9dd708 | 7,237 | py | Python | estimation/lm.py | rala8730/python-data-science | f28131f7d0af4c9de202e4a322cd758b85f534e0 | [
"MIT"
] | null | null | null | estimation/lm.py | rala8730/python-data-science | f28131f7d0af4c9de202e4a322cd758b85f534e0 | [
"MIT"
] | null | null | null | estimation/lm.py | rala8730/python-data-science | f28131f7d0af4c9de202e4a322cd758b85f534e0 | [
"MIT"
] | null | null | null | from math import log, exp
from collections import defaultdict, Counter
from zipfile import ZipFile
import re
kNEG_INF = -1e6
kSTART = "<s>"
kEND = "</s>"
kWORDS = re.compile("[a-z]{1,}")
kREP = set(["Bush", "GWBush", "Eisenhower", "Ford", "Nixon", "Reagan"])
kDEM = set(["Carter", "Clinton", "Truman", "Johnson", "Ken... | 30.029046 | 91 | 0.557966 | 885 | 7,237 | 4.465537 | 0.297175 | 0.031883 | 0.015182 | 0.015182 | 0.118168 | 0.097925 | 0.097925 | 0.092358 | 0.067308 | 0.067308 | 0 | 0.006328 | 0.344894 | 7,237 | 240 | 92 | 30.154167 | 0.827252 | 0.287412 | 0 | 0.156522 | 0 | 0 | 0.084217 | 0.019131 | 0 | 0 | 0 | 0.016667 | 0.043478 | 1 | 0.130435 | false | 0 | 0.034783 | 0.008696 | 0.234783 | 0.034783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43b1bff6126eecfcf23a5b1fe49c5ad3ee96dcc9 | 385 | py | Python | python/src/pythonmodeling.py | alyupa/multiphase-flow-modeling | 9ff815eb6ca632395ea57d6b8a49a183145980c3 | [
"MIT"
] | 3 | 2018-09-13T12:41:49.000Z | 2021-02-24T02:09:07.000Z | python/src/pythonmodeling.py | alyupa/multiphase-flow-modeling | 9ff815eb6ca632395ea57d6b8a49a183145980c3 | [
"MIT"
] | null | null | null | python/src/pythonmodeling.py | alyupa/multiphase-flow-modeling | 9ff815eb6ca632395ea57d6b8a49a183145980c3 | [
"MIT"
] | null | null | null | # To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
__author__ = "naska"
__date__ = "$Jan 20, 2018 3:43:59 PM$"
from two_phase_1d import*
from two_phase_pinder import*
if __name__ == "__main__":... | 29.615385 | 78 | 0.758442 | 58 | 385 | 4.568966 | 0.689655 | 0.120755 | 0.090566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037152 | 0.161039 | 385 | 13 | 79 | 29.615385 | 0.783282 | 0.522078 | 0 | 0 | 0 | 0 | 0.211111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
43c464d41d765c075834b9ee80005a6010f62af7 | 1,340 | py | Python | kmc/run_kmc.py | caneparesearch/NASICON_KMC_paper_data | 67c1c150db9d39d29e276d02dc0bdf8762649848 | [
"MIT"
] | null | null | null | kmc/run_kmc.py | caneparesearch/NASICON_KMC_paper_data | 67c1c150db9d39d29e276d02dc0bdf8762649848 | [
"MIT"
] | null | null | null | kmc/run_kmc.py | caneparesearch/NASICON_KMC_paper_data | 67c1c150db9d39d29e276d02dc0bdf8762649848 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
This code is used to run KMC
Author: Zeyu Deng
Email: dengzeyu@gmail.com
run this as:
python run_kmc.py comp structure_index T
"""
import sys
sys.path.append('../lib')
from kmc import KMC
import pandas as pd
v = 0.5*10**13
#extreme senerio -> 15*10**13
equ_pass= 1
kmc_pass = 3000
supercell_... | 28.510638 | 139 | 0.707463 | 218 | 1,340 | 4.133028 | 0.43578 | 0.09323 | 0.059933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034874 | 0.14403 | 1,340 | 46 | 140 | 29.130435 | 0.750654 | 0.230597 | 0 | 0 | 0 | 0 | 0.186024 | 0.120079 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.115385 | 0.115385 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43c6e5df94bf862d824bdf8ee14cd6cbd8c39676 | 3,479 | py | Python | sdk/python/bin/build/lib/pulumi_ecl/dns/record_set.py | keiichi-hikita/pulumi-ecl | 8863968ba70884258c6c7d5f4caf35898673f938 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/bin/build/lib/pulumi_ecl/dns/record_set.py | keiichi-hikita/pulumi-ecl | 8863968ba70884258c6c7d5f4caf35898673f938 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/bin/build/lib/pulumi_ecl/dns/record_set.py | keiichi-hikita/pulumi-ecl | 8863968ba70884258c6c7d5f4caf35898673f938 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-09T17:15:26.000Z | 2021-09-09T17:15:26.000Z | # 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 .. import utilities, tables
class RecordSet(pulumi.CustomResource... | 35.141414 | 160 | 0.63524 | 424 | 3,479 | 4.959906 | 0.273585 | 0.068474 | 0.071327 | 0.045174 | 0.332382 | 0.271992 | 0.236329 | 0.086543 | 0.054208 | 0.054208 | 0 | 0.000789 | 0.271342 | 3,479 | 98 | 161 | 35.5 | 0.828797 | 0.228514 | 0 | 0 | 1 | 0 | 0.193405 | 0.012032 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.102041 | 0.040816 | 0.346939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43c88997c415bd75d9a2ddb7698d2ae4fe01bdec | 1,591 | py | Python | ex/parser/scanner_command_write_and_quit_all.py | my-personal-forks/Vintageous | 797ec8f1b0ef12d045949dc19850ba34a4f1c557 | [
"MIT"
] | 1,146 | 2015-01-05T02:23:09.000Z | 2022-03-23T07:22:50.000Z | ex/parser/scanner_command_write_and_quit_all.py | my-personal-forks/Vintageous | 797ec8f1b0ef12d045949dc19850ba34a4f1c557 | [
"MIT"
] | 315 | 2015-01-03T12:42:12.000Z | 2020-09-24T20:01:47.000Z | ex/parser/scanner_command_write_and_quit_all.py | my-personal-forks/Vintageous | 797ec8f1b0ef12d045949dc19850ba34a4f1c557 | [
"MIT"
] | 138 | 2015-01-04T17:54:46.000Z | 2021-02-26T14:56:09.000Z | from .state import EOF
from .tokens import TokenEof
from .tokens_base import TOKEN_COMMAND_WRITE_AND_QUIT_ALL
from .tokens_base import TokenOfCommand
from Vintageous import ex
from Vintageous.ex.ex_error import ERR_INVALID_ARGUMENT
from Vintageous.ex.ex_error import VimError
plus_plus_translations = {
'ff': 'fil... | 27.431034 | 103 | 0.616593 | 182 | 1,591 | 5.159341 | 0.489011 | 0.034079 | 0.051118 | 0.063898 | 0.142705 | 0.119276 | 0 | 0 | 0 | 0 | 0 | 0.00082 | 0.233187 | 1,591 | 57 | 104 | 27.912281 | 0.768852 | 0.062854 | 0 | 0.069767 | 0 | 0.023256 | 0.121722 | 0.069939 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.069767 | false | 0 | 0.162791 | 0.023256 | 0.302326 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43cacc6e503eb37923c3e0a1bb45d7bca382d63d | 8,529 | py | Python | rs-benchmark.py | gercograndia/redshift-benchmarking | 64d4882482dd4f4cb70a8daa37b7c1e5b02c0253 | [
"MIT"
] | null | null | null | rs-benchmark.py | gercograndia/redshift-benchmarking | 64d4882482dd4f4cb70a8daa37b7c1e5b02c0253 | [
"MIT"
] | null | null | null | rs-benchmark.py | gercograndia/redshift-benchmarking | 64d4882482dd4f4cb70a8daa37b7c1e5b02c0253 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
import logging
import click
import psycopg2
import string
import pandas as pd
from time import time
from datetime import datetime
from getpass import getpass
from random import seed, choice, random, randint
logger = None
password = None
table_name = "_rs_benchmarking"
def... | 33.05814 | 180 | 0.57369 | 1,097 | 8,529 | 4.291705 | 0.23701 | 0.018054 | 0.035684 | 0.024214 | 0.34537 | 0.278675 | 0.232795 | 0.216653 | 0.192863 | 0.175446 | 0 | 0.013532 | 0.306836 | 8,529 | 257 | 181 | 33.18677 | 0.782815 | 0.061555 | 0 | 0.311321 | 0 | 0.018868 | 0.299342 | 0.01801 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033019 | false | 0.051887 | 0.051887 | 0 | 0.103774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
43cc0fa36fad3e5c651a5b0598c3ecbf5dc15eef | 6,713 | py | Python | calvin/Tools/cscompiler.py | josrolgil/exjobbCalvin | 976459eaa50246586360c049b9880d753623d574 | [
"Apache-2.0"
] | 1 | 2016-05-10T22:36:31.000Z | 2016-05-10T22:36:31.000Z | calvin/Tools/cscompiler.py | josrolgil/exjobbCalvin | 976459eaa50246586360c049b9880d753623d574 | [
"Apache-2.0"
] | null | null | null | calvin/Tools/cscompiler.py | josrolgil/exjobbCalvin | 976459eaa50246586360c049b9880d753623d574 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Ericsson AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 41.695652 | 105 | 0.646358 | 839 | 6,713 | 5.061979 | 0.321812 | 0.039557 | 0.039557 | 0.021191 | 0.105486 | 0.091359 | 0.061691 | 0.048505 | 0.048505 | 0.048505 | 0 | 0.00515 | 0.247877 | 6,713 | 160 | 106 | 41.95625 | 0.836007 | 0.231938 | 0 | 0.067961 | 0 | 0 | 0.194103 | 0 | 0 | 0 | 0 | 0.00625 | 0 | 0 | null | null | 0.009709 | 0.087379 | null | null | 0.019417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43cd760034555557b8c83601da776a2526a90e26 | 2,564 | py | Python | TEST_2b/Analysis/Histogram_y1_y2.py | dmalagarriga/PLoS_2015_segregation | 949afedf96945c11ee84b1a6c9842e5257fb5be8 | [
"MIT"
] | 1 | 2020-10-28T08:49:49.000Z | 2020-10-28T08:49:49.000Z | TEST_2b/Analysis/Histogram_y1_y2.py | dmalagarriga/PLoS_2015_segregation | 949afedf96945c11ee84b1a6c9842e5257fb5be8 | [
"MIT"
] | null | null | null | TEST_2b/Analysis/Histogram_y1_y2.py | dmalagarriga/PLoS_2015_segregation | 949afedf96945c11ee84b1a6c9842e5257fb5be8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import matplotlib
matplotlib.use('Agg')
import networkx as nx
import matplotlib.pyplot as plt
import pylab
import os
import numpy as np
from matplotlib import rc
import matplotlib.mlab as mlab
import spectrum
#rc('font',**{'family':'sans-serif','size':18,'sans-serif':['Helvetica']})
#rc('text', uset... | 27.569892 | 135 | 0.690718 | 434 | 2,564 | 4 | 0.389401 | 0.016129 | 0.029954 | 0.034562 | 0.163594 | 0.147465 | 0.119816 | 0.103111 | 0.082949 | 0.041475 | 0 | 0.068417 | 0.093604 | 2,564 | 92 | 136 | 27.869565 | 0.678571 | 0.201248 | 0 | 0 | 0 | 0 | 0.163978 | 0.100538 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.169811 | null | null | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43d272ea8bacc0c87f9df5c4dc6062a7075ad1f4 | 263 | py | Python | Iniciante/1182 - Coluna na Matriz.py | PedroTejon/Beecrowd-Online-Judge-URI- | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | 2 | 2021-12-14T01:40:54.000Z | 2021-12-24T22:33:22.000Z | Iniciante/1182 - Coluna na Matriz.py | PedroTejon/Beecrowd-Online-Judge-URI | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | null | null | null | Iniciante/1182 - Coluna na Matriz.py | PedroTejon/Beecrowd-Online-Judge-URI | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | null | null | null | coluna = int(input())
operador = input()
numeros = [[float(input()) for _ in range(12)] for _ in range(12)]
if operador == 'S':
print(f'{sum([linha[coluna] for linha in numeros]):.1f}')
else:
print(f'{sum([linha[coluna] for linha in numeros]) / 12:.1f}') | 32.875 | 66 | 0.627376 | 41 | 263 | 3.97561 | 0.439024 | 0.06135 | 0.122699 | 0.147239 | 0.453988 | 0.453988 | 0.453988 | 0.453988 | 0.453988 | 0 | 0 | 0.036199 | 0.159696 | 263 | 8 | 67 | 32.875 | 0.701357 | 0 | 0 | 0 | 0 | 0 | 0.378788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43d686a7db437b123da76257f47132f5f14a358d | 211 | py | Python | scripts/get_data.py | edran/SDP-ROS-workspace | a8857ca8809132c535afb85b94c623d4d449b7a3 | [
"MIT"
] | null | null | null | scripts/get_data.py | edran/SDP-ROS-workspace | a8857ca8809132c535afb85b94c623d4d449b7a3 | [
"MIT"
] | null | null | null | scripts/get_data.py | edran/SDP-ROS-workspace | a8857ca8809132c535afb85b94c623d4d449b7a3 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import rospy
from ros_sdp.sdp_subscriber import SDPSubscriber
def main():
rospy.init_node("ros_sdp_sub")
sub = SDPSubscriber()
rospy.spin()
if __name__ == "__main__":
main()
| 16.230769 | 48 | 0.691943 | 28 | 211 | 4.75 | 0.642857 | 0.090226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180095 | 211 | 12 | 49 | 17.583333 | 0.768786 | 0.075829 | 0 | 0 | 0 | 0 | 0.097938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.