content
stringlengths 7
1.05M
|
---|
class MarkdownParser:
def __init__(self, whitelist_filters=None):
self._delimiter = '\n'
self._single_delimiters = \
('#', '*', '+', '~', '-', '|', '`', '\n')
self._whitelist_filters = whitelist_filters or [str.isdigit]
def encode(self, text):
content_parts, content_delimiters = \
self.parse(text)
encoded_text = self._delimiter.join(content_parts)
return encoded_text, content_delimiters
def decode(self, text, content_delimiters):
translated_parts = ('\n\n' + text).split('\n\n')
result = ''
for content, delimiter in zip(translated_parts, content_delimiters):
result += (content + delimiter)
return result
def parse(self, text):
content_parts = []
content_delimiters = []
tmp_delimiter = tmp_part = ''
# ----------------------------------------
for char in text:
if char in self._single_delimiters:
tmp_delimiter += char
continue
# ------------------------------
if self._check_whitelist(char):
tmp_delimiter += char
continue
# ------------------------------
if char.isspace() and tmp_delimiter:
tmp_delimiter += char
continue
# ------------------------------
if not char.isspace() and tmp_delimiter:
content_parts.append(tmp_part)
content_delimiters.append(tmp_delimiter)
tmp_delimiter = tmp_part = ''
# --------------------
tmp_part += char
# ----------------------------------------
tmp_part and content_parts.append(tmp_part)
content_delimiters.append(tmp_delimiter or '\n')
return content_parts, content_delimiters
def _check_whitelist(self, char):
for filter_callable in self._whitelist_filters:
if not filter_callable(char):
return False
# ----------------------------------------
return True
|
#!/usr/bin/env python3
# pyre-strict
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
"""
ldops.exceptions
~~~~~~~~~~~
Contains LDOps-wide exceptions.
"""
class LDOpsError(Exception):
"""
Generic error in LDOps
"""
pass
class NodeNotFoundError(LDOpsError):
"""
Raised when node not found
"""
pass
class NodeIsNotASequencerError(LDOpsError):
"""
Raised when node which is not a sequencer was used in a context
expecting that it is a sequencer
"""
pass
class NodeIsNotAStorageError(LDOpsError):
"""
Raised when node which is not a storage is used in a context
expectit that it is a storage
"""
pass
|
# 用来存储从惠州学院新闻网获取的一个新闻对象
class HzuNews:
"""一个简单的新闻信息数据结构"""
def __init__(self, title, link, time):
self.title = title
self.link = link
self.time = time
def get_title(self):
return self.title
|
# This program has been developed by students from the bachelor Computer Science at Utrecht University within the
# Software and Game project course
# ©Copyright Utrecht University Department of Information and Computing Sciences.
settingStrings = {
"updateMessage": "Settings updates succesfully",
"updateErrorMessage": "Couldn't update course settings",
"deadline":
{
"title": "Deadline notifications",
"desc": "Customize whether your want to enable deadline notifications and how many hours prior to a deadline a notification should be sent.",
"valueType": "hours"
},
"inactivity":
{
"title": "Inactivity notifications",
"desc": "Customize whether your want to enable inactivity notifications and after how many days a student had no activity on this course a notification should be sent.",
"valueType": "days"
},
"unknown":
{
"title": "Unrecognized setting block",
"desc": "No description available",
"valueType": "NaN"
}
}
assistantStrings = {
"updateMessage": "Assistants updated succesfully",
"updateErrorMessage": "Couldn't update assistants",
"new_activity": {
"title": "New Activity Assistant",
"desc": "Notify a student when a new activity gets added to the course",
},
"quiz_feedback": {
"title": "Quiz Feedback Assistant",
"desc": "Send students notifications when they score below the treshold",
},
"unknown": {
"title": "Unrecognized Assistant",
"desc": "No description available",
}
}
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
INPUT_STREAMS = [
'test.count_words_stream.CountWordsStream'
]
REDUCERS = [
'test.count_words_reducer.CountWordsReducer'
]
|
'''
This problem was asked by Facebook.
There is an N by M matrix of zeroes. Given N and M, write a function to count the number of ways of starting at the top-left corner and getting to the bottom-right corner. You can only move right or down.
For example, given a 2 by 2 matrix, you should return 2, since there are two ways to get to the bottom-right:
Right, then down
Down, then right
Given a 5 by 5 matrix, there are 70 ways to get to the bottom-right.
'''
def no_of_ways(N):
ways = [[0]*N for _ in range(N)]
for i in range(N):
for j in range(N):
if i==0 or j==0:
ways[i][j] = 1
else:
ways[i][j] = ways[i-1][j] + ways[i][j-1]
return ways[-1][-1]
if __name__=='__main__':
data = [
[2, 2],
[3, 6],
[5, 70],
]
for d in data:
print('input', d[0], 'output', no_of_ways(d[0])) |
"""converted from vga_8x8.bin """
WIDTH = 8
HEIGHT = 8
FIRST = 0x20
LAST = 0x7f
_FONT =\
b'\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x18\x3c\x3c\x18\x18\x00\x18\x00'\
b'\x66\x66\x24\x00\x00\x00\x00\x00'\
b'\x6c\x6c\xfe\x6c\xfe\x6c\x6c\x00'\
b'\x18\x3e\x60\x3c\x06\x7c\x18\x00'\
b'\x00\xc6\xcc\x18\x30\x66\xc6\x00'\
b'\x38\x6c\x38\x76\xdc\xcc\x76\x00'\
b'\x18\x18\x30\x00\x00\x00\x00\x00'\
b'\x0c\x18\x30\x30\x30\x18\x0c\x00'\
b'\x30\x18\x0c\x0c\x0c\x18\x30\x00'\
b'\x00\x66\x3c\xff\x3c\x66\x00\x00'\
b'\x00\x18\x18\x7e\x18\x18\x00\x00'\
b'\x00\x00\x00\x00\x00\x18\x18\x30'\
b'\x00\x00\x00\x7e\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x18\x18\x00'\
b'\x06\x0c\x18\x30\x60\xc0\x80\x00'\
b'\x38\x6c\xc6\xd6\xc6\x6c\x38\x00'\
b'\x18\x38\x18\x18\x18\x18\x7e\x00'\
b'\x7c\xc6\x06\x1c\x30\x66\xfe\x00'\
b'\x7c\xc6\x06\x3c\x06\xc6\x7c\x00'\
b'\x1c\x3c\x6c\xcc\xfe\x0c\x1e\x00'\
b'\xfe\xc0\xc0\xfc\x06\xc6\x7c\x00'\
b'\x38\x60\xc0\xfc\xc6\xc6\x7c\x00'\
b'\xfe\xc6\x0c\x18\x30\x30\x30\x00'\
b'\x7c\xc6\xc6\x7c\xc6\xc6\x7c\x00'\
b'\x7c\xc6\xc6\x7e\x06\x0c\x78\x00'\
b'\x00\x18\x18\x00\x00\x18\x18\x00'\
b'\x00\x18\x18\x00\x00\x18\x18\x30'\
b'\x06\x0c\x18\x30\x18\x0c\x06\x00'\
b'\x00\x00\x7e\x00\x00\x7e\x00\x00'\
b'\x60\x30\x18\x0c\x18\x30\x60\x00'\
b'\x7c\xc6\x0c\x18\x18\x00\x18\x00'\
b'\x7c\xc6\xde\xde\xde\xc0\x78\x00'\
b'\x38\x6c\xc6\xfe\xc6\xc6\xc6\x00'\
b'\xfc\x66\x66\x7c\x66\x66\xfc\x00'\
b'\x3c\x66\xc0\xc0\xc0\x66\x3c\x00'\
b'\xf8\x6c\x66\x66\x66\x6c\xf8\x00'\
b'\xfe\x62\x68\x78\x68\x62\xfe\x00'\
b'\xfe\x62\x68\x78\x68\x60\xf0\x00'\
b'\x3c\x66\xc0\xc0\xce\x66\x3a\x00'\
b'\xc6\xc6\xc6\xfe\xc6\xc6\xc6\x00'\
b'\x3c\x18\x18\x18\x18\x18\x3c\x00'\
b'\x1e\x0c\x0c\x0c\xcc\xcc\x78\x00'\
b'\xe6\x66\x6c\x78\x6c\x66\xe6\x00'\
b'\xf0\x60\x60\x60\x62\x66\xfe\x00'\
b'\xc6\xee\xfe\xfe\xd6\xc6\xc6\x00'\
b'\xc6\xe6\xf6\xde\xce\xc6\xc6\x00'\
b'\x7c\xc6\xc6\xc6\xc6\xc6\x7c\x00'\
b'\xfc\x66\x66\x7c\x60\x60\xf0\x00'\
b'\x7c\xc6\xc6\xc6\xc6\xce\x7c\x0e'\
b'\xfc\x66\x66\x7c\x6c\x66\xe6\x00'\
b'\x3c\x66\x30\x18\x0c\x66\x3c\x00'\
b'\x7e\x7e\x5a\x18\x18\x18\x3c\x00'\
b'\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00'\
b'\xc6\xc6\xc6\xc6\xc6\x6c\x38\x00'\
b'\xc6\xc6\xc6\xd6\xd6\xfe\x6c\x00'\
b'\xc6\xc6\x6c\x38\x6c\xc6\xc6\x00'\
b'\x66\x66\x66\x3c\x18\x18\x3c\x00'\
b'\xfe\xc6\x8c\x18\x32\x66\xfe\x00'\
b'\x3c\x30\x30\x30\x30\x30\x3c\x00'\
b'\xc0\x60\x30\x18\x0c\x06\x02\x00'\
b'\x3c\x0c\x0c\x0c\x0c\x0c\x3c\x00'\
b'\x10\x38\x6c\xc6\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\xff'\
b'\x30\x18\x0c\x00\x00\x00\x00\x00'\
b'\x00\x00\x78\x0c\x7c\xcc\x76\x00'\
b'\xe0\x60\x7c\x66\x66\x66\xdc\x00'\
b'\x00\x00\x7c\xc6\xc0\xc6\x7c\x00'\
b'\x1c\x0c\x7c\xcc\xcc\xcc\x76\x00'\
b'\x00\x00\x7c\xc6\xfe\xc0\x7c\x00'\
b'\x3c\x66\x60\xf8\x60\x60\xf0\x00'\
b'\x00\x00\x76\xcc\xcc\x7c\x0c\xf8'\
b'\xe0\x60\x6c\x76\x66\x66\xe6\x00'\
b'\x18\x00\x38\x18\x18\x18\x3c\x00'\
b'\x06\x00\x06\x06\x06\x66\x66\x3c'\
b'\xe0\x60\x66\x6c\x78\x6c\xe6\x00'\
b'\x38\x18\x18\x18\x18\x18\x3c\x00'\
b'\x00\x00\xec\xfe\xd6\xd6\xd6\x00'\
b'\x00\x00\xdc\x66\x66\x66\x66\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\x7c\x00'\
b'\x00\x00\xdc\x66\x66\x7c\x60\xf0'\
b'\x00\x00\x76\xcc\xcc\x7c\x0c\x1e'\
b'\x00\x00\xdc\x76\x60\x60\xf0\x00'\
b'\x00\x00\x7e\xc0\x7c\x06\xfc\x00'\
b'\x30\x30\xfc\x30\x30\x36\x1c\x00'\
b'\x00\x00\xcc\xcc\xcc\xcc\x76\x00'\
b'\x00\x00\xc6\xc6\xc6\x6c\x38\x00'\
b'\x00\x00\xc6\xd6\xd6\xfe\x6c\x00'\
b'\x00\x00\xc6\x6c\x38\x6c\xc6\x00'\
b'\x00\x00\xc6\xc6\xc6\x7e\x06\xfc'\
b'\x00\x00\x7e\x4c\x18\x32\x7e\x00'\
b'\x0e\x18\x18\x70\x18\x18\x0e\x00'\
b'\x18\x18\x18\x18\x18\x18\x18\x00'\
b'\x70\x18\x18\x0e\x18\x18\x70\x00'\
b'\x76\xdc\x00\x00\x00\x00\x00\x00'\
b'\x00\x10\x38\x6c\xc6\xc6\xfe\x00'\
FONT = memoryview(_FONT)
|
"""
configurable.py
Copyright 2006 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with w3af; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
class Configurable(object):
"""
This is mostly "an interface", this "interface" states that all
classes that implement it, should implement the following methods:
1. set_options( options_list )
2. get_options()
:author: Andres Riancho ([email protected])
"""
def set_options(self, options_list):
"""
Sets the Options given on the options_list to self. The options
are the result of a user entering some data on a window that
was constructed using the XML Options that was retrieved from
the plugin using get_options()
This method MUST be implemented on every configurable object.
:return: No value is returned.
"""
raise NotImplementedError('Configurable object is not implementing '
'required method set_options')
def get_options(self):
"""
This method returns an OptionList containing the options
objects that the configurable object has. Using this option
list the framework will build a window, a menu, or some
other input method to retrieve the info from the user.
This method MUST be implemented on every plugin.
:return: OptionList.
"""
raise NotImplementedError('Configurable object is not implementing '
'required method get_options')
def get_name(self):
return type(self).__name__
def get_type(self):
return 'configurable'
|
print('=--=' * 20)
print('ANALIZADOR DE TRIÂNGULOS')
print('=--=' * 20)
reta1 = int(input('Digite a primeira reta:'))
reta2 = int(input('Digite a segunda reta:'))
reta3 = int(input('Digite a terceira reta:'))
if reta1 < reta2 + reta3 and reta2 < reta1 + reta3 and reta3 < reta1 + reta2:
print('Os segmentos acima podem formar triângulo ',end='')
if reta1 == reta2 == reta3:
print('EQUILÁTERO')
elif reta1 != reta2 != reta3 != reta1:
print('ESCALENO')
else:
print('ISÓSCELES')
else:
print('Os segmentos acima não podem formar um triângulo.') |
# Testing Assertions
# Given a sequence of a number of cars,
# the function get_total_cars returns the total number of cars.
# get_total_cars([1, 2, 3, 4])
# outputs: 10
# get_total_cars(['a', 'b', 'c'])
# outputs: ValueError: invalid literal for int() with base 10: 'a'
# Explain in words what the assertions in this function check, and for each one, give an example of input that will make that assertion fail.
def get_total(values):
assert len(values) > 0
for element in values:
assert int(element)
values = [int(element) for element in values]
total = sum(values)
assert total > 0
return total |
class Codec:
ENCODING: str
SEPARATOR: bytes
WIDTH: int
@staticmethod
def default():
"""Default codec specified for id3v2.3 (Latin1 / ISO 8859-1)"""
return _CODECS.get(0)
@staticmethod
def get(key):
"""Get codec by magic number specified in id3v2.3
0: Latin1 / ISO 8859-1
1: UTF-16
2: UTF-16BE
3: UTF-8
"""
return _CODECS[key]
def read(self, stream, length=1):
"""Read chars from stream, according to encoding"""
return stream.read(self.WIDTH * length)
def decode(self, byte_string):
"""Decode byte_string with given encoding"""
return byte_string.decode(self.ENCODING)
def encode(self, byte_string):
"""Decode byte_string with given encoding"""
return byte_string.encode(self.ENCODING) + self.SEPARATOR
def __str__(self):
return self.ENCODING
def __eq__(self, other):
return str(self) == str(other)
class Latin1Codec(Codec):
ENCODING = "latin1"
SEPARATOR = b'\x00'
WIDTH = 1
class UTF8Codec(Codec):
ENCODING = "utf_8"
SEPARATOR = b'\x00'
WIDTH = 1
class UTF16BECodec(Codec):
ENCODING = "utf_16_be"
SEPARATOR = b'\x00\x00'
WIDTH = 2
class UTF16Codec(Codec):
ENCODING = "utf_16"
SEPARATOR = b'\x00\x00'
WIDTH = 2
_CODECS = {
0: Latin1Codec(),
1: UTF16Codec(),
2: UTF16BECodec(),
3: UTF8Codec(),
}
|
class FlaskRequest(object):
"""
A Request class to connect the Piwik API to Flask
"""
def __init__(self, request):
"""
:param request: Flask request object.
:type request: flask.Request
:rtype: None
"""
self.request = request
@property
def META(self):
"""
Return request headers.
:rtype: dict
"""
return self.request.headers
def is_secure(self):
"""
Returns a boolean, if the connection is secured.
:rtype: bool
"""
return self.request.is_secure
|
# Fala um programa que leia a largura e altura
# de uma parede, em metros, e calcule a sua área,
# bem como a quantidade de tinta necessária para
# pintar, supondo que 1L rende 2m^2 de parede.
altura = float(input('Altura da parede: '))
largura = float(input('Largura da parede: '))
area = altura * largura
tinta = area / 2
print('A parede tem {} m^2, e usaria {} L de tinta'.format(
area, tinta
))
|
# Sal's Shipping
# Eleni A.
weight = 41.5
GS_FLAT = 20
GSP_FLAT = 125
# Basic Scale Shipping
def basic_shipping(weight):
if weight <= 2:
cost = weight * 1.50
elif weight <= 6:
cost = weight * 3
elif weight <=10:
cost = weight * 4
else:
cost = weight * 4.75
return cost
# Ground Shipping
def ground_shipping(weight):
cost = basic_shipping(weight)
return cost + GS_FLAT
print("Ground Shipping:", ground_shipping(weight))
# Ground Shipping Premium
print("Ground Shipping Premium:", GSP_FLAT)
# Drone Shipping
def drone_shipping(weight):
cost = basic_shipping(weight)
return cost * 3
print("Drone Shipping:", drone_shipping(weight))
|
"""
Product of Array Except Self
Given an integer array nums, return an array answer such that answer[i] is equal to the product of
all the elements of nums except nums[i].
The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer.
You must write an algorithm that runs in O(n) time and without using the division operation.
Example 1:
Input: nums = [1,2,3,4]
Output: [24,12,8,6]
Example 2:
Input: nums = [-1,1,0,-3,3]
Output: [0,0,9,0,0]
Constraints:
2 <= nums.length <= 105
-30 <= nums[i] <= 30
The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer.
Follow up: Can you solve the problem in O(1) extra space complexity? (The output array does not count as extra space for space complexity analysis.)
"""
class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
leftProduct = [1]
for i in range(len(nums)-1):
leftProduct.append(leftProduct[-1]*nums[i])
revRightProduct = [1]
for i in range(len(nums)-1, 0, -1):
revRightProduct.append(revRightProduct[-1]*nums[i])
rightProduct = list(reversed(revRightProduct))
ans = []
for i in range(len(rightProduct)):
ans.append(rightProduct[i]*leftProduct[i])
return ans
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Вариант2
# В списке, состоящем из вещественных элементов, вычислить:
# 1) сумму положительных элементов списка;
# 2) произведение элементов списка, расположенных между максимальным по модулю и
# минимальным по модулю элементами.
# Упорядочить элементы списка по убыванию
if __name__ == '__main__':
A = tuple(map(float, input().split()))
D = list(A)
sum = 0
# Задание №1
for i in A:
if i > 0:
sum += i
print(sum)
# Задание №2
B = []
n_min = n_max = A[0]
i_min = i_max = 0
b = [abs(i) for i in A]
for i, item in enumerate(b):
if item < n_min:
i_min, n_min = i, item
if item >= n_max:
i_max, n_max = i, item
С = A[i_min:i_max+1]
sum = 1
for j in С:
sum *= j
print(sum)
D.sort(reverse=True)
print(f"{A} ") |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: 2017, Dag Wieers (@dagwieers) <[email protected]>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = r'''
---
module: win_defrag
version_added: '2.4'
short_description: Consolidate fragmented files on local volumes
description:
- Locates and consolidates fragmented files on local volumes to improve system performance.
- 'More information regarding C(win_defrag) is available from: U(https://technet.microsoft.com/en-us/library/cc731650(v=ws.11).aspx)'
requirements:
- defrag.exe
options:
include_volumes:
description:
- A list of drive letters or mount point paths of the volumes to be defragmented.
- If this parameter is omitted, all volumes (not excluded) will be fragmented.
type: list
exclude_volumes:
description:
- A list of drive letters or mount point paths to exclude from defragmentation.
type: list
freespace_consolidation:
description:
- Perform free space consolidation on the specified volumes.
type: bool
default: no
priority:
description:
- Run the operation at low or normal priority.
type: str
choices: [ low, normal ]
default: low
parallel:
description:
- Run the operation on each volume in parallel in the background.
type: bool
default: no
author:
- Dag Wieers (@dagwieers)
'''
EXAMPLES = r'''
- name: Defragment all local volumes (in parallel)
win_defrag:
parallel: yes
- name: 'Defragment all local volumes, except C: and D:'
win_defrag:
exclude_volumes: [ C, D ]
- name: 'Defragment volume D: with normal priority'
win_defrag:
include_volumes: D
priority: normal
- name: Consolidate free space (useful when reducing volumes)
win_defrag:
freespace_consolidation: yes
'''
RETURN = r'''
cmd:
description: The complete command line used by the module.
returned: always
type: str
sample: defrag.exe /C /V
rc:
description: The return code for the command.
returned: always
type: int
sample: 0
stdout:
description: The standard output from the command.
returned: always
type: str
sample: Success.
stderr:
description: The error output from the command.
returned: always
type: str
sample:
msg:
description: Possible error message on failure.
returned: failed
type: str
sample: Command 'defrag.exe' not found in $env:PATH.
changed:
description: Whether or not any changes were made.
returned: always
type: bool
sample: true
'''
|
def open_dev( ):
''' Opens the red light LEDR device
:return: 1 on success, else 0
'''
def set(data):
''' Sets the red light LEDR device
:param data: the integer data to write to LEDR. If data = 0 all lights will be
turned off. If data = 0b1111111111 all lights will be turned on
:return: none
'''
def close( ):
''' Closes the red light LEDR device
:return: none
'''
|
del_items(0x801234F4)
SetType(0x801234F4, "void GameOnlyTestRoutine__Fv()")
del_items(0x801234FC)
SetType(0x801234FC, "int vecleny__Fii(int a, int b)")
del_items(0x80123520)
SetType(0x80123520, "int veclenx__Fii(int a, int b)")
del_items(0x8012354C)
SetType(0x8012354C, "void GetDamageAmt__FiPiT1(int i, int *mind, int *maxd)")
del_items(0x80123B44)
SetType(0x80123B44, "int CheckBlock__Fiiii(int fx, int fy, int tx, int ty)")
del_items(0x80123C2C)
SetType(0x80123C2C, "int FindClosest__Fiii(int sx, int sy, int rad)")
del_items(0x80123DC8)
SetType(0x80123DC8, "int GetSpellLevel__Fii(int id, int sn)")
del_items(0x80123E3C)
SetType(0x80123E3C, "int GetDirection8__Fiiii(int x1, int y1, int x2, int y2)")
del_items(0x80124058)
SetType(0x80124058, "void DeleteMissile__Fii(int mi, int i)")
del_items(0x801240B0)
SetType(0x801240B0, "void GetMissileVel__Fiiiiii(int i, int sx, int sy, int dx, int dy, int v)")
del_items(0x8012420C)
SetType(0x8012420C, "void PutMissile__Fi(int i)")
del_items(0x80124310)
SetType(0x80124310, "void GetMissilePos__Fi(int i)")
del_items(0x80124438)
SetType(0x80124438, "void MoveMissilePos__Fi(int i)")
del_items(0x801245A0)
SetType(0x801245A0, "unsigned char MonsterTrapHit__FiiiiiUc(int m, int mindam, int maxdam, int dist, int t, int shift)")
del_items(0x80124914)
SetType(0x80124914, "unsigned char MonsterMHit__FiiiiiiUc(int pnum, int m, int mindam, int maxdam, int dist, int t, int shift)")
del_items(0x80125074)
SetType(0x80125074, "unsigned char PlayerMHit__FiiiiiiUcUc(int pnum, int m, int dist, int mind, int maxd, int mtype, int shift, int earflag)")
del_items(0x80125AE0)
SetType(0x80125AE0, "unsigned char Plr2PlrMHit__FiiiiiiUc(int pnum, int p, int mindam, int maxdam, int dist, int mtype, int shift)")
del_items(0x801262BC)
SetType(0x801262BC, "void CheckMissileCol__FiiiUciiUc(int i, int mindam, int maxdam, unsigned char shift, int mx, int my, int nodel)")
del_items(0x801269FC)
SetType(0x801269FC, "unsigned char GetTableValue__FUci(unsigned char code, int dir)")
del_items(0x80126A90)
SetType(0x80126A90, "void SetMissAnim__Fii(int mi, int animtype)")
del_items(0x80126B60)
SetType(0x80126B60, "void SetMissDir__Fii(int mi, int dir)")
del_items(0x80126BA4)
SetType(0x80126BA4, "void AddLArrow__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80126D84)
SetType(0x80126D84, "void AddArrow__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80126F40)
SetType(0x80126F40, "void GetVileMissPos__Fiii(int mi, int dx, int dy)")
del_items(0x80127064)
SetType(0x80127064, "void AddRndTeleport__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x801273D4)
SetType(0x801273D4, "void AddFirebolt__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int micaster, int id, int dam)")
del_items(0x80127640)
SetType(0x80127640, "void AddMagmaball__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80127754)
SetType(0x80127754, "void AddTeleport__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012794C)
SetType(0x8012794C, "void AddLightball__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80127AA0)
SetType(0x80127AA0, "void AddFirewall__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80127C88)
SetType(0x80127C88, "void AddFireball__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80127EE4)
SetType(0x80127EE4, "void AddLightctrl__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80127FCC)
SetType(0x80127FCC, "void AddLightning__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80128194)
SetType(0x80128194, "void AddMisexp__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x801283A0)
SetType(0x801283A0, "unsigned char CheckIfTrig__Fii(int x, int y)")
del_items(0x80128484)
SetType(0x80128484, "void AddTown__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x801288A8)
SetType(0x801288A8, "void AddFlash__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80128AB8)
SetType(0x80128AB8, "void AddFlash2__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80128CAC)
SetType(0x80128CAC, "void AddManashield__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80128D74)
SetType(0x80128D74, "void AddFiremove__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80128ED0)
SetType(0x80128ED0, "void AddGuardian__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012933C)
SetType(0x8012933C, "void AddChain__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129398)
SetType(0x80129398, "void AddRhino__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129554)
SetType(0x80129554, "void AddFlare__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012984C)
SetType(0x8012984C, "void AddAcid__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129950)
SetType(0x80129950, "void AddAcidpud__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129A28)
SetType(0x80129A28, "void AddStone__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129D20)
SetType(0x80129D20, "void AddGolem__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129ED8)
SetType(0x80129ED8, "void AddBoom__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x80129F6C)
SetType(0x80129F6C, "void AddHeal__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A194)
SetType(0x8012A194, "void AddHealOther__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A1FC)
SetType(0x8012A1FC, "void AddElement__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A428)
SetType(0x8012A428, "void AddIdentify__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A4D8)
SetType(0x8012A4D8, "void AddFirewallC__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A788)
SetType(0x8012A788, "void AddInfra__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A884)
SetType(0x8012A884, "void AddWave__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012A908)
SetType(0x8012A908, "void AddNova__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012AB20)
SetType(0x8012AB20, "void AddRepair__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012ABD0)
SetType(0x8012ABD0, "void AddRecharge__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012AC80)
SetType(0x8012AC80, "void AddDisarm__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012ACE8)
SetType(0x8012ACE8, "void AddApoca__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012AF24)
SetType(0x8012AF24, "void AddFlame__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int seqno)")
del_items(0x8012B140)
SetType(0x8012B140, "void AddFlamec__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B230)
SetType(0x8012B230, "void AddCbolt__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int micaster, int id, int dam)")
del_items(0x8012B424)
SetType(0x8012B424, "void AddHbolt__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int micaster, int id, int dam)")
del_items(0x8012B5E4)
SetType(0x8012B5E4, "void AddResurrect__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B658)
SetType(0x8012B658, "void AddResurrectBeam__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B6E0)
SetType(0x8012B6E0, "void AddTelekinesis__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B748)
SetType(0x8012B748, "void AddBoneSpirit__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B944)
SetType(0x8012B944, "void AddRportal__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012B9E4)
SetType(0x8012B9E4, "void AddDiabApoca__Fiiiiiicii(int mi, int sx, int sy, int dx, int dy, int midir, int mienemy, int id, int dam)")
del_items(0x8012BB20)
SetType(0x8012BB20, "int AddMissile__Fiiiiiiciii(int sx, int sy, int v1, int v2, int midir, int mitype, int micaster, int id, int v3, int spllvl)")
del_items(0x8012BE6C)
SetType(0x8012BE6C, "int Sentfire__Fiii(int i, int sx, int sy)")
del_items(0x8012C050)
SetType(0x8012C050, "void MI_Dummy__Fi(int i)")
del_items(0x8012C058)
SetType(0x8012C058, "void MI_Golem__Fi(int i)")
del_items(0x8012C2B4)
SetType(0x8012C2B4, "void MI_SetManashield__Fi(int i)")
del_items(0x8012C2F0)
SetType(0x8012C2F0, "void MI_LArrow__Fi(int i)")
del_items(0x8012CAAC)
SetType(0x8012CAAC, "void MI_Arrow__Fi(int i)")
del_items(0x8012CCC8)
SetType(0x8012CCC8, "void MI_Firebolt__Fi(int i)")
del_items(0x8012D394)
SetType(0x8012D394, "void MI_Lightball__Fi(int i)")
del_items(0x8012D61C)
SetType(0x8012D61C, "void MI_Acidpud__Fi(int i)")
del_items(0x8012D72C)
SetType(0x8012D72C, "void MI_Firewall__Fi(int i)")
del_items(0x8012D9F0)
SetType(0x8012D9F0, "void MI_Fireball__Fi(int i)")
del_items(0x8012E3B4)
SetType(0x8012E3B4, "void MI_Lightctrl__Fi(int i)")
del_items(0x8012E920)
SetType(0x8012E920, "void MI_Lightning__Fi(int i)")
del_items(0x8012EA9C)
SetType(0x8012EA9C, "void MI_Town__Fi(int i)")
del_items(0x8012ED40)
SetType(0x8012ED40, "void MI_Flash__Fi(int i)")
del_items(0x8012F178)
SetType(0x8012F178, "void MI_Flash2__Fi(int i)")
del_items(0x8012F3C0)
SetType(0x8012F3C0, "void MI_Manashield__Fi(int i)")
del_items(0x8012F9C8)
SetType(0x8012F9C8, "void MI_Firemove__Fi(int i)")
del_items(0x8012FE04)
SetType(0x8012FE04, "void MI_Guardian__Fi(int i)")
del_items(0x801301D0)
SetType(0x801301D0, "void MI_Chain__Fi(int i)")
del_items(0x801304CC)
SetType(0x801304CC, "void MI_Misexp__Fi(int i)")
del_items(0x801307CC)
SetType(0x801307CC, "void MI_Acidsplat__Fi(int i)")
del_items(0x80130968)
SetType(0x80130968, "void MI_Teleport__Fi(int i)")
del_items(0x80130D30)
SetType(0x80130D30, "void MI_Stone__Fi(int i)")
del_items(0x80130EDC)
SetType(0x80130EDC, "void MI_Boom__Fi(int i)")
del_items(0x80130FD4)
SetType(0x80130FD4, "void MI_Rhino__Fi(int i)")
del_items(0x80131380)
SetType(0x80131380, "void MI_FirewallC__Fi(int i)")
del_items(0x801316E8)
SetType(0x801316E8, "void MI_Infra__Fi(int i)")
del_items(0x801317A0)
SetType(0x801317A0, "void MI_Apoca__Fi(int i)")
del_items(0x80131A34)
SetType(0x80131A34, "void MI_Wave__Fi(int i)")
del_items(0x80131F30)
SetType(0x80131F30, "void MI_Nova__Fi(int i)")
del_items(0x801321F0)
SetType(0x801321F0, "void MI_Flame__Fi(int i)")
del_items(0x801323E8)
SetType(0x801323E8, "void MI_Flamec__Fi(int i)")
del_items(0x80132670)
SetType(0x80132670, "void MI_Cbolt__Fi(int i)")
del_items(0x80132974)
SetType(0x80132974, "void MI_Hbolt__Fi(int i)")
del_items(0x80132C80)
SetType(0x80132C80, "void MI_Element__Fi(int i)")
del_items(0x80133338)
SetType(0x80133338, "void MI_Bonespirit__Fi(int i)")
del_items(0x80133740)
SetType(0x80133740, "void MI_ResurrectBeam__Fi(int i)")
del_items(0x801337B0)
SetType(0x801337B0, "void MI_Rportal__Fi(int i)")
del_items(0x801339D4)
SetType(0x801339D4, "void ProcessMissiles__Fv()")
del_items(0x80133DC8)
SetType(0x80133DC8, "void ClearMissileSpot__Fi(int mi)")
del_items(0x80133E80)
SetType(0x80133E80, "void MoveToScrollTarget__7CBlocks(struct CBlocks *this)")
del_items(0x80133E94)
SetType(0x80133E94, "void MonstPartJump__Fi(int m)")
del_items(0x80134028)
SetType(0x80134028, "void DeleteMonster__Fi(int i)")
del_items(0x80134060)
SetType(0x80134060, "int M_GetDir__Fi(int i)")
del_items(0x801340BC)
SetType(0x801340BC, "void M_StartDelay__Fii(int i, int len)")
del_items(0x80134104)
SetType(0x80134104, "void M_StartRAttack__Fiii(int i, int missile_type, int dam)")
del_items(0x8013421C)
SetType(0x8013421C, "void M_StartRSpAttack__Fiii(int i, int missile_type, int dam)")
del_items(0x80134340)
SetType(0x80134340, "void M_StartSpAttack__Fi(int i)")
del_items(0x80134428)
SetType(0x80134428, "void M_StartEat__Fi(int i)")
del_items(0x801344F8)
SetType(0x801344F8, "void M_GetKnockback__Fi(int i)")
del_items(0x801346D0)
SetType(0x801346D0, "void M_StartHit__Fiii(int i, int pnum, int dam)")
del_items(0x801349C8)
SetType(0x801349C8, "void M_DiabloDeath__FiUc(int i, unsigned char sendmsg)")
del_items(0x80134CEC)
SetType(0x80134CEC, "void M2MStartHit__Fiii(int mid, int i, int dam)")
del_items(0x80134F98)
SetType(0x80134F98, "void MonstStartKill__FiiUc(int i, int pnum, unsigned char sendmsg)")
del_items(0x8013526C)
SetType(0x8013526C, "void M2MStartKill__Fii(int i, int mid)")
del_items(0x80135634)
SetType(0x80135634, "void M_StartKill__Fii(int i, int pnum)")
del_items(0x80135724)
SetType(0x80135724, "void M_StartFadein__FiiUc(int i, int md, unsigned char backwards)")
del_items(0x80135878)
SetType(0x80135878, "void M_StartFadeout__FiiUc(int i, int md, unsigned char backwards)")
del_items(0x801359C0)
SetType(0x801359C0, "void M_StartHeal__Fi(int i)")
del_items(0x80135A40)
SetType(0x80135A40, "void M_ChangeLightOffset__Fi(int monst)")
del_items(0x80135AE0)
SetType(0x80135AE0, "int M_DoStand__Fi(int i)")
del_items(0x80135B48)
SetType(0x80135B48, "int M_DoWalk__Fi(int i)")
del_items(0x80135DCC)
SetType(0x80135DCC, "int M_DoWalk2__Fi(int i)")
del_items(0x80135FB8)
SetType(0x80135FB8, "int M_DoWalk3__Fi(int i)")
del_items(0x8013627C)
SetType(0x8013627C, "void M_TryM2MHit__Fiiiii(int i, int mid, int hper, int mind, int maxd)")
del_items(0x80136444)
SetType(0x80136444, "void M_TryH2HHit__Fiiiii(int i, int pnum, int Hit, int MinDam, int MaxDam)")
del_items(0x80136A60)
SetType(0x80136A60, "int M_DoAttack__Fi(int i)")
del_items(0x80136C04)
SetType(0x80136C04, "int M_DoRAttack__Fi(int i)")
del_items(0x80136D7C)
SetType(0x80136D7C, "int M_DoRSpAttack__Fi(int i)")
del_items(0x80136F6C)
SetType(0x80136F6C, "int M_DoSAttack__Fi(int i)")
del_items(0x80137040)
SetType(0x80137040, "int M_DoFadein__Fi(int i)")
del_items(0x80137110)
SetType(0x80137110, "int M_DoFadeout__Fi(int i)")
del_items(0x80137224)
SetType(0x80137224, "int M_DoHeal__Fi(int i)")
del_items(0x801372D0)
SetType(0x801372D0, "int M_DoTalk__Fi(int i)")
del_items(0x8013773C)
SetType(0x8013773C, "void M_Teleport__Fi(int i)")
del_items(0x80137970)
SetType(0x80137970, "int M_DoGotHit__Fi(int i)")
del_items(0x801379D0)
SetType(0x801379D0, "void DoEnding__Fv()")
del_items(0x80137A8C)
SetType(0x80137A8C, "void PrepDoEnding__Fv()")
del_items(0x80137BB0)
SetType(0x80137BB0, "int M_DoDeath__Fi(int i)")
del_items(0x80137D80)
SetType(0x80137D80, "int M_DoSpStand__Fi(int i)")
del_items(0x80137E24)
SetType(0x80137E24, "int M_DoDelay__Fi(int i)")
del_items(0x80137F14)
SetType(0x80137F14, "int M_DoStone__Fi(int i)")
del_items(0x80137F98)
SetType(0x80137F98, "void M_WalkDir__Fii(int i, int md)")
del_items(0x801381C0)
SetType(0x801381C0, "void GroupUnity__Fi(int i)")
del_items(0x801385AC)
SetType(0x801385AC, "unsigned char M_CallWalk__Fii(int i, int md)")
del_items(0x80138798)
SetType(0x80138798, "unsigned char M_PathWalk__Fi(int i, char plr2monst[9], unsigned char (*Check)())")
del_items(0x8013885C)
SetType(0x8013885C, "unsigned char M_CallWalk2__Fii(int i, int md)")
del_items(0x80138970)
SetType(0x80138970, "unsigned char M_DumbWalk__Fii(int i, int md)")
del_items(0x801389C4)
SetType(0x801389C4, "unsigned char M_RoundWalk__FiiRi(int i, int md, int *dir)")
del_items(0x80138B64)
SetType(0x80138B64, "void MAI_Zombie__Fi(int i)")
del_items(0x80138D5C)
SetType(0x80138D5C, "void MAI_SkelSd__Fi(int i)")
del_items(0x80138EF4)
SetType(0x80138EF4, "void MAI_Snake__Fi(int i)")
del_items(0x801392D8)
SetType(0x801392D8, "void MAI_Bat__Fi(int i)")
del_items(0x80139690)
SetType(0x80139690, "void MAI_SkelBow__Fi(int i)")
del_items(0x80139874)
SetType(0x80139874, "void MAI_Fat__Fi(int i)")
del_items(0x80139A24)
SetType(0x80139A24, "void MAI_Sneak__Fi(int i)")
del_items(0x80139E10)
SetType(0x80139E10, "void MAI_Fireman__Fi(int i)")
del_items(0x8013A108)
SetType(0x8013A108, "void MAI_Fallen__Fi(int i)")
del_items(0x8013A424)
SetType(0x8013A424, "void MAI_Cleaver__Fi(int i)")
del_items(0x8013A50C)
SetType(0x8013A50C, "void MAI_Round__FiUc(int i, unsigned char special)")
del_items(0x8013A978)
SetType(0x8013A978, "void MAI_GoatMc__Fi(int i)")
del_items(0x8013A998)
SetType(0x8013A998, "void MAI_Ranged__FiiUc(int i, int missile_type, unsigned char special)")
del_items(0x8013ABB8)
SetType(0x8013ABB8, "void MAI_GoatBow__Fi(int i)")
del_items(0x8013ABDC)
SetType(0x8013ABDC, "void MAI_Succ__Fi(int i)")
del_items(0x8013AC00)
SetType(0x8013AC00, "void MAI_AcidUniq__Fi(int i)")
del_items(0x8013AC24)
SetType(0x8013AC24, "void MAI_Scav__Fi(int i)")
del_items(0x8013B03C)
SetType(0x8013B03C, "void MAI_Garg__Fi(int i)")
del_items(0x8013B21C)
SetType(0x8013B21C, "void MAI_RoundRanged__FiiUciUc(int i, int missile_type, unsigned char checkdoors, int dam, int lessmissiles)")
del_items(0x8013B730)
SetType(0x8013B730, "void MAI_Magma__Fi(int i)")
del_items(0x8013B75C)
SetType(0x8013B75C, "void MAI_Storm__Fi(int i)")
del_items(0x8013B788)
SetType(0x8013B788, "void MAI_Acid__Fi(int i)")
del_items(0x8013B7B8)
SetType(0x8013B7B8, "void MAI_Diablo__Fi(int i)")
del_items(0x8013B7E4)
SetType(0x8013B7E4, "void MAI_RR2__Fiii(int i, int mistype, int dam)")
del_items(0x8013BCE4)
SetType(0x8013BCE4, "void MAI_Mega__Fi(int i)")
del_items(0x8013BD08)
SetType(0x8013BD08, "void MAI_SkelKing__Fi(int i)")
del_items(0x8013C244)
SetType(0x8013C244, "void MAI_Rhino__Fi(int i)")
del_items(0x8013C6EC)
SetType(0x8013C6EC, "void MAI_Counselor__Fi(int i, unsigned char counsmiss[4], int _mx, int _my)")
del_items(0x8013CBB8)
SetType(0x8013CBB8, "void MAI_Garbud__Fi(int i)")
del_items(0x8013CD68)
SetType(0x8013CD68, "void MAI_Zhar__Fi(int i)")
del_items(0x8013CF60)
SetType(0x8013CF60, "void MAI_SnotSpil__Fi(int i)")
del_items(0x8013D194)
SetType(0x8013D194, "void MAI_Lazurus__Fi(int i)")
del_items(0x8013D40C)
SetType(0x8013D40C, "void MAI_Lazhelp__Fi(int i)")
del_items(0x8013D52C)
SetType(0x8013D52C, "void MAI_Lachdanan__Fi(int i)")
del_items(0x8013D6BC)
SetType(0x8013D6BC, "void MAI_Warlord__Fi(int i)")
del_items(0x8013D808)
SetType(0x8013D808, "void DeleteMonsterList__Fv()")
del_items(0x8013D924)
SetType(0x8013D924, "void ProcessMonsters__Fv()")
del_items(0x8013DF00)
SetType(0x8013DF00, "unsigned char DirOK__Fii(int i, int mdir)")
del_items(0x8013E2E8)
SetType(0x8013E2E8, "unsigned char PosOkMissile__Fii(int x, int y)")
del_items(0x8013E350)
SetType(0x8013E350, "unsigned char CheckNoSolid__Fii(int x, int y)")
del_items(0x8013E394)
SetType(0x8013E394, "unsigned char LineClearF__FPFii_Uciiii(unsigned char (*Clear)(), int x1, int y1, int x2, int y2)")
del_items(0x8013E61C)
SetType(0x8013E61C, "unsigned char LineClear__Fiiii(int x1, int y1, int x2, int y2)")
del_items(0x8013E65C)
SetType(0x8013E65C, "unsigned char LineClearF1__FPFiii_Uciiiii(unsigned char (*Clear)(), int monst, int x1, int y1, int x2, int y2)")
del_items(0x8013E8F0)
SetType(0x8013E8F0, "void M_FallenFear__Fii(int x, int y)")
del_items(0x8013EAC0)
SetType(0x8013EAC0, "void PrintMonstHistory__Fi(int mt)")
del_items(0x8013ECE8)
SetType(0x8013ECE8, "void PrintUniqueHistory__Fv()")
del_items(0x8013EE0C)
SetType(0x8013EE0C, "void MissToMonst__Fiii(int i, int x, int y)")
del_items(0x8013F288)
SetType(0x8013F288, "unsigned char PosOkMonst2__Fiii(int i, int x, int y)")
del_items(0x8013F4A4)
SetType(0x8013F4A4, "unsigned char PosOkMonst3__Fiii(int i, int x, int y)")
del_items(0x8013F798)
SetType(0x8013F798, "int M_SpawnSkel__Fiii(int x, int y, int dir)")
del_items(0x8013F8F0)
SetType(0x8013F8F0, "void TalktoMonster__Fi(int i)")
del_items(0x8013FA10)
SetType(0x8013FA10, "void SpawnGolum__Fiiii(int i, int x, int y, int mi)")
del_items(0x8013FC68)
SetType(0x8013FC68, "unsigned char CanTalkToMonst__Fi(int m)")
del_items(0x8013FCA0)
SetType(0x8013FCA0, "unsigned char CheckMonsterHit__FiRUc(int m, unsigned char *ret)")
del_items(0x8013FD6C)
SetType(0x8013FD6C, "void MAI_Golum__Fi(int i)")
del_items(0x801400E0)
SetType(0x801400E0, "unsigned char MAI_Path__Fi(int i)")
del_items(0x80140244)
SetType(0x80140244, "void M_StartAttack__Fi(int i)")
del_items(0x8014032C)
SetType(0x8014032C, "void M_StartWalk__Fiiiiii(int i, int xvel, int yvel, int xadd, int yadd, int EndDir)")
del_items(0x8014048C)
SetType(0x8014048C, "void AddWarpMissile__Fiii(int i, int x, int y)")
del_items(0x80140594)
SetType(0x80140594, "void SyncPortals__Fv()")
del_items(0x8014069C)
SetType(0x8014069C, "void AddInTownPortal__Fi(int i)")
del_items(0x801406D8)
SetType(0x801406D8, "void ActivatePortal__FiiiiiUc(int i, int x, int y, int lvl, int lvltype, int sp)")
del_items(0x80140748)
SetType(0x80140748, "void DeactivatePortal__Fi(int i)")
del_items(0x80140768)
SetType(0x80140768, "unsigned char PortalOnLevel__Fi(int i)")
del_items(0x801407A0)
SetType(0x801407A0, "void RemovePortalMissile__Fi(int id)")
del_items(0x8014093C)
SetType(0x8014093C, "void SetCurrentPortal__Fi(int p)")
del_items(0x80140948)
SetType(0x80140948, "void GetPortalLevel__Fv()")
del_items(0x80140B14)
SetType(0x80140B14, "void GetPortalLvlPos__Fv()")
del_items(0x80140BC8)
SetType(0x80140BC8, "void FreeInvGFX__Fv()")
del_items(0x80140BD0)
SetType(0x80140BD0, "void InvDrawSlot__Fiii(int X, int Y, int Frame)")
del_items(0x80140C54)
SetType(0x80140C54, "void InvDrawSlotBack__FiiiiUc(int X, int Y, int W, int H, int Flag)")
del_items(0x80140EA8)
SetType(0x80140EA8, "void InvDrawItem__FiiiUci(int ItemX, int ItemY, int ItemNo, unsigned char StatFlag, int TransFlag)")
del_items(0x80140F78)
SetType(0x80140F78, "void InvDrawSlots__Fv()")
del_items(0x8014128C)
SetType(0x8014128C, "void PrintStat__FiiPcUc(int Y, int Txt0, char *Txt1, unsigned char Col)")
del_items(0x80141358)
SetType(0x80141358, "void DrawInvStats__Fv()")
del_items(0x80141EE4)
SetType(0x80141EE4, "void DrawInvBack__Fv()")
del_items(0x80141F6C)
SetType(0x80141F6C, "void DrawInvCursor__Fv()")
del_items(0x80142448)
SetType(0x80142448, "void DrawInvMsg__Fv()")
del_items(0x80142610)
SetType(0x80142610, "void DrawInv__Fv()")
del_items(0x80142640)
SetType(0x80142640, "void DrawInvTSK__FP4TASK(struct TASK *T)")
del_items(0x80142920)
SetType(0x80142920, "void DoThatDrawInv__Fv()")
del_items(0x80143174)
SetType(0x80143174, "unsigned char AutoPlace__FiiiiUc(int pnum, int ii, int sx, int sy, int saveflag)")
del_items(0x80143490)
SetType(0x80143490, "unsigned char SpecialAutoPlace__FiiiiUc(int pnum, int ii, int sx, int sy, int saveflag)")
del_items(0x80143828)
SetType(0x80143828, "unsigned char GoldAutoPlace__Fi(int pnum)")
del_items(0x80143CF4)
SetType(0x80143CF4, "unsigned char WeaponAutoPlace__Fi(int pnum)")
del_items(0x80143F7C)
SetType(0x80143F7C, "int SwapItem__FP10ItemStructT0(struct ItemStruct *a, struct ItemStruct *b)")
del_items(0x8014406C)
SetType(0x8014406C, "void CheckInvPaste__Fiii(int pnum, int mx, int my)")
del_items(0x80145CF8)
SetType(0x80145CF8, "void CheckInvCut__Fiii(int pnum, int mx, int my)")
del_items(0x80146784)
SetType(0x80146784, "void RemoveInvItem__Fii(int pnum, int iv)")
del_items(0x80146A28)
SetType(0x80146A28, "void RemoveSpdBarItem__Fii(int pnum, int iv)")
del_items(0x80146B28)
SetType(0x80146B28, "void CheckInvScrn__Fv()")
del_items(0x80146BA0)
SetType(0x80146BA0, "void CheckItemStats__Fi(int pnum)")
del_items(0x80146C24)
SetType(0x80146C24, "void CheckBookLevel__Fi(int pnum)")
del_items(0x80146D58)
SetType(0x80146D58, "void CheckQuestItem__Fi(int pnum)")
del_items(0x80147180)
SetType(0x80147180, "void InvGetItem__Fii(int pnum, int ii)")
del_items(0x80147478)
SetType(0x80147478, "void AutoGetItem__Fii(int pnum, int ii)")
del_items(0x80147EDC)
SetType(0x80147EDC, "int FindGetItem__FiUsi(int idx, unsigned short ci, int iseed)")
del_items(0x80147F90)
SetType(0x80147F90, "void SyncGetItem__FiiiUsi(int x, int y, int idx, unsigned short ci, int iseed)")
del_items(0x8014811C)
SetType(0x8014811C, "unsigned char TryInvPut__Fv()")
del_items(0x801482E4)
SetType(0x801482E4, "int InvPutItem__Fiii(int pnum, int x, int y)")
del_items(0x80148788)
SetType(0x80148788, "int SyncPutItem__FiiiiUsiUciiiiiUl(int pnum, int x, int y, int idx, int icreateinfo, int iseed, int Id, int dur, int mdur, int ch, int mch, int ivalue, unsigned long ibuff)")
del_items(0x80148CE4)
SetType(0x80148CE4, "char CheckInvHLight__Fv()")
del_items(0x80148FF8)
SetType(0x80148FF8, "void RemoveScroll__Fi(int pnum)")
del_items(0x801491DC)
SetType(0x801491DC, "unsigned char UseScroll__Fv()")
del_items(0x80149444)
SetType(0x80149444, "void UseStaffCharge__FP12PlayerStruct(struct PlayerStruct *ptrplr)")
del_items(0x801494AC)
SetType(0x801494AC, "unsigned char UseStaff__Fv()")
del_items(0x8014956C)
SetType(0x8014956C, "void StartGoldDrop__Fv()")
del_items(0x80149670)
SetType(0x80149670, "unsigned char UseInvItem__Fii(int pnum, int cii)")
del_items(0x80149B98)
SetType(0x80149B98, "void DoTelekinesis__Fv()")
del_items(0x80149CC0)
SetType(0x80149CC0, "long CalculateGold__Fi(int pnum)")
del_items(0x80149DF8)
SetType(0x80149DF8, "unsigned char DropItemBeforeTrig__Fv()")
del_items(0x80149E50)
SetType(0x80149E50, "void ControlInv__Fv()")
del_items(0x8014A1D8)
SetType(0x8014A1D8, "void InvGetItemWH__Fi(int Pos)")
del_items(0x8014A2D0)
SetType(0x8014A2D0, "void InvAlignObject__Fv()")
del_items(0x8014A484)
SetType(0x8014A484, "void InvSetItemCurs__Fv()")
del_items(0x8014A618)
SetType(0x8014A618, "void InvMoveCursLeft__Fv()")
del_items(0x8014A7F4)
SetType(0x8014A7F4, "void InvMoveCursRight__Fv()")
del_items(0x8014AB0C)
SetType(0x8014AB0C, "void InvMoveCursUp__Fv()")
del_items(0x8014ACF4)
SetType(0x8014ACF4, "void InvMoveCursDown__Fv()")
del_items(0x8014B00C)
SetType(0x8014B00C, "void DumpMonsters__7CBlocks(struct CBlocks *this)")
del_items(0x8014B034)
SetType(0x8014B034, "void Flush__4CPad(struct CPad *this)")
del_items(0x8014B058)
SetType(0x8014B058, "void SetRGB__6DialogUcUcUc(struct Dialog *this, unsigned char R, unsigned char G, unsigned char B)")
del_items(0x8014B078)
SetType(0x8014B078, "void SetBack__6Dialogi(struct Dialog *this, int Type)")
del_items(0x8014B080)
SetType(0x8014B080, "void SetBorder__6Dialogi(struct Dialog *this, int Type)")
del_items(0x8014B088)
SetType(0x8014B088, "int SetOTpos__6Dialogi(struct Dialog *this, int OT)")
del_items(0x8014B094)
SetType(0x8014B094, "void ___6Dialog(struct Dialog *this, int __in_chrg)")
del_items(0x8014B0BC)
SetType(0x8014B0BC, "struct Dialog *__6Dialog(struct Dialog *this)")
del_items(0x8014B118)
SetType(0x8014B118, "void StartAutomap__Fv()")
del_items(0x8014B130)
SetType(0x8014B130, "void AutomapUp__Fv()")
del_items(0x8014B148)
SetType(0x8014B148, "void AutomapDown__Fv()")
del_items(0x8014B160)
SetType(0x8014B160, "void AutomapLeft__Fv()")
del_items(0x8014B178)
SetType(0x8014B178, "void AutomapRight__Fv()")
del_items(0x8014B190)
SetType(0x8014B190, "struct LINE_F2 *AMGetLine__FUcUcUc(unsigned char R, unsigned char G, unsigned char B)")
del_items(0x8014B23C)
SetType(0x8014B23C, "void AmDrawLine__Fiiii(int x0, int y0, int x1, int y1)")
del_items(0x8014B2A4)
SetType(0x8014B2A4, "void DrawAutomapPlr__Fv()")
del_items(0x8014B61C)
SetType(0x8014B61C, "void DrawAutoMapVertWall__Fiii(int X, int Y, int Length)")
del_items(0x8014B6C4)
SetType(0x8014B6C4, "void DrawAutoMapHorzWall__Fiii(int X, int Y, int Length)")
del_items(0x8014B76C)
SetType(0x8014B76C, "void DrawAutoMapVertDoor__Fii(int X, int Y)")
del_items(0x8014B8E4)
SetType(0x8014B8E4, "void DrawAutoMapHorzDoor__Fii(int X, int Y)")
del_items(0x8014BA64)
SetType(0x8014BA64, "void DrawAutoMapVertGrate__Fii(int X, int Y)")
del_items(0x8014BAF8)
SetType(0x8014BAF8, "void DrawAutoMapHorzGrate__Fii(int X, int Y)")
del_items(0x8014BB8C)
SetType(0x8014BB8C, "void DrawAutoMapSquare__Fii(int X, int Y)")
del_items(0x8014BCA4)
SetType(0x8014BCA4, "void DrawAutoMapStairs__Fii(int X, int Y)")
del_items(0x8014BE4C)
SetType(0x8014BE4C, "void DrawAutomap__Fv()")
del_items(0x8014C1A8)
SetType(0x8014C1A8, "void PRIM_GetPrim__FPP7LINE_F2(struct LINE_F2 **Prim)")
|
def simple(arry, target):
# simple search
arry = [i for i in range(20)]
for i in arry:
print("%d steps" % i)
if i == target:
print("Found %d" % i)
break
def binary_search(arry, target):
# binary search
l = 0 # left pointer
r = len(arry) - 1 # right pointer
step = 0
while l <= r:
step += 1
mid = l + (r - l) // 2
print("%d steps" % step)
if target == arry[mid]:
print("Found %d" % arry[mid])
break
elif arry[mid] < target:
l = mid + 1
else:
r = mid - 1
if __name__ == '__main__':
arry = [i for i in range(20)]
target = 17
simple(arry, target)
binary_search(arry, target)
|
"""
11866 : 조세퍼스 문제 0
URL : https://www.acmicpc.net/problem/11866
Input :
7 3
Output :
<3, 6, 2, 7, 5, 1, 4>
"""
N, M = map(int, input().split(' '))
i = 0
josephus = []
sequence = [i for i in range(1, N + 1)]
while sequence:
i = (i + M - 1) % len(sequence)
josephus.append(sequence[i])
sequence.remove(sequence[i])
print("<{}>".format(', '.join(str(c) for c in josephus)))
|
FreeMono9pt7bBitmaps = [
0xAA, 0xA8, 0x0C, 0xED, 0x24, 0x92, 0x48, 0x24, 0x48, 0x91, 0x2F, 0xE4,
0x89, 0x7F, 0x28, 0x51, 0x22, 0x40, 0x08, 0x3E, 0x62, 0x40, 0x30, 0x0E,
0x01, 0x81, 0xC3, 0xBE, 0x08, 0x08, 0x71, 0x12, 0x23, 0x80, 0x23, 0xB8,
0x0E, 0x22, 0x44, 0x70, 0x38, 0x81, 0x02, 0x06, 0x1A, 0x65, 0x46, 0xC8,
0xEC, 0xE9, 0x24, 0x5A, 0xAA, 0xA9, 0x40, 0xA9, 0x55, 0x5A, 0x80, 0x10,
0x22, 0x4B, 0xE3, 0x05, 0x11, 0x00, 0x10, 0x20, 0x47, 0xF1, 0x02, 0x04,
0x00, 0x6B, 0x48, 0xFF, 0x00, 0xF0, 0x02, 0x08, 0x10, 0x60, 0x81, 0x04,
0x08, 0x20, 0x41, 0x02, 0x08, 0x00, 0x38, 0x8A, 0x0C, 0x18, 0x30, 0x60,
0xC1, 0x82, 0x88, 0xE0, 0x27, 0x28, 0x42, 0x10, 0x84, 0x21, 0x3E, 0x38,
0x8A, 0x08, 0x10, 0x20, 0x82, 0x08, 0x61, 0x03, 0xF8, 0x7C, 0x06, 0x02,
0x02, 0x1C, 0x06, 0x01, 0x01, 0x01, 0x42, 0x3C, 0x18, 0xA2, 0x92, 0x8A,
0x28, 0xBF, 0x08, 0x21, 0xC0, 0x7C, 0x81, 0x03, 0xE4, 0x40, 0x40, 0x81,
0x03, 0x88, 0xE0, 0x1E, 0x41, 0x04, 0x0B, 0x98, 0xB0, 0xC1, 0xC2, 0x88,
0xE0, 0xFE, 0x04, 0x08, 0x20, 0x40, 0x82, 0x04, 0x08, 0x20, 0x40, 0x38,
0x8A, 0x0C, 0x14, 0x47, 0x11, 0x41, 0x83, 0x8C, 0xE0, 0x38, 0x8A, 0x1C,
0x18, 0x68, 0xCE, 0x81, 0x04, 0x13, 0xC0, 0xF0, 0x0F, 0x6C, 0x00, 0xD2,
0xD2, 0x00, 0x03, 0x04, 0x18, 0x60, 0x60, 0x18, 0x04, 0x03, 0xFF, 0x80,
0x00, 0x1F, 0xF0, 0x40, 0x18, 0x03, 0x00, 0x60, 0x20, 0x60, 0xC0, 0x80,
0x3D, 0x84, 0x08, 0x30, 0xC2, 0x00, 0x00, 0x00, 0x30, 0x3C, 0x46, 0x82,
0x8E, 0xB2, 0xA2, 0xA2, 0x9F, 0x80, 0x80, 0x40, 0x3C, 0x3C, 0x01, 0x40,
0x28, 0x09, 0x01, 0x10, 0x42, 0x0F, 0xC1, 0x04, 0x40, 0x9E, 0x3C, 0xFE,
0x21, 0x90, 0x48, 0x67, 0xE2, 0x09, 0x02, 0x81, 0x41, 0xFF, 0x80, 0x3E,
0xB0, 0xF0, 0x30, 0x08, 0x04, 0x02, 0x00, 0x80, 0x60, 0x8F, 0x80, 0xFE,
0x21, 0x90, 0x68, 0x14, 0x0A, 0x05, 0x02, 0x83, 0x43, 0x7F, 0x00, 0xFF,
0x20, 0x90, 0x08, 0x87, 0xC2, 0x21, 0x00, 0x81, 0x40, 0xFF, 0xC0, 0xFF,
0xA0, 0x50, 0x08, 0x87, 0xC2, 0x21, 0x00, 0x80, 0x40, 0x78, 0x00, 0x1E,
0x98, 0x6C, 0x0A, 0x00, 0x80, 0x20, 0xF8, 0x0B, 0x02, 0x60, 0x87, 0xC0,
0xE3, 0xA0, 0x90, 0x48, 0x27, 0xF2, 0x09, 0x04, 0x82, 0x41, 0x71, 0xC0,
0xF9, 0x08, 0x42, 0x10, 0x84, 0x27, 0xC0, 0x1F, 0x02, 0x02, 0x02, 0x02,
0x02, 0x82, 0x82, 0xC6, 0x78, 0xE3, 0xA1, 0x11, 0x09, 0x05, 0x83, 0x21,
0x08, 0x84, 0x41, 0x70, 0xC0, 0xE0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x41,
0x41, 0x41, 0xFF, 0xE0, 0xEC, 0x19, 0x45, 0x28, 0xA4, 0xA4, 0x94, 0x91,
0x12, 0x02, 0x40, 0x5C, 0x1C, 0xC3, 0xB0, 0x94, 0x4A, 0x24, 0x92, 0x49,
0x14, 0x8A, 0x43, 0x70, 0x80, 0x1E, 0x31, 0x90, 0x50, 0x18, 0x0C, 0x06,
0x02, 0x82, 0x63, 0x0F, 0x00, 0xFE, 0x43, 0x41, 0x41, 0x42, 0x7C, 0x40,
0x40, 0x40, 0xF0, 0x1C, 0x31, 0x90, 0x50, 0x18, 0x0C, 0x06, 0x02, 0x82,
0x63, 0x1F, 0x04, 0x07, 0x92, 0x30, 0xFE, 0x21, 0x90, 0x48, 0x24, 0x23,
0xE1, 0x10, 0x84, 0x41, 0x70, 0xC0, 0x3A, 0xCD, 0x0A, 0x03, 0x01, 0x80,
0xC1, 0xC7, 0x78, 0xFF, 0xC4, 0x62, 0x21, 0x00, 0x80, 0x40, 0x20, 0x10,
0x08, 0x1F, 0x00, 0xE3, 0xA0, 0x90, 0x48, 0x24, 0x12, 0x09, 0x04, 0x82,
0x22, 0x0E, 0x00, 0xF1, 0xE8, 0x10, 0x82, 0x10, 0x42, 0x10, 0x22, 0x04,
0x80, 0x50, 0x0C, 0x00, 0x80, 0xF1, 0xE8, 0x09, 0x11, 0x25, 0x44, 0xA8,
0x55, 0x0C, 0xA1, 0x8C, 0x31, 0x84, 0x30, 0xE3, 0xA0, 0x88, 0x82, 0x80,
0x80, 0xC0, 0x90, 0x44, 0x41, 0x71, 0xC0, 0xE3, 0xA0, 0x88, 0x82, 0x81,
0x40, 0x40, 0x20, 0x10, 0x08, 0x1F, 0x00, 0xFD, 0x0A, 0x20, 0x81, 0x04,
0x10, 0x21, 0x83, 0xFC, 0xEA, 0xAA, 0xAA, 0xC0, 0x80, 0x81, 0x03, 0x02,
0x04, 0x04, 0x08, 0x08, 0x10, 0x10, 0x20, 0x20, 0xD5, 0x55, 0x55, 0xC0,
0x10, 0x51, 0x22, 0x28, 0x20, 0xFF, 0xE0, 0x88, 0x80, 0x7E, 0x00, 0x80,
0x47, 0xEC, 0x14, 0x0A, 0x0C, 0xFB, 0xC0, 0x20, 0x10, 0x0B, 0xC6, 0x12,
0x05, 0x02, 0x81, 0x40, 0xB0, 0xB7, 0x80, 0x3A, 0x8E, 0x0C, 0x08, 0x10,
0x10, 0x9E, 0x03, 0x00, 0x80, 0x47, 0xA4, 0x34, 0x0A, 0x05, 0x02, 0x81,
0x21, 0x8F, 0x60, 0x3C, 0x43, 0x81, 0xFF, 0x80, 0x80, 0x61, 0x3E, 0x3D,
0x04, 0x3E, 0x41, 0x04, 0x10, 0x41, 0x0F, 0x80, 0x3D, 0xA1, 0xA0, 0x50,
0x28, 0x14, 0x09, 0x0C, 0x7A, 0x01, 0x01, 0x87, 0x80, 0xC0, 0x20, 0x10,
0x0B, 0xC6, 0x32, 0x09, 0x04, 0x82, 0x41, 0x20, 0xB8, 0xE0, 0x10, 0x01,
0xC0, 0x81, 0x02, 0x04, 0x08, 0x11, 0xFC, 0x10, 0x3E, 0x10, 0x84, 0x21,
0x08, 0x42, 0x3F, 0x00, 0xC0, 0x40, 0x40, 0x4F, 0x44, 0x58, 0x70, 0x48,
0x44, 0x42, 0xC7, 0x70, 0x20, 0x40, 0x81, 0x02, 0x04, 0x08, 0x10, 0x23,
0xF8, 0xB7, 0x64, 0x62, 0x31, 0x18, 0x8C, 0x46, 0x23, 0x91, 0x5E, 0x31,
0x90, 0x48, 0x24, 0x12, 0x09, 0x05, 0xC7, 0x3E, 0x31, 0xA0, 0x30, 0x18,
0x0C, 0x05, 0x8C, 0x7C, 0xDE, 0x30, 0x90, 0x28, 0x14, 0x0A, 0x05, 0x84,
0xBC, 0x40, 0x20, 0x38, 0x00, 0x3D, 0xA1, 0xA0, 0x50, 0x28, 0x14, 0x09,
0x0C, 0x7A, 0x01, 0x00, 0x80, 0xE0, 0xCE, 0xA1, 0x82, 0x04, 0x08, 0x10,
0x7C, 0x3A, 0x8D, 0x0B, 0x80, 0xF0, 0x70, 0xDE, 0x40, 0x40, 0xFC, 0x40,
0x40, 0x40, 0x40, 0x40, 0x41, 0x3E, 0xC3, 0x41, 0x41, 0x41, 0x41, 0x41,
0x43, 0x3D, 0xE3, 0xA0, 0x90, 0x84, 0x42, 0x20, 0xA0, 0x50, 0x10, 0xE3,
0xC0, 0x92, 0x4B, 0x25, 0x92, 0xA9, 0x98, 0x44, 0xE3, 0x31, 0x05, 0x01,
0x01, 0x41, 0x11, 0x05, 0xC7, 0xE3, 0xA0, 0x90, 0x84, 0x42, 0x40, 0xA0,
0x60, 0x10, 0x10, 0x08, 0x3E, 0x00, 0xFD, 0x08, 0x20, 0x82, 0x08, 0x10,
0xBF, 0x29, 0x24, 0xA2, 0x49, 0x26, 0xFF, 0xF8, 0x89, 0x24, 0x8A, 0x49,
0x2C, 0x61, 0x24, 0x30 ]
FreeMono9pt7bGlyphs = [
[ 0, 0, 0, 11, 0, 1 ], # 0x20 ' '
[ 0, 2, 11, 11, 4, -10 ], # 0x21 '!'
[ 3, 6, 5, 11, 2, -10 ], # 0x22 '"'
[ 7, 7, 12, 11, 2, -10 ], # 0x23 '#'
[ 18, 8, 12, 11, 1, -10 ], # 0x24 '$'
[ 30, 7, 11, 11, 2, -10 ], # 0x25 '%'
[ 40, 7, 10, 11, 2, -9 ], # 0x26 '&'
[ 49, 3, 5, 11, 4, -10 ], # 0x27 '''
[ 51, 2, 13, 11, 5, -10 ], # 0x28 '('
[ 55, 2, 13, 11, 4, -10 ], # 0x29 ')'
[ 59, 7, 7, 11, 2, -10 ], # 0x2A '#'
[ 66, 7, 7, 11, 2, -8 ], # 0x2B '+'
[ 73, 3, 5, 11, 2, -1 ], # 0x2C ','
[ 75, 9, 1, 11, 1, -5 ], # 0x2D '-'
[ 77, 2, 2, 11, 4, -1 ], # 0x2E '.'
[ 78, 7, 13, 11, 2, -11 ], # 0x2F '/'
[ 90, 7, 11, 11, 2, -10 ], # 0x30 '0'
[ 100, 5, 11, 11, 3, -10 ], # 0x31 '1'
[ 107, 7, 11, 11, 2, -10 ], # 0x32 '2'
[ 117, 8, 11, 11, 1, -10 ], # 0x33 '3'
[ 128, 6, 11, 11, 3, -10 ], # 0x34 '4'
[ 137, 7, 11, 11, 2, -10 ], # 0x35 '5'
[ 147, 7, 11, 11, 2, -10 ], # 0x36 '6'
[ 157, 7, 11, 11, 2, -10 ], # 0x37 '7'
[ 167, 7, 11, 11, 2, -10 ], # 0x38 '8'
[ 177, 7, 11, 11, 2, -10 ], # 0x39 '9'
[ 187, 2, 8, 11, 4, -7 ], # 0x3A ':'
[ 189, 3, 11, 11, 3, -7 ], # 0x3B ''
[ 194, 8, 8, 11, 1, -8 ], # 0x3C '<'
[ 202, 9, 4, 11, 1, -6 ], # 0x3D '='
[ 207, 9, 8, 11, 1, -8 ], # 0x3E '>'
[ 216, 7, 10, 11, 2, -9 ], # 0x3F '?'
[ 225, 8, 12, 11, 2, -10 ], # 0x40 '@'
[ 237, 11, 10, 11, 0, -9 ], # 0x41 'A'
[ 251, 9, 10, 11, 1, -9 ], # 0x42 'B'
[ 263, 9, 10, 11, 1, -9 ], # 0x43 'C'
[ 275, 9, 10, 11, 1, -9 ], # 0x44 'D'
[ 287, 9, 10, 11, 1, -9 ], # 0x45 'E'
[ 299, 9, 10, 11, 1, -9 ], # 0x46 'F'
[ 311, 10, 10, 11, 1, -9 ], # 0x47 'G'
[ 324, 9, 10, 11, 1, -9 ], # 0x48 'H'
[ 336, 5, 10, 11, 3, -9 ], # 0x49 'I'
[ 343, 8, 10, 11, 2, -9 ], # 0x4A 'J'
[ 353, 9, 10, 11, 1, -9 ], # 0x4B 'K'
[ 365, 8, 10, 11, 2, -9 ], # 0x4C 'L'
[ 375, 11, 10, 11, 0, -9 ], # 0x4D 'M'
[ 389, 9, 10, 11, 1, -9 ], # 0x4E 'N'
[ 401, 9, 10, 11, 1, -9 ], # 0x4F 'O'
[ 413, 8, 10, 11, 1, -9 ], # 0x50 'P'
[ 423, 9, 13, 11, 1, -9 ], # 0x51 'Q'
[ 438, 9, 10, 11, 1, -9 ], # 0x52 'R'
[ 450, 7, 10, 11, 2, -9 ], # 0x53 'S'
[ 459, 9, 10, 11, 1, -9 ], # 0x54 'T'
[ 471, 9, 10, 11, 1, -9 ], # 0x55 'U'
[ 483, 11, 10, 11, 0, -9 ], # 0x56 'V'
[ 497, 11, 10, 11, 0, -9 ], # 0x57 'W'
[ 511, 9, 10, 11, 1, -9 ], # 0x58 'X'
[ 523, 9, 10, 11, 1, -9 ], # 0x59 'Y'
[ 535, 7, 10, 11, 2, -9 ], # 0x5A 'Z'
[ 544, 2, 13, 11, 5, -10 ], # 0x5B '['
[ 548, 7, 13, 11, 2, -11 ], # 0x5C '\'
[ 560, 2, 13, 11, 4, -10 ], # 0x5D ']'
[ 564, 7, 5, 11, 2, -10 ], # 0x5E '^'
[ 569, 11, 1, 11, 0, 2 ], # 0x5F '_'
[ 571, 3, 3, 11, 3, -11 ], # 0x60 '`'
[ 573, 9, 8, 11, 1, -7 ], # 0x61 'a'
[ 582, 9, 11, 11, 1, -10 ], # 0x62 'b'
[ 595, 7, 8, 11, 2, -7 ], # 0x63 'c'
[ 602, 9, 11, 11, 1, -10 ], # 0x64 'd'
[ 615, 8, 8, 11, 1, -7 ], # 0x65 'e'
[ 623, 6, 11, 11, 3, -10 ], # 0x66 'f'
[ 632, 9, 11, 11, 1, -7 ], # 0x67 'g'
[ 645, 9, 11, 11, 1, -10 ], # 0x68 'h'
[ 658, 7, 10, 11, 2, -9 ], # 0x69 'i'
[ 667, 5, 13, 11, 3, -9 ], # 0x6A 'j'
[ 676, 8, 11, 11, 2, -10 ], # 0x6B 'k'
[ 687, 7, 11, 11, 2, -10 ], # 0x6C 'l'
[ 697, 9, 8, 11, 1, -7 ], # 0x6D 'm'
[ 706, 9, 8, 11, 1, -7 ], # 0x6E 'n'
[ 715, 9, 8, 11, 1, -7 ], # 0x6F 'o'
[ 724, 9, 11, 11, 1, -7 ], # 0x70 'p'
[ 737, 9, 11, 11, 1, -7 ], # 0x71 'q'
[ 750, 7, 8, 11, 3, -7 ], # 0x72 'r'
[ 757, 7, 8, 11, 2, -7 ], # 0x73 's'
[ 764, 8, 10, 11, 2, -9 ], # 0x74 't'
[ 774, 8, 8, 11, 1, -7 ], # 0x75 'u'
[ 782, 9, 8, 11, 1, -7 ], # 0x76 'v'
[ 791, 9, 8, 11, 1, -7 ], # 0x77 'w'
[ 800, 9, 8, 11, 1, -7 ], # 0x78 'x'
[ 809, 9, 11, 11, 1, -7 ], # 0x79 'y'
[ 822, 7, 8, 11, 2, -7 ], # 0x7A 'z'
[ 829, 3, 13, 11, 4, -10 ], # 0x7B '['
[ 834, 1, 13, 11, 5, -10 ], # 0x7C '|'
[ 836, 3, 13, 11, 4, -10 ], # 0x7D ']'
[ 841, 7, 3, 11, 2, -6 ] ] # 0x7E '~'
FreeMono9pt7b = [
FreeMono9pt7bBitmaps,
FreeMono9pt7bGlyphs,
0x20, 0x7E, 18 ]
# Approx. 1516 bytes
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# Current source: https://github.com/open-security/vulnpwn/
##
class FrameworkException(Exception):
pass
class OptionValidationError(FrameworkException):
pass
|
num = [[], []]
valor = 0
for C in range (1, 8):
valor = int(input(f'Digite o {C}º. valor: '))
if valor % 2 == 0:
num[0].append(valor)
else:
num[1].append(valor)
print('=' * 48)
num[0].sort()
num[1].sort()
print(f'Os Valores pares digitados foram: {num[0]}')
print(f'Os Valores impares digitados foram: {num[1]}')
|
def load(h):
return ({'abbr': 'none', 'code': 0, 'title': 'not set'},
{'abbr': 96,
'code': 96,
'title': 'HIRLAM data',
'units': 'non-standard, deprecated'},
{'abbr': 98,
'code': 98,
'title': 'previously used to tag SMHI data that is ECMWF compliant',
'units': 'deprecated'})
|
# Daniel Mc Callion
# Computing the primes
# My list of primes
p = []
# Loop through all of the numbers we're
# checking for primality
for i in range (2,10000):
# Assume that i is a prime
is_prime = True
# Look through all values j from 2 up
# to but not including i
# for j in range(2,i):
for j in p:
# See if j divides i
if i % j == 0:
# If it does, i isn't prime exit loop
# and indicate its not prime
is_prime = False
break
# If i is prime, then append to p
if is_prime:
p.append(i)
# Print out the primes
print(p)
|
#challenge 19
#Write an algorithm that:
# •Asks the user to input a number and repeat this until they guess the number 7.
# •Congratulate the user with a ‘Well Done’ message when they guess correctly.
num = "num"
while num != 7:
num = int(input("Please enter a number: "))
print("Well Done")
|
# Section 1: Comments and Print
# A single line comment in python is indicated by a # at the beginning
''' This
is
a
multiline
comment '''
# A print function prints the code to the console, useful to learn and to debug
print('This is a print') # a comment can also be added after a funcion declaration or variable declaration.
print('you can print multiple things separated by a comma','like this and python will add a space in between')
# Section 2: Variables
var_1 = 5 # This is a int variable
var_2 = 'a' # There is a str variable, no need to invoke int or str as other languages.
var_3 = 1. # Theis is a float variable
print('Hello World!') # This is regular print
print('Hello','World!') # To append in a print on 2.X version a, is used and it adds a space between
print('Hello',end=" ") # The comma could be at the end
print('World!') # and the result will be the same
print('var_1', var_1) # It could be really helpful to print variables
print('var_2', var_2) # It doesnt care if it is a int str or float etc
print('var_3', var_3) # It doesnt care if it is a int str or float etc
print('var_1 is a ',type(var_1)) # Use 'type' to check which type of variable like int
print('var_2 is a ',type(var_2)) # or str
print('var_3 is a ',type(var_3)) # or float
# List, Dictionary, Tuples
print('List:')
L = [2, 5, 8, 'x', 'y'] # This is a list
print(L) # An easy way to print it is with print.
print(L[0]) # The first element starts with 0
print(L[-1]) # The last element is -1
print(L[0:3]) # This will select the elements 0, 1 and 2 (Warning!: not the 3)
print(L[2:4]) # This will select element 2 and 3
print(L[:-2]) # All elements except the last two
print(L[-2:]) # from the element [-2] until the end
L.append('z') #This is the Way to append elements to a list
print(L) # View the list with the last element appended.
print('Dictionary:')
D = {'k1': 123, 'k2': 456, 1:'v3'} # This is a Dictionary syntax key:value
print(D) # This is how to print a dictionary
print(D['k1']) # This is how to print a value with a given key
print ('Tuple:')
a, b = 1, 5 # The values can be assigned to each element separated with commas
print ('a',a) # value of a
print ('b',b) # value of b
|
# -*- coding: utf-8 -*-
"""Top-level package for Music Downloader Telegram Bot."""
__author__ = """@Bots_Ki_Duniya"""
__reportbugs__ = "@Mr_Ninjas_Bot"
__version__ = "0.13.7"
|
inputstr="SecondMostFrequentCharacterInTheString"
safe=inputstr
countar=[]
count=0
for i in inputstr:
if(i!='#'):
countar.append(inputstr.count(i))
print(i,inputstr.count(i),end=", ")
inputstr=inputstr.replace(i,'#')
else:
continue
firstmax=max(countar)
countar.remove(max(countar))
maxnum=max(countar)
print()
if(firstmax==maxnum):
for i in safe:
if(maxnum==safe.count(i)):
count+=1
if(count==2):
print(i,maxnum)
break
else:
for i in safe:
if(maxnum==safe.count(i)):
print(i,maxnum)
break
|
class Solution:
def reverseBetween(self, head: ListNode,
left: int, right: int) -> ListNode:
# Base case scenario
if left == right:
return head
node = ptr = ListNode() # Dummy node before actual linked list
node.next = head
# First traverse to node before reversing starts
for _ in range(1, left):
ptr = ptr.next
# Start reversing from next node using three pointer approach
current_node = ptr.next
while left < right:
temp_node = current_node.next
current_node.next = temp_node.next
temp_node.next = ptr.next
ptr.next = temp_node
left += 1
return node.next
|
codigo_set = set()
codido_set_saiu = set()
s = input()
codigos = input().split(' ')
for codigo in codigos:
codigo_set.add(codigo)
i = input()
saidas = input().split(' ')
A = 0
I = 0
R = 0
for saida in saidas:
if saida in codigo_set:
if saida in codido_set_saiu:
R += 1
else:
A += 1
codido_set_saiu.add(saida)
else:
if saida in codido_set_saiu:
R += 1
else:
I += 1
codido_set_saiu.add(saida)
print('%d A' % A)
print('%d I' % I)
print('%d R' % R)
|
num = 0
num = (int)(input ())
for i in range(num):
check = [int(x) for x in input().split()]
arr = [int(x) for x in input().split()]
checkingP = check[1]
popNum = 0
while(True):
existPop = False
#맨 처음 값의 중요도와 뒤의 중요도 비교 for문
for j in range(len(arr)-1):
if(arr[0] >= arr[j+1]):
continue
else:
arr.append(arr[0])
arr.pop(0)
checkingP -= 1
if(checkingP < 0):
checkingP = len(arr)-1
existPop = True
break
if(not existPop):
arr.pop(0)
popNum += 1
if(checkingP == 0):
print(popNum)
break
else:
checkingP -= 1
|
"""
This is a Utility to parse a file.
"""
def parse_file(input_file = ""):
try:
with open(input_file , 'r') as file:
lines = [line.rstrip() for line in file]
return lines
except :
return None
|
# Configuration file for the Sphinx documentation builder.
project = 'pathlib2'
copyright = '2012-2014 Antoine Pitrou and contributors; 2014-2021, Matthias C. M. Troffaes and contributors'
author = 'Matthias C. M. Troffaes'
# The full version, including alpha/beta/rc tags
with open("../VERSION", "r") as version_file:
release = version_file.read().strip()
# -- General configuration ---------------------------------------------------
extensions = []
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
#
# PySNMP MIB module Dell-vlan-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Dell-vlan-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:43:15 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion")
dot1dBasePort, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBasePort")
VlanList1, VlanList3, VlanList2, VlanList4 = mibBuilder.importSymbols("Dell-BRIDGEMIBOBJECTS-MIB", "VlanList1", "VlanList3", "VlanList2", "VlanList4")
rnd, = mibBuilder.importSymbols("Dell-MIB", "rnd")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
InetAddressType, = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType")
VlanIndex, PortList, dot1qVlanIndex = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanIndex", "PortList", "dot1qVlanIndex")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
IpAddress, Counter64, Counter32, ObjectIdentity, Gauge32, Bits, Unsigned32, TimeTicks, MibIdentifier, ModuleIdentity, Integer32, iso, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "Counter64", "Counter32", "ObjectIdentity", "Gauge32", "Bits", "Unsigned32", "TimeTicks", "MibIdentifier", "ModuleIdentity", "Integer32", "iso", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
TruthValue, TextualConvention, DisplayString, MacAddress, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "TextualConvention", "DisplayString", "MacAddress", "RowStatus")
vlan = ModuleIdentity((1, 3, 6, 1, 4, 1, 89, 48))
vlan.setRevisions(('2006-02-12 00:00', '2004-04-19 00:00',))
if mibBuilder.loadTexts: vlan.setLastUpdated('200602120000Z')
if mibBuilder.loadTexts: vlan.setOrganization('Dell')
vlanMibVersion = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanMibVersion.setStatus('current')
vlanMaxTableNumber = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanMaxTableNumber.setStatus('current')
vlanNameTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 21), )
if mibBuilder.loadTexts: vlanNameTable.setStatus('current')
vlanNameEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 21, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanNameName"))
if mibBuilder.loadTexts: vlanNameEntry.setStatus('current')
vlanNameName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 21, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanNameName.setStatus('current')
vlanNameTag = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 21, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanNameTag.setStatus('current')
vlanNameIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 21, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanNameIfIndex.setStatus('current')
vlanPortModeTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 22), )
if mibBuilder.loadTexts: vlanPortModeTable.setStatus('current')
vlanPortModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 22, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanPortModeEntry.setStatus('current')
vlanPortModeState = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 22, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPortModeState.setStatus('current')
vlanSendUnknownToAllPorts = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 27), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanSendUnknownToAllPorts.setStatus('current')
vlanDefaultSupported = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 29), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanDefaultSupported.setStatus('current')
vlanDot1vSupported = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 31), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanDot1vSupported.setStatus('current')
vlanDefaultEnabled = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 32), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanDefaultEnabled.setStatus('current')
vlanSpecialTagTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 33), )
if mibBuilder.loadTexts: vlanSpecialTagTable.setStatus('current')
vlanSpecialTagEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 33, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanSpecialTagEntry.setStatus('current')
vlanSpecialTagVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 33, 1, 1), VlanIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanSpecialTagVID.setStatus('current')
vlanSpecialTagStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 33, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanSpecialTagStatus.setStatus('current')
vlanSpecialTagCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 34), )
if mibBuilder.loadTexts: vlanSpecialTagCurrentTable.setStatus('current')
vlanSpecialTagCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 34, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanSpecialTagCurrentEntry.setStatus('current')
vlanSpecialTagCurrentVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 34, 1, 1), VlanIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanSpecialTagCurrentVID.setStatus('current')
vlanSpecialTagCurrentReserved = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 34, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanSpecialTagCurrentReserved.setStatus('current')
vlanSpecialTagCurrentActive = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 34, 1, 3), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanSpecialTagCurrentActive.setStatus('current')
vlanPrivateEdgeSupported = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 35), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivateEdgeSupported.setStatus('current')
vlanPrivateEdgeVersion = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 36), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivateEdgeVersion.setStatus('current')
vlanPrivateEdgeTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 37), )
if mibBuilder.loadTexts: vlanPrivateEdgeTable.setStatus('current')
vlanPrivateEdgeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 37, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanPrivateEdgeEntry.setStatus('current')
vlanPrivateEdgeUplink = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 37, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateEdgeUplink.setStatus('current')
vlanPrivateEdgeStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 37, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateEdgeStatus.setStatus('current')
vlanDynamicVlanSupported = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 38), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanDynamicVlanSupported.setStatus('current')
vlanDynamicVlanTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 39), )
if mibBuilder.loadTexts: vlanDynamicVlanTable.setStatus('current')
vlanDynamicVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 39, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanDynamicVlanMacAddress"))
if mibBuilder.loadTexts: vlanDynamicVlanEntry.setStatus('current')
vlanDynamicVlanMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 39, 1, 1), MacAddress())
if mibBuilder.loadTexts: vlanDynamicVlanMacAddress.setStatus('current')
vlanDynamicVlanTag = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 39, 1, 2), VlanIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanDynamicVlanTag.setStatus('current')
vlanDynamicVlanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 39, 1, 3), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanDynamicVlanStatus.setStatus('current')
vlanPortModeExtTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 40), )
if mibBuilder.loadTexts: vlanPortModeExtTable.setStatus('current')
vlanPortModeExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 40, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanPortModeExtEntry.setStatus('current')
vlanPortModeExtState = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 40, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPortModeExtState.setStatus('current')
vlanPortModeExtStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 40, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPortModeExtStatus.setStatus('current')
vlanPrivateSupported = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 41), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivateSupported.setStatus('current')
vlanPrivateTableOld = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 42), )
if mibBuilder.loadTexts: vlanPrivateTableOld.setStatus('current')
vlanPrivateEntryOld = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 42, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"))
if mibBuilder.loadTexts: vlanPrivateEntryOld.setStatus('current')
vlanPrivateOldIsolatedVlanTag = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 42, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4094))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateOldIsolatedVlanTag.setStatus('current')
vlanPrivateOldStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 42, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateOldStatus.setStatus('current')
vlanPrivateCommunityTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 43), )
if mibBuilder.loadTexts: vlanPrivateCommunityTable.setStatus('current')
vlanPrivateCommunityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 43, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"), (0, "Dell-vlan-MIB", "vlanPrivateCommunityVlanTag"))
if mibBuilder.loadTexts: vlanPrivateCommunityEntry.setStatus('current')
vlanPrivateCommunityVlanTag = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 43, 1, 1), VlanIndex())
if mibBuilder.loadTexts: vlanPrivateCommunityVlanTag.setStatus('current')
vlanPrivateCommunityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 43, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateCommunityStatus.setStatus('current')
vlanMulticastTvTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 44), )
if mibBuilder.loadTexts: vlanMulticastTvTable.setStatus('current')
vlanMulticastTvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 44, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanMulticastTvEntry.setStatus('current')
vlanMulticastTvVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 44, 1, 1), VlanIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanMulticastTvVID.setStatus('current')
vlanMulticastTvStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 44, 1, 2), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanMulticastTvStatus.setStatus('current')
vlanMacBaseVlanGroupTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 45), )
if mibBuilder.loadTexts: vlanMacBaseVlanGroupTable.setStatus('current')
vlanMacBaseVlanGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 45, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanMacBaseVlanMacAddress"), (0, "Dell-vlan-MIB", "vlanMacBaseVlanMacMask"))
if mibBuilder.loadTexts: vlanMacBaseVlanGroupEntry.setStatus('current')
vlanMacBaseVlanMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 45, 1, 1), MacAddress())
if mibBuilder.loadTexts: vlanMacBaseVlanMacAddress.setStatus('current')
vlanMacBaseVlanMacMask = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 45, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(9, 48)))
if mibBuilder.loadTexts: vlanMacBaseVlanMacMask.setStatus('current')
vlanMacBaseVlanGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 45, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanMacBaseVlanGroupId.setStatus('current')
vlanMacBaseVlanGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 45, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanMacBaseVlanGroupRowStatus.setStatus('current')
vlanMacBaseVlanPortTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 46), )
if mibBuilder.loadTexts: vlanMacBaseVlanPortTable.setStatus('current')
vlanMacBaseVlanPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 46, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"), (0, "Dell-vlan-MIB", "vlanMacBaseVlanPortGroupId"))
if mibBuilder.loadTexts: vlanMacBaseVlanPortEntry.setStatus('current')
vlanMacBaseVlanPortGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 46, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: vlanMacBaseVlanPortGroupId.setStatus('current')
vlanMacBaseVlanPortGroupVid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 46, 1, 2), VlanIndex()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanMacBaseVlanPortGroupVid.setStatus('current')
vlanMacBaseVlanPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 46, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanMacBaseVlanPortRowStatus.setStatus('current')
vlanPrivateEdgeGroupTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 47), )
if mibBuilder.loadTexts: vlanPrivateEdgeGroupTable.setStatus('current')
vlanPrivateEdgeGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 47, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanPrivateEdgeGroupSource"))
if mibBuilder.loadTexts: vlanPrivateEdgeGroupEntry.setStatus('current')
vlanPrivateEdgeGroupSource = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 47, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivateEdgeGroupSource.setStatus('current')
vlanPrivateEdgeGroupUplink = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 47, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateEdgeGroupUplink.setStatus('current')
vlanPrivateEdgeGroupStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 47, 1, 3), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateEdgeGroupStatus.setStatus('current')
vlanPrivateEdgeGroupIfIndexTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 48), )
if mibBuilder.loadTexts: vlanPrivateEdgeGroupIfIndexTable.setStatus('current')
vlanPrivateEdgeGroupIfIndexEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 48, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanPrivateEdgeGroupIfIndexEntry.setStatus('current')
vlanPrivateEdgeGroupIfIndexID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 48, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivateEdgeGroupIfIndexID.setStatus('current')
vlanPrivateEdgeGroupIfIndexDomainID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 48, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivateEdgeGroupIfIndexDomainID.setStatus('current')
vlanSubnetRangeTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 49), )
if mibBuilder.loadTexts: vlanSubnetRangeTable.setStatus('current')
vlanSubnetRangeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 49, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanSubnetRangeAddr"), (0, "Dell-vlan-MIB", "vlanSubnetRangeMask"))
if mibBuilder.loadTexts: vlanSubnetRangeEntry.setStatus('current')
vlanSubnetRangeAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 49, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanSubnetRangeAddr.setStatus('current')
vlanSubnetRangeMask = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 49, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanSubnetRangeMask.setStatus('current')
vlanSubnetRangeGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 49, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanSubnetRangeGroupId.setStatus('current')
vlanSubnetRangeRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 49, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanSubnetRangeRowStatus.setStatus('current')
vlanSubnetPortTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 50), )
if mibBuilder.loadTexts: vlanSubnetPortTable.setStatus('current')
vlanSubnetPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 50, 1), ).setIndexNames((0, "BRIDGE-MIB", "dot1dBasePort"), (0, "Dell-vlan-MIB", "vlanSubnetPortGroupId"))
if mibBuilder.loadTexts: vlanSubnetPortEntry.setStatus('current')
vlanSubnetPortGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 50, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: vlanSubnetPortGroupId.setStatus('current')
vlanSubnetPortGroupVid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 50, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4094))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanSubnetPortGroupVid.setStatus('current')
vlanSubnetPortRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 50, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanSubnetPortRowStatus.setStatus('current')
vlanTriplePlayTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 51), )
if mibBuilder.loadTexts: vlanTriplePlayTable.setStatus('current')
vlanTriplePlayEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 51, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanTriplePlayInnerVID"))
if mibBuilder.loadTexts: vlanTriplePlayEntry.setStatus('current')
vlanTriplePlayInnerVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 51, 1, 1), VlanIndex())
if mibBuilder.loadTexts: vlanTriplePlayInnerVID.setStatus('current')
vlanTriplePlayMulticastTvVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 51, 1, 2), VlanIndex()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanTriplePlayMulticastTvVID.setStatus('current')
vlanTriplePlayRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 51, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanTriplePlayRowStatus.setStatus('current')
vlanTriplePlayMulticastTvTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 52), )
if mibBuilder.loadTexts: vlanTriplePlayMulticastTvTable.setStatus('current')
vlanTriplePlayMulticatTvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 52, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanTriplePlayMulticastTvMulticastTvVID"))
if mibBuilder.loadTexts: vlanTriplePlayMulticatTvEntry.setStatus('current')
vlanTriplePlayMulticastTvMulticastTvVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 52, 1, 1), VlanIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanTriplePlayMulticastTvMulticastTvVID.setStatus('current')
vlanTriplePlayMulticastTvMulticastTvPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 52, 1, 2), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanTriplePlayMulticastTvMulticastTvPortList.setStatus('current')
vlanDefaultExtManagment = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 53), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanDefaultExtManagment.setStatus('current')
vlanVoice = MibIdentifier((1, 3, 6, 1, 4, 1, 89, 48, 54))
vlanVoiceAgingTimeout = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 54, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 43200)).clone(1440)).setUnits('minutes').setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanVoiceAgingTimeout.setStatus('current')
vlanVoiceTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 54, 2), )
if mibBuilder.loadTexts: vlanVoiceTable.setStatus('current')
vlanVoiceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 54, 2, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"))
if mibBuilder.loadTexts: vlanVoiceEntry.setStatus('current')
vlanVoicePriority = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanVoicePriority.setStatus('current')
vlanVoicePriorityRemark = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 2, 1, 2), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanVoicePriorityRemark.setStatus('current')
vlanVoiceRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 2, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanVoiceRowStatus.setStatus('current')
vlanVoiceOUITable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 54, 3), )
if mibBuilder.loadTexts: vlanVoiceOUITable.setStatus('current')
vlanVoiceOUIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 54, 3, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanVoiceOUIPrefix"))
if mibBuilder.loadTexts: vlanVoiceOUIEntry.setStatus('current')
vlanVoiceOUIPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 3, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(3, 3)).setFixedLength(3))
if mibBuilder.loadTexts: vlanVoiceOUIPrefix.setStatus('current')
vlanVoiceOUIDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanVoiceOUIDescription.setStatus('current')
vlanVoiceOUIEntryRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 3, 1, 3), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanVoiceOUIEntryRowStatus.setStatus('current')
vlanVoicePortTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 54, 4), )
if mibBuilder.loadTexts: vlanVoicePortTable.setStatus('current')
vlanVoicePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 54, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanVoicePortEntry.setStatus('current')
vlanVoicePortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 4, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanVoicePortEnable.setStatus('current')
vlanVoicePortVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 4, 1, 2), VlanIndex().clone(4095)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanVoicePortVlanIndex.setStatus('current')
vlanVoicePortSecure = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 4, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanVoicePortSecure.setStatus('current')
vlanVoicePortCurrentMembership = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("notActive", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanVoicePortCurrentMembership.setStatus('current')
vlanVoicePortQosMode = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 54, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("src", 1), ("all", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanVoicePortQosMode.setStatus('current')
vlanVoiceOUISetToDefault = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 54, 5), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanVoiceOUISetToDefault.setStatus('current')
vlanDefault = MibIdentifier((1, 3, 6, 1, 4, 1, 89, 48, 55))
vlanDefaultTaggedPorts = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 55, 1), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanDefaultTaggedPorts.setStatus('current')
vlanDefaultEnabledPorts = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 55, 2), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanDefaultEnabledPorts.setStatus('current')
vlanInetTriplePlayTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 56), )
if mibBuilder.loadTexts: vlanInetTriplePlayTable.setStatus('current')
vlanInetTriplePlayEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 56, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanInetTriplePlayInetAddressType"), (0, "Dell-vlan-MIB", "vlanTriplePlayInnerVID"))
if mibBuilder.loadTexts: vlanInetTriplePlayEntry.setStatus('current')
vlanInetTriplePlayInetAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 56, 1, 1), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanInetTriplePlayInetAddressType.setStatus('current')
vlanInetTriplePlayInnerVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 56, 1, 2), VlanIndex())
if mibBuilder.loadTexts: vlanInetTriplePlayInnerVID.setStatus('current')
vlanInetTriplePlayMulticastTvVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 56, 1, 3), VlanIndex()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanInetTriplePlayMulticastTvVID.setStatus('current')
vlanInetTriplePlayRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 56, 1, 4), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: vlanInetTriplePlayRowStatus.setStatus('current')
vlanInetTriplePlayMulticastTvTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 57), )
if mibBuilder.loadTexts: vlanInetTriplePlayMulticastTvTable.setStatus('current')
vlanInetTriplePlayMulticatTvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 57, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanTriplePlayMulticastTvMulticastTvVID"))
if mibBuilder.loadTexts: vlanInetTriplePlayMulticatTvEntry.setStatus('current')
vlanInetTriplePlayMulticastTvMulticastTvVID = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 57, 1, 1), VlanIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanInetTriplePlayMulticastTvMulticastTvVID.setStatus('current')
vlanInetTriplePlayMulticastTvMulticastTvPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 57, 1, 2), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanInetTriplePlayMulticastTvMulticastTvPortList.setStatus('current')
vlanAsymmetricEnabled = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 58), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanAsymmetricEnabled.setStatus('current')
vlanPrivateTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 59), )
if mibBuilder.loadTexts: vlanPrivateTable.setStatus('current')
vlanPrivateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 59, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanPrivateVid"))
if mibBuilder.loadTexts: vlanPrivateEntry.setStatus('current')
vlanPrivateVid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 59, 1, 1), VlanIndex())
if mibBuilder.loadTexts: vlanPrivateVid.setStatus('current')
vlanPrivateType = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 59, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("primary", 1), ("isolated", 2), ("community", 3))).clone('primary')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateType.setStatus('current')
vlanPrivatePrimaryVid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 59, 1, 3), VlanIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivatePrimaryVid.setStatus('current')
vlanPrivateStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 59, 1, 4), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateStatus.setStatus('current')
vlanPrivateMapTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 60), )
if mibBuilder.loadTexts: vlanPrivateMapTable.setStatus('current')
vlanPrivateMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 60, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanPrivateMapPrimaryVid"), (0, "Dell-vlan-MIB", "vlanPrivateMapSecondaryVid"))
if mibBuilder.loadTexts: vlanPrivateMapEntry.setStatus('current')
vlanPrivateMapPrimaryVid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 60, 1, 1), VlanIndex())
if mibBuilder.loadTexts: vlanPrivateMapPrimaryVid.setStatus('current')
vlanPrivateMapSecondaryVid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 60, 1, 2), VlanIndex())
if mibBuilder.loadTexts: vlanPrivateMapSecondaryVid.setStatus('current')
vlanPrivateMapPrimaryPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 60, 1, 3), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateMapPrimaryPorts.setStatus('current')
vlanPrivateMapSecondaryPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 60, 1, 4), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateMapSecondaryPorts.setStatus('current')
vlanPrivateMapPrimaryOperPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 60, 1, 5), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivateMapPrimaryOperPorts.setStatus('current')
vlanPrivateMapSecondaryOperPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 60, 1, 6), PortList()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanPrivateMapSecondaryOperPorts.setStatus('current')
vlanPrivateMapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 60, 1, 7), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPrivateMapStatus.setStatus('current')
vlanTrunkPortModeTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 61), )
if mibBuilder.loadTexts: vlanTrunkPortModeTable.setStatus('current')
vlanTrunkPortModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 61, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanTrunkPortModeEntry.setStatus('current')
vlanTrunkPortModeNativeVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 61, 1, 1), VlanIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanTrunkPortModeNativeVlanId.setStatus('current')
vlanTrunkModeList1to1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 61, 1, 2), VlanList1()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanTrunkModeList1to1024.setStatus('current')
vlanTrunkModeList1025to2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 61, 1, 3), VlanList2()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanTrunkModeList1025to2048.setStatus('current')
vlanTrunkModeList2049to3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 61, 1, 4), VlanList3()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanTrunkModeList2049to3072.setStatus('current')
vlanTrunkModeList3073to4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 61, 1, 5), VlanList4()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanTrunkModeList3073to4094.setStatus('current')
vlanAccessPortModeTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 62), )
if mibBuilder.loadTexts: vlanAccessPortModeTable.setStatus('current')
vlanAccessPortModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 62, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanAccessPortModeEntry.setStatus('current')
vlanAccessPortModeVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 62, 1, 1), VlanIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanAccessPortModeVlanId.setStatus('current')
vlanAccessPortModeMcstTvVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 62, 1, 2), VlanIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanAccessPortModeMcstTvVlanId.setStatus('current')
vlanCustomerPortModeTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 63), )
if mibBuilder.loadTexts: vlanCustomerPortModeTable.setStatus('current')
vlanCustomerPortModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 63, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanCustomerPortModeEntry.setStatus('current')
vlanCustomerPortModeVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 63, 1, 1), VlanIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanCustomerPortModeVlanId.setStatus('current')
vlanCustomerPortModeMtvList1to1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 63, 1, 2), VlanList1()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanCustomerPortModeMtvList1to1024.setStatus('current')
vlanCustomerPortModeMtvList1025to2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 63, 1, 3), VlanList2()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanCustomerPortModeMtvList1025to2048.setStatus('current')
vlanCustomerPortModeMtvList2049to3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 63, 1, 4), VlanList3()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanCustomerPortModeMtvList2049to3072.setStatus('current')
vlanCustomerPortModeMtvList3073to4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 63, 1, 5), VlanList4()).setMaxAccess("readonly")
if mibBuilder.loadTexts: vlanCustomerPortModeMtvList3073to4094.setStatus('current')
vlanSwitchPortModeTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 64), )
if mibBuilder.loadTexts: vlanSwitchPortModeTable.setStatus('current')
vlanSwitchPortModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 64, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanSwitchPortModeEntry.setStatus('current')
vlanSwitchPortModeCategory = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 64, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("l2", 1), ("l3", 2))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanSwitchPortModeCategory.setStatus('current')
vlanPortModeContextTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 65), )
if mibBuilder.loadTexts: vlanPortModeContextTable.setStatus('current')
vlanPortModeContextEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 65, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: vlanPortModeContextEntry.setStatus('current')
vlanPortModeContextValue = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 65, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanPortModeContextValue.setStatus('current')
vlanRsvlEnable = MibScalar((1, 3, 6, 1, 4, 1, 89, 48, 66), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanRsvlEnable.setStatus('current')
vlanRsvlMapTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 67), )
if mibBuilder.loadTexts: vlanRsvlMapTable.setStatus('current')
vlanRsvlMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 67, 1), ).setIndexNames((0, "Dell-vlan-MIB", "vlanRsvlMapPrimaryVid"), (0, "Dell-vlan-MIB", "vlanRsvlMapSecondaryVid"))
if mibBuilder.loadTexts: vlanRsvlMapEntry.setStatus('current')
vlanRsvlMapPrimaryVid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 67, 1, 1), VlanIndex())
if mibBuilder.loadTexts: vlanRsvlMapPrimaryVid.setStatus('current')
vlanRsvlMapSecondaryVid = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 67, 1, 2), VlanIndex())
if mibBuilder.loadTexts: vlanRsvlMapSecondaryVid.setStatus('current')
vlanRsvlMapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 67, 1, 3), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: vlanRsvlMapStatus.setStatus('current')
rldot1qPortVlanStaticTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 68), )
if mibBuilder.loadTexts: rldot1qPortVlanStaticTable.setStatus('current')
rldot1qPortVlanStaticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 68, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: rldot1qPortVlanStaticEntry.setStatus('current')
rldot1qPortVlanStaticEgressList1to1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 1), VlanList1().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticEgressList1to1024.setStatus('current')
rldot1qPortVlanStaticEgressList1025to2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 2), VlanList2().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticEgressList1025to2048.setStatus('current')
rldot1qPortVlanStaticEgressList2049to3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 3), VlanList3().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticEgressList2049to3072.setStatus('current')
rldot1qPortVlanStaticEgressList3073to4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 4), VlanList4().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticEgressList3073to4094.setStatus('current')
rldot1qPortVlanStaticUntaggedEgressList1to1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 5), VlanList1().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticUntaggedEgressList1to1024.setStatus('current')
rldot1qPortVlanStaticUntaggedEgressList1025to2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 6), VlanList2().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticUntaggedEgressList1025to2048.setStatus('current')
rldot1qPortVlanStaticUntaggedEgressList2049to3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 7), VlanList3().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticUntaggedEgressList2049to3072.setStatus('current')
rldot1qPortVlanStaticUntaggedEgressList3073to4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 8), VlanList4().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticUntaggedEgressList3073to4094.setStatus('current')
rldot1qPortVlanStaticForbiddenList1to1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 9), VlanList1().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticForbiddenList1to1024.setStatus('current')
rldot1qPortVlanStaticForbiddenList1025to2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 10), VlanList2().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticForbiddenList1025to2048.setStatus('current')
rldot1qPortVlanStaticForbiddenList2049to3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 11), VlanList3().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticForbiddenList2049to3072.setStatus('current')
rldot1qPortVlanStaticForbiddenList3073to4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 68, 1, 12), VlanList4().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qPortVlanStaticForbiddenList3073to4094.setStatus('current')
rldot1qVlanStaticListTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 69), )
if mibBuilder.loadTexts: rldot1qVlanStaticListTable.setStatus('current')
rldot1qVlanStaticListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 69, 1), ).setIndexNames((0, "Dell-vlan-MIB", "rldot1qVlanStaticListIndex"))
if mibBuilder.loadTexts: rldot1qVlanStaticListEntry.setStatus('current')
rldot1qVlanStaticListIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 69, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("static", 0), ("dynamicGvrp", 1), ("dynamicRava", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qVlanStaticListIndex.setStatus('current')
rldot1qVlanStaticList1to1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 69, 1, 2), VlanList1()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qVlanStaticList1to1024.setStatus('current')
rldot1qVlanStaticList1025to2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 69, 1, 3), VlanList2().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qVlanStaticList1025to2048.setStatus('current')
rldot1qVlanStaticList2049to3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 69, 1, 4), VlanList3().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qVlanStaticList2049to3072.setStatus('current')
rldot1qVlanStaticList3073to4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 69, 1, 5), VlanList4().clone(hexValue="00")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qVlanStaticList3073to4094.setStatus('current')
rldot1qVlanStaticNameTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 70), )
if mibBuilder.loadTexts: rldot1qVlanStaticNameTable.setStatus('current')
rldot1qVlanStaticNameEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 70, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"))
if mibBuilder.loadTexts: rldot1qVlanStaticNameEntry.setStatus('current')
rldot1qVlanStaticName = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 70, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rldot1qVlanStaticName.setStatus('current')
rlPortVlanTriplePlayMulticastTvTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 71), )
if mibBuilder.loadTexts: rlPortVlanTriplePlayMulticastTvTable.setStatus('current')
rlPortVlanTriplePlayMulticastTvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 71, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: rlPortVlanTriplePlayMulticastTvEntry.setStatus('current')
rlPortVlanTriplePlayMulticastTvList1to1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 71, 1, 1), VlanList1()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlPortVlanTriplePlayMulticastTvList1to1024.setStatus('current')
rlPortVlanTriplePlayMulticastTvList1025to2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 71, 1, 2), VlanList2()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlPortVlanTriplePlayMulticastTvList1025to2048.setStatus('current')
rlPortVlanTriplePlayMulticastTvList2049to3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 71, 1, 3), VlanList3()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlPortVlanTriplePlayMulticastTvList2049to3072.setStatus('current')
rlPortVlanTriplePlayMulticastTvList3073to4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 71, 1, 4), VlanList4()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlPortVlanTriplePlayMulticastTvList3073to4094.setStatus('current')
rldot1qVlanMembershipTypeTable = MibTable((1, 3, 6, 1, 4, 1, 89, 48, 72), )
if mibBuilder.loadTexts: rldot1qVlanMembershipTypeTable.setStatus('current')
rldot1qVlanMembershipTypeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 89, 48, 72, 1), ).setIndexNames((0, "Q-BRIDGE-MIB", "dot1qVlanIndex"))
if mibBuilder.loadTexts: rldot1qVlanMembershipTypeEntry.setStatus('current')
rldot1qVlanMembershipTypeBitmap = MibTableColumn((1, 3, 6, 1, 4, 1, 89, 48, 72, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rldot1qVlanMembershipTypeBitmap.setStatus('current')
mibBuilder.exportSymbols("Dell-vlan-MIB", vlanPortModeEntry=vlanPortModeEntry, vlanMulticastTvTable=vlanMulticastTvTable, vlanPrivateEdgeSupported=vlanPrivateEdgeSupported, vlanMacBaseVlanPortGroupVid=vlanMacBaseVlanPortGroupVid, vlanCustomerPortModeTable=vlanCustomerPortModeTable, vlan=vlan, vlanPrivateEdgeTable=vlanPrivateEdgeTable, vlanAccessPortModeEntry=vlanAccessPortModeEntry, vlanDefaultEnabledPorts=vlanDefaultEnabledPorts, vlanPrivateMapStatus=vlanPrivateMapStatus, rldot1qVlanStaticList2049to3072=rldot1qVlanStaticList2049to3072, vlanVoicePortTable=vlanVoicePortTable, vlanMacBaseVlanPortTable=vlanMacBaseVlanPortTable, vlanSwitchPortModeTable=vlanSwitchPortModeTable, vlanDefaultEnabled=vlanDefaultEnabled, rldot1qPortVlanStaticEgressList3073to4094=rldot1qPortVlanStaticEgressList3073to4094, vlanPrivateEdgeGroupUplink=vlanPrivateEdgeGroupUplink, vlanTriplePlayMulticastTvMulticastTvPortList=vlanTriplePlayMulticastTvMulticastTvPortList, vlanTrunkModeList2049to3072=vlanTrunkModeList2049to3072, vlanNameEntry=vlanNameEntry, vlanMacBaseVlanMacAddress=vlanMacBaseVlanMacAddress, vlanInetTriplePlayTable=vlanInetTriplePlayTable, vlanAccessPortModeVlanId=vlanAccessPortModeVlanId, vlanRsvlMapStatus=vlanRsvlMapStatus, rldot1qPortVlanStaticEgressList1to1024=rldot1qPortVlanStaticEgressList1to1024, vlanPrivateEdgeEntry=vlanPrivateEdgeEntry, vlanPrivateEdgeGroupIfIndexID=vlanPrivateEdgeGroupIfIndexID, vlanPrivateEdgeGroupTable=vlanPrivateEdgeGroupTable, vlanPrivateEntryOld=vlanPrivateEntryOld, vlanPrivateCommunityTable=vlanPrivateCommunityTable, rldot1qVlanStaticNameTable=rldot1qVlanStaticNameTable, vlanPrivateEdgeUplink=vlanPrivateEdgeUplink, vlanPrivateMapPrimaryVid=vlanPrivateMapPrimaryVid, vlanSubnetRangeAddr=vlanSubnetRangeAddr, vlanPortModeTable=vlanPortModeTable, vlanAsymmetricEnabled=vlanAsymmetricEnabled, vlanPrivateCommunityStatus=vlanPrivateCommunityStatus, vlanSendUnknownToAllPorts=vlanSendUnknownToAllPorts, vlanSubnetPortRowStatus=vlanSubnetPortRowStatus, rldot1qVlanMembershipTypeEntry=rldot1qVlanMembershipTypeEntry, vlanTriplePlayMulticatTvEntry=vlanTriplePlayMulticatTvEntry, vlanVoiceAgingTimeout=vlanVoiceAgingTimeout, vlanMaxTableNumber=vlanMaxTableNumber, vlanDefaultExtManagment=vlanDefaultExtManagment, vlanVoiceOUISetToDefault=vlanVoiceOUISetToDefault, vlanRsvlMapSecondaryVid=vlanRsvlMapSecondaryVid, vlanSubnetRangeTable=vlanSubnetRangeTable, PYSNMP_MODULE_ID=vlan, vlanMacBaseVlanGroupRowStatus=vlanMacBaseVlanGroupRowStatus, vlanSubnetRangeGroupId=vlanSubnetRangeGroupId, vlanVoiceOUIDescription=vlanVoiceOUIDescription, vlanSpecialTagVID=vlanSpecialTagVID, vlanPortModeExtTable=vlanPortModeExtTable, vlanMacBaseVlanPortGroupId=vlanMacBaseVlanPortGroupId, vlanTrunkPortModeEntry=vlanTrunkPortModeEntry, vlanNameTag=vlanNameTag, rldot1qPortVlanStaticEgressList2049to3072=rldot1qPortVlanStaticEgressList2049to3072, vlanPrivateMapEntry=vlanPrivateMapEntry, vlanVoiceTable=vlanVoiceTable, rldot1qPortVlanStaticTable=rldot1qPortVlanStaticTable, rldot1qPortVlanStaticForbiddenList3073to4094=rldot1qPortVlanStaticForbiddenList3073to4094, vlanAccessPortModeMcstTvVlanId=vlanAccessPortModeMcstTvVlanId, rldot1qPortVlanStaticForbiddenList1025to2048=rldot1qPortVlanStaticForbiddenList1025to2048, vlanSubnetPortTable=vlanSubnetPortTable, vlanDefaultTaggedPorts=vlanDefaultTaggedPorts, vlanPortModeExtStatus=vlanPortModeExtStatus, vlanInetTriplePlayMulticastTvMulticastTvVID=vlanInetTriplePlayMulticastTvMulticastTvVID, vlanDynamicVlanSupported=vlanDynamicVlanSupported, vlanRsvlMapEntry=vlanRsvlMapEntry, vlanDynamicVlanTable=vlanDynamicVlanTable, vlanPrivateEdgeGroupEntry=vlanPrivateEdgeGroupEntry, vlanRsvlMapTable=vlanRsvlMapTable, rlPortVlanTriplePlayMulticastTvEntry=rlPortVlanTriplePlayMulticastTvEntry, vlanTrunkPortModeTable=vlanTrunkPortModeTable, vlanTriplePlayMulticastTvMulticastTvVID=vlanTriplePlayMulticastTvMulticastTvVID, vlanMacBaseVlanGroupTable=vlanMacBaseVlanGroupTable, rldot1qPortVlanStaticForbiddenList2049to3072=rldot1qPortVlanStaticForbiddenList2049to3072, vlanPrivateEdgeGroupSource=vlanPrivateEdgeGroupSource, vlanDefault=vlanDefault, rldot1qVlanStaticListIndex=rldot1qVlanStaticListIndex, rldot1qPortVlanStaticUntaggedEgressList3073to4094=rldot1qPortVlanStaticUntaggedEgressList3073to4094, vlanTriplePlayTable=vlanTriplePlayTable, vlanSpecialTagCurrentReserved=vlanSpecialTagCurrentReserved, rldot1qPortVlanStaticUntaggedEgressList2049to3072=rldot1qPortVlanStaticUntaggedEgressList2049to3072, vlanSpecialTagCurrentEntry=vlanSpecialTagCurrentEntry, vlanPrivateOldStatus=vlanPrivateOldStatus, vlanTriplePlayMulticastTvVID=vlanTriplePlayMulticastTvVID, vlanDot1vSupported=vlanDot1vSupported, vlanSpecialTagTable=vlanSpecialTagTable, rldot1qVlanMembershipTypeBitmap=rldot1qVlanMembershipTypeBitmap, vlanMacBaseVlanGroupId=vlanMacBaseVlanGroupId, vlanInetTriplePlayMulticastTvMulticastTvPortList=vlanInetTriplePlayMulticastTvMulticastTvPortList, vlanMacBaseVlanMacMask=vlanMacBaseVlanMacMask, vlanSwitchPortModeCategory=vlanSwitchPortModeCategory, rlPortVlanTriplePlayMulticastTvTable=rlPortVlanTriplePlayMulticastTvTable, vlanInetTriplePlayEntry=vlanInetTriplePlayEntry, vlanPrivateEdgeStatus=vlanPrivateEdgeStatus, vlanPortModeExtState=vlanPortModeExtState, vlanMacBaseVlanGroupEntry=vlanMacBaseVlanGroupEntry, vlanDefaultSupported=vlanDefaultSupported, vlanSubnetPortEntry=vlanSubnetPortEntry, vlanPrivateTableOld=vlanPrivateTableOld, vlanTriplePlayMulticastTvTable=vlanTriplePlayMulticastTvTable, vlanCustomerPortModeMtvList1to1024=vlanCustomerPortModeMtvList1to1024, vlanVoiceOUITable=vlanVoiceOUITable, vlanSpecialTagStatus=vlanSpecialTagStatus, vlanDynamicVlanTag=vlanDynamicVlanTag, vlanVoicePortCurrentMembership=vlanVoicePortCurrentMembership, vlanInetTriplePlayMulticatTvEntry=vlanInetTriplePlayMulticatTvEntry, vlanSubnetRangeMask=vlanSubnetRangeMask, rldot1qVlanStaticList3073to4094=rldot1qVlanStaticList3073to4094, rldot1qPortVlanStaticEntry=rldot1qPortVlanStaticEntry, vlanPrivateMapPrimaryPorts=vlanPrivateMapPrimaryPorts, vlanNameIfIndex=vlanNameIfIndex, vlanSubnetPortGroupId=vlanSubnetPortGroupId, vlanNameName=vlanNameName, rldot1qVlanStaticListTable=rldot1qVlanStaticListTable, vlanTriplePlayEntry=vlanTriplePlayEntry, vlanMacBaseVlanPortEntry=vlanMacBaseVlanPortEntry, vlanSubnetPortGroupVid=vlanSubnetPortGroupVid, rlPortVlanTriplePlayMulticastTvList2049to3072=rlPortVlanTriplePlayMulticastTvList2049to3072, vlanDynamicVlanMacAddress=vlanDynamicVlanMacAddress, vlanCustomerPortModeMtvList2049to3072=vlanCustomerPortModeMtvList2049to3072, vlanPrivateEdgeVersion=vlanPrivateEdgeVersion, vlanPortModeState=vlanPortModeState, vlanPrivateEdgeGroupIfIndexEntry=vlanPrivateEdgeGroupIfIndexEntry, vlanPrivateOldIsolatedVlanTag=vlanPrivateOldIsolatedVlanTag, vlanPrivateMapTable=vlanPrivateMapTable, vlanVoicePortEntry=vlanVoicePortEntry, vlanVoicePriorityRemark=vlanVoicePriorityRemark, vlanMacBaseVlanPortRowStatus=vlanMacBaseVlanPortRowStatus, vlanTrunkModeList1to1024=vlanTrunkModeList1to1024, rldot1qPortVlanStaticEgressList1025to2048=rldot1qPortVlanStaticEgressList1025to2048, vlanAccessPortModeTable=vlanAccessPortModeTable, vlanRsvlEnable=vlanRsvlEnable, rldot1qVlanStaticNameEntry=rldot1qVlanStaticNameEntry, vlanPrivateMapSecondaryVid=vlanPrivateMapSecondaryVid, vlanTriplePlayInnerVID=vlanTriplePlayInnerVID, vlanVoiceOUIPrefix=vlanVoiceOUIPrefix, rldot1qPortVlanStaticForbiddenList1to1024=rldot1qPortVlanStaticForbiddenList1to1024, vlanInetTriplePlayMulticastTvVID=vlanInetTriplePlayMulticastTvVID, vlanPrivateMapPrimaryOperPorts=vlanPrivateMapPrimaryOperPorts, vlanSpecialTagCurrentActive=vlanSpecialTagCurrentActive, vlanPortModeContextValue=vlanPortModeContextValue, vlanSpecialTagCurrentTable=vlanSpecialTagCurrentTable, vlanVoicePriority=vlanVoicePriority, vlanVoiceOUIEntry=vlanVoiceOUIEntry, vlanVoiceEntry=vlanVoiceEntry, vlanPrivateSupported=vlanPrivateSupported, rlPortVlanTriplePlayMulticastTvList1025to2048=rlPortVlanTriplePlayMulticastTvList1025to2048, vlanSubnetRangeEntry=vlanSubnetRangeEntry, vlanTrunkPortModeNativeVlanId=vlanTrunkPortModeNativeVlanId, vlanPrivateType=vlanPrivateType, vlanInetTriplePlayMulticastTvTable=vlanInetTriplePlayMulticastTvTable, rldot1qPortVlanStaticUntaggedEgressList1to1024=rldot1qPortVlanStaticUntaggedEgressList1to1024, vlanVoicePortQosMode=vlanVoicePortQosMode, vlanPrivateEdgeGroupIfIndexTable=vlanPrivateEdgeGroupIfIndexTable, rldot1qVlanStaticList1to1024=rldot1qVlanStaticList1to1024, vlanCustomerPortModeEntry=vlanCustomerPortModeEntry, vlanPrivateCommunityEntry=vlanPrivateCommunityEntry, vlanSpecialTagCurrentVID=vlanSpecialTagCurrentVID, rldot1qVlanMembershipTypeTable=rldot1qVlanMembershipTypeTable, vlanPrivateEdgeGroupStatus=vlanPrivateEdgeGroupStatus, vlanCustomerPortModeMtvList3073to4094=vlanCustomerPortModeMtvList3073to4094, vlanMulticastTvStatus=vlanMulticastTvStatus, rlPortVlanTriplePlayMulticastTvList3073to4094=rlPortVlanTriplePlayMulticastTvList3073to4094, vlanSpecialTagEntry=vlanSpecialTagEntry, vlanPortModeExtEntry=vlanPortModeExtEntry, vlanSwitchPortModeEntry=vlanSwitchPortModeEntry, vlanPrivateMapSecondaryPorts=vlanPrivateMapSecondaryPorts, rldot1qPortVlanStaticUntaggedEgressList1025to2048=rldot1qPortVlanStaticUntaggedEgressList1025to2048, vlanInetTriplePlayRowStatus=vlanInetTriplePlayRowStatus, vlanPrivatePrimaryVid=vlanPrivatePrimaryVid, vlanTriplePlayRowStatus=vlanTriplePlayRowStatus, vlanCustomerPortModeVlanId=vlanCustomerPortModeVlanId, vlanPortModeContextEntry=vlanPortModeContextEntry, vlanPrivateVid=vlanPrivateVid, vlanPortModeContextTable=vlanPortModeContextTable, rlPortVlanTriplePlayMulticastTvList1to1024=rlPortVlanTriplePlayMulticastTvList1to1024, vlanDynamicVlanEntry=vlanDynamicVlanEntry, vlanPrivateCommunityVlanTag=vlanPrivateCommunityVlanTag, vlanSubnetRangeRowStatus=vlanSubnetRangeRowStatus, vlanPrivateEdgeGroupIfIndexDomainID=vlanPrivateEdgeGroupIfIndexDomainID, vlanVoicePortVlanIndex=vlanVoicePortVlanIndex, vlanNameTable=vlanNameTable, vlanVoiceOUIEntryRowStatus=vlanVoiceOUIEntryRowStatus, vlanVoicePortEnable=vlanVoicePortEnable, vlanVoicePortSecure=vlanVoicePortSecure, vlanPrivateEntry=vlanPrivateEntry, vlanPrivateMapSecondaryOperPorts=vlanPrivateMapSecondaryOperPorts, rldot1qVlanStaticName=rldot1qVlanStaticName, vlanMibVersion=vlanMibVersion, vlanPrivateTable=vlanPrivateTable, vlanTrunkModeList3073to4094=vlanTrunkModeList3073to4094, vlanCustomerPortModeMtvList1025to2048=vlanCustomerPortModeMtvList1025to2048, vlanMulticastTvVID=vlanMulticastTvVID, vlanTrunkModeList1025to2048=vlanTrunkModeList1025to2048, vlanRsvlMapPrimaryVid=vlanRsvlMapPrimaryVid, rldot1qVlanStaticListEntry=rldot1qVlanStaticListEntry, vlanVoiceRowStatus=vlanVoiceRowStatus, vlanVoice=vlanVoice, rldot1qVlanStaticList1025to2048=rldot1qVlanStaticList1025to2048, vlanInetTriplePlayInnerVID=vlanInetTriplePlayInnerVID, vlanDynamicVlanStatus=vlanDynamicVlanStatus, vlanMulticastTvEntry=vlanMulticastTvEntry, vlanInetTriplePlayInetAddressType=vlanInetTriplePlayInetAddressType, vlanPrivateStatus=vlanPrivateStatus)
|
_base_ = [
'../_base_/models/mask_rcnn_r50_fpn.py',
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
rpn_head=dict(
anchor_generator=dict(type='LegacyAnchorGenerator', center_offset=0.5),
bbox_coder=dict(type='LegacyDeltaXYWHBBoxCoder'),
loss_bbox=dict(type='SmoothL1Loss', beta=1.0 / 9.0, loss_weight=1.0)),
roi_head=dict(
bbox_roi_extractor=dict(
type='SingleRoIExtractor',
roi_layer=dict(
type='RoIAlign', out_size=7, sample_num=2, aligned=False)),
mask_roi_extractor=dict(
type='SingleRoIExtractor',
roi_layer=dict(
type='RoIAlign', out_size=14, sample_num=2, aligned=False)),
bbox_head=dict(
bbox_coder=dict(type='LegacyDeltaXYWHBBoxCoder'),
loss_bbox=dict(type='SmoothL1Loss', beta=1.0, loss_weight=1.0))))
# model training and testing settings
train_cfg = dict(
rpn_proposal=dict(nms_post=2000, max_num=2000),
rcnn=dict(assigner=dict(match_low_quality=True)))
|
# TODO: Finish exception implementation, with single exception used to manage hiding error details from user in UI
class GigantumException(Exception):
"""Any Exception arising from inside the Labbook class will be cast as a LabbookException.
This is to avoid having "except Exception" clauses in the client code, and to avoid
having to be aware of every sub-library that is used by the Labbook and the exceptions that those raise.
The principle idea behind this is to have a single catch for all Labbook-related errors. In the stack trace you
can still observe the origin of the problem."""
pass
class GigantumLockedException(GigantumException):
""" Raised when trying to acquire a Labbook lock when lock
is already acquired by another process and failfast flag is set to
True"""
pass
|
"""
cmd.do('set ellipsoid_color, ${1:color};')
cmd.do('${0}')
"""
cmd.do('set ellipsoid_color, color;')
# Description: Set ellipsoid color.
# Source: placeHolder
|
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# mysql connect info 待压测数据库信息
mydb_info = 'testdb'
mydb_ip = '1.1.3.111'
mydb_usr = 'compare'
mydb_pass = 'ZAQ_xsw2'
mydb_port = 3306
mydb_db = 'otpstest'
#待压测mysql主机信息
os_data_ip = '1.1.3.200'
os_user = 'oracle'
os_pass = 'oracle22222'
# mysql资料库信息
my_ip = '1.1.3.111'
my_usr = 'compare'
my_pass = 'ZAQ_xsw2'
my_port = 3306
my_db = 'otpstest'
#
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: illuz <iilluzen[at]gmail.com>
# File: AC_stack_dict_n.py
# Create Date: 2015-03-04 19:47:43
# Usage: AC_stack_dict_n.py
# Descripton:
class Solution:
# @return a boolean
def isValid(self, s):
mp = {')': '(', ']': '[', '}': '{'}
stk = []
for ch in s:
if ch in '([{':
stk.append(ch)
else:
if not stk or mp[ch] != stk.pop():
return False
return not stk
|
class Button(object):
"""Button object, used for creating button messages"""
def __init__(self, type=None, title="", payload=""):
# Type: request param key
valid_types = {
'web_url': 'url',
'postback': 'payload'
}
assert type in valid_types, "Type %s is not a Button type" \
% (type,)
self.title = title
self.type = type
self.typekey = valid_types[type]
self.payload = payload
def to_json(self):
request_payload = {}
request_payload[self.typekey] = self.payload
request_payload['title'] = self.title
request_payload['type'] = self.type
return request_payload
class Element(object):
"""Elements are features of Templates"""
def __init__(self, title="", subtitle="", image_url="", buttons=None):
self.title = title
self.image_url = image_url
self.subtitle = subtitle
self.buttons = buttons
def to_json(self):
if self.buttons:
if not all(isinstance(button, Button)
for button in self.buttons):
raise TypeError("Buttons list contained non-type Button")
buttons = [button.to_json() for button in self.buttons]
payload = {
'title': self.title,
'image_url': self.image_url,
'subtitle': self.subtitle,
'buttons': buttons
}
return payload
class ReceiptElement(Element):
def __init__(self, quantity=None, price=None,
currency="CAD", **kwargs):
self.kwargs = kwargs
super(ReceiptElement, self).__init__(**self.kwargs)
if price is None:
raise ValueError("Incorrect keyword-argument given for type ReceiptElement, needed: price")
self.quantity = quantity
self.price = price
self.currency = currency
def to_json(self):
payload = {
'title': self.title,
'subtitle': self.subtitle,
'quantity': self.quantity,
'price': self.price,
'currency': self.currency,
'image_url': self.image_url
}
return payload
|
"""
Equation:
x^3 - 2400x^2 - 3x + 2 = 0
x = [0, ]
"""
def bisection(lb, ub, e, iter):
lv = lb**3-2400*(lb**2)-3*lb+2
uv = ub**3-2400*(ub**2)-3*ub+2
if lv*uv > 0:
print("No root found")
return
prev_mid = (lb+ub)/2
f_lb = lb**3-2400*(lb**2)-3*lb+2
f_mid = prev_mid**3-2400*(prev_mid**2)-3*prev_mid+2
if f_lb*f_mid < 0 :
ub = prev_mid
elif f_lb*f_mid > 0:
lb = prev_mid
else:
return prev_mid
for _ in range(iter):
mid = (lb+ub)/2
f_lb = lb**3-2400*(lb**2)-3*lb+2
f_mid = mid**3-2400*(mid**2)-3*mid+2
if f_lb*f_mid < 0 :
ub = mid
elif f_lb*f_mid > 0:
lb = mid
else:
return mid
rel_error = abs(mid - prev_mid)/mid
if rel_error <= e:
return mid
else:
prev_mid = mid
#calling bisection method
ans = bisection(0, 1, 0.005, 20)
if ans is not None:
print("Molar dissociation: " + str(ans))
|
f = open('sample-input.txt')
o = open('sample-output.txt', 'w')
t = int(f.readline().strip())
for i in xrange(1, t + 1):
o.write("Case #{}: ".format(i))
n = int(f.readline().strip())
x = [int(j) for j in f.readline().strip().split()]
y = [int(j) for j in f.readline().strip().split()]
o.write("\n")
|
"""Undocumented Module"""
__all__ = []
## from DirectObject import *
## from pandac.PandaModules import *
##
## class PandaObject(DirectObject):
## """
## This is the class that all Panda/Show classes should inherit from
## """
## pass
|
class Users:
def __init__(self, id, name, surname, password, email, changepass, read_comment, read_like):
self.id = id
self.name = name
self.surname = surname
self.password = password
self.email = email
self.changepass = changepass
self.read_comment = read_comment
self.read_like = read_like
class UsersPass:
def __init__(self, id, password):
self.id = id
self.password = password
|
M = int(input())
m1 = set(map(int, input().split()))
N = int(input())
n1 = set(map(int, input().split()))
output = list(m1.union(n1).difference(m1.intersection(n1)))
output.sort()
for i in output:
print(i)
|
"""
Version of drf_editable
"""
__version__ = '0.0.1'
|
"""A series of modules containing dictionaries that can be used in run.py"""
def test_person_set_1():
person1 = {
"name": "Steven",
"age": 12,
"likes": "action",
"availability": 3
}
person2 = {
"name": "Jane",
"age": 23,
"likes": "romance",
"availability": 2
}
person3 = {
"name": "Alice",
"age": 18,
"likes": "romance",
"availability": 2
}
person4 = {
"name": "Henry",
"age": 19,
"likes": "horror",
"availability": 1
}
person5 = {
"name": "Alex",
"age": 22,
"likes": "comedy",
"availability": 3
}
people = [person1, person2, person3, person4, person5]
return people
|
class ALonelyClass:
'''
A multiline class docstring.
'''
def AnEquallyLonelyMethod(self):
'''
A multiline method docstring'''
pass
def one_function():
'''This is a docstring with a single line of text.'''
pass
def shockingly_the_quotes_are_normalized():
'''This is a multiline docstring.
This is a multiline docstring.
This is a multiline docstring.
'''
pass
def foo():
"""This is a docstring with
some lines of text here
"""
return
def baz():
'''"This" is a string with some
embedded "quotes"'''
return
def poit():
"""
Lorem ipsum dolor sit amet.
Consectetur adipiscing elit:
- sed do eiusmod tempor incididunt ut labore
- dolore magna aliqua
- enim ad minim veniam
- quis nostrud exercitation ullamco laboris nisi
- aliquip ex ea commodo consequat
"""
pass
def under_indent():
"""
These lines are indented in a way that does not
make sense.
"""
pass
def over_indent():
"""
This has a shallow indent
- But some lines are deeper
- And the closing quote is too deep
"""
pass
def single_line():
"""But with a newline after it!
"""
pass
def this():
r"""
'hey ho'
"""
def that():
""" "hey yah" """
def and_that():
"""
"hey yah" """
def and_this():
'''
"hey yah"'''
def believe_it_or_not_this_is_in_the_py_stdlib(): '''
"hey yah"'''
def shockingly_the_quotes_are_normalized_v2():
'''
Docstring Docstring Docstring
'''
pass
# output
class ALonelyClass:
'''
A multiline class docstring.
'''
def AnEquallyLonelyMethod(self):
'''
A multiline method docstring'''
pass
def one_function():
'''This is a docstring with a single line of text.'''
pass
def shockingly_the_quotes_are_normalized():
'''This is a multiline docstring.
This is a multiline docstring.
This is a multiline docstring.
'''
pass
def foo():
"""This is a docstring with
some lines of text here
"""
return
def baz():
'''"This" is a string with some
embedded "quotes"'''
return
def poit():
"""
Lorem ipsum dolor sit amet.
Consectetur adipiscing elit:
- sed do eiusmod tempor incididunt ut labore
- dolore magna aliqua
- enim ad minim veniam
- quis nostrud exercitation ullamco laboris nisi
- aliquip ex ea commodo consequat
"""
pass
def under_indent():
"""
These lines are indented in a way that does not
make sense.
"""
pass
def over_indent():
"""
This has a shallow indent
- But some lines are deeper
- And the closing quote is too deep
"""
pass
def single_line():
"""But with a newline after it!"""
pass
def this():
r"""
'hey ho'
"""
def that():
""" "hey yah" """
def and_that():
"""
"hey yah" """
def and_this():
'''
"hey yah"'''
def believe_it_or_not_this_is_in_the_py_stdlib():
'''
"hey yah"'''
def shockingly_the_quotes_are_normalized_v2():
'''
Docstring Docstring Docstring
'''
pass
|
## UVSError handling guidelines:
# 1- don't use OOP exceptions, NEVER NEVER NEVER use inheritance in exceptions
# i dont like exception X that inherits from Y and 2mrw is a G then suddenly catches an F blah blah
# doing the above makes it harder not easier to figure out what the hell happened.
# just use one exception class. return a descriptive msg as to what happened. and if more specifity is needed
# associate an error code with that exception and enumerate the errors
# (i.e. 1 means permission denied, 2 means mac failed ..... ) this is so far not needed.
# if it was needed we code add something like uvs_error_no field to this class and enumerate the
# the different error codes in this module.
# (python shamefully has no constants but there is trick to be done with properties, and raise Error on set
# that pretty much gives us the same thing as language enforced constants, google it)
#
# 2- exceptions are not return values, dont ever use exceptions to communicate results from a sub-routine.
# exceptions are meant to indicate a catastrophic situation that required an immediate termination
# to whatever was happening. for example if a key was not found do NOT raise an exception, return None
# an exception must terminate something. sometimes it should terminate the process. sometimes
# it terminates a thread, sometimes it should terminate a web request. its not a return value.
# it should be used like golang's panic call.
#
#
class UVSError(Exception):
pass
|
"""
Module: 'cmath' on micropython-maixpy-0.6.2-66
"""
# MCU: {'ver': '0.6.2-66', 'build': '66', 'sysname': 'MaixPy', 'platform': 'MaixPy', 'version': '0.6.2', 'release': '0.6.2', 'port': 'MaixPy', 'family': 'micropython', 'name': 'micropython', 'machine': 'Sipeed_M1 with kendryte-k210', 'nodename': 'MaixPy'}
# Stubber: 1.3.9
def cos():
pass
e = 2.718282
def exp():
pass
def log():
pass
def log10():
pass
def phase():
pass
pi = 3.141593
def polar():
pass
def rect():
pass
def sin():
pass
def sqrt():
pass
|
def SumOfTwoNums(array , target):
"""
Get THe Sum of Two Numbers from an array to match the required target
"""
#sort the array
array.sort()
NumSums = []
left = 0
right = len(array)-1
while left < right:
currSum = array[left] + array[right]
# print(left , right , currSum)
if currSum == target:
NumSums.append((array[left] , array[right]))
right -=1
left +=1
elif currSum > target:
right -=1
elif currSum < target:
left +=1
else:
print("passs")
pass
return NumSums
# using iterations
def GetTwoSumByIteration(array , target):
NumSums =[]
for i in range(len(array)-1):
for j in range(i+1 , len(array)):
currSum = array[i]+array[j]
if currSum == target:
NumSums.append((array[i],array[j]))
return NumSums
res = SumOfTwoNums([3,5,-5,8,11,1,-1,6 ,4] , 10)
print(res)
res1 = GetTwoSumByIteration([3,5,-5,8,11,1,-1,6 ,4] , 10)
print(res1)
|
# This is an input class. Do not edit.
class LinkedList:
def __init__(self, value):
self.value = value
self.next = None
def reverseLinkedList(head):
# The trick of the problem is that we need to use three pointers, not two (which is the common pattern).
# the first and third pointer act as a reference and the second one (P2) is the visited one. So, the condition is that when p2 is null, then we have
# reversed the linked list. At the beginning we start with P1 = null (there's nothing on the left of P2), P2 as first element and p3 and the second one.
# in order, the algorithm should do the following:
# p2.next = p1
# p1 = p2
# p2 = p3
# p3 = p3.next
# Initialisation of p1 and p2
p1, p2 = None, head
while p2 is not None:
# why we do this here?
# p2 as the tail of the LL, and so p3 is null; so we are doing None.next which will give an attr error
# p3 = p2.next, we could do p3 = p3.next if not None else p3
p3 = p2.next
p2.next = p1
p1 = p2
p2 = p3
# when p2 is pointing to none, p1 is the final element in the list, which is the new head!
return p1 |
# cycle.py
def cycle(iterable):
index = 0
length = len(iterable)
while True:
for index in range(length):
yield index
endless = cycle(range(0, 10))
for item in endless:
print(item)
|
# Copyright 2021 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Defines create_rule and create_dep macros"""
def create_rule(impl, attrs = {}, deps = [], fragments = [], remove_attrs = [], **kwargs):
"""Creates a rule composed from dependencies.
Args:
impl: The implementation function of the rule, taking as parameters the
rule ctx followed by the executable function of each dependency
attrs: Dict of attributes required by the rule. These will override any
conflicting attributes specified by dependencies
deps: Dict of name->dependency mappings, with each dependency struct
created using 'create_dep'. The keys of this dict are the parameter
names received by 'impl'
fragments: List of configuration fragments required by the rule
remove_attrs: List of attributes to remove from the implementation.
**kwargs: extra args to be passed for rule creation
Returns:
The composed rule
"""
merged_attrs = dict()
fragments = list(fragments)
merged_mandatory_attrs = []
for dep in deps:
merged_attrs.update(dep.attrs)
fragments.extend(dep.fragments)
merged_mandatory_attrs.extend(dep.mandatory_attrs)
merged_attrs.update(attrs)
for attr in remove_attrs:
if attr in merged_mandatory_attrs:
fail("Cannot remove mandatory attribute %s" % attr)
merged_attrs.pop(attr)
return rule(
implementation = impl,
attrs = merged_attrs,
fragments = fragments,
**kwargs
)
def create_dep(call, attrs = {}, fragments = [], mandatory_attrs = None):
"""Combines a dependency's executable function, attributes, and fragments.
Args:
call: the executable function
attrs: dict of required rule attrs
fragments: list of required configuration fragments
mandatory_attrs: list of attributes that can't be removed later
(when not set, all attributes are mandatory)
Returns:
The struct
"""
return _create_dep(call, attrs, fragments, mandatory_attrs if mandatory_attrs else attrs.keys())
def _create_dep(call, attrs = {}, fragments = [], mandatory_attrs = []):
return struct(
call = call,
attrs = attrs,
fragments = fragments,
mandatory_attrs = mandatory_attrs,
)
def create_composite_dep(merge_func, *deps):
"""Creates a dependency struct from multiple dependencies
Args:
merge_func: The executable function to evaluate the dependencies.
*deps: The dependencies to compose provided as keyword args
Returns:
A dependency struct
"""
merged_attrs = dict()
merged_frags = []
merged_mandatory_attrs = []
for dep in deps:
merged_attrs.update(dep.attrs)
merged_frags.extend(dep.fragments)
merged_mandatory_attrs.extend(dep.mandatory_attrs)
return _create_dep(
call = merge_func,
attrs = merged_attrs,
fragments = merged_frags,
mandatory_attrs = merged_mandatory_attrs,
)
|
def oddTuples(aTup):
'''
aTup: a tuple
returns: tuple, every other element of aTup.
'''
# using tuple slicing method
return aTup[0: :2]
|
mylang='fr'
family = 'wikipedia'
usernames['wikipedia']['fr']=u'Arktest'
console_encoding = 'utf-8'
|
#!/usr/bin/python3
"""Square class creation
"""
class Square:
"""Bypass attributes or methods declaration
"""
pass
|
'''
@author: Pranshu Aggarwal
@problem: https://hack.codingblocks.com/app/practice/1/285/problem
Algorithm to Generate(arr, n):
for row:=0 to n step by 1,
for col:=0 to row + 1 step by 1,
Set arr[row][col] = 1 if column is 0 or equals row
Set arr[row][col] = (Sum of Diagonally Previous element and Upper previous element) if row > 1 and col > 0
Algorithm to Print(n):
for row:=0 to n step by 1
for col:=0 to (n - row) step by 1, Print(" ")
for col:=0 to (row + 1) step by 1,
for i:=0 to (4 - number of digits of n) step by 1, Print(" ")
Print(arr[row][col])
Print(newline)
'''
def generate_pascal_triangle(n):
arr = [[0 for _ in range(0, n)] for _ in range(0, n)]
arr[0][1] = 1
for row in range(0, n):
for col in range(0, row + 1):
if col == 0 or col == row: arr[row][col] = 1
if row > 1 and col > 0: arr[row][col] = arr[row - 1][col - 1] + arr[row - 1][col]
return arr
def pascal_triangle1(n):
if n == 1 or n == 0:
print(1)
return
arr = generate_pascal_triangle(n)
for row in range(0, n):
for col in range(0, n - row): print(" ", end='')
for col in range(0, row + 1):
for _ in range(0, 4 - len(str(arr[row][col]))): print(" ", end='')
print(arr[row][col], end='')
print()
if __name__ == "__main__":
n = int(input().strip())
pascal_triangle1(n) |
#!/usr/bin/env python3
# https://codeforces.com/problemset/problem/1332/A
def f(l):
a,c = l
p = 1
r = 0
while a>0 or c>0:
r += p*((c%3-a%3)%3)
p *= 3
c = c//3
a = a//3
return r
l = list(map(int,input().split()))
print(f(l))
|
a = 0
b = 1
n = int(input())
for i in range(n):
print(a,end=",")
print(b,end=",")
a = a+b
b = b+a
print("\b")
|
DATASET_REGISTRY = {}
def register_dataset(name: str):
def register_dataset_func(func):
DATASET_REGISTRY[name] = func()
return register_dataset_func
|
token = "bot_token"
admins = [admin_id]
api_id = 2040
api_hash = "b18441a1ff607e10a989891a5462e627"
|
a = [3, 4, 5, 6]
b = ['a', 'b', 'c', 'd']
def zipper(a,b):
newZip = []
if len (a) == len(b):
for i in range(len(a)):
newZip.append([a[i], b[i]])
print (newZip)
if len(a)!= len(b):
print("lists do not match")
zipper(a,b)
|
c = get_config()
c.TerminalInteractiveShell.confirm_exit = False
c.TerminalInteractiveShell.editing_mode = 'vi'
|
class Player:
def __init__(self, socket, name, color, board):
self.name = name
self.board = board
self.socket = socket
self.lastMove = []
self.isTurn = False
#self.color = color
self.color = 'w'
async def init(self):
await self.board.addPlayer(self)
def __str__(self):
return self.name
def __repr__(self):
return str(self.name)
|
# visit: https://imgur.com/a/oemBqyv
count = 0
total = 0
# Handle any exceptions using try/except
try:
def main():
# Initialize variables
count = 0
total = 0
# Opens the Section1.txt file.
infile = open("Section1.txt", "r")
# Reads the numbers in the file into a list
num = infile.readlines()
for num in infile:
number = float(num)
total = total + number
count = count + 1
average = total / count
# Close the file
infile.close
# Output: display the number of the scores, and the average of the scores
print("Number of scores in Section 1: ", count)
print("Average: ", format((average), ".2f"), "Letter Grade: ")
total2 = 0
count2 = 0
infile2 = open("Section2.txt.", "r")
for num in infile2:
number = float(num)
total2 = total2 + number
count2 = count2 + 1
average2 = total2 / count2
infile2.close
print("Number of scores in Section 2: ", count2)
print("Average: ", format((average2), ".2f"), "Letter Grade: ", score)
total_count = count1 + count2
total_average = (total1 + total2) / total_count
print("Numbers of score in both sections combined: ", total_count)
print("Average: ", format((total_average), ".2f"), "Letter grade: ", score)
scoring(grade)
def scoring(grade):
# Create outputs for numerical scores, make "else" anything below 0 or over 100
if 89.5 <= grade <= 100:
print("The letter grade is A")
elif 79.5 <= grade <= 89.4:
print("The letter grade is B")
elif 69.5 <= grade <= 79.4:
print("The letter grade is C")
elif 59.5 <= grade <= 69.4:
print("The letter grade is D")
elif 0 <= grade <= 59.4:
print("The letter grade is F")
else:
print("invalid score")
main()
except IOError:
print("An error occurred trying to open the file")
except ValueError:
print("Non-numeric data found in the file")
except Exception as err:
print(err)
|
# V0
# V1
# https://www.jiuzhang.com/solution/fair-candy-swap/#tag-highlight-lang-python
class Solution:
"""
@param A: an array
@param B: an array
@return: an integer array
"""
def fairCandySwap(self, A, B):
# Write your code here.
ans = []
sumA = sum(A)
sumB = sum(B)
A.sort()
B.sort()
tmp = sumA - (sumA + sumB) / 2
i = 0
j = 0
while i < len(A) and j < len(B):
if A[i] - B[j] == tmp:
ans.append(A[i])
ans.append(B[j])
break
elif A[i] - B[j] > tmp:
j += 1
elif A[i] - B[j] < tmp:
i += 1
return ans
# V1'
# https://blog.csdn.net/fuxuemingzhu/article/details/82013077
class Solution(object):
def fairCandySwap(self, A, B):
"""
:type A: List[int]
:type B: List[int]
:rtype: List[int]
"""
sum_A, sum_B, set_B = sum(A), sum(B), set(B)
target = (sum_A + sum_B) / 2
for a in A:
b = target - (sum_A - a)
if b >= 1 and b <= 100000 and b in set_B:
return [a, b]
# V2
# Time: O(m + n)
# Space: O(m + n)
class Solution(object):
def fairCandySwap(self, A, B):
"""
:type A: List[int]
:type B: List[int]
:rtype: List[int]
"""
diff = (sum(A)-sum(B))//2
setA = set(A)
for b in set(B):
if diff+b in setA:
return [diff+b, b]
return [] |
# PROBLEM LINK:- https://leetcode.com/problems/height-checker/
class Solution:
def heightChecker(self, heights: List[int]) -> int:
n = len(heights)
expected = heights.copy()
expected.sort()
c = 0
for i in range(0,n):
if heights[i] != expected[i]:
c += 1
return c
|
m = float(input('Informe os metros: '))
print(f'{m} metros equivale a: \n{m*0.001}km\n{m*0.01}hm\n{m*0.1:.1f}dam\n{m*10:.0f}dm\n{m*100:.0f}cm\n{m*1000:.0f}mm')
#km, hm, dam, m, dm, cm, mm |
__title__ = "feedler"
__description__ = "A dead simple parser"
__version__ = "0.0.2"
__author__ = "Victor Natschke"
__author_email__ = "[email protected]"
__license__ = "MIT"
__copyright__ = "Copyright 2020 Victor Natschke"
|
class Solution:
def InsertInterval(self, Interval, newInterval):
nums,mid = list(), 0
int_len = len(Interval)
for s,e in Interval:
if s < newInterval[0]:
nums.append([s,e])
mid += 1
else:
break
if not nums or nums[-1][1] < newInterval[0]:
nums.append(newInterval)
else:
nums[-1][1] = max(newInterval[1], nums[-1][1])
for s,e in Interval[mid:]:
if s > nums[-1][1]:
nums.append([s,e])
else:
nums[-1][1] = max(nums[-1][1], e)
return nums
if __name__ == "__main__":
a = Solution()
print(a.InsertInterval([[2,3],[6,9]], [5,7]))
print(a.InsertInterval([[1,2],[3,5],[6,7],[8,10],[12,16]], [4,8]))
print(a.InsertInterval([], [4,8]))
|
"""
问题描述:请从字符串中找出一个最长的不包含重复字符的子字符串,计算
该最长子字符串的长度。假设字符串中只含有'a~z'的字符。例如,在字符
串'arabcacfr'中,最长不含重复字符的子字符串是'acfr',长度为4
思路:
分别求必须以i(0<=i<=len-1)结尾的最长不含重复字符的子串长度
"""
class LongestSubStr:
def get_longest_substr(self, input_str):
length = len(input_str)
if length <= 1:
return length
dp = [0 for _ in range(length)]
dp[0] = 1
index = 1
while index < length:
if input_str[index] not in input_str[:index]:
dp[index] = dp[index-1] + 1
else:
pre_index = input_str.rindex(input_str[index], 0, index-1)
distance = index - pre_index
if dp[index-1] < distance:
dp[index] = dp[index-1] + 1
else:
dp[index] = distance
index += 1
return dp[length-1]
if __name__ == '__main__':
print(LongestSubStr().get_longest_substr('arabcacfr')) |
deployment = """
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {cfg[name_version]}-{cfg[name]}
namespace: {cfg[metadata][namespace]}
spec:
replicas: {cfg[replicas]}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
selector:
matchLabels:
app: {cfg[name_version]}-{cfg[name]}
template:
metadata:
labels:
app: {cfg[name_version]}-{cfg[name]}
annotations:
fluentbit.io/parser: "json"
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: {cfg[name_version]}-{cfg[name]}
imagePullSecrets:
- name: regcred
containers:
- name: {cfg[name]}
image: {cfg[image]}
imagePullPolicy: Always
ports:
- containerPort: {cfg[port]}
name: http
env: []
envFrom:
- secretRef:
name: {cfg[name_version]}-{cfg[name]}-{cfg[hash]}
livenessProbe:
httpGet:
path: {cfg[liveness_path]}
port: http
timeoutSeconds: 2
failureThreshold: 2
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: {cfg[readiness_path]}
port: http
initialDelaySeconds: 10
periodSeconds: 2
timeoutSeconds: 2
failureThreshold: 2
resources:
limits:
memory: "{cfg[mem_limit]}"
requests:
memory: "{cfg[mem_request]}"
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
capabilities:
drop:
- all
volumeMounts:
- mountPath: /tmp
name: tmpdir
volumes:
- name: tmpdir
emptyDir:
medium: Memory
"""
|
# Peter Thornton, 04 Mar 18
# Exercise 5
# Please complete the following exercise this week.
# Write a Python script that reads the Iris data set in and prints the four numerical values on each row in a nice format.
# That is, on the screen should be printed the petal length, petal width, sepal length and sepal width, and these values should have the decimal places aligned, with a space between the columns.
with open("iris.data.csv") as t:
for line in t:
print(line.split(',')[0], line.split(',')[1], line.split(',')[2], line.split(',')[3])
|
#! python3
"""[12] El General Manager rata - 23 Puntos:
Se recibirán el nombre del equipo, el número de integrantes y las
habilidades de cada uno de los jugadores.
Se deben devolver la alineación y la calificación total del equipo."""
coeficientes = ((0, 0.2, 0.45, 0.15, 0.2, 0),
(0, 0.45, 0.15, 0.35, 0.05, 0),
(0.2, 0.3, 0, 0.3, 0.1, 0.1),
(0.4, 0, 0, 0.05, 0.25, 0.30),
(0.2, 0, 0, 0, 0.3, 0.5))
nombreDelEquipo = input()[1:-1]
numeroDeJugadores = int(input()[1:-1])
jugadores = [input()[1:-1].split(" ", 1) for _ in range(numeroDeJugadores)]
listaAlineacion = []
for puesto in range(5):
opciones = []
for nombre, habilidades in jugadores:
if nombre in (i[0] for i in listaAlineacion): # Ya está cogido
continue
habilidades = [int(i) for i in habilidades.split(" ")]
valor = sum(habilidades[i] * coeficientes[puesto][i] for i in range(6))
opciones.append((nombre, valor))
listaAlineacion.append(max(opciones, key=lambda x: x[1]))
alineacion = " ".join(i[0] for i in listaAlineacion)
calificacion = round(sum(i[1] for i in listaAlineacion) / numeroDeJugadores)
print("Alineación de %s: %s. Calificación %d." % (nombreDelEquipo,
alineacion,
min(calificacion, 5)))
|
EPSILON = "epsilon"
K = "k"
MAX_VALUE = "max_value"
MIN_VALUE = "min_value"
ATTRIBUTE = "attribute"
NAME = "name"
SENSITIVITY_TYPE = "sensitivity_type"
ATTRIBUTE_TYPE = "attribute_type"
# window size is used in the disclosure risk calculation
# it indicates the % of the num of records in the dataset
WINDOW_SIZE = 1
# border margin is used in differential privacy anonymization
# it indicates the margin to be applied to the attribute domain
BORDER_MARGIN = 1.5
|
pdrop = 0.1
tau = 0.1
lengthscale = 0.01
N = 364
print(lengthscale ** 2 * (1 - pdrop) / (2. * N * tau)) |
class Delegator():
""" Class implementing Delegator pattern in childrens, who enable to
automaticaly use functions and methods from _delegate_subsystems, so
reduces boilerplate code
!!! be aware that Delegator can't delegate methods from childrens
which implements Delegator
"""
def __init__(self):
# prepare list of instances to delegate work to them
if not self._delegate_subsystems:
self._delegate_subsystems: list[object] = []
# prepare dict with subsystems and their methods
self._subsystems_dicts = [
{
"subsystem": s,
"methods": [
f for f in dir(s) if not f.startswith('_')
]
}
for s in self._delegate_subsystems
]
def __getattr__(self, func):
""" Enable to delegate all methods from subsystems to self """
def method(*args):
# get list of subsystems with specified method
results = list(filter(
lambda subsystem_data: func in subsystem_data["methods"],
self._subsystems_dicts))
# if some results, return that function to execute
if len(results) > 0:
return getattr(results[0]["subsystem"], func)(*args)
else:
# raise error if not found
raise AttributeError
return method
|
a = 1
b = 1
a = 1
b = 1
|
"""
Crafting.py
Inspired by: Craft3.pdf by John Arras
http://web.archive.org/web/20080211222642/http://www.cs.umd.edu/~jra/craft3.pdf
Intention: Implement a crafting system which can act as a suitable base for a procedurally-generated
society.
"""
# Crafting is the act of producing an object from resources by use of a recipe
# A Crafting Recipe must define Location, Participants, Resources, Tools, Time, and Results
# Example Craft structure from article
# Craft
# {
# int time;
# string resource_names;
# Craft_need *resource_list; // List of resources and quantities
# int num_resources;
# string skill_name;
# int skill_level;
# int percent_failure;
# string item_created_amount; // Allow for random number of items made.
# string item_created_name;
# int item_created_id;
# };
# Craft_need
# {
# int type;
# int in_object;
# int amount_needed;
# int *acceptable_objects;
# int num_acceptable_objects;
# int damage_amount;
# }
#
# Sample Recipe: Wood (1 to 10 logs)
# Tree Here
# Axe Wield
# Wood_Log Produce [1,10]
# TODO: Define Crafting Primitives
class Craft:
def __init__(self):
self.time = 1
self.needs = {}
self.failure_percent = 10
self.create_amount = 10
self.create_id = 0
raise NotImplementedError
class CraftNeeded:
def __init__(self):
self.type = 0
self.in_object = 0
self.amount = 0
raise NotImplementedError
|
class FrankiException(Exception):
pass
class FrankiInvalidFormatException(Exception):
pass
class FrankiFileNotFound(Exception):
pass
class FrankiInvalidFileFormat(Exception):
pass
__all__ = ("FrankiInvalidFormatException", "FrankiFileNotFound",
"FrankiInvalidFileFormat", "FrankiException")
|
T = int(input())
for i in range(T):
m, n, a, b = map(int, input().split())
count = 0
for num in range(m, n + 1):
if num % a == 0 or num % b == 0:
count += 1
print(count)
|
"""
Author: Darian T. Yang
Date of Creation: September 13th, 2021
Description:
"""
# Welcome to the WE-dap module!
|
# This problem was asked by Airbnb.
#
# Given a list of integers, write a function that returns the largest sum of non-adjacent numbers.
# Numbers can be 0 or negative.
# For example, [2, 4, 6, 2, 5] should return 13, since we pick 2, 6, and 5. [5, 1, 1, 5] should return 10,
# since we pick 5 and 5.
# Follow-up: Can you do this in O(N) time and constant space?
# Input examples
input_1 = [2, 4, 6, 2, 5] # return 13
input_2 = [5, 1, 1, 5] # return 10
input_3 = [2, 14, 6, 2, 15] # return 29
input_4 = [2, 5, 11, 8, 3] # return 16
input_5 = [90, 15, 10, 30, 100] # return 200
input_6 = [29, 51, 8, 10, 43, 28] # return 94
def largest_sum_adj(arr):
result = 0
size = len(arr)
# validate the input list. It must be a length greater than 2
if size > 2:
arr[2] += arr[0]
result = arr[2]
for i in range(3, size):
tmp = arr[i-3]
if arr[i-2] > arr[i-3]:
tmp = arr[i-2]
tmp_addition = tmp + arr[i]
arr[i] = tmp_addition
if tmp_addition > result:
result = tmp_addition
else:
print("The length of input list must be greater than 2")
return result
|
def status(bot, update, webcontrol):
chat_id = update.message.chat_id
code, text = webcontrol.execute('detection', 'status')
if code == 200:
bot.sendMessage(chat_id=chat_id, text=text)
else:
bot.sendMessage(chat_id=chat_id, text="Try it later")
|
blankpsl = """
A P P : C o u r i e r
T Y P E : S c h e m e L o g i c E d i t o r
F O R M A T : 1 . 0
V E R S I O N : 4 . 0 0
D O M A I N : 0 0 S e t t i n g s
S U B D O M A I N : 0 P S L S e t t i n g G r p 1
M O D E L : P 1 4 2 1 1 7 B 4 M 0 4 3 0 J
R E F E R E N C E :
D D B D E S C R I P T I O N F I L E :
F i l e c r e a t e d f r o m t e m p l a t e o n T h u r s d a y , D e c e m b e r 2 0 , 2 0 1 8 Â X @ +++++++++++++++++!!!!!!!!!!!!!!!!++++++++++++++++""""""""EEEEEEEEEEEEEEE+++++++++++++++++FFFFFFFFGGGGGGGGGGGGGGGG((((((((((((((((I$$$$$$$$$$$$$$$$$+$$$+$CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC+CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC$$$$$$$$$$$$$$$$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,,,,,,,,,,,,,,,,,+C$,$$,,$$CCCCCC$$$$$$$$$$$$CCC$$$$$$CCCC$$++++++++CCC$CC$$C+$CCC$$$$++++C+++++++++++++++++++++++CCCCCCCCCC$$$$$$$$CC++++++CCCCCC$C$$$C$$$$$CCC+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$CCCC$$$$+++++++$$$$$$$$$$$$$$$$$++++++++++++++--------------------------------////////////////////////////////////////////////////////////////11111111RRRRRRRR+++++++++++JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ+PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$CC+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Output R1 Output R2 Output R3 Output R4 Output R5 Output R6 Output R7 Output R8 Output R9 Output R10 Output R11 Output R12 Output R13 Output R14 Output R15 Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Input L1 Input L2 Input L3 Input L4 Input L5 Input L6 Input L7 Input L8 Input L9 Input L10 Input L11 Input L12 Input L13 Input L14 Input L15 Input L16 Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused LED 1 LED 2 LED 3 LED 4 LED 5 LED 6 LED 7 LED 8 Relay Cond 1 Relay Cond 2 Relay Cond 3 Relay Cond 4 Relay Cond 5 Relay Cond 6 Relay Cond 7 Relay Cond 8 Relay Cond 9 Relay Cond 10 Relay Cond 11 Relay Cond 12 Relay Cond 13 Relay Cond 14 Relay Cond 15 Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused LED Cond IN 1 LED Cond IN 2 LED Cond IN 3 LED Cond IN 4 LED Cond IN 5 LED Cond IN 6 LED Cond IN 7 LED Cond IN 8 Timer in 1 Timer in 2 Timer in 3 Timer in 4 Timer in 5 Timer in 6 Timer in 7 Timer in 8 Timer in 9 Timer in 10 Timer in 11 Timer in 12 Timer in 13 Timer in 14 Timer in 15 Timer in 16 Timer out 1 Timer out 2 Timer out 3 Timer out 4 Timer out 5 Timer out 6 Timer out 7 Timer out 8 Timer out 9 Timer out 10 Timer out 11 Timer out 12 Timer out 13 Timer out 14 Timer out 15 Timer out 16 Fault REC TRIG SG-opto Invalid Prot'n Disabled F out of Range VT Fail Alarm CT Fail Alarm CB Fail Alarm I^ Maint Alarm I^ Lockout AlarmCB Ops Maint CB Ops Lockout CB Op Time MaintCB Op Time Lock Fault Freq Lock CB Status Alarm Man CB Trip FailMan CB Cls Fail Man CB UnhealthyUnused AR Lockout AR CB Unhealthy AR No Sys Check Unused UV Block SR User Alarm 1 SR User Alarm 2 SR User Alarm 3 SR User Alarm 4 SR User Alarm 5 SR User Alarm 6 SR User Alarm 7 SR User Alarm 8 SR User Alarm 9 SR User Alarm 10SR User Alarm 11SR User Alarm 12SR User Alarm 13SR User Alarm 14SR User Alarm 15SR User Alarm 16SR User Alarm 17MR User Alarm 18MR User Alarm 19MR User Alarm 20MR User Alarm 21MR User Alarm 22MR User Alarm 23MR User Alarm 24MR User Alarm 25MR User Alarm 26MR User Alarm 27MR User Alarm 28MR User Alarm 29MR User Alarm 30MR User Alarm 31MR User Alarm 32MR User Alarm 33MR User Alarm 34MR User Alarm 35I>1 Timer Block I>2 Timer Block I>3 Timer Block I>4 Timer Block Unused IN1>1 Timer Blk IN1>2 Timer Blk IN1>3 Timer Blk IN1>4 Timer Blk IN2>1 Timer Blk IN2>2 Timer Blk IN2>3 Timer Blk IN2>4 Timer Blk ISEF>1 Timer BlkISEF>2 Timer BlkISEF>3 Timer BlkISEF>4 Timer BlkVN>1 Timer Blk VN>2 Timer Blk V<1 Timer Block V<2 Timer Block V>1 Timer Block V>2 Timer Block CLP Initiate Ext. Trip 3ph CB Aux 3ph(52-A)CB Aux 3ph(52-B)CB Healthy MCB/VTS Init Trip CB Init Close CB Reset Close Dly Reset Relays/LEDReset Thermal Reset Lockout Reset CB Data Block AR Live Line Mode Auto Mode Telecontrol ModeI>1 Trip I>1 Trip A I>1 Trip B I>1 Trip C I>2 Trip I>2 Trip A I>2 Trip B I>2 Trip C I>3 Trip I>3 Trip A I>3 Trip B I>3 Trip C I>4 Trip I>4 Trip A I>4 Trip B I>4 Trip C Unused Broken Line TripIN1>1 Trip IN1>2 Trip IN1>3 Trip IN1>4 Trip IN2>1 Trip IN2>2 Trip IN2>3 Trip IN2>4 Trip ISEF>1 Trip ISEF>2 Trip ISEF>3 Trip ISEF>4 Trip IREF> Trip VN>1 Trip VN>2 Trip Thermal Trip V2> Trip V<1 Trip V<1 Trip A/AB V<1 Trip B/BC V<1 Trip C/CA V<2 Trip V<2 Trip A/AB V<2 Trip B/BC V<2 Trip C/CA V>1 Trip V>1 Trip A/AB V>1 Trip B/BC V>1 Trip C/CA V>2 Trip V>2 Trip A/AB V>2 Trip B/BC V>2 Trip C/CA Any Start I>1 Start I>1 Start A I>1 Start B I>1 Start C I>2 Start I>2 Start A I>2 Start B I>2 Start C I>3 Start I>3 Start A I>3 Start B I>3 Start C I>4 Start I>4 Start A I>4 Start B I>4 Start C VCO Start AB VCO Start BC VCO Start CA Unused IN1>1 Start IN1>2 Start IN1>3 Start IN1>4 Start IN2>1 Start IN2>2 Start IN2>3 Start IN2>4 Start ISEF>1 Start ISEF>2 Start ISEF>3 Start ISEF>4 Start VN>1 Start VN>2 Start Thermal Alarm V2> Start V<1 Start V<1 Start A/AB V<1 Start B/BC V<1 Start C/CA V<2 Start V<2 Start A/AB V<2 Start B/BC V<2 Start C/CA V>1 Start V>1 Start A/AB V>1 Start B/BC V>1 Start C/CA V>2 Start V>2 Start A/AB V>2 Start B/BC V>2 Start C/CA CLP Operation I> BlockStart IN/SEF>Blk StartVTS Fast Block VTS Slow Block CTS Block Bfail1 Trip 3ph Bfail2 Trip 3ph Control Trip Control Close Close in Prog Block Main Prot Block SEF Prot AR In Progress AR In Service Seq Counter = 0 Seq Counter = 1 Seq Counter = 2 Seq Counter = 3 Seq Counter = 4 Successful CloseDead T in Prog Protection LocktReset Lckout AlmAuto Close AR Trip Test IA< Start IB< Start IC< Start IN< Start ISEF< Start CB Open 3 ph CB Closed 3 ph All Poles Dead Any Pole Dead Pole Dead A Pole Dead B Pole Dead C VTS Acc Ind VTS Volt Dep VTS IA> VTS IB> VTS IC> VTS VA> VTS VB> VTS VC> VTS I2> VTS V2> VTS IA delta> VTS IB delta> VTS IC delta> CBF SEF Trip CBF Non I Trip CBF SEF Trip-1 CBF Non I Trip-1Unused AR Sys Checks OKLockout Alarm Pre-Lockout Freq High Freq Low Stop Freq Track Start N Field volts failFreq Not Found F<1 Timer Block F<2 Timer Block F<3 Timer Block F<4 Timer Block F>1 Timer Block F>2 Timer Block F<1 Start F<2 Start F<3 Start F<4 Start F>1 Start F>2 Start F<1 Trip F<2 Trip F<3 Trip F<4 Trip F>1 Trip F>2 Trip YN> Timer Block GN> Timer Block BN> Timer Block YN> Start GN> Start BN> Start YN> Trip GN> Trip BN> Trip Ext AR Prot TripExt AR Prot StrtTest Mode Inhibit SEF Live Line Dead Line Unused Unused Unused Unused Unused Unused Unused Unused DAR Complete CB in Service AR Restart AR In Progress 1DeadTime EnabledDT OK To Start DT Complete Reclose Checks Circuits OK Unused AR SysChecks OK AR Init TripTest103 MonitorBlock103 CommandBlockISEF>1 Start 2 ISEF>2 Start 2 ISEF>3 Start 2 ISEF>4 Start 2 Unused Unused Unused Unused Time Synch Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused External Trip A External Trip B External Trip C External Trip EFExternal TripSEFI2> Inhibit I2>1 Tmr Blk I2>2 Tmr Blk I2>3 Tmr Blk I2>4 Tmr Blk I2>1 Start I2>2 Start I2>3 Start I2>4 Start I2>1 Trip I2>2 Trip I2>3 Trip I2>4 Trip V2> Accelerate Trip LED TriggerUnused Unused Unused Unused Unused Unused Blk Rmt. CB Ops SG Select x1 SG Select 1x IN1> Inhibit IN2> Inhibit AR Skip Shot 1 Logic 0 Ref. Inh Reclaim TimeReclaim In Prog Reclaim CompleteBrokenLine StartTrip Command In Trip Command OutIA2H Start IB2H Start IC2H Start I2H Any Start RP1 Read Only RP2 Read Only NIC Read Only Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Power>1 3PhStartPower>1 A Start Power>1 B Start Power>1 C Start Power>2 3PhStartPower>2 A Start Power>2 B Start Power>2 C Start Power<1 3PhStartPower<1 A Start Power<1 B Start Power<1 C Start Power<2 3PhStartPower<2 A Start Power<2 B Start Power<2 C Start Power>1 3Ph TripPower>1 A Trip Power>1 B Trip Power>1 C Trip Power>2 3Ph TripPower>2 A Trip Power>2 B Trip Power>2 C Trip Power<1 3Ph TripPower<1 A Trip Power<1 B Trip Power<1 C Trip Power<2 3Ph TripPower<2 A Trip Power<2 B Trip Power<2 C Trip Power>1 Block Power>2 Block Power<1 Block Power<2 Block SensP1 Start A SensP2 Start A SensP1 Trip A SensP2 Trip A Unused Unused Unused Unused Unused Unused Unused Battery Fail Rear Comm 2 FailGOOSE IED AbsentNIC Not Fitted NIC No Response NIC Fatal Error NIC Soft. ReloadBad TCP/IP Cfg. Bad OSI Config. NIC Link Fail NIC SW Mis-MatchIP Addr ConflictIM Loopback IM Msg Fail IM DCD Fail IM Chan Fail Backup Setting Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Control Input 1 Control Input 2 Control Input 3 Control Input 4 Control Input 5 Control Input 6 Control Input 7 Control Input 8 Control Input 9 Control Input 10Control Input 11Control Input 12Control Input 13Control Input 14Control Input 15Control Input 16Control Input 17Control Input 18Control Input 19Control Input 20Control Input 21Control Input 22Control Input 23Control Input 24Control Input 25Control Input 26Control Input 27Control Input 28Control Input 29Control Input 30Control Input 31Control Input 32Virtual Input 1 Virtual Input 2 Virtual Input 3 Virtual Input 4 Virtual Input 5 Virtual Input 6 Virtual Input 7 Virtual Input 8 Virtual Input 9 Virtual Input 10Virtual Input 11Virtual Input 12Virtual Input 13Virtual Input 14Virtual Input 15Virtual Input 16Virtual Input 17Virtual Input 18Virtual Input 19Virtual Input 20Virtual Input 21Virtual Input 22Virtual Input 23Virtual Input 24Virtual Input 25Virtual Input 26Virtual Input 27Virtual Input 28Virtual Input 29Virtual Input 30Virtual Input 31Virtual Input 32Virtual Input 33Virtual Input 34Virtual Input 35Virtual Input 36Virtual Input 37Virtual Input 38Virtual Input 39Virtual Input 40Virtual Input 41Virtual Input 42Virtual Input 43Virtual Input 44Virtual Input 45Virtual Input 46Virtual Input 47Virtual Input 48Virtual Input 49Virtual Input 50Virtual Input 51Virtual Input 52Virtual Input 53Virtual Input 54Virtual Input 55Virtual Input 56Virtual Input 57Virtual Input 58Virtual Input 59Virtual Input 60Virtual Input 61Virtual Input 62Virtual Input 63Virtual Input 64InterMiCOM in 1 InterMiCOM in 2 InterMiCOM in 3 InterMiCOM in 4 InterMiCOM in 5 InterMiCOM in 6 InterMiCOM in 7 InterMiCOM in 8 InterMiCOM out 1InterMiCOM out 2InterMiCOM out 3InterMiCOM out 4InterMiCOM out 5InterMiCOM out 6InterMiCOM out 7InterMiCOM out 8Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused PSL Internal 001PSL Internal 002PSL Internal 003PSL Internal 004PSL Internal 005PSL Internal 006PSL Internal 007PSL Internal 008PSL Internal 009PSL Internal 010PSL Internal 011PSL Internal 012PSL Internal 013PSL Internal 014PSL Internal 015PSL Internal 016PSL Internal 017PSL Internal 018PSL Internal 019PSL Internal 020PSL Internal 021PSL Internal 022PSL Internal 023PSL Internal 024PSL Internal 025PSL Internal 026PSL Internal 027PSL Internal 028PSL Internal 029PSL Internal 030PSL Internal 031PSL Internal 032PSL Internal 033PSL Internal 034PSL Internal 035PSL Internal 036PSL Internal 037PSL Internal 038PSL Internal 039PSL Internal 040PSL Internal 041PSL Internal 042PSL Internal 043PSL Internal 044PSL Internal 045PSL Internal 046PSL Internal 047PSL Internal 048PSL Internal 049PSL Internal 050PSL Internal 051PSL Internal 052PSL Internal 053PSL Internal 054PSL Internal 055PSL Internal 056PSL Internal 057PSL Internal 058PSL Internal 059PSL Internal 060PSL Internal 061PSL Internal 062PSL Internal 063PSL Internal 064PSL Internal 065PSL Internal 066PSL Internal 067PSL Internal 068PSL Internal 069PSL Internal 070PSL Internal 071PSL Internal 072PSL Internal 073PSL Internal 074PSL Internal 075PSL Internal 076PSL Internal 077PSL Internal 078PSL Internal 079PSL Internal 080PSL Internal 081PSL Internal 082PSL Internal 083PSL Internal 084PSL Internal 085PSL Internal 086PSL Internal 087PSL Internal 088PSL Internal 089PSL Internal 090PSL Internal 091PSL Internal 092PSL Internal 093PSL Internal 094PSL Internal 095PSL Internal 096PSL Internal 097PSL Internal 098PSL Internal 099PSL Internal 100Unused Virtual Output 1Virtual Output 2Virtual Output 3Virtual Output 4Virtual Output 5Virtual Output 6Virtual Output 7Virtual Output 8Virtual Output 9Virtual Output10Virtual Output11Virtual Output12Virtual Output13Virtual Output14Virtual Output15Virtual Output16Virtual Output17Virtual Output18Virtual Output19Virtual Output20Virtual Output21Virtual Output22Virtual Output23Virtual Output24Virtual Output25Virtual Output26Virtual Output27Virtual Output28Virtual Output29Virtual Output30Virtual Output31Virtual Output32Quality VIP 1 Quality VIP 2 Quality VIP 3 Quality VIP 4 Quality VIP 5 Quality VIP 6 Quality VIP 7 Quality VIP 8 Quality VIP 9 Quality VIP 10 Quality VIP 11 Quality VIP 12 Quality VIP 13 Quality VIP 14 Quality VIP 15 Quality VIP 16 Quality VIP 17 Quality VIP 18 Quality VIP 19 Quality VIP 20 Quality VIP 21 Quality VIP 22 Quality VIP 23 Quality VIP 24 Quality VIP 25 Quality VIP 26 Quality VIP 27 Quality VIP 28 Quality VIP 29 Quality VIP 30 Quality VIP 31 Quality VIP 32 Quality VIP 33 Quality VIP 34 Quality VIP 35 Quality VIP 36 Quality VIP 37 Quality VIP 38 Quality VIP 39 Quality VIP 40 Quality VIP 41 Quality VIP 42 Quality VIP 43 Quality VIP 44 Quality VIP 45 Quality VIP 46 Quality VIP 47 Quality VIP 48 Quality VIP 49 Quality VIP 50 Quality VIP 51 Quality VIP 52 Quality VIP 53 Quality VIP 54 Quality VIP 55 Quality VIP 56 Quality VIP 57 Quality VIP 58 Quality VIP 59 Quality VIP 60 Quality VIP 61 Quality VIP 62 Quality VIP 63 Quality VIP 64 PubPres VIP 1 PubPres VIP 2 PubPres VIP 3 PubPres VIP 4 PubPres VIP 5 PubPres VIP 6 PubPres VIP 7 PubPres VIP 8 PubPres VIP 9 PubPres VIP 10 PubPres VIP 11 PubPres VIP 12 PubPres VIP 13 PubPres VIP 14 PubPres VIP 15 PubPres VIP 16 PubPres VIP 17 PubPres VIP 18 PubPres VIP 19 PubPres VIP 20 PubPres VIP 21 PubPres VIP 22 PubPres VIP 23 PubPres VIP 24 PubPres VIP 25 PubPres VIP 26 PubPres VIP 27 PubPres VIP 28 PubPres VIP 29 PubPres VIP 30 PubPres VIP 31 PubPres VIP 32 PubPres VIP 33 PubPres VIP 34 PubPres VIP 35 PubPres VIP 36 PubPres VIP 37 PubPres VIP 38 PubPres VIP 39 PubPres VIP 40 PubPres VIP 41 PubPres VIP 42 PubPres VIP 43 PubPres VIP 44 PubPres VIP 45 PubPres VIP 46 PubPres VIP 47 PubPres VIP 48 PubPres VIP 49 PubPres VIP 50 PubPres VIP 51 PubPres VIP 52 PubPres VIP 53 PubPres VIP 54 PubPres VIP 55 PubPres VIP 56 PubPres VIP 57 PubPres VIP 58 PubPres VIP 59 PubPres VIP 60 PubPres VIP 61 PubPres VIP 62 PubPres VIP 63 PubPres VIP 64 Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Adv Freq Inh Stg1 f+t Sta Stg1 f+t Trp Stg1 f+df/dt TrpStg1 df/dt+t StaStg1 df/dt+t TrpStg1 f+Df/Dt StaStg1 f+Df/Dt TrpStg1 Block Unused Unused Stg1 Restore ClsStg1 Restore StaUnused Unused Stg2 f+t Sta Stg2 f+t Trp Stg2 f+df/dt TrpStg2 df/dt+t StaStg2 df/dt+t TrpStg2 f+Df/Dt StaStg2 f+Df/Dt TrpStg2 Block Unused Unused Stg2 Restore ClsStg2 Restore StaUnused Unused Stg3 f+t Sta Stg3 f+t Trp Stg3 f+df/dt TrpStg3 df/dt+t StaStg3 df/dt+t TrpStg3 f+Df/Dt StaStg3 f+Df/Dt TrpStg3 Block Unused Unused Stg3 Restore ClsStg3 Restore StaUnused Unused Stg4 f+t Sta Stg4 f+t Trp Stg4 f+df/dt TrpStg4 df/dt+t StaStg4 df/dt+t TrpStg4 f+Df/Dt StaStg4 f+Df/Dt TrpStg4 Block Unused Unused Stg4 Restore ClsStg4 Restore StaUnused Unused Stg5 f+t Sta Stg5 f+t Trp Stg5 f+df/dt TrpStg5 df/dt+t StaStg5 df/dt+t TrpStg5 f+Df/Dt StaStg5 f+Df/Dt TrpStg5 Block Unused Unused Stg5 Restore ClsStg5 Restore StaUnused Unused Stg6 f+t Sta Stg6 f+t Trp Stg6 f+df/dt TrpStg6 df/dt+t StaStg6 df/dt+t TrpStg6 f+Df/Dt StaStg6 f+Df/Dt TrpStg6 Block Unused Unused Stg6 Restore ClsStg6 Restore StaUnused Unused Stg7 f+t Sta Stg7 f+t Trp Stg7 f+df/dt TrpStg7 df/dt+t StaStg7 df/dt+t TrpStg7 f+Df/Dt StaStg7 f+Df/Dt TrpStg7 Block Unused Unused Stg7 Restore ClsStg7 Restore StaUnused Unused Stg8 f+t Sta Stg8 f+t Trp Stg8 f+df/dt TrpStg8 df/dt+t StaStg8 df/dt+t TrpStg8 f+Df/Dt StaStg8 f+Df/Dt TrpStg8 Block Unused Unused Stg8 Restore ClsStg8 Restore StaUnused Unused Stg9 f+t Sta Stg9 f+t Trp Stg9 f+df/dt TrpStg9 df/dt+t StaStg9 df/dt+t TrpStg9 f+Df/Dt StaStg9 f+Df/Dt TrpStg9 Block Unused Unused Stg9 Restore ClsStg9 Restore StaRestore Reset Reset Stats Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused ÿÿ CODStringProperty T ÿþÿ € ^ ÿþÿ ÿÿ CODBoolProperty | ÿÿ CODEditProperties 2 € ( ÿÿ CODDWordProperty r ÿÿÿ € h € r ÿÿÿ ”
) w i n s p o o l \ \ g b s r d 0 1 p s 0 4 \ g b s r d 0 1 p 7 2 2 6 4 I P _ 1 0 . 3 2 . 1 2 9 . 1 2 9 Ü ¸\ \ g b s r d 0 1 p s 0 4 \ g b s r d 0 1 p 7 2 2 6 4 Ü ¸Sÿ€ š4d X X A 4 PRIVâ0 ''' ' (ü ¼ P4 (ˆ þr”
ÿ ÿ ( SMTJ X e r o x W o r k C e n t r e 7 6 6 5 r e v 2 P S InputSlot *UseFormTrayTable PageSize A4 PageRegion LeadingEdge Resolution 600x600dpi Duplex DuplexNoTumble Collate True StapleLocation None XrxInputSlot True Rotation True ¼ 9XRX MOCX ^ l „ 4 š x l ³ e wœ ‘ i j o p q r ’ “ ” ȶ ÉØ ñ ò ß à û f — ¡ ˜c ¢c ™ £ – Ño Òê
Û áo âê
ã ê´ ëö Ö8 ×z º¼ »þ Î Ð Í Ï ƒ † ‡
‰ Œ Š ‹ Ê z@ | } Ë X YZ / Z [ \ ] % ( & ' ! 3 0 0 1 3 1 2 ú MSCF à , 90 R T P9e //Uncompressed-Data// yòói TCKãbb``ìsdHaÈeÈdÈâb††"†D ™¤GÁH ŒŒŒm6ö¹9
e©EÅ™ùy¶J†zJ
©yÉù)™yé¶J¡!nºJöv¼\6Å™i
@ÅV9‰ ©Ô<ÝÐ`%Œ>XÊ ÿÿÿÿ TCOM5 > > > > > > b R t ÿÿÿ
"""
oneconnection = """
A P P : C o u r i e r
T Y P E : S c h e m e L o g i c E d i t o r
F O R M A T : 1 . 0
V E R S I O N : 4 . 0 0
D O M A I N : 0 0 S e t t i n g s
S U B D O M A I N : 0 P S L S e t t i n g G r p 1
M O D E L : P 1 4 2 1 1 7 B 4 M 0 4 3 0 J
R E F E R E N C E :
D D B D E S C R I P T I O N F I L E :
F i l e c r e a t e d f r o m t e m p l a t e o n T h u r s d a y , D e c e m b e r 2 0 , 2 0 1 8 Â X @ +++++++++++++++++!!!!!!!!!!!!!!!!++++++++++++++++""""""""EEEEEEEEEEEEEEE+++++++++++++++++FFFFFFFFGGGGGGGGGGGGGGGG((((((((((((((((I$$$$$$$$$$$$$$$$$+$$$+$CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC+CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC$$$$$$$$$$$$$$$$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,,,,,,,,,,,,,,,,,+C$,$$,,$$CCCCCC$$$$$$$$$$$$CCC$$$$$$CCCC$$++++++++CCC$CC$$C+$CCC$$$$++++C+++++++++++++++++++++++CCCCCCCCCC$$$$$$$$CC++++++CCCCCC$C$$$C$$$$$CCC+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$CCCC$$$$+++++++$$$$$$$$$$$$$$$$$++++++++++++++--------------------------------////////////////////////////////////////////////////////////////11111111RRRRRRRR+++++++++++JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ+PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++C$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$++$$$$$$$C++$$CC+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Output R1 Output R2 Output R3 Output R4 Output R5 Output R6 Output R7 Output R8 Output R9 Output R10 Output R11 Output R12 Output R13 Output R14 Output R15 Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Input L1 Input L2 Input L3 Input L4 Input L5 Input L6 Input L7 Input L8 Input L9 Input L10 Input L11 Input L12 Input L13 Input L14 Input L15 Input L16 Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused LED 1 LED 2 LED 3 LED 4 LED 5 LED 6 LED 7 LED 8 Relay Cond 1 Relay Cond 2 Relay Cond 3 Relay Cond 4 Relay Cond 5 Relay Cond 6 Relay Cond 7 Relay Cond 8 Relay Cond 9 Relay Cond 10 Relay Cond 11 Relay Cond 12 Relay Cond 13 Relay Cond 14 Relay Cond 15 Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused LED Cond IN 1 LED Cond IN 2 LED Cond IN 3 LED Cond IN 4 LED Cond IN 5 LED Cond IN 6 LED Cond IN 7 LED Cond IN 8 Timer in 1 Timer in 2 Timer in 3 Timer in 4 Timer in 5 Timer in 6 Timer in 7 Timer in 8 Timer in 9 Timer in 10 Timer in 11 Timer in 12 Timer in 13 Timer in 14 Timer in 15 Timer in 16 Timer out 1 Timer out 2 Timer out 3 Timer out 4 Timer out 5 Timer out 6 Timer out 7 Timer out 8 Timer out 9 Timer out 10 Timer out 11 Timer out 12 Timer out 13 Timer out 14 Timer out 15 Timer out 16 Fault REC TRIG SG-opto Invalid Prot'n Disabled F out of Range VT Fail Alarm CT Fail Alarm CB Fail Alarm I^ Maint Alarm I^ Lockout AlarmCB Ops Maint CB Ops Lockout CB Op Time MaintCB Op Time Lock Fault Freq Lock CB Status Alarm Man CB Trip FailMan CB Cls Fail Man CB UnhealthyUnused AR Lockout AR CB Unhealthy AR No Sys Check Unused UV Block SR User Alarm 1 SR User Alarm 2 SR User Alarm 3 SR User Alarm 4 SR User Alarm 5 SR User Alarm 6 SR User Alarm 7 SR User Alarm 8 SR User Alarm 9 SR User Alarm 10SR User Alarm 11SR User Alarm 12SR User Alarm 13SR User Alarm 14SR User Alarm 15SR User Alarm 16SR User Alarm 17MR User Alarm 18MR User Alarm 19MR User Alarm 20MR User Alarm 21MR User Alarm 22MR User Alarm 23MR User Alarm 24MR User Alarm 25MR User Alarm 26MR User Alarm 27MR User Alarm 28MR User Alarm 29MR User Alarm 30MR User Alarm 31MR User Alarm 32MR User Alarm 33MR User Alarm 34MR User Alarm 35I>1 Timer Block I>2 Timer Block I>3 Timer Block I>4 Timer Block Unused IN1>1 Timer Blk IN1>2 Timer Blk IN1>3 Timer Blk IN1>4 Timer Blk IN2>1 Timer Blk IN2>2 Timer Blk IN2>3 Timer Blk IN2>4 Timer Blk ISEF>1 Timer BlkISEF>2 Timer BlkISEF>3 Timer BlkISEF>4 Timer BlkVN>1 Timer Blk VN>2 Timer Blk V<1 Timer Block V<2 Timer Block V>1 Timer Block V>2 Timer Block CLP Initiate Ext. Trip 3ph CB Aux 3ph(52-A)CB Aux 3ph(52-B)CB Healthy MCB/VTS Init Trip CB Init Close CB Reset Close Dly Reset Relays/LEDReset Thermal Reset Lockout Reset CB Data Block AR Live Line Mode Auto Mode Telecontrol ModeI>1 Trip I>1 Trip A I>1 Trip B I>1 Trip C I>2 Trip I>2 Trip A I>2 Trip B I>2 Trip C I>3 Trip I>3 Trip A I>3 Trip B I>3 Trip C I>4 Trip I>4 Trip A I>4 Trip B I>4 Trip C Unused Broken Line TripIN1>1 Trip IN1>2 Trip IN1>3 Trip IN1>4 Trip IN2>1 Trip IN2>2 Trip IN2>3 Trip IN2>4 Trip ISEF>1 Trip ISEF>2 Trip ISEF>3 Trip ISEF>4 Trip IREF> Trip VN>1 Trip VN>2 Trip Thermal Trip V2> Trip V<1 Trip V<1 Trip A/AB V<1 Trip B/BC V<1 Trip C/CA V<2 Trip V<2 Trip A/AB V<2 Trip B/BC V<2 Trip C/CA V>1 Trip V>1 Trip A/AB V>1 Trip B/BC V>1 Trip C/CA V>2 Trip V>2 Trip A/AB V>2 Trip B/BC V>2 Trip C/CA Any Start I>1 Start I>1 Start A I>1 Start B I>1 Start C I>2 Start I>2 Start A I>2 Start B I>2 Start C I>3 Start I>3 Start A I>3 Start B I>3 Start C I>4 Start I>4 Start A I>4 Start B I>4 Start C VCO Start AB VCO Start BC VCO Start CA Unused IN1>1 Start IN1>2 Start IN1>3 Start IN1>4 Start IN2>1 Start IN2>2 Start IN2>3 Start IN2>4 Start ISEF>1 Start ISEF>2 Start ISEF>3 Start ISEF>4 Start VN>1 Start VN>2 Start Thermal Alarm V2> Start V<1 Start V<1 Start A/AB V<1 Start B/BC V<1 Start C/CA V<2 Start V<2 Start A/AB V<2 Start B/BC V<2 Start C/CA V>1 Start V>1 Start A/AB V>1 Start B/BC V>1 Start C/CA V>2 Start V>2 Start A/AB V>2 Start B/BC V>2 Start C/CA CLP Operation I> BlockStart IN/SEF>Blk StartVTS Fast Block VTS Slow Block CTS Block Bfail1 Trip 3ph Bfail2 Trip 3ph Control Trip Control Close Close in Prog Block Main Prot Block SEF Prot AR In Progress AR In Service Seq Counter = 0 Seq Counter = 1 Seq Counter = 2 Seq Counter = 3 Seq Counter = 4 Successful CloseDead T in Prog Protection LocktReset Lckout AlmAuto Close AR Trip Test IA< Start IB< Start IC< Start IN< Start ISEF< Start CB Open 3 ph CB Closed 3 ph All Poles Dead Any Pole Dead Pole Dead A Pole Dead B Pole Dead C VTS Acc Ind VTS Volt Dep VTS IA> VTS IB> VTS IC> VTS VA> VTS VB> VTS VC> VTS I2> VTS V2> VTS IA delta> VTS IB delta> VTS IC delta> CBF SEF Trip CBF Non I Trip CBF SEF Trip-1 CBF Non I Trip-1Unused AR Sys Checks OKLockout Alarm Pre-Lockout Freq High Freq Low Stop Freq Track Start N Field volts failFreq Not Found F<1 Timer Block F<2 Timer Block F<3 Timer Block F<4 Timer Block F>1 Timer Block F>2 Timer Block F<1 Start F<2 Start F<3 Start F<4 Start F>1 Start F>2 Start F<1 Trip F<2 Trip F<3 Trip F<4 Trip F>1 Trip F>2 Trip YN> Timer Block GN> Timer Block BN> Timer Block YN> Start GN> Start BN> Start YN> Trip GN> Trip BN> Trip Ext AR Prot TripExt AR Prot StrtTest Mode Inhibit SEF Live Line Dead Line Unused Unused Unused Unused Unused Unused Unused Unused DAR Complete CB in Service AR Restart AR In Progress 1DeadTime EnabledDT OK To Start DT Complete Reclose Checks Circuits OK Unused AR SysChecks OK AR Init TripTest103 MonitorBlock103 CommandBlockISEF>1 Start 2 ISEF>2 Start 2 ISEF>3 Start 2 ISEF>4 Start 2 Unused Unused Unused Unused Time Synch Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused External Trip A External Trip B External Trip C External Trip EFExternal TripSEFI2> Inhibit I2>1 Tmr Blk I2>2 Tmr Blk I2>3 Tmr Blk I2>4 Tmr Blk I2>1 Start I2>2 Start I2>3 Start I2>4 Start I2>1 Trip I2>2 Trip I2>3 Trip I2>4 Trip V2> Accelerate Trip LED TriggerUnused Unused Unused Unused Unused Unused Blk Rmt. CB Ops SG Select x1 SG Select 1x IN1> Inhibit IN2> Inhibit AR Skip Shot 1 Logic 0 Ref. Inh Reclaim TimeReclaim In Prog Reclaim CompleteBrokenLine StartTrip Command In Trip Command OutIA2H Start IB2H Start IC2H Start I2H Any Start RP1 Read Only RP2 Read Only NIC Read Only Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Power>1 3PhStartPower>1 A Start Power>1 B Start Power>1 C Start Power>2 3PhStartPower>2 A Start Power>2 B Start Power>2 C Start Power<1 3PhStartPower<1 A Start Power<1 B Start Power<1 C Start Power<2 3PhStartPower<2 A Start Power<2 B Start Power<2 C Start Power>1 3Ph TripPower>1 A Trip Power>1 B Trip Power>1 C Trip Power>2 3Ph TripPower>2 A Trip Power>2 B Trip Power>2 C Trip Power<1 3Ph TripPower<1 A Trip Power<1 B Trip Power<1 C Trip Power<2 3Ph TripPower<2 A Trip Power<2 B Trip Power<2 C Trip Power>1 Block Power>2 Block Power<1 Block Power<2 Block SensP1 Start A SensP2 Start A SensP1 Trip A SensP2 Trip A Unused Unused Unused Unused Unused Unused Unused Battery Fail Rear Comm 2 FailGOOSE IED AbsentNIC Not Fitted NIC No Response NIC Fatal Error NIC Soft. ReloadBad TCP/IP Cfg. Bad OSI Config. NIC Link Fail NIC SW Mis-MatchIP Addr ConflictIM Loopback IM Msg Fail IM DCD Fail IM Chan Fail Backup Setting Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Control Input 1 Control Input 2 Control Input 3 Control Input 4 Control Input 5 Control Input 6 Control Input 7 Control Input 8 Control Input 9 Control Input 10Control Input 11Control Input 12Control Input 13Control Input 14Control Input 15Control Input 16Control Input 17Control Input 18Control Input 19Control Input 20Control Input 21Control Input 22Control Input 23Control Input 24Control Input 25Control Input 26Control Input 27Control Input 28Control Input 29Control Input 30Control Input 31Control Input 32Virtual Input 1 Virtual Input 2 Virtual Input 3 Virtual Input 4 Virtual Input 5 Virtual Input 6 Virtual Input 7 Virtual Input 8 Virtual Input 9 Virtual Input 10Virtual Input 11Virtual Input 12Virtual Input 13Virtual Input 14Virtual Input 15Virtual Input 16Virtual Input 17Virtual Input 18Virtual Input 19Virtual Input 20Virtual Input 21Virtual Input 22Virtual Input 23Virtual Input 24Virtual Input 25Virtual Input 26Virtual Input 27Virtual Input 28Virtual Input 29Virtual Input 30Virtual Input 31Virtual Input 32Virtual Input 33Virtual Input 34Virtual Input 35Virtual Input 36Virtual Input 37Virtual Input 38Virtual Input 39Virtual Input 40Virtual Input 41Virtual Input 42Virtual Input 43Virtual Input 44Virtual Input 45Virtual Input 46Virtual Input 47Virtual Input 48Virtual Input 49Virtual Input 50Virtual Input 51Virtual Input 52Virtual Input 53Virtual Input 54Virtual Input 55Virtual Input 56Virtual Input 57Virtual Input 58Virtual Input 59Virtual Input 60Virtual Input 61Virtual Input 62Virtual Input 63Virtual Input 64InterMiCOM in 1 InterMiCOM in 2 InterMiCOM in 3 InterMiCOM in 4 InterMiCOM in 5 InterMiCOM in 6 InterMiCOM in 7 InterMiCOM in 8 InterMiCOM out 1InterMiCOM out 2InterMiCOM out 3InterMiCOM out 4InterMiCOM out 5InterMiCOM out 6InterMiCOM out 7InterMiCOM out 8Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused PSL Internal 001PSL Internal 002PSL Internal 003PSL Internal 004PSL Internal 005PSL Internal 006PSL Internal 007PSL Internal 008PSL Internal 009PSL Internal 010PSL Internal 011PSL Internal 012PSL Internal 013PSL Internal 014PSL Internal 015PSL Internal 016PSL Internal 017PSL Internal 018PSL Internal 019PSL Internal 020PSL Internal 021PSL Internal 022PSL Internal 023PSL Internal 024PSL Internal 025PSL Internal 026PSL Internal 027PSL Internal 028PSL Internal 029PSL Internal 030PSL Internal 031PSL Internal 032PSL Internal 033PSL Internal 034PSL Internal 035PSL Internal 036PSL Internal 037PSL Internal 038PSL Internal 039PSL Internal 040PSL Internal 041PSL Internal 042PSL Internal 043PSL Internal 044PSL Internal 045PSL Internal 046PSL Internal 047PSL Internal 048PSL Internal 049PSL Internal 050PSL Internal 051PSL Internal 052PSL Internal 053PSL Internal 054PSL Internal 055PSL Internal 056PSL Internal 057PSL Internal 058PSL Internal 059PSL Internal 060PSL Internal 061PSL Internal 062PSL Internal 063PSL Internal 064PSL Internal 065PSL Internal 066PSL Internal 067PSL Internal 068PSL Internal 069PSL Internal 070PSL Internal 071PSL Internal 072PSL Internal 073PSL Internal 074PSL Internal 075PSL Internal 076PSL Internal 077PSL Internal 078PSL Internal 079PSL Internal 080PSL Internal 081PSL Internal 082PSL Internal 083PSL Internal 084PSL Internal 085PSL Internal 086PSL Internal 087PSL Internal 088PSL Internal 089PSL Internal 090PSL Internal 091PSL Internal 092PSL Internal 093PSL Internal 094PSL Internal 095PSL Internal 096PSL Internal 097PSL Internal 098PSL Internal 099PSL Internal 100Unused Virtual Output 1Virtual Output 2Virtual Output 3Virtual Output 4Virtual Output 5Virtual Output 6Virtual Output 7Virtual Output 8Virtual Output 9Virtual Output10Virtual Output11Virtual Output12Virtual Output13Virtual Output14Virtual Output15Virtual Output16Virtual Output17Virtual Output18Virtual Output19Virtual Output20Virtual Output21Virtual Output22Virtual Output23Virtual Output24Virtual Output25Virtual Output26Virtual Output27Virtual Output28Virtual Output29Virtual Output30Virtual Output31Virtual Output32Quality VIP 1 Quality VIP 2 Quality VIP 3 Quality VIP 4 Quality VIP 5 Quality VIP 6 Quality VIP 7 Quality VIP 8 Quality VIP 9 Quality VIP 10 Quality VIP 11 Quality VIP 12 Quality VIP 13 Quality VIP 14 Quality VIP 15 Quality VIP 16 Quality VIP 17 Quality VIP 18 Quality VIP 19 Quality VIP 20 Quality VIP 21 Quality VIP 22 Quality VIP 23 Quality VIP 24 Quality VIP 25 Quality VIP 26 Quality VIP 27 Quality VIP 28 Quality VIP 29 Quality VIP 30 Quality VIP 31 Quality VIP 32 Quality VIP 33 Quality VIP 34 Quality VIP 35 Quality VIP 36 Quality VIP 37 Quality VIP 38 Quality VIP 39 Quality VIP 40 Quality VIP 41 Quality VIP 42 Quality VIP 43 Quality VIP 44 Quality VIP 45 Quality VIP 46 Quality VIP 47 Quality VIP 48 Quality VIP 49 Quality VIP 50 Quality VIP 51 Quality VIP 52 Quality VIP 53 Quality VIP 54 Quality VIP 55 Quality VIP 56 Quality VIP 57 Quality VIP 58 Quality VIP 59 Quality VIP 60 Quality VIP 61 Quality VIP 62 Quality VIP 63 Quality VIP 64 PubPres VIP 1 PubPres VIP 2 PubPres VIP 3 PubPres VIP 4 PubPres VIP 5 PubPres VIP 6 PubPres VIP 7 PubPres VIP 8 PubPres VIP 9 PubPres VIP 10 PubPres VIP 11 PubPres VIP 12 PubPres VIP 13 PubPres VIP 14 PubPres VIP 15 PubPres VIP 16 PubPres VIP 17 PubPres VIP 18 PubPres VIP 19 PubPres VIP 20 PubPres VIP 21 PubPres VIP 22 PubPres VIP 23 PubPres VIP 24 PubPres VIP 25 PubPres VIP 26 PubPres VIP 27 PubPres VIP 28 PubPres VIP 29 PubPres VIP 30 PubPres VIP 31 PubPres VIP 32 PubPres VIP 33 PubPres VIP 34 PubPres VIP 35 PubPres VIP 36 PubPres VIP 37 PubPres VIP 38 PubPres VIP 39 PubPres VIP 40 PubPres VIP 41 PubPres VIP 42 PubPres VIP 43 PubPres VIP 44 PubPres VIP 45 PubPres VIP 46 PubPres VIP 47 PubPres VIP 48 PubPres VIP 49 PubPres VIP 50 PubPres VIP 51 PubPres VIP 52 PubPres VIP 53 PubPres VIP 54 PubPres VIP 55 PubPres VIP 56 PubPres VIP 57 PubPres VIP 58 PubPres VIP 59 PubPres VIP 60 PubPres VIP 61 PubPres VIP 62 PubPres VIP 63 PubPres VIP 64 Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Adv Freq Inh Stg1 f+t Sta Stg1 f+t Trp Stg1 f+df/dt TrpStg1 df/dt+t StaStg1 df/dt+t TrpStg1 f+Df/Dt StaStg1 f+Df/Dt TrpStg1 Block Unused Unused Stg1 Restore ClsStg1 Restore StaUnused Unused Stg2 f+t Sta Stg2 f+t Trp Stg2 f+df/dt TrpStg2 df/dt+t StaStg2 df/dt+t TrpStg2 f+Df/Dt StaStg2 f+Df/Dt TrpStg2 Block Unused Unused Stg2 Restore ClsStg2 Restore StaUnused Unused Stg3 f+t Sta Stg3 f+t Trp Stg3 f+df/dt TrpStg3 df/dt+t StaStg3 df/dt+t TrpStg3 f+Df/Dt StaStg3 f+Df/Dt TrpStg3 Block Unused Unused Stg3 Restore ClsStg3 Restore StaUnused Unused Stg4 f+t Sta Stg4 f+t Trp Stg4 f+df/dt TrpStg4 df/dt+t StaStg4 df/dt+t TrpStg4 f+Df/Dt StaStg4 f+Df/Dt TrpStg4 Block Unused Unused Stg4 Restore ClsStg4 Restore StaUnused Unused Stg5 f+t Sta Stg5 f+t Trp Stg5 f+df/dt TrpStg5 df/dt+t StaStg5 df/dt+t TrpStg5 f+Df/Dt StaStg5 f+Df/Dt TrpStg5 Block Unused Unused Stg5 Restore ClsStg5 Restore StaUnused Unused Stg6 f+t Sta Stg6 f+t Trp Stg6 f+df/dt TrpStg6 df/dt+t StaStg6 df/dt+t TrpStg6 f+Df/Dt StaStg6 f+Df/Dt TrpStg6 Block Unused Unused Stg6 Restore ClsStg6 Restore StaUnused Unused Stg7 f+t Sta Stg7 f+t Trp Stg7 f+df/dt TrpStg7 df/dt+t StaStg7 df/dt+t TrpStg7 f+Df/Dt StaStg7 f+Df/Dt TrpStg7 Block Unused Unused Stg7 Restore ClsStg7 Restore StaUnused Unused Stg8 f+t Sta Stg8 f+t Trp Stg8 f+df/dt TrpStg8 df/dt+t StaStg8 df/dt+t TrpStg8 f+Df/Dt StaStg8 f+Df/Dt TrpStg8 Block Unused Unused Stg8 Restore ClsStg8 Restore StaUnused Unused Stg9 f+t Sta Stg9 f+t Trp Stg9 f+df/dt TrpStg9 df/dt+t StaStg9 df/dt+t TrpStg9 f+Df/Dt StaStg9 f+Df/Dt TrpStg9 Block Unused Unused Stg9 Restore ClsStg9 Restore StaRestore Reset Reset Stats Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused Unused ÿÿ CODStringProperty T ÿþÿ € ^ ÿþÿ ÿÿ CODBoolProperty | ÿÿ CODEditProperties 2 € ( ÿÿ CODDWordProperty r ÿÿÿ € h € r ÿÿÿ ÿÿ CODSymbolComponentÿÿÿÿ ÿÿ
CODCirclePort ˜A‰™ ! Ÿ ' ÿÿ CODTransform €? €? C @Á € T ÿþÿP o r t € ^ ÿþÿ
O u t p u t P o r t € | ÿÿ CODFillProperties ÿÿÿ ÿÿÿ € ( € ÑƒÌ ! ' € €? €? *à @Á € T ÿþÿP o r t € ^ ÿþÿP o r t € ÿÿÿ ÿÿÿ € I R ! X ' € T ÿþÿP o r t € ^ ÿþÿP o r t € | € P € ( ÿÿ
CODConnection€ œ $ ™ ! Ÿ ' € P € ÿÿÿ ÿÿÿ € ^ ÿþÿP o r t € T ÿþÿP o r t € ( 8 Ÿ 0 € €? €? @A ÀA ÿÿ CPSLSignalProperties õ + ; ÿþÿI n p u t L 1 2 € T ÿþÿO p t o S i g n a l € ^ ÿþÿS i g n a l 1 € | € ( ÿÿ CODRectComponent ¾ { - € T ÿþÿ R e c t a n g l e € ^ ÿþÿS i g n a l C o l o u r R e c t 1 € ÿÿ ÿÿÿ ÿÿ CODLineProperties
+ ÿÿ CODPolygonComponent $ v $ ‚ - v 6 6 ‹6L. ˜ - € €? €? A  € T ÿþÿP o l y g o n € ^ ÿþÿS i g n a l B o d y P o l y g o n 1 € ÿÿÿ ÿÿÿ 9 + ÿÿ CODLineComponent »s„˜ $ œ $ € €? €? C @Á € T ÿþÿL i n e € ^ ÿþÿP o r t L i n e 1 9 + ÿÿ CODTextComponent ÿþÿD D B # 0 4 3 îÿÿÿfÿÿÿ* fÿÿÿ* îÿÿÿ Iü. ’ 0 €ÐÕ? VI=}~BÀe^A € T ÿþÿT e x t € ^ ÿþÿ
D D B N u m b e r T e x t 1 8€
€ ÿÿÿ ÿÿÿ ÿÿ CODFontProperties ÿþÿA r i a l
€ æ € ð ÿÿ CODIntProperty Ò P€ Ü + E€ ÿþÿ I n p u t L 1 2 òÿÿÿþÿÿ- þÿÿ- ¢ òÿÿÿ¢ àTË . “ ( €"ëÚ? Þ<(lfBqå@ H € ^ ÿþÿS i g n a l N a m e T e x t 1 J K M N O Q R + ÿÿ CODImageComponent ÿþÿ+U : \ 5 0 3 2 0 \ D E V \ s c h e m e o v \ r e s \ s i g n a l - o p t o . b m p BMv v ( € € €€ € € € €€ ÀÀÀ €€€ ÿ ÿ ÿÿ ÿ ÿ ÿ ÿÿ ÿÿÿ ÿÿÿÿÿÿÿðÿÿÿÿÿÿÿðÿÿÿÿÿÿÿðÿÿÿÿÿ ð ÿÿÿÿÿ ðÿÿÿÿÿ ÿÿÿÿ ÿÿÿÿÿð ÿÿÿÿð ÿ ÿÿððÿ ðÿð ÿÿÿ ÿ ÿð ÿÿ ÿðÿ ÿÿÿÿÿð ÿÿÿÿÿÿðÿÿÿÿÿÿÿðÿÿÿÿÿÿÿð ú7 - , € €? €? ˆA €@ € T ÿþÿI m a g e € ^ ÿþÿI m a g e 1 + @€ " ¨Z .
C € ^ ÿþÿL i n e 1 9 P€ M 2 P€ L 2 P€ K 2 P€ J 2 € + @€ ! Æì - . - € €? €? €?
C \ 1 9 ] ^ _ ` a +
€ÿÿÿÿ € ºj+‘ ! — ' € €? €? èÁ PÁ € T ÿþÿP o r t € ^ ÿþÿ
O u t p u t P o r t € ÿÿÿ ÿÿÿ € ( € ‹â !
' € €? €? Á PÁ € T ÿþÿP o r t € ^ ÿþÿP o r t € ÿÿÿ ÿÿÿ j € I J ! P ' € T ÿþÿP o r t € ^ ÿþÿP o r t € | € P o € ( $€€ $ !
' ' ( ) * + k ÒQ$ — 0 € €? €? D ÀA -€ õ 6 ÿþÿT r i p C o m m a n d I n € T ÿþÿ
O u t p u t S i g n a l € ^ ÿþÿO u t p u t S i g n a l 2 1 2 3€ ƒ ƒ D¿Õ‡ ” - 5 6 1 9 € ÿ ÿÿÿ + :€ m
m N- u - € €? €? €@ €¿ = > 1 9 ? + E€ ÿþÿD D B # 5 3 6 îÿÿÿ€ÿÿÿ* €ÿÿÿ* ! îÿÿÿ! Á×½ u 0 €ÐÕ? VI=}*BÀeNA H I 1 J K M N O Q R + @€ © ÃŽ $ $ € €? €? &à PÁ C € ^ ÿþÿO u t p u t P o r t L i n e 1 9 + E€ ÿþÿT r i p C o m m a n d I n òÿÿÿÜþÿÿ- Üþÿÿ- Ñ òÿÿÿÑ úÚ u ( €"ëÚ? Þ<(lBqÅ@ H U 1 J K M N O Q R + V€ ÿþÿ-U : \ 5 0 3 2 0 \ D E V \ s c h e m e o v \ r e s \ s i g n a l - o u t p u t . b m p BMv v ( € € €€ € € € €€ ÀÀÀ €€€ ÿ ÿ ÿÿ ÿ ÿ ÿ ÿÿ ÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿð ÿÿÿÿ ÿÿÿð ÿÿ ÿÿÿ ÿÿ ÿÿð ÿÿÿ ÿÿ ÿÿÿ ÿÿÿÿ ÿÿÿÿ ÿÿ ÿÿÿ ÿÿð ÿÿÿ ÿÿÿ ÿÿ ÿÿÿð ÿÿ ÿÿÿÿ ÿÿÿÿð ÿÿÿÿÿÿÿÿ ¨V16v † , € €? €? äB @@ Y Z 1 + @€ ƒ q Ãùu ‡
C \ 1 9 ] ^ _ ` a + @€ ƒ q íu - ‡ - € €? €? €?
C \ 1 9 ] ^ _ ` a + ÿÿ CPSLLinkComponent ÿÿÿÿ & w € Q $ N ! T ' ' 1 € ^ ÿþÿ € T ÿþÿ € ( % v dáW0œ $ $ € d € F P€ ¤ 1 € ^ ÿþÿL i n k € T ÿþÿL i n k ‘ ÿÿ CODLineLinkShape œ $ Q $ Q $ $ ƽ~!œ $ $
9 ] ^ _ ` a 1 \ C + ”
) w i n s p o o l \ \ g b s r d 0 1 p s 0 4 \ g b s r d 0 1 p 7 2 2 6 4 I P _ 1 0 . 3 2 . 1 2 9 . 1 2 9 Ü ¸\ \ g b s r d 0 1 p s 0 4 \ g b s r d 0 1 p 7 2 2 6 4 Ü ¸Sÿ€ š4d X X A 4 PRIVâ0 ''' ' (ü ¼ P4 (ˆ þr”
ÿ ÿ ( SMTJ X e r o x W o r k C e n t r e 7 6 6 5 r e v 2 P S InputSlot *UseFormTrayTable PageSize A4 PageRegion LeadingEdge Resolution 600x600dpi Duplex DuplexNoTumble Collate True StapleLocation None XrxInputSlot True Rotation True ¼ 9XRX MOCX ^ l „ 4 š x l ³ e wœ ‘ i j o p q r ’ “ ” ȶ ÉØ ñ ò ß à û f — ¡ ˜c ¢c ™ £ – Ño Òê
Û áo âê
ã ê´ ëö Ö8 ×z º¼ »þ Î Ð Í Ï ƒ † ‡
‰ Œ Š ‹ Ê z@ | } Ë X YZ / Z [ \ ] % ( & ' ! 3 0 0 1 3 1 2 ú MSCF à , 90 R T P9e //Uncompressed-Data// yòói TCKãbb``ìsdHaÈeÈdÈâb††"†D ™¤GÁH ŒŒŒm6ö¹9
e©EÅ™ùy¶J†zJ
©yÉù)™yé¶J¡!nºJöv¼\6Å™i
@ÅV9‰ ©Ô<ÝÐ`%Œ>XÊ ÿÿÿÿ TCOM5 > > > > > > b R t ÿÿÿ
"""
|
maiores = homens = mulheres = 0
while True:
print('-'*30)
print('CADASTRO DE PESSOA')
print('-' * 30)
idade = int(input('Qual sua idade: '))
sexo = ' '
while sexo not in 'M' and sexo not in 'F' :
sexo = str(input('Qual seu sexo [F|M]: ')).upper().strip()
print('-' * 30)
if sexo == 'F' and idade < 20:
mulheres+=1
if sexo == 'M':
homens+=1
if idade>18:
maiores+=1
resp = ' '
while resp != 'S' and resp != 'N':
resp = str(input('Deseja continuar [S|N]: ')).upper().strip()
if resp == 'N':
break;
print(f'Há {mulheres} mulheres com menos de 20 anos.')
print(f'Há {homens} homens.')
print(f'Há {maiores} com mais de 18 anos.')
|
eg = [
'forward 5',
'down 5',
'forward 8',
'up 3',
'down 8',
'forward 2',
]
def load(file):
with open(file) as f:
data = f.readlines()
return data
def steps(lines, pos_char, neg_char):
directions = [ln.split(' ') for ln in lines if ln[0] in [pos_char, neg_char]]
steps = [int(ln[1]) * (1 if ln[0][0] == pos_char else -1) for ln in directions]
return steps
def split(data):
horiz = steps(data, 'f', 'b')
vert = steps(data, 'd', 'u')
return horiz, vert
hh, vv = split(eg)
assert (sum(hh) * sum(vv)) == 150
dd = load('data.txt')
hh, vv = split(dd)
ans = sum(hh) * sum(vv)
print(f"Answer: {ans}") |
def test():
print("test successful...")
def update():
print("Updating DSA")
if __name__=='__main__':
pass |
"""Sort an array by anagram."""
def sort_by_anagram(array):
n = len(array)
if n <= 2:
return array
i = 0
while i < n-2:
for j in range(i+1, n):
if is_anagram(array[i], array[j]):
i += 1
array[i], array[j] = array[j], array[i]
i += 1
return array
def is_anagram(s, t):
if len(s) != len(t):
return False
s_array = list(s.lower())
t_array = list(t.lower())
s_array.sort()
t_array.sort()
return s_array == t_array
|
class Component:
def __init__(self, fail_ratio, repair_ratio, state):
self.fail_ratio = fail_ratio
self.repair_ratio = repair_ratio
self.state = state |
def parse():
with open("input16") as f:
n = [int(x) for x in f.read()]
return n
n = parse()
for _ in range(100):
result = []
for i in range(1, len(n) + 1):
digit = 0
start = i - 1
add = 1
while start < len(n):
end = min(start + i, len(n))
digit += add * sum(n[start:end])
add *= -1
start += 2*i
result.append(abs(digit) % 10)
n = result
print("".join([str(x) for x in n[:8]]))
# part 2
n = parse()
k = int("".join([str(x) for x in n[:7]]))
total_len = 10000 * len(n)
relevant_len = total_len - k
offset = k % len(n)
l = n[offset:] + (relevant_len // len(n)) * n
for nr in range(100):
print(nr)
result = []
cache = {}
for i in range(0, len(l)):
digit = 0
start = i
add = 1
while start < len(l):
end = min(start + i + k, len(l))
if (start - 1, end) in cache:
q = (cache[(start - 1,end)] - l[start - 1])
else:
q = sum(l[start:end])
digit += add * q
cache[(start, end)] = q
add *= -1
start += 2 * (i + k)
result.append(abs(digit) % 10)
l = result
print("".join([str(x) for x in l[:8]])) |
s = float(input('Salário: '))
if s <= 1250:
s = s * 1.15
if s > 1250:
s = s * 1.1
print('Novo salário: R${}'.format(s))
|
def exec_procedure(session, proc_name, params):
sql_params = ",".join(["@{0}={1}".format(name, value) for name, value in params.items()])
sql_string = """
DECLARE @return_value int;
EXEC @return_value = [dbo].[{proc_name}] {params};
SELECT 'Return Value' = @return_value;
""".format(proc_name=proc_name, params=sql_params)
return session.execute(sql_string).fetchall()
|
MOD = 10 ** 9 + 7
n, m = map(int, input().split())
def comb(n, r, p):
if r < 0 or n < r:
return 0
r = min(r, n - r)
return fact[n] * factinv[r] * factinv[n-r] % p
def perm(n, r, p):
if r < 0 or n < r:
return 0
return fact[n] * factinv[n-r] % p
p = MOD
N = m
fact = [1, 1] # fact[n] = (n! mod p)
factinv = [1, 1] # factinv[n] = ((n!)^(-1) mod p)
inv = [0, 1] # factinv 計算用
fact_append = fact.append
inv_append = inv.append
factinv_append = factinv.append
for i in range(2, N + 1):
fact_append(fact[-1] * i % p)
inv_append(-inv[p % i] * (p // i) % p)
factinv_append(factinv[-1] * inv[-1] % p)
ans = 0
for k in range(n + 1):
ans += (-1) ** k * comb(n, k, MOD) * perm(m, n, MOD) * perm(m - k, n - k, MOD) % MOD
print(ans % MOD) |
"""
Computer vision Utils
=====================
Standard utils module storing common to the package classes, functions, constants, and other objects.
"""
|
'''字典 key - value'''
alien_0={'color':'green','points':5}
print(alien_0['color'])
print(alien_0['points'])
#添加
alien_0['x_position']=0
alien_0['y_position']=25
print(alien_0)
#修改
alien_0['color']='yellow'
print(alien_0)
#删除 删除的键—值对永远消失了。
del alien_0['points']
print(alien_0)
#由类似对象组成 的字典
student={
'name':'Michael',
'goods':'backetball',
'age':30
}
print(student['name']+' age is '+str(student['age']))
#遍历字典 for k, v in user_0.items()
for key,value in student.items():
print("\nKey:"+key)
if str(value).isdigit():
print("Value:"+str(value))
else:
print("Value:"+str(value.title()))
for k,v in student.items():
print(k)
if str(v).isdigit():
print(str(v))
else:
print(v)
#遍历所有的key
for k in student.keys():
print(k)
#嵌套
alien_0={'color':'green','points':5}
alien_1={'color':'yellow','points':10}
alien_2={'color':'red','points':15}
aliens=[alien_0,alien_1,alien_2]
for alien in aliens:
print(alien)
aliens=[]
for alien_number in range(30):
new_alien={'color':'green','points':5,'speed':'slow'}
aliens.append(new_alien)
for alien in aliens[:5]:
print(alien)
print(alien['color'])
print("...")
print(len("Total number of alien:"+str(len(aliens))))
#在字典里存储列表
pizza={
'crust':'thick',
'toppings':['mushrooms','extra cheese']
}
print(pizza['crust'])
print(pizza['toppings'])
for topping in pizza['toppings']:
print(topping)
favorite_languages={
'jen':['python','ruby'],
'edward':['ruby','go'],
'phil':['python','haskell'],
'serah':['C']
}
for key,value in favorite_languages.items():
print("\n"+key.title()+"'s favorite lanugage are:")
for language in value:
print("\t"+language.title())
#在字典中存储字典
users={
'aeinstein':{
'first':'albert',
'last':'einstein',
'location':'princeton',
},
'mcurie':{
'first':'marie',
'last':'curie',
'location':'paris',
},
}
for key,value in users.items():
print("\nUsername:"+key)
full_name=value['first']+" "+value['last']
location=value['location']
print("\tFull_name:"+full_name.title())
print("\tLocation:"+location.title())
|
expected_output = {
'slot':{
2:{
'port_group':{
1:{
'port':{
'Hu2/0/25':{
'mode':'inactive'
},
'Hu2/0/26':{
'mode':'inactive'
},
'Fou2/0/27':{
'mode':'400G'
},
'Hu2/0/28':{
'mode':'inactive'
}
}
},
2:{
'port':{
'Hu2/0/29':{
'mode':'inactive'
},
'Hu2/0/30':{
'mode':'inactive'
},
'Fou2/0/31':{
'mode':'400G'
},
'Hu2/0/32':{
'mode':'inactive'
}
}
}
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.