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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a113c8e85fbfe0a4e5ea8110782dae46220ba93c | 262 | py | Python | setup.py | geickelb/hsip441_neiss_python | 0ad88a664b369ea058b28d79ed98d02ff8418aad | [
"MIT"
] | null | null | null | setup.py | geickelb/hsip441_neiss_python | 0ad88a664b369ea058b28d79ed98d02ff8418aad | [
"MIT"
] | null | null | null | setup.py | geickelb/hsip441_neiss_python | 0ad88a664b369ea058b28d79ed98d02ff8418aad | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.0.1',
description='compiling code for HSIP441 using python to explore the Neiss database',
author='Garrett Eickelberg',
license='MIT',
)
| 23.818182 | 88 | 0.70229 | 33 | 262 | 5.515152 | 0.848485 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.187023 | 262 | 10 | 89 | 26.2 | 0.826291 | 0 | 0 | 0 | 0 | 0 | 0.374046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
a11510f716edaa915f408fd4bc5559303960aa62 | 1,770 | py | Python | Computer & Information Science Core courses/2168/A*/graph.py | Vaporjawn/Temple-University-Computer-Science-Resources | 8d54db3a85a1baa8ba344efc90593b440eb6d585 | [
"MIT"
] | 1 | 2020-07-28T16:18:38.000Z | 2020-07-28T16:18:38.000Z | Computer & Information Science Core courses/2168/A*/graph.py | Vaporjawn/Temple-University-Computer-Science-Resources | 8d54db3a85a1baa8ba344efc90593b440eb6d585 | [
"MIT"
] | 4 | 2020-07-15T06:40:55.000Z | 2020-08-13T16:01:30.000Z | Computer & Information Science Core courses/2168/A*/graph.py | Vaporjawn/Temple-University-Computer-Science-Resources | 8d54db3a85a1baa8ba344efc90593b440eb6d585 | [
"MIT"
] | null | null | null | """Implement the graph to traverse."""
from collections import Counter
class Node:
"""Node class."""
def __init__(self, value, x, y):
"""Initialize node."""
self.x = x
self.y = y
self.value = value
self.neighbors = []
def add_neighbor(self, n, weight):
""... | 28.095238 | 77 | 0.564972 | 236 | 1,770 | 4.139831 | 0.305085 | 0.028659 | 0.021494 | 0.022518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009016 | 0.310734 | 1,770 | 62 | 78 | 28.548387 | 0.791803 | 0.272881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.030303 | 0 | 0.424242 | 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 |
a116cfc21ab7921ef0308c2ab54fca839bd22800 | 2,027 | py | Python | python/hsfs/util.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | python/hsfs/util.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | python/hsfs/util.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 Logical Clocks AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 27.026667 | 76 | 0.700543 | 260 | 2,027 | 5.319231 | 0.488462 | 0.043384 | 0.030369 | 0.023138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0057 | 0.221016 | 2,027 | 74 | 77 | 27.391892 | 0.870171 | 0.322151 | 0 | 0.052632 | 0 | 0 | 0.044162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.157895 | 0.105263 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a118ceb32497416f45bc3e52e40410e78c21e051 | 836 | py | Python | python_modules/dagster/dagster/core/types/builtin_enum.py | jake-billings/dagster | 7a1548a1f246c48189f3d8109e831b744bceb7d4 | [
"Apache-2.0"
] | 1 | 2019-07-15T17:34:04.000Z | 2019-07-15T17:34:04.000Z | python_modules/dagster/dagster/core/types/builtin_enum.py | jake-billings/dagster | 7a1548a1f246c48189f3d8109e831b744bceb7d4 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster/core/types/builtin_enum.py | jake-billings/dagster | 7a1548a1f246c48189f3d8109e831b744bceb7d4 | [
"Apache-2.0"
] | null | null | null | import sys
if sys.version_info.major >= 3:
import typing
class BuiltinEnum:
ANY = typing.Any
BOOL = typing.NewType('Bool', bool)
FLOAT = typing.NewType('Float', float)
INT = typing.NewType('Int', int)
PATH = typing.NewType('Path', str)
STRING = typing.NewType('... | 22.594595 | 70 | 0.551435 | 92 | 836 | 5 | 0.380435 | 0.169565 | 0.056522 | 0.108696 | 0.156522 | 0.156522 | 0 | 0 | 0 | 0 | 0 | 0.001792 | 0.332536 | 836 | 36 | 71 | 23.222222 | 0.822581 | 0 | 0 | 0.148148 | 0 | 0 | 0.072967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.111111 | 0.074074 | 0.851852 | 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 |
a11ebc5157787a925779b80587bf0be3060a8389 | 705 | py | Python | sets-add.py | limeonion/Python-Programming | 90cbbbd7651fc04669e21be2adec02ba655868cf | [
"MIT"
] | null | null | null | sets-add.py | limeonion/Python-Programming | 90cbbbd7651fc04669e21be2adec02ba655868cf | [
"MIT"
] | null | null | null | sets-add.py | limeonion/Python-Programming | 90cbbbd7651fc04669e21be2adec02ba655868cf | [
"MIT"
] | null | null | null | '''
f we want to add a single element to an existing set, we can use the .add() operation.
It adds the element to the set and returns 'None'.
Example
>>> s = set('HackerRank')
>>> s.add('H')
>>> print s
set(['a', 'c', 'e', 'H', 'k', 'n', 'r', 'R'])
>>> print s.add('HackerRank')
None
>>> print s
set(['a', 'c', 'e', '... | 22.741935 | 87 | 0.635461 | 121 | 705 | 3.702479 | 0.479339 | 0.026786 | 0.040179 | 0.044643 | 0.075893 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187234 | 705 | 30 | 88 | 23.5 | 0.78185 | 0.838298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a121e58fcc354bb0486144293e6dc4511324fbba | 1,046 | py | Python | option.py | lotress/new-DL | adc9f6f94538088d3d70327d9c7bb089ef7e1638 | [
"MIT"
] | null | null | null | option.py | lotress/new-DL | adc9f6f94538088d3d70327d9c7bb089ef7e1638 | [
"MIT"
] | null | null | null | option.py | lotress/new-DL | adc9f6f94538088d3d70327d9c7bb089ef7e1638 | [
"MIT"
] | null | null | null | from common import *
from model import vocab
option = dict(edim=256, epochs=1.5, maxgrad=1., learningrate=1e-3, sdt_decay_step=1, batchsize=8, vocabsize=vocab, fp16=2, saveInterval=10, logInterval=.4)
option['loss'] = lambda opt, model, y, out, *_, rewards=[]: F.cross_entropy(out.transpose(-1, -2), y, reduction='none')... | 69.733333 | 155 | 0.686424 | 160 | 1,046 | 4.4375 | 0.64375 | 0.021127 | 0.008451 | 0.019718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037322 | 0.129063 | 1,046 | 14 | 156 | 74.714286 | 0.742042 | 0.144359 | 0 | 0 | 0 | 0 | 0.101124 | 0.024719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.285714 | 0 | 0.285714 | 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 |
a12aedcd932c89aac78464696ed1d71cb2034b31 | 9,969 | py | Python | skyoffset/multisimplex.py | jonathansick/skyoffset | 369f54d8a237f48cd56f550e80bf1d39b355bfcd | [
"BSD-3-Clause"
] | null | null | null | skyoffset/multisimplex.py | jonathansick/skyoffset | 369f54d8a237f48cd56f550e80bf1d39b355bfcd | [
"BSD-3-Clause"
] | null | null | null | skyoffset/multisimplex.py | jonathansick/skyoffset | 369f54d8a237f48cd56f550e80bf1d39b355bfcd | [
"BSD-3-Clause"
] | null | null | null | import os
import logging
import platform
import time
import multiprocessing
import numpy
import pymongo
# Pure python/numpy
import simplex
from scalarobj import ScalarObjective
# Cython/numpy
import cyscalarobj
import cysimplex
class MultiStartSimplex(object):
"""Baseclass for multi-start recongerging simplex s... | 39.403162 | 131 | 0.634467 | 1,128 | 9,969 | 5.528369 | 0.323582 | 0.012348 | 0.00898 | 0.011546 | 0.085953 | 0.059012 | 0.039128 | 0.028865 | 0.028865 | 0.016357 | 0 | 0.008721 | 0.275354 | 9,969 | 252 | 132 | 39.559524 | 0.854513 | 0.106831 | 0 | 0.128049 | 0 | 0 | 0.0738 | 0.00406 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067073 | null | null | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a130d81a095f620365d47a00f587d3671ea0c357 | 2,416 | py | Python | libraries/urx_python/urx_scripts/demo_apple_tree.py | giacomotomasi/tennisball_demo | f71cd552e64fe21533abe47b986db6999947c3a9 | [
"Apache-2.0"
] | null | null | null | libraries/urx_python/urx_scripts/demo_apple_tree.py | giacomotomasi/tennisball_demo | f71cd552e64fe21533abe47b986db6999947c3a9 | [
"Apache-2.0"
] | null | null | null | libraries/urx_python/urx_scripts/demo_apple_tree.py | giacomotomasi/tennisball_demo | f71cd552e64fe21533abe47b986db6999947c3a9 | [
"Apache-2.0"
] | null | null | null |
import urx
import logging
import time
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN)
#gripper_remove_pos = [0.0755, -0.2824, 0.3477, -0.0387, -3.0754, 0.4400] # rest position (good to place/remove gripper)
rob = urx.Robot("192.168.56.1")
#rob.set_tcp((0,0,0,0,0,0))
#rob.set_... | 32.213333 | 124 | 0.577815 | 416 | 2,416 | 3.240385 | 0.338942 | 0.01632 | 0.067507 | 0.083086 | 0.395401 | 0.333086 | 0.179525 | 0.179525 | 0.152819 | 0.152819 | 0 | 0.207187 | 0.262831 | 2,416 | 75 | 125 | 32.213333 | 0.549691 | 0.243377 | 0 | 0.326087 | 0 | 0 | 0.024834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065217 | 0 | 0.065217 | 0.021739 | 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 |
a13428de836fe2ca966877503cf126c867ad3cd6 | 531 | py | Python | xos/synchronizers/openstack/model_policies/model_policy_Sliver.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null | xos/synchronizers/openstack/model_policies/model_policy_Sliver.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null | xos/synchronizers/openstack/model_policies/model_policy_Sliver.py | xmaruto/mcord | 3678a3d10c3703c2b73f396c293faebf0c82a4f4 | [
"Apache-2.0"
] | null | null | null |
def handle(instance):
from core.models import Controller, ControllerSlice, ControllerNetwork, NetworkSlice
networks = [ns.network for ns in NetworkSlice.objects.filter(slice=instance.slice)]
controller_networks = ControllerNetwork.objects.filter(network__in=networks,
... | 37.928571 | 116 | 0.6742 | 55 | 531 | 6.363636 | 0.545455 | 0.074286 | 0.074286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242938 | 531 | 13 | 117 | 40.846154 | 0.870647 | 0 | 0 | 0 | 0 | 0 | 0.003774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
a137958aa6262c5d4af45fea5f852cfe4e0fb7c7 | 5,509 | py | Python | plugin/autoWHUT.py | PPeanutButter/MediaServer | a6a0b3f424ca3fc4ea73d78db380ec3cc882bfd2 | [
"MIT"
] | 2 | 2021-09-23T15:09:25.000Z | 2022-01-16T01:04:07.000Z | plugin/autoWHUT.py | PPeanutButter/MediaServer | a6a0b3f424ca3fc4ea73d78db380ec3cc882bfd2 | [
"MIT"
] | 1 | 2022-02-23T04:00:16.000Z | 2022-02-23T04:10:06.000Z | plugin/autoWHUT.py | PPeanutButter/MediaServer | a6a0b3f424ca3fc4ea73d78db380ec3cc882bfd2 | [
"MIT"
] | 1 | 2021-09-23T15:09:26.000Z | 2021-09-23T15:09:26.000Z | # coding=<utf-8>
import requests
import re
import socket
import base64
import psutil
import pywifi
from pywifi import const
import subprocess
import os
import time
def get_host_ip():
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(('8.8.8.8', 80))
ip = s.getsockname()[0... | 34.43125 | 117 | 0.554547 | 570 | 5,509 | 5.250877 | 0.419298 | 0.008353 | 0.009355 | 0.012028 | 0.208821 | 0.18443 | 0.020715 | 0 | 0 | 0 | 0 | 0.064269 | 0.313669 | 5,509 | 159 | 118 | 34.647799 | 0.727321 | 0.002541 | 0 | 0.088889 | 0 | 0.02963 | 0.278718 | 0.123794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.059259 | 0.074074 | 0.014815 | 0.251852 | 0.059259 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a1385e4aefd67a6e8363bc3fce53670aa1ea871f | 6,861 | py | Python | covidaid/tools/read_data.py | sabuj7177/CovidProject | b4b7bcfa5ace165520507f489dc74da7b695e2f0 | [
"Apache-2.0"
] | null | null | null | covidaid/tools/read_data.py | sabuj7177/CovidProject | b4b7bcfa5ace165520507f489dc74da7b695e2f0 | [
"Apache-2.0"
] | null | null | null | covidaid/tools/read_data.py | sabuj7177/CovidProject | b4b7bcfa5ace165520507f489dc74da7b695e2f0 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
"""
Read images and corresponding labels.
"""
import torch
from torch.utils.data import Dataset
from PIL import Image
import os
import random
class ChestXrayDataSetTest(Dataset):
def __init__(self, image_list_file, transform=None, combine_pneumonia=False):
"""
Create the Data Lo... | 36.887097 | 153 | 0.594957 | 868 | 6,861 | 4.490783 | 0.176267 | 0.08979 | 0.052335 | 0.036942 | 0.705747 | 0.680862 | 0.64982 | 0.64982 | 0.617753 | 0.612365 | 0 | 0.010267 | 0.318612 | 6,861 | 185 | 154 | 37.086486 | 0.823529 | 0.208424 | 0 | 0.490385 | 0 | 0 | 0.001556 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.086538 | false | 0 | 0.048077 | 0.019231 | 0.221154 | 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 |
a13baec342fa639fe6142ecd977281a346771177 | 389 | py | Python | genshimacro/__init__.py | trac-hacks/trac-GenshiMacro | d9da1a50f6d73904fdda2e9e7cbc4c056b929267 | [
"BSD-3-Clause"
] | 1 | 2015-02-19T21:08:53.000Z | 2015-02-19T21:08:53.000Z | genshimacro/__init__.py | ejucovy/trac-GenshiMacro | d9da1a50f6d73904fdda2e9e7cbc4c056b929267 | [
"BSD-3-Clause"
] | null | null | null | genshimacro/__init__.py | ejucovy/trac-GenshiMacro | d9da1a50f6d73904fdda2e9e7cbc4c056b929267 | [
"BSD-3-Clause"
] | null | null | null | from genshi.template import MarkupTemplate
from trac.core import *
from trac.web.chrome import Chrome
from trac.wiki.macros import WikiMacroBase
class GenshiMacro(WikiMacroBase):
def expand_macro(self, formatter, name, text, args):
template = MarkupTemplate(text)
chrome = Chrome(self.env)
... | 29.923077 | 75 | 0.742931 | 47 | 389 | 6.106383 | 0.595745 | 0.083624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164524 | 389 | 12 | 76 | 32.416667 | 0.883077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
a13f0a11b4555fcfbf9c924b7e7de9f674331ec4 | 8,678 | py | Python | src/_sever_qt4.py | Joy917/fast-transfer | dfbcf5c4239da3d550b721500dff05fb6d40b756 | [
"MIT"
] | null | null | null | src/_sever_qt4.py | Joy917/fast-transfer | dfbcf5c4239da3d550b721500dff05fb6d40b756 | [
"MIT"
] | null | null | null | src/_sever_qt4.py | Joy917/fast-transfer | dfbcf5c4239da3d550b721500dff05fb6d40b756 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\SVNzhangy\fast-transfer\src\_sever.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribut... | 58.635135 | 110 | 0.735999 | 931 | 8,678 | 6.663802 | 0.161117 | 0.122502 | 0.02724 | 0.024662 | 0.39813 | 0.305287 | 0.208897 | 0.135074 | 0.135074 | 0.124758 | 0 | 0.029596 | 0.155105 | 8,678 | 147 | 111 | 59.034014 | 0.816558 | 0.024314 | 0 | 0.045113 | 1 | 0 | 0.062537 | 0.002483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037594 | false | 0 | 0.007519 | 0.022556 | 0.075188 | 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 |
a146f1a5836a0723e015b88316d930723a68dc51 | 1,464 | py | Python | share/pegasus/init/split/daxgen.py | fengggli/pegasus | b68f588d90eb2b832086ed627d61414691f8ba95 | [
"Apache-2.0"
] | null | null | null | share/pegasus/init/split/daxgen.py | fengggli/pegasus | b68f588d90eb2b832086ed627d61414691f8ba95 | [
"Apache-2.0"
] | null | null | null | share/pegasus/init/split/daxgen.py | fengggli/pegasus | b68f588d90eb2b832086ed627d61414691f8ba95 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os
import pwd
import sys
import time
from Pegasus.DAX3 import *
# The name of the DAX file is the first argument
if len(sys.argv) != 2:
sys.stderr.write("Usage: %s DAXFILE\n" % (sys.argv[0]))
sys.exit(1)
daxfile = sys.argv[1]
USER = pwd.getpwuid(os.getuid())[0]
# Create ... | 25.684211 | 70 | 0.672814 | 230 | 1,464 | 4.282609 | 0.482609 | 0.032487 | 0.026396 | 0.058883 | 0.062944 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011438 | 0.163934 | 1,464 | 56 | 71 | 26.142857 | 0.793301 | 0.240437 | 0 | 0 | 0 | 0 | 0.13146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a147e22d5aeaabe35ccc4c56ea5539f536e24407 | 3,685 | py | Python | lbrynet/wallet/ledger.py | ttkopec/lbry | 03415415ed397730e6f691f527f51b429a834ed5 | [
"MIT"
] | null | null | null | lbrynet/wallet/ledger.py | ttkopec/lbry | 03415415ed397730e6f691f527f51b429a834ed5 | [
"MIT"
] | 110 | 2018-11-26T05:41:35.000Z | 2021-08-03T15:37:20.000Z | lbrynet/wallet/ledger.py | ttkopec/lbry | 03415415ed397730e6f691f527f51b429a834ed5 | [
"MIT"
] | 1 | 2018-09-20T22:15:59.000Z | 2018-09-20T22:15:59.000Z | import logging
from six import int2byte
from binascii import unhexlify
from twisted.internet import defer
from .resolve import Resolver
from lbryschema.error import URIParseError
from lbryschema.uri import parse_lbry_uri
from torba.baseledger import BaseLedger
from .account import Account
from .network import Netwo... | 34.12037 | 101 | 0.735414 | 408 | 3,685 | 6.345588 | 0.335784 | 0.037852 | 0.048667 | 0.02163 | 0.250676 | 0.17613 | 0.150637 | 0.150637 | 0.150637 | 0.108922 | 0 | 0.06091 | 0.189145 | 3,685 | 107 | 102 | 34.439252 | 0.805556 | 0 | 0 | 0.142857 | 0 | 0 | 0.068657 | 0.034735 | 0 | 0 | 0.044505 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.154762 | 0.011905 | 0.72619 | 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 |
a1490edf966fa802ac0a01963e5d3d0e3138778b | 5,091 | py | Python | pyHarvest_build_151223/pyHarvest_Analyse_Data_v1.py | bl305/pyHarvest | d4c62d443ca657f9d31245c3c3f24c741cf2ae0b | [
"CC0-1.0"
] | null | null | null | pyHarvest_build_151223/pyHarvest_Analyse_Data_v1.py | bl305/pyHarvest | d4c62d443ca657f9d31245c3c3f24c741cf2ae0b | [
"CC0-1.0"
] | null | null | null | pyHarvest_build_151223/pyHarvest_Analyse_Data_v1.py | bl305/pyHarvest | d4c62d443ca657f9d31245c3c3f24c741cf2ae0b | [
"CC0-1.0"
] | null | null | null | # coding=utf-8
from packages import *
import os
#SET PARAMETERS
myverbosity=-1
mymaxencode=5
TXT_filetypes=(
#simple text files
'txt','lst',
#config files
'ini','cfg',
#programming languages
'c','cpp',
#scripts
'vbs','py','pl')
XLS_filetypes=('xls','xlsx')
DOC_filetypes=('doc',)
DOCX_filetypes=('docx',)
PDF_filetype... | 36.891304 | 144 | 0.792772 | 698 | 5,091 | 5.537249 | 0.216332 | 0.039845 | 0.026908 | 0.05718 | 0.513842 | 0.495213 | 0.464683 | 0.43053 | 0.421475 | 0.421475 | 0 | 0.004935 | 0.084463 | 5,091 | 138 | 145 | 36.891304 | 0.824287 | 0.316637 | 0 | 0.141304 | 0 | 0 | 0.25737 | 0.214033 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.01087 | 0.021739 | null | null | 0.119565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1537d70484481dc31d44d35ec4975bba8b264f5 | 1,038 | py | Python | product/migrations/0001_initial.py | dnetochaves/e-commerce | 97c2266934b6db883d520381520130b0472e9db4 | [
"MIT"
] | null | null | null | product/migrations/0001_initial.py | dnetochaves/e-commerce | 97c2266934b6db883d520381520130b0472e9db4 | [
"MIT"
] | null | null | null | product/migrations/0001_initial.py | dnetochaves/e-commerce | 97c2266934b6db883d520381520130b0472e9db4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-27 15:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | 35.793103 | 122 | 0.575145 | 104 | 1,038 | 5.615385 | 0.653846 | 0.046233 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030383 | 0.270713 | 1,038 | 28 | 123 | 37.071429 | 0.741083 | 0.043353 | 0 | 0 | 1 | 0 | 0.147326 | 0.047427 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a155e11f0e425a96e53ea2166d51415855a2b463 | 921 | py | Python | src/python/setup.py | Basasuya/tsne-cuda | dc518acd9fdf9109952ffe57d6cf12363e3ffd2c | [
"BSD-3-Clause"
] | 2 | 2021-04-30T16:48:47.000Z | 2021-05-21T08:49:13.000Z | src/python/setup.py | Basasuya/tsne-cuda | dc518acd9fdf9109952ffe57d6cf12363e3ffd2c | [
"BSD-3-Clause"
] | null | null | null | src/python/setup.py | Basasuya/tsne-cuda | dc518acd9fdf9109952ffe57d6cf12363e3ffd2c | [
"BSD-3-Clause"
] | 1 | 2021-04-25T23:11:05.000Z | 2021-04-25T23:11:05.000Z | from setuptools import setup
setup(
name='tsnecuda',
version='2.1.0',
author='Chan, David M., Huang, Forrest., Rao, Roshan.',
author_email='davidchan@berkeley.edu',
packages=['tsnecuda', 'tsnecuda.test'],
package_data={'tsnecuda': ['libtsnecuda.so']},
scripts=[],
url='https://github.com... | 27.909091 | 68 | 0.598263 | 93 | 921 | 5.88172 | 0.827957 | 0.02925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012857 | 0.239957 | 921 | 32 | 69 | 28.78125 | 0.768571 | 0 | 0 | 0.066667 | 0 | 0 | 0.508143 | 0.047774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 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 |
a15747184e94e78f55f7ab475ca0b1abe33741e3 | 107,889 | py | Python | programs/parallels.py | ETCBC/parallells | f45f6cc3c4f933dba6e649f49cdb14a40dcf333f | [
"MIT"
] | 4 | 2017-10-01T05:14:59.000Z | 2020-09-09T09:41:26.000Z | programs/parallels.py | ETCBC/parallells | f45f6cc3c4f933dba6e649f49cdb14a40dcf333f | [
"MIT"
] | null | null | null | programs/parallels.py | ETCBC/parallells | f45f6cc3c4f933dba6e649f49cdb14a40dcf333f | [
"MIT"
] | 1 | 2020-10-16T13:21:51.000Z | 2020-10-16T13:21:51.000Z | #!/usr/bin/env python
# coding: utf-8
# <h1>Table of Contents<span class="tocSkip"></span></h1>
# <div class="toc" style="margin-top: 1em;"><ul class="toc-item"><li><span><a href="#0.1-Motivation" data-toc-modified-id="0.1-Motivation-1"><span class="toc-item-num">1 </span>0.1 Motivation</a></span></li><li><... | 30.896048 | 6,888 | 0.579503 | 14,238 | 107,889 | 4.290982 | 0.114623 | 0.013749 | 0.009232 | 0.010737 | 0.373255 | 0.318209 | 0.266749 | 0.233374 | 0.215386 | 0.200818 | 0 | 0.023555 | 0.288167 | 107,889 | 3,491 | 6,889 | 30.904898 | 0.771963 | 0.355773 | 0 | 0.460823 | 0 | 0.005877 | 0.151934 | 0.017051 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028893 | false | 0.008815 | 0.007346 | 0.004897 | 0.056807 | 0.008815 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1586b7c08a86b032589e3a797f710af94eef3ed | 4,947 | py | Python | ResolvePageSwitcher.py | IgorRidanovic/DaVinciResolve-PageSwitcher | 5a771d8fa319454dbcf986b8921e5fa0c665baa9 | [
"MIT"
] | 17 | 2018-06-01T07:30:33.000Z | 2021-12-22T21:05:29.000Z | ResolvePageSwitcher.py | IgorRidanovic/DaVinciResolve-PageSwitcher | 5a771d8fa319454dbcf986b8921e5fa0c665baa9 | [
"MIT"
] | 2 | 2018-10-23T17:32:45.000Z | 2020-12-09T07:48:06.000Z | ResolvePageSwitcher.py | IgorRidanovic/DaVinciResolve-PageSwitcher | 5a771d8fa319454dbcf986b8921e5fa0c665baa9 | [
"MIT"
] | 5 | 2018-09-06T02:11:56.000Z | 2020-10-25T11:25:22.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# DaVinci Resolve scripting proof of concept. Resolve page external switcher.
# Local or TCP/IP control mode.
# Refer to Resolve V15 public beta 2 scripting API documentation for host setup.
# Copyright 2018 Igor Riđanović, www.hdhead.com
from PyQt4 import QtCore, QtGui
... | 36.91791 | 80 | 0.761472 | 559 | 4,947 | 6.665474 | 0.296959 | 0.050725 | 0.058239 | 0.067633 | 0.185185 | 0.118089 | 0.044015 | 0.044015 | 0.044015 | 0.044015 | 0 | 0.023766 | 0.115423 | 4,947 | 133 | 81 | 37.195489 | 0.827697 | 0.100061 | 0 | 0.084906 | 0 | 0 | 0.131081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04717 | null | null | 0.04717 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a15c583b91868493579d97f1c0cb3471ef7cba0e | 442 | py | Python | myaxf/migrations/0011_minebtns_is_used.py | Pyrans/test1806 | 1afc62e09bbebf74521b4b6fdafde8eeaa260ed9 | [
"Apache-2.0"
] | null | null | null | myaxf/migrations/0011_minebtns_is_used.py | Pyrans/test1806 | 1afc62e09bbebf74521b4b6fdafde8eeaa260ed9 | [
"Apache-2.0"
] | null | null | null | myaxf/migrations/0011_minebtns_is_used.py | Pyrans/test1806 | 1afc62e09bbebf74521b4b6fdafde8eeaa260ed9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-11-06 01:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myaxf', '0010_minebtns'),
]
operations = [
migrations.AddField(
... | 21.047619 | 52 | 0.608597 | 48 | 442 | 5.4375 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.271493 | 442 | 20 | 53 | 22.1 | 0.745342 | 0.153846 | 0 | 0 | 1 | 0 | 0.088949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a15d6cd6a92c370d9583f2a5012f9737df67a02a | 10,453 | py | Python | generate_pipelines.py | phorne-uncharted/d3m-primitives | 77d900b9dd6ab4b2b330f4e969dabcdc419c73e1 | [
"MIT"
] | null | null | null | generate_pipelines.py | phorne-uncharted/d3m-primitives | 77d900b9dd6ab4b2b330f4e969dabcdc419c73e1 | [
"MIT"
] | null | null | null | generate_pipelines.py | phorne-uncharted/d3m-primitives | 77d900b9dd6ab4b2b330f4e969dabcdc419c73e1 | [
"MIT"
] | null | null | null | """
Utility to get generate all submission pipelines for all primitives.
This script assumes that `generate_annotations.py` has already been run.
"""
import os
import subprocess
import shutil
import fire
from kf_d3m_primitives.data_preprocessing.data_cleaning.data_cleaning_pipeline import DataCleaningPipeline
from... | 50.990244 | 118 | 0.672534 | 1,052 | 10,453 | 6.224335 | 0.244297 | 0.107514 | 0.072694 | 0.058033 | 0.512065 | 0.446243 | 0.31964 | 0.209835 | 0.137752 | 0.112706 | 0 | 0.02989 | 0.235052 | 10,453 | 205 | 119 | 50.990244 | 0.78902 | 0.01368 | 0 | 0.321053 | 1 | 0 | 0.381733 | 0.35941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005263 | false | 0 | 0.126316 | 0 | 0.131579 | 0.005263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a16015f7fdd109191a18e2ce3c5cc5cd31b338c6 | 210 | py | Python | gorynych/ontologies/gch/edges/basic/__init__.py | vurmux/gorynych | d721e8cdb61f7c7ee6bc4bd31026605df15f2d9d | [
"Apache-2.0"
] | null | null | null | gorynych/ontologies/gch/edges/basic/__init__.py | vurmux/gorynych | d721e8cdb61f7c7ee6bc4bd31026605df15f2d9d | [
"Apache-2.0"
] | null | null | null | gorynych/ontologies/gch/edges/basic/__init__.py | vurmux/gorynych | d721e8cdb61f7c7ee6bc4bd31026605df15f2d9d | [
"Apache-2.0"
] | null | null | null | __all__ = [
"aggregation",
"association",
"composition",
"connection",
"containment",
"dependency",
"includes",
"membership",
"ownership",
"responsibility",
"usage"
] | 16.153846 | 21 | 0.557143 | 12 | 210 | 9.416667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27619 | 210 | 13 | 22 | 16.153846 | 0.743421 | 0 | 0 | 0 | 0 | 0 | 0.521327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a163e601ea9b0587f0a7996da2ea54d7b047cc87 | 597 | py | Python | api_app/migrations/0001_initial.py | DurkinDevelopment/coinbase_api | 0cea72234d481d09ff906f7bc064cfe16111c785 | [
"MIT"
] | null | null | null | api_app/migrations/0001_initial.py | DurkinDevelopment/coinbase_api | 0cea72234d481d09ff906f7bc064cfe16111c785 | [
"MIT"
] | null | null | null | api_app/migrations/0001_initial.py | DurkinDevelopment/coinbase_api | 0cea72234d481d09ff906f7bc064cfe16111c785 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-02-15 02:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SpotPrice',
fields=[
('id', models.BigAuto... | 24.875 | 117 | 0.562814 | 57 | 597 | 5.824561 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046005 | 0.308208 | 597 | 23 | 118 | 25.956522 | 0.757869 | 0.077052 | 0 | 0 | 1 | 0 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a163f9dace925925161f417c4fc2f6f13d99f9d2 | 924 | py | Python | Kalender/views.py | RamonvdW/nhb-apps | 5a9f840bfe066cd964174515c06b806a7b170c69 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-12-22T13:11:12.000Z | 2021-12-22T13:11:12.000Z | Kalender/views.py | RamonvdW/nhb-apps | 5a9f840bfe066cd964174515c06b806a7b170c69 | [
"BSD-3-Clause-Clear"
] | 9 | 2020-10-28T07:07:05.000Z | 2021-06-28T20:05:37.000Z | Kalender/views.py | RamonvdW/nhb-apps | 5a9f840bfe066cd964174515c06b806a7b170c69 | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2021 Ramon van der Winkel.
# All rights reserved.
# Licensed under BSD-3-Clause-Clear. See LICENSE file for details.
from django.views.generic import View
from django.urls import reverse
from django.http import HttpResponseRedirect
from Functie.rol import Rollen, rol_get_hui... | 26.4 | 79 | 0.683983 | 122 | 924 | 5.04918 | 0.606557 | 0.048701 | 0.042208 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008451 | 0.231602 | 924 | 34 | 80 | 27.176471 | 0.859155 | 0.290043 | 0 | 0 | 0 | 0 | 0.05538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | 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 |
a16900fa8a0412a37028d1da77ef8f912a14e56f | 259 | py | Python | Control/control_common.py | TomE8/drones | c92865556dd3df2d5f5b73589cd48e413bff3a3a | [
"MIT"
] | 14 | 2018-10-29T00:52:18.000Z | 2022-03-23T20:07:11.000Z | Control/control_common.py | TomE8/drones | c92865556dd3df2d5f5b73589cd48e413bff3a3a | [
"MIT"
] | 4 | 2020-07-12T05:19:05.000Z | 2020-09-20T12:40:47.000Z | Control/control_common.py | TomE8/drones | c92865556dd3df2d5f5b73589cd48e413bff3a3a | [
"MIT"
] | 2 | 2019-03-08T01:36:47.000Z | 2019-09-12T04:07:19.000Z |
class AxisIndex(): #TODO: read this value from config file
LEFT_RIGHT=0
FORWARD_BACKWARDS=1
ROTATE=2
UP_DOWN=3
class ButtonIndex():
TRIGGER = 0
SIDE_BUTTON = 1
HOVERING = 2
EXIT = 10
class ThresHold():
SENDING_TIME = 0.5 | 17.266667 | 58 | 0.648649 | 37 | 259 | 4.405405 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058201 | 0.27027 | 259 | 15 | 59 | 17.266667 | 0.804233 | 0.146718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a16aadbd9d67147c97cce0ae81ac212da4c01e1c | 2,472 | py | Python | .leetcode/16.3-sum-closest.2.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/16.3-sum-closest.2.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/16.3-sum-closest.2.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=16 lang=python3
#
# [16] 3Sum Closest
#
# https://leetcode.com/problems/3sum-closest/description/
#
# algorithms
# Medium (46.33%)
# Likes: 3080
# Dislikes: 169
# Total Accepted: 570.4K
# Total Submissions: 1.2M
# Testcase Example: '[-1,2,1,-4]\n1'
#
# Given an array nums of n integers and ... | 22.071429 | 95 | 0.506068 | 340 | 2,472 | 3.644118 | 0.376471 | 0.009685 | 0.012107 | 0.012914 | 0.05569 | 0.046812 | 0.024213 | 0 | 0 | 0 | 0 | 0.052632 | 0.338997 | 2,472 | 112 | 96 | 22.071429 | 0.70563 | 0.479773 | 0 | 0.058824 | 0 | 0 | 0.062193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.058824 | 0.029412 | 0 | 0.117647 | 0.235294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a16be12b3f57a68c02b41dfe786a31910f86a92e | 2,142 | py | Python | test/test_functions/test_michalewicz.py | carefree0910/botorch | c0b252baba8f16a4ea2eb3f99c266fba47418b1f | [
"MIT"
] | null | null | null | test/test_functions/test_michalewicz.py | carefree0910/botorch | c0b252baba8f16a4ea2eb3f99c266fba47418b1f | [
"MIT"
] | null | null | null | test/test_functions/test_michalewicz.py | carefree0910/botorch | c0b252baba8f16a4ea2eb3f99c266fba47418b1f | [
"MIT"
] | 1 | 2019-05-07T23:53:08.000Z | 2019-05-07T23:53:08.000Z | #! /usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import unittest
import torch
from botorch.test_functions.michalewicz import (
GLOBAL_MAXIMIZER,
GLOBAL_MAXIMUM,
neg_michalewicz,
)
class TestNegMichalewicz(unittest.TestCase):
def test_single_eval_neg_mic... | 38.25 | 80 | 0.661531 | 272 | 2,142 | 5.018382 | 0.257353 | 0.133333 | 0.079121 | 0.064469 | 0.712821 | 0.712821 | 0.605861 | 0.557509 | 0.557509 | 0.52967 | 0 | 0.006075 | 0.231559 | 2,142 | 55 | 81 | 38.945455 | 0.823208 | 0.042484 | 0 | 0.372093 | 0 | 0 | 0.010249 | 0 | 0 | 0 | 0 | 0 | 0.186047 | 1 | 0.139535 | false | 0 | 0.069767 | 0 | 0.232558 | 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 |
a172ea5b14e8133a222d02986a593e89323cad7c | 847 | py | Python | FreeBSD/bsd_netstats_poller.py | failedrequest/telegraf-plugins | 9cda0612a912f219fa84724f12af1f428483a37a | [
"BSD-2-Clause"
] | null | null | null | FreeBSD/bsd_netstats_poller.py | failedrequest/telegraf-plugins | 9cda0612a912f219fa84724f12af1f428483a37a | [
"BSD-2-Clause"
] | null | null | null | FreeBSD/bsd_netstats_poller.py | failedrequest/telegraf-plugins | 9cda0612a912f219fa84724f12af1f428483a37a | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# 3/21/2021
# Updated for python3
# A Simple sysctl to telegraf plugin for freebsd's netstats ip info
from freebsd_sysctl import Sysctl as sysctl
import subprocess as sp
import re
import json
import sys
import pprint as pp
hostname = sysctl("kern.hostname").value
netstat_data = {}
points_netst... | 22.289474 | 119 | 0.709563 | 131 | 847 | 4.435115 | 0.496183 | 0.075732 | 0.020654 | 0.079174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015007 | 0.134593 | 847 | 37 | 120 | 22.891892 | 0.777626 | 0.138135 | 0 | 0 | 0 | 0 | 0.140278 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.388889 | 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 |
a1773cd4561ed64fe6472e04a837e283a5378aa9 | 1,763 | py | Python | data/ebmnlp/stream.py | bepnye/tf_ner | c68b9f489e56e0ec8cfb02b7115d2b07d721ac6f | [
"Apache-2.0"
] | null | null | null | data/ebmnlp/stream.py | bepnye/tf_ner | c68b9f489e56e0ec8cfb02b7115d2b07d721ac6f | [
"Apache-2.0"
] | null | null | null | data/ebmnlp/stream.py | bepnye/tf_ner | c68b9f489e56e0ec8cfb02b7115d2b07d721ac6f | [
"Apache-2.0"
] | null | null | null | import os
import data_utils
from pathlib import Path
top_path = Path(os.path.dirname(os.path.abspath(__file__)))
EBM_NLP = Path('/Users/ben/Desktop/ebm_nlp/repo/ebm_nlp_2_00/')
NO_LABEL = '0'
def overwrite_tags(new_tags, tags):
for i, t in enumerate(new_tags):
if t != NO_LABEL:
tags[i] = t
def get_tags(d... | 28.435484 | 109 | 0.683494 | 289 | 1,763 | 3.868512 | 0.259516 | 0.028623 | 0.0322 | 0.028623 | 0.026834 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010944 | 0.170732 | 1,763 | 61 | 110 | 28.901639 | 0.753762 | 0 | 0 | 0 | 0 | 0 | 0.105502 | 0.025525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.18 | false | 0 | 0.06 | 0.12 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a17f75ddc89a6583319e9dcd13c17dded131aa22 | 1,259 | bzl | Python | tools/build_defs/native_tools/tool_access.bzl | slsyy/rules_foreign_cc | 34ab7f86a3ab1b2381cb4820d08a1c892f55bf54 | [
"Apache-2.0"
] | null | null | null | tools/build_defs/native_tools/tool_access.bzl | slsyy/rules_foreign_cc | 34ab7f86a3ab1b2381cb4820d08a1c892f55bf54 | [
"Apache-2.0"
] | null | null | null | tools/build_defs/native_tools/tool_access.bzl | slsyy/rules_foreign_cc | 34ab7f86a3ab1b2381cb4820d08a1c892f55bf54 | [
"Apache-2.0"
] | null | null | null | # buildifier: disable=module-docstring
load(":native_tools_toolchain.bzl", "access_tool")
def get_cmake_data(ctx):
return _access_and_expect_label_copied("@rules_foreign_cc//tools/build_defs:cmake_toolchain", ctx, "cmake")
def get_ninja_data(ctx):
return _access_and_expect_label_copied("@rules_foreign_cc//too... | 38.151515 | 111 | 0.669579 | 170 | 1,259 | 4.6 | 0.382353 | 0.071611 | 0.076726 | 0.102302 | 0.351662 | 0.257033 | 0.257033 | 0.257033 | 0.257033 | 0.257033 | 0 | 0 | 0.232724 | 1,259 | 32 | 112 | 39.34375 | 0.809524 | 0.144559 | 0 | 0.083333 | 0 | 0 | 0.208022 | 0.166978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.125 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a1823c37136cd59bed9a94266ef25fc93fb40d71 | 255 | py | Python | gallery/photo/urls.py | andyjohn23/django-photo | e65ee3ab6fdad3a9d836d32b7f1026efcc728a41 | [
"MIT"
] | null | null | null | gallery/photo/urls.py | andyjohn23/django-photo | e65ee3ab6fdad3a9d836d32b7f1026efcc728a41 | [
"MIT"
] | null | null | null | gallery/photo/urls.py | andyjohn23/django-photo | e65ee3ab6fdad3a9d836d32b7f1026efcc728a41 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name="index"),
path('category/<category>/', views.CategoryListView.as_view(), name="category"),
path('search/', views.image_search, name='image-search'),
] | 31.875 | 84 | 0.686275 | 31 | 255 | 5.580645 | 0.483871 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129412 | 255 | 8 | 85 | 31.875 | 0.779279 | 0 | 0 | 0 | 0 | 0 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
a183121368090836638181c5ae887b713f923588 | 6,358 | py | Python | fedsimul/models/mnist/mclr.py | cshjin/fedsimul | 1e2b9a9d9034fbc679dfaff059c42dea5642971d | [
"MIT"
] | 11 | 2021-05-07T01:28:26.000Z | 2022-03-10T08:23:16.000Z | fedsimul/models/mnist/mclr.py | cshjin/fedsimul | 1e2b9a9d9034fbc679dfaff059c42dea5642971d | [
"MIT"
] | 2 | 2021-08-13T10:12:13.000Z | 2021-08-31T02:03:20.000Z | fedsimul/models/mnist/mclr.py | cshjin/fedsimul | 1e2b9a9d9034fbc679dfaff059c42dea5642971d | [
"MIT"
] | 1 | 2021-06-08T07:23:22.000Z | 2021-06-08T07:23:22.000Z | import numpy as np
import tensorflow as tf
from tqdm import trange
from fedsimul.utils.model_utils import batch_data
from fedsimul.utils.tf_utils import graph_size
from fedsimul.utils.tf_utils import process_grad
class Model(object):
'''
This is the tf model for the MNIST dataset with multiple class learner ... | 35.920904 | 118 | 0.574394 | 748 | 6,358 | 4.707219 | 0.286096 | 0.030673 | 0.025845 | 0.029821 | 0.152798 | 0.140301 | 0.083499 | 0.06589 | 0.047146 | 0.022721 | 0 | 0.009564 | 0.325731 | 6,358 | 176 | 119 | 36.125 | 0.811756 | 0.219723 | 0 | 0.084337 | 0 | 0 | 0.016567 | 0 | 0 | 0 | 0 | 0.017045 | 0 | 1 | 0.096386 | false | 0 | 0.072289 | 0 | 0.240964 | 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 |
a183e429ab2df0bcb4079f035e2dd6d3cb6737a5 | 3,402 | py | Python | angr_ctf/solutions/06_angr_symbolic_dynamic_memory.py | Hamz-a/angr_playground | 8216f43bd2ec9a91c796a56bab610b119f8311cf | [
"MIT"
] | null | null | null | angr_ctf/solutions/06_angr_symbolic_dynamic_memory.py | Hamz-a/angr_playground | 8216f43bd2ec9a91c796a56bab610b119f8311cf | [
"MIT"
] | null | null | null | angr_ctf/solutions/06_angr_symbolic_dynamic_memory.py | Hamz-a/angr_playground | 8216f43bd2ec9a91c796a56bab610b119f8311cf | [
"MIT"
] | null | null | null | import angr
import claripy
path_to_bin = "../binaries/06_angr_symbolic_dynamic_memory"
# Find callback
def good_job(state):
# Get the output of the state
stdout = state.posix.dumps(1)
# If the program echo'ed "Good Job." then we've found a good state
return "Good Job." in str(stdout)
# Avoid callba... | 44.763158 | 131 | 0.663727 | 465 | 3,402 | 4.789247 | 0.415054 | 0.053435 | 0.026942 | 0.028738 | 0.160305 | 0.060171 | 0.060171 | 0.060171 | 0.060171 | 0.060171 | 0 | 0.138683 | 0.245444 | 3,402 | 76 | 132 | 44.763158 | 0.720686 | 0.614638 | 0 | 0.076923 | 0 | 0 | 0.094902 | 0.033725 | 0 | 0 | 0.050196 | 0 | 0 | 1 | 0.076923 | false | 0.230769 | 0.076923 | 0 | 0.230769 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a18aeadaf1c0a497b57a81c26b42e7ee05084e81 | 1,543 | py | Python | tests/live/test_client_auth.py | denibertovic/stormpath-sdk-python | e594a1bb48de3fa8eff26558bf4f72bb056e9d00 | [
"Apache-2.0"
] | null | null | null | tests/live/test_client_auth.py | denibertovic/stormpath-sdk-python | e594a1bb48de3fa8eff26558bf4f72bb056e9d00 | [
"Apache-2.0"
] | null | null | null | tests/live/test_client_auth.py | denibertovic/stormpath-sdk-python | e594a1bb48de3fa8eff26558bf4f72bb056e9d00 | [
"Apache-2.0"
] | null | null | null | """Live tests of client authentication against the Stormpath service API."""
from os import environ
from stormpath.client import Client
from stormpath.error import Error
from .base import LiveBase
class TestAuth(LiveBase):
def test_basic_authentication_succeeds(self):
client = Client(
id=s... | 29.113208 | 76 | 0.628645 | 192 | 1,543 | 4.885417 | 0.265625 | 0.059701 | 0.085288 | 0.076759 | 0.690832 | 0.659915 | 0.620469 | 0.620469 | 0.620469 | 0.620469 | 0 | 0.001837 | 0.294232 | 1,543 | 52 | 77 | 29.673077 | 0.859504 | 0.157485 | 0 | 0.6 | 0 | 0 | 0.021689 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 1 | 0.142857 | false | 0 | 0.114286 | 0 | 0.285714 | 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 |
a18bdd3e3f40a3f576715555ebb6a8270c24a370 | 256 | py | Python | languages/python/software_engineering_logging4.py | Andilyn/learntosolveit | fd15345c74ef543e4e26f4691bf91cb6dac568a4 | [
"BSD-3-Clause"
] | 136 | 2015-03-06T18:11:21.000Z | 2022-03-10T22:31:40.000Z | languages/python/software_engineering_logging4.py | Andilyn/learntosolveit | fd15345c74ef543e4e26f4691bf91cb6dac568a4 | [
"BSD-3-Clause"
] | 27 | 2015-01-07T01:38:03.000Z | 2021-12-22T19:20:15.000Z | languages/python/software_engineering_logging4.py | Andilyn/learntosolveit | fd15345c74ef543e4e26f4691bf91cb6dac568a4 | [
"BSD-3-Clause"
] | 1,582 | 2015-01-01T20:37:06.000Z | 2022-03-30T12:29:24.000Z | import logging
logger1 = logging.getLogger('package1.module1')
logger2 = logging.getLogger('package1.module2')
logging.basicConfig(level=logging.WARNING)
logger1.warning('This is a warning message')
logger2.warning('This is a another warning message')
| 23.272727 | 52 | 0.792969 | 32 | 256 | 6.34375 | 0.5 | 0.157635 | 0.236453 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.09375 | 256 | 10 | 53 | 25.6 | 0.840517 | 0 | 0 | 0 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
a18c81f3ba8e0a19564872357a93750676c04e10 | 862 | py | Python | py/foreman/tests/testdata/test_command/pkg1/build.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | 3 | 2016-01-04T06:28:52.000Z | 2020-09-20T13:18:40.000Z | py/foreman/tests/testdata/test_command/pkg1/build.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | null | null | null | py/foreman/tests/testdata/test_command/pkg1/build.py | clchiou/garage | 446ff34f86cdbd114b09b643da44988cf5d027a3 | [
"MIT"
] | null | null | null | from pathlib import Path
from foreman import define_parameter, rule, get_relpath
import foreman
if __name__ != 'pkg1':
raise AssertionError(__name__)
if not __file__.endswith('foreman/tests/testdata/test_command/pkg1/build.py'):
raise AssertionError(__file__)
relpath = get_relpath()
if relpath != Path('p... | 21.02439 | 78 | 0.691415 | 105 | 862 | 5.419048 | 0.390476 | 0.200351 | 0.161687 | 0.142355 | 0.210896 | 0.210896 | 0.210896 | 0.210896 | 0.210896 | 0.210896 | 0 | 0.031206 | 0.182135 | 862 | 40 | 79 | 21.55 | 0.775887 | 0.032483 | 0 | 0.25 | 0 | 0 | 0.138221 | 0.058894 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.166667 | 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 |
a190762c1566ca65105a3350c21b6933040e5549 | 2,362 | py | Python | scripts/option_normal_model.py | jcoffi/FuturesAndOptionsTradingSimulation | e02fdbe8c40021785a2a1dae56ff4b72f2d47c30 | [
"MIT"
] | 14 | 2017-02-16T15:13:53.000Z | 2021-05-26T11:34:09.000Z | scripts/option_normal_model.py | jcoffi/FuturesAndOptionsTradingSimulation | e02fdbe8c40021785a2a1dae56ff4b72f2d47c30 | [
"MIT"
] | null | null | null | scripts/option_normal_model.py | jcoffi/FuturesAndOptionsTradingSimulation | e02fdbe8c40021785a2a1dae56ff4b72f2d47c30 | [
"MIT"
] | 10 | 2016-08-05T07:37:07.000Z | 2021-11-26T17:31:48.000Z | #IMPORT log and sqrt FROM math MODULE
from math import log, sqrt, exp
#IMPORT date AND timedelta FOR HANDLING EXPIRY TIMES
from datetime import date, timedelta
#IMPORT SciPy stats MODULE
from scipy import stats
def asian_vol_factor(valDate,startDate,endDate):
#VALIDATE START DATE RELATIVE TO END DATE AND RETURN NO... | 38.721311 | 104 | 0.640559 | 346 | 2,362 | 4.283237 | 0.260116 | 0.114035 | 0.096491 | 0.080972 | 0.267881 | 0.25641 | 0.138327 | 0.138327 | 0.138327 | 0.138327 | 0 | 0.035595 | 0.238781 | 2,362 | 60 | 105 | 39.366667 | 0.788654 | 0.161727 | 0 | 0.212766 | 0 | 0 | 0.022854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1946a453629c94f8bc3d4a45b2c968101db6df0 | 1,546 | py | Python | CatFaultDetection/LSTM/Test_LSTM.py | jonlwowski012/UGV-Wheel-Slip-Detection-Using-LSTM-and-DNN | 2af5dcf4c3b043f065f75b612a4bbfc4aa2d11e8 | [
"Apache-2.0"
] | null | null | null | CatFaultDetection/LSTM/Test_LSTM.py | jonlwowski012/UGV-Wheel-Slip-Detection-Using-LSTM-and-DNN | 2af5dcf4c3b043f065f75b612a4bbfc4aa2d11e8 | [
"Apache-2.0"
] | null | null | null | CatFaultDetection/LSTM/Test_LSTM.py | jonlwowski012/UGV-Wheel-Slip-Detection-Using-LSTM-and-DNN | 2af5dcf4c3b043f065f75b612a4bbfc4aa2d11e8 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from scipy.misc import imread, imsave, imresize
from keras.models import model_from_json
from os.path import join
import matplotlib.pyplot as plt
import pandas as pd
import time
def shuffler(filename):
df = pd.read_csv(filename, header=0)
# return the pandas dataframe
return df.reindex(np.random.... | 28.109091 | 70 | 0.721863 | 257 | 1,546 | 4.225681 | 0.40856 | 0.02302 | 0.035912 | 0.040516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011704 | 0.115783 | 1,546 | 54 | 71 | 28.62963 | 0.782736 | 0.09185 | 0 | 0 | 0 | 0 | 0.146638 | 0.040057 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.189189 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a194bf4b74105b49a6100082214a932f48fe4c3d | 3,304 | py | Python | examples/spring_system.py | tkoziara/parmec | fefe0586798cd65744334f9abeab183159bd3d7a | [
"MIT"
] | null | null | null | examples/spring_system.py | tkoziara/parmec | fefe0586798cd65744334f9abeab183159bd3d7a | [
"MIT"
] | 15 | 2017-06-09T12:05:27.000Z | 2018-10-25T13:59:58.000Z | examples/spring_system.py | parmes/parmec | fefe0586798cd65744334f9abeab183159bd3d7a | [
"MIT"
] | null | null | null | # find parmec path
import os, sys
def where(program):
for path in os.environ["PATH"].split(os.pathsep):
if os.path.exists(os.path.join(path, program)):
return path
return None
path = where('parmec4')
if path == None:
print 'ERROR: parmec4 not found in PATH!'
print ' Download and compile parmec;'... | 32.07767 | 110 | 0.608656 | 628 | 3,304 | 3.191083 | 0.269108 | 0.022954 | 0.011976 | 0.015968 | 0.138723 | 0.080838 | 0.06986 | 0.06986 | 0.04491 | 0.035928 | 0 | 0.056343 | 0.188862 | 3,304 | 102 | 111 | 32.392157 | 0.691418 | 0.0796 | 0 | 0.049383 | 0 | 0.012346 | 0.270654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.049383 | null | null | 0.246914 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a196cc5f96a8b93a3bb1cc5156a3a6b18c755ee7 | 9,491 | py | Python | apps/core/helpers.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | 1 | 2022-03-12T23:44:21.000Z | 2022-03-12T23:44:21.000Z | apps/core/helpers.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | null | null | null | apps/core/helpers.py | tarvitz/icu | 9a7cdac9d26ea224539f68f678b90bf70084374d | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
#
import re
import os
from django.conf import settings
from django.shortcuts import (
render_to_response, get_object_or_404 as _get_object_or_404,
redirect)
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from django.contrib.contenttypes.mode... | 32.282313 | 78 | 0.623011 | 1,153 | 9,491 | 4.960104 | 0.217693 | 0.040392 | 0.022032 | 0.009792 | 0.244448 | 0.204057 | 0.169785 | 0.137087 | 0.072915 | 0.072915 | 0 | 0.007361 | 0.270045 | 9,491 | 293 | 79 | 32.392491 | 0.818129 | 0.085555 | 0 | 0.278302 | 0 | 0 | 0.073177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009434 | 0.089623 | 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 |
a196d336d93a22ab16f1f21a1b3e7182f45daa9b | 536 | py | Python | Python/Numpy/Shape and Reshape/shape_and_reshape.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | 2 | 2020-05-28T07:15:00.000Z | 2020-07-21T08:34:06.000Z | Python/Numpy/Shape and Reshape/shape_and_reshape.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | null | null | null | Python/Numpy/Shape and Reshape/shape_and_reshape.py | brianchiang-tw/HackerRank | 02a30a0033b881206fa15b8d6b4ef99b2dc420c8 | [
"MIT"
] | null | null | null | import numpy as np
from typing import List
def reshpare_to_square_matrix( seq:List)->None:
square_matrix = np.array( seq )
# reshpae to square matrix
square_matrix.shape = (3,3)
return square_matrix
if __name__ == '__main__':
int_sequence = list( map( int, input().split() ) )
# Method_#1
... | 20.615385 | 58 | 0.660448 | 75 | 536 | 4.346667 | 0.44 | 0.220859 | 0.128834 | 0.134969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.233209 | 536 | 25 | 59 | 21.44 | 0.778589 | 0.210821 | 0 | 0 | 0 | 0 | 0.019277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0.090909 | 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 |
a19804bd039dd872f53c4d69a22088d534d74c39 | 8,153 | py | Python | tests/core/test_factory.py | pdwaggoner/datar | a03f1c0ca0de1270059178e59cea151a51a6e7aa | [
"MIT"
] | null | null | null | tests/core/test_factory.py | pdwaggoner/datar | a03f1c0ca0de1270059178e59cea151a51a6e7aa | [
"MIT"
] | null | null | null | tests/core/test_factory.py | pdwaggoner/datar | a03f1c0ca0de1270059178e59cea151a51a6e7aa | [
"MIT"
] | null | null | null | import inspect
import pytest
import numpy as np
from datar.core.backends.pandas import Categorical, DataFrame, Series
from datar.core.backends.pandas.testing import assert_frame_equal
from datar.core.backends.pandas.core.groupby import SeriesGroupBy
from datar.core.factory import func_factory
from datar.core.tibble im... | 24.050147 | 69 | 0.577333 | 1,200 | 8,153 | 3.8 | 0.1125 | 0.017105 | 0.15 | 0.164035 | 0.491886 | 0.39057 | 0.319737 | 0.264693 | 0.133333 | 0.108333 | 0 | 0.044584 | 0.257206 | 8,153 | 338 | 70 | 24.121302 | 0.708388 | 0.036428 | 0 | 0.302419 | 0 | 0 | 0.020663 | 0 | 0 | 0 | 0 | 0 | 0.221774 | 1 | 0.120968 | false | 0 | 0.040323 | 0.060484 | 0.225806 | 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 |
a19fbb8c0d58c560088872b36cde005f0cdcc5c0 | 9,636 | py | Python | job_title_processing/ressources_txt/FR/cleaner/job.py | OnlineJobVacanciesESSnetBigData/JobTitleProcessing_FR | d5cf340e1a57d84562705a92b213333875be21f7 | [
"MIT"
] | 3 | 2020-10-25T17:44:50.000Z | 2021-12-11T22:28:18.000Z | job_title_processing/ressources_txt/FR/cleaner/job.py | OnlineJobVacanciesESSnetBigData/JobTitleProcessing_FR | d5cf340e1a57d84562705a92b213333875be21f7 | [
"MIT"
] | null | null | null | job_title_processing/ressources_txt/FR/cleaner/job.py | OnlineJobVacanciesESSnetBigData/JobTitleProcessing_FR | d5cf340e1a57d84562705a92b213333875be21f7 | [
"MIT"
] | 1 | 2020-11-19T12:44:25.000Z | 2020-11-19T12:44:25.000Z | # -*- coding: utf-8 -*-
jobwords = [
'nan',
'temps plein', 'temps complet', 'mi temps', 'temps partiel', # Part / Full time
'cherche', # look for
'urgent','rapidement', 'futur',
'job', 'offre', # Job offer
'trice', 'ère', 'eur', 'euse', 're', 'se', 'ème', 'trices', # Fe... | 42.263158 | 91 | 0.603881 | 970 | 9,636 | 5.992784 | 0.631959 | 0.004645 | 0.008257 | 0.01445 | 0.038706 | 0.016515 | 0.016515 | 0 | 0 | 0 | 0 | 0.000658 | 0.211499 | 9,636 | 227 | 92 | 42.449339 | 0.764412 | 0.03435 | 0 | 0.019417 | 0 | 0 | 0.653701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.004854 | 0 | 0 | 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 |
a1a133f4a1f010df28c349cd5d84226826c23e63 | 1,631 | py | Python | setup.py | cardosan/tempo_test | ff5a757c9ca54e5af1ccd71e9e5840bac279e4f0 | [
"BSD-3-Clause"
] | null | null | null | setup.py | cardosan/tempo_test | ff5a757c9ca54e5af1ccd71e9e5840bac279e4f0 | [
"BSD-3-Clause"
] | null | null | null | setup.py | cardosan/tempo_test | ff5a757c9ca54e5af1ccd71e9e5840bac279e4f0 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
import io
setup(
name='bw2temporalis',
version="0.9.2",
packages=[
"bw2temporalis",
"bw2temporalis.tests",
"bw2temporalis.examples",
"bw2temporalis.cofire"
],
author="Chris Mutel",
author_email="cmutel@gmail.com",
license=io.open(... | 32.62 | 104 | 0.591048 | 152 | 1,631 | 6.315789 | 0.657895 | 0.079167 | 0.104167 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02579 | 0.263029 | 1,631 | 49 | 105 | 33.285714 | 0.772879 | 0 | 0 | 0.0625 | 0 | 0 | 0.582465 | 0.053955 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 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 |
a1a36361a953bc1ab0c48721b0d1db387eabef20 | 6,139 | py | Python | MDP/MDP.py | ADP-Benchmarks/ADP-Benchmark | aea3d1be7c28c7290a23e731b9e7b460ee6976f7 | [
"MIT"
] | 1 | 2020-01-17T17:09:46.000Z | 2020-01-17T17:09:46.000Z | MDP/MDP.py | ADP-Benchmarks/ADP-Benchmark | aea3d1be7c28c7290a23e731b9e7b460ee6976f7 | [
"MIT"
] | null | null | null | MDP/MDP.py | ADP-Benchmarks/ADP-Benchmark | aea3d1be7c28c7290a23e731b9e7b460ee6976f7 | [
"MIT"
] | 2 | 2020-10-26T04:51:42.000Z | 2020-11-22T20:20:30.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
GitHub Homepage
----------------
https://github.com/ADP-Benchmarks
Contact information
-------------------
ADP.Benchmarks@gmail.com.
License
-------
The MIT License
"""
from MDP.spaces.space import Space
from MDP.transition import Transitio... | 32.654255 | 80 | 0.468154 | 521 | 6,139 | 5.50096 | 0.299424 | 0.027216 | 0.012561 | 0.015701 | 0.064201 | 0.064201 | 0.064201 | 0.064201 | 0.064201 | 0.05164 | 0 | 0.001767 | 0.446815 | 6,139 | 187 | 81 | 32.828877 | 0.842167 | 0.443069 | 0 | 0.183333 | 0 | 0 | 0.005702 | 0 | 0 | 0 | 0 | 0.010695 | 0.05 | 1 | 0.05 | false | 0 | 0.066667 | 0 | 0.216667 | 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 |
a1ac73057ccc5855df2d0931ac3ee0a8a54ddd18 | 855 | py | Python | python-algorithm/leetcode/problem_457.py | isudox/nerd-algorithm | c1fbe153953cf3fc24395f75d102016fdf9ea0fa | [
"MIT"
] | 5 | 2017-06-11T09:19:34.000Z | 2019-01-16T16:58:31.000Z | python-algorithm/leetcode/problem_457.py | isudox/leetcode-solution | 60085e64deaf396a171367affc94b18114565c43 | [
"MIT"
] | 5 | 2020-03-22T13:53:54.000Z | 2020-03-23T08:49:35.000Z | python-algorithm/leetcode/problem_457.py | isudox/nerd-algorithm | c1fbe153953cf3fc24395f75d102016fdf9ea0fa | [
"MIT"
] | 1 | 2019-03-02T15:50:43.000Z | 2019-03-02T15:50:43.000Z | """457. Circular Array Loop
https://leetcode.com/problems/circular-array-loop/
"""
from typing import List
class Solution:
def circular_array_loop(self, nums: List[int]) -> bool:
def helper(start: int, cur: int, count: int, visited) -> int:
if nums[cur] * nums[start] < 0:
retur... | 31.666667 | 70 | 0.527485 | 107 | 855 | 4.158879 | 0.373832 | 0.062921 | 0.114607 | 0.062921 | 0.107865 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016605 | 0.366082 | 855 | 26 | 71 | 32.884615 | 0.804428 | 0.087719 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.05 | 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 |
a1ac757a73cea2cb4a80f87ddc034e4b6d7ef1b0 | 10,937 | py | Python | task/task2.py | joseph9991/Milestone1 | 08f95e845a743539160e9a7330ca58ea20240229 | [
"MIT"
] | null | null | null | task/task2.py | joseph9991/Milestone1 | 08f95e845a743539160e9a7330ca58ea20240229 | [
"MIT"
] | null | null | null | task/task2.py | joseph9991/Milestone1 | 08f95e845a743539160e9a7330ca58ea20240229 | [
"MIT"
] | null | null | null | import pandas as pd
from pandas import read_csv
import os
import sys
import glob
import re
import soundfile as sf
import pyloudnorm as pyln
from .thdncalculator import execute_thdn
class Task2:
def __init__(self,data,file_name):
self.df = pd.DataFrame.from_dict(data, orient='columns')
self.file_name = file_nam... | 32.357988 | 241 | 0.526744 | 1,361 | 10,937 | 4.113152 | 0.25349 | 0.036442 | 0.032869 | 0.050018 | 0.115398 | 0.075027 | 0.014648 | 0.014648 | 0 | 0 | 0 | 0.046136 | 0.298437 | 10,937 | 338 | 242 | 32.357988 | 0.683435 | 0.526836 | 0 | 0.118812 | 0 | 0.019802 | 0.190847 | 0.073684 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089109 | null | null | 0.118812 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1b46b1cb092d1e3618170f67ba0443c89c2d63b | 1,684 | py | Python | Firmware/RaspberryPi/backend-pi/PWMController.py | librerespire/ventilator | c0cfa63f1eae23c20d5d72fe52f42785070bbb3d | [
"MIT"
] | 5 | 2020-04-08T12:33:31.000Z | 2021-04-17T15:45:08.000Z | Firmware/RaspberryPi/backend-pi/PWMController.py | cmfsx/ventilator | 996dd5ad5010c19799e03576acf068663276a5e8 | [
"MIT"
] | 7 | 2020-03-27T13:16:09.000Z | 2020-06-24T11:15:59.000Z | Firmware/RaspberryPi/backend-pi/PWMController.py | cmfsx/ventilator | 996dd5ad5010c19799e03576acf068663276a5e8 | [
"MIT"
] | 2 | 2020-09-03T16:29:22.000Z | 2021-01-05T23:17:59.000Z | import threading
import time
import RPi.GPIO as GPIO
import logging
import logging.config
# declare logger parameters
logger = logging.getLogger(__name__)
class PWMController(threading.Thread):
""" Thread class with a stop() method.
Handy class to implement PWM on digital output pins """
def __init_... | 33.68 | 86 | 0.600356 | 218 | 1,684 | 4.284404 | 0.334862 | 0.044968 | 0.053533 | 0.038544 | 0.147752 | 0.059957 | 0.059957 | 0.059957 | 0 | 0 | 0 | 0.006672 | 0.288005 | 1,684 | 49 | 87 | 34.367347 | 0.77231 | 0.226247 | 0 | 0 | 0 | 0 | 0.039002 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.125 | false | 0 | 0.15625 | 0.03125 | 0.34375 | 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 |
a1bf1dc46f3a24ddc127c89f233fb631f8cdaefb | 3,474 | py | Python | Amplo/Observation/_model_observer.py | Amplo-GmbH/AutoML | eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606 | [
"MIT"
] | 5 | 2022-01-07T13:34:37.000Z | 2022-03-17T06:40:28.000Z | Amplo/Observation/_model_observer.py | Amplo-GmbH/AutoML | eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606 | [
"MIT"
] | 5 | 2022-03-22T13:42:22.000Z | 2022-03-31T16:20:44.000Z | Amplo/Observation/_model_observer.py | Amplo-GmbH/AutoML | eb6cc83b6e4a3ddc7c3553e9c41d236e8b48c606 | [
"MIT"
] | 1 | 2021-12-17T22:41:11.000Z | 2021-12-17T22:41:11.000Z | # Copyright by Amplo
"""
Observer for checking production readiness of model.
This part of code is strongly inspired by [1].
References
----------
[1] E. Breck, C. Shanging, E. Nielsen, M. Salib, D. Sculley (2017).
The ML test score: A rubric for ML production readiness and technical debt
reduction. 1123-1132. 10.110... | 36.957447 | 78 | 0.670409 | 450 | 3,474 | 5.055556 | 0.455556 | 0.067692 | 0.013187 | 0.019341 | 0.104615 | 0.038681 | 0 | 0 | 0 | 0 | 0 | 0.019775 | 0.257628 | 3,474 | 93 | 79 | 37.354839 | 0.86235 | 0.482153 | 0 | 0 | 0 | 0 | 0.147224 | 0.02932 | 0 | 0 | 0 | 0.064516 | 0.030303 | 1 | 0.090909 | false | 0 | 0.151515 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a1c0825b266bca976c211fbcfde48bbcb725afd2 | 1,083 | py | Python | run_tests.py | dannybrowne86/django-ajax-uploader | 741213e38e9532dd83d8040af17169da9d610660 | [
"BSD-3-Clause"
] | 75 | 2015-02-09T22:49:57.000Z | 2021-01-31T23:47:39.000Z | run_tests.py | dannybrowne86/django-ajax-uploader | 741213e38e9532dd83d8040af17169da9d610660 | [
"BSD-3-Clause"
] | 13 | 2015-02-27T03:01:30.000Z | 2020-11-18T10:11:53.000Z | run_tests.py | dannybrowne86/django-ajax-uploader | 741213e38e9532dd83d8040af17169da9d610660 | [
"BSD-3-Clause"
] | 29 | 2015-02-09T22:50:16.000Z | 2019-12-25T06:41:43.000Z | # from https://github.com/django-extensions/django-extensions/blob/master/run_tests.py
from django.conf import settings
from django.core.management import call_command
def main():
# Dynamically configure the Django settings with the minimum necessary to
# get Django running tests
settings.configure(
... | 29.27027 | 86 | 0.600185 | 110 | 1,083 | 5.736364 | 0.590909 | 0.082409 | 0.044374 | 0.069731 | 0.091918 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002608 | 0.291782 | 1,083 | 36 | 87 | 30.083333 | 0.820078 | 0.234534 | 0 | 0 | 0 | 0 | 0.295261 | 0.159174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | true | 0 | 0.076923 | 0 | 0.115385 | 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 |
a1c400c5158580105326cc3e84bbb5b7fc61477c | 574 | py | Python | forms.py | qqalexqq/monkeys | df9a43adbda78da1f2ab1cc4c27819da4225d2e5 | [
"MIT"
] | null | null | null | forms.py | qqalexqq/monkeys | df9a43adbda78da1f2ab1cc4c27819da4225d2e5 | [
"MIT"
] | null | null | null | forms.py | qqalexqq/monkeys | df9a43adbda78da1f2ab1cc4c27819da4225d2e5 | [
"MIT"
] | null | null | null | from flask.ext.wtf import Form
from wtforms import (
TextField, IntegerField, HiddenField, SubmitField, validators
)
class MonkeyForm(Form):
id = HiddenField()
name = TextField('Name', validators=[validators.InputRequired()])
age = IntegerField(
'Age', validators=[
validators.Input... | 27.333333 | 76 | 0.656794 | 53 | 574 | 7.09434 | 0.54717 | 0.159574 | 0.263298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002247 | 0.224739 | 574 | 20 | 77 | 28.7 | 0.842697 | 0 | 0 | 0 | 0 | 0 | 0.074913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.470588 | 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 |
a1c5f16bf229bdace56e1e6f63c0ce9caaa232d9 | 10,362 | py | Python | View/pesquisa_produtos.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | View/pesquisa_produtos.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | View/pesquisa_produtos.py | felipezago/ControleEstoque | 229659c4f9888fd01df34375ec92af7a1f734d10 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'pesquisa_produtos.ui'
#
# Created by: PyQt5 View code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Frame(object):
def setupUi(self, Frame):
Fram... | 43.537815 | 102 | 0.687898 | 1,196 | 10,362 | 5.829431 | 0.2199 | 0.060241 | 0.082329 | 0.025818 | 0.3821 | 0.271084 | 0.203385 | 0.171543 | 0.075445 | 0.044177 | 0 | 0.027338 | 0.177475 | 10,362 | 237 | 103 | 43.721519 | 0.790684 | 0.018626 | 0 | 0.254464 | 1 | 0 | 0.16729 | 0.011317 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008929 | false | 0 | 0.004464 | 0 | 0.017857 | 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 |
a1c62a23cf4d05075c2ce8fd742ceaebabdfcf8f | 7,826 | py | Python | zyc/zyc.py | Sizurka/zyc | 5ed4158617293a613b52cb6197ca601a1b491660 | [
"MIT"
] | null | null | null | zyc/zyc.py | Sizurka/zyc | 5ed4158617293a613b52cb6197ca601a1b491660 | [
"MIT"
] | null | null | null | zyc/zyc.py | Sizurka/zyc | 5ed4158617293a613b52cb6197ca601a1b491660 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# MIT license
#
# Copyright (C) 2019 by XESS Corp.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# t... | 32.882353 | 109 | 0.662663 | 985 | 7,826 | 5.153299 | 0.299492 | 0.047281 | 0.016548 | 0.015366 | 0.246651 | 0.184988 | 0.135934 | 0.124507 | 0.124507 | 0.110323 | 0 | 0.004565 | 0.244314 | 7,826 | 237 | 110 | 33.021097 | 0.853568 | 0.224508 | 0 | 0.164179 | 0 | 0 | 0.109073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.059701 | null | null | 0.156716 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1c6e9a43d6622094c50a6e5fb6886a83b2efa97 | 516 | py | Python | train/ip.py | VCG/gp | cd106b604f8670a70add469d41180e34df3b1068 | [
"MIT"
] | null | null | null | train/ip.py | VCG/gp | cd106b604f8670a70add469d41180e34df3b1068 | [
"MIT"
] | null | null | null | train/ip.py | VCG/gp | cd106b604f8670a70add469d41180e34df3b1068 | [
"MIT"
] | null | null | null | import cPickle as pickle
import os; import sys; sys.path.append('..')
import gp
import gp.nets as nets
PATCH_PATH = ('iplb')
X_train, y_train, X_test, y_test = gp.Patch.load_rgb(PATCH_PATH)
X_train = X_train[:,:-1,:,:]
X_test = X_test[:,:-1,:,:]
cnn = nets.RGNetPlus()
cnn = cnn.fit(X_train, y_train)
test_accuracy ... | 21.5 | 73 | 0.705426 | 90 | 516 | 3.844444 | 0.422222 | 0.069364 | 0.040462 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028761 | 0.124031 | 516 | 23 | 74 | 22.434783 | 0.736726 | 0.017442 | 0 | 0 | 0 | 0 | 0.071287 | 0.055446 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | 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 |
a1d3d2bbc91fe562ff03d1024258dfe9a2092f42 | 4,237 | py | Python | main/admin.py | japmeet01/fplmanager-website | c7a533f49acb04ee56876dff8759bb68468b0592 | [
"MIT"
] | 5 | 2020-02-07T23:24:05.000Z | 2021-07-23T23:37:41.000Z | main/admin.py | japmeet01/fplmanager-website | c7a533f49acb04ee56876dff8759bb68468b0592 | [
"MIT"
] | 11 | 2020-01-13T10:02:33.000Z | 2022-02-10T14:42:36.000Z | main/admin.py | japmeet01/fplmanager-website | c7a533f49acb04ee56876dff8759bb68468b0592 | [
"MIT"
] | 11 | 2020-02-07T23:24:09.000Z | 2020-10-16T14:57:54.000Z | from django.contrib import admin
from django.http import HttpResponse
from django.urls import path
from django.shortcuts import render, HttpResponse, redirect
from django import forms
import os
import csv
from io import TextIOWrapper, StringIO
from .models import Player, Team, Usage, XgLookup
class CsvImportForm(for... | 31.619403 | 164 | 0.618126 | 467 | 4,237 | 5.466809 | 0.271949 | 0.017626 | 0.025852 | 0.04387 | 0.406189 | 0.349001 | 0.349001 | 0.333725 | 0.333725 | 0.333725 | 0 | 0.000326 | 0.275903 | 4,237 | 134 | 165 | 31.619403 | 0.831812 | 0.068917 | 0 | 0.314607 | 0 | 0 | 0.105383 | 0.01549 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0 | 0.157303 | 0.033708 | 0.539326 | 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 |
a1e396a0fe0bfe84f4e348a5cd7eab9d9e2a1638 | 2,962 | py | Python | filemanipulator.py | paulkramme/mit-license-adder | 1865413c1932a3108883dc2b77c67608d56be275 | [
"MIT"
] | null | null | null | filemanipulator.py | paulkramme/mit-license-adder | 1865413c1932a3108883dc2b77c67608d56be275 | [
"MIT"
] | null | null | null | filemanipulator.py | paulkramme/mit-license-adder | 1865413c1932a3108883dc2b77c67608d56be275 | [
"MIT"
] | null | null | null | #!/usr/bin/python2
import tempfile
import sys
import datetime
mit_license = ("""\
/*
MIT License
Copyright (c) 2016 Paul Kramme
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restrictio... | 32.911111 | 89 | 0.668467 | 402 | 2,962 | 4.766169 | 0.402985 | 0.057411 | 0.04071 | 0.023486 | 0.052192 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004041 | 0.248143 | 2,962 | 89 | 90 | 33.280899 | 0.856309 | 0.012829 | 0 | 0.126761 | 0 | 0 | 0.396304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028169 | 0.042254 | null | null | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a1efd6d129721046eb1d2381c5f7945eeeb81f90 | 431 | py | Python | tests/conftest.py | asvetlov/aiohttp_mako | 8fb66bd35b8cb4a2fa91e33f3dff918e4798a15a | [
"Apache-2.0"
] | 24 | 2016-12-25T16:24:45.000Z | 2020-04-07T14:39:28.000Z | tests/conftest.py | jettify/aiohttp_mako | 8fb66bd35b8cb4a2fa91e33f3dff918e4798a15a | [
"Apache-2.0"
] | 168 | 2016-11-12T20:50:34.000Z | 2022-03-18T02:09:08.000Z | tests/conftest.py | jettify/aiohttp_mako | 8fb66bd35b8cb4a2fa91e33f3dff918e4798a15a | [
"Apache-2.0"
] | 9 | 2016-12-13T10:48:26.000Z | 2020-09-17T10:42:40.000Z | import sys
import pytest
import aiohttp_mako
from aiohttp import web
@pytest.fixture
def app():
app = web.Application()
lookup = aiohttp_mako.setup(app, input_encoding='utf-8',
output_encoding='utf-8',
default_filters=['decode.utf8'])
tplt... | 22.684211 | 64 | 0.584687 | 52 | 431 | 4.730769 | 0.596154 | 0.089431 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015974 | 0.273782 | 431 | 18 | 65 | 23.944444 | 0.769968 | 0 | 0 | 0 | 0 | 0 | 0.183295 | 0.113689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 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 |
a1fbde784a20640d80d64437aa8dd036428fff1c | 15,105 | py | Python | CCMtask/ccm.py | yyFFans/DemoPractises | e0e08413efc598489401c8370f4c7762b3493851 | [
"MIT"
] | null | null | null | CCMtask/ccm.py | yyFFans/DemoPractises | e0e08413efc598489401c8370f4c7762b3493851 | [
"MIT"
] | null | null | null | CCMtask/ccm.py | yyFFans/DemoPractises | e0e08413efc598489401c8370f4c7762b3493851 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ccm.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_CCMTask(object):
def setupUi(self, CCMTask):
CCMTask.setObjec... | 57 | 112 | 0.732539 | 1,365 | 15,105 | 8.028571 | 0.130403 | 0.072999 | 0.038781 | 0.042705 | 0.342823 | 0.269276 | 0.229492 | 0.209234 | 0.200839 | 0.172735 | 0 | 0.02802 | 0.163588 | 15,105 | 264 | 113 | 57.215909 | 0.839402 | 0.011718 | 0 | 0.131474 | 1 | 0 | 0.049326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007968 | false | 0 | 0.003984 | 0 | 0.015936 | 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 |
b8028a1a0d82b7861ade532f7556efe716f52f14 | 1,136 | py | Python | Day10/calci.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | Day10/calci.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | Day10/calci.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | from logo import logo
def add(n1, n2):
return n1 + n2
def multiply(n1, n2):
return n1 * n2
def subtract(n1, n2):
return n1 - n2
def divide(n1, n2):
return n1 / n2
symbols = ['+', '-', '/', '*']
operations = {'+': add, '-': subtract,
'*': multiply, '/': divide}
def Calci():
... | 21.037037 | 100 | 0.529049 | 133 | 1,136 | 4.503759 | 0.451128 | 0.053422 | 0.066778 | 0.080134 | 0.108514 | 0.085142 | 0 | 0 | 0 | 0 | 0 | 0.031537 | 0.330106 | 1,136 | 53 | 101 | 21.433962 | 0.755585 | 0 | 0 | 0.111111 | 0 | 0.027778 | 0.221831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.027778 | 0.111111 | 0.277778 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b80d9fd4d22bb1d71b3dd29f2cdfd01260186b03 | 614 | py | Python | python/right_couch_move.py | ktmock13/PiCouch | 21992efca9fa382c7a02c10fb037a994143038c6 | [
"Apache-2.0"
] | null | null | null | python/right_couch_move.py | ktmock13/PiCouch | 21992efca9fa382c7a02c10fb037a994143038c6 | [
"Apache-2.0"
] | null | null | null | python/right_couch_move.py | ktmock13/PiCouch | 21992efca9fa382c7a02c10fb037a994143038c6 | [
"Apache-2.0"
] | null | null | null | import RPi.GPIO as GPIO
from time import sleep
import sys
#setup
GPIO.setmode(GPIO.BOARD)
openRelay=11
closeRelay=13
GPIO.setup(openRelay, GPIO.OUT)
GPIO.setup(closeRelay, GPIO.OUT)
#get cmd args
duration = float(sys.argv[1])
opening = sys.argv[2] in ['true', 'True', '1', 'TRUE']
relay = openRelay if opening else cl... | 20.466667 | 66 | 0.640065 | 83 | 614 | 4.73494 | 0.53012 | 0.045802 | 0.066158 | 0.096692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014644 | 0.221498 | 614 | 29 | 67 | 21.172414 | 0.807531 | 0.04886 | 0 | 0 | 0 | 0 | 0.209343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b80eb5f1166695a86c73eccb3c18067bd324e51b | 3,725 | py | Python | lib/python3.7/site-packages/dash_bootstrap_components/_components/Popover.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | null | null | null | lib/python3.7/site-packages/dash_bootstrap_components/_components/Popover.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | 12 | 2020-06-06T01:22:26.000Z | 2022-03-12T00:13:42.000Z | lib/python3.7/site-packages/dash_bootstrap_components/_components/Popover.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Popover(Component):
"""A Popover component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The children of this component
- id (string; optiona... | 67.727273 | 432 | 0.720537 | 480 | 3,725 | 5.479167 | 0.333333 | 0.088973 | 0.020532 | 0.014449 | 0.132319 | 0.132319 | 0.109506 | 0.081369 | 0.081369 | 0.081369 | 0 | 0.001287 | 0.165906 | 3,725 | 54 | 433 | 68.981481 | 0.845188 | 0.575034 | 0 | 0 | 1 | 0 | 0.201142 | 0.023477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 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 |
b81415a0a71fcac22aeb01aa39ba0c4dc0f68e8c | 13,866 | py | Python | data/meterpreter/meterpreter.py | codex8/metasploit-framework | eb745af12fe591e94f8d6ce9dac0396d834991ab | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2015-11-05T21:38:38.000Z | 2015-11-05T21:38:38.000Z | data/meterpreter/meterpreter.py | codex8/metasploit-framework | eb745af12fe591e94f8d6ce9dac0396d834991ab | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | data/meterpreter/meterpreter.py | codex8/metasploit-framework | eb745af12fe591e94f8d6ce9dac0396d834991ab | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import code
import ctypes
import os
import random
import select
import socket
import struct
import subprocess
import sys
import threading
has_windll = hasattr(ctypes, 'windll')
#
# Constants
#
PACKET_TYPE_REQUEST = 0
PACKET_TYPE_RESPONSE = 1
PACKET_TYPE_PLAIN_REQUEST = 10
PACKET_TYPE_PLAIN_RESPONSE ... | 33.737226 | 134 | 0.706044 | 1,998 | 13,866 | 4.585085 | 0.12963 | 0.053488 | 0.070844 | 0.027835 | 0.470145 | 0.379762 | 0.334898 | 0.292435 | 0.259251 | 0.251173 | 0 | 0.016563 | 0.177052 | 13,866 | 410 | 135 | 33.819512 | 0.786259 | 0.016515 | 0 | 0.331445 | 0 | 0 | 0.028485 | 0.001909 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002833 | 0.028329 | 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 |
b8155fb4487ab6eefaea72ef47aa753b0a19b9bd | 264 | py | Python | txtjokes/urls.py | paqman85/txtjokes | d5b9faa1fd3f797c2feee277b8cd428cc05a17ed | [
"MIT"
] | 1 | 2020-12-08T19:00:33.000Z | 2020-12-08T19:00:33.000Z | txtjokes/urls.py | paqman85/txtjokes | d5b9faa1fd3f797c2feee277b8cd428cc05a17ed | [
"MIT"
] | 3 | 2021-03-30T13:47:03.000Z | 2021-09-22T19:03:46.000Z | txtjokes/urls.py | paqman85/txtjokes | d5b9faa1fd3f797c2feee277b8cd428cc05a17ed | [
"MIT"
] | 1 | 2020-04-24T14:39:03.000Z | 2020-04-24T14:39:03.000Z | from django.conf import settings
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('txt-jokes-administratus/', admin.site.urls),
path('accounts/', include('allauth.urls')),
path('', include('pages.urls')),
]
| 24 | 54 | 0.704545 | 33 | 264 | 5.636364 | 0.545455 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140152 | 264 | 10 | 55 | 26.4 | 0.819383 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b8187e4887ed852a5b867debdeeccee5408895fe | 7,134 | py | Python | Engine/src/tests/algorithms/neuralnetwork/convolutional/conv_net_test.py | xapharius/HadoopML | c0129f298007ca89b538eb1a3800f991141ba361 | [
"MIT"
] | 2 | 2018-02-05T12:41:31.000Z | 2018-11-23T04:13:13.000Z | Engine/src/tests/algorithms/neuralnetwork/convolutional/conv_net_test.py | xapharius/HadoopML | c0129f298007ca89b538eb1a3800f991141ba361 | [
"MIT"
] | null | null | null | Engine/src/tests/algorithms/neuralnetwork/convolutional/conv_net_test.py | xapharius/HadoopML | c0129f298007ca89b538eb1a3800f991141ba361 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import utils.imageutils as imgutils
import utils.numpyutils as nputils
from algorithms.neuralnetwork.convolutional.conv_net import ConvNet
from datahandler.numerical.NumericalDataSet import NumericalDataSet
import utils.serialization as srlztn
def gen_vertical_bars(num):
bars ... | 49.2 | 158 | 0.610457 | 1,036 | 7,134 | 3.985521 | 0.179537 | 0.010656 | 0.006539 | 0.027125 | 0.554856 | 0.493582 | 0.481957 | 0.444175 | 0.392347 | 0.31969 | 0 | 0.065414 | 0.224278 | 7,134 | 145 | 159 | 49.2 | 0.680701 | 0.179282 | 0 | 0.301075 | 0 | 0 | 0.063487 | 0.044441 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075269 | null | null | 0.053763 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b819490a0e749fdb6fa33717dab9405f34226e11 | 2,747 | py | Python | docker/eXist-seed/app/connector.py | ThomasTos/Pogues-Back-Office | b346d94407bf36e37d705b1d220ab0775a120574 | [
"MIT"
] | null | null | null | docker/eXist-seed/app/connector.py | ThomasTos/Pogues-Back-Office | b346d94407bf36e37d705b1d220ab0775a120574 | [
"MIT"
] | 23 | 2017-08-25T16:48:57.000Z | 2022-02-16T00:55:42.000Z | docker/eXist-seed/app/connector.py | ThomasTos/Pogues-Back-Office | b346d94407bf36e37d705b1d220ab0775a120574 | [
"MIT"
] | 13 | 2017-07-03T09:15:36.000Z | 2021-07-02T07:43:10.000Z | import requests
from requests.auth import HTTPBasicAuth
import sys
import os
from string import rfind
import base64
class XdbException(Exception):
'''Exist db connector exception'''
class Connector:
def __init__(self, url, user, password):
self.url = url
self.auth = HTTPBasicAuth(user, passwo... | 32.702381 | 127 | 0.581361 | 300 | 2,747 | 5.273333 | 0.316667 | 0.026549 | 0.025284 | 0.037927 | 0.230089 | 0.180152 | 0.16182 | 0.16182 | 0.128951 | 0.128951 | 0 | 0.007067 | 0.27885 | 2,747 | 84 | 128 | 32.702381 | 0.791519 | 0 | 0 | 0.209677 | 0 | 0 | 0.197395 | 0.024013 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.032258 | 0.096774 | null | null | 0.080645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62982d88e6406e32cdc302d54bc0206efda33025 | 957 | py | Python | LeetCode/0005_Longest_Palindromic_Substring.py | Achyut-sudo/PythonAlgorithms | 21fb6522510fde7a0877b19a8cedd4665938a4df | [
"MIT"
] | 144 | 2020-09-13T22:54:57.000Z | 2022-02-24T21:54:25.000Z | LeetCode/0005_Longest_Palindromic_Substring.py | Achyut-sudo/PythonAlgorithms | 21fb6522510fde7a0877b19a8cedd4665938a4df | [
"MIT"
] | 587 | 2020-05-06T18:55:07.000Z | 2021-09-20T13:14:53.000Z | LeetCode/0005_Longest_Palindromic_Substring.py | Achyut-sudo/PythonAlgorithms | 21fb6522510fde7a0877b19a8cedd4665938a4df | [
"MIT"
] | 523 | 2020-09-09T12:07:13.000Z | 2022-02-24T21:54:31.000Z | '''
Problem:-
Given a string s, find the longest palindromic substring in s.
You may assume that the maximum length of s is 1000.
Example 1:
Input: "babad"
Output: "bab"
Note: "aba" is also a valid answer.
'''
class Solution:
def longestPalindrome(self, s: str) -> str:
res = ""
resL... | 25.184211 | 63 | 0.378265 | 128 | 957 | 2.828125 | 0.40625 | 0.033149 | 0.033149 | 0.049724 | 0.348066 | 0.292818 | 0.292818 | 0.292818 | 0.292818 | 0.292818 | 0 | 0.040426 | 0.508882 | 957 | 38 | 64 | 25.184211 | 0.729787 | 0.250784 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62a3ad6a413be7104ebcc620eae261f63aeb9314 | 1,234 | py | Python | bookmarks/account/urls.py | dorotan/social | f78dc84554ef37c40f661ee1350bd3d5ade51d46 | [
"Apache-2.0"
] | null | null | null | bookmarks/account/urls.py | dorotan/social | f78dc84554ef37c40f661ee1350bd3d5ade51d46 | [
"Apache-2.0"
] | null | null | null | bookmarks/account/urls.py | dorotan/social | f78dc84554ef37c40f661ee1350bd3d5ade51d46 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from django.contrib.auth import views
from . import views
urlpatterns = [
#Custom login view
# url(r'^login/$', views.user_login, name='login'),
#Builtin login view
url(r'^login/$', auth_views.login, name='login'),
... | 51.416667 | 143 | 0.71799 | 175 | 1,234 | 4.817143 | 0.205714 | 0.061684 | 0.085409 | 0.080664 | 0.168446 | 0.075919 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.105348 | 1,234 | 23 | 144 | 53.652174 | 0.759964 | 0.068882 | 0 | 0 | 0 | 0.055556 | 0.339442 | 0.157068 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0.222222 | 0 | 0.222222 | 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 |
62a3b336bd6bebedcff30395fd32342d7e3cb1c2 | 10,195 | py | Python | examples/twitter.py | alex/remoteobjects | 4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c | [
"BSD-3-Clause"
] | 1 | 2015-11-08T12:46:28.000Z | 2015-11-08T12:46:28.000Z | examples/twitter.py | alex/remoteobjects | 4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c | [
"BSD-3-Clause"
] | null | null | null | examples/twitter.py | alex/remoteobjects | 4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2009 Six Apart Ltd.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this lis... | 32.059748 | 114 | 0.665326 | 1,315 | 10,195 | 5.042586 | 0.228897 | 0.039813 | 0.019907 | 0.021716 | 0.413663 | 0.345197 | 0.273262 | 0.266174 | 0.234505 | 0.219424 | 0 | 0.002122 | 0.214125 | 10,195 | 317 | 115 | 32.160883 | 0.825512 | 0.168514 | 0 | 0.307692 | 0 | 0 | 0.110418 | 0.022863 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010989 | 0.038462 | null | null | 0.049451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62a5341859cb97bf208e99d03085417e4406b355 | 1,119 | py | Python | droxi/drox/write.py | andydude/droxtools | d608ceb715908fb00398c0d28eee74286fef3750 | [
"MIT"
] | null | null | null | droxi/drox/write.py | andydude/droxtools | d608ceb715908fb00398c0d28eee74286fef3750 | [
"MIT"
] | null | null | null | droxi/drox/write.py | andydude/droxtools | d608ceb715908fb00398c0d28eee74286fef3750 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# droxi
# Copyright (c) 2014, Andrew Robbins, All rights reserved.
#
# This library ("it") is free software; it is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; you can redistribute it and/or modify it under the terms of the
# GNU Lesser Gen... | 31.971429 | 93 | 0.669348 | 157 | 1,119 | 4.598726 | 0.566879 | 0.062327 | 0.049862 | 0.049862 | 0.066482 | 0.066482 | 0 | 0 | 0 | 0 | 0 | 0.007786 | 0.196604 | 1,119 | 35 | 94 | 31.971429 | 0.795328 | 0.366399 | 0 | 0 | 0 | 0 | 0.052857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.52381 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
62ad2faaa4417f27b1e2dd75edf9e858d937f1c1 | 5,786 | bzl | Python | docs.bzl | es-ude/EmbeddedSystemsBuildScripts | 276c3ca78ba8285cd26c3c10443d89ccc403a69c | [
"MIT"
] | 3 | 2019-06-26T14:08:12.000Z | 2020-03-10T06:24:46.000Z | docs.bzl | es-ude/EmbeddedSystemsBuildScripts | 276c3ca78ba8285cd26c3c10443d89ccc403a69c | [
"MIT"
] | 31 | 2019-06-10T10:50:58.000Z | 2021-08-06T13:43:54.000Z | docs.bzl | es-uni-due/EmbeddedSystemsBuildScripts | 276c3ca78ba8285cd26c3c10443d89ccc403a69c | [
"MIT"
] | 5 | 2019-07-08T23:33:39.000Z | 2020-10-11T20:35:25.000Z | def _doxygen_archive_impl(ctx):
"""Generate a .tar.gz archive containing documentation using Doxygen.
Args:
name: label for the generated rule. The archive will be "%{name}.tar.gz".
doxyfile: configuration file for Doxygen, @@OUTPUT_DIRECTORY@@ will be replaced with the actual output dir
... | 37.816993 | 114 | 0.610093 | 665 | 5,786 | 5.102256 | 0.228571 | 0.044209 | 0.070144 | 0.095785 | 0.188624 | 0.091954 | 0.071323 | 0.05364 | 0.05364 | 0.027704 | 0 | 0.000467 | 0.259419 | 5,786 | 153 | 115 | 37.816993 | 0.791365 | 0.128241 | 0 | 0.27907 | 1 | 0 | 0.158163 | 0.009184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031008 | false | 0 | 0 | 0 | 0.046512 | 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 |
62b63fa1744965ed736f83868f1e02cf4c32335f | 16,566 | py | Python | szndaogen/data_access/manager_base.py | seznam/szndaogen | e33436893d9d933bee81c0cfb9a0ca4ce4d261b5 | [
"MIT"
] | 3 | 2021-07-20T14:10:22.000Z | 2022-03-21T10:28:15.000Z | szndaogen/data_access/manager_base.py | seznam/szndaogen | e33436893d9d933bee81c0cfb9a0ca4ce4d261b5 | [
"MIT"
] | null | null | null | szndaogen/data_access/manager_base.py | seznam/szndaogen | e33436893d9d933bee81c0cfb9a0ca4ce4d261b5 | [
"MIT"
] | null | null | null | import typing
from ..tools.log import Logger
from .db import DBI
from .model_base import ModelBase
from ..config import Config
class ManagerException(BaseException):
pass
class ViewManagerBase:
MODEL_CLASS = ModelBase
def __init__(self, dbi: DBI = None):
"""
Init function of base mode... | 41.72796 | 189 | 0.651093 | 1,934 | 16,566 | 5.258014 | 0.08635 | 0.026158 | 0.037172 | 0.040712 | 0.744321 | 0.702429 | 0.608713 | 0.577933 | 0.521389 | 0.49287 | 0 | 0.001631 | 0.259628 | 16,566 | 396 | 190 | 41.833333 | 0.827477 | 0.167089 | 0 | 0.503906 | 0 | 0 | 0.112335 | 0.047906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050781 | false | 0.003906 | 0.019531 | 0.003906 | 0.140625 | 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 |
62b99b8da2aecb88766819c7135ff9c55eef6434 | 1,808 | py | Python | src/users/actions.py | josue0ghost/Python-and-MySQL-console-application | c82641c5ccaae3eb526decd2c96baa4457613a2a | [
"MIT"
] | null | null | null | src/users/actions.py | josue0ghost/Python-and-MySQL-console-application | c82641c5ccaae3eb526decd2c96baa4457613a2a | [
"MIT"
] | null | null | null | src/users/actions.py | josue0ghost/Python-and-MySQL-console-application | c82641c5ccaae3eb526decd2c96baa4457613a2a | [
"MIT"
] | null | null | null | import users.user as user
import grades.actions as grade
class Actions:
def signup(self):
print("Selected item: signup")
name = input("Your name: ")
lastname = input("Your last name: ")
email = input("Your email: ")
password = input("Choose a password: ")
... | 28.25 | 85 | 0.499447 | 180 | 1,808 | 4.994444 | 0.372222 | 0.072303 | 0.053393 | 0.066741 | 0.100111 | 0.100111 | 0 | 0 | 0 | 0 | 0 | 0.005362 | 0.381084 | 1,808 | 64 | 86 | 28.25 | 0.798034 | 0.025442 | 0 | 0.061224 | 0 | 0.020408 | 0.246451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0.081633 | 0.040816 | 0 | 0.122449 | 0.163265 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
62bafbcb01ba35806246e96f56398067276ef692 | 688 | py | Python | topics/migrations/0001_initial.py | codingforentrepreneurs/Autogenerate-Django-Models- | 95f3ffc2ad6714a02ea16b124ae075dd7ff218c2 | [
"MIT"
] | 28 | 2020-11-08T21:04:00.000Z | 2021-09-29T06:56:11.000Z | topics/migrations/0001_initial.py | codingforentrepreneurs/Autogenerate-Django-Models- | 95f3ffc2ad6714a02ea16b124ae075dd7ff218c2 | [
"MIT"
] | null | null | null | topics/migrations/0001_initial.py | codingforentrepreneurs/Autogenerate-Django-Models- | 95f3ffc2ad6714a02ea16b124ae075dd7ff218c2 | [
"MIT"
] | 9 | 2020-11-11T13:47:32.000Z | 2021-08-24T11:31:53.000Z | # Generated by Django 3.1.3 on 2020-11-08 19:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Topics',
fields=[
('id', models.AutoField(a... | 28.666667 | 114 | 0.59157 | 75 | 688 | 5.346667 | 0.68 | 0.067332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042169 | 0.276163 | 688 | 23 | 115 | 29.913043 | 0.763052 | 0.065407 | 0 | 0 | 1 | 0 | 0.039002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62be0b337ff4bd9e1d305e934c2a552b0ef05ec1 | 791 | py | Python | 783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | 2 | 2021-12-05T14:29:06.000Z | 2022-01-01T05:46:13.000Z | 783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | null | null | null | 783-minimum-distance-between-bst-nodes/783-minimum-distance-between-bst-nodes.py | hyeseonko/LeetCode | 48dfc93f1638e13041d8ce1420517a886abbdc77 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def minDiffInBST(self, root: Optional[TreeNode]) -> int:
output=[]
stack=[root]
whil... | 34.391304 | 60 | 0.558786 | 100 | 791 | 4.3 | 0.37 | 0.251163 | 0.12093 | 0.088372 | 0.125581 | 0.125581 | 0.125581 | 0 | 0 | 0 | 0 | 0.013109 | 0.324905 | 791 | 23 | 61 | 34.391304 | 0.792135 | 0.226296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 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 |
62bf318fcce84f085eb558f2ffb4dc78820b46cc | 3,399 | py | Python | pexp/management/commands/p2cmd.py | bconstantin/django_polymorphic | 2c47db8fcc284a92d2c9769ba503603fbea92660 | [
"BSD-3-Clause"
] | 27 | 2015-06-24T20:29:20.000Z | 2021-04-18T15:38:15.000Z | pexp/management/commands/p2cmd.py | bconstantin/django_polymorphic | 2c47db8fcc284a92d2c9769ba503603fbea92660 | [
"BSD-3-Clause"
] | 1 | 2015-10-04T14:34:26.000Z | 2015-10-04T14:34:26.000Z | pexp/management/commands/p2cmd.py | bconstantin/django_polymorphic | 2c47db8fcc284a92d2c9769ba503603fbea92660 | [
"BSD-3-Clause"
] | 3 | 2015-11-10T21:36:10.000Z | 2020-06-22T01:51:39.000Z | # -*- coding: utf-8 -*-
"""
This module is a scratchpad for general development, testing & debugging
Well, even more so than pcmd.py. You best ignore p2cmd.py.
"""
import uuid
from django.core.management.base import NoArgsCommand
from django.db.models import connection
from pprint import pprint
import settings
import ... | 30.621622 | 109 | 0.611356 | 439 | 3,399 | 4.624146 | 0.323462 | 0.049261 | 0.084236 | 0.032512 | 0.361576 | 0.280788 | 0.239409 | 0.209852 | 0.173399 | 0.173399 | 0 | 0.038585 | 0.26802 | 3,399 | 110 | 110 | 30.9 | 0.777331 | 0.018535 | 0 | 0.264368 | 0 | 0 | 0.202004 | 0.036643 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.103448 | null | null | 0.126437 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62c3b75f8adcffa947ee4bcc6c76cec4ce476e9e | 1,127 | py | Python | src/aiographql/client/response.py | ehtec/aiographql-client | 66b135ee08a1c4e3c3d25e63db91e7713a99501e | [
"MIT"
] | 18 | 2019-12-08T23:38:21.000Z | 2021-04-14T17:40:34.000Z | src/aiographql/client/response.py | ehtec/aiographql-client | 66b135ee08a1c4e3c3d25e63db91e7713a99501e | [
"MIT"
] | 134 | 2019-07-30T04:51:44.000Z | 2021-05-24T07:07:02.000Z | src/aiographql/client/response.py | ehtec/aiographql-client | 66b135ee08a1c4e3c3d25e63db91e7713a99501e | [
"MIT"
] | 7 | 2019-09-26T10:14:58.000Z | 2021-01-01T06:09:11.000Z | from dataclasses import dataclass, field
from typing import Any, Dict, List
from aiographql.client.error import GraphQLError
from aiographql.client.request import GraphQLRequestContainer
@dataclass(frozen=True)
class GraphQLBaseResponse(GraphQLRequestContainer):
json: Dict[str, Any] = field(default_factory=dict)... | 31.305556 | 86 | 0.697427 | 134 | 1,127 | 5.858209 | 0.447761 | 0.042038 | 0.050955 | 0.061147 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20142 | 1,127 | 35 | 87 | 32.2 | 0.872222 | 0.292813 | 0 | 0.277778 | 0 | 0 | 0.013441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0 | 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 |
62c9b5e931b6417fe4d81185cc271efbd05d9b8d | 1,266 | py | Python | utils/loader.py | zhangcheng007/face_detection_base_on_mtcnn | 7ac1890dca16784955911b9efd0fef2c8447b9cb | [
"MIT"
] | 1 | 2017-10-20T06:47:22.000Z | 2017-10-20T06:47:22.000Z | utils/loader.py | zhangcheng007/face_detection_base_on_mtcnn | 7ac1890dca16784955911b9efd0fef2c8447b9cb | [
"MIT"
] | null | null | null | utils/loader.py | zhangcheng007/face_detection_base_on_mtcnn | 7ac1890dca16784955911b9efd0fef2c8447b9cb | [
"MIT"
] | null | null | null | import numpy as np
import sys
import cv2
sys.path.append("../")
from utils.config import config
class TestLoader:
def __init__(self, imdb, batch_size=1, shuffle=False):
self.imdb = imdb
self.batch_size = batch_size
self.shuffle = shuffle
self.size = len(imdb)#num of data
... | 23.886792 | 58 | 0.562401 | 164 | 1,266 | 4.189024 | 0.268293 | 0.104803 | 0.113537 | 0.116448 | 0.218341 | 0.189229 | 0.189229 | 0.098981 | 0 | 0 | 0 | 0.007186 | 0.340442 | 1,266 | 52 | 59 | 24.346154 | 0.815569 | 0.008689 | 0 | 0.136364 | 0 | 0 | 0.002392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.090909 | 0.090909 | 0.477273 | 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 |
62cfcef9c0c1bac2152ebbbdc822957a7ae21154 | 3,185 | py | Python | automated_codeforces_registration/auto_register.py | Asienwald/GCI-Fedora | 378d70e97fb6fa57d127753d3bd3d6450e5a0381 | [
"MIT"
] | null | null | null | automated_codeforces_registration/auto_register.py | Asienwald/GCI-Fedora | 378d70e97fb6fa57d127753d3bd3d6450e5a0381 | [
"MIT"
] | null | null | null | automated_codeforces_registration/auto_register.py | Asienwald/GCI-Fedora | 378d70e97fb6fa57d127753d3bd3d6450e5a0381 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import datetime as dt
import sys
import getpass
import re
def start_registration(handle, email, pwd1, pwd2):
print("Starting registration, browser opening shortly.... | 38.841463 | 149 | 0.546311 | 285 | 3,185 | 5.017544 | 0.410526 | 0.034965 | 0.059441 | 0.066434 | 0.174825 | 0.128671 | 0 | 0 | 0 | 0 | 0 | 0.010379 | 0.304239 | 3,185 | 81 | 150 | 39.320988 | 0.634928 | 0.02292 | 0 | 0.190476 | 0 | 0.063492 | 0.475716 | 0.031521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0.111111 | 0.111111 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
62d4d2b9bbdb7c26c851c4cf1142dbfca5ebcb07 | 4,603 | py | Python | dir-stats-summary.py | rbrt-weiler/dir-stats | 1f9d1bccd9eef41016f2dcf8dca584e193414fc7 | [
"Zlib"
] | null | null | null | dir-stats-summary.py | rbrt-weiler/dir-stats | 1f9d1bccd9eef41016f2dcf8dca584e193414fc7 | [
"Zlib"
] | null | null | null | dir-stats-summary.py | rbrt-weiler/dir-stats | 1f9d1bccd9eef41016f2dcf8dca584e193414fc7 | [
"Zlib"
] | null | null | null | #!/usr/bin/python
# vim: set sw=4 sts=4 ts=8 et ft=python fenc=utf8 ff=unix tw=74 :
#
# SYNOPSIS
# ========
# This script analyses an INI file created by dir-stats.py and displays
# directories containing a certain amount of data.
#
# ARGUMENTS
# =========
# Call the script without any parameters to see an unsage mess... | 28.067073 | 74 | 0.473604 | 487 | 4,603 | 4.38193 | 0.35729 | 0.022962 | 0.022493 | 0.024367 | 0.041237 | 0.027179 | 0 | 0 | 0 | 0 | 0 | 0.014331 | 0.317836 | 4,603 | 163 | 75 | 28.239264 | 0.665287 | 0.101238 | 0 | 0.174312 | 0 | 0 | 0.17216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045872 | null | null | 0.192661 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
62dcdfc108fcc269a77defa004067921ebd5f696 | 1,067 | py | Python | sammba/registration/tests/test_base.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_base.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | sammba/registration/tests/test_base.py | salma1601/sammba-mri | c3c79ed806a4e5ce3524bc6053bf0c3ff1444113 | [
"CECILL-B"
] | null | null | null | import os
from nose import with_setup
from nose.tools import assert_true
import nibabel
from nilearn.datasets.tests import test_utils as tst
from nilearn.image import index_img
from sammba.registration import base
from sammba import testing_data
from nilearn._utils.niimg_conversions import _check_same_fov
@with_setup... | 38.107143 | 75 | 0.709466 | 152 | 1,067 | 4.638158 | 0.388158 | 0.051064 | 0.042553 | 0.039716 | 0.119149 | 0.119149 | 0.119149 | 0.119149 | 0.119149 | 0.119149 | 0 | 0.008245 | 0.204311 | 1,067 | 27 | 76 | 39.518519 | 0.822144 | 0 | 0 | 0 | 0 | 0 | 0.035614 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.041667 | false | 0 | 0.375 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62dd03d0d913944957c2612082f29f5c840f0d43 | 555 | py | Python | crawling_image/get_image.py | Lee-JH-kor/Review_Project | 5e604f2bcdceea23740759681bdc7e5d3a7670ca | [
"MIT"
] | null | null | null | crawling_image/get_image.py | Lee-JH-kor/Review_Project | 5e604f2bcdceea23740759681bdc7e5d3a7670ca | [
"MIT"
] | null | null | null | crawling_image/get_image.py | Lee-JH-kor/Review_Project | 5e604f2bcdceea23740759681bdc7e5d3a7670ca | [
"MIT"
] | 1 | 2020-11-11T05:02:37.000Z | 2020-11-11T05:02:37.000Z | import urllib.request
from bs4 import BeautifulSoup
import matplotlib.pyplot as plt
from PIL import Image
import os
def image_poster(title_address):
url = f'{title_address}'
req = urllib.request.Request(url)
res = urllib.request.urlopen(url).read()
soup = BeautifulSoup(res, 'html.parser')
soup = ... | 23.125 | 72 | 0.673874 | 76 | 555 | 4.868421 | 0.605263 | 0.140541 | 0.075676 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002227 | 0.190991 | 555 | 23 | 73 | 24.130435 | 0.821826 | 0.097297 | 0 | 0 | 0 | 0 | 0.102823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62de74cf7251561058f563593dbf807c8c8593c6 | 16,049 | py | Python | Nowruz_SemEval.py | mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7 | d87bf033c3798ff707ba25ddffde8c46abec8bd4 | [
"MIT"
] | 2 | 2022-03-20T02:03:53.000Z | 2022-03-21T19:44:54.000Z | Nowruz_SemEval.py | mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7 | d87bf033c3798ff707ba25ddffde8c46abec8bd4 | [
"MIT"
] | null | null | null | Nowruz_SemEval.py | mohammadmahdinoori/Nowruz-at-SemEval-2022-Task-7 | d87bf033c3798ff707ba25ddffde8c46abec8bd4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Nowruz at SemEval 2022: Tackling Cloze Tests with Transformers and Ordinal Regression
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1RXkjBpzNJtc0WhhrKMjU-50rd5uSviX3
"""
import torch
import torch.nn as nn
from torch.functio... | 32.686354 | 210 | 0.663406 | 1,763 | 16,049 | 5.863868 | 0.196256 | 0.02573 | 0.008802 | 0.008125 | 0.22161 | 0.176823 | 0.126137 | 0.108145 | 0.099632 | 0.099632 | 0 | 0.010622 | 0.231541 | 16,049 | 490 | 211 | 32.753061 | 0.827617 | 0.070908 | 0 | 0.201705 | 1 | 0.002841 | 0.062105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036932 | false | 0.002841 | 0.0625 | 0 | 0.144886 | 0.002841 | 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 |
62defe5f6a2a05a1164bd7391f942132d33f8a26 | 1,703 | py | Python | fbchat/utils.py | Dainius14/fb-chat-bot-old | 6bdfa07e6a423e386ed61ce67ac218d806ad38f8 | [
"MIT"
] | 2 | 2018-04-05T14:07:16.000Z | 2020-11-03T06:08:09.000Z | fbchat/utils.py | Dainius14/fb-chat-bot-old | 6bdfa07e6a423e386ed61ce67ac218d806ad38f8 | [
"MIT"
] | null | null | null | fbchat/utils.py | Dainius14/fb-chat-bot-old | 6bdfa07e6a423e386ed61ce67ac218d806ad38f8 | [
"MIT"
] | 1 | 2018-04-05T14:17:44.000Z | 2018-04-05T14:17:44.000Z | import re
import json
from time import time
from random import random
USER_AGENTS = [
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/601.1.10 (KHTML, like Gecko) Version/8.0.... | 36.234043 | 139 | 0.656489 | 277 | 1,703 | 3.971119 | 0.350181 | 0.043636 | 0.049091 | 0.090909 | 0.286364 | 0.286364 | 0.227273 | 0.227273 | 0.227273 | 0.17 | 0 | 0.163441 | 0.180857 | 1,703 | 46 | 140 | 37.021739 | 0.62509 | 0 | 0 | 0 | 0 | 0.153846 | 0.442161 | 0.043453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.102564 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
62e27fc7ce47704f27bdd2c667d663a58a6d3981 | 485 | py | Python | tetrad_cms/cases/tasks.py | UsernameForGerman/tetraD-NK | e00b406ac7b2ce63b92698c887fb53bf53344454 | [
"Apache-2.0"
] | null | null | null | tetrad_cms/cases/tasks.py | UsernameForGerman/tetraD-NK | e00b406ac7b2ce63b92698c887fb53bf53344454 | [
"Apache-2.0"
] | null | null | null | tetrad_cms/cases/tasks.py | UsernameForGerman/tetraD-NK | e00b406ac7b2ce63b92698c887fb53bf53344454 | [
"Apache-2.0"
] | null | null | null | from django.conf import settings
from requests import Session
import os
from json import dumps
from core.celery import app
@app.task(queue='cms')
def send_new_contact_to_admins(contact: dict, admins: list) -> None:
s = Session()
data = {'admins': admins, 'contact': contact}
url = settings.TELEGRAM_BOT_AP... | 25.526316 | 83 | 0.694845 | 68 | 485 | 4.852941 | 0.617647 | 0.078788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185567 | 485 | 18 | 84 | 26.944444 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.115702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.428571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
62e353f71bc5f0d9e24cfab6d427c04ff9186124 | 316 | py | Python | learning/example03_for.py | bokunimowakaru/iot | e2672a9b1dc0c4f3b57995daee634edce00a8029 | [
"MIT"
] | 6 | 2019-04-19T18:56:27.000Z | 2022-03-07T13:08:28.000Z | learning/example03_for.py | bokunimowakaru/iot | e2672a9b1dc0c4f3b57995daee634edce00a8029 | [
"MIT"
] | null | null | null | learning/example03_for.py | bokunimowakaru/iot | e2672a9b1dc0c4f3b57995daee634edce00a8029 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
# Example 03 コンピュータお得意の繰り返しfor文
from sys import argv # 本プログラムの引数argvを取得する
for name in argv: # 引数を変数nameへ代入
print('Hello,', name + '!') # 変数nameの内容を、文字列Helloに続いて表示
# for文の「argv」を「argv[1:]」にするとargv[1]以降の全引数を順次nameへ代入して繰り返す
| 28.727273 | 67 | 0.623418 | 33 | 316 | 5.969697 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.268987 | 316 | 10 | 68 | 31.6 | 0.82684 | 0.566456 | 0 | 0 | 0 | 0 | 0.053846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
62e5121cc3d103f5d833e64dac522900d5c6c105 | 468 | py | Python | 2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 492 | 2019-06-25T12:54:31.000Z | 2022-03-30T12:38:28.000Z | 2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 23 | 2019-10-01T01:36:08.000Z | 2022-02-10T12:46:16.000Z | 2020/02/07/An Introduction to Sessions in Flask/flask_session_example/app.py | kenjitagawa/youtube_video_code | ef3c48b9e136b3745d10395d94be64cb0a1f1c97 | [
"Unlicense"
] | 1,734 | 2019-06-03T06:25:13.000Z | 2022-03-31T23:57:53.000Z | from flask import Flask, render_template, session, redirect, url_for
app = Flask(__name__)
app.config['SECRET_KEY'] = 'prettyprinted'
@app.route('/')
def index():
return render_template('index.html')
@app.route('/set-background/<mode>')
def set_background(mode):
session['mode'] = mode
return ... | 26 | 69 | 0.675214 | 60 | 468 | 5.066667 | 0.433333 | 0.108553 | 0.138158 | 0.131579 | 0.164474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15812 | 468 | 18 | 70 | 26 | 0.771574 | 0 | 0 | 0.142857 | 0 | 0 | 0.192478 | 0.048673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
62efb5daea165045f78966066a5dddd62fe07ac8 | 10,137 | py | Python | lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/cisco/nxos/plugins/modules/nxos_l3_interfaces.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#############################################
# WARNING #
#############################################
#
# This file is au... | 24.96798 | 114 | 0.625037 | 1,266 | 10,137 | 4.946288 | 0.230648 | 0.060364 | 0.026988 | 0.027308 | 0.413766 | 0.376397 | 0.334079 | 0.306931 | 0.301661 | 0.27068 | 0 | 0.073864 | 0.250765 | 10,137 | 405 | 115 | 25.02963 | 0.750625 | 0.05988 | 0 | 0.487805 | 0 | 0.003049 | 0.890042 | 0.057546 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003049 | false | 0 | 0.012195 | 0 | 0.015244 | 0.003049 | 0 | 0 | 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 |
62f131f2fd644c186231aef33c85b6720ddcf3fc | 587 | py | Python | securesite/payroll/admin.py | simokauranen/payroll_api_localhost | 76cb4dede290afa1204236fb7b097eaeee61eb21 | [
"MIT"
] | null | null | null | securesite/payroll/admin.py | simokauranen/payroll_api_localhost | 76cb4dede290afa1204236fb7b097eaeee61eb21 | [
"MIT"
] | null | null | null | securesite/payroll/admin.py | simokauranen/payroll_api_localhost | 76cb4dede290afa1204236fb7b097eaeee61eb21 | [
"MIT"
] | null | null | null | """Module to add Employee fields to the User admin interface."""
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from .models import Employee
class EmployeeInline(admin.StackedInline):
model = Employee
can_delete =... | 23.48 | 68 | 0.758092 | 77 | 587 | 5.714286 | 0.532468 | 0.061364 | 0.115909 | 0.095455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002049 | 0.168654 | 587 | 24 | 69 | 24.458333 | 0.89959 | 0.207836 | 0 | 0 | 0 | 0 | 0.017505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.846154 | 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 |
62f23976c671843e25e3faff67dcc2d0f2fe7178 | 1,332 | py | Python | qamplus/voice.py | qamplus/qamplus-pythonsdk | 5669e621018ffd6605354b672b446c3ad631665d | [
"MIT"
] | null | null | null | qamplus/voice.py | qamplus/qamplus-pythonsdk | 5669e621018ffd6605354b672b446c3ad631665d | [
"MIT"
] | null | null | null | qamplus/voice.py | qamplus/qamplus-pythonsdk | 5669e621018ffd6605354b672b446c3ad631665d | [
"MIT"
] | null | null | null |
class VoiceClient(object):
def __init__(self, base_obj):
self.base_obj = base_obj
self.api_resource = "/voice/v1/{}"
def create(self,
direction,
to,
caller_id,
execution_logic,
reference_logic='',
count... | 32.487805 | 102 | 0.652402 | 154 | 1,332 | 5.279221 | 0.227273 | 0.230012 | 0.081181 | 0.088561 | 0.371464 | 0.297663 | 0.258303 | 0.258303 | 0.258303 | 0.258303 | 0 | 0.004077 | 0.263514 | 1,332 | 40 | 103 | 33.3 | 0.824669 | 0 | 0 | 0.111111 | 0 | 0 | 0.013564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0 | 0 | 0.37037 | 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 |
62fd1da94147ad45face770be507f1eb73d0d1b2 | 404 | py | Python | test.py | quantumporium/shopping_cart_project | eae13f76fce82715ddbad5aebb73035b0e1ba258 | [
"MIT"
] | null | null | null | test.py | quantumporium/shopping_cart_project | eae13f76fce82715ddbad5aebb73035b0e1ba258 | [
"MIT"
] | null | null | null | test.py | quantumporium/shopping_cart_project | eae13f76fce82715ddbad5aebb73035b0e1ba258 | [
"MIT"
] | null | null | null | # good structure for an pytest test
from app import shopping_cart
def check_if_checkout_give_the_right_value():
'''
'''
arrange_array = [15,7, 10] # arrange
shopping_cart_array = shopping_cart.checkout(arrange_array) # act
assert shopping_cart_array == (31.99, 2.8, 34.79), "this check if the functi... | 36.727273 | 120 | 0.747525 | 62 | 404 | 4.532258 | 0.596774 | 0.213523 | 0.106762 | 0.135231 | 0.227758 | 0.227758 | 0.227758 | 0 | 0 | 0 | 0 | 0.044379 | 0.163366 | 404 | 11 | 121 | 36.727273 | 0.786982 | 0.111386 | 0 | 0 | 0 | 0 | 0.182609 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1a05c837044c86fc7d751b18c934f19ce77168a2 | 12,132 | py | Python | examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py | ameserole/Akeso | 868f280e88f44e65e44fbe2f6c43e6b7c92fbcab | [
"MIT"
] | 19 | 2018-02-26T00:19:17.000Z | 2019-12-18T04:26:45.000Z | examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py | ameserole/Akeso | 868f280e88f44e65e44fbe2f6c43e6b7c92fbcab | [
"MIT"
] | 11 | 2018-05-07T15:11:30.000Z | 2018-11-13T16:40:41.000Z | examples/challenges/shell-plugin/ctfd/CTFd/plugins/shell-plugin/shell.py | ameserole/Akeso | 868f280e88f44e65e44fbe2f6c43e6b7c92fbcab | [
"MIT"
] | 1 | 2018-08-28T15:50:09.000Z | 2018-08-28T15:50:09.000Z | import logging
import os
import re
import time
import urllib
from threading import Thread
import xmlrpclib
from Queue import Queue
from flask import current_app as app, render_template, request, redirect, abort, jsonify, json as json_mod, url_for, session, Blueprint
from itsdangerous import TimedSerializer, BadTimeSi... | 45.609023 | 170 | 0.548714 | 1,337 | 12,132 | 4.857143 | 0.18923 | 0.047428 | 0.036957 | 0.020942 | 0.542039 | 0.486911 | 0.456113 | 0.421466 | 0.395904 | 0.352941 | 0 | 0.012757 | 0.334487 | 12,132 | 265 | 171 | 45.781132 | 0.791553 | 0.021513 | 0 | 0.356808 | 0 | 0.00939 | 0.162228 | 0.010619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0.215962 | 0.070423 | 0 | 0.187793 | 0.018779 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1a08401fb30f5417d31f50f1d14aadf818b0ffd5 | 1,056 | py | Python | arsenyinfo/src/utils.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | 6 | 2018-02-09T11:40:29.000Z | 2021-06-14T06:08:50.000Z | arsenyinfo/src/utils.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | null | null | null | arsenyinfo/src/utils.py | cortwave/camera-model-identification | b2cbac93308bd6e1bc9d38391f5e97f48da99263 | [
"BSD-2-Clause"
] | 7 | 2018-02-09T11:41:11.000Z | 2021-06-14T06:08:52.000Z | import logging
import subprocess
logging.basicConfig(level=logging.INFO,
format='%(levelname)s: %(name)s: %(message)s (%(asctime)s; %(filename)s:%(lineno)d)',
datefmt="%Y-%m-%d %H:%M:%S", )
logger = logging.getLogger(__name__)
def get_img_attributes(fname):
# ToDo: this sh... | 29.333333 | 105 | 0.535038 | 127 | 1,056 | 4.401575 | 0.511811 | 0.050089 | 0.025045 | 0.107335 | 0.168157 | 0.168157 | 0.168157 | 0.168157 | 0.168157 | 0 | 0 | 0.006878 | 0.311553 | 1,056 | 35 | 106 | 30.171429 | 0.762036 | 0.041667 | 0 | 0.222222 | 0 | 0.037037 | 0.193069 | 0.023762 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 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 |
1a0dcd546c9fb9cfb2c22a03b6cf3ce13d629047 | 3,531 | py | Python | jina/peapods/peas/gateway/grpc/__init__.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | 1 | 2020-12-23T08:58:49.000Z | 2020-12-23T08:58:49.000Z | jina/peapods/peas/gateway/grpc/__init__.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | jina/peapods/peas/gateway/grpc/__init__.py | yk/jina | ab66e233e74b956390f266881ff5dc4e0110d3ff | [
"Apache-2.0"
] | null | null | null | import asyncio
import argparse
import os
from multiprocessing.synchronize import Event
from typing import Union, Dict
import grpc
import zmq.asyncio
from .async_call import AsyncPrefetchCall
from ... import BasePea
from ....zmq import send_message_async, recv_message_async, _init_socket
from .....enums import SocketT... | 38.802198 | 112 | 0.652223 | 437 | 3,531 | 5.022883 | 0.336384 | 0.025513 | 0.032802 | 0.021868 | 0.21549 | 0.185877 | 0.185877 | 0.153986 | 0.153986 | 0.153986 | 0 | 0.002262 | 0.248938 | 3,531 | 90 | 113 | 39.233333 | 0.825415 | 0.029453 | 0 | 0.061538 | 0 | 0 | 0.124126 | 0.041265 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.046154 | false | 0 | 0.2 | 0.015385 | 0.276923 | 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 |
1a0ddf6aed80f212b94b5faabe9879bd5b5f6957 | 895 | py | Python | Spell Compendium/scr/Spell1059 - Improvisation.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-04-26T08:03:56.000Z | 2021-04-26T08:03:56.000Z | Spell Compendium/scr/Spell1059 - Improvisation.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 2 | 2021-06-11T05:55:01.000Z | 2021-08-03T23:41:02.000Z | Spell Compendium/scr/Spell1059 - Improvisation.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-05-17T15:37:58.000Z | 2021-05-17T15:37:58.000Z | from toee import *
def OnBeginSpellCast(spell):
print "Improvisation OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
def OnSpellEffect(spell):
print "Improvisation OnSpellEffect"
spell.duration = spell.cast... | 35.8 | 121 | 0.755307 | 109 | 895 | 6.091743 | 0.422018 | 0.099398 | 0.138554 | 0.051205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 0.147486 | 895 | 25 | 122 | 35.8 | 0.861075 | 0.09162 | 0 | 0 | 0 | 0 | 0.225647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1a118f7d8b03da075a37997cfb06c80ceb08fc58 | 907 | py | Python | mobula/operators/Multiply.py | wkcn/mobula | 4eec938d6477776f5f2d68bcf41de83fb8da5195 | [
"MIT"
] | 47 | 2017-07-15T02:13:18.000Z | 2022-01-01T09:37:59.000Z | mobula/operators/Multiply.py | wkcn/mobula | 4eec938d6477776f5f2d68bcf41de83fb8da5195 | [
"MIT"
] | 3 | 2018-06-22T13:55:12.000Z | 2020-01-29T01:41:13.000Z | mobula/operators/Multiply.py | wkcn/mobula | 4eec938d6477776f5f2d68bcf41de83fb8da5195 | [
"MIT"
] | 8 | 2017-09-03T12:42:54.000Z | 2020-09-27T03:38:59.000Z | from .Layer import *
class Multiply(Layer):
def __init__(self, models, *args, **kwargs):
self.check_inputs(models, 2)
Layer.__init__(self, models, *args, **kwargs)
def reshape(self):
self.Y = np.zeros(self.X[0].shape)
def forward(self):
self.Y = np.multiply(self.X[0], self.X... | 32.392857 | 84 | 0.624035 | 126 | 907 | 4.333333 | 0.253968 | 0.064103 | 0.065934 | 0.06044 | 0.589744 | 0.377289 | 0.113553 | 0.113553 | 0.113553 | 0 | 0 | 0.009929 | 0.222712 | 907 | 27 | 85 | 33.592593 | 0.764539 | 0 | 0 | 0.25 | 0 | 0 | 0.00882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.041667 | 0 | 0.458333 | 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 |
1a1fd264d38d2e67d8ce555d1064ae3d9aad16df | 141 | py | Python | abc/abc145/abc145b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc145/abc145b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc145/abc145b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | N = int(input())
S = input()
if N % 2 == 1:
print('No')
exit()
if S[:N // 2] == S[N // 2:]:
print('Yes')
else:
print('No')
| 11.75 | 28 | 0.411348 | 24 | 141 | 2.416667 | 0.5 | 0.103448 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.304965 | 141 | 11 | 29 | 12.818182 | 0.55102 | 0 | 0 | 0.222222 | 0 | 0 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a7e0cc5a6d14c321badeeffabba58fb153ebc18b | 657 | py | Python | eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py | alan-turing-institute/AssurancePlatform | 1aa34b544990f981a289f6d21a832657ad19742e | [
"MIT"
] | 5 | 2021-09-28T15:02:21.000Z | 2022-03-23T14:37:51.000Z | eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py | alan-turing-institute/AssurancePlatform | 1aa34b544990f981a289f6d21a832657ad19742e | [
"MIT"
] | 69 | 2021-09-28T14:21:24.000Z | 2022-03-31T17:12:19.000Z | eap_backend/eap_api/migrations/0005_alter_eapuser_is_active.py | alan-turing-institute/AssurancePlatform | 1aa34b544990f981a289f6d21a832657ad19742e | [
"MIT"
] | 1 | 2021-09-28T15:11:00.000Z | 2021-09-28T15:11:00.000Z | # Generated by Django 3.2.8 on 2022-05-31 10:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("eap_api", "0004_auto_20220531_0935"),
]
operations = [
migrations.AlterField(
model_name="eapuser",
name="is_active"... | 25.269231 | 81 | 0.531202 | 63 | 657 | 5.412698 | 0.84127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07598 | 0.378995 | 657 | 25 | 82 | 26.28 | 0.759804 | 0.068493 | 0 | 0.157895 | 1 | 0 | 0.252459 | 0.037705 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 |
a7e26aa446e86411030f396561a3b8cb6f32b961 | 465 | py | Python | lucid_torch/transforms/monochrome/TFMSMonochromeTo.py | HealthML/lucid-torch | 627700a83b5b2690cd8f95010b5ed439204102f4 | [
"MIT"
] | 1 | 2021-08-20T07:38:09.000Z | 2021-08-20T07:38:09.000Z | lucid_torch/transforms/monochrome/TFMSMonochromeTo.py | HealthML/lucid-torch | 627700a83b5b2690cd8f95010b5ed439204102f4 | [
"MIT"
] | 5 | 2021-03-19T15:50:42.000Z | 2022-03-12T00:53:17.000Z | lucid_torch/transforms/monochrome/TFMSMonochromeTo.py | HealthML/lucid-torch | 627700a83b5b2690cd8f95010b5ed439204102f4 | [
"MIT"
] | null | null | null | import torch
class TFMSMonochromeTo(torch.nn.Module):
def __init__(self, num_dimensions: int = 3):
super(TFMSMonochromeTo, self).__init__()
if not isinstance(num_dimensions, int):
raise TypeError()
elif num_dimensions < 2:
raise ValueError()
self.num_dimensi... | 31 | 79 | 0.658065 | 55 | 465 | 5.309091 | 0.527273 | 0.267123 | 0.174658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011268 | 0.236559 | 465 | 14 | 80 | 33.214286 | 0.811268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 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 |
a7e93039a39687c72a48499f5a446f6400a42bad | 412 | py | Python | data-structures/trees/node/node.py | b-ritter/python-notes | e08e466458b8a2987c0abe42674da4066c763e74 | [
"MIT"
] | 1 | 2017-05-04T18:48:45.000Z | 2017-05-04T18:48:45.000Z | data-structures/trees/node/node.py | b-ritter/python-notes | e08e466458b8a2987c0abe42674da4066c763e74 | [
"MIT"
] | null | null | null | data-structures/trees/node/node.py | b-ritter/python-notes | e08e466458b8a2987c0abe42674da4066c763e74 | [
"MIT"
] | null | null | null | class Node():
def __init__(self, value=None):
self.children = []
self.parent = None
self.value = value
def add_child(self, node):
if type(node).__name__ == 'Node':
node.parent = self
self.children.append(node)
else:
raise ValueErro... | 27.466667 | 59 | 0.553398 | 48 | 412 | 4.541667 | 0.4375 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.342233 | 412 | 15 | 59 | 27.466667 | 0.804428 | 0 | 0 | 0 | 0 | 0 | 0.01937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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.