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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6857b16a452aba15ec8e5e8a882ba2c595dd9ae | 351 | py | Python | tests/test_port_utilities.py | ryan-lingle/node-launcher | 4f1f7087a28d76f5b8153adac548d09b0558f6d5 | [
"MIT"
] | 249 | 2019-02-01T17:17:09.000Z | 2022-03-18T21:26:41.000Z | tests/test_port_utilities.py | justinmichael3x/node-launcher | 5a2a646b01803fe284fa18bee99c13c7cbf04498 | [
"MIT"
] | 299 | 2019-02-02T02:01:02.000Z | 2022-02-21T05:13:20.000Z | tests/test_port_utilities.py | justinmichael3x/node-launcher | 5a2a646b01803fe284fa18bee99c13c7cbf04498 | [
"MIT"
] | 49 | 2019-02-11T14:46:40.000Z | 2022-02-20T04:05:14.000Z | import pytest
from node_launcher.port_utilities import is_port_in_use
@pytest.fixture
def used_port():
port = 8000
while port <= 65535:
if is_port_in_use(port):
return port
port += 1
class TestBitcoinConfiguration(object):
def test_is_port_in_use(self, used_port):
as... | 19.5 | 55 | 0.695157 | 51 | 351 | 4.431373 | 0.490196 | 0.106195 | 0.141593 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.236467 | 351 | 17 | 56 | 20.647059 | 0.80597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 |
b68cb9d7a224dbd498917cd5f6499514aedbd484 | 513 | py | Python | tests/web_methods/return_value_task_coroutine.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | tests/web_methods/return_value_task_coroutine.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | tests/web_methods/return_value_task_coroutine.py | VNUELIVE/Toto | 6940b4114fc6b680e0d40ae248b7d2599c954f81 | [
"MIT"
] | null | null | null | from toto.invocation import *
from toto.tasks import TaskQueue
from time import sleep
from tornado.gen import coroutine, Return, Task, Callback, Wait
@coroutine
def invoke(handler, parameters):
def respond(params):
sleep(0.1)
return {'parameters': parameters}
def return_true():
sleep(0.1)
return Tr... | 27 | 72 | 0.738791 | 67 | 513 | 5.597015 | 0.477612 | 0.08 | 0.037333 | 0.069333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.153996 | 513 | 18 | 73 | 28.5 | 0.85023 | 0 | 0 | 0.133333 | 0 | 0 | 0.038986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b6933a88f67e6f369b6b63cbf5938ca7c9fc7fc0 | 182 | py | Python | atcoder/abc/abc148_c.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | atcoder/abc/abc148_c.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | atcoder/abc/abc148_c.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | import sys
import math
if sys.version_info.minor >= 5:
from math import gcd
else:
from fractions import gcd
A, B = map(int, input().split())
g = gcd(A, B)
print(A * B // g)
| 16.545455 | 32 | 0.642857 | 33 | 182 | 3.515152 | 0.606061 | 0.051724 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.21978 | 182 | 10 | 33 | 18.2 | 0.809859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b69efa7ff633cff854667d54d45e9c1d69f79f58 | 512 | py | Python | setup.py | antmicro/dockersave | ac5d6f8a0f7654e3a44049db3284048e2ea6e5f9 | [
"Apache-2.0"
] | 11 | 2020-04-01T14:07:29.000Z | 2020-05-03T16:57:39.000Z | setup.py | antmicro/dockersave | ac5d6f8a0f7654e3a44049db3284048e2ea6e5f9 | [
"Apache-2.0"
] | null | null | null | setup.py | antmicro/dockersave | ac5d6f8a0f7654e3a44049db3284048e2ea6e5f9 | [
"Apache-2.0"
] | null | null | null | import setuptools
setuptools.setup(
name="docker-image-save",
version="0.1",
author="Adam Olech",
author_email="aolech@antmicro.com",
description="Download and tar Docker images without Docker.",
url="https://github.com/antmicro/dockersave",
packages=["dockersave... | 30.117647 | 69 | 0.587891 | 50 | 512 | 5.92 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010724 | 0.271484 | 512 | 16 | 70 | 32 | 0.782842 | 0 | 0 | 0 | 0 | 0 | 0.396484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 |
b6a7627342dc340c2b9f81362be8853ae269f6aa | 718 | py | Python | boa3_test/test_sc/interop_test/contract/CallFlagsType.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 25 | 2020-07-22T19:37:43.000Z | 2022-03-08T03:23:55.000Z | boa3_test/test_sc/interop_test/contract/CallFlagsType.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 419 | 2020-04-23T17:48:14.000Z | 2022-03-31T13:17:45.000Z | boa3_test/test_sc/interop_test/contract/CallFlagsType.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | 15 | 2020-05-21T21:54:24.000Z | 2021-11-18T06:17:24.000Z | from boa3.builtin import public
from boa3.builtin.interop.contract import CallFlags
@public
def main(flag: str) -> CallFlags:
call_flags: CallFlags
if flag == 'ALL':
call_flags = CallFlags.ALL
elif flag == 'READ_ONLY':
call_flags = CallFlags.READ_ONLY
elif flag == 'STATES':
cal... | 27.615385 | 51 | 0.662953 | 88 | 718 | 5.181818 | 0.295455 | 0.197368 | 0.355263 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.247911 | 718 | 25 | 52 | 28.72 | 0.840741 | 0 | 0 | 0 | 0 | 0 | 0.087744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.181818 | 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 |
b6af167ccb1977bcef662492b4f64801712125d7 | 615 | py | Python | dagger/__init__.py | raztud/dagger | 7b394138c139e3b4fdf228e3d34359f1ae6bdd7a | [
"Apache-2.0"
] | 9 | 2021-09-06T14:22:38.000Z | 2022-02-08T07:48:39.000Z | dagger/__init__.py | raztud/dagger | 7b394138c139e3b4fdf228e3d34359f1ae6bdd7a | [
"Apache-2.0"
] | 36 | 2021-09-04T06:20:19.000Z | 2021-12-26T17:54:59.000Z | dagger/__init__.py | raztud/dagger | 7b394138c139e3b4fdf228e3d34359f1ae6bdd7a | [
"Apache-2.0"
] | 4 | 2021-09-06T08:07:19.000Z | 2021-10-18T19:13:18.000Z | """Define sophisticated data pipelines as Directed Acyclic Graphs (DAGs) and execute them with different runtimes, either locally or remotely."""
import dagger.dsl as dsl # noqa
from dagger.dag import DAG # noqa
from dagger.input import FromNodeOutput, FromParam # noqa
from dagger.output import FromKey, FromPropert... | 34.166667 | 145 | 0.760976 | 79 | 615 | 5.873418 | 0.670886 | 0.107759 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005929 | 0.177236 | 615 | 17 | 146 | 36.176471 | 0.911067 | 0.393496 | 0 | 0 | 0 | 0 | 0.01385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b6b374c0b5b50d30c27de39d9041b4771b374ba9 | 676 | py | Python | word_cloud.py | Neela25/youtube-song-comment-highlights | 9e36574357c26b70571fb989520acae5ba067037 | [
"MIT"
] | null | null | null | word_cloud.py | Neela25/youtube-song-comment-highlights | 9e36574357c26b70571fb989520acae5ba067037 | [
"MIT"
] | null | null | null | word_cloud.py | Neela25/youtube-song-comment-highlights | 9e36574357c26b70571fb989520acae5ba067037 | [
"MIT"
] | null | null | null | #Importing the required packages
from wordcloud import *
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
#Opening the file containing comments
fp=open("Desktop/Youtube_Comments.txt","r")
words=fp.read()
#Opening the image which is to used as a wordcloud mask
mask = np.array(Image.o... | 30.727273 | 142 | 0.764793 | 106 | 676 | 4.801887 | 0.650943 | 0.039293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025338 | 0.12426 | 676 | 21 | 143 | 32.190476 | 0.834459 | 0.273669 | 0 | 0 | 0 | 0 | 0.130901 | 0.111588 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fca9fd0e8c7b8999c27d3f2c95892d857a0004a2 | 1,002 | py | Python | oslo/torch/nn/modules/lazy.py | lipovsek/oslo | c2cde6229068808bf691e200f8af8c97c1631eb4 | [
"Apache-2.0"
] | 249 | 2021-12-21T05:25:53.000Z | 2022-03-21T21:03:58.000Z | oslo/torch/nn/modules/lazy.py | lipovsek/oslo | c2cde6229068808bf691e200f8af8c97c1631eb4 | [
"Apache-2.0"
] | 21 | 2021-12-22T13:22:18.000Z | 2022-03-31T17:38:53.000Z | oslo/torch/nn/modules/lazy.py | lipovsek/oslo | c2cde6229068808bf691e200f8af8c97c1631eb4 | [
"Apache-2.0"
] | 14 | 2021-12-21T10:28:36.000Z | 2022-03-29T12:35:44.000Z | import itertools
from torch.nn.parameter import is_lazy
from torch.nn.modules.lazy import _LazyProtocol
class LazyModuleMixin:
cls_to_become = None
def __init__(self: _LazyProtocol, *args, **kwargs):
# Mypy doesn't like this super call in a mixin
super().__init__(*args, **kwargs) # type: ign... | 35.785714 | 72 | 0.660679 | 123 | 1,002 | 5.178862 | 0.536585 | 0.062794 | 0.034537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255489 | 1,002 | 27 | 73 | 37.111111 | 0.853887 | 0.218563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.526316 | 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 |
fcaa8c449698eadcfcbfc590d2935cd248da0ad4 | 326 | py | Python | main.py | TID-Lab/analysis | 973fd3f4fbf235aa97f47ddcff5a27f2e75cfdae | [
"MIT"
] | 1 | 2021-03-22T18:55:47.000Z | 2021-03-22T18:55:47.000Z | main.py | TID-Lab/analysis | 973fd3f4fbf235aa97f47ddcff5a27f2e75cfdae | [
"MIT"
] | 1 | 2021-04-04T21:43:16.000Z | 2021-04-04T21:43:16.000Z | main.py | TID-Lab/analysis | 973fd3f4fbf235aa97f47ddcff5a27f2e75cfdae | [
"MIT"
] | null | null | null | import threading
import schedule
import time
# 1. import tasks here
from tasks import example
def run_threaded(task):
job_thread = threading.Thread(target=task.run)
job_thread.start()
# 2. schedule tasks here
schedule.every(3).seconds.do(run_threaded, example)
while 1:
schedule.run_pending()
time.sl... | 19.176471 | 51 | 0.748466 | 48 | 326 | 4.979167 | 0.520833 | 0.075314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.156442 | 326 | 17 | 52 | 19.176471 | 0.850909 | 0.131902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 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 |
fcb0ca60f6c8ad613e8e67dec7786ccfd9a5e6ea | 3,880 | py | Python | Scripts/test_login_duer.py | Sanmejie/my_app_test | 784a7263b30b0c1c676df9a3f5550bafe39ccf11 | [
"Apache-2.0"
] | 2 | 2020-12-04T11:24:20.000Z | 2021-11-29T02:48:33.000Z | Scripts/test_login_duer.py | Sanmejie/my_app_test | 784a7263b30b0c1c676df9a3f5550bafe39ccf11 | [
"Apache-2.0"
] | null | null | null | Scripts/test_login_duer.py | Sanmejie/my_app_test | 784a7263b30b0c1c676df9a3f5550bafe39ccf11 | [
"Apache-2.0"
] | null | null | null | # from os.path import dirname
import os,sys,pytest
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
from Page.login_page import Login_Page
from Base.init_driver import get_driver
from Base.read_data import Op_Data
from time import sleep
from loguru import logger
# sys.path.append(os.getcwd())
def get_data... | 33.73913 | 99 | 0.54768 | 476 | 3,880 | 4.260504 | 0.273109 | 0.047337 | 0.071006 | 0.019724 | 0.447732 | 0.447732 | 0.426036 | 0.346647 | 0.346647 | 0.303254 | 0 | 0.007803 | 0.339433 | 3,880 | 114 | 100 | 34.035088 | 0.783457 | 0.128608 | 0 | 0.352941 | 0 | 0 | 0.123654 | 0.009536 | 0 | 0 | 0 | 0 | 0.102941 | 1 | 0.058824 | false | 0.058824 | 0.088235 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
fcb6d00ca1592b91b4673588cebb39e281372a85 | 2,387 | py | Python | src/file_io.py | aphi/pyflip | 20472e2dbc5e8d0b0c84167e83c80b41b45dc74e | [
"MIT"
] | 9 | 2019-08-26T21:19:02.000Z | 2022-01-10T18:26:43.000Z | src/file_io.py | aphi/PyFlip | 20472e2dbc5e8d0b0c84167e83c80b41b45dc74e | [
"MIT"
] | null | null | null | src/file_io.py | aphi/PyFlip | 20472e2dbc5e8d0b0c84167e83c80b41b45dc74e | [
"MIT"
] | 1 | 2021-10-01T16:29:57.000Z | 2021-10-01T16:29:57.000Z | """
LP Files
https://www.ibm.com/support/knowledgecenter/SSSA5P_12.5.0/ilog.odms.cplex.help/CPLEX/FileFormats/topics/LP.html
http://www.gurobi.com/documentation/8.0/refman/lp_format.html
"""
from math import isinf
from os import path
import pyflip as flp
def write_lp_file(model, filename, directory='.'):
full_fi... | 34.1 | 113 | 0.604943 | 286 | 2,387 | 4.93007 | 0.367133 | 0.069504 | 0.039716 | 0.036879 | 0.158156 | 0.062411 | 0 | 0 | 0 | 0 | 0 | 0.00514 | 0.266443 | 2,387 | 70 | 114 | 34.1 | 0.800114 | 0.175953 | 0 | 0.073171 | 0 | 0.02439 | 0.192722 | 0.071246 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.146341 | 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 |
fcb8c474e1f01ba209bfb4747b82d043152b45f5 | 1,242 | py | Python | zerk_mvc_tests/ZerkControllerTests.py | gregkrsak/gkZerk | 70b8b8c3e3aa37bfae60526db92c7f501b440354 | [
"MIT"
] | 6 | 2017-04-07T11:53:04.000Z | 2021-04-18T06:59:02.000Z | zerk_mvc_tests/ZerkControllerTests.py | beachviking/gkZerk | 70b8b8c3e3aa37bfae60526db92c7f501b440354 | [
"MIT"
] | 13 | 2015-01-12T18:35:19.000Z | 2022-02-08T07:55:23.000Z | zerk_mvc_tests/ZerkControllerTests.py | beachviking/gkZerk | 70b8b8c3e3aa37bfae60526db92c7f501b440354 | [
"MIT"
] | 2 | 2015-01-08T00:19:48.000Z | 2021-04-18T09:48:34.000Z | # Filename: ZerkControllerTests.py
# Author: Greg M. Krsak
# License: MIT
# Contact: greg.krsak@gmail.com
#
# Zerk is an Interactive Fiction (IF) style interpreter, inspired by Infocom's
# Zork series. Zerk allows the use of custom maps, which are JSON-formatted.
#
# This file contains the tests for the MVC controller.... | 28.227273 | 107 | 0.708535 | 159 | 1,242 | 5.490566 | 0.572327 | 0.034364 | 0.0252 | 0.032073 | 0.054983 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006951 | 0.189211 | 1,242 | 43 | 108 | 28.883721 | 0.85998 | 0.438003 | 0 | 0 | 0 | 0 | 0.03096 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.642857 | 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 |
fcbc57f51f0f4478bad0cdf3866f52fc40a62c95 | 1,501 | py | Python | skytour/skytour/apps/tech/migrations/0003_eyepiece_eyepiecetelescope_telescope_eyepieces.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | null | null | null | skytour/skytour/apps/tech/migrations/0003_eyepiece_eyepiecetelescope_telescope_eyepieces.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | 1 | 2022-03-17T01:19:23.000Z | 2022-03-17T01:19:23.000Z | skytour/skytour/apps/tech/migrations/0003_eyepiece_eyepiecetelescope_telescope_eyepieces.py | ursomniac/skytour | 3320d96d7ca41b8f52ede87e7112477902a37a0e | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-23 19:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tech', '0002_alter_telescope_aperture'),
]
operations = [
migrations.CreateModel(
name='Eyepiec... | 40.567568 | 129 | 0.612258 | 154 | 1,501 | 5.837662 | 0.454545 | 0.061179 | 0.046719 | 0.073415 | 0.313682 | 0.313682 | 0.313682 | 0.313682 | 0.313682 | 0.313682 | 0 | 0.020372 | 0.247835 | 1,501 | 36 | 130 | 41.694444 | 0.775908 | 0.02998 | 0 | 0.366667 | 1 | 0 | 0.164374 | 0.035076 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.166667 | 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 |
fcbdfd79e8da97287fbd28741b75171bb9a9ee7b | 717 | py | Python | setup.py | espenak/htmls | 522fac20cc5720c0be99121a5d9e3b5c0822fbee | [
"BSD-3-Clause"
] | null | null | null | setup.py | espenak/htmls | 522fac20cc5720c0be99121a5d9e3b5c0822fbee | [
"BSD-3-Clause"
] | 4 | 2021-03-31T20:30:21.000Z | 2021-12-13T20:53:00.000Z | setup.py | espenak/htmls | 522fac20cc5720c0be99121a5d9e3b5c0822fbee | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='htmls',
description='Makes it easy to write use CSS selectors with HTML in your unit tests.',
version='2.0.0',
license='BSD',
url='https://github.com/espenak/htmls',
author='Espen Angell Kristiansen',
author_email='post@espenak.net',... | 25.607143 | 89 | 0.635983 | 81 | 717 | 5.518519 | 0.790123 | 0.053691 | 0.06264 | 0.09396 | 0.116331 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007286 | 0.23431 | 717 | 27 | 90 | 26.555556 | 0.806922 | 0 | 0 | 0.08 | 0 | 0 | 0.419805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcc0843cb0fb4780f5cde03792b28859baf026bb | 11,336 | py | Python | LibBookbuilder/pstikz2png.py | Siyavula/bookbuilder | 484f344a6b536d01ed51ea719f47c68aae654d5d | [
"MIT"
] | 1 | 2015-07-18T16:24:36.000Z | 2015-07-18T16:24:36.000Z | LibBookbuilder/pstikz2png.py | Siyavula/bookbuilder | 484f344a6b536d01ed51ea719f47c68aae654d5d | [
"MIT"
] | 2 | 2016-02-04T18:26:39.000Z | 2019-05-09T12:23:16.000Z | LibBookbuilder/pstikz2png.py | Siyavula/bookbuilder | 484f344a6b536d01ed51ea719f47c68aae654d5d | [
"MIT"
] | 1 | 2016-01-31T22:26:27.000Z | 2016-01-31T22:26:27.000Z | import os
import subprocess
import tempfile
import re
import htmlentitydefs
from . import htmlutils
##
# Removes HTML or XML character references and entities from a text string.
#
# @param text The HTML (or XML) source text.
# @return The plain text, as a Unicode string, if necessary.
def unescape(text):
def fix... | 30.473118 | 174 | 0.625794 | 1,310 | 11,336 | 5.390076 | 0.365649 | 0.03314 | 0.031724 | 0.012038 | 0.141057 | 0.071944 | 0.064297 | 0.034556 | 0.034556 | 0.023793 | 0 | 0.007146 | 0.209951 | 11,336 | 371 | 175 | 30.555256 | 0.781264 | 0.052135 | 0 | 0.20438 | 0 | 0.029197 | 0.578905 | 0.276293 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014599 | 0.021898 | 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 |
fcc0aa49c2220e18f17141fdc13438cff4b75a69 | 906 | py | Python | fudbyte/apps/account/migrations/0002_auto_20180918_1340.py | niieq/fudbyte | b8f7339908492d64858ca7d8471b5b45f7b4e097 | [
"BSD-3-Clause"
] | null | null | null | fudbyte/apps/account/migrations/0002_auto_20180918_1340.py | niieq/fudbyte | b8f7339908492d64858ca7d8471b5b45f7b4e097 | [
"BSD-3-Clause"
] | 5 | 2021-03-19T03:03:36.000Z | 2022-01-13T01:33:56.000Z | fudbyte/apps/account/migrations/0002_auto_20180918_1340.py | niieq/fudbyte | b8f7339908492d64858ca7d8471b5b45f7b4e097 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-09-18 12:40
from __future__ import unicode_literals
import account.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migration... | 28.3125 | 124 | 0.596026 | 98 | 906 | 5.346939 | 0.561224 | 0.103053 | 0.131679 | 0.15458 | 0.230916 | 0.230916 | 0.164122 | 0.164122 | 0 | 0 | 0 | 0.036309 | 0.270419 | 906 | 31 | 125 | 29.225806 | 0.75643 | 0.075055 | 0 | 0.375 | 1 | 0 | 0.099401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcc9571e468fae7f5a3ef119fabd94e6d2de395f | 641 | py | Python | logistick_app/data_exchange/migrations/0003_auto_20180603_1824.py | AdrianH0/app | cea1ab8a9aa0f096d3c0221647699d601ad58865 | [
"MIT"
] | null | null | null | logistick_app/data_exchange/migrations/0003_auto_20180603_1824.py | AdrianH0/app | cea1ab8a9aa0f096d3c0221647699d601ad58865 | [
"MIT"
] | 2 | 2020-06-05T18:31:29.000Z | 2021-06-10T20:27:44.000Z | logistick_app/data_exchange/migrations/0003_auto_20180603_1824.py | AdrianH0/app | cea1ab8a9aa0f096d3c0221647699d601ad58865 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-06-03 18:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data_exchange', '0002_auto_20180602_1619'),
]
operations = [
migrations.Alt... | 24.653846 | 54 | 0.613105 | 70 | 641 | 5.342857 | 0.671429 | 0.106952 | 0.13369 | 0.15508 | 0.352941 | 0.208556 | 0 | 0 | 0 | 0 | 0 | 0.071121 | 0.276131 | 641 | 25 | 55 | 25.64 | 0.734914 | 0.106084 | 0 | 0.333333 | 1 | 0 | 0.152632 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fccf161ff4551755c1983418066d148cfab2c083 | 342 | py | Python | app/models/subscriber.py | Cian747/blog | 531059d42b273c43cd5f54ae91c5486f7c523de1 | [
"MIT"
] | 1 | 2021-08-23T12:14:27.000Z | 2021-08-23T12:14:27.000Z | app/models/subscriber.py | Cian747/blog | 531059d42b273c43cd5f54ae91c5486f7c523de1 | [
"MIT"
] | null | null | null | app/models/subscriber.py | Cian747/blog | 531059d42b273c43cd5f54ae91c5486f7c523de1 | [
"MIT"
] | null | null | null | from app import db
from datetime import datetime
class Subscribe(db.Model):
__tablename__ = 'subscribers'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
subscriber = db.Column(db.String(), nullable=False,unique=True)
def save_subscriber(self):
db.session.add(self)
db... | 26.307692 | 68 | 0.69883 | 44 | 342 | 5.295455 | 0.636364 | 0.06867 | 0.085837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190058 | 342 | 13 | 69 | 26.307692 | 0.841155 | 0 | 0 | 0 | 0 | 0 | 0.03207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.777778 | 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 |
fcd1cf49810f11c1a95d9fb5c562203eee4292a3 | 1,266 | py | Python | dycon_web/contest/admin.py | landges/dycon | 314f2c0f9ed682a56d19c741e6a132cc3331ca5f | [
"MIT"
] | null | null | null | dycon_web/contest/admin.py | landges/dycon | 314f2c0f9ed682a56d19c741e6a132cc3331ca5f | [
"MIT"
] | null | null | null | dycon_web/contest/admin.py | landges/dycon | 314f2c0f9ed682a56d19c741e6a132cc3331ca5f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
from django import forms
from ckeditor.widgets import CKEditorWidget
from ckeditor_uploader.widgets import CKEditorUploadingWidget
# Register your models here.
class PageCompetitionInline(admin.TabularInline):
model = PageCompetition
extra = 1
class Page... | 29.44186 | 81 | 0.774882 | 125 | 1,266 | 7.744 | 0.472 | 0.067149 | 0.098141 | 0.134298 | 0.154959 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0.000883 | 0.105055 | 1,266 | 42 | 82 | 30.142857 | 0.853486 | 0.020537 | 0 | 0.0625 | 0 | 0 | 0.094507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15625 | 0 | 0.78125 | 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 |
fcdb57bd77318a46c36ce764ae37a99b4d2224b2 | 2,297 | py | Python | problems/min_stack.py | vinta/fuck-coding-interviews | 915ff55963430e81134a35f65f511e5684c52f11 | [
"MIT"
] | 590 | 2020-06-17T08:26:47.000Z | 2022-03-30T18:47:32.000Z | problems/min_stack.py | parvathirajan/fuck-coding-interviews | 915ff55963430e81134a35f65f511e5684c52f11 | [
"MIT"
] | 12 | 2020-07-14T09:24:32.000Z | 2020-11-02T03:43:47.000Z | problems/min_stack.py | parvathirajan/fuck-coding-interviews | 915ff55963430e81134a35f65f511e5684c52f11 | [
"MIT"
] | 75 | 2020-07-29T06:50:13.000Z | 2022-03-13T16:14:57.000Z | # coding: utf-8
"""
https://leetcode.com/problems/min-stack/
"""
class MinStack:
def __init__(self):
self.array = []
def push(self, x: int) -> None:
self.array.append(x)
def pop(self) -> None:
self.array.pop()
def top(self) -> int:
return self.array[-1]
def getM... | 23.927083 | 84 | 0.550283 | 301 | 2,297 | 4.089701 | 0.289037 | 0.080422 | 0.077985 | 0.05524 | 0.322502 | 0.264013 | 0.172218 | 0.129976 | 0.129976 | 0.129976 | 0 | 0.007148 | 0.329996 | 2,297 | 95 | 85 | 24.178947 | 0.792723 | 0.241184 | 0 | 0.472727 | 0 | 0 | 0.005226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.018182 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcdf651162a2675daa0dcb887426aad7a53ff761 | 2,988 | py | Python | hyfed-server/hyfed_server/urls.py | TUM-AIMED/hyfed | 48c7ee0dda92ebb70cc985dc4c0eedb7403dc823 | [
"Apache-2.0"
] | 11 | 2021-04-13T12:11:16.000Z | 2022-03-21T11:45:07.000Z | hyfed-server/hyfed_server/urls.py | AnneHartebrodt/hyfed-pca | 57c009d17d00524f216d57f4fd3fb8732c3fccce | [
"Apache-2.0"
] | null | null | null | hyfed-server/hyfed_server/urls.py | AnneHartebrodt/hyfed-pca | 57c009d17d00524f216d57f4fd3fb8732c3fccce | [
"Apache-2.0"
] | 4 | 2021-04-04T12:17:03.000Z | 2021-05-25T11:11:20.000Z | """
URLs mapped to the views
Copyright 2021 Reza NasiriGerdeh, Julian Matschinske, and Reihaneh TorkzadehMahani. 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 Licens... | 45.969231 | 125 | 0.757028 | 370 | 2,988 | 6.027027 | 0.405405 | 0.026906 | 0.044395 | 0.049327 | 0.21704 | 0.188341 | 0.067265 | 0.035874 | 0.035874 | 0.035874 | 0 | 0.008911 | 0.136212 | 2,988 | 64 | 126 | 46.6875 | 0.855095 | 0.318942 | 0 | 0 | 0 | 0 | 0.064304 | 0.010633 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.30303 | 0 | 0.30303 | 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 |
fce00244fa6a4fdbc786f13374b6a95953a45242 | 1,633 | py | Python | 3/tutorials/tuples.py | shiblon/pytour | 71a181ec16fd38b0af62f55e28a50e91790733b9 | [
"Apache-2.0"
] | 2 | 2016-04-30T00:12:50.000Z | 2018-11-14T20:47:55.000Z | 3/tutorials/tuples.py | shiblon/pytour | 71a181ec16fd38b0af62f55e28a50e91790733b9 | [
"Apache-2.0"
] | 2 | 2020-02-17T22:31:09.000Z | 2020-02-18T04:31:55.000Z | 3/tutorials/tuples.py | shiblon/pytour | 71a181ec16fd38b0af62f55e28a50e91790733b9 | [
"Apache-2.0"
] | 3 | 2018-03-26T17:41:40.000Z | 2019-06-28T12:53:47.000Z | # vim:tw=50
"""Tuples
You have already seen one kind of sequence: the
string. Strings are a sequence of one-character
strings - they're strings all the way down. They
are also **immutable**: once you have defined one,
it can never change.
Another immutable seqeunce type in Python is the
**tuple**. You define a tupl... | 24.373134 | 50 | 0.687691 | 268 | 1,633 | 4.186567 | 0.488806 | 0.018717 | 0.010695 | 0.010695 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024756 | 0.183711 | 1,633 | 66 | 51 | 24.742424 | 0.816954 | 0.79057 | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.769231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fce92164ea9142ec87cfae85fa5c1c7ac25c9cfc | 848 | py | Python | pyro/ElementHelper.py | rjstone/pyro | cbc64198d36217fa4d8df7a38a122197d9a5e2ee | [
"MIT"
] | null | null | null | pyro/ElementHelper.py | rjstone/pyro | cbc64198d36217fa4d8df7a38a122197d9a5e2ee | [
"MIT"
] | null | null | null | pyro/ElementHelper.py | rjstone/pyro | cbc64198d36217fa4d8df7a38a122197d9a5e2ee | [
"MIT"
] | null | null | null | import os
import sys
from lxml import etree
from pyro.Logger import Logger
class ElementHelper(Logger):
@staticmethod
def validate_schema(parent_element: etree.ElementBase, program_path: str) -> object:
namespace = [ns for ns in parent_element.nsmap.values()]
if namespace:
... | 31.407407 | 126 | 0.645047 | 104 | 848 | 5.144231 | 0.394231 | 0.145794 | 0.06729 | 0.108411 | 0.157009 | 0.157009 | 0.157009 | 0.157009 | 0.157009 | 0 | 0 | 0.003175 | 0.257075 | 848 | 26 | 127 | 32.615385 | 0.846032 | 0 | 0 | 0.222222 | 0 | 0 | 0.010949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
fced20845e0e25bb603e81abffd9e7b72376466a | 414 | py | Python | FAP_tools/sdcc_example/compile.py | dekuNukem/FAP_Z80 | cfb1264288e3daf75f9965754d451ae439ec79c2 | [
"MIT"
] | 505 | 2016-12-19T20:18:52.000Z | 2022-03-16T20:29:00.000Z | FAP_tools/sdcc_example/compile.py | dekuNukem/FAP_Z80 | cfb1264288e3daf75f9965754d451ae439ec79c2 | [
"MIT"
] | 1 | 2019-03-05T12:07:07.000Z | 2019-03-05T12:07:07.000Z | FAP_tools/sdcc_example/compile.py | dekuNukem/FAP_Z80 | cfb1264288e3daf75f9965754d451ae439ec79c2 | [
"MIT"
] | 23 | 2017-01-19T19:41:48.000Z | 2022-03-05T14:36:30.000Z | import os
os.system("clear")
print("\nassembling crt0...\n")
if(os.system("sdasz80 -o crt0_fap.s") != 0):
exit()
print("\ncompiling hellofap.c...\n")
# code-loc is where main() is, data-loc is where RAM starts
if os.system("sdcc -mz80 --code-loc 0x200 --data-loc 0xc000 --no-std-crt0 crt0_fap.rel hellofap.c") != 0:... | 23 | 105 | 0.669082 | 69 | 414 | 3.985507 | 0.565217 | 0.116364 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052198 | 0.120773 | 414 | 18 | 106 | 23 | 0.703297 | 0.137681 | 0 | 0.181818 | 0 | 0.090909 | 0.58427 | 0 | 0 | 0 | 0.030899 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fcf453ff6e820b455ecff12722753f66767f4bfa | 4,315 | py | Python | analysis/calc_grid_surfacearea.py | rhwhite/eventTracking | a9498cf56a4d82259c47555b7e5fae2f7c8a0b16 | [
"MIT"
] | 1 | 2017-11-28T02:35:01.000Z | 2017-11-28T02:35:01.000Z | analysis/calc_grid_surfacearea.py | rhwhite/eventTracking | a9498cf56a4d82259c47555b7e5fae2f7c8a0b16 | [
"MIT"
] | null | null | null | analysis/calc_grid_surfacearea.py | rhwhite/eventTracking | a9498cf56a4d82259c47555b7e5fae2f7c8a0b16 | [
"MIT"
] | 2 | 2019-07-02T02:42:00.000Z | 2020-07-28T05:56:45.000Z | """
Script to calculate the surface area of gridded data.
The output from this script is used when summing up total precipitation and
total area of precipitation
Created: Oct 2016
Author: Rachel H White rachel.white@cantab.net
"""
import os, errno
from netCDF4 import Dataset
import netCDF4
import numpy as np
import d... | 30.387324 | 110 | 0.644959 | 622 | 4,315 | 4.419614 | 0.33119 | 0.052383 | 0.026191 | 0.034922 | 0.29247 | 0.220444 | 0.187705 | 0.167334 | 0.119316 | 0.045835 | 0 | 0.042108 | 0.190962 | 4,315 | 141 | 111 | 30.602837 | 0.745345 | 0.082966 | 0 | 0.0875 | 0 | 0.0125 | 0.234069 | 0.110351 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fcf9696a90ed6c27b790dfcf6ce884e55a12fa2e | 619 | py | Python | setup.py | legshort/mango | 4bb86eb5e4e46cbb7cb5ccde9573d6f5239f6233 | [
"MIT"
] | 16 | 2018-01-21T11:38:20.000Z | 2018-02-02T15:52:54.000Z | setup.py | legshort/mango | 4bb86eb5e4e46cbb7cb5ccde9573d6f5239f6233 | [
"MIT"
] | 5 | 2018-02-07T01:14:47.000Z | 2018-02-19T02:24:09.000Z | setup.py | legshort/apple-mango | 4bb86eb5e4e46cbb7cb5ccde9573d6f5239f6233 | [
"MIT"
] | 2 | 2018-05-24T06:59:32.000Z | 2018-10-23T15:33:18.000Z | import os
import sys
from setuptools import setup
setup(
name='apple-mango',
version='0.2',
url='https://github.com/legshort/apple-mango/',
license='MIT',
author='Jun Young Lee',
author_email='legshort@gmail.com',
description='Light weight BDD Pattern',
classifiers=[
'Programmi... | 23.807692 | 51 | 0.607431 | 70 | 619 | 5.314286 | 0.742857 | 0.080645 | 0.134409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014583 | 0.224556 | 619 | 25 | 52 | 24.76 | 0.760417 | 0 | 0 | 0.086957 | 0 | 0 | 0.416801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.130435 | 0 | 0.130435 | 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 |
fcfc7f9f68b9469e5dbc307c4ecb1f95f25442ad | 5,428 | py | Python | server/apidoc/apidoc.py | yu-george/swim4love | c1ab5dadc025f77060106eeb4eedde3e652a47e5 | [
"MIT"
] | null | null | null | server/apidoc/apidoc.py | yu-george/swim4love | c1ab5dadc025f77060106eeb4eedde3e652a47e5 | [
"MIT"
] | null | null | null | server/apidoc/apidoc.py | yu-george/swim4love | c1ab5dadc025f77060106eeb4eedde3e652a47e5 | [
"MIT"
] | null | null | null | """
@apiDefine Success
@apiError 0 Success.
"""
"""
@apiDefine IdNotFound
@apiError 1 Swimmer <code>id</code> not found.
"""
"""
@apiDefine InvalidParamLaps
@apiError 2 Invalid value for <code>laps</code> param.
"""
"""
@apiDefine AvatarNotFound
@apiError 3 Swimmer avatar file not found.
"""
"""
@apiDefine MissingParam... | 25.364486 | 119 | 0.757738 | 695 | 5,428 | 5.917986 | 0.166906 | 0.062242 | 0.050328 | 0.063457 | 0.639436 | 0.59397 | 0.59397 | 0.575492 | 0.575492 | 0.575492 | 0 | 0.00623 | 0.14241 | 5,428 | 213 | 120 | 25.483568 | 0.877336 | 0.007185 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fcfd2c3246129be0ec1cb038263852e35371bc1c | 852 | py | Python | tests/integration.py | mudam/python-erply-api | ba76ff5df6c5f478e9594065977a98b9084ebc88 | [
"BSD-3-Clause"
] | null | null | null | tests/integration.py | mudam/python-erply-api | ba76ff5df6c5f478e9594065977a98b9084ebc88 | [
"BSD-3-Clause"
] | null | null | null | tests/integration.py | mudam/python-erply-api | ba76ff5df6c5f478e9594065977a98b9084ebc88 | [
"BSD-3-Clause"
] | null | null | null | """
context.py must contain the following variables:
CUSTOMER_CODE='123456'
USER='user name'
PASS='password'
"""
from tests.context import CUSTOMER_CODE, USER, PASS
import petl
from erply_api import Erply, ErplyAuth
auth = ErplyAuth(CUSTOMER_CODE, USER, PASS)
erply = Erply(auth)
conf = erply.fetch_config()
assert 'cs... | 31.555556 | 154 | 0.767606 | 122 | 852 | 5.254098 | 0.483607 | 0.056162 | 0.065523 | 0.079563 | 0.26209 | 0.230889 | 0.230889 | 0.230889 | 0.230889 | 0.230889 | 0 | 0.042526 | 0.089202 | 852 | 27 | 155 | 31.555556 | 0.783505 | 0.122066 | 0 | 0.25 | 0 | 0 | 0.129555 | 0.02834 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | false | 0.125 | 0.1875 | 0 | 0.1875 | 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 |
fcfef9038ed4ffedc3f099a5d1bd45c44d6d5ce3 | 4,210 | py | Python | scripts/generateWeather.py | morpheyesh/weather-forecastr | d99434c9d6724fad1f67e79f27cb482fce394011 | [
"MIT"
] | null | null | null | scripts/generateWeather.py | morpheyesh/weather-forecastr | d99434c9d6724fad1f67e79f27cb482fce394011 | [
"MIT"
] | null | null | null | scripts/generateWeather.py | morpheyesh/weather-forecastr | d99434c9d6724fad1f67e79f27cb482fce394011 | [
"MIT"
] | null | null | null | #Markov implemetation to generate weather data
import numpy as np
import datetime
import time
import scipy.stats as st
import random as rm
from numpy import linalg as LA
import mockdata as md
#Define states (3 state spaces)
states = ['Sunny', 'Rain', 'Snow']
rang = ['High', 'Med', 'Low']
STARTDATE = "10-10-2011T12:0... | 35.677966 | 165 | 0.665321 | 667 | 4,210 | 4.184408 | 0.446777 | 0.007166 | 0.013615 | 0.007166 | 0.043712 | 0.015765 | 0.015765 | 0.015765 | 0 | 0 | 0 | 0.068785 | 0.185036 | 4,210 | 117 | 166 | 35.982906 | 0.744681 | 0.421378 | 0 | 0 | 1 | 0 | 0.156959 | 0.009782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.122807 | 0 | 0.22807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e0581f25a4e9165a5948f5d1b7655a85b1bcd94 | 2,899 | py | Python | DL_training/KERAS_model/keras_inference_shape_1.py | RAS-2018-grp-4/Perception | 45a5b12e23d87b7ecdef681c5c2621ef3b793a9d | [
"MIT"
] | 1 | 2018-11-07T01:00:23.000Z | 2018-11-07T01:00:23.000Z | DL_training/KERAS_model/keras_inference_shape_1.py | RAS-2018-grp-4/Perception | 45a5b12e23d87b7ecdef681c5c2621ef3b793a9d | [
"MIT"
] | null | null | null | DL_training/KERAS_model/keras_inference_shape_1.py | RAS-2018-grp-4/Perception | 45a5b12e23d87b7ecdef681c5c2621ef3b793a9d | [
"MIT"
] | null | null | null |
from matplotlib import pyplot
from scipy.misc import toimage
from keras.datasets import cifar10
import cv2
import glob
import os
from sklearn.utils import shuffle
from sklearn.model_selection import train_test_split
import keras
from keras.models import Sequential
from keras.utils import np_utils
from keras.preproce... | 28.145631 | 100 | 0.629527 | 413 | 2,899 | 4.246973 | 0.324455 | 0.051311 | 0.011973 | 0.018814 | 0.075257 | 0.041049 | 0.041049 | 0.025086 | 0 | 0 | 0 | 0.025378 | 0.22525 | 2,899 | 103 | 101 | 28.145631 | 0.755565 | 0.070714 | 0 | 0.027397 | 0 | 0 | 0.09213 | 0.014174 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.260274 | null | null | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e11a5e0b7ca2519ed5fd5725322ef47ece436fa | 1,130 | py | Python | code/preprocessing/punctuation_remover.py | avocardio/MLinPractice | db090d287908acdf1112df64c02e51830df58c90 | [
"MIT"
] | null | null | null | code/preprocessing/punctuation_remover.py | avocardio/MLinPractice | db090d287908acdf1112df64c02e51830df58c90 | [
"MIT"
] | 1 | 2021-10-20T03:45:42.000Z | 2021-10-20T03:45:42.000Z | code/preprocessing/punctuation_remover.py | avocardio/MLinPractice | db090d287908acdf1112df64c02e51830df58c90 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Remove all punctuation from the raw tweet column.
Created on Wed Sep 10 12:22:13 2021
@author: mkalcher, magmueller, shagemann
"""
import string
from code.preprocessing.preprocessor import Preprocessor
punct = set(string.punctuation).union(string.digits).union("—")... | 30.540541 | 83 | 0.676106 | 132 | 1,130 | 5.719697 | 0.628788 | 0.039735 | 0.047682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02567 | 0.20708 | 1,130 | 36 | 84 | 31.388889 | 0.811384 | 0.440708 | 0 | 0 | 0 | 0 | 0.019512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e150698f776f4f159c8d30a6976c26eb8614f28 | 529 | py | Python | trunk/ncore/paginations.py | zhaojiejoe/django-friendly-response | 93cd565ebf769c33b3e8e7c00fc1f3ce4b273dc5 | [
"MIT"
] | null | null | null | trunk/ncore/paginations.py | zhaojiejoe/django-friendly-response | 93cd565ebf769c33b3e8e7c00fc1f3ce4b273dc5 | [
"MIT"
] | null | null | null | trunk/ncore/paginations.py | zhaojiejoe/django-friendly-response | 93cd565ebf769c33b3e8e7c00fc1f3ce4b273dc5 | [
"MIT"
] | null | null | null | from rest_framework import pagination
from ncore.response import JsonResponse
from ncore.ret_codes import Codes, gen_msg_from_code
class CustomerPagination(pagination.PageNumberPagination):
page_size_query_param = 'limit'
def get_paginated_response(self, data):
return JsonResponse(**gen_msg_from_code... | 33.0625 | 58 | 0.703214 | 63 | 529 | 5.666667 | 0.555556 | 0.067227 | 0.056022 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204159 | 529 | 15 | 59 | 35.266667 | 0.847981 | 0 | 0 | 0 | 0 | 0 | 0.064272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 0.583333 | 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 |
1e163b319f0ffe7b1c155757af6b0cad0649df39 | 871 | py | Python | data_extraction/data_extraction_schedule.py | go-jugo/ml_event_prediction_trainer | 0d644b737afdef078ad5b6fc2b7e2549b964b56f | [
"Apache-2.0"
] | null | null | null | data_extraction/data_extraction_schedule.py | go-jugo/ml_event_prediction_trainer | 0d644b737afdef078ad5b6fc2b7e2549b964b56f | [
"Apache-2.0"
] | null | null | null | data_extraction/data_extraction_schedule.py | go-jugo/ml_event_prediction_trainer | 0d644b737afdef078ad5b6fc2b7e2549b964b56f | [
"Apache-2.0"
] | null | null | null | from .data_extraction_cpt import data_extraction_cpt
from .data_extraction_sitec import data_extraction_sitec
from multiprocessing import Pool
import dask
dataset_cpt = 'CPT'
dataset_sitec = 'SITEC'
def data_extraction_schedule(v_dask_data_extraction, raw_files, pool_size, dataset):
if dataset == dataset... | 39.590909 | 85 | 0.698048 | 107 | 871 | 5.327103 | 0.336449 | 0.34386 | 0.089474 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001495 | 0.231917 | 871 | 21 | 86 | 41.47619 | 0.850523 | 0.027555 | 0 | 0 | 0 | 0 | 0.031515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.25 | 0.05 | 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 |
1e197f39a174ab24eed93ac45633e5e5bf4fb281 | 288 | py | Python | profile/tfce.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 32 | 2015-04-05T15:38:55.000Z | 2022-03-12T02:35:09.000Z | profile/tfce.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 22 | 2015-07-14T14:55:44.000Z | 2022-03-15T17:46:11.000Z | profile/tfce.py | christianbrodbeck/Eelbrain | 0c24abcc382abb590c062b8bc683f749265f564f | [
"BSD-3-Clause"
] | 29 | 2015-04-23T13:51:09.000Z | 2021-08-12T11:28:21.000Z | from eelbrain import *
configure(False)
ds = datasets.get_mne_sample(-0.1, 0.2, src='ico', sub="modality == 'A'")
res = testnd.TTestOneSample('src', ds=ds, tstart=0, tfce=True, samples=100)
# ds = datasets.get_uts()
# res = testnd.TTestOneSample('uts', ds=ds, tfce=True, samples=1000)
| 28.8 | 75 | 0.690972 | 45 | 288 | 4.355556 | 0.622222 | 0.102041 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047244 | 0.118056 | 288 | 9 | 76 | 32 | 0.724409 | 0.3125 | 0 | 0 | 0 | 0 | 0.107692 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e1a35145dfad923117f7fadb73045bf9205fe58 | 1,997 | py | Python | whatsapp.py | prateekgupta23/Whatsapp-Automation | bf907d1acff218764963bed2f373af429b8086bd | [
"MIT"
] | 7 | 2018-09-26T06:29:47.000Z | 2021-11-16T17:41:20.000Z | whatsapp.py | prateekgupta23/Whatsapp-Automation | bf907d1acff218764963bed2f373af429b8086bd | [
"MIT"
] | null | null | null | whatsapp.py | prateekgupta23/Whatsapp-Automation | bf907d1acff218764963bed2f373af429b8086bd | [
"MIT"
] | 6 | 2020-02-07T05:10:51.000Z | 2021-05-13T13:38:21.000Z | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
import time
driver=webdriver.Chrome('/home/vivek/Documents/chromedriver')
driver.get("https://web.whatsapp.com")
def forward():
element=driver.find_elements_by_class_name('Tkt2p')
hov = ActionChains(driver).move_to_el... | 26.986486 | 75 | 0.712569 | 310 | 1,997 | 4.354839 | 0.358065 | 0.096296 | 0.08963 | 0.112593 | 0.317778 | 0.317778 | 0.057778 | 0.057778 | 0 | 0 | 0 | 0.012783 | 0.138207 | 1,997 | 73 | 76 | 27.356164 | 0.771644 | 0 | 0 | 0.071429 | 0 | 0 | 0.244713 | 0.01712 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e243d31ffa66bcfb24eac0489807a3ce9ce22fb | 5,092 | py | Python | module/model.py | Oldpan/CoupletAI | fc052f8e6c2fcd322e62533068ae2eb5b086cec8 | [
"MIT"
] | 108 | 2019-06-27T03:20:59.000Z | 2021-02-17T02:11:12.000Z | module/model.py | Oldpan/CoupletAI | fc052f8e6c2fcd322e62533068ae2eb5b086cec8 | [
"MIT"
] | 6 | 2019-08-05T11:18:26.000Z | 2020-12-16T08:12:48.000Z | module/model.py | WiseDoge/CoupletAI | fc052f8e6c2fcd322e62533068ae2eb5b086cec8 | [
"MIT"
] | 45 | 2019-08-05T09:12:40.000Z | 2021-02-17T02:11:13.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
class Transformer(nn.Module):
def __init__(self, vocab_size: int, max_seq_len: int, embed_dim: int, hidden_dim: int, n_layer: int, n_head: int, ff_dim: int, embed_drop: float, hidden_drop: float):
super().__init__()
self.tok_embedd... | 40.412698 | 170 | 0.629419 | 759 | 5,092 | 3.967062 | 0.126482 | 0.041514 | 0.015942 | 0.031883 | 0.761541 | 0.702424 | 0.664231 | 0.638326 | 0.609432 | 0.571571 | 0 | 0.0128 | 0.248233 | 5,092 | 125 | 171 | 40.736 | 0.773772 | 0.00707 | 0 | 0.601942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145631 | false | 0 | 0.029126 | 0 | 0.320388 | 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 |
1e2943159716a631209644cd0808143167b83cde | 2,301 | py | Python | python_api/readDocQR_old.py | patjawat/tcds | 115ae8151a152a21538cf0a837379bb1e3204ea2 | [
"BSD-3-Clause"
] | null | null | null | python_api/readDocQR_old.py | patjawat/tcds | 115ae8151a152a21538cf0a837379bb1e3204ea2 | [
"BSD-3-Clause"
] | 41 | 2019-07-28T03:42:14.000Z | 2019-08-25T14:51:55.000Z | python_api/readDocQR_old.py | patjawat/tcds | 115ae8151a152a21538cf0a837379bb1e3204ea2 | [
"BSD-3-Clause"
] | null | null | null | from flask import Flask, request, jsonify
from flask_restful import Resource, Api, reqparse
from flask_cors import CORS
from pathlib import Path
import pandas as pd
import os
import shutil
from pyzbar import pyzbar
import argparse
import cv2
import datetime
from PIL import Image
# import psycopg2
import mysql.connector... | 30.68 | 94 | 0.557584 | 280 | 2,301 | 4.553571 | 0.432143 | 0.027451 | 0.028235 | 0.037647 | 0.047059 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0.013224 | 0.309865 | 2,301 | 74 | 95 | 31.094595 | 0.784005 | 0.239896 | 0 | 0.042553 | 0 | 0.021277 | 0.086856 | 0.013318 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.382979 | 0 | 0.404255 | 0.042553 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e35b9f7d1f15a98636e91d5159536c1ccda3f0d | 1,420 | py | Python | Project1-name.py | the-fridge/Python_Projects | 73758eb57acdae26b58a14e6e4996919a7bdde43 | [
"MIT"
] | 1 | 2021-04-18T22:25:56.000Z | 2021-04-18T22:25:56.000Z | Project1-name.py | iamfeysal/Python_Projects | 73758eb57acdae26b58a14e6e4996919a7bdde43 | [
"MIT"
] | null | null | null | Project1-name.py | iamfeysal/Python_Projects | 73758eb57acdae26b58a14e6e4996919a7bdde43 | [
"MIT"
] | 1 | 2019-03-21T08:49:21.000Z | 2019-03-21T08:49:21.000Z | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# authors: Syed Marwan Jamal / Pierre Bouillon
"""`Project1-name.py` is a program that asks for the user's name
Then it print the given name, and the lenght of this name.
"""
def initial_way ():
""" asks the name, print it with its lenght
Original code by Syed ... | 26.296296 | 101 | 0.635915 | 219 | 1,420 | 4 | 0.365297 | 0.054795 | 0.05137 | 0.054795 | 0.348174 | 0.307078 | 0.270548 | 0.270548 | 0.23516 | 0.23516 | 0 | 0.006434 | 0.233803 | 1,420 | 53 | 102 | 26.792453 | 0.798713 | 0.061972 | 0 | 0.090909 | 0 | 0 | 0.240053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.318182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e3dd92f4d8aac9f6dafacbcba3bdbf917967ec7 | 4,146 | py | Python | ctsb/problems/simulated/lstm_output.py | paula-gradu/ctsb | fdc00acb798949ce1120778ad4725faf170f80c3 | [
"Apache-2.0"
] | 1 | 2021-07-03T05:26:56.000Z | 2021-07-03T05:26:56.000Z | ctsb/problems/simulated/lstm_output.py | paula-gradu/ctsb | fdc00acb798949ce1120778ad4725faf170f80c3 | [
"Apache-2.0"
] | null | null | null | ctsb/problems/simulated/lstm_output.py | paula-gradu/ctsb | fdc00acb798949ce1120778ad4725faf170f80c3 | [
"Apache-2.0"
] | null | null | null | """
Long-short term memory output
"""
import jax
import jax.numpy as np
import jax.experimental.stax as stax
import ctsb
from ctsb.utils.random import generate_key
class LSTM_Output(ctsb.Problem):
"""
Produces outputs from a randomly initialized recurrent neural network.
"""
def __init__(self):
... | 27.825503 | 108 | 0.556681 | 538 | 4,146 | 4.232342 | 0.267658 | 0.02108 | 0.02108 | 0.017567 | 0.551603 | 0.543698 | 0.523496 | 0.523496 | 0.523496 | 0.444444 | 0 | 0.007576 | 0.331404 | 4,146 | 148 | 109 | 28.013514 | 0.813853 | 0.26821 | 0 | 0.28 | 1 | 0 | 0.443787 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.08 | false | 0.013333 | 0.066667 | 0 | 0.2 | 0.013333 | 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 |
1e49c28427e2f7af85250b9d68761a3d227affe8 | 2,159 | py | Python | web/contact_me_plugin/migrations/0001_initial.py | nguyentrisinh/hien_portfolio | 538ea9efc358cb666e7198dc04d11248868301f0 | [
"MIT"
] | null | null | null | web/contact_me_plugin/migrations/0001_initial.py | nguyentrisinh/hien_portfolio | 538ea9efc358cb666e7198dc04d11248868301f0 | [
"MIT"
] | null | null | null | web/contact_me_plugin/migrations/0001_initial.py | nguyentrisinh/hien_portfolio | 538ea9efc358cb666e7198dc04d11248868301f0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-10 06:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('cms', '0018_pagenode'),
]
ope... | 38.553571 | 237 | 0.573414 | 211 | 2,159 | 5.677725 | 0.379147 | 0.0601 | 0.105175 | 0.140234 | 0.611018 | 0.398998 | 0.342237 | 0.342237 | 0.342237 | 0.238731 | 0 | 0.029987 | 0.289486 | 2,159 | 55 | 238 | 39.254545 | 0.750978 | 0.031959 | 0 | 0.425532 | 1 | 0 | 0.126977 | 0.025874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.06383 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e4f8d3f1d5a4c75055c3c310d5f179432454ffb | 6,954 | py | Python | fritzhome/__main__.py | DerMitch/fritzbox-smarthome | d3ad0155147c894aadee043f4c2abee6608c0282 | [
"MIT"
] | 49 | 2015-01-28T16:06:03.000Z | 2021-06-26T17:23:55.000Z | fritzhome/__main__.py | DerMitch/fritzbox-smarthome | d3ad0155147c894aadee043f4c2abee6608c0282 | [
"MIT"
] | 22 | 2015-01-30T01:03:58.000Z | 2021-06-05T09:52:36.000Z | fritzhome/__main__.py | DerMitch/fritzbox-smarthome | d3ad0155147c894aadee043f4c2abee6608c0282 | [
"MIT"
] | 29 | 2015-08-26T18:41:03.000Z | 2022-02-14T20:12:07.000Z | # coding: utf-8
"""
FRITZ!Box SmartHome Client
~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
from __future__ import print_function, division
import re
import time
import json
import socket
import click
from .fritz import FritzBox
@click.group()
@click.option('--host', default='169.254.1.1') # fritzbox "emergency" IP
@c... | 28.617284 | 90 | 0.577222 | 838 | 6,954 | 4.704057 | 0.22673 | 0.050228 | 0.03653 | 0.043379 | 0.359716 | 0.337646 | 0.308727 | 0.297565 | 0.216641 | 0.216641 | 0 | 0.012397 | 0.269198 | 6,954 | 242 | 91 | 28.735537 | 0.763085 | 0.088726 | 0 | 0.411111 | 0 | 0 | 0.152958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.066667 | 0.038889 | 0 | 0.094444 | 0.005556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e4fbeafd883f18c8f7527bc410eaac4160964c2 | 1,163 | py | Python | analytic/models.py | taxidriver77/django-angular | f8d9dc58e05c99b6abe694e6be4b4de769664657 | [
"0BSD"
] | null | null | null | analytic/models.py | taxidriver77/django-angular | f8d9dc58e05c99b6abe694e6be4b4de769664657 | [
"0BSD"
] | 3 | 2020-02-11T23:41:57.000Z | 2021-06-10T19:13:54.000Z | analytic/models.py | taxidriver77/django-angular | f8d9dc58e05c99b6abe694e6be4b4de769664657 | [
"0BSD"
] | null | null | null | # coding=utf-8
from datetime import datetime
from mongoengine import Document, StringField, ListField,DateTimeField,\
EmbeddedDocumentField,IntField,LongField,EmbeddedDocument
from analytic.utils import UnixEpochDateTimeField
class Transaction(EmbeddedDocument):
method = StringField(max_length=20)
price =... | 29.075 | 72 | 0.764402 | 123 | 1,163 | 7.097561 | 0.414634 | 0.112257 | 0.160367 | 0.14433 | 0.190149 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017172 | 0.148753 | 1,163 | 39 | 73 | 29.820513 | 0.864646 | 0.010318 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.962963 | 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 |
1e501b2ea89e0ed4a1d5c00e12690e2653f1a619 | 991 | py | Python | Examples/Prediction Comparison and Plot.py | Ennuk3/NeuralNetworkDataPrep | 19d9f34e4bd9cfb1fdedddf857e5ac97cd81f3c8 | [
"MIT"
] | null | null | null | Examples/Prediction Comparison and Plot.py | Ennuk3/NeuralNetworkDataPrep | 19d9f34e4bd9cfb1fdedddf857e5ac97cd81f3c8 | [
"MIT"
] | null | null | null | Examples/Prediction Comparison and Plot.py | Ennuk3/NeuralNetworkDataPrep | 19d9f34e4bd9cfb1fdedddf857e5ac97cd81f3c8 | [
"MIT"
] | null | null | null | from Functions import model_input_func
from Functions import read_func
from Functions import plot_pred_func
from Functions import model_input_func
"""
This example:
1. creates a multi-index DataFrame from the predictions of all of the compositional profiles for every model,
2. saves the DataFrame as a CSV file,
3. plo... | 41.291667 | 128 | 0.789102 | 153 | 991 | 4.901961 | 0.424837 | 0.053333 | 0.113333 | 0.146667 | 0.296 | 0.296 | 0.208 | 0.208 | 0.208 | 0.208 | 0 | 0.008037 | 0.12109 | 991 | 23 | 129 | 43.086957 | 0.853042 | 0 | 0 | 0.2 | 0 | 0 | 0.200278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
1e57efd08cfc2adbca270aebc4036400c1c2e2b1 | 821 | py | Python | rename.py | danx0r/forml | 7369e36926102aafad309e03b1e23f0430f64bdb | [
"BSD-3-Clause"
] | null | null | null | rename.py | danx0r/forml | 7369e36926102aafad309e03b1e23f0430f64bdb | [
"BSD-3-Clause"
] | 1 | 2017-02-17T01:21:55.000Z | 2017-02-17T01:21:55.000Z | rename.py | danx0r/forml | 7369e36926102aafad309e03b1e23f0430f64bdb | [
"BSD-3-Clause"
] | null | null | null | import os, sys
old = "djangsimple"
new = sys.argv[1]
def do(path):
oldpath = os.path.abspath('.')
os.chdir(path)
# print "-->", path
for f in os.listdir(path):
# print "---->", f
if f[:4] == ".git" or f[-4:] == ".pyc" or f == __file__:
continue
f = os.path.abspath(f... | 24.147059 | 64 | 0.401949 | 104 | 821 | 3.134615 | 0.413462 | 0.07362 | 0.079755 | 0.055215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.437272 | 821 | 34 | 65 | 24.147059 | 0.699134 | 0.051157 | 0 | 0.071429 | 0 | 0 | 0.068564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e5cb81a410d4569762d9ac430ce03314c1299c5 | 708 | py | Python | app/airtable/base_school_db/contact_info.py | WildflowerSchools/wf-airtable-api | 963021e5108462d33efa222fedb00890e1788ad6 | [
"MIT"
] | null | null | null | app/airtable/base_school_db/contact_info.py | WildflowerSchools/wf-airtable-api | 963021e5108462d33efa222fedb00890e1788ad6 | [
"MIT"
] | null | null | null | app/airtable/base_school_db/contact_info.py | WildflowerSchools/wf-airtable-api | 963021e5108462d33efa222fedb00890e1788ad6 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import BaseModel, Field
from app.airtable.response import AirtableResponse
MODEL_TYPE = "contact_info"
class CreateAirtableContactInfoFields(BaseModel):
educator: Optional[list[str]] = Field(alias="Educator")
type: Optional[str] = Field(alias="Type")
email: Opt... | 26.222222 | 70 | 0.762712 | 73 | 708 | 7.30137 | 0.520548 | 0.093809 | 0.097561 | 0.118199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142655 | 708 | 26 | 71 | 27.230769 | 0.878089 | 0 | 0 | 0 | 0 | 0 | 0.05791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.1875 | 0 | 0.8125 | 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 |
1e6041ff5caae0e9db64334b58d429cec3bc3960 | 420 | py | Python | tests/test_add_videos.py | i-crux/x264codec | 5dc7453c73ebc67e87c51d544707176d632757d0 | [
"MIT"
] | 17 | 2020-12-10T10:44:35.000Z | 2022-03-18T13:38:41.000Z | tests/test_add_videos.py | i-crux/x264codec | 5dc7453c73ebc67e87c51d544707176d632757d0 | [
"MIT"
] | null | null | null | tests/test_add_videos.py | i-crux/x264codec | 5dc7453c73ebc67e87c51d544707176d632757d0 | [
"MIT"
] | 9 | 2020-11-02T10:53:30.000Z | 2022-02-07T08:21:30.000Z | import pytest
import random
from x264codec.x264codec import X264Codec
def test_add_videos():
vh = X264Codec.from_format_video("tests/video_file/done_h.mp4")
vv = X264Codec.from_format_video("tests/video_file/done_v.mp4")
vs = [vh, vv]
v1 = vh+vv
for _ in range(random.randint(3, 10)):
v1 +... | 23.333333 | 67 | 0.671429 | 63 | 420 | 4.301587 | 0.507937 | 0.077491 | 0.140221 | 0.177122 | 0.309963 | 0.309963 | 0.309963 | 0.309963 | 0 | 0 | 0 | 0.080119 | 0.197619 | 420 | 17 | 68 | 24.705882 | 0.724036 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0.285714 | 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 |
1e631e812134dfd33376c48b182abc0049d93a45 | 324 | py | Python | classes/migrations/0003_remove_class_teacher.py | chillerm/digitalocean-classroom | fbcc3bfb2df349b2d039a0ce33043de6ed225954 | [
"Apache-2.0"
] | 5 | 2020-03-31T16:32:24.000Z | 2020-08-25T19:52:47.000Z | classes/migrations/0003_remove_class_teacher.py | chillerm/digitalocean-classroom | fbcc3bfb2df349b2d039a0ce33043de6ed225954 | [
"Apache-2.0"
] | 12 | 2020-10-16T18:43:30.000Z | 2021-06-10T20:05:25.000Z | classes/migrations/0003_remove_class_teacher.py | chillerm/digitalocean-classroom | fbcc3bfb2df349b2d039a0ce33043de6ed225954 | [
"Apache-2.0"
] | 8 | 2020-10-16T18:49:48.000Z | 2021-09-29T13:24:45.000Z | # Generated by Django 2.2.10 on 2020-04-01 19:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('classes', '0002_class_teacher'),
]
operations = [
migrations.RemoveField(
model_name='class',
name='teacher',
),
... | 18 | 48 | 0.58642 | 34 | 324 | 5.5 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088106 | 0.299383 | 324 | 17 | 49 | 19.058824 | 0.735683 | 0.141975 | 0 | 0 | 1 | 0 | 0.134058 | 0 | 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 |
1e65af286d433e639bb58cc8cad86c56320effa4 | 8,642 | py | Python | modules/nltk_contrib/scripttranscriber/tokens.py | h4ck3rm1k3/NLP-project | aeba6302f60d27a8b9e65ad28d2d74e1276c7cd6 | [
"MIT"
] | 123 | 2015-01-06T10:46:18.000Z | 2022-02-01T10:05:16.000Z | nltk_contrib/scripttranscriber/tokens.py | silky/nltk_contrib | c152bde901f05915e90b07a615b232adb123bed8 | [
"Apache-2.0"
] | 12 | 2015-01-13T06:27:18.000Z | 2020-07-30T23:00:41.000Z | nltk_contrib/scripttranscriber/tokens.py | silky/nltk_contrib | c152bde901f05915e90b07a615b232adb123bed8 | [
"Apache-2.0"
] | 114 | 2015-01-13T04:47:49.000Z | 2021-11-13T08:16:02.000Z | # -*- coding: utf-8 -*-
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing... | 28.806667 | 75 | 0.636195 | 1,062 | 8,642 | 5.017891 | 0.236347 | 0.045037 | 0.034153 | 0.002252 | 0.146369 | 0.082192 | 0.049165 | 0.04316 | 0.04316 | 0.04316 | 0 | 0.007838 | 0.247049 | 8,642 | 299 | 76 | 28.90301 | 0.811126 | 0.174497 | 0 | 0.090047 | 0 | 0 | 0.039425 | 0.009251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203791 | false | 0 | 0.018957 | 0.080569 | 0.35545 | 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 |
1e6dd543467a1f2116b6a081c6d4aa8a800e8a1d | 3,300 | py | Python | classifier.py | wenjiesha/word_embedding | 22d11c45adfdf5189bbd241aa00e0f6dc4575e5e | [
"Apache-2.0"
] | 5 | 2017-01-14T05:24:51.000Z | 2018-02-06T09:50:07.000Z | classifier.py | wenjiesha/word_embedding | 22d11c45adfdf5189bbd241aa00e0f6dc4575e5e | [
"Apache-2.0"
] | 1 | 2016-06-20T04:18:12.000Z | 2016-06-20T04:29:51.000Z | classifier.py | wenjiesha/word_embedding | 22d11c45adfdf5189bbd241aa00e0f6dc4575e5e | [
"Apache-2.0"
] | 3 | 2016-04-24T12:38:32.000Z | 2019-11-27T07:48:04.000Z | import sys
# import pydot
import numpy
import theano
import theano.tensor as T
# theano.config.optimizer = 'None'
# theano.config.exception_verbosity = 'high'
theano.config.linker = 'py'
class NNet(object):
def __init__(self, vocabulary_size, embedding_dimension, context_window_size,
num_hidden_lay... | 36.666667 | 83 | 0.634242 | 413 | 3,300 | 4.927361 | 0.297821 | 0.009828 | 0.041278 | 0.046683 | 0.24226 | 0.198526 | 0.149386 | 0.149386 | 0.149386 | 0.10516 | 0 | 0.01428 | 0.257273 | 3,300 | 89 | 84 | 37.078652 | 0.815993 | 0.15 | 0 | 0 | 0 | 0 | 0.026517 | 0 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.089286 | false | 0 | 0.071429 | 0.017857 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1e6e1b4224d4944c3bf643e1fbb5470fb49d543c | 4,469 | py | Python | QLearningAgent.py | poojasrinivass/NLRL | aa170a0730752af491cf4cc0a0f0fb66c35ebb3d | [
"MIT"
] | null | null | null | QLearningAgent.py | poojasrinivass/NLRL | aa170a0730752af491cf4cc0a0f0fb66c35ebb3d | [
"MIT"
] | null | null | null | QLearningAgent.py | poojasrinivass/NLRL | aa170a0730752af491cf4cc0a0f0fb66c35ebb3d | [
"MIT"
] | null | null | null | from core.symbolicEnvironment import CliffWalking, WindyCliffWalking, Unstack, Stack, On
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
class QL():
def __init__(self, actions, action_space):
self.nA = action_space
self.actions = actions
self.Q = dict()
def act(sel... | 30.195946 | 107 | 0.555382 | 583 | 4,469 | 4.109777 | 0.243568 | 0.027546 | 0.025042 | 0.020033 | 0.342654 | 0.342654 | 0.331386 | 0.307179 | 0.307179 | 0.293823 | 0 | 0.016711 | 0.330499 | 4,469 | 147 | 108 | 30.401361 | 0.784091 | 0.00537 | 0 | 0.409836 | 0 | 0 | 0.021749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032787 | null | null | 0.02459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e70287752f6c812e2dbb203c0b4a16625a8fd06 | 3,103 | py | Python | giggleliu/tba/lattice/tests.py | Lynn-015/Test_01 | 88be712b2d17603f7a3c38836dabe8dbdee2aba3 | [
"MIT"
] | 2 | 2015-11-12T01:11:20.000Z | 2015-11-12T23:32:28.000Z | giggleliu/tba/lattice/tests.py | Lynn-015/Test_01 | 88be712b2d17603f7a3c38836dabe8dbdee2aba3 | [
"MIT"
] | 3 | 2015-10-28T02:25:48.000Z | 2015-11-25T18:21:22.000Z | giggleliu/tba/lattice/tests.py | Lynn-015/NJU_DMRG | 88be712b2d17603f7a3c38836dabe8dbdee2aba3 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from numpy import *
from matplotlib.pyplot import *
from latticelib import *
from structure import Structure
from group import TranslationGroup
import time,pdb
def test_structure(N,lt):
'''
N:
The size of the lattice.
lt:
The lattice type.
'''
lts=construct_lattice... | 29.552381 | 86 | 0.622946 | 478 | 3,103 | 3.976987 | 0.26569 | 0.008417 | 0.028932 | 0.028406 | 0.361915 | 0.314571 | 0.301946 | 0.240926 | 0.240926 | 0.240926 | 0 | 0.025995 | 0.206574 | 3,103 | 104 | 87 | 29.836538 | 0.746141 | 0.079923 | 0 | 0.3 | 0 | 0 | 0.167042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1e76e66e158e6944a4b47b5db0447bb0ad2ebc98 | 2,252 | py | Python | learningmachines/learningmachines/public_credentials.py | ucdscenter/learning_machines_app | 0d4802f23db637b498c148828817421964821603 | [
"MIT"
] | null | null | null | learningmachines/learningmachines/public_credentials.py | ucdscenter/learning_machines_app | 0d4802f23db637b498c148828817421964821603 | [
"MIT"
] | null | null | null | learningmachines/learningmachines/public_credentials.py | ucdscenter/learning_machines_app | 0d4802f23db637b498c148828817421964821603 | [
"MIT"
] | null | null | null | import os
import boto3
import json
try:
#this is if you are using a user defined credentials.py file, it will override these values.
from .credentials import AWS_PROFILE, DB_ENV, DEV_DB_PROFILE, DJANGO_SECRET, SQS_QUEUE_NAME, REDIS_IP, REDIS_URL, RDS_ENDPOINT, S3_OBJECT, EMAIL_INFO, DEBUG_SETTING
print("creden... | 29.246753 | 165 | 0.731794 | 301 | 2,252 | 5.222591 | 0.392027 | 0.035623 | 0.041349 | 0.041985 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011892 | 0.141208 | 2,252 | 76 | 166 | 29.631579 | 0.800931 | 0.236234 | 0 | 0 | 0 | 0.021277 | 0.370457 | 0.124853 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06383 | 0.085106 | 0 | 0.085106 | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1e7bc412ab96a28496b1ad9c7587641e3637d4ac | 5,188 | py | Python | src/rightClickHelper/view/management/menuItemCard.py | NWYLZW/right-click-helper | 7562740b70797d02f026a464618734ba9816b764 | [
"MIT"
] | 24 | 2020-12-15T08:20:02.000Z | 2021-12-03T12:37:23.000Z | src/rightClickHelper/view/management/menuItemCard.py | NWYLZW/right-click-helper | 7562740b70797d02f026a464618734ba9816b764 | [
"MIT"
] | 3 | 2021-01-02T12:31:07.000Z | 2021-04-27T09:02:24.000Z | src/rightClickHelper/view/management/menuItemCard.py | NWYLZW/right-click-helper | 7562740b70797d02f026a464618734ba9816b764 | [
"MIT"
] | 1 | 2021-01-01T13:25:29.000Z | 2021-01-01T13:25:29.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '../src/rightClickHelper/view/management/menuItemCard.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# 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 yo... | 39.603053 | 110 | 0.664032 | 619 | 5,188 | 5.53958 | 0.245557 | 0.006999 | 0.055118 | 0.026247 | 0.340041 | 0.256635 | 0.144065 | 0.052493 | 0.052493 | 0.025663 | 0 | 0.03722 | 0.181766 | 5,188 | 130 | 111 | 39.907692 | 0.770554 | 0.061103 | 0 | 0.215517 | 1 | 0.017241 | 0.200699 | 0.065392 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.017241 | 0 | 0.043103 | 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 |
1e7d21ae76b5f2501e14a7a7379c05ff0dc3c641 | 294 | py | Python | 9-Firewall_and_Stealth_communication/q2/a/winston.py | galtoubul/Introduction_to_Information_Security | 565181ef2ec9530de8e4af43d97da454ddcc77be | [
"MIT"
] | null | null | null | 9-Firewall_and_Stealth_communication/q2/a/winston.py | galtoubul/Introduction_to_Information_Security | 565181ef2ec9530de8e4af43d97da454ddcc77be | [
"MIT"
] | null | null | null | 9-Firewall_and_Stealth_communication/q2/a/winston.py | galtoubul/Introduction_to_Information_Security | 565181ef2ec9530de8e4af43d97da454ddcc77be | [
"MIT"
] | null | null | null | import socket
def send_message(ip, port):
connection = socket.socket()
try:
connection.connect((ip, port))
connection.send(b'I love you')
finally:
connection.close()
def main():
send_message('127.0.0.1', 1984)
if __name__ == '__main__':
main()
| 15.473684 | 38 | 0.602041 | 37 | 294 | 4.513514 | 0.621622 | 0.131737 | 0.191617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045662 | 0.255102 | 294 | 18 | 39 | 16.333333 | 0.716895 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.25 | 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 |
1e7f30f046f3f0c91ccb54c87f0b1d5217e17611 | 689 | py | Python | tests/test_coerce.py | learntextvis/textkit | 6c482ea7d378022e10ee1002f9d9db7925856294 | [
"MIT"
] | 29 | 2016-01-13T00:55:53.000Z | 2022-02-03T06:38:10.000Z | tests/test_coerce.py | irealva/textkit | 858053a0e4c1f2cc4160873a4eb429c518f48ca2 | [
"MIT"
] | 46 | 2016-01-18T19:17:50.000Z | 2019-12-20T04:55:04.000Z | tests/test_coerce.py | irealva/textkit | 858053a0e4c1f2cc4160873a4eb429c518f48ca2 | [
"MIT"
] | 9 | 2016-04-24T20:01:37.000Z | 2019-01-15T08:54:11.000Z |
from textkit.coerce import coerce_types
def test_coerce_types():
content = [
["happy", "9"],
["day", "8"],
["4", "7"],
["YOU!", "6"]
]
tokens = coerce_types(content)
assert len(tokens) == 4
assert tokens[0][0] == "happy"
assert tokens[0][1] == 9
assert tok... | 20.264706 | 45 | 0.49492 | 91 | 689 | 3.626374 | 0.285714 | 0.254545 | 0.157576 | 0.109091 | 0.575758 | 0.472727 | 0.472727 | 0.472727 | 0.472727 | 0.472727 | 0 | 0.072314 | 0.297533 | 689 | 33 | 46 | 20.878788 | 0.609504 | 0 | 0 | 0.461538 | 0 | 0 | 0.071221 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.115385 | 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 |
1e8475ab3fee8c3f2306a9ebfb1f053a958e2af2 | 276 | py | Python | diplomova_praca/face_features/models.py | MDobransky/thesis-grizzly | b038b477596879465636eae34444d70742a86e8f | [
"MIT"
] | 1 | 2020-07-28T18:38:19.000Z | 2020-07-28T18:38:19.000Z | diplomova_praca/face_features/models.py | JankaSvK/thesis-grizzly | c0e573cd01008003c7d67e093c698ebf2d668f04 | [
"MIT"
] | 1 | 2020-09-21T21:38:46.000Z | 2020-09-21T21:38:46.000Z | diplomova_praca/face_features/models.py | MDobransky/thesis-grizzly | b038b477596879465636eae34444d70742a86e8f | [
"MIT"
] | 1 | 2020-08-20T18:52:13.000Z | 2020-08-20T18:52:13.000Z | from django.db import models
# Create your models here.
class FaceFeaturesSubmission(models.Model):
created = models.DateTimeField(auto_now_add=True)
request = models.TextField()
selected = models.TextField()
num_hints = models.IntegerField()
| 21.230769 | 54 | 0.710145 | 30 | 276 | 6.433333 | 0.766667 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202899 | 276 | 12 | 55 | 23 | 0.877273 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
1e8e1fd461209dbbc4f97d4cb03249a2f39da910 | 527 | py | Python | wrangle/df/df_to_lower.py | benjolitz/wrangle | bac0c2affe38fd35db171e2a1c1e835355778459 | [
"MIT"
] | 17 | 2018-07-29T20:02:55.000Z | 2022-02-27T20:58:48.000Z | wrangle/df/df_to_lower.py | benjolitz/wrangle | bac0c2affe38fd35db171e2a1c1e835355778459 | [
"MIT"
] | 24 | 2018-07-10T14:41:40.000Z | 2022-01-31T19:44:32.000Z | wrangle/df/df_to_lower.py | benjolitz/wrangle | bac0c2affe38fd35db171e2a1c1e835355778459 | [
"MIT"
] | 10 | 2019-07-29T03:36:47.000Z | 2022-03-05T12:29:59.000Z | def df_to_lower(data, cols=None):
'''Convert all string values to lowercase
data : pandas dataframe
The dataframe to be cleaned
cols : str, list, or None
If None, an attempt will be made to turn
all string columns into lowercase.
'''
if isinstance(cols, str):
cols... | 21.08 | 48 | 0.578748 | 69 | 527 | 4.391304 | 0.565217 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.347249 | 527 | 24 | 49 | 21.958333 | 0.880814 | 0.388994 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1e9c4ca0806d9f77c02b1a198c076f49f165ec06 | 506 | py | Python | looking_for_group/discord/provider.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | looking_for_group/discord/provider.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | looking_for_group/discord/provider.py | andrlik/looking-for-group | 0b1cecb37ef0f6d75692fd188130e2c60d09b7d2 | [
"BSD-3-Clause"
] | null | null | null | from allauth.socialaccount.providers.discord.provider import DiscordAccount, DiscordProvider
class DiscordGuildAccount(DiscordAccount):
pass
class DiscordProviderWithGuilds(DiscordProvider):
'''
Adds the guild scope to the Oauth request.
'''
id = 'discord_with_guilds'
name = 'Discord'
ac... | 24.095238 | 92 | 0.733202 | 48 | 506 | 7.604167 | 0.75 | 0.131507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179842 | 506 | 20 | 93 | 25.3 | 0.879518 | 0.118577 | 0 | 0 | 0 | 0 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1e9f2ac02d042ecd8ec42a3a4b0b6a7a5c639583 | 5,141 | py | Python | web-ontology/newsroomFramework-master/cms/migrations/0001_initial.py | Benedito-Medeiros-Neto-UnB/TacProgWeb | c7d795a69524e428988d4ed796f4a1c2ded035e3 | [
"MIT"
] | 1 | 2021-04-12T13:34:00.000Z | 2021-04-12T13:34:00.000Z | web-ontology/newsroomFramework-master/cms/migrations/0001_initial.py | Benedito-Medeiros-Neto-UnB/TacProgWeb | c7d795a69524e428988d4ed796f4a1c2ded035e3 | [
"MIT"
] | 19 | 2021-05-14T20:56:29.000Z | 2022-02-10T11:59:33.000Z | web-ontology/newsroomFramework-master/cms/migrations/0001_initial.py | Benedito-Medeiros-Neto-UnB/TacProgWeb | c7d795a69524e428988d4ed796f4a1c2ded035e3 | [
"MIT"
] | 10 | 2021-05-13T16:18:53.000Z | 2021-11-08T14:30:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-03-06 02:46
from __future__ import unicode_literals
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion
from newsroomFramework.settings import PROJECT_ROOT
import os
import ontospy
def forwards_func(apps, schema... | 40.801587 | 148 | 0.599883 | 547 | 5,141 | 5.497258 | 0.239488 | 0.051214 | 0.058198 | 0.053542 | 0.627203 | 0.525108 | 0.481876 | 0.472564 | 0.437313 | 0.402727 | 0 | 0.009023 | 0.245478 | 5,141 | 125 | 149 | 41.128 | 0.766177 | 0.013227 | 0 | 0.495327 | 1 | 0 | 0.09211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018692 | false | 0 | 0.065421 | 0 | 0.121495 | 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 |
1ea6674796198e25639b70efc1faeb9b114506ba | 582 | py | Python | setup.py | aresys-srl/sar-calibration-tool | 06e67061217b6c1747c1c79b46129c113e9c1374 | [
"MIT"
] | null | null | null | setup.py | aresys-srl/sar-calibration-tool | 06e67061217b6c1747c1c79b46129c113e9c1374 | [
"MIT"
] | null | null | null | setup.py | aresys-srl/sar-calibration-tool | 06e67061217b6c1747c1c79b46129c113e9c1374 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
def readme():
with open("README.rst") as f:
return f.read()
def exclude_list():
return ["tests"]
setup(
name="sct",
version="1.0.1",
author="ARESYS S.r.l.",
author_email="info@aresys.it",
description="SAR Calibration Tool",
long_d... | 20.785714 | 51 | 0.616838 | 68 | 582 | 5.191176 | 0.720588 | 0.067989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008969 | 0.233677 | 582 | 27 | 52 | 21.555556 | 0.782511 | 0 | 0 | 0 | 0 | 0 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | true | 0 | 0.047619 | 0.047619 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ea7e59b6a923df0cb0a1b337542d2539137cd26 | 1,885 | py | Python | wagtailmenus/tests/urls.py | pierremanceaux/wagtailmenus | 8e2e81e74fa37a9d4139c6be7158cd3d1429ac1d | [
"MIT"
] | null | null | null | wagtailmenus/tests/urls.py | pierremanceaux/wagtailmenus | 8e2e81e74fa37a9d4139c6be7158cd3d1429ac1d | [
"MIT"
] | null | null | null | wagtailmenus/tests/urls.py | pierremanceaux/wagtailmenus | 8e2e81e74fa37a9d4139c6be7158cd3d1429ac1d | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.views.generic import TemplateView
from wagtail import VERSION as WAGTAIL_VERSION
if WAGTAIL_VERSION >= (2, 0):
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.core import urls as wagtail_urls
else:
from wagtail.wagtailadmin import urls a... | 48.333333 | 79 | 0.720424 | 269 | 1,885 | 4.933086 | 0.267658 | 0.033158 | 0.12208 | 0.176338 | 0.672947 | 0.553127 | 0.531274 | 0.351168 | 0.295403 | 0.259231 | 0 | 0.003117 | 0.149072 | 1,885 | 38 | 80 | 49.605263 | 0.82419 | 0.190451 | 0 | 0.133333 | 0 | 0 | 0.291639 | 0.236998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.233333 | 0 | 0.233333 | 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 |
1ea896e1ec7708de24f8b9686b033baadb64a22f | 9,169 | py | Python | bids/reports/report.py | bids-standard/pybids-reports | a209b6c5798a1253c31c380113aaf7d005f76296 | [
"MIT"
] | null | null | null | bids/reports/report.py | bids-standard/pybids-reports | a209b6c5798a1253c31c380113aaf7d005f76296 | [
"MIT"
] | 2 | 2022-02-10T21:57:04.000Z | 2022-02-16T01:46:03.000Z | bids/reports/report.py | bids-standard/pybids-reports | a209b6c5798a1253c31c380113aaf7d005f76296 | [
"MIT"
] | null | null | null | """Generate publication-quality data acquisition methods section from BIDS dataset."""
import json
import os.path as op
from collections import Counter
from bids.reports import parsing, utils
class BIDSReport(object):
"""Generate publication-quality data acquisition section from BIDS dataset.
Parameters
... | 38.687764 | 88 | 0.570182 | 1,004 | 9,169 | 5.141434 | 0.248008 | 0.013948 | 0.012592 | 0.011623 | 0.555792 | 0.507555 | 0.489345 | 0.463774 | 0.463774 | 0.463774 | 0 | 0.004601 | 0.336242 | 9,169 | 236 | 89 | 38.851695 | 0.843575 | 0.46221 | 0 | 0.36 | 1 | 0 | 0.091834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.12 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1eb1f441a40013793b22c558ff55ef86e559e0a9 | 2,861 | py | Python | src/osparc_function_services/app.py | pcrespov/osparc-function-services | 68be5bf2cad181f703488c2f358efa668f3ac3c5 | [
"MIT"
] | null | null | null | src/osparc_function_services/app.py | pcrespov/osparc-function-services | 68be5bf2cad181f703488c2f358efa668f3ac3c5 | [
"MIT"
] | null | null | null | src/osparc_function_services/app.py | pcrespov/osparc-function-services | 68be5bf2cad181f703488c2f358efa668f3ac3c5 | [
"MIT"
] | null | null | null | import json
from optparse import Option
import os
from json.decoder import JSONDecodeError
from pathlib import Path
from typing import (
Callable,
Optional,
)
from . import log
from pydantic import BaseModel, BaseSettings, ValidationError, validator
from pydantic.decorator import ValidatedFunction
class Setti... | 29.494845 | 87 | 0.658161 | 364 | 2,861 | 5.024725 | 0.340659 | 0.029524 | 0.04374 | 0.018589 | 0.126845 | 0.102788 | 0.072171 | 0.072171 | 0.072171 | 0.072171 | 0 | 0.000937 | 0.254107 | 2,861 | 96 | 88 | 29.802083 | 0.856139 | 0.0741 | 0 | 0.144928 | 0 | 0 | 0.156002 | 0.017796 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0.028986 | 0.434783 | 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 |
1eb43e22001bb47a48dceaf309d890fce658285b | 489 | py | Python | setup.py | robsonzagrejr/anp_city_extract | 0b32cd462f5c75d9da3fbce535db5d22a6f541a0 | [
"MIT"
] | null | null | null | setup.py | robsonzagrejr/anp_city_extract | 0b32cd462f5c75d9da3fbce535db5d22a6f541a0 | [
"MIT"
] | 1 | 2020-10-12T14:26:48.000Z | 2020-10-12T14:26:48.000Z | setup.py | robsonzagrejr/anp_city_extract | 0b32cd462f5c75d9da3fbce535db5d22a6f541a0 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='anp_city_extract',
version='1.0.0',
url='https://github.com/robsonzagrejr/anp_city_extract',
author='Robson Zagre Júnior',
author_email='r.zagre.jr@gmail.com',
description='Simple ANP info stract for UFSC Probabilidade e Estatistica class... | 25.736842 | 84 | 0.650307 | 56 | 489 | 5.517857 | 0.767857 | 0.067961 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.222904 | 489 | 18 | 85 | 27.166667 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0.472393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
1eb48766c902b7119f75d7fefce10ce60c1b8fc6 | 1,198 | py | Python | example_addmagnet.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | 1 | 2015-05-22T21:26:51.000Z | 2015-05-22T21:26:51.000Z | example_addmagnet.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | 6 | 2015-01-02T22:29:38.000Z | 2015-06-17T17:26:57.000Z | example_addmagnet.py | TouchTone/pyjsit | 52eb3eafdbab82c8ef6ba340eeaa5a7e6446a36f | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
## Simple example for the JSIT module
import time, sys
from tools import testtorrents, isoize_b, isoize_bps
import jsit
from log import *
# For debugging, use False to reduce clutter
if True:
setLogLevel(DEBUG)
## Establish connection
# Using with enforces cleanup, good idea for small script... | 31.526316 | 183 | 0.644407 | 163 | 1,198 | 4.687117 | 0.607362 | 0.041885 | 0.082461 | 0.090314 | 0.212042 | 0.149215 | 0.062827 | 0 | 0 | 0 | 0 | 0.021598 | 0.227045 | 1,198 | 37 | 184 | 32.378378 | 0.803456 | 0.152755 | 0 | 0 | 0 | 0 | 0.330357 | 0.066468 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1eb6b396a33541e83f409e301aedaa2a20a20d2d | 461 | py | Python | server/api/visualisation/visualisation.py | JBris/dolphin_segmentation | b1d22293720c15038d9c521aed8e7b258d8409aa | [
"MIT"
] | 1 | 2021-05-09T05:40:53.000Z | 2021-05-09T05:40:53.000Z | server/api/visualisation/visualisation.py | JBris/dolphin_segmentation | b1d22293720c15038d9c521aed8e7b258d8409aa | [
"MIT"
] | null | null | null | server/api/visualisation/visualisation.py | JBris/dolphin_segmentation | b1d22293720c15038d9c521aed8e7b258d8409aa | [
"MIT"
] | null | null | null | from enum import Enum, unique
from api.visualisation.umap import UMAP
@unique
class VisualisationMethod(Enum):
UMAP = "umap"
class Visualisation:
def validate(self, method):
return method in [item.value for item in VisualisationMethod]
def visualise(self, method, data):
if method == Vis... | 28.8125 | 82 | 0.73102 | 54 | 461 | 6.240741 | 0.481481 | 0.059347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182213 | 461 | 16 | 83 | 28.8125 | 0.893899 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.727273 | 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 |
1ecc01ca4a68f4f8e4a86678bf05e0ce212cf127 | 1,758 | py | Python | spid_cie_oidc/entity/schemas/jwks.py | freddi301/spid-cie-oidc-django | 7cfa8d775ee46e24efdc5ecfd32f7f39fb018149 | [
"Apache-2.0"
] | null | null | null | spid_cie_oidc/entity/schemas/jwks.py | freddi301/spid-cie-oidc-django | 7cfa8d775ee46e24efdc5ecfd32f7f39fb018149 | [
"Apache-2.0"
] | null | null | null | spid_cie_oidc/entity/schemas/jwks.py | freddi301/spid-cie-oidc-django | 7cfa8d775ee46e24efdc5ecfd32f7f39fb018149 | [
"Apache-2.0"
] | null | null | null | from typing import List, Literal, Optional
from pydantic import BaseModel, validator
class Jwk(BaseModel):
kid: str # Base64url-encoded thumbprint string
kty: Literal["EC", "RSA"]
# TODO: verify if is optional
alg: Optional[
Literal[
"RS256",
"RS384",
"RS5... | 25.852941 | 74 | 0.594425 | 228 | 1,758 | 4.425439 | 0.298246 | 0.069376 | 0.090188 | 0.094153 | 0.270565 | 0.270565 | 0.270565 | 0.124876 | 0.124876 | 0.124876 | 0 | 0.035994 | 0.273038 | 1,758 | 67 | 75 | 26.238806 | 0.753521 | 0.081342 | 0 | 0 | 0 | 0 | 0.110075 | 0 | 0 | 0 | 0 | 0.014925 | 0 | 1 | 0.14 | false | 0 | 0.04 | 0 | 0.48 | 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 |
1ed33f42e9073b36accc5c4b8addaec2143c5bcc | 507 | py | Python | main/migrations/0002_auto_20190119_2337.py | swparkaust/sunwoobot | bbdfede40526d7090f8c29d071d2dec7d2da52cf | [
"MIT"
] | 10 | 2019-03-03T06:20:05.000Z | 2022-03-05T12:29:57.000Z | main/migrations/0002_auto_20190119_2337.py | swparkaust/sunwoobot | bbdfede40526d7090f8c29d071d2dec7d2da52cf | [
"MIT"
] | 3 | 2020-06-05T19:57:18.000Z | 2021-06-10T17:45:34.000Z | main/migrations/0002_auto_20190119_2337.py | swparkaust/sunwoobot | bbdfede40526d7090f8c29d071d2dec7d2da52cf | [
"MIT"
] | 3 | 2019-03-03T07:22:10.000Z | 2020-11-30T18:38:52.000Z | # Generated by Django 2.0.8 on 2019-01-19 14:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='lazylet_term',
options={'ordering': ['i... | 22.043478 | 66 | 0.558185 | 50 | 507 | 5.58 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.309665 | 507 | 22 | 67 | 23.045455 | 0.737143 | 0.088757 | 0 | 0.125 | 1 | 0 | 0.11087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ed6693e61dde76c66958ff4435112ef94ce3e40 | 10,058 | py | Python | dautils/stats.py | diabloxenon/dautils | 064307b0fd9bbca2adcc7df5c6a0289954c74d58 | [
"MIT"
] | null | null | null | dautils/stats.py | diabloxenon/dautils | 064307b0fd9bbca2adcc7df5c6a0289954c74d58 | [
"MIT"
] | null | null | null | dautils/stats.py | diabloxenon/dautils | 064307b0fd9bbca2adcc7df5c6a0289954c74d58 | [
"MIT"
] | null | null | null | """ Statistical functions and utilities. """
import numpy as np
from scipy.stats import describe
import pandas as pd
import math
from collections import namedtuple
from math import sqrt
def rss(actual, forecast):
''' Computes the residuals squares sum (RSS).
.. math:: RSS = \sum_{i=1}^n (y_i - f(x_i))^2
... | 27.405995 | 79 | 0.601611 | 1,341 | 10,058 | 4.475764 | 0.202834 | 0.023326 | 0.022493 | 0.027991 | 0.318061 | 0.236255 | 0.228424 | 0.170776 | 0.170776 | 0.141786 | 0 | 0.019691 | 0.272917 | 10,058 | 366 | 80 | 27.480874 | 0.801039 | 0.467091 | 0 | 0.067797 | 0 | 0 | 0.032223 | 0 | 0 | 0 | 0 | 0.002732 | 0.008475 | 1 | 0.228814 | false | 0 | 0.050847 | 0.025424 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1ed7a3fb7dbce64117484952460568e3d1c2bb83 | 9,945 | py | Python | sdk/python/pulumi_aws/mq/broker.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/mq/broker.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/mq/broker.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class Broker(pulumi.CustomResource):
"""
Provides an MQ Broker Resource. This resources al... | 47.8125 | 346 | 0.671091 | 1,162 | 9,945 | 5.472461 | 0.231497 | 0.048435 | 0.051895 | 0.06133 | 0.218588 | 0.104576 | 0.049851 | 0.036956 | 0.020129 | 0 | 0 | 0.005206 | 0.246757 | 9,945 | 207 | 347 | 48.043478 | 0.843679 | 0.115636 | 0 | 0 | 1 | 0 | 0.245329 | 0.030685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017699 | false | 0 | 0.017699 | 0 | 0.044248 | 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 |
1edb3b6e1f7b91f54222d81d2712f085b9cd07c8 | 1,549 | py | Python | backend/core/introduction_to_algorithms/resources.py | kehuo/myweb | 3c03cfb0e2380e5dc4e627e3d7decf9e07f7572f | [
"MIT"
] | null | null | null | backend/core/introduction_to_algorithms/resources.py | kehuo/myweb | 3c03cfb0e2380e5dc4e627e3d7decf9e07f7572f | [
"MIT"
] | null | null | null | backend/core/introduction_to_algorithms/resources.py | kehuo/myweb | 3c03cfb0e2380e5dc4e627e3d7decf9e07f7572f | [
"MIT"
] | null | null | null | # @File: resources.py
# @Author: Kevin Huo
# @Date: 2020/4/6
from flask_restful import Resource, reqparse
from core.introduction_to_algorithms.logics.pages import get_md_page
from core.introduction_to_algorithms.logics.catalog import get_catalog_json
from common.utils.http import encoding_resp_utf8
from core.auth.lo... | 29.788462 | 95 | 0.665591 | 187 | 1,549 | 5.336898 | 0.42246 | 0.056112 | 0.096192 | 0.06012 | 0.521042 | 0.521042 | 0.354709 | 0.354709 | 0.174349 | 0.076152 | 0 | 0.024793 | 0.218851 | 1,549 | 51 | 96 | 30.372549 | 0.8 | 0.263396 | 0 | 0.4 | 0 | 0 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.55 | 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 |
1ede0311f0f8c24762735def0a67a56fc55f3a58 | 328 | py | Python | f5sdk/bigiq/__init__.py | herringfromblr/f5-sdk-ternovskiy | adc8434be0c79176db6480bd6842d7a214ba9284 | [
"Apache-2.0"
] | null | null | null | f5sdk/bigiq/__init__.py | herringfromblr/f5-sdk-ternovskiy | adc8434be0c79176db6480bd6842d7a214ba9284 | [
"Apache-2.0"
] | null | null | null | f5sdk/bigiq/__init__.py | herringfromblr/f5-sdk-ternovskiy | adc8434be0c79176db6480bd6842d7a214ba9284 | [
"Apache-2.0"
] | null | null | null | """Module for BIG-IQ
Example - Basic::
from f5sdk.bigiq import ManagementClient
device = ManagementClient('192.0.2.10', user='admin', password='admin')
# get device info (version, etc.)
device.get_info()
"""
from .mgmt_client import ManagementClient
__all__ = [
'ManagementCl... | 19.294118 | 79 | 0.640244 | 36 | 328 | 5.666667 | 0.722222 | 0.215686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031873 | 0.234756 | 328 | 16 | 80 | 20.5 | 0.780876 | 0.667683 | 0 | 0 | 0 | 0 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
9494ecc1c2eb53ec374dc2c742c5eac7fc4ef5bc | 1,115 | py | Python | tools/mo/openvino/tools/mo/utils/tensorboard_util.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2019-09-22T01:05:07.000Z | 2019-09-22T01:05:07.000Z | tools/mo/openvino/tools/mo/utils/tensorboard_util.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | tools/mo/openvino/tools/mo/utils/tensorboard_util.py | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2 | 2019-09-20T01:33:37.000Z | 2019-09-20T08:42:11.000Z | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
try:
import tensorflow.compat.v1 as tf_v1
# disable eager execution of TensorFlow 2 environment immediately
tf_v1.disable_eager_execution()
except ImportError:
import tensorflow as tf_v1
try:
import tensorflow.contrib... | 39.821429 | 90 | 0.721973 | 160 | 1,115 | 4.9125 | 0.51875 | 0.025445 | 0.041985 | 0.040712 | 0.195929 | 0.071247 | 0 | 0 | 0 | 0 | 0 | 0.021324 | 0.200897 | 1,115 | 27 | 91 | 41.296296 | 0.860831 | 0.286996 | 0 | 0.15 | 0 | 0 | 0.173858 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0.05 | false | 0.05 | 0.3 | 0 | 0.35 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94a999567c5142cd049d048646389e876602ca7a | 709 | py | Python | shopping_mall/shopping_mall/apps/meiduo_admin/views/user_views.py | zhangwei-python/Super_shopping_mall | 2a2e233289c1548123b1575eb54548ee5320d73b | [
"MIT"
] | null | null | null | shopping_mall/shopping_mall/apps/meiduo_admin/views/user_views.py | zhangwei-python/Super_shopping_mall | 2a2e233289c1548123b1575eb54548ee5320d73b | [
"MIT"
] | 9 | 2021-01-06T20:09:46.000Z | 2022-02-27T09:57:27.000Z | shopping_mall/shopping_mall/apps/meiduo_admin/views/user_views.py | zhangwei-python/Super_shopping_mall | 2a2e233289c1548123b1575eb54548ee5320d73b | [
"MIT"
] | null | null | null | from rest_framework.generics import ListAPIView, CreateAPIView
from meiduo_admin.mypagination import Mypage
from users.models import User
from meiduo_admin.serislizers.userserializer import UserModelSerializer
class UserView(ListAPIView,CreateAPIView):
queryset = User.objects.all()
serializer_class = UserM... | 27.269231 | 71 | 0.67701 | 72 | 709 | 6.513889 | 0.583333 | 0.102345 | 0.063966 | 0.102345 | 0.149254 | 0.149254 | 0.149254 | 0 | 0 | 0 | 0 | 0 | 0.262341 | 709 | 26 | 72 | 27.269231 | 0.89675 | 0.007052 | 0 | 0.105263 | 0 | 0 | 0.009943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
94b9f989c32ddf37cc18b74e1f4193a520b7fa7f | 349 | py | Python | FaceRecognitionWebsite/codeDesign/myDjango02/app01/migrations/0012_remove_getdatacss_copybook.py | ChunjunHu/FaceRecognitionLibraryWebsite | d979d410dfab52d8bda7a5328242b66d6a6b752d | [
"MIT"
] | 1 | 2021-11-05T21:04:47.000Z | 2021-11-05T21:04:47.000Z | FaceRecognitionWebsite/codeDesign/myDjango02/app01/migrations/0012_remove_getdatacss_copybook.py | ChunjunHu/FaceRecognitionLibraryWebsite | d979d410dfab52d8bda7a5328242b66d6a6b752d | [
"MIT"
] | null | null | null | FaceRecognitionWebsite/codeDesign/myDjango02/app01/migrations/0012_remove_getdatacss_copybook.py | ChunjunHu/FaceRecognitionLibraryWebsite | d979d410dfab52d8bda7a5328242b66d6a6b752d | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2019-01-09 15:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app01', '0011_auto_20190109_2351'),
]
operations = [
migrations.RemoveField(
model_name='getdatacss',
name='Co... | 19.388889 | 48 | 0.567335 | 35 | 349 | 5.542857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140426 | 0.326648 | 349 | 17 | 49 | 20.529412 | 0.685106 | 0.12894 | 0 | 0 | 1 | 0 | 0.161404 | 0.080702 | 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 |
94c3a404fb249d966d5cf014b68e09524ce152ef | 424 | py | Python | src/setup.py | rafaeldelrey/pyschedule | 96ed5abc05fdad5d7e93393d627c5316e90102fe | [
"Apache-2.0"
] | null | null | null | src/setup.py | rafaeldelrey/pyschedule | 96ed5abc05fdad5d7e93393d627c5316e90102fe | [
"Apache-2.0"
] | null | null | null | src/setup.py | rafaeldelrey/pyschedule | 96ed5abc05fdad5d7e93393d627c5316e90102fe | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='pyschedule',
version='0.2.34',
description='A python package to formulate and solve resource-constrained scheduling problems',
url='https://github.com/tpaviot/pyschedule',
author='Tim Nonner',
author_email='tim@nonner.de',
license='Ap... | 28.266667 | 99 | 0.709906 | 53 | 424 | 5.566038 | 0.792453 | 0.081356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016901 | 0.162736 | 424 | 14 | 100 | 30.285714 | 0.814085 | 0 | 0 | 0 | 0 | 0 | 0.400943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 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 |
94c4eba8d14e428414e69f835a8001e5bed2fdf4 | 5,521 | py | Python | ib_push.py | mohlcyber/OpenDXL-ATD-Infoblox | f9e8149b913a9533e7203db142fbd23357ae2396 | [
"Apache-2.0"
] | null | null | null | ib_push.py | mohlcyber/OpenDXL-ATD-Infoblox | f9e8149b913a9533e7203db142fbd23357ae2396 | [
"Apache-2.0"
] | null | null | null | ib_push.py | mohlcyber/OpenDXL-ATD-Infoblox | f9e8149b913a9533e7203db142fbd23357ae2396 | [
"Apache-2.0"
] | null | null | null | import sys
import json
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
def login(ip, headers, username, password, verify):
r = requests.get('https://%s/wapi/v2.7.1/networkview' % ip, headers=headers, \
... | 30.843575 | 116 | 0.602427 | 709 | 5,521 | 4.565585 | 0.183357 | 0.072289 | 0.084028 | 0.033364 | 0.63701 | 0.626506 | 0.578622 | 0.540315 | 0.49861 | 0.439914 | 0 | 0.015762 | 0.276037 | 5,521 | 178 | 117 | 31.016854 | 0.794096 | 0.004709 | 0 | 0.454545 | 0 | 0.007576 | 0.186055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.030303 | null | null | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94ca8b05d7c361158227c61d8c249924c3178dd9 | 1,710 | py | Python | Space-Combat-Sim/SpaceSim/BackEndSources/Utils.py | tannervoas742/Simulations | 2156c052c70b7ccae3fb37d560a286a4d9b7f31e | [
"MIT"
] | null | null | null | Space-Combat-Sim/SpaceSim/BackEndSources/Utils.py | tannervoas742/Simulations | 2156c052c70b7ccae3fb37d560a286a4d9b7f31e | [
"MIT"
] | null | null | null | Space-Combat-Sim/SpaceSim/BackEndSources/Utils.py | tannervoas742/Simulations | 2156c052c70b7ccae3fb37d560a286a4d9b7f31e | [
"MIT"
] | null | null | null | import sys
def FPrint(*args, **kwargs):
print(*args, **kwargs)
sys.stdout.flush()
def TableToText(Table): #TODO: Add title and header row
if type(Table) == dict:
return _TableToTextDict(Table)
elif type(Table) == list:
return _TableToTextList(Table)
else:
FPrint('ERROR: Tab... | 33.529412 | 91 | 0.54152 | 209 | 1,710 | 4.397129 | 0.272727 | 0.032644 | 0.032644 | 0.035909 | 0.254625 | 0.198041 | 0.130577 | 0.130577 | 0.073993 | 0.073993 | 0 | 0.004862 | 0.278363 | 1,710 | 51 | 92 | 33.529412 | 0.73987 | 0.017544 | 0 | 0.304348 | 0 | 0 | 0.040476 | 0 | 0.043478 | 0 | 0 | 0.019608 | 0 | 1 | 0.108696 | false | 0 | 0.021739 | 0 | 0.23913 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94d5ec4adac02727ccb7d0a9953ce40a529e6dc7 | 9,911 | py | Python | accounts/api/views.py | delitamakanda/cautious-journey | a1d58e6ae649fc1ba84dc22ce7be30b4c1712b46 | [
"MIT"
] | 3 | 2018-06-24T16:53:47.000Z | 2021-04-02T03:11:24.000Z | accounts/api/views.py | delitamakanda/cautious-journey | a1d58e6ae649fc1ba84dc22ce7be30b4c1712b46 | [
"MIT"
] | 8 | 2019-03-29T22:58:58.000Z | 2022-03-03T21:59:48.000Z | accounts/api/views.py | delitamakanda/cautious-journey | a1d58e6ae649fc1ba84dc22ce7be30b4c1712b46 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User, Group
from django.http.response import Http404
from django.shortcuts import get_object_or_404
from rest_framework.parsers import MultiPartParser, FormParser, FileUploadParser, JSONParser
from rest_framework import generics, permissions, status, views
from rest_framework.res... | 32.074434 | 143 | 0.676017 | 1,000 | 9,911 | 6.522 | 0.162 | 0.049371 | 0.051518 | 0.034345 | 0.515793 | 0.494787 | 0.472248 | 0.454768 | 0.454768 | 0.440969 | 0 | 0.009927 | 0.227525 | 9,911 | 308 | 144 | 32.178571 | 0.841954 | 0.046716 | 0 | 0.5 | 0 | 0 | 0.020802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094059 | false | 0 | 0.059406 | 0.00495 | 0.584158 | 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 |
94d76e1358524d5eecb2099d2a9be45ba59a074e | 1,107 | py | Python | setup.py | bhevencious/EvalNE | a62bd11901ea891535f6cb2a05e7abb65b1f3e6f | [
"MIT"
] | null | null | null | setup.py | bhevencious/EvalNE | a62bd11901ea891535f6cb2a05e7abb65b1f3e6f | [
"MIT"
] | null | null | null | setup.py | bhevencious/EvalNE | a62bd11901ea891535f6cb2a05e7abb65b1f3e6f | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="evalne",
version='0.3.2',
url="https://github.com/Dru-Mara/EvalNE",
license="MIT License",
author="Alexandru Mara",
author_email='alexandru.mara@ugent.be',
description="Open Source Network Embedding Evaluation toolkit",
long_descr... | 31.628571 | 86 | 0.600723 | 120 | 1,107 | 5.458333 | 0.666667 | 0.036641 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.230352 | 1,107 | 34 | 87 | 32.558824 | 0.74061 | 0 | 0 | 0 | 0 | 0.030303 | 0.510388 | 0.04065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.030303 | 0 | 0.030303 | 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 |
94dd1e2ce0c47b01ad6119e0ac3ea5f2b4f89aa7 | 5,736 | py | Python | lisa_shared_ws_flexbe_integration_flexbe_states/src/lisa_shared_ws_flexbe_integration_flexbe_states/get_gripper_screws_state.py | lawrence-iviani/lisa_shared_ws_flexbe_integration | b31dc93125c5bb3263e0dc4ed088153cb839fca0 | [
"BSD-3-Clause"
] | null | null | null | lisa_shared_ws_flexbe_integration_flexbe_states/src/lisa_shared_ws_flexbe_integration_flexbe_states/get_gripper_screws_state.py | lawrence-iviani/lisa_shared_ws_flexbe_integration | b31dc93125c5bb3263e0dc4ed088153cb839fca0 | [
"BSD-3-Clause"
] | null | null | null | lisa_shared_ws_flexbe_integration_flexbe_states/src/lisa_shared_ws_flexbe_integration_flexbe_states/get_gripper_screws_state.py | lawrence-iviani/lisa_shared_ws_flexbe_integration | b31dc93125c5bb3263e0dc4ed088153cb839fca0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from flexbe_core import EventState, Logger
from flexbe_core.proxy import ProxyServiceCaller
# import required service
from shared_workspace_msgs.msg import GripperArray
import rospy
# A mnemonic list of names
LOOKUP_GRIPPER = {0: 'Part A', 1: 'Part B', 2: 'Part C', 3: 'Part D' }
# enum from htt... | 47.8 | 161 | 0.733089 | 810 | 5,736 | 4.95679 | 0.258025 | 0.044832 | 0.067746 | 0.091656 | 0.29863 | 0.155168 | 0.132503 | 0.100623 | 0.083188 | 0.040847 | 0 | 0.003376 | 0.17364 | 5,736 | 119 | 162 | 48.201681 | 0.843671 | 0.101116 | 0 | 0.210526 | 0 | 0 | 0.220301 | 0.059027 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013158 | 0.052632 | 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 |
94df859d4a2b9d5f28c6492ef9b3ef999f677127 | 202 | py | Python | algorithms/diagonal_difference/RK_python3.py | prithajnath/HackerRank | 4e28acd140d4ebc26db6fcf1dcaefb975a9cc3ae | [
"MIT"
] | 4 | 2017-09-11T13:21:17.000Z | 2018-02-02T03:18:26.000Z | algorithms/diagonal_difference/RK_python3.py | prithajnath/HackerRank | 4e28acd140d4ebc26db6fcf1dcaefb975a9cc3ae | [
"MIT"
] | 10 | 2017-01-05T06:03:51.000Z | 2018-10-06T03:35:20.000Z | algorithms/diagonal_difference/RK_python3.py | PlattsSEC/HackerRank | f8951c8cd1cd7f5b520d2c66e17e43b3729b8a80 | [
"MIT"
] | 8 | 2016-05-05T00:46:31.000Z | 2018-03-30T01:52:50.000Z | n = int(input().strip())
value1 = 0
value2 = 0
for i in range(n):
a_t = [int(a_temp) for a_temp in input().strip().split(' ')]
value1 += a_t[i]
value2 += a_t[-1-i]
print(abs(value2-value1))
| 22.444444 | 64 | 0.589109 | 38 | 202 | 3 | 0.473684 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.19802 | 202 | 8 | 65 | 25.25 | 0.648148 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
94e2718aa342ab821c4a9ea83ef99aceb692e106 | 7,447 | py | Python | kay/handlers/blobstore_handlers.py | Letractively/kay-framework | a4cfabe3497e13c3785e5ec381b9cff11a378df3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2015-11-05T08:30:09.000Z | 2015-11-05T08:30:09.000Z | kay/handlers/blobstore_handlers.py | ianlewis/kay | 1bf28487dc2a273eaa44d442aec8baa6453240b7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | kay/handlers/blobstore_handlers.py | ianlewis/kay | 1bf28487dc2a273eaa44d442aec8baa6453240b7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2016-05-23T16:30:15.000Z | 2016-05-23T16:30:15.000Z | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 31.421941 | 79 | 0.685914 | 951 | 7,447 | 5.208202 | 0.275499 | 0.044418 | 0.01272 | 0.018373 | 0.081567 | 0.053705 | 0.031092 | 0.031092 | 0.031092 | 0.031092 | 0 | 0.005771 | 0.232174 | 7,447 | 236 | 80 | 31.555085 | 0.860441 | 0.076407 | 0 | 0.103448 | 0 | 0 | 0.0946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086207 | 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 |
94e36cb40dca437942f7c2cbb2910fb3538e5de5 | 5,104 | py | Python | ats/companies/tests/test_views.py | MahmoudFarid/ats | 1f882168cba2f34451cbb9bba1e37ce93ef0c465 | [
"MIT"
] | null | null | null | ats/companies/tests/test_views.py | MahmoudFarid/ats | 1f882168cba2f34451cbb9bba1e37ce93ef0c465 | [
"MIT"
] | 1 | 2020-07-19T11:19:22.000Z | 2020-07-19T11:19:22.000Z | ats/companies/tests/test_views.py | MahmoudFarid/ats | 1f882168cba2f34451cbb9bba1e37ce93ef0c465 | [
"MIT"
] | null | null | null | import json
from rest_framework.test import APIClient, APITestCase
from rest_framework.authtoken.models import Token
from ats.companies.models import CompanyAdmin, CompanyStaff, Company
from ats.users.models import User
from .factories import CompanyFactory
class TestCompanyAPIViewSet(APITestCase):
def setUp(s... | 32.100629 | 98 | 0.657915 | 582 | 5,104 | 5.524055 | 0.158076 | 0.043546 | 0.078694 | 0.051322 | 0.733748 | 0.606221 | 0.595645 | 0.540591 | 0.462519 | 0.400933 | 0 | 0.008799 | 0.242947 | 5,104 | 158 | 99 | 32.303797 | 0.82324 | 0.013323 | 0 | 0.42623 | 0 | 0 | 0.055048 | 0 | 0 | 0 | 0 | 0.006329 | 0.147541 | 1 | 0.172131 | false | 0.114754 | 0.04918 | 0 | 0.229508 | 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 |
94e68895dc25b10e28536d771bec67e39bf0ba39 | 4,263 | py | Python | src/test_tic_tac_toe.py | hsinhaoyu/why_functional | 67c798cf3f5ed7f2bfdf20dcc78aceb67a651232 | [
"Apache-2.0"
] | null | null | null | src/test_tic_tac_toe.py | hsinhaoyu/why_functional | 67c798cf3f5ed7f2bfdf20dcc78aceb67a651232 | [
"Apache-2.0"
] | null | null | null | src/test_tic_tac_toe.py | hsinhaoyu/why_functional | 67c798cf3f5ed7f2bfdf20dcc78aceb67a651232 | [
"Apache-2.0"
] | null | null | null | from tic_tac_toe import init_board, moves, static_eval, display_board
from tic_tac_toe import who_plays, posinf, neginf, gametree, prune, won
from tic_tac_toe import static_eval_state
from tic_tac_toe import evaluate0, evaluate1, evaluate2
from lazy_utils import tree_size, tree_depth, maptree, tree_labels
import pytest... | 30.669065 | 72 | 0.619048 | 754 | 4,263 | 3.412467 | 0.111406 | 0.027983 | 0.019821 | 0.017101 | 0.728721 | 0.685192 | 0.678197 | 0.678197 | 0.655266 | 0.603964 | 0 | 0.063311 | 0.258973 | 4,263 | 138 | 73 | 30.891304 | 0.751187 | 0.219329 | 0 | 0.560976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.341463 | 1 | 0.097561 | false | 0 | 0.073171 | 0 | 0.170732 | 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 |
94eab9221568beda8e74842fbf932b47ae7ee63b | 1,732 | py | Python | stalku/core/admin.py | henriquenogueira/stalku | e43c6f867a889b9a953a3c5ac42d2c498eebdee3 | [
"MIT"
] | null | null | null | stalku/core/admin.py | henriquenogueira/stalku | e43c6f867a889b9a953a3c5ac42d2c498eebdee3 | [
"MIT"
] | null | null | null | stalku/core/admin.py | henriquenogueira/stalku | e43c6f867a889b9a953a3c5ac42d2c498eebdee3 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Student, Lecture, LectureInstance, Institute
class StudentModelAdmin(admin.ModelAdmin):
list_display = ('full_academic_record', 'name', 'course',
'modality', 'enrolled_count')
search_fields = ('academic_record', 'name', 'course', 'modal... | 31.490909 | 70 | 0.718822 | 178 | 1,732 | 6.792135 | 0.292135 | 0.02895 | 0.053763 | 0.06617 | 0.147229 | 0.056245 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165704 | 1,732 | 54 | 71 | 32.074074 | 0.836678 | 0 | 0 | 0 | 0 | 0 | 0.185912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.057143 | 0.142857 | 0.685714 | 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 |
94ee453105780953f1404a0ffec7d511da732553 | 1,469 | py | Python | loc_load.py | martinbarnard/mcpi_snippets | 947e64670a11313cb70234d695611f751957e974 | [
"Unlicense"
] | 1 | 2021-01-25T23:13:44.000Z | 2021-01-25T23:13:44.000Z | loc_load.py | martinbarnard/mcpi_snippets | 947e64670a11313cb70234d695611f751957e974 | [
"Unlicense"
] | null | null | null | loc_load.py | martinbarnard/mcpi_snippets | 947e64670a11313cb70234d695611f751957e974 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# basic imports
import mcpi.minecraft as minecraft
import mcpi.block as block
import os,time,sys
import cPickle as pickle
# connect to server
# Don't assume that minecraft is running...
try:
mc = minecraft.Minecraft.create()
playerPos = mc.player.getPos()
playerTilePos = mc.player.get... | 27.716981 | 69 | 0.689585 | 220 | 1,469 | 4.527273 | 0.454545 | 0.045181 | 0.026104 | 0.052209 | 0.080321 | 0.080321 | 0.080321 | 0.080321 | 0 | 0 | 0 | 0.002471 | 0.173587 | 1,469 | 52 | 70 | 28.25 | 0.817957 | 0.136147 | 0 | 0.157895 | 0 | 0 | 0.245837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.131579 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94f7dcacc0654ee564e9e9d8669b7ceedb53dadd | 2,600 | py | Python | tests/integration/test_search_endpoint.py | OpenGeoscience/girder_geospatial | 593cc4d225a6f93cb864a330c54d5094d49f0512 | [
"Apache-2.0"
] | 4 | 2018-05-17T15:16:06.000Z | 2020-06-23T17:25:26.000Z | tests/integration/test_search_endpoint.py | OpenGeoscience/girder_geospatial | 593cc4d225a6f93cb864a330c54d5094d49f0512 | [
"Apache-2.0"
] | 39 | 2018-06-05T17:30:12.000Z | 2021-04-01T17:46:14.000Z | tests/integration/test_search_endpoint.py | OpenGeoscience/girder_geospatial | 593cc4d225a6f93cb864a330c54d5094d49f0512 | [
"Apache-2.0"
] | 2 | 2018-06-11T19:38:04.000Z | 2019-06-04T07:44:38.000Z | import pytest
from ..utils import uploadSampleData
@pytest.mark.plugin('geometa')
def test_empty_params(server, admin):
resp = server.request(path='/item/geometa', user=admin)
assert resp.json == {}
@pytest.mark.plugin('geometa')
@pytest.mark.parametrize('params, expected', [
(
{'geometry': 'POL... | 32.911392 | 79 | 0.49 | 201 | 2,600 | 6.273632 | 0.353234 | 0.039651 | 0.041237 | 0.088818 | 0.514671 | 0.514671 | 0.446471 | 0.446471 | 0.334655 | 0.28866 | 0 | 0.255134 | 0.381923 | 2,600 | 78 | 80 | 33.333333 | 0.529558 | 0 | 0 | 0.458333 | 0 | 0 | 0.152308 | 0.033462 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.041667 | false | 0 | 0.027778 | 0 | 0.069444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
94fbb01f38b236a0fe1eb02581f268d67f682951 | 1,556 | py | Python | python_modules/lakehouse/lakehouse_tests/conftest.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 3 | 2020-09-09T04:10:23.000Z | 2021-11-08T02:10:42.000Z | python_modules/lakehouse/lakehouse_tests/conftest.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 2 | 2021-05-11T13:36:27.000Z | 2021-09-03T01:53:11.000Z | python_modules/lakehouse/lakehouse_tests/conftest.py | vatervonacht/dagster | 595d78c883ef20618052ac1575fe46cde51fd541 | [
"Apache-2.0"
] | 1 | 2021-02-21T12:16:47.000Z | 2021-02-21T12:16:47.000Z | import os
import pytest
from dagster_pyspark import pyspark_resource
from lakehouse import Lakehouse, construct_lakehouse_pipeline
from dagster import Materialization, check, execute_pipeline
class LocalOnDiskSparkCsvLakehouse(Lakehouse):
def __init__(self, root_dir):
self.lakehouse_path = check.str_par... | 34.577778 | 98 | 0.734576 | 180 | 1,556 | 5.988889 | 0.322222 | 0.050093 | 0.033395 | 0.072356 | 0.217996 | 0.115028 | 0.053803 | 0 | 0 | 0 | 0 | 0 | 0.183162 | 1,556 | 44 | 99 | 35.363636 | 0.848151 | 0 | 0 | 0.125 | 0 | 0 | 0.044344 | 0.015424 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.15625 | 0.09375 | 0.59375 | 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 |
94fd84883813c4084b316991dea51790a3a9a045 | 3,203 | py | Python | scripts/welcome.py | legoktm/pythonwikibot | fa44835ec14dbe5a6124badbc5873e7cb3ca28a1 | [
"MIT"
] | 1 | 2021-07-28T12:04:52.000Z | 2021-07-28T12:04:52.000Z | scripts/welcome.py | legoktm/pythonwikibot | fa44835ec14dbe5a6124badbc5873e7cb3ca28a1 | [
"MIT"
] | null | null | null | scripts/welcome.py | legoktm/pythonwikibot | fa44835ec14dbe5a6124badbc5873e7cb3ca28a1 | [
"MIT"
] | null | null | null | #!usr/bin/python
import wiki
from wiki import userlib
import re, time, sys
reload(sys)
sys.setdefaultencoding('utf-8')
logs = {
'en':None,
'commons': 'Project:Welcome log',
}
templates = {
'en':'{{subst:welcome}} ~~~~',
'commons': '{{subst:welcome}} ~~~~',
}
logupmess = {
'en':None,
'commons': 'Bot: Updating log... | 31.712871 | 230 | 0.58414 | 391 | 3,203 | 4.754476 | 0.429668 | 0.021517 | 0.022593 | 0.020441 | 0.021517 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012639 | 0.184827 | 3,203 | 100 | 231 | 32.03 | 0.699349 | 0.146113 | 0 | 0.155556 | 0 | 0.022222 | 0.216575 | 0.057459 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a205f16c151bb85c3b689c86df2229bfb8aff1be | 610 | py | Python | test/test_io.py | Sv3n/pypopquiz | 260756ba06bdff55742e0be928e3706a5f2a24a2 | [
"MIT"
] | null | null | null | test/test_io.py | Sv3n/pypopquiz | 260756ba06bdff55742e0be928e3706a5f2a24a2 | [
"MIT"
] | null | null | null | test/test_io.py | Sv3n/pypopquiz | 260756ba06bdff55742e0be928e3706a5f2a24a2 | [
"MIT"
] | null | null | null | # pylint: disable=missing-docstring
import unittest
from pathlib import Path
import pypopquiz as ppq
import pypopquiz.io
class TestIO(unittest.TestCase):
SAMPLE_FILES = [Path("samples/round01.json")]
def test_read_input(self) -> None:
for sample_file in self.SAMPLE_FILES:
result = ppq.i... | 27.727273 | 69 | 0.688525 | 83 | 610 | 4.891566 | 0.481928 | 0.098522 | 0.064039 | 0.078818 | 0.359606 | 0.359606 | 0.359606 | 0.359606 | 0.359606 | 0.359606 | 0 | 0.004211 | 0.221311 | 610 | 21 | 70 | 29.047619 | 0.850526 | 0.098361 | 0 | 0.285714 | 0 | 0 | 0.045704 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 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 |
a207e2a1654db47a9bbe441873fc266d3f8d050b | 12,843 | py | Python | d365.py | 3t1n/DynamicsPy | 19b9db63fc919ce78ddc286e75c69c8c73713a2d | [
"MIT"
] | null | null | null | d365.py | 3t1n/DynamicsPy | 19b9db63fc919ce78ddc286e75c69c8c73713a2d | [
"MIT"
] | null | null | null | d365.py | 3t1n/DynamicsPy | 19b9db63fc919ce78ddc286e75c69c8c73713a2d | [
"MIT"
] | null | null | null | import requests
import xml.etree.ElementTree as ET
import urllib.parse
import time
__author__ = "Tadeu Mansi"
class D365:
"""
A class used to connect to the Dynamics 365 CRM.
This class use Odata API
A classe é usada para se conectar ao Dynamics 365 CRM
Essa classe usa o Odata API
... | 42.108197 | 120 | 0.559527 | 1,453 | 12,843 | 4.803166 | 0.169993 | 0.04012 | 0.051583 | 0.028371 | 0.584754 | 0.565267 | 0.551655 | 0.51397 | 0.490471 | 0.469265 | 0 | 0.01601 | 0.343456 | 12,843 | 304 | 121 | 42.246711 | 0.81167 | 0.242856 | 0 | 0.522472 | 0 | 0.044944 | 0.210079 | 0.020498 | 0 | 0 | 0 | 0.016447 | 0 | 1 | 0.033708 | false | 0.022472 | 0.022472 | 0 | 0.117978 | 0.05618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a20857fc700da31b5bd60b593de9051297ebf93b | 757 | py | Python | tests/test_deliver.py | ONSdigital/sdx-collate | 48c9a746fd1014479bcd7bf92b73eb1b71035b5c | [
"MIT"
] | null | null | null | tests/test_deliver.py | ONSdigital/sdx-collate | 48c9a746fd1014479bcd7bf92b73eb1b71035b5c | [
"MIT"
] | 12 | 2021-06-16T15:23:47.000Z | 2022-01-12T15:35:50.000Z | tests/test_deliver.py | ONSdigital/sdx-collate | 48c9a746fd1014479bcd7bf92b73eb1b71035b5c | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import patch
from requests import exceptions
from requests.packages.urllib3.exceptions import MaxRetryError
from app.deliver import DeliveryError, post
class TestCollate(unittest.TestCase):
@patch('app.deliver.session')
def test_post_MaxRetryError(self, mock_session):
... | 32.913043 | 78 | 0.730515 | 84 | 757 | 6.464286 | 0.392857 | 0.081031 | 0.055249 | 0.081031 | 0.497238 | 0.497238 | 0.497238 | 0.375691 | 0.228361 | 0 | 0 | 0.001582 | 0.165126 | 757 | 22 | 79 | 34.409091 | 0.857595 | 0 | 0 | 0.375 | 0 | 0 | 0.130779 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a2089d8d44f32521f47126f6b8525f5a904c8a70 | 757 | py | Python | logs/models.py | foschieraanderson/central-de-erros | aff3f744f6e69ff26611fd25b6b3b438158468d3 | [
"MIT"
] | null | null | null | logs/models.py | foschieraanderson/central-de-erros | aff3f744f6e69ff26611fd25b6b3b438158468d3 | [
"MIT"
] | null | null | null | logs/models.py | foschieraanderson/central-de-erros | aff3f744f6e69ff26611fd25b6b3b438158468d3 | [
"MIT"
] | null | null | null | from django.db import models
class Log(models.Model):
LEVEL_CHOICES = [
('Debug', 'Debug'),
('Error', 'Error'),
('Warning', 'Warning'),
]
title = models.CharField('Título', max_length=50, blank=False, null=False)
description = models.TextField('Descrição')
origin ... | 30.28 | 97 | 0.636724 | 80 | 757 | 5.875 | 0.6625 | 0.051064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006826 | 0.225892 | 757 | 24 | 98 | 31.541667 | 0.795222 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0.055556 | 0.722222 | 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 |
a20b4728631e660b95e282ccbff14c20eced3191 | 1,845 | py | Python | nbip_server/nbip/management/commands/populate_db.py | entropia/no-bot-is-perfect | 5cf59523308c004ba24196465fc81932156ea280 | [
"MIT"
] | null | null | null | nbip_server/nbip/management/commands/populate_db.py | entropia/no-bot-is-perfect | 5cf59523308c004ba24196465fc81932156ea280 | [
"MIT"
] | null | null | null | nbip_server/nbip/management/commands/populate_db.py | entropia/no-bot-is-perfect | 5cf59523308c004ba24196465fc81932156ea280 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from django.db import transaction
from nbip.models import *
class Command(BaseCommand):
args = ''
help = 'Loads some example data into the database'
@transaction.atomic
def _load_data(self):
# check
if User.ob... | 31.810345 | 102 | 0.555556 | 203 | 1,845 | 5 | 0.482759 | 0.029557 | 0.074877 | 0.082759 | 0.126108 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011191 | 0.321951 | 1,845 | 57 | 103 | 32.368421 | 0.80016 | 0.024932 | 0 | 0.046512 | 0 | 0 | 0.190184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a20cf974da4873767acac6179f390db8ea8ccb64 | 369 | py | Python | host/target_oneplus3t.py | leosol/firehorse | 03488d414c22efc3b9929c4d0d3bf97417e49732 | [
"Apache-2.0"
] | 230 | 2018-01-22T11:38:37.000Z | 2022-03-25T22:15:58.000Z | host/target_oneplus3t.py | ningshao1945/firehorse | 36778da2f51e61e162129624a423a0287467b74d | [
"Apache-2.0"
] | 11 | 2018-01-29T19:08:36.000Z | 2022-03-03T12:12:54.000Z | host/target_oneplus3t.py | ningshao1945/firehorse | 36778da2f51e61e162129624a423a0287467b74d | [
"Apache-2.0"
] | 78 | 2018-01-22T15:28:22.000Z | 2022-03-15T23:29:22.000Z | #
# firehrose
# By Roee Hay & Noam Hadad, Aleph Research
#
import target
target.add_target(name="oneplus3t",
arch=64,
programmer_path=r"target/oneplus3t/prog_ufs_firehose_8996_ddr.elf",
peekpoke_style=1,
rawprogram_xml="target/oneplus3... | 26.357143 | 86 | 0.571816 | 39 | 369 | 5.205128 | 0.769231 | 0.147783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041152 | 0.341463 | 369 | 13 | 87 | 28.384615 | 0.794239 | 0.135501 | 0 | 0 | 0 | 0 | 0.289037 | 0.259136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a22689f548f000e95a0da380ca7882be4ed3bfda | 3,300 | py | Python | LeetCode/Python3/BinaryTree/572. Subtree of Another Tree.py | WatsonWangZh/CodingPractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 11 | 2019-09-01T22:36:00.000Z | 2021-11-08T08:57:20.000Z | LeetCode/Python3/BinaryTree/572. Subtree of Another Tree.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | null | null | null | LeetCode/Python3/BinaryTree/572. Subtree of Another Tree.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 2 | 2020-05-27T14:58:52.000Z | 2020-05-27T15:04:17.000Z | # Given two non-empty binary trees s and t,
# check whether tree t has exactly the same structure and node values with a subtree of s.
# A subtree of s is a tree consists of a node in s and all of this node's descendants.
# The tree s could also be considered as a subtree of itself.
# Example 1:
# Given tree s:
# ... | 29.72973 | 163 | 0.575758 | 488 | 3,300 | 3.868852 | 0.266393 | 0.050847 | 0.021186 | 0.017479 | 0.277542 | 0.277542 | 0.241525 | 0.241525 | 0.225636 | 0.225636 | 0 | 0.022512 | 0.32697 | 3,300 | 111 | 164 | 29.72973 | 0.827555 | 0.596061 | 0 | 0.448276 | 0 | 0 | 0.001674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0 | 0 | 0.551724 | 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 |
bf4fd6af186f211092e3fbe66b6f522f6a4b2e8b | 2,424 | py | Python | examples/quickstart/ner_text.py | Dumbris/trunklucator | 99e6d606f0382e33cd42cce157942e7e1b05c627 | [
"Apache-2.0"
] | 48 | 2019-03-27T10:06:24.000Z | 2021-12-13T12:38:37.000Z | examples/quickstart/ner_text.py | Dumbris/trunklucator | 99e6d606f0382e33cd42cce157942e7e1b05c627 | [
"Apache-2.0"
] | 4 | 2019-03-28T12:38:18.000Z | 2020-01-09T17:29:58.000Z | examples/quickstart/ner_text.py | Dumbris/trunklucator | 99e6d606f0382e33cd42cce157942e7e1b05c627 | [
"Apache-2.0"
] | 4 | 2019-03-28T07:36:07.000Z | 2020-04-28T02:45:35.000Z | import json
from trunklucator import WebUI
texts = ["""Alphabet Inc. is an American multinational conglomerate headquartered in Mountain View, California. It was created through a corporate restructuring of Google on October 2, 2015,[2] and became the parent company of Google and several former Google subsidiaries.[3]... | 86.571429 | 661 | 0.753713 | 360 | 2,424 | 5.063889 | 0.544444 | 0.02633 | 0.024685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017926 | 0.148515 | 2,424 | 27 | 662 | 89.777778 | 0.86531 | 0.018152 | 0 | 0 | 0 | 0.090909 | 0.794977 | 0.08236 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.045455 | 0 | 0 | 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 |
bf51ed5868515700b1f2842eea147cf033afa581 | 2,308 | py | Python | rabbit/txamqp_consumer.py | chetmancini/Timber | 2d7a5663c803a057060f9c67bc1e00e2fe5adc0f | [
"MIT"
] | 1 | 2015-05-31T12:00:33.000Z | 2015-05-31T12:00:33.000Z | rabbit/txamqp_consumer.py | chetmancini/Timber | 2d7a5663c803a057060f9c67bc1e00e2fe5adc0f | [
"MIT"
] | null | null | null | rabbit/txamqp_consumer.py | chetmancini/Timber | 2d7a5663c803a057060f9c67bc1e00e2fe5adc0f | [
"MIT"
] | null | null | null | import sys
from twisted.internet.defer import inlineCallbacks, returnValue
from twisted.internet import reactor
from twisted.internet.protocol import ClientCreator
from txamqp.protocol import AMQClient
from txamqp.client import TwistedDelegate
import txamqp.spec
import common
@inlineCallbacks
def getQueue(conn, ch... | 31.189189 | 78 | 0.70364 | 307 | 2,308 | 5.205212 | 0.361564 | 0.02816 | 0.03567 | 0.037547 | 0.033792 | 0.033792 | 0 | 0 | 0 | 0 | 0 | 0.002215 | 0.217504 | 2,308 | 74 | 79 | 31.189189 | 0.882614 | 0.242634 | 0 | 0.061224 | 0 | 0 | 0.033449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.163265 | null | null | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf57e5314fce6b4bfac1548ab9d09fe0440c953f | 598 | py | Python | migrations/versions/2016_02_13_5088a7fdf2_disable_user.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 11 | 2015-04-23T21:57:56.000Z | 2019-04-28T12:48:58.000Z | migrations/versions/2016_02_13_5088a7fdf2_disable_user.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 1 | 2016-10-05T14:10:58.000Z | 2016-10-05T14:12:23.000Z | migrations/versions/2016_02_13_5088a7fdf2_disable_user.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 3 | 2016-10-05T14:00:42.000Z | 2019-01-16T14:33:43.000Z | """disable_user
Revision ID: 5088a7fdf2
Revises: 391b3fa1471
Create Date: 2016-02-13 14:28:37.929236
"""
# revision identifiers, used by Alembic.
revision = '5088a7fdf2'
down_revision = '391b3fa1471'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please ... | 22.148148 | 77 | 0.690635 | 74 | 598 | 5.527027 | 0.581081 | 0.066015 | 0.102689 | 0.112469 | 0.215159 | 0.215159 | 0.215159 | 0.215159 | 0 | 0 | 0 | 0.09697 | 0.172241 | 598 | 26 | 78 | 23 | 0.729293 | 0.479933 | 0 | 0 | 0 | 0 | 0.161871 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.