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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23c47ac39dc5977bea1253a8d6de8e8d7e99ec92 | 2,736 | py | Python | shadow4/syned/element_coordinates.py | srio/minishadow | 019bf46106f09f89297e01c273784e8059e02014 | [
"MIT"
] | 1 | 2019-10-30T10:04:43.000Z | 2019-10-30T10:04:43.000Z | shadow4/syned/element_coordinates.py | srio/minishadow | 019bf46106f09f89297e01c273784e8059e02014 | [
"MIT"
] | 9 | 2020-09-02T16:13:01.000Z | 2020-09-30T15:09:44.000Z | shadow4/syned/element_coordinates.py | srio/shadow4 | 019bf46106f09f89297e01c273784e8059e02014 | [
"MIT"
] | null | null | null | """
Position of a beamline component within a beamline.
"""
from syned.syned_object import SynedObject
class ElementCoordinates(SynedObject):
def __init__(self, p = 0.0, q = 0.0, angle_radial=0.0, angle_azimuthal=0.0, angle_radial_out=None):
"""
:param p: distance from previous element.
:... | 35.076923 | 112 | 0.58845 | 338 | 2,736 | 4.455621 | 0.189349 | 0.226428 | 0.139442 | 0.083665 | 0.476096 | 0.389774 | 0.349934 | 0.322045 | 0.322045 | 0.322045 | 0 | 0.0128 | 0.314693 | 2,736 | 77 | 113 | 35.532468 | 0.7904 | 0.125 | 0 | 0.254902 | 0 | 0 | 0.088412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.019608 | 0.137255 | 0.45098 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
23ceeae2cbe548cf914c752e63c06fef07c3e0cd | 126,486 | py | Python | prelude/main.py | evhub/coconut-prelude | 49a208b889ee16ed6f27ce58406635591e876931 | [
"Apache-2.0"
] | 22 | 2018-02-26T07:08:04.000Z | 2022-01-02T07:49:17.000Z | prelude/main.py | evhub/coconut-prelude | 49a208b889ee16ed6f27ce58406635591e876931 | [
"Apache-2.0"
] | null | null | null | prelude/main.py | evhub/coconut-prelude | 49a208b889ee16ed6f27ce58406635591e876931 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xa1e25aa5
# Compiled with Coconut version 2.0.0-a_dev28 [How Not to Be Seen]
# Coconut Header: -------------------------------------------------------------
from __future__ import generator_stop
import sys as _coconut_sys, os as _coconut_os
_coconu... | 60.260124 | 906 | 0.682882 | 18,225 | 126,486 | 4.457778 | 0.069465 | 0.152321 | 0.149662 | 0.266066 | 0.830742 | 0.785655 | 0.67276 | 0.575988 | 0.52647 | 0.434093 | 0 | 0.046289 | 0.211597 | 126,486 | 2,098 | 907 | 60.288847 | 0.768406 | 0.385837 | 0 | 0.399257 | 0 | 0.014126 | 0.142124 | 0.089283 | 0 | 0 | 0 | 0 | 0.000743 | 1 | 0.133829 | false | 0 | 0.021561 | 0.066914 | 0.329368 | 0.004461 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 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 | 3 |
23dddeafc1cb6e8449ccc3d3c81284b2edfdd2e2 | 294 | py | Python | skytools/testing.py | eero/python-skytools | f61b7f1526dc93a78c2192e178757d0a0e742063 | [
"ISC"
] | null | null | null | skytools/testing.py | eero/python-skytools | f61b7f1526dc93a78c2192e178757d0a0e742063 | [
"ISC"
] | null | null | null | skytools/testing.py | eero/python-skytools | f61b7f1526dc93a78c2192e178757d0a0e742063 | [
"ISC"
] | null | null | null | """Utilities for tests.
"""
from __future__ import division, absolute_import, print_function
from collections import OrderedDict
def ordered_dict(d):
"""Return OrderedDict with sorted keys.
>>> OrderedDict(dict(a=1,b=2,c=3))
x
"""
return OrderedDict(sorted(d.items()))
| 18.375 | 64 | 0.693878 | 38 | 294 | 5.184211 | 0.736842 | 0.172589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012397 | 0.176871 | 294 | 15 | 65 | 19.6 | 0.801653 | 0.323129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
9b072db0b216a28d8c3c9f56fee43c1a8ec9210c | 211 | py | Python | July 13/ascending.py | rithulkamesh/python-comp | 0d3fe963d0713b60857240491da68ff7d8320d1a | [
"MIT"
] | 1 | 2021-08-21T15:31:48.000Z | 2021-08-21T15:31:48.000Z | July 13/ascending.py | rithulkamesh/python-comp | 0d3fe963d0713b60857240491da68ff7d8320d1a | [
"MIT"
] | null | null | null | July 13/ascending.py | rithulkamesh/python-comp | 0d3fe963d0713b60857240491da68ff7d8320d1a | [
"MIT"
] | null | null | null | num1 = int(input("Please enter a number:\n"))
num2 = int(input("Please enter another number:\n"))
num3 = int(input("Please enter another number:\n"))
numbers = [num1, num2, num3]
numbers.sort()
print(numbers)
| 23.444444 | 51 | 0.696682 | 32 | 211 | 4.59375 | 0.4375 | 0.163265 | 0.285714 | 0.387755 | 0.44898 | 0.44898 | 0.44898 | 0 | 0 | 0 | 0 | 0.032609 | 0.127962 | 211 | 8 | 52 | 26.375 | 0.766304 | 0 | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9b0df8ea878168458974f1e4e0cb409dade5ca04 | 4,108 | py | Python | PygFW/Data/DataContainer.py | shauncameron/PygFW | 970541d0c3fc6e1f306fe527d90834a620694804 | [
"MIT"
] | null | null | null | PygFW/Data/DataContainer.py | shauncameron/PygFW | 970541d0c3fc6e1f306fe527d90834a620694804 | [
"MIT"
] | 4 | 2021-04-15T00:12:14.000Z | 2021-04-18T20:46:09.000Z | build/lib/PygFW/Data/DataContainer.py | shauncameron/PygFW | 970541d0c3fc6e1f306fe527d90834a620694804 | [
"MIT"
] | null | null | null | class DataContainer:
def __setitem__(self, data_tag, data):
self.add(data, data_tag)
def __getitem__(self, data_tag):
return self.get(data_tag)
def __call__(self, data_tag):
return self.get(data_tag)
def __repr__(self):
return f"""<Data Container Object (size={sel... | 23.609195 | 182 | 0.626582 | 539 | 4,108 | 4.413729 | 0.159555 | 0.091215 | 0.142917 | 0.047919 | 0.330811 | 0.2438 | 0.200504 | 0.137032 | 0.137032 | 0.075662 | 0 | 0.000683 | 0.286758 | 4,108 | 174 | 183 | 23.609195 | 0.811263 | 0 | 0 | 0.252747 | 0 | 0 | 0.062059 | 0.006084 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263736 | false | 0 | 0 | 0.153846 | 0.549451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f194e6b3f7fdcfe79b5948526c49fb69a99561ac | 332 | py | Python | fdia_simulation/tests/attackers/__init__.py | QDucasse/FDIA_simulation | bdd0cb072f07b9a96fd82df581c9c7493ae66cbc | [
"MIT"
] | 7 | 2020-12-11T16:20:59.000Z | 2022-01-11T21:18:25.000Z | fdia_simulation/tests/attackers/__init__.py | QDucasse/FDIA_simulation | bdd0cb072f07b9a96fd82df581c9c7493ae66cbc | [
"MIT"
] | 2 | 2020-09-25T06:56:56.000Z | 2021-06-25T15:40:38.000Z | fdia_simulation/tests/attackers/__init__.py | QDucasse/FDIA_simulation | bdd0cb072f07b9a96fd82df581c9c7493ae66cbc | [
"MIT"
] | 5 | 2019-08-27T11:13:31.000Z | 2021-11-26T12:52:19.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 24 15:30:24 2019
@author: qde
"""
from __future__ import absolute_import
__all__ = ["test_attacker",
"test_mo_attacker",
"test_period_attacker"]
from .test_attacker import *
from .test_mo_attacker import *
from .test_period_attack... | 19.529412 | 41 | 0.650602 | 42 | 332 | 4.690476 | 0.52381 | 0.121827 | 0.142132 | 0.22335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051587 | 0.240964 | 332 | 16 | 42 | 20.75 | 0.730159 | 0.216867 | 0 | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f1bdf0ec954432f102aa93ba7c28534fa5ba2cbb | 1,746 | py | Python | sources/predict.py | hugombarreto/Autonomovel | 4cfad877232ee600949067f0892c739fa26b5c6f | [
"MIT"
] | null | null | null | sources/predict.py | hugombarreto/Autonomovel | 4cfad877232ee600949067f0892c739fa26b5c6f | [
"MIT"
] | null | null | null | sources/predict.py | hugombarreto/Autonomovel | 4cfad877232ee600949067f0892c739fa26b5c6f | [
"MIT"
] | null | null | null | #
# predict.py : Predict command based on the Neural Network thetas.
#
# Copyright (c) 2014,
# Antonio Lobato
# Hugo Menna Barreto
# Ulisses Figueiredo
#
# 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... | 40.604651 | 87 | 0.745132 | 274 | 1,746 | 4.748175 | 0.50365 | 0.06764 | 0.019985 | 0.030746 | 0.064566 | 0.064566 | 0.064566 | 0.064566 | 0.064566 | 0 | 0 | 0.018659 | 0.171249 | 1,746 | 42 | 88 | 41.571429 | 0.880442 | 0.779496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f1cb552405ab81264edfb77b51aa199aad11c40b | 227 | py | Python | gui/config.py | flyballlabs/threatdetectionservice | 46b6d1e5a651f72c97dad7eb5870695dc5950484 | [
"Apache-2.0"
] | 7 | 2016-09-21T19:21:13.000Z | 2019-09-26T02:26:19.000Z | gui/config.py | flyballlabs/threatdetectionservice | 46b6d1e5a651f72c97dad7eb5870695dc5950484 | [
"Apache-2.0"
] | 24 | 2016-10-06T23:37:43.000Z | 2017-02-18T21:36:37.000Z | gui/config.py | flyballlabs/threatdetectionservice | 46b6d1e5a651f72c97dad7eb5870695dc5950484 | [
"Apache-2.0"
] | 4 | 2016-09-27T17:07:38.000Z | 2018-05-05T03:18:19.000Z | # API_SERVER_URL: The hostname/ip and port number of the Threat Management Platform API Server
# default value: Your local ip address will be used with the default port number of 7777
# API_SERVER_URL = "http://<your ip>:7777"
| 56.75 | 94 | 0.77533 | 39 | 227 | 4.410256 | 0.615385 | 0.156977 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041885 | 0.15859 | 227 | 3 | 95 | 75.666667 | 0.858639 | 0.969163 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7b0e35b38925a7d0765a3fae0218d3f1a2bb353f | 130 | py | Python | contentcuration/contentcuration/profile_settings.py | d0sadata/studio | ec3b805c0b546fe8884d446152eead90bea4174d | [
"MIT"
] | 60 | 2018-03-29T23:33:29.000Z | 2022-03-19T12:10:56.000Z | contentcuration/contentcuration/profile_settings.py | d0sadata/studio | ec3b805c0b546fe8884d446152eead90bea4174d | [
"MIT"
] | 2,260 | 2018-03-02T23:14:49.000Z | 2022-03-29T20:57:21.000Z | contentcuration/contentcuration/profile_settings.py | d0sadata/studio | ec3b805c0b546fe8884d446152eead90bea4174d | [
"MIT"
] | 86 | 2018-03-19T21:26:35.000Z | 2022-03-28T10:09:17.000Z | from .not_production_settings import * # noqa
MIDDLEWARE = ("whitenoise.middleware.WhiteNoiseMiddleware",) + MIDDLEWARE # noqa
| 32.5 | 81 | 0.776923 | 12 | 130 | 8.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 130 | 3 | 82 | 43.333333 | 0.868421 | 0.069231 | 0 | 0 | 0 | 0 | 0.355932 | 0.355932 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7b1661689902c997450074be2aa7b6ad1c818649 | 783 | py | Python | assam_budget_board/models.py | CivicDataLab/assam-state-budget-board | 19b8a6eaed3df88a06a2ca88e44ef982635ec5b3 | [
"MIT"
] | 2 | 2019-02-20T16:07:57.000Z | 2019-02-27T03:54:10.000Z | assam_budget_board/models.py | CivicDataLab/assam-state-budget-board | 19b8a6eaed3df88a06a2ca88e44ef982635ec5b3 | [
"MIT"
] | 4 | 2018-12-05T13:10:55.000Z | 2020-03-18T05:56:24.000Z | assam_budget_board/models.py | CivicDataLab/assam-state-budget-board | 19b8a6eaed3df88a06a2ca88e44ef982635ec5b3 | [
"MIT"
] | 1 | 2019-07-31T11:40:00.000Z | 2019-07-31T11:40:00.000Z | from cms.models.pluginmodel import CMSPlugin
from django.db import models
class ExpenditureGrant(CMSPlugin):
url = models.URLField(max_length=300)
class GrantSummary(CMSPlugin):
url = models.URLField(max_length=300)
class Receipts(CMSPlugin):
url = models.URLField(max_length=300)
class AllGrants(CMSPl... | 23.727273 | 62 | 0.756066 | 97 | 783 | 6 | 0.298969 | 0.154639 | 0.262887 | 0.35567 | 0.589347 | 0.494845 | 0.434708 | 0.369416 | 0 | 0 | 0 | 0.044577 | 0.140485 | 783 | 32 | 63 | 24.46875 | 0.820208 | 0 | 0 | 0.3 | 0 | 0 | 0.005122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9e315d4117caa1aa4eb8bd5e29fc17e5d795dafd | 11,354 | py | Python | leetcode_python/Tree/boundary-of-binary-tree.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 18 | 2019-08-01T07:45:02.000Z | 2022-03-31T18:05:44.000Z | leetcode_python/Tree/boundary-of-binary-tree.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | null | null | null | leetcode_python/Tree/boundary-of-binary-tree.py | yennanliu/CS_basics | 3c50c819897a572ff38179bfb0083a19b2325fde | [
"Unlicense"
] | 15 | 2019-12-29T08:46:20.000Z | 2022-03-08T14:14:05.000Z | """
545. Boundary of Binary Tree (Medium)
https://xiaoguan.gitbooks.io/leetcode/content/LeetCode/545-boundary-of-binary-tree-medium.html
Given a binary tree, return the values of its boundary in anti-clockwise direction starting from root. Boundary includes left boundary, leaves, and right boundary in order without ... | 31.715084 | 347 | 0.569579 | 1,474 | 11,354 | 4.378562 | 0.116689 | 0.045553 | 0.034862 | 0.02603 | 0.755191 | 0.724822 | 0.705609 | 0.678029 | 0.655098 | 0.639293 | 0 | 0.014894 | 0.337678 | 11,354 | 358 | 348 | 31.715084 | 0.843351 | 0.31381 | 0 | 0.697248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.110092 | false | 0 | 0 | 0 | 0.298165 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
9e3e70862af877f1434897980f8823afd3813cdc | 224 | py | Python | sudoku/exceptions.py | lukegrecki/sudoku | 4fb46482c8d6af11cfcf885f5d537a2d6accc24d | [
"MIT"
] | 1 | 2018-01-08T01:22:38.000Z | 2018-01-08T01:22:38.000Z | sudoku/exceptions.py | lukegrecki/sudoku-cli | 4fb46482c8d6af11cfcf885f5d537a2d6accc24d | [
"MIT"
] | null | null | null | sudoku/exceptions.py | lukegrecki/sudoku-cli | 4fb46482c8d6af11cfcf885f5d537a2d6accc24d | [
"MIT"
] | null | null | null | class InvalidProblemError(Exception):
"""An exception raised when:
1) The problem is not a square grid
2) The problem size is not a square number
3) The problem has a row that is not a list
"""
pass
| 24.888889 | 47 | 0.669643 | 36 | 224 | 4.166667 | 0.638889 | 0.2 | 0.12 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.272321 | 224 | 8 | 48 | 28 | 0.90184 | 0.665179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
9e41cd3a9d669b5be172956b113585ea26f4d890 | 694 | py | Python | 01_intro_and_basic/basic_01.py | teacher144123/AdvancedPython_2019 | 86c23257f7ef54f59ed5dccedf42bd646300f4ae | [
"MIT"
] | null | null | null | 01_intro_and_basic/basic_01.py | teacher144123/AdvancedPython_2019 | 86c23257f7ef54f59ed5dccedf42bd646300f4ae | [
"MIT"
] | null | null | null | 01_intro_and_basic/basic_01.py | teacher144123/AdvancedPython_2019 | 86c23257f7ef54f59ed5dccedf42bd646300f4ae | [
"MIT"
] | 3 | 2019-03-06T12:12:19.000Z | 2019-04-08T06:55:27.000Z | # Basic Operation
print('===== Basic Operation =====')
a = 7
b = 12
print(a + b)
print(a * b)
print(b / a)
print(a // 2)
print('----------')
a -= 2
b += 5
print(a % 2)
print(a ** 2)
print(b ** 0.5)
# Some Variables
print('===== Some Variables =====')
pig = ['big', 'middle', 'small']
print(pig)
print(pig[2])
ani... | 13.88 | 45 | 0.520173 | 112 | 694 | 3.142857 | 0.330357 | 0.221591 | 0.198864 | 0.125 | 0.170455 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0.047368 | 0.178674 | 694 | 49 | 46 | 14.163265 | 0.570175 | 0.073487 | 0 | 0.142857 | 0 | 0 | 0.216301 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9e51e1a62727141eaea2f041cc2660ef83a305db | 107 | py | Python | PythonScript/PythonBasico/operadores_Diccionario.py | FranklinA/CoursesAndSelfStudy | 63a699d6df7eef52190b608e2dd5728f7aa7264a | [
"MIT"
] | null | null | null | PythonScript/PythonBasico/operadores_Diccionario.py | FranklinA/CoursesAndSelfStudy | 63a699d6df7eef52190b608e2dd5728f7aa7264a | [
"MIT"
] | null | null | null | PythonScript/PythonBasico/operadores_Diccionario.py | FranklinA/CoursesAndSelfStudy | 63a699d6df7eef52190b608e2dd5728f7aa7264a | [
"MIT"
] | null | null | null | diccionario={'José':27,'Rafa':90,'Sara':30,'Luis':40}
print(diccionario['Rafa'])
print(len(diccionario))
| 17.833333 | 53 | 0.691589 | 15 | 107 | 4.933333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0.046729 | 107 | 5 | 54 | 21.4 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9e62b632097b7214c9e457e6062055b0d4c0a464 | 392 | py | Python | observable/observable.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | 4 | 2021-07-29T17:52:54.000Z | 2022-02-15T06:32:15.000Z | observable/observable.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | null | null | null | observable/observable.py | remmyzen/nqs-tensorflow2 | 2af5d5ebb108eac4d2daa5082bdef11c8107bd1b | [
"MIT"
] | null | null | null |
class Observable(object):
"""
Base class for Observable.
This class defines an observable.
TODO: Non diagonal Hamiltonian
"""
def __init__(self, num_particles):
self.num_particles = num_particles
def get_value_ferro(self):
return None
def get_value_antiferro(... | 18.666667 | 42 | 0.632653 | 46 | 392 | 5.130435 | 0.521739 | 0.152542 | 0.177966 | 0.144068 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298469 | 392 | 20 | 43 | 19.6 | 0.858182 | 0.234694 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.444444 | false | 0 | 0 | 0.333333 | 0.888889 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9e7d6706422628e07b1a13f98f0325d01eefe9a2 | 1,656 | py | Python | src/SQL/MainTable.py | SavOK/SalesTime | 01da59a7bcc54f1b051c53156ac053dca2d3d36e | [
"MIT"
] | 1 | 2020-06-22T20:21:41.000Z | 2020-06-22T20:21:41.000Z | src/SQL/MainTable.py | SavOK/SalesTime | 01da59a7bcc54f1b051c53156ac053dca2d3d36e | [
"MIT"
] | 2 | 2020-06-05T13:08:39.000Z | 2020-06-16T13:57:35.000Z | src/SQL/MainTable.py | SavOK/SalesTime | 01da59a7bcc54f1b051c53156ac053dca2d3d36e | [
"MIT"
] | null | null | null | from sqlalchemy import Column
from sqlalchemy.dialects import postgresql as psql
from geoalchemy2 import Geometry, functions
from geoalchemy2.elements import WKTElement
from .base import Base, Session
class MainTable(Base):
__tablename__ = "main_table"
name = Column(psql.TEXT, nullable=False, quote=False, na... | 51.75 | 88 | 0.72343 | 217 | 1,656 | 5.437788 | 0.230415 | 0.135593 | 0.189831 | 0.242373 | 0.599153 | 0.599153 | 0.572034 | 0.572034 | 0.152542 | 0 | 0 | 0.007037 | 0.141908 | 1,656 | 31 | 89 | 53.419355 | 0.823364 | 0 | 0 | 0 | 0 | 0 | 0.094203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.178571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9e8c94b52ecdb5906abf5963c3b6e1cac47c54bc | 2,732 | py | Python | hashdd/mhashlib/base.py | hashdd/pyhashdd | 938366a8c1ff26e074c419d71b09d592730940e9 | [
"Apache-2.0",
"BSD-3-Clause"
] | 20 | 2017-02-22T11:32:24.000Z | 2019-11-25T18:51:41.000Z | hashdd/mhashlib/base.py | hashdd/pyhashdd | 938366a8c1ff26e074c419d71b09d592730940e9 | [
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2017-02-24T15:18:15.000Z | 2022-01-13T00:41:29.000Z | hashdd/mhashlib/base.py | hashdd/pyhashdd | 938366a8c1ff26e074c419d71b09d592730940e9 | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2017-02-22T14:42:52.000Z | 2017-11-26T21:24:04.000Z | # -*- coding: utf-8 -*-
from . import api
import binascii
import ctypes
class BaseHash(object):
_hash_type = None
_result = None
def __init__(self, data=None):
self.td = api.lib.mhash_init(self._hash_type)
if self.td is None:
raise RuntimeError("Unexpected error")
if ... | 21.856 | 77 | 0.693631 | 359 | 2,732 | 5.005571 | 0.21727 | 0.124652 | 0.222593 | 0.264329 | 0.469672 | 0.135782 | 0.135782 | 0.105732 | 0.105732 | 0.105732 | 0 | 0.062558 | 0.215959 | 2,732 | 124 | 78 | 22.032258 | 0.776377 | 0.007687 | 0 | 0.120482 | 0 | 0 | 0.02584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0 | 0.036145 | 0.012048 | 0.771084 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9e9022b1495d40fcad6a3ced1693feb80517c6c1 | 87 | py | Python | pygipo/apps.py | felixhummel/pygipo | e7323de052e3c7f44ec4912bddcbb58abebcc6bf | [
"MIT"
] | null | null | null | pygipo/apps.py | felixhummel/pygipo | e7323de052e3c7f44ec4912bddcbb58abebcc6bf | [
"MIT"
] | null | null | null | pygipo/apps.py | felixhummel/pygipo | e7323de052e3c7f44ec4912bddcbb58abebcc6bf | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PygipoConfig(AppConfig):
name = 'pygipo'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9e913932b6806ba09d36220922756ca0d68e9ee6 | 458 | py | Python | salt/models.py | bopopescu/sbdb_new | 52d57f2dd6e553f60a06c97e7a8631d41f8f2ea6 | [
"Apache-2.0"
] | 3 | 2018-01-13T14:56:07.000Z | 2019-04-20T06:11:03.000Z | salt/models.py | bopopescu/sbdb_new | 52d57f2dd6e553f60a06c97e7a8631d41f8f2ea6 | [
"Apache-2.0"
] | null | null | null | salt/models.py | bopopescu/sbdb_new | 52d57f2dd6e553f60a06c97e7a8631d41f8f2ea6 | [
"Apache-2.0"
] | 1 | 2020-07-22T02:37:30.000Z | 2020-07-22T02:37:30.000Z | from django.db import models
# Create your models here.
class Saltrecord(models.Model):
user = models.CharField(max_length=30)
operation = models.CharField(max_length=50)
arg = models.TextField()
jid = models.CharField(max_length=255,db_index=True)
# Field renamed because it was a Python reserved ... | 35.230769 | 58 | 0.720524 | 62 | 458 | 5.193548 | 0.66129 | 0.186335 | 0.223602 | 0.298137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02681 | 0.18559 | 458 | 13 | 59 | 35.230769 | 0.836461 | 0.168122 | 0 | 0 | 0 | 0 | 0.029024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9e9680db30275c138572b46b3dd7fc694b51638e | 399 | py | Python | examples/2-halogen/server/resources/user/collection.py | FlyingBird95/openapi_generator | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 3 | 2022-01-10T12:43:36.000Z | 2022-01-13T18:08:15.000Z | examples/2-halogen/server/resources/user/collection.py | FlyingBird95/openapi_generator | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 6 | 2022-02-06T19:00:05.000Z | 2022-03-22T14:22:21.000Z | examples/2-halogen/server/resources/user/collection.py | FlyingBird95/openapi-builder | df4649b9723eb89fa370b02220356b7596794069 | [
"MIT"
] | 2 | 2021-12-17T17:26:06.000Z | 2021-12-17T17:39:00.000Z | from http import HTTPStatus
from flask import jsonify
from openapi_builder import add_documentation
from ...models import user_storage
from .blueprint import blueprint
from .schema import Users
@blueprint.route("/")
@add_documentation(responses={HTTPStatus.OK: Users})
def collection():
"""Provides a collection... | 23.470588 | 60 | 0.77193 | 50 | 399 | 6.06 | 0.54 | 0.105611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12782 | 399 | 16 | 61 | 24.9375 | 0.87069 | 0.087719 | 0 | 0 | 0 | 0 | 0.01676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | true | 0 | 0.6 | 0 | 0.8 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9eaa08937f692868454e9805c7529a49fa30a9bf | 211 | py | Python | nelpy/examples/__init__.py | ryanharvey1/nelpy | 403759eb4e43e5e6eb9f77d6904c72cf28c9e550 | [
"MIT"
] | 30 | 2017-11-09T14:58:11.000Z | 2022-02-27T14:35:47.000Z | nelpy/examples/__init__.py | ryanharvey1/nelpy | 403759eb4e43e5e6eb9f77d6904c72cf28c9e550 | [
"MIT"
] | 112 | 2017-08-13T20:05:15.000Z | 2020-02-02T21:00:03.000Z | nelpy/examples/__init__.py | ryanharvey1/nelpy | 403759eb4e43e5e6eb9f77d6904c72cf28c9e550 | [
"MIT"
] | 20 | 2017-08-12T20:26:32.000Z | 2021-12-10T13:50:42.000Z | """
nelpy.examples
==============
This module contains helper functions to load example data.
"""
from ._utils import load_example_dataset, download_example_dataset, get_example_data_home
__version__ = '0.0.1' | 23.444444 | 89 | 0.748815 | 28 | 211 | 5.214286 | 0.75 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.109005 | 211 | 9 | 90 | 23.444444 | 0.760638 | 0.42654 | 0 | 0 | 0 | 0 | 0.04386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9eae782af46dc84658984a0ba9a63bf96cbb937c | 295 | py | Python | compute/utils/response.py | elsapassaro/tool-layer-raman-ir | 98e0cb1b2f4aa65caa1b83a450150d41c41c4802 | [
"MIT"
] | 4 | 2021-05-11T14:48:15.000Z | 2022-01-05T08:38:12.000Z | compute/utils/response.py | elsapassaro/tool-layer-raman-ir | 98e0cb1b2f4aa65caa1b83a450150d41c41c4802 | [
"MIT"
] | 8 | 2021-06-04T15:32:41.000Z | 2021-11-24T15:34:52.000Z | compute/utils/response.py | epfl-theos/tool-layer-raman | a74013903a13fb32f94586e03c097eab6d48f008 | [
"MIT"
] | 3 | 2021-06-10T10:25:05.000Z | 2021-09-15T12:48:55.000Z | import flask
VERBOSE = True
class FlaskRedirectException(Exception):
"""
Class used to return immediately with a flash message and a redirect.
"""
def make_response(message, error_code):
if VERBOSE:
print(message)
return flask.make_response(message, error_code)
| 18.4375 | 73 | 0.711864 | 36 | 295 | 5.722222 | 0.666667 | 0.116505 | 0.184466 | 0.23301 | 0.271845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213559 | 295 | 15 | 74 | 19.666667 | 0.887931 | 0.233898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7b3a989e8701ec60f3a3153c9b6eca4e117a45f6 | 1,599 | py | Python | www/bigghosthead/bigghosthead/pipelines.py | baijiege9/BigGhostHead | 1ffa0bf390bad707e4fc902f9af98a4c73eea554 | [
"BSD-3-Clause"
] | null | null | null | www/bigghosthead/bigghosthead/pipelines.py | baijiege9/BigGhostHead | 1ffa0bf390bad707e4fc902f9af98a4c73eea554 | [
"BSD-3-Clause"
] | null | null | null | www/bigghosthead/bigghosthead/pipelines.py | baijiege9/BigGhostHead | 1ffa0bf390bad707e4fc902f9af98a4c73eea554 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
#from models import User, Comment, Blog, next_id, Students, Students_score, Spider, Jd_comment, Product
#sys.setdefaultencoding(... | 43.216216 | 143 | 0.580988 | 171 | 1,599 | 5.385965 | 0.426901 | 0.112921 | 0.05646 | 0.039088 | 0.116178 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001671 | 0.251407 | 1,599 | 36 | 144 | 44.416667 | 0.767753 | 0.753596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
7b3d9c2995b1ed9712481eb8a10ad29114da75ca | 1,546 | py | Python | dronesearch/inputsource.py | cmusatyalab/dronesearch | 9849637555185efa0a484f49bef43ad734964e8a | [
"Apache-2.0"
] | 8 | 2019-11-19T10:57:09.000Z | 2021-10-08T23:19:12.000Z | dronesearch/inputsource.py | cmusatyalab/dronesearch | 9849637555185efa0a484f49bef43ad734964e8a | [
"Apache-2.0"
] | 7 | 2020-01-28T22:18:13.000Z | 2022-01-13T01:36:22.000Z | dronesearch/inputsource.py | cmusatyalab/dronesearch | 9849637555185efa0a484f49bef43ad734964e8a | [
"Apache-2.0"
] | null | null | null |
# Drone Search
#
# A computer vision pipeline for live video search on drone video
# feeds leveraging edge servers.
#
# Copyright (C) 2018-2019 Carnegie Mellon University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obt... | 25.344262 | 74 | 0.679172 | 207 | 1,546 | 5.019324 | 0.584541 | 0.057748 | 0.025024 | 0.030799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012733 | 0.238034 | 1,546 | 60 | 75 | 25.766667 | 0.86927 | 0.507115 | 0 | 0.16 | 0 | 0 | 0.046448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0.08 | 0.12 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7b56574ff69814ec160e88265c9ef7e8239308fa | 280 | py | Python | treadmill/cli/admin/checkout/zk.py | gaocegege/treadmill | 04325d319c0ee912c066f07b88b674e84485f154 | [
"Apache-2.0"
] | 2 | 2017-03-20T07:13:33.000Z | 2017-05-03T03:39:53.000Z | treadmill/cli/admin/checkout/zk.py | gaocegege/treadmill | 04325d319c0ee912c066f07b88b674e84485f154 | [
"Apache-2.0"
] | 12 | 2017-07-10T07:04:06.000Z | 2017-07-26T09:32:54.000Z | treadmill/cli/admin/checkout/zk.py | gaocegege/treadmill | 04325d319c0ee912c066f07b88b674e84485f154 | [
"Apache-2.0"
] | 2 | 2017-05-04T11:25:32.000Z | 2017-07-11T09:10:01.000Z | """Checkout Zookeeper ensemble."""
import click
from treadmill.checkout import zk
def init():
"""Top level command handler."""
@click.command('zk')
def check_zk():
"""Check Zookeeper status."""
return lambda: zk.ZookeeperTest
return check_zk
| 16.470588 | 39 | 0.642857 | 32 | 280 | 5.5625 | 0.59375 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 280 | 16 | 40 | 17.5 | 0.824074 | 0.282143 | 0 | 0 | 0 | 0 | 0.010811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7b5d05a9add79b1d6765c30788429b74c49253a1 | 126 | py | Python | exercises_gustguan/ex111 & ex112/ex111.py | Ewerton12F/Python-Notebook | 85c4d38c35c6063fb475c25ebf4645688ec9dbcb | [
"MIT"
] | null | null | null | exercises_gustguan/ex111 & ex112/ex111.py | Ewerton12F/Python-Notebook | 85c4d38c35c6063fb475c25ebf4645688ec9dbcb | [
"MIT"
] | null | null | null | exercises_gustguan/ex111 & ex112/ex111.py | Ewerton12F/Python-Notebook | 85c4d38c35c6063fb475c25ebf4645688ec9dbcb | [
"MIT"
] | null | null | null | import moeda
import dado
p = dado.leiaDinheiro('Digite o preço: R$')
t = float(input('Digite a taxa: %'))
moeda.resumo(p, t) | 18 | 43 | 0.68254 | 21 | 126 | 4.095238 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150794 | 126 | 7 | 44 | 18 | 0.803738 | 0 | 0 | 0 | 0 | 0 | 0.267717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7b6f42b4d4b59533889dd5cfe56fd909ec4f5006 | 1,931 | py | Python | release/stubs.min/System/Runtime/InteropServices/__init___parts/TYPEFLAGS.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Runtime/InteropServices/__init___parts/TYPEFLAGS.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Runtime/InteropServices/__init___parts/TYPEFLAGS.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class TYPEFLAGS(Enum, IComparable, IFormattable, IConvertible):
"""
Use System.Runtime.InteropServices.ComTypes.TYPEFLAGS instead.
enum (flags) TYPEFLAGS,values: TYPEFLAG_FAGGREGATABLE (1024),TYPEFLAG_FAPPOBJECT (1),TYPEFLAG_FCANCREATE (2),TYPEFLAG_FCONTROL (32),TYPEFLAG_FDISPATCHABLE (4096),TYPEFLAG_FD... | 32.728814 | 421 | 0.662351 | 207 | 1,931 | 5.574879 | 0.347826 | 0.145581 | 0.07279 | 0.07799 | 0.111785 | 0.111785 | 0.111785 | 0.09792 | 0.09792 | 0.09792 | 0 | 0.026864 | 0.228897 | 1,931 | 58 | 422 | 33.293103 | 0.748153 | 0.421025 | 0 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0.27027 | 0 | 0 | 0.72973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7b7cf9e7faf3d429fd4e3651c5fc72011312ffcd | 7,133 | py | Python | tests/unit/test_icm_client.py | k-masters/icm-python-client | 13da2957f39dd23a294c01f28c6fc4955cceef3b | [
"Apache-2.0"
] | 3 | 2015-04-15T13:14:20.000Z | 2019-09-16T19:44:44.000Z | tests/unit/test_icm_client.py | singlewire/icm-python-client | d84cfab20a24a7bbe48313c5c618889c4997ac73 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_icm_client.py | singlewire/icm-python-client | d84cfab20a24a7bbe48313c5c618889c4997ac73 | [
"Apache-2.0"
] | null | null | null | from icm_python_client.icm_client import ICMClient
import httpretty
import unittest
from sure import expect
import json
USER = {'createdAt': '2015-01-12T16:52:47.614+0000',
'email': 'a@aol.com',
'id': '6fd989e0-9a7b-11e4-a6d1-c22f013130a9',
'locations': [],
'lock': None,
'name'... | 49.881119 | 119 | 0.647974 | 834 | 7,133 | 5.411271 | 0.160671 | 0.058498 | 0.043209 | 0.071349 | 0.81099 | 0.7115 | 0.676712 | 0.656769 | 0.637049 | 0.605805 | 0 | 0.017547 | 0.193046 | 7,133 | 142 | 120 | 50.232394 | 0.766505 | 0 | 0 | 0.442623 | 0 | 0 | 0.188867 | 0.037156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122951 | false | 0 | 0.040984 | 0.008197 | 0.180328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
7bbb7afe96889d24d64956fcf5b0814df27f6130 | 213 | py | Python | tests/test_first.py | xRocketPowerx/python-sel-dedicated | 3b9b41fbd7abc05d427e8abf688b007b6dcf9e96 | [
"MIT"
] | 2 | 2019-10-12T08:56:31.000Z | 2019-10-12T17:34:51.000Z | tests/test_first.py | xRocketPowerx/python-sel-dedicated | 3b9b41fbd7abc05d427e8abf688b007b6dcf9e96 | [
"MIT"
] | null | null | null | tests/test_first.py | xRocketPowerx/python-sel-dedicated | 3b9b41fbd7abc05d427e8abf688b007b6dcf9e96 | [
"MIT"
] | null | null | null | import unittest
import sel_dedicated
class TestName(unittest.TestCase):
"""Name of unitTest"""
def testName(self):
"""Test Name"""
pass
if __name__ == '__main__':
unittest.main()
| 13.3125 | 34 | 0.624413 | 23 | 213 | 5.391304 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248826 | 213 | 15 | 35 | 14.2 | 0.775 | 0.122066 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
7bc0ab15d5ea7057f241c9145f12ddfd98612a4b | 267 | py | Python | mdtools/issues/fix/options.py | lowlight-ua/mdtools | 0d8b5ccb5b8892bc49139f72d6e1f3b9c44ab3c5 | [
"MIT"
] | null | null | null | mdtools/issues/fix/options.py | lowlight-ua/mdtools | 0d8b5ccb5b8892bc49139f72d6e1f3b9c44ab3c5 | [
"MIT"
] | null | null | null | mdtools/issues/fix/options.py | lowlight-ua/mdtools | 0d8b5ccb5b8892bc49139f72d6e1f3b9c44ab3c5 | [
"MIT"
] | null | null | null | """Defines a class to describe link fixing options."""
from dataclasses import dataclass
@dataclass
class Options:
"""Link fixing options, parsed from command line arguments."""
mode: str = ''
fuzzy: bool = False
colorize: bool = False
| 20.538462 | 66 | 0.659176 | 31 | 267 | 5.677419 | 0.709677 | 0.113636 | 0.193182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247191 | 267 | 12 | 67 | 22.25 | 0.875622 | 0.393258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.833333 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7bca8a7319c8237c7cd1cf6b3d6c6f6699496b39 | 425 | py | Python | djangoAPI/EmployeeApp/serializers.py | lugabrielbueno/Projeto | f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0 | [
"MIT"
] | null | null | null | djangoAPI/EmployeeApp/serializers.py | lugabrielbueno/Projeto | f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0 | [
"MIT"
] | null | null | null | djangoAPI/EmployeeApp/serializers.py | lugabrielbueno/Projeto | f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from EmployeeApp.models import Department,Employee
class DepartmentSerializer(serializers.ModelSerializer):
class Meta:
model=Department
fields=('DepartmentId','DepartmentName')
class EmployeeSerializer(serializers.ModelSerializer):
class Meta:
m... | 28.333333 | 89 | 0.757647 | 36 | 425 | 8.916667 | 0.611111 | 0.161994 | 0.193146 | 0.218069 | 0.249221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150588 | 425 | 14 | 90 | 30.357143 | 0.889197 | 0 | 0 | 0.2 | 0 | 0 | 0.198113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c879dbf5bc22ead99de0f869dd24be96e35375d6 | 239 | py | Python | core/src/controller.py | bloomsamyk/pet-project-api | 1777719664377b0c41e4670b34ff4f8faa7ca1e8 | [
"MIT"
] | null | null | null | core/src/controller.py | bloomsamyk/pet-project-api | 1777719664377b0c41e4670b34ff4f8faa7ca1e8 | [
"MIT"
] | null | null | null | core/src/controller.py | bloomsamyk/pet-project-api | 1777719664377b0c41e4670b34ff4f8faa7ca1e8 | [
"MIT"
] | null | null | null | from DB import DB
class Controller:
db = DB()
def __init__(self):
print('Controller init')
def get_data(self):
print('validate form')
# validate form
return self.db.get_data()
| 15.933333 | 34 | 0.548117 | 28 | 239 | 4.464286 | 0.5 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355649 | 239 | 14 | 35 | 17.071429 | 0.811688 | 0.054393 | 0 | 0 | 0 | 0 | 0.133971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c88fcf8968d1f6a468159c848f18a4333bf39425 | 100 | py | Python | ejercicio9/pregunta1.py | mariagarciau/introduccionAlgortimica2 | 49d11ec4bed07badf751fef9d39e4337b8213a27 | [
"Apache-2.0"
] | null | null | null | ejercicio9/pregunta1.py | mariagarciau/introduccionAlgortimica2 | 49d11ec4bed07badf751fef9d39e4337b8213a27 | [
"Apache-2.0"
] | null | null | null | ejercicio9/pregunta1.py | mariagarciau/introduccionAlgortimica2 | 49d11ec4bed07badf751fef9d39e4337b8213a27 | [
"Apache-2.0"
] | null | null | null | def media(n1,n2,n3):
mediaAritmetica=(n1+n2+n3)/3
return print(mediaAritmetica)
media(1,2,3) | 25 | 33 | 0.7 | 17 | 100 | 4.117647 | 0.647059 | 0.114286 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 0.13 | 100 | 4 | 34 | 25 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c89c0e308459fd85092bc9579bf3dd78306a1f37 | 27 | py | Python | ebl/fragmentarium/infrastructure/collections.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | null | null | null | ebl/fragmentarium/infrastructure/collections.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | null | null | null | ebl/fragmentarium/infrastructure/collections.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | null | null | null | JOINS_COLLECTION = "joins"
| 13.5 | 26 | 0.777778 | 3 | 27 | 6.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c8a759ec3f053593aaa22942ce9fbab7807f67b9 | 1,799 | py | Python | nn/loss.py | JakobHavtorn/nn | 30d37a8dd0fca0a7d9a1ed0553b2a3346dfc53e3 | [
"MIT"
] | null | null | null | nn/loss.py | JakobHavtorn/nn | 30d37a8dd0fca0a7d9a1ed0553b2a3346dfc53e3 | [
"MIT"
] | null | null | null | nn/loss.py | JakobHavtorn/nn | 30d37a8dd0fca0a7d9a1ed0553b2a3346dfc53e3 | [
"MIT"
] | null | null | null | import IPython
import numpy as np
from .module import Module
# TODO Add reduction methods somehow
class Loss(Module):
def __init__(self, reduction=None):
self.reduction = reduction
class MeanSquaredLoss(Loss):
"""Mean Squared Loss function for multiple regression.
Shapes
------
Input... | 24.643836 | 78 | 0.583102 | 239 | 1,799 | 4.25523 | 0.322176 | 0.127827 | 0.027532 | 0.058997 | 0.509341 | 0.452311 | 0.412979 | 0.412979 | 0.412979 | 0.412979 | 0 | 0.008019 | 0.306837 | 1,799 | 72 | 79 | 24.986111 | 0.807538 | 0.276265 | 0 | 0.529412 | 0 | 0 | 0.08692 | 0.073418 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.264706 | false | 0 | 0.088235 | 0.058824 | 0.617647 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c8b6095ff6998a5cc5109ea8674a94f8eb28bc95 | 419 | py | Python | clusteringnmap/bokeh_util_distinct_color.py | JohnHBrock/NMAP-Cluster | ee3eb57ebe9a70b0509a9763d1ae5f9c5461cb19 | [
"MIT"
] | 34 | 2016-08-02T14:54:53.000Z | 2018-10-24T09:17:08.000Z | clusteringnmap/bokeh_util_distinct_color.py | JohnHBrock/NMAP-Cluster | ee3eb57ebe9a70b0509a9763d1ae5f9c5461cb19 | [
"MIT"
] | 2 | 2020-07-30T14:05:27.000Z | 2021-05-29T00:30:34.000Z | clusteringnmap/bokeh_util_distinct_color.py | JohnHBrock/NMAP-Cluster | ee3eb57ebe9a70b0509a9763d1ae5f9c5461cb19 | [
"MIT"
] | 13 | 2016-08-07T06:17:56.000Z | 2018-07-20T14:36:45.000Z | import numpy as np
import colorsys
from random import random
def rgb_to_hex(rgb):
return '#%02x%02x%02x' % rgb
def hsv2rgb(h,s,v):
return tuple(i * 255 for i in colorsys.hsv_to_rgb(h,s,v))
def distinctColors(count):
max_value = 16581375 #255**3
interval = int(max_value/count)
colors = [hex(I)[2:].... | 29.928571 | 77 | 0.670644 | 74 | 419 | 3.702703 | 0.554054 | 0.087591 | 0.021898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075802 | 0.181384 | 419 | 14 | 78 | 29.928571 | 0.723032 | 0.01432 | 0 | 0 | 0 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.166667 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c8c280837277286e5c04d15f19cee6caf3d0ee2f | 351 | py | Python | tests/test_files/test_complex_signature_tests.py | lowitea/flake8-fine-pytest | 5f5b6a98abbc98e5a74c4ac8bd03890332828070 | [
"MIT"
] | 4 | 2021-01-06T02:53:06.000Z | 2022-02-24T14:11:23.000Z | tests/test_files/test_complex_signature_tests.py | lowitea/flake8-fine-pytest | 5f5b6a98abbc98e5a74c4ac8bd03890332828070 | [
"MIT"
] | 7 | 2020-05-12T06:49:25.000Z | 2022-03-05T05:03:25.000Z | tests/test_files/test_complex_signature_tests.py | lowitea/flake8-fine-pytest | 5f5b6a98abbc98e5a74c4ac8bd03890332828070 | [
"MIT"
] | 6 | 2020-06-30T14:10:33.000Z | 2020-12-21T10:19:01.000Z | import pytest
@pytest.fixture
def one(a=1, b=2, c=3, d=4):
pass
@pytest.fixture
def two():
pass
@pytest.fixture
def three():
pass
def test_with_too_complex_signature(one, two, three):
assert (2 + 2) == 4
def test_with_normal_signature(one):
assert (2 + 2) == 4
def test_with_empty_signatu... | 12.103448 | 53 | 0.635328 | 57 | 351 | 3.736842 | 0.421053 | 0.183099 | 0.225352 | 0.126761 | 0.187793 | 0.187793 | 0.187793 | 0 | 0 | 0 | 0 | 0.04797 | 0.22792 | 351 | 28 | 54 | 12.535714 | 0.738007 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 1 | 0.375 | false | 0.1875 | 0.0625 | 0 | 0.4375 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c8e1d0182b4832f68040a60e3d28fee40852306b | 271 | py | Python | 2020/utils.py | michal-jewczuk/advent-of-code | c4933bf0bc4b77d5032f8a7f2fdc385b6013c18d | [
"MIT"
] | null | null | null | 2020/utils.py | michal-jewczuk/advent-of-code | c4933bf0bc4b77d5032f8a7f2fdc385b6013c18d | [
"MIT"
] | null | null | null | 2020/utils.py | michal-jewczuk/advent-of-code | c4933bf0bc4b77d5032f8a7f2fdc385b6013c18d | [
"MIT"
] | null | null | null | OUTPUT_STRING = 'The result for {} data is: {}'
def loadStringData(input_file):
with open(input_file, "r") as f:
data = f.readlines()
return data
def loadNumericData(input_file):
data = loadStringData(input_file)
return [int(d) for d in data]
| 20.846154 | 47 | 0.664207 | 38 | 271 | 4.605263 | 0.578947 | 0.205714 | 0.262857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221402 | 271 | 12 | 48 | 22.583333 | 0.829384 | 0 | 0 | 0 | 0 | 0 | 0.110701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7403d7e1c7efcb4ebae0e6a195d8a67bbc17abb1 | 112 | py | Python | breviar/entrypoint.py | hairygeek/breviar | b563f3887c367ce6e859b69cfb2513081335969b | [
"Apache-2.0"
] | 1 | 2020-04-13T12:14:50.000Z | 2020-04-13T12:14:50.000Z | breviar/entrypoint.py | hairygeek/breviar | b563f3887c367ce6e859b69cfb2513081335969b | [
"Apache-2.0"
] | null | null | null | breviar/entrypoint.py | hairygeek/breviar | b563f3887c367ce6e859b69cfb2513081335969b | [
"Apache-2.0"
] | null | null | null | from breviar.cli import breviar
def entrypoint():
breviar()
if __name__ == '__main__':
entrypoint()
| 11.2 | 31 | 0.669643 | 12 | 112 | 5.583333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 112 | 9 | 32 | 12.444444 | 0.761364 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cdaa362fcecde139afc869c1f31a2a7dbc4bf40e | 1,242 | py | Python | tests/core/conftest.py | credmark/web3.py | e886bbd74f0974cb1895846550ef71ce3af167fc | [
"MIT"
] | null | null | null | tests/core/conftest.py | credmark/web3.py | e886bbd74f0974cb1895846550ef71ce3af167fc | [
"MIT"
] | 1 | 2021-09-12T07:29:51.000Z | 2021-09-12T07:29:51.000Z | tests/core/conftest.py | credmark/web3.py | e886bbd74f0974cb1895846550ef71ce3af167fc | [
"MIT"
] | null | null | null | import pytest
from web3.module import (
Module,
)
# --- inherit from `web3.module.Module` class --- #
@pytest.fixture(scope='module')
def module1():
class Module1(Module):
a = 'a'
@property
def b(self):
return 'b'
return Module1
@pytest.fixture(scope='module')
def ... | 15.721519 | 58 | 0.57649 | 141 | 1,242 | 5.049645 | 0.191489 | 0.146067 | 0.202247 | 0.269663 | 0.581461 | 0.581461 | 0.581461 | 0.581461 | 0.185393 | 0.185393 | 0 | 0.030612 | 0.289855 | 1,242 | 78 | 59 | 15.923077 | 0.776644 | 0.082931 | 0 | 0.415094 | 0 | 0 | 0.052074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207547 | false | 0 | 0.037736 | 0.056604 | 0.754717 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cdcb3a4889005d08a3ff5fa261e2e2784a26e100 | 139 | py | Python | Gathered CTF writeups/ptr-yudai-writeups/2019/ISITDTU_CTF_2019_Quals/acronym/extract.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:00:41.000Z | 2022-03-27T06:00:41.000Z | Gathered CTF writeups/ptr-yudai-writeups/2019/ISITDTU_CTF_2019_Quals/acronym/extract.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | null | null | null | Gathered CTF writeups/ptr-yudai-writeups/2019/ISITDTU_CTF_2019_Quals/acronym/extract.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:01:42.000Z | 2022-03-27T06:01:42.000Z | with open("output.png", "rb") as f:
f.seek(0x0084053c)
buf = b'\x89' + f.read()
with open("hoge.png", "wb") as f:
f.write(buf)
| 23.166667 | 35 | 0.561151 | 25 | 139 | 3.12 | 0.64 | 0.205128 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.208633 | 139 | 5 | 36 | 27.8 | 0.618182 | 0 | 0 | 0 | 0 | 0 | 0.18705 | 0 | 0 | 0 | 0.071942 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cdfd0f9ff1efd226781e5e93e63a3d12af11e6c3 | 64 | py | Python | content/TDD/code-snippets-1-init/impl.py | rvprasad/software-testing-course | 3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0 | [
"CC-BY-4.0"
] | 11 | 2018-02-08T05:23:28.000Z | 2021-05-24T13:23:56.000Z | content/TDD/code-snippets-1-init/impl.py | rvprasad/software-testing-course | 3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0 | [
"CC-BY-4.0"
] | null | null | null | content/TDD/code-snippets-1-init/impl.py | rvprasad/software-testing-course | 3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0 | [
"CC-BY-4.0"
] | 2 | 2020-09-15T08:51:22.000Z | 2021-01-26T12:07:18.000Z | def type_of_triangle(x, y, z):
raise NotImplementedError()
| 16 | 31 | 0.71875 | 9 | 64 | 4.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 64 | 3 | 32 | 21.333333 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a8127935363c6274981a4b897b7ded8894c4a762 | 1,291 | py | Python | problems/tree/Solution310.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/tree/Solution310.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/tree/Solution310.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """ A tree is an undirected graph in which any two vertices are connected by
exactly one path. In other words, any connected graph without simple cycles
is a tree. Given a tree of n nodes labelled from 0 to n - 1, and an array of
n - 1 edges where edges[i] = [ai, bi] indicates that there is an undirected
... | 44.517241 | 79 | 0.718823 | 233 | 1,291 | 3.982833 | 0.454936 | 0.021552 | 0.030172 | 0.025862 | 0.060345 | 0.060345 | 0 | 0 | 0 | 0 | 0 | 0.006148 | 0.243997 | 1,291 | 28 | 80 | 46.107143 | 0.944672 | 0.914795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a82eb302023dda846604c774d29096cd3521465a | 7,416 | py | Python | src/main.py | J-A-St/moc_retrofit_ga_de | ddb5a6b04c8a354399693fac40a667f43b7bb577 | [
"Apache-2.0"
] | null | null | null | src/main.py | J-A-St/moc_retrofit_ga_de | ddb5a6b04c8a354399693fac40a667f43b7bb577 | [
"Apache-2.0"
] | null | null | null | src/main.py | J-A-St/moc_retrofit_ga_de | ddb5a6b04c8a354399693fac40a667f43b7bb577 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import code
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from read_data.read_case_study_data import CaseStudy
from read_data.read_algorithm_parameter import AlgorithmParameter
from algorithm.genetic_algorithm import GeneticAlgorithm
from heat_exchanger_network.heat_exchange... | 55.759398 | 226 | 0.664779 | 846 | 7,416 | 5.574468 | 0.177305 | 0.107506 | 0.165394 | 0.110687 | 0.741942 | 0.73134 | 0.73134 | 0.695081 | 0.695081 | 0.672604 | 0 | 0.019424 | 0.236381 | 7,416 | 132 | 227 | 56.181818 | 0.81335 | 0 | 0 | 0.650794 | 0 | 0.039683 | 0.148193 | 0.004585 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007937 | false | 0.031746 | 0.079365 | 0 | 0.087302 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
a83483fba72649bb60f0bbe5a00230c4d3b7e91c | 1,611 | py | Python | lispy/parser.py | matheusbsilva/lispy | e1efd1087d7cba2aa976920ced01acf397abb8f6 | [
"MIT"
] | null | null | null | lispy/parser.py | matheusbsilva/lispy | e1efd1087d7cba2aa976920ced01acf397abb8f6 | [
"MIT"
] | null | null | null | lispy/parser.py | matheusbsilva/lispy | e1efd1087d7cba2aa976920ced01acf397abb8f6 | [
"MIT"
] | null | null | null | from lark import Lark, InlineTransformer
from pathlib import Path
from .runtime import Symbol
class LispTransformer(InlineTransformer):
def start(self, *args):
return [Symbol.BEGIN, *args]
def number(self, token):
return float(token)
def boolean(self, value):
if(value == '#t'):... | 22.690141 | 75 | 0.606456 | 196 | 1,611 | 4.923469 | 0.382653 | 0.087047 | 0.033161 | 0.037306 | 0.049741 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000856 | 0.274984 | 1,611 | 71 | 76 | 22.690141 | 0.825342 | 0.066418 | 0 | 0 | 0 | 0 | 0.013569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.325581 | false | 0 | 0.069767 | 0.209302 | 0.790698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b553482297c4345eefbc17a9497ca1edbaccda33 | 216 | py | Python | fatorVelocidade.py | ZaqueuCavalcante/Gears | 8a4cf7fb4c5d145c8ae9424f9eb9608596edf15e | [
"MIT"
] | null | null | null | fatorVelocidade.py | ZaqueuCavalcante/Gears | 8a4cf7fb4c5d145c8ae9424f9eb9608596edf15e | [
"MIT"
] | null | null | null | fatorVelocidade.py | ZaqueuCavalcante/Gears | 8a4cf7fb4c5d145c8ae9424f9eb9608596edf15e | [
"MIT"
] | null | null | null | from math import exp
def fatorVelocidade(V_S: float):
if (V_S < 700):
return 0.659*exp(-0.0011*V_S)
if (V_S >= 700 and V_S <= 3000):
return 13.31*V_S**(-0.571)
return 65.52*V_S**(-0.774)
| 24 | 37 | 0.574074 | 43 | 216 | 2.72093 | 0.534884 | 0.119658 | 0.068376 | 0.119658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216049 | 0.25 | 216 | 8 | 38 | 27 | 0.506173 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b56af663a64a565caad4e005eb7047dd369f86f5 | 227 | py | Python | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/urls.py | Saymmic/cookiecutter-django | 4f32f1c096a842ff872728f5035a8092a16426d5 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/urls.py | Saymmic/cookiecutter-django | 4f32f1c096a842ff872728f5035a8092a16426d5 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/urls.py | Saymmic/cookiecutter-django | 4f32f1c096a842ff872728f5035a8092a16426d5 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework.routers import SimpleRouter
from {{ cookiecutter.project_slug }}.users.views import UserViewSet
router = SimpleRouter()
router.register("users", UserViewSet)
app_name = "users"
urlpatterns = router.urls
| 20.636364 | 67 | 0.792952 | 26 | 227 | 6.807692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110132 | 227 | 10 | 68 | 22.7 | 0.876238 | 0 | 0 | 0 | 0 | 0 | 0.044053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b5739382ccb1aa75ed3e0bde62009f40a72f52d5 | 371 | py | Python | Main/Food/templatetags/custom_tags.py | 310224954/Fitapplication | c9169ad410be6c36fa37acedf604ec6a9f2eed6a | [
"bzip2-1.0.6"
] | null | null | null | Main/Food/templatetags/custom_tags.py | 310224954/Fitapplication | c9169ad410be6c36fa37acedf604ec6a9f2eed6a | [
"bzip2-1.0.6"
] | null | null | null | Main/Food/templatetags/custom_tags.py | 310224954/Fitapplication | c9169ad410be6c36fa37acedf604ec6a9f2eed6a | [
"bzip2-1.0.6"
] | null | null | null | from django import template
register = template.Library()
@register.filter
def index(self_list, list_index):
if type(self_list) == list and len(self_list) > list_index:
return self_list[list_index]
elif type(self_list) != list:
return "First argument has to be a list."
elif len(self_list) <= list_index :
re... | 21.823529 | 60 | 0.738544 | 58 | 371 | 4.551724 | 0.482759 | 0.181818 | 0.272727 | 0.257576 | 0.19697 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16442 | 371 | 16 | 61 | 23.1875 | 0.851613 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
b58b64c4632e4012ec261f3021b38eb5c25df7d6 | 1,780 | py | Python | modules/unipath.py | rmkarasev/fb2mobi | 3b5f623f7dc980ee002fada67c2f87c26d21bfe4 | [
"MIT"
] | 103 | 2015-05-15T15:07:49.000Z | 2022-03-23T04:12:45.000Z | modules/unipath.py | rmkarasev/fb2mobi | 3b5f623f7dc980ee002fada67c2f87c26d21bfe4 | [
"MIT"
] | 22 | 2015-06-30T13:44:32.000Z | 2020-03-15T00:48:20.000Z | modules/unipath.py | rmkarasev/fb2mobi | 3b5f623f7dc980ee002fada67c2f87c26d21bfe4 | [
"MIT"
] | 16 | 2016-05-01T21:48:35.000Z | 2022-03-21T09:29:23.000Z | # -*- coding: utf-8 -*-
# borrowed from https://github.com/kevinhendricks/KindleUnpack and modified
from __future__ import unicode_literals, division, absolute_import, print_function
from .compatibility_utils import PY2, text_type, binary_type
import sys
import os
# utility routines to convert all paths to be full u... | 25.428571 | 109 | 0.67191 | 260 | 1,780 | 4.553846 | 0.384615 | 0.054054 | 0.050676 | 0.032939 | 0.047297 | 0.047297 | 0.047297 | 0 | 0 | 0 | 0 | 0.003644 | 0.229213 | 1,780 | 69 | 110 | 25.797101 | 0.859329 | 0.282584 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.021739 | 0.086957 | 0.130435 | 0.608696 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a939e9f54ccbdb7ef1d1c0b1db179c9c6315da01 | 116 | py | Python | surround/django/apps.py | sniegu/django-surround | e076ec92a6611a056899f3f4f74a24e676dafb5c | [
"MIT"
] | 1 | 2016-07-29T13:10:40.000Z | 2016-07-29T13:10:40.000Z | surround/django/apps.py | sniegu/django-surround | e076ec92a6611a056899f3f4f74a24e676dafb5c | [
"MIT"
] | null | null | null | surround/django/apps.py | sniegu/django-surround | e076ec92a6611a056899f3f4f74a24e676dafb5c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjangoConfig(AppConfig):
name = 'django'
label = 'surround_django'
| 19.333333 | 33 | 0.732759 | 13 | 116 | 6.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181034 | 116 | 5 | 34 | 23.2 | 0.884211 | 0 | 0 | 0 | 0 | 0 | 0.181034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a9891091808b48610a9c78c02579953f14c648c5 | 66 | py | Python | pymterm/cap/orig_pair.py | stonewell/pymterm | af36656d5f7fb008533178d14b00d83d72ba00cf | [
"MIT"
] | 102 | 2016-07-21T06:39:02.000Z | 2022-03-09T19:34:03.000Z | pysrc/libs/cap/orig_pair.py | stonewell/wxglterm | 27480ed01e2832e98785b517ac17037a71cefe7c | [
"MIT"
] | 9 | 2017-12-04T15:55:51.000Z | 2019-11-01T13:08:21.000Z | pysrc/libs/cap/orig_pair.py | stonewell/wxglterm | 27480ed01e2832e98785b517ac17037a71cefe7c | [
"MIT"
] | 5 | 2018-09-02T07:35:13.000Z | 2019-12-29T08:36:37.000Z |
def handle(term, context, cap_turple):
term.origin_pair()
| 16.5 | 39 | 0.681818 | 9 | 66 | 4.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 66 | 3 | 40 | 22 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a990559b759c1c8ff400a164b7ca912fdbcbb31d | 101 | py | Python | asnets/experiments/actprop_3l_h_add_no_lmcut.py | xf1590281/ASNets | 5f4b29fb62a5e72004b813228442d06246c9ec33 | [
"MIT"
] | 21 | 2017-12-05T13:27:36.000Z | 2021-11-16T20:32:33.000Z | asnets/experiments/actprop_3l_h_add_no_lmcut.py | xf1590281/ASNets | 5f4b29fb62a5e72004b813228442d06246c9ec33 | [
"MIT"
] | 2 | 2018-07-16T12:15:46.000Z | 2020-10-31T00:02:49.000Z | asnets/experiments/actprop_3l_h_add_no_lmcut.py | xf1590281/ASNets | 5f4b29fb62a5e72004b813228442d06246c9ec33 | [
"MIT"
] | 7 | 2018-03-19T13:45:13.000Z | 2022-03-24T07:52:20.000Z | """For monster problem."""
from .actprop_3l_h_add import * # noqa F401
USE_LMCUT_FEATURES = False
| 16.833333 | 44 | 0.732673 | 15 | 101 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.158416 | 101 | 5 | 45 | 20.2 | 0.764706 | 0.306931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8d3474e89fd424373063573d6641f4b421260959 | 20,521 | py | Python | tests/license/test_license.py | kneedeepio/python-license-library | 0ae1b3d1fc68606f43022ea0da73d3898482c22c | [
"BSD-2-Clause"
] | null | null | null | tests/license/test_license.py | kneedeepio/python-license-library | 0ae1b3d1fc68606f43022ea0da73d3898482c22c | [
"BSD-2-Clause"
] | null | null | null | tests/license/test_license.py | kneedeepio/python-license-library | 0ae1b3d1fc68606f43022ea0da73d3898482c22c | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
### IMPORTS ###
#import json
import logging
import random
import string
import unittest
import uuid
from datetime import datetime
import kneedeepio.license
from kneedeepio.license.exceptions import \
InvalidAssigneeException, \
InvalidContentException, \
InvalidExpiryDateException... | 44.036481 | 271 | 0.681741 | 2,437 | 20,521 | 5.461633 | 0.082068 | 0.037866 | 0.038918 | 0.058377 | 0.845154 | 0.812171 | 0.750488 | 0.698197 | 0.633884 | 0.572201 | 0 | 0.062782 | 0.212173 | 20,521 | 465 | 272 | 44.131183 | 0.7605 | 0.115979 | 0 | 0.51676 | 0 | 0.005587 | 0.20533 | 0.075184 | 0 | 0 | 0 | 0 | 0.231844 | 1 | 0.092179 | false | 0 | 0.044693 | 0 | 0.139665 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d3f5732c75b6c6a24d298103d21371096f5a8c0 | 109 | py | Python | simplads/simplad_monad/delta_type.py | Cogmob/simplads | 8731c4a02273109187cfe601058ce797e32ba1ae | [
"MIT"
] | null | null | null | simplads/simplad_monad/delta_type.py | Cogmob/simplads | 8731c4a02273109187cfe601058ce797e32ba1ae | [
"MIT"
] | null | null | null | simplads/simplad_monad/delta_type.py | Cogmob/simplads | 8731c4a02273109187cfe601058ce797e32ba1ae | [
"MIT"
] | null | null | null | from enum import Enum
class DeltaType(Enum):
default = 1
configured = 2
finish = 3
list = 4
| 13.625 | 22 | 0.614679 | 15 | 109 | 4.466667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.321101 | 109 | 7 | 23 | 15.571429 | 0.851351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8d43f5d269c1976b0f96f75ace000f8906ecedce | 135 | py | Python | DKT/urls/oj.py | bnc1010/OnlineJudge | 23a6a56383fd37f3f5f2351ee089ead3af611422 | [
"MIT"
] | null | null | null | DKT/urls/oj.py | bnc1010/OnlineJudge | 23a6a56383fd37f3f5f2351ee089ead3af611422 | [
"MIT"
] | null | null | null | DKT/urls/oj.py | bnc1010/OnlineJudge | 23a6a56383fd37f3f5f2351ee089ead3af611422 | [
"MIT"
] | 1 | 2020-10-19T09:59:24.000Z | 2020-10-19T09:59:24.000Z | from django.conf.urls import url
from DKT.app import DktAPI
urlpatterns = [
url(r"^dkt/?$", DktAPI.as_view(), name="dkt_api"),
]
| 16.875 | 54 | 0.674074 | 21 | 135 | 4.238095 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 135 | 7 | 55 | 19.285714 | 0.780702 | 0 | 0 | 0 | 0 | 0 | 0.103704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8d4e41af623c19bea92f1bbe879630a14791d2ee | 445 | py | Python | tests/TestBasic.py | businka/Bubot_WebServer | 75c2391624e07705dd52d7e4556cd92cc00d0d2e | [
"MIT"
] | null | null | null | tests/TestBasic.py | businka/Bubot_WebServer | 75c2391624e07705dd52d7e4556cd92cc00d0d2e | [
"MIT"
] | 2 | 2020-07-17T08:41:39.000Z | 2020-07-17T08:50:33.000Z | tests/TestBasic.py | businka/Bubot_WebServer | 75c2391624e07705dd52d7e4556cd92cc00d0d2e | [
"MIT"
] | null | null | null | import unittest
from BubotObj.OcfDevice.subtype.WebServer.WebServer import WebServer as Device
import logging
from Bubot.Core.TestHelper import async_test, wait_run_device, get_config_path
class TestBasic(unittest.TestCase):
@async_test
def setUp(self):
logging.basicConfig(level=logging.DEBUG)
... | 26.176471 | 78 | 0.74382 | 58 | 445 | 5.5 | 0.586207 | 0.08464 | 0.075235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002762 | 0.186517 | 445 | 16 | 79 | 27.8125 | 0.878453 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
8d816875bb327c54821d9c462376fd1608090f89 | 175 | py | Python | src/main/python/log/logconfiggen_setup.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/log/logconfiggen_setup.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | src/main/python/log/logconfiggen_setup.py | emilybache/texttest-runner | 2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
import os
os.chdir("../lib")
setup(name='logconfiggen',
version='0.1',
py_modules=["logconfiggen"]
)
| 17.5 | 33 | 0.645714 | 23 | 175 | 4.869565 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.182857 | 175 | 9 | 34 | 19.444444 | 0.769231 | 0.114286 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8d87c186a026ca066b31e38617920da18570c9cd | 146 | py | Python | output/models/saxon_data/cta/cta0019_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/saxon_data/cta/cta0019_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/saxon_data/cta/cta0019_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.saxon_data.cta.cta0019_xsd.cta0019 import (
Doc,
Event,
When,
)
__all__ = [
"Doc",
"Event",
"When",
]
| 12.166667 | 62 | 0.575342 | 17 | 146 | 4.588235 | 0.764706 | 0.205128 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0.273973 | 146 | 11 | 63 | 13.272727 | 0.660377 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8da06ff27b76e797781b795430d6e2412a5364dd | 2,668 | py | Python | chameleond/devices/chameleon_device.py | emersion/chameleon | 8d940f9a68d0800576f427a61077e08f390146b7 | [
"BSD-3-Clause"
] | 1 | 2019-09-26T11:07:17.000Z | 2019-09-26T11:07:17.000Z | chameleond/devices/chameleon_device.py | emersion/chameleon | 8d940f9a68d0800576f427a61077e08f390146b7 | [
"BSD-3-Clause"
] | null | null | null | chameleond/devices/chameleon_device.py | emersion/chameleon | 8d940f9a68d0800576f427a61077e08f390146b7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Chameleon device's basic class.."""
import chameleon_common # pylint: disable=W0611
class ChameleonDevice(object):
"""A basic class of chameleon d... | 30.666667 | 79 | 0.707646 | 349 | 2,668 | 5.323782 | 0.398281 | 0.064586 | 0.037675 | 0.025834 | 0.100108 | 0.074273 | 0.041981 | 0.041981 | 0 | 0 | 0 | 0.004662 | 0.196027 | 2,668 | 86 | 80 | 31.023256 | 0.861538 | 0.547226 | 0 | 0 | 0 | 0 | 0.068015 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.393939 | false | 0.030303 | 0.030303 | 0 | 0.575758 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a5ff485ddbe8d3acd862e61f0826d224eb409d07 | 291 | py | Python | echovr_api/geometry/vector3d.py | egret85/echovr-api | e135f25fb5b188e2931133d04c47c5e66e83a6c5 | [
"MIT"
] | 7 | 2018-11-02T18:12:18.000Z | 2021-03-08T10:47:59.000Z | echovr_api/geometry/vector3d.py | egret85/echovr-api | e135f25fb5b188e2931133d04c47c5e66e83a6c5 | [
"MIT"
] | null | null | null | echovr_api/geometry/vector3d.py | egret85/echovr-api | e135f25fb5b188e2931133d04c47c5e66e83a6c5 | [
"MIT"
] | 4 | 2018-11-02T18:12:08.000Z | 2020-06-19T19:42:39.000Z | class Vector3D():
"""Represents a vector in 3D space
:param x: The x coordinate of the vector
:param y: The y coordinate of the vector
:param z: The z coordinate of the vector
"""
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
| 24.25 | 44 | 0.57732 | 47 | 291 | 3.489362 | 0.382979 | 0.219512 | 0.27439 | 0.384146 | 0.317073 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.329897 | 291 | 11 | 45 | 26.454545 | 0.830769 | 0.532646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
570de6debabd4d1b961025338f99f550a6eb6178 | 726 | py | Python | module4-acid-and-database-scalability-tradeoffs/titanic_queries.py | joshdsolis/DS-Unit-3-Sprint-2-SQL-and-Databases | b5f26f43fe99b93b2884da0ce813f4467fbb506d | [
"MIT"
] | null | null | null | module4-acid-and-database-scalability-tradeoffs/titanic_queries.py | joshdsolis/DS-Unit-3-Sprint-2-SQL-and-Databases | b5f26f43fe99b93b2884da0ce813f4467fbb506d | [
"MIT"
] | null | null | null | module4-acid-and-database-scalability-tradeoffs/titanic_queries.py | joshdsolis/DS-Unit-3-Sprint-2-SQL-and-Databases | b5f26f43fe99b93b2884da0ce813f4467fbb506d | [
"MIT"
] | null | null | null | #!/usr/bin/env/ python
import psycopg2 as pg
dbname = 'hplkjeta'
user ='hplkjeta'
password='oZIHUw7MLlfv7STG_kigAzstwcYwUE2z'
host = 'stampy.db.elephantsql.com'
pg_conn = pg.connect(dbname=dbname, user=user,
password=password, host=host)
pg_curs = pg_conn.cursor()
surv_died_query = """ SELEC... | 17.285714 | 50 | 0.694215 | 111 | 726 | 4.414414 | 0.351351 | 0.112245 | 0.153061 | 0.234694 | 0.440816 | 0.440816 | 0.440816 | 0.440816 | 0.440816 | 0.17551 | 0 | 0.02862 | 0.181818 | 726 | 41 | 51 | 17.707317 | 0.796296 | 0.028926 | 0 | 0.30303 | 0 | 0 | 0.642045 | 0.080966 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060606 | 0.030303 | 0 | 0.030303 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
571fba576aebc51e4406f7acd19130cc2a87497a | 297 | py | Python | src/utils/__init__.py | alexchueshev/icsme2020 | 05a1e2cb52eee8d810e5ff8820fbd78937973620 | [
"MIT"
] | null | null | null | src/utils/__init__.py | alexchueshev/icsme2020 | 05a1e2cb52eee8d810e5ff8820fbd78937973620 | [
"MIT"
] | null | null | null | src/utils/__init__.py | alexchueshev/icsme2020 | 05a1e2cb52eee8d810e5ff8820fbd78937973620 | [
"MIT"
] | 1 | 2020-08-27T12:05:54.000Z | 2020-08-27T12:05:54.000Z | from .io import save_pickle
from .io import save_csv
from .io import load_pickle
from .io import save_json
from .io import read_csv
from .pd import to_list_of_strings
__all__ = [
'save_pickle',
'save_csv',
'load_pickle',
'save_json',
'read_csv',
'to_list_of_strings',
]
| 16.5 | 34 | 0.703704 | 47 | 297 | 4.021277 | 0.319149 | 0.15873 | 0.31746 | 0.253968 | 0.232804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205387 | 297 | 17 | 35 | 17.470588 | 0.800847 | 0 | 0 | 0 | 0 | 0 | 0.218855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
572f8b8aba3e3a4f5f2af8d39561879595b0320e | 232 | py | Python | anaf/events/admin.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 2 | 2016-03-15T13:17:26.000Z | 2017-03-22T15:39:01.000Z | anaf/events/admin.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T21:42:58.000Z | 2022-03-11T23:13:07.000Z | anaf/events/admin.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 4 | 2016-08-31T16:55:41.000Z | 2020-04-22T18:48:54.000Z | """
Events: admin page
"""
from models import Event
from django.contrib import admin
class EventAdmin(admin.ModelAdmin):
""" Event admin """
list_display = ('name', 'start', 'end')
admin.site.register(Event, EventAdmin)
| 16.571429 | 43 | 0.689655 | 28 | 232 | 5.678571 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163793 | 232 | 13 | 44 | 17.846154 | 0.819588 | 0.133621 | 0 | 0 | 0 | 0 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
574567784025ded334f5a8054fa89f546fd0a5db | 161 | py | Python | src/package_a/test_module_a.py | ynouri/monorepo | a40c42da3eaf9c276006be73666b1d0ab2396620 | [
"MIT"
] | null | null | null | src/package_a/test_module_a.py | ynouri/monorepo | a40c42da3eaf9c276006be73666b1d0ab2396620 | [
"MIT"
] | null | null | null | src/package_a/test_module_a.py | ynouri/monorepo | a40c42da3eaf9c276006be73666b1d0ab2396620 | [
"MIT"
] | null | null | null | from package_a.module_a import Something
def test_something():
something = Something()
something2 = Something()
assert something is not something2
| 20.125 | 40 | 0.745342 | 19 | 161 | 6.157895 | 0.631579 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.192547 | 161 | 7 | 41 | 23 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
57483e17c43cf97322b0f4930e9f95f55facf446 | 73 | py | Python | vedastr/dataloaders/registry.py | csmasters/vedastr | 7513384ab503f15dc574c7d92b75ff2092354757 | [
"Apache-2.0"
] | 475 | 2020-03-17T01:46:32.000Z | 2022-03-29T23:30:15.000Z | vedastr/dataloaders/registry.py | csmasters/vedastr | 7513384ab503f15dc574c7d92b75ff2092354757 | [
"Apache-2.0"
] | 71 | 2020-04-01T04:17:47.000Z | 2021-11-18T06:55:14.000Z | vedastr/dataloaders/registry.py | csmasters/vedastr | 7513384ab503f15dc574c7d92b75ff2092354757 | [
"Apache-2.0"
] | 108 | 2020-02-21T10:30:37.000Z | 2022-03-21T12:03:30.000Z | from vedastr.utils import Registry
DATALOADERS = Registry('dataloader')
| 18.25 | 36 | 0.808219 | 8 | 73 | 7.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 73 | 3 | 37 | 24.333333 | 0.907692 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5759ffddd8406bb67837a82a7a5c8704080f6409 | 34 | py | Python | common/__init__.py | wujianguo/bsphelper | 88ab723fe1a4f159a3354d21866fbfc655282146 | [
"MIT"
] | 3 | 2016-11-22T02:46:45.000Z | 2021-09-13T14:39:28.000Z | common/__init__.py | stableShip/staticTool | 88afd67bfb5f15e247962b237fd6f2cbf47bf3f2 | [
"MIT"
] | null | null | null | common/__init__.py | stableShip/staticTool | 88afd67bfb5f15e247962b237fd6f2cbf47bf3f2 | [
"MIT"
] | null | null | null | # coding=utf-8
__author__ = 'JIE'
| 11.333333 | 18 | 0.676471 | 5 | 34 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.147059 | 34 | 2 | 19 | 17 | 0.62069 | 0.352941 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
939c68a6029fcf8263f674adf3ad14c82de85fae | 537 | py | Python | tests/test_summary_scores_util.py | sibis-platform/sibispy | d5077f82490e2e6965ca37b01610f5af92f229d7 | [
"BSD-3-Clause"
] | 2 | 2021-02-24T15:39:05.000Z | 2021-12-13T23:06:44.000Z | tests/test_summary_scores_util.py | sibis-platform/sibispy | d5077f82490e2e6965ca37b01610f5af92f229d7 | [
"BSD-3-Clause"
] | 46 | 2017-05-16T01:49:03.000Z | 2021-12-15T20:06:44.000Z | tests/test_summary_scores_util.py | sibis-platform/sibispy | d5077f82490e2e6965ca37b01610f5af92f229d7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import pytest
import sibispy
from sibispy.summary_scores_util import SummaryScoresCollector
from sibispy import sibislogger as slog
from .utils import get_session, get_test_config
@pytest.fixture
def session(config_file):
return get_session(config_file)
@pytest.fixture... | 24.409091 | 74 | 0.834264 | 76 | 537 | 5.578947 | 0.434211 | 0.091981 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100559 | 537 | 22 | 74 | 24.409091 | 0.877847 | 0.037244 | 0 | 0.133333 | 0 | 0 | 0.081238 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.466667 | 0.133333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
939fc537c08ebb3192134979c0d12c25b7b53dd8 | 2,737 | py | Python | tools/utils.py | cryspen/hacl | 402d94752bd47e8ed3bd9a142b311d574a264e91 | [
"Apache-2.0"
] | null | null | null | tools/utils.py | cryspen/hacl | 402d94752bd47e8ed3bd9a142b311d574a264e91 | [
"Apache-2.0"
] | 7 | 2022-02-24T06:24:12.000Z | 2022-03-31T14:48:48.000Z | tools/utils.py | cryspen/hacl | 402d94752bd47e8ed3bd9a142b311d574a264e91 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Cryspen Sarl
#
# Licensed under the Apache License, Version 2.0 or MIT.
# * http://www.apache.org/licenses/LICENSE-2.0
# * http://opensource.org/licenses/MIT
from argparse import ArgumentParser, RawTextHelpFormatter
import os
from os.path import join
import subprocess
from pathlib import P... | 24.881818 | 90 | 0.662039 | 358 | 2,737 | 4.921788 | 0.410615 | 0.040863 | 0.047673 | 0.054484 | 0.08286 | 0.070375 | 0.038593 | 0 | 0 | 0 | 0 | 0.007336 | 0.203142 | 2,737 | 109 | 91 | 25.110092 | 0.80055 | 0.212276 | 0 | 0.033333 | 0 | 0 | 0.11629 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0.25 | false | 0 | 0.1 | 0.133333 | 0.533333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
93a087788c30171486290291f6421425f7c25039 | 463 | py | Python | codenode/backend/_settings.py | deldotdr/codenode | 90e615dc1300cc0e4ca696bb5a12442a66cd969d | [
"BSD-3-Clause"
] | 14 | 2015-01-16T11:15:29.000Z | 2021-08-28T09:35:57.000Z | codenode/backend/_settings.py | deldotdr/codenode | 90e615dc1300cc0e4ca696bb5a12442a66cd969d | [
"BSD-3-Clause"
] | 2 | 2015-10-22T16:35:18.000Z | 2017-06-20T07:43:31.000Z | codenode/backend/_settings.py | deldotdr/codenode | 90e615dc1300cc0e4ca696bb5a12442a66cd969d | [
"BSD-3-Clause"
] | 3 | 2017-08-20T13:02:47.000Z | 2020-10-01T07:22:09.000Z | """Backend Kernel Server related settings
These settings are entirely independent of the frontend/django app server.
The backend may eventually support a django powered admin web interface.
"""
import os
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
#Interface and port to listen on
HOST = 'localhost'
POR... | 22.047619 | 74 | 0.75378 | 66 | 463 | 5.181818 | 0.712121 | 0.070175 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.153348 | 463 | 20 | 75 | 23.15 | 0.862245 | 0.190065 | 0 | 0 | 0 | 0 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.125 | 0.375 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
93bb80669330d5e703f8915b1ce9a82687e9715f | 2,974 | py | Python | packet.py | eliecher/flow_control_mechanisms | 6bc243ef8c124b4357017a6089fcb52d2e65e4d4 | [
"CC0-1.0"
] | null | null | null | packet.py | eliecher/flow_control_mechanisms | 6bc243ef8c124b4357017a6089fcb52d2e65e4d4 | [
"CC0-1.0"
] | null | null | null | packet.py | eliecher/flow_control_mechanisms | 6bc243ef8c124b4357017a6089fcb52d2e65e4d4 | [
"CC0-1.0"
] | null | null | null | #! /bin/python3
from functools import partial
from enum import Enum
from time import time, time_ns
from bitstring import BitArray, ConstBitArray, pack
crc_32_div = BitArray("0b100000100110000010001110110110111")
crc_16_div = BitArray("0b11000000000000101")
def CRC_16(data: BitArray):
syndrome = BitArray(17)
... | 23.234375 | 82 | 0.66308 | 431 | 2,974 | 4.49884 | 0.208817 | 0.055699 | 0.034038 | 0.043321 | 0.235689 | 0.220217 | 0.169675 | 0.094894 | 0.094894 | 0.058793 | 0 | 0.080474 | 0.20612 | 2,974 | 127 | 83 | 23.417323 | 0.740788 | 0.004707 | 0 | 0.119048 | 0 | 0 | 0.019263 | 0.011828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22619 | false | 0 | 0.047619 | 0.130952 | 0.595238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
93ddc0304205de941a4d3e006b69b3677631667e | 588 | py | Python | backtracking/all_subsequences.py | sjtuliuck/Python | 3b531848efaed7598f3ff47d2b7039c53b278c7a | [
"MIT"
] | null | null | null | backtracking/all_subsequences.py | sjtuliuck/Python | 3b531848efaed7598f3ff47d2b7039c53b278c7a | [
"MIT"
] | null | null | null | backtracking/all_subsequences.py | sjtuliuck/Python | 3b531848efaed7598f3ff47d2b7039c53b278c7a | [
"MIT"
] | 1 | 2020-11-25T09:14:45.000Z | 2020-11-25T09:14:45.000Z | # pass
def generate_all_subsequences(sequence):
create_state_space_tree(sequence, [], 0)
def create_state_space_tree(sequence, current_subsequence, index):
if index == len(sequence):
print(current_subsequence)
return
create_state_space_tree(sequence, current_subsequence, index + 1)
c... | 26.727273 | 69 | 0.746599 | 72 | 588 | 5.763889 | 0.375 | 0.260241 | 0.154217 | 0.192771 | 0.527711 | 0.460241 | 0.460241 | 0.460241 | 0.337349 | 0.337349 | 0 | 0.014 | 0.14966 | 588 | 21 | 70 | 28 | 0.816 | 0.006803 | 0 | 0.285714 | 1 | 0 | 0.005155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
93e47a84fa3303b190e42e879d65b90657c40b4c | 1,011 | py | Python | tests/type_annotations/test_type_annotation.py | pyto86pri/mypy_boto3_builder | e8132dc4632430e0abd4cd330af51a8b1c82028f | [
"MIT"
] | 258 | 2020-01-24T09:49:05.000Z | 2022-03-31T14:58:30.000Z | tests/type_annotations/test_type_annotation.py | pyto86pri/mypy_boto3_builder | e8132dc4632430e0abd4cd330af51a8b1c82028f | [
"MIT"
] | 131 | 2020-02-12T16:03:36.000Z | 2022-03-31T18:24:29.000Z | tests/type_annotations/test_type_annotation.py | pyto86pri/mypy_boto3_builder | e8132dc4632430e0abd4cd330af51a8b1c82028f | [
"MIT"
] | 21 | 2020-06-05T12:48:17.000Z | 2022-02-13T06:07:54.000Z | from typing import Dict
import pytest
from mypy_boto3_builder.type_annotations.type_annotation import TypeAnnotation
class TestTypeAnnotation:
def setup_method(self) -> None:
self.dict = TypeAnnotation(Dict)
def test_init(self) -> None:
assert self.dict.wrapped_type == Dict
assert h... | 27.324324 | 82 | 0.664688 | 123 | 1,011 | 5.276423 | 0.268293 | 0.11094 | 0.107858 | 0.138675 | 0.371341 | 0.231125 | 0.095532 | 0 | 0 | 0 | 0 | 0.00129 | 0.233432 | 1,011 | 36 | 83 | 28.083333 | 0.836129 | 0 | 0 | 0.125 | 0 | 0 | 0.030663 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.333333 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
93e8ad5428def481439663cbb9bcbca6d3700742 | 122 | py | Python | app_name/signals/__init__.py | Mohammad-Kabajah/django_project | 6598668dbc4f8d777ccf716464d259c49d881cd8 | [
"Apache-2.0"
] | null | null | null | app_name/signals/__init__.py | Mohammad-Kabajah/django_project | 6598668dbc4f8d777ccf716464d259c49d881cd8 | [
"Apache-2.0"
] | null | null | null | app_name/signals/__init__.py | Mohammad-Kabajah/django_project | 6598668dbc4f8d777ccf716464d259c49d881cd8 | [
"Apache-2.0"
] | null | null | null | # register all signals
from django.dispatch import Signal
# test
dummy_signal = Signal(providing_args=['param1'])
| 17.428571 | 49 | 0.737705 | 15 | 122 | 5.866667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.172131 | 122 | 6 | 50 | 20.333333 | 0.861386 | 0.204918 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9e1f565da008ad18aab31c431a7f43b1e9bdf032 | 99 | py | Python | src/main/python/cobra/mit/__init__.py | tm0nk/cobra-j | daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b | [
"Apache-2.0"
] | null | null | null | src/main/python/cobra/mit/__init__.py | tm0nk/cobra-j | daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b | [
"Apache-2.0"
] | null | null | null | src/main/python/cobra/mit/__init__.py | tm0nk/cobra-j | daeb85250e63cb21e9c02ecc2acfdf8ba1e44d6b | [
"Apache-2.0"
] | null | null | null | from ._loader import ClassLoader
from ._mit import Mit
__all__ = [
'ClassLoader',
'Mit'
]
| 12.375 | 32 | 0.666667 | 11 | 99 | 5.454545 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232323 | 99 | 7 | 33 | 14.142857 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f50bca5a46d72b7940fb79b942736505cfd291f3 | 674 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/EXT/shadow_funcs.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/EXT/shadow_funcs.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/EXT/shadow_funcs.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension EXT.shadow_funcs
This module customises the behaviour of the
OpenGL.raw.GL.EXT.shadow_funcs to provide a more
Python-friendly API
Overview (from the spec)
This extension generalizes the GL_ARB_shadow extension to support all
eight binary texture comparison functions rather than just GL_LEQUA... | 32.095238 | 70 | 0.813056 | 102 | 674 | 5.294118 | 0.598039 | 0.066667 | 0.103704 | 0.051852 | 0.092593 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12908 | 674 | 21 | 71 | 32.095238 | 0.919932 | 0.755193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f5262b2a74a17f9ade7a0e2aed327dda1957da2e | 836 | py | Python | logictensornetworks/keras/base_ltn_layer.py | thadumi/logictensornetworks-keras | def3a01f752bc3c5744043bdb9a0a113da12815a | [
"MIT"
] | null | null | null | logictensornetworks/keras/base_ltn_layer.py | thadumi/logictensornetworks-keras | def3a01f752bc3c5744043bdb9a0a113da12815a | [
"MIT"
] | null | null | null | logictensornetworks/keras/base_ltn_layer.py | thadumi/logictensornetworks-keras | def3a01f752bc3c5744043bdb9a0a113da12815a | [
"MIT"
] | null | null | null | """
:Date: Nov 18, 2019
:Version: 0.1.0
"""
from tensorflow.python.keras import layers as KL
from tensorflow.python.util import nest
class LtnLayer(KL.Layer):
def __init__(self, *args, **kwargs):
doms = kwargs.get('doms')
super(LtnLayer, self).__init__(*args, **kwargs)
self._ltn_doms =... | 23.222222 | 73 | 0.63756 | 109 | 836 | 4.614679 | 0.422018 | 0.069583 | 0.087475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014196 | 0.241627 | 836 | 35 | 74 | 23.885714 | 0.77918 | 0.041866 | 0 | 0 | 0 | 0 | 0.005044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f5285b438a9fae8fbd9784ed94e26e28ffa9bc31 | 1,642 | bzl | Python | build_extensions/android_multidevice_instrumentation_test.bzl | 10-10-11/android-test | c71339cce96b8abb71c70fa8ae1b7bc4718ea2df | [
"Apache-2.0"
] | 1 | 2018-12-10T07:15:38.000Z | 2018-12-10T07:15:38.000Z | build_extensions/android_multidevice_instrumentation_test.bzl | Rockyspade/android-test | 07237c39dd498795962f6b44135647f642a5e359 | [
"Apache-2.0"
] | null | null | null | build_extensions/android_multidevice_instrumentation_test.bzl | Rockyspade/android-test | 07237c39dd498795962f6b44135647f642a5e359 | [
"Apache-2.0"
] | null | null | null | """Utility for running single test on multiple emulator targets."""
def android_multidevice_instrumentation_test(name, target_devices, **kwargs):
"""Generates a android_instrumentation_test rule for each given device.
Args:
name: Name prefix to use for the rules. The name of the generated rules will follow:
... | 46.914286 | 88 | 0.75335 | 216 | 1,642 | 5.407407 | 0.300926 | 0.133562 | 0.222603 | 0.300514 | 0.535959 | 0.535959 | 0.535959 | 0.377568 | 0 | 0 | 0 | 0.044335 | 0.134592 | 1,642 | 34 | 89 | 48.294118 | 0.777621 | 0.730816 | 0 | 0 | 1 | 0 | 0.167488 | 0.165025 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f53e6b064b2d59199eeee8bfec387faf60d130c6 | 4,511 | py | Python | data_base/models.py | Nicolas570/chris_db | a13853269847a0cbfa2be9ff7a4330ee1a38db21 | [
"MIT"
] | null | null | null | data_base/models.py | Nicolas570/chris_db | a13853269847a0cbfa2be9ff7a4330ee1a38db21 | [
"MIT"
] | null | null | null | data_base/models.py | Nicolas570/chris_db | a13853269847a0cbfa2be9ff7a4330ee1a38db21 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from django.db import models
################################################################################
# creation of class which match to one tables
# then we declare each field of the table
################################################################################
class Group(mod... | 38.555556 | 80 | 0.707382 | 502 | 4,511 | 6.183267 | 0.209163 | 0.133376 | 0.255155 | 0.340206 | 0.635954 | 0.62951 | 0.304124 | 0.199742 | 0.199742 | 0.151095 | 0 | 0.036733 | 0.136998 | 4,511 | 116 | 81 | 38.887931 | 0.760596 | 0.111284 | 0 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094595 | false | 0 | 0.013514 | 0.094595 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f544175723cce92151edeb282910e8c2839fb263 | 266 | py | Python | examples/coolmagic/__init__.py | joostdevries/werkzeug | 8f19cc210a68667155e37e6d3d37204f7afc8c38 | [
"BSD-3-Clause"
] | 2 | 2015-12-11T15:27:22.000Z | 2016-05-08T13:32:38.000Z | examples/coolmagic/__init__.py | Chitrank-Dixit/werkzeug | 60670cb98db1934b7aa7df454cbe4508c467f403 | [
"BSD-3-Clause"
] | null | null | null | examples/coolmagic/__init__.py | Chitrank-Dixit/werkzeug | 60670cb98db1934b7aa7df454cbe4508c467f403 | [
"BSD-3-Clause"
] | 2 | 2020-07-23T21:55:21.000Z | 2021-01-14T12:27:19.000Z | # -*- coding: utf-8 -*-
"""
coolmagic
~~~~~~~~~
Package description goes here.
:copyright: (c) 2009 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from coolmagic.application import make_app
| 22.166667 | 76 | 0.646617 | 33 | 266 | 5.181818 | 0.818182 | 0.081871 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024038 | 0.218045 | 266 | 11 | 77 | 24.181818 | 0.798077 | 0.725564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f5648c56daec7d0a577608a8fd3a6228fdcffa37 | 199 | py | Python | curso-python-cursoemvideo/desafio-046.py | fel-albuquerque/curso-python | a08b57989b97ac4e0e18e85f4bdcc7fdedf96510 | [
"Apache-2.0"
] | null | null | null | curso-python-cursoemvideo/desafio-046.py | fel-albuquerque/curso-python | a08b57989b97ac4e0e18e85f4bdcc7fdedf96510 | [
"Apache-2.0"
] | null | null | null | curso-python-cursoemvideo/desafio-046.py | fel-albuquerque/curso-python | a08b57989b97ac4e0e18e85f4bdcc7fdedf96510 | [
"Apache-2.0"
] | null | null | null | #desafio-046
from time import sleep
print('-='*11,'CONTAGEM PARA OS FOGOS','=-'*11)
for c in range(10, -1, -1):
print('Contagem regressiva {}'.format(c))
sleep(1)
print('CAABBBBOOMMMMMMMM')
| 22.111111 | 47 | 0.653266 | 29 | 199 | 4.482759 | 0.724138 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070588 | 0.145729 | 199 | 8 | 48 | 24.875 | 0.694118 | 0.055276 | 0 | 0 | 0 | 0 | 0.347594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f5a1537594b6970720f46034205f815d2b58dd56 | 702 | py | Python | tests/unit/TestUnit_Combinacion.py | cmontellanob/PruebasIntegracioncmb | d27fa8bca2d108b93b019af7f1603c9de9e00b2f | [
"Apache-2.0"
] | null | null | null | tests/unit/TestUnit_Combinacion.py | cmontellanob/PruebasIntegracioncmb | d27fa8bca2d108b93b019af7f1603c9de9e00b2f | [
"Apache-2.0"
] | null | null | null | tests/unit/TestUnit_Combinacion.py | cmontellanob/PruebasIntegracioncmb | d27fa8bca2d108b93b019af7f1603c9de9e00b2f | [
"Apache-2.0"
] | null | null | null | import unittest
from src.variaciones import convinatoria
class TestConvinatoria(unittest.TestCase):
def test_combinatoria_numeros_iguales(self):
assert convinatoria(3,3) == 1
def test_combinatoria_numeros_negativos(self):
with self.assertRaises(AssertionError):
convinatoria(-3,-3)
... | 33.428571 | 50 | 0.707977 | 79 | 702 | 6 | 0.379747 | 0.07384 | 0.200422 | 0.164557 | 0.413502 | 0.324895 | 0.219409 | 0.219409 | 0 | 0 | 0 | 0.025 | 0.202279 | 702 | 21 | 51 | 33.428571 | 0.821429 | 0 | 0 | 0.166667 | 0 | 0 | 0.01138 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.277778 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1911fae8dd2ba6c9964cfb7fdeef003609202979 | 13 | py | Python | server/db.py | f0cus10/sygnal | 63223af72948b1def7a6f2e03c08b83686a001be | [
"Unlicense"
] | null | null | null | server/db.py | f0cus10/sygnal | 63223af72948b1def7a6f2e03c08b83686a001be | [
"Unlicense"
] | 3 | 2019-11-28T03:57:02.000Z | 2019-12-19T09:09:34.000Z | server/db.py | f0cus10/sygnal | 63223af72948b1def7a6f2e03c08b83686a001be | [
"Unlicense"
] | null | null | null | database = {} | 13 | 13 | 0.615385 | 1 | 13 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 13 | 1 | 13 | 13 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
191afd42cb87cff8cde83b82344484dc0b7e74b0 | 237 | py | Python | tests/unit_tests/bittensor_tests/test_neuron.py | il-dar/bittensor | 12ea83a76abc3556f42e619ed04a223c0407b9b3 | [
"MIT"
] | null | null | null | tests/unit_tests/bittensor_tests/test_neuron.py | il-dar/bittensor | 12ea83a76abc3556f42e619ed04a223c0407b9b3 | [
"MIT"
] | null | null | null | tests/unit_tests/bittensor_tests/test_neuron.py | il-dar/bittensor | 12ea83a76abc3556f42e619ed04a223c0407b9b3 | [
"MIT"
] | null | null | null |
from loguru import logger
from munch import Munch
import bittensor
from bittensor.subtensor.interface import Keypair
def test_create_neuron():
neuron = bittensor.neuron.Neuron()
if __name__ == "__main__":
test_create_neuron() | 19.75 | 49 | 0.780591 | 30 | 237 | 5.766667 | 0.533333 | 0.127168 | 0.184971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147679 | 237 | 12 | 50 | 19.75 | 0.856436 | 0 | 0 | 0 | 0 | 0 | 0.033755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1923b767826b63617bf813e63ace1d2ebcee75dd | 159 | py | Python | banner.py | ubn-tech/brute-test | e9c39ea98c1b6ce11922a728241d4fe3bd87f0c8 | [
"MIT"
] | null | null | null | banner.py | ubn-tech/brute-test | e9c39ea98c1b6ce11922a728241d4fe3bd87f0c8 | [
"MIT"
] | null | null | null | banner.py | ubn-tech/brute-test | e9c39ea98c1b6ce11922a728241d4fe3bd87f0c8 | [
"MIT"
] | null | null | null | import pyfiglet
result = pyfiglet.figlet_format("#", font = "basic" ) #standard for default
print(result)
# See http://www.figlet.org/examples.html for fonts | 26.5 | 75 | 0.742138 | 22 | 159 | 5.318182 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119497 | 159 | 6 | 76 | 26.5 | 0.835714 | 0.440252 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
195a6ff7c321dd36b780652020025ba66432a1b1 | 811 | py | Python | classifiers/data/data_preprocessors.py | Mythologos/data-science-project | 8cddd73f97617f8a3b8cb74d6df096e411b1c1ed | [
"MIT"
] | null | null | null | classifiers/data/data_preprocessors.py | Mythologos/data-science-project | 8cddd73f97617f8a3b8cb74d6df096e411b1c1ed | [
"MIT"
] | null | null | null | classifiers/data/data_preprocessors.py | Mythologos/data-science-project | 8cddd73f97617f8a3b8cb74d6df096e411b1c1ed | [
"MIT"
] | null | null | null | """
This file contains data preprocessor functions. In particular,
it contains just one related to the OmniglotReactionTimeDataset.
"""
from torch.utils.data import Dataset
def preprocess_reaction_time_data(data_source: Dataset):
"""
This code is meant to be used with the OmniglotReactionTimeDataset class.
... | 40.55 | 116 | 0.764488 | 107 | 811 | 5.738318 | 0.607477 | 0.19544 | 0.17101 | 0.120521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003017 | 0.182491 | 811 | 19 | 117 | 42.684211 | 0.923077 | 0.725031 | 0 | 0 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1969053d4c1835c824055c8f93164f44b21b85f5 | 5,532 | py | Python | python-grpc/proto/helloworld_pb2_grpc.py | rdpopov/MusicRipper | f3692a8ee28bebd4031b0a096817de406bae098b | [
"MIT"
] | null | null | null | python-grpc/proto/helloworld_pb2_grpc.py | rdpopov/MusicRipper | f3692a8ee28bebd4031b0a096817de406bae098b | [
"MIT"
] | null | null | null | python-grpc/proto/helloworld_pb2_grpc.py | rdpopov/MusicRipper | f3692a8ee28bebd4031b0a096817de406bae098b | [
"MIT"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from proto import helloworld_pb2 as proto_dot_helloworld__pb2
class GreeterStub(object):
"""Missing associated documentation comment in .proto file."""
... | 41.283582 | 95 | 0.659798 | 515 | 5,532 | 6.784466 | 0.194175 | 0.074413 | 0.097882 | 0.114196 | 0.784774 | 0.753291 | 0.707212 | 0.631654 | 0.616199 | 0.583572 | 0 | 0.004909 | 0.263557 | 5,532 | 133 | 96 | 41.593985 | 0.852725 | 0.103941 | 0 | 0.588235 | 1 | 0 | 0.072393 | 0.035174 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.019608 | 0.029412 | 0.156863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19b0f16489df79ae08e786f9a4bf8362d2c41ee5 | 156 | py | Python | ansys/dpf/post/_version.py | pyansys/DPF-Post | 8fea9103259786067d3451dc12e7c0ae5a38ea33 | [
"MIT"
] | 5 | 2021-02-01T11:15:38.000Z | 2021-10-01T23:15:44.000Z | ansys/dpf/post/_version.py | lynch1972/pydpf-post | 8fea9103259786067d3451dc12e7c0ae5a38ea33 | [
"MIT"
] | 16 | 2021-01-17T19:48:34.000Z | 2021-10-05T12:52:17.000Z | ansys/dpf/post/_version.py | pyansys/DPF-Post | 8fea9103259786067d3451dc12e7c0ae5a38ea33 | [
"MIT"
] | null | null | null | """Version for ansys-dpf-post"""
# major, minor, patch
version_info = 0, 2, 2
# Nice string for the version
__version__ = ".".join(map(str, version_info))
| 22.285714 | 46 | 0.692308 | 24 | 156 | 4.25 | 0.708333 | 0.215686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022556 | 0.147436 | 156 | 6 | 47 | 26 | 0.744361 | 0.480769 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5fe8ce9fb4f505a9aa7b50ec49441b6818ab027a | 416 | py | Python | builders/activations.py | leosampaio/scene-designer | 8a7276067acfde1997d386942aabc44d92436a1a | [
"MIT"
] | 9 | 2021-08-18T17:49:42.000Z | 2022-02-22T02:15:07.000Z | builders/activations.py | leosampaio/scene-designer | 8a7276067acfde1997d386942aabc44d92436a1a | [
"MIT"
] | null | null | null | builders/activations.py | leosampaio/scene-designer | 8a7276067acfde1997d386942aabc44d92436a1a | [
"MIT"
] | 1 | 2021-10-02T19:53:03.000Z | 2021-10-02T19:53:03.000Z | import tensorflow as tf
def multiply_gradients(alpha):
@tf.custom_gradient
def _lr_mult(x):
def grad(dy):
return dy * alpha * tf.ones_like(x)
return x, grad
return _lr_mult
def miu_relu(x, miu=0.7):
return (x + tf.sqrt((1 - miu) ** 2 + x ** 2)) / 2.
def prelu(x):
le... | 21.894737 | 67 | 0.608173 | 66 | 416 | 3.712121 | 0.484848 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02589 | 0.257212 | 416 | 19 | 68 | 21.894737 | 0.76699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0.076923 | 0.153846 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5ff08ea11a465a46250f569e7423ba1f3bf12b08 | 252 | py | Python | apps/core/views.py | marcelogumercinocosta/repdoc | 900f32a42e66d92ca613cbd876bb02d25b885b1c | [
"MIT"
] | null | null | null | apps/core/views.py | marcelogumercinocosta/repdoc | 900f32a42e66d92ca613cbd876bb02d25b885b1c | [
"MIT"
] | null | null | null | apps/core/views.py | marcelogumercinocosta/repdoc | 900f32a42e66d92ca613cbd876bb02d25b885b1c | [
"MIT"
] | null | null | null | from apps.core.models import Documento
from django.shortcuts import render
from django.views.generic import ListView
# Create your views here.
class DocumentosListView( ListView, ):
template_name = 'core/documento_list.html'
model = Documento | 28 | 46 | 0.789683 | 32 | 252 | 6.15625 | 0.6875 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 252 | 9 | 47 | 28 | 0.912037 | 0.09127 | 0 | 0 | 0 | 0 | 0.105263 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
5ff2f71f034c6df13ae50977d997c3a0d1fd1d5a | 659 | py | Python | test/test_http.py | jakebrinkmann/lagoon-emperor-penguin | 03de04028ee771a635b162a29990b868504c51d5 | [
"Unlicense"
] | null | null | null | test/test_http.py | jakebrinkmann/lagoon-emperor-penguin | 03de04028ee771a635b162a29990b868504c51d5 | [
"Unlicense"
] | null | null | null | test/test_http.py | jakebrinkmann/lagoon-emperor-penguin | 03de04028ee771a635b162a29990b868504c51d5 | [
"Unlicense"
] | null | null | null |
import falcon
from falcon import testing
import pytest
from processing import __version__
from processing.http import api
@pytest.fixture
def client():
return testing.TestClient(api)
def tests_ping(client):
response = client.simulate_get('/')
assert response.status == falcon.HTTP_OK
assert respons... | 24.407407 | 73 | 0.754173 | 85 | 659 | 5.576471 | 0.435294 | 0.118143 | 0.126582 | 0.177215 | 0.392405 | 0.198312 | 0.198312 | 0.198312 | 0.198312 | 0 | 0 | 0.010638 | 0.144158 | 659 | 26 | 74 | 25.346154 | 0.829787 | 0 | 0 | 0.111111 | 0 | 0 | 0.06079 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.277778 | 0.055556 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
273257323795a6972e2981da6c4e6bf0b3906958 | 88 | py | Python | tests/expression1/operation.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | tests/expression1/operation.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | tests/expression1/operation.py | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from gna.expression import *
op = OSum['a']('b', 'c')
print(op)
| 12.571429 | 28 | 0.613636 | 15 | 88 | 3.6 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147727 | 88 | 6 | 29 | 14.666667 | 0.72 | 0.227273 | 0 | 0 | 0 | 0 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
273830c7a81c01f75095714bac984bc51230bd30 | 150 | py | Python | func-global.py | yuukikazupon/python | ed7c19ed757d8e48a20dd3185199d273c120680b | [
"BSD-4-Clause-UC"
] | null | null | null | func-global.py | yuukikazupon/python | ed7c19ed757d8e48a20dd3185199d273c120680b | [
"BSD-4-Clause-UC"
] | null | null | null | func-global.py | yuukikazupon/python | ed7c19ed757d8e48a20dd3185199d273c120680b | [
"BSD-4-Clause-UC"
] | null | null | null | value=100
def changevalue():
# print(value)
global value
print(value)
value=20
print(value)
changevalue()
print("value=",value)
| 12.5 | 21 | 0.64 | 18 | 150 | 5.333333 | 0.388889 | 0.416667 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043103 | 0.226667 | 150 | 11 | 22 | 13.636364 | 0.784483 | 0.08 | 0 | 0.25 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2750c05505dbc01da118d0056e65af75299433c7 | 84 | py | Python | docker/flask/app/app/model/__init__.py | tachibana-RH/analytics_app | 6ff554c2a886fe2c072016b0308c7c605b8c8a03 | [
"Apache-2.0"
] | null | null | null | docker/flask/app/app/model/__init__.py | tachibana-RH/analytics_app | 6ff554c2a886fe2c072016b0308c7c605b8c8a03 | [
"Apache-2.0"
] | null | null | null | docker/flask/app/app/model/__init__.py | tachibana-RH/analytics_app | 6ff554c2a886fe2c072016b0308c7c605b8c8a03 | [
"Apache-2.0"
] | null | null | null | from .users import User, UserOperater
__all__ = [
'User',
'UserOperater'
] | 12 | 37 | 0.642857 | 8 | 84 | 6.25 | 0.75 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 84 | 7 | 38 | 12 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2769c965d59d7e63e56f80b703e2b55440d96f20 | 701 | py | Python | tests/main.py | iawia002/rec | 04637c2d68e5997efbd326eae912ef3b585b4dd8 | [
"MIT"
] | 2 | 2018-03-29T03:03:19.000Z | 2019-12-19T12:55:27.000Z | tests/main.py | iawia002/rec | 04637c2d68e5997efbd326eae912ef3b585b4dd8 | [
"MIT"
] | 1 | 2018-01-14T09:11:46.000Z | 2018-01-14T09:11:46.000Z | tests/main.py | iawia002/rec | 04637c2d68e5997efbd326eae912ef3b585b4dd8 | [
"MIT"
] | null | null | null | # coding=utf-8
from __future__ import unicode_literals
import unittest
import rec
class MainTest(unittest.TestCase):
def test_domain(self):
self.assertEqual(rec.domain('aa.com'), ['aa.com'])
self.assertEqual(rec.domain('aa.com', root=False), ['aa'])
self.assertTrue(rec.domain('aa.com',... | 28.04 | 68 | 0.634807 | 95 | 701 | 4.536842 | 0.336842 | 0.167053 | 0.25058 | 0.334107 | 0.429234 | 0.359629 | 0.148492 | 0 | 0 | 0 | 0 | 0.001709 | 0.165478 | 701 | 24 | 69 | 29.208333 | 0.735043 | 0.017118 | 0 | 0 | 0 | 0 | 0.173217 | 0 | 0 | 0 | 0 | 0 | 0.533333 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
277180ce27c4cc1efef6d83d627559aed42a5200 | 4,836 | py | Python | tweetguru/migrations/0005_auto_20190121_1608.py | MaciejWWojcik/twitter-influencer-searcher | 0b8b05aaa3540eeefcb2a728c5bce2fc5913446e | [
"MIT"
] | null | null | null | tweetguru/migrations/0005_auto_20190121_1608.py | MaciejWWojcik/twitter-influencer-searcher | 0b8b05aaa3540eeefcb2a728c5bce2fc5913446e | [
"MIT"
] | 9 | 2018-11-15T15:30:13.000Z | 2019-01-20T01:40:05.000Z | tweetguru/migrations/0005_auto_20190121_1608.py | MaciejWWojcik/twitter-influencer-searcher | 0b8b05aaa3540eeefcb2a728c5bce2fc5913446e | [
"MIT"
] | null | null | null | # Generated by Django 2.1.3 on 2019-01-21 16:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tweetguru', '0004_auto_20190115_2325'),
]
operations = [
migrations.CreateModel(
name='Hashtag'... | 40.3 | 114 | 0.566584 | 436 | 4,836 | 6.178899 | 0.190367 | 0.032665 | 0.051967 | 0.081663 | 0.759837 | 0.713066 | 0.623608 | 0.623608 | 0.623608 | 0.541945 | 0 | 0.014719 | 0.29756 | 4,836 | 119 | 115 | 40.638655 | 0.778334 | 0.009305 | 0 | 0.716814 | 1 | 0 | 0.122781 | 0.017958 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017699 | 0 | 0.044248 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
27d19dbb7f61713a736d91f3c06f8fdcad669f62 | 716 | py | Python | iseq/standard/path.py | horta/iseq | f054737ed1b76e7fe618261d1bef7f465d51ea64 | [
"MIT"
] | null | null | null | iseq/standard/path.py | horta/iseq | f054737ed1b76e7fe618261d1bef7f465d51ea64 | [
"MIT"
] | null | null | null | iseq/standard/path.py | horta/iseq | f054737ed1b76e7fe618261d1bef7f465d51ea64 | [
"MIT"
] | null | null | null | from typing import Sequence, Tuple, Union
from nmm import CPath, MuteState, NormalState, create_imm_path
from .step import StandardStep
class StandardPath(CPath):
"""
Path for standard profile.
Parameters
----------
steps : `Sequence[Tuple[Union[MuteState, NormalState], int]]`
Steps.
... | 26.518519 | 83 | 0.663408 | 84 | 716 | 5.22619 | 0.440476 | 0.102506 | 0.123007 | 0.104784 | 0.209567 | 0.209567 | 0.209567 | 0 | 0 | 0 | 0 | 0.003497 | 0.201117 | 716 | 26 | 84 | 27.538462 | 0.763986 | 0.170391 | 0 | 0 | 0 | 0 | 0.069395 | 0.069395 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
27eaa64bde2a4714a2b7f01cb7faaeb6a1addf4b | 113 | py | Python | Python-ListComprehensions.py | H2oPtic/Codecademy-Education | 454ecff36a055fa17b4b338e1c6f1e9b3b94ef66 | [
"MIT"
] | null | null | null | Python-ListComprehensions.py | H2oPtic/Codecademy-Education | 454ecff36a055fa17b4b338e1c6f1e9b3b94ef66 | [
"MIT"
] | null | null | null | Python-ListComprehensions.py | H2oPtic/Codecademy-Education | 454ecff36a055fa17b4b338e1c6f1e9b3b94ef66 | [
"MIT"
] | null | null | null | grades = [90, 88, 62, 76, 74, 89, 48, 57]
scaled_grades = [grad + 10 for grad in grades]
print(scaled_grades) | 28.25 | 47 | 0.654867 | 20 | 113 | 3.6 | 0.75 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.20354 | 113 | 4 | 48 | 28.25 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7e118ed036362a54dc756507ae22bfe777d53951 | 366 | py | Python | tube/forms.py | Nancy-Muthinzi/video-tube | c820c98c69e814e831b473f5b5e0c3568989d69d | [
"MIT"
] | null | null | null | tube/forms.py | Nancy-Muthinzi/video-tube | c820c98c69e814e831b473f5b5e0c3568989d69d | [
"MIT"
] | 5 | 2020-06-05T19:44:37.000Z | 2021-09-08T00:46:17.000Z | tube/forms.py | Nancy-Muthinzi/video-tube | c820c98c69e814e831b473f5b5e0c3568989d69d | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import *
class NewVideoForm(forms.ModelForm):
class Meta:
model = Video
fields = ['title', 'videofile']
class CommentForm(forms.ModelForm):
class Meta:
... | 26.142857 | 54 | 0.696721 | 42 | 366 | 6.071429 | 0.5 | 0.117647 | 0.133333 | 0.164706 | 0.219608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213115 | 366 | 14 | 55 | 26.142857 | 0.885417 | 0 | 0 | 0.166667 | 0 | 0 | 0.051771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7e1298be9f7f252642a39fa877b0f8a56040baac | 741 | py | Python | Korpora/__init__.py | snapbuy/Korpora | b0e014f5c8c4ba71aba335285d0be48cbb802a0d | [
"CC-BY-4.0"
] | 1 | 2021-01-07T15:00:46.000Z | 2021-01-07T15:00:46.000Z | Korpora/__init__.py | snapbuy/Korpora | b0e014f5c8c4ba71aba335285d0be48cbb802a0d | [
"CC-BY-4.0"
] | null | null | null | Korpora/__init__.py | snapbuy/Korpora | b0e014f5c8c4ba71aba335285d0be48cbb802a0d | [
"CC-BY-4.0"
] | null | null | null | from .about import __author__ # noqa: F401
from .about import __version__ # noqa: F401
from .korpus_chatbot_data import KoreanChatbotKorpus
from .korpus_custom import (
CustomLabeledSentencePairKorpus,
CustomLabeledSentenceKorpus,
CustomSentencePairKorpus
)
from .korpus_kcbert import KcBERTKorpus
from .... | 37.05 | 61 | 0.859649 | 79 | 741 | 7.746835 | 0.493671 | 0.179739 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009105 | 0.110661 | 741 | 19 | 62 | 39 | 0.919575 | 0.02834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.777778 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fd83089f7043089f753fd3f4bf411324f1f97687 | 158 | py | Python | app/rooms/admin/room.py | mandarhan/mandarhan | 9ce38d10e536e0d3e2f907c3b5c560d66ccf8e40 | [
"MIT"
] | null | null | null | app/rooms/admin/room.py | mandarhan/mandarhan | 9ce38d10e536e0d3e2f907c3b5c560d66ccf8e40 | [
"MIT"
] | 6 | 2020-02-18T03:49:09.000Z | 2022-03-12T00:10:05.000Z | app/rooms/admin/room.py | mandarhan/mandarhan | 9ce38d10e536e0d3e2f907c3b5c560d66ccf8e40 | [
"MIT"
] | 1 | 2020-03-25T10:25:43.000Z | 2020-03-25T10:25:43.000Z | from django.contrib import admin
from ..models import Room
__all__ = [
'RoomAdmin',
]
@admin.register(Room)
class RoomAdmin(admin.ModelAdmin):
pass | 14.363636 | 34 | 0.721519 | 19 | 158 | 5.789474 | 0.684211 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170886 | 158 | 11 | 35 | 14.363636 | 0.839695 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.25 | 0 | 0.375 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.