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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b353647d78204d7123067bd3e78b28af4fa2dc6 | 149 | py | Python | Python/2. Basic Data Types/04 - Finding the percentage.py | rosiejh/HackerRank | bfb07b8add04d3f3b67a61754db483f88a79e5a5 | [
"Apache-2.0"
] | null | null | null | Python/2. Basic Data Types/04 - Finding the percentage.py | rosiejh/HackerRank | bfb07b8add04d3f3b67a61754db483f88a79e5a5 | [
"Apache-2.0"
] | null | null | null | Python/2. Basic Data Types/04 - Finding the percentage.py | rosiejh/HackerRank | bfb07b8add04d3f3b67a61754db483f88a79e5a5 | [
"Apache-2.0"
] | null | null | null | marks = {}
for _ in range(int(input())):
line = input().split()
marks[line[0]] = sum(map(float, line[1:])) / 3
print('%.2f' % marks[input()]) | 29.8 | 50 | 0.550336 | 22 | 149 | 3.681818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0.174497 | 149 | 5 | 51 | 29.8 | 0.626016 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
8b4001214033b5a18efc893be756b7aee4e6c6a2 | 721 | py | Python | natpy/__init__.py | AndreScaffidi/NatPy | 5898a5d09aaa8d7ba3a2ae6b97f1ffb7f37ab2c9 | [
"MIT"
] | 3 | 2020-09-04T06:02:03.000Z | 2021-08-17T23:24:57.000Z | natpy/__init__.py | AndreScaffidi/NatPy | 5898a5d09aaa8d7ba3a2ae6b97f1ffb7f37ab2c9 | [
"MIT"
] | 1 | 2020-09-04T01:52:38.000Z | 2020-09-04T05:38:08.000Z | natpy/__init__.py | AndreScaffidi/NatPy | 5898a5d09aaa8d7ba3a2ae6b97f1ffb7f37ab2c9 | [
"MIT"
] | 1 | 2020-09-07T02:19:03.000Z | 2020-09-07T02:19:03.000Z | import sys
from .convert import convert
from .default_values import default_conventions
from .default_values import set_active_units, list_active_units, get_active_units
from . import constants as const
from astropy.units.core import UnitBase
from astropy.units.quantity import Quantity
from astropy.units import *
from .auto_convert_add import convert_ufunc
from .em_system import RedefineNamespace
UnitBase.convert = convert
Quantity.convert = convert
set_active_units("hbar_c_eps0")
# Add functionality for auto converting compatible sums
Quantity.__array_ufunc__ = auto_convert_add.convert_ufunc
def set_active_em_system(mode): RedefineNamespace(mode, const)
set_active_em_system('si')
| 28.84 | 82 | 0.816921 | 99 | 721 | 5.636364 | 0.373737 | 0.064516 | 0.086022 | 0.082437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0016 | 0.133148 | 721 | 24 | 83 | 30.041667 | 0.8912 | 0.073509 | 0 | 0 | 0 | 0 | 0.020249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.625 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8b47e19712a9a0fe7a506e172470cbe4d27d71df | 123 | py | Python | src/configs.py | CaoHaoyuan/SReC | 457ac5799f9b1d68bcd1874462b3056be4aa0f83 | [
"MIT"
] | 951 | 2020-04-07T02:12:06.000Z | 2022-03-30T12:32:27.000Z | src/configs.py | CaoHaoyuan/SReC | 457ac5799f9b1d68bcd1874462b3056be4aa0f83 | [
"MIT"
] | 13 | 2020-04-07T16:00:32.000Z | 2021-10-10T14:04:22.000Z | src/configs.py | CaoHaoyuan/SReC | 457ac5799f9b1d68bcd1874462b3056be4aa0f83 | [
"MIT"
] | 85 | 2020-04-07T14:53:27.000Z | 2022-01-26T23:11:46.000Z | best_bpsp = float("inf")
n_feats = 64
scale = 3
resblocks = 3
K = 10
plot = ""
log_likelihood = True
collect_probs = False
| 13.666667 | 24 | 0.691057 | 20 | 123 | 4.05 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0.195122 | 123 | 8 | 25 | 15.375 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c6a30d0c3dcb1ee0b165db46d4bf2fc69ded13a | 235 | py | Python | tests/commands/ddtrace_run_disabled.py | tophatmonocle/dd-trace-py | 7db12f1c398c07cd5baf91c571aed672dbb6496d | [
"BSD-3-Clause"
] | 1 | 2019-11-24T23:09:29.000Z | 2019-11-24T23:09:29.000Z | tests/commands/ddtrace_run_disabled.py | tophatmonocle/dd-trace-py | 7db12f1c398c07cd5baf91c571aed672dbb6496d | [
"BSD-3-Clause"
] | null | null | null | tests/commands/ddtrace_run_disabled.py | tophatmonocle/dd-trace-py | 7db12f1c398c07cd5baf91c571aed672dbb6496d | [
"BSD-3-Clause"
] | 1 | 2021-01-24T13:44:57.000Z | 2021-01-24T13:44:57.000Z | from __future__ import print_function
from ddtrace import tracer, monkey
from nose.tools import ok_, eq_
if __name__ == '__main__':
ok_(not tracer.enabled)
eq_(len(monkey.get_patched_modules()), 0)
print("Test success")
| 21.363636 | 45 | 0.73617 | 33 | 235 | 4.666667 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.165957 | 235 | 10 | 46 | 23.5 | 0.780612 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8c79100d920139a338c4cbc57d77efc2e4f2e445 | 159 | py | Python | server/visualize/models/request_status.py | TDDD96-Kandidatgrupp-1-2020/Visual1ze | 84579b7d05343e8be9123e92fc606a967d5714c8 | [
"MIT"
] | 6 | 2020-05-25T13:30:55.000Z | 2021-11-08T13:00:01.000Z | server/visualize/models/request_status.py | matheus-bernat/Visual1ze | 84579b7d05343e8be9123e92fc606a967d5714c8 | [
"MIT"
] | null | null | null | server/visualize/models/request_status.py | matheus-bernat/Visual1ze | 84579b7d05343e8be9123e92fc606a967d5714c8 | [
"MIT"
] | 1 | 2021-03-30T14:38:40.000Z | 2021-03-30T14:38:40.000Z | """
Enum for approval states used in ag_request and room_request
"""
from enum import Enum
class RequestStatus(Enum):
PENDING = 0
DENIED = 1
APPROVED = 2
| 14.454545 | 60 | 0.72956 | 24 | 159 | 4.75 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.194969 | 159 | 10 | 61 | 15.9 | 0.867188 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
8c7a7a1902f652b12abc38e040b0f4c928d7525b | 12,010 | py | Python | stripstream/pddl/examples/belief/factored.py | nishadg246/stripstream-ivan-nishad | 9a275ae5836ee289cd09cbe6bc0ff6fd4a381135 | [
"MIT"
] | null | null | null | stripstream/pddl/examples/belief/factored.py | nishadg246/stripstream-ivan-nishad | 9a275ae5836ee289cd09cbe6bc0ff6fd4a381135 | [
"MIT"
] | null | null | null | stripstream/pddl/examples/belief/factored.py | nishadg246/stripstream-ivan-nishad | 9a275ae5836ee289cd09cbe6bc0ff6fd4a381135 | [
"MIT"
] | null | null | null | from stripstream.pddl.logic.operations import Initialize
from stripstream.pddl.streams import Stream
from stripstream.pddl.cond_streams import TestCondStream
from toyTest import Belief, glob, BBhAddBackBSetNew, UniformDist, DD, State, Bd, ObjLoc, makeOperators, objDictCopy, World, hpn, ObjState
#from bhpn.hpn.fbch import *
#import hpn
from stripstream.pddl.objects import EasyType as Type, EasyParameter as Param
from stripstream.pddl.logic.predicates import EasyPredicate as Predicate
from stripstream.pddl.operators import Action, Axiom
from stripstream.pddl.logic.connectives import And, Not
from stripstream.pddl.logic.quantifiers import Exists
from stripstream.pddl.cond_streams import EasyGenStream as GeneratorStream, EasyTestStream as TestStream
from stripstream.algorithms.incremental.incremental_planner import incremental_planner
from stripstream.algorithms.search.fast_downward import get_fast_downward
from stripstream.pddl.utils import convert_plan, rename_easy
from stripstream.pddl.problem import STRIPStreamProblem
from stripstream.pddl.examples.belief.utils import *
OBJ, POSE, BELIEF = Type(), Type(), Type()
DIST = Type()
At = Predicate(OBJ, POSE)
BAt = Predicate(OBJ, POSE, BELIEF)
BAtAbove = Predicate(OBJ, POSE, BELIEF)
Above = Predicate(BELIEF, BELIEF)
IsUpdate = Predicate(BELIEF, BELIEF)
IsPossible = Predicate(BELIEF, BELIEF)
IsClean = Predicate(DIST, DIST)
BClean = Predicate(OBJ, DIST)
BDirty = Predicate(OBJ, DIST) # TODO - I could just process this as one parameter
rename_easy(locals())
# NOTE - this is like transforming each position dist into a bernoulli distribution (don't do this for others)
# - this naturally ignores the interactions between objects which is good
# - well they still are slightly different. Gaussians have spacial properties. This leads to shadow objects
# - the spacial distribution of uncertainty is important in both. For Gaussians, the covariance. For us, the special cells
# 3 distribution update options
# - Always update all dists after an observation
# - Update one object's full dist
# - Update the mode and ignore the rest
# TODO - two versions. One reasons about object distributions directly and another reasons about free space
# Plans a sequence of look actions to get between two beliefs
"""
class BoundaryBelief(TestCondStream):
def __init__(self, oracle):
self.oracle = oracle
q1, q2 = P('q1', CONF), P('q2', CONF)
super(CollisionFreeTest, self).__init__([q1, q2], [], [
IsCollisionFree(q1, q2),
IsCollisionFree(q2, q1),
MoveCost(q1, q2), # TODO - need to specify the truth value
], eager=EAGER_COLLISION)
self.collision = collision_fn(oracle.env, oracle.robot, check_self=True) # q_collision_fn
self.extend = extend_fn(oracle.robot) # q_extend_fn
self.distance = distance_fn(oracle.robot)
class StreamFn(Stream):
max_distance = .5
handles = []
scale = 100 # The cost must be a nonnegative integer
def get_values(self, **kwargs):
self.enumerated = True
q1, q2 = self.inputs
d = self.cond_stream.distance(q1.value.value, q2.value.value)
if d > self.max_distance:
return []
for q in self.cond_stream.extend(q1.value.value, q2.value.value):
if self.cond_stream.collision(q):
return []
self.handles.append(draw_edge(self.cond_stream.oracle.env, q1.value.value, q2.value.value, color=(1, 0, 0, .5)))
cost = int(self.scale*d+1)
#return [IsCollisionFree(q1, q2), Initialize(MoveCost(q1, q2), )]
return [IsCollisionFree(q1, q2), IsCollisionFree(q2, q1),
Initialize(MoveCost(q1, q2), cost), Initialize(MoveCost(q2, q1), cost)]
"""
class PerfectLook(Action):
def __init__(self):
obj, p, prior = Param(OBJ), Param(POSE), Param(BELIEF)
post = 1
super(PerfectLook, self).__init__(self.__class__.__name__, [obj, p, prior],
And(
#At(obj, p),
BAt(obj, p, prior)),
And(
BAt(obj, p, 1),
Not(BAt(obj, p, prior))))
def executable(self, operators, (obj, p, _)):
executable_op = make_look(operators, obj, p)
executable_op.parent = self
return executable_op
# TODO - should I update all the probabilities?
# NOTE - make approximation that only want to believe more things and would not look intentionally to incidentally learn something
# TODO - combine the pose and belief as an object
# TODO - maybe I should instead just do forward search and guide using a determinized heuristic
class Look(Action):
def __init__(self, p_obs_t, p_obs_f=None, log_cost=False):
#self.p_obs_t = p_obs_t
#if p_obs_f is None: self.p_obs_f = 1 - p_obs_t
#self.log_cost = log_cost
cost = prob_cost(p_obs_t, log_cost=log_cost) # Conditions on successful observation
cost = None
obj, p, prior, post = Param(OBJ), Param(POSE), Param(BELIEF), Param(BELIEF)
super(Look, self).__init__(self.__class__.__name__, [obj, p, prior, post],
And(
#At(obj, p),
BAt(obj, p, prior),
IsUpdate(prior, post)),
And(
BAt(obj, p, post),
Not(BAt(obj, p, prior))), cost)
def executable(self, operators, (obj, p, prior, post)):
executable_op = make_look(operators, obj, p)
executable_op.parent = self
return executable_op # NOTE - because the look involves a particular object
class BackwardLook(Action):
def __init__(self, p_obs_t):
obj, p, prior, post = Param(OBJ), Param(POSE), Param(BELIEF), Param(BELIEF)
super(BackwardLook, self).__init__(self.__class__.__name__, [obj, p, prior, post],
And(
#At(obj, p),
BAt(obj, p, prior),
#BAtAbove(obj, p, prior), # Problem where we want to delete the old belief, but we need to include the reference belief
IsPossible(prior, post)),
And(
BAt(obj, p, post),
Not(BAt(obj, p, prior))))
def executable(self, operators, (obj, p, prior, post)):
executable_op = make_look(operators, obj, p)
executable_op.parent = self
return executable_op
# NOTE
# - Transition should move all the probability mass to first states
# - Well then how do you sample a belief state to move towards?
# - Yeah I'll have to factor the location and belief
# NOTE
# - I could just consider the movement of probability mass between the first and second state
# - The problem is that the full state needs to be updated when we do this
class Transport(Action): # NOTE - optimistic that no belief is lost
def __init__(self, min_safe_p=.95):
obj, p1, p2, b = Param(OBJ), Param(POSE), Param(POSE), Param(BELIEF)
Action.__init__(self, self.__class__.__name__, [obj, p1, p2, b],
And(
#At(obj, p1),
BAt(obj, p1, b),
BAtAbove(obj, p1, min_safe_p)),
And(
#At(obj, p2),
BAt(obj, p2, b),
#Not(At(obj, p1)),
Not(BAt(obj, p1, b))), cost=1)
def executable(self, operators, (obj, p1, p2, _)):
executable_op = make_transport(operators, obj, p1, p2)
executable_op.parent = self
return executable_op
class Clean(Action):
def __init__(self, min_safe_p=.95):
obj, d1, d2 = Param(OBJ), Param(DIST), Param(DIST)
Action.__init__(self, self.__class__.__name__, [obj, d],
And(
BClean(obj, d1),
IsClean(d1, d2),
#BAtAbove(obj, p1, min_safe_p)
),
And(
BClean(obj, d2),
#Not(At(obj, p1)),
Not(BClean(obj, d1))), cost=1)
def executable(self, operators, (obj, p1, p2, _)):
executable_op = make_wash(operators, obj)
executable_op.parent = self
return executable_op
##################################################
# Collision free values
# TODO - could also test if something is the MLO using a deferred literal
# TODO - allow choice of which world we live in as opposed to max likelihood
# TODO - sample belief state?
# TODO - do I want a deferred literal to test things or do I want to specify them all upfront?
def compile_belief(belief, goal):
locations, _, _ = maximum_likelihood_obs(belief)
constants = map(OBJ, belief.objLoc.keys()) + map(POSE, belief.occupancies.keys())
initial_atoms = []
#initial_atoms += [At(obj, p) for obj, p in locations.iteritems()]
initial_atoms += [BAt(obj, p, round(belief.objLocDist(obj).prob(p), 3)) for obj, p in locations.iteritems()] # NOTE - using the maximum belief here
goal_literals = []
for fluent in goal.fluents:
if isinstance(fluent, Bd):
literal, arg, prob = fluent.args
if isinstance(literal, ObjLoc):
goal_literals.append(BAtAbove(literal.args[0], literal.value, prob))
elif isinstance(literal, ObjState) and arg == 'clean':
goal_literals.append(BClean(literal.args[0], prob))
else:
raise NotImplementedError(literal)
else:
raise NotImplementedError(fluent)
O, P, B = Param(OBJ), Param(POSE), Param(BELIEF)
B1, B2 = Param(BELIEF), Param(BELIEF)
p_obs_t = 1 - glob.failProbs['Look']
p_obs_f = 1 - p_obs_t
#cost = prob_cost(p_obs_t) # This isn't informative
#cost = prob_cost(float(prior.name)*p_obs_t) # TODO - need to automatically derive the costs
actions = [
#PerfectLook(),
Look(p_obs_t),
#BackwardLook(p_obs_t),
Transport(),
]
axioms = [
Axiom(BAtAbove(O, P, B2), Exists([B1], And(BAt(O, P, B1), Above(B1, B2)))),
#Axiom(IsPossible(B1, B2), Exists([B], And(IsUpdate(B, B2), Above(B1, B)))), # NOTE - this only uses static facts
]
cond_streams = [
GeneratorStream(inputs=[B1], outputs=[B2], conditions=[], effects=[IsUpdate(B1, B2)],
generator=lambda b1: [round(forward_belief(b1, p_obs_t, p_obs_f), 3)]),
#GeneratorStream(inputs=[B2], outputs=[B1], conditions=[], effects=[IsUpdate(B1, B2)],
# generator=lambda b2: [round(inverse_belief(b2, p_obs_t, p_obs_f), 3)]), # NOTE - I previously used a Deferred Literal to produce the initial belief
#TestStream(inputs=[O, P, B1], conditions=[], effects=[BAt(O, P, B1)],
# test=lambda o, p, b: belief.objLocDist(o).prob(p) >= b, eager=True),
TestStream(inputs=[B1, B2], conditions=[], effects=[Above(B1, B2)],
test=lambda b1, b2: b1 >= b2, eager=True),
#TestStream(inputs=[B1, B2, B], conditions=[IsUpdate(B, B2), Above(B1, B)], effects=[IsPossible(B1, B2)],
# test=lambda *args: True, eager=True),
]
return STRIPStreamProblem(initial_atoms, goal_literals, actions + axioms, cond_streams, constants)
##################################################
def online_policy(operators, goal, only_first=True): # TODO - avoid translating/save some work
online_policy.last_plan = None
# TODO - might need to store the last dynamic problem
def fn(belief):
problem = compile_belief(belief, goal)
search = get_fast_downward('eager') # dijkstra | astar | wastar1 | wastar2 | wastar3 | eager | lazy
plan, _ = incremental_planner(problem, search=search, frequency=1)
print convert_plan(plan)
# TODO - need to apply axioms to do this
# TODO - need to also be careful that constants contains all the necessary constants if using quantifiers
"""
if goal_formula.holds(initial_atoms, constants):
return []
if bias_plan is not None:
# NOTE - testing if any subplan works is NP-Complete
#candidate_plans = [bias_plan[1:], bias_plan]
candidate_plans = [bias_plan[1:]]
for candidate_plan in candidate_plans:
instantiated_plan = [action.instantiate(args) for action, args in candidate_plan]
if len(instantiated_plan) >= 1:
if not isinstance(instantiated_plan[0], RefinableOperator) and \
is_valid_plan(initial_atoms, goal_formula, constants, instantiated_plan):
return candidate_plan
"""
plan = convert_plan(plan)
if plan is None or not plan:
return None
online_policy.last_plan = plan # TODO - use the next action on the last plan if it still is valid
action, params = plan[0]
return action.executable(operators, params)
return fn
| 41.130137 | 168 | 0.680516 | 1,678 | 12,010 | 4.725268 | 0.235995 | 0.01463 | 0.017026 | 0.009081 | 0.228907 | 0.219826 | 0.16055 | 0.108084 | 0.095598 | 0.095598 | 0 | 0.013713 | 0.198501 | 12,010 | 291 | 169 | 41.271478 | 0.809994 | 0.293589 | 0 | 0.261745 | 0 | 0 | 0.002226 | 0 | 0 | 0 | 0 | 0.013746 | 0 | 0 | null | null | 0 | 0.100671 | null | null | 0.006711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c7d7eee6e67930b00c1e2b6f8a1c0a6178da8c8 | 398 | py | Python | demo/manage.py | wfp/wfp-ui-reactjs | 5c33f9ea96d4cf49b0fd9c3214d30248506c8001 | [
"MIT"
] | 1 | 2018-04-05T06:49:49.000Z | 2018-04-05T06:49:49.000Z | demo/manage.py | wfp/wfp-ui-reactjs | 5c33f9ea96d4cf49b0fd9c3214d30248506c8001 | [
"MIT"
] | null | null | null | demo/manage.py | wfp/wfp-ui-reactjs | 5c33f9ea96d4cf49b0fd9c3214d30248506c8001 | [
"MIT"
] | 2 | 2018-06-08T12:02:10.000Z | 2020-12-12T04:53:46.000Z | #!/usr/bin/env python
import os
import sys
ROOT = os.path.abspath(os.path.dirname(__file__))
SRC = os.path.realpath(os.path.join(ROOT, 'src'))
sys.path.insert(0, SRC)
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wss_ui.settings._%s' % os.environ['USER'])
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| 28.428571 | 95 | 0.743719 | 61 | 398 | 4.491803 | 0.590164 | 0.087591 | 0.131387 | 0.160584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002817 | 0.10804 | 398 | 13 | 96 | 30.615385 | 0.769014 | 0.050251 | 0 | 0 | 0 | 0 | 0.148541 | 0.058355 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8c8a4995723d99a7264c11f0537650b66dd9190d | 68,324 | py | Python | glue/python/scaii/protos/scaii_pb2.py | SCAII/SCAII | 7ab302f788556392850d104d3df6e0b4a556414d | [
"BSD-3-Clause"
] | 1 | 2017-11-01T20:09:32.000Z | 2017-11-01T20:09:32.000Z | glue/python/scaii/protos/scaii_pb2.py | SCAII/SCAII | 7ab302f788556392850d104d3df6e0b4a556414d | [
"BSD-3-Clause"
] | 103 | 2017-09-14T17:04:53.000Z | 2018-08-15T22:52:32.000Z | glue/python/scaii/protos/scaii_pb2.py | SCAII/SCAII | 7ab302f788556392850d104d3df6e0b4a556414d | [
"BSD-3-Clause"
] | 6 | 2018-01-31T00:05:14.000Z | 2020-01-29T07:01:29.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: scaii.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
import scaii.protos.cfg_pb2 as cfg__pb2
import scaii.protos.viz_pb2 as viz__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='scaii.proto',
package='scaii.common',
syntax='proto2',
serialized_pb=_b('\n\x0bscaii.proto\x12\x0cscaii.common\x1a\tcfg.proto\x1a\tviz.proto\":\n\x0cMultiMessage\x12*\n\x07packets\x18\x01 \x03(\x0b\x32\x19.scaii.common.ScaiiPacket\"\xb8\x0b\n\x0bScaiiPacket\x12$\n\x05state\x18\x01 \x01(\x0b\x32\x13.scaii.common.StateH\x00\x12&\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32\x14.scaii.common.ActionH\x00\x12 \n\x03viz\x18\x03 \x01(\x0b\x32\x11.scaii.common.VizH\x00\x12\"\n\x03\x65rr\x18\x04 \x01(\x0b\x32\x13.scaii.common.ErrorH\x00\x12#\n\x06\x63onfig\x18\x05 \x01(\x0b\x32\x11.scaii.common.CfgH\x00\x12\x34\n\tsupported\x18\x06 \x01(\x0b\x32\x1f.scaii.common.SupportedBehaviorH\x00\x12\x35\n\x07ser_req\x18\x07 \x01(\x0b\x32\".scaii.common.SerializationRequestH\x00\x12\x37\n\x08ser_resp\x18\x08 \x01(\x0b\x32#.scaii.common.SerializationResponseH\x00\x12\x13\n\treset_env\x18\t \x01(\x08H\x00\x12)\n\x08viz_init\x18\n \x01(\x0b\x32\x15.scaii.common.VizInitH\x00\x12\x31\n\x0cuser_command\x18\x0b \x01(\x0b\x32\x19.scaii.common.UserCommandH\x00\x12/\n\x0breplay_step\x18\x0c \x01(\x0b\x32\x18.scaii.common.ReplayStepH\x00\x12\x31\n\x0ctest_control\x18\r \x01(\x0b\x32\x19.scaii.common.TestControlH\x00\x12\x33\n\rrecorder_step\x18\x0e \x01(\x0b\x32\x1a.scaii.common.RecorderStepH\x00\x12\x37\n\x0frecorder_config\x18\x0f \x01(\x0b\x32\x1c.scaii.common.RecorderConfigH\x00\x12\x33\n\rgame_complete\x18\x10 \x01(\x0b\x32\x1a.scaii.common.GameCompleteH\x00\x12\x42\n\x15replay_session_config\x18\x11 \x01(\x0b\x32!.scaii.common.ReplaySessionConfigH\x00\x12 \n\x03\x61\x63k\x18\x12 \x01(\x0b\x32\x11.scaii.common.AckH\x00\x12\x12\n\x08\x65mit_viz\x18\x13 \x01(\x08H\x00\x12&\n\x06record\x18\x14 \x01(\x0b\x32\x14.scaii.common.RecordH\x00\x12\x15\n\x0breplay_mode\x18\x15 \x01(\x08H\x00\x12\x30\n\x08\x65nv_desc\x18\x16 \x01(\x0b\x32\x1c.scaii.common.EnvDescriptionH\x00\x12\x38\n\x0c\x65xpl_details\x18\x17 \x01(\x0b\x32 .scaii.common.ExplanationDetailsH\x00\x12\x35\n\x0ereplay_control\x18\x18 \x01(\x0b\x32\x1b.scaii.common.ReplayControlH\x00\x12@\n\x14replay_choice_config\x18\x19 \x01(\x0b\x32 .scaii.common.ReplayChoiceConfigH\x00\x12\x37\n\x0fstudy_questions\x18\x1a \x01(\x0b\x32\x1c.scaii.common.StudyQuestionsH\x00\x12\x42\n\x15study_question_answer\x18\x1b \x01(\x0b\x32!.scaii.common.StudyQuestionAnswerH\x00\x12\x34\n\x0elog_file_entry\x18\x1c \x01(\x0b\x32\x1a.scaii.common.LogFileEntryH\x00\x12$\n\x05other\x18\x1d \x01(\x0b\x32\x13.scaii.common.OtherH\x00\x12#\n\x03src\x18\x1f \x02(\x0b\x32\x16.scaii.common.Endpoint\x12$\n\x04\x64\x65st\x18\x1e \x02(\x0b\x32\x16.scaii.common.EndpointB\x0e\n\x0cspecific_msg\"\x05\n\x03\x41\x63k\"\xb6\x02\n\x08\x45ndpoint\x12\x30\n\x07\x62\x61\x63kend\x18\x01 \x01(\x0b\x32\x1d.scaii.common.BackendEndpointH\x00\x12,\n\x05\x61gent\x18\x02 \x01(\x0b\x32\x1b.scaii.common.AgentEndpointH\x00\x12*\n\x04\x63ore\x18\x03 \x01(\x0b\x32\x1a.scaii.common.CoreEndpointH\x00\x12.\n\x06module\x18\x04 \x01(\x0b\x32\x1c.scaii.common.ModuleEndpointH\x00\x12.\n\x06replay\x18\x05 \x01(\x0b\x32\x1c.scaii.common.ReplayEndpointH\x00\x12\x32\n\x08recorder\x18\x06 \x01(\x0b\x32\x1e.scaii.common.RecorderEndpointH\x00\x42\n\n\x08\x65ndpoint\"\x0c\n\nReplayStep\"\x11\n\x0f\x42\x61\x63kendEndpoint\"\x0f\n\rAgentEndpoint\"\x0e\n\x0c\x43oreEndpoint\"\x1e\n\x0eModuleEndpoint\x12\x0c\n\x04name\x18\x01 \x02(\t\"\x10\n\x0eReplayEndpoint\"\x12\n\x10RecorderEndpoint\"\xdf\x01\n\x05State\x12\x10\n\x08\x66\x65\x61tures\x18\x01 \x03(\x01\x12\x1a\n\x12\x66\x65\x61ture_array_dims\x18\x02 \x03(\r\x12\x0e\n\x06reward\x18\x03 \x01(\x01\x12\x16\n\x0e\x65xpanded_state\x18\x04 \x01(\x0c\x12:\n\x0ctyped_reward\x18\x05 \x03(\x0b\x32$.scaii.common.State.TypedRewardEntry\x12\x10\n\x08terminal\x18\x06 \x02(\x08\x1a\x32\n\x10TypedRewardEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\"\x8e\x01\n\x06\x41\x63tion\x12\x18\n\x10\x64iscrete_actions\x18\x01 \x03(\x05\x12\x1a\n\x12\x63ontinuous_actions\x18\x02 \x03(\x01\x12\x19\n\x11\x61lternate_actions\x18\x03 \x01(\x0c\x12\x33\n\x0b\x65xplanation\x18\x04 \x01(\x0b\x32\x1e.scaii.common.ExplanationPoint\"F\n\x05\x45rror\x12\x13\n\x0b\x64\x65scription\x18\x01 \x02(\t\x12\x14\n\x05\x66\x61tal\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x12\n\nerror_info\x18\x03 \x01(\x0c\"\"\n\x05Other\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"I\n\x14SerializationRequest\x12\x31\n\x06\x66ormat\x18\x01 \x02(\x0e\x32!.scaii.common.SerializationFormat\"^\n\x15SerializationResponse\x12\x12\n\nserialized\x18\x01 \x02(\x0c\x12\x31\n\x06\x66ormat\x18\x02 \x02(\x0e\x32!.scaii.common.SerializationFormat\"\xa1\x02\n\x0bUserCommand\x12?\n\x0c\x63ommand_type\x18\x01 \x02(\x0e\x32).scaii.common.UserCommand.UserCommandType\x12\x0c\n\x04\x61rgs\x18\x02 \x03(\t\"\xc2\x01\n\x0fUserCommandType\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07\x45XPLAIN\x10\x01\x12\t\n\x05PAUSE\x10\x02\x12\n\n\x06RESUME\x10\x03\x12\n\n\x06REWIND\x10\x04\x12\x15\n\x11POLL_FOR_COMMANDS\x10\x05\x12\x10\n\x0cJUMP_TO_STEP\x10\x06\x12\x12\n\x0eJUMP_COMPLETED\x10\x07\x12\r\n\tSET_SPEED\x10\x08\x12\x0f\n\x0bSELECT_FILE\x10\t\x12\x18\n\x14SELECT_FILE_COMPLETE\x10\n\"\x1b\n\x0bTestControl\x12\x0c\n\x04\x61rgs\x18\x01 \x03(\t\"\x84\x01\n\x0cRecorderStep\x12$\n\x06\x61\x63tion\x18\x01 \x01(\x0b\x32\x14.scaii.common.Action\x12\x19\n\x11is_decision_point\x18\x02 \x02(\x08\x12\x33\n\x0b\x65xplanation\x18\x03 \x01(\x0b\x32\x1e.scaii.common.ExplanationPoint\"^\n\x0eRecorderConfig\x12\'\n\x04pkts\x18\x01 \x03(\x0b\x32\x19.scaii.common.ScaiiPacket\x12\x11\n\toverwrite\x18\x02 \x02(\x08\x12\x10\n\x08\x66ilepath\x18\x03 \x01(\t\"\x0e\n\x0cGameComplete\".\n\x12ReplayChoiceConfig\x12\x18\n\x10replay_filenames\x18\x01 \x03(\t\"\x96\x01\n\x13ReplaySessionConfig\x12\x12\n\nstep_count\x18\x01 \x02(\x03\x12\x19\n\x11\x65xplanation_steps\x18\x02 \x03(\r\x12\x1a\n\x12\x65xplanation_titles\x18\x03 \x03(\t\x12\x14\n\x0c\x63hart_titles\x18\x04 \x03(\t\x12\x1e\n\x16suppress_interactivity\x18\x05 \x02(\x08\"#\n\x06Record\x12\x19\n\x11keyframe_interval\x18\x01 \x02(\r\"~\n\x12\x45xplanationDetails\x12\x0c\n\x04step\x18\x01 \x01(\r\x12\x32\n\nexpl_point\x18\x02 \x01(\x0b\x32\x1e.scaii.common.ExplanationPoint\x12&\n\x05\x63hart\x18\x03 \x01(\x0b\x32\x17.scaii.common.ChartInfo\" \n\rReplayControl\x12\x0f\n\x07\x63ommand\x18\x01 \x03(\t*6\n\x13SerializationFormat\x12\r\n\tDIVERGING\x10\x00\x12\x10\n\x0cNONDIVERGING\x10\x01')
,
dependencies=[cfg__pb2.DESCRIPTOR,viz__pb2.DESCRIPTOR,])
_SERIALIZATIONFORMAT = _descriptor.EnumDescriptor(
name='SerializationFormat',
full_name='scaii.common.SerializationFormat',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='DIVERGING', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='NONDIVERGING', index=1, number=1,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=3652,
serialized_end=3706,
)
_sym_db.RegisterEnumDescriptor(_SERIALIZATIONFORMAT)
SerializationFormat = enum_type_wrapper.EnumTypeWrapper(_SERIALIZATIONFORMAT)
DIVERGING = 0
NONDIVERGING = 1
_USERCOMMAND_USERCOMMANDTYPE = _descriptor.EnumDescriptor(
name='UserCommandType',
full_name='scaii.common.UserCommand.UserCommandType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='NONE', index=0, number=0,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='EXPLAIN', index=1, number=1,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='PAUSE', index=2, number=2,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='RESUME', index=3, number=3,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='REWIND', index=4, number=4,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='POLL_FOR_COMMANDS', index=5, number=5,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='JUMP_TO_STEP', index=6, number=6,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='JUMP_COMPLETED', index=7, number=7,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SET_SPEED', index=8, number=8,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SELECT_FILE', index=9, number=9,
options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='SELECT_FILE_COMPLETE', index=10, number=10,
options=None,
type=None),
],
containing_type=None,
options=None,
serialized_start=2780,
serialized_end=2974,
)
_sym_db.RegisterEnumDescriptor(_USERCOMMAND_USERCOMMANDTYPE)
_MULTIMESSAGE = _descriptor.Descriptor(
name='MultiMessage',
full_name='scaii.common.MultiMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='packets', full_name='scaii.common.MultiMessage.packets', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=51,
serialized_end=109,
)
_SCAIIPACKET = _descriptor.Descriptor(
name='ScaiiPacket',
full_name='scaii.common.ScaiiPacket',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='state', full_name='scaii.common.ScaiiPacket.state', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='action', full_name='scaii.common.ScaiiPacket.action', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='viz', full_name='scaii.common.ScaiiPacket.viz', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='err', full_name='scaii.common.ScaiiPacket.err', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='config', full_name='scaii.common.ScaiiPacket.config', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='supported', full_name='scaii.common.ScaiiPacket.supported', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='ser_req', full_name='scaii.common.ScaiiPacket.ser_req', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='ser_resp', full_name='scaii.common.ScaiiPacket.ser_resp', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='reset_env', full_name='scaii.common.ScaiiPacket.reset_env', index=8,
number=9, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='viz_init', full_name='scaii.common.ScaiiPacket.viz_init', index=9,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='user_command', full_name='scaii.common.ScaiiPacket.user_command', index=10,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='replay_step', full_name='scaii.common.ScaiiPacket.replay_step', index=11,
number=12, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='test_control', full_name='scaii.common.ScaiiPacket.test_control', index=12,
number=13, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='recorder_step', full_name='scaii.common.ScaiiPacket.recorder_step', index=13,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='recorder_config', full_name='scaii.common.ScaiiPacket.recorder_config', index=14,
number=15, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='game_complete', full_name='scaii.common.ScaiiPacket.game_complete', index=15,
number=16, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='replay_session_config', full_name='scaii.common.ScaiiPacket.replay_session_config', index=16,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='ack', full_name='scaii.common.ScaiiPacket.ack', index=17,
number=18, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='emit_viz', full_name='scaii.common.ScaiiPacket.emit_viz', index=18,
number=19, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='record', full_name='scaii.common.ScaiiPacket.record', index=19,
number=20, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='replay_mode', full_name='scaii.common.ScaiiPacket.replay_mode', index=20,
number=21, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='env_desc', full_name='scaii.common.ScaiiPacket.env_desc', index=21,
number=22, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='expl_details', full_name='scaii.common.ScaiiPacket.expl_details', index=22,
number=23, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='replay_control', full_name='scaii.common.ScaiiPacket.replay_control', index=23,
number=24, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='replay_choice_config', full_name='scaii.common.ScaiiPacket.replay_choice_config', index=24,
number=25, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='study_questions', full_name='scaii.common.ScaiiPacket.study_questions', index=25,
number=26, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='study_question_answer', full_name='scaii.common.ScaiiPacket.study_question_answer', index=26,
number=27, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='log_file_entry', full_name='scaii.common.ScaiiPacket.log_file_entry', index=27,
number=28, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='other', full_name='scaii.common.ScaiiPacket.other', index=28,
number=29, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='src', full_name='scaii.common.ScaiiPacket.src', index=29,
number=31, type=11, cpp_type=10, label=2,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='dest', full_name='scaii.common.ScaiiPacket.dest', index=30,
number=30, type=11, cpp_type=10, label=2,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='specific_msg', full_name='scaii.common.ScaiiPacket.specific_msg',
index=0, containing_type=None, fields=[]),
],
serialized_start=112,
serialized_end=1576,
)
_ACK = _descriptor.Descriptor(
name='Ack',
full_name='scaii.common.Ack',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1578,
serialized_end=1583,
)
_ENDPOINT = _descriptor.Descriptor(
name='Endpoint',
full_name='scaii.common.Endpoint',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='backend', full_name='scaii.common.Endpoint.backend', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='agent', full_name='scaii.common.Endpoint.agent', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='core', full_name='scaii.common.Endpoint.core', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='module', full_name='scaii.common.Endpoint.module', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='replay', full_name='scaii.common.Endpoint.replay', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='recorder', full_name='scaii.common.Endpoint.recorder', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='endpoint', full_name='scaii.common.Endpoint.endpoint',
index=0, containing_type=None, fields=[]),
],
serialized_start=1586,
serialized_end=1896,
)
_REPLAYSTEP = _descriptor.Descriptor(
name='ReplayStep',
full_name='scaii.common.ReplayStep',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1898,
serialized_end=1910,
)
_BACKENDENDPOINT = _descriptor.Descriptor(
name='BackendEndpoint',
full_name='scaii.common.BackendEndpoint',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1912,
serialized_end=1929,
)
_AGENTENDPOINT = _descriptor.Descriptor(
name='AgentEndpoint',
full_name='scaii.common.AgentEndpoint',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1931,
serialized_end=1946,
)
_COREENDPOINT = _descriptor.Descriptor(
name='CoreEndpoint',
full_name='scaii.common.CoreEndpoint',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1948,
serialized_end=1962,
)
_MODULEENDPOINT = _descriptor.Descriptor(
name='ModuleEndpoint',
full_name='scaii.common.ModuleEndpoint',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='scaii.common.ModuleEndpoint.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1964,
serialized_end=1994,
)
_REPLAYENDPOINT = _descriptor.Descriptor(
name='ReplayEndpoint',
full_name='scaii.common.ReplayEndpoint',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1996,
serialized_end=2012,
)
_RECORDERENDPOINT = _descriptor.Descriptor(
name='RecorderEndpoint',
full_name='scaii.common.RecorderEndpoint',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2014,
serialized_end=2032,
)
_STATE_TYPEDREWARDENTRY = _descriptor.Descriptor(
name='TypedRewardEntry',
full_name='scaii.common.State.TypedRewardEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='scaii.common.State.TypedRewardEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='value', full_name='scaii.common.State.TypedRewardEntry.value', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2208,
serialized_end=2258,
)
_STATE = _descriptor.Descriptor(
name='State',
full_name='scaii.common.State',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='features', full_name='scaii.common.State.features', index=0,
number=1, type=1, cpp_type=5, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='feature_array_dims', full_name='scaii.common.State.feature_array_dims', index=1,
number=2, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='reward', full_name='scaii.common.State.reward', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='expanded_state', full_name='scaii.common.State.expanded_state', index=3,
number=4, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='typed_reward', full_name='scaii.common.State.typed_reward', index=4,
number=5, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='terminal', full_name='scaii.common.State.terminal', index=5,
number=6, type=8, cpp_type=7, label=2,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[_STATE_TYPEDREWARDENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2035,
serialized_end=2258,
)
_ACTION = _descriptor.Descriptor(
name='Action',
full_name='scaii.common.Action',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='discrete_actions', full_name='scaii.common.Action.discrete_actions', index=0,
number=1, type=5, cpp_type=1, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='continuous_actions', full_name='scaii.common.Action.continuous_actions', index=1,
number=2, type=1, cpp_type=5, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='alternate_actions', full_name='scaii.common.Action.alternate_actions', index=2,
number=3, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='explanation', full_name='scaii.common.Action.explanation', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2261,
serialized_end=2403,
)
_ERROR = _descriptor.Descriptor(
name='Error',
full_name='scaii.common.Error',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='description', full_name='scaii.common.Error.description', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='fatal', full_name='scaii.common.Error.fatal', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='error_info', full_name='scaii.common.Error.error_info', index=2,
number=3, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2405,
serialized_end=2475,
)
_OTHER = _descriptor.Descriptor(
name='Other',
full_name='scaii.common.Other',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='scaii.common.Other.name', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='msg', full_name='scaii.common.Other.msg', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2477,
serialized_end=2511,
)
_SERIALIZATIONREQUEST = _descriptor.Descriptor(
name='SerializationRequest',
full_name='scaii.common.SerializationRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='format', full_name='scaii.common.SerializationRequest.format', index=0,
number=1, type=14, cpp_type=8, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2513,
serialized_end=2586,
)
_SERIALIZATIONRESPONSE = _descriptor.Descriptor(
name='SerializationResponse',
full_name='scaii.common.SerializationResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='serialized', full_name='scaii.common.SerializationResponse.serialized', index=0,
number=1, type=12, cpp_type=9, label=2,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='format', full_name='scaii.common.SerializationResponse.format', index=1,
number=2, type=14, cpp_type=8, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2588,
serialized_end=2682,
)
_USERCOMMAND = _descriptor.Descriptor(
name='UserCommand',
full_name='scaii.common.UserCommand',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='command_type', full_name='scaii.common.UserCommand.command_type', index=0,
number=1, type=14, cpp_type=8, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='args', full_name='scaii.common.UserCommand.args', index=1,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
_USERCOMMAND_USERCOMMANDTYPE,
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2685,
serialized_end=2974,
)
_TESTCONTROL = _descriptor.Descriptor(
name='TestControl',
full_name='scaii.common.TestControl',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='args', full_name='scaii.common.TestControl.args', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2976,
serialized_end=3003,
)
_RECORDERSTEP = _descriptor.Descriptor(
name='RecorderStep',
full_name='scaii.common.RecorderStep',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='action', full_name='scaii.common.RecorderStep.action', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='is_decision_point', full_name='scaii.common.RecorderStep.is_decision_point', index=1,
number=2, type=8, cpp_type=7, label=2,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='explanation', full_name='scaii.common.RecorderStep.explanation', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3006,
serialized_end=3138,
)
_RECORDERCONFIG = _descriptor.Descriptor(
name='RecorderConfig',
full_name='scaii.common.RecorderConfig',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='pkts', full_name='scaii.common.RecorderConfig.pkts', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='overwrite', full_name='scaii.common.RecorderConfig.overwrite', index=1,
number=2, type=8, cpp_type=7, label=2,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='filepath', full_name='scaii.common.RecorderConfig.filepath', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3140,
serialized_end=3234,
)
_GAMECOMPLETE = _descriptor.Descriptor(
name='GameComplete',
full_name='scaii.common.GameComplete',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3236,
serialized_end=3250,
)
_REPLAYCHOICECONFIG = _descriptor.Descriptor(
name='ReplayChoiceConfig',
full_name='scaii.common.ReplayChoiceConfig',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='replay_filenames', full_name='scaii.common.ReplayChoiceConfig.replay_filenames', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3252,
serialized_end=3298,
)
_REPLAYSESSIONCONFIG = _descriptor.Descriptor(
name='ReplaySessionConfig',
full_name='scaii.common.ReplaySessionConfig',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='step_count', full_name='scaii.common.ReplaySessionConfig.step_count', index=0,
number=1, type=3, cpp_type=2, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='explanation_steps', full_name='scaii.common.ReplaySessionConfig.explanation_steps', index=1,
number=2, type=13, cpp_type=3, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='explanation_titles', full_name='scaii.common.ReplaySessionConfig.explanation_titles', index=2,
number=3, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='chart_titles', full_name='scaii.common.ReplaySessionConfig.chart_titles', index=3,
number=4, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='suppress_interactivity', full_name='scaii.common.ReplaySessionConfig.suppress_interactivity', index=4,
number=5, type=8, cpp_type=7, label=2,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3301,
serialized_end=3451,
)
_RECORD = _descriptor.Descriptor(
name='Record',
full_name='scaii.common.Record',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='keyframe_interval', full_name='scaii.common.Record.keyframe_interval', index=0,
number=1, type=13, cpp_type=3, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3453,
serialized_end=3488,
)
_EXPLANATIONDETAILS = _descriptor.Descriptor(
name='ExplanationDetails',
full_name='scaii.common.ExplanationDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='step', full_name='scaii.common.ExplanationDetails.step', index=0,
number=1, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='expl_point', full_name='scaii.common.ExplanationDetails.expl_point', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='chart', full_name='scaii.common.ExplanationDetails.chart', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3490,
serialized_end=3616,
)
_REPLAYCONTROL = _descriptor.Descriptor(
name='ReplayControl',
full_name='scaii.common.ReplayControl',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='command', full_name='scaii.common.ReplayControl.command', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3618,
serialized_end=3650,
)
_MULTIMESSAGE.fields_by_name['packets'].message_type = _SCAIIPACKET
_SCAIIPACKET.fields_by_name['state'].message_type = _STATE
_SCAIIPACKET.fields_by_name['action'].message_type = _ACTION
_SCAIIPACKET.fields_by_name['viz'].message_type = viz__pb2._VIZ
_SCAIIPACKET.fields_by_name['err'].message_type = _ERROR
_SCAIIPACKET.fields_by_name['config'].message_type = cfg__pb2._CFG
_SCAIIPACKET.fields_by_name['supported'].message_type = cfg__pb2._SUPPORTEDBEHAVIOR
_SCAIIPACKET.fields_by_name['ser_req'].message_type = _SERIALIZATIONREQUEST
_SCAIIPACKET.fields_by_name['ser_resp'].message_type = _SERIALIZATIONRESPONSE
_SCAIIPACKET.fields_by_name['viz_init'].message_type = viz__pb2._VIZINIT
_SCAIIPACKET.fields_by_name['user_command'].message_type = _USERCOMMAND
_SCAIIPACKET.fields_by_name['replay_step'].message_type = _REPLAYSTEP
_SCAIIPACKET.fields_by_name['test_control'].message_type = _TESTCONTROL
_SCAIIPACKET.fields_by_name['recorder_step'].message_type = _RECORDERSTEP
_SCAIIPACKET.fields_by_name['recorder_config'].message_type = _RECORDERCONFIG
_SCAIIPACKET.fields_by_name['game_complete'].message_type = _GAMECOMPLETE
_SCAIIPACKET.fields_by_name['replay_session_config'].message_type = _REPLAYSESSIONCONFIG
_SCAIIPACKET.fields_by_name['ack'].message_type = _ACK
_SCAIIPACKET.fields_by_name['record'].message_type = _RECORD
_SCAIIPACKET.fields_by_name['env_desc'].message_type = cfg__pb2._ENVDESCRIPTION
_SCAIIPACKET.fields_by_name['expl_details'].message_type = _EXPLANATIONDETAILS
_SCAIIPACKET.fields_by_name['replay_control'].message_type = _REPLAYCONTROL
_SCAIIPACKET.fields_by_name['replay_choice_config'].message_type = _REPLAYCHOICECONFIG
_SCAIIPACKET.fields_by_name['study_questions'].message_type = viz__pb2._STUDYQUESTIONS
_SCAIIPACKET.fields_by_name['study_question_answer'].message_type = viz__pb2._STUDYQUESTIONANSWER
_SCAIIPACKET.fields_by_name['log_file_entry'].message_type = viz__pb2._LOGFILEENTRY
_SCAIIPACKET.fields_by_name['other'].message_type = _OTHER
_SCAIIPACKET.fields_by_name['src'].message_type = _ENDPOINT
_SCAIIPACKET.fields_by_name['dest'].message_type = _ENDPOINT
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['state'])
_SCAIIPACKET.fields_by_name['state'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['action'])
_SCAIIPACKET.fields_by_name['action'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['viz'])
_SCAIIPACKET.fields_by_name['viz'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['err'])
_SCAIIPACKET.fields_by_name['err'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['config'])
_SCAIIPACKET.fields_by_name['config'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['supported'])
_SCAIIPACKET.fields_by_name['supported'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['ser_req'])
_SCAIIPACKET.fields_by_name['ser_req'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['ser_resp'])
_SCAIIPACKET.fields_by_name['ser_resp'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['reset_env'])
_SCAIIPACKET.fields_by_name['reset_env'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['viz_init'])
_SCAIIPACKET.fields_by_name['viz_init'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['user_command'])
_SCAIIPACKET.fields_by_name['user_command'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['replay_step'])
_SCAIIPACKET.fields_by_name['replay_step'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['test_control'])
_SCAIIPACKET.fields_by_name['test_control'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['recorder_step'])
_SCAIIPACKET.fields_by_name['recorder_step'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['recorder_config'])
_SCAIIPACKET.fields_by_name['recorder_config'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['game_complete'])
_SCAIIPACKET.fields_by_name['game_complete'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['replay_session_config'])
_SCAIIPACKET.fields_by_name['replay_session_config'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['ack'])
_SCAIIPACKET.fields_by_name['ack'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['emit_viz'])
_SCAIIPACKET.fields_by_name['emit_viz'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['record'])
_SCAIIPACKET.fields_by_name['record'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['replay_mode'])
_SCAIIPACKET.fields_by_name['replay_mode'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['env_desc'])
_SCAIIPACKET.fields_by_name['env_desc'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['expl_details'])
_SCAIIPACKET.fields_by_name['expl_details'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['replay_control'])
_SCAIIPACKET.fields_by_name['replay_control'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['replay_choice_config'])
_SCAIIPACKET.fields_by_name['replay_choice_config'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['study_questions'])
_SCAIIPACKET.fields_by_name['study_questions'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['study_question_answer'])
_SCAIIPACKET.fields_by_name['study_question_answer'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['log_file_entry'])
_SCAIIPACKET.fields_by_name['log_file_entry'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_SCAIIPACKET.oneofs_by_name['specific_msg'].fields.append(
_SCAIIPACKET.fields_by_name['other'])
_SCAIIPACKET.fields_by_name['other'].containing_oneof = _SCAIIPACKET.oneofs_by_name['specific_msg']
_ENDPOINT.fields_by_name['backend'].message_type = _BACKENDENDPOINT
_ENDPOINT.fields_by_name['agent'].message_type = _AGENTENDPOINT
_ENDPOINT.fields_by_name['core'].message_type = _COREENDPOINT
_ENDPOINT.fields_by_name['module'].message_type = _MODULEENDPOINT
_ENDPOINT.fields_by_name['replay'].message_type = _REPLAYENDPOINT
_ENDPOINT.fields_by_name['recorder'].message_type = _RECORDERENDPOINT
_ENDPOINT.oneofs_by_name['endpoint'].fields.append(
_ENDPOINT.fields_by_name['backend'])
_ENDPOINT.fields_by_name['backend'].containing_oneof = _ENDPOINT.oneofs_by_name['endpoint']
_ENDPOINT.oneofs_by_name['endpoint'].fields.append(
_ENDPOINT.fields_by_name['agent'])
_ENDPOINT.fields_by_name['agent'].containing_oneof = _ENDPOINT.oneofs_by_name['endpoint']
_ENDPOINT.oneofs_by_name['endpoint'].fields.append(
_ENDPOINT.fields_by_name['core'])
_ENDPOINT.fields_by_name['core'].containing_oneof = _ENDPOINT.oneofs_by_name['endpoint']
_ENDPOINT.oneofs_by_name['endpoint'].fields.append(
_ENDPOINT.fields_by_name['module'])
_ENDPOINT.fields_by_name['module'].containing_oneof = _ENDPOINT.oneofs_by_name['endpoint']
_ENDPOINT.oneofs_by_name['endpoint'].fields.append(
_ENDPOINT.fields_by_name['replay'])
_ENDPOINT.fields_by_name['replay'].containing_oneof = _ENDPOINT.oneofs_by_name['endpoint']
_ENDPOINT.oneofs_by_name['endpoint'].fields.append(
_ENDPOINT.fields_by_name['recorder'])
_ENDPOINT.fields_by_name['recorder'].containing_oneof = _ENDPOINT.oneofs_by_name['endpoint']
_STATE_TYPEDREWARDENTRY.containing_type = _STATE
_STATE.fields_by_name['typed_reward'].message_type = _STATE_TYPEDREWARDENTRY
_ACTION.fields_by_name['explanation'].message_type = viz__pb2._EXPLANATIONPOINT
_SERIALIZATIONREQUEST.fields_by_name['format'].enum_type = _SERIALIZATIONFORMAT
_SERIALIZATIONRESPONSE.fields_by_name['format'].enum_type = _SERIALIZATIONFORMAT
_USERCOMMAND.fields_by_name['command_type'].enum_type = _USERCOMMAND_USERCOMMANDTYPE
_USERCOMMAND_USERCOMMANDTYPE.containing_type = _USERCOMMAND
_RECORDERSTEP.fields_by_name['action'].message_type = _ACTION
_RECORDERSTEP.fields_by_name['explanation'].message_type = viz__pb2._EXPLANATIONPOINT
_RECORDERCONFIG.fields_by_name['pkts'].message_type = _SCAIIPACKET
_EXPLANATIONDETAILS.fields_by_name['expl_point'].message_type = viz__pb2._EXPLANATIONPOINT
_EXPLANATIONDETAILS.fields_by_name['chart'].message_type = viz__pb2._CHARTINFO
DESCRIPTOR.message_types_by_name['MultiMessage'] = _MULTIMESSAGE
DESCRIPTOR.message_types_by_name['ScaiiPacket'] = _SCAIIPACKET
DESCRIPTOR.message_types_by_name['Ack'] = _ACK
DESCRIPTOR.message_types_by_name['Endpoint'] = _ENDPOINT
DESCRIPTOR.message_types_by_name['ReplayStep'] = _REPLAYSTEP
DESCRIPTOR.message_types_by_name['BackendEndpoint'] = _BACKENDENDPOINT
DESCRIPTOR.message_types_by_name['AgentEndpoint'] = _AGENTENDPOINT
DESCRIPTOR.message_types_by_name['CoreEndpoint'] = _COREENDPOINT
DESCRIPTOR.message_types_by_name['ModuleEndpoint'] = _MODULEENDPOINT
DESCRIPTOR.message_types_by_name['ReplayEndpoint'] = _REPLAYENDPOINT
DESCRIPTOR.message_types_by_name['RecorderEndpoint'] = _RECORDERENDPOINT
DESCRIPTOR.message_types_by_name['State'] = _STATE
DESCRIPTOR.message_types_by_name['Action'] = _ACTION
DESCRIPTOR.message_types_by_name['Error'] = _ERROR
DESCRIPTOR.message_types_by_name['Other'] = _OTHER
DESCRIPTOR.message_types_by_name['SerializationRequest'] = _SERIALIZATIONREQUEST
DESCRIPTOR.message_types_by_name['SerializationResponse'] = _SERIALIZATIONRESPONSE
DESCRIPTOR.message_types_by_name['UserCommand'] = _USERCOMMAND
DESCRIPTOR.message_types_by_name['TestControl'] = _TESTCONTROL
DESCRIPTOR.message_types_by_name['RecorderStep'] = _RECORDERSTEP
DESCRIPTOR.message_types_by_name['RecorderConfig'] = _RECORDERCONFIG
DESCRIPTOR.message_types_by_name['GameComplete'] = _GAMECOMPLETE
DESCRIPTOR.message_types_by_name['ReplayChoiceConfig'] = _REPLAYCHOICECONFIG
DESCRIPTOR.message_types_by_name['ReplaySessionConfig'] = _REPLAYSESSIONCONFIG
DESCRIPTOR.message_types_by_name['Record'] = _RECORD
DESCRIPTOR.message_types_by_name['ExplanationDetails'] = _EXPLANATIONDETAILS
DESCRIPTOR.message_types_by_name['ReplayControl'] = _REPLAYCONTROL
DESCRIPTOR.enum_types_by_name['SerializationFormat'] = _SERIALIZATIONFORMAT
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
MultiMessage = _reflection.GeneratedProtocolMessageType('MultiMessage', (_message.Message,), dict(
DESCRIPTOR = _MULTIMESSAGE,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.MultiMessage)
))
_sym_db.RegisterMessage(MultiMessage)
ScaiiPacket = _reflection.GeneratedProtocolMessageType('ScaiiPacket', (_message.Message,), dict(
DESCRIPTOR = _SCAIIPACKET,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.ScaiiPacket)
))
_sym_db.RegisterMessage(ScaiiPacket)
Ack = _reflection.GeneratedProtocolMessageType('Ack', (_message.Message,), dict(
DESCRIPTOR = _ACK,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.Ack)
))
_sym_db.RegisterMessage(Ack)
Endpoint = _reflection.GeneratedProtocolMessageType('Endpoint', (_message.Message,), dict(
DESCRIPTOR = _ENDPOINT,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.Endpoint)
))
_sym_db.RegisterMessage(Endpoint)
ReplayStep = _reflection.GeneratedProtocolMessageType('ReplayStep', (_message.Message,), dict(
DESCRIPTOR = _REPLAYSTEP,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.ReplayStep)
))
_sym_db.RegisterMessage(ReplayStep)
BackendEndpoint = _reflection.GeneratedProtocolMessageType('BackendEndpoint', (_message.Message,), dict(
DESCRIPTOR = _BACKENDENDPOINT,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.BackendEndpoint)
))
_sym_db.RegisterMessage(BackendEndpoint)
AgentEndpoint = _reflection.GeneratedProtocolMessageType('AgentEndpoint', (_message.Message,), dict(
DESCRIPTOR = _AGENTENDPOINT,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.AgentEndpoint)
))
_sym_db.RegisterMessage(AgentEndpoint)
CoreEndpoint = _reflection.GeneratedProtocolMessageType('CoreEndpoint', (_message.Message,), dict(
DESCRIPTOR = _COREENDPOINT,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.CoreEndpoint)
))
_sym_db.RegisterMessage(CoreEndpoint)
ModuleEndpoint = _reflection.GeneratedProtocolMessageType('ModuleEndpoint', (_message.Message,), dict(
DESCRIPTOR = _MODULEENDPOINT,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.ModuleEndpoint)
))
_sym_db.RegisterMessage(ModuleEndpoint)
ReplayEndpoint = _reflection.GeneratedProtocolMessageType('ReplayEndpoint', (_message.Message,), dict(
DESCRIPTOR = _REPLAYENDPOINT,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.ReplayEndpoint)
))
_sym_db.RegisterMessage(ReplayEndpoint)
RecorderEndpoint = _reflection.GeneratedProtocolMessageType('RecorderEndpoint', (_message.Message,), dict(
DESCRIPTOR = _RECORDERENDPOINT,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.RecorderEndpoint)
))
_sym_db.RegisterMessage(RecorderEndpoint)
State = _reflection.GeneratedProtocolMessageType('State', (_message.Message,), dict(
TypedRewardEntry = _reflection.GeneratedProtocolMessageType('TypedRewardEntry', (_message.Message,), dict(
DESCRIPTOR = _STATE_TYPEDREWARDENTRY,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.State.TypedRewardEntry)
))
,
DESCRIPTOR = _STATE,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.State)
))
_sym_db.RegisterMessage(State)
_sym_db.RegisterMessage(State.TypedRewardEntry)
Action = _reflection.GeneratedProtocolMessageType('Action', (_message.Message,), dict(
DESCRIPTOR = _ACTION,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.Action)
))
_sym_db.RegisterMessage(Action)
Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), dict(
DESCRIPTOR = _ERROR,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.Error)
))
_sym_db.RegisterMessage(Error)
Other = _reflection.GeneratedProtocolMessageType('Other', (_message.Message,), dict(
DESCRIPTOR = _OTHER,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.Other)
))
_sym_db.RegisterMessage(Other)
SerializationRequest = _reflection.GeneratedProtocolMessageType('SerializationRequest', (_message.Message,), dict(
DESCRIPTOR = _SERIALIZATIONREQUEST,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.SerializationRequest)
))
_sym_db.RegisterMessage(SerializationRequest)
SerializationResponse = _reflection.GeneratedProtocolMessageType('SerializationResponse', (_message.Message,), dict(
DESCRIPTOR = _SERIALIZATIONRESPONSE,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.SerializationResponse)
))
_sym_db.RegisterMessage(SerializationResponse)
UserCommand = _reflection.GeneratedProtocolMessageType('UserCommand', (_message.Message,), dict(
DESCRIPTOR = _USERCOMMAND,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.UserCommand)
))
_sym_db.RegisterMessage(UserCommand)
TestControl = _reflection.GeneratedProtocolMessageType('TestControl', (_message.Message,), dict(
DESCRIPTOR = _TESTCONTROL,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.TestControl)
))
_sym_db.RegisterMessage(TestControl)
RecorderStep = _reflection.GeneratedProtocolMessageType('RecorderStep', (_message.Message,), dict(
DESCRIPTOR = _RECORDERSTEP,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.RecorderStep)
))
_sym_db.RegisterMessage(RecorderStep)
RecorderConfig = _reflection.GeneratedProtocolMessageType('RecorderConfig', (_message.Message,), dict(
DESCRIPTOR = _RECORDERCONFIG,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.RecorderConfig)
))
_sym_db.RegisterMessage(RecorderConfig)
GameComplete = _reflection.GeneratedProtocolMessageType('GameComplete', (_message.Message,), dict(
DESCRIPTOR = _GAMECOMPLETE,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.GameComplete)
))
_sym_db.RegisterMessage(GameComplete)
ReplayChoiceConfig = _reflection.GeneratedProtocolMessageType('ReplayChoiceConfig', (_message.Message,), dict(
DESCRIPTOR = _REPLAYCHOICECONFIG,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.ReplayChoiceConfig)
))
_sym_db.RegisterMessage(ReplayChoiceConfig)
ReplaySessionConfig = _reflection.GeneratedProtocolMessageType('ReplaySessionConfig', (_message.Message,), dict(
DESCRIPTOR = _REPLAYSESSIONCONFIG,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.ReplaySessionConfig)
))
_sym_db.RegisterMessage(ReplaySessionConfig)
Record = _reflection.GeneratedProtocolMessageType('Record', (_message.Message,), dict(
DESCRIPTOR = _RECORD,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.Record)
))
_sym_db.RegisterMessage(Record)
ExplanationDetails = _reflection.GeneratedProtocolMessageType('ExplanationDetails', (_message.Message,), dict(
DESCRIPTOR = _EXPLANATIONDETAILS,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.ExplanationDetails)
))
_sym_db.RegisterMessage(ExplanationDetails)
ReplayControl = _reflection.GeneratedProtocolMessageType('ReplayControl', (_message.Message,), dict(
DESCRIPTOR = _REPLAYCONTROL,
__module__ = 'scaii_pb2'
# @@protoc_insertion_point(class_scope:scaii.common.ReplayControl)
))
_sym_db.RegisterMessage(ReplayControl)
_STATE_TYPEDREWARDENTRY.has_options = True
_STATE_TYPEDREWARDENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
# @@protoc_insertion_point(module_scope)
| 39.539352 | 6,331 | 0.752474 | 8,571 | 68,324 | 5.680317 | 0.060786 | 0.046338 | 0.028345 | 0.043318 | 0.704001 | 0.617857 | 0.554862 | 0.531652 | 0.518897 | 0.510044 | 0 | 0.039231 | 0.118787 | 68,324 | 1,727 | 6,332 | 39.562247 | 0.769399 | 0.028555 | 0 | 0.6404 | 1 | 0.001876 | 0.208125 | 0.143262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005629 | 0 | 0.005629 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8c90bfe74f26631ca718e2109ae744ee0db50213 | 358 | py | Python | test/torchaudio_unittest/transforms/autograd_cuda_test.py | popcornell/audio | 7b6b2d000023e2aa3365b769866c5f375e0d5fda | [
"BSD-2-Clause"
] | 1,718 | 2017-05-05T01:15:00.000Z | 2022-03-31T10:33:51.000Z | test/torchaudio_unittest/transforms/autograd_cuda_test.py | popcornell/audio | 7b6b2d000023e2aa3365b769866c5f375e0d5fda | [
"BSD-2-Clause"
] | 1,590 | 2017-05-07T18:38:39.000Z | 2022-03-31T22:22:10.000Z | test/torchaudio_unittest/transforms/autograd_cuda_test.py | popcornell/audio | 7b6b2d000023e2aa3365b769866c5f375e0d5fda | [
"BSD-2-Clause"
] | 464 | 2017-05-05T04:42:43.000Z | 2022-03-29T20:32:00.000Z | from torchaudio_unittest.common_utils import (
PytorchTestCase,
skipIfNoCuda,
)
from .autograd_test_impl import AutogradTestMixin, AutogradTestFloat32
@skipIfNoCuda
class AutogradCUDATest(AutogradTestMixin, PytorchTestCase):
device = "cuda"
@skipIfNoCuda
class AutogradRNNTCUDATest(AutogradTestFloat32, PytorchTestCase):
device = "cuda"
| 21.058824 | 70 | 0.804469 | 29 | 358 | 9.793103 | 0.62069 | 0.119718 | 0.176056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012862 | 0.131285 | 358 | 16 | 71 | 22.375 | 0.900322 | 0 | 0 | 0.363636 | 0 | 0 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.545455 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8c9f42b861cfd4e0b05932e239e5668e934617b3 | 283 | py | Python | s1/py/sum.py | lisiynos/lisiynos.github.io | 5900ee6ab0055a8047dd2b54b8667d05f3a145c2 | [
"MIT"
] | 1 | 2019-03-02T17:20:25.000Z | 2019-03-02T17:20:25.000Z | s1/py/sum.py | lisiynos/lisiynos.github.io | 5900ee6ab0055a8047dd2b54b8667d05f3a145c2 | [
"MIT"
] | null | null | null | s1/py/sum.py | lisiynos/lisiynos.github.io | 5900ee6ab0055a8047dd2b54b8667d05f3a145c2 | [
"MIT"
] | null | null | null | # ~*~ utf-8 ~*~
import sys
sys.stdin = open("sum.in") # Закомментируйте эту строку для ввода с клавиатуры
sys.stdout = open("sum.out", "w") # Закомментрируйте эту строку для вывода на экран
A, B = int(input()), int(input()) # Вводим 2 целых A и B (они в разных строках)
print (A + B) | 47.166667 | 83 | 0.674912 | 48 | 283 | 3.979167 | 0.729167 | 0.073298 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008511 | 0.169611 | 283 | 6 | 84 | 47.166667 | 0.804255 | 0.547703 | 0 | 0 | 0 | 0 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cb14550e5976f1fa97da19a090f15266e8c428b | 271 | py | Python | pyclesperanto_prototype/__init__.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | 2 | 2020-07-01T06:20:44.000Z | 2020-07-01T09:36:48.000Z | pyclesperanto_prototype/__init__.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | null | null | null | pyclesperanto_prototype/__init__.py | elsandal/pyclesperanto_prototype | 7bda828813b86b44b63d73d5e8f466d9769cded1 | [
"BSD-3-Clause"
] | 1 | 2020-06-29T18:40:54.000Z | 2020-06-29T18:40:54.000Z | from ._tier0 import *
from ._tier1 import *
from ._tier2 import *
from ._tier3 import *
from ._tier4 import *
from ._tier5 import *
from ._tier8 import *
from ._tier9 import *
from ._tier10 import *
from ._tier11 import *
__version__ = "0.12.0"
__common_alias__ = "cle"
| 19.357143 | 24 | 0.723247 | 37 | 271 | 4.783784 | 0.486486 | 0.508475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.173432 | 271 | 13 | 25 | 20.846154 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0.03321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
8cb664e5a6bb20a7c801e477bf80f0cb17d550e5 | 2,065 | py | Python | File/Generate Instances into one Glyphs file.py | Manuel87/GlyphsApp-Scripts | e77b8526c52f306ebfb206d18f983c9050677fbb | [
"Apache-2.0"
] | null | null | null | File/Generate Instances into one Glyphs file.py | Manuel87/GlyphsApp-Scripts | e77b8526c52f306ebfb206d18f983c9050677fbb | [
"Apache-2.0"
] | null | null | null | File/Generate Instances into one Glyphs file.py | Manuel87/GlyphsApp-Scripts | e77b8526c52f306ebfb206d18f983c9050677fbb | [
"Apache-2.0"
] | null | null | null | #MenuTitle: Generate Instances into one .glyphs file
# -*- coding: utf-8 -*-
__doc__="""
Generate all active Instances into a single .glyphs file, while keeping all inactive instances intact – e.g. to reset the weight of the current 'Regular' Master.
Notes
- CAUTION: not sure what happens to brace and bracket layers with this
"""
# Author: Manuel von Gebhardi
import GlyphsApp
original_font = Glyphs.fonts[0]
instances_as_fonts = []
all_original_instances = []
for instance in original_font.instances:
if (instance.active):
instance_font = instance.interpolatedFont
# Current workaround to avoid the not-so-clever automatic naming
# General suggestion to Georg: disable the automatic naming and instead add a separate name-field for master!
instance_font.masters[0].weight = "Regular" #instance.weight # avoiding strange namings
instance_font.masters[0].width = "Regular" #instance.width # avoiding strange namings
instance_font.masters[0].italicAngle = 0 #solving naming issue with "italic italic"//original value needs to be manually entered after the script :/ #temp_angle = instance_font.masters[0].italicAngle #
# Copy Interpolation Values
instance_font.masters[0].weightValue = instance.weightValue
instance_font.masters[0].widthValue = instance.widthValue
instance_font.masters[0].customValue = instance.customValue
# Name
instance_font.masters[0].customName = instance.name
print instance_font.masters[0].customName
print instance_font.masters[0].weightValue
instances_as_fonts.append(instance_font)
all_original_instances.append(instance)
# Create new Glyphs File
Glyphs.fonts.append(instances_as_fonts[0])
new_font = Glyphs.fonts[0]
# Add new Masters, except first (already there)
for i in range(1,len(instances_as_fonts)): # 1 instead of 0, hence adding all except the first one
new_font.addFontAsNewMaster_(instances_as_fonts[i].masters[0])
# Add all original instances
new_font.instances = () # empty Instances first
for instance in all_original_instances:
new_font.instances.append(instance.copy())
| 36.22807 | 203 | 0.782567 | 288 | 2,065 | 5.475694 | 0.395833 | 0.091313 | 0.120482 | 0.126823 | 0.209258 | 0.098922 | 0.053266 | 0 | 0 | 0 | 0 | 0.010579 | 0.130266 | 2,065 | 56 | 204 | 36.875 | 0.866927 | 0.345278 | 0 | 0 | 1 | 0.033333 | 0.191585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cc277d67ce6b3aead64c4af123a4c3aab1ea245 | 733 | py | Python | serverlessworkflow/sdk/retry_def.py | antmendoza/sdk-python | 44a294d0a517007d48265b1f20e6ef9260b9cc2c | [
"Apache-2.0"
] | 9 | 2022-01-12T15:17:16.000Z | 2022-01-26T21:42:23.000Z | serverlessworkflow/sdk/retry_def.py | antmendoza/sdk-python | 44a294d0a517007d48265b1f20e6ef9260b9cc2c | [
"Apache-2.0"
] | 8 | 2022-01-15T21:43:10.000Z | 2022-03-22T17:20:02.000Z | serverlessworkflow/sdk/retry_def.py | antmendoza/sdk-python | 44a294d0a517007d48265b1f20e6ef9260b9cc2c | [
"Apache-2.0"
] | 3 | 2022-01-12T15:17:27.000Z | 2022-01-18T09:27:09.000Z | from __future__ import annotations
from serverlessworkflow.sdk.swf_base import SwfBase
class RetryDef(SwfBase):
name: str = None
delay: str = None
maxDelay: str = None
increment: str = None
multiplier: (int | str) = None
maxAttempts: (int | str) = None
jitter: (int | str) = None
def __init__(self,
name: str = None,
delay: str = None,
maxDelay: str = None,
increment: str = None,
multiplier: (int | str) = None,
maxAttempts: (int | str) = None,
jitter: (int | str) = None,
**kwargs):
SwfBase.__init__(self, locals(), kwargs, SwfBase.default_hydration)
| 29.32 | 75 | 0.538881 | 74 | 733 | 5.148649 | 0.378378 | 0.257218 | 0.15748 | 0.08399 | 0.582677 | 0.582677 | 0.582677 | 0.582677 | 0.582677 | 0.582677 | 0 | 0 | 0.361528 | 733 | 24 | 76 | 30.541667 | 0.814103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8cc82b83987c57da314f9b39e62d305e3a699b51 | 285 | py | Python | src/backend/servertools/views.py | tuimac/servertools | ceda2685a248d700f48aea4f93887b0f89a264a8 | [
"MIT"
] | null | null | null | src/backend/servertools/views.py | tuimac/servertools | ceda2685a248d700f48aea4f93887b0f89a264a8 | [
"MIT"
] | null | null | null | src/backend/servertools/views.py | tuimac/servertools | ceda2685a248d700f48aea4f93887b0f89a264a8 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http.response import HttpResponse
import logging
import traceback
logger = logging.getLogger("django")
def index(request):
try:
return render(request, "index.html")
except:
logging.error(traceback.format_exc())
| 21.923077 | 45 | 0.736842 | 34 | 285 | 6.147059 | 0.647059 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17193 | 285 | 12 | 46 | 23.75 | 0.885593 | 0 | 0 | 0 | 0 | 0 | 0.05614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8ccb07b37791dfb5fb941a33f46865a32e87283e | 1,314 | py | Python | ctzs/accounts/decorators.py | dbms-ctzs/sage | 4aea13a8706ffa71f0c37b544cfd93b4e271b6a5 | [
"MIT"
] | null | null | null | ctzs/accounts/decorators.py | dbms-ctzs/sage | 4aea13a8706ffa71f0c37b544cfd93b4e271b6a5 | [
"MIT"
] | 13 | 2021-03-30T14:09:30.000Z | 2022-01-13T02:49:10.000Z | ctzs/accounts/decorators.py | dbms-ctzs/sage | 4aea13a8706ffa71f0c37b544cfd93b4e271b6a5 | [
"MIT"
] | 3 | 2020-04-22T16:27:59.000Z | 2020-10-10T04:47:55.000Z | from django.http import HttpResponse
from django.shortcuts import redirect
# Unauthenticated user will be redirected >> "home"
def unauthenticated_user(view_func):
def wrapper_func(request,*args,**kwargs):
if request.user.is_authenticated:
return redirect('home')
else:
return view_func(request,*args,**kwargs)
return wrapper_func
#Only allowed users are auth to view
def allowed_users(allowed_roles=[]):
def decorator(view_func):
def wrapper_func(request,*args,**kwargs):
group = None
if request.user.groups.exists():
group = request.user.groups.all()[0].name
if group in allowed_roles:
return view_func(request,*args,**kwargs)
else:
return HttpResponse("You are not authorized to view this page ")
return wrapper_func
return decorator
'''def admin_only(view_func):
def wrapper_function(request,*args,**kwargs):
group=None
if request.user.groups.exists():
group=request.user.groups.all()[0].name
if group =='user':
return redirect('user-page')
if group == 'admin':
return view_func(request,*args,**kwargs)
return wrapper_function '''
| 32.85 | 84 | 0.614155 | 152 | 1,314 | 5.190789 | 0.315789 | 0.060837 | 0.129278 | 0.13308 | 0.451204 | 0.451204 | 0.411914 | 0.411914 | 0.223067 | 0.223067 | 0 | 0.002123 | 0.283105 | 1,314 | 39 | 85 | 33.692308 | 0.835456 | 0.064688 | 0 | 0.380952 | 0 | 0 | 0.052941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
8cddf473e766e74e7710fc00e6e2fec63dc61e5c | 2,940 | py | Python | test_plotter.py | aniloutdo/Fitness-Gadgets | 8ce840b3e0cc1da83cab6714388edfab9173e878 | [
"MIT"
] | 2 | 2019-01-24T09:00:42.000Z | 2019-11-27T14:08:56.000Z | tests/test_plotter.py | JanKrAppel/gadgetbridge_plotter | 4b9dd5769c708078ee23dc97b2ad3090d90fd4de | [
"MIT"
] | null | null | null | tests/test_plotter.py | JanKrAppel/gadgetbridge_plotter | 4b9dd5769c708078ee23dc97b2ad3090d90fd4de | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ..plotting import Plotter, InvalidArgumentsException
from datetime import datetime
from numpy import array
import pytest
def test_lineplot_construction():
"""Test that instances for lineplots get constructed correctly."""
test_times = array((datetime(2018, 1, 1, 12, 0, 0),
datetime(2018, 1, 1, 12, 1, 0),
datetime(2018, 1, 1, 12, 2, 0),
datetime(2018, 1, 1, 12, 3, 0),
datetime(2018, 1, 1, 12, 4, 0),
datetime(2018, 1, 1, 12, 5, 0),
datetime(2018, 1, 1, 12, 6, 0),
datetime(2018, 1, 1, 12, 7, 0),
datetime(2018, 1, 1, 12, 8, 0),
datetime(2018, 1, 1, 12, 9, 0)))
test_values = array((1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
plotter = Plotter('test plot', timestamps=test_times, values=test_values)
assert plotter._plotfunc == plotter._line_plot
assert (plotter._timestamps == test_times).all()
assert (plotter._values == test_values).all()
assert plotter._type == 'test plot'
def test_histogram_construction():
"""Test that instances for histogram plots get constructed correctly."""
test_times = array((datetime(2018, 1, 1, 12, 0, 0),
datetime(2018, 1, 1, 12, 1, 0),
datetime(2018, 1, 1, 12, 2, 0),
datetime(2018, 1, 1, 12, 3, 0),
datetime(2018, 1, 1, 12, 4, 0),
datetime(2018, 1, 1, 12, 5, 0),
datetime(2018, 1, 1, 12, 6, 0),
datetime(2018, 1, 1, 12, 7, 0),
datetime(2018, 1, 1, 12, 8, 0),
datetime(2018, 1, 1, 12, 9, 0)))
test_bins = array((1, 2, 3, 4, 5))
test_histogram = array([[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5],
[1, 2, 3, 4, 5]])
plotter = Plotter('test plot', timestamps=test_times, bins=test_bins,
histogram=test_histogram)
assert plotter._plotfunc == plotter._hist_plot
assert (plotter._timestamps == test_times).all()
assert (plotter._bins == test_bins).all()
assert (plotter._histogram == test_histogram).all()
assert plotter._type == 'test plot'
def test_invalid_construction():
"""Test that instantiation with incorrect arguments raise an exception."""
with pytest.raises(InvalidArgumentsException):
plotter = Plotter('test plot', foo=1, bar=1) | 47.419355 | 78 | 0.479252 | 367 | 2,940 | 3.746594 | 0.171662 | 0.174545 | 0.189091 | 0.203636 | 0.608727 | 0.562182 | 0.544 | 0.484364 | 0.433455 | 0.357818 | 0 | 0.148455 | 0.383673 | 2,940 | 62 | 79 | 47.419355 | 0.610375 | 0.081293 | 0 | 0.603774 | 0 | 0 | 0.01676 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 1 | 0.056604 | false | 0 | 0.075472 | 0 | 0.132075 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cec8e2e78527933bece506ff5b25e3423e1df10 | 266 | py | Python | api/migrations/0115_merge_20210204_1319.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | api/migrations/0115_merge_20210204_1319.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | api/migrations/0115_merge_20210204_1319.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # Generated by Django 2.2.13 on 2021-02-04 13:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0106_auto_20201214_0858'),
('api', '0114_auto_20210204_1203'),
]
operations = [
]
| 17.733333 | 48 | 0.639098 | 33 | 266 | 4.969697 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236453 | 0.236842 | 266 | 14 | 49 | 19 | 0.571429 | 0.172932 | 0 | 0 | 1 | 0 | 0.238532 | 0.211009 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cfa0cecd6a92e2f6d47b73f69dbb450ab30b902 | 464 | py | Python | project/utils/constants.py | RealOrangeOne/dotfile-automator | 971941d07d1e6cfee7b6db263f8660fa8d664581 | [
"MIT"
] | 1 | 2016-06-26T07:44:14.000Z | 2016-06-26T07:44:14.000Z | project/utils/constants.py | RealOrangeOne/dotfile-automator | 971941d07d1e6cfee7b6db263f8660fa8d664581 | [
"MIT"
] | null | null | null | project/utils/constants.py | RealOrangeOne/dotfile-automator | 971941d07d1e6cfee7b6db263f8660fa8d664581 | [
"MIT"
] | null | null | null | import os
# Core Directories
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_DIR = os.path.expanduser("~/.dfa/")
# Config
USER_CONFIG_DIR = os.path.join(DATA_DIR, "dfa.yml")
DEFAULT_CONFIG_DIR = os.path.join(BASE_DIR, 'defaults.yml')
REQUIRED_KEYS = ['public_repo']
# Data Directories
PRIVATE_DATA_DIR = os.path.join(DATA_DIR, 'private_data')
PUBLIC_DATA_DIR = os.path.join(DATA_DIR, 'public_data')
ALL_DATA_DIR = os.path.join(DATA_DIR, 'all_data')
| 27.294118 | 59 | 0.756466 | 76 | 464 | 4.276316 | 0.328947 | 0.147692 | 0.193846 | 0.2 | 0.36 | 0.283077 | 0.221538 | 0 | 0 | 0 | 0 | 0 | 0.092672 | 464 | 16 | 60 | 29 | 0.771972 | 0.086207 | 0 | 0 | 0 | 0 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8cff579506d5115c0bea981123b460d260840fc3 | 5,764 | py | Python | scripts/teacher.py | bhrt96/e-Learning-Portal | 5ca4d7cc355999ddfcb2cfff18d9832d555cc081 | [
"MIT"
] | null | null | null | scripts/teacher.py | bhrt96/e-Learning-Portal | 5ca4d7cc355999ddfcb2cfff18d9832d555cc081 | [
"MIT"
] | null | null | null | scripts/teacher.py | bhrt96/e-Learning-Portal | 5ca4d7cc355999ddfcb2cfff18d9832d555cc081 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import cgi
import MySQLdb
import Cookie
import os
print "Content-type: text/html\r\n\r\n"
form = cgi.FieldStorage()
if form.getvalue('question'):
question = form.getvalue('question')
else:
question = "Not entered"
answer=form.getvalue('answer')
optionA=form.getvalue('optionA')
optionB=form.getvalue('optionB')
optionC=form.getvalue('optionC')
optionD=form.getvalue('optionD')
qid= form.getvalue('qid')
if 'HTTP_COOKIE' in os.environ :
cookie = Cookie.SimpleCookie(os.environ["HTTP_COOKIE"])
else :
print "error"
db = MySQLdb.connect('localhost','root','1315','quiz', unix_socket="/opt/lampp/var/mysql/mysql.sock")
cur=db.cursor()
cur.execute("""select username from session where sessionId= '%s'"""% cookie["session"].value)
username = cur.fetchone()
if username == None:
print "<script>window.alert('Please login to continue');</script>"
print "<script>window.location.assign('/cgi-bin/scripts/signin.py')</script>"
# print cookie['session'].value
if(question!= 'Not entered'):
cur.execute("""select teacherId from teacherRegister where username ='%s'"""%username)
teacherId=cur.fetchone()
cur.execute("""select name, subject from teacher where teacherId='%d'"""% teacherId[0])
var= cur.fetchone()
cur.execute("""insert into questionBank (question, answer , optionA, optionB, optionC, optionD, subject, setBy) values ('%s', '%s','%s','%s','%s','%s','%s','%s' )""" %(question, answer , optionA, optionB, optionC, optionD, var[1], username[0]))
db.commit()
if(qid!='None'):
cur.execute("""delete from questionBank where questionId='%s'"""%qid)
db.commit()
sql = "select * from questionBank where setBy='%s'" % username
cur.execute(sql)
var = cur.fetchall()
j=cur.rowcount
k=1
print """
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel = "stylesheet" href = "/css/materialize.css" />
<script src = "/js/jquery-1.12.2.js"></script>
<script src = "/js/materialize.js"></script>
</head>
<body class = "">
<div class = "row">
<div class = "row center-align site-name">
<h4><a >QuestionBank</a></h4>
</div>
<div class="col s12">
<div class="row">
<div class="col s8">"""
cur.execute("""select teacherId from teacherRegister where username ='%s'"""%username)
stId=cur.fetchone()
cur.execute("""select name from teacher where teacherId='%d'"""% stId[0])
name= cur.fetchone()
print""" <h5>%s</h5>"""% name[0]
print"""
</div>
<div class = " col s2" id = "page-controls">
<p class = "right-align" style="margin-right:-200px">
<a href = "/cgi-bin/scripts/signin.py" class = " tooltipped " data-position="bottom" data-delay="50" data-tooltip="Logout" style="cursor:pointer">
<i class = "material-icons">power_settings_new</i>
</a>
</p>
</div>
</div>
</div>
<div class = "row">
<div class = "card-panel col s6" style="padding-top:15px;">
<h5>Added Questions</h5>"""
for i in var:
print """
<table>
<thead>
<tr>
<th>Ques id: %d ::</th>
<th>%s</th> <!--question-->
</tr>
</thead>
<tbody>
<tr>
<td>A: %s</td>
<td>B: %s</td>
<td>C: %s</td>
<td>D: %s</td>
</tr>
<tr>
<td>Answer: %s</td>
</tr>
<br>
</tbody>
</table>
""" % (i[0],i[1],i[3],i[4],i[5],i[6],i[2])
k=k+1
print "</div>"
print r"""<div class ="card-panel col s6" style="padding-top:10px;">
<h5>Add Question</h5>
<form name="addqform" method="POST" action="/cgi-bin/scripts/teacher.py" >
Question: <textarea class="materialize-textarea" name="question"></textarea><br><br>
Correct Answer: <input type="text" name="answer" id="answer"><br><br>
Option A: <input type="text" name="optionA" >
Option B: <input type="text" name="optionB" >
Option C: <input type="text" name="optionC" >
Option D: <input type="text" name="optionD" ><br><br>
<div class = "row ">
<button class="btn waves-effect waves-light" type="submit" target="/cgi-bin/scripts/teacher.py">
Submit
</button>
</div>
</form><br><br>
<h5>Delete Question</h5>
<form name="delqform" method="get" action="/cgi-bin/scripts/teacher.py" >
Question ID : <input type="text" name="qid" >
<div class = "row ">
<button class="btn waves-effect waves-light" type="submit" target="/cgi-bin/scripts/teacher.py">
Submit
</button>
</div>
</form>
</div>
</div>
</div>
</body>
</html>"""
db.close() | 36.481013 | 256 | 0.49601 | 633 | 5,764 | 4.508689 | 0.314376 | 0.030834 | 0.02733 | 0.035739 | 0.273651 | 0.223546 | 0.17239 | 0.144359 | 0.144359 | 0.11843 | 0 | 0.012516 | 0.334663 | 5,764 | 158 | 257 | 36.481013 | 0.731682 | 0.007981 | 0 | 0.268657 | 0 | 0.074627 | 0.768235 | 0.12559 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029851 | null | null | 0.074627 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5079506b17dbaf5a85e8aa4c87e84dc6adfe41f5 | 538 | py | Python | qqbot_ipc.py | AndrewWayne/bot-flandre | 6c14c96e55c99ec7961216c8cafbc46f62700bbe | [
"Apache-2.0"
] | null | null | null | qqbot_ipc.py | AndrewWayne/bot-flandre | 6c14c96e55c99ec7961216c8cafbc46f62700bbe | [
"Apache-2.0"
] | null | null | null | qqbot_ipc.py | AndrewWayne/bot-flandre | 6c14c96e55c99ec7961216c8cafbc46f62700bbe | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 16:52:29 2020
@author: eliphat
"""
import win32api
import win32con
import win32gui
import time
hwnd = win32gui.FindWindow("TXGuiFoundation", "bot/ctf交流")
print(hwnd)
def send_msg(s):
for c in s:
win32api.SendMessage(hwnd, win32con.WM_CHAR, ord(c), 0)
time.sleep(0.02)
print(s)
win32api.SendMessage(hwnd, win32con.WM_KEYDOWN, win32con.VK_RETURN, 0)
win32api.SendMessage(hwnd, win32con.WM_KEYUP, win32con.VK_RETURN, 0)
print(s)
# send_msg("强行中文")
| 19.214286 | 74 | 0.687732 | 78 | 538 | 4.653846 | 0.564103 | 0.157025 | 0.190083 | 0.256198 | 0.278237 | 0.187328 | 0 | 0 | 0 | 0 | 0 | 0.097065 | 0.17658 | 538 | 27 | 75 | 19.925926 | 0.722348 | 0.172862 | 0 | 0.142857 | 0 | 0 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.357143 | 0.214286 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
508481a6ce44c972648166474e41fd7ddf442155 | 1,247 | py | Python | web/app/__init__.py | apemann/concordia | 478411e0c8d0ed78fe56a6e058a1a5d6341a817c | [
"MIT"
] | null | null | null | web/app/__init__.py | apemann/concordia | 478411e0c8d0ed78fe56a6e058a1a5d6341a817c | [
"MIT"
] | null | null | null | web/app/__init__.py | apemann/concordia | 478411e0c8d0ed78fe56a6e058a1a5d6341a817c | [
"MIT"
] | null | null | null | from ntpath import join
from posixpath import dirname
from dotenv import load_dotenv
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_mail import Mail
from flask_talisman import Talisman
from app.config import Config
from pathlib import Path
db = SQLAlchemy()
bcrypt = Bcrypt()
mail = Mail()
login_manager = LoginManager()
login_manager.login_view = 'users.login'
login_manager.login_message_category = 'info'
def create_app():
app = Flask(__name__)
# TODO: Configure CSP with Talisman
# Load environment variables from file
# With PurePath objects the slash operator is overidden to create child paths, similarly to os.path.join()
env_path = Path('.')/'env.dev'
load_dotenv(dotenv_path=env_path, override=True)
app.config.from_object(Config)
db.init_app(app)
bcrypt.init_app(app)
login_manager.init_app(app)
mail.init_app(app)
login_manager.init_app(app)
from app.main.routes import main
from app.users.routes import users
from app.errors.handlers import errors
app.register_blueprint(main)
app.register_blueprint(users)
app.register_blueprint(errors)
return app | 27.108696 | 110 | 0.761828 | 177 | 1,247 | 5.186441 | 0.344633 | 0.058824 | 0.054466 | 0.03268 | 0.069717 | 0.069717 | 0.069717 | 0.069717 | 0 | 0 | 0 | 0 | 0.169206 | 1,247 | 46 | 111 | 27.108696 | 0.8861 | 0.140337 | 0 | 0.058824 | 0 | 0 | 0.021515 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.029412 | false | 0 | 0.411765 | 0 | 0.470588 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
5089c8b2d923dcd0d28f03acbb7c6aa1efd84347 | 137 | py | Python | 1-DiveIntoPython/week5/lecturesdemos/multiprocessing/threads.py | mamoudmatook/PythonSpecializaionInRussian | 3340780b2f8a876a0f59e22036147fd98909d545 | [
"MIT"
] | null | null | null | 1-DiveIntoPython/week5/lecturesdemos/multiprocessing/threads.py | mamoudmatook/PythonSpecializaionInRussian | 3340780b2f8a876a0f59e22036147fd98909d545 | [
"MIT"
] | null | null | null | 1-DiveIntoPython/week5/lecturesdemos/multiprocessing/threads.py | mamoudmatook/PythonSpecializaionInRussian | 3340780b2f8a876a0f59e22036147fd98909d545 | [
"MIT"
] | null | null | null | from threading import Thread
def hello(name):
print("hello " + name)
th = Thread(target= hello, args=("bob", ))
th.start()
th.join() | 19.571429 | 42 | 0.656934 | 20 | 137 | 4.5 | 0.7 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160584 | 137 | 7 | 43 | 19.571429 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5093565660058b6543ef9ae06df0a987430bce58 | 1,827 | py | Python | preston/xmlapi/cache.py | feabell/Preston | e40e2c2ca82a232f2ca36a098921caae9561161c | [
"MIT"
] | null | null | null | preston/xmlapi/cache.py | feabell/Preston | e40e2c2ca82a232f2ca36a098921caae9561161c | [
"MIT"
] | null | null | null | preston/xmlapi/cache.py | feabell/Preston | e40e2c2ca82a232f2ca36a098921caae9561161c | [
"MIT"
] | null | null | null | from datetime import datetime
__all__ = ['Cache']
class Cache:
def __init__(self):
"""
The cache is designed to respect the caching rules of the XML API
as to not request a page more often than it is updated by the server.
Args:
None
Returns:
None
"""
self.data = {}
def set(self, url, data, expiration):
"""
Store a page into the internal dictionary.
Args:
url (str) - the URL the page was retrieved from
data (str) - the page's contents
expiration (str) - the page's expiration datetime
Returns:
None
"""
self.data[url] = Page(data, expiration)
def get(self, url):
"""
Checks the internal dictionary for the page and returns
it if it's found.
This method checks the expiration datetime of the page
before returning it. If it's expired, None is returned.
Args:
url (str) - URL to check
Returns:
value (dict) of the page contents or None
"""
page = self.data.get(url)
if not page:
return None
if datetime.utcnow() > page.expires_after:
del self.data[url]
return None
return page.data
class Page:
def __init__(self, data, expires_after):
"""
A wrapper around a page from the XML API that also includes
the datetime after which the page's data is expired.
Args:
data (any) - page data from CREST
expires_after (datetime) - datetime for data expiration
Returns:
None
"""
self.data = data
self.expires_after = datetime.strptime(expires_after, '%Y-%m-%d %H:%M:%S')
| 24.36 | 82 | 0.551724 | 228 | 1,827 | 4.346491 | 0.355263 | 0.049445 | 0.045409 | 0.057518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.373837 | 1,827 | 74 | 83 | 24.689189 | 0.866259 | 0.490969 | 0 | 0.105263 | 0 | 0 | 0.034109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
5095f47ef3450d4ac596410dae2a7c20b2c27d26 | 125,265 | py | Python | blender/2.79/scripts/addons/archimesh/achm_window_maker.py | uzairakbar/bpy2.79 | 3a3e0004ac6783c4e4b89d939e4432de99026a85 | [
"MIT"
] | 2 | 2019-11-27T09:05:42.000Z | 2020-02-20T01:25:23.000Z | archimesh/achm_window_maker.py | 1-MillionParanoidTterabytes/blender-addons-master | acc8fc23a38e6e89099c3e5079bea31ce85da06a | [
"Unlicense"
] | null | null | null | archimesh/achm_window_maker.py | 1-MillionParanoidTterabytes/blender-addons-master | acc8fc23a38e6e89099c3e5079bea31ce85da06a | [
"Unlicense"
] | 4 | 2020-02-19T20:02:26.000Z | 2022-02-11T18:47:56.000Z | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####
# <pep8 compliant>
# ----------------------------------------------------------
# Author: Antonio Vazquez (antonioya)
#
# ----------------------------------------------------------
# noinspection PyUnresolvedReferences
import bpy
from math import pi, radians
from bpy.types import Operator, PropertyGroup, Object, Panel
from bpy.props import StringProperty, FloatProperty, BoolProperty, IntProperty, FloatVectorProperty, \
CollectionProperty, EnumProperty
from .achm_tools import *
# ------------------------------------------------------------------
# Define operator class to create object
# ------------------------------------------------------------------
class AchmWindows(Operator):
bl_idname = "mesh.archimesh_window"
bl_label = "Rail Windows"
bl_description = "Rail Windows Generator"
bl_category = 'Archimesh'
bl_options = {'REGISTER', 'UNDO'}
# -----------------------------------------------------
# Draw (create UI interface)
# -----------------------------------------------------
# noinspection PyUnusedLocal
def draw(self, context):
layout = self.layout
row = layout.row()
row.label("Use Properties panel (N) to define parms", icon='INFO')
# -----------------------------------------------------
# Execute
# -----------------------------------------------------
def execute(self, context):
if bpy.context.mode == "OBJECT":
create_object(self, context)
return {'FINISHED'}
else:
self.report({'WARNING'}, "Archimesh: Option only valid in Object mode")
return {'CANCELLED'}
# ------------------------------------------------------------------------------
#
# Create main object. The other objects will be children of this.
#
# ------------------------------------------------------------------------------
# noinspection PyUnusedLocal
def create_object(self, context):
# deselect all objects
for o in bpy.data.objects:
o.select = False
# we create main object and mesh
mainmesh = bpy.data.meshes.new("WindowFrane")
mainobject = bpy.data.objects.new("WindowFrame", mainmesh)
mainobject.location = bpy.context.scene.cursor_location
bpy.context.scene.objects.link(mainobject)
mainobject.WindowObjectGenerator.add()
# we shape the main object and create other objects as children
shape_mesh_and_create_children(mainobject, mainmesh)
# we select, and activate, main object
mainobject.select = True
bpy.context.scene.objects.active = mainobject
# ------------------------------------------------------------------------------
#
# Update main mesh and children objects
#
# ------------------------------------------------------------------------------
# noinspection PyUnusedLocal
def update_object(self, context):
# When we update, the active object is the main object
o = bpy.context.active_object
oldmesh = o.data
oldname = o.data.name
# Now we deselect that object to not delete it.
o.select = False
# and we create a new mesh
tmp_mesh = bpy.data.meshes.new("temp")
# deselect all objects
for obj in bpy.data.objects:
obj.select = False
# ---------------------------------
# Clear Parent objects (autohole)
# ---------------------------------
myparent = o.parent
ploc = myparent.location
if myparent is not None:
o.parent = None
o.location = ploc
# remove_children(parent)
for child in myparent.children:
# noinspection PyBroadException
try:
# clear child data
child.hide = False # must be visible to avoid bug
child.hide_render = False # must be visible to avoid bug
old = child.data
child.select = True
bpy.ops.object.delete()
bpy.data.meshes.remove(old)
except:
dummy = -1
myparent.select = True
bpy.ops.object.delete()
# -----------------------
# remove all children
# -----------------------
# first granchild
for child in o.children:
remove_children(child)
# now children of main object
remove_children(o)
# Finally we create all that again (except main object),
shape_mesh_and_create_children(o, tmp_mesh, True)
o.data = tmp_mesh
# Remove data (mesh of active object),
bpy.data.meshes.remove(oldmesh)
tmp_mesh.name = oldname
# and select, and activate, the main object
o.select = True
bpy.context.scene.objects.active = o
# ------------------------------------------------------------------------------
# Generate all objects
# For main, it only shapes mesh and creates modifiers (the modifier, only the first time).
# And, for the others, it creates object and mesh.
# ------------------------------------------------------------------------------
# noinspection PyUnusedLocal
def shape_mesh_and_create_children(mainobject, tmp_mesh, update=False):
mp = mainobject.WindowObjectGenerator[0]
# Create only mesh, because the object is created before
if mp.opentype == "1":
generate_rail_window(mainobject, mp, tmp_mesh)
else:
generate_leaf_window(mainobject, mp, tmp_mesh)
remove_doubles(mainobject)
set_normals(mainobject)
# saves OpenGL data
if mp.blind is True:
plus = mp.blind_height
else:
plus = 0
mp.glpoint_a = (-mp.width / 2, 0, 0)
mp.glpoint_b = (-mp.width / 2, 0, mp.height + plus)
mp.glpoint_c = (mp.width / 2, 0, mp.height + plus)
# Lock
mainobject.lock_location = (True, True, True)
mainobject.lock_rotation = (True, True, True)
# -------------------------
# Create empty and parent
# -------------------------
bpy.ops.object.empty_add(type='PLAIN_AXES')
myempty = bpy.data.objects[bpy.context.active_object.name]
myempty.location = mainobject.location
myempty.name = "Window_Group"
parentobject(myempty, mainobject)
mainobject["archimesh.hole_enable"] = True
# Rotate Empty
myempty.rotation_euler.z = radians(mp.r)
# Create control box to open wall holes
gap = 0.002
y = 0
z = 0
if mp.blind is True:
y = mp.blind_rail
if mp.blind is True and mp.blind_box is True:
z = mp.blind_height
myctrl = create_control_box("CTRL_Hole",
mp.width - gap,
mp.depth * 3, # + y,
mp.height + z - gap)
# Add custom property to detect Controller
myctrl["archimesh.ctrl_hole"] = True
set_normals(myctrl)
myctrl.parent = myempty
myctrl.location.x = 0
myctrl.location.y = -mp.depth * 3 / 2
myctrl.location.z = 0
myctrl.draw_type = 'BOUNDS'
myctrl.hide = False
myctrl.hide_render = True
if bpy.context.scene.render.engine == 'CYCLES':
myctrl.cycles_visibility.camera = False
myctrl.cycles_visibility.diffuse = False
myctrl.cycles_visibility.glossy = False
myctrl.cycles_visibility.transmission = False
myctrl.cycles_visibility.scatter = False
myctrl.cycles_visibility.shadow = False
mat = create_transparent_material("hidden_material", False)
set_material(myctrl, mat)
# deactivate others
for o in bpy.data.objects:
if o.select is True and o.name != mainobject.name:
o.select = False
return
# ------------------------------------------------------------------
# Define property group class to create or modify
# ------------------------------------------------------------------
class ObjectProperties(PropertyGroup):
width = FloatProperty(
name='Width',
min=0.20, max=50,
default=1.20, precision=3,
description='window width',
update=update_object,
)
depth = FloatProperty(
name='Depth',
min=0.07, max=1,
default=0.10, precision=3,
description='window depth',
update=update_object,
)
height = FloatProperty(
name='Height',
min=0.20, max=50,
default=1, precision=3,
description='window height',
update=update_object,
)
r = FloatProperty(
name='Rotation', min=0, max=360, default=0, precision=1,
description='Window rotation',
update=update_object,
)
external = BoolProperty(
name="External frame",
description="Create an external front frame",
default=True,
update=update_object,
)
frame = FloatProperty(
name='External Frame',
min=0.001, max=1,
default=0.01, precision=3,
description='External Frame size',
update=update_object,
)
frame_L = FloatProperty(
name='Frame',
min=0.02, max=1,
default=0.06, precision=3,
description='Frame size',
update=update_object,
)
wf = FloatProperty(
name='WinFrame',
min=0.001, max=1,
default=0.05, precision=3,
description='Window Frame size',
update=update_object,
)
leafratio = FloatProperty(
name='Leaf ratio',
min=0.001, max=0.999,
default=0.50,
precision=3,
description='Leaf thickness ratio',
update=update_object,
)
opentype = EnumProperty(
items=(
('1', "Rail window", ""),
('2', "Two leaf", ""),
('3', "Right leaf", ""),
('4', "Left leaf", "")),
name="Type",
description="Defines type of window",
update=update_object,
)
handle = BoolProperty(
name="Create handles",
description="Create default handle to the leaf",
default=True,
update=update_object,
)
sill = BoolProperty(
name="Sill",
description="Add sill to window",
default=True,
update=update_object,
)
sill_thickness = FloatProperty(
name='Thickness',
min=0, max=50,
default=0.01, precision=3,
description='Sill thickness',
update=update_object,
)
sill_back = FloatProperty(
name='Back',
min=0, max=10,
default=0.0, precision=3,
description='Extrusion in back side',
update=update_object,
)
sill_front = FloatProperty(
name='Front',
min=0, max=10,
default=0.12, precision=3,
description='Extrusion in front side',
update=update_object,
)
blind = BoolProperty(
name="Blind",
description="Create an external blind",
default=False,
update=update_object,
)
blind_box = BoolProperty(
name="Blind box", description="Create a box over frame for blind",
default=True,
update=update_object,
)
blind_height = FloatProperty(
name='Height',
min=0.001, max=10,
default=0.12, precision=3,
description='Blind box height',
update=update_object,
)
blind_back = FloatProperty(
name='Back',
min=0.001, max=10,
default=0.002, precision=3,
description='Extrusion in back side',
update=update_object,
)
blind_rail = FloatProperty(
name='Separation',
min=0.001, max=10,
default=0.10, precision=3,
description='Separation from frame',
update=update_object,
)
blind_ratio = IntProperty(
name='Extend',
min=0, max=100,
default=20,
description='% of extension (100 full extend)',
update=update_object,
)
# Materials
crt_mat = BoolProperty(
name="Create default Cycles materials",
description="Create default materials for Cycles render",
default=True,
update=update_object,
)
# opengl internal data
glpoint_a = FloatVectorProperty(
name="glpointa",
description="Hidden property for opengl",
default=(0, 0, 0),
)
glpoint_b = FloatVectorProperty(
name="glpointb",
description="Hidden property for opengl",
default=(0, 0, 0),
)
glpoint_c = FloatVectorProperty(
name="glpointc",
description="Hidden property for opengl",
default=(0, 0, 0),
)
# Register
bpy.utils.register_class(ObjectProperties)
Object.WindowObjectGenerator = CollectionProperty(type=ObjectProperties)
# ------------------------------------------------------------------
# Define panel class to modify object
# ------------------------------------------------------------------
class AchmWindowObjectgeneratorpanel(Panel):
bl_idname = "OBJECT_PT_window_generator"
bl_label = "Window Rail"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'Archimesh'
# -----------------------------------------------------
# Verify if visible
# -----------------------------------------------------
@classmethod
def poll(cls, context):
o = context.object
if o is None:
return False
if 'WindowObjectGenerator' not in o:
return False
else:
return True
# -----------------------------------------------------
# Draw (create UI interface)
# -----------------------------------------------------
def draw(self, context):
o = context.object
# noinspection PyBroadException
try:
if 'WindowObjectGenerator' not in o:
return
except:
return
layout = self.layout
if bpy.context.mode == 'EDIT_MESH':
layout.label('Warning: Operator does not work in edit mode.', icon='ERROR')
else:
myobjdat = o.WindowObjectGenerator[0]
space = bpy.context.space_data
if not space.local_view:
# Imperial units warning
if bpy.context.scene.unit_settings.system == "IMPERIAL":
row = layout.row()
row.label("Warning: Imperial units not supported", icon='COLOR_RED')
box = layout.box()
row = box.row()
row.prop(myobjdat, 'opentype')
row = box.row()
row.label("Window size")
row = box.row()
row.prop(myobjdat, 'width')
row.prop(myobjdat, 'depth')
row.prop(myobjdat, 'height')
row = box.row()
row.prop(myobjdat, 'wf')
row = box.row()
row.prop(myobjdat, 'r')
row = box.row()
row.prop(myobjdat, 'external')
row.prop(myobjdat, 'handle')
if myobjdat.external:
row.prop(myobjdat, 'frame')
if myobjdat.opentype != "1":
row = box.row()
row.prop(myobjdat, 'frame_L')
row.prop(myobjdat, 'leafratio', slider=True)
box = layout.box()
row = box.row()
row.prop(myobjdat, 'sill')
if myobjdat.sill:
row = box.row()
row.prop(myobjdat, 'sill_thickness')
row.prop(myobjdat, 'sill_back')
row.prop(myobjdat, 'sill_front')
box = layout.box()
row = box.row()
row.prop(myobjdat, 'blind')
if myobjdat.blind:
row = box.row()
row.prop(myobjdat, 'blind_rail')
row.prop(myobjdat, 'blind_ratio', slider=True)
row = box.row()
row.prop(myobjdat, 'blind_box')
if myobjdat.blind_box:
row.prop(myobjdat, 'blind_height')
row.prop(myobjdat, 'blind_back')
box = layout.box()
if not context.scene.render.engine == 'CYCLES':
box.enabled = False
box.prop(myobjdat, 'crt_mat')
else:
row = layout.row()
row.label("Warning: Operator does not work in local view mode", icon='ERROR')
# ------------------------------------------------------------------------------
# Generate rail windows
# ------------------------------------------------------------------------------
def generate_rail_window(myframe, mp, mymesh):
myloc = bpy.context.scene.cursor_location
alummat = None
if mp.crt_mat and bpy.context.scene.render.engine == 'CYCLES':
alummat = create_diffuse_material("Window_material", False, 0.8, 0.8, 0.8, 0.6, 0.6, 0.6, 0.15)
# Frame
win_size, p1, p2 = create_rail_window_frame(myframe, mymesh,
mp.width, mp.depth, mp.height,
mp.frame,
mp.crt_mat, alummat, mp.external,
mp.blind and mp.blind_box,
mp.blind_height,
mp.blind_back,
mp.blind_rail)
remove_doubles(myframe)
set_normals(myframe)
# Window L
width = (mp.width / 2) + 0.01
mywin_l = create_rail_window_leaf("Window.L", "L",
width, win_size, mp.height - 0.05,
mp.wf,
myloc.x, myloc.y, myloc.z,
mp.crt_mat, alummat, mp.handle)
remove_doubles(mywin_l)
set_normals(mywin_l)
mywin_l.parent = myframe
mywin_l.location.x = (-mp.width / 2) + 0.01
mywin_l.location.y = p1 - 0.001
mywin_l.location.z = 0.025
# Window R
mywin_r = create_rail_window_leaf("Window.R", "R",
width, win_size, mp.height - 0.05,
mp.wf,
myloc.x, myloc.y, myloc.z,
mp.crt_mat, alummat, mp.handle)
remove_doubles(mywin_r)
set_normals(mywin_r)
mywin_r.parent = myframe
mywin_r.location.x = (mp.width / 2) - 0.01
mywin_r.location.y = p2 - 0.001
mywin_r.location.z = 0.025
# Sill
if mp.sill:
mysill = create_sill("Windows_Sill", mp.width,
mp.depth + mp.sill_back + mp.sill_front,
mp.sill_thickness, mp.crt_mat)
mysill.parent = myframe
mysill.location.x = 0
mysill.location.y = -mp.depth - mp.sill_back
mysill.location.z = 0
# Blind
if mp.blind:
myblindrail = create_blind_rail("Blind_rails", mp.width, mp.height,
myloc.x, myloc.y, myloc.z,
mp.crt_mat, alummat, mp.blind_rail)
set_normals(myblindrail)
myblindrail.parent = myframe
myblindrail.location.x = 0
myblindrail.location.y = 0
myblindrail.location.z = 0
# Lock
myblindrail.lock_location = (True, True, True)
myblindrail.lock_rotation = (True, True, True)
myblind = create_blind("Blind", mp.width - 0.006, mp.height,
myloc.x, myloc.y, myloc.z,
mp.crt_mat, mp.blind_ratio)
set_normals(myblind)
myblind.parent = myframe
myblind.location.x = 0
myblind.location.y = mp.blind_rail - 0.014
myblind.location.z = mp.height - 0.098
# Lock
myblind.lock_location = (True, True, True)
myblind.lock_rotation = (True, True, True)
# ------------------------------------------------------------------------------
# Generate leaf windows
# ------------------------------------------------------------------------------
def generate_leaf_window(myframe, mp, mymesh):
myloc = bpy.context.scene.cursor_location
alummat = None
if mp.crt_mat and bpy.context.scene.render.engine == 'CYCLES':
alummat = create_diffuse_material("Window_material", False, 0.8, 0.8, 0.8, 0.6, 0.6, 0.6, 0.15)
# Frame
win_size = create_leaf_window_frame(myframe, mymesh,
mp.width, mp.depth, mp.height,
mp.frame, mp.frame_L, mp.leafratio,
mp.crt_mat, alummat, mp.external,
mp.blind and mp.blind_box, mp.blind_height, mp.blind_back,
mp.blind_rail)
remove_doubles(myframe)
set_normals(myframe)
stepsize = 0.01
# -----------------------------
# Window L
# -----------------------------
if mp.opentype == "2" or mp.opentype == "4":
handle = mp.handle
if mp.opentype == "2":
width = ((mp.width - (mp.frame_L * 2) + stepsize) / 2) + 0.004
handle = False # two windows only one handle
else:
width = mp.width - (mp.frame_L * 2) + stepsize + 0.008
mywin_l = create_leaf_window_leaf("Window.L", "L",
width, win_size, mp.height - (mp.frame_L * 2) + (stepsize * 2) - 0.004,
mp.wf,
myloc.x, myloc.y, myloc.z,
mp.crt_mat, alummat, handle)
remove_doubles(mywin_l)
set_normals(mywin_l)
mywin_l.parent = myframe
mywin_l.location.x = -mp.width / 2 + mp.frame_L - stepsize + 0.001
mywin_l.location.y = -mp.depth
mywin_l.location.z = mp.frame_L - (stepsize / 2) - 0.003
# -----------------------------
# Window R
# -----------------------------
if mp.opentype == "2" or mp.opentype == "3":
if mp.opentype == "2":
width = ((mp.width - (mp.frame_L * 2) + stepsize) / 2) + 0.003
else:
width = mp.width - (mp.frame_L * 2) + stepsize + 0.008
mywin_r = create_leaf_window_leaf("Window.R", "R",
width, win_size, mp.height - (mp.frame_L * 2) + (stepsize * 2) - 0.004,
mp.wf,
myloc.x, myloc.y, myloc.z,
mp.crt_mat, alummat, mp.handle)
remove_doubles(mywin_r)
set_normals(mywin_r)
mywin_r.parent = myframe
mywin_r.location.x = mp.width / 2 - mp.frame_L + stepsize - 0.001
mywin_r.location.y = -mp.depth
mywin_r.location.z = mp.frame_L - (stepsize / 2) - 0.003
# Sill
if mp.sill:
mysill = create_sill("Windows_Sill", mp.width,
mp.depth + mp.sill_back + mp.sill_front,
mp.sill_thickness, mp.crt_mat)
mysill.parent = myframe
mysill.location.x = 0
mysill.location.y = -mp.depth - mp.sill_back
mysill.location.z = 0
# Blind
if mp.blind:
myblindrail = create_blind_rail("Blind_rails", mp.width, mp.height,
myloc.x, myloc.y, myloc.z,
mp.crt_mat, alummat, mp.blind_rail)
myblindrail.parent = myframe
myblindrail.location.x = 0
myblindrail.location.y = 0
myblindrail.location.z = 0
# Lock
myblindrail.lock_location = (True, True, True)
myblindrail.lock_rotation = (True, True, True)
myblind = create_blind("Blind", mp.width - 0.006, mp.height,
myloc.x, myloc.y, myloc.z,
mp.crt_mat, mp.blind_ratio)
myblind.parent = myframe
myblind.location.x = 0
myblind.location.y = mp.blind_rail - 0.014
myblind.location.z = mp.height - 0.098
# Lock
myblind.lock_location = (True, True, True)
myblind.lock_rotation = (True, True, True)
# deactivate others
for o in bpy.data.objects:
if o.select is True:
o.select = False
myframe.select = True
bpy.context.scene.objects.active = myframe
return myframe
# ------------------------------------------------------------------------------
# Create windows frame
#
# sX: Size in X axis
# sY: Size in Y axis
# sZ: Size in Z axis
# frame: size of external frame
# mat: Flag for creating materials
# matdata: Aluminum material
# external: create external frame flag
# blind: blind flag
# blind_height: height of blind box
# blind_back: front extension
# blind_rail: distance of the rail
# ------------------------------------------------------------------------------
def create_rail_window_frame(mywindow, mymesh, sx, sy, sz, frame, mat, matdata, external,
blind, blind_height, blind_back, blind_rail):
myvertex = []
myfaces = []
v = 0
# ===========================================================================
# Horizontal pieces
# ===========================================================================
m = 0.02 # gap in front
gap = 0.001 # gap between leafs
rail = 0.007 # rail width
thick = 0.002 # aluminum thickness
w = (sy - m - gap - thick - thick - thick) / 2 # width of each leaf
p = (w - rail) / 2 # space of each side
side = 0.02 # vertical
for z in (0, sz):
for x in (-sx / 2, sx / 2):
myvertex.extend([(x, 0, z), (x, 0, z + side),
(x, -m - p, z + side),
(x, -m - p, z + (side * 2)), # rail 1
(x, -m - p - rail, z + (side * 2)),
(x, -m - p - rail, z + side),
(x, -m - p - rail - thick - p - gap - p, z + side),
(x, -m - p - rail - thick - p - gap - p, z + (side * 2)), # rail 2
(x, -m - p - rail - thick - p - gap - p - rail, z + (side * 2)),
(x, -m - p - rail - thick - p - gap - p - rail, z + side),
(x, -m - p - rail - thick - p - gap - p - rail - p - thick, z + side)])
# Faces
myfaces.extend([(v + 12, v + 1, v + 0, v + 11), (v + 13, v + 2, v + 1, v + 12), (v + 14, v + 3, v + 2, v + 13),
(v + 15, v + 4, v + 3, v + 14), (v + 16, v + 5, v + 4, v + 15), (v + 17, v + 6, v + 5, v + 16),
(v + 18, v + 7, v + 6, v + 17), (v + 19, v + 8, v + 7, v + 18), (v + 20, v + 9, v + 8, v + 19),
(v + 20, v + 21, v + 10, v + 9)])
side *= -1 # reveser direction
v = len(myvertex)
# ===========================================================================
# Vertical pieces
# ===========================================================================
y = 0
sideb = 0.03
sides = 0.02
thickb = 0.002 # aluminum thickness
win_size = p + rail + p
p1 = y - m - thick
p2 = y - m - thick - gap - p - rail - p - thick
# Left
for x in (-sx / 2, sx / 2):
for z in (0, sz):
myvertex.extend([(x, y, z),
(x + thickb, y, z),
(x + thickb, y - m, z),
(x + thickb + sides, y - m, z),
(x + thickb + sides, y - m - thick, z),
(x + thickb, y - m - thick, z),
(x + thickb, y - m - thick - gap - p - rail - p, z),
(x + thickb + sides, y - m - thick - gap - p - rail - p, z),
(x + thickb + sides, y - m - thick - gap - p - rail - p - thick, z),
(x + thickb, y - m - thick - gap - p - rail - p - thick, z),
(x + thickb, y - m - thick - gap - p - rail - p - thick - p - rail - p, z),
(x + thickb + sideb, y - m - thick - gap - p - rail - p - thick - p - rail - p, z),
(x + thickb + sideb, y - m - thick - gap - p - rail - p - thick - p - rail - p - thick, z),
(x, y - m - thick - gap - p - rail - p - thick - p - rail - p - thick, z)])
# Faces
myfaces.extend([(v + 13, v + 27, v + 14, v + 0), (v + 13, v + 12, v + 26, v + 27),
(v + 11, v + 10, v + 24, v + 25),
(v + 6, v + 5, v + 19, v + 20), (v + 10, v + 9, v + 23, v + 24),
(v + 25, v + 24, v + 27, v + 26), (v + 24, v + 23, v + 15, v + 16),
(v + 22, v + 21, v + 20, v + 23),
(v + 17, v + 16, v + 19, v + 18), (v + 9, v + 8, v + 22, v + 23),
(v + 7, v + 6, v + 20, v + 21), (v + 3, v + 2, v + 16, v + 17),
(v + 5, v + 4, v + 18, v + 19),
(v + 4, v + 3, v + 17, v + 18), (v + 7, v + 8, v + 9, v + 6),
(v + 3, v + 4, v + 5, v + 2), (v + 11, v + 12, v + 13, v + 10),
(v + 6, v + 5, v + 9, v + 10),
(v + 1, v + 0, v + 14, v + 15),
(v + 19, v + 16, v + 15, v + 14, v + 27, v + 24, v + 23, v + 20),
(v + 8, v + 7, v + 21, v + 22), (v + 12, v + 11, v + 25, v + 26),
(v + 2, v + 1, v + 15, v + 16),
(v + 5, v + 6, v + 9, v + 10, v + 13, v + 0, v + 1, v + 2)])
v = len(myvertex)
# reverse
thickb *= -1
sideb *= -1
sides *= -1
# ===========================================================================
# Front covers
# ===========================================================================
x = sx - 0.005 - (sideb * 2) # sideB + small gap
y = y - m - thick - gap - p - rail - p - thick - p - rail - p
z = sideb
# Bottom
myvertex.extend([(-x / 2, y - thick, 0.0),
(-x / 2, y, 0.0),
(x / 2, y, 0.0),
(x / 2, y - thick, 0.0),
(-x / 2, y - thick, z),
(-x / 2, y, z),
(x / 2, y, z),
(x / 2, y - thick, z)])
myfaces.extend([(v + 0, v + 1, v + 2, v + 3), (v + 0, v + 1, v + 5, v + 4), (v + 1, v + 2, v + 6, v + 5),
(v + 2, v + 6, v + 7, v + 3), (v + 5, v + 6, v + 7, v + 4), (v + 0, v + 4, v + 7, v + 3)])
v = len(myvertex)
# Top
myvertex.extend([(-x / 2, y - thick, sz - sideb),
(-x / 2, y, sz - sideb),
(x / 2, y, sz - sideb),
(x / 2, y - thick, sz - sideb),
(-x / 2, y - thick, sz - sideb + z),
(-x / 2, y, sz - sideb + z),
(x / 2, y, sz - sideb + z),
(x / 2, y - thick, sz - sideb + z)])
myfaces.extend([(v + 0, v + 1, v + 2, v + 3), (v + 0, v + 1, v + 5, v + 4), (v + 1, v + 2, v + 6, v + 5),
(v + 2, v + 6, v + 7, v + 3), (v + 5, v + 6, v + 7, v + 4), (v + 0, v + 4, v + 7, v + 3)])
v = len(myvertex)
# ===========================================================================
# External front covers
# ===========================================================================
if external:
x = sx
gap = -0.001
sidem = frame
box = 0
if blind:
box = blind_height
myvertex.extend([((-x / 2) - sidem, y - thick, sz + sidem + box),
((x / 2) + sidem, y - thick, sz + sidem + box),
((-x / 2) - sidem, y - thick, -sidem),
((x / 2) + sidem, y - thick, -sidem),
((-x / 2) - gap, y - thick, sz + gap + box),
((x / 2) + gap, y - thick, sz + gap + box),
((-x / 2) - gap, y - thick, -gap),
((x / 2) + gap, y - thick, -gap)])
myvertex.extend([((-x / 2) - sidem, y - thick * 2, sz + sidem + box),
((x / 2) + sidem, y - thick * 2, sz + sidem + box),
((-x / 2) - sidem, y - thick * 2, -sidem),
((x / 2) + sidem, y - thick * 2, -sidem),
((-x / 2) - gap, y - thick * 2, sz + gap + box),
((x / 2) + gap, y - thick * 2, sz + gap + box),
((-x / 2) - gap, y - thick * 2, -gap),
((x / 2) + gap, y - thick * 2, -gap)])
myfaces.extend([(v + 3, v + 1, v + 9, v + 11), (v + 9, v + 8, v + 0, v + 1),
(v + 1, v + 5, v + 4, v + 0),
(v + 3, v + 7, v + 5, v + 1),
(v + 7, v + 3, v + 2, v + 6),
(v + 0, v + 4, v + 6, v + 2),
(v + 9, v + 13, v + 12, v + 8), (v + 11, v + 15, v + 13, v + 9),
(v + 15, v + 11, v + 10, v + 14),
(v + 8, v + 12, v + 14, v + 10),
(v + 11, v + 3, v + 2, v + 10),
(v + 2, v + 10, v + 8, v + 0), (v + 14, v + 12, v + 4, v + 6),
(v + 7, v + 6, v + 14, v + 15),
(v + 5, v + 13, v + 12, v + 4),
(v + 15, v + 7, v + 5, v + 13)])
mymesh.from_pydata(myvertex, [], myfaces)
mymesh.update(calc_edges=True)
if mat and bpy.context.scene.render.engine == 'CYCLES':
set_material(mywindow, matdata)
# --------------
# Blind Box
# --------------
if blind:
mybox = create_blind_box("Blind_box", sx, sy + blind_back + blind_rail, blind_height)
set_normals(mybox)
mybox.parent = mywindow
mybox.location.x = 0
mybox.location.y = -blind_back - sy
mybox.location.z = sz
if mat and bpy.context.scene.render.engine == 'CYCLES':
set_material(mybox, matdata)
# Lock
mybox.lock_location = (True, True, True)
mybox.lock_rotation = (True, True, True)
return win_size, p1, p2
# ------------------------------------------------------------------------------
# Create leafs windows frame
#
# sX: Size in X axis
# sY: Size in Y axis
# sZ: Size in Z axis
# frame: size of external frame
# frame_L: size of main frame
# leafratio: ratio of leaf depth
# mat: Flag for creating materials
# matdata: Aluminum material
# external: create external frame flag
# blind: blind flag
# blind_height: height of blind box
# blind_back: front extension
# blind_rail: distance of the rail
# ------------------------------------------------------------------------------
def create_leaf_window_frame(mywindow, mymesh, sx, sy, sz, frame, frame_l, leafratio, mat, matdata, external,
blind, blind_height, blind_back, blind_rail):
myvertex = []
myfaces = []
# ===========================================================================
# Main frame_L
# ===========================================================================
x = sx / 2
z = sz
y = sy * leafratio
gap = 0.01
size = sy - y - 0.001 # thickness of the leaf
myvertex.extend([(-x, 0, 0),
(-x, 0, z),
(x, 0, z),
(x, 0, 0),
(-x + frame_l, 0, frame_l),
(-x + frame_l, 0, z - frame_l),
(x - frame_l, 0, z - frame_l),
(x - frame_l, 0, frame_l),
(-x + frame_l, -y, frame_l),
(-x + frame_l, -y, z - frame_l),
(x - frame_l, -y, z - frame_l),
(x - frame_l, -y, frame_l),
(-x + frame_l - gap, -y, frame_l - gap),
(-x + frame_l - gap, -y, z - frame_l + gap),
(x - frame_l + gap, -y, z - frame_l + gap),
(x - frame_l + gap, -y, frame_l - gap),
(-x + frame_l - gap, -sy, frame_l - gap),
(-x + frame_l - gap, -sy, z - frame_l + gap),
(x - frame_l + gap, -sy, z - frame_l + gap),
(x - frame_l + gap, -sy, frame_l - gap),
(-x, -sy, 0),
(-x, -sy, z),
(x, -sy, z),
(x, -sy, 0)])
# Faces
myfaces.extend([(1, 5, 4, 0), (21, 1, 0, 20), (17, 21, 20, 16), (16, 12, 13, 17), (12, 8, 9, 13),
(5, 9, 8, 4), (3, 7, 6, 2), (23, 3, 2, 22), (19, 23, 22, 18), (15, 19, 18, 14),
(11, 15, 14, 10), (6, 7, 11, 10), (0, 3, 23, 20), (21, 22, 2, 1), (17, 13, 14, 18),
(21, 17, 18, 22), (13, 9, 10, 14), (8, 11, 7, 4), (8, 12, 15, 11), (4, 7, 3, 0),
(12, 16, 19, 15), (16, 20, 23, 19), (9, 5, 6, 10), (1, 2, 6, 5)])
v = len(myvertex)
# ===========================================================================
# External front covers
# ===========================================================================
if external:
thick = 0.002 # aluminum thickness
x = sx
gap = -0.001
sidem = frame
box = 0
if blind:
box = blind_height
myvertex.extend([((-x / 2) - sidem, -sy, sz + sidem + box),
((x / 2) + sidem, -sy, sz + sidem + box),
((-x / 2) - sidem, -sy, -sidem),
((x / 2) + sidem, -sy, -sidem),
((-x / 2) - gap, -sy, sz + gap + box),
((x / 2) + gap, -sy, sz + gap + box),
((-x / 2) - gap, -sy, -gap),
((x / 2) + gap, -sy, -gap)])
myvertex.extend([((-x / 2) - sidem, -sy - thick, sz + sidem + box),
((x / 2) + sidem, -sy - thick, sz + sidem + box),
((-x / 2) - sidem, -sy - thick, -sidem),
((x / 2) + sidem, -sy - thick, -sidem),
((-x / 2) - gap, -sy - thick, sz + gap + box),
((x / 2) + gap, -sy - thick, sz + gap + box),
((-x / 2) - gap, -sy - thick, -gap),
((x / 2) + gap, -sy - thick, -gap)])
myfaces.extend([(v + 3, v + 1, v + 9, v + 11), (v + 9, v + 8, v + 0, v + 1), (v + 1, v + 5, v + 4, v + 0),
(v + 3, v + 7, v + 5, v + 1), (v + 7, v + 3, v + 2, v + 6),
(v + 0, v + 4, v + 6, v + 2), (v + 9, v + 13, v + 12, v + 8), (v + 11, v + 15, v + 13, v + 9),
(v + 15, v + 11, v + 10, v + 14), (v + 8, v + 12, v + 14, v + 10),
(v + 11, v + 3, v + 2, v + 10), (v + 2, v + 10, v + 8, v + 0), (v + 14, v + 12, v + 4, v + 6),
(v + 7, v + 6, v + 14, v + 15), (v + 5, v + 13, v + 12, v + 4),
(v + 15, v + 7, v + 5, v + 13)])
mymesh.from_pydata(myvertex, [], myfaces)
mymesh.update(calc_edges=True)
if mat and bpy.context.scene.render.engine == 'CYCLES':
set_material(mywindow, matdata)
# --------------
# Blind Box
# --------------
if blind:
mybox = create_blind_box("Blind_box", sx, sy + blind_back + blind_rail, blind_height)
set_normals(mybox)
mybox.parent = mywindow
mybox.location.x = 0
mybox.location.y = -blind_back - sy
mybox.location.z = sz
if mat and bpy.context.scene.render.engine == 'CYCLES':
set_material(mybox, matdata)
# Lock
mybox.lock_location = (True, True, True)
mybox.lock_rotation = (True, True, True)
return size
# ------------------------------------------------------------------------------
# Create rail windows leaf
#
# objName: Name for the new object
# hand: Left or Right
# sX: Size in X axis
# sY: Size in Y axis
# sZ: Size in Z axis
# f: size of the frame_L
# pX: position X axis
# pY: position Y axis
# pZ: position Z axis
# mat: Flag for creating materials
# matdata: default material
# handle: create handle flag
# ------------------------------------------------------------------------------
def create_rail_window_leaf(objname, hand, sx, sy, sz, f, px, py, pz, mat, matdata, handle):
myvertex = []
myfaces = []
v = 0
# ===========================================================================
# Horizontal pieces
# ===========================================================================
rail = 0.010 # rail width
t = sy - 0.002
p = ((t - rail) / 2) - 0.002
side = 0.02 # vertical rail
x = sx
z = sz
fz = f
if hand == "R":
x *= -1
f *= -1
# ------------------------
# frame
# ------------------------
myvertex.extend([(0, 0, 0),
(0, 0, z),
(x, 0, z),
(x, 0, 0),
(f, 0, fz),
(f, 0, z - fz),
(x - f, 0, z - fz),
(x - f, 0, fz),
(f, -t / 2, fz),
(f, -t / 2, z - fz),
(x - f, -t / 2, z - fz),
(x - f, -t / 2, fz),
(f, -t, fz),
(f, -t, z - fz),
(x - f, -t, z - fz),
(x - f, -t, fz),
(0, -t, 0),
(0, -t, z),
(x, -t, z),
(x, -t, 0)])
# ------------------------
# Side rails
# ------------------------
for z in (0, sz):
myvertex.extend([(0, -p, z),
(x, -p, z),
(0, -p, z + side),
(x, -p, z + side),
(0, -p - rail, z + side),
(x, -p - rail, z + side),
(0, -p - rail, z),
(x, -p - rail, z)])
side *= -1 # reverse
# Faces
myfaces.extend([(v + 10, v + 6, v + 7, v + 11), (v + 9, v + 8, v + 4, v + 5),
(v + 13, v + 12, v + 8, v + 9), (v + 14, v + 10, v + 11, v + 15),
(v + 6, v + 10, v + 9, v + 5),
(v + 9, v + 10, v + 14, v + 13), (v + 11, v + 7, v + 4, v + 8), (v + 12, v + 15, v + 11, v + 8),
(v + 3, v + 7, v + 6, v + 2),
(v + 5, v + 4, v + 0, v + 1),
(v + 4, v + 7, v + 3, v + 0), (v + 5, v + 1, v + 2, v + 6), (v + 17, v + 16, v + 12, v + 13),
(v + 15, v + 19, v + 18, v + 14),
(v + 15, v + 12, v + 16, v + 19),
(v + 14, v + 18, v + 17, v + 13), (v + 29, v + 2, v + 1, v + 28),
(v + 35, v + 34, v + 17, v + 18), (v + 35, v + 33, v + 32, v + 34),
(v + 31, v + 29, v + 28, v + 30),
(v + 33, v + 31, v + 30, v + 32), (v + 25, v + 24, v + 22, v + 23),
(v + 19, v + 16, v + 26, v + 27),
(v + 3, v + 21, v + 20, v + 0), (v + 25, v + 27, v + 26, v + 24),
(v + 23, v + 22, v + 20, v + 21), (v + 3, v + 2, v + 29, v + 21),
(v + 19, v + 27, v + 35, v + 18),
(v + 31, v + 33, v + 25, v + 23), (v + 32, v + 30, v + 22, v + 24),
(v + 16, v + 17, v + 34, v + 26), (v + 0, v + 20, v + 28, v + 1)])
# Glass
if z == 0:
myfaces.extend([(v + 10, v + 9, v + 8, v + 11)])
v = len(myvertex)
# Faces (last glass)
# ------------------------
# Plastic parts
# ------------------------
ps = -0.004
gap = -0.0002
space = 0.005
if hand == "R":
ps *= -1
gap *= -1
for z in (0, sz):
for x in (0, sx):
if hand == "R":
x *= -1
myvertex.extend([(x + gap, -p, z),
(x + ps, -p, z),
(x + gap, -p, z + side),
(x + ps, -p, z + side),
(x + gap, -p - rail, z + side),
(x + ps, -p - rail, z + side),
(x + gap, -p - rail, z),
(x + ps, -p - rail, z),
(x + gap, -p + rail - space, z),
(x + gap, -p - rail - space, z),
(x + gap, -p + rail - space, z + (side * 1.5)),
(x + gap, -p - rail - space, z + (side * 1.5)),
(x + ps, -p + rail - space, z),
(x + ps, -p - rail - space, z),
(x + ps, -p + rail - space, z + (side * 1.5)),
(x + ps, -p - rail - space, z + (side * 1.5))])
myfaces.extend([(v + 12, v + 8, v + 10, v + 14), (v + 6, v + 7, v + 5, v + 4), (v + 1, v + 0, v + 2, v + 3),
(v + 5, v + 3, v + 2, v + 4), (v + 8, v + 12, v + 1, v + 0),
(v + 7, v + 6, v + 9, v + 13), (v + 13, v + 9, v + 11, v + 15),
(v + 14, v + 10, v + 11, v + 15),
(v + 10, v + 8, v + 0, v + 2, v + 4, v + 6, v + 9, v + 11),
(v + 12, v + 14, v + 15, v + 13, v + 7, v + 5, v + 3, v + 1)])
v = len(myvertex)
ps *= -1
gap *= -1
side *= -1 # reverse vertical
mymesh = bpy.data.meshes.new(objname)
mywindow = bpy.data.objects.new(objname, mymesh)
mywindow.location[0] = px
mywindow.location[1] = py
mywindow.location[2] = pz
bpy.context.scene.objects.link(mywindow)
mymesh.from_pydata(myvertex, [], myfaces)
mymesh.update(calc_edges=True)
set_normals(mywindow)
# Lock transformation
mywindow.lock_location = (False, True, True) # only X axis
mywindow.lock_rotation = (True, True, True)
# Handle
if handle:
myhandle = create_rail_handle("Handle", mat)
myhandle.parent = mywindow
if hand == "R":
myhandle.location.x = -0.035
else:
myhandle.location.x = +0.035
myhandle.location.y = -sy + 0.001
if sz / 2 <= 1:
myhandle.location.z = sz / 2
else:
myhandle.location.z = 1
if mat and bpy.context.scene.render.engine == 'CYCLES':
set_material(mywindow, matdata)
# Glass
glass = create_glass_material("Glass_material", False)
mywindow.data.materials.append(glass)
select_faces(mywindow, 32, True)
set_material_faces(mywindow, 1)
# Plastic
plastic = create_diffuse_material("Plastic_material", False, 0.01, 0.01, 0.01, 0.1, 0.1, 0.1, 0.01)
mywindow.data.materials.append(plastic)
select_faces(mywindow, 65, True)
for fa in range(66, 104):
select_faces(mywindow, fa, False)
set_material_faces(mywindow, 2)
return mywindow
# ------------------------------------------------------------------------------
# Create leaf windows leaf
#
# objName: Name for the new object
# hand: Left or Right
# sX: Size in X axis
# sY: Size in Y axis
# sZ: Size in Z axis
# f: size of the frame_L
# pX: position X axis
# pY: position Y axis
# pZ: position Z axis
# mat: Flag for creating materials
# matdata: default material
# handle: include handle
# ------------------------------------------------------------------------------
def create_leaf_window_leaf(objname, hand, sx, sy, sz, f, px, py, pz, mat, matdata, handle):
myvertex = []
myfaces = []
x = sx
z = sz
fz = f
t = sy
if hand == "R":
x *= -1
f *= -1
# ------------------------
# frame
# ------------------------
myvertex.extend([(0, 0, 0),
(0, 0, z),
(x, 0, z),
(x, 0, 0),
(f, 0, fz),
(f, 0, z - fz),
(x - f, 0, z - fz),
(x - f, 0, fz),
(f, t / 2, fz),
(f, t / 2, z - fz),
(x - f, t / 2, z - fz),
(x - f, t / 2, fz),
(f, t, fz),
(f, t, z - fz),
(x - f, t, z - fz),
(x - f, t, fz),
(0, t, 0),
(0, t, z),
(x, t, z),
(x, t, 0)])
# Faces
myfaces.extend([(13, 14, 10, 9), (10, 6, 5, 9), (11, 7, 4, 8), (12, 15, 11, 8), (13, 9, 8, 12),
(9, 5, 4, 8), (10, 14, 15, 11), (6, 10, 11, 7), (19, 3, 2, 18), (17, 1, 0, 16),
(2, 1, 17, 18), (19, 16, 0, 3), (13, 17, 18, 14), (15, 14, 18, 19), (13, 12, 16, 17),
(12, 16, 19, 15), (6, 7, 3, 2), (4, 5, 1, 0), (5, 6, 2, 1), (4, 7, 3, 0),
(10, 9, 8, 11)])
mymesh = bpy.data.meshes.new(objname)
mywindow = bpy.data.objects.new(objname, mymesh)
mywindow.location[0] = px
mywindow.location[1] = py
mywindow.location[2] = pz
bpy.context.scene.objects.link(mywindow)
mymesh.from_pydata(myvertex, [], myfaces)
mymesh.update(calc_edges=True)
set_normals(mywindow)
# Lock transformation
mywindow.lock_location = (True, True, True)
mywindow.lock_rotation = (True, True, False)
if handle:
myhandle = create_leaf_handle("Handle", mat)
if hand == "L":
myhandle.rotation_euler = (0, pi, 0)
myhandle.parent = mywindow
if hand == "R":
myhandle.location.x = -sx + 0.025
else:
myhandle.location.x = sx - 0.025
myhandle.location.y = 0
if sz / 2 <= 1:
myhandle.location.z = sz / 2
else:
myhandle.location.z = 1
set_smooth(myhandle)
set_modifier_subsurf(myhandle)
if mat and bpy.context.scene.render.engine == 'CYCLES':
set_material(mywindow, matdata)
# Glass
glass = create_glass_material("Glass_material", False)
mywindow.data.materials.append(glass)
select_faces(mywindow, 20, True)
set_material_faces(mywindow, 1)
return mywindow
# ------------------------------------------------------------
# Generate Leaf handle
#
# objName: Object name
# mat: create materials
# ------------------------------------------------------------
def create_leaf_handle(objname, mat):
# ------------------------------------
# Mesh data
# ------------------------------------
minx = -0.018522918224334717
maxx = 0.10613098740577698
miny = -0.04866280406713486
maxy = 0.0002815350890159607
minz = -0.06269633769989014
maxz = 0.06289216876029968
# Vertex
myvertex = [(minx + 0.00752672553062439, maxy - 0.0176689475774765, minz + 0.0503292977809906),
(minx + 0.002989441156387329, maxy - 0.017728276550769806, minz + 0.057490378618240356),
(minx + 0.002640664577484131, maxy - 0.01777590811252594, maxz - 0.05962774157524109),
(minx + 0.006573766469955444, maxy - 0.017799079418182373, maxz - 0.05211767554283142),
(minx + 0.013735026121139526, maxy - 0.01779157668352127, maxz - 0.04758024215698242),
(minx + 0.0222054123878479, maxy - 0.017755411565303802, maxz - 0.04723122715950012),
(minx + 0.02971544861793518, maxy - 0.01770026981830597, maxz - 0.0511641800403595),
(minx + 0.03425273299217224, maxy - 0.017640933394432068, maxz - 0.058325231075286865),
(minx + 0.03460153937339783, maxy - 0.01759330928325653, minz + 0.05879288911819458),
(minx + 0.03066837787628174, maxy - 0.017570137977600098, minz + 0.051282793283462524),
(minx + 0.02350717782974243, maxy - 0.017577648162841797, minz + 0.046745359897613525),
(minx + 0.01503676176071167, maxy - 0.017613813281059265, minz + 0.046396344900131226),
(minx + 0.007489442825317383, maxy - 0.009374044835567474, minz + 0.05037441849708557),
(minx + 0.00295218825340271, maxy - 0.009433373808860779, minz + 0.05753546953201294),
(minx + 0.0026033520698547363, maxy - 0.009481005370616913, maxz - 0.05958262085914612),
(minx + 0.006536513566970825, maxy - 0.009206198155879974, maxz - 0.05207255482673645),
(minx + 0.013697713613510132, maxy - 0.009206198155879974, maxz - 0.04753512144088745),
(minx + 0.029678165912628174, maxy - 0.009206198155879974, maxz - 0.051119059324264526),
(minx + 0.034215450286865234, maxy - 0.009206198155879974, maxz - 0.05828014016151428),
(minx + 0.03456425666809082, maxy - 0.009298399090766907, minz + 0.05883798003196716),
(minx + 0.03063112497329712, maxy - 0.00927523523569107, minz + 0.051327913999557495),
(minx + 0.023469924926757812, maxy - 0.009282737970352173, minz + 0.046790480613708496),
(minx + 0.014999479055404663, maxy - 0.009318903088569641, minz + 0.046441465616226196),
(minx + 0.009239286184310913, maxy - 0.017671361565589905, minz + 0.052188992500305176),
(minx + 0.00540238618850708, maxy - 0.017721541225910187, minz + 0.058244675397872925),
(minx + 0.005107402801513672, maxy - 0.017761819064617157, maxz - 0.06018096208572388),
(minx + 0.00843346118927002, maxy - 0.01778140664100647, maxz - 0.05383017659187317),
(minx + 0.014489203691482544, maxy - 0.017775066196918488, maxz - 0.049993157386779785),
(minx + 0.021652132272720337, maxy - 0.017744481563568115, maxz - 0.04969802498817444),
(minx + 0.028002887964248657, maxy - 0.01769784837961197, maxz - 0.053023844957351685),
(minx + 0.03183978796005249, maxy - 0.01764768362045288, maxz - 0.059079527854919434),
(minx + 0.03213474154472351, maxy - 0.01760740578174591, minz + 0.05934610962867737),
(minx + 0.02880874276161194, maxy - 0.017587818205356598, minz + 0.05299532413482666),
(minx + 0.02275294065475464, maxy - 0.01759415864944458, minz + 0.04915827512741089),
(minx + 0.015590071678161621, maxy - 0.017624743282794952, minz + 0.04886317253112793),
(minx + 0.004389584064483643, maxy - 0.0009383484721183777, minz + 0.05804264545440674),
(minx + 0.00849863886833191, maxy - 0.0009383484721183777, minz + 0.0515575110912323),
(minx + 0.00407370924949646, maxy - 0.0009383484721183777, maxz - 0.05987495183944702),
(minx + 0.007635623216629028, maxy - 0.0009383484721183777, maxz - 0.053073734045028687),
(minx + 0.014120936393737793, maxy - 0.0009383484721183777, maxz - 0.04896456003189087),
(minx + 0.021791845560073853, maxy - 0.0009383484721183777, maxz - 0.04864847660064697),
(minx + 0.0285930335521698, maxy - 0.0009383484721183777, maxz - 0.052210211753845215),
(minx + 0.03270205855369568, maxy - 0.0009383484721183777, maxz - 0.05869537591934204),
(minx + 0.03301793336868286, maxy - 0.0009383484721183777, minz + 0.05922222137451172),
(minx + 0.02945604920387268, maxy - 0.0009383484721183777, minz + 0.052421003580093384),
(minx + 0.022970736026763916, maxy - 0.0009383484721183777, minz + 0.048311829566955566),
(minx + 0.015299826860427856, maxy - 0.0009383484721183777, minz + 0.04799577593803406),
(minx + 0.009323716163635254, maxy - 0.012187294661998749, minz + 0.05233737826347351),
(minx + 0.0055314600467681885, maxy - 0.01223689317703247, minz + 0.05832257866859436),
(minx + 0.005239963531494141, maxy - 0.012276701629161835, maxz - 0.06018644571304321),
(minx + 0.008527249097824097, maxy - 0.012296058237552643, maxz - 0.05390956997871399),
(minx + 0.01451253890991211, maxy - 0.012289784848690033, maxz - 0.05011719465255737),
(minx + 0.02159211039543152, maxy - 0.012259557843208313, maxz - 0.04982548952102661),
(minx + 0.027868926525115967, maxy - 0.012213476002216339, maxz - 0.05311262607574463),
(minx + 0.03166118264198303, maxy - 0.012163884937763214, maxz - 0.05909779667854309),
(minx + 0.03195270895957947, maxy - 0.01212407648563385, minz + 0.059411197900772095),
(minx + 0.028665393590927124, maxy - 0.012104712426662445, minz + 0.05313432216644287),
(minx + 0.02268010377883911, maxy - 0.012110985815525055, minz + 0.049341946840286255),
(minx + 0.01560056209564209, maxy - 0.012141212821006775, minz + 0.04905024170875549),
(minx + 0.009444117546081543, miny + 0.009956002235412598, minz + 0.05219161510467529),
(minx + 0.005651921033859253, miny + 0.00990641862154007, minz + 0.05817681550979614),
(minx + 0.005360394716262817, miny + 0.009866602718830109, maxz - 0.06033217906951904),
(minx + 0.008647710084915161, miny + 0.009847238659858704, maxz - 0.05405530333518982),
(minx + 0.014632970094680786, miny + 0.009853512048721313, maxz - 0.0502629280090332),
(minx + 0.021712541580200195, miny + 0.00988374650478363, maxz - 0.04997122287750244),
(minx + 0.02798938751220703, miny + 0.009929820895195007, maxz - 0.05325835943222046),
(minx + 0.03178161382675171, miny + 0.00997941941022873, maxz - 0.05924355983734131),
(minx + 0.032073140144348145, miny + 0.010019220411777496, minz + 0.05926543474197388),
(minx + 0.02878585457801819, miny + 0.010038584470748901, minz + 0.05298855900764465),
(minx + 0.022800534963607788, miny + 0.010032311081886292, minz + 0.04919618368148804),
(minx + 0.015720993280410767, miny + 0.010002091526985168, minz + 0.04890450835227966),
(minx + 0.009488403797149658, miny + 0.0001087486743927002, minz + 0.05213809013366699),
(minx + 0.0056961774826049805, miny + 5.917251110076904e-05, minz + 0.058123260736465454),
(minx + 0.005404621362686157, miny + 1.9356608390808105e-05, maxz - 0.06038573384284973),
(minx + 0.008691936731338501, miny, maxz - 0.05410885810852051),
(minx + 0.014677256345748901, miny + 6.258487701416016e-06, maxz - 0.05031648278236389),
(minx + 0.021756768226623535, miny + 3.650784492492676e-05, maxz - 0.05002477765083313),
(minx + 0.02803361415863037, miny + 8.258223533630371e-05, maxz - 0.05331191420555115),
(minx + 0.031825870275497437, miny + 0.00013218075037002563, maxz - 0.05929708480834961),
(minx + 0.03211739659309387, miny + 0.00017196685075759888, minz + 0.059211909770965576),
(minx + 0.028830111026763916, miny + 0.00019133836030960083, minz + 0.052935004234313965),
(minx + 0.022844791412353516, miny + 0.0001850724220275879, minz + 0.04914262890815735),
(minx + 0.015765219926834106, miny + 0.00015483051538467407, minz + 0.04885092377662659),
(maxx - 0.010264694690704346, miny + 0.0024030879139900208, minz + 0.0574510395526886),
(maxx - 0.009389877319335938, miny + 0.0028769299387931824, minz + 0.05982285737991333),
(maxx - 0.00899556279182434, miny + 0.003135383129119873, maxz - 0.06170690059661865),
(maxx - 0.00918734073638916, miny + 0.003109179437160492, maxz - 0.0570487380027771),
(maxx - 0.009913921356201172, miny + 0.002805367112159729, maxz - 0.0530393123626709),
(maxx - 0.010980546474456787, miny + 0.002305328845977783, maxz - 0.0507529079914093),
(maxx - 0.011445850133895874, miny + 0.008283689618110657, minz + 0.05754268169403076),
(maxx - 0.010571062564849854, miny + 0.008757516741752625, minz + 0.059914469718933105),
(maxx - 0.01017671823501587, miny + 0.009015955030918121, maxz - 0.06161528825759888),
(maxx - 0.010368555784225464, miny + 0.008989766240119934, maxz - 0.056957095861434937),
(maxx - 0.011095106601715088, miny + 0.008685953915119171, maxz - 0.05294764041900635),
(maxx - 0.012161701917648315, miny + 0.008185915648937225, maxz - 0.050661295652389526),
(maxx - 0.0007557570934295654, miny + 0.019280850887298584, minz + 0.05762714147567749),
(maxx - 0.0026130378246307373, miny + 0.019916504621505737, minz + 0.05755424499511719),
(maxx - 0.00020641088485717773, miny + 0.020433299243450165, minz + 0.059989362955093384),
(maxx, miny + 0.021083541214466095, maxz - 0.06154590845108032),
(maxx - 0.00019183754920959473, miny + 0.021057337522506714, maxz - 0.05688774585723877),
(maxx - 0.0007305145263671875, miny + 0.020361721515655518, maxz - 0.05287277698516846),
(maxx - 0.0014716684818267822, miny + 0.019183076918125153, maxz - 0.05057680606842041),
(maxx - 0.0033288896083831787, miny + 0.0198187455534935, maxz - 0.0506497323513031),
(maxx - 0.0020636916160583496, miny + 0.021068952977657318, minz + 0.05991646647453308),
(maxx - 0.0018572509288787842, miny + 0.021719202399253845, maxz - 0.061618804931640625),
(maxx - 0.002049088478088379, miny + 0.021692998707294464, maxz - 0.05696064233779907),
(maxx - 0.002587735652923584, miny + 0.020997390151023865, maxz - 0.05294567346572876),
(minx + 0.018761008977890015, miny + 9.564310312271118e-05, minz + 0.062207311391830444),
(minx + 0.0222054123878479, maxy - 0.009206198155879974, maxz - 0.04723122715950012),
(minx, maxy - 0.009349517524242401, minz),
(minx, maxy, minz),
(minx + 0.03702586889266968, maxy, minz),
(minx + 0.03702586889266968, maxy - 0.009349517524242401, minz),
(minx, maxy - 0.009349517524242401, maxz),
(minx, maxy, maxz),
(minx + 0.03702586889266968, maxy, maxz),
(minx + 0.03702586889266968, maxy - 0.009349517524242401, maxz),
(minx, maxy - 0.009349517524242401, minz + 0.0038556158542633057),
(minx, maxy - 0.009349517524242401, maxz - 0.0038556158542633057),
(minx, maxy, maxz - 0.0038556158542633057),
(minx, maxy, minz + 0.0038556158542633057),
(minx + 0.03702586889266968, maxy, maxz - 0.0038556158542633057),
(minx + 0.03702586889266968, maxy, minz + 0.0038556158542633057),
(minx + 0.03702586889266968, maxy - 0.009349517524242401, maxz - 0.0038556158542633057),
(minx + 0.03702586889266968, maxy - 0.009349517524242401, minz + 0.0038556158542633057),
(minx, maxy, maxz),
(minx, maxy, minz),
(minx + 0.03702586889266968, maxy, maxz),
(minx + 0.03702586889266968, maxy, minz),
(minx, maxy, maxz - 0.0038556158542633057),
(minx, maxy, minz + 0.0038556158542633057),
(minx + 0.03702586889266968, maxy, maxz - 0.0038556158542633057),
(minx + 0.03702586889266968, maxy, minz + 0.0038556158542633057),
(minx + 0.00467991828918457, maxy, maxz),
(minx + 0.03234601020812988, maxy, maxz),
(minx + 0.03234601020812988, maxy, minz),
(minx + 0.00467991828918457, maxy, minz),
(minx + 0.03234601020812988, maxy - 0.009349517524242401, maxz),
(minx + 0.00467991828918457, maxy - 0.009349517524242401, maxz),
(minx + 0.00467991828918457, maxy - 0.009349517524242401, minz),
(minx + 0.03234601020812988, maxy - 0.009349517524242401, minz),
(minx + 0.03234601020812988, maxy, maxz - 0.0038556158542633057),
(minx + 0.00467991828918457, maxy, maxz - 0.0038556158542633057),
(minx + 0.03234601020812988, maxy, minz + 0.0038556158542633057),
(minx + 0.00467991828918457, maxy, minz + 0.0038556158542633057),
(minx + 0.00467991828918457, maxy - 0.009349517524242401, maxz - 0.0038556158542633057),
(minx + 0.03234601020812988, maxy - 0.009349517524242401, maxz - 0.0038556158542633057),
(minx + 0.00467991828918457, maxy - 0.009349517524242401, minz + 0.0038556158542633057),
(minx + 0.03234601020812988, maxy - 0.009349517524242401, minz + 0.0038556158542633057),
(minx + 0.00467991828918457, maxy, minz),
(minx + 0.03234601020812988, maxy, minz),
(minx + 0.03234601020812988, maxy, maxz),
(minx + 0.00467991828918457, maxy, maxz),
(minx + 0.01765689253807068, maxy - 0.008991599082946777, maxz - 0.00847548246383667),
(minx + 0.014916181564331055, maxy - 0.008991599082946777, maxz - 0.00961071252822876),
(minx + 0.013780921697616577, maxy - 0.008991606533527374, maxz - 0.012351423501968384),
(minx + 0.014916181564331055, maxy - 0.008991606533527374, maxz - 0.015092134475708008),
(minx + 0.01765689253807068, maxy - 0.008991606533527374, maxz - 0.016227364540100098),
(minx + 0.02039763331413269, maxy - 0.008991606533527374, maxz - 0.015092134475708008),
(minx + 0.021532833576202393, maxy - 0.008991606533527374, maxz - 0.012351423501968384),
(minx + 0.02039763331413269, maxy - 0.008991599082946777, maxz - 0.00961071252822876),
(minx + 0.01765689253807068, maxy - 0.0095299631357193, maxz - 0.00847548246383667),
(minx + 0.014916181564331055, maxy - 0.0095299631357193, maxz - 0.00961071252822876),
(minx + 0.013780921697616577, maxy - 0.0095299631357193, maxz - 0.012351423501968384),
(minx + 0.014916181564331055, maxy - 0.0095299631357193, maxz - 0.015092134475708008),
(minx + 0.01765689253807068, maxy - 0.0095299631357193, maxz - 0.016227364540100098),
(minx + 0.02039763331413269, maxy - 0.0095299631357193, maxz - 0.015092134475708008),
(minx + 0.021532833576202393, maxy - 0.0095299631357193, maxz - 0.012351423501968384),
(minx + 0.02039763331413269, maxy - 0.0095299631357193, maxz - 0.00961071252822876),
(minx + 0.01765689253807068, maxy - 0.0095299631357193, maxz - 0.009734481573104858),
(minx + 0.0158064067363739, maxy - 0.0095299631357193, maxz - 0.010500967502593994),
(minx + 0.015039980411529541, maxy - 0.0095299631357193, maxz - 0.012351423501968384),
(minx + 0.0158064067363739, maxy - 0.0095299631357193, maxz - 0.014201879501342773),
(minx + 0.01765689253807068, maxy - 0.0095299631357193, maxz - 0.014968395233154297),
(minx + 0.01950731873512268, maxy - 0.0095299631357193, maxz - 0.014201879501342773),
(minx + 0.020273834466934204, maxy - 0.0095299631357193, maxz - 0.012351423501968384),
(minx + 0.01950731873512268, maxy - 0.0095299631357193, maxz - 0.010500967502593994),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, maxz - 0.009734481573104858),
(minx + 0.0158064067363739, maxy - 0.009312078356742859, maxz - 0.010500967502593994),
(minx + 0.015039980411529541, maxy - 0.009312078356742859, maxz - 0.012351423501968384),
(minx + 0.0158064067363739, maxy - 0.009312078356742859, maxz - 0.014201879501342773),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, maxz - 0.014968395233154297),
(minx + 0.01950731873512268, maxy - 0.009312078356742859, maxz - 0.014201879501342773),
(minx + 0.020273834466934204, maxy - 0.009312078356742859, maxz - 0.012351423501968384),
(minx + 0.01950731873512268, maxy - 0.009312078356742859, maxz - 0.010500967502593994),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, maxz - 0.01099047064781189),
(minx + 0.01669454574584961, maxy - 0.009312078356742859, maxz - 0.011389046907424927),
(minx + 0.016295909881591797, maxy - 0.009312078356742859, maxz - 0.012351423501968384),
(minx + 0.01669454574584961, maxy - 0.009312078356742859, maxz - 0.013313770294189453),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, maxz - 0.013712406158447266),
(minx + 0.01861920952796936, maxy - 0.009312078356742859, maxz - 0.013313770294189453),
(minx + 0.019017815589904785, maxy - 0.009312078356742859, maxz - 0.012351423501968384),
(minx + 0.01861920952796936, maxy - 0.009312078356742859, maxz - 0.011389046907424927),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, maxz - 0.011496275663375854),
(minx + 0.01705223321914673, maxy - 0.009312078356742859, maxz - 0.011746734380722046),
(minx + 0.01680171489715576, maxy - 0.009312078356742859, maxz - 0.012351423501968384),
(minx + 0.01705223321914673, maxy - 0.009312078356742859, maxz - 0.012956112623214722),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, maxz - 0.013206571340560913),
(minx + 0.018261581659317017, maxy - 0.009312078356742859, maxz - 0.012956112623214722),
(minx + 0.018512040376663208, maxy - 0.009312078356742859, maxz - 0.012351423501968384),
(minx + 0.018261581659317017, maxy - 0.009312078356742859, maxz - 0.011746734380722046),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, maxz - 0.009734481573104858),
(minx + 0.0158064067363739, maxy - 0.009564712643623352, maxz - 0.010500967502593994),
(minx + 0.015039980411529541, maxy - 0.009564712643623352, maxz - 0.012351423501968384),
(minx + 0.0158064067363739, maxy - 0.009564712643623352, maxz - 0.014201879501342773),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, maxz - 0.014968395233154297),
(minx + 0.01950731873512268, maxy - 0.009564712643623352, maxz - 0.014201879501342773),
(minx + 0.020273834466934204, maxy - 0.009564712643623352, maxz - 0.012351423501968384),
(minx + 0.01950731873512268, maxy - 0.009564712643623352, maxz - 0.010500967502593994),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, maxz - 0.01099047064781189),
(minx + 0.01669454574584961, maxy - 0.009564712643623352, maxz - 0.011389046907424927),
(minx + 0.016295909881591797, maxy - 0.009564712643623352, maxz - 0.012351423501968384),
(minx + 0.01669454574584961, maxy - 0.009564712643623352, maxz - 0.013313770294189453),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, maxz - 0.013712406158447266),
(minx + 0.01861920952796936, maxy - 0.009564712643623352, maxz - 0.013313770294189453),
(minx + 0.019017815589904785, maxy - 0.009564712643623352, maxz - 0.012351423501968384),
(minx + 0.01861920952796936, maxy - 0.009564712643623352, maxz - 0.011389046907424927),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, maxz - 0.011496275663375854),
(minx + 0.01705223321914673, maxy - 0.009564712643623352, maxz - 0.011746734380722046),
(minx + 0.01680171489715576, maxy - 0.009564712643623352, maxz - 0.012351423501968384),
(minx + 0.01705223321914673, maxy - 0.009564712643623352, maxz - 0.012956112623214722),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, maxz - 0.013206571340560913),
(minx + 0.018261581659317017, maxy - 0.009564712643623352, maxz - 0.012956112623214722),
(minx + 0.018512040376663208, maxy - 0.009564712643623352, maxz - 0.012351423501968384),
(minx + 0.018261581659317017, maxy - 0.009564712643623352, maxz - 0.011746734380722046),
(minx + 0.01765689253807068, maxy - 0.008991599082946777, minz + 0.017180711030960083),
(minx + 0.014916181564331055, maxy - 0.008991599082946777, minz + 0.016045480966567993),
(minx + 0.013780921697616577, maxy - 0.008991606533527374, minz + 0.01330476999282837),
(minx + 0.014916181564331055, maxy - 0.008991606533527374, minz + 0.010564059019088745),
(minx + 0.01765689253807068, maxy - 0.008991606533527374, minz + 0.009428799152374268),
(minx + 0.02039763331413269, maxy - 0.008991606533527374, minz + 0.010564059019088745),
(minx + 0.021532833576202393, maxy - 0.008991606533527374, minz + 0.01330476999282837),
(minx + 0.02039763331413269, maxy - 0.008991599082946777, minz + 0.016045480966567993),
(minx + 0.01765689253807068, maxy - 0.0095299631357193, minz + 0.017180711030960083),
(minx + 0.014916181564331055, maxy - 0.0095299631357193, minz + 0.016045480966567993),
(minx + 0.013780921697616577, maxy - 0.0095299631357193, minz + 0.01330476999282837),
(minx + 0.014916181564331055, maxy - 0.0095299631357193, minz + 0.010564059019088745),
(minx + 0.01765689253807068, maxy - 0.0095299631357193, minz + 0.009428799152374268),
(minx + 0.02039763331413269, maxy - 0.0095299631357193, minz + 0.010564059019088745),
(minx + 0.021532833576202393, maxy - 0.0095299631357193, minz + 0.01330476999282837),
(minx + 0.02039763331413269, maxy - 0.0095299631357193, minz + 0.016045480966567993),
(minx + 0.01765689253807068, maxy - 0.0095299631357193, minz + 0.015921711921691895),
(minx + 0.0158064067363739, maxy - 0.0095299631357193, minz + 0.015155225992202759),
(minx + 0.015039980411529541, maxy - 0.0095299631357193, minz + 0.01330476999282837),
(minx + 0.0158064067363739, maxy - 0.0095299631357193, minz + 0.01145431399345398),
(minx + 0.01765689253807068, maxy - 0.0095299631357193, minz + 0.010687828063964844),
(minx + 0.01950731873512268, maxy - 0.0095299631357193, minz + 0.01145431399345398),
(minx + 0.020273834466934204, maxy - 0.0095299631357193, minz + 0.01330476999282837),
(minx + 0.01950731873512268, maxy - 0.0095299631357193, minz + 0.015155225992202759),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, minz + 0.015921711921691895),
(minx + 0.0158064067363739, maxy - 0.009312078356742859, minz + 0.015155225992202759),
(minx + 0.015039980411529541, maxy - 0.009312078356742859, minz + 0.01330476999282837),
(minx + 0.0158064067363739, maxy - 0.009312078356742859, minz + 0.01145431399345398),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, minz + 0.010687828063964844),
(minx + 0.01950731873512268, maxy - 0.009312078356742859, minz + 0.01145431399345398),
(minx + 0.020273834466934204, maxy - 0.009312078356742859, minz + 0.01330476999282837),
(minx + 0.01950731873512268, maxy - 0.009312078356742859, minz + 0.015155225992202759),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, minz + 0.014665752649307251),
(minx + 0.01669454574584961, maxy - 0.009312078356742859, minz + 0.014267116785049438),
(minx + 0.016295909881591797, maxy - 0.009312078356742859, minz + 0.01330476999282837),
(minx + 0.01669454574584961, maxy - 0.009312078356742859, minz + 0.012342393398284912),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, minz + 0.011943817138671875),
(minx + 0.01861920952796936, maxy - 0.009312078356742859, minz + 0.012342393398284912),
(minx + 0.019017815589904785, maxy - 0.009312078356742859, minz + 0.01330476999282837),
(minx + 0.01861920952796936, maxy - 0.009312078356742859, minz + 0.014267116785049438),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, minz + 0.014159917831420898),
(minx + 0.01705223321914673, maxy - 0.009312078356742859, minz + 0.01390942931175232),
(minx + 0.01680171489715576, maxy - 0.009312078356742859, minz + 0.01330476999282837),
(minx + 0.01705223321914673, maxy - 0.009312078356742859, minz + 0.012700080871582031),
(minx + 0.01765689253807068, maxy - 0.009312078356742859, minz + 0.012449592351913452),
(minx + 0.018261581659317017, maxy - 0.009312078356742859, minz + 0.012700080871582031),
(minx + 0.018512040376663208, maxy - 0.009312078356742859, minz + 0.01330476999282837),
(minx + 0.018261581659317017, maxy - 0.009312078356742859, minz + 0.01390942931175232),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, minz + 0.015921711921691895),
(minx + 0.0158064067363739, maxy - 0.009564712643623352, minz + 0.015155225992202759),
(minx + 0.015039980411529541, maxy - 0.009564712643623352, minz + 0.01330476999282837),
(minx + 0.0158064067363739, maxy - 0.009564712643623352, minz + 0.01145431399345398),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, minz + 0.010687828063964844),
(minx + 0.01950731873512268, maxy - 0.009564712643623352, minz + 0.01145431399345398),
(minx + 0.020273834466934204, maxy - 0.009564712643623352, minz + 0.01330476999282837),
(minx + 0.01950731873512268, maxy - 0.009564712643623352, minz + 0.015155225992202759),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, minz + 0.014665752649307251),
(minx + 0.01669454574584961, maxy - 0.009564712643623352, minz + 0.014267116785049438),
(minx + 0.016295909881591797, maxy - 0.009564712643623352, minz + 0.01330476999282837),
(minx + 0.01669454574584961, maxy - 0.009564712643623352, minz + 0.012342393398284912),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, minz + 0.011943817138671875),
(minx + 0.01861920952796936, maxy - 0.009564712643623352, minz + 0.012342393398284912),
(minx + 0.019017815589904785, maxy - 0.009564712643623352, minz + 0.01330476999282837),
(minx + 0.01861920952796936, maxy - 0.009564712643623352, minz + 0.014267116785049438),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, minz + 0.014159917831420898),
(minx + 0.01705223321914673, maxy - 0.009564712643623352, minz + 0.01390942931175232),
(minx + 0.01680171489715576, maxy - 0.009564712643623352, minz + 0.01330476999282837),
(minx + 0.01705223321914673, maxy - 0.009564712643623352, minz + 0.012700080871582031),
(minx + 0.01765689253807068, maxy - 0.009564712643623352, minz + 0.012449592351913452),
(minx + 0.018261581659317017, maxy - 0.009564712643623352, minz + 0.012700080871582031),
(minx + 0.018512040376663208, maxy - 0.009564712643623352, minz + 0.01330476999282837),
(minx + 0.018261581659317017, maxy - 0.009564712643623352, minz + 0.01390942931175232)]
# Faces
myfaces = [(12, 0, 1, 13), (13, 1, 2, 14), (14, 2, 3, 15), (15, 3, 4, 16), (17, 6, 7, 18),
(18, 7, 8, 19), (19, 8, 9, 20), (20, 9, 10, 21), (21, 10, 11, 22), (22, 11, 0, 12),
(1, 0, 23, 24), (2, 1, 24, 25), (3, 2, 25, 26), (4, 3, 26, 27), (5, 4, 27, 28),
(6, 5, 28, 29), (7, 6, 29, 30), (8, 7, 30, 31), (9, 8, 31, 32), (10, 9, 32, 33),
(11, 10, 33, 34), (0, 11, 34, 23), (24, 23, 36, 35), (25, 24, 35, 37), (26, 25, 37, 38),
(27, 26, 38, 39), (28, 27, 39, 40), (29, 28, 40, 41), (30, 29, 41, 42), (31, 30, 42, 43),
(32, 31, 43, 44), (33, 32, 44, 45), (34, 33, 45, 46), (23, 34, 46, 36), (48, 47, 59, 60),
(49, 48, 60, 61), (50, 49, 61, 62), (51, 50, 62, 63), (52, 51, 63, 64), (53, 52, 64, 65),
(54, 53, 65, 66), (55, 54, 66, 67), (56, 55, 67, 68), (57, 56, 68, 69), (58, 57, 69, 70),
(59, 47, 58, 70), (60, 59, 71, 72), (61, 60, 72, 73), (62, 61, 73, 74), (63, 62, 74, 75),
(64, 63, 75, 76), (70, 69, 81, 82), (70, 82, 71, 59), (81, 69, 89, 83), (80, 81, 83, 84),
(79, 80, 84, 85), (78, 79, 85, 86), (77, 78, 86, 87), (76, 77, 87, 88), (64, 76, 88, 94),
(69, 68, 90, 89), (68, 67, 91, 90), (67, 66, 92, 91), (66, 65, 93, 92), (65, 64, 94, 93),
(83, 89, 96, 95), (84, 83, 95, 97), (85, 84, 97, 98), (86, 85, 98, 99), (87, 86, 99, 100),
(88, 87, 100, 101), (94, 88, 101, 102), (89, 90, 103, 96), (90, 91, 104, 103), (91, 92, 105, 104),
(92, 93, 106, 105), (93, 94, 102, 106), (100, 106, 102, 101), (99, 105, 106, 100), (98, 104, 105, 99),
(97, 103, 104, 98), (95, 96, 103, 97), (72, 71, 107), (73, 72, 107), (74, 73, 107),
(75, 74, 107), (76, 75, 107), (77, 76, 107), (78, 77, 107), (79, 78, 107),
(80, 79, 107), (81, 80, 107), (82, 81, 107), (71, 82, 107), (17, 108, 5, 6),
(5, 108, 16, 4), (130, 120, 110, 126), (143, 122, 111, 135), (132, 124, 112, 128), (147, 117, 109, 139),
(150, 135, 111, 128), (152, 133, 114, 125), (125, 114, 119, 129),
(129, 119, 120, 130), (134, 115, 121, 141),
(141, 121, 122, 143), (127, 116, 123, 131), (131, 123, 124, 132),
(138, 113, 118, 145), (145, 118, 117, 147),
(117, 130, 126, 109), (122, 132, 128, 111), (140, 150, 128, 112),
(138, 152, 125, 113), (113, 125, 129, 118),
(118, 129, 130, 117), (115, 127, 131, 121), (121, 131, 132, 122),
(120, 144, 136, 110), (144, 143, 135, 136),
(124, 148, 140, 112), (148, 147, 139, 140), (126, 110, 136, 149),
(149, 136, 135, 150), (127, 115, 134, 151),
(151, 134, 133, 152), (114, 133, 142, 119), (133, 134, 141, 142),
(119, 142, 144, 120), (142, 141, 143, 144),
(116, 137, 146, 123), (137, 138, 145, 146), (123, 146, 148, 124),
(146, 145, 147, 148), (109, 126, 149, 139),
(139, 149, 150, 140), (116, 127, 151, 137), (137, 151, 152, 138),
(153, 160, 168, 161), (160, 159, 167, 168),
(159, 158, 166, 167), (158, 157, 165, 166), (157, 156, 164, 165),
(156, 155, 163, 164), (155, 154, 162, 163),
(154, 153, 161, 162), (161, 168, 176, 169), (168, 167, 175, 176),
(167, 166, 174, 175), (166, 165, 173, 174),
(165, 164, 172, 173), (164, 163, 171, 172), (163, 162, 170, 171),
(162, 161, 169, 170), (169, 176, 184, 177),
(176, 175, 183, 184), (175, 174, 182, 183), (174, 173, 181, 182),
(173, 172, 180, 181), (172, 171, 179, 180),
(171, 170, 178, 179), (170, 169, 177, 178), (197, 189, 213, 221),
(184, 183, 191, 192), (196, 197, 221, 220),
(182, 181, 189, 190), (185, 177, 201, 209), (180, 179, 187, 188),
(195, 187, 211, 219), (178, 177, 185, 186),
(198, 199, 223, 222), (192, 191, 199, 200), (191, 183, 207, 215),
(190, 189, 197, 198), (200, 193, 217, 224),
(188, 187, 195, 196), (189, 181, 205, 213), (186, 185, 193, 194),
(194, 193, 200, 199, 198, 197, 196, 195),
(201, 208, 216, 209),
(207, 206, 214, 215), (205, 204, 212, 213), (203, 202, 210, 211),
(209, 216, 224, 217), (215, 214, 222, 223),
(213, 212, 220, 221), (211, 210, 218, 219), (194, 195, 219, 218),
(199, 191, 215, 223), (178, 186, 210, 202),
(193, 185, 209, 217), (177, 184, 208, 201), (180, 188, 212, 204),
(183, 182, 206, 207), (182, 190, 214, 206),
(186, 194, 218, 210), (181, 180, 204, 205), (184, 192, 216, 208),
(188, 196, 220, 212), (179, 178, 202, 203),
(190, 198, 222, 214), (192, 200, 224, 216), (187, 179, 203, 211),
(225, 232, 240, 233), (232, 231, 239, 240),
(231, 230, 238, 239), (230, 229, 237, 238), (229, 228, 236, 237),
(228, 227, 235, 236), (227, 226, 234, 235),
(226, 225, 233, 234), (233, 240, 248, 241), (240, 239, 247, 248),
(239, 238, 246, 247), (238, 237, 245, 246),
(237, 236, 244, 245), (236, 235, 243, 244), (235, 234, 242, 243),
(234, 233, 241, 242), (241, 248, 256, 249),
(248, 247, 255, 256), (247, 246, 254, 255), (246, 245, 253, 254),
(245, 244, 252, 253), (244, 243, 251, 252),
(243, 242, 250, 251), (242, 241, 249, 250), (269, 261, 285, 293),
(256, 255, 263, 264), (268, 269, 293, 292),
(254, 253, 261, 262), (257, 249, 273, 281), (252, 251, 259, 260),
(267, 259, 283, 291), (250, 249, 257, 258),
(270, 271, 295, 294), (264, 263, 271, 272), (263, 255, 279, 287),
(262, 261, 269, 270), (272, 265, 289, 296),
(260, 259, 267, 268), (261, 253, 277, 285), (258, 257, 265, 266),
(266, 265, 272, 271, 270, 269, 268, 267),
(273, 280, 288, 281),
(279, 278, 286, 287), (277, 276, 284, 285), (275, 274, 282, 283),
(281, 288, 296, 289), (287, 286, 294, 295),
(285, 284, 292, 293), (283, 282, 290, 291), (266, 267, 291, 290),
(271, 263, 287, 295), (250, 258, 282, 274),
(265, 257, 281, 289), (249, 256, 280, 273), (252, 260, 284, 276),
(255, 254, 278, 279), (254, 262, 286, 278),
(258, 266, 290, 282), (253, 252, 276, 277), (256, 264, 288, 280),
(260, 268, 292, 284), (251, 250, 274, 275),
(262, 270, 294, 286), (264, 272, 296, 288), (259, 251, 275, 283)]
mesh = bpy.data.meshes.new(objname)
myobject = bpy.data.objects.new(objname, mesh)
myobject.location = bpy.context.scene.cursor_location
bpy.context.scene.objects.link(myobject)
mesh.from_pydata(myvertex, [], myfaces)
mesh.update(calc_edges=True)
# Create materials
if mat and bpy.context.scene.render.engine == 'CYCLES':
alumat = create_glossy_material("Handle_material", False, 0.733, 0.779, 0.8)
set_material(myobject, alumat)
return myobject
# ------------------------------------------------------------
# Generate rail handle
#
# objName: Object name
# mat: create materials
# ------------------------------------------------------------
def create_rail_handle(objname, mat):
# ------------------------------------
# Mesh data
# ------------------------------------
minx = -0.007970962673425674
maxx = 0.007971039041876793
miny = -0.0038057267665863037
maxy = 6.780028343200684e-07
minz = -0.07533407211303711
maxz = 0.05025443434715271
# Vertex
myvertex = [(minx, miny + 0.0009473562240600586, minz),
(minx, maxy, minz),
(maxx, maxy, minz),
(maxx, miny + 0.0009473562240600586, minz),
(minx, miny + 0.0009473562240600586, maxz),
(minx, maxy, maxz),
(maxx, maxy, maxz),
(maxx, miny + 0.0009473562240600586, maxz),
(minx, miny + 0.0009473562240600586, minz + 0.0038556158542633057),
(minx, miny + 0.0009473562240600586, maxz - 0.0038556158542633057),
(minx, maxy, minz + 0.0038556158542633057),
(maxx, miny + 0.0009473562240600586, maxz - 0.0038556158542633057),
(maxx, miny + 0.0009473562240600586, minz + 0.0038556158542633057),
(minx, maxy, maxz - 0.0038556158542633057),
(maxx, maxy, maxz - 0.0038556158542633057),
(maxx, maxy, minz + 0.0038556158542633057),
(maxx - 0.002014978788793087, maxy, maxz),
(minx + 0.0020150020718574524, maxy, minz),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, maxz),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, maxz),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, minz),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, minz),
(maxx - 0.002014978788793087, maxy, maxz - 0.0038556158542633057),
(minx + 0.0020150020718574524, maxy, maxz - 0.0038556158542633057),
(maxx - 0.002014978788793087, maxy, minz + 0.0038556158542633057),
(minx + 0.0020150020718574524, maxy, minz + 0.0038556158542633057),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, maxz - 0.0038556158542633057),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, maxz - 0.0038556158542633057),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, minz + 0.0038556158542633057),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, minz + 0.0038556158542633057),
(maxx - 0.002014978788793087, maxy, minz),
(minx + 0.0020150020718574524, maxy, maxz),
(minx + 0.007114947948139161, miny + 0.001102180453017354, maxz - 0.004768103361129761),
(minx + 0.0057074506767094135, miny + 0.001102180453017354, maxz - 0.005351103842258453),
(minx + 0.005124435992911458, miny + 0.001102176494896412, maxz - 0.006758600473403931),
(minx + 0.0057074506767094135, miny + 0.001102176494896412, maxz - 0.008166097104549408),
(minx + 0.007114947948139161, miny + 0.001102176494896412, maxz - 0.0087490975856781),
(maxx - 0.0074195414781570435, miny + 0.001102176494896412, maxz - 0.008166097104549408),
(maxx - 0.006836557062342763, miny + 0.001102176494896412, maxz - 0.006758600473403931),
(maxx - 0.0074195414781570435, miny + 0.001102180453017354, maxz - 0.005351103842258453),
(minx + 0.007114947948139161, miny + 0.0008257024455815554, maxz - 0.004768103361129761),
(minx + 0.0057074506767094135, miny + 0.0008257024455815554, maxz - 0.005351103842258453),
(minx + 0.005124435992911458, miny + 0.0008257024455815554, maxz - 0.006758600473403931),
(minx + 0.0057074506767094135, miny + 0.0008257024455815554, maxz - 0.008166097104549408),
(minx + 0.007114947948139161, miny + 0.0008257024455815554, maxz - 0.0087490975856781),
(maxx - 0.0074195414781570435, miny + 0.0008257024455815554, maxz - 0.008166097104549408),
(maxx - 0.006836557062342763, miny + 0.0008257024455815554, maxz - 0.006758600473403931),
(maxx - 0.0074195414781570435, miny + 0.0008257024455815554, maxz - 0.005351103842258453),
(minx + 0.007114947948139161, miny + 0.000937597593292594, maxz - 0.0054146647453308105),
(minx + 0.006164627615362406, miny + 0.000937597593292594, maxz - 0.00580829381942749),
(minx + 0.0057710278779268265, miny + 0.000937597593292594, maxz - 0.006758600473403931),
(minx + 0.006164627615362406, miny + 0.000937597593292594, maxz - 0.007708907127380371),
(minx + 0.007114947948139161, miny + 0.000937597593292594, maxz - 0.008102551102638245),
(maxx - 0.007876764051616192, miny + 0.000937597593292594, maxz - 0.007708907127380371),
(maxx - 0.007483118446543813, miny + 0.000937597593292594, maxz - 0.006758600473403931),
(maxx - 0.007876764051616192, miny + 0.000937597593292594, maxz - 0.00580829381942749),
(minx + 0.007114947948139161, miny + 0.000937597593292594, maxz - 0.006059680134057999),
(minx + 0.006620732950977981, miny + 0.000937597593292594, maxz - 0.006264369934797287),
(minx + 0.006416012765839696, miny + 0.000937597593292594, maxz - 0.006758600473403931),
(minx + 0.006620732950977981, miny + 0.000937597593292594, maxz - 0.0072528161108493805),
(minx + 0.007114947948139161, miny + 0.000937597593292594, maxz - 0.0074575357139110565),
(minx + 0.0076091475784778595, miny + 0.000937597593292594, maxz - 0.0072528161108493805),
(minx + 0.007813852455001324, miny + 0.000937597593292594, maxz - 0.006758600473403931),
(minx + 0.0076091475784778595, miny + 0.000937597593292594, maxz - 0.006264369934797287),
(minx + 0.007114947948139161, miny + 0.000937597593292594, maxz - 0.006319437175989151),
(minx + 0.006804424105212092, miny + 0.000937597593292594, maxz - 0.0064480602741241455),
(minx + 0.00667576992418617, miny + 0.000937597593292594, maxz - 0.006758600473403931),
(minx + 0.006804424105212092, miny + 0.000937597593292594, maxz - 0.007069140672683716),
(minx + 0.007114947948139161, miny + 0.000937597593292594, maxz - 0.00719776377081871),
(minx + 0.0074254871578887105, miny + 0.000937597593292594, maxz - 0.007069140672683716),
(minx + 0.007554110663477331, miny + 0.000937597593292594, maxz - 0.006758600473403931),
(minx + 0.0074254871578887105, miny + 0.000937597593292594, maxz - 0.0064480602741241455),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, maxz - 0.0054146647453308105),
(minx + 0.006164627615362406, miny + 0.0008078569080680609, maxz - 0.00580829381942749),
(minx + 0.0057710278779268265, miny + 0.0008078569080680609, maxz - 0.006758600473403931),
(minx + 0.006164627615362406, miny + 0.0008078569080680609, maxz - 0.007708907127380371),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, maxz - 0.008102551102638245),
(maxx - 0.007876764051616192, miny + 0.0008078569080680609, maxz - 0.007708907127380371),
(maxx - 0.007483118446543813, miny + 0.0008078569080680609, maxz - 0.006758600473403931),
(maxx - 0.007876764051616192, miny + 0.0008078569080680609, maxz - 0.00580829381942749),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, maxz - 0.006059680134057999),
(minx + 0.006620732950977981, miny + 0.0008078569080680609, maxz - 0.006264369934797287),
(minx + 0.006416012765839696, miny + 0.0008078569080680609, maxz - 0.006758600473403931),
(minx + 0.006620732950977981, miny + 0.0008078569080680609, maxz - 0.0072528161108493805),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, maxz - 0.0074575357139110565),
(minx + 0.0076091475784778595, miny + 0.0008078569080680609, maxz - 0.0072528161108493805),
(minx + 0.007813852455001324, miny + 0.0008078569080680609, maxz - 0.006758600473403931),
(minx + 0.0076091475784778595, miny + 0.0008078569080680609, maxz - 0.006264369934797287),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, maxz - 0.006319437175989151),
(minx + 0.006804424105212092, miny + 0.0008078569080680609, maxz - 0.0064480602741241455),
(minx + 0.00667576992418617, miny + 0.0008078569080680609, maxz - 0.006758600473403931),
(minx + 0.006804424105212092, miny + 0.0008078569080680609, maxz - 0.007069140672683716),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, maxz - 0.00719776377081871),
(minx + 0.0074254871578887105, miny + 0.0008078569080680609, maxz - 0.007069140672683716),
(minx + 0.007554110663477331, miny + 0.0008078569080680609, maxz - 0.006758600473403931),
(minx + 0.0074254871578887105, miny + 0.0008078569080680609, maxz - 0.0064480602741241455),
(minx + 0.0074254871578887105, miny + 0.0008078569080680609, minz + 0.007765233516693115),
(minx + 0.007554110663477331, miny + 0.0008078569080680609, minz + 0.00745469331741333),
(minx + 0.0074254871578887105, miny + 0.0008078569080680609, minz + 0.007144153118133545),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, minz + 0.007015526294708252),
(minx + 0.006804424105212092, miny + 0.0008078569080680609, minz + 0.007144153118133545),
(minx + 0.00667576992418617, miny + 0.0008078569080680609, minz + 0.00745469331741333),
(minx + 0.006804424105212092, miny + 0.0008078569080680609, minz + 0.007765233516693115),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, minz + 0.007893860340118408),
(minx + 0.0076091475784778595, miny + 0.0008078569080680609, minz + 0.007948920130729675),
(minx + 0.007813852455001324, miny + 0.0008078569080680609, minz + 0.00745469331741333),
(minx + 0.0076091475784778595, miny + 0.0008078569080680609, minz + 0.006960481405258179),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, minz + 0.006755754351615906),
(minx + 0.006620732950977981, miny + 0.0008078569080680609, minz + 0.006960481405258179),
(minx + 0.006416012765839696, miny + 0.0008078569080680609, minz + 0.00745469331741333),
(minx + 0.006620732950977981, miny + 0.0008078569080680609, minz + 0.007948920130729675),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, minz + 0.00815361738204956),
(maxx - 0.007876764051616192, miny + 0.0008078569080680609, minz + 0.00840499997138977),
(maxx - 0.007483118446543813, miny + 0.0008078569080680609, minz + 0.00745469331741333),
(maxx - 0.007876764051616192, miny + 0.0008078569080680609, minz + 0.00650438666343689),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, minz + 0.006110742688179016),
(minx + 0.006164627615362406, miny + 0.0008078569080680609, minz + 0.00650438666343689),
(minx + 0.0057710278779268265, miny + 0.0008078569080680609, minz + 0.00745469331741333),
(minx + 0.006164627615362406, miny + 0.0008078569080680609, minz + 0.00840499997138977),
(minx + 0.007114947948139161, miny + 0.0008078569080680609, minz + 0.00879862904548645),
(minx + 0.0074254871578887105, miny + 0.000937597593292594, minz + 0.007765233516693115),
(minx + 0.007554110663477331, miny + 0.000937597593292594, minz + 0.00745469331741333),
(minx + 0.0074254871578887105, miny + 0.000937597593292594, minz + 0.007144153118133545),
(minx + 0.007114947948139161, miny + 0.000937597593292594, minz + 0.007015526294708252),
(minx + 0.006804424105212092, miny + 0.000937597593292594, minz + 0.007144153118133545),
(minx + 0.00667576992418617, miny + 0.000937597593292594, minz + 0.00745469331741333),
(minx + 0.006804424105212092, miny + 0.000937597593292594, minz + 0.007765233516693115),
(minx + 0.007114947948139161, miny + 0.000937597593292594, minz + 0.007893860340118408),
(minx + 0.0076091475784778595, miny + 0.000937597593292594, minz + 0.007948920130729675),
(minx + 0.007813852455001324, miny + 0.000937597593292594, minz + 0.00745469331741333),
(minx + 0.0076091475784778595, miny + 0.000937597593292594, minz + 0.006960481405258179),
(minx + 0.007114947948139161, miny + 0.000937597593292594, minz + 0.006755754351615906),
(minx + 0.006620732950977981, miny + 0.000937597593292594, minz + 0.006960481405258179),
(minx + 0.006416012765839696, miny + 0.000937597593292594, minz + 0.00745469331741333),
(minx + 0.006620732950977981, miny + 0.000937597593292594, minz + 0.007948920130729675),
(minx + 0.007114947948139161, miny + 0.000937597593292594, minz + 0.00815361738204956),
(maxx - 0.007876764051616192, miny + 0.000937597593292594, minz + 0.00840499997138977),
(maxx - 0.007483118446543813, miny + 0.000937597593292594, minz + 0.00745469331741333),
(maxx - 0.007876764051616192, miny + 0.000937597593292594, minz + 0.00650438666343689),
(minx + 0.007114947948139161, miny + 0.000937597593292594, minz + 0.006110742688179016),
(minx + 0.006164627615362406, miny + 0.000937597593292594, minz + 0.00650438666343689),
(minx + 0.0057710278779268265, miny + 0.000937597593292594, minz + 0.00745469331741333),
(minx + 0.006164627615362406, miny + 0.000937597593292594, minz + 0.00840499997138977),
(minx + 0.007114947948139161, miny + 0.000937597593292594, minz + 0.00879862904548645),
(maxx - 0.0074195414781570435, miny + 0.0008257024455815554, minz + 0.008862189948558807),
(maxx - 0.006836557062342763, miny + 0.0008257024455815554, minz + 0.00745469331741333),
(maxx - 0.0074195414781570435, miny + 0.0008257024455815554, minz + 0.006047196686267853),
(minx + 0.007114947948139161, miny + 0.0008257024455815554, minz + 0.00546419620513916),
(minx + 0.0057074506767094135, miny + 0.0008257024455815554, minz + 0.006047196686267853),
(minx + 0.005124435992911458, miny + 0.0008257024455815554, minz + 0.00745469331741333),
(minx + 0.0057074506767094135, miny + 0.0008257024455815554, minz + 0.008862189948558807),
(minx + 0.007114947948139161, miny + 0.0008257024455815554, minz + 0.0094451904296875),
(maxx - 0.0074195414781570435, miny + 0.001102180453017354, minz + 0.008862189948558807),
(maxx - 0.006836557062342763, miny + 0.001102176494896412, minz + 0.00745469331741333),
(maxx - 0.0074195414781570435, miny + 0.001102176494896412, minz + 0.006047196686267853),
(minx + 0.007114947948139161, miny + 0.001102176494896412, minz + 0.00546419620513916),
(minx + 0.0057074506767094135, miny + 0.001102176494896412, minz + 0.006047196686267853),
(minx + 0.005124435992911458, miny + 0.001102176494896412, minz + 0.00745469331741333),
(minx + 0.0057074506767094135, miny + 0.001102180453017354, minz + 0.008862189948558807),
(minx + 0.007114947948139161, miny + 0.001102180453017354, minz + 0.0094451904296875),
(maxx - 0.002014978788793087, maxy, maxz - 0.015039850026369095),
(maxx - 0.002014978788793087, maxy, minz + 0.015039850026369095),
(minx, miny + 0.0009473562240600586, minz + 0.015039850026369095),
(minx, miny + 0.0009473562240600586, maxz - 0.015039850026369095),
(minx, maxy, minz + 0.015039850026369095),
(maxx, maxy, maxz - 0.015039850026369095),
(maxx, miny + 0.0009473562240600586, maxz - 0.015039850026369095),
(maxx, miny + 0.0009473562240600586, minz + 0.015039850026369095),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, maxz - 0.015039850026369095),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, minz + 0.015039850026369095),
(minx + 0.0020150020718574524, maxy, maxz - 0.015039850026369095),
(minx + 0.0020150020718574524, maxy, minz + 0.015039850026369095),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, maxz - 0.015039850026369095),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, minz + 0.015039850026369095),
(maxx, maxy, minz + 0.015039850026369095),
(minx, maxy, maxz - 0.015039850026369095),
(maxx - 0.002014978788793087, maxy - 0.0017695352435112, maxz - 0.015039850026369095),
(maxx - 0.002014978788793087, maxy - 0.0017695352435112, minz + 0.015039850026369095),
(minx + 0.0020150020718574524, maxy - 0.0017695352435112, maxz - 0.015039850026369095),
(minx + 0.0020150020718574524, maxy - 0.0017695352435112, minz + 0.015039850026369095),
(maxx - 0.002014978788793087, maxy, maxz - 0.020450454205274582),
(minx, miny + 0.0009473562240600586, maxz - 0.020450454205274582),
(minx, maxy, maxz - 0.020450454205274582),
(maxx, maxy, maxz - 0.020450454205274582),
(maxx, miny + 0.0009473562240600586, maxz - 0.020450454205274582),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, maxz - 0.020450454205274582),
(minx + 0.0020150020718574524, maxy, maxz - 0.020450454205274582),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, maxz - 0.020450454205274582),
(maxx - 0.002014978788793087, maxy - 0.0017695352435112, maxz - 0.020450454205274582),
(minx + 0.0020150020718574524, maxy - 0.0017695352435112, maxz - 0.020450454205274582),
(minx, miny + 0.0009473562240600586, maxz - 0.04870907962322235),
(maxx - 0.002014978788793087, maxy, maxz - 0.04870907962322235),
(minx, maxy, maxz - 0.04870907962322235),
(maxx, miny + 0.0009473562240600586, maxz - 0.04870907962322235),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, maxz - 0.04870907962322235),
(minx + 0.0020150020718574524, maxy, maxz - 0.04870907962322235),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, maxz - 0.04870907962322235),
(maxx, maxy, maxz - 0.04870907962322235),
(maxx - 0.002014978788793087, maxy - 0.0017695352435112, maxz - 0.04870907962322235),
(minx + 0.0020150020718574524, maxy - 0.0017695352435112, maxz - 0.04870907962322235),
(maxx - 0.0027115284465253353, miny + 0.0009342432022094727, maxz - 0.020450454205274582),
(minx + 0.0027115517295897007, miny + 0.0009342432022094727, maxz - 0.020450454205274582),
(maxx - 0.0027115284465253353, miny + 0.0009342432022094727, maxz - 0.04870907962322235),
(minx + 0.0027115517295897007, miny + 0.0009342432022094727, maxz - 0.04870907962322235),
(minx, miny + 0.0009473562240600586, maxz - 0.026037774980068207),
(maxx - 0.002014978788793087, maxy, maxz - 0.026037774980068207),
(minx, maxy, maxz - 0.026037774980068207),
(maxx, maxy, maxz - 0.026037774980068207),
(maxx, miny + 0.0009473562240600586, maxz - 0.026037774980068207),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, maxz - 0.026037774980068207),
(minx + 0.0020150020718574524, maxy, maxz - 0.026037774980068207),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, maxz - 0.026037774980068207),
(maxx - 0.002014978788793087, maxy - 0.0017695352435112, maxz - 0.026037774980068207),
(minx + 0.0020150020718574524, maxy - 0.0017695352435112, maxz - 0.026037774980068207),
(maxx - 0.0027115284465253353, miny + 0.0009342432022094727, maxz - 0.026037774980068207),
(minx + 0.0027115517295897007, miny + 0.0009342432022094727, maxz - 0.026037774980068207),
(minx, miny + 0.0009473562240600586, maxz - 0.03058292716741562),
(maxx - 0.002014978788793087, maxy, maxz - 0.03058292716741562),
(maxx, miny + 0.0009473562240600586, maxz - 0.03058292716741562),
(maxx - 0.002014978788793087, miny + 0.0009473562240600586, maxz - 0.03058292716741562),
(minx + 0.0020150020718574524, maxy, maxz - 0.03058292716741562),
(minx + 0.0020150020718574524, miny + 0.0009473562240600586, maxz - 0.03058292716741562),
(maxx, maxy, maxz - 0.03058292716741562),
(minx, maxy, maxz - 0.03058292716741562),
(maxx - 0.002014978788793087, maxy - 0.0017695352435112, maxz - 0.03058292716741562),
(minx + 0.0020150020718574524, maxy - 0.0017695352435112, maxz - 0.03058292716741562),
(maxx - 0.0027115284465253353, miny + 0.0009342432022094727, maxz - 0.03058292716741562),
(minx + 0.0027115517295897007, miny + 0.0009342432022094727, maxz - 0.03058292716741562),
(maxx - 0.004523299168795347, miny, maxz - 0.026820629835128784),
(minx + 0.004523322451859713, miny, maxz - 0.026820629835128784),
(maxx - 0.004523299168795347, miny, maxz - 0.02980007231235504),
(minx + 0.004523322451859713, miny, maxz - 0.02980007231235504)]
# Faces
myfaces = [(28, 8, 0, 20), (174, 167, 12, 15), (19, 4, 9, 26), (173, 162, 8, 28), (10, 25, 17, 1),
(12, 29, 21, 3), (29, 28, 20, 21), (164, 171, 25, 10), (171, 161, 24, 25), (7, 18, 27, 11),
(18, 19, 26, 27), (167, 169, 29, 12), (169, 173, 28, 29), (32, 40, 47, 39), (39, 47, 46, 38),
(38, 46, 45, 37), (37, 45, 44, 36), (36, 44, 43, 35), (35, 43, 42, 34), (34, 42, 41, 33),
(33, 41, 40, 32), (68, 92, 84, 60), (55, 63, 62, 54), (67, 91, 92, 68), (53, 61, 60, 52),
(56, 80, 72, 48), (51, 59, 58, 50), (66, 90, 82, 58), (49, 57, 56, 48), (69, 93, 94, 70),
(63, 71, 70, 62), (62, 86, 78, 54), (61, 69, 68, 60), (71, 95, 88, 64), (59, 67, 66, 58),
(60, 84, 76, 52), (57, 65, 64, 56), (65, 66, 67, 68, 69, 70, 71, 64), (72, 80, 87, 79), (78, 86, 85, 77),
(76, 84, 83, 75), (74, 82, 81, 73), (80, 88, 95, 87), (86, 94, 93, 85), (84, 92, 91, 83),
(82, 90, 89, 81), (65, 89, 90, 66), (70, 94, 86, 62), (49, 73, 81, 57), (64, 88, 80, 56),
(48, 55, 79, 72), (51, 75, 83, 59), (54, 53, 77, 78), (53, 77, 85, 61), (57, 81, 89, 65),
(52, 51, 75, 76), (55, 79, 87, 63), (59, 83, 91, 67), (50, 49, 73, 74), (61, 85, 93, 69),
(63, 87, 95, 71), (58, 82, 74, 50), (133, 109, 117, 141), (128, 104, 96, 120), (130, 106, 98, 122),
(141, 142, 118, 117), (132, 108, 100, 124), (136, 112, 104, 128), (139, 140, 116, 115),
(134, 110, 102, 126),
(138, 114, 106, 130), (137, 138, 114, 113), (140, 116, 108, 132), (143, 136, 112, 119),
(127, 103, 111, 135),
(142, 118, 110, 134), (121, 97, 105, 129), (126, 102, 101, 125), (109, 101, 102, 110),
(107, 99, 100, 108),
(105, 97, 98, 106), (111, 103, 96, 104), (117, 109, 110, 118), (115, 107, 108, 116),
(113, 105, 106, 114),
(119, 111, 104, 112), (126, 125, 124, 123, 122, 121, 120, 127), (134, 126, 127, 135),
(131, 107, 115, 139),
(132, 124, 125, 133),
(120, 96, 103, 127), (130, 122, 123, 131), (129, 105, 113, 137),
(128, 120, 121, 129), (122, 98, 97, 121),
(142, 134, 135, 143), (125, 101, 109, 133), (140, 132, 133, 141),
(135, 111, 119, 143), (138, 130, 131, 139),
(124, 100, 99, 123), (136, 128, 129, 137), (123, 99, 107, 131),
(158, 150, 151, 159), (157, 149, 150, 158),
(156, 148, 149, 157), (155, 147, 148, 156), (154, 146, 147, 155),
(153, 145, 146, 154), (152, 144, 145, 153),
(159, 151, 144, 152), (197, 193, 167, 174), (26, 9, 163, 172),
(196, 190, 162, 173), (9, 13, 175, 163),
(192, 195, 171, 164), (23, 22, 160, 170), (195, 191, 161, 171),
(11, 27, 168, 166), (193, 194, 169, 167),
(27, 26, 172, 168), (173, 169, 177, 179), (198, 199, 179, 177),
(168, 172, 178, 176), (196, 173, 179, 199),
(185, 168, 176, 188), (160, 165, 183, 180), (172, 163, 181, 187),
(170, 160, 180, 186), (166, 168, 185, 184),
(176, 178, 189, 188), (172, 187, 189, 178), (209, 185, 188, 212),
(222, 218, 193, 197), (221, 216, 190, 196),
(220, 217, 191, 195), (218, 219, 194, 193), (199, 198, 202, 203),
(221, 196, 199, 225), (169, 194, 198, 177),
(226, 227, 203, 202), (225, 199, 203, 227), (212, 188, 200, 214),
(188, 189, 201, 200), (219, 209, 212, 224),
(180, 183, 207, 205), (187, 181, 204, 211), (182, 186, 210, 206),
(186, 180, 205, 210), (184, 185, 209, 208),
(187, 211, 213, 189), (200, 201, 215, 214), (189, 213, 215, 201),
(224, 212, 214, 226), (211, 204, 216, 221),
(210, 205, 217, 220), (208, 209, 219, 218), (211, 221, 225, 213),
(227, 226, 230, 231), (213, 225, 227, 215),
(194, 219, 224, 198), (198, 224, 226, 202), (228, 229, 231, 230),
(215, 227, 231, 229), (226, 214, 228, 230),
(214, 215, 229, 228), (24, 15, 2, 30), (15, 12, 3, 2), (16, 6, 14, 22), (161, 174, 15, 24),
(6, 7, 11, 14), (8, 10, 1, 0), (21, 30, 2, 3), (19, 31, 5, 4), (4, 5, 13, 9),
(162, 164, 10, 8), (25, 24, 30, 17), (5, 31, 23, 13), (31, 16, 22, 23), (0, 1, 17, 20),
(20, 17, 30, 21), (7, 6, 16, 18), (18, 16, 31, 19), (40, 72, 79, 47), (47, 79, 78, 46),
(46, 78, 77, 45), (45, 77, 76, 44), (44, 76, 75, 43), (43, 75, 74, 42), (42, 74, 73, 41),
(41, 73, 72, 40), (79, 55, 54, 78), (77, 53, 52, 76), (75, 51, 50, 74), (73, 49, 48, 72),
(118, 142, 143, 119), (116, 140, 141, 117), (114, 138, 139, 115),
(112, 136, 137, 113), (150, 118, 119, 151),
(149, 117, 118, 150), (148, 116, 117, 149), (147, 115, 116, 148),
(146, 114, 115, 147), (145, 113, 114, 146),
(144, 112, 113, 145), (151, 119, 112, 144), (22, 14, 165, 160),
(191, 197, 174, 161), (14, 11, 166, 165),
(190, 192, 164, 162), (13, 23, 170, 175), (165, 166, 184, 183),
(163, 175, 182, 181), (175, 170, 186, 182),
(217, 222, 197, 191), (216, 223, 192, 190), (223, 220, 195, 192),
(183, 184, 208, 207), (181, 182, 206, 204),
(205, 207, 222, 217), (207, 208, 218, 222), (204, 206, 223, 216), (206, 210, 220, 223)]
mesh = bpy.data.meshes.new(objname)
myobject = bpy.data.objects.new(objname, mesh)
myobject.location = bpy.context.scene.cursor_location
bpy.context.scene.objects.link(myobject)
mesh.from_pydata(myvertex, [], myfaces)
mesh.update(calc_edges=True)
# Create materials
if mat and bpy.context.scene.render.engine == 'CYCLES':
plastic = create_diffuse_material("Plastic_Handle_material", False, 0.01, 0.01, 0.01, 0.082, 0.079, 0.02, 0.01)
set_material(myobject, plastic)
return myobject
# ------------------------------------------------------------------------------
# Create rectangular sill
#
# objName: Object name
# x: size x axis
# y: size y axis
# z: size z axis
# mat: material flag
# ------------------------------------------------------------------------------
def create_sill(objname, x, y, z, mat):
myvertex = [(-x / 2, 0, 0.0),
(-x / 2, y, 0.0),
(x / 2, y, 0.0),
(x / 2, 0, 0.0),
(-x / 2, 0, -z),
(-x / 2, y, -z),
(x / 2, y, -z),
(x / 2, 0, -z)]
myfaces = [(0, 1, 2, 3), (0, 1, 5, 4), (1, 2, 6, 5), (2, 6, 7, 3), (5, 6, 7, 4), (0, 4, 7, 3)]
mesh = bpy.data.meshes.new(objname)
myobject = bpy.data.objects.new(objname, mesh)
myobject.location = bpy.context.scene.cursor_location
bpy.context.scene.objects.link(myobject)
mesh.from_pydata(myvertex, [], myfaces)
mesh.update(calc_edges=True)
if mat and bpy.context.scene.render.engine == 'CYCLES':
mymat = create_diffuse_material("Sill_material", False, 0.8, 0.8, 0.8)
set_material(myobject, mymat)
return myobject
# ------------------------------------------------------------------------------
# Create blind box
#
# objName: Object name
# x: size x axis
# y: size y axis
# z: size z axis
# mat: material flag
# ------------------------------------------------------------------------------
def create_blind_box(objname, x, y, z):
myvertex = [(-x / 2, 0, 0.0),
(-x / 2, y, 0.0),
(x / 2, y, 0.0),
(x / 2, 0, 0.0),
(-x / 2, 0, z),
(-x / 2, y, z),
(x / 2, y, z),
(x / 2, 0, z)]
myfaces\
= [(0, 1, 2, 3), (0, 1, 5, 4), (1, 2, 6, 5), (2, 6, 7, 3), (5, 6, 7, 4), (0, 4, 7, 3)]
mesh = bpy.data.meshes.new(objname)
myobject = bpy.data.objects.new(objname, mesh)
myobject.location = bpy.context.scene.cursor_location
bpy.context.scene.objects.link(myobject)
mesh.from_pydata(myvertex, [], myfaces)
mesh.update(calc_edges=True)
return myobject
# ------------------------------------------------------------------------------
# Create blind rails
#
# objName: Name for the new object
# sX: Size in X axis
# sZ: Size in Z axis
# pX: position X axis
# pY: position Y axis
# pZ: position Z axis
# mat: Flag for creating materials
# matdata: Aluminum material
# blind_rail: distance of the rail
# ------------------------------------------------------------------------------
def create_blind_rail(objname, sx, sz, px, py, pz, mat, matdata, blind_rail):
myvertex = []
myfaces = []
sideb = 0.04
space = 0.012 # blind is 10 mm thick
thicka = 0.002 # aluminum thickness
thickb = 0.002 # aluminum thickness
for x in (-sx / 2, sx / 2):
for z in (0, sz):
myvertex.extend([(x, 0, z),
(x, blind_rail, z),
(x + sideb, blind_rail, z),
(x + sideb, blind_rail - thicka, z),
(x + thickb, blind_rail - thicka, z),
(x + thickb, blind_rail - thicka - space, z),
(x + sideb, blind_rail - thicka - space, z),
(x + sideb, blind_rail - thicka - space - thicka, z),
(x + thickb, blind_rail - thicka - space - thicka, z),
(x + thickb, 0, z)])
# reverse
thickb *= -1
sideb *= -1
# Faces
myfaces.extend([(31, 30, 20, 21), (32, 31, 21, 22), (33, 32, 22, 23), (37, 36, 26, 27), (35, 34, 24, 25),
(26, 36, 35, 25), (37, 27, 28, 38), (33, 23, 24, 34), (39, 38, 28, 29), (37, 38, 35, 36),
(31, 32, 33, 34), (31, 34, 39, 30), (21, 24, 23, 22), (27, 26, 25, 28), (21, 20, 29, 24),
(11, 1, 0, 10), (12, 2, 1, 11), (13, 14, 4, 3), (12, 13, 3, 2), (17, 7, 6, 16),
(16, 6, 5, 15), (14, 15, 5, 4), (17, 18, 8, 7), (19, 9, 8, 18), (17, 16, 15, 18),
(11, 14, 13, 12), (11, 10, 19, 14), (7, 8, 5, 6), (2, 3, 4, 1), (1, 4, 9, 0)])
mymesh = bpy.data.meshes.new(objname)
myblind = bpy.data.objects.new(objname, mymesh)
myblind.location[0] = px
myblind.location[1] = py
myblind.location[2] = pz
bpy.context.scene.objects.link(myblind)
mymesh.from_pydata(myvertex, [], myfaces)
mymesh.update(calc_edges=True)
if mat and bpy.context.scene.render.engine == 'CYCLES':
set_material(myblind, matdata)
return myblind
# ------------------------------------------------------------------------------
# Create blind estructure
#
# objName: Name for the new object
# sX: Size in X axis
# sY: Size in Y axis
# sZ: Size in Z axis
# pX: position X axis
# pY: position Y axis
# pZ: position Z axis
# mat: Flag for creating materials
# blind_ratio: extension factor
# ------------------------------------------------------------------------------
def create_blind(objname, sx, sz, px, py, pz, mat, blind_ratio):
myvertex = []
myfaces = []
v = 0
h = 0.05
railgap = 0.005
# calculate total pieces
pieces = int((sz * (blind_ratio / 100)) / h)
if pieces * h < sz:
pieces += 1
z = h
for p in range(pieces):
for x in (-sx / 2, sx / 2):
myvertex.extend([(x, 0, z),
(x, 0, z + h - railgap),
(x, 0.002, z + h - railgap),
(x, 0.002, z + h),
(x, 0.008, z + h),
(x, 0.008, z + h - railgap),
(x, 0.01, z + h - railgap),
(x, 0.01, z)])
z -= h
# Faces
myfaces.extend([(v + 15, v + 7, v + 6, v + 14), (v + 7, v + 15, v + 8, v + 0),
(v + 9, v + 1, v + 0, v + 8),
(v + 10, v + 2, v + 1, v + 9), (v + 13, v + 14, v + 6, v + 5),
(v + 13, v + 5, v + 4, v + 12), (v + 10, v + 11, v + 3, v + 2),
(v + 4, v + 3, v + 11, v + 12)])
v = len(myvertex)
mymesh = bpy.data.meshes.new(objname)
myblind = bpy.data.objects.new(objname, mymesh)
myblind.location[0] = px
myblind.location[1] = py
myblind.location[2] = pz
bpy.context.scene.objects.link(myblind)
mymesh.from_pydata(myvertex, [], myfaces)
mymesh.update(calc_edges=True)
myblind.lock_location = (True, True, False) # only Z axis
if mat and bpy.context.scene.render.engine == 'CYCLES':
mat = create_diffuse_material("Blind_plastic_material", False, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.15)
set_material(myblind, mat)
return myblind
| 54.156939 | 120 | 0.515268 | 13,630 | 125,265 | 4.70088 | 0.089435 | 0.031136 | 0.01723 | 0.014608 | 0.654784 | 0.610678 | 0.576124 | 0.534297 | 0.216565 | 0.18827 | 0 | 0.400985 | 0.317391 | 125,265 | 2,312 | 121 | 54.180363 | 0.348346 | 0.083727 | 0 | 0.272879 | 0 | 0 | 0.016817 | 0.001355 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010538 | false | 0 | 0.002773 | 0 | 0.044925 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50a9081077295e75c27d0d09dbbb3f04d59c94a7 | 168 | py | Python | src/restart.py | Vasilis421/Rock_Paper_Scissors | ef716b23f789146f8cb0b11f1d5bfe9d774c3715 | [
"MIT"
] | null | null | null | src/restart.py | Vasilis421/Rock_Paper_Scissors | ef716b23f789146f8cb0b11f1d5bfe9d774c3715 | [
"MIT"
] | null | null | null | src/restart.py | Vasilis421/Rock_Paper_Scissors | ef716b23f789146f8cb0b11f1d5bfe9d774c3715 | [
"MIT"
] | null | null | null | def restart():
prompt = input("Type [y] to play again or any other key to quit. ")
if prompt.lower() == "y":
return True
else:
return False
| 24 | 71 | 0.565476 | 24 | 168 | 3.958333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.315476 | 168 | 6 | 72 | 28 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.297619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50af2163b81143947babe0f393ce49f748ce939a | 388 | py | Python | mundo-3/ex081.py | pablocarracci/cev-python | dd6c2db80be84ec732fc5efd895e11d48d298258 | [
"MIT"
] | null | null | null | mundo-3/ex081.py | pablocarracci/cev-python | dd6c2db80be84ec732fc5efd895e11d48d298258 | [
"MIT"
] | null | null | null | mundo-3/ex081.py | pablocarracci/cev-python | dd6c2db80be84ec732fc5efd895e11d48d298258 | [
"MIT"
] | null | null | null | # Exercício 081 - Extraindo Dados de uma Lista
valores = []
while True:
valores.append(int(input('Digite um número: ')))
if input('Quer continuar? [S/N] ') not in 'sS': break
print(f'Você digitou {len(valores)} elementos.')
print(f'Os valores em ordem decrescente são {sorted(valores, reverse=True)}')
print(f'O valor 5 {"não " if 5 not in valores else ""}faz parte da lista!')
| 35.272727 | 77 | 0.688144 | 62 | 388 | 4.306452 | 0.741935 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015432 | 0.164948 | 388 | 10 | 78 | 38.8 | 0.808642 | 0.113402 | 0 | 0 | 0 | 0 | 0.619883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
50bace58f00513e2aaa26a9fedb2ffe493493a13 | 199 | py | Python | aoc/2017/p2-1.py | neizod/problems | 180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a | [
"MIT"
] | 1 | 2015-10-17T11:15:42.000Z | 2015-10-17T11:15:42.000Z | aoc/2017/p2-1.py | neizod/problems | 180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a | [
"MIT"
] | null | null | null | aoc/2017/p2-1.py | neizod/problems | 180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
try:
checksum = 0
while True:
numbers = [int(n) for n in input().split()]
checksum += max(numbers) - min(numbers)
except EOFError:
print(checksum)
| 19.9 | 51 | 0.59799 | 26 | 199 | 4.576923 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013605 | 0.261307 | 199 | 9 | 52 | 22.111111 | 0.795918 | 0.105528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
50cb087f33e0bd91859626f13c66c52814cead8b | 88 | py | Python | output/models/ms_data/regex/re_l15_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/regex/re_l15_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/regex/re_l15_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.regex.re_l15_xsd.re_l15 import Doc
__all__ = [
"Doc",
]
| 14.666667 | 61 | 0.715909 | 15 | 88 | 3.666667 | 0.8 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.159091 | 88 | 5 | 62 | 17.6 | 0.689189 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0f9f153fea63beea1e4eb4311e398a0e26e98140 | 288 | py | Python | tessa/orbiturary/pictures/parse_text.py | wonkishtofu/Tessa | 5289a03a121ea8e66ead2c477687f2d5b952e03e | [
"MIT"
] | null | null | null | tessa/orbiturary/pictures/parse_text.py | wonkishtofu/Tessa | 5289a03a121ea8e66ead2c477687f2d5b952e03e | [
"MIT"
] | null | null | null | tessa/orbiturary/pictures/parse_text.py | wonkishtofu/Tessa | 5289a03a121ea8e66ead2c477687f2d5b952e03e | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append("../../text_parser")
import text_parser
li = [i for i in os.walk(os.getcwd())]
root = li[0]
for fi in root[2]:
if fi[len(fi)-10:] == "output.txt":
text_parser.tojsonfile(fi[:len(fi)-10]+"parsed", text_parser.get_orbiturary_info(fi))
| 18 | 93 | 0.652778 | 50 | 288 | 3.64 | 0.54 | 0.21978 | 0.076923 | 0.098901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.15625 | 288 | 15 | 94 | 19.2 | 0.72428 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
0fb7d43871f36d8ea5ab6995c34a08cd602e2563 | 806 | py | Python | paprika_sync/core/utils.py | grschafer/paprika-sync | 8b6fcd6246557bb79009fa9355fd4d588fb8ed90 | [
"MIT"
] | null | null | null | paprika_sync/core/utils.py | grschafer/paprika-sync | 8b6fcd6246557bb79009fa9355fd4d588fb8ed90 | [
"MIT"
] | null | null | null | paprika_sync/core/utils.py | grschafer/paprika-sync | 8b6fcd6246557bb79009fa9355fd4d588fb8ed90 | [
"MIT"
] | null | null | null | import functools
import re
# Logs start and end of the wrapped function
# Used for extra logging verbosity on cronjobs (management commands)
def log_start_end(logger):
def decorator(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
logger.info('Start')
val = func(*args, **kwargs)
logger.info('End')
return val
return wrapper
return decorator
def strip_query_params(url):
return url.partition('?')[0]
PAPRIKA_S3_KEY_REGEX = re.compile(r'http://uploads.paprikaapp.com.s3.amazonaws.com/(?P<key>.*)')
def make_s3_url_https(url):
match = PAPRIKA_S3_KEY_REGEX.match(url)
if match:
key = match.group("key")
return f'https://s3.amazonaws.com/uploads.paprikaapp.com/{key}'
return url
| 25.1875 | 96 | 0.650124 | 108 | 806 | 4.731481 | 0.518519 | 0.039139 | 0.062622 | 0.078278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009646 | 0.228288 | 806 | 31 | 97 | 26 | 0.811897 | 0.135236 | 0 | 0 | 0 | 0 | 0.177233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.047619 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
0fbd6c1b76a683e341d68df011ab1d6c08e4ca6b | 602 | py | Python | dashboard.py | tlchampion/bulldozer_dashboard | 77972c73353f34fe975939dd53184b63c1555252 | [
"MIT"
] | null | null | null | dashboard.py | tlchampion/bulldozer_dashboard | 77972c73353f34fe975939dd53184b63c1555252 | [
"MIT"
] | null | null | null | dashboard.py | tlchampion/bulldozer_dashboard | 77972c73353f34fe975939dd53184b63c1555252 | [
"MIT"
] | null | null | null |
# xgboost is a dependency of dtreeviz, but too large (>350M) for heroku
# so we uninstall it and mock it here:
from explainerdashboard import *
# from dash_bootstrap_components.themes import FLATLY, BOOTSTRAP # bootstrap theme
import dash
from flask import Flask
from pathlib import Path
from unittest.mock import MagicMock
import sys
# sys.modules["xgboost"] = MagicMock()
pkl_dir = Path.cwd() / "pkls"
db = ExplainerDashboard.from_config(pkl_dir/"explainer.joblib",
"dashboard.yaml", title="Bulldozer Blue Book")
app = db.flask_server()
| 28.666667 | 84 | 0.697674 | 77 | 602 | 5.376623 | 0.662338 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006397 | 0.22093 | 602 | 20 | 85 | 30.1 | 0.876333 | 0.372093 | 0 | 0 | 0 | 0 | 0.150997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
0fd67f0427a6f03a4515bc785c3cabaef61ba268 | 1,165 | py | Python | mis_reports/config/mis_reports.py | hrgadeha/mis_reports | e285e9b0ea0ea76e1ae13adfe861e3aace11f890 | [
"MIT"
] | null | null | null | mis_reports/config/mis_reports.py | hrgadeha/mis_reports | e285e9b0ea0ea76e1ae13adfe861e3aace11f890 | [
"MIT"
] | null | null | null | mis_reports/config/mis_reports.py | hrgadeha/mis_reports | e285e9b0ea0ea76e1ae13adfe861e3aace11f890 | [
"MIT"
] | 1 | 2019-07-30T14:52:43.000Z | 2019-07-30T14:52:43.000Z | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("MIS Reports"),
"items": [
{
"type": "report",
"is_query_report": True,
"name": "Profit and Loss Statement",
"doctype": "GL Entry"
},
{
"type": "report",
"is_query_report": True,
"name": "Stock Balance",
"doctype": "Stock Ledger Entry"
},
{
"type": "report",
"is_query_report": True,
"name": "Stock Ledger",
"doctype": "Stock Ledger Entry"
},
{
"type": "report",
"is_query_report": True,
"name": "Total Stock Summary",
"doctype": "Stock Entry"
},
{
"type": "report",
"is_query_report": True,
"name": "Item-wise Sales Register",
"doctype": "Sales Invoice"
}
]
},
{
"label": _("Sales Reports"),
"items": [
{
"type": "report",
"is_query_report": True,
"name": "Sales Report for the stores",
"doctype": "Sales Invoice"
},
{
"type": "report",
"is_query_report": True,
"name": "Sales report for the Management",
"doctype": "Sales Invoice"
}
]
}
]
| 19.745763 | 47 | 0.525322 | 117 | 1,165 | 5.034188 | 0.350427 | 0.118846 | 0.142615 | 0.202037 | 0.578947 | 0.578947 | 0.578947 | 0.578947 | 0.517827 | 0.34635 | 0 | 0 | 0.300429 | 1,165 | 58 | 48 | 20.086207 | 0.722699 | 0 | 0 | 0.368421 | 0 | 0 | 0.464378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | true | 0 | 0.035088 | 0.017544 | 0.070175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0fdf5b36700eda74c771aae73d92056980ec97b5 | 581 | py | Python | styles.py | liranfar/EnglishExerciser | 248ece014f01d9c55541e4fab5ad50047369c593 | [
"WTFPL"
] | null | null | null | styles.py | liranfar/EnglishExerciser | 248ece014f01d9c55541e4fab5ad50047369c593 | [
"WTFPL"
] | 1 | 2021-06-01T22:04:29.000Z | 2021-06-01T22:04:29.000Z | styles.py | liranfar/EnglishExerciser | 248ece014f01d9c55541e4fab5ad50047369c593 | [
"WTFPL"
] | null | null | null | import openpyxl
my_red = openpyxl.styles.colors.Color(rgb='FFD33D3D')
red_fill = openpyxl.styles.fills.PatternFill(patternType='solid', fgColor=my_red)
my_green = openpyxl.styles.colors.Color(rgb='FF55996F')
green_fill = openpyxl.styles.fills.PatternFill(patternType='solid', fgColor=my_green)
my_yellow = openpyxl.styles.colors.Color(rgb='FFD0D637')
yellow_fill = openpyxl.styles.fills.PatternFill(patternType='solid', fgColor=my_yellow)
my_blank = openpyxl.styles.colors.Color(rgb='FFFFFFFF')
blank_fill = openpyxl.styles.fills.PatternFill(patternType='solid', fgColor=my_blank) | 58.1 | 87 | 0.810671 | 78 | 581 | 5.884615 | 0.269231 | 0.244009 | 0.174292 | 0.217865 | 0.75817 | 0.514161 | 0.514161 | 0.514161 | 0.514161 | 0 | 0 | 0.021779 | 0.051635 | 581 | 10 | 88 | 58.1 | 0.811252 | 0 | 0 | 0 | 0 | 0 | 0.089347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0fea5659233e483cdecabf0196138da20598fcfc | 81 | py | Python | test/data/valid/mid_chained.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | test/data/valid/mid_chained.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | test/data/valid/mid_chained.py | KOLANICH/read_version | 601a036d115dd831319ed3c4700168e5c7e03228 | [
"MIT"
] | null | null | null | special = __version__ = custom = '1.2.3'
__special__ = __custom__ = version = 42
| 27 | 40 | 0.703704 | 10 | 81 | 4.5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.17284 | 81 | 2 | 41 | 40.5 | 0.597015 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0febd2f26c016c89ed3dc8fecbf0b971e409be4e | 64 | py | Python | python/testData/completion/modulePrivateNamesCompletedInsideImport/module.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/modulePrivateNamesCompletedInsideImport/module.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/modulePrivateNamesCompletedInsideImport/module.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | normal_name = 'foo'
_private_name = 'bar'
__magic_name__ = 'baz' | 21.333333 | 22 | 0.734375 | 9 | 64 | 4.333333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 64 | 3 | 22 | 21.333333 | 0.696429 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ff4b394be1d4688d6a7bd91bd9eb8e75a106e47 | 3,533 | py | Python | app.py | a-harrison/repinger | ab77634a8652c4c4fb6b0324d8193273233b8480 | [
"MIT"
] | null | null | null | app.py | a-harrison/repinger | ab77634a8652c4c4fb6b0324d8193273233b8480 | [
"MIT"
] | null | null | null | app.py | a-harrison/repinger | ab77634a8652c4c4fb6b0324d8193273233b8480 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import logging
import getpass
from optparse import OptionParser
import json
import os
import ConfigParser
# Dependencies
import sleekxmpp
from slack_message_client import SlackMessageClient
if sys.version_info < (3, 0):
reload(sys)
sys.setdefaultencoding('utf8')
config = ConfigParser.ConfigParser();
config.read('./app.config');
slack_url= "https://slack.com/api/chat.postMessage"
SLACK_TOKEN = os.environ.get('SLACK_TOKEN')
SLACK_CHANNEL = os.environ.get('SLACK_CHANNEL')
XMPP_JID = os.environ.get('XMPP_JID')
XMPP_PASSWORD = os.environ.get('XMPP_PASSWORD')
if SLACK_TOKEN is None:
SLACK_TOKEN = config.get('Configuration', 'SLACK_TOKEN')
if SLACK_CHANNEL is None:
SLACK_CHANNEL = config.get('Configuration', 'SLACK_CHANNEL')
if XMPP_JID is None:
XMPP_JID = config.get('Configuration', 'XMPP_JID')
if XMPP_PASSWORD is None:
XMPP_PASSWORD = config.get('Configuration', 'XMPP_PASSWORD')
class EchoBot(sleekxmpp.ClientXMPP):
def __init__(self, jid, password):
super(EchoBot, self).__init__(jid, password)
self.add_event_handler('session_start', self.start)
self.add_event_handler('message', self.message)
self.slack_client = SlackMessageClient(
slack_url,
SLACK_TOKEN,
SLACK_CHANNEL
)
def start(self, start):
startup_payload = self.slack_client.build_payload("Listener started.", None)
self.slack_client.send_message(startup_payload)
self.send_presence()
self.get_roster()
def message(self, msg):
print "Type: %s" % msg['type']
print "From: %s" % msg['from']
print "To: %s" % msg['to']
print "Body: %s" % msg['body']
attachment = self.slack_client.build_attachment(
"pleaseignore.com",
"#D00000",
"",
msg['body']
)
payload = self.slack_client.build_payload("", attachment)
# Post Slack Message
self.slack_client.send_message(payload)
if __name__ == '__main__':
# Here we will configure and read command line options
optp = OptionParser()
optp.add_option('-d', '--debug', help='set logging to DEBUG',
action='store_const', dest='loglevel',
const=logging.DEBUG, default=logging.INFO)
optp.add_option("-j", "--jid", dest="jid", help="JID to use")
optp.add_option("-p", "--password", dest="password", help="password to use")
opts, args = optp.parse_args()
# if opts.jid is None:
# opts.jid = raw_input("Username: ")
# if opts.password is None:
# opts.password = getpass.getpass("Password: ")
if opts.jid is not None:
XMPP_JID = opts.jid
if opts.password is not None:
XMPP_PASSWORD = opts.password
logging.basicConfig(level=opts.loglevel, format='%(levelname)-8s %(message)s')
# Here we will instantiate our echo bot
if (XMPP_JID is None or XMPP_PASSWORD is None):
print "Connection values not defined."
else:
xmpp = EchoBot(XMPP_JID, XMPP_PASSWORD)
xmpp.register_plugin('xep_0030') # Service Discovery
xmpp.register_plugin('xep_0199') # Pings
# Finally, we connect the bott and start listening for messages
print "Connecting."
if xmpp.connect():
print "Connected!"
xmpp.process(block=True)
else:
print('Unable to connect')
| 30.196581 | 84 | 0.635154 | 429 | 3,533 | 5.04662 | 0.335664 | 0.025866 | 0.04157 | 0.027714 | 0.069284 | 0.031409 | 0 | 0 | 0 | 0 | 0 | 0.006391 | 0.247099 | 3,533 | 116 | 85 | 30.456897 | 0.807519 | 0.103312 | 0 | 0.025 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.1375 | 0.1125 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
0ff82767e3a8e44176f8cde948cf355f8ef3b131 | 7,554 | py | Python | syft_proto/execution/v1/role_pb2.py | vkkhare/syft-proto | 513b4af50d7476bd5b1ff9dfb6da8528100f961d | [
"Apache-2.0"
] | 1 | 2021-01-31T15:24:25.000Z | 2021-01-31T15:24:25.000Z | syft_proto/execution/v1/role_pb2.py | vkkhare/syft-proto | 513b4af50d7476bd5b1ff9dfb6da8528100f961d | [
"Apache-2.0"
] | null | null | null | syft_proto/execution/v1/role_pb2.py | vkkhare/syft-proto | 513b4af50d7476bd5b1ff9dfb6da8528100f961d | [
"Apache-2.0"
] | 1 | 2021-01-31T15:23:04.000Z | 2021-01-31T15:23:04.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: syft_proto/execution/v1/role.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from syft_proto.execution.v1 import computation_action_pb2 as syft__proto_dot_execution_dot_v1_dot_computation__action__pb2
from syft_proto.execution.v1 import state_pb2 as syft__proto_dot_execution_dot_v1_dot_state__pb2
from syft_proto.execution.v1 import placeholder_pb2 as syft__proto_dot_execution_dot_v1_dot_placeholder__pb2
from syft_proto.types.syft.v1 import id_pb2 as syft__proto_dot_types_dot_syft_dot_v1_dot_id__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='syft_proto/execution/v1/role.proto',
package='syft_proto.execution.v1',
syntax='proto3',
serialized_options=b'\n$org.openmined.syftproto.execution.v1',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\"syft_proto/execution/v1/role.proto\x12\x17syft_proto.execution.v1\x1a\x30syft_proto/execution/v1/computation_action.proto\x1a#syft_proto/execution/v1/state.proto\x1a)syft_proto/execution/v1/placeholder.proto\x1a!syft_proto/types/syft/v1/id.proto\"\xd6\x03\n\x04Role\x12,\n\x02id\x18\x01 \x01(\x0b\x32\x1c.syft_proto.types.syft.v1.IdR\x02id\x12\x44\n\x07\x61\x63tions\x18\x02 \x03(\x0b\x32*.syft_proto.execution.v1.ComputationActionR\x07\x61\x63tions\x12\x34\n\x05state\x18\x03 \x01(\x0b\x32\x1e.syft_proto.execution.v1.StateR\x05state\x12H\n\x0cplaceholders\x18\x04 \x03(\x0b\x32$.syft_proto.execution.v1.PlaceholderR\x0cplaceholders\x12P\n\x15input_placeholder_ids\x18\x05 \x03(\x0b\x32\x1c.syft_proto.types.syft.v1.IdR\x13inputPlaceholderIds\x12R\n\x16output_placeholder_ids\x18\x06 \x03(\x0b\x32\x1c.syft_proto.types.syft.v1.IdR\x14outputPlaceholderIds\x12\x12\n\x04tags\x18\x07 \x03(\tR\x04tags\x12 \n\x0b\x64\x65scription\x18\x08 \x01(\tR\x0b\x64\x65scriptionB&\n$org.openmined.syftproto.execution.v1b\x06proto3'
,
dependencies=[syft__proto_dot_execution_dot_v1_dot_computation__action__pb2.DESCRIPTOR,syft__proto_dot_execution_dot_v1_dot_state__pb2.DESCRIPTOR,syft__proto_dot_execution_dot_v1_dot_placeholder__pb2.DESCRIPTOR,syft__proto_dot_types_dot_syft_dot_v1_dot_id__pb2.DESCRIPTOR,])
_ROLE = _descriptor.Descriptor(
name='Role',
full_name='syft_proto.execution.v1.Role',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='syft_proto.execution.v1.Role.id', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='id', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='actions', full_name='syft_proto.execution.v1.Role.actions', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='actions', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='state', full_name='syft_proto.execution.v1.Role.state', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='state', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='placeholders', full_name='syft_proto.execution.v1.Role.placeholders', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='placeholders', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='input_placeholder_ids', full_name='syft_proto.execution.v1.Role.input_placeholder_ids', index=4,
number=5, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='inputPlaceholderIds', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='output_placeholder_ids', full_name='syft_proto.execution.v1.Role.output_placeholder_ids', index=5,
number=6, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='outputPlaceholderIds', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tags', full_name='syft_proto.execution.v1.Role.tags', index=6,
number=7, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='tags', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='description', full_name='syft_proto.execution.v1.Role.description', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, json_name='description', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=229,
serialized_end=699,
)
_ROLE.fields_by_name['id'].message_type = syft__proto_dot_types_dot_syft_dot_v1_dot_id__pb2._ID
_ROLE.fields_by_name['actions'].message_type = syft__proto_dot_execution_dot_v1_dot_computation__action__pb2._COMPUTATIONACTION
_ROLE.fields_by_name['state'].message_type = syft__proto_dot_execution_dot_v1_dot_state__pb2._STATE
_ROLE.fields_by_name['placeholders'].message_type = syft__proto_dot_execution_dot_v1_dot_placeholder__pb2._PLACEHOLDER
_ROLE.fields_by_name['input_placeholder_ids'].message_type = syft__proto_dot_types_dot_syft_dot_v1_dot_id__pb2._ID
_ROLE.fields_by_name['output_placeholder_ids'].message_type = syft__proto_dot_types_dot_syft_dot_v1_dot_id__pb2._ID
DESCRIPTOR.message_types_by_name['Role'] = _ROLE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Role = _reflection.GeneratedProtocolMessageType('Role', (_message.Message,), {
'DESCRIPTOR' : _ROLE,
'__module__' : 'syft_proto.execution.v1.role_pb2'
# @@protoc_insertion_point(class_scope:syft_proto.execution.v1.Role)
})
_sym_db.RegisterMessage(Role)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
| 57.227273 | 1,039 | 0.793222 | 1,076 | 7,554 | 5.158922 | 0.148699 | 0.068096 | 0.072059 | 0.082868 | 0.649252 | 0.619528 | 0.569987 | 0.508377 | 0.492524 | 0.4147 | 0 | 0.041112 | 0.095181 | 7,554 | 131 | 1,040 | 57.664122 | 0.771031 | 0.034551 | 0 | 0.351351 | 1 | 0.009009 | 0.243481 | 0.2126 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.072072 | 0 | 0.072072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
0ffde2685c834d5ba0e67d743c442736319217cf | 432 | py | Python | src/AOJ/ITP1_7_D.py | nabetama-training/CompetitionProgrammingPractice | 0801173df3992c2e78b02b383f2df9ba792cbf2f | [
"BSD-2-Clause"
] | null | null | null | src/AOJ/ITP1_7_D.py | nabetama-training/CompetitionProgrammingPractice | 0801173df3992c2e78b02b383f2df9ba792cbf2f | [
"BSD-2-Clause"
] | 2 | 2020-07-04T04:19:28.000Z | 2020-07-26T06:16:07.000Z | src/AOJ/ITP1_7_D.py | nabetama-training/CompetitionProgrammingPractice | 0801173df3992c2e78b02b383f2df9ba792cbf2f | [
"BSD-2-Clause"
] | null | null | null | def resolve():
n, m, l = map(int, input().split())
a = [list(map(int, input().split())) for i in range(n)]
b = [list(map(int, input().split())) for i in range(m)]
c = []
for i in range(n):
tmp = []
for j in range(l):
x = 0
for k in range(m):
x += a[i][k] * b[k][j]
tmp.append(x)
c.append(tmp)
for line in c:
print(*line)
| 22.736842 | 59 | 0.423611 | 69 | 432 | 2.652174 | 0.362319 | 0.191257 | 0.180328 | 0.262295 | 0.409836 | 0.338798 | 0.338798 | 0.338798 | 0.338798 | 0 | 0 | 0.003788 | 0.388889 | 432 | 18 | 60 | 24 | 0.689394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.066667 | 0.066667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba19c7f310e24010d89e1bb0e0f5b380d42308ba | 712 | py | Python | proxy/proxy.py | eddieir/design_patterns | db2e00761fa218f1144edc4ffe3e5f7a7c28eef9 | [
"MIT"
] | null | null | null | proxy/proxy.py | eddieir/design_patterns | db2e00761fa218f1144edc4ffe3e5f7a7c28eef9 | [
"MIT"
] | null | null | null | proxy/proxy.py | eddieir/design_patterns | db2e00761fa218f1144edc4ffe3e5f7a7c28eef9 | [
"MIT"
] | null | null | null | import sys
#
# Subject
# defines the common interface for RealSubject and Proxy
# so that a Proxy can be used anywhere a RealSubject is expected
#
class Subject:
def request(self):
pass
#
# Real Subject
# defines the real object that the proxy represents
#
class RealSubject(Subject):
def __init__(self):
Subject.__init__(self)
def request(self):
print("Real Subject request.")
#
# Proxy
# maintains a reference that lets the proxy access the real subject
#
class Proxy(Subject):
def __init__(self):
Subject.__init__(self)
self._subject = RealSubject()
def request(self):
self._subject.request()
if __name__ == "__main__":
proxy = Proxy()
proxy.request()
| 18.25641 | 67 | 0.699438 | 92 | 712 | 5.130435 | 0.402174 | 0.067797 | 0.088983 | 0.076271 | 0.139831 | 0.139831 | 0.139831 | 0 | 0 | 0 | 0 | 0 | 0.20927 | 712 | 39 | 68 | 18.25641 | 0.838366 | 0.365169 | 0 | 0.388889 | 0 | 0 | 0.066059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.055556 | 0.055556 | 0 | 0.5 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ba278bf06a83d5247f48e61447759a2ac6e6ff12 | 10,607 | py | Python | sdk/python/pulumi_aws_native/directoryservice/microsoft_ad.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/directoryservice/microsoft_ad.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/directoryservice/microsoft_ad.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = ['MicrosoftADArgs', 'MicrosoftAD']
@pulumi.input_type
class MicrosoftADArgs:
def __init__(__self__, *,
password: pulumi.Input[str],
vpc_settings: pulumi.Input['MicrosoftADVpcSettingsArgs'],
create_alias: Optional[pulumi.Input[bool]] = None,
edition: Optional[pulumi.Input[str]] = None,
enable_sso: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
short_name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a MicrosoftAD resource.
"""
pulumi.set(__self__, "password", password)
pulumi.set(__self__, "vpc_settings", vpc_settings)
if create_alias is not None:
pulumi.set(__self__, "create_alias", create_alias)
if edition is not None:
pulumi.set(__self__, "edition", edition)
if enable_sso is not None:
pulumi.set(__self__, "enable_sso", enable_sso)
if name is not None:
pulumi.set(__self__, "name", name)
if short_name is not None:
pulumi.set(__self__, "short_name", short_name)
@property
@pulumi.getter
def password(self) -> pulumi.Input[str]:
return pulumi.get(self, "password")
@password.setter
def password(self, value: pulumi.Input[str]):
pulumi.set(self, "password", value)
@property
@pulumi.getter(name="vpcSettings")
def vpc_settings(self) -> pulumi.Input['MicrosoftADVpcSettingsArgs']:
return pulumi.get(self, "vpc_settings")
@vpc_settings.setter
def vpc_settings(self, value: pulumi.Input['MicrosoftADVpcSettingsArgs']):
pulumi.set(self, "vpc_settings", value)
@property
@pulumi.getter(name="createAlias")
def create_alias(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "create_alias")
@create_alias.setter
def create_alias(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "create_alias", value)
@property
@pulumi.getter
def edition(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "edition")
@edition.setter
def edition(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "edition", value)
@property
@pulumi.getter(name="enableSso")
def enable_sso(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "enable_sso")
@enable_sso.setter
def enable_sso(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_sso", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="shortName")
def short_name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "short_name")
@short_name.setter
def short_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "short_name", value)
warnings.warn("""MicrosoftAD is not yet supported by AWS Native, so its creation will currently fail. Please use the classic AWS provider, if possible.""", DeprecationWarning)
class MicrosoftAD(pulumi.CustomResource):
warnings.warn("""MicrosoftAD is not yet supported by AWS Native, so its creation will currently fail. Please use the classic AWS provider, if possible.""", DeprecationWarning)
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
create_alias: Optional[pulumi.Input[bool]] = None,
edition: Optional[pulumi.Input[str]] = None,
enable_sso: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
password: Optional[pulumi.Input[str]] = None,
short_name: Optional[pulumi.Input[str]] = None,
vpc_settings: Optional[pulumi.Input[pulumi.InputType['MicrosoftADVpcSettingsArgs']]] = None,
__props__=None):
"""
Resource Type definition for AWS::DirectoryService::MicrosoftAD
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: MicrosoftADArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Resource Type definition for AWS::DirectoryService::MicrosoftAD
:param str resource_name: The name of the resource.
:param MicrosoftADArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(MicrosoftADArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
create_alias: Optional[pulumi.Input[bool]] = None,
edition: Optional[pulumi.Input[str]] = None,
enable_sso: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
password: Optional[pulumi.Input[str]] = None,
short_name: Optional[pulumi.Input[str]] = None,
vpc_settings: Optional[pulumi.Input[pulumi.InputType['MicrosoftADVpcSettingsArgs']]] = None,
__props__=None):
pulumi.log.warn("""MicrosoftAD is deprecated: MicrosoftAD is not yet supported by AWS Native, so its creation will currently fail. Please use the classic AWS provider, if possible.""")
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = MicrosoftADArgs.__new__(MicrosoftADArgs)
__props__.__dict__["create_alias"] = create_alias
__props__.__dict__["edition"] = edition
__props__.__dict__["enable_sso"] = enable_sso
__props__.__dict__["name"] = name
if password is None and not opts.urn:
raise TypeError("Missing required property 'password'")
__props__.__dict__["password"] = password
__props__.__dict__["short_name"] = short_name
if vpc_settings is None and not opts.urn:
raise TypeError("Missing required property 'vpc_settings'")
__props__.__dict__["vpc_settings"] = vpc_settings
__props__.__dict__["alias"] = None
__props__.__dict__["dns_ip_addresses"] = None
super(MicrosoftAD, __self__).__init__(
'aws-native:directoryservice:MicrosoftAD',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'MicrosoftAD':
"""
Get an existing MicrosoftAD resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = MicrosoftADArgs.__new__(MicrosoftADArgs)
__props__.__dict__["alias"] = None
__props__.__dict__["create_alias"] = None
__props__.__dict__["dns_ip_addresses"] = None
__props__.__dict__["edition"] = None
__props__.__dict__["enable_sso"] = None
__props__.__dict__["name"] = None
__props__.__dict__["password"] = None
__props__.__dict__["short_name"] = None
__props__.__dict__["vpc_settings"] = None
return MicrosoftAD(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def alias(self) -> pulumi.Output[str]:
return pulumi.get(self, "alias")
@property
@pulumi.getter(name="createAlias")
def create_alias(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "create_alias")
@property
@pulumi.getter(name="dnsIpAddresses")
def dns_ip_addresses(self) -> pulumi.Output[Sequence[str]]:
return pulumi.get(self, "dns_ip_addresses")
@property
@pulumi.getter
def edition(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "edition")
@property
@pulumi.getter(name="enableSso")
def enable_sso(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "enable_sso")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
return pulumi.get(self, "name")
@property
@pulumi.getter
def password(self) -> pulumi.Output[str]:
return pulumi.get(self, "password")
@property
@pulumi.getter(name="shortName")
def short_name(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "short_name")
@property
@pulumi.getter(name="vpcSettings")
def vpc_settings(self) -> pulumi.Output['outputs.MicrosoftADVpcSettings']:
return pulumi.get(self, "vpc_settings")
| 40.17803 | 192 | 0.642217 | 1,187 | 10,607 | 5.419545 | 0.132266 | 0.064977 | 0.085652 | 0.058138 | 0.634385 | 0.576092 | 0.504897 | 0.47132 | 0.406964 | 0.293331 | 0 | 0.000125 | 0.248232 | 10,607 | 263 | 193 | 40.330798 | 0.806622 | 0.095314 | 0 | 0.422111 | 1 | 0.015075 | 0.151994 | 0.021107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145729 | false | 0.080402 | 0.035176 | 0.080402 | 0.276382 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ba2ec892305e103e5ff251aac269b6142f242d1c | 171 | py | Python | model/classes/model/Config.py | SimonDeussen/pix2code | da009b245a10778eb42e4694b9f6d81dde483946 | [
"Apache-2.0"
] | null | null | null | model/classes/model/Config.py | SimonDeussen/pix2code | da009b245a10778eb42e4694b9f6d81dde483946 | [
"Apache-2.0"
] | null | null | null | model/classes/model/Config.py | SimonDeussen/pix2code | da009b245a10778eb42e4694b9f6d81dde483946 | [
"Apache-2.0"
] | 1 | 2018-11-18T14:57:27.000Z | 2018-11-18T14:57:27.000Z | __author__ = 'Tony Beltramelli - www.tonybeltramelli.com'
CONTEXT_LENGTH = 64
IMAGE_SIZE = 256
BATCH_SIZE = 64
EPOCHS = 10
STEPS_PER_EPOCH = 72000
IMG_DATA_TYPE = ".jpg"
| 19 | 57 | 0.766082 | 25 | 171 | 4.8 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09589 | 0.146199 | 171 | 8 | 58 | 21.375 | 0.726027 | 0 | 0 | 0 | 0 | 0 | 0.269006 | 0.134503 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ba2f3183b7b8565528865484e1322335559a9d86 | 1,810 | py | Python | exp/DFRdatasets/dataloaders/RNNLoaderBase.py | zzzace2000/dropout-feature-rankin | 7769ce822f3c0a6d23167d11f1569f59e56b1266 | [
"CC-BY-4.0"
] | 6 | 2019-02-24T07:31:38.000Z | 2021-12-27T08:57:38.000Z | exp/DFRdatasets/dataloaders/RNNLoaderBase.py | zzzace2000/dropout-feature-rankin | 7769ce822f3c0a6d23167d11f1569f59e56b1266 | [
"CC-BY-4.0"
] | 2 | 2019-01-13T11:49:35.000Z | 2020-05-18T01:59:15.000Z | exp/DFRdatasets/dataloaders/RNNLoaderBase.py | zzzace2000/dropout-feature-rankin | 7769ce822f3c0a6d23167d11f1569f59e56b1266 | [
"CC-BY-4.0"
] | 6 | 2018-11-06T14:17:07.000Z | 2021-11-06T14:30:10.000Z | import numpy as np
from .MLPLoaderBase import MLPLoaderBase
class RNNLoaderBase(MLPLoaderBase):
'''
Handle the 2 dim input (time, features) and to 1 dim input in sklearn.
Especially rank function (needs to pass by num_features) and test function (take 1 dim feature).
'''
def get_time_feature_shape(self):
raise NotImplementedError
def rf_rank(self, testfold=4):
all_metrics = super(RNNLoaderBase, self).rf_rank(testfold)
all_metrics['rank'] = all_metrics['rank'].reshape(self.get_time_feature_shape()).mean(axis=0)
return all_metrics
def random_rank(self, testfold=4):
D = self.get_time_feature_shape()[-1]
return {'rank': np.random.rand(D)}
def marginal_rank(self, testfold=4):
all_metrics = super(RNNLoaderBase, self).marginal_rank(testfold)
all_metrics['rank'] = all_metrics['rank'].reshape(self.get_time_feature_shape()).mean(axis=0)
return all_metrics
def enet_rank(self, testfold=4):
all_metrics = super(RNNLoaderBase, self).enet_rank(testfold)
all_metrics['rank'] = all_metrics['rank'].reshape(self.get_time_feature_shape()).mean(axis=0)
return all_metrics
def lasso_rank(self, testfold=4):
all_metrics = super(RNNLoaderBase, self).lasso_rank(testfold)
all_metrics['rank'] = all_metrics['rank'].reshape(self.get_time_feature_shape()).mean(axis=0)
return all_metrics
def nn_rank(self, testfold=4):
all_metrics = super(RNNLoaderBase, self).nn_rank(testfold)
all_metrics['rank'] = all_metrics['rank'][0]
return all_metrics
def dfs_rank(self, testfold=4):
all_metrics = super(RNNLoaderBase, self).dfs_rank(testfold)
all_metrics['rank'] = all_metrics['rank'][0]
return all_metrics
| 38.510638 | 101 | 0.687845 | 244 | 1,810 | 4.872951 | 0.22541 | 0.20185 | 0.141295 | 0.100084 | 0.694701 | 0.672834 | 0.672834 | 0.672834 | 0.672834 | 0.425568 | 0 | 0.01166 | 0.194475 | 1,810 | 46 | 102 | 39.347826 | 0.803841 | 0.092265 | 0 | 0.375 | 0 | 0 | 0.032039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e83a765cdd9a65a66a06c48ceca4089cc572c30f | 52 | py | Python | tools/__init__.py | atwollam/pVACtools | f516d5cf03b6041313705b2d8b65172e17f15dd4 | [
"BSD-3-Clause-Clear"
] | 96 | 2017-11-06T18:53:19.000Z | 2022-02-28T07:36:12.000Z | tools/__init__.py | atwollam/pVACtools | f516d5cf03b6041313705b2d8b65172e17f15dd4 | [
"BSD-3-Clause-Clear"
] | 521 | 2017-11-29T16:27:54.000Z | 2022-03-30T13:57:38.000Z | tools/__init__.py | atwollam/pVACtools | f516d5cf03b6041313705b2d8b65172e17f15dd4 | [
"BSD-3-Clause-Clear"
] | 53 | 2017-11-29T19:40:27.000Z | 2022-01-14T16:51:12.000Z | __all__ = [
'download_cwls',
]
from . import *
| 8.666667 | 20 | 0.576923 | 5 | 52 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269231 | 52 | 5 | 21 | 10.4 | 0.657895 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e83ab9ede6e47f9034c974435a2c818e142cbc7b | 528 | py | Python | APIserver/main.py | trialley/Tworld | 8d4f9b806e490cf76b940190e157d105f928cdf1 | [
"MIT"
] | null | null | null | APIserver/main.py | trialley/Tworld | 8d4f9b806e490cf76b940190e157d105f928cdf1 | [
"MIT"
] | null | null | null | APIserver/main.py | trialley/Tworld | 8d4f9b806e490cf76b940190e157d105f928cdf1 | [
"MIT"
] | null | null | null | from flask_restful import reqparse, abort, Api, Resource
from flask import Flask
from flask import render_template
app = Flask(__name__, static_folder='../PCWebclient', static_url_path='')
@app.route('/')
def index():
return app.send_static_file("index.html")
if __name__ == '__main__':
# 张三负责qzone组件
from qzone import add_qzone_routes
add_qzone_routes(app)
# qzone组件注册完成
# 李四负责好友组件
from friend import add_friend_routes
add_friend_routes(app)
# 好友组件注册完成
app.run(port=80, debug=True)
| 22.956522 | 73 | 0.723485 | 70 | 528 | 5.071429 | 0.557143 | 0.076056 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.17803 | 528 | 22 | 74 | 24 | 0.813364 | 0.077652 | 0 | 0 | 0 | 0 | 0.068465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e8468fc49d1bf0b70958708cb9941de51525420b | 1,211 | py | Python | rqalpha/mod/rqalpha_mod_sys_simulation/testing.py | ForrestLin0805/rqalpha | b10d03f9a23180a93e39c40fcb048ba6db37b573 | [
"Apache-2.0"
] | 5,263 | 2016-07-20T10:41:10.000Z | 2022-03-29T08:24:34.000Z | rqalpha/mod/rqalpha_mod_sys_simulation/testing.py | ForrestLin0805/rqalpha | b10d03f9a23180a93e39c40fcb048ba6db37b573 | [
"Apache-2.0"
] | 572 | 2016-07-28T07:51:02.000Z | 2022-02-09T15:28:03.000Z | rqalpha/mod/rqalpha_mod_sys_simulation/testing.py | ForrestLin0805/rqalpha | b10d03f9a23180a93e39c40fcb048ba6db37b573 | [
"Apache-2.0"
] | 1,769 | 2016-07-20T11:11:55.000Z | 2022-03-31T10:11:38.000Z | # -*- coding: utf-8 -*-
# 版权所有 2019 深圳米筐科技有限公司(下称“米筐科技”)
#
# 除非遵守当前许可,否则不得使用本软件。
#
# * 非商业用途(非商业用途指个人出于非商业目的使用本软件,或者高校、研究所等非营利机构出于教育、科研等目的使用本软件):
# 遵守 Apache License 2.0(下称“Apache 2.0 许可”),您可以在以下位置获得 Apache 2.0 许可的副本:http://www.apache.org/licenses/LICENSE-2.0。
# 除非法律有要求或以书面形式达成协议,否则本软件分发时需保持当前许可“原样”不变,且不得附加任何条件。
#
# * 商业用途(商业用途指个人出于任何商业目的使用本软件,或者法人或其他组织出于任何目的使用本软件):
# 未经米筐科技授权,任何个人不得出于任何商业目的使用本软件(包括但不限于向第三方提供、销售、出租、出借、转让本软件、本软件的衍生产品、引用或借鉴了本软件功能或源代码的产品或服务),任何法人或其他组织不得出于任何目的使用本软件,否则米筐科技有权追究相应的知识产权侵权责任。
# 在此前提下,对本软件的使用同样需要遵守 Apache 2.0 许可,Apache 2.0 许可与本许可冲突之处,以本许可为准。
# 详细的授权流程,请联系 public@ricequant.com 获取。
from rqalpha.utils.testing import EnvironmentFixture
class SimulationEventSourceFixture(EnvironmentFixture):
def __init__(self, *args, **kwargs):
super(SimulationEventSourceFixture, self).__init__(*args, **kwargs)
self.simulation_event_source = None
def init_fixture(self):
from rqalpha.mod.rqalpha_mod_sys_simulation.simulation_event_source import SimulationEventSource
super(SimulationEventSourceFixture, self).init_fixture()
self.simulation_event_source = SimulationEventSource(self.env)
| 43.25 | 144 | 0.745665 | 127 | 1,211 | 6.96063 | 0.622047 | 0.013575 | 0.036199 | 0.022624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016505 | 0.149463 | 1,211 | 27 | 145 | 44.851852 | 0.841748 | 0.521883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e84c31e9b14f80c909bab7989be12fbb87d43126 | 406 | py | Python | tests/base_tests.py | ashok-g/dirsync | 39d5d69adcf78f97caca3be086c3703b6f0fb541 | [
"MIT"
] | null | null | null | tests/base_tests.py | ashok-g/dirsync | 39d5d69adcf78f97caca3be086c3703b6f0fb541 | [
"MIT"
] | null | null | null | tests/base_tests.py | ashok-g/dirsync | 39d5d69adcf78f97caca3be086c3703b6f0fb541 | [
"MIT"
] | null | null | null | from .base import DirSyncTestCase
from . import trees
class MkTreeTests(DirSyncTestCase):
init_trees = (('src', trees.simple),)
def test_simple_tree(self):
self.assertIsFile('src/file1.txt')
self.assertIsDir('src/dir')
self.assertListDir('src/dir', ['file4.txt'])
self.assertIsDir('src/empty_dir')
self.assertListDir('src/empty_dir', [])
| 25.375 | 53 | 0.633005 | 45 | 406 | 5.6 | 0.488889 | 0.055556 | 0.142857 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006349 | 0.224138 | 406 | 15 | 54 | 27.066667 | 0.793651 | 0 | 0 | 0 | 0 | 0 | 0.16624 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e85a8e710efee81ec2500051fb3ecbbc932efdb1 | 834 | py | Python | jobportal/migrations/0009_auto_20170315_0002.py | klenks/jobsportal | 330f3b40220a9a721897a047ebaaabe98a11edde | [
"MIT"
] | null | null | null | jobportal/migrations/0009_auto_20170315_0002.py | klenks/jobsportal | 330f3b40220a9a721897a047ebaaabe98a11edde | [
"MIT"
] | null | null | null | jobportal/migrations/0009_auto_20170315_0002.py | klenks/jobsportal | 330f3b40220a9a721897a047ebaaabe98a11edde | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-15 00:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobportal', '0008_remove_person_join_date'),
]
operations = [
migrations.AddField(
model_name='person',
name='age',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name='person',
name='first_name',
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name='person',
name='last_name',
field=models.CharField(blank=True, max_length=200, null=True),
),
]
| 26.903226 | 74 | 0.591127 | 91 | 834 | 5.230769 | 0.516484 | 0.113445 | 0.144958 | 0.170168 | 0.558824 | 0.558824 | 0.481092 | 0.481092 | 0.481092 | 0.481092 | 0 | 0.050505 | 0.28777 | 834 | 30 | 75 | 27.8 | 0.750842 | 0.081535 | 0 | 0.521739 | 1 | 0 | 0.100917 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e85ad8d502ef1d8abb19a7107d6698663791f5ce | 301 | py | Python | Main.py | vibhanshumonty/Password-Genetator | e2b2aeba737c43e43b2f00cc12ef9a96acca2422 | [
"MIT"
] | null | null | null | Main.py | vibhanshumonty/Password-Genetator | e2b2aeba737c43e43b2f00cc12ef9a96acca2422 | [
"MIT"
] | null | null | null | Main.py | vibhanshumonty/Password-Genetator | e2b2aeba737c43e43b2f00cc12ef9a96acca2422 | [
"MIT"
] | null | null | null | # PYTHON PASSWORD GENERATOR
# KUMAR VIBHANSHU
import random
lower = "abcdefghijklmnopqrstuvwxyz"
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
numbers = "0123456789"
symbols = "[]{}()*;/,_-"
all = lower + upper + numbers + symbols
length = 16
password = "".join(random.sample(all,length))
print(password)
| 17.705882 | 45 | 0.72093 | 29 | 301 | 7.448276 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046332 | 0.139535 | 301 | 16 | 46 | 18.8125 | 0.787645 | 0.136213 | 0 | 0 | 0 | 0 | 0.287938 | 0.202335 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.222222 | 0.111111 | 0 | 0.111111 | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e860a56be3714cd68e50ffaaa1926966e833f1a9 | 156 | py | Python | loops in python/pattern.py | shashikant-sk/python_learning | 91059fe50c8f6a321d393680dc865c24c39a2a33 | [
"MIT"
] | null | null | null | loops in python/pattern.py | shashikant-sk/python_learning | 91059fe50c8f6a321d393680dc865c24c39a2a33 | [
"MIT"
] | null | null | null | loops in python/pattern.py | shashikant-sk/python_learning | 91059fe50c8f6a321d393680dc865c24c39a2a33 | [
"MIT"
] | null | null | null | # 1
# 12
# 123
# 1234
# 12345
n = int (input("Enter the number "))
for i in range(1,n+1):
for j in range(1,i+1):
print(j,end="")
print() | 15.6 | 36 | 0.512821 | 29 | 156 | 2.758621 | 0.62069 | 0.175 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 0.294872 | 156 | 10 | 37 | 15.6 | 0.554545 | 0.121795 | 0 | 0 | 0 | 0 | 0.128788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e860e897bd163c3e68665e8ee20f9d23d9b69b2c | 1,730 | py | Python | portfolio/views.py | open-risk/equinox | 0503e716b566ff7c776f04a611879f88d86e1cc6 | [
"Apache-2.0"
] | 10 | 2021-03-21T22:05:33.000Z | 2022-03-15T18:26:58.000Z | portfolio/views.py | open-risk/equinox | 0503e716b566ff7c776f04a611879f88d86e1cc6 | [
"Apache-2.0"
] | 2 | 2021-10-30T15:15:41.000Z | 2021-11-11T12:35:02.000Z | portfolio/views.py | open-risk/equinox | 0503e716b566ff7c776f04a611879f88d86e1cc6 | [
"Apache-2.0"
] | 1 | 2022-03-16T18:59:36.000Z | 2022-03-16T18:59:36.000Z | # Copyright (c) 2021 Open Risk (https://www.openriskmanagement.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
from django.views.generic import ListView
from portfolio.Asset import Asset
from django.shortcuts import render
from django.views.generic.base import TemplateView
class AssetList(ListView):
"""
List all assets sequentially with common action buttons
Also generation options at the end
"""
model = Asset
template_name = 'asset_list.html'
def get_context_data(self, **kwargs):
context = super(ListView, self).get_context_data(**kwargs)
return context
class AssetMapView(TemplateView):
"""Asset Markers Map view."""
template_name = "asset_map.html"
| 39.318182 | 80 | 0.760116 | 247 | 1,730 | 5.291498 | 0.558704 | 0.06733 | 0.019893 | 0.033665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002805 | 0.175723 | 1,730 | 43 | 81 | 40.232558 | 0.913745 | 0.694798 | 0 | 0 | 0 | 0 | 0.059794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e86e11015c15f2c1be12f23520230a1235050d4e | 447 | py | Python | core/api/resources/endpoints.py | zilohumberto/EcobiciStatistics | fbd6c6ef9806cb55385f8cbc1acc9ebbc32a9868 | [
"MIT"
] | null | null | null | core/api/resources/endpoints.py | zilohumberto/EcobiciStatistics | fbd6c6ef9806cb55385f8cbc1acc9ebbc32a9868 | [
"MIT"
] | null | null | null | core/api/resources/endpoints.py | zilohumberto/EcobiciStatistics | fbd6c6ef9806cb55385f8cbc1acc9ebbc32a9868 | [
"MIT"
] | null | null | null | from . import Method
import core.api.controllers as controller
ENDPOINTS = [
dict(
controller=controller.StationController,
endpoint='station',
methods=[Method.GET, Method.DELETE],
urls=[
'/station/'
]
),
dict(
controller=controller.TripController,
endpoint='trip',
methods=[Method.GET, Method.DELETE],
urls=[
'/trip/'
]
)
]
| 19.434783 | 48 | 0.541387 | 36 | 447 | 6.722222 | 0.527778 | 0.115702 | 0.198347 | 0.181818 | 0.264463 | 0.264463 | 0 | 0 | 0 | 0 | 0 | 0 | 0.340045 | 447 | 22 | 49 | 20.318182 | 0.820339 | 0 | 0 | 0.3 | 0 | 0 | 0.058166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e86fc717a55e5ede9e23e68edd919e0d5acd77d6 | 478 | py | Python | code/ShowDistractAndDeceive/src/sentence_embedding.py | dikvangenuchten/bep-adversarial-image-annotation | f4d8a7349df7a6c7cc8aa4a4409c45a7082b24ee | [
"MIT"
] | null | null | null | code/ShowDistractAndDeceive/src/sentence_embedding.py | dikvangenuchten/bep-adversarial-image-annotation | f4d8a7349df7a6c7cc8aa4a4409c45a7082b24ee | [
"MIT"
] | null | null | null | code/ShowDistractAndDeceive/src/sentence_embedding.py | dikvangenuchten/bep-adversarial-image-annotation | f4d8a7349df7a6c7cc8aa4a4409c45a7082b24ee | [
"MIT"
] | null | null | null | """Sentence Embedding to
"""
from typing import List
import tensorflow as tf
import tensorflow_hub as hub
import torch
embed = hub.load("https://tfhub.dev/google/universal-sentence-encoder/4")
def cosine_similarity(orig_sentences: List[str], adv_sentences: List[str]):
orig_features = torch.tensor(embed(orig_sentences).numpy())
adv_features = torch.tensor(embed(adv_sentences).numpy())
return torch.nn.functional.cosine_similarity(orig_features, adv_features)
| 29.875 | 77 | 0.776151 | 66 | 478 | 5.454545 | 0.515152 | 0.088889 | 0.111111 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002347 | 0.108787 | 478 | 15 | 78 | 31.866667 | 0.842723 | 0.043933 | 0 | 0 | 0 | 0 | 0.11804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e87a21f203c99f82b82c3a84c9e910033363d878 | 2,920 | py | Python | demo/demo/settings.py | 9dev/django-fb-rank | 2edaf50b6e43231806c3adb9e7ae2a97ddff4006 | [
"MIT"
] | 2 | 2016-02-03T11:05:57.000Z | 2020-09-29T22:41:29.000Z | demo/demo/settings.py | 9dev/django-fb-rank | 2edaf50b6e43231806c3adb9e7ae2a97ddff4006 | [
"MIT"
] | null | null | null | demo/demo/settings.py | 9dev/django-fb-rank | 2edaf50b6e43231806c3adb9e7ae2a97ddff4006 | [
"MIT"
] | null | null | null | import sys
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Add our app to path
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
SECRET_KEY = 'cd05%22s)#05s2gfn6hebh^1c0cjomh)dr)-y86gqdrw8b0xr^'
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar',
'main',
'fb_rank',
]
MIDDLEWARE_CLASSES = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'demo.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'demo.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': os.path.join(BASE_DIR, 'cache/default/'),
},
'ranking': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': os.path.join(BASE_DIR, 'cache/ranking/'),
}
}
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
STATIC_URL = '/static/'
FB_ACCESS_TOKEN = os.getenv('FB_ACCESS_TOKEN', 'XYZ')
FB_RANK_CACHE_NAME = 'ranking'
FULL_URL_PREFIX = 'http://www.example.com'
TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
TEST_OUTPUT_VERBOSE = 1
TEST_OUTPUT_DIR = 'shippable/codecoverage'
TEST_OUTPUT_FILE_NAME = 'codecoverage.xml'
| 27.037037 | 91 | 0.678425 | 295 | 2,920 | 6.528814 | 0.430508 | 0.107996 | 0.070613 | 0.031153 | 0.212876 | 0.20405 | 0.119418 | 0.119418 | 0.086189 | 0.086189 | 0 | 0.009193 | 0.180479 | 2,920 | 107 | 92 | 27.28972 | 0.795654 | 0.006507 | 0 | 0.045455 | 0 | 0 | 0.538806 | 0.431873 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.056818 | 0.022727 | 0 | 0.022727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e87bd4bb1bc7930bd362eaabea52868e5b3c0dd9 | 467 | py | Python | server.py | edouard-lopez/parlr | ff55b2b733bdc381cca250022e3998e745e38ce7 | [
"Apache-2.0"
] | 1 | 2015-03-13T10:03:41.000Z | 2015-03-13T10:03:41.000Z | server.py | edouard-lopez/parlr | ff55b2b733bdc381cca250022e3998e745e38ce7 | [
"Apache-2.0"
] | null | null | null | server.py | edouard-lopez/parlr | ff55b2b733bdc381cca250022e3998e745e38ce7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import flask
from parlr import app
class Server(flask.Flask):
def __init__(self, import_name):
root_dir = os.path.dirname(__file__)
super().__init__(import_name,
static_folder=os.path.join(root_dir, 'client', 'dist'),
template_folder=os.path.join(root_dir, 'client', 'src'))
app = Server(__name__)
@app.route('/')
def hello_world():
return 'Hello World!' | 24.578947 | 81 | 0.610278 | 59 | 467 | 4.423729 | 0.542373 | 0.08046 | 0.091954 | 0.122605 | 0.222222 | 0.222222 | 0.222222 | 0 | 0 | 0 | 0 | 0.002841 | 0.246253 | 467 | 19 | 82 | 24.578947 | 0.738636 | 0.044968 | 0 | 0 | 0 | 0 | 0.07191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e88645a9d6aebc6671e3605bb5822af4dec4b099 | 811 | py | Python | sdk/python/pulumi_aws_native/s3outposts/_enums.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/s3outposts/_enums.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/s3outposts/_enums.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'BucketRuleStatus',
'EndpointAccessType',
'EndpointStatus',
]
class BucketRuleStatus(str, Enum):
ENABLED = "Enabled"
DISABLED = "Disabled"
class EndpointAccessType(str, Enum):
"""
The type of access for the on-premise network connectivity for the Outpost endpoint. To access endpoint from an on-premises network, you must specify the access type and provide the customer owned Ipv4 pool.
"""
CUSTOMER_OWNED_IP = "CustomerOwnedIp"
PRIVATE = "Private"
class EndpointStatus(str, Enum):
AVAILABLE = "Available"
PENDING = "Pending"
DELETING = "Deleting"
| 26.16129 | 211 | 0.697904 | 99 | 811 | 5.656566 | 0.636364 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00311 | 0.207152 | 811 | 30 | 212 | 27.033333 | 0.867807 | 0.456227 | 0 | 0 | 1 | 0 | 0.257683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e889bee07e5a48ae905456322cbccced0d1fc7d2 | 4,149 | py | Python | chapter_11/NN.py | rkneusel9/MathForDeepLearning | 8db1a85ce3cef4b48aab01ebe156e3fab2dfa271 | [
"MIT"
] | 23 | 2021-10-12T19:53:35.000Z | 2022-03-29T12:41:23.000Z | chapter_11/NN.py | mohit-n-rajput/MathForDeepLearning | 8db1a85ce3cef4b48aab01ebe156e3fab2dfa271 | [
"MIT"
] | null | null | null | chapter_11/NN.py | mohit-n-rajput/MathForDeepLearning | 8db1a85ce3cef4b48aab01ebe156e3fab2dfa271 | [
"MIT"
] | 7 | 2021-06-16T17:21:41.000Z | 2022-03-16T09:22:50.000Z | #
# file: nn.py
#
# Generic fully connected neural network code using NumPy.
#
# Based on code by Omar Aflak,
#
# https://github.com/OmarAflak/Medium-Python-Neural-Network
#
# used and modified with his permission.
#
# RTK, 03-Feb-2021
# Last update: 06-Feb-2021
#
################################################################
import numpy as np
# Activation function and derivative
def sigmoid(x):
return 1.0 / (1.0 + np.exp(-x))
def sigmoid_prime(x):
return sigmoid(x)*(1.0 - sigmoid(x))
# Loss function and derivative
def mse(y_true, y_pred):
return (0.5*(y_true - y_pred)**2).mean()
def mse_prime(y_true, y_pred):
return y_pred - y_true
################################################################
# ActivationLayer
#
class ActivationLayer:
def forward(self, input_data):
self.input = input_data
return sigmoid(input_data)
def backward(self, output_error):
return sigmoid_prime(self.input) * output_error
def step(self, eta):
return
################################################################
# FullyConnectedLayer
#
class FullyConnectedLayer:
def __init__(self, input_size, output_size):
# for accumulating error over a minibatch
self.delta_w = np.zeros((input_size, output_size))
self.delta_b = np.zeros((1,output_size))
self.passes = 0
# initialize the weights and biases w/small random values
self.weights = np.random.rand(input_size, output_size) - 0.5
self.bias = np.random.rand(1, output_size) - 0.5
def forward(self, input_data):
self.input = input_data
return np.dot(self.input, self.weights) + self.bias
def backward(self, output_error):
input_error = np.dot(output_error, self.weights.T)
weights_error = np.dot(self.input.T, output_error)
# accumulate the error over the minibatch
self.delta_w += np.dot(self.input.T, output_error)
self.delta_b += output_error
self.passes += 1
return input_error
def step(self, eta):
# update the weights and biases by the mean error
# over the minibatch
self.weights -= eta * self.delta_w / self.passes
self.bias -= eta * self.delta_b / self.passes
# reset for the next minibatch
self.delta_w = np.zeros(self.weights.shape)
self.delta_b = np.zeros(self.bias.shape)
self.passes = 0
################################################################
# Network
#
class Network:
def __init__(self, verbose=True):
self.verbose = verbose
self.layers = []
def add(self, layer):
self.layers.append(layer)
def predict(self, input_data):
result = []
for i in range(input_data.shape[0]):
output = input_data[i]
for layer in self.layers:
output = layer.forward(output)
result.append(output)
return result
def fit(self, x_train, y_train, minibatches, learning_rate, batch_size=64):
for i in range(minibatches):
err = 0
# select a random minibatch
idx = np.argsort(np.random.random(x_train.shape[0]))[:batch_size]
x_batch = x_train[idx]
y_batch = y_train[idx]
for j in range(batch_size):
# forward propagation
output = x_batch[j]
for layer in self.layers:
output = layer.forward(output)
# accumulate loss
err += mse(y_batch[j], output)
# backward propagation
error = mse_prime(y_batch[j], output)
for layer in reversed(self.layers):
error = layer.backward(error)
# update weights and biases
for layer in self.layers:
layer.step(learning_rate)
# report mean loss over minibatch
if (self.verbose) and ((i%10) == 0):
err /= batch_size
print('minibatch %5d/%d error=%0.9f' % (i, minibatches, err))
# end NN.py
| 29.013986 | 79 | 0.558448 | 512 | 4,149 | 4.388672 | 0.25 | 0.040053 | 0.017802 | 0.013351 | 0.23053 | 0.127281 | 0.104139 | 0.080997 | 0.080997 | 0.041834 | 0 | 0.013833 | 0.285611 | 4,149 | 142 | 80 | 29.21831 | 0.744265 | 0.180043 | 0 | 0.205479 | 0 | 0 | 0.009653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205479 | false | 0.068493 | 0.013699 | 0.082192 | 0.39726 | 0.013699 | 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 | 0 | 0 | 0 | 2 |
e8a50f3a9d3914c6d70b92b02acc20c448b60de1 | 121 | py | Python | Contest/ABC138/c/main.py | mpses/AtCoder | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | [
"CC0-1.0"
] | null | null | null | Contest/ABC138/c/main.py | mpses/AtCoder | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | [
"CC0-1.0"
] | null | null | null | Contest/ABC138/c/main.py | mpses/AtCoder | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
_ = input()
_v, *v = sorted(map(int, input().split()))
for i in v:
_v = (_v + i) / 2
print(_v) | 20.166667 | 42 | 0.553719 | 22 | 121 | 2.818182 | 0.681818 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.206612 | 121 | 6 | 43 | 20.166667 | 0.625 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
e8a8e6d976c7f61d3e0ad9a1d5f06c80858e8785 | 246,572 | py | Python | labSNMP/compiled/TRIPPLITE-PRODUCTS.py | ypsun-umd/labSNMP | 3278b320d0074601e4e8a219e590cd9d1333b78a | [
"BSD-2-Clause"
] | null | null | null | labSNMP/compiled/TRIPPLITE-PRODUCTS.py | ypsun-umd/labSNMP | 3278b320d0074601e4e8a219e590cd9d1333b78a | [
"BSD-2-Clause"
] | null | null | null | labSNMP/compiled/TRIPPLITE-PRODUCTS.py | ypsun-umd/labSNMP | 3278b320d0074601e4e8a219e590cd9d1333b78a | [
"BSD-2-Clause"
] | null | null | null | #
# PySNMP MIB module TRIPPLITE-PRODUCTS (http://pysnmp.sf.net)
# ASN.1 source file://./TRIPPLITE-PRODUCTS.MIB
# Produced by pysmi-0.2.2 at Wed Apr 11 14:12:10 2018
# On host Tim platform Linux version 4.15.15-1-ARCH by user syp
# Using Python version 2.7.13 (default, Oct 26 2017, 17:04:19)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, Bits, TimeTicks, Counter64, Unsigned32, enterprises, ModuleIdentity, Gauge32, iso, ObjectIdentity, IpAddress, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "Bits", "TimeTicks", "Counter64", "Unsigned32", "enterprises", "ModuleIdentity", "Gauge32", "iso", "ObjectIdentity", "IpAddress", "Counter32")
DisplayString, TruthValue, RowStatus, TextualConvention, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "RowStatus", "TextualConvention", "TimeStamp")
tripplite, = mibBuilder.importSymbols("TRIPPLITE", "tripplite")
tlpProducts = ModuleIdentity((1, 3, 6, 1, 4, 1, 850, 1))
tlpProducts.setRevisions(('2016-06-22 11:15', '2016-02-02 11:15', '2016-01-25 12:30', '2016-01-20 12:00', '2016-01-08 11:40', '2015-11-25 13:00', '2015-11-10 13:00', '2015-10-16 12:30', '2015-08-19 12:00', '2014-12-04 10:00', '2014-04-14 09:00',))
if mibBuilder.loadTexts: tlpProducts.setLastUpdated('201606221115Z')
if mibBuilder.loadTexts: tlpProducts.setOrganization('Tripp Lite')
tlpHardware = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1))
tlpSoftware = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2))
tlpAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3))
tlpNotify = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 4))
tlpDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 1))
tlpDeviceDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 2))
tlpDeviceTypes = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3))
tlpUps = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1))
tlpPdu = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2))
tlpEnvirosense = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3))
tlpAts = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4))
tlpCooling = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5))
tlpKvm = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 6))
tlpRackTrack = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 7))
tlpSwitch = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 8))
tlpUpsIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1))
tlpUpsDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2))
tlpUpsDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3))
tlpUpsControl = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4))
tlpUpsConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5))
tlpUpsBattery = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1))
tlpUpsInput = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2))
tlpUpsOutput = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3))
tlpUpsBypass = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4))
tlpUpsOutlet = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5))
tlpUpsWatchdog = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 6))
tlpPduIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1))
tlpPduDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2))
tlpPduDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3))
tlpPduControl = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 4))
tlpPduConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 5))
tlpPduInput = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1))
tlpPduOutput = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2))
tlpPduOutlet = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3))
tlpPduCircuit = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4))
tlpPduBreaker = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 5))
tlpPduHeatsink = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 6))
tlpEnvIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 1))
tlpEnvDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3))
tlpEnvConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 5))
tlpAtsIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1))
tlpAtsDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2))
tlpAtsDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3))
tlpAtsControl = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4))
tlpAtsConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5))
tlpAtsInput = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1))
tlpAtsOutput = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2))
tlpAtsOutlet = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3))
tlpAtsCircuit = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4))
tlpAtsBreaker = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 5))
tlpAtsHeatsink = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 6))
tlpCoolingIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5, 1))
tlpCoolingDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5, 2))
tlpCoolingDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5, 3))
tlpCoolingControl = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5, 4))
tlpCoolingConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5, 5))
tlpCoolingInput = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5, 3, 1))
tlpCoolingOutput = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5, 3, 2))
tlpKvmIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 6, 1))
tlpKvmDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 6, 2))
tlpKvmDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 6, 3))
tlpKvmControl = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 6, 4))
tlpKvmConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 6, 5))
tlpRackTrackIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 7, 1))
tlpRackTrackDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 7, 2))
tlpRackTrackDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 7, 3))
tlpRackTrackControl = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 7, 4))
tlpRackTrackConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 7, 5))
tlpSwitchIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 8, 1))
tlpSwitchDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 8, 2))
tlpSwitchDetail = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 8, 3))
tlpSwitchControl = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 8, 4))
tlpSwitchConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 8, 5))
tlpAgentDetails = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 1))
tlpAgentSettings = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 2))
tlpAgentContacts = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 3))
tlpAgentIdent = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 1))
tlpAgentAttributes = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2))
tlpAgentConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 2, 1))
tlpAgentEmailContacts = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 1))
tlpAgentSnmpContacts = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2))
tlpAlarmsWellKnown = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3))
tlpAlarmControl = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 4))
tlpAgentAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 1))
tlpDeviceAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2))
tlpUpsAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3))
tlpPduAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4))
tlpEnvAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5))
tlpAtsAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6))
tlpCoolingAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7))
tlpKvmAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 8))
tlpRackTrackAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 9))
tlpSwitchAlarms = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 10))
tlpNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 4, 1))
tlpDeviceNumDevices = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceNumDevices.setStatus('current')
tlpDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2), )
if mibBuilder.loadTexts: tlpDeviceTable.setStatus('current')
tlpDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpDeviceEntry.setStatus('current')
tlpDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIndex.setStatus('current')
tlpDeviceRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 2), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceRowStatus.setStatus('current')
tlpDeviceType = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 3), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceType.setStatus('current')
tlpDeviceManufacturer = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceManufacturer.setStatus('current')
tlpDeviceModel = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceModel.setStatus('current')
tlpDeviceName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpDeviceName.setStatus('current')
tlpDeviceID = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpDeviceID.setStatus('current')
tlpDeviceLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpDeviceLocation.setStatus('current')
tlpDeviceRegion = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpDeviceRegion.setStatus('current')
tlpDeviceStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7)).clone(namedValues=NamedValues(("none", 0), ("critical", 1), ("warning", 2), ("info", 3), ("status", 4), ("offline", 5), ("custom", 6), ("configuration", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceStatus.setStatus('current')
tlpDeviceIdentTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1), )
if mibBuilder.loadTexts: tlpDeviceIdentTable.setStatus('current')
tlpDeviceIdentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpDeviceIdentEntry.setStatus('current')
tlpDeviceIdentProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIdentProtocol.setStatus('current')
tlpDeviceIdentCommPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5)).clone(namedValues=NamedValues(("unknown", 0), ("serial", 1), ("usb", 2), ("hid", 3), ("simulated", 4), ("unittest", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIdentCommPortType.setStatus('current')
tlpDeviceIdentCommPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIdentCommPortName.setStatus('current')
tlpDeviceIdentFirmwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIdentFirmwareVersion.setStatus('current')
tlpDeviceIdentSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIdentSerialNum.setStatus('current')
tlpDeviceIdentDateInstalled = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpDeviceIdentDateInstalled.setStatus('current')
tlpDeviceIdentHardwareVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIdentHardwareVersion.setStatus('current')
tlpDeviceIdentCurrentUptime = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIdentCurrentUptime.setStatus('current')
tlpDeviceIdentTotalUptime = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 2, 1, 1, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpDeviceIdentTotalUptime.setStatus('current')
tlpUpsIdentNumUps = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsIdentNumUps.setStatus('current')
tlpUpsIdentTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2), )
if mibBuilder.loadTexts: tlpUpsIdentTable.setStatus('current')
tlpUpsIdentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsIdentEntry.setStatus('current')
tlpUpsIdentNumInputs = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsIdentNumInputs.setStatus('current')
tlpUpsIdentNumOutputs = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsIdentNumOutputs.setStatus('current')
tlpUpsIdentNumBypass = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsIdentNumBypass.setStatus('current')
tlpUpsIdentNumPhases = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsIdentNumPhases.setStatus('current')
tlpUpsIdentNumOutlets = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsIdentNumOutlets.setStatus('current')
tlpUpsIdentNumOutletGroups = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsIdentNumOutletGroups.setStatus('current')
tlpUpsIdentNumBatteryPacks = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 2, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsIdentNumBatteryPacks.setStatus('current')
tlpUpsSupportsTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 3), )
if mibBuilder.loadTexts: tlpUpsSupportsTable.setStatus('current')
tlpUpsSupportsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 3, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsSupportsEntry.setStatus('current')
tlpUpsSupportsEnergywise = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 3, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsSupportsEnergywise.setStatus('current')
tlpUpsSupportsRampShed = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 3, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsSupportsRampShed.setStatus('current')
tlpUpsSupportsOutletGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 3, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsSupportsOutletGroup.setStatus('current')
tlpUpsSupportsOutletCurrentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 3, 1, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsSupportsOutletCurrentPower.setStatus('current')
tlpUpsSupportsOutletVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 1, 3, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsSupportsOutletVoltage.setStatus('current')
tlpUpsDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1), )
if mibBuilder.loadTexts: tlpUpsDeviceTable.setStatus('current')
tlpUpsDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsDeviceEntry.setStatus('current')
tlpUpsDeviceMainLoadState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsDeviceMainLoadState.setStatus('current')
tlpUpsDeviceMainLoadControllable = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsDeviceMainLoadControllable.setStatus('current')
tlpUpsDeviceMainLoadCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("idle", 0), ("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsDeviceMainLoadCommand.setStatus('current')
tlpUpsDevicePowerOnDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsDevicePowerOnDelay.setStatus('current')
tlpUpsDeviceTestDate = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsDeviceTestDate.setStatus('current')
tlpUpsDeviceTestResultsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)).clone(namedValues=NamedValues(("noTest", 0), ("doneAndPassed", 1), ("doneAndWarning", 2), ("doneAndError", 3), ("aborted", 4), ("inProgress", 5), ("noTestInitiated", 6), ("badBattery", 7), ("overCurrent", 8), ("batteryFailed", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsDeviceTestResultsStatus.setStatus('current')
tlpUpsDeviceTemperatureC = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1, 7), Integer32()).setUnits('degrees Centigrade').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsDeviceTemperatureC.setStatus('current')
tlpUpsDeviceTemperatureF = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 2, 1, 1, 8), Integer32()).setUnits('degrees Farenheit').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsDeviceTemperatureF.setStatus('current')
tlpUpsBatterySummaryTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 1), )
if mibBuilder.loadTexts: tlpUpsBatterySummaryTable.setStatus('current')
tlpUpsBatterySummaryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsBatterySummaryEntry.setStatus('current')
tlpUpsBatteryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4)).clone(namedValues=NamedValues(("unknown", 1), ("batteryNormal", 2), ("batteryLow", 3), ("batteryDepleted", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryStatus.setStatus('current')
tlpUpsSecondsOnBattery = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 1, 1, 2), Unsigned32()).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsSecondsOnBattery.setStatus('current')
tlpUpsEstimatedMinutesRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 1, 1, 3), Unsigned32()).setUnits('minutes').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsEstimatedMinutesRemaining.setStatus('current')
tlpUpsEstimatedChargeRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsEstimatedChargeRemaining.setStatus('current')
tlpUpsBatteryRunTimeRemaining = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 1, 1, 5), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryRunTimeRemaining.setStatus('current')
tlpUpsBatteryDetailTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 2), )
if mibBuilder.loadTexts: tlpUpsBatteryDetailTable.setStatus('current')
tlpUpsBatteryDetailEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsBatteryDetailEntry.setStatus('current')
tlpUpsBatteryDetailVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 2, 1, 1), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryDetailVoltage.setStatus('current')
tlpUpsBatteryDetailCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 2, 1, 2), Unsigned32()).setUnits('0.1 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryDetailCurrent.setStatus('current')
tlpUpsBatteryDetailCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryDetailCapacity.setStatus('current')
tlpUpsBatteryDetailCharge = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5)).clone(namedValues=NamedValues(("floating", 0), ("charging", 1), ("resting", 2), ("discharging", 3), ("normal", 4), ("standby", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryDetailCharge.setStatus('current')
tlpUpsBatteryDetailChargerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("ok", 0), ("inFaultCondition", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryDetailChargerStatus.setStatus('current')
tlpUpsBatteryPackIdentTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 3), )
if mibBuilder.loadTexts: tlpUpsBatteryPackIdentTable.setStatus('current')
tlpUpsBatteryPackIdentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 3, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpUpsBatteryPackIdentIndex"))
if mibBuilder.loadTexts: tlpUpsBatteryPackIdentEntry.setStatus('current')
tlpUpsBatteryPackIdentIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 3, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackIdentIndex.setStatus('current')
tlpUpsBatteryPackIdentManufacturer = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 3, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackIdentManufacturer.setStatus('current')
tlpUpsBatteryPackIdentModel = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 3, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackIdentModel.setStatus('current')
tlpUpsBatteryPackIdentSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 3, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackIdentSerialNum.setStatus('current')
tlpUpsBatteryPackIdentFirmware = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 3, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackIdentFirmware.setStatus('current')
tlpUpsBatteryPackIdentSKU = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 3, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackIdentSKU.setStatus('current')
tlpUpsBatteryPackConfigTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4), )
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigTable.setStatus('current')
tlpUpsBatteryPackConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpUpsBatteryPackIdentIndex"))
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigEntry.setStatus('current')
tlpUpsBatteryPackConfigChemistry = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("unknown", 0), ("leadAcid", 1), ("nickelCadmium", 2), ("lithiumIon", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigChemistry.setStatus('current')
tlpUpsBatteryPackConfigStyle = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("unknown", 0), ("nonsmart", 1), ("smart", 2), ("bms", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigStyle.setStatus('current')
tlpUpsBatteryPackConfigLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("unknown", 0), ("internal", 1), ("external", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigLocation.setStatus('current')
tlpUpsBatteryPackConfigStrings = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigStrings.setStatus('current')
tlpUpsBatteryPackConfigBatteriesPerString = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigBatteriesPerString.setStatus('current')
tlpUpsBatteryPackConfigCellsPerBattery = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 4, 6)).clone(namedValues=NamedValues(("unknown", 0), ("one", 1), ("two", 2), ("four", 4), ("six", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigCellsPerBattery.setStatus('current')
tlpUpsBatteryPackConfigNumBatteries = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigNumBatteries.setStatus('current')
tlpUpsBatteryPackConfigCapacityUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 8), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("mAHr", 0), ("mWHr", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigCapacityUnits.setStatus('current')
tlpUpsBatteryPackConfigDesignCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigDesignCapacity.setStatus('current')
tlpUpsBatteryPackConfigCellCapacity = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigCellCapacity.setStatus('current')
tlpUpsBatteryPackConfigMinCellVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 11), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigMinCellVoltage.setStatus('current')
tlpUpsBatteryPackConfigMaxCellVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 4, 1, 12), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackConfigMaxCellVoltage.setStatus('current')
tlpUpsBatteryPackDetailTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5), )
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailTable.setStatus('current')
tlpUpsBatteryPackDetailEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpUpsBatteryPackIdentIndex"))
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailEntry.setStatus('current')
tlpUpsBatteryPackDetailCondition = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("unknown", 0), ("good", 1), ("weak", 2), ("bad", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailCondition.setStatus('current')
tlpUpsBatteryPackDetailTemperatureC = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5, 1, 2), Unsigned32()).setUnits('degrees Centigrade').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailTemperatureC.setStatus('current')
tlpUpsBatteryPackDetailTemperatureF = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5, 1, 3), Unsigned32()).setUnits('0.1 degrees Farenheit').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailTemperatureF.setStatus('current')
tlpUpsBatteryPackDetailAge = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5, 1, 4), Unsigned32()).setUnits('0.1 Years').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailAge.setStatus('current')
tlpUpsBatteryPackDetailLastReplaceDate = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailLastReplaceDate.setStatus('current')
tlpUpsBatteryPackDetailNextReplaceDate = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailNextReplaceDate.setStatus('current')
tlpUpsBatteryPackDetailCycleCount = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 1, 5, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBatteryPackDetailCycleCount.setStatus('current')
tlpUpsInputTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1), )
if mibBuilder.loadTexts: tlpUpsInputTable.setStatus('current')
tlpUpsInputEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsInputEntry.setStatus('current')
tlpUpsInputLineBads = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputLineBads.setStatus('current')
tlpUpsInputNominalVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputNominalVoltage.setStatus('current')
tlpUpsInputNominalFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputNominalFrequency.setStatus('current')
tlpUpsInputLowTransferVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 4), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputLowTransferVoltage.setStatus('current')
tlpUpsInputLowTransferVoltageLowerBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 5), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputLowTransferVoltageLowerBound.setStatus('current')
tlpUpsInputLowTransferVoltageUpperBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 6), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputLowTransferVoltageUpperBound.setStatus('current')
tlpUpsInputHighTransferVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 7), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputHighTransferVoltage.setStatus('current')
tlpUpsInputHighTransferVoltageLowerBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 8), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputHighTransferVoltageLowerBound.setStatus('current')
tlpUpsInputHighTransferVoltageUpperBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 1, 1, 9), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputHighTransferVoltageUpperBound.setStatus('current')
tlpUpsInputPhaseTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2), )
if mibBuilder.loadTexts: tlpUpsInputPhaseTable.setStatus('current')
tlpUpsInputPhaseEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpUpsInputPhaseIndex"))
if mibBuilder.loadTexts: tlpUpsInputPhaseEntry.setStatus('current')
tlpUpsInputPhaseIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputPhaseIndex.setStatus('current')
tlpUpsInputPhaseFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2, 1, 2), Unsigned32()).setUnits('0.1 Hertz').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputPhaseFrequency.setStatus('current')
tlpUpsInputPhaseVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2, 1, 3), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputPhaseVoltage.setStatus('current')
tlpUpsInputPhaseVoltageMin = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2, 1, 4), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsInputPhaseVoltageMin.setStatus('current')
tlpUpsInputPhaseVoltageMax = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2, 1, 5), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsInputPhaseVoltageMax.setStatus('current')
tlpUpsInputPhaseCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2, 1, 6), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputPhaseCurrent.setStatus('current')
tlpUpsInputPhasePower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 2, 2, 1, 7), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsInputPhasePower.setStatus('current')
tlpUpsOutputTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 1), )
if mibBuilder.loadTexts: tlpUpsOutputTable.setStatus('current')
tlpUpsOutputEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsOutputEntry.setStatus('current')
tlpUpsOutputSource = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("none", 2), ("normal", 3), ("bypass", 4), ("battery", 5), ("boosting", 6), ("reducing", 7), ("second", 8), ("economy", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputSource.setStatus('current')
tlpUpsOutputNominalVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 1, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputNominalVoltage.setStatus('current')
tlpUpsOutputFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 1, 1, 3), Unsigned32()).setUnits('0.1 Hertz').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputFrequency.setStatus('current')
tlpUpsOutputLineTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 2), )
if mibBuilder.loadTexts: tlpUpsOutputLineTable.setStatus('current')
tlpUpsOutputLineEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpUpsOutputLineIndex"))
if mibBuilder.loadTexts: tlpUpsOutputLineEntry.setStatus('current')
tlpUpsOutputLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputLineIndex.setStatus('current')
tlpUpsOutputLineVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 2, 1, 2), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputLineVoltage.setStatus('current')
tlpUpsOutputLineCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 2, 1, 3), Unsigned32()).setUnits('0.1 Amp').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputLineCurrent.setStatus('current')
tlpUpsOutputLinePower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 2, 1, 4), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputLinePower.setStatus('current')
tlpUpsOutputLinePercentLoad = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputLinePercentLoad.setStatus('current')
tlpUpsOutputLineFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 3, 2, 1, 6), Unsigned32()).setUnits('0.1 Hertz').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutputLineFrequency.setStatus('current')
tlpUpsBypassTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 1), )
if mibBuilder.loadTexts: tlpUpsBypassTable.setStatus('current')
tlpUpsBypassEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsBypassEntry.setStatus('current')
tlpUpsBypassFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 1, 1, 1), Unsigned32()).setUnits('0.1 Hertz').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBypassFrequency.setStatus('current')
tlpUpsBypassLineTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 2), )
if mibBuilder.loadTexts: tlpUpsBypassLineTable.setStatus('current')
tlpUpsBypassLineEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpUpsBypassLineIndex"))
if mibBuilder.loadTexts: tlpUpsBypassLineEntry.setStatus('current')
tlpUpsBypassLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBypassLineIndex.setStatus('current')
tlpUpsBypassLineVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 2, 1, 2), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBypassLineVoltage.setStatus('current')
tlpUpsBypassLineCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 2, 1, 3), Unsigned32()).setUnits('0.1 Amp').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBypassLineCurrent.setStatus('current')
tlpUpsBypassLinePower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 4, 2, 1, 4), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsBypassLinePower.setStatus('current')
tlpUpsOutletTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1), )
if mibBuilder.loadTexts: tlpUpsOutletTable.setStatus('current')
tlpUpsOutletEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpUpsOutletIndex"))
if mibBuilder.loadTexts: tlpUpsOutletEntry.setStatus('current')
tlpUpsOutletIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutletIndex.setStatus('current')
tlpUpsOutletName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletName.setStatus('current')
tlpUpsOutletDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletDescription.setStatus('current')
tlpUpsOutletState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutletState.setStatus('current')
tlpUpsOutletControllable = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutletControllable.setStatus('current')
tlpUpsOutletCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("idle", 0), ("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletCommand.setStatus('current')
tlpUpsOutletVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 7), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutletVoltage.setStatus('current')
tlpUpsOutletCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 8), Unsigned32()).setUnits('0.01 RMS Amp').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutletCurrent.setStatus('current')
tlpUpsOutletPower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 9), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutletPower.setStatus('current')
tlpUpsOutletRampAction = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 10), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("remainOff", 0), ("turnOnAfterDelay", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletRampAction.setStatus('current')
tlpUpsOutletRampDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 11), Integer32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletRampDelay.setStatus('current')
tlpUpsOutletShedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 12), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("remainOn", 0), ("turnOffAfterDelay", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletShedAction.setStatus('current')
tlpUpsOutletShedDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 13), Integer32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletShedDelay.setStatus('current')
tlpUpsOutletGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 1, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletGroup.setStatus('current')
tlpUpsOutletGroupTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 2), )
if mibBuilder.loadTexts: tlpUpsOutletGroupTable.setStatus('current')
tlpUpsOutletGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpUpsOutletGroupIndex"))
if mibBuilder.loadTexts: tlpUpsOutletGroupEntry.setStatus('current')
tlpUpsOutletGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutletGroupIndex.setStatus('current')
tlpUpsOutletGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 2, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletGroupRowStatus.setStatus('current')
tlpUpsOutletGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletGroupName.setStatus('current')
tlpUpsOutletGroupDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletGroupDescription.setStatus('current')
tlpUpsOutletGroupState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 2, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2), ("mixed", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsOutletGroupState.setStatus('current')
tlpUpsOutletGroupCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 5, 2, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("idle", 0), ("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsOutletGroupCommand.setStatus('current')
tlpUpsWatchdogTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 6, 1), )
if mibBuilder.loadTexts: tlpUpsWatchdogTable.setStatus('current')
tlpUpsWatchdogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 6, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsWatchdogEntry.setStatus('current')
tlpUpsWatchdogSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 6, 1, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpUpsWatchdogSupported.setStatus('current')
tlpUpsWatchdogSecsBeforeReboot = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 3, 6, 1, 1, 2), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsWatchdogSecsBeforeReboot.setStatus('current')
tlpUpsControlTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1), )
if mibBuilder.loadTexts: tlpUpsControlTable.setStatus('current')
tlpUpsControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsControlEntry.setStatus('current')
tlpUpsControlSelfTest = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsControlSelfTest.setStatus('current')
tlpUpsControlRamp = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1, 1, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsControlRamp.setStatus('current')
tlpUpsControlShed = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1, 1, 3), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsControlShed.setStatus('current')
tlpUpsControlUpsOn = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsControlUpsOn.setStatus('current')
tlpUpsControlUpsOff = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsControlUpsOff.setStatus('current')
tlpUpsControlUpsReboot = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsControlUpsReboot.setStatus('current')
tlpUpsControlBypass = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsControlBypass.setStatus('current')
tlpUpsConfigTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1), )
if mibBuilder.loadTexts: tlpUpsConfigTable.setStatus('current')
tlpUpsConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsConfigEntry.setStatus('current')
tlpUpsConfigInputVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 1), Unsigned32()).setUnits('Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigInputVoltage.setStatus('current')
tlpUpsConfigInputFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 2), Unsigned32()).setUnits('0.1 Hertz').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigInputFrequency.setStatus('current')
tlpUpsConfigOutputVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 3), Unsigned32()).setUnits('Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigOutputVoltage.setStatus('current')
tlpUpsConfigOutputFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 4), Unsigned32()).setUnits('0.1 Hertz').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigOutputFrequency.setStatus('current')
tlpUpsConfigAudibleStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3)).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("muted", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAudibleStatus.setStatus('current')
tlpUpsConfigAutoBatteryTest = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4)).clone(namedValues=NamedValues(("disabled", 0), ("biweekly", 1), ("monthly", 2), ("quarterly", 3), ("semiannually", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoBatteryTest.setStatus('current')
tlpUpsConfigAutoRestartAfterShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 7), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoRestartAfterShutdown.setStatus('current')
tlpUpsConfigAutoRampOnTransition = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 8), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoRampOnTransition.setStatus('current')
tlpUpsConfigAutoShedOnTransition = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 9), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoShedOnTransition.setStatus('current')
tlpUpsConfigBypassLowerLimitPercent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-20, -5))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigBypassLowerLimitPercent.setStatus('current')
tlpUpsConfigBypassUpperLimitPercent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 20))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigBypassUpperLimitPercent.setStatus('current')
tlpUpsConfigBypassLowerLimitVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 12), Unsigned32()).setUnits('Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigBypassLowerLimitVoltage.setStatus('current')
tlpUpsConfigBypassUpperLimitVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 13), Unsigned32()).setUnits('Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigBypassUpperLimitVoltage.setStatus('current')
tlpUpsConfigColdStart = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 14), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigColdStart.setStatus('current')
tlpUpsConfigEconomicMode = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 15), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5)).clone(namedValues=NamedValues(("online", 0), ("economy", 1), ("constant50Hz", 2), ("constant60Hz", 3), ("constantAuto", 4), ("autoAdaptive", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigEconomicMode.setStatus('current')
tlpUpsConfigFaultAction = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 16), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("bypass", 0), ("standby", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigFaultAction.setStatus('current')
tlpUpsConfigOffMode = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 17), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("standby", 0), ("bypass", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigOffMode.setStatus('current')
tlpUpsConfigLineSensitivity = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 1, 1, 18), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("normal", 0), ("reduced", 1), ("fullyReduced", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigLineSensitivity.setStatus('current')
tlpUpsConfigAutoRestartTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 2), )
if mibBuilder.loadTexts: tlpUpsConfigAutoRestartTable.setStatus('current')
tlpUpsConfigAutoRestartEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsConfigAutoRestartEntry.setStatus('current')
tlpUpsConfigAutoRestartInverterShutdown = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 2, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoRestartInverterShutdown.setStatus('current')
tlpUpsConfigAutoRestartDelayedWakeup = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoRestartDelayedWakeup.setStatus('current')
tlpUpsConfigAutoRestartLowVoltageCutoff = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 2, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoRestartLowVoltageCutoff.setStatus('current')
tlpUpsConfigAutoRestartOverLoad = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 2, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoRestartOverLoad.setStatus('current')
tlpUpsConfigAutoRestartOverTemperature = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 2, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigAutoRestartOverTemperature.setStatus('current')
tlpUpsConfigThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 3), )
if mibBuilder.loadTexts: tlpUpsConfigThresholdTable.setStatus('current')
tlpUpsConfigThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 3, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpUpsConfigThresholdEntry.setStatus('current')
tlpUpsConfigBatteryAgeThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 3, 1, 1), Unsigned32()).setUnits('months').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigBatteryAgeThreshold.setStatus('current')
tlpUpsConfigLowBatteryThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 95))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigLowBatteryThreshold.setStatus('current')
tlpUpsConfigLowBatteryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 3, 1, 3), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigLowBatteryTime.setStatus('current')
tlpUpsConfigOverLoadThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 1, 5, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 105))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpUpsConfigOverLoadThreshold.setStatus('current')
tlpPduIdentNumPdu = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumPdu.setStatus('current')
tlpPduIdentTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2), )
if mibBuilder.loadTexts: tlpPduIdentTable.setStatus('current')
tlpPduIdentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpPduIdentEntry.setStatus('current')
tlpPduIdentNumInputs = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumInputs.setStatus('current')
tlpPduIdentNumOutputs = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumOutputs.setStatus('current')
tlpPduIdentNumPhases = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumPhases.setStatus('current')
tlpPduIdentNumOutlets = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumOutlets.setStatus('current')
tlpPduIdentNumOutletGroups = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumOutletGroups.setStatus('current')
tlpPduIdentNumCircuits = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumCircuits.setStatus('current')
tlpPduIdentNumBreakers = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumBreakers.setStatus('current')
tlpPduIdentNumHeatsinks = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 2, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduIdentNumHeatsinks.setStatus('current')
tlpPduSupportsTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 3), )
if mibBuilder.loadTexts: tlpPduSupportsTable.setStatus('current')
tlpPduSupportsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 3, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpPduSupportsEntry.setStatus('current')
tlpPduSupportsEnergywise = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 3, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduSupportsEnergywise.setStatus('current')
tlpPduSupportsRampShed = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 3, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduSupportsRampShed.setStatus('current')
tlpPduSupportsOutletGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 3, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduSupportsOutletGroup.setStatus('current')
tlpPduSupportsOutletCurrentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 3, 1, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduSupportsOutletCurrentPower.setStatus('current')
tlpPduSupportsOutletVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 3, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduSupportsOutletVoltage.setStatus('current')
tlpPduDisplayTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 4), )
if mibBuilder.loadTexts: tlpPduDisplayTable.setStatus('current')
tlpPduDisplayEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 4, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpPduDisplayEntry.setStatus('current')
tlpPduDisplayScheme = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("schemeReverse", 0), ("schemeNormal", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduDisplayScheme.setStatus('current')
tlpPduDisplayOrientation = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("displayNormal", 0), ("displayReverse", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduDisplayOrientation.setStatus('current')
tlpPduDisplayAutoScroll = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("scrollDisabled", 0), ("scrollEnabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduDisplayAutoScroll.setStatus('current')
tlpPduDisplayIntensity = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4)).clone(namedValues=NamedValues(("intensity25", 1), ("intensity50", 2), ("intensity75", 3), ("intensity100", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduDisplayIntensity.setStatus('current')
tlpPduDisplayUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("normal", 0), ("metric", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduDisplayUnits.setStatus('current')
tlpPduDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1), )
if mibBuilder.loadTexts: tlpPduDeviceTable.setStatus('current')
tlpPduDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpPduDeviceEntry.setStatus('current')
tlpPduDeviceMainLoadState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDeviceMainLoadState.setStatus('current')
tlpPduDeviceMainLoadControllable = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDeviceMainLoadControllable.setStatus('current')
tlpPduDeviceMainLoadCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("idle", 0), ("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduDeviceMainLoadCommand.setStatus('current')
tlpPduDevicePowerOnDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduDevicePowerOnDelay.setStatus('current')
tlpPduDeviceTotalInputPowerRating = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 5), Integer32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDeviceTotalInputPowerRating.setStatus('current')
tlpPduDeviceTemperatureC = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 6), Integer32()).setUnits('degrees Centigrade').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDeviceTemperatureC.setStatus('current')
tlpPduDeviceTemperatureF = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 7), Integer32()).setUnits('degrees Farenheit').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDeviceTemperatureF.setStatus('current')
tlpPduDevicePhaseImbalance = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDevicePhaseImbalance.setStatus('current')
tlpPduDeviceOutputPowerTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 9), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDeviceOutputPowerTotal.setStatus('current')
tlpPduDeviceAggregatePowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 10), Unsigned32()).setUnits('0.1 Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDeviceAggregatePowerFactor.setStatus('current')
tlpPduDeviceOutputCurrentPrecision = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("none", 0), ("tenths", 1), ("hundredths", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduDeviceOutputCurrentPrecision.setStatus('current')
tlpPduInputTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1), )
if mibBuilder.loadTexts: tlpPduInputTable.setStatus('current')
tlpPduInputEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpPduInputEntry.setStatus('current')
tlpPduInputNominalVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputNominalVoltage.setStatus('current')
tlpPduInputNominalVoltagePhaseToPhase = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 2), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputNominalVoltagePhaseToPhase.setStatus('current')
tlpPduInputNominalVoltagePhaseToNeutral = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 3), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputNominalVoltagePhaseToNeutral.setStatus('current')
tlpPduInputLowTransferVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 4), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputLowTransferVoltage.setStatus('current')
tlpPduInputLowTransferVoltageLowerBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 5), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputLowTransferVoltageLowerBound.setStatus('current')
tlpPduInputLowTransferVoltageUpperBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 6), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputLowTransferVoltageUpperBound.setStatus('current')
tlpPduInputHighTransferVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 7), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputHighTransferVoltage.setStatus('current')
tlpPduInputHighTransferVoltageLowerBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 8), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputHighTransferVoltageLowerBound.setStatus('current')
tlpPduInputHighTransferVoltageUpperBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 9), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputHighTransferVoltageUpperBound.setStatus('current')
tlpPduInputCurrentLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 1, 1, 10), Unsigned32()).setUnits('Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputCurrentLimit.setStatus('current')
tlpPduInputPhaseTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2), )
if mibBuilder.loadTexts: tlpPduInputPhaseTable.setStatus('current')
tlpPduInputPhaseEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpPduInputPhaseIndex"))
if mibBuilder.loadTexts: tlpPduInputPhaseEntry.setStatus('current')
tlpPduInputPhaseIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputPhaseIndex.setStatus('current')
tlpPduInputPhasePhaseType = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("phaseToNeutral", 0), ("phaseToPhase", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputPhasePhaseType.setStatus('current')
tlpPduInputPhaseFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2, 1, 3), Unsigned32()).setUnits('0.1 Hertz').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputPhaseFrequency.setStatus('current')
tlpPduInputPhaseVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2, 1, 4), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputPhaseVoltage.setStatus('current')
tlpPduInputPhaseVoltageMin = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2, 1, 5), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduInputPhaseVoltageMin.setStatus('current')
tlpPduInputPhaseVoltageMax = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2, 1, 6), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduInputPhaseVoltageMax.setStatus('current')
tlpPduInputPhaseCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 1, 2, 1, 7), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduInputPhaseCurrent.setStatus('current')
tlpPduOutputTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1), )
if mibBuilder.loadTexts: tlpPduOutputTable.setStatus('current')
tlpPduOutputEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpPduOutputIndex"))
if mibBuilder.loadTexts: tlpPduOutputEntry.setStatus('current')
tlpPduOutputIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputIndex.setStatus('current')
tlpPduOutputPhase = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3)).clone(namedValues=NamedValues(("phase1", 1), ("phase2", 2), ("phase3", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputPhase.setStatus('current')
tlpPduOutputPhaseType = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("phaseToNeutral", 0), ("phaseToPhase", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputPhaseType.setStatus('current')
tlpPduOutputVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 4), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputVoltage.setStatus('current')
tlpPduOutputCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 5), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputCurrent.setStatus('current')
tlpPduOutputCurrentMin = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 6), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputCurrentMin.setStatus('current')
tlpPduOutputCurrentMax = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 7), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputCurrentMax.setStatus('current')
tlpPduOutputActivePower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 8), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputActivePower.setStatus('current')
tlpPduOutputPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 9), Unsigned32()).setUnits('0.01 percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputPowerFactor.setStatus('current')
tlpPduOutputSource = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("none", 0), ("normal", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutputSource.setStatus('current')
tlpPduOutletTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1), )
if mibBuilder.loadTexts: tlpPduOutletTable.setStatus('current')
tlpPduOutletEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpPduOutletIndex"))
if mibBuilder.loadTexts: tlpPduOutletEntry.setStatus('current')
tlpPduOutletIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletIndex.setStatus('current')
tlpPduOutletName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletName.setStatus('current')
tlpPduOutletDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletDescription.setStatus('current')
tlpPduOutletState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletState.setStatus('current')
tlpPduOutletControllable = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletControllable.setStatus('current')
tlpPduOutletCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("idle", 0), ("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletCommand.setStatus('current')
tlpPduOutletVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 7), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletVoltage.setStatus('current')
tlpPduOutletCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 8), Unsigned32()).setUnits('0.01 RMS Amp').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletCurrent.setStatus('current')
tlpPduOutletPower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 9), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletPower.setStatus('current')
tlpPduOutletRampAction = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("remainOff", 0), ("turnOnAfterDelay", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletRampAction.setStatus('current')
tlpPduOutletRampDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 11), Integer32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletRampDelay.setStatus('current')
tlpPduOutletShedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("remainOn", 0), ("turnOffAfterDelay", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletShedAction.setStatus('current')
tlpPduOutletShedDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 13), Integer32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletShedDelay.setStatus('current')
tlpPduOutletGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletGroup.setStatus('current')
tlpPduOutletBank = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletBank.setStatus('current')
tlpPduOutletCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletCircuit.setStatus('current')
tlpPduOutletPhase = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 1, 1, 17), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)).clone(namedValues=NamedValues(("unknown", 0), ("phase1", 1), ("phase2", 2), ("phase3", 3), ("phase1-2", 4), ("phase2-3", 5), ("phase3-1", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletPhase.setStatus('current')
tlpPduOutletGroupTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 2), )
if mibBuilder.loadTexts: tlpPduOutletGroupTable.setStatus('current')
tlpPduOutletGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpPduOutletGroupIndex"))
if mibBuilder.loadTexts: tlpPduOutletGroupEntry.setStatus('current')
tlpPduOutletGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletGroupIndex.setStatus('current')
tlpPduOutletGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 2, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletGroupRowStatus.setStatus('current')
tlpPduOutletGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletGroupName.setStatus('current')
tlpPduOutletGroupDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletGroupDescription.setStatus('current')
tlpPduOutletGroupState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2), ("mixed", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduOutletGroupState.setStatus('current')
tlpPduOutletGroupCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 3, 2, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3)).clone(namedValues=NamedValues(("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduOutletGroupCommand.setStatus('current')
tlpPduCircuitTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1), )
if mibBuilder.loadTexts: tlpPduCircuitTable.setStatus('current')
tlpPduCircuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpPduCircuitIndex"))
if mibBuilder.loadTexts: tlpPduCircuitEntry.setStatus('current')
tlpPduCircuitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitIndex.setStatus('current')
tlpPduCircuitPhase = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)).clone(namedValues=NamedValues(("unknown", 0), ("phase1", 1), ("phase2", 2), ("phase3", 3), ("phase1-2", 4), ("phase2-3", 5), ("phase3-1", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitPhase.setStatus('current')
tlpPduCircuitInputVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 3), Integer32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitInputVoltage.setStatus('current')
tlpPduCircuitTotalCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 4), Integer32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitTotalCurrent.setStatus('current')
tlpPduCircuitCurrentLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 5), Integer32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitCurrentLimit.setStatus('current')
tlpPduCircuitCurrentMin = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 6), Integer32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitCurrentMin.setStatus('current')
tlpPduCircuitCurrentMax = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 7), Integer32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitCurrentMax.setStatus('current')
tlpPduCircuitTotalPower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 8), Integer32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitTotalPower.setStatus('current')
tlpPduCircuitPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitPowerFactor.setStatus('current')
tlpPduCircuitUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 4, 1, 1, 10), Unsigned32()).setUnits('0.01 %').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduCircuitUtilization.setStatus('current')
tlpPduBreakerTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 5, 1), )
if mibBuilder.loadTexts: tlpPduBreakerTable.setStatus('current')
tlpPduBreakerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 5, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpPduBreakerIndex"))
if mibBuilder.loadTexts: tlpPduBreakerEntry.setStatus('current')
tlpPduBreakerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 5, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduBreakerIndex.setStatus('current')
tlpPduBreakerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("open", 0), ("closed", 1), ("notInstalled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduBreakerStatus.setStatus('current')
tlpPduHeatsinkTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 6, 1), )
if mibBuilder.loadTexts: tlpPduHeatsinkTable.setStatus('current')
tlpPduHeatsinkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 6, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpPduHeatsinkIndex"))
if mibBuilder.loadTexts: tlpPduHeatsinkEntry.setStatus('current')
tlpPduHeatsinkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 6, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduHeatsinkIndex.setStatus('current')
tlpPduHeatsinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("notAvailable", 0), ("available", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduHeatsinkStatus.setStatus('current')
tlpPduHeatsinkTemperatureC = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 6, 1, 1, 3), Integer32()).setUnits('0.1 degrees Centigrade').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduHeatsinkTemperatureC.setStatus('current')
tlpPduHeatsinkTemperatureF = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 3, 6, 1, 1, 4), Integer32()).setUnits('0.1 degrees Farenheit').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpPduHeatsinkTemperatureF.setStatus('current')
tlpPduControlTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 4, 1), )
if mibBuilder.loadTexts: tlpPduControlTable.setStatus('current')
tlpPduControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 4, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpPduControlEntry.setStatus('current')
tlpPduControlRamp = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 4, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduControlRamp.setStatus('current')
tlpPduControlShed = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 4, 1, 1, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduControlShed.setStatus('current')
tlpPduControlPduOn = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 4, 1, 1, 3), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduControlPduOn.setStatus('current')
tlpPduControlPduOff = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 4, 1, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduControlPduOff.setStatus('current')
tlpPduControlPduReboot = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 4, 1, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduControlPduReboot.setStatus('current')
tlpPduConfigTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 5, 1), )
if mibBuilder.loadTexts: tlpPduConfigTable.setStatus('current')
tlpPduConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 5, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpPduConfigEntry.setStatus('current')
tlpPduConfigInputVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 2, 5, 1, 1, 1), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpPduConfigInputVoltage.setStatus('current')
tlpEnvIdentNumEnvirosense = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvIdentNumEnvirosense.setStatus('current')
tlpEnvIdentTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 1, 2), )
if mibBuilder.loadTexts: tlpEnvIdentTable.setStatus('current')
tlpEnvIdentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpEnvIdentEntry.setStatus('current')
tlpEnvIdentTempSupported = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 1, 2, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvIdentTempSupported.setStatus('current')
tlpEnvIdentHumiditySupported = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 1, 2, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvIdentHumiditySupported.setStatus('current')
tlpEnvNumInputContacts = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvNumInputContacts.setStatus('current')
tlpEnvNumOutputContacts = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 1, 2, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvNumOutputContacts.setStatus('current')
tlpEnvTemperatureTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 1), )
if mibBuilder.loadTexts: tlpEnvTemperatureTable.setStatus('current')
tlpEnvTemperatureEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpEnvTemperatureEntry.setStatus('current')
tlpEnvTemperatureC = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 1, 1, 1), Integer32()).setUnits('degrees Centigrade').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvTemperatureC.setStatus('current')
tlpEnvTemperatureF = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 1, 1, 2), Integer32()).setUnits('0.1 degrees Farenheit').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvTemperatureF.setStatus('current')
tlpEnvTemperatureInAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 1, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvTemperatureInAlarm.setStatus('current')
tlpEnvHumidityTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 2), )
if mibBuilder.loadTexts: tlpEnvHumidityTable.setStatus('current')
tlpEnvHumidityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpEnvHumidityEntry.setStatus('current')
tlpEnvHumidityHumidity = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvHumidityHumidity.setStatus('current')
tlpEnvHumidityInAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 2, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvHumidityInAlarm.setStatus('current')
tlpEnvInputContactTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 3), )
if mibBuilder.loadTexts: tlpEnvInputContactTable.setStatus('current')
tlpEnvInputContactEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 3, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpEnvInputContactIndex"))
if mibBuilder.loadTexts: tlpEnvInputContactEntry.setStatus('current')
tlpEnvInputContactIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 3, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvInputContactIndex.setStatus('current')
tlpEnvInputContactName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 3, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvInputContactName.setStatus('current')
tlpEnvInputContactNormalState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("open", 0), ("closed", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvInputContactNormalState.setStatus('current')
tlpEnvInputContactCurrentState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("open", 0), ("closed", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvInputContactCurrentState.setStatus('current')
tlpEnvInputContactInAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 3, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvInputContactInAlarm.setStatus('current')
tlpEnvOutputContactTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 4), )
if mibBuilder.loadTexts: tlpEnvOutputContactTable.setStatus('current')
tlpEnvOutputContactEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 4, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpEnvOutputContactIndex"))
if mibBuilder.loadTexts: tlpEnvOutputContactEntry.setStatus('current')
tlpEnvOutputContactIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 4, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvOutputContactIndex.setStatus('current')
tlpEnvOutputContactName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 4, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvOutputContactName.setStatus('current')
tlpEnvOutputContactNormalState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 4, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("open", 0), ("closed", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvOutputContactNormalState.setStatus('current')
tlpEnvOutputContactCurrentState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 4, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("open", 0), ("closed", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvOutputContactCurrentState.setStatus('current')
tlpEnvOutputContactInAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 3, 4, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpEnvOutputContactInAlarm.setStatus('current')
tlpEnvConfigTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 5, 1), )
if mibBuilder.loadTexts: tlpEnvConfigTable.setStatus('current')
tlpEnvConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 5, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpEnvConfigEntry.setStatus('current')
tlpEnvTemperatureLowLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 5, 1, 1, 1), Integer32()).setUnits('degrees Farenheit').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvTemperatureLowLimit.setStatus('current')
tlpEnvTemperatureHighLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 5, 1, 1, 2), Integer32()).setUnits('degrees Farenheit').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvTemperatureHighLimit.setStatus('current')
tlpEnvHumidityLowLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvHumidityLowLimit.setStatus('current')
tlpEnvHumidityHighLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 3, 5, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpEnvHumidityHighLimit.setStatus('current')
tlpAtsIdentNumAts = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumAts.setStatus('current')
tlpAtsIdentTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2), )
if mibBuilder.loadTexts: tlpAtsIdentTable.setStatus('current')
tlpAtsIdentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsIdentEntry.setStatus('current')
tlpAtsIdentNumInputs = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumInputs.setStatus('current')
tlpAtsIdentNumOutputs = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumOutputs.setStatus('current')
tlpAtsIdentNumPhases = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumPhases.setStatus('current')
tlpAtsIdentNumOutlets = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumOutlets.setStatus('current')
tlpAtsIdentNumOutletGroups = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumOutletGroups.setStatus('current')
tlpAtsIdentNumCircuits = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumCircuits.setStatus('current')
tlpAtsIdentNumBreakers = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumBreakers.setStatus('current')
tlpAtsIdentNumHeatsinks = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 2, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsIdentNumHeatsinks.setStatus('current')
tlpAtsSupportsTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 3), )
if mibBuilder.loadTexts: tlpAtsSupportsTable.setStatus('current')
tlpAtsSupportsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 3, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsSupportsEntry.setStatus('current')
tlpAtsSupportsEnergywise = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 3, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsSupportsEnergywise.setStatus('current')
tlpAtsSupportsRampShed = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 3, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsSupportsRampShed.setStatus('current')
tlpAtsSupportsOutletGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 3, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsSupportsOutletGroup.setStatus('current')
tlpAtsSupportsOutletCurrentPower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 3, 1, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsSupportsOutletCurrentPower.setStatus('current')
tlpAtsSupportsOutletVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 3, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsSupportsOutletVoltage.setStatus('current')
tlpAtsDisplayTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 4), )
if mibBuilder.loadTexts: tlpAtsDisplayTable.setStatus('current')
tlpAtsDisplayEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 4, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsDisplayEntry.setStatus('current')
tlpAtsDisplayScheme = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("schemeReverse", 0), ("schemeNormal", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsDisplayScheme.setStatus('current')
tlpAtsDisplayOrientation = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("displayNormal", 0), ("displayReverse", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsDisplayOrientation.setStatus('current')
tlpAtsDisplayAutoScroll = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("scrollDisabled", 0), ("scrollEnabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsDisplayAutoScroll.setStatus('current')
tlpAtsDisplayIntensity = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4)).clone(namedValues=NamedValues(("intensity25", 1), ("intensity50", 2), ("intensity75", 3), ("intensity100", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsDisplayIntensity.setStatus('current')
tlpAtsDisplayUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("normal", 0), ("metric", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsDisplayUnits.setStatus('current')
tlpAtsDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1), )
if mibBuilder.loadTexts: tlpAtsDeviceTable.setStatus('current')
tlpAtsDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsDeviceEntry.setStatus('current')
tlpAtsDeviceMainLoadState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceMainLoadState.setStatus('current')
tlpAtsDeviceMainLoadControllable = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceMainLoadControllable.setStatus('current')
tlpAtsDeviceMainLoadCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("idle", 0), ("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsDeviceMainLoadCommand.setStatus('current')
tlpAtsDevicePowerOnDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsDevicePowerOnDelay.setStatus('current')
tlpAtsDeviceTotalInputPowerRating = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 5), Integer32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceTotalInputPowerRating.setStatus('current')
tlpAtsDeviceTemperatureC = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 6), Integer32()).setUnits('degrees Centigrade').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceTemperatureC.setStatus('current')
tlpAtsDeviceTemperatureF = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 7), Integer32()).setUnits('degrees Farenheit').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceTemperatureF.setStatus('current')
tlpAtsDevicePhaseImbalance = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDevicePhaseImbalance.setStatus('current')
tlpAtsDeviceOutputPowerTotal = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 9), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceOutputPowerTotal.setStatus('current')
tlpAtsDeviceAggregatePowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 10), Unsigned32()).setUnits('0.1 Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceAggregatePowerFactor.setStatus('current')
tlpAtsDeviceOutputCurrentPrecision = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("none", 0), ("tenths", 1), ("hundredths", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceOutputCurrentPrecision.setStatus('current')
tlpAtsDeviceGeneralFault = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 2, 1, 1, 12), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsDeviceGeneralFault.setStatus('current')
tlpAtsInputTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1), )
if mibBuilder.loadTexts: tlpAtsInputTable.setStatus('current')
tlpAtsInputEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsInputEntry.setStatus('current')
tlpAtsInputNominalVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputNominalVoltage.setStatus('current')
tlpAtsInputNominalVoltagePhaseToPhase = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 2), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputNominalVoltagePhaseToPhase.setStatus('current')
tlpAtsInputNominalVoltagePhaseToNeutral = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 3), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputNominalVoltagePhaseToNeutral.setStatus('current')
tlpAtsInputBadTransferVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 4), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputBadTransferVoltage.setStatus('current')
tlpAtsInputBadTransferVoltageLowerBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 5), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputBadTransferVoltageLowerBound.setStatus('current')
tlpAtsInputBadTransferVoltageUpperBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 6), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputBadTransferVoltageUpperBound.setStatus('current')
tlpAtsInputHighTransferVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 7), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputHighTransferVoltage.setStatus('current')
tlpAtsInputHighTransferVoltageLowerBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 8), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputHighTransferVoltageLowerBound.setStatus('current')
tlpAtsInputHighTransferVoltageUpperBound = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 9), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputHighTransferVoltageUpperBound.setStatus('current')
tlpAtsInputFairVoltageThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 10), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputFairVoltageThreshold.setStatus('current')
tlpAtsInputBadVoltageThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 11), Unsigned32()).setUnits('Volts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputBadVoltageThreshold.setStatus('current')
tlpAtsInputSourceAvailability = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("none", 0), ("inputSourceA", 1), ("inputSourceB", 2), ("inputSourceAB", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputSourceAvailability.setStatus('current')
tlpAtsInputSourceInUse = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 13), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("inputSourceA", 0), ("inputSourceB", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputSourceInUse.setStatus('current')
tlpAtsInputSourceTransitionCount = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 14), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputSourceTransitionCount.setStatus('current')
tlpAtsInputCurrentLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 1, 1, 15), Unsigned32()).setUnits('Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputCurrentLimit.setStatus('current')
tlpAtsInputPhaseTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2), )
if mibBuilder.loadTexts: tlpAtsInputPhaseTable.setStatus('current')
tlpAtsInputPhaseEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAtsInputLineIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAtsInputPhaseIndex"))
if mibBuilder.loadTexts: tlpAtsInputPhaseEntry.setStatus('current')
tlpAtsInputLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputLineIndex.setStatus('current')
tlpAtsInputPhaseIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputPhaseIndex.setStatus('current')
tlpAtsInputPhaseType = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("phaseToNeutral", 0), ("phaseToPhase", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputPhaseType.setStatus('current')
tlpAtsInputPhaseFrequency = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1, 4), Unsigned32()).setUnits('0.1 Hertz').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputPhaseFrequency.setStatus('current')
tlpAtsInputPhaseVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1, 5), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputPhaseVoltage.setStatus('current')
tlpAtsInputPhaseVoltageMin = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1, 6), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsInputPhaseVoltageMin.setStatus('current')
tlpAtsInputPhaseVoltageMax = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1, 7), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsInputPhaseVoltageMax.setStatus('current')
tlpAtsInputPhaseCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 1, 2, 1, 8), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsInputPhaseCurrent.setStatus('current')
tlpAtsOutputTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1), )
if mibBuilder.loadTexts: tlpAtsOutputTable.setStatus('current')
tlpAtsOutputEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAtsOutputIndex"))
if mibBuilder.loadTexts: tlpAtsOutputEntry.setStatus('current')
tlpAtsOutputIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputIndex.setStatus('current')
tlpAtsOutputPhase = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3)).clone(namedValues=NamedValues(("phase1", 1), ("phase2", 2), ("phase3", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputPhase.setStatus('current')
tlpAtsOutputPhaseType = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("phaseToNeutral", 0), ("phaseToPhase", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputPhaseType.setStatus('current')
tlpAtsOutputVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 4), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputVoltage.setStatus('current')
tlpAtsOutputCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 5), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputCurrent.setStatus('current')
tlpAtsOutputCurrentMin = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 6), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputCurrentMin.setStatus('current')
tlpAtsOutputCurrentMax = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 7), Unsigned32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputCurrentMax.setStatus('current')
tlpAtsOutputActivePower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 8), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputActivePower.setStatus('current')
tlpAtsOutputPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 9), Unsigned32()).setUnits('0.01 percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputPowerFactor.setStatus('current')
tlpAtsOutputSource = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("none", 0), ("normal", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutputSource.setStatus('current')
tlpAtsOutletTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1), )
if mibBuilder.loadTexts: tlpAtsOutletTable.setStatus('current')
tlpAtsOutletEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAtsOutletIndex"))
if mibBuilder.loadTexts: tlpAtsOutletEntry.setStatus('current')
tlpAtsOutletIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletIndex.setStatus('current')
tlpAtsOutletName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletName.setStatus('current')
tlpAtsOutletDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletDescription.setStatus('current')
tlpAtsOutletState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletState.setStatus('current')
tlpAtsOutletControllable = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletControllable.setStatus('current')
tlpAtsOutletCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("idle", 0), ("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletCommand.setStatus('current')
tlpAtsOutletVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 7), Unsigned32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletVoltage.setStatus('current')
tlpAtsOutletCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 8), Unsigned32()).setUnits('0.01 RMS Amp').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletCurrent.setStatus('current')
tlpAtsOutletPower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 9), Unsigned32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletPower.setStatus('current')
tlpAtsOutletRampAction = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("remainOff", 0), ("turnOnAfterDelay", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletRampAction.setStatus('current')
tlpAtsOutletRampDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 11), Integer32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletRampDelay.setStatus('current')
tlpAtsOutletShedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("remainOn", 0), ("turnOffAfterDelay", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletShedAction.setStatus('current')
tlpAtsOutletShedDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 13), Integer32()).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletShedDelay.setStatus('current')
tlpAtsOutletGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletGroup.setStatus('current')
tlpAtsOutletBank = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletBank.setStatus('current')
tlpAtsOutletCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletCircuit.setStatus('current')
tlpAtsOutletPhase = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 1, 1, 17), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)).clone(namedValues=NamedValues(("unknown", 0), ("phase1", 1), ("phase2", 2), ("phase3", 3), ("phase1-2", 4), ("phase2-3", 5), ("phase3-1", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletPhase.setStatus('current')
tlpAtsOutletGroupTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 2), )
if mibBuilder.loadTexts: tlpAtsOutletGroupTable.setStatus('current')
tlpAtsOutletGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAtsOutletGroupIndex"))
if mibBuilder.loadTexts: tlpAtsOutletGroupEntry.setStatus('current')
tlpAtsOutletGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletGroupIndex.setStatus('current')
tlpAtsOutletGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 2, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletGroupRowStatus.setStatus('current')
tlpAtsOutletGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletGroupName.setStatus('current')
tlpAtsOutletGroupDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletGroupDescription.setStatus('current')
tlpAtsOutletGroupState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3)).clone(namedValues=NamedValues(("unknown", 0), ("off", 1), ("on", 2), ("mixed", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsOutletGroupState.setStatus('current')
tlpAtsOutletGroupCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 3, 2, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3)).clone(namedValues=NamedValues(("turnOff", 1), ("turnOn", 2), ("cycle", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsOutletGroupCommand.setStatus('current')
tlpAtsCircuitTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1), )
if mibBuilder.loadTexts: tlpAtsCircuitTable.setStatus('current')
tlpAtsCircuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAtsCircuitIndex"))
if mibBuilder.loadTexts: tlpAtsCircuitEntry.setStatus('current')
tlpAtsCircuitIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitIndex.setStatus('current')
tlpAtsCircuitPhase = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)).clone(namedValues=NamedValues(("unknown", 0), ("phase1", 1), ("phase2", 2), ("phase3", 3), ("phase1-2", 4), ("phase2-3", 5), ("phase3-1", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitPhase.setStatus('current')
tlpAtsCircuitInputVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 3), Integer32()).setUnits('0.1 Volt DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitInputVoltage.setStatus('current')
tlpAtsCircuitTotalCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 4), Integer32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitTotalCurrent.setStatus('current')
tlpAtsCircuitCurrentLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 5), Integer32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitCurrentLimit.setStatus('current')
tlpAtsCircuitCurrentMin = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 6), Integer32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitCurrentMin.setStatus('current')
tlpAtsCircuitCurrentMax = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 7), Integer32()).setUnits('0.01 Amp DC').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitCurrentMax.setStatus('current')
tlpAtsCircuitTotalPower = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 8), Integer32()).setUnits('Watts').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitTotalPower.setStatus('current')
tlpAtsCircuitPowerFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setUnits('percent').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitPowerFactor.setStatus('current')
tlpAtsCircuitUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 4, 1, 1, 10), Unsigned32()).setUnits('0.01 %').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsCircuitUtilization.setStatus('current')
tlpAtsBreakerTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 5, 1), )
if mibBuilder.loadTexts: tlpAtsBreakerTable.setStatus('current')
tlpAtsBreakerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 5, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAtsBreakerIndex"))
if mibBuilder.loadTexts: tlpAtsBreakerEntry.setStatus('current')
tlpAtsBreakerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 5, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsBreakerIndex.setStatus('current')
tlpAtsBreakerStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2)).clone(namedValues=NamedValues(("open", 0), ("closed", 1), ("notInstalled", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsBreakerStatus.setStatus('current')
tlpAtsHeatsinkTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 6, 1), )
if mibBuilder.loadTexts: tlpAtsHeatsinkTable.setStatus('current')
tlpAtsHeatsinkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 6, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAtsHeatsinkIndex"))
if mibBuilder.loadTexts: tlpAtsHeatsinkEntry.setStatus('current')
tlpAtsHeatsinkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 6, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsHeatsinkIndex.setStatus('current')
tlpAtsHeatsinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("notAvailable", 0), ("available", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsHeatsinkStatus.setStatus('current')
tlpAtsHeatsinkTemperatureC = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 6, 1, 1, 3), Integer32()).setUnits('0.1 degrees Centigrade').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsHeatsinkTemperatureC.setStatus('current')
tlpAtsHeatsinkTemperatureF = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 3, 6, 1, 1, 4), Integer32()).setUnits('0.1 degrees Farenheit').setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAtsHeatsinkTemperatureF.setStatus('current')
tlpAtsControlTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4, 1), )
if mibBuilder.loadTexts: tlpAtsControlTable.setStatus('current')
tlpAtsControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsControlEntry.setStatus('current')
tlpAtsControlRamp = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsControlRamp.setStatus('current')
tlpAtsControlShed = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4, 1, 1, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsControlShed.setStatus('current')
tlpAtsControlAtsOn = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4, 1, 1, 3), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsControlAtsOn.setStatus('current')
tlpAtsControlAtsOff = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4, 1, 1, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsControlAtsOff.setStatus('current')
tlpAtsControlAtsReboot = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4, 1, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsControlAtsReboot.setStatus('current')
tlpAtsControlResetGeneralFault = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 4, 1, 1, 6), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsControlResetGeneralFault.setStatus('current')
tlpAtsConfigTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 1), )
if mibBuilder.loadTexts: tlpAtsConfigTable.setStatus('current')
tlpAtsConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsConfigEntry.setStatus('current')
tlpAtsConfigInputVoltage = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 1, 1, 1), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigInputVoltage.setStatus('current')
tlpAtsConfigSourceSelect = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2)).clone(namedValues=NamedValues(("inputSourceA", 1), ("inputSourceB", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSourceSelect.setStatus('current')
tlpAtsConfigSource1ReturnTime = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 1, 1, 3), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSource1ReturnTime.setStatus('current')
tlpAtsConfigSource2ReturnTime = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 1, 1, 4), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSource2ReturnTime.setStatus('current')
tlpAtsConfigAutoRampOnTransition = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigAutoRampOnTransition.setStatus('current')
tlpAtsConfigAutoShedOnTransition = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1)).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigAutoShedOnTransition.setStatus('current')
tlpAtsConfigVoltageRangeTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2), )
if mibBuilder.loadTexts: tlpAtsConfigVoltageRangeTable.setStatus('current')
tlpAtsConfigVoltageRangeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsConfigVoltageRangeEntry.setStatus('current')
tlpAtsConfigHighVoltageTransfer = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 1), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigHighVoltageTransfer.setStatus('current')
tlpAtsConfigHighVoltageReset = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 2), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigHighVoltageReset.setStatus('current')
tlpAtsConfigSource1TransferReset = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 3), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSource1TransferReset.setStatus('current')
tlpAtsConfigSource1BrownoutSet = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 4), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSource1BrownoutSet.setStatus('current')
tlpAtsConfigSource1TransferSet = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 5), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSource1TransferSet.setStatus('current')
tlpAtsConfigSource2TransferReset = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 6), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSource2TransferReset.setStatus('current')
tlpAtsConfigSource2BrownoutSet = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 7), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSource2BrownoutSet.setStatus('current')
tlpAtsConfigSource2TransferSet = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 8), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSource2TransferSet.setStatus('current')
tlpAtsConfigLowVoltageReset = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 9), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigLowVoltageReset.setStatus('current')
tlpAtsConfigLowVoltageTransfer = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 2, 1, 10), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigLowVoltageTransfer.setStatus('current')
tlpAtsConfigVoltageRangeLimitsTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 3), )
if mibBuilder.loadTexts: tlpAtsConfigVoltageRangeLimitsTable.setStatus('current')
tlpAtsConfigVoltageRangeLimitsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 3, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsConfigVoltageRangeLimitsEntry.setStatus('current')
tlpAtsConfigSourceBrownoutSetMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 3, 1, 1), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSourceBrownoutSetMinimum.setStatus('current')
tlpAtsConfigSourceBrownoutSetMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 3, 1, 2), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSourceBrownoutSetMaximum.setStatus('current')
tlpAtsConfigSourceTransferSetMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 3, 1, 3), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSourceTransferSetMinimum.setStatus('current')
tlpAtsConfigSourceTransferSetMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 3, 1, 4), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigSourceTransferSetMaximum.setStatus('current')
tlpAtsConfigThresholdTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 4), )
if mibBuilder.loadTexts: tlpAtsConfigThresholdTable.setStatus('current')
tlpAtsConfigThresholdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 4, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"))
if mibBuilder.loadTexts: tlpAtsConfigThresholdEntry.setStatus('current')
tlpAtsConfigOverCurrentThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 4, 1, 1), Unsigned32()).setUnits('0.1 Amps').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigOverCurrentThreshold.setStatus('current')
tlpAtsConfigOverTemperatureThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 4, 1, 2), Unsigned32()).setUnits('0.1 Centigrade').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigOverTemperatureThreshold.setStatus('current')
tlpAtsConfigOverVoltageThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 4, 1, 3), Unsigned32()).setUnits('0.1 Volts').setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigOverVoltageThreshold.setStatus('current')
tlpAtsConfigOverLoadThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 4, 5, 4, 1, 4), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAtsConfigOverLoadThreshold.setStatus('current')
tlpCoolingIdentNumCooling = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 5, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpCoolingIdentNumCooling.setStatus('current')
tlpKvmIdentNumKvm = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 6, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpKvmIdentNumKvm.setStatus('current')
tlpRackTrackIdentNumRackTrack = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 7, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpRackTrackIdentNumRackTrack.setStatus('current')
tlpSwitchIdentNumSwitch = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 1, 3, 8, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpSwitchIdentNumSwitch.setStatus('current')
tlpAgentType = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8)).clone(namedValues=NamedValues(("unknown", 0), ("pal", 1), ("pansa", 2), ("delta", 3), ("sinetica", 4), ("netos6", 5), ("netos7", 6), ("panms", 7), ("nmc5", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentType.setStatus('current')
tlpAgentVersion = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentVersion.setStatus('current')
tlpAgentDriverVersion = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentDriverVersion.setStatus('current')
tlpAgentMAC = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentMAC.setStatus('current')
tlpAgentSerialNum = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentSerialNum.setStatus('current')
tlpAgentUuid = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentUuid.setStatus('current')
tlpAgentAttributesSupports = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1))
tlpAgentAttributesSupportsHTTP = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsHTTP.setStatus('current')
tlpAgentAttributesSupportsHTTPS = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsHTTPS.setStatus('current')
tlpAgentAttributesSupportsFTP = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsFTP.setStatus('current')
tlpAgentAttributesSupportsTelnetMenu = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsTelnetMenu.setStatus('current')
tlpAgentAttributesSupportsTelnetCLI = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsTelnetCLI.setStatus('current')
tlpAgentAttributesSupportsSSHMenu = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsSSHMenu.setStatus('current')
tlpAgentAttributesSupportsSSHCLI = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsSSHCLI.setStatus('current')
tlpAgentAttributesSupportsSNMP = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsSNMP.setStatus('current')
tlpAgentAttributesSupportsSNMPTrap = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 1, 9), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSupportsSNMPTrap.setStatus('current')
tlpAgentAttributesAutostart = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2))
tlpAgentAttributesAutostartHTTP = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesAutostartHTTP.setStatus('current')
tlpAgentAttributesAutostartHTTPS = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesAutostartHTTPS.setStatus('current')
tlpAgentAttributesAutostartFTP = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesAutostartFTP.setStatus('current')
tlpAgentAttributesAutostartTelnetMenu = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesAutostartTelnetMenu.setStatus('current')
tlpAgentAttributesAutostartTelnetCLI = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2, 5), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesAutostartTelnetCLI.setStatus('current')
tlpAgentAttributesAutostartSSHMenu = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesAutostartSSHMenu.setStatus('current')
tlpAgentAttributesAutostartSSHCLI = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2, 7), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesAutostartSSHCLI.setStatus('current')
tlpAgentAttributesAutostartSNMP = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 2, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesAutostartSNMP.setStatus('current')
tlpAgentAttributesSnmp = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 3))
tlpAgentAttributesSNMPv1Enabled = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 3, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSNMPv1Enabled.setStatus('current')
tlpAgentAttributesSNMPv2cEnabled = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 3, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSNMPv2cEnabled.setStatus('current')
tlpAgentAttributesSNMPv3Enabled = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 3, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSNMPv3Enabled.setStatus('current')
tlpAgentAttributesPorts = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4))
tlpAgentAttributesHTTPPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesHTTPPort.setStatus('current')
tlpAgentAttributesHTTPSPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesHTTPSPort.setStatus('current')
tlpAgentAttributesFTPPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesFTPPort.setStatus('current')
tlpAgentAttributesTelnetMenuPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesTelnetMenuPort.setStatus('current')
tlpAgentAttributesTelnetCLIPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesTelnetCLIPort.setStatus('current')
tlpAgentAttributesSSHMenuPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSSHMenuPort.setStatus('current')
tlpAgentAttributesSSHCLIPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSSHCLIPort.setStatus('current')
tlpAgentAttributesSNMPPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSNMPPort.setStatus('current')
tlpAgentAttributesSNMPTrapPort = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 1, 2, 4, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentAttributesSNMPTrapPort.setStatus('current')
tlpAgentConfigRemoteRegistration = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 2, 1, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentConfigRemoteRegistration.setStatus('current')
tlpAgentConfigCurrentTime = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 2, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentConfigCurrentTime.setStatus('current')
tlpAgentNumEmailContacts = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentNumEmailContacts.setStatus('current')
tlpAgentEmailContactTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 1, 2), )
if mibBuilder.loadTexts: tlpAgentEmailContactTable.setStatus('current')
tlpAgentEmailContactEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 1, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpAgentEmailContactIndex"))
if mibBuilder.loadTexts: tlpAgentEmailContactEntry.setStatus('current')
tlpAgentEmailContactIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 1, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentEmailContactIndex.setStatus('current')
tlpAgentEmailContactRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 1, 2, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentEmailContactRowStatus.setStatus('current')
tlpAgentEmailContactName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 1, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentEmailContactName.setStatus('current')
tlpAgentEmailContactAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 1, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentEmailContactAddress.setStatus('current')
tlpAgentNumSnmpContacts = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentNumSnmpContacts.setStatus('current')
tlpAgentSnmpContactTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2), )
if mibBuilder.loadTexts: tlpAgentSnmpContactTable.setStatus('current')
tlpAgentSnmpContactEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpAgentSnmpContactIndex"))
if mibBuilder.loadTexts: tlpAgentSnmpContactEntry.setStatus('current')
tlpAgentSnmpContactIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAgentSnmpContactIndex.setStatus('current')
tlpAgentSnmpContactRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentSnmpContactRowStatus.setStatus('current')
tlpAgentSnmpContactName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentSnmpContactName.setStatus('current')
tlpAgentSnmpContactIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentSnmpContactIpAddress.setStatus('current')
tlpAgentSnmpContactPort = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 5), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentSnmpContactPort.setStatus('current')
tlpAgentSnmpContactSnmpVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 6), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3)).clone(namedValues=NamedValues(("snmpv1", 1), ("snmpv2c", 2), ("snmpv3", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentSnmpContactSnmpVersion.setStatus('current')
tlpAgentSnmpContactSecurityName = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentSnmpContactSecurityName.setStatus('current')
tlpAgentSnmpContactPrivPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentSnmpContactPrivPassword.setStatus('current')
tlpAgentSnmpContactAuthPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 2, 3, 2, 2, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAgentSnmpContactAuthPassword.setStatus('current')
tlpAlarmsPresent = MibScalar((1, 3, 6, 1, 4, 1, 850, 1, 3, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmsPresent.setStatus('current')
tlpAlarmTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 3, 2), )
if mibBuilder.loadTexts: tlpAlarmTable.setStatus('current')
tlpAlarmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpAlarmId"))
if mibBuilder.loadTexts: tlpAlarmEntry.setStatus('current')
tlpAlarmId = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmId.setStatus('current')
tlpAlarmDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 2), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmDescr.setStatus('current')
tlpAlarmTime = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 3), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmTime.setStatus('current')
tlpAlarmTableRef = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 4), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmTableRef.setStatus('current')
tlpAlarmTableRowRef = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 5), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmTableRowRef.setStatus('current')
tlpAlarmDetail = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmDetail.setStatus('current')
tlpAlarmType = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5, 6)).clone(namedValues=NamedValues(("critical", 1), ("warning", 2), ("info", 3), ("status", 4), ("offline", 5), ("custom", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmType.setStatus('current')
tlpAlarmState = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2)).clone(namedValues=NamedValues(("active", 1), ("inactive", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmState.setStatus('current')
tlpAlarmAcknowledged = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2)).clone(namedValues=NamedValues(("notAcknowledged", 1), ("acknowledged", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAlarmAcknowledged.setStatus('current')
tlpAlarmCommunicationsLost = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 1))
if mibBuilder.loadTexts: tlpAlarmCommunicationsLost.setStatus('current')
tlpAlarmUserDefined = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2))
tlpAlarmUserDefined01 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 1))
if mibBuilder.loadTexts: tlpAlarmUserDefined01.setStatus('current')
tlpAlarmUserDefined02 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 2))
if mibBuilder.loadTexts: tlpAlarmUserDefined02.setStatus('current')
tlpAlarmUserDefined03 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 3))
if mibBuilder.loadTexts: tlpAlarmUserDefined03.setStatus('current')
tlpAlarmUserDefined04 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 4))
if mibBuilder.loadTexts: tlpAlarmUserDefined04.setStatus('current')
tlpAlarmUserDefined05 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 5))
if mibBuilder.loadTexts: tlpAlarmUserDefined05.setStatus('current')
tlpAlarmUserDefined06 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 6))
if mibBuilder.loadTexts: tlpAlarmUserDefined06.setStatus('current')
tlpAlarmUserDefined07 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 7))
if mibBuilder.loadTexts: tlpAlarmUserDefined07.setStatus('current')
tlpAlarmUserDefined08 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 8))
if mibBuilder.loadTexts: tlpAlarmUserDefined08.setStatus('current')
tlpAlarmUserDefined09 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 2, 2, 9))
if mibBuilder.loadTexts: tlpAlarmUserDefined09.setStatus('current')
tlpUpsAlarmBatteryBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 1))
if mibBuilder.loadTexts: tlpUpsAlarmBatteryBad.setStatus('current')
tlpUpsAlarmOnBattery = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 2))
if mibBuilder.loadTexts: tlpUpsAlarmOnBattery.setStatus('current')
tlpUpsAlarmLowBattery = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 3))
if mibBuilder.loadTexts: tlpUpsAlarmLowBattery.setStatus('current')
tlpUpsAlarmDepletedBattery = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 4))
if mibBuilder.loadTexts: tlpUpsAlarmDepletedBattery.setStatus('current')
tlpUpsAlarmTempBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 5))
if mibBuilder.loadTexts: tlpUpsAlarmTempBad.setStatus('current')
tlpUpsAlarmInputBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 6))
if mibBuilder.loadTexts: tlpUpsAlarmInputBad.setStatus('current')
tlpUpsAlarmOutputBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 7))
if mibBuilder.loadTexts: tlpUpsAlarmOutputBad.setStatus('current')
tlpUpsAlarmOutputOverload = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 8))
if mibBuilder.loadTexts: tlpUpsAlarmOutputOverload.setStatus('current')
tlpUpsAlarmOnBypass = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 9))
if mibBuilder.loadTexts: tlpUpsAlarmOnBypass.setStatus('current')
tlpUpsAlarmBypassBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 10))
if mibBuilder.loadTexts: tlpUpsAlarmBypassBad.setStatus('current')
tlpUpsAlarmOutputOffAsRequested = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 11))
if mibBuilder.loadTexts: tlpUpsAlarmOutputOffAsRequested.setStatus('current')
tlpUpsAlarmUpsOffAsRequested = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 12))
if mibBuilder.loadTexts: tlpUpsAlarmUpsOffAsRequested.setStatus('current')
tlpUpsAlarmChargerFailed = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 13))
if mibBuilder.loadTexts: tlpUpsAlarmChargerFailed.setStatus('current')
tlpUpsAlarmUpsOutputOff = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 14))
if mibBuilder.loadTexts: tlpUpsAlarmUpsOutputOff.setStatus('current')
tlpUpsAlarmUpsSystemOff = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 15))
if mibBuilder.loadTexts: tlpUpsAlarmUpsSystemOff.setStatus('current')
tlpUpsAlarmFanFailure = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 16))
if mibBuilder.loadTexts: tlpUpsAlarmFanFailure.setStatus('current')
tlpUpsAlarmFuseFailure = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 17))
if mibBuilder.loadTexts: tlpUpsAlarmFuseFailure.setStatus('current')
tlpUpsAlarmGeneralFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 18))
if mibBuilder.loadTexts: tlpUpsAlarmGeneralFault.setStatus('current')
tlpUpsAlarmDiagnosticTestFailed = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 19))
if mibBuilder.loadTexts: tlpUpsAlarmDiagnosticTestFailed.setStatus('current')
tlpUpsAlarmAwaitingPower = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 20))
if mibBuilder.loadTexts: tlpUpsAlarmAwaitingPower.setStatus('current')
tlpUpsAlarmShutdownPending = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 21))
if mibBuilder.loadTexts: tlpUpsAlarmShutdownPending.setStatus('current')
tlpUpsAlarmShutdownImminent = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 22))
if mibBuilder.loadTexts: tlpUpsAlarmShutdownImminent.setStatus('current')
tlpUpsAlarmLoadLevelAboveThreshold = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 23))
tlpUpsAlarmLoadLevelAboveThresholdTotal = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 23, 1))
if mibBuilder.loadTexts: tlpUpsAlarmLoadLevelAboveThresholdTotal.setStatus('current')
tlpUpsAlarmLoadLevelAboveThresholdPhase1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 23, 2))
if mibBuilder.loadTexts: tlpUpsAlarmLoadLevelAboveThresholdPhase1.setStatus('current')
tlpUpsAlarmLoadLevelAboveThresholdPhase2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 23, 3))
if mibBuilder.loadTexts: tlpUpsAlarmLoadLevelAboveThresholdPhase2.setStatus('current')
tlpUpsAlarmLoadLevelAboveThresholdPhase3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 23, 4))
if mibBuilder.loadTexts: tlpUpsAlarmLoadLevelAboveThresholdPhase3.setStatus('current')
tlpUpsAlarmOutputCurrentChanged = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 24))
if mibBuilder.loadTexts: tlpUpsAlarmOutputCurrentChanged.setStatus('current')
tlpUpsAlarmBatteryAgeAboveThreshold = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 25))
if mibBuilder.loadTexts: tlpUpsAlarmBatteryAgeAboveThreshold.setStatus('current')
tlpUpsAlarmLoadOff = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26))
tlpUpsAlarmLoadOff01 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 1))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff01.setStatus('current')
tlpUpsAlarmLoadOff02 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 2))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff02.setStatus('current')
tlpUpsAlarmLoadOff03 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 3))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff03.setStatus('current')
tlpUpsAlarmLoadOff04 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 4))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff04.setStatus('current')
tlpUpsAlarmLoadOff05 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 5))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff05.setStatus('current')
tlpUpsAlarmLoadOff06 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 6))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff06.setStatus('current')
tlpUpsAlarmLoadOff07 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 7))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff07.setStatus('current')
tlpUpsAlarmLoadOff08 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 8))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff08.setStatus('current')
tlpUpsAlarmLoadOff09 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 9))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff09.setStatus('current')
tlpUpsAlarmLoadOff10 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 10))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff10.setStatus('current')
tlpUpsAlarmLoadOff11 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 11))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff11.setStatus('current')
tlpUpsAlarmLoadOff12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 12))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff12.setStatus('current')
tlpUpsAlarmLoadOff13 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 13))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff13.setStatus('current')
tlpUpsAlarmLoadOff14 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 14))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff14.setStatus('current')
tlpUpsAlarmLoadOff15 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 15))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff15.setStatus('current')
tlpUpsAlarmLoadOff16 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 16))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff16.setStatus('current')
tlpUpsAlarmLoadOff17 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 17))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff17.setStatus('current')
tlpUpsAlarmLoadOff18 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 18))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff18.setStatus('current')
tlpUpsAlarmLoadOff19 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 19))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff19.setStatus('current')
tlpUpsAlarmLoadOff20 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 20))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff20.setStatus('current')
tlpUpsAlarmLoadOff21 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 21))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff21.setStatus('current')
tlpUpsAlarmLoadOff22 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 22))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff22.setStatus('current')
tlpUpsAlarmLoadOff23 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 23))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff23.setStatus('current')
tlpUpsAlarmLoadOff24 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 24))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff24.setStatus('current')
tlpUpsAlarmLoadOff25 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 25))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff25.setStatus('current')
tlpUpsAlarmLoadOff26 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 26))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff26.setStatus('current')
tlpUpsAlarmLoadOff27 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 27))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff27.setStatus('current')
tlpUpsAlarmLoadOff28 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 28))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff28.setStatus('current')
tlpUpsAlarmLoadOff29 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 29))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff29.setStatus('current')
tlpUpsAlarmLoadOff30 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 30))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff30.setStatus('current')
tlpUpsAlarmLoadOff31 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 31))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff31.setStatus('current')
tlpUpsAlarmLoadOff32 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 32))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff32.setStatus('current')
tlpUpsAlarmLoadOff33 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 33))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff33.setStatus('current')
tlpUpsAlarmLoadOff34 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 34))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff34.setStatus('current')
tlpUpsAlarmLoadOff35 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 35))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff35.setStatus('current')
tlpUpsAlarmLoadOff36 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 36))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff36.setStatus('current')
tlpUpsAlarmLoadOff37 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 37))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff37.setStatus('current')
tlpUpsAlarmLoadOff38 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 38))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff38.setStatus('current')
tlpUpsAlarmLoadOff39 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 39))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff39.setStatus('current')
tlpUpsAlarmLoadOff40 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 26, 40))
if mibBuilder.loadTexts: tlpUpsAlarmLoadOff40.setStatus('current')
tlpUpsAlarmCurrentAboveThreshold = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 27))
tlpUpsAlarmCurrentAboveThreshold1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 27, 1))
if mibBuilder.loadTexts: tlpUpsAlarmCurrentAboveThreshold1.setStatus('current')
tlpUpsAlarmCurrentAboveThreshold2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 27, 2))
if mibBuilder.loadTexts: tlpUpsAlarmCurrentAboveThreshold2.setStatus('current')
tlpUpsAlarmCurrentAboveThreshold3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 27, 3))
if mibBuilder.loadTexts: tlpUpsAlarmCurrentAboveThreshold3.setStatus('current')
tlpUpsAlarmRuntimeBelowWarningLevel = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 28))
if mibBuilder.loadTexts: tlpUpsAlarmRuntimeBelowWarningLevel.setStatus('current')
tlpUpsAlarmBusStartVoltageLow = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 29))
if mibBuilder.loadTexts: tlpUpsAlarmBusStartVoltageLow.setStatus('current')
tlpUpsAlarmBusOverVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 30))
if mibBuilder.loadTexts: tlpUpsAlarmBusOverVoltage.setStatus('current')
tlpUpsAlarmBusUnderVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 31))
if mibBuilder.loadTexts: tlpUpsAlarmBusUnderVoltage.setStatus('current')
tlpUpsAlarmBusVoltageUnbalanced = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 32))
if mibBuilder.loadTexts: tlpUpsAlarmBusVoltageUnbalanced.setStatus('current')
tlpUpsAlarmInverterSoftStartBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 33))
if mibBuilder.loadTexts: tlpUpsAlarmInverterSoftStartBad.setStatus('current')
tlpUpsAlarmInverterOverVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 34))
if mibBuilder.loadTexts: tlpUpsAlarmInverterOverVoltage.setStatus('current')
tlpUpsAlarmInverterUnderVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 35))
if mibBuilder.loadTexts: tlpUpsAlarmInverterUnderVoltage.setStatus('current')
tlpUpsAlarmInverterCircuitBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 36))
if mibBuilder.loadTexts: tlpUpsAlarmInverterCircuitBad.setStatus('current')
tlpUpsAlarmBatteryOverVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 37))
if mibBuilder.loadTexts: tlpUpsAlarmBatteryOverVoltage.setStatus('current')
tlpUpsAlarmBatteryUnderVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 38))
if mibBuilder.loadTexts: tlpUpsAlarmBatteryUnderVoltage.setStatus('current')
tlpUpsAlarmSiteWiringFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 39))
if mibBuilder.loadTexts: tlpUpsAlarmSiteWiringFault.setStatus('current')
tlpUpsAlarmOverTemperatureProtection = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 40))
if mibBuilder.loadTexts: tlpUpsAlarmOverTemperatureProtection.setStatus('current')
tlpUpsAlarmOverCharged = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 41))
if mibBuilder.loadTexts: tlpUpsAlarmOverCharged.setStatus('current')
tlpUpsAlarmEPOActive = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 42))
if mibBuilder.loadTexts: tlpUpsAlarmEPOActive.setStatus('current')
tlpUpsAlarmBypassFrequencyBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 43))
if mibBuilder.loadTexts: tlpUpsAlarmBypassFrequencyBad.setStatus('current')
tlpUpsAlarmExternalSmartBatteryAgeAboveThreshold = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 44))
if mibBuilder.loadTexts: tlpUpsAlarmExternalSmartBatteryAgeAboveThreshold.setStatus('current')
tlpUpsAlarmExternalNonSmartBatteryAgeAboveThreshold = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 45))
if mibBuilder.loadTexts: tlpUpsAlarmExternalNonSmartBatteryAgeAboveThreshold.setStatus('current')
tlpUpsAlarmSmartBatteryCommLost = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 46))
if mibBuilder.loadTexts: tlpUpsAlarmSmartBatteryCommLost.setStatus('current')
tlpUpsAlarmLoadsNotAllOn = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 3, 47))
if mibBuilder.loadTexts: tlpUpsAlarmLoadsNotAllOn.setStatus('current')
tlpPduAlarmLoadLevelAboveThreshold = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 1))
if mibBuilder.loadTexts: tlpPduAlarmLoadLevelAboveThreshold.setStatus('current')
tlpPduAlarmInputBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 2))
if mibBuilder.loadTexts: tlpPduAlarmInputBad.setStatus('current')
tlpPduAlarmOutputBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 3))
if mibBuilder.loadTexts: tlpPduAlarmOutputBad.setStatus('current')
tlpPduAlarmOutputOverload = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 4))
if mibBuilder.loadTexts: tlpPduAlarmOutputOverload.setStatus('current')
tlpPduAlarmOutputOff = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 5))
if mibBuilder.loadTexts: tlpPduAlarmOutputOff.setStatus('current')
tlpPduAlarmLoadOff = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6))
tlpPduAlarmLoadOff01 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 1))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff01.setStatus('current')
tlpPduAlarmLoadOff02 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 2))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff02.setStatus('current')
tlpPduAlarmLoadOff03 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 3))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff03.setStatus('current')
tlpPduAlarmLoadOff04 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 4))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff04.setStatus('current')
tlpPduAlarmLoadOff05 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 5))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff05.setStatus('current')
tlpPduAlarmLoadOff06 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 6))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff06.setStatus('current')
tlpPduAlarmLoadOff07 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 7))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff07.setStatus('current')
tlpPduAlarmLoadOff08 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 8))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff08.setStatus('current')
tlpPduAlarmLoadOff09 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 9))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff09.setStatus('current')
tlpPduAlarmLoadOff10 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 10))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff10.setStatus('current')
tlpPduAlarmLoadOff11 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 11))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff11.setStatus('current')
tlpPduAlarmLoadOff12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 12))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff12.setStatus('current')
tlpPduAlarmLoadOff13 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 13))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff13.setStatus('current')
tlpPduAlarmLoadOff14 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 14))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff14.setStatus('current')
tlpPduAlarmLoadOff15 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 15))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff15.setStatus('current')
tlpPduAlarmLoadOff16 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 16))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff16.setStatus('current')
tlpPduAlarmLoadOff17 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 17))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff17.setStatus('current')
tlpPduAlarmLoadOff18 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 18))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff18.setStatus('current')
tlpPduAlarmLoadOff19 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 19))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff19.setStatus('current')
tlpPduAlarmLoadOff20 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 20))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff20.setStatus('current')
tlpPduAlarmLoadOff21 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 21))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff21.setStatus('current')
tlpPduAlarmLoadOff22 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 22))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff22.setStatus('current')
tlpPduAlarmLoadOff23 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 23))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff23.setStatus('current')
tlpPduAlarmLoadOff24 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 24))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff24.setStatus('current')
tlpPduAlarmLoadOff25 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 25))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff25.setStatus('current')
tlpPduAlarmLoadOff26 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 26))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff26.setStatus('current')
tlpPduAlarmLoadOff27 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 27))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff27.setStatus('current')
tlpPduAlarmLoadOff28 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 28))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff28.setStatus('current')
tlpPduAlarmLoadOff29 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 29))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff29.setStatus('current')
tlpPduAlarmLoadOff30 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 30))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff30.setStatus('current')
tlpPduAlarmLoadOff31 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 31))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff31.setStatus('current')
tlpPduAlarmLoadOff32 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 32))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff32.setStatus('current')
tlpPduAlarmLoadOff33 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 33))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff33.setStatus('current')
tlpPduAlarmLoadOff34 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 34))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff34.setStatus('current')
tlpPduAlarmLoadOff35 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 35))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff35.setStatus('current')
tlpPduAlarmLoadOff36 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 36))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff36.setStatus('current')
tlpPduAlarmLoadOff37 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 37))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff37.setStatus('current')
tlpPduAlarmLoadOff38 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 38))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff38.setStatus('current')
tlpPduAlarmLoadOff39 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 39))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff39.setStatus('current')
tlpPduAlarmLoadOff40 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 6, 40))
if mibBuilder.loadTexts: tlpPduAlarmLoadOff40.setStatus('current')
tlpPduAlarmCircuitBreakerOpen = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 7))
tlpPduAlarmCircuitBreakerOpen01 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 7, 1))
if mibBuilder.loadTexts: tlpPduAlarmCircuitBreakerOpen01.setStatus('current')
tlpPduAlarmCircuitBreakerOpen02 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 7, 2))
if mibBuilder.loadTexts: tlpPduAlarmCircuitBreakerOpen02.setStatus('current')
tlpPduAlarmCircuitBreakerOpen03 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 7, 3))
if mibBuilder.loadTexts: tlpPduAlarmCircuitBreakerOpen03.setStatus('current')
tlpPduAlarmCircuitBreakerOpen04 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 7, 4))
if mibBuilder.loadTexts: tlpPduAlarmCircuitBreakerOpen04.setStatus('current')
tlpPduAlarmCircuitBreakerOpen05 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 7, 5))
if mibBuilder.loadTexts: tlpPduAlarmCircuitBreakerOpen05.setStatus('current')
tlpPduAlarmCircuitBreakerOpen06 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 7, 6))
if mibBuilder.loadTexts: tlpPduAlarmCircuitBreakerOpen06.setStatus('current')
tlpPduAlarmCurrentAboveThreshold = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 8))
tlpPduAlarmCurrentAboveThreshold1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 8, 1))
if mibBuilder.loadTexts: tlpPduAlarmCurrentAboveThreshold1.setStatus('current')
tlpPduAlarmCurrentAboveThreshold2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 8, 2))
if mibBuilder.loadTexts: tlpPduAlarmCurrentAboveThreshold2.setStatus('current')
tlpPduAlarmCurrentAboveThreshold3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 8, 3))
if mibBuilder.loadTexts: tlpPduAlarmCurrentAboveThreshold3.setStatus('current')
tlpPduAlarmLoadsNotAllOn = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 4, 9))
if mibBuilder.loadTexts: tlpPduAlarmLoadsNotAllOn.setStatus('current')
tlpEnvAlarmTemperatureBeyondLimits = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 1))
if mibBuilder.loadTexts: tlpEnvAlarmTemperatureBeyondLimits.setStatus('current')
tlpEnvAlarmHumidityBeyondLimits = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 2))
if mibBuilder.loadTexts: tlpEnvAlarmHumidityBeyondLimits.setStatus('current')
tlpEnvAlarmInputContact = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 3))
tlpEnvAlarmInputContact01 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 3, 1))
if mibBuilder.loadTexts: tlpEnvAlarmInputContact01.setStatus('current')
tlpEnvAlarmInputContact02 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 3, 2))
if mibBuilder.loadTexts: tlpEnvAlarmInputContact02.setStatus('current')
tlpEnvAlarmInputContact03 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 3, 3))
if mibBuilder.loadTexts: tlpEnvAlarmInputContact03.setStatus('current')
tlpEnvAlarmInputContact04 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 3, 4))
if mibBuilder.loadTexts: tlpEnvAlarmInputContact04.setStatus('current')
tlpEnvAlarmOutputContact = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 4))
tlpEnvAlarmOutputContact01 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 4, 1))
if mibBuilder.loadTexts: tlpEnvAlarmOutputContact01.setStatus('current')
tlpEnvAlarmOutputContact02 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 4, 2))
if mibBuilder.loadTexts: tlpEnvAlarmOutputContact02.setStatus('current')
tlpEnvAlarmOutputContact03 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 4, 3))
if mibBuilder.loadTexts: tlpEnvAlarmOutputContact03.setStatus('current')
tlpEnvAlarmOutputContact04 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 5, 4, 4))
if mibBuilder.loadTexts: tlpEnvAlarmOutputContact04.setStatus('current')
tlpAtsAlarmOutage = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 1))
tlpAtsAlarmSource1Outage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 1, 1))
if mibBuilder.loadTexts: tlpAtsAlarmSource1Outage.setStatus('current')
tlpAtsAlarmSource2Outage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 1, 2))
if mibBuilder.loadTexts: tlpAtsAlarmSource2Outage.setStatus('current')
tlpAtsAlarmTemperature = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 2))
tlpAtsAlarmSystemTemperature = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 2, 1))
if mibBuilder.loadTexts: tlpAtsAlarmSystemTemperature.setStatus('current')
tlpAtsAlarmSource1Temperature = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 2, 2))
if mibBuilder.loadTexts: tlpAtsAlarmSource1Temperature.setStatus('current')
tlpAtsAlarmSource2Temperature = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 2, 3))
if mibBuilder.loadTexts: tlpAtsAlarmSource2Temperature.setStatus('current')
tlpAtsAlarmLoadLevelAboveThreshold = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 3))
if mibBuilder.loadTexts: tlpAtsAlarmLoadLevelAboveThreshold.setStatus('current')
tlpAtsAlarmInputBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 4))
if mibBuilder.loadTexts: tlpAtsAlarmInputBad.setStatus('current')
tlpAtsAlarmOutputBad = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 5))
if mibBuilder.loadTexts: tlpAtsAlarmOutputBad.setStatus('current')
tlpAtsAlarmOutputOverload = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 6))
if mibBuilder.loadTexts: tlpAtsAlarmOutputOverload.setStatus('current')
tlpAtsAlarmOutputOff = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 7))
if mibBuilder.loadTexts: tlpAtsAlarmOutputOff.setStatus('current')
tlpAtsAlarmLoadOff = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8))
tlpAtsAlarmLoadOff01 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 1))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff01.setStatus('current')
tlpAtsAlarmLoadOff02 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 2))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff02.setStatus('current')
tlpAtsAlarmLoadOff03 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 3))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff03.setStatus('current')
tlpAtsAlarmLoadOff04 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 4))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff04.setStatus('current')
tlpAtsAlarmLoadOff05 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 5))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff05.setStatus('current')
tlpAtsAlarmLoadOff06 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 6))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff06.setStatus('current')
tlpAtsAlarmLoadOff07 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 7))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff07.setStatus('current')
tlpAtsAlarmLoadOff08 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 8))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff08.setStatus('current')
tlpAtsAlarmLoadOff09 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 9))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff09.setStatus('current')
tlpAtsAlarmLoadOff10 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 10))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff10.setStatus('current')
tlpAtsAlarmLoadOff11 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 11))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff11.setStatus('current')
tlpAtsAlarmLoadOff12 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 12))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff12.setStatus('current')
tlpAtsAlarmLoadOff13 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 13))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff13.setStatus('current')
tlpAtsAlarmLoadOff14 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 14))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff14.setStatus('current')
tlpAtsAlarmLoadOff15 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 15))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff15.setStatus('current')
tlpAtsAlarmLoadOff16 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 16))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff16.setStatus('current')
tlpAtsAlarmLoadOff17 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 17))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff17.setStatus('current')
tlpAtsAlarmLoadOff18 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 18))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff18.setStatus('current')
tlpAtsAlarmLoadOff19 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 19))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff19.setStatus('current')
tlpAtsAlarmLoadOff20 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 20))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff20.setStatus('current')
tlpAtsAlarmLoadOff21 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 21))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff21.setStatus('current')
tlpAtsAlarmLoadOff22 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 22))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff22.setStatus('current')
tlpAtsAlarmLoadOff23 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 23))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff23.setStatus('current')
tlpAtsAlarmLoadOff24 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 24))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff24.setStatus('current')
tlpAtsAlarmLoadOff25 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 25))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff25.setStatus('current')
tlpAtsAlarmLoadOff26 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 26))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff26.setStatus('current')
tlpAtsAlarmLoadOff27 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 27))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff27.setStatus('current')
tlpAtsAlarmLoadOff28 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 28))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff28.setStatus('current')
tlpAtsAlarmLoadOff29 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 29))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff29.setStatus('current')
tlpAtsAlarmLoadOff30 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 30))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff30.setStatus('current')
tlpAtsAlarmLoadOff31 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 31))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff31.setStatus('current')
tlpAtsAlarmLoadOff32 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 32))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff32.setStatus('current')
tlpAtsAlarmLoadOff33 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 33))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff33.setStatus('current')
tlpAtsAlarmLoadOff34 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 34))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff34.setStatus('current')
tlpAtsAlarmLoadOff35 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 35))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff35.setStatus('current')
tlpAtsAlarmLoadOff36 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 36))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff36.setStatus('current')
tlpAtsAlarmLoadOff37 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 37))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff37.setStatus('current')
tlpAtsAlarmLoadOff38 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 38))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff38.setStatus('current')
tlpAtsAlarmLoadOff39 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 39))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff39.setStatus('current')
tlpAtsAlarmLoadOff40 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 8, 40))
if mibBuilder.loadTexts: tlpAtsAlarmLoadOff40.setStatus('current')
tlpAtsAlarmCircuitBreakerOpen = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 9))
tlpAtsAlarmCircuitBreakerOpen01 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 9, 1))
if mibBuilder.loadTexts: tlpAtsAlarmCircuitBreakerOpen01.setStatus('current')
tlpAtsAlarmCircuitBreakerOpen02 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 9, 2))
if mibBuilder.loadTexts: tlpAtsAlarmCircuitBreakerOpen02.setStatus('current')
tlpAtsAlarmCircuitBreakerOpen03 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 9, 3))
if mibBuilder.loadTexts: tlpAtsAlarmCircuitBreakerOpen03.setStatus('current')
tlpAtsAlarmCircuitBreakerOpen04 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 9, 4))
if mibBuilder.loadTexts: tlpAtsAlarmCircuitBreakerOpen04.setStatus('current')
tlpAtsAlarmCircuitBreakerOpen05 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 9, 5))
if mibBuilder.loadTexts: tlpAtsAlarmCircuitBreakerOpen05.setStatus('current')
tlpAtsAlarmCircuitBreakerOpen06 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 9, 6))
if mibBuilder.loadTexts: tlpAtsAlarmCircuitBreakerOpen06.setStatus('current')
tlpAtsAlarmCurrentAboveThreshold = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 10))
tlpAtsAlarmCurrentAboveThresholdA1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 10, 1))
if mibBuilder.loadTexts: tlpAtsAlarmCurrentAboveThresholdA1.setStatus('current')
tlpAtsAlarmCurrentAboveThresholdA2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 10, 2))
if mibBuilder.loadTexts: tlpAtsAlarmCurrentAboveThresholdA2.setStatus('current')
tlpAtsAlarmCurrentAboveThresholdA3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 10, 3))
if mibBuilder.loadTexts: tlpAtsAlarmCurrentAboveThresholdA3.setStatus('current')
tlpAtsAlarmCurrentAboveThresholdB1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 10, 4))
if mibBuilder.loadTexts: tlpAtsAlarmCurrentAboveThresholdB1.setStatus('current')
tlpAtsAlarmCurrentAboveThresholdB2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 10, 5))
if mibBuilder.loadTexts: tlpAtsAlarmCurrentAboveThresholdB2.setStatus('current')
tlpAtsAlarmCurrentAboveThresholdB3 = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 10, 6))
if mibBuilder.loadTexts: tlpAtsAlarmCurrentAboveThresholdB3.setStatus('current')
tlpAtsAlarmLoadsNotAllOn = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 11))
if mibBuilder.loadTexts: tlpAtsAlarmLoadsNotAllOn.setStatus('current')
tlpAtsAlarmGeneralFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 12))
if mibBuilder.loadTexts: tlpAtsAlarmGeneralFault.setStatus('current')
tlpAtsAlarmVoltage = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 13))
tlpAtsAlarmOverVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 13, 1))
if mibBuilder.loadTexts: tlpAtsAlarmOverVoltage.setStatus('current')
tlpAtsAlarmSource1OverVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 13, 2))
if mibBuilder.loadTexts: tlpAtsAlarmSource1OverVoltage.setStatus('current')
tlpAtsAlarmSource2OverVoltage = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 13, 3))
if mibBuilder.loadTexts: tlpAtsAlarmSource2OverVoltage.setStatus('current')
tlpAtsAlarmFrequency = MibIdentifier((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 14))
tlpAtsAlarmSource1InvalidFrequency = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 14, 1))
if mibBuilder.loadTexts: tlpAtsAlarmSource1InvalidFrequency.setStatus('current')
tlpAtsAlarmSource2InvalidFrequency = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 6, 14, 2))
if mibBuilder.loadTexts: tlpAtsAlarmSource2InvalidFrequency.setStatus('current')
tlpCoolingAlarmSupplyAirSensorFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 1))
if mibBuilder.loadTexts: tlpCoolingAlarmSupplyAirSensorFault.setStatus('current')
tlpCoolingAlarmReturnAirSensorFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 2))
if mibBuilder.loadTexts: tlpCoolingAlarmReturnAirSensorFault.setStatus('current')
tlpCoolingAlarmCondenserInletAirSensorFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 3))
if mibBuilder.loadTexts: tlpCoolingAlarmCondenserInletAirSensorFault.setStatus('current')
tlpCoolingAlarmCondenserOutletAirSensorFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 4))
if mibBuilder.loadTexts: tlpCoolingAlarmCondenserOutletAirSensorFault.setStatus('current')
tlpCoolingAlarmSuctionTemperatureSensorFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 5))
if mibBuilder.loadTexts: tlpCoolingAlarmSuctionTemperatureSensorFault.setStatus('current')
tlpCoolingAlarmEvaporatorTemperatureSensorFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 6))
if mibBuilder.loadTexts: tlpCoolingAlarmEvaporatorTemperatureSensorFault.setStatus('current')
tlpCoolingAlarmAirFilterClogged = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 7))
if mibBuilder.loadTexts: tlpCoolingAlarmAirFilterClogged.setStatus('current')
tlpCoolingAlarmAirFilterRunHoursViolation = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 8))
if mibBuilder.loadTexts: tlpCoolingAlarmAirFilterRunHoursViolation.setStatus('current')
tlpCoolingAlarmSuctionPressureSensorFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 9))
if mibBuilder.loadTexts: tlpCoolingAlarmSuctionPressureSensorFault.setStatus('current')
tlpCoolingAlarmInverterCommunicationsFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 10))
if mibBuilder.loadTexts: tlpCoolingAlarmInverterCommunicationsFault.setStatus('current')
tlpCoolingAlarmRemoteShutdownViaInputContact = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 11))
if mibBuilder.loadTexts: tlpCoolingAlarmRemoteShutdownViaInputContact.setStatus('current')
tlpCoolingAlarmCondensatePumpFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 12))
if mibBuilder.loadTexts: tlpCoolingAlarmCondensatePumpFault.setStatus('current')
tlpCoolingAlarmLowRefrigerantStartupFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 13))
if mibBuilder.loadTexts: tlpCoolingAlarmLowRefrigerantStartupFault.setStatus('current')
tlpCoolingAlarmCondenserFanFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 14))
if mibBuilder.loadTexts: tlpCoolingAlarmCondenserFanFault.setStatus('current')
tlpCoolingAlarmCondenserFailure = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 15))
if mibBuilder.loadTexts: tlpCoolingAlarmCondenserFailure.setStatus('current')
tlpCoolingAlarmEvaporatorCoolingFailure = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 16))
if mibBuilder.loadTexts: tlpCoolingAlarmEvaporatorCoolingFailure.setStatus('current')
tlpCoolingAlarmReturnAirTempHigh = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 17))
if mibBuilder.loadTexts: tlpCoolingAlarmReturnAirTempHigh.setStatus('current')
tlpCoolingAlarmSupplyAirTempHigh = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 18))
if mibBuilder.loadTexts: tlpCoolingAlarmSupplyAirTempHigh.setStatus('current')
tlpCoolingAlarmEvaporatorFailure = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 19))
if mibBuilder.loadTexts: tlpCoolingAlarmEvaporatorFailure.setStatus('current')
tlpCoolingAlarmEvaporatorFreezeUp = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 20))
if mibBuilder.loadTexts: tlpCoolingAlarmEvaporatorFreezeUp.setStatus('current')
tlpCoolingAlarmDischargePressureHigh = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 21))
if mibBuilder.loadTexts: tlpCoolingAlarmDischargePressureHigh.setStatus('current')
tlpCoolingAlarmPressureGaugeFailure = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 22))
if mibBuilder.loadTexts: tlpCoolingAlarmPressureGaugeFailure.setStatus('current')
tlpCoolingAlarmDischargePressurePersistentHigh = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 23))
if mibBuilder.loadTexts: tlpCoolingAlarmDischargePressurePersistentHigh.setStatus('current')
tlpCoolingAlarmSuctionPressureLowStartFailure = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 24))
if mibBuilder.loadTexts: tlpCoolingAlarmSuctionPressureLowStartFailure.setStatus('current')
tlpCoolingAlarmSuctionPressureLow = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 25))
if mibBuilder.loadTexts: tlpCoolingAlarmSuctionPressureLow.setStatus('current')
tlpCoolingAlarmSuctionPressurePersistentLow = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 26))
if mibBuilder.loadTexts: tlpCoolingAlarmSuctionPressurePersistentLow.setStatus('current')
tlpCoolingAlarmStartupLinePressureImbalance = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 27))
if mibBuilder.loadTexts: tlpCoolingAlarmStartupLinePressureImbalance.setStatus('current')
tlpCoolingAlarmCompressorFailure = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 28))
if mibBuilder.loadTexts: tlpCoolingAlarmCompressorFailure.setStatus('current')
tlpCoolingAlarmCurrentLimit = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 29))
if mibBuilder.loadTexts: tlpCoolingAlarmCurrentLimit.setStatus('current')
tlpCoolingAlarmWaterLeak = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 30))
if mibBuilder.loadTexts: tlpCoolingAlarmWaterLeak.setStatus('current')
tlpCoolingAlarmFanUnderCurrent = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 31))
if mibBuilder.loadTexts: tlpCoolingAlarmFanUnderCurrent.setStatus('current')
tlpCoolingAlarmFanOverCurrent = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 32))
if mibBuilder.loadTexts: tlpCoolingAlarmFanOverCurrent.setStatus('current')
tlpCoolingAlarmDischargePressureSensorFault = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 33))
if mibBuilder.loadTexts: tlpCoolingAlarmDischargePressureSensorFault.setStatus('current')
tlpCoolingAlarmWaterFull = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 34))
if mibBuilder.loadTexts: tlpCoolingAlarmWaterFull.setStatus('current')
tlpCoolingAlarmAutoCoolingOn = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 35))
if mibBuilder.loadTexts: tlpCoolingAlarmAutoCoolingOn.setStatus('current')
tlpCoolingAlarmPowerButtonPressed = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 36))
if mibBuilder.loadTexts: tlpCoolingAlarmPowerButtonPressed.setStatus('current')
tlpCoolingAlarmDisconnectedFromDevice = ObjectIdentity((1, 3, 6, 1, 4, 1, 850, 1, 3, 3, 7, 37))
if mibBuilder.loadTexts: tlpCoolingAlarmDisconnectedFromDevice.setStatus('current')
tlpAlarmControlTable = MibTable((1, 3, 6, 1, 4, 1, 850, 1, 3, 4, 1), )
if mibBuilder.loadTexts: tlpAlarmControlTable.setStatus('current')
tlpAlarmControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 850, 1, 3, 4, 1, 1), ).setIndexNames((0, "TRIPPLITE-PRODUCTS", "tlpDeviceIndex"), (0, "TRIPPLITE-PRODUCTS", "tlpAlarmControlIndex"))
if mibBuilder.loadTexts: tlpAlarmControlEntry.setStatus('current')
tlpAlarmControlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 4, 1, 1, 1), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmControlIndex.setStatus('current')
tlpAlarmControlDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 4, 1, 1, 2), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmControlDescr.setStatus('current')
tlpAlarmControlDetail = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 4, 1, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: tlpAlarmControlDetail.setStatus('current')
tlpAlarmControlSeverity = MibTableColumn((1, 3, 6, 1, 4, 1, 850, 1, 3, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3)).clone(namedValues=NamedValues(("critical", 1), ("warning", 2), ("info", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tlpAlarmControlSeverity.setStatus('current')
tlpNotificationsAlarmEntryAdded = NotificationType((1, 3, 6, 1, 4, 1, 850, 1, 4, 1, 1)).setObjects(("TRIPPLITE-PRODUCTS", "tlpAlarmId"), ("TRIPPLITE-PRODUCTS", "tlpAlarmDescr"), ("TRIPPLITE-PRODUCTS", "tlpAlarmTime"), ("TRIPPLITE-PRODUCTS", "tlpAlarmTableRef"), ("TRIPPLITE-PRODUCTS", "tlpAlarmTableRowRef"), ("TRIPPLITE-PRODUCTS", "tlpAlarmDetail"), ("TRIPPLITE-PRODUCTS", "tlpAlarmType"))
if mibBuilder.loadTexts: tlpNotificationsAlarmEntryAdded.setStatus('current')
tlpNotificationsAlarmEntryRemoved = NotificationType((1, 3, 6, 1, 4, 1, 850, 1, 4, 1, 2)).setObjects(("TRIPPLITE-PRODUCTS", "tlpAlarmId"), ("TRIPPLITE-PRODUCTS", "tlpAlarmDescr"), ("TRIPPLITE-PRODUCTS", "tlpAlarmTime"), ("TRIPPLITE-PRODUCTS", "tlpAlarmTableRef"), ("TRIPPLITE-PRODUCTS", "tlpAlarmTableRowRef"), ("TRIPPLITE-PRODUCTS", "tlpAlarmDetail"), ("TRIPPLITE-PRODUCTS", "tlpAlarmType"))
if mibBuilder.loadTexts: tlpNotificationsAlarmEntryRemoved.setStatus('current')
tlpNotifySystemStartup = NotificationType((1, 3, 6, 1, 4, 1, 850, 1, 4, 1, 3))
if mibBuilder.loadTexts: tlpNotifySystemStartup.setStatus('current')
tlpNotifySystemShutdown = NotificationType((1, 3, 6, 1, 4, 1, 850, 1, 4, 1, 4))
if mibBuilder.loadTexts: tlpNotifySystemShutdown.setStatus('current')
tlpNotifySystemUpdate = NotificationType((1, 3, 6, 1, 4, 1, 850, 1, 4, 1, 5))
if mibBuilder.loadTexts: tlpNotifySystemUpdate.setStatus('current')
mibBuilder.exportSymbols("TRIPPLITE-PRODUCTS", tlpCoolingAlarmCondenserFanFault=tlpCoolingAlarmCondenserFanFault, tlpCoolingAlarmAirFilterClogged=tlpCoolingAlarmAirFilterClogged, tlpUpsInputPhaseCurrent=tlpUpsInputPhaseCurrent, tlpAtsAlarmLoadOff23=tlpAtsAlarmLoadOff23, tlpAgentNumEmailContacts=tlpAgentNumEmailContacts, tlpAtsOutputEntry=tlpAtsOutputEntry, tlpPduSupportsOutletGroup=tlpPduSupportsOutletGroup, tlpPduDeviceTable=tlpPduDeviceTable, tlpAtsOutletGroupRowStatus=tlpAtsOutletGroupRowStatus, tlpUpsConfigColdStart=tlpUpsConfigColdStart, tlpUpsOutletGroupName=tlpUpsOutletGroupName, tlpPduAlarmLoadOff04=tlpPduAlarmLoadOff04, tlpUpsInputPhaseTable=tlpUpsInputPhaseTable, tlpAgentAttributesSupports=tlpAgentAttributesSupports, tlpAtsAlarmInputBad=tlpAtsAlarmInputBad, tlpUpsBatteryPackIdentTable=tlpUpsBatteryPackIdentTable, tlpPduAlarmOutputOverload=tlpPduAlarmOutputOverload, tlpAgentSnmpContactPort=tlpAgentSnmpContactPort, tlpAgentEmailContactAddress=tlpAgentEmailContactAddress, tlpUpsWatchdogSecsBeforeReboot=tlpUpsWatchdogSecsBeforeReboot, tlpSwitchDevice=tlpSwitchDevice, tlpAtsAlarmLoadOff32=tlpAtsAlarmLoadOff32, tlpPduAlarmLoadOff40=tlpPduAlarmLoadOff40, tlpUpsAlarmLoadOff23=tlpUpsAlarmLoadOff23, tlpUpsOutputLineVoltage=tlpUpsOutputLineVoltage, tlpAtsInputPhaseCurrent=tlpAtsInputPhaseCurrent, tlpAtsAlarmTemperature=tlpAtsAlarmTemperature, tlpSwitch=tlpSwitch, tlpPduDeviceMainLoadControllable=tlpPduDeviceMainLoadControllable, tlpUpsInputTable=tlpUpsInputTable, tlpAtsOutputSource=tlpAtsOutputSource, tlpUpsAlarmCurrentAboveThreshold3=tlpUpsAlarmCurrentAboveThreshold3, tlpCoolingDevice=tlpCoolingDevice, tlpEnvAlarmInputContact01=tlpEnvAlarmInputContact01, tlpUpsBattery=tlpUpsBattery, tlpAtsOutputActivePower=tlpAtsOutputActivePower, tlpPduAlarmLoadOff25=tlpPduAlarmLoadOff25, tlpAlarmControlDescr=tlpAlarmControlDescr, tlpUpsDeviceTestResultsStatus=tlpUpsDeviceTestResultsStatus, tlpAtsDeviceMainLoadControllable=tlpAtsDeviceMainLoadControllable, tlpPduAlarmOutputOff=tlpPduAlarmOutputOff, tlpAtsAlarmLoadOff11=tlpAtsAlarmLoadOff11, tlpPduAlarmLoadOff36=tlpPduAlarmLoadOff36, tlpAtsIdentNumOutletGroups=tlpAtsIdentNumOutletGroups, tlpPduAlarmLoadOff14=tlpPduAlarmLoadOff14, tlpUpsIdentNumOutlets=tlpUpsIdentNumOutlets, tlpPduBreakerStatus=tlpPduBreakerStatus, tlpAtsAlarmSource1Outage=tlpAtsAlarmSource1Outage, tlpPduOutletEntry=tlpPduOutletEntry, tlpAtsOutletPhase=tlpAtsOutletPhase, tlpPduInputEntry=tlpPduInputEntry, tlpAtsDeviceMainLoadCommand=tlpAtsDeviceMainLoadCommand, tlpAtsOutputCurrentMax=tlpAtsOutputCurrentMax, tlpCoolingDetail=tlpCoolingDetail, tlpUpsConfigAutoShedOnTransition=tlpUpsConfigAutoShedOnTransition, tlpPduDisplayOrientation=tlpPduDisplayOrientation, tlpUpsAlarmLoadOff22=tlpUpsAlarmLoadOff22, tlpUpsAlarmLoadOff14=tlpUpsAlarmLoadOff14, tlpPduInput=tlpPduInput, tlpAtsConfigSource1BrownoutSet=tlpAtsConfigSource1BrownoutSet, tlpPduAlarmLoadOff28=tlpPduAlarmLoadOff28, tlpPduHeatsinkEntry=tlpPduHeatsinkEntry, tlpUpsAlarmLoadOff31=tlpUpsAlarmLoadOff31, tlpDeviceManufacturer=tlpDeviceManufacturer, tlpCoolingAlarmEvaporatorFailure=tlpCoolingAlarmEvaporatorFailure, tlpPduAlarmInputBad=tlpPduAlarmInputBad, tlpAtsConfigSource2TransferReset=tlpAtsConfigSource2TransferReset, tlpEnvAlarmOutputContact=tlpEnvAlarmOutputContact, tlpEnvIdentTable=tlpEnvIdentTable, tlpAtsAlarmCurrentAboveThresholdA1=tlpAtsAlarmCurrentAboveThresholdA1, tlpEnvOutputContactInAlarm=tlpEnvOutputContactInAlarm, tlpAgentSnmpContactTable=tlpAgentSnmpContactTable, tlpUpsInputPhaseVoltage=tlpUpsInputPhaseVoltage, tlpUpsOutletGroupEntry=tlpUpsOutletGroupEntry, tlpRackTrackAlarms=tlpRackTrackAlarms, tlpCoolingAlarmDischargePressurePersistentHigh=tlpCoolingAlarmDischargePressurePersistentHigh, tlpAtsAlarmOutputOff=tlpAtsAlarmOutputOff, tlpPduSupportsOutletVoltage=tlpPduSupportsOutletVoltage, tlpUpsAlarmLoadOff34=tlpUpsAlarmLoadOff34, tlpCoolingAlarmEvaporatorTemperatureSensorFault=tlpCoolingAlarmEvaporatorTemperatureSensorFault, tlpUpsAlarmLoadOff37=tlpUpsAlarmLoadOff37, tlpAtsConfigSourceSelect=tlpAtsConfigSourceSelect, tlpAtsOutlet=tlpAtsOutlet, tlpUpsOutletGroupTable=tlpUpsOutletGroupTable, tlpAgentSnmpContactSnmpVersion=tlpAgentSnmpContactSnmpVersion, tlpPduAlarmLoadOff30=tlpPduAlarmLoadOff30, tlpPduAlarmLoadOff23=tlpPduAlarmLoadOff23, tlpUpsOutletDescription=tlpUpsOutletDescription, tlpEnvOutputContactNormalState=tlpEnvOutputContactNormalState, tlpPduAlarmCurrentAboveThreshold1=tlpPduAlarmCurrentAboveThreshold1, tlpDeviceIdentDateInstalled=tlpDeviceIdentDateInstalled, tlpAgentAttributesSSHMenuPort=tlpAgentAttributesSSHMenuPort, tlpUpsAlarmTempBad=tlpUpsAlarmTempBad, tlpAtsAlarmLoadOff31=tlpAtsAlarmLoadOff31, tlpUpsOutletCurrent=tlpUpsOutletCurrent, tlpAtsAlarmCircuitBreakerOpen01=tlpAtsAlarmCircuitBreakerOpen01, tlpDeviceIdentEntry=tlpDeviceIdentEntry, tlpUpsAlarmDiagnosticTestFailed=tlpUpsAlarmDiagnosticTestFailed, tlpPduControlTable=tlpPduControlTable, tlpAlarmControlSeverity=tlpAlarmControlSeverity, tlpAtsControlTable=tlpAtsControlTable, tlpAtsCircuitCurrentMin=tlpAtsCircuitCurrentMin, tlpAtsAlarmLoadOff01=tlpAtsAlarmLoadOff01, tlpUpsBatteryPackConfigMinCellVoltage=tlpUpsBatteryPackConfigMinCellVoltage, tlpAtsIdent=tlpAtsIdent, tlpAlarmCommunicationsLost=tlpAlarmCommunicationsLost, tlpUpsControlRamp=tlpUpsControlRamp, tlpPduAlarmLoadOff06=tlpPduAlarmLoadOff06, tlpAtsAlarmLoadOff22=tlpAtsAlarmLoadOff22, tlpUpsControlBypass=tlpUpsControlBypass, tlpPduInputLowTransferVoltage=tlpPduInputLowTransferVoltage, tlpAlarmsWellKnown=tlpAlarmsWellKnown, tlpEnvInputContactIndex=tlpEnvInputContactIndex, tlpAtsIdentNumCircuits=tlpAtsIdentNumCircuits, tlpAtsOutletBank=tlpAtsOutletBank, tlpUpsAlarmShutdownImminent=tlpUpsAlarmShutdownImminent, tlpPduDeviceOutputCurrentPrecision=tlpPduDeviceOutputCurrentPrecision, tlpAtsInputPhaseEntry=tlpAtsInputPhaseEntry, tlpAtsAlarmOutputBad=tlpAtsAlarmOutputBad, tlpAtsOutletCurrent=tlpAtsOutletCurrent, tlpUpsSupportsEntry=tlpUpsSupportsEntry, tlpAtsControlShed=tlpAtsControlShed, tlpAtsAlarmLoadsNotAllOn=tlpAtsAlarmLoadsNotAllOn, tlpUpsInputNominalFrequency=tlpUpsInputNominalFrequency, tlpPduOutletIndex=tlpPduOutletIndex, tlpPduOutletGroupEntry=tlpPduOutletGroupEntry, tlpSwitchIdentNumSwitch=tlpSwitchIdentNumSwitch, tlpAts=tlpAts, tlpAgentAttributesSNMPPort=tlpAgentAttributesSNMPPort, tlpPduAlarmCircuitBreakerOpen06=tlpPduAlarmCircuitBreakerOpen06, tlpAlarmUserDefined03=tlpAlarmUserDefined03, tlpUpsIdentNumOutletGroups=tlpUpsIdentNumOutletGroups, tlpUpsConfigOffMode=tlpUpsConfigOffMode, tlpCoolingAlarmFanUnderCurrent=tlpCoolingAlarmFanUnderCurrent, tlpAgentType=tlpAgentType, tlpUpsAlarmUpsOutputOff=tlpUpsAlarmUpsOutputOff, tlpAgentUuid=tlpAgentUuid, tlpCoolingAlarmRemoteShutdownViaInputContact=tlpCoolingAlarmRemoteShutdownViaInputContact, tlpPduCircuitPowerFactor=tlpPduCircuitPowerFactor, tlpPduAlarmLoadOff21=tlpPduAlarmLoadOff21, tlpDeviceModel=tlpDeviceModel, tlpAgentAttributesSupportsSNMP=tlpAgentAttributesSupportsSNMP, tlpUpsOutletGroupDescription=tlpUpsOutletGroupDescription, tlpPduDevicePowerOnDelay=tlpPduDevicePowerOnDelay, tlpUpsOutputNominalVoltage=tlpUpsOutputNominalVoltage, tlpUpsBatteryPackConfigCellCapacity=tlpUpsBatteryPackConfigCellCapacity, tlpAgentSettings=tlpAgentSettings, tlpEnvIdentTempSupported=tlpEnvIdentTempSupported, tlpUpsBatteryPackConfigEntry=tlpUpsBatteryPackConfigEntry, tlpAgentAttributesSNMPv2cEnabled=tlpAgentAttributesSNMPv2cEnabled, tlpNotifications=tlpNotifications, tlpPduAlarmLoadOff27=tlpPduAlarmLoadOff27, tlpUpsConfigLineSensitivity=tlpUpsConfigLineSensitivity, tlpCoolingAlarmCondensatePumpFault=tlpCoolingAlarmCondensatePumpFault, tlpAtsSupportsEnergywise=tlpAtsSupportsEnergywise, tlpPduCircuitCurrentMax=tlpPduCircuitCurrentMax, tlpPduControlPduReboot=tlpPduControlPduReboot, PYSNMP_MODULE_ID=tlpProducts, tlpUpsControlUpsOff=tlpUpsControlUpsOff, tlpSwitchConfig=tlpSwitchConfig, tlpUpsBatteryPackIdentSerialNum=tlpUpsBatteryPackIdentSerialNum, tlpAtsHeatsink=tlpAtsHeatsink, tlpAgentAttributesAutostartHTTPS=tlpAgentAttributesAutostartHTTPS, tlpCoolingAlarmCompressorFailure=tlpCoolingAlarmCompressorFailure, tlpAtsOutputCurrentMin=tlpAtsOutputCurrentMin, tlpPduOutputEntry=tlpPduOutputEntry, tlpAtsCircuit=tlpAtsCircuit, tlpPduIdentNumPhases=tlpPduIdentNumPhases, tlpAtsDeviceTemperatureF=tlpAtsDeviceTemperatureF, tlpAtsAlarmLoadOff03=tlpAtsAlarmLoadOff03, tlpUpsAlarmLoadOff17=tlpUpsAlarmLoadOff17, tlpUpsBatteryDetailCharge=tlpUpsBatteryDetailCharge, tlpAgentAttributesSnmp=tlpAgentAttributesSnmp, tlpUpsConfigFaultAction=tlpUpsConfigFaultAction, tlpPduDeviceMainLoadCommand=tlpPduDeviceMainLoadCommand, tlpUpsBatteryPackConfigStrings=tlpUpsBatteryPackConfigStrings, tlpAtsOutletIndex=tlpAtsOutletIndex, tlpUps=tlpUps, tlpPduIdentEntry=tlpPduIdentEntry, tlpUpsOutletGroup=tlpUpsOutletGroup, tlpAtsConfigInputVoltage=tlpAtsConfigInputVoltage, tlpAtsInputSourceInUse=tlpAtsInputSourceInUse, tlpCoolingAlarmAirFilterRunHoursViolation=tlpCoolingAlarmAirFilterRunHoursViolation, tlpCoolingAlarmSuctionTemperatureSensorFault=tlpCoolingAlarmSuctionTemperatureSensorFault, tlpPduSupportsTable=tlpPduSupportsTable, tlpUpsOutletGroupRowStatus=tlpUpsOutletGroupRowStatus, tlpPduAlarmCurrentAboveThreshold3=tlpPduAlarmCurrentAboveThreshold3, tlpUpsAlarmLoadOff33=tlpUpsAlarmLoadOff33, tlpPduInputTable=tlpPduInputTable, tlpAtsInputPhaseIndex=tlpAtsInputPhaseIndex, tlpAtsDisplayTable=tlpAtsDisplayTable, tlpAtsConfigSource2BrownoutSet=tlpAtsConfigSource2BrownoutSet, tlpAtsConfigSource1ReturnTime=tlpAtsConfigSource1ReturnTime, tlpUpsBatteryPackIdentEntry=tlpUpsBatteryPackIdentEntry, tlpAlarms=tlpAlarms, tlpUpsAlarmAwaitingPower=tlpUpsAlarmAwaitingPower, tlpPduIdent=tlpPduIdent, tlpAgentAttributesTelnetCLIPort=tlpAgentAttributesTelnetCLIPort, tlpUpsInputHighTransferVoltage=tlpUpsInputHighTransferVoltage, tlpPduInputPhaseVoltageMin=tlpPduInputPhaseVoltageMin, tlpAtsInputBadTransferVoltageUpperBound=tlpAtsInputBadTransferVoltageUpperBound, tlpEnvAlarmOutputContact01=tlpEnvAlarmOutputContact01, tlpUpsOutputLineEntry=tlpUpsOutputLineEntry, tlpAgentAttributesHTTPPort=tlpAgentAttributesHTTPPort, tlpAgentAttributesSNMPTrapPort=tlpAgentAttributesSNMPTrapPort, tlpAtsInputTable=tlpAtsInputTable, tlpPduAlarmLoadOff07=tlpPduAlarmLoadOff07, tlpAtsDeviceGeneralFault=tlpAtsDeviceGeneralFault, tlpAtsAlarmLoadOff39=tlpAtsAlarmLoadOff39, tlpCoolingAlarmSuctionPressureLow=tlpCoolingAlarmSuctionPressureLow, tlpAgentSnmpContactEntry=tlpAgentSnmpContactEntry, tlpCoolingAlarmReturnAirTempHigh=tlpCoolingAlarmReturnAirTempHigh, tlpAtsAlarmCircuitBreakerOpen04=tlpAtsAlarmCircuitBreakerOpen04, tlpPduInputNominalVoltagePhaseToNeutral=tlpPduInputNominalVoltagePhaseToNeutral, tlpRackTrackIdentNumRackTrack=tlpRackTrackIdentNumRackTrack, tlpUpsWatchdogEntry=tlpUpsWatchdogEntry, tlpUpsAlarmBusVoltageUnbalanced=tlpUpsAlarmBusVoltageUnbalanced, tlpAlarmUserDefined07=tlpAlarmUserDefined07, tlpAtsConfigEntry=tlpAtsConfigEntry, tlpPduAlarmLoadOff22=tlpPduAlarmLoadOff22, tlpUpsAlarmLoadOff32=tlpUpsAlarmLoadOff32, tlpAgentAttributesFTPPort=tlpAgentAttributesFTPPort, tlpPduInputPhaseVoltageMax=tlpPduInputPhaseVoltageMax, tlpUpsAlarmDepletedBattery=tlpUpsAlarmDepletedBattery, tlpPduControlRamp=tlpPduControlRamp, tlpUpsAlarmLoadLevelAboveThresholdPhase1=tlpUpsAlarmLoadLevelAboveThresholdPhase1, tlpEnvOutputContactName=tlpEnvOutputContactName, tlpAtsOutputTable=tlpAtsOutputTable, tlpEnvAlarmTemperatureBeyondLimits=tlpEnvAlarmTemperatureBeyondLimits, tlpKvmAlarms=tlpKvmAlarms, tlpPduDevice=tlpPduDevice, tlpAtsControl=tlpAtsControl, tlpAtsOutletGroupState=tlpAtsOutletGroupState, tlpCoolingAlarmFanOverCurrent=tlpCoolingAlarmFanOverCurrent, tlpPduCircuitIndex=tlpPduCircuitIndex, tlpKvmControl=tlpKvmControl, tlpPduDisplayTable=tlpPduDisplayTable, tlpAtsAlarmLoadOff20=tlpAtsAlarmLoadOff20, tlpUpsConfigAutoRestartLowVoltageCutoff=tlpUpsConfigAutoRestartLowVoltageCutoff, tlpPduAlarmOutputBad=tlpPduAlarmOutputBad, tlpAtsBreakerIndex=tlpAtsBreakerIndex, tlpAtsConfigHighVoltageReset=tlpAtsConfigHighVoltageReset, tlpEnvConfig=tlpEnvConfig, tlpEnvTemperatureC=tlpEnvTemperatureC, tlpAtsAlarmOutputOverload=tlpAtsAlarmOutputOverload, tlpPduAlarmLoadOff=tlpPduAlarmLoadOff, tlpEnvTemperatureInAlarm=tlpEnvTemperatureInAlarm, tlpAgentAttributesAutostart=tlpAgentAttributesAutostart, tlpDeviceID=tlpDeviceID, tlpAtsConfigAutoRampOnTransition=tlpAtsConfigAutoRampOnTransition, tlpAtsBreakerStatus=tlpAtsBreakerStatus, tlpUpsOutletVoltage=tlpUpsOutletVoltage, tlpAgentSnmpContactIpAddress=tlpAgentSnmpContactIpAddress, tlpCoolingAlarmDischargePressureHigh=tlpCoolingAlarmDischargePressureHigh)
mibBuilder.exportSymbols("TRIPPLITE-PRODUCTS", tlpEnvAlarmHumidityBeyondLimits=tlpEnvAlarmHumidityBeyondLimits, tlpPduAlarmCurrentAboveThreshold2=tlpPduAlarmCurrentAboveThreshold2, tlpCoolingConfig=tlpCoolingConfig, tlpAtsInputLineIndex=tlpAtsInputLineIndex, tlpPduBreakerEntry=tlpPduBreakerEntry, tlpAtsOutput=tlpAtsOutput, tlpPduDeviceTemperatureC=tlpPduDeviceTemperatureC, tlpEnvAlarmOutputContact02=tlpEnvAlarmOutputContact02, tlpAtsCircuitEntry=tlpAtsCircuitEntry, tlpUpsBatteryDetailCurrent=tlpUpsBatteryDetailCurrent, tlpAtsInputPhaseVoltage=tlpAtsInputPhaseVoltage, tlpAtsConfigSourceTransferSetMinimum=tlpAtsConfigSourceTransferSetMinimum, tlpEnvHumidityEntry=tlpEnvHumidityEntry, tlpAgentEmailContactTable=tlpAgentEmailContactTable, tlpUpsConfigAutoRestartDelayedWakeup=tlpUpsConfigAutoRestartDelayedWakeup, tlpUpsConfigOutputFrequency=tlpUpsConfigOutputFrequency, tlpAlarmUserDefined05=tlpAlarmUserDefined05, tlpUpsDeviceTemperatureF=tlpUpsDeviceTemperatureF, tlpEnvAlarmInputContact=tlpEnvAlarmInputContact, tlpUpsConfigAudibleStatus=tlpUpsConfigAudibleStatus, tlpAlarmControlDetail=tlpAlarmControlDetail, tlpAgentSnmpContactRowStatus=tlpAgentSnmpContactRowStatus, tlpUpsAlarmLoadOff20=tlpUpsAlarmLoadOff20, tlpAtsOutletVoltage=tlpAtsOutletVoltage, tlpUpsAlarmRuntimeBelowWarningLevel=tlpUpsAlarmRuntimeBelowWarningLevel, tlpEnvIdent=tlpEnvIdent, tlpAtsAlarmLoadOff=tlpAtsAlarmLoadOff, tlpAtsDeviceMainLoadState=tlpAtsDeviceMainLoadState, tlpPduControlPduOn=tlpPduControlPduOn, tlpCoolingAlarmPowerButtonPressed=tlpCoolingAlarmPowerButtonPressed, tlpEnvInputContactInAlarm=tlpEnvInputContactInAlarm, tlpPduIdentNumBreakers=tlpPduIdentNumBreakers, tlpPduOutletGroupName=tlpPduOutletGroupName, tlpDeviceStatus=tlpDeviceStatus, tlpAtsDeviceTotalInputPowerRating=tlpAtsDeviceTotalInputPowerRating, tlpRackTrackConfig=tlpRackTrackConfig, tlpCoolingAlarmCondenserOutletAirSensorFault=tlpCoolingAlarmCondenserOutletAirSensorFault, tlpAtsOutputPhaseType=tlpAtsOutputPhaseType, tlpUpsAlarmOutputOffAsRequested=tlpUpsAlarmOutputOffAsRequested, tlpPduIdentNumOutputs=tlpPduIdentNumOutputs, tlpUpsOutputLinePercentLoad=tlpUpsOutputLinePercentLoad, tlpPduHeatsinkTemperatureC=tlpPduHeatsinkTemperatureC, tlpEnvOutputContactCurrentState=tlpEnvOutputContactCurrentState, tlpAtsOutletShedAction=tlpAtsOutletShedAction, tlpUpsAlarmOnBattery=tlpUpsAlarmOnBattery, tlpUpsAlarmLoadOff10=tlpUpsAlarmLoadOff10, tlpPduCircuitTotalPower=tlpPduCircuitTotalPower, tlpAlarmAcknowledged=tlpAlarmAcknowledged, tlpDeviceIdentCurrentUptime=tlpDeviceIdentCurrentUptime, tlpAgentAttributesSNMPv3Enabled=tlpAgentAttributesSNMPv3Enabled, tlpUpsAlarmExternalSmartBatteryAgeAboveThreshold=tlpUpsAlarmExternalSmartBatteryAgeAboveThreshold, tlpAgentDetails=tlpAgentDetails, tlpAtsHeatsinkEntry=tlpAtsHeatsinkEntry, tlpUpsOutletShedAction=tlpUpsOutletShedAction, tlpAlarmTime=tlpAlarmTime, tlpUpsAlarmLoadOff29=tlpUpsAlarmLoadOff29, tlpUpsOutletPower=tlpUpsOutletPower, tlpUpsConfig=tlpUpsConfig, tlpUpsAlarmLoadOff07=tlpUpsAlarmLoadOff07, tlpEnvInputContactEntry=tlpEnvInputContactEntry, tlpUpsInputPhaseVoltageMax=tlpUpsInputPhaseVoltageMax, tlpUpsAlarmBatteryAgeAboveThreshold=tlpUpsAlarmBatteryAgeAboveThreshold, tlpUpsBatteryPackDetailCondition=tlpUpsBatteryPackDetailCondition, tlpPduOutletPhase=tlpPduOutletPhase, tlpDeviceIdentFirmwareVersion=tlpDeviceIdentFirmwareVersion, tlpPduSupportsOutletCurrentPower=tlpPduSupportsOutletCurrentPower, tlpAgentAttributesSupportsTelnetMenu=tlpAgentAttributesSupportsTelnetMenu, tlpUpsAlarmUpsSystemOff=tlpUpsAlarmUpsSystemOff, tlpPduAlarmLoadOff01=tlpPduAlarmLoadOff01, tlpEnvConfigTable=tlpEnvConfigTable, tlpEnvOutputContactIndex=tlpEnvOutputContactIndex, tlpPduInputHighTransferVoltageLowerBound=tlpPduInputHighTransferVoltageLowerBound, tlpUpsConfigOutputVoltage=tlpUpsConfigOutputVoltage, tlpUpsAlarmLoadOff35=tlpUpsAlarmLoadOff35, tlpPduAlarms=tlpPduAlarms, tlpAtsAlarmLoadOff17=tlpAtsAlarmLoadOff17, tlpCoolingAlarmSupplyAirSensorFault=tlpCoolingAlarmSupplyAirSensorFault, tlpUpsEstimatedMinutesRemaining=tlpUpsEstimatedMinutesRemaining, tlpAtsAlarmCurrentAboveThresholdA2=tlpAtsAlarmCurrentAboveThresholdA2, tlpPduAlarmCircuitBreakerOpen02=tlpPduAlarmCircuitBreakerOpen02, tlpAtsCircuitTotalCurrent=tlpAtsCircuitTotalCurrent, tlpKvmIdentNumKvm=tlpKvmIdentNumKvm, tlpUpsAlarmSiteWiringFault=tlpUpsAlarmSiteWiringFault, tlpUpsSupportsTable=tlpUpsSupportsTable, tlpSwitchDetail=tlpSwitchDetail, tlpAtsSupportsRampShed=tlpAtsSupportsRampShed, tlpAtsAlarmLoadOff15=tlpAtsAlarmLoadOff15, tlpEnvIdentHumiditySupported=tlpEnvIdentHumiditySupported, tlpAtsConfigSourceTransferSetMaximum=tlpAtsConfigSourceTransferSetMaximum, tlpAtsInputHighTransferVoltageUpperBound=tlpAtsInputHighTransferVoltageUpperBound, tlpPduOutputActivePower=tlpPduOutputActivePower, tlpPduConfigInputVoltage=tlpPduConfigInputVoltage, tlpAtsOutletCircuit=tlpAtsOutletCircuit, tlpUpsAlarmLoadOff25=tlpUpsAlarmLoadOff25, tlpCoolingAlarmCondenserFailure=tlpCoolingAlarmCondenserFailure, tlpUpsOutletTable=tlpUpsOutletTable, tlpUpsBatteryPackConfigCapacityUnits=tlpUpsBatteryPackConfigCapacityUnits, tlpUpsAlarmOutputCurrentChanged=tlpUpsAlarmOutputCurrentChanged, tlpUpsAlarmSmartBatteryCommLost=tlpUpsAlarmSmartBatteryCommLost, tlpAtsAlarmLoadOff27=tlpAtsAlarmLoadOff27, tlpUpsInput=tlpUpsInput, tlpPduControlPduOff=tlpPduControlPduOff, tlpAtsBreakerEntry=tlpAtsBreakerEntry, tlpDeviceRowStatus=tlpDeviceRowStatus, tlpCoolingAlarmSupplyAirTempHigh=tlpCoolingAlarmSupplyAirTempHigh, tlpPduCircuitTable=tlpPduCircuitTable, tlpDeviceIdentSerialNum=tlpDeviceIdentSerialNum, tlpUpsAlarmLoadOff15=tlpUpsAlarmLoadOff15, tlpPduHeatsinkTable=tlpPduHeatsinkTable, tlpAtsCircuitCurrentLimit=tlpAtsCircuitCurrentLimit, tlpPduCircuitCurrentMin=tlpPduCircuitCurrentMin, tlpUpsAlarmLoadOff06=tlpUpsAlarmLoadOff06, tlpAtsAlarmLoadOff16=tlpAtsAlarmLoadOff16, tlpUpsAlarmLoadOff24=tlpUpsAlarmLoadOff24, tlpAlarmDescr=tlpAlarmDescr, tlpDeviceNumDevices=tlpDeviceNumDevices, tlpAtsConfigVoltageRangeTable=tlpAtsConfigVoltageRangeTable, tlpRackTrackControl=tlpRackTrackControl, tlpAtsAlarmCurrentAboveThreshold=tlpAtsAlarmCurrentAboveThreshold, tlpAtsConfigSource2TransferSet=tlpAtsConfigSource2TransferSet, tlpUpsAlarmInverterSoftStartBad=tlpUpsAlarmInverterSoftStartBad, tlpPduOutputCurrentMax=tlpPduOutputCurrentMax, tlpPduControl=tlpPduControl, tlpAtsAlarms=tlpAtsAlarms, tlpCoolingAlarmSuctionPressureSensorFault=tlpCoolingAlarmSuctionPressureSensorFault, tlpRackTrackDetail=tlpRackTrackDetail, tlpAgentNumSnmpContacts=tlpAgentNumSnmpContacts, tlpAtsInputPhaseVoltageMin=tlpAtsInputPhaseVoltageMin, tlpPduInputHighTransferVoltage=tlpPduInputHighTransferVoltage, tlpAtsInputNominalVoltagePhaseToPhase=tlpAtsInputNominalVoltagePhaseToPhase, tlpCoolingAlarmSuctionPressureLowStartFailure=tlpCoolingAlarmSuctionPressureLowStartFailure, tlpPduOutletName=tlpPduOutletName, tlpUpsAlarmShutdownPending=tlpUpsAlarmShutdownPending, tlpAlarmDetail=tlpAlarmDetail, tlpPduAlarmLoadsNotAllOn=tlpPduAlarmLoadsNotAllOn, tlpKvmDevice=tlpKvmDevice, tlpPduAlarmLoadOff17=tlpPduAlarmLoadOff17, tlpAtsConfigSource2ReturnTime=tlpAtsConfigSource2ReturnTime, tlpUpsConfigTable=tlpUpsConfigTable, tlpUpsAlarmLoadLevelAboveThreshold=tlpUpsAlarmLoadLevelAboveThreshold, tlpUpsOutletShedDelay=tlpUpsOutletShedDelay, tlpPduAlarmLoadOff05=tlpPduAlarmLoadOff05, tlpUpsWatchdog=tlpUpsWatchdog, tlpUpsAlarmLowBattery=tlpUpsAlarmLowBattery, tlpAtsAlarmLoadOff21=tlpAtsAlarmLoadOff21, tlpAtsOutletName=tlpAtsOutletName, tlpAlarmState=tlpAlarmState, tlpAtsOutletGroupIndex=tlpAtsOutletGroupIndex, tlpPdu=tlpPdu, tlpAtsAlarmCurrentAboveThresholdB1=tlpAtsAlarmCurrentAboveThresholdB1, tlpAgentSnmpContactSecurityName=tlpAgentSnmpContactSecurityName, tlpPduOutletGroupDescription=tlpPduOutletGroupDescription, tlpAtsOutputPhase=tlpAtsOutputPhase, tlpUpsAlarmLoadLevelAboveThresholdTotal=tlpUpsAlarmLoadLevelAboveThresholdTotal, tlpAtsInputHighTransferVoltage=tlpAtsInputHighTransferVoltage, tlpAlarmType=tlpAlarmType, tlpUpsBatteryPackIdentIndex=tlpUpsBatteryPackIdentIndex, tlpUpsBatteryPackIdentManufacturer=tlpUpsBatteryPackIdentManufacturer, tlpAtsOutletRampDelay=tlpAtsOutletRampDelay, tlpUpsInputPhaseIndex=tlpUpsInputPhaseIndex, tlpAtsInputNominalVoltagePhaseToNeutral=tlpAtsInputNominalVoltagePhaseToNeutral, tlpAlarmEntry=tlpAlarmEntry, tlpPduAlarmLoadOff39=tlpPduAlarmLoadOff39, tlpAgentSnmpContactAuthPassword=tlpAgentSnmpContactAuthPassword, tlpUpsOutputSource=tlpUpsOutputSource, tlpUpsAlarmLoadOff02=tlpUpsAlarmLoadOff02, tlpUpsConfigEntry=tlpUpsConfigEntry, tlpUpsAlarmBusUnderVoltage=tlpUpsAlarmBusUnderVoltage, tlpDeviceType=tlpDeviceType, tlpAtsOutputCurrent=tlpAtsOutputCurrent, tlpEnvInputContactName=tlpEnvInputContactName, tlpAgentConfigRemoteRegistration=tlpAgentConfigRemoteRegistration, tlpPduConfigEntry=tlpPduConfigEntry, tlpPduAlarmCurrentAboveThreshold=tlpPduAlarmCurrentAboveThreshold, tlpUpsIdentNumUps=tlpUpsIdentNumUps, tlpPduDisplayScheme=tlpPduDisplayScheme, tlpAtsControlResetGeneralFault=tlpAtsControlResetGeneralFault, tlpUpsAlarmOnBypass=tlpUpsAlarmOnBypass, tlpCoolingAlarmInverterCommunicationsFault=tlpCoolingAlarmInverterCommunicationsFault, tlpAgentMAC=tlpAgentMAC, tlpRackTrack=tlpRackTrack, tlpEnvAlarmInputContact04=tlpEnvAlarmInputContact04, tlpUpsBatteryDetailChargerStatus=tlpUpsBatteryDetailChargerStatus, tlpUpsAlarmLoadsNotAllOn=tlpUpsAlarmLoadsNotAllOn, tlpUpsAlarmLoadOff39=tlpUpsAlarmLoadOff39, tlpAlarmTableRowRef=tlpAlarmTableRowRef, tlpUpsBatteryPackConfigChemistry=tlpUpsBatteryPackConfigChemistry, tlpAtsDeviceTemperatureC=tlpAtsDeviceTemperatureC, tlpUpsDevicePowerOnDelay=tlpUpsDevicePowerOnDelay, tlpAtsDeviceTable=tlpAtsDeviceTable, tlpAtsOutletControllable=tlpAtsOutletControllable, tlpEnvOutputContactEntry=tlpEnvOutputContactEntry, tlpUpsSupportsOutletCurrentPower=tlpUpsSupportsOutletCurrentPower, tlpAtsAlarmLoadOff09=tlpAtsAlarmLoadOff09, tlpPduIdentNumOutletGroups=tlpPduIdentNumOutletGroups, tlpUpsBatteryPackIdentSKU=tlpUpsBatteryPackIdentSKU, tlpCoolingAlarmDischargePressureSensorFault=tlpCoolingAlarmDischargePressureSensorFault, tlpPduDisplayUnits=tlpPduDisplayUnits, tlpPduAlarmLoadLevelAboveThreshold=tlpPduAlarmLoadLevelAboveThreshold, tlpAgentEmailContacts=tlpAgentEmailContacts, tlpNotify=tlpNotify, tlpAtsAlarmSource1InvalidFrequency=tlpAtsAlarmSource1InvalidFrequency, tlpAtsInputBadVoltageThreshold=tlpAtsInputBadVoltageThreshold, tlpUpsBatteryDetailCapacity=tlpUpsBatteryDetailCapacity, tlpPduOutputPowerFactor=tlpPduOutputPowerFactor, tlpSwitchIdent=tlpSwitchIdent, tlpPduAlarmLoadOff19=tlpPduAlarmLoadOff19, tlpAtsDeviceAggregatePowerFactor=tlpAtsDeviceAggregatePowerFactor, tlpAlarmUserDefined=tlpAlarmUserDefined, tlpPduDeviceEntry=tlpPduDeviceEntry, tlpUpsAlarmLoadOff28=tlpUpsAlarmLoadOff28, tlpAtsOutletGroupDescription=tlpAtsOutletGroupDescription, tlpAtsControlAtsOn=tlpAtsControlAtsOn, tlpUpsBatteryPackConfigNumBatteries=tlpUpsBatteryPackConfigNumBatteries, tlpUpsBypass=tlpUpsBypass, tlpUpsAlarmInverterUnderVoltage=tlpUpsAlarmInverterUnderVoltage, tlpEnvTemperatureF=tlpEnvTemperatureF, tlpAtsInputBadTransferVoltageLowerBound=tlpAtsInputBadTransferVoltageLowerBound, tlpPduCircuit=tlpPduCircuit, tlpPduConfig=tlpPduConfig, tlpAtsAlarmLoadOff13=tlpAtsAlarmLoadOff13, tlpAtsOutletShedDelay=tlpAtsOutletShedDelay, tlpSwitchAlarms=tlpSwitchAlarms, tlpUpsIdentTable=tlpUpsIdentTable, tlpUpsAlarmBatteryUnderVoltage=tlpUpsAlarmBatteryUnderVoltage, tlpEnvAlarmOutputContact04=tlpEnvAlarmOutputContact04, tlpPduInputNominalVoltagePhaseToPhase=tlpPduInputNominalVoltagePhaseToPhase, tlpEnvirosense=tlpEnvirosense, tlpAtsAlarmLoadOff02=tlpAtsAlarmLoadOff02, tlpUpsConfigAutoRestartOverLoad=tlpUpsConfigAutoRestartOverLoad, tlpAtsAlarmLoadOff28=tlpAtsAlarmLoadOff28, tlpAlarmUserDefined06=tlpAlarmUserDefined06, tlpCoolingAlarmSuctionPressurePersistentLow=tlpCoolingAlarmSuctionPressurePersistentLow, tlpUpsBatteryPackDetailTemperatureF=tlpUpsBatteryPackDetailTemperatureF, tlpUpsSupportsOutletGroup=tlpUpsSupportsOutletGroup, tlpCoolingAlarmLowRefrigerantStartupFault=tlpCoolingAlarmLowRefrigerantStartupFault, tlpPduAlarmLoadOff13=tlpPduAlarmLoadOff13, tlpSoftware=tlpSoftware, tlpAlarmUserDefined04=tlpAlarmUserDefined04, tlpAtsOutletEntry=tlpAtsOutletEntry, tlpUpsAlarmLoadOff11=tlpUpsAlarmLoadOff11, tlpCoolingAlarmWaterLeak=tlpCoolingAlarmWaterLeak, tlpPduIdentNumOutlets=tlpPduIdentNumOutlets, tlpPduOutputVoltage=tlpPduOutputVoltage, tlpAtsConfigTable=tlpAtsConfigTable, tlpUpsControl=tlpUpsControl, tlpEnvNumInputContacts=tlpEnvNumInputContacts, tlpPduOutputSource=tlpPduOutputSource, tlpPduAlarmLoadOff18=tlpPduAlarmLoadOff18, tlpUpsBypassTable=tlpUpsBypassTable, tlpPduCircuitTotalCurrent=tlpPduCircuitTotalCurrent, tlpPduDisplayIntensity=tlpPduDisplayIntensity, tlpCoolingAlarms=tlpCoolingAlarms, tlpAlarmControl=tlpAlarmControl)
mibBuilder.exportSymbols("TRIPPLITE-PRODUCTS", tlpUpsBypassFrequency=tlpUpsBypassFrequency, tlpAtsBreakerTable=tlpAtsBreakerTable, tlpAtsSupportsOutletVoltage=tlpAtsSupportsOutletVoltage, tlpDevice=tlpDevice, tlpPduAlarmCircuitBreakerOpen=tlpPduAlarmCircuitBreakerOpen, tlpUpsBypassLineCurrent=tlpUpsBypassLineCurrent, tlpPduOutletState=tlpPduOutletState, tlpPduIdentNumCircuits=tlpPduIdentNumCircuits, tlpCoolingAlarmWaterFull=tlpCoolingAlarmWaterFull, tlpUpsOutletControllable=tlpUpsOutletControllable, tlpPduOutletGroupTable=tlpPduOutletGroupTable, tlpUpsBatteryPackConfigStyle=tlpUpsBatteryPackConfigStyle, tlpUpsAlarmUpsOffAsRequested=tlpUpsAlarmUpsOffAsRequested, tlpAtsInputPhaseFrequency=tlpAtsInputPhaseFrequency, tlpPduOutletGroupRowStatus=tlpPduOutletGroupRowStatus, tlpUpsDeviceEntry=tlpUpsDeviceEntry, tlpUpsAlarmBusOverVoltage=tlpUpsAlarmBusOverVoltage, tlpDeviceIdentTotalUptime=tlpDeviceIdentTotalUptime, tlpPduOutputCurrentMin=tlpPduOutputCurrentMin, tlpPduOutputCurrent=tlpPduOutputCurrent, tlpUpsAlarmOutputBad=tlpUpsAlarmOutputBad, tlpPduOutletCircuit=tlpPduOutletCircuit, tlpUpsConfigThresholdTable=tlpUpsConfigThresholdTable, tlpAtsInputSourceTransitionCount=tlpAtsInputSourceTransitionCount, tlpUpsAlarms=tlpUpsAlarms, tlpPduInputPhaseFrequency=tlpPduInputPhaseFrequency, tlpAtsConfigAutoShedOnTransition=tlpAtsConfigAutoShedOnTransition, tlpAtsAlarmSource2Temperature=tlpAtsAlarmSource2Temperature, tlpAgentConfig=tlpAgentConfig, tlpAtsDevice=tlpAtsDevice, tlpUpsOutletEntry=tlpUpsOutletEntry, tlpAtsHeatsinkTemperatureF=tlpAtsHeatsinkTemperatureF, tlpAgentAttributesAutostartSSHMenu=tlpAgentAttributesAutostartSSHMenu, tlpUpsInputPhaseEntry=tlpUpsInputPhaseEntry, tlpPduCircuitInputVoltage=tlpPduCircuitInputVoltage, tlpPduOutletRampDelay=tlpPduOutletRampDelay, tlpAgentEmailContactName=tlpAgentEmailContactName, tlpAtsAlarmLoadLevelAboveThreshold=tlpAtsAlarmLoadLevelAboveThreshold, tlpPduInputPhaseTable=tlpPduInputPhaseTable, tlpCoolingInput=tlpCoolingInput, tlpUpsDetail=tlpUpsDetail, tlpAtsDisplayOrientation=tlpAtsDisplayOrientation, tlpAgentAttributesAutostartTelnetCLI=tlpAgentAttributesAutostartTelnetCLI, tlpPduBreakerIndex=tlpPduBreakerIndex, tlpAtsAlarmCurrentAboveThresholdA3=tlpAtsAlarmCurrentAboveThresholdA3, tlpAtsAlarmLoadOff35=tlpAtsAlarmLoadOff35, tlpAtsAlarmCurrentAboveThresholdB2=tlpAtsAlarmCurrentAboveThresholdB2, tlpAtsOutletGroupEntry=tlpAtsOutletGroupEntry, tlpAtsCircuitInputVoltage=tlpAtsCircuitInputVoltage, tlpUpsBatteryPackConfigCellsPerBattery=tlpUpsBatteryPackConfigCellsPerBattery, tlpUpsOutletGroupIndex=tlpUpsOutletGroupIndex, tlpCoolingAlarmDisconnectedFromDevice=tlpCoolingAlarmDisconnectedFromDevice, tlpAtsHeatsinkTemperatureC=tlpAtsHeatsinkTemperatureC, tlpUpsOutputEntry=tlpUpsOutputEntry, tlpPduOutlet=tlpPduOutlet, tlpAtsAlarmLoadOff05=tlpAtsAlarmLoadOff05, tlpCoolingAlarmReturnAirSensorFault=tlpCoolingAlarmReturnAirSensorFault, tlpRackTrackIdent=tlpRackTrackIdent, tlpUpsOutput=tlpUpsOutput, tlpCoolingAlarmCurrentLimit=tlpCoolingAlarmCurrentLimit, tlpUpsConfigAutoRestartEntry=tlpUpsConfigAutoRestartEntry, tlpEnvAlarmInputContact02=tlpEnvAlarmInputContact02, tlpAgentSnmpContactIndex=tlpAgentSnmpContactIndex, tlpPduInputPhaseVoltage=tlpPduInputPhaseVoltage, tlpAgentSerialNum=tlpAgentSerialNum, tlpUpsBatteryPackDetailTable=tlpUpsBatteryPackDetailTable, tlpUpsInputHighTransferVoltageLowerBound=tlpUpsInputHighTransferVoltageLowerBound, tlpCoolingAlarmCondenserInletAirSensorFault=tlpCoolingAlarmCondenserInletAirSensorFault, tlpUpsAlarmOutputOverload=tlpUpsAlarmOutputOverload, tlpAtsOutletGroupTable=tlpAtsOutletGroupTable, tlpAgentAttributesTelnetMenuPort=tlpAgentAttributesTelnetMenuPort, tlpAtsAlarmLoadOff12=tlpAtsAlarmLoadOff12, tlpUpsInputLowTransferVoltageUpperBound=tlpUpsInputLowTransferVoltageUpperBound, tlpAtsAlarmLoadOff18=tlpAtsAlarmLoadOff18, tlpUpsOutletGroupCommand=tlpUpsOutletGroupCommand, tlpAtsAlarmCircuitBreakerOpen06=tlpAtsAlarmCircuitBreakerOpen06, tlpAgentAttributesAutostartSSHCLI=tlpAgentAttributesAutostartSSHCLI, tlpEnvConfigEntry=tlpEnvConfigEntry, tlpUpsOutletRampAction=tlpUpsOutletRampAction, tlpAgentSnmpContacts=tlpAgentSnmpContacts, tlpAtsConfigOverLoadThreshold=tlpAtsConfigOverLoadThreshold, tlpAtsDisplayUnits=tlpAtsDisplayUnits, tlpAgentAttributesAutostartTelnetMenu=tlpAgentAttributesAutostartTelnetMenu, tlpPduAlarmLoadOff29=tlpPduAlarmLoadOff29, tlpAgentEmailContactEntry=tlpAgentEmailContactEntry, tlpAtsHeatsinkTable=tlpAtsHeatsinkTable, tlpAtsAlarmLoadOff19=tlpAtsAlarmLoadOff19, tlpPduAlarmLoadOff26=tlpPduAlarmLoadOff26, tlpUpsBatteryPackDetailEntry=tlpUpsBatteryPackDetailEntry, tlpEnvNumOutputContacts=tlpEnvNumOutputContacts, tlpAtsIdentNumOutputs=tlpAtsIdentNumOutputs, tlpEnvHumidityHumidity=tlpEnvHumidityHumidity, tlpAtsOutletPower=tlpAtsOutletPower, tlpAlarmControlTable=tlpAlarmControlTable, tlpAtsAlarmLoadOff06=tlpAtsAlarmLoadOff06, tlpUpsConfigBatteryAgeThreshold=tlpUpsConfigBatteryAgeThreshold, tlpAtsIdentNumInputs=tlpAtsIdentNumInputs, tlpEnvTemperatureHighLimit=tlpEnvTemperatureHighLimit, tlpAlarmUserDefined09=tlpAlarmUserDefined09, tlpPduAlarmLoadOff38=tlpPduAlarmLoadOff38, tlpNotifySystemStartup=tlpNotifySystemStartup, tlpUpsConfigEconomicMode=tlpUpsConfigEconomicMode, tlpAtsConfigSourceBrownoutSetMaximum=tlpAtsConfigSourceBrownoutSetMaximum, tlpUpsBypassLineEntry=tlpUpsBypassLineEntry, tlpUpsBatteryPackConfigLocation=tlpUpsBatteryPackConfigLocation, tlpUpsIdentNumInputs=tlpUpsIdentNumInputs, tlpUpsIdent=tlpUpsIdent, tlpUpsAlarmCurrentAboveThreshold2=tlpUpsAlarmCurrentAboveThreshold2, tlpUpsBatteryDetailTable=tlpUpsBatteryDetailTable, tlpAlarmsPresent=tlpAlarmsPresent, tlpAtsInput=tlpAtsInput, tlpAtsCircuitPhase=tlpAtsCircuitPhase, tlpUpsOutletGroupState=tlpUpsOutletGroupState, tlpHardware=tlpHardware, tlpPduAlarmLoadOff31=tlpPduAlarmLoadOff31, tlpPduInputPhaseEntry=tlpPduInputPhaseEntry, tlpAtsAlarmOutage=tlpAtsAlarmOutage, tlpAtsConfigSource1TransferSet=tlpAtsConfigSource1TransferSet, tlpPduInputPhasePhaseType=tlpPduInputPhasePhaseType, tlpPduOutput=tlpPduOutput, tlpAtsAlarmLoadOff08=tlpAtsAlarmLoadOff08, tlpPduAlarmLoadOff09=tlpPduAlarmLoadOff09, tlpUpsAlarmLoadOff=tlpUpsAlarmLoadOff, tlpAtsIdentNumOutlets=tlpAtsIdentNumOutlets, tlpPduOutletGroupIndex=tlpPduOutletGroupIndex, tlpUpsBatterySummaryTable=tlpUpsBatterySummaryTable, tlpUpsAlarmGeneralFault=tlpUpsAlarmGeneralFault, tlpAgentAttributesPorts=tlpAgentAttributesPorts, tlpUpsAlarmLoadOff13=tlpUpsAlarmLoadOff13, tlpAgentConfigCurrentTime=tlpAgentConfigCurrentTime, tlpAgentEmailContactIndex=tlpAgentEmailContactIndex, tlpUpsDeviceTable=tlpUpsDeviceTable, tlpUpsConfigAutoBatteryTest=tlpUpsConfigAutoBatteryTest, tlpUpsInputPhaseFrequency=tlpUpsInputPhaseFrequency, tlpAgentDriverVersion=tlpAgentDriverVersion, tlpUpsAlarmLoadOff19=tlpUpsAlarmLoadOff19, tlpEnvInputContactCurrentState=tlpEnvInputContactCurrentState, tlpUpsSupportsRampShed=tlpUpsSupportsRampShed, tlpAlarmControlEntry=tlpAlarmControlEntry, tlpEnvAlarmInputContact03=tlpEnvAlarmInputContact03, tlpPduHeatsinkTemperatureF=tlpPduHeatsinkTemperatureF, tlpAgentAttributesSupportsSNMPTrap=tlpAgentAttributesSupportsSNMPTrap, tlpAtsAlarmLoadOff07=tlpAtsAlarmLoadOff07, tlpAtsInputCurrentLimit=tlpAtsInputCurrentLimit, tlpAgentVersion=tlpAgentVersion, tlpUpsBatteryPackDetailLastReplaceDate=tlpUpsBatteryPackDetailLastReplaceDate, tlpPduIdentNumInputs=tlpPduIdentNumInputs, tlpPduControlEntry=tlpPduControlEntry, tlpUpsAlarmOverTemperatureProtection=tlpUpsAlarmOverTemperatureProtection, tlpAgentSnmpContactName=tlpAgentSnmpContactName, tlpPduAlarmLoadOff11=tlpPduAlarmLoadOff11, tlpPduAlarmLoadOff02=tlpPduAlarmLoadOff02, tlpNotificationsAlarmEntryAdded=tlpNotificationsAlarmEntryAdded, tlpUpsBatteryPackConfigMaxCellVoltage=tlpUpsBatteryPackConfigMaxCellVoltage, tlpUpsAlarmLoadOff26=tlpUpsAlarmLoadOff26, tlpAtsAlarmOverVoltage=tlpAtsAlarmOverVoltage, tlpAgentAttributesSNMPv1Enabled=tlpAgentAttributesSNMPv1Enabled, tlpUpsBatteryDetailVoltage=tlpUpsBatteryDetailVoltage, tlpUpsDeviceTestDate=tlpUpsDeviceTestDate, tlpAtsAlarmLoadOff40=tlpAtsAlarmLoadOff40, tlpUpsInputLowTransferVoltage=tlpUpsInputLowTransferVoltage, tlpEnvTemperatureEntry=tlpEnvTemperatureEntry, tlpPduOutletDescription=tlpPduOutletDescription, tlpDeviceDetail=tlpDeviceDetail, tlpUpsDevice=tlpUpsDevice, tlpAtsOutputIndex=tlpAtsOutputIndex, tlpAtsInputEntry=tlpAtsInputEntry, tlpUpsAlarmBusStartVoltageLow=tlpUpsAlarmBusStartVoltageLow, tlpAtsAlarmVoltage=tlpAtsAlarmVoltage, tlpAtsAlarmCircuitBreakerOpen05=tlpAtsAlarmCircuitBreakerOpen05, tlpAtsOutputPowerFactor=tlpAtsOutputPowerFactor, tlpDeviceLocation=tlpDeviceLocation, tlpEnvIdentEntry=tlpEnvIdentEntry, tlpPduAlarmLoadOff35=tlpPduAlarmLoadOff35, tlpAtsAlarmSource1Temperature=tlpAtsAlarmSource1Temperature, tlpUpsOutputLineFrequency=tlpUpsOutputLineFrequency, tlpCoolingAlarmEvaporatorCoolingFailure=tlpCoolingAlarmEvaporatorCoolingFailure, tlpAtsCircuitPowerFactor=tlpAtsCircuitPowerFactor, tlpPduIdentNumHeatsinks=tlpPduIdentNumHeatsinks, tlpPduOutletBank=tlpPduOutletBank, tlpAtsAlarmLoadOff38=tlpAtsAlarmLoadOff38, tlpUpsConfigLowBatteryTime=tlpUpsConfigLowBatteryTime, tlpAtsAlarmSource2InvalidFrequency=tlpAtsAlarmSource2InvalidFrequency, tlpUpsWatchdogSupported=tlpUpsWatchdogSupported, tlpAtsConfigOverCurrentThreshold=tlpAtsConfigOverCurrentThreshold, tlpUpsConfigAutoRampOnTransition=tlpUpsConfigAutoRampOnTransition, tlpPduOutletShedAction=tlpPduOutletShedAction, tlpCoolingIdentNumCooling=tlpCoolingIdentNumCooling, tlpAtsConfigOverVoltageThreshold=tlpAtsConfigOverVoltageThreshold, tlpKvm=tlpKvm, tlpUpsIdentNumBypass=tlpUpsIdentNumBypass, tlpUpsDeviceMainLoadState=tlpUpsDeviceMainLoadState, tlpAtsIdentNumHeatsinks=tlpAtsIdentNumHeatsinks, tlpAgentAttributesAutostartHTTP=tlpAgentAttributesAutostartHTTP, tlpNotificationsAlarmEntryRemoved=tlpNotificationsAlarmEntryRemoved, tlpAtsConfigLowVoltageTransfer=tlpAtsConfigLowVoltageTransfer, tlpPduAlarmLoadOff12=tlpPduAlarmLoadOff12, tlpUpsAlarmInputBad=tlpUpsAlarmInputBad, tlpAtsOutletGroupName=tlpAtsOutletGroupName, tlpAtsInputPhaseType=tlpAtsInputPhaseType, tlpAlarmUserDefined08=tlpAlarmUserDefined08, tlpKvmIdent=tlpKvmIdent, tlpUpsIdentEntry=tlpUpsIdentEntry, tlpAtsDisplayAutoScroll=tlpAtsDisplayAutoScroll, tlpUpsBatteryDetailEntry=tlpUpsBatteryDetailEntry, tlpAtsConfigThresholdTable=tlpAtsConfigThresholdTable, tlpPduOutletPower=tlpPduOutletPower, tlpUpsAlarmFanFailure=tlpUpsAlarmFanFailure, tlpUpsConfigLowBatteryThreshold=tlpUpsConfigLowBatteryThreshold, tlpCoolingAlarmAutoCoolingOn=tlpCoolingAlarmAutoCoolingOn, tlpDeviceAlarms=tlpDeviceAlarms, tlpAtsOutletTable=tlpAtsOutletTable, tlpUpsConfigThresholdEntry=tlpUpsConfigThresholdEntry, tlpEnvAlarmOutputContact03=tlpEnvAlarmOutputContact03, tlpAtsInputPhaseTable=tlpAtsInputPhaseTable, tlpUpsInputLineBads=tlpUpsInputLineBads, tlpCoolingAlarmPressureGaugeFailure=tlpCoolingAlarmPressureGaugeFailure, tlpAtsHeatsinkIndex=tlpAtsHeatsinkIndex, tlpPduInputNominalVoltage=tlpPduInputNominalVoltage, tlpAtsInputSourceAvailability=tlpAtsInputSourceAvailability, tlpAgentAttributesSupportsFTP=tlpAgentAttributesSupportsFTP, tlpPduOutletGroupCommand=tlpPduOutletGroupCommand, tlpPduAlarmLoadOff15=tlpPduAlarmLoadOff15, tlpAtsDisplayEntry=tlpAtsDisplayEntry, tlpPduAlarmLoadOff32=tlpPduAlarmLoadOff32, tlpEnvHumidityInAlarm=tlpEnvHumidityInAlarm, tlpAtsOutputVoltage=tlpAtsOutputVoltage, tlpAtsDeviceEntry=tlpAtsDeviceEntry, tlpUpsConfigInputVoltage=tlpUpsConfigInputVoltage, tlpKvmConfig=tlpKvmConfig, tlpPduAlarmCircuitBreakerOpen05=tlpPduAlarmCircuitBreakerOpen05, tlpUpsControlUpsOn=tlpUpsControlUpsOn, tlpAtsOutletState=tlpAtsOutletState, tlpPduIdentTable=tlpPduIdentTable, tlpPduOutletCurrent=tlpPduOutletCurrent, tlpAtsBreaker=tlpAtsBreaker, tlpUpsAlarmLoadOff12=tlpUpsAlarmLoadOff12, tlpAgentIdent=tlpAgentIdent, tlpAtsHeatsinkStatus=tlpAtsHeatsinkStatus, tlpAlarmControlIndex=tlpAlarmControlIndex, tlpPduDeviceTotalInputPowerRating=tlpPduDeviceTotalInputPowerRating, tlpUpsAlarmLoadOff01=tlpUpsAlarmLoadOff01, tlpPduDevicePhaseImbalance=tlpPduDevicePhaseImbalance, tlpPduOutletTable=tlpPduOutletTable, tlpUpsIdentNumOutputs=tlpUpsIdentNumOutputs, tlpAtsAlarmLoadOff25=tlpAtsAlarmLoadOff25, tlpPduCircuitCurrentLimit=tlpPduCircuitCurrentLimit, tlpAtsOutletCommand=tlpAtsOutletCommand, tlpAtsConfigThresholdEntry=tlpAtsConfigThresholdEntry, tlpEnvInputContactNormalState=tlpEnvInputContactNormalState, tlpAtsOutletGroup=tlpAtsOutletGroup, tlpPduInputCurrentLimit=tlpPduInputCurrentLimit, tlpAtsConfigVoltageRangeLimitsTable=tlpAtsConfigVoltageRangeLimitsTable, tlpAtsInputPhaseVoltageMax=tlpAtsInputPhaseVoltageMax)
mibBuilder.exportSymbols("TRIPPLITE-PRODUCTS", tlpEnvDetail=tlpEnvDetail, tlpAtsCircuitTable=tlpAtsCircuitTable, tlpPduOutletCommand=tlpPduOutletCommand, tlpUpsBatteryPackConfigTable=tlpUpsBatteryPackConfigTable, tlpPduAlarmLoadOff20=tlpPduAlarmLoadOff20, tlpAtsAlarmSource2OverVoltage=tlpAtsAlarmSource2OverVoltage, tlpNotifySystemShutdown=tlpNotifySystemShutdown, tlpUpsIdentNumPhases=tlpUpsIdentNumPhases, tlpPduAlarmLoadOff37=tlpPduAlarmLoadOff37, tlpUpsBypassEntry=tlpUpsBypassEntry, tlpUpsAlarmLoadOff03=tlpUpsAlarmLoadOff03, tlpAtsCircuitIndex=tlpAtsCircuitIndex, tlpPduHeatsinkStatus=tlpPduHeatsinkStatus, tlpAtsAlarmCircuitBreakerOpen=tlpAtsAlarmCircuitBreakerOpen, tlpUpsAlarmLoadOff04=tlpUpsAlarmLoadOff04, tlpAtsSupportsOutletCurrentPower=tlpAtsSupportsOutletCurrentPower, tlpUpsAlarmCurrentAboveThreshold1=tlpUpsAlarmCurrentAboveThreshold1, tlpAtsIdentNumAts=tlpAtsIdentNumAts, tlpPduOutletVoltage=tlpPduOutletVoltage, tlpAtsOutletRampAction=tlpAtsOutletRampAction, tlpPduBreaker=tlpPduBreaker, tlpPduAlarmLoadOff08=tlpPduAlarmLoadOff08, tlpAtsOutletGroupCommand=tlpAtsOutletGroupCommand, tlpEnvTemperatureLowLimit=tlpEnvTemperatureLowLimit, tlpPduOutletGroup=tlpPduOutletGroup, tlpAtsAlarmLoadOff33=tlpAtsAlarmLoadOff33, tlpDeviceIdentProtocol=tlpDeviceIdentProtocol, tlpUpsBypassLineIndex=tlpUpsBypassLineIndex, tlpAgentAlarms=tlpAgentAlarms, tlpPduIdentNumPdu=tlpPduIdentNumPdu, tlpUpsSupportsOutletVoltage=tlpUpsSupportsOutletVoltage, tlpPduCircuitPhase=tlpPduCircuitPhase, tlpAtsAlarmLoadOff24=tlpAtsAlarmLoadOff24, tlpPduDeviceMainLoadState=tlpPduDeviceMainLoadState, tlpUpsAlarmInverterCircuitBad=tlpUpsAlarmInverterCircuitBad, tlpPduBreakerTable=tlpPduBreakerTable, tlpUpsOutletState=tlpUpsOutletState, tlpAtsInputBadTransferVoltage=tlpAtsInputBadTransferVoltage, tlpUpsOutletRampDelay=tlpUpsOutletRampDelay, tlpUpsOutputLineCurrent=tlpUpsOutputLineCurrent, tlpPduAlarmLoadOff16=tlpPduAlarmLoadOff16, tlpUpsOutputTable=tlpUpsOutputTable, tlpAgentAttributesSSHCLIPort=tlpAgentAttributesSSHCLIPort, tlpAlarmTable=tlpAlarmTable, tlpAtsAlarmSystemTemperature=tlpAtsAlarmSystemTemperature, tlpPduAlarmCircuitBreakerOpen03=tlpPduAlarmCircuitBreakerOpen03, tlpUpsAlarmLoadOff05=tlpUpsAlarmLoadOff05, tlpCooling=tlpCooling, tlpAtsSupportsOutletGroup=tlpAtsSupportsOutletGroup, tlpUpsConfigBypassUpperLimitPercent=tlpUpsConfigBypassUpperLimitPercent, tlpEnvOutputContactTable=tlpEnvOutputContactTable, tlpAtsAlarmGeneralFault=tlpAtsAlarmGeneralFault, tlpSwitchControl=tlpSwitchControl, tlpAtsControlAtsReboot=tlpAtsControlAtsReboot, tlpPduInputLowTransferVoltageLowerBound=tlpPduInputLowTransferVoltageLowerBound, tlpUpsAlarmLoadOff30=tlpUpsAlarmLoadOff30, tlpAgentAttributes=tlpAgentAttributes, tlpPduSupportsEntry=tlpPduSupportsEntry, tlpUpsWatchdogTable=tlpUpsWatchdogTable, tlpAtsDisplayIntensity=tlpAtsDisplayIntensity, tlpUpsAlarmInverterOverVoltage=tlpUpsAlarmInverterOverVoltage, tlpAtsConfig=tlpAtsConfig, tlpUpsAlarmLoadOff09=tlpUpsAlarmLoadOff09, tlpCoolingAlarmStartupLinePressureImbalance=tlpCoolingAlarmStartupLinePressureImbalance, tlpAtsAlarmLoadOff26=tlpAtsAlarmLoadOff26, tlpDeviceIdentHardwareVersion=tlpDeviceIdentHardwareVersion, tlpAtsAlarmLoadOff10=tlpAtsAlarmLoadOff10, tlpAlarmTableRef=tlpAlarmTableRef, tlpUpsInputNominalVoltage=tlpUpsInputNominalVoltage, tlpUpsBatteryPackIdentFirmware=tlpUpsBatteryPackIdentFirmware, tlpAtsInputHighTransferVoltageLowerBound=tlpAtsInputHighTransferVoltageLowerBound, tlpAtsAlarmLoadOff30=tlpAtsAlarmLoadOff30, tlpUpsInputHighTransferVoltageUpperBound=tlpUpsInputHighTransferVoltageUpperBound, tlpUpsOutputLineIndex=tlpUpsOutputLineIndex, tlpUpsSecondsOnBattery=tlpUpsSecondsOnBattery, tlpAtsDeviceOutputPowerTotal=tlpAtsDeviceOutputPowerTotal, tlpUpsDeviceTemperatureC=tlpUpsDeviceTemperatureC, tlpUpsAlarmLoadLevelAboveThresholdPhase2=tlpUpsAlarmLoadLevelAboveThresholdPhase2, tlpAgentAttributesSupportsTelnetCLI=tlpAgentAttributesSupportsTelnetCLI, tlpUpsAlarmLoadOff40=tlpUpsAlarmLoadOff40, tlpUpsAlarmExternalNonSmartBatteryAgeAboveThreshold=tlpUpsAlarmExternalNonSmartBatteryAgeAboveThreshold, tlpUpsInputEntry=tlpUpsInputEntry, tlpPduInputPhaseCurrent=tlpPduInputPhaseCurrent, tlpUpsConfigOverLoadThreshold=tlpUpsConfigOverLoadThreshold, tlpAtsAlarmFrequency=tlpAtsAlarmFrequency, tlpAtsAlarmCircuitBreakerOpen03=tlpAtsAlarmCircuitBreakerOpen03, tlpUpsBypassLineTable=tlpUpsBypassLineTable, tlpPduDeviceTemperatureF=tlpPduDeviceTemperatureF, tlpAgentAttributesSupportsHTTPS=tlpAgentAttributesSupportsHTTPS, tlpAtsAlarmSource2Outage=tlpAtsAlarmSource2Outage, tlpUpsBatterySummaryEntry=tlpUpsBatterySummaryEntry, tlpEnvAlarms=tlpEnvAlarms, tlpEnvHumidityHighLimit=tlpEnvHumidityHighLimit, tlpUpsBypassLinePower=tlpUpsBypassLinePower, tlpAtsAlarmLoadOff34=tlpAtsAlarmLoadOff34, tlpUpsBatteryPackConfigBatteriesPerString=tlpUpsBatteryPackConfigBatteriesPerString, tlpKvmDetail=tlpKvmDetail, tlpAtsAlarmLoadOff04=tlpAtsAlarmLoadOff04, tlpCoolingAlarmEvaporatorFreezeUp=tlpCoolingAlarmEvaporatorFreezeUp, tlpUpsOutlet=tlpUpsOutlet, tlpDeviceName=tlpDeviceName, tlpEnvIdentNumEnvirosense=tlpEnvIdentNumEnvirosense, tlpUpsBatteryPackDetailNextReplaceDate=tlpUpsBatteryPackDetailNextReplaceDate, tlpPduOutputPhaseType=tlpPduOutputPhaseType, tlpAtsSupportsTable=tlpAtsSupportsTable, tlpPduAlarmLoadOff33=tlpPduAlarmLoadOff33, tlpAtsControlAtsOff=tlpAtsControlAtsOff, tlpPduDisplayAutoScroll=tlpPduDisplayAutoScroll, tlpPduAlarmCircuitBreakerOpen04=tlpPduAlarmCircuitBreakerOpen04, tlpPduHeatsink=tlpPduHeatsink, tlpAtsConfigSourceBrownoutSetMinimum=tlpAtsConfigSourceBrownoutSetMinimum, tlpUpsEstimatedChargeRemaining=tlpUpsEstimatedChargeRemaining, tlpUpsOutletIndex=tlpUpsOutletIndex, tlpCoolingOutput=tlpCoolingOutput, tlpAtsCircuitTotalPower=tlpAtsCircuitTotalPower, tlpEnvInputContactTable=tlpEnvInputContactTable, tlpAtsConfigVoltageRangeEntry=tlpAtsConfigVoltageRangeEntry, tlpUpsAlarmLoadOff38=tlpUpsAlarmLoadOff38, tlpUpsConfigBypassLowerLimitVoltage=tlpUpsConfigBypassLowerLimitVoltage, tlpAgentAttributesSupportsHTTP=tlpAgentAttributesSupportsHTTP, tlpEnvHumidityLowLimit=tlpEnvHumidityLowLimit, tlpAtsDevicePhaseImbalance=tlpAtsDevicePhaseImbalance, tlpUpsBypassLineVoltage=tlpUpsBypassLineVoltage, tlpUpsAlarmLoadOff08=tlpUpsAlarmLoadOff08, tlpUpsConfigInputFrequency=tlpUpsConfigInputFrequency, tlpUpsAlarmLoadOff16=tlpUpsAlarmLoadOff16, tlpUpsOutletName=tlpUpsOutletName, tlpPduControlShed=tlpPduControlShed, tlpPduAlarmCircuitBreakerOpen01=tlpPduAlarmCircuitBreakerOpen01, tlpNotifySystemUpdate=tlpNotifySystemUpdate, tlpAtsIdentNumPhases=tlpAtsIdentNumPhases, tlpPduHeatsinkIndex=tlpPduHeatsinkIndex, tlpAtsDetail=tlpAtsDetail, tlpAtsAlarmCircuitBreakerOpen02=tlpAtsAlarmCircuitBreakerOpen02, tlpDeviceTypes=tlpDeviceTypes, tlpDeviceIdentCommPortName=tlpDeviceIdentCommPortName, tlpAtsDisplayScheme=tlpAtsDisplayScheme, tlpUpsAlarmCurrentAboveThreshold=tlpUpsAlarmCurrentAboveThreshold, tlpEnvHumidityTable=tlpEnvHumidityTable, tlpAgentAttributesSupportsSSHCLI=tlpAgentAttributesSupportsSSHCLI, tlpUpsInputLowTransferVoltageLowerBound=tlpUpsInputLowTransferVoltageLowerBound, tlpAtsDeviceOutputCurrentPrecision=tlpAtsDeviceOutputCurrentPrecision, tlpPduOutputPhase=tlpPduOutputPhase, tlpAtsControlEntry=tlpAtsControlEntry, tlpAtsInputNominalVoltage=tlpAtsInputNominalVoltage, tlpUpsBatteryPackDetailAge=tlpUpsBatteryPackDetailAge, tlpUpsConfigAutoRestartOverTemperature=tlpUpsConfigAutoRestartOverTemperature, tlpAtsDevicePowerOnDelay=tlpAtsDevicePowerOnDelay, tlpAtsCircuitCurrentMax=tlpAtsCircuitCurrentMax, tlpPduAlarmLoadOff34=tlpPduAlarmLoadOff34, tlpPduDisplayEntry=tlpPduDisplayEntry, tlpUpsAlarmEPOActive=tlpUpsAlarmEPOActive, tlpPduConfigTable=tlpPduConfigTable, tlpAtsConfigLowVoltageReset=tlpAtsConfigLowVoltageReset, tlpUpsConfigAutoRestartInverterShutdown=tlpUpsConfigAutoRestartInverterShutdown, tlpUpsAlarmLoadOff21=tlpUpsAlarmLoadOff21, tlpAtsAlarmLoadOff37=tlpAtsAlarmLoadOff37, tlpPduAlarmLoadOff03=tlpPduAlarmLoadOff03, tlpUpsIdentNumBatteryPacks=tlpUpsIdentNumBatteryPacks, tlpDeviceEntry=tlpDeviceEntry, tlpUpsAlarmChargerFailed=tlpUpsAlarmChargerFailed, tlpUpsOutputFrequency=tlpUpsOutputFrequency, tlpAtsConfigVoltageRangeLimitsEntry=tlpAtsConfigVoltageRangeLimitsEntry, tlpEnvTemperatureTable=tlpEnvTemperatureTable, tlpUpsConfigAutoRestartAfterShutdown=tlpUpsConfigAutoRestartAfterShutdown, tlpPduAlarmLoadOff24=tlpPduAlarmLoadOff24, tlpAtsConfigSource1TransferReset=tlpAtsConfigSource1TransferReset, tlpUpsBatteryPackConfigDesignCapacity=tlpUpsBatteryPackConfigDesignCapacity, tlpProducts=tlpProducts, tlpUpsConfigAutoRestartTable=tlpUpsConfigAutoRestartTable, tlpUpsAlarmBypassFrequencyBad=tlpUpsAlarmBypassFrequencyBad, tlpAtsIdentEntry=tlpAtsIdentEntry, tlpAtsConfigOverTemperatureThreshold=tlpAtsConfigOverTemperatureThreshold, tlpUpsOutletCommand=tlpUpsOutletCommand, tlpAtsIdentNumBreakers=tlpAtsIdentNumBreakers, tlpUpsAlarmBypassBad=tlpUpsAlarmBypassBad, tlpAgentAttributesAutostartFTP=tlpAgentAttributesAutostartFTP, tlpPduDeviceOutputPowerTotal=tlpPduDeviceOutputPowerTotal, tlpUpsBatteryPackDetailCycleCount=tlpUpsBatteryPackDetailCycleCount, tlpPduDetail=tlpPduDetail, tlpPduOutputTable=tlpPduOutputTable, tlpUpsAlarmLoadOff27=tlpUpsAlarmLoadOff27, tlpUpsConfigBypassUpperLimitVoltage=tlpUpsConfigBypassUpperLimitVoltage, tlpPduInputPhaseIndex=tlpPduInputPhaseIndex, tlpPduSupportsEnergywise=tlpPduSupportsEnergywise, tlpPduCircuitEntry=tlpPduCircuitEntry, tlpPduOutputIndex=tlpPduOutputIndex, tlpUpsAlarmLoadOff36=tlpUpsAlarmLoadOff36, tlpAgentContacts=tlpAgentContacts, tlpCoolingIdent=tlpCoolingIdent, tlpAgentAttributesHTTPSPort=tlpAgentAttributesHTTPSPort, tlpUpsOutputLinePower=tlpUpsOutputLinePower, tlpCoolingControl=tlpCoolingControl, tlpPduInputLowTransferVoltageUpperBound=tlpPduInputLowTransferVoltageUpperBound, tlpUpsConfigBypassLowerLimitPercent=tlpUpsConfigBypassLowerLimitPercent, tlpAgentEmailContactRowStatus=tlpAgentEmailContactRowStatus, tlpDeviceRegion=tlpDeviceRegion, tlpDeviceIdentCommPortType=tlpDeviceIdentCommPortType, tlpAlarmUserDefined01=tlpAlarmUserDefined01, tlpPduInputHighTransferVoltageUpperBound=tlpPduInputHighTransferVoltageUpperBound, tlpAtsCircuitUtilization=tlpAtsCircuitUtilization, tlpAtsSupportsEntry=tlpAtsSupportsEntry, tlpUpsControlSelfTest=tlpUpsControlSelfTest, tlpAtsAlarmLoadOff29=tlpAtsAlarmLoadOff29, tlpUpsBatteryPackIdentModel=tlpUpsBatteryPackIdentModel, tlpUpsDeviceMainLoadControllable=tlpUpsDeviceMainLoadControllable, tlpAtsAlarmCurrentAboveThresholdB3=tlpAtsAlarmCurrentAboveThresholdB3, tlpAgentAttributesSupportsSSHMenu=tlpAgentAttributesSupportsSSHMenu, tlpUpsOutputLineTable=tlpUpsOutputLineTable, tlpUpsControlUpsReboot=tlpUpsControlUpsReboot, tlpUpsAlarmLoadOff18=tlpUpsAlarmLoadOff18, tlpPduOutletShedDelay=tlpPduOutletShedDelay, tlpUpsBatteryPackDetailTemperatureC=tlpUpsBatteryPackDetailTemperatureC, tlpUpsControlEntry=tlpUpsControlEntry, tlpUpsBatteryRunTimeRemaining=tlpUpsBatteryRunTimeRemaining, tlpUpsAlarmBatteryOverVoltage=tlpUpsAlarmBatteryOverVoltage, tlpAtsAlarmSource1OverVoltage=tlpAtsAlarmSource1OverVoltage, tlpAtsInputFairVoltageThreshold=tlpAtsInputFairVoltageThreshold, tlpUpsAlarmOverCharged=tlpUpsAlarmOverCharged, tlpAgentAttributesAutostartSNMP=tlpAgentAttributesAutostartSNMP, tlpUpsSupportsEnergywise=tlpUpsSupportsEnergywise, tlpPduOutletControllable=tlpPduOutletControllable, tlpAtsIdentTable=tlpAtsIdentTable, tlpUpsDeviceMainLoadCommand=tlpUpsDeviceMainLoadCommand, tlpUpsControlTable=tlpUpsControlTable, tlpPduOutletRampAction=tlpPduOutletRampAction, tlpDeviceTable=tlpDeviceTable, tlpAtsOutletDescription=tlpAtsOutletDescription, tlpDeviceIdentTable=tlpDeviceIdentTable, tlpAtsAlarmLoadOff14=tlpAtsAlarmLoadOff14, tlpDeviceIndex=tlpDeviceIndex, tlpUpsAlarmFuseFailure=tlpUpsAlarmFuseFailure, tlpAlarmId=tlpAlarmId, tlpPduOutletGroupState=tlpPduOutletGroupState, tlpAgentSnmpContactPrivPassword=tlpAgentSnmpContactPrivPassword, tlpUpsAlarmBatteryBad=tlpUpsAlarmBatteryBad, tlpAlarmUserDefined02=tlpAlarmUserDefined02, tlpUpsInputPhaseVoltageMin=tlpUpsInputPhaseVoltageMin, tlpPduCircuitUtilization=tlpPduCircuitUtilization, tlpRackTrackDevice=tlpRackTrackDevice, tlpPduSupportsRampShed=tlpPduSupportsRampShed, tlpUpsInputPhasePower=tlpUpsInputPhasePower, tlpPduDeviceAggregatePowerFactor=tlpPduDeviceAggregatePowerFactor, tlpUpsAlarmLoadLevelAboveThresholdPhase3=tlpUpsAlarmLoadLevelAboveThresholdPhase3, tlpUpsBatteryStatus=tlpUpsBatteryStatus, tlpAtsControlRamp=tlpAtsControlRamp, tlpAtsConfigHighVoltageTransfer=tlpAtsConfigHighVoltageTransfer, tlpUpsControlShed=tlpUpsControlShed, tlpPduAlarmLoadOff10=tlpPduAlarmLoadOff10, tlpAtsAlarmLoadOff36=tlpAtsAlarmLoadOff36)
| 127.823743 | 12,764 | 0.765922 | 27,775 | 246,572 | 6.799388 | 0.047309 | 0.022557 | 0.016696 | 0.021541 | 0.390881 | 0.376896 | 0.359661 | 0.349256 | 0.334827 | 0.321403 | 0 | 0.087193 | 0.087832 | 246,572 | 1,928 | 12,765 | 127.890041 | 0.752471 | 0.001132 | 0 | 0 | 0 | 0 | 0.075218 | 0.001592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025508 | 0.003644 | 0 | 0.003644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e8b22d737376719453563f470775253b6a679695 | 549 | py | Python | succ/succ.py | BlueIsTrue/BlueIsTrue-Cogs | a2111147f09f5d3c8a418a8b4b4712e5d10a6e8b | [
"MIT"
] | null | null | null | succ/succ.py | BlueIsTrue/BlueIsTrue-Cogs | a2111147f09f5d3c8a418a8b4b4712e5d10a6e8b | [
"MIT"
] | null | null | null | succ/succ.py | BlueIsTrue/BlueIsTrue-Cogs | a2111147f09f5d3c8a418a8b4b4712e5d10a6e8b | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from random import choice as rndchoice
from .utils import checks
import os
class Succ:
"""Succ command."""
def __init__(self, bot):
self.bot = bot
@commands.group(pass_context=True, invoke_without_command=True)
async def givemethesucc(self, ctx, *, user: discord.Member=None):
"""Gives you succ"""
botid = self.bot.user.id
user = ctx.message.author
await self.bot.say("**Slurp Slurp**")
def setup(bot):
n = Succ(bot)
bot.add_cog(n)
| 22.875 | 69 | 0.655738 | 76 | 549 | 4.631579 | 0.578947 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225865 | 549 | 23 | 70 | 23.869565 | 0.828235 | 0.023679 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.0625 | 0.3125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
e8b631b27a5b53fad687b0119cc4d33a36404bb6 | 620 | py | Python | generate_all_data.py | cenetp/roomconf-adaptation | da455378c4522d8fe02c283b54da15f29fee9311 | [
"MIT"
] | null | null | null | generate_all_data.py | cenetp/roomconf-adaptation | da455378c4522d8fe02c283b54da15f29fee9311 | [
"MIT"
] | null | null | null | generate_all_data.py | cenetp/roomconf-adaptation | da455378c4522d8fe02c283b54da15f29fee9311 | [
"MIT"
] | null | null | null | import generate_cnn_data as gcd
max_room_count = gcd.max_room_count
cnns = ['classificator', 'discriminator']
data_types = ['train', 'test']
# 15000 test and 3000 train for classificator
gcd.generate_data(cnns[0], data_types[0], num_classes=3, amount=5000, mode='no_default_random')
gcd.generate_data(cnns[0], data_types[1], num_classes=3, amount=1000, mode='no_default_random')
# 10000 test and 2000 train for discriminator
gcd.generate_data(cnns[1], data_types[0], num_classes=2, amount=5000, mode='no_default_random')
gcd.generate_data(cnns[1], data_types[1], num_classes=2, amount=1000, mode='no_default_random')
| 44.285714 | 95 | 0.777419 | 102 | 620 | 4.460784 | 0.333333 | 0.098901 | 0.131868 | 0.167033 | 0.606593 | 0.50989 | 0.382418 | 0.210989 | 0.210989 | 0.210989 | 0 | 0.081272 | 0.087097 | 620 | 13 | 96 | 47.692308 | 0.722615 | 0.140323 | 0 | 0 | 1 | 0 | 0.19434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2cd5fe2caba65a58ef9cde828f1517e1bf9ecd4b | 6,836 | py | Python | AutotestWebD/all_models/models/A0013_ui_test.py | yangjourney/sosotest | 2e88099a829749910ca325253c9b1a2e368d21a0 | [
"MIT"
] | 422 | 2019-08-18T05:04:20.000Z | 2022-03-31T06:49:19.000Z | AutotestWebD/all_models/models/A0013_ui_test.py | LinSongJian1985/sosotest | 091863dee531b5726650bb63efd6f169267cbeb4 | [
"MIT"
] | 10 | 2019-10-24T09:55:38.000Z | 2021-09-29T17:28:43.000Z | AutotestWebD/all_models/models/A0013_ui_test.py | LinSongJian1985/sosotest | 091863dee531b5726650bb63efd6f169267cbeb4 | [
"MIT"
] | 202 | 2019-08-18T05:04:27.000Z | 2022-03-30T05:57:18.000Z | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from __future__ import unicode_literals
from django.db import models
from all_models.models.A0001_user import *
from all_models.models.A0002_config import *
from all_models.models.A0003_attribute import *
from all_models.models.A0006_testcase import *
import django.utils.timezone
import datetime
class TbUiTaskSimple(models.Model):
taskId = models.CharField(db_column='taskId', unique=True, default="", max_length=25, verbose_name="任务ID")
title = models.CharField(max_length=100, verbose_name="任务标题")
taskdesc = models.CharField(max_length=1000, verbose_name="任务描述")
businessLineId = models.IntegerField(db_column='businessLineId', default=1, verbose_name="businessLineId")
moduleId = models.IntegerField(db_column='moduleId', default=1, verbose_name="模块Id")
sourceGroup = models.CharField(db_column='sourceGroup', default="['电脑Web']", max_length=1000, verbose_name="任务包含的来源名称,例如 IOS 安卓 Web端 所有")
tasklevel = models.IntegerField(default=5, verbose_name="优先级,数字越小,优先级越高,从0-9。 0高 5中 9低")
emailList = models.CharField(db_column='emailList', max_length=2000, default='', verbose_name="发送邮件列表,除却执行人execBy以外的其他收件人") # release2 新增
status = models.IntegerField(default=2, verbose_name="状态,1新建待审核 2审核通过 3审核未通过")
# 基本信息
fileName = models.CharField(max_length=300, db_column="fileName", verbose_name="文件名称")
sheetName = models.CharField(max_length=300, db_column='sheetName', default="", verbose_name="执行的表单")
fileAddBy = models.CharField(max_length=100, db_column="fileAddBy", verbose_name="文件添加人")
state = models.IntegerField(default=1, verbose_name="状态 0删除 1有效")
addBy = models.ForeignKey(to=TbUser, to_field="loginName", related_name="TbUiTaskSimpleAddBy", on_delete=models.CASCADE, db_column='addBy', verbose_name="创建者登录名")
modBy = models.CharField(max_length=25, db_column='modBy', null=True, verbose_name="修改者登录名")
addTime = models.DateTimeField(db_column='addTime', auto_now_add=True, verbose_name="创建时间")
modTime = models.DateTimeField(db_column='modTime', auto_now=True, verbose_name="修改时间")
class Meta:
db_table = 'tb_ui_task_simple'
class TbUITestExecute(models.Model):
taskId = models.CharField(db_column='taskId', default="",max_length=25, verbose_name="任务ID")
title = models.CharField(max_length=100,default="", verbose_name="任务标题")
taskdesc = models.CharField(max_length=1000,default="", verbose_name="任务描述")
businessLineId = models.IntegerField(db_column='businessLineId', default=1, verbose_name="businessLineId")
moduleId = models.IntegerField(db_column='moduleId', default=1, verbose_name="模块Id")
sourceGroup = models.CharField(db_column='sourceGroup', default="['电脑Web']", max_length=1000, verbose_name="任务包含的来源名称,例如 IOS 安卓 Web端 所有")
tasklevel = models.IntegerField(default=5, verbose_name="优先级,数字越小,优先级越高,从0-9。 0高 5中 9低")
#基本信息
fileName = models.CharField(max_length=300,db_column="fileName",verbose_name="文件名称")
sheetName = models.CharField(max_length=300, db_column='sheetName', default="", verbose_name="执行的表单")
fileAddBy = models.CharField(max_length=100,db_column="fileAddBy",verbose_name="文件添加人")
#执行信息
httpConfKey = models.CharField(max_length=300, db_column='httpConfKey',default="", verbose_name="执行环境的httpConfKey")
reportDir = models.CharField(max_length=100,db_column="reportDir", verbose_name="测试报告路径")
packageId = models.CharField(db_column='packageId', default="", max_length=25, verbose_name="包ID")
serverId = models.IntegerField(db_column='serverId', default=0, verbose_name="执行本次的appium服务ia")
#执行信息
execStatus = models.IntegerField(db_column='execStatus', default=1, verbose_name="执行状态: NOTRUN = 1 RUNNING = 2 DONE = 3 EXCEPTION = 4 CANCELING = 10 CANCELED = 11")
execCommand = models.CharField(max_length=5000,default="",db_column="execCommand",verbose_name="执行命令")
execStartTime = models.DateTimeField(db_column='execStartTime',default="2018-02-01 00:00:00",verbose_name="执行开始时间")
execEndTime = models.DateTimeField(db_column='execEndTime',default="2018-02-01 00:00:00",verbose_name="执行结束时间")
execTakeTime = models.CharField(db_column='execTakeTime',default="0",max_length=100,verbose_name="执行使用时间")
execProgressString = models.TextField(db_column="execProgressString",verbose_name="执行进度信息")
execComments = models.CharField(db_column='execComments',default="", max_length=400,verbose_name="执行备注信息")
isSendEmail = models.IntegerField(db_column='isSendEmail',default=0,verbose_name="是否发送邮件[是否发送:是否带附件:PASS是否发送:FAIL是否发送:ERROR是否发送:EXCEPTION是否发送]0的时候不发送,1开头的时候依次往后判断即可后面没有的都是1,例如11标识发送带附件所有情况都发送10标识发送不带附件所有情况都发送100标识发送不带附件成功不发送其他情况发送")
emailList = models.CharField(db_column='emailList', max_length=2000,default='',verbose_name="发送邮件列表,除却执行人execBy以外的其他收件人")#release2 新增
#执行结果信息
testResult = models.CharField(max_length=300,default="",db_column="testResult",verbose_name="测试结果")
testResultMessage = models.TextField(default="",db_column="testResultMessage",verbose_name="测试结果详情")
state = models.IntegerField(default=1, verbose_name="状态 0删除 1有效")
addBy = models.CharField(max_length=25, db_column='addBy', null=True, blank=True, verbose_name="创建者登录名")
modBy = models.CharField(max_length=25, db_column='modBy', null=True, blank=True, verbose_name="修改者登录名")
addTime = models.DateTimeField(db_column='addTime', auto_now_add=True, verbose_name="创建时间")
modTime = models.DateTimeField(db_column='modTime', auto_now=True, verbose_name="修改时间")
class Meta:
db_table = 'tb_ui_test_execute'
class TbUITestExcel(models.Model):
fileName = models.CharField(max_length=300,db_column="fileName",verbose_name="文件名称")
sheetNames = models.CharField(max_length=500,db_column="sheetNames",default="",verbose_name="文件包含的表单")
state = models.IntegerField(default=1, verbose_name="状态 0删除 1有效")
addBy = models.CharField(max_length=25, db_column='addBy', null=True, blank=True, verbose_name="创建者登录名")
modBy = models.CharField(max_length=25, db_column='modBy', null=True, blank=True, verbose_name="修改者登录名")
addTime = models.DateTimeField(db_column='addTime', auto_now_add=True, verbose_name="创建时间")
modTime = models.DateTimeField(db_column='modTime', auto_now=True, verbose_name="修改时间")
class Meta:
db_table = "tb_ui_test_excel"
unique_together = (('fileName', 'addBy'),) | 67.019608 | 236 | 0.759362 | 888 | 6,836 | 5.655405 | 0.257883 | 0.11828 | 0.075269 | 0.100358 | 0.604142 | 0.579251 | 0.573477 | 0.559538 | 0.541219 | 0.508164 | 0 | 0.030552 | 0.109421 | 6,836 | 102 | 237 | 67.019608 | 0.79435 | 0.072996 | 0 | 0.458333 | 1 | 0 | 0.195477 | 0.031631 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013889 | 0.111111 | 0 | 0.944444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2cd87d90d1d4b44dd965a9bdd8bfc0f97e6ecf06 | 188 | py | Python | src/setup.py | mjj4791/CCLLexer | 30d19547d59460f0256863a97cb8927083ffbd9f | [
"MIT"
] | null | null | null | src/setup.py | mjj4791/CCLLexer | 30d19547d59460f0256863a97cb8927083ffbd9f | [
"MIT"
] | null | null | null | src/setup.py | mjj4791/CCLLexer | 30d19547d59460f0256863a97cb8927083ffbd9f | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup (
name='ccllexer',
packages=find_packages(),
entry_points =
"""
[pygments.lexers]
ccllexer = ccllexer.lexer:CCLLexer
""",
) | 17.090909 | 43 | 0.696809 | 20 | 188 | 6.4 | 0.65 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 188 | 11 | 44 | 17.090909 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ceb47da7af56c0f84eb803814d99999f9df8278 | 912 | py | Python | ex8_netmiko.py | sbyount/pynet_test | a82e73cdac57f263361b287b543543ace4c7984c | [
"Apache-2.0"
] | null | null | null | ex8_netmiko.py | sbyount/pynet_test | a82e73cdac57f263361b287b543543ace4c7984c | [
"Apache-2.0"
] | null | null | null | ex8_netmiko.py | sbyount/pynet_test | a82e73cdac57f263361b287b543543ace4c7984c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Use Netmiko to change the logging buffer size on pytnet-rtr1 & pynet-rtr2.
'''
from getpass import getpass
from netmiko import ConnectHandler
from test_devices import pynet1, pynet2, juniper_srx
def main():
'''
Use Netmiko to change the logging buffer size on pynet-rtr2.
'''
password = getpass()
# Get connection parameters setup correctly
for a_dict in (pynet1, pynet2):
a_dict['password'] = password
a_dict['verbose'] = False
net_connect = ConnectHandler(**a_dict)
net_connect.send_config_from_file(config_file='config_file.txt')
output = net_connect.send_command("show run | inc logging buffer")
print
print '>' * 80
print "Device: {}:{}".format(net_connect.ip, net_connect.port)
print
print output
print '<' * 80
print
if __name__ == "__main__":
main()
| 27.636364 | 74 | 0.649123 | 115 | 912 | 4.930435 | 0.521739 | 0.088183 | 0.042328 | 0.063492 | 0.141093 | 0.141093 | 0.141093 | 0.141093 | 0.141093 | 0 | 0 | 0.016035 | 0.247807 | 912 | 32 | 75 | 28.5 | 0.810496 | 0.067982 | 0 | 0.15 | 0 | 0 | 0.118841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.15 | 0.15 | null | null | 0.35 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2cf9230fcc5ff808c41b7ad3f1a028f0334810ba | 5,005 | py | Python | src/sardana/macroserver/scan/recorder/datarecorder.py | schooft/sardana | 76287b416650f40da79871ee3849340d0ff31f1d | [
"CC-BY-3.0"
] | null | null | null | src/sardana/macroserver/scan/recorder/datarecorder.py | schooft/sardana | 76287b416650f40da79871ee3849340d0ff31f1d | [
"CC-BY-3.0"
] | null | null | null | src/sardana/macroserver/scan/recorder/datarecorder.py | schooft/sardana | 76287b416650f40da79871ee3849340d0ff31f1d | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python
##############################################################################
##
# This file is part of Sardana
##
# http://www.sardana-controls.org/
##
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
##
# Sardana is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
##
# Sardana is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
##
# You should have received a copy of the GNU Lesser General Public License
# along with Sardana. If not, see <http://www.gnu.org/licenses/>.
##
##############################################################################
"""This is the macro server scan data recorder module"""
__all__ = ["SaveModes", "RecorderStatus", "DataHandler", "DataRecorder"]
__docformat__ = 'restructuredtext'
import time
from taurus.core.util.log import Logger
from taurus.core.util.enumeration import Enumeration
SaveModes = Enumeration('SaveModes', ('Record', 'Block'))
RecorderStatus = Enumeration('RecorderStatus', ('Idle', 'Active', 'Disable'))
class DataHandler:
""" The data handler is the data recording center of a system. It contains
one or several recorders. All data transit through the handler, then
given to recorders for final saving """
def __init__(self):
self.recorders = []
def addRecorder(self, recorder):
if recorder is not None:
self.recorders.append(recorder)
def startRecordList(self, recordlist):
for recorder in self.recorders:
if recorder.savemode is SaveModes.Record:
recorder.startRecordList(recordlist)
def endRecordList(self, recordlist):
for recorder in self.recorders:
if recorder.savemode is SaveModes.Record:
recorder.endRecordList(recordlist)
else:
recorder.writeRecordList(recordlist)
def addRecord(self, recordlist, record):
for recorder in self.recorders:
if recorder.savemode is SaveModes.Record:
recorder.writeRecord(record)
else: # blockSave
pass
def addCustomData(self, value, name, **kwargs):
'''Write data other than a record.
:param value: The value to be written
:param name: An identification for this value
Optional keyword arguments can be passed with information that some
recorders may need in order to record this value. For example: the NeXus
recorder will make use of "nxpath" info if available to place the value
where it belongs in the nexus hierarchy. Check the `addCustomData`
method of each recorder to see what they use/require.
'''
for recorder in self.recorders:
recorder.addCustomData(value, name, **kwargs)
#
# Recorders
#
class DataRecorder(Logger):
""" Generic class for data recorder. Does nothing"""
def __init__(self, *args, **kwargs):
name = self.__class__.__name__
self.call__init__(Logger, name)
self.recordlist = None
self.status = RecorderStatus.Idle
self.savemode = SaveModes.Record
def getStatus(self):
return self.status
def disable(self):
self.status = RecorderStatus.Disable
def enable(self):
self.status = RecorderStatus.Idle
def startRecordList(self, recordlist):
is_idle = self.status is RecorderStatus.Idle
if is_idle:
self.recordlist = recordlist
self._startRecordList(recordlist)
if is_idle:
return 0
else:
return -1
def _startRecordList(self, recordlist):
pass
def endRecordList(self, recordlist):
self._endRecordList(recordlist)
self.status = RecorderStatus.Idle
self.recordlist = None
def _endRecordList(self, recordlist):
pass
def writeRecordList(self, recordlist):
""" Only in BLOCK_MODE. Will write whole RecordList """
self._startRecordList(recordlist)
for record in recordlist.records:
self.writeRecord(record)
self._endRecordList(recordlist)
def writeRecord(self, record):
self._writeRecord(record)
def _writeRecord(self, record):
pass
def setSaveMode(self, mode):
self.savemode = mode
def addCustomData(self, value, name, **kwargs):
try:
self._addCustomData(value, name, **kwargs)
except Exception, e:
raise RuntimeError('%s can not process custom data: %s' %
(self.__class__.__name__, e))
def _addCustomData(self, value, name, **kwargs):
pass
| 31.477987 | 80 | 0.64016 | 561 | 5,005 | 5.622103 | 0.358289 | 0.048827 | 0.023779 | 0.02156 | 0.168041 | 0.139505 | 0.096068 | 0.074509 | 0.074509 | 0.074509 | 0 | 0.001864 | 0.24975 | 5,005 | 158 | 81 | 31.677215 | 0.838083 | 0.155245 | 0 | 0.395062 | 0 | 0 | 0.046475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.061728 | 0.037037 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2cfe54decc12e4f652f6d1a5e75eeaf32817f842 | 2,139 | py | Python | qstrader/system/rebalance/daily.py | Dynami/qstrader-1 | 394f19d0ca96a1ee6e0e222f44e571f31ad815a8 | [
"MIT"
] | null | null | null | qstrader/system/rebalance/daily.py | Dynami/qstrader-1 | 394f19d0ca96a1ee6e0e222f44e571f31ad815a8 | [
"MIT"
] | null | null | null | qstrader/system/rebalance/daily.py | Dynami/qstrader-1 | 394f19d0ca96a1ee6e0e222f44e571f31ad815a8 | [
"MIT"
] | null | null | null | import pandas as pd
import pytz
from qstrader.system.rebalance.rebalance import Rebalance
class DailyRebalance(Rebalance):
"""
Generates a list of rebalance timestamps for pre- or post-market,
for all business days (Monday-Friday) between two dates.
Does not take into account holiday calendars.
All timestamps produced are set to UTC.
Parameters
----------
start_date : `pd.Timestamp`
The starting timestamp of the rebalance range.
end_date : `pd.Timestamp`
The ending timestamp of the rebalance range.
pre_market : `Boolean`, optional
Whether to carry out the rebalance at market open/close.
"""
def __init__(
self,
start_date,
#end_date,
pre_market=False
):
self.start_date = start_date
#self.end_date = end_date
self.market_time = self._set_market_time(pre_market)
#self.rebalances = self._generate_rebalances()
def _set_market_time(self, pre_market):
"""
Determines whether to use market open or market close
as the rebalance time.
Parameters
----------
pre_market : `Boolean`
Whether to use market open or market close
as the rebalance time.
Returns
-------
`str`
The string representation of the market time.
"""
return "14:30:00" if pre_market else "21:00:00"
# def _generate_rebalances(self):
# """
# Output the rebalance timestamp list.
# Returns
# -------
# `list[pd.Timestamp]`
# The list of rebalance timestamps.
# """
# rebalance_dates = pd.bdate_range(
# start=self.start_date, end=self.end_date,
# )
# rebalance_times = [
# pd.Timestamp(
# "%s %s" % (date, self.market_time), tz=pytz.utc
# )
# for date in rebalance_dates
# ]
# return rebalance_times
def is_rebalance_event(self, dt):
return dt >= self.start_date and self.is_market_time(self.market_time, dt)
| 27.075949 | 82 | 0.589528 | 249 | 2,139 | 4.891566 | 0.353414 | 0.057471 | 0.042693 | 0.041051 | 0.133005 | 0.087028 | 0.087028 | 0.087028 | 0.087028 | 0.087028 | 0 | 0.008242 | 0.319308 | 2,139 | 78 | 83 | 27.423077 | 0.828297 | 0.602618 | 0 | 0 | 1 | 0 | 0.023988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
fa14c7eb0d23eae173d87125a7308944830a27ce | 908 | py | Python | src/fixturapp/tests/test_dummyapp.py | henriquebastos/django-fixturapp | 3c6fe84f2e85e3f00d7493abc6eaf9d1e8417977 | [
"BSD-3-Clause"
] | 5 | 2015-02-19T19:15:52.000Z | 2019-06-25T02:36:07.000Z | src/fixturapp/tests/test_dummyapp.py | henriquebastos/django-fixturapp | 3c6fe84f2e85e3f00d7493abc6eaf9d1e8417977 | [
"BSD-3-Clause"
] | null | null | null | src/fixturapp/tests/test_dummyapp.py | henriquebastos/django-fixturapp | 3c6fe84f2e85e3f00d7493abc6eaf9d1e8417977 | [
"BSD-3-Clause"
] | null | null | null | from fixture import DataSet, DjangoFixture
from fixture.django_testcase import FixtureTestCase
from fixture.style import NamedDataStyle
from fixturapp.tests.dummyapp.models import Dummy
from fixturapp.tests.dummyapp.datasets import DummyData
class TestDummyapp(FixtureTestCase):
"""
Sample TestCase
"""
fixture = DjangoFixture(style=NamedDataStyle())
datasets = [DummyData]
def test_loaded_fixtures(self):
"""
Check DummyData was loaded at setup.
"""
# Check ragdoll
obj = Dummy.objects.get(id=self.data.DummyData.ragdoll.id)
self.assertTrue(obj.id is not None)
self.assertEqual(obj.name, self.data.DummyData.ragdoll.name)
# Check buster
obj = Dummy.objects.get(id=self.data.DummyData.buster.id)
self.assertTrue(obj.id is not None)
self.assertEqual(obj.name, self.data.DummyData.buster.name)
| 32.428571 | 68 | 0.704846 | 108 | 908 | 5.898148 | 0.388889 | 0.037677 | 0.10675 | 0.081633 | 0.33281 | 0.33281 | 0.33281 | 0.33281 | 0.216641 | 0.216641 | 0 | 0 | 0.201542 | 908 | 27 | 69 | 33.62963 | 0.878621 | 0.088106 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fa4159ba5fc24243de4c7d1994835f07e131120f | 231 | py | Python | ggb/utils/constant.py | reshalfahsi/GGB | f56994ffcd6a83762d67705116e690c7a64c9093 | [
"MIT"
] | 1 | 2021-08-06T05:45:07.000Z | 2021-08-06T05:45:07.000Z | ggb/utils/constant.py | reshalfahsi/GGBColorSpace | f56994ffcd6a83762d67705116e690c7a64c9093 | [
"MIT"
] | 1 | 2021-06-19T02:20:02.000Z | 2021-06-19T02:20:02.000Z | ggb/utils/constant.py | reshalfahsi/GGB | f56994ffcd6a83762d67705116e690c7a64c9093 | [
"MIT"
] | 1 | 2021-05-10T04:14:24.000Z | 2021-05-10T04:14:24.000Z | from enum import Enum
class ColorSpace(Enum):
"""Valid color spaces.
"""
BGR = 1
HSV = 2
RGB = 3
YUV = 4
class CVLib(Enum):
"""Supported computer vision libraries.
"""
OPENCV = 1
PIL = 2
| 12.833333 | 43 | 0.545455 | 29 | 231 | 4.344828 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.341991 | 231 | 17 | 44 | 13.588235 | 0.789474 | 0.264069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
fa455c1c39567948bf985e8c7929806e2899218e | 6,625 | py | Python | examples/meowbit/images_bench.py | shazz/micropython | 41756b5db99221367cc5e30f6699731467644624 | [
"MIT"
] | 3 | 2019-06-08T09:59:02.000Z | 2021-04-03T21:05:09.000Z | examples/meowbit/images_bench.py | shazz/micropython | 41756b5db99221367cc5e30f6699731467644624 | [
"MIT"
] | null | null | null | examples/meowbit/images_bench.py | shazz/micropython | 41756b5db99221367cc5e30f6699731467644624 | [
"MIT"
] | null | null | null | import pyb
from pyb import LED
import framebuf
import image
import time
import gc
import machine
@micropython.native
def display(filename, fn, fb_size, fb_mode, fb_pal):
fbuf = bytearray(fb_size)
tft = pyb.SCREEN()
fb = framebuf.FrameBuffer(fbuf, 160, 128, fb_mode, 160, fb_pal)
img = image.Image(fb)
gtime = time.ticks_us
im_call = fn
dt = []
for i in range(0,20):
t0 = gtime()
im_call(filename)
t1 = gtime()
dt.append(time.ticks_diff(t1, t0))
tft.show(fb)
avg_dt = (sum(dt) / len(dt))/1000
fbuf = None
fb = None
img = None
gc.collect()
return avg_dt
@micropython.native
def display_jpeg(filename):
fbuf = bytearray(160*128*2)
tft = pyb.SCREEN()
fb = framebuf.FrameBuffer(fbuf, 160, 128, framebuf.RGB565, 160)
img = image.Image(fb)
gtime = time.ticks_us
jpg = img.loadjpeg
dt = []
for i in range(0,20):
t0 = gtime()
jpg(filename)
t1 = gtime()
dt.append(time.ticks_diff(t1, t0))
tft.show(fb)
avg_dt = (sum(dt) / len(dt))/1000
fbuf = None
fb = None
img = None
gc.collect()
return avg_dt
@micropython.native
def display_bmp(filename):
fbuf = bytearray(160*128*2)
tft = pyb.SCREEN()
fb = framebuf.FrameBuffer(fbuf, 160, 128, framebuf.RGB565, 160)
img = image.Image(fb)
gtime = time.ticks_us
bmp = img.loadbmp
dt = []
for i in range(0,20):
t0 = gtime()
bmp(filename)
t1 = gtime()
dt.append(time.ticks_diff(t1, t0))
tft.show(fb)
avg_dt = (sum(dt) / len(dt))/1000
fbuf = None
fb = None
img = None
gc.collect()
return avg_dt
@micropython.native
def display_gif(filename):
fbuf = bytearray(160*128*2)
tft = pyb.SCREEN()
fb = framebuf.FrameBuffer(fbuf, 160, 128, framebuf.RGB565, 160)
img = image.Image(fb)
gtime = time.ticks_us
gif = img.loadgif
dt = []
for i in range(0,20):
t0 = gtime()
gif(filename, None)
t1 = gtime()
dt.append(time.ticks_diff(t1, t0))
tft.show(fb)
avg_dt = (sum(dt) / len(dt))/1000
fbuf = None
fb = None
img = None
gc.collect()
return avg_dt
@micropython.native
def display_p16(filename):
fbuf = bytearray(80*128)
tft = pyb.SCREEN()
fb = framebuf.FrameBuffer(fbuf, 160, 128, framebuf.PAL16, 160, framebuf.PAL16_C64)
img = image.Image(fb)
gtime = time.ticks_us
p16 = img.loadp16
dt = []
for i in range(0,20):
t0 = gtime()
p16(filename)
t1 = gtime()
dt.append(time.ticks_diff(t1, t0))
tft.show(fb)
avg_dt = (sum(dt) / len(dt))/1000
fbuf = None
fb = None
img = None
gc.collect()
return avg_dt
@micropython.native
def display_p256(filename):
fbuf = bytearray(160*128)
tft = pyb.SCREEN()
fb = framebuf.FrameBuffer(fbuf, 160, 128, framebuf.PAL256, 160, framebuf.PAL256_884)
img = image.Image(fb)
gtime = time.ticks_us
p256 = img.loadp256
dt = []
for i in range(0,20):
t0 = gtime()
p256(filename)
t1 = gtime()
dt.append(time.ticks_diff(t1, t0))
tft.show(fb)
avg_dt = (sum(dt) / len(dt))/1000
fbuf = None
fb = None
img = None
gc.collect()
return avg_dt
@micropython.native
def display_p16_py(filename):
fbuf = bytearray(80*128)
tft = pyb.SCREEN()
fb = framebuf.FrameBuffer(fbuf, 160, 128, framebuf.PAL16, 160, framebuf.PAL16_C64)
gtime = time.ticks_us
dt = []
for i in range(0,20):
t0 = gtime()
with open("images/test.p16", "rb") as f:
f.readinto(fbuf)
t1 = gtime()
dt.append(time.ticks_diff(t1, t0))
tft.show(fb)
avg_dt = (sum(dt) / len(dt))/1000
fbuf = None
fb = None
img = None
gc.collect()
return avg_dt
@micropython.native
def display_p256_py(filename):
fbuf = bytearray(160*128)
tft = pyb.SCREEN()
fb = framebuf.FrameBuffer(fbuf, 160, 128, framebuf.PAL256, 160, framebuf.PAL256_884)
gtime = time.ticks_us
dt = []
for i in range(0,20):
t0 = gtime()
with open("images/test.p256", "rb") as f:
f.readinto(fbuf)
t1 = gtime()
dt.append(time.ticks_diff(t1, t0))
tft.show(fb)
avg_dt = (sum(dt) / len(dt))/1000
fbuf = None
fb = None
img = None
gc.collect()
return avg_dt
def run_tests():
results_str = "Decoder;Format;CPU;AHB;APB1;APB2;Average time in ms\n"
freqs_test = [
[56000000, 56000000, 14000000, 28000000],
[84000000, 84000000, 42000000, 84000000]
]
# Switch on LEDs to show start
for led in [LED(i) for i in range(1, 3)] :
led.on()
for freqs in freqs_test:
fr_cols = ';'.join(str(int(f/1000000)) for f in freqs)
pyb.freq(freqs[0], freqs[1], freqs[2], freqs[3])
avg_dt_jpg = display_jpeg("images/test3.jpg")
results_str += "{};{};{};{}\n".format("jpeg", "RGB565", fr_cols, avg_dt_jpg)
avg_dt_bmp24 = display_bmp("images/test24.bmp")
results_str += "{};{};{};{}\n".format("bmp", "RGB565", fr_cols, avg_dt_bmp24)
#avg_dt_bmp256 = display_bmp("images/test256.bmp")
#results_str += "{};{};{};{}\n".format("bmp", "PAL256", fr_cols, avg_dt_bmp256)
#avg_dt_bmp16 = display_bmp("images/test16.bmp")
#results_str += "{};{};{};{}\n".format("bmp", "PAL16", fr_cols, avg_dt_bmp16)
#avg_dt_gif = display_gif("images/test256.gif")
#results_str += "{};{};{};{}\n".format("gif", "RGB565", fr_cols, avg_dt_gif)
avg_dt_p16 = display_p16("images/test.p16")
results_str += "{};{};{};{}\n".format("p16", "PAL16", fr_cols, avg_dt_p16)
avg_dt_p16_py = display_p16_py("images/test.p16")
results_str += "{};{};{};{}\n".format("p16_py", "PAL16", fr_cols, avg_dt_p16_py)
avg_dt_p256 = display_p256("images/test.p256")
results_str += "{};{};{};{}\n".format("p256", "PAL256", fr_cols, avg_dt_p256)
avg_dt_p256_py = display_p256_py("images/test.p256")
results_str += "{};{};{};{}\n".format("p256_py", "PAL256", fr_cols, avg_dt_p256_py)
print(results_str)
with open("fileread.csv", "w") as text_file:
print("{}".format(results_str), file=text_file)
# Switch off LEDs to show end
for led in [LED(i) for i in range(1, 3)] :
led.off()
run_tests()
machine.reset() | 26.082677 | 120 | 0.572075 | 930 | 6,625 | 3.931183 | 0.135484 | 0.046499 | 0.016411 | 0.030088 | 0.729486 | 0.70651 | 0.665755 | 0.665755 | 0.603118 | 0.553611 | 0 | 0.094521 | 0.278189 | 6,625 | 254 | 121 | 26.082677 | 0.670013 | 0.068528 | 0 | 0.70936 | 0 | 0 | 0.054843 | 0.00649 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044335 | false | 0 | 0.034483 | 0 | 0.118227 | 0.009852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa64d8b729db3f2c4d176ca07f75cf6ec76fe385 | 199 | gyp | Python | binding.gyp | juliangruber/node-leveled | 32dd0c84a0c09ccc1855d3f18e12b6edcd92e03c | [
"MIT"
] | 3 | 2015-02-12T21:10:16.000Z | 2022-03-19T08:11:48.000Z | binding.gyp | juliangruber/node-leveled | 32dd0c84a0c09ccc1855d3f18e12b6edcd92e03c | [
"MIT"
] | 1 | 2017-03-09T10:08:12.000Z | 2017-03-09T10:08:12.000Z | binding.gyp | juliangruber/node-leveled | 32dd0c84a0c09ccc1855d3f18e12b6edcd92e03c | [
"MIT"
] | null | null | null | {
"targets" : [
{
"target_name" : "leveled",
"sources" : ["src/leveled.cc", "src/batch.cc"],
"dependencies" : [
"deps/leveldb/binding.gyp:leveldb"
]
}
]
}
| 16.583333 | 53 | 0.472362 | 17 | 199 | 5.470588 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321608 | 199 | 11 | 54 | 18.090909 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0.512563 | 0.160804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa66968e5f7b1380b12baf93c95ae99cea58de0b | 1,600 | py | Python | project euler/q31.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | project euler/q31.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | project euler/q31.py | milkmeat/thomas | fbc72af34267488d931a4885d4e19fce22fea582 | [
"MIT"
] | null | null | null | '''
def e(value,target):
d=0
f=0
g=0
for x in range(0,4):
d+=1
for y in range(0,5):
f+=1
for g in range(0,21):
g+=1
c=d*f*g
return c
print e(1,1)
'''
# 0.1, 0.2, 0.5
# x, y, z,
# 0.1*x+0.2*y+0.5*z =? 2
#1p, 2p, 5p, 10p, 20p, 50p, 1 (100p) and 2 (200p)
# a b c d e f g h
count=0
def check(s):
if s==200:
global count, a,b,c,d,e,f,g,h
count+=1
#print a,b,c,d,e,f,g,h,count
return s>=200
for a in range(0,200+1):
suma=a*1
if check(suma):
break
for b in range(0,100+1):
sumb=suma+b*2
if check(sumb):
break
for c in range(0,40+1):
sumc=sumb+c*5
if check(sumc):
break
for d in range(0,20+1):
sumd=sumc+d*10
if check(sumd):
break
for e in range(0,10+1):
sume=sumd+e*20
if check(sume):
break
for f in range(0,4+1):
sumf=sume+f*50
if check(sumf):
break
for g in range(0,2+1):
sumg=sumf+g*100
if check(sumg):
break
for h in range(0,1+1):
sumh = sumg+h*200
check(sumh)
print count | 25.806452 | 51 | 0.3425 | 234 | 1,600 | 2.34188 | 0.230769 | 0.140511 | 0.160584 | 0.021898 | 0.114964 | 0.071168 | 0.071168 | 0.071168 | 0.071168 | 0 | 0 | 0.135246 | 0.5425 | 1,600 | 62 | 52 | 25.806452 | 0.613388 | 0.106875 | 0 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fa69bd7d7c68df58c1e6190ea72750add1635a1f | 8,184 | py | Python | datanode/src/slippy_util_test.py | airmap/InterUSS-Platform | fa19af360826b4dd7b841013c0c569a4f282919d | [
"Apache-2.0"
] | null | null | null | datanode/src/slippy_util_test.py | airmap/InterUSS-Platform | fa19af360826b4dd7b841013c0c569a4f282919d | [
"Apache-2.0"
] | 1 | 2021-03-26T12:13:17.000Z | 2021-03-26T12:13:17.000Z | datanode/src/slippy_util_test.py | isabella232/InterUSS-Platform | fa19af360826b4dd7b841013c0c569a4f282919d | [
"Apache-2.0"
] | 2 | 2019-08-11T20:20:32.000Z | 2021-03-26T12:01:43.000Z | """Test of the InterUSS Platform Data Node slippy utilities.
Copyright 2018 Google LLC
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
https://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 unittest
import slippy_util
class InterUSSSlippyUtilitiesTestCase(unittest.TestCase):
def testValidateSlippy(self):
pass
def testValidateSlippy(self):
pass
def testValidCSVConversions(self):
self.assertEqual([(0.0, 0.0)], slippy_util.convert_csv_to_coordinates('0,0'))
self.assertEqual([(40.0, 0.0)], slippy_util.convert_csv_to_coordinates('40,0'))
self.assertEqual([(40.4, 0.0)],
slippy_util.convert_csv_to_coordinates('40.4,0'))
self.assertEqual([(40.4, 110.0)],
slippy_util.convert_csv_to_coordinates('40.4,110'))
self.assertEqual([(40.4, 110.1)],
slippy_util.convert_csv_to_coordinates('40.4,110.1'))
def testInvalidCSVConversions(self):
with self.assertRaises(TypeError):
slippy_util.convert_csv_to_coordinates(None)
with self.assertRaises(TypeError):
slippy_util.convert_csv_to_coordinates(0)
with self.assertRaises(TypeError):
slippy_util.convert_csv_to_coordinates('')
with self.assertRaises(ValueError):
slippy_util.convert_csv_to_coordinates('1')
with self.assertRaises(ValueError):
slippy_util.convert_csv_to_coordinates('10 100')
with self.assertRaises(ValueError):
slippy_util.convert_csv_to_coordinates('COORDS')
with self.assertRaises(ValueError):
slippy_util.convert_csv_to_coordinates('10,C')
with self.assertRaises(ValueError):
slippy_util.convert_csv_to_coordinates('91,10')
with self.assertRaises(ValueError):
slippy_util.convert_csv_to_coordinates('10,191')
with self.assertRaises(ValueError):
slippy_util.convert_csv_to_coordinates('10,11,12')
def testConversionOfTilesToPolygons(self):
pass
def testValidPointConversions(self):
self.assertEqual((0, 0), slippy_util.convert_point_to_tile(0, 0, 0))
self.assertEqual((1, 1), slippy_util.convert_point_to_tile(1, 0, 0))
self.assertEqual((2, 2), slippy_util.convert_point_to_tile(2, 0, 0))
self.assertEqual((3, 1), slippy_util.convert_point_to_tile(2, 34, 110))
self.assertEqual((412, 204), slippy_util.convert_point_to_tile(9, 34, 110))
self.assertEqual((412, 307), slippy_util.convert_point_to_tile(9, -34, 110))
self.assertEqual((99, 307), slippy_util.convert_point_to_tile(9, -34, -110))
self.assertEqual((99, 204), slippy_util.convert_point_to_tile(9, 34, -110))
def testInvalidPointConversions(self):
with self.assertRaises(ValueError):
slippy_util.convert_point_to_tile(-1, 0, 0)
with self.assertRaises(ValueError):
slippy_util.convert_point_to_tile(21, 0, 0)
with self.assertRaises(ValueError):
slippy_util.convert_point_to_tile(1, 91, 10)
with self.assertRaises(ValueError):
slippy_util.convert_point_to_tile(1, 10, 191)
with self.assertRaises(TypeError):
slippy_util.convert_point_to_tile(1, 10, None)
with self.assertRaises(ValueError):
slippy_util.convert_path_to_tiles(0, [(0, 0)])
with self.assertRaises(OverflowError):
slippy_util.convert_path_to_tiles(15, [(0, 0), (1, 1.5)])
def testValidPathConversions(self):
self.assertEqual(1,
len(slippy_util.convert_path_to_tiles(0, [(0, 0), (1, 1.5)])))
self.assertEqual(2,
len(slippy_util.convert_path_to_tiles(5, [(0, 0), (1, 1.5)])))
# One segment should be the same as two segments that overlapp
self.assertEqual(len(slippy_util.convert_path_to_tiles(10, [(0, 0), (1, 1.5)])),
len(slippy_util.convert_path_to_tiles(10, [(0, 0), (1, 1.5),
(0, 0)])))
# 4 points are in 4 separate grids,
# and there are 2 grids underlapping the path
self.assertEqual(6, len(
slippy_util.convert_path_to_tiles(9, [(47.5, -103), (47.5, -102.5),
(48, -102.5), (48, -103),
(47.5, -103)])))
# Corner cutter case that two points are in two grids, but they cut
# a corner and that grid should be included
self.assertEqual(3, len(
slippy_util.convert_path_to_tiles(
9, [(37.936541030367316, -122.377713074509),
(37.69672993401783, -122.10422390269278)])))
def testInvalidPathConversions(self):
with self.assertRaises(TypeError):
slippy_util.convert_path_to_tiles(0, None)
with self.assertRaises(TypeError):
slippy_util.convert_path_to_tiles(0, 0)
with self.assertRaises(TypeError):
slippy_util.convert_path_to_tiles(0, '0,0,1,1.5')
with self.assertRaises(ValueError):
slippy_util.convert_path_to_tiles(0, [])
with self.assertRaises(TypeError):
slippy_util.convert_path_to_tiles(0, [(0), (1)])
# test a lot of tiles calculation
with self.assertRaises(OverflowError):
slippy_util.convert_polygon_to_tiles(15, [(47.5, -103), (47.5, -101.8),
(48, -101.8), (48, -103),
(47.5, -103)])
def testValidPolygonConversions(self):
self.assertEqual(1, len(
slippy_util.convert_polygon_to_tiles(0, [(0, 0), (1, 1.5), (2, 0), (0, 0)])))
self.assertEqual(2, len(
slippy_util.convert_polygon_to_tiles(5, [(0, 0), (1, 1.5), (2, 0), (0, 0)])))
# check auto closing
self.assertEqual(
slippy_util.convert_polygon_to_tiles(9, [(0, 0), (1, 1.5), (2, 0)]),
slippy_util.convert_polygon_to_tiles(9, [(0, 0), (1, 1.5), (2, 0), (0, 0)]))
# 4 points are in 4 separate grids,
# and there are 4 grids underlapping the path, and 1 grid surrounded
self.assertEqual(9, len(
slippy_util.convert_polygon_to_tiles(9, [(47.5, -103), (47.5, -101.8),
(48, -101.8), (48, -103),
(47.5, -103)])))
def testInvalidPolygonConversions(self):
with self.assertRaises(TypeError):
slippy_util.convert_polygon_to_tiles(0, None)
with self.assertRaises(TypeError):
slippy_util.convert_polygon_to_tiles(0, 0)
with self.assertRaises(TypeError):
slippy_util.convert_polygon_to_tiles(0, '0,0,1,1.5')
with self.assertRaises(ValueError):
slippy_util.convert_polygon_to_tiles(0, [])
with self.assertRaises(ValueError):
slippy_util.convert_polygon_to_tiles(0, [(0), (1)])
def testSlippyConversionsForSpecialCases(self):
# 4x4 grid used for these tests at zoom 4
# 8,8 9,8 10,8 11,8
# 8,9 9,9 10,9 11,9
# 8,10 9,10 10,10 11,10
# 8,11 9,11 10,11 11,11
# points of interest
point_8x8 = (-19.808, 20.039)
point_8x11 = (-65.730, 19.160)
point_11x11 = (-58.263, 71.367)
point_11x8 = (-6.839, 82.441)
# all 16 for all four by polygon
self.assertEqual(16, len(
slippy_util.convert_polygon_to_tiles(
4, [point_8x8, point_8x11, point_11x11, point_11x8])))
# only 10 by path (no closing the path)
self.assertEqual(10, len(
slippy_util.convert_path_to_tiles(
4, [point_8x8, point_8x11, point_11x11, point_11x8])))
# corner to corner should be 7
self.assertEqual(7, len(
slippy_util.convert_path_to_tiles(
4, [point_8x8, point_11x11])))
self.assertEqual(7, len(
slippy_util.convert_path_to_tiles(
4, [point_8x11, point_11x8])))
# triangle to the bottom is 11
self.assertEqual(11, len(
slippy_util.convert_polygon_to_tiles(
4, [point_11x8, point_8x11, point_11x11, point_11x8])))
| 43.301587 | 84 | 0.661901 | 1,150 | 8,184 | 4.493913 | 0.174783 | 0.112229 | 0.1875 | 0.065015 | 0.674149 | 0.626161 | 0.610488 | 0.552438 | 0.513932 | 0.45356 | 0 | 0.096402 | 0.21542 | 8,184 | 188 | 85 | 43.531915 | 0.708457 | 0.158602 | 0 | 0.343066 | 0 | 0 | 0.012389 | 0 | 0 | 0 | 0 | 0 | 0.40146 | 1 | 0.087591 | false | 0.021898 | 0.014599 | 0 | 0.109489 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d70d5d34e743e859436b4aeba78bb49f2f2d6ea3 | 117 | py | Python | api/dummy_data.py | KieranWynn/python-auth-api | 64cbe27c7612cc8149883be2e9b7e57a3a5a46a9 | [
"MIT"
] | null | null | null | api/dummy_data.py | KieranWynn/python-auth-api | 64cbe27c7612cc8149883be2e9b7e57a3a5a46a9 | [
"MIT"
] | null | null | null | api/dummy_data.py | KieranWynn/python-auth-api | 64cbe27c7612cc8149883be2e9b7e57a3a5a46a9 | [
"MIT"
] | null | null | null | posts = [
{
"id": 1,
"title": "Pancake",
"content": "Lorem Ipsum ..."
}
]
users = [] | 13 | 36 | 0.358974 | 9 | 117 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.418803 | 117 | 9 | 37 | 13 | 0.602941 | 0 | 0 | 0 | 0 | 0 | 0.305085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d71d1adc32f29eec0fca05818be2895f4678e0ca | 291 | py | Python | learner/exercise/triangle.py | yaozeye/python | 9a279e3ae07f5e5cba018aad1db5bbc26b0d470e | [
"MIT"
] | null | null | null | learner/exercise/triangle.py | yaozeye/python | 9a279e3ae07f5e5cba018aad1db5bbc26b0d470e | [
"MIT"
] | null | null | null | learner/exercise/triangle.py | yaozeye/python | 9a279e3ae07f5e5cba018aad1db5bbc26b0d470e | [
"MIT"
] | null | null | null | # Python Turtle Triangle
# Code by Yaoze Ye
# https://yaozeye.github.io
# 05 March, 2020
# under the MIT License https://github.com/yaozeye/python/raw/master/LICENSE
import turtle
turtle.fd(100)
turtle.seth(120)
turtle.fd(100)
turtle.seth(240)
turtle.fd(100)
turtle.seth(0)
turtle.done()
| 20.785714 | 77 | 0.745704 | 48 | 291 | 4.520833 | 0.604167 | 0.110599 | 0.152074 | 0.235023 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085271 | 0.113402 | 291 | 13 | 78 | 22.384615 | 0.755814 | 0.539519 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d7228fb280557414d9370c95d7b4656c27913aef | 308 | py | Python | GuessingGame.py | Abhyudai2008/Guess-the-number-Game | 4321a401532d3c67cc01da78ca37b881087e4685 | [
"MIT"
] | null | null | null | GuessingGame.py | Abhyudai2008/Guess-the-number-Game | 4321a401532d3c67cc01da78ca37b881087e4685 | [
"MIT"
] | null | null | null | GuessingGame.py | Abhyudai2008/Guess-the-number-Game | 4321a401532d3c67cc01da78ca37b881087e4685 | [
"MIT"
] | null | null | null | import random
number = random.randint(1,9)
guess = int(input("guess a number between 1-10: "))
print(number)
if (guess==number):
print("hurray you won!!")
elif(guess==number-5):
print("very close")
elif(guess==number+5):
print("very close")
else:
print("better luck next time") | 25.666667 | 52 | 0.636364 | 45 | 308 | 4.355556 | 0.577778 | 0.168367 | 0.153061 | 0.163265 | 0.306122 | 0.306122 | 0.306122 | 0 | 0 | 0 | 0 | 0.028226 | 0.194805 | 308 | 12 | 53 | 25.666667 | 0.762097 | 0 | 0 | 0.166667 | 0 | 0 | 0.288591 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
d7235a0364e3e04e4a73c726babad691eb7febe5 | 2,314 | py | Python | functions/util_functions.py | navdeep710/pulumi-gcp | 9f9eefa3dd2b7c482f4a8201fe9c5777df7f1b02 | [
"MIT"
] | 1 | 2020-01-09T09:14:30.000Z | 2020-01-09T09:14:30.000Z | functions/util_functions.py | navdeep710/pulumi-gcp | 9f9eefa3dd2b7c482f4a8201fe9c5777df7f1b02 | [
"MIT"
] | null | null | null | functions/util_functions.py | navdeep710/pulumi-gcp | 9f9eefa3dd2b7c482f4a8201fe9c5777df7f1b02 | [
"MIT"
] | null | null | null | import datetime
import functools
import operator
import random
import time
from functools import reduce
INCOMING_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S"
DEFAULT_OUTGOING_FORMAT = "%d-%m-%Y"
def delayed(seconds):
def decorator(f):
def wrapper(*args, **kargs):
time.sleep(seconds)
return f(*args,**kargs)
return wrapper
return decorator
def safe_run(func):
def wrapper(*args,**kwargs):
try:
return func(*args,**kwargs)
except:
client.report_exception()
return wrapper
"""
we are only expecting single values
"""
def getFromDict(dataDict, mapList):
try:
return reduce(operator.getitem, mapList, dataDict)
except:
return ""
def get_dictionary_from_map_function(data_dictionary,validity_function_mapping,sanitize_function=lambda x:x):
return {key:sanitize_function(getFromDict(data_dictionary,value)) for key,value in validity_function_mapping.items()}
def get_string_from_datetime(job_date_time, date_format=DEFAULT_OUTGOING_FORMAT):
try:
return job_date_time.strftime(date_format)
except:
return ""
def get_date_from_schedule_string(job_string, date_format=INCOMING_DATE_FORMAT):
try:
return datetime.datetime.strptime(job_string.replace('+05:30',''), date_format)
except:
return job_string
def setInDict(dataDict, mapList, value):
for k in mapList[:-1]: dataDict = dataDict[k]
dataDict[mapList[-1]] = value
from google.cloud import error_reporting
client = error_reporting.Client()
def compose(*functions):
return functools.reduce(lambda f, g: lambda x: f(g(x)), functions, lambda x: x)
def sanitize_string_keys_dictionary(value,sanitize_function):
if isinstance(value,str):
return sanitize_function(value)
else:
return value
def string_sanitize_functions():
return compose(lambda x:x.replace("$", " "), lambda x: x.strip())
def sanitise_dictionary_with_string_keys(mdict,string_sanitize_function=string_sanitize_functions()):
return {key:sanitize_string_keys_dictionary(value,string_sanitize_function) for key,value in mdict.items()}
def response_content_to_json(response):
try:
json_response = response.json()
return json_response
except:
return {}
| 26.295455 | 121 | 0.710026 | 295 | 2,314 | 5.342373 | 0.318644 | 0.038071 | 0.020305 | 0.022843 | 0.041878 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003193 | 0.187986 | 2,314 | 87 | 122 | 26.597701 | 0.835551 | 0 | 0 | 0.229508 | 0 | 0 | 0.014531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245902 | false | 0 | 0.114754 | 0.065574 | 0.672131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d72561eb0d9146b090b1e01ca19bf0c968496d1c | 287 | py | Python | depiction/core.py | animesh/dl-interpretability-compbio | 0d4b5c9110ec54388e440a75e9497e00046d280c | [
"Apache-2.0"
] | null | null | null | depiction/core.py | animesh/dl-interpretability-compbio | 0d4b5c9110ec54388e440a75e9497e00046d280c | [
"Apache-2.0"
] | 2 | 2021-08-25T16:14:22.000Z | 2022-02-10T03:17:08.000Z | depiction/core.py | animesh/dl-interpretability-compbio | 0d4b5c9110ec54388e440a75e9497e00046d280c | [
"Apache-2.0"
] | null | null | null | """Core utilities for depiction."""
from enum import Enum
class Task(Enum):
"""Enum indicating the task performed by a model."""
CLASSIFICATION = 1
REGRESSION = 2
class DataType(Enum):
"""Enum indicating the data type used by a model."""
TABULAR = 1
TEXT = 2
| 19.133333 | 56 | 0.651568 | 39 | 287 | 4.794872 | 0.641026 | 0.085562 | 0.192513 | 0.224599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.240418 | 287 | 14 | 57 | 20.5 | 0.83945 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d72f6e8b06e50c7f0ecf4853e85d94e97c7eb440 | 170 | py | Python | Python/URI_1003.py | eliardocosta/URI-Online-Judge | 9b66bf4e1bef53fc45908366d930aff12b1b6625 | [
"0BSD"
] | null | null | null | Python/URI_1003.py | eliardocosta/URI-Online-Judge | 9b66bf4e1bef53fc45908366d930aff12b1b6625 | [
"0BSD"
] | null | null | null | Python/URI_1003.py | eliardocosta/URI-Online-Judge | 9b66bf4e1bef53fc45908366d930aff12b1b6625 | [
"0BSD"
] | null | null | null | def main(args):
A = int(input())
B = int(input())
S = A + B
print('SOMA = %d' % S)
if __name__ == '__main__':
import sys
sys.exit(main(sys.argv))
| 17 | 29 | 0.517647 | 26 | 170 | 3.076923 | 0.653846 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288235 | 170 | 9 | 30 | 18.888889 | 0.661157 | 0 | 0 | 0 | 0 | 0 | 0.10559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d732779bb030461f2b17a9580ef5c034d95cd907 | 14,379 | py | Python | gen/pb_python/flyteidl/core/security_pb2.py | SmritiSatyanV/flyteidl | e8a29e0deb437d9e7086f9e90b72362cd26000a2 | [
"Apache-2.0"
] | 13 | 2019-08-05T22:02:36.000Z | 2020-07-05T06:21:14.000Z | gen/pb_python/flyteidl/core/security_pb2.py | SmritiSatyanV/flyteidl | e8a29e0deb437d9e7086f9e90b72362cd26000a2 | [
"Apache-2.0"
] | 70 | 2021-02-01T22:14:27.000Z | 2022-03-29T12:56:06.000Z | gen/pb_python/flyteidl/core/security_pb2.py | SmritiSatyanV/flyteidl | e8a29e0deb437d9e7086f9e90b72362cd26000a2 | [
"Apache-2.0"
] | 22 | 2021-02-01T16:13:28.000Z | 2022-02-25T08:15:29.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: flyteidl/core/security.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='flyteidl/core/security.proto',
package='flyteidl.core',
syntax='proto3',
serialized_options=_b('Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core'),
serialized_pb=_b('\n\x1c\x66lyteidl/core/security.proto\x12\rflyteidl.core\"\xa4\x01\n\x06Secret\x12\r\n\x05group\x18\x01 \x01(\t\x12\x15\n\rgroup_version\x18\x02 \x01(\t\x12\x0b\n\x03key\x18\x03 \x01(\t\x12:\n\x11mount_requirement\x18\x04 \x01(\x0e\x32\x1f.flyteidl.core.Secret.MountType\"+\n\tMountType\x12\x07\n\x03\x41NY\x10\x00\x12\x0b\n\x07\x45NV_VAR\x10\x01\x12\x08\n\x04\x46ILE\x10\x02\"O\n\x0cOAuth2Client\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12,\n\rclient_secret\x18\x02 \x01(\x0b\x32\x15.flyteidl.core.Secret\"m\n\x08Identity\x12\x10\n\x08iam_role\x18\x01 \x01(\t\x12\x1b\n\x13k8s_service_account\x18\x02 \x01(\t\x12\x32\n\roauth2_client\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2Client\"\xdd\x01\n\x12OAuth2TokenRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x04type\x18\x02 \x01(\x0e\x32&.flyteidl.core.OAuth2TokenRequest.Type\x12+\n\x06\x63lient\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2Client\x12\x1e\n\x16idp_discovery_endpoint\x18\x04 \x01(\t\x12\x16\n\x0etoken_endpoint\x18\x05 \x01(\t\"\x1e\n\x04Type\x12\x16\n\x12\x43LIENT_CREDENTIALS\x10\x00\"\x95\x01\n\x0fSecurityContext\x12\'\n\x06run_as\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.Identity\x12&\n\x07secrets\x18\x02 \x03(\x0b\x32\x15.flyteidl.core.Secret\x12\x31\n\x06tokens\x18\x03 \x03(\x0b\x32!.flyteidl.core.OAuth2TokenRequestB6Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3')
)
_SECRET_MOUNTTYPE = _descriptor.EnumDescriptor(
name='MountType',
full_name='flyteidl.core.Secret.MountType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='ANY', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='ENV_VAR', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='FILE', index=2, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=169,
serialized_end=212,
)
_sym_db.RegisterEnumDescriptor(_SECRET_MOUNTTYPE)
_OAUTH2TOKENREQUEST_TYPE = _descriptor.EnumDescriptor(
name='Type',
full_name='flyteidl.core.OAuth2TokenRequest.Type',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='CLIENT_CREDENTIALS', index=0, number=0,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=598,
serialized_end=628,
)
_sym_db.RegisterEnumDescriptor(_OAUTH2TOKENREQUEST_TYPE)
_SECRET = _descriptor.Descriptor(
name='Secret',
full_name='flyteidl.core.Secret',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='group', full_name='flyteidl.core.Secret.group', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='group_version', full_name='flyteidl.core.Secret.group_version', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='key', full_name='flyteidl.core.Secret.key', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='mount_requirement', full_name='flyteidl.core.Secret.mount_requirement', index=3,
number=4, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
_SECRET_MOUNTTYPE,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=48,
serialized_end=212,
)
_OAUTH2CLIENT = _descriptor.Descriptor(
name='OAuth2Client',
full_name='flyteidl.core.OAuth2Client',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='client_id', full_name='flyteidl.core.OAuth2Client.client_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='client_secret', full_name='flyteidl.core.OAuth2Client.client_secret', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=214,
serialized_end=293,
)
_IDENTITY = _descriptor.Descriptor(
name='Identity',
full_name='flyteidl.core.Identity',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='iam_role', full_name='flyteidl.core.Identity.iam_role', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='k8s_service_account', full_name='flyteidl.core.Identity.k8s_service_account', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='oauth2_client', full_name='flyteidl.core.Identity.oauth2_client', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=295,
serialized_end=404,
)
_OAUTH2TOKENREQUEST = _descriptor.Descriptor(
name='OAuth2TokenRequest',
full_name='flyteidl.core.OAuth2TokenRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='flyteidl.core.OAuth2TokenRequest.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='type', full_name='flyteidl.core.OAuth2TokenRequest.type', index=1,
number=2, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='client', full_name='flyteidl.core.OAuth2TokenRequest.client', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='idp_discovery_endpoint', full_name='flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='token_endpoint', full_name='flyteidl.core.OAuth2TokenRequest.token_endpoint', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
_OAUTH2TOKENREQUEST_TYPE,
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=407,
serialized_end=628,
)
_SECURITYCONTEXT = _descriptor.Descriptor(
name='SecurityContext',
full_name='flyteidl.core.SecurityContext',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='run_as', full_name='flyteidl.core.SecurityContext.run_as', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='secrets', full_name='flyteidl.core.SecurityContext.secrets', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='tokens', full_name='flyteidl.core.SecurityContext.tokens', index=2,
number=3, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=631,
serialized_end=780,
)
_SECRET.fields_by_name['mount_requirement'].enum_type = _SECRET_MOUNTTYPE
_SECRET_MOUNTTYPE.containing_type = _SECRET
_OAUTH2CLIENT.fields_by_name['client_secret'].message_type = _SECRET
_IDENTITY.fields_by_name['oauth2_client'].message_type = _OAUTH2CLIENT
_OAUTH2TOKENREQUEST.fields_by_name['type'].enum_type = _OAUTH2TOKENREQUEST_TYPE
_OAUTH2TOKENREQUEST.fields_by_name['client'].message_type = _OAUTH2CLIENT
_OAUTH2TOKENREQUEST_TYPE.containing_type = _OAUTH2TOKENREQUEST
_SECURITYCONTEXT.fields_by_name['run_as'].message_type = _IDENTITY
_SECURITYCONTEXT.fields_by_name['secrets'].message_type = _SECRET
_SECURITYCONTEXT.fields_by_name['tokens'].message_type = _OAUTH2TOKENREQUEST
DESCRIPTOR.message_types_by_name['Secret'] = _SECRET
DESCRIPTOR.message_types_by_name['OAuth2Client'] = _OAUTH2CLIENT
DESCRIPTOR.message_types_by_name['Identity'] = _IDENTITY
DESCRIPTOR.message_types_by_name['OAuth2TokenRequest'] = _OAUTH2TOKENREQUEST
DESCRIPTOR.message_types_by_name['SecurityContext'] = _SECURITYCONTEXT
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Secret = _reflection.GeneratedProtocolMessageType('Secret', (_message.Message,), dict(
DESCRIPTOR = _SECRET,
__module__ = 'flyteidl.core.security_pb2'
# @@protoc_insertion_point(class_scope:flyteidl.core.Secret)
))
_sym_db.RegisterMessage(Secret)
OAuth2Client = _reflection.GeneratedProtocolMessageType('OAuth2Client', (_message.Message,), dict(
DESCRIPTOR = _OAUTH2CLIENT,
__module__ = 'flyteidl.core.security_pb2'
# @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2Client)
))
_sym_db.RegisterMessage(OAuth2Client)
Identity = _reflection.GeneratedProtocolMessageType('Identity', (_message.Message,), dict(
DESCRIPTOR = _IDENTITY,
__module__ = 'flyteidl.core.security_pb2'
# @@protoc_insertion_point(class_scope:flyteidl.core.Identity)
))
_sym_db.RegisterMessage(Identity)
OAuth2TokenRequest = _reflection.GeneratedProtocolMessageType('OAuth2TokenRequest', (_message.Message,), dict(
DESCRIPTOR = _OAUTH2TOKENREQUEST,
__module__ = 'flyteidl.core.security_pb2'
# @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2TokenRequest)
))
_sym_db.RegisterMessage(OAuth2TokenRequest)
SecurityContext = _reflection.GeneratedProtocolMessageType('SecurityContext', (_message.Message,), dict(
DESCRIPTOR = _SECURITYCONTEXT,
__module__ = 'flyteidl.core.security_pb2'
# @@protoc_insertion_point(class_scope:flyteidl.core.SecurityContext)
))
_sym_db.RegisterMessage(SecurityContext)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
| 39.07337 | 1,387 | 0.748939 | 1,805 | 14,379 | 5.684765 | 0.118006 | 0.048338 | 0.057304 | 0.046779 | 0.652178 | 0.570217 | 0.533574 | 0.526947 | 0.495663 | 0.482117 | 0 | 0.041155 | 0.122957 | 14,379 | 367 | 1,388 | 39.179837 | 0.7725 | 0.035607 | 0 | 0.644377 | 1 | 0.00304 | 0.194645 | 0.153147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015198 | 0 | 0.015198 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d73a8329949aef68c9f8a833c7556ef5e4e9fd73 | 66 | py | Python | exercicio21.py | f5joaodanieldeliz/infosatc-lp-avaliativo-01 | b6561e9c43bacbfe52290983ba6777cc216da7a0 | [
"MIT"
] | null | null | null | exercicio21.py | f5joaodanieldeliz/infosatc-lp-avaliativo-01 | b6561e9c43bacbfe52290983ba6777cc216da7a0 | [
"MIT"
] | null | null | null | exercicio21.py | f5joaodanieldeliz/infosatc-lp-avaliativo-01 | b6561e9c43bacbfe52290983ba6777cc216da7a0 | [
"MIT"
] | null | null | null | ni = int(input("digite o valor em libras "))
r = ni*0.45
print(r) | 16.5 | 44 | 0.636364 | 14 | 66 | 3 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.181818 | 66 | 4 | 45 | 16.5 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0.373134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d73a899da7b8a4346cbcf0b9b71d3e4654838107 | 934 | py | Python | generateMatrix.py | xiaochuan-cd/leetcode | 8da7fb9c1a8344f5f258936c8a7d6cd25d3b3393 | [
"MIT"
] | null | null | null | generateMatrix.py | xiaochuan-cd/leetcode | 8da7fb9c1a8344f5f258936c8a7d6cd25d3b3393 | [
"MIT"
] | null | null | null | generateMatrix.py | xiaochuan-cd/leetcode | 8da7fb9c1a8344f5f258936c8a7d6cd25d3b3393 | [
"MIT"
] | null | null | null | class Solution:
def generateMatrix(self, n):
"""
:type n: int
:rtype: List[List[int]]
"""
matrix = [[0 for _ in range(n)] for _ in range(n)]
lvl, c = 0, 1
while lvl <= n//2:
if c <= n*n:
for i in range(lvl, n-lvl):
matrix[lvl][i] = c
c += 1
if c <= n*n:
for i in range(lvl+1, n-lvl):
matrix[i][n-lvl-1] = c
c += 1
if c <= n*n:
for i in range(n-lvl-2, -1+lvl, -1):
matrix[n-lvl-1][i] = c
c += 1
if c <= n*n:
for i in range(n-lvl-2, lvl, -1):
matrix[i][lvl] = c
c += 1
lvl += 1
return matrix
if __name__ == "__main__":
for i in Solution().generateMatrix(9):
print(i)
| 25.944444 | 58 | 0.352248 | 124 | 934 | 2.572581 | 0.217742 | 0.087774 | 0.094044 | 0.062696 | 0.285266 | 0.285266 | 0.285266 | 0.285266 | 0.285266 | 0.216301 | 0 | 0.039387 | 0.510707 | 934 | 35 | 59 | 26.685714 | 0.658643 | 0.038544 | 0 | 0.307692 | 1 | 0 | 0.009238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0 | 0 | 0.115385 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d73c9584b9ed701b31a20a909df82405768a0db8 | 4,665 | py | Python | src/controller/OpenAgua/Upload/trash.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | null | null | null | src/controller/OpenAgua/Upload/trash.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | 3 | 2018-11-17T05:49:18.000Z | 2020-12-31T15:57:14.000Z | src/controller/OpenAgua/Upload/trash.py | WamdamProject/WaMDaM_Wizard | f8f5a830464f3c8f45e4eb0557833eefb267d7b2 | [
"BSD-3-Clause"
] | null | null | null |
import pandas as pd
import os, csv
import sqlite3
from json import loads
from collections import OrderedDict
# set the path to the Hydra repository to import its libraries
# import sys
# sys.path.append("C:\Users\Adel\Documents\GitHub\HydraPlatform\HydraServer\HydraLib\python")
import argparse as ap
# Python utility libraries.
from controller.OpenAgua.HydraLib.HydraException import HydraPluginError
# Import Scenario from WaMDaM SQLite using the API
from controller.wamdamAPI.GetResourceStructure import GetResourceStructure
from controller.wamdamAPI.GetMetadataByScenario import GetMetadataByScenario
from controller.wamdamAPI.GetInstancesByScenario import GetInstancesBySenario
from controller.wamdamAPI.GetAllValuesByScenario import GetAllValuesByScenario
from controller.wamdamAPI.GetUnitCVs import GetUnits
from controller.OpenAgua.HydraLib.PluginLib import JsonConnection, \
create_xml_response, \
write_progress, \
write_output
# General library for working with JSON objects
import json
# Used for working with files.
import os, sys, datetime
import logging
ur = "https://data.openagua.org"
conn = JsonConnection(ur)
login_response = conn.login('amabdallah@aggiemail.usu.edu', 'OApass!')
# get_all_dimensions = conn.call('get_all_dimensions', ({}))
# add_scen = conn.call('add_scenario', {'network_id': 1076, 'scen': {'name': 'test2',
# 'description': 'This scenario is for calibration',
# 'id': None,
# 'network_id': 1076,
# 'start_time': '1990-01-01T00:00:00',
# 'layout.class': u'scenarios',
# 'resourcescenarios': [],
# 'end_time': '2014-12-31T00:00:00',
# 'time_step': 'month',
# }})
#
# Get_scenarios_metadata = conn.call('get_scenarios',
# {'network_id': 1863, 'include_values': 'N'})
# Get_scenarios_metadata_df = json_normalize(Get_scenarios_metadata)
#
# result_scenario = conn.call('update_scenario',
# {'network_id': 1090, 'scen': {
# 'id': 2328,
# 'network_id': 1090,
# 'name': '',
# # 'description': 'This scenario is for calibration. It can be used to test variables before saving them to Baseline.',
# 'layout': {
# 'class': 'scenario',
# 'parent': 2327
# }
# }
# }
# )
# add_scen = conn.call('add_scenario', {'network_id': 1086, 'scen': {'name': u'Calibration2',
# 'description': 'This scenario is for calibration. It can be used to test variables before saving them to Baseline.',
# 'id': None,
# 'start_time': '1990-01-01T00:00:00',
# 'layout.class': u'results',
# 'resourcescenarios': [],
# 'end_time': '2014-12-31T00:00:00',
# 'time_step': 'month',
# }})
result='update_scenario', {'network_id': 1444, 'scen': {'layout': {'class': u'scenario'},
'description': u'Scenario',
'network_id': 1444, 'parent_id': 3433,
'id': 3434, 'name': u'Reuso Industrial'}} | 53.011364 | 185 | 0.426581 | 340 | 4,665 | 5.732353 | 0.420588 | 0.036942 | 0.059005 | 0.038481 | 0.23961 | 0.23961 | 0.2196 | 0.2196 | 0.183684 | 0.183684 | 0 | 0.044789 | 0.487889 | 4,665 | 88 | 186 | 53.011364 | 0.771034 | 0.708253 | 0 | 0 | 0 | 0 | 0.127951 | 0.021325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.038462 | 0.615385 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d75d18add42da0f423e661dd4a50dbbe4cd75d32 | 1,174 | py | Python | trimet_stop_event_api/tests.py | hackoregon/provisional-transportation-api | 15a74f82f751e9bc60c00eacbe6f16bb2d8905e0 | [
"MIT"
] | 2 | 2018-05-30T18:07:16.000Z | 2019-05-06T10:01:54.000Z | trimet_stop_event_api/tests.py | hackoregon/provisional-transportation-api | 15a74f82f751e9bc60c00eacbe6f16bb2d8905e0 | [
"MIT"
] | 33 | 2018-05-24T05:00:58.000Z | 2020-06-05T18:16:32.000Z | trimet_stop_event_api/tests.py | hackoregon/provisional-transportation-api | 15a74f82f751e9bc60c00eacbe6f16bb2d8905e0 | [
"MIT"
] | 3 | 2018-05-24T03:38:59.000Z | 2019-07-10T18:35:31.000Z | from django.test import TestCase
from trimet_stop_event_api.models import TrimetStopEvents, TotalOnsByHour, DisturbanceStops
from rest_framework.test import APIClient, RequestsClient
class TrimetStopEventsTest(TestCase):
""" Test for Crash model """
def setUp(self):
pass
class TrimetStopEventsListEndpointsTestCase(TestCase):
def setUp(self):
self.client = APIClient()
def test_list_200_response(self):
response = self.client.get('/transportation-systems/trimet-stop-events/trimet-stop-events/')
assert response.status_code == 200
# class TrimetStopEventsTotalsListEndpointsTestCase(TestCase):
# def setUp(self):
# self.client = APIClient()
# def test_list_200_response(self):
# response = self.client.get('/transportation-systems/trimet-stop-events/totals/')
# assert response.status_code == 200
class DisturbanceStopsListEndpointsTestCase(TestCase):
def setUp(self):
self.client = APIClient()
def test_list_200_response(self):
response = self.client.get('/transportation-systems/trimet-stop-events/disturbance-stops/')
assert response.status_code == 200
| 37.870968 | 100 | 0.732538 | 126 | 1,174 | 6.698413 | 0.34127 | 0.07109 | 0.056872 | 0.07109 | 0.545024 | 0.513033 | 0.437204 | 0.437204 | 0.437204 | 0.437204 | 0 | 0.018424 | 0.167802 | 1,174 | 30 | 101 | 39.133333 | 0.845445 | 0.262351 | 0 | 0.5 | 0 | 0 | 0.144028 | 0.144028 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.277778 | false | 0.055556 | 0.166667 | 0 | 0.611111 | 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 | 0 | 0 | 0 | 2 |
d76688c4f0614af549506615bb95bf3eeaf2cf3a | 1,285 | py | Python | .sandbox/examples/friction_contact_tutorials/tuto.py | vacary/siconos-tutorials | 93c0158321077a313692ed52fed69ff3c256ae32 | [
"Apache-2.0"
] | 6 | 2017-01-12T23:09:28.000Z | 2021-03-20T17:03:58.000Z | .sandbox/examples/friction_contact_tutorials/tuto.py | vacary/siconos-tutorials | 93c0158321077a313692ed52fed69ff3c256ae32 | [
"Apache-2.0"
] | 3 | 2019-01-14T13:44:51.000Z | 2021-05-17T13:57:27.000Z | .sandbox/examples/friction_contact_tutorials/tuto.py | vacary/siconos-tutorials | 93c0158321077a313692ed52fed69ff3c256ae32 | [
"Apache-2.0"
] | 2 | 2019-10-22T13:30:39.000Z | 2020-10-06T10:19:57.000Z | # Siconos solvers
import siconos.numerics as sn
# fclib interface
import siconos.fclib as fcl
# h5py
import h5py
import numpy as np
import scipy.linalg as la
# --- Create a friction contact problem ---
# Case 1 : from scratch
# Number of contacts
nc = 3
# W matrix
w_shape = (3 * nc, 3 * nc)
W = np.zeros(w_shape, dtype=np.float64)
W.flat[...] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
# q vector
q = np.zeros(3 * nc, dtype=np.float64)
q[...] = [-1, 1, 3, -1, 1, 3, -1, 1, 3]
# Friction coeff
mu = [0.1, 0.1, 0.1]
fc3d = sn.FrictionContactProblem(3, nc, W, q, mu)
# Case 2 : use fclib-library, read hdf5 file
# --- Set solver options ---
# Check Friction_cst.h for a list of solvers ids.
solver_options = sn.SolverOptions(sn.SICONOS_FRICTION_3D_NSGS)#sn.SICONOS_FRICTION_3D_FPP)
eps = np.finfo(np.float64).eps
solver_options.dparam[0] = 100 * eps
# --- Set unknowns ---
velocity = np.zeros(3 * nc, dtype=np.float64)
reaction = np.zeros_like(velocity)
# --- Call solver driver with predefined options ---
sn.fc3d_driver(fc3d, reaction, velocity, solver_options)
| 23.796296 | 257 | 0.617121 | 252 | 1,285 | 3.09127 | 0.293651 | 0.164313 | 0.215661 | 0.24647 | 0.17715 | 0.17715 | 0.165597 | 0.103979 | 0.103979 | 0.103979 | 0 | 0.121212 | 0.203891 | 1,285 | 53 | 258 | 24.245283 | 0.640274 | 0.28716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d76eb9312e6960dd1575cdf268c3ab94c66b525a | 596 | py | Python | src/bpp/management/commands/export_opi_2012.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/management/commands/export_opi_2012.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/bpp/management/commands/export_opi_2012.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
import os
import sys
import shutil
from django.core.management import BaseCommand
from django.db import transaction
from bpp.reports.opi_2012 import make_report_zipfile
class Command(BaseCommand):
help = 'Eksportuje raporty OPI 2009-2012'
@transaction.atomic
def handle(self, *args, **options):
wydzialy = ['1WL', '2WL', 'WF', 'WP']
zipname = make_report_zipfile(wydzialy=wydzialy)
if sys.platform == 'win32':
shutil.move(
zipname,
os.path.join(os.getenv("USERPROFILE"), 'Desktop'))
| 23.84 | 66 | 0.645973 | 70 | 596 | 5.428571 | 0.685714 | 0.052632 | 0.089474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037281 | 0.234899 | 596 | 24 | 67 | 24.833333 | 0.796053 | 0.038591 | 0 | 0 | 0 | 0 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d7772d2e4f89f593d7d6bb8ae2d6f632632eae5a | 901 | py | Python | apps/images/models.py | Niracler/remember-activity | ecac51a318ef7af9538d217532dd439e097882ec | [
"MIT"
] | null | null | null | apps/images/models.py | Niracler/remember-activity | ecac51a318ef7af9538d217532dd439e097882ec | [
"MIT"
] | 8 | 2020-06-05T19:59:02.000Z | 2022-03-11T23:41:25.000Z | apps/images/models.py | Niracler/remember-activity | ecac51a318ef7af9538d217532dd439e097882ec | [
"MIT"
] | 1 | 2019-01-18T12:04:47.000Z | 2019-01-18T12:04:47.000Z | from django.db import models
from datetime import datetime
# Create your models here.
class Images(models.Model):
CATEGORY_TYPE = (
(100, "班级头像"),
(101, "班级logo"),
(200, "活动"),
)
image = models.ImageField(upload_to="", verbose_name="图片")
add_time = models.DateField(default=datetime.now, verbose_name="添加时间 ")
class_id = models.CharField(default="0", max_length=30, verbose_name="班级ID")
activity_id = models.CharField(default="0", max_length=30, verbose_name="活动ID")
category = models.IntegerField(choices=CATEGORY_TYPE, default=200, verbose_name="类型")
class Meta:
verbose_name = "图片"
verbose_name_plural = verbose_name
def __str__(self):
return str(self.id)
# class Class(models.Model):
# class Meta:
# verbose_name = "班级"
# verbose_name_plural = verbose_name
#
# def __str__(self):
| 25.742857 | 89 | 0.654828 | 112 | 901 | 5.008929 | 0.464286 | 0.215686 | 0.046346 | 0.085562 | 0.30303 | 0.30303 | 0.30303 | 0.30303 | 0.167558 | 0.167558 | 0 | 0.025532 | 0.217536 | 901 | 34 | 90 | 26.5 | 0.770213 | 0.17869 | 0 | 0 | 0 | 0 | 0.045082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d77ef9ae4ce6fd5fb62941b6a84981c24d9c0852 | 283 | py | Python | parkkihubi_hel/management/commands/import_permit_areas.py | kerkkoheiskanen/parkkihubi | aaaecdcdafed9eabd00bf2b03e8203a1f756bc80 | [
"MIT"
] | null | null | null | parkkihubi_hel/management/commands/import_permit_areas.py | kerkkoheiskanen/parkkihubi | aaaecdcdafed9eabd00bf2b03e8203a1f756bc80 | [
"MIT"
] | null | null | null | parkkihubi_hel/management/commands/import_permit_areas.py | kerkkoheiskanen/parkkihubi | aaaecdcdafed9eabd00bf2b03e8203a1f756bc80 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from ...importers import PermitAreaImporter
class Command(BaseCommand):
help = 'Uses the PermitAreaImporter to create permit areas'
def handle(self, *args, **options):
PermitAreaImporter().import_permit_areas()
| 25.727273 | 63 | 0.756184 | 31 | 283 | 6.83871 | 0.741935 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155477 | 283 | 10 | 64 | 28.3 | 0.887029 | 0 | 0 | 0 | 0 | 0 | 0.176678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.666667 | 0 | 1.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d77f18a87e87f1c82a44a10edf407ecc92f2865d | 526 | py | Python | stubs.min/System/Windows/__init___parts/IFrameworkInputElement.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/IFrameworkInputElement.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | stubs.min/System/Windows/__init___parts/IFrameworkInputElement.py | hdm-dt-fb/ironpython-stubs | 4d2b405eda3ceed186e8adca55dd97c332c6f49d | [
"MIT"
] | null | null | null | class IFrameworkInputElement(IInputElement):
""" Declares a namescope contract for framework elements. """
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
Name=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets or sets the name of an element.
Get: Name(self: IFrameworkInputElement) -> str
Set: Name(self: IFrameworkInputElement)=value
"""
| 35.066667 | 147 | 0.711027 | 64 | 526 | 5.40625 | 0.59375 | 0.086705 | 0.092486 | 0.109827 | 0.179191 | 0.179191 | 0.179191 | 0.179191 | 0 | 0 | 0 | 0 | 0.159696 | 526 | 14 | 148 | 37.571429 | 0.782805 | 0.363118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
ad3e95303d5cee00fff2ca3512dc0fba6e665ef1 | 361 | py | Python | docker/ml/verify.py | wstinkens/dockerfiles | c2f69246c9f1a21cdb4a305ceefe8b6a0ca7d729 | [
"MIT"
] | null | null | null | docker/ml/verify.py | wstinkens/dockerfiles | c2f69246c9f1a21cdb4a305ceefe8b6a0ca7d729 | [
"MIT"
] | null | null | null | docker/ml/verify.py | wstinkens/dockerfiles | c2f69246c9f1a21cdb4a305ceefe8b6a0ca7d729 | [
"MIT"
] | null | null | null | import tensorflow
import keras
import fasttext
import sklearn
import numpy
import pandas
import nltk
import lime
import tabulate
from Crypto.Hash import SHA256
import spacy
nlp = spacy.load('en_core_web_sm', disable=['tagger', 'parser', 'ner', 'textcat'])
doc = nlp('tokenize this sentence')
import demisto_ml
print('All package imported succesfully')
| 14.44 | 82 | 0.772853 | 50 | 361 | 5.5 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009677 | 0.141274 | 361 | 24 | 83 | 15.041667 | 0.877419 | 0 | 0 | 0 | 0 | 0 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.866667 | 0 | 0.866667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ad5825165568b8a01063d7bcaae2c99803f62b90 | 212 | py | Python | tests/fixtures/comment_no_issue_5_fixed.py | cdce8p/python-typing-update | 2ad78b9ce4b5e3d8e8ff5dd35474c8e214d69983 | [
"MIT"
] | 5 | 2021-03-17T16:12:09.000Z | 2021-09-12T22:19:51.000Z | tests/fixtures/comment_no_issue_5_fixed.py | cdce8p/python-typing-update | 2ad78b9ce4b5e3d8e8ff5dd35474c8e214d69983 | [
"MIT"
] | 10 | 2021-03-23T18:14:24.000Z | 2022-03-28T03:05:18.000Z | tests/fixtures/comment_no_issue_5_fixed.py | cdce8p/python-typing-update | 2ad78b9ce4b5e3d8e8ff5dd35474c8e214d69983 | [
"MIT"
] | 2 | 2021-03-20T08:47:52.000Z | 2021-06-07T04:02:02.000Z | # This is a comment
"""Comment is ignored"""
from __future__ import annotations
import sys
from typing import Any
var: Any = sys.version
var2: list[int]
def func(
arg: int | str,
) -> list[int]:
pass
| 13.25 | 34 | 0.674528 | 32 | 212 | 4.34375 | 0.6875 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.216981 | 212 | 15 | 35 | 14.133333 | 0.831325 | 0.174528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
ad5be186eec23f5a4b9a7c7fa34831e763e5ceff | 2,163 | py | Python | GETDATA/csv2triple.py | Dustin-Grandret/LouisChaKnowledgeGraph | 0e111b40871d31d1716ad967128e3cdc5bc6b3ce | [
"Apache-2.0"
] | 4 | 2021-05-24T09:40:53.000Z | 2021-05-24T13:47:15.000Z | GETDATA/csv2triple.py | Dustin-Grandret/LouisChaKnowledgeGraph | 0e111b40871d31d1716ad967128e3cdc5bc6b3ce | [
"Apache-2.0"
] | null | null | null | GETDATA/csv2triple.py | Dustin-Grandret/LouisChaKnowledgeGraph | 0e111b40871d31d1716ad967128e3cdc5bc6b3ce | [
"Apache-2.0"
] | null | null | null |
'''
将属性的csv文件转换为abox和tbox
'''
from GETDATA import *
import csv
col2int={
'id':0,
'属性':1,
'domain':2,
'range':3,
'is_transitive':4,
'is_symmetric':5,
'is_functional':6,
'inverseof':7,
'inversefunctional':8,
'sameas':9,
'subpropertyof':10,
}
def getvalue(elem,name):
return elem[col2int[name]]
rst_abox,rst_tbox=[],[]
name2id=dict()
with open(PROFILE_ROOT,'r',encoding='utf-8')as f:
writer=csv.reader(f)
for i,elem in enumerate(writer):
if i==0:
continue
rst_abox.append((getvalue(elem,'id'),'name',getvalue(elem,'属性')))
name2id[getvalue(elem,'属性')]=getvalue(elem,'id')
with open(PROFILE_ROOT, 'r', encoding='utf-8')as f:
writer = csv.reader(f)
for i,elem in enumerate(writer):
if i==0:
continue
try:
rst_tbox.append(((getvalue(elem,'id'),'rdfs:domain',getvalue(elem,'domain'))))
rst_tbox.append(((getvalue(elem, 'id'), 'rdfs:range', getvalue(elem, 'range'))))
if getvalue(elem,'is_transitive')==1:
rst_tbox.append((getvalue(elem, 'id'), 'type','owl:transitiveproperty'))
if getvalue(elem, 'is_symmetric') == 1:
rst_tbox.append((getvalue(elem, 'id'), 'type', 'owl:symmetricproperty'))
if getvalue(elem, 'is_functional') == 1:
rst_tbox.append((getvalue(elem, 'id'), 'type', 'owl:functionalproperty'))
if getvalue(elem, 'inverseof'):
rst_tbox.append((getvalue(elem, 'id'), 'owl:inverseof',name2id[getvalue(elem,'inverseof')]))
if getvalue(elem, 'inversefunctional') == 1:
rst_tbox.append((getvalue(elem, 'id'), 'type', 'owl:inversefunctionalproperty'))
if getvalue(elem, 'inverseof'):
rst_tbox.append((getvalue(elem, 'id'), 'owl:sameas',name2id[getvalue(elem,'sameas')]))
if getvalue(elem, 'subpropertyof'):
rst_tbox.append((getvalue(elem, 'id'), 'rdfs:subpropertyof',name2id[getvalue(elem,'subpropertyof')]))
except Exception as e:
print(i,elem)
print(e)
print(rst_abox,rst_tbox) | 37.293103 | 117 | 0.58761 | 255 | 2,163 | 4.898039 | 0.270588 | 0.2498 | 0.123299 | 0.160128 | 0.41233 | 0.41233 | 0.41233 | 0.33787 | 0.33787 | 0.225781 | 0 | 0.016295 | 0.233934 | 2,163 | 58 | 118 | 37.293103 | 0.737477 | 0.009709 | 0 | 0.230769 | 0 | 0 | 0.20478 | 0.044049 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0.038462 | 0.019231 | 0.076923 | 0.057692 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ad68205b49e7d421bbcdf58c41bf4955e2ec0670 | 395 | py | Python | pyservices/__init__.py | argo-vision/pyservices | 0de442389cc0cd3bd007ca19a72c6168d3dab4c5 | [
"MIT"
] | 2 | 2019-04-25T21:10:27.000Z | 2019-07-08T07:56:43.000Z | pyservices/__init__.py | argo-vision/pyservices | 0de442389cc0cd3bd007ca19a72c6168d3dab4c5 | [
"MIT"
] | 2 | 2019-07-09T12:50:54.000Z | 2019-07-10T16:53:57.000Z | pyservices/__init__.py | argo-vision/pyservices | 0de442389cc0cd3bd007ca19a72c6168d3dab4c5 | [
"MIT"
] | 4 | 2019-06-30T08:53:15.000Z | 2019-07-08T15:41:45.000Z | # This is the module facade, importing classes from the src dir/module.
import logging
# from .decorators import rest_add, rest_collection, rest_delete, \
# rest_detail, rest_update
from pyservices.data_descriptors.entity_codecs import JSON, Codec
from pyservices.service_descriptors import frameworks, http_content_types
log = logging.getLogger(__package__)
name = 'pyservices'
| 35.909091 | 74 | 0.794937 | 51 | 395 | 5.882353 | 0.686275 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144304 | 395 | 10 | 75 | 39.5 | 0.887574 | 0.41519 | 0 | 0 | 0 | 0 | 0.046083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
ad76e9aa83e05f5780374c71254c7dcb3e61f532 | 1,525 | py | Python | demonstration.py | KenYounge/passcode | 43ebf7dc06312442af55230325dde2de9be0323b | [
"MIT"
] | 1 | 2021-02-23T13:10:48.000Z | 2021-02-23T13:10:48.000Z | demonstration.py | KenYounge/passcode | 43ebf7dc06312442af55230325dde2de9be0323b | [
"MIT"
] | null | null | null | demonstration.py | KenYounge/passcode | 43ebf7dc06312442af55230325dde2de9be0323b | [
"MIT"
] | null | null | null | """ Demonstration of how to use passcode:
1. When you install passcode, there is no passcode.key file. Therefore, the first time you
call passcode.update() the code will prompt you to make your own passphrase for this demonstration.
2. We define a few private variables and private functions in the file secrets.py
5. The example below imports `passcode` and then uses passcode.update() to
- encrypt the file secrets.py into example_private_code.rc4
- import the module into the local scope so it can then be accessed as normal.
"""
# Encrypt, decrypt, and import your private code file into the local namespace
import passcode
passcode.execute('secrets', scope=locals(), key_dev='./demo.key', key_run='./demo.key')
# Uncomment the below to enable code completion/inspection in your development IDE
#try: from secrets import *
#except: pass # trap errors that arise due to missing source files in production
# Demonstrate that we can now access the secret variables and functions
print()
print('Secret variables and functions:')
print()
print('\t', 'SQL password: ', SQL_PASSWORD) # Print the value of an encrypted variable
print('\t', 'Emergency SMS: ', EMERGENCY_SMS) # Print the value of an encrypted variable
print('\t', 'Golden Ratio: ', golden_ratio()) # Run an encrypted function
# Print out what is now in the local scope
print()
print('The following are now in Locals:')
print()
for item in dir():
if not str(item).startswith('__'):
print('\t', item)
| 38.125 | 104 | 0.726557 | 230 | 1,525 | 4.778261 | 0.5 | 0.021838 | 0.025478 | 0.029117 | 0.140127 | 0.140127 | 0.072793 | 0.072793 | 0.072793 | 0 | 0 | 0.003218 | 0.184918 | 1,525 | 39 | 105 | 39.102564 | 0.880933 | 0.668197 | 0 | 0.285714 | 0 | 0 | 0.304622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.214286 | 0.071429 | 0 | 0.071429 | 0.714286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
ad7f2ec9122264278070223d6bf8328e010d5633 | 3,099 | py | Python | Cal_tool/web/cal_tool/event_updates/update_manager.py | Ale763/PSOPV_GROEP3_CALTOOL | d79d7fa5e680aafa05564b0d21c9a5e079170214 | [
"MIT"
] | null | null | null | Cal_tool/web/cal_tool/event_updates/update_manager.py | Ale763/PSOPV_GROEP3_CALTOOL | d79d7fa5e680aafa05564b0d21c9a5e079170214 | [
"MIT"
] | null | null | null | Cal_tool/web/cal_tool/event_updates/update_manager.py | Ale763/PSOPV_GROEP3_CALTOOL | d79d7fa5e680aafa05564b0d21c9a5e079170214 | [
"MIT"
] | null | null | null | from cal_tool.models import Users, Calendars, CalendarSources
class UpdateManager:
def __init__(self):
self.__last_completed_update = datetime.now()
self.__force_refilter = True
pass
# ------------------------------------------------------------------------------------------------------------------
# Setters & Getters
def set_force_refilter(self, p_force_refilter):
self.__force_refilter = p_force_refilter
def get_force_refilter(self):
return self.__force_refilter
def set_last_completed_update(self, p_datetime):
self.__force_refilter = p_datetime
def get_last_completed_update(self):
return self.set_last_completed_update
# ------------------------------------------------------------------------------------------------------------------
def update_calendars(self, p_short_term=False):
"""
Starts checking all calendars for changes and notifies users if there are changes
"""
# Update calendars per user
for user in Users.objects.all():
# Retrieve all calenders from given user and check for updates
calendars = Calendars.get_calenders_from_user(user.unique_id)
for calendar in calendars:
self.__check_calendar_updates(calendar, p_short_term)
# When finished checking all calenders from all users,
# update the self.__last_completed_update to finish-time
self.__last_completed_update = datetime.now()
# ------------------------------------------------------------------------------------------------------------------
# Helper functions
def __check_calendar_updates(self, p_cal, p_short_term):
"""
Iterates over all the sources of a calendar
:param p_cal:
"""
cal = calendar()
cal.load_from_database(p_cal.cal_id, self.__last_completed_update)
result = cal.check_for_updates(p_short_term=p_short_term)
if result is not None:
# Separate results
deleted_events, changed_events, added_events = result[0], result[1], result[2]
# Notify user
# TODO:: TESTEN
event_changes_notifcation = event_changes()
event_changes_notifcation.send_event_changed_notification(added_events, changed_events, deleted_events, cal)
def __check_calendar_source_updates(self, p_cal_src):
"""
:param p_cal_src:
"""
db_cal_sources = CalendarSources.objects.filter(cal_id=p_cal_src.cal_source_id)
cal_src = CalendarSources()
def __get_filtered_source(self, p_cal_src_id):
if Filters.check_filters_changed(self.__last_completed_update):
filtered_source_path = CalendarSources.objects.filter(cal_source_id=p_cal_src_id)
from datetime import datetime
from cal_tool.models import Filters
from cal_tool.calendar.calendar import calendar, calendar_source
from cal_tool.event_updates.event_changes import event_changes
from cal_tool.singletons.notifications_starter import NOTIFICATION_APP | 39.227848 | 120 | 0.623104 | 348 | 3,099 | 5.135057 | 0.287356 | 0.058198 | 0.085059 | 0.064354 | 0.063794 | 0.038053 | 0 | 0 | 0 | 0 | 0 | 0.001225 | 0.209745 | 3,099 | 79 | 121 | 39.227848 | 0.728461 | 0.250403 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.230769 | false | 0.025641 | 0.153846 | 0.051282 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a8e8f1b633b35bcbd49df58dc3c1741be883cf54 | 1,106 | py | Python | torch/utils/data/dataset.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | null | null | null | torch/utils/data/dataset.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | null | null | null | torch/utils/data/dataset.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | null | null | null |
class Dataset(object):
"""An abstract class representing a Dataset.
All other datasets should subclass it. All subclasses should override
``__len__``, that provides the size of the dataset, and ``__getitem__``,
supporting integer indexing in range from 0 to len(self) exclusive.
"""
def __getitem__(self, index):
raise NotImplementedError
def __len__(self):
raise NotImplementedError
class TensorDataset(Dataset):
"""Dataset wrapping data and target tensors.
Each sample will be retrieved by indexing both tensors along the first
dimension.
Arguments:
data_tensor (Tensor): contains sample data.
target_tensor (Tensor): contains sample targets (labels).
"""
def __init__(self, data_tensor, target_tensor):
assert data_tensor.size(0) == target_tensor.size(0)
self.data_tensor = data_tensor
self.target_tensor = target_tensor
def __getitem__(self, index):
return self.data_tensor[index], self.target_tensor[index]
def __len__(self):
return self.data_tensor.size(0)
| 29.105263 | 76 | 0.694394 | 135 | 1,106 | 5.385185 | 0.444444 | 0.096286 | 0.077029 | 0.05227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004667 | 0.225136 | 1,106 | 37 | 77 | 29.891892 | 0.843641 | 0.45208 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.357143 | false | 0 | 0 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d11eae9da927a99db44321548c07fb1e2ccb8dee | 614 | py | Python | oastools/utils/errors.py | bilalshaikh42/OASTools | dae7b5afb9f78f8b14b6f3d6f2732ee7b11dfb9b | [
"MIT"
] | null | null | null | oastools/utils/errors.py | bilalshaikh42/OASTools | dae7b5afb9f78f8b14b6f3d6f2732ee7b11dfb9b | [
"MIT"
] | 8 | 2019-08-29T12:28:57.000Z | 2019-09-17T16:25:22.000Z | oastools/utils/errors.py | bilalshaikh42/OASTools | dae7b5afb9f78f8b14b6f3d6f2732ee7b11dfb9b | [
"MIT"
] | 1 | 2019-08-29T01:15:53.000Z | 2019-08-29T01:15:53.000Z | class Error(Exception):
def __init__(self, basemessage="Unspecified Error", message=""):
self.basemessage = basemessage
self.message = message
super().__init__(basemessage, message)
class NotImplementedError(Error):
"""An error to indicate that the requested operation has not yet been implemented
"""
def __init__(self, message=""):
super().__init__("This feature has not yet been implemented.", message)
class ParseError(Error):
def __init__(self, basemessage='ParserError', message=''):
super().__init__(basemessage=basemessage, message=message)
| 32.315789 | 85 | 0.697068 | 65 | 614 | 6.215385 | 0.415385 | 0.05198 | 0.081683 | 0.108911 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187296 | 614 | 18 | 86 | 34.111111 | 0.809619 | 0.127036 | 0 | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d123e14fe11aec32cbf77ad71da46075b5f412ff | 1,156 | py | Python | demos/text_classification/train_text_classification_glove.py | yangheng95/LCF-ABSA | 0eeb4788269a498d34c2aff942e03af78026617e | [
"MIT"
] | 31 | 2019-10-07T03:05:39.000Z | 2020-06-17T01:34:21.000Z | demos/text_classification/train_text_classification_glove.py | yangheng95/LCF-ABSA | 0eeb4788269a498d34c2aff942e03af78026617e | [
"MIT"
] | 7 | 2019-10-16T13:37:52.000Z | 2020-03-30T03:40:56.000Z | demos/text_classification/train_text_classification_glove.py | yangheng95/LCF-ABSA | 0eeb4788269a498d34c2aff942e03af78026617e | [
"MIT"
] | 3 | 2020-01-12T13:03:35.000Z | 2020-06-11T08:26:01.000Z | # -*- coding: utf-8 -*-
# file: train_text_classification_glove.py
# time: 2021/8/5
# author: yangheng <yangheng@m.scnu.edu.cn>
# github: https://github.com/yangheng95
# Copyright (C) 2021. All Rights Reserved.
from pyabsa import ClassificationConfigManager, ClassificationDatasetList
from pyabsa.functional import GloVeClassificationModelList, Trainer
classification_config_english = ClassificationConfigManager.get_classification_config_glove()
classification_config_english.model = GloVeClassificationModelList.LSTM
classification_config_english.num_epoch = 10
classification_config_english.evaluate_begin = 2
classification_config_english.max_seq_len = 80
classification_config_english.dropout = 0.5
classification_config_english.seed = {42, 56, 1}
classification_config_english.log_step = 5
classification_config_english.l2reg = 0.0001
SST2 = ClassificationDatasetList.SST2
sent_classifier = Trainer(config=classification_config_english,
dataset=SST2,
checkpoint_save_mode=1,
auto_device=True
).load_trained_model()
| 41.285714 | 94 | 0.749135 | 122 | 1,156 | 6.795082 | 0.590164 | 0.26538 | 0.325694 | 0.067551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038015 | 0.180796 | 1,156 | 27 | 95 | 42.814815 | 0.837381 | 0.17128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d1270eb4bcaa5dc06ba851edc6efdf7ad31cd25d | 713 | py | Python | tests/utils.py | theletterf/signalfx-vsphere | b3c0c9fe23147e6194b77db935a1ac93bbc8029c | [
"Apache-2.0"
] | null | null | null | tests/utils.py | theletterf/signalfx-vsphere | b3c0c9fe23147e6194b77db935a1ac93bbc8029c | [
"Apache-2.0"
] | 4 | 2019-07-22T17:42:38.000Z | 2019-08-07T14:38:32.000Z | tests/utils.py | theletterf/signalfx-vsphere | b3c0c9fe23147e6194b77db935a1ac93bbc8029c | [
"Apache-2.0"
] | 3 | 2019-08-29T09:14:45.000Z | 2021-12-20T09:29:32.000Z | import logging
import os
import socket
import unittest
import vcr
from vcr import config
from vcr.stubs import VCRHTTPSConnection
from pyVmomi import SoapAdapter
def tests_resource_path(local_path=''):
this_file = os.path.dirname(os.path.abspath(__file__))
return os.path.join(this_file, local_path)
fixtures_path = tests_resource_path('fixtures')
def monkey_patch_vcrpy():
vcr.stubs.VCRHTTPSConnection.is_verified = True
vcr.stubs.VCRFakeSocket = socket.socket
class VCRTestBase(unittest.TestCase):
my_vcr = config.VCR(
custom_patches=((SoapAdapter, '_HTTPSConnection', VCRHTTPSConnection),))
def setUp(self):
monkey_patch_vcrpy()
logging.basicConfig()
| 21.606061 | 80 | 0.754558 | 88 | 713 | 5.875 | 0.465909 | 0.046422 | 0.065764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157083 | 713 | 32 | 81 | 22.28125 | 0.860233 | 0 | 0 | 0 | 0 | 0 | 0.033661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.380952 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d13209de9cb815ef9c8904c254013198908d67ad | 152 | py | Python | projects/projects/__init__.py | fgoettel/knx | 23cc02043a68528c0400ec7af0c626be3d528e75 | [
"Unlicense"
] | null | null | null | projects/projects/__init__.py | fgoettel/knx | 23cc02043a68528c0400ec7af0c626be3d528e75 | [
"Unlicense"
] | null | null | null | projects/projects/__init__.py | fgoettel/knx | 23cc02043a68528c0400ec7af0c626be3d528e75 | [
"Unlicense"
] | null | null | null | """Import, export, compare different project exports."""
__author__ = """Fabian Göttel"""
__email__ = "fabian.goettel@gmail.com"
__version__ = "0.3.0"
| 25.333333 | 56 | 0.710526 | 18 | 152 | 5.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0.111842 | 152 | 5 | 57 | 30.4 | 0.688889 | 0.328947 | 0 | 0 | 0 | 0 | 0.4375 | 0.25 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d148d1ef41ffb015998c4f156a5a1eaa64dcef1f | 693 | py | Python | worker/worker.py | gregdickason/consensuscircle | 28bdfb71691f91c8ff85aa600f3948f22d8935f0 | [
"MIT"
] | null | null | null | worker/worker.py | gregdickason/consensuscircle | 28bdfb71691f91c8ff85aa600f3948f22d8935f0 | [
"MIT"
] | 1 | 2019-12-01T11:16:59.000Z | 2019-12-01T11:16:59.000Z | worker/worker.py | gregdickason/consensuscircle | 28bdfb71691f91c8ff85aa600f3948f22d8935f0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
from rq import Connection, Worker
from redis import Redis
# Preload libraries
import json
import copy
from bisect import bisect_left
from urllib.parse import urlencode
from urllib.request import Request, urlopen
from globalsettings import blockSettings
import logging.config
import convergenceProcessor
import logging.config
import requests
import consensusEmulator
import redisUtilities
import blockUtilities
import encryptionUtilities
# put in BSD and other license clauses?
# Provide queue names to listen to as arguments to this script,
# similar to rq worker
with Connection(Redis('redis', 6379)):
qs = ['default']
w = Worker(qs)
w.work()
| 22.354839 | 63 | 0.79798 | 93 | 693 | 5.935484 | 0.591398 | 0.036232 | 0.068841 | 0.09058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006791 | 0.150072 | 693 | 30 | 64 | 23.1 | 0.93039 | 0.229437 | 0 | 0.095238 | 0 | 0 | 0.022684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.809524 | 0 | 0.809524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d16de180d589f10263c46bb4a253add0b1f3ad93 | 842 | py | Python | catkin_ws/src/spring2016/eharbitz/virtual_mirror_eharbitz/src/virtual_mirror_node.py | DiegoOrtegoP/Software | 4a07dd2dab29db910ca2e26848fa6b53b7ab00cd | [
"CC-BY-2.0"
] | 12 | 2016-04-14T12:21:46.000Z | 2021-06-18T07:51:40.000Z | catkin_ws/src/spring2016/eharbitz/virtual_mirror_eharbitz/src/virtual_mirror_node.py | DiegoOrtegoP/Software | 4a07dd2dab29db910ca2e26848fa6b53b7ab00cd | [
"CC-BY-2.0"
] | 14 | 2017-03-03T23:33:05.000Z | 2018-04-03T18:07:53.000Z | catkin_ws/src/spring2016/eharbitz/virtual_mirror_eharbitz/src/virtual_mirror_node.py | DiegoOrtegoP/Software | 4a07dd2dab29db910ca2e26848fa6b53b7ab00cd | [
"CC-BY-2.0"
] | 113 | 2016-05-03T06:11:42.000Z | 2019-06-01T14:37:38.000Z | #!/usr/bin/env python
import rospy
import numpy as np
from cv_bridge import CvBridge, CvBridgeError
import cv2
from sensor_msgs.msg import Image
from sensor_msgs.msg import CompressedImage
# Initialize the node with rospy
rospy.init_node('virtual_mirror_node')
bridge = CvBridge()
# Define Timer callback
def callback(ros_data):
# Convert to CV2
np_arr = np.fromstring(ros_data.data, np.uint8)
image_np = cv2.imdecode(np_arr, cv2.CV_LOAD_IMAGE_COLOR)
# Flip image
flipped = cv2.flip(image_np,1)
# Back to ROS format(?)
msg = bridge.cv2_to_imgmsg(flipped,"bgr8")
publisher.publish(msg)
# Create publisher
publisher = rospy.Publisher("~image_out", Image, queue_size=1)
# Create subscriber
subscriber = rospy.Subscriber("~image_in", CompressedImage, callback, queue_size=1)
# spin to keep the script for exiting
rospy.spin() | 23.388889 | 83 | 0.769596 | 127 | 842 | 4.937008 | 0.480315 | 0.031898 | 0.044657 | 0.054226 | 0.073365 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015068 | 0.133017 | 842 | 36 | 84 | 23.388889 | 0.843836 | 0.228029 | 0 | 0 | 0 | 0 | 0.065421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.352941 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.