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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
76e2f24d43b42e303e303c0fa28ad6c2ad519a5e | 6,172 | py | Python | data/money_heist.py | yogeshwaran01/web-series-quotes | 17ead6948f77ca07bf7c85f16e37854b7d355538 | [
"MIT"
] | 12 | 2020-11-20T04:02:12.000Z | 2022-01-29T03:10:38.000Z | data/money_heist.py | yogeshwaran01/web-series-quotes | 17ead6948f77ca07bf7c85f16e37854b7d355538 | [
"MIT"
] | 1 | 2021-09-04T00:36:58.000Z | 2021-09-05T03:10:21.000Z | data/money_heist.py | yogeshwaran01/web-series-quotes | 17ead6948f77ca07bf7c85f16e37854b7d355538 | [
"MIT"
] | 1 | 2021-08-10T08:56:24.000Z | 2021-08-10T08:56:24.000Z | MONEY_HEIST_QUOTES = [
{
"id": 1,
"author": "Tokyo",
"quote": "In the end, love is a good reason for everything to fall apart.",
},
{
"id": 2,
"author": "Tokyo",
"quote": "Have you ever thought that if you could go back in time, you might still make the same d... | 39.819355 | 284 | 0.57453 | 881 | 6,172 | 4.026107 | 0.396141 | 0.034113 | 0.049619 | 0.00733 | 0.020863 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013274 | 0.304277 | 6,172 | 154 | 285 | 40.077922 | 0.812063 | 0 | 0 | 0.188312 | 0 | 0.11039 | 0.691186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019481 | 0 | 0.019481 | 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 |
76e3e14ac96f53a9d5887ccbf1133c06da87af94 | 1,154 | py | Python | bin/paste.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | 4 | 2020-07-10T20:16:13.000Z | 2022-02-16T02:11:20.000Z | bin/paste.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | null | null | null | bin/paste.py | pelavarre/pybashish | 03f74356fb0a2a0ef7106f09c059fd9b375ce89a | [
"CNRI-Python"
] | 2 | 2020-06-24T20:37:36.000Z | 2020-07-10T20:16:17.000Z | #!/usr/bin/env python3
"""
usage: paste.py [-h] [FILE ...]
copy each file into place as a column
positional arguments:
FILE a file to copy (default: stdin)
options:
-h, --help show this help message and exit
quirks:
no implementation
unsurprising quirks:
prompts for stdin, like mac bash "grep -R .... | 23.55102 | 86 | 0.686308 | 178 | 1,154 | 4.410112 | 0.578652 | 0.011465 | 0.053503 | 0.04586 | 0.063694 | 0.063694 | 0 | 0 | 0 | 0 | 0 | 0.005342 | 0.188908 | 1,154 | 48 | 87 | 24.041667 | 0.830128 | 0.722704 | 0 | 0 | 0 | 0 | 0.153094 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 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 |
76faf97796f962b66b904a9735ff7a3569383547 | 274 | py | Python | code_uncensor/ME.py | alexmill/covid19demographics-fall | b53708883a0c091f7e4eaef3d270153d88fe11f9 | [
"MIT"
] | null | null | null | code_uncensor/ME.py | alexmill/covid19demographics-fall | b53708883a0c091f7e4eaef3d270153d88fe11f9 | [
"MIT"
] | null | null | null | code_uncensor/ME.py | alexmill/covid19demographics-fall | b53708883a0c091f7e4eaef3d270153d88fe11f9 | [
"MIT"
] | 2 | 2020-09-24T01:01:11.000Z | 2020-10-06T19:17:43.000Z | import numpy as np
from util import *
def run():
all_age_ranges = [[(0, 19), (20, 29), (30, 39), (40, 49), (50, 59), (60, 69), (70, 79), (80, MAX_AGE)]]
return all_age_ranges
if __name__ == '__main__':
all_age_ranges = run()
run_state('ME', all_age_ranges) | 27.4 | 107 | 0.60219 | 46 | 274 | 3.195652 | 0.717391 | 0.163265 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133028 | 0.20438 | 274 | 10 | 108 | 27.4 | 0.541284 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
76fde66c019fef3a04621fb6f5ef5a70cea52108 | 1,550 | py | Python | python_modules/dagster/dagster_tests/core_tests/types_tests/test_runtime_types.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/types_tests/test_runtime_types.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/types_tests/test_runtime_types.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | from dagster import List, Nullable, Int, PipelineDefinition
from dagster.core.types.runtime import resolve_to_runtime_type, ALL_RUNTIME_BUILTINS
def inner_type_key_set(runtime_type):
return {t.key for t in runtime_type.inner_types}
def test_inner_types():
assert resolve_to_runtime_type(Int).inner_types == ... | 38.75 | 88 | 0.772903 | 223 | 1,550 | 4.919283 | 0.156951 | 0.127621 | 0.131267 | 0.164084 | 0.53783 | 0.492252 | 0.409298 | 0.346399 | 0.311759 | 0.311759 | 0 | 0 | 0.125161 | 1,550 | 39 | 89 | 39.74359 | 0.808997 | 0 | 0 | 0.230769 | 0 | 0 | 0.047097 | 0.014839 | 0 | 0 | 0 | 0 | 0.384615 | 1 | 0.153846 | false | 0 | 0.076923 | 0.038462 | 0.269231 | 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 |
0a028566d02a0a4f615d09bcb31e3cb9ccb58d89 | 2,149 | py | Python | Projects/Random_Option_Chooser.py | UsmanAhmadSaeed/Python | a28f9ef28b6d7a1558b02b89d9da9cd5e964270e | [
"MIT"
] | 12 | 2021-01-18T16:22:27.000Z | 2021-11-30T04:38:27.000Z | Projects/Random_Option_Chooser.py | UsmanAhmadSaeed/Python | a28f9ef28b6d7a1558b02b89d9da9cd5e964270e | [
"MIT"
] | 31 | 2021-03-02T16:33:16.000Z | 2022-03-30T04:01:15.000Z | Projects/Random_Option_Chooser.py | UsmanAhmadSaeed/Python | a28f9ef28b6d7a1558b02b89d9da9cd5e964270e | [
"MIT"
] | 31 | 2021-03-02T14:26:17.000Z | 2022-01-30T16:51:08.000Z | #Python Code Random Option Chooser
#imported random module
import random
print("Hello...! This is random option chooser program. ")
#define a empty list to store options
options = []
#variable for run the infinite while loop
inf=0
#start the while loop
while inf==0:
print("\nChoose a number to continue.")
... | 36.423729 | 335 | 0.635644 | 334 | 2,149 | 4.08982 | 0.365269 | 0.052709 | 0.038067 | 0.041728 | 0.040996 | 0.040996 | 0 | 0 | 0 | 0 | 0 | 0.014772 | 0.275477 | 2,149 | 58 | 336 | 37.051724 | 0.862556 | 0.168916 | 0 | 0.147059 | 0 | 0.088235 | 0.604167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0.264706 | 0 | 0 | 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 |
0a0737fc7ca1d67fc2d2d5b70463c08f1f1fbb5b | 10,573 | py | Python | tests/test_packages/test_protocols/test_http.py | bryanchriswhite/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 126 | 2019-09-07T09:32:44.000Z | 2022-03-29T14:28:41.000Z | tests/test_packages/test_protocols/test_http.py | salman6049/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 1,814 | 2019-08-24T10:08:07.000Z | 2022-03-31T14:28:36.000Z | tests/test_packages/test_protocols/test_http.py | salman6049/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 46 | 2019-09-03T22:13:58.000Z | 2022-03-22T01:25:16.000Z | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | 33.144201 | 91 | 0.663104 | 1,174 | 10,573 | 5.777683 | 0.187394 | 0.033024 | 0.025947 | 0.010615 | 0.716497 | 0.6848 | 0.674775 | 0.661507 | 0.656642 | 0.640425 | 0 | 0.002236 | 0.238721 | 10,573 | 318 | 92 | 33.248428 | 0.840477 | 0.24695 | 0 | 0.614213 | 0 | 0 | 0.066429 | 0 | 0 | 0 | 0 | 0 | 0.086294 | 1 | 0.076142 | false | 0 | 0.076142 | 0 | 0.187817 | 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 |
0a0bf294ad393871905bde84af5a89f97f3ef06c | 13,293 | py | Python | test/unit/momentum.py | ehpc/ta | 185538e138b2901a7677cb8d20b016a40f861ce3 | [
"MIT"
] | null | null | null | test/unit/momentum.py | ehpc/ta | 185538e138b2901a7677cb8d20b016a40f861ce3 | [
"MIT"
] | null | null | null | test/unit/momentum.py | ehpc/ta | 185538e138b2901a7677cb8d20b016a40f861ce3 | [
"MIT"
] | null | null | null | import unittest
import pandas as pd
from ta.momentum import (
KAMAIndicator,
PercentagePriceOscillator,
PercentageVolumeOscillator,
ROCIndicator,
RSIIndicator,
StochasticOscillator,
StochRSIIndicator,
TSIIndicator,
UltimateOscillator,
WilliamsRIndicator,
kama,
ppo,
p... | 27.926471 | 108 | 0.604679 | 1,493 | 13,293 | 5.1286 | 0.122572 | 0.023508 | 0.05877 | 0.082278 | 0.706804 | 0.651691 | 0.6274 | 0.620609 | 0.620609 | 0.620609 | 0 | 0.009274 | 0.269917 | 13,293 | 475 | 109 | 27.985263 | 0.779701 | 0.087114 | 0 | 0.51532 | 0 | 0 | 0.04427 | 0.007852 | 0 | 0 | 0 | 0 | 0.083565 | 1 | 0.139276 | false | 0 | 0.008357 | 0 | 0.203343 | 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 |
0a1c8afc6f9db9916f90da976605e508da76b3a9 | 1,405 | py | Python | userbot/plugins/install_ext_module.py | Lapnl/lapanbot | db95d4654d249fac93c8e4c7483c2f86a477f9e9 | [
"MIT"
] | null | null | null | userbot/plugins/install_ext_module.py | Lapnl/lapanbot | db95d4654d249fac93c8e4c7483c2f86a477f9e9 | [
"MIT"
] | null | null | null | userbot/plugins/install_ext_module.py | Lapnl/lapanbot | db95d4654d249fac93c8e4c7483c2f86a477f9e9 | [
"MIT"
] | null | null | null | from userbot import bot
from telethon import events
from telethon import functions, types
from telethon.tl.types import InputMessagesFilterDocument
from userbot.utils import command, remove_plugin, load_module
from var import Var
from pathlib import Path
from userbot import LOAD_PLUG
import sys
import asyncio
import tr... | 40.142857 | 160 | 0.733808 | 186 | 1,405 | 5.397849 | 0.462366 | 0.069721 | 0.089641 | 0.043825 | 0.185259 | 0.13745 | 0.13745 | 0 | 0 | 0 | 0 | 0.002597 | 0.177936 | 1,405 | 34 | 161 | 41.323529 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.084698 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.424242 | 0 | 0.454545 | 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 |
0a1f5992f503e31348ff20492a09a4b5ecd02f16 | 4,492 | py | Python | path_calculations.py | jan-moravec/Find-Shortest-Path-Between-Multiple-Stops-in-Prague | 76ebd4fdb3d597c4a30b800d1a6b8c5bb7485eab | [
"MIT"
] | null | null | null | path_calculations.py | jan-moravec/Find-Shortest-Path-Between-Multiple-Stops-in-Prague | 76ebd4fdb3d597c4a30b800d1a6b8c5bb7485eab | [
"MIT"
] | null | null | null | path_calculations.py | jan-moravec/Find-Shortest-Path-Between-Multiple-Stops-in-Prague | 76ebd4fdb3d597c4a30b800d1a6b8c5bb7485eab | [
"MIT"
] | null | null | null | import math
import json
# Source: https://janakiev.com/blog/gps-points-distance-python/
def _haversine(gps_1: tuple, gps_2: tuple) -> float:
"""
Calculate distance in meters between two GPS coordinates.
Takes 2x (latitude, longitude), return meters between them.
"""
R = 6372800 # Earth radius in ... | 34.030303 | 190 | 0.618655 | 580 | 4,492 | 4.567241 | 0.248276 | 0.02718 | 0.03624 | 0.0302 | 0.239336 | 0.19328 | 0.17365 | 0.17365 | 0.12382 | 0.12382 | 0 | 0.019167 | 0.256679 | 4,492 | 131 | 191 | 34.290076 | 0.774184 | 0.183437 | 0 | 0.114286 | 0 | 0 | 0.030097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.028571 | 0.1 | 0.414286 | 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 |
0a278f9ead8ca4b6d3bc5c690a25f05a46200f7b | 1,138 | py | Python | batchPeso.py | josephcarmack/mesoscripts | 2fdc9f8ee84e6da0918e921dbb68a6dd07a391c6 | [
"MIT"
] | null | null | null | batchPeso.py | josephcarmack/mesoscripts | 2fdc9f8ee84e6da0918e921dbb68a6dd07a391c6 | [
"MIT"
] | null | null | null | batchPeso.py | josephcarmack/mesoscripts | 2fdc9f8ee84e6da0918e921dbb68a6dd07a391c6 | [
"MIT"
] | null | null | null | '''Script for running peso postprocessors on all the simulations generated by
a parstubuilder parametric study.'''
# ------------------------------------------------------
# main program
# ------------------------------------------------------
import os
import errno
import subprocess as sp
studyDir = '/absolute/path... | 30.756757 | 109 | 0.642355 | 139 | 1,138 | 5.251799 | 0.597122 | 0.078082 | 0.076712 | 0.032877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177504 | 1,138 | 36 | 110 | 31.611111 | 0.779915 | 0.446397 | 0 | 0.1 | 1 | 0 | 0.258117 | 0.150974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a289f8208bece4a3c1710e820fc689d09d64798 | 920 | py | Python | tests/wagtail_live/test_factories.py | Stormheg/wagtail-live | a5eb79024d44c060079ae7d4707d6220ea66ff5b | [
"BSD-3-Clause"
] | 22 | 2021-06-07T20:36:18.000Z | 2022-03-29T01:48:58.000Z | tests/wagtail_live/test_factories.py | Stormheg/wagtail-live | a5eb79024d44c060079ae7d4707d6220ea66ff5b | [
"BSD-3-Clause"
] | 73 | 2021-05-21T16:08:44.000Z | 2022-03-20T23:59:59.000Z | tests/wagtail_live/test_factories.py | Stormheg/wagtail-live | a5eb79024d44c060079ae7d4707d6220ea66ff5b | [
"BSD-3-Clause"
] | 11 | 2021-06-10T10:05:13.000Z | 2022-02-12T13:31:34.000Z | import pytest
from wagtail.core.models import Site
from tests.testapp.models import BlogPage, LivePageMixin
@pytest.mark.django_db
def test_home_fixture(home):
assert home == Site.objects.first().root_page
@pytest.mark.django_db
def test_blog_page_factory_instance(blog_page):
assert BlogPage.objects.count(... | 30.666667 | 75 | 0.759783 | 127 | 920 | 5.259843 | 0.275591 | 0.167665 | 0.08982 | 0.143713 | 0.601796 | 0.420659 | 0.383234 | 0.383234 | 0.383234 | 0.263473 | 0 | 0.003788 | 0.13913 | 920 | 29 | 76 | 31.724138 | 0.839646 | 0 | 0 | 0.409091 | 0 | 0 | 0.042391 | 0 | 0 | 0 | 0 | 0 | 0.545455 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.272727 | 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 |
0a3140431ef5ebbcff5b4c807940cdb8b918b622 | 6,622 | py | Python | gerenuk/test/test_config.py | jeetsukumaran/gerenuk | 570a5ef17e1280ad5e5f2942a87d94908fac4275 | [
"BSD-3-Clause"
] | null | null | null | gerenuk/test/test_config.py | jeetsukumaran/gerenuk | 570a5ef17e1280ad5e5f2942a87d94908fac4275 | [
"BSD-3-Clause"
] | null | null | null | gerenuk/test/test_config.py | jeetsukumaran/gerenuk | 570a5ef17e1280ad5e5f2942a87d94908fac4275 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
import unittest
import os
from gerenuk import utility
from gerenuk.test import TESTS_DATA_DIR
CONFIG_DATA_DIR = os.path.join(TESTS_DATA_DIR, "configuration-files")
class Fsc2DataExtractionTestCase(unittest.TestCase):
def test_parse_configuration(self):
config_filepath = os.path.joi... | 98.835821 | 303 | 0.656448 | 947 | 6,622 | 4.252376 | 0.168955 | 0.059598 | 0.047678 | 0.052148 | 0.580829 | 0.555749 | 0.443506 | 0.409734 | 0.38515 | 0.38515 | 0 | 0.083017 | 0.165056 | 6,622 | 66 | 304 | 100.333333 | 0.645325 | 0.003171 | 0 | 0 | 0 | 0 | 0.461212 | 0.01 | 0 | 0 | 0 | 0 | 0.180328 | 1 | 0.016393 | false | 0 | 0.065574 | 0 | 0.098361 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a33e0af9b3158d6258b224a105771b66ccc33ba | 13,695 | py | Python | python/ccxt/exx.py | KaceyBolman/ccxt | d34a0651b209ac77453f05c4ce31883f0cd2d6b8 | [
"MIT"
] | 1 | 2018-07-31T12:27:28.000Z | 2018-07-31T12:27:28.000Z | python/ccxt/exx.py | rerefreshing/ccxt | 7c50f338dcb282c0aee4d69a1ac4ca47255fdf15 | [
"MIT"
] | null | null | null | python/ccxt/exx.py | rerefreshing/ccxt | 7c50f338dcb282c0aee4d69a1ac4ca47255fdf15 | [
"MIT"
] | 2 | 2019-03-14T15:17:46.000Z | 2019-09-08T19:26:04.000Z | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
# -----------------------------------------------------------------------------
try:
basestri... | 34.847328 | 126 | 0.456079 | 1,220 | 13,695 | 5.057377 | 0.245082 | 0.025932 | 0.029498 | 0.030632 | 0.221556 | 0.149271 | 0.129498 | 0.099352 | 0.092383 | 0.048298 | 0 | 0.019044 | 0.405696 | 13,695 | 392 | 127 | 34.936224 | 0.739034 | 0.02877 | 0 | 0.235457 | 1 | 0.00277 | 0.114473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047091 | false | 0 | 0.019391 | 0.00554 | 0.121884 | 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 |
0a373aa6fb61ba6136d6b16b5ceedaaf6f9a1718 | 1,993 | py | Python | bin/docs-update-generated.py | Valkatraz/scons | 5e70c65f633dcecc035751c9f0c6f894088df8a0 | [
"MIT"
] | null | null | null | bin/docs-update-generated.py | Valkatraz/scons | 5e70c65f633dcecc035751c9f0c6f894088df8a0 | [
"MIT"
] | null | null | null | bin/docs-update-generated.py | Valkatraz/scons | 5e70c65f633dcecc035751c9f0c6f894088df8a0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Searches through the whole source tree and updates
# the generated *.gen/*.mod files in the docs folder, keeping all
# documentation for the tools, builders and functions...
# as well as the entity declarations for them.
# Uses scons-proc.py under the hood...
#
import os
import sys
import subp... | 32.672131 | 87 | 0.547416 | 245 | 1,993 | 4.387755 | 0.461224 | 0.050233 | 0.046512 | 0.024186 | 0.037209 | 0.037209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.332664 | 1,993 | 60 | 88 | 33.216667 | 0.808271 | 0.302057 | 0 | 0 | 1 | 0 | 0.121861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.228571 | 0.057143 | 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 |
0a41183e9da912598f475e2a531610bed31152a5 | 22,555 | py | Python | ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_instance_info.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 17 | 2017-06-07T23:15:01.000Z | 2021-08-30T14:32:36.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_instance_info.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 9 | 2017-06-25T03:31:52.000Z | 2021-05-17T23:43:12.000Z | ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_instance_info.py | gvashchenkolineate/gvashchenkolineate_infra_trytravis | 0fb18850afe0d8609693ba4b23f29c7cda17d97f | [
"MIT"
] | 3 | 2018-05-26T21:31:22.000Z | 2019-09-28T17:00:45.000Z | #!/usr/bin/python
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | 39.920354 | 157 | 0.509022 | 2,096 | 22,555 | 5.370229 | 0.189408 | 0.103234 | 0.13113 | 0.098881 | 0.517679 | 0.453802 | 0.383085 | 0.30828 | 0.252843 | 0.190832 | 0 | 0.026788 | 0.443893 | 22,555 | 564 | 158 | 39.991135 | 0.870605 | 0.012591 | 0 | 0.53626 | 0 | 0.009542 | 0.886998 | 0.020481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003817 | false | 0 | 0.013359 | 0 | 0.017176 | 0.001908 | 0 | 0 | 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 |
0a41908b88d70888231245fb34c7b467d3fff24c | 6,348 | py | Python | reaction.py | Roman-Ovcharenko/Reaction-Rate-py | 2f2230bf91cacded3b9419798ef028b42d2a94cc | [
"Apache-2.0"
] | null | null | null | reaction.py | Roman-Ovcharenko/Reaction-Rate-py | 2f2230bf91cacded3b9419798ef028b42d2a94cc | [
"Apache-2.0"
] | null | null | null | reaction.py | Roman-Ovcharenko/Reaction-Rate-py | 2f2230bf91cacded3b9419798ef028b42d2a94cc | [
"Apache-2.0"
] | null | null | null | import sys
import math
import const as cs
###############################################################################
# Define reaction path
###############################################################################
class Reaction(object):
###################################################################... | 48.090909 | 80 | 0.382325 | 601 | 6,348 | 3.740433 | 0.168053 | 0.018683 | 0.034698 | 0.028025 | 0.530694 | 0.430605 | 0.34742 | 0.279804 | 0.150801 | 0.123221 | 0 | 0.015083 | 0.268904 | 6,348 | 131 | 81 | 48.458015 | 0.469295 | 0.09436 | 0 | 0.02439 | 0 | 0 | 0.227284 | 0.015019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.036585 | 0 | 0.292683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a4205a4b8e7927aa80ddc98a6f93b2d77d95b7d | 563 | py | Python | satchmo/apps/payment/modules/cybersource/urls.py | jtslade/satchmo-svn | a9d791342ac6c5712de55c26ea4780057e27d452 | [
"BSD-3-Clause"
] | 1 | 2016-05-09T08:15:33.000Z | 2016-05-09T08:15:33.000Z | satchmo/apps/payment/modules/cybersource/urls.py | jtslade/satchmo-svn | a9d791342ac6c5712de55c26ea4780057e27d452 | [
"BSD-3-Clause"
] | null | null | null | satchmo/apps/payment/modules/cybersource/urls.py | jtslade/satchmo-svn | a9d791342ac6c5712de55c26ea4780057e27d452 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls.defaults import *
from livesettings import config_value, config_get_group
config = config_get_group('PAYMENT_CYBERSOURCE')
urlpatterns = patterns('',
(r'^$', 'payment.modules.cybersource.views.pay_ship_info', {'SSL':config.SSL.value}, 'CYBERSOURCE_satchmo_checkout-step2'),
(r'^confirm/... | 51.181818 | 135 | 0.751332 | 68 | 563 | 6 | 0.411765 | 0.066176 | 0.088235 | 0.125 | 0.335784 | 0.335784 | 0.335784 | 0.230392 | 0 | 0 | 0 | 0.003861 | 0.079929 | 563 | 10 | 136 | 56.3 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.492007 | 0.403197 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a420c82f45328afeedf68c67ec398b116c8c1a4 | 1,647 | py | Python | oasysflask/app/auth.py | Deplim/Oasys | 0644d9e8a9d26baaa3b9419a0d460da61ab7472d | [
"MIT"
] | null | null | null | oasysflask/app/auth.py | Deplim/Oasys | 0644d9e8a9d26baaa3b9419a0d460da61ab7472d | [
"MIT"
] | 1 | 2022-01-25T10:42:53.000Z | 2022-01-25T10:42:53.000Z | oasysflask/app/auth.py | Deplim/Oasys | 0644d9e8a9d26baaa3b9419a0d460da61ab7472d | [
"MIT"
] | 2 | 2022-01-20T15:07:24.000Z | 2022-01-20T15:10:44.000Z | from flask import Blueprint, jsonify, request, session
from .models import User
from werkzeug.security import check_password_hash
bp = Blueprint('auth', __name__, url_prefix='/')
# @cross_origin(supports_credentials=True)
@bp.route('api/login', methods=['POST'])
def login():
result = {"success": True}
if req... | 29.410714 | 84 | 0.624772 | 217 | 1,647 | 4.511521 | 0.299539 | 0.04903 | 0.030644 | 0.07048 | 0.286006 | 0.224719 | 0.192033 | 0.192033 | 0.192033 | 0 | 0 | 0 | 0.231937 | 1,647 | 55 | 85 | 29.945455 | 0.773913 | 0.151184 | 0 | 0.2 | 0 | 0 | 0.185159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.114286 | 0.085714 | 0 | 0.285714 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a46540904d28e8007ae7ec4457d1739d921cf08 | 763 | py | Python | Python Web/Django/my_blog/Blog/comment/models.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | 1 | 2020-01-31T15:57:29.000Z | 2020-01-31T15:57:29.000Z | Python Web/Django/my_blog/Blog/comment/models.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | null | null | null | Python Web/Django/my_blog/Blog/comment/models.py | CodingGorit/Coding-with-Python | b0f1d5d704b816a85b0ae57b46d00314de2a67b9 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from article.models import ArticlePost
# 博文的评论
class Comment(models.Model):
article = models.ForeignKey(
ArticlePost,
on_delete=models.CASCADE,
related_name='comments'
)
user = models.ForeignKey(
User,
... | 23.121212 | 64 | 0.669725 | 89 | 763 | 5.595506 | 0.516854 | 0.060241 | 0.056225 | 0.084337 | 0.160643 | 0.160643 | 0.160643 | 0 | 0 | 0 | 0 | 0.003413 | 0.231979 | 763 | 33 | 64 | 23.121212 | 0.846416 | 0.02228 | 0 | 0.166667 | 0 | 0 | 0.060565 | 0.02961 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
0a490cb6ed3b5422e57e1bcb44015e70b8a76960 | 4,743 | py | Python | router/gen_iq_wrapper.py | zhipengzhaocmu/HLS_NoC | 9b0a29c6531ecc8d354aa0cf5bd71998d218d13b | [
"MIT"
] | 8 | 2020-08-17T02:18:55.000Z | 2021-09-18T22:09:12.000Z | router/gen_iq_wrapper.py | zhipengzhaocmu/HLS_NoC | 9b0a29c6531ecc8d354aa0cf5bd71998d218d13b | [
"MIT"
] | null | null | null | router/gen_iq_wrapper.py | zhipengzhaocmu/HLS_NoC | 9b0a29c6531ecc8d354aa0cf5bd71998d218d13b | [
"MIT"
] | 5 | 2020-08-17T20:38:57.000Z | 2021-12-08T08:06:52.000Z | #!/usr/bin/env python
'''
Copyright (c) <2017> <Zhipeng Zhao, Carnegie Mellon University>
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 rig... | 35.395522 | 86 | 0.644529 | 804 | 4,743 | 3.585821 | 0.201493 | 0.101977 | 0.084981 | 0.055498 | 0.501561 | 0.447797 | 0.430108 | 0.382588 | 0.361429 | 0.253902 | 0 | 0.00938 | 0.145899 | 4,743 | 134 | 87 | 35.395522 | 0.702296 | 0.048493 | 0 | 0.395349 | 0 | 0 | 0.410746 | 0.043159 | 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 |
0a4b53aee575ae0e5a263117c2ff29688cfbce0d | 2,336 | py | Python | build/lib.linux-x86_64-2.7/RLTracking/parameters.py | jjkke88/RL_toolbox | 63693c12ef8db0a0b1759037c6d73f5c297ddcc6 | [
"MIT"
] | 52 | 2017-05-09T13:26:19.000Z | 2021-01-30T17:13:49.000Z | build/lib.linux-x86_64-2.7/RLTracking/parameters.py | jjkke88/RL_toolbox | 63693c12ef8db0a0b1759037c6d73f5c297ddcc6 | [
"MIT"
] | 1 | 2017-07-01T18:26:14.000Z | 2017-07-12T01:07:36.000Z | build/lib.linux-x86_64-2.7/RLTracking/parameters.py | jjkke88/RL_toolbox | 63693c12ef8db0a0b1759037c6d73f5c297ddcc6 | [
"MIT"
] | 9 | 2017-08-25T20:57:21.000Z | 2021-01-30T17:13:53.000Z |
class PMS_base(object):
history_number = 2 # image history number
jobs = 4 # thread or process number
max_iter_number = 400 # 'control the max iteration number for trainning')
paths_number = 4 # 'number of paths in each rollout')
max_path_length = 200 # 'timesteps in each path')
batch_siz... | 58.4 | 122 | 0.670377 | 326 | 2,336 | 4.659509 | 0.42638 | 0.0395 | 0.017117 | 0.0079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033072 | 0.236301 | 2,336 | 40 | 123 | 58.4 | 0.818386 | 0.546661 | 0 | 0 | 0 | 0 | 0.034757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 |
0a5359464338ac7c04b20f8fa9dde20f67bd70ff | 328 | py | Python | trackash/budget/migrations/0002_auto_20200326_2200.py | black-redoc/trackash | 99ded8445eaaa1bdf616d43c36ba402356e2f9d3 | [
"MIT"
] | null | null | null | trackash/budget/migrations/0002_auto_20200326_2200.py | black-redoc/trackash | 99ded8445eaaa1bdf616d43c36ba402356e2f9d3 | [
"MIT"
] | null | null | null | trackash/budget/migrations/0002_auto_20200326_2200.py | black-redoc/trackash | 99ded8445eaaa1bdf616d43c36ba402356e2f9d3 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-26 22:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("budget", "0001_initial"),
]
operations = [
migrations.RenameField(
model_name="budget", old_name="budget", new_name="balance",
)... | 19.294118 | 71 | 0.612805 | 37 | 328 | 5.324324 | 0.783784 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078512 | 0.262195 | 328 | 16 | 72 | 20.5 | 0.735537 | 0.137195 | 0 | 0 | 1 | 0 | 0.131673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a5bb59298bceec6a29b55e0da59a0f114248a49 | 7,091 | py | Python | encrypt.py | songjianbupt/base64SS | e48e49c59025ae2357e8d873a2d9d01f886cb571 | [
"Apache-2.0"
] | 1 | 2019-06-07T13:05:52.000Z | 2019-06-07T13:05:52.000Z | encrypt.py | songjianbupt/base64SS | e48e49c59025ae2357e8d873a2d9d01f886cb571 | [
"Apache-2.0"
] | null | null | null | encrypt.py | songjianbupt/base64SS | e48e49c59025ae2357e8d873a2d9d01f886cb571 | [
"Apache-2.0"
] | 1 | 2019-06-10T06:00:07.000Z | 2019-06-10T06:00:07.000Z | #!/usr/bin/env python
#
# Copyright 2012-2015 clowwindy
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 28.708502 | 78 | 0.606967 | 966 | 7,091 | 4.281574 | 0.191511 | 0.030222 | 0.023211 | 0.029255 | 0.324952 | 0.29352 | 0.269342 | 0.23501 | 0.190522 | 0.190522 | 0 | 0.015857 | 0.288535 | 7,091 | 246 | 79 | 28.825203 | 0.803964 | 0.124242 | 0 | 0.342105 | 0 | 0 | 0.01616 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 1 | 0.089474 | false | 0.073684 | 0.047368 | 0.005263 | 0.247368 | 0.005263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a5df253c109e42382ff8fd3fb6b7d7c34ca91c9 | 564 | py | Python | setup.py | franchuterivera/pynisher | 6de961437cbc5cd7cd996ed117650d478cf18f93 | [
"MIT"
] | null | null | null | setup.py | franchuterivera/pynisher | 6de961437cbc5cd7cd996ed117650d478cf18f93 | [
"MIT"
] | null | null | null | setup.py | franchuterivera/pynisher | 6de961437cbc5cd7cd996ed117650d478cf18f93 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='pynisher',
version="0.6.1",
packages=['pynisher'],
install_requires=['docutils>=0.3', 'setuptools', 'psutil'],
author="Stefan Falkner, Christina Hernandez-Wunsch, Samuel Mueller and Matthias Feurer",
author_email="feurerm@informatik.uni-freiburg.de",
... | 35.25 | 120 | 0.712766 | 71 | 564 | 5.605634 | 0.859155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.157801 | 564 | 15 | 121 | 37.6 | 0.827368 | 0 | 0 | 0 | 0 | 0 | 0.547872 | 0.060284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a5ecd5a0dc0a30bbf43c4e8a0e22f55c5659feb | 183,195 | py | Python | Lib/test/test_descr.py | zgrge/cpython | 0e59d247457dde747d84c899e96423647b3da149 | [
"PSF-2.0"
] | null | null | null | Lib/test/test_descr.py | zgrge/cpython | 0e59d247457dde747d84c899e96423647b3da149 | [
"PSF-2.0"
] | null | null | null | Lib/test/test_descr.py | zgrge/cpython | 0e59d247457dde747d84c899e96423647b3da149 | [
"PSF-2.0"
] | 1 | 2021-09-04T13:33:46.000Z | 2021-09-04T13:33:46.000Z | import builtins
import copyreg
import gc
import itertools
import math
import pickle
import sys
import types
import unittest
import weakref
from copy import deepcopy
from test import support
class OperatorsTest(unittest.TestCase):
def __init__(self, *args, **kwargs):
unittest.TestCase.__init__(self, *arg... | 34.171796 | 91 | 0.513245 | 20,852 | 183,195 | 4.257769 | 0.069682 | 0.108467 | 0.018742 | 0.012795 | 0.437415 | 0.34929 | 0.292556 | 0.256322 | 0.226226 | 0.194429 | 0 | 0.020452 | 0.36691 | 183,195 | 5,360 | 92 | 34.178172 | 0.745057 | 0.106968 | 0 | 0.437025 | 0 | 0.00023 | 0.063401 | 0.001103 | 0 | 0 | 0.00008 | 0 | 0.223578 | 1 | 0.108911 | false | 0.070228 | 0.007138 | 0.033848 | 0.27907 | 0.000691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a63ed96581c51c5bd5c71106a2209e53e1cfbda | 10,987 | py | Python | scanners/scanner_parser/web_scanner/arachni_xml_parser.py | GMedian/archerysec | 9591fdb6b21ca56d77364d1433acbaff84437c7f | [
"BSD-3-Clause"
] | 1 | 2021-12-14T12:27:26.000Z | 2021-12-14T12:27:26.000Z | scanners/scanner_parser/web_scanner/arachni_xml_parser.py | GMedian/archerysec | 9591fdb6b21ca56d77364d1433acbaff84437c7f | [
"BSD-3-Clause"
] | 8 | 2020-02-12T00:43:21.000Z | 2022-03-11T23:25:08.000Z | scanners/scanner_parser/web_scanner/arachni_xml_parser.py | GMedian/archerysec | 9591fdb6b21ca56d77364d1433acbaff84437c7f | [
"BSD-3-Clause"
] | 1 | 2018-08-12T17:29:35.000Z | 2018-08-12T17:29:35.000Z | # _
# /\ | |
# / \ _ __ ___| |__ ___ _ __ _ _
# / /\ \ | '__/ __| '_ \ / _ \ '__| | | |
# / ____ \| | | (__| | | | __/ | | |_| |
#/_/ \_\_| \___|_| |_|\___|_| \__, |
# __/ |
# |___/
# Copyright (C) 201... | 43.599206 | 224 | 0.363065 | 854 | 10,987 | 4.319672 | 0.125293 | 0.032529 | 0.024397 | 0.030361 | 0.437788 | 0.330171 | 0.235023 | 0.196259 | 0.184332 | 0.152887 | 0 | 0.001921 | 0.573496 | 10,987 | 251 | 225 | 43.772908 | 0.785318 | 0.031128 | 0 | 0.191176 | 0 | 0 | 0.025624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004902 | false | 0 | 0.019608 | 0 | 0.02451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
0a643818d29888f580a0c13dcbd5408111c03ef3 | 945 | py | Python | setup.py | tmandry/django-fresh | 43fb187a0a361924ce95c56d27d1a797b7af6b0d | [
"BSD-2-Clause",
"Unlicense"
] | 1 | 2017-03-09T04:26:22.000Z | 2017-03-09T04:26:22.000Z | setup.py | tmandry/django-fresh | 43fb187a0a361924ce95c56d27d1a797b7af6b0d | [
"BSD-2-Clause",
"Unlicense"
] | null | null | null | setup.py | tmandry/django-fresh | 43fb187a0a361924ce95c56d27d1a797b7af6b0d | [
"BSD-2-Clause",
"Unlicense"
] | null | null | null | from setuptools import setup
setup(
name='django-fresh',
version='1.0.4',
license='Simplified BSD',
install_requires = [
'Django',
'watchdog',
'beautifulsoup4',
],
description='Auto-refresh your browser when files in your project change.',
long_description=open('RE... | 24.868421 | 79 | 0.626455 | 96 | 945 | 6.09375 | 0.770833 | 0.05641 | 0.044444 | 0.054701 | 0.123077 | 0.123077 | 0.123077 | 0 | 0 | 0 | 0 | 0.006916 | 0.234921 | 945 | 37 | 80 | 25.540541 | 0.802213 | 0 | 0 | 0 | 0 | 0 | 0.508995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 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 |
0a66215bb14cfbebd3cf5067f46be6a9b1748f80 | 5,990 | py | Python | thrift/compiler/py/generate/t_generator.py | calebmarchent/fbthrift | 0a9ab0d2d9a60202b86a459246118e64c15ca6dc | [
"Apache-2.0"
] | null | null | null | thrift/compiler/py/generate/t_generator.py | calebmarchent/fbthrift | 0a9ab0d2d9a60202b86a459246118e64c15ca6dc | [
"Apache-2.0"
] | null | null | null | thrift/compiler/py/generate/t_generator.py | calebmarchent/fbthrift | 0a9ab0d2d9a60202b86a459246118e64c15ca6dc | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
#
# 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
# "... | 31.361257 | 79 | 0.663439 | 724 | 5,990 | 5.316298 | 0.335635 | 0.018187 | 0.021824 | 0.019745 | 0.038971 | 0.017147 | 0.017147 | 0 | 0 | 0 | 0 | 0.003408 | 0.265275 | 5,990 | 190 | 80 | 31.526316 | 0.871166 | 0.323038 | 0 | 0.127451 | 0 | 0 | 0.079108 | 0.005325 | 0 | 0 | 0 | 0 | 0.009804 | 1 | 0.215686 | false | 0.009804 | 0.019608 | 0.058824 | 0.372549 | 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 |
0a6ac9405845e824143f29c4878952fe77b505d7 | 33,847 | py | Python | salt/utils/thin.py | fake-name/salt | d8f04936e4407f51946e32e8166159778f6c31a5 | [
"Apache-2.0"
] | null | null | null | salt/utils/thin.py | fake-name/salt | d8f04936e4407f51946e32e8166159778f6c31a5 | [
"Apache-2.0"
] | null | null | null | salt/utils/thin.py | fake-name/salt | d8f04936e4407f51946e32e8166159778f6c31a5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Generate the salt thin tarball from the installed python files
"""
# Import python libs
from __future__ import absolute_import, print_function, unicode_literals
import copy
import logging
import os
import shutil
import subprocess
import sys
import tarfile
import tempfile
import zipfile
# ... | 34.11996 | 118 | 0.561645 | 4,045 | 33,847 | 4.557726 | 0.132509 | 0.049306 | 0.03043 | 0.012693 | 0.462844 | 0.415003 | 0.382675 | 0.358483 | 0.344977 | 0.336732 | 0 | 0.00761 | 0.32449 | 33,847 | 991 | 119 | 34.15439 | 0.798723 | 0.111236 | 0 | 0.367801 | 1 | 0.009162 | 0.211437 | 0.06069 | 0 | 0 | 0 | 0.002018 | 0 | 1 | 0.018325 | false | 0.003927 | 0.075916 | 0 | 0.115183 | 0.010471 | 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 |
0a6eb0aa97bb599028187806421d967b0b35d7f0 | 7,085 | py | Python | gan_stroke_generator/mypaint_images_data_loader.py | mxpoliakov/PaintTransformerGAN | be845607ad1d839319ab9d11b9c6de3f7c11ded0 | [
"Apache-2.0"
] | null | null | null | gan_stroke_generator/mypaint_images_data_loader.py | mxpoliakov/PaintTransformerGAN | be845607ad1d839319ab9d11b9c6de3f7c11ded0 | [
"Apache-2.0"
] | null | null | null | gan_stroke_generator/mypaint_images_data_loader.py | mxpoliakov/PaintTransformerGAN | be845607ad1d839319ab9d11b9c6de3f7c11ded0 | [
"Apache-2.0"
] | null | null | null | # Based on https://colab.research.google.com/github/reiinakano/neural-painters/blob/master/notebooks/generate_stroke_examples.ipynb
from lib import surface, tiledsurface, brush
import torch
import numpy as np
from PIL import Image
def point_on_curve_1(t, cx, cy, sx, sy, x1, y1, x2, y2):
ratio = t / 100.0
x3... | 29.27686 | 131 | 0.552576 | 998 | 7,085 | 3.709419 | 0.194389 | 0.027553 | 0.044571 | 0.045381 | 0.252566 | 0.229606 | 0.199622 | 0.187196 | 0.158563 | 0.158563 | 0 | 0.039683 | 0.34199 | 7,085 | 241 | 132 | 29.39834 | 0.754397 | 0.058574 | 0 | 0.323077 | 1 | 0 | 0.012168 | 0.007511 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082051 | false | 0 | 0.020513 | 0.010256 | 0.169231 | 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 |
6a5602505460944c04bdd29dcd21234e8f1d0f91 | 1,801 | py | Python | Example/Psi4Numpy/13-GeometryOptimization/opt_helper/printTools.py | yychuang/109-2-compchem-lite | cbf17e542f9447e89fb48de1b28759419ffff956 | [
"BSD-3-Clause"
] | 214 | 2017-03-01T08:04:48.000Z | 2022-03-23T08:52:04.000Z | Example/Psi4Numpy/13-GeometryOptimization/opt_helper/printTools.py | yychuang/109-2-compchem-lite | cbf17e542f9447e89fb48de1b28759419ffff956 | [
"BSD-3-Clause"
] | 100 | 2017-03-03T13:20:20.000Z | 2022-03-05T18:20:27.000Z | Example/Psi4Numpy/13-GeometryOptimization/opt_helper/printTools.py | yychuang/109-2-compchem-lite | cbf17e542f9447e89fb48de1b28759419ffff956 | [
"BSD-3-Clause"
] | 150 | 2017-02-17T19:44:47.000Z | 2022-03-22T05:52:43.000Z | from __future__ import print_function
def printMat(M, Ncol=7, title=None):
if title:
print(title + '\n')
for row in range(M.shape[0]):
tab = 0
for col in range(M.shape[1]):
tab += 1
print(" %10.6f" % M[row, col])
if tab == Ncol and col != (M.shape[1] ... | 24.671233 | 81 | 0.432537 | 260 | 1,801 | 2.976923 | 0.176923 | 0.041344 | 0.03876 | 0.056848 | 0.709302 | 0.70155 | 0.604651 | 0.604651 | 0.604651 | 0.53876 | 0 | 0.066237 | 0.396446 | 1,801 | 72 | 82 | 25.013889 | 0.645814 | 0 | 0 | 0.693548 | 0 | 0 | 0.071627 | 0.027762 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080645 | false | 0 | 0.016129 | 0 | 0.16129 | 0.322581 | 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 |
6a580423dc13d953de8c2d75010c3df6789e6fa2 | 16,589 | py | Python | tests/test_views_objects_permissions.py | vincentfretin/kinto | 34ff8093ab708eae55fc4eefa237fb420e808a6a | [
"Apache-2.0"
] | 4,618 | 2015-08-06T18:17:02.000Z | 2022-03-31T10:03:07.000Z | tests/test_views_objects_permissions.py | vincentfretin/kinto | 34ff8093ab708eae55fc4eefa237fb420e808a6a | [
"Apache-2.0"
] | 1,578 | 2015-07-30T09:47:41.000Z | 2022-03-31T13:12:50.000Z | tests/test_views_objects_permissions.py | vincentfretin/kinto | 34ff8093ab708eae55fc4eefa237fb420e808a6a | [
"Apache-2.0"
] | 546 | 2015-07-30T10:31:35.000Z | 2022-03-31T12:44:32.000Z | import unittest
from kinto.core.testing import get_user_headers
from .support import (
MINIMALIST_BUCKET,
MINIMALIST_COLLECTION,
MINIMALIST_GROUP,
MINIMALIST_RECORD,
BaseWebTest,
)
class PermissionsTest(BaseWebTest, unittest.TestCase):
@classmethod
def setUpClass(cls):
super().se... | 36.701327 | 99 | 0.628368 | 1,841 | 16,589 | 5.388919 | 0.090712 | 0.104223 | 0.039915 | 0.040923 | 0.783994 | 0.721701 | 0.671303 | 0.634412 | 0.541578 | 0.482613 | 0 | 0.021597 | 0.243595 | 16,589 | 451 | 100 | 36.782705 | 0.769047 | 0.004943 | 0 | 0.482759 | 0 | 0 | 0.195165 | 0.114639 | 0 | 0 | 0 | 0 | 0.026525 | 1 | 0.137931 | false | 0.002653 | 0.007958 | 0 | 0.169761 | 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 |
6a5b95a138432a5974bb423dbfc828b8591160bd | 1,502 | py | Python | ui_tests/caseworker/step_defs/test_additional_contacts.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 1 | 2021-10-16T16:36:58.000Z | 2021-10-16T16:36:58.000Z | ui_tests/caseworker/step_defs/test_additional_contacts.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 45 | 2020-08-11T14:37:46.000Z | 2022-03-29T17:03:02.000Z | ui_tests/caseworker/step_defs/test_additional_contacts.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 3 | 2021-02-01T06:26:19.000Z | 2022-02-21T23:02:46.000Z | from faker import Faker
from pytest_bdd import scenarios, when, then
from ui_tests.caseworker.pages.additional_contacts import AdditionalContactsPage
from ui_tests.caseworker.pages.case_page import CasePage, CaseTabs
from tests_common import functions
fake = Faker()
scenarios("../features/additional_contacts.feature... | 36.634146 | 117 | 0.820905 | 202 | 1,502 | 5.767327 | 0.311881 | 0.200858 | 0.132189 | 0.139056 | 0.224893 | 0.094421 | 0.094421 | 0.049785 | 0.049785 | 0 | 0 | 0 | 0.099201 | 1,502 | 40 | 118 | 37.55 | 0.86105 | 0 | 0 | 0 | 0 | 0 | 0.123169 | 0.025965 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.148148 | false | 0 | 0.185185 | 0 | 0.333333 | 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 |
6a61bcc265cbd0c95e415522643901d600455272 | 15,411 | py | Python | smartcat/api.py | yakninja/evan-bot | 8475a79a6369c78478eaca71cdc0e548f5853794 | [
"BSD-2-Clause"
] | 1 | 2020-11-23T02:54:55.000Z | 2020-11-23T02:54:55.000Z | smartcat/api.py | yakninja/evan-bot | 8475a79a6369c78478eaca71cdc0e548f5853794 | [
"BSD-2-Clause"
] | null | null | null | smartcat/api.py | yakninja/evan-bot | 8475a79a6369c78478eaca71cdc0e548f5853794 | [
"BSD-2-Clause"
] | 1 | 2021-11-10T19:52:23.000Z | 2021-11-10T19:52:23.000Z | # -*- coding: utf-8 -*-
"""
smartcat.api
~~~~~~~~~~~~
This module contains classes that make http requests to SmartCAT
`API Documentation <https://smartcat.ai/api/methods/>`_
Original project at https://github.com/gilyaev/smartcat-python-sdk
Modified by Andrey Kravchuk https://github.com/yakninja (added account par... | 35.104784 | 120 | 0.617416 | 1,727 | 15,411 | 5.393167 | 0.145918 | 0.034357 | 0.028559 | 0.046919 | 0.497101 | 0.479171 | 0.452974 | 0.444814 | 0.421194 | 0.36225 | 0 | 0.004937 | 0.263902 | 15,411 | 438 | 121 | 35.184932 | 0.816114 | 0.443579 | 0 | 0.220238 | 0 | 0 | 0.147118 | 0.096369 | 0 | 0 | 0 | 0.002283 | 0 | 1 | 0.202381 | false | 0.035714 | 0.017857 | 0.005952 | 0.482143 | 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 |
6a6d14a69ba771e192a28951a6df7027741a655a | 2,625 | py | Python | python/paddle/fluid/transpiler/ps_dispatcher.py | ysh329/Paddle | 50ad9046c9a440564d104eaa354eb9df83a35678 | [
"Apache-2.0"
] | 9 | 2017-12-04T02:58:01.000Z | 2020-12-03T14:46:30.000Z | python/paddle/fluid/transpiler/ps_dispatcher.py | ysh329/Paddle | 50ad9046c9a440564d104eaa354eb9df83a35678 | [
"Apache-2.0"
] | 7 | 2017-12-05T20:29:08.000Z | 2018-10-15T08:57:40.000Z | python/paddle/fluid/transpiler/ps_dispatcher.py | ysh329/Paddle | 50ad9046c9a440564d104eaa354eb9df83a35678 | [
"Apache-2.0"
] | 6 | 2018-03-19T22:38:46.000Z | 2019-11-01T22:28:27.000Z | # Copyright (c) 2018 PaddlePaddle Authors. 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 by app... | 28.846154 | 75 | 0.654476 | 324 | 2,625 | 5.08642 | 0.441358 | 0.07767 | 0.033981 | 0.032767 | 0.26335 | 0.193568 | 0.193568 | 0.193568 | 0.193568 | 0.193568 | 0 | 0.006167 | 0.258667 | 2,625 | 90 | 76 | 29.166667 | 0.840699 | 0.432762 | 0 | 0.527778 | 0 | 0 | 0.025888 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.25 | false | 0 | 0.027778 | 0.055556 | 0.472222 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a706bb0daf277cb2e9d06e108be3d88e01a474f | 5,974 | py | Python | sdk/python/pulumi_azure_native/softwareplan/latest/get_hybrid_use_benefit.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/softwareplan/latest/get_hybrid_use_benefit.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/softwareplan/latest/get_hybrid_use_benefit.py | pulumi-bot/pulumi-azure-native | f7b9490b5211544318e455e5cceafe47b628e12c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | 36.876543 | 205 | 0.655172 | 695 | 5,974 | 5.394245 | 0.233094 | 0.038144 | 0.052014 | 0.064017 | 0.195786 | 0.133902 | 0.114164 | 0.091758 | 0.06135 | 0.06135 | 0 | 0.001992 | 0.243555 | 5,974 | 161 | 206 | 37.10559 | 0.827617 | 0.166388 | 0 | 0.12381 | 1 | 0.019048 | 0.204842 | 0.052842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104762 | false | 0 | 0.057143 | 0 | 0.27619 | 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 |
6a70eec29aca5dbd3605756f23a64c458241edc8 | 866 | py | Python | entrega 3/cliente.py | SD-CC-UFG/carlos.henrique.rorato.sd.ufg | 5edff483d0add9307dd4e8f6514454107e6a0146 | [
"MIT"
] | null | null | null | entrega 3/cliente.py | SD-CC-UFG/carlos.henrique.rorato.sd.ufg | 5edff483d0add9307dd4e8f6514454107e6a0146 | [
"MIT"
] | null | null | null | entrega 3/cliente.py | SD-CC-UFG/carlos.henrique.rorato.sd.ufg | 5edff483d0add9307dd4e8f6514454107e6a0146 | [
"MIT"
] | null | null | null | # Sistemas Distribuídos
# Aluno: Carlos Henrique Rorato Souza e Juliana de Melo
# Chat Simples com Thread Pool
from threading import Thread
import socket
import os
import sys
import select
#Conectando-se com o servidor, através dos argumentos da linha de comando
cliente = socket.socket(socket.AF_INET, socket.SOCK_STR... | 24.055556 | 73 | 0.769053 | 130 | 866 | 5.076923 | 0.592308 | 0.036364 | 0.051515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01355 | 0.147806 | 866 | 35 | 74 | 24.742857 | 0.880759 | 0.3903 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.227273 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a72180c1a8ef63b8c152206bc4dfa857084da98 | 9,022 | py | Python | Sentiment_analysis.py | aakashaaa/Sentiment_Analysis | 73f25a24da0834ef4c8e284dbe2726578b66038f | [
"MIT"
] | null | null | null | Sentiment_analysis.py | aakashaaa/Sentiment_Analysis | 73f25a24da0834ef4c8e284dbe2726578b66038f | [
"MIT"
] | null | null | null | Sentiment_analysis.py | aakashaaa/Sentiment_Analysis | 73f25a24da0834ef4c8e284dbe2726578b66038f | [
"MIT"
] | null | null | null | import warnings
warnings.filterwarnings("ignore")
import os
import pandas as pd
import re
from selenium.webdriver import *
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_cond... | 33.539033 | 146 | 0.623698 | 1,121 | 9,022 | 4.874219 | 0.271186 | 0.024158 | 0.038433 | 0.021962 | 0.354319 | 0.32888 | 0.316618 | 0.31131 | 0.299231 | 0.299231 | 0 | 0.008185 | 0.28231 | 9,022 | 269 | 147 | 33.539033 | 0.835676 | 0.179561 | 0 | 0.356322 | 0 | 0.005747 | 0.11545 | 0.02199 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005747 | 0.143678 | null | null | 0.074713 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a754149e14cc5db7e60869b779c5fc006b1e9d1 | 8,778 | py | Python | V2RaycSpider1225/src/BusinessLogicLayer/cluster/sailor.py | GdogBim/V2RayCloudSpider | 1ab8a4ee2e5786bc6461907d9dcbe761106f6f29 | [
"MIT"
] | 1 | 2021-09-28T09:38:15.000Z | 2021-09-28T09:38:15.000Z | V2RaycSpider1225/src/BusinessLogicLayer/cluster/sailor.py | GdogBim/V2RayCloudSpider | 1ab8a4ee2e5786bc6461907d9dcbe761106f6f29 | [
"MIT"
] | null | null | null | V2RaycSpider1225/src/BusinessLogicLayer/cluster/sailor.py | GdogBim/V2RayCloudSpider | 1ab8a4ee2e5786bc6461907d9dcbe761106f6f29 | [
"MIT"
] | 1 | 2021-09-09T07:22:47.000Z | 2021-09-09T07:22:47.000Z | # TODO 该模块存在大量exec用法,请勿随意改动相关文件名或函数名
__all__ = ['manage_task']
import random
from src.BusinessCentralLayer.middleware.redis_io import RedisClient
from src.BusinessCentralLayer.middleware.work_io import Middleware
from src.BusinessCentralLayer.setting import CRAWLER_SEQUENCE, REDIS_SECRET_KEY, SINGLE_TASK_CAP, ENABLE_... | 36.123457 | 120 | 0.558783 | 835 | 8,778 | 5.637126 | 0.323353 | 0.023794 | 0.011897 | 0.015296 | 0.174634 | 0.131506 | 0.125133 | 0.089229 | 0.089229 | 0.039516 | 0 | 0.003027 | 0.247323 | 8,778 | 242 | 121 | 36.272727 | 0.709399 | 0.334245 | 0 | 0.258621 | 0 | 0 | 0.135264 | 0.026311 | 0 | 0 | 0 | 0.012397 | 0 | 1 | 0.034483 | false | 0 | 0.060345 | 0 | 0.224138 | 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 |
6a7c7ace862238dff85442e7d282563a217628c7 | 1,001 | py | Python | chapter-09/Exercise_9_8.py | yuetsin/CS-902 | ae945f55944830ed3c6e4d71cfff2798cdf571ac | [
"MIT"
] | 1 | 2019-05-16T11:00:40.000Z | 2019-05-16T11:00:40.000Z | chapter-09/Exercise_9_8.py | yuetsin/CS-902 | ae945f55944830ed3c6e4d71cfff2798cdf571ac | [
"MIT"
] | null | null | null | chapter-09/Exercise_9_8.py | yuetsin/CS-902 | ae945f55944830ed3c6e4d71cfff2798cdf571ac | [
"MIT"
] | null | null | null | # Exercise 9.8
from random import random
def oneStep():
randomFact = random()
if randomFact > 0.75:
return (1, 0)
elif randomFact > 0.5:
return (0, 1)
elif randomFact > 0.25:
return (-1, 0)
else:
return (0, -1)
def goHiking(steps):
Xpos = Ypos = 0
for i in ... | 23.833333 | 75 | 0.519481 | 132 | 1,001 | 3.878788 | 0.363636 | 0.015625 | 0.076172 | 0.042969 | 0.207031 | 0.207031 | 0.132813 | 0.132813 | 0.132813 | 0.132813 | 0 | 0.053763 | 0.34965 | 1,001 | 41 | 76 | 24.414634 | 0.732719 | 0.011988 | 0 | 0 | 0 | 0 | 0.130699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6a7dc6cf0aa6ba5ea7dd8137c8dc9baa8d790012 | 2,977 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/community/windows/plugins/modules/win_rds_rap.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/windows/plugins/modules/win_rds_rap.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/windows/plugins/modules/win_rds_rap.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Kevin Subileau (@ksubileau)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r'''
---
module: win_rds_rap
short_description: Manage Resource Authorization Policies (RAP) on a Remote Desktop Gat... | 35.023529 | 101 | 0.711119 | 404 | 2,977 | 5.148515 | 0.356436 | 0.070673 | 0.077885 | 0.036538 | 0.257692 | 0.096635 | 0.081731 | 0 | 0 | 0 | 0 | 0.013646 | 0.212294 | 2,977 | 84 | 102 | 35.440476 | 0.873348 | 0.059792 | 0 | 0.289474 | 0 | 0 | 0.975671 | 0.081932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a7eed4a7351e780fd8f69cfa461edb650120db4 | 1,637 | py | Python | application/classes/report_type_test.py | isabella232/report2bq | b1cc1d702d5a6ad81c0092406f3a6c73a41ad077 | [
"Apache-2.0"
] | 9 | 2020-04-09T22:58:34.000Z | 2021-10-11T17:10:10.000Z | application/classes/report_type_test.py | google/report2bq | 46721cdb9a87c207e410a1d900be814c178b050b | [
"Apache-2.0"
] | 1 | 2020-07-24T08:27:28.000Z | 2020-07-24T08:27:28.000Z | application/classes/report_type_test.py | isabella232/report2bq | b1cc1d702d5a6ad81c0092406f3a6c73a41ad077 | [
"Apache-2.0"
] | 4 | 2020-04-14T22:50:29.000Z | 2021-06-27T16:58:09.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.104167 | 80 | 0.6573 | 222 | 1,637 | 4.756757 | 0.459459 | 0.099432 | 0.107955 | 0.087121 | 0.11553 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0.034618 | 0.22358 | 1,637 | 47 | 81 | 34.829787 | 0.796223 | 0.334759 | 0 | 0 | 0 | 0 | 0.084651 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 1 | 0.291667 | false | 0.041667 | 0.083333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a8363540a8487784bd61e9d0af198a15ee31c58 | 232 | py | Python | causalml/__init__.py | zazrivec/causalml | 136556270181c1ddb0b29aee78b1878d39712a0e | [
"Apache-2.0"
] | 2,919 | 2019-08-12T23:02:10.000Z | 2022-03-31T21:59:34.000Z | causalml/__init__.py | zazrivec/causalml | 136556270181c1ddb0b29aee78b1878d39712a0e | [
"Apache-2.0"
] | 317 | 2019-08-13T14:16:22.000Z | 2022-03-26T08:44:06.000Z | causalml/__init__.py | paullo0106/causalml | 06e33439adff886419e98146dd6d83f88f356260 | [
"Apache-2.0"
] | 466 | 2019-08-18T01:45:14.000Z | 2022-03-31T08:11:53.000Z | name = 'causalml'
__version__ = '0.11.1'
__all__ = ['dataset',
'features',
'feature_selection',
'inference',
'match',
'metrics',
'optimize',
'propensity']
| 21.090909 | 31 | 0.452586 | 16 | 232 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.400862 | 232 | 10 | 32 | 23.2 | 0.661871 | 0 | 0 | 0 | 0 | 0 | 0.366379 | 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 |
6a87f1bf3c0635446c5ad9620b3d842596be093c | 827 | py | Python | mnist.py | YuanshengZhao/adiabaticbinary | 2db98957e3d570a3d4fa94d25aed65810576b898 | [
"MIT"
] | null | null | null | mnist.py | YuanshengZhao/adiabaticbinary | 2db98957e3d570a3d4fa94d25aed65810576b898 | [
"MIT"
] | null | null | null | mnist.py | YuanshengZhao/adiabaticbinary | 2db98957e3d570a3d4fa94d25aed65810576b898 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data()
x_train, x_test = np.array(x_train/255.0,dtype="<f4"), np.array(x_test/255.0,dtype="<f4")
idx=np.argsort(y_train.flatten())
vdx=np.array([6000*i+j for i in range(10) for j in range(5400,6000)])... | 41.35 | 91 | 0.721886 | 167 | 827 | 3.323353 | 0.239521 | 0.086486 | 0.118919 | 0.183784 | 0.445045 | 0.223423 | 0.147748 | 0.147748 | 0.147748 | 0.147748 | 0 | 0.058663 | 0.113664 | 827 | 20 | 92 | 41.35 | 0.698499 | 0 | 0 | 0 | 0 | 0 | 0.007417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
6a8ee17eb8d609e030c728ffcab899e284db917d | 346 | py | Python | server/migrations/0070_remove_machine_install_log_hash.py | nathandarnell/sal | 464414a2666e39bdf5b4b0033a84d5129c93c053 | [
"Apache-2.0"
] | 215 | 2015-05-04T16:57:56.000Z | 2022-03-07T12:58:12.000Z | server/migrations/0070_remove_machine_install_log_hash.py | nathandarnell/sal | 464414a2666e39bdf5b4b0033a84d5129c93c053 | [
"Apache-2.0"
] | 243 | 2015-07-04T18:10:56.000Z | 2022-02-27T18:52:40.000Z | server/migrations/0070_remove_machine_install_log_hash.py | nathandarnell/sal | 464414a2666e39bdf5b4b0033a84d5129c93c053 | [
"Apache-2.0"
] | 90 | 2015-06-29T19:26:58.000Z | 2022-02-17T19:03:00.000Z | # Generated by Django 1.11 on 2018-04-25 18:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('server', '0069_remove_machine_install_log'),
]
operations = [
migrations.RemoveField(
model_name='machine',
name='install_lo... | 18.210526 | 54 | 0.612717 | 37 | 346 | 5.540541 | 0.783784 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076613 | 0.283237 | 346 | 18 | 55 | 19.222222 | 0.75 | 0.127168 | 0 | 0 | 1 | 0 | 0.2 | 0.103333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a8f9ad5da607ace9e28752e38ee795e26a66a25 | 1,066 | py | Python | docx/compat.py | fepec/python-docx | c5d007b23b32d782f6c2e753aed44e05e17b53e5 | [
"MIT"
] | null | null | null | docx/compat.py | fepec/python-docx | c5d007b23b32d782f6c2e753aed44e05e17b53e5 | [
"MIT"
] | null | null | null | docx/compat.py | fepec/python-docx | c5d007b23b32d782f6c2e753aed44e05e17b53e5 | [
"MIT"
] | null | null | null | # encoding: utf-8
"""
Provides Python 2/3 compatibility objects
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import sys
# ===========================================================================
# Python 3 versions
# ==========================================... | 26.65 | 83 | 0.456848 | 93 | 1,066 | 5.129032 | 0.483871 | 0.02935 | 0.046122 | 0.0587 | 0.297694 | 0.297694 | 0.297694 | 0.297694 | 0.297694 | 0.297694 | 0 | 0.008226 | 0.201689 | 1,066 | 39 | 84 | 27.333333 | 0.552291 | 0.478424 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a97a895278716ead3d97fe6b378263b9a8530e3 | 6,237 | py | Python | HLTriggerOffline/Common/python/HltComparatorCreateWorkflow.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | HLTriggerOffline/Common/python/HltComparatorCreateWorkflow.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | HLTriggerOffline/Common/python/HltComparatorCreateWorkflow.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Original Author: James Jackson
# MakeValidationConfig.py
# Makes CMSSW config for prompt validation of a given run number,
# HLT Key or HLT Config
from optparse import OptionParser
import os, time, re
jobHash = "%s_%s_%s" % (os.getuid(), os.getpid(), int(time.time()))
usage = '%prog [opt... | 35.039326 | 203 | 0.67292 | 772 | 6,237 | 5.408031 | 0.303109 | 0.017246 | 0.02012 | 0.019162 | 0.100599 | 0.089102 | 0.076647 | 0.071856 | 0.038323 | 0.026826 | 0 | 0.005984 | 0.196248 | 6,237 | 177 | 204 | 35.237288 | 0.82685 | 0.250762 | 0 | 0.151786 | 0 | 0.026786 | 0.282355 | 0.060613 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a97a95c9b6bd0932cea532aa1e4fac89bcf9e7f | 2,814 | py | Python | src/ipyradiant/query/query_widget.py | lnijhawan/ipyradiant | d804e9031ef39c1ea75fedd52d110302c065ad84 | [
"BSD-3-Clause"
] | null | null | null | src/ipyradiant/query/query_widget.py | lnijhawan/ipyradiant | d804e9031ef39c1ea75fedd52d110302c065ad84 | [
"BSD-3-Clause"
] | null | null | null | src/ipyradiant/query/query_widget.py | lnijhawan/ipyradiant | d804e9031ef39c1ea75fedd52d110302c065ad84 | [
"BSD-3-Clause"
] | null | null | null | """ the main query widget
"""
# Copyright (c) 2021 ipyradiant contributors.
# Distributed under the terms of the Modified BSD License.
import re
import IPython
import ipywidgets as W
import traitlets as T
from pandas import DataFrame
from rdflib import Graph, URIRef
from .namespace_manager import collapse_namespace
... | 33.5 | 92 | 0.663468 | 347 | 2,814 | 5.239193 | 0.423631 | 0.061606 | 0.066007 | 0.041254 | 0.033003 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004666 | 0.238451 | 2,814 | 83 | 93 | 33.903614 | 0.843677 | 0.181947 | 0 | 0 | 0 | 0 | 0.058093 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.092593 | false | 0 | 0.166667 | 0.037037 | 0.444444 | 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 |
6a998949e1cd6f3afbc9acb6613a2fe2ee8a603d | 372 | py | Python | src/validators/Factory.py | worseliz/HERON | fa5f346a0bc9f9d5ea4659618ffeb52bea812cee | [
"Apache-2.0"
] | 11 | 2020-07-28T21:35:26.000Z | 2022-01-25T17:31:39.000Z | src/validators/Factory.py | worseliz/HERON | fa5f346a0bc9f9d5ea4659618ffeb52bea812cee | [
"Apache-2.0"
] | 112 | 2020-07-29T15:25:33.000Z | 2022-03-31T19:21:00.000Z | src/validators/Factory.py | worseliz/HERON | fa5f346a0bc9f9d5ea4659618ffeb52bea812cee | [
"Apache-2.0"
] | 22 | 2020-07-28T20:08:12.000Z | 2022-03-08T21:22:03.000Z | # Copyright 2020, Battelle Energy Alliance, LLC
# ALL RIGHTS RESERVED
from .ExampleValidator import Example
known = {
'Example': Example,
# ModelicaGoverner: TODO,
}
def get_class(typ):
"""
Returns the requested dispatcher type.
@ In, typ, str, name of one of the dispatchers
@ Out, class, objec... | 20.666667 | 50 | 0.682796 | 46 | 372 | 5.5 | 0.76087 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013746 | 0.217742 | 372 | 17 | 51 | 21.882353 | 0.85567 | 0.567204 | 0 | 0 | 0 | 0 | 0.051095 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6a9991f03dea4dcf1059ffe5225c557fe445fac9 | 515 | py | Python | courses/models.py | deboraazevedo/udemy-free-courses | 6365321de0ed1c8521e1db96a63d17a06e056e4b | [
"MIT"
] | 1 | 2020-04-05T02:18:26.000Z | 2020-04-05T02:18:26.000Z | courses/models.py | deboraazevedo/udemy-free-courses | 6365321de0ed1c8521e1db96a63d17a06e056e4b | [
"MIT"
] | null | null | null | courses/models.py | deboraazevedo/udemy-free-courses | 6365321de0ed1c8521e1db96a63d17a06e056e4b | [
"MIT"
] | 2 | 2018-12-08T09:45:01.000Z | 2020-10-04T09:41:25.000Z | from django.db import models
class Course(models.Model):
identifier = models.CharField('ID', max_length=100, unique=True)
title = models.CharField('Published title', max_length=100)
url = models.CharField('Url', max_length=100)
image_240x135 = models.URLField('Image 240x135')
image_480x270 = model... | 27.105263 | 68 | 0.673786 | 62 | 515 | 5.403226 | 0.548387 | 0.134328 | 0.107463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.209709 | 515 | 18 | 69 | 28.611111 | 0.742015 | 0 | 0 | 0 | 0 | 0 | 0.120623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0.076923 | 0.769231 | 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 |
6a9c79cffc76b5d9fb86985e76cb19f669f8f343 | 4,194 | py | Python | tests/unitutil/mock.py | ajendrex/python-docx | 8e7b4b417efade3faf512df85e8b80e6b9bd8d74 | [
"MIT"
] | null | null | null | tests/unitutil/mock.py | ajendrex/python-docx | 8e7b4b417efade3faf512df85e8b80e6b9bd8d74 | [
"MIT"
] | null | null | null | tests/unitutil/mock.py | ajendrex/python-docx | 8e7b4b417efade3faf512df85e8b80e6b9bd8d74 | [
"MIT"
] | 3 | 2019-02-18T08:56:50.000Z | 2022-03-07T12:16:34.000Z | # encoding: utf-8
"""Utility functions wrapping the excellent *mock* library"""
from __future__ import absolute_import, division, print_function, unicode_literals
import sys
if sys.version_info > (3, 0):
from unittest.mock import ANY, call, MagicMock # noqa
from unittest.mock import create_autospec, Mock, ... | 34.661157 | 87 | 0.705293 | 581 | 4,194 | 4.932874 | 0.218589 | 0.038381 | 0.069784 | 0.08374 | 0.49023 | 0.439288 | 0.399512 | 0.302512 | 0.302512 | 0.208304 | 0 | 0.000888 | 0.194325 | 4,194 | 120 | 88 | 34.95 | 0.847292 | 0.373391 | 0 | 0.313725 | 0 | 0 | 0.006148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.196078 | false | 0 | 0.117647 | 0 | 0.509804 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6a9e6bb27b44c533646e7c7399b16244386cdf14 | 2,289 | py | Python | qiskit/transpiler/passes/layout/apply_layout.py | yeralin/qiskit-terra | 251930a7b5d83af121ea0f3aafb33a54a1860e14 | [
"Apache-2.0"
] | 1 | 2019-06-04T12:23:36.000Z | 2019-06-04T12:23:36.000Z | qiskit/transpiler/passes/layout/apply_layout.py | yeralin/qiskit-terra | 251930a7b5d83af121ea0f3aafb33a54a1860e14 | [
"Apache-2.0"
] | 35 | 2019-03-07T02:09:22.000Z | 2022-03-22T19:55:15.000Z | qiskit/transpiler/passes/layout/apply_layout.py | yeralin/qiskit-terra | 251930a7b5d83af121ea0f3aafb33a54a1860e14 | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 36.919355 | 96 | 0.672346 | 308 | 2,289 | 4.941558 | 0.444805 | 0.055191 | 0.031537 | 0.041393 | 0.135348 | 0.120894 | 0.120894 | 0.0841 | 0.0841 | 0.0841 | 0 | 0.005236 | 0.249017 | 2,289 | 61 | 97 | 37.52459 | 0.880163 | 0.48318 | 0 | 0.086957 | 0 | 0 | 0.114921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.130435 | 0.173913 | 0 | 0.304348 | 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 |
6a9ebf19370c6ea71061e064bcdc98ab87c0865d | 14,041 | py | Python | Lib/test/test_timeit.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/test/test_timeit.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/test/test_timeit.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | zaimportuj timeit
zaimportuj unittest
zaimportuj sys
zaimportuj io
zaimportuj time
z textwrap zaimportuj dedent
z test.support zaimportuj captured_stdout
z test.support zaimportuj captured_stderr
# timeit's default number of iterations.
DEFAULT_NUMBER = 1000000
# timeit's default number of repetitions.
DEFAULT_REPEA... | 39.002778 | 83 | 0.642191 | 1,846 | 14,041 | 4.676598 | 0.136511 | 0.045407 | 0.044017 | 0.02224 | 0.607437 | 0.554384 | 0.443878 | 0.375536 | 0.328623 | 0.273022 | 0 | 0.023379 | 0.244498 | 14,041 | 359 | 84 | 39.111421 | 0.790441 | 0.095435 | 0 | 0.168539 | 0 | 0 | 0.134623 | 0.005233 | 0 | 0 | 0 | 0 | 0.220974 | 0 | null | null | 0.018727 | 0.044944 | null | null | 0.029963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6aa691f9cc5062b29d500dfa4ff5d6ce6ff11edc | 848 | py | Python | platzigram/middleware.py | alcibiadesBustillo/platzigram | c3aaea271f7819b47827ef49d467d6d53747b7c8 | [
"MIT"
] | null | null | null | platzigram/middleware.py | alcibiadesBustillo/platzigram | c3aaea271f7819b47827ef49d467d6d53747b7c8 | [
"MIT"
] | null | null | null | platzigram/middleware.py | alcibiadesBustillo/platzigram | c3aaea271f7819b47827ef49d467d6d53747b7c8 | [
"MIT"
] | null | null | null | """Platzigram middleware
"""
#Django
from django.shortcuts import redirect
from django.urls import reverse
class ProfileCompletionMiddleware:
"""Profile completion middleware
Ensure every user is interacting with the
platform have their profile picture and biography
"""
def __init__(self,get_respo... | 35.333333 | 76 | 0.678066 | 95 | 848 | 5.894737 | 0.526316 | 0.078571 | 0.080357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247642 | 848 | 24 | 77 | 35.333333 | 0.877743 | 0.283019 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.538462 | 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 |
6aaad45be7228c9e9b47a696a6ec0edc3fbd5096 | 4,455 | py | Python | data/inshop.py | kikaitech/classification_metric_learning | 6c90cecf8be01eda6efb7f6aa4049d8449ca33f1 | [
"Apache-2.0"
] | 93 | 2019-07-30T15:44:26.000Z | 2022-01-27T19:45:58.000Z | data/inshop.py | kikaitech/classification_metric_learning | 6c90cecf8be01eda6efb7f6aa4049d8449ca33f1 | [
"Apache-2.0"
] | 2 | 2020-05-10T14:35:35.000Z | 2020-11-18T10:35:50.000Z | data/inshop.py | kikaitech/classification_metric_learning | 6c90cecf8be01eda6efb7f6aa4049d8449ca33f1 | [
"Apache-2.0"
] | 14 | 2019-08-12T03:33:29.000Z | 2021-12-06T17:29:32.000Z | import csv
import os.path
import random
from dataset import Dataset
class InShop(Dataset):
def __init__(self, root, train=True, query=True, transform=None):
self.query = query
self.split_file = "list_eval_partition.txt"
super(InShop, self).__init__(root, train, transform)
print "L... | 47.903226 | 110 | 0.502357 | 487 | 4,455 | 4.349076 | 0.195072 | 0.067989 | 0.067989 | 0.040132 | 0.496695 | 0.485364 | 0.485364 | 0.485364 | 0.4339 | 0.333333 | 0 | 0.00381 | 0.410774 | 4,455 | 92 | 111 | 48.423913 | 0.803048 | 0.039057 | 0 | 0.337838 | 0 | 0 | 0.079766 | 0.00538 | 0 | 0 | 0 | 0 | 0.040541 | 0 | null | null | 0 | 0.054054 | null | null | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6aac4d88be116d48aa39daef1050db65d73184e7 | 2,181 | py | Python | lie_gradings/classification/dimension_5.py | ehaka/lie-algebra-gradings | 8dda645034f2c18d06cb55459c71d34b690e2b53 | [
"MIT"
] | null | null | null | lie_gradings/classification/dimension_5.py | ehaka/lie-algebra-gradings | 8dda645034f2c18d06cb55459c71d34b690e2b53 | [
"MIT"
] | null | null | null | lie_gradings/classification/dimension_5.py | ehaka/lie-algebra-gradings | 8dda645034f2c18d06cb55459c71d34b690e2b53 | [
"MIT"
] | null | null | null | from lie_gradings.classification.classified_lie_algebra import ClassifiedNilpotentLieAlgebra
__all__ = ['L5_1', 'L5_2', 'L5_3', 'L5_4', 'L5_5',
'L5_6', 'L5_7', 'L5_8', 'L5_9']
def L5_1(F):
sc = {}
return ClassifiedNilpotentLieAlgebra(F, 'L5_1', sc,
names=['X_1', 'X_2', 'X_3', 'X_4', 'X_... | 25.360465 | 92 | 0.448418 | 366 | 2,181 | 2.29235 | 0.068306 | 0.0882 | 0.089392 | 0.095352 | 0.786651 | 0.694875 | 0.688915 | 0.669845 | 0.663886 | 0.45292 | 0 | 0.115409 | 0.288858 | 2,181 | 85 | 93 | 25.658824 | 0.425532 | 0 | 0 | 0.402985 | 0 | 0 | 0.177442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134328 | false | 0 | 0.014925 | 0 | 0.283582 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6aad51a0eed354e75259f7591665fa07c3465deb | 11,359 | py | Python | scapy_ex.py | DepthDeluxe/dot11sniffer | 4c283122e158a854b940136a9675d3e0515ee219 | [
"MIT"
] | 4 | 2016-11-29T16:09:54.000Z | 2021-11-12T10:34:49.000Z | scapy_ex.py | DepthDeluxe/dot11sniffer | 4c283122e158a854b940136a9675d3e0515ee219 | [
"MIT"
] | null | null | null | scapy_ex.py | DepthDeluxe/dot11sniffer | 4c283122e158a854b940136a9675d3e0515ee219 | [
"MIT"
] | 1 | 2021-11-12T10:34:49.000Z | 2021-11-12T10:34:49.000Z | """
A set of additions and modifications to scapy to assist in parsing dot11
"""
import scapy
from scapy.fields import BitField
from scapy.fields import ByteField
from scapy.fields import ConditionalField
from scapy.fields import EnumField
from scapy.fields import Field
from scapy.fields import FieldLenField
from scap... | 34.317221 | 139 | 0.746104 | 1,643 | 11,359 | 4.931832 | 0.202069 | 0.066519 | 0.096754 | 0.09589 | 0.365544 | 0.274713 | 0.129952 | 0.108725 | 0.092929 | 0.092929 | 0 | 0.050982 | 0.134871 | 11,359 | 330 | 140 | 34.421212 | 0.773583 | 0.031341 | 0 | 0.154812 | 0 | 0 | 0.148293 | 0.027614 | 0 | 0 | 0.000843 | 0.00303 | 0 | 0 | null | null | 0 | 0.07113 | null | null | 0.004184 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6aafbe3e27245036ad09daf23b41608f1d2be3ee | 2,781 | py | Python | src/metrics.py | wang-yuhao/Practical-Big-Data-Science-ADL-AI | 0bf63bf210f506e287f8492e716bb3394137d74b | [
"MIT"
] | null | null | null | src/metrics.py | wang-yuhao/Practical-Big-Data-Science-ADL-AI | 0bf63bf210f506e287f8492e716bb3394137d74b | [
"MIT"
] | null | null | null | src/metrics.py | wang-yuhao/Practical-Big-Data-Science-ADL-AI | 0bf63bf210f506e287f8492e716bb3394137d74b | [
"MIT"
] | 1 | 2021-12-24T00:26:26.000Z | 2021-12-24T00:26:26.000Z | import numpy as np
import logging
from typing import Any, Dict
from abc import abstractmethod
logger = logging.getLogger(__name__)
class Metric(object):
def __init__(self, name):
"""The base class to calculate metrics during training and evaluation.
Parameters
----------
name - ... | 30.56044 | 78 | 0.605897 | 337 | 2,781 | 4.79822 | 0.305638 | 0.030303 | 0.06308 | 0.074212 | 0.253556 | 0.226345 | 0.207792 | 0.162028 | 0.06308 | 0.06308 | 0 | 0 | 0.286588 | 2,781 | 90 | 79 | 30.9 | 0.81502 | 0.247033 | 0 | 0.12766 | 0 | 0 | 0.051387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212766 | false | 0 | 0.085106 | 0 | 0.468085 | 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 |
6aafc45450f57a4f11c480e63157867b8cd08a4d | 3,088 | py | Python | larcv/app/arxiv/arxiv/production/v05/job_supera.py | mmajewsk/larcv2 | 9ee74e42b293d547d3a8510fa2139b2d4ccf6b89 | [
"MIT"
] | 14 | 2017-10-19T15:08:29.000Z | 2021-03-31T21:21:07.000Z | larcv/app/arxiv/arxiv/production/v05/job_supera.py | mmajewsk/larcv2 | 9ee74e42b293d547d3a8510fa2139b2d4ccf6b89 | [
"MIT"
] | 32 | 2017-10-25T22:54:06.000Z | 2019-10-01T13:57:15.000Z | larcv/app/arxiv/arxiv/production/v05/job_supera.py | mmajewsk/larcv2 | 9ee74e42b293d547d3a8510fa2139b2d4ccf6b89 | [
"MIT"
] | 16 | 2017-12-07T12:04:40.000Z | 2021-11-15T00:53:31.000Z | #!/usr/bin/env python
from proddb.table import table
from proddb.dbenv import *
import sys,commands,os
from subprocess import Popen, PIPE
in_project=sys.argv[1]
t=table(in_project)
if not t.exist():
print 'Project does not exist:',sys.argv[1]
sys.exit(1)
jobid = int(sys.argv[2])
session = t.job_session(job_in... | 23.393939 | 75 | 0.709521 | 516 | 3,088 | 4.106589 | 0.302326 | 0.009438 | 0.030203 | 0.015573 | 0.149127 | 0.094384 | 0.022652 | 0.022652 | 0.022652 | 0 | 0 | 0.00995 | 0.153821 | 3,088 | 131 | 76 | 23.572519 | 0.800995 | 0.128562 | 0 | 0.162791 | 0 | 0 | 0.163174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 0.151163 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6aafd015ae646edaac2553ac7a47160d4cf55e32 | 479 | py | Python | mcpipy/benchmark.py | sprintingkiwi/pycraft_mod | a1ce8817ccff3e701aa787a2e531df5a6cc8f887 | [
"MIT"
] | 15 | 2017-08-27T15:33:19.000Z | 2021-05-05T07:30:57.000Z | mcpipy/benchmark.py | sprintingkiwi/pycraft_mod | a1ce8817ccff3e701aa787a2e531df5a6cc8f887 | [
"MIT"
] | 2 | 2018-11-30T19:56:02.000Z | 2021-09-24T05:20:39.000Z | mcpipy/benchmark.py | sprintingkiwi/pycraft_mod | a1ce8817ccff3e701aa787a2e531df5a6cc8f887 | [
"MIT"
] | 4 | 2018-05-10T19:37:06.000Z | 2019-09-02T19:28:14.000Z | from time import time
from mcpi.minecraft import Minecraft
mc = Minecraft.create()
t = time()
for i in range(1000):
mc.getBlock(0,0,0)
print "getBlock : {}ms".format(1000.*(time()-t)/1000.)
t = time()
for i in range(10000):
mc.setBlock(0,0,0,1)
mc.getBlock(0,0,0)
print "setBlock same : {}ms".format(1000.*(time(... | 26.611111 | 65 | 0.655532 | 87 | 479 | 3.609195 | 0.264368 | 0.063694 | 0.047771 | 0.085987 | 0.691083 | 0.636943 | 0.388535 | 0.388535 | 0.216561 | 0.216561 | 0 | 0.137019 | 0.131524 | 479 | 17 | 66 | 28.176471 | 0.617788 | 0 | 0 | 0.470588 | 0 | 0 | 0.125261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6abaf7d30c1e54f0fb88c8722e937ba7e73fbc75 | 308 | py | Python | openconcept/utilities/nodes.py | bbrelje/openconcept | b41bc831ed6aa2742ec35cacd3249395ee4527db | [
"MIT"
] | null | null | null | openconcept/utilities/nodes.py | bbrelje/openconcept | b41bc831ed6aa2742ec35cacd3249395ee4527db | [
"MIT"
] | 6 | 2018-06-28T18:54:36.000Z | 2021-12-17T16:18:20.000Z | openconcept/utilities/nodes.py | bbrelje/openconcept | b41bc831ed6aa2742ec35cacd3249395ee4527db | [
"MIT"
] | null | null | null | from __future__ import division
def compute_num_nodes(n_int_per_seg, mission_segments):
n_segments = len(mission_segments)
nn = (2*n_int_per_seg+1)
nn_tot_to = nn*3 +2 #v0v1,v1vr,v1v0, vtr, v2
nn_tot_m = nn*n_segments
nn_tot=nn_tot_to+nn_tot_m
return nn, nn_tot_to, nn_tot_m, nn_tot | 30.8 | 55 | 0.737013 | 61 | 308 | 3.229508 | 0.459016 | 0.203046 | 0.106599 | 0.137056 | 0.13198 | 0.13198 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0.175325 | 308 | 10 | 56 | 30.8 | 0.73622 | 0.074675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 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 |
6abc6aa32f049fcd90fede5a0bda8f45ed017602 | 346 | py | Python | Applications/mari/3.0.2/package.py | cashmerepipeline/CashmereRez | 13a73931d715ffac27c337abcd6df97b5c47534b | [
"MIT"
] | null | null | null | Applications/mari/3.0.2/package.py | cashmerepipeline/CashmereRez | 13a73931d715ffac27c337abcd6df97b5c47534b | [
"MIT"
] | null | null | null | Applications/mari/3.0.2/package.py | cashmerepipeline/CashmereRez | 13a73931d715ffac27c337abcd6df97b5c47534b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
name = 'mari'
version = '3.0.2'
author = ['mari']
variants = []
def commands():
import os
env.foundry_LICENSE.set("5053@rlm.cashmere.com")
applications_path = os.environ["APPLICATIONS_PATH"]
env.PATH.prepend(os.path.join(applications_path, "mari", "%s"%version, "Bundle", "bin... | 21.625 | 113 | 0.638728 | 46 | 346 | 4.717391 | 0.717391 | 0.221198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.150289 | 346 | 15 | 114 | 23.066667 | 0.710884 | 0.060694 | 0 | 0 | 0 | 0 | 0.208075 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ac03b5c5a91c197db4aa8e2aa9f5f698aa45064 | 680 | py | Python | client/src/dolbyio_rest_apis/media/models/webhook.py | dolbyio-samples/dolbyio-rest-apis-client-python | 37354dc10f967c4656776f9e2651a2284a11f530 | [
"MIT"
] | 1 | 2021-12-23T17:55:06.000Z | 2021-12-23T17:55:06.000Z | client/src/dolbyio_rest_apis/media/models/webhook.py | dolbyio-samples/dolbyio-rest-apis-client-python | 37354dc10f967c4656776f9e2651a2284a11f530 | [
"MIT"
] | null | null | null | client/src/dolbyio_rest_apis/media/models/webhook.py | dolbyio-samples/dolbyio-rest-apis-client-python | 37354dc10f967c4656776f9e2651a2284a11f530 | [
"MIT"
] | null | null | null | """
dolbyio_rest_apis.media.models.webhook
~~~~~~~~~~~~~~~
This module contains the Webhook model.
"""
from dolbyio_rest_apis.core.helpers import get_value_or_default
class Webhook(dict):
"""The :class:`Webhook` object, which represents a webhook."""
def __init__(self, dictionary: dict):
dict.__init... | 29.565217 | 74 | 0.657353 | 85 | 680 | 4.952941 | 0.423529 | 0.07601 | 0.095012 | 0.16152 | 0.118765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214706 | 680 | 22 | 75 | 30.909091 | 0.78839 | 0.223529 | 0 | 0 | 0 | 0 | 0.069903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.272727 | 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 |
6ac71e3030e097c34662ed28327689d4daa1fdb3 | 605 | py | Python | scripts/generate_graph.py | Centimitr/real-edges | a9ce8f1aee16bc5aaed97d5537f031050448e7b7 | [
"MIT"
] | null | null | null | scripts/generate_graph.py | Centimitr/real-edges | a9ce8f1aee16bc5aaed97d5537f031050448e7b7 | [
"MIT"
] | null | null | null | scripts/generate_graph.py | Centimitr/real-edges | a9ce8f1aee16bc5aaed97d5537f031050448e7b7 | [
"MIT"
] | null | null | null | import networkx as nx
import linecache
# generate a graph
# G = nx.Graph()
G = nx.DiGraph()
count = len(open('train.txt', 'r').readlines()) # count rows in train.txt
cnt = 0
pair = [['source', 'sink']]
while cnt < count:
row = linecache.getline('train.txt', cnt)
row = row.strip('\n')
row = row.split("\t"... | 22.407407 | 74 | 0.585124 | 98 | 605 | 3.561224 | 0.479592 | 0.068768 | 0.045845 | 0.045845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014957 | 0.226446 | 605 | 26 | 75 | 23.269231 | 0.730769 | 0.180165 | 0 | 0 | 1 | 0 | 0.095918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.055556 | 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 |
6accaeb383733815269bd28d9d8f68d553ace7d4 | 1,663 | py | Python | NN/layerversions/layers1.py | nayyarv/CodeANet | 30c8d95fff96bdca72b49de551f38e33cd59a5f6 | [
"MIT"
] | null | null | null | NN/layerversions/layers1.py | nayyarv/CodeANet | 30c8d95fff96bdca72b49de551f38e33cd59a5f6 | [
"MIT"
] | null | null | null | NN/layerversions/layers1.py | nayyarv/CodeANet | 30c8d95fff96bdca72b49de551f38e33cd59a5f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Varun Nayyar <nayyarv@gmail.com>"
import numpy as np
class Layer:
def forward(self, x):
pass
def backward(self, dldy):
pass
class FullyConnected(Layer):
def __init__(self, indim, hiddendim, init="xavier"):
if init ==... | 23.097222 | 60 | 0.540589 | 217 | 1,663 | 4.082949 | 0.368664 | 0.036117 | 0.063205 | 0.06772 | 0.083521 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006301 | 0.33193 | 1,663 | 71 | 61 | 23.422535 | 0.791179 | 0.026458 | 0 | 0.235294 | 0 | 0 | 0.067409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215686 | false | 0.039216 | 0.039216 | 0.019608 | 0.45098 | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ad9d2fd0e510dfc1e42a92a002d7632823ba7f2 | 616 | py | Python | openelevationservice/__init__.py | TheGreatRefrigerator/openelevationservice | 0f2dcc00766eb5ce0b58c38dedc4a5bcd5b74861 | [
"MIT"
] | null | null | null | openelevationservice/__init__.py | TheGreatRefrigerator/openelevationservice | 0f2dcc00766eb5ce0b58c38dedc4a5bcd5b74861 | [
"MIT"
] | null | null | null | openelevationservice/__init__.py | TheGreatRefrigerator/openelevationservice | 0f2dcc00766eb5ce0b58c38dedc4a5bcd5b74861 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from os import getcwd, path, environ, makedirs
from yaml import safe_load
basedir = path.abspath(path.dirname(__file__))
SETTINGS = safe_load(open(path.join(basedir, 'server', 'ops_settings.yml')))
TILES_DIR = path.join(getcwd(), 'tiles')
if "TESTING" in environ:
SETTINGS['provider_param... | 29.333333 | 107 | 0.688312 | 81 | 616 | 4.975309 | 0.530864 | 0.079404 | 0.193548 | 0.079404 | 0.282878 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01341 | 0.152597 | 616 | 21 | 108 | 29.333333 | 0.758621 | 0.034091 | 0 | 0 | 0 | 0 | 0.225589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
6adbcbc48c3c7bbd781656d1642897c73a4dadb8 | 2,327 | py | Python | vcapp/transxchange_constants.py | edwinsteele/visual-commute | c0abeae79b1cd9615f48b32bf9d45c53746fc82c | [
"CC0-1.0"
] | null | null | null | vcapp/transxchange_constants.py | edwinsteele/visual-commute | c0abeae79b1cd9615f48b32bf9d45c53746fc82c | [
"CC0-1.0"
] | null | null | null | vcapp/transxchange_constants.py | edwinsteele/visual-commute | c0abeae79b1cd9615f48b32bf9d45c53746fc82c | [
"CC0-1.0"
] | null | null | null | ALL_BLUE_MOUNTAINS_SERVICES = range(9833, 9848)
INBOUND_BLUE_MOUNTAINS_SERVICES = (9833, 9835, 9838, 9840, 9841, 9843, 9844,
9847)
YELLOW_LINE_SERVICES = [9901, 9903, 9904, 9906, 9908, 9909, 9911, 9964, 9965,
9966, 9967, 9968, 9969, 9972, 9973, 9974]
# 9847 has... | 42.309091 | 77 | 0.554362 | 255 | 2,327 | 4.905882 | 0.380392 | 0.022382 | 0.071942 | 0.079936 | 0.177458 | 0.089528 | 0.089528 | 0.089528 | 0.089528 | 0.089528 | 0 | 0.121212 | 0.333477 | 2,327 | 54 | 78 | 43.092593 | 0.685364 | 0.141384 | 0 | 0 | 0 | 0 | 0.336514 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6adcd78bdeb70c39205b0ca14897cdb7e8cdf5b1 | 582 | py | Python | tensorflow_backend.py | kaa/coins-notebook | 1772851fc18fd29971554a360875d51c9058e02e | [
"MIT"
] | 31 | 2018-04-16T08:39:03.000Z | 2022-03-11T14:42:40.000Z | tensorflow_backend.py | kaa/coins-notebook | 1772851fc18fd29971554a360875d51c9058e02e | [
"MIT"
] | 2 | 2018-09-19T02:09:14.000Z | 2019-04-03T12:30:11.000Z | tensorflow_backend.py | kaa/coins-notebook | 1772851fc18fd29971554a360875d51c9058e02e | [
"MIT"
] | 7 | 2018-12-18T15:03:42.000Z | 2020-01-17T09:47:28.000Z | import tensorflow as tf
from keras.backend import tensorflow_backend as KTF
from keras.backend.common import image_data_format
py_all = all
def depth_to_space(input, scale, data_format=None):
''' Uses phase shift algorithm to convert channels/depth for spatial resolution '''
if data_format is None:
d... | 29.1 | 87 | 0.723368 | 83 | 582 | 4.819277 | 0.46988 | 0.3 | 0.08 | 0.085 | 0.16 | 0.16 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0.201031 | 582 | 20 | 88 | 29.1 | 0.860215 | 0.128866 | 0 | 0 | 0 | 0 | 0.044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 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 |
6adcfbffd778108ce990889490209935299e08e1 | 542 | py | Python | app/entities/constants.py | Rjtsahu/covid19-analysis-console | 6cab81bd5e12b52fa5d1cc27fb13ba8f262e5018 | [
"Apache-2.0"
] | 2 | 2020-04-12T09:22:48.000Z | 2020-04-12T16:29:07.000Z | app/entities/constants.py | Rjtsahu/covid19-analysis-console | 6cab81bd5e12b52fa5d1cc27fb13ba8f262e5018 | [
"Apache-2.0"
] | null | null | null | app/entities/constants.py | Rjtsahu/covid19-analysis-console | 6cab81bd5e12b52fa5d1cc27fb13ba8f262e5018 | [
"Apache-2.0"
] | null | null | null | import os
PAGE_SIZE = 20
CSV_FILE_PATH = os.path.join(os.path.dirname(__file__), '..', '..', 'covid_19_data.csv')
class ConsoleColor:
"""
Constant class to hold commonly used console colors include normal bold and background colors
"""
RED = '\033[91m {}\033[00m'
GREEN = '\033[92m {}\033[00m'
... | 20.846154 | 97 | 0.605166 | 80 | 542 | 3.9 | 0.6125 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159145 | 0.223247 | 542 | 25 | 98 | 21.68 | 0.581948 | 0.171587 | 0 | 0 | 0 | 0 | 0.300231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6ae03159817f4191cc40b3c730fdedfdb536d2f8 | 330 | py | Python | part.py | zeezoich/python_class | 22017916f7a44b823b3e2887ff48de01ef8a5080 | [
"MIT"
] | null | null | null | part.py | zeezoich/python_class | 22017916f7a44b823b3e2887ff48de01ef8a5080 | [
"MIT"
] | null | null | null | part.py | zeezoich/python_class | 22017916f7a44b823b3e2887ff48de01ef8a5080 | [
"MIT"
] | null | null | null | import sys
partition_number = 1
def part(n, list):
if n == 0:
global partition_number
print(f"{partition_number} - {list} == {sum(list)}")
partition_number += 1
return
for i in range(n,0,-1):
if len(list) > 0 and i < list[-1]:
continue
part(n - i, list + [i])
n = int(sys.argv[1])
pa... | 18.333333 | 55 | 0.572727 | 54 | 330 | 3.425926 | 0.462963 | 0.324324 | 0.172973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.254545 | 330 | 17 | 56 | 19.411765 | 0.719512 | 0 | 0 | 0 | 0 | 0 | 0.134185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0.071429 | 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 |
6ae091ec4439408e2474d72082916da279371929 | 2,228 | py | Python | skconfig/exceptions.py | sshakya270/skyDope | 75d0529bcb9371fce54bd0212116f3a3b9b4e438 | [
"MIT"
] | null | null | null | skconfig/exceptions.py | sshakya270/skyDope | 75d0529bcb9371fce54bd0212116f3a3b9b4e438 | [
"MIT"
] | 2 | 2019-04-02T09:47:23.000Z | 2019-04-13T10:18:14.000Z | skconfig/exceptions.py | sshakya270/skyDope | 75d0529bcb9371fce54bd0212116f3a3b9b4e438 | [
"MIT"
] | null | null | null | class SKConfigValueError(ValueError):
pass
class InvalidParam(SKConfigValueError):
pass
class InvalidParamName(InvalidParam):
def __init__(self, name):
super().__init__("{} is a invalid parameter name".format(name))
class InvalidParamType(InvalidParam):
def __init__(self, name, correct_typ... | 29.706667 | 77 | 0.571813 | 224 | 2,228 | 5.357143 | 0.294643 | 0.040833 | 0.055 | 0.075 | 0.221667 | 0.038333 | 0 | 0 | 0 | 0 | 0 | 0.000652 | 0.31149 | 2,228 | 75 | 78 | 29.706667 | 0.781617 | 0 | 0 | 0.105263 | 0 | 0 | 0.101391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.035088 | 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 |
6ae5d2ed4a89ecc65154c513b089bb112b5aa7c3 | 1,995 | py | Python | stomp/test/override_threading_test.py | rnixx/stomp.py | 3ccf9a02d8a9824964c3bcc23135a3dee1616bab | [
"Apache-2.0"
] | null | null | null | stomp/test/override_threading_test.py | rnixx/stomp.py | 3ccf9a02d8a9824964c3bcc23135a3dee1616bab | [
"Apache-2.0"
] | null | null | null | stomp/test/override_threading_test.py | rnixx/stomp.py | 3ccf9a02d8a9824964c3bcc23135a3dee1616bab | [
"Apache-2.0"
] | null | null | null | import os
import signal
import time
import unittest
import stomp
from stomp import exception
from stomp.backward import monotonic
from stomp.listener import TestListener
from stomp.test.testutils import *
from concurrent.futures import ThreadPoolExecutor
executor = ThreadPoolExecutor()
def create_thread(fc):
f... | 31.171875 | 108 | 0.684712 | 243 | 1,995 | 5.489712 | 0.399177 | 0.071964 | 0.038231 | 0.047226 | 0.203148 | 0.123688 | 0.123688 | 0.123688 | 0.123688 | 0.088456 | 0 | 0.008254 | 0.210526 | 1,995 | 64 | 109 | 31.171875 | 0.83873 | 0.013033 | 0 | 0.043478 | 0 | 0 | 0.100102 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.108696 | false | 0.065217 | 0.217391 | 0 | 0.391304 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ae5f75da0de6f286cbde47e50c32ce3d6ca9eca | 8,231 | py | Python | transcribe.py | labrlearning/overview-of-aws-transcribe | e8120887135216b737ad049ad21c3a4b50cc31db | [
"Apache-2.0"
] | null | null | null | transcribe.py | labrlearning/overview-of-aws-transcribe | e8120887135216b737ad049ad21c3a4b50cc31db | [
"Apache-2.0"
] | null | null | null | transcribe.py | labrlearning/overview-of-aws-transcribe | e8120887135216b737ad049ad21c3a4b50cc31db | [
"Apache-2.0"
] | null | null | null | import time
import boto3
import sys
from optparse import OptionParser
from datetime import datetime
def submit(**kwargs):
jobname = kwargs['jobname']
job_url = kwargs['mediaurl']
format = kwargs['format']
language = kwargs['language']
sample = int(kwargs['sample'])
transcribe = boto3.clie... | 34.439331 | 95 | 0.552059 | 921 | 8,231 | 4.880565 | 0.22367 | 0.022024 | 0.036707 | 0.025362 | 0.329032 | 0.283649 | 0.264294 | 0.222024 | 0.222024 | 0.203337 | 0 | 0.004371 | 0.332888 | 8,231 | 239 | 96 | 34.439331 | 0.814241 | 0.079091 | 0 | 0.347561 | 0 | 0 | 0.234848 | 0.017631 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054878 | null | null | 0.060976 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6aec3d34f4e8f6cc2ecd2d88ecb00e3c48eec7da | 5,754 | py | Python | tests/views/gtk3/widgets/test_combo.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 26 | 2019-05-15T02:03:47.000Z | 2022-02-21T07:28:11.000Z | tests/views/gtk3/widgets/test_combo.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 815 | 2019-05-10T12:31:52.000Z | 2022-03-31T12:56:26.000Z | tests/views/gtk3/widgets/test_combo.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 9 | 2019-04-20T23:06:29.000Z | 2022-01-24T21:21:04.000Z | # pylint: skip-file
# type: ignore
# -*- coding: utf-8 -*-
#
# tests.views.gtk3.widgets.test_combo.py is part of The RAMSTK Project
#
# All rights reserved.
"""Test class for the GTK3 combo module algorithms and models."""
# Third Party Imports
import pytest
# RAMSTK Package Imports
from ramstk.views.gtk3 impor... | 34.662651 | 133 | 0.606361 | 713 | 5,754 | 4.671809 | 0.179523 | 0.059442 | 0.064845 | 0.07205 | 0.737016 | 0.7136 | 0.629841 | 0.504653 | 0.408886 | 0.403783 | 0 | 0.014541 | 0.270942 | 5,754 | 165 | 134 | 34.872727 | 0.779499 | 0.21585 | 0 | 0.555556 | 0 | 0 | 0.09689 | 0 | 0 | 0 | 0 | 0 | 0.239316 | 1 | 0.094017 | false | 0 | 0.025641 | 0 | 0.128205 | 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 |
0a727df4cf84fc7670071ec85d7c9b3abd378e7a | 2,129 | py | Python | src/hardware_classes/tlb6700_class.py | suryajb/instrumet_control | 96c209bc8d6a43d61fe3853e151ab01b93cc41e8 | [
"MIT"
] | 1 | 2022-03-08T18:59:32.000Z | 2022-03-08T18:59:32.000Z | src/hardware_classes/tlb6700_class.py | suryajb/instrument_control | 96c209bc8d6a43d61fe3853e151ab01b93cc41e8 | [
"MIT"
] | null | null | null | src/hardware_classes/tlb6700_class.py | suryajb/instrument_control | 96c209bc8d6a43d61fe3853e151ab01b93cc41e8 | [
"MIT"
] | null | null | null | import sys
import os
# sys.path.append('C:\\Users\\Lynn\\Desktop\\instrument_control\\libraries')
sys.path.append(os.getcwd()[:os.getcwd().find("instrument_control")+len("instrument_control")]+'\\libraries')
from libraries import *
class tlb6700(object):
def __init__(self, **kwargs):
super(tlb6700,self).__i... | 28.386667 | 110 | 0.68295 | 318 | 2,129 | 4.496855 | 0.286164 | 0.125874 | 0.125874 | 0.156643 | 0.335664 | 0.264336 | 0.173427 | 0.040559 | 0 | 0 | 0 | 0.014477 | 0.156411 | 2,129 | 75 | 111 | 28.386667 | 0.781737 | 0.066698 | 0 | 0.035088 | 0 | 0 | 0.243187 | 0.061321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22807 | false | 0 | 0.052632 | 0.017544 | 0.45614 | 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 |
0a737357cd327bfe36885c9e5b445ac6ce1305bd | 7,235 | py | Python | parser/team16/expresiones.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team16/expresiones.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team16/expresiones.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from enum import Enum
class OPERACION_ARITMETICA(Enum) :
MAS = 1
MENOS = 2
MULTI = 3
DIVIDIDO = 4
RESIDUO = 5
POTENCIA = 6
CUADRATICA = 7
CUBICA = 8
class OPERACION_LOGICA(Enum) :
AND = 1
OR = 2
XOR = 3
#nuevas logias Edilson
BETWEEN = 4
NOT_BETWEEN = 5
IS_D... | 21.405325 | 73 | 0.563234 | 787 | 7,235 | 4.912325 | 0.315121 | 0.059752 | 0.093896 | 0.09312 | 0.435851 | 0.406105 | 0.391619 | 0.356182 | 0.290481 | 0.274703 | 0 | 0.046157 | 0.266344 | 7,235 | 338 | 74 | 21.405325 | 0.682178 | 0.105321 | 0 | 0.283465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125984 | false | 0 | 0.003937 | 0 | 0.771654 | 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 |
0a76f222bf66cc19e14c69cc1fb6fd25042a2925 | 5,767 | py | Python | 02_data_types/04_collections.py | twiindan/selenium_lessons | 798557e8f584f9e6655414c13f232017483f0439 | [
"Apache-2.0"
] | null | null | null | 02_data_types/04_collections.py | twiindan/selenium_lessons | 798557e8f584f9e6655414c13f232017483f0439 | [
"Apache-2.0"
] | null | null | null | 02_data_types/04_collections.py | twiindan/selenium_lessons | 798557e8f584f9e6655414c13f232017483f0439 | [
"Apache-2.0"
] | 1 | 2020-07-16T09:49:47.000Z | 2020-07-16T09:49:47.000Z | #-*- coding: utf-8 -*-
# Let's start with lists
spam = ["eggs", 7.12345] # This is a list, a comma-separated sequence of values between square brackets
print(spam)
print(type(spam))
eggs = [spam,
1.2345,
"fooo"] # No problem with multi-line declaration
print(eggs)
#========... | 31.172973 | 105 | 0.494018 | 710 | 5,767 | 4.012676 | 0.308451 | 0.104247 | 0.016848 | 0.019656 | 0.295191 | 0.279747 | 0.216216 | 0.162162 | 0.111618 | 0.090558 | 0 | 0.033311 | 0.22438 | 5,767 | 184 | 106 | 31.342391 | 0.603622 | 0.600312 | 0 | 0.435294 | 0 | 0 | 0.080196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.564706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0a7ae6d658a971121b0c2a3f11b5bbd220484bf8 | 467 | py | Python | dictionary.py | joeysal/astr-119-hw-2 | cb63f577370e5835c8ae027e624ad2459e71c3cb | [
"MIT"
] | null | null | null | dictionary.py | joeysal/astr-119-hw-2 | cb63f577370e5835c8ae027e624ad2459e71c3cb | [
"MIT"
] | 1 | 2020-10-11T23:17:55.000Z | 2020-10-17T01:03:17.000Z | dictionary.py | joeysal/astr-119-hw-2 | cb63f577370e5835c8ae027e624ad2459e71c3cb | [
"MIT"
] | null | null | null | #define a dictionary data structure
#dictionaries have key:valyue pairs for the elements
example_dict = {
"class" : "ASTR 119",
"prof" : "Brant",
"awesomeness" : 10
}
print ("The type of example_dict is ", type(example_dict))
#get value via key
course = example_dict["class"]
print(course)
example_dict["awesomene... | 19.458333 | 58 | 0.732334 | 68 | 467 | 4.911765 | 0.514706 | 0.263473 | 0.095808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015113 | 0.149893 | 467 | 24 | 59 | 19.458333 | 0.826196 | 0.336188 | 0 | 0 | 0 | 0 | 0.251634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
0a7dd9f0d1cf48e4324b99a921e77eb41a3d0a1d | 2,298 | py | Python | multilang/python/testpyspout.py | NCordon/sinfonier | 4b40ad538b06a9902913ec4a22ff9a4f6eda8f76 | [
"Apache-2.0"
] | 2 | 2016-02-16T18:13:51.000Z | 2018-02-10T18:10:06.000Z | multilang/python/testpyspout.py | NCordon/sinfonier | 4b40ad538b06a9902913ec4a22ff9a4f6eda8f76 | [
"Apache-2.0"
] | null | null | null | multilang/python/testpyspout.py | NCordon/sinfonier | 4b40ad538b06a9902913ec4a22ff9a4f6eda8f76 | [
"Apache-2.0"
] | 3 | 2016-02-03T00:35:32.000Z | 2021-08-13T03:41:44.000Z |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015 sinfonier-project
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 restricti... | 33.794118 | 119 | 0.697128 | 301 | 2,298 | 5.292359 | 0.531561 | 0.055242 | 0.016321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002831 | 0.231506 | 2,298 | 68 | 120 | 33.794118 | 0.899207 | 0.573107 | 0 | 0 | 0 | 0 | 0.035516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.043478 | 0.217391 | 0 | 0.478261 | 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 |
0a7df39407267bcf0988588b6a24a497d8e46bae | 15,158 | py | Python | tests/test_ptaskgroup.py | youknowone/aiotools | b405d546465035eb3056c2ddc649cada1660d683 | [
"MIT"
] | null | null | null | tests/test_ptaskgroup.py | youknowone/aiotools | b405d546465035eb3056c2ddc649cada1660d683 | [
"MIT"
] | null | null | null | tests/test_ptaskgroup.py | youknowone/aiotools | b405d546465035eb3056c2ddc649cada1660d683 | [
"MIT"
] | null | null | null | import asyncio
import sys
from unittest import mock
import pytest
import aiotools
# NOTE: Until pytest-asyncio support ExceptionGroup,
# assertion failures inside PersistentTaskGroup/TaskGroup blocks
# may be represented as sub-task errors instead of
# being logged explicitly by pytest.
@pytest.... | 29.15 | 85 | 0.603378 | 1,825 | 15,158 | 4.85589 | 0.141918 | 0.046716 | 0.039269 | 0.045024 | 0.715978 | 0.672422 | 0.648725 | 0.591063 | 0.561273 | 0.521666 | 0 | 0.019487 | 0.312772 | 15,158 | 519 | 86 | 29.206166 | 0.831237 | 0.131878 | 0 | 0.744444 | 0 | 0 | 0.022878 | 0.001678 | 0 | 0 | 0 | 0 | 0.183333 | 1 | 0.002778 | false | 0.002778 | 0.013889 | 0 | 0.022222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a7e45ffdfdcd176745ac8043ac0408907962c20 | 927 | py | Python | test_data/factories.py | adams-okode/django-volt-admin | 0fd460ce71c7b872562cafb2787b67be2b50d252 | [
"MIT"
] | null | null | null | test_data/factories.py | adams-okode/django-volt-admin | 0fd460ce71c7b872562cafb2787b67be2b50d252 | [
"MIT"
] | null | null | null | test_data/factories.py | adams-okode/django-volt-admin | 0fd460ce71c7b872562cafb2787b67be2b50d252 | [
"MIT"
] | null | null | null | # factories.py
import factory
from factory.django import DjangoModelFactory
from test_data.models import Person, Thread, Comment, Club
# Defining a factory
class UserFactory(DjangoModelFactory):
class Meta:
model = Person
name = factory.Faker("first_name")
class ThreadFactory(DjangoModelFactory):
... | 25.75 | 73 | 0.731392 | 103 | 927 | 6.475728 | 0.378641 | 0.062969 | 0.161919 | 0.191904 | 0.181409 | 0.14093 | 0.14093 | 0.14093 | 0.14093 | 0.14093 | 0 | 0.00527 | 0.18123 | 927 | 35 | 74 | 26.485714 | 0.873518 | 0.07767 | 0 | 0.181818 | 0 | 0 | 0.039953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.818182 | 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 |
0a814d73475346af21940b5e17fbfa9672c37380 | 1,275 | py | Python | bitey/watcher.py | jgerrish/bitey | a393a83c19338d94116f3405f4b8a0f03ea84d79 | [
"MIT"
] | null | null | null | bitey/watcher.py | jgerrish/bitey | a393a83c19338d94116f3405f4b8a0f03ea84d79 | [
"MIT"
] | null | null | null | bitey/watcher.py | jgerrish/bitey | a393a83c19338d94116f3405f4b8a0f03ea84d79 | [
"MIT"
] | null | null | null | import logging
class Watcher:
"""
A basic Watcher
Users can register a Listener to this Watcher to get updates when the
object the Watcher watches is updated.
"""
def __init__(self):
"Initialize the watcher with an empty set of listeners"
# When Watcher is subclassed, this nee... | 33.552632 | 87 | 0.622745 | 152 | 1,275 | 5.144737 | 0.467105 | 0.116368 | 0.040921 | 0.051151 | 0.094629 | 0.094629 | 0.094629 | 0.094629 | 0 | 0 | 0 | 0 | 0.303529 | 1,275 | 37 | 88 | 34.459459 | 0.880631 | 0.446275 | 0 | 0.375 | 0 | 0 | 0.137313 | 0.031343 | 0 | 0 | 0 | 0.027027 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.3125 | 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 |
0a83d376fe95a05e9ff5a5fd82e9a45b2a6a2dd5 | 6,825 | py | Python | third_party/tlslite/tlslite/integration/TLSTwistedProtocolWrapper.py | Acidburn0zzz/chromium-1 | 4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/tlslite/tlslite/integration/TLSTwistedProtocolWrapper.py | Acidburn0zzz/chromium-1 | 4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/tlslite/tlslite/integration/TLSTwistedProtocolWrapper.py | Acidburn0zzz/chromium-1 | 4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | """TLS Lite + Twisted."""
from twisted.protocols.policies import ProtocolWrapper, WrappingFactory
from twisted.python.failure import Failure
from asyncstatemachine import AsyncStateMachine
from tlslite.tlsconnection import TLSConnection
from tlslite.errors import *
import socket
import errno
#The TLSConnection is ... | 34.64467 | 78 | 0.628278 | 655 | 6,825 | 6.519084 | 0.294656 | 0.028103 | 0.012646 | 0.017799 | 0.252927 | 0.198595 | 0.181265 | 0.181265 | 0.161124 | 0.161124 | 0 | 0.006479 | 0.298901 | 6,825 | 196 | 79 | 34.821429 | 0.885893 | 0.053626 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092105 | 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 |
0a84b2de4a4800d043f49a70619440e737de0668 | 10,444 | py | Python | src/whitespace_repair/utils/mask.py | bastiscode/trt | 4b32e36d427875417df58554b89fbe88d273e62c | [
"Apache-2.0"
] | null | null | null | src/whitespace_repair/utils/mask.py | bastiscode/trt | 4b32e36d427875417df58554b89fbe88d273e62c | [
"Apache-2.0"
] | null | null | null | src/whitespace_repair/utils/mask.py | bastiscode/trt | 4b32e36d427875417df58554b89fbe88d273e62c | [
"Apache-2.0"
] | null | null | null | from typing import Tuple
import torch
_MASK_VALUE = float("-inf")
def generate_square_subsequent_mask(size: int, size_with_padding: int, device: torch.device) -> torch.Tensor:
"""
Generate a square mask where values after the current position are masked out.
Masked out positions have the value -10000.0... | 42.283401 | 117 | 0.61892 | 1,461 | 10,444 | 4.22245 | 0.08898 | 0.083806 | 0.11185 | 0.037932 | 0.767547 | 0.693954 | 0.639974 | 0.567839 | 0.539472 | 0.486789 | 0 | 0.027421 | 0.284182 | 10,444 | 246 | 118 | 42.455285 | 0.797753 | 0.361356 | 0 | 0.231579 | 1 | 0 | 0.102753 | 0 | 0 | 0 | 0 | 0 | 0.084211 | 1 | 0.105263 | false | 0 | 0.021053 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a8ebb9dd309ecf4d9a5bc6aff68493596fb15db | 6,436 | py | Python | zoopt/objective.py | HowardHu97/ZOOpt | 01568e8e6b0e65ac310d362af2da5245ac375e53 | [
"MIT"
] | 403 | 2017-04-19T03:01:12.000Z | 2022-02-27T04:31:27.000Z | zoopt/objective.py | HowardHu97/ZOOpt | 01568e8e6b0e65ac310d362af2da5245ac375e53 | [
"MIT"
] | 15 | 2017-05-07T10:09:32.000Z | 2020-11-18T11:33:00.000Z | zoopt/objective.py | HowardHu97/ZOOpt | 01568e8e6b0e65ac310d362af2da5245ac375e53 | [
"MIT"
] | 97 | 2017-04-19T03:52:21.000Z | 2022-03-03T13:05:02.000Z | """
This module contains the class Objective
Author:
Yu-Ren Liu, Xiong-Hui Chen
"""
from zoopt.solution import Solution
from zoopt.utils.zoo_global import pos_inf
from zoopt.utils.tool_function import ToolFunction
import numpy as np
class Objective:
"""
This class represents the objective function and i... | 29.658986 | 101 | 0.620572 | 753 | 6,436 | 5.005312 | 0.175299 | 0.025471 | 0.033431 | 0.013531 | 0.145662 | 0.118599 | 0.094985 | 0.085434 | 0.085434 | 0.060494 | 0 | 0.001771 | 0.298011 | 6,436 | 216 | 102 | 29.796296 | 0.832448 | 0.213487 | 0 | 0.149123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245614 | false | 0 | 0.035088 | 0.078947 | 0.447368 | 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 |
0a99419e4af97d660392a2ab25d2fd02be5e6c97 | 1,273 | py | Python | fpo-api/api/views/SurveyPdfView.py | SodhiA1/violation-dispute-form | 8d1d270c1aea831b2e6d7b65cfa47e02dcbe4132 | [
"Apache-2.0"
] | null | null | null | fpo-api/api/views/SurveyPdfView.py | SodhiA1/violation-dispute-form | 8d1d270c1aea831b2e6d7b65cfa47e02dcbe4132 | [
"Apache-2.0"
] | null | null | null | fpo-api/api/views/SurveyPdfView.py | SodhiA1/violation-dispute-form | 8d1d270c1aea831b2e6d7b65cfa47e02dcbe4132 | [
"Apache-2.0"
] | null | null | null | import json
from rest_framework.request import Request
from django.template.loader import get_template
from rest_framework import generics
from api.pdf import render as render_pdf
from django.http import (
HttpResponse
)
class SurveyPdfView(generics.GenericAPIView):
# FIXME - restore authentication?
permi... | 31.825 | 77 | 0.680283 | 135 | 1,273 | 6.251852 | 0.451852 | 0.0391 | 0.040284 | 0.045024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00202 | 0.22231 | 1,273 | 39 | 78 | 32.641026 | 0.850505 | 0.120974 | 0 | 0 | 0 | 0 | 0.105027 | 0.041293 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.038462 | false | 0 | 0.230769 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0a995a73e537e68404e096e2547ea45320019056 | 3,028 | py | Python | sandbox/padding.py | nbari/ftrunk | 4e0d438c1bd0dcd1a8d088a476955b705725c1f9 | [
"BSD-2-Clause"
] | null | null | null | sandbox/padding.py | nbari/ftrunk | 4e0d438c1bd0dcd1a8d088a476955b705725c1f9 | [
"BSD-2-Clause"
] | null | null | null | sandbox/padding.py | nbari/ftrunk | 4e0d438c1bd0dcd1a8d088a476955b705725c1f9 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import bz2
import hashlib
import hmac
import json
import os
import random
import sqlite3
import sys
import time
from Crypto.Cipher import AES
from argparse import ArgumentParser
from base64 import b64encode, b64decode
from multiprocessing import Pool
from tempfile import SpooledTemporaryFile
d... | 30.897959 | 73 | 0.587517 | 416 | 3,028 | 4.15625 | 0.298077 | 0.038172 | 0.020821 | 0.018508 | 0.119144 | 0.096009 | 0.071718 | 0.071718 | 0.043956 | 0 | 0 | 0.033008 | 0.28963 | 3,028 | 97 | 74 | 31.216495 | 0.770804 | 0.089498 | 0 | 0.175 | 0 | 0 | 0.048346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.175 | null | null | 0.0375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a99ecf4f24556fada7eaa02d85f9a81429c2192 | 1,558 | py | Python | iotbx/command_line/lattice_symmetry.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | iotbx/command_line/lattice_symmetry.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | iotbx/command_line/lattice_symmetry.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
# Comments by Phil Evans, MRC-LMB, Cambridge, U.K.
from cctbx import crystal
from cctbx.sgtbx.lattice_symmetry import metric_subgroups
from iotbx.option_parser import option_parser
import sys
def run(args):
command_line = (option_parser(
usage="iotbx.lattice_symmetry [options] [c... | 33.148936 | 71 | 0.677792 | 203 | 1,558 | 4.916256 | 0.492611 | 0.104208 | 0.096192 | 0.063126 | 0.146293 | 0.146293 | 0.146293 | 0.146293 | 0.146293 | 0.146293 | 0 | 0.015504 | 0.172015 | 1,558 | 46 | 72 | 33.869565 | 0.75814 | 0.070603 | 0 | 0.205128 | 0 | 0 | 0.201663 | 0.115731 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.128205 | null | null | 0.128205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a99f3d803b6e229cb1e263e44d343606b5e048b | 5,423 | py | Python | mosealib/merge_fmobed_and_maf_files.py | babisingh/MoSEA | e7b87736292799719e28fb5e6f09375328db876c | [
"ISC"
] | 16 | 2017-03-06T15:10:03.000Z | 2022-02-22T13:22:59.000Z | mosealib/merge_fmobed_and_maf_files.py | babisingh/MoSEA | e7b87736292799719e28fb5e6f09375328db876c | [
"ISC"
] | 6 | 2018-01-09T15:13:12.000Z | 2022-01-05T01:29:29.000Z | mosealib/merge_fmobed_and_maf_files.py | babisingh/MoSEA | e7b87736292799719e28fb5e6f09375328db876c | [
"ISC"
] | 8 | 2017-06-20T21:31:15.000Z | 2021-02-10T17:52:57.000Z | '''
#
# merge *.fmo output and MAF files from TCGA
# MAF files description: https://wiki.nci.nih.gov/display/TCGA/Mutation+Annotation+Format+%28MAF%29+Specification
# fmo files: output file gernerated from fimo (meme package) motif scan, converted to bed format by running script: fmo_to_bed_for_suppa_events
#fmo.bed fo... | 29.796703 | 143 | 0.692052 | 833 | 5,423 | 4.246098 | 0.234094 | 0.014702 | 0.040712 | 0.028838 | 0.094996 | 0.054283 | 0 | 0 | 0 | 0 | 0 | 0.03083 | 0.162641 | 5,423 | 181 | 144 | 29.961326 | 0.748073 | 0.126867 | 0 | 0.049505 | 0 | 0.019802 | 0.237037 | 0.01175 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029703 | null | null | 0.059406 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0a9e0a904de1f4d6a012aa794ddc34e0130f2f2f | 321 | py | Python | clicker.py | Geimers228/PyDev | bf2997e7a4dd3b780caeafbb5a53e87173e6891b | [
"MIT"
] | null | null | null | clicker.py | Geimers228/PyDev | bf2997e7a4dd3b780caeafbb5a53e87173e6891b | [
"MIT"
] | 4 | 2021-01-21T11:41:28.000Z | 2021-01-21T11:42:30.000Z | clicker.py | Geimers228/PyDev | bf2997e7a4dd3b780caeafbb5a53e87173e6891b | [
"MIT"
] | null | null | null | import time
score = 0
print('Target: 1000')
print('Press Enter')
while True:
print('Score: ' + str(score))
click = input('')
score = score + 1
if(score==1000):
print('Score: ' + str(score))
print('')
print('You Win')
time.sleep(3)
break
exit
... | 20.0625 | 38 | 0.492212 | 37 | 321 | 4.27027 | 0.594595 | 0.113924 | 0.164557 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052885 | 0.352025 | 321 | 15 | 39 | 21.4 | 0.706731 | 0 | 0 | 0.133333 | 0 | 0 | 0.143791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.4 | 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 |
0a9fc8e6ec6e7eab67796d8de14cf0e16c60e615 | 945 | py | Python | scripts/plot_runs.py | sidk99/saved-rl | f2516d74f0e807a987b60c5e98e0c41c625d83d3 | [
"MIT"
] | 25 | 2019-07-28T07:45:09.000Z | 2022-03-20T14:31:26.000Z | scripts/plot_runs.py | sidk99/saved-rl | f2516d74f0e807a987b60c5e98e0c41c625d83d3 | [
"MIT"
] | 1 | 2021-07-24T08:37:00.000Z | 2021-07-24T08:53:25.000Z | scripts/plot_runs.py | sidk99/saved-rl | f2516d74f0e807a987b60c5e98e0c41c625d83d3 | [
"MIT"
] | 8 | 2019-07-16T18:52:35.000Z | 2020-10-13T02:54:43.000Z | from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import os
import argparse
import pprint
from dotmap import DotMap
from dmbrl.misc.MBExp import MBExperiment
from dmbrl.controllers.MPC import MPC
from dmbrl.config import create_config
import scipy.io as sio
... | 26.25 | 68 | 0.729101 | 129 | 945 | 5.100775 | 0.511628 | 0.045593 | 0.072948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006345 | 0.166138 | 945 | 36 | 69 | 26.25 | 0.82868 | 0 | 0 | 0 | 0 | 0 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.419355 | 0 | 0.451613 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0aa0ace99dc03440629b8d671ac8da300e49e999 | 2,117 | py | Python | examples/smart_contracts/v1/python/account_delegation.py | vuvth/docs | 277b94fbef35955a4bdb26e1a249c65f55e84700 | [
"MIT"
] | null | null | null | examples/smart_contracts/v1/python/account_delegation.py | vuvth/docs | 277b94fbef35955a4bdb26e1a249c65f55e84700 | [
"MIT"
] | null | null | null | examples/smart_contracts/v1/python/account_delegation.py | vuvth/docs | 277b94fbef35955a4bdb26e1a249c65f55e84700 | [
"MIT"
] | null | null | null | from algosdk import algod, transaction, account, mnemonic
try:
# create logic sig
# b"\x01\x20\x01\x00\x22 is `int 0`
# see more info here: https://developer.algorand.org/docs/features/asc1/sdks/#accessing-teal-program-from-sdks
# program = b"hex-encoded-program"
program = b"\x01\x20\x01\x00... | 37.140351 | 183 | 0.719414 | 248 | 2,117 | 6.076613 | 0.540323 | 0.026543 | 0.00929 | 0.013271 | 0.021234 | 0.021234 | 0 | 0 | 0 | 0 | 0 | 0.026869 | 0.191308 | 2,117 | 56 | 184 | 37.803571 | 0.853388 | 0.3094 | 0 | 0 | 0 | 0.034483 | 0.327336 | 0.084429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068966 | 0.034483 | 0 | 0.034483 | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0aa6ad18ecfb5aaf9b5994b88876a292b56259fb | 664 | py | Python | _posts/00CodeNote/language/Python/API/code/code-noAuth/flaskapi copy.py | ocholuo/jekyll-theme-chirpy | 55d0748ad9ea08750ae40e3ee0fa1c811063bfa4 | [
"MIT"
] | 2 | 2020-09-26T03:32:02.000Z | 2020-10-09T06:01:48.000Z | _posts/00CodeNote/language/Python/API/code/code-noAuth/flaskapi copy.py | ocholuo/jekyll-theme-chirpy | 55d0748ad9ea08750ae40e3ee0fa1c811063bfa4 | [
"MIT"
] | null | null | null | _posts/00CodeNote/language/Python/API/code/code-noAuth/flaskapi copy.py | ocholuo/jekyll-theme-chirpy | 55d0748ad9ea08750ae40e3ee0fa1c811063bfa4 | [
"MIT"
] | null | null | null | from flask import Flask, json
companies = [{"id": 1, "name": "Company One"}, {"id": 2, "name": "Company Two"}]
# initialize Flask
# create a Flask object, and assign it to the variable name api.
api = Flask(__name__)
# declare a route for endpoint.
# When a consumer visits /companies using a GET request, the list o... | 30.181818 | 100 | 0.697289 | 97 | 664 | 4.628866 | 0.608247 | 0.048998 | 0.075724 | 0.106904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014311 | 0.158133 | 664 | 22 | 101 | 30.181818 | 0.788909 | 0.40512 | 0 | 0 | 0 | 0 | 0.194872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.181818 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 1 |
0aa96d6071cbcca048955f824812e29bbd880e4d | 5,046 | py | Python | src/build/util/lib/common/unittest_util.py | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | src/build/util/lib/common/unittest_util.py | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | src/build/util/lib/common/unittest_util.py | Chilledheart/naiveproxy | 9d28da89b325a90d33add830f4202c8b17c7c3e3 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Utilities for dealing with the python unittest module."""
import fnmatch
import re
import sys
import unittest
class _TextTestResult(unittest._TextTestR... | 32.346154 | 80 | 0.692826 | 615 | 5,046 | 5.507317 | 0.255285 | 0.04222 | 0.031887 | 0.022439 | 0.312666 | 0.222321 | 0.19191 | 0.178329 | 0.159433 | 0.130499 | 0 | 0.00224 | 0.203726 | 5,046 | 155 | 81 | 32.554839 | 0.840717 | 0.331748 | 0 | 0.101266 | 0 | 0 | 0.027871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202532 | false | 0 | 0.050633 | 0.050633 | 0.405063 | 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 |
0ab4d02385fa21286af3d80f5bf924e0cb80a6d1 | 2,539 | py | Python | Interfaces/ROI_save__window.py | mylenefarias/360RAT | e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82 | [
"MIT"
] | null | null | null | Interfaces/ROI_save__window.py | mylenefarias/360RAT | e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82 | [
"MIT"
] | null | null | null | Interfaces/ROI_save__window.py | mylenefarias/360RAT | e6b6037c0e4f90a79f0e4a9e7afee887af2b1a82 | [
"MIT"
] | 2 | 2022-02-25T02:33:28.000Z | 2022-02-25T10:10:21.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ROI_label_window_dark.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 impor... | 39.061538 | 83 | 0.692792 | 301 | 2,539 | 5.697674 | 0.448505 | 0.040816 | 0.053061 | 0.065306 | 0.125948 | 0.055977 | 0.055977 | 0.055977 | 0 | 0 | 0 | 0.041016 | 0.193383 | 2,539 | 64 | 84 | 39.671875 | 0.796387 | 0.112643 | 0 | 0.083333 | 1 | 0 | 0.104677 | 0.011581 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.104167 | 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 |
0ab8a004fbf58d115b365468b6474df09f06b291 | 24,818 | py | Python | ominoise_program/ominoise_main_lastrun.py | zhihanyang2022/perception_lab | b4e33eccc6ede3eff8056da58e7936e6d13d3da6 | [
"MIT"
] | null | null | null | ominoise_program/ominoise_main_lastrun.py | zhihanyang2022/perception_lab | b4e33eccc6ede3eff8056da58e7936e6d13d3da6 | [
"MIT"
] | null | null | null | ominoise_program/ominoise_main_lastrun.py | zhihanyang2022/perception_lab | b4e33eccc6ede3eff8056da58e7936e6d13d3da6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v3.2.4),
on Mon Feb 3 21:27:29 2020
If you publish work using this script the most relevant publication is:
Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv ... | 44.476703 | 109 | 0.669151 | 2,956 | 24,818 | 5.473951 | 0.164073 | 0.014832 | 0.013349 | 0.013843 | 0.655089 | 0.610531 | 0.555652 | 0.511031 | 0.460973 | 0.451579 | 0 | 0.008141 | 0.242767 | 24,818 | 557 | 110 | 44.556553 | 0.852818 | 0.294222 | 0 | 0.485411 | 0 | 0 | 0.073752 | 0.022179 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03183 | 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 |
0ac03b89fb64556af4d3eeb1f67f74efe6b1b0bf | 541 | py | Python | setup.py | ioam/parambk | fb9744f216273c7b24e65d037b1d621c08d7fde6 | [
"BSD-3-Clause"
] | 22 | 2017-09-08T14:59:34.000Z | 2019-06-17T21:01:35.000Z | setup.py | ioam/param-bokeh | fb9744f216273c7b24e65d037b1d621c08d7fde6 | [
"BSD-3-Clause"
] | 68 | 2017-08-03T04:09:51.000Z | 2019-05-21T21:46:43.000Z | setup.py | ioam/param-bokeh | fb9744f216273c7b24e65d037b1d621c08d7fde6 | [
"BSD-3-Clause"
] | 8 | 2017-07-25T11:50:33.000Z | 2019-02-13T20:40:41.000Z | from setuptools import setup
import os, sys, shutil
import pyct.build
if __name__=="__main__":
# TODO: hope to eliminate the examples handling from here
# (i.e. all lines except setup()), moving it to pyct
example_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
... | 30.055556 | 75 | 0.648799 | 72 | 541 | 4.597222 | 0.583333 | 0.132931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243993 | 541 | 17 | 76 | 31.823529 | 0.809291 | 0.195933 | 0 | 0 | 0 | 0 | 0.076389 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
0ac3f1328e90f1a03b2c1fab5c644955c4bc56ab | 978 | py | Python | jb/d7/solve.py | wideglide/aoc | f9bd2bcce3357d6e55b56b6dac4778fd04b5fa3b | [
"MIT"
] | null | null | null | jb/d7/solve.py | wideglide/aoc | f9bd2bcce3357d6e55b56b6dac4778fd04b5fa3b | [
"MIT"
] | null | null | null | jb/d7/solve.py | wideglide/aoc | f9bd2bcce3357d6e55b56b6dac4778fd04b5fa3b | [
"MIT"
] | null | null | null |
f = [ l.strip() for l in open('input').readlines() ]
count = 0
count2 = 0
for l in f:
flag = 0
found = 0
for i in range(len(l)-3):
if l[i] == "[" and l.find("]",i+1) > 0:
flag = 1
if l[i] == "]" and flag == 1:
flag = 0
if l[i] == l[i+3] and l[i] != l[i+1] an... | 25.076923 | 66 | 0.373211 | 159 | 978 | 2.295597 | 0.194969 | 0.09863 | 0.065753 | 0.054795 | 0.463014 | 0.427397 | 0.235616 | 0.235616 | 0.235616 | 0.235616 | 0 | 0.070632 | 0.449898 | 978 | 38 | 67 | 25.736842 | 0.607807 | 0 | 0 | 0.388889 | 0 | 0 | 0.011259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ac78f35205c17f7983744168b608ac3e6aba665 | 696 | py | Python | telesign.py | tanwei0319/citi-team50 | 8ba45c31a51905e4276ed158219fccd66e90b886 | [
"MIT"
] | null | null | null | telesign.py | tanwei0319/citi-team50 | 8ba45c31a51905e4276ed158219fccd66e90b886 | [
"MIT"
] | null | null | null | telesign.py | tanwei0319/citi-team50 | 8ba45c31a51905e4276ed158219fccd66e90b886 | [
"MIT"
] | null | null | null | from __future__ import print_function
from telesign.messaging import MessagingClient
import sys, json, numpy as np, pandas as pd
customer_id = "FFFFFFFF-EEEE-DDDD-1234-AB1234567890"
api_key = "EXAMPLE----TE8sTgg45yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw=="
phone_number = "phone_number"
messa... | 29 | 131 | 0.78592 | 91 | 696 | 5.747253 | 0.692308 | 0.063098 | 0.068834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0.130747 | 696 | 24 | 132 | 29 | 0.823141 | 0.018678 | 0 | 0 | 0 | 0.071429 | 0.389458 | 0.181552 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0ac80411b21a13db4ab702c50d283157785c8a93 | 3,917 | py | Python | PasswordGenerator.py | D-Kats/PasswordGenerator | 680a1cd78ac90e91a8fa8eaf127b3103fea37674 | [
"MIT"
] | 2 | 2020-12-18T19:47:32.000Z | 2022-02-26T07:21:32.000Z | PasswordGenerator.py | D-Kats/PasswordGenerator | 680a1cd78ac90e91a8fa8eaf127b3103fea37674 | [
"MIT"
] | null | null | null | PasswordGenerator.py | D-Kats/PasswordGenerator | 680a1cd78ac90e91a8fa8eaf127b3103fea37674 | [
"MIT"
] | null | null | null | #---DKats 2020
import PySimpleGUI as sg
import os
import itertools
import webbrowser
import time
#---function definition
def passGenerator(Inp, Out):
l = Inp.split(',')
if Out == '':
try:
bar_curr_progress = 0
bar_count_step = round(100/len(l)+1)
with open('wordlist.txt', 'w', encoding='... | 39.17 | 113 | 0.657136 | 518 | 3,917 | 4.864865 | 0.310811 | 0.027778 | 0.059524 | 0.042857 | 0.484127 | 0.446825 | 0.423016 | 0.423016 | 0.423016 | 0.423016 | 0 | 0.015716 | 0.17156 | 3,917 | 99 | 114 | 39.565657 | 0.760863 | 0.039061 | 0 | 0.434211 | 0 | 0 | 0.320569 | 0.030635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0.157895 | 0.065789 | 0 | 0.078947 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.