content
stringlengths 7
1.05M
|
---|
class EvaluationFactory:
factories = {}
@staticmethod
def add_factory(name, evaluation_factory):
"""
Add a EvaluationFactory into all the factories
:param name: the name of the factory
:param evaluation_factory: the instance of the factory
"""
EvaluationFactory.factories[name] = evaluation_factory
@staticmethod
def create_instance(name):
"""
create an evaluation instance from its name
:param name: the name of the evaluation
:return: the instance of the evaluation
"""
return EvaluationFactory.factories[name].create()
@staticmethod
def create_instance_from_dict(d):
"""
create an evaluation instance from a dictionary containing its type
:param d: the dictionary
:return: the instance of the evaluation
"""
name = d['type']
evaluation = EvaluationFactory.factories[name].create()
evaluation.from_dict(d)
return evaluation
|
class QgisCtrl():
def __init__(self, iface):
super(QgisCtrl, self).__init__()
self.iface = iface |
def add_numbers(a, b):
return a + b
def two_n_plus_one(a):
return 2 * a + 1 |
conversation_property_create = """
<config>
<host-table xmlns="urn:brocade.com:mgmt:brocade-arp">
<aging-mode>
<conversational></conversational>
</aging-mode>
<aging-time>
<conversational-timeout>{{arp_aging_timeout}}</conversational-timeout>
</aging-time>
</host-table>
<mac-address-table xmlns="urn:brocade.com:mgmt:brocade-mac-address-table">
<learning-mode>conversational</learning-mode>
<aging-time>
<conversational-time-out>{{mac_aging_timeout}}</conversational-time-out>
<legacy-time-out>{{mac_legacy_aging_timeout}}</legacy-time-out>
</aging-time>
<mac-move>
<mac-move-detect-enable></mac-move-detect-enable>
<mac-move-limit>{{mac_move_limit}}</mac-move-limit>
</mac-move>
</mac-address-table>
</config>
"""
mac_address_table_get = """
/mac-address-table
"""
host_table_get = """
/host-table
"""
|
'''
## Question
### 13. [Roman to Integer](https://leetcode.com/problems/palindrome-number/)
Roman numerals are represented by seven different symbols: `I, V, X, L, C, D and M` .
| | |
|**Symbol**|**Value**|
|:--:|:--:|
|I|1|
|V|5|
|X|10|
|L|50|
|C|100|
|D|500|
|M|1000|
For example, `two` is written as `II` in Roman numeral, just two one's added together. `Twelve` is written as, `XII`, which is simply `X + II`. The number `twenty seven` is written as `XXVII`, which is `XX + V + II`.
Roman numerals are usually written largest to smallest from left to right. However, the numeral for `four` is not `IIII`. Instead, the number four is written as `IV`. Because the one is before the five we subtract it making four. The same principle applies to the number nine, which is written as IX. There are six instances where subtraction is used:
`I` can be placed before `V (5)` and `X (10)` to make `4` and `9`.
`X` can be placed before `L (50)` and `C (100)` to make `40` and `90`.
`C` can be placed before `D (500)` and `M (1000)` to make `400` and `900`.
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from `1 to 3999`.
Example 1:
```
Input: "III"
Output: 3
```
Example 2:
```
Input: "IV"
Output: 4
```
Example 3:
```
Input: "IX"
Output: 9
```
Example 4:
```
Input: "LVIII"
Output: 58
Explanation: L = 50, V= 5, III = 3.
```
Example 5:
```
Input: "MCMXCIV"
Output: 1994
Explanation: M = 1000, CM = 900, XC = 90 and IV = 4.
```
'''
## Solutions
def check(a):
if(a == 'I'):
return 1
elif(a == 'V'):
return 5
elif(a == 'X'):
return 10
elif(a == 'L'):
return 50
elif(a == 'C'):
return 100
elif(a == 'D'):
return 500
elif(a == 'M'):
return 1000
else:
return -1
class Solution:
def romanToInt(self, s: str) -> int:
s = str(s)
i = 0
res = 0
if(len(s) == 1):
return check(s[0])
else:
while i < len(s)-1:
a = check(s[i])
b = check(s[i+1])
if(a < b):
res = res + (b - a)
i = i + 2
else:
res = res + a
i = i + 1
if(i == len(s) - 1):
res = res + check(s[-1])
return res
# Runtime: 140 ms
# Memory Usage: 13.1 |
# Lesson 2
class FakeSocket:
# These variables belong to the CLASS, not the instance!
DEFAULT_IP = '127.0.0.1'
DEFAULT_PORT = 12345
# instance methods can access instance, class, and static variables and methods.
def __init__(self, ip=DEFAULT_IP, port=DEFAULT_PORT):
# These variables belong to the INSTANCE, not the class!
if self.ip_is_valid(ip):
self._ip = ip
else:
self._ip = FakeSocket.DEFAULT_IP # class variables can be accessed through the class name
self._ip = self.__class__.DEFAULT_IP # or the __class__ variable
self._port = port
def ip_address(self):
return self._ip
def port(self):
return self._port
# class methods can access class and static variables and methods, but not instance variables and methods!
# The first parameter is the class itself!
@classmethod
def default_connection_parameters(cls):
print(cls.__name__)
return cls.DEFAULT_IP, cls.DEFAULT_PORT # cls is the same thing returned by self.__class__
# static methods cannot access any class members.
# static methods are helper methods that don't operate on any class specific data, but still belong to the class
@staticmethod
def ip_is_valid(ip): # notice this is not self._ip!
for byte_string in ip.split('.'):
if 0 <= int(byte_string) <= 255:
pass
else:
return False
return True
sock = FakeSocket('9999.99999.-12.0')
print(sock.ip_address())
# Others can access our class members and functions too, unless we use our leading underscores!
print(FakeSocket.DEFAULT_PORT)
|
class CacheItem:
def __init__(self, id, value, compValue=1, order = 1) -> None:
self.id = id
self.compValue = compValue
self.value = value
self.order = order
class PriorityQueue:
items = []
def add(self, item: CacheItem):
self.items.append(item)
self.sort()
def sort(self):
self.items.sort(key = lambda x: (x.compValue, x.order))
def pop(self):
return self.items.pop(0)
class LFUCache:
pq = PriorityQueue()
cache = {}
def __init__(self, capacity: int):
self.size = capacity
def get(self, key: int) -> int:
value = self.cache.get(key, -1)
if value == -1:
return value
value.compValue += 1
self.pq.sort()
return value.value
order = 1
def put(self, key: int, value: int) -> None:
if key in self.cache.keys():
item = self.cache[key]
item.value = value
self.pq.sort()
return
item = CacheItem(key, value, 1, self.order)
self.order +=1
if len(self.cache) == self.size:
popped = self.pq.pop()
del self.cache[popped.id]
self.pq.add(item)
self.cache[key] = item
# Your LFUCache object will be instantiated and called as such:
# obj = LFUCache(capacity)
# param_1 = obj.get(key)
# obj.put(key,value) |
def greaterThan(a, b):
flag = True
count = 0
for i in range(3):
if a[i] < b[i]:
flag = False
break
if a[i] > b[i]:
count += 1
if not flag or count < 1:
return False
else:
return True
t = int(input())
for _ in range(t):
l = []
for i in range(3):
l.append(list(map(int, input().split())))
for i in range(len(l) - 1):
for j in range(len(l) - i - 1):
if greaterThan(l[j], l[j + 1]):
l[j], l[j + 1] = l[j + 1], l[j]
#print(l)
flag = True
for i in range(len(l) - 1):
if not greaterThan(l[i + 1], l[i]):
print("no")
flag = False
break
if not flag:
continue
print("yes")
|
# 141, Суптеля Владислав
# 【Дата】:「09.03.20」
# 18. Перевірити, чи можна переливати кров донор пацієнту.
print("Резус-фактор не враховуємо . . . \n")
def bloodseeker():
d, r = map(int, input("「Донор」(d), 「Реципієнт」(r): ").split())
if d == r:
print("Da.")
elif 1 == d:
print("Da.")
elif r == 4:
print("Da.")
else:
print("Nyet.")
bloodseeker()
# Реципиент Донор
# O(I) A(II) B(III) AB(IV)
# O(I) Да Нет Нет Нет
# A(II) Да Да Нет Нет
# B(III) Да Нет Да Нет
# AB(IV) Да Да Да Да
|
i = 11
print(i)
j = 12
print(j)
f = 12.34
print(f)
g = -0.99
print(g)
s = "Hello, World"
print(s)
print(s[0])
print(s[:5])
print(s[7:12])
l = [2,3,4,5,7,11]
print(l) |
# https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
class Solution:
def maxProfit(self, prices: list[int]) -> int:
max_price = prices[-1]
max_profit = 0
idx = len(prices) - 2 # Start from the penultimate item
while idx >= 0:
curr_price = prices[idx]
profit = max_price - curr_price
if profit > max_profit:
max_profit = profit
if curr_price > max_price:
max_price = curr_price
idx -= 1
return max_profit
|
class TabelaHash:
""" Implementação de uma tabela Hash usando o método da divisão e endereçamento aberto
com sondagem linear para resolver colisões.
"""
def __init__(self, tamanho = 10):
self.lista = [None] * tamanho
def insere(self, elemento):
""" Insere o elemento na tabela Hash.
"""
pos = elemento.chave % len(self.lista)
deu_volta = False
while not deu_volta:
if self.lista[pos] is None or \
self.lista[pos] is TabelaHash.VAZIO: #
self.lista[pos] = elemento
return
pos = (pos + 1) % len(self.lista)
deu_volta = pos == elemento.chave % len(self.lista)
raise RuntimeError('Sem espaço disponível')
def busca(self, chave):
""" Busca o elemento com a chave na tabela Hash e o retorna.
"""
pos = chave % len(self.lista)
deu_volta = False
while not deu_volta:
if self.lista[pos] is None:
return None
elif self.lista[pos] is TabelaHash.VAZIO: #
pass
elif self.lista[pos].chave == chave:
return self.lista[pos]
pos = (pos + 1) % len(self.lista)
deu_volta = pos == chave % len(self.lista)
return None
class Vazio:
""" Marcador de elemento removido.
"""
pass
VAZIO = Vazio()
def remove(self, elemento):
""" Remove um elemento na tabela Hash (usando o Vazio como marcador.)
"""
pos = elemento.chave % len(self.lista)
deu_volta = False
while not deu_volta:
if self.lista[pos] is None:
raise ValueError('Elemento inexistente')
elif self.lista[pos] is elemento:
self.lista[pos] = TabelaHash.VAZIO
return
pos = (pos + 1) % len(self.lista)
deu_volta = pos == elemento.chave % len(self.lista)
raise ValueError('Elemento inexistente')
class Elemento:
""" Classe simples que possui o atributo chave.
"""
def __init__(self, chave):
self.chave = chave
|
##### CLASSE ARBRE #####
class Arbre:
#Initialise l'arbre
def __init__(self):
#Valeur de l'arbre
self.valeur = 0
#Fils gauche
self.gauche = None
#Fils droit
self.droit = None
#Position de l'arbre
self.position = Position()
def __str__(self):
return "["+str(self.gauche)+","+str(self.droit)+"]"
def __len__(self):
return len(self.gauche) + len(self.droit)
def poid(self):
return self.gauche.poid() + self.droit.poid()
#Emplacement du sous arbre gauche
def equilibre(self):
if type(self.gauche) is Arbre:
self.gauche.equilibre()
if type(self.droit) is Arbre:
self.droit.equilibre()
self.valeur = self.droit.poid() / (self.gauche.poid()+self.droit.poid())
#Feuille la plus lourde de l'arbre
def maximum(self):
if self.gauche.maximum() > self.droit.maximum():
return self.gauche.maximum()
else:
return self.droit.maximum()
#Liste des feuille de l'arbre
def listeElement(self):
l = self.gauche.listeElement()
l.extend(self.droit.listeElement())
return l
#Largeur du noeud
def largeurArbre(self):
g = 0
d = 0
if type(self.gauche) is Feuille:
g = self.gauche.valeur
else:
g = self.gauche.largeurArbre()
if type(self.droit) is Feuille:
d = self.droit.valeur
else:
d = self.droit.largeurArbre()
return g+d
#Place les arbres
def placerArbre(self):
largeur = self.largeurArbre()//2
self.gauche.position.x = -largeur*self.valeur
self.gauche.position.y = 0
self.droit.position.x = self.gauche.position.x + largeur
self.droit.position.y = 0
if type(self.gauche) is not Feuille:
self.gauche.placerArbre()
if type(self.droit) is not Feuille:
self.droit.placerArbre()
#Largeur de l'arbre pour le dessin
def largeur(self):
g = self.gauche.largeurGauche() + self.gauche.position.x
d = self.droit.largeurDroit() + self.droit.position.x
return - g + d
def largeurGauche(self):
return self.gauche.position.x + self.gauche.largeurGauche()
def largeurDroit(self):
return self.droit.position.x + self.droit.largeurDroit()
#Longueur de l'arbre pour le dessin
def longueur(self):
hauteur = self.maximum()
return self.longueurRec(hauteur)
def longueurRec(self, hauteur):
d = self.droit.position.y + self.droit.longueurRec(hauteur)
g = self.gauche.position.y + self.gauche.longueurRec(hauteur)
return hauteur + max(d,g)
#Profondeur de l'arbre
def hauteur(self):
if self.gauche.hauteur() > self.droit.hauteur():
return self.gauche.hauteur()+1
return self.droit.hauteur()+1
#Construit le mobile
def constructionArbre(self, v):
poidG = self.gauche.poid()
poidD = self.droit.poid()
if v >= (poidG+poidD):
A = Arbre()
A.gauche = self
A.droit = Feuille(v)
return A
if poidG == poidD:
if self.gauche.hauteur() > self.droit.hauteur():
self.droit = self.droit.constructionArbre(v)
else:
self.gauche = self.gauche.constructionArbre(v)
elif poidG > poidD :
self.droit = self.droit.constructionArbre(v)
else:
self.gauche = self.gauche.constructionArbre(v)
return self
###### CLASSE FEUILLE #####
class Feuille(Arbre):
def __init__(self, v):
self.valeur = v
self.position = Position()
def __str__(self):
return str(self.valeur)
def __len__(self):
return 1
def poid(self):
return self.valeur
def maximum(self):
return self.valeur
def listeElement(self):
return [self.valeur]
def largeurGauche(self):
return -self.valeur//2
def largeurDroit(self):
return self.valeur//2
def longueur(self):
hauteur = self.maximum()
return self.longeurRec(hauteur)
def longueurRec(self, hauteur):
return hauteur + self.valeur//2
def hauteur(self):
return 1
def constructionArbre(self, v):
p = Arbre()
p.gauche = self
p.droit = Feuille(v)
return p
class Position:
def __init__(self):
self.x = 0
self.y = 0
|
class Topology:
"""Heat exchanger topology data"""
def __init__(self, exchanger_addresses, case_study, number):
self.number = number
# Initial heat exchanger topology
self.initial_hot_stream = int(case_study.initial_exchanger_address_matrix['HS'][number] - 1)
self.initial_cold_stream = int(case_study.initial_exchanger_address_matrix['CS'][number] - 1)
self.initial_enthalpy_stage = int(case_study.initial_exchanger_address_matrix['k'][number] - 1)
self.initial_bypass_hot_stream_existent = bool(case_study.initial_exchanger_address_matrix['by_hs'][number] == 1)
self.initial_admixer_hot_stream_existent = bool(case_study.initial_exchanger_address_matrix['ad_hs'][number] == 1)
self.initial_bypass_cold_stream_existent = bool(case_study.initial_exchanger_address_matrix['by_cs'][number] == 1)
self.initial_admixer_cold_stream_existent = bool(case_study.initial_exchanger_address_matrix['ad_cs'][number] == 1)
self.initial_existent = bool(case_study.initial_exchanger_address_matrix['ex'][number] == 1)
self.exchanger_addresses = exchanger_addresses
self.exchanger_addresses.bind_to(self.update_address_matrix)
self.address_matrix = self.exchanger_addresses.matrix
def update_address_matrix(self, address_matrix):
self.address_matrix = address_matrix
@property
def address_vector(self):
return self.address_matrix[self.number]
@property
def hot_stream(self):
return self.address_vector[0]
@property
def cold_stream(self):
return self.address_vector[1]
@property
def enthalpy_stage(self):
return self.address_vector[2]
@property
def bypass_hot_stream_existent(self):
return self.address_vector[3]
@property
def admixer_hot_stream_existent(self):
return self.address_vector[4]
@property
def bypass_cold_stream_existent(self):
return self.address_vector[5]
@property
def admixer_cold_stream_existent(self):
return self.address_vector[6]
@property
def existent(self):
return self.address_vector[7]
def __repr__(self):
pass
def __str__(self):
pass
|
class A:
def func():
pass
class B:
def func():
pass
class C(B,A):
pass
c=C()
c.func() |
class Graph:
def __init__(self, nodes):
self.node = {i: set([]) for i in range(nodes)}
def addEdge(self, src, dest, dir=False):
self.node[src].add(dest)
if not dir:
self.node[dest].add(src) # for undirected edges
class Solution:
def hasCycle(self, graph):
whiteset = set(graph.node.keys())
grayset = set([])
blackset = set([])
while len(whiteset) > 0:
curr = whiteset.pop()
if self.dfs(curr, graph, whiteset, grayset, blackset):
return True
return False
def dfs(self, curr, graph, whiteset, grayset, blackset):
if curr in whiteset:
whiteset.remove(curr)
grayset.add(curr)
for neighbor in graph.node[curr]:
if neighbor in blackset:
continue #already explored
if neighbor in grayset:
return True #cycle found
if self.dfs(neighbor, graph, whiteset, grayset, blackset):
return True
grayset.remove(curr)
blackset.add(curr)
return False
def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:
g = Graph(numCourses)
for src, dest in prerequisites:
g.addEdge(src, dest, dir=True)
return not self.hasCycle(g)
|
"""Binance Module for XChainPY Clients
.. moduleauthor:: Thorchain
"""
__version__ = '0.2.3' |
epochs = 500
batch_size = 25
dropout = 0.2
variables_device = "/cpu:0"
processing_device = "/cpu:0"
sequence_length = 20 # input timesteps
learning_rate = 1e-3
prediction_length = 2 # expected output sequence length
embedding_dim = 5 # input dimension total number of features in our case
## BOSHLTD/ MICO same....
COMPANIES = ['EICHERMOT', 'BOSCHLTD', 'MARUTI', 'ULTRACEMCO', 'HEROMOTOCO',\
'TATAMOTORS', 'BPCL', 'AXISBANK', 'TATASTEEL', 'ZEEL',\
'CIPLA', 'TATAPOWER', 'BANKBARODA', 'NTPC', 'ONGC'];
Twitter_consumer_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Twitter_consumer_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Twitter_access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Twitter_access_token_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
TOI_api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
TOI_top_news_end_point = 'https://newsapi.org/v1/articles?source=cnbc&sortBy=top&apiKey='
TOI_business_end_point = 'https://newsapi.org/v1/articles?source=cnbc&sortBy=top&apiKey='
|
class JustCounter:
__secretCount = 0
publicCount = 0
def count(self):
self.__secretCount += 1
self.publicCount += 1
print(self.__secretCount)
counter = JustCounter()
counter.count()
counter.count()
print(counter.publicCount)
print(counter.__secretCount)
|
"""
``imbalanced-learn`` is a set of python methods to deal with imbalanced
datset in machine learning and pattern recognition.
"""
# Based on NiLearn package
# License: simplified BSD
# PEP0440 compatible formatted version, see:
# https://www.python.org/dev/peps/pep-0440/
#
# Generic release markers:
# X.Y
# X.Y.Z # For bugfix releases
#
# Admissible pre-release markers:
# X.YaN # Alpha release
# X.YbN # Beta release
# X.YrcN # Release Candidate
# X.Y # Final release
#
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
#
__version__ = "0.10.0.dev0"
|
# Password validation
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
|
class Solution:
def simplifyPath(self, path: str) -> str:
spath = path.split('/')
result = []
for i in range(len(spath)):
if spath[i] == '' or spath[i] == '.' or (spath[i] == '..' and len(result) == 0):
continue
elif spath[i] == '..' and len(result) > 0:
result.pop()
else:
result.append(spath[i])
if len(result) == 0:
return '/'
output = ''
for item in result:
output += '/' + item
return output |
class TypeUnknownParser:
"""
Parse invocations to a APIGateway resource with an unknown integration type
"""
def invoke(self, request, integration):
_type = integration["type"]
raise NotImplementedError("The {0} type has not been implemented".format(_type))
|
BOLD = '\033[1m'
RESET = '\033[0m'
def start_box(size):
try:
print('┏' + '━' * size + '┓')
except (UnicodeDecodeError, UnicodeEncodeError):
print('-' * (size + 2))
def end_box(size):
try:
print('┗' + '━' * size + '┛')
except (UnicodeDecodeError, UnicodeEncodeError):
print('-' * (size + 2))
def print_line(string, box=False, bold=False, color=None, size=None):
text_length = len(string)
alt_string = string
if bold:
string = '{}{}{}'.format(BOLD, string, RESET)
if color:
string = '{}{}{}'.format(color, string, RESET)
if box:
if size:
if text_length + 2 < size:
string += ' ' * (size - text_length - 2)
alt_string += ' ' * (size - text_length - 2)
string = '┃ {} ┃'.format(string)
alt_string = '| {} |'.format(string)
try:
print(string)
except (UnicodeDecodeError, UnicodeEncodeError):
try:
print(alt_string)
except (UnicodeDecodeError, UnicodeEncodeError):
print('unprintable setting')
|
#MenuTitle: Nested Components
# -*- coding: utf-8 -*-
__doc__="""
Creates a new tab with glyphs that have nested components.
"""
Font = Glyphs.font
tab = []
def showNestedComponents(glyph):
for idx, layer in enumerate(glyph.layers):
if not layer.components:
continue
for component in layer.components:
component_name = component.componentName
font = glyph.parent
component_glyph = font.glyphs[component_name]
if component_glyph.layers[idx].components:
tab.append('/'+ glyph.name)
print("Glyph %s has nested Components" % glyph.name)
for glyph in Font.glyphs:
showNestedComponents(glyph)
# open new tab with nested components
Font.newTab(''.join(tab)) |
#!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
SPELL=u'huāngshù'
CN=u'肓俞'
NAME=u'huangshu14'
CHANNEL='kidney'
CHANNEL_FULLNAME='KidneyChannelofFoot-Shaoyin'
SEQ='KI16'
if __name__ == '__main__':
pass
|
# fig_supp_steady_pn_lognorm_syn.py ---
# Author: Subhasis Ray
# Created: Fri Mar 15 16:04:34 2019 (-0400)
# Last-Updated: Fri Mar 15 16:05:11 2019 (-0400)
# By: Subhasis Ray
# Version: $Id$
# Code:
jid = '22251511'
#
# fig_supp_steady_pn_lognorm_syn.py ends here
|
# -*- coding: utf-8 -*-
__author__ = 'Amit Arora'
__email__ = '[email protected]'
__version__ = '0.1.0'
|
class Solution:
def addStrings(self, num1: str, num2: str) -> str:
nums1 = list(num1)
nums2 = list(num2)
res, carry = [], 0
while nums1 or nums2:
n1 = n2 = 0
if nums1:
n1 = ord(nums1.pop()) - ord("0")
if nums2:
n2 = ord(nums2.pop()) - ord("0")
carry, remain = divmod(n1 + n2 + carry, 10)
res.append(remain)
if carry:
res.append(carry)
return "".join(str(d) for d in res)[::-1]
|
#
# Copyright (c) 2013 Markus Eliasson, http://www.quarterapp.com/
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
class ApiError:
"""
Represents a API error that is returned to the user.
"""
def __init__(self, code, message):
self.code = code
self.message = message
SUCCESS_CODE = 0
ERROR_RETRIEVE_SETTING = ApiError(101, "Could not retrieve setting")
ERROR_NO_SETTING_KEY = ApiError(102, "No settings key given")
ERROR_NO_SETTING_VALUE = ApiError(103, "No value specified for setting key")
ERROR_UPDATE_SETTING = ApiError(104, "Could not update setting key")
ERROR_DISABLE_USER = ApiError(300, "Could not disble the given user")
ERROR_DISABLE_NO_USER = ApiError(301, "Could not disble user - no user given")
ERROR_ENABLE_USER = ApiError(302, "Could not enable the given user")
ERROR_ENABLE_NO_USER = ApiError(303, "Could not enable user - no user given")
ERROR_DELETE_USER = ApiError(304, "Could not delete the given user")
ERROR_DELETE_NO_USER = ApiError(305, "Could not delete user - no user given")
ERROR_NOT_AUTHENTICATED = ApiError(400, "Not logged in")
ERROR_NO_ACTIVITY_TITLE = ApiError(500, "Missing value for title")
ERROR_NO_ACTIVITY_COLOR = ApiError(501, "Missing value for color")
ERROR_NOT_VALID_COLOR_HEX = ApiError(502, "Invalid color hex format")
ERROR_NO_ACTIVITY_ID = ApiError(503, "Missing activity id")
ERROR_DELETE_ACTIVITY = ApiError(504, "Could not delete activity")
ERROR_NO_QUARTERS = ApiError(600, "No quarters given")
ERROR_NOT_96_QUARTERS = ApiError(601, "Expected 96 quarters")
ERROR_INVALID_SHEET_DATE = ApiError(602, "Expected date in YYYY-MM-DD format")
|
class DrumException(Exception):
"""Base drum exception"""
pass
class DrumCommonException(DrumException):
"""Raised in case of common errors in drum"""
pass
class DrumPerfTestTimeout(DrumException):
"""Raised when the perf-test case takes too long"""
pass
class DrumPerfTestOOM(DrumException):
""" Raised when the container running drum during perf test is OOM """
pass
class DrumPredException(DrumException):
""" Raised when prediction consistency check fails"""
pass
class DrumSchemaValidationException(DrumException):
""" Raised when the supplied schema in model_metadata does not match actual input or output data."""
class DrumTransformException(DrumException):
""" Raised when there is an issue specific to transform tasks."""
|
class SATImportOptions(BaseImportOptions, IDisposable):
"""
The import options used to import SAT format files.
SATImportOptions(option: SATImportOptions)
SATImportOptions()
"""
def Dispose(self):
""" Dispose(self: BaseImportOptions,A_0: bool) """
pass
def ReleaseUnmanagedResources(self, *args):
""" ReleaseUnmanagedResources(self: BaseImportOptions,disposing: bool) """
pass
def __enter__(self, *args):
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self, *args):
""" __exit__(self: IDisposable,exc_type: object,exc_value: object,exc_back: object) """
pass
def __init__(self, *args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
@staticmethod
def __new__(self, option=None):
"""
__new__(cls: type,option: SATImportOptions)
__new__(cls: type)
"""
pass
|
# -*- coding: utf-8 -*-
"""
pagarmecoreapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class HttpContext(object):
"""An HTTP Context that contains both the original HttpRequest
object that intitiated the call and the HttpResponse object that
is the result of the call.
Attributes:
request (HttpRequest): The original request object.
response (HttpResponse): The returned response object after
executing the request. Note that this may be None
depending on if and when an error occurred.
"""
def __init__(self,
request,
response):
"""Constructor for the HttpContext class
Args:
request (HttpRequest): The HTTP Request.
response (HttpResponse): The HTTP Response.
"""
self.request = request
self.response = response
|
# -*- coding: utf-8 -*-
sehir = {"0":"http://ibb-media1.ibb.gov.tr:1935/live/223.stream/chunklist_w1088399288.m3u8", #mecidiyeköy
"1":"http://ibb-media1.ibb.gov.tr:1935/live/344.stream/chunklist_w1837373499.m3u8", #FSM Köprüsü
"2":"http://ibb-media1.ibb.gov.tr:1935/live/338.stream/chunklist_w1878212776.m3u8", #268-s yolu asiyan
"3":"http://ibb-media4.ibb.gov.tr:1935/live/43.stream/chunklist_w92679156.m3u8",#beşiktaş
"4":"http://ibb-media1.ibb.gov.tr:1935/live/282.stream/chunklist_w1481500069.m3u8", #sirkeci
"5":"http://ibb-media4.ibb.gov.tr:1935/live/66.stream/chunklist_w1412092558.m3u8", #Acıbadem Köprüsü
"6":"hhttp://ibb-media1.ibb.gov.tr:1935/live/201.stream/chunklist_w1783199883.m3u8", #Kadıköy Rıhtım
"7":"http://ibb-media1.ibb.gov.tr:1935/live/202.stream/chunklist_w2146144758.m3u8", #Kağıthane
"8":"http://ibb-media2.ibb.gov.tr:1935/live/664.stream/chunklist_w814352611.m3u8",#Çavuşbaşı
"9":"http://ibb-media2.ibb.gov.tr:1935/live/648.stream/chunklist_w109196455.m3u8", #dünya gazetesi
"10":"http://ibb-media4.ibb.gov.tr:1935/live/13.stream/chunklist_w779799182.m3u8", #Atatürk Havalimanı
"11":"http://ibb-media4.ibb.gov.tr:1935/live/81.stream/chunklist_w660600761.m3u8", # 15 temmuz şehitler köprüsü
"12":"http://ibb-media1.ibb.gov.tr:1935/live/174.stream/chunklist_w1362957790.m3u8", #Bahçe Taksim
"13":"http://ibb-media4.ibb.gov.tr:1935/live/45.stream/chunklist_w1312528785.m3u8", #Eyüp Feshane
"14":"http://ibb-media4.ibb.gov.tr:1935/live/114.stream/chunklist_w957944218.m3u8", # harem ido
"15":"http://ibb-media2.ibb.gov.tr:1935/live/1021.stream/chunklist_w1274393475.m3u8", #H.U Tuneli beykoz
"16":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_eminonu.stream/chunklist_w1540259992.m3u8", # Eminönü
"17":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_eyup.stream/chunklist_w1334162288.m3u8", # Eyüp Sultan
"18":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_istiklal_cad_1.stream/chunklist_w1111317814.m3u8", # İstiklal Caddesi 1
"19":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_istiklal_cad_2.stream/chunklist_w307191567.m3u8", # İstiklal Caddesi 2
"20":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_misir_carsisi.stream/chunklist_w1494476399.m3u8", # Mısır Çarşısı
"21":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_miniaturk.stream/chunklist_w2019234198.m3u8", # Miniatürk
"22":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_sarachane.stream/chunklist_w1856727921.m3u8", # Saraçhane
"23":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_sultanahmet_2.stream/chunklist_w668404393.m3u8", # Sultan Ahmet
"24":"https://livestream.ibb.gov.tr/cam_turistik/cam_trsk_bagdat_cad_1.stream/chunklist_w2097004344.m3u8", # Bağdat caddesi
}
def selected_camera(index):
camera_selected = sehir[f'{index-1}']
return camera_selected |
def backtrack(estado_corrente, n):
# 1. verifique se o estado corrente merece tratamento especial
# (se é um estado "final")
if len(estado_corrente) == n:
print(estado_corrente) # encontrei uma permutacao caótica!
return # nada mais a ser feito a partir deste estado atual
posicao_a_ser_preenchida = len(estado_corrente) + 1
# 2. para cada "candidato a próximo passo", faça...
for candidato in range(1, n+1):
# 2.1 se candidato é de fato um próximo passo válido (verifica as restrições)
if candidato == posicao_a_ser_preenchida:
continue # descarto esse candidato, passo para o próximo
if candidato in estado_corrente:
continue # esse número já apareço, não posso usá-lo!
# 2.2 modifica o estado corrente usando o candidato
estado_corrente.append(candidato)
# 2.3 chamo recursivamente o próprio backtrack passando o novo estado
backtrack(estado_corrente, n)
# 2.4 limpo a modificação que fiz
estado_corrente.pop()
def perm_caoticas(n):
# crio o estado inicial
permutacao = []
backtrack(permutacao, n)
|
nome_usuario=input("faça o login com seu nome\n")
senha=input("Digite sua senha\n")
while senha==nome_usuario:
print("Erro! Senha ou nome de usuário inválido\n")
nome_usuario=input("faça o login com seu nome\n")
senha=input("Digitre sua senha\n")
|
Alcool=0
Gasolina=0
Diesel=0
numero=0
while True:
numero=int(input())
if(numero==1):
Alcool+=1
if(numero==2):
Gasolina+=1
if(numero==3):
Diesel+=1
if(numero==4):
break
print('MUITO OBRIGADO')
print(f'Alcool: {Alcool}')
print(f'Gasolina: {Gasolina}')
print(f'Diesel: {Diesel}')
|
#!/usr/bin/python
class GrabzItScrape:
def __init__(self, identifier, name, status, nextRun, results):
self.ID = identifier
self.Name = name
self.Status = status
self.NextRun = nextRun
self.Results = results
|
# -*- coding: utf-8 -*-
def main():
s = input()
n = len(s)
k = int(input())
if k > n:
print(0)
else:
ans = set()
for i in range(n - k + 1):
ans.add(s[i:i + k])
print(len(ans))
if __name__ == '__main__':
main()
|
nome = input ("colocar nome do cliente:")
preco = float (input ("colocar preco:"))
quantidade = float (input ("colocar a contidade:"))
valor_total = (quantidade) * (preco)
print("Senhor %s seus produtos totalizam R$ %.2f reais."%(nome,valor_total)) |
# -*- coding: utf-8 -*-
"""
1184. Distance Between Bus Stops
A bus has n stops numbered from 0 to n - 1 that form a circle.
We know the distance between all pairs of neighboring stops where distance[i] is the distance between the stops number
i and (i + 1) % n.
The bus goes along both directions i.e. clockwise and counterclockwise.
Return the shortest distance between the given start and destination stops.
Constraints:
1 <= n <= 10^4
distance.length == n
0 <= start, destination < n
0 <= distance[i] <= 10^4
"""
class Solution:
def distanceBetweenBusStops(self, distance, start: int, destination: int) -> int:
all_distance = sum(distance)
s, e = sorted([start, destination])
one_distance = sum(distance[s:e])
return min(one_distance, all_distance - one_distance)
|
"""Message passing enables object impermanent worlds.
"""
class Message:
"""A message can be passed between layers in order to affect the model's
behavior.
Each message has a unique id, which can be used to manipulate this message
afterwards.
"""
def __init__(self, msg):
self.msg = msg
def __repr__(self):
return self.msg
def __call__(self, layer):
pass
class ForgetMessage(Message):
"""A forget message tells all layers to forget until it is revoked.
"""
def __init__(self, cond=None, msg='forget'):
super().__init__(msg=msg)
if cond is None:
cond = lambda x: True
self.cond = cond
def __call__(self, layer):
if self.cond(layer):
layer.forget()
class MessageStack(dict):
"""A message stack assembles all messages for an atom.
"""
def __init__(self):
super().__init__()
self.new_id = 0
def add_message(self, msg):
if isinstance(msg, str):
msg = Message(msg)
if not isinstance(msg, Message):
raise ValueError('msg must be Message but is of type {}.'.\
format(type(msg),))
id = self.get_id()
self[id] = msg
def get_id(self):
old_id = self.new_id
self.new_id += 1
return old_id
def __call__(self, layer):
for msg in self.values():
msg(layer)
def restart(self):
pop_keys = []
for key, msg in self.items():
if isinstance(msg, ForgetMessage):
pop_keys.append(key)
for key in pop_keys:
self.pop(key)
|
"""
Version of vpc
"""
__version__ = '0.5.0'
|
class Celsius:
def __init__(self, temperature=0):
self.temperature = temperature
def to_fahrenheit(self):
return (self.temperature * 1.8) + 32
@property
def temperature(self):
print(f"Getting value: {self.__temperature}")
return self.__temperature # private attribute = encapsulation
@temperature.setter
def temperature(self, value):
if value < -273: # validation
raise ValueError("Temperature below -273 is not possible")
print(f"Setting value: {value}")
self.__temperature = value # private attribute = encapsulation
@temperature.deleter
def temperature(self):
del self.__temperature
if __name__ == '__main__':
c = Celsius(300)
# temp = c._Celsius__temperature;
c.temperature -= 10;
print(c.temperature)
del c.temperature
# print(c.temperature)
|
# Created by MechAviv
# Map ID :: 807040000
# Momijigaoka : Unfamiliar Hillside
if "1" not in sm.getQRValue(57375) and sm.getChr().getJob() == 4001:
sm.curNodeEventEnd(True)
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(True, True, False, False)
sm.sendDelay(1000)
sm.levelUntil(10)
sm.createQuestWithQRValue(57375, "1")
sm.removeSkill(40010001)
sm.setJob(4100)
sm.resetStats()
# Unhandled Stat Changed [HP] Packet: 00 00 00 04 00 00 00 00 00 00 CB 00 00 00 FF 00 00 00 00
# Unhandled Stat Changed [MHP] Packet: 00 00 00 08 00 00 00 00 00 00 C2 00 00 00 FF 00 00 00 00
# Unhandled Stat Changed [MMP] Packet: 00 00 00 20 00 00 00 00 00 00 71 00 00 00 FF 00 00 00 00
sm.addSP(6, True)
# Unhandled Stat Changed [MHP] Packet: 00 00 00 08 00 00 00 00 00 00 BC 01 00 00 FF 00 00 00 00
# Unhandled Stat Changed [MMP] Packet: 00 00 00 20 00 00 00 00 00 00 D5 00 00 00 FF 00 00 00 00
# [INVENTORY_GROW] [01 1C ]
# [INVENTORY_GROW] [02 1C ]
# [INVENTORY_GROW] [03 1C ]
# [INVENTORY_GROW] [04 1C ]
sm.giveSkill(40010000, 1, 1)
sm.giveSkill(40010067, 1, 1)
sm.giveSkill(40011288, 1, 1)
sm.giveSkill(40011289, 1, 1)
sm.removeSkill(40011227)
sm.giveSkill(40011227, 1, 1)
# Unhandled Stat Changed [HP] Packet: 00 00 00 04 00 00 00 00 00 00 D2 01 00 00 FF 00 00 00 00
# Unhandled Stat Changed [MP] Packet: 00 00 00 10 00 00 00 00 00 00 DF 00 00 00 FF 00 00 00 00
# Unhandled Stat Changed [WILL_EXP] Packet: 00 00 00 00 40 00 00 00 00 00 20 2B 00 00 FF 00 00 00 00
# Unhandled Message [INC_NON_COMBAT_STAT_EXP_MESSAGE] Packet: 14 00 00 40 00 00 00 00 00 20 2B 00 00
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(False, True, False, False) |
def pierwsza():
"""Tutaj będzie nasz opis"""
imie = input("Podaj swoje imię: ")
print(f"Cześć {imie} - tu Python.")
def druga(powitanie):
"""Witam się z userem
powitanie - string do wypisania"""
imie = input("Podaj swoje imię: ")
print(f"Cześć {imie} - tu {powitanie}.")
#############################################
def miejsca_w_samolocie(rz1, rz2):
"""obliczamy ilość miejsc w samolocie"""
ile_miejsc = rz1 * 2 + rz2 * 4
print(f"Nasz samolot dla {rz1} 1kl i {rz2} 2 kl ma {ile_miejsc} miejsc dla pasażerów.")
def miejsca_w_samolocie_2(rz1, rz2):
"""obliczamy ilość miejsc w samolocie"""
ile_miejsc = rz1 * 2 + rz2 * 4
return ile_miejsc
def cena_biletu(wartosc, miejsc):
"""cena biletu dla liczby miejsc"""
return round(wartosc/miejsc, 2)
|
age=input("How old are you?")
height=input("How tall are you?")
weight=input("How much do you weigh?")
print("So, you're %r old, %r tall and %r heavy." %(age,height,weight))
|
#!/usr/bin/python3
__author__ = 'Alan Au'
__date__ = '2017-12-13'
'''
--- Day 10: Knot Hash ---
You come across some programs that are trying to implement a software emulation of a hash based on knot-tying. The hash these programs are implementing isn't very strong, but you decide to help them anyway. You make a mental note to remind the Elves later not to invent their own cryptographic functions.
This hash function simulates tying a knot in a circle of string with 256 marks on it. Based on the input to be hashed, the function repeatedly selects a span of string, brings the ends together, and gives the span a half-twist to reverse the order of the marks within it. After doing this many times, the order of the marks is used to build the resulting hash.
4--5 pinch 4 5 4 1
/ \ 5,0,1 / \/ \ twist / \ / \
3 0 --> 3 0 --> 3 X 0
\ / \ /\ / \ / \ /
2--1 2 1 2 5
To achieve this, begin with a list of numbers from 0 to 255, a current position which begins at 0 (the first element in the list), a skip size (which starts at 0), and a sequence of lengths (your puzzle input). Then, for each length:
Reverse the order of that length of elements in the list, starting with the element at the current position.
Move the current position forward by that length plus the skip size.
Increase the skip size by one.
The list is circular; if the current position and the length try to reverse elements beyond the end of the list, the operation reverses using as many extra elements as it needs from the front of the list. If the current position moves past the end of the list, it wraps around to the front. Lengths larger than the size of the list are invalid.
Once this process is complete, what is the result of multiplying the first two numbers in the list?
'''
inFile = open("10.txt",'r')
inText = inFile.read().strip() #real input
lengths = list(map(int,inText.split(',')))
listsize = 256
current = skip = 0
mylist = list(range(listsize))
mylist.extend(list(range(listsize)))
for interval in lengths:
sublist = mylist[current: current+interval]
sublist.reverse()
mylist[current: current+interval] = sublist
current += interval
if current > listsize:
mylist[:current-listsize] = mylist[listsize:current]
else:
mylist[listsize:] = mylist[:listsize]
current += skip
current = current % listsize
skip += 1
print("Multiplying the first two numbers of your final list gives you: "+str(mylist[0]*mylist[1])) |
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
d = {}
for i, x in enumerate(nums):
if target - x in d:
return [i, d[target - x]]
d[x] = i
return []
|
class Person:
def __init__(self, name, money):
self.name = name
self.money = money
@property
def money(self):
print("money getter executed")
return self.__money
@money.setter
def money(self, money):
print("setter executed")
if money < 0:
self.__money = 0
else:
self.__money = money
if __name__ == "__main__":
peo = Person("john", 5000)
print(peo.name, peo.money)
|
"""This module contains the constants."""
HTML_DIR = 'views'
UI_DIR = 'views'
VOCABULARY_FILE = 'vocabulary.json'
CONFIG_FILE = 'config.json'
WORDNIK_API_URL = 'https://api.wordnik.com/v4'
|
# Lab 26
#!/usr/bin/env python3
def main():
round = 0
answer = ' '
while round < 3 and answer.lower() != "brian":
round += 1
print('Finish the movie title, "Monty Python\'s The Life of ______"')
answer = input("Your answer --> ")
if answer.lower() == "brian":
print("Correct")
break
elif answer.lower() == "shrubbery":
print("You got the secret answer!")
break
elif round == 3:
print("Sorry, the answer was Brian.")
break
else:
print("Sorry! Try again!")
if __name__ == "__main__":
main() |
MONEY_HEIST_QUOTES = [
{
"id": 1,
"author": "Tokyo",
"quote": "In the end, love is a good reason for everything to fall apart.",
},
{
"id": 2,
"author": "Tokyo",
"quote": "Have you ever thought that if you could go back in time, you might still make the same decisions? We all make our own snowballs out of our bad decisions. Balls that become massive, like the Indiana Jones boulder, chasing you down-hill only to crush you in the end.",
},
{
"id": 3,
"author": "Tokyo",
"quote": "That is nostalgia: finding out that things from the past you didn’t even expectwere happiness…. actually were",
},
{
"id": 4,
"author": "Tokyo",
"quote": "The good thing about relationships is that you finally forget how they started.",
},
{
"id": 5,
"author": "Tokyo",
"quote": "After all, what’s more human than the fight for survival?",
},
{
"id": 6,
"author": "Tokyo",
"quote": "There are moments in life we should just be able to have a damn remote control, so you could pause it. Even if just for five minutes. But sometimes things happen with irreverent obscenity and there’s nothing you can do to help it.",
},
{
"id": 7,
"author": "Tokyo",
"quote": "When you spend years thinking about something obsessively, that something is your whole world, your perfect world.",
},
{
"id": 8,
"author": "Tokyo",
"quote": "All the decisions we made in the past leads us inexorably into the future.",
},
{
"id": 9,
"author": "Tokyo",
"quote": "When you hit rock bottom, you still have a way to go until the abyss.",
},
{
"id": 10,
"author": "Tokyo",
"quote": "I’d get 30 years. And to be honest, growing old in a prison cell is not my thing. I’d rather run, in body and soul. And if I can’t take my body with me, at least my soul should run.",
},
{
"id": 11,
"author": "Tokyo",
"quote": "The most important moments are the ones that make you realize there’s no turning back. You’ve crossed a line, and you’re stuck on the other side now.",
},
{
"id": 12,
"author": "Professor",
"quote": "When someone is in love, they look through rose-tinted glasses. Everything’s wonderful. They transform into a soft teddy bear that’s smiling all the time.",
},
{
"id": 13,
"author": "Professor",
"quote": "In this world, everything is governed by balance. There’s what you stand to gain and what you stand to lose. And when you think you’ve got nothing to lose, you become overconfident",
},
{
"id": 14,
"author": "Professor",
"quote": "Weakness is not in us, it is what we have outside.",
},
{
"id": 15,
"author": "Professor",
"quote": "In the end, one cares about many things, and we should not give so much importance to things.",
},
{
"id": 16,
"author": "Professor",
"quote": "Sometimes a truce is the most important part of a war.",
},
{"id": 17, "author": "Berlin", "quote": "Love can’t be timed. It has to be lived."},
{
"id": 18,
"author": "Berlin",
"quote": "First times are special. Unique. But the last times are beyond comparison. They are priceless. But people don’t know it’s their last time.",
},
{
"id": 19,
"author": "Berlin",
"quote": "Sometimes distance is the only way to find peace. So you can heal your wound.",
},
{
"id": 20,
"author": "Berlin",
"quote": "I’ve spent my life being a bit of a son of a bitch, but today I think I want to die with dignity.",
},
{
"id": 21,
"author": "Berlin",
"quote": "Believe me, I’ve had five divorces. Do you know what five divorces are? Five times I believed in love.",
},
{
"id": 22,
"author": "Berlin",
"quote": "Death can be the greatest opportunity of your life.",
},
{
"id": 23,
"author": "Berlin",
"quote": "Because someday, something will go wrong. It could cost you your life or something worse. And on that day what you can’t be thinking is that you are to be blamed for something you couldn’t control. That’s life. Enjoy it, until the party is over.",
},
{
"id": 24,
"author": "Berlin",
"quote": "For a joke to work, it has to have part of truth and part of pain.",
},
{
"id": 25,
"author": "Berlin",
"quote": "No matter how tough things get, children always turn out okay.",
},
{
"id": 26,
"author": "Berlin",
"quote": "I have always wanted to have one mahogany desk, but crime and office don’t get along.",
},
{
"id": 27,
"author": "Nairobi",
"quote": "You don’t love anyone? Of course you don’t, darling. You don’t have the balls for it. To love, you need courage.",
},
{
"id": 28,
"author": "Nairobi",
"quote": "Family members help each other, no questions asked. Because it makes you happy and your life depends on it. You have your plan, I know. Well, I have one, too. You’ve taught me that we help each other. That’s who we are.",
},
{
"id": 29,
"author": "Nairobi",
"quote": "You know what else is scary? Walking home alone at night. But us women keep doing it. Take fear by the hand and keep living. Because you have to live, gentlemen! You have to live until the end!",
},
{"id": 30, "author": "Nairobi", "quote": "Let the matriarchy begin."},
{
"id": 31,
"author": "Nairobi",
"quote": "What you have to do is show these suckers what you’re capable of. Show them you’re not scared.",
},
{
"id": 32,
"author": "Mariví Fuentes",
"quote": "Dear, in the end, love is what makes us see life in another color, and lately, you have only seen everything black.",
},
]
|
config = {
'username': "", # Robinhood credentials
'password': "",
'trades_enabled': False, # if False, just collect data
'simulate_api_calls': False, # if enabled, just pretend to connect to Robinhood
'ticker_list': { # list of coin ticker pairs Kraken/Robinhood (XETHZUSD/ETH, etc) - https://api.kraken.com/0/public/AssetPairs
'XETHZUSD': 'ETH'
},
'trade_signals': { # select which strategies to use (buy, sell); see classes/signals.py for more info
'buy': 'sma_rsi_threshold',
'sell': 'above_buy'
},
'moving_average_periods': { # data points needed to calculate SMA fast, SMA slow, MACD fast, MACD slow, MACD signal
'sma_fast': 12, # 12 data points per hour
'sma_slow': 48,
'ema_fast': 12,
'ema_slow': 48,
'macd_fast': 12,
'macd_slow': 26,
'macd_signal': 7
},
'rsi_period': 48, # data points for RSI
'rsi_threshold': { # RSI thresholds to trigger a buy or a sell order
'buy': 39.5,
'sell': 60
},
'buy_below_moving_average': 0.0075, # buy if price drops below Fast_MA by this percentage (0.75%)
'profit_percentage': 0.01, # sell if price raises above purchase price by this percentage (1%)
'buy_amount_per_trade': 0, # if greater than zero, buy this amount of coin, otherwise use all the cash in the account
'reserve': 0.0, # tell the bot if you don't want it to use all of the available cash in your account
'stop_loss_threshold': 0.3, # sell if the price drops at least 30% below the purchase price
'minutes_between_updates': 5, # 1 (default), 5, 15, 30, 60, 240, 1440, 10080, 21600
'cancel_pending_after_minutes': 20, # how long to wait before cancelling an order that hasn't been filled
'save_charts': True,
'max_data_rows': 2000
}
|
# %% [279. Perfect Squares](https://leetcode.com/problems/perfect-squares/)
class Solution:
def numSquares(self, n: int) -> int:
return numSquares(n, math.floor(math.sqrt(n)))
@functools.lru_cache(None)
def numSquares(n, m):
if n <= 0 or not m:
return 2 ** 31 if n else 0
return min(numSquares(n - m * m, m) + 1, numSquares(n, m - 1))
|
class Service:
def __init__(self):
self.ver = '/api/nutanix/v3/'
@property
def name(self):
return self.ver
|
# https://leetcode.com/problems/word-search
class Solution:
def __init__(self):
self.ans = False
def backtrack(self, current_length, visited, y, x, board, word):
if self.ans:
return
if current_length == len(word):
self.ans = True
return
nexts = [(y + 1, x), (y - 1, x), (y, x + 1), (y, x - 1)]
for ny, nx in nexts:
if (
0 <= ny < len(board)
and 0 <= nx < len(board[0])
and (ny, nx) not in visited
and word[current_length] == board[ny][nx]
):
visited.add((ny, nx))
self.backtrack(current_length + 1, visited, ny, nx, board, word)
visited.remove((ny, nx))
def exist(self, board, word):
for y in range(len(board)):
for x in range(len(board[0])):
if board[y][x] == word[0]:
visited = {(y, x)}
self.backtrack(1, visited, y, x, board, word)
return self.ans
|
a = 1
b = 2
c = 3
print("hello python")
|
# -*- coding: utf-8 -*-
name = 'usd_katana'
version = '0.8.2'
requires = [
'usd-0.8.2'
]
build_requires = [
'cmake-3.2',
]
variants = [['platform-linux', 'arch-x86_64', 'katana-2.5.4'],
['platform-linux', 'arch-x86_64', 'katana-2.6.4']]
def commands():
env.KATANA_RESOURCES.append('{this.root}/third_party/katana/plugin')
env.KATANA_POST_PYTHONPATH.append('{this.root}/third_party/katana/lib')
|
class PMS_base(object):
history_number = 2 # image history number
jobs = 4 # thread or process number
max_iter_number = 400 # 'control the max iteration number for trainning')
paths_number = 4 # 'number of paths in each rollout')
max_path_length = 200 # 'timesteps in each path')
batch_size = 100 # 'batch size for trainning')
max_kl = 0.01 # 'the largest kl distance # \sigma in paper')
gae_lambda = 1.0 # 'fix number')
subsample_factor = 0.05 # 'ratio of the samples used in training process')
cg_damping = 0.001 # 'conjugate gradient damping')
discount = 0.99 # 'discount')
cg_iters = 20 # 'iteration number in conjugate gradient')
deviation = 0.1 # 'fixed')
render = False # 'whether to render image')
train_flag = True # 'true for train and False for test')
iter_num_per_train = 1 # 'iteration number in each trainning process')
checkpoint_file = '' # 'checkpoint file path # if empty then will load the latest one')
save_model_times = 2 # 'iteration number to save model # if 1 # then model would be saved in each iteration')
record_movie = False # 'whether record the video in gym')
upload_to_gym = False # 'whether upload the result to gym')
checkpoint_dir = 'checkpoint/' # 'checkpoint save and load path # for parallel # it should be checkpoint_parallel')
environment_name = 'ObjectTracker-v1' # 'environment name')
min_std = 0.2 # 'the smallest std')
center_adv = True # 'whether center advantage # fixed')
positive_adv = False # 'whether positive advantage # fixed')
use_std_network = False # 'whether use network to train std # it is not supported # fixed')
std = 1.1 # 'if the std is set to constant # then this value will be used')
obs_shape = [224, 224, 3] # 'dimensions of observation')
action_shape = 4 # 'dimensions of action')
min_a = -2.0 # 'the smallest action value')
max_a = 2.0 # 'the largest action value')
decay_method = "adaptive" # "decay_method:adaptive # linear # exponential") # adaptive # linear # exponential
timestep_adapt = 600 # "timestep to adapt kl")
kl_adapt = 0.0005 # "kl adapt rate")
obs_as_image = True
checkpoint_file = None
batch_size = int(subsample_factor * paths_number * max_path_length) |
def labyrinth(levels, orcs_first, L):
if levels == 1:
return orcs_first
return min(labyrinth(levels - 1, orcs_first, L) ** 2, labyrinth(levels - 1, orcs_first, L) + L)
print(labyrinth(int(input()), int(input()), int(input())))
|
_base_ = [
'../_base_/models/mask_rcnn_r50_fpn.py',
'../_base_/datasets/cityscapes_instance.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained=None,
roi_head=dict(
bbox_head=dict(
type='Shared2FCBBoxHead',
in_channels=256,
fc_out_channels=1024,
roi_feat_size=7,
num_classes=8,
bbox_coder=dict(
type='DeltaXYWHBBoxCoder',
target_means=[0., 0., 0., 0.],
target_stds=[0.1, 0.1, 0.2, 0.2]),
reg_class_agnostic=False,
loss_cls=dict(
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0),
loss_bbox=dict(type='SmoothL1Loss', beta=1.0, loss_weight=1.0)),
mask_head=dict(
type='FCNMaskHead',
num_convs=4,
in_channels=256,
conv_out_channels=256,
num_classes=8,
loss_mask=dict(
type='CrossEntropyLoss', use_mask=True, loss_weight=1.0))))
# optimizer
# lr is set for a batch size of 8
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=None)
# learning policy
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=500,
warmup_ratio=0.001,
# [7] yields higher performance than [6]
step=[7])
runner = dict(
type='EpochBasedRunner', max_epochs=8) # actual epoch = 8 * 8 = 64
log_config = dict(interval=100)
# For better, more stable performance initialize from COCO
load_from = 'https://download.openmmlab.com/mmdetection/v2.0/mask_rcnn/mask_rcnn_r50_fpn_1x_coco/mask_rcnn_r50_fpn_1x_coco_20200205-d4b0c5d6.pth' # noqa
|
#!/usr/bin/python3
for tens in range(0, 9):
for ones in range(tens + 1, 10):
if tens != 8:
print("{}{}, ".format(tens, ones), end='')
print("89")
|
# ==================================================================================================
# Copyright 2014 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this work except in compliance with the License.
# You may obtain a copy of the License in the LICENSE file, or 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.
# ==================================================================================================
def sizeof_fmt(num):
for x in ('', 'KB', 'MB', 'GB'):
if num < 1024.0:
if x == '':
return "%d%s" % (num, x)
else:
return "%3.1f%s" % (num, x)
num /= 1024.0
return "%3.1f%s" % (num, 'TB')
class Counters(object):
ALL = -1
WRITES = 0
READS = 1
CREATE = 2
SET_DATA = 3
GET_DATA = 4
DELETE = 5
GET_CHILDREN = 6
EXISTS = 7
CREATE_BYTES = 8
SET_DATA_BYTES = 9
GET_DATA_BYTES = 10
DELETE_BYTES = 11
GET_CHILDREN_BYTES = 12
EXISTS_BYTES = 13
CountersByName = {
"all": Counters.ALL,
"writes": Counters.WRITES,
"reads": Counters.READS,
"create": Counters.CREATE,
"getdata": Counters.GET_DATA,
"setdata": Counters.SET_DATA,
"delete": Counters.DELETE,
"getchildren": Counters.GET_CHILDREN,
"getchildren_bytes": Counters.GET_CHILDREN_BYTES,
"create_bytes": Counters.CREATE_BYTES,
"getdata_bytes": Counters.GET_DATA_BYTES,
"setdata_bytes": Counters.SET_DATA_BYTES,
"delete_bytes": Counters.DELETE_BYTES,
}
def counter_to_str(counter):
for name, c in CountersByName.items():
if counter == c:
return name
return ""
|
# -*- coding: utf-8 -*-
# Copyright (c) 2019, Silvio Peroni <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
# FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT,
# OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
def f(mat_string):
c = 0
lst = list()
for chr in mat_string:
n = int(chr)
lst.append(n)
if n / 2 != n // 2:
c = c + 1
return g(lst, c)
def g(mat_list, c):
if c <= 0 or len(mat_list) == 0:
return 0
else:
v = 0
result = list()
for i in mat_list:
if v > 0:
result.append(i)
if i > 0 and v == 0:
v = i
return v + g(result, c - 1)
my_mat_string = input("Please provide ten 0-9 digits: ").strip()
print("Result:", f(my_mat_string))
|
class A:
def __init__(self):
self.A_NEW_NAME = 1
def _foo(self):
pass
a_class = A()
a_class._foo()
print(a_class.A_NEW_NAME)
|
# Constants used for creating the Filesets.
FILESETS_ENTRY_GROUP_NAME_COLUMN_LABEL = 'entry_group_name'
FILESETS_ENTRY_GROUP_DISPLAY_NAME_COLUMN_LABEL = 'entry_group_display_name'
FILESETS_ENTRY_GROUP_DESCRIPTION_COLUMN_LABEL = 'entry_group_description'
FILESETS_ENTRY_ID_COLUMN_LABEL = 'entry_id'
FILESETS_ENTRY_DISPLAY_NAME_COLUMN_LABEL = 'entry_display_name'
FILESETS_ENTRY_DESCRIPTION_COLUMN_LABEL = 'entry_description'
FILESETS_ENTRY_FILE_PATTERNS_COLUMN_LABEL = 'entry_file_patterns'
FILESETS_ENTRY_SCHEMA_COLUMN_NAME_COLUMN_LABEL = 'schema_column_name'
FILESETS_ENTRY_SCHEMA_COLUMN_TYPE_COLUMN_LABEL = 'schema_column_type'
FILESETS_ENTRY_SCHEMA_COLUMN_DESCRIPTION_COLUMN_LABEL = 'schema_column_description'
FILESETS_ENTRY_SCHEMA_COLUMN_MODE_COLUMN_LABEL = 'schema_column_mode'
# Expected order for the CSV header columns.
FILESETS_COLUMNS_ORDER = (FILESETS_ENTRY_GROUP_NAME_COLUMN_LABEL,
FILESETS_ENTRY_GROUP_DISPLAY_NAME_COLUMN_LABEL,
FILESETS_ENTRY_GROUP_DESCRIPTION_COLUMN_LABEL,
FILESETS_ENTRY_ID_COLUMN_LABEL, FILESETS_ENTRY_DISPLAY_NAME_COLUMN_LABEL,
FILESETS_ENTRY_DESCRIPTION_COLUMN_LABEL,
FILESETS_ENTRY_FILE_PATTERNS_COLUMN_LABEL,
FILESETS_ENTRY_SCHEMA_COLUMN_NAME_COLUMN_LABEL,
FILESETS_ENTRY_SCHEMA_COLUMN_TYPE_COLUMN_LABEL,
FILESETS_ENTRY_SCHEMA_COLUMN_DESCRIPTION_COLUMN_LABEL,
FILESETS_ENTRY_SCHEMA_COLUMN_MODE_COLUMN_LABEL)
# Columns that can be empty and will be automatically filled on the CSV.
FILESETS_FILLABLE_COLUMNS = [
FILESETS_ENTRY_GROUP_NAME_COLUMN_LABEL, FILESETS_ENTRY_GROUP_DISPLAY_NAME_COLUMN_LABEL,
FILESETS_ENTRY_GROUP_DESCRIPTION_COLUMN_LABEL
]
# Columns that are required on the CSV.
FILESETS_NON_FILLABLE_COLUMNS = [
FILESETS_ENTRY_ID_COLUMN_LABEL, FILESETS_ENTRY_DISPLAY_NAME_COLUMN_LABEL,
FILESETS_ENTRY_DESCRIPTION_COLUMN_LABEL, FILESETS_ENTRY_FILE_PATTERNS_COLUMN_LABEL,
FILESETS_ENTRY_SCHEMA_COLUMN_NAME_COLUMN_LABEL, FILESETS_ENTRY_SCHEMA_COLUMN_TYPE_COLUMN_LABEL,
FILESETS_ENTRY_SCHEMA_COLUMN_DESCRIPTION_COLUMN_LABEL,
FILESETS_ENTRY_SCHEMA_COLUMN_MODE_COLUMN_LABEL
]
# Value used to split the values inside FILESETS_ENTRY_FILE_PATTERNS_COLUMN_LABEL field.
FILE_PATTERNS_VALUES_SEPARATOR = "|"
|
power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.124619,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.30057,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.665215,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.811948,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.406,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.806381,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 3.02433,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.70059,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 7.4811,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.125673,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0294337,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.259814,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.217681,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.385487,
'Execution Unit/Register Files/Runtime Dynamic': 0.247114,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.661958,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.92845,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 5.90584,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00431722,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00431722,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00373113,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00142843,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.003127,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0154926,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0424349,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.209262,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.154316,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.710748,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.96874,
'Instruction Fetch Unit/Runtime Dynamic': 1.13225,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.264007,
'L2/Runtime Dynamic': 0.0539234,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 7.71046,
'Load Store Unit/Data Cache/Runtime Dynamic': 3.11775,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.209428,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.209428,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 8.70345,
'Load Store Unit/Runtime Dynamic': 4.36,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.516414,
'Load Store Unit/StoreQ/Runtime Dynamic': 1.03283,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.183277,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.187241,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.399995,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0253017,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.875344,
'Memory Management Unit/Runtime Dynamic': 0.212543,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 30.8543,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.438446,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.0467945,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.419444,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 0.904684,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 12.5692,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0393331,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.233583,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.210691,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.221723,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.35763,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.18052,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.759873,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.221284,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.62815,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0398041,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00930004,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0820465,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0687795,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.121851,
'Execution Unit/Register Files/Runtime Dynamic': 0.0780796,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.182685,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.534142,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.01105,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00149237,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00149237,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00132665,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000528227,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000988023,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00529942,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0133512,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0661195,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.20577,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0473511,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.224572,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 6.6284,
'Instruction Fetch Unit/Runtime Dynamic': 0.356693,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0854036,
'L2/Runtime Dynamic': 0.0186248,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.28524,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.988901,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0662617,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0662616,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.59815,
'Load Store Unit/Runtime Dynamic': 1.38194,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.16339,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.32678,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0579877,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0592699,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.261499,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00776373,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.517221,
'Memory Management Unit/Runtime Dynamic': 0.0670336,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 19.0468,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.104706,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0112778,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.112267,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.228251,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.0636,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0260857,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.223177,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.139144,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.15024,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.242331,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.122321,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.514892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.150498,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.36348,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0262874,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00630174,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0554057,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0466052,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.0816931,
'Execution Unit/Register Files/Runtime Dynamic': 0.052907,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.123247,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.359889,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.55624,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00102105,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00102105,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000906716,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000360512,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000669488,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.0036183,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00916862,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0448028,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.84984,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0365094,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.15217,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.20667,
'Instruction Fetch Unit/Runtime Dynamic': 0.24627,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0565014,
'L2/Runtime Dynamic': 0.0126034,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 2.62692,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.671465,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0449633,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0449634,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.83925,
'Load Store Unit/Runtime Dynamic': 0.938173,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.110872,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.221744,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0393488,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0401973,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.177193,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00598583,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.400896,
'Memory Management Unit/Runtime Dynamic': 0.0461831,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 16.4563,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0691504,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.00761996,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0761073,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.152878,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.95235,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0213916,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.21949,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.114165,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.123175,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.198677,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.100286,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.422138,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.123373,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.26614,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0215683,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00516652,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.045424,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0382096,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.0669923,
'Execution Unit/Register Files/Runtime Dynamic': 0.0433761,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.101045,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.295135,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.38552,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000836617,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000836617,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000742957,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000295413,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000548884,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00296508,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00751173,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0367319,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.33647,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0297895,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.124758,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 4.66837,
'Instruction Fetch Unit/Runtime Dynamic': 0.201756,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0461345,
'L2/Runtime Dynamic': 0.0100438,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 2.37672,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.550107,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0368687,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0368687,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.55082,
'Load Store Unit/Runtime Dynamic': 0.768799,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.090912,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.181824,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.032265,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0329574,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.145273,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00488501,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.356807,
'Memory Management Unit/Runtime Dynamic': 0.0378424,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 15.4777,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0567361,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0062478,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0623969,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.125381,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.52934,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 1.456706483031769,
'Runtime Dynamic': 1.456706483031769,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.139242,
'Runtime Dynamic': 0.0763125,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 81.9744,
'Peak Power': 115.087,
'Runtime Dynamic': 22.1909,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 81.8351,
'Total Cores/Runtime Dynamic': 22.1145,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.139242,
'Total L3s/Runtime Dynamic': 0.0763125,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} |
#
# Copyright (c) 2020-2021 Arm Limited and Contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
"""Package containing jinja templates used by mbed_tools.project."""
|
__all__ = [
'phone_regex'
]
phone_regex = r'^010[-\s]??\d{3,4}[-\s]??\d{4}$'
|
def insertion(array):
for i in range(1, len(array)):
j = i -1
while array[j] > array[j+1] and j >= 0:
array[j], array[j+1] = array[j+1], array[j]
j-=1
return array
print (insertion([7, 8, 5, 4, 9, 2])) |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Kevin Subileau (@ksubileau)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r'''
---
module: win_rds_rap
short_description: Manage Resource Authorization Policies (RAP) on a Remote Desktop Gateway server
description:
- Creates, removes and configures a Remote Desktop resource authorization policy (RD RAP).
- A RD RAP allows you to specify the network resources (computers) that users can connect
to remotely through a Remote Desktop Gateway server.
author:
- Kevin Subileau (@ksubileau)
options:
name:
description:
- Name of the resource authorization policy.
required: yes
state:
description:
- The state of resource authorization policy.
- If C(absent) will ensure the policy is removed.
- If C(present) will ensure the policy is configured and exists.
- If C(enabled) will ensure the policy is configured, exists and enabled.
- If C(disabled) will ensure the policy is configured, exists, but disabled.
type: str
choices: [ absent, disabled, enabled, present ]
default: present
description:
description:
- Optional description of the resource authorization policy.
type: str
user_groups:
description:
- List of user groups that are associated with this resource authorization policy (RAP).
A user must belong to one of these groups to access the RD Gateway server.
- Required when a new RAP is created.
type: list
allowed_ports:
description:
- List of port numbers through which connections are allowed for this policy.
- To allow connections through any port, specify 'any'.
type: list
computer_group_type:
description:
- 'The computer group type:'
- 'C(rdg_group): RD Gateway-managed group'
- 'C(ad_network_resource_group): Active Directory Domain Services network resource group'
- 'C(allow_any): Allow users to connect to any network resource.'
type: str
choices: [ rdg_group, ad_network_resource_group, allow_any ]
computer_group:
description:
- The computer group name that is associated with this resource authorization policy (RAP).
- This is required when I(computer_group_type) is C(rdg_group) or C(ad_network_resource_group).
type: str
requirements:
- Windows Server 2008R2 (6.1) or higher.
- The Windows Feature "RDS-Gateway" must be enabled.
seealso:
- module: community.windows.win_rds_cap
- module: community.windows.win_rds_rap
- module: community.windows.win_rds_settings
'''
EXAMPLES = r'''
- name: Create a new RDS RAP
community.windows.win_rds_rap:
name: My RAP
description: Allow all users to connect to any resource through ports 3389 and 3390
user_groups:
- BUILTIN\users
computer_group_type: allow_any
allowed_ports:
- 3389
- 3390
state: enabled
'''
RETURN = r'''
'''
|
name = 'causalml'
__version__ = '0.11.1'
__all__ = ['dataset',
'features',
'feature_selection',
'inference',
'match',
'metrics',
'optimize',
'propensity']
|
# ************************************************************************* #
# Author: Pawel Rosikiewicz #
# Copyrith: IT IS NOT ALLOWED TO COPY OR TO DISTRIBUTE #
# these file without written #
# persmission of the Author #
# Contact: [email protected] #
# #
# ************************************************************************* #
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"THIS FILE CONTAINS ONLY ONE VARIABLE, A BASEDIRECTORY, THAT ALLOWS MANAGING FILE DIRECTORIESS TO ALL FILES USED BY PROJECT SOFTWARE AND SCRIPTS"
BASEDIR = '/Users/pawel/Desktop/Activities/005__COURSES/000__EPFLext_ADSML/Module 5 __ CAPSTONE PROJECT/skin_cancer_detection' |
"""Encoding PDUs for use in testing."""
############################# A-ASSOCIATE-RQ PDU #############################
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16382
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
a_associate_rq = (
b"\x01\x00\x00\x00\x00\xd1\x00\x01\x00\x00\x41\x4e\x59\x2d"
b"\x53\x43\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43"
b"\x48\x4f\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20"
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34"
b"\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e"
b"\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31"
b"\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31"
b"\x2e\x31\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e"
b"\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x3e\x51"
b"\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31\x2e\x32"
b"\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30"
b"\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e"
b"\x30\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f"
b"\x4d\x5f\x30\x39\x30"
)
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16382
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
# User Identity
# Type: 1
# Response requested: 1
# Primary field: pynetdicom
# Secondary field: (none)
# AsynchronousOperationsWindow
# Max operations invoked: 5
# Max operations performed: 5
a_associate_rq_user_async = (
b'\x01\x00\x00\x00\x00\xed\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43'
b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31'
b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x31\x2e\x32\x50\x00\x00\x5a\x51\x00\x00\x04\x00\x00\x3f'
b'\xfe\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31'
b'\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e'
b'\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49'
b'\x43\x4f\x4d\x5f\x30\x39\x30\x58\x00\x00\x10\x01\x01\x00\x0a\x70'
b'\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x00\x53\x00\x00\x04\x00'
b'\x05\x00\x05'
)
# Called AET: ANY-SCP
# Calling AET: GETSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian
# User Information
# Max Length Received: 16382
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
# SCP/SCU Role Selection
# SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# SCU Role: 0
# SCP Role: 1
a_associate_rq_role = (
b'\x01\x00\x00\x00\x00\xfc\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x47\x45\x54\x53\x43\x55'
b'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x20\x00\x00\x38\x01\x00\x00\x00\x30\x00\x00\x19\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31'
b'\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x13\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x2e\x31\x50'
b'\x00\x00\x5f\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31'
b'\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30'
b'\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55'
b'\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39'
b'\x30\x54\x00\x00\x1d\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31'
b'\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32'
b'\x00\x01'
)
# Called AET: ANY-SCP
# Calling AET: STORESCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian
# Transfer Syntax: 1.2.840.10008.1.2.2 Explicit VR Big Endian
# User Information
# Max Length Received: 16384
# Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
# Implementation Version Name: OFFIS_DCMTK_360
# User Identity
# Type: w
# Response requested: 0
# Primary field: pynetdicom
# Secondary field: p4ssw0rd
a_associate_rq_user_id_user_pass = (
b'\x01\x00\x00\x00\x01\x1f\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x53\x54\x4f\x52\x45\x53'
b'\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x20\x00\x00\x64\x01\x00\xff\x00\x30\x00\x00\x19\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31'
b'\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x13\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x2e\x31\x40'
b'\x00\x00\x13\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38'
b'\x2e\x31\x2e\x32\x2e\x32\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34'
b'\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x56\x51'
b'\x00\x00\x04\x00\x00\x40\x00\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32'
b'\x37\x36\x2e\x30\x2e\x37\x32\x33\x30\x30\x31\x30\x2e\x33\x2e\x30'
b'\x2e\x33\x2e\x36\x2e\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53\x5f'
b'\x44\x43\x4d\x54\x4b\x5f\x33\x36\x30\x58\x00\x00\x18\x02\x00\x00'
b'\x0a\x70\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x08\x70\x34\x73'
b'\x73\x77\x30\x72\x64'
)
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Item:
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# Presentation Context Item:
# Presentation Context ID: 3
# Abstract Syntax: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# Presentation Context Item:
# Presentation Context ID: 5
# Abstract Syntax: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16384
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
# User Identity
# Type: 1
# Response requested: 1
# Primary field: pynetdicom
# Secondary field: (none)
# AsynchronousOperationsWindow
# Max operations invoked: 5
# Max operations performed: 5
# SOP Class Extended Negotiation Item
# SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Service Class App Info: b'\x02\x00\x03\x00\x01\x00'
# SOP Class Extended Negotiation Item
# SOP Class: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage
# Service Class App Info: b'\x02\x00\x03\x00\x01\x00'
a_associate_rq_user_id_ext_neg = (
b'\x01\x00\x00\x00\x01\xab\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43'
b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31'
b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x31\x2e\x32\x20\x00\x00\x36\x03\x00\x00\x00\x30\x00\x00'
b'\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35'
b'\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x40\x00\x00\x11\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x20'
b'\x00\x00\x36\x05\x00\x00\x00\x30\x00\x00\x19\x31\x2e\x32\x2e\x38'
b'\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31'
b'\x2e\x31\x2e\x34\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e'
b'\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\xa4\x51\x00\x00'
b'\x04\x00\x00\x3f\xfe\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36'
b'\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33'
b'\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59\x4e'
b'\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39\x30\x58\x00\x00\x10\x01'
b'\x01\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63\x6f\x6d\x00\x00\x53'
b'\x00\x00\x04\x00\x05\x00\x05\x56\x00\x00\x21\x00\x19\x31\x2e\x32'
b'\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34'
b'\x2e\x31\x2e\x31\x2e\x32\x02\x00\x03\x00\x01\x00\x56\x00\x00\x21'
b'\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e'
b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x02\x00\x03\x00\x01'
b'\x00'
)
# Needs to be updated - no presentation context items?
a_associate_rq_com_ext_neg = (
b'\x02\x00\x00\x00\x01\x49\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f\x53\x43'
b'\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32'
b'\x21\x00\x00\x19\x03\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x21\x00\x00'
b'\x19\x05\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30'
b'\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00\x00\x91\x51\x00'
b'\x00\x04\x00\x00\x40\x00\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32'
b'\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e'
b'\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30\x55\x00\x00\x0e\x50\x59'
b'\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30\x39\x30\x57\x00\x00\x4f'
b'\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e'
b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x00\x11\x31\x2e\x32'
b'\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x34\x2e\x32\x00\x1f'
b'\x00\x1d\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e'
b'\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x38\x38\x2e\x32\x32'
)
############################# A-ASSOCIATE-AC PDU #############################
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Result: Accepted
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16384
# Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
# Implementation Version Name: OFFIS_DCMTK_360
a_associate_ac = (
b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00\x41\x4e\x59\x2d'
b'\x53\x43\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x45\x43'
b'\x48\x4f\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20\x20\x20'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34'
b'\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e'
b'\x31\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31'
b'\x2e\x32\x50\x00\x00\x3a\x51\x00\x00\x04\x00\x00\x40\x00'
b'\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32\x37\x36\x2e\x30\x2e'
b'\x37\x32\x33\x30\x30\x31\x30\x2e\x33\x2e\x30\x2e\x33\x2e'
b'\x36\x2e\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53\x5f\x44'
b'\x43\x4d\x54\x4b\x5f\x33\x36\x30'
)
# Called AET: ANY-SCP
# Calling AET: ECHOSCU
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Result: Accepted
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
# User Information
# Max Length Received: 16384
# Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
# Implementation Version Name: OFFIS_DCMTK_360
# User Identity AC
# Server response: b'Accepted'
a_associate_ac_user = (
b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00'
b'\x41\x4e\x59\x2d\x53\x43\x50\x20\x20\x20'
b'\x20\x20\x20\x20\x20\x20\x45\x43\x48\x4f'
b'\x53\x43\x55\x20\x20\x20\x20\x20\x20\x20'
b'\x20\x20\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x33\x2e\x31\x2e\x31\x2e\x31\x21'
b'\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00'
b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31'
b'\x30\x30\x30\x38\x2e\x31\x2e\x32\x50\x00'
b'\x00\x48\x51\x00\x00\x04\x00\x00\x40\x00'
b'\x52\x00\x00\x1b\x31\x2e\x32\x2e\x32\x37'
b'\x36\x2e\x30\x2e\x37\x32\x33\x30\x30\x31'
b'\x30\x2e\x33\x2e\x30\x2e\x33\x2e\x36\x2e'
b'\x30\x55\x00\x00\x0f\x4f\x46\x46\x49\x53'
b'\x5f\x44\x43\x4d\x54\x4b\x5f\x33\x36\x30'
b'\x59\x00\x00\x0a\x00\x08\x41\x63\x63\x65'
b'\x70\x74\x65\x64'
)
# Issue 342
# Called AET: ANY-SCP
# Calling AET: PYNETDICOM
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: Verification SOP Class
# SCP/SCU Role: Default
# Result: Accepted
# Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian
# Presentation Context ID: 3
# Abstract Syntax: Basic Grayscale Print Management Meta SOP Class
# SCP/SCU Role: Default
# Result: Abstract Syntax Not Supported
# Transfer Syntax: None
# User Information
# Max Length Received: 28672
# Implementation Class UID: 2.16.840.1
# Implementation Version Name: MergeCOM3_390IB2
# Extended Negotiation
# SOP Extended: None
# Async Ops: None
# User ID: None
a_associate_ac_zero_ts = (
b'\x02\x00\x00\x00\x00\xb6\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x50\x59\x4e\x45\x54\x44'
b'\x49\x43\x4f\x4d\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x21\x00\x00\x1b\x01\x00\x00\x00\x40\x00\x00\x13\x31'
b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32'
b'\x2e\x31\x21\x00\x00\x08\x03\x00\x03\x00\x40\x00\x00\x00\x50\x00'
b'\x00\x2a\x51\x00\x00\x04\x00\x00\x70\x00\x52\x00\x00\x0a\x32\x2e'
b'\x31\x36\x2e\x38\x34\x30\x2e\x31\x55\x00\x00\x10\x4d\x65\x72\x67'
b'\x65\x43\x4f\x4d\x33\x5f\x33\x39\x30\x49\x42\x32'
)
# Issue 361
# Called AET: ANY-SCP
# Calling AET: PYNETDICOM
# Application Context Name: 1.2.840.10008.3.1.1.1
# Presentation Context Items:
# Presentation Context ID: 1
# Abstract Syntax: Verification SOP Class
# SCP/SCU Role: Default
# Result: Reject
# Transfer Syntax: (no Transfer Syntax Sub-Item)
# User Information
# Max Length Received: 16382
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.1.4.0
# Implementation Version Name: PYNETDICOM_140
# Extended Negotiation
# SOP Extended: None
# Async Ops: None
# User ID: None
a_associate_ac_no_ts = (
b'\x02\x00\x00\x00\x00\xa7\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x50\x59\x4e\x45\x54\x44'
b'\x49\x43\x4f\x4d\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
b'\x31\x2e\x31\x21\x00\x00\x04\x01\x00\x03\x00'
b'\x50\x00\x00\x3e\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20'
b'\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30'
b'\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x31\x2e\x34\x2e\x30'
b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x31'
b'\x34\x30'
)
############################# A-ASSOCIATE-RJ PDU #############################
# Result: Rejected (Permanent)
# Source: DUL service-user
# Reason: No reason given
a_associate_rj = b"\x03\x00\x00\x00\x00\x04\x00\x01\x01\x01"
############################## A-RELEASE-RJ PDU ##############################
a_release_rq = b"\x05\x00\x00\x00\x00\x04\x00\x00\x00\x00"
############################## A-RELEASE-RP PDU ##############################
a_release_rp = b"\x06\x00\x00\x00\x00\x04\x00\x00\x00\x00"
############################### A-ABORT-RQ PDU ###############################
# Source: DUL service-user
# Reason: No reason given
a_abort = b"\x07\x00\x00\x00\x00\x04\x00\x00\x00\x00"
############################## A-P-ABORT-RQ PDU ##############################
# Source: DUL service-provider`
# Reason: Unrecognised PDU parameter
a_p_abort = b"\x07\x00\x00\x00\x00\x04\x00\x00\x02\x04"
################################ P-DATA-TF PDU ###############################
# Contains a C-ECHO message
# Context ID: 1
# Data: \x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00
# \x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38
# \x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80\x00\x00
# \x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01
# \x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00
# P-DATA
# PDU type: 04
# Reserved: 00
# PDU Length: 00 00 00 54 (84)
# PDU Items:
# Item length: 00 00 00 50 (80)
# Context ID: 01
# PDV:
# 03 - Command information, last fragment
# 00 00 00 00 | 04 00 00 00 | 42 00 - Command Group Length (66)
# 00 00 02 00 | 12 00 00 00 | 31 2e ... 31 00- Affected SOP Class UID
# 00 00 00 01 | 02 00 00 00 | 30 80 - Command Field (32816)
# 00 00 20 01 | 02 00 00 00 | - MessageIDBeingRespondedTo (1)
# 00 00 00 08 | | - Command Data Set Type (257)
# 00 00 00 09 | - Status (0)
p_data_tf = (
b"\x04\x00\x00\x00\x00\x54\x00\x00\x00\x50\x01\x03\x00\x00\x00"
b"\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00\x12\x00"
b"\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38"
b"\x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80"
b"\x00\x00\x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02"
b"\x00\x00\x00\x01\x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00"
)
# C-ECHO RQ
p_data_tf_rq = (
b"\x04\x00\x00\x00\x00\x4a" # P-DATA
b"\x00\x00\x00\x46\x01" # PDV Item
b"\x03"
b"\x00\x00\x00\x00\x04\x00\x00\x00\x3a\x00" # Command Group Length
b"\x00\x00\x00\x00\x02\x00\x12\x00\x00\x00" # Affected SOP Class UID
b"\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31\x00"
b"\x00\x00\x00\x01\x02\x00\x00\x00\x30\x00" # Command Field
b"\x00\x00\x10\x01\x02\x00\x00\x00\x01\x00" # Message ID
b"\x00\x00\x00\x08\x02\x00\x00\x00\x01\x01" # Command Data Set Type
)
# AsynchronousOperationsWindow
# Max operations invoked: 5
# Max operations performed: 5
asynchronous_window_ops = b'\x53\x00\x00\x04\x00\x05\x00\x05'
############################## User Identity Sub Item ########################
# -RQ
# Type: 1
# Response requested: 0
# Primary field: pynetdicom
# Secondary field: (none)
user_identity_rq_user_nopw = (
b'\x58\x00\x00\x10\x01\x01\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63'
b'\x6f\x6d\x00\x00'
)
# -RQ
# Type: 1
# Response requested: 0
# Primary field: pynetdicom
# Secondary field: p4ssw0rd
user_identity_rq_user_pass = (
b'\x58\x00\x00\x18\x02\x00\x00\x0a\x70\x79\x6e\x65\x74\x64\x69\x63'
b'\x6f\x6d\x00\x08\x70\x34\x73\x73\x77\x30\x72\x64'
)
# -AC
# Server response: b'Accepted'
user_identity_ac = (
b'\x59\x00\x00\x0a\x00\x08\x41\x63\x63\x65\x70\x74\x65\x64'
)
########################### Application Context Item #########################
# Application Context Name: 1.2.840.10008.3.1.1.1
application_context = (
b"\x10\x00\x00\x15\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31"
b"\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e\x31\x2e\x31"
)
########################## Presentation Context Items #######################
# -RQ
# Presentation Context ID: 1
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
presentation_context_rq = (
b'\x20\x00\x00\x2e\x01\x00\x00\x00\x30\x00\x00\x11\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x31\x40\x00\x00'
b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31'
b'\x2e\x32'
)
# -AC
# Presentation Context ID: 1
# Result: Accepted
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
presentation_context_ac = (
b'\x21\x00\x00\x19\x01\x00\x00\x00\x40\x00\x00\x11\x31\x2e\x32\x2e'
b'\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32'
)
############################ Abstract Syntax Sub Item ########################
# Abstract Syntax: 1.2.840.10008.1.1 Verification SOP Class
abstract_syntax = (
b'\x30\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x31\x2e\x31'
)
############################ Transfer Syntax Sub Item ########################
# Transfer Syntax: 1.2.840.10008.1.2 Implicit VR Little Endian
transfer_syntax = (
b'\x40\x00\x00\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30'
b'\x38\x2e\x31\x2e\x32'
)
######################## Presentation Data Value Sub Item ####################
presentation_data = (
b'\x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02'
b'\x00\x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30'
b'\x30\x38\x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30'
b'\x80\x00\x00\x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02'
b'\x00\x00\x00\x01\x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00'
)
# Context ID: 1
# Data: \x03\x00\x00\x00\x00\x04\x00\x00\x00\x42\x00\x00\x00\x00\x00\x02\x00
# \x12\x00\x00\x00\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38
# \x2e\x31\x2e\x31\x00\x00\x00\x00\x01\x02\x00\x00\x00\x30\x80\x00\x00
# \x20\x01\x02\x00\x00\x00\x01\x00\x00\x00\x00\x08\x02\x00\x00\x00\x01
# \x01\x00\x00\x00\x09\x02\x00\x00\x00\x00\x00
presentation_data_value = b'\x00\x00\x00\x50\x01' + presentation_data
######################## Maximum Length Received Sub Item ####################
# Max Length Received: 16382
maximum_length_received = b'\x51\x00\x00\x04\x00\x00\x3f\xfe'
######################## Implementaion Class UID Sub Item ####################
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
implementation_class_uid = (
b'\x52\x00\x00\x20\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e'
b'\x33\x36\x38\x30\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30'
b'\x2e\x39\x2e\x30'
)
##################### Implementation Version Name Sub Item ###################
# Implementation Version Name: PYNETDICOM_090
implementation_version_name = (
b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f'
b'\x30\x39\x30'
)
########################### Role Selection Sub Item ##########################
# SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# SCU Role: 0
# SCP Role: 1
role_selection = (
b'\x54\x00\x00\x1e'
b'\x00\x1a'
b'\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e'
b'\x34\x2e\x31\x2e\x31\x2e\x32\x31'
b'\x00\x01'
)
role_selection_odd = (
b'\x54\x00\x00\x1d'
b'\x00\x19'
b'\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x35\x2e\x31\x2e'
b'\x34\x2e\x31\x2e\x31\x2e\x32'
b'\x00\x01'
)
############################ User Information Item ###########################
# Implementation Class UID: 1.2.826.0.1.3680043.9.3811.0.9.0
# Implementation Version Name: PYNETDICOM_090
user_information = (
b'\x50\x00\x00\x3e\x51\x00\x00\x04\x00\x00\x3f\xfe\x52\x00\x00\x20'
b'\x31\x2e\x32\x2e\x38\x32\x36\x2e\x30\x2e\x31\x2e\x33\x36\x38\x30'
b'\x30\x34\x33\x2e\x39\x2e\x33\x38\x31\x31\x2e\x30\x2e\x39\x2e\x30'
b'\x55\x00\x00\x0e\x50\x59\x4e\x45\x54\x44\x49\x43\x4f\x4d\x5f\x30'
b'\x39\x30'
)
######################## Extended Negotiation Sub Item #######################
# SOP Class: 1.2.840.10008.5.1.4.1.1.2 CT Image Storage
# Service Class App Info: b'\x02\x00\x03\x00\x01\x00'
extended_negotiation = (
b'\x56\x00\x00\x21\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30'
b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x32\x02'
b'\x00\x03\x00\x01\x00'
)
#################### Common Extended Negotiation Sub Item ####################
# SOP Class: 1.2.840.10008.5.1.4.1.1.4 MR Image Storage
# Service Class: 1.2.840.10008.4.2 Storage Service Class
# Related general SOP Class ID(s):
# 1.2.840.10008.5.1.4.1.1.88.22 Enhanced SR Storage
common_extended_negotiation = (
b'\x57\x00\x00\x4f\x00\x19\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30'
b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x34\x00'
b'\x11\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x34'
b'\x2e\x32\x00\x1f\x00\x1d\x31\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30'
b'\x30\x30\x38\x2e\x35\x2e\x31\x2e\x34\x2e\x31\x2e\x31\x2e\x38\x38'
b'\x2e\x32\x32'
)
|
def reverse_list(ll):
"""Reverses a linked list
Args:
ll: linked list
Returns:
linked list in reversed form
"""
# put your function implementation here
return ll
|
#
# PySNMP MIB module ASANTE-SWITCH-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASANTE-SWITCH-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:09:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
ModuleIdentity, NotificationType, Unsigned32, ObjectIdentity, MibIdentifier, iso, Integer32, Counter64, Bits, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, enterprises, TimeTicks, Gauge32, Counter32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "NotificationType", "Unsigned32", "ObjectIdentity", "MibIdentifier", "iso", "Integer32", "Counter64", "Bits", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "enterprises", "TimeTicks", "Gauge32", "Counter32", "NotificationType")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
class MacAddress(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6)
fixedLength = 6
asante = MibIdentifier((1, 3, 6, 1, 4, 1, 298))
products = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1))
snmpAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1))
agentSw = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 1))
agentFw = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 2))
agentHw = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 3))
agentNetProtocol = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 5))
ipagentProtocol = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1))
switch = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5))
eAsntSwitch = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1))
eSWAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1))
eSWAgentSW = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1))
eSWAgentHW = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2))
eSWAgentFW = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 3))
eSWBasic = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2))
eSWCtrl = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3))
eSWMonitor = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4))
productId = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2))
concProductId = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2))
intraswitch = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 11))
intrastack = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 12))
friendlyswitch = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 13))
intraSwitch6216M = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 16))
intraSwitch6224 = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 17))
intraCore8000 = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 22))
intraCore9000 = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 2, 2, 23))
agentRunTimeImageMajorVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentRunTimeImageMajorVer.setStatus('mandatory')
agentRunTimeImageMinorVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentRunTimeImageMinorVer.setStatus('mandatory')
agentImageLoadMode = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("localBoot", 2), ("netBoot", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: agentImageLoadMode.setStatus('mandatory')
agentRemoteBootInfo = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("eepromBootInfo", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentRemoteBootInfo.setStatus('mandatory')
agentRemoteBootProtocol = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bootp-tftp", 2), ("tftp-only", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: agentRemoteBootProtocol.setStatus('mandatory')
agentRemoteBootFile = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: agentRemoteBootFile.setStatus('mandatory')
agentOutBandDialString = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: agentOutBandDialString.setStatus('mandatory')
agentOutBandBaudRate = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("b1200", 2), ("b2400", 3), ("b4800", 4), ("b9600", 5), ("b19200", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: agentOutBandBaudRate.setStatus('mandatory')
agentReset = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("reset", 2), ("not-reset", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: agentReset.setStatus('mandatory')
agentHwReVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 3, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentHwReVer.setStatus('mandatory')
agentHwVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 3, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentHwVer.setStatus('mandatory')
agentFwMajorVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 2, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentFwMajorVer.setStatus('mandatory')
agentFwMinorVer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 2, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentFwMinorVer.setStatus('mandatory')
agentNetProtoStkCapMap = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly")
if mibBuilder.loadTexts: agentNetProtoStkCapMap.setStatus('mandatory')
ipagentIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipagentIpAddr.setStatus('mandatory')
ipagentIpNetMask = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipagentIpNetMask.setStatus('mandatory')
ipagentDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipagentDefaultGateway.setStatus('mandatory')
ipagentBootServerAddr = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipagentBootServerAddr.setStatus('mandatory')
ipagentUnAuthIP = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 5), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipagentUnAuthIP.setStatus('mandatory')
ipagentUnAuthComm = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipagentUnAuthComm.setStatus('mandatory')
ipagentTrapRcvrTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2), )
if mibBuilder.loadTexts: ipagentTrapRcvrTable.setStatus('mandatory')
ipagentTrapRcvrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "ipagentTrapRcvrIpAddr"))
if mibBuilder.loadTexts: ipagentTrapRcvrEntry.setStatus('mandatory')
ipagentTrapRcvrIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipagentTrapRcvrIpAddr.setStatus('mandatory')
ipagentTrapRcvrStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("valid", 2), ("invalid", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipagentTrapRcvrStatus.setStatus('mandatory')
ipagentTrapRcvrComm = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 1, 5, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipagentTrapRcvrComm.setStatus('mandatory')
eSWUpDownloadAction = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("off", 2), ("download", 3), ("upload", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWUpDownloadAction.setStatus('mandatory')
eSWUpDownloadStatus = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("action-Success", 2), ("action-Failure", 3), ("in-Progress", 4), ("no-Action", 5), ("configError", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWUpDownloadStatus.setStatus('mandatory')
eSWRemoteDownloadFile = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("config-File", 2), ("image-File", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWRemoteDownloadFile.setStatus('mandatory')
eSWRemoteConfigServer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWRemoteConfigServer.setStatus('mandatory')
eSWRemoteConfigFileName = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWRemoteConfigFileName.setStatus('mandatory')
eSWConfigRetryCounter = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWConfigRetryCounter.setStatus('mandatory')
eSWRemoteImageServer = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 7), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWRemoteImageServer.setStatus('mandatory')
eSWRemoteImageFileName = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWRemoteImageFileName.setStatus('mandatory')
eSWImageRetryCounter = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 20))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWImageRetryCounter.setStatus('mandatory')
eSWActiveImageBank = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bank1", 2), ("bank2", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWActiveImageBank.setStatus('mandatory')
eSWRemoteDownloadImageBank = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("bank1", 2), ("bank2", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWRemoteDownloadImageBank.setStatus('mandatory')
eSWResetWaitTime = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 86400))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWResetWaitTime.setStatus('mandatory')
eSWResetLeftTime = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWResetLeftTime.setStatus('mandatory')
eSWBankImageInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14), )
if mibBuilder.loadTexts: eSWBankImageInfoTable.setStatus('mandatory')
eSWBankImageInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWBankIndex"))
if mibBuilder.loadTexts: eSWBankImageInfoEntry.setStatus('mandatory')
eSWBankIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWBankIndex.setStatus('mandatory')
eSWMajorVer = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWMajorVer.setStatus('mandatory')
eSWMinorVer = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWMinorVer.setStatus('mandatory')
eSWDateTime = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 14, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWDateTime.setStatus('mandatory')
eSWTelnetSessions = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWTelnetSessions.setStatus('mandatory')
eSWTelnetSessionActive = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWTelnetSessionActive.setStatus('mandatory')
eSWTelnetTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 60))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWTelnetTimeOut.setStatus('mandatory')
eSWSTP = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWSTP.setStatus('mandatory')
eSWUserInterfaceTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 60))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWUserInterfaceTimeOut.setStatus('mandatory')
eSWBCastMcastThreshold = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 20), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWBCastMcastThreshold.setStatus('mandatory')
eSWBCastMcastDuration = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 21), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWBCastMcastDuration.setStatus('mandatory')
eSWCfgFileErrStatus = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 1, 22), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWCfgFileErrStatus.setStatus('mandatory')
eSWDRAMSize = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWDRAMSize.setStatus('mandatory')
eSWFlashRAMSize = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWFlashRAMSize.setStatus('mandatory')
eSWEEPROMSize = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 1, 2, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWEEPROMSize.setStatus('mandatory')
eSWType = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("thunderBird", 2), ("intraStack", 3), ("intraSwitch", 4), ("intraCore8000", 5), ("intraCore9000", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWType.setStatus('mandatory')
eSWBkpType = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("no-Bkp", 2), ("intraStack", 3), ("intraSwitch6216M", 4), ("intraSwitch6224", 5), ("intraSwitch6224M", 6), ("intraCore8000", 7), ("intraCore9000", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWBkpType.setStatus('mandatory')
eSWGroupCapacity = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGroupCapacity.setStatus('mandatory')
eSWStackLastChange = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWStackLastChange.setStatus('mandatory')
eSWGroupInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5), )
if mibBuilder.loadTexts: eSWGroupInfoTable.setStatus('mandatory')
eSWGroupInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWGrpIndex"))
if mibBuilder.loadTexts: eSWGroupInfoEntry.setStatus('mandatory')
eSWGrpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpIndex.setStatus('mandatory')
eSWGrpID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpID.setStatus('mandatory')
eSWGrpState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWGrpState.setStatus('mandatory')
eSWGrpNumofPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpNumofPorts.setStatus('mandatory')
eSWGrpType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("other", 1), ("empty", 2), ("intraSwitch", 3), ("intraStack-Base", 4), ("intraStack-FX8", 5), ("intraStack-TX16", 6), ("enterprise6216M-TX16", 7), ("enterprise6224M-TX24", 8), ("intraCore8000", 9), ("intraCore-RJ45", 10), ("intraCore-RJ21", 11), ("intraCore-GIGA", 12)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpType.setStatus('mandatory')
eSWGrpDescrption = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpDescrption.setStatus('mandatory')
eSWGrpLED = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(128, 128)).setFixedLength(128)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpLED.setStatus('mandatory')
eSWGrpFanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("no-fan", 2), ("normal", 3), ("fail", 4), ("fan-1-bad", 5), ("fan-2-bad", 6), ("fan-1-2-bad", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpFanStatus.setStatus('mandatory')
eSWGrpNumofExpPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpNumofExpPorts.setStatus('mandatory')
eSWGrpLastChange = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 10), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpLastChange.setStatus('mandatory')
eSWGrpReset = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noReset", 2), ("reset", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpReset.setStatus('mandatory')
eSWPortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6), )
if mibBuilder.loadTexts: eSWPortInfoTable.setStatus('mandatory')
eSWPortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWPortGrpIndex"), (0, "ASANTE-SWITCH-MIB", "eSWPortIndex"))
if mibBuilder.loadTexts: eSWPortInfoEntry.setStatus('mandatory')
eSWPortGrpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortGrpIndex.setStatus('mandatory')
eSWPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortIndex.setStatus('mandatory')
eSWPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("mii-Empty", 2), ("mii-FL", 3), ("mii-RJ45", 4), ("mii-FX", 5), ("rj45", 6), ("foil", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortType.setStatus('mandatory')
eSWPortAutoNegAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("with", 2), ("without", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortAutoNegAbility.setStatus('mandatory')
eSWPortLink = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("up", 2), ("down", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortLink.setStatus('mandatory')
eSWPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("m10-Mbps", 2), ("m100-Mbps", 3), ("g1-Gbps", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortSpeed.setStatus('mandatory')
eSWPortDuplex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("half-Duplex", 2), ("full-Duplex", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortDuplex.setStatus('mandatory')
eSWGpPtInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7), )
if mibBuilder.loadTexts: eSWGpPtInfoTable.setStatus('mandatory')
eSWGpPtInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWGpPtInfoIndex"))
if mibBuilder.loadTexts: eSWGpPtInfoEntry.setStatus('mandatory')
eSWGpPtInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtInfoIndex.setStatus('mandatory')
eSWGpPtInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtInfoType.setStatus('mandatory')
eSWGpPtInfoAutoNegAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtInfoAutoNegAbility.setStatus('mandatory')
eSWGpPtInfoLink = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtInfoLink.setStatus('mandatory')
eSWGpPtInfoSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtInfoSpeed.setStatus('mandatory')
eSWGpPtInfoDuplex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 7, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtInfoDuplex.setStatus('mandatory')
eSWPtMacInfoTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8), )
if mibBuilder.loadTexts: eSWPtMacInfoTable.setStatus('mandatory')
eSWPtMacInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWPtMacPort"), (0, "ASANTE-SWITCH-MIB", "eSWPtMacMACADDR"))
if mibBuilder.loadTexts: eSWPtMacInfoEntry.setStatus('mandatory')
eSWPtMacPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPtMacPort.setStatus('mandatory')
eSWPtMacMACADDR = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 8, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPtMacMACADDR.setStatus('mandatory')
eSWVlanInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9))
eSWVlanVersion = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWVlanVersion.setStatus('mandatory')
eSWVlanMaxCapacity = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWVlanMaxCapacity.setStatus('mandatory')
eSWVlanTypesSupported = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWVlanTypesSupported.setStatus('mandatory')
eSWVlanTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4), )
if mibBuilder.loadTexts: eSWVlanTable.setStatus('mandatory')
eSWVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWVLANIndex"))
if mibBuilder.loadTexts: eSWVlanEntry.setStatus('mandatory')
eSWVLANIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWVLANIndex.setStatus('mandatory')
eSWVlanName = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWVlanName.setStatus('mandatory')
eSWVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWVlanID.setStatus('mandatory')
eSWVlanMemberSet = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWVlanMemberSet.setStatus('mandatory')
eSWVlanMgmAccess = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 9, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWVlanMgmAccess.setStatus('mandatory')
eSWTrunkBundleCapacity = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWTrunkBundleCapacity.setStatus('mandatory')
eSWTrunkBundleTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11), )
if mibBuilder.loadTexts: eSWTrunkBundleTable.setStatus('mandatory')
eSWTrunkBundleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWTrunkBundleIndex"))
if mibBuilder.loadTexts: eSWTrunkBundleEntry.setStatus('mandatory')
eSWTrunkBundleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWTrunkBundleIndex.setStatus('mandatory')
eSWTrunkBundlePortA = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWTrunkBundlePortA.setStatus('mandatory')
eSWTrunkBundlePortB = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWTrunkBundlePortB.setStatus('mandatory')
eSWTrunkBundleState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 11, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWTrunkBundleState.setStatus('mandatory')
eSWNetSecurityInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13))
eSWNetworkSecurityVersion = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWNetworkSecurityVersion.setStatus('mandatory')
eSWNetworkSecurityMAXLevels = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWNetworkSecurityMAXLevels.setStatus('mandatory')
eSWSecurityTypesSupported = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWSecurityTypesSupported.setStatus('mandatory')
eSWSecConfigTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4), )
if mibBuilder.loadTexts: eSWSecConfigTable.setStatus('mandatory')
eSWSecConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWSecPortIndex"))
if mibBuilder.loadTexts: eSWSecConfigEntry.setStatus('mandatory')
eSWSecPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWSecPortIndex.setStatus('mandatory')
eSWSecurityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("newNodeDetection", 1), ("knownMACAddressForwarding", 2), ("restrictedKnownMACAddressForwarding", 3), ("knownMACAddressForwardingWithIntruderLock", 4), ("normalPort", 5), ("other", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWSecurityLevel.setStatus('mandatory')
eSWSecMonitorPort = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWSecMonitorPort.setStatus('mandatory')
eSWSecurityTrapEnable = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2), ("other", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWSecurityTrapEnable.setStatus('mandatory')
eSWSecIncSetConfigTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7), )
if mibBuilder.loadTexts: eSWSecIncSetConfigTable.setStatus('mandatory')
eSWSecIncSetConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWIncSetPort"), (0, "ASANTE-SWITCH-MIB", "eSWIncSetMACAddr"))
if mibBuilder.loadTexts: eSWSecIncSetConfigEntry.setStatus('mandatory')
eSWIncSetPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWIncSetPort.setStatus('mandatory')
eSWIncSetMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWIncSetMACAddr.setStatus('mandatory')
eSWIncSetMACStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 7, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWIncSetMACStatus.setStatus('mandatory')
eSWSecIntMACAddrTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8), )
if mibBuilder.loadTexts: eSWSecIntMACAddrTable.setStatus('mandatory')
eSWSecIntMACAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWIntMACAddrPort"), (0, "ASANTE-SWITCH-MIB", "eSWIntMACAddr"))
if mibBuilder.loadTexts: eSWSecIntMACAddrEntry.setStatus('mandatory')
eSWIntMACAddrPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWIntMACAddrPort.setStatus('mandatory')
eSWIntMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 13, 8, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWIntMACAddr.setStatus('mandatory')
eSWFilteringInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14))
eSWFilteringTypesSupported = MibScalar((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWFilteringTypesSupported.setStatus('mandatory')
eSWFiltMACVLANBasedConfigTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2), )
if mibBuilder.loadTexts: eSWFiltMACVLANBasedConfigTable.setStatus('mandatory')
eSWFiltMACVLANBasedConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWVLANIndex"), (0, "ASANTE-SWITCH-MIB", "eSWFiltMACAddr"))
if mibBuilder.loadTexts: eSWFiltMACVLANBasedConfigEntry.setStatus('mandatory')
eSWVIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWVIDIndex.setStatus('mandatory')
eSWFiltMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWFiltMACAddr.setStatus('mandatory')
eSWFiltMACSts = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWFiltMACSts.setStatus('mandatory')
eSWFiltMACPortBasedConfigTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3), )
if mibBuilder.loadTexts: eSWFiltMACPortBasedConfigTable.setStatus('mandatory')
eSWFiltMACPortBasedConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWFiltPortIndex"), (0, "ASANTE-SWITCH-MIB", "eSWFiltPMACAddr"))
if mibBuilder.loadTexts: eSWFiltMACPortBasedConfigEntry.setStatus('mandatory')
eSWFiltPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWFiltPortIndex.setStatus('mandatory')
eSWFiltPMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 2), MacAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWFiltPMACAddr.setStatus('mandatory')
eSWFiltPMACStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWFiltPMACStatus.setStatus('mandatory')
eSWFiltProtVLANBasedCFGTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4), )
if mibBuilder.loadTexts: eSWFiltProtVLANBasedCFGTable.setStatus('mandatory')
eSWFiltProtVLANBasedCFGEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWVLANIndex"))
if mibBuilder.loadTexts: eSWFiltProtVLANBasedCFGEntry.setStatus('mandatory')
eSWFiltProtocolVID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWFiltProtocolVID.setStatus('mandatory')
eSWFiltVLANProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWFiltVLANProtocolType.setStatus('mandatory')
eSWFiltProtPortBasedCFGTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5), )
if mibBuilder.loadTexts: eSWFiltProtPortBasedCFGTable.setStatus('mandatory')
eSWFiltProtPortBasedCFGEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWPortIndex"))
if mibBuilder.loadTexts: eSWFiltProtPortBasedCFGEntry.setStatus('mandatory')
eSWFiltProtPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWFiltProtPort.setStatus('mandatory')
eSWFiltProtcolType = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 2, 14, 5, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWFiltProtcolType.setStatus('mandatory')
eSWPortCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1), )
if mibBuilder.loadTexts: eSWPortCtrlTable.setStatus('mandatory')
eSWPortCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWGrpPtCtrlIndex"), (0, "ASANTE-SWITCH-MIB", "eSWPortCtrlIndex"))
if mibBuilder.loadTexts: eSWPortCtrlEntry.setStatus('mandatory')
eSWGrpPtCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGrpPtCtrlIndex.setStatus('mandatory')
eSWPortCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortCtrlIndex.setStatus('mandatory')
eSWPortCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortCtrlState.setStatus('mandatory')
eSWPortCtrlBcastFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortCtrlBcastFilter.setStatus('mandatory')
eSWPortCtrlStNFw = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortCtrlStNFw.setStatus('mandatory')
eSWPortCtrlSTP = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enable", 2), ("disable", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortCtrlSTP.setStatus('mandatory')
eSWPortCtrlVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortCtrlVlanID.setStatus('mandatory')
eSWPortCtrlVlanTagging = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enable", 1), ("enable8021Q", 2), ("disable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortCtrlVlanTagging.setStatus('mandatory')
eSWPortCtrlVlanGroups = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortCtrlVlanGroups.setStatus('mandatory')
eSWPortCtrlTrunkBundleIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWPortCtrlTrunkBundleIndex.setStatus('mandatory')
eSWPortCtrlGVRPEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortCtrlGVRPEnable.setStatus('mandatory')
eSWPortCtrlSecurityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("newNodeDetection", 1), ("knownMACAddressForwarding", 2), ("restrictedKnownMACAddressForwarding", 3), ("knownMACAddressForwardingWithIntruderLock", 4), ("normalPort", 5), ("other", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortCtrlSecurityLevel.setStatus('mandatory')
eSWPortProtocolFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 1, 1, 13), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWPortProtocolFilter.setStatus('mandatory')
eSWGpPtCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2), )
if mibBuilder.loadTexts: eSWGpPtCtrlTable.setStatus('mandatory')
eSWGpPtCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWGpPtCtrlIndex"))
if mibBuilder.loadTexts: eSWGpPtCtrlEntry.setStatus('mandatory')
eSWGpPtCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtCtrlIndex.setStatus('mandatory')
eSWGpPtCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWGpPtCtrlState.setStatus('mandatory')
eSWGpPtCtrlBcastFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWGpPtCtrlBcastFilter.setStatus('mandatory')
eSWGpPtCtrlStNFw = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtCtrlStNFw.setStatus('mandatory')
eSWGpPtCtrlSTP = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWGpPtCtrlSTP.setStatus('mandatory')
eSWGpPtCtrlSecurityLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWGpPtCtrlSecurityLevel.setStatus('mandatory')
eSWGpPtProtocolFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 2, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWGpPtProtocolFilter.setStatus('mandatory')
eSWAutoPortCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3), )
if mibBuilder.loadTexts: eSWAutoPortCtrlTable.setStatus('mandatory')
eSWAutoPortCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWAutoNegGrpIndex"), (0, "ASANTE-SWITCH-MIB", "eSWAutoNegPortIndex"))
if mibBuilder.loadTexts: eSWAutoPortCtrlEntry.setStatus('mandatory')
eSWAutoNegGrpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWAutoNegGrpIndex.setStatus('mandatory')
eSWAutoNegPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWAutoNegPortIndex.setStatus('mandatory')
eSWAutoNegAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("enabled", 2), ("disable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWAutoNegAdminState.setStatus('mandatory')
eSWAutoNegRemoteAble = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("able", 2), ("not-able", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWAutoNegRemoteAble.setStatus('mandatory')
eSWAutoNegAutoConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("configuring", 2), ("complete", 3), ("disable", 4), ("parallel-detect-fail", 5), ("remote-fault", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWAutoNegAutoConfig.setStatus('mandatory')
eSWAutoNegLocalAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWAutoNegLocalAbility.setStatus('mandatory')
eSWAutoNegAdvertisedAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWAutoNegAdvertisedAbility.setStatus('mandatory')
eSWAutoNegReceivedAbility = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWAutoNegReceivedAbility.setStatus('mandatory')
eSWAutoNegRestartAutoConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 3, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("reStart", 2), ("noRestart", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eSWAutoNegRestartAutoConfig.setStatus('mandatory')
eSWMonIPTable = MibTable((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1), )
if mibBuilder.loadTexts: eSWMonIPTable.setStatus('mandatory')
eSWMonIPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1), ).setIndexNames((0, "ASANTE-SWITCH-MIB", "eSWMonIP"))
if mibBuilder.loadTexts: eSWMonIPEntry.setStatus('mandatory')
eSWMonIP = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWMonIP.setStatus('mandatory')
eSWMonMAC = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWMonMAC.setStatus('mandatory')
eSWMonVLANID = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWMonVLANID.setStatus('mandatory')
eSWMonGrp = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWMonGrp.setStatus('mandatory')
eSWMonPort = MibTableColumn((1, 3, 6, 1, 4, 1, 298, 1, 5, 1, 4, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: eSWMonPort.setStatus('mandatory')
eSWFanFail = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,3)).setObjects(("ASANTE-SWITCH-MIB", "eSWGrpIndex"))
eSWExpPortConnectStateChange = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,4)).setObjects(("ASANTE-SWITCH-MIB", "eSWGrpIndex"), ("ASANTE-SWITCH-MIB", "eSWPortIndex"))
eSWIPSpoofing = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,5)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonPort"))
eSWStationMove = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,6)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonPort"))
eSWNewNodeDetected = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,7)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonIP"))
eSWIntruderDetected = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,8)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWSecurityLevel"))
eSWIntruderPortDisable = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,9)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonIP"))
eSWEnhIPSpoofing = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,10)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"))
eSWEnhStationMove = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,11)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonIP"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"))
eSWEnhNewNodeDetected = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,12)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonIP"))
eSWEnhIntruderDetected = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,13)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonIP"))
eSWEnhIntruderPortDisable = NotificationType((1, 3, 6, 1, 4, 1, 298) + (0,14)).setObjects(("ASANTE-SWITCH-MIB", "eSWMonGrp"), ("ASANTE-SWITCH-MIB", "eSWMonPort"), ("ASANTE-SWITCH-MIB", "eSWMonMAC"), ("ASANTE-SWITCH-MIB", "eSWMonVLANID"), ("ASANTE-SWITCH-MIB", "eSWMonIP"))
mibBuilder.exportSymbols("ASANTE-SWITCH-MIB", eSWUpDownloadStatus=eSWUpDownloadStatus, eSWGroupInfoTable=eSWGroupInfoTable, eSWCtrl=eSWCtrl, agentFwMinorVer=agentFwMinorVer, intraswitch=intraswitch, eSWResetWaitTime=eSWResetWaitTime, eSWFiltProtcolType=eSWFiltProtcolType, snmpAgent=snmpAgent, eSWFiltMACAddr=eSWFiltMACAddr, eSWRemoteConfigServer=eSWRemoteConfigServer, eSWPortInfoTable=eSWPortInfoTable, eSWTrunkBundleEntry=eSWTrunkBundleEntry, eSWMonMAC=eSWMonMAC, eSWGpPtInfoEntry=eSWGpPtInfoEntry, eSWNetSecurityInfo=eSWNetSecurityInfo, eSWGpPtInfoType=eSWGpPtInfoType, eSWTrunkBundleIndex=eSWTrunkBundleIndex, eSWAutoNegLocalAbility=eSWAutoNegLocalAbility, eSWBankImageInfoTable=eSWBankImageInfoTable, eSWSecurityTrapEnable=eSWSecurityTrapEnable, eSWMonIP=eSWMonIP, eSWTelnetSessionActive=eSWTelnetSessionActive, eSWStackLastChange=eSWStackLastChange, eSWFanFail=eSWFanFail, eSWPortCtrlState=eSWPortCtrlState, eSWResetLeftTime=eSWResetLeftTime, eAsntSwitch=eAsntSwitch, ipagentTrapRcvrEntry=ipagentTrapRcvrEntry, friendlyswitch=friendlyswitch, eSWAgentFW=eSWAgentFW, agentFwMajorVer=agentFwMajorVer, eSWBankIndex=eSWBankIndex, eSWTrunkBundlePortB=eSWTrunkBundlePortB, agentRemoteBootInfo=agentRemoteBootInfo, eSWSecurityTypesSupported=eSWSecurityTypesSupported, eSWPtMacMACADDR=eSWPtMacMACADDR, eSWFiltProtocolVID=eSWFiltProtocolVID, eSWFiltVLANProtocolType=eSWFiltVLANProtocolType, eSWRemoteConfigFileName=eSWRemoteConfigFileName, eSWAutoNegAutoConfig=eSWAutoNegAutoConfig, ipagentDefaultGateway=ipagentDefaultGateway, eSWVlanMemberSet=eSWVlanMemberSet, eSWSecPortIndex=eSWSecPortIndex, eSWPortCtrlGVRPEnable=eSWPortCtrlGVRPEnable, eSWAutoNegAdvertisedAbility=eSWAutoNegAdvertisedAbility, agentFw=agentFw, eSWVlanInfo=eSWVlanInfo, eSWFiltPMACAddr=eSWFiltPMACAddr, asante=asante, eSWEEPROMSize=eSWEEPROMSize, eSWUpDownloadAction=eSWUpDownloadAction, eSWTrunkBundlePortA=eSWTrunkBundlePortA, eSWSTP=eSWSTP, agentHwVer=agentHwVer, eSWFiltMACPortBasedConfigTable=eSWFiltMACPortBasedConfigTable, eSWVIDIndex=eSWVIDIndex, intraCore8000=intraCore8000, eSWGpPtCtrlBcastFilter=eSWGpPtCtrlBcastFilter, eSWMonVLANID=eSWMonVLANID, eSWAutoNegRemoteAble=eSWAutoNegRemoteAble, eSWGrpNumofPorts=eSWGrpNumofPorts, eSWGrpLED=eSWGrpLED, agentHw=agentHw, eSWMonPort=eSWMonPort, intraSwitch6216M=intraSwitch6216M, eSWIncSetMACStatus=eSWIncSetMACStatus, eSWIntruderPortDisable=eSWIntruderPortDisable, eSWDRAMSize=eSWDRAMSize, eSWPortCtrlBcastFilter=eSWPortCtrlBcastFilter, ipagentBootServerAddr=ipagentBootServerAddr, eSWPtMacInfoEntry=eSWPtMacInfoEntry, eSWVlanMaxCapacity=eSWVlanMaxCapacity, eSWGpPtCtrlStNFw=eSWGpPtCtrlStNFw, eSWEnhIntruderDetected=eSWEnhIntruderDetected, ipagentUnAuthIP=ipagentUnAuthIP, eSWFiltProtPort=eSWFiltProtPort, eSWPortDuplex=eSWPortDuplex, eSWEnhIntruderPortDisable=eSWEnhIntruderPortDisable, eSWEnhIPSpoofing=eSWEnhIPSpoofing, eSWAgentHW=eSWAgentHW, agentNetProtocol=agentNetProtocol, eSWVlanVersion=eSWVlanVersion, eSWSecMonitorPort=eSWSecMonitorPort, eSWSecIntMACAddrTable=eSWSecIntMACAddrTable, eSWPortCtrlVlanID=eSWPortCtrlVlanID, eSWMonIPTable=eSWMonIPTable, eSWAutoPortCtrlTable=eSWAutoPortCtrlTable, eSWGpPtCtrlState=eSWGpPtCtrlState, agentRemoteBootFile=agentRemoteBootFile, agentOutBandBaudRate=agentOutBandBaudRate, ipagentTrapRcvrStatus=ipagentTrapRcvrStatus, ipagentProtocol=ipagentProtocol, eSWMajorVer=eSWMajorVer, eSWDateTime=eSWDateTime, eSWRemoteDownloadFile=eSWRemoteDownloadFile, eSWGrpType=eSWGrpType, eSWRemoteImageServer=eSWRemoteImageServer, eSWPortAutoNegAbility=eSWPortAutoNegAbility, eSWBkpType=eSWBkpType, eSWFiltMACPortBasedConfigEntry=eSWFiltMACPortBasedConfigEntry, eSWGrpReset=eSWGrpReset, eSWAutoPortCtrlEntry=eSWAutoPortCtrlEntry, eSWFiltMACVLANBasedConfigEntry=eSWFiltMACVLANBasedConfigEntry, eSWPortCtrlEntry=eSWPortCtrlEntry, eSWRemoteImageFileName=eSWRemoteImageFileName, agentNetProtoStkCapMap=agentNetProtoStkCapMap, eSWGpPtCtrlTable=eSWGpPtCtrlTable, eSWRemoteDownloadImageBank=eSWRemoteDownloadImageBank, eSWSecurityLevel=eSWSecurityLevel, eSWFiltPMACStatus=eSWFiltPMACStatus, eSWSecIncSetConfigEntry=eSWSecIncSetConfigEntry, eSWCfgFileErrStatus=eSWCfgFileErrStatus, eSWNetworkSecurityVersion=eSWNetworkSecurityVersion, eSWGrpPtCtrlIndex=eSWGrpPtCtrlIndex, agentRemoteBootProtocol=agentRemoteBootProtocol, eSWBCastMcastDuration=eSWBCastMcastDuration, eSWBasic=eSWBasic, eSWTrunkBundleState=eSWTrunkBundleState, eSWPortCtrlSecurityLevel=eSWPortCtrlSecurityLevel, eSWSecConfigTable=eSWSecConfigTable, eSWPortProtocolFilter=eSWPortProtocolFilter, eSWTelnetSessions=eSWTelnetSessions, eSWIncSetMACAddr=eSWIncSetMACAddr, eSWIntMACAddr=eSWIntMACAddr, eSWGpPtInfoLink=eSWGpPtInfoLink, eSWGrpFanStatus=eSWGrpFanStatus, eSWTrunkBundleCapacity=eSWTrunkBundleCapacity, agentReset=agentReset, ipagentTrapRcvrComm=ipagentTrapRcvrComm, eSWIPSpoofing=eSWIPSpoofing, eSWTelnetTimeOut=eSWTelnetTimeOut, intrastack=intrastack, eSWPtMacPort=eSWPtMacPort, eSWBankImageInfoEntry=eSWBankImageInfoEntry, eSWSecConfigEntry=eSWSecConfigEntry, eSWPortCtrlSTP=eSWPortCtrlSTP, eSWStationMove=eSWStationMove, eSWFilteringTypesSupported=eSWFilteringTypesSupported, eSWFiltMACSts=eSWFiltMACSts, eSWGpPtInfoAutoNegAbility=eSWGpPtInfoAutoNegAbility, agentOutBandDialString=agentOutBandDialString, productId=productId, eSWPortGrpIndex=eSWPortGrpIndex, eSWGpPtInfoDuplex=eSWGpPtInfoDuplex, eSWGpPtInfoTable=eSWGpPtInfoTable, eSWFiltProtPortBasedCFGEntry=eSWFiltProtPortBasedCFGEntry, products=products, ipagentTrapRcvrIpAddr=ipagentTrapRcvrIpAddr, eSWGrpID=eSWGrpID, eSWGpPtCtrlIndex=eSWGpPtCtrlIndex, eSWAutoNegReceivedAbility=eSWAutoNegReceivedAbility, agentRunTimeImageMinorVer=agentRunTimeImageMinorVer, eSWSecIncSetConfigTable=eSWSecIncSetConfigTable, eSWPortCtrlIndex=eSWPortCtrlIndex, eSWVlanEntry=eSWVlanEntry, eSWGpPtProtocolFilter=eSWGpPtProtocolFilter, eSWIntruderDetected=eSWIntruderDetected, ipagentTrapRcvrTable=ipagentTrapRcvrTable, eSWFiltProtVLANBasedCFGEntry=eSWFiltProtVLANBasedCFGEntry, eSWGrpDescrption=eSWGrpDescrption, eSWVlanTable=eSWVlanTable, eSWBCastMcastThreshold=eSWBCastMcastThreshold, eSWAgentSW=eSWAgentSW, eSWFlashRAMSize=eSWFlashRAMSize, eSWNetworkSecurityMAXLevels=eSWNetworkSecurityMAXLevels, intraCore9000=intraCore9000, eSWVlanMgmAccess=eSWVlanMgmAccess, ipagentIpNetMask=ipagentIpNetMask, eSWGpPtCtrlSecurityLevel=eSWGpPtCtrlSecurityLevel, eSWFiltProtVLANBasedCFGTable=eSWFiltProtVLANBasedCFGTable, eSWPortType=eSWPortType, agentRunTimeImageMajorVer=agentRunTimeImageMajorVer, eSWGrpState=eSWGrpState, eSWSecIntMACAddrEntry=eSWSecIntMACAddrEntry, eSWAutoNegPortIndex=eSWAutoNegPortIndex, eSWPortCtrlVlanTagging=eSWPortCtrlVlanTagging, eSWPortCtrlTable=eSWPortCtrlTable, eSWPortCtrlTrunkBundleIndex=eSWPortCtrlTrunkBundleIndex, eSWAutoNegAdminState=eSWAutoNegAdminState, eSWFiltPortIndex=eSWFiltPortIndex, agentHwReVer=agentHwReVer, eSWAutoNegGrpIndex=eSWAutoNegGrpIndex, eSWMonitor=eSWMonitor, eSWMinorVer=eSWMinorVer, eSWGrpLastChange=eSWGrpLastChange, eSWGpPtCtrlSTP=eSWGpPtCtrlSTP, eSWActiveImageBank=eSWActiveImageBank, ipagentUnAuthComm=ipagentUnAuthComm, eSWAutoNegRestartAutoConfig=eSWAutoNegRestartAutoConfig, eSWVlanName=eSWVlanName, eSWGpPtInfoSpeed=eSWGpPtInfoSpeed, eSWPortCtrlVlanGroups=eSWPortCtrlVlanGroups, eSWEnhNewNodeDetected=eSWEnhNewNodeDetected, eSWPortInfoEntry=eSWPortInfoEntry, eSWGrpNumofExpPorts=eSWGrpNumofExpPorts, ipagentIpAddr=ipagentIpAddr, eSWIntMACAddrPort=eSWIntMACAddrPort, eSWMonGrp=eSWMonGrp, eSWVlanTypesSupported=eSWVlanTypesSupported, eSWGroupCapacity=eSWGroupCapacity, eSWImageRetryCounter=eSWImageRetryCounter, eSWVLANIndex=eSWVLANIndex, eSWMonIPEntry=eSWMonIPEntry, eSWPortSpeed=eSWPortSpeed, eSWGrpIndex=eSWGrpIndex, eSWPtMacInfoTable=eSWPtMacInfoTable, eSWEnhStationMove=eSWEnhStationMove, eSWFiltProtPortBasedCFGTable=eSWFiltProtPortBasedCFGTable, agentSw=agentSw, eSWType=eSWType, eSWGpPtInfoIndex=eSWGpPtInfoIndex, eSWExpPortConnectStateChange=eSWExpPortConnectStateChange, eSWConfigRetryCounter=eSWConfigRetryCounter, eSWTrunkBundleTable=eSWTrunkBundleTable, eSWAgent=eSWAgent, eSWPortIndex=eSWPortIndex, eSWFiltMACVLANBasedConfigTable=eSWFiltMACVLANBasedConfigTable, eSWUserInterfaceTimeOut=eSWUserInterfaceTimeOut, eSWNewNodeDetected=eSWNewNodeDetected, eSWGroupInfoEntry=eSWGroupInfoEntry, eSWPortLink=eSWPortLink, eSWVlanID=eSWVlanID, eSWIncSetPort=eSWIncSetPort, agentImageLoadMode=agentImageLoadMode, intraSwitch6224=intraSwitch6224, MacAddress=MacAddress, eSWPortCtrlStNFw=eSWPortCtrlStNFw, eSWFilteringInfo=eSWFilteringInfo, concProductId=concProductId, switch=switch, eSWGpPtCtrlEntry=eSWGpPtCtrlEntry)
|
# Okta codility challenge
def solution(A, Y):
# write your code in Python 3.6
clientTimestamps = {}
clients = []
resultMap = {}
result = []
for cur in A:
client = cur.split(' ')[0]
timestamp = cur.split(' ')[1]
if client not in clientTimestamps:
clients.append(client)
clientTimestamps[client] = list([timestamp])
else:
clientTimestamps[client].append(timestamp)
eachWindowTotals = {}
for client in clients:
eachWindowTotals[client] = list()
curWindow = int(clientTimestamps[client][0]) // 60
curCount, totalCount = 0, 0
index = 0
for curTimestamp in clientTimestamps[client]:
if int(curTimestamp) // 60 == curWindow:
if curCount < Y:
curCount += 1
else:
index = setWindowRequestTotal(index, curWindow, eachWindowTotals,
client, curCount, curTimestamp)
curWindow = int(curTimestamp) // 60
totalCount += curCount
curCount = 1
index = setWindowRequestTotal(index, curWindow, eachWindowTotals,
client, curCount, curTimestamp)
totalCount += curCount
resultMap[client] = totalCount
index = setWindowRequestTotal(index, curWindow, eachWindowTotals,
client, curCount, curTimestamp)
# print(eachWindowTotals)
# print(index)
for i in range(index): # index here is total no of windows or minutes in input
prev5WindowTotal = 0
for j in range(i, i - 5, -1):
if j < 0:
break
for client in eachWindowTotals.keys():
if len(eachWindowTotals[client]) - 1 < j:
continue
prev5WindowTotal += eachWindowTotals[client][j]
if prev5WindowTotal >= 10:
for client in eachWindowTotals.keys():
clientTotal = 0
for j in range(i, i - 5, -1):
if j < 0:
break
if len(eachWindowTotals[client]) - 1 < j:
continue
clientTotal += eachWindowTotals[client][j]
if clientTotal / prev5WindowTotal > 0.5:
try:
eachWindowTotals[client][i + 1] = 0
except:
pass
try:
eachWindowTotals[client][i + 2] = 0
except:
pass
for client in eachWindowTotals.keys():
newTotal = 0
for cur in eachWindowTotals[client]:
newTotal += cur
resultMap[client] = newTotal
for curClient in resultMap.keys():
result.append(curClient + " " + str(resultMap[curClient]))
return result
def setWindowRequestTotal(index, curWindow, eachWindowTotals, client, curCount, curTimestamp):
if index == curWindow:
eachWindowTotals[client].append(curCount)
index += 1
elif index != curWindow and index != int(curTimestamp) // 60:
for i in range(index, int(curTimestamp) // 60):
eachWindowTotals[client].append(0)
index += 1
elif index == int(curTimestamp) // 60:
pass
return index
|
class Circle:
__pi = 3.14
def __init__(self, diameter):
self.radius = diameter / 2
self.diameter = diameter
def calculate_circumference(self):
return self.diameter * self.__pi
def calculate_area(self):
radius = self.diameter / 2
return radius * radius * self.__pi
def calculate_area_of_sector(self, angle):
return self.calculate_area() * angle / 360
circle = Circle(10)
angle = 5
print(f"{circle.calculate_circumference():.2f}")
print(f"{circle.calculate_area():.2f}")
print(f"{circle.calculate_area_of_sector(angle):.2f}") |
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""Packaging of Linux, macOS and Windows binaries into tarballs"""
load("@os_info//:os_info.bzl", "is_windows")
def _package_app_impl(ctx):
files = depset(ctx.attr.binary.files)
runfiles = ctx.attr.binary.default_runfiles.files
datafiles = ctx.attr.binary[DefaultInfo].data_runfiles.files
args = ctx.actions.args()
inputs = depset([], transitive = [files, runfiles, datafiles] + [r.files for r in ctx.attr.resources])
tools = [ctx.executable.tar, ctx.executable.gzip] if is_windows else [ctx.executable.patchelf, ctx.executable.tar, ctx.executable.gzip]
ctx.actions.run_shell(
outputs = [ctx.outputs.out],
tools = [ctx.executable.package_app] + tools,
inputs = inputs.to_list(),
arguments = [args],
progress_message = "Packaging " + ctx.attr.name,
command = """
set -eu
export PATH=$PATH:{path}
{package_app} \
"$PWD/{binary}" \
"$PWD/{output}" \
{resources}
""".format(
path = ":".join(["$PWD/`dirname {tool}`".format(tool = tool.path) for tool in tools]),
output = ctx.outputs.out.path,
name = ctx.attr.name,
package_app = ctx.executable.package_app.path,
binary = ctx.executable.binary.path,
resources = " ".join([
_get_resource_path(r)
for r in ctx.attr.resources
]),
),
)
def _get_resource_path(r):
"""Get the path to use for a resource.
If the resource has a single file, it'll be copied to
the resource root directory. With multiple files the
relative directory structure is preserved.
This mirrors how rules that produce directories work
in Buck.
"""
files = r.files.to_list()
if len(files) > 1:
first_file = files[0].path
prefix_end = first_file.index(r.label.package)
# e.g. package foo/bar,
# first file at bazel-out/k8-fastbuild/bleh/foo/bar/baz/quux
# return path as bazel-out/k8-fastbuild/bleh/foo/bar.
return first_file[0:(prefix_end + len(r.label.package))]
else:
return files[0].path
package_app = rule(
implementation = _package_app_impl,
attrs = dict({
"binary": attr.label(
cfg = "target",
executable = True,
allow_files = True,
),
"resources": attr.label_list(
allow_files = True,
),
"patchelf": attr.label(
default = None if is_windows else Label("@patchelf_nix//:bin/patchelf"),
cfg = "host",
executable = True,
allow_files = True,
),
"tar": attr.label(
default = Label("@tar_dev_env//:tar"),
cfg = "host",
executable = True,
allow_files = True,
),
"gzip": attr.label(
default = Label("@gzip_dev_env//:gzip"),
cfg = "host",
executable = True,
allow_files = True,
),
"package_app": attr.label(
default = Label("//bazel_tools/packaging:package-app.sh"),
cfg = "host",
executable = True,
allow_files = True,
),
}),
outputs = {
"out": "%{name}.tar.gz",
},
)
"""Package a binary along with its dynamic library dependencies and data dependencies
into a tarball. The data dependencies are placed in 'resources' directory.
"""
|
permissions = [
'accessapproval.requests.approve',
'accessapproval.requests.dismiss',
'accessapproval.requests.get',
'accessapproval.requests.list',
'accessapproval.settings.get',
'accessapproval.settings.update',
'androidmanagement.enterprises.manage',
'appengine.applications.create',
'appengine.applications.get',
'appengine.applications.update',
'appengine.instances.delete',
'appengine.instances.get',
'appengine.instances.list',
'appengine.memcache.addKey',
'appengine.memcache.flush',
'appengine.memcache.get',
'appengine.memcache.getKey',
'appengine.memcache.list',
'appengine.memcache.update',
'appengine.operations.get',
'appengine.operations.list',
'appengine.runtimes.actAsAdmin',
'appengine.services.delete',
'appengine.services.get',
'appengine.services.list',
'appengine.services.update',
'appengine.versions.create',
'appengine.versions.delete',
'appengine.versions.get',
'appengine.versions.getFileContents',
'appengine.versions.list',
'appengine.versions.update',
'automl.annotationSpecs.create',
'automl.annotationSpecs.delete',
'automl.annotationSpecs.get',
'automl.annotationSpecs.list',
'automl.annotationSpecs.update',
'automl.annotations.approve',
'automl.annotations.create',
'automl.annotations.list',
'automl.annotations.manipulate',
'automl.annotations.reject',
'automl.columnSpecs.get',
'automl.columnSpecs.list',
'automl.columnSpecs.update',
'automl.datasets.create',
'automl.datasets.delete',
'automl.datasets.export',
'automl.datasets.get',
'automl.datasets.getIamPolicy',
'automl.datasets.import',
'automl.datasets.list',
'automl.datasets.setIamPolicy',
'automl.datasets.update',
'automl.examples.delete',
'automl.examples.get',
'automl.examples.list',
'automl.humanAnnotationTasks.create',
'automl.humanAnnotationTasks.delete',
'automl.humanAnnotationTasks.get',
'automl.humanAnnotationTasks.list',
'automl.locations.get',
'automl.locations.getIamPolicy',
'automl.locations.list',
'automl.locations.setIamPolicy',
'automl.modelEvaluations.create',
'automl.modelEvaluations.get',
'automl.modelEvaluations.list',
'automl.models.create',
'automl.models.delete',
'automl.models.deploy',
'automl.models.export',
'automl.models.get',
'automl.models.getIamPolicy',
'automl.models.list',
'automl.models.predict',
'automl.models.setIamPolicy',
'automl.models.undeploy',
'automl.operations.cancel',
'automl.operations.delete',
'automl.operations.get',
'automl.operations.list',
'automl.tableSpecs.get',
'automl.tableSpecs.list',
'automl.tableSpecs.update',
'automlrecommendations.apiKeys.create',
'automlrecommendations.apiKeys.delete',
'automlrecommendations.apiKeys.list',
'automlrecommendations.catalogItems.create',
'automlrecommendations.catalogItems.delete',
'automlrecommendations.catalogItems.get',
'automlrecommendations.catalogItems.list',
'automlrecommendations.catalogItems.update',
'automlrecommendations.catalogs.getStats',
'automlrecommendations.catalogs.list',
'automlrecommendations.eventStores.getStats',
'automlrecommendations.events.create',
'automlrecommendations.events.list',
'automlrecommendations.events.purge',
'automlrecommendations.placements.getStats',
'automlrecommendations.placements.list',
'automlrecommendations.recommendations.list',
'bigquery.config.get',
'bigquery.config.update',
'bigquery.connections.create',
'bigquery.connections.delete',
'bigquery.connections.get',
'bigquery.connections.getIamPolicy',
'bigquery.connections.list',
'bigquery.connections.setIamPolicy',
'bigquery.connections.update',
'bigquery.connections.use',
'bigquery.datasets.create',
'bigquery.datasets.delete',
'bigquery.datasets.get',
'bigquery.datasets.getIamPolicy',
'bigquery.datasets.setIamPolicy',
'bigquery.datasets.update',
'bigquery.datasets.updateTag',
'bigquery.jobs.create',
'bigquery.jobs.get',
'bigquery.jobs.list',
'bigquery.jobs.listAll',
'bigquery.jobs.update',
'bigquery.models.create',
'bigquery.models.delete',
'bigquery.models.getData',
'bigquery.models.getMetadata',
'bigquery.models.list',
'bigquery.models.updateData',
'bigquery.models.updateMetadata',
'bigquery.models.updateTag',
'bigquery.readsessions.create',
'bigquery.routines.create',
'bigquery.routines.delete',
'bigquery.routines.get',
'bigquery.routines.list',
'bigquery.routines.update',
'bigquery.savedqueries.create',
'bigquery.savedqueries.delete',
'bigquery.savedqueries.get',
'bigquery.savedqueries.list',
'bigquery.savedqueries.update',
'bigquery.transfers.get',
'bigquery.transfers.update',
'bigtable.appProfiles.create',
'bigtable.appProfiles.delete',
'bigtable.appProfiles.get',
'bigtable.appProfiles.list',
'bigtable.appProfiles.update',
'bigtable.clusters.create',
'bigtable.clusters.delete',
'bigtable.clusters.get',
'bigtable.clusters.list',
'bigtable.clusters.update',
'bigtable.instances.create',
'bigtable.instances.delete',
'bigtable.instances.get',
'bigtable.instances.getIamPolicy',
'bigtable.instances.list',
'bigtable.instances.setIamPolicy',
'bigtable.instances.update',
'bigtable.locations.list',
'bigtable.tables.checkConsistency',
'bigtable.tables.create',
'bigtable.tables.delete',
'bigtable.tables.generateConsistencyToken',
'bigtable.tables.get',
'bigtable.tables.list',
'bigtable.tables.mutateRows',
'bigtable.tables.readRows',
'bigtable.tables.sampleRowKeys',
'bigtable.tables.update',
'billing.resourceCosts.get',
'binaryauthorization.attestors.create',
'binaryauthorization.attestors.delete',
'binaryauthorization.attestors.get',
'binaryauthorization.attestors.getIamPolicy',
'binaryauthorization.attestors.list',
'binaryauthorization.attestors.setIamPolicy',
'binaryauthorization.attestors.update',
'binaryauthorization.attestors.verifyImageAttested',
'binaryauthorization.policy.get',
'binaryauthorization.policy.getIamPolicy',
'binaryauthorization.policy.setIamPolicy',
'binaryauthorization.policy.update',
'cloudasset.assets.exportIamPolicy',
'cloudasset.assets.exportResource',
'cloudbuild.builds.create',
'cloudbuild.builds.get',
'cloudbuild.builds.list',
'cloudbuild.builds.update',
'cloudconfig.configs.get',
'cloudconfig.configs.update',
'clouddebugger.breakpoints.create',
'clouddebugger.breakpoints.delete',
'clouddebugger.breakpoints.get',
'clouddebugger.breakpoints.list',
'clouddebugger.breakpoints.listActive',
'clouddebugger.breakpoints.update',
'clouddebugger.debuggees.create',
'clouddebugger.debuggees.list',
'cloudfunctions.functions.call',
'cloudfunctions.functions.create',
'cloudfunctions.functions.delete',
'cloudfunctions.functions.get',
'cloudfunctions.functions.getIamPolicy',
'cloudfunctions.functions.invoke',
'cloudfunctions.functions.list',
'cloudfunctions.functions.setIamPolicy',
'cloudfunctions.functions.sourceCodeGet',
'cloudfunctions.functions.sourceCodeSet',
'cloudfunctions.functions.update',
'cloudfunctions.locations.list',
'cloudfunctions.operations.get',
'cloudfunctions.operations.list',
'cloudiot.devices.bindGateway',
'cloudiot.devices.create',
'cloudiot.devices.delete',
'cloudiot.devices.get',
'cloudiot.devices.list',
'cloudiot.devices.sendCommand',
'cloudiot.devices.unbindGateway',
'cloudiot.devices.update',
'cloudiot.devices.updateConfig',
'cloudiot.registries.create',
'cloudiot.registries.delete',
'cloudiot.registries.get',
'cloudiot.registries.getIamPolicy',
'cloudiot.registries.list',
'cloudiot.registries.setIamPolicy',
'cloudiot.registries.update',
'cloudiottoken.tokensettings.get',
'cloudiottoken.tokensettings.update',
'cloudjobdiscovery.companies.create',
'cloudjobdiscovery.companies.delete',
'cloudjobdiscovery.companies.get',
'cloudjobdiscovery.companies.list',
'cloudjobdiscovery.companies.update',
'cloudjobdiscovery.events.create',
'cloudjobdiscovery.jobs.create',
'cloudjobdiscovery.jobs.delete',
'cloudjobdiscovery.jobs.get',
'cloudjobdiscovery.jobs.search',
'cloudjobdiscovery.jobs.update',
'cloudjobdiscovery.profiles.create',
'cloudjobdiscovery.profiles.delete',
'cloudjobdiscovery.profiles.get',
'cloudjobdiscovery.profiles.search',
'cloudjobdiscovery.profiles.update',
'cloudjobdiscovery.tenants.create',
'cloudjobdiscovery.tenants.delete',
'cloudjobdiscovery.tenants.get',
'cloudjobdiscovery.tenants.update',
'cloudjobdiscovery.tools.access',
'cloudkms.cryptoKeyVersions.create',
'cloudkms.cryptoKeyVersions.destroy',
'cloudkms.cryptoKeyVersions.get',
'cloudkms.cryptoKeyVersions.list',
'cloudkms.cryptoKeyVersions.restore',
'cloudkms.cryptoKeyVersions.update',
'cloudkms.cryptoKeyVersions.useToDecrypt',
'cloudkms.cryptoKeyVersions.useToEncrypt',
'cloudkms.cryptoKeyVersions.useToSign',
'cloudkms.cryptoKeyVersions.viewPublicKey',
'cloudkms.cryptoKeys.create',
'cloudkms.cryptoKeys.get',
'cloudkms.cryptoKeys.getIamPolicy',
'cloudkms.cryptoKeys.list',
'cloudkms.cryptoKeys.setIamPolicy',
'cloudkms.cryptoKeys.update',
'cloudkms.keyRings.create',
'cloudkms.keyRings.get',
'cloudkms.keyRings.getIamPolicy',
'cloudkms.keyRings.list',
'cloudkms.keyRings.setIamPolicy',
'cloudmessaging.messages.create',
'cloudmigration.velostrataendpoints.connect',
'cloudnotifications.activities.list',
'cloudprivatecatalog.targets.get',
'cloudprivatecatalogproducer.targets.associate',
'cloudprivatecatalogproducer.targets.unassociate',
'cloudprofiler.profiles.create',
'cloudprofiler.profiles.list',
'cloudprofiler.profiles.update',
'cloudscheduler.jobs.create',
'cloudscheduler.jobs.delete',
'cloudscheduler.jobs.enable',
'cloudscheduler.jobs.fullView',
'cloudscheduler.jobs.get',
'cloudscheduler.jobs.list',
'cloudscheduler.jobs.pause',
'cloudscheduler.jobs.run',
'cloudscheduler.jobs.update',
'cloudscheduler.locations.get',
'cloudscheduler.locations.list',
'cloudsecurityscanner.crawledurls.list',
'cloudsecurityscanner.results.get',
'cloudsecurityscanner.results.list',
'cloudsecurityscanner.scanruns.get',
'cloudsecurityscanner.scanruns.getSummary',
'cloudsecurityscanner.scanruns.list',
'cloudsecurityscanner.scanruns.stop',
'cloudsecurityscanner.scans.create',
'cloudsecurityscanner.scans.delete',
'cloudsecurityscanner.scans.get',
'cloudsecurityscanner.scans.list',
'cloudsecurityscanner.scans.run',
'cloudsecurityscanner.scans.update',
'cloudsql.backupRuns.create',
'cloudsql.backupRuns.delete',
'cloudsql.backupRuns.get',
'cloudsql.backupRuns.list',
'cloudsql.databases.create',
'cloudsql.databases.delete',
'cloudsql.databases.get',
'cloudsql.databases.list',
'cloudsql.databases.update',
'cloudsql.instances.addServerCa',
'cloudsql.instances.clone',
'cloudsql.instances.connect',
'cloudsql.instances.create',
'cloudsql.instances.delete',
'cloudsql.instances.demoteMaster',
'cloudsql.instances.export',
'cloudsql.instances.failover',
'cloudsql.instances.get',
'cloudsql.instances.import',
'cloudsql.instances.list',
'cloudsql.instances.listServerCas',
'cloudsql.instances.promoteReplica',
'cloudsql.instances.resetSslConfig',
'cloudsql.instances.restart',
'cloudsql.instances.restoreBackup',
'cloudsql.instances.rotateServerCa',
'cloudsql.instances.startReplica',
'cloudsql.instances.stopReplica',
'cloudsql.instances.truncateLog',
'cloudsql.instances.update',
'cloudsql.sslCerts.create',
'cloudsql.sslCerts.createEphemeral',
'cloudsql.sslCerts.delete',
'cloudsql.sslCerts.get',
'cloudsql.sslCerts.list',
'cloudsql.users.create',
'cloudsql.users.delete',
'cloudsql.users.list',
'cloudsql.users.update',
'cloudtasks.locations.get',
'cloudtasks.locations.list',
'cloudtasks.queues.create',
'cloudtasks.queues.delete',
'cloudtasks.queues.get',
'cloudtasks.queues.getIamPolicy',
'cloudtasks.queues.list',
'cloudtasks.queues.pause',
'cloudtasks.queues.purge',
'cloudtasks.queues.resume',
'cloudtasks.queues.setIamPolicy',
'cloudtasks.queues.update',
'cloudtasks.tasks.create',
'cloudtasks.tasks.delete',
'cloudtasks.tasks.fullView',
'cloudtasks.tasks.get',
'cloudtasks.tasks.list',
'cloudtasks.tasks.run',
'cloudtestservice.environmentcatalog.get',
'cloudtestservice.matrices.create',
'cloudtestservice.matrices.get',
'cloudtestservice.matrices.update',
'cloudtoolresults.executions.create',
'cloudtoolresults.executions.get',
'cloudtoolresults.executions.list',
'cloudtoolresults.executions.update',
'cloudtoolresults.histories.create',
'cloudtoolresults.histories.get',
'cloudtoolresults.histories.list',
'cloudtoolresults.settings.create',
'cloudtoolresults.settings.get',
'cloudtoolresults.settings.update',
'cloudtoolresults.steps.create',
'cloudtoolresults.steps.get',
'cloudtoolresults.steps.list',
'cloudtoolresults.steps.update',
'cloudtrace.insights.get',
'cloudtrace.insights.list',
'cloudtrace.stats.get',
'cloudtrace.tasks.create',
'cloudtrace.tasks.delete',
'cloudtrace.tasks.get',
'cloudtrace.tasks.list',
'cloudtrace.traces.get',
'cloudtrace.traces.list',
'cloudtrace.traces.patch',
'cloudtranslate.generalModels.batchPredict',
'cloudtranslate.generalModels.get',
'cloudtranslate.generalModels.predict',
'cloudtranslate.glossaries.batchPredict',
'cloudtranslate.glossaries.create',
'cloudtranslate.glossaries.delete',
'cloudtranslate.glossaries.get',
'cloudtranslate.glossaries.list',
'cloudtranslate.glossaries.predict',
'cloudtranslate.languageDetectionModels.predict',
'cloudtranslate.locations.get',
'cloudtranslate.locations.list',
'cloudtranslate.operations.cancel',
'cloudtranslate.operations.delete',
'cloudtranslate.operations.get',
'cloudtranslate.operations.list',
'cloudtranslate.operations.wait',
'composer.environments.create',
'composer.environments.delete',
'composer.environments.get',
'composer.environments.list',
'composer.environments.update',
'composer.imageversions.list',
'composer.operations.delete',
'composer.operations.get',
'composer.operations.list',
'compute.acceleratorTypes.get',
'compute.acceleratorTypes.list',
'compute.addresses.create',
'compute.addresses.createInternal',
'compute.addresses.delete',
'compute.addresses.deleteInternal',
'compute.addresses.get',
'compute.addresses.list',
'compute.addresses.setLabels',
'compute.addresses.use',
'compute.addresses.useInternal',
'compute.autoscalers.create',
'compute.autoscalers.delete',
'compute.autoscalers.get',
'compute.autoscalers.list',
'compute.autoscalers.update',
'compute.backendBuckets.create',
'compute.backendBuckets.delete',
'compute.backendBuckets.get',
'compute.backendBuckets.list',
'compute.backendBuckets.update',
'compute.backendBuckets.use',
'compute.backendServices.create',
'compute.backendServices.delete',
'compute.backendServices.get',
'compute.backendServices.list',
'compute.backendServices.setSecurityPolicy',
'compute.backendServices.update',
'compute.backendServices.use',
'compute.commitments.create',
'compute.commitments.get',
'compute.commitments.list',
'compute.diskTypes.get',
'compute.diskTypes.list',
'compute.disks.addResourcePolicies',
'compute.disks.create',
'compute.disks.createSnapshot',
'compute.disks.delete',
'compute.disks.get',
'compute.disks.getIamPolicy',
'compute.disks.list',
'compute.disks.removeResourcePolicies',
'compute.disks.resize',
'compute.disks.setIamPolicy',
'compute.disks.setLabels',
'compute.disks.update',
'compute.disks.use',
'compute.disks.useReadOnly',
'compute.firewalls.create',
'compute.firewalls.delete',
'compute.firewalls.get',
'compute.firewalls.list',
'compute.firewalls.update',
'compute.forwardingRules.create',
'compute.forwardingRules.delete',
'compute.forwardingRules.get',
'compute.forwardingRules.list',
'compute.forwardingRules.setLabels',
'compute.forwardingRules.setTarget',
'compute.globalAddresses.create',
'compute.globalAddresses.createInternal',
'compute.globalAddresses.delete',
'compute.globalAddresses.deleteInternal',
'compute.globalAddresses.get',
'compute.globalAddresses.list',
'compute.globalAddresses.setLabels',
'compute.globalAddresses.use',
'compute.globalForwardingRules.create',
'compute.globalForwardingRules.delete',
'compute.globalForwardingRules.get',
'compute.globalForwardingRules.list',
'compute.globalForwardingRules.setLabels',
'compute.globalForwardingRules.setTarget',
'compute.globalOperations.delete',
'compute.globalOperations.get',
'compute.globalOperations.getIamPolicy',
'compute.globalOperations.list',
'compute.globalOperations.setIamPolicy',
'compute.healthChecks.create',
'compute.healthChecks.delete',
'compute.healthChecks.get',
'compute.healthChecks.list',
'compute.healthChecks.update',
'compute.healthChecks.use',
'compute.healthChecks.useReadOnly',
'compute.httpHealthChecks.create',
'compute.httpHealthChecks.delete',
'compute.httpHealthChecks.get',
'compute.httpHealthChecks.list',
'compute.httpHealthChecks.update',
'compute.httpHealthChecks.use',
'compute.httpHealthChecks.useReadOnly',
'compute.httpsHealthChecks.create',
'compute.httpsHealthChecks.delete',
'compute.httpsHealthChecks.get',
'compute.httpsHealthChecks.list',
'compute.httpsHealthChecks.update',
'compute.httpsHealthChecks.use',
'compute.httpsHealthChecks.useReadOnly',
'compute.images.create',
'compute.images.delete',
'compute.images.deprecate',
'compute.images.get',
'compute.images.getFromFamily',
'compute.images.getIamPolicy',
'compute.images.list',
'compute.images.setIamPolicy',
'compute.images.setLabels',
'compute.images.update',
'compute.images.useReadOnly',
'compute.instanceGroupManagers.create',
'compute.instanceGroupManagers.delete',
'compute.instanceGroupManagers.get',
'compute.instanceGroupManagers.list',
'compute.instanceGroupManagers.update',
'compute.instanceGroupManagers.use',
'compute.instanceGroups.create',
'compute.instanceGroups.delete',
'compute.instanceGroups.get',
'compute.instanceGroups.list',
'compute.instanceGroups.update',
'compute.instanceGroups.use',
'compute.instanceTemplates.create',
'compute.instanceTemplates.delete',
'compute.instanceTemplates.get',
'compute.instanceTemplates.getIamPolicy',
'compute.instanceTemplates.list',
'compute.instanceTemplates.setIamPolicy',
'compute.instanceTemplates.useReadOnly',
'compute.instances.addAccessConfig',
'compute.instances.addMaintenancePolicies',
'compute.instances.attachDisk',
'compute.instances.create',
'compute.instances.delete',
'compute.instances.deleteAccessConfig',
'compute.instances.detachDisk',
'compute.instances.get',
'compute.instances.getGuestAttributes',
'compute.instances.getIamPolicy',
'compute.instances.getSerialPortOutput',
'compute.instances.getShieldedInstanceIdentity',
'compute.instances.getShieldedVmIdentity',
'compute.instances.list',
'compute.instances.listReferrers',
'compute.instances.osAdminLogin',
'compute.instances.osLogin',
'compute.instances.removeMaintenancePolicies',
'compute.instances.reset',
'compute.instances.resume',
'compute.instances.setDeletionProtection',
'compute.instances.setDiskAutoDelete',
'compute.instances.setIamPolicy',
'compute.instances.setLabels',
'compute.instances.setMachineResources',
'compute.instances.setMachineType',
'compute.instances.setMetadata',
'compute.instances.setMinCpuPlatform',
'compute.instances.setScheduling',
'compute.instances.setServiceAccount',
'compute.instances.setShieldedInstanceIntegrityPolicy',
'compute.instances.setShieldedVmIntegrityPolicy',
'compute.instances.setTags',
'compute.instances.start',
'compute.instances.startWithEncryptionKey',
'compute.instances.stop',
'compute.instances.suspend',
'compute.instances.update',
'compute.instances.updateAccessConfig',
'compute.instances.updateDisplayDevice',
'compute.instances.updateNetworkInterface',
'compute.instances.updateShieldedInstanceConfig',
'compute.instances.updateShieldedVmConfig',
'compute.instances.use',
'compute.interconnectAttachments.create',
'compute.interconnectAttachments.delete',
'compute.interconnectAttachments.get',
'compute.interconnectAttachments.list',
'compute.interconnectAttachments.setLabels',
'compute.interconnectAttachments.update',
'compute.interconnectAttachments.use',
'compute.interconnectLocations.get',
'compute.interconnectLocations.list',
'compute.interconnects.create',
'compute.interconnects.delete',
'compute.interconnects.get',
'compute.interconnects.list',
'compute.interconnects.setLabels',
'compute.interconnects.update',
'compute.interconnects.use',
'compute.licenseCodes.get',
'compute.licenseCodes.getIamPolicy',
'compute.licenseCodes.list',
'compute.licenseCodes.setIamPolicy',
'compute.licenseCodes.update',
'compute.licenseCodes.use',
'compute.licenses.create',
'compute.licenses.delete',
'compute.licenses.get',
'compute.licenses.getIamPolicy',
'compute.licenses.list',
'compute.licenses.setIamPolicy',
'compute.machineTypes.get',
'compute.machineTypes.list',
'compute.maintenancePolicies.create',
'compute.maintenancePolicies.delete',
'compute.maintenancePolicies.get',
'compute.maintenancePolicies.getIamPolicy',
'compute.maintenancePolicies.list',
'compute.maintenancePolicies.setIamPolicy',
'compute.maintenancePolicies.use',
'compute.networkEndpointGroups.attachNetworkEndpoints',
'compute.networkEndpointGroups.create',
'compute.networkEndpointGroups.delete',
'compute.networkEndpointGroups.detachNetworkEndpoints',
'compute.networkEndpointGroups.get',
'compute.networkEndpointGroups.getIamPolicy',
'compute.networkEndpointGroups.list',
'compute.networkEndpointGroups.setIamPolicy',
'compute.networkEndpointGroups.use',
'compute.networks.addPeering',
'compute.networks.create',
'compute.networks.delete',
'compute.networks.get',
'compute.networks.list',
'compute.networks.removePeering',
'compute.networks.switchToCustomMode',
'compute.networks.update',
'compute.networks.updatePeering',
'compute.networks.updatePolicy',
'compute.networks.use',
'compute.networks.useExternalIp',
'compute.nodeGroups.addNodes',
'compute.nodeGroups.create',
'compute.nodeGroups.delete',
'compute.nodeGroups.deleteNodes',
'compute.nodeGroups.get',
'compute.nodeGroups.getIamPolicy',
'compute.nodeGroups.list',
'compute.nodeGroups.setIamPolicy',
'compute.nodeGroups.setNodeTemplate',
'compute.nodeTemplates.create',
'compute.nodeTemplates.delete',
'compute.nodeTemplates.get',
'compute.nodeTemplates.getIamPolicy',
'compute.nodeTemplates.list',
'compute.nodeTemplates.setIamPolicy',
'compute.nodeTypes.get',
'compute.nodeTypes.list',
'compute.projects.get',
'compute.projects.setDefaultNetworkTier',
'compute.projects.setDefaultServiceAccount',
'compute.projects.setUsageExportBucket',
'compute.regionBackendServices.create',
'compute.regionBackendServices.delete',
'compute.regionBackendServices.get',
'compute.regionBackendServices.list',
'compute.regionBackendServices.setSecurityPolicy',
'compute.regionBackendServices.update',
'compute.regionBackendServices.use',
'compute.regionOperations.delete',
'compute.regionOperations.get',
'compute.regionOperations.getIamPolicy',
'compute.regionOperations.list',
'compute.regionOperations.setIamPolicy',
'compute.regions.get',
'compute.regions.list',
'compute.reservations.create',
'compute.reservations.delete',
'compute.reservations.get',
'compute.reservations.list',
'compute.reservations.resize',
'compute.resourcePolicies.create',
'compute.resourcePolicies.delete',
'compute.resourcePolicies.get',
'compute.resourcePolicies.list',
'compute.resourcePolicies.use',
'compute.routers.create',
'compute.routers.delete',
'compute.routers.get',
'compute.routers.list',
'compute.routers.update',
'compute.routers.use',
'compute.routes.create',
'compute.routes.delete',
'compute.routes.get',
'compute.routes.list',
'compute.securityPolicies.create',
'compute.securityPolicies.delete',
'compute.securityPolicies.get',
'compute.securityPolicies.getIamPolicy',
'compute.securityPolicies.list',
'compute.securityPolicies.setIamPolicy',
'compute.securityPolicies.update',
'compute.securityPolicies.use',
'compute.snapshots.create',
'compute.snapshots.delete',
'compute.snapshots.get',
'compute.snapshots.getIamPolicy',
'compute.snapshots.list',
'compute.snapshots.setIamPolicy',
'compute.snapshots.setLabels',
'compute.snapshots.useReadOnly',
'compute.sslCertificates.create',
'compute.sslCertificates.delete',
'compute.sslCertificates.get',
'compute.sslCertificates.list',
'compute.sslPolicies.create',
'compute.sslPolicies.delete',
'compute.sslPolicies.get',
'compute.sslPolicies.list',
'compute.sslPolicies.listAvailableFeatures',
'compute.sslPolicies.update',
'compute.sslPolicies.use',
'compute.subnetworks.create',
'compute.subnetworks.delete',
'compute.subnetworks.expandIpCidrRange',
'compute.subnetworks.get',
'compute.subnetworks.getIamPolicy',
'compute.subnetworks.list',
'compute.subnetworks.setIamPolicy',
'compute.subnetworks.setPrivateIpGoogleAccess',
'compute.subnetworks.update',
'compute.subnetworks.use',
'compute.subnetworks.useExternalIp',
'compute.targetHttpProxies.create',
'compute.targetHttpProxies.delete',
'compute.targetHttpProxies.get',
'compute.targetHttpProxies.list',
'compute.targetHttpProxies.setUrlMap',
'compute.targetHttpProxies.use',
'compute.targetHttpsProxies.create',
'compute.targetHttpsProxies.delete',
'compute.targetHttpsProxies.get',
'compute.targetHttpsProxies.list',
'compute.targetHttpsProxies.setSslCertificates',
'compute.targetHttpsProxies.setSslPolicy',
'compute.targetHttpsProxies.setUrlMap',
'compute.targetHttpsProxies.use',
'compute.targetInstances.create',
'compute.targetInstances.delete',
'compute.targetInstances.get',
'compute.targetInstances.list',
'compute.targetInstances.use',
'compute.targetPools.addHealthCheck',
'compute.targetPools.addInstance',
'compute.targetPools.create',
'compute.targetPools.delete',
'compute.targetPools.get',
'compute.targetPools.list',
'compute.targetPools.removeHealthCheck',
'compute.targetPools.removeInstance',
'compute.targetPools.update',
'compute.targetPools.use',
'compute.targetSslProxies.create',
'compute.targetSslProxies.delete',
'compute.targetSslProxies.get',
'compute.targetSslProxies.list',
'compute.targetSslProxies.setBackendService',
'compute.targetSslProxies.setProxyHeader',
'compute.targetSslProxies.setSslCertificates',
'compute.targetSslProxies.use',
'compute.targetTcpProxies.create',
'compute.targetTcpProxies.delete',
'compute.targetTcpProxies.get',
'compute.targetTcpProxies.list',
'compute.targetTcpProxies.update',
'compute.targetTcpProxies.use',
'compute.targetVpnGateways.create',
'compute.targetVpnGateways.delete',
'compute.targetVpnGateways.get',
'compute.targetVpnGateways.list',
'compute.targetVpnGateways.setLabels',
'compute.targetVpnGateways.use',
'compute.urlMaps.create',
'compute.urlMaps.delete',
'compute.urlMaps.get',
'compute.urlMaps.invalidateCache',
'compute.urlMaps.list',
'compute.urlMaps.update',
'compute.urlMaps.use',
'compute.urlMaps.validate',
'compute.vpnGateways.create',
'compute.vpnGateways.delete',
'compute.vpnGateways.get',
'compute.vpnGateways.list',
'compute.vpnGateways.setLabels',
'compute.vpnGateways.use',
'compute.vpnTunnels.create',
'compute.vpnTunnels.delete',
'compute.vpnTunnels.get',
'compute.vpnTunnels.list',
'compute.vpnTunnels.setLabels',
'compute.zoneOperations.delete',
'compute.zoneOperations.get',
'compute.zoneOperations.getIamPolicy',
'compute.zoneOperations.list',
'compute.zoneOperations.setIamPolicy',
'compute.zones.get',
'compute.zones.list',
'container.apiServices.create',
'container.apiServices.delete',
'container.apiServices.get',
'container.apiServices.list',
'container.apiServices.update',
'container.apiServices.updateStatus',
'container.backendConfigs.create',
'container.backendConfigs.delete',
'container.backendConfigs.get',
'container.backendConfigs.list',
'container.backendConfigs.update',
'container.bindings.create',
'container.bindings.delete',
'container.bindings.get',
'container.bindings.list',
'container.bindings.update',
'container.certificateSigningRequests.approve',
'container.certificateSigningRequests.create',
'container.certificateSigningRequests.delete',
'container.certificateSigningRequests.get',
'container.certificateSigningRequests.list',
'container.certificateSigningRequests.update',
'container.certificateSigningRequests.updateStatus',
'container.clusterRoleBindings.create',
'container.clusterRoleBindings.delete',
'container.clusterRoleBindings.get',
'container.clusterRoleBindings.list',
'container.clusterRoleBindings.update',
'container.clusterRoles.bind',
'container.clusterRoles.create',
'container.clusterRoles.delete',
'container.clusterRoles.get',
'container.clusterRoles.list',
'container.clusterRoles.update',
'container.clusters.create',
'container.clusters.delete',
'container.clusters.get',
'container.clusters.getCredentials',
'container.clusters.list',
'container.clusters.update',
'container.componentStatuses.get',
'container.componentStatuses.list',
'container.configMaps.create',
'container.configMaps.delete',
'container.configMaps.get',
'container.configMaps.list',
'container.configMaps.update',
'container.controllerRevisions.create',
'container.controllerRevisions.delete',
'container.controllerRevisions.get',
'container.controllerRevisions.list',
'container.controllerRevisions.update',
'container.cronJobs.create',
'container.cronJobs.delete',
'container.cronJobs.get',
'container.cronJobs.getStatus',
'container.cronJobs.list',
'container.cronJobs.update',
'container.cronJobs.updateStatus',
'container.customResourceDefinitions.create',
'container.customResourceDefinitions.delete',
'container.customResourceDefinitions.get',
'container.customResourceDefinitions.list',
'container.customResourceDefinitions.update',
'container.customResourceDefinitions.updateStatus',
'container.daemonSets.create',
'container.daemonSets.delete',
'container.daemonSets.get',
'container.daemonSets.getStatus',
'container.daemonSets.list',
'container.daemonSets.update',
'container.daemonSets.updateStatus',
'container.deployments.create',
'container.deployments.delete',
'container.deployments.get',
'container.deployments.getScale',
'container.deployments.getStatus',
'container.deployments.list',
'container.deployments.rollback',
'container.deployments.update',
'container.deployments.updateScale',
'container.deployments.updateStatus',
'container.endpoints.create',
'container.endpoints.delete',
'container.endpoints.get',
'container.endpoints.list',
'container.endpoints.update',
'container.events.create',
'container.events.delete',
'container.events.get',
'container.events.list',
'container.events.update',
'container.horizontalPodAutoscalers.create',
'container.horizontalPodAutoscalers.delete',
'container.horizontalPodAutoscalers.get',
'container.horizontalPodAutoscalers.getStatus',
'container.horizontalPodAutoscalers.list',
'container.horizontalPodAutoscalers.update',
'container.horizontalPodAutoscalers.updateStatus',
'container.ingresses.create',
'container.ingresses.delete',
'container.ingresses.get',
'container.ingresses.getStatus',
'container.ingresses.list',
'container.ingresses.update',
'container.ingresses.updateStatus',
'container.initializerConfigurations.create',
'container.initializerConfigurations.delete',
'container.initializerConfigurations.get',
'container.initializerConfigurations.list',
'container.initializerConfigurations.update',
'container.jobs.create',
'container.jobs.delete',
'container.jobs.get',
'container.jobs.getStatus',
'container.jobs.list',
'container.jobs.update',
'container.jobs.updateStatus',
'container.limitRanges.create',
'container.limitRanges.delete',
'container.limitRanges.get',
'container.limitRanges.list',
'container.limitRanges.update',
'container.localSubjectAccessReviews.create',
'container.localSubjectAccessReviews.list',
'container.namespaces.create',
'container.namespaces.delete',
'container.namespaces.get',
'container.namespaces.getStatus',
'container.namespaces.list',
'container.namespaces.update',
'container.namespaces.updateStatus',
'container.networkPolicies.create',
'container.networkPolicies.delete',
'container.networkPolicies.get',
'container.networkPolicies.list',
'container.networkPolicies.update',
'container.nodes.create',
'container.nodes.delete',
'container.nodes.get',
'container.nodes.getStatus',
'container.nodes.list',
'container.nodes.proxy',
'container.nodes.update',
'container.nodes.updateStatus',
'container.operations.get',
'container.operations.list',
'container.persistentVolumeClaims.create',
'container.persistentVolumeClaims.delete',
'container.persistentVolumeClaims.get',
'container.persistentVolumeClaims.getStatus',
'container.persistentVolumeClaims.list',
'container.persistentVolumeClaims.update',
'container.persistentVolumeClaims.updateStatus',
'container.persistentVolumes.create',
'container.persistentVolumes.delete',
'container.persistentVolumes.get',
'container.persistentVolumes.getStatus',
'container.persistentVolumes.list',
'container.persistentVolumes.update',
'container.persistentVolumes.updateStatus',
'container.petSets.create',
'container.petSets.delete',
'container.petSets.get',
'container.petSets.list',
'container.petSets.update',
'container.petSets.updateStatus',
'container.podDisruptionBudgets.create',
'container.podDisruptionBudgets.delete',
'container.podDisruptionBudgets.get',
'container.podDisruptionBudgets.getStatus',
'container.podDisruptionBudgets.list',
'container.podDisruptionBudgets.update',
'container.podDisruptionBudgets.updateStatus',
'container.podPresets.create',
'container.podPresets.delete',
'container.podPresets.get',
'container.podPresets.list',
'container.podPresets.update',
'container.podSecurityPolicies.create',
'container.podSecurityPolicies.delete',
'container.podSecurityPolicies.get',
'container.podSecurityPolicies.list',
'container.podSecurityPolicies.update',
'container.podSecurityPolicies.use',
'container.podTemplates.create',
'container.podTemplates.delete',
'container.podTemplates.get',
'container.podTemplates.list',
'container.podTemplates.update',
'container.pods.attach',
'container.pods.create',
'container.pods.delete',
'container.pods.evict',
'container.pods.exec',
'container.pods.get',
'container.pods.getLogs',
'container.pods.getStatus',
'container.pods.initialize',
'container.pods.list',
'container.pods.portForward',
'container.pods.proxy',
'container.pods.update',
'container.pods.updateStatus',
'container.replicaSets.create',
'container.replicaSets.delete',
'container.replicaSets.get',
'container.replicaSets.getScale',
'container.replicaSets.getStatus',
'container.replicaSets.list',
'container.replicaSets.update',
'container.replicaSets.updateScale',
'container.replicaSets.updateStatus',
'container.replicationControllers.create',
'container.replicationControllers.delete',
'container.replicationControllers.get',
'container.replicationControllers.getScale',
'container.replicationControllers.getStatus',
'container.replicationControllers.list',
'container.replicationControllers.update',
'container.replicationControllers.updateScale',
'container.replicationControllers.updateStatus',
'container.resourceQuotas.create',
'container.resourceQuotas.delete',
'container.resourceQuotas.get',
'container.resourceQuotas.getStatus',
'container.resourceQuotas.list',
'container.resourceQuotas.update',
'container.resourceQuotas.updateStatus',
'container.roleBindings.create',
'container.roleBindings.delete',
'container.roleBindings.get',
'container.roleBindings.list',
'container.roleBindings.update',
'container.roles.bind',
'container.roles.create',
'container.roles.delete',
'container.roles.get',
'container.roles.list',
'container.roles.update',
'container.scheduledJobs.create',
'container.scheduledJobs.delete',
'container.scheduledJobs.get',
'container.scheduledJobs.list',
'container.scheduledJobs.update',
'container.scheduledJobs.updateStatus',
'container.secrets.create',
'container.secrets.delete',
'container.secrets.get',
'container.secrets.list',
'container.secrets.update',
'container.selfSubjectAccessReviews.create',
'container.selfSubjectAccessReviews.list',
'container.serviceAccounts.create',
'container.serviceAccounts.delete',
'container.serviceAccounts.get',
'container.serviceAccounts.list',
'container.serviceAccounts.update',
'container.services.create',
'container.services.delete',
'container.services.get',
'container.services.getStatus',
'container.services.list',
'container.services.proxy',
'container.services.update',
'container.services.updateStatus',
'container.statefulSets.create',
'container.statefulSets.delete',
'container.statefulSets.get',
'container.statefulSets.getScale',
'container.statefulSets.getStatus',
'container.statefulSets.list',
'container.statefulSets.update',
'container.statefulSets.updateScale',
'container.statefulSets.updateStatus',
'container.storageClasses.create',
'container.storageClasses.delete',
'container.storageClasses.get',
'container.storageClasses.list',
'container.storageClasses.update',
'container.subjectAccessReviews.create',
'container.subjectAccessReviews.list',
'container.thirdPartyObjects.create',
'container.thirdPartyObjects.delete',
'container.thirdPartyObjects.get',
'container.thirdPartyObjects.list',
'container.thirdPartyObjects.update',
'container.thirdPartyResources.create',
'container.thirdPartyResources.delete',
'container.thirdPartyResources.get',
'container.thirdPartyResources.list',
'container.thirdPartyResources.update',
'container.tokenReviews.create',
'datacatalog.entries.create',
'datacatalog.entries.delete',
'datacatalog.entries.get',
'datacatalog.entries.getIamPolicy',
'datacatalog.entries.setIamPolicy',
'datacatalog.entries.update',
'datacatalog.entryGroups.create',
'datacatalog.entryGroups.delete',
'datacatalog.entryGroups.get',
'datacatalog.entryGroups.getIamPolicy',
'datacatalog.entryGroups.setIamPolicy',
'datacatalog.tagTemplates.create',
'datacatalog.tagTemplates.delete',
'datacatalog.tagTemplates.get',
'datacatalog.tagTemplates.getIamPolicy',
'datacatalog.tagTemplates.getTag',
'datacatalog.tagTemplates.setIamPolicy',
'datacatalog.tagTemplates.update',
'datacatalog.tagTemplates.use',
'dataflow.jobs.cancel',
'dataflow.jobs.create',
'dataflow.jobs.get',
'dataflow.jobs.list',
'dataflow.jobs.updateContents',
'dataflow.messages.list',
'dataflow.metrics.get',
'datafusion.instances.create',
'datafusion.instances.delete',
'datafusion.instances.get',
'datafusion.instances.getIamPolicy',
'datafusion.instances.list',
'datafusion.instances.restart',
'datafusion.instances.setIamPolicy',
'datafusion.instances.update',
'datafusion.instances.upgrade',
'datafusion.locations.get',
'datafusion.locations.list',
'datafusion.operations.cancel',
'datafusion.operations.get',
'datafusion.operations.list',
'datalabeling.annotateddatasets.delete',
'datalabeling.annotateddatasets.get',
'datalabeling.annotateddatasets.label',
'datalabeling.annotateddatasets.list',
'datalabeling.annotationspecsets.create',
'datalabeling.annotationspecsets.delete',
'datalabeling.annotationspecsets.get',
'datalabeling.annotationspecsets.list',
'datalabeling.dataitems.get',
'datalabeling.dataitems.list',
'datalabeling.datasets.create',
'datalabeling.datasets.delete',
'datalabeling.datasets.export',
'datalabeling.datasets.get',
'datalabeling.datasets.import',
'datalabeling.datasets.list',
'datalabeling.examples.get',
'datalabeling.examples.list',
'datalabeling.instructions.create',
'datalabeling.instructions.delete',
'datalabeling.instructions.get',
'datalabeling.instructions.list',
'datalabeling.operations.cancel',
'datalabeling.operations.get',
'datalabeling.operations.list',
'dataprep.projects.use',
'dataproc.agents.create',
'dataproc.agents.delete',
'dataproc.agents.get',
'dataproc.agents.list',
'dataproc.agents.update',
'dataproc.clusters.create',
'dataproc.clusters.delete',
'dataproc.clusters.get',
'dataproc.clusters.getIamPolicy',
'dataproc.clusters.list',
'dataproc.clusters.setIamPolicy',
'dataproc.clusters.update',
'dataproc.clusters.use',
'dataproc.jobs.cancel',
'dataproc.jobs.create',
'dataproc.jobs.delete',
'dataproc.jobs.get',
'dataproc.jobs.getIamPolicy',
'dataproc.jobs.list',
'dataproc.jobs.setIamPolicy',
'dataproc.jobs.update',
'dataproc.operations.cancel',
'dataproc.operations.delete',
'dataproc.operations.get',
'dataproc.operations.getIamPolicy',
'dataproc.operations.list',
'dataproc.operations.setIamPolicy',
'dataproc.tasks.lease',
'dataproc.tasks.listInvalidatedLeases',
'dataproc.tasks.reportStatus',
'dataproc.workflowTemplates.create',
'dataproc.workflowTemplates.delete',
'dataproc.workflowTemplates.get',
'dataproc.workflowTemplates.getIamPolicy',
'dataproc.workflowTemplates.instantiate',
'dataproc.workflowTemplates.instantiateInline',
'dataproc.workflowTemplates.list',
'dataproc.workflowTemplates.setIamPolicy',
'dataproc.workflowTemplates.update',
'datastore.databases.create',
'datastore.databases.delete',
'datastore.databases.export',
'datastore.databases.get',
'datastore.databases.getIamPolicy',
'datastore.databases.import',
'datastore.databases.list',
'datastore.databases.setIamPolicy',
'datastore.databases.update',
'datastore.entities.allocateIds',
'datastore.entities.create',
'datastore.entities.delete',
'datastore.entities.get',
'datastore.entities.list',
'datastore.entities.update',
'datastore.indexes.create',
'datastore.indexes.delete',
'datastore.indexes.get',
'datastore.indexes.list',
'datastore.indexes.update',
'datastore.locations.get',
'datastore.locations.list',
'datastore.namespaces.get',
'datastore.namespaces.getIamPolicy',
'datastore.namespaces.list',
'datastore.namespaces.setIamPolicy',
'datastore.operations.cancel',
'datastore.operations.delete',
'datastore.operations.get',
'datastore.operations.list',
'datastore.statistics.get',
'datastore.statistics.list',
'deploymentmanager.compositeTypes.create',
'deploymentmanager.compositeTypes.delete',
'deploymentmanager.compositeTypes.get',
'deploymentmanager.compositeTypes.list',
'deploymentmanager.compositeTypes.update',
'deploymentmanager.deployments.cancelPreview',
'deploymentmanager.deployments.create',
'deploymentmanager.deployments.delete',
'deploymentmanager.deployments.get',
'deploymentmanager.deployments.getIamPolicy',
'deploymentmanager.deployments.list',
'deploymentmanager.deployments.setIamPolicy',
'deploymentmanager.deployments.stop',
'deploymentmanager.deployments.update',
'deploymentmanager.manifests.get',
'deploymentmanager.manifests.list',
'deploymentmanager.operations.get',
'deploymentmanager.operations.list',
'deploymentmanager.resources.get',
'deploymentmanager.resources.list',
'deploymentmanager.typeProviders.create',
'deploymentmanager.typeProviders.delete',
'deploymentmanager.typeProviders.get',
'deploymentmanager.typeProviders.getType',
'deploymentmanager.typeProviders.list',
'deploymentmanager.typeProviders.listTypes',
'deploymentmanager.typeProviders.update',
'deploymentmanager.types.create',
'deploymentmanager.types.delete',
'deploymentmanager.types.get',
'deploymentmanager.types.list',
'deploymentmanager.types.update',
'dialogflow.agents.create',
'dialogflow.agents.delete',
'dialogflow.agents.export',
'dialogflow.agents.get',
'dialogflow.agents.import',
'dialogflow.agents.restore',
'dialogflow.agents.search',
'dialogflow.agents.train',
'dialogflow.agents.update',
'dialogflow.contexts.create',
'dialogflow.contexts.delete',
'dialogflow.contexts.get',
'dialogflow.contexts.list',
'dialogflow.contexts.update',
'dialogflow.entityTypes.create',
'dialogflow.entityTypes.createEntity',
'dialogflow.entityTypes.delete',
'dialogflow.entityTypes.deleteEntity',
'dialogflow.entityTypes.get',
'dialogflow.entityTypes.list',
'dialogflow.entityTypes.update',
'dialogflow.entityTypes.updateEntity',
'dialogflow.intents.create',
'dialogflow.intents.delete',
'dialogflow.intents.get',
'dialogflow.intents.list',
'dialogflow.intents.update',
'dialogflow.operations.get',
'dialogflow.sessionEntityTypes.create',
'dialogflow.sessionEntityTypes.delete',
'dialogflow.sessionEntityTypes.get',
'dialogflow.sessionEntityTypes.list',
'dialogflow.sessionEntityTypes.update',
'dialogflow.sessions.detectIntent',
'dialogflow.sessions.streamingDetectIntent',
'dlp.analyzeRiskTemplates.create',
'dlp.analyzeRiskTemplates.delete',
'dlp.analyzeRiskTemplates.get',
'dlp.analyzeRiskTemplates.list',
'dlp.analyzeRiskTemplates.update',
'dlp.deidentifyTemplates.create',
'dlp.deidentifyTemplates.delete',
'dlp.deidentifyTemplates.get',
'dlp.deidentifyTemplates.list',
'dlp.deidentifyTemplates.update',
'dlp.inspectTemplates.create',
'dlp.inspectTemplates.delete',
'dlp.inspectTemplates.get',
'dlp.inspectTemplates.list',
'dlp.inspectTemplates.update',
'dlp.jobTriggers.create',
'dlp.jobTriggers.delete',
'dlp.jobTriggers.get',
'dlp.jobTriggers.list',
'dlp.jobTriggers.update',
'dlp.jobs.cancel',
'dlp.jobs.create',
'dlp.jobs.delete',
'dlp.jobs.get',
'dlp.jobs.list',
'dlp.kms.encrypt',
'dlp.storedInfoTypes.create',
'dlp.storedInfoTypes.delete',
'dlp.storedInfoTypes.get',
'dlp.storedInfoTypes.list',
'dlp.storedInfoTypes.update',
'dns.changes.create',
'dns.changes.get',
'dns.changes.list',
'dns.dnsKeys.get',
'dns.dnsKeys.list',
'dns.managedZoneOperations.get',
'dns.managedZoneOperations.list',
'dns.managedZones.create',
'dns.managedZones.delete',
'dns.managedZones.get',
'dns.managedZones.list',
'dns.managedZones.update',
'dns.networks.bindPrivateDNSPolicy',
'dns.networks.bindPrivateDNSZone',
'dns.networks.targetWithPeeringZone',
'dns.policies.create',
'dns.policies.delete',
'dns.policies.get',
'dns.policies.getIamPolicy',
'dns.policies.list',
'dns.policies.setIamPolicy',
'dns.policies.update',
'dns.projects.get',
'dns.resourceRecordSets.create',
'dns.resourceRecordSets.delete',
'dns.resourceRecordSets.list',
'dns.resourceRecordSets.update',
'endpoints.portals.attachCustomDomain',
'endpoints.portals.detachCustomDomain',
'endpoints.portals.listCustomDomains',
'endpoints.portals.update',
'errorreporting.applications.list',
'errorreporting.errorEvents.create',
'errorreporting.errorEvents.delete',
'errorreporting.errorEvents.list',
'errorreporting.groupMetadata.get',
'errorreporting.groupMetadata.update',
'errorreporting.groups.list',
'file.instances.create',
'file.instances.delete',
'file.instances.get',
'file.instances.list',
'file.instances.restore',
'file.instances.update',
'file.locations.get',
'file.locations.list',
'file.operations.cancel',
'file.operations.delete',
'file.operations.get',
'file.operations.list',
'file.snapshots.create',
'file.snapshots.delete',
'file.snapshots.get',
'file.snapshots.list',
'file.snapshots.update',
'firebase.billingPlans.get',
'firebase.billingPlans.update',
'firebase.clients.create',
'firebase.clients.delete',
'firebase.clients.get',
'firebase.links.create',
'firebase.links.delete',
'firebase.links.list',
'firebase.links.update',
'firebase.projects.delete',
'firebase.projects.get',
'firebase.projects.update',
'firebaseabt.experimentresults.get',
'firebaseabt.experiments.create',
'firebaseabt.experiments.delete',
'firebaseabt.experiments.get',
'firebaseabt.experiments.list',
'firebaseabt.experiments.update',
'firebaseabt.projectmetadata.get',
'firebaseanalytics.resources.googleAnalyticsEdit',
'firebaseanalytics.resources.googleAnalyticsReadAndAnalyze',
'firebaseauth.configs.create',
'firebaseauth.configs.get',
'firebaseauth.configs.getHashConfig',
'firebaseauth.configs.update',
'firebaseauth.users.create',
'firebaseauth.users.createSession',
'firebaseauth.users.delete',
'firebaseauth.users.get',
'firebaseauth.users.sendEmail',
'firebaseauth.users.update',
'firebasecrash.issues.update',
'firebasecrash.reports.get',
'firebasecrashlytics.config.get',
'firebasecrashlytics.config.update',
'firebasecrashlytics.data.get',
'firebasecrashlytics.issues.get',
'firebasecrashlytics.issues.list',
'firebasecrashlytics.issues.update',
'firebasecrashlytics.sessions.get',
'firebasedatabase.instances.create',
'firebasedatabase.instances.get',
'firebasedatabase.instances.list',
'firebasedatabase.instances.update',
'firebasedynamiclinks.destinations.list',
'firebasedynamiclinks.destinations.update',
'firebasedynamiclinks.domains.create',
'firebasedynamiclinks.domains.delete',
'firebasedynamiclinks.domains.get',
'firebasedynamiclinks.domains.list',
'firebasedynamiclinks.domains.update',
'firebasedynamiclinks.links.create',
'firebasedynamiclinks.links.get',
'firebasedynamiclinks.links.list',
'firebasedynamiclinks.links.update',
'firebasedynamiclinks.stats.get',
'firebaseextensions.configs.create',
'firebaseextensions.configs.delete',
'firebaseextensions.configs.list',
'firebaseextensions.configs.update',
'firebasehosting.sites.create',
'firebasehosting.sites.delete',
'firebasehosting.sites.get',
'firebasehosting.sites.list',
'firebasehosting.sites.update',
'firebaseinappmessaging.campaigns.create',
'firebaseinappmessaging.campaigns.delete',
'firebaseinappmessaging.campaigns.get',
'firebaseinappmessaging.campaigns.list',
'firebaseinappmessaging.campaigns.update',
'firebaseml.compressionjobs.create',
'firebaseml.compressionjobs.delete',
'firebaseml.compressionjobs.get',
'firebaseml.compressionjobs.list',
'firebaseml.compressionjobs.start',
'firebaseml.compressionjobs.update',
'firebaseml.models.create',
'firebaseml.models.delete',
'firebaseml.models.get',
'firebaseml.models.list',
'firebaseml.modelversions.create',
'firebaseml.modelversions.get',
'firebaseml.modelversions.list',
'firebaseml.modelversions.update',
'firebasenotifications.messages.create',
'firebasenotifications.messages.delete',
'firebasenotifications.messages.get',
'firebasenotifications.messages.list',
'firebasenotifications.messages.update',
'firebaseperformance.config.create',
'firebaseperformance.config.delete',
'firebaseperformance.config.update',
'firebaseperformance.data.get',
'firebasepredictions.predictions.create',
'firebasepredictions.predictions.delete',
'firebasepredictions.predictions.list',
'firebasepredictions.predictions.update',
'firebaserules.releases.create',
'firebaserules.releases.delete',
'firebaserules.releases.get',
'firebaserules.releases.getExecutable',
'firebaserules.releases.list',
'firebaserules.releases.update',
'firebaserules.rulesets.create',
'firebaserules.rulesets.delete',
'firebaserules.rulesets.get',
'firebaserules.rulesets.list',
'firebaserules.rulesets.test',
'genomics.datasets.create',
'genomics.datasets.delete',
'genomics.datasets.get',
'genomics.datasets.getIamPolicy',
'genomics.datasets.list',
'genomics.datasets.setIamPolicy',
'genomics.datasets.update',
'genomics.operations.cancel',
'genomics.operations.create',
'genomics.operations.get',
'genomics.operations.list',
'healthcare.datasets.create',
'healthcare.datasets.deidentify',
'healthcare.datasets.delete',
'healthcare.datasets.get',
'healthcare.datasets.getIamPolicy',
'healthcare.datasets.list',
'healthcare.datasets.setIamPolicy',
'healthcare.datasets.update',
'healthcare.dicomStores.create',
'healthcare.dicomStores.delete',
'healthcare.dicomStores.dicomWebDelete',
'healthcare.dicomStores.dicomWebRead',
'healthcare.dicomStores.dicomWebWrite',
'healthcare.dicomStores.export',
'healthcare.dicomStores.get',
'healthcare.dicomStores.getIamPolicy',
'healthcare.dicomStores.import',
'healthcare.dicomStores.list',
'healthcare.dicomStores.setIamPolicy',
'healthcare.dicomStores.update',
'healthcare.fhirResources.create',
'healthcare.fhirResources.delete',
'healthcare.fhirResources.get',
'healthcare.fhirResources.patch',
'healthcare.fhirResources.purge',
'healthcare.fhirResources.update',
'healthcare.fhirStores.create',
'healthcare.fhirStores.delete',
'healthcare.fhirStores.export',
'healthcare.fhirStores.get',
'healthcare.fhirStores.getIamPolicy',
'healthcare.fhirStores.import',
'healthcare.fhirStores.list',
'healthcare.fhirStores.searchResources',
'healthcare.fhirStores.setIamPolicy',
'healthcare.fhirStores.update',
'healthcare.hl7V2Messages.create',
'healthcare.hl7V2Messages.delete',
'healthcare.hl7V2Messages.get',
'healthcare.hl7V2Messages.ingest',
'healthcare.hl7V2Messages.list',
'healthcare.hl7V2Messages.update',
'healthcare.hl7V2Stores.create',
'healthcare.hl7V2Stores.delete',
'healthcare.hl7V2Stores.get',
'healthcare.hl7V2Stores.getIamPolicy',
'healthcare.hl7V2Stores.list',
'healthcare.hl7V2Stores.setIamPolicy',
'healthcare.hl7V2Stores.update',
'healthcare.operations.cancel',
'healthcare.operations.get',
'healthcare.operations.list',
'iam.roles.create',
'iam.roles.delete',
'iam.roles.get',
'iam.roles.list',
'iam.roles.undelete',
'iam.roles.update',
'iam.serviceAccountKeys.create',
'iam.serviceAccountKeys.delete',
'iam.serviceAccountKeys.get',
'iam.serviceAccountKeys.list',
'iam.serviceAccounts.actAs',
'iam.serviceAccounts.create',
'iam.serviceAccounts.delete',
'iam.serviceAccounts.get',
'iam.serviceAccounts.getIamPolicy',
'iam.serviceAccounts.list',
'iam.serviceAccounts.setIamPolicy',
'iam.serviceAccounts.update',
'iap.tunnel.getIamPolicy',
'iap.tunnel.setIamPolicy',
'iap.tunnelInstances.accessViaIAP',
'iap.tunnelInstances.getIamPolicy',
'iap.tunnelInstances.setIamPolicy',
'iap.tunnelZones.getIamPolicy',
'iap.tunnelZones.setIamPolicy',
'iap.web.getIamPolicy',
'iap.web.setIamPolicy',
'iap.webServiceVersions.getIamPolicy',
'iap.webServiceVersions.setIamPolicy',
'iap.webServices.getIamPolicy',
'iap.webServices.setIamPolicy',
'iap.webTypes.getIamPolicy',
'iap.webTypes.setIamPolicy',
'logging.exclusions.create',
'logging.exclusions.delete',
'logging.exclusions.get',
'logging.exclusions.list',
'logging.exclusions.update',
'logging.logEntries.create',
'logging.logEntries.list',
'logging.logMetrics.create',
'logging.logMetrics.delete',
'logging.logMetrics.get',
'logging.logMetrics.list',
'logging.logMetrics.update',
'logging.logServiceIndexes.list',
'logging.logServices.list',
'logging.logs.delete',
'logging.logs.list',
'logging.privateLogEntries.list',
'logging.sinks.create',
'logging.sinks.delete',
'logging.sinks.get',
'logging.sinks.list',
'logging.sinks.update',
'logging.usage.get',
'managedidentities.domains.attachTrust',
'managedidentities.domains.create',
'managedidentities.domains.delete',
'managedidentities.domains.detachTrust',
'managedidentities.domains.get',
'managedidentities.domains.getIamPolicy',
'managedidentities.domains.list',
'managedidentities.domains.reconfigureTrust',
'managedidentities.domains.resetpassword',
'managedidentities.domains.setIamPolicy',
'managedidentities.domains.update',
'managedidentities.domains.validateTrust',
'managedidentities.locations.get',
'managedidentities.locations.list',
'managedidentities.operations.cancel',
'managedidentities.operations.delete',
'managedidentities.operations.get',
'managedidentities.operations.list',
'ml.jobs.cancel',
'ml.jobs.create',
'ml.jobs.get',
'ml.jobs.getIamPolicy',
'ml.jobs.list',
'ml.jobs.setIamPolicy',
'ml.jobs.update',
'ml.locations.get',
'ml.locations.list',
'ml.models.create',
'ml.models.delete',
'ml.models.get',
'ml.models.getIamPolicy',
'ml.models.list',
'ml.models.predict',
'ml.models.setIamPolicy',
'ml.models.update',
'ml.operations.cancel',
'ml.operations.get',
'ml.operations.list',
'ml.projects.getConfig',
'ml.versions.create',
'ml.versions.delete',
'ml.versions.get',
'ml.versions.list',
'ml.versions.predict',
'ml.versions.update',
'monitoring.alertPolicies.create',
'monitoring.alertPolicies.delete',
'monitoring.alertPolicies.get',
'monitoring.alertPolicies.list',
'monitoring.alertPolicies.update',
'monitoring.dashboards.create',
'monitoring.dashboards.delete',
'monitoring.dashboards.get',
'monitoring.dashboards.list',
'monitoring.dashboards.update',
'monitoring.groups.create',
'monitoring.groups.delete',
'monitoring.groups.get',
'monitoring.groups.list',
'monitoring.groups.update',
'monitoring.metricDescriptors.create',
'monitoring.metricDescriptors.delete',
'monitoring.metricDescriptors.get',
'monitoring.metricDescriptors.list',
'monitoring.monitoredResourceDescriptors.get',
'monitoring.monitoredResourceDescriptors.list',
'monitoring.notificationChannelDescriptors.get',
'monitoring.notificationChannelDescriptors.list',
'monitoring.notificationChannels.create',
'monitoring.notificationChannels.delete',
'monitoring.notificationChannels.get',
'monitoring.notificationChannels.getVerificationCode',
'monitoring.notificationChannels.list',
'monitoring.notificationChannels.sendVerificationCode',
'monitoring.notificationChannels.update',
'monitoring.notificationChannels.verify',
'monitoring.publicWidgets.create',
'monitoring.publicWidgets.delete',
'monitoring.publicWidgets.get',
'monitoring.publicWidgets.list',
'monitoring.publicWidgets.update',
'monitoring.timeSeries.create',
'monitoring.timeSeries.list',
'monitoring.uptimeCheckConfigs.create',
'monitoring.uptimeCheckConfigs.delete',
'monitoring.uptimeCheckConfigs.get',
'monitoring.uptimeCheckConfigs.list',
'monitoring.uptimeCheckConfigs.update',
'orgpolicy.policy.get',
'proximitybeacon.attachments.create',
'proximitybeacon.attachments.delete',
'proximitybeacon.attachments.get',
'proximitybeacon.attachments.list',
'proximitybeacon.beacons.attach',
'proximitybeacon.beacons.create',
'proximitybeacon.beacons.get',
'proximitybeacon.beacons.getIamPolicy',
'proximitybeacon.beacons.list',
'proximitybeacon.beacons.setIamPolicy',
'proximitybeacon.beacons.update',
'proximitybeacon.namespaces.create',
'proximitybeacon.namespaces.delete',
'proximitybeacon.namespaces.get',
'proximitybeacon.namespaces.getIamPolicy',
'proximitybeacon.namespaces.list',
'proximitybeacon.namespaces.setIamPolicy',
'proximitybeacon.namespaces.update',
'pubsub.snapshots.create',
'pubsub.snapshots.delete',
'pubsub.snapshots.get',
'pubsub.snapshots.getIamPolicy',
'pubsub.snapshots.list',
'pubsub.snapshots.seek',
'pubsub.snapshots.setIamPolicy',
'pubsub.snapshots.update',
'pubsub.subscriptions.consume',
'pubsub.subscriptions.create',
'pubsub.subscriptions.delete',
'pubsub.subscriptions.get',
'pubsub.subscriptions.getIamPolicy',
'pubsub.subscriptions.list',
'pubsub.subscriptions.setIamPolicy',
'pubsub.subscriptions.update',
'pubsub.topics.attachSubscription',
'pubsub.topics.create',
'pubsub.topics.delete',
'pubsub.topics.get',
'pubsub.topics.getIamPolicy',
'pubsub.topics.list',
'pubsub.topics.publish',
'pubsub.topics.setIamPolicy',
'pubsub.topics.update',
'pubsub.topics.updateTag',
'redis.instances.create',
'redis.instances.delete',
'redis.instances.export',
'redis.instances.get',
'redis.instances.import',
'redis.instances.list',
'redis.instances.update',
'redis.locations.get',
'redis.locations.list',
'redis.operations.cancel',
'redis.operations.delete',
'redis.operations.get',
'redis.operations.list',
'remotebuildexecution.actions.create',
'remotebuildexecution.actions.get',
'remotebuildexecution.actions.update',
'remotebuildexecution.blobs.create',
'remotebuildexecution.blobs.get',
'remotebuildexecution.botsessions.create',
'remotebuildexecution.botsessions.update',
'remotebuildexecution.instances.create',
'remotebuildexecution.instances.delete',
'remotebuildexecution.instances.get',
'remotebuildexecution.instances.list',
'remotebuildexecution.logstreams.create',
'remotebuildexecution.logstreams.get',
'remotebuildexecution.logstreams.update',
'remotebuildexecution.workerpools.create',
'remotebuildexecution.workerpools.delete',
'remotebuildexecution.workerpools.get',
'remotebuildexecution.workerpools.list',
'remotebuildexecution.workerpools.update',
'resourcemanager.projects.createBillingAssignment',
'resourcemanager.projects.delete',
'resourcemanager.projects.deleteBillingAssignment',
'resourcemanager.projects.get',
'resourcemanager.projects.getIamPolicy',
'resourcemanager.projects.setIamPolicy',
'resourcemanager.projects.undelete',
'resourcemanager.projects.update',
'resourcemanager.projects.updateLiens',
'run.configurations.get',
'run.configurations.list',
'run.locations.list',
'run.revisions.delete',
'run.revisions.get',
'run.revisions.list',
'run.routes.get',
'run.routes.invoke',
'run.routes.list',
'run.services.create',
'run.services.delete',
'run.services.get',
'run.services.getIamPolicy',
'run.services.list',
'run.services.setIamPolicy',
'run.services.update',
'runtimeconfig.configs.create',
'runtimeconfig.configs.delete',
'runtimeconfig.configs.get',
'runtimeconfig.configs.getIamPolicy',
'runtimeconfig.configs.list',
'runtimeconfig.configs.setIamPolicy',
'runtimeconfig.configs.update',
'runtimeconfig.operations.get',
'runtimeconfig.operations.list',
'runtimeconfig.variables.create',
'runtimeconfig.variables.delete',
'runtimeconfig.variables.get',
'runtimeconfig.variables.getIamPolicy',
'runtimeconfig.variables.list',
'runtimeconfig.variables.setIamPolicy',
'runtimeconfig.variables.update',
'runtimeconfig.variables.watch',
'runtimeconfig.waiters.create',
'runtimeconfig.waiters.delete',
'runtimeconfig.waiters.get',
'runtimeconfig.waiters.getIamPolicy',
'runtimeconfig.waiters.list',
'runtimeconfig.waiters.setIamPolicy',
'runtimeconfig.waiters.update',
'servicebroker.bindingoperations.get',
'servicebroker.bindingoperations.list',
'servicebroker.bindings.create',
'servicebroker.bindings.delete',
'servicebroker.bindings.get',
'servicebroker.bindings.getIamPolicy',
'servicebroker.bindings.list',
'servicebroker.bindings.setIamPolicy',
'servicebroker.catalogs.create',
'servicebroker.catalogs.delete',
'servicebroker.catalogs.get',
'servicebroker.catalogs.getIamPolicy',
'servicebroker.catalogs.list',
'servicebroker.catalogs.setIamPolicy',
'servicebroker.catalogs.validate',
'servicebroker.instanceoperations.get',
'servicebroker.instanceoperations.list',
'servicebroker.instances.create',
'servicebroker.instances.delete',
'servicebroker.instances.get',
'servicebroker.instances.getIamPolicy',
'servicebroker.instances.list',
'servicebroker.instances.setIamPolicy',
'servicebroker.instances.update',
'serviceconsumermanagement.consumers.get',
'serviceconsumermanagement.quota.get',
'serviceconsumermanagement.quota.update',
'serviceconsumermanagement.tenancyu.addResource',
'serviceconsumermanagement.tenancyu.create',
'serviceconsumermanagement.tenancyu.delete',
'serviceconsumermanagement.tenancyu.list',
'serviceconsumermanagement.tenancyu.removeResource',
'servicemanagement.services.bind',
'servicemanagement.services.check',
'servicemanagement.services.create',
'servicemanagement.services.delete',
'servicemanagement.services.get',
'servicemanagement.services.getIamPolicy',
'servicemanagement.services.list',
'servicemanagement.services.quota',
'servicemanagement.services.report',
'servicemanagement.services.setIamPolicy',
'servicemanagement.services.update',
'servicenetworking.operations.cancel',
'servicenetworking.operations.delete',
'servicenetworking.operations.get',
'servicenetworking.operations.list',
'servicenetworking.services.addPeering',
'servicenetworking.services.addSubnetwork',
'servicenetworking.services.get',
'serviceusage.apiKeys.create',
'serviceusage.apiKeys.delete',
'serviceusage.apiKeys.get',
'serviceusage.apiKeys.getProjectForKey',
'serviceusage.apiKeys.list',
'serviceusage.apiKeys.regenerate',
'serviceusage.apiKeys.revert',
'serviceusage.apiKeys.update',
'serviceusage.operations.cancel',
'serviceusage.operations.delete',
'serviceusage.operations.get',
'serviceusage.operations.list',
'serviceusage.quotas.get',
'serviceusage.quotas.update',
'serviceusage.services.disable',
'serviceusage.services.enable',
'serviceusage.services.get',
'serviceusage.services.list',
'serviceusage.services.use',
'source.repos.create',
'source.repos.delete',
'source.repos.get',
'source.repos.getIamPolicy',
'source.repos.getProjectConfig',
'source.repos.list',
'source.repos.setIamPolicy',
'source.repos.update',
'source.repos.updateProjectConfig',
'source.repos.updateRepoConfig',
'spanner.databaseOperations.cancel',
'spanner.databaseOperations.delete',
'spanner.databaseOperations.get',
'spanner.databaseOperations.list',
'spanner.databases.beginOrRollbackReadWriteTransaction',
'spanner.databases.beginReadOnlyTransaction',
'spanner.databases.create',
'spanner.databases.drop',
'spanner.databases.get',
'spanner.databases.getDdl',
'spanner.databases.getIamPolicy',
'spanner.databases.list',
'spanner.databases.read',
'spanner.databases.select',
'spanner.databases.setIamPolicy',
'spanner.databases.update',
'spanner.databases.updateDdl',
'spanner.databases.write',
'spanner.instanceConfigs.get',
'spanner.instanceConfigs.list',
'spanner.instanceOperations.cancel',
'spanner.instanceOperations.delete',
'spanner.instanceOperations.get',
'spanner.instanceOperations.list',
'spanner.instances.create',
'spanner.instances.delete',
'spanner.instances.get',
'spanner.instances.getIamPolicy',
'spanner.instances.list',
'spanner.instances.setIamPolicy',
'spanner.instances.update',
'spanner.sessions.create',
'spanner.sessions.delete',
'spanner.sessions.get',
'spanner.sessions.list',
'stackdriver.projects.edit',
'stackdriver.projects.get',
'stackdriver.resourceMetadata.write',
'storage.buckets.create',
'storage.buckets.delete',
'storage.buckets.list',
'storage.objects.create',
'storage.objects.delete',
'storage.objects.get',
'storage.objects.getIamPolicy',
'storage.objects.list',
'storage.objects.setIamPolicy',
'storage.objects.update',
'storage.hmacKeys.create',
'storage.hmacKeys.delete',
'storage.hmacKeys.get',
'storage.hmacKeys.list',
'storage.hmacKeys.update',
'storagetransfer.jobs.create',
'storagetransfer.jobs.delete',
'storagetransfer.jobs.get',
'storagetransfer.jobs.list',
'storagetransfer.jobs.update',
'storagetransfer.operations.cancel',
'storagetransfer.operations.get',
'storagetransfer.operations.list',
'storagetransfer.operations.pause',
'storagetransfer.operations.resume',
'storagetransfer.projects.getServiceAccount',
'subscribewithgoogledeveloper.tools.get',
'threatdetection.detectorSettings.clear',
'threatdetection.detectorSettings.get',
'threatdetection.detectorSettings.update',
'tpu.acceleratortypes.get',
'tpu.acceleratortypes.list',
'tpu.locations.get',
'tpu.locations.list',
'tpu.nodes.create',
'tpu.nodes.delete',
'tpu.nodes.get',
'tpu.nodes.list',
'tpu.nodes.reimage',
'tpu.nodes.reset',
'tpu.nodes.start',
'tpu.nodes.stop',
'tpu.operations.get',
'tpu.operations.list',
'tpu.tensorflowversions.get',
'tpu.tensorflowversions.list',
'vpcaccess.connectors.create',
'vpcaccess.connectors.delete',
'vpcaccess.connectors.get',
'vpcaccess.connectors.list',
'vpcaccess.connectors.use',
'vpcaccess.locations.list',
'vpcaccess.operations.get',
'vpcaccess.operations.list'
] |
ALL_BLUE_MOUNTAINS_SERVICES = range(9833, 9848)
INBOUND_BLUE_MOUNTAINS_SERVICES = (9833, 9835, 9838, 9840, 9841, 9843, 9844,
9847)
YELLOW_LINE_SERVICES = [9901, 9903, 9904, 9906, 9908, 9909, 9911, 9964, 9965,
9966, 9967, 9968, 9969, 9972, 9973, 9974]
# 9847 has a hornsby to springwood service thrown in for good measure :-(
#INBOUND_BLUE_MOUNTAINS_SERVICES = (9833, 9835, 9838, 9840, 9841, 9843, 9844)
TEST_SERVICES = (9843,)
#SERVICE_LIST = YELLOW_LINE_SERVICES + ALL_BLUE_MOUNTAINS_SERVICES
#SERVICE_LIST = ALL_BLUE_MOUNTAINS_SERVICES
LITHGOW_TO_CENTRAL_ORIGINS = ("Lithgow Station",
"Mount Victoria Station",
"Katoomba Station",
"Springwood Station")
CENTRAL_TO_LITHGOW_ORIGINS = ("Central Station", "Hornsby Station",)
PENRITH_TO_HORNSBY_ORIGINS = ("Emu Plains Station",
"Penrith Station",
"Richmond Station",
"Blacktown Station",
"Quakers Hill Station")
HORNSBY_TO_PENRITH_ORIGINS = ("Berowra Station",
"Hornsby Station",
"Gordon Station",
"North Sydney Station",
"Wyong Station",
"Lindfield Station")
INTERCHANGE_LINE_NAME = "Dummy Interchange Line"
LINE_NAMES = ["Blue Mountains - Lithgow to Central",
"Blue Mountains - Central to Lithgow",
"Western Line - Penrif to Hornsby",
"Western Line - Hornsby to Penrif",
]
# List the stations that are on each line
# TODO: Generate this automatically?
INTERCHANGE_STATION_MAP = {
"Emu Plains Station": (1, 2, 3, 4),
"Penrith Station": (1, 2, 3, 4),
"Blacktown Station": (1, 2, 3, 4),
"Westmead Station": (1, 2, 3, 4),
"Parramatta Station": (1, 2, 3, 4),
"Granville Station": (1, 2, 3, 4),
"Lidcombe Station": (1, 2, 3, 4),
"Strathfield Station": (1, 2, 3, 4),
"Burwood Station": (3, 4),
"Redfern Station": (1, 2, 3, 4),
"Central Station": (1, 2, 3, 4),
"Town Hall Station": (3, 4),
"Wynyard Station": (3, 4),
"North Sydney Station": (3, 4)
}
|
study_name = 'mperf'
# Sampling frequency
SAMPLING_FREQ_RIP = 21.33
SAMPLING_FREQ_MOTIONSENSE_ACCEL = 25
SAMPLING_FREQ_MOTIONSENSE_GYRO = 25
# MACD (moving average convergence divergence) related threshold
FAST_MOVING_AVG_SIZE = 13
SLOW_MOVING_AVG_SIZE = 131
# FAST_MOVING_AVG_SIZE = 20
# SLOW_MOVING_AVG_SIZE = 205
# Hand orientation related threshold
MIN_ROLL = -20
MAX_ROLL = 65
MIN_PITCH = -125
MAX_PITCH = -40
# MotionSense sample range
MIN_MSHRV_ACCEL = -2.5
MAX_MSHRV_ACCEL = 2.5
MIN_MSHRV_GYRO = -250
MAX_MSHRV_GYRO = 250
# Puff label
PUFF_LABEL_RIGHT = 2
PUFF_LABEL_LEFT = 1
NO_PUFF = 0
# Input stream names required for puffmarker
MOTIONSENSE_HRV_ACCEL_LEFT_STREAMNAME = "ACCELEROMETER--org.md2k.motionsense--MOTION_SENSE_HRV--LEFT_WRIST"
MOTIONSENSE_HRV_GYRO_LEFT_STREAMNAME = "GYROSCOPE--org.md2k.motionsense--MOTION_SENSE_HRV--LEFT_WRIST"
MOTIONSENSE_HRV_ACCEL_RIGHT_STREAMNAME = "ACCELEROMETER--org.md2k.motionsense--MOTION_SENSE_HRV--RIGHT_WRIST"
MOTIONSENSE_HRV_GYRO_RIGHT_STREAMNAME = "GYROSCOPE--org.md2k.motionsense--MOTION_SENSE_HRV--RIGHT_WRIST"
PUFFMARKER_MODEL_FILENAME = 'puffmarker_wrist_randomforest.model'
# Outputs stream names
PUFFMARKER_WRIST_SMOKING_EPISODE = "org.md2k.data_analysis.feature.puffmarker.smoking_episode"
PUFFMARKER_WRIST_SMOKING_PUFF = "org.md2k.data_analysis.feature.puffmarker.smoking_puff"
# smoking episode
MINIMUM_TIME_DIFFERENCE_FIRST_AND_LAST_PUFFS = 7 * 60 # seconds
MINIMUM_INTER_PUFF_DURATION = 5 # seconds
MINIMUM_PUFFS_IN_EPISODE = 4
LEFT_WRIST = 'leftwrist'
RIGHT_WRIST = 'rightwrist'
# NU ground truth
label_sd = 1 # smoking dominant hand
label_fd = 2 # feeding dominant hand
label_dd = 3 # drinking dominant hand
label_cd = 4 # confounding dominant hand
text_sd = 'sd' # smoking dominant hand
text_fd = 'fd' # feeding dominant hand
text_dd = 'dd' # drinking dominant hand
text_cd = 'cd' # confounding dominant hand
|
class Printer:
"""
Class for printing string with specific color
Color list: blue, green, cyan, red, white
"""
def __init__(self):
self.__BLUE = '\033[1;34;48m'
self.__GREEN = '\033[1;32;48m'
self.__CYAN = '\033[1;36;48m'
self.__RED = '\033[1;31;48m'
self.__TERM = '\033[1;37;0m'
def print_c(self, text, color):
print(color + text + self.__TERM, end='')
def blue(self, text):
self.print_c(text, self.__BLUE)
def green(self, text):
self.print_c(text, self.__GREEN)
def cyan(self, text):
self.print_c(text, self.__CYAN)
def red(self, text):
self.print_c(text, self.__RED)
def white(self, text):
print(text, end='')
|
x = y = 1
print(x,y)
x = y = z = 1
print(x,y,z)
|
"""Custom exceptions for the application"""
class InvalidConfigException(Exception):
"""Exception that is thrown if the configuration file is not valid"""
def __init__(self):
super().__init__('Configuration file is not valid. \
Please review the docs and check your config file.')
|
#-*- coding: utf-8 -*-
# Let's start with lists
spam = ["eggs", 7.12345] # This is a list, a comma-separated sequence of values between square brackets
print(spam)
print(type(spam))
eggs = [spam,
1.2345,
"fooo"] # No problem with multi-line declaration
print(eggs)
#===============================================================================
# - You can mix all kind of types inside a list
# - Even other lists, of course
#===============================================================================
spam = ["eggs"] # Actually just square brackets is enough to declare a list
print(spam)
spam = [] # And this is an empty list
print(spam)
# What about tuples?
spam = ("eggs", 7.12345) # This is a tuple, a comma-separated sequence of values between parentheses
print(spam)
print(type(spam))
eggs = (spam,
1.2345,
"fooo") # Again, no problem with multiline declaration
print(eggs)
#===============================================================================
# - Again, you can mix all kind of types inside a tuple
#===============================================================================
#===============================================================================
# Python ordered sequence types (arrays in other languages, not linked lists):
# - They are arrays, not linked lists, so they have constant O(1) time for index access
# - list:
# - Comma-separated with square brackets
# - Mutable
# - tuple:
# - Comma-separated with parentheses
# - Parentheses only required in empty tuple
# - Immutable
# - Slightly better traversing performance than lists
# - str and unicode:
# - One or three single or double quotes
# - They have special methods
# - Immutable
#===============================================================================
# Let's a play a bit with sequences operations
spam = ["1st", "2nd", "3rd", "4th", "5th"]
eggs = (spam, 1.2345, "fooo")
print("eggs" in spam)
print("fooo" not in eggs)
print("am" in "spam") # Check items membership
print("spam".find("am")) # NOT recommended for membership
print(spam.count("1st")) # Count repetitions (slow)
print(spam + spam)
print(eggs + eggs)
print("spam" + "eggs") # Concatenation. must be of the same type
print(spam * 5)
print(eggs * 3)
print("spam" * 3) # Also "multiply" creating copies concatenated
print(len(spam))
print(len(eggs))
print(len("spam")) # Obtain its length
# Let's see how indexing works
spam = ["1st", "2nd", "3rd", "4th", "5th"]
eggs = (spam, 1.2345, "fooo")
print(spam[0])
print(eggs[1])
print("spam"[2]) # Access by index, starting from 0 to length - 1, may raise an exception
print(spam[-1])
print(eggs[-2])
print("spam"[-3]) # Access by index, even negative
# Let's see how slicing works
spam = ("1st", "2nd", "3rd", "4th", "5th")
print(spam[1:3]) # Use colon and a second index for slicing
print(type(spam[1:4])) # It generates a brand new object (shallow copy)
spam = ["1st", "2nd", "3rd", "4th", "5th"]
print(spam[:3])
print(spam[1:7])
print(spam[-2:7]) # Negative indexes are also valid
print(spam[3:-2])
print(spam[1:7:2]) # Use another colon and a third int to specify the step
print(spam[::2])
#===============================================================================
# - In slicing Python is able to cleverly set the indexes
# - No IndexError when slicing index is out of range
# - First (0) and last (-1) index is automatically filled
# - Step is 1 by default and does not need to be multiple of sequence length
#===============================================================================
# Let's try something different
spam = ["1st", "2nd", "3rd", "4th", "5th"]
spam[3] = 1
print(spam)
#===============================================================================
# - lists mutable sequences, so they allow in place modifications
#===============================================================================
# Let's see more modification operations
spam = [1, 2, 3, 4, 5]
eggs = ['a', 'b', 'c']
spam[1:3] = eggs
print(spam) # We can use slicing here too!
spam = [1, 2, 3, 4, 5, 6, 7, 8]
eggs = ['a', 'b', 'c']
spam[1:7:2] = eggs
print(spam) # We can use even slicing with step!!
spam = [1, 2, 3, 4, 5]
spam.append("a")
print(spam) # We can append an element at the end (amortized O(1))
spam = [1, 2, 3, 4, 5]
eggs = ['a', 'b', 'c']
spam.extend(eggs)
print(spam) # We can append another sequence elements at the end (amortized O(1))
spam = [1, 2, 3, 4, 5]
eggs = ['a', 'b', 'c']
spam.append(eggs)
print(spam) # Take care to not mix both commands!!
spam = [1, 2, 3, 4, 5]
spam.insert(3, "a")
print(spam) # The same like spam[3:3] = ["a"]
spam = [1, 2, 3, 4, 5]
print(spam.pop())
print(spam) # Pop (remove and return) last item
print(spam.pop(2))
print(spam) # Pop (remove and return) given item
spam = [1, 2, 3, 4, 5]
del spam[3]
print(spam) # Delete an item
#===============================================================================
# SOURCES:
# - http://docs.python.org/2/tutorial/introduction.html#lists
# - http://docs.python.org/2/tutorial/datastructures.html#tuples-and-sequences
# - http://docs.python.org/2/tutorial/datastructures.html#sets
#===============================================================================
|
""" some constants
"""
# pylint: disable=invalid-name
version_info = (0, 2, 0, "dev")
__version__ = ".".join(map(str, version_info))
module_name = "@deathbeds/wxyz-yaml"
module_version = "^0.2.0"
|
#define a dictionary data structure
#dictionaries have key:valyue pairs for the elements
example_dict = {
"class" : "ASTR 119",
"prof" : "Brant",
"awesomeness" : 10
}
print ("The type of example_dict is ", type(example_dict))
#get value via key
course = example_dict["class"]
print(course)
example_dict["awesomeness"] += 1
#print the dictionary
print(example_dict)
#print dictionary element by element
for x in example_dict.key():
print(x, example_dict[x]) |
class BaseLoadOn(Enum,IComparable,IFormattable,IConvertible):
"""
An enumerated type listing all the possible power load use types for a space object.
enum BaseLoadOn,values: kNoOfBaseLoadOnMethods (3),kUseActualLoad (2),kUseCalculatedLoad (1),kUseDefaultLoad (-1),kUseEnteredLoad (0)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
def __format__(self,*args):
""" __format__(formattable: IFormattable,format: str) -> str """
pass
def __ge__(self,*args):
pass
def __gt__(self,*args):
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __le__(self,*args):
pass
def __lt__(self,*args):
pass
def __ne__(self,*args):
pass
def __reduce_ex__(self,*args):
pass
def __str__(self,*args):
pass
kNoOfBaseLoadOnMethods=None
kUseActualLoad=None
kUseCalculatedLoad=None
kUseDefaultLoad=None
kUseEnteredLoad=None
value__=None
|
## @ GpioDataConfig.py
# This is a Gpio config script for Slim Bootloader
#
# Copyright (c) 2020, Intel Corporation. All rights reserved. <BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
#
# The index for a group has to match implementation
# in a platform specific Gpio library.
#
grp_info_lp = {
# Grp Index
'GPP_B' : [ 0x0],
'GPP_T' : [ 0x1],
'GPP_A' : [ 0x2],
'GPP_R' : [ 0x3],
'GPP_S' : [ 0x5],
'GPP_H' : [ 0x6],
'GPP_D' : [ 0x7],
'GPP_U' : [ 0x8],
'GPP_C' : [ 0xA],
'GPP_F' : [ 0xB],
'GPP_E' : [ 0xC],
}
grp_info_h = {
# Grp Index
'GPP_A' : [ 0x1],
'GPP_R' : [ 0x2],
'GPP_B' : [ 0x3],
'GPP_D' : [ 0x4],
'GPP_C' : [ 0x5],
'GPP_S' : [ 0x6],
'GPP_G' : [ 0x7],
'GPP_E' : [ 0x9],
'GPP_F' : [ 0xA],
'GPP_H' : [ 0xB],
'GPP_K' : [ 0xC],
'GPP_J' : [ 0xD],
'GPP_I' : [ 0xE],
}
def get_grp_info(pch_series):
if pch_series not in ['lp', 'h']:
raise Exception ('Invalid pch series passed')
else:
if pch_series == 'lp':
return grp_info_lp
elif pch_series == 'h':
return grp_info_h
def rxraw_override_cfg():
return False
def vir_to_phy_grp():
return False
def plat_name():
return 'tgl'
|
class Solution:
def flipAndInvertImage(self, A: [[int]]) -> [[int]]:
for row in A :
left, right = 0 , len(row) -1
while left < right :
if row[left] == row[right] :
row[left] ^= 1
row[right] ^= 1
left += 1
right -= 1
if left == right :
row[left] ^= 1
return A
if __name__ == "__main__" :
s = Solution()
a1 = [[1,1,0],[1,0,1],[0,0,0]]
a2 = s.flipAndInvertImage(a1)
print(a2)
|
def read_input():
with open("input.txt", "r") as file:
d = [c[2:].split("..") for c in file.read()[13:].split(", ")]
return [int(i) for s in d for i in s]
def bruteforce(y_v, x_v, b):
x,y = 0,0
while True:
x+=x_v
y+=y_v
if b[0] <= x <= b[1] and b[2] <= y <= b[3]:
return 1
elif x > b[1] or y < b[2]:
return 0
x_v -= 1 if x_v > 0 else 0
y_v -= 1
def main():
data = read_input()
print(f"Part 1 {sum([y for y in range(-data[2])])}")
p = 0
for y_v in range(data[2], -data[2]+1):
for x_v in range(data[1]+1):
p+=bruteforce(y_v, x_v, data)
print(f"Part 2 {p}")
if __name__ == "__main__":
main() |
#!/usr/bin/python
# Filename: ex_global.py
x = 50
def func():
global x
print('x is ', x)
x = 2
print('Changed local x to ', x)
func()
print('Value of x is ', x)
|
###############################################################################################
# 遍历一遍,可以叫做双指针,分别指向读和写的位置
###########
# 时间复杂度:O(n)
# 空间复杂度:O(1)
###############################################################################################
class Solution:
def compress(self, chars: List[str]) -> int:
idx = 0
i, len_ = 0, len(chars)
while i < len_:
num, ch = 1, chars[i]
while i + 1 < len_ and chars[i+1] == ch:
num += 1
i += 1
if num > 1:
chars[idx] = ch
idx += 1
if num < 10:
chars[idx] = str(num)
idx += 1
else:
for per in str(num):
chars[idx] = per
idx += 1
else:
chars[idx] = ch
idx += 1
i += 1
return idx |
USAGE_MSG = """
Usage: golem
golem run <project> <test|suite|dir> [-b -t -e]
golem gui [-p]
golem createproject <project>
golem createtest <project> <test>
golem createsuite <project> <suite>
golem createuser <username> <password> [-a -p -r]
Usage: golem run
Run tests or suites
positional arguments:
projects name of the project
test|suite|dir name of a single test, a suite or a
directory of tests.
optional arguments:
-b, --browsers a list of browsers
-t, --threads amount of threads, default is 1
-e, --environments a list of environments
Usage: golem gui
Start the Golem GUI module
optional arguments:
-p, --port which port to use, default is 5000
Type: golem -h <command> for more help
"""
RUN_USAGE_MSG = """
Usage: golem run <project> <test|suite|dir> [-b|--browsers]
[-t|--threads] [-e|--environments]
Run tests, suites or entire test directories
positional arguments:
project name of the project
test|suite|dir name of a single test, a suite or a
directory of tests.
optional arguments:
-b, --browsers a list of browsers
-t, --threads amount of threads, default is 1
-e, --environments a list of environments
"""
GUI_USAGE_MSG = """
Usage: golem gui [-p|--port]
Start the Golem GUI module
optional arguments:
-p, --port which port to use, default is 5000
"""
CREATEPROJECT_USAGE_MSG = """
Usage: golem createproject <project>
Create a new project
positional arguments:
project project name
"""
CREATETEST_USAGE_MSG = """
Usage: golem createtest <project> <test>
Create a new test inside a project
positional arguments:
project an existing project name
test the name of the new test. Use dots
to create inside sub-folders.
"""
CREATESUITE_USAGE_MSG = """
Usage: golem createsuite <project> <suite>
Create a new test suite inside a project
positional arguments:
project an existing project name
suite the name of the new suite. Use dots
to create inside sub-folders.
"""
CREATEUSER_USAGE_MSG = """
Usage: golem createuser <username> <password> [-a|--admin]
[-p|--projects] [-r|--reports]
Create a new user
positional arguments:
username the username of the user
password the password of the user
optional arguments:
-a, --admin make the user admin. Admin users
have access to all projects.
-p, --projects a list of projects to give the user
access
-r, --reports a list of projects to give the user
access to the reports
"""
ADMIN_USAGE_MSG = """
Usage: golem-admin
golem-admin createdirectory <directory-name>
Create a new directory with the structure and files
required for golem projects.
"""
|
class RUNLOG:
class STATUS:
SUCCESS = "SUCCESS"
PENDING = "PENDING"
RUNNING = "RUNNING"
FAILURE = "FAILURE"
WARNING = "WARNING"
ERROR = "ERROR"
APPROVAL = "APPROVAL"
APPROVAL_FAILED = "APPROVAL_FAILED"
ABORTED = "ABORTED"
ABORTING = "ABORTING"
SYS_FAILURE = "SYS_FAILURE"
SYS_ERROR = "SYS_ERROR"
SYS_ABORTED = "SYS_ABORTED"
ALREADY_RUN = "ALREADY_RUN"
TIMEOUT = "TIMEOUT"
INPUT = "INPUT"
CONFIRM = "CONFIRM"
PAUSED = "PAUSED"
TERMINAL_STATES = [
STATUS.SUCCESS,
STATUS.FAILURE,
STATUS.APPROVAL_FAILED,
STATUS.WARNING,
STATUS.ERROR,
STATUS.ABORTED,
STATUS.SYS_FAILURE,
STATUS.SYS_ERROR,
STATUS.SYS_ABORTED,
]
FAILURE_STATES = [
STATUS.FAILURE,
STATUS.APPROVAL_FAILED,
STATUS.WARNING,
STATUS.ERROR,
STATUS.ABORTED,
STATUS.SYS_FAILURE,
STATUS.SYS_ERROR,
STATUS.SYS_ABORTED,
]
class RUNBOOK:
class STATES:
ACTIVE = "ACTIVE"
DELETED = "DELETED"
DRAFT = "DRAFT"
ERROR = "ERROR"
class ENDPOINT:
class STATES:
ACTIVE = "ACTIVE"
DELETED = "DELETED"
DRAFT = "DRAFT"
ERROR = "ERROR"
class TYPES:
HTTP = "HTTP"
WINDOWS = "Windows"
LINUX = "Linux"
class VALUE_TYPES:
VM = "VM"
IP = "IP"
class BLUEPRINT:
class STATES:
ACTIVE = "ACTIVE"
DELETED = "DELETED"
DRAFT = "DRAFT"
ERROR = "ERROR"
class APPLICATION:
class STATES:
PROVISIONING = "provisioning"
STOPPED = "stopped"
RUNNING = "running"
ERROR = "error"
DELETED = "deleted"
DELETING = "deleting"
STARTING = "starting"
STOPPING = "stopping"
RESTARTING = "restarting"
BUSY = "busy"
TIMEOUT = "timeout"
RESTARTING = "restarting"
class ACCOUNT:
class STATES:
DELETED = "DELETED"
VERIFIED = "VERIFIED"
NOT_VERIFIED = "NOT_VERIFIED"
VERIFY_FAILED = "VERIFY_FAILED"
DRAFT = "DRAFT"
ACTIVE = "ACTIVE"
UNSAVED = "UNSAVED"
class TYPES:
AWS = "aws"
AHV = "nutanix"
KUBERNETES = "k8s"
AZURE = "azure"
GCP = "gcp"
VMWARE = "vmware"
class SINGLE_INPUT:
class TYPE:
TEXT = "text"
PASSWORD = "password"
CHECKBOX = "checkbox"
SELECT = "select"
SELECTMULTIPLE = "selectmultiple"
DATE = "date"
TIME = "time"
DATETIME = "datetime"
VALID_TYPES = [
TYPE.TEXT,
TYPE.PASSWORD,
TYPE.CHECKBOX,
TYPE.SELECT,
TYPE.SELECTMULTIPLE,
TYPE.DATE,
TYPE.TIME,
TYPE.DATETIME,
]
class SYSTEM_ACTIONS:
CREATE = "create"
START = "start"
RESTART = "restart"
STOP = "stop"
DELETE = "delete"
SOFT_DELETE = "soft_delete"
class MARKETPLACE_ITEM:
class TYPES:
BLUEPRINT = "blueprint"
RUNBOOK = "runbook"
class STATES:
PENDING = "PENDING"
ACCEPTED = "ACCEPTED"
REJECTED = "REJECTED"
PUBLISHED = "PUBLISHED"
class SOURCES:
GLOBAL = "GLOBAL_STORE"
LOCAL = "LOCAL"
class TASKS:
class TASK_TYPES:
EXEC = "EXEC"
SET_VARIABLE = "SET_VARIABLE"
HTTP = "HTTP"
class SCRIPT_TYPES:
POWERSHELL = "npsscript"
SHELL = "sh"
ESCRIPT = "static"
class STATES:
ACTIVE = "ACTIVE"
DELETED = "DELETED"
DRAFT = "DRAFT"
class ERGON_TASK:
class STATUS:
QUEUED = "QUEUED"
RUNNING = "RUNNING"
ABORTED = "ABORTED"
SUCCEEDED = "SUCCEEDED"
SUSPENDED = "SUSPENDED"
FAILED = "FAILED"
TERMINAL_STATES = [
STATUS.SUCCEEDED,
STATUS.FAILED,
STATUS.ABORTED,
STATUS.SUSPENDED,
]
FAILURE_STATES = [STATUS.FAILED, STATUS.ABORTED, STATUS.SUSPENDED]
class ACP:
class ENTITY_FILTER_EXPRESSION_LIST:
DEVELOPER = [
{
"operator": "IN",
"left_hand_side": {"entity_type": "image"},
"right_hand_side": {"collection": "ALL"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "marketplace_item"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "app_icon"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "category"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "app_task"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "app_variable"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
]
OPERATOR = [
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "app_icon"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "category"},
},
]
CONSUMER = [
{
"operator": "IN",
"left_hand_side": {"entity_type": "image"},
"right_hand_side": {"collection": "ALL"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "marketplace_item"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "app_icon"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "category"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "app_task"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "app_variable"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
]
PROJECT_ADMIN = [
{
"operator": "IN",
"left_hand_side": {"entity_type": "image"},
"right_hand_side": {"collection": "ALL"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "marketplace_item"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "directory_service"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "role"},
},
{
"operator": "IN",
"right_hand_side": {"uuid_list": []},
"left_hand_side": {"entity_type": "project"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "user"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "user_group"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "SELF_OWNED"},
"left_hand_side": {"entity_type": "environment"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "app_icon"},
},
{
"operator": "IN",
"right_hand_side": {"collection": "ALL"},
"left_hand_side": {"entity_type": "category"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "app_task"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
{
"operator": "IN",
"left_hand_side": {"entity_type": "app_variable"},
"right_hand_side": {"collection": "SELF_OWNED"},
},
]
DEFAULT_CONTEXT = {
"scope_filter_expression_list": [
{
"operator": "IN",
"left_hand_side": "PROJECT",
"right_hand_side": {"uuid_list": []},
}
],
"entity_filter_expression_list": [
{
"operator": "IN",
"left_hand_side": {"entity_type": "ALL"},
"right_hand_side": {"collection": "ALL"},
}
],
}
|
# MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptions to the terms and
# conditions of the GPLv2 as it is applied to this software, see the
# FOSS License Exception
# <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""MySQL Connector/Python version information
The file version.py gets installed and is available after installation
as mysql.connector.version.
"""
VERSION = (8, 0, 5, 'b', 1)
if VERSION[3] and VERSION[4]:
VERSION_TEXT = '{0}.{1}.{2}{3}{4}'.format(*VERSION)
else:
VERSION_TEXT = '{0}.{1}.{2}'.format(*VERSION[0:3])
VERSION_EXTRA = 'dmr'
LICENSE = 'GPLv2 with FOSS License Exception'
EDITION = '' # Added in package names, after the version
|
print("Bem vindo ao jogo ")
chute=0
while chute != 42:
g = input("digite um numero: ")
chute=int(g)
if chute == 42:
print("você venceu!!!!!")
else:
if chute >42:
print("valor alto")
else:
print("valor baixo")
print("fim de jogo")
|
l=int(input("enter length: "))
b=int(input("enter breath: "))
area=l*b
perimeter=2*(l+b)
print(area)
print(perimeter)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.