content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
#!/usr/bin/env python3
# set Blinkt! brightness, IT BURNS MEEEEEE, 100 is the max
BRIGHTNESS = 10
# define colour values for Blinkt! LEDs. Edit as you please...
COLOUR_MAP = { 'level6': { 'r': 155, 'g': 0, 'b': 200, 'name': 'magenta' },
'level5': { 'r': 255, 'g': 0, 'b': 0, 'name': 'red' },
'level4': { 'r': 255, 'g': 30, 'b': 0, 'name': 'orange' },
'level3': { 'r': 180, 'g': 100, 'b': 0, 'name': 'yellow' },
'level2': { 'r': 0, 'g': 255, 'b': 0, 'name': 'green' },
'level1': { 'r': 0, 'g': 160, 'b': 180, 'name': 'cyan' },
'plunge': { 'r': 0, 'g': 0, 'b': 255, 'name': 'blue' }, }
def price_to_colour(price: float) -> str:
"""edit this function to change price thresholds - be careful that you
don't leave gaps in the numbers or strange things will very likely happen.
prices are including VAT in p/kWh"""
if price > 28:
pixel_colour = 'level6'
elif 28 >= price > 17:
pixel_colour = 'level5'
elif 17 >= price > 13.5:
pixel_colour = 'level4'
elif 13.5 >= price > 10:
pixel_colour = 'level3'
elif 10 >= price > 5:
pixel_colour = 'level2'
elif 5 >= price > 0:
pixel_colour = 'level1'
elif price <= 0:
pixel_colour = 'plunge'
else:
raise SystemExit("Can't continue - price of " + str(price) +" doesn't make sense.")
return pixel_colour
|
brightness = 10
colour_map = {'level6': {'r': 155, 'g': 0, 'b': 200, 'name': 'magenta'}, 'level5': {'r': 255, 'g': 0, 'b': 0, 'name': 'red'}, 'level4': {'r': 255, 'g': 30, 'b': 0, 'name': 'orange'}, 'level3': {'r': 180, 'g': 100, 'b': 0, 'name': 'yellow'}, 'level2': {'r': 0, 'g': 255, 'b': 0, 'name': 'green'}, 'level1': {'r': 0, 'g': 160, 'b': 180, 'name': 'cyan'}, 'plunge': {'r': 0, 'g': 0, 'b': 255, 'name': 'blue'}}
def price_to_colour(price: float) -> str:
"""edit this function to change price thresholds - be careful that you
don't leave gaps in the numbers or strange things will very likely happen.
prices are including VAT in p/kWh"""
if price > 28:
pixel_colour = 'level6'
elif 28 >= price > 17:
pixel_colour = 'level5'
elif 17 >= price > 13.5:
pixel_colour = 'level4'
elif 13.5 >= price > 10:
pixel_colour = 'level3'
elif 10 >= price > 5:
pixel_colour = 'level2'
elif 5 >= price > 0:
pixel_colour = 'level1'
elif price <= 0:
pixel_colour = 'plunge'
else:
raise system_exit("Can't continue - price of " + str(price) + " doesn't make sense.")
return pixel_colour
|
class Solution:
def largestRectangleArea(self, heights: list[int]) -> int:
heights.append(0)
stack: list[int] = [-1]
ans = 0
for i, h in enumerate(heights):
while stack and h <= heights[stack[-1]]:
curH = heights[stack.pop()]
if not stack: break
curW = i-stack[-1]-1
ans = max(ans, curW*curH)
stack.append(i)
return ans
|
class Solution:
def largest_rectangle_area(self, heights: list[int]) -> int:
heights.append(0)
stack: list[int] = [-1]
ans = 0
for (i, h) in enumerate(heights):
while stack and h <= heights[stack[-1]]:
cur_h = heights[stack.pop()]
if not stack:
break
cur_w = i - stack[-1] - 1
ans = max(ans, curW * curH)
stack.append(i)
return ans
|
# Problem: Decode Ways
# Difficulty: Medium
# Category: String, DP
# Leetcode 91: https://leetcode.com/problems/decode-ways/discuss/
"""
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total number of ways to decode it.
For example,
Given encoded message "12", it could be decoded as "AB" (1 2) or "L" (12).
The number of ways decoding "12" is 2.
"""
class Solution(object):
def decode(self, s):
if not s or len(s) == 0:
return 0
dp = [0 for i in range(len(s) + 1)]
dp[0] = 1
for i in range(1, len(s)+1):
if s[i - 1] != '0':
dp[i] += dp[i - 1]
if i > 1 and s[i - 2:i] < '27' and s[i-2:i] > '09':
dp[i] += dp[i - 2]
return dp[-1]
obj = Solution()
s1 = '12'
print(obj.decode(s1))
|
"""
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total number of ways to decode it.
For example,
Given encoded message "12", it could be decoded as "AB" (1 2) or "L" (12).
The number of ways decoding "12" is 2.
"""
class Solution(object):
def decode(self, s):
if not s or len(s) == 0:
return 0
dp = [0 for i in range(len(s) + 1)]
dp[0] = 1
for i in range(1, len(s) + 1):
if s[i - 1] != '0':
dp[i] += dp[i - 1]
if i > 1 and s[i - 2:i] < '27' and (s[i - 2:i] > '09'):
dp[i] += dp[i - 2]
return dp[-1]
obj = solution()
s1 = '12'
print(obj.decode(s1))
|
def solve(x: int) -> int:
x = y # err
z = x + 1
return y # err
|
def solve(x: int) -> int:
x = y
z = x + 1
return y
|
number = int(input())
counter = int(input())
number_add = number
list_numbers = [number]
for i in range(counter - 1):
number_add += number
list_numbers.append(number_add)
print(list_numbers)
|
number = int(input())
counter = int(input())
number_add = number
list_numbers = [number]
for i in range(counter - 1):
number_add += number
list_numbers.append(number_add)
print(list_numbers)
|
# Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
# Example 1:
# Input: "Let's take LeetCode contest"
# Output: "s'teL ekat edoCteeL tsetnoc"
class Solution(object):
def reverseWords(self, s):
"""
:type s: str
:rtype: str
"""
list1 = [word[::-1] for word in s.split(' ')]
return ' '.join(list1)
|
class Solution(object):
def reverse_words(self, s):
"""
:type s: str
:rtype: str
"""
list1 = [word[::-1] for word in s.split(' ')]
return ' '.join(list1)
|
def plot_data(data, ax, keys=None, width=0.5, colors=None):
if keys is None:
keys = ['Latent Test error', 'Test Information Loss']
if colors is None:
colors = ['blue', 'red']
for i, entry in enumerate(data):
h1 = entry[keys[0]]
h2 = h1 + entry[keys[1]]
ax.fill_between([i - width / 2.0, i + width / 2.0],
[0, 0],
[h1] * 2, label=keys[0] if i == 0 else None,
color=colors[0])
ax.fill_between([i - width / 2.0, i + width / 2.0],
[h1] * 2,
[h2] * 2, label=keys[1] if i == 0 else None,
color=colors[1])
ax.set_ylim(0)
ax.set_xticks(range(len(data)))
ax.set_xticklabels([entry['Model'] for entry in data], rotation=90)
ax.set_xlim(-1, 10)
ax.set_ylabel('Test error', size=15)
ax.legend()
|
def plot_data(data, ax, keys=None, width=0.5, colors=None):
if keys is None:
keys = ['Latent Test error', 'Test Information Loss']
if colors is None:
colors = ['blue', 'red']
for (i, entry) in enumerate(data):
h1 = entry[keys[0]]
h2 = h1 + entry[keys[1]]
ax.fill_between([i - width / 2.0, i + width / 2.0], [0, 0], [h1] * 2, label=keys[0] if i == 0 else None, color=colors[0])
ax.fill_between([i - width / 2.0, i + width / 2.0], [h1] * 2, [h2] * 2, label=keys[1] if i == 0 else None, color=colors[1])
ax.set_ylim(0)
ax.set_xticks(range(len(data)))
ax.set_xticklabels([entry['Model'] for entry in data], rotation=90)
ax.set_xlim(-1, 10)
ax.set_ylabel('Test error', size=15)
ax.legend()
|
#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause
#
# Constants for MIDI notes.
#
# For example:
# F# in Octave 3: O3.Fs
# C# in Octave -2: On2.Cs
# D-flat in Octave 1: O1.Db
# D in Octave 0: O0.D
# E in Octave 2: O2.E
class Octave:
def __init__(self, base):
self.C = base
self.Cs = base + 1
self.Db = base + 1
self.D = base + 2
self.Ds = base + 3
self.Eb = base + 3
self.E = base + 4
self.F = base + 5
self.Fs = base + 6
self.Gb = base + 6
self.G = base + 7
self.Gs = base + 8
self.Ab = base + 8
self.A = base + 9
self.As = base + 10
self.Bb = base + 10
self.B = base + 11
On5 = Octave(0) # Octave -5
On4 = Octave(12) # Octave -4
On3 = Octave(24) # Octave -3
On2 = Octave(36) # Octave -2
On1 = Octave(48) # Octave -1
O0 = Octave(60) # Octave 0
O1 = Octave(72) # Octave 1
O2 = Octave(84) # Octave 2
O3 = Octave(96) # Octave 3
O4 = Octave(108) # Octave 4
O5 = Octave(120) # Octave 5
# Given a MIDI note number, return a note definition in terms of the
# constants above.
def def_for_note(note):
OCTAVES = [
"On5",
"On4",
"On3",
"On2",
"On1",
"O0",
"O1",
"O2",
"O3",
"O4",
"O5",
]
NOTES = ["C", "Cs", "D", "Ds", "E", "F", "Fs", "G", "Gs", "A", "As", "B"]
return "%s.%s" % (OCTAVES[note // 12], NOTES[note % 12])
|
class Octave:
def __init__(self, base):
self.C = base
self.Cs = base + 1
self.Db = base + 1
self.D = base + 2
self.Ds = base + 3
self.Eb = base + 3
self.E = base + 4
self.F = base + 5
self.Fs = base + 6
self.Gb = base + 6
self.G = base + 7
self.Gs = base + 8
self.Ab = base + 8
self.A = base + 9
self.As = base + 10
self.Bb = base + 10
self.B = base + 11
on5 = octave(0)
on4 = octave(12)
on3 = octave(24)
on2 = octave(36)
on1 = octave(48)
o0 = octave(60)
o1 = octave(72)
o2 = octave(84)
o3 = octave(96)
o4 = octave(108)
o5 = octave(120)
def def_for_note(note):
octaves = ['On5', 'On4', 'On3', 'On2', 'On1', 'O0', 'O1', 'O2', 'O3', 'O4', 'O5']
notes = ['C', 'Cs', 'D', 'Ds', 'E', 'F', 'Fs', 'G', 'Gs', 'A', 'As', 'B']
return '%s.%s' % (OCTAVES[note // 12], NOTES[note % 12])
|
class Task:
def __init__(self, id, title):
self.title = title
self.id = id
self.status = "new"
|
class Task:
def __init__(self, id, title):
self.title = title
self.id = id
self.status = 'new'
|
"""
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
"""
sum = 0
previous = 0
current = 1
while current < 4000000:
previous, current = current, current + previous
if current % 2 == 0:
sum += current
print(sum)
# Output: 4613732
|
"""
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
"""
sum = 0
previous = 0
current = 1
while current < 4000000:
(previous, current) = (current, current + previous)
if current % 2 == 0:
sum += current
print(sum)
|
def problem(a):
try:
return float(a) * 50 + 6
except ValueError:
return "Error"
|
def problem(a):
try:
return float(a) * 50 + 6
except ValueError:
return 'Error'
|
class AccountInfo():
def __init__(self, row_id, email, password, cookies, status_id):
self.row_id = row_id
self.email = email
self.password = password
self.cookies = cookies
self.status_id = status_id
def __repr__(self):
return f"id: {self.row_id}, email: {self.email}, password: {self.password}, status_id: {self.status_id}"
|
class Accountinfo:
def __init__(self, row_id, email, password, cookies, status_id):
self.row_id = row_id
self.email = email
self.password = password
self.cookies = cookies
self.status_id = status_id
def __repr__(self):
return f'id: {self.row_id}, email: {self.email}, password: {self.password}, status_id: {self.status_id}'
|
class Solution:
def twoSum(self, numbers: List[int], target: int) -> List[int]:
"""
Given an array of integers numbers that is already
sorted in ascending order, find two numbers such that
they add up to a specific target number.
Return the indices of the two numbers (1-indexed) as
an integer array answer of size 2,
where 1 <= answer[0] < answer[1] <= numbers.length.
You may assume that each input would have exactly one
solution and you may not use the same element twice.
"""
lo, hi = 0, len(numbers)-1
while lo<hi:
sum2 = numbers[lo]+numbers[hi]
if sum2==target:
return [lo+1, hi+1]
elif sum2<target:
lo+=1
else:
hi-=1
|
class Solution:
def two_sum(self, numbers: List[int], target: int) -> List[int]:
"""
Given an array of integers numbers that is already
sorted in ascending order, find two numbers such that
they add up to a specific target number.
Return the indices of the two numbers (1-indexed) as
an integer array answer of size 2,
where 1 <= answer[0] < answer[1] <= numbers.length.
You may assume that each input would have exactly one
solution and you may not use the same element twice.
"""
(lo, hi) = (0, len(numbers) - 1)
while lo < hi:
sum2 = numbers[lo] + numbers[hi]
if sum2 == target:
return [lo + 1, hi + 1]
elif sum2 < target:
lo += 1
else:
hi -= 1
|
"""
coding: utf-8
Created on 17/11/2020
@author: github.com/edrmonteiro
From: Hackerrank challenges
Language: Python
Title: Sorting: Bubble Sort
Consider the following version of Bubble Sort:
for (int i = 0; i < n; i++) {
for (int j = 0; j < n - 1; j++) {
// Swap adjacent elements if they are in decreasing order
if (a[j] > a[j + 1]) {
swap(a[j], a[j + 1]);
}
}
}
Given an array of integers, sort the array in ascending order using the Bubble Sort algorithm above. Once sorted, print the following three lines:
Array is sorted in numSwaps swaps., where is the number of swaps that took place.
First Element: firstElement, where is the first element in the sorted array.
Last Element: lastElement, where is the last element in the sorted array.
Hint: To complete this challenge, you must add a variable that keeps a running tally of all swaps that occur during execution.
For example, given a worst-case but small array to sort: we go through the following steps:
swap a
0 [6,4,1]
1 [4,6,1]
2 [4,1,6]
3 [1,4,6]
It took swaps to sort the array. Output would be
Array is sorted in 3 swaps.
First Element: 1
Last Element: 6
Function Description
Complete the function countSwaps in the editor below. It should print the three lines required, then return.
countSwaps has the following parameter(s):
a: an array of integers .
Input Format
The first line contains an integer, , the size of the array .
The second line contains space-separated integers .
Constraints
Output Format
You must print the following three lines of output:
Array is sorted in numSwaps swaps., where is the number of swaps that took place.
First Element: firstElement, where is the first element in the sorted array.
Last Element: lastElement, where is the last element in the sorted array.
Sample Input 0
3
1 2 3
Sample Output 0
Array is sorted in 0 swaps.
First Element: 1
Last Element: 3
Explanation 0
The array is already sorted, so swaps take place and we print the necessary three lines of output shown above.
Sample Input 1
3
3 2 1
Sample Output 1
Array is sorted in 3 swaps.
First Element: 1
Last Element: 3
Explanation 1
The array is not sorted, and its initial values are: . The following swaps take place:
At this point the array is sorted and we print the necessary three lines of output shown above.
"""
def countSwaps(a):
n = len(a)
swaps = 0
for i in range(0, n):
for j in range(0, n - 1):
# Swap adjacent elements if they are in decreasing order
if (a[j] > a[j + 1]):
a[j], a[j + 1] = a[j + 1], a[j]
swaps += 1
print("Array is sorted in", swaps, "swaps.")
print("First Element:", a[0])
print("Last Element:", a[len(a) - 1])
a = [6, 4, 1]
print(countSwaps(a))
stop = True
|
"""
coding: utf-8
Created on 17/11/2020
@author: github.com/edrmonteiro
From: Hackerrank challenges
Language: Python
Title: Sorting: Bubble Sort
Consider the following version of Bubble Sort:
for (int i = 0; i < n; i++) {
for (int j = 0; j < n - 1; j++) {
// Swap adjacent elements if they are in decreasing order
if (a[j] > a[j + 1]) {
swap(a[j], a[j + 1]);
}
}
}
Given an array of integers, sort the array in ascending order using the Bubble Sort algorithm above. Once sorted, print the following three lines:
Array is sorted in numSwaps swaps., where is the number of swaps that took place.
First Element: firstElement, where is the first element in the sorted array.
Last Element: lastElement, where is the last element in the sorted array.
Hint: To complete this challenge, you must add a variable that keeps a running tally of all swaps that occur during execution.
For example, given a worst-case but small array to sort: we go through the following steps:
swap a
0 [6,4,1]
1 [4,6,1]
2 [4,1,6]
3 [1,4,6]
It took swaps to sort the array. Output would be
Array is sorted in 3 swaps.
First Element: 1
Last Element: 6
Function Description
Complete the function countSwaps in the editor below. It should print the three lines required, then return.
countSwaps has the following parameter(s):
a: an array of integers .
Input Format
The first line contains an integer, , the size of the array .
The second line contains space-separated integers .
Constraints
Output Format
You must print the following three lines of output:
Array is sorted in numSwaps swaps., where is the number of swaps that took place.
First Element: firstElement, where is the first element in the sorted array.
Last Element: lastElement, where is the last element in the sorted array.
Sample Input 0
3
1 2 3
Sample Output 0
Array is sorted in 0 swaps.
First Element: 1
Last Element: 3
Explanation 0
The array is already sorted, so swaps take place and we print the necessary three lines of output shown above.
Sample Input 1
3
3 2 1
Sample Output 1
Array is sorted in 3 swaps.
First Element: 1
Last Element: 3
Explanation 1
The array is not sorted, and its initial values are: . The following swaps take place:
At this point the array is sorted and we print the necessary three lines of output shown above.
"""
def count_swaps(a):
n = len(a)
swaps = 0
for i in range(0, n):
for j in range(0, n - 1):
if a[j] > a[j + 1]:
(a[j], a[j + 1]) = (a[j + 1], a[j])
swaps += 1
print('Array is sorted in', swaps, 'swaps.')
print('First Element:', a[0])
print('Last Element:', a[len(a) - 1])
a = [6, 4, 1]
print(count_swaps(a))
stop = True
|
class ssdict:
def __init__(self, ss, param, collectiontype):
factory = {
'projects': self.getProjects,
'reviews': self.getReviews,
'items': self.getItems,
'comments': self.getComments,
}
func = factory[collectiontype]
self.collection = func(ss, param)
def getProjects(self, ss, accountid):
self.intro = '\nProjects in this account:\n'
return ss.getProjects(accountid)['objects']
def getReviews(self, ss, projectid):
self.intro = '\nReviews in the Project Under Test:\n'
return ss.get_reviews_by_project_id(projectid)['objects']
def getItems(self, ss, reviewid):
self.intro = '\nItems in the Review Under Test:\n'
return ss.get_media_by_review_id(reviewid)['objects']
def getComments(self, ss, itemid):
self.intro = '\nComments in the Item Under Test:\n'
return ss.get_annotations(itemid)['objects']
def getCatalogue(self):
catalogue = self.intro
for item in self.collection:
catalogue +='\t'
for prop in ['id','name','text']:
if prop in item:
catalogue += str(item[prop]) + ' '
catalogue += '\n'
catalogue += '\n'
return catalogue
|
class Ssdict:
def __init__(self, ss, param, collectiontype):
factory = {'projects': self.getProjects, 'reviews': self.getReviews, 'items': self.getItems, 'comments': self.getComments}
func = factory[collectiontype]
self.collection = func(ss, param)
def get_projects(self, ss, accountid):
self.intro = '\nProjects in this account:\n'
return ss.getProjects(accountid)['objects']
def get_reviews(self, ss, projectid):
self.intro = '\nReviews in the Project Under Test:\n'
return ss.get_reviews_by_project_id(projectid)['objects']
def get_items(self, ss, reviewid):
self.intro = '\nItems in the Review Under Test:\n'
return ss.get_media_by_review_id(reviewid)['objects']
def get_comments(self, ss, itemid):
self.intro = '\nComments in the Item Under Test:\n'
return ss.get_annotations(itemid)['objects']
def get_catalogue(self):
catalogue = self.intro
for item in self.collection:
catalogue += '\t'
for prop in ['id', 'name', 'text']:
if prop in item:
catalogue += str(item[prop]) + ' '
catalogue += '\n'
catalogue += '\n'
return catalogue
|
#
# PySNMP MIB module CISCOSB-ippreflist-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-ippreflist-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:08:08 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)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint")
switch001, = mibBuilder.importSymbols("CISCOSB-MIB", "switch001")
InetVersion, InetAddressType, InetAddress, InetZoneIndex, InetAddressPrefixLength = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetVersion", "InetAddressType", "InetAddress", "InetZoneIndex", "InetAddressPrefixLength")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Integer32, TimeTicks, NotificationType, ModuleIdentity, Gauge32, Bits, IpAddress, ObjectIdentity, Counter32, iso, MibIdentifier, Unsigned32, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "NotificationType", "ModuleIdentity", "Gauge32", "Bits", "IpAddress", "ObjectIdentity", "Counter32", "iso", "MibIdentifier", "Unsigned32", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
DateAndTime, TruthValue, TimeStamp, TextualConvention, DisplayString, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DateAndTime", "TruthValue", "TimeStamp", "TextualConvention", "DisplayString", "RowStatus")
rlIpPrefList = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212))
class RlIpPrefListEntryType(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("rule", 1), ("description", 2))
class RlIpPrefListActionType(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("drop", 1), ("permit", 2))
class RlIpPrefListType(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("ipv4", 1), ("ipv6", 2))
rlIpPrefListTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1), )
if mibBuilder.loadTexts: rlIpPrefListTable.setStatus('current')
rlIpPrefListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1), ).setIndexNames((0, "CISCOSB-ippreflist-MIB", "rlIpPrefListType"), (0, "CISCOSB-ippreflist-MIB", "rlIpPrefListName"), (0, "CISCOSB-ippreflist-MIB", "rlIpPrefListEntryIndex"))
if mibBuilder.loadTexts: rlIpPrefListEntry.setStatus('current')
rlIpPrefListType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 1), RlIpPrefListType())
if mibBuilder.loadTexts: rlIpPrefListType.setStatus('current')
rlIpPrefListName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
if mibBuilder.loadTexts: rlIpPrefListName.setStatus('current')
rlIpPrefListEntryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967294)))
if mibBuilder.loadTexts: rlIpPrefListEntryIndex.setStatus('current')
rlIpPrefListEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 4), RlIpPrefListEntryType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListEntryType.setStatus('current')
rlIpPrefListInetAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 5), InetAddressType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListInetAddrType.setStatus('current')
rlIpPrefListInetAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 6), InetAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListInetAddr.setStatus('current')
rlIpPrefListPrefixLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListPrefixLength.setStatus('current')
rlIpPrefListAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 8), RlIpPrefListActionType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListAction.setStatus('current')
rlIpPrefListGeLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListGeLength.setStatus('current')
rlIpPrefListLeLength = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListLeLength.setStatus('current')
rlIpPrefListDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListDescription.setStatus('current')
rlIpPrefListHitCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 12), Integer32())
if mibBuilder.loadTexts: rlIpPrefListHitCount.setStatus('current')
rlIpPrefListRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 13), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlIpPrefListRowStatus.setStatus('current')
rlIpPrefListInfoTable = MibTable((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2), )
if mibBuilder.loadTexts: rlIpPrefListInfoTable.setStatus('current')
rlIpPrefListInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1), ).setIndexNames((0, "CISCOSB-ippreflist-MIB", "rlIpPrefListInfoType"), (0, "CISCOSB-ippreflist-MIB", "rlIpPrefListInfoName"))
if mibBuilder.loadTexts: rlIpPrefListInfoEntry.setStatus('current')
rlIpPrefListInfoType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 1), RlIpPrefListType())
if mibBuilder.loadTexts: rlIpPrefListInfoType.setStatus('current')
rlIpPrefListInfoName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
if mibBuilder.loadTexts: rlIpPrefListInfoName.setStatus('current')
rlIpPrefListInfoEntriesNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlIpPrefListInfoEntriesNumber.setStatus('current')
rlIpPrefListInfoRangeEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlIpPrefListInfoRangeEntries.setStatus('current')
rlIpPrefListInfoNextFreeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlIpPrefListInfoNextFreeIndex.setStatus('current')
mibBuilder.exportSymbols("CISCOSB-ippreflist-MIB", rlIpPrefListEntryType=rlIpPrefListEntryType, rlIpPrefListType=rlIpPrefListType, RlIpPrefListEntryType=RlIpPrefListEntryType, rlIpPrefListInfoRangeEntries=rlIpPrefListInfoRangeEntries, RlIpPrefListActionType=RlIpPrefListActionType, RlIpPrefListType=RlIpPrefListType, rlIpPrefListInfoNextFreeIndex=rlIpPrefListInfoNextFreeIndex, rlIpPrefListInfoTable=rlIpPrefListInfoTable, rlIpPrefListInfoType=rlIpPrefListInfoType, rlIpPrefListAction=rlIpPrefListAction, rlIpPrefListInfoName=rlIpPrefListInfoName, rlIpPrefListDescription=rlIpPrefListDescription, rlIpPrefList=rlIpPrefList, rlIpPrefListInetAddrType=rlIpPrefListInetAddrType, rlIpPrefListInfoEntry=rlIpPrefListInfoEntry, rlIpPrefListHitCount=rlIpPrefListHitCount, rlIpPrefListPrefixLength=rlIpPrefListPrefixLength, rlIpPrefListInetAddr=rlIpPrefListInetAddr, rlIpPrefListEntry=rlIpPrefListEntry, rlIpPrefListName=rlIpPrefListName, rlIpPrefListLeLength=rlIpPrefListLeLength, rlIpPrefListEntryIndex=rlIpPrefListEntryIndex, rlIpPrefListTable=rlIpPrefListTable, rlIpPrefListInfoEntriesNumber=rlIpPrefListInfoEntriesNumber, rlIpPrefListRowStatus=rlIpPrefListRowStatus, rlIpPrefListGeLength=rlIpPrefListGeLength)
|
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, single_value_constraint, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint')
(switch001,) = mibBuilder.importSymbols('CISCOSB-MIB', 'switch001')
(inet_version, inet_address_type, inet_address, inet_zone_index, inet_address_prefix_length) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetVersion', 'InetAddressType', 'InetAddress', 'InetZoneIndex', 'InetAddressPrefixLength')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(integer32, time_ticks, notification_type, module_identity, gauge32, bits, ip_address, object_identity, counter32, iso, mib_identifier, unsigned32, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'TimeTicks', 'NotificationType', 'ModuleIdentity', 'Gauge32', 'Bits', 'IpAddress', 'ObjectIdentity', 'Counter32', 'iso', 'MibIdentifier', 'Unsigned32', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(date_and_time, truth_value, time_stamp, textual_convention, display_string, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DateAndTime', 'TruthValue', 'TimeStamp', 'TextualConvention', 'DisplayString', 'RowStatus')
rl_ip_pref_list = mib_identifier((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212))
class Rlippreflistentrytype(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('rule', 1), ('description', 2))
class Rlippreflistactiontype(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('drop', 1), ('permit', 2))
class Rlippreflisttype(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('ipv4', 1), ('ipv6', 2))
rl_ip_pref_list_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1))
if mibBuilder.loadTexts:
rlIpPrefListTable.setStatus('current')
rl_ip_pref_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1)).setIndexNames((0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListType'), (0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListName'), (0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListEntryIndex'))
if mibBuilder.loadTexts:
rlIpPrefListEntry.setStatus('current')
rl_ip_pref_list_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 1), rl_ip_pref_list_type())
if mibBuilder.loadTexts:
rlIpPrefListType.setStatus('current')
rl_ip_pref_list_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 32)))
if mibBuilder.loadTexts:
rlIpPrefListName.setStatus('current')
rl_ip_pref_list_entry_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967294)))
if mibBuilder.loadTexts:
rlIpPrefListEntryIndex.setStatus('current')
rl_ip_pref_list_entry_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 4), rl_ip_pref_list_entry_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListEntryType.setStatus('current')
rl_ip_pref_list_inet_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 5), inet_address_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListInetAddrType.setStatus('current')
rl_ip_pref_list_inet_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 6), inet_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListInetAddr.setStatus('current')
rl_ip_pref_list_prefix_length = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListPrefixLength.setStatus('current')
rl_ip_pref_list_action = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 8), rl_ip_pref_list_action_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListAction.setStatus('current')
rl_ip_pref_list_ge_length = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListGeLength.setStatus('current')
rl_ip_pref_list_le_length = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListLeLength.setStatus('current')
rl_ip_pref_list_description = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListDescription.setStatus('current')
rl_ip_pref_list_hit_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 12), integer32())
if mibBuilder.loadTexts:
rlIpPrefListHitCount.setStatus('current')
rl_ip_pref_list_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 1, 1, 13), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlIpPrefListRowStatus.setStatus('current')
rl_ip_pref_list_info_table = mib_table((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2))
if mibBuilder.loadTexts:
rlIpPrefListInfoTable.setStatus('current')
rl_ip_pref_list_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1)).setIndexNames((0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListInfoType'), (0, 'CISCOSB-ippreflist-MIB', 'rlIpPrefListInfoName'))
if mibBuilder.loadTexts:
rlIpPrefListInfoEntry.setStatus('current')
rl_ip_pref_list_info_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 1), rl_ip_pref_list_type())
if mibBuilder.loadTexts:
rlIpPrefListInfoType.setStatus('current')
rl_ip_pref_list_info_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 32)))
if mibBuilder.loadTexts:
rlIpPrefListInfoName.setStatus('current')
rl_ip_pref_list_info_entries_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlIpPrefListInfoEntriesNumber.setStatus('current')
rl_ip_pref_list_info_range_entries = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlIpPrefListInfoRangeEntries.setStatus('current')
rl_ip_pref_list_info_next_free_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 6, 1, 101, 212, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlIpPrefListInfoNextFreeIndex.setStatus('current')
mibBuilder.exportSymbols('CISCOSB-ippreflist-MIB', rlIpPrefListEntryType=rlIpPrefListEntryType, rlIpPrefListType=rlIpPrefListType, RlIpPrefListEntryType=RlIpPrefListEntryType, rlIpPrefListInfoRangeEntries=rlIpPrefListInfoRangeEntries, RlIpPrefListActionType=RlIpPrefListActionType, RlIpPrefListType=RlIpPrefListType, rlIpPrefListInfoNextFreeIndex=rlIpPrefListInfoNextFreeIndex, rlIpPrefListInfoTable=rlIpPrefListInfoTable, rlIpPrefListInfoType=rlIpPrefListInfoType, rlIpPrefListAction=rlIpPrefListAction, rlIpPrefListInfoName=rlIpPrefListInfoName, rlIpPrefListDescription=rlIpPrefListDescription, rlIpPrefList=rlIpPrefList, rlIpPrefListInetAddrType=rlIpPrefListInetAddrType, rlIpPrefListInfoEntry=rlIpPrefListInfoEntry, rlIpPrefListHitCount=rlIpPrefListHitCount, rlIpPrefListPrefixLength=rlIpPrefListPrefixLength, rlIpPrefListInetAddr=rlIpPrefListInetAddr, rlIpPrefListEntry=rlIpPrefListEntry, rlIpPrefListName=rlIpPrefListName, rlIpPrefListLeLength=rlIpPrefListLeLength, rlIpPrefListEntryIndex=rlIpPrefListEntryIndex, rlIpPrefListTable=rlIpPrefListTable, rlIpPrefListInfoEntriesNumber=rlIpPrefListInfoEntriesNumber, rlIpPrefListRowStatus=rlIpPrefListRowStatus, rlIpPrefListGeLength=rlIpPrefListGeLength)
|
"""
Raincoat comments that are checked in acceptance tests
"""
def simple_function():
# Raincoat: pypi package: raincoat==0.1.4 path: raincoat/_acceptance_test.py element: use_umbrella # noqa
# Raincoat: pypi package: raincoat==0.1.4 path: raincoat/_acceptance_test.py element: Umbrella.open # noqa
# Raincoat: pypi package: raincoat==0.1.4 path: raincoat/_acceptance_test.py element: Umbrella # noqa
# Raincoat: pypi package: raincoat==0.1.4 path: raincoat/_acceptance_test.py # noqa
# Raincoat: pypi package: raincoat==0.1.4 path: raincoat/_acceptance_test.py element: non_existant # noqa
# Raincoat: pypi package: raincoat==0.1.4 path: raincoat/non_existant.py # noqa
# Raincoat: django ticket: #25981
# Raincoat: django ticket: #27754
# Raincoat: pygithub repo: peopledoc/raincoat@a35df1d path: raincoat/_acceptance_test.py element: Umbrella.open # noqa
pass
# this file should never be executed, only parsed.
raise NotImplementedError
|
"""
Raincoat comments that are checked in acceptance tests
"""
def simple_function():
pass
raise NotImplementedError
|
"""
Day 3 - Maximum Subarray
LeetCode Easy Problem
Given an integer array nums, find the contiguous subarray (containing at least one number)
which has the largest sum and return its sum.
Example:
Input: [-2,1,-3,4,-1,2,1,-5,4],
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
Follow up:
If you have figured out the O(n) solution, try coding another solution using the divide
and conquer approach, which is more subtle.
"""
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
max_so_far = nums[0]
curr_max = nums[0]
for num in nums[1:]:
curr_max = max(curr_max + num, num)
max_so_far = max(max_so_far, curr_max)
return max_so_far
|
"""
Day 3 - Maximum Subarray
LeetCode Easy Problem
Given an integer array nums, find the contiguous subarray (containing at least one number)
which has the largest sum and return its sum.
Example:
Input: [-2,1,-3,4,-1,2,1,-5,4],
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
Follow up:
If you have figured out the O(n) solution, try coding another solution using the divide
and conquer approach, which is more subtle.
"""
class Solution:
def max_sub_array(self, nums: List[int]) -> int:
max_so_far = nums[0]
curr_max = nums[0]
for num in nums[1:]:
curr_max = max(curr_max + num, num)
max_so_far = max(max_so_far, curr_max)
return max_so_far
|
class c_iterateur(object):
def __init__(self, obj):
self.obj = obj
self.length = len(obj)
self.count = 0
def __iter__(self):
return self
def next(self):
if self.count > self.length:
raise StopIteration
else:
result = self.obj[self.count]
self.count += 1
return result
if __name__ == "__main__":
chaine = [
[
['hello-1.0',' My Beautifull-1.0 ','world-1.0'],
['hello-1.1',' My Beautifull-1.1 ','world-1.1'],
['hello-1.2',' My Beautifull-1.2 ','world-1.2']
],
[
['hello-2.0',' My Beautifull-2.0 ','world-2.0'],
['hello-2.1',' My Beautifull-2.1 ','world-2.1'],
['hello-2.2',' My Beautifull-2.2 ','world-2.2']
],
[
['hello-3.2',' My Beautifull-3.0 ','world-3.0'],
['hello-3.2',' My Beautifull-3.1 ','world-3.1'],
['hello-3.2',' My Beautifull-3.2 ','world-3.2']
]
]
iter1 =c_iterateur(chaine).__iter__()
try:
for i in range(len(chaine)):
print("Idx 1D: " + str(i) + " : " + str(iter1.next()))
iter2 =c_iterateur(chaine[i]).__iter__()
try:
for j in range(len(chaine[i])):
print("___Idx 2D: " + str(j) + " : " + str(iter2.next()))
iter3 = c_iterateur(chaine[j]).__iter__()
try:
for k in range(len(chaine[j])):
print("______Idx 3D: " + str(k) + " : " + str(iter3.next()))
except StopIteration:
print("fin d'iteration 3")
except StopIteration:
print("fin d'iteration 2")
except StopIteration:
print("fin d'iteration 1")
|
class C_Iterateur(object):
def __init__(self, obj):
self.obj = obj
self.length = len(obj)
self.count = 0
def __iter__(self):
return self
def next(self):
if self.count > self.length:
raise StopIteration
else:
result = self.obj[self.count]
self.count += 1
return result
if __name__ == '__main__':
chaine = [[['hello-1.0', ' My Beautifull-1.0 ', 'world-1.0'], ['hello-1.1', ' My Beautifull-1.1 ', 'world-1.1'], ['hello-1.2', ' My Beautifull-1.2 ', 'world-1.2']], [['hello-2.0', ' My Beautifull-2.0 ', 'world-2.0'], ['hello-2.1', ' My Beautifull-2.1 ', 'world-2.1'], ['hello-2.2', ' My Beautifull-2.2 ', 'world-2.2']], [['hello-3.2', ' My Beautifull-3.0 ', 'world-3.0'], ['hello-3.2', ' My Beautifull-3.1 ', 'world-3.1'], ['hello-3.2', ' My Beautifull-3.2 ', 'world-3.2']]]
iter1 = c_iterateur(chaine).__iter__()
try:
for i in range(len(chaine)):
print('Idx 1D: ' + str(i) + ' : ' + str(iter1.next()))
iter2 = c_iterateur(chaine[i]).__iter__()
try:
for j in range(len(chaine[i])):
print('___Idx 2D: ' + str(j) + ' : ' + str(iter2.next()))
iter3 = c_iterateur(chaine[j]).__iter__()
try:
for k in range(len(chaine[j])):
print('______Idx 3D: ' + str(k) + ' : ' + str(iter3.next()))
except StopIteration:
print("fin d'iteration 3")
except StopIteration:
print("fin d'iteration 2")
except StopIteration:
print("fin d'iteration 1")
|
# input number of strings in the set
N = int(input())
trie = {}
end = object()
# input the strings
for _ in range(N):
s = input()
t = trie
for c in s[:-1]:
if c in t:
t = t[c]
else:
t[c] = {}
t = t[c]
# Print GOOD SET if the set is valid else, output BAD SET
# followed by the first string for which the condition fails
if t is end:
print("BAD SET")
print(s)
exit()
if s[-1] in t:
print("BAD SET")
print(s)
exit()
else:
t[s[-1]] = end
print("GOOD SET")
|
n = int(input())
trie = {}
end = object()
for _ in range(N):
s = input()
t = trie
for c in s[:-1]:
if c in t:
t = t[c]
else:
t[c] = {}
t = t[c]
if t is end:
print('BAD SET')
print(s)
exit()
if s[-1] in t:
print('BAD SET')
print(s)
exit()
else:
t[s[-1]] = end
print('GOOD SET')
|
# Google Kickstart 2019 Round: Practice
def solution(N, K, x1, y1, C, D, E1, E2, F):
alarmList = []
alarmPowermap = [[] for i in range(K)]
alarmPower = 0
# Calculate alarmList
element = (x1 + y1) % F
xPrev, yPrev = x1, y1
alarmList.append(element)
for _ in range(N-1):
xi = (C*xPrev + D*yPrev + E1) % F
yi = (D*xPrev + C*yPrev + E2) % F
element = (xi + yi) % F
xPrev, yPrev = xi, yi
alarmList.append(element)
# Calculate Alarm Subsets
alarmSubset = []
for i in range(1, N+1):
for j in range(N-i+1):
alarmSubset.append(alarmList[j:j+i])
# Calculate alarmPowermap
for kthElement in range(K):
for indexElement in range(1, N+1):
alarmPowermap[kthElement].append(indexElement**(kthElement+1))
# Calculate alarmPowerList
for kthElement in range(K):
for subset in alarmSubset:
for index, element in enumerate(subset):
alarmPower += element*alarmPowermap[kthElement][index]
return str(alarmPower % 1000000007)
def kickstartAlarm():
T = int(input())
N, K, x1, y1, C, D, E1, E2, F = [0]*T, [0]*T, [0] * \
T, [0]*T, [0]*T, [0]*T, [0]*T, [0]*T, [0]*T
for i in range(T):
N[i], K[i], x1[i], y1[i], C[i], D[i], E1[i], E2[i], F[i] = map(
int, input().split())
for i in range(T):
print("Case #" + str(i+1) + ": " +
solution(N[i], K[i], x1[i], y1[i], C[i], D[i], E1[i], E2[i], F[i]))
kickstartAlarm()
# solution(2, 3, 1, 2, 1, 2, 1, 1, 9)
# solution(10, 10, 10001, 10002, 10003, 10004, 10005, 10006, 89273)
|
def solution(N, K, x1, y1, C, D, E1, E2, F):
alarm_list = []
alarm_powermap = [[] for i in range(K)]
alarm_power = 0
element = (x1 + y1) % F
(x_prev, y_prev) = (x1, y1)
alarmList.append(element)
for _ in range(N - 1):
xi = (C * xPrev + D * yPrev + E1) % F
yi = (D * xPrev + C * yPrev + E2) % F
element = (xi + yi) % F
(x_prev, y_prev) = (xi, yi)
alarmList.append(element)
alarm_subset = []
for i in range(1, N + 1):
for j in range(N - i + 1):
alarmSubset.append(alarmList[j:j + i])
for kth_element in range(K):
for index_element in range(1, N + 1):
alarmPowermap[kthElement].append(indexElement ** (kthElement + 1))
for kth_element in range(K):
for subset in alarmSubset:
for (index, element) in enumerate(subset):
alarm_power += element * alarmPowermap[kthElement][index]
return str(alarmPower % 1000000007)
def kickstart_alarm():
t = int(input())
(n, k, x1, y1, c, d, e1, e2, f) = ([0] * T, [0] * T, [0] * T, [0] * T, [0] * T, [0] * T, [0] * T, [0] * T, [0] * T)
for i in range(T):
(N[i], K[i], x1[i], y1[i], C[i], D[i], E1[i], E2[i], F[i]) = map(int, input().split())
for i in range(T):
print('Case #' + str(i + 1) + ': ' + solution(N[i], K[i], x1[i], y1[i], C[i], D[i], E1[i], E2[i], F[i]))
kickstart_alarm()
|
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 11 19:22:52 2020
@author: abhi0
"""
class Solution:
def setZeroes(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
temp=[]
tempPrime=[]
for i in range(len(matrix)):
if 0 in matrix[i]:
temp.append(i)
for j in range(len(matrix[i])):
if matrix[i][j]==0:
tempPrime.append(j)
for i in temp:
matrix[i]=[0]*len(matrix[i])
for j in tempPrime:
for i in range(len(matrix)):
matrix[i][j]=0
|
"""
Created on Tue Aug 11 19:22:52 2020
@author: abhi0
"""
class Solution:
def set_zeroes(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
temp = []
temp_prime = []
for i in range(len(matrix)):
if 0 in matrix[i]:
temp.append(i)
for j in range(len(matrix[i])):
if matrix[i][j] == 0:
tempPrime.append(j)
for i in temp:
matrix[i] = [0] * len(matrix[i])
for j in tempPrime:
for i in range(len(matrix)):
matrix[i][j] = 0
|
thistuple = ("apple", "banana", "cherry")
print(thistuple)
thistuple = ("apple", "banana", "cherry")
print(thistuple[1])
thistuple = ("apple", "banana", "cherry")
print(thistuple[-1])
thistuple = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango")
print(thistuple[2:5])
x = ("apple", "banana", "cherry")
y = list(x)
y[1] = "kiwi"
x = tuple(y)
print(x)
thistuple = ("apple", "banana", "cherry")
for x in thistuple:
print(x)
thistuple1 = (1,2,4,5,6,7,9,0,5)
x = thistuple1.count(5)
print(x)
|
thistuple = ('apple', 'banana', 'cherry')
print(thistuple)
thistuple = ('apple', 'banana', 'cherry')
print(thistuple[1])
thistuple = ('apple', 'banana', 'cherry')
print(thistuple[-1])
thistuple = ('apple', 'banana', 'cherry', 'orange', 'kiwi', 'melon', 'mango')
print(thistuple[2:5])
x = ('apple', 'banana', 'cherry')
y = list(x)
y[1] = 'kiwi'
x = tuple(y)
print(x)
thistuple = ('apple', 'banana', 'cherry')
for x in thistuple:
print(x)
thistuple1 = (1, 2, 4, 5, 6, 7, 9, 0, 5)
x = thistuple1.count(5)
print(x)
|
def test_response_protocol_with_http1_0_request_():
pass
def test_response_protocol_with_http1_1_request_():
pass
def test_response_protocol_with_http1_1_request_and_http1_0_server():
pass
def test_response_protocol_with_http0_9_request_():
pass
def test_response_protocol_with_http2_0_request_():
pass
|
def test_response_protocol_with_http1_0_request_():
pass
def test_response_protocol_with_http1_1_request_():
pass
def test_response_protocol_with_http1_1_request_and_http1_0_server():
pass
def test_response_protocol_with_http0_9_request_():
pass
def test_response_protocol_with_http2_0_request_():
pass
|
# -*- coding: utf-8 -*-
"""Version information for :mod:`seffnet`."""
__all__ = [
'VERSION',
]
VERSION = '0.0.1-dev'
|
"""Version information for :mod:`seffnet`."""
__all__ = ['VERSION']
version = '0.0.1-dev'
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 25 18:24:38 2017
@author: dhingratul
P 1.1
"""
def isUnique(s):
s2=s.upper()
l=set(list(s2))
if len(l) == len(s2):
return True
else:
return False
# Main program
print(isUnique("ABCc"))
|
"""
Created on Tue Apr 25 18:24:38 2017
@author: dhingratul
P 1.1
"""
def is_unique(s):
s2 = s.upper()
l = set(list(s2))
if len(l) == len(s2):
return True
else:
return False
print(is_unique('ABCc'))
|
plain_text = list(input("Enter plain text:\n"))
encrypted_text = []
original_text = []
for char in plain_text:
encrypted_text.append(chr(ord(char)+5))
for char in encrypted_text:
original_text.append(chr(ord(char)-5))
print(encrypted_text)
print(original_text)
|
plain_text = list(input('Enter plain text:\n'))
encrypted_text = []
original_text = []
for char in plain_text:
encrypted_text.append(chr(ord(char) + 5))
for char in encrypted_text:
original_text.append(chr(ord(char) - 5))
print(encrypted_text)
print(original_text)
|
'''
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Example:
Input: [-2,1,-3,4,-1,2,1,-5,4],
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
Follow up:
If you have figured out the O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle.
'''
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
dp = [0 for x in range(len(nums))]
dp[0] = nums[0]
for x in range(len(nums) - 1):
dp[x + 1] = max(nums[x + 1], dp[x] + nums[x + 1])
return max(dp)
|
"""
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Example:
Input: [-2,1,-3,4,-1,2,1,-5,4],
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
Follow up:
If you have figured out the O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle.
"""
class Solution:
def max_sub_array(self, nums: List[int]) -> int:
dp = [0 for x in range(len(nums))]
dp[0] = nums[0]
for x in range(len(nums) - 1):
dp[x + 1] = max(nums[x + 1], dp[x] + nums[x + 1])
return max(dp)
|
POSSIBLE_MARKS = (
("4", "4"),
("5", "5"),
("6", "6"),
("7", "7"),
("8", "8"),
("9", "9"),
("10", "10"),
)
|
possible_marks = (('4', '4'), ('5', '5'), ('6', '6'), ('7', '7'), ('8', '8'), ('9', '9'), ('10', '10'))
|
#
# PySNMP MIB module IPAD-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPAD-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:44:34 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)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, TimeTicks, Counter32, Counter64, NotificationType, Gauge32, iso, Bits, enterprises, MibIdentifier, ObjectIdentity, Unsigned32, Integer32, IpAddress, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "TimeTicks", "Counter32", "Counter64", "NotificationType", "Gauge32", "iso", "Bits", "enterprises", "MibIdentifier", "ObjectIdentity", "Unsigned32", "Integer32", "IpAddress", "NotificationType")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
verilink = MibIdentifier((1, 3, 6, 1, 4, 1, 321))
hbu = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100))
ipad = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1))
ipadFrPort = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 1))
ipadService = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 2))
ipadChannel = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 3))
ipadDLCI = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 4))
ipadEndpoint = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 5))
ipadUser = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 6))
ipadPPP = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 7))
ipadModem = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 8))
ipadSvcAware = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 9))
ipadPktSwitch = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 10))
ipadTrapDest = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 11))
ipadMisc = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 12))
ipadRouter = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 13))
ipadSoftKey = MibIdentifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 14))
ipadFrPortTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1), )
if mibBuilder.loadTexts: ipadFrPortTable.setStatus('optional')
ipadFrPortTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadFrPortService"))
if mibBuilder.loadTexts: ipadFrPortTableEntry.setStatus('mandatory')
ipadFrPortService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortService.setStatus('mandatory')
ipadFrPortActive = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortActive.setStatus('mandatory')
ipadFrPortLMIType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ccitt", 2), ("ansi", 3), ("lmi", 4), ("none", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortLMIType.setStatus('mandatory')
ipadFrPortLMIMode = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("sourcing", 2), ("monitoring", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortLMIMode.setStatus('mandatory')
ipadFrPortRxInvAlmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadFrPortRxInvAlmThreshold.setStatus('mandatory')
ipadFrPortRxInvAlmAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortRxInvAlmAlarm.setStatus('mandatory')
ipadFrPortTxAlmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadFrPortTxAlmThreshold.setStatus('mandatory')
ipadFrPortTxAlmAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortTxAlmAlarm.setStatus('mandatory')
ipadFrPortRxAlmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadFrPortRxAlmThreshold.setStatus('mandatory')
ipadFrPortRxAlmAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortRxAlmAlarm.setStatus('mandatory')
ipadServiceTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1), )
if mibBuilder.loadTexts: ipadServiceTable.setStatus('optional')
ipadServiceTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadServiceIndex"))
if mibBuilder.loadTexts: ipadServiceTableEntry.setStatus('mandatory')
ipadServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadServiceIndex.setStatus('mandatory')
ipadServiceifIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("disabled", 0), ("supervisor", 1), ("network1", 2), ("network2", 3), ("user1", 4), ("user2", 5), ("ethernet", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadServiceifIndex.setStatus('mandatory')
ipadServiceType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("tdm", 2), ("ppp", 3), ("pppMonitor", 4), ("frameRelay", 5), ("frameRelayMonitor", 6), ("ip", 7), ("serial", 8), ("tty", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadServiceType.setStatus('mandatory')
ipadServicePair = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadServicePair.setStatus('mandatory')
ipadServiceAddService = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("addService", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadServiceAddService.setStatus('mandatory')
ipadServiceDeleteService = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadServiceDeleteService.setStatus('mandatory')
ipadChannelTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1), )
if mibBuilder.loadTexts: ipadChannelTable.setStatus('optional')
ipadChannelTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadChannelifIndex"), (0, "IPAD-MIB", "ipadChannelIndex"))
if mibBuilder.loadTexts: ipadChannelTableEntry.setStatus('mandatory')
ipadChannelifIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("supervisor", 1), ("network1", 2), ("network2", 3), ("user1", 4), ("user2", 5), ("ethernet", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadChannelifIndex.setStatus('mandatory')
ipadChannelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadChannelIndex.setStatus('mandatory')
ipadChannelService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadChannelService.setStatus('mandatory')
ipadChannelPair = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadChannelPair.setStatus('mandatory')
ipadChannelRate = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("rate56", 2), ("rate64", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadChannelRate.setStatus('mandatory')
ipadDLCITable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1), )
if mibBuilder.loadTexts: ipadDLCITable.setStatus('optional')
ipadDLCITableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadDLCIservice"), (0, "IPAD-MIB", "ipadDLCInumber"))
if mibBuilder.loadTexts: ipadDLCITableEntry.setStatus('mandatory')
ipadDLCIservice = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIservice.setStatus('mandatory')
ipadDLCInumber = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCInumber.setStatus('mandatory')
ipadDLCIactive = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3), ("pending", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIactive.setStatus('mandatory')
ipadDLCIcongestion = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIcongestion.setStatus('mandatory')
ipadDLCIremote = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIremote.setStatus('mandatory')
ipadDLCIremoteUnit = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIremoteUnit.setStatus('mandatory')
ipadDLCIremoteEquipActive = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("inactive", 2), ("active", 3), ("sosAlarm", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIremoteEquipActive.setStatus('mandatory')
ipadDLCIencapsulation = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("rfc1490", 2), ("proprietary", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIencapsulation.setStatus('mandatory')
ipadDLCIproprietary = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("ip", 2), ("ipx", 3), ("ethertype", 4), ("none", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIproprietary.setStatus('mandatory')
ipadDLCIpropOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIpropOffset.setStatus('mandatory')
ipadDLCIinBand = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIinBand.setStatus('mandatory')
ipadDLCICIR = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCICIR.setStatus('mandatory')
ipadDLCIBe = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 13), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIBe.setStatus('mandatory')
ipadDLCIminBC = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIminBC.setStatus('mandatory')
ipadDLCIrxMon = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIrxMon.setStatus('mandatory')
ipadDLCIdEctrl = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIdEctrl.setStatus('mandatory')
ipadDLCIenableDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIenableDelay.setStatus('mandatory')
ipadDLCItxExCIRThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 18), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCItxExCIRThreshold.setStatus('mandatory')
ipadDLCItxExCIRAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCItxExCIRAlarm.setStatus('mandatory')
ipadDLCItxExBeThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 20), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCItxExBeThreshold.setStatus('mandatory')
ipadDLCItxExBeAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCItxExBeAlarm.setStatus('mandatory')
ipadDLCIrxCongThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 22), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIrxCongThreshold.setStatus('mandatory')
ipadDLCIrxCongAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIrxCongAlarm.setStatus('mandatory')
ipadDLCIrxBECNinCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("alarmCondition", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIrxBECNinCIR.setStatus('mandatory')
ipadDLCIUASThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 25), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadDLCIUASThreshold.setStatus('mandatory')
ipadDLCIUASAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIUASAlarm.setStatus('mandatory')
ipadDLCILastChange = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCILastChange.setStatus('mandatory')
ipadEndpointTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1), )
if mibBuilder.loadTexts: ipadEndpointTable.setStatus('optional')
ipadEndpointTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadEndpointIndex"))
if mibBuilder.loadTexts: ipadEndpointTableEntry.setStatus('mandatory')
ipadEndpointIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadEndpointIndex.setStatus('mandatory')
ipadEndpointName = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointName.setStatus('mandatory')
ipadEndpointService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointService.setStatus('mandatory')
ipadEndpointDLCInumber = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointDLCInumber.setStatus('mandatory')
ipadEndpointType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("local", 2), ("switched", 3), ("ipRoute", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointType.setStatus('mandatory')
ipadEndpointForward = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointForward.setStatus('mandatory')
ipadEndpointBackup = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointBackup.setStatus('mandatory')
ipadEndpointRefSLP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointRefSLP.setStatus('mandatory')
ipadEndpointRemoteIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 9), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointRemoteIpAddr.setStatus('mandatory')
ipadEndpointRemoteIpMask = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 10), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointRemoteIpMask.setStatus('mandatory')
ipadEndpointAddEndpoint = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointAddEndpoint.setStatus('mandatory')
ipadEndpointDeleteEndpoint = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadEndpointDeleteEndpoint.setStatus('mandatory')
ipadEndpointLastChange = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadEndpointLastChange.setStatus('mandatory')
ipadUserTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1), )
if mibBuilder.loadTexts: ipadUserTable.setStatus('optional')
ipadUserTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadUserIndex"))
if mibBuilder.loadTexts: ipadUserTableEntry.setStatus('mandatory')
ipadUserIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserIndex.setStatus('mandatory')
ipadUserFilterByDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserFilterByDLCI.setStatus('mandatory')
ipadUserService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserService.setStatus('mandatory')
ipadUserDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserDLCI.setStatus('mandatory')
ipadUserFilterByIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserFilterByIPAddress.setStatus('mandatory')
ipadUserIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 6), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserIPAddress.setStatus('mandatory')
ipadUserIPMask = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 7), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserIPMask.setStatus('mandatory')
ipadUserFilterByIPPort = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserFilterByIPPort.setStatus('mandatory')
ipadUserIPPort = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(5, 7, 11, 17, 20, 21, 23, 25, 31, 37, 42, 53, 66, 69, 70, 79, 80, 88, 92, 101, 107, 109, 110, 111, 113, 119, 137, 138, 139, 153, 161, 162, 163, 164, 169, 179, 194, 201, 202, 204, 206, 213, 395, 396, 444, 494, 533, 540, 541, 600, 749))).clone(namedValues=NamedValues(("rje", 5), ("echo", 7), ("systat", 11), ("qotd", 17), ("ftpdata", 20), ("ftp", 21), ("telnet", 23), ("smtp", 25), ("msgauth", 31), ("time", 37), ("nameserver", 42), ("domain", 53), ("sqlnet", 66), ("tftp", 69), ("gopher", 70), ("finger", 79), ("http", 80), ("kerberos", 88), ("npp", 92), ("hostname", 101), ("rtelnet", 107), ("pop2", 109), ("pop3", 110), ("sunrpc", 111), ("auth", 113), ("nntp", 119), ("netbiosns", 137), ("netbiosdgm", 138), ("netbiosssn", 139), ("sgmp", 153), ("snmp", 161), ("snmptrap", 162), ("cmipman", 163), ("cmipagent", 164), ("send", 169), ("bgp", 179), ("irc", 194), ("atrtmp", 201), ("atnbp", 202), ("atecho", 204), ("atzis", 206), ("ipx", 213), ("netcp", 395), ("netwareip", 396), ("snpp", 444), ("povray", 494), ("netwall", 533), ("uucp", 540), ("uucprlogin", 541), ("ipcserver", 600), ("kerberosadm", 749)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserIPPort.setStatus('mandatory')
ipadUserTxAlmThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserTxAlmThreshold.setStatus('mandatory')
ipadUserTxAlmAlarm = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("noAlarm", 2), ("thresholdExceeded", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserTxAlmAlarm.setStatus('mandatory')
ipadUserIPStatTimeRemaining = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserIPStatTimeRemaining.setStatus('mandatory')
ipadUserIPStatTimeDuration = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserIPStatTimeDuration.setStatus('mandatory')
ipadUserIPStatStartTime = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserIPStatStartTime.setStatus('mandatory')
ipadUserIPStatRequestedReportSize = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserIPStatRequestedReportSize.setStatus('mandatory')
ipadUserIPStatGrantedReportSize = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserIPStatGrantedReportSize.setStatus('mandatory')
ipadUserIPStatReportNumber = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserIPStatReportNumber.setStatus('mandatory')
ipadUserIPStatDiscardType = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("byTime", 1), ("byFrames", 2), ("byOctets", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadUserIPStatDiscardType.setStatus('mandatory')
ipadPPPCfgTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1), )
if mibBuilder.loadTexts: ipadPPPCfgTable.setStatus('optional')
ipadPPPCfgTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadPPPCfgService"))
if mibBuilder.loadTexts: ipadPPPCfgTableEntry.setStatus('mandatory')
ipadPPPCfgService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadPPPCfgService.setStatus('mandatory')
ipadPPPCfgDialMode = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("direct", 2), ("dialup", 3), ("demanddial", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgDialMode.setStatus('mandatory')
ipadPPPCfgInactivityTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgInactivityTimer.setStatus('mandatory')
ipadPPPCfgNegotiationInit = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegotiationInit.setStatus('mandatory')
ipadPPPCfgMRU = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgMRU.setStatus('mandatory')
ipadPPPCfgACCM = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgACCM.setStatus('mandatory')
ipadPPPCfgNegMRU = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegMRU.setStatus('mandatory')
ipadPPPCfgNegACCM = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegACCM.setStatus('mandatory')
ipadPPPCfgNegMagic = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegMagic.setStatus('mandatory')
ipadPPPCfgNegCompression = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegCompression.setStatus('mandatory')
ipadPPPCfgNegAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegAddress.setStatus('mandatory')
ipadPPPCfgNegPAP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegPAP.setStatus('mandatory')
ipadPPPCfgNegCHAP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegCHAP.setStatus('mandatory')
ipadPPPCfgAllowPAP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgAllowPAP.setStatus('mandatory')
ipadPPPCfgAllowCHAP = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgAllowCHAP.setStatus('mandatory')
ipadPPPCfgPAPUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgPAPUsername.setStatus('mandatory')
ipadPPPCfgPAPPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 17), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgPAPPassword.setStatus('mandatory')
ipadPPPCfgCHAPUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 18), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgCHAPUsername.setStatus('mandatory')
ipadPPPCfgCHAPSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgCHAPSecret.setStatus('mandatory')
ipadPPPCfgPortIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 20), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgPortIpAddress.setStatus('mandatory')
ipadPPPCfgPeerIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 21), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgPeerIpAddress.setStatus('mandatory')
ipadPPPCfgNegIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegIpAddress.setStatus('mandatory')
ipadPPPCfgNegIPCPCompression = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgNegIPCPCompression.setStatus('mandatory')
ipadPPPCfgSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 24), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgSubnetMask.setStatus('mandatory')
ipadPPPCfgAuthChallengeInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 25), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCfgAuthChallengeInterval.setStatus('mandatory')
ipadPPPPAPTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2), )
if mibBuilder.loadTexts: ipadPPPPAPTable.setStatus('optional')
ipadPPPPAPTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1), ).setIndexNames((0, "IPAD-MIB", "ipadPPPPAPTableIndex"))
if mibBuilder.loadTexts: ipadPPPPAPTableEntry.setStatus('mandatory')
ipadPPPPAPTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadPPPPAPTableIndex.setStatus('mandatory')
ipadPPPPAPTableUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPPAPTableUsername.setStatus('mandatory')
ipadPPPPAPTablePassword = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPPAPTablePassword.setStatus('mandatory')
ipadPPPCHAPTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3), )
if mibBuilder.loadTexts: ipadPPPCHAPTable.setStatus('optional')
ipadPPPCHAPTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1), ).setIndexNames((0, "IPAD-MIB", "ipadPPPCHAPTableIndex"))
if mibBuilder.loadTexts: ipadPPPCHAPTableEntry.setStatus('mandatory')
ipadPPPCHAPTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadPPPCHAPTableIndex.setStatus('mandatory')
ipadPPPCHAPTableUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCHAPTableUsername.setStatus('mandatory')
ipadPPPCHAPTableSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPPPCHAPTableSecret.setStatus('mandatory')
ipadModemDialTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1), )
if mibBuilder.loadTexts: ipadModemDialTable.setStatus('optional')
ipadModemDialTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadModemDialTableIndex"))
if mibBuilder.loadTexts: ipadModemDialTableEntry.setStatus('mandatory')
ipadModemDialTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("supervisor", 1), ("network1", 2), ("network2", 3), ("user1", 4), ("user2", 5), ("ethernet", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadModemDialTableIndex.setStatus('mandatory')
ipadModemDialDataIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDialDataIndex.setStatus('mandatory')
ipadModemDialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDialNumber.setStatus('mandatory')
ipadModemDialAbortTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDialAbortTimer.setStatus('mandatory')
ipadModemDialRedialAttempts = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDialRedialAttempts.setStatus('mandatory')
ipadModemDialDelayBeforeRedial = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDialDelayBeforeRedial.setStatus('mandatory')
ipadModemDialLoginScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDialLoginScript.setStatus('mandatory')
ipadModemDialUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDialUsername.setStatus('mandatory')
ipadModemDialPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDialPassword.setStatus('mandatory')
ipadModemDataTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2), )
if mibBuilder.loadTexts: ipadModemDataTable.setStatus('optional')
ipadModemDataTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1), ).setIndexNames((0, "IPAD-MIB", "ipadModemDataTableIndex"))
if mibBuilder.loadTexts: ipadModemDataTableEntry.setStatus('mandatory')
ipadModemDataTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadModemDataTableIndex.setStatus('mandatory')
ipadModemDataModemName = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDataModemName.setStatus('mandatory')
ipadModemDataSetupScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDataSetupScript.setStatus('mandatory')
ipadModemDataDialingScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDataDialingScript.setStatus('mandatory')
ipadModemDataAnswerScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDataAnswerScript.setStatus('mandatory')
ipadModemDataHangupScript = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadModemDataHangupScript.setStatus('mandatory')
ipadFrPortStatsTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1), )
if mibBuilder.loadTexts: ipadFrPortStatsTable.setStatus('optional')
ipadFrPortStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadFrPortStatsService"), (0, "IPAD-MIB", "ipadFrPortStatsPeriod"))
if mibBuilder.loadTexts: ipadFrPortStatsEntry.setStatus('mandatory')
ipadFrPortStatsService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsService.setStatus('mandatory')
ipadFrPortStatsPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=NamedValues(("portStatsSummary", 1), ("portStatsCurrent", 2), ("portStatsperiod1", 3), ("portStatsperiod2", 4), ("portStatsperiod3", 5), ("portStatsperiod4", 6), ("portStatsperiod5", 7), ("portStatsperiod6", 8), ("portStatsperiod7", 9), ("portStatsperiod8", 10), ("portStatsperiod9", 11), ("portStatsperiod10", 12), ("portStatsperiod11", 13), ("portStatsperiod12", 14), ("portStatsperiod13", 15), ("portStatsperiod14", 16), ("portStatsperiod15", 17), ("portStatsperiod16", 18), ("portStatsperiod17", 19), ("portStatsperiod18", 20), ("portStatsperiod19", 21), ("portStatsperiod20", 22), ("portStatsperiod21", 23), ("portStatsperiod22", 24), ("portStatsperiod23", 25), ("portStatsperiod24", 26), ("portStatsperiod25", 27), ("portStatsperiod26", 28), ("portStatsperiod27", 29), ("portStatsperiod28", 30), ("portStatsperiod29", 31), ("portStatsperiod30", 32), ("portStatsperiod31", 33), ("portStatsperiod32", 34), ("portStatsperiod33", 35), ("portStatsperiod34", 36), ("portStatsperiod35", 37), ("portStatsperiod36", 38), ("portStatsperiod37", 39), ("portStatsperiod38", 40), ("portStatsperiod39", 41), ("portStatsperiod40", 42), ("portStatsperiod41", 43), ("portStatsperiod42", 44), ("portStatsperiod43", 45), ("portStatsperiod44", 46), ("portStatsperiod45", 47), ("portStatsperiod46", 48), ("portStatsperiod47", 49), ("portStatsperiod48", 50), ("portStatsperiod49", 51), ("portStatsperiod50", 52), ("portStatsperiod51", 53), ("portStatsperiod52", 54), ("portStatsperiod53", 55), ("portStatsperiod54", 56), ("portStatsperiod55", 57), ("portStatsperiod56", 58), ("portStatsperiod57", 59), ("portStatsperiod58", 60), ("portStatsperiod59", 61), ("portStatsperiod60", 62), ("portStatsperiod61", 63), ("portStatsperiod62", 64), ("portStatsperiod63", 65), ("portStatsperiod64", 66), ("portStatsperiod65", 67), ("portStatsperiod66", 68), ("portStatsperiod67", 69), ("portStatsperiod68", 70), ("portStatsperiod69", 71), ("portStatsperiod70", 72), ("portStatsperiod71", 73), ("portStatsperiod72", 74), ("portStatsperiod73", 75), ("portStatsperiod74", 76), ("portStatsperiod75", 77), ("portStatsperiod76", 78), ("portStatsperiod77", 79), ("portStatsperiod78", 80), ("portStatsperiod79", 81), ("portStatsperiod80", 82), ("portStatsperiod81", 83), ("portStatsperiod82", 84), ("portStatsperiod83", 85), ("portStatsperiod84", 86), ("portStatsperiod85", 87), ("portStatsperiod86", 88), ("portStatsperiod87", 89), ("portStatsperiod88", 90), ("portStatsperiod89", 91), ("portStatsperiod90", 92), ("portStatsperiod91", 93), ("portStatsperiod92", 94), ("portStatsperiod93", 95), ("portStatsperiod94", 96), ("portStatsperiod95", 97), ("portStatsperiod96", 98)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsPeriod.setStatus('mandatory')
ipadFrPortStatsTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsTxFrames.setStatus('mandatory')
ipadFrPortStatsRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxFrames.setStatus('mandatory')
ipadFrPortStatsTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsTxOctets.setStatus('mandatory')
ipadFrPortStatsRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxOctets.setStatus('mandatory')
ipadFrPortStatsTxMgmtFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsTxMgmtFrames.setStatus('mandatory')
ipadFrPortStatsRxMgmtFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxMgmtFrames.setStatus('mandatory')
ipadFrPortStatsTxMgmtOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsTxMgmtOctets.setStatus('mandatory')
ipadFrPortStatsRxMgmtOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxMgmtOctets.setStatus('mandatory')
ipadFrPortStatsRxFECN = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxFECN.setStatus('mandatory')
ipadFrPortStatsRxBECN = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxBECN.setStatus('mandatory')
ipadFrPortStatsRxInvalid = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxInvalid.setStatus('mandatory')
ipadFrPortStatsTxStatInq = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsTxStatInq.setStatus('mandatory')
ipadFrPortStatsRxStatInq = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxStatInq.setStatus('mandatory')
ipadFrPortStatsTxStatResp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsTxStatResp.setStatus('mandatory')
ipadFrPortStatsRxStatResp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxStatResp.setStatus('mandatory')
ipadFrPortStatsRxInvLMI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsRxInvLMI.setStatus('mandatory')
ipadFrPortStatsPeak = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsPeak.setStatus('mandatory')
ipadFrPortStatsAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadFrPortStatsAverage.setStatus('mandatory')
ipadDLCIstatsTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2), )
if mibBuilder.loadTexts: ipadDLCIstatsTable.setStatus('optional')
ipadDLCIstatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1), ).setIndexNames((0, "IPAD-MIB", "ipadDLCIstatsService"), (0, "IPAD-MIB", "ipadDLCIstatsDLCI"), (0, "IPAD-MIB", "ipadDLCIstatsPeriod"))
if mibBuilder.loadTexts: ipadDLCIstatsEntry.setStatus('mandatory')
ipadDLCIstatsService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsService.setStatus('mandatory')
ipadDLCIstatsDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsDLCI.setStatus('mandatory')
ipadDLCIstatsPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=NamedValues(("dlciStatsSummary", 1), ("dlciStatsCurrent", 2), ("dlciStatsperiod1", 3), ("dlciStatsperiod2", 4), ("dlciStatsperiod3", 5), ("dlciStatsperiod4", 6), ("dlciStatsperiod5", 7), ("dlciStatsperiod6", 8), ("dlciStatsperiod7", 9), ("dlciStatsperiod8", 10), ("dlciStatsperiod9", 11), ("dlciStatsperiod10", 12), ("dlciStatsperiod11", 13), ("dlciStatsperiod12", 14), ("dlciStatsperiod13", 15), ("dlciStatsperiod14", 16), ("dlciStatsperiod15", 17), ("dlciStatsperiod16", 18), ("dlciStatsperiod17", 19), ("dlciStatsperiod18", 20), ("dlciStatsperiod19", 21), ("dlciStatsperiod20", 22), ("dlciStatsperiod21", 23), ("dlciStatsperiod22", 24), ("dlciStatsperiod23", 25), ("dlciStatsperiod24", 26), ("dlciStatsperiod25", 27), ("dlciStatsperiod26", 28), ("dlciStatsperiod27", 29), ("dlciStatsperiod28", 30), ("dlciStatsperiod29", 31), ("dlciStatsperiod30", 32), ("dlciStatsperiod31", 33), ("dlciStatsperiod32", 34), ("dlciStatsperiod33", 35), ("dlciStatsperiod34", 36), ("dlciStatsperiod35", 37), ("dlciStatsperiod36", 38), ("dlciStatsperiod37", 39), ("dlciStatsperiod38", 40), ("dlciStatsperiod39", 41), ("dlciStatsperiod40", 42), ("dlciStatsperiod41", 43), ("dlciStatsperiod42", 44), ("dlciStatsperiod43", 45), ("dlciStatsperiod44", 46), ("dlciStatsperiod45", 47), ("dlciStatsperiod46", 48), ("dlciStatsperiod47", 49), ("dlciStatsperiod48", 50), ("dlciStatsperiod49", 51), ("dlciStatsperiod50", 52), ("dlciStatsperiod51", 53), ("dlciStatsperiod52", 54), ("dlciStatsperiod53", 55), ("dlciStatsperiod54", 56), ("dlciStatsperiod55", 57), ("dlciStatsperiod56", 58), ("dlciStatsperiod57", 59), ("dlciStatsperiod58", 60), ("dlciStatsperiod59", 61), ("dlciStatsperiod60", 62), ("dlciStatsperiod61", 63), ("dlciStatsperiod62", 64), ("dlciStatsperiod63", 65), ("dlciStatsperiod64", 66), ("dlciStatsperiod65", 67), ("dlciStatsperiod66", 68), ("dlciStatsperiod67", 69), ("dlciStatsperiod68", 70), ("dlciStatsperiod69", 71), ("dlciStatsperiod70", 72), ("dlciStatsperiod71", 73), ("dlciStatsperiod72", 74), ("dlciStatsperiod73", 75), ("dlciStatsperiod74", 76), ("dlciStatsperiod75", 77), ("dlciStatsperiod76", 78), ("dlciStatsperiod77", 79), ("dlciStatsperiod78", 80), ("dlciStatsperiod79", 81), ("dlciStatsperiod80", 82), ("dlciStatsperiod81", 83), ("dlciStatsperiod82", 84), ("dlciStatsperiod83", 85), ("dlciStatsperiod84", 86), ("dlciStatsperiod85", 87), ("dlciStatsperiod86", 88), ("dlciStatsperiod87", 89), ("dlciStatsperiod88", 90), ("dlciStatsperiod89", 91), ("dlciStatsperiod90", 92), ("dlciStatsperiod91", 93), ("dlciStatsperiod92", 94), ("dlciStatsperiod93", 95), ("dlciStatsperiod94", 96), ("dlciStatsperiod95", 97), ("dlciStatsperiod96", 98)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsPeriod.setStatus('mandatory')
ipadDLCIstatsTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsTxFrames.setStatus('mandatory')
ipadDLCIstatsRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsRxFrames.setStatus('mandatory')
ipadDLCIstatsTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsTxOctets.setStatus('mandatory')
ipadDLCIstatsRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsRxOctets.setStatus('mandatory')
ipadDLCIstatsRxFECN = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsRxFECN.setStatus('mandatory')
ipadDLCIstatsRxBECN = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsRxBECN.setStatus('mandatory')
ipadDLCIstatsRxDE = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsRxDE.setStatus('mandatory')
ipadDLCIstatsTxExcessCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsTxExcessCIR.setStatus('mandatory')
ipadDLCIstatsTxExcessBe = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsTxExcessBe.setStatus('mandatory')
ipadDLCIstatsTxMgmtFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsTxMgmtFrames.setStatus('mandatory')
ipadDLCIstatsRxMgmtFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsRxMgmtFrames.setStatus('mandatory')
ipadDLCIstatsTxMgmtOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsTxMgmtOctets.setStatus('mandatory')
ipadDLCIstatsRxMgmtOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsRxMgmtOctets.setStatus('mandatory')
ipadDLCIstatsPeak = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsPeak.setStatus('mandatory')
ipadDLCIstatsAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsAverage.setStatus('mandatory')
ipadDLCIstatsDelayPeak = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsDelayPeak.setStatus('mandatory')
ipadDLCIstatsDelayAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsDelayAverage.setStatus('mandatory')
ipadDLCIstatsRoundTripTimeouts = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 21), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsRoundTripTimeouts.setStatus('mandatory')
ipadDLCIstatsUAS = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 22), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadDLCIstatsUAS.setStatus('mandatory')
ipadUserStatsTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3), )
if mibBuilder.loadTexts: ipadUserStatsTable.setStatus('optional')
ipadUserStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1), ).setIndexNames((0, "IPAD-MIB", "ipadUserStatsIndex"), (0, "IPAD-MIB", "ipadUserStatsPeriod"))
if mibBuilder.loadTexts: ipadUserStatsEntry.setStatus('mandatory')
ipadUserStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserStatsIndex.setStatus('mandatory')
ipadUserStatsPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=NamedValues(("userStatsSummary", 1), ("userStatsCurrent", 2), ("userStatsperiod1", 3), ("userStatsperiod2", 4), ("userStatsperiod3", 5), ("userStatsperiod4", 6), ("userStatsperiod5", 7), ("userStatsperiod6", 8), ("userStatsperiod7", 9), ("userStatsperiod8", 10), ("userStatsperiod9", 11), ("userStatsperiod10", 12), ("userStatsperiod11", 13), ("userStatsperiod12", 14), ("userStatsperiod13", 15), ("userStatsperiod14", 16), ("userStatsperiod15", 17), ("userStatsperiod16", 18), ("userStatsperiod17", 19), ("userStatsperiod18", 20), ("userStatsperiod19", 21), ("userStatsperiod20", 22), ("userStatsperiod21", 23), ("userStatsperiod22", 24), ("userStatsperiod23", 25), ("userStatsperiod24", 26), ("userStatsperiod25", 27), ("userStatsperiod26", 28), ("userStatsperiod27", 29), ("userStatsperiod28", 30), ("userStatsperiod29", 31), ("userStatsperiod30", 32), ("userStatsperiod31", 33), ("userStatsperiod32", 34), ("userStatsperiod33", 35), ("userStatsperiod34", 36), ("userStatsperiod35", 37), ("userStatsperiod36", 38), ("userStatsperiod37", 39), ("userStatsperiod38", 40), ("userStatsperiod39", 41), ("userStatsperiod40", 42), ("userStatsperiod41", 43), ("userStatsperiod42", 44), ("userStatsperiod43", 45), ("userStatsperiod44", 46), ("userStatsperiod45", 47), ("userStatsperiod46", 48), ("userStatsperiod47", 49), ("userStatsperiod48", 50), ("userStatsperiod49", 51), ("userStatsperiod50", 52), ("userStatsperiod51", 53), ("userStatsperiod52", 54), ("userStatsperiod53", 55), ("userStatsperiod54", 56), ("userStatsperiod55", 57), ("userStatsperiod56", 58), ("userStatsperiod57", 59), ("userStatsperiod58", 60), ("userStatsperiod59", 61), ("userStatsperiod60", 62), ("userStatsperiod61", 63), ("userStatsperiod62", 64), ("userStatsperiod63", 65), ("userStatsperiod64", 66), ("userStatsperiod65", 67), ("userStatsperiod66", 68), ("userStatsperiod67", 69), ("userStatsperiod68", 70), ("userStatsperiod69", 71), ("userStatsperiod70", 72), ("userStatsperiod71", 73), ("userStatsperiod72", 74), ("userStatsperiod73", 75), ("userStatsperiod74", 76), ("userStatsperiod75", 77), ("userStatsperiod76", 78), ("userStatsperiod77", 79), ("userStatsperiod78", 80), ("userStatsperiod79", 81), ("userStatsperiod80", 82), ("userStatsperiod81", 83), ("userStatsperiod82", 84), ("userStatsperiod83", 85), ("userStatsperiod84", 86), ("userStatsperiod85", 87), ("userStatsperiod86", 88), ("userStatsperiod87", 89), ("userStatsperiod88", 90), ("userStatsperiod89", 91), ("userStatsperiod90", 92), ("userStatsperiod91", 93), ("userStatsperiod92", 94), ("userStatsperiod93", 95), ("userStatsperiod94", 96), ("userStatsperiod95", 97), ("userStatsperiod96", 98)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserStatsPeriod.setStatus('mandatory')
ipadUserStatsTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserStatsTxFrames.setStatus('mandatory')
ipadUserStatsRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserStatsRxFrames.setStatus('mandatory')
ipadUserStatsTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserStatsTxOctets.setStatus('mandatory')
ipadUserStatsRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserStatsRxOctets.setStatus('mandatory')
ipadUserStatsTxRatePeak = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserStatsTxRatePeak.setStatus('mandatory')
ipadUserStatsTxRateAverage = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadUserStatsTxRateAverage.setStatus('mandatory')
ipadIPTopNStatsTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4), )
if mibBuilder.loadTexts: ipadIPTopNStatsTable.setStatus('optional')
ipadIPTopNStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1), ).setIndexNames((0, "IPAD-MIB", "ipadIPTopNStatsIndex"))
if mibBuilder.loadTexts: ipadIPTopNStatsEntry.setStatus('mandatory')
ipadIPTopNStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadIPTopNStatsIndex.setStatus('mandatory')
ipadIPTopNStatsAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadIPTopNStatsAddress.setStatus('mandatory')
ipadIPTopNStatsTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadIPTopNStatsTimestamp.setStatus('mandatory')
ipadIPTopNStatsRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadIPTopNStatsRxFrames.setStatus('mandatory')
ipadIPTopNStatsRxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadIPTopNStatsRxOctets.setStatus('mandatory')
ipadIPTopNStatsTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadIPTopNStatsTxFrames.setStatus('mandatory')
ipadIPTopNStatsTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadIPTopNStatsTxOctets.setStatus('mandatory')
ipadPktSwOperatingMode = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("tdm", 2), ("monitor", 3), ("packet", 4), ("remoteConfig", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwOperatingMode.setStatus('mandatory')
ipadPktSwCfgTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2), )
if mibBuilder.loadTexts: ipadPktSwCfgTable.setStatus('optional')
ipadPktSwCfgTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1), ).setIndexNames((0, "IPAD-MIB", "ipadPktSwCfgService"))
if mibBuilder.loadTexts: ipadPktSwCfgTableEntry.setStatus('mandatory')
ipadPktSwCfgService = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadPktSwCfgService.setStatus('mandatory')
ipadPktSwCfgInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("uni", 1), ("ni", 2), ("nni", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgInterfaceType.setStatus('mandatory')
ipadPktSwCfgLnkMgmtType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("auto", 2), ("ccitt", 3), ("ansi", 4), ("lmi", 5), ("none", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgLnkMgmtType.setStatus('mandatory')
ipadPktSwCfgMaxFrameSize = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgMaxFrameSize.setStatus('mandatory')
ipadPktSwCfgnN1 = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgnN1.setStatus('mandatory')
ipadPktSwCfgnN2 = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgnN2.setStatus('mandatory')
ipadPktSwCfgnN3 = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgnN3.setStatus('mandatory')
ipadPktSwCfgnT1 = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgnT1.setStatus('mandatory')
ipadPktSwCfgDefCIR = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgDefCIR.setStatus('mandatory')
ipadPktSwCfgDefExBurst = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 10), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgDefExBurst.setStatus('mandatory')
ipadPktSwCfgCIREE = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgCIREE.setStatus('mandatory')
ipadPktSwCfgLinkInjection = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("standard", 2), ("buffered", 3), ("forced", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgLinkInjection.setStatus('mandatory')
ipadPktSwCfgAutoDiagnostic = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgAutoDiagnostic.setStatus('mandatory')
ipadPktSwCfgAutoDiscovery = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("no", 2), ("yes", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgAutoDiscovery.setStatus('mandatory')
ipadPktSwCfgMgmtDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4096))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadPktSwCfgMgmtDLCI.setStatus('mandatory')
ipadTrapDestTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1), )
if mibBuilder.loadTexts: ipadTrapDestTable.setStatus('optional')
ipadTrapDestTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadTrapDestIndex"))
if mibBuilder.loadTexts: ipadTrapDestTableEntry.setStatus('mandatory')
ipadTrapDestIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadTrapDestIndex.setStatus('mandatory')
ipadTrapDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadTrapDestination.setStatus('mandatory')
ipadFrPortRxInvalidFramesExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25000))
ipadFrPortRxThroughputExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25001))
ipadFrPortTxThroughputExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25002))
ipadDLCItxCIRexceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25003))
ipadDLCItxBEexceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25004))
ipadDLCIRxCongestionExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25005))
ipadUserTxExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25006))
ipadDlciRxBECNinCIRAlarm = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25007))
ipadDlciUASExceeded = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25008))
ipadserialDteDTRAlarmExists = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25009))
ipadt1e1ESAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25010))
ipadt1e1SESAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25011))
ipadt1e1LOSSAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25012))
ipadt1e1UASAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25013))
ipadt1e1CSSAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25014))
ipadt1e1BPVSAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25015))
ipadt1e1OOFSAlarmDeclared = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25016))
ipadt1e1AISAlarmExists = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25017))
ipadt1e1RASAlarmExists = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25018))
ipadDLCIremoteSOSAlarm = NotificationType((1, 3, 6, 1, 4, 1, 321, 100) + (0,25019))
ipadMiscPortSettings = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1), )
if mibBuilder.loadTexts: ipadMiscPortSettings.setStatus('optional')
ipadMiscPortSettingsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadMiscPortSettingsIndex"))
if mibBuilder.loadTexts: ipadMiscPortSettingsEntry.setStatus('mandatory')
ipadMiscPortSettingsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("supervisor", 1), ("network1", 2), ("network2", 3), ("user1", 4), ("user2", 5), ("ethernet", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadMiscPortSettingsIndex.setStatus('mandatory')
ipadMiscPortSettingsSerialType = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("dce", 2), ("dte", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadMiscPortSettingsSerialType.setStatus('mandatory')
ipadMiscClearStatusCounts = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("clear", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadMiscClearStatusCounts.setStatus('mandatory')
ipadSoftKeyTable = MibTable((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1), )
if mibBuilder.loadTexts: ipadSoftKeyTable.setStatus('mandatory')
ipadSoftKeyTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1), ).setIndexNames((0, "IPAD-MIB", "ipadSoftKeyIndex"))
if mibBuilder.loadTexts: ipadSoftKeyTableEntry.setStatus('mandatory')
ipadSoftKeyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadSoftKeyIndex.setStatus('mandatory')
ipadSoftKeyAcronym = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 3))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadSoftKeyAcronym.setStatus('mandatory')
ipadSoftKeyDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadSoftKeyDescription.setStatus('mandatory')
ipadSoftKeyExpirationDate = MibTableColumn((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readonly")
if mibBuilder.loadTexts: ipadSoftKeyExpirationDate.setStatus('mandatory')
ipadSoftKeyEntry = MibScalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipadSoftKeyEntry.setStatus('mandatory')
mibBuilder.exportSymbols("IPAD-MIB", ipadFrPortStatsService=ipadFrPortStatsService, ipadt1e1SESAlarmDeclared=ipadt1e1SESAlarmDeclared, ipadDLCIrxCongAlarm=ipadDLCIrxCongAlarm, ipadTrapDest=ipadTrapDest, ipadPPPPAPTable=ipadPPPPAPTable, ipadEndpointDLCInumber=ipadEndpointDLCInumber, ipadDLCIstatsRxDE=ipadDLCIstatsRxDE, ipadPktSwCfgLinkInjection=ipadPktSwCfgLinkInjection, ipadPPPCHAPTable=ipadPPPCHAPTable, ipadDLCItxCIRexceeded=ipadDLCItxCIRexceeded, ipadPktSwCfgMaxFrameSize=ipadPktSwCfgMaxFrameSize, ipadFrPortStatsPeriod=ipadFrPortStatsPeriod, ipadIPTopNStatsRxOctets=ipadIPTopNStatsRxOctets, ipadEndpointType=ipadEndpointType, ipadFrPortStatsRxInvalid=ipadFrPortStatsRxInvalid, ipadPPPCfgAllowCHAP=ipadPPPCfgAllowCHAP, ipadFrPortStatsRxMgmtOctets=ipadFrPortStatsRxMgmtOctets, ipadDLCIstatsDelayAverage=ipadDLCIstatsDelayAverage, ipadPPPCfgAllowPAP=ipadPPPCfgAllowPAP, ipadDlciUASExceeded=ipadDlciUASExceeded, ipadUserTable=ipadUserTable, ipadDLCIstatsDelayPeak=ipadDLCIstatsDelayPeak, ipadMiscPortSettings=ipadMiscPortSettings, ipadDLCIBe=ipadDLCIBe, ipadFrPort=ipadFrPort, ipadFrPortStatsRxFECN=ipadFrPortStatsRxFECN, ipadModemDialNumber=ipadModemDialNumber, ipadIPTopNStatsAddress=ipadIPTopNStatsAddress, ipadChannelTableEntry=ipadChannelTableEntry, ipadDLCItxExCIRThreshold=ipadDLCItxExCIRThreshold, ipadModemDataDialingScript=ipadModemDataDialingScript, ipadChannelRate=ipadChannelRate, ipadDLCIremoteSOSAlarm=ipadDLCIremoteSOSAlarm, ipadUserIPStatGrantedReportSize=ipadUserIPStatGrantedReportSize, ipadModemDialUsername=ipadModemDialUsername, ipadPPPPAPTablePassword=ipadPPPPAPTablePassword, ipadUserStatsTxRateAverage=ipadUserStatsTxRateAverage, ipadDLCITableEntry=ipadDLCITableEntry, ipadDLCIcongestion=ipadDLCIcongestion, ipadDLCIstatsAverage=ipadDLCIstatsAverage, ipadPktSwCfgLnkMgmtType=ipadPktSwCfgLnkMgmtType, ipadServiceifIndex=ipadServiceifIndex, ipadTrapDestTableEntry=ipadTrapDestTableEntry, ipadUserFilterByDLCI=ipadUserFilterByDLCI, ipadUserIPPort=ipadUserIPPort, hbu=hbu, ipadFrPortActive=ipadFrPortActive, ipadUserStatsTxRatePeak=ipadUserStatsTxRatePeak, ipadUserStatsTable=ipadUserStatsTable, ipadChannelTable=ipadChannelTable, ipadDLCIrxBECNinCIR=ipadDLCIrxBECNinCIR, ipadFrPortRxInvAlmThreshold=ipadFrPortRxInvAlmThreshold, ipadDLCICIR=ipadDLCICIR, ipadFrPortStatsTxFrames=ipadFrPortStatsTxFrames, ipadPktSwCfgnT1=ipadPktSwCfgnT1, ipadFrPortService=ipadFrPortService, ipadDLCIrxMon=ipadDLCIrxMon, ipadEndpointTableEntry=ipadEndpointTableEntry, ipadModem=ipadModem, ipadChannelifIndex=ipadChannelifIndex, ipadEndpointRefSLP=ipadEndpointRefSLP, ipadPPPCHAPTableSecret=ipadPPPCHAPTableSecret, ipadUserStatsRxOctets=ipadUserStatsRxOctets, ipadMiscPortSettingsIndex=ipadMiscPortSettingsIndex, ipadChannelService=ipadChannelService, ipadModemDataSetupScript=ipadModemDataSetupScript, ipadDLCItxExCIRAlarm=ipadDLCItxExCIRAlarm, ipadPPPCfgNegMagic=ipadPPPCfgNegMagic, ipadPPPCfgNegIpAddress=ipadPPPCfgNegIpAddress, ipadModemDialDataIndex=ipadModemDialDataIndex, ipadDLCIstatsTxOctets=ipadDLCIstatsTxOctets, ipadEndpointService=ipadEndpointService, ipadUserFilterByIPAddress=ipadUserFilterByIPAddress, ipadDLCIstatsRxFrames=ipadDLCIstatsRxFrames, verilink=verilink, ipadDLCIenableDelay=ipadDLCIenableDelay, ipadDLCIremoteEquipActive=ipadDLCIremoteEquipActive, ipadDlciRxBECNinCIRAlarm=ipadDlciRxBECNinCIRAlarm, ipadPPPCfgNegPAP=ipadPPPCfgNegPAP, ipadDLCIUASThreshold=ipadDLCIUASThreshold, ipadPPPCfgAuthChallengeInterval=ipadPPPCfgAuthChallengeInterval, ipadDLCItxExBeThreshold=ipadDLCItxExBeThreshold, ipadDLCInumber=ipadDLCInumber, ipadPktSwCfgnN1=ipadPktSwCfgnN1, ipadModemDataTable=ipadModemDataTable, ipadPPPCfgDialMode=ipadPPPCfgDialMode, ipadPPPCfgCHAPSecret=ipadPPPCfgCHAPSecret, ipadModemDialAbortTimer=ipadModemDialAbortTimer, ipadPPPCfgNegCompression=ipadPPPCfgNegCompression, ipadDLCIstatsTxMgmtOctets=ipadDLCIstatsTxMgmtOctets, ipadPPPCfgCHAPUsername=ipadPPPCfgCHAPUsername, ipadModemDataTableIndex=ipadModemDataTableIndex, ipadDLCIstatsRxBECN=ipadDLCIstatsRxBECN, ipadPktSwCfgnN2=ipadPktSwCfgnN2, ipadIPTopNStatsTxOctets=ipadIPTopNStatsTxOctets, ipadFrPortTable=ipadFrPortTable, ipadDLCIstatsTxMgmtFrames=ipadDLCIstatsTxMgmtFrames, ipadDLCIstatsService=ipadDLCIstatsService, ipadPktSwCfgAutoDiscovery=ipadPktSwCfgAutoDiscovery, ipadPktSwCfgService=ipadPktSwCfgService, ipadFrPortStatsRxFrames=ipadFrPortStatsRxFrames, ipadPPPCfgNegIPCPCompression=ipadPPPCfgNegIPCPCompression, ipadModemDialDelayBeforeRedial=ipadModemDialDelayBeforeRedial, ipadFrPortStatsRxMgmtFrames=ipadFrPortStatsRxMgmtFrames, ipadUserIPStatStartTime=ipadUserIPStatStartTime, ipadEndpointRemoteIpMask=ipadEndpointRemoteIpMask, ipadEndpointName=ipadEndpointName, ipadUserTxAlmThreshold=ipadUserTxAlmThreshold, ipadPPPCfgACCM=ipadPPPCfgACCM, ipadTrapDestination=ipadTrapDestination, ipadMiscPortSettingsEntry=ipadMiscPortSettingsEntry, ipadUserIPStatDiscardType=ipadUserIPStatDiscardType, ipadFrPortStatsTxOctets=ipadFrPortStatsTxOctets, ipadFrPortStatsTxMgmtOctets=ipadFrPortStatsTxMgmtOctets, ipadEndpointDeleteEndpoint=ipadEndpointDeleteEndpoint, ipadRouter=ipadRouter, ipadUserDLCI=ipadUserDLCI, ipadDLCIencapsulation=ipadDLCIencapsulation, ipadModemDataAnswerScript=ipadModemDataAnswerScript, ipadPPPCfgPeerIpAddress=ipadPPPCfgPeerIpAddress, ipadEndpoint=ipadEndpoint, ipadServiceTableEntry=ipadServiceTableEntry, ipadFrPortRxInvAlmAlarm=ipadFrPortRxInvAlmAlarm, ipadFrPortTxAlmThreshold=ipadFrPortTxAlmThreshold, ipadFrPortRxAlmAlarm=ipadFrPortRxAlmAlarm, ipadEndpointBackup=ipadEndpointBackup, ipadUserTxAlmAlarm=ipadUserTxAlmAlarm, ipadDLCIstatsTable=ipadDLCIstatsTable, ipadTrapDestIndex=ipadTrapDestIndex, ipadDLCIstatsRxOctets=ipadDLCIstatsRxOctets, ipadDLCIstatsTxExcessBe=ipadDLCIstatsTxExcessBe, ipad=ipad, ipadServicePair=ipadServicePair, ipadPPPCfgSubnetMask=ipadPPPCfgSubnetMask, ipadPktSwCfgCIREE=ipadPktSwCfgCIREE, ipadSoftKeyExpirationDate=ipadSoftKeyExpirationDate, ipadPPPCfgInactivityTimer=ipadPPPCfgInactivityTimer, ipadUserIPMask=ipadUserIPMask, ipadPPPCHAPTableIndex=ipadPPPCHAPTableIndex, ipadIPTopNStatsIndex=ipadIPTopNStatsIndex, ipadDLCIstatsRxMgmtOctets=ipadDLCIstatsRxMgmtOctets, ipadFrPortLMIType=ipadFrPortLMIType, ipadModemDialTableEntry=ipadModemDialTableEntry, ipadDLCIstatsTxFrames=ipadDLCIstatsTxFrames, ipadt1e1CSSAlarmDeclared=ipadt1e1CSSAlarmDeclared, ipadModemDataTableEntry=ipadModemDataTableEntry, ipadPktSwCfgDefExBurst=ipadPktSwCfgDefExBurst, ipadUserTxExceeded=ipadUserTxExceeded, ipadSoftKeyAcronym=ipadSoftKeyAcronym, ipadDLCItxExBeAlarm=ipadDLCItxExBeAlarm, ipadChannelPair=ipadChannelPair, ipadPktSwCfgnN3=ipadPktSwCfgnN3, ipadSoftKeyEntry=ipadSoftKeyEntry, ipadEndpointLastChange=ipadEndpointLastChange, ipadPPPCfgTableEntry=ipadPPPCfgTableEntry, ipadDLCIstatsPeriod=ipadDLCIstatsPeriod, ipadDLCIstatsUAS=ipadDLCIstatsUAS, ipadFrPortStatsRxStatResp=ipadFrPortStatsRxStatResp, ipadUser=ipadUser, ipadFrPortStatsAverage=ipadFrPortStatsAverage, ipadPktSwOperatingMode=ipadPktSwOperatingMode, ipadModemDialLoginScript=ipadModemDialLoginScript, ipadDLCIUASAlarm=ipadDLCIUASAlarm, ipadUserStatsTxOctets=ipadUserStatsTxOctets, ipadDLCIactive=ipadDLCIactive, ipadUserIndex=ipadUserIndex, ipadEndpointRemoteIpAddr=ipadEndpointRemoteIpAddr, ipadDLCIremoteUnit=ipadDLCIremoteUnit, ipadServiceType=ipadServiceType, ipadPPPCfgNegMRU=ipadPPPCfgNegMRU, ipadUserFilterByIPPort=ipadUserFilterByIPPort, ipadFrPortStatsPeak=ipadFrPortStatsPeak, ipadDLCIstatsRxFECN=ipadDLCIstatsRxFECN, ipadFrPortStatsTxMgmtFrames=ipadFrPortStatsTxMgmtFrames, ipadPktSwitch=ipadPktSwitch, ipadDLCIpropOffset=ipadDLCIpropOffset, ipadPPPCfgService=ipadPPPCfgService, ipadPPPCfgNegCHAP=ipadPPPCfgNegCHAP, ipadService=ipadService, ipadPPPPAPTableEntry=ipadPPPPAPTableEntry, ipadIPTopNStatsTable=ipadIPTopNStatsTable, ipadDLCItxBEexceeded=ipadDLCItxBEexceeded, ipadChannel=ipadChannel, ipadPPPCfgNegAddress=ipadPPPCfgNegAddress, ipadIPTopNStatsRxFrames=ipadIPTopNStatsRxFrames, ipadDLCIstatsDLCI=ipadDLCIstatsDLCI, ipadt1e1RASAlarmExists=ipadt1e1RASAlarmExists, ipadPktSwCfgTable=ipadPktSwCfgTable, ipadUserIPStatTimeRemaining=ipadUserIPStatTimeRemaining, ipadModemDialPassword=ipadModemDialPassword, ipadUserStatsTxFrames=ipadUserStatsTxFrames, ipadModemDataHangupScript=ipadModemDataHangupScript, ipadt1e1ESAlarmDeclared=ipadt1e1ESAlarmDeclared, ipadEndpointTable=ipadEndpointTable, ipadDLCIstatsRxMgmtFrames=ipadDLCIstatsRxMgmtFrames, ipadt1e1AISAlarmExists=ipadt1e1AISAlarmExists, ipadPPPCfgPortIpAddress=ipadPPPCfgPortIpAddress, ipadUserIPStatRequestedReportSize=ipadUserIPStatRequestedReportSize, ipadDLCIminBC=ipadDLCIminBC, ipadt1e1BPVSAlarmDeclared=ipadt1e1BPVSAlarmDeclared, ipadserialDteDTRAlarmExists=ipadserialDteDTRAlarmExists, ipadMisc=ipadMisc, ipadPPPPAPTableIndex=ipadPPPPAPTableIndex, ipadDLCITable=ipadDLCITable, ipadServiceIndex=ipadServiceIndex, ipadDLCIinBand=ipadDLCIinBand, ipadDLCI=ipadDLCI, ipadPktSwCfgMgmtDLCI=ipadPktSwCfgMgmtDLCI, ipadFrPortStatsTxStatResp=ipadFrPortStatsTxStatResp, ipadEndpointForward=ipadEndpointForward, ipadUserStatsEntry=ipadUserStatsEntry, ipadPktSwCfgAutoDiagnostic=ipadPktSwCfgAutoDiagnostic, ipadTrapDestTable=ipadTrapDestTable, ipadModemDataModemName=ipadModemDataModemName, ipadMiscPortSettingsSerialType=ipadMiscPortSettingsSerialType, ipadPPPCfgTable=ipadPPPCfgTable, ipadUserIPStatReportNumber=ipadUserIPStatReportNumber, ipadDLCIproprietary=ipadDLCIproprietary, ipadIPTopNStatsTimestamp=ipadIPTopNStatsTimestamp, ipadServiceAddService=ipadServiceAddService, ipadUserService=ipadUserService, ipadFrPortTxThroughputExceeded=ipadFrPortTxThroughputExceeded, ipadPPPCfgPAPPassword=ipadPPPCfgPAPPassword, ipadIPTopNStatsTxFrames=ipadIPTopNStatsTxFrames, ipadPktSwCfgInterfaceType=ipadPktSwCfgInterfaceType, ipadFrPortRxInvalidFramesExceeded=ipadFrPortRxInvalidFramesExceeded, ipadModemDialTableIndex=ipadModemDialTableIndex, ipadFrPortStatsTxStatInq=ipadFrPortStatsTxStatInq, ipadFrPortTableEntry=ipadFrPortTableEntry, ipadPPPCfgNegACCM=ipadPPPCfgNegACCM, ipadPPPCfgPAPUsername=ipadPPPCfgPAPUsername, ipadModemDialRedialAttempts=ipadModemDialRedialAttempts, ipadFrPortStatsEntry=ipadFrPortStatsEntry, ipadDLCIservice=ipadDLCIservice, ipadDLCIRxCongestionExceeded=ipadDLCIRxCongestionExceeded, ipadSvcAware=ipadSvcAware, ipadDLCIremote=ipadDLCIremote, ipadEndpointAddEndpoint=ipadEndpointAddEndpoint, ipadModemDialTable=ipadModemDialTable, ipadIPTopNStatsEntry=ipadIPTopNStatsEntry, ipadPPPCHAPTableUsername=ipadPPPCHAPTableUsername, ipadUserIPStatTimeDuration=ipadUserIPStatTimeDuration, ipadPPPCfgMRU=ipadPPPCfgMRU, ipadDLCIstatsRoundTripTimeouts=ipadDLCIstatsRoundTripTimeouts, ipadDLCILastChange=ipadDLCILastChange, ipadt1e1UASAlarmDeclared=ipadt1e1UASAlarmDeclared, ipadDLCIdEctrl=ipadDLCIdEctrl, ipadDLCIstatsEntry=ipadDLCIstatsEntry, ipadSoftKey=ipadSoftKey, ipadSoftKeyDescription=ipadSoftKeyDescription, ipadFrPortStatsRxStatInq=ipadFrPortStatsRxStatInq, ipadFrPortStatsTable=ipadFrPortStatsTable, ipadPPP=ipadPPP, ipadUserStatsPeriod=ipadUserStatsPeriod)
mibBuilder.exportSymbols("IPAD-MIB", ipadFrPortRxAlmThreshold=ipadFrPortRxAlmThreshold, ipadPPPPAPTableUsername=ipadPPPPAPTableUsername, ipadFrPortStatsRxBECN=ipadFrPortStatsRxBECN, ipadFrPortStatsRxInvLMI=ipadFrPortStatsRxInvLMI, ipadDLCIstatsPeak=ipadDLCIstatsPeak, ipadFrPortStatsRxOctets=ipadFrPortStatsRxOctets, ipadt1e1OOFSAlarmDeclared=ipadt1e1OOFSAlarmDeclared, ipadSoftKeyIndex=ipadSoftKeyIndex, ipadUserTableEntry=ipadUserTableEntry, ipadDLCIrxCongThreshold=ipadDLCIrxCongThreshold, ipadServiceTable=ipadServiceTable, ipadUserStatsRxFrames=ipadUserStatsRxFrames, ipadUserIPAddress=ipadUserIPAddress, ipadPPPCfgNegotiationInit=ipadPPPCfgNegotiationInit, ipadPktSwCfgDefCIR=ipadPktSwCfgDefCIR, ipadFrPortRxThroughputExceeded=ipadFrPortRxThroughputExceeded, ipadSoftKeyTableEntry=ipadSoftKeyTableEntry, ipadEndpointIndex=ipadEndpointIndex, ipadPktSwCfgTableEntry=ipadPktSwCfgTableEntry, ipadChannelIndex=ipadChannelIndex, ipadServiceDeleteService=ipadServiceDeleteService, ipadt1e1LOSSAlarmDeclared=ipadt1e1LOSSAlarmDeclared, ipadSoftKeyTable=ipadSoftKeyTable, ipadMiscClearStatusCounts=ipadMiscClearStatusCounts, ipadFrPortLMIMode=ipadFrPortLMIMode, ipadFrPortTxAlmAlarm=ipadFrPortTxAlmAlarm, ipadDLCIstatsTxExcessCIR=ipadDLCIstatsTxExcessCIR, ipadUserStatsIndex=ipadUserStatsIndex, ipadPPPCHAPTableEntry=ipadPPPCHAPTableEntry)
|
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_range_constraint, value_size_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, time_ticks, counter32, counter64, notification_type, gauge32, iso, bits, enterprises, mib_identifier, object_identity, unsigned32, integer32, ip_address, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'TimeTicks', 'Counter32', 'Counter64', 'NotificationType', 'Gauge32', 'iso', 'Bits', 'enterprises', 'MibIdentifier', 'ObjectIdentity', 'Unsigned32', 'Integer32', 'IpAddress', 'NotificationType')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
verilink = mib_identifier((1, 3, 6, 1, 4, 1, 321))
hbu = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100))
ipad = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1))
ipad_fr_port = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 1))
ipad_service = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 2))
ipad_channel = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 3))
ipad_dlci = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 4))
ipad_endpoint = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 5))
ipad_user = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 6))
ipad_ppp = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 7))
ipad_modem = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 8))
ipad_svc_aware = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 9))
ipad_pkt_switch = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 10))
ipad_trap_dest = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 11))
ipad_misc = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 12))
ipad_router = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 13))
ipad_soft_key = mib_identifier((1, 3, 6, 1, 4, 1, 321, 100, 1, 14))
ipad_fr_port_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1))
if mibBuilder.loadTexts:
ipadFrPortTable.setStatus('optional')
ipad_fr_port_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadFrPortService'))
if mibBuilder.loadTexts:
ipadFrPortTableEntry.setStatus('mandatory')
ipad_fr_port_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortService.setStatus('mandatory')
ipad_fr_port_active = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortActive.setStatus('mandatory')
ipad_fr_port_lmi_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('ccitt', 2), ('ansi', 3), ('lmi', 4), ('none', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortLMIType.setStatus('mandatory')
ipad_fr_port_lmi_mode = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('sourcing', 2), ('monitoring', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortLMIMode.setStatus('mandatory')
ipad_fr_port_rx_inv_alm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadFrPortRxInvAlmThreshold.setStatus('mandatory')
ipad_fr_port_rx_inv_alm_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortRxInvAlmAlarm.setStatus('mandatory')
ipad_fr_port_tx_alm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 7), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadFrPortTxAlmThreshold.setStatus('mandatory')
ipad_fr_port_tx_alm_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortTxAlmAlarm.setStatus('mandatory')
ipad_fr_port_rx_alm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadFrPortRxAlmThreshold.setStatus('mandatory')
ipad_fr_port_rx_alm_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortRxAlmAlarm.setStatus('mandatory')
ipad_service_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1))
if mibBuilder.loadTexts:
ipadServiceTable.setStatus('optional')
ipad_service_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadServiceIndex'))
if mibBuilder.loadTexts:
ipadServiceTableEntry.setStatus('mandatory')
ipad_service_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadServiceIndex.setStatus('mandatory')
ipad_serviceif_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('disabled', 0), ('supervisor', 1), ('network1', 2), ('network2', 3), ('user1', 4), ('user2', 5), ('ethernet', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadServiceifIndex.setStatus('mandatory')
ipad_service_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('tdm', 2), ('ppp', 3), ('pppMonitor', 4), ('frameRelay', 5), ('frameRelayMonitor', 6), ('ip', 7), ('serial', 8), ('tty', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadServiceType.setStatus('mandatory')
ipad_service_pair = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadServicePair.setStatus('mandatory')
ipad_service_add_service = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('addService', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadServiceAddService.setStatus('mandatory')
ipad_service_delete_service = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 2, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadServiceDeleteService.setStatus('mandatory')
ipad_channel_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1))
if mibBuilder.loadTexts:
ipadChannelTable.setStatus('optional')
ipad_channel_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadChannelifIndex'), (0, 'IPAD-MIB', 'ipadChannelIndex'))
if mibBuilder.loadTexts:
ipadChannelTableEntry.setStatus('mandatory')
ipad_channelif_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('supervisor', 1), ('network1', 2), ('network2', 3), ('user1', 4), ('user2', 5), ('ethernet', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadChannelifIndex.setStatus('mandatory')
ipad_channel_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadChannelIndex.setStatus('mandatory')
ipad_channel_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadChannelService.setStatus('mandatory')
ipad_channel_pair = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadChannelPair.setStatus('mandatory')
ipad_channel_rate = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('rate56', 2), ('rate64', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadChannelRate.setStatus('mandatory')
ipad_dlci_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1))
if mibBuilder.loadTexts:
ipadDLCITable.setStatus('optional')
ipad_dlci_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadDLCIservice'), (0, 'IPAD-MIB', 'ipadDLCInumber'))
if mibBuilder.loadTexts:
ipadDLCITableEntry.setStatus('mandatory')
ipad_dlc_iservice = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIservice.setStatus('mandatory')
ipad_dlc_inumber = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCInumber.setStatus('mandatory')
ipad_dlc_iactive = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3), ('pending', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIactive.setStatus('mandatory')
ipad_dlc_icongestion = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIcongestion.setStatus('mandatory')
ipad_dlc_iremote = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIremote.setStatus('mandatory')
ipad_dlc_iremote_unit = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIremoteUnit.setStatus('mandatory')
ipad_dlc_iremote_equip_active = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('inactive', 2), ('active', 3), ('sosAlarm', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIremoteEquipActive.setStatus('mandatory')
ipad_dlc_iencapsulation = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('rfc1490', 2), ('proprietary', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIencapsulation.setStatus('mandatory')
ipad_dlc_iproprietary = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('ip', 2), ('ipx', 3), ('ethertype', 4), ('none', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIproprietary.setStatus('mandatory')
ipad_dlc_iprop_offset = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 10), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIpropOffset.setStatus('mandatory')
ipad_dlc_iin_band = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIinBand.setStatus('mandatory')
ipad_dlcicir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCICIR.setStatus('mandatory')
ipad_dlci_be = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 13), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIBe.setStatus('mandatory')
ipad_dlc_imin_bc = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 14), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIminBC.setStatus('mandatory')
ipad_dlc_irx_mon = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIrxMon.setStatus('mandatory')
ipad_dlc_id_ectrl = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIdEctrl.setStatus('mandatory')
ipad_dlc_ienable_delay = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIenableDelay.setStatus('mandatory')
ipad_dlc_itx_ex_cir_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 18), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCItxExCIRThreshold.setStatus('mandatory')
ipad_dlc_itx_ex_cir_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCItxExCIRAlarm.setStatus('mandatory')
ipad_dlc_itx_ex_be_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 20), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCItxExBeThreshold.setStatus('mandatory')
ipad_dlc_itx_ex_be_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCItxExBeAlarm.setStatus('mandatory')
ipad_dlc_irx_cong_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 22), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIrxCongThreshold.setStatus('mandatory')
ipad_dlc_irx_cong_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIrxCongAlarm.setStatus('mandatory')
ipad_dlc_irx_bec_nin_cir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('alarmCondition', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIrxBECNinCIR.setStatus('mandatory')
ipad_dlciuas_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 25), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadDLCIUASThreshold.setStatus('mandatory')
ipad_dlciuas_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 1, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIUASAlarm.setStatus('mandatory')
ipad_dlci_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 4, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCILastChange.setStatus('mandatory')
ipad_endpoint_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1))
if mibBuilder.loadTexts:
ipadEndpointTable.setStatus('optional')
ipad_endpoint_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadEndpointIndex'))
if mibBuilder.loadTexts:
ipadEndpointTableEntry.setStatus('mandatory')
ipad_endpoint_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadEndpointIndex.setStatus('mandatory')
ipad_endpoint_name = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointName.setStatus('mandatory')
ipad_endpoint_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointService.setStatus('mandatory')
ipad_endpoint_dlc_inumber = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointDLCInumber.setStatus('mandatory')
ipad_endpoint_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('local', 2), ('switched', 3), ('ipRoute', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointType.setStatus('mandatory')
ipad_endpoint_forward = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointForward.setStatus('mandatory')
ipad_endpoint_backup = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 7), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointBackup.setStatus('mandatory')
ipad_endpoint_ref_slp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointRefSLP.setStatus('mandatory')
ipad_endpoint_remote_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 9), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointRemoteIpAddr.setStatus('mandatory')
ipad_endpoint_remote_ip_mask = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 1, 1, 10), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointRemoteIpMask.setStatus('mandatory')
ipad_endpoint_add_endpoint = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointAddEndpoint.setStatus('mandatory')
ipad_endpoint_delete_endpoint = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadEndpointDeleteEndpoint.setStatus('mandatory')
ipad_endpoint_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 5, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadEndpointLastChange.setStatus('mandatory')
ipad_user_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1))
if mibBuilder.loadTexts:
ipadUserTable.setStatus('optional')
ipad_user_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadUserIndex'))
if mibBuilder.loadTexts:
ipadUserTableEntry.setStatus('mandatory')
ipad_user_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserIndex.setStatus('mandatory')
ipad_user_filter_by_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserFilterByDLCI.setStatus('mandatory')
ipad_user_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserService.setStatus('mandatory')
ipad_user_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserDLCI.setStatus('mandatory')
ipad_user_filter_by_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserFilterByIPAddress.setStatus('mandatory')
ipad_user_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 6), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserIPAddress.setStatus('mandatory')
ipad_user_ip_mask = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 7), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserIPMask.setStatus('mandatory')
ipad_user_filter_by_ip_port = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserFilterByIPPort.setStatus('mandatory')
ipad_user_ip_port = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(5, 7, 11, 17, 20, 21, 23, 25, 31, 37, 42, 53, 66, 69, 70, 79, 80, 88, 92, 101, 107, 109, 110, 111, 113, 119, 137, 138, 139, 153, 161, 162, 163, 164, 169, 179, 194, 201, 202, 204, 206, 213, 395, 396, 444, 494, 533, 540, 541, 600, 749))).clone(namedValues=named_values(('rje', 5), ('echo', 7), ('systat', 11), ('qotd', 17), ('ftpdata', 20), ('ftp', 21), ('telnet', 23), ('smtp', 25), ('msgauth', 31), ('time', 37), ('nameserver', 42), ('domain', 53), ('sqlnet', 66), ('tftp', 69), ('gopher', 70), ('finger', 79), ('http', 80), ('kerberos', 88), ('npp', 92), ('hostname', 101), ('rtelnet', 107), ('pop2', 109), ('pop3', 110), ('sunrpc', 111), ('auth', 113), ('nntp', 119), ('netbiosns', 137), ('netbiosdgm', 138), ('netbiosssn', 139), ('sgmp', 153), ('snmp', 161), ('snmptrap', 162), ('cmipman', 163), ('cmipagent', 164), ('send', 169), ('bgp', 179), ('irc', 194), ('atrtmp', 201), ('atnbp', 202), ('atecho', 204), ('atzis', 206), ('ipx', 213), ('netcp', 395), ('netwareip', 396), ('snpp', 444), ('povray', 494), ('netwall', 533), ('uucp', 540), ('uucprlogin', 541), ('ipcserver', 600), ('kerberosadm', 749)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserIPPort.setStatus('mandatory')
ipad_user_tx_alm_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 10), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserTxAlmThreshold.setStatus('mandatory')
ipad_user_tx_alm_alarm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('noAlarm', 2), ('thresholdExceeded', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserTxAlmAlarm.setStatus('mandatory')
ipad_user_ip_stat_time_remaining = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserIPStatTimeRemaining.setStatus('mandatory')
ipad_user_ip_stat_time_duration = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserIPStatTimeDuration.setStatus('mandatory')
ipad_user_ip_stat_start_time = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserIPStatStartTime.setStatus('mandatory')
ipad_user_ip_stat_requested_report_size = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserIPStatRequestedReportSize.setStatus('mandatory')
ipad_user_ip_stat_granted_report_size = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserIPStatGrantedReportSize.setStatus('mandatory')
ipad_user_ip_stat_report_number = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserIPStatReportNumber.setStatus('mandatory')
ipad_user_ip_stat_discard_type = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 6, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('byTime', 1), ('byFrames', 2), ('byOctets', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadUserIPStatDiscardType.setStatus('mandatory')
ipad_ppp_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1))
if mibBuilder.loadTexts:
ipadPPPCfgTable.setStatus('optional')
ipad_ppp_cfg_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadPPPCfgService'))
if mibBuilder.loadTexts:
ipadPPPCfgTableEntry.setStatus('mandatory')
ipad_ppp_cfg_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadPPPCfgService.setStatus('mandatory')
ipad_ppp_cfg_dial_mode = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('direct', 2), ('dialup', 3), ('demanddial', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgDialMode.setStatus('mandatory')
ipad_ppp_cfg_inactivity_timer = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgInactivityTimer.setStatus('mandatory')
ipad_ppp_cfg_negotiation_init = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegotiationInit.setStatus('mandatory')
ipad_ppp_cfg_mru = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgMRU.setStatus('mandatory')
ipad_ppp_cfg_accm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgACCM.setStatus('mandatory')
ipad_ppp_cfg_neg_mru = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegMRU.setStatus('mandatory')
ipad_ppp_cfg_neg_accm = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegACCM.setStatus('mandatory')
ipad_ppp_cfg_neg_magic = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegMagic.setStatus('mandatory')
ipad_ppp_cfg_neg_compression = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegCompression.setStatus('mandatory')
ipad_ppp_cfg_neg_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegAddress.setStatus('mandatory')
ipad_ppp_cfg_neg_pap = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegPAP.setStatus('mandatory')
ipad_ppp_cfg_neg_chap = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegCHAP.setStatus('mandatory')
ipad_ppp_cfg_allow_pap = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgAllowPAP.setStatus('mandatory')
ipad_ppp_cfg_allow_chap = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgAllowCHAP.setStatus('mandatory')
ipad_ppp_cfg_pap_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgPAPUsername.setStatus('mandatory')
ipad_ppp_cfg_pap_password = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 17), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgPAPPassword.setStatus('mandatory')
ipad_ppp_cfg_chap_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 18), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgCHAPUsername.setStatus('mandatory')
ipad_ppp_cfg_chap_secret = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 19), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgCHAPSecret.setStatus('mandatory')
ipad_ppp_cfg_port_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 20), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgPortIpAddress.setStatus('mandatory')
ipad_ppp_cfg_peer_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 21), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgPeerIpAddress.setStatus('mandatory')
ipad_ppp_cfg_neg_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegIpAddress.setStatus('mandatory')
ipad_ppp_cfg_neg_ipcp_compression = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgNegIPCPCompression.setStatus('mandatory')
ipad_ppp_cfg_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 24), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgSubnetMask.setStatus('mandatory')
ipad_ppp_cfg_auth_challenge_interval = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 1, 1, 25), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCfgAuthChallengeInterval.setStatus('mandatory')
ipad_ppppap_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2))
if mibBuilder.loadTexts:
ipadPPPPAPTable.setStatus('optional')
ipad_ppppap_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadPPPPAPTableIndex'))
if mibBuilder.loadTexts:
ipadPPPPAPTableEntry.setStatus('mandatory')
ipad_ppppap_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadPPPPAPTableIndex.setStatus('mandatory')
ipad_ppppap_table_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPPAPTableUsername.setStatus('mandatory')
ipad_ppppap_table_password = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPPAPTablePassword.setStatus('mandatory')
ipad_pppchap_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3))
if mibBuilder.loadTexts:
ipadPPPCHAPTable.setStatus('optional')
ipad_pppchap_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadPPPCHAPTableIndex'))
if mibBuilder.loadTexts:
ipadPPPCHAPTableEntry.setStatus('mandatory')
ipad_pppchap_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadPPPCHAPTableIndex.setStatus('mandatory')
ipad_pppchap_table_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCHAPTableUsername.setStatus('mandatory')
ipad_pppchap_table_secret = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 7, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPPPCHAPTableSecret.setStatus('mandatory')
ipad_modem_dial_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1))
if mibBuilder.loadTexts:
ipadModemDialTable.setStatus('optional')
ipad_modem_dial_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadModemDialTableIndex'))
if mibBuilder.loadTexts:
ipadModemDialTableEntry.setStatus('mandatory')
ipad_modem_dial_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('supervisor', 1), ('network1', 2), ('network2', 3), ('user1', 4), ('user2', 5), ('ethernet', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadModemDialTableIndex.setStatus('mandatory')
ipad_modem_dial_data_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDialDataIndex.setStatus('mandatory')
ipad_modem_dial_number = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDialNumber.setStatus('mandatory')
ipad_modem_dial_abort_timer = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDialAbortTimer.setStatus('mandatory')
ipad_modem_dial_redial_attempts = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDialRedialAttempts.setStatus('mandatory')
ipad_modem_dial_delay_before_redial = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDialDelayBeforeRedial.setStatus('mandatory')
ipad_modem_dial_login_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDialLoginScript.setStatus('mandatory')
ipad_modem_dial_username = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDialUsername.setStatus('mandatory')
ipad_modem_dial_password = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 1, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDialPassword.setStatus('mandatory')
ipad_modem_data_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2))
if mibBuilder.loadTexts:
ipadModemDataTable.setStatus('optional')
ipad_modem_data_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadModemDataTableIndex'))
if mibBuilder.loadTexts:
ipadModemDataTableEntry.setStatus('mandatory')
ipad_modem_data_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadModemDataTableIndex.setStatus('mandatory')
ipad_modem_data_modem_name = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDataModemName.setStatus('mandatory')
ipad_modem_data_setup_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDataSetupScript.setStatus('mandatory')
ipad_modem_data_dialing_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDataDialingScript.setStatus('mandatory')
ipad_modem_data_answer_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDataAnswerScript.setStatus('mandatory')
ipad_modem_data_hangup_script = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 8, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadModemDataHangupScript.setStatus('mandatory')
ipad_fr_port_stats_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1))
if mibBuilder.loadTexts:
ipadFrPortStatsTable.setStatus('optional')
ipad_fr_port_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadFrPortStatsService'), (0, 'IPAD-MIB', 'ipadFrPortStatsPeriod'))
if mibBuilder.loadTexts:
ipadFrPortStatsEntry.setStatus('mandatory')
ipad_fr_port_stats_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsService.setStatus('mandatory')
ipad_fr_port_stats_period = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=named_values(('portStatsSummary', 1), ('portStatsCurrent', 2), ('portStatsperiod1', 3), ('portStatsperiod2', 4), ('portStatsperiod3', 5), ('portStatsperiod4', 6), ('portStatsperiod5', 7), ('portStatsperiod6', 8), ('portStatsperiod7', 9), ('portStatsperiod8', 10), ('portStatsperiod9', 11), ('portStatsperiod10', 12), ('portStatsperiod11', 13), ('portStatsperiod12', 14), ('portStatsperiod13', 15), ('portStatsperiod14', 16), ('portStatsperiod15', 17), ('portStatsperiod16', 18), ('portStatsperiod17', 19), ('portStatsperiod18', 20), ('portStatsperiod19', 21), ('portStatsperiod20', 22), ('portStatsperiod21', 23), ('portStatsperiod22', 24), ('portStatsperiod23', 25), ('portStatsperiod24', 26), ('portStatsperiod25', 27), ('portStatsperiod26', 28), ('portStatsperiod27', 29), ('portStatsperiod28', 30), ('portStatsperiod29', 31), ('portStatsperiod30', 32), ('portStatsperiod31', 33), ('portStatsperiod32', 34), ('portStatsperiod33', 35), ('portStatsperiod34', 36), ('portStatsperiod35', 37), ('portStatsperiod36', 38), ('portStatsperiod37', 39), ('portStatsperiod38', 40), ('portStatsperiod39', 41), ('portStatsperiod40', 42), ('portStatsperiod41', 43), ('portStatsperiod42', 44), ('portStatsperiod43', 45), ('portStatsperiod44', 46), ('portStatsperiod45', 47), ('portStatsperiod46', 48), ('portStatsperiod47', 49), ('portStatsperiod48', 50), ('portStatsperiod49', 51), ('portStatsperiod50', 52), ('portStatsperiod51', 53), ('portStatsperiod52', 54), ('portStatsperiod53', 55), ('portStatsperiod54', 56), ('portStatsperiod55', 57), ('portStatsperiod56', 58), ('portStatsperiod57', 59), ('portStatsperiod58', 60), ('portStatsperiod59', 61), ('portStatsperiod60', 62), ('portStatsperiod61', 63), ('portStatsperiod62', 64), ('portStatsperiod63', 65), ('portStatsperiod64', 66), ('portStatsperiod65', 67), ('portStatsperiod66', 68), ('portStatsperiod67', 69), ('portStatsperiod68', 70), ('portStatsperiod69', 71), ('portStatsperiod70', 72), ('portStatsperiod71', 73), ('portStatsperiod72', 74), ('portStatsperiod73', 75), ('portStatsperiod74', 76), ('portStatsperiod75', 77), ('portStatsperiod76', 78), ('portStatsperiod77', 79), ('portStatsperiod78', 80), ('portStatsperiod79', 81), ('portStatsperiod80', 82), ('portStatsperiod81', 83), ('portStatsperiod82', 84), ('portStatsperiod83', 85), ('portStatsperiod84', 86), ('portStatsperiod85', 87), ('portStatsperiod86', 88), ('portStatsperiod87', 89), ('portStatsperiod88', 90), ('portStatsperiod89', 91), ('portStatsperiod90', 92), ('portStatsperiod91', 93), ('portStatsperiod92', 94), ('portStatsperiod93', 95), ('portStatsperiod94', 96), ('portStatsperiod95', 97), ('portStatsperiod96', 98)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsPeriod.setStatus('mandatory')
ipad_fr_port_stats_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsTxFrames.setStatus('mandatory')
ipad_fr_port_stats_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxFrames.setStatus('mandatory')
ipad_fr_port_stats_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsTxOctets.setStatus('mandatory')
ipad_fr_port_stats_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxOctets.setStatus('mandatory')
ipad_fr_port_stats_tx_mgmt_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsTxMgmtFrames.setStatus('mandatory')
ipad_fr_port_stats_rx_mgmt_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxMgmtFrames.setStatus('mandatory')
ipad_fr_port_stats_tx_mgmt_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsTxMgmtOctets.setStatus('mandatory')
ipad_fr_port_stats_rx_mgmt_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxMgmtOctets.setStatus('mandatory')
ipad_fr_port_stats_rx_fecn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxFECN.setStatus('mandatory')
ipad_fr_port_stats_rx_becn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxBECN.setStatus('mandatory')
ipad_fr_port_stats_rx_invalid = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxInvalid.setStatus('mandatory')
ipad_fr_port_stats_tx_stat_inq = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsTxStatInq.setStatus('mandatory')
ipad_fr_port_stats_rx_stat_inq = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxStatInq.setStatus('mandatory')
ipad_fr_port_stats_tx_stat_resp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsTxStatResp.setStatus('mandatory')
ipad_fr_port_stats_rx_stat_resp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxStatResp.setStatus('mandatory')
ipad_fr_port_stats_rx_inv_lmi = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsRxInvLMI.setStatus('mandatory')
ipad_fr_port_stats_peak = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsPeak.setStatus('mandatory')
ipad_fr_port_stats_average = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 1, 1, 20), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadFrPortStatsAverage.setStatus('mandatory')
ipad_dlc_istats_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2))
if mibBuilder.loadTexts:
ipadDLCIstatsTable.setStatus('optional')
ipad_dlc_istats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadDLCIstatsService'), (0, 'IPAD-MIB', 'ipadDLCIstatsDLCI'), (0, 'IPAD-MIB', 'ipadDLCIstatsPeriod'))
if mibBuilder.loadTexts:
ipadDLCIstatsEntry.setStatus('mandatory')
ipad_dlc_istats_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsService.setStatus('mandatory')
ipad_dlc_istats_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsDLCI.setStatus('mandatory')
ipad_dlc_istats_period = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=named_values(('dlciStatsSummary', 1), ('dlciStatsCurrent', 2), ('dlciStatsperiod1', 3), ('dlciStatsperiod2', 4), ('dlciStatsperiod3', 5), ('dlciStatsperiod4', 6), ('dlciStatsperiod5', 7), ('dlciStatsperiod6', 8), ('dlciStatsperiod7', 9), ('dlciStatsperiod8', 10), ('dlciStatsperiod9', 11), ('dlciStatsperiod10', 12), ('dlciStatsperiod11', 13), ('dlciStatsperiod12', 14), ('dlciStatsperiod13', 15), ('dlciStatsperiod14', 16), ('dlciStatsperiod15', 17), ('dlciStatsperiod16', 18), ('dlciStatsperiod17', 19), ('dlciStatsperiod18', 20), ('dlciStatsperiod19', 21), ('dlciStatsperiod20', 22), ('dlciStatsperiod21', 23), ('dlciStatsperiod22', 24), ('dlciStatsperiod23', 25), ('dlciStatsperiod24', 26), ('dlciStatsperiod25', 27), ('dlciStatsperiod26', 28), ('dlciStatsperiod27', 29), ('dlciStatsperiod28', 30), ('dlciStatsperiod29', 31), ('dlciStatsperiod30', 32), ('dlciStatsperiod31', 33), ('dlciStatsperiod32', 34), ('dlciStatsperiod33', 35), ('dlciStatsperiod34', 36), ('dlciStatsperiod35', 37), ('dlciStatsperiod36', 38), ('dlciStatsperiod37', 39), ('dlciStatsperiod38', 40), ('dlciStatsperiod39', 41), ('dlciStatsperiod40', 42), ('dlciStatsperiod41', 43), ('dlciStatsperiod42', 44), ('dlciStatsperiod43', 45), ('dlciStatsperiod44', 46), ('dlciStatsperiod45', 47), ('dlciStatsperiod46', 48), ('dlciStatsperiod47', 49), ('dlciStatsperiod48', 50), ('dlciStatsperiod49', 51), ('dlciStatsperiod50', 52), ('dlciStatsperiod51', 53), ('dlciStatsperiod52', 54), ('dlciStatsperiod53', 55), ('dlciStatsperiod54', 56), ('dlciStatsperiod55', 57), ('dlciStatsperiod56', 58), ('dlciStatsperiod57', 59), ('dlciStatsperiod58', 60), ('dlciStatsperiod59', 61), ('dlciStatsperiod60', 62), ('dlciStatsperiod61', 63), ('dlciStatsperiod62', 64), ('dlciStatsperiod63', 65), ('dlciStatsperiod64', 66), ('dlciStatsperiod65', 67), ('dlciStatsperiod66', 68), ('dlciStatsperiod67', 69), ('dlciStatsperiod68', 70), ('dlciStatsperiod69', 71), ('dlciStatsperiod70', 72), ('dlciStatsperiod71', 73), ('dlciStatsperiod72', 74), ('dlciStatsperiod73', 75), ('dlciStatsperiod74', 76), ('dlciStatsperiod75', 77), ('dlciStatsperiod76', 78), ('dlciStatsperiod77', 79), ('dlciStatsperiod78', 80), ('dlciStatsperiod79', 81), ('dlciStatsperiod80', 82), ('dlciStatsperiod81', 83), ('dlciStatsperiod82', 84), ('dlciStatsperiod83', 85), ('dlciStatsperiod84', 86), ('dlciStatsperiod85', 87), ('dlciStatsperiod86', 88), ('dlciStatsperiod87', 89), ('dlciStatsperiod88', 90), ('dlciStatsperiod89', 91), ('dlciStatsperiod90', 92), ('dlciStatsperiod91', 93), ('dlciStatsperiod92', 94), ('dlciStatsperiod93', 95), ('dlciStatsperiod94', 96), ('dlciStatsperiod95', 97), ('dlciStatsperiod96', 98)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsPeriod.setStatus('mandatory')
ipad_dlc_istats_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsTxFrames.setStatus('mandatory')
ipad_dlc_istats_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsRxFrames.setStatus('mandatory')
ipad_dlc_istats_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsTxOctets.setStatus('mandatory')
ipad_dlc_istats_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsRxOctets.setStatus('mandatory')
ipad_dlc_istats_rx_fecn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsRxFECN.setStatus('mandatory')
ipad_dlc_istats_rx_becn = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsRxBECN.setStatus('mandatory')
ipad_dlc_istats_rx_de = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsRxDE.setStatus('mandatory')
ipad_dlc_istats_tx_excess_cir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsTxExcessCIR.setStatus('mandatory')
ipad_dlc_istats_tx_excess_be = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsTxExcessBe.setStatus('mandatory')
ipad_dlc_istats_tx_mgmt_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsTxMgmtFrames.setStatus('mandatory')
ipad_dlc_istats_rx_mgmt_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsRxMgmtFrames.setStatus('mandatory')
ipad_dlc_istats_tx_mgmt_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsTxMgmtOctets.setStatus('mandatory')
ipad_dlc_istats_rx_mgmt_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsRxMgmtOctets.setStatus('mandatory')
ipad_dlc_istats_peak = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsPeak.setStatus('mandatory')
ipad_dlc_istats_average = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsAverage.setStatus('mandatory')
ipad_dlc_istats_delay_peak = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsDelayPeak.setStatus('mandatory')
ipad_dlc_istats_delay_average = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 20), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsDelayAverage.setStatus('mandatory')
ipad_dlc_istats_round_trip_timeouts = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 21), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsRoundTripTimeouts.setStatus('mandatory')
ipad_dlc_istats_uas = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 2, 1, 22), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadDLCIstatsUAS.setStatus('mandatory')
ipad_user_stats_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3))
if mibBuilder.loadTexts:
ipadUserStatsTable.setStatus('optional')
ipad_user_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadUserStatsIndex'), (0, 'IPAD-MIB', 'ipadUserStatsPeriod'))
if mibBuilder.loadTexts:
ipadUserStatsEntry.setStatus('mandatory')
ipad_user_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserStatsIndex.setStatus('mandatory')
ipad_user_stats_period = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98))).clone(namedValues=named_values(('userStatsSummary', 1), ('userStatsCurrent', 2), ('userStatsperiod1', 3), ('userStatsperiod2', 4), ('userStatsperiod3', 5), ('userStatsperiod4', 6), ('userStatsperiod5', 7), ('userStatsperiod6', 8), ('userStatsperiod7', 9), ('userStatsperiod8', 10), ('userStatsperiod9', 11), ('userStatsperiod10', 12), ('userStatsperiod11', 13), ('userStatsperiod12', 14), ('userStatsperiod13', 15), ('userStatsperiod14', 16), ('userStatsperiod15', 17), ('userStatsperiod16', 18), ('userStatsperiod17', 19), ('userStatsperiod18', 20), ('userStatsperiod19', 21), ('userStatsperiod20', 22), ('userStatsperiod21', 23), ('userStatsperiod22', 24), ('userStatsperiod23', 25), ('userStatsperiod24', 26), ('userStatsperiod25', 27), ('userStatsperiod26', 28), ('userStatsperiod27', 29), ('userStatsperiod28', 30), ('userStatsperiod29', 31), ('userStatsperiod30', 32), ('userStatsperiod31', 33), ('userStatsperiod32', 34), ('userStatsperiod33', 35), ('userStatsperiod34', 36), ('userStatsperiod35', 37), ('userStatsperiod36', 38), ('userStatsperiod37', 39), ('userStatsperiod38', 40), ('userStatsperiod39', 41), ('userStatsperiod40', 42), ('userStatsperiod41', 43), ('userStatsperiod42', 44), ('userStatsperiod43', 45), ('userStatsperiod44', 46), ('userStatsperiod45', 47), ('userStatsperiod46', 48), ('userStatsperiod47', 49), ('userStatsperiod48', 50), ('userStatsperiod49', 51), ('userStatsperiod50', 52), ('userStatsperiod51', 53), ('userStatsperiod52', 54), ('userStatsperiod53', 55), ('userStatsperiod54', 56), ('userStatsperiod55', 57), ('userStatsperiod56', 58), ('userStatsperiod57', 59), ('userStatsperiod58', 60), ('userStatsperiod59', 61), ('userStatsperiod60', 62), ('userStatsperiod61', 63), ('userStatsperiod62', 64), ('userStatsperiod63', 65), ('userStatsperiod64', 66), ('userStatsperiod65', 67), ('userStatsperiod66', 68), ('userStatsperiod67', 69), ('userStatsperiod68', 70), ('userStatsperiod69', 71), ('userStatsperiod70', 72), ('userStatsperiod71', 73), ('userStatsperiod72', 74), ('userStatsperiod73', 75), ('userStatsperiod74', 76), ('userStatsperiod75', 77), ('userStatsperiod76', 78), ('userStatsperiod77', 79), ('userStatsperiod78', 80), ('userStatsperiod79', 81), ('userStatsperiod80', 82), ('userStatsperiod81', 83), ('userStatsperiod82', 84), ('userStatsperiod83', 85), ('userStatsperiod84', 86), ('userStatsperiod85', 87), ('userStatsperiod86', 88), ('userStatsperiod87', 89), ('userStatsperiod88', 90), ('userStatsperiod89', 91), ('userStatsperiod90', 92), ('userStatsperiod91', 93), ('userStatsperiod92', 94), ('userStatsperiod93', 95), ('userStatsperiod94', 96), ('userStatsperiod95', 97), ('userStatsperiod96', 98)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserStatsPeriod.setStatus('mandatory')
ipad_user_stats_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserStatsTxFrames.setStatus('mandatory')
ipad_user_stats_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserStatsRxFrames.setStatus('mandatory')
ipad_user_stats_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserStatsTxOctets.setStatus('mandatory')
ipad_user_stats_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserStatsRxOctets.setStatus('mandatory')
ipad_user_stats_tx_rate_peak = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserStatsTxRatePeak.setStatus('mandatory')
ipad_user_stats_tx_rate_average = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 3, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadUserStatsTxRateAverage.setStatus('mandatory')
ipad_ip_top_n_stats_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4))
if mibBuilder.loadTexts:
ipadIPTopNStatsTable.setStatus('optional')
ipad_ip_top_n_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadIPTopNStatsIndex'))
if mibBuilder.loadTexts:
ipadIPTopNStatsEntry.setStatus('mandatory')
ipad_ip_top_n_stats_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadIPTopNStatsIndex.setStatus('mandatory')
ipad_ip_top_n_stats_address = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadIPTopNStatsAddress.setStatus('mandatory')
ipad_ip_top_n_stats_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadIPTopNStatsTimestamp.setStatus('mandatory')
ipad_ip_top_n_stats_rx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadIPTopNStatsRxFrames.setStatus('mandatory')
ipad_ip_top_n_stats_rx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadIPTopNStatsRxOctets.setStatus('mandatory')
ipad_ip_top_n_stats_tx_frames = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadIPTopNStatsTxFrames.setStatus('mandatory')
ipad_ip_top_n_stats_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 9, 4, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadIPTopNStatsTxOctets.setStatus('mandatory')
ipad_pkt_sw_operating_mode = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('tdm', 2), ('monitor', 3), ('packet', 4), ('remoteConfig', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwOperatingMode.setStatus('mandatory')
ipad_pkt_sw_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2))
if mibBuilder.loadTexts:
ipadPktSwCfgTable.setStatus('optional')
ipad_pkt_sw_cfg_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadPktSwCfgService'))
if mibBuilder.loadTexts:
ipadPktSwCfgTableEntry.setStatus('mandatory')
ipad_pkt_sw_cfg_service = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadPktSwCfgService.setStatus('mandatory')
ipad_pkt_sw_cfg_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('uni', 1), ('ni', 2), ('nni', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgInterfaceType.setStatus('mandatory')
ipad_pkt_sw_cfg_lnk_mgmt_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('auto', 2), ('ccitt', 3), ('ansi', 4), ('lmi', 5), ('none', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgLnkMgmtType.setStatus('mandatory')
ipad_pkt_sw_cfg_max_frame_size = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgMaxFrameSize.setStatus('mandatory')
ipad_pkt_sw_cfgn_n1 = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgnN1.setStatus('mandatory')
ipad_pkt_sw_cfgn_n2 = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgnN2.setStatus('mandatory')
ipad_pkt_sw_cfgn_n3 = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 7), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgnN3.setStatus('mandatory')
ipad_pkt_sw_cfgn_t1 = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgnT1.setStatus('mandatory')
ipad_pkt_sw_cfg_def_cir = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgDefCIR.setStatus('mandatory')
ipad_pkt_sw_cfg_def_ex_burst = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 10), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgDefExBurst.setStatus('mandatory')
ipad_pkt_sw_cfg_ciree = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgCIREE.setStatus('mandatory')
ipad_pkt_sw_cfg_link_injection = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('standard', 2), ('buffered', 3), ('forced', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgLinkInjection.setStatus('mandatory')
ipad_pkt_sw_cfg_auto_diagnostic = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgAutoDiagnostic.setStatus('mandatory')
ipad_pkt_sw_cfg_auto_discovery = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('no', 2), ('yes', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgAutoDiscovery.setStatus('mandatory')
ipad_pkt_sw_cfg_mgmt_dlci = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 10, 2, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 4096))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadPktSwCfgMgmtDLCI.setStatus('mandatory')
ipad_trap_dest_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1))
if mibBuilder.loadTexts:
ipadTrapDestTable.setStatus('optional')
ipad_trap_dest_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadTrapDestIndex'))
if mibBuilder.loadTexts:
ipadTrapDestTableEntry.setStatus('mandatory')
ipad_trap_dest_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadTrapDestIndex.setStatus('mandatory')
ipad_trap_destination = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 11, 1, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadTrapDestination.setStatus('mandatory')
ipad_fr_port_rx_invalid_frames_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25000))
ipad_fr_port_rx_throughput_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25001))
ipad_fr_port_tx_throughput_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25002))
ipad_dlc_itx_ci_rexceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25003))
ipad_dlc_itx_b_eexceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25004))
ipad_dlci_rx_congestion_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25005))
ipad_user_tx_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25006))
ipad_dlci_rx_bec_nin_cir_alarm = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25007))
ipad_dlci_uas_exceeded = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25008))
ipadserial_dte_dtr_alarm_exists = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25009))
ipadt1e1_es_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25010))
ipadt1e1_ses_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25011))
ipadt1e1_loss_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25012))
ipadt1e1_uas_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25013))
ipadt1e1_css_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25014))
ipadt1e1_bpvs_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25015))
ipadt1e1_oofs_alarm_declared = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25016))
ipadt1e1_ais_alarm_exists = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25017))
ipadt1e1_ras_alarm_exists = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25018))
ipad_dlc_iremote_sos_alarm = notification_type((1, 3, 6, 1, 4, 1, 321, 100) + (0, 25019))
ipad_misc_port_settings = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1))
if mibBuilder.loadTexts:
ipadMiscPortSettings.setStatus('optional')
ipad_misc_port_settings_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadMiscPortSettingsIndex'))
if mibBuilder.loadTexts:
ipadMiscPortSettingsEntry.setStatus('mandatory')
ipad_misc_port_settings_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('supervisor', 1), ('network1', 2), ('network2', 3), ('user1', 4), ('user2', 5), ('ethernet', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadMiscPortSettingsIndex.setStatus('mandatory')
ipad_misc_port_settings_serial_type = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('dce', 2), ('dte', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadMiscPortSettingsSerialType.setStatus('mandatory')
ipad_misc_clear_status_counts = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 12, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('clear', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadMiscClearStatusCounts.setStatus('mandatory')
ipad_soft_key_table = mib_table((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1))
if mibBuilder.loadTexts:
ipadSoftKeyTable.setStatus('mandatory')
ipad_soft_key_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1)).setIndexNames((0, 'IPAD-MIB', 'ipadSoftKeyIndex'))
if mibBuilder.loadTexts:
ipadSoftKeyTableEntry.setStatus('mandatory')
ipad_soft_key_index = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadSoftKeyIndex.setStatus('mandatory')
ipad_soft_key_acronym = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 3))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadSoftKeyAcronym.setStatus('mandatory')
ipad_soft_key_description = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadSoftKeyDescription.setStatus('mandatory')
ipad_soft_key_expiration_date = mib_table_column((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ipadSoftKeyExpirationDate.setStatus('mandatory')
ipad_soft_key_entry = mib_scalar((1, 3, 6, 1, 4, 1, 321, 100, 1, 14, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipadSoftKeyEntry.setStatus('mandatory')
mibBuilder.exportSymbols('IPAD-MIB', ipadFrPortStatsService=ipadFrPortStatsService, ipadt1e1SESAlarmDeclared=ipadt1e1SESAlarmDeclared, ipadDLCIrxCongAlarm=ipadDLCIrxCongAlarm, ipadTrapDest=ipadTrapDest, ipadPPPPAPTable=ipadPPPPAPTable, ipadEndpointDLCInumber=ipadEndpointDLCInumber, ipadDLCIstatsRxDE=ipadDLCIstatsRxDE, ipadPktSwCfgLinkInjection=ipadPktSwCfgLinkInjection, ipadPPPCHAPTable=ipadPPPCHAPTable, ipadDLCItxCIRexceeded=ipadDLCItxCIRexceeded, ipadPktSwCfgMaxFrameSize=ipadPktSwCfgMaxFrameSize, ipadFrPortStatsPeriod=ipadFrPortStatsPeriod, ipadIPTopNStatsRxOctets=ipadIPTopNStatsRxOctets, ipadEndpointType=ipadEndpointType, ipadFrPortStatsRxInvalid=ipadFrPortStatsRxInvalid, ipadPPPCfgAllowCHAP=ipadPPPCfgAllowCHAP, ipadFrPortStatsRxMgmtOctets=ipadFrPortStatsRxMgmtOctets, ipadDLCIstatsDelayAverage=ipadDLCIstatsDelayAverage, ipadPPPCfgAllowPAP=ipadPPPCfgAllowPAP, ipadDlciUASExceeded=ipadDlciUASExceeded, ipadUserTable=ipadUserTable, ipadDLCIstatsDelayPeak=ipadDLCIstatsDelayPeak, ipadMiscPortSettings=ipadMiscPortSettings, ipadDLCIBe=ipadDLCIBe, ipadFrPort=ipadFrPort, ipadFrPortStatsRxFECN=ipadFrPortStatsRxFECN, ipadModemDialNumber=ipadModemDialNumber, ipadIPTopNStatsAddress=ipadIPTopNStatsAddress, ipadChannelTableEntry=ipadChannelTableEntry, ipadDLCItxExCIRThreshold=ipadDLCItxExCIRThreshold, ipadModemDataDialingScript=ipadModemDataDialingScript, ipadChannelRate=ipadChannelRate, ipadDLCIremoteSOSAlarm=ipadDLCIremoteSOSAlarm, ipadUserIPStatGrantedReportSize=ipadUserIPStatGrantedReportSize, ipadModemDialUsername=ipadModemDialUsername, ipadPPPPAPTablePassword=ipadPPPPAPTablePassword, ipadUserStatsTxRateAverage=ipadUserStatsTxRateAverage, ipadDLCITableEntry=ipadDLCITableEntry, ipadDLCIcongestion=ipadDLCIcongestion, ipadDLCIstatsAverage=ipadDLCIstatsAverage, ipadPktSwCfgLnkMgmtType=ipadPktSwCfgLnkMgmtType, ipadServiceifIndex=ipadServiceifIndex, ipadTrapDestTableEntry=ipadTrapDestTableEntry, ipadUserFilterByDLCI=ipadUserFilterByDLCI, ipadUserIPPort=ipadUserIPPort, hbu=hbu, ipadFrPortActive=ipadFrPortActive, ipadUserStatsTxRatePeak=ipadUserStatsTxRatePeak, ipadUserStatsTable=ipadUserStatsTable, ipadChannelTable=ipadChannelTable, ipadDLCIrxBECNinCIR=ipadDLCIrxBECNinCIR, ipadFrPortRxInvAlmThreshold=ipadFrPortRxInvAlmThreshold, ipadDLCICIR=ipadDLCICIR, ipadFrPortStatsTxFrames=ipadFrPortStatsTxFrames, ipadPktSwCfgnT1=ipadPktSwCfgnT1, ipadFrPortService=ipadFrPortService, ipadDLCIrxMon=ipadDLCIrxMon, ipadEndpointTableEntry=ipadEndpointTableEntry, ipadModem=ipadModem, ipadChannelifIndex=ipadChannelifIndex, ipadEndpointRefSLP=ipadEndpointRefSLP, ipadPPPCHAPTableSecret=ipadPPPCHAPTableSecret, ipadUserStatsRxOctets=ipadUserStatsRxOctets, ipadMiscPortSettingsIndex=ipadMiscPortSettingsIndex, ipadChannelService=ipadChannelService, ipadModemDataSetupScript=ipadModemDataSetupScript, ipadDLCItxExCIRAlarm=ipadDLCItxExCIRAlarm, ipadPPPCfgNegMagic=ipadPPPCfgNegMagic, ipadPPPCfgNegIpAddress=ipadPPPCfgNegIpAddress, ipadModemDialDataIndex=ipadModemDialDataIndex, ipadDLCIstatsTxOctets=ipadDLCIstatsTxOctets, ipadEndpointService=ipadEndpointService, ipadUserFilterByIPAddress=ipadUserFilterByIPAddress, ipadDLCIstatsRxFrames=ipadDLCIstatsRxFrames, verilink=verilink, ipadDLCIenableDelay=ipadDLCIenableDelay, ipadDLCIremoteEquipActive=ipadDLCIremoteEquipActive, ipadDlciRxBECNinCIRAlarm=ipadDlciRxBECNinCIRAlarm, ipadPPPCfgNegPAP=ipadPPPCfgNegPAP, ipadDLCIUASThreshold=ipadDLCIUASThreshold, ipadPPPCfgAuthChallengeInterval=ipadPPPCfgAuthChallengeInterval, ipadDLCItxExBeThreshold=ipadDLCItxExBeThreshold, ipadDLCInumber=ipadDLCInumber, ipadPktSwCfgnN1=ipadPktSwCfgnN1, ipadModemDataTable=ipadModemDataTable, ipadPPPCfgDialMode=ipadPPPCfgDialMode, ipadPPPCfgCHAPSecret=ipadPPPCfgCHAPSecret, ipadModemDialAbortTimer=ipadModemDialAbortTimer, ipadPPPCfgNegCompression=ipadPPPCfgNegCompression, ipadDLCIstatsTxMgmtOctets=ipadDLCIstatsTxMgmtOctets, ipadPPPCfgCHAPUsername=ipadPPPCfgCHAPUsername, ipadModemDataTableIndex=ipadModemDataTableIndex, ipadDLCIstatsRxBECN=ipadDLCIstatsRxBECN, ipadPktSwCfgnN2=ipadPktSwCfgnN2, ipadIPTopNStatsTxOctets=ipadIPTopNStatsTxOctets, ipadFrPortTable=ipadFrPortTable, ipadDLCIstatsTxMgmtFrames=ipadDLCIstatsTxMgmtFrames, ipadDLCIstatsService=ipadDLCIstatsService, ipadPktSwCfgAutoDiscovery=ipadPktSwCfgAutoDiscovery, ipadPktSwCfgService=ipadPktSwCfgService, ipadFrPortStatsRxFrames=ipadFrPortStatsRxFrames, ipadPPPCfgNegIPCPCompression=ipadPPPCfgNegIPCPCompression, ipadModemDialDelayBeforeRedial=ipadModemDialDelayBeforeRedial, ipadFrPortStatsRxMgmtFrames=ipadFrPortStatsRxMgmtFrames, ipadUserIPStatStartTime=ipadUserIPStatStartTime, ipadEndpointRemoteIpMask=ipadEndpointRemoteIpMask, ipadEndpointName=ipadEndpointName, ipadUserTxAlmThreshold=ipadUserTxAlmThreshold, ipadPPPCfgACCM=ipadPPPCfgACCM, ipadTrapDestination=ipadTrapDestination, ipadMiscPortSettingsEntry=ipadMiscPortSettingsEntry, ipadUserIPStatDiscardType=ipadUserIPStatDiscardType, ipadFrPortStatsTxOctets=ipadFrPortStatsTxOctets, ipadFrPortStatsTxMgmtOctets=ipadFrPortStatsTxMgmtOctets, ipadEndpointDeleteEndpoint=ipadEndpointDeleteEndpoint, ipadRouter=ipadRouter, ipadUserDLCI=ipadUserDLCI, ipadDLCIencapsulation=ipadDLCIencapsulation, ipadModemDataAnswerScript=ipadModemDataAnswerScript, ipadPPPCfgPeerIpAddress=ipadPPPCfgPeerIpAddress, ipadEndpoint=ipadEndpoint, ipadServiceTableEntry=ipadServiceTableEntry, ipadFrPortRxInvAlmAlarm=ipadFrPortRxInvAlmAlarm, ipadFrPortTxAlmThreshold=ipadFrPortTxAlmThreshold, ipadFrPortRxAlmAlarm=ipadFrPortRxAlmAlarm, ipadEndpointBackup=ipadEndpointBackup, ipadUserTxAlmAlarm=ipadUserTxAlmAlarm, ipadDLCIstatsTable=ipadDLCIstatsTable, ipadTrapDestIndex=ipadTrapDestIndex, ipadDLCIstatsRxOctets=ipadDLCIstatsRxOctets, ipadDLCIstatsTxExcessBe=ipadDLCIstatsTxExcessBe, ipad=ipad, ipadServicePair=ipadServicePair, ipadPPPCfgSubnetMask=ipadPPPCfgSubnetMask, ipadPktSwCfgCIREE=ipadPktSwCfgCIREE, ipadSoftKeyExpirationDate=ipadSoftKeyExpirationDate, ipadPPPCfgInactivityTimer=ipadPPPCfgInactivityTimer, ipadUserIPMask=ipadUserIPMask, ipadPPPCHAPTableIndex=ipadPPPCHAPTableIndex, ipadIPTopNStatsIndex=ipadIPTopNStatsIndex, ipadDLCIstatsRxMgmtOctets=ipadDLCIstatsRxMgmtOctets, ipadFrPortLMIType=ipadFrPortLMIType, ipadModemDialTableEntry=ipadModemDialTableEntry, ipadDLCIstatsTxFrames=ipadDLCIstatsTxFrames, ipadt1e1CSSAlarmDeclared=ipadt1e1CSSAlarmDeclared, ipadModemDataTableEntry=ipadModemDataTableEntry, ipadPktSwCfgDefExBurst=ipadPktSwCfgDefExBurst, ipadUserTxExceeded=ipadUserTxExceeded, ipadSoftKeyAcronym=ipadSoftKeyAcronym, ipadDLCItxExBeAlarm=ipadDLCItxExBeAlarm, ipadChannelPair=ipadChannelPair, ipadPktSwCfgnN3=ipadPktSwCfgnN3, ipadSoftKeyEntry=ipadSoftKeyEntry, ipadEndpointLastChange=ipadEndpointLastChange, ipadPPPCfgTableEntry=ipadPPPCfgTableEntry, ipadDLCIstatsPeriod=ipadDLCIstatsPeriod, ipadDLCIstatsUAS=ipadDLCIstatsUAS, ipadFrPortStatsRxStatResp=ipadFrPortStatsRxStatResp, ipadUser=ipadUser, ipadFrPortStatsAverage=ipadFrPortStatsAverage, ipadPktSwOperatingMode=ipadPktSwOperatingMode, ipadModemDialLoginScript=ipadModemDialLoginScript, ipadDLCIUASAlarm=ipadDLCIUASAlarm, ipadUserStatsTxOctets=ipadUserStatsTxOctets, ipadDLCIactive=ipadDLCIactive, ipadUserIndex=ipadUserIndex, ipadEndpointRemoteIpAddr=ipadEndpointRemoteIpAddr, ipadDLCIremoteUnit=ipadDLCIremoteUnit, ipadServiceType=ipadServiceType, ipadPPPCfgNegMRU=ipadPPPCfgNegMRU, ipadUserFilterByIPPort=ipadUserFilterByIPPort, ipadFrPortStatsPeak=ipadFrPortStatsPeak, ipadDLCIstatsRxFECN=ipadDLCIstatsRxFECN, ipadFrPortStatsTxMgmtFrames=ipadFrPortStatsTxMgmtFrames, ipadPktSwitch=ipadPktSwitch, ipadDLCIpropOffset=ipadDLCIpropOffset, ipadPPPCfgService=ipadPPPCfgService, ipadPPPCfgNegCHAP=ipadPPPCfgNegCHAP, ipadService=ipadService, ipadPPPPAPTableEntry=ipadPPPPAPTableEntry, ipadIPTopNStatsTable=ipadIPTopNStatsTable, ipadDLCItxBEexceeded=ipadDLCItxBEexceeded, ipadChannel=ipadChannel, ipadPPPCfgNegAddress=ipadPPPCfgNegAddress, ipadIPTopNStatsRxFrames=ipadIPTopNStatsRxFrames, ipadDLCIstatsDLCI=ipadDLCIstatsDLCI, ipadt1e1RASAlarmExists=ipadt1e1RASAlarmExists, ipadPktSwCfgTable=ipadPktSwCfgTable, ipadUserIPStatTimeRemaining=ipadUserIPStatTimeRemaining, ipadModemDialPassword=ipadModemDialPassword, ipadUserStatsTxFrames=ipadUserStatsTxFrames, ipadModemDataHangupScript=ipadModemDataHangupScript, ipadt1e1ESAlarmDeclared=ipadt1e1ESAlarmDeclared, ipadEndpointTable=ipadEndpointTable, ipadDLCIstatsRxMgmtFrames=ipadDLCIstatsRxMgmtFrames, ipadt1e1AISAlarmExists=ipadt1e1AISAlarmExists, ipadPPPCfgPortIpAddress=ipadPPPCfgPortIpAddress, ipadUserIPStatRequestedReportSize=ipadUserIPStatRequestedReportSize, ipadDLCIminBC=ipadDLCIminBC, ipadt1e1BPVSAlarmDeclared=ipadt1e1BPVSAlarmDeclared, ipadserialDteDTRAlarmExists=ipadserialDteDTRAlarmExists, ipadMisc=ipadMisc, ipadPPPPAPTableIndex=ipadPPPPAPTableIndex, ipadDLCITable=ipadDLCITable, ipadServiceIndex=ipadServiceIndex, ipadDLCIinBand=ipadDLCIinBand, ipadDLCI=ipadDLCI, ipadPktSwCfgMgmtDLCI=ipadPktSwCfgMgmtDLCI, ipadFrPortStatsTxStatResp=ipadFrPortStatsTxStatResp, ipadEndpointForward=ipadEndpointForward, ipadUserStatsEntry=ipadUserStatsEntry, ipadPktSwCfgAutoDiagnostic=ipadPktSwCfgAutoDiagnostic, ipadTrapDestTable=ipadTrapDestTable, ipadModemDataModemName=ipadModemDataModemName, ipadMiscPortSettingsSerialType=ipadMiscPortSettingsSerialType, ipadPPPCfgTable=ipadPPPCfgTable, ipadUserIPStatReportNumber=ipadUserIPStatReportNumber, ipadDLCIproprietary=ipadDLCIproprietary, ipadIPTopNStatsTimestamp=ipadIPTopNStatsTimestamp, ipadServiceAddService=ipadServiceAddService, ipadUserService=ipadUserService, ipadFrPortTxThroughputExceeded=ipadFrPortTxThroughputExceeded, ipadPPPCfgPAPPassword=ipadPPPCfgPAPPassword, ipadIPTopNStatsTxFrames=ipadIPTopNStatsTxFrames, ipadPktSwCfgInterfaceType=ipadPktSwCfgInterfaceType, ipadFrPortRxInvalidFramesExceeded=ipadFrPortRxInvalidFramesExceeded, ipadModemDialTableIndex=ipadModemDialTableIndex, ipadFrPortStatsTxStatInq=ipadFrPortStatsTxStatInq, ipadFrPortTableEntry=ipadFrPortTableEntry, ipadPPPCfgNegACCM=ipadPPPCfgNegACCM, ipadPPPCfgPAPUsername=ipadPPPCfgPAPUsername, ipadModemDialRedialAttempts=ipadModemDialRedialAttempts, ipadFrPortStatsEntry=ipadFrPortStatsEntry, ipadDLCIservice=ipadDLCIservice, ipadDLCIRxCongestionExceeded=ipadDLCIRxCongestionExceeded, ipadSvcAware=ipadSvcAware, ipadDLCIremote=ipadDLCIremote, ipadEndpointAddEndpoint=ipadEndpointAddEndpoint, ipadModemDialTable=ipadModemDialTable, ipadIPTopNStatsEntry=ipadIPTopNStatsEntry, ipadPPPCHAPTableUsername=ipadPPPCHAPTableUsername, ipadUserIPStatTimeDuration=ipadUserIPStatTimeDuration, ipadPPPCfgMRU=ipadPPPCfgMRU, ipadDLCIstatsRoundTripTimeouts=ipadDLCIstatsRoundTripTimeouts, ipadDLCILastChange=ipadDLCILastChange, ipadt1e1UASAlarmDeclared=ipadt1e1UASAlarmDeclared, ipadDLCIdEctrl=ipadDLCIdEctrl, ipadDLCIstatsEntry=ipadDLCIstatsEntry, ipadSoftKey=ipadSoftKey, ipadSoftKeyDescription=ipadSoftKeyDescription, ipadFrPortStatsRxStatInq=ipadFrPortStatsRxStatInq, ipadFrPortStatsTable=ipadFrPortStatsTable, ipadPPP=ipadPPP, ipadUserStatsPeriod=ipadUserStatsPeriod)
mibBuilder.exportSymbols('IPAD-MIB', ipadFrPortRxAlmThreshold=ipadFrPortRxAlmThreshold, ipadPPPPAPTableUsername=ipadPPPPAPTableUsername, ipadFrPortStatsRxBECN=ipadFrPortStatsRxBECN, ipadFrPortStatsRxInvLMI=ipadFrPortStatsRxInvLMI, ipadDLCIstatsPeak=ipadDLCIstatsPeak, ipadFrPortStatsRxOctets=ipadFrPortStatsRxOctets, ipadt1e1OOFSAlarmDeclared=ipadt1e1OOFSAlarmDeclared, ipadSoftKeyIndex=ipadSoftKeyIndex, ipadUserTableEntry=ipadUserTableEntry, ipadDLCIrxCongThreshold=ipadDLCIrxCongThreshold, ipadServiceTable=ipadServiceTable, ipadUserStatsRxFrames=ipadUserStatsRxFrames, ipadUserIPAddress=ipadUserIPAddress, ipadPPPCfgNegotiationInit=ipadPPPCfgNegotiationInit, ipadPktSwCfgDefCIR=ipadPktSwCfgDefCIR, ipadFrPortRxThroughputExceeded=ipadFrPortRxThroughputExceeded, ipadSoftKeyTableEntry=ipadSoftKeyTableEntry, ipadEndpointIndex=ipadEndpointIndex, ipadPktSwCfgTableEntry=ipadPktSwCfgTableEntry, ipadChannelIndex=ipadChannelIndex, ipadServiceDeleteService=ipadServiceDeleteService, ipadt1e1LOSSAlarmDeclared=ipadt1e1LOSSAlarmDeclared, ipadSoftKeyTable=ipadSoftKeyTable, ipadMiscClearStatusCounts=ipadMiscClearStatusCounts, ipadFrPortLMIMode=ipadFrPortLMIMode, ipadFrPortTxAlmAlarm=ipadFrPortTxAlmAlarm, ipadDLCIstatsTxExcessCIR=ipadDLCIstatsTxExcessCIR, ipadUserStatsIndex=ipadUserStatsIndex, ipadPPPCHAPTableEntry=ipadPPPCHAPTableEntry)
|
distancia = float(input('Digite a distancia em KM da viagem: '))
passag1 = distancia * 0.5
passag2 = distancia * 0.45
if distancia <= 200:
print('Sua passagem vai custar R${:.2f}'.format(passag1))
else:
print('Sua passagem vai custar R${:.2f}'.format(passag2))
|
distancia = float(input('Digite a distancia em KM da viagem: '))
passag1 = distancia * 0.5
passag2 = distancia * 0.45
if distancia <= 200:
print('Sua passagem vai custar R${:.2f}'.format(passag1))
else:
print('Sua passagem vai custar R${:.2f}'.format(passag2))
|
f=float(8.11)
print(f)
i=int(f)
print(i)
j=7
print(type(j))
j=f
print(j)
print(type(j))
print(int(8.6))
|
f = float(8.11)
print(f)
i = int(f)
print(i)
j = 7
print(type(j))
j = f
print(j)
print(type(j))
print(int(8.6))
|
def _impl(ctx):
name = ctx.attr.name
deps = ctx.attr.deps
suites = ctx.attr.suites
visibility = None # ctx.attr.visibility
suites_mangled = [s.partition(".")[0].rpartition("/")[2] for s in suites]
for s in suites_mangled:
native.cc_test(
name = "{}-{}".format(name, s),
deps = deps,
visibility = visibility,
args = [s]
)
native.test_suite(
name = name,
tests = [":{}-{}".format(name, s) for s in suites_mangled]
)
persuite_bake_tests = rule(
implementation = _impl,
attrs = {
"deps": attr.label_list(),
"suites": attr.string_list(),
},
)
|
def _impl(ctx):
name = ctx.attr.name
deps = ctx.attr.deps
suites = ctx.attr.suites
visibility = None
suites_mangled = [s.partition('.')[0].rpartition('/')[2] for s in suites]
for s in suites_mangled:
native.cc_test(name='{}-{}'.format(name, s), deps=deps, visibility=visibility, args=[s])
native.test_suite(name=name, tests=[':{}-{}'.format(name, s) for s in suites_mangled])
persuite_bake_tests = rule(implementation=_impl, attrs={'deps': attr.label_list(), 'suites': attr.string_list()})
|
while True:
budget = float(input("Enter your budget : "))
available=budget
break
d ={"name":[], "quantity":[], "price":[]}
l= list(d.values())
name = l[0]
quantity= l[1]
price = l[2]
while True:
ch = int(input("1.ADD\n2.EXIT\nEnter your choice : "))
if ch == 1 and available>0:
pn = input("Enter product name : ")
q = int(input("Enter quantity : "))
p = float(input("Enter price of the product : "))
if p>available:
print("canot by product")
continue
else:
if pn in name:
ind = na.index(pn)
price.remove(price[ind])
quantity.insert(ind, q)
price.insert(ind, p)
available = budget-sum(price)
print("\namount left", available)
else:
name.append(pn)
quantity.append(q)
price.append(p)
available= budget-sum(price)
print("\namount left", available)
elif available<= 0:
print("no amount left")
else:
break
print("\nAmount left : Rs.", available)
if available in price:
print("\nyou an buy", na[price.index(available)])
print("\n\n\nGROCERY LIST")
for i in range(len(name)):
print(name[i],quantity[i],price[i])
|
while True:
budget = float(input('Enter your budget : '))
available = budget
break
d = {'name': [], 'quantity': [], 'price': []}
l = list(d.values())
name = l[0]
quantity = l[1]
price = l[2]
while True:
ch = int(input('1.ADD\n2.EXIT\nEnter your choice : '))
if ch == 1 and available > 0:
pn = input('Enter product name : ')
q = int(input('Enter quantity : '))
p = float(input('Enter price of the product : '))
if p > available:
print('canot by product')
continue
elif pn in name:
ind = na.index(pn)
price.remove(price[ind])
quantity.insert(ind, q)
price.insert(ind, p)
available = budget - sum(price)
print('\namount left', available)
else:
name.append(pn)
quantity.append(q)
price.append(p)
available = budget - sum(price)
print('\namount left', available)
elif available <= 0:
print('no amount left')
else:
break
print('\nAmount left : Rs.', available)
if available in price:
print('\nyou an buy', na[price.index(available)])
print('\n\n\nGROCERY LIST')
for i in range(len(name)):
print(name[i], quantity[i], price[i])
|
data="7.dat"
s=0.0
c=0
with open(data) as fp:
for line in fp:
words=line.split(':')
if(words[0]=="RMSE"):
c+=1
# print(words[1])
s+=float(words[1])
# print(s)
print("average:")
print(s/c)
|
data = '7.dat'
s = 0.0
c = 0
with open(data) as fp:
for line in fp:
words = line.split(':')
if words[0] == 'RMSE':
c += 1
s += float(words[1])
print('average:')
print(s / c)
|
if __name__ == '__main__':
n = int(input())
for num in range(n):
print(num * num)
|
if __name__ == '__main__':
n = int(input())
for num in range(n):
print(num * num)
|
#
# PySNMP MIB module ONEACCESS-CONFIGMGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ONEACCESS-CONFIGMGMT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:34:15 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, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion")
oacExpIMManagement, oacRequirements, oacMIBModules = mibBuilder.importSymbols("ONEACCESS-GLOBAL-REG", "oacExpIMManagement", "oacRequirements", "oacMIBModules")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
Counter32, NotificationType, ObjectIdentity, Bits, Counter64, iso, ModuleIdentity, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Unsigned32, Gauge32, IpAddress, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "NotificationType", "ObjectIdentity", "Bits", "Counter64", "iso", "ModuleIdentity", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Unsigned32", "Gauge32", "IpAddress", "TimeTicks")
DisplayString, TextualConvention, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "DateAndTime")
oacConfigMgmtMIBModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 13191, 1, 100, 2001))
oacConfigMgmtMIBModule.setRevisions(('2011-10-27 00:00', '2010-07-08 10:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setRevisionsDescriptions(('Added MODULE-COMPLIANCE AND OBJECT GROUP, fixed some minor corrections.', "This MIB module describes a MIB for keeping track of changes on equipment's configuration.",))
if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setLastUpdated('201110270000Z')
if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setOrganization(' OneAccess ')
if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setContactInfo('Pascal KESTELOOT Postal: ONE ACCESS 381 Avenue du Gnral de Gaulle 92140 Clamart, France FRANCE Tel: (+33) 01 41 87 70 00 Fax: (+33) 01 41 87 74 00 E-mail: [email protected]')
if mibBuilder.loadTexts: oacConfigMgmtMIBModule.setDescription('Contact updated')
oacExpIMConfigMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6))
oacConfigMgmtObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1))
oacCMHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1))
oacCMCopy = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2))
oacConfigMgmtNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 3))
oacCMHistoryRunningLastChanged = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 1), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: oacCMHistoryRunningLastChanged.setStatus('current')
if mibBuilder.loadTexts: oacCMHistoryRunningLastChanged.setDescription('The time when the running configuration was last changed.')
oacCMHistoryRunningLastSaved = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 2), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: oacCMHistoryRunningLastSaved.setStatus('current')
if mibBuilder.loadTexts: oacCMHistoryRunningLastSaved.setDescription('The time when the running configuration was last saved (written).')
oacCMHistoryStartupLastChanged = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 3), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: oacCMHistoryStartupLastChanged.setStatus('current')
if mibBuilder.loadTexts: oacCMHistoryStartupLastChanged.setDescription('The time when the startup configuration was last written to.')
oacCMCopyIndex = MibScalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 1), IpAddress())
if mibBuilder.loadTexts: oacCMCopyIndex.setStatus('current')
if mibBuilder.loadTexts: oacCMCopyIndex.setDescription('IP address used for configuration copy.')
oacCMCopyTftpRunTable = MibTable((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2), )
if mibBuilder.loadTexts: oacCMCopyTftpRunTable.setStatus('current')
if mibBuilder.loadTexts: oacCMCopyTftpRunTable.setDescription('Config Table for TFTP copy of running config.')
oacCMCopyTftpRunEntry = MibTableRow((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2, 1), ).setIndexNames((0, "ONEACCESS-CONFIGMGMT-MIB", "oacCMCopyIndex"))
if mibBuilder.loadTexts: oacCMCopyTftpRunEntry.setStatus('current')
if mibBuilder.loadTexts: oacCMCopyTftpRunEntry.setDescription('List of objects defining a conceptual copy tftp entry.')
oacCMCopyTftpRun = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2, 1, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: oacCMCopyTftpRun.setStatus('current')
if mibBuilder.loadTexts: oacCMCopyTftpRun.setDescription('Name of the file on the server where the configuration script is located. This variable is in effect a write-only variable. Attempts to read this variable will result in a no-such-object response.')
oacCMCopyRunTftpTable = MibTable((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3), )
if mibBuilder.loadTexts: oacCMCopyRunTftpTable.setStatus('current')
if mibBuilder.loadTexts: oacCMCopyRunTftpTable.setDescription('Config Table for copy of running config to tftp.')
oacCMCopyRunTftpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3, 1), ).setIndexNames((0, "ONEACCESS-CONFIGMGMT-MIB", "oacCMCopyIndex"))
if mibBuilder.loadTexts: oacCMCopyRunTftpEntry.setStatus('current')
if mibBuilder.loadTexts: oacCMCopyRunTftpEntry.setDescription('List of objects defining a conceptual copy tftp entry.')
oacCMCopyRunTftp = MibTableColumn((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3, 1, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: oacCMCopyRunTftp.setStatus('current')
if mibBuilder.loadTexts: oacCMCopyRunTftp.setDescription('Name of the file on the server where the configuration script will be stored. This variable is in effect a write-only variable. Attempts to read this variable will result in a no-such-object response.')
oacCMRunningConfigSaved = NotificationType((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 3, 1))
if mibBuilder.loadTexts: oacCMRunningConfigSaved.setStatus('current')
if mibBuilder.loadTexts: oacCMRunningConfigSaved.setDescription('The running configuration has been saved.')
oacCMConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001))
oacCMGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 1))
oacCMCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 2))
oacCMCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 2, 1)).setObjects(("ONEACCESS-CONFIGMGMT-MIB", "oacCMGeneralGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
oacCMCompliance = oacCMCompliance.setStatus('current')
if mibBuilder.loadTexts: oacCMCompliance.setDescription('The compliance statement for agents that support the ONEACCESS-CONFIGMGMT-MIB.')
oacCMGeneralGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 1, 1)).setObjects(("ONEACCESS-CONFIGMGMT-MIB", "oacCMHistoryRunningLastChanged"), ("ONEACCESS-CONFIGMGMT-MIB", "oacCMHistoryRunningLastSaved"), ("ONEACCESS-CONFIGMGMT-MIB", "oacCMHistoryStartupLastChanged"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
oacCMGeneralGroup = oacCMGeneralGroup.setStatus('current')
if mibBuilder.loadTexts: oacCMGeneralGroup.setDescription('This group is mandatory for Configuration Management entity.')
mibBuilder.exportSymbols("ONEACCESS-CONFIGMGMT-MIB", oacCMCompliances=oacCMCompliances, oacCMConformance=oacCMConformance, oacCMHistory=oacCMHistory, oacCMHistoryRunningLastChanged=oacCMHistoryRunningLastChanged, oacConfigMgmtMIBModule=oacConfigMgmtMIBModule, oacCMHistoryStartupLastChanged=oacCMHistoryStartupLastChanged, oacExpIMConfigMgmt=oacExpIMConfigMgmt, oacCMCopyRunTftp=oacCMCopyRunTftp, oacCMCopyTftpRunTable=oacCMCopyTftpRunTable, oacCMCopyTftpRunEntry=oacCMCopyTftpRunEntry, oacCMCopyRunTftpEntry=oacCMCopyRunTftpEntry, oacCMCopy=oacCMCopy, oacConfigMgmtObjects=oacConfigMgmtObjects, oacCMRunningConfigSaved=oacCMRunningConfigSaved, oacCMCopyIndex=oacCMCopyIndex, PYSNMP_MODULE_ID=oacConfigMgmtMIBModule, oacCMGroups=oacCMGroups, oacConfigMgmtNotifications=oacConfigMgmtNotifications, oacCMCopyTftpRun=oacCMCopyTftpRun, oacCMGeneralGroup=oacCMGeneralGroup, oacCMCompliance=oacCMCompliance, oacCMCopyRunTftpTable=oacCMCopyRunTftpTable, oacCMHistoryRunningLastSaved=oacCMHistoryRunningLastSaved)
|
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, value_size_constraint, single_value_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion')
(oac_exp_im_management, oac_requirements, oac_mib_modules) = mibBuilder.importSymbols('ONEACCESS-GLOBAL-REG', 'oacExpIMManagement', 'oacRequirements', 'oacMIBModules')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(counter32, notification_type, object_identity, bits, counter64, iso, module_identity, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, unsigned32, gauge32, ip_address, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'NotificationType', 'ObjectIdentity', 'Bits', 'Counter64', 'iso', 'ModuleIdentity', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Unsigned32', 'Gauge32', 'IpAddress', 'TimeTicks')
(display_string, textual_convention, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'DateAndTime')
oac_config_mgmt_mib_module = module_identity((1, 3, 6, 1, 4, 1, 13191, 1, 100, 2001))
oacConfigMgmtMIBModule.setRevisions(('2011-10-27 00:00', '2010-07-08 10:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
oacConfigMgmtMIBModule.setRevisionsDescriptions(('Added MODULE-COMPLIANCE AND OBJECT GROUP, fixed some minor corrections.', "This MIB module describes a MIB for keeping track of changes on equipment's configuration."))
if mibBuilder.loadTexts:
oacConfigMgmtMIBModule.setLastUpdated('201110270000Z')
if mibBuilder.loadTexts:
oacConfigMgmtMIBModule.setOrganization(' OneAccess ')
if mibBuilder.loadTexts:
oacConfigMgmtMIBModule.setContactInfo('Pascal KESTELOOT Postal: ONE ACCESS 381 Avenue du Gnral de Gaulle 92140 Clamart, France FRANCE Tel: (+33) 01 41 87 70 00 Fax: (+33) 01 41 87 74 00 E-mail: [email protected]')
if mibBuilder.loadTexts:
oacConfigMgmtMIBModule.setDescription('Contact updated')
oac_exp_im_config_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6))
oac_config_mgmt_objects = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1))
oac_cm_history = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1))
oac_cm_copy = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2))
oac_config_mgmt_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 3))
oac_cm_history_running_last_changed = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 1), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
oacCMHistoryRunningLastChanged.setStatus('current')
if mibBuilder.loadTexts:
oacCMHistoryRunningLastChanged.setDescription('The time when the running configuration was last changed.')
oac_cm_history_running_last_saved = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 2), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
oacCMHistoryRunningLastSaved.setStatus('current')
if mibBuilder.loadTexts:
oacCMHistoryRunningLastSaved.setDescription('The time when the running configuration was last saved (written).')
oac_cm_history_startup_last_changed = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 1, 3), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
oacCMHistoryStartupLastChanged.setStatus('current')
if mibBuilder.loadTexts:
oacCMHistoryStartupLastChanged.setDescription('The time when the startup configuration was last written to.')
oac_cm_copy_index = mib_scalar((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 1), ip_address())
if mibBuilder.loadTexts:
oacCMCopyIndex.setStatus('current')
if mibBuilder.loadTexts:
oacCMCopyIndex.setDescription('IP address used for configuration copy.')
oac_cm_copy_tftp_run_table = mib_table((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2))
if mibBuilder.loadTexts:
oacCMCopyTftpRunTable.setStatus('current')
if mibBuilder.loadTexts:
oacCMCopyTftpRunTable.setDescription('Config Table for TFTP copy of running config.')
oac_cm_copy_tftp_run_entry = mib_table_row((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2, 1)).setIndexNames((0, 'ONEACCESS-CONFIGMGMT-MIB', 'oacCMCopyIndex'))
if mibBuilder.loadTexts:
oacCMCopyTftpRunEntry.setStatus('current')
if mibBuilder.loadTexts:
oacCMCopyTftpRunEntry.setDescription('List of objects defining a conceptual copy tftp entry.')
oac_cm_copy_tftp_run = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 2, 1, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
oacCMCopyTftpRun.setStatus('current')
if mibBuilder.loadTexts:
oacCMCopyTftpRun.setDescription('Name of the file on the server where the configuration script is located. This variable is in effect a write-only variable. Attempts to read this variable will result in a no-such-object response.')
oac_cm_copy_run_tftp_table = mib_table((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3))
if mibBuilder.loadTexts:
oacCMCopyRunTftpTable.setStatus('current')
if mibBuilder.loadTexts:
oacCMCopyRunTftpTable.setDescription('Config Table for copy of running config to tftp.')
oac_cm_copy_run_tftp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3, 1)).setIndexNames((0, 'ONEACCESS-CONFIGMGMT-MIB', 'oacCMCopyIndex'))
if mibBuilder.loadTexts:
oacCMCopyRunTftpEntry.setStatus('current')
if mibBuilder.loadTexts:
oacCMCopyRunTftpEntry.setDescription('List of objects defining a conceptual copy tftp entry.')
oac_cm_copy_run_tftp = mib_table_column((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 2, 3, 1, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
oacCMCopyRunTftp.setStatus('current')
if mibBuilder.loadTexts:
oacCMCopyRunTftp.setDescription('Name of the file on the server where the configuration script will be stored. This variable is in effect a write-only variable. Attempts to read this variable will result in a no-such-object response.')
oac_cm_running_config_saved = notification_type((1, 3, 6, 1, 4, 1, 13191, 10, 3, 4, 6, 1, 3, 1))
if mibBuilder.loadTexts:
oacCMRunningConfigSaved.setStatus('current')
if mibBuilder.loadTexts:
oacCMRunningConfigSaved.setDescription('The running configuration has been saved.')
oac_cm_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001))
oac_cm_groups = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 1))
oac_cm_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 2))
oac_cm_compliance = module_compliance((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 2, 1)).setObjects(('ONEACCESS-CONFIGMGMT-MIB', 'oacCMGeneralGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
oac_cm_compliance = oacCMCompliance.setStatus('current')
if mibBuilder.loadTexts:
oacCMCompliance.setDescription('The compliance statement for agents that support the ONEACCESS-CONFIGMGMT-MIB.')
oac_cm_general_group = object_group((1, 3, 6, 1, 4, 1, 13191, 5, 2001, 1, 1)).setObjects(('ONEACCESS-CONFIGMGMT-MIB', 'oacCMHistoryRunningLastChanged'), ('ONEACCESS-CONFIGMGMT-MIB', 'oacCMHistoryRunningLastSaved'), ('ONEACCESS-CONFIGMGMT-MIB', 'oacCMHistoryStartupLastChanged'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
oac_cm_general_group = oacCMGeneralGroup.setStatus('current')
if mibBuilder.loadTexts:
oacCMGeneralGroup.setDescription('This group is mandatory for Configuration Management entity.')
mibBuilder.exportSymbols('ONEACCESS-CONFIGMGMT-MIB', oacCMCompliances=oacCMCompliances, oacCMConformance=oacCMConformance, oacCMHistory=oacCMHistory, oacCMHistoryRunningLastChanged=oacCMHistoryRunningLastChanged, oacConfigMgmtMIBModule=oacConfigMgmtMIBModule, oacCMHistoryStartupLastChanged=oacCMHistoryStartupLastChanged, oacExpIMConfigMgmt=oacExpIMConfigMgmt, oacCMCopyRunTftp=oacCMCopyRunTftp, oacCMCopyTftpRunTable=oacCMCopyTftpRunTable, oacCMCopyTftpRunEntry=oacCMCopyTftpRunEntry, oacCMCopyRunTftpEntry=oacCMCopyRunTftpEntry, oacCMCopy=oacCMCopy, oacConfigMgmtObjects=oacConfigMgmtObjects, oacCMRunningConfigSaved=oacCMRunningConfigSaved, oacCMCopyIndex=oacCMCopyIndex, PYSNMP_MODULE_ID=oacConfigMgmtMIBModule, oacCMGroups=oacCMGroups, oacConfigMgmtNotifications=oacConfigMgmtNotifications, oacCMCopyTftpRun=oacCMCopyTftpRun, oacCMGeneralGroup=oacCMGeneralGroup, oacCMCompliance=oacCMCompliance, oacCMCopyRunTftpTable=oacCMCopyRunTftpTable, oacCMHistoryRunningLastSaved=oacCMHistoryRunningLastSaved)
|
coco_keypoints = [ "nose", # 0
"left_eye", # 1
"right_eye", # 2
"left_ear", # 3
"right_ear", # 4
"left_shoulder", # 5
"right_shoulder", # 6
"left_elbow", # 7
"right_elbow", # 8
"left_wrist", # 9
"right_wrist", # 10
"left_hip", # 11
"right_hip", # 12
"left_knee", # 13
"right_knee", # 14
"left_ankle", # 15
"right_ankle" # 16
]
coco_pairs = [ (0,1), # 0 nose to left_eye
(0,2), # 1 nose to right_eye
(1,3), # 2 left_eye to left_ear
(2,4), # 3 right_eye to right_ear
(5,6), # 4 left_shoulder to right_shoulder
(5,7), # 5 left_shoulder to left_elbow
(6,8), # 6 right_shoulder to right_elbow
(7,9), # 7 left_elbow to left_wrist
(8,10), # 8 right_elbow to right_wrist
(11,12), # 9 left_hip to right_hip
(11,13), # 10 left_hip to left_knee
(12,14), # 11 right_hip to right_knee
(13,15), # 12 left_knee to left_ankle
(14,16) # 13 right_knee to right_ankle
]
|
coco_keypoints = ['nose', 'left_eye', 'right_eye', 'left_ear', 'right_ear', 'left_shoulder', 'right_shoulder', 'left_elbow', 'right_elbow', 'left_wrist', 'right_wrist', 'left_hip', 'right_hip', 'left_knee', 'right_knee', 'left_ankle', 'right_ankle']
coco_pairs = [(0, 1), (0, 2), (1, 3), (2, 4), (5, 6), (5, 7), (6, 8), (7, 9), (8, 10), (11, 12), (11, 13), (12, 14), (13, 15), (14, 16)]
|
# Return tracebacks with OperationOutcomes when an exceprion occurs
DEBUG = False
# How many items should we include in budles whwn count is not specified
DEFAULT_BUNDLE_SIZE = 20
# Limit bundles to this size even if more are requested
# TODO: Disable limiting when set to 0
MAX_BUNDLE_SIZE = 100
# Path to the models module
MODELS_PATH = "models"
# Which DB backend should be used
# SQLAlchemy | DjangoORM | PyMODM
DB_BACKEND = "SQLAlchemy"
# Various settings related to how strictly the application handles
# some situation. A value of True normally means that an error will be thrown
STRICT_MODE = {
# Throw or ignore attempts to set an attribute without having defined a setter func
'set_attribute_without_setter': False,
# Throw when attempting to create a reference to an object that does not exist on the server
'set_non_existent_reference': False,
}
|
debug = False
default_bundle_size = 20
max_bundle_size = 100
models_path = 'models'
db_backend = 'SQLAlchemy'
strict_mode = {'set_attribute_without_setter': False, 'set_non_existent_reference': False}
|
peso = float(input('Digite o peso da pessoa \t'))
engorda = peso + (peso*0.15)
emagrece = peso - (peso*0.20)
print('Se engordar , peso = ',engorda)
print('Se emagrece , peso = ',emagrece)
|
peso = float(input('Digite o peso da pessoa \t'))
engorda = peso + peso * 0.15
emagrece = peso - peso * 0.2
print('Se engordar , peso = ', engorda)
print('Se emagrece , peso = ', emagrece)
|
#conditional tests- testing for equalities
sanrio_1 = 'keroppi'
print("Is sanrio == 'keroppi'? I predict True.")
print(sanrio_1 == 'keroppi')
sanrio_2 = 'hello kitty'
print("Is sanrio == 'Hello Kitty'? I predict True.")
print(sanrio_2 == 'hello kitty')
sanrio_3 = 'pochacco'
print("Is sanrio == 'Pochacco'? I predict True.")
print(sanrio_3 == 'pochacco')
sanrio_4 = 'chococat'
print("Is sanrio == 'Chococat'? I predict True.")
print(sanrio_4 == 'chococat')
sanrio_5 = 'badtzmaru'
print("Is sanrio == 'Badtzmaru'? I predict True.")
print(sanrio_5 == 'badtzmaru')
sanrio_6 = 'cinnamoroll'
print("Is sanrio == 'Cinnamoroll'? I predict True.")
print(sanrio_6 == 'cinnamoroll')
sanrio_7 = 'gudetama'
print("Is sanrio == 'Gudetama'? I predict True.")
print(sanrio_7 == 'gudetama')
sanrio_8 = 'my melody'
print("Is sanrio == 'My Melody'? I predict True.")
print(sanrio_8 == 'my melody')
sanrio_9 = 'kuromi'
print("Is sanrio == 'Kuromi'? I predict True.")
print(sanrio_9 == 'kuromi')
sanrio_10 = 'pompompurin'
print("Is sanrio == 'Pompompurin'? I predict True.")
print(sanrio_10 == 'pompompurin')
#finding a false
print("Is sanrio == 'Mickey'? I predict False.")
print(sanrio_1 == 'mickey')
print("Is sanrio == 'Minnie'? I predict False.")
print(sanrio_2 == 'minnie')
print("Is sanrio == 'Goffy'? I predict False.")
print(sanrio_3 == 'goofy')
print("Is sanrio == 'Donald'? I predict False.")
print(sanrio_4 == 'donald')
print("Is sanrio == 'Dasiy'? I predict False.")
print(sanrio_5 == 'daisy')
#testing for inequality
sanrio_11 = 'aggretsuko'
if sanrio_11 != 'pluto':
print("\nThat is not a Sanrio character")
#using the lower() method
print(sanrio_11 == 'Aggretsuko')
print(sanrio_11.lower() == 'aggretsuko')
#checking if an item is on a list
sanrio_friends = ['hello kitty', 'pochacco', 'keroppi']
friend = 'pickachu'
if friend not in sanrio_friends:
print(f"\n{friend.title()} is not part of the Sanrio friends.")
#adult ages
my_age = 28
print(my_age == 28)
print(my_age < 50)
print(my_age > 75)
print(my_age <= 25)
print(my_age >= 15)
#if and else statements
alien_colors = ['green', 'blue', 'yellow']
if 'green' in alien_colors:
print("\n5 points for the green alien!")
if 'blue' in alien_colors:
print("10 points for a blue alien!")
if 'yellow' in alien_colors:
print("15 points for the yellow alien!")
else:
print("Looser!")
favorite_fruits = ['strawberries', 'bananas', 'watermelon']
if 'strawberries' in favorite_fruits:
print("\nStrawberry feilds forever!")
if 'bananas' in favorite_fruits:
print("\nThis ish is BANANAS!")
if 'watermelon' in favorite_fruits:
print("\nWatermelon-Sugar-HIGH!")
else:
print("\nThat is not a musically based fruit.")
#if and elif statements with numbers
dinseyland_guest_age = 28
if dinseyland_guest_age < 2:
print("\nBabies are free of admission")
elif dinseyland_guest_age < 4:
print("\nToddlers are $25 for admission")
elif dinseyland_guest_age < 13:
print("\nChildren are $50 for admission")
elif dinseyland_guest_age < 20:
print("\nTeens are $75 for admission")
elif dinseyland_guest_age < 65:
print("\nAdults are $100 for admission")
elif dinseyland_guest_age < 66:
print("\nSeniors are $50 for admission")
else:
print("\nThe dead are not allowed.")
#if statements with lists
usernames = ['admin', 'assistant', 'supervisor']
for username in usernames:
if username == 'admin':
print("\nWelcome Admin. Would you like to see a status report?")
else:
print("\nHello, thank you for loggin in again.")
#empty if statements
logins = []
if logins:
for login in logins:
print(f"\nWe need to find some users")
print("\nUser is here")
else:
print("\nUser failed to login.")
#checking usernames- ensuring unique names within a list
current_users = ['user1', 'user2', 'user3', 'user4', 'user5']
new_users = ['new1', 'new2', 'user3', 'new4', 'new5']
for new_user in new_users:
if new_user in current_users:
print("\nSorry, that username is taken. Please try again.")
elif new_users == 'New1':
print("\nUsername cannot be accepted as is. Try again")
elif new_users == 'New2':
print("\nUsername cannot be accepted as is. Try again")
elif new_users == 'New4':
print("\nUsername cannot be accepted as is. Try again")
elif new_users == 'New5':
print("\nUsername cannot be accepted as is. Try again")
else:
print("\nThis username is avaliable.")
#ordinal numbers
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for number in numbers:
if number == 1:
print("1st")
elif number == 2:
print("2nd")
elif number == 3:
print("3rd")
elif number == 4:
print("4th")
elif number == 5:
print("5th")
elif number == 6:
print("6th")
elif number == 7:
print("7th")
elif number == 8:
print("8th")
elif number == 9:
print("9th")
else:
print("ERROR")
|
sanrio_1 = 'keroppi'
print("Is sanrio == 'keroppi'? I predict True.")
print(sanrio_1 == 'keroppi')
sanrio_2 = 'hello kitty'
print("Is sanrio == 'Hello Kitty'? I predict True.")
print(sanrio_2 == 'hello kitty')
sanrio_3 = 'pochacco'
print("Is sanrio == 'Pochacco'? I predict True.")
print(sanrio_3 == 'pochacco')
sanrio_4 = 'chococat'
print("Is sanrio == 'Chococat'? I predict True.")
print(sanrio_4 == 'chococat')
sanrio_5 = 'badtzmaru'
print("Is sanrio == 'Badtzmaru'? I predict True.")
print(sanrio_5 == 'badtzmaru')
sanrio_6 = 'cinnamoroll'
print("Is sanrio == 'Cinnamoroll'? I predict True.")
print(sanrio_6 == 'cinnamoroll')
sanrio_7 = 'gudetama'
print("Is sanrio == 'Gudetama'? I predict True.")
print(sanrio_7 == 'gudetama')
sanrio_8 = 'my melody'
print("Is sanrio == 'My Melody'? I predict True.")
print(sanrio_8 == 'my melody')
sanrio_9 = 'kuromi'
print("Is sanrio == 'Kuromi'? I predict True.")
print(sanrio_9 == 'kuromi')
sanrio_10 = 'pompompurin'
print("Is sanrio == 'Pompompurin'? I predict True.")
print(sanrio_10 == 'pompompurin')
print("Is sanrio == 'Mickey'? I predict False.")
print(sanrio_1 == 'mickey')
print("Is sanrio == 'Minnie'? I predict False.")
print(sanrio_2 == 'minnie')
print("Is sanrio == 'Goffy'? I predict False.")
print(sanrio_3 == 'goofy')
print("Is sanrio == 'Donald'? I predict False.")
print(sanrio_4 == 'donald')
print("Is sanrio == 'Dasiy'? I predict False.")
print(sanrio_5 == 'daisy')
sanrio_11 = 'aggretsuko'
if sanrio_11 != 'pluto':
print('\nThat is not a Sanrio character')
print(sanrio_11 == 'Aggretsuko')
print(sanrio_11.lower() == 'aggretsuko')
sanrio_friends = ['hello kitty', 'pochacco', 'keroppi']
friend = 'pickachu'
if friend not in sanrio_friends:
print(f'\n{friend.title()} is not part of the Sanrio friends.')
my_age = 28
print(my_age == 28)
print(my_age < 50)
print(my_age > 75)
print(my_age <= 25)
print(my_age >= 15)
alien_colors = ['green', 'blue', 'yellow']
if 'green' in alien_colors:
print('\n5 points for the green alien!')
if 'blue' in alien_colors:
print('10 points for a blue alien!')
if 'yellow' in alien_colors:
print('15 points for the yellow alien!')
else:
print('Looser!')
favorite_fruits = ['strawberries', 'bananas', 'watermelon']
if 'strawberries' in favorite_fruits:
print('\nStrawberry feilds forever!')
if 'bananas' in favorite_fruits:
print('\nThis ish is BANANAS!')
if 'watermelon' in favorite_fruits:
print('\nWatermelon-Sugar-HIGH!')
else:
print('\nThat is not a musically based fruit.')
dinseyland_guest_age = 28
if dinseyland_guest_age < 2:
print('\nBabies are free of admission')
elif dinseyland_guest_age < 4:
print('\nToddlers are $25 for admission')
elif dinseyland_guest_age < 13:
print('\nChildren are $50 for admission')
elif dinseyland_guest_age < 20:
print('\nTeens are $75 for admission')
elif dinseyland_guest_age < 65:
print('\nAdults are $100 for admission')
elif dinseyland_guest_age < 66:
print('\nSeniors are $50 for admission')
else:
print('\nThe dead are not allowed.')
usernames = ['admin', 'assistant', 'supervisor']
for username in usernames:
if username == 'admin':
print('\nWelcome Admin. Would you like to see a status report?')
else:
print('\nHello, thank you for loggin in again.')
logins = []
if logins:
for login in logins:
print(f'\nWe need to find some users')
print('\nUser is here')
else:
print('\nUser failed to login.')
current_users = ['user1', 'user2', 'user3', 'user4', 'user5']
new_users = ['new1', 'new2', 'user3', 'new4', 'new5']
for new_user in new_users:
if new_user in current_users:
print('\nSorry, that username is taken. Please try again.')
elif new_users == 'New1':
print('\nUsername cannot be accepted as is. Try again')
elif new_users == 'New2':
print('\nUsername cannot be accepted as is. Try again')
elif new_users == 'New4':
print('\nUsername cannot be accepted as is. Try again')
elif new_users == 'New5':
print('\nUsername cannot be accepted as is. Try again')
else:
print('\nThis username is avaliable.')
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for number in numbers:
if number == 1:
print('1st')
elif number == 2:
print('2nd')
elif number == 3:
print('3rd')
elif number == 4:
print('4th')
elif number == 5:
print('5th')
elif number == 6:
print('6th')
elif number == 7:
print('7th')
elif number == 8:
print('8th')
elif number == 9:
print('9th')
else:
print('ERROR')
|
num =int(input(" Input a Number: "))
def factorsOf(num):
factors=[]
for i in range(1,num+1):
if num%i==0:
factors.append(i)
print(factors)
factorsOf(num)
|
num = int(input(' Input a Number: '))
def factors_of(num):
factors = []
for i in range(1, num + 1):
if num % i == 0:
factors.append(i)
print(factors)
factors_of(num)
|
# A non-empty array A consisting of N integers is given. The array contains an odd number of elements, and each element of the array can be paired with another element that has the same value, except for one element that is left unpaired.
# Write a function: that, given an array A consisting of N integers fulfilling the above conditions, returns the value of the unpaired element.
def oddOccurancesInArray(A):
if len(A) == 1:
return A[0]
A = sorted(A) # sort list
# iterate through every other index
for i in range(0 , len (A) , 2):
# if next element is outside list, return last element
if i+1 == len(A):
return A[i]
# if element doesnt match next element, return element
if A[i] != A[i+1]:
return A[i]
print(oddOccurancesInArray([9, 3, 9, 3, 9, 7, 9]))
|
def odd_occurances_in_array(A):
if len(A) == 1:
return A[0]
a = sorted(A)
for i in range(0, len(A), 2):
if i + 1 == len(A):
return A[i]
if A[i] != A[i + 1]:
return A[i]
print(odd_occurances_in_array([9, 3, 9, 3, 9, 7, 9]))
|
# Find which triangle numbers and which square numbers are the same
# Written: 13 Jul 2016 by Alex Vear
# Public domain. No rights reserved.
STARTVALUE = 1 # set the start value for the program to test
ENDVALUE = 1000000 # set the end value for the program to test
for num in range(STARTVALUE, ENDVALUE):
sqr = num*num
for i in range(STARTVALUE, ENDVALUE):
tri = ((i*(i+1))/2)
if sqr == tri:
print('Square Number:', sqr, ' ', 'Triangle Number:', tri, ' ', \
'Squared:', num, ' ', 'Triangled:', i)
else: continue
|
startvalue = 1
endvalue = 1000000
for num in range(STARTVALUE, ENDVALUE):
sqr = num * num
for i in range(STARTVALUE, ENDVALUE):
tri = i * (i + 1) / 2
if sqr == tri:
print('Square Number:', sqr, ' ', 'Triangle Number:', tri, ' ', 'Squared:', num, ' ', 'Triangled:', i)
else:
continue
|
class Solution:
def missingNumber(self, nums: List[int]) -> int:
l = len(nums)
return l * (1 + l) // 2 - sum(nums)
|
class Solution:
def missing_number(self, nums: List[int]) -> int:
l = len(nums)
return l * (1 + l) // 2 - sum(nums)
|
def quick_sort(data: list, first: int, last: int):
if not isinstance(data, list):
print(f'The data {data} MUST be of type list')
return
if not isinstance(first, int) or not isinstance(last, int):
print(f'The args {first}, and {last} MUST be an index')
return
if first < last:
# pi: Pivote Index
pi = partitions(data, first, last)
quick_sort(data, first, pi - 1)
quick_sort(data, pi + 1, last)
def partitions(data: list, first: int, last: int):
if not isinstance(data, list):
print(f'The data {data} MUST be of type list')
return
if not isinstance(first, int) or not isinstance(last, int):
print(f'The args {first}, and {last} MUST be an index')
return
#pv: Pivot Value
pv = data[first]
lower = first + 1
upper = last
done = False
while not done:
while lower <= upper and data[lower] <= pv:
lower += 1
while data[upper] >= pv and upper >= lower:
upper -= 1
if lower > upper:
done = True
else:
data[lower], data[upper] = data[upper], data[lower]
data[first], data[upper] = data[upper], data[first]
return upper
data = [87, 47, 23, 53, 20, 56, 6, 19, 8, 41]
print(data)
print( quick_sort(data, 0, len(data) - 1) )
print(data)
|
def quick_sort(data: list, first: int, last: int):
if not isinstance(data, list):
print(f'The data {data} MUST be of type list')
return
if not isinstance(first, int) or not isinstance(last, int):
print(f'The args {first}, and {last} MUST be an index')
return
if first < last:
pi = partitions(data, first, last)
quick_sort(data, first, pi - 1)
quick_sort(data, pi + 1, last)
def partitions(data: list, first: int, last: int):
if not isinstance(data, list):
print(f'The data {data} MUST be of type list')
return
if not isinstance(first, int) or not isinstance(last, int):
print(f'The args {first}, and {last} MUST be an index')
return
pv = data[first]
lower = first + 1
upper = last
done = False
while not done:
while lower <= upper and data[lower] <= pv:
lower += 1
while data[upper] >= pv and upper >= lower:
upper -= 1
if lower > upper:
done = True
else:
(data[lower], data[upper]) = (data[upper], data[lower])
(data[first], data[upper]) = (data[upper], data[first])
return upper
data = [87, 47, 23, 53, 20, 56, 6, 19, 8, 41]
print(data)
print(quick_sort(data, 0, len(data) - 1))
print(data)
|
# ------------------------------
# 42. Trapping Rain Water
#
# Description:
# Given n non-negative integers representing an elevation map where the width of each
# bar is 1, compute how much water it is able to trap after raining.
# (see picture on the website)
#
# Example:
# Input: [0,1,0,2,1,0,1,3,2,1,2,1]
# Output: 6
#
# Version: 2.0
# 11/09/19 by Jianfa
# ------------------------------
class Solution:
def trap(self, height: List[int]) -> int:
res = 0
current = 0
stack = []
while current < len(height):
while stack and height[current] > height[stack[-1]]:
last = stack.pop()
if not stack:
# if stack is empty after popping last out
break
distance = current - stack[-1] - 1 # get horizontal distance between current and left bar of the last
height_diff = min(height[stack[-1]], height[current]) - height[last] # get the height distance between a lower bar and height[last]
res += distance * height_diff
stack.append(current)
current += 1
return res
# Used for testing
if __name__ == "__main__":
test = Solution()
# ------------------------------
# Summary:
# Stack solution from https://leetcode.com/problems/trapping-rain-water/solution/
# More concise than mine. It leverage the status of stack. If stack is empty, that means
# current bar is the only higher bar than last bar so far. Otherwise, there must be a
# left higher bar so that form a trap between it and current bar.
# Repeat this until there is no lower bar than current one.
#
# O(n) time and O(n) space
|
class Solution:
def trap(self, height: List[int]) -> int:
res = 0
current = 0
stack = []
while current < len(height):
while stack and height[current] > height[stack[-1]]:
last = stack.pop()
if not stack:
break
distance = current - stack[-1] - 1
height_diff = min(height[stack[-1]], height[current]) - height[last]
res += distance * height_diff
stack.append(current)
current += 1
return res
if __name__ == '__main__':
test = solution()
|
# Scaler problem
def solve(s, queries):
left_most = [-1] * len(s)
index = -1
for i in range(len(s) - 1, -1, -1):
if s[i] == '1':
index = i
left_most[i] = index
right_most = [-1] * len(s)
index = -1
for i in range(len(s)):
if s[i] == '1':
index = i
right_most[i] = index
ones_count = [0] * len(s)
count = 0
for i, ch in enumerate(s):
if ch == '1':
count += 1
ones_count[i] = count
result = []
for left, right in queries:
left = left_most[left - 1]
right = right_most[right - 1]
if -1 in (left, right) or left > right:
result.append(0)
continue
total_bits = right - left + 1
ones = ones_count[right] - (0 if left == 0 else ones_count[left - 1])
result.append(total_bits - ones)
return result
res = solve("101010", [
[2, 2]
])
print(res)
|
def solve(s, queries):
left_most = [-1] * len(s)
index = -1
for i in range(len(s) - 1, -1, -1):
if s[i] == '1':
index = i
left_most[i] = index
right_most = [-1] * len(s)
index = -1
for i in range(len(s)):
if s[i] == '1':
index = i
right_most[i] = index
ones_count = [0] * len(s)
count = 0
for (i, ch) in enumerate(s):
if ch == '1':
count += 1
ones_count[i] = count
result = []
for (left, right) in queries:
left = left_most[left - 1]
right = right_most[right - 1]
if -1 in (left, right) or left > right:
result.append(0)
continue
total_bits = right - left + 1
ones = ones_count[right] - (0 if left == 0 else ones_count[left - 1])
result.append(total_bits - ones)
return result
res = solve('101010', [[2, 2]])
print(res)
|
class Solution(object):
def majorityElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
hashmap = {}
for num in nums:
hashmap[num] = hashmap.setdefault(num, 0) + 1
max_value = -sys.maxint
majority_element = None
for num in hashmap.keys():
if hashmap[num] > max_value:
max_value = hashmap[num]
majority_element = num
return majority_element
|
class Solution(object):
def majority_element(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
hashmap = {}
for num in nums:
hashmap[num] = hashmap.setdefault(num, 0) + 1
max_value = -sys.maxint
majority_element = None
for num in hashmap.keys():
if hashmap[num] > max_value:
max_value = hashmap[num]
majority_element = num
return majority_element
|
def getime(date):
list1=[]
for hour in range(8):
for minute in range(0,56,5):
if minute<10:
time=str(date)+'-0'+str(hour)+':0'+str(minute)+':01'
else:
time=str(date)+'-0'+str(hour)+':'+str(minute)+':01'
list1.append(time)
for hour in range(8,24):
if hour<10:
for minute in range(0,60):
if minute<10:
time=str(date)+'-0'+str(hour)+':0'+str(minute)+':01'
else:
time=str(date)+'-0'+str(hour)+':'+str(minute)+':01'
list1.append(time)
else:
for minute in range(0,60):
if minute<10:
time=str(date)+'-'+str(hour)+':0'+str(minute)+':01'
else:
time=str(date)+'-'+str(hour)+':'+str(minute)+':01'
list1.append(time)
return list1
|
def getime(date):
list1 = []
for hour in range(8):
for minute in range(0, 56, 5):
if minute < 10:
time = str(date) + '-0' + str(hour) + ':0' + str(minute) + ':01'
else:
time = str(date) + '-0' + str(hour) + ':' + str(minute) + ':01'
list1.append(time)
for hour in range(8, 24):
if hour < 10:
for minute in range(0, 60):
if minute < 10:
time = str(date) + '-0' + str(hour) + ':0' + str(minute) + ':01'
else:
time = str(date) + '-0' + str(hour) + ':' + str(minute) + ':01'
list1.append(time)
else:
for minute in range(0, 60):
if minute < 10:
time = str(date) + '-' + str(hour) + ':0' + str(minute) + ':01'
else:
time = str(date) + '-' + str(hour) + ':' + str(minute) + ':01'
list1.append(time)
return list1
|
HASH_KEY = 55
WORDS_LENGTH = 5
REQUIRED_WORDS = 365
MAX_GAME_ATTEMPTS = 6
WORDS_PATH = 'out/palabras5.txt'
GAME_HISTORY_PATH = 'out/partidas.json'
GAME_WORDS_PATH = 'out/palabras_por_fecha.json'
|
hash_key = 55
words_length = 5
required_words = 365
max_game_attempts = 6
words_path = 'out/palabras5.txt'
game_history_path = 'out/partidas.json'
game_words_path = 'out/palabras_por_fecha.json'
|
#hyperparameter
hidden_size = 256 # hidden size of model
layer_size = 3 # number of layers of model
dropout = 0.2 # dropout rate in training
bidirectional = True # use bidirectional RNN for encoder
use_attention = True # use attention between encoder-decoder
batch_size = 8 # batch size in training
workers = 4 # number of workers in dataset loader
max_epochs = 10 # number of max epochs in training
lr = 1e-04 # learning rate
teacher_forcing = 0.9 # teacher forcing ratio in decoder
max_len = 80 # maximum characters of sentence
seed = 1 # random seed
mode = 'train'
data_csv_path = './dataset/train/train_data/data_list.csv'
DATASET_PATH = './dataset/train'
# audio params
SAMPLE_RATE = 16000
WINDOW_SIZE = 0.02
WINDOW_STRIDE = 0.01
WINDOW = 'hamming'
# audio loader params
SR = 22050
NUM_WORKERS = 4
BATCH_SIZE = 100 #600
#NUM_SAMPLES = 59049
# optimizer
LR = 0.0001
WEIGHT_DECAY = 1e-5
EPS = 1e-8
# epoch
MAX_EPOCH = 500
SEED = 123456
DEVICE_IDS=[0,1,2,3]
# train params
DROPOUT = 0.5
NUM_EPOCHS = 300
|
hidden_size = 256
layer_size = 3
dropout = 0.2
bidirectional = True
use_attention = True
batch_size = 8
workers = 4
max_epochs = 10
lr = 0.0001
teacher_forcing = 0.9
max_len = 80
seed = 1
mode = 'train'
data_csv_path = './dataset/train/train_data/data_list.csv'
dataset_path = './dataset/train'
sample_rate = 16000
window_size = 0.02
window_stride = 0.01
window = 'hamming'
sr = 22050
num_workers = 4
batch_size = 100
lr = 0.0001
weight_decay = 1e-05
eps = 1e-08
max_epoch = 500
seed = 123456
device_ids = [0, 1, 2, 3]
dropout = 0.5
num_epochs = 300
|
class ProcessorResults():
"""
This class is a intended to be used as a standard results class to store
every results object to be needed in the Processor class.
"""
def __init__(self):
self.all_tracks = {}
|
class Processorresults:
"""
This class is a intended to be used as a standard results class to store
every results object to be needed in the Processor class.
"""
def __init__(self):
self.all_tracks = {}
|
''' write a function to sort a given list and return sorted list using sort() or sorted() functions'''
def sorted_list(alist):
return sorted(alist)
sorted_me = sorted_list([5,2,1,7,8,3,2,9,4])
print(sorted_me)
def sort_list(alist):
return alist.sort()
sort_me = sort_list([5,2,1,7,8,3,2,9,4])
print(sort_me)
|
""" write a function to sort a given list and return sorted list using sort() or sorted() functions"""
def sorted_list(alist):
return sorted(alist)
sorted_me = sorted_list([5, 2, 1, 7, 8, 3, 2, 9, 4])
print(sorted_me)
def sort_list(alist):
return alist.sort()
sort_me = sort_list([5, 2, 1, 7, 8, 3, 2, 9, 4])
print(sort_me)
|
class Solution:
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
if numRows == 1:
return s
else:
p = []
placeholder = []
for _ in range(numRows):
placeholder.append(p.copy())
bucket = 0
down = True
for i in range(len(s)):
placeholder[bucket].append(s[i])
if bucket == 0:
down = True
elif bucket == numRows - 1:
down = False
if down:
bucket += 1
else:
bucket -= 1
ret = ''
for holder in placeholder:
ret += ''.join(holder)
return ret
|
class Solution:
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
if numRows == 1:
return s
else:
p = []
placeholder = []
for _ in range(numRows):
placeholder.append(p.copy())
bucket = 0
down = True
for i in range(len(s)):
placeholder[bucket].append(s[i])
if bucket == 0:
down = True
elif bucket == numRows - 1:
down = False
if down:
bucket += 1
else:
bucket -= 1
ret = ''
for holder in placeholder:
ret += ''.join(holder)
return ret
|
class Solution:
""" Note: for UnionFind structure, see Structures/UnionFind/uf.py. """
def findRedundantConnection(self, edges: List[List[int]]) -> List[int]:
# Yes, goes from 0-n+1 but we don't use 0.
uf = UnionFind(range(len(edges)+1))
last = None
for (u, v) in edges:
if uf.find(u) == uf.find(v):
last = [u, v]
else:
uf.union(u, v)
return last
|
class Solution:
""" Note: for UnionFind structure, see Structures/UnionFind/uf.py. """
def find_redundant_connection(self, edges: List[List[int]]) -> List[int]:
uf = union_find(range(len(edges) + 1))
last = None
for (u, v) in edges:
if uf.find(u) == uf.find(v):
last = [u, v]
else:
uf.union(u, v)
return last
|
def solution(A):
h = set(A)
l = len(h)
for i in range(1, l+1):
if i not in h:
return i
return -1
# final check
print(solution([1, 2, 3, 4, 6]))
|
def solution(A):
h = set(A)
l = len(h)
for i in range(1, l + 1):
if i not in h:
return i
return -1
print(solution([1, 2, 3, 4, 6]))
|
class BitmaskPrinter:
bitmask_object_template = '''/* Autogenerated Code - do not edit directly */
#pragma once
#include <stdint.h>
#include <jude/core/c/jude_enum.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef uint%SIZE%_t %BITMASK%_t;
extern const jude_bitmask_map_t %BITMASK%_bitmask_map[];
#ifdef __cplusplus
}
#include <jude/jude.h>
namespace jude
{
class %BITMASK% : public BitMask
{
public:
enum Value
{
%VALUES%,
__INVALID_VALUE
};
%BITMASK%(Object& parent, jude_size_t fieldIndex, jude_size_t arrayIndex = 0)
: BitMask(%BITMASK%_bitmask_map[0], parent, fieldIndex, arrayIndex)
{}
static const char* GetString(Value value);
static const char* GetDescription(Value value);
static const Value* FindValue(const char* name);
static Value GetValue(const char* name);
// Backwards compatibility
static auto AsText(Value value) { return GetString(value); };
%BIT_ACCESSORS%
};
} /* namespace jude */
#endif
'''
bitmask_accessors_template = '''
bool Is_%BIT%() const { return BitMask::IsBitSet(%BIT%); }
void Set_%BIT%() { return BitMask::SetBit(%BIT%); }
void Clear_%BIT%() { return BitMask::ClearBit(%BIT%); }
'''
bitmask_source_template = '''
#include "%BITMASK%.h"
extern "C" const jude_bitmask_map_t %BITMASK%_bitmask_map[] =
{
%VALUES%,
JUDE_ENUM_MAP_END
};
namespace jude
{
const jude_size_t %BITMASK%_COUNT = (jude_size_t)(sizeof(%BITMASK%_bitmask_map) / sizeof(%BITMASK%_bitmask_map[0]));
const char* %BITMASK%::GetString(%BITMASK%::Value value)
{
return jude_enum_find_string(%BITMASK%_bitmask_map, value);
}
const char* %BITMASK%::GetDescription(%BITMASK%::Value value)
{
return jude_enum_find_description(%BITMASK%_bitmask_map, value);
}
const %BITMASK%::Value* %BITMASK%::FindValue(const char* name)
{
return (const %BITMASK%::Value*)jude_enum_find_value(%BITMASK%_bitmask_map, name);
}
%BITMASK%::Value %BITMASK%::GetValue(const char* name)
{
return (%BITMASK%::Value)jude_enum_get_value(%BITMASK%_bitmask_map, name);
}
}
'''
def __init__(self, importPrefix, name, bitmask_def):
print("Parsing bitmask: ", name, "...")
self.name = name
self.importPrefix = importPrefix
self.bits = []
self.size = 8
for label, data in bitmask_def.items():
bit = 0
description = ''
if isinstance(data,dict):
if not data.__contains__('bit'):
raise SyntaxError("bitmask bit defined as dictionary but no 'bit' given: " + data)
bit = int(data['bit'])
if data.__contains__('description'):
description = data['description']
elif isinstance(data,int):
bit = data
else:
raise SyntaxError("bitmask element not defined as dictionary or int: " + bit)
if bit < 0 or bit > 63:
raise SyntaxError("bitmask bit value %d is not allowed, should be in range [0,63]" % bit)
if bit > 7 and self.size < 16:
self.size = 16
elif bit > 15 and self.size < 32:
self.size = 32
if bit > 31:
self.size = 64
self.bits.append((label, bit, description))
# sort list by the bit values
self.bits = sorted(self.bits, key=lambda x: x[1])
def create_object(self):
c_values = ',\n'.join([" %s = %d" % (x, y) for (x,y,z) in self.bits])
bit_accessors = ''.join([self.bitmask_accessors_template \
.replace("%BITMASK%", str(self.name))\
.replace("%BIT%", str(x)) for (x,y,z) in self.bits])
return self.bitmask_object_template.replace("%VALUES%", str(c_values)) \
.replace("%SIZE%", str(self.size)) \
.replace("%BITMASK%", str(self.name)) \
.replace("%BIT_ACCESSORS%", str(bit_accessors)) \
.replace("%FILE%", str(self.name).upper())
def create_source(self):
values = ',\n'.join([' JUDE_ENUM_MAP_ENTRY(%s, %s, "%s")' % (x,y,z) for (x,y,z) in self.bits])
return self.bitmask_source_template.replace("%VALUES%", str(values)) \
.replace("%BITMASK%", str(self.name)) \
.replace("%FILE%", str(self.name).upper())
|
class Bitmaskprinter:
bitmask_object_template = '/* Autogenerated Code - do not edit directly */\n#pragma once\n\n#include <stdint.h>\n#include <jude/core/c/jude_enum.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef uint%SIZE%_t %BITMASK%_t;\nextern const jude_bitmask_map_t %BITMASK%_bitmask_map[];\n\n#ifdef __cplusplus\n}\n\n#include <jude/jude.h>\n\nnamespace jude \n{\n\nclass %BITMASK% : public BitMask\n{\npublic:\n enum Value\n {\n%VALUES%,\n __INVALID_VALUE\n };\n\n %BITMASK%(Object& parent, jude_size_t fieldIndex, jude_size_t arrayIndex = 0)\n : BitMask(%BITMASK%_bitmask_map[0], parent, fieldIndex, arrayIndex)\n {}\n\n static const char* GetString(Value value);\n static const char* GetDescription(Value value);\n static const Value* FindValue(const char* name);\n static Value GetValue(const char* name);\n\n // Backwards compatibility\n static auto AsText(Value value) { return GetString(value); };\n\n%BIT_ACCESSORS%\n};\n\n} /* namespace jude */\n\n#endif\n\n'
bitmask_accessors_template = '\n bool Is_%BIT%() const { return BitMask::IsBitSet(%BIT%); }\n void Set_%BIT%() { return BitMask::SetBit(%BIT%); }\n void Clear_%BIT%() { return BitMask::ClearBit(%BIT%); }\n'
bitmask_source_template = '\n#include "%BITMASK%.h"\n\nextern "C" const jude_bitmask_map_t %BITMASK%_bitmask_map[] = \n{\n%VALUES%,\n JUDE_ENUM_MAP_END\n};\n\nnamespace jude\n{\n const jude_size_t %BITMASK%_COUNT = (jude_size_t)(sizeof(%BITMASK%_bitmask_map) / sizeof(%BITMASK%_bitmask_map[0]));\n\n const char* %BITMASK%::GetString(%BITMASK%::Value value)\n {\n return jude_enum_find_string(%BITMASK%_bitmask_map, value);\n }\n\n const char* %BITMASK%::GetDescription(%BITMASK%::Value value)\n {\n return jude_enum_find_description(%BITMASK%_bitmask_map, value);\n }\n\n const %BITMASK%::Value* %BITMASK%::FindValue(const char* name)\n {\n return (const %BITMASK%::Value*)jude_enum_find_value(%BITMASK%_bitmask_map, name);\n }\n\n %BITMASK%::Value %BITMASK%::GetValue(const char* name)\n {\n return (%BITMASK%::Value)jude_enum_get_value(%BITMASK%_bitmask_map, name);\n }\n}\n'
def __init__(self, importPrefix, name, bitmask_def):
print('Parsing bitmask: ', name, '...')
self.name = name
self.importPrefix = importPrefix
self.bits = []
self.size = 8
for (label, data) in bitmask_def.items():
bit = 0
description = ''
if isinstance(data, dict):
if not data.__contains__('bit'):
raise syntax_error("bitmask bit defined as dictionary but no 'bit' given: " + data)
bit = int(data['bit'])
if data.__contains__('description'):
description = data['description']
elif isinstance(data, int):
bit = data
else:
raise syntax_error('bitmask element not defined as dictionary or int: ' + bit)
if bit < 0 or bit > 63:
raise syntax_error('bitmask bit value %d is not allowed, should be in range [0,63]' % bit)
if bit > 7 and self.size < 16:
self.size = 16
elif bit > 15 and self.size < 32:
self.size = 32
if bit > 31:
self.size = 64
self.bits.append((label, bit, description))
self.bits = sorted(self.bits, key=lambda x: x[1])
def create_object(self):
c_values = ',\n'.join([' %s = %d' % (x, y) for (x, y, z) in self.bits])
bit_accessors = ''.join([self.bitmask_accessors_template.replace('%BITMASK%', str(self.name)).replace('%BIT%', str(x)) for (x, y, z) in self.bits])
return self.bitmask_object_template.replace('%VALUES%', str(c_values)).replace('%SIZE%', str(self.size)).replace('%BITMASK%', str(self.name)).replace('%BIT_ACCESSORS%', str(bit_accessors)).replace('%FILE%', str(self.name).upper())
def create_source(self):
values = ',\n'.join([' JUDE_ENUM_MAP_ENTRY(%s, %s, "%s")' % (x, y, z) for (x, y, z) in self.bits])
return self.bitmask_source_template.replace('%VALUES%', str(values)).replace('%BITMASK%', str(self.name)).replace('%FILE%', str(self.name).upper())
|
# -------------------------------------------------- class: AddonInstallSettings ------------------------------------------------- #
class AddonInstallSettings:
# --------------------------------------------------------- Init --------------------------------------------------------- #
def __init__(
self,
path: str
):
self.path = path
# ---------------------------------------------------- Public methods ---------------------------------------------------- #
def post_install_action(
self,
browser,#: Firefox, Chrome, etc.
addon_id: str,
internal_addon_id: str,
addon_base_url: str
) -> None:
return None
# -------------------------------------------------------------------------------------------------------------------------------- #
|
class Addoninstallsettings:
def __init__(self, path: str):
self.path = path
def post_install_action(self, browser, addon_id: str, internal_addon_id: str, addon_base_url: str) -> None:
return None
|
'''
Description:
You are given the root of a binary tree with n nodes, where each node is uniquely assigned a value from 1 to n. You are also given a sequence of n values voyage, which is the desired pre-order traversal of the binary tree.
Any node in the binary tree can be flipped by swapping its left and right subtrees. For example, flipping node 1 will have the following effect:
Flip the smallest number of nodes so that the pre-order traversal of the tree matches voyage.
Return a list of the values of all flipped nodes. You may return the answer in any order. If it is impossible to flip the nodes in the tree to make the pre-order traversal match voyage, return the list [-1].
Example 1:
Input: root = [1,2], voyage = [2,1]
Output: [-1]
Explanation: It is impossible to flip the nodes such that the pre-order traversal matches voyage.
Example 2:
Input: root = [1,2,3], voyage = [1,3,2]
Output: [1]
Explanation: Flipping node 1 swaps nodes 2 and 3, so the pre-order traversal matches voyage.
Example 3:
Input: root = [1,2,3], voyage = [1,2,3]
Output: []
Explanation: The tree's pre-order traversal already matches voyage, so no nodes need to be flipped.
Constraints:
The number of nodes in the tree is n.
n == voyage.length
1 <= n <= 100
1 <= Node.val, voyage[i] <= n
All the values in the tree are unique.
All the values in voyage are unique.
'''
class Solution:
def flipMatchVoyage(self, root, voyage):
# ------------------------------
def dfs(root):
if not root:
# base case aka stop condition
# empty node or empty tree
return True
## general cases
if root.val != voyage[dfs.idx]:
# current node mismatch, no chance to make correction by flip
return False
# voyage index moves forward
dfs.idx += 1
if root.left and (root.left.val != voyage[dfs.idx]):
# left child mismatch, flip with right child if right child exists
root.right and result.append( root.val )
# check subtree in preorder DFS with child node flip
return dfs(root.right) and dfs(root.left)
else:
# left child match, check subtree in preorder DFS
return dfs(root.left) and dfs(root.right)
# --------------------------
# flip sequence
result = []
# voyage index during dfs
dfs.idx = 0
# start checking from root node
good = dfs(root)
return result if good else [-1]
# n : the number of nodes in binary tree
## Time Complexity: O( n )
#
# The overhead in time is the cost of dfs traversal, which is of O( n )
## Sapce Complexity: O( n )
#
# The overhead in space is the storage for recursion call stack, which is of O( n )
|
"""
Description:
You are given the root of a binary tree with n nodes, where each node is uniquely assigned a value from 1 to n. You are also given a sequence of n values voyage, which is the desired pre-order traversal of the binary tree.
Any node in the binary tree can be flipped by swapping its left and right subtrees. For example, flipping node 1 will have the following effect:
Flip the smallest number of nodes so that the pre-order traversal of the tree matches voyage.
Return a list of the values of all flipped nodes. You may return the answer in any order. If it is impossible to flip the nodes in the tree to make the pre-order traversal match voyage, return the list [-1].
Example 1:
Input: root = [1,2], voyage = [2,1]
Output: [-1]
Explanation: It is impossible to flip the nodes such that the pre-order traversal matches voyage.
Example 2:
Input: root = [1,2,3], voyage = [1,3,2]
Output: [1]
Explanation: Flipping node 1 swaps nodes 2 and 3, so the pre-order traversal matches voyage.
Example 3:
Input: root = [1,2,3], voyage = [1,2,3]
Output: []
Explanation: The tree's pre-order traversal already matches voyage, so no nodes need to be flipped.
Constraints:
The number of nodes in the tree is n.
n == voyage.length
1 <= n <= 100
1 <= Node.val, voyage[i] <= n
All the values in the tree are unique.
All the values in voyage are unique.
"""
class Solution:
def flip_match_voyage(self, root, voyage):
def dfs(root):
if not root:
return True
if root.val != voyage[dfs.idx]:
return False
dfs.idx += 1
if root.left and root.left.val != voyage[dfs.idx]:
root.right and result.append(root.val)
return dfs(root.right) and dfs(root.left)
else:
return dfs(root.left) and dfs(root.right)
result = []
dfs.idx = 0
good = dfs(root)
return result if good else [-1]
|
"""
b = [int(x) for x in input().split()]
del b[0]
prefix = 0
suffix = 0
ans = 0
for n in range(len(b)):
prefix += b[n]
suffix += b[-n-1]
if prefix == suffix:
ans += 1
print(ans)
"""
a = input()
print(20156 if a.startswith('1') else 1)
|
"""
b = [int(x) for x in input().split()]
del b[0]
prefix = 0
suffix = 0
ans = 0
for n in range(len(b)):
prefix += b[n]
suffix += b[-n-1]
if prefix == suffix:
ans += 1
print(ans)
"""
a = input()
print(20156 if a.startswith('1') else 1)
|
#!/usr/bin/env python3
"""Utilities for building services in the Ride2Rail project."""
__version__ = '0.2.0'
__all__ = ['cli_utils', 'cache_operations', 'logging', 'normalization']
|
"""Utilities for building services in the Ride2Rail project."""
__version__ = '0.2.0'
__all__ = ['cli_utils', 'cache_operations', 'logging', 'normalization']
|
installed_extensions = [ 'azext_identitydirmgt_v1_0',
'azext_planner_v1_0',
'azext_identitysignins_v1_0',
'azext_schemaextensions_v1_0',
'azext_mail_v1_0',
'azext_files_v1_0',
'azext_notes_v1_0',
'azext_crossdeviceexperiences_v1_0',
'azext_cloudcommunications_v1_0',
'azext_directoryobjects_v1_0',
'azext_usersfunctions_v1_0',
'azext_applications_v1_0',
'azext_people_v1_0',
'azext_calendar_v1_0',
'azext_devicescorpmgt_v1_0',
'azext_changenotifications_v1_0',
'azext_usersactions_v1_0',
'azext_personalcontacts_v1_0',
'azext_reports_v1_0',
'azext_users_v1_0',
'azext_security_v1_0',
'azext_education_v1_0',
]
|
installed_extensions = ['azext_identitydirmgt_v1_0', 'azext_planner_v1_0', 'azext_identitysignins_v1_0', 'azext_schemaextensions_v1_0', 'azext_mail_v1_0', 'azext_files_v1_0', 'azext_notes_v1_0', 'azext_crossdeviceexperiences_v1_0', 'azext_cloudcommunications_v1_0', 'azext_directoryobjects_v1_0', 'azext_usersfunctions_v1_0', 'azext_applications_v1_0', 'azext_people_v1_0', 'azext_calendar_v1_0', 'azext_devicescorpmgt_v1_0', 'azext_changenotifications_v1_0', 'azext_usersactions_v1_0', 'azext_personalcontacts_v1_0', 'azext_reports_v1_0', 'azext_users_v1_0', 'azext_security_v1_0', 'azext_education_v1_0']
|
# Fields for the tables generated from the mysql dump
table_fields = {"commits":
[
"author_id",
"committer_id",
"project_id",
"created_at"
],
"counters":
[
"id",
"date",
"commit_comments",
"commit_parents",
"commits",
"followers",
"organization_members",
"projects",
"users",
"issues",
"pull_requests",
"issue_comments",
"pull_request_comments",
"pull_request_history",
"watchers",
"forks"
],
"followers":
[
"follower_id",
"user_id"
],
"forks":
[
"forked_project_id",
"forked_from_id",
"created_at"
],
"issues":
[
"repo_id",
"reporter_id",
"assignee_id",
"created_at"
],
"organization_members":
[
"org_id",
"user_id",
"created_at"
],
"project_commits":
[
"project_id",
"commit_id"
],
"project_members":
[
"repo_id",
"user_id",
"created_at"
],
"projects":
[
"id",
"owned_id",
"name",
"language",
"created_at",
"forked_from",
"deleted"
],
"pull_requests":
[
"id",
"head_repo_id",
"base_repo_id",
"head_commit_id",
"base_commid_id",
"user_id",
"merged"
],
"users":
[
"id",
"login",
"name",
"company",
"location",
"email",
"created_at",
"type"
],
"watchers":
[
"repo_id",
"user_id",
"created_at"
]}
|
table_fields = {'commits': ['author_id', 'committer_id', 'project_id', 'created_at'], 'counters': ['id', 'date', 'commit_comments', 'commit_parents', 'commits', 'followers', 'organization_members', 'projects', 'users', 'issues', 'pull_requests', 'issue_comments', 'pull_request_comments', 'pull_request_history', 'watchers', 'forks'], 'followers': ['follower_id', 'user_id'], 'forks': ['forked_project_id', 'forked_from_id', 'created_at'], 'issues': ['repo_id', 'reporter_id', 'assignee_id', 'created_at'], 'organization_members': ['org_id', 'user_id', 'created_at'], 'project_commits': ['project_id', 'commit_id'], 'project_members': ['repo_id', 'user_id', 'created_at'], 'projects': ['id', 'owned_id', 'name', 'language', 'created_at', 'forked_from', 'deleted'], 'pull_requests': ['id', 'head_repo_id', 'base_repo_id', 'head_commit_id', 'base_commid_id', 'user_id', 'merged'], 'users': ['id', 'login', 'name', 'company', 'location', 'email', 'created_at', 'type'], 'watchers': ['repo_id', 'user_id', 'created_at']}
|
# Leo colorizer control file for factor mode.
# This file is in the public domain.
# Properties for factor mode.
properties = {
"commentEnd": ")",
"commentStart": "(",
"doubleBracketIndent": "true",
"indentCloseBrackets": "]",
"indentNextLines": "^(\\*<<|:).*",
"indentOpenBrackets": "[",
"lineComment": "!",
"lineUpClosingBracket": "true",
"noWordSep": "+-*=><;.?/'",
}
# Attributes dict for factor_main ruleset.
factor_main_attributes_dict = {
"default": "null",
"digit_re": "-?\\d+([./]\\d+)?",
"escape": "\\",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "+-*=><;.?/'",
}
# Attributes dict for factor_stack_effect ruleset.
factor_stack_effect_attributes_dict = {
"default": "COMMENT4",
"digit_re": "-?\\d+([./]\\d+)?",
"escape": "\\",
"highlight_digits": "true",
"ignore_case": "false",
"no_word_sep": "+-*=><;.?/'",
}
# Dictionary of attributes dictionaries for factor mode.
attributesDictDict = {
"factor_main": factor_main_attributes_dict,
"factor_stack_effect": factor_stack_effect_attributes_dict,
}
# Keywords dict for factor_main ruleset.
factor_main_keywords_dict = {
"#{": "operator",
"--": "label",
";": "markup",
"<": "label",
">": "label",
"[": "operator",
"]": "operator",
"f": "literal4",
"r": "keyword1",
"t": "literal3",
"{": "operator",
"|": "operator",
"}": "operator",
"~": "label",
}
# Keywords dict for factor_stack_effect ruleset.
factor_stack_effect_keywords_dict = {}
# Dictionary of keywords dictionaries for factor mode.
keywordsDictDict = {
"factor_main": factor_main_keywords_dict,
"factor_stack_effect": factor_stack_effect_keywords_dict,
}
# Rules for factor_main ruleset.
def factor_rule0(colorer, s, i):
return colorer.match_eol_span(s, i, kind="comment2", seq="#!",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def factor_rule1(colorer, s, i):
return colorer.match_eol_span(s, i, kind="comment1", seq="!",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="", exclude_match=False)
def factor_rule2(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="markup", regexp=":\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule3(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="markup", regexp="IN:\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule4(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="markup", regexp="USE:\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule5(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="markup", regexp="DEFER:\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule6(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="markup", regexp="POSTPONE:\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule7(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="literal2", regexp="CHAR:\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule8(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="literal2", regexp="BIN:\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule9(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="literal2", regexp="OCT:\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule10(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind="literal2", regexp="HEX:\\s+(\\S+)",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
def factor_rule11(colorer, s, i):
return colorer.match_span(s, i, kind="comment3", begin="(", end=")",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="factor::stack_effect",exclude_match=False,
no_escape=False, no_line_break=False, no_word_break=False)
def factor_rule12(colorer, s, i):
return colorer.match_span(s, i, kind="literal1", begin="\"", end="\"",
at_line_start=False, at_whitespace_end=False, at_word_start=False,
delegate="",exclude_match=False,
no_escape=False, no_line_break=True, no_word_break=False)
def factor_rule13(colorer, s, i):
return colorer.match_keywords(s, i)
# Rules dict for factor_main ruleset.
rulesDict1 = {
"!": [factor_rule1,],
"\"": [factor_rule12,],
"#": [factor_rule0,factor_rule13,],
"(": [factor_rule11,],
"-": [factor_rule13,],
"0": [factor_rule13,],
"1": [factor_rule13,],
"2": [factor_rule13,],
"3": [factor_rule13,],
"4": [factor_rule13,],
"5": [factor_rule13,],
"6": [factor_rule13,],
"7": [factor_rule13,],
"8": [factor_rule13,],
"9": [factor_rule13,],
":": [factor_rule2,],
";": [factor_rule13,],
"<": [factor_rule13,],
">": [factor_rule13,],
"@": [factor_rule13,],
"A": [factor_rule13,],
"B": [factor_rule8,factor_rule13,],
"C": [factor_rule7,factor_rule13,],
"D": [factor_rule5,factor_rule13,],
"E": [factor_rule13,],
"F": [factor_rule13,],
"G": [factor_rule13,],
"H": [factor_rule10,factor_rule13,],
"I": [factor_rule3,factor_rule13,],
"J": [factor_rule13,],
"K": [factor_rule13,],
"L": [factor_rule13,],
"M": [factor_rule13,],
"N": [factor_rule13,],
"O": [factor_rule9,factor_rule13,],
"P": [factor_rule6,factor_rule13,],
"Q": [factor_rule13,],
"R": [factor_rule13,],
"S": [factor_rule13,],
"T": [factor_rule13,],
"U": [factor_rule4,factor_rule13,],
"V": [factor_rule13,],
"W": [factor_rule13,],
"X": [factor_rule13,],
"Y": [factor_rule13,],
"Z": [factor_rule13,],
"[": [factor_rule13,],
"]": [factor_rule13,],
"a": [factor_rule13,],
"b": [factor_rule13,],
"c": [factor_rule13,],
"d": [factor_rule13,],
"e": [factor_rule13,],
"f": [factor_rule13,],
"g": [factor_rule13,],
"h": [factor_rule13,],
"i": [factor_rule13,],
"j": [factor_rule13,],
"k": [factor_rule13,],
"l": [factor_rule13,],
"m": [factor_rule13,],
"n": [factor_rule13,],
"o": [factor_rule13,],
"p": [factor_rule13,],
"q": [factor_rule13,],
"r": [factor_rule13,],
"s": [factor_rule13,],
"t": [factor_rule13,],
"u": [factor_rule13,],
"v": [factor_rule13,],
"w": [factor_rule13,],
"x": [factor_rule13,],
"y": [factor_rule13,],
"z": [factor_rule13,],
"{": [factor_rule13,],
"|": [factor_rule13,],
"}": [factor_rule13,],
"~": [factor_rule13,],
}
# Rules for factor_stack_effect ruleset.
def factor_rule14(colorer, s, i):
return colorer.match_seq(s, i, kind="comment3", seq="--",
at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")
# Rules dict for factor_stack_effect ruleset.
rulesDict2 = {
"-": [factor_rule14,],
}
# x.rulesDictDict for factor mode.
rulesDictDict = {
"factor_main": rulesDict1,
"factor_stack_effect": rulesDict2,
}
# Import dict for factor mode.
importDict = {}
|
properties = {'commentEnd': ')', 'commentStart': '(', 'doubleBracketIndent': 'true', 'indentCloseBrackets': ']', 'indentNextLines': '^(\\*<<|:).*', 'indentOpenBrackets': '[', 'lineComment': '!', 'lineUpClosingBracket': 'true', 'noWordSep': "+-*=><;.?/'"}
factor_main_attributes_dict = {'default': 'null', 'digit_re': '-?\\d+([./]\\d+)?', 'escape': '\\', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': "+-*=><;.?/'"}
factor_stack_effect_attributes_dict = {'default': 'COMMENT4', 'digit_re': '-?\\d+([./]\\d+)?', 'escape': '\\', 'highlight_digits': 'true', 'ignore_case': 'false', 'no_word_sep': "+-*=><;.?/'"}
attributes_dict_dict = {'factor_main': factor_main_attributes_dict, 'factor_stack_effect': factor_stack_effect_attributes_dict}
factor_main_keywords_dict = {'#{': 'operator', '--': 'label', ';': 'markup', '<': 'label', '>': 'label', '[': 'operator', ']': 'operator', 'f': 'literal4', 'r': 'keyword1', 't': 'literal3', '{': 'operator', '|': 'operator', '}': 'operator', '~': 'label'}
factor_stack_effect_keywords_dict = {}
keywords_dict_dict = {'factor_main': factor_main_keywords_dict, 'factor_stack_effect': factor_stack_effect_keywords_dict}
def factor_rule0(colorer, s, i):
return colorer.match_eol_span(s, i, kind='comment2', seq='#!', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def factor_rule1(colorer, s, i):
return colorer.match_eol_span(s, i, kind='comment1', seq='!', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False)
def factor_rule2(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='markup', regexp=':\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule3(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='markup', regexp='IN:\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule4(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='markup', regexp='USE:\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule5(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='markup', regexp='DEFER:\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule6(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='markup', regexp='POSTPONE:\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule7(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='literal2', regexp='CHAR:\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule8(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='literal2', regexp='BIN:\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule9(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='literal2', regexp='OCT:\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule10(colorer, s, i):
return colorer.match_seq_regexp(s, i, kind='literal2', regexp='HEX:\\s+(\\S+)', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
def factor_rule11(colorer, s, i):
return colorer.match_span(s, i, kind='comment3', begin='(', end=')', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='factor::stack_effect', exclude_match=False, no_escape=False, no_line_break=False, no_word_break=False)
def factor_rule12(colorer, s, i):
return colorer.match_span(s, i, kind='literal1', begin='"', end='"', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='', exclude_match=False, no_escape=False, no_line_break=True, no_word_break=False)
def factor_rule13(colorer, s, i):
return colorer.match_keywords(s, i)
rules_dict1 = {'!': [factor_rule1], '"': [factor_rule12], '#': [factor_rule0, factor_rule13], '(': [factor_rule11], '-': [factor_rule13], '0': [factor_rule13], '1': [factor_rule13], '2': [factor_rule13], '3': [factor_rule13], '4': [factor_rule13], '5': [factor_rule13], '6': [factor_rule13], '7': [factor_rule13], '8': [factor_rule13], '9': [factor_rule13], ':': [factor_rule2], ';': [factor_rule13], '<': [factor_rule13], '>': [factor_rule13], '@': [factor_rule13], 'A': [factor_rule13], 'B': [factor_rule8, factor_rule13], 'C': [factor_rule7, factor_rule13], 'D': [factor_rule5, factor_rule13], 'E': [factor_rule13], 'F': [factor_rule13], 'G': [factor_rule13], 'H': [factor_rule10, factor_rule13], 'I': [factor_rule3, factor_rule13], 'J': [factor_rule13], 'K': [factor_rule13], 'L': [factor_rule13], 'M': [factor_rule13], 'N': [factor_rule13], 'O': [factor_rule9, factor_rule13], 'P': [factor_rule6, factor_rule13], 'Q': [factor_rule13], 'R': [factor_rule13], 'S': [factor_rule13], 'T': [factor_rule13], 'U': [factor_rule4, factor_rule13], 'V': [factor_rule13], 'W': [factor_rule13], 'X': [factor_rule13], 'Y': [factor_rule13], 'Z': [factor_rule13], '[': [factor_rule13], ']': [factor_rule13], 'a': [factor_rule13], 'b': [factor_rule13], 'c': [factor_rule13], 'd': [factor_rule13], 'e': [factor_rule13], 'f': [factor_rule13], 'g': [factor_rule13], 'h': [factor_rule13], 'i': [factor_rule13], 'j': [factor_rule13], 'k': [factor_rule13], 'l': [factor_rule13], 'm': [factor_rule13], 'n': [factor_rule13], 'o': [factor_rule13], 'p': [factor_rule13], 'q': [factor_rule13], 'r': [factor_rule13], 's': [factor_rule13], 't': [factor_rule13], 'u': [factor_rule13], 'v': [factor_rule13], 'w': [factor_rule13], 'x': [factor_rule13], 'y': [factor_rule13], 'z': [factor_rule13], '{': [factor_rule13], '|': [factor_rule13], '}': [factor_rule13], '~': [factor_rule13]}
def factor_rule14(colorer, s, i):
return colorer.match_seq(s, i, kind='comment3', seq='--', at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate='')
rules_dict2 = {'-': [factor_rule14]}
rules_dict_dict = {'factor_main': rulesDict1, 'factor_stack_effect': rulesDict2}
import_dict = {}
|
#%%
"""
- Lonely Pixel I
- https://leetcode.com/problems/lonely-pixel-i/
- Medium
"""
#%%
"""
Given a picture consisting of black and white pixels, find the number of black lonely pixels.
The picture is represented by a 2D char array consisting of 'B' and 'W', which means black and white pixels respectively.
A black lonely pixel is character 'B' that located at a specific position where the same row and same column don't have any other black pixels.
Example:
Input:
[['W', 'W', 'B'],
['W', 'B', 'W'],
['B', 'W', 'W']]
Output: 3
Explanation: All the three 'B's are black lonely pixels.
Note:
The range of width and height of the input 2D array is [1,500].
"""
#%%
class S1:
def findLonelyPixel(self, picture):
return sum(col.count('B') == 1 == picture[col.index('B')].count('B') for col in zip(*picture))
|
"""
- Lonely Pixel I
- https://leetcode.com/problems/lonely-pixel-i/
- Medium
"""
"\nGiven a picture consisting of black and white pixels, find the number of black lonely pixels.\n\nThe picture is represented by a 2D char array consisting of 'B' and 'W', which means black and white pixels respectively.\n\nA black lonely pixel is character 'B' that located at a specific position where the same row and same column don't have any other black pixels.\n\nExample:\n\nInput: \n[['W', 'W', 'B'],\n ['W', 'B', 'W'],\n ['B', 'W', 'W']]\n\nOutput: 3\nExplanation: All the three 'B's are black lonely pixels.\nNote:\n\nThe range of width and height of the input 2D array is [1,500].\n\n"
class S1:
def find_lonely_pixel(self, picture):
return sum((col.count('B') == 1 == picture[col.index('B')].count('B') for col in zip(*picture)))
|
"""
How to Use this File.
participants is a dictionary where a key is the name of the participant and the value is
a set of all the invalid selections for that participant.
participants = {'Bob': {'Sue', 'Jim'},
'Jim': {'Bob', 'Betty'},
} # And so on.
history is a dictionary where a key is the name of the participant and the value
is a list of tuples that contain a year and that participant's recipient
for that year.
history = {'Bob': [(2010, 'Betty'), (2011, 'Freddie')],
'Jim': [(2011, 'Sue']
# And so on.
}
"""
participants = {'Adam': {'Adam', 'Jeff', 'Joe', 'David'},
'Adrienne': {'Adrienne', 'Joe'},
'Amanda': {'Amanda', 'Stefan' ,'Angela'},
'Angela': {'Angela', 'Renee', 'Jeff', 'Nanna', 'Stefan', 'Justin', 'Amanda'},
'David': {'David', 'Jeff', 'Joe', 'Adam', 'Shaina'},
'Francesca': {'Francesca', 'Renee', 'George'},
'George': {'George', 'Renee', 'Francesca'},
'Jeff': {'Jeff', 'Renee', 'Angela', 'Nanna', 'Joe', 'Adam', 'David'},
'Joe': {'Joe', 'Jeff', 'David', 'Adam', 'Adrienne'},
'Justin': {'Justin', 'Angela', 'Stefan'},
'Nanna': {'Nanna', 'Jeff', 'Angela', 'Renee'},
'Renee': {'Renee', 'Jeff', 'Angela', 'Nanna', 'Francesca', 'George'},
'Shaina': {'Shaina', 'David'},
'Stefan': {'Stefan', 'Angela', 'Justin', 'Amanda'},
}
history = {'Adam': [(2015, 'Justin'), (2016, 'Amanda'), (2017, 'Angela'), (2018, 'Stefan')],
'Adrienne': [(2016, 'Jeff'), (2017, 'Stefan'), (2018, 'Justin')],
'Amanda': [(2015, 'Adam'), (2016, 'Adrienne'), (2017, 'Jeff'), (2018, 'George')],
'Angela': [(2015, 'Joe'), (2016, 'David'), (2017, 'Francesca'), (2018, 'Adrienne')],
'David': [(2015, 'Stefan'), (2016, 'Francesca'), (2017, 'Renee')],
'Francesca': [(2015, 'Angela'), (2016, 'Joe'), (2017, 'Adam'), (2018, 'Jeff')],
'George': [(2015, 'Jeff'), (2016, 'Angela'), (2017, 'Adrienne'), (2018, 'Joe')],
'Jeff': [(2015, 'Nanna'), (2016, 'Justin'), (2017, 'Shaina'), (2018, 'Amanda')],
'Joe': [(2015, 'Renee'), (2016, 'George'), (2017, 'Justin'), (2018, 'Angela')],
'Justin': [(2015, 'Francesca'), (2016, 'Adam'), (2017, 'George'), (2018, 'Renee')],
'Nanna': [(2015, 'David')],
'Renee': [(2015, 'Amanda'), (2016, 'Stefan'), (2017, 'David'), (2018, 'Adam')],
'Shaina': [(2017, 'Amanda')],
'Stefan': [(2015, 'George'), (2016, 'Renee'), (2017, 'Joe'), (2018, 'Francesca')],
}
class Participant:
"""The class for individual participants that contains their attributes."""
def __init__(self, name, restricted_set=None, giving_to=None):
self.name = name
self.restricted_set = restricted_set
self.restricted_set = participants.get(self.name)|set([y[1] for y in history.get(self.name)])
self.giving_to = giving_to
def main():
return sorted([Participant(p) for p in participants.keys()],
key=lambda p: len(p.restricted_set), reverse=True)
if __name__ == '__main__':
main()
|
"""
How to Use this File.
participants is a dictionary where a key is the name of the participant and the value is
a set of all the invalid selections for that participant.
participants = {'Bob': {'Sue', 'Jim'},
'Jim': {'Bob', 'Betty'},
} # And so on.
history is a dictionary where a key is the name of the participant and the value
is a list of tuples that contain a year and that participant's recipient
for that year.
history = {'Bob': [(2010, 'Betty'), (2011, 'Freddie')],
'Jim': [(2011, 'Sue']
# And so on.
}
"""
participants = {'Adam': {'Adam', 'Jeff', 'Joe', 'David'}, 'Adrienne': {'Adrienne', 'Joe'}, 'Amanda': {'Amanda', 'Stefan', 'Angela'}, 'Angela': {'Angela', 'Renee', 'Jeff', 'Nanna', 'Stefan', 'Justin', 'Amanda'}, 'David': {'David', 'Jeff', 'Joe', 'Adam', 'Shaina'}, 'Francesca': {'Francesca', 'Renee', 'George'}, 'George': {'George', 'Renee', 'Francesca'}, 'Jeff': {'Jeff', 'Renee', 'Angela', 'Nanna', 'Joe', 'Adam', 'David'}, 'Joe': {'Joe', 'Jeff', 'David', 'Adam', 'Adrienne'}, 'Justin': {'Justin', 'Angela', 'Stefan'}, 'Nanna': {'Nanna', 'Jeff', 'Angela', 'Renee'}, 'Renee': {'Renee', 'Jeff', 'Angela', 'Nanna', 'Francesca', 'George'}, 'Shaina': {'Shaina', 'David'}, 'Stefan': {'Stefan', 'Angela', 'Justin', 'Amanda'}}
history = {'Adam': [(2015, 'Justin'), (2016, 'Amanda'), (2017, 'Angela'), (2018, 'Stefan')], 'Adrienne': [(2016, 'Jeff'), (2017, 'Stefan'), (2018, 'Justin')], 'Amanda': [(2015, 'Adam'), (2016, 'Adrienne'), (2017, 'Jeff'), (2018, 'George')], 'Angela': [(2015, 'Joe'), (2016, 'David'), (2017, 'Francesca'), (2018, 'Adrienne')], 'David': [(2015, 'Stefan'), (2016, 'Francesca'), (2017, 'Renee')], 'Francesca': [(2015, 'Angela'), (2016, 'Joe'), (2017, 'Adam'), (2018, 'Jeff')], 'George': [(2015, 'Jeff'), (2016, 'Angela'), (2017, 'Adrienne'), (2018, 'Joe')], 'Jeff': [(2015, 'Nanna'), (2016, 'Justin'), (2017, 'Shaina'), (2018, 'Amanda')], 'Joe': [(2015, 'Renee'), (2016, 'George'), (2017, 'Justin'), (2018, 'Angela')], 'Justin': [(2015, 'Francesca'), (2016, 'Adam'), (2017, 'George'), (2018, 'Renee')], 'Nanna': [(2015, 'David')], 'Renee': [(2015, 'Amanda'), (2016, 'Stefan'), (2017, 'David'), (2018, 'Adam')], 'Shaina': [(2017, 'Amanda')], 'Stefan': [(2015, 'George'), (2016, 'Renee'), (2017, 'Joe'), (2018, 'Francesca')]}
class Participant:
"""The class for individual participants that contains their attributes."""
def __init__(self, name, restricted_set=None, giving_to=None):
self.name = name
self.restricted_set = restricted_set
self.restricted_set = participants.get(self.name) | set([y[1] for y in history.get(self.name)])
self.giving_to = giving_to
def main():
return sorted([participant(p) for p in participants.keys()], key=lambda p: len(p.restricted_set), reverse=True)
if __name__ == '__main__':
main()
|
# Source : https://leetcode.com/problems/find-the-highest-altitude/
# Author : foxfromworld
# Date : 13/11/2021
# First attempt
class Solution:
def largestAltitude(self, gain: List[int]) -> int:
alt, ret = 0, 0
for g in gain:
alt = alt + g
ret = max(alt, ret)
return ret
|
class Solution:
def largest_altitude(self, gain: List[int]) -> int:
(alt, ret) = (0, 0)
for g in gain:
alt = alt + g
ret = max(alt, ret)
return ret
|
def type_I(A, i, j):
# Swap two rows
A[i], A[j] = np.copy(A[j]), np.copy(A[i])
def type_II(A, i, const):
# Multiply row j of A by const
A[i] *= const
def type_III(A, i, j, const):
# Add a constant times row j to row i
A[i] += const*A[j]
|
def type_i(A, i, j):
(A[i], A[j]) = (np.copy(A[j]), np.copy(A[i]))
def type_ii(A, i, const):
A[i] *= const
def type_iii(A, i, j, const):
A[i] += const * A[j]
|
class Justifier:
def justify(self, textIn):
width = max(map(len, textIn))
return map(lambda s: s.rjust(width), textIn)
|
class Justifier:
def justify(self, textIn):
width = max(map(len, textIn))
return map(lambda s: s.rjust(width), textIn)
|
tournament = input()
total_played = 0
total_won = 0
total_lost = 0
while tournament != "End of tournaments":
games_per_tournament = int(input())
games_counter = 0
total_played += games_per_tournament
for games in range(1, games_per_tournament + 1):
desi_team = int(input())
other_team = int(input())
games_counter += 1
if desi_team > other_team:
total_won += 1
diff = desi_team - other_team
print(f"Game {games_counter} of tournament {tournament}: win with {diff} points.")
elif desi_team < other_team:
total_lost += 1
diff = other_team - desi_team
print(f"Game {games_counter} of tournament {tournament}: lost with {diff} points.")
tournament = input()
#if tournament == "End of tournaments":
print(f"{((total_won / total_played) * 100):.2f}% matches win")
print(f"{((total_lost / total_played) * 100):.2f}% matches lost")
|
tournament = input()
total_played = 0
total_won = 0
total_lost = 0
while tournament != 'End of tournaments':
games_per_tournament = int(input())
games_counter = 0
total_played += games_per_tournament
for games in range(1, games_per_tournament + 1):
desi_team = int(input())
other_team = int(input())
games_counter += 1
if desi_team > other_team:
total_won += 1
diff = desi_team - other_team
print(f'Game {games_counter} of tournament {tournament}: win with {diff} points.')
elif desi_team < other_team:
total_lost += 1
diff = other_team - desi_team
print(f'Game {games_counter} of tournament {tournament}: lost with {diff} points.')
tournament = input()
print(f'{total_won / total_played * 100:.2f}% matches win')
print(f'{total_lost / total_played * 100:.2f}% matches lost')
|
class Bootstrap:
'''Essential bootstrap cross validator, consistent with other splitter classes
in sklearn.model_selection.
Example:
boot = Bootstrap(n_bootstraps = 3, random_state=1)
for train, test in boot.split(X):
print("Train:", X[train]," Test:", X[test])
'''
def __init__(self,n_bootstraps=5, random_state=None):
self.nb = n_bootstraps
self.rs = random_state
def split(self, X, y=None):
'''"""Generate indices to split data into training and test set.'''
rng = check_random_state(self.rs)
iX = np.mgrid[0:X.shape[0]]
for i in range(self.nb):
train = resample(iX, random_state=rng)
test = [item for item in iX if item not in train]
yield (train,test)
|
class Bootstrap:
"""Essential bootstrap cross validator, consistent with other splitter classes
in sklearn.model_selection.
Example:
boot = Bootstrap(n_bootstraps = 3, random_state=1)
for train, test in boot.split(X):
print("Train:", X[train]," Test:", X[test])
"""
def __init__(self, n_bootstraps=5, random_state=None):
self.nb = n_bootstraps
self.rs = random_state
def split(self, X, y=None):
'''"""Generate indices to split data into training and test set.'''
rng = check_random_state(self.rs)
i_x = np.mgrid[0:X.shape[0]]
for i in range(self.nb):
train = resample(iX, random_state=rng)
test = [item for item in iX if item not in train]
yield (train, test)
|
CHECKPOINT = 'model/checkpoint.bin'
MODEL_PATH = 'model/model.bin'
input_path = 'input/train.csv'
LR = 0.01
scheduler_threshold = 0.001
scheduler_patience = 2
scheduler_decay_factor = 0.5
embed_dims = 128
hidden_dims = 128
num_layers = 1
bidirectional = False
dropout = 0.2
out_dims = 128
Batch_Size = 64
Epochs = 100
similarity_thresh = 0.75
margin = 0.25
|
checkpoint = 'model/checkpoint.bin'
model_path = 'model/model.bin'
input_path = 'input/train.csv'
lr = 0.01
scheduler_threshold = 0.001
scheduler_patience = 2
scheduler_decay_factor = 0.5
embed_dims = 128
hidden_dims = 128
num_layers = 1
bidirectional = False
dropout = 0.2
out_dims = 128
batch__size = 64
epochs = 100
similarity_thresh = 0.75
margin = 0.25
|
BASE_URL = "https://www.zhixue.com"
# BASE_URL = "http://localhost:8080"
INFO_URL = f"{BASE_URL}/container/container/student/account/"
# Login
SERVICE_URL = f"{BASE_URL}:443/ssoservice.jsp"
SSO_URL = f"https://open.changyan.com/sso/login?sso_from=zhixuesso&service={SERVICE_URL}"
CHANGE_PASSWORD_URL = f"{BASE_URL}/portalcenter/home/updatePassword/"
TEST_PASSWORD_URL = f"{BASE_URL}/weakPwdLogin/?from=web_login"
TEST_URL = f"{BASE_URL}/container/container/teacher/teacherAccountNew"
# Exam
XTOKEN_URL = f"{BASE_URL}/addon/error/book/index"
GET_EXAM_URL = f"{BASE_URL}/zhixuebao/zhixuebao/main/getUserExamList/"
GET_MARK_URL = f"{BASE_URL}/zhixuebao/zhixuebao/feesReport/getStuSingleReportDataForPK/"
GET_PAPERID_URL = f"{BASE_URL}/zhixuebao/report/exam/getReportMain"
GET_ORIGINAL_URL = f"{BASE_URL}/zhixuebao/report/checksheet/"
GET_LOST_TOPIC = f"{BASE_URL}/zhixuebao/report/paper/getExamPointsAndScoringAbility"
GET_LEVEL_TREND = f"{BASE_URL}/zhixuebao/report/paper/getLevelTrend"
# Person
GET_FRIEND_URL = f"{BASE_URL}/zhixuebao/zhixuebao/friendmanage/"
INVITE_FRIEND_URL = f"{BASE_URL}/zhixuebao/zhixuebao/addFriend/"
DELETE_FRIEND_URL = f"{BASE_URL}/zhixuebao/zhixuebao/delFriend/"
GET_CLAZZS_URL = GET_FRIEND_URL
# GET_CLASSMATES_URL = f"{BASE_URL}/zhixuebao/zhixuebao/getClassStudent/"
GET_CLASSMATES_URL = f"{BASE_URL}/container/contact/student/students"
# Get_ErrorBook
GET_ERRORBOOK = f"{BASE_URL}/zhixuebao/report/paper/getLostTopicAndAnalysis"
|
base_url = 'https://www.zhixue.com'
info_url = f'{BASE_URL}/container/container/student/account/'
service_url = f'{BASE_URL}:443/ssoservice.jsp'
sso_url = f'https://open.changyan.com/sso/login?sso_from=zhixuesso&service={SERVICE_URL}'
change_password_url = f'{BASE_URL}/portalcenter/home/updatePassword/'
test_password_url = f'{BASE_URL}/weakPwdLogin/?from=web_login'
test_url = f'{BASE_URL}/container/container/teacher/teacherAccountNew'
xtoken_url = f'{BASE_URL}/addon/error/book/index'
get_exam_url = f'{BASE_URL}/zhixuebao/zhixuebao/main/getUserExamList/'
get_mark_url = f'{BASE_URL}/zhixuebao/zhixuebao/feesReport/getStuSingleReportDataForPK/'
get_paperid_url = f'{BASE_URL}/zhixuebao/report/exam/getReportMain'
get_original_url = f'{BASE_URL}/zhixuebao/report/checksheet/'
get_lost_topic = f'{BASE_URL}/zhixuebao/report/paper/getExamPointsAndScoringAbility'
get_level_trend = f'{BASE_URL}/zhixuebao/report/paper/getLevelTrend'
get_friend_url = f'{BASE_URL}/zhixuebao/zhixuebao/friendmanage/'
invite_friend_url = f'{BASE_URL}/zhixuebao/zhixuebao/addFriend/'
delete_friend_url = f'{BASE_URL}/zhixuebao/zhixuebao/delFriend/'
get_clazzs_url = GET_FRIEND_URL
get_classmates_url = f'{BASE_URL}/container/contact/student/students'
get_errorbook = f'{BASE_URL}/zhixuebao/report/paper/getLostTopicAndAnalysis'
|
debug_defs = select({
"//:debug-ast": ["DEBUG_AST"],
"//conditions:default": []
}) + select({
"//:debug-bindings": ["DEBUG_BINDINGS"],
"//conditions:default": []
}) + select({
"//:debug-ctors": ["DEBUG_CTORS"],
"//conditions:default": []
}) + select({
"//:debug-filters": ["DEBUG_FILTERS"],
"//conditions:default": []
}) + select({
"//:debug-format": ["DEBUG_FORMAT"],
"//conditions:default": []
}) + select({
"//:debug-load": ["DEBUG_LOAD"],
"//conditions:default": []
}) + select({
"//:debug-loads": ["DEBUG_LOADS"],
"//conditions:default": []
}) + select({
"//:debug-mem": ["DEBUG_MEM"],
"//conditions:default": []
}) + select({
"//:debug-mutators": ["DEBUG_MUTATORS"],
"//conditions:default": []
}) + select({
"//:debug-paths": ["DEBUG_PATHS"],
"//conditions:default": []
}) + select({
"//:debug-preds": ["DEBUG_PREDICATES"],
"//conditions:default": []
}) + select({
"//:debug-properties": ["DEBUG_PROPERTIES"],
"//conditions:default": []
}) + select({
"//:debug-queries": ["DEBUG_QUERY"],
"//conditions:default": []
}) + select({
"//:debug-s7-api": ["DEBUG_S7_API"],
"//conditions:default": []
}) + select({
"//:debug-set": ["DEBUG_SET"],
"//conditions:default": []
}) + select({
"//:debug-serializers": ["DEBUG_SERIALIZERS"],
"//conditions:default": []
}) + select({
"//:debug-targets": ["DEBUG_TARGETS"],
"//conditions:default": []
}) + select({
"//:debug-trace": ["DEBUG_TRACE"],
"//conditions:default": []
}) + select({
"//:debug-utarrays": ["DEBUG_UTARRAYS"],
"//conditions:default": []
}) + select({
"//:debug-vectors": ["DEBUG_VECTORS"],
"//conditions:default": []
}) + select({
"//:debug-yytrace": ["DEBUG_YYTRACE"],
"//conditions:default": []
})
|
debug_defs = select({'//:debug-ast': ['DEBUG_AST'], '//conditions:default': []}) + select({'//:debug-bindings': ['DEBUG_BINDINGS'], '//conditions:default': []}) + select({'//:debug-ctors': ['DEBUG_CTORS'], '//conditions:default': []}) + select({'//:debug-filters': ['DEBUG_FILTERS'], '//conditions:default': []}) + select({'//:debug-format': ['DEBUG_FORMAT'], '//conditions:default': []}) + select({'//:debug-load': ['DEBUG_LOAD'], '//conditions:default': []}) + select({'//:debug-loads': ['DEBUG_LOADS'], '//conditions:default': []}) + select({'//:debug-mem': ['DEBUG_MEM'], '//conditions:default': []}) + select({'//:debug-mutators': ['DEBUG_MUTATORS'], '//conditions:default': []}) + select({'//:debug-paths': ['DEBUG_PATHS'], '//conditions:default': []}) + select({'//:debug-preds': ['DEBUG_PREDICATES'], '//conditions:default': []}) + select({'//:debug-properties': ['DEBUG_PROPERTIES'], '//conditions:default': []}) + select({'//:debug-queries': ['DEBUG_QUERY'], '//conditions:default': []}) + select({'//:debug-s7-api': ['DEBUG_S7_API'], '//conditions:default': []}) + select({'//:debug-set': ['DEBUG_SET'], '//conditions:default': []}) + select({'//:debug-serializers': ['DEBUG_SERIALIZERS'], '//conditions:default': []}) + select({'//:debug-targets': ['DEBUG_TARGETS'], '//conditions:default': []}) + select({'//:debug-trace': ['DEBUG_TRACE'], '//conditions:default': []}) + select({'//:debug-utarrays': ['DEBUG_UTARRAYS'], '//conditions:default': []}) + select({'//:debug-vectors': ['DEBUG_VECTORS'], '//conditions:default': []}) + select({'//:debug-yytrace': ['DEBUG_YYTRACE'], '//conditions:default': []})
|
# -*- coding: utf-8 -*-
"""
ASGI
"""
|
"""
ASGI
"""
|
_prefix = 'MC__'
JOB_DIR_COMPONENT_PATHS = {
'job_key': _prefix + 'JOB_KEY',
'job_meta': _prefix + 'JOB_META.json',
'job_spec': 'job_spec.json',
'entrypoint': 'entrypoint.sh',
'work_dir': 'work_dir',
'executed_checkpoint': _prefix + 'EXECUTED',
'completed_checkpoint': _prefix + 'COMPLETED',
'failure_checkpoint': _prefix + 'FAILED',
'failed_checkpoint': _prefix + 'FAILED',
'stdout_log': _prefix + 'STDOUT.log',
'stderr_log': _prefix + 'STDERR.log',
}
|
_prefix = 'MC__'
job_dir_component_paths = {'job_key': _prefix + 'JOB_KEY', 'job_meta': _prefix + 'JOB_META.json', 'job_spec': 'job_spec.json', 'entrypoint': 'entrypoint.sh', 'work_dir': 'work_dir', 'executed_checkpoint': _prefix + 'EXECUTED', 'completed_checkpoint': _prefix + 'COMPLETED', 'failure_checkpoint': _prefix + 'FAILED', 'failed_checkpoint': _prefix + 'FAILED', 'stdout_log': _prefix + 'STDOUT.log', 'stderr_log': _prefix + 'STDERR.log'}
|
p=int(input('enter the principal amount'))
n=int(input('enter the number of year'))
r=int(input('enter the rate of interest'))
d=p*n*r/100
print('simple interest=',d)
|
p = int(input('enter the principal amount'))
n = int(input('enter the number of year'))
r = int(input('enter the rate of interest'))
d = p * n * r / 100
print('simple interest=', d)
|
def add_to_parser(parser):
parser.add_argument("-c", "--channel", type=str, dest="channel",
help="""
If the CAN interface supports multiple channels, select which one
you are after here. For example on linux this might be 1
""", default='0')
parser.add_argument("-b", "--bitrate", type=int, dest="bitrate",
help="CAN bus bitrate", default=1000000)
parser.add_argument("--tseg1", type=int, dest="tseg1",
help="CAN bus tseg1", default=4)
parser.add_argument("--tseg2", type=int, dest="tseg2",
help="CAN bus tseg2", default=3)
parser.add_argument("--sjw", type=int, dest="sjw",
help="Synchronisation Jump Width decides the maximum number of time quanta that the controller can resynchronise every bit.",
default=1)
parser.add_argument("-n", "--num_samples", type=int, dest="no_samp",
help="""Some CAN controllers can also sample each bit three times.
In this case, the bit will be sampled three quanta in a row,
with the last sample being taken in the edge between TSEG1 and TSEG2.
Three samples should only be used for relatively slow baudrates.""",
default=1)
|
def add_to_parser(parser):
parser.add_argument('-c', '--channel', type=str, dest='channel', help='\n If the CAN interface supports multiple channels, select which one\n you are after here. For example on linux this might be 1\n ', default='0')
parser.add_argument('-b', '--bitrate', type=int, dest='bitrate', help='CAN bus bitrate', default=1000000)
parser.add_argument('--tseg1', type=int, dest='tseg1', help='CAN bus tseg1', default=4)
parser.add_argument('--tseg2', type=int, dest='tseg2', help='CAN bus tseg2', default=3)
parser.add_argument('--sjw', type=int, dest='sjw', help='Synchronisation Jump Width decides the maximum number of time quanta that the controller can resynchronise every bit.', default=1)
parser.add_argument('-n', '--num_samples', type=int, dest='no_samp', help='Some CAN controllers can also sample each bit three times.\n In this case, the bit will be sampled three quanta in a row,\n with the last sample being taken in the edge between TSEG1 and TSEG2.\n\n Three samples should only be used for relatively slow baudrates.', default=1)
|
c = get_config()
c.NotebookApp.ip = '{{IPYTHON_NB_LISTEN_ADDR}}'
c.NotebookApp.port = {{IPYTHON_NB_LISTEN_PORT}}
c.NotebookApp.open_browser = False
c.NotebookApp.notebook_dir = u'{{IPYTHON_NB_DIR}}'
c.NotebookApp.base_url = '{{HTTP_BASE_URL}}/{{IPYTHON_NB_PREFIX}}'
c.NotebookApp.tornado_settings = {'static_url_prefix':'{{HTTP_BASE_URL}}/{{IPYTHON_NB_PREFIX}}/static/'}
# Disable token auth for now
c.NotebookApp.token = ''
c.NotebookApp.password = ''
|
c = get_config()
c.NotebookApp.ip = '{{IPYTHON_NB_LISTEN_ADDR}}'
c.NotebookApp.port = {{IPYTHON_NB_LISTEN_PORT}}
c.NotebookApp.open_browser = False
c.NotebookApp.notebook_dir = u'{{IPYTHON_NB_DIR}}'
c.NotebookApp.base_url = '{{HTTP_BASE_URL}}/{{IPYTHON_NB_PREFIX}}'
c.NotebookApp.tornado_settings = {'static_url_prefix': '{{HTTP_BASE_URL}}/{{IPYTHON_NB_PREFIX}}/static/'}
c.NotebookApp.token = ''
c.NotebookApp.password = ''
|
class Solution:
def XXX(self, intervals: List[List[int]]) -> List[List[int]]:
res=[]
intervals.sort()
res.append(intervals[0])
for i in range(1,len(intervals)):
t=res[-1]
if intervals[i][0]<=t[1]:
res[-1][1]=max(intervals[i][1],res[-1][1])
else:
res.append(intervals[i])
return res
|
class Solution:
def xxx(self, intervals: List[List[int]]) -> List[List[int]]:
res = []
intervals.sort()
res.append(intervals[0])
for i in range(1, len(intervals)):
t = res[-1]
if intervals[i][0] <= t[1]:
res[-1][1] = max(intervals[i][1], res[-1][1])
else:
res.append(intervals[i])
return res
|
#!/usr/bin/env python
print("Hello World!")
# commnads
# $python hello.py
# Hello World!
# $python hello.py > output.txt
# if file exists, old file is deleted, new file created with same name
# if file doesn't exits, then new file is created
# $python hello.py >> output.txt
# if file exists, then result is appended
# if file doesn't exists, then new file is created.
|
print('Hello World!')
|
#!/usr/bin/env python3
def solution(n: int, a: list) -> list:
"""
>>> solution(5, [3, 4, 4, 6, 1, 4, 4])
[3, 2, 2, 4, 2]
"""
counters = [0] * n
max_counter = n + 1
cur_max = 0
for num in a:
if num == max_counter:
counters = [cur_max] * n
else:
counters[num - 1] += 1
if counters[num - 1] > cur_max:
cur_max += 1
return counters
|
def solution(n: int, a: list) -> list:
"""
>>> solution(5, [3, 4, 4, 6, 1, 4, 4])
[3, 2, 2, 4, 2]
"""
counters = [0] * n
max_counter = n + 1
cur_max = 0
for num in a:
if num == max_counter:
counters = [cur_max] * n
else:
counters[num - 1] += 1
if counters[num - 1] > cur_max:
cur_max += 1
return counters
|
# Separate the construction of a complex object from its
# representation so that the same construction process can create different representations.
# Parse a complex representation, create one of several targets.
# Allows you to build different kind of object by implementing the Steps,
# to build on particular object
# * Building an object requires steps
# Abstract <anything>
class Anything(object):
def __init__(self):
self.build_step_1()
self.build_step_2()
def build_step_1(self):
raise NotImplementedError
def build_step_2(self):
raise NotImplementedError
# Concrete implementations
class AnythingA(Anything):
def build_step_1(self):
pass
def build_step_2(self):
pass
class AnythingB(Anything):
def build_step_1(self):
pass
def build_step_2(self):
pass
|
class Anything(object):
def __init__(self):
self.build_step_1()
self.build_step_2()
def build_step_1(self):
raise NotImplementedError
def build_step_2(self):
raise NotImplementedError
class Anythinga(Anything):
def build_step_1(self):
pass
def build_step_2(self):
pass
class Anythingb(Anything):
def build_step_1(self):
pass
def build_step_2(self):
pass
|
"""
Contains modules related to the import of the data and formatting of the target
Modules :
- Start
- Encode_Target
"""
__all__ = ['Load', 'Encode_Target']
|
"""
Contains modules related to the import of the data and formatting of the target
Modules :
- Start
- Encode_Target
"""
__all__ = ['Load', 'Encode_Target']
|
def dict_extract(value, var, ret_dict=None):
"""Search a list of nested dictionaries
Args:
value(obj): Object being searched for
var(iterable): iterable containing dictionaries or lists
ret_dict(dict): Highest depth dictionary containing value
Yield:
Dictionary containing desired values
Notes:
Find highest depth dictionary in the lowest depth list
that contains the desired value
"""
try:
for v in var.values():
if v == value and ret_dict is not None:
yield ret_dict
elif v == value and ret_dict is None:
yield var
# lists should be caugt by the except
elif isinstance(v, (dict, list)):
for result in dict_extract(value, v, ret_dict):
yield result
except AttributeError:
if isinstance(var, list):
for d in var:
ret_dict = d
for result in dict_extract(value, d, ret_dict):
yield result
|
def dict_extract(value, var, ret_dict=None):
"""Search a list of nested dictionaries
Args:
value(obj): Object being searched for
var(iterable): iterable containing dictionaries or lists
ret_dict(dict): Highest depth dictionary containing value
Yield:
Dictionary containing desired values
Notes:
Find highest depth dictionary in the lowest depth list
that contains the desired value
"""
try:
for v in var.values():
if v == value and ret_dict is not None:
yield ret_dict
elif v == value and ret_dict is None:
yield var
elif isinstance(v, (dict, list)):
for result in dict_extract(value, v, ret_dict):
yield result
except AttributeError:
if isinstance(var, list):
for d in var:
ret_dict = d
for result in dict_extract(value, d, ret_dict):
yield result
|
"""
16. 3Sum Closest
Given an array nums of n integers and an integer target,
find three integers in nums such that the sum is closest to target.
Return the sum of the three integers.
You may assume that each input would have exactly one solution.
My opnion:
I searched the internet for what the problem means. I didn't understand the problem.
"""
class Solution:
def threeSumClosest(self, nums: List[int], target: int) -> int:
nums.sort()
closest_num = float('inf')
for i in range(len(nums) - 2):
l = i + 1
r = len(nums) - 1
while l < r:
total = nums[i] + nums[l] + nums[r]
if total == target:
return target
if abs(total-target) < abs(closest_num-target):
closest_num = total
if total > target:
r -= 1
elif total < target:
l += 1
return closest_num
|
"""
16. 3Sum Closest
Given an array nums of n integers and an integer target,
find three integers in nums such that the sum is closest to target.
Return the sum of the three integers.
You may assume that each input would have exactly one solution.
My opnion:
I searched the internet for what the problem means. I didn't understand the problem.
"""
class Solution:
def three_sum_closest(self, nums: List[int], target: int) -> int:
nums.sort()
closest_num = float('inf')
for i in range(len(nums) - 2):
l = i + 1
r = len(nums) - 1
while l < r:
total = nums[i] + nums[l] + nums[r]
if total == target:
return target
if abs(total - target) < abs(closest_num - target):
closest_num = total
if total > target:
r -= 1
elif total < target:
l += 1
return closest_num
|
def high_and_low(numbers):
# In this little assignment you are given a string of space separated numbers,
# and have to return the highest and lowest number.
result = [int(x) for x in numbers.split()]
string = str(max(result)) + " " + str(min(result))
return string
print(high_and_low("4 5 29 54 4 0 -214 542 -64 1 -3 6 -6"))
|
def high_and_low(numbers):
result = [int(x) for x in numbers.split()]
string = str(max(result)) + ' ' + str(min(result))
return string
print(high_and_low('4 5 29 54 4 0 -214 542 -64 1 -3 6 -6'))
|
class Clustering:
def __init__(self):
self._cluster = {}
def _query(self, jpt):
return self._cluster[jpt]
|
class Clustering:
def __init__(self):
self._cluster = {}
def _query(self, jpt):
return self._cluster[jpt]
|
# https://codeforces.com/problemset/problem/705/A
n = int(input())
love = 'I love it'
hate = 'I hate it'
result = ''
if n == 1:
print('I hate it')
else:
for num in range(1, n + 1):
if num == n:
if num % 2 != 0:
result += hate
else:
result += love
break
if num % 2 != 0:
result += 'I hate that' + ' '
else:
result += 'I love that' + ' '
print(result)
|
n = int(input())
love = 'I love it'
hate = 'I hate it'
result = ''
if n == 1:
print('I hate it')
else:
for num in range(1, n + 1):
if num == n:
if num % 2 != 0:
result += hate
else:
result += love
break
if num % 2 != 0:
result += 'I hate that' + ' '
else:
result += 'I love that' + ' '
print(result)
|
#!/usr/bin/python
S = input()
P_score= S.split(" ")
#print (S)
for i in range (0,len(P_score)):
P_score[i]= int(P_score[i])
List_J=[1 for m in range(0,len(P_score))]## set default List_J as "1"
for i in range(0,(len(P_score)-1)):
if P_score[i] < P_score[i+1]:
List_J[i+1] = List_J[i]+1
i += 1
elif P_score[i]>P_score[i+1]:
if List_J[i]== List_J[i+1]:
List_J[i]+=1
k=i-1
q=i
while i<len(P_score)-1:
if P_score[k]<=P_score[q]:
i +=1
break
if P_score[k]>P_score[q]:
if List_J[k]>List_J[q]: break
if List_J[k]==List_J[q]:
List_J[k]+= 1
k -= 1
q -= 1
i += 1
print(sum(List_J))
|
s = input()
p_score = S.split(' ')
for i in range(0, len(P_score)):
P_score[i] = int(P_score[i])
list_j = [1 for m in range(0, len(P_score))]
for i in range(0, len(P_score) - 1):
if P_score[i] < P_score[i + 1]:
List_J[i + 1] = List_J[i] + 1
i += 1
elif P_score[i] > P_score[i + 1]:
if List_J[i] == List_J[i + 1]:
List_J[i] += 1
k = i - 1
q = i
while i < len(P_score) - 1:
if P_score[k] <= P_score[q]:
i += 1
break
if P_score[k] > P_score[q]:
if List_J[k] > List_J[q]:
break
if List_J[k] == List_J[q]:
List_J[k] += 1
k -= 1
q -= 1
i += 1
print(sum(List_J))
|
"""A series of modules containing dictionaries that can be used in run.py"""
def test_movie_set_1():
movie1 = {
"name": "Apollo11",
"rating": "G",
"genre": "documentary",
"length": 93
}
movie2 = {
"name": "Cars",
"rating": "G",
"genre": "comedy",
"length": 117
}
movie3 = {
"name": "Pride and Prejudice",
"rating": "PG13",
"genre": "romance",
"length": 135
}
movie4 = {
"name": "Avengers: Infinity War",
"rating": "PG13",
"genre": "action",
"length": 149
}
movie5 = {
"name": "The Conjuring",
"rating": "R",
"genre": "horror",
"length": 112
}
movies = [movie1, movie2, movie3, movie4, movie5]
return movies
|
"""A series of modules containing dictionaries that can be used in run.py"""
def test_movie_set_1():
movie1 = {'name': 'Apollo11', 'rating': 'G', 'genre': 'documentary', 'length': 93}
movie2 = {'name': 'Cars', 'rating': 'G', 'genre': 'comedy', 'length': 117}
movie3 = {'name': 'Pride and Prejudice', 'rating': 'PG13', 'genre': 'romance', 'length': 135}
movie4 = {'name': 'Avengers: Infinity War', 'rating': 'PG13', 'genre': 'action', 'length': 149}
movie5 = {'name': 'The Conjuring', 'rating': 'R', 'genre': 'horror', 'length': 112}
movies = [movie1, movie2, movie3, movie4, movie5]
return movies
|
# June 2021
# Author: J. Rossbroich
"""
misc.py
Contains functions used by the adelie package
"""
def getattr_deep(obj, attrs):
"""
Like getattr(), but checks in children objects
Example:
X = object()
X.Y = childobject()
X.Y.variable = 5
getattr(X, 'Y.variable') -> AttributeError
getattr_deep(X, 'Y.variable') -> 5
:param obj: object
:param attrs: attribute (string)
:return: attribute
"""
for attr in attrs.split("."):
obj = getattr(obj, attr)
return obj
def hasattr_deep(obj, attrs):
"""
Like hasattr(), but checks in children objects
Example:
X = object()
X.Y = childobject()
X.Y.variable = 5
hasattr(X, 'Y.variable') -> False
hasattr_deep(X, 'Y.variable') -> True
:param obj: object
:param attrs: attribute (string)
:return: bool
"""
try:
getattr_deep(obj, attrs)
return True
except AttributeError:
return False
|
"""
misc.py
Contains functions used by the adelie package
"""
def getattr_deep(obj, attrs):
"""
Like getattr(), but checks in children objects
Example:
X = object()
X.Y = childobject()
X.Y.variable = 5
getattr(X, 'Y.variable') -> AttributeError
getattr_deep(X, 'Y.variable') -> 5
:param obj: object
:param attrs: attribute (string)
:return: attribute
"""
for attr in attrs.split('.'):
obj = getattr(obj, attr)
return obj
def hasattr_deep(obj, attrs):
"""
Like hasattr(), but checks in children objects
Example:
X = object()
X.Y = childobject()
X.Y.variable = 5
hasattr(X, 'Y.variable') -> False
hasattr_deep(X, 'Y.variable') -> True
:param obj: object
:param attrs: attribute (string)
:return: bool
"""
try:
getattr_deep(obj, attrs)
return True
except AttributeError:
return False
|
'''
Contains keyword arguments and their default values
for workflows. Used to auto-complete arguments that
are missing in submitted workflows.
Workflow items with all the given arguments are then
parsed into actual Celery workflows by the workflow
designer.
2020 Benjamin Kellenberger
'''
DEFAULT_WORKFLOW_ARGS = {
'train': {
'min_timestamp': 'lastState',
'min_anno_per_image': 0,
'include_golden_questions': False, #TODO
'max_num_images': -1,
'max_num_workers': -1
},
'inference': {
'force_unlabeled': False, #TODO
'golden_questions_only': False, #TODO
'max_num_images': -1,
'max_num_workers': -1
},
#TODO
}
|
"""
Contains keyword arguments and their default values
for workflows. Used to auto-complete arguments that
are missing in submitted workflows.
Workflow items with all the given arguments are then
parsed into actual Celery workflows by the workflow
designer.
2020 Benjamin Kellenberger
"""
default_workflow_args = {'train': {'min_timestamp': 'lastState', 'min_anno_per_image': 0, 'include_golden_questions': False, 'max_num_images': -1, 'max_num_workers': -1}, 'inference': {'force_unlabeled': False, 'golden_questions_only': False, 'max_num_images': -1, 'max_num_workers': -1}}
|
feed_template = '''
<html>
<head>
<title>Carbon Black {{integration_name}} Feed</title>
<style type="text/css">
A:link {color: black;}
A:visited {color: black;}
A:active {color: black;}
A:hover {underline; color: #d02828;}
</style>
<style>
#config
{
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
width:100%;
border-collapse:collapse;
}
#config td, #config th
{
font-size:1em;
border:1px solid #000000;
padding:3px 7px 2px 7px;
}
#config th
{
font-size:1.1em;
text-align:left;
padding-top:5px;
padding-bottom:4px;
background-color:#d02828;
color:#ffffff;
}
#config tr.alt td
{
color:#000000;
background-color:#666666;
}
</style>
</head>
<body bgcolor='white'>
<table align='center'>
<tr>
<td>
<h3>
Feed Reports
</h3>
<table id="config" align='center'>
<tr>
<th><b>ReportId</b></td>
<th><b>ReportTitle</b></td>
<th><b>Timestamp</b></td>
<th><b>Score</b></td>
<th><b>IOCs</b></td>
</tr>
{% for report in feed['reports'] %}
<tr class={{loop.cycle('', 'alt')}}>
<td><a href={{report['link']}}>{{report['id']}}</a></td>
<td>{{report['title']}}</td>
<td>{{report['timestamp']}}</td>
<td>{{report['score']}}</td>
<td>
{% for md5 in report.get('iocs', {}).get('md5', []) %}
{{md5}}<br>
{% endfor %}
{% for dns in report.get('iocs', {}).get('dns', []) %}
{{dns}}<br>
{% endfor %}
{% for ipv4 in report.get('iocs', {}).get('ipv4', []) %}
{{ipv4}}<br>
{% endfor %}
</td>
</tr>
{% endfor %}
</table>
<br>
<tr>
<td>Copyright Carbon Black 2015 All Rights Reserved</td>
</tr>
</table>
</body>
</html>
'''
index_template = '''
<html>
<head>
<title>Carbon Black <-> {{integration_name}} Bridge</title>
<style type="text/css">
A:link {color: black;}
A:visited {color: black;}
A:active {color: black;}
A:hover {color: #d02828;}
</style>
<style>
#config
{
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
width:100%;
border-collapse:collapse;
}
#config td, #config th
{
font-size:1em;
border:1px solid #000000;
padding:3px 7px 2px 7px;
}
#config th
{
font-size:1.1em;
text-align:left;
padding-top:5px;
padding-bottom:4px;
background-color:#d02828;
color:#ffffff;
}
#config tr.alt td
{
color:#000000;
background-color:#666666;
}
</style>
</head>
<body bgcolor='white'>
<table align='center' width='600'>
<tr>
<td align='center'><img src='{{cb_image_path}}'></td>
<td align='center'><img src='{{integration_image_path}}' width='400'></td>
</tr>
</table>
<br>
<table align='center' width='600'>
<tr>
<td>
<h3>
Bridge Configuration
</h3>
<table id="config" align='center'>
<tr>
<th width='200'><b>Config Option</b></td>
<th width='300'><b>Value</b></td>
</tr>
{% for option in options.keys() %}
<tr class={{loop.cycle('', 'alt')}}>
<td>{{option}}</td>
<td>{{options[option]}}</td>
</tr>
{% endfor %}
</table>
<br>
<h3>
Feed Information
</h3>
<table id="config" align='center'>
<tr>
<th width='200'><b>Feed Param Name</b></td>
<th width-'300'><b>Feed Param Value</b></td>
</tr>
{% for feedparamname in feed['feedinfo'].keys() %}
<tr class={{ loop.cycle('', 'alt') }}>
<td width='200'>{{feedparamname}}</td>
<td width='300'>{{feed['feedinfo'][feedparamname]}}</td>
</tr>
{% endfor %}
</table>
<br>
<h3>
Feed Contents
</h3>
<table id="config" align='center'>
<tr>
<th width='200'>Format</td>
<th width='300'>Description</td>
</tr>
<tr>
<td width='200'><a href='{{json_feed_path}}'>JSON</a></td>
<td width='300'>Designed for programmatic consumption; used by Carbon Black Enterprise Server</td>
</tr>
<tr class='alt'>
<td width='200'><a href='feed.html'>HTML</a></td>
<td width='300'>Designed for human consumption; used to explore feed contents and for troubleshooting</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><br></td>
</tr>
<tr>
<td>Copyright Carbon Black 2013 All Rights Reserved</td>
</tr>
</table>
</body>
</html>
'''
binary_template = '''
<html>
<head>
<title>Carbon Black {{integration_name}} Feed</title>
<style type="text/css">
A:link {color: black;}
A:visited {color: black;}
A:active {color: black;}
A:hover {underline; color: #d02828;}
</style>
<style>
#config
{
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
width:100%;
border-collapse:collapse;
}
#config td, #config th
{
font-size:1em;
border:1px solid #000000;
padding:3px 7px 2px 7px;
}
#config th
{
font-size:1.1em;
text-align:left;
padding-top:5px;
padding-bottom:4px;
background-color:#d02828;
color:#ffffff;
}
#config tr.alt td
{
color:#000000;
background-color:#666666;
}
</style>
</head>
<body bgcolor='white'>
<table align='center'>
<tr>
<td>
<h3>
Feed Reports
</h3>
<table id="config" align='center'>
<tr>
<th><b>MD5sum</b></td>
<th><b>Short Result</b></td>
<th><b>Long Result</b></td>
<th><b>Score</b></td>
</tr>
{% for binary in binaries %}
<tr class={{loop.cycle('', 'alt')}}>
<td>{{binary['md5sum']}}</td>
<td>{{binary['short_result']}}</td>
<td>{{binary['detailed_result']}}</td>
<td>{{binary['score']}}</td>
</tr>
{% endfor %}
</table>
<br>
<tr>
<td>Copyright Carbon Black 2015 All Rights Reserved</td>
</tr>
</table>
</body>
</html>
'''
|
feed_template = '\n<html>\n <head>\n <title>Carbon Black {{integration_name}} Feed</title>\n\n <style type="text/css">\n A:link {color: black;}\n A:visited {color: black;}\n A:active {color: black;}\n A:hover {underline; color: #d02828;}\n </style>\n\n <style>\n #config\n {\n font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;\n width:100%;\n border-collapse:collapse;\n }\n #config td, #config th\n {\n font-size:1em;\n border:1px solid #000000;\n padding:3px 7px 2px 7px;\n }\n #config th\n {\n font-size:1.1em;\n text-align:left;\n padding-top:5px;\n padding-bottom:4px;\n background-color:#d02828;\n color:#ffffff;\n }\n #config tr.alt td\n {\n color:#000000;\n background-color:#666666;\n }\n </style>\n </head>\n <body bgcolor=\'white\'>\n <table align=\'center\'>\n <tr>\n <td>\n <h3>\n Feed Reports\n </h3>\n <table id="config" align=\'center\'>\n <tr>\n <th><b>ReportId</b></td>\n <th><b>ReportTitle</b></td>\n <th><b>Timestamp</b></td>\n <th><b>Score</b></td>\n <th><b>IOCs</b></td>\n </tr>\n {% for report in feed[\'reports\'] %}\n <tr class={{loop.cycle(\'\', \'alt\')}}>\n <td><a href={{report[\'link\']}}>{{report[\'id\']}}</a></td>\n <td>{{report[\'title\']}}</td>\n <td>{{report[\'timestamp\']}}</td>\n <td>{{report[\'score\']}}</td>\n <td>\n {% for md5 in report.get(\'iocs\', {}).get(\'md5\', []) %}\n {{md5}}<br>\n {% endfor %}\n {% for dns in report.get(\'iocs\', {}).get(\'dns\', []) %}\n {{dns}}<br>\n {% endfor %}\n {% for ipv4 in report.get(\'iocs\', {}).get(\'ipv4\', []) %}\n {{ipv4}}<br>\n {% endfor %}\n </td>\n </tr>\n {% endfor %}\n </table>\n <br>\n <tr>\n <td>Copyright Carbon Black 2015 All Rights Reserved</td>\n </tr>\n </table>\n </body>\n</html>\n'
index_template = '\n<html>\n <head>\n <title>Carbon Black <-> {{integration_name}} Bridge</title>\n\n <style type="text/css">\n A:link {color: black;}\n A:visited {color: black;}\n A:active {color: black;}\n A:hover {color: #d02828;}\n </style>\n\n <style>\n #config\n {\n font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;\n width:100%;\n border-collapse:collapse;\n }\n #config td, #config th\n {\n font-size:1em;\n border:1px solid #000000;\n padding:3px 7px 2px 7px;\n }\n #config th\n {\n font-size:1.1em;\n text-align:left;\n padding-top:5px;\n padding-bottom:4px;\n background-color:#d02828;\n color:#ffffff;\n }\n #config tr.alt td\n {\n color:#000000;\n background-color:#666666;\n }\n </style>\n </head>\n <body bgcolor=\'white\'>\n <table align=\'center\' width=\'600\'>\n <tr>\n <td align=\'center\'><img src=\'{{cb_image_path}}\'></td>\n <td align=\'center\'><img src=\'{{integration_image_path}}\' width=\'400\'></td>\n </tr>\n </table>\n\n <br>\n\n <table align=\'center\' width=\'600\'>\n <tr>\n <td>\n\n <h3>\n Bridge Configuration\n </h3>\n <table id="config" align=\'center\'>\n <tr>\n <th width=\'200\'><b>Config Option</b></td>\n <th width=\'300\'><b>Value</b></td>\n </tr>\n {% for option in options.keys() %}\n <tr class={{loop.cycle(\'\', \'alt\')}}>\n <td>{{option}}</td>\n <td>{{options[option]}}</td>\n </tr>\n {% endfor %}\n </table>\n\n <br>\n\n <h3>\n Feed Information\n </h3>\n <table id="config" align=\'center\'>\n <tr>\n <th width=\'200\'><b>Feed Param Name</b></td>\n <th width-\'300\'><b>Feed Param Value</b></td>\n </tr>\n {% for feedparamname in feed[\'feedinfo\'].keys() %}\n <tr class={{ loop.cycle(\'\', \'alt\') }}>\n <td width=\'200\'>{{feedparamname}}</td>\n <td width=\'300\'>{{feed[\'feedinfo\'][feedparamname]}}</td>\n </tr>\n {% endfor %}\n </table>\n\n <br>\n\n <h3>\n Feed Contents\n </h3>\n\n <table id="config" align=\'center\'>\n <tr>\n <th width=\'200\'>Format</td>\n <th width=\'300\'>Description</td>\n </tr>\n <tr>\n <td width=\'200\'><a href=\'{{json_feed_path}}\'>JSON</a></td>\n <td width=\'300\'>Designed for programmatic consumption; used by Carbon Black Enterprise Server</td>\n </tr>\n <tr class=\'alt\'>\n <td width=\'200\'><a href=\'feed.html\'>HTML</a></td>\n <td width=\'300\'>Designed for human consumption; used to explore feed contents and for troubleshooting</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td><br></td>\n </tr>\n <tr>\n <td>Copyright Carbon Black 2013 All Rights Reserved</td>\n </tr>\n </table>\n </body>\n</html>\n'
binary_template = '\n<html>\n <head>\n <title>Carbon Black {{integration_name}} Feed</title>\n\n <style type="text/css">\n A:link {color: black;}\n A:visited {color: black;}\n A:active {color: black;}\n A:hover {underline; color: #d02828;}\n </style>\n\n <style>\n #config\n {\n font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;\n width:100%;\n border-collapse:collapse;\n }\n #config td, #config th\n {\n font-size:1em;\n border:1px solid #000000;\n padding:3px 7px 2px 7px;\n }\n #config th\n {\n font-size:1.1em;\n text-align:left;\n padding-top:5px;\n padding-bottom:4px;\n background-color:#d02828;\n color:#ffffff;\n }\n #config tr.alt td\n {\n color:#000000;\n background-color:#666666;\n }\n </style>\n </head>\n <body bgcolor=\'white\'>\n <table align=\'center\'>\n <tr>\n <td>\n <h3>\n Feed Reports\n </h3>\n <table id="config" align=\'center\'>\n <tr>\n <th><b>MD5sum</b></td>\n <th><b>Short Result</b></td>\n <th><b>Long Result</b></td>\n <th><b>Score</b></td>\n </tr>\n {% for binary in binaries %}\n <tr class={{loop.cycle(\'\', \'alt\')}}>\n <td>{{binary[\'md5sum\']}}</td>\n <td>{{binary[\'short_result\']}}</td>\n <td>{{binary[\'detailed_result\']}}</td>\n <td>{{binary[\'score\']}}</td>\n </tr>\n {% endfor %}\n </table>\n <br>\n <tr>\n <td>Copyright Carbon Black 2015 All Rights Reserved</td>\n </tr>\n </table>\n </body>\n</html>\n'
|
x=[9,2,10,1,-1,0,0,1]
for i in range(len(x)-1):
for j in range(len(x)-1):
if x[j] > x[j+1]:
x[j],x[j+1] = x[j+1],x[j]
print(x)
x=input()
y={}
for i in range(len(x)):
if not x[i] in y :
y[x[i]]=0
y[x[i]]+=1
print(y)
x=input()
y=len(x)
y-=1
for i in range(round(len(x)/2)):
if not x[i] == x[y]:
print("false")
break
y-=1
if y+i == len(x)-2:
print ("true")
|
x = [9, 2, 10, 1, -1, 0, 0, 1]
for i in range(len(x) - 1):
for j in range(len(x) - 1):
if x[j] > x[j + 1]:
(x[j], x[j + 1]) = (x[j + 1], x[j])
print(x)
x = input()
y = {}
for i in range(len(x)):
if not x[i] in y:
y[x[i]] = 0
y[x[i]] += 1
print(y)
x = input()
y = len(x)
y -= 1
for i in range(round(len(x) / 2)):
if not x[i] == x[y]:
print('false')
break
y -= 1
if y + i == len(x) - 2:
print('true')
|
#
# PySNMP MIB module IPV4-RIP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPV4-RIP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:45:29 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)
#
apIpv4Rip, = mibBuilder.importSymbols("APENT-MIB", "apIpv4Rip")
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Bits, Unsigned32, MibIdentifier, ModuleIdentity, Counter32, Integer32, Counter64, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, IpAddress, TimeTicks, Gauge32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Unsigned32", "MibIdentifier", "ModuleIdentity", "Counter32", "Integer32", "Counter64", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "IpAddress", "TimeTicks", "Gauge32", "ObjectIdentity")
TextualConvention, TruthValue, RowStatus, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "RowStatus", "DisplayString")
apIpv4RipMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 1))
if mibBuilder.loadTexts: apIpv4RipMib.setLastUpdated('9805112000Z')
if mibBuilder.loadTexts: apIpv4RipMib.setOrganization('ArrowPoint Communications Inc.')
apIpv4RipRedistributeStatic = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipRedistributeStatic.setStatus('current')
apIpv4RipStaticMetric = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipStaticMetric.setStatus('current')
apIpv4RipRedistributeOspf = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipRedistributeOspf.setStatus('current')
apIpv4RipOspfMetric = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipOspfMetric.setStatus('current')
apIpv4RipRedistributeLocal = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipRedistributeLocal.setStatus('current')
apIpv4RipLocalMetric = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipLocalMetric.setStatus('current')
apIpv4RipEqualCostRoutes = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipEqualCostRoutes.setStatus('current')
apIpv4RipRedistributeFirewall = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipRedistributeFirewall.setStatus('current')
apIpv4RipFirewallMetric = MibScalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apIpv4RipFirewallMetric.setStatus('current')
apIpv4RipAdvRouteTable = MibTable((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8), )
if mibBuilder.loadTexts: apIpv4RipAdvRouteTable.setStatus('current')
apIpv4RipAdvRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1), ).setIndexNames((0, "IPV4-RIP-MIB", "apIpv4RipAdvRoutePrefix"), (0, "IPV4-RIP-MIB", "apIpv4RipAdvRoutePrefixLen"))
if mibBuilder.loadTexts: apIpv4RipAdvRouteEntry.setStatus('current')
apIpv4RipAdvRoutePrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: apIpv4RipAdvRoutePrefix.setStatus('current')
apIpv4RipAdvRoutePrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: apIpv4RipAdvRoutePrefixLen.setStatus('current')
apIpv4RipAdvRouteMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: apIpv4RipAdvRouteMetric.setStatus('current')
apIpv4RipAdvRouteStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: apIpv4RipAdvRouteStatus.setStatus('current')
apIpv4RipIfAdvRouteTable = MibTable((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9), )
if mibBuilder.loadTexts: apIpv4RipIfAdvRouteTable.setStatus('current')
apIpv4RipIfAdvRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1), ).setIndexNames((0, "IPV4-RIP-MIB", "apIpv4RipIfAdvRouteAddress"), (0, "IPV4-RIP-MIB", "apIpv4RipIfAdvRoutePrefix"), (0, "IPV4-RIP-MIB", "apIpv4RipIfAdvRoutePrefixLen"))
if mibBuilder.loadTexts: apIpv4RipIfAdvRouteEntry.setStatus('current')
apIpv4RipIfAdvRouteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: apIpv4RipIfAdvRouteAddress.setStatus('current')
apIpv4RipIfAdvRoutePrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: apIpv4RipIfAdvRoutePrefix.setStatus('current')
apIpv4RipIfAdvRoutePrefixLen = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: apIpv4RipIfAdvRoutePrefixLen.setStatus('current')
apIpv4RipIfAdvRouteMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15)).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: apIpv4RipIfAdvRouteMetric.setStatus('current')
apIpv4RipIfAdvRouteStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: apIpv4RipIfAdvRouteStatus.setStatus('current')
apIpv4RipIfTable = MibTable((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10), )
if mibBuilder.loadTexts: apIpv4RipIfTable.setStatus('current')
apIpv4RipIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10, 1), ).setIndexNames((0, "IPV4-RIP-MIB", "apIpv4RipIfAddress"))
if mibBuilder.loadTexts: apIpv4RipIfEntry.setStatus('current')
apIpv4RipIfAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: apIpv4RipIfAddress.setStatus('current')
apIpv4RipIfLogTx = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10, 1, 2), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: apIpv4RipIfLogTx.setStatus('current')
apIpv4RipIfLogRx = MibTableColumn((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10, 1, 3), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: apIpv4RipIfLogRx.setStatus('current')
mibBuilder.exportSymbols("IPV4-RIP-MIB", apIpv4RipIfLogRx=apIpv4RipIfLogRx, apIpv4RipRedistributeFirewall=apIpv4RipRedistributeFirewall, apIpv4RipIfAdvRouteMetric=apIpv4RipIfAdvRouteMetric, apIpv4RipIfAdvRoutePrefix=apIpv4RipIfAdvRoutePrefix, apIpv4RipRedistributeLocal=apIpv4RipRedistributeLocal, PYSNMP_MODULE_ID=apIpv4RipMib, apIpv4RipIfAddress=apIpv4RipIfAddress, apIpv4RipIfLogTx=apIpv4RipIfLogTx, apIpv4RipIfAdvRoutePrefixLen=apIpv4RipIfAdvRoutePrefixLen, apIpv4RipEqualCostRoutes=apIpv4RipEqualCostRoutes, apIpv4RipIfAdvRouteEntry=apIpv4RipIfAdvRouteEntry, apIpv4RipAdvRoutePrefixLen=apIpv4RipAdvRoutePrefixLen, apIpv4RipAdvRoutePrefix=apIpv4RipAdvRoutePrefix, apIpv4RipRedistributeOspf=apIpv4RipRedistributeOspf, apIpv4RipAdvRouteTable=apIpv4RipAdvRouteTable, apIpv4RipMib=apIpv4RipMib, apIpv4RipFirewallMetric=apIpv4RipFirewallMetric, apIpv4RipAdvRouteEntry=apIpv4RipAdvRouteEntry, apIpv4RipAdvRouteMetric=apIpv4RipAdvRouteMetric, apIpv4RipIfAdvRouteTable=apIpv4RipIfAdvRouteTable, apIpv4RipLocalMetric=apIpv4RipLocalMetric, apIpv4RipRedistributeStatic=apIpv4RipRedistributeStatic, apIpv4RipIfTable=apIpv4RipIfTable, apIpv4RipStaticMetric=apIpv4RipStaticMetric, apIpv4RipIfAdvRouteStatus=apIpv4RipIfAdvRouteStatus, apIpv4RipIfEntry=apIpv4RipIfEntry, apIpv4RipAdvRouteStatus=apIpv4RipAdvRouteStatus, apIpv4RipIfAdvRouteAddress=apIpv4RipIfAdvRouteAddress, apIpv4RipOspfMetric=apIpv4RipOspfMetric)
|
(ap_ipv4_rip,) = mibBuilder.importSymbols('APENT-MIB', 'apIpv4Rip')
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, value_size_constraint, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(bits, unsigned32, mib_identifier, module_identity, counter32, integer32, counter64, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, ip_address, time_ticks, gauge32, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'Unsigned32', 'MibIdentifier', 'ModuleIdentity', 'Counter32', 'Integer32', 'Counter64', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'IpAddress', 'TimeTicks', 'Gauge32', 'ObjectIdentity')
(textual_convention, truth_value, row_status, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TruthValue', 'RowStatus', 'DisplayString')
ap_ipv4_rip_mib = module_identity((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 1))
if mibBuilder.loadTexts:
apIpv4RipMib.setLastUpdated('9805112000Z')
if mibBuilder.loadTexts:
apIpv4RipMib.setOrganization('ArrowPoint Communications Inc.')
ap_ipv4_rip_redistribute_static = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipRedistributeStatic.setStatus('current')
ap_ipv4_rip_static_metric = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipStaticMetric.setStatus('current')
ap_ipv4_rip_redistribute_ospf = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipRedistributeOspf.setStatus('current')
ap_ipv4_rip_ospf_metric = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipOspfMetric.setStatus('current')
ap_ipv4_rip_redistribute_local = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipRedistributeLocal.setStatus('current')
ap_ipv4_rip_local_metric = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipLocalMetric.setStatus('current')
ap_ipv4_rip_equal_cost_routes = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipEqualCostRoutes.setStatus('current')
ap_ipv4_rip_redistribute_firewall = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2))).clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipRedistributeFirewall.setStatus('current')
ap_ipv4_rip_firewall_metric = mib_scalar((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apIpv4RipFirewallMetric.setStatus('current')
ap_ipv4_rip_adv_route_table = mib_table((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8))
if mibBuilder.loadTexts:
apIpv4RipAdvRouteTable.setStatus('current')
ap_ipv4_rip_adv_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1)).setIndexNames((0, 'IPV4-RIP-MIB', 'apIpv4RipAdvRoutePrefix'), (0, 'IPV4-RIP-MIB', 'apIpv4RipAdvRoutePrefixLen'))
if mibBuilder.loadTexts:
apIpv4RipAdvRouteEntry.setStatus('current')
ap_ipv4_rip_adv_route_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
apIpv4RipAdvRoutePrefix.setStatus('current')
ap_ipv4_rip_adv_route_prefix_len = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
apIpv4RipAdvRoutePrefixLen.setStatus('current')
ap_ipv4_rip_adv_route_metric = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
apIpv4RipAdvRouteMetric.setStatus('current')
ap_ipv4_rip_adv_route_status = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 8, 1, 4), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
apIpv4RipAdvRouteStatus.setStatus('current')
ap_ipv4_rip_if_adv_route_table = mib_table((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9))
if mibBuilder.loadTexts:
apIpv4RipIfAdvRouteTable.setStatus('current')
ap_ipv4_rip_if_adv_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1)).setIndexNames((0, 'IPV4-RIP-MIB', 'apIpv4RipIfAdvRouteAddress'), (0, 'IPV4-RIP-MIB', 'apIpv4RipIfAdvRoutePrefix'), (0, 'IPV4-RIP-MIB', 'apIpv4RipIfAdvRoutePrefixLen'))
if mibBuilder.loadTexts:
apIpv4RipIfAdvRouteEntry.setStatus('current')
ap_ipv4_rip_if_adv_route_address = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
apIpv4RipIfAdvRouteAddress.setStatus('current')
ap_ipv4_rip_if_adv_route_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
apIpv4RipIfAdvRoutePrefix.setStatus('current')
ap_ipv4_rip_if_adv_route_prefix_len = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
apIpv4RipIfAdvRoutePrefixLen.setStatus('current')
ap_ipv4_rip_if_adv_route_metric = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 15)).clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
apIpv4RipIfAdvRouteMetric.setStatus('current')
ap_ipv4_rip_if_adv_route_status = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 9, 1, 5), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
apIpv4RipIfAdvRouteStatus.setStatus('current')
ap_ipv4_rip_if_table = mib_table((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10))
if mibBuilder.loadTexts:
apIpv4RipIfTable.setStatus('current')
ap_ipv4_rip_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10, 1)).setIndexNames((0, 'IPV4-RIP-MIB', 'apIpv4RipIfAddress'))
if mibBuilder.loadTexts:
apIpv4RipIfEntry.setStatus('current')
ap_ipv4_rip_if_address = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
apIpv4RipIfAddress.setStatus('current')
ap_ipv4_rip_if_log_tx = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10, 1, 2), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
apIpv4RipIfLogTx.setStatus('current')
ap_ipv4_rip_if_log_rx = mib_table_column((1, 3, 6, 1, 4, 1, 2467, 1, 9, 3, 1, 10, 1, 3), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
apIpv4RipIfLogRx.setStatus('current')
mibBuilder.exportSymbols('IPV4-RIP-MIB', apIpv4RipIfLogRx=apIpv4RipIfLogRx, apIpv4RipRedistributeFirewall=apIpv4RipRedistributeFirewall, apIpv4RipIfAdvRouteMetric=apIpv4RipIfAdvRouteMetric, apIpv4RipIfAdvRoutePrefix=apIpv4RipIfAdvRoutePrefix, apIpv4RipRedistributeLocal=apIpv4RipRedistributeLocal, PYSNMP_MODULE_ID=apIpv4RipMib, apIpv4RipIfAddress=apIpv4RipIfAddress, apIpv4RipIfLogTx=apIpv4RipIfLogTx, apIpv4RipIfAdvRoutePrefixLen=apIpv4RipIfAdvRoutePrefixLen, apIpv4RipEqualCostRoutes=apIpv4RipEqualCostRoutes, apIpv4RipIfAdvRouteEntry=apIpv4RipIfAdvRouteEntry, apIpv4RipAdvRoutePrefixLen=apIpv4RipAdvRoutePrefixLen, apIpv4RipAdvRoutePrefix=apIpv4RipAdvRoutePrefix, apIpv4RipRedistributeOspf=apIpv4RipRedistributeOspf, apIpv4RipAdvRouteTable=apIpv4RipAdvRouteTable, apIpv4RipMib=apIpv4RipMib, apIpv4RipFirewallMetric=apIpv4RipFirewallMetric, apIpv4RipAdvRouteEntry=apIpv4RipAdvRouteEntry, apIpv4RipAdvRouteMetric=apIpv4RipAdvRouteMetric, apIpv4RipIfAdvRouteTable=apIpv4RipIfAdvRouteTable, apIpv4RipLocalMetric=apIpv4RipLocalMetric, apIpv4RipRedistributeStatic=apIpv4RipRedistributeStatic, apIpv4RipIfTable=apIpv4RipIfTable, apIpv4RipStaticMetric=apIpv4RipStaticMetric, apIpv4RipIfAdvRouteStatus=apIpv4RipIfAdvRouteStatus, apIpv4RipIfEntry=apIpv4RipIfEntry, apIpv4RipAdvRouteStatus=apIpv4RipAdvRouteStatus, apIpv4RipIfAdvRouteAddress=apIpv4RipIfAdvRouteAddress, apIpv4RipOspfMetric=apIpv4RipOspfMetric)
|
# print "Hello" N times
n=int(input())
if n>=0:
for i in range(n):
print("Hello")
else:
print("Invalid input")
|
n = int(input())
if n >= 0:
for i in range(n):
print('Hello')
else:
print('Invalid input')
|
##############################################################################
#
# Copyright (C) BBC 2018
#
##############################################################################
events = [
{
"prodState": "Maintenance",
"firstTime": 1494707632.238,
"device_uuid": "3cb330f3-afb0-4e25-99ef-1902403b9be1",
"eventClassKey": null,
"severity": 5,
"agent": "zenperfsnmp",
"dedupid": "rpm01.rbsov.bbc.co.uk||/Status/Snmp|snmp_error|5",
"Location": [
{
"uid": "/zport/dmd/Locations/RBSOV",
"name": "/RBSOV"
}
],
"component_url": null,
"ownerid": null,
"eventClassMapping_url": null,
"eventClass": "/Status/Snmp",
"eventState": "New",
"id": "0242ac11-0008-8c73-11e7-381b7d3bc1c5",
"device_title": "rpm01.rbsov.bbc.co.uk",
"DevicePriority": null,
"log": [
[
"admin",
"2017-05-17 05:14:39",
"Please refer Case3 <a href=\"https://confluence.dev.bbc.co.uk/display/men/Auto+Closing+and+Unacknowledging+events+in+zenoss\"><b> here</b> </a>"
],
[
"admin",
"2017-05-17 05:14:39",
"state changed to New"
],
[
"[email protected]",
"2017-05-13 23:02:06",
"state changed to Acknowledged"
]
],
"facility": null,
"eventClass_url": "/zport/dmd/Events/Status/Snmp",
"priority": null,
"device_url": "/zport/dmd/goto?guid=3cb330f3-afb0-4e25-99ef-1902403b9be1",
"DeviceClass": [
{
"uid": "/zport/dmd/Devices/Network/RPM Probes",
"name": "/Network/RPM Probes"
}
],
"details": [
{
"value": "a72e9aea2240",
"key": "manager"
},
{
"value": "/Network/RPM Probes",
"key": "zenoss.device.device_class"
},
{
"value": "/Platform/Network Equipment/Routers_Firewalls",
"key": "zenoss.device.groups"
},
{
"value": "172.31.193.90",
"key": "zenoss.device.ip_address"
},
{
"value": "/RBSOV",
"key": "zenoss.device.location"
},
{
"value": "300",
"key": "zenoss.device.production_state"
},
{
"value": "/ReleaseEnvironment/Live",
"key": "zenoss.device.systems"
}
],
"evid": "0242ac11-0008-8c73-11e7-381b7d3bc1c5",
"component_uuid": null,
"eventClassMapping": null,
"component": null,
"clearid": null,
"DeviceGroups": [
{
"uid": "/zport/dmd/Groups/Platform/Network Equipment/Routers_Firewalls",
"name": "/Platform/Network Equipment/Routers_Firewalls"
}
],
"eventGroup": "SnmpTest",
"device": "rpm01.rbsov.bbc.co.uk",
"component_title": null,
"monitor": "TELHC-Collector",
"count": 13361,
"stateChange": 1494998079.655,
"ntevid": null,
"summary": "Cannot connect to SNMP agent on rpm01.rbsov.bbc.co.uk: Session.get: snmp_send cliberr=0, snmperr=-27, errstring=No securityName specified",
"message": "Cannot connect to SNMP agent on rpm01.rbsov.bbc.co.uk: Session.get: snmp_send cliberr=0, snmperr=-27, errstring=No securityName specified<br/><a href=\"https://confluence.dev.bbc.co.uk/label/zenoss_evtclass_status_snmp\"><b> Event Class Run Book</b> </a><br/><b>Confluence Label</b>: <i>zenoss_evtclass_status_snmp</i>",
"eventKey": "snmp_error",
"lastTime": 1498735871.863,
"ipAddress": [
"172.31.193.90"
],
"Systems": [
{
"uid": "/zport/dmd/Systems/ReleaseEnvironment/Live",
"name": "/ReleaseEnvironment/Live"
}
]
},
{
"prodState": "Maintenance",
"firstTime": 1494707633.109,
"device_uuid": "61266bba-2a7d-4551-a778-22171ffec006",
"eventClassKey": null,
"severity": 5,
"agent": "zenping",
"dedupid": "g7-0-sas2.oob.cwwtf.local||/Status/Ping|5|g7-0-sas2.oob.cwwtf.local is DOWN!",
"Location": [
{
"uid": "/zport/dmd/Locations/Watford/Rack_G7",
"name": "/Watford/Rack_G7"
}
],
"component_url": null,
"ownerid": null,
"eventClassMapping_url": null,
"eventClass": "/Status/Ping",
"eventState": "New",
"id": "0242ac11-0008-8c73-11e7-381b7b7a148e",
"device_title": "g7-0-sas2.oob.cwwtf.local",
"DevicePriority": "Normal",
"log": [],
"facility": null,
"eventClass_url": "/zport/dmd/Events/Status/Ping",
"priority": null,
"device_url": "/zport/dmd/goto?guid=61266bba-2a7d-4551-a778-22171ffec006",
"DeviceClass": [
{
"uid": "/zport/dmd/Devices/Storage/HP/Switches",
"name": "/Storage/HP/Switches"
}
],
"details": [
{
"value": "True",
"key": "isManageIp"
},
{
"value": "65e386ce4c65",
"key": "manager"
},
{
"value": "/Storage/HP/Switches",
"key": "zenoss.device.device_class"
},
{
"value": "172.31.127.128",
"key": "zenoss.device.ip_address"
},
{
"value": "/Watford/Rack_G7",
"key": "zenoss.device.location"
},
{
"value": "3",
"key": "zenoss.device.priority"
},
{
"value": "300",
"key": "zenoss.device.production_state"
},
{
"value": "/Infrastructure/Storage",
"key": "zenoss.device.systems"
},
{
"value": "/Platform/Forge/Live",
"key": "zenoss.device.systems"
},
{
"value": "/ReleaseEnvironment/Live",
"key": "zenoss.device.systems"
}
],
"evid": "0242ac11-0008-8c73-11e7-381b7b7a148e",
"component_uuid": null,
"eventClassMapping": null,
"component": null,
"clearid": null,
"DeviceGroups": [],
"eventGroup": "Ping",
"device": "g7-0-sas2.oob.cwwtf.local",
"component_title": null,
"monitor": "CWWTF-Collector",
"count": 33388,
"stateChange": 1494707633.109,
"ntevid": null,
"summary": "g7-0-sas2.oob.cwwtf.local is DOWN!",
"message": "g7-0-sas2.oob.cwwtf.local is DOWN!<br/><a href=\"https://confluence.dev.bbc.co.uk/label/zenoss_evtclass_status_ping\"><b> Event Class Run Book</b> </a><br/><b>Confluence Label</b>: <i>zenoss_evtclass_status_ping</i>",
"eventKey": "",
"lastTime": 1498736083.126,
"ipAddress": [
"172.31.127.128"
],
"Systems": [
{
"uid": "/zport/dmd/Systems/Infrastructure/Storage",
"name": "/Infrastructure/Storage"
},
{
"uid": "/zport/dmd/Systems/Platform/Forge/Live",
"name": "/Platform/Forge/Live"
},
{
"uid": "/zport/dmd/Systems/ReleaseEnvironment/Live",
"name": "/ReleaseEnvironment/Live"
}
]
},
{
"prodState": "Maintenance",
"firstTime": 1494707633.11,
"device_uuid": "2f454a17-ce6d-4138-8609-86eab9ab4d44",
"eventClassKey": null,
"severity": 5,
"agent": "zenping",
"dedupid": "g9-0-sas2.oob.cwwtf.local||/Status/Ping|5|g9-0-sas2.oob.cwwtf.local is DOWN!",
"Location": [
{
"uid": "/zport/dmd/Locations/Watford/Rack_G9",
"name": "/Watford/Rack_G9"
}
],
"component_url": null,
"ownerid": null,
"eventClassMapping_url": null,
"eventClass": "/Status/Ping",
"eventState": "New",
"id": "0242ac11-0008-8c73-11e7-381b7b7ab0d1",
"device_title": "g9-0-sas2.oob.cwwtf.local",
"DevicePriority": "Normal",
"log": [],
"facility": null,
"eventClass_url": "/zport/dmd/Events/Status/Ping",
"priority": null,
"device_url": "/zport/dmd/goto?guid=2f454a17-ce6d-4138-8609-86eab9ab4d44",
"DeviceClass": [
{
"uid": "/zport/dmd/Devices/Storage/HP/Switches",
"name": "/Storage/HP/Switches"
}
],
"details": [
{
"value": "True",
"key": "isManageIp"
},
{
"value": "65e386ce4c65",
"key": "manager"
},
{
"value": "/Storage/HP/Switches",
"key": "zenoss.device.device_class"
},
{
"value": "172.31.127.132",
"key": "zenoss.device.ip_address"
},
{
"value": "/Watford/Rack_G9",
"key": "zenoss.device.location"
},
{
"value": "3",
"key": "zenoss.device.priority"
},
{
"value": "300",
"key": "zenoss.device.production_state"
},
{
"value": "/Infrastructure/Storage",
"key": "zenoss.device.systems"
},
{
"value": "/Platform/Forge/Live",
"key": "zenoss.device.systems"
},
{
"value": "/ReleaseEnvironment/Live",
"key": "zenoss.device.systems"
}
],
"evid": "0242ac11-0008-8c73-11e7-381b7b7ab0d1",
"component_uuid": null,
"eventClassMapping": null,
"component": null,
"clearid": null,
"DeviceGroups": [],
"eventGroup": "Ping",
"device": "g9-0-sas2.oob.cwwtf.local",
"component_title": null,
"monitor": "CWWTF-Collector",
"count": 33389,
"stateChange": 1494707633.11,
"ntevid": null,
"summary": "g9-0-sas2.oob.cwwtf.local is DOWN!",
"message": "g9-0-sas2.oob.cwwtf.local is DOWN!<br/><a href=\"https://confluence.dev.bbc.co.uk/label/zenoss_evtclass_status_ping\"><b> Event Class Run Book</b> </a><br/><b>Confluence Label</b>: <i>zenoss_evtclass_status_ping</i>",
"eventKey": "",
"lastTime": 1498736083.125,
"ipAddress": [
"172.31.127.132"
],
"Systems": [
{
"uid": "/zport/dmd/Systems/Infrastructure/Storage",
"name": "/Infrastructure/Storage"
},
{
"uid": "/zport/dmd/Systems/Platform/Forge/Live",
"name": "/Platform/Forge/Live"
},
{
"uid": "/zport/dmd/Systems/ReleaseEnvironment/Live",
"name": "/ReleaseEnvironment/Live"
}
]
}
]
|
events = [{'prodState': 'Maintenance', 'firstTime': 1494707632.238, 'device_uuid': '3cb330f3-afb0-4e25-99ef-1902403b9be1', 'eventClassKey': null, 'severity': 5, 'agent': 'zenperfsnmp', 'dedupid': 'rpm01.rbsov.bbc.co.uk||/Status/Snmp|snmp_error|5', 'Location': [{'uid': '/zport/dmd/Locations/RBSOV', 'name': '/RBSOV'}], 'component_url': null, 'ownerid': null, 'eventClassMapping_url': null, 'eventClass': '/Status/Snmp', 'eventState': 'New', 'id': '0242ac11-0008-8c73-11e7-381b7d3bc1c5', 'device_title': 'rpm01.rbsov.bbc.co.uk', 'DevicePriority': null, 'log': [['admin', '2017-05-17 05:14:39', 'Please refer Case3 <a href="https://confluence.dev.bbc.co.uk/display/men/Auto+Closing+and+Unacknowledging+events+in+zenoss"><b> here</b> </a>'], ['admin', '2017-05-17 05:14:39', 'state changed to New'], ['[email protected]', '2017-05-13 23:02:06', 'state changed to Acknowledged']], 'facility': null, 'eventClass_url': '/zport/dmd/Events/Status/Snmp', 'priority': null, 'device_url': '/zport/dmd/goto?guid=3cb330f3-afb0-4e25-99ef-1902403b9be1', 'DeviceClass': [{'uid': '/zport/dmd/Devices/Network/RPM Probes', 'name': '/Network/RPM Probes'}], 'details': [{'value': 'a72e9aea2240', 'key': 'manager'}, {'value': '/Network/RPM Probes', 'key': 'zenoss.device.device_class'}, {'value': '/Platform/Network Equipment/Routers_Firewalls', 'key': 'zenoss.device.groups'}, {'value': '172.31.193.90', 'key': 'zenoss.device.ip_address'}, {'value': '/RBSOV', 'key': 'zenoss.device.location'}, {'value': '300', 'key': 'zenoss.device.production_state'}, {'value': '/ReleaseEnvironment/Live', 'key': 'zenoss.device.systems'}], 'evid': '0242ac11-0008-8c73-11e7-381b7d3bc1c5', 'component_uuid': null, 'eventClassMapping': null, 'component': null, 'clearid': null, 'DeviceGroups': [{'uid': '/zport/dmd/Groups/Platform/Network Equipment/Routers_Firewalls', 'name': '/Platform/Network Equipment/Routers_Firewalls'}], 'eventGroup': 'SnmpTest', 'device': 'rpm01.rbsov.bbc.co.uk', 'component_title': null, 'monitor': 'TELHC-Collector', 'count': 13361, 'stateChange': 1494998079.655, 'ntevid': null, 'summary': 'Cannot connect to SNMP agent on rpm01.rbsov.bbc.co.uk: Session.get: snmp_send cliberr=0, snmperr=-27, errstring=No securityName specified', 'message': 'Cannot connect to SNMP agent on rpm01.rbsov.bbc.co.uk: Session.get: snmp_send cliberr=0, snmperr=-27, errstring=No securityName specified<br/><a href="https://confluence.dev.bbc.co.uk/label/zenoss_evtclass_status_snmp"><b> Event Class Run Book</b> </a><br/><b>Confluence Label</b>: <i>zenoss_evtclass_status_snmp</i>', 'eventKey': 'snmp_error', 'lastTime': 1498735871.863, 'ipAddress': ['172.31.193.90'], 'Systems': [{'uid': '/zport/dmd/Systems/ReleaseEnvironment/Live', 'name': '/ReleaseEnvironment/Live'}]}, {'prodState': 'Maintenance', 'firstTime': 1494707633.109, 'device_uuid': '61266bba-2a7d-4551-a778-22171ffec006', 'eventClassKey': null, 'severity': 5, 'agent': 'zenping', 'dedupid': 'g7-0-sas2.oob.cwwtf.local||/Status/Ping|5|g7-0-sas2.oob.cwwtf.local is DOWN!', 'Location': [{'uid': '/zport/dmd/Locations/Watford/Rack_G7', 'name': '/Watford/Rack_G7'}], 'component_url': null, 'ownerid': null, 'eventClassMapping_url': null, 'eventClass': '/Status/Ping', 'eventState': 'New', 'id': '0242ac11-0008-8c73-11e7-381b7b7a148e', 'device_title': 'g7-0-sas2.oob.cwwtf.local', 'DevicePriority': 'Normal', 'log': [], 'facility': null, 'eventClass_url': '/zport/dmd/Events/Status/Ping', 'priority': null, 'device_url': '/zport/dmd/goto?guid=61266bba-2a7d-4551-a778-22171ffec006', 'DeviceClass': [{'uid': '/zport/dmd/Devices/Storage/HP/Switches', 'name': '/Storage/HP/Switches'}], 'details': [{'value': 'True', 'key': 'isManageIp'}, {'value': '65e386ce4c65', 'key': 'manager'}, {'value': '/Storage/HP/Switches', 'key': 'zenoss.device.device_class'}, {'value': '172.31.127.128', 'key': 'zenoss.device.ip_address'}, {'value': '/Watford/Rack_G7', 'key': 'zenoss.device.location'}, {'value': '3', 'key': 'zenoss.device.priority'}, {'value': '300', 'key': 'zenoss.device.production_state'}, {'value': '/Infrastructure/Storage', 'key': 'zenoss.device.systems'}, {'value': '/Platform/Forge/Live', 'key': 'zenoss.device.systems'}, {'value': '/ReleaseEnvironment/Live', 'key': 'zenoss.device.systems'}], 'evid': '0242ac11-0008-8c73-11e7-381b7b7a148e', 'component_uuid': null, 'eventClassMapping': null, 'component': null, 'clearid': null, 'DeviceGroups': [], 'eventGroup': 'Ping', 'device': 'g7-0-sas2.oob.cwwtf.local', 'component_title': null, 'monitor': 'CWWTF-Collector', 'count': 33388, 'stateChange': 1494707633.109, 'ntevid': null, 'summary': 'g7-0-sas2.oob.cwwtf.local is DOWN!', 'message': 'g7-0-sas2.oob.cwwtf.local is DOWN!<br/><a href="https://confluence.dev.bbc.co.uk/label/zenoss_evtclass_status_ping"><b> Event Class Run Book</b> </a><br/><b>Confluence Label</b>: <i>zenoss_evtclass_status_ping</i>', 'eventKey': '', 'lastTime': 1498736083.126, 'ipAddress': ['172.31.127.128'], 'Systems': [{'uid': '/zport/dmd/Systems/Infrastructure/Storage', 'name': '/Infrastructure/Storage'}, {'uid': '/zport/dmd/Systems/Platform/Forge/Live', 'name': '/Platform/Forge/Live'}, {'uid': '/zport/dmd/Systems/ReleaseEnvironment/Live', 'name': '/ReleaseEnvironment/Live'}]}, {'prodState': 'Maintenance', 'firstTime': 1494707633.11, 'device_uuid': '2f454a17-ce6d-4138-8609-86eab9ab4d44', 'eventClassKey': null, 'severity': 5, 'agent': 'zenping', 'dedupid': 'g9-0-sas2.oob.cwwtf.local||/Status/Ping|5|g9-0-sas2.oob.cwwtf.local is DOWN!', 'Location': [{'uid': '/zport/dmd/Locations/Watford/Rack_G9', 'name': '/Watford/Rack_G9'}], 'component_url': null, 'ownerid': null, 'eventClassMapping_url': null, 'eventClass': '/Status/Ping', 'eventState': 'New', 'id': '0242ac11-0008-8c73-11e7-381b7b7ab0d1', 'device_title': 'g9-0-sas2.oob.cwwtf.local', 'DevicePriority': 'Normal', 'log': [], 'facility': null, 'eventClass_url': '/zport/dmd/Events/Status/Ping', 'priority': null, 'device_url': '/zport/dmd/goto?guid=2f454a17-ce6d-4138-8609-86eab9ab4d44', 'DeviceClass': [{'uid': '/zport/dmd/Devices/Storage/HP/Switches', 'name': '/Storage/HP/Switches'}], 'details': [{'value': 'True', 'key': 'isManageIp'}, {'value': '65e386ce4c65', 'key': 'manager'}, {'value': '/Storage/HP/Switches', 'key': 'zenoss.device.device_class'}, {'value': '172.31.127.132', 'key': 'zenoss.device.ip_address'}, {'value': '/Watford/Rack_G9', 'key': 'zenoss.device.location'}, {'value': '3', 'key': 'zenoss.device.priority'}, {'value': '300', 'key': 'zenoss.device.production_state'}, {'value': '/Infrastructure/Storage', 'key': 'zenoss.device.systems'}, {'value': '/Platform/Forge/Live', 'key': 'zenoss.device.systems'}, {'value': '/ReleaseEnvironment/Live', 'key': 'zenoss.device.systems'}], 'evid': '0242ac11-0008-8c73-11e7-381b7b7ab0d1', 'component_uuid': null, 'eventClassMapping': null, 'component': null, 'clearid': null, 'DeviceGroups': [], 'eventGroup': 'Ping', 'device': 'g9-0-sas2.oob.cwwtf.local', 'component_title': null, 'monitor': 'CWWTF-Collector', 'count': 33389, 'stateChange': 1494707633.11, 'ntevid': null, 'summary': 'g9-0-sas2.oob.cwwtf.local is DOWN!', 'message': 'g9-0-sas2.oob.cwwtf.local is DOWN!<br/><a href="https://confluence.dev.bbc.co.uk/label/zenoss_evtclass_status_ping"><b> Event Class Run Book</b> </a><br/><b>Confluence Label</b>: <i>zenoss_evtclass_status_ping</i>', 'eventKey': '', 'lastTime': 1498736083.125, 'ipAddress': ['172.31.127.132'], 'Systems': [{'uid': '/zport/dmd/Systems/Infrastructure/Storage', 'name': '/Infrastructure/Storage'}, {'uid': '/zport/dmd/Systems/Platform/Forge/Live', 'name': '/Platform/Forge/Live'}, {'uid': '/zport/dmd/Systems/ReleaseEnvironment/Live', 'name': '/ReleaseEnvironment/Live'}]}]
|
# Commodity and Equity Sector mappings
sectmap = {
'commodity_sector_mappings':{
'&6A_CCB':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'AUD'), # AUD
'&6B_CCB':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'GBP'), # GBP
'&6C_CCB':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'CAD'), # CAD
'&6E_CCB':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'EUR'), # EUR
'&6J_CCB':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'JPY'), # JPY
'&6M_CCB':('Currencies', 'EM Currencies', 'EM Currencies', 'EM Currencies', 'MXN'), # MXN
'&6N_CCB':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'NZD'), # NZD
'&6S_CCB':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'CHF'), # CHF
'&AFB_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Eastern Australia Feed Barley'), # Eastern Australia Feed Barley
'&AWM_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Eastern Australia Wheat'), # Eastern Australia Wheat
'&BAX_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Canadian Bankers Acceptance'), # Canadian Bankers Acceptance
'&BRN_CCB':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Brent Crude Oil'), # Brent Crude Oil
'&BTC_CCB':('Currencies', 'Crypto Currencies', 'Crypto Currencies', 'Crypto Currencies', 'Bitcoin'), # Bitcoin
'&CC_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Cocoa'), # Cocoa
'&CGB_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Canadian 10y'), # Canadian 10 Yr Govt Bond
'&CL_CCB':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil - Light Sweet'), # Crude Oil - Light Sweet
'&CT_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Cotton #2'), # Cotton #2
'&DC_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Milk - Class III'), # Milk - Class III
'&DX_CCB':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'Benchmark'), # US Dollar Index
'&EH_CCB':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Ethanol'), # Ethanol
'&EMD_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'S&P MidCap 400 E-mini'), # S&P MidCap 400 E-mini
'&ES_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'S&P 500 E-mini'), # S&P 500 E-mini
'&EUA_CCB':('Commodities', 'Energy', 'Energy', 'Energy', 'EUA (Carbon Emissions)'), # EUA (Carbon Emissions)
'&FBTP_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-BTP Long Term'), # Euro-BTP Long Term
'&FCE_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'CAC 40'), # CAC 40
'&FDAX_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'DAX'), # DAX
'&FDAX9_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'DAX'), # DAX, Last in Close field
'&FESX_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'EURO STOXX 50'), # EURO STOXX 50
'&FESX9_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'EURO STOXX 50'), # EURO STOXX 50, Last in Close field
'&FGBL_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-Bund - 10 Yr'), # Euro-Bund - 10 Yr
'&FGBM_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-Bobl - 5 Yr'), # Euro-Bobl - 5 Yr
'&FGBS_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-Schatz - 2 Yr'), # Euro-Schatz - 2 Yr
'&FGBX_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-Buxl - 30 Yr'), # Euro-Buxl - 30 Yr
'&FOAT_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro-OAT Continuous Contract'), # Euro-OAT Continuous Contract
'&FOAT9_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro-OAT(L) Continuous Contract'), # Euro-OAT(L) Continuous Contract
'&FSMI_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Swiss Market Index'), # Swiss Market Index
'&FTDX_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'TecDAX'), # TecDAX
'&GAS_CCB':('Commodities', 'Energy', 'Energy', 'Energy', 'Gas Oil'), # Gas Oil
'&GC_CCB':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), # Gold
'&GD_CCB':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # GS&P GSCI
'&GE_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Eurodollar'), # Eurodollar
'&GF_CCB':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Feeder Cattle'), # Feeder Cattle
'&GWM_CCB':('Commodities', 'Energy', 'Energy', 'Energy', 'UK Natural Gas'), # UK Natural Gas
'&HE_CCB':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Lean Hogs'), # Lean Hogs
'&HG_CCB':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), # Copper
'&HO_CCB':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'NY Harbor ULSD'), # NY Harbor ULSD
'&HSI_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Hang Seng Index'), # Hang Seng Index
'&HTW_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'MSCI Taiwan Index'), # MSCI Taiwan Index
'&KC_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Coffee C'), # Coffee C
'&KE_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'KC HRW Wheat'), # KC HRW Wheat
'&KOS_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'KOSPI 200'), # KOSPI 200
'&LBS_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Lumber'), # Lumber
'&LCC_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'London Cocoa'), # London Cocoa
'&LE_CCB':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Live Cattle'), # Live Cattle
'&LES_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro Swiss'), # Euro Swiss
'&LEU_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euribor'), # Euribor
'&LEU9_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euribor'), # Euribor, Official Close
'&LFT_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'FTSE 100'), # FTSE 100
'&LFT9_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'FTSE 100'), # FTSE 100, Official Close
'&LLG_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Long Gilt'), # Long Gilt
'&LRC_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Robusta Coffee'), # Robusta Coffee
'&LSS_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Short Sterling'), # Short Sterling
'&LSU_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'White Sugar'), # White Sugar
'&LWB_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Feed Wheat'), # Feed Wheat
'&MHI_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Hang Seng Index'), # Hang Seng Index - Mini
'&MWE_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Hard Red Spring Wheat'), # Hard Red Spring Wheat
'&NG_CCB':('Commodities', 'Energy', 'Energy', 'Energy', 'Henry Hub Natural Gas'), # Henry Hub Natural Gas
'&NIY_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Nikkei 225'), # Nikkei 225 Yen
'&NKD_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Nikkei 225'), # Nikkei 225 Dollar
'&NQ_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Nasdaq-100 - E-mini'), # Nasdaq-100 - E-mini
'&OJ_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Frozen Concentrated Orange Juice'), # Frozen Concentrated Orange Juice
'&PA_CCB':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), # Palladium
'&PL_CCB':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), # Platinum
'&RB_CCB':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'RBOB Gasoline'), # RBOB Gasoline
'&RS_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Canola'), # Canola
'&RTY_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Russell 2000 - E-mini'), # Russell 2000 - E-mini
'&SB_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Sugar No. 11'), # Sugar No. 11
'&SCN_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'FTSE China A50 Index'), # FTSE China A50 Index
'&SI_CCB':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), # Silver
'&SIN_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'SGX Nifty 50 Index'), # SGX Nifty 50 Index
'&SJB_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Japanese Govt Bond - Mini'), # Japanese Govt Bond - Mini
'&SNK_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Nikkei 225'), # Nikkei 225 (SGX)
'&SP_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'S&P 500'), # S&P 500
'&SR3_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', '3M SOFR Continuous Contract'), # 3M SOFR Continuous Contract
'&SSG_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'MSCI Singapore Index'), # MSCI Singapore Index
'&STW_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'MSCI Taiwan Index'), # MSCI Taiwan Index, Discontinued
'&SXF_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'S&P/TSX 60 Index'), # S&P/TSX 60 Index
'&TN_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Ultra 10 Year U.S. T-Note'), # Ultra 10 Year U.S. T-Note
'&UB_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Ultra U.S. T-Bond'), # Ultra U.S. T-Bond
'&VX_CCB':('Volatility', 'Volatility', 'Volatility', 'Volatility', 'Cboe Volatility Index'), # Cboe Volatility Index
'&WBS_CCB':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'WTI Crude Oil'), # WTI Crude Oil
'&YAP_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'ASX SPI 200'), # ASX SPI 200
'&YAP4_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'ASX SPI 200'), # ASX SPI 200, Day
'&YAP10_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'ASX SPI 200'), # ASX SPI 200, Night
'&YG_CCB':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold - Mini'), # Gold - Mini
'&YI_CCB':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver - Mini'), # Silver - Mini
'&YIB_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'ASX 30 Day Interbank Cash Rate'), # ASX 30 Day Interbank Cash Rate
'&YIR_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'ASX 90 Day Bank Accepted Bills'), # ASX 90 Day Bank Accepted Bills
'&YM_CCB':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'E-mini Dow'), # E-mini Dow
'&YXT_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'ASX 10 Year Treasury Bond'), # ASX 10 Year Treasury Bond
'&YYT_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'ASX 3 Year Treasury Bond'), # ASX 3 Year Treasury Bond
'&ZB_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'U.S. T-Bond'), # U.S. T-Bond
'&ZC_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Corn'), # Corn
'&ZF_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', '5-Year US T-Note'), # 5-Year US T-Note
'&ZG_CCB':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), # Gold 100oz, Discountinued
'&ZI_CCB':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), # Silver 5000oz, Discontinued
'&ZL_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Soybean Oil'), # Soybean Oil
'&ZM_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Soybean Meal'), # Soybean Meal
'&ZN_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', '10-Year US T-Note'), # 10-Year US T-Note
'&ZO_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Oats'), # Oats
'&ZQ_CCB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', '30 Day Federal Funds'), # 30 Day Federal Funds
'&ZR_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Rough Rice'), # Rough Rice
'&ZS_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Soybeans'), # Soybeans
'&ZT_CCB':('Bonds','Government Bonds','Government Bonds','Government Bonds', '2-Year US T-Note'), # 2-Year US T-Note
'&ZW_CCB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Chicago SRW Wheat'), # Chicago SRW Wheat
'&6A':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'AUD'), # AUD
'&6B':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'GBP'), # GBP
'&6C':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'CAD'), # CAD
'&6E':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'EUR'), # EUR
'&6J':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'JPY'), # JPY
'&6M':('Currencies', 'EM Currencies', 'EM Currencies', 'EM Currencies', 'MXN'), # MXN
'&6N':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'NZD'), # NZD
'&6S':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'CHF'), # CHF
'&AFB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Eastern Australia Feed Barley'), # Eastern Australia Feed Barley
'&AWM':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Eastern Australia Wheat'), # Eastern Australia Wheat
'&BAX':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Canadian Bankers Acceptance'), # Canadian Bankers Acceptance
'&BRN':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Brent Crude Oil'), # Brent Crude Oil
'&BTC':('Currencies', 'Crypto Currencies', 'Crypto Currencies', 'Crypto Currencies', 'Bitcoin'), # Bitcoin
'&CC':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Cocoa'), # Cocoa
'&CGB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Canadian 10y'), # Canadian 10 Yr Govt Bond
'&CL':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil - Light Sweet'), # Crude Oil - Light Sweet
'&CT':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Cotton #2'), # Cotton #2
'&DC':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Milk - Class III'), # Milk - Class III
'&DX':('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'Benchmark'), # US Dollar Index
'&EH':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Ethanol'), # Ethanol
'&EMD':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'S&P MidCap 400 E-mini'), # S&P MidCap 400 E-mini
'&ES':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'S&P 500 E-mini'), # S&P 500 E-mini
'&EUA':('Commodities', 'Energy', 'Energy', 'Energy', 'EUA (Carbon Emissions)'), # EUA (Carbon Emissions)
'&FBTP':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-BTP Long Term'), # Euro-BTP Long Term
'&FCE':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'CAC 40'), # CAC 40
'&FDAX':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'DAX'), # DAX
'&FDAX9':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'DAX'), # DAX, Last in Close field
'&FESX':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'EURO STOXX 50'), # EURO STOXX 50
'&FESX9':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'EURO STOXX 50'), # EURO STOXX 50, Last in Close field
'&FGBL':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-Bund - 10 Yr'), # Euro-Bund - 10 Yr
'&FGBM':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-Bobl - 5 Yr'), # Euro-Bobl - 5 Yr
'&FGBS':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-Schatz - 2 Yr'), # Euro-Schatz - 2 Yr
'&FGBX':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Euro-Buxl - 30 Yr'), # Euro-Buxl - 30 Yr
'&FOAT':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro-OAT Continuous Contract'), # Euro-OAT Continuous Contract
'&FOAT9':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro-OAT(L) Continuous Contract'), # Euro-OAT(L) Continuous Contract
'&FSMI':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Swiss Market Index'), # Swiss Market Index
'&FTDX':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'TecDAX'), # TecDAX
'&GAS':('Commodities', 'Energy', 'Energy', 'Energy', 'Gas Oil'), # Gas Oil
'&GC':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), # Gold
'&GD':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # GS&P GSCI
'&GE':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Eurodollar'), # Eurodollar
'&GF':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Feeder Cattle'), # Feeder Cattle
'&GWM':('Commodities', 'Energy', 'Energy', 'Energy', 'UK Natural Gas'), # UK Natural Gas
'&HE':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Lean Hogs'), # Lean Hogs
'&HG':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), # Copper
'&HO':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'NY Harbor ULSD'), # NY Harbor ULSD
'&HSI':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Hang Seng Index'), # Hang Seng Index
'&HTW':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'MSCI Taiwan Index'), # MSCI Taiwan Index
'&KC':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Coffee C'), # Coffee C
'&KE':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'KC HRW Wheat'), # KC HRW Wheat
'&KOS':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'KOSPI 200'), # KOSPI 200
'&LBS':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Lumber'), # Lumber
'&LCC':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'London Cocoa'), # London Cocoa
'&LE':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Live Cattle'), # Live Cattle
'&LES':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro Swiss'), # Euro Swiss
'&LEU':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euribor'), # Euribor
'&LEU9':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euribor'), # Euribor, Official Close
'&LFT':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'FTSE 100'), # FTSE 100
'&LFT9':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'FTSE 100'), # FTSE 100, Official Close
'&LLG':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Long Gilt'), # Long Gilt
'&LRC':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Robusta Coffee'), # Robusta Coffee
'&LSS':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Short Sterling'), # Short Sterling
'&LSU':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'White Sugar'), # White Sugar
'&LWB':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Feed Wheat'), # Feed Wheat
'&MHI':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Hang Seng Index'), # Hang Seng Index - Mini
'&MWE':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Hard Red Spring Wheat'), # Hard Red Spring Wheat
'&NG':('Commodities', 'Energy', 'Energy', 'Energy', 'Henry Hub Natural Gas'), # Henry Hub Natural Gas
'&NIY':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Nikkei 225'), # Nikkei 225 Yen
'&NKD':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Nikkei 225'), # Nikkei 225 Dollar
'&NQ':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Nasdaq-100 - E-mini'), # Nasdaq-100 - E-mini
'&OJ':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Frozen Concentrated Orange Juice'), # Frozen Concentrated Orange Juice
'&PA':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), # Palladium
'&PL':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), # Platinum
'&RB':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'RBOB Gasoline'), # RBOB Gasoline
'&RS':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Canola'), # Canola
'&RTY':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Russell 2000 - E-mini'), # Russell 2000 - E-mini
'&SB':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Sugar No. 11'), # Sugar No. 11
'&SCN':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'FTSE China A50 Index'), # FTSE China A50 Index
'&SI':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), # Silver
'&SIN':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'SGX Nifty 50 Index'), # SGX Nifty 50 Index
'&SJB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Japanese Govt Bond - Mini'), # Japanese Govt Bond - Mini
'&SNK':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'Nikkei 225'), # Nikkei 225 (SGX)
'&SP':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'S&P 500'), # S&P 500
'&SR3':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', '3M SOFR Continuous Contract'), # 3M SOFR Continuous Contract
'&SSG':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'MSCI Singapore Index'), # MSCI Singapore Index
'&STW':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'MSCI Taiwan Index'), # MSCI Taiwan Index, Discontinued
'&SXF':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'S&P/TSX 60 Index'), # S&P/TSX 60 Index
'&TN':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Ultra 10 Year U.S. T-Note'), # Ultra 10 Year U.S. T-Note
'&UB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'Ultra U.S. T-Bond'), # Ultra U.S. T-Bond
'&VX':('Volatility', 'Volatility', 'Volatility', 'Volatility', 'Cboe Volatility Index'), # Cboe Volatility Index
'&WBS':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'WTI Crude Oil'), # WTI Crude Oil
'&YAP':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'ASX SPI 200'), # ASX SPI 200
'&YAP4':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'ASX SPI 200'), # ASX SPI 200, Day
'&YAP10':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'ASX SPI 200'), # ASX SPI 200, Night
'&YG':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold - Mini'), # Gold - Mini
'&YI':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver - Mini'), # Silver - Mini
'&YIB':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'ASX 30 Day Interbank Cash Rate'), # ASX 30 Day Interbank Cash Rate
'&YIR':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'ASX 90 Day Bank Accepted Bills'), # ASX 90 Day Bank Accepted Bills
'&YM':('Equity Indices', 'Equity Indices','Equity Indices','Equity Indices', 'E-mini Dow'), # E-mini Dow
'&YXT':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'ASX 10 Year Treasury Bond'), # ASX 10 Year Treasury Bond
'&YYT':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'ASX 3 Year Treasury Bond'), # ASX 3 Year Treasury Bond
'&ZB':('Bonds','Government Bonds','Government Bonds','Government Bonds', 'U.S. T-Bond'), # U.S. T-Bond
'&ZC':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Corn'), # Corn
'&ZF':('Bonds','Government Bonds','Government Bonds','Government Bonds', '5-Year US T-Note'), # 5-Year US T-Note
'&ZG':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), # Gold 100oz, Discountinued
'&ZI':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), # Silver 5000oz, Discontinued
'&ZL':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Soybean Oil'), # Soybean Oil
'&ZM':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Soybean Meal'), # Soybean Meal
'&ZN':('Bonds','Government Bonds','Government Bonds','Government Bonds', '10-Year US T-Note'), # 10-Year US T-Note
'&ZO':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Oats'), # Oats
'&ZQ':('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', '30 Day Federal Funds'), # 30 Day Federal Funds
'&ZR':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Rough Rice'), # Rough Rice
'&ZS':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Soybeans'), # Soybeans
'&ZT':('Bonds','Government Bonds','Government Bonds','Government Bonds', '2-Year US T-Note'), # 2-Year US T-Note
'&ZW':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Chicago SRW Wheat'), # Chicago SRW Wheat
'#GSR':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Benchmark'), # Gold/Silver Ratio
'$BCOM':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # Bloomberg Commodity Index
'$BCOMAG':('Commodities','Diversified Agriculture', 'Agriculture', 'Agriculture', 'Benchmark'), # Bloomberg Agriculture Sub-Index
'$BCOMEN':('Commodities', 'Energy', 'Energy', 'Energy', 'Benchmark'), # Bloomberg Energy Sub-Index
'$BCOMGR':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Benchmark'), # Bloomberg Grains Sub-Index
'$BCOMIN':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Benchmark'), # Bloomberg Industrial Metals Sub-Index
'$BCOMLI':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Benchmark'), # Bloomberg Livestock Sub-Index
'$BCOMPE':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Benchmark') , # Bloomberg Petroleum Sub-Index
'$BCOMPR':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Benchmark'), # Bloomberg Precious Metals Sub-Index
'$BCOMSO':('Commodities','Diversified Agriculture', 'Agriculture', 'Softs', 'Benchmark'), # Bloomberg Softs Sub-Index
'$BCOMTR':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # Bloomberg Commodity Total Return Index
'$BCOMXE':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # Bloomberg Ex-Energy Sub-Index
'$CRB':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # Refinitiv/CoreCommodity CRB Index
'$FC':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Feeder Cattle'), # CME Feeder Cattle Index
'$LH':('Commodities','Diversified Agriculture', 'Livestock', 'Livestock', 'Lean Hogs'), # CME Lean Hogs Index
'$LMEX':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Benchmark'), # LMEX Index
'$RBABCA':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # RBA Bulk Commodities Sub-Index (AUD)
'$RBABCU':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # RBA Bulk Commodities Sub-Index (USD)
'$RBABMA':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Benchmark'), # RBA Base Metals Sub-Index (AUD)
'$RBABMU':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Benchmark'), # RBA Base Metals Sub-Index (USD)
'$RBACPA':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # RBA Commodity Prices Index (AUD)
'$RBACPU':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # RBA Commodity Prices Index (USD)
'$RBANRCPA':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # RBA Non-Rural Commodity Prices Sub-Index (AUD)
'$RBANRCPU':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # RBA Non-Rural Commodity Prices Sub-Index (USD)
'$RBARCPA':('Commodities', 'Diversified Agriculture', 'Diversified Agriculture', 'Diversified Agriculture', 'Benchmark'), # RBA Rural Commodity Prices Sub-Index (AUD)
'$RBARCPU':('Commodities', 'Diversified Agriculture', 'Diversified Agriculture', 'Diversified Agriculture', 'Benchmark'), # RBA Rural Commodity Prices Sub-Index (USD)
'$SPGSCI':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # S&P GSCI Spot Index
'$SPGSCITR':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # S&P GSCI Total Return Index
'$SPGSEW':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # S&P GSCI Select Equal Weight Spot Index
'$SPGSEWTR':('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), # S&P GSCI Select Equal Weight Total Return Index
'@AA':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium Alloy - LME Official Cash
'@AA03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium Alloy - LME 03 Months Seller
'@AAWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium Alloy - LME Warehouse Opening Stocks
'@AL':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium - LME Official Cash
'@AL03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium - LME 03 Months Seller
'@ALAUD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium - LME Official Cash (AUD)
'@ALCAD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium - LME Official Cash (CAD)
'@ALWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium - LME Warehouse Opening Stocks
'@BFOE':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil'), # Brent Crude Europe FOB Spot
'@C2Y':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Corn'), # Corn #2 Yellow Central Illinois Average Price Spot
'@CO':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Cobalt'), # Cobalt - LME Official Cash
'@CO03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Cobalt'), # Cobalt - LME 03 Months Seller
'@CO15S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Cobalt'), # Cobalt - LME 15 Months Seller
'@COWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Cobalt'), # Cobalt - LME Warehouse Opening Stocks
'@CU':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), # Copper - LME Official Cash
'@CU03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), # Copper - LME 03 Months Seller
'@CUAUD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), # Copper - LME Official Cash (AUD)
'@CUCAD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), # Copper - LME Official Cash (CAD)
'@CUWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), # Copper - LME Warehouse Opening Stocks
'@FE':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Iron Ore'), # Iron Ore CFR China 62% Fe Spot
'@FEAUD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Iron Ore'), # Iron Ore CFR China 62% Fe Spot (AUD)
'@FECAD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Iron Ore'), # Iron Ore CFR China 62% Fe Spot (CAD)
'@GC':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), # Gold - London PM Fix
'@HHNG':('Commodities', 'Energy', 'Energy', 'Energy', 'Natural Gas'), # Henry Hub Natural Gas Spot
'@HO':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Heating Oil'), # Heating Oil Spot
'@NA':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium Alloy (NASAAC) - LME Official Cash
'@NA03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium Alloy (NASAAC) - LME 03 Months Seller
'@NAWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), # Aluminium Alloy (NASAAC) - LME Warehouse Opening Stocks
'@NI':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), # Nickel - LME Official Cash
'@NI03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), # Nickel - LME 03 Months Seller
'@NIAUD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), # Nickel - LME Official Cash (AUD)
'@NICAD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), # Nickel - LME Official Cash (CAD)
'@NIWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), # Nickel - LME Warehouse Opening Stocks
'@PA':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), # Palladium - London PM Fix
'@PAAUD':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), # Palladium - London PM Fix (AUD)
'@PACAD':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), # Palladium - London PM Fix (CAD)
'@PB':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), # Lead - LME Official Cash
'@PB03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), # Lead - LME 03 Months Seller
'@PBAUD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), # Lead - LME Official Cash (AUD)
'@PBCAD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), # Lead - LME Official Cash (CAD)
'@PBWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), # Lead - LME Warehouse Opening Stocks
'@PL':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), # Platinum - London PM Fix
'@PLAUD':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), # Platinum - London PM Fix (AUD)
'@PLCAD':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), # Platinum - London PM Fix (CAD)
'@RBOB':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'RBOB Gasoline'), # RBOB Gasoline Spot
'@S1Y':('Commodities','Diversified Agriculture', 'Agriculture', 'Grains', 'Soybeans'), # Soybeans #1 Yellow Central Illinois Average Price Spot
'@SI':('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), # Silver - London Fix
'@SN':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), # Tin - LME Official Cash
'@SN03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), # Tin - LME 03 Months Seller
'@SN15S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), # Tin - LME 15 Months Seller
'@SNAUD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), # Tin - LME Official Cash (AUD)
'@SNCAD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), # Tin - LME Official Cash (CAD)
'@SNWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), # Tin - LME Warehouse Opening Stocks
'@U3O8':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Uranium'), # Uranium Spot
'@U3O8AUD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Uranium'), # Uranium Spot (AUD)
'@U3O8CAD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Uranium'), # Uranium Spot (CAD)
'@WTI':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil'), # West Texas Intermediate Crude Oil Spot
'@WTIAUD':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil'), # West Texas Intermediate Crude Oil Spot (AUD)
'@WTICAD':('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil'), # West Texas Intermediate Crude Oil Spot (CAD)
'@YCX':('Commodities', 'Energy', 'Energy', 'Energy', 'Thermal Coal'), # Thermal Coal Spot
'@YCXAUD':('Commodities', 'Energy', 'Energy', 'Energy', 'Thermal Coal'), # Thermal Coal Spot (AUD)
'@YCXCAD':('Commodities', 'Energy', 'Energy', 'Energy', 'Thermal Coal'), # Thermal Coal Spot (CAD)
'@ZN':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), # Zinc - LME Official Cash
'@ZN03S':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), # Zinc - LME 03 Months Seller
'@ZNAUD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), # Zinc - LME Official Cash (AUD)
'@ZNCAD':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), # Zinc - LME Official Cash (CAD)
'@ZNWS':('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), # Zinc - LME Warehouse Opening Stocks
},
'equity_sector_mappings':{
'Oil & Gas Drilling':('Energy','Energy','Energy Equipment & Services'),
'Oil & Gas Equipment & Services':('Energy','Energy','Energy Equipment & Services'),
'Integrated Oil & Gas':('Energy','Energy','Oil, Gas & Consumable Fuels'),
'Oil & Gas Exploration & Production':('Energy','Energy','Oil, Gas & Consumable Fuels'),
'Oil & Gas Refining & Marketing':('Energy','Energy','Oil, Gas & Consumable Fuels'),
'Oil & Gas Storage & Transportation':('Energy','Energy','Oil, Gas & Consumable Fuels'),
'Coal & Consumable Fuels':('Energy','Energy','Oil, Gas & Consumable Fuels'),
'Commodity Chemicals':('Materials','Materials','Chemicals'),
'Diversified Chemicals':('Materials','Materials','Chemicals'),
'Fertilizers & Agricultural Chemicals':('Materials','Materials','Chemicals'),
'Industrial Gases':('Materials','Materials','Chemicals'),
'Specialty Chemicals':('Materials','Materials','Chemicals'),
'Construction Materials':('Materials','Materials','Construction Materials'),
'Metal & Glass Containers':('Materials','Materials','Containers & Packaging'),
'Paper Packaging':('Materials','Materials','Containers & Packaging'),
'Aluminum':('Materials','Materials','Metals & Mining'),
'Diversified Metals & Mining':('Materials','Materials','Metals & Mining'),
'Copper':('Materials','Materials','Metals & Mining'),
'Gold':('Materials','Materials','Metals & Mining'),
'Precious Metals & Minerals':('Materials','Materials','Metals & Mining'),
'Silver':('Materials','Materials','Metals & Mining'),
'Steel':('Materials','Materials','Metals & Mining'),
'Forest Products':('Materials','Materials','Paper & Forest Products'),
'Paper Products':('Materials','Materials','Paper & Forest Products'),
'Aerospace & Defense':('Industrials','Capital Goods','Aerospace & Defense'),
'Building Products':('Industrials','Capital Goods','Building Products'),
'Construction & Engineering':('Industrials','Capital Goods','Construction & Engineering'),
'Electrical Components & Equipment':('Industrials','Capital Goods','Electrical Equipment'),
'Heavy Electrical Equipment':('Industrials','Capital Goods','Electrical Equipment'),
'Industrial Conglomerates':('Industrials','Capital Goods','Industrial Conglomerates'),
'Construction Machinery & Heavy Trucks':('Industrials','Capital Goods','Machinery'),
'Agricultural & Farm Machinery':('Industrials','Capital Goods','Machinery'),
'Industrial Machinery':('Industrials','Capital Goods','Machinery'),
'Trading Companies & Distributors':('Industrials','Capital Goods','Trading Companies & Distributors'),
'Commercial Printing':('Industrials','Commercial & Professional Services','Commercial Services & Supplies'),
'Environmental & Facilities Services':('Industrials','Commercial & Professional Services','Commercial Services & Supplies'),
'Office Services & Supplies':('Industrials','Commercial & Professional Services','Commercial Services & Supplies'),
'Diversified Support Services':('Industrials','Commercial & Professional Services','Commercial Services & Supplies'),
'Security & Alarm Services':('Industrials','Commercial & Professional Services','Commercial Services & Supplies'),
'Human Resource & Employment Services':('Industrials','Commercial & Professional Services','Professional Services'),
'Research & Consulting Services':('Industrials','Commercial & Professional Services','Professional Services'),
'Air Freight & Logistics':('Industrials','Transportation','Air Freight & Logistics'),
'Airlines':('Industrials','Transportation','Airlines'),
'Marine':('Industrials','Transportation','Marine'),
'Railroads':('Industrials','Transportation','Road & Rail'),
'Trucking':('Industrials','Transportation','Road & Rail'),
'Airport Services':('Industrials','Transportation','Transportation Infrastructure'),
'Highways & Railtracks':('Industrials','Transportation','Transportation Infrastructure'),
'Marine Ports & Services':('Industrials','Transportation','Transportation Infrastructure'),
'Auto Parts & Equipment':('Consumer Discretionary','Automobiles & Components','Auto Components'),
'Tires & Rubber':('Consumer Discretionary','Automobiles & Components','Auto Components'),
'Automobile Manufacturers':('Consumer Discretionary','Automobiles & Components','Automobiles'),
'Motorcycle Manufacturers':('Consumer Discretionary','Automobiles & Components','Automobiles'),
'Consumer Electronics':('Consumer Discretionary','Consumer Durables & Apparel','Household Durables'),
'Home Furnishings':('Consumer Discretionary','Consumer Durables & Apparel','Household Durables'),
'Homebuilding':('Consumer Discretionary','Consumer Durables & Apparel','Household Durables'),
'Household Appliances':('Consumer Discretionary','Consumer Durables & Apparel','Household Durables'),
'Housewares & Specialties':('Consumer Discretionary','Consumer Durables & Apparel','Household Durables'),
'Leisure Products':('Consumer Discretionary','Consumer Durables & Apparel','Leisure Products'),
'Apparel, Accessories & Luxury Goods':('Consumer Discretionary','Consumer Durables & Apparel','Textiles, Apparel & Luxury Goods'),
'Footwear':('Consumer Discretionary','Consumer Durables & Apparel','Textiles, Apparel & Luxury Goods'),
'Textiles':('Consumer Discretionary','Consumer Durables & Apparel','Textiles, Apparel & Luxury Goods'),
'Casinos & Gaming':('Consumer Discretionary','Consumer Services','Hotels, Restaurants & Leisure'),
'Hotels, Resorts & Cruise Lines':('Consumer Discretionary','Consumer Services','Hotels, Restaurants & Leisure'),
'Leisure Facilities':('Consumer Discretionary','Consumer Services','Hotels, Restaurants & Leisure'),
'Restaurants':('Consumer Discretionary','Consumer Services','Hotels, Restaurants & Leisure'),
'Education Services':('Consumer Discretionary','Consumer Services','Diversified Consumer Services'),
'Specialized Consumer Services':('Consumer Discretionary','Consumer Services','Diversified Consumer Services'),
'Distributors':('Consumer Discretionary','Retailing','Distributors'),
'Internet & Direct Marketing Retail':('Consumer Discretionary','Retailing','Internet & Direct Marketing Retail'),
'Department Stores':('Consumer Discretionary','Retailing','Multiline Retail'),
'General Merchandise Stores':('Consumer Discretionary','Retailing','Multiline Retail'),
'Apparel Retail':('Consumer Discretionary','Retailing','Specialty Retail'),
'Computer & Electronics Retail':('Consumer Discretionary','Retailing','Specialty Retail'),
'Home Improvement Retail':('Consumer Discretionary','Retailing','Specialty Retail'),
'Specialty Stores':('Consumer Discretionary','Retailing','Specialty Retail'),
'Automotive Retail':('Consumer Discretionary','Retailing','Specialty Retail'),
'Homefurnishing Retail':('Consumer Discretionary','Retailing','Specialty Retail'),
'Drug Retail':('Consumer Staples','Food & Staples Retailing','Food & Staples Retailing'),
'Food Distributors':('Consumer Staples','Food & Staples Retailing','Food & Staples Retailing'),
'Food Retail':('Consumer Staples','Food & Staples Retailing','Food & Staples Retailing'),
'Hypermarkets & Super Centers':('Consumer Staples','Food & Staples Retailing','Food & Staples Retailing'),
'Brewers':('Consumer Staples','Food, Beverage & Tobacco','Beverages'),
'Distillers & Vintners':('Consumer Staples','Food, Beverage & Tobacco','Beverages'),
'Soft Drinks':('Consumer Staples','Food, Beverage & Tobacco','Beverages'),
'Agricultural Products':('Consumer Staples','Food, Beverage & Tobacco','Food Products'),
'Packaged Foods & Meats':('Consumer Staples','Food, Beverage & Tobacco','Food Products'),
'Tobacco':('Consumer Staples','Food, Beverage & Tobacco','Tobacco'),
'Household Products':('Consumer Staples','Household & Personal Products','Household Products'),
'Personal Products':('Consumer Staples','Household & Personal Products','Personal Products'),
'Health Care Equipment':('Health Care','Health Care Equipment & Services','Health Care Equipment & Supplies'),
'Health Care Supplies':('Health Care','Health Care Equipment & Services','Health Care Equipment & Supplies'),
'Health Care Distributors':('Health Care','Health Care Equipment & Services','Health Care Providers & Services'),
'Health Care Services':('Health Care','Health Care Equipment & Services','Health Care Providers & Services'),
'Health Care Facilities':('Health Care','Health Care Equipment & Services','Health Care Providers & Services'),
'Managed Health Care':('Health Care','Health Care Equipment & Services','Health Care Providers & Services'),
'Health Care Technology':('Health Care','Health Care Equipment & Services','Health Care Technology'),
'Biotechnology':('Health Care','Pharmaceuticals, Biotechnology & Life Sciences','Biotechnology'),
'Pharmaceuticals':('Health Care','Pharmaceuticals, Biotechnology & Life Sciences','Pharmaceuticals'),
'Life Sciences Tools & Services':('Health Care','Pharmaceuticals, Biotechnology & Life Sciences','Life Sciences Tools & Services'),
'Diversified Banks':('Financials','Banks','Banks'),
'Regional Banks':('Financials','Banks','Banks'),
'Thrifts & Mortgage Finance':('Financials','Banks','Thrifts & Mortgage Finance'),
'Other Diversified Financial Services':('Financials','Diversified Financials','Diversified Financial Services'),
'Multi-Sector Holdings':('Financials','Diversified Financials','Diversified Financial Services'),
'Specialized Finance':('Financials','Diversified Financials','Diversified Financial Services'),
'Consumer Finance':('Financials','Diversified Financials','Consumer Finance'),
'Asset Management & Custody Banks':('Financials','Diversified Financials','Capital Markets'),
'Investment Banking & Brokerage':('Financials','Diversified Financials','Capital Markets'),
'Diversified Capital Markets':('Financials','Diversified Financials','Capital Markets'),
'Financial Exchanges & Data':('Financials','Diversified Financials','Capital Markets'),
'Mortgage REITs':('Financials','Diversified Financials','Mortgage Real Estate Investment Trusts (REITs)'),
'Insurance Brokers':('Financials','Insurance','Insurance'),
'Life & Health Insurance':('Financials','Insurance','Insurance'),
'Multi-line Insurance':('Financials','Insurance','Insurance'),
'Property & Casualty Insurance':('Financials','Insurance','Insurance'),
'Reinsurance':('Financials','Insurance','Insurance'),
'IT Consulting & Other Services':('Information Technology','Software & Services','IT Services'),
'Data Processing & Outsourced Services':('Information Technology','Software & Services','IT Services'),
'Internet Services & Infrastructure':('Information Technology','Software & Services','IT Services'),
'Application Software':('Information Technology','Software & Services','Software'),
'Systems Software':('Information Technology','Software & Services','Software'),
'Communications Equipment':('Information Technology','Technology Hardware & Equipment','Communications Equipment'),
'Technology Hardware, Storage & Peripherals':('Information Technology','Technology Hardware & Equipment','Technology Hardware, Storage & Peripherals'),
'Electronic Equipment & Instruments':('Information Technology','Technology Hardware & Equipment','Electronic Equipment, Instruments & Components'),
'Electronic Components':('Information Technology','Technology Hardware & Equipment','Electronic Equipment, Instruments & Components'),
'Electronic Manufacturing Services':('Information Technology','Technology Hardware & Equipment','Electronic Equipment, Instruments & Components'),
'Technology Distributors':('Information Technology','Technology Hardware & Equipment','Electronic Equipment, Instruments & Components'),
'Semiconductor Equipment':('Information Technology','Semiconductors & Semiconductor Equipment','Semiconductors & Semiconductor Equipment'),
'Semiconductors':('Information Technology','Semiconductors & Semiconductor Equipment','Semiconductors & Semiconductor Equipment'),
'Alternative Carriers':('Communication Services','Communication Services','Diversified Telecommunication Services'),
'Integrated Telecommunication Services':('Communication Services','Communication Services','Diversified Telecommunication Services'),
'Wireless Telecommunication Services':('Communication Services','Communication Services','Wireless Telecommunication Services'),
'Advertising':('Communication Services','Media & Entertainment','Media'),
'Broadcasting':('Communication Services','Media & Entertainment','Media'),
'Cable & Satellite':('Communication Services','Media & Entertainment','Media'),
'Publishing':('Communication Services','Media & Entertainment','Media'),
'Movies & Entertainment':('Communication Services','Media & Entertainment','Entertainment'),
'Interactive Home Entertainment':('Communication Services','Media & Entertainment','Entertainment'),
'Interactive Media & Services':('Communication Services','Media & Entertainment','Interactive Media & Services'),
'Electric Utilities':('Utilities','Utilities','Electric Utilities'),
'Gas Utilities':('Utilities','Utilities','Gas Utilities'),
'Multi-Utilities':('Utilities','Utilities','Multi-Utilities'),
'Water Utilities':('Utilities','Utilities','Water Utilities'),
'Independent Power Producers & Energy Traders':('Utilities','Utilities','Independent Power and Renewable Electricity Producers'),
'Renewable Electricity':('Utilities','Utilities','Independent Power and Renewable Electricity Producers'),
'Diversified REITs':('Real Estate','Real Estate','Equity Real Estate Investment Trusts (REITs)'),
'Industrial REITs':('Real Estate','Real Estate','Equity Real Estate Investment Trusts (REITs)'),
'Hotel & Resort REITs':('Real Estate','Real Estate','Equity Real Estate Investment Trusts (REITs)'),
'Office REITs':('Real Estate','Real Estate','Equity Real Estate Investment Trusts (REITs)'),
'Health Care REITs':('Real Estate','Real Estate','Equity Real Estate Investment Trusts (REITs)'),
'Residential REITs':('Real Estate','Real Estate','Equity Real Estate Investment Trusts (REITs)'),
'Retail REITs':('Real Estate','Real Estate','Equity Real Estate Investment Trusts (REITs)'),
'Specialized REITs':('Real Estate','Real Estate','Equity Real Estate Investment Trusts (REITs)'),
'Diversified Real Estate Activities':('Real Estate','Real Estate','Real Estate Management & Development'),
'Real Estate Operating Companies':('Real Estate','Real Estate','Real Estate Management & Development'),
'Real Estate Development':('Real Estate','Real Estate','Real Estate Management & Development'),
'Real Estate Services':('Real Estate','Real Estate','Real Estate Management & Development'),
},
}
|
sectmap = {'commodity_sector_mappings': {'&6A_CCB': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'AUD'), '&6B_CCB': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'GBP'), '&6C_CCB': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'CAD'), '&6E_CCB': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'EUR'), '&6J_CCB': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'JPY'), '&6M_CCB': ('Currencies', 'EM Currencies', 'EM Currencies', 'EM Currencies', 'MXN'), '&6N_CCB': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'NZD'), '&6S_CCB': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'CHF'), '&AFB_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Eastern Australia Feed Barley'), '&AWM_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Eastern Australia Wheat'), '&BAX_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Canadian Bankers Acceptance'), '&BRN_CCB': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Brent Crude Oil'), '&BTC_CCB': ('Currencies', 'Crypto Currencies', 'Crypto Currencies', 'Crypto Currencies', 'Bitcoin'), '&CC_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Cocoa'), '&CGB_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Canadian 10y'), '&CL_CCB': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil - Light Sweet'), '&CT_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Cotton #2'), '&DC_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Milk - Class III'), '&DX_CCB': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'Benchmark'), '&EH_CCB': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Ethanol'), '&EMD_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'S&P MidCap 400 E-mini'), '&ES_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'S&P 500 E-mini'), '&EUA_CCB': ('Commodities', 'Energy', 'Energy', 'Energy', 'EUA (Carbon Emissions)'), '&FBTP_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-BTP Long Term'), '&FCE_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'CAC 40'), '&FDAX_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'DAX'), '&FDAX9_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'DAX'), '&FESX_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'EURO STOXX 50'), '&FESX9_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'EURO STOXX 50'), '&FGBL_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-Bund - 10 Yr'), '&FGBM_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-Bobl - 5 Yr'), '&FGBS_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-Schatz - 2 Yr'), '&FGBX_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-Buxl - 30 Yr'), '&FOAT_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro-OAT Continuous Contract'), '&FOAT9_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro-OAT(L) Continuous Contract'), '&FSMI_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Swiss Market Index'), '&FTDX_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'TecDAX'), '&GAS_CCB': ('Commodities', 'Energy', 'Energy', 'Energy', 'Gas Oil'), '&GC_CCB': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), '&GD_CCB': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '&GE_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Eurodollar'), '&GF_CCB': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Feeder Cattle'), '&GWM_CCB': ('Commodities', 'Energy', 'Energy', 'Energy', 'UK Natural Gas'), '&HE_CCB': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Lean Hogs'), '&HG_CCB': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), '&HO_CCB': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'NY Harbor ULSD'), '&HSI_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Hang Seng Index'), '&HTW_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'MSCI Taiwan Index'), '&KC_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Coffee C'), '&KE_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'KC HRW Wheat'), '&KOS_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'KOSPI 200'), '&LBS_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Lumber'), '&LCC_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'London Cocoa'), '&LE_CCB': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Live Cattle'), '&LES_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro Swiss'), '&LEU_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euribor'), '&LEU9_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euribor'), '&LFT_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'FTSE 100'), '&LFT9_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'FTSE 100'), '&LLG_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Long Gilt'), '&LRC_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Robusta Coffee'), '&LSS_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Short Sterling'), '&LSU_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'White Sugar'), '&LWB_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Feed Wheat'), '&MHI_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Hang Seng Index'), '&MWE_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Hard Red Spring Wheat'), '&NG_CCB': ('Commodities', 'Energy', 'Energy', 'Energy', 'Henry Hub Natural Gas'), '&NIY_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Nikkei 225'), '&NKD_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Nikkei 225'), '&NQ_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Nasdaq-100 - E-mini'), '&OJ_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Frozen Concentrated Orange Juice'), '&PA_CCB': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), '&PL_CCB': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), '&RB_CCB': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'RBOB Gasoline'), '&RS_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Canola'), '&RTY_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Russell 2000 - E-mini'), '&SB_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Sugar No. 11'), '&SCN_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'FTSE China A50 Index'), '&SI_CCB': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), '&SIN_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'SGX Nifty 50 Index'), '&SJB_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Japanese Govt Bond - Mini'), '&SNK_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Nikkei 225'), '&SP_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'S&P 500'), '&SR3_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', '3M SOFR Continuous Contract'), '&SSG_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'MSCI Singapore Index'), '&STW_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'MSCI Taiwan Index'), '&SXF_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'S&P/TSX 60 Index'), '&TN_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Ultra 10 Year U.S. T-Note'), '&UB_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Ultra U.S. T-Bond'), '&VX_CCB': ('Volatility', 'Volatility', 'Volatility', 'Volatility', 'Cboe Volatility Index'), '&WBS_CCB': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'WTI Crude Oil'), '&YAP_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'ASX SPI 200'), '&YAP4_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'ASX SPI 200'), '&YAP10_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'ASX SPI 200'), '&YG_CCB': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold - Mini'), '&YI_CCB': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver - Mini'), '&YIB_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'ASX 30 Day Interbank Cash Rate'), '&YIR_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'ASX 90 Day Bank Accepted Bills'), '&YM_CCB': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'E-mini Dow'), '&YXT_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'ASX 10 Year Treasury Bond'), '&YYT_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'ASX 3 Year Treasury Bond'), '&ZB_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'U.S. T-Bond'), '&ZC_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Corn'), '&ZF_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', '5-Year US T-Note'), '&ZG_CCB': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), '&ZI_CCB': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), '&ZL_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Soybean Oil'), '&ZM_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Soybean Meal'), '&ZN_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', '10-Year US T-Note'), '&ZO_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Oats'), '&ZQ_CCB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', '30 Day Federal Funds'), '&ZR_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Rough Rice'), '&ZS_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Soybeans'), '&ZT_CCB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', '2-Year US T-Note'), '&ZW_CCB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Chicago SRW Wheat'), '&6A': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'AUD'), '&6B': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'GBP'), '&6C': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'CAD'), '&6E': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'EUR'), '&6J': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'JPY'), '&6M': ('Currencies', 'EM Currencies', 'EM Currencies', 'EM Currencies', 'MXN'), '&6N': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'NZD'), '&6S': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'CHF'), '&AFB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Eastern Australia Feed Barley'), '&AWM': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Eastern Australia Wheat'), '&BAX': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Canadian Bankers Acceptance'), '&BRN': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Brent Crude Oil'), '&BTC': ('Currencies', 'Crypto Currencies', 'Crypto Currencies', 'Crypto Currencies', 'Bitcoin'), '&CC': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Cocoa'), '&CGB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Canadian 10y'), '&CL': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil - Light Sweet'), '&CT': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Cotton #2'), '&DC': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Milk - Class III'), '&DX': ('Currencies', 'G10 Currencies', 'G10 Currencies', 'G10 Currencies', 'Benchmark'), '&EH': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Ethanol'), '&EMD': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'S&P MidCap 400 E-mini'), '&ES': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'S&P 500 E-mini'), '&EUA': ('Commodities', 'Energy', 'Energy', 'Energy', 'EUA (Carbon Emissions)'), '&FBTP': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-BTP Long Term'), '&FCE': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'CAC 40'), '&FDAX': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'DAX'), '&FDAX9': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'DAX'), '&FESX': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'EURO STOXX 50'), '&FESX9': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'EURO STOXX 50'), '&FGBL': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-Bund - 10 Yr'), '&FGBM': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-Bobl - 5 Yr'), '&FGBS': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-Schatz - 2 Yr'), '&FGBX': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Euro-Buxl - 30 Yr'), '&FOAT': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro-OAT Continuous Contract'), '&FOAT9': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro-OAT(L) Continuous Contract'), '&FSMI': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Swiss Market Index'), '&FTDX': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'TecDAX'), '&GAS': ('Commodities', 'Energy', 'Energy', 'Energy', 'Gas Oil'), '&GC': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), '&GD': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '&GE': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Eurodollar'), '&GF': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Feeder Cattle'), '&GWM': ('Commodities', 'Energy', 'Energy', 'Energy', 'UK Natural Gas'), '&HE': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Lean Hogs'), '&HG': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), '&HO': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'NY Harbor ULSD'), '&HSI': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Hang Seng Index'), '&HTW': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'MSCI Taiwan Index'), '&KC': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Coffee C'), '&KE': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'KC HRW Wheat'), '&KOS': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'KOSPI 200'), '&LBS': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Lumber'), '&LCC': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'London Cocoa'), '&LE': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Live Cattle'), '&LES': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euro Swiss'), '&LEU': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euribor'), '&LEU9': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Euribor'), '&LFT': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'FTSE 100'), '&LFT9': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'FTSE 100'), '&LLG': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Long Gilt'), '&LRC': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Robusta Coffee'), '&LSS': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'Short Sterling'), '&LSU': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'White Sugar'), '&LWB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Feed Wheat'), '&MHI': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Hang Seng Index'), '&MWE': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Hard Red Spring Wheat'), '&NG': ('Commodities', 'Energy', 'Energy', 'Energy', 'Henry Hub Natural Gas'), '&NIY': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Nikkei 225'), '&NKD': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Nikkei 225'), '&NQ': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Nasdaq-100 - E-mini'), '&OJ': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Frozen Concentrated Orange Juice'), '&PA': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), '&PL': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), '&RB': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'RBOB Gasoline'), '&RS': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Canola'), '&RTY': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Russell 2000 - E-mini'), '&SB': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Sugar No. 11'), '&SCN': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'FTSE China A50 Index'), '&SI': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), '&SIN': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'SGX Nifty 50 Index'), '&SJB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Japanese Govt Bond - Mini'), '&SNK': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'Nikkei 225'), '&SP': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'S&P 500'), '&SR3': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', '3M SOFR Continuous Contract'), '&SSG': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'MSCI Singapore Index'), '&STW': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'MSCI Taiwan Index'), '&SXF': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'S&P/TSX 60 Index'), '&TN': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Ultra 10 Year U.S. T-Note'), '&UB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'Ultra U.S. T-Bond'), '&VX': ('Volatility', 'Volatility', 'Volatility', 'Volatility', 'Cboe Volatility Index'), '&WBS': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'WTI Crude Oil'), '&YAP': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'ASX SPI 200'), '&YAP4': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'ASX SPI 200'), '&YAP10': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'ASX SPI 200'), '&YG': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold - Mini'), '&YI': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver - Mini'), '&YIB': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'ASX 30 Day Interbank Cash Rate'), '&YIR': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', 'ASX 90 Day Bank Accepted Bills'), '&YM': ('Equity Indices', 'Equity Indices', 'Equity Indices', 'Equity Indices', 'E-mini Dow'), '&YXT': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'ASX 10 Year Treasury Bond'), '&YYT': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'ASX 3 Year Treasury Bond'), '&ZB': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', 'U.S. T-Bond'), '&ZC': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Corn'), '&ZF': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', '5-Year US T-Note'), '&ZG': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), '&ZI': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), '&ZL': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Soybean Oil'), '&ZM': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Soybean Meal'), '&ZN': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', '10-Year US T-Note'), '&ZO': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Oats'), '&ZQ': ('Interest Rates', 'Interest Rates', 'Interest Rates', 'Interest Rates', '30 Day Federal Funds'), '&ZR': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Rough Rice'), '&ZS': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Soybeans'), '&ZT': ('Bonds', 'Government Bonds', 'Government Bonds', 'Government Bonds', '2-Year US T-Note'), '&ZW': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Chicago SRW Wheat'), '#GSR': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Benchmark'), '$BCOM': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$BCOMAG': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Agriculture', 'Benchmark'), '$BCOMEN': ('Commodities', 'Energy', 'Energy', 'Energy', 'Benchmark'), '$BCOMGR': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Benchmark'), '$BCOMIN': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Benchmark'), '$BCOMLI': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Benchmark'), '$BCOMPE': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Benchmark'), '$BCOMPR': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Benchmark'), '$BCOMSO': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Softs', 'Benchmark'), '$BCOMTR': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$BCOMXE': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$CRB': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$FC': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Feeder Cattle'), '$LH': ('Commodities', 'Diversified Agriculture', 'Livestock', 'Livestock', 'Lean Hogs'), '$LMEX': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Benchmark'), '$RBABCA': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$RBABCU': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$RBABMA': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Benchmark'), '$RBABMU': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Benchmark'), '$RBACPA': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$RBACPU': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$RBANRCPA': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$RBANRCPU': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$RBARCPA': ('Commodities', 'Diversified Agriculture', 'Diversified Agriculture', 'Diversified Agriculture', 'Benchmark'), '$RBARCPU': ('Commodities', 'Diversified Agriculture', 'Diversified Agriculture', 'Diversified Agriculture', 'Benchmark'), '$SPGSCI': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$SPGSCITR': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$SPGSEW': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '$SPGSEWTR': ('Commodities', 'Commodities', 'Commodities', 'Commodities', 'Benchmark'), '@AA': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@AA03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@AAWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@AL': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@AL03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@ALAUD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@ALCAD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@ALWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@BFOE': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil'), '@C2Y': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Corn'), '@CO': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Cobalt'), '@CO03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Cobalt'), '@CO15S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Cobalt'), '@COWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Cobalt'), '@CU': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), '@CU03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), '@CUAUD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), '@CUCAD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), '@CUWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Copper'), '@FE': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Iron Ore'), '@FEAUD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Iron Ore'), '@FECAD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Iron Ore'), '@GC': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Gold'), '@HHNG': ('Commodities', 'Energy', 'Energy', 'Energy', 'Natural Gas'), '@HO': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Heating Oil'), '@NA': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@NA03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@NAWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Aluminium'), '@NI': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), '@NI03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), '@NIAUD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), '@NICAD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), '@NIWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Nickel'), '@PA': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), '@PAAUD': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), '@PACAD': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Palladium'), '@PB': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), '@PB03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), '@PBAUD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), '@PBCAD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), '@PBWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Lead'), '@PL': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), '@PLAUD': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), '@PLCAD': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Platinum'), '@RBOB': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'RBOB Gasoline'), '@S1Y': ('Commodities', 'Diversified Agriculture', 'Agriculture', 'Grains', 'Soybeans'), '@SI': ('Commodities', 'Metals', 'Precious Metals', 'Precious Metals', 'Silver'), '@SN': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), '@SN03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), '@SN15S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), '@SNAUD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), '@SNCAD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), '@SNWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Tin'), '@U3O8': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Uranium'), '@U3O8AUD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Uranium'), '@U3O8CAD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Uranium'), '@WTI': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil'), '@WTIAUD': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil'), '@WTICAD': ('Commodities', 'Energy', 'Petroleum', 'Petroleum', 'Crude Oil'), '@YCX': ('Commodities', 'Energy', 'Energy', 'Energy', 'Thermal Coal'), '@YCXAUD': ('Commodities', 'Energy', 'Energy', 'Energy', 'Thermal Coal'), '@YCXCAD': ('Commodities', 'Energy', 'Energy', 'Energy', 'Thermal Coal'), '@ZN': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), '@ZN03S': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), '@ZNAUD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), '@ZNCAD': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc'), '@ZNWS': ('Commodities', 'Metals', 'Industrial Metals', 'Industrial Metals', 'Zinc')}, 'equity_sector_mappings': {'Oil & Gas Drilling': ('Energy', 'Energy', 'Energy Equipment & Services'), 'Oil & Gas Equipment & Services': ('Energy', 'Energy', 'Energy Equipment & Services'), 'Integrated Oil & Gas': ('Energy', 'Energy', 'Oil, Gas & Consumable Fuels'), 'Oil & Gas Exploration & Production': ('Energy', 'Energy', 'Oil, Gas & Consumable Fuels'), 'Oil & Gas Refining & Marketing': ('Energy', 'Energy', 'Oil, Gas & Consumable Fuels'), 'Oil & Gas Storage & Transportation': ('Energy', 'Energy', 'Oil, Gas & Consumable Fuels'), 'Coal & Consumable Fuels': ('Energy', 'Energy', 'Oil, Gas & Consumable Fuels'), 'Commodity Chemicals': ('Materials', 'Materials', 'Chemicals'), 'Diversified Chemicals': ('Materials', 'Materials', 'Chemicals'), 'Fertilizers & Agricultural Chemicals': ('Materials', 'Materials', 'Chemicals'), 'Industrial Gases': ('Materials', 'Materials', 'Chemicals'), 'Specialty Chemicals': ('Materials', 'Materials', 'Chemicals'), 'Construction Materials': ('Materials', 'Materials', 'Construction Materials'), 'Metal & Glass Containers': ('Materials', 'Materials', 'Containers & Packaging'), 'Paper Packaging': ('Materials', 'Materials', 'Containers & Packaging'), 'Aluminum': ('Materials', 'Materials', 'Metals & Mining'), 'Diversified Metals & Mining': ('Materials', 'Materials', 'Metals & Mining'), 'Copper': ('Materials', 'Materials', 'Metals & Mining'), 'Gold': ('Materials', 'Materials', 'Metals & Mining'), 'Precious Metals & Minerals': ('Materials', 'Materials', 'Metals & Mining'), 'Silver': ('Materials', 'Materials', 'Metals & Mining'), 'Steel': ('Materials', 'Materials', 'Metals & Mining'), 'Forest Products': ('Materials', 'Materials', 'Paper & Forest Products'), 'Paper Products': ('Materials', 'Materials', 'Paper & Forest Products'), 'Aerospace & Defense': ('Industrials', 'Capital Goods', 'Aerospace & Defense'), 'Building Products': ('Industrials', 'Capital Goods', 'Building Products'), 'Construction & Engineering': ('Industrials', 'Capital Goods', 'Construction & Engineering'), 'Electrical Components & Equipment': ('Industrials', 'Capital Goods', 'Electrical Equipment'), 'Heavy Electrical Equipment': ('Industrials', 'Capital Goods', 'Electrical Equipment'), 'Industrial Conglomerates': ('Industrials', 'Capital Goods', 'Industrial Conglomerates'), 'Construction Machinery & Heavy Trucks': ('Industrials', 'Capital Goods', 'Machinery'), 'Agricultural & Farm Machinery': ('Industrials', 'Capital Goods', 'Machinery'), 'Industrial Machinery': ('Industrials', 'Capital Goods', 'Machinery'), 'Trading Companies & Distributors': ('Industrials', 'Capital Goods', 'Trading Companies & Distributors'), 'Commercial Printing': ('Industrials', 'Commercial & Professional Services', 'Commercial Services & Supplies'), 'Environmental & Facilities Services': ('Industrials', 'Commercial & Professional Services', 'Commercial Services & Supplies'), 'Office Services & Supplies': ('Industrials', 'Commercial & Professional Services', 'Commercial Services & Supplies'), 'Diversified Support Services': ('Industrials', 'Commercial & Professional Services', 'Commercial Services & Supplies'), 'Security & Alarm Services': ('Industrials', 'Commercial & Professional Services', 'Commercial Services & Supplies'), 'Human Resource & Employment Services': ('Industrials', 'Commercial & Professional Services', 'Professional Services'), 'Research & Consulting Services': ('Industrials', 'Commercial & Professional Services', 'Professional Services'), 'Air Freight & Logistics': ('Industrials', 'Transportation', 'Air Freight & Logistics'), 'Airlines': ('Industrials', 'Transportation', 'Airlines'), 'Marine': ('Industrials', 'Transportation', 'Marine'), 'Railroads': ('Industrials', 'Transportation', 'Road & Rail'), 'Trucking': ('Industrials', 'Transportation', 'Road & Rail'), 'Airport Services': ('Industrials', 'Transportation', 'Transportation Infrastructure'), 'Highways & Railtracks': ('Industrials', 'Transportation', 'Transportation Infrastructure'), 'Marine Ports & Services': ('Industrials', 'Transportation', 'Transportation Infrastructure'), 'Auto Parts & Equipment': ('Consumer Discretionary', 'Automobiles & Components', 'Auto Components'), 'Tires & Rubber': ('Consumer Discretionary', 'Automobiles & Components', 'Auto Components'), 'Automobile Manufacturers': ('Consumer Discretionary', 'Automobiles & Components', 'Automobiles'), 'Motorcycle Manufacturers': ('Consumer Discretionary', 'Automobiles & Components', 'Automobiles'), 'Consumer Electronics': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Household Durables'), 'Home Furnishings': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Household Durables'), 'Homebuilding': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Household Durables'), 'Household Appliances': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Household Durables'), 'Housewares & Specialties': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Household Durables'), 'Leisure Products': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Leisure Products'), 'Apparel, Accessories & Luxury Goods': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Textiles, Apparel & Luxury Goods'), 'Footwear': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Textiles, Apparel & Luxury Goods'), 'Textiles': ('Consumer Discretionary', 'Consumer Durables & Apparel', 'Textiles, Apparel & Luxury Goods'), 'Casinos & Gaming': ('Consumer Discretionary', 'Consumer Services', 'Hotels, Restaurants & Leisure'), 'Hotels, Resorts & Cruise Lines': ('Consumer Discretionary', 'Consumer Services', 'Hotels, Restaurants & Leisure'), 'Leisure Facilities': ('Consumer Discretionary', 'Consumer Services', 'Hotels, Restaurants & Leisure'), 'Restaurants': ('Consumer Discretionary', 'Consumer Services', 'Hotels, Restaurants & Leisure'), 'Education Services': ('Consumer Discretionary', 'Consumer Services', 'Diversified Consumer Services'), 'Specialized Consumer Services': ('Consumer Discretionary', 'Consumer Services', 'Diversified Consumer Services'), 'Distributors': ('Consumer Discretionary', 'Retailing', 'Distributors'), 'Internet & Direct Marketing Retail': ('Consumer Discretionary', 'Retailing', 'Internet & Direct Marketing Retail'), 'Department Stores': ('Consumer Discretionary', 'Retailing', 'Multiline Retail'), 'General Merchandise Stores': ('Consumer Discretionary', 'Retailing', 'Multiline Retail'), 'Apparel Retail': ('Consumer Discretionary', 'Retailing', 'Specialty Retail'), 'Computer & Electronics Retail': ('Consumer Discretionary', 'Retailing', 'Specialty Retail'), 'Home Improvement Retail': ('Consumer Discretionary', 'Retailing', 'Specialty Retail'), 'Specialty Stores': ('Consumer Discretionary', 'Retailing', 'Specialty Retail'), 'Automotive Retail': ('Consumer Discretionary', 'Retailing', 'Specialty Retail'), 'Homefurnishing Retail': ('Consumer Discretionary', 'Retailing', 'Specialty Retail'), 'Drug Retail': ('Consumer Staples', 'Food & Staples Retailing', 'Food & Staples Retailing'), 'Food Distributors': ('Consumer Staples', 'Food & Staples Retailing', 'Food & Staples Retailing'), 'Food Retail': ('Consumer Staples', 'Food & Staples Retailing', 'Food & Staples Retailing'), 'Hypermarkets & Super Centers': ('Consumer Staples', 'Food & Staples Retailing', 'Food & Staples Retailing'), 'Brewers': ('Consumer Staples', 'Food, Beverage & Tobacco', 'Beverages'), 'Distillers & Vintners': ('Consumer Staples', 'Food, Beverage & Tobacco', 'Beverages'), 'Soft Drinks': ('Consumer Staples', 'Food, Beverage & Tobacco', 'Beverages'), 'Agricultural Products': ('Consumer Staples', 'Food, Beverage & Tobacco', 'Food Products'), 'Packaged Foods & Meats': ('Consumer Staples', 'Food, Beverage & Tobacco', 'Food Products'), 'Tobacco': ('Consumer Staples', 'Food, Beverage & Tobacco', 'Tobacco'), 'Household Products': ('Consumer Staples', 'Household & Personal Products', 'Household Products'), 'Personal Products': ('Consumer Staples', 'Household & Personal Products', 'Personal Products'), 'Health Care Equipment': ('Health Care', 'Health Care Equipment & Services', 'Health Care Equipment & Supplies'), 'Health Care Supplies': ('Health Care', 'Health Care Equipment & Services', 'Health Care Equipment & Supplies'), 'Health Care Distributors': ('Health Care', 'Health Care Equipment & Services', 'Health Care Providers & Services'), 'Health Care Services': ('Health Care', 'Health Care Equipment & Services', 'Health Care Providers & Services'), 'Health Care Facilities': ('Health Care', 'Health Care Equipment & Services', 'Health Care Providers & Services'), 'Managed Health Care': ('Health Care', 'Health Care Equipment & Services', 'Health Care Providers & Services'), 'Health Care Technology': ('Health Care', 'Health Care Equipment & Services', 'Health Care Technology'), 'Biotechnology': ('Health Care', 'Pharmaceuticals, Biotechnology & Life Sciences', 'Biotechnology'), 'Pharmaceuticals': ('Health Care', 'Pharmaceuticals, Biotechnology & Life Sciences', 'Pharmaceuticals'), 'Life Sciences Tools & Services': ('Health Care', 'Pharmaceuticals, Biotechnology & Life Sciences', 'Life Sciences Tools & Services'), 'Diversified Banks': ('Financials', 'Banks', 'Banks'), 'Regional Banks': ('Financials', 'Banks', 'Banks'), 'Thrifts & Mortgage Finance': ('Financials', 'Banks', 'Thrifts & Mortgage Finance'), 'Other Diversified Financial Services': ('Financials', 'Diversified Financials', 'Diversified Financial Services'), 'Multi-Sector Holdings': ('Financials', 'Diversified Financials', 'Diversified Financial Services'), 'Specialized Finance': ('Financials', 'Diversified Financials', 'Diversified Financial Services'), 'Consumer Finance': ('Financials', 'Diversified Financials', 'Consumer Finance'), 'Asset Management & Custody Banks': ('Financials', 'Diversified Financials', 'Capital Markets'), 'Investment Banking & Brokerage': ('Financials', 'Diversified Financials', 'Capital Markets'), 'Diversified Capital Markets': ('Financials', 'Diversified Financials', 'Capital Markets'), 'Financial Exchanges & Data': ('Financials', 'Diversified Financials', 'Capital Markets'), 'Mortgage REITs': ('Financials', 'Diversified Financials', 'Mortgage Real Estate Investment Trusts (REITs)'), 'Insurance Brokers': ('Financials', 'Insurance', 'Insurance'), 'Life & Health Insurance': ('Financials', 'Insurance', 'Insurance'), 'Multi-line Insurance': ('Financials', 'Insurance', 'Insurance'), 'Property & Casualty Insurance': ('Financials', 'Insurance', 'Insurance'), 'Reinsurance': ('Financials', 'Insurance', 'Insurance'), 'IT Consulting & Other Services': ('Information Technology', 'Software & Services', 'IT Services'), 'Data Processing & Outsourced Services': ('Information Technology', 'Software & Services', 'IT Services'), 'Internet Services & Infrastructure': ('Information Technology', 'Software & Services', 'IT Services'), 'Application Software': ('Information Technology', 'Software & Services', 'Software'), 'Systems Software': ('Information Technology', 'Software & Services', 'Software'), 'Communications Equipment': ('Information Technology', 'Technology Hardware & Equipment', 'Communications Equipment'), 'Technology Hardware, Storage & Peripherals': ('Information Technology', 'Technology Hardware & Equipment', 'Technology Hardware, Storage & Peripherals'), 'Electronic Equipment & Instruments': ('Information Technology', 'Technology Hardware & Equipment', 'Electronic Equipment, Instruments & Components'), 'Electronic Components': ('Information Technology', 'Technology Hardware & Equipment', 'Electronic Equipment, Instruments & Components'), 'Electronic Manufacturing Services': ('Information Technology', 'Technology Hardware & Equipment', 'Electronic Equipment, Instruments & Components'), 'Technology Distributors': ('Information Technology', 'Technology Hardware & Equipment', 'Electronic Equipment, Instruments & Components'), 'Semiconductor Equipment': ('Information Technology', 'Semiconductors & Semiconductor Equipment', 'Semiconductors & Semiconductor Equipment'), 'Semiconductors': ('Information Technology', 'Semiconductors & Semiconductor Equipment', 'Semiconductors & Semiconductor Equipment'), 'Alternative Carriers': ('Communication Services', 'Communication Services', 'Diversified Telecommunication Services'), 'Integrated Telecommunication Services': ('Communication Services', 'Communication Services', 'Diversified Telecommunication Services'), 'Wireless Telecommunication Services': ('Communication Services', 'Communication Services', 'Wireless Telecommunication Services'), 'Advertising': ('Communication Services', 'Media & Entertainment', 'Media'), 'Broadcasting': ('Communication Services', 'Media & Entertainment', 'Media'), 'Cable & Satellite': ('Communication Services', 'Media & Entertainment', 'Media'), 'Publishing': ('Communication Services', 'Media & Entertainment', 'Media'), 'Movies & Entertainment': ('Communication Services', 'Media & Entertainment', 'Entertainment'), 'Interactive Home Entertainment': ('Communication Services', 'Media & Entertainment', 'Entertainment'), 'Interactive Media & Services': ('Communication Services', 'Media & Entertainment', 'Interactive Media & Services'), 'Electric Utilities': ('Utilities', 'Utilities', 'Electric Utilities'), 'Gas Utilities': ('Utilities', 'Utilities', 'Gas Utilities'), 'Multi-Utilities': ('Utilities', 'Utilities', 'Multi-Utilities'), 'Water Utilities': ('Utilities', 'Utilities', 'Water Utilities'), 'Independent Power Producers & Energy Traders': ('Utilities', 'Utilities', 'Independent Power and Renewable Electricity Producers'), 'Renewable Electricity': ('Utilities', 'Utilities', 'Independent Power and Renewable Electricity Producers'), 'Diversified REITs': ('Real Estate', 'Real Estate', 'Equity Real Estate Investment Trusts (REITs)'), 'Industrial REITs': ('Real Estate', 'Real Estate', 'Equity Real Estate Investment Trusts (REITs)'), 'Hotel & Resort REITs': ('Real Estate', 'Real Estate', 'Equity Real Estate Investment Trusts (REITs)'), 'Office REITs': ('Real Estate', 'Real Estate', 'Equity Real Estate Investment Trusts (REITs)'), 'Health Care REITs': ('Real Estate', 'Real Estate', 'Equity Real Estate Investment Trusts (REITs)'), 'Residential REITs': ('Real Estate', 'Real Estate', 'Equity Real Estate Investment Trusts (REITs)'), 'Retail REITs': ('Real Estate', 'Real Estate', 'Equity Real Estate Investment Trusts (REITs)'), 'Specialized REITs': ('Real Estate', 'Real Estate', 'Equity Real Estate Investment Trusts (REITs)'), 'Diversified Real Estate Activities': ('Real Estate', 'Real Estate', 'Real Estate Management & Development'), 'Real Estate Operating Companies': ('Real Estate', 'Real Estate', 'Real Estate Management & Development'), 'Real Estate Development': ('Real Estate', 'Real Estate', 'Real Estate Management & Development'), 'Real Estate Services': ('Real Estate', 'Real Estate', 'Real Estate Management & Development')}}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.