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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3e82e6427704394d5ce2adab66ff8b1f4025766 | 318 | py | Python | chapter5/codes/execNeval.py | IPVL/Tanvin-PythonWorks | 75a3140ac4fd426dae1b1aeb5a75893050547782 | [
"MIT"
] | null | null | null | chapter5/codes/execNeval.py | IPVL/Tanvin-PythonWorks | 75a3140ac4fd426dae1b1aeb5a75893050547782 | [
"MIT"
] | null | null | null | chapter5/codes/execNeval.py | IPVL/Tanvin-PythonWorks | 75a3140ac4fd426dae1b1aeb5a75893050547782 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# example of exec
exec "print 'Hello, world!'"
# another example
from math import sqrt
scope = {}
exec 'sqrt = 1' in scope
print "sqrt of 4:", sqrt(4)
print "scope:", scope['sqrt'], '\n', "length of scope:", len(scope)
# example of eval
eval(raw_input("Enter an arithmetic expression: ")) | 21.2 | 67 | 0.663522 | 49 | 318 | 4.285714 | 0.591837 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011407 | 0.172956 | 318 | 15 | 68 | 21.2 | 0.787072 | 0.22327 | 0 | 0 | 0 | 0 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b3ff355a5eacb980fad90f46134634cc30a5653b | 337 | py | Python | FWCore/MessageService/python/test/Services_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | FWCore/MessageService/python/test/Services_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | FWCore/MessageService/python/test/Services_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from FWCore.Services.InitRootHandlers_cfi import *
# Tell AdaptorConfig to suppress the statistics summary. We aren't actually using
# that service and it's summary interferes with the MessageLogger summary.
AdaptorConfig = cms.Service("AdaptorConfig",
stats = cms.untrack... | 33.7 | 82 | 0.79822 | 44 | 337 | 6.090909 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133531 | 337 | 9 | 83 | 37.444444 | 0.917808 | 0.454006 | 0 | 0 | 0 | 0 | 0.071823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
b61389f50e9d173999e38179b52a9ada5226258f | 2,563 | py | Python | translation.py | maciejklimek/AnkiCreator | 5e498bcce0f482925e762ab288e90a568b837714 | [
"BSD-3-Clause"
] | 5 | 2015-02-03T20:51:46.000Z | 2017-12-08T03:46:50.000Z | translation.py | maciejklimek/AnkiCreator | 5e498bcce0f482925e762ab288e90a568b837714 | [
"BSD-3-Clause"
] | null | null | null | translation.py | maciejklimek/AnkiCreator | 5e498bcce0f482925e762ab288e90a568b837714 | [
"BSD-3-Clause"
] | null | null | null | from tools import LudiException
__author__ = 'maciek'
class Translation(object):
class Type(object):
NOUN = 'n'
VERB = 'v'
ADJECTIVE = 'adj'
ADVERB = 'adv'
PRONOUN = 'pn'
PREPOSITION = 'prep'
CONJUNCTION = 'conj'
def __init__(self, word):
self.... | 40.68254 | 115 | 0.438939 | 247 | 2,563 | 4.497976 | 0.291498 | 0.216022 | 0.113411 | 0.151215 | 0.347435 | 0.29523 | 0.064806 | 0.064806 | 0 | 0 | 0 | 0.016972 | 0.425283 | 2,563 | 62 | 116 | 41.33871 | 0.737271 | 0 | 0 | 0 | 0 | 0 | 0.117441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019231 | null | null | 0.038462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
373c7e678a1e9bf5e90624ef4fd6ec047caa5524 | 821 | py | Python | hasty/exception.py | hasty-ai/hasty-python | e286c6cba8216d7b840a7fde5dc37b472b23296c | [
"MIT"
] | 1 | 2022-02-27T08:09:08.000Z | 2022-02-27T08:09:08.000Z | hasty/exception.py | hasty-ai/hasty-python | e286c6cba8216d7b840a7fde5dc37b472b23296c | [
"MIT"
] | 3 | 2021-07-26T15:20:20.000Z | 2022-03-29T22:58:27.000Z | hasty/exception.py | hasty-ai/hasty-python | e286c6cba8216d7b840a7fde5dc37b472b23296c | [
"MIT"
] | 2 | 2021-09-12T01:59:56.000Z | 2022-03-12T02:40:06.000Z | class ValidationException(Exception):
def __init__(self, message):
self.message = message
@classmethod
def export_in_progress(cls):
raise ValidationException("Export is still running")
class LimitExceededException(Exception):
def __init__(self, message):
self.message = message... | 27.366667 | 90 | 0.702801 | 95 | 821 | 5.842105 | 0.336842 | 0.118919 | 0.086486 | 0.108108 | 0.581982 | 0.581982 | 0.513514 | 0.513514 | 0.513514 | 0.513514 | 0 | 0.009317 | 0.215591 | 821 | 29 | 91 | 28.310345 | 0.852484 | 0 | 0 | 0.47619 | 0 | 0 | 0.161998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.142857 | 0.619048 | 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 | 0 | 0 | 0 | 2 |
3746076b8924c745799ec314c621f1db42d6ba93 | 237 | py | Python | docs/labs/lab03/notebook/solutions/exercise1.py | lingcog/2019-CS109A | f1eaa62976fe989c3ad3f3ab4b8dd5d71574a2c3 | [
"MIT"
] | 442 | 2019-06-11T06:47:00.000Z | 2022-03-12T11:19:31.000Z | docs/labs/lab03/notebook/solutions/exercise1.py | lelandroberts97/2019-CS109A | 976da6b65c26fd3c5db285cbf9ec9cde92751a70 | [
"MIT"
] | 3 | 2019-09-23T17:32:51.000Z | 2022-02-09T06:06:00.000Z | docs/labs/lab03/notebook/solutions/exercise1.py | lelandroberts97/2019-CS109A | 976da6b65c26fd3c5db285cbf9ec9cde92751a70 | [
"MIT"
] | 486 | 2019-06-17T05:01:07.000Z | 2022-03-13T20:30:44.000Z | A = np.array([ [5, 4, 3, 2, 1], [1, 2, 3, 4, 5], [1.1, 2.2, 3.3, 4.4, 5.5] ])
print(A, "\n")
# set length(shape)
dims = A.shape
print(dims, "\n")
# slicing
print(A[-1, 2:], "\n")
print(A[1:3, 3:5], "\n")
# square
A2 = A * A
print(A2)
| 15.8 | 77 | 0.476793 | 54 | 237 | 2.092593 | 0.314815 | 0.053097 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0.202532 | 237 | 14 | 78 | 16.928571 | 0.449735 | 0.135021 | 0 | 0 | 0 | 0 | 0.039801 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
3758ec23f661c439f9ae34576fefe1e235e69372 | 1,557 | py | Python | src/Anchors/LoopAnchor.py | CelineDknp/SemiParsingCFG | 0263a5b442c7c994279357738afeea59f642428d | [
"MIT"
] | null | null | null | src/Anchors/LoopAnchor.py | CelineDknp/SemiParsingCFG | 0263a5b442c7c994279357738afeea59f642428d | [
"MIT"
] | null | null | null | src/Anchors/LoopAnchor.py | CelineDknp/SemiParsingCFG | 0263a5b442c7c994279357738afeea59f642428d | [
"MIT"
] | null | null | null | from .Anchor import Anchor
from Utils.config import *
class LoopAnchor(Anchor):
def __init__(self, elem):
if elem["type"] == "multiple_label":
super().__init__(elem["start"]+elem["inline-label"]+elem["separator"]+elem["inline-label"], LOOP)
self.start_regex = re.compile(elem["start"], flags=re.MULTILINE|re.IG... | 29.942308 | 100 | 0.71869 | 226 | 1,557 | 4.743363 | 0.163717 | 0.067164 | 0.104478 | 0.083955 | 0.543843 | 0.482276 | 0.463619 | 0.32556 | 0.268657 | 0.268657 | 0 | 0 | 0.136159 | 1,557 | 51 | 101 | 30.529412 | 0.797026 | 0 | 0 | 0.238095 | 0 | 0 | 0.105331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.047619 | 0.190476 | 0.47619 | 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 | 0 | 0 | 0 | 2 |
376ea9466a6314f03a1e7da915e45334793f2ec3 | 2,260 | py | Python | cvxpy/atoms/norm_nuc.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvxpy/atoms/norm_nuc.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvxpy/atoms/norm_nuc.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """
Copyright 2013 Steven Diamond
This file is part of CVXPY.
CVXPY is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
CVXPY is distributed i... | 27.228916 | 79 | 0.633186 | 325 | 2,260 | 4.332308 | 0.458462 | 0.028409 | 0.027699 | 0.040483 | 0.160511 | 0.076705 | 0 | 0 | 0 | 0 | 0 | 0.004281 | 0.276549 | 2,260 | 82 | 80 | 27.560976 | 0.856881 | 0.587168 | 0 | 0.12 | 0 | 0 | 0.004813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.36 | false | 0 | 0.12 | 0 | 0.88 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
376fd9796861e2c39787309023f2cdb3f5ebed40 | 88 | py | Python | kg_covid_19/transform_utils/drug_central/__init__.py | matentzn/kg-covid-19 | 86dbb348509e2133c3e3b3d66bfa29a299673b66 | [
"BSD-3-Clause"
] | 66 | 2020-03-22T21:23:32.000Z | 2022-03-24T09:34:03.000Z | kg_covid_19/transform_utils/drug_central/__init__.py | MrBearWithHisSword/KGQA-COVID | d7aa08d5892aab77e3e829f61d7cb6ba80cff009 | [
"BSD-3-Clause"
] | 340 | 2020-03-22T19:04:18.000Z | 2022-03-30T14:55:42.000Z | kg_covid_19/transform_utils/drug_central/__init__.py | MrBearWithHisSword/KGQA-COVID | d7aa08d5892aab77e3e829f61d7cb6ba80cff009 | [
"BSD-3-Clause"
] | 26 | 2020-03-23T15:20:12.000Z | 2021-09-07T16:57:30.000Z | from .drug_central import DrugCentralTransform
__all__ = [
"DrugCentralTransform"
] | 17.6 | 46 | 0.784091 | 7 | 88 | 9.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147727 | 88 | 5 | 47 | 17.6 | 0.853333 | 0 | 0 | 0 | 0 | 0 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 2 |
3779f2dd899eee84d4f004b19e2e63ab076d4e73 | 222 | py | Python | #1/problem.py | alinoancea/dcp | 1c1a5da226596b8447064392cc220dfc7ed3e95d | [
"MIT"
] | null | null | null | #1/problem.py | alinoancea/dcp | 1c1a5da226596b8447064392cc220dfc7ed3e95d | [
"MIT"
] | null | null | null | #1/problem.py | alinoancea/dcp | 1c1a5da226596b8447064392cc220dfc7ed3e95d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
def check(lst, k):
d = set()
for n in lst:
if k - n in d:
return True
d.add(n)
return False
print(check([10, 15, 3, 7], 17))
print(check([10, 15, 3, 7], 11)) | 18.5 | 32 | 0.495495 | 40 | 222 | 2.75 | 0.625 | 0.054545 | 0.218182 | 0.254545 | 0.290909 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0.114865 | 0.333333 | 222 | 12 | 33 | 18.5 | 0.628378 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.222222 | 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 | 0 | 0 | 0 | 2 |
377d93c2d0000d6272f263fea0646a212046d38a | 10,124 | py | Python | principal/models.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | null | null | null | principal/models.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | null | null | null | principal/models.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delet... | 36.157143 | 120 | 0.669696 | 1,117 | 10,124 | 5.880036 | 0.266786 | 0.045067 | 0.065773 | 0.087698 | 0.355664 | 0.234013 | 0.193666 | 0.104903 | 0.06821 | 0.06821 | 0 | 0.011512 | 0.184907 | 10,124 | 279 | 121 | 36.286738 | 0.784416 | 0.116555 | 0 | 0.256281 | 1 | 0 | 0.124664 | 0.011323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045226 | false | 0.005025 | 0.045226 | 0.035176 | 0.643216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
377f8c4605d4ec6f7f0742bad0873d2139c831e7 | 1,845 | py | Python | raw_data_profchp.py | mcsoini/PROFILE_READER | c14806116cd20ba83620ded90832498451ed9597 | [
"BSD-2-Clause"
] | null | null | null | raw_data_profchp.py | mcsoini/PROFILE_READER | c14806116cd20ba83620ded90832498451ed9597 | [
"BSD-2-Clause"
] | null | null | null | raw_data_profchp.py | mcsoini/PROFILE_READER | c14806116cd20ba83620ded90832498451ed9597 | [
"BSD-2-Clause"
] | null | null | null | import os
from xlrd import open_workbook
import pandas as pd
from grimsel_h.auxiliary.aux_general import print_full, expand_rows, read_xlsx_table
def get_chp_profiles(target_dir=None):
print('Directory get_chp_profiles:', os.getcwd())
fn = 'heat_demand_profiles_20170614.xlsx'
dct = '../..... | 36.9 | 122 | 0.657453 | 263 | 1,845 | 4.262357 | 0.334601 | 0.304193 | 0.336307 | 0.080285 | 0.269402 | 0.260482 | 0.167707 | 0.1124 | 0.1124 | 0.1124 | 0 | 0.02059 | 0.210298 | 1,845 | 50 | 123 | 36.9 | 0.748799 | 0.014634 | 0 | 0.064516 | 0 | 0 | 0.118213 | 0.042421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0.064516 | 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 | 0 | 0 | 2 |
37898a9927617dbd9f99330a279d83944466a398 | 142 | py | Python | sys_add_path/toy_project_python3/src/folder_1/file_1.py | tedhuang96/python_tricks | 1579176144b8ca32bf2eb5ba0c5291237d8b8935 | [
"MIT"
] | null | null | null | sys_add_path/toy_project_python3/src/folder_1/file_1.py | tedhuang96/python_tricks | 1579176144b8ca32bf2eb5ba0c5291237d8b8935 | [
"MIT"
] | null | null | null | sys_add_path/toy_project_python3/src/folder_1/file_1.py | tedhuang96/python_tricks | 1579176144b8ca32bf2eb5ba0c5291237d8b8935 | [
"MIT"
] | null | null | null |
from src.folder_0.file_0 import func_sum
def func_sum_product(a,b,c,d):
e = func_sum(a, b)
f = func_sum(c, d)
return e * f
| 15.777778 | 40 | 0.619718 | 30 | 142 | 2.7 | 0.566667 | 0.345679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.260563 | 142 | 9 | 41 | 15.777778 | 0.752381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 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 | 2 |
3792a6aef987fb5eec6a52d26d7f616c91150edf | 452 | py | Python | tests/test_get.py | bio2bel/uniprot | a4f2ac033a46530ac249969f9a731beb39b12733 | [
"MIT"
] | null | null | null | tests/test_get.py | bio2bel/uniprot | a4f2ac033a46530ac249969f9a731beb39b12733 | [
"MIT"
] | 3 | 2017-08-19T14:57:49.000Z | 2017-08-19T14:58:12.000Z | tests/test_get.py | bio2bel/uniprot | a4f2ac033a46530ac249969f9a731beb39b12733 | [
"MIT"
] | 1 | 2019-10-22T00:50:37.000Z | 2019-10-22T00:50:37.000Z | # -*- coding: utf-8 -*-
"""Test functions that get data."""
import os
import unittest
from bio2bel_uniprot import get_mappings_df
HERE = os.path.abspath(os.path.dirname(__file__))
URL = os.path.join(HERE, 'test.tsv')
class TestGet(unittest.TestCase):
"""Test getting data."""
def test_get_mappings(self):
... | 21.52381 | 50 | 0.672566 | 64 | 452 | 4.578125 | 0.5625 | 0.112628 | 0.088737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008108 | 0.181416 | 452 | 20 | 51 | 22.6 | 0.783784 | 0.238938 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
37a850ace9c07a91ce0bd72124b829282874be9a | 3,827 | py | Python | src/training/scheduler.py | jplasser/cloob | 8a16009440f8e8eb9acba8fbb046180719003b28 | [
"MIT"
] | 44 | 2021-10-30T06:20:59.000Z | 2022-03-29T10:26:11.000Z | src/training/scheduler.py | afiaka87/cloob | d1c0fa166f4e8c42eba3fcd133caa2477b331860 | [
"MIT"
] | 9 | 2021-11-03T04:23:49.000Z | 2022-03-31T15:48:17.000Z | src/training/scheduler.py | afiaka87/cloob | d1c0fa166f4e8c42eba3fcd133caa2477b331860 | [
"MIT"
] | 3 | 2021-12-29T22:08:25.000Z | 2022-02-10T19:27:45.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | 43.488636 | 117 | 0.679906 | 551 | 3,827 | 4.631579 | 0.255898 | 0.040752 | 0.037618 | 0.023511 | 0.672806 | 0.672806 | 0.672806 | 0.631661 | 0.631661 | 0.631661 | 0 | 0.016393 | 0.23491 | 3,827 | 87 | 118 | 43.988506 | 0.855191 | 0.630781 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
805d2ac887895555a1420da719830b54829502f8 | 173 | py | Python | Python-desenvolvimento/ex014.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | Python-desenvolvimento/ex014.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | Python-desenvolvimento/ex014.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | # um programa que pega a ºC, e transforma em Fº
c = float(input('informe a temperatura: '))
f = ((9*c)/5)+32
print('A temperatura {}ºc, corresponde à {}ºf'.format(c,f))
| 34.6 | 60 | 0.647399 | 31 | 173 | 3.612903 | 0.774194 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.17341 | 173 | 4 | 61 | 43.25 | 0.755245 | 0.260116 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
806068b887f576294d51b641529a19d602f962e8 | 423 | py | Python | impc_etl/workflow/config.py | ficolo/impc-etl | 3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5 | [
"Apache-2.0"
] | 4 | 2021-04-14T09:28:51.000Z | 2022-02-07T10:52:14.000Z | impc_etl/workflow/config.py | ficolo/impc-etl | 3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5 | [
"Apache-2.0"
] | 85 | 2018-10-30T10:49:28.000Z | 2022-03-25T13:51:31.000Z | impc_etl/workflow/config.py | ficolo/impc-etl | 3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5 | [
"Apache-2.0"
] | 7 | 2018-10-30T11:36:57.000Z | 2021-07-15T15:36:14.000Z | import luigi
from luigi.contrib.hdfs import HdfsTarget
class ImpcConfig(luigi.Config):
dcc_xml_path = luigi.Parameter(default="./")
output_path = luigi.Parameter(default="./")
deploy_mode = luigi.Parameter(default="client")
def get_target(self, path):
return (
luigi.LocalTarget(pa... | 26.4375 | 54 | 0.640662 | 48 | 423 | 5.520833 | 0.583333 | 0.158491 | 0.237736 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241135 | 423 | 15 | 55 | 28.2 | 0.825545 | 0 | 0 | 0 | 0 | 0 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0.083333 | 0.666667 | 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 | 0 | 0 | 0 | 2 |
806408d9791890be53cd6c762cf29adc75259e09 | 1,925 | py | Python | app/core/tests/test_admin.py | osakoh/recipe-API | 2c7163a63479a16b64e885a27170b3d76ad554f1 | [
"MIT"
] | null | null | null | app/core/tests/test_admin.py | osakoh/recipe-API | 2c7163a63479a16b64e885a27170b3d76ad554f1 | [
"MIT"
] | null | null | null | app/core/tests/test_admin.py | osakoh/recipe-API | 2c7163a63479a16b64e885a27170b3d76ad554f1 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import Client, TestCase # Client: test request in the application for unit test
from django.urls import reverse # generate urls for django admin page
from django.utils.translation import gettext as _
class AdminSiteTests(TestCase):
"""Contains unit... | 42.777778 | 111 | 0.671688 | 266 | 1,925 | 4.74812 | 0.334586 | 0.049881 | 0.072051 | 0.045131 | 0.403009 | 0.219319 | 0.173397 | 0.173397 | 0.173397 | 0.173397 | 0 | 0.021178 | 0.215065 | 1,925 | 44 | 112 | 43.75 | 0.814692 | 0.34961 | 0 | 0.217391 | 1 | 0 | 0.086349 | 0.039474 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.173913 | false | 0.086957 | 0.173913 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
8065e364ac71356df1a3bb45b9af18ea539918a5 | 750 | py | Python | testing.py | louisack/instagram_bot | 83ef95f369fd25a16889a0c7b2d006cbc266481c | [
"MIT"
] | null | null | null | testing.py | louisack/instagram_bot | 83ef95f369fd25a16889a0c7b2d006cbc266481c | [
"MIT"
] | null | null | null | testing.py | louisack/instagram_bot | 83ef95f369fd25a16889a0c7b2d006cbc266481c | [
"MIT"
] | null | null | null | from time import sleep
from selenium import webdriver
from secrets import password
from selenium.webdriver.common.keys import Keys
from time import sleep, strftime
chromedriver_path ='/mnt/c/Users/louis/Documents/GitHub/instagram_bot/chromedriver.exe'
class Instabot:
def __init__(self, username, password):... | 39.473684 | 90 | 0.728 | 91 | 750 | 5.802198 | 0.527473 | 0.030303 | 0.05303 | 0.07197 | 0.087121 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.178667 | 750 | 18 | 91 | 41.666667 | 0.853896 | 0 | 0 | 0 | 0 | 0 | 0.228454 | 0.090287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.25 | 0.3125 | 0 | 0.4375 | 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 | 0 | 0 | 0 | 2 |
80693af1a223015fc9f6a5347749723828613409 | 102 | py | Python | library/test/test_compiler/testcorpus/91_line_numbers2_comp.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 278 | 2021-08-31T00:46:51.000Z | 2022-02-13T19:43:28.000Z | library/test/test_compiler/testcorpus/91_line_numbers2_comp.py | creativemindplus/skybison | d1740e08d8de85a0a56b650675717da67de171a0 | [
"CNRI-Python-GPL-Compatible"
] | 9 | 2021-11-05T22:28:43.000Z | 2021-11-23T08:39:04.000Z | library/test/test_compiler/testcorpus/91_line_numbers2_comp.py | tekknolagi/skybison | bea8fc2af0a70e7203b4c19f36c14a745512a335 | [
"CNRI-Python-GPL-Compatible"
] | 12 | 2021-08-31T07:49:54.000Z | 2021-10-08T01:09:01.000Z | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
a = [
x for x in y
]
| 20.4 | 76 | 0.627451 | 17 | 102 | 3.764706 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215686 | 102 | 4 | 77 | 25.5 | 0.8 | 0.72549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
807a1e3f55548f5582ab4aedb29f22ea0b5d8d38 | 1,072 | py | Python | SimpyTest.py | EternalVeryRookie/ParticleConstrainedOnCurve | d8248bb90560bc7193bca46886587412ca2fa70b | [
"MIT"
] | null | null | null | SimpyTest.py | EternalVeryRookie/ParticleConstrainedOnCurve | d8248bb90560bc7193bca46886587412ca2fa70b | [
"MIT"
] | null | null | null | SimpyTest.py | EternalVeryRookie/ParticleConstrainedOnCurve | d8248bb90560bc7193bca46886587412ca2fa70b | [
"MIT"
] | null | null | null | from sympy import *
#3次曲線と点の距離を陽に書き下すプログラム
X = Symbol("X")
Y = Symbol("Y")
t = Symbol("t")
l_x = Symbol("l_x")
l_y = Symbol("l_y")
a_x = Symbol("a_x")
b_x = Symbol("b_x")
c_x = Symbol("c_x")
d_x = Symbol("d_x")
a_y = Symbol("a_y")
b_y = Symbol("b_y")
c_y = Symbol("c_y")
d_y = Symbol("d_y")
print( expand( (X - (a... | 34.580645 | 250 | 0.477612 | 283 | 1,072 | 1.5053 | 0.081272 | 0.089202 | 0.070423 | 0.084507 | 0.394366 | 0.309859 | 0.295775 | 0.295775 | 0.295775 | 0.295775 | 0 | 0.039459 | 0.172575 | 1,072 | 30 | 251 | 35.733333 | 0.440812 | 0.01959 | 0 | 0 | 0 | 0 | 0.035238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.190476 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
807d9d3bca9503251f4ab16f47e0f015f14cf3d1 | 264 | py | Python | api/status/admin.py | OMO-NOSA/REST-API | 455295b34dc048c3756e0c5ae6c531c280ccc8c8 | [
"bzip2-1.0.6"
] | null | null | null | api/status/admin.py | OMO-NOSA/REST-API | 455295b34dc048c3756e0c5ae6c531c280ccc8c8 | [
"bzip2-1.0.6"
] | 11 | 2020-06-06T00:07:30.000Z | 2022-03-12T00:04:06.000Z | api/status/admin.py | OMO-NOSA/REST-API | 455295b34dc048c3756e0c5ae6c531c280ccc8c8 | [
"bzip2-1.0.6"
] | null | null | null | from django.contrib import admin
# Register your models here
from . forms import StatusForm
from .models import Status
class StatusAdmin(admin.ModelAdmin):
list_display = ['user', '__str__', 'image']
form = StatusForm
admin.site.register(Status) | 24 | 47 | 0.731061 | 32 | 264 | 5.875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17803 | 264 | 11 | 48 | 24 | 0.866359 | 0.094697 | 0 | 0 | 0 | 0 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
808ef805aa204de16575cc7dc058ed93b79e7158 | 175 | py | Python | mxnet/process.py | ParadoxZW/Face_Cam_Exe | 4623a8abb8d485f4c714081b6e3b78105e7423a7 | [
"MIT"
] | 4 | 2018-11-04T06:13:39.000Z | 2019-12-16T13:32:18.000Z | mxnet/process.py | ParadoxZW/Face_Cam_Exe | 4623a8abb8d485f4c714081b6e3b78105e7423a7 | [
"MIT"
] | null | null | null | mxnet/process.py | ParadoxZW/Face_Cam_Exe | 4623a8abb8d485f4c714081b6e3b78105e7423a7 | [
"MIT"
] | null | null | null | # import cv2
import os
# import numpy as np
list = os.listdir('./')
names = open('sn.txt', 'a')
for path in list:
names.write('(\'mxnet\\\\' + path +'\' ,\'.\'),\n') | 25 | 55 | 0.531429 | 25 | 175 | 3.72 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.2 | 175 | 7 | 55 | 25 | 0.657143 | 0.165714 | 0 | 0 | 0 | 0 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 2 |
808fdabed7258384deb736c07d8b5eb6ec74e18d | 97 | py | Python | src/constants.py | lbilic/Soft | ebdf52f28b60c89f8efb89b7b3cada01026950bc | [
"MIT"
] | 20 | 2018-12-18T06:46:04.000Z | 2022-02-20T16:04:46.000Z | src/constants.py | lbilic/Soft | ebdf52f28b60c89f8efb89b7b3cada01026950bc | [
"MIT"
] | 6 | 2018-03-30T13:12:05.000Z | 2018-03-30T13:12:16.000Z | src/constants.py | lbilic/Soft | ebdf52f28b60c89f8efb89b7b3cada01026950bc | [
"MIT"
] | 14 | 2018-06-19T13:33:41.000Z | 2021-12-22T13:58:38.000Z | FOREGROUND_THRESHOLD = .25
IMG_PATCH_SIZE = 16
NUM_CHANNELS = 3
NUM_LABELS = 2
PIXEL_DEPTH = 255
| 16.166667 | 26 | 0.783505 | 16 | 97 | 4.375 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 0.154639 | 97 | 5 | 27 | 19.4 | 0.743902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
8094696f113e89bc44cd16bd0305b2a5ac21b60d | 747 | py | Python | productive/producer/models/livestock_sales_channel.py | tapiaw38/productive-app | b862069700882a242b8ae350c146bb8950142436 | [
"MIT"
] | null | null | null | productive/producer/models/livestock_sales_channel.py | tapiaw38/productive-app | b862069700882a242b8ae350c146bb8950142436 | [
"MIT"
] | null | null | null | productive/producer/models/livestock_sales_channel.py | tapiaw38/productive-app | b862069700882a242b8ae350c146bb8950142436 | [
"MIT"
] | null | null | null | """ Model Sales Channel Production Livestock """
from django.db import models
class LivestockSalesChannel(models.Model):
""" Modelo canal de ventas
relacionado con la produccion """
production_livestock = models.OneToOneField(
"producer.ProductionLivestock",
related_name="livestock_sale... | 31.125 | 69 | 0.709505 | 76 | 747 | 6.75 | 0.565789 | 0.245614 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196787 | 747 | 24 | 69 | 31.125 | 0.855 | 0.127175 | 0 | 0 | 0 | 0 | 0.108661 | 0.080315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0.0625 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
80aabb1ddedea47d5c34aa5cba9b2d4d107cdc8e | 328 | py | Python | spiders/SpiderThread.py | mazhen18/ScrapyAccordingISBN | 43f8362c117247e03659c61d267b8cef435e8b64 | [
"MIT"
] | null | null | null | spiders/SpiderThread.py | mazhen18/ScrapyAccordingISBN | 43f8362c117247e03659c61d267b8cef435e8b64 | [
"MIT"
] | null | null | null | spiders/SpiderThread.py | mazhen18/ScrapyAccordingISBN | 43f8362c117247e03659c61d267b8cef435e8b64 | [
"MIT"
] | null | null | null | import threading
from local_utils.scrapyutils import scrap_bookinfos
class SpiderThread(threading.Thread):
""""""
def __init__(self, name, isbn):
"""Constructor"""
threading.Thread.__init__(self)
self.name = name
self.isbn = isbn
def run(self):
scrap_bookinfos(sel... | 20.5 | 51 | 0.646341 | 36 | 328 | 5.583333 | 0.5 | 0.139303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 328 | 15 | 52 | 21.866667 | 0.810484 | 0.033537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
80b3c7b4f629bbefdfd831c27a4993d38d32c777 | 2,656 | py | Python | ffg_geo/vector3.py | GarrettGutierrez1/FFG_Geo | 88a53407fbd7d0ae4908b4dfe4ee20f36be3d69f | [
"Apache-2.0"
] | null | null | null | ffg_geo/vector3.py | GarrettGutierrez1/FFG_Geo | 88a53407fbd7d0ae4908b4dfe4ee20f36be3d69f | [
"Apache-2.0"
] | null | null | null | ffg_geo/vector3.py | GarrettGutierrez1/FFG_Geo | 88a53407fbd7d0ae4908b4dfe4ee20f36be3d69f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""vector3.py
Representation of a vector in 3D.
License:
http://www.apache.org/licenses/LICENSE-2.0"""
import math
class Vector3(object):
def __init__(self, x: float, y: float, z: float) -> None:
self.__c = (x, y, z)
def __add__(self, other: 'Vector3') -> 'Vector3':
... | 30.181818 | 120 | 0.569277 | 395 | 2,656 | 3.529114 | 0.162025 | 0.114778 | 0.043042 | 0.120517 | 0.5 | 0.378766 | 0.286944 | 0.286944 | 0.252511 | 0.252511 | 0 | 0.044532 | 0.239081 | 2,656 | 87 | 121 | 30.528736 | 0.645225 | 0.047063 | 0 | 0.055556 | 0 | 0 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.018519 | 0.425926 | 0.907407 | 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 | 0 | 0 | 0 | 2 |
80b76c60f3c086d23ccee1b13b44a713627c6e19 | 142 | py | Python | web-programming/python/classes.py | KamalSinghKhanna/Web-Programming | 5c026ccca5b11257048f77ef95ff028c719e506a | [
"MIT"
] | null | null | null | web-programming/python/classes.py | KamalSinghKhanna/Web-Programming | 5c026ccca5b11257048f77ef95ff028c719e506a | [
"MIT"
] | null | null | null | web-programming/python/classes.py | KamalSinghKhanna/Web-Programming | 5c026ccca5b11257048f77ef95ff028c719e506a | [
"MIT"
] | null | null | null | class Point():
def __init__(self, input1, input2):
self.x = input1
self.y = input2
p = Point(2, 8)
print(p.x)
print(p.y) | 15.777778 | 39 | 0.570423 | 23 | 142 | 3.347826 | 0.565217 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058252 | 0.274648 | 142 | 9 | 40 | 15.777778 | 0.68932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0.285714 | 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 | 0 | 0 | 2 |
80d0c88dd8f53a8f60bd96e1c996107c2f40ffba | 33,529 | py | Python | Manage/VM.py | btalebali/pysphere | cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43 | [
"Unlicense"
] | null | null | null | Manage/VM.py | btalebali/pysphere | cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43 | [
"Unlicense"
] | null | null | null | Manage/VM.py | btalebali/pysphere | cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43 | [
"Unlicense"
] | null | null | null | from time import sleep
from pysphere import VITask, FaultTypes
from pysphere.vi_virtual_machine import VIVirtualMachine
from pysphere.resources.vi_exception import VIException, VIApiException
from pysphere.vi_mor import VIMor
from pysphere.vi_task import VITask
import ssl
import pypacksrc
import re, subprocess
def ... | 35.442918 | 192 | 0.744609 | 4,347 | 33,529 | 5.482172 | 0.10375 | 0.039864 | 0.07058 | 0.028324 | 0.657631 | 0.632873 | 0.593345 | 0.555621 | 0.53829 | 0.508036 | 0 | 0.009813 | 0.151988 | 33,529 | 945 | 193 | 35.480423 | 0.828333 | 0.061738 | 0 | 0.583206 | 0 | 0.001527 | 0.099344 | 0.007021 | 0 | 0 | 0 | 0.003175 | 0 | 0 | null | null | 0.109924 | 0.018321 | null | null | 0.003053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
80e89147ce7b44ce4bd4468078ab29db90b94ca9 | 543 | py | Python | pmp/utils/ilp/solvers.py | Koozco/pmp | 3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf | [
"MIT"
] | 1 | 2020-03-30T18:56:02.000Z | 2020-03-30T18:56:02.000Z | pmp/utils/ilp/solvers.py | Koozco/pmp | 3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf | [
"MIT"
] | 9 | 2018-11-19T00:04:52.000Z | 2022-03-11T23:51:18.000Z | pmp/utils/ilp/solvers.py | Koozco/pmp | 3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf | [
"MIT"
] | 2 | 2018-12-02T10:43:34.000Z | 2020-03-30T10:15:50.000Z | from enum import Enum
from importlib import import_module
class Solvers(Enum):
CPLEX = 1
GUROBI = 2
class MissingSolver(Exception):
pass
def init_solver(solver):
try:
module = import_module(__solver_module_names[solver], __package__)
return module
except (ImportError, NameError... | 20.884615 | 109 | 0.707182 | 65 | 543 | 5.646154 | 0.584615 | 0.065395 | 0.092643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00464 | 0.206262 | 543 | 25 | 110 | 21.72 | 0.846868 | 0 | 0 | 0 | 0 | 0 | 0.180479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.235294 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
038576c4c54a502ae3fea546a14b8861fa4938ab | 1,271 | py | Python | Finance_Project/login/migrations/0001_initial.py | Sharvil24600/Personal-Finance-Manager | 18f6621422e475cdf262958125f4247d5e208d6d | [
"Apache-2.0"
] | null | null | null | Finance_Project/login/migrations/0001_initial.py | Sharvil24600/Personal-Finance-Manager | 18f6621422e475cdf262958125f4247d5e208d6d | [
"Apache-2.0"
] | null | null | null | Finance_Project/login/migrations/0001_initial.py | Sharvil24600/Personal-Finance-Manager | 18f6621422e475cdf262958125f4247d5e208d6d | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-26 19:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Employee',
fields=[
('empid', models.Intege... | 31 | 84 | 0.52557 | 116 | 1,271 | 5.586207 | 0.456897 | 0.111111 | 0.166667 | 0.222222 | 0.453704 | 0.412037 | 0.268519 | 0.126543 | 0 | 0 | 0 | 0.045509 | 0.343037 | 1,271 | 40 | 85 | 31.775 | 0.730539 | 0.035405 | 0 | 0.30303 | 1 | 0 | 0.111928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.030303 | 0.030303 | 0 | 0.151515 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
038c3b268e2edad7c0c53700732f427733b24ccf | 475 | py | Python | pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 4 | 2020-02-14T10:50:03.000Z | 2022-03-25T04:15:06.000Z | pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 60 | 2020-09-14T09:10:20.000Z | 2022-03-25T17:51:42.000Z | pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py | pyobs/pyobs-core | e3401e63eb31587c2bc535f7346b7e4ef69d64ab | [
"MIT"
] | 2 | 2020-10-14T09:34:57.000Z | 2021-04-27T09:35:57.000Z | from sleekxmpp.xmlstream.stanzabase import ElementBase
class MethodTimeout(ElementBase):
name = 'methodTimeout'
namespace = 'jabber:iq:rpc'
plugin_attrib = 'method_timeout'
interfaces = set(('timeout',))
subinterfaces = set(())
plugin_attrib_map = {}
plugin_tag_map = {}
def get_timeou... | 26.388889 | 58 | 0.684211 | 54 | 475 | 5.759259 | 0.555556 | 0.07717 | 0.090032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195789 | 475 | 17 | 59 | 27.941176 | 0.814136 | 0 | 0 | 0 | 0 | 0 | 0.128421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0.153846 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
03942ff247857cfc7ab89958bfa86b31937706ed | 269 | py | Python | mytime/mytime.py | lamter/mydealutil | 26934e6e61b40327cb9cabc43e41cd01caf5bd2b | [
"MIT"
] | null | null | null | mytime/mytime.py | lamter/mydealutil | 26934e6e61b40327cb9cabc43e41cd01caf5bd2b | [
"MIT"
] | null | null | null | mytime/mytime.py | lamter/mydealutil | 26934e6e61b40327cb9cabc43e41cd01caf5bd2b | [
"MIT"
] | null | null | null | # coding: utf-8
import doctest
import datetime
def d2s(date):
"""
日期转为字符串
>>> d2s(datetime.date(2016, 8, 16))
'2016-08-16'
:param date:
:return:
"""
return date.strftime("%Y-%m-%d")
if __name__ == "__mian__":
doctest.testmod()
| 12.809524 | 39 | 0.565056 | 34 | 269 | 4.235294 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 0.256506 | 269 | 20 | 40 | 13.45 | 0.63 | 0.35316 | 0 | 0 | 0 | 0 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
03998c5d830b7f944385c3c0a7a6f0123d3a1156 | 1,114 | py | Python | dask/store/tests/test_store.py | rolando-contribute/dask | a7e7ef16475e0486f3d3e8e80016f9a23f62c710 | [
"BSD-3-Clause"
] | null | null | null | dask/store/tests/test_store.py | rolando-contribute/dask | a7e7ef16475e0486f3d3e8e80016f9a23f62c710 | [
"BSD-3-Clause"
] | null | null | null | dask/store/tests/test_store.py | rolando-contribute/dask | a7e7ef16475e0486f3d3e8e80016f9a23f62c710 | [
"BSD-3-Clause"
] | 1 | 2021-11-11T13:45:57.000Z | 2021-11-11T13:45:57.000Z | from dask.store import Store
from operator import add, mul
from dask.utils import raises
def inc(x):
return x + 1
def test_basic():
s = Store()
s['x'] = 1
s['y'] = (inc, 'x')
s['z'] = (add, 'x', 'y')
assert s.data == set(['x'])
assert s['z'] == 3
assert 'x' in s.data
assert s.c... | 21.018868 | 60 | 0.528725 | 180 | 1,114 | 3.222222 | 0.227778 | 0.108621 | 0.103448 | 0.165517 | 0.45 | 0.363793 | 0.182759 | 0.182759 | 0.182759 | 0.182759 | 0 | 0.025301 | 0.254937 | 1,114 | 52 | 61 | 21.423077 | 0.673494 | 0 | 0 | 0.216216 | 0 | 0 | 0.02693 | 0 | 0 | 0 | 0 | 0 | 0.540541 | 1 | 0.108108 | false | 0 | 0.081081 | 0.027027 | 0.216216 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
03c353c49d50ef67c6d81977950a525f9133c41a | 904 | py | Python | face_pose_dataset/estimation/interface.py | samuelbaltanas/face-pose-dataset | 84c864c155ac7c0b231032d403c0e2b2bc10b871 | [
"MIT"
] | 1 | 2020-06-18T07:58:46.000Z | 2020-06-18T07:58:46.000Z | face_pose_dataset/estimation/interface.py | samuelbaltanas/face-pose-dataset | 84c864c155ac7c0b231032d403c0e2b2bc10b871 | [
"MIT"
] | null | null | null | face_pose_dataset/estimation/interface.py | samuelbaltanas/face-pose-dataset | 84c864c155ac7c0b231032d403c0e2b2bc10b871 | [
"MIT"
] | null | null | null | import abc
import numpy as np
from face_pose_dataset import core
class Estimator(abc.ABC):
def run(self, frame: np.ndarray) -> core.Angle:
raise NotImplementedError("Estimator is an abstract class")
def preprocess_image(self, frame: np.ndarray, bbox: np.ndarray) -> np.ndarray:
""" Proceed w... | 26.588235 | 82 | 0.622788 | 101 | 904 | 5.504951 | 0.594059 | 0.064748 | 0.039568 | 0.064748 | 0.190647 | 0.190647 | 0.190647 | 0.190647 | 0 | 0 | 0 | 0 | 0.290929 | 904 | 33 | 83 | 27.393939 | 0.867395 | 0.363938 | 0 | 0.2 | 0 | 0 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0.1 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
03d58fb77cc50e8c7e2d0563b74268be5018aa59 | 314 | py | Python | src/Zadanie3/Checker.py | TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska | 264823f21d220a353528e5aa4fba9ff424a7ed5b | [
"MIT"
] | null | null | null | src/Zadanie3/Checker.py | TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska | 264823f21d220a353528e5aa4fba9ff424a7ed5b | [
"MIT"
] | null | null | null | src/Zadanie3/Checker.py | TestowanieAutomatyczneUG/laboratorium-9-LudwikaMalinowska | 264823f21d220a353528e5aa4fba9ff424a7ed5b | [
"MIT"
] | null | null | null |
from Zadanie3.AlarmClock import AlarmClock
class Checker:
def __init__(self):
self.alarm_clock = AlarmClock()
def remainder(self, file):
hour = self.alarm_clock.getTime()
if hour > 17:
self.alarm_clock.playWavFile(file)
self.alarm_clock.wavWasPlayed()
| 19.625 | 46 | 0.640127 | 35 | 314 | 5.514286 | 0.542857 | 0.186529 | 0.290155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0131 | 0.270701 | 314 | 15 | 47 | 20.933333 | 0.829694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
03d8328b61bc799b5ba1024c6c14cfed870ecffb | 1,038 | py | Python | Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py | AkashKV-1998/Warehouse-Management-System | 33d96c52064262156ddcd459a36e2f63d4df2c30 | [
"Apache-2.0"
] | 3 | 2021-09-05T16:09:58.000Z | 2022-03-25T14:32:34.000Z | Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py | AkashKV-1998/Warehouse-Management-System | 33d96c52064262156ddcd459a36e2f63d4df2c30 | [
"Apache-2.0"
] | null | null | null | Python Code/Wh_manage-master/Wh_manage-master/wh_manage/productDetails/models.py | AkashKV-1998/Warehouse-Management-System | 33d96c52064262156ddcd459a36e2f63d4df2c30 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class Category(models.Model):
Name = models.CharField(max_length=50)
def __str__(self):
return self.Name
class Manufacturer(models.Model):
Name = models.CharField(max_length = 100)
AddressLine1 = mode... | 30.529412 | 80 | 0.735067 | 121 | 1,038 | 6.090909 | 0.355372 | 0.122117 | 0.14654 | 0.195387 | 0.34057 | 0.230665 | 0.184532 | 0 | 0 | 0 | 0 | 0.023041 | 0.163776 | 1,038 | 33 | 81 | 31.454545 | 0.826037 | 0.020231 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.083333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
03eaec8f3f1adfdd6c5d23c7746d28621b17b634 | 185 | py | Python | Stock Managment System/__clieinit__.py | AutoSiliconeHoses/SMS | 11a0d8262d8cc87bfb0da94f008f34f9b12df2fd | [
"Unlicense"
] | null | null | null | Stock Managment System/__clieinit__.py | AutoSiliconeHoses/SMS | 11a0d8262d8cc87bfb0da94f008f34f9b12df2fd | [
"Unlicense"
] | 23 | 2019-07-05T10:07:58.000Z | 2021-06-02T00:22:16.000Z | Stock Managment System/__clieinit__.py | AutoSiliconeHoses/SMS | 11a0d8262d8cc87bfb0da94f008f34f9b12df2fd | [
"Unlicense"
] | null | null | null | import sys, string, os, yaml
import Client.client as client
with open("config.yml", 'r') as cfg:
config = yaml.load(cfg, Loader=yaml.FullLoader)
client.runClient("192.168.1.131")
| 23.125 | 51 | 0.713514 | 30 | 185 | 4.4 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.135135 | 185 | 7 | 52 | 26.428571 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
03ee7a6ae2c980b37bf1c84311246a9eeb2654e7 | 21,227 | py | Python | tests/Buffer_Test.py | elmar-hinz/Python.V | 687202f2fbf66affdbb500095bbfa944be0dab5f | [
"MIT"
] | 9 | 2016-01-12T20:32:54.000Z | 2021-02-10T13:41:35.000Z | tests/Buffer_Test.py | elmar-hinz/Python.Vii | 687202f2fbf66affdbb500095bbfa944be0dab5f | [
"MIT"
] | null | null | null | tests/Buffer_Test.py | elmar-hinz/Python.Vii | 687202f2fbf66affdbb500095bbfa944be0dab5f | [
"MIT"
] | null | null | null | from nose.tools import *
from vii.Buffer import *
from vii.Signals import slot
class Receiver:
def __init__(self):
slot("updatedBuffer", self)
slot("filledBuffer", self)
slot("deletedFromBuffer", self)
slot("insertedIntoBuffer", self)
self.seen = {}
def receive(self, s... | 36.28547 | 84 | 0.590286 | 2,800 | 21,227 | 4.373929 | 0.067143 | 0.143709 | 0.082306 | 0.063444 | 0.806157 | 0.757737 | 0.688658 | 0.618274 | 0.576141 | 0.546093 | 0 | 0.057004 | 0.24629 | 21,227 | 584 | 85 | 36.347603 | 0.708482 | 0.004852 | 0 | 0.489754 | 0 | 0 | 0.110072 | 0.018512 | 0 | 0 | 0 | 0.001712 | 0.32377 | 1 | 0.143443 | false | 0 | 0.006148 | 0.004098 | 0.157787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 2 |
ff0d6655608abd51b92ee26a4cf60baaeb0ced3d | 4,038 | py | Python | booktime/settings.py | adityatelange/django-ebook-audiobook-website | c07647df78b1807d585b3f14678e7726ba89f5c7 | [
"MIT"
] | 2 | 2019-09-10T09:42:23.000Z | 2019-11-28T08:56:09.000Z | booktime/settings.py | adityatelange/django-ebook-audiobook-website | c07647df78b1807d585b3f14678e7726ba89f5c7 | [
"MIT"
] | null | null | null | booktime/settings.py | adityatelange/django-ebook-audiobook-website | c07647df78b1807d585b3f14678e7726ba89f5c7 | [
"MIT"
] | null | null | null | """
Django settings for booktime project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | 26.92 | 91 | 0.687717 | 449 | 4,038 | 6.040089 | 0.400891 | 0.071903 | 0.043879 | 0.05531 | 0.196165 | 0.16556 | 0.082965 | 0.072271 | 0.044248 | 0 | 0 | 0.008969 | 0.17162 | 4,038 | 149 | 92 | 27.100671 | 0.801794 | 0.228331 | 0 | 0.020408 | 1 | 0 | 0.492228 | 0.381477 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.061224 | 0.010204 | 0 | 0.010204 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2089574d1cedb0d9edbb6825a3a98e6d9859fb54 | 6,649 | py | Python | config/settings/base.py | SimeonAleksov/shawty | 9c51c0c0d64950045d5b7edf8bf86c4e084e5920 | [
"Apache-2.0"
] | null | null | null | config/settings/base.py | SimeonAleksov/shawty | 9c51c0c0d64950045d5b7edf8bf86c4e084e5920 | [
"Apache-2.0"
] | 3 | 2022-02-28T12:04:19.000Z | 2022-03-02T12:05:29.000Z | config/settings/base.py | SimeonAleksov/shawty | 9c51c0c0d64950045d5b7edf8bf86c4e084e5920 | [
"Apache-2.0"
] | null | null | null | """
Base settings to build other settings files upon.
"""
import os
from pathlib import Path
import environ
# ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
ROOT_DIR = (environ.Path(__file__) - 3)
APPS_DIR = ROOT_DIR.path("shawty")
NUXT_APP_DIR = ROOT_DIR.path('client')
env = environ.Env()
READ_... | 30.360731 | 90 | 0.676342 | 669 | 6,649 | 6.502242 | 0.360239 | 0.068736 | 0.046897 | 0.042759 | 0.112184 | 0.10023 | 0.042299 | 0.042299 | 0.023448 | 0.023448 | 0 | 0.005678 | 0.152354 | 6,649 | 218 | 91 | 30.5 | 0.766146 | 0.112799 | 0 | 0.017647 | 0 | 0 | 0.531495 | 0.407729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.017647 | 0 | 0.017647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2096b0b7ee6813ddc0e5f25a4499c5eee7710cfc | 701 | py | Python | phillydata/reversion_utils.py | ebrelsford/django-phillydata | 444a3ff9d436cd276530534642dd092402278ba5 | [
"BSD-3-Clause"
] | null | null | null | phillydata/reversion_utils.py | ebrelsford/django-phillydata | 444a3ff9d436cd276530534642dd092402278ba5 | [
"BSD-3-Clause"
] | null | null | null | phillydata/reversion_utils.py | ebrelsford/django-phillydata | 444a3ff9d436cd276530534642dd092402278ba5 | [
"BSD-3-Clause"
] | 1 | 2020-01-23T04:59:36.000Z | 2020-01-23T04:59:36.000Z | from django.utils.importlib import import_module
from reversion import default_revision_manager
class InitialRevisionManagerMixin(object):
def _save_initial_revision(self, obj):
# try to load admin
try:
import_module("%s.admin" % obj.__module__.rsplit('.', 1)[0])
except Impor... | 29.208333 | 74 | 0.619116 | 76 | 701 | 5.407895 | 0.513158 | 0.109489 | 0.107056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00404 | 0.293866 | 701 | 23 | 75 | 30.478261 | 0.826263 | 0.044223 | 0 | 0 | 0 | 0 | 0.037481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
209acd05a3b02a15fcea937bc6fde4ebaf25e231 | 7,684 | py | Python | poli/python/poli/modal.py | Humhu/percepto | 4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f | [
"AFL-3.0"
] | 1 | 2021-06-15T09:34:24.000Z | 2021-06-15T09:34:24.000Z | poli/python/poli/modal.py | Humhu/percepto | 4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f | [
"AFL-3.0"
] | null | null | null | poli/python/poli/modal.py | Humhu/percepto | 4a45cce7dd294a8ce0b962bb68cae5c2b48c3b7f | [
"AFL-3.0"
] | null | null | null | """This policy contains classes for modal policies.
"""
import numpy as np
from sklearn.cluster import KMeans
#from sklearn.svm import SVC, SVR
#from sklearn.naive_bayes import GaussianNB
from sklearn.neighbors import KNeighborsClassifier
from sklearn.neighbors.kde import KernelDensity
from poli import importance_sa... | 34.769231 | 95 | 0.593441 | 975 | 7,684 | 4.498462 | 0.207179 | 0.05016 | 0.04446 | 0.02394 | 0.166667 | 0.120839 | 0.082079 | 0.060192 | 0.039216 | 0.02052 | 0 | 0.005999 | 0.30583 | 7,684 | 220 | 96 | 34.927273 | 0.816273 | 0.154997 | 0 | 0.089552 | 0 | 0 | 0.010857 | 0 | 0 | 0 | 0 | 0.013636 | 0 | 0 | null | null | 0 | 0.067164 | null | null | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
20a2e7e453f2ab360ec62bed41bb72c2802359a4 | 1,381 | py | Python | utils/py_utils.py | KAIST-AILab/PyOpenDial | c9bca653c18ccc082dc8b86b4a8feee9ed00a75b | [
"MIT"
] | 9 | 2019-09-23T01:56:43.000Z | 2022-03-13T17:58:40.000Z | utils/py_utils.py | KAIST-AILab/PyOpenDial | c9bca653c18ccc082dc8b86b4a8feee9ed00a75b | [
"MIT"
] | 2 | 2019-11-18T17:02:30.000Z | 2021-07-14T15:47:08.000Z | utils/py_utils.py | KAIST-AILab/PyOpenDial | c9bca653c18ccc082dc8b86b4a8feee9ed00a75b | [
"MIT"
] | 1 | 2022-02-08T06:41:19.000Z | 2022-02-08T06:41:19.000Z | import time
import threading
def current_time_millis():
return int(round(time.time() * 1000))
def get_class(kls):
parts = kls.split('.')
module = ".".join(parts[:-1])
m = __import__(module)
for comp in parts[1:]:
m = getattr(m, comp)
return m
def get_class_name(instance):
retur... | 24.22807 | 116 | 0.616944 | 165 | 1,381 | 4.757576 | 0.315152 | 0.035669 | 0.042038 | 0.038217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005687 | 0.236061 | 1,381 | 56 | 117 | 24.660714 | 0.738389 | 0 | 0 | 0 | 0 | 0 | 0.015206 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0.081081 | 0.081081 | 0.621622 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
20c83995292e682498e01d8809458f2de8d3b1a0 | 1,875 | py | Python | faculty/clients/auth.py | jkeelan/faculty | 3cf50f243fba1bfe7a346de88654d3616ac35b15 | [
"Apache-2.0"
] | null | null | null | faculty/clients/auth.py | jkeelan/faculty | 3cf50f243fba1bfe7a346de88654d3616ac35b15 | [
"Apache-2.0"
] | null | null | null | faculty/clients/auth.py | jkeelan/faculty | 3cf50f243fba1bfe7a346de88654d3616ac35b15 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2019 Faculty Science Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 30.241935 | 74 | 0.691733 | 235 | 1,875 | 5.459574 | 0.514894 | 0.046765 | 0.020265 | 0.024942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008191 | 0.218667 | 1,875 | 61 | 75 | 30.737705 | 0.867577 | 0.736533 | 0 | 0 | 0 | 0 | 0.057441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
20df1df6d17c6f6ed2e728f416d617232f800db9 | 2,681 | py | Python | COVIDSafepassage/passsystem/admin.py | VICS-CORE/safepassage_server | 58bc04dbfa55430c0218567211e5259de77518ae | [
"MIT"
] | null | null | null | COVIDSafepassage/passsystem/admin.py | VICS-CORE/safepassage_server | 58bc04dbfa55430c0218567211e5259de77518ae | [
"MIT"
] | 8 | 2020-04-25T09:42:25.000Z | 2022-03-12T00:23:32.000Z | COVIDSafepassage/passsystem/admin.py | VICS-CORE/safepassage_server | 58bc04dbfa55430c0218567211e5259de77518ae | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Pass, User, Organisation, Roles, Vehicle, Identity, Team
from treebeard.admin import TreeAdmin
from treebeard.forms import movenodeform_factory
class AdminUserView(admin.ModelAdmin):
model = User
readonly_fields = ('user_id',)
list_display = ... | 37.760563 | 121 | 0.70981 | 276 | 2,681 | 6.615942 | 0.322464 | 0.03943 | 0.06517 | 0.021906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174935 | 2,681 | 70 | 122 | 38.3 | 0.825497 | 0.096233 | 0 | 0 | 0 | 0 | 0.323103 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.190476 | 0.095238 | 0 | 0.738095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
20e63d705639da49401b6833ac2f7010dc3cf8e6 | 23,612 | py | Python | apps/cumulative_gdd.py | ua-snap/usda-dash | caeab072728a5c78b63b1547985f3e6476b348fa | [
"MIT"
] | null | null | null | apps/cumulative_gdd.py | ua-snap/usda-dash | caeab072728a5c78b63b1547985f3e6476b348fa | [
"MIT"
] | 17 | 2020-01-22T00:15:52.000Z | 2021-11-04T21:35:37.000Z | apps/cumulative_gdd.py | ua-snap/usda-dash | caeab072728a5c78b63b1547985f3e6476b348fa | [
"MIT"
] | 1 | 2022-03-31T04:39:34.000Z | 2022-03-31T04:39:34.000Z | #!/usr/bin/env python3
"""
Template for SNAP Dash apps.
"""
import os
import json
import plotly.graph_objs as go
import xarray as xr
import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_dangerously_set_inner_html as ddsih
import dash_table
import pandas as pd
import geopandas ... | 34.825959 | 3,692 | 0.380103 | 2,677 | 23,612 | 3.316773 | 0.167352 | 0.003829 | 0.016218 | 0.009911 | 0.108909 | 0.072418 | 0.052146 | 0.027706 | 0.009686 | 0.009686 | 0 | 0.182796 | 0.448585 | 23,612 | 677 | 3,693 | 34.8774 | 0.497389 | 0.164366 | 0 | 0.098847 | 0 | 0.001647 | 0.196025 | 0.004092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003295 | false | 0 | 0.028007 | 0 | 0.032949 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4555138ee889d6a8eb7274ba38acfdb8b6a01114 | 36,944 | py | Python | adapt/jedparse/jedParser.py | aeschylus/Adapt | 3a769e621c7cdb9ca201bb1a75484fdeb84105ea | [
"MIT"
] | null | null | null | adapt/jedparse/jedParser.py | aeschylus/Adapt | 3a769e621c7cdb9ca201bb1a75484fdeb84105ea | [
"MIT"
] | null | null | null | adapt/jedparse/jedParser.py | aeschylus/Adapt | 3a769e621c7cdb9ca201bb1a75484fdeb84105ea | [
"MIT"
] | 1 | 2021-01-20T21:26:10.000Z | 2021-01-20T21:26:10.000Z | # $ANTLR 3.1 jed.g 2014-02-17 18:49:15
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
import os
import sys
from bitarray import bitarray
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
F=9
STAR=19
OTHER=5
C=18
L=11
N=12
J=10
V=15
ONE=7
Q=14
P=13
EOF=-1
... | 27.570149 | 151 | 0.481242 | 4,144 | 36,944 | 4.105454 | 0.087838 | 0.05343 | 0.055017 | 0.041263 | 0.626932 | 0.519368 | 0.445365 | 0.391054 | 0.342444 | 0.305355 | 0 | 0.074956 | 0.418958 | 36,944 | 1,339 | 152 | 27.590739 | 0.7176 | 0.138561 | 0 | 0.451524 | 0 | 0.004155 | 0.014954 | 0.006228 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083102 | 0.009695 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
455a1e9bca84b3eaa5bb4b8f7d096c8385e30f66 | 307 | py | Python | Chapter 11/B05385_11_xx_runping.py | jef-n/Mastering-QGIS-Second-Edition | 96ae03293dd8d54c9ef916962580b69758cf8287 | [
"MIT"
] | 18 | 2016-11-10T06:18:45.000Z | 2022-02-27T14:49:00.000Z | Chapter 11/B05385_11_xx_runping.py | jef-n/Mastering-QGIS-Second-Edition | 96ae03293dd8d54c9ef916962580b69758cf8287 | [
"MIT"
] | null | null | null | Chapter 11/B05385_11_xx_runping.py | jef-n/Mastering-QGIS-Second-Edition | 96ae03293dd8d54c9ef916962580b69758cf8287 | [
"MIT"
] | 13 | 2017-10-24T21:21:51.000Z | 2020-06-27T15:41:54.000Z | import subprocess
import time
proc = subprocess.Popen(
["ping", "-c", "10", "localhost"],
stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
stderr=subprocess.PIPE)
counter = 0
for line in iter(proc.stdout.readline, ''):
print line
progress.setPercentage( counter )
counter +=10
| 18.058824 | 43 | 0.667752 | 36 | 307 | 5.694444 | 0.638889 | 0.204878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020325 | 0.198697 | 307 | 16 | 44 | 19.1875 | 0.813008 | 0 | 0 | 0 | 0 | 0 | 0.055738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
455a97ef8134576551c4ea049b3b9d369f2092fc | 630 | py | Python | for_short.py | deepakxyz/get-earth | eb4e594d499452b711966a819237e4d6160d2a17 | [
"MIT"
] | 2 | 2021-05-21T07:03:14.000Z | 2021-08-05T14:35:37.000Z | for_short.py | deepakxyz/get-earth | eb4e594d499452b711966a819237e4d6160d2a17 | [
"MIT"
] | null | null | null | for_short.py | deepakxyz/get-earth | eb4e594d499452b711966a819237e4d6160d2a17 | [
"MIT"
] | null | null | null | from get_earth import GetEarth
# 835 , 1416
# p11 = (835, 1416)
# p12 = (885,1516)
# p1 = (886,1416)
# p2 = (935,1516)
# p1 = (885, 1415)
# p2 = (890, 1420)
# p1 = (890,1415)
# p2 = (895,1420)
# p1 = (835, 1416)
# p2 = (885,1516) # start where you end it
# p1 = (885, 1416)
# p2 = (935,1516)
# p1 = (835,1516)
# ... | 14.318182 | 43 | 0.555556 | 105 | 630 | 3.304762 | 0.390476 | 0.069164 | 0.051873 | 0.074928 | 0.086455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.402439 | 0.219048 | 630 | 44 | 44 | 14.318182 | 0.302846 | 0.636508 | 0 | 0 | 0 | 0 | 0.171569 | 0.171569 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
456a57330f91e998b987f4f3389f029412491435 | 268 | py | Python | code/client/05_year/client.py | honzajavorek/co-je-api | f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f | [
"MIT"
] | 11 | 2018-07-13T14:40:56.000Z | 2021-07-09T07:27:37.000Z | code/client/05_year/client.py | honzajavorek/co-je-api | f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f | [
"MIT"
] | 167 | 2018-06-30T13:40:18.000Z | 2021-07-27T06:27:54.000Z | code/client/05_year/client.py | honzajavorek/co-je-api | f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f | [
"MIT"
] | 2 | 2018-11-07T12:19:39.000Z | 2018-11-10T10:03:21.000Z | import requests
response = requests.get("https://cojeapi.honzajavorek.now.sh/movies")
movies = response.json()
for movie in movies:
response = requests.get(movie['url'])
movie_details = response.json()
print(movie_details['name'], movie_details['year'])
| 26.8 | 69 | 0.720149 | 34 | 268 | 5.588235 | 0.558824 | 0.189474 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126866 | 268 | 9 | 70 | 29.777778 | 0.811966 | 0 | 0 | 0 | 0 | 0 | 0.197761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
456d637d0c21bbaf1dc386e6ddbca0f048272275 | 785 | py | Python | Max/Max_0295_20200201.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | 1 | 2020-01-08T14:10:24.000Z | 2020-01-08T14:10:24.000Z | Max/Max_0295_20200201.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | null | null | null | Max/Max_0295_20200201.py | Morek999/OMSCS_Taiwan_Leetcode | 8ec18e08e9313bc3326846ca6ef6e569380a133f | [
"MIT"
] | null | null | null | """
295. Find Median from Data Stream
https://leetcode.com/problems/find-median-from-data-stream/
Time complexity: O()
Space complexity: O()
Solution:
"""
from typing import List
class MedianFinder:
def __init__(self):
"""
initialize your data structure here.
"""
se... | 23.787879 | 68 | 0.559236 | 99 | 785 | 4.383838 | 0.545455 | 0.112903 | 0.0553 | 0.062212 | 0.179724 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020221 | 0.307006 | 785 | 32 | 69 | 24.53125 | 0.777574 | 0.403822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4588f69996e623a4acf1af26a59a4813391ce065 | 248 | py | Python | hackerrank/regex/intro/05-word.py | everarch/psets | 7fddb2a01ce8c4e601d63c3be3b11cd2113be035 | [
"MIT"
] | null | null | null | hackerrank/regex/intro/05-word.py | everarch/psets | 7fddb2a01ce8c4e601d63c3be3b11cd2113be035 | [
"MIT"
] | null | null | null | hackerrank/regex/intro/05-word.py | everarch/psets | 7fddb2a01ce8c4e601d63c3be3b11cd2113be035 | [
"MIT"
] | null | null | null | #
# Matching Word & Non-Word Character
#
# https://www.hackerrank.com/challenges/matching-word-non-word/problem
#
Regex_Pattern = r"\w{3}\W\w{10}\W\w{3}" # Do not delete 'r'.
import re
print(str(bool(re.search(Regex_Pattern, input()))).lower())
| 20.666667 | 70 | 0.689516 | 41 | 248 | 4.121951 | 0.658537 | 0.142012 | 0.177515 | 0.224852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.104839 | 248 | 11 | 71 | 22.545455 | 0.743243 | 0.491935 | 0 | 0 | 0 | 0 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 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 | 0 | 0 | 0 | 2 |
458bd70a94f9a431da5e652ce85be0f3753bf347 | 7,254 | py | Python | fgapiserverconfig.py | FutureGateway/geAPIServer | 486056784e2927342d0079aef12be7e05d3832f5 | [
"Apache-2.0"
] | null | null | null | fgapiserverconfig.py | FutureGateway/geAPIServer | 486056784e2927342d0079aef12be7e05d3832f5 | [
"Apache-2.0"
] | null | null | null | fgapiserverconfig.py | FutureGateway/geAPIServer | 486056784e2927342d0079aef12be7e05d3832f5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2015:
# Istituto Nazionale di Fisica Nucleare (INFN), Italy
# Consorzio COMETA (COMETA), Italy
#
# See http://www.infn.it and and http://www.consorzio-cometa.it for details on
# the copyright holders.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not... | 39.423913 | 78 | 0.602426 | 757 | 7,254 | 5.558785 | 0.254954 | 0.088403 | 0.118821 | 0.113118 | 0.105038 | 0.094106 | 0.025665 | 0 | 0 | 0 | 0 | 0.009418 | 0.282741 | 7,254 | 183 | 79 | 39.639344 | 0.799347 | 0.117728 | 0 | 0.068702 | 0 | 0 | 0.336047 | 0.019574 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.061069 | 0.030534 | null | null | 0.015267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
458fd64c7c730e3cd0e0feae971b00d775ff1c85 | 3,843 | py | Python | spikeforest/forestview/sortingresultcontext.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:07:19.000Z | 2021-09-23T01:07:19.000Z | spikeforest/forestview/sortingresultcontext.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | null | null | null | spikeforest/forestview/sortingresultcontext.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:07:21.000Z | 2021-09-23T01:07:21.000Z | from spikeforest import SFMdaSortingExtractor
from copy import deepcopy
from mountaintools import client as mt
from .recordingcontext import RecordingContext
import mtlogging
class SortingResultContext():
def __init__(self, *, sorting_result_object, recording_context):
self._signal_handlers = dict()
... | 33.417391 | 112 | 0.684361 | 433 | 3,843 | 5.736721 | 0.228637 | 0.048712 | 0.068841 | 0.074074 | 0.198873 | 0.098229 | 0.07649 | 0 | 0 | 0 | 0 | 0 | 0.225085 | 3,843 | 114 | 113 | 33.710526 | 0.834117 | 0.031226 | 0 | 0.024691 | 0 | 0 | 0.094944 | 0.013986 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.271605 | false | 0 | 0.061728 | 0.123457 | 0.506173 | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
45937b2939b14680c7fe8bf6cdcae998c44d589b | 2,364 | py | Python | Violent_Python/Chapter2/2.063injectPage.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | 2 | 2019-07-30T13:47:43.000Z | 2021-12-27T09:03:47.000Z | Violent_Python/Chapter2/2.063injectPage.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | null | null | null | Violent_Python/Chapter2/2.063injectPage.py | suleisulei/Violent_Python_Examples | df88fc8b0dde5fac135647d46130e98a4f6b90e2 | [
"Apache-2.0"
] | null | null | null | # _*_coding:utf8-
import ftplib
from Violent_Python import _Config
'''
This code, we need learning how to upload file or download file with target FTP.
Note:Make sure your "write enable equal YES" in your /etc/vsftpd.conf
Document:
---------
1. we logon target FTP, and use ftp.retrlines(cmd,callback) function down... | 33.771429 | 108 | 0.600677 | 297 | 2,364 | 4.737374 | 0.434343 | 0.025586 | 0.024165 | 0.028429 | 0.157783 | 0.088131 | 0.088131 | 0.088131 | 0.088131 | 0.088131 | 0 | 0.010626 | 0.283418 | 2,364 | 70 | 109 | 33.771429 | 0.819953 | 0.026227 | 0 | 0.357143 | 0 | 0 | 0.281731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0.071429 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
45ab9ea2dc5f4b23d74ac29f8266f535d3be4159 | 2,703 | py | Python | KeystrokeDynamics.py | lupoermeyo/Behavioural-Biometrics | 0212f1de39412476f8eb852315eb2775f8e9e454 | [
"Apache-2.0"
] | null | null | null | KeystrokeDynamics.py | lupoermeyo/Behavioural-Biometrics | 0212f1de39412476f8eb852315eb2775f8e9e454 | [
"Apache-2.0"
] | null | null | null | KeystrokeDynamics.py | lupoermeyo/Behavioural-Biometrics | 0212f1de39412476f8eb852315eb2775f8e9e454 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
* @file KeystrokeDynamics.py
* @brief Keystroke generator capture for L. Antichi Thesis
*
* @author Leonardo Antichi (<leo.antichi@sutd.uniroma3.it>)
* @version 1.7
* @since 1.0
*
* @copyright Copyright (c) 2017-2018 Roma Tre, Italy
* @copyright Apache License, Version 2.0
"""
import win32a... | 32.963415 | 151 | 0.660007 | 479 | 2,703 | 3.601253 | 0.304802 | 0.041739 | 0.017391 | 0.034783 | 0.244058 | 0.185507 | 0.158841 | 0.126377 | 0.074203 | 0.052174 | 0 | 0.056459 | 0.18091 | 2,703 | 81 | 152 | 33.37037 | 0.722674 | 0.007769 | 0 | 0.126984 | 0 | 0 | 0.142976 | 0.013339 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0.079365 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
45b5fa70386d8105f33dc75fae82e50e32e78e74 | 502 | py | Python | loaf/projects/migrations/0004_project_apt.py | phj95304/loaf_django | da3dd778fc11f4cd5583c4f4537a9bf8760756b9 | [
"MIT"
] | null | null | null | loaf/projects/migrations/0004_project_apt.py | phj95304/loaf_django | da3dd778fc11f4cd5583c4f4537a9bf8760756b9 | [
"MIT"
] | null | null | null | loaf/projects/migrations/0004_project_apt.py | phj95304/loaf_django | da3dd778fc11f4cd5583c4f4537a9bf8760756b9 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2018-09-08 09:03
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0003_auto_20180908_1750'),
]
operations = [
migrations.AddField(
model_name='p... | 25.1 | 131 | 0.655378 | 58 | 502 | 5.568966 | 0.758621 | 0.080495 | 0.130031 | 0.167183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090439 | 0.229084 | 502 | 19 | 132 | 26.421053 | 0.744186 | 0.089641 | 0 | 0 | 1 | 0 | 0.09011 | 0.050549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
45bdba9e5dd956513cc7f98d220c282da5cc1f1f | 6,354 | py | Python | i2c_max6639.py | glitchub/plio | 5746dfa10fcd74d65e14d554b59883412bfc5bb4 | [
"Unlicense"
] | 1 | 2020-02-18T04:46:01.000Z | 2020-02-18T04:46:01.000Z | i2c_max6639.py | glitchub/plio | 5746dfa10fcd74d65e14d554b59883412bfc5bb4 | [
"Unlicense"
] | null | null | null | i2c_max6639.py | glitchub/plio | 5746dfa10fcd74d65e14d554b59883412bfc5bb4 | [
"Unlicense"
] | null | null | null | # Driver for MAX 6639 fan controller
# In normal operation:
# reset() possibly with options
# set_fan_ config() for each fan
# set_pwm_mode() or set_rpm_mode() for each fan.
from __future__ import print_function
try: from i2c import i2c
except: from .i2c import i2c
class max6639:
# registers, some may ac... | 43.520548 | 126 | 0.567202 | 954 | 6,354 | 3.716981 | 0.25891 | 0.019741 | 0.043429 | 0.018331 | 0.101805 | 0.055838 | 0.019741 | 0 | 0 | 0 | 0 | 0.095947 | 0.312716 | 6,354 | 145 | 127 | 43.82069 | 0.716052 | 0.269594 | 0 | 0.021277 | 0 | 0 | 0.027221 | 0 | 0 | 0 | 0.052265 | 0 | 0.06383 | 1 | 0.234043 | false | 0 | 0.042553 | 0.148936 | 0.37234 | 0.053191 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
45d222639670f52b0e3c20513666dbe93a9ab705 | 549 | py | Python | lab4.py | kayla-koyne/ia241-github-1 | b731725ed6aabddf123713a5fe963cef53a0d2e4 | [
"MIT"
] | null | null | null | lab4.py | kayla-koyne/ia241-github-1 | b731725ed6aabddf123713a5fe963cef53a0d2e4 | [
"MIT"
] | null | null | null | lab4.py | kayla-koyne/ia241-github-1 | b731725ed6aabddf123713a5fe963cef53a0d2e4 | [
"MIT"
] | null | null | null | '''
lab4
'''
#3.1
my_dict= {
'name':'Tom',
'id':123
}
print(my_dict)
#3.2
print(my_dict.values())
print(my_dict.keys())
#3.3
my_id='321'
print(my_id)
#3.4
my_dict.pop('name')
print(my_dict)
#3.5
my_tweet= {
"tweet_id":1138,
"coordinates": (-75, 40),
"visited_countries": ["GR", "HK", "MY"]
}
print(my_twee... | 10.98 | 46 | 0.639344 | 95 | 549 | 3.473684 | 0.389474 | 0.169697 | 0.133333 | 0.209091 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077244 | 0.127505 | 549 | 49 | 47 | 11.204082 | 0.611691 | 0.058288 | 0 | 0.217391 | 0 | 0 | 0.247505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.434783 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
45d46add472272ae767f9079eea6562c74ec4a68 | 2,546 | py | Python | app/models.py | barbaramootian/personal_blog | 0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6 | [
"Unlicense",
"MIT"
] | null | null | null | app/models.py | barbaramootian/personal_blog | 0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6 | [
"Unlicense",
"MIT"
] | null | null | null | app/models.py | barbaramootian/personal_blog | 0cbdf4d4c71c6dd04a0e1ce3d059ce0816179ca6 | [
"Unlicense",
"MIT"
] | null | null | null | from datetime import datetime
from . import db, login_manager
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
class User(db.Model, UserMixin):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(225)... | 34.876712 | 81 | 0.692852 | 345 | 2,546 | 4.950725 | 0.26087 | 0.084309 | 0.105386 | 0.065574 | 0.385246 | 0.266979 | 0.227166 | 0.163349 | 0.064403 | 0.064403 | 0 | 0.008045 | 0.170071 | 2,546 | 72 | 82 | 35.361111 | 0.800284 | 0 | 0 | 0.175439 | 1 | 0 | 0.10055 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175439 | false | 0.175439 | 0.070175 | 0.087719 | 0.807018 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
45e5abbbfec147ed3e87c908305dea56797ae5b0 | 461 | py | Python | setup.py | AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli | f924757bd51e6ebb3e7565166c617921cb73c9f6 | [
"MIT"
] | null | null | null | setup.py | AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli | f924757bd51e6ebb3e7565166c617921cb73c9f6 | [
"MIT"
] | null | null | null | setup.py | AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli | f924757bd51e6ebb3e7565166c617921cb73c9f6 | [
"MIT"
] | null | null | null | from setuptools import setup
setup( name = "awslambdacicd-cli",
version = "0.1.2",
author = "Janos Potecki",
license = "MIT",
packages = [
"awslambdacontinuousdelivery.cli",
"awslambdacontinuousdelivery.cli.templates.python"
],
entry_points = {
... | 27.117647 | 78 | 0.548807 | 33 | 461 | 7.484848 | 0.757576 | 0.364372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.347072 | 461 | 16 | 79 | 28.8125 | 0.810631 | 0 | 0 | 0 | 0 | 0 | 0.418655 | 0.26898 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
afd810b8d49ea85961df9d02610ae8c6179f739e | 1,941 | py | Python | api_v1/api_generate_token.py | China-jp/leancloud-medical | 18b3cdf6474cf8c667c546a898285318c92d2df9 | [
"MIT"
] | null | null | null | api_v1/api_generate_token.py | China-jp/leancloud-medical | 18b3cdf6474cf8c667c546a898285318c92d2df9 | [
"MIT"
] | null | null | null | api_v1/api_generate_token.py | China-jp/leancloud-medical | 18b3cdf6474cf8c667c546a898285318c92d2df9 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from flask.ext.restful import abort
from leancloud.errors import LeanCloudError
from leancloud.query import Query
from leancloud.user import User
from handlers import request_validator
from models.auth_token import AuthToken
import datetime
import uuid
__author__ = 'Panmax'
from flask import re... | 35.944444 | 125 | 0.563112 | 192 | 1,941 | 5.552083 | 0.385417 | 0.061914 | 0.060038 | 0.035647 | 0.17636 | 0.129456 | 0.129456 | 0.129456 | 0.129456 | 0.129456 | 0 | 0.006988 | 0.336425 | 1,941 | 53 | 126 | 36.622642 | 0.820652 | 0.020093 | 0 | 0.229167 | 0 | 0 | 0.091101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0.229167 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
afffc8cbd42fd63be0b6fa9742ef2ac0df2a388d | 2,509 | py | Python | avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py | coreylowman/avalanche | 9c1e7765f1577c400ec0c57260221bcffd9566a2 | [
"MIT"
] | 1 | 2021-09-15T13:57:27.000Z | 2021-09-15T13:57:27.000Z | avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py | coreylowman/avalanche | 9c1e7765f1577c400ec0c57260221bcffd9566a2 | [
"MIT"
] | null | null | null | avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py | coreylowman/avalanche | 9c1e7765f1577c400ec0c57260221bcffd9566a2 | [
"MIT"
] | null | null | null | from typing import List, Tuple, Dict
from avalanche.benchmarks.datasets.imagenet_data import (
IMAGENET_TORCHVISION_WNID_TO_IDX,
IMAGENET_TORCHVISION_CLASSES,
)
MINI_IMAGENET_WNIDS: List[str] = [
"n02110341",
"n01930112",
"n04509417",
"n04067472",
"n04515003",
"n02120079",
"n039246... | 19.3 | 78 | 0.606218 | 214 | 2,509 | 6.859813 | 0.607477 | 0.098093 | 0.024523 | 0.03406 | 0.145777 | 0.024523 | 0 | 0 | 0 | 0 | 0 | 0.422386 | 0.245118 | 2,509 | 129 | 79 | 19.449612 | 0.352693 | 0 | 0 | 0 | 0 | 0 | 0.394978 | 0.028697 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.01626 | 0 | 0.01626 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3016f8c0af4fa861d8eee4ecfb546c16c631c0a | 465 | py | Python | scripts/09.py | hstern2/pet-fish-eric | 38cf51613d8a4256bc0c3248fb5c114b83307972 | [
"MIT"
] | null | null | null | scripts/09.py | hstern2/pet-fish-eric | 38cf51613d8a4256bc0c3248fb5c114b83307972 | [
"MIT"
] | null | null | null | scripts/09.py | hstern2/pet-fish-eric | 38cf51613d8a4256bc0c3248fb5c114b83307972 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
### while loops
#a = 10
#while a <= 100000:
# a *= 10
# print(a)
#print('this is no longer in the loop because not indented')
#a = 10
#while a > 0:
# print(a)
# if a == 5:
# break
# a -= 1
#a = 10
#while a > 0:
# a -= 1
# if a % 2 == 0:
# continue # skip if ... | 14.090909 | 60 | 0.464516 | 78 | 465 | 2.769231 | 0.448718 | 0.055556 | 0.111111 | 0.125 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087248 | 0.35914 | 465 | 32 | 61 | 14.53125 | 0.637584 | 0.866667 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b315b6f3d8230ef919a037f3cf78113e344d7733 | 421 | py | Python | Ex_74.py | soldierloko/Curso-em-Video | d867366425f72fe15903cb17cdc222a7fe7a3831 | [
"MIT"
] | null | null | null | Ex_74.py | soldierloko/Curso-em-Video | d867366425f72fe15903cb17cdc222a7fe7a3831 | [
"MIT"
] | null | null | null | Ex_74.py | soldierloko/Curso-em-Video | d867366425f72fe15903cb17cdc222a7fe7a3831 | [
"MIT"
] | null | null | null | #Crie um programa que vai gerar cinco números aleatórios e colocar em um tupla
#Depois, mostra a listagem de números gerados e tambem indique o menor e o maior valor que estão na tupla
from random import randint
n = (randint(1,10),randint(1,10),randint(1,10),randint(1,10),randint(1,10))
print(f'Sorteei os valores ... | 35.083333 | 106 | 0.733967 | 78 | 421 | 3.961538 | 0.551282 | 0.12945 | 0.161812 | 0.220065 | 0.161812 | 0.161812 | 0.161812 | 0.161812 | 0.161812 | 0.161812 | 0 | 0.042135 | 0.154394 | 421 | 11 | 107 | 38.272727 | 0.825843 | 0.429929 | 0 | 0 | 0 | 0 | 0.396624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
b329aa0077fedcf56909ba21624d7b73c8f4b2e3 | 1,638 | py | Python | python/scripts/tools/m3qa_unit_test.py | ahoarau/m3meka | 237739f0266ce60aaa3013b0d2b22fc07b6374c4 | [
"MIT"
] | 1 | 2015-06-19T12:14:18.000Z | 2015-06-19T12:14:18.000Z | python/scripts/tools/m3qa_unit_test.py | semeyerz/m3meka | 6e5d6b73ad3ebdd8429497923e601eae65d8b2fe | [
"MIT"
] | null | null | null | python/scripts/tools/m3qa_unit_test.py | semeyerz/m3meka | 6e5d6b73ad3ebdd8429497923e601eae65d8b2fe | [
"MIT"
] | 2 | 2015-11-27T09:25:54.000Z | 2021-08-16T16:29:22.000Z | #! /usr/bin/python
#Copyright 2008, Meka Robotics
#All rights reserved.
#http://mekabot.com
#Redistribution and use in source and binary forms, with or without
#modification, are permitted.
#THIS SOFTWARE IS PROVIDED BY THE Copyright HOLDERS AND CONTRIBUTORS
#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDI... | 32.117647 | 131 | 0.700855 | 224 | 1,638 | 5.035714 | 0.616071 | 0.031915 | 0.026596 | 0.039007 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013466 | 0.138584 | 1,638 | 50 | 132 | 32.76 | 0.785967 | 0.562882 | 0 | 0 | 0 | 0 | 0.225641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.052632 | 0.052632 | null | null | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
b33f00818b733f056f6f2336e9dfd9652c3b1327 | 597 | py | Python | tests/components/jellyfin/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/jellyfin/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | tests/components/jellyfin/const.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for the Jellyfin integration tests."""
from typing import Final
from jellyfin_apiclient_python.connection_manager import CONNECTION_STATE
TEST_URL: Final = "https://example.com"
TEST_USERNAME: Final = "test-username"
TEST_PASSWORD: Final = "test-password"
MOCK_SUCCESFUL_CONNECTION_STATE: Final = {"Stat... | 33.166667 | 85 | 0.785595 | 71 | 597 | 6.28169 | 0.478873 | 0.168161 | 0.089686 | 0.112108 | 0.179372 | 0.179372 | 0 | 0 | 0 | 0 | 0 | 0.005545 | 0.093802 | 597 | 17 | 86 | 35.117647 | 0.818854 | 0.075377 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.1 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b3411f8bec2f4f619f83a292d7fea679c2334e6a | 5,583 | py | Python | django_resto/settings/base.py | sunilsm7/django_resto | b7698653093af7e6f26dd0d0c7b8d6046b402ea4 | [
"MIT"
] | 1 | 2017-08-03T01:40:12.000Z | 2017-08-03T01:40:12.000Z | django_resto/settings/base.py | sunilsm7/django_resto | b7698653093af7e6f26dd0d0c7b8d6046b402ea4 | [
"MIT"
] | null | null | null | django_resto/settings/base.py | sunilsm7/django_resto | b7698653093af7e6f26dd0d0c7b8d6046b402ea4 | [
"MIT"
] | null | null | null | """
Django settings for django_resto project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | 28.340102 | 105 | 0.716819 | 629 | 5,583 | 6.173291 | 0.375199 | 0.053567 | 0.035024 | 0.045068 | 0.178213 | 0.165079 | 0.114087 | 0.114087 | 0.063611 | 0.031934 | 0 | 0.028902 | 0.163353 | 5,583 | 197 | 106 | 28.340102 | 0.802398 | 0.249866 | 0 | 0 | 1 | 0 | 0.497231 | 0.39947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051724 | 0.008621 | 0 | 0.008621 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
b345ff960926f97d7b31e1112f2806939c9439c7 | 1,127 | py | Python | db_etl_update_db/queries.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 7 | 2021-02-14T12:42:56.000Z | 2022-03-02T09:14:22.000Z | db_etl_update_db/queries.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 19 | 2021-11-03T09:21:00.000Z | 2022-03-07T09:26:47.000Z | db_etl_update_db/queries.py | publichealthengland/coronavirus-dashboard-pipeline-etl | efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c | [
"MIT"
] | 2 | 2021-03-03T16:52:51.000Z | 2022-02-28T16:22:33.000Z | #!/usr/bin python3
STATS_QUERY = """\
INSERT INTO covid19.release_stats (release_id, record_count)
SELECT ts.release_id AS id, COUNT(*) AS counter
FROM covid19.time_series AS ts
WHERE ts.partition_id = ANY('{partitions}'::VARCHAR[])
GROUP BY ts.release_id
ON CONFLICT ( release_id ) DO
UPDATE SET record_count = EXC... | 43.346154 | 75 | 0.651287 | 149 | 1,127 | 4.845638 | 0.328859 | 0.180055 | 0.166205 | 0.222992 | 0.519391 | 0.353186 | 0.274238 | 0.274238 | 0.174515 | 0 | 0 | 0.031486 | 0.295475 | 1,127 | 25 | 76 | 45.08 | 0.877834 | 0.015084 | 0 | 0.095238 | 0 | 0 | 0.953111 | 0.066727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3665ca9272e655d3f741a8fee81a4c7439cc490 | 631 | py | Python | setup.py | claranet/boto-mfa-profile | c789cc01fccf9014862ae64ee36895b1458c0237 | [
"MIT"
] | 1 | 2019-05-15T04:46:22.000Z | 2019-05-15T04:46:22.000Z | setup.py | claranet/boto-mfa-profile | c789cc01fccf9014862ae64ee36895b1458c0237 | [
"MIT"
] | 2 | 2019-10-28T14:44:14.000Z | 2020-05-27T12:14:16.000Z | setup.py | claranet/boto-source-profile-mfa | c789cc01fccf9014862ae64ee36895b1458c0237 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='boto-source-profile-mfa',
version='0.0.11',
description='AWS boto helper library for reusing MFA tokens in profiles with the same source profile',
author='Raymond Butcher',
author_email='ray.butcher@claranet.uk',
url='https://gith... | 24.269231 | 106 | 0.62599 | 74 | 631 | 5.202703 | 0.702703 | 0.168831 | 0.176623 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010438 | 0.240887 | 631 | 25 | 107 | 25.24 | 0.793319 | 0.031696 | 0 | 0.136364 | 0 | 0 | 0.490164 | 0.165574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b367a99d2eea02a6be2ff588beeb604ce121f954 | 870 | py | Python | packs/kubernetes/actions/secret_delete.py | pearsontechnology/st2contrib | f60ff517079b91de7ee84fdf91cd742784e2731e | [
"Apache-2.0"
] | 5 | 2016-10-11T11:52:53.000Z | 2017-06-15T05:21:05.000Z | packs/kubernetes/actions/secret_delete.py | pearsontechnology/st2contrib | f60ff517079b91de7ee84fdf91cd742784e2731e | [
"Apache-2.0"
] | 25 | 2016-07-28T17:50:35.000Z | 2017-09-25T09:26:18.000Z | packs/kubernetes/actions/secret_delete.py | pearsontechnology/st2contrib | f60ff517079b91de7ee84fdf91cd742784e2731e | [
"Apache-2.0"
] | 1 | 2017-05-05T19:12:01.000Z | 2017-05-05T19:12:01.000Z | #!/usr/bin/python
import json
import base64
from st2actions.runners.pythonrunner import Action
from lib import k8s
from datetime import datetime
deleteoptions = {}
class SecretDelete(Action):
def run(self, ns, name):
k8suser = self.config.get('user')
k8spass = self.config.get('password')
... | 29 | 90 | 0.67931 | 109 | 870 | 5.330275 | 0.587156 | 0.051635 | 0.067126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024927 | 0.216092 | 870 | 29 | 91 | 30 | 0.826979 | 0.018391 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.105263 | 0.263158 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
b370896f47311d0de8df8d3319b14b23e5a40b32 | 912 | py | Python | agmcs/0010/0010.py | saurabh896/python-1 | f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7 | [
"MIT"
] | 3,976 | 2015-01-01T15:49:39.000Z | 2022-03-31T03:47:56.000Z | agmcs/0010/0010.py | oyesam7/python-1 | 220734af09fa09a6f615d4f1b4612a0ab75d91d1 | [
"MIT"
] | 97 | 2015-01-11T02:59:46.000Z | 2022-03-16T14:01:56.000Z | agmcs/0010/0010.py | oyesam7/python-1 | 220734af09fa09a6f615d4f1b4612a0ab75d91d1 | [
"MIT"
] | 3,533 | 2015-01-01T06:19:30.000Z | 2022-03-28T13:14:54.000Z | from PIL import Image, ImageDraw, ImageFont
import random
im = Image.new('RGBA',(120,50),(255,255,255))
text = random.sample('abcdefghijklmnopqrstuvwxyz\
ABCDEFGHIJKLMNOPQRSTUVWXYZ',4)
draw = ImageDraw.Draw(im)
font = ImageFont.truetype("msyh.ttf",40)
x=0
y=0
for i in xrange(200):
x1 = random.randint(0,120)
... | 27.636364 | 84 | 0.671053 | 148 | 912 | 4.135135 | 0.337838 | 0.318627 | 0.205882 | 0.093137 | 0.264706 | 0.264706 | 0.264706 | 0.264706 | 0 | 0 | 0 | 0.137356 | 0.145833 | 912 | 32 | 85 | 28.5 | 0.648267 | 0 | 0 | 0 | 0 | 0 | 0.01864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2fa25397bfe9a1bf7f421c4c55cc856fda3104b8 | 435 | py | Python | openet_client/exceptions.py | water3d/openet | c3c0b8c2c4fadd163121702c37e9f862f93d5bd2 | [
"MIT"
] | null | null | null | openet_client/exceptions.py | water3d/openet | c3c0b8c2c4fadd163121702c37e9f862f93d5bd2 | [
"MIT"
] | null | null | null | openet_client/exceptions.py | water3d/openet | c3c0b8c2c4fadd163121702c37e9f862f93d5bd2 | [
"MIT"
] | null | null | null | class DataProcessingError(RuntimeError):
def __init__(self, text, data=None):
self.text = text
self.data = data
def __str__(self):
return self.text
def __repr__(self):
return self.text
class AuthenticationError(PermissionError):
pass
class BadRequestError(ValueError... | 17.4 | 43 | 0.694253 | 43 | 435 | 6.744186 | 0.44186 | 0.110345 | 0.096552 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229885 | 435 | 25 | 44 | 17.4 | 0.865672 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.25 | 0 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
2fac0c4396b2a1e4917a749d9f069dc4251273b4 | 541 | py | Python | src/errors/errors.py | stdevAdrianPaez/cool-compiler-2020 | 7a783a0a69eabe9d7c80bdeddeabbb9d06445aba | [
"MIT"
] | null | null | null | src/errors/errors.py | stdevAdrianPaez/cool-compiler-2020 | 7a783a0a69eabe9d7c80bdeddeabbb9d06445aba | [
"MIT"
] | null | null | null | src/errors/errors.py | stdevAdrianPaez/cool-compiler-2020 | 7a783a0a69eabe9d7c80bdeddeabbb9d06445aba | [
"MIT"
] | null | null | null | """
Copyright (c) 2020 School of Math and Computer Science, University of Havana
COOL compiler project
"""
LEXER_ERRORS = []
PARSER_ERRORS = []
SEMANTIC_ERRORS = []
def add_lexer_error(line, column, message):
LEXER_ERRORS.append(f'({line}, {column}) - LexicographicError: {message}')
def add_parser_error(line,... | 24.590909 | 78 | 0.715342 | 66 | 541 | 5.681818 | 0.439394 | 0.16 | 0.12 | 0.176 | 0.184 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.134935 | 541 | 21 | 79 | 25.761905 | 0.792735 | 0.182994 | 0 | 0 | 0 | 0 | 0.324885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 2 |
2fb1dc0865cc26fff0ec597322348e9156d9ffbc | 298 | py | Python | ssb_sparktools/utils/utils.py | statisticsnorway/SSB_Spark_tools | 95271519b0babcfbc9ec2c93503e287d776eaedb | [
"Apache-2.0"
] | 1 | 2021-06-25T06:16:50.000Z | 2021-06-25T06:16:50.000Z | ssb_sparktools/utils/utils.py | statisticsnorway/SSB_Spark_tools | 95271519b0babcfbc9ec2c93503e287d776eaedb | [
"Apache-2.0"
] | 6 | 2020-09-04T07:32:29.000Z | 2021-07-08T11:04:02.000Z | ssb_sparktools/utils/utils.py | statisticsnorway/SSB_Spark_tools | 95271519b0babcfbc9ec2c93503e287d776eaedb | [
"Apache-2.0"
] | null | null | null | import os
import sys
def set_runpath(repo):
repo = '/' + repo
if os.getcwd()[:13] =='/home/runner/':
os.chdir(os.getcwd()[:(os.getcwd().index(repo) + ((len(repo)*2)+1))] )
else:
os.chdir(os.getcwd()[:(os.getcwd().index(repo) + ((len(repo))+1))] )
return os.getcwd() | 29.8 | 78 | 0.550336 | 43 | 298 | 3.790698 | 0.44186 | 0.294479 | 0.110429 | 0.184049 | 0.478528 | 0.478528 | 0.478528 | 0.478528 | 0.478528 | 0.478528 | 0 | 0.020747 | 0.191275 | 298 | 10 | 79 | 29.8 | 0.655602 | 0 | 0 | 0 | 0 | 0 | 0.046823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2fb29c745c8c1dc478e042622cebe679734864c2 | 185 | py | Python | home/tests.py | mennonitengemeinde/church_site | ae9ef5f0f78811cecd734705339511dc0efb8340 | [
"MIT"
] | null | null | null | home/tests.py | mennonitengemeinde/church_site | ae9ef5f0f78811cecd734705339511dc0efb8340 | [
"MIT"
] | 44 | 2020-05-13T20:15:26.000Z | 2022-03-04T02:58:58.000Z | home/tests.py | mennonitengemeinde/church_site | ae9ef5f0f78811cecd734705339511dc0efb8340 | [
"MIT"
] | 4 | 2020-06-05T17:59:52.000Z | 2021-02-06T19:09:43.000Z | from django.test import TestCase
class HomeTests(TestCase):
def test_home_page(self):
response = self.client.get('/')
self.assertEqual(response.status_code, 200)
| 20.555556 | 51 | 0.697297 | 23 | 185 | 5.478261 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.194595 | 185 | 8 | 52 | 23.125 | 0.825503 | 0 | 0 | 0 | 0 | 0 | 0.005405 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 0 | 2 |
2fb8fc30976ab33b0e15ec82896875c44dae5fcd | 108 | py | Python | lang/py/cookbook/v2/source/cb2_1_23_exm_4.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_23_exm_4.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/cookbook/v2/source/cb2_1_23_exm_4.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | outfile = codecs.open('out.html', mode='w', encoding='ascii',
errors='html_replace')
| 36 | 61 | 0.555556 | 12 | 108 | 4.916667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268519 | 108 | 2 | 62 | 54 | 0.746835 | 0 | 0 | 0 | 0 | 0 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
2fc96bd9749d33c45053ca208a6959e1316c8c1b | 320 | py | Python | zhaquirks/linkind/__init__.py | Siglis-AG/zha-device-handlers | 2e8d6a117fbc1bec50cad463a8a2dcf948588838 | [
"Apache-2.0"
] | 56 | 2018-12-07T19:45:36.000Z | 2020-03-30T15:01:58.000Z | zhaquirks/linkind/__init__.py | Siglis-AG/zha-device-handlers | 2e8d6a117fbc1bec50cad463a8a2dcf948588838 | [
"Apache-2.0"
] | 207 | 2018-12-07T20:34:30.000Z | 2020-04-03T11:50:39.000Z | zhaquirks/linkind/__init__.py | Siglis-AG/zha-device-handlers | 2e8d6a117fbc1bec50cad463a8a2dcf948588838 | [
"Apache-2.0"
] | 65 | 2018-12-08T01:11:41.000Z | 2020-03-24T18:23:17.000Z | """Linkind sensors."""
from zigpy.quirks import CustomCluster
import zigpy.types as t
from zigpy.zcl.clusters.general import Basic
class LinkindBasicCluster(CustomCluster, Basic):
"""Linkind Basic cluster."""
attributes = Basic.attributes.copy()
attributes.update({0x0400A: ("linkind", t.uint8_t, True)})
| 26.666667 | 62 | 0.740625 | 38 | 320 | 6.210526 | 0.605263 | 0.076271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021583 | 0.13125 | 320 | 11 | 63 | 29.090909 | 0.827338 | 0.121875 | 0 | 0 | 0 | 0 | 0.025926 | 0 | 0 | 0 | 0.025926 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2fcf43e4ac6a474d5fc5c5ee29da212ada27726d | 933 | py | Python | exercicios/Exercicios Diversos/ex026.py | Roberto-Sartore/Python | 98f91f13cf78d761893c4a1f3264ed999244d32b | [
"MIT"
] | null | null | null | exercicios/Exercicios Diversos/ex026.py | Roberto-Sartore/Python | 98f91f13cf78d761893c4a1f3264ed999244d32b | [
"MIT"
] | null | null | null | exercicios/Exercicios Diversos/ex026.py | Roberto-Sartore/Python | 98f91f13cf78d761893c4a1f3264ed999244d32b | [
"MIT"
] | null | null | null | """Faça um programa que pergunte o preço de três produtos e informe qual produto você deve comprar,
sabendo que a decisão é sempre pelo mais barato"""
p1 = float(input('Digite a 1º valor R$ : ').replace(',', '.'))
p2 = float(input('Digite a 2º valor R$ : ').replace(',', '.'))
p3 = float(input('Digite a 3º valor R$ : ... | 34.555556 | 99 | 0.620579 | 167 | 933 | 3.467066 | 0.341317 | 0.062176 | 0.134715 | 0.088083 | 0.343696 | 0.214162 | 0.151986 | 0 | 0 | 0 | 0 | 0.059238 | 0.240086 | 933 | 26 | 100 | 35.884615 | 0.757405 | 0.219721 | 0 | 0 | 0 | 0 | 0.418056 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
2fd9979293758751fadd18729d122db6a313068a | 2,192 | py | Python | anaf/changes/urls.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 2 | 2016-03-15T13:17:26.000Z | 2017-03-22T15:39:01.000Z | anaf/changes/urls.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T21:42:58.000Z | 2022-03-11T23:13:07.000Z | anaf/changes/urls.py | tovmeod/anaf | 80e4a00532ce6f4ce76c5ffc858ff90c759a9879 | [
"BSD-3-Clause"
] | 4 | 2016-08-31T16:55:41.000Z | 2020-04-22T18:48:54.000Z | """
Change Control module URLs
"""
from django.conf.urls import url, patterns
from anaf.changes import views
urlpatterns = patterns('anaf.changes.views',
url(r'^(\.(?P<response_format>\w+))?$', views.index, name='changes_index'),
url(r'^owned(\.(?P<response_format>\w+))?$... | 57.684211 | 120 | 0.485858 | 237 | 2,192 | 4.257384 | 0.14346 | 0.051536 | 0.193261 | 0.206145 | 0.393459 | 0.393459 | 0.20218 | 0.20218 | 0.20218 | 0.20218 | 0 | 0 | 0.320712 | 2,192 | 37 | 121 | 59.243243 | 0.677636 | 0.02281 | 0 | 0 | 0 | 0 | 0.422608 | 0.342402 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 2 |
2fdfd7c8de26fc11a29c348de139d64a9c7837bf | 1,034 | py | Python | bin/analytic/catalog/regressor.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 3 | 2015-10-22T14:57:27.000Z | 2016-08-25T08:16:02.000Z | bin/analytic/catalog/regressor.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2017-08-28T14:42:46.000Z | 2017-08-28T16:08:37.000Z | bin/analytic/catalog/regressor.py | DarkEnergyScienceCollaboration/chroma | 64fc123a065334b307654f29b3bea52885b46ec8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | """ Simple wrapper for sklearn regession classes that scales features to have
zero mean and unit variance. Can also easily unscale features of predicted data.
"""
import numpy as np
class regress():
def __init__(self, regressor):
self.regressor = regressor
def add_training_data(self, train_X, train_... | 36.928571 | 90 | 0.689555 | 167 | 1,034 | 3.946108 | 0.275449 | 0.259484 | 0.151745 | 0.113809 | 0.254932 | 0.084977 | 0.084977 | 0.084977 | 0.084977 | 0 | 0 | 0.002472 | 0.217602 | 1,034 | 27 | 91 | 38.296296 | 0.812114 | 0.149903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.368421 | 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 | 0 | 0 | 0 | 0 | 2 |
2ff575594cb4f67394b6f254007e19ef1d93f244 | 352 | py | Python | aws_ips/utils.py | thepawn1/aws_ips | a708f6a59e94544ffd8e8c9f03885b340a370d13 | [
"Apache-2.0"
] | null | null | null | aws_ips/utils.py | thepawn1/aws_ips | a708f6a59e94544ffd8e8c9f03885b340a370d13 | [
"Apache-2.0"
] | null | null | null | aws_ips/utils.py | thepawn1/aws_ips | a708f6a59e94544ffd8e8c9f03885b340a370d13 | [
"Apache-2.0"
] | 1 | 2020-06-21T06:12:20.000Z | 2020-06-21T06:12:20.000Z | """
Various utils
"""
import json
import socket
def jprint(anything):
"""
pprint() alternative
"""
print(json.dumps(anything, default=str, sort_keys=True, indent=4))
def resolve_host(hostname):
"""
Resolve hostname
"""
try:
return socket.gethostbyname(hostname)
except soc... | 15.304348 | 70 | 0.625 | 37 | 352 | 5.891892 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003774 | 0.247159 | 352 | 22 | 71 | 16 | 0.818868 | 0.144886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
6406120a79bb00b6afca248985fb442df2597681 | 206 | py | Python | ch3/multiple.sequences.while.py | ldmcdaniel/learning_python | 63717c397cd75e45a8aef909d4b601466cd6036a | [
"MIT"
] | 30 | 2016-10-28T18:14:15.000Z | 2021-08-29T15:20:56.000Z | ch3/multiple.sequences.while.py | ldmcdaniel/learning_python | 63717c397cd75e45a8aef909d4b601466cd6036a | [
"MIT"
] | null | null | null | ch3/multiple.sequences.while.py | ldmcdaniel/learning_python | 63717c397cd75e45a8aef909d4b601466cd6036a | [
"MIT"
] | 31 | 2016-09-10T22:47:12.000Z | 2022-03-13T04:50:35.000Z | people = ['Jonas', 'Julio', 'Mike', 'Mez']
ages = [25, 30, 31, 39]
position = 0
while position < len(people):
person = people[position]
age = ages[position]
print(person, age)
position += 1
| 22.888889 | 42 | 0.601942 | 27 | 206 | 4.592593 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.223301 | 206 | 8 | 43 | 25.75 | 0.7125 | 0 | 0 | 0 | 0 | 0 | 0.082524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 | 0 | 0 | 2 |
640af0aa12d484396d4c73ccee7e916d7e9d9211 | 1,870 | py | Python | Django_Rest_Framework/api/entidades/vaga.py | Drack112/Treina-Web-Django | 555ecce1c351769240eefd4340b63e547f3bd2a9 | [
"MIT"
] | null | null | null | Django_Rest_Framework/api/entidades/vaga.py | Drack112/Treina-Web-Django | 555ecce1c351769240eefd4340b63e547f3bd2a9 | [
"MIT"
] | null | null | null | Django_Rest_Framework/api/entidades/vaga.py | Drack112/Treina-Web-Django | 555ecce1c351769240eefd4340b63e547f3bd2a9 | [
"MIT"
] | null | null | null | class Vaga:
def __init__(
self,
titulo,
descricao,
salario,
local,
quantidade,
contato,
tipo_contratacao,
tecnologias,
):
self.__titulo = titulo
self.__descricao = descricao
self.__descricao = descricao
self.... | 21.744186 | 50 | 0.627807 | 178 | 1,870 | 6.235955 | 0.095506 | 0.135135 | 0.100901 | 0.062162 | 0.122523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1,870 | 85 | 51 | 22 | 0.847976 | 0 | 0 | 0.362319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246377 | false | 0 | 0 | 0.115942 | 0.376812 | 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 | 0 | 0 | 0 | 2 |
6427832947b865e474dcc63aff27da24ea97cbf2 | 810 | py | Python | pynetdicom3/__init__.py | rdebroiz/pynetdicom3 | 0baea8310b9d3fd0a67df0c2e90f2607463f73c7 | [
"MIT"
] | null | null | null | pynetdicom3/__init__.py | rdebroiz/pynetdicom3 | 0baea8310b9d3fd0a67df0c2e90f2607463f73c7 | [
"MIT"
] | null | null | null | pynetdicom3/__init__.py | rdebroiz/pynetdicom3 | 0baea8310b9d3fd0a67df0c2e90f2607463f73c7 | [
"MIT"
] | null | null | null | """
Set module shortcuts and globals
"""
version = ['0', '9', '1']
__version__ = '.'.join(version)
pynetdicom_version = 'PYNETDICOM3_' + ''.join(version)
# UID prefix provided by https://www.medicalconnections.co.uk/Free_UID
pynetdicom_uid_prefix = '1.2.826.0.1.3680043.9.3811.' + '.'.join(version)
import logging
fro... | 38.571429 | 76 | 0.818519 | 102 | 810 | 6.343137 | 0.460784 | 0.185471 | 0.083462 | 0.106646 | 0.134467 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042466 | 0.098765 | 810 | 20 | 77 | 40.5 | 0.843836 | 0.125926 | 0 | 0 | 0 | 0 | 0.062857 | 0.038571 | 0.076923 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.692308 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ff359ff3fd4bf0c0cae3e20cfdf394e907b8e238 | 5,951 | py | Python | mergify_engine/tests/unit/engine/test_action_runner.py | truthiswill/mergify-engine | c7495d23387d0f003e4ce6aeff89ee8139b83f6b | [
"Apache-2.0"
] | null | null | null | mergify_engine/tests/unit/engine/test_action_runner.py | truthiswill/mergify-engine | c7495d23387d0f003e4ce6aeff89ee8139b83f6b | [
"Apache-2.0"
] | 6 | 2022-03-15T08:59:04.000Z | 2022-03-28T07:42:05.000Z | mergify_engine/tests/unit/engine/test_action_runner.py | truthiswill/mergify-engine | c7495d23387d0f003e4ce6aeff89ee8139b83f6b | [
"Apache-2.0"
] | null | null | null | # -*- encoding: utf-8 -*-
#
# Copyright © 2021 Mergify SAS
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 52.201754 | 114 | 0.694505 | 718 | 5,951 | 5.590529 | 0.252089 | 0.089686 | 0.192825 | 0.161435 | 0.64001 | 0.64001 | 0.64001 | 0.619083 | 0.619083 | 0.586946 | 0 | 0.004023 | 0.206352 | 5,951 | 113 | 115 | 52.663717 | 0.845649 | 0.096622 | 0 | 0.434783 | 0 | 0 | 0.352052 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 1 | 0 | false | 0 | 0.076087 | 0 | 0.076087 | 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 | 0 | 0 | 0 | 2 |
ff37b21e4f22a3688a0db0f2082ba54dca0a2890 | 315 | py | Python | analyzer/darwin/lib/common/exceptions.py | maximejf42/mac-sandbox | cb3ac3f31e97843309d4c8cc81bf703c70132c53 | [
"Unlicense"
] | 21 | 2016-07-29T16:03:20.000Z | 2022-01-05T23:53:51.000Z | analyzer/darwin/lib/common/exceptions.py | maximejf42/mac-sandbox | cb3ac3f31e97843309d4c8cc81bf703c70132c53 | [
"Unlicense"
] | null | null | null | analyzer/darwin/lib/common/exceptions.py | maximejf42/mac-sandbox | cb3ac3f31e97843309d4c8cc81bf703c70132c53 | [
"Unlicense"
] | 6 | 2017-08-09T23:58:44.000Z | 2022-01-05T10:33:27.000Z | # Copyright (C) 2010-2014 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
# Note: This is unmodified from the Cuckoo Windows version
class CuckooError(Exception):
pass
class CuckooPackageError(Exception):
pass
| 26.25 | 68 | 0.75873 | 42 | 315 | 5.690476 | 0.785714 | 0.108787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.161905 | 315 | 11 | 69 | 28.636364 | 0.875 | 0.692063 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ff5f1dd04b9ec5bca1730d92826728afac9748f4 | 780 | py | Python | aws/python/snippets/__init__.py | tutunak/snippets | 175b9cf35f5cb2b2cc5fc5f948038e5d560372f0 | [
"MIT"
] | null | null | null | aws/python/snippets/__init__.py | tutunak/snippets | 175b9cf35f5cb2b2cc5fc5f948038e5d560372f0 | [
"MIT"
] | null | null | null | aws/python/snippets/__init__.py | tutunak/snippets | 175b9cf35f5cb2b2cc5fc5f948038e5d560372f0 | [
"MIT"
] | null | null | null | import boto3 # pip3 install boto3
def boto_init(aws_id, aws_secret):
"""
:param aws_id: aws key id
:param aws_secret: aws secret id
:return: bot3 session object
"""
session = boto3.Session(
aws_access_key_id=aws_id,
aws_secret_access_key=aws_secret
)
return session
... | 22.941176 | 65 | 0.657692 | 102 | 780 | 4.833333 | 0.284314 | 0.091278 | 0.048682 | 0.056795 | 0.190669 | 0.190669 | 0.190669 | 0.190669 | 0.190669 | 0 | 0 | 0.02551 | 0.246154 | 780 | 33 | 66 | 23.636364 | 0.812925 | 0.40641 | 0 | 0 | 0 | 0 | 0.015113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ff6e8eb6842c9a3fb4ed8421653c037eb9df34a1 | 944 | py | Python | main/views.py | lurdray/crypto_invest | 8e10bda0771ac48c22827021935be3a28c9c3107 | [
"Apache-2.0"
] | 1 | 2021-11-20T14:09:58.000Z | 2021-11-20T14:09:58.000Z | main/views.py | lurdray/crypto_invest | 8e10bda0771ac48c22827021935be3a28c9c3107 | [
"Apache-2.0"
] | null | null | null | main/views.py | lurdray/crypto_invest | 8e10bda0771ac48c22827021935be3a28c9c3107 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib import messages
from django.shortcuts import render
from django.utils import timezone
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse, reverse_lazy
from django.contrib.auth import login, logout, authenticate
fr... | 26.222222 | 85 | 0.755297 | 120 | 944 | 5.891667 | 0.391667 | 0.113154 | 0.072136 | 0.070721 | 0.087694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144068 | 944 | 35 | 86 | 26.971429 | 0.875 | 0.058263 | 0 | 0 | 0 | 0 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ff757c0033f146e8ae2a1233be375571d695284f | 1,616 | py | Python | accounts/utils.py | theonlykingpin/snapfoodclone | 0c1a7839424e89d9bc7bfb55c150a92055759702 | [
"MIT"
] | 11 | 2021-09-17T07:44:05.000Z | 2022-02-06T08:33:30.000Z | accounts/utils.py | theonlykingpin/snapfoodclone | 0c1a7839424e89d9bc7bfb55c150a92055759702 | [
"MIT"
] | 1 | 2021-10-09T07:37:14.000Z | 2021-10-09T07:37:14.000Z | accounts/utils.py | theonlykingpin/snapfoodclone | 0c1a7839424e89d9bc7bfb55c150a92055759702 | [
"MIT"
] | 3 | 2021-09-27T14:12:13.000Z | 2021-10-18T12:21:37.000Z | from datetime import datetime, timedelta
from random import randint
from django.contrib.auth.mixins import UserPassesTestMixin
from django.core.exceptions import ValidationError
from accounts.models import Customer, ServiceProvider
def phone_number_validator(value):
if not value.startswith('98') or len(value) !... | 28.857143 | 98 | 0.702351 | 207 | 1,616 | 5.357488 | 0.371981 | 0.100992 | 0.075744 | 0.090171 | 0.256087 | 0.205591 | 0.19477 | 0.19477 | 0.19477 | 0.149684 | 0 | 0.013413 | 0.169554 | 1,616 | 55 | 99 | 29.381818 | 0.812966 | 0 | 0 | 0.111111 | 0 | 0 | 0.111386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0.138889 | 0.138889 | 0.111111 | 0.555556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 |
ff9338deaed1eba967366384f655b50234bb3c45 | 1,315 | py | Python | tests/base/sdk/python/tdldk/v1_0/garoot.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 18 | 2015-06-24T18:35:20.000Z | 2022-01-19T19:04:00.000Z | tests/base/sdk/python/tdldk/v1_0/garoot.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 63 | 2015-11-03T18:57:12.000Z | 2020-09-30T02:54:49.000Z | tests/base/sdk/python/tdldk/v1_0/garoot.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 38 | 2015-10-23T19:04:44.000Z | 2021-06-04T08:13:33.000Z | # -*- coding: utf-8 -*-
#
# __code_header example
# put your license header here
# it will be added to all the generated files
#
from .fetchers import GAListsFetcher
from .fetchers import GAUsersFetcher
from bambou import NURESTRootObject
class GARoot(NURESTRootObject):
""" Represents a Root in the TDL
... | 20.546875 | 96 | 0.58327 | 139 | 1,315 | 5.302158 | 0.589928 | 0.032564 | 0.048847 | 0.062415 | 0.143826 | 0.143826 | 0.143826 | 0.143826 | 0.143826 | 0 | 0 | 0.001144 | 0.335361 | 1,315 | 64 | 97 | 20.546875 | 0.842105 | 0.403042 | 0 | 0 | 1 | 0 | 0.024578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
ff95a3fe8666b382ddbf8286ef3f8e3b236470ab | 389 | py | Python | qxtoolkit/__init__.py | QixuanAI/qxtoolkit | 044e4316b8b890ce83d56ea52d735af1655f5dda | [
"BSD-3-Clause"
] | null | null | null | qxtoolkit/__init__.py | QixuanAI/qxtoolkit | 044e4316b8b890ce83d56ea52d735af1655f5dda | [
"BSD-3-Clause"
] | null | null | null | qxtoolkit/__init__.py | QixuanAI/qxtoolkit | 044e4316b8b890ce83d56ea52d735af1655f5dda | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
'''
Description :
FilePath : /qxtoolkit/qxtoolkit/__init__.py
Author : qxsoftware@163.com
Date : 2020-12-14 16:04:47
LastEditTime: 2021-07-14 10:27:10
Refer to : https://github.com/QixuanAI/qxtoolkit
'''
from .imgetter import *
from .gen_samples import *
from .graffiti import ... | 21.611111 | 51 | 0.694087 | 54 | 389 | 4.814815 | 0.759259 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 0.174807 | 389 | 17 | 52 | 22.882353 | 0.707165 | 0.606684 | 0 | 0 | 0 | 0 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ffa0e0f715feda807329cdccf259e6d38c71faf0 | 537 | py | Python | examples/random_walk_test.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | null | null | null | examples/random_walk_test.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | null | null | null | examples/random_walk_test.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | 1 | 2021-10-01T05:52:34.000Z | 2021-10-01T05:52:34.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Unit tests for //compiler_gym/bin:random_walk."""
import gym
from absl.flags import FLAGS
from random_walk import run_random_walk
def test... | 31.588235 | 65 | 0.731844 | 85 | 537 | 4.458824 | 0.658824 | 0.131926 | 0.102902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.167598 | 537 | 16 | 66 | 33.5625 | 0.834452 | 0.402235 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
ffb02da15a5c9b5c682022debb4e2f6e16aa0d87 | 1,684 | py | Python | tests/test_converters.py | kotofos/beaker | ea924dc67713012d4759e84ede619fbe979d34bf | [
"BSD-3-Clause"
] | 387 | 2015-01-08T00:59:09.000Z | 2022-03-17T13:12:56.000Z | tests/test_converters.py | kotofos/beaker | ea924dc67713012d4759e84ede619fbe979d34bf | [
"BSD-3-Clause"
] | 138 | 2015-01-02T22:34:35.000Z | 2021-12-07T19:23:30.000Z | tests/test_converters.py | kotofos/beaker | ea924dc67713012d4759e84ede619fbe979d34bf | [
"BSD-3-Clause"
] | 123 | 2015-01-21T18:03:18.000Z | 2022-01-18T13:56:11.000Z | from beaker._compat import u_
import unittest
from beaker.converters import asbool, aslist
class AsBool(unittest.TestCase):
def test_truth_str(self):
for v in ('true', 'yes', 'on', 'y', 't', '1'):
self.assertTrue(asbool(v), "%s should be considered True" % (v,))
v = v.upper()
... | 30.071429 | 77 | 0.583729 | 211 | 1,684 | 4.549763 | 0.393365 | 0.058333 | 0.13125 | 0.047917 | 0.183333 | 0.09375 | 0.09375 | 0.09375 | 0.09375 | 0.09375 | 0 | 0.011895 | 0.251188 | 1,684 | 55 | 78 | 30.618182 | 0.749405 | 0.089667 | 0 | 0.157895 | 0 | 0 | 0.079156 | 0 | 0 | 0 | 0 | 0 | 0.447368 | 1 | 0.210526 | false | 0 | 0.078947 | 0 | 0.342105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ffb4497f2f29a25b74cf38005f97667ed3b3d835 | 7,964 | py | Python | roboskeeter/math/test_math_sorcery.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | roboskeeter/math/test_math_sorcery.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | roboskeeter/math/test_math_sorcery.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | """
Unit tests for kinematics calculations.
"""
from __future__ import print_function, division
import unittest
import numpy as np
from kinematic_math import math_toolbox
class TruismsTestCase(unittest.TestCase):
def setUp(self):
print("In test '{}'...".format(self._testMethodName))
def test_false... | 41.696335 | 98 | 0.540181 | 1,127 | 7,964 | 3.694765 | 0.124224 | 0.024976 | 0.025216 | 0.026897 | 0.772815 | 0.739433 | 0.692603 | 0.683718 | 0.674592 | 0.672671 | 0 | 0.085175 | 0.301231 | 7,964 | 190 | 99 | 41.915789 | 0.663073 | 0.149046 | 0 | 0.448 | 0 | 0 | 0.013339 | 0 | 0 | 0 | 0 | 0 | 0.312 | 1 | 0.104 | false | 0 | 0.032 | 0 | 0.176 | 0.048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 | 2 |
ffb6752c3d7ef436cdbb18c7ac65218d10fde812 | 1,080 | py | Python | platforms/views.py | lunamagic1978/DQP | 5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2 | [
"Apache-2.0"
] | null | null | null | platforms/views.py | lunamagic1978/DQP | 5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2 | [
"Apache-2.0"
] | null | null | null | platforms/views.py | lunamagic1978/DQP | 5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.contrib import auth
@login_required
def index(request):
username = request.session.get('username')
ctx = {"username": username}
# return render(request, '... | 29.189189 | 70 | 0.669444 | 117 | 1,080 | 6.145299 | 0.299145 | 0.055633 | 0.105702 | 0.066759 | 0.155772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209259 | 1,080 | 37 | 71 | 29.189189 | 0.84192 | 0.037963 | 0 | 0.074074 | 0 | 0 | 0.108863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.074074 | 0.148148 | 0.037037 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
ffbb65836c12223fe2223ac56eec4039adb97ac9 | 4,221 | py | Python | xueshu/xueshu/settings.py | fsocietyjack/google_xueshu | b20293c865a8d3075b416543eea53adce00540a1 | [
"Apache-2.0"
] | null | null | null | xueshu/xueshu/settings.py | fsocietyjack/google_xueshu | b20293c865a8d3075b416543eea53adce00540a1 | [
"Apache-2.0"
] | null | null | null | xueshu/xueshu/settings.py | fsocietyjack/google_xueshu | b20293c865a8d3075b416543eea53adce00540a1 | [
"Apache-2.0"
] | null | null | null | # Scrapy settings for xueshu project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middleware.... | 45.880435 | 906 | 0.800284 | 532 | 4,221 | 6.216165 | 0.473684 | 0.027215 | 0.045358 | 0.05443 | 0.161173 | 0.161173 | 0.161173 | 0.161173 | 0.139099 | 0.104929 | 0 | 0.093225 | 0.097844 | 4,221 | 91 | 907 | 46.384615 | 0.77521 | 0.603175 | 0 | 0 | 0 | 0.15 | 0.764997 | 0.658009 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
44020d41699d56cd4a9aa0050d5ffab5eb3750ee | 340 | py | Python | PythonServer/scripts/mongo_viewer.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | PythonServer/scripts/mongo_viewer.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | PythonServer/scripts/mongo_viewer.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | import pymongo
from pymongo.database import Database
__author__ = 'pryormic'
if __name__ == '__main__':
mongoClient = pymongo.MongoClient("localhost", 27017)
for item in mongoClient.db.matcher.find():
try:
del item['profile_picture']
except KeyError:
pass
prin... | 21.25 | 57 | 0.632353 | 35 | 340 | 5.771429 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020576 | 0.285294 | 340 | 16 | 58 | 21.25 | 0.8107 | 0 | 0 | 0 | 0 | 0 | 0.117302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4415e55d3bc9a15e470e4e72ba5fcd50a40432b6 | 1,544 | py | Python | examples/data_expl/stan_data.py | itsens/stan | 1632a55bf752bba09f3459e333f2a6970e1148c4 | [
"MIT"
] | null | null | null | examples/data_expl/stan_data.py | itsens/stan | 1632a55bf752bba09f3459e333f2a6970e1148c4 | [
"MIT"
] | null | null | null | examples/data_expl/stan_data.py | itsens/stan | 1632a55bf752bba09f3459e333f2a6970e1148c4 | [
"MIT"
] | null | null | null | from stan import StanData, StanDict
from pprint import pprint
if __name__ == '__main__':
data_1 = StanData()
data_1[1499763761] = StanDict(metric_1=1) # TODO: Double indexing if adding as StanDict
data_1[1499763761]['metric_2'] = 2
data_1[1499763761]['metric_3'] = 3
data_1.append(1499763762, Stan... | 31.510204 | 92 | 0.591969 | 220 | 1,544 | 3.872727 | 0.213636 | 0.058685 | 0.028169 | 0.105634 | 0.300469 | 0.300469 | 0.265258 | 0.265258 | 0.265258 | 0.178404 | 0 | 0.104265 | 0.180052 | 1,544 | 48 | 93 | 32.166667 | 0.56872 | 0.069948 | 0 | 0.058824 | 0 | 0 | 0.260657 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
441a6673a2780d5bb40a0a9b50d127826accc76e | 701 | py | Python | utils/image_utils.py | sciforce/phones-las | f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b | [
"Apache-2.0"
] | 35 | 2019-07-04T10:13:29.000Z | 2022-02-22T03:41:39.000Z | utils/image_utils.py | sciforce/phones-las | f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b | [
"Apache-2.0"
] | 7 | 2019-11-04T15:34:03.000Z | 2020-06-21T04:30:22.000Z | utils/image_utils.py | sciforce/phones-las | f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b | [
"Apache-2.0"
] | 5 | 2019-07-15T20:09:46.000Z | 2021-08-05T09:55:29.000Z | import tensorflow as tf
__all__ = [
'create_attention_images',
]
"""Reference: https://github.com/tensorflow/nmt/blob/master/nmt/attention_model.py"""
def create_attention_images(final_context_state):
try:
attention_images = final_context_state.alignment_history.stack()
except AttributeError:
... | 29.208333 | 85 | 0.724679 | 90 | 701 | 5.3 | 0.577778 | 0.251572 | 0.125786 | 0.169811 | 0.201258 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022453 | 0.174037 | 701 | 23 | 86 | 30.478261 | 0.801382 | 0.188302 | 0 | 0 | 0 | 0 | 0.047917 | 0.047917 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.