content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
class LexStatusCodes:
LA_OK = 0
LA_FAIL = 1
LA_EXPIRED = 20
LA_SUSPENDED = 21
LA_GRACE_PERIOD_OVER = 22
LA_TRIAL_EXPIRED = 25
LA_LOCAL_TRIAL_EXPIRED = 26
LA_RELEASE_UPDATE_AVAILABLE = 30
LA_RELEASE_NO_UPDATE_AVAILABLE = 31
LA_E_FILE_PATH = 40
LA_E_PRODUCT_FILE = 41
LA_E_PRODUCT_DATA = 42
LA_E_PRODUCT_ID = 43
LA_E_SYSTEM_PERMISSION = 44
LA_E_FILE_PERMISSION = 45
LA_E_WMIC = 46
LA_E_TIME = 47
LA_E_INET = 48
LA_E_NET_PROXY = 49
LA_E_HOST_URL = 50
LA_E_BUFFER_SIZE = 51
LA_E_APP_VERSION_LENGTH = 52
LA_E_REVOKED = 53
LA_E_LICENSE_KEY = 54
LA_E_LICENSE_TYPE = 55
LA_E_OFFLINE_RESPONSE_FILE = 56
LA_E_OFFLINE_RESPONSE_FILE_EXPIRED = 57
LA_E_ACTIVATION_LIMIT = 58
LA_E_ACTIVATION_NOT_FOUND = 59
LA_E_DEACTIVATION_LIMIT = 60
LA_E_TRIAL_NOT_ALLOWED = 61
LA_E_TRIAL_ACTIVATION_LIMIT = 62
LA_E_MACHINE_FINGERPRINT = 63
LA_E_METADATA_KEY_LENGTH = 64
LA_E_METADATA_VALUE_LENGTH = 65
LA_E_ACTIVATION_METADATA_LIMIT = 66
LA_E_TRIAL_ACTIVATION_METADATA_LIMIT = 67
LA_E_METADATA_KEY_NOT_FOUND = 68
LA_E_TIME_MODIFIED = 69
LA_E_RELEASE_VERSION_FORMAT = 70
LA_E_AUTHENTICATION_FAILED = 71
LA_E_METER_ATTRIBUTE_NOT_FOUND = 72
LA_E_METER_ATTRIBUTE_USES_LIMIT_REACHED = 73
LA_E_CUSTOM_FINGERPRINT_LENGTH = 74
LA_E_VM = 80
LA_E_COUNTRY = 81
LA_E_IP = 82
LA_E_RATE_LIMIT = 90
LA_E_SERVER = 91
LA_E_CLIENT = 92
| class Lexstatuscodes:
la_ok = 0
la_fail = 1
la_expired = 20
la_suspended = 21
la_grace_period_over = 22
la_trial_expired = 25
la_local_trial_expired = 26
la_release_update_available = 30
la_release_no_update_available = 31
la_e_file_path = 40
la_e_product_file = 41
la_e_product_data = 42
la_e_product_id = 43
la_e_system_permission = 44
la_e_file_permission = 45
la_e_wmic = 46
la_e_time = 47
la_e_inet = 48
la_e_net_proxy = 49
la_e_host_url = 50
la_e_buffer_size = 51
la_e_app_version_length = 52
la_e_revoked = 53
la_e_license_key = 54
la_e_license_type = 55
la_e_offline_response_file = 56
la_e_offline_response_file_expired = 57
la_e_activation_limit = 58
la_e_activation_not_found = 59
la_e_deactivation_limit = 60
la_e_trial_not_allowed = 61
la_e_trial_activation_limit = 62
la_e_machine_fingerprint = 63
la_e_metadata_key_length = 64
la_e_metadata_value_length = 65
la_e_activation_metadata_limit = 66
la_e_trial_activation_metadata_limit = 67
la_e_metadata_key_not_found = 68
la_e_time_modified = 69
la_e_release_version_format = 70
la_e_authentication_failed = 71
la_e_meter_attribute_not_found = 72
la_e_meter_attribute_uses_limit_reached = 73
la_e_custom_fingerprint_length = 74
la_e_vm = 80
la_e_country = 81
la_e_ip = 82
la_e_rate_limit = 90
la_e_server = 91
la_e_client = 92 |
DEBUG=True
DEBUG_EXTRACT=True
DEBUG_ROOIBOS=True
DEBUG_PATCH_LOCATIONS=True
DEBUG_RESOLVE_DYNLIB=True
DEBUG_ADDR2LINE=True
DEBUG_PATCHING=True
DEBUG_LTRACE=False
DEBUG_FIND=True
TEST=True
| debug = True
debug_extract = True
debug_rooibos = True
debug_patch_locations = True
debug_resolve_dynlib = True
debug_addr2_line = True
debug_patching = True
debug_ltrace = False
debug_find = True
test = True |
# -----------------------------------------------------------------------------
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# -----------------------------------------------------------------------------
class Console():
"""
A class that represents the EV3 LCD console, which implements ANSI codes
for cursor positioning, text color, and resetting the screen. Supports changing
the console font using standard system fonts.
"""
def __init__(self, font="Lat15-TerminusBold24x12"):
"""
Construct the Console instance, optionally with a font name specified.
Parameter:
- ``font`` (string): Font name, as found in ``/usr/share/consolefonts/``
"""
pass
@property
def columns(self):
"""
Return (int) number of columns on the EV3 LCD console supported by the current font.
"""
pass
@property
def rows(self):
"""
Return (int) number of rows on the EV3 LCD console supported by the current font.
"""
pass
@property
def echo(self):
"""
Return (bool) whether the console echo mode is enabled.
"""
pass
@echo.setter
def echo(self, value):
"""
Enable/disable console echo (so that EV3 button presses do not show the escape characters on
the LCD console). Set to True to show the button codes, or False to hide them.
"""
pass
@property
def cursor(self):
"""
Return (bool) whether the console cursor is visible.
"""
pass
@cursor.setter
def cursor(self, value):
"""
Enable/disable console cursor (to hide the cursor on the LCD).
Set to True to show the cursor, or False to hide it.
"""
pass
def text_at(self, text, column=1, row=1, reset_console=False, inverse=False, alignment="L"):
"""
Display ``text`` (string) at grid position (``column``, ``row``).
Note that the grid locations are 1-based (not 0-based).
Depending on the font, the number of columns and rows supported by the EV3 LCD console
can vary. Large fonts support as few as 11 columns and 4 rows, while small fonts support
44 columns and 21 rows. The default font for the Console() class results in a grid that
is 14 columns and 5 rows.
Using the ``inverse=True`` parameter will display the ``text`` with more emphasis and contrast,
as the background of the text will be black, and the foreground is white. Using inverse
can help in certain situations, such as to indicate when a color sensor senses
black, or the gyro sensor is pointing to zero.
Use the ``alignment`` parameter to enable the function to align the ``text`` differently to the
column/row values passed-in. Use ``L`` for left-alignment (default), where the first character
in the ``text`` will show at the column/row position. Use ``R`` for right-alignment, where the
last character will show at the column/row position. Use ``C`` for center-alignment, where the
text string will centered at the column/row position (as close as possible using integer
division--odd-length text string will center better than even-length).
Parameters:
- ``text`` (string): Text to display
- ``column`` (int): LCD column position to start the text (1 = left column);
text will wrap when it reaches the right edge
- ``row`` (int): LCD row position to start the text (1 = top row)
- ``reset_console`` (bool): ``True`` to reset the EV3 LCD console before showing
the text; default is ``False``
- ``inverse`` (bool): ``True`` for white on black, otherwise black on white;
default is ``False``
- ``alignment`` (string): Align the ``text`` horizontally. Use ``L`` for left-alignment (default),
``R`` for right-alignment, or ``C`` for center-alignment
"""
pass
def set_font(self, font="Lat15-TerminusBold24x12", reset_console=True):
"""
Set the EV3 LCD console font and optionally reset the EV3 LCD console
to clear it and turn off the cursor.
Parameters:
- ``font`` (string): Font name, as found in ``/usr/share/consolefonts/``
- ``reset_console`` (bool): ``True`` to reset the EV3 LCD console
after the font change; default is ``True``
"""
pass
def clear_to_eol(self, column=None, row=None):
"""
Clear to the end of line from the ``column`` and ``row`` position
on the EV3 LCD console. Default to current cursor position.
Parameters:
- ``column`` (int): LCD column position to move to before clearing
- ``row`` (int): LCD row position to move to before clearing
"""
pass
def reset_console(self):
"""
Clear the EV3 LCD console using ANSI codes, and move the cursor to 1,1
"""
pass
| class Console:
"""
A class that represents the EV3 LCD console, which implements ANSI codes
for cursor positioning, text color, and resetting the screen. Supports changing
the console font using standard system fonts.
"""
def __init__(self, font='Lat15-TerminusBold24x12'):
"""
Construct the Console instance, optionally with a font name specified.
Parameter:
- ``font`` (string): Font name, as found in ``/usr/share/consolefonts/``
"""
pass
@property
def columns(self):
"""
Return (int) number of columns on the EV3 LCD console supported by the current font.
"""
pass
@property
def rows(self):
"""
Return (int) number of rows on the EV3 LCD console supported by the current font.
"""
pass
@property
def echo(self):
"""
Return (bool) whether the console echo mode is enabled.
"""
pass
@echo.setter
def echo(self, value):
"""
Enable/disable console echo (so that EV3 button presses do not show the escape characters on
the LCD console). Set to True to show the button codes, or False to hide them.
"""
pass
@property
def cursor(self):
"""
Return (bool) whether the console cursor is visible.
"""
pass
@cursor.setter
def cursor(self, value):
"""
Enable/disable console cursor (to hide the cursor on the LCD).
Set to True to show the cursor, or False to hide it.
"""
pass
def text_at(self, text, column=1, row=1, reset_console=False, inverse=False, alignment='L'):
"""
Display ``text`` (string) at grid position (``column``, ``row``).
Note that the grid locations are 1-based (not 0-based).
Depending on the font, the number of columns and rows supported by the EV3 LCD console
can vary. Large fonts support as few as 11 columns and 4 rows, while small fonts support
44 columns and 21 rows. The default font for the Console() class results in a grid that
is 14 columns and 5 rows.
Using the ``inverse=True`` parameter will display the ``text`` with more emphasis and contrast,
as the background of the text will be black, and the foreground is white. Using inverse
can help in certain situations, such as to indicate when a color sensor senses
black, or the gyro sensor is pointing to zero.
Use the ``alignment`` parameter to enable the function to align the ``text`` differently to the
column/row values passed-in. Use ``L`` for left-alignment (default), where the first character
in the ``text`` will show at the column/row position. Use ``R`` for right-alignment, where the
last character will show at the column/row position. Use ``C`` for center-alignment, where the
text string will centered at the column/row position (as close as possible using integer
division--odd-length text string will center better than even-length).
Parameters:
- ``text`` (string): Text to display
- ``column`` (int): LCD column position to start the text (1 = left column);
text will wrap when it reaches the right edge
- ``row`` (int): LCD row position to start the text (1 = top row)
- ``reset_console`` (bool): ``True`` to reset the EV3 LCD console before showing
the text; default is ``False``
- ``inverse`` (bool): ``True`` for white on black, otherwise black on white;
default is ``False``
- ``alignment`` (string): Align the ``text`` horizontally. Use ``L`` for left-alignment (default),
``R`` for right-alignment, or ``C`` for center-alignment
"""
pass
def set_font(self, font='Lat15-TerminusBold24x12', reset_console=True):
"""
Set the EV3 LCD console font and optionally reset the EV3 LCD console
to clear it and turn off the cursor.
Parameters:
- ``font`` (string): Font name, as found in ``/usr/share/consolefonts/``
- ``reset_console`` (bool): ``True`` to reset the EV3 LCD console
after the font change; default is ``True``
"""
pass
def clear_to_eol(self, column=None, row=None):
"""
Clear to the end of line from the ``column`` and ``row`` position
on the EV3 LCD console. Default to current cursor position.
Parameters:
- ``column`` (int): LCD column position to move to before clearing
- ``row`` (int): LCD row position to move to before clearing
"""
pass
def reset_console(self):
"""
Clear the EV3 LCD console using ANSI codes, and move the cursor to 1,1
"""
pass |
class GuacamoleConfiguration(object):
def __init__(self, protocol=None):
self.connectionID = None
self.protocol = protocol
self.parameters = {}
@property
def connectionID(self):
return self._connectionID
@connectionID.setter
def connectionID(self, connectionID):
self._connectionID = connectionID
@property
def protocol(self):
return self._protocol
@protocol.setter
def protocol(self, protocol):
self._protocol = protocol
@property
def parameters(self):
return self._parameters
@parameters.setter
def parameters(self, parameters):
self._parameters = parameters
def getParameter(self, paramName):
return self._parameters.get(paramName, None)
def delParameter(self, paramName):
del self._parameters[paramName]
def setParameter(self, paramName, paramValue):
self._parameters[paramName] = paramValue
| class Guacamoleconfiguration(object):
def __init__(self, protocol=None):
self.connectionID = None
self.protocol = protocol
self.parameters = {}
@property
def connection_id(self):
return self._connectionID
@connectionID.setter
def connection_id(self, connectionID):
self._connectionID = connectionID
@property
def protocol(self):
return self._protocol
@protocol.setter
def protocol(self, protocol):
self._protocol = protocol
@property
def parameters(self):
return self._parameters
@parameters.setter
def parameters(self, parameters):
self._parameters = parameters
def get_parameter(self, paramName):
return self._parameters.get(paramName, None)
def del_parameter(self, paramName):
del self._parameters[paramName]
def set_parameter(self, paramName, paramValue):
self._parameters[paramName] = paramValue |
a, b, c = input().split(" ")
a = float(a)
b = float(b)
c = float(c)
if a >= b and a >= c:
n1 = a
if b >= c:
n2 = b
n3 = c
else:
n2 = c
n3 = b
if b >= a and b >= c:
n1 = b
if a >= c:
n2 = a
n3 = c
else:
n2 = c
n3 = a
if c >= a and c >= b:
n1 = c
if a >= b:
n2 = a
n3 = b
else:
n2 = b
n3 = a
if a == b and b == c:
n1 = a
n2 = b
n3 = c
a = n1
b = n2
c = n3
if a >= (b + c):
print('NAO FORMA TRIANGULO')
else:
if (a ** 2) == (b ** 2 + c ** 2):
print('TRIANGULO RETANGULO')
if (a ** 2) > (b ** 2 + c ** 2):
print('TRIANGULO OBTUSANGULO')
if (a ** 2) < (b ** 2 + c ** 2):
print('TRIANGULO ACUTANGULO')
if a == b == c:
print('TRIANGULO EQUILATERO')
if a == b != c or b == c != a or a == c != b:
print('TRIANGULO ISOSCELES') | (a, b, c) = input().split(' ')
a = float(a)
b = float(b)
c = float(c)
if a >= b and a >= c:
n1 = a
if b >= c:
n2 = b
n3 = c
else:
n2 = c
n3 = b
if b >= a and b >= c:
n1 = b
if a >= c:
n2 = a
n3 = c
else:
n2 = c
n3 = a
if c >= a and c >= b:
n1 = c
if a >= b:
n2 = a
n3 = b
else:
n2 = b
n3 = a
if a == b and b == c:
n1 = a
n2 = b
n3 = c
a = n1
b = n2
c = n3
if a >= b + c:
print('NAO FORMA TRIANGULO')
else:
if a ** 2 == b ** 2 + c ** 2:
print('TRIANGULO RETANGULO')
if a ** 2 > b ** 2 + c ** 2:
print('TRIANGULO OBTUSANGULO')
if a ** 2 < b ** 2 + c ** 2:
print('TRIANGULO ACUTANGULO')
if a == b == c:
print('TRIANGULO EQUILATERO')
if a == b != c or b == c != a or a == c != b:
print('TRIANGULO ISOSCELES') |
def only_numbers(input_list):
integers_list = [list_entry for list_entry in input_list if type(list_entry) == int]
return integers_list
print(only_numbers([99, 'no data', 95, 93, 'no data']))
def only_numbers_greater_zero(input_list):
integers_list = [list_entry for list_entry in input_list if list_entry > 0]
return integers_list
print(only_numbers_greater_zero([99, -95, 93, 0.4]))
| def only_numbers(input_list):
integers_list = [list_entry for list_entry in input_list if type(list_entry) == int]
return integers_list
print(only_numbers([99, 'no data', 95, 93, 'no data']))
def only_numbers_greater_zero(input_list):
integers_list = [list_entry for list_entry in input_list if list_entry > 0]
return integers_list
print(only_numbers_greater_zero([99, -95, 93, 0.4])) |
## https://docs.python.org/3/howto/logging-cookbook.html#an-example-dictionary-based-configuration
## https://docs.djangoproject.com/en/1.9/topics/logging/#configuring-logging
logcfg = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
},
'simple': {
# 'format': '%(levelname)s %(message)s'
'format': '[%(levelname)s]:[%(filename)s:%(lineno)d - %(funcName)20s() ]: %(message)s'
# 'format': '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
},
'standard': {
# 'format': '%(asctime)s:[%(levelname)s]:%(lineno)d:%(name)s:: %(message)s'
'format': '%(asctime)s:[%(levelname)s]:[%(name)s]:[%(filename)s:%(lineno)d - %(funcName)20s() ]: %(message)s'
},
},
'filters': {},
'handlers': {
'default': {
'level':'DEBUG',
'class':'logging.StreamHandler',
},
'console':{
'level':'DEBUG',
'class':'logging.StreamHandler',
'formatter': 'standard',
'stream': 'ext://sys.stdout'
},
# 'file_info': {
# 'class': 'logging.handlers.RotatingFileHandler',
# 'level': 'DEBUG',
# 'formatter': 'standard',
# 'filename': 'log/info.log',
# 'maxBytes': 10485760,
# 'backupCount': 20,
# 'encoding': 'utf8'
# },
# 'file_error': {
# 'class': 'logging.handlers.RotatingFileHandler',
# 'level': 'ERROR',
# 'formatter': 'standard',
# 'filename': 'log/errors.log',
# 'maxBytes': 10485760,
# 'backupCount': 20,
# 'encoding': 'utf8'
# }
},
'loggers':{
'': {
'handlers': ['console'],
'level': 'INFO',
'propagate': False
},
'__main__': {
'handlers': ['console'],
# 'level': 'CRITICAL',
'level': 'ERROR',
# 'level': 'WARNING',
# 'level': 'INFO',
# 'level': 'DEBUG',
# 'level': 'NOTSET',
'propagate': False
}
}
}
| logcfg = {'version': 1, 'disable_existing_loggers': False, 'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'}, 'simple': {'format': '[%(levelname)s]:[%(filename)s:%(lineno)d - %(funcName)20s() ]: %(message)s'}, 'standard': {'format': '%(asctime)s:[%(levelname)s]:[%(name)s]:[%(filename)s:%(lineno)d - %(funcName)20s() ]: %(message)s'}}, 'filters': {}, 'handlers': {'default': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'standard', 'stream': 'ext://sys.stdout'}}, 'loggers': {'': {'handlers': ['console'], 'level': 'INFO', 'propagate': False}, '__main__': {'handlers': ['console'], 'level': 'ERROR', 'propagate': False}}} |
#! /usr/bin/env python3
#Aleksandra Rzepka
#Calculate the square root of a number
def sqrt(x):
"""
Calculate the square root of argument x.
"""
#Check that x is positive.
if x < 0:
print("Error: negative value supplied")
return -1
else:
print("Here we go...")
#Initial guess for the square root.
z = x / 2.0
#Continously improve the guess.
while abs(x - (z*z)) > 0.000001:
z = z - (((z * z) - x) / (2 * z))
return z
myval = 63.0
print("The square root of", myval, " is ", sqrt(myval))
| def sqrt(x):
"""
Calculate the square root of argument x.
"""
if x < 0:
print('Error: negative value supplied')
return -1
else:
print('Here we go...')
z = x / 2.0
while abs(x - z * z) > 1e-06:
z = z - (z * z - x) / (2 * z)
return z
myval = 63.0
print('The square root of', myval, ' is ', sqrt(myval)) |
class Solution(object):
def maxDistance(self, nums):
"""
:type arrays: List[List[int]]
:rtype: int
"""
low = float('inf')
high = float('-inf')
res = 0
for num in nums:
# We can use num[0] && num[-1] only because these lists are sorted
res = max(res, max(high - num[0], num[-1] - low))
low = min(low, min(num))
high = max(high, max(num))
return res
| class Solution(object):
def max_distance(self, nums):
"""
:type arrays: List[List[int]]
:rtype: int
"""
low = float('inf')
high = float('-inf')
res = 0
for num in nums:
res = max(res, max(high - num[0], num[-1] - low))
low = min(low, min(num))
high = max(high, max(num))
return res |
"""Constants and allowed parameter values specified in the Userlist API."""
PUSH_URL = 'https://push.userlist.com/'
# Date formats
VALID_DATE_FORMATS = ['%Y-%m-%dT%H:%M:%S%z', '%Y-%m-%dT%H:%M:%S'] | """Constants and allowed parameter values specified in the Userlist API."""
push_url = 'https://push.userlist.com/'
valid_date_formats = ['%Y-%m-%dT%H:%M:%S%z', '%Y-%m-%dT%H:%M:%S'] |
# Rolling hash usage of a multiply accumlate unit with multiplier from the FNV hash, but linear style like the Ghash of AES-GCM
def rolling_hash_by_mac(list):
hash = 0
for byte in list:
hash += byte
hash *= 0x01000193
hash %= 2**32
return(hash)
#powers of the multiplier on each list member in the result
# 6 5 4 3 2 1
list1 = [0x58, 0x76, 0x54, 0x3a, 0xbe, 0xcd]
list2 = [0x58, 0x67, 0x54, 0x3a, 0xeb, 0xcd]
x = rolling_hash_by_mac(list1)
y = rolling_hash_by_mac(list2)
print('1st hash:', x)
print('2nd hash:', y)
#TESTING MODIFICATION OF DATA
x -= 0x76*0x01000193**5%2**32 #data has become multiplied by power of 5 in output
x -= 0xbe*0x01000193**2%2**32 #data has become multiplied by power of 2 in output
if x<0:
x += 2**32
print('after erasing "0x76" and "0xbe" form 1st:', x)
y -= 0x67*0x01000193**5%2**32 #data has become multiplied by power of 5 in output
y -= 0xeb*0x01000193**2%2**32 #data has become multiplied by power of 2 in output
if y<0:
y += 2**32
print('after erasing "0x67" and "0xeb" form 2nd:', y)
#TESTING ROLLING PROPERTY
x = rolling_hash_by_mac(list1[0:5]) #queue length is 5
print('before shifting queue:', x)
#manually shifting hash value
x -= list1[0]*0x01000193**5%2**32 #removing first with multiplier power of 5 for the queue is 5 long here
if x<0:
x += 2**32
x += list1[5] #adding last
x *= 0x01000193
x %= 2**32
print('shifting queue test:', x)
print('expected after shifting queue:', rolling_hash_by_mac(list1[1:6])) #queue length is 5
#HASHING IN PARALLEL FOR PERFOMANCE
list3 = [0x58, 0x76, 0x54, 0x3a, 0xbe, 0x58, 0x76, 0x54, 0xbe, 0xcd, 0x45, 0x66, 0x85, 0x65, 0xd3]
# ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
# Par=4: bulk bulk bulk bulk bulk bulk bulk bulk rest rest rest desc desc desc desc
# No.1: ignore last "par" counts of data 1
# No.2: calculate "bulk" parallelly with the multiplier to the power of number of parallel compuattion
# No.3: calculate "rest" parallelly with the multiplier to the power of number of parallel compuattion
# No.4: add up the last "par" count of data with descending powers of the multilier
def rolling_hash_by_mac_parallel(list, par):
hash = [0 for x in range(par)] #the fields of the array can be computed parallelly
par_mult = 0x01000193**par
bulk = (len(list)-par)//par
for i in range(par):
for j in range(bulk): #parallelly computable loops for the list length' whole multiple parts of "par"
hash[i] += list[j*par+i]
hash[i] *= par_mult
hash[i] %= 2**32
rest = (len(list)-par)%par
for k in range(rest): #parallelly computable loop for mostly the rest of the list, except for the last "par" pieces
hash[k] += list[-par-rest+k]
hash[k] *= par_mult
hash[k] %= 2**32
sum = 0
for l in range(par): #multiplying the last "par" long portion with descending powers
hash[(l+rest)%par] += list[-par+l]
hash[(l+rest)%par] *= 0x01000193**(par-l-1)
sum %= 2**32
for m in range(par): #summing up results of possibly parallel computations
sum += hash[m]
sum %= 2**32
sum *= 0x01000193
sum %= 2**32
return(sum)
print('parallel 1st:', rolling_hash_by_mac_parallel(list3[0:-2], 4))
print('parallel 2nd:', rolling_hash_by_mac_parallel(list3[1:-1], 4))
print('expected 1st:', rolling_hash_by_mac(list3[0:-2]))
print('expected 2nd:', rolling_hash_by_mac(list3[1:-1]))
| def rolling_hash_by_mac(list):
hash = 0
for byte in list:
hash += byte
hash *= 16777619
hash %= 2 ** 32
return hash
list1 = [88, 118, 84, 58, 190, 205]
list2 = [88, 103, 84, 58, 235, 205]
x = rolling_hash_by_mac(list1)
y = rolling_hash_by_mac(list2)
print('1st hash:', x)
print('2nd hash:', y)
x -= 118 * 16777619 ** 5 % 2 ** 32
x -= 190 * 16777619 ** 2 % 2 ** 32
if x < 0:
x += 2 ** 32
print('after erasing "0x76" and "0xbe" form 1st:', x)
y -= 103 * 16777619 ** 5 % 2 ** 32
y -= 235 * 16777619 ** 2 % 2 ** 32
if y < 0:
y += 2 ** 32
print('after erasing "0x67" and "0xeb" form 2nd:', y)
x = rolling_hash_by_mac(list1[0:5])
print('before shifting queue:', x)
x -= list1[0] * 16777619 ** 5 % 2 ** 32
if x < 0:
x += 2 ** 32
x += list1[5]
x *= 16777619
x %= 2 ** 32
print('shifting queue test:', x)
print('expected after shifting queue:', rolling_hash_by_mac(list1[1:6]))
list3 = [88, 118, 84, 58, 190, 88, 118, 84, 190, 205, 69, 102, 133, 101, 211]
def rolling_hash_by_mac_parallel(list, par):
hash = [0 for x in range(par)]
par_mult = 16777619 ** par
bulk = (len(list) - par) // par
for i in range(par):
for j in range(bulk):
hash[i] += list[j * par + i]
hash[i] *= par_mult
hash[i] %= 2 ** 32
rest = (len(list) - par) % par
for k in range(rest):
hash[k] += list[-par - rest + k]
hash[k] *= par_mult
hash[k] %= 2 ** 32
sum = 0
for l in range(par):
hash[(l + rest) % par] += list[-par + l]
hash[(l + rest) % par] *= 16777619 ** (par - l - 1)
sum %= 2 ** 32
for m in range(par):
sum += hash[m]
sum %= 2 ** 32
sum *= 16777619
sum %= 2 ** 32
return sum
print('parallel 1st:', rolling_hash_by_mac_parallel(list3[0:-2], 4))
print('parallel 2nd:', rolling_hash_by_mac_parallel(list3[1:-1], 4))
print('expected 1st:', rolling_hash_by_mac(list3[0:-2]))
print('expected 2nd:', rolling_hash_by_mac(list3[1:-1])) |
# OpenWeatherMap API Key
weather_api_key = "bfabad3eec079b77cd6e28110d3ad22f"
# Google API Key
g_key = "AIzaSyBKZyrmnIxatibyVFhiPyCHD87TQW0ulAA"
| weather_api_key = 'bfabad3eec079b77cd6e28110d3ad22f'
g_key = 'AIzaSyBKZyrmnIxatibyVFhiPyCHD87TQW0ulAA' |
target = 1000000
for i in range(1,500001):
if target % i != 0: continue
if '0' in str(i): continue
j = int(target / i)
if '0' in str(j): continue
print ('Factors: ' + str(i) + ' : ' + str(j))
exit
| target = 1000000
for i in range(1, 500001):
if target % i != 0:
continue
if '0' in str(i):
continue
j = int(target / i)
if '0' in str(j):
continue
print('Factors: ' + str(i) + ' : ' + str(j))
exit |
# Databricks notebook source
# MAGIC %run ./_utility-methods $lesson="12.1"
# COMMAND ----------
DA.cleanup()
DA.init(create_db=False)
DA.conclude_setup()
# COMMAND ----------
def print_sql(rows, sql):
html = f"<textarea style=\"width:100%\" rows={rows}> \n{sql.strip()}</textarea>"
displayHTML(html)
# COMMAND ----------
def _generate_config():
print_sql(33, f"""
CREATE DATABASE IF NOT EXISTS {DA.db_name}
LOCATION '{DA.paths.working_dir}';
USE {DA.db_name};
CREATE TABLE user_ping
(user_id STRING, ping INTEGER, time TIMESTAMP);
CREATE TABLE user_ids (user_id STRING);
INSERT INTO user_ids VALUES
("potato_luver"),
("beanbag_lyfe"),
("default_username"),
("the_king"),
("n00b"),
("frodo"),
("data_the_kid"),
("el_matador"),
("the_wiz");
CREATE FUNCTION get_ping()
RETURNS INT
RETURN int(rand() * 250);
CREATE FUNCTION is_active()
RETURNS BOOLEAN
RETURN CASE
WHEN rand() > .25 THEN true
ELSE false
END;
""")
DA.generate_config = _generate_config
# COMMAND ----------
def _generate_load():
print_sql(12, f"""
USE {DA.db_name};
INSERT INTO user_ping
SELECT *,
get_ping() ping,
current_timestamp() time
FROM user_ids
WHERE is_active()=true;
SELECT * FROM user_ping;
""")
DA.generate_load = _generate_load
# COMMAND ----------
def _generate_user_counts():
print_sql(10, f"""
USE {DA.db_name};
SELECT user_id, count(*) total_records
FROM user_ping
GROUP BY user_id
ORDER BY
total_records DESC,
user_id ASC;
""")
DA.generate_user_counts = _generate_user_counts
# COMMAND ----------
def _generate_avg_ping():
print_sql(10, f"""
USE {DA.db_name};
SELECT user_id, window.end end_time, mean(ping) avg_ping
FROM user_ping
GROUP BY user_id, window(time, '3 minutes')
ORDER BY
end_time DESC,
user_id ASC;
""")
DA.generate_avg_ping = _generate_avg_ping
# COMMAND ----------
def _generate_summary():
print_sql(8, f"""
USE {DA.db_name};
SELECT user_id, min(time) first_seen, max(time) last_seen, count(*) total_records, avg(ping) total_avg_ping
FROM user_ping
GROUP BY user_id
ORDER BY user_id ASC;
""")
DA.generate_summary = _generate_summary
| DA.cleanup()
DA.init(create_db=False)
DA.conclude_setup()
def print_sql(rows, sql):
html = f'<textarea style="width:100%" rows={rows}> \n{sql.strip()}</textarea>'
display_html(html)
def _generate_config():
print_sql(33, f"""\nCREATE DATABASE IF NOT EXISTS {DA.db_name}\nLOCATION '{DA.paths.working_dir}';\n\nUSE {DA.db_name};\n\nCREATE TABLE user_ping \n(user_id STRING, ping INTEGER, time TIMESTAMP); \n\nCREATE TABLE user_ids (user_id STRING);\n\nINSERT INTO user_ids VALUES\n("potato_luver"),\n("beanbag_lyfe"),\n("default_username"),\n("the_king"),\n("n00b"),\n("frodo"),\n("data_the_kid"),\n("el_matador"),\n("the_wiz");\n\nCREATE FUNCTION get_ping()\n RETURNS INT\n RETURN int(rand() * 250);\n \nCREATE FUNCTION is_active()\n RETURNS BOOLEAN\n RETURN CASE \n WHEN rand() > .25 THEN true\n ELSE false\n END;\n""")
DA.generate_config = _generate_config
def _generate_load():
print_sql(12, f'\nUSE {DA.db_name};\n\nINSERT INTO user_ping\nSELECT *, \n get_ping() ping, \n current_timestamp() time\nFROM user_ids\nWHERE is_active()=true;\n\nSELECT * FROM user_ping;\n')
DA.generate_load = _generate_load
def _generate_user_counts():
print_sql(10, f'\nUSE {DA.db_name};\n\nSELECT user_id, count(*) total_records\nFROM user_ping\nGROUP BY user_id\nORDER BY \n total_records DESC,\n user_id ASC;\n')
DA.generate_user_counts = _generate_user_counts
def _generate_avg_ping():
print_sql(10, f"\nUSE {DA.db_name};\n\nSELECT user_id, window.end end_time, mean(ping) avg_ping\nFROM user_ping\nGROUP BY user_id, window(time, '3 minutes')\nORDER BY\n end_time DESC,\n user_id ASC;\n")
DA.generate_avg_ping = _generate_avg_ping
def _generate_summary():
print_sql(8, f'\nUSE {DA.db_name};\n\nSELECT user_id, min(time) first_seen, max(time) last_seen, count(*) total_records, avg(ping) total_avg_ping\nFROM user_ping\nGROUP BY user_id\nORDER BY user_id ASC;\n')
DA.generate_summary = _generate_summary |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__all__ = ["test_bettersis", "test_siscompleter", "test_texteditor", "test_update_checker"]
| __all__ = ['test_bettersis', 'test_siscompleter', 'test_texteditor', 'test_update_checker'] |
'''
Dataset information
'''
coco_classes = [
'person',
'bicycle',
'car',
'motorcycle',
'airplane',
'bus',
'train',
'truck',
'boat',
'traffic_light',
'fire_hydrant',
'stop_sign',
'parking_meter',
'bench',
'bird',
'cat',
'dog',
'horse',
'sheep',
'cow',
'elephant',
'bear',
'zebra',
'giraffe',
'backpack',
'umbrella',
'handbag',
'tie',
'suitcase',
'frisbee',
'skis',
'snowboard',
'sports_ball',
'kite',
'baseball_bat',
'baseball_glove',
'skateboard',
'surfboard',
'tennis_racket',
'bottle',
'wine_glass',
'cup',
'fork',
'knife',
'spoon',
'bowl',
'banana',
'apple',
'sandwich',
'orange',
'broccoli',
'carrot',
'hot_dog',
'pizza',
'donut',
'cake',
'chair',
'couch',
'potted_plant',
'bed',
'dining_table',
'toilet',
'tv',
'laptop',
'mouse',
'remote',
'keyboard',
'cell_phone',
'microwave',
'oven',
'toaster',
'sink',
'refrigerator',
'book',
'clock',
'vase',
'scissors',
'teddy_bear',
'hair_drier',
'toothbrush',
]
# Argoverse-HD classes (defined as a subset of COCO classes)
avhd_subset = [
0, # person
1, # bicycle
2, # car
3, # motorcycle
5, # bus
7, # truck
9, # traffic_light
11, # stop_sign
]
| """
Dataset information
"""
coco_classes = ['person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic_light', 'fire_hydrant', 'stop_sign', 'parking_meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe', 'backpack', 'umbrella', 'handbag', 'tie', 'suitcase', 'frisbee', 'skis', 'snowboard', 'sports_ball', 'kite', 'baseball_bat', 'baseball_glove', 'skateboard', 'surfboard', 'tennis_racket', 'bottle', 'wine_glass', 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple', 'sandwich', 'orange', 'broccoli', 'carrot', 'hot_dog', 'pizza', 'donut', 'cake', 'chair', 'couch', 'potted_plant', 'bed', 'dining_table', 'toilet', 'tv', 'laptop', 'mouse', 'remote', 'keyboard', 'cell_phone', 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'book', 'clock', 'vase', 'scissors', 'teddy_bear', 'hair_drier', 'toothbrush']
avhd_subset = [0, 1, 2, 3, 5, 7, 9, 11] |
line = input().split()
n = int(line[0])
t = int(line[1])
visited = {0}
line = [int(i) for i in input().split()]
current = 1
while(current != t):
if(current in visited or current > len(line)):
print("NO")
break
else:
visited.add(current)
current += line[current - 1]
if(current == t):
print("YES")
| line = input().split()
n = int(line[0])
t = int(line[1])
visited = {0}
line = [int(i) for i in input().split()]
current = 1
while current != t:
if current in visited or current > len(line):
print('NO')
break
else:
visited.add(current)
current += line[current - 1]
if current == t:
print('YES') |
"""Default reserved words that should not be anonymized by sensitive word anonymization."""
# Copyright 2018 Intentionet
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# THIS IS AN AUTOMATICALLY GENERATED FILE. TO REGENERATE, RUN:
#
# bazel run //tools:generate_reserved_tokens
#
# YOU MAY ALSO NEED TO UPDATE the `srcs` attribute for //tools:tokens
# These are important tokens in network device configs and should not be modified by keyword anonymization
default_reserved_words = {
'!',
'"',
'#',
'$',
'%',
'&',
'&&',
'(',
')',
'*',
'+',
',',
'-',
'-h',
'.',
'/',
'1',
'10000full',
'10000half',
'1000full',
'1000half',
'1000m/full',
'100full',
'100g',
'100gfull',
'100ghalf',
'100half',
'100m/full',
'100m/half',
'10full',
'10g-4x',
'10half',
'10m/full',
'10m/half',
'2',
'2-byte',
'25gbase-cr',
'3des',
'3des-cbc',
'4-byte',
'40g',
'40gfull',
'6pe',
'802.3ad',
'8023ad',
':',
';',
'<',
'<scrubbed>',
'=',
'>',
'?',
'@',
'[',
'\\',
'\\"',
'\\n',
'\\r',
']',
'^',
'_',
'aaa',
'aaa-profile',
'aaa-server',
'aaa-user',
'aal5snap',
'absolute-timeout',
'acap',
'accept',
'accept-data',
'accept-dialin',
'accept-lifetime',
'accept-own',
'accept-rate',
'accept-register',
'accept-rp',
'accept-summary',
'accepted-prefix-limit',
'access',
'access-class',
'access-group',
'access-internal',
'access-list',
'access-log',
'access-map',
'access-profile',
'access-session',
'accounting',
'accounting-list',
'accounting-port',
'accounting-server-group',
'accounting-threshold',
'accprofile',
'acct-port',
'acfe',
'ack',
'acl',
'acl-policy',
'acl_common_ip_options',
'acl_global_options',
'acl_icmp',
'acl_igmp',
'acl_indices',
'acl_simple_protocols',
'acl_tcp',
'acl_udp',
'acllog',
'acr-nema',
'action',
'action-type',
'activate',
'activate-service-whitelist',
'activated-service-template',
'activation-character',
'active',
'active-backup',
'active-bonus',
'active-modules',
'active-server-group',
'adaptive',
'add',
'add-path',
'add-paths',
'add-route',
'add-vlan',
'additional-paths',
'additive',
'address',
'address-book',
'address-family',
'address-family-identifier',
'address-group',
'address-hiding',
'address-mask',
'address-pool',
'address-pools',
'address-prefix',
'address-range',
'address-set',
'address-table',
'address-unreachable',
'address-virtual',
'address6',
'addrgroup',
'addrgrp',
'adjacency',
'adjacency-check',
'adjacency-stale-timer',
'adjmgr',
'adjust',
'adjust-mss',
'adjust-tcp-mss',
'admin',
'admin-dist',
'admin-distance',
'admin-dists',
'admin-role',
'admin-state',
'admin-vdc',
'administrative',
'administrative-weight',
'administratively-prohibited',
'admission',
'admission-control',
'adp',
'advertise',
'advertise-all-vni',
'advertise-as-vpn',
'advertise-default-gw',
'advertise-external',
'advertise-inactive',
'advertise-interval',
'advertise-map',
'advertise-only',
'advertise-peer-as',
'advertise-to',
'advertisement',
'advertisement-interval',
'aes',
'aes-128',
'aes-128-cbc',
'aes-128-cmac-96',
'aes-128-gcm',
'aes-192-cbc',
'aes-192-gcm',
'aes-256-cbc',
'aes-256-gcm',
'aes128',
'aes192',
'aes256',
'aesa',
'af-group',
'af-interface',
'af11',
'af12',
'af13',
'af21',
'af22',
'af23',
'af31',
'af32',
'af33',
'af41',
'af42',
'af43',
'affinity',
'affinity-map',
'afpovertcp',
'afs',
'after',
'after-auto',
'age',
'agentx',
'aggregate',
'aggregate-address',
'aggregate-ethernet',
'aggregate-group',
'aggregate-med',
'aggregate-route',
'aggregate-timer',
'aggregated-ether-options',
'aggressive',
'aging',
'ah',
'ah-header',
'ah-md5',
'ah-md5-hmac',
'ah-sha-hmac',
'ahp',
'airgroup',
'airgroupservice',
'ais-shut',
'alarm',
'alarm-report',
'alarm-threshold',
'alarm-without-drop',
'alert',
'alert-group',
'alert-timeout',
'alertmail',
'alerts',
'alg',
'alg-based-cac',
'algorithm',
'alias',
'aliases',
'all',
'all-alarms',
'all-of-router',
'all-subnets',
'allocate',
'allocation',
'allow',
'allow-connections',
'allow-default',
'allow-duplicates',
'allow-dynamic-record-sizing',
'allow-fail-through',
'allow-imported-vpn',
'allow-non-ssl',
'allow-nopassword-remote-login',
'allow-override',
'allow-routing',
'allow-rp',
'allow-self-ping',
'allow-service',
'allow-snooped-clients',
'allow-v4mapped-packets',
'allowas-in',
'allowed',
'alternate-address',
'alternate-as',
'always',
'always-compare-med',
'always-on',
'always-on-vpn',
'always-send',
'always-write-giaddr',
'am-disable',
'am-scan-profile',
'amon',
'amt',
'analytics',
'analyzer',
'and',
'antenna',
'any',
'any-ipv4',
'any-ipv6',
'any-remote-host',
'any-service',
'any4',
'any6',
'anyconnect',
'anyconnect-essentials',
'aol',
'ap',
'ap-blacklist-time',
'ap-classification-rule',
'ap-crash-transfer',
'ap-group',
'ap-lacp-striping-ip',
'ap-name',
'ap-rule-matching',
'ap-system-profile',
'api',
'api-user',
'app',
'app-service',
'appcategory',
'append',
'appletalk',
'application',
'application-filter',
'application-group',
'application-override',
'application-protocol',
'application-set',
'application-tracking',
'applications',
'apply',
'apply-macro',
'apply-path',
'aqm-register-fnf',
'archive',
'archive-length',
'archive-size',
'area',
'area-password',
'area-range',
'arm-profile',
'arm-rf-domain-profile',
'arns',
'arp',
'arp-inspect',
'arp-nd-suppress',
'arp-resp',
'as',
'as-format',
'as-number',
'as-override',
'as-path',
'as-path-expand',
'as-path-group',
'as-path-prepend',
'as-path-set',
'as-range',
'as-set',
'asa',
'ascending',
'ascii-authentication',
'ascii-text',
'asdm',
'asdm-buffer-size',
'asdot',
'asdot-notation',
'asf-rmcp',
'asip-webadmin',
'asn',
'asnotation',
'aspath-cmp-include-nexthop',
'asplain',
'assembler',
'assignment',
'assoc-retransmit',
'associate',
'associate-vrf',
'associated-interface',
'association',
'async',
'async-bootp',
'asynchronous',
'at-rtmp',
'atm',
'attach',
'attached',
'attached-host',
'attached-hosts',
'attached-routes',
'attack-threshold',
'attribute',
'attribute-download',
'attribute-map',
'attribute-names',
'attribute-set',
'attributes',
'audit',
'aurp',
'auth',
'auth-failure-blacklist-time',
'auth-port',
'auth-profile',
'auth-proxy',
'auth-server',
'auth-type',
'authenticate',
'authentication',
'authentication-algorithm',
'authentication-dot1x',
'authentication-key',
'authentication-key-chain',
'authentication-key-chains',
'authentication-mac',
'authentication-method',
'authentication-order',
'authentication-port',
'authentication-profile',
'authentication-restart',
'authentication-retries',
'authentication-server',
'authentication-server-group',
'authentication-type',
'authoritative',
'authorization',
'authorization-required',
'authorization-server-group',
'authorization-status',
'authorize',
'authorized',
'authorized-keys-command',
'authorized-keys-command-user',
'authpriv',
'authtype',
'auto',
'auto-cert-allow-all',
'auto-cert-allowed-addrs',
'auto-cert-prov',
'auto-config',
'auto-cost',
'auto-discard',
'auto-export',
'auto-import',
'auto-local-addr',
'auto-negotiation',
'auto-recovery',
'auto-rp',
'auto-shutdown-new-neighbors',
'auto-snapshot',
'auto-summary',
'auto-sync',
'auto-tunnel',
'auto-update',
'auto-upgrade',
'autoclassify',
'autoconfig',
'autohang',
'autohangup',
'automation-action',
'automation-stitch',
'automation-trigger',
'autonomous-system',
'autorecovery',
'autoroute',
'autoroute-exclude',
'autorp',
'autoselect',
'autostate',
'aux',
'auxiliary',
'back-up',
'backbonefast',
'background-routes-enable',
'backoff-time',
'backup',
'backup-ip',
'backup-router',
'backupcrf',
'bad-inner-header',
'bad-option',
'band-steering',
'bandwidth',
'bandwidth-contract',
'bandwidth-percent',
'bandwidth-percentage',
'banner',
'base',
'base-mac',
'bash',
'bash-shell',
'basic',
'basic-1.0',
'basic-11.0',
'basic-12.0',
'basic-18.0',
'basic-2.0',
'basic-24.0',
'basic-36.0',
'basic-48.0',
'basic-5.5',
'basic-54.0',
'basic-6.0',
'basic-9.0',
'batch-size',
'bc',
'bcmc-optimization',
'bcn-rpt-req-profile',
'be',
'beacon',
'before',
'bestpath',
'bestpath-limit',
'beyond-scope',
'bfd',
'bfd-echo',
'bfd-enable',
'bfd-instance',
'bfd-liveness-detection',
'bfd-template',
'bftp',
'bgmp',
'bgp',
'bgp-community',
'bgp-policy',
'bidir',
'bidir-enable',
'bidir-offer-interval',
'bidir-offer-limit',
'bidir-rp-limit',
'bidirectional',
'biff',
'big',
'bind',
'bind-interface',
'bittorrent',
'bittorrent-application',
'bkup-lms-ip',
'blackhole',
'blacklist',
'blacklist-time',
'block',
'block-allocation',
'block-frag',
'bloggerd',
'bmp',
'bond',
'bond-lacp-bypass-allow',
'bond-lacp-rate',
'bond-master',
'bond-miimon',
'bond-min-links',
'bond-mode',
'bond-slaves',
'bond-xmit-hash-policy',
'bonddevs',
'bonding',
'bondmiimon',
'bondmode',
'bool',
'boolean',
'boot',
'boot-end-marker',
'boot-server',
'boot-start-marker',
'bootfile',
'bootp',
'bootp-relay',
'bootp-support',
'bootpc',
'bootps',
'border',
'border-router',
'both',
'botnet',
'bottom',
'boundary',
'bpdufilter',
'bpduguard',
'bps',
'breakout',
'bridge',
'bridge-access',
'bridge-arp-nd-suppress',
'bridge-domain',
'bridge-domains',
'bridge-group',
'bridge-learning',
'bridge-ports',
'bridge-priority',
'bridge-pvid',
'bridge-vids',
'bridge-vlan-aware',
'broadcast',
'broadcast-address',
'broadcast-client',
'broadcast-filter',
'bsd-client',
'bsd-username',
'bsr',
'bsr-border',
'bsr-candidate',
'buckets',
'buffer',
'buffer-length',
'buffer-limit',
'buffer-size',
'buffered',
'buffers',
'bug-alert',
'build',
'building configuration',
'built-in',
'bundle',
'bundle-speed',
'burst',
'burst-size',
'bypass',
'bytes',
'c-multicast-routing',
'ca',
'ca-cert',
'ca-cert-bundle',
'ca-devices',
'ca-key',
'cable-downstream',
'cable-range',
'cable-upstream',
'cablelength',
'cache',
'cache-sa-holdtime',
'cache-sa-state',
'cache-size',
'cache-timeout',
'calipso-option',
'call',
'call-block',
'call-forward',
'call-home',
'call-manager-fallback',
'caller-id',
'callhome',
'cam-acl',
'cam-profile',
'candidate-bsr',
'candidate-rp',
'capability',
'capacity',
'captive',
'captive-portal-cert',
'capture',
'card',
'card-trap-inh',
'carrier-delay',
'cas-custom',
'case',
'categories',
'category',
'cause',
'ccap-core',
'ccc',
'ccm',
'ccm-group',
'ccm-manager',
'cdp',
'cdp-url',
'cef',
'ceiling',
'centralized-licensing-enable',
'cert',
'cert-extension-includes',
'cert-key-chain',
'cert-lifespan',
'cert-lookup-by-ipaddr-port',
'certificate',
'certificate-authority',
'certificate-profile',
'certificates',
'cfs',
'cgmp',
'chain',
'change-log',
'channel',
'channel-group',
'channel-protocol',
'channelized',
'chap',
'chargen',
'chassis',
'chassis-id',
'chat-script',
'check',
'cifs',
'cipc',
'cipher-group',
'cipherlist',
'ciphers',
'cir',
'circuit-id',
'circuit-type',
'cisco',
'cisco_tdp',
'cisp',
'citadel',
'citrix-ica',
'clag',
'clag-id',
'clagd-backup-ip',
'clagd-peer-ip',
'clagd-priority',
'clagd-sys-mac',
'clagd-vxlan-anycast-ip',
'class',
'class-default',
'class-map',
'class-of-service',
'classification',
'classless',
'cleanup',
'clear',
'clear-session',
'clearcase',
'cli',
'client',
'client-alive-count-max',
'client-alive-interval',
'client-group',
'client-identifier',
'client-identity',
'client-ldap',
'client-list',
'client-list-name',
'client-name',
'client-ssl',
'client-to-client',
'clients',
'clns',
'clock',
'clock-period',
'clone',
'closed',
'cluster',
'cluster-id',
'cluster-list-length',
'cm',
'cmd',
'cmts',
'cns',
'coap',
'codec',
'codes',
'collect',
'collect-stats',
'color',
'color2',
'comm-list',
'command',
'commander-address',
'commands',
'comment',
'comments',
'commerce',
'commit',
'common',
'common-name',
'communication-prohibited-by-filtering',
'community',
'community-list',
'community-map',
'community-set',
'compare-routerid',
'compatibility',
'compatible',
'compress-configuration-files',
'compression',
'compression-connections',
'con',
'condition',
'conf-level-incr',
'confdconfig',
'confed',
'confederation',
'config',
'config-commands',
'config-management',
'config-register',
'configsync-ip',
'configuration',
'configure',
'configversion',
'conflict-policy',
'conform',
'conform-action',
'congestion-control',
'congestion-drops',
'conn',
'conn-holddown',
'connect',
'connect-retry',
'connect-source',
'connected',
'connection',
'connection-limit',
'connection-mode',
'connection-options',
'connection-reuse',
'connection-type',
'connections',
'connections-limit',
'consistency-checker',
'console',
'consortium',
'contact',
'contact-email-addr',
'contact-name',
'content-preview',
'content-type',
'context',
'context-name',
'continue',
'contract-id',
'control',
'control-apps-use-mgmt-port',
'control-plane',
'control-plane-filter',
'control-plane-security',
'control-word',
'controller',
'controller-ip',
'convergence',
'convergence-timeout',
'conversion-error',
'cookie',
'copp',
'cops',
'copy',
'copy-attributes',
'core-tree-protocol',
'cos',
'cos-mapping',
'cos-next-hop-map',
'cos-queue-group',
'cost',
'cost-community',
'count',
'counter',
'counters',
'country',
'country-code',
'courier',
'cpd',
'cptone',
'cpu-share',
'crashinfo',
'crc',
'credentials',
'credibility-protocol-preference',
'critical',
'crl',
'cron',
'crypto',
'crypto-local',
'crypto-profiles',
'cryptochecksum',
'cryptographic-algorithm',
'cs1',
'cs2',
'cs3',
'cs4',
'cs5',
'cs6',
'cs7',
'csd',
'csnet-ns',
'csnp-interval',
'csr-params',
'ctiqbe',
'ctl-file',
'cts',
'current configuration',
'custom',
'custom-language',
'customer-id',
'cvspserver',
'cvx',
'cvx-cluster',
'cvx-license',
'cwr',
'd20-ggrp-default',
'd30-ggrp-default',
'dad',
'daemon',
'dampen',
'dampen-igp-metric',
'dampening',
'dampening-change',
'dampening-interval',
'dampening-profile',
'damping',
'data',
'data-group',
'data-privacy',
'database',
'database-replication',
'databits',
'datacenter',
'days',
'daytime',
'dbl',
'dcb',
'dcb-buffer-threshold',
'dcb-policy',
'dcbx',
'dce-mode',
'ddos-protection',
'deactivate',
'dead-counts',
'dead-interval',
'dead-peer-detection',
'deadtime',
'debounce',
'debug',
'debug-trace',
'debugging',
'decap-group',
'decrement',
'default',
'default-action',
'default-address-selection',
'default-allow',
'default-cost',
'default-destination',
'default-domain',
'default-gateway',
'default-gracetime',
'default-group-policy',
'default-guest-role',
'default-gw',
'default-information',
'default-information-originate',
'default-inspection-traffic',
'default-lifetime',
'default-local-preference',
'default-lsa',
'default-max-frame-size',
'default-metric',
'default-network',
'default-node-monitor',
'default-originate',
'default-peer',
'default-policy',
'default-role',
'default-route',
'default-route-tag',
'default-router',
'default-taskgroup',
'default-tos-qos10',
'default-value',
'default-vrf',
'default-warntime',
'defaults',
'defaults-from',
'definition',
'del',
'delay',
'delay-start',
'delayed-link-state-change',
'delete',
'delete-binding-on-renegotiation',
'delete-dynamic-learn',
'delimiter',
'demand-circuit',
'dense-mode',
'deny',
'deny-all',
'deny-in-out',
'deny-inter-user-traffic',
'depi',
'depi-class',
'depi-tunnel',
'deploy',
'derivation-rules',
'des',
'des-cbc',
'descending',
'description',
'designated-forwarder',
'designated-forwarder-election-hold-time',
'desirable',
'despassword',
'dest-ip',
'dest-miss',
'destination',
'destination-address',
'destination-address-excluded',
'destination-address-name',
'destination-header',
'destination-host-prohibited',
'destination-host-unknown',
'destination-ip',
'destination-ip-based',
'destination-nat',
'destination-network-prohibited',
'destination-network-unknown',
'destination-pattern',
'destination-port',
'destination-port-except',
'destination-prefix-list',
'destination-profile',
'destination-slot',
'destination-threshold',
'destination-translation',
'destination-unreachable',
'destination-vrf',
'detail',
'detect-adhoc-network',
'detect-ap-flood',
'detect-ap-impersonation',
'detect-bad-wep',
'detect-beacon-wrong-channel',
'detect-chopchop-attack',
'detect-client-flood',
'detect-cts-rate-anomaly',
'detect-eap-rate-anomaly',
'detect-hotspotter',
'detect-ht-40mhz-intolerance',
'detect-ht-greenfield',
'detect-invalid-address-combination',
'detect-invalid-mac-oui',
'detect-malformed-association-request',
'detect-malformed-auth-frame',
'detect-malformed-htie',
'detect-malformed-large-duration',
'detect-misconfigured-ap',
'detect-overflow-eapol-key',
'detect-overflow-ie',
'detect-rate-anomalies',
'detect-rts-rate-anomaly',
'detect-tkip-replay-attack',
'detect-valid-ssid-misuse',
'detect-wireless-bridge',
'detect-wireless-hosted-network',
'deterministic-med',
'deterministic-med-comparison',
'dev',
'device',
'device-group',
'device-id',
'device-sensor',
'deviceconfig',
'devices',
'df',
'df-bit',
'dfs',
'dh-group',
'dh-group14',
'dh-group15',
'dh-group16',
'dh-group17',
'dh-group18',
'dh-group19',
'dh-group2',
'dh-group20',
'dh-group21',
'dh-group22',
'dh-group23',
'dh-group24',
'dh-group25',
'dh-group26',
'dh-group5',
'dhcp',
'dhcp-failover2',
'dhcp-giaddr',
'dhcp-local-server',
'dhcp-relay',
'dhcp-snoop',
'dhcp-snooping-vlan',
'dhcpd',
'dhcprelay',
'dhcpv4',
'dhcpv6',
'dhcpv6-client',
'dhcpv6-server',
'diagnostic',
'diagnostic-signature',
'dial-control-mib',
'dial-peer',
'dial-string',
'dialer',
'dialer-group',
'dialer-list',
'dialplan-pattern',
'dialplan-profile',
'diameter',
'dir',
'direct',
'direct-install',
'direct-inward-dial',
'directed-broadcast',
'directed-request',
'direction',
'directly-connected-sources',
'directory',
'disable',
'disable-4byte-as',
'disable-advertisement',
'disable-connected-check',
'disable-peer-as-check',
'disabled',
'discard',
'discard-route',
'discards',
'disconnect',
'discovered-ap-cnt',
'discovery',
'discriminator',
'display',
'display-location',
'display-name',
'dispute',
'distance',
'distribute',
'distribute-list',
'distribution',
'dm-fallback',
'dns',
'dns-domain',
'dns-guard',
'dns-resolver',
'dns-server',
'dns-servers',
'dns-setting',
'dns-suffixes',
'dns1',
'dns2',
'dnsix',
'do',
'do-all',
'do-auto-recovery',
'do-until-failure',
'do-until-success',
'docsis-enable',
'docsis-group',
'docsis-policy',
'docsis-version',
'docsis30-enable',
'dod-host-prohibited',
'dod-net-prohibited',
'domain',
'domain-id',
'domain-list',
'domain-lookup',
'domain-name',
'domain-search',
'done',
'dont-capability-negotiate',
'dos-profile',
'dot',
'dot11',
'dot11a-radio-profile',
'dot11g-radio-profile',
'dot11k-profile',
'dot11r-profile',
'dot1p-priority',
'dot1q-tunnel',
'dot1x',
'dot1x-default-role',
'dot1x-enable',
'dot1x-server-group',
'down',
'downlink',
'downstream',
'downstream-start-threshold',
'dpg',
'dr-delay',
'dr-priority',
'drip',
'drop',
'drop-on-fail',
'drop-path-attributes',
'ds-hello-interval',
'ds-max-burst',
'ds0-group',
'dsa-signatures',
'dscp',
'dscp-lop',
'dscp-value',
'dsg',
'dsl',
'dslite',
'dsp',
'dspfarm',
'dsrwait',
'dss',
'dst',
'dst-mac',
'dst-nat',
'dstaddr',
'dstintf',
'dstopts',
'dsu',
'dtcp-only',
'dtmf-relay',
'dtp',
'dual-active',
'dual-as',
'dual-mode-default-vlan',
'dummy',
'dump-on-panic',
'duplex',
'duplicate-message',
'duration',
'dvmrp',
'dynad',
'dynamic',
'dynamic-access-policy-record',
'dynamic-author',
'dynamic-capability',
'dynamic-db',
'dynamic-dns',
'dynamic-extended',
'dynamic-ip-and-port',
'dynamic-map',
'dynamic-mcast-optimization',
'dynamic-mcast-optimization-thresh',
'dynamic-med-interval',
'dynamic-template',
'e164',
'e164-pattern-map',
'eap-passthrough',
'eapol-rate-opt',
'early-offer',
'ebgp',
'ebgp-multihop',
'ebgp-multipath',
'ece',
'echo',
'echo-cancel',
'echo-reply',
'echo-request',
'echo-rx-interval',
'ecmp',
'ecmp-fast',
'ecmp-group',
'ecn',
'edca-parameters-profile',
'edge',
'edit',
'edition',
'ef',
'effective-ip',
'effective-port',
'efp',
'efs',
'egp',
'egress',
'egress-interface-selection',
'eibgp',
'eigrp',
'eklogin',
'ekshell',
'election',
'eligible',
'else',
'elseif',
'emac-vlan',
'email',
'email-addr',
'email-contact',
'email-server',
'embedded-rp',
'emergencies',
'empty',
'enable',
'enable-acl-cam-sharing',
'enable-acl-counter',
'enable-authentication',
'enable-qos-statistics',
'enable-sender-side-loop-detection',
'enable-welcome-page',
'enabled',
'encapsulation',
'encoding',
'encoding-weighted',
'encr',
'encrypted',
'encrypted-password',
'encryption',
'encryption-algorithm',
'end',
'end-class-map',
'end-ip',
'end-policy',
'end-policy-map',
'end-set',
'endif',
'enet-link-profile',
'enforce-bgp-mdt-safi',
'enforce-dhcp',
'enforce-first-as',
'enforce-rule',
'enforced',
'engine',
'enhanced-hash-key',
'enrollment',
'entries',
'environment',
'environment-monitor',
'ephone-dn-template',
'epm',
'epp',
'eq',
'errdisable',
'error',
'error-correction',
'error-enable',
'error-passthru',
'error-rate-threshold',
'error-recovery',
'error-reporting',
'errors',
'erspan-id',
'escape-character',
'esm',
'esp',
'esp-3des',
'esp-aes',
'esp-aes128',
'esp-aes128-gcm',
'esp-aes192',
'esp-aes256',
'esp-aes256-gcm',
'esp-des',
'esp-gcm',
'esp-gmac',
'esp-group',
'esp-header',
'esp-md5-hmac',
'esp-null',
'esp-seal',
'esp-sha-hmac',
'esp-sha256-hmac',
'esp-sha512-hmac',
'esro-gen',
'essid',
'establish-tunnels',
'established',
'eth',
'ether-options',
'ether-type',
'etherchannel',
'ethernet',
'ethernet-segment',
'ethernet-services',
'ethernet-switching',
'ethernet-switching-options',
'ethertype',
'etype',
'eui-64',
'evaluate',
'evasive',
'event',
'event-handler',
'event-history',
'event-log-size',
'event-monitor',
'event-notify',
'event-options',
'event-thresholds-profile',
'events',
'evpn',
'exact',
'exact-match',
'exceed-action',
'except',
'exception',
'exception-slave',
'excessive-bandwidth-use',
'exclude',
'exclude-member',
'excluded-address',
'exec',
'exec-timeout',
'execute',
'exempt',
'exist-map',
'exit',
'exit-address-family',
'exit-af-interface',
'exit-af-topology',
'exit-peer-policy',
'exit-peer-session',
'exit-service-family',
'exit-sf-interface',
'exit-sf-topology',
'exit-vrf',
'exp',
'expanded',
'expect',
'expiration',
'expire',
'explicit-null',
'explicit-priority',
'explicit-rpf-vector',
'explicit-tracking',
'export',
'export-localpref',
'export-nexthop',
'export-protocol',
'export-rib',
'export-rt',
'exporter',
'exporter-map',
'expression',
'ext-1',
'ext-2',
'extcomm-list',
'extcommunity',
'extcommunity-list',
'extcommunity-set',
'extend',
'extendable',
'extended',
'extended-community',
'extended-counters',
'extended-delay',
'extended-show-width',
'extended-vni-list',
'extensible-subscriber',
'extension-header',
'extension-service',
'extensions',
'external',
'external-interface',
'external-list',
'external-lsa',
'external-preference',
'external-router-id',
'fabric',
'fabric-mode',
'fabric-object',
'fabric-options',
'fabricpath',
'facility',
'facility-alarm',
'facility-override',
'fail-filter',
'fail-over',
'failed',
'failed-list',
'failover',
'fair-queue',
'fall-over',
'fallback',
'fallback-dn',
'false',
'family',
'fan',
'fast',
'fast-age',
'fast-detect',
'fast-external-fallover',
'fast-flood',
'fast-leave',
'fast-reroute',
'fast-select-hot-standby',
'fastdrop',
'fastether-options',
'fasthttp',
'fastl4',
'fax',
'fcoe',
'fcoe-fib-miss',
'fdb',
'fdl',
'feature',
'feature-control',
'feature-module',
'feature-set',
'fec',
'fex',
'fex-fabric',
'fib',
'fiber-node',
'fields',
'file',
'file-browsing',
'file-entry',
'file-size',
'file-transfer',
'filter',
'filter-duplicates',
'filter-interfaces',
'filter-list',
'filtering',
'fin',
'fin-no-ack',
'finger',
'fingerprint-hash',
'firewall',
'firewall-visibility',
'firmware',
'first-fragment',
'fix',
'flap-list',
'flash',
'flash-override',
'flat',
'flexible-vlan-tagging',
'floating-conn',
'flood',
'flow',
'flow-accounting',
'flow-aggregation',
'flow-cache',
'flow-capture',
'flow-control',
'flow-export',
'flow-gate',
'flow-sampler',
'flow-sampler-map',
'flow-sampling-mode',
'flow-session',
'flow-spec',
'flow-top-talkers',
'flowcont',
'flowcontrol',
'flowspec',
'flush-at-activation',
'flush-r1-on-new-r0',
'flush-routes',
'folder',
'for',
'force',
'force-order',
'force-up',
'forced',
'forever',
'format',
'fortiguard-wf',
'forward',
'forward-digits',
'forward-error-correction',
'forward-protocol',
'forward-snooped-clients',
'forwarder',
'forwarding',
'forwarding-class',
'forwarding-class-accounting',
'forwarding-latency',
'forwarding-options',
'forwarding-table',
'forwarding-threshold',
'four-byte-as',
'fpd',
'fpga',
'fqdn',
'fragment',
'fragment-header',
'fragment-offset',
'fragment-offset-except',
'fragment-rules',
'fragmentation',
'fragmentation-needed',
'fragments',
'frame-relay',
'framing',
'free-channel-index',
'frequency',
'fri',
'from',
'from-peer',
'from-user',
'from-zone',
'frr',
'ft',
'ftp',
'ftp-data',
'ftp-server',
'ftps',
'ftps-data',
'full',
'full-duplex',
'full-txt',
'g709',
'g729',
'gatekeeper',
'gateway',
'gateway-icmp',
'gateway1',
'gbps',
'gdoi',
'ge',
'general-group-defaults',
'general-parameter-problem',
'general-profile',
'generate',
'generic-alert',
'geography',
'get',
'gid',
'gig-default',
'gigether-options',
'glbp',
'glean',
'global',
'global-bfd',
'global-mtu',
'global-port-security',
'global-protect-app-crypto-profiles',
'global-settings',
'globalenforcepriv',
'godi',
'gopher',
'goto',
'gr-delay',
'grace-period',
'graceful',
'graceful-restart',
'graceful-restart-helper',
'gracetime',
'grant',
'gratuitous',
'gratuitous-arps',
'gre',
'gre-4in4',
'gre-4in6',
'gre-6in4',
'gre-6in6',
'green',
'group',
'group-alias',
'group-ike-id',
'group-list',
'group-lock',
'group-object',
'group-policy',
'group-range',
'group-timeout',
'group-url',
'group1',
'group14',
'group15',
'group16',
'group19',
'group2',
'group20',
'group21',
'group24',
'group5',
'groups',
'groups-per-interface',
'gshut',
'gt',
'gtp',
'gtp-c',
'gtp-prime',
'gtp-u',
'guaranteed',
'guard',
'guest-access-email',
'guest-logon',
'guest-mode',
'gui',
'gui-security-banner-text',
'gui-setup',
'guid',
'guimenuname',
'gw',
'gw-type-prefix',
'h225',
'h323',
'h323-gateway',
'ha',
'ha-cluster',
'ha-group',
'ha-policy',
'half',
'half-closed',
'half-duplex',
'handover-trigger-profile',
'handshake-timeout',
'hardware',
'hardware-address',
'hardware-count',
'has-known-vulnerabilities',
'hash',
'hash-algorithm',
'hash-key',
'head',
'header-compression',
'header-passing',
'heartbeat',
'heartbeat-interval',
'heartbeat-time',
'heartbeat-timeout',
'hello',
'hello-adjacency',
'hello-authentication',
'hello-authentication-key',
'hello-authentication-type',
'hello-interval',
'hello-multiplier',
'hello-padding',
'hello-password',
'helper-address',
'helper-disable',
'helper-enable',
'helpers',
'hex-key',
'hidden',
'hidden-shares',
'hidekeys',
'high',
'high-availability',
'high-resolution',
'highest-ip',
'hip-header',
'hip-profiles',
'history',
'hmac-md5-96',
'hmac-sha-1',
'hmac-sha-1-96',
'hmac-sha1-96',
'hmm',
'hold-character',
'hold-queue',
'hold-time',
'holdtime',
'home-address-option',
'homedir',
'hop-by-hop',
'hop-by-hop-header',
'hop-limit',
'hoplimit',
'hops-of-statistics-kept',
'host',
'host-association',
'host-flap',
'host-inbound-traffic',
'host-info',
'host-isolated',
'host-name',
'host-precedence-unreachable',
'host-precedence-violation',
'host-proxy',
'host-query',
'host-reachability',
'host-redirect',
'host-report',
'host-route',
'host-routes',
'host-routing',
'host-tos-redirect',
'host-tos-unreachable',
'host-unknown',
'host-unreachable',
'host-unreachable-for-tos',
'hostkey-algorithm',
'hostname',
'hostnameprefix',
'hotspot',
'hourly',
'hours',
'hp-alarm-mgr',
'hpm',
'hsc',
'hsrp',
'ht-ssid-profile',
'html',
'http',
'http-alt',
'http-commands',
'http-compression',
'http-method',
'http-mgmt',
'http-proxy-connect',
'http-server',
'http-tpc-epmap',
'http2',
'httpd',
'https',
'hunt',
'hw-hash',
'hw-id',
'hw-module',
'hw-switch',
'hwaddress',
'ibgp',
'ibgp-multipath',
'iburst',
'icap',
'iccp',
'icmp',
'icmp-alternate-address',
'icmp-code',
'icmp-conversion-error',
'icmp-echo',
'icmp-echo-reply',
'icmp-error',
'icmp-errors',
'icmp-information-reply',
'icmp-information-request',
'icmp-mask-reply',
'icmp-mask-request',
'icmp-mobile-redirect',
'icmp-object',
'icmp-off',
'icmp-parameter-problem',
'icmp-redirect',
'icmp-router-advertisement',
'icmp-router-solicitation',
'icmp-source-quench',
'icmp-time-exceeded',
'icmp-timestamp-reply',
'icmp-timestamp-request',
'icmp-traceroute',
'icmp-type',
'icmp-unreachable',
'icmp6',
'icmp6-code',
'icmp6-echo',
'icmp6-echo-reply',
'icmp6-membership-query',
'icmp6-membership-reduction',
'icmp6-membership-report',
'icmp6-neighbor-advertisement',
'icmp6-neighbor-redirect',
'icmp6-neighbor-solicitation',
'icmp6-packet-too-big',
'icmp6-parameter-problem',
'icmp6-router-advertisement',
'icmp6-router-renumbering',
'icmp6-router-solicitation',
'icmp6-time-exceeded',
'icmp6-type',
'icmp6-unreachable',
'icmpcode',
'icmptype',
'icmpv6',
'icmpv6-malformed',
'id',
'id-mismatch',
'id-randomization',
'ideal-coverage-index',
'ident',
'ident-reset',
'identifier',
'identity',
'idle',
'idle-hold-time',
'idle-restart-timer',
'idle-timeout',
'idle-timeout-override',
'idletimeout',
'idp-cert',
'idp-sync-update',
'ids',
'ids-option',
'ids-profile',
'iec',
'ieee',
'ieee-mms-ssl',
'ietf',
'ietf-format',
'if',
'if-needed',
'if-route-exists',
'iface',
'ifacl',
'ifdescr',
'ifile',
'ifindex',
'ifmap',
'ifmib',
'ifname',
'ifp',
'igmp',
'igmp-snooping',
'ignore',
'ignore-attached-bit',
'ignore-l3-incompletes',
'igp',
'igp-cost',
'igp-intact',
'igrp',
'ike',
'ike-crypto-profiles',
'ike-esp-nat',
'ike-group',
'ike-policy',
'ike-user-type',
'ikev1',
'ikev2',
'ikev2-profile',
'ikev2-reauth',
'ilnp-nonce-option',
'ilx',
'imap',
'imap3',
'imap4',
'imaps',
'immediate',
'immediately',
'impersonation-profile',
'implicit-user',
'import',
'import-localpref',
'import-nexthop',
'import-policy',
'import-rib',
'import-rt',
'in',
'in-place',
'inactive',
'inactive:',
'inactivity-timeout',
'inactivity-timer',
'inband',
'inbound',
'include-mp-next-hop',
'include-reserve',
'include-stub',
'incoming',
'incoming-bgp-connection',
'incomplete',
'inconsistency',
'index',
'indirect-next-hop',
'indirect-next-hop-change-acknowledgements',
'inet',
'inet-mdt',
'inet-mvpn',
'inet-vpn',
'inet6',
'inet6-mvpn',
'inet6-vpn',
'infinity',
'info-reply',
'info-request',
'inform',
'information',
'information-reply',
'information-request',
'informational',
'informs',
'ingress',
'ingress-replication',
'inherit',
'inherit-certkeychain',
'inheritance',
'inheritance-disable',
'init',
'init-string',
'init-tech-list',
'initial-role',
'initiate',
'inject-map',
'inner',
'input',
'input-list',
'input-vlan-map',
'insecure',
'insert',
'inservice',
'inside',
'inspect',
'inspection',
'install',
'install-map',
'install-nexthop',
'install-oifs',
'install-route',
'instance',
'instance-import',
'instance-type',
'integer',
'integrated-vtysh-config',
'integrity',
'inter',
'inter-area',
'inter-area-prefix-lsa',
'inter-interface',
'interactive-commands',
'interarea',
'intercept',
'interconnect-device',
'interface',
'interface-inheritance',
'interface-mode',
'interface-routes',
'interface-specific',
'interface-statistics',
'interface-subnet',
'interface-switch',
'interface-transmit-statistics',
'interface-type',
'interface-vlan',
'interfaces',
'internal',
'internet',
'internet-options',
'internet-service-id',
'internet-service-name',
'interval',
'interworking',
'interzone',
'intra',
'intra-area',
'intra-interface',
'intrazone',
'invalid',
'invalid-spi-recovery',
'invalid-username-log',
'invert',
'invert-match',
'ios-regex',
'ip',
'ip route table for vrf',
'ip-address',
'ip-destination-address',
'ip-dscp',
'ip-flow-export-profile',
'ip-forward',
'ip-header-bad',
'ip-in-udp',
'ip-netmask',
'ip-options',
'ip-protocol',
'ip-range',
'ip-rr',
'ip-source-address',
'ip-sweep',
'ipaddr',
'ipaddress',
'ipbroadcast',
'ipc',
'ipenacl',
'iphc-format',
'ipinip',
'ipip',
'ipip-4in4',
'ipip-4in6',
'ipip-6in4',
'ipip-6in6',
'ipip-6over4',
'ipip-6to4relay',
'ipmask',
'ipother',
'ipp',
'iprange',
'ipsec',
'ipsec-crypto-profiles',
'ipsec-interfaces',
'ipsec-isakmp',
'ipsec-manual',
'ipsec-over-tcp',
'ipsec-policy',
'ipsec-proposal',
'ipsec-udp',
'ipsec-vpn',
'ipsecalg',
'ipsla',
'iptables',
'ipv4',
'ipv4-address',
'ipv4-l5',
'ipv4-unicast',
'ipv6',
'ipv6-address-pool',
'ipv6-dest-miss',
'ipv6-extension-header',
'ipv6-extension-header-limit',
'ipv6-malformed-header',
'ipv6-rpf-failure',
'ipv6-sg-rpf-failure',
'ipv6-unicast',
'ipv6ip',
'ipx',
'irc',
'irdp',
'iris-beep',
'is',
'is directly connected',
'is variably subnetted',
'is-fragment',
'is-local',
'is-type',
'isakmp',
'isakmp-profile',
'isatap',
'iscsi',
'isdn',
'isi-gl',
'isis',
'isis-enhanced',
'isis-metric',
'isl',
'iso',
'iso-tsap',
'iso-vpn',
'isolate',
'isolation',
'ispf',
'issuer-name',
'iuc',
'join-group',
'join-prune',
'join-prune-count',
'join-prune-interval',
'join-prune-mtu',
'jp-interval',
'jp-policy',
'jumbo',
'jumbo-payload-option',
'jumbomtu',
'junos-aol',
'junos-bgp',
'junos-biff',
'junos-bootpc',
'junos-bootps',
'junos-chargen',
'junos-cifs',
'junos-cvspserver',
'junos-dhcp-client',
'junos-dhcp-relay',
'junos-dhcp-server',
'junos-discard',
'junos-dns-tcp',
'junos-dns-udp',
'junos-echo',
'junos-finger',
'junos-ftp',
'junos-ftp-data',
'junos-gnutella',
'junos-gopher',
'junos-gprs-gtp-c',
'junos-gprs-gtp-u',
'junos-gprs-gtp-v0',
'junos-gprs-sctp',
'junos-gre',
'junos-gtp',
'junos-h323',
'junos-host',
'junos-http',
'junos-http-ext',
'junos-https',
'junos-icmp-all',
'junos-icmp-ping',
'junos-icmp6-all',
'junos-icmp6-dst-unreach-addr',
'junos-icmp6-dst-unreach-admin',
'junos-icmp6-dst-unreach-beyond',
'junos-icmp6-dst-unreach-port',
'junos-icmp6-dst-unreach-route',
'junos-icmp6-echo-reply',
'junos-icmp6-echo-request',
'junos-icmp6-packet-too-big',
'junos-icmp6-param-prob-header',
'junos-icmp6-param-prob-nexthdr',
'junos-icmp6-param-prob-option',
'junos-icmp6-time-exceed-reassembly',
'junos-icmp6-time-exceed-transit',
'junos-ident',
'junos-ike',
'junos-ike-nat',
'junos-imap',
'junos-imaps',
'junos-internet-locator-service',
'junos-irc',
'junos-l2tp',
'junos-ldap',
'junos-ldp-tcp',
'junos-ldp-udp',
'junos-lpr',
'junos-mail',
'junos-mgcp',
'junos-mgcp-ca',
'junos-mgcp-ua',
'junos-ms-rpc',
'junos-ms-rpc-any',
'junos-ms-rpc-epm',
'junos-ms-rpc-iis-com',
'junos-ms-rpc-iis-com-1',
'junos-ms-rpc-iis-com-adminbase',
'junos-ms-rpc-msexchange',
'junos-ms-rpc-msexchange-directory-nsp',
'junos-ms-rpc-msexchange-directory-rfr',
'junos-ms-rpc-msexchange-info-store',
'junos-ms-rpc-tcp',
'junos-ms-rpc-udp',
'junos-ms-rpc-uuid-any-tcp',
'junos-ms-rpc-uuid-any-udp',
'junos-ms-rpc-wmic',
'junos-ms-rpc-wmic-admin',
'junos-ms-rpc-wmic-admin2',
'junos-ms-rpc-wmic-mgmt',
'junos-ms-rpc-wmic-webm-callresult',
'junos-ms-rpc-wmic-webm-classobject',
'junos-ms-rpc-wmic-webm-level1login',
'junos-ms-rpc-wmic-webm-login-clientid',
'junos-ms-rpc-wmic-webm-login-helper',
'junos-ms-rpc-wmic-webm-objectsink',
'junos-ms-rpc-wmic-webm-refreshing-services',
'junos-ms-rpc-wmic-webm-remote-refresher',
'junos-ms-rpc-wmic-webm-services',
'junos-ms-rpc-wmic-webm-shutdown',
'junos-ms-sql',
'junos-msn',
'junos-nbds',
'junos-nbname',
'junos-netbios-session',
'junos-nfs',
'junos-nfsd-tcp',
'junos-nfsd-udp',
'junos-nntp',
'junos-ns-global',
'junos-ns-global-pro',
'junos-nsm',
'junos-ntalk',
'junos-ntp',
'junos-ospf',
'junos-pc-anywhere',
'junos-persistent-nat',
'junos-ping',
'junos-pingv6',
'junos-pop3',
'junos-pptp',
'junos-printer',
'junos-r2cp',
'junos-radacct',
'junos-radius',
'junos-realaudio',
'junos-rip',
'junos-routing-inbound',
'junos-rsh',
'junos-rtsp',
'junos-sccp',
'junos-sctp-any',
'junos-sip',
'junos-smb',
'junos-smb-session',
'junos-smtp',
'junos-smtps',
'junos-snmp-agentx',
'junos-snpp',
'junos-sql-monitor',
'junos-sqlnet-v1',
'junos-sqlnet-v2',
'junos-ssh',
'junos-stun',
'junos-sun-rpc',
'junos-sun-rpc-any',
'junos-sun-rpc-any-tcp',
'junos-sun-rpc-any-udp',
'junos-sun-rpc-mountd',
'junos-sun-rpc-mountd-tcp',
'junos-sun-rpc-mountd-udp',
'junos-sun-rpc-nfs',
'junos-sun-rpc-nfs-access',
'junos-sun-rpc-nfs-tcp',
'junos-sun-rpc-nfs-udp',
'junos-sun-rpc-nlockmgr',
'junos-sun-rpc-nlockmgr-tcp',
'junos-sun-rpc-nlockmgr-udp',
'junos-sun-rpc-portmap',
'junos-sun-rpc-portmap-tcp',
'junos-sun-rpc-portmap-udp',
'junos-sun-rpc-rquotad',
'junos-sun-rpc-rquotad-tcp',
'junos-sun-rpc-rquotad-udp',
'junos-sun-rpc-ruserd',
'junos-sun-rpc-ruserd-tcp',
'junos-sun-rpc-ruserd-udp',
'junos-sun-rpc-sadmind',
'junos-sun-rpc-sadmind-tcp',
'junos-sun-rpc-sadmind-udp',
'junos-sun-rpc-sprayd',
'junos-sun-rpc-sprayd-tcp',
'junos-sun-rpc-sprayd-udp',
'junos-sun-rpc-status',
'junos-sun-rpc-status-tcp',
'junos-sun-rpc-status-udp',
'junos-sun-rpc-tcp',
'junos-sun-rpc-udp',
'junos-sun-rpc-walld',
'junos-sun-rpc-walld-tcp',
'junos-sun-rpc-walld-udp',
'junos-sun-rpc-ypbind',
'junos-sun-rpc-ypbind-tcp',
'junos-sun-rpc-ypbind-udp',
'junos-sun-rpc-ypserv',
'junos-sun-rpc-ypserv-tcp',
'junos-sun-rpc-ypserv-udp',
'junos-syslog',
'junos-tacacs',
'junos-tacacs-ds',
'junos-talk',
'junos-tcp-any',
'junos-telnet',
'junos-tftp',
'junos-udp-any',
'junos-uucp',
'junos-vdo-live',
'junos-vnc',
'junos-wais',
'junos-who',
'junos-whois',
'junos-winframe',
'junos-wxcontrol',
'junos-x-windows',
'junos-xnm-clear-text',
'junos-xnm-ssl',
'junos-ymsg',
'kbps',
'kbytes',
'keep',
'keep-alive-interval',
'keepalive',
'keepalive-enable',
'keepout',
'kerberos',
'kerberos-adm',
'kerberos-sec',
'kernel',
'key',
'key-chain',
'key-exchange',
'key-hash',
'key-source',
'key-string',
'keyid',
'keypair',
'keypath',
'keyring',
'keys',
'keystore',
'kickstart',
'klogin',
'kod',
'kpasswd',
'krb-prop',
'krb5',
'krb5-telnet',
'krbupdate',
'kron',
'kshell',
'l',
'l2',
'l2-filter',
'l2-interface',
'l2-learning',
'l2-protocol',
'l2-src',
'l2circuit',
'l2protocol',
'l2protocol-tunnel',
'l2tp',
'l2tp-class',
'l2tpv3',
'l2vpn',
'l3',
'l3-interface',
'la-maint',
'label',
'label-switched-path',
'labeled-unicast',
'lacp',
'lacp-bypass-allow',
'lacp-rate',
'lacp-timeout',
'lacp-trunk',
'lacp-udld',
'lag',
'lan',
'land',
'lane',
'lanz',
'lapb',
'large',
'last-as',
'last-listener-query-count',
'last-listener-query-interval',
'last-member-query-count',
'last-member-query-interval',
'last-member-query-response-time',
'latency',
'layer2',
'layer2-control',
'layer3',
'layer3+4',
'lcd-menu',
'ldap',
'ldap-base-dn',
'ldap-login',
'ldap-login-dn',
'ldap-naming-attribute',
'ldap-scope',
'ldaps',
'ldp',
'ldp-synchronization',
'le',
'leak-map',
'learn-vlan-1p-priority',
'learned',
'learning',
'lease',
'length',
'level',
'level-1',
'level-1-2',
'level-2',
'level-2-only',
'license',
'life',
'lifetime',
'lifetime-kilobytes',
'lifetime-seconds',
'limit',
'limit-dn',
'limit-resource',
'limit-session',
'limit-type',
'line',
'line-identification-option',
'line-protocol',
'line-termination',
'linecard',
'linecard-group',
'linecode',
'link',
'link-autoneg',
'link-bandwidth',
'link-change',
'link-debounce',
'link-duplex',
'link-fail',
'link-fault-signaling',
'link-flap',
'link-local',
'link-local-groups-suppression',
'link-mode',
'link-protection',
'link-speed',
'link-state',
'link-status',
'link-type',
'link-up',
'linkdebounce',
'linklocal',
'linksec',
'lisp',
'list',
'listen',
'listen-port',
'listener',
'lldp',
'lldp-admin',
'lldp-globals',
'lldp-med',
'lldp-tlvmap',
'lmp',
'lms-ip',
'lms-preemption',
'lo',
'load-balance',
'load-balancing',
'load-balancing-mode',
'load-defer',
'load-interval',
'load-share',
'load-sharing',
'local',
'local-address',
'local-as',
'local-case',
'local-identity',
'local-interface',
'local-ip',
'local-labeled-route',
'local-port',
'local-preference',
'local-proxy-arp',
'local-tunnelip',
'local-v4-addr',
'local-v6-addr',
'local-volatile',
'local0',
'local1',
'local2',
'local3',
'local4',
'local5',
'local6',
'local7',
'locale',
'localip',
'locality',
'localizedkey',
'location',
'log',
'log-adj-changes',
'log-adjacency-changes',
'log-buffer',
'log-collector',
'log-collector-group',
'log-console',
'log-enable',
'log-end',
'log-file',
'log-input',
'log-internal-sync',
'log-neighbor-changes',
'log-neighbor-warnings',
'log-out-on-disconnect',
'log-prefix',
'log-setting',
'log-settings',
'log-start',
'log-syslog',
'log-traps',
'log-updown',
'logfile',
'logging',
'logical',
'logical-system',
'logical-systems',
'login',
'login-attempts',
'login-authentication',
'login-page',
'loginsession',
'logout-warning',
'long',
'longer',
'longest-prefix',
'lookup',
'loop',
'loop-inconsistency',
'loopback',
'loopguard',
'loops',
'loose',
'loose-source-route',
'loose-source-route-option',
'loss-priority',
'lotusnotes',
'low',
'low-memory',
'lower',
'lpd',
'lpr',
'lpts',
'lre',
'lrq',
'lsa',
'lsa-arrival',
'lsa-group-pacing',
'lsp',
'lsp-equal-cost',
'lsp-gen-interval',
'lsp-interval',
'lsp-lifetime',
'lsp-password',
'lsp-refresh-interval',
'lsp-telemetry',
'lsping',
'lt',
'ltm',
'm0-7',
'm0.',
'm1.',
'm10.',
'm11.',
'm12.',
'm13.',
'm14.',
'm15.',
'm2.',
'm3.',
'm4.',
'm5.',
'm6.',
'm7.',
'm8-15',
'm8.',
'm9.',
'mab',
'mac',
'mac-address',
'mac-address-table',
'mac-default-role',
'mac-learn',
'mac-server-group',
'mac-srvr-admin',
'machine-authentication',
'macro',
'macs',
'mail',
'mail-server',
'main',
'main-cpu',
'maintenance',
'managed-config-flag',
'management',
'management-access',
'management-address',
'management-dhcp',
'management-ip',
'management-only',
'management-plane',
'management-profile',
'management-route',
'manager',
'mangle',
'manual',
'map',
'map-class',
'map-group',
'map-list',
'map-t',
'mapped-port',
'mapping',
'mapping-agent',
'marketing-name',
'martians',
'mask',
'mask-length',
'mask-reply',
'mask-request',
'master',
'master-only',
'masterip',
'match',
'match-across-pools',
'match-across-services',
'match-across-virtuals',
'match-all',
'match-any',
'match-ip-address',
'match-map',
'match-none',
'match1',
'match2',
'match3',
'matches-any',
'matches-every',
'matip-type-a',
'matip-type-b',
'max',
'max-active-handshakes',
'max-age',
'max-aggregate-renegotiation-per-minute',
'max-associations',
'max-authentication-failures',
'max-burst',
'max-clients',
'max-concat-burst',
'max-conferences',
'max-configuration-rollbacks',
'max-configurations-on-flash',
'max-connections',
'max-dn',
'max-ephones',
'max-ifindex-per-module',
'max-length',
'max-links',
'max-lsa',
'max-lsp-lifetime',
'max-med',
'max-metric',
'max-path',
'max-paths',
'max-pre-authentication-packets',
'max-prefixes',
'max-rate',
'max-renegotiations-per-minute',
'max-reuse',
'max-route',
'max-servers',
'max-session-number',
'max-sessions',
'max-sessions-per-connection',
'max-size',
'max-tx-power',
'maxas-limit',
'maxconnections',
'maximum',
'maximum-accepted-routes',
'maximum-active',
'maximum-hops',
'maximum-labels',
'maximum-paths',
'maximum-peers',
'maximum-prefix',
'maximum-record-size',
'maximum-routes',
'maxpoll',
'maxstartups',
'maxsubs',
'mbps',
'mbssid',
'mbytes',
'mcast-boundary',
'mcast-group',
'mcast-rate-opt',
'md5',
'mdix',
'mdt',
'mdt-hello-interval',
'med',
'media',
'media-termination',
'media-type',
'medium',
'medium-high',
'medium-low',
'member',
'member-interface',
'member-range',
'members',
'memory',
'memory-size',
'menu',
'menuname',
'merge-failure',
'mesh-cluster-profile',
'mesh-group',
'mesh-ht-ssid-profile',
'mesh-radio-profile',
'meshed-client',
'message',
'message-counter',
'message-digest',
'message-digest-key',
'message-length',
'message-level',
'message-size',
'metering',
'method',
'method-utilization',
'metric',
'metric-out',
'metric-style',
'metric-type',
'metric2',
'mfib',
'mfib-mode',
'mfwd',
'mgcp',
'mgcp-ca',
'mgcp-pat',
'mgcp-ua',
'mgmt-auth',
'mgmt-server',
'mgmt-user',
'mgt-config',
'mh',
'mib',
'mibs',
'micro-bfd',
'microcode',
'microsoft-ds',
'midcall-signaling',
'min-active-members',
'min-length',
'min-links',
'min-packet-size',
'min-rate',
'min-route-adv-interval',
'min-rx',
'min-tx-power',
'min_rx',
'minimal',
'minimum',
'minimum-active',
'minimum-interval',
'minimum-links',
'minimum-threshold',
'minpoll',
'minutes',
'mirror',
'mismatch',
'missing-as-worst',
'missing-policy',
'mixed',
'mka',
'mlag',
'mlag-system-id',
'mld',
'mld-query',
'mld-reduction',
'mld-report',
'mldv2',
'mls',
'mobile',
'mobile-host-redirect',
'mobile-ip',
'mobile-redirect',
'mobileip-agent',
'mobilip-mn',
'mobility',
'mobility-header',
'mod-ssl-methods',
'mode',
'modem',
'modulation-profile',
'module',
'module-type',
'modulus',
'mofrr',
'mofrr-lockout-timer',
'mofrr-loss-detection-timer',
'mon',
'monitor',
'monitor-interface',
'monitor-map',
'monitor-session',
'monitoring',
'monitoring-basics',
'mop',
'motd',
'move',
'mpls',
'mpls-label',
'mpp',
'mqtt',
'mroute',
'mroute-cache',
'mrouter',
'ms',
'ms-rpc',
'ms-sql-m',
'ms-sql-s',
'mschap',
'mschapv2',
'msdp',
'msdp-peer',
'msec',
'msexch-routing',
'msg-icp',
'msie-proxy',
'msp',
'msrp',
'msrpc',
'mss',
'mst',
'mstp',
'mstpctl-bpduguard',
'mstpctl-portadminedge',
'mstpctl-portbpdufilter',
'mta',
'mtu',
'mtu-discovery',
'mtu-failure',
'mtu-ignore',
'mtu-override',
'multi-chassis',
'multi-config',
'multi-topology',
'multicast',
'multicast-address',
'multicast-boundary',
'multicast-group',
'multicast-intact',
'multicast-mac',
'multicast-mode',
'multicast-routing',
'multicast-static-only',
'multihop',
'multilink',
'multipath',
'multipath-relax',
'multiple-as',
'multiplier',
'multiservice-options',
'must-secure',
'mvpn',
'mvr',
'mvrp',
'nac-quar',
'name',
'name-lookup',
'name-resolution',
'name-server',
'named-key',
'nameif',
'names',
'nameserver',
'namespace',
'nas',
'nat',
'nat-control',
'nat-flow',
'nat-transparency',
'nat-traversal',
'native',
'native-vlan-id',
'nbar',
'nbma',
'nbr-unconfig',
'ncp',
'nd',
'nd-na',
'nd-ns',
'nd-type',
'ndp-proxy',
'nearest',
'negate-destination',
'negate-source',
'negotiate',
'negotiated',
'negotiation',
'neighbor',
'neighbor-advertisement',
'neighbor-check-on-recv',
'neighbor-check-on-send',
'neighbor-discovery',
'neighbor-down',
'neighbor-filter',
'neighbor-group',
'neighbor-policy',
'neighbor-solicit',
'neq',
'nested',
'net',
'net-redirect',
'net-tos-redirect',
'net-tos-unreachable',
'net-unreachable',
'netbios-dgm',
'netbios-ns',
'netbios-ss',
'netbios-ssn',
'netconf',
'netdestination',
'netdestination6',
'netexthdr',
'netflow',
'netflow-profile',
'netmask',
'netmask-format',
'netrjs-1',
'netrjs-2',
'netrjs-3',
'netrjs-4',
'netservice',
'netwall',
'netwnews',
'network',
'network-clock',
'network-clock-participate',
'network-clock-select',
'network-delay',
'network-domain',
'network-failover',
'network-object',
'network-policy',
'network-qos',
'network-summary-export',
'network-unknown',
'network-unreachable',
'network-unreachable-for-tos',
'never',
'new-model',
'new-rwho',
'newinfo',
'newroot',
'news',
'next',
'next-header',
'next-hop',
'next-hop-peer',
'next-hop-self',
'next-hop-third-party',
'next-hop-unchanged',
'next-hop-v6-addr',
'next-ip',
'next-ip6',
'next-server',
'next-table',
'next-vr',
'nexthop',
'nexthop-attribute',
'nexthop-list',
'nexthop-self',
'nexthop1',
'nexthop2',
'nexthop3',
'nfs',
'nfsd',
'nhop-only',
'nhrp',
'nls',
'nmsp',
'nntp',
'nntps',
'no',
'no l4r_shim',
'no-active-backbone',
'no-adjacency-down-notification',
'no-advertise',
'no-alias',
'no-anti-replay',
'no-arp',
'no-auto-negotiation',
'no-client-reflect',
'no-ecmp-fast-reroute',
'no-export',
'no-flow-control',
'no-gateway-community',
'no-install',
'no-ipv4-routing',
'no-limit',
'no-nat-traversal',
'no-neighbor-down-notification',
'no-neighbor-learn',
'no-next-header',
'no-nexthop-change',
'no-passwords',
'no-payload',
'no-peer-loop-check',
'no-ping-record-route',
'no-ping-time-stamp',
'no-prepend',
'no-prepend-global-as',
'no-proxy-arp',
'no-readvertise',
'no-redirects',
'no-redirects-ipv6',
'no-redist',
'no-redistribution',
'no-resolve',
'no-retain',
'no-rfc-1583',
'no-room-for-option',
'no-summaries',
'no-summary',
'no-tcp-forwarding',
'no-translation',
'no-traps',
'noauth',
'node',
'node-device',
'node-group',
'node-link-protection',
'noe',
'nohangup',
'nomatch1',
'nomatch2',
'nomatch3',
'non-broadcast',
'non-client',
'non-client-nrt',
'non-critical',
'non-deterministic',
'non-deterministic-med',
'non-dr',
'non-ect',
'non-exist-map',
'non-mlag',
'non-revertive',
'non-silent',
'non500-isakmp',
'none',
'nonegotiate',
'nonstop-routing',
'nopassword',
'normal',
'nos',
'not',
'not-advertise',
'notation',
'notiffacility',
'notification',
'notification-timer',
'notifications',
'notifpriority',
'notify',
'notify-filter',
'notify-licensefile-expiry',
'notify-licensefile-missing',
'notifyaddressname',
'notifyaddressservice',
'notifyaddressstate',
'notifyservicename',
'notifyserviceprotocol',
'notifyserviceraw',
'np6',
'nsf',
'nsr',
'nsr-delay',
'nsr-down',
'nssa',
'nssa-external',
'nsw-fe',
'nt-encrypted',
'ntalk',
'ntp',
'ntp-server-address',
'ntp-servers',
'ntpaddress',
'ntpaltaddress',
'ntpsourceinterface',
'null',
'num-thread',
'nv',
'nve',
'nxapi',
'nxos',
'oam',
'object',
'object-group',
'objstore',
'ocsp-stapling',
'ocsp-stapling-params',
'octet',
'octetstring',
'odmr',
'ofdm',
'ofdm-throughput',
'off',
'offset',
'offset-list',
'old-register-checksum',
'olsr',
'on',
'on-failure',
'on-match',
'on-passive',
'on-startup',
'on-success',
'one',
'one-connect',
'one-out-of',
'only-ofdm',
'oom-handling',
'open',
'open-delay-time',
'openflow',
'openstack',
'openvpn',
'operation',
'opmode',
'ops',
'optical-monitor',
'optimization-profile',
'optimize',
'optimized',
'option',
'option-missing',
'optional',
'optional-modules',
'options',
'or',
'organization-name',
'organization-unit',
'origin',
'origin-id',
'original',
'originate',
'originator-id',
'origins',
'orlonger',
'ospf',
'ospf-ext',
'ospf-external-type-1',
'ospf-external-type-2',
'ospf-int',
'ospf-inter-area',
'ospf-intra-area',
'ospf-nssa-type-1',
'ospf-nssa-type-2',
'ospf3',
'ospfv3',
'ospfv3-ext',
'ospfv3-int',
'other-access',
'other-config-flag',
'oui',
'out',
'out-delay',
'out-of-band',
'outauthtype',
'outbound-acl-check',
'outbound-ssh',
'outer',
'outgoing-bgp-connection',
'output',
'output-list',
'output-vlan-map',
'outside',
'overlay',
'overload',
'overload-control',
'override',
'override-connection-limit',
'override-interval',
'override-metric',
'overrides',
'ovsdb-shutdown',
'owner',
'p2mp',
'p2mp-over-lan',
'p2p',
'package',
'packet',
'packet-capture-defaults',
'packet-length',
'packet-length-except',
'packet-too-big',
'packetcable',
'packets',
'packetsize',
'pager',
'pagp',
'pan',
'pan-options',
'panorama',
'panorama-server',
'param',
'parameter-problem',
'parameters',
'parent',
'parent-dg',
'parity',
'parser',
'participate',
'pass',
'passive',
'passive-interface',
'passive-only',
'passphrase',
'passwd',
'password',
'password-encryption',
'password-policy',
'password-storage',
'pat-pool',
'pat-xlate',
'path',
'path-count',
'path-echo',
'path-jitter',
'path-mtu-discovery',
'path-option',
'path-retransmit',
'path-selection',
'pathcost',
'paths',
'paths-of-statistics-kept',
'pause',
'payload-protocol',
'pbkdf2',
'pbr',
'pbr-statistics',
'pbts',
'pcanywhere-data',
'pcanywhere-status',
'pcp',
'pcp-value',
'pd-route-injection',
'pdp',
'peakdetect',
'peer',
'peer-address',
'peer-as',
'peer-config-check-bypass',
'peer-filter',
'peer-gateway',
'peer-group',
'peer-id-validate',
'peer-ip',
'peer-keepalive',
'peer-link',
'peer-mac-resolution-timeout',
'peer-no-renegotiate-timeout',
'peer-policy',
'peer-session',
'peer-switch',
'peer-to-peer',
'peer-unit',
'peer-vtep',
'peers',
'penalty-period',
'per-ce',
'per-entry',
'per-link',
'per-packet',
'per-prefix',
'per-unit-scheduler',
'per-vlan',
'per-vrf',
'percent',
'percentage',
'perfect-forward-secrecy',
'performance-traffic',
'periodic',
'periodic-inventory',
'periodic-refresh',
'permanent',
'permission',
'permit',
'permit-all',
'permit-hostdown',
'persist',
'persist-database',
'persistence',
'persistent',
'persistent-nat',
'pervasive',
'pfc',
'pfs',
'pgm',
'phone',
'phone-contact',
'phone-number',
'phone-proxy',
'phy',
'physical',
'physical-layer',
'physical-port',
'pickup',
'pim',
'pim-auto-rp',
'pim-sparse',
'pim6',
'ping',
'ping-death',
'pinning',
'pir',
'pki',
'pkix-timestamp',
'pkt-krb-ipsec',
'planned-only',
'plat',
'platform',
'platform-id',
'pm',
'pmtud',
'poap',
'poe',
'point-to-multipoint',
'point-to-point',
'police',
'policer',
'policies',
'policy',
'policy-list',
'policy-map',
'policy-map-input',
'policy-map-output',
'policy-options',
'policy-statement',
'poll',
'poll-interval',
'pool',
'pool-default-port-range',
'pool-utilization-alarm',
'pools',
'pop',
'pop2',
'pop3',
'pop3s',
'port',
'port-channel',
'port-channel-protocol',
'port-description',
'port-mirror',
'port-mirroring',
'port-mode',
'port-name',
'port-object',
'port-overload',
'port-overloading',
'port-overloading-factor',
'port-priority',
'port-profile',
'port-randomization',
'port-scan',
'port-security',
'port-type',
'port-unreachable',
'portadminedge',
'portautoedge',
'portbpdufilter',
'portfast',
'portgroup',
'portmode',
'portnetwork',
'portrestrole',
'ports',
'ports-threshold',
'pos',
'post',
'post-policy',
'post-rulebase',
'post-up',
'postrouting',
'power',
'power-level',
'power-mgr',
'power-monitor',
'poweroff',
'ppm',
'pps',
'pptp',
'prc-interval',
'pre-equalization',
'pre-policy',
'pre-rulebase',
'pre-shared-key',
'pre-shared-keys',
'pre-shared-secret',
'precedence',
'precedence-cutoff-in-effect',
'precedence-unreachable',
'precision-timers',
'predictor',
'preempt',
'prefer',
'preference',
'preferred',
'preferred-path',
'prefix',
'prefix-export-limit',
'prefix-len',
'prefix-len-range',
'prefix-length',
'prefix-length-range',
'prefix-limit',
'prefix-list',
'prefix-list-filter',
'prefix-name',
'prefix-peer-timeout',
'prefix-peer-wait',
'prefix-policy',
'prefix-priority',
'prefix-set',
'prepend',
'prerouting',
'preserve-attributes',
'prf',
'pri-group',
'primary',
'primary-ntp-server',
'primary-port',
'primary-priority',
'print-srv',
'printer',
'priority',
'priority-cost',
'priority-flow-control',
'priority-force',
'priority-group',
'priority-level',
'priority-mapping',
'priority-queue',
'priv',
'privacy',
'private',
'private-as',
'private-key',
'private-vlan',
'privilege',
'privilege-mode',
'proactive',
'probe',
'process',
'process-failures',
'process-max-time',
'processes',
'product',
'profile',
'profile-group',
'profiles',
'progress_ind',
'prompt',
'prone-to-misuse',
'propagate',
'propagation-delay',
'proposal',
'proposal-set',
'proposals',
'proprietary',
'protect',
'protect-ssid',
'protect-tunnel',
'protect-valid-sta',
'protection',
'protocol',
'protocol-discovery',
'protocol-http',
'protocol-number',
'protocol-object',
'protocol-unreachable',
'protocol-version',
'protocol-violation',
'protocols',
'provider-tunnel',
'provision',
'provisioning-profile',
'proxy',
'proxy-arp',
'proxy-ca-cert',
'proxy-ca-key',
'proxy-identity',
'proxy-leave',
'proxy-macip-advertisement',
'proxy-server',
'proxy-ssl',
'proxy-ssl-passthrough',
'pruning',
'psecure-violation',
'pseudo-ethernet',
'pseudo-information',
'pseudowire',
'pseudowire-class',
'psh',
'ptp',
'ptp-event',
'ptp-general',
'pubkey-chain',
'public-key',
'put',
'pvc',
'pvid',
'q931',
'qmtp',
'qoe',
'qos',
'qos-group',
'qos-mapping',
'qos-policy',
'qos-policy-output',
'qos-sc',
'qotd',
'qualified-next-hop',
'quality-of-service',
'querier',
'querier-timeout',
'query',
'query-count',
'query-interval',
'query-max-response-time',
'query-only',
'query-response-interval',
'query-timeout',
'queue',
'queue-buffers',
'queue-length',
'queue-limit',
'queue-monitor',
'queue-set',
'queueing',
'queuing',
'quick-start-option',
'quit',
'r2cp',
'ra',
'ra-interval',
'ra-lifetime',
'radacct',
'radius',
'radius-accounting',
'radius-acct',
'radius-common-pw',
'radius-interim-accounting',
'radius-options',
'radius-server',
'radprimacctsecret',
'radprimsecret',
'radsecacctsecret',
'radsecsecret',
'random',
'random-detect',
'random-detect-label',
'range',
'range-address',
'ras',
'rate',
'rate-limit',
'rate-mode',
'rate-per-route',
'rate-thresholds-profile',
'raw',
'rba',
'rbacl',
'rcmd',
'rcp',
'rcv-queue',
'rd',
'rd-set',
're-mail-ck',
'reachability',
'reachable-time',
'reachable-via',
'react',
'reaction',
'reaction-configuration',
'reaction-trigger',
'read',
'read-only',
'read-only-password',
'read-write',
'readonly',
'readvertise',
'real',
'real-time-config',
'realaudio',
'reassembly-timeout',
'reauthentication',
'receive',
'receive-only',
'receive-queue',
'receive-window',
'received',
'recirculation',
'reconnect-interval',
'record',
'record-entry',
'record-route-option',
'recovery',
'recurring',
'recursive',
'recv',
'recv-disable',
'red',
'redirect',
'redirect-for-host',
'redirect-for-network',
'redirect-for-tos-and-host',
'redirect-for-tos-and-net',
'redirect-fqdn',
'redirect-list',
'redirect-pause',
'redirects',
'redist',
'redist-profile',
'redist-rules',
'redistribute',
'redistribute-internal',
'redistributed',
'redistributed-prefixes',
'redundancy',
'redundancy-group',
'redundant',
'redundant-ether-options',
'redundant-parent',
'reed-solomon',
'reference-bandwidth',
'reflect',
'reflection',
'reflector-client',
'reflector-cluster-id',
'reflexive-list',
'refresh',
'regexp',
'register-rate-limit',
'register-source',
'registered',
'regulatory-domain-profile',
'reinit',
'reject',
'reject-default-route',
'rekey',
'relay',
'relay-agent-option',
'reload',
'reload-delay',
'reload-type',
'relogging-interval',
'remark',
'remote',
'remote-access',
'remote-as',
'remote-id',
'remote-ip',
'remote-neighbors',
'remote-port',
'remote-ports',
'remote-server',
'remote-span',
'remoteaccesslist',
'remotefs',
'remove',
'remove-private',
'remove-private-as',
'removed',
'rename',
'renegotiate-max-record-delay',
'renegotiate-period',
'renegotiate-size',
'renegotiation',
'reoptimize',
'repcmd',
'repeat-messages',
'replace',
'replace-as',
'replace:',
'replacemsg',
'replacemsg-image',
'reply',
'reply-to',
'report-flood',
'report-interval',
'report-policy',
'report-suppression',
'req-resp',
'req-trans-policy',
'request',
'request-adapt',
'request-data-size',
'request-log',
'require-wpa',
'required',
'required-option-missing',
'reserve',
'reset',
'reset-both',
'reset-client',
'reset-server',
'resolution',
'resolve',
'resource',
'resource-pool',
'resources',
'respond',
'responder',
'responder-url',
'response',
'response-adapt',
'rest',
'restart',
'restart-time',
'restrict',
'restricted',
'result',
'result-type',
'resume',
'resync-period',
'retain',
'retransmit',
'retransmit-interval',
'retransmit-timeout',
'retries',
'retry',
'return',
'reverse',
'reverse-access',
'reverse-path',
'reverse-route',
'reverse-ssh',
'reverse-telnet',
'revertive',
'revision',
'revocation-check',
'rewrite',
'rf',
'rf-channel',
'rf-power',
'rf-shutdown',
'rf-switch',
'rfc-3576-server',
'rfc1583',
'rfc1583compatibility',
'rib',
'rib-group',
'rib-groups',
'rib-has-route',
'rib-in',
'rib-metric-as-external',
'rib-metric-as-internal',
'rib-scale',
'ribs',
'ring',
'rip',
'ripng',
'risk',
'rje',
'rkinit',
'rlogin',
'rlp',
'rlzdbase',
'rmc',
'rmon',
'rmonitor',
'robustness',
'robustness-count',
'robustness-variable',
'rogue-ap-aware',
'role',
'root',
'root-authentication',
'root-inconsistency',
'root-login',
'rotary',
'round-robin',
'routable',
'route',
'route-advertisement',
'route-cache',
'route-distinguisher',
'route-distinguisher-id',
'route-domain',
'route-filter',
'route-key',
'route-lookup',
'route-map',
'route-map-cache',
'route-map-in',
'route-map-out',
'route-only',
'route-policy',
'route-preference',
'route-record',
'route-reflector',
'route-reflector-client',
'route-source',
'route-table',
'route-tag',
'route-target',
'route-to-peer',
'route-type',
'routed',
'router',
'router-advertisement',
'router-alert',
'router-alert-option',
'router-discovery',
'router-id',
'router-interface',
'router-lsa',
'router-mac',
'router-preference',
'router-solicit',
'router-solicitation',
'routes',
'routine',
'routing',
'routing-header',
'routing-instance',
'routing-instances',
'routing-options',
'routing-table',
'rp',
'rp-address',
'rp-announce-filter',
'rp-candidate',
'rp-list',
'rp-static-deny',
'rpc-program-number',
'rpc2portmap',
'rpf',
'rpf-check',
'rpf-failure',
'rpf-redirect',
'rpf-vector',
'rpl-option',
'rpm',
'rrm-ie-profile',
'rsa',
'rsa-signatures',
'rsakeypair',
'rsh',
'rst',
'rstp',
'rsvp',
'rsvp-te',
'rsync',
'rt',
'rtcp-inactivity',
'rtelnet',
'rtp',
'rtp-port',
'rtr',
'rtr-adv',
'rtsp',
'rule',
'rule-name',
'rule-set',
'rule-type',
'rulebase',
'rules',
'run',
'rx',
'rx-cos-slot',
'rxspeed',
'sa-filter',
'same-security-traffic',
'sample',
'sampled',
'sampler',
'sampler-map',
'samples-of-history-kept',
'sampling',
'sap',
'sat',
'satellite',
'satellite-fabric-link',
'saved-core-context',
'saved-core-files',
'scale-factor',
'scaleout-device-id',
'scan-time',
'scanning',
'sccp',
'sched-type',
'schedule',
'scheduler',
'scheme',
'scope',
'scp',
'scp-server',
'scramble',
'screen',
'script',
'scripting',
'scripts',
'sctp',
'sctp-portrange',
'sdm',
'sdn',
'sdr',
'sdrowner',
'sdwan',
'secondary',
'secondary-dialtone',
'secondary-ip',
'secondary-ntp-server',
'secondaryip',
'seconds',
'secret',
'secure',
'secure-mac-address',
'secure-renegotiation',
'secureid-udp',
'security',
'security-association',
'security-level',
'security-option',
'security-profile',
'security-violation',
'security-zone',
'securityv3',
'select',
'selection',
'selective',
'selective-ack',
'self',
'self-allow',
'self-device',
'self-identity',
'send',
'send-community',
'send-community-ebgp',
'send-extended-community-ebgp',
'send-label',
'send-lifetime',
'send-rp-announce',
'send-rp-discovery',
'send-time',
'sender',
'sensor',
'seq',
'sequence',
'sequence-nums',
'serial-number',
'serve',
'serve-only',
'server',
'server-arp',
'server-group',
'server-key',
'server-ldap',
'server-name',
'server-private',
'server-profile',
'server-ssl',
'server-state-change',
'server-type',
'serverfarm',
'servers',
'service',
'service-class',
'service-deployment',
'service-down-action',
'service-family',
'service-filter',
'service-group',
'service-list',
'service-module',
'service-object',
'service-policy',
'service-queue',
'service-template',
'service-type',
'services',
'services-offload',
'session',
'session-authorization',
'session-disconnect-warning',
'session-group',
'session-helper',
'session-id',
'session-key',
'session-limit',
'session-mirroring',
'session-open-mode',
'session-protection',
'session-ticket',
'session-ticket-timeout',
'session-timeout',
'set',
'set-color',
'set-origin',
'set-overload-bit',
'set-sync-leader',
'set-timer',
'setting',
'setup',
'severity',
'sf-interface',
'sflow',
'sfm-dpd-option',
'sftp',
'sftp-server',
'sg-expiry-timer',
'sg-list',
'sg-rpf-failure',
'sgmp',
'sha',
'sha-256',
'sha-384',
'sha1',
'sha2-256-128',
'sha256',
'sha384',
'sha512',
'shapassword',
'shape',
'shared',
'shared-gateway',
'shared-ike-id',
'shared-secondary-secret',
'shared-secret',
'shelfname',
'shell',
'shift',
'shim6-header',
'short',
'short-txt',
'shortcuts',
'shortstring',
'should-secure',
'show',
'shut',
'shutdown',
'sign-hash',
'signal',
'signaling',
'signalled-bandwidth',
'signalled-name',
'signalling',
'signature',
'signature-matching-profile',
'signature-profile',
'signing',
'silc',
'silent',
'simple',
'single-connection',
'single-hop',
'single-router-mode',
'single-topology',
'sip',
'sip-disconnect',
'sip-invite',
'sip-midcall-req-timeout',
'sip-profiles',
'sip-provisional-media',
'sip-server',
'sip-ua',
'sip_media',
'sips',
'site-id',
'site-to-site',
'sitemap',
'size',
'skip',
'sla',
'slaves',
'slot',
'slot-table-cos',
'slow',
'slow-peer',
'slow-ramp-time',
'small',
'small-hello',
'smart-relay',
'smp_affinity',
'smtp',
'smtp-send-fail',
'smtp-server',
'smtps',
'smux',
'snagas',
'snat',
'snat-translation',
'snatpool',
'sni-default',
'sni-require',
'snmp',
'snmp-authfail',
'snmp-index',
'snmp-server',
'snmp-trap',
'snmpgetclient',
'snmpgetcommunity',
'snmpsourceinterface',
'snmptrap',
'snmptrapclient',
'snmptrapcommunity',
'snooping',
'snp',
'snpp',
'snr-max',
'snr-min',
'sntp',
'socks',
'soft-preemption',
'soft-reconfiguration',
'software',
'sonet',
'sonet-options',
'soo',
'sort-by',
'source',
'source-addr',
'source-address',
'source-address-excluded',
'source-address-filter',
'source-address-name',
'source-address-translation',
'source-host-isolated',
'source-identity',
'source-interface',
'source-ip-address',
'source-ip-based',
'source-mac-address',
'source-mask',
'source-nat',
'source-port',
'source-prefix-list',
'source-protocol',
'source-quench',
'source-route',
'source-route-failed',
'source-route-option',
'source-threshold',
'source-translation',
'source-user',
'spam',
'span',
'spanning-tree',
'sparse-dense-mode',
'sparse-mode',
'sparse-mode-ssm',
'spd',
'spe',
'spectrum',
'spectrum-load-balancing',
'spectrum-monitoring',
'speed',
'speed-duplex',
'spf',
'spf-interval',
'spf-options',
'spine-anycast-gateway',
'split-horizon',
'split-tunnel-network-list',
'split-tunnel-policy',
'splitsessionclient',
'splitsessionserver',
'spoofing',
'spt-threshold',
'sqlnet',
'sqlnet-v2',
'sqlserv',
'sqlsrv',
'sr-te',
'src-ip',
'src-mac',
'src-nat',
'srcaddr',
'srcintf',
'srlg',
'srlg-cost',
'srlg-value',
'srr-queue',
'srst',
'ssh',
'ssh-certificate',
'ssh-publickey',
'ssh_keydir',
'sshportlist',
'ssid',
'ssid-enable',
'ssid-profile',
'ssl',
'ssl-forward-proxy',
'ssl-forward-proxy-bypass',
'ssl-profile',
'ssl-sign-hash',
'sslvpn',
'ssm',
'sso-admin',
'stack-mac',
'stack-mib',
'stack-unit',
'stale-route',
'stalepath-time',
'standard',
'standby',
'start',
'start-ip',
'start-stop',
'start-time',
'startup-query-count',
'startup-query-interval',
'stat',
'state',
'state-change',
'state-change-notif',
'stateful-dot1x',
'stateful-kerberos',
'stateful-ntlm',
'static',
'static-group',
'static-host-mapping',
'static-ipv6',
'static-nat',
'static-route',
'static-rpf',
'station',
'station-address',
'station-port',
'station-role',
'statistics',
'stats-cache-lifetime',
'status',
'status-age',
'stbc',
'stcapp',
'sticky',
'sticky-arp',
'stop',
'stop-character',
'stop-only',
'stop-record',
'stop-timer',
'stopbits',
'storage',
'storm-control',
'storm-control-profiles',
'stp',
'stp-globals',
'stpx',
'stream',
'stream-id',
'stream-option',
'streaming',
'street-address',
'streetaddress',
'strict',
'strict-lsa-checking',
'strict-resume',
'strict-rfc-compliant',
'strict-source-route',
'strict-source-route-option',
'stricthostkeycheck',
'string',
'strip',
'structured-data',
'sts-1',
'stub',
'stub-prefix-lsa',
'sub-option',
'sub-route-map',
'sub-type',
'subcategory',
'subinterface',
'subinterfaces',
'subject-name',
'submgmt',
'submission',
'subnet',
'subnet-broadcast',
'subnet-mask',
'subnet-zero',
'subnets',
'subscribe-to',
'subscribe-to-alert-group',
'subscriber',
'subscriber-management',
'substat',
'subtemplate',
'subtract',
'summary',
'summary-address',
'summary-lsa',
'summary-metric',
'summary-only',
'summer-time',
'sun',
'sun-rpc',
'sunrpc',
'sup-1',
'sup-2',
'super-user-password',
'superpassword',
'supplementary-service',
'supplementary-services',
'suppress',
'suppress-arp',
'suppress-data-registers',
'suppress-fib-pending',
'suppress-inactive',
'suppress-map',
'suppress-ra',
'suppress-rpf-change-prunes',
'suppressed',
'supress-fa',
'suspect-rogue-conf-level',
'suspend',
'suspend-individual',
'svc',
'svclc',
'svp',
'svrloc',
'switch',
'switch-cert',
'switch-controller',
'switch-options',
'switch-priority',
'switch-profile',
'switch-type',
'switchback',
'switching-mode',
'switchname',
'switchover',
'switchover-on-routing-crash',
'switchport',
'symmetric',
'syn',
'syn-ack-ack-proxy',
'syn-fin',
'syn-flood',
'syn-frag',
'sync',
'sync-failover',
'sync-igp-shortcuts',
'sync-only',
'synchronization',
'synchronous',
'synwait-time',
'sys',
'sys-mac',
'syscontact',
'syslocation',
'syslog',
'syslogd',
'sysopt',
'systat',
'system',
'system-capabilities',
'system-connected',
'system-description',
'system-init',
'system-max',
'system-name',
'system-priority',
'system-profile',
'system-services',
'system-shutdown',
'system-tunnel-rib',
'system-unicast-rib',
'systemname',
'systemowner',
'table',
'table-map',
'tac_plus',
'tacacs',
'tacacs+',
'tacacs-ds',
'tacacs-server',
'tacplus',
'tacplus-server',
'tacplusprimacctsecret',
'tacplusprimaddr',
'tacplusprimauthorsecret',
'tacplusprimsecret',
'tacplussecacctsecret',
'tacplussecaddr',
'tacplussecauthorsecret',
'tacplussecsecret',
'tacplususesub',
'tag',
'tag-switching',
'tag-type',
'tagged',
'tagging',
'tail-drop',
'talk',
'tap',
'target',
'target-host',
'target-host-port',
'targeted-broadcast',
'targeted-hello',
'targets',
'task',
'task execute',
'task-scheduler',
'taskgroup',
'tb-vlan1',
'tb-vlan2',
'tbrpf',
'tcam',
'tcn',
'tcp',
'tcp-analytics',
'tcp-aol',
'tcp-bgp',
'tcp-chargen',
'tcp-cifs',
'tcp-citrix-ica',
'tcp-cmd',
'tcp-connect',
'tcp-ctiqbe',
'tcp-daytime',
'tcp-discard',
'tcp-domain',
'tcp-echo',
'tcp-established',
'tcp-exec',
'tcp-finger',
'tcp-flags',
'tcp-flags-mask',
'tcp-forwarding',
'tcp-ftp',
'tcp-ftp-data',
'tcp-gopher',
'tcp-h323',
'tcp-hostname',
'tcp-http',
'tcp-https',
'tcp-ident',
'tcp-imap4',
'tcp-initial',
'tcp-inspection',
'tcp-irc',
'tcp-kerberos',
'tcp-klogin',
'tcp-kshell',
'tcp-ldap',
'tcp-ldaps',
'tcp-login',
'tcp-lotusnotes',
'tcp-lpd',
'tcp-mss',
'tcp-netbios-ssn',
'tcp-nfs',
'tcp-nntp',
'tcp-no-flag',
'tcp-option-length',
'tcp-pcanywhere-data',
'tcp-pim-auto-rp',
'tcp-pop2',
'tcp-pop3',
'tcp-portrange',
'tcp-pptp',
'tcp-proxy-reassembly',
'tcp-rsh',
'tcp-rst',
'tcp-rtsp',
'tcp-session',
'tcp-sip',
'tcp-smtp',
'tcp-sqlnet',
'tcp-ssh',
'tcp-sunrpc',
'tcp-sweep',
'tcp-tacacs',
'tcp-talk',
'tcp-telnet',
'tcp-udp',
'tcp-udp-cifs',
'tcp-udp-discard',
'tcp-udp-domain',
'tcp-udp-echo',
'tcp-udp-http',
'tcp-udp-kerberos',
'tcp-udp-nfs',
'tcp-udp-pim-auto-rp',
'tcp-udp-sip',
'tcp-udp-sunrpc',
'tcp-udp-tacacs',
'tcp-udp-talk',
'tcp-udp-www',
'tcp-uucp',
'tcp-whois',
'tcp-www',
'tcp/udp/sctp',
'tcpmux',
'tcpnethaspsrv',
'tcs-load-balance',
'te-metric',
'tear-drop',
'teardown',
'technology',
'telephony-service',
'telnet',
'telnet-server',
'telnetclient',
'template',
'template-stack',
'templates',
'teredo',
'term',
'terminal',
'terminal-type',
'terminate',
'termination',
'test',
'text',
'tftp',
'tftp-server',
'tftp-server-list',
'then',
'threat-detection',
'threat-visibility',
'threshold',
'thresholds',
'throttle',
'through',
'throughput',
'thu',
'tid',
'tie-break',
'time',
'time-exceeded',
'time-format',
'time-out',
'time-range',
'time-until-up',
'time-zone',
'timed',
'timeout',
'timeouts',
'timer',
'timers',
'timesource',
'timestamp',
'timestamp-option',
'timestamp-reply',
'timestamp-request',
'timezone',
'timing',
'tls',
'tls-proxy',
'tlv-select',
'tlv-set',
'tm-voq-collection',
'to',
'to-zone',
'token',
'tolerance',
'tool',
'top',
'topology',
'topologychange',
'tos',
'tos-overwrite',
'trace',
'traceoptions',
'tracer',
'traceroute',
'track',
'tracked',
'tracker',
'tracking-priority-increment',
'traditional',
'traffic',
'traffic-acceleration',
'traffic-class',
'traffic-eng',
'traffic-engineering',
'traffic-export',
'traffic-filter',
'traffic-group',
'traffic-index',
'traffic-loopback',
'traffic-quota',
'traffic-share',
'transceiver',
'transceiver-type-check',
'transfer-system',
'transfers-files',
'transform-set',
'transit-delay',
'translate',
'translate-address',
'translate-port',
'translated-address',
'translated-port',
'translation',
'translation-profile',
'translation-rule',
'transmit',
'transmit-delay',
'transmitter',
'transparent-hw-flooding',
'transport',
'transport-address',
'transport-method',
'transport-mode',
'trap',
'trap-destinations',
'trap-group',
'trap-new-master',
'trap-options',
'trap-source',
'trap-timeout',
'traps',
'trigger',
'trigger-delay',
'trimode',
'true',
'truncation',
'trunk',
'trunk-group',
'trunk-status',
'trunk-threshold',
'trunks',
'trust',
'trust-domain',
'trust-group',
'trusted',
'trusted-key',
'trusted-responders',
'trustpoint',
'trustpool',
'tsid',
'tsm-req-profile',
'ttl',
'ttl-eq-zero-during-reassembly',
'ttl-eq-zero-during-transit',
'ttl-exceeded',
'ttl-exception',
'ttl-failure',
'ttl-threshold',
'tty',
'tue',
'tunable-optic',
'tunnel',
'tunnel-encapsulation-limit-option',
'tunnel-group',
'tunnel-group-list',
'tunnel-id',
'tunnel-rib',
'tunneled',
'tunneled-node-address',
'tunnels',
'tunnels-other-apps',
'turboflex',
'tx',
'tx-queue',
'txspeed',
'type',
'type-1',
'type-2',
'type-7',
'type7',
'uauth',
'uc-tx-queue',
'ucmp',
'udf',
'udld',
'udp',
'udp-biff',
'udp-bootpc',
'udp-bootps',
'udp-cifs',
'udp-discard',
'udp-dnsix',
'udp-domain',
'udp-echo',
'udp-http',
'udp-isakmp',
'udp-jitter',
'udp-kerberos',
'udp-mobile-ip',
'udp-nameserver',
'udp-netbios-dgm',
'udp-netbios-ns',
'udp-nfs',
'udp-ntp',
'udp-pcanywhere-status',
'udp-pim-auto-rp',
'udp-port',
'udp-portrange',
'udp-radius',
'udp-radius-acct',
'udp-rip',
'udp-secureid-udp',
'udp-sip',
'udp-snmp',
'udp-snmptrap',
'udp-sunrpc',
'udp-sweep',
'udp-syslog',
'udp-tacacs',
'udp-talk',
'udp-tftp',
'udp-time',
'udp-timeout',
'udp-who',
'udp-www',
'udp-xdmcp',
'udplite',
'uid',
'unable',
'unauthorized',
'unauthorized-device-profile',
'unchanged',
'unclean-shutdown',
'unicast',
'unicast-address',
'unicast-qos-adjust',
'unicast-routing',
'unidirectional',
'unique',
'unit',
'unit-id',
'units',
'universal',
'unix-socket',
'unknown-protocol',
'unknown-unicast',
'unnumbered',
'unreachable',
'unreachables',
'unselect',
'unset',
'unsuppress-map',
'unsuppress-route',
'untagged',
'untrust',
'untrust-screen',
'up',
'update',
'update-calendar',
'update-delay',
'update-group',
'update-interval',
'update-schedule',
'update-server',
'update-source',
'upgrade',
'upgrade-profile',
'uplink',
'uplink-failure-detection',
'uplinkfast',
'upper',
'ups',
'upstream',
'upstream-start-threshold',
'upto',
'urg',
'uri',
'url',
'url-list',
'urpf',
'urpf-logging',
'us',
'use',
'use-acl',
'use-bia',
'use-config-session',
'use-global',
'use-ipv4-acl',
'use-ipv4acl',
'use-ipv6-acl',
'use-ipv6acl',
'use-link-address',
'use-peer',
'use-self',
'use-vrf',
'used-by',
'used-by-malware',
'user',
'user-defined-option-type',
'user-identity',
'user-message',
'user-role',
'user-statistics',
'user-tag',
'usergroup',
'userid',
'userinfo',
'username',
'username-prompt',
'userpassphrase',
'users',
'using',
'util-interval',
'utm',
'uucp',
'uucp-path',
'uuid',
'v1',
'v1-only',
'v1-rp-reachability',
'v2',
'v2c',
'v3',
'v3-query-max-response-time',
'v3-report-suppression',
'v4',
'v6',
'vacant-message',
'vacl',
'vad',
'valid',
'valid-11a-40mhz-channel-pair',
'valid-11a-80mhz-channel-group',
'valid-11a-channel',
'valid-11g-40mhz-channel-pair',
'valid-11g-channel',
'valid-and-protected-ssid',
'valid-network-oui-profile',
'validate',
'validation-state',
'validation-usage',
'value',
'vap-enable',
'variance',
'vdc',
'vdom',
've',
'vendor-option',
'ver',
'verification',
'verify',
'verify-data',
'version',
'vethernet',
'vfi',
'vfp',
'via',
'video',
'vids',
'view',
'violate',
'violate-action',
'violation',
'virtual',
'virtual-address',
'virtual-ap',
'virtual-chassis',
'virtual-link',
'virtual-reassembly',
'virtual-router',
'virtual-service',
'virtual-switch',
'virtual-template',
'virtual-wire',
'visibility',
'visible-vsys',
'vlan',
'vlan-aware',
'vlan-aware-bundle',
'vlan-group',
'vlan-id',
'vlan-id-list',
'vlan-name',
'vlan-policy',
'vlan-raw-device',
'vlan-tagging',
'vlan-tags',
'vlanid',
'vlans',
'vlans-disabled',
'vlans-enabled',
'vlt',
'vlt-peer-lag',
'vm-cpu',
'vm-memory',
'vmnet',
'vmps',
'vmtracer',
'vn-segment',
'vn-segment-vlan-based',
'vni',
'vni-options',
'vocera',
'voice',
'voice-card',
'voice-class',
'voice-port',
'voice-service',
'voip',
'voip-cac-profile',
'vpc',
'vpdn',
'vpdn-group',
'vpls',
'vpn',
'vpn-dialer',
'vpn-distinguisher',
'vpn-filter',
'vpn-group-policy',
'vpn-idle-timeout',
'vpn-ipv4',
'vpn-ipv6',
'vpn-monitor',
'vpn-session-timeout',
'vpn-simultaneous-logins',
'vpn-tunnel-protocol',
'vpnv4',
'vpnv6',
'vrf',
'vrf-also',
'vrf-export',
'vrf-import',
'vrf-table',
'vrf-table-label',
'vrf-target',
'vrf-unicast-rib',
'vrid',
'vrrp',
'vrrp-group',
'vserver',
'vstack',
'vstp',
'vsys',
'vtep',
'vtep-source-interface',
'vti',
'vtp',
'vty',
'vty-pool',
'vxlan',
'vxlan-anycast-ip',
'vxlan-encapsulation',
'vxlan-id',
'vxlan-local-tunnelip',
'vxlan-vtep-learn',
'wait-for',
'wait-for-bgp',
'wait-for-convergence',
'wait-igp-convergence',
'wait-install',
'wait-start',
'wanopt',
'warning',
'warning-limit',
'warning-only',
'warnings',
'warntime',
'watch-list',
'watchdog',
'wavelength',
'wccp',
'web-acceleration',
'web-cache',
'web-https-port-443',
'web-management',
'web-max-clients',
'web-security',
'web-server',
'webapi',
'webauth',
'webproxy',
'websocket',
'webvpn',
'wed',
'weekday',
'weekend',
'weight',
'weighting',
'weights',
'welcome-page',
'white-list',
'who',
'whois',
'wide',
'wide-metric',
'wide-metrics-only',
'wideband',
'wildcard',
'wildcard-address',
'wildcard-fqdn',
'window',
'window-size',
'winnuke',
'wins-server',
'wired',
'wired-ap-profile',
'wired-containment',
'wired-port-profile',
'wired-to-wireless-roam',
'wireless',
'wireless-containment',
'wirelessmodem',
'wism',
'wispr',
'withdraw',
'without-csd',
'wl-mesh',
'wlan',
'wmm',
'wms-general-profile',
'wms-local-system-profile',
'wpa-fast-handover',
'wred',
'wred-profile',
'write',
'write-memory',
'wrr',
'wrr-queue',
'wsma',
'www',
'x25',
'x29',
'x509',
'xauth',
'xconnect',
'xcvr-misconfigured',
'xcvr-overheat',
'xcvr-power-unsupported',
'xcvr-unsupported',
'xdmcp',
'xdr',
'xlate',
'xmit-hash-policy',
'xml',
'xml-config',
'xnm-clear-text',
'xnm-ssl',
'xns-ch',
'xns-mail',
'xns-time',
'xor',
'yellow',
'yes',
'z39-50',
'zone',
'zone-member',
'zone-pair',
'zones',
'{',
'|',
'||',
'}',
}
| """Default reserved words that should not be anonymized by sensitive word anonymization."""
default_reserved_words = {'!', '"', '#', '$', '%', '&', '&&', '(', ')', '*', '+', ',', '-', '-h', '.', '/', '1', '10000full', '10000half', '1000full', '1000half', '1000m/full', '100full', '100g', '100gfull', '100ghalf', '100half', '100m/full', '100m/half', '10full', '10g-4x', '10half', '10m/full', '10m/half', '2', '2-byte', '25gbase-cr', '3des', '3des-cbc', '4-byte', '40g', '40gfull', '6pe', '802.3ad', '8023ad', ':', ';', '<', '<scrubbed>', '=', '>', '?', '@', '[', '\\', '\\"', '\\n', '\\r', ']', '^', '_', 'aaa', 'aaa-profile', 'aaa-server', 'aaa-user', 'aal5snap', 'absolute-timeout', 'acap', 'accept', 'accept-data', 'accept-dialin', 'accept-lifetime', 'accept-own', 'accept-rate', 'accept-register', 'accept-rp', 'accept-summary', 'accepted-prefix-limit', 'access', 'access-class', 'access-group', 'access-internal', 'access-list', 'access-log', 'access-map', 'access-profile', 'access-session', 'accounting', 'accounting-list', 'accounting-port', 'accounting-server-group', 'accounting-threshold', 'accprofile', 'acct-port', 'acfe', 'ack', 'acl', 'acl-policy', 'acl_common_ip_options', 'acl_global_options', 'acl_icmp', 'acl_igmp', 'acl_indices', 'acl_simple_protocols', 'acl_tcp', 'acl_udp', 'acllog', 'acr-nema', 'action', 'action-type', 'activate', 'activate-service-whitelist', 'activated-service-template', 'activation-character', 'active', 'active-backup', 'active-bonus', 'active-modules', 'active-server-group', 'adaptive', 'add', 'add-path', 'add-paths', 'add-route', 'add-vlan', 'additional-paths', 'additive', 'address', 'address-book', 'address-family', 'address-family-identifier', 'address-group', 'address-hiding', 'address-mask', 'address-pool', 'address-pools', 'address-prefix', 'address-range', 'address-set', 'address-table', 'address-unreachable', 'address-virtual', 'address6', 'addrgroup', 'addrgrp', 'adjacency', 'adjacency-check', 'adjacency-stale-timer', 'adjmgr', 'adjust', 'adjust-mss', 'adjust-tcp-mss', 'admin', 'admin-dist', 'admin-distance', 'admin-dists', 'admin-role', 'admin-state', 'admin-vdc', 'administrative', 'administrative-weight', 'administratively-prohibited', 'admission', 'admission-control', 'adp', 'advertise', 'advertise-all-vni', 'advertise-as-vpn', 'advertise-default-gw', 'advertise-external', 'advertise-inactive', 'advertise-interval', 'advertise-map', 'advertise-only', 'advertise-peer-as', 'advertise-to', 'advertisement', 'advertisement-interval', 'aes', 'aes-128', 'aes-128-cbc', 'aes-128-cmac-96', 'aes-128-gcm', 'aes-192-cbc', 'aes-192-gcm', 'aes-256-cbc', 'aes-256-gcm', 'aes128', 'aes192', 'aes256', 'aesa', 'af-group', 'af-interface', 'af11', 'af12', 'af13', 'af21', 'af22', 'af23', 'af31', 'af32', 'af33', 'af41', 'af42', 'af43', 'affinity', 'affinity-map', 'afpovertcp', 'afs', 'after', 'after-auto', 'age', 'agentx', 'aggregate', 'aggregate-address', 'aggregate-ethernet', 'aggregate-group', 'aggregate-med', 'aggregate-route', 'aggregate-timer', 'aggregated-ether-options', 'aggressive', 'aging', 'ah', 'ah-header', 'ah-md5', 'ah-md5-hmac', 'ah-sha-hmac', 'ahp', 'airgroup', 'airgroupservice', 'ais-shut', 'alarm', 'alarm-report', 'alarm-threshold', 'alarm-without-drop', 'alert', 'alert-group', 'alert-timeout', 'alertmail', 'alerts', 'alg', 'alg-based-cac', 'algorithm', 'alias', 'aliases', 'all', 'all-alarms', 'all-of-router', 'all-subnets', 'allocate', 'allocation', 'allow', 'allow-connections', 'allow-default', 'allow-duplicates', 'allow-dynamic-record-sizing', 'allow-fail-through', 'allow-imported-vpn', 'allow-non-ssl', 'allow-nopassword-remote-login', 'allow-override', 'allow-routing', 'allow-rp', 'allow-self-ping', 'allow-service', 'allow-snooped-clients', 'allow-v4mapped-packets', 'allowas-in', 'allowed', 'alternate-address', 'alternate-as', 'always', 'always-compare-med', 'always-on', 'always-on-vpn', 'always-send', 'always-write-giaddr', 'am-disable', 'am-scan-profile', 'amon', 'amt', 'analytics', 'analyzer', 'and', 'antenna', 'any', 'any-ipv4', 'any-ipv6', 'any-remote-host', 'any-service', 'any4', 'any6', 'anyconnect', 'anyconnect-essentials', 'aol', 'ap', 'ap-blacklist-time', 'ap-classification-rule', 'ap-crash-transfer', 'ap-group', 'ap-lacp-striping-ip', 'ap-name', 'ap-rule-matching', 'ap-system-profile', 'api', 'api-user', 'app', 'app-service', 'appcategory', 'append', 'appletalk', 'application', 'application-filter', 'application-group', 'application-override', 'application-protocol', 'application-set', 'application-tracking', 'applications', 'apply', 'apply-macro', 'apply-path', 'aqm-register-fnf', 'archive', 'archive-length', 'archive-size', 'area', 'area-password', 'area-range', 'arm-profile', 'arm-rf-domain-profile', 'arns', 'arp', 'arp-inspect', 'arp-nd-suppress', 'arp-resp', 'as', 'as-format', 'as-number', 'as-override', 'as-path', 'as-path-expand', 'as-path-group', 'as-path-prepend', 'as-path-set', 'as-range', 'as-set', 'asa', 'ascending', 'ascii-authentication', 'ascii-text', 'asdm', 'asdm-buffer-size', 'asdot', 'asdot-notation', 'asf-rmcp', 'asip-webadmin', 'asn', 'asnotation', 'aspath-cmp-include-nexthop', 'asplain', 'assembler', 'assignment', 'assoc-retransmit', 'associate', 'associate-vrf', 'associated-interface', 'association', 'async', 'async-bootp', 'asynchronous', 'at-rtmp', 'atm', 'attach', 'attached', 'attached-host', 'attached-hosts', 'attached-routes', 'attack-threshold', 'attribute', 'attribute-download', 'attribute-map', 'attribute-names', 'attribute-set', 'attributes', 'audit', 'aurp', 'auth', 'auth-failure-blacklist-time', 'auth-port', 'auth-profile', 'auth-proxy', 'auth-server', 'auth-type', 'authenticate', 'authentication', 'authentication-algorithm', 'authentication-dot1x', 'authentication-key', 'authentication-key-chain', 'authentication-key-chains', 'authentication-mac', 'authentication-method', 'authentication-order', 'authentication-port', 'authentication-profile', 'authentication-restart', 'authentication-retries', 'authentication-server', 'authentication-server-group', 'authentication-type', 'authoritative', 'authorization', 'authorization-required', 'authorization-server-group', 'authorization-status', 'authorize', 'authorized', 'authorized-keys-command', 'authorized-keys-command-user', 'authpriv', 'authtype', 'auto', 'auto-cert-allow-all', 'auto-cert-allowed-addrs', 'auto-cert-prov', 'auto-config', 'auto-cost', 'auto-discard', 'auto-export', 'auto-import', 'auto-local-addr', 'auto-negotiation', 'auto-recovery', 'auto-rp', 'auto-shutdown-new-neighbors', 'auto-snapshot', 'auto-summary', 'auto-sync', 'auto-tunnel', 'auto-update', 'auto-upgrade', 'autoclassify', 'autoconfig', 'autohang', 'autohangup', 'automation-action', 'automation-stitch', 'automation-trigger', 'autonomous-system', 'autorecovery', 'autoroute', 'autoroute-exclude', 'autorp', 'autoselect', 'autostate', 'aux', 'auxiliary', 'back-up', 'backbonefast', 'background-routes-enable', 'backoff-time', 'backup', 'backup-ip', 'backup-router', 'backupcrf', 'bad-inner-header', 'bad-option', 'band-steering', 'bandwidth', 'bandwidth-contract', 'bandwidth-percent', 'bandwidth-percentage', 'banner', 'base', 'base-mac', 'bash', 'bash-shell', 'basic', 'basic-1.0', 'basic-11.0', 'basic-12.0', 'basic-18.0', 'basic-2.0', 'basic-24.0', 'basic-36.0', 'basic-48.0', 'basic-5.5', 'basic-54.0', 'basic-6.0', 'basic-9.0', 'batch-size', 'bc', 'bcmc-optimization', 'bcn-rpt-req-profile', 'be', 'beacon', 'before', 'bestpath', 'bestpath-limit', 'beyond-scope', 'bfd', 'bfd-echo', 'bfd-enable', 'bfd-instance', 'bfd-liveness-detection', 'bfd-template', 'bftp', 'bgmp', 'bgp', 'bgp-community', 'bgp-policy', 'bidir', 'bidir-enable', 'bidir-offer-interval', 'bidir-offer-limit', 'bidir-rp-limit', 'bidirectional', 'biff', 'big', 'bind', 'bind-interface', 'bittorrent', 'bittorrent-application', 'bkup-lms-ip', 'blackhole', 'blacklist', 'blacklist-time', 'block', 'block-allocation', 'block-frag', 'bloggerd', 'bmp', 'bond', 'bond-lacp-bypass-allow', 'bond-lacp-rate', 'bond-master', 'bond-miimon', 'bond-min-links', 'bond-mode', 'bond-slaves', 'bond-xmit-hash-policy', 'bonddevs', 'bonding', 'bondmiimon', 'bondmode', 'bool', 'boolean', 'boot', 'boot-end-marker', 'boot-server', 'boot-start-marker', 'bootfile', 'bootp', 'bootp-relay', 'bootp-support', 'bootpc', 'bootps', 'border', 'border-router', 'both', 'botnet', 'bottom', 'boundary', 'bpdufilter', 'bpduguard', 'bps', 'breakout', 'bridge', 'bridge-access', 'bridge-arp-nd-suppress', 'bridge-domain', 'bridge-domains', 'bridge-group', 'bridge-learning', 'bridge-ports', 'bridge-priority', 'bridge-pvid', 'bridge-vids', 'bridge-vlan-aware', 'broadcast', 'broadcast-address', 'broadcast-client', 'broadcast-filter', 'bsd-client', 'bsd-username', 'bsr', 'bsr-border', 'bsr-candidate', 'buckets', 'buffer', 'buffer-length', 'buffer-limit', 'buffer-size', 'buffered', 'buffers', 'bug-alert', 'build', 'building configuration', 'built-in', 'bundle', 'bundle-speed', 'burst', 'burst-size', 'bypass', 'bytes', 'c-multicast-routing', 'ca', 'ca-cert', 'ca-cert-bundle', 'ca-devices', 'ca-key', 'cable-downstream', 'cable-range', 'cable-upstream', 'cablelength', 'cache', 'cache-sa-holdtime', 'cache-sa-state', 'cache-size', 'cache-timeout', 'calipso-option', 'call', 'call-block', 'call-forward', 'call-home', 'call-manager-fallback', 'caller-id', 'callhome', 'cam-acl', 'cam-profile', 'candidate-bsr', 'candidate-rp', 'capability', 'capacity', 'captive', 'captive-portal-cert', 'capture', 'card', 'card-trap-inh', 'carrier-delay', 'cas-custom', 'case', 'categories', 'category', 'cause', 'ccap-core', 'ccc', 'ccm', 'ccm-group', 'ccm-manager', 'cdp', 'cdp-url', 'cef', 'ceiling', 'centralized-licensing-enable', 'cert', 'cert-extension-includes', 'cert-key-chain', 'cert-lifespan', 'cert-lookup-by-ipaddr-port', 'certificate', 'certificate-authority', 'certificate-profile', 'certificates', 'cfs', 'cgmp', 'chain', 'change-log', 'channel', 'channel-group', 'channel-protocol', 'channelized', 'chap', 'chargen', 'chassis', 'chassis-id', 'chat-script', 'check', 'cifs', 'cipc', 'cipher-group', 'cipherlist', 'ciphers', 'cir', 'circuit-id', 'circuit-type', 'cisco', 'cisco_tdp', 'cisp', 'citadel', 'citrix-ica', 'clag', 'clag-id', 'clagd-backup-ip', 'clagd-peer-ip', 'clagd-priority', 'clagd-sys-mac', 'clagd-vxlan-anycast-ip', 'class', 'class-default', 'class-map', 'class-of-service', 'classification', 'classless', 'cleanup', 'clear', 'clear-session', 'clearcase', 'cli', 'client', 'client-alive-count-max', 'client-alive-interval', 'client-group', 'client-identifier', 'client-identity', 'client-ldap', 'client-list', 'client-list-name', 'client-name', 'client-ssl', 'client-to-client', 'clients', 'clns', 'clock', 'clock-period', 'clone', 'closed', 'cluster', 'cluster-id', 'cluster-list-length', 'cm', 'cmd', 'cmts', 'cns', 'coap', 'codec', 'codes', 'collect', 'collect-stats', 'color', 'color2', 'comm-list', 'command', 'commander-address', 'commands', 'comment', 'comments', 'commerce', 'commit', 'common', 'common-name', 'communication-prohibited-by-filtering', 'community', 'community-list', 'community-map', 'community-set', 'compare-routerid', 'compatibility', 'compatible', 'compress-configuration-files', 'compression', 'compression-connections', 'con', 'condition', 'conf-level-incr', 'confdconfig', 'confed', 'confederation', 'config', 'config-commands', 'config-management', 'config-register', 'configsync-ip', 'configuration', 'configure', 'configversion', 'conflict-policy', 'conform', 'conform-action', 'congestion-control', 'congestion-drops', 'conn', 'conn-holddown', 'connect', 'connect-retry', 'connect-source', 'connected', 'connection', 'connection-limit', 'connection-mode', 'connection-options', 'connection-reuse', 'connection-type', 'connections', 'connections-limit', 'consistency-checker', 'console', 'consortium', 'contact', 'contact-email-addr', 'contact-name', 'content-preview', 'content-type', 'context', 'context-name', 'continue', 'contract-id', 'control', 'control-apps-use-mgmt-port', 'control-plane', 'control-plane-filter', 'control-plane-security', 'control-word', 'controller', 'controller-ip', 'convergence', 'convergence-timeout', 'conversion-error', 'cookie', 'copp', 'cops', 'copy', 'copy-attributes', 'core-tree-protocol', 'cos', 'cos-mapping', 'cos-next-hop-map', 'cos-queue-group', 'cost', 'cost-community', 'count', 'counter', 'counters', 'country', 'country-code', 'courier', 'cpd', 'cptone', 'cpu-share', 'crashinfo', 'crc', 'credentials', 'credibility-protocol-preference', 'critical', 'crl', 'cron', 'crypto', 'crypto-local', 'crypto-profiles', 'cryptochecksum', 'cryptographic-algorithm', 'cs1', 'cs2', 'cs3', 'cs4', 'cs5', 'cs6', 'cs7', 'csd', 'csnet-ns', 'csnp-interval', 'csr-params', 'ctiqbe', 'ctl-file', 'cts', 'current configuration', 'custom', 'custom-language', 'customer-id', 'cvspserver', 'cvx', 'cvx-cluster', 'cvx-license', 'cwr', 'd20-ggrp-default', 'd30-ggrp-default', 'dad', 'daemon', 'dampen', 'dampen-igp-metric', 'dampening', 'dampening-change', 'dampening-interval', 'dampening-profile', 'damping', 'data', 'data-group', 'data-privacy', 'database', 'database-replication', 'databits', 'datacenter', 'days', 'daytime', 'dbl', 'dcb', 'dcb-buffer-threshold', 'dcb-policy', 'dcbx', 'dce-mode', 'ddos-protection', 'deactivate', 'dead-counts', 'dead-interval', 'dead-peer-detection', 'deadtime', 'debounce', 'debug', 'debug-trace', 'debugging', 'decap-group', 'decrement', 'default', 'default-action', 'default-address-selection', 'default-allow', 'default-cost', 'default-destination', 'default-domain', 'default-gateway', 'default-gracetime', 'default-group-policy', 'default-guest-role', 'default-gw', 'default-information', 'default-information-originate', 'default-inspection-traffic', 'default-lifetime', 'default-local-preference', 'default-lsa', 'default-max-frame-size', 'default-metric', 'default-network', 'default-node-monitor', 'default-originate', 'default-peer', 'default-policy', 'default-role', 'default-route', 'default-route-tag', 'default-router', 'default-taskgroup', 'default-tos-qos10', 'default-value', 'default-vrf', 'default-warntime', 'defaults', 'defaults-from', 'definition', 'del', 'delay', 'delay-start', 'delayed-link-state-change', 'delete', 'delete-binding-on-renegotiation', 'delete-dynamic-learn', 'delimiter', 'demand-circuit', 'dense-mode', 'deny', 'deny-all', 'deny-in-out', 'deny-inter-user-traffic', 'depi', 'depi-class', 'depi-tunnel', 'deploy', 'derivation-rules', 'des', 'des-cbc', 'descending', 'description', 'designated-forwarder', 'designated-forwarder-election-hold-time', 'desirable', 'despassword', 'dest-ip', 'dest-miss', 'destination', 'destination-address', 'destination-address-excluded', 'destination-address-name', 'destination-header', 'destination-host-prohibited', 'destination-host-unknown', 'destination-ip', 'destination-ip-based', 'destination-nat', 'destination-network-prohibited', 'destination-network-unknown', 'destination-pattern', 'destination-port', 'destination-port-except', 'destination-prefix-list', 'destination-profile', 'destination-slot', 'destination-threshold', 'destination-translation', 'destination-unreachable', 'destination-vrf', 'detail', 'detect-adhoc-network', 'detect-ap-flood', 'detect-ap-impersonation', 'detect-bad-wep', 'detect-beacon-wrong-channel', 'detect-chopchop-attack', 'detect-client-flood', 'detect-cts-rate-anomaly', 'detect-eap-rate-anomaly', 'detect-hotspotter', 'detect-ht-40mhz-intolerance', 'detect-ht-greenfield', 'detect-invalid-address-combination', 'detect-invalid-mac-oui', 'detect-malformed-association-request', 'detect-malformed-auth-frame', 'detect-malformed-htie', 'detect-malformed-large-duration', 'detect-misconfigured-ap', 'detect-overflow-eapol-key', 'detect-overflow-ie', 'detect-rate-anomalies', 'detect-rts-rate-anomaly', 'detect-tkip-replay-attack', 'detect-valid-ssid-misuse', 'detect-wireless-bridge', 'detect-wireless-hosted-network', 'deterministic-med', 'deterministic-med-comparison', 'dev', 'device', 'device-group', 'device-id', 'device-sensor', 'deviceconfig', 'devices', 'df', 'df-bit', 'dfs', 'dh-group', 'dh-group14', 'dh-group15', 'dh-group16', 'dh-group17', 'dh-group18', 'dh-group19', 'dh-group2', 'dh-group20', 'dh-group21', 'dh-group22', 'dh-group23', 'dh-group24', 'dh-group25', 'dh-group26', 'dh-group5', 'dhcp', 'dhcp-failover2', 'dhcp-giaddr', 'dhcp-local-server', 'dhcp-relay', 'dhcp-snoop', 'dhcp-snooping-vlan', 'dhcpd', 'dhcprelay', 'dhcpv4', 'dhcpv6', 'dhcpv6-client', 'dhcpv6-server', 'diagnostic', 'diagnostic-signature', 'dial-control-mib', 'dial-peer', 'dial-string', 'dialer', 'dialer-group', 'dialer-list', 'dialplan-pattern', 'dialplan-profile', 'diameter', 'dir', 'direct', 'direct-install', 'direct-inward-dial', 'directed-broadcast', 'directed-request', 'direction', 'directly-connected-sources', 'directory', 'disable', 'disable-4byte-as', 'disable-advertisement', 'disable-connected-check', 'disable-peer-as-check', 'disabled', 'discard', 'discard-route', 'discards', 'disconnect', 'discovered-ap-cnt', 'discovery', 'discriminator', 'display', 'display-location', 'display-name', 'dispute', 'distance', 'distribute', 'distribute-list', 'distribution', 'dm-fallback', 'dns', 'dns-domain', 'dns-guard', 'dns-resolver', 'dns-server', 'dns-servers', 'dns-setting', 'dns-suffixes', 'dns1', 'dns2', 'dnsix', 'do', 'do-all', 'do-auto-recovery', 'do-until-failure', 'do-until-success', 'docsis-enable', 'docsis-group', 'docsis-policy', 'docsis-version', 'docsis30-enable', 'dod-host-prohibited', 'dod-net-prohibited', 'domain', 'domain-id', 'domain-list', 'domain-lookup', 'domain-name', 'domain-search', 'done', 'dont-capability-negotiate', 'dos-profile', 'dot', 'dot11', 'dot11a-radio-profile', 'dot11g-radio-profile', 'dot11k-profile', 'dot11r-profile', 'dot1p-priority', 'dot1q-tunnel', 'dot1x', 'dot1x-default-role', 'dot1x-enable', 'dot1x-server-group', 'down', 'downlink', 'downstream', 'downstream-start-threshold', 'dpg', 'dr-delay', 'dr-priority', 'drip', 'drop', 'drop-on-fail', 'drop-path-attributes', 'ds-hello-interval', 'ds-max-burst', 'ds0-group', 'dsa-signatures', 'dscp', 'dscp-lop', 'dscp-value', 'dsg', 'dsl', 'dslite', 'dsp', 'dspfarm', 'dsrwait', 'dss', 'dst', 'dst-mac', 'dst-nat', 'dstaddr', 'dstintf', 'dstopts', 'dsu', 'dtcp-only', 'dtmf-relay', 'dtp', 'dual-active', 'dual-as', 'dual-mode-default-vlan', 'dummy', 'dump-on-panic', 'duplex', 'duplicate-message', 'duration', 'dvmrp', 'dynad', 'dynamic', 'dynamic-access-policy-record', 'dynamic-author', 'dynamic-capability', 'dynamic-db', 'dynamic-dns', 'dynamic-extended', 'dynamic-ip-and-port', 'dynamic-map', 'dynamic-mcast-optimization', 'dynamic-mcast-optimization-thresh', 'dynamic-med-interval', 'dynamic-template', 'e164', 'e164-pattern-map', 'eap-passthrough', 'eapol-rate-opt', 'early-offer', 'ebgp', 'ebgp-multihop', 'ebgp-multipath', 'ece', 'echo', 'echo-cancel', 'echo-reply', 'echo-request', 'echo-rx-interval', 'ecmp', 'ecmp-fast', 'ecmp-group', 'ecn', 'edca-parameters-profile', 'edge', 'edit', 'edition', 'ef', 'effective-ip', 'effective-port', 'efp', 'efs', 'egp', 'egress', 'egress-interface-selection', 'eibgp', 'eigrp', 'eklogin', 'ekshell', 'election', 'eligible', 'else', 'elseif', 'emac-vlan', 'email', 'email-addr', 'email-contact', 'email-server', 'embedded-rp', 'emergencies', 'empty', 'enable', 'enable-acl-cam-sharing', 'enable-acl-counter', 'enable-authentication', 'enable-qos-statistics', 'enable-sender-side-loop-detection', 'enable-welcome-page', 'enabled', 'encapsulation', 'encoding', 'encoding-weighted', 'encr', 'encrypted', 'encrypted-password', 'encryption', 'encryption-algorithm', 'end', 'end-class-map', 'end-ip', 'end-policy', 'end-policy-map', 'end-set', 'endif', 'enet-link-profile', 'enforce-bgp-mdt-safi', 'enforce-dhcp', 'enforce-first-as', 'enforce-rule', 'enforced', 'engine', 'enhanced-hash-key', 'enrollment', 'entries', 'environment', 'environment-monitor', 'ephone-dn-template', 'epm', 'epp', 'eq', 'errdisable', 'error', 'error-correction', 'error-enable', 'error-passthru', 'error-rate-threshold', 'error-recovery', 'error-reporting', 'errors', 'erspan-id', 'escape-character', 'esm', 'esp', 'esp-3des', 'esp-aes', 'esp-aes128', 'esp-aes128-gcm', 'esp-aes192', 'esp-aes256', 'esp-aes256-gcm', 'esp-des', 'esp-gcm', 'esp-gmac', 'esp-group', 'esp-header', 'esp-md5-hmac', 'esp-null', 'esp-seal', 'esp-sha-hmac', 'esp-sha256-hmac', 'esp-sha512-hmac', 'esro-gen', 'essid', 'establish-tunnels', 'established', 'eth', 'ether-options', 'ether-type', 'etherchannel', 'ethernet', 'ethernet-segment', 'ethernet-services', 'ethernet-switching', 'ethernet-switching-options', 'ethertype', 'etype', 'eui-64', 'evaluate', 'evasive', 'event', 'event-handler', 'event-history', 'event-log-size', 'event-monitor', 'event-notify', 'event-options', 'event-thresholds-profile', 'events', 'evpn', 'exact', 'exact-match', 'exceed-action', 'except', 'exception', 'exception-slave', 'excessive-bandwidth-use', 'exclude', 'exclude-member', 'excluded-address', 'exec', 'exec-timeout', 'execute', 'exempt', 'exist-map', 'exit', 'exit-address-family', 'exit-af-interface', 'exit-af-topology', 'exit-peer-policy', 'exit-peer-session', 'exit-service-family', 'exit-sf-interface', 'exit-sf-topology', 'exit-vrf', 'exp', 'expanded', 'expect', 'expiration', 'expire', 'explicit-null', 'explicit-priority', 'explicit-rpf-vector', 'explicit-tracking', 'export', 'export-localpref', 'export-nexthop', 'export-protocol', 'export-rib', 'export-rt', 'exporter', 'exporter-map', 'expression', 'ext-1', 'ext-2', 'extcomm-list', 'extcommunity', 'extcommunity-list', 'extcommunity-set', 'extend', 'extendable', 'extended', 'extended-community', 'extended-counters', 'extended-delay', 'extended-show-width', 'extended-vni-list', 'extensible-subscriber', 'extension-header', 'extension-service', 'extensions', 'external', 'external-interface', 'external-list', 'external-lsa', 'external-preference', 'external-router-id', 'fabric', 'fabric-mode', 'fabric-object', 'fabric-options', 'fabricpath', 'facility', 'facility-alarm', 'facility-override', 'fail-filter', 'fail-over', 'failed', 'failed-list', 'failover', 'fair-queue', 'fall-over', 'fallback', 'fallback-dn', 'false', 'family', 'fan', 'fast', 'fast-age', 'fast-detect', 'fast-external-fallover', 'fast-flood', 'fast-leave', 'fast-reroute', 'fast-select-hot-standby', 'fastdrop', 'fastether-options', 'fasthttp', 'fastl4', 'fax', 'fcoe', 'fcoe-fib-miss', 'fdb', 'fdl', 'feature', 'feature-control', 'feature-module', 'feature-set', 'fec', 'fex', 'fex-fabric', 'fib', 'fiber-node', 'fields', 'file', 'file-browsing', 'file-entry', 'file-size', 'file-transfer', 'filter', 'filter-duplicates', 'filter-interfaces', 'filter-list', 'filtering', 'fin', 'fin-no-ack', 'finger', 'fingerprint-hash', 'firewall', 'firewall-visibility', 'firmware', 'first-fragment', 'fix', 'flap-list', 'flash', 'flash-override', 'flat', 'flexible-vlan-tagging', 'floating-conn', 'flood', 'flow', 'flow-accounting', 'flow-aggregation', 'flow-cache', 'flow-capture', 'flow-control', 'flow-export', 'flow-gate', 'flow-sampler', 'flow-sampler-map', 'flow-sampling-mode', 'flow-session', 'flow-spec', 'flow-top-talkers', 'flowcont', 'flowcontrol', 'flowspec', 'flush-at-activation', 'flush-r1-on-new-r0', 'flush-routes', 'folder', 'for', 'force', 'force-order', 'force-up', 'forced', 'forever', 'format', 'fortiguard-wf', 'forward', 'forward-digits', 'forward-error-correction', 'forward-protocol', 'forward-snooped-clients', 'forwarder', 'forwarding', 'forwarding-class', 'forwarding-class-accounting', 'forwarding-latency', 'forwarding-options', 'forwarding-table', 'forwarding-threshold', 'four-byte-as', 'fpd', 'fpga', 'fqdn', 'fragment', 'fragment-header', 'fragment-offset', 'fragment-offset-except', 'fragment-rules', 'fragmentation', 'fragmentation-needed', 'fragments', 'frame-relay', 'framing', 'free-channel-index', 'frequency', 'fri', 'from', 'from-peer', 'from-user', 'from-zone', 'frr', 'ft', 'ftp', 'ftp-data', 'ftp-server', 'ftps', 'ftps-data', 'full', 'full-duplex', 'full-txt', 'g709', 'g729', 'gatekeeper', 'gateway', 'gateway-icmp', 'gateway1', 'gbps', 'gdoi', 'ge', 'general-group-defaults', 'general-parameter-problem', 'general-profile', 'generate', 'generic-alert', 'geography', 'get', 'gid', 'gig-default', 'gigether-options', 'glbp', 'glean', 'global', 'global-bfd', 'global-mtu', 'global-port-security', 'global-protect-app-crypto-profiles', 'global-settings', 'globalenforcepriv', 'godi', 'gopher', 'goto', 'gr-delay', 'grace-period', 'graceful', 'graceful-restart', 'graceful-restart-helper', 'gracetime', 'grant', 'gratuitous', 'gratuitous-arps', 'gre', 'gre-4in4', 'gre-4in6', 'gre-6in4', 'gre-6in6', 'green', 'group', 'group-alias', 'group-ike-id', 'group-list', 'group-lock', 'group-object', 'group-policy', 'group-range', 'group-timeout', 'group-url', 'group1', 'group14', 'group15', 'group16', 'group19', 'group2', 'group20', 'group21', 'group24', 'group5', 'groups', 'groups-per-interface', 'gshut', 'gt', 'gtp', 'gtp-c', 'gtp-prime', 'gtp-u', 'guaranteed', 'guard', 'guest-access-email', 'guest-logon', 'guest-mode', 'gui', 'gui-security-banner-text', 'gui-setup', 'guid', 'guimenuname', 'gw', 'gw-type-prefix', 'h225', 'h323', 'h323-gateway', 'ha', 'ha-cluster', 'ha-group', 'ha-policy', 'half', 'half-closed', 'half-duplex', 'handover-trigger-profile', 'handshake-timeout', 'hardware', 'hardware-address', 'hardware-count', 'has-known-vulnerabilities', 'hash', 'hash-algorithm', 'hash-key', 'head', 'header-compression', 'header-passing', 'heartbeat', 'heartbeat-interval', 'heartbeat-time', 'heartbeat-timeout', 'hello', 'hello-adjacency', 'hello-authentication', 'hello-authentication-key', 'hello-authentication-type', 'hello-interval', 'hello-multiplier', 'hello-padding', 'hello-password', 'helper-address', 'helper-disable', 'helper-enable', 'helpers', 'hex-key', 'hidden', 'hidden-shares', 'hidekeys', 'high', 'high-availability', 'high-resolution', 'highest-ip', 'hip-header', 'hip-profiles', 'history', 'hmac-md5-96', 'hmac-sha-1', 'hmac-sha-1-96', 'hmac-sha1-96', 'hmm', 'hold-character', 'hold-queue', 'hold-time', 'holdtime', 'home-address-option', 'homedir', 'hop-by-hop', 'hop-by-hop-header', 'hop-limit', 'hoplimit', 'hops-of-statistics-kept', 'host', 'host-association', 'host-flap', 'host-inbound-traffic', 'host-info', 'host-isolated', 'host-name', 'host-precedence-unreachable', 'host-precedence-violation', 'host-proxy', 'host-query', 'host-reachability', 'host-redirect', 'host-report', 'host-route', 'host-routes', 'host-routing', 'host-tos-redirect', 'host-tos-unreachable', 'host-unknown', 'host-unreachable', 'host-unreachable-for-tos', 'hostkey-algorithm', 'hostname', 'hostnameprefix', 'hotspot', 'hourly', 'hours', 'hp-alarm-mgr', 'hpm', 'hsc', 'hsrp', 'ht-ssid-profile', 'html', 'http', 'http-alt', 'http-commands', 'http-compression', 'http-method', 'http-mgmt', 'http-proxy-connect', 'http-server', 'http-tpc-epmap', 'http2', 'httpd', 'https', 'hunt', 'hw-hash', 'hw-id', 'hw-module', 'hw-switch', 'hwaddress', 'ibgp', 'ibgp-multipath', 'iburst', 'icap', 'iccp', 'icmp', 'icmp-alternate-address', 'icmp-code', 'icmp-conversion-error', 'icmp-echo', 'icmp-echo-reply', 'icmp-error', 'icmp-errors', 'icmp-information-reply', 'icmp-information-request', 'icmp-mask-reply', 'icmp-mask-request', 'icmp-mobile-redirect', 'icmp-object', 'icmp-off', 'icmp-parameter-problem', 'icmp-redirect', 'icmp-router-advertisement', 'icmp-router-solicitation', 'icmp-source-quench', 'icmp-time-exceeded', 'icmp-timestamp-reply', 'icmp-timestamp-request', 'icmp-traceroute', 'icmp-type', 'icmp-unreachable', 'icmp6', 'icmp6-code', 'icmp6-echo', 'icmp6-echo-reply', 'icmp6-membership-query', 'icmp6-membership-reduction', 'icmp6-membership-report', 'icmp6-neighbor-advertisement', 'icmp6-neighbor-redirect', 'icmp6-neighbor-solicitation', 'icmp6-packet-too-big', 'icmp6-parameter-problem', 'icmp6-router-advertisement', 'icmp6-router-renumbering', 'icmp6-router-solicitation', 'icmp6-time-exceeded', 'icmp6-type', 'icmp6-unreachable', 'icmpcode', 'icmptype', 'icmpv6', 'icmpv6-malformed', 'id', 'id-mismatch', 'id-randomization', 'ideal-coverage-index', 'ident', 'ident-reset', 'identifier', 'identity', 'idle', 'idle-hold-time', 'idle-restart-timer', 'idle-timeout', 'idle-timeout-override', 'idletimeout', 'idp-cert', 'idp-sync-update', 'ids', 'ids-option', 'ids-profile', 'iec', 'ieee', 'ieee-mms-ssl', 'ietf', 'ietf-format', 'if', 'if-needed', 'if-route-exists', 'iface', 'ifacl', 'ifdescr', 'ifile', 'ifindex', 'ifmap', 'ifmib', 'ifname', 'ifp', 'igmp', 'igmp-snooping', 'ignore', 'ignore-attached-bit', 'ignore-l3-incompletes', 'igp', 'igp-cost', 'igp-intact', 'igrp', 'ike', 'ike-crypto-profiles', 'ike-esp-nat', 'ike-group', 'ike-policy', 'ike-user-type', 'ikev1', 'ikev2', 'ikev2-profile', 'ikev2-reauth', 'ilnp-nonce-option', 'ilx', 'imap', 'imap3', 'imap4', 'imaps', 'immediate', 'immediately', 'impersonation-profile', 'implicit-user', 'import', 'import-localpref', 'import-nexthop', 'import-policy', 'import-rib', 'import-rt', 'in', 'in-place', 'inactive', 'inactive:', 'inactivity-timeout', 'inactivity-timer', 'inband', 'inbound', 'include-mp-next-hop', 'include-reserve', 'include-stub', 'incoming', 'incoming-bgp-connection', 'incomplete', 'inconsistency', 'index', 'indirect-next-hop', 'indirect-next-hop-change-acknowledgements', 'inet', 'inet-mdt', 'inet-mvpn', 'inet-vpn', 'inet6', 'inet6-mvpn', 'inet6-vpn', 'infinity', 'info-reply', 'info-request', 'inform', 'information', 'information-reply', 'information-request', 'informational', 'informs', 'ingress', 'ingress-replication', 'inherit', 'inherit-certkeychain', 'inheritance', 'inheritance-disable', 'init', 'init-string', 'init-tech-list', 'initial-role', 'initiate', 'inject-map', 'inner', 'input', 'input-list', 'input-vlan-map', 'insecure', 'insert', 'inservice', 'inside', 'inspect', 'inspection', 'install', 'install-map', 'install-nexthop', 'install-oifs', 'install-route', 'instance', 'instance-import', 'instance-type', 'integer', 'integrated-vtysh-config', 'integrity', 'inter', 'inter-area', 'inter-area-prefix-lsa', 'inter-interface', 'interactive-commands', 'interarea', 'intercept', 'interconnect-device', 'interface', 'interface-inheritance', 'interface-mode', 'interface-routes', 'interface-specific', 'interface-statistics', 'interface-subnet', 'interface-switch', 'interface-transmit-statistics', 'interface-type', 'interface-vlan', 'interfaces', 'internal', 'internet', 'internet-options', 'internet-service-id', 'internet-service-name', 'interval', 'interworking', 'interzone', 'intra', 'intra-area', 'intra-interface', 'intrazone', 'invalid', 'invalid-spi-recovery', 'invalid-username-log', 'invert', 'invert-match', 'ios-regex', 'ip', 'ip route table for vrf', 'ip-address', 'ip-destination-address', 'ip-dscp', 'ip-flow-export-profile', 'ip-forward', 'ip-header-bad', 'ip-in-udp', 'ip-netmask', 'ip-options', 'ip-protocol', 'ip-range', 'ip-rr', 'ip-source-address', 'ip-sweep', 'ipaddr', 'ipaddress', 'ipbroadcast', 'ipc', 'ipenacl', 'iphc-format', 'ipinip', 'ipip', 'ipip-4in4', 'ipip-4in6', 'ipip-6in4', 'ipip-6in6', 'ipip-6over4', 'ipip-6to4relay', 'ipmask', 'ipother', 'ipp', 'iprange', 'ipsec', 'ipsec-crypto-profiles', 'ipsec-interfaces', 'ipsec-isakmp', 'ipsec-manual', 'ipsec-over-tcp', 'ipsec-policy', 'ipsec-proposal', 'ipsec-udp', 'ipsec-vpn', 'ipsecalg', 'ipsla', 'iptables', 'ipv4', 'ipv4-address', 'ipv4-l5', 'ipv4-unicast', 'ipv6', 'ipv6-address-pool', 'ipv6-dest-miss', 'ipv6-extension-header', 'ipv6-extension-header-limit', 'ipv6-malformed-header', 'ipv6-rpf-failure', 'ipv6-sg-rpf-failure', 'ipv6-unicast', 'ipv6ip', 'ipx', 'irc', 'irdp', 'iris-beep', 'is', 'is directly connected', 'is variably subnetted', 'is-fragment', 'is-local', 'is-type', 'isakmp', 'isakmp-profile', 'isatap', 'iscsi', 'isdn', 'isi-gl', 'isis', 'isis-enhanced', 'isis-metric', 'isl', 'iso', 'iso-tsap', 'iso-vpn', 'isolate', 'isolation', 'ispf', 'issuer-name', 'iuc', 'join-group', 'join-prune', 'join-prune-count', 'join-prune-interval', 'join-prune-mtu', 'jp-interval', 'jp-policy', 'jumbo', 'jumbo-payload-option', 'jumbomtu', 'junos-aol', 'junos-bgp', 'junos-biff', 'junos-bootpc', 'junos-bootps', 'junos-chargen', 'junos-cifs', 'junos-cvspserver', 'junos-dhcp-client', 'junos-dhcp-relay', 'junos-dhcp-server', 'junos-discard', 'junos-dns-tcp', 'junos-dns-udp', 'junos-echo', 'junos-finger', 'junos-ftp', 'junos-ftp-data', 'junos-gnutella', 'junos-gopher', 'junos-gprs-gtp-c', 'junos-gprs-gtp-u', 'junos-gprs-gtp-v0', 'junos-gprs-sctp', 'junos-gre', 'junos-gtp', 'junos-h323', 'junos-host', 'junos-http', 'junos-http-ext', 'junos-https', 'junos-icmp-all', 'junos-icmp-ping', 'junos-icmp6-all', 'junos-icmp6-dst-unreach-addr', 'junos-icmp6-dst-unreach-admin', 'junos-icmp6-dst-unreach-beyond', 'junos-icmp6-dst-unreach-port', 'junos-icmp6-dst-unreach-route', 'junos-icmp6-echo-reply', 'junos-icmp6-echo-request', 'junos-icmp6-packet-too-big', 'junos-icmp6-param-prob-header', 'junos-icmp6-param-prob-nexthdr', 'junos-icmp6-param-prob-option', 'junos-icmp6-time-exceed-reassembly', 'junos-icmp6-time-exceed-transit', 'junos-ident', 'junos-ike', 'junos-ike-nat', 'junos-imap', 'junos-imaps', 'junos-internet-locator-service', 'junos-irc', 'junos-l2tp', 'junos-ldap', 'junos-ldp-tcp', 'junos-ldp-udp', 'junos-lpr', 'junos-mail', 'junos-mgcp', 'junos-mgcp-ca', 'junos-mgcp-ua', 'junos-ms-rpc', 'junos-ms-rpc-any', 'junos-ms-rpc-epm', 'junos-ms-rpc-iis-com', 'junos-ms-rpc-iis-com-1', 'junos-ms-rpc-iis-com-adminbase', 'junos-ms-rpc-msexchange', 'junos-ms-rpc-msexchange-directory-nsp', 'junos-ms-rpc-msexchange-directory-rfr', 'junos-ms-rpc-msexchange-info-store', 'junos-ms-rpc-tcp', 'junos-ms-rpc-udp', 'junos-ms-rpc-uuid-any-tcp', 'junos-ms-rpc-uuid-any-udp', 'junos-ms-rpc-wmic', 'junos-ms-rpc-wmic-admin', 'junos-ms-rpc-wmic-admin2', 'junos-ms-rpc-wmic-mgmt', 'junos-ms-rpc-wmic-webm-callresult', 'junos-ms-rpc-wmic-webm-classobject', 'junos-ms-rpc-wmic-webm-level1login', 'junos-ms-rpc-wmic-webm-login-clientid', 'junos-ms-rpc-wmic-webm-login-helper', 'junos-ms-rpc-wmic-webm-objectsink', 'junos-ms-rpc-wmic-webm-refreshing-services', 'junos-ms-rpc-wmic-webm-remote-refresher', 'junos-ms-rpc-wmic-webm-services', 'junos-ms-rpc-wmic-webm-shutdown', 'junos-ms-sql', 'junos-msn', 'junos-nbds', 'junos-nbname', 'junos-netbios-session', 'junos-nfs', 'junos-nfsd-tcp', 'junos-nfsd-udp', 'junos-nntp', 'junos-ns-global', 'junos-ns-global-pro', 'junos-nsm', 'junos-ntalk', 'junos-ntp', 'junos-ospf', 'junos-pc-anywhere', 'junos-persistent-nat', 'junos-ping', 'junos-pingv6', 'junos-pop3', 'junos-pptp', 'junos-printer', 'junos-r2cp', 'junos-radacct', 'junos-radius', 'junos-realaudio', 'junos-rip', 'junos-routing-inbound', 'junos-rsh', 'junos-rtsp', 'junos-sccp', 'junos-sctp-any', 'junos-sip', 'junos-smb', 'junos-smb-session', 'junos-smtp', 'junos-smtps', 'junos-snmp-agentx', 'junos-snpp', 'junos-sql-monitor', 'junos-sqlnet-v1', 'junos-sqlnet-v2', 'junos-ssh', 'junos-stun', 'junos-sun-rpc', 'junos-sun-rpc-any', 'junos-sun-rpc-any-tcp', 'junos-sun-rpc-any-udp', 'junos-sun-rpc-mountd', 'junos-sun-rpc-mountd-tcp', 'junos-sun-rpc-mountd-udp', 'junos-sun-rpc-nfs', 'junos-sun-rpc-nfs-access', 'junos-sun-rpc-nfs-tcp', 'junos-sun-rpc-nfs-udp', 'junos-sun-rpc-nlockmgr', 'junos-sun-rpc-nlockmgr-tcp', 'junos-sun-rpc-nlockmgr-udp', 'junos-sun-rpc-portmap', 'junos-sun-rpc-portmap-tcp', 'junos-sun-rpc-portmap-udp', 'junos-sun-rpc-rquotad', 'junos-sun-rpc-rquotad-tcp', 'junos-sun-rpc-rquotad-udp', 'junos-sun-rpc-ruserd', 'junos-sun-rpc-ruserd-tcp', 'junos-sun-rpc-ruserd-udp', 'junos-sun-rpc-sadmind', 'junos-sun-rpc-sadmind-tcp', 'junos-sun-rpc-sadmind-udp', 'junos-sun-rpc-sprayd', 'junos-sun-rpc-sprayd-tcp', 'junos-sun-rpc-sprayd-udp', 'junos-sun-rpc-status', 'junos-sun-rpc-status-tcp', 'junos-sun-rpc-status-udp', 'junos-sun-rpc-tcp', 'junos-sun-rpc-udp', 'junos-sun-rpc-walld', 'junos-sun-rpc-walld-tcp', 'junos-sun-rpc-walld-udp', 'junos-sun-rpc-ypbind', 'junos-sun-rpc-ypbind-tcp', 'junos-sun-rpc-ypbind-udp', 'junos-sun-rpc-ypserv', 'junos-sun-rpc-ypserv-tcp', 'junos-sun-rpc-ypserv-udp', 'junos-syslog', 'junos-tacacs', 'junos-tacacs-ds', 'junos-talk', 'junos-tcp-any', 'junos-telnet', 'junos-tftp', 'junos-udp-any', 'junos-uucp', 'junos-vdo-live', 'junos-vnc', 'junos-wais', 'junos-who', 'junos-whois', 'junos-winframe', 'junos-wxcontrol', 'junos-x-windows', 'junos-xnm-clear-text', 'junos-xnm-ssl', 'junos-ymsg', 'kbps', 'kbytes', 'keep', 'keep-alive-interval', 'keepalive', 'keepalive-enable', 'keepout', 'kerberos', 'kerberos-adm', 'kerberos-sec', 'kernel', 'key', 'key-chain', 'key-exchange', 'key-hash', 'key-source', 'key-string', 'keyid', 'keypair', 'keypath', 'keyring', 'keys', 'keystore', 'kickstart', 'klogin', 'kod', 'kpasswd', 'krb-prop', 'krb5', 'krb5-telnet', 'krbupdate', 'kron', 'kshell', 'l', 'l2', 'l2-filter', 'l2-interface', 'l2-learning', 'l2-protocol', 'l2-src', 'l2circuit', 'l2protocol', 'l2protocol-tunnel', 'l2tp', 'l2tp-class', 'l2tpv3', 'l2vpn', 'l3', 'l3-interface', 'la-maint', 'label', 'label-switched-path', 'labeled-unicast', 'lacp', 'lacp-bypass-allow', 'lacp-rate', 'lacp-timeout', 'lacp-trunk', 'lacp-udld', 'lag', 'lan', 'land', 'lane', 'lanz', 'lapb', 'large', 'last-as', 'last-listener-query-count', 'last-listener-query-interval', 'last-member-query-count', 'last-member-query-interval', 'last-member-query-response-time', 'latency', 'layer2', 'layer2-control', 'layer3', 'layer3+4', 'lcd-menu', 'ldap', 'ldap-base-dn', 'ldap-login', 'ldap-login-dn', 'ldap-naming-attribute', 'ldap-scope', 'ldaps', 'ldp', 'ldp-synchronization', 'le', 'leak-map', 'learn-vlan-1p-priority', 'learned', 'learning', 'lease', 'length', 'level', 'level-1', 'level-1-2', 'level-2', 'level-2-only', 'license', 'life', 'lifetime', 'lifetime-kilobytes', 'lifetime-seconds', 'limit', 'limit-dn', 'limit-resource', 'limit-session', 'limit-type', 'line', 'line-identification-option', 'line-protocol', 'line-termination', 'linecard', 'linecard-group', 'linecode', 'link', 'link-autoneg', 'link-bandwidth', 'link-change', 'link-debounce', 'link-duplex', 'link-fail', 'link-fault-signaling', 'link-flap', 'link-local', 'link-local-groups-suppression', 'link-mode', 'link-protection', 'link-speed', 'link-state', 'link-status', 'link-type', 'link-up', 'linkdebounce', 'linklocal', 'linksec', 'lisp', 'list', 'listen', 'listen-port', 'listener', 'lldp', 'lldp-admin', 'lldp-globals', 'lldp-med', 'lldp-tlvmap', 'lmp', 'lms-ip', 'lms-preemption', 'lo', 'load-balance', 'load-balancing', 'load-balancing-mode', 'load-defer', 'load-interval', 'load-share', 'load-sharing', 'local', 'local-address', 'local-as', 'local-case', 'local-identity', 'local-interface', 'local-ip', 'local-labeled-route', 'local-port', 'local-preference', 'local-proxy-arp', 'local-tunnelip', 'local-v4-addr', 'local-v6-addr', 'local-volatile', 'local0', 'local1', 'local2', 'local3', 'local4', 'local5', 'local6', 'local7', 'locale', 'localip', 'locality', 'localizedkey', 'location', 'log', 'log-adj-changes', 'log-adjacency-changes', 'log-buffer', 'log-collector', 'log-collector-group', 'log-console', 'log-enable', 'log-end', 'log-file', 'log-input', 'log-internal-sync', 'log-neighbor-changes', 'log-neighbor-warnings', 'log-out-on-disconnect', 'log-prefix', 'log-setting', 'log-settings', 'log-start', 'log-syslog', 'log-traps', 'log-updown', 'logfile', 'logging', 'logical', 'logical-system', 'logical-systems', 'login', 'login-attempts', 'login-authentication', 'login-page', 'loginsession', 'logout-warning', 'long', 'longer', 'longest-prefix', 'lookup', 'loop', 'loop-inconsistency', 'loopback', 'loopguard', 'loops', 'loose', 'loose-source-route', 'loose-source-route-option', 'loss-priority', 'lotusnotes', 'low', 'low-memory', 'lower', 'lpd', 'lpr', 'lpts', 'lre', 'lrq', 'lsa', 'lsa-arrival', 'lsa-group-pacing', 'lsp', 'lsp-equal-cost', 'lsp-gen-interval', 'lsp-interval', 'lsp-lifetime', 'lsp-password', 'lsp-refresh-interval', 'lsp-telemetry', 'lsping', 'lt', 'ltm', 'm0-7', 'm0.', 'm1.', 'm10.', 'm11.', 'm12.', 'm13.', 'm14.', 'm15.', 'm2.', 'm3.', 'm4.', 'm5.', 'm6.', 'm7.', 'm8-15', 'm8.', 'm9.', 'mab', 'mac', 'mac-address', 'mac-address-table', 'mac-default-role', 'mac-learn', 'mac-server-group', 'mac-srvr-admin', 'machine-authentication', 'macro', 'macs', 'mail', 'mail-server', 'main', 'main-cpu', 'maintenance', 'managed-config-flag', 'management', 'management-access', 'management-address', 'management-dhcp', 'management-ip', 'management-only', 'management-plane', 'management-profile', 'management-route', 'manager', 'mangle', 'manual', 'map', 'map-class', 'map-group', 'map-list', 'map-t', 'mapped-port', 'mapping', 'mapping-agent', 'marketing-name', 'martians', 'mask', 'mask-length', 'mask-reply', 'mask-request', 'master', 'master-only', 'masterip', 'match', 'match-across-pools', 'match-across-services', 'match-across-virtuals', 'match-all', 'match-any', 'match-ip-address', 'match-map', 'match-none', 'match1', 'match2', 'match3', 'matches-any', 'matches-every', 'matip-type-a', 'matip-type-b', 'max', 'max-active-handshakes', 'max-age', 'max-aggregate-renegotiation-per-minute', 'max-associations', 'max-authentication-failures', 'max-burst', 'max-clients', 'max-concat-burst', 'max-conferences', 'max-configuration-rollbacks', 'max-configurations-on-flash', 'max-connections', 'max-dn', 'max-ephones', 'max-ifindex-per-module', 'max-length', 'max-links', 'max-lsa', 'max-lsp-lifetime', 'max-med', 'max-metric', 'max-path', 'max-paths', 'max-pre-authentication-packets', 'max-prefixes', 'max-rate', 'max-renegotiations-per-minute', 'max-reuse', 'max-route', 'max-servers', 'max-session-number', 'max-sessions', 'max-sessions-per-connection', 'max-size', 'max-tx-power', 'maxas-limit', 'maxconnections', 'maximum', 'maximum-accepted-routes', 'maximum-active', 'maximum-hops', 'maximum-labels', 'maximum-paths', 'maximum-peers', 'maximum-prefix', 'maximum-record-size', 'maximum-routes', 'maxpoll', 'maxstartups', 'maxsubs', 'mbps', 'mbssid', 'mbytes', 'mcast-boundary', 'mcast-group', 'mcast-rate-opt', 'md5', 'mdix', 'mdt', 'mdt-hello-interval', 'med', 'media', 'media-termination', 'media-type', 'medium', 'medium-high', 'medium-low', 'member', 'member-interface', 'member-range', 'members', 'memory', 'memory-size', 'menu', 'menuname', 'merge-failure', 'mesh-cluster-profile', 'mesh-group', 'mesh-ht-ssid-profile', 'mesh-radio-profile', 'meshed-client', 'message', 'message-counter', 'message-digest', 'message-digest-key', 'message-length', 'message-level', 'message-size', 'metering', 'method', 'method-utilization', 'metric', 'metric-out', 'metric-style', 'metric-type', 'metric2', 'mfib', 'mfib-mode', 'mfwd', 'mgcp', 'mgcp-ca', 'mgcp-pat', 'mgcp-ua', 'mgmt-auth', 'mgmt-server', 'mgmt-user', 'mgt-config', 'mh', 'mib', 'mibs', 'micro-bfd', 'microcode', 'microsoft-ds', 'midcall-signaling', 'min-active-members', 'min-length', 'min-links', 'min-packet-size', 'min-rate', 'min-route-adv-interval', 'min-rx', 'min-tx-power', 'min_rx', 'minimal', 'minimum', 'minimum-active', 'minimum-interval', 'minimum-links', 'minimum-threshold', 'minpoll', 'minutes', 'mirror', 'mismatch', 'missing-as-worst', 'missing-policy', 'mixed', 'mka', 'mlag', 'mlag-system-id', 'mld', 'mld-query', 'mld-reduction', 'mld-report', 'mldv2', 'mls', 'mobile', 'mobile-host-redirect', 'mobile-ip', 'mobile-redirect', 'mobileip-agent', 'mobilip-mn', 'mobility', 'mobility-header', 'mod-ssl-methods', 'mode', 'modem', 'modulation-profile', 'module', 'module-type', 'modulus', 'mofrr', 'mofrr-lockout-timer', 'mofrr-loss-detection-timer', 'mon', 'monitor', 'monitor-interface', 'monitor-map', 'monitor-session', 'monitoring', 'monitoring-basics', 'mop', 'motd', 'move', 'mpls', 'mpls-label', 'mpp', 'mqtt', 'mroute', 'mroute-cache', 'mrouter', 'ms', 'ms-rpc', 'ms-sql-m', 'ms-sql-s', 'mschap', 'mschapv2', 'msdp', 'msdp-peer', 'msec', 'msexch-routing', 'msg-icp', 'msie-proxy', 'msp', 'msrp', 'msrpc', 'mss', 'mst', 'mstp', 'mstpctl-bpduguard', 'mstpctl-portadminedge', 'mstpctl-portbpdufilter', 'mta', 'mtu', 'mtu-discovery', 'mtu-failure', 'mtu-ignore', 'mtu-override', 'multi-chassis', 'multi-config', 'multi-topology', 'multicast', 'multicast-address', 'multicast-boundary', 'multicast-group', 'multicast-intact', 'multicast-mac', 'multicast-mode', 'multicast-routing', 'multicast-static-only', 'multihop', 'multilink', 'multipath', 'multipath-relax', 'multiple-as', 'multiplier', 'multiservice-options', 'must-secure', 'mvpn', 'mvr', 'mvrp', 'nac-quar', 'name', 'name-lookup', 'name-resolution', 'name-server', 'named-key', 'nameif', 'names', 'nameserver', 'namespace', 'nas', 'nat', 'nat-control', 'nat-flow', 'nat-transparency', 'nat-traversal', 'native', 'native-vlan-id', 'nbar', 'nbma', 'nbr-unconfig', 'ncp', 'nd', 'nd-na', 'nd-ns', 'nd-type', 'ndp-proxy', 'nearest', 'negate-destination', 'negate-source', 'negotiate', 'negotiated', 'negotiation', 'neighbor', 'neighbor-advertisement', 'neighbor-check-on-recv', 'neighbor-check-on-send', 'neighbor-discovery', 'neighbor-down', 'neighbor-filter', 'neighbor-group', 'neighbor-policy', 'neighbor-solicit', 'neq', 'nested', 'net', 'net-redirect', 'net-tos-redirect', 'net-tos-unreachable', 'net-unreachable', 'netbios-dgm', 'netbios-ns', 'netbios-ss', 'netbios-ssn', 'netconf', 'netdestination', 'netdestination6', 'netexthdr', 'netflow', 'netflow-profile', 'netmask', 'netmask-format', 'netrjs-1', 'netrjs-2', 'netrjs-3', 'netrjs-4', 'netservice', 'netwall', 'netwnews', 'network', 'network-clock', 'network-clock-participate', 'network-clock-select', 'network-delay', 'network-domain', 'network-failover', 'network-object', 'network-policy', 'network-qos', 'network-summary-export', 'network-unknown', 'network-unreachable', 'network-unreachable-for-tos', 'never', 'new-model', 'new-rwho', 'newinfo', 'newroot', 'news', 'next', 'next-header', 'next-hop', 'next-hop-peer', 'next-hop-self', 'next-hop-third-party', 'next-hop-unchanged', 'next-hop-v6-addr', 'next-ip', 'next-ip6', 'next-server', 'next-table', 'next-vr', 'nexthop', 'nexthop-attribute', 'nexthop-list', 'nexthop-self', 'nexthop1', 'nexthop2', 'nexthop3', 'nfs', 'nfsd', 'nhop-only', 'nhrp', 'nls', 'nmsp', 'nntp', 'nntps', 'no', 'no l4r_shim', 'no-active-backbone', 'no-adjacency-down-notification', 'no-advertise', 'no-alias', 'no-anti-replay', 'no-arp', 'no-auto-negotiation', 'no-client-reflect', 'no-ecmp-fast-reroute', 'no-export', 'no-flow-control', 'no-gateway-community', 'no-install', 'no-ipv4-routing', 'no-limit', 'no-nat-traversal', 'no-neighbor-down-notification', 'no-neighbor-learn', 'no-next-header', 'no-nexthop-change', 'no-passwords', 'no-payload', 'no-peer-loop-check', 'no-ping-record-route', 'no-ping-time-stamp', 'no-prepend', 'no-prepend-global-as', 'no-proxy-arp', 'no-readvertise', 'no-redirects', 'no-redirects-ipv6', 'no-redist', 'no-redistribution', 'no-resolve', 'no-retain', 'no-rfc-1583', 'no-room-for-option', 'no-summaries', 'no-summary', 'no-tcp-forwarding', 'no-translation', 'no-traps', 'noauth', 'node', 'node-device', 'node-group', 'node-link-protection', 'noe', 'nohangup', 'nomatch1', 'nomatch2', 'nomatch3', 'non-broadcast', 'non-client', 'non-client-nrt', 'non-critical', 'non-deterministic', 'non-deterministic-med', 'non-dr', 'non-ect', 'non-exist-map', 'non-mlag', 'non-revertive', 'non-silent', 'non500-isakmp', 'none', 'nonegotiate', 'nonstop-routing', 'nopassword', 'normal', 'nos', 'not', 'not-advertise', 'notation', 'notiffacility', 'notification', 'notification-timer', 'notifications', 'notifpriority', 'notify', 'notify-filter', 'notify-licensefile-expiry', 'notify-licensefile-missing', 'notifyaddressname', 'notifyaddressservice', 'notifyaddressstate', 'notifyservicename', 'notifyserviceprotocol', 'notifyserviceraw', 'np6', 'nsf', 'nsr', 'nsr-delay', 'nsr-down', 'nssa', 'nssa-external', 'nsw-fe', 'nt-encrypted', 'ntalk', 'ntp', 'ntp-server-address', 'ntp-servers', 'ntpaddress', 'ntpaltaddress', 'ntpsourceinterface', 'null', 'num-thread', 'nv', 'nve', 'nxapi', 'nxos', 'oam', 'object', 'object-group', 'objstore', 'ocsp-stapling', 'ocsp-stapling-params', 'octet', 'octetstring', 'odmr', 'ofdm', 'ofdm-throughput', 'off', 'offset', 'offset-list', 'old-register-checksum', 'olsr', 'on', 'on-failure', 'on-match', 'on-passive', 'on-startup', 'on-success', 'one', 'one-connect', 'one-out-of', 'only-ofdm', 'oom-handling', 'open', 'open-delay-time', 'openflow', 'openstack', 'openvpn', 'operation', 'opmode', 'ops', 'optical-monitor', 'optimization-profile', 'optimize', 'optimized', 'option', 'option-missing', 'optional', 'optional-modules', 'options', 'or', 'organization-name', 'organization-unit', 'origin', 'origin-id', 'original', 'originate', 'originator-id', 'origins', 'orlonger', 'ospf', 'ospf-ext', 'ospf-external-type-1', 'ospf-external-type-2', 'ospf-int', 'ospf-inter-area', 'ospf-intra-area', 'ospf-nssa-type-1', 'ospf-nssa-type-2', 'ospf3', 'ospfv3', 'ospfv3-ext', 'ospfv3-int', 'other-access', 'other-config-flag', 'oui', 'out', 'out-delay', 'out-of-band', 'outauthtype', 'outbound-acl-check', 'outbound-ssh', 'outer', 'outgoing-bgp-connection', 'output', 'output-list', 'output-vlan-map', 'outside', 'overlay', 'overload', 'overload-control', 'override', 'override-connection-limit', 'override-interval', 'override-metric', 'overrides', 'ovsdb-shutdown', 'owner', 'p2mp', 'p2mp-over-lan', 'p2p', 'package', 'packet', 'packet-capture-defaults', 'packet-length', 'packet-length-except', 'packet-too-big', 'packetcable', 'packets', 'packetsize', 'pager', 'pagp', 'pan', 'pan-options', 'panorama', 'panorama-server', 'param', 'parameter-problem', 'parameters', 'parent', 'parent-dg', 'parity', 'parser', 'participate', 'pass', 'passive', 'passive-interface', 'passive-only', 'passphrase', 'passwd', 'password', 'password-encryption', 'password-policy', 'password-storage', 'pat-pool', 'pat-xlate', 'path', 'path-count', 'path-echo', 'path-jitter', 'path-mtu-discovery', 'path-option', 'path-retransmit', 'path-selection', 'pathcost', 'paths', 'paths-of-statistics-kept', 'pause', 'payload-protocol', 'pbkdf2', 'pbr', 'pbr-statistics', 'pbts', 'pcanywhere-data', 'pcanywhere-status', 'pcp', 'pcp-value', 'pd-route-injection', 'pdp', 'peakdetect', 'peer', 'peer-address', 'peer-as', 'peer-config-check-bypass', 'peer-filter', 'peer-gateway', 'peer-group', 'peer-id-validate', 'peer-ip', 'peer-keepalive', 'peer-link', 'peer-mac-resolution-timeout', 'peer-no-renegotiate-timeout', 'peer-policy', 'peer-session', 'peer-switch', 'peer-to-peer', 'peer-unit', 'peer-vtep', 'peers', 'penalty-period', 'per-ce', 'per-entry', 'per-link', 'per-packet', 'per-prefix', 'per-unit-scheduler', 'per-vlan', 'per-vrf', 'percent', 'percentage', 'perfect-forward-secrecy', 'performance-traffic', 'periodic', 'periodic-inventory', 'periodic-refresh', 'permanent', 'permission', 'permit', 'permit-all', 'permit-hostdown', 'persist', 'persist-database', 'persistence', 'persistent', 'persistent-nat', 'pervasive', 'pfc', 'pfs', 'pgm', 'phone', 'phone-contact', 'phone-number', 'phone-proxy', 'phy', 'physical', 'physical-layer', 'physical-port', 'pickup', 'pim', 'pim-auto-rp', 'pim-sparse', 'pim6', 'ping', 'ping-death', 'pinning', 'pir', 'pki', 'pkix-timestamp', 'pkt-krb-ipsec', 'planned-only', 'plat', 'platform', 'platform-id', 'pm', 'pmtud', 'poap', 'poe', 'point-to-multipoint', 'point-to-point', 'police', 'policer', 'policies', 'policy', 'policy-list', 'policy-map', 'policy-map-input', 'policy-map-output', 'policy-options', 'policy-statement', 'poll', 'poll-interval', 'pool', 'pool-default-port-range', 'pool-utilization-alarm', 'pools', 'pop', 'pop2', 'pop3', 'pop3s', 'port', 'port-channel', 'port-channel-protocol', 'port-description', 'port-mirror', 'port-mirroring', 'port-mode', 'port-name', 'port-object', 'port-overload', 'port-overloading', 'port-overloading-factor', 'port-priority', 'port-profile', 'port-randomization', 'port-scan', 'port-security', 'port-type', 'port-unreachable', 'portadminedge', 'portautoedge', 'portbpdufilter', 'portfast', 'portgroup', 'portmode', 'portnetwork', 'portrestrole', 'ports', 'ports-threshold', 'pos', 'post', 'post-policy', 'post-rulebase', 'post-up', 'postrouting', 'power', 'power-level', 'power-mgr', 'power-monitor', 'poweroff', 'ppm', 'pps', 'pptp', 'prc-interval', 'pre-equalization', 'pre-policy', 'pre-rulebase', 'pre-shared-key', 'pre-shared-keys', 'pre-shared-secret', 'precedence', 'precedence-cutoff-in-effect', 'precedence-unreachable', 'precision-timers', 'predictor', 'preempt', 'prefer', 'preference', 'preferred', 'preferred-path', 'prefix', 'prefix-export-limit', 'prefix-len', 'prefix-len-range', 'prefix-length', 'prefix-length-range', 'prefix-limit', 'prefix-list', 'prefix-list-filter', 'prefix-name', 'prefix-peer-timeout', 'prefix-peer-wait', 'prefix-policy', 'prefix-priority', 'prefix-set', 'prepend', 'prerouting', 'preserve-attributes', 'prf', 'pri-group', 'primary', 'primary-ntp-server', 'primary-port', 'primary-priority', 'print-srv', 'printer', 'priority', 'priority-cost', 'priority-flow-control', 'priority-force', 'priority-group', 'priority-level', 'priority-mapping', 'priority-queue', 'priv', 'privacy', 'private', 'private-as', 'private-key', 'private-vlan', 'privilege', 'privilege-mode', 'proactive', 'probe', 'process', 'process-failures', 'process-max-time', 'processes', 'product', 'profile', 'profile-group', 'profiles', 'progress_ind', 'prompt', 'prone-to-misuse', 'propagate', 'propagation-delay', 'proposal', 'proposal-set', 'proposals', 'proprietary', 'protect', 'protect-ssid', 'protect-tunnel', 'protect-valid-sta', 'protection', 'protocol', 'protocol-discovery', 'protocol-http', 'protocol-number', 'protocol-object', 'protocol-unreachable', 'protocol-version', 'protocol-violation', 'protocols', 'provider-tunnel', 'provision', 'provisioning-profile', 'proxy', 'proxy-arp', 'proxy-ca-cert', 'proxy-ca-key', 'proxy-identity', 'proxy-leave', 'proxy-macip-advertisement', 'proxy-server', 'proxy-ssl', 'proxy-ssl-passthrough', 'pruning', 'psecure-violation', 'pseudo-ethernet', 'pseudo-information', 'pseudowire', 'pseudowire-class', 'psh', 'ptp', 'ptp-event', 'ptp-general', 'pubkey-chain', 'public-key', 'put', 'pvc', 'pvid', 'q931', 'qmtp', 'qoe', 'qos', 'qos-group', 'qos-mapping', 'qos-policy', 'qos-policy-output', 'qos-sc', 'qotd', 'qualified-next-hop', 'quality-of-service', 'querier', 'querier-timeout', 'query', 'query-count', 'query-interval', 'query-max-response-time', 'query-only', 'query-response-interval', 'query-timeout', 'queue', 'queue-buffers', 'queue-length', 'queue-limit', 'queue-monitor', 'queue-set', 'queueing', 'queuing', 'quick-start-option', 'quit', 'r2cp', 'ra', 'ra-interval', 'ra-lifetime', 'radacct', 'radius', 'radius-accounting', 'radius-acct', 'radius-common-pw', 'radius-interim-accounting', 'radius-options', 'radius-server', 'radprimacctsecret', 'radprimsecret', 'radsecacctsecret', 'radsecsecret', 'random', 'random-detect', 'random-detect-label', 'range', 'range-address', 'ras', 'rate', 'rate-limit', 'rate-mode', 'rate-per-route', 'rate-thresholds-profile', 'raw', 'rba', 'rbacl', 'rcmd', 'rcp', 'rcv-queue', 'rd', 'rd-set', 're-mail-ck', 'reachability', 'reachable-time', 'reachable-via', 'react', 'reaction', 'reaction-configuration', 'reaction-trigger', 'read', 'read-only', 'read-only-password', 'read-write', 'readonly', 'readvertise', 'real', 'real-time-config', 'realaudio', 'reassembly-timeout', 'reauthentication', 'receive', 'receive-only', 'receive-queue', 'receive-window', 'received', 'recirculation', 'reconnect-interval', 'record', 'record-entry', 'record-route-option', 'recovery', 'recurring', 'recursive', 'recv', 'recv-disable', 'red', 'redirect', 'redirect-for-host', 'redirect-for-network', 'redirect-for-tos-and-host', 'redirect-for-tos-and-net', 'redirect-fqdn', 'redirect-list', 'redirect-pause', 'redirects', 'redist', 'redist-profile', 'redist-rules', 'redistribute', 'redistribute-internal', 'redistributed', 'redistributed-prefixes', 'redundancy', 'redundancy-group', 'redundant', 'redundant-ether-options', 'redundant-parent', 'reed-solomon', 'reference-bandwidth', 'reflect', 'reflection', 'reflector-client', 'reflector-cluster-id', 'reflexive-list', 'refresh', 'regexp', 'register-rate-limit', 'register-source', 'registered', 'regulatory-domain-profile', 'reinit', 'reject', 'reject-default-route', 'rekey', 'relay', 'relay-agent-option', 'reload', 'reload-delay', 'reload-type', 'relogging-interval', 'remark', 'remote', 'remote-access', 'remote-as', 'remote-id', 'remote-ip', 'remote-neighbors', 'remote-port', 'remote-ports', 'remote-server', 'remote-span', 'remoteaccesslist', 'remotefs', 'remove', 'remove-private', 'remove-private-as', 'removed', 'rename', 'renegotiate-max-record-delay', 'renegotiate-period', 'renegotiate-size', 'renegotiation', 'reoptimize', 'repcmd', 'repeat-messages', 'replace', 'replace-as', 'replace:', 'replacemsg', 'replacemsg-image', 'reply', 'reply-to', 'report-flood', 'report-interval', 'report-policy', 'report-suppression', 'req-resp', 'req-trans-policy', 'request', 'request-adapt', 'request-data-size', 'request-log', 'require-wpa', 'required', 'required-option-missing', 'reserve', 'reset', 'reset-both', 'reset-client', 'reset-server', 'resolution', 'resolve', 'resource', 'resource-pool', 'resources', 'respond', 'responder', 'responder-url', 'response', 'response-adapt', 'rest', 'restart', 'restart-time', 'restrict', 'restricted', 'result', 'result-type', 'resume', 'resync-period', 'retain', 'retransmit', 'retransmit-interval', 'retransmit-timeout', 'retries', 'retry', 'return', 'reverse', 'reverse-access', 'reverse-path', 'reverse-route', 'reverse-ssh', 'reverse-telnet', 'revertive', 'revision', 'revocation-check', 'rewrite', 'rf', 'rf-channel', 'rf-power', 'rf-shutdown', 'rf-switch', 'rfc-3576-server', 'rfc1583', 'rfc1583compatibility', 'rib', 'rib-group', 'rib-groups', 'rib-has-route', 'rib-in', 'rib-metric-as-external', 'rib-metric-as-internal', 'rib-scale', 'ribs', 'ring', 'rip', 'ripng', 'risk', 'rje', 'rkinit', 'rlogin', 'rlp', 'rlzdbase', 'rmc', 'rmon', 'rmonitor', 'robustness', 'robustness-count', 'robustness-variable', 'rogue-ap-aware', 'role', 'root', 'root-authentication', 'root-inconsistency', 'root-login', 'rotary', 'round-robin', 'routable', 'route', 'route-advertisement', 'route-cache', 'route-distinguisher', 'route-distinguisher-id', 'route-domain', 'route-filter', 'route-key', 'route-lookup', 'route-map', 'route-map-cache', 'route-map-in', 'route-map-out', 'route-only', 'route-policy', 'route-preference', 'route-record', 'route-reflector', 'route-reflector-client', 'route-source', 'route-table', 'route-tag', 'route-target', 'route-to-peer', 'route-type', 'routed', 'router', 'router-advertisement', 'router-alert', 'router-alert-option', 'router-discovery', 'router-id', 'router-interface', 'router-lsa', 'router-mac', 'router-preference', 'router-solicit', 'router-solicitation', 'routes', 'routine', 'routing', 'routing-header', 'routing-instance', 'routing-instances', 'routing-options', 'routing-table', 'rp', 'rp-address', 'rp-announce-filter', 'rp-candidate', 'rp-list', 'rp-static-deny', 'rpc-program-number', 'rpc2portmap', 'rpf', 'rpf-check', 'rpf-failure', 'rpf-redirect', 'rpf-vector', 'rpl-option', 'rpm', 'rrm-ie-profile', 'rsa', 'rsa-signatures', 'rsakeypair', 'rsh', 'rst', 'rstp', 'rsvp', 'rsvp-te', 'rsync', 'rt', 'rtcp-inactivity', 'rtelnet', 'rtp', 'rtp-port', 'rtr', 'rtr-adv', 'rtsp', 'rule', 'rule-name', 'rule-set', 'rule-type', 'rulebase', 'rules', 'run', 'rx', 'rx-cos-slot', 'rxspeed', 'sa-filter', 'same-security-traffic', 'sample', 'sampled', 'sampler', 'sampler-map', 'samples-of-history-kept', 'sampling', 'sap', 'sat', 'satellite', 'satellite-fabric-link', 'saved-core-context', 'saved-core-files', 'scale-factor', 'scaleout-device-id', 'scan-time', 'scanning', 'sccp', 'sched-type', 'schedule', 'scheduler', 'scheme', 'scope', 'scp', 'scp-server', 'scramble', 'screen', 'script', 'scripting', 'scripts', 'sctp', 'sctp-portrange', 'sdm', 'sdn', 'sdr', 'sdrowner', 'sdwan', 'secondary', 'secondary-dialtone', 'secondary-ip', 'secondary-ntp-server', 'secondaryip', 'seconds', 'secret', 'secure', 'secure-mac-address', 'secure-renegotiation', 'secureid-udp', 'security', 'security-association', 'security-level', 'security-option', 'security-profile', 'security-violation', 'security-zone', 'securityv3', 'select', 'selection', 'selective', 'selective-ack', 'self', 'self-allow', 'self-device', 'self-identity', 'send', 'send-community', 'send-community-ebgp', 'send-extended-community-ebgp', 'send-label', 'send-lifetime', 'send-rp-announce', 'send-rp-discovery', 'send-time', 'sender', 'sensor', 'seq', 'sequence', 'sequence-nums', 'serial-number', 'serve', 'serve-only', 'server', 'server-arp', 'server-group', 'server-key', 'server-ldap', 'server-name', 'server-private', 'server-profile', 'server-ssl', 'server-state-change', 'server-type', 'serverfarm', 'servers', 'service', 'service-class', 'service-deployment', 'service-down-action', 'service-family', 'service-filter', 'service-group', 'service-list', 'service-module', 'service-object', 'service-policy', 'service-queue', 'service-template', 'service-type', 'services', 'services-offload', 'session', 'session-authorization', 'session-disconnect-warning', 'session-group', 'session-helper', 'session-id', 'session-key', 'session-limit', 'session-mirroring', 'session-open-mode', 'session-protection', 'session-ticket', 'session-ticket-timeout', 'session-timeout', 'set', 'set-color', 'set-origin', 'set-overload-bit', 'set-sync-leader', 'set-timer', 'setting', 'setup', 'severity', 'sf-interface', 'sflow', 'sfm-dpd-option', 'sftp', 'sftp-server', 'sg-expiry-timer', 'sg-list', 'sg-rpf-failure', 'sgmp', 'sha', 'sha-256', 'sha-384', 'sha1', 'sha2-256-128', 'sha256', 'sha384', 'sha512', 'shapassword', 'shape', 'shared', 'shared-gateway', 'shared-ike-id', 'shared-secondary-secret', 'shared-secret', 'shelfname', 'shell', 'shift', 'shim6-header', 'short', 'short-txt', 'shortcuts', 'shortstring', 'should-secure', 'show', 'shut', 'shutdown', 'sign-hash', 'signal', 'signaling', 'signalled-bandwidth', 'signalled-name', 'signalling', 'signature', 'signature-matching-profile', 'signature-profile', 'signing', 'silc', 'silent', 'simple', 'single-connection', 'single-hop', 'single-router-mode', 'single-topology', 'sip', 'sip-disconnect', 'sip-invite', 'sip-midcall-req-timeout', 'sip-profiles', 'sip-provisional-media', 'sip-server', 'sip-ua', 'sip_media', 'sips', 'site-id', 'site-to-site', 'sitemap', 'size', 'skip', 'sla', 'slaves', 'slot', 'slot-table-cos', 'slow', 'slow-peer', 'slow-ramp-time', 'small', 'small-hello', 'smart-relay', 'smp_affinity', 'smtp', 'smtp-send-fail', 'smtp-server', 'smtps', 'smux', 'snagas', 'snat', 'snat-translation', 'snatpool', 'sni-default', 'sni-require', 'snmp', 'snmp-authfail', 'snmp-index', 'snmp-server', 'snmp-trap', 'snmpgetclient', 'snmpgetcommunity', 'snmpsourceinterface', 'snmptrap', 'snmptrapclient', 'snmptrapcommunity', 'snooping', 'snp', 'snpp', 'snr-max', 'snr-min', 'sntp', 'socks', 'soft-preemption', 'soft-reconfiguration', 'software', 'sonet', 'sonet-options', 'soo', 'sort-by', 'source', 'source-addr', 'source-address', 'source-address-excluded', 'source-address-filter', 'source-address-name', 'source-address-translation', 'source-host-isolated', 'source-identity', 'source-interface', 'source-ip-address', 'source-ip-based', 'source-mac-address', 'source-mask', 'source-nat', 'source-port', 'source-prefix-list', 'source-protocol', 'source-quench', 'source-route', 'source-route-failed', 'source-route-option', 'source-threshold', 'source-translation', 'source-user', 'spam', 'span', 'spanning-tree', 'sparse-dense-mode', 'sparse-mode', 'sparse-mode-ssm', 'spd', 'spe', 'spectrum', 'spectrum-load-balancing', 'spectrum-monitoring', 'speed', 'speed-duplex', 'spf', 'spf-interval', 'spf-options', 'spine-anycast-gateway', 'split-horizon', 'split-tunnel-network-list', 'split-tunnel-policy', 'splitsessionclient', 'splitsessionserver', 'spoofing', 'spt-threshold', 'sqlnet', 'sqlnet-v2', 'sqlserv', 'sqlsrv', 'sr-te', 'src-ip', 'src-mac', 'src-nat', 'srcaddr', 'srcintf', 'srlg', 'srlg-cost', 'srlg-value', 'srr-queue', 'srst', 'ssh', 'ssh-certificate', 'ssh-publickey', 'ssh_keydir', 'sshportlist', 'ssid', 'ssid-enable', 'ssid-profile', 'ssl', 'ssl-forward-proxy', 'ssl-forward-proxy-bypass', 'ssl-profile', 'ssl-sign-hash', 'sslvpn', 'ssm', 'sso-admin', 'stack-mac', 'stack-mib', 'stack-unit', 'stale-route', 'stalepath-time', 'standard', 'standby', 'start', 'start-ip', 'start-stop', 'start-time', 'startup-query-count', 'startup-query-interval', 'stat', 'state', 'state-change', 'state-change-notif', 'stateful-dot1x', 'stateful-kerberos', 'stateful-ntlm', 'static', 'static-group', 'static-host-mapping', 'static-ipv6', 'static-nat', 'static-route', 'static-rpf', 'station', 'station-address', 'station-port', 'station-role', 'statistics', 'stats-cache-lifetime', 'status', 'status-age', 'stbc', 'stcapp', 'sticky', 'sticky-arp', 'stop', 'stop-character', 'stop-only', 'stop-record', 'stop-timer', 'stopbits', 'storage', 'storm-control', 'storm-control-profiles', 'stp', 'stp-globals', 'stpx', 'stream', 'stream-id', 'stream-option', 'streaming', 'street-address', 'streetaddress', 'strict', 'strict-lsa-checking', 'strict-resume', 'strict-rfc-compliant', 'strict-source-route', 'strict-source-route-option', 'stricthostkeycheck', 'string', 'strip', 'structured-data', 'sts-1', 'stub', 'stub-prefix-lsa', 'sub-option', 'sub-route-map', 'sub-type', 'subcategory', 'subinterface', 'subinterfaces', 'subject-name', 'submgmt', 'submission', 'subnet', 'subnet-broadcast', 'subnet-mask', 'subnet-zero', 'subnets', 'subscribe-to', 'subscribe-to-alert-group', 'subscriber', 'subscriber-management', 'substat', 'subtemplate', 'subtract', 'summary', 'summary-address', 'summary-lsa', 'summary-metric', 'summary-only', 'summer-time', 'sun', 'sun-rpc', 'sunrpc', 'sup-1', 'sup-2', 'super-user-password', 'superpassword', 'supplementary-service', 'supplementary-services', 'suppress', 'suppress-arp', 'suppress-data-registers', 'suppress-fib-pending', 'suppress-inactive', 'suppress-map', 'suppress-ra', 'suppress-rpf-change-prunes', 'suppressed', 'supress-fa', 'suspect-rogue-conf-level', 'suspend', 'suspend-individual', 'svc', 'svclc', 'svp', 'svrloc', 'switch', 'switch-cert', 'switch-controller', 'switch-options', 'switch-priority', 'switch-profile', 'switch-type', 'switchback', 'switching-mode', 'switchname', 'switchover', 'switchover-on-routing-crash', 'switchport', 'symmetric', 'syn', 'syn-ack-ack-proxy', 'syn-fin', 'syn-flood', 'syn-frag', 'sync', 'sync-failover', 'sync-igp-shortcuts', 'sync-only', 'synchronization', 'synchronous', 'synwait-time', 'sys', 'sys-mac', 'syscontact', 'syslocation', 'syslog', 'syslogd', 'sysopt', 'systat', 'system', 'system-capabilities', 'system-connected', 'system-description', 'system-init', 'system-max', 'system-name', 'system-priority', 'system-profile', 'system-services', 'system-shutdown', 'system-tunnel-rib', 'system-unicast-rib', 'systemname', 'systemowner', 'table', 'table-map', 'tac_plus', 'tacacs', 'tacacs+', 'tacacs-ds', 'tacacs-server', 'tacplus', 'tacplus-server', 'tacplusprimacctsecret', 'tacplusprimaddr', 'tacplusprimauthorsecret', 'tacplusprimsecret', 'tacplussecacctsecret', 'tacplussecaddr', 'tacplussecauthorsecret', 'tacplussecsecret', 'tacplususesub', 'tag', 'tag-switching', 'tag-type', 'tagged', 'tagging', 'tail-drop', 'talk', 'tap', 'target', 'target-host', 'target-host-port', 'targeted-broadcast', 'targeted-hello', 'targets', 'task', 'task execute', 'task-scheduler', 'taskgroup', 'tb-vlan1', 'tb-vlan2', 'tbrpf', 'tcam', 'tcn', 'tcp', 'tcp-analytics', 'tcp-aol', 'tcp-bgp', 'tcp-chargen', 'tcp-cifs', 'tcp-citrix-ica', 'tcp-cmd', 'tcp-connect', 'tcp-ctiqbe', 'tcp-daytime', 'tcp-discard', 'tcp-domain', 'tcp-echo', 'tcp-established', 'tcp-exec', 'tcp-finger', 'tcp-flags', 'tcp-flags-mask', 'tcp-forwarding', 'tcp-ftp', 'tcp-ftp-data', 'tcp-gopher', 'tcp-h323', 'tcp-hostname', 'tcp-http', 'tcp-https', 'tcp-ident', 'tcp-imap4', 'tcp-initial', 'tcp-inspection', 'tcp-irc', 'tcp-kerberos', 'tcp-klogin', 'tcp-kshell', 'tcp-ldap', 'tcp-ldaps', 'tcp-login', 'tcp-lotusnotes', 'tcp-lpd', 'tcp-mss', 'tcp-netbios-ssn', 'tcp-nfs', 'tcp-nntp', 'tcp-no-flag', 'tcp-option-length', 'tcp-pcanywhere-data', 'tcp-pim-auto-rp', 'tcp-pop2', 'tcp-pop3', 'tcp-portrange', 'tcp-pptp', 'tcp-proxy-reassembly', 'tcp-rsh', 'tcp-rst', 'tcp-rtsp', 'tcp-session', 'tcp-sip', 'tcp-smtp', 'tcp-sqlnet', 'tcp-ssh', 'tcp-sunrpc', 'tcp-sweep', 'tcp-tacacs', 'tcp-talk', 'tcp-telnet', 'tcp-udp', 'tcp-udp-cifs', 'tcp-udp-discard', 'tcp-udp-domain', 'tcp-udp-echo', 'tcp-udp-http', 'tcp-udp-kerberos', 'tcp-udp-nfs', 'tcp-udp-pim-auto-rp', 'tcp-udp-sip', 'tcp-udp-sunrpc', 'tcp-udp-tacacs', 'tcp-udp-talk', 'tcp-udp-www', 'tcp-uucp', 'tcp-whois', 'tcp-www', 'tcp/udp/sctp', 'tcpmux', 'tcpnethaspsrv', 'tcs-load-balance', 'te-metric', 'tear-drop', 'teardown', 'technology', 'telephony-service', 'telnet', 'telnet-server', 'telnetclient', 'template', 'template-stack', 'templates', 'teredo', 'term', 'terminal', 'terminal-type', 'terminate', 'termination', 'test', 'text', 'tftp', 'tftp-server', 'tftp-server-list', 'then', 'threat-detection', 'threat-visibility', 'threshold', 'thresholds', 'throttle', 'through', 'throughput', 'thu', 'tid', 'tie-break', 'time', 'time-exceeded', 'time-format', 'time-out', 'time-range', 'time-until-up', 'time-zone', 'timed', 'timeout', 'timeouts', 'timer', 'timers', 'timesource', 'timestamp', 'timestamp-option', 'timestamp-reply', 'timestamp-request', 'timezone', 'timing', 'tls', 'tls-proxy', 'tlv-select', 'tlv-set', 'tm-voq-collection', 'to', 'to-zone', 'token', 'tolerance', 'tool', 'top', 'topology', 'topologychange', 'tos', 'tos-overwrite', 'trace', 'traceoptions', 'tracer', 'traceroute', 'track', 'tracked', 'tracker', 'tracking-priority-increment', 'traditional', 'traffic', 'traffic-acceleration', 'traffic-class', 'traffic-eng', 'traffic-engineering', 'traffic-export', 'traffic-filter', 'traffic-group', 'traffic-index', 'traffic-loopback', 'traffic-quota', 'traffic-share', 'transceiver', 'transceiver-type-check', 'transfer-system', 'transfers-files', 'transform-set', 'transit-delay', 'translate', 'translate-address', 'translate-port', 'translated-address', 'translated-port', 'translation', 'translation-profile', 'translation-rule', 'transmit', 'transmit-delay', 'transmitter', 'transparent-hw-flooding', 'transport', 'transport-address', 'transport-method', 'transport-mode', 'trap', 'trap-destinations', 'trap-group', 'trap-new-master', 'trap-options', 'trap-source', 'trap-timeout', 'traps', 'trigger', 'trigger-delay', 'trimode', 'true', 'truncation', 'trunk', 'trunk-group', 'trunk-status', 'trunk-threshold', 'trunks', 'trust', 'trust-domain', 'trust-group', 'trusted', 'trusted-key', 'trusted-responders', 'trustpoint', 'trustpool', 'tsid', 'tsm-req-profile', 'ttl', 'ttl-eq-zero-during-reassembly', 'ttl-eq-zero-during-transit', 'ttl-exceeded', 'ttl-exception', 'ttl-failure', 'ttl-threshold', 'tty', 'tue', 'tunable-optic', 'tunnel', 'tunnel-encapsulation-limit-option', 'tunnel-group', 'tunnel-group-list', 'tunnel-id', 'tunnel-rib', 'tunneled', 'tunneled-node-address', 'tunnels', 'tunnels-other-apps', 'turboflex', 'tx', 'tx-queue', 'txspeed', 'type', 'type-1', 'type-2', 'type-7', 'type7', 'uauth', 'uc-tx-queue', 'ucmp', 'udf', 'udld', 'udp', 'udp-biff', 'udp-bootpc', 'udp-bootps', 'udp-cifs', 'udp-discard', 'udp-dnsix', 'udp-domain', 'udp-echo', 'udp-http', 'udp-isakmp', 'udp-jitter', 'udp-kerberos', 'udp-mobile-ip', 'udp-nameserver', 'udp-netbios-dgm', 'udp-netbios-ns', 'udp-nfs', 'udp-ntp', 'udp-pcanywhere-status', 'udp-pim-auto-rp', 'udp-port', 'udp-portrange', 'udp-radius', 'udp-radius-acct', 'udp-rip', 'udp-secureid-udp', 'udp-sip', 'udp-snmp', 'udp-snmptrap', 'udp-sunrpc', 'udp-sweep', 'udp-syslog', 'udp-tacacs', 'udp-talk', 'udp-tftp', 'udp-time', 'udp-timeout', 'udp-who', 'udp-www', 'udp-xdmcp', 'udplite', 'uid', 'unable', 'unauthorized', 'unauthorized-device-profile', 'unchanged', 'unclean-shutdown', 'unicast', 'unicast-address', 'unicast-qos-adjust', 'unicast-routing', 'unidirectional', 'unique', 'unit', 'unit-id', 'units', 'universal', 'unix-socket', 'unknown-protocol', 'unknown-unicast', 'unnumbered', 'unreachable', 'unreachables', 'unselect', 'unset', 'unsuppress-map', 'unsuppress-route', 'untagged', 'untrust', 'untrust-screen', 'up', 'update', 'update-calendar', 'update-delay', 'update-group', 'update-interval', 'update-schedule', 'update-server', 'update-source', 'upgrade', 'upgrade-profile', 'uplink', 'uplink-failure-detection', 'uplinkfast', 'upper', 'ups', 'upstream', 'upstream-start-threshold', 'upto', 'urg', 'uri', 'url', 'url-list', 'urpf', 'urpf-logging', 'us', 'use', 'use-acl', 'use-bia', 'use-config-session', 'use-global', 'use-ipv4-acl', 'use-ipv4acl', 'use-ipv6-acl', 'use-ipv6acl', 'use-link-address', 'use-peer', 'use-self', 'use-vrf', 'used-by', 'used-by-malware', 'user', 'user-defined-option-type', 'user-identity', 'user-message', 'user-role', 'user-statistics', 'user-tag', 'usergroup', 'userid', 'userinfo', 'username', 'username-prompt', 'userpassphrase', 'users', 'using', 'util-interval', 'utm', 'uucp', 'uucp-path', 'uuid', 'v1', 'v1-only', 'v1-rp-reachability', 'v2', 'v2c', 'v3', 'v3-query-max-response-time', 'v3-report-suppression', 'v4', 'v6', 'vacant-message', 'vacl', 'vad', 'valid', 'valid-11a-40mhz-channel-pair', 'valid-11a-80mhz-channel-group', 'valid-11a-channel', 'valid-11g-40mhz-channel-pair', 'valid-11g-channel', 'valid-and-protected-ssid', 'valid-network-oui-profile', 'validate', 'validation-state', 'validation-usage', 'value', 'vap-enable', 'variance', 'vdc', 'vdom', 've', 'vendor-option', 'ver', 'verification', 'verify', 'verify-data', 'version', 'vethernet', 'vfi', 'vfp', 'via', 'video', 'vids', 'view', 'violate', 'violate-action', 'violation', 'virtual', 'virtual-address', 'virtual-ap', 'virtual-chassis', 'virtual-link', 'virtual-reassembly', 'virtual-router', 'virtual-service', 'virtual-switch', 'virtual-template', 'virtual-wire', 'visibility', 'visible-vsys', 'vlan', 'vlan-aware', 'vlan-aware-bundle', 'vlan-group', 'vlan-id', 'vlan-id-list', 'vlan-name', 'vlan-policy', 'vlan-raw-device', 'vlan-tagging', 'vlan-tags', 'vlanid', 'vlans', 'vlans-disabled', 'vlans-enabled', 'vlt', 'vlt-peer-lag', 'vm-cpu', 'vm-memory', 'vmnet', 'vmps', 'vmtracer', 'vn-segment', 'vn-segment-vlan-based', 'vni', 'vni-options', 'vocera', 'voice', 'voice-card', 'voice-class', 'voice-port', 'voice-service', 'voip', 'voip-cac-profile', 'vpc', 'vpdn', 'vpdn-group', 'vpls', 'vpn', 'vpn-dialer', 'vpn-distinguisher', 'vpn-filter', 'vpn-group-policy', 'vpn-idle-timeout', 'vpn-ipv4', 'vpn-ipv6', 'vpn-monitor', 'vpn-session-timeout', 'vpn-simultaneous-logins', 'vpn-tunnel-protocol', 'vpnv4', 'vpnv6', 'vrf', 'vrf-also', 'vrf-export', 'vrf-import', 'vrf-table', 'vrf-table-label', 'vrf-target', 'vrf-unicast-rib', 'vrid', 'vrrp', 'vrrp-group', 'vserver', 'vstack', 'vstp', 'vsys', 'vtep', 'vtep-source-interface', 'vti', 'vtp', 'vty', 'vty-pool', 'vxlan', 'vxlan-anycast-ip', 'vxlan-encapsulation', 'vxlan-id', 'vxlan-local-tunnelip', 'vxlan-vtep-learn', 'wait-for', 'wait-for-bgp', 'wait-for-convergence', 'wait-igp-convergence', 'wait-install', 'wait-start', 'wanopt', 'warning', 'warning-limit', 'warning-only', 'warnings', 'warntime', 'watch-list', 'watchdog', 'wavelength', 'wccp', 'web-acceleration', 'web-cache', 'web-https-port-443', 'web-management', 'web-max-clients', 'web-security', 'web-server', 'webapi', 'webauth', 'webproxy', 'websocket', 'webvpn', 'wed', 'weekday', 'weekend', 'weight', 'weighting', 'weights', 'welcome-page', 'white-list', 'who', 'whois', 'wide', 'wide-metric', 'wide-metrics-only', 'wideband', 'wildcard', 'wildcard-address', 'wildcard-fqdn', 'window', 'window-size', 'winnuke', 'wins-server', 'wired', 'wired-ap-profile', 'wired-containment', 'wired-port-profile', 'wired-to-wireless-roam', 'wireless', 'wireless-containment', 'wirelessmodem', 'wism', 'wispr', 'withdraw', 'without-csd', 'wl-mesh', 'wlan', 'wmm', 'wms-general-profile', 'wms-local-system-profile', 'wpa-fast-handover', 'wred', 'wred-profile', 'write', 'write-memory', 'wrr', 'wrr-queue', 'wsma', 'www', 'x25', 'x29', 'x509', 'xauth', 'xconnect', 'xcvr-misconfigured', 'xcvr-overheat', 'xcvr-power-unsupported', 'xcvr-unsupported', 'xdmcp', 'xdr', 'xlate', 'xmit-hash-policy', 'xml', 'xml-config', 'xnm-clear-text', 'xnm-ssl', 'xns-ch', 'xns-mail', 'xns-time', 'xor', 'yellow', 'yes', 'z39-50', 'zone', 'zone-member', 'zone-pair', 'zones', '{', '|', '||', '}'} |
# Create a task list. A user is presented with the text below.
# Let them select an option to list all of their tasks, add a task to their list, delete a task, or quit the program.
# Make each option a different function in your program.
# Do NOT use Google.
# Do NOT use other students.
# Try to do this on your own.
def main():
problem1()
def problem1():
user = ""
thingsToDo = ["dishes", "cut grass", "cook"]
while thingsToDo != "0":
thingsToDo = input(" Enter a task:")
print(Task1 = "List all task", Task2 = "Add a task to the list", Task3 = "Delete a task", Task4 = "To quit the program:")
# myList:
# [
#
# ]
# user = input(thingsToDo)
# def dishes():
# print(thingsToDo)
#
# def cut grass():
#
# def cook():
# user = input("No")
# if thingsToDo !=:
# forEach in thingsToDo
# thingsToDo.append("car wash")
# print(thingsToDo)
# thingsToDo.remove("dishes")
# user = input("Congratulations! You're running [YOUR NAME]'s Task List program.What would you like to do next?
# 1. List all tasks.
# 2. Add a task to the list.
# 3. Delete a task.
# 0. To quit the program")
# def dishes():
# # while(True):
# # if("dishes" != thingsToDo):
# # print("car wash")
#
# def cut grass();
# # while():
#
# def cook();
if __name__ == '__main__':
main() | def main():
problem1()
def problem1():
user = ''
things_to_do = ['dishes', 'cut grass', 'cook']
while thingsToDo != '0':
things_to_do = input(' Enter a task:')
print(Task1='List all task', Task2='Add a task to the list', Task3='Delete a task', Task4='To quit the program:')
if __name__ == '__main__':
main() |
class StringFormat(object):
def format_string(self, pattern, *args, **kwargs):
return pattern.format(*args, **kwargs)
# To create distributable package:
#
# python3 setup.py bdist_wheel --universal
#
# Upload the package to pypi:
#
# twine upload dist/* | class Stringformat(object):
def format_string(self, pattern, *args, **kwargs):
return pattern.format(*args, **kwargs) |
# function to check string is
# palindrome or not
def isPalindrome(str):
# Run loop from 0 to len/2
for i in xrange(0, len(str)/2):
if str[i] != str[len(str)-i-1]:
return False
return True
# main function
s = "malayalam"
ans = isPalindrome(s)
if (ans):
print("Yes")
else:
print("No")
| def is_palindrome(str):
for i in xrange(0, len(str) / 2):
if str[i] != str[len(str) - i - 1]:
return False
return True
s = 'malayalam'
ans = is_palindrome(s)
if ans:
print('Yes')
else:
print('No') |
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external")
def rules_mybuilder_dependencies(
maven_servers = ["https://repo1.maven.org/maven2/"]):
"""
Defines run-time dependencies for the Java builder.
Any dependency not required for running this build (eg., for tests or packaging) should
go into the WORKSPACE file in the project root.
Note, as a best practice, all dependencies are prefixed with "mybuilder_rules_". This was done
in order to avoid collisions between the dependencies a builder uses and dependencies
the project using a builder has. Users can still override any of the dependencies defined
here by declaring a jvm_maven_import_external before calling this method. Bazel has a
first-one wins rule.
maven_servers: list of Maven servers to fetch artifacts from
"""
jvm_maven_import_external(
name = "mybuilder_rules_guava",
artifact = "com.google.guava:guava:28.2-jre",
artifact_sha256 = "fc3aa363ad87223d1fbea584eee015a862150f6d34c71f24dc74088a635f08ef",
licenses = ["notice"],
server_urls = maven_servers,
)
jvm_maven_import_external(
name = "mybuilder_rules_picocli",
artifact = "info.picocli:picocli:4.2.0",
artifact_sha256 = "d8cc74f00e6ae52e848539dfc7a05858dfe5cd19269491f8778efaa927665418",
licenses = ["notice"],
server_urls = maven_servers,
)
jvm_maven_import_external(
name = "mybuilder_rules_protobuf_java",
artifact = "com.google.protobuf:protobuf-java:3.11.4",
artifact_sha256 = "42e98f58f53d1a49fd734c2dd193880f2dfec3436a2993a00d06b8800a22a3f2",
licenses = ["notice"],
server_urls = maven_servers,
)
jvm_maven_import_external(
name = "mybuilder_rules_org_slf4j_api",
artifact = "org.slf4j:slf4j-api:1.7.30",
artifact_sha256 = "cdba07964d1bb40a0761485c6b1e8c2f8fd9eb1d19c53928ac0d7f9510105c57",
licenses = ["notice"],
server_urls = maven_servers,
)
jvm_maven_import_external(
name = "mybuilder_rules_org_slf4j_simple",
artifact = "org.slf4j:slf4j-simple:1.7.30",
artifact_sha256 = "8b9279cbff6b9f88594efae3cf02039b6995030eec023ed43928748c41670fee",
licenses = ["notice"],
server_urls = maven_servers,
)
jvm_maven_import_external(
name = "mybuilder_rules_org_slf4j_jul_to_slf4j",
artifact = "org.slf4j:jul-to-slf4j:1.7.30",
artifact_sha256 = "bbcbfdaa72572255c4f85207a9bfdb24358dc993e41252331bd4d0913e4988b9",
licenses = ["notice"],
server_urls = maven_servers,
)
jvm_maven_import_external(
name = "mybuilder_rules_org_slf4j_jcl_over_slf4j",
artifact = "org.slf4j:jcl-over-slf4j:1.7.30",
artifact_sha256 = "71e9ee37b9e4eb7802a2acc5f41728a4cf3915e7483d798db3b4ff2ec8847c50",
licenses = ["notice"],
server_urls = maven_servers,
)
def rules_mybuilder_toolchains():
# intentionally empty
return
| load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive', 'http_file')
load('@bazel_tools//tools/build_defs/repo:utils.bzl', 'maybe')
load('@bazel_tools//tools/build_defs/repo:jvm.bzl', 'jvm_maven_import_external')
def rules_mybuilder_dependencies(maven_servers=['https://repo1.maven.org/maven2/']):
"""
Defines run-time dependencies for the Java builder.
Any dependency not required for running this build (eg., for tests or packaging) should
go into the WORKSPACE file in the project root.
Note, as a best practice, all dependencies are prefixed with "mybuilder_rules_". This was done
in order to avoid collisions between the dependencies a builder uses and dependencies
the project using a builder has. Users can still override any of the dependencies defined
here by declaring a jvm_maven_import_external before calling this method. Bazel has a
first-one wins rule.
maven_servers: list of Maven servers to fetch artifacts from
"""
jvm_maven_import_external(name='mybuilder_rules_guava', artifact='com.google.guava:guava:28.2-jre', artifact_sha256='fc3aa363ad87223d1fbea584eee015a862150f6d34c71f24dc74088a635f08ef', licenses=['notice'], server_urls=maven_servers)
jvm_maven_import_external(name='mybuilder_rules_picocli', artifact='info.picocli:picocli:4.2.0', artifact_sha256='d8cc74f00e6ae52e848539dfc7a05858dfe5cd19269491f8778efaa927665418', licenses=['notice'], server_urls=maven_servers)
jvm_maven_import_external(name='mybuilder_rules_protobuf_java', artifact='com.google.protobuf:protobuf-java:3.11.4', artifact_sha256='42e98f58f53d1a49fd734c2dd193880f2dfec3436a2993a00d06b8800a22a3f2', licenses=['notice'], server_urls=maven_servers)
jvm_maven_import_external(name='mybuilder_rules_org_slf4j_api', artifact='org.slf4j:slf4j-api:1.7.30', artifact_sha256='cdba07964d1bb40a0761485c6b1e8c2f8fd9eb1d19c53928ac0d7f9510105c57', licenses=['notice'], server_urls=maven_servers)
jvm_maven_import_external(name='mybuilder_rules_org_slf4j_simple', artifact='org.slf4j:slf4j-simple:1.7.30', artifact_sha256='8b9279cbff6b9f88594efae3cf02039b6995030eec023ed43928748c41670fee', licenses=['notice'], server_urls=maven_servers)
jvm_maven_import_external(name='mybuilder_rules_org_slf4j_jul_to_slf4j', artifact='org.slf4j:jul-to-slf4j:1.7.30', artifact_sha256='bbcbfdaa72572255c4f85207a9bfdb24358dc993e41252331bd4d0913e4988b9', licenses=['notice'], server_urls=maven_servers)
jvm_maven_import_external(name='mybuilder_rules_org_slf4j_jcl_over_slf4j', artifact='org.slf4j:jcl-over-slf4j:1.7.30', artifact_sha256='71e9ee37b9e4eb7802a2acc5f41728a4cf3915e7483d798db3b4ff2ec8847c50', licenses=['notice'], server_urls=maven_servers)
def rules_mybuilder_toolchains():
return |
class FileHelper:
"""description of class"""
file = "";
def __init__(self, filename):
self.file = filename;
def ReadFile(self):
fileStream = open(self.file);
lines = fileStream.readlines();
fileStream.close();
return lines;
| class Filehelper:
"""description of class"""
file = ''
def __init__(self, filename):
self.file = filename
def read_file(self):
file_stream = open(self.file)
lines = fileStream.readlines()
fileStream.close()
return lines |
"""
PRACTICE ON BOOLEAN LOGIC!!!!
"""
"""
1) what will be displayed?
"""
# print(True) # True
# print(type(True)) # bool
# print(1 == 1) # True
# print(1 == 2) # False
# print(1 != 1) # False
# print(1 < 2) # True
# print(not (-1 <= 1)) # False
# print(1 > 2 and 2 < 5) # short-circuit --> False
# print(1 > 2 or 2 < 5) # True
# print(not 1 > 2 and 2 < 5) # not(False) and True --> True and True --> True
# print((not 1 > 2) and (not 2 < 5)) # not(False) and not(True) --> True and False --> False
"""
2) what will be displayed?
"""
# x = 5
# if x > 0 or x + 2 < 19:
# print("this is an interesting condition") # this line gets printed
"""
3) what will be displayed?
"""
# x = 5
# y = 10
# z = 0
# z -= 10 + x + y # z = z - (10 + x + y) --> 0 - 10 - 5 - 10 --> -25
# if z == 5:
# print("so z is 5 huh") # this line does not get printed
# print("will this line even print?") # this line gets printed
| """
PRACTICE ON BOOLEAN LOGIC!!!!
"""
'\n1) what will be displayed?\n'
'\n2) what will be displayed?\n'
'\n3) what will be displayed?\n' |
n = int(input())
s = [input().split() for _ in [0] * n]
c = 0
for i in s:
if i[1] == "JPY":
c += int(i[0])
else:
c += float(i[0]) * 380000
print(c)
| n = int(input())
s = [input().split() for _ in [0] * n]
c = 0
for i in s:
if i[1] == 'JPY':
c += int(i[0])
else:
c += float(i[0]) * 380000
print(c) |
# -*- coding: utf-8 -*-
"""\
This is a python port of "Goose" orignialy licensed to Gravity.com
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.
Python port was written by Xavier Grangier for Recrutae
Gravity.com licenses this file
to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class Article(object):
def __init__(self):
# title of the article
self.title = None
# stores the lovely, pure text from the article,
# stripped of html, formatting, etc...
# just raw text with paragraphs separated by newlines.
# This is probably what you want to use.
self.cleaned_text = ""
# meta description field in HTML source
self.meta_description = ""
# meta lang field in HTML source
self.meta_lang = ""
# meta favicon field in HTML source
self.meta_favicon = ""
# meta keywords field in the HTML source
self.meta_keywords = ""
# The canonical link of this article if found in the meta data
self.canonical_link = ""
# holds the domain of this article we're parsing
self.domain = ""
# holds the top Element we think
# is a candidate for the main body of the article
self.top_node = None
# holds the top Image object that
# we think represents this article
self.top_image = None
# holds a set of tags that may have
# been in the artcle, these are not meta keywords
self.tags = set()
# holds a list of any movies
# we found on the page like youtube, vimeo
self.movies = []
# stores the final URL that we're going to try
# and fetch content against, this would be expanded if any
self.final_url = ""
# stores the MD5 hash of the url
# to use for various identification tasks
self.link_hash = ""
# stores the RAW HTML
# straight from the network connection
self.raw_html = ""
# the lxml Document object
self.doc = None
# this is the original JSoup document that contains
# a pure object from the original HTML without any cleaning
# options done on it
self.raw_doc = None
# Sometimes useful to try and know when
# the publish date of an article was
self.publish_date = None
# A property bucket for consumers of goose to store custom data extractions.
self.additional_data = {}
| """This is a python port of "Goose" orignialy licensed to Gravity.com
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.
Python port was written by Xavier Grangier for Recrutae
Gravity.com licenses this file
to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class Article(object):
def __init__(self):
self.title = None
self.cleaned_text = ''
self.meta_description = ''
self.meta_lang = ''
self.meta_favicon = ''
self.meta_keywords = ''
self.canonical_link = ''
self.domain = ''
self.top_node = None
self.top_image = None
self.tags = set()
self.movies = []
self.final_url = ''
self.link_hash = ''
self.raw_html = ''
self.doc = None
self.raw_doc = None
self.publish_date = None
self.additional_data = {} |
# PingPong_Calculator.py
def convert_in2cm(inches):
return inches * 2.54
def convert_lb2kg(pounds):
return pounds / 2.2
height_in = int(input("Enter your height in inches: "))
weight_lb = int(input("Enter your weight in pounds: "))
height_cm = convert_in2cm(height_in)
weight_kg = convert_lb2kg(weight_lb)
ping_pong_tall = round(height_cm / 4)
ping_pong_heavy = round(weight_kg * 1000 / 2.7)
feet = height_in // 12
inch = height_in % 12
print("At", feet, "feet", inch, "inches tall, and", weight_lb,
"pounds,")
print("you measure", ping_pong_tall, "Ping-Pong balls tall, and ")
print("you weigh the same as", ping_pong_heavy, "Ping-Pong balls!")
| def convert_in2cm(inches):
return inches * 2.54
def convert_lb2kg(pounds):
return pounds / 2.2
height_in = int(input('Enter your height in inches: '))
weight_lb = int(input('Enter your weight in pounds: '))
height_cm = convert_in2cm(height_in)
weight_kg = convert_lb2kg(weight_lb)
ping_pong_tall = round(height_cm / 4)
ping_pong_heavy = round(weight_kg * 1000 / 2.7)
feet = height_in // 12
inch = height_in % 12
print('At', feet, 'feet', inch, 'inches tall, and', weight_lb, 'pounds,')
print('you measure', ping_pong_tall, 'Ping-Pong balls tall, and ')
print('you weigh the same as', ping_pong_heavy, 'Ping-Pong balls!') |
n = int(input())
count = [0]*5
for _ in range(n):
s = list(input())
if s[0] == "M":
count[0] += 1
if s[0] == "A":
count[1] += 1
if s[0] == "R":
count[2] += 1
if s[0] == "C":
count[3] += 1
if s[0] == "H":
count[4] += 1
ans = 0
for i in range(3):
for j in range(i+1, 4):
for k in range(j+1, 5):
ans += count[i]*count[j]*count[k]
print(ans) | n = int(input())
count = [0] * 5
for _ in range(n):
s = list(input())
if s[0] == 'M':
count[0] += 1
if s[0] == 'A':
count[1] += 1
if s[0] == 'R':
count[2] += 1
if s[0] == 'C':
count[3] += 1
if s[0] == 'H':
count[4] += 1
ans = 0
for i in range(3):
for j in range(i + 1, 4):
for k in range(j + 1, 5):
ans += count[i] * count[j] * count[k]
print(ans) |
class MemLog:
""" In-memory Raft log (for testing) """
def __init__(self):
self.log = [(0, None)]
def get_term(self, index):
if index < len(self.log):
return self.log[index][0]
def append(self, entries):
pass
def last(self):
log_index = len(self.log) - 1
return (self.log[log_index][0], log_index)
class MemPersistentState:
""" In-memory "persistent" server state (for testing) """
def __init__(self, current_term=0, voted_for=None):
self._current_term = current_term
self.voted_for = voted_for
self.log = MemLog()
def set_current_term(self, term):
if term < self._current_term:
raise ValueError()
if term > self._current_term:
self._voted_for = None
self._current_term = term
def get_current_term(self):
return self._current_term
def set_voted_for(self, voted_for):
self._voted_for = voted_for
def get_voted_for(self):
return self._voted_for
| class Memlog:
""" In-memory Raft log (for testing) """
def __init__(self):
self.log = [(0, None)]
def get_term(self, index):
if index < len(self.log):
return self.log[index][0]
def append(self, entries):
pass
def last(self):
log_index = len(self.log) - 1
return (self.log[log_index][0], log_index)
class Mempersistentstate:
""" In-memory "persistent" server state (for testing) """
def __init__(self, current_term=0, voted_for=None):
self._current_term = current_term
self.voted_for = voted_for
self.log = mem_log()
def set_current_term(self, term):
if term < self._current_term:
raise value_error()
if term > self._current_term:
self._voted_for = None
self._current_term = term
def get_current_term(self):
return self._current_term
def set_voted_for(self, voted_for):
self._voted_for = voted_for
def get_voted_for(self):
return self._voted_for |
#
# PySNMP MIB module TRUNK-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRUNK-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:27:43 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")
SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
MacAddress, = mibBuilder.importSymbols("BRIDGE-MIB", "MacAddress")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
MibIdentifier, Counter32, enterprises, Bits, TimeTicks, Unsigned32, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Counter64, iso, Gauge32, NotificationType, IpAddress, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter32", "enterprises", "Bits", "TimeTicks", "Unsigned32", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Counter64", "iso", "Gauge32", "NotificationType", "IpAddress", "Integer32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
class PortList(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(4, 4)
fixedLength = 4
marconi = MibIdentifier((1, 3, 6, 1, 4, 1, 326))
systems = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2))
external = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20))
dlink = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1))
dlinkcommon = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 1))
golf = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2))
golfproducts = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1))
golfcommon = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2))
marconi_mgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2)).setLabel("marconi-mgmt")
es1000Series = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24))
swPortTrunkPackage = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6))
swSnoopPackage = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7))
swIGMPPackage = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8))
endOfMIB = MibScalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 9999), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: endOfMIB.setStatus('optional')
swPortTrunkTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1), )
if mibBuilder.loadTexts: swPortTrunkTable.setStatus('mandatory')
if mibBuilder.loadTexts: swPortTrunkTable.setDescription('This table specifys which ports group a set of ports(up to 8) into a single logical link.')
swPortTrunkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1), ).setIndexNames((0, "TRUNK-MIB", "swPortTrunkIndex"))
if mibBuilder.loadTexts: swPortTrunkEntry.setStatus('mandatory')
if mibBuilder.loadTexts: swPortTrunkEntry.setDescription('A list of information specifies which ports group a set of ports(up to 8) into a single logical link.')
swPortTrunkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swPortTrunkIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swPortTrunkIndex.setDescription('The index of logical port trunk.The device max support 3 trunk groups. The trunk group number depend on the existence of module.')
swPortTrunkName = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swPortTrunkName.setStatus('mandatory')
if mibBuilder.loadTexts: swPortTrunkName.setDescription('The name of logical port trunk.')
swPortTrunkModule = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swPortTrunkModule.setStatus('mandatory')
if mibBuilder.loadTexts: swPortTrunkModule.setDescription('Indicate which modules include in this Trunk. The value is up to 2.')
swPortTrunkMasterPort = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swPortTrunkMasterPort.setStatus('mandatory')
if mibBuilder.loadTexts: swPortTrunkMasterPort.setDescription('The object indicates the master port number of the port trunk entry.The first port of the trunk is implicitly configured to be the master logical port.When using Port Trunk, you can not configure the other ports of the group except the master port. Their configuration must be same as the master port (e.g. speed, duplex, enabled/disabled, flow control, and so on).')
swPortTrunkMemberNum = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swPortTrunkMemberNum.setStatus('mandatory')
if mibBuilder.loadTexts: swPortTrunkMemberNum.setDescription('Indicate how many number of ports is included in this Trunk. If the trunk is located at expansion module (i.e. es400LinkAggrIndex equals to 3) and the module is 100-TX or FX-MTRJ, the maximum number of ports in the trunk is 2. The maximum number of ports is 8 for other trunks.')
swPortTrunkState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swPortTrunkState.setStatus('mandatory')
if mibBuilder.loadTexts: swPortTrunkState.setDescription('This object decide the port trunk enabled or disabled.')
swSnoopCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1), )
if mibBuilder.loadTexts: swSnoopCtrlTable.setStatus('mandatory')
if mibBuilder.loadTexts: swSnoopCtrlTable.setDescription("A list of port snooping entries.Port snooping function provide an easy way to monitor traffic on any port. In this way any good packets appears on the source mirror port also shows up on the target mirror port and doesn't to reconstruct the LAN.")
swSnoopCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1), ).setIndexNames((0, "TRUNK-MIB", "swSnoopIndex"))
if mibBuilder.loadTexts: swSnoopCtrlEntry.setStatus('mandatory')
if mibBuilder.loadTexts: swSnoopCtrlEntry.setDescription('A list of information provide an easy way to monitor traffic on any port. The use can bring a fancy network monitor attaching to any target mirror port and set the port to be monitored as source mirror port. ')
swSnoopIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swSnoopIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swSnoopIndex.setDescription('This object indicates the port snooping entry number.There is just only one now.')
swSnoopLogicSourcePort = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swSnoopLogicSourcePort.setStatus('mandatory')
if mibBuilder.loadTexts: swSnoopLogicSourcePort.setDescription("This object indicates the number of port to be sniffed. The port number is the sequential (logical) number which is also applied to bridge MIB, etc. For instance, logical port 1~22 is mapped to module 1's 10/100Base-T TP ports, port 23~24 is mapped to module 2's 100FX/TX ports, port 25 indicates for module 3's Gigabit port, and so on.")
swSnoopLogicTargetPort = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swSnoopLogicTargetPort.setStatus('mandatory')
if mibBuilder.loadTexts: swSnoopLogicTargetPort.setDescription("This object indicates switch which port will sniff another port. A trunk port member cannot be configured as a target Snooping port. The port number is the sequential (logical) number which is also applied to bridge MIB, etc. For instance, logical port 1~22 is mapped to module 1's 10/100Base-T TP ports, port 23~24 is mapped to module 2's 100FX/TX ports, port 25 indicates for module 3's Gigabit port, and so on.")
swSnoopState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swSnoopState.setStatus('mandatory')
if mibBuilder.loadTexts: swSnoopState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disable(2) - Snoop funtion disable. enable(3) - Snoop funtion enable and Snoop received or transmit packet by snoop source port.')
swIGMPCtrlTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1), )
if mibBuilder.loadTexts: swIGMPCtrlTable.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPCtrlTable.setDescription("The table controls the Vlan's IGMP function. Its scale depends on current VLAN state (swVlanInfoStatus). If VLAN is disabled or in Mac-Base mode, there is only one entry in the table, with index 1. If VLAN is in Port-Base or 802.1q mode, the number of entries can be up to 12, with index range from 1 to 12.")
swIGMPCtrlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1), ).setIndexNames((0, "TRUNK-MIB", "swIGMPCtrlIndex"))
if mibBuilder.loadTexts: swIGMPCtrlEntry.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPCtrlEntry.setDescription('The entry in IGMP control table (swIGMPCtrlTable). The entry is effective only when IGMP capture switch (swDevIGMPCaptureState) is enabled.')
swIGMPCtrlIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 12))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPCtrlIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPCtrlIndex.setDescription('This object indicates the IGMP control entry number.Its scale depends on current VLAN state (es400VlanInfoStatus). If VLAN is disabled or in Mac-Base mode, there is only one entry in the table, with index 1. If VLAN is in Port-Base or 802.1q mode, the number of entries is 12, with index range from 1 to 12.')
swIGMPCtrlVid = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swIGMPCtrlVid.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPCtrlVid.setDescription("This object indicates the IGMP control entry's VLAN id. If VLAN is disabled or in Mac-Base mode, the Vid is always 0 and cannot be changed by management users. If VLAN is in Port-Base mode, the Vid is arranged from 1 to 12 , fixed form. If VLAN is in 802.1q mode, the Vid setting can vary from 1 to 4094 by management user, and the Vid in each entry must be unique in the IGMP Control Table.")
swIGMPCtrlTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 9999)).clone(300)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swIGMPCtrlTimer.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPCtrlTimer.setDescription('The timer value for sending IGMP query packet when none was sent by the multicast router in the LAN. The timer works in per-VLAN basis. Our device will be activated to send the query message if the timer is expired. Please reference RFC2236-1997. And it recommends a default of 125 seconds. The timeout value must be at least 30 seconds.')
swIGMPCtrlState = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: swIGMPCtrlState.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPCtrlState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disable(2) - IGMP funtion is disabled for this entry. enable(3) - IGMP funtion is enabled for this entry.')
swIGMPInfoTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2), )
if mibBuilder.loadTexts: swIGMPInfoTable.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPInfoTable.setDescription('The table contains the number current IGMP query packets which is captured by this device, as well as the IGMP query packets sent by the device.')
swIGMPInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1), ).setIndexNames((0, "TRUNK-MIB", "swIGMPInfoIndex"))
if mibBuilder.loadTexts: swIGMPInfoEntry.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPInfoEntry.setDescription('Information about current IGMP query information, provided that swDevIGMPCaptureState and swIGMPCtrlState of associated VLAN entry are all enabled.')
swIGMPInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 12))).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPInfoIndex.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPInfoIndex.setDescription('This object indicates the IGMP query information entry number. It could be up to 12 entries, depending on current number of VLAN entries.')
swIGMPInfoVid = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPInfoVid.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPInfoVid.setDescription('This object indicates the Vid of associated IGMP info table entry. It follows swIGMPCtrlVid in the associated entry of IGMP control table (swIGMPCtrlTable).')
swIGMPInfoQueryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPInfoQueryCount.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPInfoQueryCount.setDescription('This object indicates the number of query packets received since the IGMP function enabled, in per-VLAN basis.')
swIGMPInfoTxQueryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPInfoTxQueryCount.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPInfoTxQueryCount.setDescription('This object indicates the send count of IGMP query messages, in per-VLAN basis. In case of IGMP timer expiration, the switch sends IGMP query packets to related VLAN member ports and increment this object by 1.')
swIGMPTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3), )
if mibBuilder.loadTexts: swIGMPTable.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPTable.setDescription('The table containing current IGMP information which captured by this device, provided that swDevIGMPCaptureState and swIGMPCtrlState of associated VLAN entry are all enabled. Note that the priority of IGMP table entries is lower than Filtering Table, i.e. if there is a table hash collision between the entries of IGMP Table and Filtering Table inside the switch H/W address table, then Filtering Table entry overwrite the colliding entry of IGMP Table. See swFdbFilterTable description also.')
swIGMPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1), ).setIndexNames((0, "TRUNK-MIB", "swIGMPVid"), (0, "TRUNK-MIB", "swIGMPGroupIpAddr"))
if mibBuilder.loadTexts: swIGMPEntry.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPEntry.setDescription('Information about current IGMP information which captured by this device , provided that swDevIGMPCaptureState and swIGMPCtrlState of associated VLAN entry are all enabled.')
swIGMPVid = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPVid.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPVid.setDescription('This object indicates the Vid of individual IGMP table entry. It shows the Vid of IGMP report information captured on network.')
swIGMPGroupIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPGroupIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPGroupIpAddr.setDescription('This object is identify group ip address which is captured from IGMP packet, in per-Vlan basis.')
swIGMPMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 3), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPMacAddr.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPMacAddr.setDescription('This object is identify mac address which is corresponding to swIGMPGroupIpAddr, in per-Vlan basis..')
swIGMPPortMap = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 4), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPPortMap.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPPortMap.setDescription("This object indicates which ports are belong to the same multicast group, in per-Vlan basis. Each multicast group has a octect string to indicate with port map. The most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port. In module 1 (base module), there are 22 100M twisted-pair ports (port 1..22) which is mapped to the PortMap's port 1 to 22 respectively. In module 2 (slot 1 module), there are 2 100M FX/100 TX (or a single port 100M FX) ports which is mapped to the PortMap's port 23,24 respectively (if the module is a single port 100M FX, it is just mapped to port 23 and port 24 is ignored). Module 3 (slot 2 module) is a single-port Gigabit Ethernet and it is mapped to the PortMap's port 25.")
swIGMPIpGroupReportCount = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: swIGMPIpGroupReportCount.setStatus('mandatory')
if mibBuilder.loadTexts: swIGMPIpGroupReportCount.setDescription('This object indicate how much report packet was receive by our device corresponding with this entry from IGMP function enabled, in per-Vlan basis. .')
mibBuilder.exportSymbols("TRUNK-MIB", swPortTrunkIndex=swPortTrunkIndex, swSnoopCtrlEntry=swSnoopCtrlEntry, swIGMPPortMap=swIGMPPortMap, swIGMPVid=swIGMPVid, swPortTrunkMemberNum=swPortTrunkMemberNum, swIGMPInfoEntry=swIGMPInfoEntry, dlink=dlink, swSnoopCtrlTable=swSnoopCtrlTable, swIGMPCtrlIndex=swIGMPCtrlIndex, swIGMPCtrlState=swIGMPCtrlState, swIGMPEntry=swIGMPEntry, swIGMPTable=swIGMPTable, swPortTrunkName=swPortTrunkName, endOfMIB=endOfMIB, swSnoopIndex=swSnoopIndex, swSnoopLogicSourcePort=swSnoopLogicSourcePort, marconi=marconi, swPortTrunkTable=swPortTrunkTable, swIGMPCtrlVid=swIGMPCtrlVid, swIGMPInfoTable=swIGMPInfoTable, golfcommon=golfcommon, swIGMPPackage=swIGMPPackage, golfproducts=golfproducts, swIGMPInfoVid=swIGMPInfoVid, swIGMPGroupIpAddr=swIGMPGroupIpAddr, swIGMPInfoQueryCount=swIGMPInfoQueryCount, dlinkcommon=dlinkcommon, external=external, swPortTrunkMasterPort=swPortTrunkMasterPort, swIGMPCtrlTable=swIGMPCtrlTable, swSnoopLogicTargetPort=swSnoopLogicTargetPort, swIGMPInfoTxQueryCount=swIGMPInfoTxQueryCount, swPortTrunkEntry=swPortTrunkEntry, swIGMPCtrlTimer=swIGMPCtrlTimer, swPortTrunkModule=swPortTrunkModule, swSnoopState=swSnoopState, es1000Series=es1000Series, PortList=PortList, swIGMPIpGroupReportCount=swIGMPIpGroupReportCount, systems=systems, swPortTrunkState=swPortTrunkState, swSnoopPackage=swSnoopPackage, swPortTrunkPackage=swPortTrunkPackage, swIGMPCtrlEntry=swIGMPCtrlEntry, swIGMPMacAddr=swIGMPMacAddr, marconi_mgmt=marconi_mgmt, golf=golf, swIGMPInfoIndex=swIGMPInfoIndex)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_union, value_range_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint')
(mac_address,) = mibBuilder.importSymbols('BRIDGE-MIB', 'MacAddress')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(mib_identifier, counter32, enterprises, bits, time_ticks, unsigned32, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, counter64, iso, gauge32, notification_type, ip_address, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Counter32', 'enterprises', 'Bits', 'TimeTicks', 'Unsigned32', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'Counter64', 'iso', 'Gauge32', 'NotificationType', 'IpAddress', 'Integer32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
class Portlist(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(4, 4)
fixed_length = 4
marconi = mib_identifier((1, 3, 6, 1, 4, 1, 326))
systems = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2))
external = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20))
dlink = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1))
dlinkcommon = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 1))
golf = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2))
golfproducts = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 1))
golfcommon = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2))
marconi_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2)).setLabel('marconi-mgmt')
es1000_series = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24))
sw_port_trunk_package = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6))
sw_snoop_package = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7))
sw_igmp_package = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8))
end_of_mib = mib_scalar((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 9999), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
endOfMIB.setStatus('optional')
sw_port_trunk_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1))
if mibBuilder.loadTexts:
swPortTrunkTable.setStatus('mandatory')
if mibBuilder.loadTexts:
swPortTrunkTable.setDescription('This table specifys which ports group a set of ports(up to 8) into a single logical link.')
sw_port_trunk_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1)).setIndexNames((0, 'TRUNK-MIB', 'swPortTrunkIndex'))
if mibBuilder.loadTexts:
swPortTrunkEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
swPortTrunkEntry.setDescription('A list of information specifies which ports group a set of ports(up to 8) into a single logical link.')
sw_port_trunk_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swPortTrunkIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
swPortTrunkIndex.setDescription('The index of logical port trunk.The device max support 3 trunk groups. The trunk group number depend on the existence of module.')
sw_port_trunk_name = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swPortTrunkName.setStatus('mandatory')
if mibBuilder.loadTexts:
swPortTrunkName.setDescription('The name of logical port trunk.')
sw_port_trunk_module = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swPortTrunkModule.setStatus('mandatory')
if mibBuilder.loadTexts:
swPortTrunkModule.setDescription('Indicate which modules include in this Trunk. The value is up to 2.')
sw_port_trunk_master_port = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swPortTrunkMasterPort.setStatus('mandatory')
if mibBuilder.loadTexts:
swPortTrunkMasterPort.setDescription('The object indicates the master port number of the port trunk entry.The first port of the trunk is implicitly configured to be the master logical port.When using Port Trunk, you can not configure the other ports of the group except the master port. Their configuration must be same as the master port (e.g. speed, duplex, enabled/disabled, flow control, and so on).')
sw_port_trunk_member_num = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swPortTrunkMemberNum.setStatus('mandatory')
if mibBuilder.loadTexts:
swPortTrunkMemberNum.setDescription('Indicate how many number of ports is included in this Trunk. If the trunk is located at expansion module (i.e. es400LinkAggrIndex equals to 3) and the module is 100-TX or FX-MTRJ, the maximum number of ports in the trunk is 2. The maximum number of ports is 8 for other trunks.')
sw_port_trunk_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 6, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swPortTrunkState.setStatus('mandatory')
if mibBuilder.loadTexts:
swPortTrunkState.setDescription('This object decide the port trunk enabled or disabled.')
sw_snoop_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1))
if mibBuilder.loadTexts:
swSnoopCtrlTable.setStatus('mandatory')
if mibBuilder.loadTexts:
swSnoopCtrlTable.setDescription("A list of port snooping entries.Port snooping function provide an easy way to monitor traffic on any port. In this way any good packets appears on the source mirror port also shows up on the target mirror port and doesn't to reconstruct the LAN.")
sw_snoop_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1)).setIndexNames((0, 'TRUNK-MIB', 'swSnoopIndex'))
if mibBuilder.loadTexts:
swSnoopCtrlEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
swSnoopCtrlEntry.setDescription('A list of information provide an easy way to monitor traffic on any port. The use can bring a fancy network monitor attaching to any target mirror port and set the port to be monitored as source mirror port. ')
sw_snoop_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swSnoopIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
swSnoopIndex.setDescription('This object indicates the port snooping entry number.There is just only one now.')
sw_snoop_logic_source_port = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swSnoopLogicSourcePort.setStatus('mandatory')
if mibBuilder.loadTexts:
swSnoopLogicSourcePort.setDescription("This object indicates the number of port to be sniffed. The port number is the sequential (logical) number which is also applied to bridge MIB, etc. For instance, logical port 1~22 is mapped to module 1's 10/100Base-T TP ports, port 23~24 is mapped to module 2's 100FX/TX ports, port 25 indicates for module 3's Gigabit port, and so on.")
sw_snoop_logic_target_port = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swSnoopLogicTargetPort.setStatus('mandatory')
if mibBuilder.loadTexts:
swSnoopLogicTargetPort.setDescription("This object indicates switch which port will sniff another port. A trunk port member cannot be configured as a target Snooping port. The port number is the sequential (logical) number which is also applied to bridge MIB, etc. For instance, logical port 1~22 is mapped to module 1's 10/100Base-T TP ports, port 23~24 is mapped to module 2's 100FX/TX ports, port 25 indicates for module 3's Gigabit port, and so on.")
sw_snoop_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 7, 1, 1, 4), 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:
swSnoopState.setStatus('mandatory')
if mibBuilder.loadTexts:
swSnoopState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disable(2) - Snoop funtion disable. enable(3) - Snoop funtion enable and Snoop received or transmit packet by snoop source port.')
sw_igmp_ctrl_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1))
if mibBuilder.loadTexts:
swIGMPCtrlTable.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPCtrlTable.setDescription("The table controls the Vlan's IGMP function. Its scale depends on current VLAN state (swVlanInfoStatus). If VLAN is disabled or in Mac-Base mode, there is only one entry in the table, with index 1. If VLAN is in Port-Base or 802.1q mode, the number of entries can be up to 12, with index range from 1 to 12.")
sw_igmp_ctrl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1)).setIndexNames((0, 'TRUNK-MIB', 'swIGMPCtrlIndex'))
if mibBuilder.loadTexts:
swIGMPCtrlEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPCtrlEntry.setDescription('The entry in IGMP control table (swIGMPCtrlTable). The entry is effective only when IGMP capture switch (swDevIGMPCaptureState) is enabled.')
sw_igmp_ctrl_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 12))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPCtrlIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPCtrlIndex.setDescription('This object indicates the IGMP control entry number.Its scale depends on current VLAN state (es400VlanInfoStatus). If VLAN is disabled or in Mac-Base mode, there is only one entry in the table, with index 1. If VLAN is in Port-Base or 802.1q mode, the number of entries is 12, with index range from 1 to 12.')
sw_igmp_ctrl_vid = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swIGMPCtrlVid.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPCtrlVid.setDescription("This object indicates the IGMP control entry's VLAN id. If VLAN is disabled or in Mac-Base mode, the Vid is always 0 and cannot be changed by management users. If VLAN is in Port-Base mode, the Vid is arranged from 1 to 12 , fixed form. If VLAN is in 802.1q mode, the Vid setting can vary from 1 to 4094 by management user, and the Vid in each entry must be unique in the IGMP Control Table.")
sw_igmp_ctrl_timer = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(30, 9999)).clone(300)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
swIGMPCtrlTimer.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPCtrlTimer.setDescription('The timer value for sending IGMP query packet when none was sent by the multicast router in the LAN. The timer works in per-VLAN basis. Our device will be activated to send the query message if the timer is expired. Please reference RFC2236-1997. And it recommends a default of 125 seconds. The timeout value must be at least 30 seconds.')
sw_igmp_ctrl_state = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 1, 1, 4), 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:
swIGMPCtrlState.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPCtrlState.setDescription('This object indicates the status of this entry. other(1) - this entry is currently in use but the conditions under which it will remain so are different from each of the following values. disable(2) - IGMP funtion is disabled for this entry. enable(3) - IGMP funtion is enabled for this entry.')
sw_igmp_info_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2))
if mibBuilder.loadTexts:
swIGMPInfoTable.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPInfoTable.setDescription('The table contains the number current IGMP query packets which is captured by this device, as well as the IGMP query packets sent by the device.')
sw_igmp_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1)).setIndexNames((0, 'TRUNK-MIB', 'swIGMPInfoIndex'))
if mibBuilder.loadTexts:
swIGMPInfoEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPInfoEntry.setDescription('Information about current IGMP query information, provided that swDevIGMPCaptureState and swIGMPCtrlState of associated VLAN entry are all enabled.')
sw_igmp_info_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 12))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPInfoIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPInfoIndex.setDescription('This object indicates the IGMP query information entry number. It could be up to 12 entries, depending on current number of VLAN entries.')
sw_igmp_info_vid = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPInfoVid.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPInfoVid.setDescription('This object indicates the Vid of associated IGMP info table entry. It follows swIGMPCtrlVid in the associated entry of IGMP control table (swIGMPCtrlTable).')
sw_igmp_info_query_count = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPInfoQueryCount.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPInfoQueryCount.setDescription('This object indicates the number of query packets received since the IGMP function enabled, in per-VLAN basis.')
sw_igmp_info_tx_query_count = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPInfoTxQueryCount.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPInfoTxQueryCount.setDescription('This object indicates the send count of IGMP query messages, in per-VLAN basis. In case of IGMP timer expiration, the switch sends IGMP query packets to related VLAN member ports and increment this object by 1.')
sw_igmp_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3))
if mibBuilder.loadTexts:
swIGMPTable.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPTable.setDescription('The table containing current IGMP information which captured by this device, provided that swDevIGMPCaptureState and swIGMPCtrlState of associated VLAN entry are all enabled. Note that the priority of IGMP table entries is lower than Filtering Table, i.e. if there is a table hash collision between the entries of IGMP Table and Filtering Table inside the switch H/W address table, then Filtering Table entry overwrite the colliding entry of IGMP Table. See swFdbFilterTable description also.')
sw_igmp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1)).setIndexNames((0, 'TRUNK-MIB', 'swIGMPVid'), (0, 'TRUNK-MIB', 'swIGMPGroupIpAddr'))
if mibBuilder.loadTexts:
swIGMPEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPEntry.setDescription('Information about current IGMP information which captured by this device , provided that swDevIGMPCaptureState and swIGMPCtrlState of associated VLAN entry are all enabled.')
sw_igmp_vid = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPVid.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPVid.setDescription('This object indicates the Vid of individual IGMP table entry. It shows the Vid of IGMP report information captured on network.')
sw_igmp_group_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPGroupIpAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPGroupIpAddr.setDescription('This object is identify group ip address which is captured from IGMP packet, in per-Vlan basis.')
sw_igmp_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 3), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPMacAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPMacAddr.setDescription('This object is identify mac address which is corresponding to swIGMPGroupIpAddr, in per-Vlan basis..')
sw_igmp_port_map = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 4), port_list()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPPortMap.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPPortMap.setDescription("This object indicates which ports are belong to the same multicast group, in per-Vlan basis. Each multicast group has a octect string to indicate with port map. The most significant bit represents the lowest numbered port, and the least significant bit represents the highest numbered port. In module 1 (base module), there are 22 100M twisted-pair ports (port 1..22) which is mapped to the PortMap's port 1 to 22 respectively. In module 2 (slot 1 module), there are 2 100M FX/100 TX (or a single port 100M FX) ports which is mapped to the PortMap's port 23,24 respectively (if the module is a single port 100M FX, it is just mapped to port 23 and port 24 is ignored). Module 3 (slot 2 module) is a single-port Gigabit Ethernet and it is mapped to the PortMap's port 25.")
sw_igmp_ip_group_report_count = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 20, 1, 2, 2, 2, 24, 8, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
swIGMPIpGroupReportCount.setStatus('mandatory')
if mibBuilder.loadTexts:
swIGMPIpGroupReportCount.setDescription('This object indicate how much report packet was receive by our device corresponding with this entry from IGMP function enabled, in per-Vlan basis. .')
mibBuilder.exportSymbols('TRUNK-MIB', swPortTrunkIndex=swPortTrunkIndex, swSnoopCtrlEntry=swSnoopCtrlEntry, swIGMPPortMap=swIGMPPortMap, swIGMPVid=swIGMPVid, swPortTrunkMemberNum=swPortTrunkMemberNum, swIGMPInfoEntry=swIGMPInfoEntry, dlink=dlink, swSnoopCtrlTable=swSnoopCtrlTable, swIGMPCtrlIndex=swIGMPCtrlIndex, swIGMPCtrlState=swIGMPCtrlState, swIGMPEntry=swIGMPEntry, swIGMPTable=swIGMPTable, swPortTrunkName=swPortTrunkName, endOfMIB=endOfMIB, swSnoopIndex=swSnoopIndex, swSnoopLogicSourcePort=swSnoopLogicSourcePort, marconi=marconi, swPortTrunkTable=swPortTrunkTable, swIGMPCtrlVid=swIGMPCtrlVid, swIGMPInfoTable=swIGMPInfoTable, golfcommon=golfcommon, swIGMPPackage=swIGMPPackage, golfproducts=golfproducts, swIGMPInfoVid=swIGMPInfoVid, swIGMPGroupIpAddr=swIGMPGroupIpAddr, swIGMPInfoQueryCount=swIGMPInfoQueryCount, dlinkcommon=dlinkcommon, external=external, swPortTrunkMasterPort=swPortTrunkMasterPort, swIGMPCtrlTable=swIGMPCtrlTable, swSnoopLogicTargetPort=swSnoopLogicTargetPort, swIGMPInfoTxQueryCount=swIGMPInfoTxQueryCount, swPortTrunkEntry=swPortTrunkEntry, swIGMPCtrlTimer=swIGMPCtrlTimer, swPortTrunkModule=swPortTrunkModule, swSnoopState=swSnoopState, es1000Series=es1000Series, PortList=PortList, swIGMPIpGroupReportCount=swIGMPIpGroupReportCount, systems=systems, swPortTrunkState=swPortTrunkState, swSnoopPackage=swSnoopPackage, swPortTrunkPackage=swPortTrunkPackage, swIGMPCtrlEntry=swIGMPCtrlEntry, swIGMPMacAddr=swIGMPMacAddr, marconi_mgmt=marconi_mgmt, golf=golf, swIGMPInfoIndex=swIGMPInfoIndex) |
"""Statistics"""
def counter(li,number):
num = 0
for c in li:
if c == number:
num += 1
return num
def occurance_dic(li):
dic = {}
for number in li:
dic[number] = counter(li,number)
return dic
def mean(li):
"""Avearage or mean of elements - shaonutil.stats.mean(list of numbers)"""
return sum(li)/len(li)
def median(li):
"""Median of elements - shaonutil.stats.median(list of numbers)"""
n = len(li)
li.sort()
if n % 2 == 0:
median1 = li[n//2]
median2 = li[n//2 - 1]
median = (median1 + median2)/2
else:
median = li[n//2]
return median
def mode(li):
"""Mode of elements - shaonutil.stats.mode(list of numbers)"""
n = len(li)
data = occurance_dic(li)
mode = [k for k, v in data.items() if v == max(list(data.values()))]
if len(mode) == n:
raise ValueError('No mode found !')
else:
return mode
if __name__ == '__main__':
pass | """Statistics"""
def counter(li, number):
num = 0
for c in li:
if c == number:
num += 1
return num
def occurance_dic(li):
dic = {}
for number in li:
dic[number] = counter(li, number)
return dic
def mean(li):
"""Avearage or mean of elements - shaonutil.stats.mean(list of numbers)"""
return sum(li) / len(li)
def median(li):
"""Median of elements - shaonutil.stats.median(list of numbers)"""
n = len(li)
li.sort()
if n % 2 == 0:
median1 = li[n // 2]
median2 = li[n // 2 - 1]
median = (median1 + median2) / 2
else:
median = li[n // 2]
return median
def mode(li):
"""Mode of elements - shaonutil.stats.mode(list of numbers)"""
n = len(li)
data = occurance_dic(li)
mode = [k for (k, v) in data.items() if v == max(list(data.values()))]
if len(mode) == n:
raise value_error('No mode found !')
else:
return mode
if __name__ == '__main__':
pass |
problem_string = '73167176531330624919225119674426574742355349194934'\
'96983520312774506326239578318016984801869478851843'\
'85861560789112949495459501737958331952853208805511'\
'12540698747158523863050715693290963295227443043557'\
'66896648950445244523161731856403098711121722383113'\
'62229893423380308135336276614282806444486645238749'\
'30358907296290491560440772390713810515859307960866'\
'70172427121883998797908792274921901699720888093776'\
'65727333001053367881220235421809751254540594752243'\
'52584907711670556013604839586446706324415722155397'\
'53697817977846174064955149290862569321978468622482'\
'83972241375657056057490261407972968652414535100474'\
'82166370484403199890008895243450658541227588666881'\
'16427171479924442928230863465674813919123162824586'\
'17866458359124566529476545682848912883142607690042'\
'24219022671055626321111109370544217506941658960408'\
'07198403850962455444362981230987879927244284909188'\
'84580156166097919133875499200524063689912560717606'\
'05886116467109405077541002256983155200055935729725'\
'71636269561882670428252483600823257530420752963450'
def solve(string: str=problem_string, amount: int=13) -> int:
highest = 0
for i in range(len(string) + 1 - amount):
product = 1
for digit in string[i: i + amount]:
product *= int(digit)
if product >= highest:
highest = product
return highest
| problem_string = '7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450'
def solve(string: str=problem_string, amount: int=13) -> int:
highest = 0
for i in range(len(string) + 1 - amount):
product = 1
for digit in string[i:i + amount]:
product *= int(digit)
if product >= highest:
highest = product
return highest |
class Solution:
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) <= 1:
return 0
ans = 0
for key in range(1, len(prices)):
ans += prices[key] - prices[key-1] if prices[key]-prices[key-1]>0 else 0
return ans
| class Solution:
def max_profit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) <= 1:
return 0
ans = 0
for key in range(1, len(prices)):
ans += prices[key] - prices[key - 1] if prices[key] - prices[key - 1] > 0 else 0
return ans |
def genesis_block_generation():
print("\nGenesis Block is generated. The Blockchain system is up...!")
print("Miners will now collect transactions from memPool and start building blocks...\n\n")
def block_info(block, consensus_algorithm):
print("The following block has been proposed by " + block['generator_id'] +
" and is generated into the Blockchain network")
print("**************************")
print("transactions:")
print(block['transactions'])
print("hash:")
print(block['hash'])
print("timestamp:")
print(block['timestamp'])
if consensus_algorithm == 1:
print("nonce:")
print(block['nonce'])
print("previous_hash:")
print(block['previous_hash'])
print("**************************")
def block_success_addition(self_address, generator_id):
print("*******************************************")
print("the block is now added to the local chain of " + self_address)
if generator_id != self_address:
print("this block was received from " + generator_id)
print("##############################\n")
def simulation_progress(current_chain_length, expected_chain_length):
print("The simulation have passed " + str(100*((current_chain_length+1)/expected_chain_length)) + "% of TXs to miners")
print("Miners will mint new valid blocks and generate them to The BC network")
def fork_analysis(number_of_forks):
if number_of_forks == 1:
print("\n##############################\nThere were no forks during this run\n#############################\n")
else:
print("\n##############################\nAs the simulation is finished, " + str(number_of_forks) + " different versions of chains were found\n#############################\n")
def mempool_info(mempool):
print('mempool contains the following TXs:')
txs = []
for i in range(mempool.qsize()):
txs.append(mempool.get())
for tx in txs:
print(tx)
mempool.put(tx)
def authorization_trigger(blockchain_placement, no_fogs, no_miners):
print("please input the address of authorized:")
if blockchain_placement == 1:
print("Fog Nodes")
else:
print("End-users")
print("to generate new blocks in the exact following format:")
print(">>>> 1 OR 3 OR 50 ... (up to: ")
if blockchain_placement == 1:
print(str(no_fogs) + " fog nodes available")
else:
print(str(no_miners) + " miners available in the EU layer")
print("Once done, kindly input: done")
def choose_functionality():
print("Please choose the function of the Blockchain network:\n"
"(1) Data Management\n"
"(2) Computational services\n"
"(3) Payment\n"
"(4) Identity Management\n")
def choose_placement():
print("Please choose the placement of the Blockchain network:\n"
"(1) Fog Layer\n"
"(2) End-User layer\n")
def choose_consensus():
print("Please choose the Consensus algorithm to be used in the simulation:\n"
"(1) Proof of Work: PoW\n"
"(2) Proof of Stake: PoS\n"
"(3) Proof of Authority: PoA\n")
def txs_success(txs_per_user, parent_add, self_add):
print(str(txs_per_user) + " data records had been generated by End-User no. " + str(parent_add) + "." + str(self_add))
def GDPR_warning():
print("###########################################"
"\nWARNING: Each end-user's address and the address of the fog component it is connected with,\n "
"will be immutably saved on the chain. This is not a GDPR-compliant practice.\n"
"if you need to have your application GDPR-compliant, you need to change the configuration,\n"
" so that other types of identities be saved on the immutable chain, and re-run the simulation."
"\n###########################################\n")
def miners_are_up():
print("*****************\nMiner nodes are up, connected to their neighbors, and waiting for the genesis block...!\n")
def illegal_tx(tx, wallet_content):
print("the following transaction is illegal:")
print(tx)
print("the end_user_wallet contains only " + str(wallet_content) + " digital coins..!")
print("the transaction is withdrawn from the block")
def illegal_block():
print("The proposed block is not valid."
"\nTransactions will be sent back to the mempool and mined again..!")
def unauthorized_miner_msg(miner_address):
print("Miner: " + miner_address + " is not authorized to generate a new block..!")
def block_discarded():
print("The received block was ignored because it is already in the local chain")
def users_and_fogs_are_up():
print("*****************\nEnd_users are up\nFog nodes are up\nEnd-Users are connected to their Fog nodes...\n")
def user_identity_addition_reminder(Num_endusers):
print("The network has " + str(Num_endusers) +
" end_users.\n For each of them, you need to input the value of newly added identity "
"attributes(if any)\n")
def local_chain_is_updated(miner_address, length_of_local_chain):
print("Using the Gossip protocol of FoBSim, the local chain of the following miner was updated:")
print("Miner: " + str(miner_address))
print("The length of the new local chain: " + str(length_of_local_chain))
def mempool_is_empty():
print("mempool is empty")
def finish():
print("simulation is done.")
print("To check/analyze the experiment, please refer to the temporary folder.")
print("There, you can find:")
print("- miners' local chains")
print("- miners' local records of users' wallets")
print("- log of blocks confirmed by the majority of miners")
print("- log of final amounts in miners' wallets (initial values - staked values + awards)")
print("- log of values which were staked by miners")
print("thank YOU..!")
| def genesis_block_generation():
print('\nGenesis Block is generated. The Blockchain system is up...!')
print('Miners will now collect transactions from memPool and start building blocks...\n\n')
def block_info(block, consensus_algorithm):
print('The following block has been proposed by ' + block['generator_id'] + ' and is generated into the Blockchain network')
print('**************************')
print('transactions:')
print(block['transactions'])
print('hash:')
print(block['hash'])
print('timestamp:')
print(block['timestamp'])
if consensus_algorithm == 1:
print('nonce:')
print(block['nonce'])
print('previous_hash:')
print(block['previous_hash'])
print('**************************')
def block_success_addition(self_address, generator_id):
print('*******************************************')
print('the block is now added to the local chain of ' + self_address)
if generator_id != self_address:
print('this block was received from ' + generator_id)
print('##############################\n')
def simulation_progress(current_chain_length, expected_chain_length):
print('The simulation have passed ' + str(100 * ((current_chain_length + 1) / expected_chain_length)) + '% of TXs to miners')
print('Miners will mint new valid blocks and generate them to The BC network')
def fork_analysis(number_of_forks):
if number_of_forks == 1:
print('\n##############################\nThere were no forks during this run\n#############################\n')
else:
print('\n##############################\nAs the simulation is finished, ' + str(number_of_forks) + ' different versions of chains were found\n#############################\n')
def mempool_info(mempool):
print('mempool contains the following TXs:')
txs = []
for i in range(mempool.qsize()):
txs.append(mempool.get())
for tx in txs:
print(tx)
mempool.put(tx)
def authorization_trigger(blockchain_placement, no_fogs, no_miners):
print('please input the address of authorized:')
if blockchain_placement == 1:
print('Fog Nodes')
else:
print('End-users')
print('to generate new blocks in the exact following format:')
print('>>>> 1 OR 3 OR 50 ... (up to: ')
if blockchain_placement == 1:
print(str(no_fogs) + ' fog nodes available')
else:
print(str(no_miners) + ' miners available in the EU layer')
print('Once done, kindly input: done')
def choose_functionality():
print('Please choose the function of the Blockchain network:\n(1) Data Management\n(2) Computational services\n(3) Payment\n(4) Identity Management\n')
def choose_placement():
print('Please choose the placement of the Blockchain network:\n(1) Fog Layer\n(2) End-User layer\n')
def choose_consensus():
print('Please choose the Consensus algorithm to be used in the simulation:\n(1) Proof of Work: PoW\n(2) Proof of Stake: PoS\n(3) Proof of Authority: PoA\n')
def txs_success(txs_per_user, parent_add, self_add):
print(str(txs_per_user) + ' data records had been generated by End-User no. ' + str(parent_add) + '.' + str(self_add))
def gdpr_warning():
print("###########################################\nWARNING: Each end-user's address and the address of the fog component it is connected with,\n will be immutably saved on the chain. This is not a GDPR-compliant practice.\nif you need to have your application GDPR-compliant, you need to change the configuration,\n so that other types of identities be saved on the immutable chain, and re-run the simulation.\n###########################################\n")
def miners_are_up():
print('*****************\nMiner nodes are up, connected to their neighbors, and waiting for the genesis block...!\n')
def illegal_tx(tx, wallet_content):
print('the following transaction is illegal:')
print(tx)
print('the end_user_wallet contains only ' + str(wallet_content) + ' digital coins..!')
print('the transaction is withdrawn from the block')
def illegal_block():
print('The proposed block is not valid.\nTransactions will be sent back to the mempool and mined again..!')
def unauthorized_miner_msg(miner_address):
print('Miner: ' + miner_address + ' is not authorized to generate a new block..!')
def block_discarded():
print('The received block was ignored because it is already in the local chain')
def users_and_fogs_are_up():
print('*****************\nEnd_users are up\nFog nodes are up\nEnd-Users are connected to their Fog nodes...\n')
def user_identity_addition_reminder(Num_endusers):
print('The network has ' + str(Num_endusers) + ' end_users.\n For each of them, you need to input the value of newly added identity attributes(if any)\n')
def local_chain_is_updated(miner_address, length_of_local_chain):
print('Using the Gossip protocol of FoBSim, the local chain of the following miner was updated:')
print('Miner: ' + str(miner_address))
print('The length of the new local chain: ' + str(length_of_local_chain))
def mempool_is_empty():
print('mempool is empty')
def finish():
print('simulation is done.')
print('To check/analyze the experiment, please refer to the temporary folder.')
print('There, you can find:')
print("- miners' local chains")
print("- miners' local records of users' wallets")
print('- log of blocks confirmed by the majority of miners')
print("- log of final amounts in miners' wallets (initial values - staked values + awards)")
print('- log of values which were staked by miners')
print('thank YOU..!') |
# encoding: utf-8
# Versioning convention
# https://www.python.org/dev/peps/pep-0440/
__version__ = "0.4.0"
| __version__ = '0.4.0' |
def get_price(auction_id):
return 0
def make_bid(bid, auction_id):
auction_price = get_price(auction_id)
if bid <= auction_price:
return False
auction_price = bid
return True | def get_price(auction_id):
return 0
def make_bid(bid, auction_id):
auction_price = get_price(auction_id)
if bid <= auction_price:
return False
auction_price = bid
return True |
add_location_schema = {
"type": "object",
"properties": {
"state": {"type": "string"},
"capital": {"type": "string"}
},
"required": ["state", "capital"]
}
update_capital_schema = {
"type": "object",
"properties": {
"capital": {"type": "string"}
},
"required": ["capital"]
}
| add_location_schema = {'type': 'object', 'properties': {'state': {'type': 'string'}, 'capital': {'type': 'string'}}, 'required': ['state', 'capital']}
update_capital_schema = {'type': 'object', 'properties': {'capital': {'type': 'string'}}, 'required': ['capital']} |
def AppendFIFO(list, value, max_values):
list.append(value)
while len(list) > max_values:
list.pop(0)
return list
def clamp(v, low, high):
"""clamp v to the range of [low, high]"""
return max(low, min(v, high))
| def append_fifo(list, value, max_values):
list.append(value)
while len(list) > max_values:
list.pop(0)
return list
def clamp(v, low, high):
"""clamp v to the range of [low, high]"""
return max(low, min(v, high)) |
class Parentheses(object):
def find_pair(self, num_pairs):
if num_pairs is None:
raise TypeError('num_pairs cannot be None')
if num_pairs < 0:
raise ValueError('num_pairs cannot be < 0')
if not num_pairs:
return []
results = []
curr_results = []
self._find_pair(num_pairs, num_pairs, curr_results, results)
return results
def _find_pair(self, nleft, nright, curr_results, results):
if nleft == 0 and nright == 0:
results.append(''.join(curr_results))
else:
if nleft >= 0:
self._find_pair(nleft-1, nright, curr_results+['('], results)
if nright > nleft:
self._find_pair(nleft, nright-1, curr_results+[')'], results) | class Parentheses(object):
def find_pair(self, num_pairs):
if num_pairs is None:
raise type_error('num_pairs cannot be None')
if num_pairs < 0:
raise value_error('num_pairs cannot be < 0')
if not num_pairs:
return []
results = []
curr_results = []
self._find_pair(num_pairs, num_pairs, curr_results, results)
return results
def _find_pair(self, nleft, nright, curr_results, results):
if nleft == 0 and nright == 0:
results.append(''.join(curr_results))
else:
if nleft >= 0:
self._find_pair(nleft - 1, nright, curr_results + ['('], results)
if nright > nleft:
self._find_pair(nleft, nright - 1, curr_results + [')'], results) |
'''
* @Author: csy
* @Date: 2019-04-28 13:48:03
* @Last Modified by: csy
* @Last Modified time: 2019-04-28 13:48:03
'''
age = 12
if age < 4:
print("Your admission cost is $0.")
elif age < 18:
print("Your admission cost is $5.")
else:
print("Your admission cost is $10.")
age = 12
if age < 4:
price = 0
elif age < 18:
price = 5
else:
price = 10
print("Your admission cost is $"+str(price))
| """
* @Author: csy
* @Date: 2019-04-28 13:48:03
* @Last Modified by: csy
* @Last Modified time: 2019-04-28 13:48:03
"""
age = 12
if age < 4:
print('Your admission cost is $0.')
elif age < 18:
print('Your admission cost is $5.')
else:
print('Your admission cost is $10.')
age = 12
if age < 4:
price = 0
elif age < 18:
price = 5
else:
price = 10
print('Your admission cost is $' + str(price)) |
def test_task_names_endpoint(client):
tasks_json = client.get(f'api/meta/tasks').json
tasks = [task['task_name'] for task in tasks_json]
assert {'classification',
'regression',
'ts_forecasting',
'clustering'} == set(tasks)
def test_metric_names_classification_endpoint(client):
classification_metrics_json = \
client.get('api/meta/metrics/classification').json
classification_metrics_names = [metric['metric_name'] for
metric in classification_metrics_json]
assert 'ROCAUC' in classification_metrics_names
assert 'RMSE' not in classification_metrics_names
def test_metric_names_regression_endpoint(client):
regression_metrics_json = \
client.get('api/meta/metrics/regression').json
regression_metrics = [metric['metric_name'] for
metric in regression_metrics_json]
assert 'RMSE' in regression_metrics
assert 'MAE' in regression_metrics
assert 'ROCAUC' not in regression_metrics
def test_model_names_classification_endpoint(client):
classification_models_json = \
client.get('api/meta/models/classification').json
classification_models_names = [model['model_name'] for
model in classification_models_json]
assert 'logit' in classification_models_names
assert 'linear' not in classification_models_names
def test_model_names_regression_endpoint(client):
regression_models_json = \
client.get('api/meta/models/regression').json
regression_models = [model['model_name'] for
model in regression_models_json]
assert 'linear' in regression_models
assert 'logit' not in regression_models
| def test_task_names_endpoint(client):
tasks_json = client.get(f'api/meta/tasks').json
tasks = [task['task_name'] for task in tasks_json]
assert {'classification', 'regression', 'ts_forecasting', 'clustering'} == set(tasks)
def test_metric_names_classification_endpoint(client):
classification_metrics_json = client.get('api/meta/metrics/classification').json
classification_metrics_names = [metric['metric_name'] for metric in classification_metrics_json]
assert 'ROCAUC' in classification_metrics_names
assert 'RMSE' not in classification_metrics_names
def test_metric_names_regression_endpoint(client):
regression_metrics_json = client.get('api/meta/metrics/regression').json
regression_metrics = [metric['metric_name'] for metric in regression_metrics_json]
assert 'RMSE' in regression_metrics
assert 'MAE' in regression_metrics
assert 'ROCAUC' not in regression_metrics
def test_model_names_classification_endpoint(client):
classification_models_json = client.get('api/meta/models/classification').json
classification_models_names = [model['model_name'] for model in classification_models_json]
assert 'logit' in classification_models_names
assert 'linear' not in classification_models_names
def test_model_names_regression_endpoint(client):
regression_models_json = client.get('api/meta/models/regression').json
regression_models = [model['model_name'] for model in regression_models_json]
assert 'linear' in regression_models
assert 'logit' not in regression_models |
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def closestValue(self, root: TreeNode, target: float) -> int:
result = root.val
while root:
if abs(root.val - target) < abs(result - target):
result = root.val
if abs(result - target) <= 0.5:
break
root = root.right if root.val < target else root.left
return result
| class Treenode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def closest_value(self, root: TreeNode, target: float) -> int:
result = root.val
while root:
if abs(root.val - target) < abs(result - target):
result = root.val
if abs(result - target) <= 0.5:
break
root = root.right if root.val < target else root.left
return result |
"""
Compatibility layer for Python 3/Python 2 single codebase
"""
try:
_basestring = basestring
_bytes_or_unicode = (str, unicode)
except NameError:
_basestring = str
_bytes_or_unicode = (bytes, str) | """
Compatibility layer for Python 3/Python 2 single codebase
"""
try:
_basestring = basestring
_bytes_or_unicode = (str, unicode)
except NameError:
_basestring = str
_bytes_or_unicode = (bytes, str) |
cooling_type_limits = {
'PASSIVE_COOLING': {'low': 0, 'high':35 },
'HI_ACTIVE_COOLING': {'low': 0, 'high':45 },
'MED_ACTIVE_COOLING': {'low': 0, 'high':40 }
}
boundary_constants_text = {'TOO_LOW':'too low', 'TOO_HIGH':'too high', 'NORMAL': 'normal'}
boundary_constants = {'low':'TOO_LOW', 'high': 'TOO_HIGH', 'normal' : 'NORMAL'}
def infer_breach(value, lowerLimit, upperLimit):
if value < lowerLimit:
return boundary_constants['low']
if value > upperLimit:
return boundary_constants['high']
return boundary_constants['normal']
def classify_temperature_breach(coolingType, temperatureInC):
lowerLimit = cooling_type_limits[coolingType]['low']
upperLimit = cooling_type_limits[coolingType]['high']
return infer_breach(temperatureInC, lowerLimit, upperLimit)
def send_to_controller(breachType):
send_status_to_controller(breachType)
def send_to_console(breachType):
send_status_to_console(breachType)
def send_to_email(breachType):
send_status_email(breachType)
def send_status_to_controller(breachType):
header = 0xfeed
print(f'{header}, {breachType}')
return breachType
def send_status_email(breachType):
recepient = "a.b@c.com"
print(f'To: {recepient}')
print('Hi, the temperature is {}'.format(boundary_constants_text[breachType]))
return breachType
def send_status_to_console(breachType):
print(breachType)
return breachType
receiver = {
"TO_CONTROLLER": send_to_controller,
"TO_EMAIL" : send_to_email,
"TO_CONSOLE" : send_to_console
}
def check_and_alert(alertTarget, coolingType, temperatureInC):
breachType =\
classify_temperature_breach(coolingType, temperatureInC)
receiver[alertTarget](breachType)
return breachType
| cooling_type_limits = {'PASSIVE_COOLING': {'low': 0, 'high': 35}, 'HI_ACTIVE_COOLING': {'low': 0, 'high': 45}, 'MED_ACTIVE_COOLING': {'low': 0, 'high': 40}}
boundary_constants_text = {'TOO_LOW': 'too low', 'TOO_HIGH': 'too high', 'NORMAL': 'normal'}
boundary_constants = {'low': 'TOO_LOW', 'high': 'TOO_HIGH', 'normal': 'NORMAL'}
def infer_breach(value, lowerLimit, upperLimit):
if value < lowerLimit:
return boundary_constants['low']
if value > upperLimit:
return boundary_constants['high']
return boundary_constants['normal']
def classify_temperature_breach(coolingType, temperatureInC):
lower_limit = cooling_type_limits[coolingType]['low']
upper_limit = cooling_type_limits[coolingType]['high']
return infer_breach(temperatureInC, lowerLimit, upperLimit)
def send_to_controller(breachType):
send_status_to_controller(breachType)
def send_to_console(breachType):
send_status_to_console(breachType)
def send_to_email(breachType):
send_status_email(breachType)
def send_status_to_controller(breachType):
header = 65261
print(f'{header}, {breachType}')
return breachType
def send_status_email(breachType):
recepient = 'a.b@c.com'
print(f'To: {recepient}')
print('Hi, the temperature is {}'.format(boundary_constants_text[breachType]))
return breachType
def send_status_to_console(breachType):
print(breachType)
return breachType
receiver = {'TO_CONTROLLER': send_to_controller, 'TO_EMAIL': send_to_email, 'TO_CONSOLE': send_to_console}
def check_and_alert(alertTarget, coolingType, temperatureInC):
breach_type = classify_temperature_breach(coolingType, temperatureInC)
receiver[alertTarget](breachType)
return breachType |
class SilverbachConjecture:
def solve(self, n):
ls = [True] * 2001
for i in xrange(2, 2001):
if ls[i]:
for j in xrange(2 * i, 2001, i):
ls[j] = False
for i in xrange(2, n - 1):
if not ls[i] and not ls[n - i]:
return (i, n - i)
| class Silverbachconjecture:
def solve(self, n):
ls = [True] * 2001
for i in xrange(2, 2001):
if ls[i]:
for j in xrange(2 * i, 2001, i):
ls[j] = False
for i in xrange(2, n - 1):
if not ls[i] and (not ls[n - i]):
return (i, n - i) |
# Advent of Code - Davertical 2 - Part One
def result(data):
horizontal, vertical = 0, 0
for line in data:
direction, i = line.split(' ')
i = int(i)
if direction == 'forward':
horizontal += i
if direction == 'up':
vertical -= i
if direction == 'down':
vertical += i
return horizontal*vertical
| def result(data):
(horizontal, vertical) = (0, 0)
for line in data:
(direction, i) = line.split(' ')
i = int(i)
if direction == 'forward':
horizontal += i
if direction == 'up':
vertical -= i
if direction == 'down':
vertical += i
return horizontal * vertical |
"""
Lester Interpretor
"""
class parser( object ):
def __init__( self ):
self.comment = '#'
self.escape = '\\'
self.group = '()[]{}'
self.string = '"\''
self.token = ' '
self._stack = []
self._text = ''
def is_open( self ):
return len( self._text ) > 0
def load( self, text ):
self._text += text
def get_token( self ):
#raise NotImplemented()
## ZIH - temp
return None
class product( object ):
STATUS_OK = 0
STATUS_EXIT = 1
def __init__( self, output, status = STATUS_OK ):
self.status = product.STATUS_OK
self.output = None
def __str__( self ):
return str( self.output )
class statement( object ):
MODE_POSTFIX = 0
MODE_PREFIX = 1
def __init__( self, tokens, mode = MODE_POSTFIX ):
self.mode = mode
self.tokens = tokens
class context( object ):
def __init__( self ):
self._stack = []
def execute( statement ):
## ZIH - temp
pass
class interp( object ):
def __init__( self ):
self.context = context()
self.parser = parser()
self.stack = []
def run( self, ifh, ofh, interactive = False ):
if interactive == True:
ofh.write( '> ' )
line = ifh.readline()
while line != '':
result = self.enter_line( line )
if result.status == product.STATUS_EXIT:
break
if interactive == True:
ofh.write( '< ' + str( result ) + '\n> ' )
line = ifh.readline()
def enter_line( self, line ):
self.parser.load( line )
#stmt = statement( tokens )
#result = self.context.execute( stmt )
## ZIH - temp
p = product( 'not implemented' )
if line.strip()[ 0 : 4 ] == 'exit':
p.status = product.STATUS_EXIT
return p
return p
| """
Lester Interpretor
"""
class Parser(object):
def __init__(self):
self.comment = '#'
self.escape = '\\'
self.group = '()[]{}'
self.string = '"\''
self.token = ' '
self._stack = []
self._text = ''
def is_open(self):
return len(self._text) > 0
def load(self, text):
self._text += text
def get_token(self):
return None
class Product(object):
status_ok = 0
status_exit = 1
def __init__(self, output, status=STATUS_OK):
self.status = product.STATUS_OK
self.output = None
def __str__(self):
return str(self.output)
class Statement(object):
mode_postfix = 0
mode_prefix = 1
def __init__(self, tokens, mode=MODE_POSTFIX):
self.mode = mode
self.tokens = tokens
class Context(object):
def __init__(self):
self._stack = []
def execute(statement):
pass
class Interp(object):
def __init__(self):
self.context = context()
self.parser = parser()
self.stack = []
def run(self, ifh, ofh, interactive=False):
if interactive == True:
ofh.write('> ')
line = ifh.readline()
while line != '':
result = self.enter_line(line)
if result.status == product.STATUS_EXIT:
break
if interactive == True:
ofh.write('< ' + str(result) + '\n> ')
line = ifh.readline()
def enter_line(self, line):
self.parser.load(line)
p = product('not implemented')
if line.strip()[0:4] == 'exit':
p.status = product.STATUS_EXIT
return p
return p |
# Codecademy's training document works with Markov_chains.py
# Inna I. Ivanova
training_doc2 = """
"Papa Don't Preach"
Madonna Lyrics
Papa, I know you're going to be upset
'Cause I was always your little girl
But you should know by now, I'm not a baby
You always taught me right from wrong
I need your help, daddy, please be strong
I may be young at heart, but I know what I'm saying
The one you warned me all about
The one you said I could do without
We're in an awful mess
And I don't mean maybe
Please
Papa don't preach
I'm in trouble, deep
Papa don't preach
I've been losing sleep
But I made up my mind
I'm keeping my baby
Ooh, I'm gonna keep my baby, mmm
He says that he's going to marry me
We can raise a little family
Maybe we'll be all right
It's a sacrifice
But my friends keep telling me to give it up
Saying I'm too young, I ought to live it up
What I need right now is some good advice
Please
Papa don't preach
I'm in trouble, deep
Papa don't preach
I've been losing sleep
But I made up my mind
I'm keeping my baby
Ooh, I'm gonna keep my baby, aah, ooh
Daddy, daddy, if you could only see
Just how good he's been treating me
You'd give us your blessing right now
'Cause we are in love
We are in love
So please
Daddy, daddy
Daddy, daddy
Daddy, daddy, if you could only see
Just how good he's been treating me
You'd give us your blessing right now
'Cause we are in love
We are in love
So please
Papa don't preach
Papa don't preach
Papa don't preach
Papa don't preach
Papa don't preach
Papa don't preach
Papa don't preach
I'm in trouble, deep
Papa don't preach
I've been losing sleep
But I made up my mind
I'm keeping my baby
Ooh, I'm gonna keep my baby
Papa don't preach
Don't you stop loving me, daddy
I know I'm gonna keep my baby, ooh
"""
| training_doc2 = '\n"Papa Don\'t Preach"\nMadonna Lyrics\n\nPapa, I know you\'re going to be upset\n\'Cause I was always your little girl\nBut you should know by now, I\'m not a baby\nYou always taught me right from wrong\nI need your help, daddy, please be strong\nI may be young at heart, but I know what I\'m saying\n\nThe one you warned me all about\nThe one you said I could do without\nWe\'re in an awful mess\nAnd I don\'t mean maybe\nPlease\n\nPapa don\'t preach\nI\'m in trouble, deep\nPapa don\'t preach\nI\'ve been losing sleep\nBut I made up my mind\nI\'m keeping my baby\nOoh, I\'m gonna keep my baby, mmm\n\nHe says that he\'s going to marry me\nWe can raise a little family\nMaybe we\'ll be all right\nIt\'s a sacrifice\n\nBut my friends keep telling me to give it up\nSaying I\'m too young, I ought to live it up\nWhat I need right now is some good advice\nPlease\n\nPapa don\'t preach\nI\'m in trouble, deep\nPapa don\'t preach\nI\'ve been losing sleep\nBut I made up my mind\nI\'m keeping my baby\nOoh, I\'m gonna keep my baby, aah, ooh\n\nDaddy, daddy, if you could only see\nJust how good he\'s been treating me\nYou\'d give us your blessing right now\n\'Cause we are in love\nWe are in love\nSo please\n\nDaddy, daddy\nDaddy, daddy\n\nDaddy, daddy, if you could only see\nJust how good he\'s been treating me\nYou\'d give us your blessing right now\n\'Cause we are in love\nWe are in love\nSo please\n\nPapa don\'t preach\nPapa don\'t preach\nPapa don\'t preach\nPapa don\'t preach\n\nPapa don\'t preach\nPapa don\'t preach\n\nPapa don\'t preach\nI\'m in trouble, deep\nPapa don\'t preach\nI\'ve been losing sleep\nBut I made up my mind\nI\'m keeping my baby\nOoh, I\'m gonna keep my baby\n\nPapa don\'t preach\nDon\'t you stop loving me, daddy\nI know I\'m gonna keep my baby, ooh\n\n' |
#
# @lc app=leetcode.cn id=277 lang=python3
#
# [277] find-the-celebrity
#
None
# @lc code=end | None |
#
# PySNMP MIB module E7-Notifications-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/E7-Notifications-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:58:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
e7Modules, e7 = mibBuilder.importSymbols("CALIX-PRODUCT-MIB", "e7Modules", "e7")
E7AlarmType, E7ObjectClass, E7TcaType, E7SecurityType, E7EventType = mibBuilder.importSymbols("E7-TC", "E7AlarmType", "E7ObjectClass", "E7TcaType", "E7SecurityType", "E7EventType")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
IpAddress, Integer32, Counter64, ModuleIdentity, ObjectIdentity, Gauge32, iso, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Counter32, MibIdentifier, NotificationType, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Integer32", "Counter64", "ModuleIdentity", "ObjectIdentity", "Gauge32", "iso", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Counter32", "MibIdentifier", "NotificationType", "Unsigned32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
e7NotificationModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 1, 3))
if mibBuilder.loadTexts: e7NotificationModule.setLastUpdated('200912100000Z')
if mibBuilder.loadTexts: e7NotificationModule.setOrganization('Calix')
if mibBuilder.loadTexts: e7NotificationModule.setContactInfo('Calix')
if mibBuilder.loadTexts: e7NotificationModule.setDescription('Describes all the notifications related to Calix E7, E5-400, and E5-312 products.')
e7Notification = MibIdentifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4))
e7NotificationObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1))
e7Notifications = MibIdentifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2))
e7TrapSequenceNo = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 1), Integer32())
if mibBuilder.loadTexts: e7TrapSequenceNo.setStatus('current')
if mibBuilder.loadTexts: e7TrapSequenceNo.setDescription('')
e7TrapAlarmType = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 2), E7AlarmType())
if mibBuilder.loadTexts: e7TrapAlarmType.setStatus('current')
if mibBuilder.loadTexts: e7TrapAlarmType.setDescription('Alarm type of the Alarm')
e7TrapAlarmStatus = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2))))
if mibBuilder.loadTexts: e7TrapAlarmStatus.setStatus('current')
if mibBuilder.loadTexts: e7TrapAlarmStatus.setDescription('')
e7TrapObjectClass = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 4), E7ObjectClass())
if mibBuilder.loadTexts: e7TrapObjectClass.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectClass.setDescription('')
e7TrapObjectInstance1 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 5), Integer32())
if mibBuilder.loadTexts: e7TrapObjectInstance1.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectInstance1.setDescription('Object instance for a notification, level 1')
e7TrapObjectInstance2 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 6), Integer32())
if mibBuilder.loadTexts: e7TrapObjectInstance2.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectInstance2.setDescription('Object instance for a notification, level 2')
e7TrapObjectInstance3 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 7), Integer32())
if mibBuilder.loadTexts: e7TrapObjectInstance3.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectInstance3.setDescription('Object instance for a notification, level 3')
e7TrapObjectInstance4 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 8), Integer32())
if mibBuilder.loadTexts: e7TrapObjectInstance4.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectInstance4.setDescription('Object instance for a notification, level 4')
e7TrapObjectInstance5 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 9), Integer32())
if mibBuilder.loadTexts: e7TrapObjectInstance5.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectInstance5.setDescription('Object instance for a notification, level 5')
e7TrapObjectInstance6 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 10), Integer32())
if mibBuilder.loadTexts: e7TrapObjectInstance6.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectInstance6.setDescription('Object instance for a notification, level 6')
e7TrapObjectInstance7 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 11), Integer32())
if mibBuilder.loadTexts: e7TrapObjectInstance7.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectInstance7.setDescription('Object instance for a notification, level 7')
e7TrapObjectInstance8 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 12), Integer32())
if mibBuilder.loadTexts: e7TrapObjectInstance8.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectInstance8.setDescription('Object instance for a notification, level 8')
e7TrapAlarmSeverityLevel = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("critical", 1), ("major", 2), ("minor", 3), ("warning", 4), ("unknown", 5), ("clear", 6))))
if mibBuilder.loadTexts: e7TrapAlarmSeverityLevel.setStatus('current')
if mibBuilder.loadTexts: e7TrapAlarmSeverityLevel.setDescription('')
e7TrapTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 14), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 50)))
if mibBuilder.loadTexts: e7TrapTimeStamp.setStatus('current')
if mibBuilder.loadTexts: e7TrapTimeStamp.setDescription('local time string')
e7TrapServiceAffecting = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("yes", 1), ("no", 2))))
if mibBuilder.loadTexts: e7TrapServiceAffecting.setStatus('current')
if mibBuilder.loadTexts: e7TrapServiceAffecting.setDescription('This value indicated wether this alarm is service affecting or not')
e7TrapAlarmLocationInfo = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("nearEnd", 1))))
if mibBuilder.loadTexts: e7TrapAlarmLocationInfo.setStatus('current')
if mibBuilder.loadTexts: e7TrapAlarmLocationInfo.setDescription('Location info')
e7TrapText = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 17), OctetString())
if mibBuilder.loadTexts: e7TrapText.setStatus('current')
if mibBuilder.loadTexts: e7TrapText.setDescription('This object contains the brief description about the notification')
e7TrapEventType = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 18), E7EventType())
if mibBuilder.loadTexts: e7TrapEventType.setStatus('current')
if mibBuilder.loadTexts: e7TrapEventType.setDescription('Event type of the Event')
e7TrapDbChangeType = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4))).clone(namedValues=NamedValues(("add", 2), ("modify", 3), ("delete", 4))))
if mibBuilder.loadTexts: e7TrapDbChangeType.setStatus('current')
if mibBuilder.loadTexts: e7TrapDbChangeType.setDescription('Db change type')
e7TrapSessionNumber = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 20), Integer32())
if mibBuilder.loadTexts: e7TrapSessionNumber.setStatus('current')
if mibBuilder.loadTexts: e7TrapSessionNumber.setDescription('User session number')
e7TrapUserName = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 21), OctetString())
if mibBuilder.loadTexts: e7TrapUserName.setStatus('current')
if mibBuilder.loadTexts: e7TrapUserName.setDescription('User name')
e7TrapIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 22), IpAddress())
if mibBuilder.loadTexts: e7TrapIpAddr.setStatus('current')
if mibBuilder.loadTexts: e7TrapIpAddr.setDescription('User name')
e7TrapSecurityType = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 23), E7SecurityType())
if mibBuilder.loadTexts: e7TrapSecurityType.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecurityType.setDescription('Security event type')
e7TrapMgmtIfType = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("debug", 1), ("system", 2), ("cli", 3), ("snmp", 4), ("netconf", 5))))
if mibBuilder.loadTexts: e7TrapMgmtIfType.setStatus('current')
if mibBuilder.loadTexts: e7TrapMgmtIfType.setDescription('Management interface type')
e7TrapTcaType = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 25), E7TcaType())
if mibBuilder.loadTexts: e7TrapTcaType.setStatus('current')
if mibBuilder.loadTexts: e7TrapTcaType.setDescription('TCA element type')
e7TrapTcaBinType = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("min15", 1), ("day1", 2), ("total", 3))))
if mibBuilder.loadTexts: e7TrapTcaBinType.setStatus('current')
if mibBuilder.loadTexts: e7TrapTcaBinType.setDescription('TCA bin type -- only min15 and day1 used at this time')
e7TrapTime = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 27), Integer32())
if mibBuilder.loadTexts: e7TrapTime.setStatus('current')
if mibBuilder.loadTexts: e7TrapTime.setDescription('UTC time integer')
e7TrapTcaValueType = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("count", 1), ("floor", 2), ("ceiling", 3))))
if mibBuilder.loadTexts: e7TrapTcaValueType.setStatus('current')
if mibBuilder.loadTexts: e7TrapTcaValueType.setDescription('TCA value type -- exceeded count, below min (floor), or above max (ceiling)')
e7TrapCliObject = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 29), OctetString())
if mibBuilder.loadTexts: e7TrapCliObject.setStatus('current')
if mibBuilder.loadTexts: e7TrapCliObject.setDescription('The short CLI name for the object class and instance')
e7TrapRepeatCount = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 30), Integer32())
if mibBuilder.loadTexts: e7TrapRepeatCount.setStatus('current')
if mibBuilder.loadTexts: e7TrapRepeatCount.setDescription('The number of identical events of this type (1 for non-repeating events, > 1 for repeating events).')
e7TrapSecObjectClass = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 31), E7ObjectClass())
if mibBuilder.loadTexts: e7TrapSecObjectClass.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectClass.setDescription('Secondary object class')
e7TrapSecObjectInstance1 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 32), Integer32())
if mibBuilder.loadTexts: e7TrapSecObjectInstance1.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectInstance1.setDescription('Secondary object instance for a notification, level 1')
e7TrapSecObjectInstance2 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 33), Integer32())
if mibBuilder.loadTexts: e7TrapSecObjectInstance2.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectInstance2.setDescription('Secondary object instance for a notification, level 2')
e7TrapSecObjectInstance3 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 34), Integer32())
if mibBuilder.loadTexts: e7TrapSecObjectInstance3.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectInstance3.setDescription('Secondary object instance for a notification, level 3')
e7TrapSecObjectInstance4 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 35), Integer32())
if mibBuilder.loadTexts: e7TrapSecObjectInstance4.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectInstance4.setDescription('Secondary object instance for a notification, level 4')
e7TrapSecObjectInstance5 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 36), Integer32())
if mibBuilder.loadTexts: e7TrapSecObjectInstance5.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectInstance5.setDescription('Secondary object instance for a notification, level 5')
e7TrapSecObjectInstance6 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 37), Integer32())
if mibBuilder.loadTexts: e7TrapSecObjectInstance6.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectInstance6.setDescription('Secondary object instance for a notification, level 6')
e7TrapSecObjectInstance7 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 38), Integer32())
if mibBuilder.loadTexts: e7TrapSecObjectInstance7.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectInstance7.setDescription('Secondary object instance for a notification, level 7')
e7TrapSecObjectInstance8 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 39), Integer32())
if mibBuilder.loadTexts: e7TrapSecObjectInstance8.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectInstance8.setDescription('Secondary object instance for a notification, level 8')
e7TrapObjectLabel1 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 40), OctetString())
if mibBuilder.loadTexts: e7TrapObjectLabel1.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectLabel1.setDescription("1st label for primary Object Instance, in 'pos,label' format")
e7TrapObjectLabel2 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 41), OctetString())
if mibBuilder.loadTexts: e7TrapObjectLabel2.setStatus('current')
if mibBuilder.loadTexts: e7TrapObjectLabel2.setDescription("2nd label for primary Object Instance, in 'pos,label' format")
e7TrapSecObjectLabel1 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 42), OctetString())
if mibBuilder.loadTexts: e7TrapSecObjectLabel1.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectLabel1.setDescription("1st label for secondary Object Instance, in 'pos,label' format")
e7TrapSecObjectLabel2 = MibScalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 43), OctetString())
if mibBuilder.loadTexts: e7TrapSecObjectLabel2.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecObjectLabel2.setDescription("2nd label for secondary Object Instance, in 'pos,label' format")
e7TrapAlarm = NotificationType((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 1)).setObjects(("E7-Notifications-MIB", "e7TrapSequenceNo"), ("E7-Notifications-MIB", "e7TrapAlarmType"), ("E7-Notifications-MIB", "e7TrapAlarmStatus"), ("E7-Notifications-MIB", "e7TrapObjectClass"), ("E7-Notifications-MIB", "e7TrapObjectInstance1"), ("E7-Notifications-MIB", "e7TrapObjectInstance2"), ("E7-Notifications-MIB", "e7TrapObjectInstance3"), ("E7-Notifications-MIB", "e7TrapObjectInstance4"), ("E7-Notifications-MIB", "e7TrapObjectInstance5"), ("E7-Notifications-MIB", "e7TrapObjectInstance6"), ("E7-Notifications-MIB", "e7TrapObjectInstance7"), ("E7-Notifications-MIB", "e7TrapObjectInstance8"), ("E7-Notifications-MIB", "e7TrapCliObject"), ("E7-Notifications-MIB", "e7TrapAlarmSeverityLevel"), ("E7-Notifications-MIB", "e7TrapTimeStamp"), ("E7-Notifications-MIB", "e7TrapTime"), ("E7-Notifications-MIB", "e7TrapServiceAffecting"), ("E7-Notifications-MIB", "e7TrapAlarmLocationInfo"), ("E7-Notifications-MIB", "e7TrapText"), ("E7-Notifications-MIB", "e7TrapSecObjectClass"), ("E7-Notifications-MIB", "e7TrapSecObjectInstance1"), ("E7-Notifications-MIB", "e7TrapSecObjectInstance2"), ("E7-Notifications-MIB", "e7TrapSecObjectInstance3"), ("E7-Notifications-MIB", "e7TrapSecObjectInstance4"), ("E7-Notifications-MIB", "e7TrapSecObjectInstance5"), ("E7-Notifications-MIB", "e7TrapSecObjectInstance6"), ("E7-Notifications-MIB", "e7TrapSecObjectInstance7"), ("E7-Notifications-MIB", "e7TrapSecObjectInstance8"), ("E7-Notifications-MIB", "e7TrapObjectLabel1"), ("E7-Notifications-MIB", "e7TrapObjectLabel2"), ("E7-Notifications-MIB", "e7TrapSecObjectLabel1"), ("E7-Notifications-MIB", "e7TrapSecObjectLabel2"))
if mibBuilder.loadTexts: e7TrapAlarm.setStatus('current')
if mibBuilder.loadTexts: e7TrapAlarm.setDescription('e7TrapAlarm is generated whenever an alarm is raised or cleared.')
e7TrapEvent = NotificationType((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 2)).setObjects(("E7-Notifications-MIB", "e7TrapSequenceNo"), ("E7-Notifications-MIB", "e7TrapEventType"), ("E7-Notifications-MIB", "e7TrapObjectClass"), ("E7-Notifications-MIB", "e7TrapObjectInstance1"), ("E7-Notifications-MIB", "e7TrapObjectInstance2"), ("E7-Notifications-MIB", "e7TrapObjectInstance3"), ("E7-Notifications-MIB", "e7TrapObjectInstance4"), ("E7-Notifications-MIB", "e7TrapObjectInstance5"), ("E7-Notifications-MIB", "e7TrapObjectInstance6"), ("E7-Notifications-MIB", "e7TrapObjectInstance7"), ("E7-Notifications-MIB", "e7TrapObjectInstance8"), ("E7-Notifications-MIB", "e7TrapCliObject"), ("E7-Notifications-MIB", "e7TrapTimeStamp"), ("E7-Notifications-MIB", "e7TrapTime"), ("E7-Notifications-MIB", "e7TrapText"), ("E7-Notifications-MIB", "e7TrapRepeatCount"), ("E7-Notifications-MIB", "e7TrapObjectLabel1"), ("E7-Notifications-MIB", "e7TrapObjectLabel2"))
if mibBuilder.loadTexts: e7TrapEvent.setStatus('current')
if mibBuilder.loadTexts: e7TrapEvent.setDescription('e7TrapEvent is generated whenever general event is generated.')
e7TrapDbChange = NotificationType((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 3)).setObjects(("E7-Notifications-MIB", "e7TrapSequenceNo"), ("E7-Notifications-MIB", "e7TrapDbChangeType"), ("E7-Notifications-MIB", "e7TrapObjectClass"), ("E7-Notifications-MIB", "e7TrapObjectInstance1"), ("E7-Notifications-MIB", "e7TrapObjectInstance2"), ("E7-Notifications-MIB", "e7TrapObjectInstance3"), ("E7-Notifications-MIB", "e7TrapObjectInstance4"), ("E7-Notifications-MIB", "e7TrapObjectInstance5"), ("E7-Notifications-MIB", "e7TrapObjectInstance6"), ("E7-Notifications-MIB", "e7TrapObjectInstance7"), ("E7-Notifications-MIB", "e7TrapObjectInstance8"), ("E7-Notifications-MIB", "e7TrapCliObject"), ("E7-Notifications-MIB", "e7TrapMgmtIfType"), ("E7-Notifications-MIB", "e7TrapSessionNumber"), ("E7-Notifications-MIB", "e7TrapUserName"), ("E7-Notifications-MIB", "e7TrapIpAddr"), ("E7-Notifications-MIB", "e7TrapTimeStamp"), ("E7-Notifications-MIB", "e7TrapTime"), ("E7-Notifications-MIB", "e7TrapText"), ("E7-Notifications-MIB", "e7TrapObjectLabel1"), ("E7-Notifications-MIB", "e7TrapObjectLabel2"))
if mibBuilder.loadTexts: e7TrapDbChange.setStatus('current')
if mibBuilder.loadTexts: e7TrapDbChange.setDescription('e7TrapDbChange is generated whenever a database change occurs.')
e7TrapSecurity = NotificationType((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 4)).setObjects(("E7-Notifications-MIB", "e7TrapSequenceNo"), ("E7-Notifications-MIB", "e7TrapSecurityType"), ("E7-Notifications-MIB", "e7TrapMgmtIfType"), ("E7-Notifications-MIB", "e7TrapSessionNumber"), ("E7-Notifications-MIB", "e7TrapUserName"), ("E7-Notifications-MIB", "e7TrapIpAddr"), ("E7-Notifications-MIB", "e7TrapTimeStamp"), ("E7-Notifications-MIB", "e7TrapTime"), ("E7-Notifications-MIB", "e7TrapText"))
if mibBuilder.loadTexts: e7TrapSecurity.setStatus('current')
if mibBuilder.loadTexts: e7TrapSecurity.setDescription('e7TrapSecurity is generated whenever a security event occurs.')
e7TrapTca = NotificationType((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 5)).setObjects(("E7-Notifications-MIB", "e7TrapSequenceNo"), ("E7-Notifications-MIB", "e7TrapTcaType"), ("E7-Notifications-MIB", "e7TrapTcaBinType"), ("E7-Notifications-MIB", "e7TrapTcaValueType"), ("E7-Notifications-MIB", "e7TrapObjectClass"), ("E7-Notifications-MIB", "e7TrapObjectInstance1"), ("E7-Notifications-MIB", "e7TrapObjectInstance2"), ("E7-Notifications-MIB", "e7TrapObjectInstance3"), ("E7-Notifications-MIB", "e7TrapObjectInstance4"), ("E7-Notifications-MIB", "e7TrapObjectInstance5"), ("E7-Notifications-MIB", "e7TrapObjectInstance6"), ("E7-Notifications-MIB", "e7TrapObjectInstance7"), ("E7-Notifications-MIB", "e7TrapObjectInstance8"), ("E7-Notifications-MIB", "e7TrapCliObject"), ("E7-Notifications-MIB", "e7TrapTimeStamp"), ("E7-Notifications-MIB", "e7TrapTime"), ("E7-Notifications-MIB", "e7TrapText"), ("E7-Notifications-MIB", "e7TrapObjectLabel1"), ("E7-Notifications-MIB", "e7TrapObjectLabel2"))
if mibBuilder.loadTexts: e7TrapTca.setStatus('current')
if mibBuilder.loadTexts: e7TrapTca.setDescription('e7TrapTca is generated whenever a threshold crossing occurs.')
mibBuilder.exportSymbols("E7-Notifications-MIB", e7TrapSecObjectInstance5=e7TrapSecObjectInstance5, e7NotificationModule=e7NotificationModule, e7TrapAlarmType=e7TrapAlarmType, e7TrapSecObjectInstance7=e7TrapSecObjectInstance7, e7TrapSecObjectLabel2=e7TrapSecObjectLabel2, e7TrapText=e7TrapText, e7NotificationObjects=e7NotificationObjects, e7TrapSequenceNo=e7TrapSequenceNo, e7TrapObjectInstance5=e7TrapObjectInstance5, e7TrapObjectInstance3=e7TrapObjectInstance3, e7TrapObjectInstance6=e7TrapObjectInstance6, e7TrapTimeStamp=e7TrapTimeStamp, e7TrapObjectLabel1=e7TrapObjectLabel1, e7TrapSecObjectInstance2=e7TrapSecObjectInstance2, e7TrapSecObjectInstance8=e7TrapSecObjectInstance8, e7TrapDbChangeType=e7TrapDbChangeType, e7TrapTime=e7TrapTime, e7TrapServiceAffecting=e7TrapServiceAffecting, e7TrapEventType=e7TrapEventType, e7TrapIpAddr=e7TrapIpAddr, e7TrapAlarmLocationInfo=e7TrapAlarmLocationInfo, e7TrapUserName=e7TrapUserName, e7TrapTcaValueType=e7TrapTcaValueType, e7TrapSecObjectLabel1=e7TrapSecObjectLabel1, e7TrapAlarmSeverityLevel=e7TrapAlarmSeverityLevel, e7TrapSecObjectInstance3=e7TrapSecObjectInstance3, e7TrapObjectInstance2=e7TrapObjectInstance2, e7Notification=e7Notification, e7TrapSessionNumber=e7TrapSessionNumber, e7Notifications=e7Notifications, e7TrapTcaBinType=e7TrapTcaBinType, e7TrapSecObjectClass=e7TrapSecObjectClass, e7TrapSecObjectInstance6=e7TrapSecObjectInstance6, e7TrapCliObject=e7TrapCliObject, e7TrapDbChange=e7TrapDbChange, e7TrapSecurity=e7TrapSecurity, e7TrapObjectInstance4=e7TrapObjectInstance4, e7TrapTcaType=e7TrapTcaType, e7TrapRepeatCount=e7TrapRepeatCount, e7TrapMgmtIfType=e7TrapMgmtIfType, e7TrapObjectInstance8=e7TrapObjectInstance8, e7TrapSecObjectInstance4=e7TrapSecObjectInstance4, PYSNMP_MODULE_ID=e7NotificationModule, e7TrapTca=e7TrapTca, e7TrapAlarm=e7TrapAlarm, e7TrapObjectInstance1=e7TrapObjectInstance1, e7TrapObjectInstance7=e7TrapObjectInstance7, e7TrapSecurityType=e7TrapSecurityType, e7TrapEvent=e7TrapEvent, e7TrapSecObjectInstance1=e7TrapSecObjectInstance1, e7TrapAlarmStatus=e7TrapAlarmStatus, e7TrapObjectClass=e7TrapObjectClass, e7TrapObjectLabel2=e7TrapObjectLabel2)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection')
(e7_modules, e7) = mibBuilder.importSymbols('CALIX-PRODUCT-MIB', 'e7Modules', 'e7')
(e7_alarm_type, e7_object_class, e7_tca_type, e7_security_type, e7_event_type) = mibBuilder.importSymbols('E7-TC', 'E7AlarmType', 'E7ObjectClass', 'E7TcaType', 'E7SecurityType', 'E7EventType')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(ip_address, integer32, counter64, module_identity, object_identity, gauge32, iso, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, counter32, mib_identifier, notification_type, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'Integer32', 'Counter64', 'ModuleIdentity', 'ObjectIdentity', 'Gauge32', 'iso', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Counter32', 'MibIdentifier', 'NotificationType', 'Unsigned32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
e7_notification_module = module_identity((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 1, 3))
if mibBuilder.loadTexts:
e7NotificationModule.setLastUpdated('200912100000Z')
if mibBuilder.loadTexts:
e7NotificationModule.setOrganization('Calix')
if mibBuilder.loadTexts:
e7NotificationModule.setContactInfo('Calix')
if mibBuilder.loadTexts:
e7NotificationModule.setDescription('Describes all the notifications related to Calix E7, E5-400, and E5-312 products.')
e7_notification = mib_identifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4))
e7_notification_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1))
e7_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2))
e7_trap_sequence_no = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 1), integer32())
if mibBuilder.loadTexts:
e7TrapSequenceNo.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSequenceNo.setDescription('')
e7_trap_alarm_type = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 2), e7_alarm_type())
if mibBuilder.loadTexts:
e7TrapAlarmType.setStatus('current')
if mibBuilder.loadTexts:
e7TrapAlarmType.setDescription('Alarm type of the Alarm')
e7_trap_alarm_status = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2))))
if mibBuilder.loadTexts:
e7TrapAlarmStatus.setStatus('current')
if mibBuilder.loadTexts:
e7TrapAlarmStatus.setDescription('')
e7_trap_object_class = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 4), e7_object_class())
if mibBuilder.loadTexts:
e7TrapObjectClass.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectClass.setDescription('')
e7_trap_object_instance1 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 5), integer32())
if mibBuilder.loadTexts:
e7TrapObjectInstance1.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectInstance1.setDescription('Object instance for a notification, level 1')
e7_trap_object_instance2 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 6), integer32())
if mibBuilder.loadTexts:
e7TrapObjectInstance2.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectInstance2.setDescription('Object instance for a notification, level 2')
e7_trap_object_instance3 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 7), integer32())
if mibBuilder.loadTexts:
e7TrapObjectInstance3.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectInstance3.setDescription('Object instance for a notification, level 3')
e7_trap_object_instance4 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 8), integer32())
if mibBuilder.loadTexts:
e7TrapObjectInstance4.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectInstance4.setDescription('Object instance for a notification, level 4')
e7_trap_object_instance5 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 9), integer32())
if mibBuilder.loadTexts:
e7TrapObjectInstance5.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectInstance5.setDescription('Object instance for a notification, level 5')
e7_trap_object_instance6 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 10), integer32())
if mibBuilder.loadTexts:
e7TrapObjectInstance6.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectInstance6.setDescription('Object instance for a notification, level 6')
e7_trap_object_instance7 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 11), integer32())
if mibBuilder.loadTexts:
e7TrapObjectInstance7.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectInstance7.setDescription('Object instance for a notification, level 7')
e7_trap_object_instance8 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 12), integer32())
if mibBuilder.loadTexts:
e7TrapObjectInstance8.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectInstance8.setDescription('Object instance for a notification, level 8')
e7_trap_alarm_severity_level = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('critical', 1), ('major', 2), ('minor', 3), ('warning', 4), ('unknown', 5), ('clear', 6))))
if mibBuilder.loadTexts:
e7TrapAlarmSeverityLevel.setStatus('current')
if mibBuilder.loadTexts:
e7TrapAlarmSeverityLevel.setDescription('')
e7_trap_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 14), octet_string().subtype(subtypeSpec=value_size_constraint(1, 50)))
if mibBuilder.loadTexts:
e7TrapTimeStamp.setStatus('current')
if mibBuilder.loadTexts:
e7TrapTimeStamp.setDescription('local time string')
e7_trap_service_affecting = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('yes', 1), ('no', 2))))
if mibBuilder.loadTexts:
e7TrapServiceAffecting.setStatus('current')
if mibBuilder.loadTexts:
e7TrapServiceAffecting.setDescription('This value indicated wether this alarm is service affecting or not')
e7_trap_alarm_location_info = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('nearEnd', 1))))
if mibBuilder.loadTexts:
e7TrapAlarmLocationInfo.setStatus('current')
if mibBuilder.loadTexts:
e7TrapAlarmLocationInfo.setDescription('Location info')
e7_trap_text = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 17), octet_string())
if mibBuilder.loadTexts:
e7TrapText.setStatus('current')
if mibBuilder.loadTexts:
e7TrapText.setDescription('This object contains the brief description about the notification')
e7_trap_event_type = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 18), e7_event_type())
if mibBuilder.loadTexts:
e7TrapEventType.setStatus('current')
if mibBuilder.loadTexts:
e7TrapEventType.setDescription('Event type of the Event')
e7_trap_db_change_type = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3, 4))).clone(namedValues=named_values(('add', 2), ('modify', 3), ('delete', 4))))
if mibBuilder.loadTexts:
e7TrapDbChangeType.setStatus('current')
if mibBuilder.loadTexts:
e7TrapDbChangeType.setDescription('Db change type')
e7_trap_session_number = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 20), integer32())
if mibBuilder.loadTexts:
e7TrapSessionNumber.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSessionNumber.setDescription('User session number')
e7_trap_user_name = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 21), octet_string())
if mibBuilder.loadTexts:
e7TrapUserName.setStatus('current')
if mibBuilder.loadTexts:
e7TrapUserName.setDescription('User name')
e7_trap_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 22), ip_address())
if mibBuilder.loadTexts:
e7TrapIpAddr.setStatus('current')
if mibBuilder.loadTexts:
e7TrapIpAddr.setDescription('User name')
e7_trap_security_type = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 23), e7_security_type())
if mibBuilder.loadTexts:
e7TrapSecurityType.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecurityType.setDescription('Security event type')
e7_trap_mgmt_if_type = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('debug', 1), ('system', 2), ('cli', 3), ('snmp', 4), ('netconf', 5))))
if mibBuilder.loadTexts:
e7TrapMgmtIfType.setStatus('current')
if mibBuilder.loadTexts:
e7TrapMgmtIfType.setDescription('Management interface type')
e7_trap_tca_type = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 25), e7_tca_type())
if mibBuilder.loadTexts:
e7TrapTcaType.setStatus('current')
if mibBuilder.loadTexts:
e7TrapTcaType.setDescription('TCA element type')
e7_trap_tca_bin_type = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('min15', 1), ('day1', 2), ('total', 3))))
if mibBuilder.loadTexts:
e7TrapTcaBinType.setStatus('current')
if mibBuilder.loadTexts:
e7TrapTcaBinType.setDescription('TCA bin type -- only min15 and day1 used at this time')
e7_trap_time = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 27), integer32())
if mibBuilder.loadTexts:
e7TrapTime.setStatus('current')
if mibBuilder.loadTexts:
e7TrapTime.setDescription('UTC time integer')
e7_trap_tca_value_type = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('count', 1), ('floor', 2), ('ceiling', 3))))
if mibBuilder.loadTexts:
e7TrapTcaValueType.setStatus('current')
if mibBuilder.loadTexts:
e7TrapTcaValueType.setDescription('TCA value type -- exceeded count, below min (floor), or above max (ceiling)')
e7_trap_cli_object = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 29), octet_string())
if mibBuilder.loadTexts:
e7TrapCliObject.setStatus('current')
if mibBuilder.loadTexts:
e7TrapCliObject.setDescription('The short CLI name for the object class and instance')
e7_trap_repeat_count = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 30), integer32())
if mibBuilder.loadTexts:
e7TrapRepeatCount.setStatus('current')
if mibBuilder.loadTexts:
e7TrapRepeatCount.setDescription('The number of identical events of this type (1 for non-repeating events, > 1 for repeating events).')
e7_trap_sec_object_class = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 31), e7_object_class())
if mibBuilder.loadTexts:
e7TrapSecObjectClass.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectClass.setDescription('Secondary object class')
e7_trap_sec_object_instance1 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 32), integer32())
if mibBuilder.loadTexts:
e7TrapSecObjectInstance1.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectInstance1.setDescription('Secondary object instance for a notification, level 1')
e7_trap_sec_object_instance2 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 33), integer32())
if mibBuilder.loadTexts:
e7TrapSecObjectInstance2.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectInstance2.setDescription('Secondary object instance for a notification, level 2')
e7_trap_sec_object_instance3 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 34), integer32())
if mibBuilder.loadTexts:
e7TrapSecObjectInstance3.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectInstance3.setDescription('Secondary object instance for a notification, level 3')
e7_trap_sec_object_instance4 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 35), integer32())
if mibBuilder.loadTexts:
e7TrapSecObjectInstance4.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectInstance4.setDescription('Secondary object instance for a notification, level 4')
e7_trap_sec_object_instance5 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 36), integer32())
if mibBuilder.loadTexts:
e7TrapSecObjectInstance5.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectInstance5.setDescription('Secondary object instance for a notification, level 5')
e7_trap_sec_object_instance6 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 37), integer32())
if mibBuilder.loadTexts:
e7TrapSecObjectInstance6.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectInstance6.setDescription('Secondary object instance for a notification, level 6')
e7_trap_sec_object_instance7 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 38), integer32())
if mibBuilder.loadTexts:
e7TrapSecObjectInstance7.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectInstance7.setDescription('Secondary object instance for a notification, level 7')
e7_trap_sec_object_instance8 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 39), integer32())
if mibBuilder.loadTexts:
e7TrapSecObjectInstance8.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectInstance8.setDescription('Secondary object instance for a notification, level 8')
e7_trap_object_label1 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 40), octet_string())
if mibBuilder.loadTexts:
e7TrapObjectLabel1.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectLabel1.setDescription("1st label for primary Object Instance, in 'pos,label' format")
e7_trap_object_label2 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 41), octet_string())
if mibBuilder.loadTexts:
e7TrapObjectLabel2.setStatus('current')
if mibBuilder.loadTexts:
e7TrapObjectLabel2.setDescription("2nd label for primary Object Instance, in 'pos,label' format")
e7_trap_sec_object_label1 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 42), octet_string())
if mibBuilder.loadTexts:
e7TrapSecObjectLabel1.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectLabel1.setDescription("1st label for secondary Object Instance, in 'pos,label' format")
e7_trap_sec_object_label2 = mib_scalar((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 1, 43), octet_string())
if mibBuilder.loadTexts:
e7TrapSecObjectLabel2.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecObjectLabel2.setDescription("2nd label for secondary Object Instance, in 'pos,label' format")
e7_trap_alarm = notification_type((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 1)).setObjects(('E7-Notifications-MIB', 'e7TrapSequenceNo'), ('E7-Notifications-MIB', 'e7TrapAlarmType'), ('E7-Notifications-MIB', 'e7TrapAlarmStatus'), ('E7-Notifications-MIB', 'e7TrapObjectClass'), ('E7-Notifications-MIB', 'e7TrapObjectInstance1'), ('E7-Notifications-MIB', 'e7TrapObjectInstance2'), ('E7-Notifications-MIB', 'e7TrapObjectInstance3'), ('E7-Notifications-MIB', 'e7TrapObjectInstance4'), ('E7-Notifications-MIB', 'e7TrapObjectInstance5'), ('E7-Notifications-MIB', 'e7TrapObjectInstance6'), ('E7-Notifications-MIB', 'e7TrapObjectInstance7'), ('E7-Notifications-MIB', 'e7TrapObjectInstance8'), ('E7-Notifications-MIB', 'e7TrapCliObject'), ('E7-Notifications-MIB', 'e7TrapAlarmSeverityLevel'), ('E7-Notifications-MIB', 'e7TrapTimeStamp'), ('E7-Notifications-MIB', 'e7TrapTime'), ('E7-Notifications-MIB', 'e7TrapServiceAffecting'), ('E7-Notifications-MIB', 'e7TrapAlarmLocationInfo'), ('E7-Notifications-MIB', 'e7TrapText'), ('E7-Notifications-MIB', 'e7TrapSecObjectClass'), ('E7-Notifications-MIB', 'e7TrapSecObjectInstance1'), ('E7-Notifications-MIB', 'e7TrapSecObjectInstance2'), ('E7-Notifications-MIB', 'e7TrapSecObjectInstance3'), ('E7-Notifications-MIB', 'e7TrapSecObjectInstance4'), ('E7-Notifications-MIB', 'e7TrapSecObjectInstance5'), ('E7-Notifications-MIB', 'e7TrapSecObjectInstance6'), ('E7-Notifications-MIB', 'e7TrapSecObjectInstance7'), ('E7-Notifications-MIB', 'e7TrapSecObjectInstance8'), ('E7-Notifications-MIB', 'e7TrapObjectLabel1'), ('E7-Notifications-MIB', 'e7TrapObjectLabel2'), ('E7-Notifications-MIB', 'e7TrapSecObjectLabel1'), ('E7-Notifications-MIB', 'e7TrapSecObjectLabel2'))
if mibBuilder.loadTexts:
e7TrapAlarm.setStatus('current')
if mibBuilder.loadTexts:
e7TrapAlarm.setDescription('e7TrapAlarm is generated whenever an alarm is raised or cleared.')
e7_trap_event = notification_type((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 2)).setObjects(('E7-Notifications-MIB', 'e7TrapSequenceNo'), ('E7-Notifications-MIB', 'e7TrapEventType'), ('E7-Notifications-MIB', 'e7TrapObjectClass'), ('E7-Notifications-MIB', 'e7TrapObjectInstance1'), ('E7-Notifications-MIB', 'e7TrapObjectInstance2'), ('E7-Notifications-MIB', 'e7TrapObjectInstance3'), ('E7-Notifications-MIB', 'e7TrapObjectInstance4'), ('E7-Notifications-MIB', 'e7TrapObjectInstance5'), ('E7-Notifications-MIB', 'e7TrapObjectInstance6'), ('E7-Notifications-MIB', 'e7TrapObjectInstance7'), ('E7-Notifications-MIB', 'e7TrapObjectInstance8'), ('E7-Notifications-MIB', 'e7TrapCliObject'), ('E7-Notifications-MIB', 'e7TrapTimeStamp'), ('E7-Notifications-MIB', 'e7TrapTime'), ('E7-Notifications-MIB', 'e7TrapText'), ('E7-Notifications-MIB', 'e7TrapRepeatCount'), ('E7-Notifications-MIB', 'e7TrapObjectLabel1'), ('E7-Notifications-MIB', 'e7TrapObjectLabel2'))
if mibBuilder.loadTexts:
e7TrapEvent.setStatus('current')
if mibBuilder.loadTexts:
e7TrapEvent.setDescription('e7TrapEvent is generated whenever general event is generated.')
e7_trap_db_change = notification_type((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 3)).setObjects(('E7-Notifications-MIB', 'e7TrapSequenceNo'), ('E7-Notifications-MIB', 'e7TrapDbChangeType'), ('E7-Notifications-MIB', 'e7TrapObjectClass'), ('E7-Notifications-MIB', 'e7TrapObjectInstance1'), ('E7-Notifications-MIB', 'e7TrapObjectInstance2'), ('E7-Notifications-MIB', 'e7TrapObjectInstance3'), ('E7-Notifications-MIB', 'e7TrapObjectInstance4'), ('E7-Notifications-MIB', 'e7TrapObjectInstance5'), ('E7-Notifications-MIB', 'e7TrapObjectInstance6'), ('E7-Notifications-MIB', 'e7TrapObjectInstance7'), ('E7-Notifications-MIB', 'e7TrapObjectInstance8'), ('E7-Notifications-MIB', 'e7TrapCliObject'), ('E7-Notifications-MIB', 'e7TrapMgmtIfType'), ('E7-Notifications-MIB', 'e7TrapSessionNumber'), ('E7-Notifications-MIB', 'e7TrapUserName'), ('E7-Notifications-MIB', 'e7TrapIpAddr'), ('E7-Notifications-MIB', 'e7TrapTimeStamp'), ('E7-Notifications-MIB', 'e7TrapTime'), ('E7-Notifications-MIB', 'e7TrapText'), ('E7-Notifications-MIB', 'e7TrapObjectLabel1'), ('E7-Notifications-MIB', 'e7TrapObjectLabel2'))
if mibBuilder.loadTexts:
e7TrapDbChange.setStatus('current')
if mibBuilder.loadTexts:
e7TrapDbChange.setDescription('e7TrapDbChange is generated whenever a database change occurs.')
e7_trap_security = notification_type((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 4)).setObjects(('E7-Notifications-MIB', 'e7TrapSequenceNo'), ('E7-Notifications-MIB', 'e7TrapSecurityType'), ('E7-Notifications-MIB', 'e7TrapMgmtIfType'), ('E7-Notifications-MIB', 'e7TrapSessionNumber'), ('E7-Notifications-MIB', 'e7TrapUserName'), ('E7-Notifications-MIB', 'e7TrapIpAddr'), ('E7-Notifications-MIB', 'e7TrapTimeStamp'), ('E7-Notifications-MIB', 'e7TrapTime'), ('E7-Notifications-MIB', 'e7TrapText'))
if mibBuilder.loadTexts:
e7TrapSecurity.setStatus('current')
if mibBuilder.loadTexts:
e7TrapSecurity.setDescription('e7TrapSecurity is generated whenever a security event occurs.')
e7_trap_tca = notification_type((1, 3, 6, 1, 4, 1, 6321, 1, 2, 2, 4, 2, 5)).setObjects(('E7-Notifications-MIB', 'e7TrapSequenceNo'), ('E7-Notifications-MIB', 'e7TrapTcaType'), ('E7-Notifications-MIB', 'e7TrapTcaBinType'), ('E7-Notifications-MIB', 'e7TrapTcaValueType'), ('E7-Notifications-MIB', 'e7TrapObjectClass'), ('E7-Notifications-MIB', 'e7TrapObjectInstance1'), ('E7-Notifications-MIB', 'e7TrapObjectInstance2'), ('E7-Notifications-MIB', 'e7TrapObjectInstance3'), ('E7-Notifications-MIB', 'e7TrapObjectInstance4'), ('E7-Notifications-MIB', 'e7TrapObjectInstance5'), ('E7-Notifications-MIB', 'e7TrapObjectInstance6'), ('E7-Notifications-MIB', 'e7TrapObjectInstance7'), ('E7-Notifications-MIB', 'e7TrapObjectInstance8'), ('E7-Notifications-MIB', 'e7TrapCliObject'), ('E7-Notifications-MIB', 'e7TrapTimeStamp'), ('E7-Notifications-MIB', 'e7TrapTime'), ('E7-Notifications-MIB', 'e7TrapText'), ('E7-Notifications-MIB', 'e7TrapObjectLabel1'), ('E7-Notifications-MIB', 'e7TrapObjectLabel2'))
if mibBuilder.loadTexts:
e7TrapTca.setStatus('current')
if mibBuilder.loadTexts:
e7TrapTca.setDescription('e7TrapTca is generated whenever a threshold crossing occurs.')
mibBuilder.exportSymbols('E7-Notifications-MIB', e7TrapSecObjectInstance5=e7TrapSecObjectInstance5, e7NotificationModule=e7NotificationModule, e7TrapAlarmType=e7TrapAlarmType, e7TrapSecObjectInstance7=e7TrapSecObjectInstance7, e7TrapSecObjectLabel2=e7TrapSecObjectLabel2, e7TrapText=e7TrapText, e7NotificationObjects=e7NotificationObjects, e7TrapSequenceNo=e7TrapSequenceNo, e7TrapObjectInstance5=e7TrapObjectInstance5, e7TrapObjectInstance3=e7TrapObjectInstance3, e7TrapObjectInstance6=e7TrapObjectInstance6, e7TrapTimeStamp=e7TrapTimeStamp, e7TrapObjectLabel1=e7TrapObjectLabel1, e7TrapSecObjectInstance2=e7TrapSecObjectInstance2, e7TrapSecObjectInstance8=e7TrapSecObjectInstance8, e7TrapDbChangeType=e7TrapDbChangeType, e7TrapTime=e7TrapTime, e7TrapServiceAffecting=e7TrapServiceAffecting, e7TrapEventType=e7TrapEventType, e7TrapIpAddr=e7TrapIpAddr, e7TrapAlarmLocationInfo=e7TrapAlarmLocationInfo, e7TrapUserName=e7TrapUserName, e7TrapTcaValueType=e7TrapTcaValueType, e7TrapSecObjectLabel1=e7TrapSecObjectLabel1, e7TrapAlarmSeverityLevel=e7TrapAlarmSeverityLevel, e7TrapSecObjectInstance3=e7TrapSecObjectInstance3, e7TrapObjectInstance2=e7TrapObjectInstance2, e7Notification=e7Notification, e7TrapSessionNumber=e7TrapSessionNumber, e7Notifications=e7Notifications, e7TrapTcaBinType=e7TrapTcaBinType, e7TrapSecObjectClass=e7TrapSecObjectClass, e7TrapSecObjectInstance6=e7TrapSecObjectInstance6, e7TrapCliObject=e7TrapCliObject, e7TrapDbChange=e7TrapDbChange, e7TrapSecurity=e7TrapSecurity, e7TrapObjectInstance4=e7TrapObjectInstance4, e7TrapTcaType=e7TrapTcaType, e7TrapRepeatCount=e7TrapRepeatCount, e7TrapMgmtIfType=e7TrapMgmtIfType, e7TrapObjectInstance8=e7TrapObjectInstance8, e7TrapSecObjectInstance4=e7TrapSecObjectInstance4, PYSNMP_MODULE_ID=e7NotificationModule, e7TrapTca=e7TrapTca, e7TrapAlarm=e7TrapAlarm, e7TrapObjectInstance1=e7TrapObjectInstance1, e7TrapObjectInstance7=e7TrapObjectInstance7, e7TrapSecurityType=e7TrapSecurityType, e7TrapEvent=e7TrapEvent, e7TrapSecObjectInstance1=e7TrapSecObjectInstance1, e7TrapAlarmStatus=e7TrapAlarmStatus, e7TrapObjectClass=e7TrapObjectClass, e7TrapObjectLabel2=e7TrapObjectLabel2) |
config = {
"domain": "example.com",
"ruleset": "autoses",
"s3bucket": "autoses-incoming",
"sidprefix": "sid-autoses",
"awsaccountid": "<FILL ME>",
"region": "us-east-1",
"sqs": {
"message_retention_period": 14 * 24 * 3600,
"visibility_timeout": 60,
},
"lambda": {
"file_name": "lambda_function.py", # Relative to current directory of the running script
"handler": "lambda_handler", # Name of the entrypoint function
},
"log_retention_days": 90,
"s3_retention_days": 90,
}
| config = {'domain': 'example.com', 'ruleset': 'autoses', 's3bucket': 'autoses-incoming', 'sidprefix': 'sid-autoses', 'awsaccountid': '<FILL ME>', 'region': 'us-east-1', 'sqs': {'message_retention_period': 14 * 24 * 3600, 'visibility_timeout': 60}, 'lambda': {'file_name': 'lambda_function.py', 'handler': 'lambda_handler'}, 'log_retention_days': 90, 's3_retention_days': 90} |
# Lab 01 - Exercise 01
# First Number
print("Please insert a first number: ", end='')
try:
a = int(input())
except ValueError:
print("That didn't seem a number!")
quit()
# Second Number
print("Please now insert a second number: ", end='')
try:
b = int(input())
except ValueError:
print("That didn't seem a number!")
quit()
# Printing
print("\nTheir sum is: " + str(a + b))
| print('Please insert a first number: ', end='')
try:
a = int(input())
except ValueError:
print("That didn't seem a number!")
quit()
print('Please now insert a second number: ', end='')
try:
b = int(input())
except ValueError:
print("That didn't seem a number!")
quit()
print('\nTheir sum is: ' + str(a + b)) |
class Router(object):
def db_for_read(self, model, **hints):
if model._meta.model_name == 'articleotherdb':
return 'other'
return None
def db_for_write(self, model, **hints):
if model._meta.model_name == 'articleotherdb':
return 'other'
return None
def allow_migrate(self, db, app_label, model=None, **hints):
if model:
if model._meta.model_name == 'articleotherdb':
return db == 'other'
else:
return db == 'default'
return None
| class Router(object):
def db_for_read(self, model, **hints):
if model._meta.model_name == 'articleotherdb':
return 'other'
return None
def db_for_write(self, model, **hints):
if model._meta.model_name == 'articleotherdb':
return 'other'
return None
def allow_migrate(self, db, app_label, model=None, **hints):
if model:
if model._meta.model_name == 'articleotherdb':
return db == 'other'
else:
return db == 'default'
return None |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Delivery Costs',
'version': '1.0',
'category': 'Inventory/Delivery',
'description': """
Allows you to add delivery methods in sale orders and picking.
==============================================================
You can define your own carrier for prices. When creating
invoices from picking, the system is able to add and compute the shipping line.
""",
'depends': ['sale_stock', 'sale_management'],
'data': [
'security/ir.model.access.csv',
'security/delivery_carrier_security.xml',
'views/product_packaging_view.xml',
'views/product_template_view.xml',
'views/delivery_view.xml',
'views/partner_view.xml',
'views/delivery_portal_template.xml',
'data/delivery_data.xml',
'views/report_shipping.xml',
'views/report_deliveryslip.xml',
'views/report_package_barcode.xml',
'views/res_config_settings_views.xml',
'wizard/choose_delivery_package_views.xml',
'wizard/choose_delivery_carrier_views.xml',
],
'demo': ['data/delivery_demo.xml'],
'installable': True,
'license': 'LGPL-3',
}
| {'name': 'Delivery Costs', 'version': '1.0', 'category': 'Inventory/Delivery', 'description': '\nAllows you to add delivery methods in sale orders and picking.\n==============================================================\n\nYou can define your own carrier for prices. When creating\ninvoices from picking, the system is able to add and compute the shipping line.\n', 'depends': ['sale_stock', 'sale_management'], 'data': ['security/ir.model.access.csv', 'security/delivery_carrier_security.xml', 'views/product_packaging_view.xml', 'views/product_template_view.xml', 'views/delivery_view.xml', 'views/partner_view.xml', 'views/delivery_portal_template.xml', 'data/delivery_data.xml', 'views/report_shipping.xml', 'views/report_deliveryslip.xml', 'views/report_package_barcode.xml', 'views/res_config_settings_views.xml', 'wizard/choose_delivery_package_views.xml', 'wizard/choose_delivery_carrier_views.xml'], 'demo': ['data/delivery_demo.xml'], 'installable': True, 'license': 'LGPL-3'} |
{
'targets': [
{
'target_name': 'DTraceProviderBindings',
'conditions': [
['OS=="mac" or OS=="solaris" or OS=="freebsd"', {
'sources': [
'dtrace_provider.cc',
'dtrace_probe.cc',
],
'include_dirs': [
'libusdt'
],
'dependencies': [
'libusdt'
],
'libraries': [
'-L<(module_root_dir)/libusdt -l usdt'
]
}]
]
},
{
'target_name': 'libusdt',
'type': 'none',
'conditions': [
['OS=="mac" or OS=="solaris" or OS=="freebsd"', {
'actions': [{
'inputs': [''],
'outputs': [''],
'action_name': 'build_libusdt',
'action': [
'sh', 'libusdt-build.sh'
]
}]
}]
]
}
]
}
| {'targets': [{'target_name': 'DTraceProviderBindings', 'conditions': [['OS=="mac" or OS=="solaris" or OS=="freebsd"', {'sources': ['dtrace_provider.cc', 'dtrace_probe.cc'], 'include_dirs': ['libusdt'], 'dependencies': ['libusdt'], 'libraries': ['-L<(module_root_dir)/libusdt -l usdt']}]]}, {'target_name': 'libusdt', 'type': 'none', 'conditions': [['OS=="mac" or OS=="solaris" or OS=="freebsd"', {'actions': [{'inputs': [''], 'outputs': [''], 'action_name': 'build_libusdt', 'action': ['sh', 'libusdt-build.sh']}]}]]}]} |
"""
Given a non-negative integer num, repeatedly add all its digits
until the result has only one digit.
Example:
Input: 38
Output: 2
Explanation: The process is like: 3 + 8 = 11, 1 + 1 = 2.
Since 2 has only one digit, return it.
Follow up:
Could you do it without any loop/recursion in O(1) runtime?
"""
class Solution:
def addDigits(self, num: int) -> int:
"""
Runtime: 40 ms, faster than 89.53% of Python3.
Memory Usage: 13.2 MB, less than 66.58% of Python3.
Runtime complexity: O(n)
"""
digits = str(num)
while len(digits) > 1:
digits = str(sum([int(n) for n in digits]))
return int(digits)
def addDigits2(self, num: int) -> int:
"""
Runtime: 32 ms, faster than 98.39% of Python3
Memory Usage: 13.2 MB, less than 57.90% of Python3.
Runtime complexity: O(1)
"""
if not num:
return 0
return num % 9 or 9
if __name__ == "__main__":
sol = Solution()
assert sol.addDigits(38) == 2
assert sol.addDigits(0) == 0
assert sol.addDigits2(38) == 2
assert sol.addDigits2(0) == 0
| """
Given a non-negative integer num, repeatedly add all its digits
until the result has only one digit.
Example:
Input: 38
Output: 2
Explanation: The process is like: 3 + 8 = 11, 1 + 1 = 2.
Since 2 has only one digit, return it.
Follow up:
Could you do it without any loop/recursion in O(1) runtime?
"""
class Solution:
def add_digits(self, num: int) -> int:
"""
Runtime: 40 ms, faster than 89.53% of Python3.
Memory Usage: 13.2 MB, less than 66.58% of Python3.
Runtime complexity: O(n)
"""
digits = str(num)
while len(digits) > 1:
digits = str(sum([int(n) for n in digits]))
return int(digits)
def add_digits2(self, num: int) -> int:
"""
Runtime: 32 ms, faster than 98.39% of Python3
Memory Usage: 13.2 MB, less than 57.90% of Python3.
Runtime complexity: O(1)
"""
if not num:
return 0
return num % 9 or 9
if __name__ == '__main__':
sol = solution()
assert sol.addDigits(38) == 2
assert sol.addDigits(0) == 0
assert sol.addDigits2(38) == 2
assert sol.addDigits2(0) == 0 |
# coding:utf-8
'''
@Copyright:LintCode
@Author: taoleetju
@Problem: http://www.lintcode.com/problem/construct-binary-tree-from-preorder-and-inorder-traversal
@Language: Python
@Datetime: 16-02-18 17:13
'''
"""
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param preorder : A list of integers that preorder traversal of a tree
@param inorder : A list of integers that inorder traversal of a tree
@return : Root of a tree
"""
def buildTree(self, preorder, inorder):
# write your code here
assert len(preorder) == len(inorder)
if len(preorder) == 0:
return None
tree = TreeNode( preorder[0] )
if len(preorder) == 1:
return tree
c = inorder.index( preorder[0])
tree.left = self.buildTree( preorder[1:1+c], inorder[:c])
tree.right = self.buildTree( preorder[1+c: ], inorder[c+1:])
return tree | """
@Copyright:LintCode
@Author: taoleetju
@Problem: http://www.lintcode.com/problem/construct-binary-tree-from-preorder-and-inorder-traversal
@Language: Python
@Datetime: 16-02-18 17:13
"""
'\nDefinition of TreeNode:\nclass TreeNode:\n def __init__(self, val):\n self.val = val\n self.left, self.right = None, None\n'
class Solution:
"""
@param preorder : A list of integers that preorder traversal of a tree
@param inorder : A list of integers that inorder traversal of a tree
@return : Root of a tree
"""
def build_tree(self, preorder, inorder):
assert len(preorder) == len(inorder)
if len(preorder) == 0:
return None
tree = tree_node(preorder[0])
if len(preorder) == 1:
return tree
c = inorder.index(preorder[0])
tree.left = self.buildTree(preorder[1:1 + c], inorder[:c])
tree.right = self.buildTree(preorder[1 + c:], inorder[c + 1:])
return tree |
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"GaborLayer": "00_core.ipynb",
"GaborLayer.create_xy_grid": "00_core.ipynb",
"GaborLayer.build": "00_core.ipynb",
"GaborLayer.create_kernel": "00_core.ipynb",
"GaborLayer.call": "00_core.ipynb",
"GaborLayer.get_config": "00_core.ipynb",
"SigmaRegularizer": "00_core.ipynb",
"GaborBlock": "01_alexnet.ipynb",
"AlexNet": "01_alexnet.ipynb",
"LeNet": "02_lenet.ipynb"}
modules = ["core.py",
"alexnet.py",
"lenet.py"]
doc_url = "https://SRSteinkamp.github.io/PWC_Perez2020_Gabor/"
git_url = "https://github.com/SRSteinkamp/pwc_gabor_layer/tree/main/"
def custom_doc_links(name): return None
| __all__ = ['index', 'modules', 'custom_doc_links', 'git_url']
index = {'GaborLayer': '00_core.ipynb', 'GaborLayer.create_xy_grid': '00_core.ipynb', 'GaborLayer.build': '00_core.ipynb', 'GaborLayer.create_kernel': '00_core.ipynb', 'GaborLayer.call': '00_core.ipynb', 'GaborLayer.get_config': '00_core.ipynb', 'SigmaRegularizer': '00_core.ipynb', 'GaborBlock': '01_alexnet.ipynb', 'AlexNet': '01_alexnet.ipynb', 'LeNet': '02_lenet.ipynb'}
modules = ['core.py', 'alexnet.py', 'lenet.py']
doc_url = 'https://SRSteinkamp.github.io/PWC_Perez2020_Gabor/'
git_url = 'https://github.com/SRSteinkamp/pwc_gabor_layer/tree/main/'
def custom_doc_links(name):
return None |
def word_lengths(
file_path: str
) -> set:
return {
len(token)
for line in open(file_path)
for token in line.split()
}
def main():
file_path = 'comprehensions/file.txt'
result = word_lengths(file_path)
print(result)
if __name__ == '__main__':
main()
| def word_lengths(file_path: str) -> set:
return {len(token) for line in open(file_path) for token in line.split()}
def main():
file_path = 'comprehensions/file.txt'
result = word_lengths(file_path)
print(result)
if __name__ == '__main__':
main() |
# This file is executed on every boot (including wake-boot from deepsleep)
# notify
print('RUN: boot.py')
| print('RUN: boot.py') |
class EndnoteObject:
supported_cff_versions = ['1.0.3', '1.1.0']
supported_endnote_props = ['author', 'year', 'keyword', 'doi', 'name', 'url']
def __init__(self, cff_object, initialize_empty=False):
self.cff_object = cff_object
self.author = None
self.doi = None
self.keyword = None
self.name = None
self.url = None
self.year = None
if initialize_empty:
# clause for testing purposes
pass
else:
self.check_cff_object().add_all()
def __str__(self):
items = [item for item in [self.author,
self.year,
self.keyword,
self.doi,
self.name,
self.url] if item is not None]
return '%0 Generic\n' + ''.join(items) + '%9 source code\n'
def add_all(self):
self.add_author() \
.add_doi() \
.add_keyword() \
.add_name() \
.add_url() \
.add_year()
return self
def add_author(self):
if 'authors' in self.cff_object.keys():
authors = list()
for author in self.cff_object['authors']:
keys = author.keys()
nameparts = [
author['name-particle'] if 'name-particle' in keys else None,
author['family-names'] if 'family-names' in keys else None,
author['name-suffix'] if 'name-suffix' in keys else None
]
tmp = ' '.join([namepart for namepart in nameparts if namepart is not None])
fullname = tmp + ', ' + author['given-names'] if 'given-names' in keys else tmp
alias = author['alias'] if 'alias' in keys and author['alias'] is not None and author['alias'] != '' else None
if fullname:
authors.append('%A {}\n'.format(fullname))
elif alias:
authors.append('%A {}\n'.format(alias))
else:
continue
self.author = ''.join(authors)
return self
def add_doi(self):
version = self.cff_object['cff-version']
if version in ['1.0.3', '1.1.0']:
if 'doi' in self.cff_object.keys():
self.doi = '%R {}\n'.format(self.cff_object['doi'])
if version in ['1.1.0']:
if 'identifiers' in self.cff_object.keys():
identifiers = self.cff_object['identifiers']
for identifier in identifiers:
if identifier['type'] == 'doi':
self.doi = '%R {}\n'.format(identifier['value'])
break
return self
def add_keyword(self):
if 'keywords' in self.cff_object.keys():
keywords = ['%K {}\n'.format(keyword) for keyword in self.cff_object['keywords']]
self.keyword = ''.join(keywords)
return self
def add_name(self):
if 'title' in self.cff_object.keys():
self.name = '%T {}\n'.format(self.cff_object['title'])
return self
def add_url(self):
if 'repository-code' in self.cff_object.keys():
self.url = '%U {}\n'.format(self.cff_object['repository-code'])
return self
def add_year(self):
if 'date-released' in self.cff_object.keys():
self.year = '%D {}\n'.format(self.cff_object['date-released'].year)
return self
def check_cff_object(self):
if not isinstance(self.cff_object, dict):
raise ValueError('Expected cff_object to be of type \'dict\'.')
elif 'cff-version' not in self.cff_object.keys():
raise ValueError('Missing key "cff-version" in CITATION.cff file.')
elif self.cff_object['cff-version'] not in EndnoteObject.supported_cff_versions:
raise ValueError('\'cff-version\': \'{}\' isn\'t a supported version.'
.format(self.cff_object['cff-version']))
else:
return self
def print(self):
return self.__str__()
| class Endnoteobject:
supported_cff_versions = ['1.0.3', '1.1.0']
supported_endnote_props = ['author', 'year', 'keyword', 'doi', 'name', 'url']
def __init__(self, cff_object, initialize_empty=False):
self.cff_object = cff_object
self.author = None
self.doi = None
self.keyword = None
self.name = None
self.url = None
self.year = None
if initialize_empty:
pass
else:
self.check_cff_object().add_all()
def __str__(self):
items = [item for item in [self.author, self.year, self.keyword, self.doi, self.name, self.url] if item is not None]
return '%0 Generic\n' + ''.join(items) + '%9 source code\n'
def add_all(self):
self.add_author().add_doi().add_keyword().add_name().add_url().add_year()
return self
def add_author(self):
if 'authors' in self.cff_object.keys():
authors = list()
for author in self.cff_object['authors']:
keys = author.keys()
nameparts = [author['name-particle'] if 'name-particle' in keys else None, author['family-names'] if 'family-names' in keys else None, author['name-suffix'] if 'name-suffix' in keys else None]
tmp = ' '.join([namepart for namepart in nameparts if namepart is not None])
fullname = tmp + ', ' + author['given-names'] if 'given-names' in keys else tmp
alias = author['alias'] if 'alias' in keys and author['alias'] is not None and (author['alias'] != '') else None
if fullname:
authors.append('%A {}\n'.format(fullname))
elif alias:
authors.append('%A {}\n'.format(alias))
else:
continue
self.author = ''.join(authors)
return self
def add_doi(self):
version = self.cff_object['cff-version']
if version in ['1.0.3', '1.1.0']:
if 'doi' in self.cff_object.keys():
self.doi = '%R {}\n'.format(self.cff_object['doi'])
if version in ['1.1.0']:
if 'identifiers' in self.cff_object.keys():
identifiers = self.cff_object['identifiers']
for identifier in identifiers:
if identifier['type'] == 'doi':
self.doi = '%R {}\n'.format(identifier['value'])
break
return self
def add_keyword(self):
if 'keywords' in self.cff_object.keys():
keywords = ['%K {}\n'.format(keyword) for keyword in self.cff_object['keywords']]
self.keyword = ''.join(keywords)
return self
def add_name(self):
if 'title' in self.cff_object.keys():
self.name = '%T {}\n'.format(self.cff_object['title'])
return self
def add_url(self):
if 'repository-code' in self.cff_object.keys():
self.url = '%U {}\n'.format(self.cff_object['repository-code'])
return self
def add_year(self):
if 'date-released' in self.cff_object.keys():
self.year = '%D {}\n'.format(self.cff_object['date-released'].year)
return self
def check_cff_object(self):
if not isinstance(self.cff_object, dict):
raise value_error("Expected cff_object to be of type 'dict'.")
elif 'cff-version' not in self.cff_object.keys():
raise value_error('Missing key "cff-version" in CITATION.cff file.')
elif self.cff_object['cff-version'] not in EndnoteObject.supported_cff_versions:
raise value_error("'cff-version': '{}' isn't a supported version.".format(self.cff_object['cff-version']))
else:
return self
def print(self):
return self.__str__() |
class CoordinatesAreNotGiven(Exception):
def __init__(self, lon=1, lat=1, alt=1) -> None:
self.message = ""
if not lon:
self.message += "Lon can't be None\n"
if not lat:
self.message += "Lat can't be None\n"
if not alt:
self.message += "Alt can't be None"
def __str__(self) -> str:
print("Station coordinates are not given.")
return "\n" + self.message
class InvalidMirrorParameters(Exception):
def __init__(self, mirrorFocus=1, mirrorRadius=1, mirrorHorizon=1, minApogee=1) -> None:
if not mirrorFocus:
self.message += "MirrorFocus can't be < 0\n"
if not mirrorRadius:
self.message += "MirrorRadius can't be < 0\n"
if not mirrorHorizon:
self.message += "MirrorHorizon can't be < 0\n"
if not minApogee:
self.message += "MinApogee can't be < 0"
def __str__(self) -> str:
print("Invalid mirror parameters")
return "\n" + self.message
class InvalidTimeCorrection(Exception):
def __init__(self) -> None:
pass
def __str__(self) -> str:
return "Correction of the time zone for more than 12 hours.\nThere is no such time zone."
class InvalidCoordinates(Exception):
def __init__(self, *args) -> None:
pass
def __str__(self) -> str:
return "The coordinates of the station are not specified correctly."
| class Coordinatesarenotgiven(Exception):
def __init__(self, lon=1, lat=1, alt=1) -> None:
self.message = ''
if not lon:
self.message += "Lon can't be None\n"
if not lat:
self.message += "Lat can't be None\n"
if not alt:
self.message += "Alt can't be None"
def __str__(self) -> str:
print('Station coordinates are not given.')
return '\n' + self.message
class Invalidmirrorparameters(Exception):
def __init__(self, mirrorFocus=1, mirrorRadius=1, mirrorHorizon=1, minApogee=1) -> None:
if not mirrorFocus:
self.message += "MirrorFocus can't be < 0\n"
if not mirrorRadius:
self.message += "MirrorRadius can't be < 0\n"
if not mirrorHorizon:
self.message += "MirrorHorizon can't be < 0\n"
if not minApogee:
self.message += "MinApogee can't be < 0"
def __str__(self) -> str:
print('Invalid mirror parameters')
return '\n' + self.message
class Invalidtimecorrection(Exception):
def __init__(self) -> None:
pass
def __str__(self) -> str:
return 'Correction of the time zone for more than 12 hours.\nThere is no such time zone.'
class Invalidcoordinates(Exception):
def __init__(self, *args) -> None:
pass
def __str__(self) -> str:
return 'The coordinates of the station are not specified correctly.' |
def minRemoveToMakeValid(s):
# O(n) time and space
# doesn't use stack
s = list(s)
open_count = 0
for ind, c in enumerate(s):
if c == "(":
open_count += 1
elif c == ")":
if not open_count: # if open_count is 0
s[ind] = ""
else:
open_count -= 1
for i in range(len(s) - 1, -1, -1):
if not open_count:
break
if s[i] == "(":
s[i] = ""
open_count -= 1
return "".join(s)
print(minRemoveToMakeValid("(a(b(c)d))")) | def min_remove_to_make_valid(s):
s = list(s)
open_count = 0
for (ind, c) in enumerate(s):
if c == '(':
open_count += 1
elif c == ')':
if not open_count:
s[ind] = ''
else:
open_count -= 1
for i in range(len(s) - 1, -1, -1):
if not open_count:
break
if s[i] == '(':
s[i] = ''
open_count -= 1
return ''.join(s)
print(min_remove_to_make_valid('(a(b(c)d))')) |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2021 Graz University of Technology.
#
# invenio-campusonline is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""This module is used to import/export from/to the CampusOnline System."""
| """This module is used to import/export from/to the CampusOnline System.""" |
def nonify(func):
def newAnB(*args, **arg):
res = func(*args, **arg)
return None if not res else res
return newAnB
| def nonify(func):
def new_an_b(*args, **arg):
res = func(*args, **arg)
return None if not res else res
return newAnB |
# [Required] Hero's Succession (22300)
echo = 20011005
successor = 1142158
mir = 1013000
sm.setSpeakerID(mir)
sm.sendNext("Master, master, look at this. There's something wrong with one of my scales!")
sm.setPlayerAsSpeaker()
sm.sendSay("That's...?! \r\n\r\n"
"Mir, one of your scales is showing the #bOnyx Dragon's Symbol#k!")
sm.setSpeakerID(mir)
sm.sendSay("Really? That's weird... \r\n\r\n"
"Oh, I know! Then that means it's time.")
sm.setPlayerAsSpeaker()
sm.sendSay("It's time?")
sm.setSpeakerID(mir)
sm.sendSay("It's time for us to inherit Freud and Afrien's powers. "
"We've gotten very strong lately. And master's spirit is growing too...")
sm.setPlayerAsSpeaker()
sm.sendSay("Huh? Really?")
sm.setSpeakerID(mir)
sm.sendSay("You didn't know that? An Onyx Dragon responds to a strong spirit, "
"so I've been feeling that every day. It's not particularly strong unlike with the previous Dragon Masters, "
"but we'll be able to match them someday. \r\n\r\n"
"Ah, the scale fell off.")
sm.setPlayerAsSpeaker()
sm.sendSay("Really? But it's still shining.")
sm.setSpeakerID(mir)
response = sm.sendAskYesNo("Master, take this scale. It feels like I've shed something to take another step forward.")
if response:
if sm.canHold(successor):
sm.giveSkill(echo)
sm.giveItem(successor)
sm.startQuest(parentID)
sm.completeQuest(parentID)
sm.setPlayerAsSpeaker()
sm.sendNext("(You received #p" + str(mir) + "#'s dragon scale. "
"As you place your hand on the scale, it magically transforms into #i" + str(successor) + "#.)")
sm.sendSay("(You have learned #b#q" + str(echo) + "##k.)")
sm.sendSay("Yay, a new skill! Now I really look like Freud's true successor!")
sm.setSpeakerID(mir)
sm.sendPrev("Hehe. Congratulations, master. Let's keep on growing to surpass our predecessors!")
else:
sm.sendSayOkay("Master, make some space in your Equip inventory first.") | echo = 20011005
successor = 1142158
mir = 1013000
sm.setSpeakerID(mir)
sm.sendNext("Master, master, look at this. There's something wrong with one of my scales!")
sm.setPlayerAsSpeaker()
sm.sendSay("That's...?! \r\n\r\nMir, one of your scales is showing the #bOnyx Dragon's Symbol#k!")
sm.setSpeakerID(mir)
sm.sendSay("Really? That's weird... \r\n\r\nOh, I know! Then that means it's time.")
sm.setPlayerAsSpeaker()
sm.sendSay("It's time?")
sm.setSpeakerID(mir)
sm.sendSay("It's time for us to inherit Freud and Afrien's powers. We've gotten very strong lately. And master's spirit is growing too...")
sm.setPlayerAsSpeaker()
sm.sendSay('Huh? Really?')
sm.setSpeakerID(mir)
sm.sendSay("You didn't know that? An Onyx Dragon responds to a strong spirit, so I've been feeling that every day. It's not particularly strong unlike with the previous Dragon Masters, but we'll be able to match them someday. \r\n\r\nAh, the scale fell off.")
sm.setPlayerAsSpeaker()
sm.sendSay("Really? But it's still shining.")
sm.setSpeakerID(mir)
response = sm.sendAskYesNo("Master, take this scale. It feels like I've shed something to take another step forward.")
if response:
if sm.canHold(successor):
sm.giveSkill(echo)
sm.giveItem(successor)
sm.startQuest(parentID)
sm.completeQuest(parentID)
sm.setPlayerAsSpeaker()
sm.sendNext('(You received #p' + str(mir) + "#'s dragon scale. As you place your hand on the scale, it magically transforms into #i" + str(successor) + '#.)')
sm.sendSay('(You have learned #b#q' + str(echo) + '##k.)')
sm.sendSay("Yay, a new skill! Now I really look like Freud's true successor!")
sm.setSpeakerID(mir)
sm.sendPrev("Hehe. Congratulations, master. Let's keep on growing to surpass our predecessors!")
else:
sm.sendSayOkay('Master, make some space in your Equip inventory first.') |
"""
https://www.freecodecamp.org/learn/scientific-computing-with-python/python-for-everybody/iterations-more-patterns
Which of these evaluates to False?
0 == 0.0
0 is 0.0
0 is not 0.0
0 = 0.0
"""
print(0 == 0.0)
print(0 is 0.0)
print(0 is not 0.0)
| """
https://www.freecodecamp.org/learn/scientific-computing-with-python/python-for-everybody/iterations-more-patterns
Which of these evaluates to False?
0 == 0.0
0 is 0.0
0 is not 0.0
0 = 0.0
"""
print(0 == 0.0)
print(0 is 0.0)
print(0 is not 0.0) |
"""
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
a=''.join([input()for _ in[0]*4])
print('YNEOS'[all([a[x],a[x+1],a[x+4],a[x+5]].count('.')==2 for x in[0,1,2,4,5,6,8,9,10])::2]) | """
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
a = ''.join([input() for _ in [0] * 4])
print('YNEOS'[all(([a[x], a[x + 1], a[x + 4], a[x + 5]].count('.') == 2 for x in [0, 1, 2, 4, 5, 6, 8, 9, 10]))::2]) |
#from coustmer import formate_coustmer
def formate_coustmer(first, last ,location):
full_name = '%s' '%s' %(first,last)
if location:
return '%s (%s)' %(full_name,location)
else:
return full_name
if __name__ == '__main__':
print(formate_coustmer('Lilly ', 'jokowich',location = 'california'))
#print(formate_coustmer('shree','chahal')) | def formate_coustmer(first, last, location):
full_name = '%s%s' % (first, last)
if location:
return '%s (%s)' % (full_name, location)
else:
return full_name
if __name__ == '__main__':
print(formate_coustmer('Lilly ', 'jokowich', location='california')) |
# dashboard_generator.py
print("-----------------------")
print("MONTH: March 2018")
print("-----------------------")
print("CRUNCHING THE DATA...")
print("-----------------------")
print("TOTAL MONTHLY SALES: $12,000.71")
print("-----------------------")
print("TOP SELLING PRODUCTS:")
print(" 1) Button-Down Shirt: $6,960.35")
print(" 2) Super Soft Hoodie: $1,875.00")
print(" 3) etc.")
print("-----------------------")
print("VISUALIZING THE DATA...") | print('-----------------------')
print('MONTH: March 2018')
print('-----------------------')
print('CRUNCHING THE DATA...')
print('-----------------------')
print('TOTAL MONTHLY SALES: $12,000.71')
print('-----------------------')
print('TOP SELLING PRODUCTS:')
print(' 1) Button-Down Shirt: $6,960.35')
print(' 2) Super Soft Hoodie: $1,875.00')
print(' 3) etc.')
print('-----------------------')
print('VISUALIZING THE DATA...') |
class MulticastDelegate(object):
def __init__(self):
self.delegates = []
def __iadd__(self, delegate):
self.add(delegate)
return self
def add(self, delegate):
self.delegates.append(delegate)
def __isub__(self, delegate):
self.delegates.remove(delegate)
return self
def __call__(self, *args, **kwargs):
for d in self.delegates:
d(*args, **kwargs)
| class Multicastdelegate(object):
def __init__(self):
self.delegates = []
def __iadd__(self, delegate):
self.add(delegate)
return self
def add(self, delegate):
self.delegates.append(delegate)
def __isub__(self, delegate):
self.delegates.remove(delegate)
return self
def __call__(self, *args, **kwargs):
for d in self.delegates:
d(*args, **kwargs) |
class Exceptions:
class NetworkError(Exception):
def __str__(self):
return "Network Error"
class FileSystemError(Exception):
def __str__(self):
return "File System Error" | class Exceptions:
class Networkerror(Exception):
def __str__(self):
return 'Network Error'
class Filesystemerror(Exception):
def __str__(self):
return 'File System Error' |
#!/usr/bin/env python3
l = ''
with open('input') as f:
l = [int(x) for x in f.read().split(',')]
s = sorted(l)[len(l)//2]
d = 0
for i in l:
d += abs(s - i)
print(d)
| l = ''
with open('input') as f:
l = [int(x) for x in f.read().split(',')]
s = sorted(l)[len(l) // 2]
d = 0
for i in l:
d += abs(s - i)
print(d) |
class UserDomain:
def is_active(self, user):
return user.email_confirmed
user_domain = UserDomain()
| class Userdomain:
def is_active(self, user):
return user.email_confirmed
user_domain = user_domain() |
FILTERS = []
ENDP_COUNT = 0
class Filter(object):
def __init__(self):
self.urls = []
self.filter_all = False
self.order = 0
def filter(self, request, response): pass
def _continue(self, request, response):
return {"request": request, "response": response} | filters = []
endp_count = 0
class Filter(object):
def __init__(self):
self.urls = []
self.filter_all = False
self.order = 0
def filter(self, request, response):
pass
def _continue(self, request, response):
return {'request': request, 'response': response} |
"""
Challenge #2
Write a function that takes an integer 'minutes' and converts it to seconds.
Examples:
- convert(5) -> 300
- convert(3) -> 180
- convert(2) -> 120
"""
def convert(minutes):
return minutes * 60
print(convert(5)) #300
print(convert(3)) #180
| """
Challenge #2
Write a function that takes an integer 'minutes' and converts it to seconds.
Examples:
- convert(5) -> 300
- convert(3) -> 180
- convert(2) -> 120
"""
def convert(minutes):
return minutes * 60
print(convert(5))
print(convert(3)) |
"""
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself
what are the possible input cases.
Notes: It is intended for this problem to be specified vaguely (ie, no given input specs). You are responsible to gather
all the input requirements up front.
"""
__author__ = 'Danyang'
class Solution:
def atoi(self, str):
"""
Need to satisfy all the nuance requirements
:param str: string
:return: int
"""
INT_MAX = 2147483647
INT_MIN = -2147483648
# clean
str = str.strip()
if not str:
return 0
# clean up leading sign
sign = 1
if str[0] in ("+", "-"):
if str[0]=="-":
sign = -1
str = str[1:]
# check for leading digit
if not str[0].isdigit():
return 0
# ignore the non-digit appended behind
# The string can contain additional characters after those that form the integral number,
# which are ignored and have no effect on the behavior of this function
for ind, val in enumerate(str): # find the 1st non-digit
if not val.isdigit():
str = str[:ind]
break
# convert char array to integer
sum = 0
scale = 1
for element in str[::-1]:
sum += scale*int(element)
scale *= 10
# return sign*sum, and pay attention to the C constraints
result = sign*sum
if result>INT_MAX:
return INT_MAX
if result<INT_MIN:
return INT_MIN
return result
| """
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself
what are the possible input cases.
Notes: It is intended for this problem to be specified vaguely (ie, no given input specs). You are responsible to gather
all the input requirements up front.
"""
__author__ = 'Danyang'
class Solution:
def atoi(self, str):
"""
Need to satisfy all the nuance requirements
:param str: string
:return: int
"""
int_max = 2147483647
int_min = -2147483648
str = str.strip()
if not str:
return 0
sign = 1
if str[0] in ('+', '-'):
if str[0] == '-':
sign = -1
str = str[1:]
if not str[0].isdigit():
return 0
for (ind, val) in enumerate(str):
if not val.isdigit():
str = str[:ind]
break
sum = 0
scale = 1
for element in str[::-1]:
sum += scale * int(element)
scale *= 10
result = sign * sum
if result > INT_MAX:
return INT_MAX
if result < INT_MIN:
return INT_MIN
return result |
class LaneFitter():
def __init__(self, camera):
if camera is None:
raise Exception("Lane fitter needs a camera to undistort and warp")
self.camera = camera
def getfit(self, img, prev_left_fit=None, prev_right_fit=None):
undistorted = self.camera.undistort(img)
binary_img = to_binary_img(undistorted)
warped_binary = self.camera.warp(binary_img)
if prev_left_fit is not None:
lf, rf, lx, ly, rx, ry = search_around_poly(warped_binary, prev_left_fit, prev_right_fit)
if prev_left_fit is None:
lf, rf, lx, ly, rx, ry, left_rectangles, right_rectangles = fit_polynomial(warped_binary)
fit_info = (lf, rf, lx, ly, rx, ry)
debug_info = (binary_img, warped_binary)
return fit_info, debug_info | class Lanefitter:
def __init__(self, camera):
if camera is None:
raise exception('Lane fitter needs a camera to undistort and warp')
self.camera = camera
def getfit(self, img, prev_left_fit=None, prev_right_fit=None):
undistorted = self.camera.undistort(img)
binary_img = to_binary_img(undistorted)
warped_binary = self.camera.warp(binary_img)
if prev_left_fit is not None:
(lf, rf, lx, ly, rx, ry) = search_around_poly(warped_binary, prev_left_fit, prev_right_fit)
if prev_left_fit is None:
(lf, rf, lx, ly, rx, ry, left_rectangles, right_rectangles) = fit_polynomial(warped_binary)
fit_info = (lf, rf, lx, ly, rx, ry)
debug_info = (binary_img, warped_binary)
return (fit_info, debug_info) |
#raspberry pi GPIO pin definitions
#using physical pin #'s, not GPIO #'s
class GpioPins:
LEFT_MOTOR_FORWARD = 31
LEFT_MOTOR_BACKWARD = 33
RIGHT_MOTOR_FORWARD = 35
RIGHT_MOTOR_BACKWARD = 37
ULTRASONIC_SENSOR_TRIG = 7
ULTRASONIC_SENSOR_ECHO = 12
IR_SENSOR_LEFT = 24
IR_SENSOR_RIGHT = 26
SERVO_ULTRASONIC_SENSOR = 19
SERVO_HORIZONTAL_CAMERA = 00
SERVO_VERTICAL_CAMERA = 00
| class Gpiopins:
left_motor_forward = 31
left_motor_backward = 33
right_motor_forward = 35
right_motor_backward = 37
ultrasonic_sensor_trig = 7
ultrasonic_sensor_echo = 12
ir_sensor_left = 24
ir_sensor_right = 26
servo_ultrasonic_sensor = 19
servo_horizontal_camera = 0
servo_vertical_camera = 0 |
"""986. Interval List Intersections"""
class Solution(object):
def intervalIntersection(self, A, B):
"""
:type A: List[List[int]]
:type B: List[List[int]]
:rtype: List[List[int]]
"""
p1 = 0
p2 = 0
res = []
while p1 < len(A) and p2 < len(B): # and
a1, a2 = A[p1][0], A[p1][1]
b1, b2 = B[p2][0], B[p2][1]
if a1 <= b2 and b1 <= a2: # =
res.append([max(a1, b1), min(a2, b2)])
if b2 < a2:
p2 += 1
else:
p1 += 1
return res
| """986. Interval List Intersections"""
class Solution(object):
def interval_intersection(self, A, B):
"""
:type A: List[List[int]]
:type B: List[List[int]]
:rtype: List[List[int]]
"""
p1 = 0
p2 = 0
res = []
while p1 < len(A) and p2 < len(B):
(a1, a2) = (A[p1][0], A[p1][1])
(b1, b2) = (B[p2][0], B[p2][1])
if a1 <= b2 and b1 <= a2:
res.append([max(a1, b1), min(a2, b2)])
if b2 < a2:
p2 += 1
else:
p1 += 1
return res |
n=int(input())
ans=0
fac=1
for i in range(1,n+1):
fac*=i
ans+=fac
print(ans) | n = int(input())
ans = 0
fac = 1
for i in range(1, n + 1):
fac *= i
ans += fac
print(ans) |
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
'''
NIST physical constants
https://physics.nist.gov/cuu/Constants/
https://physics.nist.gov/cuu/Constants/Table/allascii.txt
'''
LIGHT_SPEED = 137.03599967994 #http://physics.nist.gov/cgi-bin/cuu/Value?alph
# BOHR = .529 177 210 92(17) e-10m #http://physics.nist.gov/cgi-bin/cuu/Value?bohrrada0
BOHR = 0.52917721092 # Angstroms
ALPHA = 7.2973525664e-3 #http://physics.nist.gov/cgi-bin/cuu/Value?alph
G_ELECTRON = 2.00231930436182 # http://physics.nist.gov/cgi-bin/cuu/Value?gem
E_MASS = 9.10938356e-31 # kg https://physics.nist.gov/cgi-bin/cuu/Value?me
PROTON_MASS = 1.672621898e-27 # kg https://physics.nist.gov/cgi-bin/cuu/Value?mp
BOHR_MAGNETON = 927.4009994e-26 # J/T http://physics.nist.gov/cgi-bin/cuu/Value?mub
NUC_MAGNETON = BOHR_MAGNETON * E_MASS / PROTON_MASS
PLANCK = 6.626070040e-34 # J*s http://physics.nist.gov/cgi-bin/cuu/Value?h
HARTREE2J = 4.359744650e-18 # J https://physics.nist.gov/cgi-bin/cuu/Value?hrj
HARTREE2EV = 27.21138602 # eV https://physics.nist.gov/cgi-bin/cuu/Value?threv
HARTREE2WAVENUMBER = 2.194746313702e9
E_CHARGE = 1.6021766208e-19 # C https://physics.nist.gov/cgi-bin/cuu/Value?e
LIGHT_SPEED_SI = 299792458 # https://physics.nist.gov/cgi-bin/cuu/Value?c
AVOGADRO = 6.022140857e23 # https://physics.nist.gov/cgi-bin/cuu/Value?na
DEBYE = 3.335641e-30 # C*m = 1e-18/LIGHT_SPEED_SI https://cccbdb.nist.gov/debye.asp
AU2DEBYE = E_CHARGE * BOHR*1e-10 / DEBYE # 2.541746
| """
NIST physical constants
https://physics.nist.gov/cuu/Constants/
https://physics.nist.gov/cuu/Constants/Table/allascii.txt
"""
light_speed = 137.03599967994
bohr = 0.52917721092
alpha = 0.0072973525664
g_electron = 2.00231930436182
e_mass = 9.10938356e-31
proton_mass = 1.672621898e-27
bohr_magneton = 9.274009994e-24
nuc_magneton = BOHR_MAGNETON * E_MASS / PROTON_MASS
planck = 6.62607004e-34
hartree2_j = 4.35974465e-18
hartree2_ev = 27.21138602
hartree2_wavenumber = 2194746313.702
e_charge = 1.6021766208e-19
light_speed_si = 299792458
avogadro = 6.022140857e+23
debye = 3.335641e-30
au2_debye = E_CHARGE * BOHR * 1e-10 / DEBYE |
des = 'Desafio-025 strings-004'
print ('{}'.format(des))
#Crie um programa que leia o nome de uma pessoa e diga se ela tem "silva" no seu nome.
nome = str(input('Digite um nome: ')).strip()
print ('Seu nome tem Silva? {}'.format('silva' in nome.lower()))
| des = 'Desafio-025 strings-004'
print('{}'.format(des))
nome = str(input('Digite um nome: ')).strip()
print('Seu nome tem Silva? {}'.format('silva' in nome.lower())) |
def is_armstrong_number(number):
number_string = str(number)
digits = len(number_string)
if digits == 1:
return True
else:
armstrong = sum([int(digit) ** digits for digit in number_string])
return number == armstrong
| def is_armstrong_number(number):
number_string = str(number)
digits = len(number_string)
if digits == 1:
return True
else:
armstrong = sum([int(digit) ** digits for digit in number_string])
return number == armstrong |
class Error(Exception):
"""Base class for exceptions in this module."""
def __str__(self):
return self.message
class EmptyUrlFieldError(Error):
def __init__(self):
self.message = "URL field cannot be empty."
class InvalidUrlError(Error):
def __init__(self, url):
self.message = f"URL {url} is not a valid YouTube playlist link."
class InvalidPlaylistError(Error):
def __init__(self):
self.message = "Playlist is invalid."
class TitlesNotFoundError(Error):
def __init__(self, filename):
self.message = f"TIL file {filename} not found."
class BadTitleFormatError(Error):
def __init__(self, filename, line, msg):
self.message = f"Bad formatting on line {line} of {filename}: {msg}."
class InvalidPlaylistIndexError(Error):
def __init__(self, index, title):
self.message = f"Start index {index} is out of range for playlist {title}."
class IndicesOutOfOrderError(Error):
def __init__(self):
self.message = f"End index must be greater that start index."
class InvalidFieldError(Error):
def __init__(self, field, msg):
self.message = f"Invalid argument for field {field} - {msg}."
class InvalidPathError(Error):
def __init__(self, path):
self.message = f"DIR {path} is not a valid directory."
class ImageDownloadError(Error):
def __init__(self, url):
self.message = f"Could not download image at {url}."
class WrongMetadataLinkError(Error):
def __init__(self, url):
self.message = f"The url at {url} does not point to a valid Discogs.com release page."
class BrokenDiscogsLinkError(Error):
def __init__(self, url):
self.message = f"The url at {url} is unavailable."
class TracknumberMismatchError(Error):
def __init__(self, playlist, album):
self.message = f"Mismatch between the number of selected tracks in YouTube playlist {playlist} and Discogs release for {album}."
# bad url
# url not for playlist
# title file not found
# invalid line in title file
# directory not found
if __name__ == "__main__":
e = ImageDownloadError("jxnjsxsjx")
print(str(e))
| class Error(Exception):
"""Base class for exceptions in this module."""
def __str__(self):
return self.message
class Emptyurlfielderror(Error):
def __init__(self):
self.message = 'URL field cannot be empty.'
class Invalidurlerror(Error):
def __init__(self, url):
self.message = f'URL {url} is not a valid YouTube playlist link.'
class Invalidplaylisterror(Error):
def __init__(self):
self.message = 'Playlist is invalid.'
class Titlesnotfounderror(Error):
def __init__(self, filename):
self.message = f'TIL file {filename} not found.'
class Badtitleformaterror(Error):
def __init__(self, filename, line, msg):
self.message = f'Bad formatting on line {line} of {filename}: {msg}.'
class Invalidplaylistindexerror(Error):
def __init__(self, index, title):
self.message = f'Start index {index} is out of range for playlist {title}.'
class Indicesoutofordererror(Error):
def __init__(self):
self.message = f'End index must be greater that start index.'
class Invalidfielderror(Error):
def __init__(self, field, msg):
self.message = f'Invalid argument for field {field} - {msg}.'
class Invalidpatherror(Error):
def __init__(self, path):
self.message = f'DIR {path} is not a valid directory.'
class Imagedownloaderror(Error):
def __init__(self, url):
self.message = f'Could not download image at {url}.'
class Wrongmetadatalinkerror(Error):
def __init__(self, url):
self.message = f'The url at {url} does not point to a valid Discogs.com release page.'
class Brokendiscogslinkerror(Error):
def __init__(self, url):
self.message = f'The url at {url} is unavailable.'
class Tracknumbermismatcherror(Error):
def __init__(self, playlist, album):
self.message = f'Mismatch between the number of selected tracks in YouTube playlist {playlist} and Discogs release for {album}.'
if __name__ == '__main__':
e = image_download_error('jxnjsxsjx')
print(str(e)) |
REPORT_CASE_INDEX="report_cases_czei39du507m9mmpqk3y01x72a3ux4p0"
REPORT_CASE_MAPPING={'_meta': {'comment': '2013-11-05 dmyung',
'created': None},
'date_detection': False,
'date_formats': ['yyyy-MM-dd',
"yyyy-MM-dd'T'HH:mm:ssZZ",
"yyyy-MM-dd'T'HH:mm:ss.SSSSSS",
"yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'",
"yyyy-MM-dd'T'HH:mm:ss'Z'",
"yyyy-MM-dd'T'HH:mm:ssZ",
"yyyy-MM-dd'T'HH:mm:ssZZ'Z'",
"yyyy-MM-dd'T'HH:mm:ss.SSSZZ",
"yyyy-MM-dd'T'HH:mm:ss",
"yyyy-MM-dd' 'HH:mm:ss",
"yyyy-MM-dd' 'HH:mm:ss.SSSSSS",
"mm/dd/yy' 'HH:mm:ss"],
'dynamic': True,
'dynamic_templates': [{'everything_else': {'mapping': {'{name}': {'index': 'not_analyzed',
'type': 'string'}},
'match': '*',
'match_mapping_type': 'string'}}],
'ignore_malformed': True,
'properties': {'actions': {'dynamic': True,
'properties': {'action_type': {'type': 'string'},
'attachments': {'dynamic': False,
'properties': {'attachment_from': {'type': 'string'},
'attachment_name': {'type': 'string'},
'attachment_properties': {'dynamic': False,
'type': 'object'},
'attachment_size': {'type': 'long'},
'attachment_src': {'type': 'string'},
'doc_type': {'index': 'not_analyzed',
'type': 'string'},
'identifier': {'type': 'string'},
'server_md5': {'type': 'string'},
'server_mime': {'type': 'string'}},
'type': 'object'},
'date': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss",
'type': 'date'},
'doc_type': {'index': 'not_analyzed',
'type': 'string'},
'indices': {'dynamic': False,
'properties': {'doc_type': {'index': 'not_analyzed',
'type': 'string'},
'identifier': {'type': 'string'},
'referenced_id': {'type': 'string'},
'referenced_type': {'type': 'string'}},
'type': 'object'},
'server_date': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss",
'type': 'date'},
'sync_log_id': {'type': 'string'},
'updated_known_properties': {'dynamic': False,
'type': 'object'},
'updated_unknown_properties': {'dynamic': False,
'type': 'object'},
'user_id': {'type': 'string'},
'xform_id': {'type': 'string'},
'xform_name': {'type': 'string'},
'xform_xmlns': {'type': 'string'}},
'type': 'nested'},
'case_attachments': {'dynamic': True,
'properties': {'attachment_from': {'type': 'string'},
'attachment_name': {'type': 'string'},
'attachment_properties': {'dynamic': False,
'type': 'object'},
'attachment_size': {'type': 'long'},
'attachment_src': {'type': 'string'},
'doc_type': {'index': 'not_analyzed',
'type': 'string'},
'identifier': {'type': 'string'},
'server_md5': {'type': 'string'},
'server_mime': {'type': 'string'}},
'type': 'object'},
'closed': {'type': 'boolean'},
'closed_by': {'type': 'string'},
'closed_on': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss",
'type': 'date'},
'computed_': {'enabled': False, 'type': 'object'},
'computed_modified_on_': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss",
'type': 'date'},
'doc_type': {'index': 'not_analyzed', 'type': 'string'},
'domain': {'fields': {'domain': {'index': 'analyzed',
'type': 'string'},
'exact': {'index': 'not_analyzed',
'type': 'string'}},
'type': 'multi_field'},
'export_tag': {'type': 'string'},
'external_id': {'fields': {'exact': {'index': 'not_analyzed',
'type': 'string'},
'external_id': {'index': 'analyzed',
'type': 'string'}},
'type': 'multi_field'},
'indices': {'dynamic': True,
'properties': {'doc_type': {'index': 'not_analyzed',
'type': 'string'},
'identifier': {'type': 'string'},
'referenced_id': {'type': 'string'},
'referenced_type': {'type': 'string'}},
'type': 'object'},
'initial_processing_complete': {'type': 'boolean'},
'location_id': {'type': 'string'},
'modified_on': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss",
'type': 'date'},
'name': {'fields': {'exact': {'index': 'not_analyzed',
'type': 'string'},
'name': {'index': 'analyzed',
'type': 'string'}},
'type': 'multi_field'},
'opened_by': {'type': 'string'},
'opened_on': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss",
'type': 'date'},
'owner_id': {'type': 'string'},
'referrals': {'enabled': False, 'type': 'object'},
'server_modified_on': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss",
'type': 'date'},
'type': {'fields': {'exact': {'index': 'not_analyzed',
'type': 'string'},
'type': {'index': 'analyzed',
'type': 'string'}},
'type': 'multi_field'},
'user_id': {'type': 'string'},
'version': {'type': 'string'},
'xform_ids': {'index': 'not_analyzed', 'type': 'string'}}}
| report_case_index = 'report_cases_czei39du507m9mmpqk3y01x72a3ux4p0'
report_case_mapping = {'_meta': {'comment': '2013-11-05 dmyung', 'created': None}, 'date_detection': False, 'date_formats': ['yyyy-MM-dd', "yyyy-MM-dd'T'HH:mm:ssZZ", "yyyy-MM-dd'T'HH:mm:ss.SSSSSS", "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'", "yyyy-MM-dd'T'HH:mm:ss'Z'", "yyyy-MM-dd'T'HH:mm:ssZ", "yyyy-MM-dd'T'HH:mm:ssZZ'Z'", "yyyy-MM-dd'T'HH:mm:ss.SSSZZ", "yyyy-MM-dd'T'HH:mm:ss", "yyyy-MM-dd' 'HH:mm:ss", "yyyy-MM-dd' 'HH:mm:ss.SSSSSS", "mm/dd/yy' 'HH:mm:ss"], 'dynamic': True, 'dynamic_templates': [{'everything_else': {'mapping': {'{name}': {'index': 'not_analyzed', 'type': 'string'}}, 'match': '*', 'match_mapping_type': 'string'}}], 'ignore_malformed': True, 'properties': {'actions': {'dynamic': True, 'properties': {'action_type': {'type': 'string'}, 'attachments': {'dynamic': False, 'properties': {'attachment_from': {'type': 'string'}, 'attachment_name': {'type': 'string'}, 'attachment_properties': {'dynamic': False, 'type': 'object'}, 'attachment_size': {'type': 'long'}, 'attachment_src': {'type': 'string'}, 'doc_type': {'index': 'not_analyzed', 'type': 'string'}, 'identifier': {'type': 'string'}, 'server_md5': {'type': 'string'}, 'server_mime': {'type': 'string'}}, 'type': 'object'}, 'date': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss", 'type': 'date'}, 'doc_type': {'index': 'not_analyzed', 'type': 'string'}, 'indices': {'dynamic': False, 'properties': {'doc_type': {'index': 'not_analyzed', 'type': 'string'}, 'identifier': {'type': 'string'}, 'referenced_id': {'type': 'string'}, 'referenced_type': {'type': 'string'}}, 'type': 'object'}, 'server_date': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss", 'type': 'date'}, 'sync_log_id': {'type': 'string'}, 'updated_known_properties': {'dynamic': False, 'type': 'object'}, 'updated_unknown_properties': {'dynamic': False, 'type': 'object'}, 'user_id': {'type': 'string'}, 'xform_id': {'type': 'string'}, 'xform_name': {'type': 'string'}, 'xform_xmlns': {'type': 'string'}}, 'type': 'nested'}, 'case_attachments': {'dynamic': True, 'properties': {'attachment_from': {'type': 'string'}, 'attachment_name': {'type': 'string'}, 'attachment_properties': {'dynamic': False, 'type': 'object'}, 'attachment_size': {'type': 'long'}, 'attachment_src': {'type': 'string'}, 'doc_type': {'index': 'not_analyzed', 'type': 'string'}, 'identifier': {'type': 'string'}, 'server_md5': {'type': 'string'}, 'server_mime': {'type': 'string'}}, 'type': 'object'}, 'closed': {'type': 'boolean'}, 'closed_by': {'type': 'string'}, 'closed_on': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss", 'type': 'date'}, 'computed_': {'enabled': False, 'type': 'object'}, 'computed_modified_on_': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss", 'type': 'date'}, 'doc_type': {'index': 'not_analyzed', 'type': 'string'}, 'domain': {'fields': {'domain': {'index': 'analyzed', 'type': 'string'}, 'exact': {'index': 'not_analyzed', 'type': 'string'}}, 'type': 'multi_field'}, 'export_tag': {'type': 'string'}, 'external_id': {'fields': {'exact': {'index': 'not_analyzed', 'type': 'string'}, 'external_id': {'index': 'analyzed', 'type': 'string'}}, 'type': 'multi_field'}, 'indices': {'dynamic': True, 'properties': {'doc_type': {'index': 'not_analyzed', 'type': 'string'}, 'identifier': {'type': 'string'}, 'referenced_id': {'type': 'string'}, 'referenced_type': {'type': 'string'}}, 'type': 'object'}, 'initial_processing_complete': {'type': 'boolean'}, 'location_id': {'type': 'string'}, 'modified_on': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss", 'type': 'date'}, 'name': {'fields': {'exact': {'index': 'not_analyzed', 'type': 'string'}, 'name': {'index': 'analyzed', 'type': 'string'}}, 'type': 'multi_field'}, 'opened_by': {'type': 'string'}, 'opened_on': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss", 'type': 'date'}, 'owner_id': {'type': 'string'}, 'referrals': {'enabled': False, 'type': 'object'}, 'server_modified_on': {'format': "yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZZ||yyyy-MM-dd'T'HH:mm:ss.SSSSSS||yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'||yyyy-MM-dd'T'HH:mm:ss'Z'||yyyy-MM-dd'T'HH:mm:ssZ||yyyy-MM-dd'T'HH:mm:ssZZ'Z'||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||yyyy-MM-dd'T'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss||yyyy-MM-dd' 'HH:mm:ss.SSSSSS||mm/dd/yy' 'HH:mm:ss", 'type': 'date'}, 'type': {'fields': {'exact': {'index': 'not_analyzed', 'type': 'string'}, 'type': {'index': 'analyzed', 'type': 'string'}}, 'type': 'multi_field'}, 'user_id': {'type': 'string'}, 'version': {'type': 'string'}, 'xform_ids': {'index': 'not_analyzed', 'type': 'string'}}} |
class Result:
pass
class CombingResult(Result):
def __init__(self, elapsed_time_preprocess: int, elapsed_time_algo: int, hash: int, size_a: int, size_b: int,
name_a, name_b):
self.hash = hash
self.elapsed_time_algo = elapsed_time_algo
self.elapsed_time_preprocess = elapsed_time_preprocess
self.size_a = size_a
self.size_b = size_b
self.name_a = name_a
self.name_b = name_b
class BraidResult(Result):
def __init__(self, elapsed_time_preprocess, elapsed_time_algo, hash, n, seed):
self.hash = hash
self.elapsed_time_algo = elapsed_time_algo
self.elapsed_time_preprocess = elapsed_time_preprocess
self.n = n
self.seed = seed
class LCSResult(Result):
def __init__(self, elapsed_time_preprocess: int, elapsed_time_algo: int, score: int, size_a: int, size_b: int,
name_a, name_b):
self.score = score
self.elapsed_time_algo = elapsed_time_algo
self.elapsed_time_preprocess = elapsed_time_preprocess
self.size_a = size_a
self.size_b = size_b
self.name_a = name_a
self.name_b = name_b
| class Result:
pass
class Combingresult(Result):
def __init__(self, elapsed_time_preprocess: int, elapsed_time_algo: int, hash: int, size_a: int, size_b: int, name_a, name_b):
self.hash = hash
self.elapsed_time_algo = elapsed_time_algo
self.elapsed_time_preprocess = elapsed_time_preprocess
self.size_a = size_a
self.size_b = size_b
self.name_a = name_a
self.name_b = name_b
class Braidresult(Result):
def __init__(self, elapsed_time_preprocess, elapsed_time_algo, hash, n, seed):
self.hash = hash
self.elapsed_time_algo = elapsed_time_algo
self.elapsed_time_preprocess = elapsed_time_preprocess
self.n = n
self.seed = seed
class Lcsresult(Result):
def __init__(self, elapsed_time_preprocess: int, elapsed_time_algo: int, score: int, size_a: int, size_b: int, name_a, name_b):
self.score = score
self.elapsed_time_algo = elapsed_time_algo
self.elapsed_time_preprocess = elapsed_time_preprocess
self.size_a = size_a
self.size_b = size_b
self.name_a = name_a
self.name_b = name_b |
# Defining constants
# TODO: add all species and experiments
# TODO mapping
RNA_SEQ_LIST = ['files/Caenorhabditis_elegans_RNA-Seq_read_counts_TPM_FPKM_GSE16552.tsv']
AFF_LIST = ['files/Caenorhabditis_elegans_probesets_GSE19972_A-AFFY-60_gcRMA.tsv']
exp_dict = {}
for file in RNA_SEQ_LIST:
# Opening the library file
with open(file) as lib_file:
lib_file.readline()
for line in lib_file:
line = line.strip().split('\t')
if line[3] not in exp_dict:
exp_dict[line[3]] = {'tissue_name': [],
'stage': [],
'FPKM': [],
'presence': []}
else:
if line[5].replace('"', '') not in exp_dict[line[3]]['tissue_name'] \
and line[7].replace('"','') not in exp_dict[line[3]]['stage'] \
and line[12] not in exp_dict[line[3]]['FPKM'] \
and line[13] not in exp_dict[line[3]]['presence']:
exp_dict[line[3]]['tissue_name'].append(line[5].replace('"',''))
exp_dict[line[3]]['stage'].append(line[7].replace('"', ''))
exp_dict[line[3]]['FPKM'].append(line[12])
exp_dict[line[3]]['presence'].append(line[13])
chip_dict = {}
for file in AFF_LIST:
with open(file) as chipfile:
chipfile.readline()
for line in chipfile:
line = line.strip().split('\t')
if line[3] not in chip_dict:
chip_dict[line[3]] = {'tissue_name': [],
'stage': [],
'MAS5': [],
'presence': []}
else:
if line[5].replace('"', '') not in chip_dict[line[3]]['tissue_name'] \
and line[7].replace('"','') not in chip_dict[line[3]]['stage'] \
and line[10] not in chip_dict[line[3]]['MAS5'] \
and line[11] not in chip_dict[line[3]]['presence']:
chip_dict[line[3]]['tissue_name'].append(line[5].replace('"',''))
chip_dict[line[3]]['stage'].append(line[7].replace('"', ''))
chip_dict[line[3]]['MAS5'].append(line[10])
chip_dict[line[3]]['presence'].append(line[11])
print(exp_dict['WBGene00173312'])
print(chip_dict['WBGene00000027'])
| rna_seq_list = ['files/Caenorhabditis_elegans_RNA-Seq_read_counts_TPM_FPKM_GSE16552.tsv']
aff_list = ['files/Caenorhabditis_elegans_probesets_GSE19972_A-AFFY-60_gcRMA.tsv']
exp_dict = {}
for file in RNA_SEQ_LIST:
with open(file) as lib_file:
lib_file.readline()
for line in lib_file:
line = line.strip().split('\t')
if line[3] not in exp_dict:
exp_dict[line[3]] = {'tissue_name': [], 'stage': [], 'FPKM': [], 'presence': []}
elif line[5].replace('"', '') not in exp_dict[line[3]]['tissue_name'] and line[7].replace('"', '') not in exp_dict[line[3]]['stage'] and (line[12] not in exp_dict[line[3]]['FPKM']) and (line[13] not in exp_dict[line[3]]['presence']):
exp_dict[line[3]]['tissue_name'].append(line[5].replace('"', ''))
exp_dict[line[3]]['stage'].append(line[7].replace('"', ''))
exp_dict[line[3]]['FPKM'].append(line[12])
exp_dict[line[3]]['presence'].append(line[13])
chip_dict = {}
for file in AFF_LIST:
with open(file) as chipfile:
chipfile.readline()
for line in chipfile:
line = line.strip().split('\t')
if line[3] not in chip_dict:
chip_dict[line[3]] = {'tissue_name': [], 'stage': [], 'MAS5': [], 'presence': []}
elif line[5].replace('"', '') not in chip_dict[line[3]]['tissue_name'] and line[7].replace('"', '') not in chip_dict[line[3]]['stage'] and (line[10] not in chip_dict[line[3]]['MAS5']) and (line[11] not in chip_dict[line[3]]['presence']):
chip_dict[line[3]]['tissue_name'].append(line[5].replace('"', ''))
chip_dict[line[3]]['stage'].append(line[7].replace('"', ''))
chip_dict[line[3]]['MAS5'].append(line[10])
chip_dict[line[3]]['presence'].append(line[11])
print(exp_dict['WBGene00173312'])
print(chip_dict['WBGene00000027']) |
s= raw_input()
if s=="yes" or s=="YES" or s=="Yes":
print ("Yes")
else:
print ("No") | s = raw_input()
if s == 'yes' or s == 'YES' or s == 'Yes':
print('Yes')
else:
print('No') |
# automatically generated by the FlatBuffers compiler, do not modify
# namespace: io
class DriverType(object):
UNDEFINED = 0
LIBHDFS = 1
LIBHDFS3 = 2
| class Drivertype(object):
undefined = 0
libhdfs = 1
libhdfs3 = 2 |
'''
Created on 1.11.2016
@author: Samuli Rahkonen
'''
def kbinterrupt_decorate(func):
'''
Decorator.
Adds KeyboardInterrupt handling to ControllerBase methods.
'''
def func_wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except KeyboardInterrupt:
this = args[0]
this._abort()
raise
return func_wrapper
def wait_decorate(func):
'''
Decorator.
Adds waiting
'''
def func_wrapper(*args, **kwargs):
this = args[0]
wait = kwargs['wait']
func(*args, **kwargs)
if wait:
this.x.wait_to_finish()
return func_wrapper
| """
Created on 1.11.2016
@author: Samuli Rahkonen
"""
def kbinterrupt_decorate(func):
"""
Decorator.
Adds KeyboardInterrupt handling to ControllerBase methods.
"""
def func_wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except KeyboardInterrupt:
this = args[0]
this._abort()
raise
return func_wrapper
def wait_decorate(func):
"""
Decorator.
Adds waiting
"""
def func_wrapper(*args, **kwargs):
this = args[0]
wait = kwargs['wait']
func(*args, **kwargs)
if wait:
this.x.wait_to_finish()
return func_wrapper |
class BaseLayout(object):
@classmethod
def render(cls, items):
raise NotImplementedError
| class Baselayout(object):
@classmethod
def render(cls, items):
raise NotImplementedError |
# THIS FILE IS GENERATED FROM THEANO SETUP.PY
short_version = '0.9.0beta1'
version = '0.9.0beta1'
git_revision = 'RELEASE'
full_version = '0.9.0beta1.dev-%(git_revision)s' % {
'git_revision': git_revision}
release = False
if not release:
version = full_version
| short_version = '0.9.0beta1'
version = '0.9.0beta1'
git_revision = 'RELEASE'
full_version = '0.9.0beta1.dev-%(git_revision)s' % {'git_revision': git_revision}
release = False
if not release:
version = full_version |
"""
Custom path converters for urls
https://docs.djangoproject.com/en/dev/topics/http/urls/#registering-custom-path-converters
"""
# Match a hexcolor in the url.
# Must start with a # and contain 6 hexidecimal characters (0-9 and A-F),
# in either lower or upper case.
class HexColorConverter:
regex = '([A-Fa-f0-9]{6})'
def to_python(self, value):
return value
def to_url(self, value):
return value
# File Formats to Return
class FileFormatConverter:
regex = '([b:B][m:M][p:P]|[g:G][i:I][f:F]|[j:J][p:P][e:E]?[g:G]|[p:P][c:C][x:X]|[p:P][n:N][g:G])'
def to_python(self, value):
return value
def to_url(self, value):
return value
# Limit width min 1, max 1920
class MaxWidthConverter:
regex = '([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|1[0-8][0-9][0-9]|19[0-1][0-9]|1920)'
def to_python(self, value):
return int(value)
def to_url(self, value):
return '%d' % value
# Limit height min 1, max 1080
class MaxHeightConverter:
regex = '([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|10[0-7][0-9]|1080)'
def to_python(self, value):
return int(value)
def to_url(self, value):
return '%d' % value
| """
Custom path converters for urls
https://docs.djangoproject.com/en/dev/topics/http/urls/#registering-custom-path-converters
"""
class Hexcolorconverter:
regex = '([A-Fa-f0-9]{6})'
def to_python(self, value):
return value
def to_url(self, value):
return value
class Fileformatconverter:
regex = '([b:B][m:M][p:P]|[g:G][i:I][f:F]|[j:J][p:P][e:E]?[g:G]|[p:P][c:C][x:X]|[p:P][n:N][g:G])'
def to_python(self, value):
return value
def to_url(self, value):
return value
class Maxwidthconverter:
regex = '([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|1[0-8][0-9][0-9]|19[0-1][0-9]|1920)'
def to_python(self, value):
return int(value)
def to_url(self, value):
return '%d' % value
class Maxheightconverter:
regex = '([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|10[0-7][0-9]|1080)'
def to_python(self, value):
return int(value)
def to_url(self, value):
return '%d' % value |
#!/usr/bin/env python3
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
BUCKET_NAME_BKT = "aws-saas-s3"
BUCKET_NAME_PFX = "aws-saas-s3-prefix"
BUCKET_NAME_TAG = "aws-saas-s3-tag"
BUCKET_NAME_AP = "aws-saas-s3-ap"
BUCKET_NAME_NSDB = "aws-saas-s3-dbns"
| bucket_name_bkt = 'aws-saas-s3'
bucket_name_pfx = 'aws-saas-s3-prefix'
bucket_name_tag = 'aws-saas-s3-tag'
bucket_name_ap = 'aws-saas-s3-ap'
bucket_name_nsdb = 'aws-saas-s3-dbns' |
'''
The provided code stub reads and integer, n, from STDIN.
For all non-negative integers i<n, print i^2.
'''
if __name__ == '__main__':
n = int(input())
for i in range(n):
print(i**2)
| """
The provided code stub reads and integer, n, from STDIN.
For all non-negative integers i<n, print i^2.
"""
if __name__ == '__main__':
n = int(input())
for i in range(n):
print(i ** 2) |
#
# PySNMP MIB module CISCO-SYSLOG-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-SYSLOG-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 12:13:49 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, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection")
ciscoAgentCapability, = mibBuilder.importSymbols("CISCO-SMI", "ciscoAgentCapability")
ModuleCompliance, NotificationGroup, AgentCapabilities = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "AgentCapabilities")
Counter64, Bits, Integer32, TimeTicks, IpAddress, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, Unsigned32, ModuleIdentity, NotificationType, Gauge32, Counter32, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "Bits", "Integer32", "TimeTicks", "IpAddress", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "Unsigned32", "ModuleIdentity", "NotificationType", "Gauge32", "Counter32", "MibIdentifier")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
ciscoSyslogCapability = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 7, 61))
ciscoSyslogCapability.setRevisions(('2010-01-22 14:32', '2008-08-11 00:00', '2008-06-08 00:00', '2006-10-26 00:00', '2006-05-25 00:00', '2004-02-03 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoSyslogCapability.setRevisionsDescriptions(('Added capability for Visual Quality Experience Server (VQE-S) and Visual Quality Experience Tools (VQE-TOOLS) platforms.', 'Adding newlines at the end of the MIB file.', 'Added Agent capability for ACE 4710 Application Control Engine Appliance.', 'Added capability for Cisco TelePresence System (CTS) and Cisco TelePresence Manager (CTM) platforms.', 'Added Agent capability ciscoSyslogCapACSWV03R000 for Application Control Engine (ACE).', 'Initial version of this MIB module.',))
if mibBuilder.loadTexts: ciscoSyslogCapability.setLastUpdated('201001221432Z')
if mibBuilder.loadTexts: ciscoSyslogCapability.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoSyslogCapability.setContactInfo('Cisco Systems Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-lan-switch-snmp@cisco.com cs-snmp@cisco.com')
if mibBuilder.loadTexts: ciscoSyslogCapability.setDescription('The capabilities description of CISCO-SYSLOG-MIB.')
ciscoSyslogCapCatOSV08R0101 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 1))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapCatOSV08R0101 = ciscoSyslogCapCatOSV08R0101.setProductRelease('Cisco CatOS 8.1(1).')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapCatOSV08R0101 = ciscoSyslogCapCatOSV08R0101.setStatus('current')
if mibBuilder.loadTexts: ciscoSyslogCapCatOSV08R0101.setDescription('CISCO-SYSLOG-MIB capabilities.')
ciscoSyslogCapACSWV03R000 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 2))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapACSWV03R000 = ciscoSyslogCapACSWV03R000.setProductRelease('ACSW (Application Control Software) 3.0\n \n for Application Control Engine(ACE)\n\n Service Module.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapACSWV03R000 = ciscoSyslogCapACSWV03R000.setStatus('current')
if mibBuilder.loadTexts: ciscoSyslogCapACSWV03R000.setDescription('CISCO-SYSLOG-MIB capabilities.')
ciscoSyslogCapCTSV100 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 3))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapCTSV100 = ciscoSyslogCapCTSV100.setProductRelease('Cisco TelePresence System (CTS) 1.0.0.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapCTSV100 = ciscoSyslogCapCTSV100.setStatus('current')
if mibBuilder.loadTexts: ciscoSyslogCapCTSV100.setDescription('CISCO-SYSLOG-MIB capabilities.')
ciscoSyslogCapCTMV1000 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 4))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapCTMV1000 = ciscoSyslogCapCTMV1000.setProductRelease('Cisco TelePresence Manager (CTM) 1.0.0.0.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapCTMV1000 = ciscoSyslogCapCTMV1000.setStatus('current')
if mibBuilder.loadTexts: ciscoSyslogCapCTMV1000.setDescription('CISCO-SYSLOG-MIB capabilities.')
ciscoSyslogCapc4710aceVA1R70 = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 5))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapc4710aceVA1R70 = ciscoSyslogCapc4710aceVA1R70.setProductRelease('ACSW (Application Control Software) A1(7)\n for ACE 4710 Application Control Engine \n Appliance.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapc4710aceVA1R70 = ciscoSyslogCapc4710aceVA1R70.setStatus('current')
if mibBuilder.loadTexts: ciscoSyslogCapc4710aceVA1R70.setDescription('CISCO-SYSLOG-MIB capabilities.')
ciscoSyslogCapVqe = AgentCapabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 6))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapVqe = ciscoSyslogCapVqe.setProductRelease('VQE 3.5 release.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoSyslogCapVqe = ciscoSyslogCapVqe.setStatus('current')
if mibBuilder.loadTexts: ciscoSyslogCapVqe.setDescription('CISCO-SYSLOG-MIB capabilities.')
mibBuilder.exportSymbols("CISCO-SYSLOG-CAPABILITY", ciscoSyslogCapability=ciscoSyslogCapability, PYSNMP_MODULE_ID=ciscoSyslogCapability, ciscoSyslogCapCatOSV08R0101=ciscoSyslogCapCatOSV08R0101, ciscoSyslogCapVqe=ciscoSyslogCapVqe, ciscoSyslogCapACSWV03R000=ciscoSyslogCapACSWV03R000, ciscoSyslogCapCTMV1000=ciscoSyslogCapCTMV1000, ciscoSyslogCapc4710aceVA1R70=ciscoSyslogCapc4710aceVA1R70, ciscoSyslogCapCTSV100=ciscoSyslogCapCTSV100)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, value_size_constraint, single_value_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection')
(cisco_agent_capability,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoAgentCapability')
(module_compliance, notification_group, agent_capabilities) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'AgentCapabilities')
(counter64, bits, integer32, time_ticks, ip_address, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, unsigned32, module_identity, notification_type, gauge32, counter32, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'Bits', 'Integer32', 'TimeTicks', 'IpAddress', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'Unsigned32', 'ModuleIdentity', 'NotificationType', 'Gauge32', 'Counter32', 'MibIdentifier')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
cisco_syslog_capability = module_identity((1, 3, 6, 1, 4, 1, 9, 7, 61))
ciscoSyslogCapability.setRevisions(('2010-01-22 14:32', '2008-08-11 00:00', '2008-06-08 00:00', '2006-10-26 00:00', '2006-05-25 00:00', '2004-02-03 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoSyslogCapability.setRevisionsDescriptions(('Added capability for Visual Quality Experience Server (VQE-S) and Visual Quality Experience Tools (VQE-TOOLS) platforms.', 'Adding newlines at the end of the MIB file.', 'Added Agent capability for ACE 4710 Application Control Engine Appliance.', 'Added capability for Cisco TelePresence System (CTS) and Cisco TelePresence Manager (CTM) platforms.', 'Added Agent capability ciscoSyslogCapACSWV03R000 for Application Control Engine (ACE).', 'Initial version of this MIB module.'))
if mibBuilder.loadTexts:
ciscoSyslogCapability.setLastUpdated('201001221432Z')
if mibBuilder.loadTexts:
ciscoSyslogCapability.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts:
ciscoSyslogCapability.setContactInfo('Cisco Systems Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-lan-switch-snmp@cisco.com cs-snmp@cisco.com')
if mibBuilder.loadTexts:
ciscoSyslogCapability.setDescription('The capabilities description of CISCO-SYSLOG-MIB.')
cisco_syslog_cap_cat_osv08_r0101 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 1))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_cat_osv08_r0101 = ciscoSyslogCapCatOSV08R0101.setProductRelease('Cisco CatOS 8.1(1).')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_cat_osv08_r0101 = ciscoSyslogCapCatOSV08R0101.setStatus('current')
if mibBuilder.loadTexts:
ciscoSyslogCapCatOSV08R0101.setDescription('CISCO-SYSLOG-MIB capabilities.')
cisco_syslog_cap_acswv03_r000 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 2))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_acswv03_r000 = ciscoSyslogCapACSWV03R000.setProductRelease('ACSW (Application Control Software) 3.0\n \n for Application Control Engine(ACE)\n\n Service Module.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_acswv03_r000 = ciscoSyslogCapACSWV03R000.setStatus('current')
if mibBuilder.loadTexts:
ciscoSyslogCapACSWV03R000.setDescription('CISCO-SYSLOG-MIB capabilities.')
cisco_syslog_cap_ctsv100 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 3))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_ctsv100 = ciscoSyslogCapCTSV100.setProductRelease('Cisco TelePresence System (CTS) 1.0.0.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_ctsv100 = ciscoSyslogCapCTSV100.setStatus('current')
if mibBuilder.loadTexts:
ciscoSyslogCapCTSV100.setDescription('CISCO-SYSLOG-MIB capabilities.')
cisco_syslog_cap_ctmv1000 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 4))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_ctmv1000 = ciscoSyslogCapCTMV1000.setProductRelease('Cisco TelePresence Manager (CTM) 1.0.0.0.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_ctmv1000 = ciscoSyslogCapCTMV1000.setStatus('current')
if mibBuilder.loadTexts:
ciscoSyslogCapCTMV1000.setDescription('CISCO-SYSLOG-MIB capabilities.')
cisco_syslog_capc4710ace_va1_r70 = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 5))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_capc4710ace_va1_r70 = ciscoSyslogCapc4710aceVA1R70.setProductRelease('ACSW (Application Control Software) A1(7)\n for ACE 4710 Application Control Engine \n Appliance.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_capc4710ace_va1_r70 = ciscoSyslogCapc4710aceVA1R70.setStatus('current')
if mibBuilder.loadTexts:
ciscoSyslogCapc4710aceVA1R70.setDescription('CISCO-SYSLOG-MIB capabilities.')
cisco_syslog_cap_vqe = agent_capabilities((1, 3, 6, 1, 4, 1, 9, 7, 61, 6))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_vqe = ciscoSyslogCapVqe.setProductRelease('VQE 3.5 release.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_syslog_cap_vqe = ciscoSyslogCapVqe.setStatus('current')
if mibBuilder.loadTexts:
ciscoSyslogCapVqe.setDescription('CISCO-SYSLOG-MIB capabilities.')
mibBuilder.exportSymbols('CISCO-SYSLOG-CAPABILITY', ciscoSyslogCapability=ciscoSyslogCapability, PYSNMP_MODULE_ID=ciscoSyslogCapability, ciscoSyslogCapCatOSV08R0101=ciscoSyslogCapCatOSV08R0101, ciscoSyslogCapVqe=ciscoSyslogCapVqe, ciscoSyslogCapACSWV03R000=ciscoSyslogCapACSWV03R000, ciscoSyslogCapCTMV1000=ciscoSyslogCapCTMV1000, ciscoSyslogCapc4710aceVA1R70=ciscoSyslogCapc4710aceVA1R70, ciscoSyslogCapCTSV100=ciscoSyslogCapCTSV100) |
princ_amount = float(input(" Please Enter the Principal Amount : "))
rate_of_int = float(input(" Please Enter the Rate Of Interest : "))
time_period = float(input(" Please Enter Time period in Years : "))
simple_interest = (princ_amount * rate_of_int * time_period) / 100
print("\nSimple Interest for Principal Amount {0} = {1}".format(princ_amount, simple_interest))
| princ_amount = float(input(' Please Enter the Principal Amount : '))
rate_of_int = float(input(' Please Enter the Rate Of Interest : '))
time_period = float(input(' Please Enter Time period in Years : '))
simple_interest = princ_amount * rate_of_int * time_period / 100
print('\nSimple Interest for Principal Amount {0} = {1}'.format(princ_amount, simple_interest)) |
M = int(input())
a = {int(i) for i in input().split()}
N = int(input())
b = {int(i) for i in input().split()}
c = sorted(a.symmetric_difference(b))
[print(i) for i in c]
| m = int(input())
a = {int(i) for i in input().split()}
n = int(input())
b = {int(i) for i in input().split()}
c = sorted(a.symmetric_difference(b))
[print(i) for i in c] |
class Solution:
def totalNQueens(self, n: int) -> int:
path = [-1] * n
used = [False] * n
cnt = 0
def backtrack(k):
'''
k is the current level, 0-idexed
'''
nonlocal path, used, cnt
if k == n:
cnt += 1
return
for i in range(n):
if used[i]:
continue
# check (k, i) with others
illegal = False
cur_row = k - 1
cur_col = i - 1
while cur_row >= 0 and cur_col >= 0:
if path[cur_row] == cur_col:
illegal = True
break
cur_row -= 1
cur_col -= 1
if illegal:
continue
cur_row = k - 1
cur_col = i + 1
while cur_row >= 0 and cur_col < n:
if path[cur_row] == cur_col:
illegal = True
break
cur_row -= 1
cur_col += 1
if illegal:
continue
# legal position
used[i] = True
path[k] = i
backtrack(k+1)
used[i] = False
path[k] = -1
return
backtrack(0)
return cnt | class Solution:
def total_n_queens(self, n: int) -> int:
path = [-1] * n
used = [False] * n
cnt = 0
def backtrack(k):
"""
k is the current level, 0-idexed
"""
nonlocal path, used, cnt
if k == n:
cnt += 1
return
for i in range(n):
if used[i]:
continue
illegal = False
cur_row = k - 1
cur_col = i - 1
while cur_row >= 0 and cur_col >= 0:
if path[cur_row] == cur_col:
illegal = True
break
cur_row -= 1
cur_col -= 1
if illegal:
continue
cur_row = k - 1
cur_col = i + 1
while cur_row >= 0 and cur_col < n:
if path[cur_row] == cur_col:
illegal = True
break
cur_row -= 1
cur_col += 1
if illegal:
continue
used[i] = True
path[k] = i
backtrack(k + 1)
used[i] = False
path[k] = -1
return
backtrack(0)
return cnt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.