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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3254f74c50719ea6dda87cdcda26cc3f7cdecb37 | 528 | py | Python | code/da-finnci/sanjin.py | SpellcheckerExtraordinaire/PrisonersDilemmaTournament | a818c6244490827ed1676a9e9164f130db5db594 | [
"MIT"
] | 23 | 2021-05-20T07:34:33.000Z | 2021-06-20T13:09:04.000Z | code/da-finnci/sanjin.py | SpellcheckerExtraordinaire/PrisonersDilemmaTournament | a818c6244490827ed1676a9e9164f130db5db594 | [
"MIT"
] | 19 | 2021-05-21T04:10:55.000Z | 2021-06-13T15:17:52.000Z | code/da-finnci/sanjin.py | SpellcheckerExtraordinaire/PrisonersDilemmaTournament | a818c6244490827ed1676a9e9164f130db5db594 | [
"MIT"
] | 43 | 2021-05-21T02:24:35.000Z | 2021-06-24T21:08:11.000Z | #
# AGENT
# Sanjin
#
# STRATEGY
# This agent always defects, if the opponent defected too often. Otherwise it cooperates.
#
def getGameLength(history):
return history.shape[1]
def getChoice(snitch):
return "tell truth" if snitch else "stay silent"
def strategy(history, memory):
if getGameLength(history) == 0:
return getChoice(False), None
average = sum(history[1]) / history.shape[1]
snitch = average <= 0.3 # Defect if the opponent defected > 30% of times
return getChoice(snitch), None
| 22.956522 | 89 | 0.693182 | 69 | 528 | 5.304348 | 0.565217 | 0.027322 | 0.071038 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.204545 | 528 | 22 | 90 | 24 | 0.852381 | 0.295455 | 0 | 0 | 0 | 0 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.2 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
32606e9409f50355c2b94b62036df2b106d5b33e | 2,861 | py | Python | common/functions.py | gautelinga/-BERNAISE | aa45ae5ccc323d9c61c93542cc327889cae4d0b2 | [
"MIT"
] | 15 | 2017-07-19T18:33:26.000Z | 2021-03-25T18:36:47.000Z | common/functions.py | gautelinga/-BERNAISE | aa45ae5ccc323d9c61c93542cc327889cae4d0b2 | [
"MIT"
] | 9 | 2017-05-30T16:13:08.000Z | 2017-08-25T09:09:05.000Z | common/functions.py | gautelinga/-BERNAISE | aa45ae5ccc323d9c61c93542cc327889cae4d0b2 | [
"MIT"
] | 7 | 2018-05-08T22:50:15.000Z | 2020-06-25T13:50:37.000Z | """ Some useful functions in various parts of BERNAISE. """
import dolfin as df
import ufl
__author__ = "Gaute Linga"
# Phase field chemical potential
def pf_potential(phi):
""" Phase field potential. """
return 0.25*(1.-phi**2)**2
def diff_pf_potential(phi):
""" Derivative of the phase field potential. """
return phi**3-phi
def diff_pf_potential_c(phi):
""" Convex decomposition of the phase field potential. Positive part. """
return phi**3
def diff_pf_potential_e(phi):
""" Convex decomposition of the phase field potential. Negative part. """
return phi
def diff_pf_potential_linearised(phi, phi0):
""" Linearised derivative of phase field potential. """
return phi0**3-phi0+(3*phi0**2-1.)*(phi-phi0)
def pf_contact(phi):
""" Phase field contact function. """
return (2. + 3.*phi - phi**3)/4.
def diff_pf_contact(phi):
""" Derivative of phase field contact function. """
return 3.*(1. - phi**2)/4.
def ddiff_pf_contact(phi):
""" Double derivative of phase field contact. """
return -3.*phi/2.
def diff_pf_contact_linearised(phi, phi0):
""" Linearised derivative of phase field contact function. """
return diff_pf_contact(phi0) + ddiff_pf_contact(phi0)*(phi-phi0)
# Phase field auxiliary fields
def ramp(phi, A):
"""
Ramps linearly between A[0] and A[1] according to phi,
such that phi=1 => A(phi) = A[0], phi=-1 => A(phi) = A[1]
"""
return A[0]*0.5*(1.+phi) + A[1]*0.5*(1.-phi)
def dramp(A):
""" Derivative of ramping function above. Returns df.Constant."""
return df.Constant(0.5*(A[0]-A[1]))
def ramp_harmonic(phi, A):
""" Weighted harmonic mean according to phi. """
return (A[0]**(-1)*0.5*(1.+phi) + A[1]**(-1)*0.5*(1.-phi))**(-1)
def ramp_geometric(phi, A):
""" Weighted geometric mean according to phi. """
return A[0]**(0.5*(1.+phi))*A[1]**(0.5*(1.-phi))
# Filters
def dfabs(a):
return abs(a)
def sign(a):
return ufl.sign(a)
def max_value(a, b):
return ufl.max_value(a, b)
def min_value(a, b):
return ufl.min_value(a, b)
def unit_interval_filter(phi):
return min_value(max_value(phi, -1.), 1.)
def absolute(q):
return dfabs(q)
# Chemical potential functions
def alpha(c):
return c*(df.ln(c)-1)
def alpha_c(c):
return df.ln(c)
def alpha_cc(c):
return 1./c
# Regulated chemical potential
def alpha_cc_reg(c, c_cutoff):
return alpha_cc(max_value(c, c_cutoff))
def alpha_c_reg(c, c_cutoff):
c_max = max_value(c, c_cutoff)
c_min = min_value(c, c_cutoff)
return (alpha_c(c_max) + alpha_cc(c_cutoff)*(c_min-c_cutoff))
def alpha_reg(c, c_cutoff):
c_max = max_value(c, c_cutoff)
c_min = min_value(c, c_cutoff)
return (alpha(c_max) + alpha_c(c_cutoff)*(c_min-c_cutoff)
+ 0.5*alpha_cc(c_cutoff)*(c_min-c_cutoff)**2)
| 21.839695 | 77 | 0.644879 | 474 | 2,861 | 3.727848 | 0.183544 | 0.055461 | 0.040747 | 0.020374 | 0.432371 | 0.307866 | 0.293152 | 0.232032 | 0.096208 | 0.096208 | 0 | 0.032482 | 0.19294 | 2,861 | 130 | 78 | 22.007692 | 0.732785 | 0.300594 | 0 | 0.068966 | 0 | 0 | 0.005793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.431034 | false | 0 | 0.034483 | 0.172414 | 0.896552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
327b6bd6e559a4d87e461e05c951898b24f79d56 | 156 | py | Python | setup.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | setup.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | setup.py | ultrasound1372/RFXPy | 8f8ba1576739f8ef35a33b10cd2324e24f87fa37 | [
"MIT"
] | null | null | null | from setuptools import setup
from Cython.Build import cythonize
setup(
name='RFXPy',
ext_modules=cythonize("RFX.pyx"),
zip_safe=False,
) | 19.5 | 38 | 0.692308 | 20 | 156 | 5.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 156 | 8 | 39 | 19.5 | 0.854839 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3292dfc22e24a77b5404b9fc47b80fce13e8084f | 1,011 | py | Python | 01/foxdot/foxdot_song2_async.py | kuroobicode/textmusic | d452cfbe9480bdab1ba9ddf9b4cd324a83e5fd88 | [
"MIT"
] | null | null | null | 01/foxdot/foxdot_song2_async.py | kuroobicode/textmusic | d452cfbe9480bdab1ba9ddf9b4cd324a83e5fd88 | [
"MIT"
] | null | null | null | 01/foxdot/foxdot_song2_async.py | kuroobicode/textmusic | d452cfbe9480bdab1ba9ddf9b4cd324a83e5fd88 | [
"MIT"
] | null | null | null |
Clock.clear()
# controll #######################################################
Clock.bpm = 120
Scale.default = Scale.chromatic
Root.default = 0
p1 >> keys(
[4,6,11,13,16,18,23,25]
,dur=[0.25]
,oct=4
,vibdepth=0.3 ,vib=0.01
)
p2 >> blip(
[4,6,11,13,15,16,18,23,25]
,dur=[0.25]
,oct=3
,sus=2
,vibdepth=0.3 ,vib=0.01
,amp=0.35
)
p3 >> bass(
[(11,16),[(11,16,18),(11,16,23)]]
,dur=[3.5]
,oct=6
,sus=6
,vibdepth=0.1 ,vib=0.01
,amp=0.25
)
p4 >> bell(
[23,22,18,13,11,6]
,dur=[0.25,0.25,0.25,0.25,0.25,0.25,4]
,oct=6
,vibdepth=0.2 ,vib=0.01
,amp=0.125
)
p5 >> swell(
[(11,6),(11,16),[(11,20),(16,23)]]
,dur=[1.25]
,amp=0.5
,vib=4, vibdepth=0.01
,oct=6
,sus=1.5
,chop=3, coarse=0)
p6 >> pasha(
[-1,6,11,(4,1,11)]
,dur=[1,1,rest(0.5),1.5]
,vibdepth=0.3 ,vib=0.21
,amp=0.15
,sus=[0.25,2]
,oct=3
)
Clock.clear()
print(Samples)
print(SynthDefs)
| 14.442857 | 66 | 0.454995 | 187 | 1,011 | 2.459893 | 0.283422 | 0.065217 | 0.043478 | 0.065217 | 0.265217 | 0.182609 | 0.113043 | 0.113043 | 0.03913 | 0.03913 | 0 | 0.246358 | 0.253215 | 1,011 | 69 | 67 | 14.652174 | 0.362914 | 0.007913 | 0 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.038462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32b8dd8aee4543f50495b2188ec524e31fadc382 | 268 | py | Python | Curso de Python USP Part1/Exercicios/ordenacao.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | Curso de Python USP Part1/Exercicios/ordenacao.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | Curso de Python USP Part1/Exercicios/ordenacao.py | JorgeTranin/Cursos_Coursera | 37d26b5f92d9324225f6701d0eb0fd466cff9d86 | [
"MIT"
] | null | null | null | numero1 = int(input('Digite um numero: '))
numero2 = int(input('Digite um numero: '))
numero3 = int(input('Digite um numero: '))
if numero1 <= numero2 and numero1 < numero3 and numero2 <= numero3:
print('crescente')
else:
print('não está em ordem crescente')
| 29.777778 | 67 | 0.682836 | 36 | 268 | 5.083333 | 0.472222 | 0.131148 | 0.229508 | 0.262295 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.171642 | 268 | 8 | 68 | 33.5 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.335821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
32bbf09b6f664dc1cb4a32d026f184def6a57b1b | 1,000 | py | Python | urbanmediator/triggers.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | urbanmediator/triggers.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | urbanmediator/triggers.py | rnd0101/urbanmediator | af3b19aefc09ebd1969cbb8f6ebfae0279183511 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This file is part of Urban Mediator software.
Copyright (c) 2008 University of Art and Design Helsinki
See the file LICENSE.txt for copying permission.
Triggers
"""
import datetime
import config
import util
def sendmail_adapter(project, trigger, **params):
if trigger.trigger_action == "test":
pass # !!!
elif trigger.trigger_action in ("send", "sendmail"):
if trigger.url.lower().startswith("mailto:"):
mailaddr = trigger.url[len("mailto:"):]
pass
def test_adapter(project, trigger, **params):
if trigger.trigger_action == "test":
print "TRIGGER TEST"
print project, params
def fire_trigger(project, trigger, **params):
try:
if trigger.adapter == "test":
test_adapter(project, trigger, **params)
elif trigger.adapter in ("sendmail", "mailsender"):
sendmail_adapter(project, trigger, **params)
return
except:
pass
| 24.390244 | 60 | 0.626 | 113 | 1,000 | 5.469027 | 0.495575 | 0.113269 | 0.161812 | 0.174757 | 0.297735 | 0.171521 | 0.171521 | 0.171521 | 0.171521 | 0 | 0 | 0.006711 | 0.255 | 1,000 | 40 | 61 | 25 | 0.822819 | 0.025 | 0 | 0.217391 | 0 | 0 | 0.086624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.130435 | 0.130435 | null | null | 0.086957 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
088e996b4d6b58933e33aebe7b8d2aefaf7447ed | 80 | py | Python | myML/cluster/__init__.py | LingrenKong/my-Machine-Learning | 083a20242e647ea5a761a8779fb5290bb2a97e51 | [
"MIT"
] | null | null | null | myML/cluster/__init__.py | LingrenKong/my-Machine-Learning | 083a20242e647ea5a761a8779fb5290bb2a97e51 | [
"MIT"
] | null | null | null | myML/cluster/__init__.py | LingrenKong/my-Machine-Learning | 083a20242e647ea5a761a8779fb5290bb2a97e51 | [
"MIT"
] | null | null | null | """
仿照sklearn.cluster的结构
"""
from .k_means_ import KMeans
__all__ = ['KMeans',
] | 13.333333 | 28 | 0.7 | 9 | 80 | 5.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 80 | 6 | 29 | 13.333333 | 0.714286 | 0.25 | 0 | 0 | 0 | 0 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
08bad1342dfe9a3f273e50517e9598d9322fb9f4 | 814 | py | Python | neuromaps/nulls/tests/test_spins.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | neuromaps/nulls/tests/test_spins.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | neuromaps/nulls/tests/test_spins.py | VinceBaz/neuromaps | 6758b53e127d1563fa06eb26bc5f08a4e24ae7e7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
For testing neuromaps.nulls.spins functionality
"""
import numpy as np
import pytest
from neuromaps.nulls import spins
def test_load_spins():
out = np.random.randint(1000, size=(100, 100), dtype='int32')
assert out is spins.load_spins(out)
assert np.allclose(out[:, :10], spins.load_spins(out, n_perm=10))
@pytest.mark.xfail
def test_get_parcel_centroids():
assert False
@pytest.mark.xfail
def test__gen_rotation():
assert False
@pytest.mark.xfail
def test_gen_spinsamples():
assert False
@pytest.mark.xfail
def test_spin_parcels():
assert False
@pytest.mark.xfail
def test_parcels_to_vertices():
assert False
@pytest.mark.xfail
def test_vertices_to_parcels():
assert False
@pytest.mark.xfail
def test_spin_data():
assert False
| 15.960784 | 69 | 0.723587 | 119 | 814 | 4.756303 | 0.386555 | 0.09894 | 0.185512 | 0.222615 | 0.438163 | 0.399293 | 0.399293 | 0.340989 | 0 | 0 | 0 | 0.02489 | 0.160934 | 814 | 50 | 70 | 16.28 | 0.803807 | 0.085995 | 0 | 0.5 | 0 | 0 | 0.006793 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 1 | 0.285714 | false | 0 | 0.107143 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08c041ce78c243c11ab921e4559519b668e11a05 | 459 | py | Python | ois_api_client/v3_0/dto/QueryInvoiceChainDigestResponse.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | 7 | 2020-10-22T08:15:29.000Z | 2022-01-27T07:59:39.000Z | ois_api_client/v3_0/dto/QueryInvoiceChainDigestResponse.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | ois_api_client/v3_0/dto/QueryInvoiceChainDigestResponse.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from .InvoiceChainDigestResult import InvoiceChainDigestResult
from .BasicOnlineInvoiceResponse import BasicOnlineInvoiceResponse
@dataclass
class QueryInvoiceChainDigestResponse(BasicOnlineInvoiceResponse):
"""Response type of the POST /queryInvoiceChainDigest REST operation
:param invoice_chain_digest_result: Invoice chain digest query result
"""
invoice_chain_digest_result: InvoiceChainDigestResult
| 32.785714 | 73 | 0.849673 | 39 | 459 | 9.846154 | 0.564103 | 0.09375 | 0.140625 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115468 | 459 | 13 | 74 | 35.307692 | 0.945813 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
08c2f35be3f7433dd8001271711e94a8a921b916 | 83 | py | Python | data/studio21_generated/interview/0458/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/0458/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/0458/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | class Solution:
def minSubarray(self, nums: List[int], p: int) -> int:
| 27.666667 | 58 | 0.590361 | 11 | 83 | 4.454545 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26506 | 83 | 3 | 59 | 27.666667 | 0.803279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
08f99b35eb630832a98f35a13f65eff6d3fc1a7d | 1,856 | py | Python | dnnet/training/loss_function.py | daichi-yoshikawa/dnnet | 95a33d73b201faed7ab98aa629e2aeb94c19ac18 | [
"BSD-3-Clause"
] | 6 | 2019-04-25T10:33:13.000Z | 2020-07-24T10:20:20.000Z | dnnet/training/loss_function.py | daichi-yoshikawa/dnnet | 95a33d73b201faed7ab98aa629e2aeb94c19ac18 | [
"BSD-3-Clause"
] | null | null | null | dnnet/training/loss_function.py | daichi-yoshikawa/dnnet | 95a33d73b201faed7ab98aa629e2aeb94c19ac18 | [
"BSD-3-Clause"
] | null | null | null | # Authors: Daichi Yoshikawa <daichi.yoshikawa@gmail.com>
# License: BSD 3 clause
from dnnet.ext_mathlibs import cp, np
class LossFunction:
"""Base class for loss functions.
Warning
-------
This class should not be used directly.
Use derived classes instead.
Parameters
----------
ep : float
Used to avoid log(0) computation.
"""
ep = 1e-5
def get_type(self):
raise NotImplementedError('LossFunction.get_type is called.')
def get(self, y, t):
"""Returns loss.
Arguments
---------
y : np.array
Predicted results in 2d array,
whose shape is (num of data, num of predicted target features).
t : np.array
Target features of training data in 2d array,
whose shape is (num of data, num of target features).
Returns
-------
float
Resulting loss value.
"""
raise NotImplementedError('LossFunction.get is called.')
class MultinomialCrossEntropy(LossFunction):
"""Loss function which is used for multi-class classification."""
def get_type(self):
return 'multinomial cross entropy'
def get(self, y, t):
return (-t * np.log(y + self.ep)).sum() / y.shape[0]
class BinomialCrossEntropy(LossFunction):
"""Loss function which is used for binary-class classification."""
def get_type(self):
return 'binomial cross entropy'
def get(self, y, t):
error = -t * np.log(y + self.ep) - (1 - t) * np.log(1 - y + self.ep)
return error.sum() / y.shape[0]
class SquaredError(LossFunction):
"""Loss function which is used for regression."""
def get_type(self):
return 'squared error'
def get(self, y, t):
return 0.5 * np.power(y - t, 2, dtype=y.dtype).sum() / y.shape[0]
| 26.140845 | 76 | 0.596983 | 238 | 1,856 | 4.630252 | 0.382353 | 0.043557 | 0.036298 | 0.050817 | 0.38294 | 0.326679 | 0.281307 | 0.063521 | 0.063521 | 0.063521 | 0 | 0.010518 | 0.282866 | 1,856 | 70 | 77 | 26.514286 | 0.817431 | 0.405172 | 0 | 0.347826 | 0 | 0 | 0.127273 | 0.02246 | 0 | 0 | 0 | 0 | 0 | 1 | 0.347826 | false | 0 | 0.043478 | 0.217391 | 0.869565 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3e987067dc562a2ed31c09e74f6acd6701f2e8b6 | 1,180 | py | Python | Proj_HMS/Reports/migrations/0003_auto_20200531_1305.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 4 | 2020-06-27T16:01:27.000Z | 2020-06-27T21:38:58.000Z | Proj_HMS/Reports/migrations/0003_auto_20200531_1305.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 6 | 2020-06-28T06:39:26.000Z | 2021-06-10T19:38:57.000Z | Proj_HMS/Reports/migrations/0003_auto_20200531_1305.py | ishanksoni/Hospital_management_DBMS | e22e421bcd38e738def4d7be15a0f75fc6ec543e | [
"MIT"
] | 1 | 2021-03-11T05:17:14.000Z | 2021-03-11T05:17:14.000Z | # Generated by Django 3.0.6 on 2020-05-31 07:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Reports', '0002_auto_20200531_1126'),
]
operations = [
migrations.RenameField(
model_name='report',
old_name='Pre_medical_history',
new_name='cmnt',
),
migrations.RenameField(
model_name='report',
old_name='Tests',
new_name='dis',
),
migrations.RenameField(
model_name='report',
old_name='comment',
new_name='history',
),
migrations.RenameField(
model_name='report',
old_name='discreption',
new_name='medic',
),
migrations.RenameField(
model_name='report',
old_name='init_observation',
new_name='observ',
),
migrations.RenameField(
model_name='report',
old_name='medication',
new_name='test',
),
migrations.AlterModelTable(
name='report',
table='report',
),
]
| 24.583333 | 47 | 0.515254 | 103 | 1,180 | 5.669903 | 0.456311 | 0.119863 | 0.267123 | 0.308219 | 0.441781 | 0.441781 | 0.441781 | 0 | 0 | 0 | 0 | 0.041835 | 0.372034 | 1,180 | 47 | 48 | 25.106383 | 0.746289 | 0.038136 | 0 | 0.463415 | 1 | 0 | 0.154457 | 0.0203 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.097561 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3e9ca5fb7788a669bb3328f4ff21a417a27bc700 | 710 | py | Python | 55.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | 55.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | 55.py | HatsuneMikuV/PythonLearning | 34a7179ee20eb8ade50ce74b12732daea491e527 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: 55
Author : anglemiku
Eamil : anglemiku.v@gmail.com
date: 2020/1/8
-------------------------------------------------
Change Activity: 2020/1/8:
-------------------------------------------------
"""
'''
题目:
有5个人坐在一起,问第五个人多少岁?他说比第4个人大2岁。
问第4个人岁数,他说比第3个人大2岁。
问第三个人,又说比第2人大两岁。
问第2个人,说比第一个人大两岁。
最后问第一个人,他说是10岁。
请问第五个人多大?
'''
def recursive_age(age, num):
if num <= 1:
return age
return recursive_age(age + 2, num - 1)
if __name__ == '__main__':
print recursive_age(10, 5)
print recursive_age(10, 1)
print recursive_age(10, 0)
pass | 17.75 | 49 | 0.466197 | 71 | 710 | 4.478873 | 0.605634 | 0.188679 | 0.160377 | 0.179245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067151 | 0.223944 | 710 | 40 | 50 | 17.75 | 0.509982 | 0.029577 | 0 | 0 | 0 | 0 | 0.031873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.111111 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3ea6e3ff41d60a2c30f41cf3918fd4be91c72c64 | 80 | py | Python | Codewars/8kyu/number-of-people-in-the-bus/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/number-of-people-in-the-bus/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/number-of-people-in-the-bus/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 2.7.6
number = lambda bus_stops: sum([p - n for p, n in bus_stops])
| 20 | 61 | 0.6375 | 17 | 80 | 2.882353 | 0.764706 | 0.326531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.2125 | 80 | 3 | 62 | 26.666667 | 0.730159 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3eaa2ee21d2173d34a2949f13d55a6aa3fe9590d | 202 | py | Python | api/src/enumeration/contact/ContactStatus.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | api/src/enumeration/contact/ContactStatus.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | api/src/enumeration/contact/ContactStatus.py | SamuelJansen/idealizar-whats-app-manager-api | a23114d5b841b3b3e45c0309b19c68df2fe1373e | [
"MIT"
] | null | null | null | from python_framework import Enum, EnumItem
@Enum()
class ContactStatusEnumeration :
NONE = EnumItem()
ACTIVE = EnumItem()
INACTIVE = EnumItem()
ContactStatus = ContactStatusEnumeration()
| 20.2 | 43 | 0.742574 | 17 | 202 | 8.764706 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173267 | 202 | 9 | 44 | 22.444444 | 0.892216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3ed9d1d20b430772a3023d5e441d77291797a45f | 388 | py | Python | {{cookiecutter.project_slug}}/core/exceptions/__init__.py | teamhide/cookiecutter-sanic | 9d1ca3c40584f723c492b7d78b8e2e1f53f5e186 | [
"Apache-2.0"
] | 2 | 2020-05-21T02:51:53.000Z | 2022-01-28T19:36:51.000Z | {{cookiecutter.project_slug}}/core/exceptions/__init__.py | teamhide/cookiecutter-sanic | 9d1ca3c40584f723c492b7d78b8e2e1f53f5e186 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:42:16.000Z | 2021-06-02T00:42:16.000Z | {{cookiecutter.project_slug}}/core/exceptions/__init__.py | teamhide/cookiecutter-sanic | 9d1ca3c40584f723c492b7d78b8e2e1f53f5e186 | [
"Apache-2.0"
] | null | null | null | from sanic.exceptions import SanicException, add_status_code
class CustomException(SanicException):
def __init__(self, message: str, code: int):
super().__init__(message=message, status_code=code)
@add_status_code(401)
class ValidationErrorException(SanicException):
def __init__(self):
message = 'Validation error exception'
super().__init__(message)
| 27.714286 | 60 | 0.744845 | 42 | 388 | 6.380952 | 0.52381 | 0.11194 | 0.097015 | 0.186567 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.159794 | 388 | 13 | 61 | 29.846154 | 0.812883 | 0 | 0 | 0 | 0 | 0 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3edea08ec6e3df304801943e36274145b7b5e624 | 518 | py | Python | exapi/models/hitbtc/trading_fee.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | exapi/models/hitbtc/trading_fee.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | exapi/models/hitbtc/trading_fee.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from decimal import Decimal
from typing import TypedDict
class HitbtcRawTradingFeeModel(TypedDict):
"""Trading fee json model."""
takeLiquidityRate: str
provideLiquidityRate: str
@dataclass(frozen=True)
class HitbtcTradingFeeModel:
"""Trading fee model for certain symbol.
Args:
take_liquidity_rate (Decimal): taker fee
provide_liquidity_rate (Decimal): maker fee
"""
take_liquidity_rate: Decimal
provide_liquidity_rate: Decimal
| 21.583333 | 51 | 0.743243 | 55 | 518 | 6.854545 | 0.527273 | 0.137931 | 0.212202 | 0.127321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19305 | 518 | 23 | 52 | 22.521739 | 0.901914 | 0.310811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.3 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3ef8e4cec2ca752feb497adc08139d0274b8030e | 747 | py | Python | tests/integration/cloudformation/utils.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | 1 | 2022-03-17T07:22:23.000Z | 2022-03-17T07:22:23.000Z | tests/integration/cloudformation/utils.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | null | null | null | tests/integration/cloudformation/utils.py | doytsujin/localstack | 46ffd646af553f381cc567e4a7a06f604640c1c7 | [
"Apache-2.0"
] | null | null | null | import os
import jinja2
from localstack.utils.common import load_file
def load_template(tmpl_path: str, **template_vars) -> str:
template = load_template_raw(tmpl_path)
return render_template(template, **template_vars)
def render_template(template_body: str, **template_vars) -> str:
if template_vars:
template_body = jinja2.Template(template_body).render(**template_vars)
return template_body
def load_template_raw(tmpl_file: str) -> str:
return load_file(template_path(tmpl_file))
def template_path(tmpl_file: str) -> str:
return os.path.join(get_templates_folder(), tmpl_file)
def get_templates_folder() -> str:
return os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "templates")
| 25.758621 | 87 | 0.745649 | 104 | 747 | 5.028846 | 0.25 | 0.114723 | 0.057361 | 0.068834 | 0.131931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00311 | 0.139224 | 747 | 28 | 88 | 26.678571 | 0.810264 | 0 | 0 | 0 | 0 | 0 | 0.014726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.1875 | 0.1875 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4109521558900284b3ffc140a466e95adca11965 | 4,353 | py | Python | src/SBS/messenger.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | src/SBS/messenger.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | src/SBS/messenger.py | Joao-vap/Voyager-based-Steganography | 9835e89cf8f1d472d7b3c8a8ead73a0ee553645c | [
"MIT"
] | null | null | null | import os
import numpy as np
import pydub as pd
from abc import ABC, abstractmethod
class Messenger(ABC):
""" Abstract methods """
def __init__(self, files_path=None):
if files_path is None:
self.message_left, self.message_right = np.array([]), np.array([])
else:
self.message_left, self.message_right = self._getMessage(files_path)
@abstractmethod
def __add__(self, other):
""" Add two messages
Args:
other (AudioMessage): message to be added
"""
pass
@abstractmethod
def __repr__(self):
""" Return string representation of message
"""
pass
def __len__(self) -> 'int':
""" Return length of message
Returns:
int: left length of message
"""
return self.message_left.shape[0]
def __getitem__(self, key) -> 'list[int]':
""" Return item at index
Args:
key (int): index
Returns:
int: item at index
"""
return (self.message_left[key], self.message_right[key])
def __iter__(self) -> 'list[np.ndarray]':
""" Return iterator of message
Returns:
np.ndarray: iterator of message
"""
return (self.message_left.__iter__(), self.message_right.__iter__())
def __next__(self) -> int:
""" Return next item in message
Returns:
int: next item in message
"""
return (self.message_left.__next__(), self.message_right.__next__())
def _getMessage(self, files_path) -> 'list[np.ndarray]':
""" Return message from files
Args:
files_path (str): path of files
Raises:
TypeError: if files_path is not str or list
Returns:
list[np.ndarray]: message from files, left and right channel
"""
# check if is string with path to directory
# or list of mp3 files
if isinstance(files_path, str):
message_left, message_rigth = self._getMessageFromDirectory(files_path)
elif isinstance(files_path, list):
message_left, message_rigth = self._getMessageFromFiles(files_path)
else:
raise TypeError("files_path must be string or list")
return self._concatenateMessages(message_left), self._concatenateMessages(message_rigth)
def _getMessageFromDirectory(self, files_path) -> 'list[np.ndarray]':
""" Return message from files in directory
Args:
files_path (str): path of files
Returns:
list[np.ndarray]: message from files
"""
# get all mp3 files in directory
files = self._getMp3FilesInDirectory(files_path)
# get all messages from mp3 files
message_left, message_rigth = self._getMessageFromFiles(files)
# concatenate all messages
return message_left, message_rigth
def _getMp3FilesInDirectory(self, files_path) -> list:
""" Return files in directory
Args:
files_path (str): path of files
Returns:
list: files in directory
"""
# get all mp3 files in directory
files = []
for file in os.listdir(files_path):
# add paths of m3 files to list
files.append(files_path + '/' + file)
return files
def _getMessageFromFiles(self, files) -> list:
""" Return message from files
Args:
files (list): list of files
Returns:
list: message from files
"""
# get all messages from files
message_left, message_rigth = [], []
for file in files:
message_l, message_r = self._getMessageFromFile(file)
message_left.append(message_l)
message_rigth.append(message_r)
return message_left, message_rigth
@abstractmethod
def _getMessageFromFile(self, file) -> np.ndarray:
pass
def _concatenateMessages(self, messages) -> np.ndarray:
""" Return concatenated message
Args:
messages (list): list of messages
Returns:
np.ndarray: concatenated message
"""
# concatenate all messages
return np.concatenate(messages)
| 28.266234 | 96 | 0.588789 | 473 | 4,353 | 5.192389 | 0.196617 | 0.065961 | 0.036645 | 0.056189 | 0.313518 | 0.245114 | 0.182818 | 0.081026 | 0.081026 | 0.081026 | 0 | 0.002724 | 0.325293 | 4,353 | 153 | 97 | 28.45098 | 0.833504 | 0.311969 | 0 | 0.188679 | 0 | 0 | 0.03695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245283 | false | 0.056604 | 0.075472 | 0 | 0.509434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
412051c4a969e75e826cdb442765e6c92b39af9b | 1,064 | py | Python | ImportantFile.py | smckee6192/MockyThingy | c1f0e9daf6ca4ff32b15cef346a5a4ec95fe60ef | [
"MIT"
] | null | null | null | ImportantFile.py | smckee6192/MockyThingy | c1f0e9daf6ca4ff32b15cef346a5a4ec95fe60ef | [
"MIT"
] | 8 | 2015-03-25T04:02:27.000Z | 2015-04-26T01:08:15.000Z | ImportantFile.py | smckee6192/MockyThingy | c1f0e9daf6ca4ff32b15cef346a5a4ec95fe60ef | [
"MIT"
] | null | null | null | __author__ = 'Shane'
from ClassToPass import ClassToPass
class ImportantClass:
def __init__(self):
pass
def doTheThing(self, number1=int(), number2=int(), classToPass=ClassToPass()) -> int:
print("TheThing")
added = classToPass.gimmeTheSum(number1, number2)
return added
def doTheOtherThing(self, class1=ClassToPass()) -> int:
print("TheOtherThing")
added = class1.int1 + class1.int2
return added
def doTheStringThing(self, str1="", str2="") -> str:
print("TheStringThing")
return str1+str2
def returnTheThing(self, class_=ClassToPass()) -> ClassToPass:
print("ReturnsAClass")
class_.int1 = 1000
class_.int2 = 2000
return class_
def doTheListyThing(self, listy1=[int], listy2=[str]) -> int:
return sum(listy1) + len(listy2)
def doTheDictyThing(self, dict1={int:[int,str], str:[str]}) -> str:
bigstring = ""
for each in dict1.keys():
bigstring += str(dict1[each])
return bigstring | 28.756757 | 89 | 0.617481 | 108 | 1,064 | 5.972222 | 0.425926 | 0.027907 | 0.058915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.257519 | 1,064 | 37 | 90 | 28.756757 | 0.778481 | 0 | 0 | 0.071429 | 0 | 0 | 0.049765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.214286 | 0.071429 | 0.035714 | 0.571429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4128cc1ebf3c61e5be668a4ebdb23cd28a077d29 | 1,304 | py | Python | summarizer_server/account_service.py | jent-ly/summarizer_server | 98f9b49d17aa637648cce1dd7ab9ad0efec5fe09 | [
"MIT"
] | 2 | 2019-07-10T03:22:18.000Z | 2019-12-08T05:54:16.000Z | summarizer_server/account_service.py | jent-ly/summarizer_server | 98f9b49d17aa637648cce1dd7ab9ad0efec5fe09 | [
"MIT"
] | 7 | 2019-07-31T16:08:05.000Z | 2020-03-22T20:48:30.000Z | summarizer_server/account_service.py | jent-ly/summarizer-server | 98f9b49d17aa637648cce1dd7ab9ad0efec5fe09 | [
"MIT"
] | 1 | 2019-08-13T08:27:49.000Z | 2019-08-13T08:27:49.000Z | from models import database, Account
from serializers import AccountSchema
class AccountService:
def __init__(self):
self.anonymous_email = "anonymous@jent.ly"
self.anonymous_gaia = "ewpewawn"
self.user_single = AccountSchema()
self.user_multiple = AccountSchema(many=True)
def serialize_single(self, account):
return self.user_single.dump(account)
def serialize_multiple(self, users):
return self.user_multiple.dump(users)
def get_or_create(self, email, gaia):
account = self.get(email)
if account is not None:
print("Account <'email={0} gaia={1}'> already exists.".format(email, gaia))
return account
account = Account(email=email, gaia=gaia)
database.session.add(account)
database.session.commit()
return account
def get(self, email):
account = Account.query.filter_by(email=email).first()
if account is None:
print("Account <'email={0}'> does not exist yet.".format(email))
return None
return account
def get_all(self):
return Account.query.order_by(Account.create_time.desc()).all()
def get_anonymous(self):
return self.get_or_create(self.anonymous_email, self.anonymous_gaia)
| 31.047619 | 87 | 0.655675 | 159 | 1,304 | 5.232704 | 0.339623 | 0.0625 | 0.043269 | 0.036058 | 0.052885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00303 | 0.240798 | 1,304 | 41 | 88 | 31.804878 | 0.837374 | 0 | 0 | 0.096774 | 0 | 0 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.064516 | 0.129032 | 0.580645 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
412b62d12ea0d8d71b70b3afa39517e4d92005ba | 2,786 | py | Python | src/data.py | smlblbn/imagecolorizer | 1d984c69797edb6ebfa00d9bccc621852f7d8392 | [
"MIT"
] | null | null | null | src/data.py | smlblbn/imagecolorizer | 1d984c69797edb6ebfa00d9bccc621852f7d8392 | [
"MIT"
] | null | null | null | src/data.py | smlblbn/imagecolorizer | 1d984c69797edb6ebfa00d9bccc621852f7d8392 | [
"MIT"
] | null | null | null | import numpy as np
import utils
test_np = np.ndarray(shape=(100, 256, 256, 1))
train_np = np.ndarray(shape=(800, 256, 256, 1))
valid_np = np.ndarray(shape=(100, 256, 256, 1))
train_np_gt = np.ndarray(shape=(800, 64, 64, 2))
valid_np_gt = np.ndarray(shape=(100, 64, 64, 2))
train_np_real = np.ndarray(shape=(800, 256, 256, 3))
valid_np_real = np.ndarray(shape=(100, 256, 256, 3))
index = 0
with open('train.txt', 'r') as file:
lines = file.readlines()
for line in lines:
if line.strip():
line = line.split('\n')
img = utils.read_image('../gray/' + line[0]).astype(np.uint8)
img, _ = utils.cvt2Lab(img)
img = img.reshape(256, 256, 1).astype(np.int8)
img_gt = utils.read_image('../color_64/' + line[0]).astype(np.uint8)
_, img_gt = utils.cvt2Lab(img_gt)
img_gt = img_gt.astype(np.int8)
img_real = utils.read_image('../color_256/' + line[0]).astype(np.uint8)
train_np[index] = img
train_np_gt[index] = img_gt
train_np_real[index] = img_real
index = index + 1
with open('../train.npy', 'wb') as file:
np.save(file, train_np)
with open('../train_gt.npy', 'wb') as file:
np.save(file, train_np_gt)
with open('../train_real.npy', 'wb') as file:
np.save(file, train_np_real)
index = 0
with open('valid.txt', 'r') as file:
lines = file.readlines()
for line in lines:
if line.strip():
line = line.split('\n')
img = utils.read_image('../gray/' + line[0]).astype(np.uint8)
img, _ = utils.cvt2Lab(img)
img = img.reshape(256, 256, 1).astype(np.int8)
img_gt = utils.read_image('../color_64/' + line[0]).astype(np.uint8)
_, img_gt = utils.cvt2Lab(img_gt)
img_gt = img_gt.astype(np.int8)
img_real = utils.read_image('../color_256/' + line[0]).astype(np.uint8)
valid_np[index] = img
valid_np_gt[index] = img_gt
valid_np_real[index] = img_real
index = index + 1
with open('../valid.npy', 'wb') as file:
np.save(file, valid_np)
with open('../valid_gt.npy', 'wb') as file:
np.save(file, valid_np_gt)
with open('../valid_real.npy', 'wb') as file:
np.save(file, valid_np_real)
index = 0
with open('test.txt', 'r') as file:
lines = file.readlines()
for line in lines:
if line.strip():
line = line.split('\n')
img = utils.read_image('../test_gray/' + line[0]).astype(np.uint8)
img, _ = utils.cvt2Lab(img)
img = img.reshape(256, 256, 1).astype(np.int8)
test_np[index] = img
index = index + 1
with open('../test.npy', 'wb') as file:
np.save(file, test_np) | 30.615385 | 83 | 0.569993 | 423 | 2,786 | 3.588652 | 0.113475 | 0.063241 | 0.064559 | 0.059947 | 0.841238 | 0.779974 | 0.710804 | 0.69697 | 0.689065 | 0.578393 | 0 | 0.06168 | 0.260948 | 2,786 | 91 | 84 | 30.615385 | 0.675571 | 0 | 0 | 0.5 | 0 | 0 | 0.08145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb1b9cbc58037ed2fc207fcb5350dac518955af9 | 145 | py | Python | elif_bayindir/phase_1/python_basic_1/day_9/q9.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | elif_bayindir/phase_1/python_basic_1/day_9/q9.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | elif_bayindir/phase_1/python_basic_1/day_9/q9.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | # Question 9
# Get the size of an object in bytes
import sys
var1 = input("Enter a value of the object: ")
print(sys.getsizeof(var1), "bytes")
| 18.125 | 45 | 0.703448 | 25 | 145 | 4.08 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.186207 | 145 | 7 | 46 | 20.714286 | 0.838983 | 0.310345 | 0 | 0 | 0 | 0 | 0.350515 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
eb25d78cb3f55d79993d1bbadc091c36d1b4b4b7 | 289 | py | Python | MedSpa_backend/med_spa/medspa/admin.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | 1 | 2021-08-10T19:03:23.000Z | 2021-08-10T19:03:23.000Z | MedSpa_backend/med_spa/medspa/admin.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | null | null | null | MedSpa_backend/med_spa/medspa/admin.py | Schmidt1519/med-spa-capstone | 7e0e9aec0c990859e03dfbc86fd5714bef3f3f2a | [
"Unlicense",
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(User)
admin.site.register(Appointment)
admin.site.register(Service)
admin.site.register(Review)
admin.site.register(Membership)
admin.site.register(Cart)
admin.site.register(Payment)
| 22.230769 | 32 | 0.809689 | 40 | 289 | 5.85 | 0.425 | 0.269231 | 0.508547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076125 | 289 | 12 | 33 | 24.083333 | 0.876404 | 0.089965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb318625adda091de1420269a0fdfba33e4725b8 | 566 | py | Python | DataInterface.py | gatewaytofredom/Windows-Reminder | 3d3508c552473fe48b422817827a8604c74d4b95 | [
"Unlicense"
] | null | null | null | DataInterface.py | gatewaytofredom/Windows-Reminder | 3d3508c552473fe48b422817827a8604c74d4b95 | [
"Unlicense"
] | null | null | null | DataInterface.py | gatewaytofredom/Windows-Reminder | 3d3508c552473fe48b422817827a8604c74d4b95 | [
"Unlicense"
] | null | null | null | #interface for loading and saving json lists of events
import simplejson as json
def SaveFile(events_list):
try:
events_json = json.dumps(events_list)
with open('data.json', 'w') as write_file:
json.dump(events_json, write_file)
print("list saved")
print(events_json)
except Exception as e:
print(e)
#TODO add file integrety check
def LoadFile(file_name):
with open("data.json", "r") as read_file:
return json.load(read_file)
def GetEventByDate():
pass
def GetEventByName():
pass
| 21.769231 | 54 | 0.659011 | 78 | 566 | 4.653846 | 0.538462 | 0.082645 | 0.066116 | 0.088154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24735 | 566 | 25 | 55 | 22.64 | 0.852113 | 0.144876 | 0 | 0.117647 | 0 | 0 | 0.06237 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.235294 | false | 0.117647 | 0.058824 | 0 | 0.352941 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
eb3862a68d427a7ae9aa6392f99eea80a18845ec | 140 | py | Python | docs/tests/W0109.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 17 | 2016-01-26T13:30:04.000Z | 2022-03-06T21:11:42.000Z | docs/tests/W0109.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 50 | 2019-08-14T16:14:45.000Z | 2022-03-31T11:00:50.000Z | docs/tests/W0109.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 15 | 2015-11-18T12:18:50.000Z | 2021-01-17T22:21:41.000Z | ##Patterns: W0109
##Warn: W0109
cities = {
'CA': 'San Francisco',
'MI': 'Detroit',
'FL': 'Jacksonville',
'MI': 'Detroit'
}
| 14 | 26 | 0.528571 | 14 | 140 | 5.285714 | 0.785714 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0.242857 | 140 | 9 | 27 | 15.555556 | 0.622642 | 0.185714 | 0 | 0 | 0 | 0 | 0.427273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb3febc896f04071994391ecad85eeb0b7114364 | 14,243 | py | Python | messages/reminders.py | qxf2/daily-messages | 0e93033df8d519873094928eba2a9d0151f1b459 | [
"MIT"
] | null | null | null | messages/reminders.py | qxf2/daily-messages | 0e93033df8d519873094928eba2a9d0151f1b459 | [
"MIT"
] | 5 | 2020-09-15T10:30:37.000Z | 2021-01-21T18:42:04.000Z | messages/reminders.py | qxf2/daily-messages | 0e93033df8d519873094928eba2a9d0151f1b459 | [
"MIT"
] | 2 | 2020-08-27T10:24:38.000Z | 2021-01-27T13:00:06.000Z | """
Reminders depending on the day of the week
"""
monday_msg = ["I hope you planned this week on Friday evening itself. If not, please do it now. Send out all the calendar events that you need to for this week. Accept (or reject) the calendar invites you received. Know at least two of your top priorities.",
"Did you plan your week out in Friday? If not, now is the time. Planning your week in advance will help you say NO and help you from having to constantly firefight.",
"How does your work week look? If you have not, list your action items and approximately when you think they will be tackled. Just doing this regularly will help you manage your time better.",
"Please make an effort to manage your time well. Plan your week, be punctual, finish meetings on time and use the calendar well. These are important habits to cultivate a respectful environment.",
"Make it a goal to avoid scheduling same-day-meetings. Those should be reserved for real emergencies. At the start of the week, make sure your have already scheduled all that you know is going to happen on your calendar.",
"Did the previous week play out close to how you planned it? React with either a thumbs up or thumbs down.",
"Your poor planning should not become someone elses emergency. Please take a few minutes to plan your week and schedule all the events that you might need!",
"Please pay attention to mailers from 1to1help even if their material is of no use to you right now. Do not wait until you need the help. Gradually accumulating byte sized tips will most likely prove crucial in the future to you and people you care about.",
"As you plan your week, please factor in time to remain minimally healthy. Schedule frequent breaks to stand up, stretch and walk multiple times during the day. Make an effort to apply the tips sent by 1to1help.net",
"Avoiding burnout is important for an early employee. Make sure to pace yourself well. Finish your alloted vacation days every year. Take frequent breaks during the day to stand up, stretch and walk. Recognize when you are getting bored or overwhelmed and speak up. Accept the fact that it is OK to fail when you genuinely try. Ask your 1:1 manager for more tips."]
tuesday_msg = ["Your Friday demos can be of work you did at a client in the past too! If you feel something you did in the past is interesting, please share!",
"You can request your colleagues to demo something you know they have done? Just make sure to give them at least a week of prior notice.",
"Think of what you want to demo on the sprint call. Work towards it in terms of visual milestones. That way, at all points you will have a working demo. Even if you don't complete your task, you can demo <i>something at least!</i>",
"Friday demos are an inexpensive way for you to share your work with you colleagues while . Please make it a point to try and demo whatever you are working on.",
"Your Friday demo need not be polished. You can demo work in progress too! In fact, you can demo some of the systems you are working with if you think that knowledge is not common place within Qxf2.",
"You can preview the kind of socio-technical problems that we will face if we grow bigger at: https://growing-pains.qxf2.com",
"Once in a while, when you are bored, please try out the-bored-qa.qxf2.com and give me some feedback.",
"Qxf2 will gladly buy you tickets to one conference every year. The conference has to be related to software (or the business of software) in some way. A typical conference ticket costs INR 15k to USD 1k. We will also pay you for two days which spend attending the conference. All you need to do is to pay for your travel and stay.",
"Qxf2 has partnered with 1to1help.net for mental wellbeing. Please make sure you are applying the useful tips and suggestions they offer in their weekly mailers.",
"Qxf2 will gladly buy you technical books. In return, you need to read the book and create a good summary for us.",
"Qxf2 will buy you online courses for upto INR 5k a year. The courses have to be related to something you hope to apply at Qxf2 some day.",
"There should be absolutely no 1:1 technical communication! Technical questions should be asked on the common channel. https://qxf2.com/blog/banning-11-technical-communication/",
"You should not discuss politics of religion on common channels. You are welcome to talk about them in 1:1 channels.",
"For technical communication, please do not use any medium other than the ones listed here https://docs.google.com/presentation/d/1mQO7Hs45XMbmX6v5pP0V2027bqtpuN888sW8G2aEziM/edit#slide=id.g6f50f09311_0_63. No using SMS, Whatsapp, etc.",
"Passwords should never be put in version control. Please remember to add the file to .gitignore and add a sentence or two in the readme of your repo on how to get setup.",
"You can look at tickets of closed Trello board by searching for <b>board:number</b> in the ticket search field. For example, to see what ticket we tackled in our very first sprint, search for <i>board:0001</i>",
"Keep your inbox as close to zero as possible. It will reduce the chances of missing important information. Tips available here: https://trello.com/c/eZHBXygi/23-tuesday-1400-good-gmail-habits",
"You are expected to work 8 (or 9) hours a day. If you are frequently working more than that, please improve your planning and expectation setting. If you do not know how, please talk with your 1:1 manager.",
"We do not use the phrase *manual testing*. Use the words <b>testing</b> or <b>exploratory testing</b> instead. Ask me or your 1:1 manager if you do not understand why.",
"We do not sell *automated testing* as a service. Our goal is to test the product in front of us. Automation is a tool that helps us test better in some specific scenarios.",
"Exploratory testing is not unstructured or haphazard or test-as-you-like. Good exploratory testing has structured and should be recorded/documented. Please look up the terms session-based-testing and testing-charters you do not know how to conduct your exploratory testing sessions."]
wednesday_msg = ["As you go about this week, be on the lookout for how you can help a colleague get better. The help does not have to be substantial or life-changing or even correct! Just your attempt to help someone who is stuck will make Qxf2 suck a little less.",
"You should pay attention to the work of your colleagues, at least at a high level. Read through Trello and Jira once or twice a week even if you are working on a client. Be curious about what your colleagues do at clients even if you are on R&D.",
"1:1 sessions with your manager are supposed to be driven by the direct report. Your 1:1 manager should NOT be talking about technical work unless you bring it up. You should not be going to the meeting to report status. Instead, the sessions are to help you with your career. You can ask them for help on anything except technical problems. For technical problems, please post on the group channel.",
"In a small company, enforcing culture is everyones responsibility. Please speak up if you notice someone doing something wrong.",
"Do you know the number one reason early employees lose touch with the company they helped build? It is because they think correcting bad habits of later employees is the responsibility of management <i>only</i>. Well, it is the responsibility of the early employee <i>also</i>.",
"I am open to trying out ideas that I completely disagree with. Suggest your idea. While I may turn it down in the moment, I will be trying incorporate it somehow, somewhere in a safe to fail way.",
"The habits we stress at Qxf2 should continue at a client too. You should not suddenly go back to your old way of working when you are on a client!",
"Early employees should get into the habit of asking for more responsibility! A growing bootstrapped company can afford to create all sorts of weird roles and one off opportunities.",
"Please let work suffer if it is not being done in a fair way. Do NOT make it a habit to over-compensate for the weak links in your team. Instead, let the delivery fail and let the company fix the deeper issues (e.g.: poor hiring).",
"As an early employee, when dealing with new hires, please attribute good intentions. New folks want to do well at their job but may not yet have enough context within Qxf2 to do well.",
"We work on early stage products with small engineering teams. That means decisions around staffing, tooling, process, speed and stability are different from what you are used to. Please make an effort to think through the ramifications of what these mean. If you are not sure, please discuss with your 1:1 manager and/or your other colleagues.",
"Are you multi-tasking better? We had a group discussion around multi-tasking a while ago. Today is a good time to check and see if you are adopting at least some new habits from that discussion: https://trello.com/c/hqe431zn/25-growing-pain-how-do-we-multi-task-better"]
thursday_msg = ["Make an effort to share what you learn. Almost all the material on the Internet that you use to unblock yourself was created by busy professionals like you. So, once in a while, take a pause from consuming all that good stuff and try to share your own learnings",
"You are expected to share what you know on our blog. If you feel unqualified, remember that technical expertise is a spectrum. There is always someone who will find your perspective useful.",
"You can share personal stuff that you are excited about on the etc,etc,etc channel. You are not disturbing anyone or being noisy or anything like that. The channel exists so you can share such stuff.",
"We strongly recommend regular 1:1 communication for non-technical stuff. Please make sure you are taking time to treat your colleagues like humans with lives.",
"We have the habit of peer-checkins. If you havent done them in a while, please try one next week. https://sites.google.com/qxf2.com/wiki/home/r-d/newbie-orientation/peer-checkin",
"Everyone starts out loving remote work. Then, it gets depressing. We expect everyone that joins us to face this challenge. If you are finding it hard to feel motivated, please reach out to the folks who have been here for a while. They can help. Helpful link: https://qxf2.com/blog/experience-working-remote/",
"Remote work is a challenge, not a perk. It takes a lot of discipline to make remote work click. Please reach out when you find it hard and we will give you tips.",
"Back, neck, eye and wrist problems are very common among remote workers. Please make sure you have an ergonomic work setup. Maintain good posture. Take a 2-minute break at least every hour to make sure you are walking, standing, stretching, exercising your wrists, etc.",
"If you have been at Qxf2 for a while and find your work monotonous, talk to your 1:1 manager. It is OK to have such conversations within Qxf2. As an experienced engineer, I know finding work boring or stifling or monotonous is normal for anyone in any field.",
"It is completely natural to have non-productive days as you transition into a completely remote environment. The best tip I have is to not hide it. Just admit the failure openly. We will work with you and try to help you make adjustments.",
"Your QElo score depends on what you fill out in the help survey and the R&D task completion dashboard. If you forget to self-report, your score suffers. So please make it a habit to fill out the survey and task completion dashboard. http://34.205.45.167/survey https://docs.google.com/spreadsheets/d/1YtdX75BoCwnzkGbR6G4hHvPS_m2HfWffYTI_WCH-IlU",
"Keep daily notes of what went good/bad, the folks that you gave or recieved help from and the new tech you (learnt + applied). It will help on Friday when you fill out your retrospective and help survey. The accurate information, in turn, will help you get a better QElo score",
"QElo is a <i>rating</i> system. Not a ranking system. In a ranking system, the top ranks get rewarded disproportionately. E.g: The Olympics. In a rating system, people are rewarded proportionately. E.g.: Star rating of restaurants on Zomato",
"The best way to get a high QElo rating is to perform four actions with four attributes. Four actions: Execute, Learn, Share, Choose. Four attributes: Consistency, Adaptability, Curiousity driven, Generalized.",
"Tasks you choose to work on should benefit your client, Qxf2 and you! Choosing such tasks is a skill to be developed just like anything else.",
"QElo is designed to use lifetime scores. I did this so people can make longer term plays and do not have to worry about what they did only in the last quarter.",
"QElo is a group measure. You can improve and still have your score go down and vice versa!",
"Your QElo score is does not depend on manager input or how well you talk/present or the visibility of your projects. Instead, it measures how much your work contributes to our goals.",
"QElo is designed to keep freedom and responsibility proportional. If you have made genuine contributions, you can afford to take breaks, explore newer things, etc.",
"Your QElo score will be visible to all your colleagues. You can see the discussion around this here: https://sites.google.com/qxf2.com/wiki/home/hr/pros-and-cons-of-an-open-qelo-rating",
"One of the aims of QElo is to help engineers discover their own point of view.Once you have a unique way of looking at things, scoring well on QElo becomes natural.",
"Qxf2 will change. As early employees, you might not like that but you have to accept it. It is not that different from how you, the individual, has changed as you grow up and deal with changes in your life."]
friday_msg = ["Please fill out the help survey and retrospective card! Both habits are defenses to preserve the habit of remote work. http://34.205.45.167/survey",
"Have you filled out the retrospective card? Have you filled out the survey? http://34.205.45.167/survey",
"TGIF! Please remember to fill out the retrospective card and the survey! http://34.205.45.167/survey",
"Survey reminder: https://docs.google.com/spreadsheets/d/1YtdX75BoCwnzkGbR6G4hHvPS_m2HfWffYTI_WCH-IlU"]
messages = { 0: monday_msg,
1: tuesday_msg,
2: wednesday_msg,
3: thursday_msg,
4: friday_msg}
| 180.291139 | 401 | 0.779049 | 2,527 | 14,243 | 4.384646 | 0.305501 | 0.01083 | 0.003249 | 0.00704 | 0.054422 | 0.03213 | 0.024368 | 0.024368 | 0.012996 | 0.012996 | 0 | 0.012915 | 0.168223 | 14,243 | 78 | 402 | 182.602564 | 0.922343 | 0.002949 | 0 | 0 | 0 | 0.905405 | 0.965053 | 0.002959 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013514 | 0.040541 | 0 | 0.040541 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de2f01242e0c757571e19900280cf7aff4382d7f | 218 | py | Python | qf_11_break和continue的使用.py | tianming-jianai/QFPython | bf14fc5da077e745670c5898f1d3322cb87e6f6b | [
"MIT"
] | null | null | null | qf_11_break和continue的使用.py | tianming-jianai/QFPython | bf14fc5da077e745670c5898f1d3322cb87e6f6b | [
"MIT"
] | null | null | null | qf_11_break和continue的使用.py | tianming-jianai/QFPython | bf14fc5da077e745670c5898f1d3322cb87e6f6b | [
"MIT"
] | null | null | null | # break 和 continue 在Python中只能用于循环语句
# break:用来结束整个循环
# continue:用来结束本轮循环,开启下一轮循环
while True:
username = input('请输入用户名:')
password = input('请输入密码:')
if username == 'zs' and password == '123':
break
| 21.8 | 46 | 0.655963 | 24 | 218 | 5.958333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.215596 | 218 | 9 | 47 | 24.222222 | 0.818713 | 0.33945 | 0 | 0 | 0 | 0 | 0.128571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
de34c0247fe87ab44222921caa73e21ce2948946 | 1,405 | py | Python | stonesoup/dataassociator/tests/conftest.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 157 | 2019-04-14T20:43:11.000Z | 2022-03-30T08:30:33.000Z | stonesoup/dataassociator/tests/conftest.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 364 | 2019-04-18T15:54:49.000Z | 2022-03-31T09:50:02.000Z | stonesoup/dataassociator/tests/conftest.py | Red-Portal/Stone-Soup-1 | 267621c86161a839da9b144c2745d28d9166d903 | [
"MIT"
] | 86 | 2019-04-20T02:01:18.000Z | 2022-03-28T01:03:11.000Z | # -*- coding: utf-8 -*-
import pytest
import numpy as np
from ...hypothesiser.probability import PDAHypothesiser
from ...hypothesiser.distance import DistanceHypothesiser
from ...measures import Mahalanobis
from ...models.measurement.linear import LinearGaussian
from ...types.array import CovarianceMatrix
from ...models.transition.linear import ConstantVelocity, CombinedLinearGaussianTransitionModel
from ...predictor.kalman import KalmanPredictor
from ...updater.kalman import ExtendedKalmanUpdater
@pytest.fixture()
def measurement_model():
return LinearGaussian(ndim_state=4, mapping=[0, 2],
noise_covar=CovarianceMatrix(np.diag([1, 1])))
@pytest.fixture()
def predictor():
transition_model = CombinedLinearGaussianTransitionModel([ConstantVelocity(1),
ConstantVelocity(1)])
return KalmanPredictor(transition_model)
@pytest.fixture()
def updater(measurement_model):
return ExtendedKalmanUpdater(measurement_model)
@pytest.fixture()
def probability_hypothesiser(predictor, updater):
return PDAHypothesiser(predictor, updater,
clutter_spatial_density=1.2e-2,
prob_detect=0.9, prob_gate=0.99)
@pytest.fixture()
def distance_hypothesiser(predictor, updater):
return DistanceHypothesiser(predictor, updater, Mahalanobis(), 10)
| 32.674419 | 95 | 0.718861 | 134 | 1,405 | 7.440299 | 0.410448 | 0.065196 | 0.080241 | 0.042126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015762 | 0.187189 | 1,405 | 42 | 96 | 33.452381 | 0.857268 | 0.014947 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.133333 | 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 | 1 | 1 | 0 | 0 | 3 |
de4f095a0411d05a832482cdd9c744b8fc2760b2 | 276 | py | Python | chipy_org/apps/meetings/migrations/0006_merge_20210214_1847.py | land-of-apps/chipy.org | be433d0cb3453a1550f344c02d6164b6bf4d9e63 | [
"MIT"
] | null | null | null | chipy_org/apps/meetings/migrations/0006_merge_20210214_1847.py | land-of-apps/chipy.org | be433d0cb3453a1550f344c02d6164b6bf4d9e63 | [
"MIT"
] | null | null | null | chipy_org/apps/meetings/migrations/0006_merge_20210214_1847.py | land-of-apps/chipy.org | be433d0cb3453a1550f344c02d6164b6bf4d9e63 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.17 on 2021-02-14 18:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('meetings', '0005_auto_20210110_1819'),
('meetings', '0005_auto_20201226_2020'),
]
operations = [
]
| 18.4 | 48 | 0.652174 | 33 | 276 | 5.272727 | 0.787879 | 0.137931 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225352 | 0.228261 | 276 | 14 | 49 | 19.714286 | 0.591549 | 0.166667 | 0 | 0 | 1 | 0 | 0.27193 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de50692086615c30e69073a8532a5a8796cf0e7f | 784 | py | Python | client/verta/tests/test_model_registry/test_model_base.py | TMFRook/modeldb | 7096b8fd7e98dc97c3c87cf0ce0e3862ff042f6c | [
"Apache-2.0"
] | null | null | null | client/verta/tests/test_model_registry/test_model_base.py | TMFRook/modeldb | 7096b8fd7e98dc97c3c87cf0ce0e3862ff042f6c | [
"Apache-2.0"
] | null | null | null | client/verta/tests/test_model_registry/test_model_base.py | TMFRook/modeldb | 7096b8fd7e98dc97c3c87cf0ce0e3862ff042f6c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from verta.registry import VertaModelBase
def test_abstract_methods():
"""Abstract methods must be implemented."""
ERROR_MSG_REGEX = "^Can't instantiate abstract class .* with abstract method"
class NoImpl(VertaModelBase):
pass
class OnlyInit(VertaModelBase):
def __init__(self, artifacts):
pass
class OnlyPredict(VertaModelBase):
def predict(self, input):
pass
class Both(VertaModelBase):
def __init__(self, artifacts):
pass
def predict(self, input):
pass
for model_cls in [NoImpl, OnlyInit, OnlyPredict]:
with pytest.raises(TypeError, match=ERROR_MSG_REGEX):
model_cls(None)
assert Both(None)
| 22.4 | 81 | 0.635204 | 84 | 784 | 5.738095 | 0.52381 | 0.141079 | 0.053942 | 0.103734 | 0.253112 | 0.157676 | 0 | 0 | 0 | 0 | 0 | 0.001761 | 0.27551 | 784 | 34 | 82 | 23.058824 | 0.846831 | 0.076531 | 0 | 0.428571 | 0 | 0 | 0.079387 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.238095 | false | 0.238095 | 0.095238 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
de6b7ac1c62715b20c4c4600d563f8b63c3d66b2 | 597 | py | Python | passwords/type7.py | m00tiny/scripts | 54660525f36e3e97d23fbd259ceb9b10823f2ee2 | [
"BSD-3-Clause"
] | 877 | 2015-01-01T23:17:14.000Z | 2022-03-27T10:42:01.000Z | passwords/type7.py | wasi0013/scripts | 51cbeccfd89e168b15ddb83c7be19ae38acf80d2 | [
"BSD-3-Clause"
] | 5 | 2016-10-08T19:45:40.000Z | 2020-09-02T02:15:10.000Z | passwords/type7.py | wasi0013/scripts | 51cbeccfd89e168b15ddb83c7be19ae38acf80d2 | [
"BSD-3-Clause"
] | 352 | 2015-01-26T02:33:17.000Z | 2022-03-15T23:01:27.000Z | import sys
V = [0x64, 0x73, 0x66, 0x64, 0x3b, 0x6b, 0x66, 0x6f, 0x41, 0x2c, 0x2e,
0x69, 0x79, 0x65, 0x77, 0x72, 0x6b, 0x6c, 0x64, 0x4a, 0x4b, 0x44,
0x48, 0x53, 0x55, 0x42, 0x73, 0x67, 0x76, 0x63, 0x61, 0x36, 0x39,
0x38, 0x33, 0x34, 0x6e, 0x63, 0x78, 0x76, 0x39, 0x38, 0x37, 0x33,
0x32, 0x35, 0x34, 0x6b, 0x3b, 0x66, 0x67, 0x38, 0x37]
if len(sys.argv) != 2:
print("Usage: type7.py hash")
sys.exit(0)
hash = sys.argv[1]
i = int(hash[:2], 16)
r = ""
for j in range(2, len(hash) - 2, 2):
h = int(hash[j:j+2], 16)
r = r + chr(h ^ V[i])
i = (i + 1) % 53
print r
| 25.956522 | 70 | 0.571189 | 107 | 597 | 3.186916 | 0.579439 | 0.046921 | 0.02346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359823 | 0.241206 | 597 | 22 | 71 | 27.136364 | 0.392936 | 0 | 0 | 0 | 0 | 0 | 0.033501 | 0 | 0 | 0 | 0.355109 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.117647 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
de703e0a7d9e16592fe817d06b18c8ecb7d4cad5 | 526 | py | Python | fdk_client/application/models/ValidateCustomerRequest.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/application/models/ValidateCustomerRequest.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/application/models/ValidateCustomerRequest.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | """Application Models."""
from marshmallow import fields, Schema
from marshmallow.validate import OneOf
from ..enums import *
from ..models.BaseSchema import BaseSchema
class ValidateCustomerRequest(BaseSchema):
# Payment swagger.json
transaction_amount_in_paise = fields.Int(required=False)
phone_number = fields.Str(required=False)
aggregator = fields.Str(required=False)
merchant_params = fields.Dict(required=False)
payload = fields.Str(required=False)
| 15.470588 | 60 | 0.709125 | 56 | 526 | 6.571429 | 0.553571 | 0.17663 | 0.138587 | 0.179348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205323 | 526 | 33 | 61 | 15.939394 | 0.880383 | 0.077947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
debadf5cbf9497fc7c400edd83eae46f7faacdfd | 107 | py | Python | src/rules/Snakefile.py | bmennis/nb_prediction | 46938178c9ec3f4a82cf57a972d6a94303bfa802 | [
"RSA-MD"
] | null | null | null | src/rules/Snakefile.py | bmennis/nb_prediction | 46938178c9ec3f4a82cf57a972d6a94303bfa802 | [
"RSA-MD"
] | null | null | null | src/rules/Snakefile.py | bmennis/nb_prediction | 46938178c9ec3f4a82cf57a972d6a94303bfa802 | [
"RSA-MD"
] | null | null | null | """Main snakefile"""
include: "const.py"
rule all:
output: LOG + 'DONE'
shell: 'touch {output}'
| 13.375 | 28 | 0.588785 | 13 | 107 | 4.846154 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224299 | 107 | 7 | 29 | 15.285714 | 0.759036 | 0 | 0 | 0 | 0 | 0 | 0.298851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
debf754728a2f498b7fd73d458245a98d91b848f | 1,281 | py | Python | diamondkata/diamond.py | cjhnim/daily-kata-python | 44a4ba9583b9f8c9db8e0114fa4837acbbd83746 | [
"MIT"
] | null | null | null | diamondkata/diamond.py | cjhnim/daily-kata-python | 44a4ba9583b9f8c9db8e0114fa4837acbbd83746 | [
"MIT"
] | null | null | null | diamondkata/diamond.py | cjhnim/daily-kata-python | 44a4ba9583b9f8c9db8e0114fa4837acbbd83746 | [
"MIT"
] | null | null | null |
class Diamond:
START_LETTER = 'A'
ENTER = '\n'
SPACE = ' '
BLANK = ''
def __init__(self, upTo):
self.upTo = upTo
def show(self):
top = self.BLANK
bottom = self.BLANK
for c in range(ord(self.START_LETTER), ord(self.upTo)+1):
line = self.buildLine(chr(c))
top += line
bottom = self.bottomLine(chr(c), line, bottom)
return top + bottom
def bottomLine(self, c, line, bottom):
return line + bottom if(c != self.upTo) else bottom
def buildLine(self, c):
return self.indent(c) + \
self.letter(c) + \
self.innerSpace(c) + \
self.secondLetter(c) + \
self.ENTER
def letter(self, c):
return c
def secondLetter(self, c):
return c if c != self.START_LETTER else ''
def indent(self, c):
count = ord(self.upTo) - ord(c)
return self.makeSpace(count)
def innerSpace(self, c):
index = ord(c) - ord(self.START_LETTER)
count = index*2-1
return self.makeSpace(count)
def makeSpace(self, count):
space = ''
for i in range(0, count):
space += self.SPACE
return space
| 24.169811 | 65 | 0.514442 | 155 | 1,281 | 4.2 | 0.245161 | 0.046083 | 0.069124 | 0.0553 | 0.082949 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004944 | 0.368462 | 1,281 | 53 | 66 | 24.169811 | 0.799753 | 0 | 0 | 0.051282 | 0 | 0 | 0.003123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.102564 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dec140867582523f12b303f11244505892b7daa0 | 62,935 | py | Python | stubs.min/System/Windows/__init___parts/ContentElement.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | 1 | 2017-07-25T14:30:18.000Z | 2017-07-25T14:30:18.000Z | stubs.min/System/Windows/__init___parts/ContentElement.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/__init___parts/ContentElement.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class ContentElement(DependencyObject,IInputElement,IAnimatable):
"""
Provides a WPF core-level base class for content elements. Content elements are designed for flow-style presentation,using an intuitive markup-oriented layout model and a deliberately simple object model.
ContentElement()
"""
def AddHandler(self,routedEvent,handler,handledEventsToo=None):
"""
AddHandler(self: ContentElement,routedEvent: RoutedEvent,handler: Delegate,handledEventsToo: bool)
Adds a�routed event handler for a specified routed event,adding the handler to
the handler collection on the current element. Specify handledEventsToo as true
to have the provided handler be invoked for routed event that had already been
marked as handled by another element along the event route.
routedEvent: An identifier for the.routed event to be handled.
handler: A reference to the handler implementation.
handledEventsToo: true to register the handler such that it is invoked even when the routed event
is marked handled in its event data; false to register the handler with the
default condition that it will not be invoked if the routed event is already
marked handled. The default is false.Do not routinely ask to rehandle a routed
event. For more information,see Remarks.
AddHandler(self: ContentElement,routedEvent: RoutedEvent,handler: Delegate)
Adds a�routed event handler for a specified routed event,adding the handler to
the handler collection on the current element.
routedEvent: An identifier for the routed event to be handled.
handler: A reference to the handler implementation.
"""
pass
def AddToEventRoute(self,route,e):
"""
AddToEventRoute(self: ContentElement,route: EventRoute,e: RoutedEventArgs)
Adds handlers to the specified System.Windows.EventRoute for the current
System.Windows.ContentElement event handler collection.
route: The event route that handlers are added to.
e: The event data that is used to add the handlers. This method uses the
System.Windows.RoutedEventArgs.RoutedEvent property of the arguments to create
the handlers.
"""
pass
def ApplyAnimationClock(self,dp,clock,handoffBehavior=None):
"""
ApplyAnimationClock(self: ContentElement,dp: DependencyProperty,clock: AnimationClock,handoffBehavior: HandoffBehavior)
Applies an animation to a specified�dependency property on this element,with
the ability to specify what happens if the property already has a running
animation.
dp: The property to animate.
clock: The animation clock that controls and declares the animation.
handoffBehavior: A value of the enumeration. The default is
System.Windows.Media.Animation.HandoffBehavior.SnapshotAndReplace,which will
stop any existing animation and replace with the new one.
ApplyAnimationClock(self: ContentElement,dp: DependencyProperty,clock: AnimationClock)
Applies an animation to a specified�dependency property on this element. Any
existing animations are stopped and replaced with the new animation.
dp: The identifier for the property to animate.
clock: The animation clock that controls and declares the animation.
"""
pass
def BeginAnimation(self,dp,animation,handoffBehavior=None):
"""
BeginAnimation(self: ContentElement,dp: DependencyProperty,animation: AnimationTimeline,handoffBehavior: HandoffBehavior)
Starts a specific animation for a specified animated property on this element,
with the option of specifying what happens if the property already has a
running animation.
dp: The property to animate,which is specified as the dependency property
identifier.
animation: The timeline of the animation to be applied.
handoffBehavior: A value of the enumeration that specifies how the new animation interacts with
any current (running) animations that are already affecting the property value.
BeginAnimation(self: ContentElement,dp: DependencyProperty,animation: AnimationTimeline)
Starts an animation for a specified animated property on this element.
dp: The property to animate,which is specified as a dependency property identifier.
animation: The timeline of the animation to start.
"""
pass
def CaptureMouse(self):
"""
CaptureMouse(self: ContentElement) -> bool
Attempts to force capture of the mouse to this element.
Returns: true if the mouse is successfully captured; otherwise,false.
"""
pass
def CaptureStylus(self):
"""
CaptureStylus(self: ContentElement) -> bool
Attempts to force capture of the stylus to this element.
Returns: true if the stylus is successfully captured; otherwise,false.
"""
pass
def CaptureTouch(self,touchDevice):
"""
CaptureTouch(self: ContentElement,touchDevice: TouchDevice) -> bool
Attempts to force capture of a touch to this element.
touchDevice: The device to capture.
Returns: true if the specified touch is captured to this element; otherwise,false.
"""
pass
def Focus(self):
"""
Focus(self: ContentElement) -> bool
Attempts to set focus to this element.
Returns: true if keyboard focus could be set to this element; false if this method call
did not force focus.
"""
pass
def GetAnimationBaseValue(self,dp):
"""
GetAnimationBaseValue(self: ContentElement,dp: DependencyProperty) -> object
Returns the base property value for the specified property on this element,
disregarding any possible animated value from a running or stopped animation.
dp: The.dependency property to check.
Returns: The property value as if no animations are attached to the specified dependency
property.
"""
pass
def GetUIParentCore(self,*args):
"""
GetUIParentCore(self: ContentElement) -> DependencyObject
When overridden in a derived class,returns an alternative user interface (UI)
parent for this element if no visual parent exists.
Returns: An object,if implementation of a derived class has an alternate parent
connection to report.
"""
pass
def MoveFocus(self,request):
"""
MoveFocus(self: ContentElement,request: TraversalRequest) -> bool
Attempts to move focus from this element to another element. The direction to
move focus is specified by a guidance direction,which is interpreted within
the organization of the visual parent for this element.
request: A traversal request,which contains a property that indicates either a mode to
traverse in existing tab order,or a direction to move visually.
Returns: true if the requested traversal was performed; otherwise,false.
"""
pass
def OnCreateAutomationPeer(self,*args):
"""
OnCreateAutomationPeer(self: ContentElement) -> AutomationPeer
Returns class-specific System.Windows.Automation.Peers.AutomationPeer
implementations for the Windows Presentation Foundation (WPF) infrastructure.
Returns: The type-specific System.Windows.Automation.Peers.AutomationPeer implementation.
"""
pass
def OnDragEnter(self,*args):
"""
OnDragEnter(self: ContentElement,e: DragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.DragEnter�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.DragEventArgs that contains the event data.
"""
pass
def OnDragLeave(self,*args):
"""
OnDragLeave(self: ContentElement,e: DragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.DragLeave�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.DragEventArgs that contains the event data.
"""
pass
def OnDragOver(self,*args):
"""
OnDragOver(self: ContentElement,e: DragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.DragOver�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.DragEventArgs that contains the event data.
"""
pass
def OnDrop(self,*args):
"""
OnDrop(self: ContentElement,e: DragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.DragEnter�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.DragEventArgs that contains the event data.
"""
pass
def OnGiveFeedback(self,*args):
"""
OnGiveFeedback(self: ContentElement,e: GiveFeedbackEventArgs)
Invoked when an unhandled System.Windows.DragDrop.GiveFeedback�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.GiveFeedbackEventArgs that contains the event data.
"""
pass
def OnGotFocus(self,*args):
"""
OnGotFocus(self: ContentElement,e: RoutedEventArgs)
Raises the System.Windows.ContentElement.GotFocus�routed event by using the
event data provided.
e: A System.Windows.RoutedEventArgs that contains event data. This event data must
contain the identifier for the System.Windows.ContentElement.GotFocus event.
"""
pass
def OnGotKeyboardFocus(self,*args):
"""
OnGotKeyboardFocus(self: ContentElement,e: KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event
data.
"""
pass
def OnGotMouseCapture(self,*args):
"""
OnGotMouseCapture(self: ContentElement,e: MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.GotMouseCapture�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseEventArgs that contains the event data.
"""
pass
def OnGotStylusCapture(self,*args):
"""
OnGotStylusCapture(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.GotStylusCapture�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnGotTouchCapture(self,*args):
"""
OnGotTouchCapture(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.GotTouchCapture
routed event that occurs when a touch is captured to this element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnIsKeyboardFocusedChanged(self,*args):
"""
OnIsKeyboardFocusedChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.IsKeyboardFocusedChanged event is raised on this
element. Implement this method to add class handling for this event.
e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event
data.
"""
pass
def OnIsKeyboardFocusWithinChanged(self,*args):
"""
OnIsKeyboardFocusWithinChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs)
Invoked just before the
System.Windows.ContentElement.IsKeyboardFocusWithinChanged event is raised by
this element. Implement this method to add class handling for this event.
e: A System.Windows.DependencyPropertyChangedEventArgs that contains the event
data.
"""
pass
def OnIsMouseCapturedChanged(self,*args):
"""
OnIsMouseCapturedChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs)
Invoked when an unhandled System.Windows.ContentElement.IsMouseCapturedChanged
event is raised on this element. Implement this method to add class handling
for this event.
e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event
data.
"""
pass
def OnIsMouseCaptureWithinChanged(self,*args):
"""
OnIsMouseCaptureWithinChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.IsMouseCaptureWithinChanged event is raised on
this element. Implement this method to add class handling for this event.
e: A System.Windows.DependencyPropertyChangedEventArgs that contains the event
data.
"""
pass
def OnIsMouseDirectlyOverChanged(self,*args):
"""
OnIsMouseDirectlyOverChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.IsMouseDirectlyOverChanged event is raised on
this element. Implement this method to add class handling for this event.
e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event
data.
"""
pass
def OnIsStylusCapturedChanged(self,*args):
"""
OnIsStylusCapturedChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs)
Invoked when an unhandled System.Windows.ContentElement.IsStylusCapturedChanged
event is raised on this element. Implement this method to add class handling
for this event.
e: A System.Windows.DependencyPropertyChangedEventArgs that contains the event
data.
"""
pass
def OnIsStylusCaptureWithinChanged(self,*args):
"""
OnIsStylusCaptureWithinChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.IsStylusCaptureWithinChanged event is raised on
this element. Implement this method to add class handling for this event.
e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event
data.
"""
pass
def OnIsStylusDirectlyOverChanged(self,*args):
"""
OnIsStylusDirectlyOverChanged(self: ContentElement,e: DependencyPropertyChangedEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.IsStylusDirectlyOverChanged event is raised on
this element. Implement this method to add class handling for this event.
e: The System.Windows.DependencyPropertyChangedEventArgs that contains the event
data.
"""
pass
def OnKeyDown(self,*args):
"""
OnKeyDown(self: ContentElement,e: KeyEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.KeyDown�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.KeyEventArgs that contains the event data.
"""
pass
def OnKeyUp(self,*args):
"""
OnKeyUp(self: ContentElement,e: KeyEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.KeyUp�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.KeyEventArgs that contains the event data.
"""
pass
def OnLostFocus(self,*args):
"""
OnLostFocus(self: ContentElement,e: RoutedEventArgs)
Raises the System.Windows.ContentElement.LostFocus�routed event by using the
event data that is provided.
e: A System.Windows.RoutedEventArgs that contains event data. This event data must
contain the identifier for the System.Windows.ContentElement.LostFocus event.
"""
pass
def OnLostKeyboardFocus(self,*args):
"""
OnLostKeyboardFocus(self: ContentElement,e: KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.LostKeyboardFocus�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.KeyboardFocusChangedEventArgs that contains event data.
"""
pass
def OnLostMouseCapture(self,*args):
"""
OnLostMouseCapture(self: ContentElement,e: MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.LostMouseCapture�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseEventArgs that contains event data.
"""
pass
def OnLostStylusCapture(self,*args):
"""
OnLostStylusCapture(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.LostStylusCapture�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains event data.
"""
pass
def OnLostTouchCapture(self,*args):
"""
OnLostTouchCapture(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.LostTouchCapture
routed event that occurs when this element loses a touch capture.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnMouseDown(self,*args):
"""
OnMouseDown(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseDown�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data.
This event data reports details about the mouse button that was pressed and the
handled state.
"""
pass
def OnMouseEnter(self,*args):
"""
OnMouseEnter(self: ContentElement,e: MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseEnter�attached event
is raised on this element. Implement this method to add class handling for this
event.
e: The System.Windows.Input.MouseEventArgs that contains the event data.
"""
pass
def OnMouseLeave(self,*args):
"""
OnMouseLeave(self: ContentElement,e: MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave�attached event
is raised on this element. Implement this method to add class handling for this
event.
e: The System.Windows.Input.MouseEventArgs that contains the event data.
"""
pass
def OnMouseLeftButtonDown(self,*args):
"""
OnMouseLeftButtonDown(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled System.Windows.ContentElement.MouseLeftButtonDown�
routed event is raised on this element. Implement this method to add class
handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the left mouse button was pressed.
"""
pass
def OnMouseLeftButtonUp(self,*args):
"""
OnMouseLeftButtonUp(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled System.Windows.ContentElement.MouseLeftButtonUp�
routed event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the left mouse button was released.
"""
pass
def OnMouseMove(self,*args):
"""
OnMouseMove(self: ContentElement,e: MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseMove�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.MouseEventArgs that contains the event data.
"""
pass
def OnMouseRightButtonDown(self,*args):
"""
OnMouseRightButtonDown(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled System.Windows.ContentElement.MouseRightButtonDown�
routed event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the right mouse button was pressed.
"""
pass
def OnMouseRightButtonUp(self,*args):
"""
OnMouseRightButtonUp(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled System.Windows.ContentElement.MouseRightButtonUp�
routed event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the right mouse button was released.
"""
pass
def OnMouseUp(self,*args):
"""
OnMouseUp(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseUp�routed event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the mouse button was released.
"""
pass
def OnMouseWheel(self,*args):
"""
OnMouseWheel(self: ContentElement,e: MouseWheelEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseWheel�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.MouseWheelEventArgs that contains the event data.
"""
pass
def OnPreviewDragEnter(self,*args):
"""
OnPreviewDragEnter(self: ContentElement,e: DragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.PreviewDragEnter�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.DragEventArgs that contains the event data.
"""
pass
def OnPreviewDragLeave(self,*args):
"""
OnPreviewDragLeave(self: ContentElement,e: DragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.PreviewDragLeave�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.DragEventArgs that contains the event data.
"""
pass
def OnPreviewDragOver(self,*args):
"""
OnPreviewDragOver(self: ContentElement,e: DragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.PreviewDragOver�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.DragEventArgs that contains the event data.
"""
pass
def OnPreviewDrop(self,*args):
"""
OnPreviewDrop(self: ContentElement,e: DragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.PreviewDrop�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.DragEventArgs that contains the event data.
"""
pass
def OnPreviewGiveFeedback(self,*args):
"""
OnPreviewGiveFeedback(self: ContentElement,e: GiveFeedbackEventArgs)
Invoked when an unhandled System.Windows.DragDrop.PreviewGiveFeedback�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.GiveFeedbackEventArgs that contains the event data.
"""
pass
def OnPreviewGotKeyboardFocus(self,*args):
"""
OnPreviewGotKeyboardFocus(self: ContentElement,e: KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.PreviewGotKeyboardFocus�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event
data.
"""
pass
def OnPreviewKeyDown(self,*args):
"""
OnPreviewKeyDown(self: ContentElement,e: KeyEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyDown�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.KeyEventArgs that contains the event data.
"""
pass
def OnPreviewKeyUp(self,*args):
"""
OnPreviewKeyUp(self: ContentElement,e: KeyEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyUp�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.KeyEventArgs that contains the event data.
"""
pass
def OnPreviewLostKeyboardFocus(self,*args):
"""
OnPreviewLostKeyboardFocus(self: ContentElement,e: KeyboardFocusChangedEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyDown�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event
data.
"""
pass
def OnPreviewMouseDown(self,*args):
"""
OnPreviewMouseDown(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseDown attached�
routed event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that one or more mouse buttons were pressed.
"""
pass
def OnPreviewMouseLeftButtonDown(self,*args):
"""
OnPreviewMouseLeftButtonDown(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.PreviewMouseLeftButtonDown�routed event reaches
an element in its route that is derived from this class. Implement this method
to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the left mouse button was pressed.
"""
pass
def OnPreviewMouseLeftButtonUp(self,*args):
"""
OnPreviewMouseLeftButtonUp(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.PreviewMouseLeftButtonUp�routed event reaches an
element in its route that is derived from this class. Implement this method to
add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the left mouse button was released.
"""
pass
def OnPreviewMouseMove(self,*args):
"""
OnPreviewMouseMove(self: ContentElement,e: MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseMove�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseEventArgs that contains the event data.
"""
pass
def OnPreviewMouseRightButtonDown(self,*args):
"""
OnPreviewMouseRightButtonDown(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.PreviewMouseRightButtonDown�routed event reaches
an element in its route that is derived from this class. Implement this method
to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the right mouse button was pressed.
"""
pass
def OnPreviewMouseRightButtonUp(self,*args):
"""
OnPreviewMouseRightButtonUp(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled
System.Windows.ContentElement.PreviewMouseRightButtonUp�routed event reaches an
element in its route that is derived from this class. Implement this method to
add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that the right mouse button was released.
"""
pass
def OnPreviewMouseUp(self,*args):
"""
OnPreviewMouseUp(self: ContentElement,e: MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseUp�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseButtonEventArgs that contains the event data. The
event data reports that one or more mouse buttons were released.
"""
pass
def OnPreviewMouseWheel(self,*args):
"""
OnPreviewMouseWheel(self: ContentElement,e: MouseWheelEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseWheel�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.MouseWheelEventArgs that contains the event data.
"""
pass
def OnPreviewQueryContinueDrag(self,*args):
"""
OnPreviewQueryContinueDrag(self: ContentElement,e: QueryContinueDragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.PreviewQueryContinueDrag�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.QueryContinueDragEventArgs that contains the event data.
"""
pass
def OnPreviewStylusButtonDown(self,*args):
"""
OnPreviewStylusButtonDown(self: ContentElement,e: StylusButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusButtonDown�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusButtonEventArgs that contains the event data.
"""
pass
def OnPreviewStylusButtonUp(self,*args):
"""
OnPreviewStylusButtonUp(self: ContentElement,e: StylusButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusButtonUp�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusButtonEventArgs that contains the event data.
"""
pass
def OnPreviewStylusDown(self,*args):
"""
OnPreviewStylusDown(self: ContentElement,e: StylusDownEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusDown�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusDownEventArgs that contains the event data.
"""
pass
def OnPreviewStylusInAirMove(self,*args):
"""
OnPreviewStylusInAirMove(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusInAirMove�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnPreviewStylusInRange(self,*args):
"""
OnPreviewStylusInRange(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusInRange�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnPreviewStylusMove(self,*args):
"""
OnPreviewStylusMove(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusMove�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnPreviewStylusOutOfRange(self,*args):
"""
OnPreviewStylusOutOfRange(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusOutOfRange�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnPreviewStylusSystemGesture(self,*args):
"""
OnPreviewStylusSystemGesture(self: ContentElement,e: StylusSystemGestureEventArgs)
Invoked when an unhandled
System.Windows.Input.Stylus.PreviewStylusSystemGesture�attached event reaches
an element in its route that is derived from this class. Implement this method
to add class handling for this event.
e: The System.Windows.Input.StylusSystemGestureEventArgs that contains the event
data.
"""
pass
def OnPreviewStylusUp(self,*args):
"""
OnPreviewStylusUp(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.PreviewStylusUp�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnPreviewTextInput(self,*args):
"""
OnPreviewTextInput(self: ContentElement,e: TextCompositionEventArgs)
Invoked when an unhandled
System.Windows.Input.TextCompositionManager.PreviewTextInput�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.TextCompositionEventArgs that contains the event data.
"""
pass
def OnPreviewTouchDown(self,*args):
"""
OnPreviewTouchDown(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.PreviewTouchDown
routed event that occurs when a touch presses this element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnPreviewTouchMove(self,*args):
"""
OnPreviewTouchMove(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.PreviewTouchMove
routed event that occurs when a touch moves while inside this element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnPreviewTouchUp(self,*args):
"""
OnPreviewTouchUp(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.PreviewTouchUp
routed event that occurs when a touch is released inside this element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnPropertyChanged(self,*args):
"""
OnPropertyChanged(self: DependencyObject,e: DependencyPropertyChangedEventArgs)
Invoked whenever the effective value of any dependency property on this
System.Windows.DependencyObject has been updated. The specific dependency
property that changed is reported in the event data.
e: Event data that will contain the dependency property identifier of interest,
the property metadata for the type,and old and new values.
OnPropertyChanged(self: Window_16$17,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: Label_17$18,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: TextBox_18$19,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: Button_19$20,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: CheckBox_20$21,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: ComboBox_21$22,e: DependencyPropertyChangedEventArgs)OnPropertyChanged(self: Separator_22$23,e: DependencyPropertyChangedEventArgs)
"""
pass
def OnQueryContinueDrag(self,*args):
"""
OnQueryContinueDrag(self: ContentElement,e: QueryContinueDragEventArgs)
Invoked when an unhandled System.Windows.DragDrop.QueryContinueDrag�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.QueryContinueDragEventArgs that contains the event data.
"""
pass
def OnQueryCursor(self,*args):
"""
OnQueryCursor(self: ContentElement,e: QueryCursorEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.QueryCursor�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.QueryCursorEventArgs that contains the event data.
"""
pass
def OnStylusButtonDown(self,*args):
"""
OnStylusButtonDown(self: ContentElement,e: StylusButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusButtonDown�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusButtonEventArgs that contains the event data.
"""
pass
def OnStylusButtonUp(self,*args):
"""
OnStylusButtonUp(self: ContentElement,e: StylusButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusButtonUp�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusButtonEventArgs that contains the event data.
"""
pass
def OnStylusDown(self,*args):
"""
OnStylusDown(self: ContentElement,e: StylusDownEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusDown�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.StylusDownEventArgs that contains the event data.
"""
pass
def OnStylusEnter(self,*args):
"""
OnStylusEnter(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusEnter�attached
event is raised by this element. Implement this method to add class handling
for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnStylusInAirMove(self,*args):
"""
OnStylusInAirMove(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusInAirMove�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnStylusInRange(self,*args):
"""
OnStylusInRange(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusInRange�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnStylusLeave(self,*args):
"""
OnStylusLeave(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusLeave�attached
event is raised by this element. Implement this method to add class handling
for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnStylusMove(self,*args):
"""
OnStylusMove(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusMove�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnStylusOutOfRange(self,*args):
"""
OnStylusOutOfRange(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusOutOfRange�attached
event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnStylusSystemGesture(self,*args):
"""
OnStylusSystemGesture(self: ContentElement,e: StylusSystemGestureEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusSystemGesture�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.StylusSystemGestureEventArgs that contains the event
data.
"""
pass
def OnStylusUp(self,*args):
"""
OnStylusUp(self: ContentElement,e: StylusEventArgs)
Invoked when an unhandled System.Windows.Input.Stylus.StylusUp�attached event
reaches an element in its route that is derived from this class. Implement this
method to add class handling for this event.
e: The System.Windows.Input.StylusEventArgs that contains the event data.
"""
pass
def OnTextInput(self,*args):
"""
OnTextInput(self: ContentElement,e: TextCompositionEventArgs)
Invoked when an unhandled System.Windows.Input.TextCompositionManager.TextInput�
attached event reaches an element in its route that is derived from this class.
Implement this method to add class handling for this event.
e: The System.Windows.Input.TextCompositionEventArgs that contains the event data.
"""
pass
def OnTouchDown(self,*args):
"""
OnTouchDown(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.TouchDown routed
event that occurs when a touch presses inside this element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnTouchEnter(self,*args):
"""
OnTouchEnter(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.TouchEnter routed
event that occurs when a touch moves from outside to inside the bounds of this
element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnTouchLeave(self,*args):
"""
OnTouchLeave(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.TouchLeave routed
event that occurs when a touch moves from inside to outside the bounds of this
element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnTouchMove(self,*args):
"""
OnTouchMove(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.TouchMove routed
event that occurs when a touch moves while inside this element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def OnTouchUp(self,*args):
"""
OnTouchUp(self: ContentElement,e: TouchEventArgs)
Provides class handling for the System.Windows.ContentElement.TouchUp routed
event that occurs when a touch is released inside this element.
e: A System.Windows.Input.TouchEventArgs that contains the event data.
"""
pass
def PredictFocus(self,direction):
"""
PredictFocus(self: ContentElement,direction: FocusNavigationDirection) -> DependencyObject
When overridden in a derived class,returns the element that would receive
focus for a specified focus traversal direction,without actually moving focus
to that element.
direction: The direction of the requested focus traversal.
Returns: The element that would have received focus if
System.Windows.ContentElement.MoveFocus(System.Windows.Input.TraversalRequest)
were actually invoked.
"""
pass
def RaiseEvent(self,e):
"""
RaiseEvent(self: ContentElement,e: RoutedEventArgs)
Raises a specific routed event. The System.Windows.RoutedEvent to be raised is
identified within the System.Windows.RoutedEventArgs instance that is provided
(as the System.Windows.RoutedEventArgs.RoutedEvent property of that event
data).
e: A System.Windows.RoutedEventArgs that contains the event data and also
identifies the event to raise.
"""
pass
def ReleaseAllTouchCaptures(self):
"""
ReleaseAllTouchCaptures(self: ContentElement)
Releases all captured touch devices from this element.
"""
pass
def ReleaseMouseCapture(self):
"""
ReleaseMouseCapture(self: ContentElement)
Releases the mouse capture,if this element held the capture.
"""
pass
def ReleaseStylusCapture(self):
"""
ReleaseStylusCapture(self: ContentElement)
Releases the stylus device capture,if this element held the capture.
"""
pass
def ReleaseTouchCapture(self,touchDevice):
"""
ReleaseTouchCapture(self: ContentElement,touchDevice: TouchDevice) -> bool
Attempts to release the specified touch device from this element.
touchDevice: The device to release.
Returns: true if the touch device is released; otherwise,false.
"""
pass
def RemoveHandler(self,routedEvent,handler):
"""
RemoveHandler(self: ContentElement,routedEvent: RoutedEvent,handler: Delegate)
Removes the specified�routed event handler from this element.
routedEvent: The identifier of the.routed event for which the handler is attached.
handler: The specific handler implementation to remove from the event handler collection
on this element.
"""
pass
def ShouldSerializeCommandBindings(self):
"""
ShouldSerializeCommandBindings(self: ContentElement) -> bool
Returns whether serialization processes should serialize the contents of the
System.Windows.ContentElement.CommandBindings property on instances of this
class.
Returns: true if the System.Windows.ContentElement.CommandBindings property value should
be serialized; otherwise,false.
"""
pass
def ShouldSerializeInputBindings(self):
"""
ShouldSerializeInputBindings(self: ContentElement) -> bool
Returns whether serialization processes should serialize the contents of the
System.Windows.ContentElement.InputBindings property on instances of this
class.
Returns: true if the System.Windows.ContentElement.InputBindings property value should
be serialized; otherwise,false.
"""
pass
def ShouldSerializeProperty(self,*args):
"""
ShouldSerializeProperty(self: DependencyObject,dp: DependencyProperty) -> bool
Returns a value that indicates whether serialization processes should serialize
the value for the provided dependency property.
dp: The identifier for the dependency property that should be serialized.
Returns: true if the dependency property that is supplied should be value-serialized;
otherwise,false.
ShouldSerializeProperty(self: Window_16$17,dp: DependencyProperty) -> bool
ShouldSerializeProperty(self: Label_17$18,dp: DependencyProperty) -> bool
ShouldSerializeProperty(self: TextBox_18$19,dp: DependencyProperty) -> bool
ShouldSerializeProperty(self: Button_19$20,dp: DependencyProperty) -> bool
ShouldSerializeProperty(self: CheckBox_20$21,dp: DependencyProperty) -> bool
ShouldSerializeProperty(self: ComboBox_21$22,dp: DependencyProperty) -> bool
ShouldSerializeProperty(self: Separator_22$23,dp: DependencyProperty) -> bool
"""
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
AllowDrop=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets a value that indicates whether this element can be used as the target of a drag-and-drop operation.
Get: AllowDrop(self: ContentElement) -> bool
Set: AllowDrop(self: ContentElement)=value
"""
AreAnyTouchesCaptured=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether at least one touch is captured to this element.
Get: AreAnyTouchesCaptured(self: ContentElement) -> bool
"""
AreAnyTouchesCapturedWithin=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree.
Get: AreAnyTouchesCapturedWithin(self: ContentElement) -> bool
"""
AreAnyTouchesDirectlyOver=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether at least one touch is pressed over this element.
Get: AreAnyTouchesDirectlyOver(self: ContentElement) -> bool
"""
AreAnyTouchesOver=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree.
Get: AreAnyTouchesOver(self: ContentElement) -> bool
"""
CommandBindings=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a collection of System.Windows.Input.CommandBinding objects that are associated with this element.
Get: CommandBindings(self: ContentElement) -> CommandBindingCollection
"""
Focusable=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets a value that indicates whether the element can receive focus.
Get: Focusable(self: ContentElement) -> bool
Set: Focusable(self: ContentElement)=value
"""
HasAnimatedProperties=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether this element has any animated properties.
Get: HasAnimatedProperties(self: ContentElement) -> bool
"""
InputBindings=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the collection of input bindings that are associated with this element.
Get: InputBindings(self: ContentElement) -> InputBindingCollection
"""
IsEnabled=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets a value that indicates whether this element is enabled in the user interface (UI).
Get: IsEnabled(self: ContentElement) -> bool
Set: IsEnabled(self: ContentElement)=value
"""
IsEnabledCore=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that becomes the return value of System.Windows.ContentElement.IsEnabled in derived classes.
"""
IsFocused=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that determines whether this element has logical focus.
Get: IsFocused(self: ContentElement) -> bool
"""
IsInputMethodEnabled=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether an input method system,such as an Input Method Editor (IME),is enabled for processing the input to this element.
Get: IsInputMethodEnabled(self: ContentElement) -> bool
"""
IsKeyboardFocused=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether this element has keyboard focus.
Get: IsKeyboardFocused(self: ContentElement) -> bool
"""
IsKeyboardFocusWithin=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether keyboard focus is anywhere within the element or child elements.
Get: IsKeyboardFocusWithin(self: ContentElement) -> bool
"""
IsMouseCaptured=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether the mouse is captured by this element.
Get: IsMouseCaptured(self: ContentElement) -> bool
"""
IsMouseCaptureWithin=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that determines whether mouse capture is held by this element or by child elements in its element�tree.
Get: IsMouseCaptureWithin(self: ContentElement) -> bool
"""
IsMouseDirectlyOver=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether the position of the mouse pointer corresponds to�hit test results,which take element compositing into account.
Get: IsMouseDirectlyOver(self: ContentElement) -> bool
"""
IsMouseOver=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether the mouse pointer is located over this element (including visual child elements,or its control compositing).
Get: IsMouseOver(self: ContentElement) -> bool
"""
IsStylusCaptured=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether the stylus is captured to this element.
Get: IsStylusCaptured(self: ContentElement) -> bool
"""
IsStylusCaptureWithin=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that determines whether stylus capture is held by this element,including child elements and control compositing.
Get: IsStylusCaptureWithin(self: ContentElement) -> bool
"""
IsStylusDirectlyOver=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether the stylus position corresponds to�hit test results,which take element compositing into account.
Get: IsStylusDirectlyOver(self: ContentElement) -> bool
"""
IsStylusOver=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value that indicates whether the stylus is located over this element (including visual child elements).
Get: IsStylusOver(self: ContentElement) -> bool
"""
TouchesCaptured=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets all touch devices that are captured to this element.
Get: TouchesCaptured(self: ContentElement) -> IEnumerable[TouchDevice]
"""
TouchesCapturedWithin=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets all touch devices that are captured to this element or any child elements in its visual tree.
Get: TouchesCapturedWithin(self: ContentElement) -> IEnumerable[TouchDevice]
"""
TouchesDirectlyOver=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets all touch devices that are over this element.
Get: TouchesDirectlyOver(self: ContentElement) -> IEnumerable[TouchDevice]
"""
TouchesOver=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets all touch devices that are over this element or any child elements in its visual tree.
Get: TouchesOver(self: ContentElement) -> IEnumerable[TouchDevice]
"""
AllowDropProperty=None
AreAnyTouchesCapturedProperty=None
AreAnyTouchesCapturedWithinProperty=None
AreAnyTouchesDirectlyOverProperty=None
AreAnyTouchesOverProperty=None
DragEnter=None
DragEnterEvent=None
DragLeave=None
DragLeaveEvent=None
DragOver=None
DragOverEvent=None
Drop=None
DropEvent=None
FocusableChanged=None
FocusableProperty=None
GiveFeedback=None
GiveFeedbackEvent=None
GotFocus=None
GotFocusEvent=None
GotKeyboardFocus=None
GotKeyboardFocusEvent=None
GotMouseCapture=None
GotMouseCaptureEvent=None
GotStylusCapture=None
GotStylusCaptureEvent=None
GotTouchCapture=None
GotTouchCaptureEvent=None
IsEnabledChanged=None
IsEnabledProperty=None
IsFocusedProperty=None
IsKeyboardFocusedChanged=None
IsKeyboardFocusedProperty=None
IsKeyboardFocusWithinChanged=None
IsKeyboardFocusWithinProperty=None
IsMouseCapturedChanged=None
IsMouseCapturedProperty=None
IsMouseCaptureWithinChanged=None
IsMouseCaptureWithinProperty=None
IsMouseDirectlyOverChanged=None
IsMouseDirectlyOverProperty=None
IsMouseOverProperty=None
IsStylusCapturedChanged=None
IsStylusCapturedProperty=None
IsStylusCaptureWithinChanged=None
IsStylusCaptureWithinProperty=None
IsStylusDirectlyOverChanged=None
IsStylusDirectlyOverProperty=None
IsStylusOverProperty=None
KeyDown=None
KeyDownEvent=None
KeyUp=None
KeyUpEvent=None
LostFocus=None
LostFocusEvent=None
LostKeyboardFocus=None
LostKeyboardFocusEvent=None
LostMouseCapture=None
LostMouseCaptureEvent=None
LostStylusCapture=None
LostStylusCaptureEvent=None
LostTouchCapture=None
LostTouchCaptureEvent=None
MouseDown=None
MouseDownEvent=None
MouseEnter=None
MouseEnterEvent=None
MouseLeave=None
MouseLeaveEvent=None
MouseLeftButtonDown=None
MouseLeftButtonDownEvent=None
MouseLeftButtonUp=None
MouseLeftButtonUpEvent=None
MouseMove=None
MouseMoveEvent=None
MouseRightButtonDown=None
MouseRightButtonDownEvent=None
MouseRightButtonUp=None
MouseRightButtonUpEvent=None
MouseUp=None
MouseUpEvent=None
MouseWheel=None
MouseWheelEvent=None
PreviewDragEnter=None
PreviewDragEnterEvent=None
PreviewDragLeave=None
PreviewDragLeaveEvent=None
PreviewDragOver=None
PreviewDragOverEvent=None
PreviewDrop=None
PreviewDropEvent=None
PreviewGiveFeedback=None
PreviewGiveFeedbackEvent=None
PreviewGotKeyboardFocus=None
PreviewGotKeyboardFocusEvent=None
PreviewKeyDown=None
PreviewKeyDownEvent=None
PreviewKeyUp=None
PreviewKeyUpEvent=None
PreviewLostKeyboardFocus=None
PreviewLostKeyboardFocusEvent=None
PreviewMouseDown=None
PreviewMouseDownEvent=None
PreviewMouseLeftButtonDown=None
PreviewMouseLeftButtonDownEvent=None
PreviewMouseLeftButtonUp=None
PreviewMouseLeftButtonUpEvent=None
PreviewMouseMove=None
PreviewMouseMoveEvent=None
PreviewMouseRightButtonDown=None
PreviewMouseRightButtonDownEvent=None
PreviewMouseRightButtonUp=None
PreviewMouseRightButtonUpEvent=None
PreviewMouseUp=None
PreviewMouseUpEvent=None
PreviewMouseWheel=None
PreviewMouseWheelEvent=None
PreviewQueryContinueDrag=None
PreviewQueryContinueDragEvent=None
PreviewStylusButtonDown=None
PreviewStylusButtonDownEvent=None
PreviewStylusButtonUp=None
PreviewStylusButtonUpEvent=None
PreviewStylusDown=None
PreviewStylusDownEvent=None
PreviewStylusInAirMove=None
PreviewStylusInAirMoveEvent=None
PreviewStylusInRange=None
PreviewStylusInRangeEvent=None
PreviewStylusMove=None
PreviewStylusMoveEvent=None
PreviewStylusOutOfRange=None
PreviewStylusOutOfRangeEvent=None
PreviewStylusSystemGesture=None
PreviewStylusSystemGestureEvent=None
PreviewStylusUp=None
PreviewStylusUpEvent=None
PreviewTextInput=None
PreviewTextInputEvent=None
PreviewTouchDown=None
PreviewTouchDownEvent=None
PreviewTouchMove=None
PreviewTouchMoveEvent=None
PreviewTouchUp=None
PreviewTouchUpEvent=None
QueryContinueDrag=None
QueryContinueDragEvent=None
QueryCursor=None
QueryCursorEvent=None
StylusButtonDown=None
StylusButtonDownEvent=None
StylusButtonUp=None
StylusButtonUpEvent=None
StylusDown=None
StylusDownEvent=None
StylusEnter=None
StylusEnterEvent=None
StylusInAirMove=None
StylusInAirMoveEvent=None
StylusInRange=None
StylusInRangeEvent=None
StylusLeave=None
StylusLeaveEvent=None
StylusMove=None
StylusMoveEvent=None
StylusOutOfRange=None
StylusOutOfRangeEvent=None
StylusSystemGesture=None
StylusSystemGestureEvent=None
StylusUp=None
StylusUpEvent=None
TextInput=None
TextInputEvent=None
TouchDown=None
TouchDownEvent=None
TouchEnter=None
TouchEnterEvent=None
TouchLeave=None
TouchLeaveEvent=None
TouchMove=None
TouchMoveEvent=None
TouchUp=None
TouchUpEvent=None
| 38.468826 | 535 | 0.741416 | 7,320 | 62,935 | 6.377322 | 0.093579 | 0.05319 | 0.042415 | 0.034703 | 0.626344 | 0.612335 | 0.598432 | 0.57836 | 0.570777 | 0.554368 | 0.001192 | 0.001106 | 0.195758 | 62,935 | 1,635 | 536 | 38.492355 | 0.919708 | 0.663446 | 0 | 0.254673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254673 | false | 0.254673 | 0 | 0 | 0.745327 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
dec3ef25424e5a020e7c73252f034cb1aabb60dd | 850 | py | Python | serpantin/apps/test/models.py | ainomugish/serpantin | 1ae39733d9fb8f5c1c326e2b6ade48351e9956cc | [
"BSD-3-Clause"
] | null | null | null | serpantin/apps/test/models.py | ainomugish/serpantin | 1ae39733d9fb8f5c1c326e2b6ade48351e9956cc | [
"BSD-3-Clause"
] | null | null | null | serpantin/apps/test/models.py | ainomugish/serpantin | 1ae39733d9fb8f5c1c326e2b6ade48351e9956cc | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from django.contrib.contenttypes import generic
from serpantin.dojoforms.models import TagsField, TagField, TagsRelation, GenericTagsField
from serpantin.dojoforms.generic import GenericManyToManyField
#from tagging.fields import TagField
from tagging.models import TaggedItem, Tag
# class Tag(models.Model):
# name = models.CharField(max_length=30)
#
# def __unicode__(self):
# return self.name
#
# class Admin:
# pass
class Article(models.Model):
name = models.CharField(max_length=100)
#tags = GenericTagsField(Tag, db_table="tagging_taggeditem")
tags = GenericManyToManyField(Tag, db_table="tagging_taggeditem")
#tags = TagField()
#tags = TagsRelation(TaggedItem)
def __unicode__(self):
return self.name
class Admin:
pass
| 28.333333 | 90 | 0.715294 | 94 | 850 | 6.319149 | 0.382979 | 0.03367 | 0.074074 | 0.070707 | 0.377104 | 0.377104 | 0.272727 | 0.141414 | 0.141414 | 0 | 0 | 0.007342 | 0.198824 | 850 | 29 | 91 | 29.310345 | 0.864905 | 0.355294 | 0 | 0 | 0 | 0 | 0.033582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.416667 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
dee8c1795bd66b05327beb2249f1a41531cfcf75 | 18,745 | py | Python | fairseq/models/wav2vec/lsqquantize_V1.py | ghostchoir/fairseq_old | 17ea4e97827c33f77cb188bc6e5aed42209dccc1 | [
"MIT"
] | null | null | null | fairseq/models/wav2vec/lsqquantize_V1.py | ghostchoir/fairseq_old | 17ea4e97827c33f77cb188bc6e5aed42209dccc1 | [
"MIT"
] | null | null | null | fairseq/models/wav2vec/lsqquantize_V1.py | ghostchoir/fairseq_old | 17ea4e97827c33f77cb188bc6e5aed42209dccc1 | [
"MIT"
] | null | null | null | import copy
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Function
# ********************* quantizers(量化器,量化) *********************
# 取整(ste)
class Round(Function):
@staticmethod
def forward(self, input):
sign = torch.sign(input)
output = sign * torch.floor(torch.abs(input) + 0.5)
return output
@staticmethod
def backward(self, grad_output):
grad_input = grad_output.clone()
return grad_input
class FunLSQ(Function):
@staticmethod
def forward(ctx, weight, alpha, g, Qn, Qp, per_channel=False):
# 根据论文里LEARNED STEP SIZE QUANTIZATION第2节的公式
# assert alpha > 0, "alpha={}".format(alpha)
ctx.save_for_backward(weight, alpha)
ctx.other = g, Qn, Qp, per_channel
if per_channel:
sizes = weight.size()
weight = weight.contiguous().view(weight.size()[0], -1)
weight = torch.transpose(weight, 0, 1)
alpha = torch.broadcast_to(alpha, weight.size())
w_q = Round.apply(torch.div(weight, alpha)).clamp(Qn, Qp)
w_q = w_q * alpha
w_q = torch.transpose(w_q, 0, 1)
w_q = w_q.contiguous().view(sizes)
else:
w_q = Round.apply(torch.div(weight, alpha)).clamp(Qn, Qp)
w_q = w_q * alpha
return w_q
@staticmethod
def backward(ctx, grad_weight):
# 根据论文里LEARNED STEP SIZE QUANTIZATION第2.1节
# 分为三部分:位于量化区间的、小于下界的、大于上界的
weight, alpha = ctx.saved_tensors
g, Qn, Qp, per_channel = ctx.other
if per_channel:
sizes = weight.size()
weight = weight.contiguous().view(weight.size()[0], -1)
weight = torch.transpose(weight, 0, 1)
alpha = torch.broadcast_to(alpha, weight.size())
q_w = weight / alpha
q_w = torch.transpose(q_w, 0, 1)
q_w = q_w.contiguous().view(sizes)
else:
q_w = weight / alpha
smaller = (q_w < Qn).float() # bool值转浮点值,1.0或者0.0
bigger = (q_w > Qp).float() # bool值转浮点值,1.0或者0.0
between = 1.0 - smaller - bigger # 得到位于量化区间的index
if per_channel:
grad_alpha = ((smaller * Qn + bigger * Qp +
between * Round.apply(q_w) - between * q_w) * grad_weight * g)
grad_alpha = grad_alpha.contiguous().view(grad_alpha.size()[0], -1).sum(dim=1)
else:
grad_alpha = ((smaller * Qn + bigger * Qp +
between * Round.apply(q_w) - between * q_w) * grad_weight * g).sum().unsqueeze(dim=0) # ?
# 在量化区间之外的值都是常数,故导数也是0
grad_weight = between * grad_weight
return grad_weight, grad_alpha, None, None, None, None
def grad_scale(x, scale):
y = x
y_grad = x * scale
return (y - y_grad).detach() + y_grad
def round_pass(x):
y = x.round()
y_grad = x
return (y - y_grad).detach() + y_grad
# A(特征)量化
class LSQActivationQuantizer(nn.Module):
def __init__(self, a_bits, all_positive=False, batch_init=20):
# activations 没有per-channel这个选项的
super(LSQActivationQuantizer, self).__init__()
self.a_bits = a_bits
self.all_positive = all_positive
self.batch_init = batch_init
if self.all_positive:
# unsigned activation is quantized to [0, 2^b-1]
self.Qn = 0
self.Qp = 2 ** self.a_bits - 1
else:
# signed weight/activation is quantized to [-2^(b-1), 2^(b-1)-1]
self.Qn = - 2 ** (self.a_bits - 1)
self.Qp = 2 ** (self.a_bits - 1) - 1
self.s = torch.nn.Parameter(torch.ones(1), requires_grad=True)
# self.register_parameter('Ascale', self.s)
self.init_state = 0
# 量化/反量化
def forward(self, activation):
'''
For this work, each layer of weights and each layer of activations has a distinct step size, represented
as an fp32 value, initialized to 2h|v|i/√OP , computed on either the initial weights values or the first
batch of activations, respectively
'''
# V1
if self.init_state == 0:
self.g = 1.0 / math.sqrt(activation.numel() * self.Qp)
self.s.data = torch.mean(torch.abs(activation.detach())) * 2 / (math.sqrt(self.Qp))
self.init_state += 1
elif self.init_state < self.batch_init:
self.s.data = 0.9 * self.s.data + 0.1 ** torch.mean(torch.abs(activation.detach())) * 2 / (
math.sqrt(self.Qp))
self.init_state += 1
elif self.init_state == self.batch_init:
# self.s = torch.nn.Parameter(self.s)
self.init_state += 1
if self.a_bits == 32:
output = activation
elif self.a_bits == 1:
print('!Binary quantization is not supported !')
assert self.a_bits != 1
else:
# print(self.s, self.g)
q_a = FunLSQ.apply(activation, self.s, self.g, self.Qn, self.Qp)
# alpha = grad_scale(self.s, g)
# q_a = Round.apply((activation/alpha).clamp(Qn, Qp)) * alpha
return q_a
# W(权重)量化
class LSQWeightQuantizer(nn.Module):
def __init__(self, w_bits, all_positive=False, per_channel=False, batch_init=20):
super(LSQWeightQuantizer, self).__init__()
self.w_bits = w_bits
self.all_positive = all_positive
self.batch_init = batch_init
if self.all_positive:
# unsigned activation is quantized to [0, 2^b-1]
self.Qn = 0
self.Qp = 2 ** w_bits - 1
else:
# signed weight/activation is quantized to [-2^(b-1), 2^(b-1)-1]
self.Qn = - 2 ** (w_bits - 1)
self.Qp = 2 ** (w_bits - 1) - 1
self.per_channel = per_channel
self.s = torch.nn.Parameter(torch.ones(1), requires_grad=True)
# self.register_parameter('Wscale', self.s)
self.init_state = 0
# 量化/反量化
def forward(self, weight):
if self.init_state == 0:
self.g = 1.0 / math.sqrt(weight.numel() * self.Qp)
if self.per_channel:
weight_tmp = weight.detach().contiguous().view(weight.size()[0], -1)
self.s.data = torch.mean(torch.abs(weight_tmp), dim=1) * 2 / (math.sqrt(self.Qp))
else:
self.s.data = torch.mean(torch.abs(weight.detach())) * 2 / (math.sqrt(self.Qp))
self.init_state += 1
elif self.init_state < self.batch_init:
if self.per_channel:
weight_tmp = weight.detach().contiguous().view(weight.size()[0], -1)
self.s.data = 0.9 * self.s.data + 0.1 * torch.mean(torch.abs(weight_tmp), dim=1) * 2 / (
math.sqrt(self.Qp))
else:
self.s.data = 0.9 * self.s.data + 0.1 * torch.mean(torch.abs(weight.detach())) * 2 / (
math.sqrt(self.Qp))
self.init_state += 1
elif self.init_state == self.batch_init:
# self.s = torch.nn.Parameter(self.s)
self.init_state += 1
if self.w_bits == 32:
output = weight
elif self.w_bits == 1:
print('!Binary quantization is not supported !')
assert self.w_bits != 1
else:
# print(self.s, self.g)
w_q = FunLSQ.apply(weight, self.s, self.g, self.Qn, self.Qp, self.per_channel)
# alpha = grad_scale(self.s, g)
# w_q = Round.apply((weight/alpha).clamp(Qn, Qp)) * alpha
return w_q
class QuantConv2d(nn.Conv2d):
def __init__(self,
in_channels,
out_channels,
kernel_size,
stride=1,
padding=0,
dilation=1,
groups=1,
bias=True,
padding_mode='zeros',
a_bits=8,
w_bits=8,
quant_inference=False,
all_positive=False,
per_channel=False,
batch_init=20):
super(QuantConv2d, self).__init__(in_channels, out_channels, kernel_size, stride, padding, dilation, groups,
bias, padding_mode)
self.quant_inference = quant_inference
self.activation_quantizer = LSQActivationQuantizer(a_bits=a_bits, all_positive=all_positive,
batch_init=batch_init)
self.weight_quantizer = LSQWeightQuantizer(w_bits=w_bits, all_positive=all_positive, per_channel=per_channel,
batch_init=batch_init)
def forward(self, input):
quant_input = self.activation_quantizer(input)
# print('input:',input.size(),self.quant_inference)
if not self.quant_inference:
quant_weight = self.weight_quantizer(self.weight)
else:
quant_weight = self.weight
output = F.conv2d(quant_input, quant_weight, self.bias, self.stride, self.padding, self.dilation,
self.groups)
return output
class QuantConvTranspose2d(nn.ConvTranspose2d):
def __init__(self,
in_channels,
out_channels,
kernel_size,
stride=1,
padding=0,
output_padding=0,
dilation=1,
groups=1,
bias=True,
padding_mode='zeros',
a_bits=8,
w_bits=8,
quant_inference=False,
all_positive=False,
per_channel=False,
batch_init=20):
super(QuantConvTranspose2d, self).__init__(in_channels, out_channels, kernel_size, stride, padding,
output_padding,
dilation, groups, bias, padding_mode)
self.quant_inference = quant_inference
self.activation_quantizer = LSQActivationQuantizer(a_bits=a_bits, all_positive=all_positive,
batch_init=batch_init)
self.weight_quantizer = LSQWeightQuantizer(w_bits=w_bits, all_positive=all_positive, per_channel=per_channel,
batch_init=batch_init)
def forward(self, input):
quant_input = self.activation_quantizer(input)
if not self.quant_inference:
quant_weight = self.weight_quantizer(self.weight)
else:
quant_weight = self.weight
output = F.conv_transpose2d(quant_input, quant_weight, self.bias, self.stride, self.padding,
self.output_padding,
self.groups, self.dilation)
return output
class QuantLinear(nn.Linear):
def __init__(self,
in_features,
out_features,
bias=True,
a_bits=8,
w_bits=8,
quant_inference=False,
all_positive=False,
per_channel=False,
batch_init=20):
super(QuantLinear, self).__init__(in_features, out_features, bias)
self.quant_inference = quant_inference
self.activation_quantizer = LSQActivationQuantizer(a_bits=a_bits, all_positive=all_positive,
batch_init=batch_init)
self.weight_quantizer = LSQWeightQuantizer(w_bits=w_bits, all_positive=all_positive, per_channel=per_channel,
batch_init=batch_init)
def forward(self, input):
quant_input = self.activation_quantizer(input)
if not self.quant_inference:
quant_weight = self.weight_quantizer(self.weight)
else:
quant_weight = self.weight
output = F.linear(quant_input, quant_weight, self.bias)
return output
def add_quant_op(module, layer_counter, a_bits=8, w_bits=8,
quant_inference=False, all_positive=False, per_channel=False,
batch_init=20):
for name, child in module.named_children():
if isinstance(child, nn.Conv2d):
layer_counter[0] += 1
if layer_counter[0] >= 1: # 第一层也量化
if child.bias is not None:
quant_conv = QuantConv2d(child.in_channels, child.out_channels,
child.kernel_size, stride=child.stride,
padding=child.padding, dilation=child.dilation,
groups=child.groups, bias=True, padding_mode=child.padding_mode,
a_bits=a_bits, w_bits=w_bits, quant_inference=quant_inference,
all_positive=all_positive, per_channel=per_channel, batch_init=batch_init)
quant_conv.bias.data = child.bias
else:
quant_conv = QuantConv2d(child.in_channels, child.out_channels,
child.kernel_size, stride=child.stride,
padding=child.padding, dilation=child.dilation,
groups=child.groups, bias=False, padding_mode=child.padding_mode,
a_bits=a_bits, w_bits=w_bits, quant_inference=quant_inference,
all_positive=all_positive, per_channel=per_channel, batch_init=batch_init)
quant_conv.weight.data = child.weight
module._modules[name] = quant_conv
elif isinstance(child, nn.ConvTranspose2d):
layer_counter[0] += 1
if layer_counter[0] >= 1: # 第一层也量化
if child.bias is not None:
quant_conv_transpose = QuantConvTranspose2d(child.in_channels,
child.out_channels,
child.kernel_size,
stride=child.stride,
padding=child.padding,
output_padding=child.output_padding,
dilation=child.dilation,
groups=child.groups,
bias=True,
padding_mode=child.padding_mode,
a_bits=a_bits,
w_bits=w_bits,
quant_inference=quant_inference,
all_positive=all_positive, per_channel=per_channel,
batch_init=batch_init)
quant_conv_transpose.bias.data = child.bias
else:
quant_conv_transpose = QuantConvTranspose2d(child.in_channels,
child.out_channels,
child.kernel_size,
stride=child.stride,
padding=child.padding,
output_padding=child.output_padding,
dilation=child.dilation,
groups=child.groups, bias=False,
padding_mode=child.padding_mode,
a_bits=a_bits,
w_bits=w_bits,
quant_inference=quant_inference,
all_positive=all_positive, per_channel=per_channel,
batch_init=batch_init)
quant_conv_transpose.weight.data = child.weight
module._modules[name] = quant_conv_transpose
elif isinstance(child, nn.Linear):
layer_counter[0] += 1
if layer_counter[0] >= 1: # 第一层也量化
if child.bias is not None:
quant_linear = QuantLinear(child.in_features, child.out_features,
bias=True, a_bits=a_bits, w_bits=w_bits,
quant_inference=quant_inference,
all_positive=all_positive, per_channel=per_channel,
batch_init=batch_init)
quant_linear.bias.data = child.bias
else:
quant_linear = QuantLinear(child.in_features, child.out_features,
bias=False, a_bits=a_bits, w_bits=w_bits,
quant_inference=quant_inference,
all_positive=all_positive, per_channel=per_channel,
batch_init=batch_init)
quant_linear.weight.data = child.weight
module._modules[name] = quant_linear
else:
add_quant_op(child, layer_counter, a_bits=a_bits, w_bits=w_bits,
quant_inference=quant_inference, all_positive=all_positive, per_channel=per_channel,
batch_init=batch_init)
def prepare(model, inplace=False, a_bits=8, w_bits=8, quant_inference=False,
all_positive=False, per_channel=False, batch_init=20):
if not inplace:
model = copy.deepcopy(model)
layer_counter = [0]
add_quant_op(model, layer_counter, a_bits=a_bits, w_bits=w_bits,
quant_inference=quant_inference, all_positive=all_positive,
per_channel=per_channel, batch_init=batch_init)
return model
| 47.335859 | 119 | 0.508829 | 2,014 | 18,745 | 4.504469 | 0.101291 | 0.042659 | 0.019841 | 0.038801 | 0.748898 | 0.729056 | 0.709546 | 0.696429 | 0.681548 | 0.671186 | 0 | 0.015802 | 0.402454 | 18,745 | 395 | 120 | 47.455696 | 0.794036 | 0.068498 | 0 | 0.627273 | 0 | 0 | 0.005054 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 1 | 0.054545 | false | 0.00303 | 0.018182 | 0 | 0.130303 | 0.006061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
def264103866219a3fbeeecae07d32161da7fa2f | 166 | py | Python | routes.py | gus-tech/webremote | 1d866b023cc7ab9b8e0b475f79e8dd061c292ae5 | [
"BSD-3-Clause"
] | null | null | null | routes.py | gus-tech/webremote | 1d866b023cc7ab9b8e0b475f79e8dd061c292ae5 | [
"BSD-3-Clause"
] | null | null | null | routes.py | gus-tech/webremote | 1d866b023cc7ab9b8e0b475f79e8dd061c292ae5 | [
"BSD-3-Clause"
] | null | null | null | routers = dict(
BASE = dict(
default_application = "webremote",
default_controller = "webremote",
default_function = "index",
)
)
| 20.75 | 42 | 0.572289 | 13 | 166 | 7.076923 | 0.692308 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319277 | 166 | 7 | 43 | 23.714286 | 0.814159 | 0 | 0 | 0 | 0 | 0 | 0.138554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
721bf11a63b5467ee768852315ff7e890dd700fd | 3,219 | py | Python | flownet/tests/max_flow_test.py | Digirolamo/FlowNet | 3aa37b6d6a82c6a87072760104575e8fbe1fcc72 | [
"MIT"
] | null | null | null | flownet/tests/max_flow_test.py | Digirolamo/FlowNet | 3aa37b6d6a82c6a87072760104575e8fbe1fcc72 | [
"MIT"
] | null | null | null | flownet/tests/max_flow_test.py | Digirolamo/FlowNet | 3aa37b6d6a82c6a87072760104575e8fbe1fcc72 | [
"MIT"
] | null | null | null | """This module contains the general flownet tests.
"""
from unittest import TestCase, TestSuite, TextTestRunner
from flownet import FlowNetwork
def get_max_flow(adj_matrix, sources, sinks):
"""Gets the maximum flow of the flow network from sources to sinks.
Args:
adjacency_matrix (list[list[int]): The adjacency matrix representation
of a flow graph.
sources (list[int]): list of integers denoting indexes of sources.
sinks (list[int]): list of integers denoting indexes of sinks.
Returns:
int: The maximum flow.
"""
flow_network = FlowNetwork.from_adjacency_matrix(adj_matrix, sources, sinks)
return flow_network.get_maximum_flow()
class MaxFlowTestCases(TestCase):
def test_max1(self):
sources = [0]
sinks = [1]
adj_matrix = [
[0, 0],
[0, 0]
]
assert get_max_flow(adj_matrix, sources, sinks) == 0
def test_max2(self):
sources = [0]
sinks = [1]
adj_matrix = [
[2, 6],
[3, 1]
]
assert get_max_flow(adj_matrix, sources, sinks) == 6
def test_max3(self):
sources = [0, 3, 13, 1, 7, 15, 5]
sinks = [11, 14, 10, 9, 2, 12, 17, 16, 19]
adj_matrix = [
[1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1],
[1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1],
[1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1],
[1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1],
[1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1],
[0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1],
[0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1],
[1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1],
[0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0],
[1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1],
[0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1],
[0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1],
[1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0],
[0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1],
[0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1],
[1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0],
[1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0],
[0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0],
[1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0],
[1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0],
[1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0],
[0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]
]
assert get_max_flow(adj_matrix, sources, sinks) == 53
| 44.09589 | 83 | 0.401678 | 658 | 3,219 | 1.925532 | 0.098784 | 0.198895 | 0.158642 | 0.119968 | 0.598264 | 0.598264 | 0.598264 | 0.530387 | 0.434886 | 0.411997 | 0 | 0.269663 | 0.391737 | 3,219 | 72 | 84 | 44.708333 | 0.377426 | 0.127369 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.16 | 0 | 0 | 0 | 1 | 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 | 3 |
72397de52928ca36d45b2d21ce2d92495babc5e7 | 544 | py | Python | cracking_the_coding_interview/strings/string_rotations.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | cracking_the_coding_interview/strings/string_rotations.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | cracking_the_coding_interview/strings/string_rotations.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | # String Rotation: Assume you have a method isSubstringwhich checks if one word is a substring
# of another. Given two strings, sl and s2, write code to check if s2 is a rotation of sl using only one
# call to isSubstring (e.g., "waterbottle" is a rotation of "erbottlewat")
def is_substring(s1, s2):
return s2 in s1
def is_string_rotation(s1, s2):
if not len(s1) == len(s2):
return False
double_s1 = s1 + s1
return is_substring(double_s1, s2)
print(is_string_rotation('waterbottle', 'erbottlewat'))
# Time: O(n)
| 27.2 | 104 | 0.705882 | 90 | 544 | 4.177778 | 0.511111 | 0.111702 | 0.058511 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034642 | 0.204044 | 544 | 19 | 105 | 28.631579 | 0.833718 | 0.512868 | 0 | 0 | 0 | 0 | 0.084615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a0c6e112d19b942c1407458373078686a184789b | 890 | py | Python | concordance/__init__.py | jgeldart/magrathea | 4e9d12a439d88036a8585b81f8bd37675f8aaadf | [
"BSD-3-Clause"
] | null | null | null | concordance/__init__.py | jgeldart/magrathea | 4e9d12a439d88036a8585b81f8bd37675f8aaadf | [
"BSD-3-Clause"
] | null | null | null | concordance/__init__.py | jgeldart/magrathea | 4e9d12a439d88036a8585b81f8bd37675f8aaadf | [
"BSD-3-Clause"
] | null | null | null | from quantity_field import ureg
# Set up some celestial units
ureg.define('solar_mass = 1988500000000000000000000000000 * kg = M☉')
ureg.define('solar_luminosity = 382800000000000000000000000 * watt = L☉')
ureg.define('solar_radius = 695700 * km = R☉')
ureg.define('solar_surface_temperature = 5772 * K = T☉')
ureg.define('solar_lifetime = 10000000000*year')
ureg.define('earth_mass = 5972370000000000000000000 * kilogram = M⊕')
ureg.define('earth_radius = 6371 * km = R⊕')
ureg.define('earth_density = 5.514 * g/cm**3 = ρ⊕')
ureg.define('earth_gravity = 9.807 * m/s**2 = g⊕')
ureg.define('earth_escape_velocity = 11.186*km/s')
ureg.define('earth_insolation = 1366*watt/m**2 = Q⊕')
ureg.define('jovian_mass = 317.8 * earth_mass = M♃')
ureg.define('jovian_radius = 69911 * km = R♃')
ureg.define('jovian_density = 1326 * kg/m**3 = ρ♃')
ureg.define('jovian_gravity = 24.79 * m/s**2 = g♃')
| 40.454545 | 73 | 0.705618 | 145 | 890 | 4.289655 | 0.448276 | 0.241158 | 0.144695 | 0.102894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18822 | 0.122472 | 890 | 21 | 74 | 42.380952 | 0.591549 | 0.030337 | 0 | 0 | 0 | 0 | 0.678281 | 0.149826 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a0dda9acab3e37cb743d95956eb0320b12f44e0f | 46 | py | Python | src/http2broker/__init__.py | fwiesel/http2broker | 0a1f7cfc931f6dc60c1c96d0cddaa76f1abe458e | [
"MIT"
] | 1 | 2020-11-13T15:56:57.000Z | 2020-11-13T15:56:57.000Z | src/http2broker/__init__.py | fwiesel/http2broker | 0a1f7cfc931f6dc60c1c96d0cddaa76f1abe458e | [
"MIT"
] | null | null | null | src/http2broker/__init__.py | fwiesel/http2broker | 0a1f7cfc931f6dc60c1c96d0cddaa76f1abe458e | [
"MIT"
] | null | null | null | __author__ = 'fabian'
__all__ = ['handler']
| 9.2 | 21 | 0.652174 | 4 | 46 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 4 | 22 | 11.5 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a0e950bbb59da0d23a2191be123d415a9008480e | 236 | py | Python | agenda/core/views.py | EderReisS/Django-DIO | fd70c9f514e274e8a81d625853b3698017870dfa | [
"MIT"
] | null | null | null | agenda/core/views.py | EderReisS/Django-DIO | fd70c9f514e274e8a81d625853b3698017870dfa | [
"MIT"
] | null | null | null | agenda/core/views.py | EderReisS/Django-DIO | fd70c9f514e274e8a81d625853b3698017870dfa | [
"MIT"
] | null | null | null | from django.shortcuts import render
from core.models import Evento
# Create your views here.
def lista_eventos(request):
evento = Evento.objects.all()
dados = {'evento' : evento}
return render(request,'agenda.html', dados) | 26.222222 | 47 | 0.728814 | 31 | 236 | 5.516129 | 0.709677 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165254 | 236 | 9 | 47 | 26.222222 | 0.86802 | 0.097458 | 0 | 0 | 0 | 0 | 0.080189 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a0f41192c37b63437ae16d1de342a54f8c4508d7 | 1,367 | py | Python | src/beeswax_api/models/Session.py | hbmartin/beeswax-api | 48527f2d7870e9eb2b4d83da8ee964cf85f6c99f | [
"Apache-2.0"
] | 2 | 2017-03-24T19:27:27.000Z | 2017-04-24T18:07:15.000Z | src/beeswax_api/models/Session.py | hbmartin/beeswax-api | 48527f2d7870e9eb2b4d83da8ee964cf85f6c99f | [
"Apache-2.0"
] | null | null | null | src/beeswax_api/models/Session.py | hbmartin/beeswax-api | 48527f2d7870e9eb2b4d83da8ee964cf85f6c99f | [
"Apache-2.0"
] | null | null | null | import json
import os
import requests
from beeswax_api.models.SegmentUpload import SegmentUpload
from beeswax_api.Exceptions import LoginException, SegmentUploadException
class Session(requests.Session):
_url_ = ""
def url(self, path):
return self._url_ + path
def login(self, _url, auth_data):
self._url_ = _url
r = self.post(self.url('/rest/authenticate'), data=json.dumps(auth_data))
if not r.ok:
raise LoginException(r)
return self
def segments(self):
return self.get(self.url('/rest/segment'))
def segment_upload_local_file(self, sfile):
su = SegmentUpload.from_file(sfile)
r = self.segment_upload(su)
if not r.ok:
raise SegmentUploadException(r)
rj = r.json()
sid = rj['payload']['id']
return self.segment_upload_file_id(sfile, sid)
def segment_upload(self, su):
return self.post(self.url('/rest/segment_upload'), data=str(su))
def segment_upload_file_id(self, sfile, sid):
file_name = os.path.basename(sfile)
files = {'segment_file': (file_name, open(sfile, 'rb'), 'text/plain')}
return self.post(self.url('/rest/segment_upload/upload/' + str(sid)), files=files)
def segment_update(self, su):
return self.post(self.url('/rest/segment_update'), data=str(su))
| 31.068182 | 90 | 0.651792 | 181 | 1,367 | 4.751381 | 0.287293 | 0.065116 | 0.063953 | 0.069767 | 0.19186 | 0.139535 | 0.139535 | 0.139535 | 0.088372 | 0 | 0 | 0 | 0.223116 | 1,367 | 43 | 91 | 31.790698 | 0.809793 | 0 | 0 | 0.060606 | 0 | 0 | 0.096562 | 0.020483 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.151515 | 0.121212 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a0f511d984520c70c6cc40b9cc85400afaafa8e0 | 487 | py | Python | snoop/data/management/commands/updatetags.py | liquidinvestigations/hoover-snoop2 | 28e328401609f53fb56abaa4817619085aa3fbee | [
"MIT"
] | null | null | null | snoop/data/management/commands/updatetags.py | liquidinvestigations/hoover-snoop2 | 28e328401609f53fb56abaa4817619085aa3fbee | [
"MIT"
] | 168 | 2019-11-07T12:38:07.000Z | 2021-04-19T09:53:51.000Z | snoop/data/management/commands/updatetags.py | liquidinvestigations/hoover-snoop2 | 28e328401609f53fb56abaa4817619085aa3fbee | [
"MIT"
] | null | null | null | """Update all the tags.
May be required when doing data migrations.
"""
from django.core.management.base import BaseCommand
from snoop.data.logs import logging_for_management_command
from ... import tasks
class Command(BaseCommand):
"""Update all tags."""
help = "Update all tags"
def handle(self, *args, **options):
"""Runs [snoop.data.tasks.update_all_tags][],"""
logging_for_management_command(options['verbosity'])
tasks.update_all_tags()
| 22.136364 | 60 | 0.700205 | 62 | 487 | 5.33871 | 0.532258 | 0.135952 | 0.1571 | 0.163142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176591 | 487 | 21 | 61 | 23.190476 | 0.825436 | 0.256674 | 0 | 0 | 0 | 0 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a0f88a9b60f623f0de76d00f4a5fa905bbed9da5 | 212 | py | Python | example/app/forms.py | modohash/django-hstore-flattenfields | 09626a638b9ef85d28fa5bfef1b040f9926bb95b | [
"BSD-3-Clause"
] | 5 | 2015-09-18T16:35:56.000Z | 2020-12-24T11:46:17.000Z | example/app/forms.py | modohash/django-hstore-flattenfields | 09626a638b9ef85d28fa5bfef1b040f9926bb95b | [
"BSD-3-Clause"
] | 9 | 2020-02-11T22:01:06.000Z | 2021-06-10T17:46:04.000Z | example/app/forms.py | modohash/django-hstore-flattenfields | 09626a638b9ef85d28fa5bfef1b040f9926bb95b | [
"BSD-3-Clause"
] | 2 | 2015-10-20T10:21:30.000Z | 2016-03-23T09:54:54.000Z | '''
Created on 24/05/2013
@author: luan
'''
from hstore_flattenfields.forms import HStoreModelForm
from models import Something
class SomethingForm(HStoreModelForm):
class Meta:
model = Something
| 15.142857 | 54 | 0.745283 | 24 | 212 | 6.541667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.179245 | 212 | 13 | 55 | 16.307692 | 0.856322 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a0f9b5609b2e7351715e7a592d8ad7c748a8b704 | 273 | py | Python | Hyeongdo/greedy/boj/1449.py | sonnysorry/codingtest | 478e0168e3209eb97b6b16910027bf12ccc3ccd0 | [
"MIT"
] | 2 | 2021-09-27T19:10:36.000Z | 2021-11-09T05:40:39.000Z | Hyeongdo/greedy/boj/1449.py | sonnysorry/codingtest | 478e0168e3209eb97b6b16910027bf12ccc3ccd0 | [
"MIT"
] | 1 | 2021-11-15T14:56:54.000Z | 2021-11-15T14:56:54.000Z | Hyeongdo/greedy/boj/1449.py | sonnysorry/codingtest | 478e0168e3209eb97b6b16910027bf12ccc3ccd0 | [
"MIT"
] | null | null | null | # 수리공 항승
n, l = map(int, input().split())
hole = list(map(int, input().split()))
hole_list = sorted(hole, reverse=True)
temp = hole_list[0]
for i in range(1, len(hole_list)):
if l > temp - hole_list[i]:
n -= 1
else:
temp = hole_list[i]
print(n) | 17.0625 | 38 | 0.578755 | 47 | 273 | 3.255319 | 0.510638 | 0.313725 | 0.235294 | 0.20915 | 0.313725 | 0.313725 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.241758 | 273 | 16 | 39 | 17.0625 | 0.724638 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d5d7a8b908de69c61d3db09fd89c2684444e064 | 1,241 | py | Python | tests/test_utils.py | cofin/saq | be81f383a0904e9084e24ccb5334e07fc5b61e00 | [
"MIT"
] | 29 | 2022-01-05T07:07:18.000Z | 2022-03-29T20:09:03.000Z | tests/test_utils.py | cofin/saq | be81f383a0904e9084e24ccb5334e07fc5b61e00 | [
"MIT"
] | 3 | 2022-01-23T17:33:40.000Z | 2022-03-10T03:36:21.000Z | tests/test_utils.py | cofin/saq | be81f383a0904e9084e24ccb5334e07fc5b61e00 | [
"MIT"
] | 4 | 2022-01-06T18:33:33.000Z | 2022-03-23T18:44:19.000Z | import unittest
from saq.utils import exponential_backoff
class TestUtils(unittest.IsolatedAsyncioTestCase):
async def test_exponential_backoff(self):
self.assertAlmostEqual(
exponential_backoff(attempts=1, base_delay=0, max_delay=0, jitter=False), 0
)
self.assertAlmostEqual(
exponential_backoff(attempts=1, base_delay=1, max_delay=0, jitter=False), 0
)
self.assertAlmostEqual(
exponential_backoff(attempts=1, base_delay=1, max_delay=1, jitter=False), 1
)
self.assertAlmostEqual(
exponential_backoff(attempts=2, base_delay=1, max_delay=10, jitter=False), 2
)
self.assertAlmostEqual(
exponential_backoff(attempts=3, base_delay=1, max_delay=10, jitter=False), 4
)
self.assertAlmostEqual(
exponential_backoff(attempts=4, base_delay=1, max_delay=10, jitter=False), 8
)
self.assertAlmostEqual(
exponential_backoff(attempts=5, base_delay=1, max_delay=10, jitter=False),
10,
)
backoff = exponential_backoff(
attempts=1, base_delay=1, max_delay=1, jitter=True
)
self.assertTrue(0 <= backoff < 1)
| 35.457143 | 88 | 0.644641 | 141 | 1,241 | 5.48227 | 0.219858 | 0.232859 | 0.269082 | 0.353169 | 0.768435 | 0.525226 | 0.525226 | 0.525226 | 0.291074 | 0.291074 | 0 | 0.041485 | 0.261886 | 1,241 | 34 | 89 | 36.5 | 0.802402 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
19cc8593a27648a00a273550de1dea08dee05c63 | 351 | py | Python | bot/telegrambot.py | sahilr05/sitechecker-telegram-plugin | 46108af1cece7277e5b40e6c6df2abb7be4dbc28 | [
"MIT"
] | null | null | null | bot/telegrambot.py | sahilr05/sitechecker-telegram-plugin | 46108af1cece7277e5b40e6c6df2abb7be4dbc28 | [
"MIT"
] | null | null | null | bot/telegrambot.py | sahilr05/sitechecker-telegram-plugin | 46108af1cece7277e5b40e6c6df2abb7be4dbc28 | [
"MIT"
] | null | null | null | import logging
import os
import telegram
logger = logging.getLogger(__name__)
bot = telegram.Bot(token=os.getenv("TG_BOT_TOKEN", "**or add token here**"))
def send_alert(message, user):
bot.send_message(chat_id=user.telegram_id, text=message)
def error(bot, update, error):
logger.warn('Update "%s" caused error "%s"' % (update, error))
| 21.9375 | 76 | 0.717949 | 52 | 351 | 4.653846 | 0.519231 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133903 | 351 | 15 | 77 | 23.4 | 0.796053 | 0 | 0 | 0 | 0 | 0 | 0.176638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
19df11a70ae711f207350b84f103f2e13488f341 | 405 | py | Python | www/orm/Field/__init__.py | bomberc4/awesome-python3-webapp | a4ce608e989c0c55a73efa58eccf4a94842aaf38 | [
"Apache-2.0"
] | null | null | null | www/orm/Field/__init__.py | bomberc4/awesome-python3-webapp | a4ce608e989c0c55a73efa58eccf4a94842aaf38 | [
"Apache-2.0"
] | null | null | null | www/orm/Field/__init__.py | bomberc4/awesome-python3-webapp | a4ce608e989c0c55a73efa58eccf4a94842aaf38 | [
"Apache-2.0"
] | null | null | null | '''
Created on 2018年4月15日
@author: bomber
'''
class Field(object):
def __init__(self, name, column_type, primary_key, default):
self.name = name
self.column_type = column_type
self.primary_key = primary_key
self.default = default
def __str__(self):
return '<%s, %s:%s>' % (self.__class__.__name__, self.column_type, self.name)
| 22.5 | 86 | 0.602469 | 48 | 405 | 4.604167 | 0.416667 | 0.180995 | 0.126697 | 0.162896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024055 | 0.281481 | 405 | 17 | 87 | 23.823529 | 0.735395 | 0.093827 | 0 | 0 | 0 | 0 | 0.032164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
19e644f44870cc9bcb6bdb17e0e87e8888b3c981 | 4,348 | py | Python | framework/http/wafbypasser/core/hpp_lib.py | DarKnight24/owtf | cb4d17ecfec1e8a2f22af3cb0ef7b33f8173825c | [
"BSD-3-Clause"
] | 2 | 2017-10-10T06:30:38.000Z | 2021-06-17T12:59:59.000Z | framework/http/wafbypasser/core/hpp_lib.py | unexpectedBy/owtf | 695b6dc723756bffcd6c21f6e962a927758ae4f9 | [
"BSD-3-Clause"
] | null | null | null | framework/http/wafbypasser/core/hpp_lib.py | unexpectedBy/owtf | 695b6dc723756bffcd6c21f6e962a927758ae4f9 | [
"BSD-3-Clause"
] | 3 | 2017-12-30T20:43:22.000Z | 2020-02-29T07:58:32.000Z | """
HPP Functions
"""
import urlparse
from http_helper import HTTPHelper
def asp_hpp(http_helper, methods, payloads, param_name, source, url, headers, body=None):
requests = []
if "URL" in source.upper():
for payload in payloads:
new_url = asp_url_hpp(url, param_name, payload)
for method in methods:
requests.append(http_helper.create_http_request(method, new_url, body, headers, payload))
elif "DATA" in source.upper():
for payload in payloads:
new_body = asp_post_hpp(body, param_name, payload)
for method in methods:
requests.append(http_helper.create_http_request(method, url, new_body, headers, payload))
elif "COOKIE" in source.upper():
for payload in payloads:
new_headers = asp_cookie_hpp(headers, param_name, payload)
for method in methods:
requests.append(http_helper.create_http_request(method, url, body, new_headers, payload))
return requests
def asp_url_hpp(url, param_name, payload):
if urlparse.urlparse(url)[4] == '':
sep = "?"
else:
sep = '&'
for pay_token in payload.split(","):
url += "%s%s=%s" % (sep, param_name, pay_token)
sep = '&'
return url
def asp_post_hpp(body, param_name, payload):
if body is None or body == '':
sep = ""
else:
sep = '&'
for pay_token in payload.split(","):
body += "%s%s=%s" % (sep, param_name, pay_token)
sep = '&'
return body
def asp_cookie_hpp(headers, param_name, payload):
new_headers = headers.copy()
try:
cookie_value = new_headers.pop('Cookie')
sep = "&"
except KeyError:
cookie_value = ""
sep = ""
for pay_token in payload.split(","):
cookie_value += "%s%s=%s" % (sep, param_name, pay_token)
sep = '&'
new_headers.add("Cookie", cookie_value)
return new_headers
def param_overwrite(http_helper, param, accepted_source, payload, url, body, headers):
requests = []
if "URL" == accepted_source:
new_url = HTTPHelper.add_url_param(url, param, "")
new_body = HTTPHelper.add_body_param(body, param, payload)
new_headers = HTTPHelper.add_cookie_param(headers, param, payload)
requests.append(http_helper.create_http_request("GET", new_url, new_body, headers, payload))
requests.append(http_helper.create_http_request(accepted_source, new_url, body, new_headers, payload))
# Duplicate param , first is empty and the second contains the payload
new_url = HTTPHelper.add_url_param(new_url, param, payload)
requests.append(http_helper.create_http_request(accepted_source, new_url, body, headers, payload))
return requests
elif "DATA" == accepted_source:
new_url = HTTPHelper.add_url_param(url, param, payload)
new_body = HTTPHelper.add_body_param(body, param, "")
new_headers = HTTPHelper.add_cookie_param(headers, param, payload)
# Overwrite body with cookie
requests.append(http_helper.create_http_request(accepted_source, url, new_body, new_headers, payload))
# Overwrite body with url
requests.append(http_helper.create_http_request(accepted_source, new_url, body, headers, payload))
# Duplicate param , first is empty and the second contains the payload
new_body = HTTPHelper.add_url_param(new_body, param, payload)
requests.append(http_helper.create_http_request(accepted_source, url, new_body, headers, payload))
return requests
elif "COOKIE" == accepted_source:
new_url = HTTPHelper.add_url_param(url, param, payload)
new_body = HTTPHelper.add_body_param(body, param, payload)
new_headers = HTTPHelper.add_cookie_param(headers, param, "")
requests.append(http_helper.create_http_request(accepted_source, new_url, body, new_headers, payload))
requests.append(http_helper.create_http_request(accepted_source, url, new_body, headers, payload))
# Duplicate param , first is empty and the second contains the payload
new_headers = HTTPHelper.add_cookie_param(new_headers, param, payload)
requests.append(http_helper.create_http_request(accepted_source, url, body, new_headers, payload))
return requests
| 41.409524 | 110 | 0.674333 | 560 | 4,348 | 4.973214 | 0.110714 | 0.05386 | 0.077558 | 0.103411 | 0.80754 | 0.776661 | 0.755117 | 0.659246 | 0.620467 | 0.566966 | 0 | 0.000296 | 0.224241 | 4,348 | 104 | 111 | 41.807692 | 0.825378 | 0.062558 | 0 | 0.45 | 0 | 0 | 0.017717 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.025 | 0 | 0.175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c200124390774c0b0316ece780fb541d682e5d68 | 372 | py | Python | Aula37/aula37.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | 1 | 2020-01-21T11:43:12.000Z | 2020-01-21T11:43:12.000Z | Aula37/aula37.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | null | null | null | Aula37/aula37.py | matheusschuetz/TrabalhoPython | 953957898de633f8f2776681a45a1a15b68e80b9 | [
"MIT"
] | null | null | null | #Criar uma pagina de cadastro de squads(times de desenvolvimento)
#1-Criar tabela squad
#2-Criar dao squad
#3-Criar model squad
#4-Criar Controller squad
#5-Criar view tipo console para realizar as 4 operações de CRUD de squads
#6-Criar View tipo Web para realizar as 4 operações de CRUD de Squads
#Squad: Nome, Descrição, NumeroPessoas,LinguagemBackEnd, FrameworkFrontEnd | 46.5 | 74 | 0.806452 | 60 | 372 | 5 | 0.55 | 0.08 | 0.086667 | 0.1 | 0.253333 | 0.253333 | 0.253333 | 0.253333 | 0.253333 | 0 | 0 | 0.024922 | 0.137097 | 372 | 8 | 74 | 46.5 | 0.909657 | 0.959677 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c20ae3a35f98024efed4e753c9accb34e5a091b5 | 274 | py | Python | src/main.py | rafaelaraujo13/gerador-de-bom-dia | 4226a32bfff44f4f22917d781586bda46fda5edd | [
"MIT"
] | null | null | null | src/main.py | rafaelaraujo13/gerador-de-bom-dia | 4226a32bfff44f4f22917d781586bda46fda5edd | [
"MIT"
] | 4 | 2021-04-30T21:20:41.000Z | 2022-01-13T02:50:13.000Z | src/main.py | rafaelaraujo13/gerador-de-bom-dia | 4226a32bfff44f4f22917d781586bda46fda5edd | [
"MIT"
] | null | null | null | from functions.get_sentence import get_sentence
from functions.get_and_download_image import get_and_download_image
from functions.convert_image import convert_image
def main():
sentence = get_sentence()
get_and_download_image()
convert_image(sentence)
main()
| 24.909091 | 67 | 0.821168 | 38 | 274 | 5.526316 | 0.289474 | 0.185714 | 0.2 | 0.271429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124088 | 274 | 10 | 68 | 27.4 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c20c649f65ebbbde2475aee55f76f65da304918d | 113 | py | Python | scripts/cmt/test/__init__.py | kamilisa/cmt | e2cd1da0cd2f185c67b94e68d4673226b55a54ea | [
"MIT"
] | 199 | 2016-03-02T21:41:05.000Z | 2022-03-23T05:44:42.000Z | scripts/cmt/test/__init__.py | kamilisa/cmt | e2cd1da0cd2f185c67b94e68d4673226b55a54ea | [
"MIT"
] | 6 | 2018-03-20T22:23:02.000Z | 2021-06-23T02:35:50.000Z | scripts/cmt/test/__init__.py | kamilisa/cmt | e2cd1da0cd2f185c67b94e68d4673226b55a54ea | [
"MIT"
] | 73 | 2016-04-12T05:13:49.000Z | 2022-03-07T07:58:39.000Z | """
CMT Unit Test framework.
"""
from cmt.test.mayaunittest import TestCase
__all__ = ["TestCase", "run_tests"]
| 16.142857 | 42 | 0.716814 | 14 | 113 | 5.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132743 | 113 | 6 | 43 | 18.833333 | 0.77551 | 0.212389 | 0 | 0 | 0 | 0 | 0.209877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c2134dc9b81a195d911bdc025a8bef87458b6c27 | 167 | py | Python | main.py | karmek-k/spiewnik-chords | d27dfb968a9d17f4b5c38c4fa0f19d7d54a50218 | [
"MIT"
] | null | null | null | main.py | karmek-k/spiewnik-chords | d27dfb968a9d17f4b5c38c4fa0f19d7d54a50218 | [
"MIT"
] | null | null | null | main.py | karmek-k/spiewnik-chords | d27dfb968a9d17f4b5c38c4fa0f19d7d54a50218 | [
"MIT"
] | null | null | null | from scraper.artist import ArtistPage
from scraper.song import Song
page = ArtistPage('https://spiewnik.wywrota.pl/kombii')
for song in page.scrape():
print(song) | 27.833333 | 55 | 0.766467 | 24 | 167 | 5.333333 | 0.666667 | 0.171875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11976 | 167 | 6 | 56 | 27.833333 | 0.870748 | 0 | 0 | 0 | 0 | 0 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c21497903e8d8cd28c35a8e806778dd90f81b6a0 | 35 | py | Python | __init__.py | huizhuzhao/rfscore | f0ad9fa26f8db7e82c89866fee9be222037e1e88 | [
"MIT"
] | 1 | 2021-07-13T15:30:43.000Z | 2021-07-13T15:30:43.000Z | __init__.py | huizhuzhao/rfscore | f0ad9fa26f8db7e82c89866fee9be222037e1e88 | [
"MIT"
] | null | null | null | __init__.py | huizhuzhao/rfscore | f0ad9fa26f8db7e82c89866fee9be222037e1e88 | [
"MIT"
] | 3 | 2020-02-07T13:57:22.000Z | 2021-02-09T09:04:06.000Z | __all__ = ["config", "credo", "rf"] | 35 | 35 | 0.571429 | 4 | 35 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0.361111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c22550436339db1a62dfb1744a4c234a59916e27 | 505 | py | Python | tests/VenusApproxInterior/test_VenusInterior.py | teald/vplanet | ab640af7d2bbf80c5ea647d5bf971e2ce2c40631 | [
"MIT"
] | 92 | 2018-08-02T22:41:23.000Z | 2022-01-13T20:59:43.000Z | tests/VenusApproxInterior/test_VenusInterior.py | teald/vplanet | ab640af7d2bbf80c5ea647d5bf971e2ce2c40631 | [
"MIT"
] | 104 | 2018-08-01T17:28:02.000Z | 2022-03-31T22:23:13.000Z | tests/VenusApproxInterior/test_VenusInterior.py | teald/vplanet | ab640af7d2bbf80c5ea647d5bf971e2ce2c40631 | [
"MIT"
] | 35 | 2018-06-20T19:32:09.000Z | 2022-01-31T00:58:53.000Z | from benchmark import Benchmark, benchmark
import astropy.units as u
import pytest
@benchmark(
{
"log.final.venus.TMan": {"value": 2679.27122, "unit": u.K},
"log.final.venus.TCore": {"value": 6365.71258, "unit": u.K},
"log.final.venus.RIC": {"value": 0.0, "unit": u.km},
"log.final.venus.RadPowerTotal": {"value": 31.49126, "unit": u.TW},
"log.final.venus.MagMom": {"value": 0.0, "unit": u.EMAGMOM},
}
)
class TestVenusApproxInterior(Benchmark):
pass
| 29.705882 | 75 | 0.609901 | 67 | 505 | 4.597015 | 0.477612 | 0.12987 | 0.211039 | 0.058442 | 0.201299 | 0.123377 | 0 | 0 | 0 | 0 | 0 | 0.071078 | 0.192079 | 505 | 16 | 76 | 31.5625 | 0.683824 | 0 | 0 | 0 | 0 | 0 | 0.308911 | 0.142574 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.071429 | 0.214286 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c244addc8b54e5774542c38cf1779d67277e52c8 | 148 | py | Python | dsp/data_convert.py | tinversenorm/vlc | 4ebe84768a12c93a50e68a14a63bdc4a2903f0ac | [
"Apache-2.0"
] | null | null | null | dsp/data_convert.py | tinversenorm/vlc | 4ebe84768a12c93a50e68a14a63bdc4a2903f0ac | [
"Apache-2.0"
] | null | null | null | dsp/data_convert.py | tinversenorm/vlc | 4ebe84768a12c93a50e68a14a63bdc4a2903f0ac | [
"Apache-2.0"
] | null | null | null |
f = open("test_data.txt", "r")
fout = open("test_data_commas.txt", "w")
for line in f:
fout.write(line.replace(" ", ","))
f.close()
fout.close() | 16.444444 | 40 | 0.614865 | 25 | 148 | 3.52 | 0.6 | 0.181818 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 148 | 9 | 41 | 16.444444 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
dfa01ad44387d0d5b2b15a863e7cb94ba8a966fe | 249 | py | Python | lightspider/__init__.py | smilelight/lightSpider | 7430324753501c8f61e7152b6403845a74c12dee | [
"Apache-2.0"
] | 12 | 2020-01-07T01:20:54.000Z | 2021-04-25T06:47:53.000Z | lightspider/__init__.py | smilelight/lightSpider | 7430324753501c8f61e7152b6403845a74c12dee | [
"Apache-2.0"
] | 1 | 2020-01-09T13:54:06.000Z | 2020-01-11T09:36:59.000Z | lightspider/__init__.py | smilelight/lightSpider | 7430324753501c8f61e7152b6403845a74c12dee | [
"Apache-2.0"
] | 6 | 2020-01-07T04:06:55.000Z | 2021-04-21T02:40:02.000Z | from .worker import light
from .spider import Spider
from .utils.proxy import DEFAULT_PROXY
from .downloader import get_response, download_image
__all__ = [
'light',
'Spider',
'DEFAULT_PROXY',
'get_response',
'download_image'
]
| 19.153846 | 52 | 0.718876 | 30 | 249 | 5.633333 | 0.466667 | 0.142012 | 0.224852 | 0.284024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188755 | 249 | 12 | 53 | 20.75 | 0.836634 | 0 | 0 | 0 | 0 | 0 | 0.200803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
dfb5162c1e9485157d6077a90407b63e8a3c5a38 | 119 | py | Python | test_.py | JasonGibsonUfl/quantumML | 429d20853a03ee801efb574ebe0df66875f2a580 | [
"MIT"
] | 1 | 2021-04-28T08:05:53.000Z | 2021-04-28T08:05:53.000Z | test_.py | JasonGibsonUfl/quantumML | 429d20853a03ee801efb574ebe0df66875f2a580 | [
"MIT"
] | 1 | 2021-09-17T18:21:29.000Z | 2021-09-17T18:21:29.000Z | test_.py | JasonGibsonUfl/quantumML | 429d20853a03ee801efb574ebe0df66875f2a580 | [
"MIT"
] | null | null | null | import unittest
class TestUM(unittest.TestCase):
def test_numbers_3_4(self):
self.assertEqual( 3*4, 12)
| 14.875 | 34 | 0.697479 | 17 | 119 | 4.705882 | 0.764706 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063158 | 0.201681 | 119 | 7 | 35 | 17 | 0.778947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfbfe5ccecb771fead814341a5e4cf706aec0177 | 186 | py | Python | problem0188.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0188.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | problem0188.py | kmarcini/Project-Euler-Python | d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3 | [
"BSD-3-Clause"
] | null | null | null | ###########################
#
# #188 The hyperexponentiation of a number - Project Euler
# https://projecteuler.net/problem=188
#
# Code by Kevin Marciniak
#
###########################
| 20.666667 | 58 | 0.516129 | 17 | 186 | 5.647059 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.11828 | 186 | 8 | 59 | 23.25 | 0.54878 | 0.623656 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dfdf391540863438bbd8e4a3c5749bd7027fbd91 | 119 | py | Python | all_files.py | miniprojs5/ResistorValuePrediction | 2d281c26ab7f8d45bff1eefc103f9881b7f1942a | [
"MIT"
] | null | null | null | all_files.py | miniprojs5/ResistorValuePrediction | 2d281c26ab7f8d45bff1eefc103f9881b7f1942a | [
"MIT"
] | null | null | null | all_files.py | miniprojs5/ResistorValuePrediction | 2d281c26ab7f8d45bff1eefc103f9881b7f1942a | [
"MIT"
] | null | null | null | import glob
path = '/home/user/resistor/test/*.jpg'
files=glob.glob(path)
for file in files:
print(file)
| 19.833333 | 42 | 0.647059 | 18 | 119 | 4.277778 | 0.722222 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210084 | 119 | 5 | 43 | 23.8 | 0.819149 | 0 | 0 | 0 | 0 | 0 | 0.252101 | 0.252101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5f06174585a29808852a5d1fba0c911e8c4d8653 | 860 | py | Python | la/__init__.py | mikiec84/la | 705e53df526ed316f5869962b50749f8d873364e | [
"BSD-2-Clause"
] | null | null | null | la/__init__.py | mikiec84/la | 705e53df526ed316f5869962b50749f8d873364e | [
"BSD-2-Clause"
] | null | null | null | la/__init__.py | mikiec84/la | 705e53df526ed316f5869962b50749f8d873364e | [
"BSD-2-Clause"
] | null | null | null | "la init"
# Classes
from la.deflarry import larry
try:
from la.io import (IO, save, load, repack, is_archived_larry,
archive_directory)
except:
# Cannot import h5py; no archiving available.
pass
from numpy import nan, inf
from la.flarry import (union, intersection, stack, panel, cov, rand, randn,
align, align_raw, binaryop, add, subtract, multiply,
divide, unique)
from la.util.report import info
from la.version import __version__
from la.util import testing
try:
from numpy.testing import Tester
test = Tester().test
del Tester
except (ImportError, ValueError):
print "No la unit testing available."
try:
# Namespace cleaning
del deflarry, flabel, func, io, missing, testing, util, version
except:
pass
| 25.294118 | 75 | 0.638372 | 105 | 860 | 5.152381 | 0.561905 | 0.066543 | 0.036969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001637 | 0.289535 | 860 | 33 | 76 | 26.060606 | 0.883797 | 0.081395 | 0 | 0.291667 | 0 | 0 | 0.045802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.083333 | 0.375 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
5f13c367d989d81ea809e40a8d463f76643d517f | 2,514 | py | Python | scphylo/commands/caller/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | scphylo/commands/caller/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | scphylo/commands/caller/__init__.py | faridrashidi/scphylo-tools | 4574e2c015da58e59caa38e3b3e49b398c1379c1 | [
"BSD-3-Clause"
] | null | null | null | """Caller Module."""
from collections import OrderedDict
import click
from scphylo.commands.caller._1rename import rename
from scphylo.commands.caller._1sra import sra
from scphylo.commands.caller._2fastp import fastp
from scphylo.commands.caller._3bwa import bwa
from scphylo.commands.caller._3star import star
from scphylo.commands.caller._4gatk import gatk
from scphylo.commands.caller._4rsem import rsem
from scphylo.commands.caller._5hapcaller import hapcaller
from scphylo.commands.caller._5mpileup import mpileup
from scphylo.commands.caller._5mutect2 import mutect2
from scphylo.commands.caller._5sequenza import sequenza
from scphylo.commands.caller._5strelka2 import strelka2
from scphylo.commands.caller._5varscan2 import varscan2
from scphylo.commands.caller._6bamreadcount import bamreadcount
from scphylo.commands.caller._6bamsnap import bamsnap
from scphylo.commands.caller._6defuse import defuse
from scphylo.commands.caller._6snpeff import snpeff
from scphylo.commands.caller._6vartrix import vartrix
class NaturalOrderGroup(click.Group):
"""Command group trying to list subcommands in the order they were added.
Make sure you initialize the `self.commands` with OrderedDict instance.
With decorator, use::
@click.group(cls=NaturalOrderGroup, commands=OrderedDict())
"""
def list_commands(self, ctx):
"""List command names as they are in commands dict.
If the dict is OrderedDict, it will preserve the order commands
were added.
"""
return self.commands.keys()
@click.group(
name="caller",
cls=NaturalOrderGroup,
commands=OrderedDict(),
context_settings={"max_content_width": 300, "terminal_width": 300},
)
def cli_caller():
"""Caller module.
FastQ: {sample}_1.fastq.gz or {sample}.fastq.gz\n
BAM: {sample}.transcript.bam for counting\n
BAM: {sample}.mapped.bam -> {sample}.markdup.bam\n
""" # noqa
return None
cli_caller.add_command(rename)
cli_caller.add_command(sra)
cli_caller.add_command(fastp)
cli_caller.add_command(bwa)
cli_caller.add_command(star)
cli_caller.add_command(gatk)
cli_caller.add_command(hapcaller)
cli_caller.add_command(mutect2)
cli_caller.add_command(strelka2)
cli_caller.add_command(varscan2)
cli_caller.add_command(mpileup)
cli_caller.add_command(sequenza)
cli_caller.add_command(snpeff)
cli_caller.add_command(rsem)
cli_caller.add_command(bamreadcount)
cli_caller.add_command(bamsnap)
cli_caller.add_command(defuse)
cli_caller.add_command(vartrix)
| 32.230769 | 77 | 0.789181 | 340 | 2,514 | 5.655882 | 0.311765 | 0.088924 | 0.177847 | 0.234009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015406 | 0.122116 | 2,514 | 77 | 78 | 32.649351 | 0.855913 | 0.212013 | 0 | 0 | 0 | 0 | 0.019504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.408163 | 0 | 0.510204 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5f19725bcbdd55bcd008ec6a939799c8c99ec141 | 200 | py | Python | fluff/runtime_error.py | emilio2601/fluff-lang | 7d557fda8bff7db207ad31d1d7effaebb5f564c6 | [
"MIT"
] | null | null | null | fluff/runtime_error.py | emilio2601/fluff-lang | 7d557fda8bff7db207ad31d1d7effaebb5f564c6 | [
"MIT"
] | null | null | null | fluff/runtime_error.py | emilio2601/fluff-lang | 7d557fda8bff7db207ad31d1d7effaebb5f564c6 | [
"MIT"
] | null | null | null | from .token import Token
class RuntimeError(Exception):
def __init__(self, token: Token, message: str):
super().__init__(message)
self.message = message
self.token = token | 28.571429 | 51 | 0.665 | 23 | 200 | 5.434783 | 0.521739 | 0.144 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235 | 200 | 7 | 52 | 28.571429 | 0.816993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 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 | 3 |
5f3722ba3335ee7c602131c6ee0d3b9b29a03c34 | 217 | py | Python | ex1.py | sandeepsharmaproject/python_hardway | 8a88831667b57140a3153a475cea3d378aea37fe | [
"MIT"
] | null | null | null | ex1.py | sandeepsharmaproject/python_hardway | 8a88831667b57140a3153a475cea3d378aea37fe | [
"MIT"
] | null | null | null | ex1.py | sandeepsharmaproject/python_hardway | 8a88831667b57140a3153a475cea3d378aea37fe | [
"MIT"
] | null | null | null | print("Hello World")
print("Hello Again")
print("I Like typing this")
print("This is fun.")
print("Yay! Printing.")
print("I'd much rather you 'not'.")
print('I"said" do not touch this.')
print("how to fix github")
| 19.727273 | 35 | 0.672811 | 37 | 217 | 3.945946 | 0.648649 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133641 | 217 | 10 | 36 | 21.7 | 0.776596 | 0 | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a0371134455111a8fc93fc6f54b3b10002dc8136 | 3,473 | py | Python | config/default.py | chenywang/textcnn | 9946bb487b1d440e42720acadc88ddd02e2dff50 | [
"Apache-2.0"
] | null | null | null | config/default.py | chenywang/textcnn | 9946bb487b1d440e42720acadc88ddd02e2dff50 | [
"Apache-2.0"
] | null | null | null | config/default.py | chenywang/textcnn | 9946bb487b1d440e42720acadc88ddd02e2dff50 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: disheng
import os
PROJECT_PATH = os.path.abspath(
os.path.join(
os.path.abspath(os.path.dirname(__file__)),
os.pardir))
class DefaultConfig(object):
"""
default config, 由git托管,一般情况下不用修改
可以在config目录下新建configs.py, 更新自己的本地配置,会覆盖此处的配置
未被覆盖的配置将使用此处的配置值
"""
# 项目路径
project_path = PROJECT_PATH
# 切词词典
user_dict_path = project_path + "/data/dict/user_dict.dict"
# 词性标注词典
user_tag_path = project_path + "/data/dict/user_tag.dict"
# 停用词词典
stopwords_path = project_path + "/data/dict/user_stopwords.dict"
# ltp模型路径(可以根据自己下载的数据地址来覆盖改写)
ltp_model_path = project_path + '/data/ltp_data'
seg_model_path = project_path + '/data/ltp_data/cws.model'
pos_model_path = project_path + '/data/ltp_data/pos.model'
par_model_path = project_path + '/data/ltp_data/parser.model'
# word2vec
wordvector_model_path = project_path + "/data/model/word2vec.model"
word2vec_format_model_path = project_path + "/data/model/word2vec.bin"
# doc2vec
docvector_model_path = project_path + "/data/model/doc2vec.model"
# 情感分析模型
sentiment_model_path = project_path + "/data/model/sentiment.model"
# 健康风险评论分析模型
risk_model_path = project_path + "/data/model/risk.model"
# 标签聚类模型
cluster_tag_model_path = project_path + "/data/model/cluster_tag.model"
# 数据路径
input_data_path = project_path + "/data/review.csv"
segged_path = project_path + "/data/review.segged"
dsr_review_path = project_path + "/data/review_dsr.csv"
new_dsr_review_path = project_path + "/data/new_review_dsr.csv"
tag_path = project_path + "/data/output/tags.csv"
structured_tag_path = project_path + "/data/output/structured_tags.csv"
tag_counts_path = project_path + "/data/output/tag_counts.csv"
structured_tag_counts_path = project_path + "/data/output/structured_tag_counts.csv"
tag_counts_segged_path = project_path + "/data/tag_counts.segged"
tag_data_path = project_path + "/data/tag_data.npy"
sentiment_input_path = project_path + "/data/output/tag_counts_oneday.csv"
sentiment_test_output_path = project_path + "/data/output/sentiment_test.csv"
sentiment_output_path = project_path + "/data/output/sentiment.csv"
risk_test_output_path = project_path + "/data/output/risk_test.csv"
tag_sentiment_model_path = project_path + "/data/model.tag_sentiment_lr.model"
# spark测试路径
spark_test_out = project_path + "/data/output/spark_out"
spark_test_segged = project_path + "/data/spark_review.segged"
# 聚类数据路径
cluster_path = project_path + "/data/output/clusters.csv"
cluster_tag_filter_path = project_path + "/data/output/clusters_tag_filter.csv"
cluster_tag_path = project_path + "/data/output/cluster_tags.csv"
cluster_filter_path = project_path + "/data/output/clusters_filter.csv"
cluster_filter_result_path = project_path + "/data/output/clusters_filter_result.csv"
# eval路径
eval_out_root = project_path + "/data/output/eval"
risky_comments_path = project_path + "/data/risky_comments.csv"
# 调试相关
DEBUG_LOG_SWITCH = False # 是否通过print_debug_log打印调试信息
TAG_DELIM = "" # tag组件之间分隔符
INPUT_DELIM = "\t" # 输入文件的分隔符
# 标签提取策略
NEGATIVE_ADVS = ['不'] # 负面副词
ADV_BLACKLIST = ['但是', '而且']
TEST_SMALL_DATA = False
# 标签聚类策略
MIN_TAG_OCCURANCE = 3
CLUSTER_MODE = "all"
# spark流程相关配置
use_local_input = False
| 37.344086 | 89 | 0.716384 | 455 | 3,473 | 5.092308 | 0.248352 | 0.189901 | 0.239534 | 0.278809 | 0.4959 | 0.426413 | 0.270609 | 0 | 0 | 0 | 0 | 0.002788 | 0.173913 | 3,473 | 92 | 90 | 37.75 | 0.80481 | 0.097322 | 0 | 0 | 0 | 0 | 0.313795 | 0.276878 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018868 | 0 | 0.924528 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a03998cc540f66368386a82e787cba141918199e | 127 | py | Python | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_aba8ef46.py | eduardojdiniz/CompNeuro | 20269e66540dc4e802273735c97323020ee37406 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 2,294 | 2020-05-11T12:05:35.000Z | 2022-03-28T21:23:34.000Z | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_aba8ef46.py | pellet/course-content | bb383857992469e0e7a9c36639ac0d05e842d9bd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 629 | 2020-05-11T15:42:26.000Z | 2022-03-29T12:23:35.000Z | tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_aba8ef46.py | pellet/course-content | bb383857992469e0e7a9c36639ac0d05e842d9bd | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 917 | 2020-05-11T12:47:53.000Z | 2022-03-31T12:14:41.000Z |
"""
Remember that joint probability can generally be expressed as 𝑃(𝑎,𝑏)=𝑃(𝑎|𝑏)𝑃(𝑏)
𝑃(ℎ+,𝑣+)=𝑃(ℎ+|𝑣+)𝑃(𝑣+)=0.1∗0.3=0.03
""" | 18.142857 | 80 | 0.598425 | 32 | 127 | 2.40625 | 0.59375 | 0.077922 | 0.077922 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0.125984 | 127 | 7 | 81 | 18.142857 | 0.621622 | 0.92126 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a040cba8d87f8e95c4534bfe7e1640ecc0d1e602 | 737 | py | Python | iev/iev.py | HelioNeves/rosalind | a9e8a19b548ff7d5f2562b7427659d2b74c88522 | [
"MIT"
] | null | null | null | iev/iev.py | HelioNeves/rosalind | a9e8a19b548ff7d5f2562b7427659d2b74c88522 | [
"MIT"
] | null | null | null | iev/iev.py | HelioNeves/rosalind | a9e8a19b548ff7d5f2562b7427659d2b74c88522 | [
"MIT"
] | null | null | null | # Reading lines from file and putting in a content string
for line in open('rosalind_iev.txt', 'r').readlines():
contents = line.rsplit()
AA_AA = float(contents[0])
AA_Aa = float(contents[1])
AA_aa = float(contents[2])
Aa_Aa = float(contents[3])
Aa_aa = float(contents[4])
aa_aa = float(contents[5])
def iev_prob(offsprings, AA_AA, AA_Aa, AA_aa, Aa_Aa, Aa_aa, aa_aa):
allel_prob = [1, 1, 1, 0.75, 0.5, 0]
AA_AA *= allel_prob[0]
AA_Aa *= allel_prob[1]
AA_aa *= allel_prob[2]
Aa_Aa *= allel_prob[3]
Aa_aa *= allel_prob[4]
aa_aa *= allel_prob[5]
return offsprings*(AA_AA+AA_Aa+AA_aa+Aa_Aa+Aa_aa+aa_aa)
print(iev_prob(2, AA_AA, AA_Aa, AA_aa, Aa_Aa, Aa_aa, aa_aa))
| 29.48 | 67 | 0.640434 | 138 | 737 | 3.130435 | 0.253623 | 0.416667 | 0.416667 | 0.5 | 0.303241 | 0.212963 | 0.212963 | 0.212963 | 0.212963 | 0.212963 | 0 | 0.037931 | 0.213026 | 737 | 24 | 68 | 30.708333 | 0.706897 | 0.074627 | 0 | 0 | 0 | 0 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0.055556 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a04b417e62dc382355ba31db6e90a7cecb88eb86 | 684 | py | Python | deals/migrations/0003_auto_20210729_0728.py | xuppr/GameDealsDashboard-server | a15e90fe6a37431db1b4de565e9e7d54d2aee223 | [
"MIT"
] | null | null | null | deals/migrations/0003_auto_20210729_0728.py | xuppr/GameDealsDashboard-server | a15e90fe6a37431db1b4de565e9e7d54d2aee223 | [
"MIT"
] | null | null | null | deals/migrations/0003_auto_20210729_0728.py | xuppr/GameDealsDashboard-server | a15e90fe6a37431db1b4de565e9e7d54d2aee223 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-29 07:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deals', '0002_auto_20210728_1353'),
]
operations = [
migrations.AlterField(
model_name='deal',
name='normalPrice',
field=models.FloatField(null=True),
),
migrations.AlterField(
model_name='deal',
name='salePrice',
field=models.FloatField(null=True),
),
migrations.AlterField(
model_name='deal',
name='savings',
field=models.FloatField(null=True),
),
]
| 23.586207 | 47 | 0.554094 | 65 | 684 | 5.738462 | 0.553846 | 0.160858 | 0.201072 | 0.233244 | 0.530831 | 0.453083 | 0.353887 | 0.353887 | 0.353887 | 0.353887 | 0 | 0.067538 | 0.328947 | 684 | 28 | 48 | 24.428571 | 0.745098 | 0.065789 | 0 | 0.545455 | 1 | 0 | 0.105181 | 0.036107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a0616536d70e2b6784730881489d1bfc3adb2746 | 228 | py | Python | storage/apps.py | andressamagblr/vault | f37d61b93a96d91278b5d4163f336ada7209240f | [
"Apache-2.0"
] | 15 | 2015-03-19T13:05:06.000Z | 2021-08-13T19:17:25.000Z | storage/apps.py | andressamagblr/vault | f37d61b93a96d91278b5d4163f336ada7209240f | [
"Apache-2.0"
] | 24 | 2015-02-24T14:20:06.000Z | 2021-12-15T13:33:52.000Z | storage/apps.py | andressamagblr/vault | f37d61b93a96d91278b5d4163f336ada7209240f | [
"Apache-2.0"
] | 11 | 2016-09-12T07:54:01.000Z | 2021-10-31T20:26:43.000Z | # -*- coding: utf-8 -*-
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class StorageConfig(AppConfig):
name = 'storage'
verbose_name = _("Swift Browser")
vault_app = True
| 20.727273 | 54 | 0.710526 | 28 | 228 | 5.607143 | 0.821429 | 0.127389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005376 | 0.184211 | 228 | 10 | 55 | 22.8 | 0.83871 | 0.092105 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a06f13724233cd3475b550622ef8bbd83364c91c | 221 | py | Python | password.py | umeshlab/password.github.io | 140d1ea43ba1533ca16133d2eb97d1c0c8ba6529 | [
"MIT"
] | null | null | null | password.py | umeshlab/password.github.io | 140d1ea43ba1533ca16133d2eb97d1c0c8ba6529 | [
"MIT"
] | null | null | null | password.py | umeshlab/password.github.io | 140d1ea43ba1533ca16133d2eb97d1c0c8ba6529 | [
"MIT"
] | null | null | null | import random
chars ='abcdefghijklmnopqrstuvwxyz1234567890@#$*!?();:/'
length =input('password length ?')
length=int(length)
password=''
for c in range(length):
password +=random.choice(chars)
print(password)
| 24.555556 | 57 | 0.705882 | 23 | 221 | 6.782609 | 0.608696 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052083 | 0.131222 | 221 | 8 | 58 | 27.625 | 0.760417 | 0 | 0 | 0 | 0 | 0 | 0.300469 | 0.220657 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a09324e34422842c436d12f62978f1e373790b79 | 274 | py | Python | characters.py | venkat24/haohaoxuexi | 858d6f15effefd9464d8a902ff9c95988571369c | [
"MIT"
] | 1 | 2020-07-24T06:05:38.000Z | 2020-07-24T06:05:38.000Z | characters.py | venkat24/haohaoxuexi | 858d6f15effefd9464d8a902ff9c95988571369c | [
"MIT"
] | null | null | null | characters.py | venkat24/haohaoxuexi | 858d6f15effefd9464d8a902ff9c95988571369c | [
"MIT"
] | null | null | null | from enum import Enum
class CharacterSet(Enum):
simplified = "simplified"
traditional = "traditional"
def __str__(self):
return self.value
def getOpposite(self):
return self.traditional if self.value == self.simplified else self.simplified | 24.909091 | 85 | 0.70073 | 31 | 274 | 6.064516 | 0.483871 | 0.106383 | 0.148936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218978 | 274 | 11 | 85 | 24.909091 | 0.878505 | 0 | 0 | 0 | 0 | 0 | 0.076364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a093f4c76aeea6472c6b4c87faef722b1b36d8e4 | 166 | py | Python | main.py | fon-Luchs/Poof | a9bdeb896d7bf46e64b53ca14d39320248e8d6a8 | [
"MIT"
] | null | null | null | main.py | fon-Luchs/Poof | a9bdeb896d7bf46e64b53ca14d39320248e8d6a8 | [
"MIT"
] | null | null | null | main.py | fon-Luchs/Poof | a9bdeb896d7bf46e64b53ca14d39320248e8d6a8 | [
"MIT"
] | null | null | null | import Poof_debugger
debugger = Poof_debugger.debugger()
pid = raw_input("Enter the PID of the process to attach to: ")
debugger.attach(int(pid))
debugger.detach()
| 20.75 | 62 | 0.76506 | 25 | 166 | 4.96 | 0.56 | 0.193548 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126506 | 166 | 7 | 63 | 23.714286 | 0.855172 | 0 | 0 | 0 | 0 | 0 | 0.259036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 3 |
a0b39f0670bd46aa2e6f724cc90f3b01d061a540 | 76 | py | Python | forcefield_utilities/__init__.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 1 | 2022-03-15T15:14:02.000Z | 2022-03-15T15:14:02.000Z | forcefield_utilities/__init__.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 5 | 2021-11-12T01:35:55.000Z | 2022-03-23T15:45:29.000Z | forcefield_utilities/__init__.py | mosdef-hub/forcefield-utilities | 6424f9c8c2935399171ee7056a0d6b408cabda81 | [
"MIT"
] | 2 | 2022-03-15T15:14:06.000Z | 2022-03-23T00:11:24.000Z | from forcefield_utilities.xml_loader import FoyerFFs
__version__ = "0.1.2"
| 19 | 52 | 0.815789 | 11 | 76 | 5.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.105263 | 76 | 3 | 53 | 25.333333 | 0.779412 | 0 | 0 | 0 | 0 | 0 | 0.065789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a0bafe6b2d28e95a54623d3c65c8582fd157e0f7 | 852 | py | Python | python/architectures/compressor_conv_small_addendum.py | anands-repo/hello | 743ff49c0de97a985643280a3b5cb562c58e7fb7 | [
"MIT"
] | 7 | 2020-03-27T06:33:24.000Z | 2022-03-31T16:16:47.000Z | python/architectures/compressor_conv_small_addendum.py | anands-repo/hello | 743ff49c0de97a985643280a3b5cb562c58e7fb7 | [
"MIT"
] | 3 | 2021-08-24T08:33:03.000Z | 2022-01-10T09:30:21.000Z | python/architectures/compressor_conv_small_addendum.py | anands-repo/hello | 743ff49c0de97a985643280a3b5cb562c58e7fb7 | [
"MIT"
] | null | null | null | # © 2019 University of Illinois Board of Trustees. All rights reserved
import NNTools
weight_norm = False
config = None
norm_type = "BatchNorm1d"
def gen_config():
global config
config = [
NNTools.ResidualBlockFTShortcut(
inChannels=128,
outChannels=128,
kernelSizes=[3, 3],
paddings=[1, 1],
dilations=[1, 1],
strides=[1, 1],
use_weight_norm=weight_norm,
norm_type=norm_type,
), # [128, 18]
NNTools.ResidualBlockFTShortcut(
inChannels=128,
outChannels=128,
kernelSizes=[3, 3],
paddings=[1, 1],
dilations=[1, 1],
strides=[1, 1],
use_weight_norm=weight_norm,
norm_type=norm_type,
), # [128, 18]
]
gen_config()
| 23.666667 | 71 | 0.532864 | 87 | 852 | 5.068966 | 0.390805 | 0.027211 | 0.181406 | 0.195011 | 0.653061 | 0.653061 | 0.653061 | 0.653061 | 0.653061 | 0.653061 | 0 | 0.079336 | 0.36385 | 852 | 35 | 72 | 24.342857 | 0.732472 | 0.10446 | 0 | 0.689655 | 0 | 0 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.068966 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2627a3df1e8127b7bfcfaddc98f5e5ca6c22f01e | 3,304 | py | Python | data-detective-airflow/tests/operators/extractors/test_tsftpoperator.py | dmitriy-e/metadata-governance | 018a879951dee3f3c2c05ac8e05b8360dd7f4ab3 | [
"Apache-2.0"
] | 5 | 2021-12-01T09:55:23.000Z | 2021-12-21T16:23:33.000Z | data-detective-airflow/tests/operators/extractors/test_tsftpoperator.py | dmitriy-e/metadata-governance | 018a879951dee3f3c2c05ac8e05b8360dd7f4ab3 | [
"Apache-2.0"
] | 1 | 2022-03-14T16:50:41.000Z | 2022-03-14T16:50:41.000Z | data-detective-airflow/tests/operators/extractors/test_tsftpoperator.py | dmitriy-e/metadata-governance | 018a879951dee3f3c2c05ac8e05b8360dd7f4ab3 | [
"Apache-2.0"
] | 2 | 2021-11-03T09:43:09.000Z | 2021-11-17T10:16:29.000Z | import datetime
import allure
import pytest
from airflow.models import TaskInstance
from data_detective_airflow.operators import TSFTPOperator
from data_detective_airflow.test_utilities import run_and_read
from tests_data.fixtures.File.file_fixtures import (
prepare_data_files,
get_keys_of_correct_files,
get_keys_of_empty_files,
get_keys_of_invalid_files,
)
@allure.feature('Extractors')
@allure.story('TSFTP operator')
@pytest.mark.parametrize('file_key', get_keys_of_correct_files())
def test_real_file(test_dag, prepare_data_files, file_key):
with allure.step('Create a task and context'):
test_dag.clear()
file = prepare_data_files.get(file_key)
task = TSFTPOperator(task_id='test_task', conn_id='ssh_service',
remote_filepath=file.path, dag=test_dag)
ti = TaskInstance(task=task, execution_date=datetime.datetime.now())
context = ti.get_template_context()
test_dag.get_work(test_dag.conn_id).create(context)
with allure.step('Run a task'):
result = run_and_read(task=task, context=context)
with allure.step('Check result'):
assert result is not None
res_text = result.decode('utf-8')
assert res_text == file.data
test_dag.clear_all_works(context)
@allure.feature('Extractors')
@allure.story('TSFTP operator with an empty file')
@pytest.mark.parametrize('file_key', get_keys_of_empty_files())
def test_empty_file(test_dag, prepare_data_files, file_key):
with allure.step('Create a task and context'):
test_dag.clear()
file = prepare_data_files.get(file_key).path
task = TSFTPOperator(task_id='test_task', conn_id='ssh_service',
remote_filepath=file, dag=test_dag)
ti = TaskInstance(task=task, execution_date=datetime.datetime.now())
context = ti.get_template_context()
test_dag.get_work(test_dag.conn_id).create(context)
with allure.step('Run a task'):
result = run_and_read(task=task, context=context)
with allure.step('Check result'):
assert not result
test_dag.clear_all_works(context)
@allure.feature('Extractors')
@allure.story('TSFTP operator with an invalid file')
@pytest.mark.parametrize('file_key', get_keys_of_invalid_files())
def test_invalid_file(test_dag, prepare_data_files, file_key):
with allure.step('Create a task and context'):
test_dag.clear()
file = prepare_data_files.get(file_key)
task = TSFTPOperator(task_id='test_task', conn_id='ssh_service',
remote_filepath=file.path, dag=test_dag)
ti = TaskInstance(task=task, execution_date=datetime.datetime.now())
context = ti.get_template_context()
test_dag.get_work(test_dag.conn_id).create(context)
with allure.step('Run a task with exception'):
try:
err = None
result = run_and_read(task=task, context=context)
# state: '0'-отработал, '1'-упал с ожидаемой ошибкой, '-1'-упал с другой ошибкой
state = 0
except file.error:
state = 1
except Exception as exc:
state = -1
err = exc
assert state == 1, f"Details: {err}"
test_dag.clear_all_works(context)
| 37.977011 | 92 | 0.684625 | 451 | 3,304 | 4.740577 | 0.201774 | 0.058934 | 0.052385 | 0.049111 | 0.75725 | 0.712816 | 0.700187 | 0.678204 | 0.643124 | 0.604771 | 0 | 0.003076 | 0.212772 | 3,304 | 86 | 93 | 38.418605 | 0.818916 | 0.023608 | 0 | 0.486111 | 0 | 0 | 0.111352 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.041667 | false | 0 | 0.097222 | 0 | 0.138889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
262fe1ff6714325ce1b50009b71210d80755564b | 267 | py | Python | tests/test_fizzbuzz.py | 515hikaru/python-templates | 66d5aaceb9a0ad57aff568f3f509673be1aa87c2 | [
"MIT"
] | null | null | null | tests/test_fizzbuzz.py | 515hikaru/python-templates | 66d5aaceb9a0ad57aff568f3f509673be1aa87c2 | [
"MIT"
] | null | null | null | tests/test_fizzbuzz.py | 515hikaru/python-templates | 66d5aaceb9a0ad57aff568f3f509673be1aa87c2 | [
"MIT"
] | null | null | null | """
Sample some tests
"""
from python_template import fizzbuzz
def test_fizzbuzz():
"""
test for fizzbuzz func
"""
assert fizzbuzz(11) == "11"
assert fizzbuzz(12) == "fizz"
assert fizzbuzz(15) == "fizzbuzz"
assert fizzbuzz(20) == "buzz"
| 17.8 | 37 | 0.617978 | 31 | 267 | 5.258065 | 0.612903 | 0.343558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 0.235955 | 267 | 14 | 38 | 19.071429 | 0.75 | 0.149813 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2632df9dcbb43c40283056b4fb3e9d54be10572b | 1,070 | py | Python | huaweicloud-sdk-core/huaweicloudsdkcore/auth/cache.py | NQLoong/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 64 | 2020-06-12T07:05:07.000Z | 2022-03-30T03:32:50.000Z | huaweicloud-sdk-core/huaweicloudsdkcore/auth/cache.py | mawenbo-huawei/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 11 | 2020-07-06T07:56:54.000Z | 2022-01-11T11:14:40.000Z | huaweicloud-sdk-core/huaweicloudsdkcore/auth/cache.py | mawenbo-huawei/huaweicloud-sdk-python-v3 | 677944a0b722147c6e105c53df9110724d64152a | [
"Apache-2.0"
] | 24 | 2020-06-08T11:42:13.000Z | 2022-03-04T06:44:08.000Z | # coding: utf-8
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache LICENSE, Version 2.0 (the
"LICENSE"); you may not use this file except in compliance
with the LICENSE. You may obtain a copy of the LICENSE at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the LICENSE is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the LICENSE for the
specific language governing permissions and limitations
under the LICENSE.
"""
class AuthCache:
_cache_dict = {}
@classmethod
def get_auth(cls, ak_with_name):
return cls._cache_dict.get(ak_with_name) if ak_with_name else None
@classmethod
def put_auth(cls, ak_with_name, _id):
cls._cache_dict[ak_with_name] = _id
| 32.424242 | 74 | 0.752336 | 165 | 1,070 | 4.757576 | 0.557576 | 0.076433 | 0.063694 | 0.040764 | 0.043312 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.191589 | 1,070 | 32 | 75 | 33.4375 | 0.901734 | 0.720561 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
263d57c0c87df677a9dfe6d1bdc9cba85b499964 | 43 | py | Python | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomMapJavaToXmlPythonTest.shouldFailWithNull.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 27 | 2015-02-15T22:01:39.000Z | 2022-03-02T05:41:29.000Z | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomMapJavaToXmlPythonTest.shouldFailWithNull.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 101 | 2015-06-05T06:53:56.000Z | 2022-02-28T19:32:44.000Z | dataformat-xml-dom/src/test/resources/org/camunda/spin/python/xml/dom/XmlDomMapJavaToXmlPythonTest.shouldFailWithNull.py | ingorichtsmeier/camunda-spin | f6f929cb4b49f5be3c06fcecf03008fec9fe25c1 | [
"Apache-2.0"
] | 25 | 2015-05-26T21:28:42.000Z | 2021-07-06T10:04:01.000Z | xml = S(None, "application/xml").toString() | 43 | 43 | 0.697674 | 6 | 43 | 5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 43 | 1 | 43 | 43 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.340909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
263dd3978ced1ea581fdbe81c152c01414a0789c | 1,214 | py | Python | fancy/descriptor/method_descriptor_base/simple_method_descriptor.py | susautw/fancy_descriptors | 884331742a1c69671c71180db6a9a6532e0024cb | [
"MIT"
] | null | null | null | fancy/descriptor/method_descriptor_base/simple_method_descriptor.py | susautw/fancy_descriptors | 884331742a1c69671c71180db6a9a6532e0024cb | [
"MIT"
] | null | null | null | fancy/descriptor/method_descriptor_base/simple_method_descriptor.py | susautw/fancy_descriptors | 884331742a1c69671c71180db6a9a6532e0024cb | [
"MIT"
] | 1 | 2021-04-09T13:34:47.000Z | 2021-04-09T13:34:47.000Z | from copy import copy
from typing import Callable
from fancy.descriptor.method_descriptor_base import MethodDescriptorBase
class SimpleMethodDescriptor(MethodDescriptorBase):
"""
This class provide a simplest implementation of MethodDescriptorBase
Any class should not mark methods as this descriptor, except in testing.
See MethodDescriptor
"""
def __init__(self, method: Callable):
if not isinstance(method, Callable):
raise TypeError('method must be a Callable.')
self.method = method
self.instance = None
self.owner = None
def __call__(self, *args, **kwargs):
if self.instance is None:
raise RuntimeError('method must bind to an instance first.')
return self._get_method_of_instance()(*args, **kwargs)
def _get_method_of_instance(self):
return self.method.__get__(self.instance, self.owner)
def __get__(self, instance, owner=None):
new_instance = self.clone()
new_instance.instance = instance
new_instance.owner = owner
return new_instance
def clone(self):
return copy(self)
def get_method(self) -> Callable:
return self.method
| 29.609756 | 76 | 0.68369 | 143 | 1,214 | 5.587413 | 0.377622 | 0.050063 | 0.027534 | 0.047559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240527 | 1,214 | 40 | 77 | 30.35 | 0.866594 | 0.133443 | 0 | 0 | 0 | 0 | 0.062257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.12 | 0.12 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
26488c2c7c5c3df4f8025c722c8b55e0ad3da496 | 44,552 | py | Python | stage/standard/test_jdbc_producer_destination.py | streamsets/datacollector-tests | 6c3e908768e1d4a586e9183e2141096921ecd5be | [
"Apache-2.0"
] | 14 | 2019-03-04T10:12:39.000Z | 2021-11-24T16:17:09.000Z | stage/standard/test_jdbc_producer_destination.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 48 | 2019-03-08T14:59:06.000Z | 2021-08-13T14:49:56.000Z | stage/standard/test_jdbc_producer_destination.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 23 | 2018-09-24T20:49:17.000Z | 2021-11-24T16:17:11.000Z | # Copyright 2020 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import datetime
import logging
import string
import json
import pytest
import sqlalchemy
from streamsets.testframework.environments.databases import MySqlDatabase, OracleDatabase, MemSqlDatabase
from streamsets.testframework.markers import database, sdc_min_version
from streamsets.testframework.utils import get_random_string
logger = logging.getLogger(__name__)
DATA_TYPES_ORACLE = [
# Oracle actually doesn't have boolean as a type, it does accept boolen insert into char(1) fields though
('true', 'BOOLEAN', 'char(1)', '1'),
('true', 'BOOLEAN', 'varchar(1)', '1'),
('true', 'BOOLEAN', 'nchar(1)', '1'),
('true', 'BOOLEAN', 'nvarchar2(1)', '1'),
# Byte
('65', 'BYTE', 'char(2)', '65'),
# Char
('a', 'CHAR', 'char(1)', 'a'),
('a', 'CHAR', 'varchar(1)', 'a'),
('a', 'CHAR', 'nchar(1)', 'a'),
('a', 'CHAR', 'nvarchar2(1)', 'a'),
# Short
(120, 'SHORT', 'number', 120),
(120, 'SHORT', 'char(5)', '120 '),
(120, 'SHORT', 'varchar(5)', '120'),
(120, 'SHORT', 'nchar(5)', '120 '),
(120, 'SHORT', 'nvarchar2(5)', '120'),
(120, 'SHORT', 'long', '120'),
# Integer
(120, 'INTEGER', 'number', 120),
(120, 'INTEGER', 'char(5)', '120 '),
(120, 'INTEGER', 'varchar(5)', '120'),
(120, 'INTEGER', 'nchar(5)', '120 '),
(120, 'INTEGER', 'nvarchar2(5)', '120'),
(120, 'INTEGER', 'long', '120'),
# Long
(120, 'LONG', 'number', 120),
(120, 'LONG', 'char(5)', '120 '),
(120, 'LONG', 'varchar(5)', '120'),
(120, 'LONG', 'nchar(5)', '120 '),
(120, 'LONG', 'nvarchar2(5)', '120'),
(120, 'LONG', 'long', '120'),
# Float
(120.0, 'FLOAT', 'number', 120.0),
(120.0, 'FLOAT', 'char(5)', '120.0'),
(120.0, 'FLOAT', 'varchar(5)', '120.0'),
(120.0, 'FLOAT', 'nchar(5)', '120.0'),
(120.0, 'FLOAT', 'nvarchar2(5)', '120.0'),
(120.0, 'FLOAT', 'long', '120.0'),
# Double
(120.0, 'DOUBLE', 'number', 120.0),
(120.0, 'DOUBLE', 'char(5)', '120.0'),
(120.0, 'DOUBLE', 'varchar(5)', '120.0'),
(120.0, 'DOUBLE', 'nchar(5)', '120.0'),
(120.0, 'DOUBLE', 'nvarchar2(5)', '120.0'),
(120.0, 'DOUBLE', 'long', '120.0'),
# Decimal
(120.0, 'DECIMAL', 'number', 120.0),
(120.0, 'DECIMAL', 'char(6)', '120.00'),
(120.0, 'DECIMAL', 'varchar(6)', '120.00'),
(120.0, 'DECIMAL', 'nchar(6)', '120.00'),
(120.0, 'DECIMAL', 'nvarchar2(6)', '120.00'),
(120.0, 'DECIMAL', 'long', '120.00'),
# Date
('2020-01-01 10:00:00', 'DATE', 'char(50)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATE', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'varchar2(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'nchar(50)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATE', 'nvarchar2(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'long', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'date', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATE', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
# Time
('2020-01-01 10:00:00', 'TIME', 'char(50)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'TIME', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'varchar2(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'nchar(50)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'TIME', 'nvarchar2(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'long', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'date', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'TIME', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
# DateTime
('2020-01-01 10:00:00', 'DATETIME', 'char(50)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATETIME', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'varchar2(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'nchar(50)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATETIME', 'nvarchar2(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'long', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'date', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATETIME', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
# Zoned DateTime
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'char(50)', '2020-01-01 10:00:00.000+0000 '),
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'varchar(50)', '2020-01-01 10:00:00.000+0000'),
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'varchar2(50)', '2020-01-01 10:00:00.000+0000'),
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'nchar(50)', '2020-01-01 10:00:00.000+0000 '),
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'nvarchar2(50)', '2020-01-01 10:00:00.000+0000'),
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'long', '2020-01-01 10:00:00.000+0000'),
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'date', datetime.datetime(2020, 1, 1, 10, 0)),
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
# This test is disabled because it's timezone dependent (you run on local host it will return different value then
# on Jenkins, ...). Which is actually correct - the type is after all "local timezone" and is always converted by
# the Oracle database. We can however insert the data to this type.
# ("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'timestamp with local time zone', datetime.datetime(2020, 1, 1, 3, 0)),
# String
('string', 'STRING', 'char(15)', 'string '),
('string', 'STRING', 'varchar(15)', 'string'),
('string', 'STRING', 'nchar(15)', 'string '),
('string', 'STRING', 'nvarchar2(15)', 'string'),
('55', 'STRING', 'number', 55),
('1998-1-1 6:22:33', 'STRING', 'date', datetime.datetime(1998, 1, 1, 6, 22, 33)),
('1998-1-1 6:22:33', 'STRING', 'timestamp', datetime.datetime(1998, 1, 1, 6, 22, 33)),
('55', 'STRING', 'long', '55'),
('55', 'STRING', 'blob', b'U'),
('55', 'STRING', 'clob', '55'),
('55', 'STRING', 'nclob', '55'),
('<a></a>', 'STRING', 'xmltype', '<a/>\n'),
# Byte array
('string', 'BYTE_ARRAY', 'char(15)', 'string '),
('string', 'BYTE_ARRAY', 'varchar(15)', 'string'),
('string', 'BYTE_ARRAY', 'varchar2(15)', 'string'),
('string', 'BYTE_ARRAY', 'nchar(15)', 'string '),
('string', 'BYTE_ARRAY', 'nvarchar2(15)', 'string'),
('string', 'BYTE_ARRAY', 'long', 'string'),
('string', 'BYTE_ARRAY', 'blob', b'string'),
]
@database('oracle')
@pytest.mark.parametrize('input,converter_type,database_type,expected', DATA_TYPES_ORACLE, ids=[f"{i[1]}-{i[2]}" for i in DATA_TYPES_ORACLE])
def test_data_types_oracle(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data):
_test_data_types(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data)
DATA_TYPES_MYSQL = [
# Boolean
('true', 'BOOLEAN', 'char(1)', 't'),
('true', 'BOOLEAN', 'char(5)', 'true'),
('true', 'BOOLEAN', 'int', 1),
# Byte
('65', 'BYTE', 'char(2)', '65'),
# Char
('a', 'CHAR', 'char(1)', 'a'),
('a', 'CHAR', 'varchar(1)', 'a'),
('a', 'CHAR', 'binary(1)', b'a'),
('a', 'CHAR', 'varbinary(1)', b'a'),
('a', 'CHAR', 'text', 'a'),
('a', 'CHAR', 'blob', b'a'),
# Short
(120, 'SHORT', 'tinyint', 120),
(120, 'SHORT', 'tinyint unsigned', 120),
(120, 'SHORT', 'smallint', 120),
(120, 'SHORT', 'smallint unsigned', 120),
(120, 'SHORT', 'mediumint', 120),
(120, 'SHORT', 'mediumint unsigned', 120),
(120, 'SHORT', 'int', 120),
(120, 'SHORT', 'int unsigned', 120),
(120, 'SHORT', 'bigint', 120),
(120, 'SHORT', 'bigint unsigned', 120),
(120, 'SHORT', 'decimal(5,2)', 120.0),
(120, 'SHORT', 'numeric(5,2)', 120.0),
(120, 'SHORT', 'char(5)', '120'),
(120, 'SHORT', 'varchar(5)', '120'),
(120, 'SHORT', 'binary(5)', b'120\x00\x00'),
(120, 'SHORT', 'varbinary(5)', b'120'),
(120, 'SHORT', 'text', '120'),
(120, 'SHORT', 'blob', b'120'),
# Integer
(120, 'INTEGER', 'tinyint', 120),
(120, 'INTEGER', 'tinyint unsigned', 120),
(120, 'INTEGER', 'smallint', 120),
(120, 'INTEGER', 'smallint unsigned', 120),
(120, 'INTEGER', 'mediumint', 120),
(120, 'INTEGER', 'mediumint unsigned', 120),
(120, 'INTEGER', 'int', 120),
(120, 'INTEGER', 'int unsigned', 120),
(120, 'INTEGER', 'bigint', 120),
(120, 'INTEGER', 'bigint unsigned', 120),
(120, 'INTEGER', 'decimal(5,2)', 120.0),
(120, 'INTEGER', 'numeric(5,2)', 120.0),
(120, 'INTEGER', 'char(5)', '120'),
(120, 'INTEGER', 'varchar(5)', '120'),
(120, 'INTEGER', 'binary(5)', b'120\x00\x00'),
(120, 'INTEGER', 'varbinary(5)', b'120'),
(120, 'INTEGER', 'text', '120'),
(120, 'INTEGER', 'blob', b'120'),
# Long
(120, 'LONG', 'tinyint', 120),
(120, 'LONG', 'tinyint unsigned', 120),
(120, 'LONG', 'smallint', 120),
(120, 'LONG', 'smallint unsigned', 120),
(120, 'LONG', 'mediumint', 120),
(120, 'LONG', 'mediumint unsigned', 120),
(120, 'LONG', 'int', 120),
(120, 'LONG', 'int unsigned', 120),
(120, 'LONG', 'bigint', 120),
(120, 'LONG', 'bigint unsigned', 120),
(120, 'LONG', 'decimal(5,2)', 120.0),
(120, 'LONG', 'numeric(5,2)', 120.0),
(120, 'LONG', 'char(5)', '120'),
(120, 'LONG', 'varchar(5)', '120'),
(120, 'LONG', 'binary(5)', b'120\x00\x00'),
(120, 'LONG', 'varbinary(5)', b'120'),
(120, 'LONG', 'text', '120'),
(120, 'LONG', 'blob', b'120'),
# Float
(120.0, 'FLOAT', 'numeric(5,2)', 120.0),
(120.0, 'FLOAT', 'decimal(5,2)', 120.0),
(120.0, 'FLOAT', 'float', 120.0),
(120.0, 'FLOAT', 'double', 120.0),
(120.0, 'FLOAT', 'char(5)', '120.0'),
(120.0, 'FLOAT', 'varchar(5)', '120.0'),
(120.0, 'FLOAT', 'binary(5)', b'120.0'),
(120.0, 'FLOAT', 'varbinary(5)', b'120.0'),
(120.0, 'FLOAT', 'text', '120.0'),
(120.0, 'FLOAT', 'blob', b'120.0'),
# Double
(120.0, 'DOUBLE', 'numeric(5,2)', 120.0),
(120.0, 'DOUBLE', 'decimal(5,2)', 120.0),
(120.0, 'DOUBLE', 'float', 120.0),
(120.0, 'DOUBLE', 'double', 120.0),
(120.0, 'DOUBLE', 'char(5)', '120.0'),
(120.0, 'DOUBLE', 'varchar(5)', '120.0'),
(120.0, 'DOUBLE', 'binary(5)', b'120.0'),
(120.0, 'DOUBLE', 'varbinary(5)', b'120.0'),
(120.0, 'DOUBLE', 'text', '120.0'),
(120.0, 'DOUBLE', 'blob', b'120.0'),
# Decimal
(120.0, 'DECIMAL', 'numeric(5,2)', 120.00),
(120.0, 'DECIMAL', 'decimal(5,2)', 120.00),
(120.0, 'DECIMAL', 'float', 120.0),
(120.0, 'DECIMAL', 'double', 120.0),
(120.0, 'DECIMAL', 'char(5)', '120.0'),
(120.0, 'DECIMAL', 'varchar(5)', '120.0'),
(120.0, 'DECIMAL', 'binary(5)', b'120.0'),
(120.0, 'DECIMAL', 'varbinary(5)', b'120.0'),
(120.0, 'DECIMAL', 'text', '120.00'),
(120.0, 'DECIMAL', 'blob', b'120.00'),
# Date
('2020-01-01 10:00:00', 'DATE', 'date', datetime.date(2020, 1, 1)),
('2020-01-01 10:00:00', 'DATE', 'datetime', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATE', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATE', 'char(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'binary(50)', b'Wed Jan 01 10:00:00 GMT 2020\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'),
('2020-01-01 10:00:00', 'DATE', 'varbinary(50)', b'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'blob', b'Wed Jan 01 10:00:00 GMT 2020'),
# Time
('2020-01-01 10:00:00', 'TIME', 'date', datetime.date(2020, 1, 1)),
('2020-01-01 10:00:00', 'TIME', 'datetime', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'TIME', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'TIME', 'char(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'binary(50)', b'Wed Jan 01 10:00:00 GMT 2020\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'),
('2020-01-01 10:00:00', 'TIME', 'varbinary(50)', b'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'blob', b'Wed Jan 01 10:00:00 GMT 2020'),
# DateTime
('2020-01-01 10:00:00', 'DATETIME', 'date', datetime.date(2020, 1, 1)),
('2020-01-01 10:00:00', 'DATETIME', 'datetime', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATETIME', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATETIME', 'char(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'binary(50)', b'Wed Jan 01 10:00:00 GMT 2020\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'),
('2020-01-01 10:00:00', 'DATETIME', 'varbinary(50)', b'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'blob', b'Wed Jan 01 10:00:00 GMT 2020'),
# Zoned DateTime
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'char(50)', '2020-01-01T10:00Z'),
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'varchar(50)', '2020-01-01T10:00Z'),
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'binary(20)', b'2020-01-01T10:00Z\x00\x00\x00'),
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'varbinary(50)', b'2020-01-01T10:00Z'),
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'text', '2020-01-01T10:00Z'),
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'blob', b'2020-01-01T10:00Z'),
# String
('120', 'STRING', 'tinyint', 120),
('120', 'STRING', 'tinyint unsigned', 120),
('120', 'STRING', 'smallint', 120),
('120', 'STRING', 'smallint unsigned', 120),
('120', 'STRING', 'mediumint', 120),
('120', 'STRING', 'mediumint unsigned', 120),
('120', 'STRING', 'int', 120),
('120', 'STRING', 'int unsigned', 120),
('120', 'STRING', 'bigint', 120),
('120', 'STRING', 'bigint unsigned', 120),
('120.0', 'STRING', 'decimal(5,2)', 120.0),
('120.0', 'STRING', 'numeric(5,2)', 120.0),
('120.0', 'STRING', 'float', 120.0),
('120.0', 'STRING', 'double', 120.0),
('1998-01-01', 'STRING', 'date', datetime.date(1998, 1, 1)),
('1998-01-01 06:11:22', 'STRING', 'datetime', datetime.datetime(1998, 1, 1, 6, 11, 22)),
('1998-01-01 06:11:22', 'STRING', 'timestamp', datetime.datetime(1998, 1, 1, 6, 11, 22)),
('06:11:22', 'STRING', 'time', datetime.timedelta(0, 22282)),
('string', 'STRING', 'char(6)', 'string'),
('string', 'STRING', 'varchar(6)', 'string'),
('string', 'STRING', 'binary(6)', b'string'),
('string', 'STRING', 'varbinary(6)', b'string'),
('string', 'STRING', 'text', 'string'),
('string', 'STRING', 'blob', b'string'),
('a', 'STRING', "enum('a', 'b')", 'a'),
('a', 'STRING', "set('a', 'b')", 'a'),
# Byte array
('string', 'BYTE_ARRAY', 'blob', b'string'),
]
@database('mysql')
@pytest.mark.parametrize('input,converter_type,database_type,expected', DATA_TYPES_MYSQL, ids=[f"{i[1]}-{i[2]}" for i in DATA_TYPES_MYSQL])
def test_data_types_mysql(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data):
if isinstance(database, MemSqlDatabase):
pytest.skip("Standard Tests are currently only written for MySQL and not for MemSQL (sadly STF threads both DBs the same way)")
_test_data_types(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data)
DATA_TYPES_POSTGRESQL = [
# Boolean
('true', 'BOOLEAN', 'char(4)', 'true'),
('true', 'BOOLEAN', 'int', 1),
('true', 'BOOLEAN', 'boolean', True),
# Byte
('65', 'BYTE', 'char(2)', '65'),
# Char
('a', 'CHAR', 'char(1)', 'a'),
('a', 'CHAR', 'varchar(1)', 'a'),
('a', 'CHAR', 'text', 'a'),
# Short
(120, 'SHORT', 'smallint', 120),
(120, 'SHORT', 'integer', 120),
(120, 'SHORT', 'bigint', 120),
(120, 'SHORT', 'decimal(5,2)', 120),
(120, 'SHORT', 'numeric(5,2)', 120),
(120, 'SHORT', 'real', 120),
(120, 'SHORT', 'double precision', 120),
(120, 'SHORT', 'char(3)', '120'),
(120, 'SHORT', 'varchar(3)', '120'),
(120, 'SHORT', 'text', '120'),
# Integer
(120, 'INTEGER', 'smallint', 120),
(120, 'INTEGER', 'integer', 120),
(120, 'INTEGER', 'bigint', 120),
(120, 'INTEGER', 'decimal(5,2)', 120),
(120, 'INTEGER', 'numeric(5,2)', 120),
(120, 'INTEGER', 'real', 120),
(120, 'INTEGER', 'double precision', 120),
(120, 'INTEGER', 'char(3)', '120'),
(120, 'INTEGER', 'varchar(3)', '120'),
(120, 'INTEGER', 'text', '120'),
# Long
(120, 'LONG', 'smallint', 120),
(120, 'LONG', 'integer', 120),
(120, 'LONG', 'bigint', 120),
(120, 'LONG', 'decimal(5,2)', 120),
(120, 'LONG', 'numeric(5,2)', 120),
(120, 'LONG', 'real', 120),
(120, 'LONG', 'double precision', 120),
(120, 'LONG', 'char(3)', '120'),
(120, 'LONG', 'varchar(3)', '120'),
(120, 'LONG', 'text', '120'),
# Float
(120.0, 'FLOAT', 'decimal(5,2)', 120.0),
(120.0, 'FLOAT', 'numeric(5,2)', 120.0),
(120.0, 'FLOAT', 'real', 120.0),
(120.0, 'FLOAT', 'double precision', 120.0),
(120.0, 'FLOAT', 'char(5)', '120.0'),
(120.0, 'FLOAT', 'varchar(5)', '120.0'),
(120.0, 'FLOAT', 'text', '120.0'),
# Double
(120.0, 'DOUBLE', 'decimal(5,2)', 120.0),
(120.0, 'DOUBLE', 'numeric(5,2)', 120.0),
(120.0, 'DOUBLE', 'real', 120.0),
(120.0, 'DOUBLE', 'double precision', 120.0),
(120.0, 'DOUBLE', 'char(5)', '120.0'),
(120.0, 'DOUBLE', 'varchar(5)', '120.0'),
(120.0, 'DOUBLE', 'text', '120.0'),
# Decimal
(120, 'DECIMAL', 'smallint', 120),
(120, 'DECIMAL', 'integer', 120),
(120, 'DECIMAL', 'bigint', 120),
(120, 'DECIMAL', 'decimal(5,2)', 120.0),
(120, 'DECIMAL', 'numeric(5,2)', 120.0),
(120, 'DECIMAL', 'real', 120.0),
(120, 'DECIMAL', 'double precision', 120.0),
(120, 'DECIMAL', 'char(6)', '120.00'),
(120, 'DECIMAL', 'varchar(6)', '120.00'),
(120, 'DECIMAL', 'text', '120.00'),
# Date
('2020-01-01 10:00:00', 'DATE', 'date', datetime.date(2020, 1, 1)),
('2020-01-01 10:00:00', 'DATE', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATE', 'timestamp with time zone', datetime.datetime(2020, 1, 1, 10, 0, tzinfo=datetime.timezone.utc)),
('2020-01-01 10:00:00', 'DATE', 'char(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATE', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
# Time
('2020-01-01 10:00:00', 'TIME', 'time', datetime.time(10, 0)),
('2020-01-01 10:00:00', 'TIME', 'char(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'TIME', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
# DateTime
('2020-01-01 10:00:00', 'DATETIME', 'date', datetime.date(2020, 1, 1)),
('2020-01-01 10:00:00', 'DATETIME', 'timestamp', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATETIME', 'timestamp with time zone', datetime.datetime(2020, 1, 1, 10, 0, tzinfo=datetime.timezone.utc)),
('2020-01-01 10:00:00', 'DATETIME', 'char(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATETIME', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
# Zoned DateTime
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'char(25)', '2020-01-01 10:00:00+00 '),
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'varchar(25)', '2020-01-01 10:00:00+00'),
('2020-01-01T10:00:00+00:00', 'ZONED_DATETIME', 'text', '2020-01-01 10:00:00+00'),
("2020-01-01T10:00:00+00:00", 'ZONED_DATETIME', 'timestamp with time zone', datetime.datetime(2020, 1, 1, 10, 0, tzinfo=datetime.timezone.utc)),
# String
('120', 'STRING', 'smallint', 120),
('120', 'STRING', 'integer', 120),
('120', 'STRING', 'bigint', 120),
('120', 'STRING', 'decimal(5,2)', 120.0),
('120', 'STRING', 'numeric(5,2)', 120.0),
('120', 'STRING', 'real', 120.0),
('120', 'STRING', 'double precision', 120.0),
('120', 'STRING', 'char(5)', '120 '),
('120', 'STRING', 'varchar(5)', '120'),
('120', 'STRING', 'text', '120'),
('2003-04-12 04:05:06', 'STRING', 'timestamp', datetime.datetime(2003, 4, 12, 4, 5, 6)),
('2020-01-01', 'STRING', 'date', datetime.date(2020, 1, 1)),
('10:00:00', 'STRING', 'time', datetime.time(10, 0)),
('true', 'STRING', 'boolean', True),
('{"a": "b"}', 'STRING', 'json', {'a': 'b'}),
('{"a": "b"}', 'STRING', 'jsonb', {'a': 'b'}),
# Byte array
('string', 'BYTE_ARRAY', 'bytea', b'string'),
]
@database('postgresql')
@pytest.mark.parametrize('input,converter_type,database_type,expected', DATA_TYPES_POSTGRESQL, ids=[f"{i[1]}-{i[2]}" for i in DATA_TYPES_POSTGRESQL])
def test_data_types_postgresql(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data):
_test_data_types(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data)
DATA_TYPES_SQLSERVER = [
# Boolean
('true', 'BOOLEAN', 'char(4)', '1 '),
('true', 'BOOLEAN', 'int', 1),
# Byte
('65', 'BYTE', 'char(2)', '65'),
# Char
('a', 'CHAR', 'char(1)', 'a'),
('a', 'CHAR', 'varchar(1)', 'a'),
('a', 'CHAR', 'nchar(1)', 'a'),
('a', 'CHAR', 'nvarchar(1)', 'a'),
('a', 'CHAR', 'text', 'a'),
('a', 'CHAR', 'ntext', 'a'),
# Short
(120, 'SHORT', 'tinyint', 120),
(120, 'SHORT', 'smallint', 120),
(120, 'SHORT', 'int', 120),
(120, 'SHORT', 'bigint', 120),
(120, 'SHORT', 'decimal(5,2)', 120),
(120, 'SHORT', 'numeric(5,2)', 120),
(120, 'SHORT', 'real', 120),
(120, 'SHORT', 'float', 120),
(120, 'SHORT', 'money', 120),
(120, 'SHORT', 'smallmoney', 120),
(120, 'SHORT', 'char(3)', '120'),
(120, 'SHORT', 'varchar(3)', '120'),
(120, 'SHORT', 'nchar(3)', '120'),
(120, 'SHORT', 'nvarchar(3)', '120'),
(120, 'SHORT', 'text', '120'),
(120, 'SHORT', 'ntext', '120'),
# Integer
(120, 'INTEGER', 'tinyint', 120),
(120, 'INTEGER', 'smallint', 120),
(120, 'INTEGER', 'int', 120),
(120, 'INTEGER', 'bigint', 120),
(120, 'INTEGER', 'decimal(5,2)', 120),
(120, 'INTEGER', 'numeric(5,2)', 120),
(120, 'INTEGER', 'real', 120),
(120, 'INTEGER', 'float', 120),
(120, 'INTEGER', 'money', 120),
(120, 'INTEGER', 'smallmoney', 120),
(120, 'INTEGER', 'char(3)', '120'),
(120, 'INTEGER', 'varchar(3)', '120'),
(120, 'INTEGER', 'nchar(3)', '120'),
(120, 'INTEGER', 'nvarchar(3)', '120'),
(120, 'INTEGER', 'text', '120'),
(120, 'INTEGER', 'ntext', '120'),
# Long
(120, 'LONG', 'tinyint', 120),
(120, 'LONG', 'smallint', 120),
(120, 'LONG', 'int', 120),
(120, 'LONG', 'bigint', 120),
(120, 'LONG', 'decimal(5,2)', 120),
(120, 'LONG', 'numeric(5,2)', 120),
(120, 'LONG', 'real', 120),
(120, 'LONG', 'float', 120),
(120, 'LONG', 'money', 120),
(120, 'LONG', 'smallmoney', 120),
(120, 'LONG', 'char(3)', '120'),
(120, 'LONG', 'varchar(3)', '120'),
(120, 'LONG', 'nchar(3)', '120'),
(120, 'LONG', 'nvarchar(3)', '120'),
(120, 'LONG', 'text', '120'),
(120, 'LONG', 'ntext', '120'),
# Float
(120.0, 'FLOAT', 'decimal(5,2)', 120.0),
(120.0, 'FLOAT', 'numeric(5,2)', 120.0),
(120.0, 'FLOAT', 'real', 120.0),
(120.0, 'FLOAT', 'float', 120.0),
(120.0, 'FLOAT', 'money', 120),
(120.0, 'FLOAT', 'smallmoney', 120),
(120.0, 'FLOAT', 'char(5)', '120 '),
(120.0, 'FLOAT', 'varchar(5)', '120'),
(120.0, 'FLOAT', 'nchar(5)', '120 '),
(120.0, 'FLOAT', 'nvarchar(5)', '120'),
(120.0, 'FLOAT', 'text', '120'),
(120.0, 'FLOAT', 'ntext', '120'),
# Double
(120.0, 'DOUBLE', 'decimal(5,2)', 120.0),
(120.0, 'DOUBLE', 'numeric(5,2)', 120.0),
(120.0, 'DOUBLE', 'real', 120.0),
(120.0, 'DOUBLE', 'float', 120.0),
(120.0, 'DOUBLE', 'money', 120),
(120.0, 'DOUBLE', 'smallmoney', 120),
(120.0, 'DOUBLE', 'char(5)', '120 '),
(120.0, 'DOUBLE', 'varchar(5)', '120'),
(120.0, 'DOUBLE', 'nchar(5)', '120 '),
(120.0, 'DOUBLE', 'nvarchar(5)', '120'),
(120.0, 'DOUBLE', 'text', '120'),
(120.0, 'DOUBLE', 'ntext', '120'),
# Decimal
(120.0, 'DECIMAL', 'decimal(5,2)', 120.0),
(120.0, 'DECIMAL', 'numeric(5,2)', 120.0),
(120.0, 'DECIMAL', 'real', 120.0),
(120.0, 'DECIMAL', 'float', 120.0),
(120.0, 'DECIMAL', 'money', 120),
(120.0, 'DECIMAL', 'smallmoney', 120),
(120.0, 'DECIMAL', 'char(6)', '120.00'),
(120.0, 'DECIMAL', 'varchar(6)', '120.00'),
(120.0, 'DECIMAL', 'nchar(6)', '120.00'),
(120.0, 'DECIMAL', 'nvarchar(6)', '120.00'),
(120.0, 'DECIMAL', 'text', '120.00'),
(120.0, 'DECIMAL', 'ntext', '120.00'),
# Date
('2020-01-01 10:00:00', 'DATE', 'date', datetime.date(2020, 1, 1)),
('2020-01-01 10:00:00', 'DATE', 'datetime', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATE', 'datetime2', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATE', 'smalldatetime', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATE', 'char(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATE', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'nchar(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATE', 'nvarchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATE', 'ntext', 'Wed Jan 01 10:00:00 GMT 2020'),
# Time
('2020-01-01 10:00:00', 'TIME', 'time', datetime.time(10, 0)),
('2020-01-01 10:00:00', 'TIME', 'char(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'TIME', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'nchar(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'TIME', 'nvarchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'TIME', 'ntext', 'Wed Jan 01 10:00:00 GMT 2020'),
# DateTime
('2020-01-01 10:00:00', 'DATETIME', 'date', datetime.date(2020, 1, 1)),
('2020-01-01 10:00:00', 'DATETIME', 'datetime', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATETIME', 'datetime2', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATETIME', 'smalldatetime', datetime.datetime(2020, 1, 1, 10, 0)),
('2020-01-01 10:00:00', 'DATETIME', 'char(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATETIME', 'varchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'nchar(30)', 'Wed Jan 01 10:00:00 GMT 2020 '),
('2020-01-01 10:00:00', 'DATETIME', 'nvarchar(50)', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'text', 'Wed Jan 01 10:00:00 GMT 2020'),
('2020-01-01 10:00:00', 'DATETIME', 'ntext', 'Wed Jan 01 10:00:00 GMT 2020'),
# Zoned DateTime
# Currently not supported at all
# String
('120', 'STRING', 'tinyint', 120),
('120', 'STRING', 'smallint', 120),
('120', 'STRING', 'integer', 120),
('120', 'STRING', 'bigint', 120),
('120', 'STRING', 'decimal(5,2)', 120.0),
('120', 'STRING', 'numeric(5,2)', 120.0),
('120', 'STRING', 'real', 120.0),
('120', 'STRING', 'float', 120.0),
('120', 'STRING', 'money', 120.0),
('120', 'STRING', 'smallmoney', 120.0),
('120', 'STRING', 'char(5)', '120 '),
('120', 'STRING', 'varchar(5)', '120'),
('120', 'STRING', 'nchar(5)', '120 '),
('120', 'STRING', 'nvarchar(5)', '120'),
('120', 'STRING', 'text', '120'),
('120', 'STRING', 'ntext', '120'),
('2003-04-12 04:05:06', 'STRING', 'datetime', datetime.datetime(2003, 4, 12, 4, 5, 6)),
('2003-04-12 04:05:06', 'STRING', 'datetime2', datetime.datetime(2003, 4, 12, 4, 5, 6)),
('2003-04-12 04:05:06', 'STRING', 'smalldatetime', datetime.datetime(2003, 4, 12, 4, 5)),
('2020-01-01', 'STRING', 'date', datetime.date(2020, 1, 1)),
('10:00:00', 'STRING', 'time', datetime.time(10, 0)),
# Byte array
('string', 'BYTE_ARRAY', 'binary(6)', b'string'),
('string', 'BYTE_ARRAY', 'varbinary(6)', b'string'),
('string', 'BYTE_ARRAY', 'char(6)', 'string'),
('string', 'BYTE_ARRAY', 'varchar(6)', 'string'),
('string', 'BYTE_ARRAY', 'text', 'string'),
]
@database('sqlserver')
@pytest.mark.parametrize('input,converter_type,database_type,expected', DATA_TYPES_SQLSERVER, ids=[f"{i[1]}-{i[2]}" for i in DATA_TYPES_SQLSERVER])
def test_data_types_sqlserver(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data):
_test_data_types(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data)
def _test_data_types(sdc_builder, sdc_executor, input, converter_type, database_type, expected, database, keep_data):
table_name = get_random_string(string.ascii_lowercase, 20)
connection = database.engine.connect()
if isinstance(database, MySqlDatabase):
connection.execute("SET sql_mode=ANSI_QUOTES")
# Build pipeline
builder = sdc_builder.get_pipeline_builder()
origin = builder.add_stage('Dev Raw Data Source')
origin.data_format = 'JSON'
origin.stop_after_first_batch = True
origin.raw_data = json.dumps({"value": input })
converter = builder.add_stage('Field Type Converter')
converter.conversion_method = 'BY_FIELD'
converter.field_type_converter_configs = [{
'fields': ['/value'],
'targetType': converter_type,
'dataLocale': 'en,US',
'dateFormat': 'YYYY_MM_DD_HH_MM_SS',
'zonedDateTimeFormat': 'ISO_OFFSET_DATE_TIME',
'scale': 2
}]
target = builder.add_stage('JDBC Producer')
target.table_name = table_name
target.enclose_object_names = True
target.field_to_column_mapping = []
target.on_record_error = 'STOP_PIPELINE'
origin >> converter >> target
pipeline = builder.build().configure_for_environment(database)
# Workarounds for STE,STF specific stuff
target.table_name = table_name
if isinstance(database, MySqlDatabase):
target.init_query = "SET sql_mode=ANSI_QUOTES"
sdc_executor.add_pipeline(pipeline)
try:
# Create table
connection.execute(f"""
CREATE TABLE "{table_name}"(
"value" {database_type} NULL
)
""")
# Run pipeline and read from Elasticsearch to assert
sdc_executor.start_pipeline(pipeline).wait_for_finished()
if database_type == 'xmltype':
rs = connection.execute(f'select XMLTYPE.GETCLOBVAL("value") from "{table_name}"')
else:
rs = connection.execute(f'select "value" from "{table_name}"')
rows = [row for row in rs]
assert len(rows) == 1
actual = rows[0][0]
# Coercions that can't be directly asserted
if type(actual) == memoryview:
actual = actual.tobytes()
assert actual == expected
finally:
if not keep_data:
logger.info('Dropping table %s in %s database ...', table_name, database.type)
connection.execute(f'DROP TABLE "{table_name}"')
# Rules: https://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements008.htm
# Max Lenght: https://stackoverflow.com/questions/756558/what-is-the-maximum-length-of-a-table-name-in-oracle
OBJECT_NAMES_ORACLE = [
('keywords', 'table', 'column'),
('lowercase', get_random_string(string.ascii_lowercase, 20), get_random_string(string.ascii_lowercase, 20)),
('uppercase', get_random_string(string.ascii_uppercase, 20), get_random_string(string.ascii_uppercase, 20)),
('mixedcase', get_random_string(string.ascii_letters, 20), get_random_string(string.ascii_letters, 20)),
('max_table_name', get_random_string(string.ascii_letters, 30), get_random_string(string.ascii_letters, 20)),
('max_column_name', get_random_string(string.ascii_letters, 20), get_random_string(string.ascii_letters, 30)),
('numbers', get_random_string(string.ascii_letters, 5) + "0123456789", get_random_string(string.ascii_letters, 5) + "0123456789"),
('special', get_random_string(string.ascii_letters, 5) + "!@#$%^&*()_+=-?<>", get_random_string(string.ascii_letters, 5) + "!@#$%^&*()_+=-?<>"),
]
@database('oracle')
@pytest.mark.parametrize('test_name,table_name,column_name', OBJECT_NAMES_ORACLE, ids=[i[0] for i in OBJECT_NAMES_ORACLE])
def test_object_names_oracle(sdc_builder, sdc_executor, database, test_name, table_name, column_name, keep_data):
_test_object_names(sdc_builder, sdc_executor, database, table_name, column_name, False, keep_data)
# Rules: https://www.postgresql.org/docs/9.1/sql-syntax-lexical.html
OBJECT_NAMES_POSTGRESQL = [
('keywords', 'table', 'column'),
('lowercase', get_random_string(string.ascii_lowercase, 20), get_random_string(string.ascii_lowercase, 20)),
('uppercase', get_random_string(string.ascii_uppercase, 20), get_random_string(string.ascii_uppercase, 20)),
('mixedcase', get_random_string(string.ascii_letters, 20), get_random_string(string.ascii_letters, 20)),
('max_table_name', get_random_string(string.ascii_letters, 63), get_random_string(string.ascii_letters, 20)),
('max_column_name', get_random_string(string.ascii_letters, 20), get_random_string(string.ascii_letters, 63)),
('numbers', get_random_string(string.ascii_letters, 5) + "0123456789", get_random_string(string.ascii_letters, 5) + "0123456789"),
('special', get_random_string(string.ascii_letters, 5) + "$_", get_random_string(string.ascii_letters, 5) + "$_"),
]
@database('postgresql')
@pytest.mark.parametrize('use_multi_row_operation', [True, False])
@pytest.mark.parametrize('test_name,table_name,column_name', OBJECT_NAMES_POSTGRESQL, ids=[i[0] for i in OBJECT_NAMES_POSTGRESQL])
def test_object_names_postgresql(sdc_builder, sdc_executor, database, test_name, table_name, column_name, use_multi_row_operation, keep_data):
_test_object_names(sdc_builder, sdc_executor, database, table_name, column_name, use_multi_row_operation, keep_data)
# Rules: https://dev.mysql.com/doc/refman/8.0/en/identifier-length.html
# Rules: https://dev.mysql.com/doc/refman/8.0/en/identifiers.html
OBJECT_NAMES_MYSQL = [
('keywords', 'table', 'column'),
('lowercase', get_random_string(string.ascii_lowercase, 20), get_random_string(string.ascii_lowercase, 20)),
('uppercase', get_random_string(string.ascii_uppercase, 20), get_random_string(string.ascii_uppercase, 20)),
('mixedcase', get_random_string(string.ascii_letters, 20), get_random_string(string.ascii_letters, 20)),
('max_table_name', get_random_string(string.ascii_letters, 64), get_random_string(string.ascii_letters, 20)),
('max_column_name', get_random_string(string.ascii_letters, 20), get_random_string(string.ascii_letters, 64)),
('numbers', get_random_string(string.ascii_letters, 5) + "0123456789", get_random_string(string.ascii_letters, 5) + "0123456789"),
('special', get_random_string(string.ascii_letters, 5) + "$_", get_random_string(string.ascii_letters, 5) + "$_"),
]
@database('mysql')
@pytest.mark.parametrize('use_multi_row_operation', [True, False])
@pytest.mark.parametrize('test_name,table_name,column_name', OBJECT_NAMES_MYSQL, ids=[i[0] for i in OBJECT_NAMES_MYSQL])
def test_object_names_mysql(sdc_builder, sdc_executor, database, test_name, table_name, column_name, use_multi_row_operation, keep_data):
if isinstance(database, MemSqlDatabase):
pytest.skip("Standard Tests are currently only written for MySQL and not for MemSQL (sadly STF threads both DBs the same way)")
_test_object_names(sdc_builder, sdc_executor, database, table_name, column_name, use_multi_row_operation, keep_data)
# Rules: https://stackoverflow.com/questions/5808332/sql-server-maximum-character-length-of-object-names
# Rules:
OBJECT_NAMES_SQLSERVER = [
('keywords', 'table', 'column'),
('lowercase', get_random_string(string.ascii_lowercase, 20), get_random_string(string.ascii_lowercase, 20)),
('uppercase', get_random_string(string.ascii_uppercase, 20), get_random_string(string.ascii_uppercase, 20)),
('mixedcase', get_random_string(string.ascii_letters, 20), get_random_string(string.ascii_letters, 20)),
('max_table_name', get_random_string(string.ascii_letters, 128), get_random_string(string.ascii_letters, 20)),
('max_column_name', get_random_string(string.ascii_letters, 20), get_random_string(string.ascii_letters, 128)),
('numbers', get_random_string(string.ascii_letters, 5) + "0123456789", get_random_string(string.ascii_letters, 5) + "0123456789"),
('special', get_random_string(string.ascii_letters, 5) + "!@#$%^&*()_+=-?<>", get_random_string(string.ascii_letters, 5) + "!@#$%^&*()_+=-?<>"),
]
@database('sqlserver')
@pytest.mark.parametrize('use_multi_row_operation', [True, False])
@pytest.mark.parametrize('test_name,table_name,column_name', OBJECT_NAMES_SQLSERVER, ids=[i[0] for i in OBJECT_NAMES_SQLSERVER])
def test_object_names_sqlserver(sdc_builder, sdc_executor, database, test_name, table_name, column_name, use_multi_row_operation, keep_data):
_test_object_names(sdc_builder, sdc_executor, database, table_name, column_name, use_multi_row_operation, keep_data)
def _test_object_names(sdc_builder, sdc_executor, database, table_name, column_name, use_multi_row_operation, keep_data):
builder = sdc_builder.get_pipeline_builder()
source = builder.add_stage('Dev Raw Data Source')
source.data_format = 'JSON'
source.raw_data = f'{{ "{column_name}" : 1 }}'
source.stop_after_first_batch = True
target = builder.add_stage('JDBC Producer')
target.table_name = table_name
target.enclose_object_names = True
target.field_to_column_mapping = []
target.use_multi_row_operation = use_multi_row_operation
target.on_record_error = 'STOP_PIPELINE'
source >> target
pipeline = builder.build().configure_for_environment(database)
# Work-arounding STF behavior of upper-casing table name configuration
target.table_name = table_name
# Our environment is running default MySQL instance that doesn't set SQL_ANSI_MODE that we're expecting
if isinstance(database, MySqlDatabase):
target.init_query = "SET sql_mode=ANSI_QUOTES"
metadata = sqlalchemy.MetaData()
table = sqlalchemy.Table(
table_name,
metadata,
sqlalchemy.Column(column_name, sqlalchemy.Integer, primary_key=False, quote=True),
quote=True
)
try:
logger.info('Creating table %s in %s database ...', table_name, database.type)
table.create(database.engine)
sdc_executor.add_pipeline(pipeline)
sdc_executor.start_pipeline(pipeline).wait_for_finished()
# Verify that the data were indeed inserted
result = database.engine.execute(table.select())
rows = result.fetchall()
result.close()
assert len(rows) == 1
assert rows[0][0] == 1
finally:
if not keep_data:
logger.info('Dropping table %s in %s database...', table_name, database.type)
table.drop(database.engine)
@database
@pytest.mark.parametrize('use_multi_row_operation', [True, False])
def test_multiple_batches(sdc_builder, sdc_executor, use_multi_row_operation, database, keep_data):
if isinstance(database, MemSqlDatabase):
pytest.skip("Standard Tests are currently only written for MySQL and not for MemSQL (sadly STF threads both DBs the same way)")
if isinstance(database, OracleDatabase) and use_multi_row_operation:
pytest.skip("Oracle doesn't support multi-row statements.")
table_name = get_random_string(string.ascii_lowercase, 20)
batch_size = 100
batches = 10
builder = sdc_builder.get_pipeline_builder()
origin = builder.add_stage('Dev Data Generator')
origin.batch_size = batch_size
origin.fields_to_generate = [{
"type": "LONG_SEQUENCE",
"field": "seq"
}]
target = builder.add_stage('JDBC Producer')
target.table_name = table_name
target.enclose_object_names = True
target.field_to_column_mapping = []
target.use_multi_row_operation = use_multi_row_operation
target.on_record_error = 'STOP_PIPELINE'
origin >> target
pipeline = builder.build().configure_for_environment(database)
# Work-arounding STF behavior of upper-casing table name configuration
target.table_name = table_name
# Our environment is running default MySQL instance that doesn't set SQL_ANSI_MODE that we're expecting
if isinstance(database, MySqlDatabase):
target.init_query = "SET sql_mode=ANSI_QUOTES"
sdc_executor.add_pipeline(pipeline)
metadata = sqlalchemy.MetaData()
table = sqlalchemy.Table(
table_name,
metadata,
sqlalchemy.Column('seq', sqlalchemy.Integer, primary_key=False, quote=True),
quote=True
)
try:
logger.info('Creating table %s in %s database ...', table_name, database.type)
table.create(database.engine)
sdc_executor.start_pipeline(pipeline).wait_for_pipeline_output_records_count(batches * batch_size)
sdc_executor.stop_pipeline(pipeline)
# Now the pipeline will write some amount of records that will be larger, so we get precise count from metrics
history = sdc_executor.get_pipeline_history(pipeline)
records = history.latest.metrics.counter('pipeline.batchInputRecords.counter').count
logger.info(f"Detected {records} output records")
# Sanity check
assert records >= batch_size * batches
result = database.engine.execute(table.select())
data = sorted([row[0] for row in result.fetchall()])
result.close()
assert data == [i for i in range(0, records)]
finally:
if not keep_data:
logger.info('Dropping table %s in %s database...', table_name, database.type)
table.drop(database.engine)
@database
def test_dataflow_events(sdc_builder, sdc_executor, database):
pytest.skip("No events supported in JDBC Producer destination at this time.")
@database
def test_data_format(sdc_builder, sdc_executor, database, keep_data):
pytest.skip("JDBC Producer doesn't deal with data formats")
@database
def test_push_pull(sdc_builder, sdc_executor, database):
pytest.skip("We haven't re-implemented this test since Dev Data Generator (push) is art of test_multiple_batches and Dev Raw Data Source (pull) is part of test_data_types.")
| 49.392461 | 177 | 0.604776 | 6,469 | 44,552 | 4.059515 | 0.068635 | 0.034728 | 0.038384 | 0.050569 | 0.778874 | 0.73691 | 0.705571 | 0.649023 | 0.621378 | 0.608507 | 0 | 0.163816 | 0.17447 | 44,552 | 901 | 178 | 49.447281 | 0.550205 | 0.060671 | 0 | 0.480485 | 0 | 0.009421 | 0.379392 | 0.029436 | 0 | 0 | 0 | 0 | 0.008075 | 1 | 0.018843 | false | 0 | 0.012113 | 0 | 0.030956 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2664cfab288742ba2e0757d8b25ae78095f40c8a | 547 | py | Python | terrascript/provider/camptocamp/jwt.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/provider/camptocamp/jwt.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/provider/camptocamp/jwt.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/provider/camptocamp/jwt.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:19:50 UTC)
import terrascript
class jwt(terrascript.Provider):
"""Terraform Provider for generating JSON Web Tokens"""
__description__ = "Terraform Provider for generating JSON Web Tokens"
__namespace__ = "camptocamp"
__name__ = "jwt"
__source__ = "https://github.com/camptocamp/terraform-provider-jwt"
__version__ = "0.0.3"
__published__ = "2020-11-21T14:17:38Z"
__tier__ = "community"
__all__ = ["jwt"]
| 27.35 | 73 | 0.720293 | 65 | 547 | 5.569231 | 0.676923 | 0.140884 | 0.110497 | 0.165746 | 0.237569 | 0.237569 | 0.237569 | 0 | 0 | 0 | 0 | 0.063319 | 0.162706 | 547 | 19 | 74 | 28.789474 | 0.727074 | 0.294333 | 0 | 0 | 1 | 0 | 0.398417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 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 | 1 | 0 | 0 | 3 |
267eaf5b28b65e85fe0051196221c96edcc2f68a | 154,389 | py | Python | intersight/__init__.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/__init__.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/__init__.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight OpenAPI specification.
The Cisco Intersight OpenAPI specification.
OpenAPI spec version: 1.0.9-1461
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import models into sdk package
from .models.aaa_audit_record_list import AaaAuditRecordList
from .models.adapter_config_policy_list import AdapterConfigPolicyList
from .models.adapter_ext_eth_interface_list import AdapterExtEthInterfaceList
from .models.adapter_host_eth_interface_list import AdapterHostEthInterfaceList
from .models.adapter_host_fc_interface_list import AdapterHostFcInterfaceList
from .models.adapter_host_iscsi_interface_list import AdapterHostIscsiInterfaceList
from .models.adapter_unit_list import AdapterUnitList
from .models.appliance_backup_list import ApplianceBackupList
from .models.appliance_backup_policy_list import ApplianceBackupPolicyList
from .models.appliance_certificate_setting_list import ApplianceCertificateSettingList
from .models.appliance_data_export_policy_list import ApplianceDataExportPolicyList
from .models.appliance_device_claim_list import ApplianceDeviceClaimList
from .models.appliance_diag_setting_list import ApplianceDiagSettingList
from .models.appliance_image_bundle_list import ApplianceImageBundleList
from .models.appliance_node_info_list import ApplianceNodeInfoList
from .models.appliance_release_note_list import ApplianceReleaseNoteList
from .models.appliance_restore_list import ApplianceRestoreList
from .models.appliance_setup_info_list import ApplianceSetupInfoList
from .models.appliance_system_info_list import ApplianceSystemInfoList
from .models.appliance_upgrade_list import ApplianceUpgradeList
from .models.appliance_upgrade_policy_list import ApplianceUpgradePolicyList
from .models.asset_cluster_member_list import AssetClusterMemberList
from .models.asset_device_configuration_list import AssetDeviceConfigurationList
from .models.asset_device_connector_manager_list import AssetDeviceConnectorManagerList
from .models.asset_device_contract_information_list import AssetDeviceContractInformationList
from .models.asset_device_registration_list import AssetDeviceRegistrationList
from .models.asset_managed_device_list import AssetManagedDeviceList
from .models.bios_boot_mode_list import BiosBootModeList
from .models.bios_policy_list import BiosPolicyList
from .models.bios_unit_list import BiosUnitList
from .models.boot_device_boot_mode_list import BootDeviceBootModeList
from .models.boot_precision_policy_list import BootPrecisionPolicyList
from .models.compute_blade_list import ComputeBladeList
from .models.compute_board_list import ComputeBoardList
from .models.compute_physical_summary_list import ComputePhysicalSummaryList
from .models.compute_rack_unit_list import ComputeRackUnitList
from .models.compute_server_setting_list import ComputeServerSettingList
from .models.cond_alarm_list import CondAlarmList
from .models.cond_hcl_status_detail_list import CondHclStatusDetailList
from .models.cond_hcl_status_job_list import CondHclStatusJobList
from .models.cond_hcl_status_list import CondHclStatusList
from .models.deviceconnector_policy_list import DeviceconnectorPolicyList
from .models.equipment_chassis_list import EquipmentChassisList
from .models.equipment_device_summary_list import EquipmentDeviceSummaryList
from .models.equipment_fan_list import EquipmentFanList
from .models.equipment_fan_module_list import EquipmentFanModuleList
from .models.equipment_fex_list import EquipmentFexList
from .models.equipment_io_card_list import EquipmentIoCardList
from .models.equipment_io_expander_list import EquipmentIoExpanderList
from .models.equipment_locator_led_list import EquipmentLocatorLedList
from .models.equipment_psu_list import EquipmentPsuList
from .models.equipment_rack_enclosure_list import EquipmentRackEnclosureList
from .models.equipment_rack_enclosure_slot_list import EquipmentRackEnclosureSlotList
from .models.equipment_shared_io_module_list import EquipmentSharedIoModuleList
from .models.equipment_switch_card_list import EquipmentSwitchCardList
from .models.equipment_system_io_controller_list import EquipmentSystemIoControllerList
from .models.equipment_tpm_list import EquipmentTpmList
from .models.error import Error
from .models.ether_physical_port_list import EtherPhysicalPortList
from .models.externalsite_authorization_list import ExternalsiteAuthorizationList
from .models.fault_instance_list import FaultInstanceList
from .models.fc_physical_port_list import FcPhysicalPortList
from .models.firmware_distributable_list import FirmwareDistributableList
from .models.firmware_driver_distributable_list import FirmwareDriverDistributableList
from .models.firmware_eula_list import FirmwareEulaList
from .models.firmware_running_firmware_list import FirmwareRunningFirmwareList
from .models.firmware_server_configuration_utility_distributable_list import FirmwareServerConfigurationUtilityDistributableList
from .models.firmware_upgrade_list import FirmwareUpgradeList
from .models.firmware_upgrade_status_list import FirmwareUpgradeStatusList
from .models.forecast_catalog_list import ForecastCatalogList
from .models.forecast_definition_list import ForecastDefinitionList
from .models.forecast_instance_list import ForecastInstanceList
from .models.graphics_card_list import GraphicsCardList
from .models.graphics_controller_list import GraphicsControllerList
from .models.hcl_driver_image_list import HclDriverImageList
from .models.hcl_exempted_catalog_list import HclExemptedCatalogList
from .models.hcl_hyperflex_software_compatibility_info_list import HclHyperflexSoftwareCompatibilityInfoList
from .models.hcl_operating_system_list import HclOperatingSystemList
from .models.hcl_operating_system_vendor_list import HclOperatingSystemVendorList
from .models.hcl_service_status_list import HclServiceStatusList
from .models.hyperflex_alarm_list import HyperflexAlarmList
from .models.hyperflex_app_catalog_list import HyperflexAppCatalogList
from .models.hyperflex_auto_support_policy_list import HyperflexAutoSupportPolicyList
from .models.hyperflex_capability_info_list import HyperflexCapabilityInfoList
from .models.hyperflex_cluster_list import HyperflexClusterList
from .models.hyperflex_cluster_network_policy_list import HyperflexClusterNetworkPolicyList
from .models.hyperflex_cluster_profile_list import HyperflexClusterProfileList
from .models.hyperflex_cluster_storage_policy_list import HyperflexClusterStoragePolicyList
from .models.hyperflex_config_result_entry_list import HyperflexConfigResultEntryList
from .models.hyperflex_config_result_list import HyperflexConfigResultList
from .models.hyperflex_ext_fc_storage_policy_list import HyperflexExtFcStoragePolicyList
from .models.hyperflex_ext_iscsi_storage_policy_list import HyperflexExtIscsiStoragePolicyList
from .models.hyperflex_feature_limit_external_list import HyperflexFeatureLimitExternalList
from .models.hyperflex_feature_limit_internal_list import HyperflexFeatureLimitInternalList
from .models.hyperflex_health_list import HyperflexHealthList
from .models.hyperflex_hxdp_version_list import HyperflexHxdpVersionList
from .models.hyperflex_local_credential_policy_list import HyperflexLocalCredentialPolicyList
from .models.hyperflex_node_config_policy_list import HyperflexNodeConfigPolicyList
from .models.hyperflex_node_list import HyperflexNodeList
from .models.hyperflex_node_profile_list import HyperflexNodeProfileList
from .models.hyperflex_proxy_setting_policy_list import HyperflexProxySettingPolicyList
from .models.hyperflex_server_firmware_version_list import HyperflexServerFirmwareVersionList
from .models.hyperflex_server_model_list import HyperflexServerModelList
from .models.hyperflex_software_version_policy_list import HyperflexSoftwareVersionPolicyList
from .models.hyperflex_sys_config_policy_list import HyperflexSysConfigPolicyList
from .models.hyperflex_ucsm_config_policy_list import HyperflexUcsmConfigPolicyList
from .models.hyperflex_vcenter_config_policy_list import HyperflexVcenterConfigPolicyList
from .models.iaas_connector_pack_list import IaasConnectorPackList
from .models.iaas_device_status_list import IaasDeviceStatusList
from .models.iaas_license_info_list import IaasLicenseInfoList
from .models.iaas_most_run_tasks_list import IaasMostRunTasksList
from .models.iaas_ucsd_info_list import IaasUcsdInfoList
from .models.iaas_ucsd_managed_infra_list import IaasUcsdManagedInfraList
from .models.iam_account_list import IamAccountList
from .models.iam_api_key_list import IamApiKeyList
from .models.iam_app_registration_list import IamAppRegistrationList
from .models.iam_certificate_list import IamCertificateList
from .models.iam_certificate_request_list import IamCertificateRequestList
from .models.iam_domain_group_list import IamDomainGroupList
from .models.iam_end_point_privilege_list import IamEndPointPrivilegeList
from .models.iam_end_point_role_list import IamEndPointRoleList
from .models.iam_end_point_user_list import IamEndPointUserList
from .models.iam_end_point_user_policy_list import IamEndPointUserPolicyList
from .models.iam_end_point_user_role_list import IamEndPointUserRoleList
from .models.iam_idp_list import IamIdpList
from .models.iam_idp_reference_list import IamIdpReferenceList
from .models.iam_ldap_group_list import IamLdapGroupList
from .models.iam_ldap_policy_list import IamLdapPolicyList
from .models.iam_ldap_provider_list import IamLdapProviderList
from .models.iam_o_auth_token_list import IamOAuthTokenList
from .models.iam_permission_list import IamPermissionList
from .models.iam_private_key_spec_list import IamPrivateKeySpecList
from .models.iam_privilege_list import IamPrivilegeList
from .models.iam_privilege_set_list import IamPrivilegeSetList
from .models.iam_qualifier_list import IamQualifierList
from .models.iam_resource_limits_list import IamResourceLimitsList
from .models.iam_resource_permission_list import IamResourcePermissionList
from .models.iam_resource_roles_list import IamResourceRolesList
from .models.iam_role_list import IamRoleList
from .models.iam_security_holder_list import IamSecurityHolderList
from .models.iam_service_provider_list import IamServiceProviderList
from .models.iam_session_limits_list import IamSessionLimitsList
from .models.iam_session_list import IamSessionList
from .models.iam_system_list import IamSystemList
from .models.iam_trust_point_list import IamTrustPointList
from .models.iam_user_group_list import IamUserGroupList
from .models.iam_user_list import IamUserList
from .models.iam_user_preference_list import IamUserPreferenceList
from .models.inventory_device_info_list import InventoryDeviceInfoList
from .models.inventory_dn_mo_binding_list import InventoryDnMoBindingList
from .models.inventory_generic_inventory_holder_list import InventoryGenericInventoryHolderList
from .models.inventory_generic_inventory_list import InventoryGenericInventoryList
from .models.ipmioverlan_policy_list import IpmioverlanPolicyList
from .models.kvm_policy_list import KvmPolicyList
from .models.license_account_license_data_list import LicenseAccountLicenseDataList
from .models.license_customer_op_list import LicenseCustomerOpList
from .models.license_license_info_list import LicenseLicenseInfoList
from .models.license_smartlicense_token_list import LicenseSmartlicenseTokenList
from .models.ls_service_profile_list import LsServiceProfileList
from .models.management_controller_list import ManagementControllerList
from .models.management_entity_list import ManagementEntityList
from .models.management_interface_list import ManagementInterfaceList
from .models.memory_array_list import MemoryArrayList
from .models.memory_persistent_memory_config_result_list import MemoryPersistentMemoryConfigResultList
from .models.memory_persistent_memory_configuration_list import MemoryPersistentMemoryConfigurationList
from .models.memory_persistent_memory_namespace_config_result_list import MemoryPersistentMemoryNamespaceConfigResultList
from .models.memory_persistent_memory_namespace_list import MemoryPersistentMemoryNamespaceList
from .models.memory_persistent_memory_region_list import MemoryPersistentMemoryRegionList
from .models.memory_persistent_memory_unit_list import MemoryPersistentMemoryUnitList
from .models.memory_unit_list import MemoryUnitList
from .models.meta_definition_list import MetaDefinitionList
from .models.mo_base_complex_type import MoBaseComplexType
from .models.mo_base_mo import MoBaseMo
from .models.network_element_list import NetworkElementList
from .models.network_element_summary_list import NetworkElementSummaryList
from .models.networkconfig_policy_list import NetworkconfigPolicyList
from .models.niaapi_apic_cco_post_list import NiaapiApicCcoPostList
from .models.niaapi_apic_field_notice_list import NiaapiApicFieldNoticeList
from .models.niaapi_apic_hweol_list import NiaapiApicHweolList
from .models.niaapi_apic_latest_maintained_release_list import NiaapiApicLatestMaintainedReleaseList
from .models.niaapi_apic_release_recommend_list import NiaapiApicReleaseRecommendList
from .models.niaapi_apic_sweol_list import NiaapiApicSweolList
from .models.niaapi_dcnm_cco_post_list import NiaapiDcnmCcoPostList
from .models.niaapi_dcnm_field_notice_list import NiaapiDcnmFieldNoticeList
from .models.niaapi_dcnm_hweol_list import NiaapiDcnmHweolList
from .models.niaapi_dcnm_latest_maintained_release_list import NiaapiDcnmLatestMaintainedReleaseList
from .models.niaapi_dcnm_release_recommend_list import NiaapiDcnmReleaseRecommendList
from .models.niaapi_dcnm_sweol_list import NiaapiDcnmSweolList
from .models.niaapi_file_downloader_list import NiaapiFileDownloaderList
from .models.niaapi_nia_metadata_list import NiaapiNiaMetadataList
from .models.niaapi_version_regex_list import NiaapiVersionRegexList
from .models.niatelemetry_nia_inventory_list import NiatelemetryNiaInventoryList
from .models.niatelemetry_nia_license_state_list import NiatelemetryNiaLicenseStateList
from .models.ntp_policy_list import NtpPolicyList
from .models.organization_organization_list import OrganizationOrganizationList
from .models.os_catalog_list import OsCatalogList
from .models.os_configuration_file_list import OsConfigurationFileList
from .models.os_install_list import OsInstallList
from .models.pci_coprocessor_card_list import PciCoprocessorCardList
from .models.pci_device_list import PciDeviceList
from .models.pci_link_list import PciLinkList
from .models.pci_switch_list import PciSwitchList
from .models.port_group_list import PortGroupList
from .models.port_sub_group_list import PortSubGroupList
from .models.processor_unit_list import ProcessorUnitList
from .models.recovery_backup_config_policy_list import RecoveryBackupConfigPolicyList
from .models.recovery_backup_profile_list import RecoveryBackupProfileList
from .models.recovery_config_result_entry_list import RecoveryConfigResultEntryList
from .models.recovery_config_result_list import RecoveryConfigResultList
from .models.recovery_on_demand_backup_list import RecoveryOnDemandBackupList
from .models.recovery_restore_list import RecoveryRestoreList
from .models.recovery_schedule_config_policy_list import RecoveryScheduleConfigPolicyList
from .models.resource_group_list import ResourceGroupList
from .models.resource_group_member_list import ResourceGroupMemberList
from .models.resource_license_resource_count_list import ResourceLicenseResourceCountList
from .models.resource_membership_holder_list import ResourceMembershipHolderList
from .models.resource_membership_list import ResourceMembershipList
from .models.sdcard_policy_list import SdcardPolicyList
from .models.sdwan_profile_list import SdwanProfileList
from .models.sdwan_router_node_list import SdwanRouterNodeList
from .models.sdwan_router_policy_list import SdwanRouterPolicyList
from .models.sdwan_vmanage_account_policy_list import SdwanVmanageAccountPolicyList
from .models.search_search_item_list import SearchSearchItemList
from .models.search_tag_item_list import SearchTagItemList
from .models.security_unit_list import SecurityUnitList
from .models.server_config_change_detail_list import ServerConfigChangeDetailList
from .models.server_config_import_list import ServerConfigImportList
from .models.server_config_result_entry_list import ServerConfigResultEntryList
from .models.server_config_result_list import ServerConfigResultList
from .models.server_profile_list import ServerProfileList
from .models.smtp_policy_list import SmtpPolicyList
from .models.snmp_policy_list import SnmpPolicyList
from .models.software_hcl_meta_list import SoftwareHclMetaList
from .models.software_hyperflex_distributable_list import SoftwareHyperflexDistributableList
from .models.software_solution_distributable_list import SoftwareSolutionDistributableList
from .models.softwarerepository_authorization_list import SoftwarerepositoryAuthorizationList
from .models.softwarerepository_catalog_list import SoftwarerepositoryCatalogList
from .models.softwarerepository_operating_system_file_list import SoftwarerepositoryOperatingSystemFileList
from .models.sol_policy_list import SolPolicyList
from .models.ssh_policy_list import SshPolicyList
from .models.storage_controller_list import StorageControllerList
from .models.storage_disk_group_policy_list import StorageDiskGroupPolicyList
from .models.storage_enclosure_disk_list import StorageEnclosureDiskList
from .models.storage_enclosure_disk_slot_ep_list import StorageEnclosureDiskSlotEpList
from .models.storage_enclosure_list import StorageEnclosureList
from .models.storage_flex_flash_controller_list import StorageFlexFlashControllerList
from .models.storage_flex_flash_controller_props_list import StorageFlexFlashControllerPropsList
from .models.storage_flex_flash_physical_drive_list import StorageFlexFlashPhysicalDriveList
from .models.storage_flex_flash_virtual_drive_list import StorageFlexFlashVirtualDriveList
from .models.storage_flex_util_controller_list import StorageFlexUtilControllerList
from .models.storage_flex_util_physical_drive_list import StorageFlexUtilPhysicalDriveList
from .models.storage_flex_util_virtual_drive_list import StorageFlexUtilVirtualDriveList
from .models.storage_physical_disk_extension_list import StoragePhysicalDiskExtensionList
from .models.storage_physical_disk_list import StoragePhysicalDiskList
from .models.storage_physical_disk_usage_list import StoragePhysicalDiskUsageList
from .models.storage_pure_array_list import StoragePureArrayList
from .models.storage_pure_controller_list import StoragePureControllerList
from .models.storage_pure_disk_list import StoragePureDiskList
from .models.storage_pure_host_list import StoragePureHostList
from .models.storage_pure_host_lun_list import StoragePureHostLunList
from .models.storage_pure_port_list import StoragePurePortList
from .models.storage_pure_protection_group_list import StoragePureProtectionGroupList
from .models.storage_pure_protection_group_snapshot_list import StoragePureProtectionGroupSnapshotList
from .models.storage_pure_replication_schedule_list import StoragePureReplicationScheduleList
from .models.storage_pure_snapshot_schedule_list import StoragePureSnapshotScheduleList
from .models.storage_pure_volume_list import StoragePureVolumeList
from .models.storage_pure_volume_snapshot_list import StoragePureVolumeSnapshotList
from .models.storage_sas_expander_list import StorageSasExpanderList
from .models.storage_sas_port_list import StorageSasPortList
from .models.storage_storage_policy_list import StorageStoragePolicyList
from .models.storage_vd_member_ep_list import StorageVdMemberEpList
from .models.storage_virtual_drive_extension_list import StorageVirtualDriveExtensionList
from .models.storage_virtual_drive_list import StorageVirtualDriveList
from .models.syslog_policy_list import SyslogPolicyList
from .models.tam_advisory_count_list import TamAdvisoryCountList
from .models.tam_advisory_info_list import TamAdvisoryInfoList
from .models.tam_advisory_instance_list import TamAdvisoryInstanceList
from .models.tam_security_advisory_list import TamSecurityAdvisoryList
from .models.telemetry_time_series_list import TelemetryTimeSeriesList
from .models.terminal_audit_log_list import TerminalAuditLogList
from .models.top_system_list import TopSystemList
from .models.ucsd_backup_info_list import UcsdBackupInfoList
from .models.vmedia_policy_list import VmediaPolicyList
from .models.vnic_eth_adapter_policy_list import VnicEthAdapterPolicyList
from .models.vnic_eth_if_list import VnicEthIfList
from .models.vnic_eth_network_policy_list import VnicEthNetworkPolicyList
from .models.vnic_eth_qos_policy_list import VnicEthQosPolicyList
from .models.vnic_fc_adapter_policy_list import VnicFcAdapterPolicyList
from .models.vnic_fc_if_list import VnicFcIfList
from .models.vnic_fc_network_policy_list import VnicFcNetworkPolicyList
from .models.vnic_fc_qos_policy_list import VnicFcQosPolicyList
from .models.vnic_lan_connectivity_policy_list import VnicLanConnectivityPolicyList
from .models.vnic_san_connectivity_policy_list import VnicSanConnectivityPolicyList
from .models.workflow_batch_api_executor_list import WorkflowBatchApiExecutorList
from .models.workflow_build_task_meta_list import WorkflowBuildTaskMetaList
from .models.workflow_build_task_meta_owner_list import WorkflowBuildTaskMetaOwnerList
from .models.workflow_catalog_list import WorkflowCatalogList
from .models.workflow_custom_data_type_definition_list import WorkflowCustomDataTypeDefinitionList
from .models.workflow_pending_dynamic_workflow_info_list import WorkflowPendingDynamicWorkflowInfoList
from .models.workflow_task_definition_list import WorkflowTaskDefinitionList
from .models.workflow_task_info_list import WorkflowTaskInfoList
from .models.workflow_task_meta_list import WorkflowTaskMetaList
from .models.workflow_workflow_definition_list import WorkflowWorkflowDefinitionList
from .models.workflow_workflow_info_list import WorkflowWorkflowInfoList
from .models.workflow_workflow_meta_list import WorkflowWorkflowMetaList
from .models.aaa_abstract_audit_record import AaaAbstractAuditRecord
from .models.adapter_adapter_config import AdapterAdapterConfig
from .models.adapter_dce_interface_settings import AdapterDceInterfaceSettings
from .models.adapter_eth_settings import AdapterEthSettings
from .models.adapter_fc_settings import AdapterFcSettings
from .models.adapter_port_channel_settings import AdapterPortChannelSettings
from .models.appliance_backup_base import ApplianceBackupBase
from .models.appliance_certificate_setting import ApplianceCertificateSetting
from .models.appliance_data_export_policy import ApplianceDataExportPolicy
from .models.appliance_device_claim import ApplianceDeviceClaim
from .models.appliance_diag_setting import ApplianceDiagSetting
from .models.appliance_image_bundle import ApplianceImageBundle
from .models.appliance_key_value_pair import ApplianceKeyValuePair
from .models.appliance_node_info import ApplianceNodeInfo
from .models.appliance_release_note import ApplianceReleaseNote
from .models.appliance_setup_info import ApplianceSetupInfo
from .models.appliance_system_info import ApplianceSystemInfo
from .models.appliance_upgrade import ApplianceUpgrade
from .models.appliance_upgrade_policy import ApplianceUpgradePolicy
from .models.asset_address_information import AssetAddressInformation
from .models.asset_connection_control_message import AssetConnectionControlMessage
from .models.asset_contract_information import AssetContractInformation
from .models.asset_customer_information import AssetCustomerInformation
from .models.asset_device_claim import AssetDeviceClaim
from .models.asset_device_configuration import AssetDeviceConfiguration
from .models.asset_device_connection import AssetDeviceConnection
from .models.asset_device_connector_manager import AssetDeviceConnectorManager
from .models.asset_device_contract_information import AssetDeviceContractInformation
from .models.asset_global_ultimate import AssetGlobalUltimate
from .models.asset_managed_device import AssetManagedDevice
from .models.asset_managed_device_status import AssetManagedDeviceStatus
from .models.asset_parent_connection_signature import AssetParentConnectionSignature
from .models.asset_product_information import AssetProductInformation
from .models.asset_sudi_info import AssetSudiInfo
from .models.boot_bootloader import BootBootloader
from .models.boot_device_base import BootDeviceBase
from .models.cmrf_cm_rf import CmrfCmRf
from .models.comm_credential import CommCredential
from .models.comm_ip_v4_interface import CommIpV4Interface
from .models.compute_ip_address import ComputeIpAddress
from .models.compute_server_config import ComputeServerConfig
from .models.cond_alarm import CondAlarm
from .models.cond_hcl_status import CondHclStatus
from .models.cond_hcl_status_detail import CondHclStatusDetail
from .models.cond_hcl_status_job import CondHclStatusJob
from .models.content_base_parameter import ContentBaseParameter
from .models.content_complex_type import ContentComplexType
from .models.content_grammar import ContentGrammar
from .models.externalsite_authorization import ExternalsiteAuthorization
from .models.feedback_feedback_data import FeedbackFeedbackData
from .models.feedback_feedback_post import FeedbackFeedbackPost
from .models.firmware_cifs_server import FirmwareCifsServer
from .models.firmware_direct_download import FirmwareDirectDownload
from .models.firmware_eula import FirmwareEula
from .models.firmware_http_server import FirmwareHttpServer
from .models.firmware_network_share import FirmwareNetworkShare
from .models.firmware_nfs_server import FirmwareNfsServer
from .models.firmware_upgrade import FirmwareUpgrade
from .models.firmware_upgrade_status import FirmwareUpgradeStatus
from .models.forecast_catalog import ForecastCatalog
from .models.forecast_definition import ForecastDefinition
from .models.forecast_instance import ForecastInstance
from .models.forecast_model import ForecastModel
from .models.hcl_compatibility_status import HclCompatibilityStatus
from .models.hcl_constraint import HclConstraint
from .models.hcl_driver_image import HclDriverImage
from .models.hcl_exempted_catalog import HclExemptedCatalog
from .models.hcl_firmware import HclFirmware
from .models.hcl_hardware_compatibility_profile import HclHardwareCompatibilityProfile
from .models.hcl_hyperflex_software_compatibility_info import HclHyperflexSoftwareCompatibilityInfo
from .models.hcl_operating_system import HclOperatingSystem
from .models.hcl_operating_system_vendor import HclOperatingSystemVendor
from .models.hcl_product import HclProduct
from .models.hcl_service_status import HclServiceStatus
from .models.hcl_supported_driver_name import HclSupportedDriverName
from .models.hyperflex_abstract_app_setting import HyperflexAbstractAppSetting
from .models.hyperflex_alarm import HyperflexAlarm
from .models.hyperflex_app_catalog import HyperflexAppCatalog
from .models.hyperflex_app_setting_constraint import HyperflexAppSettingConstraint
from .models.hyperflex_capability_info import HyperflexCapabilityInfo
from .models.hyperflex_cluster import HyperflexCluster
from .models.hyperflex_feature_limit_external import HyperflexFeatureLimitExternal
from .models.hyperflex_feature_limit_internal import HyperflexFeatureLimitInternal
from .models.hyperflex_health import HyperflexHealth
from .models.hyperflex_hx_link_dt import HyperflexHxLinkDt
from .models.hyperflex_hx_network_address_dt import HyperflexHxNetworkAddressDt
from .models.hyperflex_hx_resiliency_info_dt import HyperflexHxResiliencyInfoDt
from .models.hyperflex_hx_uu_id_dt import HyperflexHxUuIdDt
from .models.hyperflex_hx_zone_resiliency_info_dt import HyperflexHxZoneResiliencyInfoDt
from .models.hyperflex_hxdp_version import HyperflexHxdpVersion
from .models.hyperflex_ip_addr_range import HyperflexIpAddrRange
from .models.hyperflex_logical_availability_zone import HyperflexLogicalAvailabilityZone
from .models.hyperflex_mac_addr_prefix_range import HyperflexMacAddrPrefixRange
from .models.hyperflex_named_vlan import HyperflexNamedVlan
from .models.hyperflex_named_vsan import HyperflexNamedVsan
from .models.hyperflex_node import HyperflexNode
from .models.hyperflex_server_firmware_version import HyperflexServerFirmwareVersion
from .models.hyperflex_server_model import HyperflexServerModel
from .models.hyperflex_st_platform_cluster_healing_info import HyperflexStPlatformClusterHealingInfo
from .models.hyperflex_st_platform_cluster_resiliency_info import HyperflexStPlatformClusterResiliencyInfo
from .models.hyperflex_summary import HyperflexSummary
from .models.hyperflex_wwxn_prefix_range import HyperflexWwxnPrefixRange
from .models.i18n_message import I18nMessage
from .models.i18n_message_param import I18nMessageParam
from .models.iaas_connector_pack import IaasConnectorPack
from .models.iaas_device_status import IaasDeviceStatus
from .models.iaas_license_info import IaasLicenseInfo
from .models.iaas_license_keys_info import IaasLicenseKeysInfo
from .models.iaas_license_utilization_info import IaasLicenseUtilizationInfo
from .models.iaas_most_run_tasks import IaasMostRunTasks
from .models.iaas_ucsd_info import IaasUcsdInfo
from .models.iaas_ucsd_managed_infra import IaasUcsdManagedInfra
from .models.iam_account import IamAccount
from .models.iam_account_permissions import IamAccountPermissions
from .models.iam_api_key import IamApiKey
from .models.iam_app_registration import IamAppRegistration
from .models.iam_certificate import IamCertificate
from .models.iam_certificate_request import IamCertificateRequest
from .models.iam_client_meta import IamClientMeta
from .models.iam_domain_group import IamDomainGroup
from .models.iam_end_point_password_properties import IamEndPointPasswordProperties
from .models.iam_end_point_privilege import IamEndPointPrivilege
from .models.iam_end_point_role import IamEndPointRole
from .models.iam_end_point_user import IamEndPointUser
from .models.iam_end_point_user_role import IamEndPointUserRole
from .models.iam_group_permission_to_roles import IamGroupPermissionToRoles
from .models.iam_idp import IamIdp
from .models.iam_idp_reference import IamIdpReference
from .models.iam_ldap_base_properties import IamLdapBaseProperties
from .models.iam_ldap_dns_parameters import IamLdapDnsParameters
from .models.iam_ldap_group import IamLdapGroup
from .models.iam_ldap_provider import IamLdapProvider
from .models.iam_local_user_password import IamLocalUserPassword
from .models.iam_o_auth_token import IamOAuthToken
from .models.iam_permission import IamPermission
from .models.iam_permission_reference import IamPermissionReference
from .models.iam_permission_to_roles import IamPermissionToRoles
from .models.iam_private_key_spec import IamPrivateKeySpec
from .models.iam_privilege import IamPrivilege
from .models.iam_privilege_set import IamPrivilegeSet
from .models.iam_qualifier import IamQualifier
from .models.iam_resource_limits import IamResourceLimits
from .models.iam_resource_permission import IamResourcePermission
from .models.iam_resource_roles import IamResourceRoles
from .models.iam_role import IamRole
from .models.iam_security_holder import IamSecurityHolder
from .models.iam_service_provider import IamServiceProvider
from .models.iam_session import IamSession
from .models.iam_session_limits import IamSessionLimits
from .models.iam_sso_session_attributes import IamSsoSessionAttributes
from .models.iam_system import IamSystem
from .models.iam_trust_point import IamTrustPoint
from .models.iam_user import IamUser
from .models.iam_user_group import IamUserGroup
from .models.iam_user_preference import IamUserPreference
from .models.inventory_base import InventoryBase
from .models.inventory_dn_mo_binding import InventoryDnMoBinding
from .models.inventory_inventory_mo import InventoryInventoryMo
from .models.inventory_request import InventoryRequest
from .models.license_account_license_data import LicenseAccountLicenseData
from .models.license_customer_op import LicenseCustomerOp
from .models.license_license_info import LicenseLicenseInfo
from .models.license_smartlicense_token import LicenseSmartlicenseToken
from .models.meta_access_privilege import MetaAccessPrivilege
from .models.meta_definition import MetaDefinition
from .models.meta_prop_definition import MetaPropDefinition
from .models.meta_relationship_definition import MetaRelationshipDefinition
from .models.mo_mo_ref import MoMoRef
from .models.mo_tag import MoTag
from .models.mo_version_context import MoVersionContext
from .models.niaapi_detail import NiaapiDetail
from .models.niaapi_field_notice import NiaapiFieldNotice
from .models.niaapi_file_downloader import NiaapiFileDownloader
from .models.niaapi_hardware_eol import NiaapiHardwareEol
from .models.niaapi_maintained_release import NiaapiMaintainedRelease
from .models.niaapi_new_release_detail import NiaapiNewReleaseDetail
from .models.niaapi_new_release_post import NiaapiNewReleasePost
from .models.niaapi_nia_metadata import NiaapiNiaMetadata
from .models.niaapi_release_recommend import NiaapiReleaseRecommend
from .models.niaapi_revision_info import NiaapiRevisionInfo
from .models.niaapi_software_eol import NiaapiSoftwareEol
from .models.niaapi_software_regex import NiaapiSoftwareRegex
from .models.niaapi_version_regex import NiaapiVersionRegex
from .models.niaapi_version_regex_platform import NiaapiVersionRegexPlatform
from .models.niatelemetry_diskinfo import NiatelemetryDiskinfo
from .models.niatelemetry_nia_inventory import NiatelemetryNiaInventory
from .models.niatelemetry_nia_license_state import NiatelemetryNiaLicenseState
from .models.onprem_image_package import OnpremImagePackage
from .models.onprem_schedule import OnpremSchedule
from .models.onprem_upgrade_note import OnpremUpgradeNote
from .models.onprem_upgrade_phase import OnpremUpgradePhase
from .models.organization_organization import OrganizationOrganization
from .models.os_answers import OsAnswers
from .models.os_base_install_config import OsBaseInstallConfig
from .models.os_catalog import OsCatalog
from .models.os_configuration_file import OsConfigurationFile
from .models.os_operating_system_parameters import OsOperatingSystemParameters
from .models.os_os_support import OsOsSupport
from .models.os_place_holder import OsPlaceHolder
from .models.os_template_file import OsTemplateFile
from .models.pkix_distinguished_name import PkixDistinguishedName
from .models.pkix_key_generation_spec import PkixKeyGenerationSpec
from .models.pkix_subject_alternate_name import PkixSubjectAlternateName
from .models.policy_abstract_config_change_detail import PolicyAbstractConfigChangeDetail
from .models.policy_abstract_config_result import PolicyAbstractConfigResult
from .models.policy_abstract_config_result_entry import PolicyAbstractConfigResultEntry
from .models.policy_abstract_policy import PolicyAbstractPolicy
from .models.policy_abstract_profile import PolicyAbstractProfile
from .models.policy_config_change import PolicyConfigChange
from .models.policy_config_context import PolicyConfigContext
from .models.policy_config_result_context import PolicyConfigResultContext
from .models.policyinventory_abstract_device_info import PolicyinventoryAbstractDeviceInfo
from .models.policyinventory_job_info import PolicyinventoryJobInfo
from .models.recovery_abstract_backup_info import RecoveryAbstractBackupInfo
from .models.recovery_backup_schedule import RecoveryBackupSchedule
from .models.recovery_config_params import RecoveryConfigParams
from .models.recovery_restore import RecoveryRestore
from .models.resource_group import ResourceGroup
from .models.resource_group_member import ResourceGroupMember
from .models.resource_license_resource_count import ResourceLicenseResourceCount
from .models.resource_membership import ResourceMembership
from .models.resource_membership_holder import ResourceMembershipHolder
from .models.resource_per_type_combined_selector import ResourcePerTypeCombinedSelector
from .models.resource_selector import ResourceSelector
from .models.sdcard_partition import SdcardPartition
from .models.sdcard_virtual_drive import SdcardVirtualDrive
from .models.sdwan_network_configuration_type import SdwanNetworkConfigurationType
from .models.sdwan_router_node import SdwanRouterNode
from .models.sdwan_template_inputs_type import SdwanTemplateInputsType
from .models.search_search_item import SearchSearchItem
from .models.search_suggest_item import SearchSuggestItem
from .models.search_tag_item import SearchTagItem
from .models.server_config_import import ServerConfigImport
from .models.snmp_trap import SnmpTrap
from .models.snmp_user import SnmpUser
from .models.softwarerepository_authorization import SoftwarerepositoryAuthorization
from .models.softwarerepository_catalog import SoftwarerepositoryCatalog
from .models.softwarerepository_file import SoftwarerepositoryFile
from .models.softwarerepository_file_server import SoftwarerepositoryFileServer
from .models.softwarerepository_import_result import SoftwarerepositoryImportResult
from .models.storage_capacity import StorageCapacity
from .models.storage_host import StorageHost
from .models.storage_host_lun import StorageHostLun
from .models.storage_initiator import StorageInitiator
from .models.storage_local_disk import StorageLocalDisk
from .models.storage_physical_port import StoragePhysicalPort
from .models.storage_protection_group import StorageProtectionGroup
from .models.storage_protection_group_snapshot import StorageProtectionGroupSnapshot
from .models.storage_remote_key_setting import StorageRemoteKeySetting
from .models.storage_replication_blackout import StorageReplicationBlackout
from .models.storage_replication_schedule import StorageReplicationSchedule
from .models.storage_snapshot import StorageSnapshot
from .models.storage_snapshot_schedule import StorageSnapshotSchedule
from .models.storage_span_group import StorageSpanGroup
from .models.storage_virtual_drive_config import StorageVirtualDriveConfig
from .models.storage_volume import StorageVolume
from .models.syslog_local_client_base import SyslogLocalClientBase
from .models.syslog_remote_client_base import SyslogRemoteClientBase
from .models.tam_action import TamAction
from .models.tam_advisory import TamAdvisory
from .models.tam_advisory_count import TamAdvisoryCount
from .models.tam_advisory_info import TamAdvisoryInfo
from .models.tam_advisory_instance import TamAdvisoryInstance
from .models.tam_base_data_source import TamBaseDataSource
from .models.tam_identifiers import TamIdentifiers
from .models.tam_query_entry import TamQueryEntry
from .models.tam_severity import TamSeverity
from .models.task_pure_storage_scoped_inventory import TaskPureStorageScopedInventory
from .models.telemetry_time_series import TelemetryTimeSeries
from .models.terminal_audit_log import TerminalAuditLog
from .models.ucsd_connector_pack import UcsdConnectorPack
from .models.views_view import ViewsView
from .models.vmedia_mapping import VmediaMapping
from .models.vnic_arfs_settings import VnicArfsSettings
from .models.vnic_cdn import VnicCdn
from .models.vnic_completion_queue_settings import VnicCompletionQueueSettings
from .models.vnic_eth_if import VnicEthIf
from .models.vnic_eth_interrupt_settings import VnicEthInterruptSettings
from .models.vnic_eth_rx_queue_settings import VnicEthRxQueueSettings
from .models.vnic_eth_tx_queue_settings import VnicEthTxQueueSettings
from .models.vnic_fc_error_recovery_settings import VnicFcErrorRecoverySettings
from .models.vnic_fc_if import VnicFcIf
from .models.vnic_fc_interrupt_settings import VnicFcInterruptSettings
from .models.vnic_fc_queue_settings import VnicFcQueueSettings
from .models.vnic_flogi_settings import VnicFlogiSettings
from .models.vnic_nvgre_settings import VnicNvgreSettings
from .models.vnic_placement_settings import VnicPlacementSettings
from .models.vnic_plogi_settings import VnicPlogiSettings
from .models.vnic_roce_settings import VnicRoceSettings
from .models.vnic_scsi_queue_settings import VnicScsiQueueSettings
from .models.vnic_tcp_offload_settings import VnicTcpOffloadSettings
from .models.vnic_usnic_settings import VnicUsnicSettings
from .models.vnic_vlan_settings import VnicVlanSettings
from .models.vnic_vmq_settings import VnicVmqSettings
from .models.vnic_vsan_settings import VnicVsanSettings
from .models.vnic_vxlan_settings import VnicVxlanSettings
from .models.workflow_api import WorkflowApi
from .models.workflow_array_item import WorkflowArrayItem
from .models.workflow_base_data_type import WorkflowBaseDataType
from .models.workflow_batch_api_executor import WorkflowBatchApiExecutor
from .models.workflow_build_task_meta import WorkflowBuildTaskMeta
from .models.workflow_build_task_meta_owner import WorkflowBuildTaskMetaOwner
from .models.workflow_catalog import WorkflowCatalog
from .models.workflow_constraints import WorkflowConstraints
from .models.workflow_custom_data_property import WorkflowCustomDataProperty
from .models.workflow_custom_data_type_definition import WorkflowCustomDataTypeDefinition
from .models.workflow_decision_case import WorkflowDecisionCase
from .models.workflow_default_value import WorkflowDefaultValue
from .models.workflow_dynamic_workflow_action_task_list import WorkflowDynamicWorkflowActionTaskList
from .models.workflow_enum_entry import WorkflowEnumEntry
from .models.workflow_expect_prompt import WorkflowExpectPrompt
from .models.workflow_internal_properties import WorkflowInternalProperties
from .models.workflow_message import WorkflowMessage
from .models.workflow_mo_reference_property import WorkflowMoReferenceProperty
from .models.workflow_pending_dynamic_workflow_info import WorkflowPendingDynamicWorkflowInfo
from .models.workflow_primitive_data_property import WorkflowPrimitiveDataProperty
from .models.workflow_properties import WorkflowProperties
from .models.workflow_target_property import WorkflowTargetProperty
from .models.workflow_task_constraints import WorkflowTaskConstraints
from .models.workflow_task_definition import WorkflowTaskDefinition
from .models.workflow_task_info import WorkflowTaskInfo
from .models.workflow_task_meta import WorkflowTaskMeta
from .models.workflow_task_retry_info import WorkflowTaskRetryInfo
from .models.workflow_validation_error import WorkflowValidationError
from .models.workflow_validation_information import WorkflowValidationInformation
from .models.workflow_wait_task_prompt import WorkflowWaitTaskPrompt
from .models.workflow_workflow_definition import WorkflowWorkflowDefinition
from .models.workflow_workflow_info import WorkflowWorkflowInfo
from .models.workflow_workflow_info_properties import WorkflowWorkflowInfoProperties
from .models.workflow_workflow_meta import WorkflowWorkflowMeta
from .models.workflow_workflow_properties import WorkflowWorkflowProperties
from .models.workflow_workflow_task import WorkflowWorkflowTask
from .models.x509_certificate import X509Certificate
from .models.aaa_abstract_audit_record_ref import AaaAbstractAuditRecordRef
from .models.aaa_audit_record import AaaAuditRecord
from .models.aaa_audit_record_local_ref import AaaAuditRecordLocalRef
from .models.aaa_audit_record_ref import AaaAuditRecordRef
from .models.adapter_adapter_config_ref import AdapterAdapterConfigRef
from .models.adapter_config_policy import AdapterConfigPolicy
from .models.adapter_config_policy_ref import AdapterConfigPolicyRef
from .models.adapter_dce_interface_settings_ref import AdapterDceInterfaceSettingsRef
from .models.adapter_deploy_task_ref import AdapterDeployTaskRef
from .models.adapter_eth_settings_ref import AdapterEthSettingsRef
from .models.adapter_ext_eth_interface_ref import AdapterExtEthInterfaceRef
from .models.adapter_fc_settings_ref import AdapterFcSettingsRef
from .models.adapter_host_eth_interface_ref import AdapterHostEthInterfaceRef
from .models.adapter_host_fc_interface_ref import AdapterHostFcInterfaceRef
from .models.adapter_host_iscsi_interface_ref import AdapterHostIscsiInterfaceRef
from .models.adapter_port_channel_settings_ref import AdapterPortChannelSettingsRef
from .models.adapter_unit_ref import AdapterUnitRef
from .models.adapter_validation_task_ref import AdapterValidationTaskRef
from .models.ansibletaskexec_initialize_ansible_playbook_input_ref import AnsibletaskexecInitializeAnsiblePlaybookInputRef
from .models.ansibletaskexec_start_remote_ansible_playbook_ref import AnsibletaskexecStartRemoteAnsiblePlaybookRef
from .models.appliance_api_status_ref import ApplianceApiStatusRef
from .models.appliance_app_status_ref import ApplianceAppStatusRef
from .models.appliance_backup import ApplianceBackup
from .models.appliance_backup_base_ref import ApplianceBackupBaseRef
from .models.appliance_backup_policy import ApplianceBackupPolicy
from .models.appliance_backup_policy_ref import ApplianceBackupPolicyRef
from .models.appliance_backup_ref import ApplianceBackupRef
from .models.appliance_certificate_setting_ref import ApplianceCertificateSettingRef
from .models.appliance_claim_device_task_ref import ApplianceClaimDeviceTaskRef
from .models.appliance_configure_idp_task_ref import ApplianceConfigureIdpTaskRef
from .models.appliance_configure_ldap_task_ref import ApplianceConfigureLdapTaskRef
from .models.appliance_connection_state_verification_task_ref import ApplianceConnectionStateVerificationTaskRef
from .models.appliance_data_export_policy_ref import ApplianceDataExportPolicyRef
from .models.appliance_deploy_dns_task_ref import ApplianceDeployDnsTaskRef
from .models.appliance_deploy_ntp_task_ref import ApplianceDeployNtpTaskRef
from .models.appliance_deploy_trust_store_task_ref import ApplianceDeployTrustStoreTaskRef
from .models.appliance_device_bundle_ref import ApplianceDeviceBundleRef
from .models.appliance_device_claim_ref import ApplianceDeviceClaimRef
from .models.appliance_device_file_ref import ApplianceDeviceFileRef
from .models.appliance_device_state_ref import ApplianceDeviceStateRef
from .models.appliance_device_tier_ref import ApplianceDeviceTierRef
from .models.appliance_device_upgrade_ref import ApplianceDeviceUpgradeRef
from .models.appliance_device_upload_ref import ApplianceDeviceUploadRef
from .models.appliance_diag_setting_ref import ApplianceDiagSettingRef
from .models.appliance_domain_permission_ref import ApplianceDomainPermissionRef
from .models.appliance_endpoint_login_task_ref import ApplianceEndpointLoginTaskRef
from .models.appliance_endpoint_logout_task_ref import ApplianceEndpointLogoutTaskRef
from .models.appliance_file_gateway_ref import ApplianceFileGatewayRef
from .models.appliance_file_system_status_ref import ApplianceFileSystemStatusRef
from .models.appliance_group_status_ref import ApplianceGroupStatusRef
from .models.appliance_image_bundle_ref import ApplianceImageBundleRef
from .models.appliance_key_value_pair_ref import ApplianceKeyValuePairRef
from .models.appliance_manifest_ref import ApplianceManifestRef
from .models.appliance_node_info_ref import ApplianceNodeInfoRef
from .models.appliance_node_status_ref import ApplianceNodeStatusRef
from .models.appliance_proxy_end_point_ref import ApplianceProxyEndPointRef
from .models.appliance_release_note_ref import ApplianceReleaseNoteRef
from .models.appliance_resolve_device_identifier_task_ref import ApplianceResolveDeviceIdentifierTaskRef
from .models.appliance_resolve_device_token_task_ref import ApplianceResolveDeviceTokenTaskRef
from .models.appliance_restore import ApplianceRestore
from .models.appliance_restore_ref import ApplianceRestoreRef
from .models.appliance_setup_info_ref import ApplianceSetupInfoRef
from .models.appliance_signing_key_ref import ApplianceSigningKeyRef
from .models.appliance_status_check_ref import ApplianceStatusCheckRef
from .models.appliance_status_upload_data_ref import ApplianceStatusUploadDataRef
from .models.appliance_status_upload_ref import ApplianceStatusUploadRef
from .models.appliance_system_info_ref import ApplianceSystemInfoRef
from .models.appliance_system_status_ref import ApplianceSystemStatusRef
from .models.appliance_update_certificate_task_ref import ApplianceUpdateCertificateTaskRef
from .models.appliance_upgrade_policy_ref import ApplianceUpgradePolicyRef
from .models.appliance_upgrade_ref import ApplianceUpgradeRef
from .models.appliance_wait_for_upgrade_task_ref import ApplianceWaitForUpgradeTaskRef
from .models.artifactdownload_save_artifacts_ref import ArtifactdownloadSaveArtifactsRef
from .models.asset_address_information_ref import AssetAddressInformationRef
from .models.asset_cluster_member import AssetClusterMember
from .models.asset_cluster_member_ref import AssetClusterMemberRef
from .models.asset_confirm_intersight_assist_connectivity_ref import AssetConfirmIntersightAssistConnectivityRef
from .models.asset_connection_control_message_ref import AssetConnectionControlMessageRef
from .models.asset_contract_information_ref import AssetContractInformationRef
from .models.asset_customer_information_ref import AssetCustomerInformationRef
from .models.asset_device_claim_ref import AssetDeviceClaimRef
from .models.asset_device_configuration_ref import AssetDeviceConfigurationRef
from .models.asset_device_connection_ref import AssetDeviceConnectionRef
from .models.asset_device_connector_manager_ref import AssetDeviceConnectorManagerRef
from .models.asset_device_contract_information_ref import AssetDeviceContractInformationRef
from .models.asset_device_registration import AssetDeviceRegistration
from .models.asset_device_registration_ref import AssetDeviceRegistrationRef
from .models.asset_global_ultimate_ref import AssetGlobalUltimateRef
from .models.asset_managed_device_ref import AssetManagedDeviceRef
from .models.asset_managed_device_status_ref import AssetManagedDeviceStatusRef
from .models.asset_parent_connection_signature_ref import AssetParentConnectionSignatureRef
from .models.asset_product_information_ref import AssetProductInformationRef
from .models.asset_register_managed_device_ref import AssetRegisterManagedDeviceRef
from .models.asset_security_token_ref import AssetSecurityTokenRef
from .models.asset_send_managed_device_details_ref import AssetSendManagedDeviceDetailsRef
from .models.asset_sudi_info_ref import AssetSudiInfoRef
from .models.asset_unregister_managed_device_ref import AssetUnregisterManagedDeviceRef
from .models.asset_wait_for_managed_device_deletion_ref import AssetWaitForManagedDeviceDeletionRef
from .models.asset_wait_for_managed_device_end_point_connection_ref import AssetWaitForManagedDeviceEndPointConnectionRef
from .models.asset_wait_for_managed_device_registration_ref import AssetWaitForManagedDeviceRegistrationRef
from .models.bios_boot_mode import BiosBootMode
from .models.bios_boot_mode_ref import BiosBootModeRef
from .models.bios_deploy_task_ref import BiosDeployTaskRef
from .models.bios_policy import BiosPolicy
from .models.bios_policy_ref import BiosPolicyRef
from .models.bios_unit_ref import BiosUnitRef
from .models.bios_validation_task_ref import BiosValidationTaskRef
from .models.boot_bootloader_ref import BootBootloaderRef
from .models.boot_device_base_ref import BootDeviceBaseRef
from .models.boot_device_boot_mode import BootDeviceBootMode
from .models.boot_device_boot_mode_ref import BootDeviceBootModeRef
from .models.boot_iscsi import BootIscsi
from .models.boot_iscsi_ref import BootIscsiRef
from .models.boot_local_cdd import BootLocalCdd
from .models.boot_local_cdd_ref import BootLocalCddRef
from .models.boot_local_disk import BootLocalDisk
from .models.boot_local_disk_ref import BootLocalDiskRef
from .models.boot_nvme import BootNvme
from .models.boot_nvme_ref import BootNvmeRef
from .models.boot_pch_storage import BootPchStorage
from .models.boot_pch_storage_ref import BootPchStorageRef
from .models.boot_precision_deploy_task_ref import BootPrecisionDeployTaskRef
from .models.boot_precision_policy import BootPrecisionPolicy
from .models.boot_precision_policy_ref import BootPrecisionPolicyRef
from .models.boot_precision_validation_task_ref import BootPrecisionValidationTaskRef
from .models.boot_pxe import BootPxe
from .models.boot_pxe_ref import BootPxeRef
from .models.boot_san import BootSan
from .models.boot_san_ref import BootSanRef
from .models.boot_sd_card import BootSdCard
from .models.boot_sd_card_ref import BootSdCardRef
from .models.boot_uefi_shell import BootUefiShell
from .models.boot_uefi_shell_ref import BootUefiShellRef
from .models.boot_usb import BootUsb
from .models.boot_usb_ref import BootUsbRef
from .models.boot_virtual_media import BootVirtualMedia
from .models.boot_virtual_media_ref import BootVirtualMediaRef
from .models.cep_download_artifacts_ref import CepDownloadArtifactsRef
from .models.cep_initiate_cluster_bringup_ref import CepInitiateClusterBringupRef
from .models.cep_kv_pair_ref import CepKvPairRef
from .models.cep_spark_cluster_ref import CepSparkClusterRef
from .models.cep_verify_cluster_bringup_ref import CepVerifyClusterBringupRef
from .models.cmrf_cm_rf_ref import CmrfCmRfRef
from .models.comm_concrete_credential import CommConcreteCredential
from .models.comm_concrete_credential_ref import CommConcreteCredentialRef
from .models.comm_credential_ref import CommCredentialRef
from .models.comm_ip_v4_interface_ref import CommIpV4InterfaceRef
from .models.comm_ip_v6_interface_ref import CommIpV6InterfaceRef
from .models.comm_vmware_credential import CommVmwareCredential
from .models.comm_vmware_credential_ref import CommVmwareCredentialRef
from .models.compute_blade_ref import ComputeBladeRef
from .models.compute_board_ref import ComputeBoardRef
from .models.compute_ip_address_ref import ComputeIpAddressRef
from .models.compute_locator_led_operation_task_ref import ComputeLocatorLedOperationTaskRef
from .models.compute_one_time_boot_configuration_task_ref import ComputeOneTimeBootConfigurationTaskRef
from .models.compute_operation_result_handler_ref import ComputeOperationResultHandlerRef
from .models.compute_physical_ref import ComputePhysicalRef
from .models.compute_physical_summary import ComputePhysicalSummary
from .models.compute_physical_summary_ref import ComputePhysicalSummaryRef
from .models.compute_rack_unit_ref import ComputeRackUnitRef
from .models.compute_server_config_ref import ComputeServerConfigRef
from .models.compute_server_operation_task_ref import ComputeServerOperationTaskRef
from .models.compute_server_setting import ComputeServerSetting
from .models.compute_server_setting_ref import ComputeServerSettingRef
from .models.cond_alarm_ref import CondAlarmRef
from .models.cond_hcl_status_detail_ref import CondHclStatusDetailRef
from .models.cond_hcl_status_job_ref import CondHclStatusJobRef
from .models.cond_hcl_status_ref import CondHclStatusRef
from .models.connector_auth_message_ref import ConnectorAuthMessageRef
from .models.connector_base_message_ref import ConnectorBaseMessageRef
from .models.connector_close_stream_message_ref import ConnectorCloseStreamMessageRef
from .models.connector_collect_stat_ref import ConnectorCollectStatRef
from .models.connector_command_control_message_ref import ConnectorCommandControlMessageRef
from .models.connector_command_execute_result_ref import ConnectorCommandExecuteResultRef
from .models.connector_command_execute_stream_ref import ConnectorCommandExecuteStreamRef
from .models.connector_command_terminal_stream_ref import ConnectorCommandTerminalStreamRef
from .models.connector_common_inventory_collection_message_ref import ConnectorCommonInventoryCollectionMessageRef
from .models.connector_common_inventory_scoped_collection_ref import ConnectorCommonInventoryScopedCollectionRef
from .models.connector_common_inventory_start_message_ref import ConnectorCommonInventoryStartMessageRef
from .models.connector_common_inventory_trigger_collection_ref import ConnectorCommonInventoryTriggerCollectionRef
from .models.connector_common_inventory_trigger_sync_ref import ConnectorCommonInventoryTriggerSyncRef
from .models.connector_connector_techsupport_collect_ref import ConnectorConnectorTechsupportCollectRef
from .models.connector_control_message_ref import ConnectorControlMessageRef
from .models.connector_data_set_ref import ConnectorDataSetRef
from .models.connector_download_status_ref import ConnectorDownloadStatusRef
from .models.connector_event_channel_control_ref import ConnectorEventChannelControlRef
from .models.connector_event_ref import ConnectorEventRef
from .models.connector_fetch_stream_message_ref import ConnectorFetchStreamMessageRef
from .models.connector_file_checksum_ref import ConnectorFileChecksumRef
from .models.connector_file_download_message_ref import ConnectorFileDownloadMessageRef
from .models.connector_file_info_ref import ConnectorFileInfoRef
from .models.connector_file_message_ref import ConnectorFileMessageRef
from .models.connector_file_server_entry_ref import ConnectorFileServerEntryRef
from .models.connector_file_server_message_ref import ConnectorFileServerMessageRef
from .models.connector_file_upload_message_ref import ConnectorFileUploadMessageRef
from .models.connector_flow_control_ack_ref import ConnectorFlowControlAckRef
from .models.connector_flow_control_message_ref import ConnectorFlowControlMessageRef
from .models.connector_http_request_ref import ConnectorHttpRequestRef
from .models.connector_http_response_ref import ConnectorHttpResponseRef
from .models.connector_internal_event_ref import ConnectorInternalEventRef
from .models.connector_inventory_api_ref import ConnectorInventoryApiRef
from .models.connector_inventory_build_condition_ref import ConnectorInventoryBuildConditionRef
from .models.connector_inventory_build_string_ref import ConnectorInventoryBuildStringRef
from .models.connector_inventory_details_ref import ConnectorInventoryDetailsRef
from .models.connector_inventory_etl_init_ref import ConnectorInventoryEtlInitRef
from .models.connector_inventory_etl_object_ref import ConnectorInventoryEtlObjectRef
from .models.connector_inventory_etl_property_ref import ConnectorInventoryEtlPropertyRef
from .models.connector_inventory_etl_relationship_ref import ConnectorInventoryEtlRelationshipRef
from .models.connector_inventory_extract_ref import ConnectorInventoryExtractRef
from .models.connector_inventory_extract_subtract_ref import ConnectorInventoryExtractSubtractRef
from .models.connector_inventory_extract_sum_ref import ConnectorInventoryExtractSumRef
from .models.connector_inventory_objects_ref import ConnectorInventoryObjectsRef
from .models.connector_inventory_path_extract_ref import ConnectorInventoryPathExtractRef
from .models.connector_inventory_rel_selector_ref import ConnectorInventoryRelSelectorRef
from .models.connector_inventory_transform_bit_shift_ref import ConnectorInventoryTransformBitShiftRef
from .models.connector_inventory_transform_duration_ref import ConnectorInventoryTransformDurationRef
from .models.connector_inventory_transform_ref import ConnectorInventoryTransformRef
from .models.connector_inventory_transform_string_op_ref import ConnectorInventoryTransformStringOpRef
from .models.connector_inventory_transform_time_ref import ConnectorInventoryTransformTimeRef
from .models.connector_inventory_transform_value_map_ref import ConnectorInventoryTransformValueMapRef
from .models.connector_job_async_response_ref import ConnectorJobAsyncResponseRef
from .models.connector_job_message_ref import ConnectorJobMessageRef
from .models.connector_log_file_ref import ConnectorLogFileRef
from .models.connector_log_tailer_config_ref import ConnectorLogTailerConfigRef
from .models.connector_message_to_appliance_ref import ConnectorMessageToApplianceRef
from .models.connector_net_connection_test_ref import ConnectorNetConnectionTestRef
from .models.connector_net_dns_query_ref import ConnectorNetDnsQueryRef
from .models.connector_net_message_ref import ConnectorNetMessageRef
from .models.connector_network_agent_event_ref import ConnectorNetworkAgentEventRef
from .models.connector_network_agent_mo_envelope_ref import ConnectorNetworkAgentMoEnvelopeRef
from .models.connector_network_agent_request_ref import ConnectorNetworkAgentRequestRef
from .models.connector_network_agent_response_ref import ConnectorNetworkAgentResponseRef
from .models.connector_platform_param_base_ref import ConnectorPlatformParamBaseRef
from .models.connector_pty_borg_base_stimulus_ref import ConnectorPtyBorgBaseStimulusRef
from .models.connector_pty_borg_close_all_terminals_ref import ConnectorPtyBorgCloseAllTerminalsRef
from .models.connector_pty_borg_data_message_ref import ConnectorPtyBorgDataMessageRef
from .models.connector_pty_borg_expect_script_request_ref import ConnectorPtyBorgExpectScriptRequestRef
from .models.connector_pty_borg_result_ref import ConnectorPtyBorgResultRef
from .models.connector_pty_borg_script_ref import ConnectorPtyBorgScriptRef
from .models.connector_pty_borg_stimulus_set_ref import ConnectorPtyBorgStimulusSetRef
from .models.connector_pty_borg_terminal_config_ref import ConnectorPtyBorgTerminalConfigRef
from .models.connector_pty_borg_terminal_instance_request_ref import ConnectorPtyBorgTerminalInstanceRequestRef
from .models.connector_pty_borg_terminal_request_ref import ConnectorPtyBorgTerminalRequestRef
from .models.connector_pty_borg_text_fsm_template_config_request_ref import ConnectorPtyBorgTextFsmTemplateConfigRequestRef
from .models.connector_pty_borg_text_fsm_template_ref import ConnectorPtyBorgTextFsmTemplateRef
from .models.connector_record_ref import ConnectorRecordRef
from .models.connector_record_section_ref import ConnectorRecordSectionRef
from .models.connector_sftp_remote_file_info_ref import ConnectorSftpRemoteFileInfoRef
from .models.connector_sftp_remote_file_ref import ConnectorSftpRemoteFileRef
from .models.connector_ssh_command_output_ref import ConnectorSshCommandOutputRef
from .models.connector_ssh_config_ref import ConnectorSshConfigRef
from .models.connector_ssh_message_ref import ConnectorSshMessageRef
from .models.connector_start_stream_from_device_ref import ConnectorStartStreamFromDeviceRef
from .models.connector_start_stream_ref import ConnectorStartStreamRef
from .models.connector_stat_field_ref import ConnectorStatFieldRef
from .models.connector_stat_transformation_ref import ConnectorStatTransformationRef
from .models.connector_stream_acknowledge_ref import ConnectorStreamAcknowledgeRef
from .models.connector_stream_input_ref import ConnectorStreamInputRef
from .models.connector_stream_keepalive_ref import ConnectorStreamKeepaliveRef
from .models.connector_stream_message_ref import ConnectorStreamMessageRef
from .models.connector_stream_ref import ConnectorStreamRef
from .models.connector_techsupport_message_ref import ConnectorTechsupportMessageRef
from .models.connector_upgrade_request_ref import ConnectorUpgradeRequestRef
from .models.connector_url_ref import ConnectorUrlRef
from .models.connector_xml_api_message_ref import ConnectorXmlApiMessageRef
from .models.connectorpack_artifact_ref import ConnectorpackArtifactRef
from .models.connectorpack_connector_pack_meta_ref import ConnectorpackConnectorPackMetaRef
from .models.connectorpack_connector_pack_ref import ConnectorpackConnectorPackRef
from .models.connectorpack_connector_pack_summary_ref import ConnectorpackConnectorPackSummaryRef
from .models.connectorpack_dependent_ref import ConnectorpackDependentRef
from .models.connectorpack_install_connector_packs_ref import ConnectorpackInstallConnectorPacksRef
from .models.connectorpack_upgrade_ref import ConnectorpackUpgradeRef
from .models.connectorpack_wait_for_connector_pack_install_ref import ConnectorpackWaitForConnectorPackInstallRef
from .models.content_base_parameter_ref import ContentBaseParameterRef
from .models.content_complex_type_ref import ContentComplexTypeRef
from .models.content_grammar_ref import ContentGrammarRef
from .models.content_parameter import ContentParameter
from .models.content_parameter_ref import ContentParameterRef
from .models.content_text_parameter import ContentTextParameter
from .models.content_text_parameter_ref import ContentTextParameterRef
from .models.crypt_account_key_ref import CryptAccountKeyRef
from .models.crypt_decrypt_ref import CryptDecryptRef
from .models.crypt_encrypt_ref import CryptEncryptRef
from .models.crypt_encryption_key_ref import CryptEncryptionKeyRef
from .models.crypt_encryption_token_ref import CryptEncryptionTokenRef
from .models.deviceconnector_deploy_task_ref import DeviceconnectorDeployTaskRef
from .models.deviceconnector_device_operation_ref import DeviceconnectorDeviceOperationRef
from .models.deviceconnector_device_operation_state_ref import DeviceconnectorDeviceOperationStateRef
from .models.deviceconnector_operation_configuration_ref import DeviceconnectorOperationConfigurationRef
from .models.deviceconnector_operation_ref import DeviceconnectorOperationRef
from .models.deviceconnector_policy import DeviceconnectorPolicy
from .models.deviceconnector_policy_ref import DeviceconnectorPolicyRef
from .models.deviceconnector_validation_task_ref import DeviceconnectorValidationTaskRef
from .models.deviceproxy_http_request_ref import DeviceproxyHttpRequestRef
from .models.devops_abstract_trigger_details_ref import DevopsAbstractTriggerDetailsRef
from .models.devops_memory_profile_ref import DevopsMemoryProfileRef
from .models.devops_notification_trigger_ref import DevopsNotificationTriggerRef
from .models.devops_reconciliation_trigger_ref import DevopsReconciliationTriggerRef
from .models.devops_trigger_ref import DevopsTriggerRef
from .models.devops_view_trigger_ref import DevopsViewTriggerRef
from .models.epansible_runner_ref import EpansibleRunnerRef
from .models.equipment_abstract_device_ref import EquipmentAbstractDeviceRef
from .models.equipment_base import EquipmentBase
from .models.equipment_base_ref import EquipmentBaseRef
from .models.equipment_chassis_ref import EquipmentChassisRef
from .models.equipment_device_summary import EquipmentDeviceSummary
from .models.equipment_device_summary_ref import EquipmentDeviceSummaryRef
from .models.equipment_fan_module_ref import EquipmentFanModuleRef
from .models.equipment_fan_ref import EquipmentFanRef
from .models.equipment_fex_ref import EquipmentFexRef
from .models.equipment_io_card_ref import EquipmentIoCardRef
from .models.equipment_io_expander_ref import EquipmentIoExpanderRef
from .models.equipment_locator_led import EquipmentLocatorLed
from .models.equipment_locator_led_ref import EquipmentLocatorLedRef
from .models.equipment_psu_ref import EquipmentPsuRef
from .models.equipment_rack_enclosure_ref import EquipmentRackEnclosureRef
from .models.equipment_rack_enclosure_slot_ref import EquipmentRackEnclosureSlotRef
from .models.equipment_shared_io_module_ref import EquipmentSharedIoModuleRef
from .models.equipment_switch_card_ref import EquipmentSwitchCardRef
from .models.equipment_system_io_controller_ref import EquipmentSystemIoControllerRef
from .models.equipment_tpm_ref import EquipmentTpmRef
from .models.ether_physical_port_ref import EtherPhysicalPortRef
from .models.externalsite_authorization_ref import ExternalsiteAuthorizationRef
from .models.extsearch_app_config_ref import ExtsearchAppConfigRef
from .models.extsearch_import_ref import ExtsearchImportRef
from .models.fault_instance import FaultInstance
from .models.fault_instance_ref import FaultInstanceRef
from .models.fc_physical_port_ref import FcPhysicalPortRef
from .models.feedback_feedback_data_ref import FeedbackFeedbackDataRef
from .models.feedback_feedback_post_ref import FeedbackFeedbackPostRef
from .models.feedback_feedback_ref import FeedbackFeedbackRef
from .models.feedback_feedback_settings_ref import FeedbackFeedbackSettingsRef
from .models.feedback_history_item_ref import FeedbackHistoryItemRef
from .models.file_invoke_file_download_ref import FileInvokeFileDownloadRef
from .models.firmware_base_distributable import FirmwareBaseDistributable
from .models.firmware_base_distributable_ref import FirmwareBaseDistributableRef
from .models.firmware_cifs_server_ref import FirmwareCifsServerRef
from .models.firmware_direct_download_ref import FirmwareDirectDownloadRef
from .models.firmware_distributable_ref import FirmwareDistributableRef
from .models.firmware_driver_distributable_ref import FirmwareDriverDistributableRef
from .models.firmware_eula_ref import FirmwareEulaRef
from .models.firmware_http_server_ref import FirmwareHttpServerRef
from .models.firmware_network_share_ref import FirmwareNetworkShareRef
from .models.firmware_nfs_server_ref import FirmwareNfsServerRef
from .models.firmware_running_firmware import FirmwareRunningFirmware
from .models.firmware_running_firmware_ref import FirmwareRunningFirmwareRef
from .models.firmware_server_configuration_utility_distributable_ref import FirmwareServerConfigurationUtilityDistributableRef
from .models.firmware_upgrade_ref import FirmwareUpgradeRef
from .models.firmware_upgrade_status_ref import FirmwareUpgradeStatusRef
from .models.firmwareimc_cancel_pending_firmware_upgrade_ref import FirmwareimcCancelPendingFirmwareUpgradeRef
from .models.firmwareimc_check_for_existing_upgrade_ref import FirmwareimcCheckForExistingUpgradeRef
from .models.firmwareimc_firmware_upgrade_result_handler_ref import FirmwareimcFirmwareUpgradeResultHandlerRef
from .models.firmwareimc_huu_firmware_upgrade_ref import FirmwareimcHuuFirmwareUpgradeRef
from .models.firmwareimc_initiate_download_ref import FirmwareimcInitiateDownloadRef
from .models.firmwareimc_wait_for_download_ref import FirmwareimcWaitForDownloadRef
from .models.firmwareimc_wait_for_firmware_upgrade_ref import FirmwareimcWaitForFirmwareUpgradeRef
from .models.forecast_catalog_ref import ForecastCatalogRef
from .models.forecast_definition_ref import ForecastDefinitionRef
from .models.forecast_instance_ref import ForecastInstanceRef
from .models.forecast_model_ref import ForecastModelRef
from .models.graphics_card_ref import GraphicsCardRef
from .models.graphics_controller_ref import GraphicsControllerRef
from .models.hcl_compatibility_info_ref import HclCompatibilityInfoRef
from .models.hcl_compatibility_status_ref import HclCompatibilityStatusRef
from .models.hcl_constraint_ref import HclConstraintRef
from .models.hcl_data_import_log_ref import HclDataImportLogRef
from .models.hcl_driver_image_ref import HclDriverImageRef
from .models.hcl_exempted_catalog_ref import HclExemptedCatalogRef
from .models.hcl_firmware_ref import HclFirmwareRef
from .models.hcl_hardware_compatibility_profile_ref import HclHardwareCompatibilityProfileRef
from .models.hcl_hyperflex_software_compatibility_info_ref import HclHyperflexSoftwareCompatibilityInfoRef
from .models.hcl_note_ref import HclNoteRef
from .models.hcl_operating_system_ref import HclOperatingSystemRef
from .models.hcl_operating_system_vendor_ref import HclOperatingSystemVendorRef
from .models.hcl_product_ref import HclProductRef
from .models.hcl_product_software_ref import HclProductSoftwareRef
from .models.hcl_service_status_ref import HclServiceStatusRef
from .models.hcl_supported_driver_name_ref import HclSupportedDriverNameRef
from .models.hxdpconnector_hx_api_message_ref import HxdpconnectorHxApiMessageRef
from .models.hxdpconnector_hx_inventory_msg_ref import HxdpconnectorHxInventoryMsgRef
from .models.hyperflex_abstract_app_setting_ref import HyperflexAbstractAppSettingRef
from .models.hyperflex_alarm_ref import HyperflexAlarmRef
from .models.hyperflex_app_catalog_ref import HyperflexAppCatalogRef
from .models.hyperflex_app_setting_constraint_ref import HyperflexAppSettingConstraintRef
from .models.hyperflex_auto_support_policy import HyperflexAutoSupportPolicy
from .models.hyperflex_auto_support_policy_ref import HyperflexAutoSupportPolicyRef
from .models.hyperflex_capability_info_ref import HyperflexCapabilityInfoRef
from .models.hyperflex_cluster_auto_claim_ref import HyperflexClusterAutoClaimRef
from .models.hyperflex_cluster_detail_ref import HyperflexClusterDetailRef
from .models.hyperflex_cluster_network_policy import HyperflexClusterNetworkPolicy
from .models.hyperflex_cluster_network_policy_ref import HyperflexClusterNetworkPolicyRef
from .models.hyperflex_cluster_profile_deploy_task_ref import HyperflexClusterProfileDeployTaskRef
from .models.hyperflex_cluster_profile_ref import HyperflexClusterProfileRef
from .models.hyperflex_cluster_profile_state_transition_task_ref import HyperflexClusterProfileStateTransitionTaskRef
from .models.hyperflex_cluster_ref import HyperflexClusterRef
from .models.hyperflex_cluster_storage_policy import HyperflexClusterStoragePolicy
from .models.hyperflex_cluster_storage_policy_ref import HyperflexClusterStoragePolicyRef
from .models.hyperflex_collect_inventory_data_task_ref import HyperflexCollectInventoryDataTaskRef
from .models.hyperflex_config_result import HyperflexConfigResult
from .models.hyperflex_config_result_entry import HyperflexConfigResultEntry
from .models.hyperflex_config_result_entry_ref import HyperflexConfigResultEntryRef
from .models.hyperflex_config_result_ref import HyperflexConfigResultRef
from .models.hyperflex_config_vm_task_ref import HyperflexConfigVmTaskRef
from .models.hyperflex_create_cluster_post_body_ref import HyperflexCreateClusterPostBodyRef
from .models.hyperflex_create_cluster_task_ref import HyperflexCreateClusterTaskRef
from .models.hyperflex_create_cluster_validation_task_ref import HyperflexCreateClusterValidationTaskRef
from .models.hyperflex_credentials_ref import HyperflexCredentialsRef
from .models.hyperflex_ctl_vm_mgmt_ip_ref import HyperflexCtlVmMgmtIpRef
from .models.hyperflex_deploy_hyperflex_controller_vm_ref import HyperflexDeployHyperflexControllerVmRef
from .models.hyperflex_deploy_params_ref import HyperflexDeployParamsRef
from .models.hyperflex_deploy_software_vm_task_ref import HyperflexDeploySoftwareVmTaskRef
from .models.hyperflex_dns_ref import HyperflexDnsRef
from .models.hyperflex_download_artifacts_task_ref import HyperflexDownloadArtifactsTaskRef
from .models.hyperflex_ext_fc_storage_policy import HyperflexExtFcStoragePolicy
from .models.hyperflex_ext_fc_storage_policy_ref import HyperflexExtFcStoragePolicyRef
from .models.hyperflex_ext_iscsi_storage_policy import HyperflexExtIscsiStoragePolicy
from .models.hyperflex_ext_iscsi_storage_policy_ref import HyperflexExtIscsiStoragePolicyRef
from .models.hyperflex_feature_limit_entry import HyperflexFeatureLimitEntry
from .models.hyperflex_feature_limit_entry_ref import HyperflexFeatureLimitEntryRef
from .models.hyperflex_feature_limit_external_ref import HyperflexFeatureLimitExternalRef
from .models.hyperflex_feature_limit_internal_ref import HyperflexFeatureLimitInternalRef
from .models.hyperflex_header_ref import HyperflexHeaderRef
from .models.hyperflex_health_ref import HyperflexHealthRef
from .models.hyperflex_host_ref import HyperflexHostRef
from .models.hyperflex_hx_link_dt_ref import HyperflexHxLinkDtRef
from .models.hyperflex_hx_network_address_dt_ref import HyperflexHxNetworkAddressDtRef
from .models.hyperflex_hx_resiliency_info_dt_ref import HyperflexHxResiliencyInfoDtRef
from .models.hyperflex_hx_uu_id_dt_ref import HyperflexHxUuIdDtRef
from .models.hyperflex_hx_zone_resiliency_info_dt_ref import HyperflexHxZoneResiliencyInfoDtRef
from .models.hyperflex_hxdp_version_ref import HyperflexHxdpVersionRef
from .models.hyperflex_hxvm_ref import HyperflexHxvmRef
from .models.hyperflex_hypervisor_datastore_task_ref import HyperflexHypervisorDatastoreTaskRef
from .models.hyperflex_hypervisor_esx_configuration_task_ref import HyperflexHypervisorEsxConfigurationTaskRef
from .models.hyperflex_hypervisor_networking_task_ref import HyperflexHypervisorNetworkingTaskRef
from .models.hyperflex_hypervisor_software_update_task_ref import HyperflexHypervisorSoftwareUpdateTaskRef
from .models.hyperflex_initiate_post_install_task_ref import HyperflexInitiatePostInstallTaskRef
from .models.hyperflex_installer_image_ref import HyperflexInstallerImageRef
from .models.hyperflex_inventory_data_object_post_body_ref import HyperflexInventoryDataObjectPostBodyRef
from .models.hyperflex_inventory_data_object_ref import HyperflexInventoryDataObjectRef
from .models.hyperflex_ip_addr_range_ref import HyperflexIpAddrRangeRef
from .models.hyperflex_legacy_alarm_ref import HyperflexLegacyAlarmRef
from .models.hyperflex_local_credential_policy import HyperflexLocalCredentialPolicy
from .models.hyperflex_local_credential_policy_ref import HyperflexLocalCredentialPolicyRef
from .models.hyperflex_logical_availability_zone_ref import HyperflexLogicalAvailabilityZoneRef
from .models.hyperflex_mac_addr_prefix_range_ref import HyperflexMacAddrPrefixRangeRef
from .models.hyperflex_managed_object_reference_ref import HyperflexManagedObjectReferenceRef
from .models.hyperflex_named_vlan_ref import HyperflexNamedVlanRef
from .models.hyperflex_named_vsan_ref import HyperflexNamedVsanRef
from .models.hyperflex_network_configuration_ref import HyperflexNetworkConfigurationRef
from .models.hyperflex_node_config_policy import HyperflexNodeConfigPolicy
from .models.hyperflex_node_config_policy_ref import HyperflexNodeConfigPolicyRef
from .models.hyperflex_node_profile import HyperflexNodeProfile
from .models.hyperflex_node_profile_ref import HyperflexNodeProfileRef
from .models.hyperflex_node_ref import HyperflexNodeRef
from .models.hyperflex_ntp_ref import HyperflexNtpRef
from .models.hyperflex_post_install_host_config_ref import HyperflexPostInstallHostConfigRef
from .models.hyperflex_post_install_result_handler_task_ref import HyperflexPostInstallResultHandlerTaskRef
from .models.hyperflex_post_install_storage_controller_vm_config_ref import HyperflexPostInstallStorageControllerVmConfigRef
from .models.hyperflex_pre_configuration_validation_task_ref import HyperflexPreConfigurationValidationTaskRef
from .models.hyperflex_pre_deploy_validation_task_ref import HyperflexPreDeployValidationTaskRef
from .models.hyperflex_prepare_hypervisor_deployment_task_ref import HyperflexPrepareHypervisorDeploymentTaskRef
from .models.hyperflex_prepare_pre_cluster_info_ref import HyperflexPreparePreClusterInfoRef
from .models.hyperflex_profile_pre_deploy_task_ref import HyperflexProfilePreDeployTaskRef
from .models.hyperflex_profile_pre_validate_task_ref import HyperflexProfilePreValidateTaskRef
from .models.hyperflex_proxy_setting_policy import HyperflexProxySettingPolicy
from .models.hyperflex_proxy_setting_policy_ref import HyperflexProxySettingPolicyRef
from .models.hyperflex_result_handler_task_ref import HyperflexResultHandlerTaskRef
from .models.hyperflex_server_configuration_task_ref import HyperflexServerConfigurationTaskRef
from .models.hyperflex_server_configuration_validation_task_ref import HyperflexServerConfigurationValidationTaskRef
from .models.hyperflex_server_firmware_version_entry import HyperflexServerFirmwareVersionEntry
from .models.hyperflex_server_firmware_version_entry_ref import HyperflexServerFirmwareVersionEntryRef
from .models.hyperflex_server_firmware_version_ref import HyperflexServerFirmwareVersionRef
from .models.hyperflex_server_model_entry import HyperflexServerModelEntry
from .models.hyperflex_server_model_entry_ref import HyperflexServerModelEntryRef
from .models.hyperflex_server_model_ref import HyperflexServerModelRef
from .models.hyperflex_software_version_policy import HyperflexSoftwareVersionPolicy
from .models.hyperflex_software_version_policy_ref import HyperflexSoftwareVersionPolicyRef
from .models.hyperflex_st_platform_cluster_healing_info_ref import HyperflexStPlatformClusterHealingInfoRef
from .models.hyperflex_st_platform_cluster_resiliency_info_ref import HyperflexStPlatformClusterResiliencyInfoRef
from .models.hyperflex_summary_ref import HyperflexSummaryRef
from .models.hyperflex_sys_config_policy import HyperflexSysConfigPolicy
from .models.hyperflex_sys_config_policy_ref import HyperflexSysConfigPolicyRef
from .models.hyperflex_ucsm_config_policy import HyperflexUcsmConfigPolicy
from .models.hyperflex_ucsm_config_policy_ref import HyperflexUcsmConfigPolicyRef
from .models.hyperflex_vcenter_config_policy import HyperflexVcenterConfigPolicy
from .models.hyperflex_vcenter_config_policy_ref import HyperflexVcenterConfigPolicyRef
from .models.hyperflex_witness_lock_ref import HyperflexWitnessLockRef
from .models.hyperflex_wwxn_prefix_range_ref import HyperflexWwxnPrefixRangeRef
from .models.i18n_message_param_ref import I18nMessageParamRef
from .models.i18n_message_ref import I18nMessageRef
from .models.iaas_connector_pack_ref import IaasConnectorPackRef
from .models.iaas_device_status_ref import IaasDeviceStatusRef
from .models.iaas_get_connector_packs_from_ucsd_ref import IaasGetConnectorPacksFromUcsdRef
from .models.iaas_license_info_ref import IaasLicenseInfoRef
from .models.iaas_license_keys_info_ref import IaasLicenseKeysInfoRef
from .models.iaas_license_utilization_info_ref import IaasLicenseUtilizationInfoRef
from .models.iaas_most_run_tasks_ref import IaasMostRunTasksRef
from .models.iaas_ucsd_info_ref import IaasUcsdInfoRef
from .models.iaas_ucsd_managed_infra_ref import IaasUcsdManagedInfraRef
from .models.iam_account_permissions_ref import IamAccountPermissionsRef
from .models.iam_account_ref import IamAccountRef
from .models.iam_api_key_ref import IamApiKeyRef
from .models.iam_app_registration_ref import IamAppRegistrationRef
from .models.iam_certificate_ref import IamCertificateRef
from .models.iam_certificate_request_ref import IamCertificateRequestRef
from .models.iam_client_meta_ref import IamClientMetaRef
from .models.iam_domain_group_ref import IamDomainGroupRef
from .models.iam_early_adopter_ref import IamEarlyAdopterRef
from .models.iam_end_point_password_properties_ref import IamEndPointPasswordPropertiesRef
from .models.iam_end_point_privilege_ref import IamEndPointPrivilegeRef
from .models.iam_end_point_role_ref import IamEndPointRoleRef
from .models.iam_end_point_user_deploy_task_ref import IamEndPointUserDeployTaskRef
from .models.iam_end_point_user_policy import IamEndPointUserPolicy
from .models.iam_end_point_user_policy_ref import IamEndPointUserPolicyRef
from .models.iam_end_point_user_ref import IamEndPointUserRef
from .models.iam_end_point_user_role_ref import IamEndPointUserRoleRef
from .models.iam_end_point_user_validation_task_ref import IamEndPointUserValidationTaskRef
from .models.iam_group_permission_to_roles_ref import IamGroupPermissionToRolesRef
from .models.iam_idp_ref import IamIdpRef
from .models.iam_idp_reference_ref import IamIdpReferenceRef
from .models.iam_internal_auth_msg_ref import IamInternalAuthMsgRef
from .models.iam_ldap_base_properties_ref import IamLdapBasePropertiesRef
from .models.iam_ldap_credentials_ref import IamLdapCredentialsRef
from .models.iam_ldap_deploy_task_ref import IamLdapDeployTaskRef
from .models.iam_ldap_dns_parameters_ref import IamLdapDnsParametersRef
from .models.iam_ldap_group_ref import IamLdapGroupRef
from .models.iam_ldap_policy import IamLdapPolicy
from .models.iam_ldap_policy_ref import IamLdapPolicyRef
from .models.iam_ldap_provider_ref import IamLdapProviderRef
from .models.iam_ldap_validation_task_ref import IamLdapValidationTaskRef
from .models.iam_local_user_password_ref import IamLocalUserPasswordRef
from .models.iam_o_auth_session_ref import IamOAuthSessionRef
from .models.iam_o_auth_token_ref import IamOAuthTokenRef
from .models.iam_permission_ref import IamPermissionRef
from .models.iam_permission_reference_ref import IamPermissionReferenceRef
from .models.iam_permission_to_roles_ref import IamPermissionToRolesRef
from .models.iam_private_key_spec_ref import IamPrivateKeySpecRef
from .models.iam_privilege_ref import IamPrivilegeRef
from .models.iam_privilege_set_ref import IamPrivilegeSetRef
from .models.iam_qualifier_ref import IamQualifierRef
from .models.iam_resource_limits_ref import IamResourceLimitsRef
from .models.iam_resource_permission_ref import IamResourcePermissionRef
from .models.iam_resource_roles_ref import IamResourceRolesRef
from .models.iam_role_ref import IamRoleRef
from .models.iam_security_holder_ref import IamSecurityHolderRef
from .models.iam_service_provider_ref import IamServiceProviderRef
from .models.iam_session_limits_ref import IamSessionLimitsRef
from .models.iam_session_ref import IamSessionRef
from .models.iam_sp_console_ref import IamSpConsoleRef
from .models.iam_sp_engine_ref import IamSpEngineRef
from .models.iam_sso_session_attributes_ref import IamSsoSessionAttributesRef
from .models.iam_system_ref import IamSystemRef
from .models.iam_trust_point_ref import IamTrustPointRef
from .models.iam_user_group_ref import IamUserGroupRef
from .models.iam_user_login_time_ref import IamUserLoginTimeRef
from .models.iam_user_preference_ref import IamUserPreferenceRef
from .models.iam_user_ref import IamUserRef
from .models.iam_validate_certificate_task_ref import IamValidateCertificateTaskRef
from .models.imcconnector_delta_inventory_job_message_ref import ImcconnectorDeltaInventoryJobMessageRef
from .models.imcconnector_oem_ucs_update_image_spec_ref import ImcconnectorOemUcsUpdateImageSpecRef
from .models.imcconnector_oem_ucs_update_message_ref import ImcconnectorOemUcsUpdateMessageRef
from .models.imcconnector_sd_card_image_download_message_ref import ImcconnectorSdCardImageDownloadMessageRef
from .models.imcconnector_web_ui_message_ref import ImcconnectorWebUiMessageRef
from .models.infra_side_effect_ref import InfraSideEffectRef
from .models.inventory_base_ref import InventoryBaseRef
from .models.inventory_device_info import InventoryDeviceInfo
from .models.inventory_device_info_ref import InventoryDeviceInfoRef
from .models.inventory_dn_mo_binding_ref import InventoryDnMoBindingRef
from .models.inventory_ep_info_ref import InventoryEpInfoRef
from .models.inventory_generic_inventory import InventoryGenericInventory
from .models.inventory_generic_inventory_holder import InventoryGenericInventoryHolder
from .models.inventory_generic_inventory_holder_ref import InventoryGenericInventoryHolderRef
from .models.inventory_generic_inventory_ref import InventoryGenericInventoryRef
from .models.inventory_inventory_mo_ref import InventoryInventoryMoRef
from .models.inventory_job_info_ref import InventoryJobInfoRef
from .models.inventory_request_ref import InventoryRequestRef
from .models.inventory_scoped_inventory_task_ref import InventoryScopedInventoryTaskRef
from .models.ipmioverlan_deploy_task_ref import IpmioverlanDeployTaskRef
from .models.ipmioverlan_policy import IpmioverlanPolicy
from .models.ipmioverlan_policy_ref import IpmioverlanPolicyRef
from .models.ipmioverlan_validation_task_ref import IpmioverlanValidationTaskRef
from .models.kvm_deploy_task_ref import KvmDeployTaskRef
from .models.kvm_policy import KvmPolicy
from .models.kvm_policy_ref import KvmPolicyRef
from .models.kvm_validation_task_ref import KvmValidationTaskRef
from .models.license_account_license_data_ref import LicenseAccountLicenseDataRef
from .models.license_customer_op_ref import LicenseCustomerOpRef
from .models.license_license_info_ref import LicenseLicenseInfoRef
from .models.license_license_sync_request_ref import LicenseLicenseSyncRequestRef
from .models.license_server_tag_request_ref import LicenseServerTagRequestRef
from .models.license_smartlicense_token_ref import LicenseSmartlicenseTokenRef
from .models.license_sync_response_ref import LicenseSyncResponseRef
from .models.ls_service_profile import LsServiceProfile
from .models.ls_service_profile_ref import LsServiceProfileRef
from .models.management_controller import ManagementController
from .models.management_controller_ref import ManagementControllerRef
from .models.management_entity import ManagementEntity
from .models.management_entity_ref import ManagementEntityRef
from .models.management_interface import ManagementInterface
from .models.management_interface_ref import ManagementInterfaceRef
from .models.mb_app_instance_ref import MbAppInstanceRef
from .models.mb_instance_partition_assignments_ref import MbInstancePartitionAssignmentsRef
from .models.memory_abstract_unit_ref import MemoryAbstractUnitRef
from .models.memory_array_ref import MemoryArrayRef
from .models.memory_persistent_memory_config_result import MemoryPersistentMemoryConfigResult
from .models.memory_persistent_memory_config_result_ref import MemoryPersistentMemoryConfigResultRef
from .models.memory_persistent_memory_configuration import MemoryPersistentMemoryConfiguration
from .models.memory_persistent_memory_configuration_ref import MemoryPersistentMemoryConfigurationRef
from .models.memory_persistent_memory_namespace import MemoryPersistentMemoryNamespace
from .models.memory_persistent_memory_namespace_config_result import MemoryPersistentMemoryNamespaceConfigResult
from .models.memory_persistent_memory_namespace_config_result_ref import MemoryPersistentMemoryNamespaceConfigResultRef
from .models.memory_persistent_memory_namespace_ref import MemoryPersistentMemoryNamespaceRef
from .models.memory_persistent_memory_region import MemoryPersistentMemoryRegion
from .models.memory_persistent_memory_region_ref import MemoryPersistentMemoryRegionRef
from .models.memory_persistent_memory_unit_ref import MemoryPersistentMemoryUnitRef
from .models.memory_unit_ref import MemoryUnitRef
from .models.meta_access_privilege_ref import MetaAccessPrivilegeRef
from .models.meta_definition_ref import MetaDefinitionRef
from .models.meta_prop_definition_ref import MetaPropDefinitionRef
from .models.meta_relationship_definition_ref import MetaRelationshipDefinitionRef
from .models.mo_base_complex_type_ref import MoBaseComplexTypeRef
from .models.mo_base_mo_ref import MoBaseMoRef
from .models.mo_interest_registration_ref import MoInterestRegistrationRef
from .models.mo_mo_ref_ref import MoMoRefRef
from .models.mo_tag_ref import MoTagRef
from .models.mo_version_context_ref import MoVersionContextRef
from .models.network_element_ref import NetworkElementRef
from .models.network_element_summary import NetworkElementSummary
from .models.network_element_summary_ref import NetworkElementSummaryRef
from .models.networkconfig_deploy_task_ref import NetworkconfigDeployTaskRef
from .models.networkconfig_policy import NetworkconfigPolicy
from .models.networkconfig_policy_ref import NetworkconfigPolicyRef
from .models.networkconfig_validation_task_ref import NetworkconfigValidationTaskRef
from .models.niaapi_apic_cco_post import NiaapiApicCcoPost
from .models.niaapi_apic_cco_post_ref import NiaapiApicCcoPostRef
from .models.niaapi_apic_field_notice import NiaapiApicFieldNotice
from .models.niaapi_apic_field_notice_ref import NiaapiApicFieldNoticeRef
from .models.niaapi_apic_hweol import NiaapiApicHweol
from .models.niaapi_apic_hweol_ref import NiaapiApicHweolRef
from .models.niaapi_apic_latest_maintained_release import NiaapiApicLatestMaintainedRelease
from .models.niaapi_apic_latest_maintained_release_ref import NiaapiApicLatestMaintainedReleaseRef
from .models.niaapi_apic_release_recommend import NiaapiApicReleaseRecommend
from .models.niaapi_apic_release_recommend_ref import NiaapiApicReleaseRecommendRef
from .models.niaapi_apic_sweol import NiaapiApicSweol
from .models.niaapi_apic_sweol_ref import NiaapiApicSweolRef
from .models.niaapi_dcnm_cco_post import NiaapiDcnmCcoPost
from .models.niaapi_dcnm_cco_post_ref import NiaapiDcnmCcoPostRef
from .models.niaapi_dcnm_field_notice import NiaapiDcnmFieldNotice
from .models.niaapi_dcnm_field_notice_ref import NiaapiDcnmFieldNoticeRef
from .models.niaapi_dcnm_hweol import NiaapiDcnmHweol
from .models.niaapi_dcnm_hweol_ref import NiaapiDcnmHweolRef
from .models.niaapi_dcnm_latest_maintained_release import NiaapiDcnmLatestMaintainedRelease
from .models.niaapi_dcnm_latest_maintained_release_ref import NiaapiDcnmLatestMaintainedReleaseRef
from .models.niaapi_dcnm_release_recommend import NiaapiDcnmReleaseRecommend
from .models.niaapi_dcnm_release_recommend_ref import NiaapiDcnmReleaseRecommendRef
from .models.niaapi_dcnm_sweol import NiaapiDcnmSweol
from .models.niaapi_dcnm_sweol_ref import NiaapiDcnmSweolRef
from .models.niaapi_detail_ref import NiaapiDetailRef
from .models.niaapi_field_notice_ref import NiaapiFieldNoticeRef
from .models.niaapi_file_downloader_ref import NiaapiFileDownloaderRef
from .models.niaapi_hardware_eol_ref import NiaapiHardwareEolRef
from .models.niaapi_maintained_release_ref import NiaapiMaintainedReleaseRef
from .models.niaapi_new_release_detail_ref import NiaapiNewReleaseDetailRef
from .models.niaapi_new_release_post_ref import NiaapiNewReleasePostRef
from .models.niaapi_nia_metadata_ref import NiaapiNiaMetadataRef
from .models.niaapi_release_recommend_ref import NiaapiReleaseRecommendRef
from .models.niaapi_revision_info_ref import NiaapiRevisionInfoRef
from .models.niaapi_software_eol_ref import NiaapiSoftwareEolRef
from .models.niaapi_software_regex_ref import NiaapiSoftwareRegexRef
from .models.niaapi_version_regex_platform_ref import NiaapiVersionRegexPlatformRef
from .models.niaapi_version_regex_ref import NiaapiVersionRegexRef
from .models.niatechsupport_tech_support_inventory_ref import NiatechsupportTechSupportInventoryRef
from .models.niatelemetry_diskinfo_ref import NiatelemetryDiskinfoRef
from .models.niatelemetry_feature_ref import NiatelemetryFeatureRef
from .models.niatelemetry_nia_inventory_ref import NiatelemetryNiaInventoryRef
from .models.niatelemetry_nia_license_state_ref import NiatelemetryNiaLicenseStateRef
from .models.notifs_condition_ref import NotifsConditionRef
from .models.notifs_mo_subscription_ref import NotifsMoSubscriptionRef
from .models.ntp_deploy_task_ref import NtpDeployTaskRef
from .models.ntp_policy import NtpPolicy
from .models.ntp_policy_ref import NtpPolicyRef
from .models.ntp_validation_task_ref import NtpValidationTaskRef
from .models.oak_analyze_impact_task_ref import OakAnalyzeImpactTaskRef
from .models.oak_config_import_task_ref import OakConfigImportTaskRef
from .models.oak_import_completion_task_ref import OakImportCompletionTaskRef
from .models.oak_import_validation_task_ref import OakImportValidationTaskRef
from .models.oak_take_snapshot_task_ref import OakTakeSnapshotTaskRef
from .models.oauth2_auth_token_ref import Oauth2AuthTokenRef
from .models.onprem_cluster_info_ref import OnpremClusterInfoRef
from .models.onprem_cluster_node_ref import OnpremClusterNodeRef
from .models.onprem_image_package_ref import OnpremImagePackageRef
from .models.onprem_resource_info_ref import OnpremResourceInfoRef
from .models.onprem_schedule_ref import OnpremScheduleRef
from .models.onprem_upgrade_note_ref import OnpremUpgradeNoteRef
from .models.onprem_upgrade_phase_ref import OnpremUpgradePhaseRef
from .models.onprem_upgrade_status_ref import OnpremUpgradeStatusRef
from .models.organization_organization_ref import OrganizationOrganizationRef
from .models.os_answers_ref import OsAnswersRef
from .models.os_base_install_config_ref import OsBaseInstallConfigRef
from .models.os_catalog_ref import OsCatalogRef
from .models.os_configuration_file_ref import OsConfigurationFileRef
from .models.os_distribution_ref import OsDistributionRef
from .models.os_install import OsInstall
from .models.os_install_ref import OsInstallRef
from .models.os_install_template_ref import OsInstallTemplateRef
from .models.os_operating_system_parameters_ref import OsOperatingSystemParametersRef
from .models.os_os_support_ref import OsOsSupportRef
from .models.os_place_holder_ref import OsPlaceHolderRef
from .models.os_populate_configuration_file_ref import OsPopulateConfigurationFileRef
from .models.os_post_install_script_ref import OsPostInstallScriptRef
from .models.os_read_bmc_file_ref import OsReadBmcFileRef
from .models.os_template_file_ref import OsTemplateFileRef
from .models.os_windows_parameters import OsWindowsParameters
from .models.os_windows_parameters_ref import OsWindowsParametersRef
from .models.packagemanagement_connector_deploy_policy_ref import PackagemanagementConnectorDeployPolicyRef
from .models.packagemanagement_connector_image_ref import PackagemanagementConnectorImageRef
from .models.packagemanagement_connector_install_ref import PackagemanagementConnectorInstallRef
from .models.packagemanagement_connector_install_status_ref import PackagemanagementConnectorInstallStatusRef
from .models.packagemanagement_minimum_connector_version_ref import PackagemanagementMinimumConnectorVersionRef
from .models.pci_coprocessor_card_ref import PciCoprocessorCardRef
from .models.pci_device_ref import PciDeviceRef
from .models.pci_link_ref import PciLinkRef
from .models.pci_switch_ref import PciSwitchRef
from .models.pkix_distinguished_name_ref import PkixDistinguishedNameRef
from .models.pkix_ecdsa_key_spec import PkixEcdsaKeySpec
from .models.pkix_ecdsa_key_spec_ref import PkixEcdsaKeySpecRef
from .models.pkix_eddsa_key_spec import PkixEddsaKeySpec
from .models.pkix_eddsa_key_spec_ref import PkixEddsaKeySpecRef
from .models.pkix_key_generation_spec_ref import PkixKeyGenerationSpecRef
from .models.pkix_rsa_algorithm import PkixRsaAlgorithm
from .models.pkix_rsa_algorithm_ref import PkixRsaAlgorithmRef
from .models.pkix_subject_alternate_name_ref import PkixSubjectAlternateNameRef
from .models.policy_abstract_config_change_detail_ref import PolicyAbstractConfigChangeDetailRef
from .models.policy_abstract_config_profile import PolicyAbstractConfigProfile
from .models.policy_abstract_config_profile_ref import PolicyAbstractConfigProfileRef
from .models.policy_abstract_config_result_entry_ref import PolicyAbstractConfigResultEntryRef
from .models.policy_abstract_config_result_ref import PolicyAbstractConfigResultRef
from .models.policy_abstract_policy_ref import PolicyAbstractPolicyRef
from .models.policy_abstract_profile_ref import PolicyAbstractProfileRef
from .models.policy_analyze_impact_task_ref import PolicyAnalyzeImpactTaskRef
from .models.policy_config_change_detail_type_ref import PolicyConfigChangeDetailTypeRef
from .models.policy_config_change_ref import PolicyConfigChangeRef
from .models.policy_config_context_ref import PolicyConfigContextRef
from .models.policy_config_import_task_ref import PolicyConfigImportTaskRef
from .models.policy_config_result_context_ref import PolicyConfigResultContextRef
from .models.policy_import_completion_task_ref import PolicyImportCompletionTaskRef
from .models.policy_import_validation_task_ref import PolicyImportValidationTaskRef
from .models.policy_take_snapshot_task_ref import PolicyTakeSnapshotTaskRef
from .models.policyinventory_abstract_device_info_ref import PolicyinventoryAbstractDeviceInfoRef
from .models.policyinventory_job_info_ref import PolicyinventoryJobInfoRef
from .models.port_group import PortGroup
from .models.port_group_ref import PortGroupRef
from .models.port_physical import PortPhysical
from .models.port_physical_ref import PortPhysicalRef
from .models.port_sub_group import PortSubGroup
from .models.port_sub_group_ref import PortSubGroupRef
from .models.processor_unit_ref import ProcessorUnitRef
from .models.pureconnector_inventory_request_message_ref import PureconnectorInventoryRequestMessageRef
from .models.recovery_abstract_backup_config import RecoveryAbstractBackupConfig
from .models.recovery_abstract_backup_config_ref import RecoveryAbstractBackupConfigRef
from .models.recovery_abstract_backup_info_ref import RecoveryAbstractBackupInfoRef
from .models.recovery_abstract_restore_status_ref import RecoveryAbstractRestoreStatusRef
from .models.recovery_backup_config_policy_ref import RecoveryBackupConfigPolicyRef
from .models.recovery_backup_profile_ref import RecoveryBackupProfileRef
from .models.recovery_backup_schedule_ref import RecoveryBackupScheduleRef
from .models.recovery_config_params_ref import RecoveryConfigParamsRef
from .models.recovery_config_result import RecoveryConfigResult
from .models.recovery_config_result_entry import RecoveryConfigResultEntry
from .models.recovery_config_result_entry_ref import RecoveryConfigResultEntryRef
from .models.recovery_config_result_ref import RecoveryConfigResultRef
from .models.recovery_on_demand_backup_ref import RecoveryOnDemandBackupRef
from .models.recovery_restore_ref import RecoveryRestoreRef
from .models.recovery_schedule_config_policy import RecoveryScheduleConfigPolicy
from .models.recovery_schedule_config_policy_ref import RecoveryScheduleConfigPolicyRef
from .models.reporting_report_action_ref import ReportingReportActionRef
from .models.reporting_report_config_data_source_ref import ReportingReportConfigDataSourceRef
from .models.reporting_report_config_data_source_url_ref import ReportingReportConfigDataSourceUrlRef
from .models.reporting_report_config_ref import ReportingReportConfigRef
from .models.reporting_report_instance_ref import ReportingReportInstanceRef
from .models.reporting_report_param_pair_ref import ReportingReportParamPairRef
from .models.reporting_reportlet_ref import ReportingReportletRef
from .models.reporting_user_basic_data_ref import ReportingUserBasicDataRef
from .models.resource_group_member_ref import ResourceGroupMemberRef
from .models.resource_group_ref import ResourceGroupRef
from .models.resource_license_resource_count_ref import ResourceLicenseResourceCountRef
from .models.resource_membership_holder_ref import ResourceMembershipHolderRef
from .models.resource_membership_ref import ResourceMembershipRef
from .models.resource_per_type_combined_selector_ref import ResourcePerTypeCombinedSelectorRef
from .models.resource_selector_ref import ResourceSelectorRef
from .models.sdcard_deploy_task_ref import SdcardDeployTaskRef
from .models.sdcard_diagnostics import SdcardDiagnostics
from .models.sdcard_diagnostics_ref import SdcardDiagnosticsRef
from .models.sdcard_drivers import SdcardDrivers
from .models.sdcard_drivers_ref import SdcardDriversRef
from .models.sdcard_host_upgrade_utility import SdcardHostUpgradeUtility
from .models.sdcard_host_upgrade_utility_ref import SdcardHostUpgradeUtilityRef
from .models.sdcard_operating_system import SdcardOperatingSystem
from .models.sdcard_operating_system_ref import SdcardOperatingSystemRef
from .models.sdcard_partition_ref import SdcardPartitionRef
from .models.sdcard_policy import SdcardPolicy
from .models.sdcard_policy_ref import SdcardPolicyRef
from .models.sdcard_server_configuration_utility import SdcardServerConfigurationUtility
from .models.sdcard_server_configuration_utility_ref import SdcardServerConfigurationUtilityRef
from .models.sdcard_user_partition import SdcardUserPartition
from .models.sdcard_user_partition_ref import SdcardUserPartitionRef
from .models.sdcard_validation_task_ref import SdcardValidationTaskRef
from .models.sdcard_virtual_drive_ref import SdcardVirtualDriveRef
from .models.sdwan_add_vedge_device_to_template_ref import SdwanAddVedgeDeviceToTemplateRef
from .models.sdwan_confirm_vedge_deployment_ref import SdwanConfirmVedgeDeploymentRef
from .models.sdwan_confirm_vmanage_configuration_ref import SdwanConfirmVmanageConfigurationRef
from .models.sdwan_get_vedge_bootstrap_configuration_ref import SdwanGetVedgeBootstrapConfigurationRef
from .models.sdwan_network_configuration_type_ref import SdwanNetworkConfigurationTypeRef
from .models.sdwan_profile_ref import SdwanProfileRef
from .models.sdwan_resolve_vedge_router_nodes_ref import SdwanResolveVedgeRouterNodesRef
from .models.sdwan_router_node_ref import SdwanRouterNodeRef
from .models.sdwan_router_policy import SdwanRouterPolicy
from .models.sdwan_router_policy_ref import SdwanRouterPolicyRef
from .models.sdwan_template_inputs_type_ref import SdwanTemplateInputsTypeRef
from .models.sdwan_vmanage_account_policy import SdwanVmanageAccountPolicy
from .models.sdwan_vmanage_account_policy_ref import SdwanVmanageAccountPolicyRef
from .models.search_search_item_ref import SearchSearchItemRef
from .models.search_suggest_item_ref import SearchSuggestItemRef
from .models.search_tag_item_ref import SearchTagItemRef
from .models.security_unit_ref import SecurityUnitRef
from .models.server_config_change_detail import ServerConfigChangeDetail
from .models.server_config_change_detail_ref import ServerConfigChangeDetailRef
from .models.server_config_import_ref import ServerConfigImportRef
from .models.server_config_result import ServerConfigResult
from .models.server_config_result_entry import ServerConfigResultEntry
from .models.server_config_result_entry_ref import ServerConfigResultEntryRef
from .models.server_config_result_ref import ServerConfigResultRef
from .models.server_profile_apply_task_ref import ServerProfileApplyTaskRef
from .models.server_profile_ref import ServerProfileRef
from .models.server_result_handler_task_ref import ServerResultHandlerTaskRef
from .models.smtp_deploy_task_ref import SmtpDeployTaskRef
from .models.smtp_policy import SmtpPolicy
from .models.smtp_policy_ref import SmtpPolicyRef
from .models.smtp_validation_task_ref import SmtpValidationTaskRef
from .models.snmp_deploy_task_ref import SnmpDeployTaskRef
from .models.snmp_policy import SnmpPolicy
from .models.snmp_policy_ref import SnmpPolicyRef
from .models.snmp_trap_ref import SnmpTrapRef
from .models.snmp_user_ref import SnmpUserRef
from .models.snmp_validation_task_ref import SnmpValidationTaskRef
from .models.software_hcl_meta_ref import SoftwareHclMetaRef
from .models.software_hyperflex_distributable_ref import SoftwareHyperflexDistributableRef
from .models.software_solution_distributable_ref import SoftwareSolutionDistributableRef
from .models.softwarerepository_authorization_ref import SoftwarerepositoryAuthorizationRef
from .models.softwarerepository_catalog_ref import SoftwarerepositoryCatalogRef
from .models.softwarerepository_cifs_server import SoftwarerepositoryCifsServer
from .models.softwarerepository_cifs_server_ref import SoftwarerepositoryCifsServerRef
from .models.softwarerepository_download_result_handler_ref import SoftwarerepositoryDownloadResultHandlerRef
from .models.softwarerepository_download_spec_ref import SoftwarerepositoryDownloadSpecRef
from .models.softwarerepository_file_ref import SoftwarerepositoryFileRef
from .models.softwarerepository_file_server_ref import SoftwarerepositoryFileServerRef
from .models.softwarerepository_http_server import SoftwarerepositoryHttpServer
from .models.softwarerepository_http_server_ref import SoftwarerepositoryHttpServerRef
from .models.softwarerepository_import_result_ref import SoftwarerepositoryImportResultRef
from .models.softwarerepository_initiate_download_ref import SoftwarerepositoryInitiateDownloadRef
from .models.softwarerepository_local_machine import SoftwarerepositoryLocalMachine
from .models.softwarerepository_local_machine_ref import SoftwarerepositoryLocalMachineRef
from .models.softwarerepository_nfs_server import SoftwarerepositoryNfsServer
from .models.softwarerepository_nfs_server_ref import SoftwarerepositoryNfsServerRef
from .models.softwarerepository_operating_system_file import SoftwarerepositoryOperatingSystemFile
from .models.softwarerepository_operating_system_file_ref import SoftwarerepositoryOperatingSystemFileRef
from .models.softwarerepository_prepare_uploader_ref import SoftwarerepositoryPrepareUploaderRef
from .models.softwarerepository_usage_summary_ref import SoftwarerepositoryUsageSummaryRef
from .models.softwarerepository_wait_for_download_ref import SoftwarerepositoryWaitForDownloadRef
from .models.sol_deploy_task_ref import SolDeployTaskRef
from .models.sol_policy import SolPolicy
from .models.sol_policy_ref import SolPolicyRef
from .models.sol_validation_task_ref import SolValidationTaskRef
from .models.ssh_deploy_task_ref import SshDeployTaskRef
from .models.ssh_policy import SshPolicy
from .models.ssh_policy_ref import SshPolicyRef
from .models.ssh_validation_task_ref import SshValidationTaskRef
from .models.storage_analyze_impact_task_ref import StorageAnalyzeImpactTaskRef
from .models.storage_array_controller_ref import StorageArrayControllerRef
from .models.storage_array_disk_ref import StorageArrayDiskRef
from .models.storage_capacity_ref import StorageCapacityRef
from .models.storage_config_import_task_ref import StorageConfigImportTaskRef
from .models.storage_controller_ref import StorageControllerRef
from .models.storage_deploy_task_ref import StorageDeployTaskRef
from .models.storage_disk_group_policy import StorageDiskGroupPolicy
from .models.storage_disk_group_policy_ref import StorageDiskGroupPolicyRef
from .models.storage_disk_utilization import StorageDiskUtilization
from .models.storage_disk_utilization_ref import StorageDiskUtilizationRef
from .models.storage_enclosure_disk_ref import StorageEnclosureDiskRef
from .models.storage_enclosure_disk_slot_ep import StorageEnclosureDiskSlotEp
from .models.storage_enclosure_disk_slot_ep_ref import StorageEnclosureDiskSlotEpRef
from .models.storage_enclosure_ref import StorageEnclosureRef
from .models.storage_flex_flash_controller_props_ref import StorageFlexFlashControllerPropsRef
from .models.storage_flex_flash_controller_ref import StorageFlexFlashControllerRef
from .models.storage_flex_flash_physical_drive_ref import StorageFlexFlashPhysicalDriveRef
from .models.storage_flex_flash_virtual_drive_ref import StorageFlexFlashVirtualDriveRef
from .models.storage_flex_util_controller import StorageFlexUtilController
from .models.storage_flex_util_controller_ref import StorageFlexUtilControllerRef
from .models.storage_flex_util_physical_drive_ref import StorageFlexUtilPhysicalDriveRef
from .models.storage_flex_util_virtual_drive import StorageFlexUtilVirtualDrive
from .models.storage_flex_util_virtual_drive_ref import StorageFlexUtilVirtualDriveRef
from .models.storage_generic_array_ref import StorageGenericArrayRef
from .models.storage_host_lun_ref import StorageHostLunRef
from .models.storage_host_ref import StorageHostRef
from .models.storage_host_utilization_ref import StorageHostUtilizationRef
from .models.storage_import_completion_task_ref import StorageImportCompletionTaskRef
from .models.storage_import_validation_task_ref import StorageImportValidationTaskRef
from .models.storage_initiator_ref import StorageInitiatorRef
from .models.storage_local_disk_ref import StorageLocalDiskRef
from .models.storage_physical_disk_extension_ref import StoragePhysicalDiskExtensionRef
from .models.storage_physical_disk_ref import StoragePhysicalDiskRef
from .models.storage_physical_disk_usage import StoragePhysicalDiskUsage
from .models.storage_physical_disk_usage_ref import StoragePhysicalDiskUsageRef
from .models.storage_physical_port_ref import StoragePhysicalPortRef
from .models.storage_protection_group_ref import StorageProtectionGroupRef
from .models.storage_protection_group_snapshot_ref import StorageProtectionGroupSnapshotRef
from .models.storage_pure_array_ref import StoragePureArrayRef
from .models.storage_pure_controller_ref import StoragePureControllerRef
from .models.storage_pure_disk_ref import StoragePureDiskRef
from .models.storage_pure_host import StoragePureHost
from .models.storage_pure_host_lun import StoragePureHostLun
from .models.storage_pure_host_lun_ref import StoragePureHostLunRef
from .models.storage_pure_host_ref import StoragePureHostRef
from .models.storage_pure_port import StoragePurePort
from .models.storage_pure_port_ref import StoragePurePortRef
from .models.storage_pure_protection_group import StoragePureProtectionGroup
from .models.storage_pure_protection_group_ref import StoragePureProtectionGroupRef
from .models.storage_pure_protection_group_snapshot import StoragePureProtectionGroupSnapshot
from .models.storage_pure_protection_group_snapshot_ref import StoragePureProtectionGroupSnapshotRef
from .models.storage_pure_replication_schedule import StoragePureReplicationSchedule
from .models.storage_pure_replication_schedule_ref import StoragePureReplicationScheduleRef
from .models.storage_pure_snapshot_schedule import StoragePureSnapshotSchedule
from .models.storage_pure_snapshot_schedule_ref import StoragePureSnapshotScheduleRef
from .models.storage_pure_volume import StoragePureVolume
from .models.storage_pure_volume_ref import StoragePureVolumeRef
from .models.storage_pure_volume_snapshot import StoragePureVolumeSnapshot
from .models.storage_pure_volume_snapshot_ref import StoragePureVolumeSnapshotRef
from .models.storage_remote_key_setting_ref import StorageRemoteKeySettingRef
from .models.storage_replication_blackout_ref import StorageReplicationBlackoutRef
from .models.storage_replication_schedule_ref import StorageReplicationScheduleRef
from .models.storage_sas_expander_ref import StorageSasExpanderRef
from .models.storage_sas_port import StorageSasPort
from .models.storage_sas_port_ref import StorageSasPortRef
from .models.storage_snapshot_ref import StorageSnapshotRef
from .models.storage_snapshot_schedule_ref import StorageSnapshotScheduleRef
from .models.storage_span_group_ref import StorageSpanGroupRef
from .models.storage_storage_array_utilization import StorageStorageArrayUtilization
from .models.storage_storage_array_utilization_ref import StorageStorageArrayUtilizationRef
from .models.storage_storage_policy import StorageStoragePolicy
from .models.storage_storage_policy_ref import StorageStoragePolicyRef
from .models.storage_storage_utilization import StorageStorageUtilization
from .models.storage_storage_utilization_ref import StorageStorageUtilizationRef
from .models.storage_take_snapshot_task_ref import StorageTakeSnapshotTaskRef
from .models.storage_validation_task_ref import StorageValidationTaskRef
from .models.storage_vd_member_ep import StorageVdMemberEp
from .models.storage_vd_member_ep_ref import StorageVdMemberEpRef
from .models.storage_virtual_drive_config_ref import StorageVirtualDriveConfigRef
from .models.storage_virtual_drive_extension import StorageVirtualDriveExtension
from .models.storage_virtual_drive_extension_ref import StorageVirtualDriveExtensionRef
from .models.storage_virtual_drive_ref import StorageVirtualDriveRef
from .models.storage_volume_ref import StorageVolumeRef
from .models.storage_volume_utilization_ref import StorageVolumeUtilizationRef
from .models.syslog_deploy_task_ref import SyslogDeployTaskRef
from .models.syslog_local_client_base_ref import SyslogLocalClientBaseRef
from .models.syslog_local_file_logging_client import SyslogLocalFileLoggingClient
from .models.syslog_local_file_logging_client_ref import SyslogLocalFileLoggingClientRef
from .models.syslog_policy import SyslogPolicy
from .models.syslog_policy_ref import SyslogPolicyRef
from .models.syslog_remote_client_base_ref import SyslogRemoteClientBaseRef
from .models.syslog_remote_logging_client import SyslogRemoteLoggingClient
from .models.syslog_remote_logging_client_ref import SyslogRemoteLoggingClientRef
from .models.syslog_validation_task_ref import SyslogValidationTaskRef
from .models.tam_action_ref import TamActionRef
from .models.tam_advisory_count_ref import TamAdvisoryCountRef
from .models.tam_advisory_info_ref import TamAdvisoryInfoRef
from .models.tam_advisory_instance_ref import TamAdvisoryInstanceRef
from .models.tam_advisory_ref import TamAdvisoryRef
from .models.tam_api_data_source import TamApiDataSource
from .models.tam_api_data_source_ref import TamApiDataSourceRef
from .models.tam_base_data_source_ref import TamBaseDataSourceRef
from .models.tam_deprecated_advisory_ref import TamDeprecatedAdvisoryRef
from .models.tam_identifiers_ref import TamIdentifiersRef
from .models.tam_psirt_severity import TamPsirtSeverity
from .models.tam_psirt_severity_ref import TamPsirtSeverityRef
from .models.tam_query_entry_ref import TamQueryEntryRef
from .models.tam_security_advisory import TamSecurityAdvisory
from .models.tam_security_advisory_ref import TamSecurityAdvisoryRef
from .models.tam_severity_ref import TamSeverityRef
from .models.tam_text_fsm_template_data_source import TamTextFsmTemplateDataSource
from .models.tam_text_fsm_template_data_source_ref import TamTextFsmTemplateDataSourceRef
from .models.task_pure_storage_scoped_inventory_ref import TaskPureStorageScopedInventoryRef
from .models.task_schedule_ref import TaskScheduleRef
from .models.techsupportmanagement_download_ref import TechsupportmanagementDownloadRef
from .models.techsupportmanagement_end_point_ref import TechsupportmanagementEndPointRef
from .models.techsupportmanagement_nia_param_ref import TechsupportmanagementNiaParamRef
from .models.techsupportmanagement_tech_support_bundle_ref import TechsupportmanagementTechSupportBundleRef
from .models.techsupportmanagement_tech_support_status_ref import TechsupportmanagementTechSupportStatusRef
from .models.telemetry_expect_script_ref import TelemetryExpectScriptRef
from .models.telemetry_initiate_data_collection_ref import TelemetryInitiateDataCollectionRef
from .models.telemetry_stat_collection_policy_ref import TelemetryStatCollectionPolicyRef
from .models.telemetry_stat_collection_ref import TelemetryStatCollectionRef
from .models.telemetry_stat_license_ref import TelemetryStatLicenseRef
from .models.telemetry_text_fsm_collection_status_ref import TelemetryTextFsmCollectionStatusRef
from .models.telemetry_text_fsm_collector_ref import TelemetryTextFsmCollectorRef
from .models.telemetry_text_fsm_data_source_ref import TelemetryTextFsmDataSourceRef
from .models.telemetry_text_fsm_template_ref import TelemetryTextFsmTemplateRef
from .models.telemetry_time_series_ref import TelemetryTimeSeriesRef
from .models.telemetry_wait_for_data_collection_ref import TelemetryWaitForDataCollectionRef
from .models.terminal_audit_log_ref import TerminalAuditLogRef
from .models.top_system import TopSystem
from .models.top_system_ref import TopSystemRef
from .models.ucsd_backup_info import UcsdBackupInfo
from .models.ucsd_backup_info_ref import UcsdBackupInfoRef
from .models.ucsd_connector_pack_ref import UcsdConnectorPackRef
from .models.ucsd_initiate_database_restore_ref import UcsdInitiateDatabaseRestoreRef
from .models.ucsd_restore_handler_ref import UcsdRestoreHandlerRef
from .models.ucsd_ucsd_restore_parameters import UcsdUcsdRestoreParameters
from .models.ucsd_ucsd_restore_parameters_ref import UcsdUcsdRestoreParametersRef
from .models.ucsd_validate_restore_inputs_ref import UcsdValidateRestoreInputsRef
from .models.ucsd_wait_for_database_restore_completion_ref import UcsdWaitForDatabaseRestoreCompletionRef
from .models.ucsdconnector_backup_policy_config_ref import UcsdconnectorBackupPolicyConfigRef
from .models.ucsdconnector_connector_pack_dependents_ref import UcsdconnectorConnectorPackDependentsRef
from .models.ucsdconnector_connector_pack_download_meta_ref import UcsdconnectorConnectorPackDownloadMetaRef
from .models.ucsdconnector_connector_pack_info_ref import UcsdconnectorConnectorPackInfoRef
from .models.ucsdconnector_field_query_ref import UcsdconnectorFieldQueryRef
from .models.ucsdconnector_inventory_message_ref import UcsdconnectorInventoryMessageRef
from .models.ucsdconnector_rest_client_message_ref import UcsdconnectorRestClientMessageRef
from .models.ucsdconnector_restore_backup_message_ref import UcsdconnectorRestoreBackupMessageRef
from .models.ucsdconnector_sql_query_ref import UcsdconnectorSqlQueryRef
from .models.ucsdconnector_telemetry_message_ref import UcsdconnectorTelemetryMessageRef
from .models.ucsdconnector_telemetry_mo_ref import UcsdconnectorTelemetryMoRef
from .models.views_view_ref import ViewsViewRef
from .models.vmedia_deploy_task_ref import VmediaDeployTaskRef
from .models.vmedia_mapping_ref import VmediaMappingRef
from .models.vmedia_policy import VmediaPolicy
from .models.vmedia_policy_ref import VmediaPolicyRef
from .models.vmedia_validation_task_ref import VmediaValidationTaskRef
from .models.vnic_arfs_settings_ref import VnicArfsSettingsRef
from .models.vnic_cdn_ref import VnicCdnRef
from .models.vnic_completion_queue_settings_ref import VnicCompletionQueueSettingsRef
from .models.vnic_eth_adapter_policy import VnicEthAdapterPolicy
from .models.vnic_eth_adapter_policy_ref import VnicEthAdapterPolicyRef
from .models.vnic_eth_if_ref import VnicEthIfRef
from .models.vnic_eth_interrupt_settings_ref import VnicEthInterruptSettingsRef
from .models.vnic_eth_network_policy import VnicEthNetworkPolicy
from .models.vnic_eth_network_policy_ref import VnicEthNetworkPolicyRef
from .models.vnic_eth_qos_policy import VnicEthQosPolicy
from .models.vnic_eth_qos_policy_ref import VnicEthQosPolicyRef
from .models.vnic_eth_rx_queue_settings_ref import VnicEthRxQueueSettingsRef
from .models.vnic_eth_tx_queue_settings_ref import VnicEthTxQueueSettingsRef
from .models.vnic_fc_adapter_policy import VnicFcAdapterPolicy
from .models.vnic_fc_adapter_policy_ref import VnicFcAdapterPolicyRef
from .models.vnic_fc_error_recovery_settings_ref import VnicFcErrorRecoverySettingsRef
from .models.vnic_fc_if_ref import VnicFcIfRef
from .models.vnic_fc_interrupt_settings_ref import VnicFcInterruptSettingsRef
from .models.vnic_fc_network_policy import VnicFcNetworkPolicy
from .models.vnic_fc_network_policy_ref import VnicFcNetworkPolicyRef
from .models.vnic_fc_qos_policy import VnicFcQosPolicy
from .models.vnic_fc_qos_policy_ref import VnicFcQosPolicyRef
from .models.vnic_fc_queue_settings_ref import VnicFcQueueSettingsRef
from .models.vnic_flogi_settings_ref import VnicFlogiSettingsRef
from .models.vnic_lan_connectivity_policy import VnicLanConnectivityPolicy
from .models.vnic_lan_connectivity_policy_ref import VnicLanConnectivityPolicyRef
from .models.vnic_lcp_deploy_task_ref import VnicLcpDeployTaskRef
from .models.vnic_lcp_validation_task_ref import VnicLcpValidationTaskRef
from .models.vnic_nvgre_settings_ref import VnicNvgreSettingsRef
from .models.vnic_placement_settings_ref import VnicPlacementSettingsRef
from .models.vnic_plogi_settings_ref import VnicPlogiSettingsRef
from .models.vnic_roce_settings_ref import VnicRoceSettingsRef
from .models.vnic_san_connectivity_policy import VnicSanConnectivityPolicy
from .models.vnic_san_connectivity_policy_ref import VnicSanConnectivityPolicyRef
from .models.vnic_scp_deploy_task_ref import VnicScpDeployTaskRef
from .models.vnic_scp_validation_task_ref import VnicScpValidationTaskRef
from .models.vnic_scsi_queue_settings_ref import VnicScsiQueueSettingsRef
from .models.vnic_tcp_offload_settings_ref import VnicTcpOffloadSettingsRef
from .models.vnic_usnic_settings_ref import VnicUsnicSettingsRef
from .models.vnic_vlan_settings_ref import VnicVlanSettingsRef
from .models.vnic_vmq_settings_ref import VnicVmqSettingsRef
from .models.vnic_vsan_settings_ref import VnicVsanSettingsRef
from .models.vnic_vxlan_settings_ref import VnicVxlanSettingsRef
from .models.workflow_abstract_worker_task import WorkflowAbstractWorkerTask
from .models.workflow_abstract_worker_task_ref import WorkflowAbstractWorkerTaskRef
from .models.workflow_api_ref import WorkflowApiRef
from .models.workflow_api_task_ref import WorkflowApiTaskRef
from .models.workflow_array_data_type import WorkflowArrayDataType
from .models.workflow_array_data_type_ref import WorkflowArrayDataTypeRef
from .models.workflow_array_item_ref import WorkflowArrayItemRef
from .models.workflow_base_data_type_ref import WorkflowBaseDataTypeRef
from .models.workflow_batch_api_executor_ref import WorkflowBatchApiExecutorRef
from .models.workflow_build_task_meta_owner_ref import WorkflowBuildTaskMetaOwnerRef
from .models.workflow_build_task_meta_ref import WorkflowBuildTaskMetaRef
from .models.workflow_catalog_ref import WorkflowCatalogRef
from .models.workflow_cli_command import WorkflowCliCommand
from .models.workflow_cli_command_ref import WorkflowCliCommandRef
from .models.workflow_constraints_ref import WorkflowConstraintsRef
from .models.workflow_control_task import WorkflowControlTask
from .models.workflow_control_task_ref import WorkflowControlTaskRef
from .models.workflow_custom_data_property_ref import WorkflowCustomDataPropertyRef
from .models.workflow_custom_data_type import WorkflowCustomDataType
from .models.workflow_custom_data_type_definition_ref import WorkflowCustomDataTypeDefinitionRef
from .models.workflow_custom_data_type_ref import WorkflowCustomDataTypeRef
from .models.workflow_decision_case_ref import WorkflowDecisionCaseRef
from .models.workflow_decision_task_ref import WorkflowDecisionTaskRef
from .models.workflow_decision_workflow_task_ref import WorkflowDecisionWorkflowTaskRef
from .models.workflow_default_value_ref import WorkflowDefaultValueRef
from .models.workflow_dynamic_workflow_action_task_list_ref import WorkflowDynamicWorkflowActionTaskListRef
from .models.workflow_end_task_ref import WorkflowEndTaskRef
from .models.workflow_enum_entry_ref import WorkflowEnumEntryRef
from .models.workflow_expect_prompt_ref import WorkflowExpectPromptRef
from .models.workflow_failure_end_task_ref import WorkflowFailureEndTaskRef
from .models.workflow_failure_end_workflow_task_ref import WorkflowFailureEndWorkflowTaskRef
from .models.workflow_format_template_data_ref import WorkflowFormatTemplateDataRef
from .models.workflow_internal_properties_ref import WorkflowInternalPropertiesRef
from .models.workflow_message_ref import WorkflowMessageRef
from .models.workflow_mo_reference_data_type import WorkflowMoReferenceDataType
from .models.workflow_mo_reference_data_type_ref import WorkflowMoReferenceDataTypeRef
from .models.workflow_mo_reference_property_ref import WorkflowMoReferencePropertyRef
from .models.workflow_outcome_ref import WorkflowOutcomeRef
from .models.workflow_pending_dynamic_workflow_info_ref import WorkflowPendingDynamicWorkflowInfoRef
from .models.workflow_primitive_array_item import WorkflowPrimitiveArrayItem
from .models.workflow_primitive_array_item_ref import WorkflowPrimitiveArrayItemRef
from .models.workflow_primitive_data_property_ref import WorkflowPrimitiveDataPropertyRef
from .models.workflow_primitive_data_type import WorkflowPrimitiveDataType
from .models.workflow_primitive_data_type_ref import WorkflowPrimitiveDataTypeRef
from .models.workflow_properties_ref import WorkflowPropertiesRef
from .models.workflow_start_task_ref import WorkflowStartTaskRef
from .models.workflow_start_workflow_task_ref import WorkflowStartWorkflowTaskRef
from .models.workflow_sub_workflow_internal_task_ref import WorkflowSubWorkflowInternalTaskRef
from .models.workflow_sub_workflow_task_ref import WorkflowSubWorkflowTaskRef
from .models.workflow_success_end_task_ref import WorkflowSuccessEndTaskRef
from .models.workflow_success_end_workflow_task_ref import WorkflowSuccessEndWorkflowTaskRef
from .models.workflow_target_data_type import WorkflowTargetDataType
from .models.workflow_target_data_type_ref import WorkflowTargetDataTypeRef
from .models.workflow_target_property_ref import WorkflowTargetPropertyRef
from .models.workflow_task_constraints_ref import WorkflowTaskConstraintsRef
from .models.workflow_task_definition_ref import WorkflowTaskDefinitionRef
from .models.workflow_task_info_ref import WorkflowTaskInfoRef
from .models.workflow_task_meta_ref import WorkflowTaskMetaRef
from .models.workflow_task_retry_info_ref import WorkflowTaskRetryInfoRef
from .models.workflow_validation_error_ref import WorkflowValidationErrorRef
from .models.workflow_validation_information_ref import WorkflowValidationInformationRef
from .models.workflow_wait_task_prompt_ref import WorkflowWaitTaskPromptRef
from .models.workflow_wait_task_ref import WorkflowWaitTaskRef
from .models.workflow_wait_workflow_task_ref import WorkflowWaitWorkflowTaskRef
from .models.workflow_web_api import WorkflowWebApi
from .models.workflow_web_api_ref import WorkflowWebApiRef
from .models.workflow_worker_task_ref import WorkflowWorkerTaskRef
from .models.workflow_workflow_definition_ref import WorkflowWorkflowDefinitionRef
from .models.workflow_workflow_info_properties_ref import WorkflowWorkflowInfoPropertiesRef
from .models.workflow_workflow_info_ref import WorkflowWorkflowInfoRef
from .models.workflow_workflow_meta_ref import WorkflowWorkflowMetaRef
from .models.workflow_workflow_properties_ref import WorkflowWorkflowPropertiesRef
from .models.workflow_workflow_task_ref import WorkflowWorkflowTaskRef
from .models.workflow_xml_api import WorkflowXmlApi
from .models.workflow_xml_api_ref import WorkflowXmlApiRef
from .models.x509_certificate_ref import X509CertificateRef
from .models.adapter_ext_eth_interface import AdapterExtEthInterface
from .models.adapter_host_eth_interface import AdapterHostEthInterface
from .models.adapter_host_fc_interface import AdapterHostFcInterface
from .models.adapter_host_iscsi_interface import AdapterHostIscsiInterface
from .models.adapter_unit import AdapterUnit
from .models.bios_unit import BiosUnit
from .models.compute_board import ComputeBoard
from .models.compute_physical import ComputePhysical
from .models.equipment_abstract_device import EquipmentAbstractDevice
from .models.equipment_chassis import EquipmentChassis
from .models.equipment_fan import EquipmentFan
from .models.equipment_fan_module import EquipmentFanModule
from .models.equipment_fex import EquipmentFex
from .models.equipment_io_card import EquipmentIoCard
from .models.equipment_io_expander import EquipmentIoExpander
from .models.equipment_psu import EquipmentPsu
from .models.equipment_rack_enclosure import EquipmentRackEnclosure
from .models.equipment_rack_enclosure_slot import EquipmentRackEnclosureSlot
from .models.equipment_shared_io_module import EquipmentSharedIoModule
from .models.equipment_switch_card import EquipmentSwitchCard
from .models.equipment_system_io_controller import EquipmentSystemIoController
from .models.equipment_tpm import EquipmentTpm
from .models.ether_physical_port import EtherPhysicalPort
from .models.fc_physical_port import FcPhysicalPort
from .models.firmware_distributable import FirmwareDistributable
from .models.firmware_driver_distributable import FirmwareDriverDistributable
from .models.firmware_server_configuration_utility_distributable import FirmwareServerConfigurationUtilityDistributable
from .models.graphics_card import GraphicsCard
from .models.graphics_controller import GraphicsController
from .models.hyperflex_cluster_profile import HyperflexClusterProfile
from .models.memory_abstract_unit import MemoryAbstractUnit
from .models.memory_array import MemoryArray
from .models.network_element import NetworkElement
from .models.pci_coprocessor_card import PciCoprocessorCard
from .models.pci_device import PciDevice
from .models.pci_link import PciLink
from .models.pci_switch import PciSwitch
from .models.processor_unit import ProcessorUnit
from .models.recovery_backup_config_policy import RecoveryBackupConfigPolicy
from .models.recovery_backup_profile import RecoveryBackupProfile
from .models.recovery_on_demand_backup import RecoveryOnDemandBackup
from .models.sdwan_profile import SdwanProfile
from .models.security_unit import SecurityUnit
from .models.server_profile import ServerProfile
from .models.software_hcl_meta import SoftwareHclMeta
from .models.software_hyperflex_distributable import SoftwareHyperflexDistributable
from .models.software_solution_distributable import SoftwareSolutionDistributable
from .models.storage_array_controller import StorageArrayController
from .models.storage_array_disk import StorageArrayDisk
from .models.storage_controller import StorageController
from .models.storage_enclosure import StorageEnclosure
from .models.storage_enclosure_disk import StorageEnclosureDisk
from .models.storage_flex_flash_controller import StorageFlexFlashController
from .models.storage_flex_flash_controller_props import StorageFlexFlashControllerProps
from .models.storage_flex_flash_physical_drive import StorageFlexFlashPhysicalDrive
from .models.storage_flex_flash_virtual_drive import StorageFlexFlashVirtualDrive
from .models.storage_flex_util_physical_drive import StorageFlexUtilPhysicalDrive
from .models.storage_host_utilization import StorageHostUtilization
from .models.storage_physical_disk import StoragePhysicalDisk
from .models.storage_physical_disk_extension import StoragePhysicalDiskExtension
from .models.storage_sas_expander import StorageSasExpander
from .models.storage_virtual_drive import StorageVirtualDrive
from .models.storage_volume_utilization import StorageVolumeUtilization
from .models.workflow_decision_task import WorkflowDecisionTask
from .models.workflow_end_task import WorkflowEndTask
from .models.workflow_start_task import WorkflowStartTask
from .models.workflow_sub_workflow_task import WorkflowSubWorkflowTask
from .models.workflow_wait_task import WorkflowWaitTask
from .models.workflow_worker_task import WorkflowWorkerTask
from .models.compute_blade import ComputeBlade
from .models.compute_rack_unit import ComputeRackUnit
from .models.memory_persistent_memory_unit import MemoryPersistentMemoryUnit
from .models.memory_unit import MemoryUnit
from .models.storage_generic_array import StorageGenericArray
from .models.storage_pure_controller import StoragePureController
from .models.storage_pure_disk import StoragePureDisk
from .models.workflow_failure_end_task import WorkflowFailureEndTask
from .models.workflow_success_end_task import WorkflowSuccessEndTask
from .models.storage_pure_array import StoragePureArray
# import apis into sdk package
from .apis.aaa_audit_record_api import AaaAuditRecordApi
from .apis.adapter_config_policy_api import AdapterConfigPolicyApi
from .apis.adapter_ext_eth_interface_api import AdapterExtEthInterfaceApi
from .apis.adapter_host_eth_interface_api import AdapterHostEthInterfaceApi
from .apis.adapter_host_fc_interface_api import AdapterHostFcInterfaceApi
from .apis.adapter_host_iscsi_interface_api import AdapterHostIscsiInterfaceApi
from .apis.adapter_unit_api import AdapterUnitApi
from .apis.appliance_backup_api import ApplianceBackupApi
from .apis.appliance_backup_policy_api import ApplianceBackupPolicyApi
from .apis.appliance_certificate_setting_api import ApplianceCertificateSettingApi
from .apis.appliance_data_export_policy_api import ApplianceDataExportPolicyApi
from .apis.appliance_device_claim_api import ApplianceDeviceClaimApi
from .apis.appliance_diag_setting_api import ApplianceDiagSettingApi
from .apis.appliance_image_bundle_api import ApplianceImageBundleApi
from .apis.appliance_node_info_api import ApplianceNodeInfoApi
from .apis.appliance_release_note_api import ApplianceReleaseNoteApi
from .apis.appliance_restore_api import ApplianceRestoreApi
from .apis.appliance_setup_info_api import ApplianceSetupInfoApi
from .apis.appliance_system_info_api import ApplianceSystemInfoApi
from .apis.appliance_upgrade_api import ApplianceUpgradeApi
from .apis.appliance_upgrade_policy_api import ApplianceUpgradePolicyApi
from .apis.asset_cluster_member_api import AssetClusterMemberApi
from .apis.asset_device_claim_api import AssetDeviceClaimApi
from .apis.asset_device_configuration_api import AssetDeviceConfigurationApi
from .apis.asset_device_connector_manager_api import AssetDeviceConnectorManagerApi
from .apis.asset_device_contract_information_api import AssetDeviceContractInformationApi
from .apis.asset_device_registration_api import AssetDeviceRegistrationApi
from .apis.asset_managed_device_api import AssetManagedDeviceApi
from .apis.bios_boot_mode_api import BiosBootModeApi
from .apis.bios_policy_api import BiosPolicyApi
from .apis.bios_unit_api import BiosUnitApi
from .apis.boot_device_boot_mode_api import BootDeviceBootModeApi
from .apis.boot_precision_policy_api import BootPrecisionPolicyApi
from .apis.compute_blade_api import ComputeBladeApi
from .apis.compute_board_api import ComputeBoardApi
from .apis.compute_physical_summary_api import ComputePhysicalSummaryApi
from .apis.compute_rack_unit_api import ComputeRackUnitApi
from .apis.compute_server_setting_api import ComputeServerSettingApi
from .apis.cond_alarm_api import CondAlarmApi
from .apis.cond_hcl_status_api import CondHclStatusApi
from .apis.cond_hcl_status_detail_api import CondHclStatusDetailApi
from .apis.cond_hcl_status_job_api import CondHclStatusJobApi
from .apis.deviceconnector_policy_api import DeviceconnectorPolicyApi
from .apis.equipment_chassis_api import EquipmentChassisApi
from .apis.equipment_device_summary_api import EquipmentDeviceSummaryApi
from .apis.equipment_fan_api import EquipmentFanApi
from .apis.equipment_fan_module_api import EquipmentFanModuleApi
from .apis.equipment_fex_api import EquipmentFexApi
from .apis.equipment_io_card_api import EquipmentIoCardApi
from .apis.equipment_io_expander_api import EquipmentIoExpanderApi
from .apis.equipment_locator_led_api import EquipmentLocatorLedApi
from .apis.equipment_psu_api import EquipmentPsuApi
from .apis.equipment_rack_enclosure_api import EquipmentRackEnclosureApi
from .apis.equipment_rack_enclosure_slot_api import EquipmentRackEnclosureSlotApi
from .apis.equipment_shared_io_module_api import EquipmentSharedIoModuleApi
from .apis.equipment_switch_card_api import EquipmentSwitchCardApi
from .apis.equipment_system_io_controller_api import EquipmentSystemIoControllerApi
from .apis.equipment_tpm_api import EquipmentTpmApi
from .apis.ether_physical_port_api import EtherPhysicalPortApi
from .apis.externalsite_authorization_api import ExternalsiteAuthorizationApi
from .apis.fault_instance_api import FaultInstanceApi
from .apis.fc_physical_port_api import FcPhysicalPortApi
from .apis.feedback_feedback_post_api import FeedbackFeedbackPostApi
from .apis.firmware_distributable_api import FirmwareDistributableApi
from .apis.firmware_driver_distributable_api import FirmwareDriverDistributableApi
from .apis.firmware_eula_api import FirmwareEulaApi
from .apis.firmware_running_firmware_api import FirmwareRunningFirmwareApi
from .apis.firmware_server_configuration_utility_distributable_api import FirmwareServerConfigurationUtilityDistributableApi
from .apis.firmware_upgrade_api import FirmwareUpgradeApi
from .apis.firmware_upgrade_status_api import FirmwareUpgradeStatusApi
from .apis.forecast_catalog_api import ForecastCatalogApi
from .apis.forecast_definition_api import ForecastDefinitionApi
from .apis.forecast_instance_api import ForecastInstanceApi
from .apis.graphics_card_api import GraphicsCardApi
from .apis.graphics_controller_api import GraphicsControllerApi
from .apis.hcl_compatibility_status_api import HclCompatibilityStatusApi
from .apis.hcl_driver_image_api import HclDriverImageApi
from .apis.hcl_exempted_catalog_api import HclExemptedCatalogApi
from .apis.hcl_hyperflex_software_compatibility_info_api import HclHyperflexSoftwareCompatibilityInfoApi
from .apis.hcl_operating_system_api import HclOperatingSystemApi
from .apis.hcl_operating_system_vendor_api import HclOperatingSystemVendorApi
from .apis.hcl_service_status_api import HclServiceStatusApi
from .apis.hcl_supported_driver_name_api import HclSupportedDriverNameApi
from .apis.hyperflex_alarm_api import HyperflexAlarmApi
from .apis.hyperflex_app_catalog_api import HyperflexAppCatalogApi
from .apis.hyperflex_auto_support_policy_api import HyperflexAutoSupportPolicyApi
from .apis.hyperflex_capability_info_api import HyperflexCapabilityInfoApi
from .apis.hyperflex_cluster_api import HyperflexClusterApi
from .apis.hyperflex_cluster_network_policy_api import HyperflexClusterNetworkPolicyApi
from .apis.hyperflex_cluster_profile_api import HyperflexClusterProfileApi
from .apis.hyperflex_cluster_storage_policy_api import HyperflexClusterStoragePolicyApi
from .apis.hyperflex_config_result_api import HyperflexConfigResultApi
from .apis.hyperflex_config_result_entry_api import HyperflexConfigResultEntryApi
from .apis.hyperflex_ext_fc_storage_policy_api import HyperflexExtFcStoragePolicyApi
from .apis.hyperflex_ext_iscsi_storage_policy_api import HyperflexExtIscsiStoragePolicyApi
from .apis.hyperflex_feature_limit_external_api import HyperflexFeatureLimitExternalApi
from .apis.hyperflex_feature_limit_internal_api import HyperflexFeatureLimitInternalApi
from .apis.hyperflex_health_api import HyperflexHealthApi
from .apis.hyperflex_hxdp_version_api import HyperflexHxdpVersionApi
from .apis.hyperflex_local_credential_policy_api import HyperflexLocalCredentialPolicyApi
from .apis.hyperflex_node_api import HyperflexNodeApi
from .apis.hyperflex_node_config_policy_api import HyperflexNodeConfigPolicyApi
from .apis.hyperflex_node_profile_api import HyperflexNodeProfileApi
from .apis.hyperflex_proxy_setting_policy_api import HyperflexProxySettingPolicyApi
from .apis.hyperflex_server_firmware_version_api import HyperflexServerFirmwareVersionApi
from .apis.hyperflex_server_model_api import HyperflexServerModelApi
from .apis.hyperflex_software_version_policy_api import HyperflexSoftwareVersionPolicyApi
from .apis.hyperflex_sys_config_policy_api import HyperflexSysConfigPolicyApi
from .apis.hyperflex_ucsm_config_policy_api import HyperflexUcsmConfigPolicyApi
from .apis.hyperflex_vcenter_config_policy_api import HyperflexVcenterConfigPolicyApi
from .apis.iaas_connector_pack_api import IaasConnectorPackApi
from .apis.iaas_device_status_api import IaasDeviceStatusApi
from .apis.iaas_license_info_api import IaasLicenseInfoApi
from .apis.iaas_most_run_tasks_api import IaasMostRunTasksApi
from .apis.iaas_ucsd_info_api import IaasUcsdInfoApi
from .apis.iaas_ucsd_managed_infra_api import IaasUcsdManagedInfraApi
from .apis.iam_account_api import IamAccountApi
from .apis.iam_api_key_api import IamApiKeyApi
from .apis.iam_app_registration_api import IamAppRegistrationApi
from .apis.iam_certificate_api import IamCertificateApi
from .apis.iam_certificate_request_api import IamCertificateRequestApi
from .apis.iam_domain_group_api import IamDomainGroupApi
from .apis.iam_end_point_privilege_api import IamEndPointPrivilegeApi
from .apis.iam_end_point_role_api import IamEndPointRoleApi
from .apis.iam_end_point_user_api import IamEndPointUserApi
from .apis.iam_end_point_user_policy_api import IamEndPointUserPolicyApi
from .apis.iam_end_point_user_role_api import IamEndPointUserRoleApi
from .apis.iam_idp_api import IamIdpApi
from .apis.iam_idp_reference_api import IamIdpReferenceApi
from .apis.iam_ldap_group_api import IamLdapGroupApi
from .apis.iam_ldap_policy_api import IamLdapPolicyApi
from .apis.iam_ldap_provider_api import IamLdapProviderApi
from .apis.iam_local_user_password_api import IamLocalUserPasswordApi
from .apis.iam_o_auth_token_api import IamOAuthTokenApi
from .apis.iam_permission_api import IamPermissionApi
from .apis.iam_private_key_spec_api import IamPrivateKeySpecApi
from .apis.iam_privilege_api import IamPrivilegeApi
from .apis.iam_privilege_set_api import IamPrivilegeSetApi
from .apis.iam_qualifier_api import IamQualifierApi
from .apis.iam_resource_limits_api import IamResourceLimitsApi
from .apis.iam_resource_permission_api import IamResourcePermissionApi
from .apis.iam_resource_roles_api import IamResourceRolesApi
from .apis.iam_role_api import IamRoleApi
from .apis.iam_security_holder_api import IamSecurityHolderApi
from .apis.iam_service_provider_api import IamServiceProviderApi
from .apis.iam_session_api import IamSessionApi
from .apis.iam_session_limits_api import IamSessionLimitsApi
from .apis.iam_system_api import IamSystemApi
from .apis.iam_trust_point_api import IamTrustPointApi
from .apis.iam_user_api import IamUserApi
from .apis.iam_user_group_api import IamUserGroupApi
from .apis.iam_user_preference_api import IamUserPreferenceApi
from .apis.inventory_device_info_api import InventoryDeviceInfoApi
from .apis.inventory_dn_mo_binding_api import InventoryDnMoBindingApi
from .apis.inventory_generic_inventory_api import InventoryGenericInventoryApi
from .apis.inventory_generic_inventory_holder_api import InventoryGenericInventoryHolderApi
from .apis.inventory_request_api import InventoryRequestApi
from .apis.ipmioverlan_policy_api import IpmioverlanPolicyApi
from .apis.kvm_policy_api import KvmPolicyApi
from .apis.license_account_license_data_api import LicenseAccountLicenseDataApi
from .apis.license_customer_op_api import LicenseCustomerOpApi
from .apis.license_license_info_api import LicenseLicenseInfoApi
from .apis.license_smartlicense_token_api import LicenseSmartlicenseTokenApi
from .apis.ls_service_profile_api import LsServiceProfileApi
from .apis.management_controller_api import ManagementControllerApi
from .apis.management_entity_api import ManagementEntityApi
from .apis.management_interface_api import ManagementInterfaceApi
from .apis.memory_array_api import MemoryArrayApi
from .apis.memory_persistent_memory_config_result_api import MemoryPersistentMemoryConfigResultApi
from .apis.memory_persistent_memory_configuration_api import MemoryPersistentMemoryConfigurationApi
from .apis.memory_persistent_memory_namespace_api import MemoryPersistentMemoryNamespaceApi
from .apis.memory_persistent_memory_namespace_config_result_api import MemoryPersistentMemoryNamespaceConfigResultApi
from .apis.memory_persistent_memory_region_api import MemoryPersistentMemoryRegionApi
from .apis.memory_persistent_memory_unit_api import MemoryPersistentMemoryUnitApi
from .apis.memory_unit_api import MemoryUnitApi
from .apis.meta_definition_api import MetaDefinitionApi
from .apis.network_element_api import NetworkElementApi
from .apis.network_element_summary_api import NetworkElementSummaryApi
from .apis.networkconfig_policy_api import NetworkconfigPolicyApi
from .apis.niaapi_apic_cco_post_api import NiaapiApicCcoPostApi
from .apis.niaapi_apic_field_notice_api import NiaapiApicFieldNoticeApi
from .apis.niaapi_apic_hweol_api import NiaapiApicHweolApi
from .apis.niaapi_apic_latest_maintained_release_api import NiaapiApicLatestMaintainedReleaseApi
from .apis.niaapi_apic_release_recommend_api import NiaapiApicReleaseRecommendApi
from .apis.niaapi_apic_sweol_api import NiaapiApicSweolApi
from .apis.niaapi_dcnm_cco_post_api import NiaapiDcnmCcoPostApi
from .apis.niaapi_dcnm_field_notice_api import NiaapiDcnmFieldNoticeApi
from .apis.niaapi_dcnm_hweol_api import NiaapiDcnmHweolApi
from .apis.niaapi_dcnm_latest_maintained_release_api import NiaapiDcnmLatestMaintainedReleaseApi
from .apis.niaapi_dcnm_release_recommend_api import NiaapiDcnmReleaseRecommendApi
from .apis.niaapi_dcnm_sweol_api import NiaapiDcnmSweolApi
from .apis.niaapi_file_downloader_api import NiaapiFileDownloaderApi
from .apis.niaapi_nia_metadata_api import NiaapiNiaMetadataApi
from .apis.niaapi_version_regex_api import NiaapiVersionRegexApi
from .apis.niatelemetry_nia_inventory_api import NiatelemetryNiaInventoryApi
from .apis.niatelemetry_nia_license_state_api import NiatelemetryNiaLicenseStateApi
from .apis.ntp_policy_api import NtpPolicyApi
from .apis.organization_organization_api import OrganizationOrganizationApi
from .apis.os_catalog_api import OsCatalogApi
from .apis.os_configuration_file_api import OsConfigurationFileApi
from .apis.os_install_api import OsInstallApi
from .apis.os_os_support_api import OsOsSupportApi
from .apis.os_template_file_api import OsTemplateFileApi
from .apis.pci_coprocessor_card_api import PciCoprocessorCardApi
from .apis.pci_device_api import PciDeviceApi
from .apis.pci_link_api import PciLinkApi
from .apis.pci_switch_api import PciSwitchApi
from .apis.port_group_api import PortGroupApi
from .apis.port_sub_group_api import PortSubGroupApi
from .apis.processor_unit_api import ProcessorUnitApi
from .apis.recovery_backup_config_policy_api import RecoveryBackupConfigPolicyApi
from .apis.recovery_backup_profile_api import RecoveryBackupProfileApi
from .apis.recovery_config_result_api import RecoveryConfigResultApi
from .apis.recovery_config_result_entry_api import RecoveryConfigResultEntryApi
from .apis.recovery_on_demand_backup_api import RecoveryOnDemandBackupApi
from .apis.recovery_restore_api import RecoveryRestoreApi
from .apis.recovery_schedule_config_policy_api import RecoveryScheduleConfigPolicyApi
from .apis.resource_group_api import ResourceGroupApi
from .apis.resource_group_member_api import ResourceGroupMemberApi
from .apis.resource_license_resource_count_api import ResourceLicenseResourceCountApi
from .apis.resource_membership_api import ResourceMembershipApi
from .apis.resource_membership_holder_api import ResourceMembershipHolderApi
from .apis.sdcard_policy_api import SdcardPolicyApi
from .apis.sdwan_profile_api import SdwanProfileApi
from .apis.sdwan_router_node_api import SdwanRouterNodeApi
from .apis.sdwan_router_policy_api import SdwanRouterPolicyApi
from .apis.sdwan_vmanage_account_policy_api import SdwanVmanageAccountPolicyApi
from .apis.search_search_item_api import SearchSearchItemApi
from .apis.search_suggest_item_api import SearchSuggestItemApi
from .apis.search_tag_item_api import SearchTagItemApi
from .apis.security_unit_api import SecurityUnitApi
from .apis.server_config_change_detail_api import ServerConfigChangeDetailApi
from .apis.server_config_import_api import ServerConfigImportApi
from .apis.server_config_result_api import ServerConfigResultApi
from .apis.server_config_result_entry_api import ServerConfigResultEntryApi
from .apis.server_profile_api import ServerProfileApi
from .apis.smtp_policy_api import SmtpPolicyApi
from .apis.snmp_policy_api import SnmpPolicyApi
from .apis.software_hcl_meta_api import SoftwareHclMetaApi
from .apis.software_hyperflex_distributable_api import SoftwareHyperflexDistributableApi
from .apis.software_solution_distributable_api import SoftwareSolutionDistributableApi
from .apis.softwarerepository_authorization_api import SoftwarerepositoryAuthorizationApi
from .apis.softwarerepository_catalog_api import SoftwarerepositoryCatalogApi
from .apis.softwarerepository_operating_system_file_api import SoftwarerepositoryOperatingSystemFileApi
from .apis.sol_policy_api import SolPolicyApi
from .apis.ssh_policy_api import SshPolicyApi
from .apis.storage_controller_api import StorageControllerApi
from .apis.storage_disk_group_policy_api import StorageDiskGroupPolicyApi
from .apis.storage_enclosure_api import StorageEnclosureApi
from .apis.storage_enclosure_disk_api import StorageEnclosureDiskApi
from .apis.storage_enclosure_disk_slot_ep_api import StorageEnclosureDiskSlotEpApi
from .apis.storage_flex_flash_controller_api import StorageFlexFlashControllerApi
from .apis.storage_flex_flash_controller_props_api import StorageFlexFlashControllerPropsApi
from .apis.storage_flex_flash_physical_drive_api import StorageFlexFlashPhysicalDriveApi
from .apis.storage_flex_flash_virtual_drive_api import StorageFlexFlashVirtualDriveApi
from .apis.storage_flex_util_controller_api import StorageFlexUtilControllerApi
from .apis.storage_flex_util_physical_drive_api import StorageFlexUtilPhysicalDriveApi
from .apis.storage_flex_util_virtual_drive_api import StorageFlexUtilVirtualDriveApi
from .apis.storage_physical_disk_api import StoragePhysicalDiskApi
from .apis.storage_physical_disk_extension_api import StoragePhysicalDiskExtensionApi
from .apis.storage_physical_disk_usage_api import StoragePhysicalDiskUsageApi
from .apis.storage_pure_array_api import StoragePureArrayApi
from .apis.storage_pure_controller_api import StoragePureControllerApi
from .apis.storage_pure_disk_api import StoragePureDiskApi
from .apis.storage_pure_host_api import StoragePureHostApi
from .apis.storage_pure_host_lun_api import StoragePureHostLunApi
from .apis.storage_pure_port_api import StoragePurePortApi
from .apis.storage_pure_protection_group_api import StoragePureProtectionGroupApi
from .apis.storage_pure_protection_group_snapshot_api import StoragePureProtectionGroupSnapshotApi
from .apis.storage_pure_replication_schedule_api import StoragePureReplicationScheduleApi
from .apis.storage_pure_snapshot_schedule_api import StoragePureSnapshotScheduleApi
from .apis.storage_pure_volume_api import StoragePureVolumeApi
from .apis.storage_pure_volume_snapshot_api import StoragePureVolumeSnapshotApi
from .apis.storage_sas_expander_api import StorageSasExpanderApi
from .apis.storage_sas_port_api import StorageSasPortApi
from .apis.storage_storage_policy_api import StorageStoragePolicyApi
from .apis.storage_vd_member_ep_api import StorageVdMemberEpApi
from .apis.storage_virtual_drive_api import StorageVirtualDriveApi
from .apis.storage_virtual_drive_extension_api import StorageVirtualDriveExtensionApi
from .apis.syslog_policy_api import SyslogPolicyApi
from .apis.tam_advisory_count_api import TamAdvisoryCountApi
from .apis.tam_advisory_info_api import TamAdvisoryInfoApi
from .apis.tam_advisory_instance_api import TamAdvisoryInstanceApi
from .apis.tam_security_advisory_api import TamSecurityAdvisoryApi
from .apis.task_pure_storage_scoped_inventory_api import TaskPureStorageScopedInventoryApi
from .apis.telemetry_time_series_api import TelemetryTimeSeriesApi
from .apis.terminal_audit_log_api import TerminalAuditLogApi
from .apis.top_system_api import TopSystemApi
from .apis.ucsd_backup_info_api import UcsdBackupInfoApi
from .apis.vmedia_policy_api import VmediaPolicyApi
from .apis.vnic_eth_adapter_policy_api import VnicEthAdapterPolicyApi
from .apis.vnic_eth_if_api import VnicEthIfApi
from .apis.vnic_eth_network_policy_api import VnicEthNetworkPolicyApi
from .apis.vnic_eth_qos_policy_api import VnicEthQosPolicyApi
from .apis.vnic_fc_adapter_policy_api import VnicFcAdapterPolicyApi
from .apis.vnic_fc_if_api import VnicFcIfApi
from .apis.vnic_fc_network_policy_api import VnicFcNetworkPolicyApi
from .apis.vnic_fc_qos_policy_api import VnicFcQosPolicyApi
from .apis.vnic_lan_connectivity_policy_api import VnicLanConnectivityPolicyApi
from .apis.vnic_san_connectivity_policy_api import VnicSanConnectivityPolicyApi
from .apis.workflow_batch_api_executor_api import WorkflowBatchApiExecutorApi
from .apis.workflow_build_task_meta_api import WorkflowBuildTaskMetaApi
from .apis.workflow_build_task_meta_owner_api import WorkflowBuildTaskMetaOwnerApi
from .apis.workflow_catalog_api import WorkflowCatalogApi
from .apis.workflow_custom_data_type_definition_api import WorkflowCustomDataTypeDefinitionApi
from .apis.workflow_pending_dynamic_workflow_info_api import WorkflowPendingDynamicWorkflowInfoApi
from .apis.workflow_task_definition_api import WorkflowTaskDefinitionApi
from .apis.workflow_task_info_api import WorkflowTaskInfoApi
from .apis.workflow_task_meta_api import WorkflowTaskMetaApi
from .apis.workflow_workflow_definition_api import WorkflowWorkflowDefinitionApi
from .apis.workflow_workflow_info_api import WorkflowWorkflowInfoApi
from .apis.workflow_workflow_meta_api import WorkflowWorkflowMetaApi
# import ApiClient
from .api_client import ApiClient
from .configuration import Configuration
configuration = Configuration()
| 69.859276 | 128 | 0.914379 | 17,582 | 154,389 | 7.653225 | 0.162553 | 0.139121 | 0.023016 | 0.005618 | 0.309708 | 0.137679 | 0.032447 | 0.005106 | 0 | 0 | 0 | 0.000302 | 0.057115 | 154,389 | 2,209 | 129 | 69.890901 | 0.924051 | 0.001788 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.002285 | 0.999543 | 0 | 0.999543 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
268ead5fc8dcf882d8675f6ebd04806afb1e8dad | 26 | py | Python | __init__.py | RentFreeMedia/python-video-ids | 077dffb9f26456e703fb4e396a81df883ae4d0e3 | [
"MIT"
] | null | null | null | __init__.py | RentFreeMedia/python-video-ids | 077dffb9f26456e703fb4e396a81df883ae4d0e3 | [
"MIT"
] | null | null | null | __init__.py | RentFreeMedia/python-video-ids | 077dffb9f26456e703fb4e396a81df883ae4d0e3 | [
"MIT"
] | null | null | null | __all__ = ['test_youtube'] | 26 | 26 | 0.730769 | 3 | 26 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 26 | 1 | 26 | 26 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd07eb1aa137bce3c41cc3a6815ac8bcfe863aeb | 321 | py | Python | hackaton/desktop/admin.py | TolimanStaR/Tender-hack-Hackaton | 3a9c08ffff3717b4930543545bc855c8a6bbe3f4 | [
"Unlicense"
] | null | null | null | hackaton/desktop/admin.py | TolimanStaR/Tender-hack-Hackaton | 3a9c08ffff3717b4930543545bc855c8a6bbe3f4 | [
"Unlicense"
] | null | null | null | hackaton/desktop/admin.py | TolimanStaR/Tender-hack-Hackaton | 3a9c08ffff3717b4930543545bc855c8a6bbe3f4 | [
"Unlicense"
] | null | null | null | from django.contrib import admin
from .models import SiteUser
from django.contrib.sessions.models import Session
@admin.register(SiteUser)
class SiteUserAdmin(admin.ModelAdmin):
list_display = ('session_key', 'image')
@admin.register(Session)
class SessionAdmin(admin.ModelAdmin):
list_display = ('objects',)
| 22.928571 | 50 | 0.775701 | 38 | 321 | 6.473684 | 0.5 | 0.081301 | 0.138211 | 0.211382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115265 | 321 | 13 | 51 | 24.692308 | 0.866197 | 0 | 0 | 0 | 0 | 0 | 0.071651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cd7ff798161293c5634b306589ccfd80b2981fbc | 158 | py | Python | plugins/debate/__init__.py | Akins2229/OpenDebates | 8b7a4618895690512b211ae0c387d26ac9b3af30 | [
"Apache-2.0"
] | 2 | 2021-04-03T16:43:27.000Z | 2021-04-03T16:48:43.000Z | plugins/debate/__init__.py | Akins2229/OpenDebates | 8b7a4618895690512b211ae0c387d26ac9b3af30 | [
"Apache-2.0"
] | 8 | 2020-05-07T12:12:16.000Z | 2021-07-07T14:57:52.000Z | plugins/debate/__init__.py | Akins2229/OpenDebates | 8b7a4618895690512b211ae0c387d26ac9b3af30 | [
"Apache-2.0"
] | 4 | 2021-03-21T15:47:58.000Z | 2021-09-16T00:12:45.000Z | from plugins.debate.layout import ServerSetup
plugin_data = {"name": "Debate Plugins", "database": True}
def setup(bot):
bot.add_cog(ServerSetup(bot))
| 19.75 | 58 | 0.727848 | 21 | 158 | 5.380952 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132911 | 158 | 7 | 59 | 22.571429 | 0.824818 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cd99c9c0313101568f699d89844f4fcd372cee24 | 264 | py | Python | issuelab/base/user.py | tafilz/yittrab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | null | null | null | issuelab/base/user.py | tafilz/yittrab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | 4 | 2020-08-25T18:48:30.000Z | 2020-08-25T19:12:05.000Z | issuelab/base/user.py | tafilz/youtrack-to-gitlab | b324ecfc5cf85c62d3b453fed30f4ef2c67c87bb | [
"MIT"
] | null | null | null | from pydantic import BaseModel
class User(BaseModel):
id: int = -1
name: str = ""
username: str
def __eq__(self, other):
return self.username == other.username
def __hash__(self):
return hash(('username', self.username)) | 20.307692 | 48 | 0.617424 | 31 | 264 | 5 | 0.580645 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.268939 | 264 | 13 | 48 | 20.307692 | 0.797927 | 0 | 0 | 0 | 0 | 0 | 0.030189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
269c2853e5d3eb218e49e523611d223a987f5dac | 315 | py | Python | website/views.py | RFNshare/StraightIntLtd | 40b0aecbddeee193a6dd9439fad6c974dee979e0 | [
"MIT"
] | null | null | null | website/views.py | RFNshare/StraightIntLtd | 40b0aecbddeee193a6dd9439fad6c974dee979e0 | [
"MIT"
] | null | null | null | website/views.py | RFNshare/StraightIntLtd | 40b0aecbddeee193a6dd9439fad6c974dee979e0 | [
"MIT"
] | 1 | 2021-07-13T10:14:45.000Z | 2021-07-13T10:14:45.000Z | from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
from django.views import View
class HomeView(View):
def get(self, request):
return render(request, 'website/index.html')
def post(self, request):
return HttpResponse('Class based view')
| 19.6875 | 52 | 0.71746 | 41 | 315 | 5.512195 | 0.585366 | 0.132743 | 0.150442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196825 | 315 | 15 | 53 | 21 | 0.893281 | 0.073016 | 0 | 0 | 0 | 0 | 0.117241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
26a375c2ac2f48ae8ce2a71a507afa8667786568 | 145 | py | Python | src/pibayer/tests/test_mod.py | scienceopen/raspberrypi_raw_camera | 6ef5fc14a2c0f402a5f441331b229375d307986d | [
"MIT"
] | 8 | 2018-11-28T15:39:33.000Z | 2021-12-24T04:45:50.000Z | src/pibayer/tests/test_mod.py | scienceopen/raspberrypi_raw_camera | 6ef5fc14a2c0f402a5f441331b229375d307986d | [
"MIT"
] | 1 | 2018-08-16T18:28:27.000Z | 2018-08-21T03:02:50.000Z | src/pibayer/tests/test_mod.py | scienceopen/raspberrypi_raw_camera | 6ef5fc14a2c0f402a5f441331b229375d307986d | [
"MIT"
] | 2 | 2015-12-02T03:44:49.000Z | 2016-01-10T20:57:58.000Z | import pibayer
Nimg = 2
exposure_sec = 0.1
def test_acq_seq():
img = pibayer.bayerseq(Nimg, exposure_sec)
assert img.shape[0] == Nimg
| 14.5 | 46 | 0.689655 | 23 | 145 | 4.173913 | 0.695652 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.2 | 145 | 9 | 47 | 16.111111 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26ac68b65c65bfb72ee9907ea28d10f83a19fec2 | 712 | py | Python | Controllers/Launch_Programs_Controller.py | brianr01/robot-api | 73e6f3da9287fcf22618a6244370105fee164c51 | [
"MIT"
] | null | null | null | Controllers/Launch_Programs_Controller.py | brianr01/robot-api | 73e6f3da9287fcf22618a6244370105fee164c51 | [
"MIT"
] | null | null | null | Controllers/Launch_Programs_Controller.py | brianr01/robot-api | 73e6f3da9287fcf22618a6244370105fee164c51 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from flask import Flask, render_template, Response, Blueprint, request
import cv2, sys, threading
sys.path.append(sys.path[0] + '/Helpers')
from Robot_Helper import robot
sys.path.append(sys.path[0] + '/Programs')
from Calibrate_Sticker_Location_Program import Calibrate_Sticker_Location_Program
launch_programs_controller = Blueprint('launch_programs_controller', __name__)
@launch_programs_controller.route('/launch_calibrate_sticker_location')
def Calibrate_Sticker_Location():
global robot
calibrate_sticker_location_program = Calibrate_Sticker_Location_Program()
calibrate_sticker_location_program.Launch(
robot.cameras.Get_Frames()
)
return 'Done'
| 28.48 | 81 | 0.800562 | 87 | 712 | 6.172414 | 0.425287 | 0.208566 | 0.312849 | 0.288641 | 0.331471 | 0.251397 | 0.173184 | 0.173184 | 0 | 0 | 0 | 0.004754 | 0.113764 | 712 | 24 | 82 | 29.666667 | 0.846276 | 0.02809 | 0 | 0 | 0 | 0 | 0.117391 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.4 | 0.133333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26adce1d0b8411c1d4efed897cde68406c3f3f5b | 136 | py | Python | src/main.py | SaarLevy/wp-downloader | 9e2b57e15de4f5d63100378ed42917c23626241e | [
"MIT"
] | null | null | null | src/main.py | SaarLevy/wp-downloader | 9e2b57e15de4f5d63100378ed42917c23626241e | [
"MIT"
] | null | null | null | src/main.py | SaarLevy/wp-downloader | 9e2b57e15de4f5d63100378ed42917c23626241e | [
"MIT"
] | null | null | null | import os
import reddit
path = '/home/saar/Pictures/wp-test'
reddit.crawl_reddit('wallpapers', 'wallpaper', 'EarthPorn', 'spaceporn')
| 19.428571 | 72 | 0.742647 | 17 | 136 | 5.882353 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095588 | 136 | 6 | 73 | 22.666667 | 0.813008 | 0 | 0 | 0 | 0 | 0 | 0.470588 | 0.198529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
26b54cbc36888a1a4d2d42e04cfd42fd78f800c9 | 97 | py | Python | secret.py | Aartizada/Instagram-bot | 33bd44da2277c7e50d85f5fdd42209956f2e7739 | [
"MIT"
] | 1 | 2020-05-17T08:14:19.000Z | 2020-05-17T08:14:19.000Z | secret.py | Aartizada/Instagram-bot | 33bd44da2277c7e50d85f5fdd42209956f2e7739 | [
"MIT"
] | null | null | null | secret.py | Aartizada/Instagram-bot | 33bd44da2277c7e50d85f5fdd42209956f2e7739 | [
"MIT"
] | null | null | null | # Change these to your instagram login credentials.
username = "Username"
password = "Password"
| 19.4 | 51 | 0.762887 | 11 | 97 | 6.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 4 | 52 | 24.25 | 0.902439 | 0.505155 | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
26c6032e81529d70d5bf3f74fe4f3ff813549493 | 2,031 | py | Python | tools/python/boutiques/tests/test_example2.py | jerdra/boutiques | f6ee252fd1332ec686dc76dc12e52a0d69c685c3 | [
"MIT"
] | null | null | null | tools/python/boutiques/tests/test_example2.py | jerdra/boutiques | f6ee252fd1332ec686dc76dc12e52a0d69c685c3 | [
"MIT"
] | null | null | null | tools/python/boutiques/tests/test_example2.py | jerdra/boutiques | f6ee252fd1332ec686dc76dc12e52a0d69c685c3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import subprocess
from unittest import TestCase
from boutiques import __file__ as bfile
import boutiques as bosh
class TestExample2(TestCase):
def get_examples_dir(self):
return os.path.join(os.path.dirname(bfile),
"schema", "examples")
def test_example2_no_exec(self):
example2_dir = os.path.join(self.get_examples_dir(), "example2")
ret = bosh.execute("simulate",
os.path.join(example2_dir,
"example2.json"),
"-i",
os.path.join(example2_dir,
"invocation.json"))
assert(ret.stdout != ""
and ret.stderr == ""
and ret.exit_code == 0
and ret.error_message == "")
def test_example2_exec(self):
example2_dir = os.path.join(self.get_examples_dir(), "example2")
ret = bosh.execute("launch",
os.path.join(example2_dir, "example2.json"),
os.path.join(example2_dir, "invocation.json"))
print(ret)
assert(ret.stdout == ""
and ret.stderr == ""
and ret.exit_code == 0
and ret.error_message == "")
ret = bosh.execute("launch",
os.path.join(example2_dir, "example2.json"),
"-x",
os.path.join(example2_dir, "invocation.json"))
print(ret)
assert(ret.stdout == ""
and ret.stderr == ""
and ret.exit_code == 0
and ret.error_message == "")
def test_example2_no_exec_random(self):
example2_dir = os.path.join(self.get_examples_dir(), "example2")
self.assertFalse(bosh.execute("simulate",
os.path.join(example2_dir,
"example2.json")).exit_code)
| 36.927273 | 79 | 0.495815 | 207 | 2,031 | 4.681159 | 0.246377 | 0.074303 | 0.113519 | 0.130031 | 0.75129 | 0.727554 | 0.727554 | 0.691434 | 0.691434 | 0.691434 | 0 | 0.019417 | 0.391433 | 2,031 | 54 | 80 | 37.611111 | 0.764563 | 0.009847 | 0 | 0.555556 | 0 | 0 | 0.083085 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 1 | 0.088889 | false | 0 | 0.111111 | 0.022222 | 0.244444 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26e5912968d7559cad4d48e4c17546ec93731fd5 | 53 | py | Python | apps/setting/__init__.py | lixiaolongxl/DBlog | 7de45c9d571499109f46c1e05be764062e7554f9 | [
"MIT"
] | null | null | null | apps/setting/__init__.py | lixiaolongxl/DBlog | 7de45c9d571499109f46c1e05be764062e7554f9 | [
"MIT"
] | 11 | 2020-03-24T17:45:37.000Z | 2022-03-12T00:04:10.000Z | apps/setting/__init__.py | lixiaolongxl/DBlog | 7de45c9d571499109f46c1e05be764062e7554f9 | [
"MIT"
] | null | null | null | default_app_config= "apps.setting.apps.SettingConfig" | 53 | 53 | 0.867925 | 7 | 53 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 53 | 1 | 53 | 53 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.574074 | 0.574074 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
26e8a221a24569079ccc3462d2ebd2de0fe90f52 | 111 | py | Python | python/pynetplot/plotscript.py | nadurthi/cpputility | cd89e507e850c4fa46bc0640be62f4b24b37d553 | [
"MIT"
] | null | null | null | python/pynetplot/plotscript.py | nadurthi/cpputility | cd89e507e850c4fa46bc0640be62f4b24b37d553 | [
"MIT"
] | null | null | null | python/pynetplot/plotscript.py | nadurthi/cpputility | cd89e507e850c4fa46bc0640be62f4b24b37d553 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import argparse
if __name__ == "__main__":
print "ok"
| 10.090909 | 31 | 0.72973 | 16 | 111 | 4.5625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198198 | 111 | 10 | 32 | 11.1 | 0.820225 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.6 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
26f0be399a37518ed021b6402d6e671c6d1283a0 | 1,149 | py | Python | edata/models.py | 30Meridian/RozumneMistoSnapshot | 67a83b3908674d01992561dfb37596e395b4d482 | [
"BSD-3-Clause"
] | null | null | null | edata/models.py | 30Meridian/RozumneMistoSnapshot | 67a83b3908674d01992561dfb37596e395b4d482 | [
"BSD-3-Clause"
] | null | null | null | edata/models.py | 30Meridian/RozumneMistoSnapshot | 67a83b3908674d01992561dfb37596e395b4d482 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from weunion.models import Town, User
# Create your models here.
class Edata(models.Model):
trans_id = models.IntegerField(blank=True, null=True)
trans_date = models.CharField(max_length=100, blank=True, null=True)
recipt_bank = models.CharField(max_length=150, blank=True, null=True)
recipt_name = models.CharField(max_length=100, blank=True, null=True)
amount = models.CharField(max_length=12, blank=True, null=True)
payment_details = models.CharField(max_length=250, blank=True, null=True)
payer_bank = models.CharField(max_length=150, blank=True, null=True)
payer_edrpou = models.CharField(blank=True, null=True,max_length=8)
recipt_edrpou = models.CharField(max_length=100, blank=True, null=True)
payer_name = models.CharField(max_length=100, blank=True, null=True)
recipt_mfo = models.IntegerField(blank=True, null=True)
payer_mfo = models.IntegerField(blank=True, null=True)
town_ref = models.ForeignKey(Town, db_column='town_ref', blank=True, null=True)
rand_ind = models.IntegerField()
class Meta:
managed = False
db_table = 'edata' | 47.875 | 83 | 0.739774 | 165 | 1,149 | 5 | 0.284848 | 0.141818 | 0.204848 | 0.267879 | 0.540606 | 0.488485 | 0.446061 | 0.353939 | 0.353939 | 0.300606 | 0 | 0.02444 | 0.145344 | 1,149 | 24 | 84 | 47.875 | 0.815682 | 0.020888 | 0 | 0 | 0 | 0 | 0.011566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
26fecde98a73cdc8cd782b195f2e9cf2a36e4272 | 129 | py | Python | test_sam.py | vishalbelsare/SAM | 75b00b8354bd02f9a0a2613a22e781daf546645b | [
"Apache-2.0"
] | 46 | 2018-03-13T20:01:37.000Z | 2022-03-28T03:08:48.000Z | test_sam.py | kassaad/SAM | 93c98737b5aa45a56d23a9755ef369f4752b0445 | [
"Apache-2.0"
] | 3 | 2018-04-07T05:46:46.000Z | 2022-02-14T10:09:22.000Z | test_sam.py | kassaad/SAM | 93c98737b5aa45a56d23a9755ef369f4752b0445 | [
"Apache-2.0"
] | 9 | 2018-07-08T12:18:13.000Z | 2021-12-06T05:56:53.000Z | #!/usr/bin/env python
import cdt
from sam.sam import SAM
d, g = cdt.data.load_dataset('sachs')
m = SAM()
m.predict(d, nruns=1)
| 14.333333 | 37 | 0.682171 | 25 | 129 | 3.48 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.147287 | 129 | 8 | 38 | 16.125 | 0.781818 | 0.155039 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f803e1466e1cbc815f923f55b46590890a1d3bf6 | 316 | py | Python | src/pricehist/outputs/baseoutput.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | 4 | 2021-09-15T03:23:10.000Z | 2022-02-08T23:31:10.000Z | src/pricehist/outputs/baseoutput.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | null | null | null | src/pricehist/outputs/baseoutput.py | chrisberkhout/pricehist | a54da85a6fae15e2f771e8612aed089407ec5c22 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from pricehist.format import Format
from pricehist.series import Series
from pricehist.sources.basesource import BaseSource
class BaseOutput(ABC):
@abstractmethod
def format(self, series: Series, source: BaseSource, fmt: Format) -> str:
pass # pragma: nocover
| 26.333333 | 77 | 0.759494 | 38 | 316 | 6.315789 | 0.5 | 0.1625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170886 | 316 | 11 | 78 | 28.727273 | 0.916031 | 0.047468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.