content stringlengths 7 1.05M |
|---|
""" Modules are contained in this package. Modules are the lowest tier of
the three-tiered processing chain. Each module is "owned" by a manager, that
decides whether or not to invoke the module's processing abilities.
A module does two things: first, it must decide if a chat or kmail is
applicable to its task. If it is not, it should return None from its processing
function. If it is, it must do the second thing: process the chat/kmail in
some meaningful way and do some action.
A good module should be focused on a single task, instead of being a
monolithic entity that performs many tasks. If one piece of processing needs
to be used by many other modules, you should use the Event subsystem to
communicate between each other. """ |
print("Enter a number")
num = int(input())
print("Type 1 or 0")
num2 = int(input())
b = bool(num2)
if(b == True):
for i in range(1, num+1):
for j in range(1, i+1):
print("*", end=" ")
print()
elif (b == False):
for i in range(num, 0, -1):
for j in range(1, i+1):
print("*", end=" ")
print()
|
string = '012345678901234567890123456789012345678901234567890123456789'
n = 10
lista = [string[i:i+n] for i in range(0, len(string), n)]
listastring = '.'.join(lista)
print(listastring) |
# OpenWeatherMap API Key
weather_api_key = "4b6f407bc3690ac1562800a586bbda13"
# Google API Key
g_key = "AIzaSyBH17Xn87x8SM7waCAzHnS4gKMWRX96iDQ"
|
"""Shared constants for automation and script tracing and debugging."""
DATA_TRACE = "trace"
STORED_TRACES = 5 # Stored traces per automation
|
"""
The model level of application.
Contains modules which are the connectors between database and classes of
application level of system. Contained classes are responsible for the execution
of the right queries to access the required data.
Then initializes classes or returns data to the classes of application level
accordingly.
"""
__author__ = 'Thodoris Sotiropoulos'
|
t=int(input())
for i in range(t):
n=int(input())
h=0
for i in range(n+1):
if i%2==0:
h += 1
else:
h *= 2
print(h) |
"""
Write a program to calculate no of possible triangles in given array
Input: arr= {4, 6, 3, 7}
3, 4, 6, 7
Output: 3
Explanation: There are three triangles possible {3, 4, 6}, {4, 6, 7} and {3, 6, 7}.
"""
class Geometry:
def __init__(self, arr, n):
self.arr = arr
self.n = n
def possible_triangles_brute(self):
"""
[brute force approach to find total number of triangles in the given array]
Time Complexity: O(N^3)
Space Complexity: O(1)
Returns:
[int]: [total number of available triangles in yhe given array]
"""
arr = self.arr.copy()
count = 0
for i in range(self.n):
for j in range(i + 1, self.n):
for k in range(j + 1, self.n):
# Sum of two sides is greater than the third
if (arr[i] + arr[j] > arr[k] and
arr[i] + arr[k] > arr[j] and
arr[k] + arr[j] > arr[i]):
count += 1
return count
# Driver
arr = [4, 6, 3, 7]
geometry = Geometry(arr, len(arr))
print("Total possible triangles are {}".format(geometry.possible_triangles_brute())) |
# Same as sorted_list_permutation [3 (ii)], however we are counting the number of occurring *columns* in A instead of number of occurrences itself.
#
# Goal: *no runtime goal*
def custom_sort(A,B):
C=B
i=1
while i < len(B):
j=i
while j > 0 and (count_occurring_columns(B[j-1],A) > count_occurring_columns(B[j],A) or (count_occurring_columns(B[j-1],A) == count_occurring_columns(B[j],A) and B[j-1]<B[j])):
new_val=C[j]
C[j] = C[j-1]
C[j-1]=new_val
j-=1
i+=1
return reverse(C)
def reverse(C):
return C[::-1]
def count_occurring_columns(value,A):
cnt=0
for i in range(len(A)):
Col=get_column(A,i)
if value in Col:
cnt+=1
return cnt
def get_column(A,col_idx):
Col=[]
for i in range(len(A)):
for j in range(len(A[i])):
if (j==col_idx):
Col.append(A[i][j])
return Col
if __name__ == "__main__":
A=[[7,2,1],
[9,2,5],
[7,5,2]]
B=[7,2,1,9,5]
print(custom_sort(A,B)) |
"""
For declaring inverse properties of GraphObjects
"""
InverseProperties = dict()
class InversePropertyMixin(object):
"""
Mixin for inverse properties.
Augments RealSimpleProperty methods to update inverse properties as well
"""
def set(self, other):
ip_key = (self.owner_type, self.linkName)
ip = InverseProperties.get(ip_key)
if ip:
rhs_cls, rhs_linkName = ip.other(*ip_key)
if isinstance(other, rhs_cls):
rhs_prop = getattr(other.contextualize(self.context), rhs_linkName)
super(InversePropertyMixin, rhs_prop).set(self.owner)
return super(InversePropertyMixin, self).set(other)
def unset(self, other):
ip_key = (self.owner_type, self.linkName)
ip = InverseProperties.get(ip_key)
if ip:
rhs_cls, rhs_linkName = ip.other(*ip_key)
if isinstance(other, rhs_cls):
rhs_prop = getattr(other, rhs_linkName)
ctxd_rhs_prop = rhs_prop.contextualize(self.context)
super(InversePropertyMixin, ctxd_rhs_prop).unset(self.owner)
return super(InversePropertyMixin, self).unset(other)
class InverseProperty(object):
def __init__(self, lhs_class, lhs_linkName, rhs_class, rhs_linkName):
self.lhs_class = lhs_class
self.rhs_class = rhs_class
self.lhs_linkName = lhs_linkName
self.rhs_linkName = rhs_linkName
InverseProperties[(lhs_class, lhs_linkName)] = self
InverseProperties[(rhs_class, rhs_linkName)] = self
def other(self, cls, name):
if issubclass(cls, self.lhs_class) and self.lhs_linkName == name:
return (self.rhs_class, self.rhs_linkName)
elif issubclass(cls, self.rhs_class) and self.rhs_linkName == name:
return (self.lhs_class, self.lhs_linkName)
raise InversePropertyException('The property ({}, {}) has no inverse in {}'.format(cls, name, self))
def __repr__(self):
return 'InverseProperty({},{},{},{})'.format(self.lhs_class,
self.lhs_linkName,
self.rhs_class,
self.rhs_linkName)
class InversePropertyException(Exception):
pass
|
hello = ''
with open('hello-world.txt', 'r') as f:
hello = f.read()
print(hello) |
# This is just for socgen-k test, you make sure Socgen-k server is working well.
# https://socgen-k-api.openbankproject.com/
# API server URL
BASE_URL = "https://socgen-k-api.openbankproject.com"
API_VERSION = "v2.0.0"
API_VERSION_V210 = "v2.1.0"
# API server will redirect your browser to this URL, should be non-functional
# You will paste the redirect location here when running the script
CALLBACK_URI = 'http://127.0.0.1/cb'
# login user:
USERNAME = '1000203893'
PASSWORD = '123456'
CONSUMER_KEY = '45wpocdzh2uwnorvrk2sfy1rnwyc0h2ff3kdkr2s'
# fromAccount info: 1000203893
FROM_BANK_ID = '00100'
# FROM_ACCOUNT_ID = '3806441b-bbdf-3c60-b2b3-14e2f645635f' # 0 transaction
FROM_ACCOUNT_ID = '83b96bb4-ae2c-3e90-ad2c-8ce0b4b0023b' # 3 transactions
# FROM_ACCOUNT_ID = 'df88925b-4a7f-31f6-a077-3dcbd60b669f' # 12 transaction
TO_BANK_ID = '00100'
# the following there acounds are all belong to login user : 1000203893
# TO_ACCOUNT_ID = '3806441b-bbdf-3c60-b2b3-14e2f645635f'
# TO_ACCOUNT_ID = '83b96bb4-ae2c-3e90-ad2c-8ce0b4b0023b'
# TO_ACCOUNT_ID = 'df88925b-4a7f-31f6-a077-3dcbd60b669f'
# this account is belong to user: 1000203892
TO_ACCOUNT_ID = '410ad4eb-9f63-300f-8cb9-12f0ab677521'
# these accounts are belong to user: 1000203891
# TO_ACCOUNT_ID = '1f5587fa-8ad8-3c6b-8fac-ac3db5bdc3db'
# these accounts are belong to user: 1000203899 --Ulrich Standalone account
# TO_ACCOUNT_ID = 'bb912420-484d-38c2-8c5b-d9772dd5bfbc'
# TO_ACCOUNT_ID = '0796d146-e39c-36a1-85cd-ef74f5d8227d'
# toCountery
# {
# "name": "test2",
# "created_by_user_id": "b9ed3a54-1e98-4ca1-9f95-76815373d9f4",
# "this_bank_id": "00100",
# "this_account_id": "83b96bb4-ae2c-3e90-ad2c-8ce0b4b0023b",
# "this_view_id": "owner",
# "counterparty_id": "a78dab15-1c51-4e1e-bfc2-aa270a60eb6d",
# "other_bank_routing_scheme": "Agence",
# "other_account_routing_scheme": "BKCOM_ACCOUNT",
# "other_bank_routing_address": "00100",
# "other_account_routing_address": "1000203892",
# "is_beneficiary": true
# }
# Our currency to use
OUR_CURRENCY = 'XAF'
# Our value to transfer
OUR_VALUE = '10'
OUR_VALUE_LARGE = '1001.00'
|
GOOD_HTTP_CODES = [200, 201, 202, 203]
USER_FIELD = 'username'
ACCESS_TOKEN_FIELD = 'access_token'
REFRESH_TOKEN_FIELD = 'refresh_token'
EXPIRE_TIME_TOKEN_FIELD = 'expires_in'
ERROR_CODE_FIELD = 'errcode'
MENSSAGE_FIELD = 'errmsg'
LIST_FIELD = 'list'
STATE_FIELD = 'state'
PAGES_FIELD = 'pages'
GATEWAY_MAC_FIELD = 'gatewayMac'
LOCK_MAC_FIELD ='lockMac'
LOCK_ALIAS_FIELD = 'lockAlias'
LOCK_ID_FIELD = 'lockId'
GATEWAY_ID_FIELD = 'gatewayId'
ELECTRIC_QUANTITY_FIELD = 'electricQuantity'
API_URI='https://api.ttlock.com/v3'
GATEWAY_LIST_RESOURCE = 'gateway/list'
LOCK_RESOURCE = 'lock/lock'
UNLOCK_RESOURCE = 'lock/unlock'
LOCKS_PER_GATEWAY_RESOURCE = 'gateway/listLock'
LOCK_RECORDS_RESOURCE = 'lockRecord/list'
LOCK_STATE_RESOURCE = 'lock/queryOpenState'
LOCK_ELECTRIC_QUANTITY_RESOURCE='lock/queryElectricQuantity'
GATEWAY_LIST_URL = '{}/{}?clientId={}&accessToken={}&pageNo={}&pageSize={}&date={}'
LOCKS_PER_GATEWAY_URL = '{}/{}?clientId={}&accessToken={}&gatewayId={}&date={}'
LOCK_RECORDS_URL = '{}/{}?clientId={}&accessToken={}&lockId={}&pageNo={}&pageSize={}&startDate={}&endDate={}&date={}'
LOCK_QUERY_URL = '{}/{}?clientId={}&accessToken={}&lockId={}&date={}'
USER_RESOURCE = 'user/register'
USER_CREATE_URL = '{}/{}?clientId={}&clientSecret={}&username={}&password={}&date={}'
TOKEN_RESOURCE = 'oauth2/token'
TOKEN_CREATE_URL = 'https://api.ttlock.com/{}?client_id={}&client_secret={}&username={}&password={}&grant_type=password&redirect_uri={}'
TOKEN_REFRESH_URL = 'https://api.ttlock.com/{}?client_id={}&client_secret={}&refresh_token={}&grant_type=refresh_token&redirect_uri={}'
UNLOCK_CODES = {1:'App unlock', 2:'touch the parking lock', 3:'gateway unlock', 4:'passcode unlock', 5:'parking lock raise', 6:'parking lock lower', 7:'IC card unlock', 8:'fingerprint unlock', 9:'wristband unlock', 10:'mechanical key unlock', 11:'Bluetooth lock', 12:'gateway unlock', 29:'unexpected unlock', 30:'door magnet close', 31:'door magnet open', 32:'open from inside', 33:'lock by fingerprint', 34:'lock by passcode', 35:'lock by IC card', 36:'lock by Mechanical key', 37:'Remote Control', 44:'Tamper alert', 45:'Auto Lock', 46:'unlock by unlock key', 47:'lock by lock key', 48:'Use INVALID Passcode several times'} |
def insertionSort(alist):
for index in range(1, len(alist)):
currentvalue = alist[index]
position = index
while position > 0 and alist[position - 1] > currentvalue:
alist[position] = alist[position - 1]
position = position - 1
alist[position] = currentvalue
alist = [54, 26, 93, 17, 77, 31, 44, 55, 20]
insertionSort(alist)
print(alist)
|
# -*- coding: utf-8 -*-
"""save_princess_peach.constants.py
Constants for save-princes-peach.
"""
# Default file used as grid
DEFAULT_GRID = '/Users/JFermin/Documents/GitHub/itsMeMario/tests/test_grids/init_grid.txt'
# players
BOWSER = 'b'
PEACH = 'p'
MARIO = 'm'
PLAYERS = [BOWSER, PEACH, MARIO]
# additional tiles
HAZARDS = '*'
SAFE = '-'
VISITED = "v"
ALL_POSITIONS = [BOWSER, PEACH, MARIO, HAZARDS, SAFE, VISITED]
SAFE_POSITION = [SAFE, PEACH, BOWSER]
# Movements
UP = 'UP'
DOWN = 'DOWN'
LEFT = 'LEFT'
RIGHT = 'RIGHT'
|
"Github API v2 library for Python"
VERSION = (0, 2, 0)
__author__ = "Ask Solem"
__contact__ = "askh@opera.com"
__homepage__ = "http://github.com/ask/python-github2"
__version__ = ".".join(map(str, VERSION))
|
N = 6
edge_list = [(0, 1, 30), (1, 0, 30), (0, 2, 25), (2, 0, 20), (1, 2, 40),
(2, 1, 35), (1, 3, 35), (2, 4, 15), (3, 1, 25), (3, 2, 20),
(3, 5, 45), (4, 3, 10), (4, 5, 40), (5, 3, 50), (5, 4, 50)]
dij = [[float('inf') for i in range(N)] for j in range(N)]
for i in range(N):
dij[i][i] = 0.0
for e in edge_list:
dij[e[0]][e[1]] = e[2]
def dijkstra(origin, dest):
v = [float('inf') for i in range(N)]
M = list(range(N))
p = [None for i in range(N)]
i = origin
v[i] = 0
M.remove(i)
while len(M) > 0:
for j in range(N):
dist = v[i] + dij[i][j]
if v[j] > dist:
v[j] = dist
p[j] = i
min_v = float('inf')
for j in M:
if min_v > v[j]:
min_v = v[j]
i = j
M.remove(i)
path = [dest]
while dest != origin:
path.insert(0, p[dest])
dest = p[dest]
print('dist:', v[dest], ' path:', path)
dijkstra(0, 5) # dist: 0 path: [0, 2, 4, 5]
|
#list
list = [1,2,3,4,8]
print(list)
list.append(6)
print(list)
list.pop(2)
print(list)
list.insert(1,7)
print(list)
list.extend([1,2,4,7])
print(list)
print(list.count(2))
print(1 in list)
list.sort()
print(list)
list.reverse()
print(list)
#dictionary
dict = {
1:'yasser',
'h':'honey',
'l':3
}
#tupels
tuple = (1,2,4,5,8,8)
#set
set = {1,2,3,4,5,7}
set.add(9)
print(set)
lists = [1,2,3,5,4,7,7]
y = set.isdisjoint(lists)
print(y) |
class Card:
values = ["A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"]
suits = ["Hearts", "Diamonds", "Clubs", "Spades"]
def __init__(self, value, suit):
self.set_value(value)
self.set_suit(suit)
def __repr__(self):
return f"{self.value} of {self.suit}"
def set_value(self, value):
if value not in Card.values:
raise ValueError
self.value = value
def set_suit(self, suit):
if suit not in Card.suits:
raise ValueError
self.suit = suit |
# Criar programa que leia vários números inteiros e pare quando o número 999 for digitado.
# Mostre a soma e o número de termos, desconsiderando o flag.
c = s = 0
while True:
n = int(input('Digite um número: '))
if n == 999:
break
c = c + 1
s = s + n
print(f'A soma dos {c} termos é igual a {s}.') |
def running_sum(numbers, start=0):
if len(numbers) == 0:
print()
return
total = numbers[0] + start
print(total,end="")
running_sum(numbers[1:],total)
|
class MyClass:
var = "hello"
def say(a,b):
print("hello"+a.var+b) |
def parse_iteration(s):
if s[-1] == 'k':
return int(s[:-1])*1000
elif s[-1] == 'm':
return int(s[:-1])*1000000
else:
return int(s)
|
#ALGORITHM USED FOR GENERATING A MAGIC SQUARE USING FORMULA IS AS FOLLOWS:
#Step 1: Start in the middle of the top row, and let n=1
#Step 2: Insert n into the current grid position;
#Step 3: If n=N2 the grid is complete so stop. Otherwise increment n
#Step 4: Move diagonally up and right, wrapping to the first column or last row if the move leads outside the grid. If this cell is already filled, move vertically down one space instead.
#Step 5: Return to step 2.
def generateSquare(n):
# initially all the grids are set to 0
magicSquare = [[0, 0, 0],
[0, 0, 0],
[0, 0, 0]]
# first we fit the position of 1
i = n / 2
j = n - 1
# Filling the magic square from the conditions
temp = 1
while temp <= (n * n):
if i == -1 and j == n:
j = n - 2
i = 0
else:
# if the next number goes out of range
if j == n:
j = 0
# condition if the next number goes out of range in upper side
if i < 0:
i = n - 1
if magicSquare[int(i)][int(j)]:
j = j - 2
i = i + 1
continue
else:
magicSquare[int(i)][int(j)] = temp
temp = temp + 1
j = j + 1
i = i - 1
# Printing magic square
print("sum of any magic square for any n is n(n*n + 1)/2 ")
print("Magic Squre for n=3 whose sum is 15 in each row and column")#since n(n*n+1)/2 = 15 and n = 3
print(" 0, 1, 2")
for count, row in enumerate(magicSquare):
print(count, row)
generateSquare(3)
|
'''
Erros mais comuns em Python
É importante prestar atenção e aprender a ler as saídas de erros geradas pela execução do
nosso código.
Os erros mais comuns:
SyntaxError - Ocorre quando o Python encontra um erro de sintaxe. Ous seja, vocÊ escreveu algo
que o Python não reconhece como parte da linguagem.
# Exemplo SyntaxError
a)
def funcao()
print('Geek University')
b - def = 1
c - return
2 - NameError - Ocorre quando uma variável ou função não foi definida.
# Exemplos NameError
a - print(geek)
a = 8
if a < 10:
msg = 'É maior que 10'
print(msg)
3 - # - TypeError - Ocorre quando uma função/operação é aplicada a um tipo errado.
# Exemplo TypeError
print(len(5))
print('Geek' + str(4))
4 - IndexError - Ocorre quando tentamos acessar um elemento em uma lista ou outro tipo de dado
indexado utilizando um índice inválido.
# Exemplos IndexError
lista = ['Geek', ]
print(lista[0][10])
5 - ValueERror - Ocorre quando uma função/operação built-in (integrada) recebe um argumento com tipo
correto mas valor inapropriado.
Exemplos ValueError
print(int('Geek'))
6 - KeyError - Ocorre quando tentamos acessar um dicionário com uma chave que não existe.
Exemplos KeyError
a -
dic = {'geek': 'university'}
print(dic['geek'])
7 - AttributeError - Ocorre quando uma variável não tem um atributo.
Exemplos AtributeError
a)tupla = (1,4,2, 3, 7 )
print(tupla.sort())
8 - IndentationError - Ocorre quando não respeitamos a indentação do Python (4 espaços)
Exemplos IndentationError
a - def nova():
print('Geek')
'''
|
# this module is a place to store stuff that is used in multiple modules
# valorant client object
client = None
# websocket connections
sockets = []
# user configuration
config = None
# onboarding state
onboarding = False
# asyncio loop
loop = None |
def print_hello_world(n):
while n > 0:
print('Hello, world!')
n = n - 1
print_hello_world(3)
|
class DataErrorsChangedEventArgs(EventArgs):
""" DataErrorsChangedEventArgs(propertyName: str) """
@staticmethod
def __new__(self, propertyName):
""" __new__(cls: type,propertyName: str) """
pass
PropertyName = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: PropertyName(self: DataErrorsChangedEventArgs) -> str
"""
|
class ReturnValuesWrapper(object):
"""
Wraps a return specification and a set of corresponding return values.
Enables comparison between value sets.
"""
def __init__(self, return_spec, values):
self.return_spec = return_spec
self.values = values
# TODO: Use something like functools.total_ordering
def __lt__(self, other):
if self.minimization:
return self.values < other.values
else:
return self.values > other.values
def __eq__(self, other):
return not self < other and not other < self
def __ne__(self, other):
return self < other or other < self
def __gt__(self, other):
return other < self
def __ge__(self, other):
return not self < other
def __le__(self, other):
return not other < self
def __str__(self):
return str(self.values)
def __repr__(self):
return repr(self.values)
@property
def raw_values(self):
"""The unwrapped values"""
return self.values
@property
def minimization(self):
if not self.return_spec:
return True
else:
return self.return_spec.return_values[0]["minimize"]
|
"""
https://leetcode-cn.com/problems/edit-distance/
https://leetcode-cn.com/problems/edit-distance/solution/bian-ji-ju-chi-by-leetcode-solution/
https://leetcode-cn.com/problems/edit-distance/solution/zi-di-xiang-shang-he-zi-ding-xiang-xia-by-powcai-3/
"""
class Solution:
def minDistance(self, word1: str, word2: str) -> int:
n = len(word1)
m = len(word2)
# 有一个字符串为空串
if n * m == 0:
return n + m
# DP 数组
dp = [[0] * (m + 1) for _ in range(n + 1)]
# 边界状态初始化
for i in range(n + 1):
dp[i][0] = i
for j in range(m + 1):
dp[0][j] = j
# 计算所有 dp 的值
for i in range(1, n + 1):
for j in range(1, m + 1):
left = dp[i - 1][j] + 1
down = dp[i][j - 1] + 1
left_down = dp[i - 1][j - 1]
if word1[i - 1] != word2[j - 1]:
left_down += 1
dp[i][j] = min(left, down, left_down)
return dp[n][m]
|
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Configuration for Invenio-Theme."""
BASE_TEMPLATE = 'invenio_theme/page.html'
"""Base template for user facing pages.
The template provides a basic skeleton which takes care of loading assets,
embedding header metadata and define basic template blocks. All other user
facing templates usually extends from this template and thus changing this
template allows to change design and layout of Invenio.
"""
ADMIN_BASE_TEMPLATE = 'invenio_theme/page_admin.html'
"""Base template for the administration interface.
The template changes the administration interface from using a standard
Bootstrap interface to using
`AdminLTE 2 <https://almsaeedstudio.com/themes/AdminLTE/index2.html>`_.
The variable is defined in Invenio-Admin which will use the value defined here
if Invenio-Theme is installed.
"""
COVER_TEMPLATE = 'invenio_theme/page_cover.html'
"""Cover page template normally used e.g. for login and sign up pages."""
SETTINGS_TEMPLATE = 'invenio_theme/page_settings.html'
"""Settings page template used for e.g. display user settings views."""
THEME_HEADER_TEMPLATE = 'invenio_theme/header.html'
"""Header template which is normally included in :data:`BASE_TEMPLATE`."""
THEME_HEADER_LOGIN_TEMPLATE = 'invenio_theme/header_login.html'
"""Header login template, included in :data:`THEME_HEADER_TEMPLATE`."""
THEME_FOOTER_TEMPLATE = 'invenio_theme/footer.html'
"""Footer template which is normally included in :data:`BASE_TEMPLATE`."""
THEME_JAVASCRIPT_TEMPLATE = 'invenio_theme/javascript.html'
"""Javascript assets template, normally included in :data:`BASE_TEMPLATE`.
The default template just includes the Invenio-Theme JavaScript bundle.
Set a new template if you would like to customize which JavaScript assets are
included on all pages.
"""
THEME_TRACKINGCODE_TEMPLATE = 'invenio_theme/trackingcode.html'
"""Template for including a tracking code for web analytics.
The default template does not include any tracking code.
"""
THEME_BASE_TEMPLATE = None
"""Template which all templates in Invenio-Theme all extends from.
Defaults to value of :const:`BASE_TEMPLATE`.
"""
THEME_COVER_TEMPLATE = None
"""Template which all cover templates in Invenio-Theme all extends from.
Defaults to value of :const:`COVER_TEMPLATE`.
"""
THEME_SETTINGS_TEMPLATE = None
"""Template which all settings templates in Invenio-Theme all extends from.
Defaults to value of :const:`SETTINGS_TEMPLATE`.
"""
THEME_ERROR_TEMPLATE = 'invenio_theme/page_error.html'
"""Base template for error pages."""
THEME_GOOGLE_SITE_VERIFICATION = []
"""List of Google Site Verification tokens to be used.
This adds the Google Site Verfication into the meta tags of all pages.
"""
THEME_LOGO = 'images/invenio-white.svg'
"""The logo to be used on the header and on the cover."""
THEME_LOGO_ADMIN = 'images/invenio-white.svg'
"""The logo to be used on the admin views header."""
THEME_FRONTPAGE = False
"""Enable or disable basic frontpage view."""
THEME_FRONTPAGE_TITLE = 'Invenio'
"""The title shown on the fronpage."""
THEME_FRONTPAGE_TEMPLATE = 'invenio_theme/frontpage.html'
"""Template for front page."""
THEME_SEARCHBAR = True
"""Enable or disable the header search bar."""
THEME_SEARCH_ENDPOINT = '/search'
"""The endpoint for the search bar."""
THEME_BREADCRUMB_ROOT_ENDPOINT = ''
"""The endpoint for the Home view in the breadcrumbs."""
THEME_SITENAME = 'Invenio'
"""The name of the site to be used on the header and as a title."""
THEME_401_TEMPLATE = 'invenio_theme/401.html'
"""The template used for 401 Unauthorized errors."""
THEME_403_TEMPLATE = 'invenio_theme/403.html'
"""The template used for 403 Forbidden errors."""
THEME_404_TEMPLATE = 'invenio_theme/404.html'
"""The template used for 404 Not Found errors."""
THEME_429_TEMPLATE = 'invenio_theme/429.html'
"""The template used for 429 Too Many Requests errors."""
THEME_500_TEMPLATE = 'invenio_theme/500.html'
"""The template used for 500 Internal Server Error errors."""
|
#! /usr/local/bin/env python3
# picture-grid.py
# Say you have a list of lists where each value in the inner lists is a
# one-character string, like this:
grid = [['.', '.', '.', '.', '.', '.'],
['.', 'O', 'O', '.', '.', '.'],
['O', 'O', 'O', 'O', '.', '.'],
['O', 'O', 'O', 'O', 'O', '.'],
['.', 'O', 'O', 'O', 'O', 'O'],
['O', 'O', 'O', 'O', 'O', '.'],
['O', 'O', 'O', 'O', '.', '.'],
['.', 'O', 'O', '.', '.', '.'],
['.', '.', '.', '.', '.', '.']]
# You can think of grid[x][y] as being the character at the
# x -and y-coordinates of a “picture” drawn with text characters.
# The(0, 0) origin will be in the upper-left corner, the x-coordinates
# increase going right, and the y-coordinates increase going down.
# Copy the previous grid value, and write code that uses it to print the image.
# ..OO.OO..
# .OOOOOOO.
# .OOOOOOO.
# ..OOOOO..
# ...OOO...
# ....O....
# Hint: You will need to use a loop in a loop in order to print grid[0][0],
# then grid[1][0], then grid[2][0], and so on, up to grid[8][0]. This will
# finish the first row, so then print a newline. Then your program should
# print grid[0][1], then grid[1][1], then grid[2][1], and so on. The last
# thing your program will print is grid[8][5].
# Also, remember to pass the end keyword argument to print() if you don’t
# want a newline printed automatically after each print() call.
for row in range(len(grid[0])):
new_row = ''
for col in grid:
new_row += col[row]
print(new_row)
|
our_set = set()
our_set2 = {0}
print(our_set, type(our_set))
print(our_set2, type(our_set2))
our_set.add('tomato')
our_set2.add("potato")
print(our_set)
print(our_set2)
x = "tomato"
print(x in our_set)
print(x in our_set2)
print(our_set.isdisjoint(our_set2))
our_set3 = our_set.union(our_set2)
print(our_set3)
our_set.update(our_set3)
our_set.update(our_set2)
print(our_set)
print(our_set.issubset(our_set3)) |
#
# PySNMP MIB module CISCO-XGCP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-XGCP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:21:37 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion")
CCallControlProfileIndexOrZero, cmgwIndex = mibBuilder.importSymbols("CISCO-MEDIA-GATEWAY-MIB", "CCallControlProfileIndexOrZero", "cmgwIndex")
CMgcGroupIndexOrZero, = mibBuilder.importSymbols("CISCO-MGC-MIB", "CMgcGroupIndexOrZero")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
CiscoPort, = mibBuilder.importSymbols("CISCO-TC", "CiscoPort")
InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
TimeTicks, ObjectIdentity, ModuleIdentity, NotificationType, MibIdentifier, Integer32, Unsigned32, iso, IpAddress, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Bits, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "ModuleIdentity", "NotificationType", "MibIdentifier", "Integer32", "Unsigned32", "iso", "IpAddress", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Bits", "Gauge32")
TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "DisplayString")
ciscoXgcpMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 318))
ciscoXgcpMIB.setRevisions(('2006-02-21 00:00', '2005-12-21 00:00', '2005-08-24 00:00', '2005-08-09 00:00', '2005-03-07 00:00', '2004-11-15 00:00', '2004-08-30 00:00', '2004-05-14 00:00', '2003-02-03 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoXgcpMIB.setRevisionsDescriptions(('Added 7 new MGCP Packages to cXgcpMediaGwTable.', 'Sanitized the whole MIB.', '[1] Added table for Media Gateway statistics regarding Received and transmitted network messages. [2] Added table for active connections that are controlled by the Media Gateway.', 'Added cXgcpMediaGwAnnexabSdpEnabled to cXgcpMediaGwTable.', 'Added the following objects to cXgcpMediaGwTable cXgcpMediaGwLongDurTimer, cXgcpMediaGwProfile ', 'Added the following objects to cXgcpMediaGwTable cXgcpMediaGwConfiguredPackages, cXgcpMediaGwConnOosRsipBehavior ', '[1] Added the value resetTimerForEndpoint to CXgcpRetryMethod textual convention. [2] Widened the range of cXgcpMediaGwMaxExpTimeout. [3] Added cXgcpMediaGwCaleaEnabled to cXgcpMediaGwTable. ', 'Added the following objects: cXgcpMediaGwLastFailMgcAddrType, cXgcpMediaGwLastFailMgcAddr, cXgcpMediaGwDtmfRelay ', 'Initial version of this MIB module.',))
if mibBuilder.loadTexts: ciscoXgcpMIB.setLastUpdated('200602210000Z')
if mibBuilder.loadTexts: ciscoXgcpMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoXgcpMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-voice-gateway@cisco.com')
if mibBuilder.loadTexts: ciscoXgcpMIB.setDescription("This MIB is an enhancement for existing XGCP-MIB. xGCP is a set of protocols, for example SGCP (Simple Gateway Control Protocol) and MGCP (Media Gateway Control Protocol), which are designed as a control protocol within a distributed system that appears to the outside as a single VoIP/VoATM gateway. This system is composed of a call agent (or MGC, Media Gateway Controller) and of a set of 'media gateways' that perform the conversion of media signals between circuits and packets. In the xGCP model, the gateways focus on the audio signal translation function, while the call agent handles the signaling and call processing functions. Examples of Gateway Control Protocols are: * Simple Gateway Control Protocol (SGCP) * Media Gateway Control Protocol (MGCP) xGCP assumes a connection model where the basic constructs are: Endpoints : sources or sinks of data that could be physical or virtual. Connections : an association between two or more endpoints with the purpose of transmitting data between these endpoints. Once this association is established for both endpoints, data transfer between these endpoints can take place. Connections are grouped in calls. One or more connections can belong to one call. Connections and calls are set up at the initiative of one or several call agents. Terminologies used: AAL : ATM Adaptation Layer AUCX : Audit Connection Command used by the MGC to find out the status of a given gateway connection. AUEP : Audit Endpoint Command used by the MGC to find out the status of a given endpoint. CCAPI : Call Control Application Program Interface. CID : Channel Identifier CRCX : Connection Command from a MGC to request the gateway MG : Media Gateway MGC : Media Gateway Controller DLCX : Delete Command. This command can be initiated by either the MGC or gateway. GSM : Global System for Mobile Communications GW : Gateway. HP : Hairpin MDCX : Modify Connection Command from a MGC to request the gateway NSE : Negative Stuffing Event NTFY : A Notify Command sent from a gateway to a MGC in response to a RQNT command. PSTN : Public Switched Telephone Network RQNT : Request To Nofity Command from a MGC to request the gateway to provide a notification for configuration changes. RSIP : Restart in Progress Command. This command can be initiated by either the MGC or gateway. SPRT : Simple Packet Relay Transport SSE : Silicon Switching Engine TDM : Time Division Multiplexing TGW : Target Gateway TWC : Three Way Calling VCCI : Virtual Circuit Connection Identifier VMG : Virtual Media Gateway. It is a logical representation of a module (or a set of modules) that has MG functionality. There could be multiple VMGs in a device. VoAAL2 : Voice over AAL2")
cXgcpNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 0))
cXgcpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1))
cXgcpMgcCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1))
cXgcpMediaGw = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2))
cXgcpStats = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3))
cXgcpConnection = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4))
class CXgcpRetryMethod(TextualConvention, Integer32):
description = 'Method of resetting retry timer in XGCP. When media gateway re-try to communication to a call agent, the timeout for each re-try is doubled. Example: re-try time is 3 initial timeout is 2 (any unit) maximum possible retry time is 256 MGC group has 2 MGC and each MGC has two IP address timeout for neverResetTimer will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 128 256 512 MGC 1 IP22: 1024 2048 4096 timeout for resetTimerForNewMgc will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 2 4 8 MGC 1 IP22: 16 32 64 timeout for resetTimerForNewAddr will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 2 4 8 MGC 2 IP21: 2 4 8 MGC 1 IP22: 2 4 8 timeout for resetTimerForEndpoint will be as: MGC 1 IP11: 2 4 8 MGC 1 IP12: 16 32 64 MGC 2 IP21: 128 256 256 MGC 1 IP22: 256 256 256 '
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))
namedValues = NamedValues(("neverResetTimer", 1), ("resetTimerForNewMgc", 2), ("resetTimerForNewAddr", 3), ("resetTimerForEndpoint", 4))
class CXgcpCallEvent(TextualConvention, Integer32):
description = 'Represents possible Gateway Control Protocol Call Events. ack - Acknowledgement msg createConn - Create connection msg deleteConn - Delete connection msg modifyConn - Modify connection msg notifyReq - Notify request msg alert - CCAPI alert event callConnect - CCAPI call connect event confReady - CCAPI conference ready confDestroy - CCAPI conference destroyed callDisconnect - CCAPI call disconnect callProceed - CCAPI call proceeding offHook - CCAPI off-hook/call setup ind onHook - CCAPI on-hook/call disconnected mediaEvent - Media Events intEven - Internal Events dissocConf - Dissociate Conf assocConf - Associate Conf modifyDone - CCAPI Call modify done event voiceModeDone - Voice Cut-thru has happened nse - CCAPI NSE events callHandoff - Handoff Call to some other app babblerAuditResp - CCAPI babbler audit response '
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))
namedValues = NamedValues(("ack", 0), ("createConn", 1), ("deleteConn", 2), ("modifyConn", 3), ("notifyReq", 4), ("alert", 5), ("callConnect", 6), ("confReady", 7), ("confDestroy", 8), ("callDisconnect", 9), ("callProceed", 10), ("offHook", 11), ("onHook", 12), ("mediaEvent", 13), ("intEven", 14), ("dissocConf", 15), ("assocConf", 16), ("modifyDone", 17), ("voiceModeDone", 18), ("nse", 19), ("callHandoff", 20), ("babblerAuditResp", 21))
cXgcpMgcConfigTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1), )
if mibBuilder.loadTexts: cXgcpMgcConfigTable.setStatus('current')
if mibBuilder.loadTexts: cXgcpMgcConfigTable.setDescription('This is a table which is used to provision a MGC or MGC group for a MG. Each entry corresponds to a MGC or a MGC group for a single MG. ')
cXgcpMgcConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex"))
if mibBuilder.loadTexts: cXgcpMgcConfigEntry.setStatus('current')
if mibBuilder.loadTexts: cXgcpMgcConfigEntry.setDescription('Each row corresponds to a MGC or a group of MGCs for a media gateway.')
cXgcpMgcConfigMgcGrpNum = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 1), CMgcGroupIndexOrZero()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMgcConfigMgcGrpNum.setStatus('current')
if mibBuilder.loadTexts: cXgcpMgcConfigMgcGrpNum.setDescription('This object specifies which MGC Redundant Group will be used in XGCP. The value of this object refers to the object cMgcGrpIndex from MGC Redundant Group Table, cMgcGrpParamTable. There are two conditions to associate a MGC group: 1. At least one MGC is associated with the MGC group 2. At least one protocol is associated with the MGC group If the value of the object is non-zero, it means the media gateway has a MGC Redundant Group. In the call setup, the parameters of call agents within the MGC Redundant Group will be sequentially tried according to its preference. This object cXgcpMgcConfigMgcGrpNum and object cXgcpMgcConfigAddress are mutually exclusive. The object cXgcpMgcConfigAddress can be set only when the object cXgcpMgcConfigMgcGrpNum is equal to 0. If the value of the object is 0, which means there is no MGC Redundant Group associated with the media gateway. It has only one call agent (in media gateway level) to communicate with. This call agent is indicated by cXgcpMgcConfigAddress and will be used in call setup (if call set-up on media gateway level). ')
cXgcpMgcConfigAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 2), InetAddressType().clone('ipv4')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMgcConfigAddrType.setStatus('current')
if mibBuilder.loadTexts: cXgcpMgcConfigAddrType.setDescription('This object specifies the address type of the MGC (object cXgcpMgcConfigAddress), either ipv4 or ipv6.')
cXgcpMgcConfigAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 3), InetAddress().clone(hexValue="00000000")).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMgcConfigAddress.setStatus('current')
if mibBuilder.loadTexts: cXgcpMgcConfigAddress.setDescription('This object specifies the address of the MGC the gateway used to communicate with in call setup. This object cXgcpMgcConfigAddress and object cXgcpMgcConfigMgcGrpNum are mutually exclusive. The object cXgcpMgcConfigAddress can be set only when the object cXgcpMgcConfigMgcGrpNum is equal to 0. Otherwise, the SET will be rejected with error. ')
cXgcpMgcConfigProtocolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMgcConfigProtocolIndex.setStatus('current')
if mibBuilder.loadTexts: cXgcpMgcConfigProtocolIndex.setDescription('This object specifies which protocol that the MG should use to communicate with the MGC when it try to set up the call. The value of this object is the same as the value of object cMediaGwProtocolIndex from protocol table (cMediaGwProtocolTable). If the value of cXgcpMgcConfigMgcGrpNum is non-zero, this object will be ignored because the protocol will be determined by the MGC group. The initial value is 1, means the system should have at least one default protocol between the gateway and the MGC created in the cMeidaGwProtocolTable when the system is initialized. ')
cXgcpMgcConfigGatewayUdpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 1, 1, 1, 5), CiscoPort().clone(2427)).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6 Transmission over UDP ')
if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setStatus('current')
if mibBuilder.loadTexts: cXgcpMgcConfigGatewayUdpPort.setDescription('The UDP port of the MG which is used to communicate with call agent in MGCP.')
cXgcpMediaGwTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1), )
if mibBuilder.loadTexts: cXgcpMediaGwTable.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwTable.setDescription('This table is used to provision xGCP configuration in a MG.')
cXgcpMediaGwEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex"))
if mibBuilder.loadTexts: cXgcpMediaGwEntry.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwEntry.setDescription("Each entry represents the xGCP attributes for a media gateway. An entry is created when the system detects the XGCP stack at system start-up. Accordingly, the existing entry shall be deleted when the system can't locate the XGCP stack at system start-up.")
cXgcpMediaGwRequestTimeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10000)).clone(500)).setUnits('milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6.3 Computing retransmission timers')
if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwRequestTimeOut.setDescription('The request timeout is the period that the XGCP protocol waits before retransmitting an unacknowledged message. It is the responsibility of the requesting entity to provide suitable timeouts for all outstanding commands, and to retry commands when timeouts exceeded. ')
cXgcpMediaGwRequestRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10)).clone(3)).setUnits('times').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.1.4 Names of Call Agents and other entities')
if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwRequestRetries.setDescription('This object specifies the number of retries for a request that exceeds timeout without acknowledge before it tries to connect to another MGC.')
cXgcpMediaGwRequestRetryMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 3), CXgcpRetryMethod()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwRequestRetryMethod.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwRequestRetryMethod.setDescription('This object specifies command retry method.')
cXgcpMediaGwMaxExpTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000)).clone(4000)).setUnits('milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwMaxExpTimeout.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwMaxExpTimeout.setDescription('This object specifies the maximum timeout for exponential command retry by the media gateway.')
cXgcpMediaGwRestartMwd = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600000)).clone(3000)).setUnits('milliseconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 4.3.4 Fighting the restart avalanche')
if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwRestartMwd.setDescription('The maximum waiting delay (MWD) timeout value is used for the media gateway to send the first Restart In Progress to the MGC. When a gateway is powered on, it should initiate a restart timer to a random value, uniformly distributed between 0 and a maximum waiting delay (MWD). The gateway should send the first RSIP message when the timer expires. The initial value of this object is chosen in an implementation-dependent manner by the MGCP functionality based on the call volume of the system. ')
cXgcpMediaGwRestartDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 600))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 4.3.4 Fighting the restart avalanche')
if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwRestartDelay.setDescription('This object specifies the Restart Delay Timeout for the restart process for a gateway to send out RestartInProgress when it is powered on or been reset. The purpose of setting the Restart Delay timer before sending the RestartInProgress notification to the media gateway controller is to avoid the network congestion during the critical period of service restoration. ')
cXgcpMediaGwDefaultPackage = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31))).clone(namedValues=NamedValues(("packageDC", 1), ("packageG", 2), ("packageD", 3), ("packageM", 4), ("packageT", 5), ("packageL", 6), ("packageH", 7), ("packageR", 8), ("packageN", 9), ("packageA", 10), ("packageS", 11), ("packageATM", 12), ("packageMS", 13), ("packageDT", 14), ("packageMO", 15), ("packageRES", 16), ("packageSASDI", 17), ("packageIT", 18), ("packageMT", 19), ("packageB", 20), ("packageSST", 21), ("packageMDR", 22), ("packageFXR", 23), ("packageBA", 24), ("packageMD", 25), ("packageNAS", 26), ("packageMDSTE", 27), ("packagePRE", 28), ("packageLCS", 29), ("packageSRTP", 30), ("packageFM", 31))).clone('packageG')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages')
if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwDefaultPackage.setDescription("This object represents the default capability package supported in the gateway. packageDC ( 1) - Don't Care package packageG ( 2) - Generic package packageD ( 3) - DTMF package packageM ( 4) - MF package packageT ( 5) - Trunk package packageL ( 6) - Line package packageH ( 7) - Handset package packageR ( 8) - RTP package packageN ( 9) - NAS package packageA (l0) - Announcement Server package packageS (11) - Script package packageATM (12) - ATM package packageMS (13) - MF CAS package packageDT (14) - DTMF CAS package packageMO (15) - MO package packageRES (16) - RES package packageSASDI(17) - ASDI package (S) NCS packageIT (18) - IT package (S) TGCP packageMT (19) - MT package packageB (20) - B package packageSST (21) - SST package packageMDR (22) - MDR package packageFXR (23) - FAX package packageBA (24) - Bulk Audit package packageMD (25) - MD package packageNAS (26) - Network Access Server package packageMDSTE(27) - Modem relay Secure Telephone Equipment package packagePRE (28) - PRE package packageLCS (29) - MGCP Line Control Signaling package packageSRTP (30) - Secure RTP package packageFM (31) - Media Format Package ")
cXgcpMediaGwSupportedPackages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 8), Bits().clone(namedValues=NamedValues(("notFound", 0), ("packageDC", 1), ("packageG", 2), ("packageD", 3), ("packageM", 4), ("packageT", 5), ("packageL", 6), ("packageH", 7), ("packageR", 8), ("packageN", 9), ("packageA", 10), ("packageS", 11), ("packageATM", 12), ("packageMS", 13), ("packageDT", 14), ("packageMO", 15), ("packageRES", 16), ("packageSASDI", 17), ("packageIT", 18), ("packageMT", 19), ("packageB", 20), ("packageSST", 21), ("packageMDR", 22), ("packageFXR", 23), ("packageBA", 24), ("packageMD", 25), ("packageNAS", 26), ("packageMDSTE", 27), ("packagePRE", 28), ("packageLCS", 29), ("packageSRTP", 30), ("packageFM", 31)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages ')
if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwSupportedPackages.setDescription("This object represents the bit map of MGCP supported packages. Bit 0 - Not Found Bit 1 - Package DC (Don't care package) Bit 2 - Package G (Generic package) Bit 3 - Package D (DTMF package) Bit 4 - Package M (MF package) Bit 5 - Package T (Trunk package) Bit 6 - Package L (Line package) Bit 7 - Package H (Handset package) Bit 8 - Package R (RTP package) Bit 9 - Package N (NAS package) Bit 10 - Package A (Announcement Server package) Bit 11 - Package S (Script package) Bit 12 - Package ATM (ATM package) Bit 13 - Package MS (MF CAS package) Bit 14 - Package DT (DTMF CAS package) Bit 15 - Package MO (MO package) Bit 16 - Package RES (RES package) Bit 17 - Package S_ASDI (ASDI package (S) NCS) Bit 18 - Package IT (IT package (S) TGCP) Bit 19 - Package MT (MT package) Bit 20 - Package B (B package) Bit 21 - Package SST (SST package) Bit 22 - Package MDR (MDR package) Bit 23 - Package FXR (FAX package) Bit 24 - Package BA (Bulk Audit package) Bit 25 - Package MD (MD package) Bit 26 - Package NAS (Network Access Server package) Bit 27 - Package MDSTE (Modem relay Secure Telephone Equipment package) Bit 28 - Package PRE (PRE package) Bit 29 - Package LCS (MGCP Line Control Signaling package) Bit 33 - Package SRTP (Secure RTP package) Bit 31 - Package FM (Media Format Package) The value 0 means there is no supported packages. ")
cXgcpMediaGwSimpleSdpEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 9), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwSimpleSdpEnabled.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwSimpleSdpEnabled.setDescription("This object is used to enable/disable building of s, t, o lines in SDP message. where o field indicates the owner/creator and session identifier s field indicates the session name t field indicates the duration while a session is valid. If this object is set to 'true'(enabled), SDP will NOT include the fields s, t, and o. If this object is set to 'false', then it indicates that the o, s, t lines be built before sending SDP (Session Description Protocol). ")
cXgcpMediaGwAckSdpEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 10), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwAckSdpEnabled.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwAckSdpEnabled.setDescription("This object specifies the ACK SDP is enabled or not. If this object is set to 'true', then it sends ADP with ACK when CODEC or reportable NTE delta changed, or an attempt is made to change CODEC, VAD, Packet-period, echo cancellation during FAX/modem mode. ")
cXgcpMediaGwUndottedNotation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwUndottedNotation.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwUndottedNotation.setDescription("This object enables/disables the undotted notation for CODEC. This object is used to set CODEC notation to 'dotted' or 'undotted' in SDP between the gateway and the call agent. For example, 'G.726' is 'dotted', while 'G726' is 'undotted'. If it is set to 'true', then the 'undotted' notation for CODEC is enabled. ")
cXgcpMediaGwQuarantineProcess = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 12), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.2.2.12. QuarantineHandling')
if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwQuarantineProcess.setDescription("This object is used to determine how to handle persistent events. If this object is set to 'true', the quarantined events should be processed, otherwise the quarantined events is discarded. ")
cXgcpMediaGwQuarantineLoop = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 13), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.2. NotificationRequest ')
if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwQuarantineLoop.setDescription("This object controls the default quarantine mode. If this object is set to 'true', the default quarantine mode is 'loop', not 'step'. When this object is set to 'true', the gateway is expected to generate multiple notifications (loop), not at most one notification (step by step), in response to quarantined events. This object will be ignored if the object cXgcpMediaGwQuarantineProcess is set to 'false'. ")
cXgcpMediaGwQuarantinePersist = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 14), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.2. NotificationRequest')
if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwQuarantinePersist.setDescription("This object specifies how the persist events will be handled in quarantine processing. If this object is set to 'true', the persistent events bypass quarantine buffer. This object will be ignored if the object cXgcpMediaGwQuarantineProcess is set to 'false'. ")
cXgcpMediaGwPiggybackMsg = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 15), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 3.6.4. Piggy backing')
if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwPiggybackMsg.setDescription('This object enables/disables the piggyback message generating. If the piggyback message generating is enabled, a call agent can send several MGCP messages in the same UDP packets to the gateway. ')
cXgcpMediaGwMaxMsgSize = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setUnits('bytes').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : Section 2.3.8 Audit Endpoint ')
if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwMaxMsgSize.setDescription('This object specifies the maximum allowed xGCP message size which is used for checking if the size will be supported by the call agent via (AuditEndPoint) response. A value of 0 means that there is no limit to the size of the XGCP message.')
cXgcpMediaGwLastFailMgcAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 17), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddrType.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddrType.setDescription('This object indicates the address type, either IPv4 or IPv6, of cxeCallCtrlLastFailMgcAddr.')
cXgcpMediaGwLastFailMgcAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 18), InetAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddr.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwLastFailMgcAddr.setDescription('This object indicates the address of last MGC which the media gateway had tried to communicate with but failed.')
cXgcpMediaGwDtmfRelay = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 19), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwDtmfRelay.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwDtmfRelay.setDescription("When this object is set to 'true', the digits will be sent as peer-to-peer packet in the bearer. When this object is set to 'false', the digits will be sent as regular voice packets in the bearer. For low complexity CODECS (such as G.711), the preferred value for this object could be 'false'. For high complexity CODECS (such as G.729A), the preferred value for this object should be 'true', otherwise the digits may not get recognized properly at the remote end.")
cXgcpMediaGwCaleaEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 20), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwCaleaEnabled.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwCaleaEnabled.setDescription("CALEA, Communication Assistance for Law Enforcement Act, is a feature that allows for a lawful intercept of a call details and call contents originating or terminating on specific terminals. CALEA feature can be turned on or off. A value 'true' specifies CALEA enabled and a value 'false' specifies CALEA disabled.")
cXgcpMediaGwConfiguredPackages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 21), Bits().clone(namedValues=NamedValues(("notFound", 0), ("packageDC", 1), ("packageG", 2), ("packageD", 3), ("packageM", 4), ("packageT", 5), ("packageL", 6), ("packageH", 7), ("packageR", 8), ("packageN", 9), ("packageA", 10), ("packageS", 11), ("packageATM", 12), ("packageMS", 13), ("packageDT", 14), ("packageMO", 15), ("packageRES", 16), ("packageSASDI", 17), ("packageIT", 18), ("packageMT", 19), ("packageB", 20), ("packageSST", 21), ("packageMDR", 22), ("packageFXR", 23), ("packageBA", 24), ("packageMD", 25), ("packageNAS", 26), ("packageMDSTE", 27), ("packagePRE", 28), ("packageLCS", 29), ("packageSRTP", 30), ("packageFM", 31)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setReference('RFC2705 - Media Gateway Control Protocol (MGCP) version 1.0 : 6.1. Basic packages ')
if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwConfiguredPackages.setDescription("This object represents the bit map of MGCP packages configured and supported in the gateway. Bit 0 - Not Found Bit 1 - Package DC (Don't care package) Bit 2 - Package G (Generic package) Bit 3 - Package D (DTMF package) Bit 4 - Package M (MF package) Bit 5 - Package T (Trunk package) Bit 6 - Package L (Line package) Bit 7 - Package H (Handset package) Bit 8 - Package R (RTP package) Bit 9 - Package N (NAS package) Bit 10 - Package A (Announcement Server package) Bit 11 - Package S (Script package) Bit 12 - Package ATM (ATM package) Bit 13 - Package MS (MF CAS package) Bit 14 - Package DT (DTMF CAS package) Bit 15 - Package MO (MO package) Bit 16 - Package RES (RES package) Bit 17 - Package S_ASDI (ASDI package (S) NCS) Bit 18 - Package IT (IT package (S) TGCP) Bit 19 - Package MT (MT package) Bit 20 - Package B (B package) Bit 21 - Package SST (SST package) Bit 22 - Package MDR (MDR package) Bit 23 - Package FXR (FAX package) Bit 24 - Package BA (Bulk Audit package) Bit 25 - Package MD (MD package) Bit 26 - Package NAS (Network Access Server package) Bit 27 - Package MDSTE (Modem relay Secure Telephone Equipment package) Bit 28 - Package PRE (PRE package) Bit 29 - Package LCS (MGCP Line Control Signaling package) Bit 33 - Package SRTP (Secure RTP package) Bit 31 - Package FM (Media Format Package) The value 0 means there is no supported packages. ")
cXgcpMediaGwConnOosRsipBehavior = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("sendDlcx", 1), ("rsipOnly", 2))).clone('sendDlcx')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwConnOosRsipBehavior.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwConnOosRsipBehavior.setDescription('This object specifies the RSIP behavior of the endpoints with active calls (in connections) when they are forced to out-of-service. The following values can be set for this object: sendDlcx - The media gateway sends RSIP-graceful and then individual DLCX command to delete the endpoints of each connection and its children before it sends out RSIP-forced command when an endpoint goes into alarm or placed out-of-service forcefully through the user command if the endpoint or its children has any calls (in connections). rsipOnly - The media gateway sends out RSIP-forced command, and delete the connections without any DLCX or RSIP-graceful command. This object is applicable only if the endpoint or its children have any calls. If there are no calls on the endpoint, the media gateway sends RSIP-forced command when the endpoint is forced to out-of-service.')
cXgcpMediaGwLongDurTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65536)).clone(3600)).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwLongDurTimer.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwLongDurTimer.setDescription('This object specifies the long duration timer. It is used to define the long duration of a connection. Once the timer expires, a notification will be sent to the MGC to indicate that a connection has established for the defined long duration.')
cXgcpMediaGwProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 24), CCallControlProfileIndexOrZero()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwProfile.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwProfile.setDescription('This object specifies the XGCP profile in the media gateway level. The value of 0 means the XGCP default profile is used in the media gateway level. If the value of ccasIfExtVoiceCfgCcntrlProfile is 0, then the endpoint uses the profile specified in this object.')
cXgcpMediaGwAnnexabSdpEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 2, 1, 1, 25), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cXgcpMediaGwAnnexabSdpEnabled.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwAnnexabSdpEnabled.setDescription("This object specifies the format for parsing or generating G.723 or G.729 codec in SDP message for the media gateway. The value 'true' means using Annex A and B in fmtp line complying with RFC 3555. The value 'false' means using Annex A and B in SDP attribute codec string.")
cXgcpMsgStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1), )
if mibBuilder.loadTexts: cXgcpMsgStatsTable.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsTable.setDescription('This table contains statistical information on the transmitted and received network messages between MG and MGC, since the MG reset. The entries in this table are uniquly identified by the VMG index and the MGC address. This table contains statistics of the most recently received 64 MGC addressess for every VMG present in the device. When a new address is received and the number of entries for this MGC exceeds 64, then a least recently received entry is deleted.')
cXgcpMsgStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex"), (0, "CISCO-XGCP-MIB", "cXgcpMsgStatsIndex"))
if mibBuilder.loadTexts: cXgcpMsgStatsEntry.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsEntry.setDescription('This entry contains the statistical information on the received and transmitted network messages with the associated MGC address.')
cXgcpMsgStatsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64)))
if mibBuilder.loadTexts: cXgcpMsgStatsIndex.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsIndex.setDescription('A unique index to identify a specific MGC address for tracking xGCP statistics between MGC and MG.')
cXgcpMsgStatsMgcIPAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 2), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddressType.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddressType.setDescription('This object indicates the address type of cXgcpMsgStatsMgcIPAddress. ')
cXgcpMsgStatsMgcIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 3), InetAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddress.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsMgcIPAddress.setDescription('This object indicates IP address of the MGC. The IP address should be unique on the table.')
cXgcpMsgStatsSuccessMessages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMsgStatsSuccessMessages.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsSuccessMessages.setDescription('This object indicates the number of successful messages that communicate with the MGC on that IP address. Successful messages apply to both transmit and receive messages. Transmit: Positive ACK received from the MGC. Receive : Positive ACK sent to the MGC. This implies that the format of the message is correct and the request can be fulfilled.')
cXgcpMsgStatsFailMessages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMsgStatsFailMessages.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsFailMessages.setDescription("This object indicates the number of failed messages that communicate with the MGC on that IP address. Failed messages apply to both transmit and receive messages. Transmit: Either NAK has been received from the MGC or message times out waiting for ACK. Receive: Format of the received message is bad or the request was NAK'ed.")
cXgcpMsgStatsIncompleteMessages = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpMsgStatsIncompleteMessages.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsIncompleteMessages.setDescription('This object indicates the number of transmit messages for which time out occurred while waiting for an ACK.')
cXgcpStatsTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2), )
if mibBuilder.loadTexts: cXgcpStatsTable.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTable.setDescription('This table contains information on the received and transmitted network messages, based on each message type, for all the VMGs present in the device. The table will have one entry for every VMG present in the device. When a new MG is instantiated, the device creates an entry. The entry is destroyed if the associated VMG is terminated.')
cXgcpStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex"))
if mibBuilder.loadTexts: cXgcpStatsEntry.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsEntry.setDescription("This entry contains the information on the associated VMG's received and transmitted network messages. The value of each statistical object is incremented when the MG receives or transmits an XGCP message corresponding to that object type. All these values are set to '0' upon restarting of the VMG.")
cXgcpStatsUdpRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsUdpRxPkts.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsUdpRxPkts.setDescription('Number of UDP packets received from all the MGCs.')
cXgcpStatsUdpTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsUdpTxPkts.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsUdpTxPkts.setDescription('Number of UDP packets sent to all the MGCs.')
cXgcpStatsUnRecRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsUnRecRxPkts.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsUnRecRxPkts.setDescription('Number of unrecognized UDP packets received from all the MGCs.')
cXgcpStatsMsgParsingErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsMsgParsingErrors.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsMsgParsingErrors.setDescription('Number of messages with parsing errors received from all the MGCs.')
cXgcpStatsDupAckTxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsDupAckTxMsgs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsDupAckTxMsgs.setDescription('Number of duplicate response messages sent to the MGCs.')
cXgcpStatsInvalidVerCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsInvalidVerCount.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsInvalidVerCount.setDescription('Number of invalid protocol version messages received from all the MGCs.')
cXgcpStatsUnknownMgcRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsUnknownMgcRxPkts.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsUnknownMgcRxPkts.setDescription('Number of unknown message packets received from all the MGCs.')
cXgcpStatsAckTxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsAckTxMsgs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsAckTxMsgs.setDescription('Number of acknowledgment messages sent by the MG.')
cXgcpStatsNackTxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsNackTxMsgs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsNackTxMsgs.setDescription('Number of negative acknowledgment messages sent by the MG.')
cXgcpStatsAckRxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsAckRxMsgs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsAckRxMsgs.setDescription('Number of acknowledgment messages received by the MG.')
cXgcpStatsNackRxMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsNackRxMsgs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsNackRxMsgs.setDescription('Number of negative acknowledgment messages received by the MG.')
cXgcpStatsRxCrcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxCrcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxCrcxs.setDescription('Number of CRCX messages received by the MG.')
cXgcpStatsRxSuccCrcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxSuccCrcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxSuccCrcxs.setDescription('Number of CRCX messages received, that were successful.')
cXgcpStatsRxFailCrcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxFailCrcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxFailCrcxs.setDescription('Number of CRCX messages received, that failed.')
cXgcpStatsRxDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxDlcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxDlcxs.setDescription('Number of DLCX messages received.')
cXgcpStatsRxSuccDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxSuccDlcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxSuccDlcxs.setDescription('Number of DLCX messages received, that were successful.')
cXgcpStatsRxFailDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxFailDlcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxFailDlcxs.setDescription('Number of DLCX messages received, that failed.')
cXgcpStatsTxDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxDlcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxDlcxs.setDescription('Number of DLCX messages sent.')
cXgcpStatsTxSuccDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxSuccDlcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxSuccDlcxs.setDescription('Number of DLCX messages sent, that were successful.')
cXgcpStatsTxFailDlcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxFailDlcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxFailDlcxs.setDescription('Number of DLCX messages sent, that failed.')
cXgcpStatsRxMdcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxMdcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxMdcxs.setDescription('Number of MDCX messages received.')
cXgcpStatsRxSuccMdcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxSuccMdcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxSuccMdcxs.setDescription('Number of MDCX messages received, that were successful.')
cXgcpStatsRxFailMdcxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxFailMdcxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxFailMdcxs.setDescription('Number of MDCX messages received, that failed.')
cXgcpStatsRxRqnts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxRqnts.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxRqnts.setDescription('Number of RQNT messages received.')
cXgcpStatsRxSuccRqnts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxSuccRqnts.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxSuccRqnts.setDescription('Number of RQNT messages received, that were successful.')
cXgcpStatsRxFailRqnts = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxFailRqnts.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxFailRqnts.setDescription('Number of RQNT messages received, that failed.')
cXgcpStatsRxAucxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxAucxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxAucxs.setDescription('Number of AUCX messages received.')
cXgcpStatsRxSuccAucxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxSuccAucxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxSuccAucxs.setDescription('Number of AUCX messages received, that were successful.')
cXgcpStatsRxFailAucxs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxFailAucxs.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxFailAucxs.setDescription('Number of AUCX messages received, that failed.')
cXgcpStatsRxAueps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxAueps.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxAueps.setDescription('Number of AUEP messages received.')
cXgcpStatsRxSuccAueps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxSuccAueps.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxSuccAueps.setDescription('Number of AUEP messages received, that were successful.')
cXgcpStatsRxFailAueps = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsRxFailAueps.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsRxFailAueps.setDescription('Number of AUEP messages received, that failed.')
cXgcpStatsTxRsips = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 33), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxRsips.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxRsips.setDescription('Number of RSIP messages sent.')
cXgcpStatsTxSuccRsips = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 34), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxSuccRsips.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxSuccRsips.setDescription('Number of RSIP messages sent, that were successful.')
cXgcpStatsTxFailRsips = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 35), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxFailRsips.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxFailRsips.setDescription('Number of RSIP messages sent, that failed.')
cXgcpStatsTxNotifies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 36), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxNotifies.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxNotifies.setDescription('Number of NTFY messages sent.')
cXgcpStatsTxSuccNotifies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 37), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxSuccNotifies.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxSuccNotifies.setDescription('Number of NTFY messages sent, that were successful.')
cXgcpStatsTxFailNotifies = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 3, 2, 1, 38), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpStatsTxFailNotifies.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsTxFailNotifies.setDescription('Number of NTFY messages sent, that failed.')
cXgcpConnectionTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1), )
if mibBuilder.loadTexts: cXgcpConnectionTable.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnectionTable.setDescription('This table contains information on the active connections of all the VMGs present in the device. A MG may have zero or more number of calls at any given time. Each call consists of one or more connection. The table will have one entry per VMG per connection present in the device. When a new connection is established, the device creates an entry. The entry is destroyed if the associated connection is torn down.')
cXgcpConnectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1), ).setIndexNames((0, "CISCO-MEDIA-GATEWAY-MIB", "cmgwIndex"), (0, "CISCO-XGCP-MIB", "cXgcpConnId"))
if mibBuilder.loadTexts: cXgcpConnectionEntry.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnectionEntry.setDescription('This entry contains the information about an active connection.')
cXgcpConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: cXgcpConnId.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnId.setDescription('Connection ID generated by the gateway and sent in the ACK message.')
cXgcpConnEndPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 2), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnEndPoint.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnEndPoint.setDescription('The physical or virtual entity that acts as a source or sink of data in the MG is called an endpoint. Every end point in the MG is assigned a textual name by the MG.')
cXgcpConnCallId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 3), SnmpAdminString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnCallId.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnCallId.setDescription('Call ID associated with this connection. Call ID is a parameter that identifies the call to which this connection belongs to. A call ID is unique within a VMG instance.')
cXgcpConnLocalUdpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 4), CiscoPort()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnLocalUdpPort.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnLocalUdpPort.setDescription('The local UDP port used for the connection.')
cXgcpConnRemoteUdpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 5), CiscoPort()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnRemoteUdpPort.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnRemoteUdpPort.setDescription('The remote UDP port used for the connection.')
cXgcpConnMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("invalid", 0), ("sendOnly", 1), ("recvOnly", 2), ("sendRecv", 3), ("inActive", 4), ("loopBack", 5), ("contTest", 6), ("data", 7), ("netwLoop", 8), ("netwTest", 9), ("conference", 10)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnMode.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnMode.setDescription('Represents possible MG connection modes. invalid - Invalid value for mode sendOnly - The GW should only send packets recvOnly - The GW should only receive packets sendRecv - The GW can send and receive packets inActive - The GW should neither send nor receive packets loopBack - The GW should place the circuit in loopback mode contTest - The GW should place the circuit in test mode data - The GW should use the circuit for network access for data netwLoop - The GW should place the connection in network loopback mode netwTest - The GW should place the connection in network continuity test mode conference - The GW should place the connection in conference mode.')
cXgcpConnVccId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnVccId.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnVccId.setDescription("VCCI used for the VoAAL2 call. The object should have a non-zero value only if the associated call is of VoAAL2 type. For all other calls the value should be '0'.")
cXgcpConnChannelId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnChannelId.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnChannelId.setDescription("CID used for the VoAAL2 call. The object should have a non-zero value only if the associated call is of VoAAL2 type. For all other calls the value should be '0'.")
cXgcpConnCallState = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25))).clone(namedValues=NamedValues(("idle", 0), ("setting", 1), ("connecting", 2), ("conferencing", 3), ("active", 4), ("confDestroying", 5), ("disconnecting", 6), ("inactive", 7), ("voiceConnecting", 8), ("voiceActive", 9), ("confDissociating", 10), ("callLegsDissociated", 11), ("hpConnecting", 12), ("hpConnected", 13), ("hpConferencing", 14), ("hpActive", 15), ("voipConfDestroy", 16), ("erroState", 17), ("connectingInactive", 18), ("confDestroyingInactive", 19), ("confTest", 20), ("setupWait", 21), ("waitNseSent", 22), ("twcActive", 23), ("waitState", 24), ("handOver", 25)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnCallState.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnCallState.setDescription('Represents possible MG call states. idle - Idle setting - Incoming call from PSTN connecting - CRCX message received conferencing - Call connected, await conf active - Conference created confDestroying - Destroying conference disconnecting - Conf destroyed, disconnect call inactive - call in inactive mode voiceConnecting - Creating telephony call leg only voiceActive - Telephony call leg created confDissociating - Destroying conf callLegsDissociated - Conf destroyed hpConnecting - connecting TDM hair-pin call leg hpConnected - one HP call leg connected hpConferencing - Conferencing TDM Hairpin call leg hpActive - TDM hair-pinning active state voipConfDestroy - Conf destroyed, make HP call erroState - call in error state connectingInactive - creating inactive connection confDestroyingInactive - conf destroy inactive conn confTest - AAL2/IP continuity test setupWait - Waiting for setup information waitNseSent - Wait for NSE event to be sent twcActive - TWC call active waitState - App is waiting for call control handOver - App is grabbing back the control')
cXgcpConnCodec = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 128, 129, 130, 131, 132, 133, 134, 135, 200))).clone(namedValues=NamedValues(("notApplicable", 0), ("g711ulaw", 1), ("g711alaw", 2), ("g726k32", 3), ("g726k24", 4), ("g726k16", 5), ("g729", 6), ("g729a", 7), ("g729b", 8), ("g729bLowComp", 9), ("g728", 10), ("g723", 11), ("g7231HighRate", 12), ("g7231aHighRate", 13), ("g7231LowRate", 14), ("g7231aLowRate", 15), ("gsmFullRate", 16), ("gsmHalfRate", 17), ("gsmEnhancedFullRate", 18), ("gsmEnhancedHalfRate", 19), ("g729ab", 20), ("clearChannel", 128), ("nse", 129), ("xnse", 130), ("nte", 131), ("t38", 132), ("modemRelay", 133), ("mdsteModemRelay", 134), ("sse", 135), ("codecUnknown", 200)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnCodec.setReference('RFC-3551')
if mibBuilder.loadTexts: cXgcpConnCodec.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnCodec.setDescription('Specifies the codec type to be used with the Call. The following codec types are defined: notApplicable - no Codec Type is defined g711ulaw - G.711 mu-law g711alaw - G.711 A-law g726k32 - G.726 32K g726k24 - G.726 24K g726k16 - G.726 16K g729 - G.729 g729a - G.729-A g729b - G.729-B g729bLowComp - G.729-B Low Complexity g728 - G.728 g723 - G.723 g7231HighRate - G.723.1 High Rate g7231aHighRate - G.723.1 Annex A High Rate g7231LowRate - G.723.1 Low Rate g7231aLowRate - G.723.1 Annex A Low Rate gsmFullRate - GSM full rate gsmHalfRate - GSM half rate gsmEnhancedFullRate - GSM enhanced full rate gsmEnhancedHalfRate - GSM enhanced half rate g729ab - G.729-A-B. clearChannel - Nx64 clear channel nse - For NSE xnse - For X-NSE nte - For telephone-event t38 - T-38 modemRelay - Modem Relay mdsteModemRelay - For X+mdste sse - For SSE codecUnknown - Unknown Codec')
cXgcpConnLastSuccEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 11), CXgcpCallEvent()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnLastSuccEvent.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnLastSuccEvent.setDescription('A call event is defined as something that happens to a call at a given time. This object contains the latest MG call event that was successful.')
cXgcpConnLastSuccIntEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 12), CXgcpCallEvent()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnLastSuccIntEvent.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnLastSuccIntEvent.setDescription('This object contains the latest MG internal call event that was successful.')
cXgcpConnLastFailedEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 13), CXgcpCallEvent()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnLastFailedEvent.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnLastFailedEvent.setDescription('This object contains the latest MG call event that was failed.')
cXgcpConnLastReqEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 14), CXgcpCallEvent()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnLastReqEvent.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnLastReqEvent.setDescription('This object contains the latest requested MG call event.')
cXgcpConnEventResult = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 50, 51, 52, 53, 54, 55, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 90, 91, 92, 93, 94, 95, 96, 97, 98, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 115, 120, 130, 131, 132, 133, 140, 141, 142, 143, 144, 145, 146))).clone(namedValues=NamedValues(("normalOk", 0), ("invalidOk", 1), ("callRecordReleased", 2), ("invalidCallId", 10), ("invalidConnId", 11), ("duplicatedMsg", 12), ("ackFailure", 13), ("deleteFailure", 14), ("createAckFailure", 15), ("createAckMissing", 16), ("deleteAckFailure", 17), ("notifyFailure", 18), ("invalidState", 19), ("invalidProtocolVer", 20), ("tgwDown", 30), ("tgwNotReady", 31), ("callVdbFailure", 32), ("prevRtpPortLocked", 33), ("connRecordMissing", 34), ("endPointNotRdy", 35), ("memResourceError", 36), ("callCacFailure", 37), ("confRsrcError", 38), ("gwRsrcNotAvailable", 39), ("reqEventFailure", 40), ("invalidCcapiEvent", 41), ("ignoreCcapiEvent", 42), ("signalFailure", 50), ("abnormalOnhook", 51), ("invalidOffhook", 52), ("invalidCot", 53), ("cotFailure", 54), ("cotDisableFailure", 55), ("callSetupReqFailure", 60), ("callSetupIndFailure", 61), ("callContextFailure", 62), ("callPeerFailure", 63), ("callVoxCallFailure", 64), ("callVoipCallFailure", 65), ("callDiscFailure", 66), ("callModifyFailure", 67), ("callAlertFailure", 68), ("callDeleteFailure", 69), ("callUnknownFeature", 70), ("upSupportedCodec", 71), ("noDigitMap", 72), ("ignoreDigit", 73), ("digitsOverflow", 74), ("digitsNotifyFailure", 75), ("codecNotMatched", 76), ("invalidConnMode", 77), ("glare", 78), ("peerMissing", 90), ("peerNotReady", 91), ("peerInWrongState", 92), ("peerDisconnectFailure", 93), ("noConferenceId", 94), ("confCreateFailure", 95), ("confDestroyFailure", 96), ("unknownConnType", 97), ("invalidEndpoint", 98), ("invalidNseEvent", 100), ("nseRcvdOnWrongLeg", 101), ("sendNseFailure", 102), ("playToneFailure", 103), ("codecSpecInError", 104), ("mediaSpecUpsupported", 105), ("mediaChangeFail", 106), ("invalidNsePayload", 107), ("nsePayloadNotAvail", 108), ("embMdcxError", 109), ("mdcxLeg1Error", 110), ("mdcxLeg2Error", 111), ("deferMsg", 112), ("transError", 115), ("discOnWrongLeg", 120), ("invalidNteEvent", 130), ("notEnabledNteEvent", 131), ("nteEventExecuteFail", 132), ("sendNteFailure", 133), ("invalidSsePayload", 140), ("ssePayloadNotAvailable", 141), ("invalidModemRelayParam", 142), ("modemRelayNotSupported", 143), ("invalidXcapXcpar", 144), ("invalidSprtPayload", 145), ("sprtPayloadNotAvailable", 146)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnEventResult.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnEventResult.setDescription("Represents possible MG call event results. normalOk - Normal event processed OK invalidOk - Invalid event processed OK callRecordReleased - The call record is released invalidCallId - TGW find invalid call id invalidConnId - TGW find invalid connection id duplicatedMsg - TGW find duplicated sgcp msg ackFailure - TGW can't send sgcp ack msg deleteFailure - TGW can't send sgcp delete msg createAckFailure - TGW can't send create ack msg createAckMissing - TGW did't send sgcp ack msg deleteAckFailure - TGW can't send delete ack msg notifyFailure - TGW can't send sgcp notify msg invalidState - TGW find event in wrong state invalidProtocolVer - GW finds protocl ver. not supported tgwDown - TGW in graceful shutdown mode tgwNotReady - TGW not ready for the event callVdbFailure - TGW can't obtain the vdbptr prevRtpPortLocked - TGW find previous rtp port locked connRecordMissing - TGW can't find conn record endPointNotRdy - TGW not ready for the event memResourceError - TGW has transient mem alloc err callCacFailure - GW does not have the bandwidth confRsrcError - GW cannot get conf resource gwRsrcNotAvailable - GW does not have available resource reqEventFailure - TGW can't handle requested event invalidCcapiEvent - TGW can't handle the ccapi event ignoreCcapiEvent - TGW will ignore the ccapi event signalFailure - TGW can't handle the signal abnormalOnhook - TGW find abnormal onhook invalidOffhook - TGW find invalid offhook invalidCot - TGW find invalid cot cotFailure - TGW failed to do COT cotDisableFailure - TGW failed to disable COT callSetupReqFailure - TGW can't setup call request callSetupIndFailure - TGW can't handle call indication callContextFailure - TGW can't setup the context callPeerFailure - TGW can't setup the peer callVoxCallFailure - TGW can't setup the voip/voaal2 call callVoipCallFailure - TGW can't setup the voip call callDiscFailure - TGW can't disconnect the call callModifyFailure - TGW can't modify the call parm callAlertFailure - TGW can't alert the call callDeleteFailure - TGW can't delete the call callUnknownFeature - TGW can't handle unknow feature upSupportedCodec - TGW find unsupported codec noDigitMap - TGW can't find the digit map ignoreDigit - TGW can't process the digits digitsOverflow - TGW can't handle too many digits digitsNotifyFailure - TGW can't send the digits out codecNotMatched - TGW codec doesn't match rmt TGW invalidConnMode - TGW can't understand con mode glare - GW encountered a glare condition peerMissing - TGW find not find the peer peerNotReady - TGW find peer not ready peerInWrongState - TGW find the peer in wrong state peerDisconnectFailure - TGW can't disconnect the peer noConferenceId - TGW can't find the conference ID confCreateFailure - TGW can't create conference confDestroyFailure - TGW can't destroy conference unknownConnType - TGW can't handle the con type invalidEndpoint - TGW can't connect to endpoint invalidNseEvent - Invalid NSE event nseRcvdOnWrongLeg - The NSE events come to a wrong leg sendNseFailure - Cannot send an NSE event playToneFailure - Cannot play NSE-requested tone codecSpecInError - Codec list provided in error mediaSpecUpsupported - Media specified not supported mediaChangeFail - Media change failed invalidNsePayload - Invalid payload type in SDP nsePayloadNotAvail - Specified NSE payload not free embMdcxError - Emb modify connection error mdcxLeg1Error - Modify connection leg1 error mdcxLeg2Error - Modify connection leg2 error deferMsg - For deferring events transError - TGW endpoint in transition state discOnWrongLeg - Disconnection on wrong call leg invalidNteEvent - Invalid NTE event notEnabledNteEvent - The NTE event has not been enabled for use nteEventExecuteFail - NTE execution failed sendNteFailure - Cannot send an NTE event invalidSsePayload - Invalid SSE payload ssePayloadNotAvailable - SSE payload is not available invalidModemRelayParam - Invalid Modem Relay Param modemRelayNotSupported - Modem Relay not supported in endpt invalidXcapXcpar - Invalid X-Cap or X-Cpar in SDP invalidSprtPayload - Invalid SPRT payload sprtPayloadNotAvailable - SPRT payload is not available")
cXgcpConnEncrSuite = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 318, 1, 4, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("aes128Cm", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cXgcpConnEncrSuite.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnEncrSuite.setDescription('Specifies what type of encryption suite is used to encode the information sent through this connection. none - No Encryption suite is used aes128Cm - AES-128 countermode encryption suite is used.')
cXgcpMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2))
cXgcpMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1))
cXgcpMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2))
ciscoXgcpMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 1)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigGroup"), ("CISCO-XGCP-MIB", "cXgcpMediaGwGroup"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoXgcpMIBCompliance = ciscoXgcpMIBCompliance.setStatus('deprecated')
if mibBuilder.loadTexts: ciscoXgcpMIBCompliance.setDescription('The compliance statement for the SNMPv2 entities which implement XGCP. This has been replaced by ciscoXgcpMIBComplianceRev1. ')
ciscoXgcpMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 2)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigGroup"), ("CISCO-XGCP-MIB", "cXgcpMediaGwGroup"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoXgcpMIBComplianceRev1 = ciscoXgcpMIBComplianceRev1.setStatus('deprecated')
if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev1.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ')
ciscoXgcpMIBComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 3)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigGroup"), ("CISCO-XGCP-MIB", "cXgcpMediaGwGroup"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoXgcpMIBComplianceRev2 = ciscoXgcpMIBComplianceRev2.setStatus('deprecated')
if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev2.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ')
ciscoXgcpMIBComplianceRev3 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 1, 4)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigGroup"), ("CISCO-XGCP-MIB", "cXgcpMediaGwGroup"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsGroup"), ("CISCO-XGCP-MIB", "cXgcpStatsGroup"), ("CISCO-XGCP-MIB", "cXgcpConnectionGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoXgcpMIBComplianceRev3 = ciscoXgcpMIBComplianceRev3.setStatus('current')
if mibBuilder.loadTexts: ciscoXgcpMIBComplianceRev3.setDescription('The compliance statement for the SNMPv2 entities which implement CISCO-XGCP-MIB. ')
cXgcpMgcConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 1)).setObjects(("CISCO-XGCP-MIB", "cXgcpMgcConfigMgcGrpNum"), ("CISCO-XGCP-MIB", "cXgcpMgcConfigAddress"), ("CISCO-XGCP-MIB", "cXgcpMgcConfigAddrType"), ("CISCO-XGCP-MIB", "cXgcpMgcConfigProtocolIndex"), ("CISCO-XGCP-MIB", "cXgcpMgcConfigGatewayUdpPort"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cXgcpMgcConfigGroup = cXgcpMgcConfigGroup.setStatus('current')
if mibBuilder.loadTexts: cXgcpMgcConfigGroup.setDescription('This group contains the MGC objects for SGCP/MGCP that the MG connects to.')
cXgcpMediaGwGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 2)).setObjects(("CISCO-XGCP-MIB", "cXgcpMediaGwRequestTimeOut"), ("CISCO-XGCP-MIB", "cXgcpMediaGwRequestRetries"), ("CISCO-XGCP-MIB", "cXgcpMediaGwRequestRetryMethod"), ("CISCO-XGCP-MIB", "cXgcpMediaGwMaxExpTimeout"), ("CISCO-XGCP-MIB", "cXgcpMediaGwRestartMwd"), ("CISCO-XGCP-MIB", "cXgcpMediaGwRestartDelay"), ("CISCO-XGCP-MIB", "cXgcpMediaGwDefaultPackage"), ("CISCO-XGCP-MIB", "cXgcpMediaGwSupportedPackages"), ("CISCO-XGCP-MIB", "cXgcpMediaGwSimpleSdpEnabled"), ("CISCO-XGCP-MIB", "cXgcpMediaGwAckSdpEnabled"), ("CISCO-XGCP-MIB", "cXgcpMediaGwUndottedNotation"), ("CISCO-XGCP-MIB", "cXgcpMediaGwQuarantineProcess"), ("CISCO-XGCP-MIB", "cXgcpMediaGwQuarantineLoop"), ("CISCO-XGCP-MIB", "cXgcpMediaGwQuarantinePersist"), ("CISCO-XGCP-MIB", "cXgcpMediaGwPiggybackMsg"), ("CISCO-XGCP-MIB", "cXgcpMediaGwMaxMsgSize"), ("CISCO-XGCP-MIB", "cXgcpMediaGwLastFailMgcAddrType"), ("CISCO-XGCP-MIB", "cXgcpMediaGwLastFailMgcAddr"), ("CISCO-XGCP-MIB", "cXgcpMediaGwDtmfRelay"), ("CISCO-XGCP-MIB", "cXgcpMediaGwCaleaEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cXgcpMediaGwGroup = cXgcpMediaGwGroup.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwGroup.setDescription('This group contains core objects for SGCP/MGCP on the MG.')
cXgcpMsgStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 3)).setObjects(("CISCO-XGCP-MIB", "cXgcpMsgStatsMgcIPAddressType"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsMgcIPAddress"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsSuccessMessages"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsFailMessages"), ("CISCO-XGCP-MIB", "cXgcpMsgStatsIncompleteMessages"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cXgcpMsgStatsGroup = cXgcpMsgStatsGroup.setStatus('current')
if mibBuilder.loadTexts: cXgcpMsgStatsGroup.setDescription('This group contains statistics objects for SGCP/MGCP on the MGC and the MG.')
cXgcpMediaGwGroupSup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 4)).setObjects(("CISCO-XGCP-MIB", "cXgcpMediaGwConfiguredPackages"), ("CISCO-XGCP-MIB", "cXgcpMediaGwConnOosRsipBehavior"), ("CISCO-XGCP-MIB", "cXgcpMediaGwLongDurTimer"), ("CISCO-XGCP-MIB", "cXgcpMediaGwProfile"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cXgcpMediaGwGroupSup1 = cXgcpMediaGwGroupSup1.setStatus('deprecated')
if mibBuilder.loadTexts: cXgcpMediaGwGroupSup1.setDescription('This group contains supplimentary objects for XGCP extended provisioning in the MG.')
cXgcpMediaGwGroupSup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 5)).setObjects(("CISCO-XGCP-MIB", "cXgcpMediaGwConfiguredPackages"), ("CISCO-XGCP-MIB", "cXgcpMediaGwConnOosRsipBehavior"), ("CISCO-XGCP-MIB", "cXgcpMediaGwLongDurTimer"), ("CISCO-XGCP-MIB", "cXgcpMediaGwProfile"), ("CISCO-XGCP-MIB", "cXgcpMediaGwAnnexabSdpEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cXgcpMediaGwGroupSup2 = cXgcpMediaGwGroupSup2.setStatus('current')
if mibBuilder.loadTexts: cXgcpMediaGwGroupSup2.setDescription('This group contains supplimentary objects for XGCP extended provisioning in the MG.')
cXgcpStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 6)).setObjects(("CISCO-XGCP-MIB", "cXgcpStatsUdpRxPkts"), ("CISCO-XGCP-MIB", "cXgcpStatsUdpTxPkts"), ("CISCO-XGCP-MIB", "cXgcpStatsUnRecRxPkts"), ("CISCO-XGCP-MIB", "cXgcpStatsMsgParsingErrors"), ("CISCO-XGCP-MIB", "cXgcpStatsDupAckTxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsInvalidVerCount"), ("CISCO-XGCP-MIB", "cXgcpStatsUnknownMgcRxPkts"), ("CISCO-XGCP-MIB", "cXgcpStatsAckTxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsNackTxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsAckRxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsNackRxMsgs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxCrcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccCrcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailCrcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsTxDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsTxSuccDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsTxFailDlcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxMdcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccMdcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailMdcxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxRqnts"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccRqnts"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailRqnts"), ("CISCO-XGCP-MIB", "cXgcpStatsRxAucxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccAucxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailAucxs"), ("CISCO-XGCP-MIB", "cXgcpStatsRxAueps"), ("CISCO-XGCP-MIB", "cXgcpStatsRxSuccAueps"), ("CISCO-XGCP-MIB", "cXgcpStatsRxFailAueps"), ("CISCO-XGCP-MIB", "cXgcpStatsTxRsips"), ("CISCO-XGCP-MIB", "cXgcpStatsTxSuccRsips"), ("CISCO-XGCP-MIB", "cXgcpStatsTxFailRsips"), ("CISCO-XGCP-MIB", "cXgcpStatsTxNotifies"), ("CISCO-XGCP-MIB", "cXgcpStatsTxSuccNotifies"), ("CISCO-XGCP-MIB", "cXgcpStatsTxFailNotifies"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cXgcpStatsGroup = cXgcpStatsGroup.setStatus('current')
if mibBuilder.loadTexts: cXgcpStatsGroup.setDescription('This group contains the received and transmitted network messages for every virtual MG present in the managed system. ')
cXgcpConnectionGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 318, 2, 2, 7)).setObjects(("CISCO-XGCP-MIB", "cXgcpConnEndPoint"), ("CISCO-XGCP-MIB", "cXgcpConnCallId"), ("CISCO-XGCP-MIB", "cXgcpConnLocalUdpPort"), ("CISCO-XGCP-MIB", "cXgcpConnRemoteUdpPort"), ("CISCO-XGCP-MIB", "cXgcpConnMode"), ("CISCO-XGCP-MIB", "cXgcpConnVccId"), ("CISCO-XGCP-MIB", "cXgcpConnChannelId"), ("CISCO-XGCP-MIB", "cXgcpConnCallState"), ("CISCO-XGCP-MIB", "cXgcpConnCodec"), ("CISCO-XGCP-MIB", "cXgcpConnLastSuccEvent"), ("CISCO-XGCP-MIB", "cXgcpConnLastSuccIntEvent"), ("CISCO-XGCP-MIB", "cXgcpConnLastFailedEvent"), ("CISCO-XGCP-MIB", "cXgcpConnLastReqEvent"), ("CISCO-XGCP-MIB", "cXgcpConnEventResult"), ("CISCO-XGCP-MIB", "cXgcpConnEncrSuite"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cXgcpConnectionGroup = cXgcpConnectionGroup.setStatus('current')
if mibBuilder.loadTexts: cXgcpConnectionGroup.setDescription('This group contains active connections information that are controlled by the Gateway Control Protocol. ')
mibBuilder.exportSymbols("CISCO-XGCP-MIB", cXgcpMsgStatsIncompleteMessages=cXgcpMsgStatsIncompleteMessages, CXgcpCallEvent=CXgcpCallEvent, cXgcpConnectionEntry=cXgcpConnectionEntry, ciscoXgcpMIBComplianceRev1=ciscoXgcpMIBComplianceRev1, cXgcpStatsTable=cXgcpStatsTable, cXgcpMgcConfigGroup=cXgcpMgcConfigGroup, cXgcpStatsRxAucxs=cXgcpStatsRxAucxs, cXgcpConnection=cXgcpConnection, cXgcpMediaGwQuarantineLoop=cXgcpMediaGwQuarantineLoop, cXgcpMsgStatsSuccessMessages=cXgcpMsgStatsSuccessMessages, cXgcpMediaGwConnOosRsipBehavior=cXgcpMediaGwConnOosRsipBehavior, cXgcpMediaGwTable=cXgcpMediaGwTable, cXgcpStatsRxFailMdcxs=cXgcpStatsRxFailMdcxs, cXgcpMgcConfigTable=cXgcpMgcConfigTable, cXgcpConnLastSuccEvent=cXgcpConnLastSuccEvent, cXgcpConnChannelId=cXgcpConnChannelId, cXgcpStatsRxSuccCrcxs=cXgcpStatsRxSuccCrcxs, cXgcpMIBGroups=cXgcpMIBGroups, cXgcpStatsRxAueps=cXgcpStatsRxAueps, cXgcpMgcConfigAddrType=cXgcpMgcConfigAddrType, cXgcpStatsTxSuccDlcxs=cXgcpStatsTxSuccDlcxs, cXgcpMediaGwGroupSup2=cXgcpMediaGwGroupSup2, cXgcpMediaGwAckSdpEnabled=cXgcpMediaGwAckSdpEnabled, CXgcpRetryMethod=CXgcpRetryMethod, cXgcpConnCodec=cXgcpConnCodec, cXgcpStatsDupAckTxMsgs=cXgcpStatsDupAckTxMsgs, cXgcpConnEndPoint=cXgcpConnEndPoint, cXgcpMIBConformance=cXgcpMIBConformance, cXgcpMsgStatsMgcIPAddress=cXgcpMsgStatsMgcIPAddress, cXgcpMediaGwUndottedNotation=cXgcpMediaGwUndottedNotation, cXgcpMediaGwSimpleSdpEnabled=cXgcpMediaGwSimpleSdpEnabled, cXgcpStatsRxFailRqnts=cXgcpStatsRxFailRqnts, ciscoXgcpMIBCompliance=ciscoXgcpMIBCompliance, ciscoXgcpMIBComplianceRev2=ciscoXgcpMIBComplianceRev2, cXgcpStatsRxFailAucxs=cXgcpStatsRxFailAucxs, cXgcpStatsUnRecRxPkts=cXgcpStatsUnRecRxPkts, cXgcpConnVccId=cXgcpConnVccId, cXgcpConnCallState=cXgcpConnCallState, cXgcpStatsGroup=cXgcpStatsGroup, cXgcpStatsRxSuccMdcxs=cXgcpStatsRxSuccMdcxs, cXgcpStatsRxMdcxs=cXgcpStatsRxMdcxs, cXgcpStatsRxRqnts=cXgcpStatsRxRqnts, cXgcpStatsUnknownMgcRxPkts=cXgcpStatsUnknownMgcRxPkts, ciscoXgcpMIB=ciscoXgcpMIB, cXgcpMediaGwRequestTimeOut=cXgcpMediaGwRequestTimeOut, cXgcpConnCallId=cXgcpConnCallId, cXgcpStatsInvalidVerCount=cXgcpStatsInvalidVerCount, cXgcpMgcCfg=cXgcpMgcCfg, cXgcpMediaGwGroup=cXgcpMediaGwGroup, cXgcpStatsTxSuccNotifies=cXgcpStatsTxSuccNotifies, cXgcpStatsRxCrcxs=cXgcpStatsRxCrcxs, cXgcpStatsRxSuccAueps=cXgcpStatsRxSuccAueps, cXgcpConnId=cXgcpConnId, cXgcpMgcConfigProtocolIndex=cXgcpMgcConfigProtocolIndex, cXgcpMediaGwDefaultPackage=cXgcpMediaGwDefaultPackage, cXgcpMediaGwEntry=cXgcpMediaGwEntry, cXgcpStatsAckTxMsgs=cXgcpStatsAckTxMsgs, cXgcpMediaGwProfile=cXgcpMediaGwProfile, cXgcpStatsTxFailDlcxs=cXgcpStatsTxFailDlcxs, cXgcpMediaGwMaxMsgSize=cXgcpMediaGwMaxMsgSize, cXgcpConnLocalUdpPort=cXgcpConnLocalUdpPort, cXgcpStatsRxSuccRqnts=cXgcpStatsRxSuccRqnts, cXgcpMediaGwRestartDelay=cXgcpMediaGwRestartDelay, cXgcpMgcConfigMgcGrpNum=cXgcpMgcConfigMgcGrpNum, cXgcpStatsRxSuccAucxs=cXgcpStatsRxSuccAucxs, cXgcpConnLastReqEvent=cXgcpConnLastReqEvent, cXgcpMediaGwSupportedPackages=cXgcpMediaGwSupportedPackages, cXgcpConnLastSuccIntEvent=cXgcpConnLastSuccIntEvent, cXgcpConnEncrSuite=cXgcpConnEncrSuite, cXgcpStatsRxDlcxs=cXgcpStatsRxDlcxs, cXgcpConnMode=cXgcpConnMode, cXgcpMediaGwLastFailMgcAddr=cXgcpMediaGwLastFailMgcAddr, cXgcpStatsNackTxMsgs=cXgcpStatsNackTxMsgs, cXgcpStats=cXgcpStats, cXgcpMediaGwConfiguredPackages=cXgcpMediaGwConfiguredPackages, cXgcpStatsRxFailCrcxs=cXgcpStatsRxFailCrcxs, cXgcpStatsRxFailDlcxs=cXgcpStatsRxFailDlcxs, cXgcpMediaGwPiggybackMsg=cXgcpMediaGwPiggybackMsg, cXgcpConnectionTable=cXgcpConnectionTable, cXgcpMgcConfigAddress=cXgcpMgcConfigAddress, cXgcpMediaGwRequestRetries=cXgcpMediaGwRequestRetries, cXgcpMediaGwLastFailMgcAddrType=cXgcpMediaGwLastFailMgcAddrType, cXgcpStatsTxNotifies=cXgcpStatsTxNotifies, cXgcpStatsTxFailRsips=cXgcpStatsTxFailRsips, cXgcpConnEventResult=cXgcpConnEventResult, cXgcpStatsRxSuccDlcxs=cXgcpStatsRxSuccDlcxs, cXgcpMsgStatsFailMessages=cXgcpMsgStatsFailMessages, cXgcpMsgStatsIndex=cXgcpMsgStatsIndex, cXgcpStatsTxFailNotifies=cXgcpStatsTxFailNotifies, cXgcpStatsMsgParsingErrors=cXgcpStatsMsgParsingErrors, cXgcpStatsUdpRxPkts=cXgcpStatsUdpRxPkts, cXgcpConnRemoteUdpPort=cXgcpConnRemoteUdpPort, cXgcpStatsTxRsips=cXgcpStatsTxRsips, cXgcpMediaGwCaleaEnabled=cXgcpMediaGwCaleaEnabled, cXgcpStatsRxFailAueps=cXgcpStatsRxFailAueps, cXgcpMIBCompliances=cXgcpMIBCompliances, cXgcpNotifications=cXgcpNotifications, cXgcpStatsAckRxMsgs=cXgcpStatsAckRxMsgs, cXgcpConnLastFailedEvent=cXgcpConnLastFailedEvent, cXgcpMsgStatsGroup=cXgcpMsgStatsGroup, cXgcpMediaGwGroupSup1=cXgcpMediaGwGroupSup1, cXgcpMsgStatsMgcIPAddressType=cXgcpMsgStatsMgcIPAddressType, cXgcpMediaGwDtmfRelay=cXgcpMediaGwDtmfRelay, cXgcpMsgStatsTable=cXgcpMsgStatsTable, cXgcpConnectionGroup=cXgcpConnectionGroup, cXgcpMgcConfigEntry=cXgcpMgcConfigEntry, cXgcpObjects=cXgcpObjects, cXgcpMediaGw=cXgcpMediaGw, cXgcpMediaGwRestartMwd=cXgcpMediaGwRestartMwd, cXgcpMediaGwAnnexabSdpEnabled=cXgcpMediaGwAnnexabSdpEnabled, cXgcpMsgStatsEntry=cXgcpMsgStatsEntry, ciscoXgcpMIBComplianceRev3=ciscoXgcpMIBComplianceRev3, cXgcpMediaGwQuarantinePersist=cXgcpMediaGwQuarantinePersist, cXgcpStatsEntry=cXgcpStatsEntry, cXgcpMediaGwMaxExpTimeout=cXgcpMediaGwMaxExpTimeout, cXgcpMediaGwRequestRetryMethod=cXgcpMediaGwRequestRetryMethod, cXgcpStatsTxDlcxs=cXgcpStatsTxDlcxs, cXgcpMgcConfigGatewayUdpPort=cXgcpMgcConfigGatewayUdpPort, PYSNMP_MODULE_ID=ciscoXgcpMIB, cXgcpStatsUdpTxPkts=cXgcpStatsUdpTxPkts, cXgcpMediaGwQuarantineProcess=cXgcpMediaGwQuarantineProcess, cXgcpStatsTxSuccRsips=cXgcpStatsTxSuccRsips, cXgcpStatsNackRxMsgs=cXgcpStatsNackRxMsgs, cXgcpMediaGwLongDurTimer=cXgcpMediaGwLongDurTimer)
|
#Given an array of integers, find the sum of its elements.
#Input Format
#The first line contains an integer, n, denoting the size of the array.
#The second line contains n space-separated integers representing the array's elements.
#Output Format
#Print the sum of the array's elements as a single integer.
#Sample Input
#6
#1 2 3 4 10 11
#Sample Output
#31
#Explanation
#We print the sum of the array's elements: .
#
# Complete the simpleArraySum function below.
#
def simpleArraySum(ar):
n=len(ar)
i=0
p=0
while i<n:
p=p+ar[i]
i+=1
return p
|
"""
Organisation theme for CEDA Services web components.
"""
__author__ = "Matt Pritchard"
__copyright__ = "Copyright 2018 UK Science and Technology Facilities Council"
__version__ = "0.5"
|
#
# string1="aaa新年快乐bbb"
# string2=string1.replace("新年快乐", "恭喜发财")
# print(string2)
# # aaa恭喜发财bbb
#
# string3="aaa新年快乐bbb新年快乐ccc"
# string4=string3.replace("新年快乐", "恭喜发财", 2)
# print(string4)
#
#
# string5='aaa,."bbb'
# string6=string5.replace(',', ',')
# string6=string6.replace('.', '。')
# string6=string6.replace('"', '“')
# # 需要更多的replace()匹配更多的标点符号
# print(string6)
# # aaa,。“bbb
# 保存映射关系
def replace_city(city_name):
# 如果字典只使用一次,那也可以不使用字典名称
return {
"GUANGDONG": "广东省",
"HEBEI": "河北省",
"HUNAN": "湖南省",
"HANGZHOU": "杭州市",
}[city_name]
# 根据映射关系批量循环
def replace_multi(my_citys, replaced_string):
for pin_yin in my_citys:
replaced_string = replaced_string.replace(pin_yin, replace_city(pin_yin))
return replaced_string
citys = ("GUANGDONG", "HUNAN")
string1 = """GUANGDONG,简称“粤”,中华人民共和国省级行政区,省会广州。因古地名广信之东,故名“GUANGDONG”。位于南岭以南,南海之滨,与香港、澳门、广西、HUNAN、江西及福建接壤,与海南隔海相望。"""
string2 = replace_multi(citys, string1)
print(string2) |
# --- Programa que imprime como um papel ficaria com um comprimento dado por nós e a largura dada pelo Dr. Mike ---
# variáveis
a, b, c = input('Digite as larguras a, b e c: ').split(' ')
a = int(a)
b = int(b)
c = int(c)
# função que imprime o papel
def print_rectangle(largura):
comp = 4
espacos = largura - 4
print(largura)
print('x' * largura)
print('x',' ' * (espacos),'x')
print('x',' ' * (espacos),'x')
print('x' * largura)
papel_a = print_rectangle(a)
papel_b = print_rectangle(b)
papel_c = print_rectangle(c) |
AUTH_LDAP_GLOBAL_OPTIONS = {
ldap.OPT_X_TLS_REQUIRE_CERT: True,
ldap.OPT_X_TLS_CACERTFILE: "/etc/certs/ldap.pem"
}
|
class Worker:
def __init__(self, number, name, age, salary):
self.number = number,
self.name = name,
self.age = age,
self.salary = salary
|
class SessionTimeOut(Exception):
pass
class InvalidFormat(Exception):
pass
class UserExists(Exception):
pass
class EmailAlreadyUsed(Exception):
pass
class SQLInjectionAlert(Exception):
pass
|
class Button:
def __init__(self, label, _x, _y, _w, _h):
self.label = label
self.position = PVector(_x, _y)
self.WIDTH = _w
self.HEIGHT = _h
def display(self):
fill(218)
stroke(0)
rect(self.position.x, self.position.y, self.WIDTH, self.HEIGHT, 10)
textAlign(CENTER, CENTER)
fill(0)
text(self.label, self.position.x + (self.WIDTH/2), self.position.y + (self.HEIGHT/2))
def mouse_over(self):
return (mouseX > self.position.x and mouseX < (self.position.x + self.WIDTH)) and (mouseY > self.position.y and mouseY < (self.position.y + self.HEIGHT))
|
test = {
'name': 'Problem 9',
'points': 3,
'suites': [
{
'cases': [
{
'answer': 'A TankAnt does damage to all Bees in its place each turn',
'choices': [
'A TankAnt does damage to all Bees in its place each turn',
'A TankAnt has greater health than a BodyguardAnt',
'A TankAnt can contain multiple ants',
'A TankAnt increases the damage of the ant it contains'
],
'hidden': False,
'locked': False,
'question': r"""
Besides costing more to place, what is the only difference between a
TankAnt and a BodyguardAnt?
"""
}
],
'scored': False,
'type': 'concept'
},
{
'cases': [
{
'code': r"""
>>> # Testing TankAnt parameters
>>> TankAnt.food_cost
6
>>> TankAnt.damage
1
>>> tank = TankAnt()
>>> tank.health
2
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> # Testing TankAnt action
>>> tank = TankAnt()
>>> place = gamestate.places['tunnel_0_1']
>>> other_place = gamestate.places['tunnel_0_2']
>>> place.add_insect(tank)
>>> for _ in range(3):
... place.add_insect(Bee(3))
>>> other_place.add_insect(Bee(3))
>>> tank.action(gamestate)
>>> [bee.health for bee in place.bees]
[2, 2, 2]
>>> [bee.health for bee in other_place.bees]
[3]
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> # Testing TankAnt container methods
>>> tank = TankAnt()
>>> thrower = ThrowerAnt()
>>> place = gamestate.places['tunnel_0_1']
>>> place.add_insect(thrower)
>>> place.add_insect(tank)
>>> place.ant is tank
True
>>> bee = Bee(3)
>>> place.add_insect(bee)
>>> tank.action(gamestate) # Both ants attack bee
>>> bee.health
1
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': r"""
>>> from ants_plans import *
>>> from ants import *
>>> beehive, layout = Hive(make_test_assault_plan()), dry_layout
>>> dimensions = (1, 9)
>>> gamestate = GameState(None, beehive, ant_types(), layout, dimensions)
>>> #
""",
'teardown': '',
'type': 'doctest'
},
{
'cases': [
{
'code': r"""
>>> # Testing TankAnt action
>>> tank = TankAnt()
>>> place = gamestate.places['tunnel_0_1']
>>> place.add_insect(tank)
>>> for _ in range(3): # Add three bees with 1 health each
... place.add_insect(Bee(1))
>>> tank.action(gamestate)
>>> len(place.bees) # Bees removed from places because of TankAnt damage
0
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> # Testing TankAnt.damage
>>> tank = TankAnt()
>>> tank.damage = 100
>>> place = gamestate.places['tunnel_0_1']
>>> place.add_insect(tank)
>>> for _ in range(3):
... place.add_insect(Bee(100))
>>> tank.action(gamestate)
>>> len(place.bees)
0
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> # Placement of ants
>>> tank = TankAnt()
>>> harvester = HarvesterAnt()
>>> place = gamestate.places['tunnel_0_0']
>>> # Add tank before harvester
>>> place.add_insect(tank)
>>> place.add_insect(harvester)
>>> gamestate.food = 0
>>> tank.action(gamestate)
>>> gamestate.food
1
>>> try:
... place.add_insect(TankAnt())
... except AssertionError:
... print("error!")
error!
>>> place.ant is tank
True
>>> tank.ant_contained is harvester
True
>>> try:
... place.add_insect(HarvesterAnt())
... except AssertionError:
... print("error!")
error!
>>> place.ant is tank
True
>>> tank.ant_contained is harvester
True
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> # Placement of ants
>>> tank = TankAnt()
>>> harvester = HarvesterAnt()
>>> place = gamestate.places['tunnel_0_0']
>>> # Add harvester before tank
>>> place.add_insect(harvester)
>>> place.add_insect(tank)
>>> gamestate.food = 0
>>> tank.action(gamestate)
>>> gamestate.food
1
>>> try:
... place.add_insect(TankAnt())
... except AssertionError:
... print("error!")
error!
>>> place.ant is tank
True
>>> tank.ant_contained is harvester
True
>>> try:
... place.add_insect(HarvesterAnt())
... except AssertionError:
... print("error!")
error!
>>> place.ant is tank
True
>>> tank.ant_contained is harvester
True
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> # Removing ants
>>> tank = TankAnt()
>>> test_ant = Ant()
>>> place = Place('Test')
>>> place.add_insect(tank)
>>> place.add_insect(test_ant)
>>> place.remove_insect(test_ant)
>>> tank.ant_contained is None
True
>>> test_ant.place is None
True
>>> place.remove_insect(tank)
>>> place.ant is None
True
>>> tank.place is None
True
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> tank = TankAnt()
>>> place = Place('Test')
>>> place.add_insect(tank)
>>> tank.action(gamestate) # Action without ant_contained should not error
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> # test proper call to death callback
>>> original_death_callback = Insect.death_callback
>>> Insect.death_callback = lambda x: print("insect died")
>>> place = gamestate.places["tunnel_0_0"]
>>> bee = Bee(3)
>>> tank = TankAnt()
>>> ant = ThrowerAnt()
>>> place.add_insect(bee)
>>> place.add_insect(ant)
>>> place.add_insect(tank)
>>> bee.action(gamestate)
>>> bee.action(gamestate)
insect died
>>> bee.action(gamestate) # if you fail this test you probably didn't correctly call Ant.reduce_health or Insect.reduce_health
insect died
>>> Insect.death_callback = original_death_callback
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': r"""
>>> from ants_plans import *
>>> from ants import *
>>> beehive, layout = Hive(make_test_assault_plan()), dry_layout
>>> dimensions = (1, 9)
>>> gamestate = GameState(None, beehive, ant_types(), layout, dimensions)
>>> #
""",
'teardown': '',
'type': 'doctest'
},
{
'cases': [
{
'code': r"""
>>> from ants import *
>>> TankAnt.implemented
True
""",
'hidden': False,
'locked': False
},
{
'code': r"""
>>> from ants import *
>>> # Abstraction tests
>>> original = Ant.__init__
>>> Ant.__init__ = lambda self, health: print("init") #If this errors, you are not calling the parent constructor correctly.
>>> tank = TankAnt()
init
>>> Ant.__init__ = original
>>> tank = TankAnt()
""",
'hidden': False,
'locked': False
}
],
'scored': True,
'setup': '',
'teardown': '',
'type': 'doctest'
}
]
}
|
EXPECTED = {'X680': {'extensibility-implied': False,
'imports': {},
'object-classes': {'ATTRIBUTE-E-2-15': {'members': [{'name': '&AttributeType',
'type': 'OpenType'},
{'name': '&attributeId',
'type': 'OBJECT '
'IDENTIFIER'}]}},
'object-sets': {},
'tags': 'AUTOMATIC',
'types': {'A': {'type': 'NULL'},
'A-19-5': {'type': 'ENUMERATED',
'values': [('a', 0), ('b', 3), None, ('c', 1)]},
'A-19-6': {'type': 'ENUMERATED',
'values': [('a', 0), ('b', 1), None, ('c', 2)]},
'A-G-1-4-1': {'members': [{'name': 'a', 'type': 'INTEGER'},
None],
'type': 'SEQUENCE'},
'A-G-1-4-2': {'members': [{'name': 'a', 'type': 'INTEGER'},
None,
{'name': 'b', 'type': 'BOOLEAN'},
{'name': 'c', 'type': 'INTEGER'}],
'type': 'SEQUENCE'},
'A-G-1-4-3': {'members': [{'name': 'a', 'type': 'INTEGER'},
None,
{'name': 'b', 'type': 'BOOLEAN'},
{'name': 'c', 'type': 'INTEGER'},
{'members': [{'name': 'e',
'type': 'INTEGER'},
None,
None,
{'name': 'f',
'type': 'IA5String'}],
'name': 'd',
'type': 'SEQUENCE'}],
'type': 'SEQUENCE'},
'A-G-1-4-4': {'members': [{'name': 'a', 'type': 'INTEGER'},
None,
{'name': 'b', 'type': 'BOOLEAN'},
{'name': 'c', 'type': 'INTEGER'},
{'members': [{'name': 'e',
'type': 'INTEGER'},
None,
{'name': 'g',
'optional': True,
'type': 'BOOLEAN'},
{'name': 'h',
'type': 'BMPString'},
None,
{'name': 'f',
'type': 'IA5String'}],
'name': 'd',
'type': 'SEQUENCE'}],
'type': 'SEQUENCE'},
'A-G-1-7-1': {'members': [{'name': 'a', 'type': 'INTEGER'},
None],
'type': 'SEQUENCE'},
'A-G-1-7-2': {'members': [{'name': 'a', 'type': 'INTEGER'},
None,
[{'name': 'b', 'type': 'BOOLEAN'},
{'name': 'c',
'type': 'INTEGER'}]],
'type': 'SEQUENCE'},
'A-G-1-7-3': {'members': [{'name': 'a', 'type': 'INTEGER'},
None,
[{'name': 'b', 'type': 'BOOLEAN'},
{'name': 'c',
'type': 'INTEGER'}],
{'members': [{'name': 'e',
'type': 'INTEGER'},
None,
None,
{'name': 'f',
'type': 'IA5String'}],
'name': 'd',
'type': 'SEQUENCE'}],
'type': 'SEQUENCE'},
'A-G-1-7-4': {'members': [{'name': 'a', 'type': 'INTEGER'},
None,
[{'name': 'b', 'type': 'BOOLEAN'},
{'name': 'c',
'type': 'INTEGER'}],
{'members': [{'name': 'e',
'type': 'INTEGER'},
None,
[{'name': 'g',
'optional': True,
'type': 'BOOLEAN'},
{'name': 'h',
'type': 'BMPString'}],
None,
{'name': 'f',
'type': 'IA5String'}],
'name': 'd',
'type': 'SEQUENCE'}],
'type': 'SEQUENCE'},
'A-G-4-1-2': {'restricted-to': [('MIN', 'MAX'),
None,
(1, 10)],
'type': 'INTEGER'},
'A1-G-4-2-3': {'restricted-to': [(1, 32), None, (33, 128)],
'type': 'INTEGER'},
'A3-G-4-2-3': {'type': 'INTEGER'},
'ABEnvelope-E-4-a': {'type': 'Envelope-E-4'},
'ABEnvelope-E-4-b': {'type': 'Envelope-E-4'},
'ACEnvelope-E-4-a': {'type': 'Envelope-E-4'},
'ACEnvelope-E-4-b': {'type': 'Envelope-E-4'},
'AcmeBadgeNumber-E-2-12': {'tag': {'class': 'PRIVATE',
'number': 2},
'type': 'INTEGER'},
'AngleInRadians-E-2-4': {'type': 'REAL'},
'App-X-Real-E-2-4': {'type': 'REAL'},
'AtomicNumber-E-4': {'restricted-to': [(1, 104)],
'type': 'INTEGER'},
'Attribute-E-2-15': {'members': [{'name': 'attributeID',
'table': None,
'type': 'ATTRIBUTE-E-2-15.&attributeId'},
{'name': 'attributeValue',
'table': None,
'type': 'ATTRIBUTE-E-2-15.&AttributeType'}],
'type': 'SEQUENCE'},
'Audio': {'type': 'NULL'},
'B': {'type': 'NULL'},
'B-19-6': {'type': 'ENUMERATED',
'values': [('a', 1),
('b', 2),
('c', 0),
None,
('d', 3)]},
'B1-G-4-2-3': {'restricted-to': [(1, 128)],
'type': 'A1-G-4-2-3'},
'B2-G-4-2-3': {'restricted-to': [(1, 16)],
'type': 'A1-G-4-2-3'},
'BitField-E-2-5': {'size': [12], 'type': 'BIT STRING'},
'C': {'type': 'NULL'},
'C-19-6': {'type': 'ENUMERATED',
'values': [('a', 0),
('b', 1),
None,
('c', 3),
('d', 4)]},
'C0-F-2-6': {'type': 'BMPString'},
'C1-F-2-6': {'type': 'BMPString'},
'Certificate': {'type': 'NULL'},
'CheckingAccountBalance-E-2-2': {'type': 'INTEGER'},
'ChildInformation-E-1-1': {'members': [{'name': 'name',
'type': 'Name-E-1-1'},
{'name': 'dateOfBirth',
'type': 'Date-E-1-1'}],
'type': 'SET'},
'Credentials-E-2-10': {'members': [{'name': 'userName',
'type': 'VisibleString'},
{'name': 'password',
'type': 'VisibleString'},
{'name': 'accountNumber',
'type': 'INTEGER'}],
'type': 'SEQUENCE'},
'CustomerAttribute-E-2-12-a': {'members': [{'name': 'name',
'tag': {'number': 0},
'type': 'VisibleString'},
{'name': 'mailingAddress',
'tag': {'number': 1},
'type': 'VisibleString'},
{'name': 'accountNumber',
'tag': {'number': 2},
'type': 'INTEGER'},
{'name': 'balanceDue',
'tag': {'number': 3},
'type': 'INTEGER'}],
'type': 'CHOICE'},
'CustomerAttribute-E-2-12-b': {'members': [{'name': 'name',
'tag': {'kind': 'IMPLICIT',
'number': 0},
'type': 'VisibleString'},
{'name': 'mailingAddress',
'tag': {'kind': 'IMPLICIT',
'number': 1},
'type': 'VisibleString'},
{'name': 'accountNumber',
'tag': {'kind': 'IMPLICIT',
'number': 2},
'type': 'INTEGER'},
{'name': 'balanceDue',
'tag': {'kind': 'IMPLICIT',
'number': 3},
'type': 'INTEGER'}],
'type': 'CHOICE'},
'CustomerRecord-E-2-12-a': {'members': [{'name': 'name',
'tag': {'number': 0},
'type': 'VisibleString'},
{'name': 'mailingAddress',
'tag': {'number': 1},
'type': 'VisibleString'},
{'name': 'accountNumber',
'tag': {'number': 2},
'type': 'INTEGER'},
{'name': 'balanceDue',
'tag': {'number': 3},
'type': 'INTEGER'}],
'type': 'SET'},
'CustomerRecord-E-2-12-b': {'members': [{'name': 'name',
'tag': {'kind': 'IMPLICIT',
'number': 0},
'type': 'VisibleString'},
{'name': 'mailingAddress',
'tag': {'kind': 'IMPLICIT',
'number': 1},
'type': 'VisibleString'},
{'name': 'accountNumber',
'tag': {'kind': 'IMPLICIT',
'number': 2},
'type': 'INTEGER'},
{'name': 'balanceDue',
'tag': {'kind': 'IMPLICIT',
'number': 3},
'type': 'INTEGER'}],
'type': 'SET'},
'D': {'type': 'NULL'},
'D-19-5': {'type': 'ENUMERATED',
'values': [('a', 0), ('b', 1), None, ('c', 2)]},
'D-19-6': {'type': 'ENUMERATED',
'values': [('a', 0), ('z', 25), None, ('d', 1)]},
'Date-E-1-1': {'tag': {'class': 'APPLICATION', 'number': 3},
'type': 'VisibleString'},
'DayOfTheMonth-E-2-2': {'type': 'INTEGER'},
'DayOfTheMonth-E-2-2-a': {'restricted-to': ['first',
'last'],
'type': 'INTEGER'},
'DayOfTheMonth-E-2-2-b': {'restricted-to': [('first',
'last')],
'type': 'INTEGER'},
'DayOfTheWeek-E-2-3': {'type': 'ENUMERATED',
'values': [('sunday', 0),
('monday', 1),
('tuesday', 2),
('wednesday', 3),
('thursday', 4),
('friday', 5),
('saturday', 6)]},
'DaysOfTheWeek-E-2-5-a': {'size': [(0, 7)],
'type': 'BIT STRING'},
'DaysOfTheWeek-E-2-5-b': {'size': [7],
'type': 'BIT STRING'},
'E': {'type': 'NULL'},
'Employed-E-2-1': {'type': 'BOOLEAN'},
'EmployeeNumber-E-1-1': {'tag': {'class': 'APPLICATION',
'number': 2},
'type': 'INTEGER'},
'Envelope-E-4': {'members': [{'name': 'typeA',
'type': 'TypeA'},
{'name': 'typeB',
'optional': True,
'type': 'TypeB'},
{'name': 'typeC',
'optional': True,
'type': 'TypeC'}],
'type': 'SET'},
'FileIdentifier-E-2-13-a': {'members': [{'name': 'relativeName',
'type': 'VisibleString'},
{'name': 'absoluteName',
'type': 'VisibleString'},
{'name': 'serialNumber',
'type': 'INTEGER'}],
'type': 'CHOICE'},
'FileIdentifier-E-2-13-b': {'members': [{'name': 'relativeName',
'type': 'VisibleString'},
{'name': 'absoluteName',
'type': 'VisibleString'},
None,
None],
'type': 'CHOICE'},
'FileIdentifier-E-2-13-c': {'members': [{'name': 'relativeName',
'type': 'VisibleString'},
{'name': 'absoluteName',
'type': 'VisibleString'},
None,
{'name': 'serialNumber',
'type': 'INTEGER'},
None],
'type': 'CHOICE'},
'FileIdentifier-E-2-13-d': {'members': [{'name': 'relativeName',
'type': 'VisibleString'},
{'name': 'absoluteName',
'type': 'VisibleString'},
None,
{'name': 'serialNumber',
'type': 'INTEGER'},
[{'name': 'vendorSpecific',
'type': 'VendorExt'},
{'name': 'unidentified',
'type': 'NULL'}],
None],
'type': 'CHOICE'},
'FileName-E-2-12': {'members': [{'name': 'directoryName',
'type': 'VisibleString'},
{'name': 'directoryRelativeFileName',
'type': 'VisibleString'}],
'tag': {'class': 'APPLICATION',
'number': 8},
'type': 'SEQUENCE'},
'First-half-E-4': {'restricted-to': ['First-quarter-E-4',
'Second-quarter-E-4'],
'type': 'Months-E-4'},
'First-quarter-E-4': {'restricted-to': ['january',
'february',
'march'],
'type': 'Months-E-4'},
'Fourth-quarter-E-4': {'restricted-to': ['october',
'november',
'december'],
'type': 'Months-E-4'},
'G3FacsimilePage-E-2-5': {'type': 'BIT STRING'},
'G4FacsimileImage-E-2-6': {'type': 'OCTET STRING'},
'Greeting-E-2-13-a': {'members': [{'name': 'postCard',
'type': 'VisibleString'},
None,
None],
'type': 'CHOICE'},
'Greeting-E-2-13-b': {'members': [{'name': 'postCard',
'type': 'VisibleString'},
None,
[{'name': 'audio',
'type': 'Audio'},
{'name': 'video',
'type': 'Video'}],
None],
'type': 'CHOICE'},
'Greeting-E-2-13-c': {'members': [{'name': 'postCard',
'type': 'VisibleString'},
{'name': 'recording',
'type': 'Voice-E-2-13'}],
'tag': {'class': 'APPLICATION',
'number': 12},
'type': 'CHOICE'},
'Keywords-E-2-11': {'element': {'type': 'VisibleString'},
'type': 'SET OF'},
'Keywords2-E-2-11': {'element': {'type': 'VisibleString'},
'type': 'SET OF'},
'MaritalStatus-E-2-3-a': {'type': 'ENUMERATED',
'values': [('single', 0),
('married', 1)]},
'MaritalStatus-E-2-3-b': {'type': 'ENUMERATED',
'values': [('single', 0),
('married', 1),
None,
('widowed', 2)]},
'MaritalStatus-E-2-3-c': {'type': 'ENUMERATED',
'values': [('single', 0),
('married', 1),
None,
('widowed', 2),
('divorced', 3)]},
'Months-E-4': {'type': 'ENUMERATED',
'values': [('january', 1),
('february', 2),
('march', 3),
('april', 4),
('may', 5),
('june', 6),
('july', 7),
('august', 8),
('september', 9),
('october', 10),
('november', 11),
('december', 12)]},
'Name-E-1-1': {'members': [{'name': 'givenName',
'type': 'VisibleString'},
{'name': 'initial',
'type': 'VisibleString'},
{'name': 'familyName',
'type': 'VisibleString'}],
'tag': {'class': 'APPLICATION', 'number': 1},
'type': 'SEQUENCE'},
'NamesOfMemberNations-E-2-10': {'element': {'type': 'VisibleString'},
'type': 'SEQUENCE OF'},
'NamesOfMemberNations2-E-2-10': {'element': {'type': 'VisibleString'},
'type': 'SEQUENCE OF'},
'NamesOfOfficers-E-2-10': {'members': [{'name': 'president',
'type': 'VisibleString'},
{'name': 'vicePresident',
'type': 'VisibleString'},
{'name': 'secretary',
'type': 'VisibleString'}],
'type': 'SEQUENCE'},
'PDU-E-4': {'members': [{'name': 'alpha',
'type': 'INTEGER'},
{'name': 'beta',
'optional': True,
'type': 'IA5String'},
{'element': {'type': 'Parameter'},
'name': 'gamma',
'type': 'SEQUENCE OF'},
{'name': 'delta',
'type': 'BOOLEAN'}],
'type': 'SET'},
'PackedBCDString-E-2-8': {'type': 'CHARACTER STRING'},
'Parameter': {'type': 'NULL'},
'ParameterList-E-4': {'element': {'type': 'Parameter'},
'size': [(1, 63)],
'type': 'SET OF'},
'PatientIdentifier-E-2-9': {'members': [{'name': 'name',
'type': 'VisibleString'},
{'members': [{'name': 'room',
'type': 'INTEGER'},
{'name': 'outPatient',
'type': 'NULL'}],
'name': 'roomNumber',
'type': 'CHOICE'}],
'type': 'SEQUENCE'},
'PersonalStatus-E-2-5': {'type': 'BIT STRING'},
'PersonnelRecord-E-1-1': {'members': [{'name': 'name',
'type': 'Name-E-1-1'},
{'name': 'title',
'type': 'VisibleString'},
{'name': 'number',
'type': 'EmployeeNumber-E-1-1'},
{'name': 'dateOfHire',
'type': 'Date-E-1-1'},
{'name': 'nameOfSpouse',
'type': 'Name-E-1-1'},
{'default': [],
'element': {'type': 'ChildInformation-E-1-1'},
'name': 'children',
'type': 'SEQUENCE '
'OF'}],
'tag': {'class': 'APPLICATION',
'number': 0},
'type': 'SET'},
'Record-E-2-10-a': {'members': [{'name': 'userName',
'type': 'VisibleString'},
{'name': 'password',
'type': 'VisibleString'},
{'name': 'accountNumber',
'type': 'INTEGER'},
None,
None],
'type': 'SEQUENCE'},
'Record-E-2-10-b': {'members': [{'name': 'userName',
'type': 'VisibleString'},
{'name': 'password',
'type': 'VisibleString'},
{'name': 'accountNumber',
'type': 'INTEGER'},
None,
[{'name': 'lastLoggedIn',
'optional': True,
'type': 'GeneralizedTime'},
{'name': 'minutesLastLoggedIn',
'type': 'INTEGER'}],
None],
'type': 'SEQUENCE'},
'Record-E-2-10-c': {'members': [{'name': 'userName',
'type': 'VisibleString'},
{'name': 'password',
'type': 'VisibleString'},
{'name': 'accountNumber',
'type': 'INTEGER'},
None,
[{'name': 'lastLoggedIn',
'optional': True,
'type': 'GeneralizedTime'},
{'name': 'minutesLastLoggedIn',
'type': 'INTEGER'}],
[{'name': 'certificate',
'type': 'Certificate'},
{'name': 'thumb',
'optional': True,
'type': 'ThumbPrint'}],
None],
'type': 'SEQUENCE'},
'Second-half-E-4': {'restricted-to': ['Third-quarter-E-4',
'Fourth-quarter-E-4'],
'type': 'Months-E-4'},
'Second-quarter-E-4': {'restricted-to': ['april',
'may',
'june'],
'type': 'Months-E-4'},
'SmallPrime-E-4-a': {'restricted-to': [2,
3,
5,
7,
11,
13,
17,
19,
23,
29],
'type': 'INTEGER'},
'SmallPrime-E-4-b': {'restricted-to': [2, 3, None],
'type': 'INTEGER'},
'SmallPrime-E-4-c': {'restricted-to': [2,
3,
None,
5,
7,
11],
'type': 'INTEGER'},
'SmallPrime-E-4-d': {'restricted-to': [2,
3,
None,
5,
7,
11,
13,
17,
19],
'type': 'INTEGER'},
'Surname-E-2-6': {'type': 'PrintableString'},
'T-14-10': {'members': [{'name': 'a', 'type': 'BOOLEAN'},
{'element': {'type': 'INTEGER'},
'name': 'b',
'type': 'SET OF'}],
'type': 'SEQUENCE'},
'TestPDU-E-4': {'type': 'PDU-E-4'},
'Text-block-E-4': {'element': {'type': 'VisibleString'},
'type': 'SEQUENCE OF'},
'Third-quarter-E-4': {'restricted-to': ['july',
'august',
'september'],
'type': 'Months-E-4'},
'ThumbPrint': {'type': 'NULL'},
'TouchToneString-E-4': {'type': 'IA5String'},
'TypeA': {'type': 'INTEGER'},
'TypeB': {'type': 'BIT STRING'},
'TypeC': {'type': 'REAL'},
'UserName-E-2-11-a': {'members': [{'name': 'personalName',
'tag': {'number': 0},
'type': 'VisibleString'},
{'name': 'organizationName',
'tag': {'number': 1},
'type': 'VisibleString'},
{'name': 'countryName',
'tag': {'number': 2},
'type': 'VisibleString'}],
'type': 'SET'},
'UserName-E-2-11-b': {'members': [{'name': 'personalName',
'tag': {'number': 0},
'type': 'VisibleString'},
{'name': 'organizationName',
'optional': True,
'tag': {'number': 1},
'type': 'VisibleString'},
{'name': 'countryName',
'optional': True,
'tag': {'number': 2},
'type': 'VisibleString'}],
'type': 'SET'},
'UserName-E-2-11-c': {'members': [{'name': 'personalName',
'type': 'VisibleString'},
{'name': 'organizationName',
'optional': True,
'type': 'VisibleString'},
{'name': 'countryName',
'optional': True,
'type': 'VisibleString'},
None,
None],
'type': 'SET'},
'UserName-E-2-11-d': {'members': [{'name': 'personalName',
'type': 'VisibleString'},
{'name': 'organizationName',
'optional': True,
'type': 'VisibleString'},
{'name': 'countryName',
'optional': True,
'type': 'VisibleString'},
None,
[{'name': 'internetEmailAddress',
'type': 'VisibleString'},
{'name': 'faxNumber',
'optional': True,
'type': 'VisibleString'}],
None],
'type': 'SET'},
'UserName-E-2-11-e': {'members': [{'name': 'personalName',
'type': 'VisibleString'},
{'name': 'organizationName',
'optional': True,
'type': 'VisibleString'},
{'name': 'countryName',
'optional': True,
'type': 'VisibleString'},
None,
[{'name': 'internetEmailAddress',
'type': 'VisibleString'},
{'name': 'faxNumber',
'optional': True,
'type': 'VisibleString'}],
[{'name': 'phoneNumber',
'optional': True,
'type': 'VisibleString'}],
None],
'type': 'SET'},
'V-E-4': {'type': 'Z-E-4'},
'VendorExt': {'type': 'OCTET STRING'},
'Video': {'type': 'REAL'},
'Voice-E-2-13': {'members': [{'name': 'english',
'type': 'OCTET STRING'},
{'name': 'swahili',
'type': 'OCTET STRING'}],
'type': 'CHOICE'},
'W-E-4': {'type': 'Z-E-4'},
'X-E-4': {'type': 'Z-E-4'},
'Y-E-4': {'type': 'Z-E-4'},
'Z-E-4': {'members': [{'name': 'a', 'type': 'A'},
{'name': 'b', 'type': 'B'},
{'name': 'c', 'type': 'C'},
{'name': 'd', 'type': 'D'},
{'name': 'e', 'type': 'E'}],
'type': 'CHOICE'}},
'values': {'acmeCorp-E-2-10': {'type': 'NamesOfOfficers-E-2-10',
'value': '{'},
'badgeNumber-E-2-12': {'type': 'AcmeBadgeNumber-E-2-12',
'value': 2345},
'balance-E-2-2': {'type': 'CheckingAccountBalance-E-2-2',
'value': 0},
'billClinton-E-2-5': {'type': 'PersonalStatus-E-2-5',
'value': ['married',
'employed',
'collegeGraduate']},
'body1-E-2-5': {'type': 'G3FacsimilePage-E-2-5',
'value': '0b1101'},
'body2-E-2-5': {'type': 'G3FacsimilePage-E-2-5',
'value': '0b1101000'},
'dayOfTheMonth-E-2-2-c': {'type': 'DayOfTheMonth-E-2-2',
'value': 4},
'file-E-2-13': {'type': 'FileIdentifier-E-2-13-a',
'value': 'serialNumber'},
'fileId1-E-2-13-a': {'type': 'FileIdentifier-E-2-13-b',
'value': 'relativeName'},
'fileId1-E-2-13-b': {'type': 'FileIdentifier-E-2-13-c',
'value': 'relativeName'},
'fileId1-E-2-13-c': {'type': 'FileIdentifier-E-2-13-d',
'value': 'relativeName'},
'fileId2-E-2-13-a': {'type': 'FileIdentifier-E-2-13-c',
'value': 'serialNumber'},
'fileId2-E-2-13-b': {'type': 'FileIdentifier-E-2-13-d',
'value': 'serialNumber'},
'fileId3-E-2-13-a': {'type': 'FileIdentifier-E-2-13-d',
'value': 'unidentified'},
'firstDay-E-2-3': {'type': 'DayOfTheWeek-E-2-3',
'value': 'sunday'},
'firstTwo-E-2-10': {'type': 'NamesOfMemberNations-E-2-10',
'value': '{'},
'firstTwo2-E-2-10': {'type': 'NamesOfMemberNations2-E-2-10',
'value': '{'},
'girth-E-2-4': {'type': 'App-X-Real-E-2-4', 'value': '{'},
'greekCapitalLetterSigma-E-2-7': {'type': 'BMPString',
'value': '{'},
'hillaryClinton-E-2-5': {'type': 'PersonalStatus-E-2-5',
'value': '0b110100'},
'image-E-2-5': {'type': 'G3FacsimilePage-E-2-5',
'value': '0b100110100100001110110'},
'image-E-2-6': {'type': 'G4FacsimileImage-E-2-6',
'value': '0x3FE2EBAD471005'},
'infinity-E-2-7': {'type': 'UTF8String', 'value': '{'},
'lastPatient-E-2-9': {'type': 'PatientIdentifier-E-2-9',
'value': '{'},
'map1-E-2-5': {'type': 'BitField-E-2-5',
'value': '0b100110100100'},
'map2-E-2-5': {'type': 'BitField-E-2-5', 'value': '0x9A4'},
'myGreeting-E-2-13': {'type': 'Greeting-E-2-13-c',
'value': 'recording'},
'pi-E-2-4-a': {'type': 'REAL', 'value': '{'},
'pi-E-2-4-b': {'type': 'REAL',
'value': '3.141592653589793'},
'president-E-2-6': {'type': 'Surname-E-2-6',
'value': 'Clinton'},
'property-E-2-7': {'type': 'UTF8String', 'value': '{'},
'rightwardsArrow-E-2-7': {'type': 'UTF8String',
'value': '{'},
'someASN1Keywords-E-2-11': {'type': 'Keywords-E-2-11',
'value': '{'},
'someASN1Keywords2-E-2-11': {'type': 'Keywords2-E-2-11',
'value': '{'},
'sunnyDaysLastWeek1-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a',
'value': ['sunday',
'monday',
'wednesday']},
'sunnyDaysLastWeek1-E-2-5-b': {'type': 'DaysOfTheWeek-E-2-5-b',
'value': ['sunday',
'monday',
'wednesday']},
'sunnyDaysLastWeek2-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a',
'value': '0b1101'},
'sunnyDaysLastWeek3-E-2-5-a': {'type': 'DaysOfTheWeek-E-2-5-a',
'value': '0b1101000'},
'sunnyDaysLastWeek3-E-2-5-b': {'type': 'DaysOfTheWeek-E-2-5-b',
'value': '0b1101000'},
'today-E-2-2': {'type': 'DayOfTheMonth-E-2-2',
'value': 'first'},
'trailer-E-2-5': {'type': 'BIT STRING',
'value': '0x0123456789ABCDEF'},
'unknown-E-2-2': {'type': 'DayOfTheMonth-E-2-2',
'value': 0},
'user-E-2-11-a': {'type': 'UserName-E-2-11-a',
'value': '{'},
'user-E-2-11-b': {'type': 'UserName-E-2-11-c',
'value': '{'},
'user-E-2-11-c': {'type': 'UserName-E-2-11-d',
'value': '{'},
'user-E-2-11-d': {'type': 'UserName-E-2-11-e',
'value': '{'}}}} |
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 4 10:18:58 2021
@author: dsd
"""
if __name__ == '__main__':
sent = input("Введите предложение: ")
sent = sent.replace(' ', '')
print(sent) |
def pairs(array: list) -> int:
""" This function returns the count of pairs that have consecutive numbers. """
pairs_from_array = list(zip(array[::2], array[1::2]))
count = 0
for i, j in pairs_from_array:
if (i - j == 1) or (i - j == -1):
count += 1
return count |
class Livro:
def __init__(self, titulo, autor, quantidade_paginas):
self.titulo = titulo
self.autor = autor
self.quantidade_paginas = quantidade_paginas
def exibir_dados(self):
print("_______________________________________________")
print("Título:", self.titulo)
print("Autor:", self.autor)
print("Número de páginas:", self.quantidade_paginas)
# criar objetivos
Livro1 = Livro("Um estudo em vermelho", "Vinicius", 237)
Livro2 = Livro(" P.s. Eu te amo", "Larissa", 483)
# exibir objetos
Livro1.exibir_dados()
Livro2.exibir_dados()
|
output_name = "test"
config = {
"_description": "Test configuration",
"gpu": [0],
# data
"dataset": "Lsun_church",
"data_path": "/home/yct/data/church_outdoor_train_lmdb/Lsun_church_unlabeled_64",
"data_size": 2000,
"use_image_generator": False,
# model & training
"model": "vanilla",
"z_dim": 128,
"gf_dim": 16,
"df_dim": 16,
"lr_g": 2e-4,
"lr_d": 7e-4,
"decay_rate": 0.99,
"use_attention": True,
"attn_dim_G": [32, 64],
"attn_dim_D": [8, 4],
"use_label": False,
"batch_size": 64,
"loss": "hinge_loss",
"epoch": 10,
"update_ratio": 1,
#
"num_sample": 16,
"summary_step_freq": 100,
"log_dir": "logs/{}".format(output_name),
"ckpt_dir": "checkpoints/{}".format(output_name),
"img_dir": "images/{}".format(output_name)
} |
#/usr/bin/python3
GPIO_NUM = 23
COLUMN_LEN = 16
COLUMN_GAP = 30
def read_file():
file = open("line")
count = 0
while 1:
for i in range(GPIO_NUM):
count = count + 1
if count > GPIO_NUM * COLUMN_LEN:
return
line = file.readline()
if not line:
file.close()
return
line = line.strip()
print(line)
l[i].append('"' + line + '"')
def write_file():
out = open("out" , "w")
for subl in l:
out.write("{")
count = 0
for str in subl:
spaceCount = 0
if len(str) < COLUMN_GAP:
spaceCount = COLUMN_GAP - len(str)
out.write(str + "," + spaceCount * " ")
count = count + 1
if count % 3 == 0:
count = 0
out.write("\n")
out.write("},\n\n")
out.close()
l = []
for i in range(GPIO_NUM):
l.append([])
read_file()
write_file()
|
class MangaDexException(Exception):
"""Base exception for MangaDex errors"""
pass
class HTTPException(MangaDexException):
"""HTTP errors"""
def __init__(self, *args: object, resp=None) -> None:
self.response = resp
super().__init__(*args)
class InvalidManga(MangaDexException):
"""Raised when invalid manga is found"""
pass
class InvalidURL(MangaDexException):
"""Raised when given mangadex url is invalid"""
pass
class LoginFailed(MangaDexException):
"""Raised when login is failed"""
pass
class AlreadyLoggedIn(MangaDexException):
"""Raised when user try login but already logged in """
pass
class NotLoggedIn(MangaDexException):
"""Raised when user try to logout when user are not logged in"""
pass |
n, k = map(int, input().split())
a = list(sorted(map(int, input().split()), reverse=True))
s = set()
for i in range(len(a)):
if a[i] * k not in s:
s.add(a[i])
print(len(s)) |
def smile():
return ":)"
def frown():
return ":("
|
# coding=utf-8
DEBUG = True
SITE_ID = 1
SECRET_KEY = 'blabla'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
}
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'south',
'contacts',
'contacts.tests'
]
USE_I18N = True
USE_L10N = True |
__author__ = ['Tom Van Mele', ]
__copyright__ = 'Copyright 2016 - Block Research Group, ETH Zurich'
__license__ = 'MIT License'
__email__ = 'vanmelet@ethz.ch'
__all__ = [
'get_axes_dimension',
'assert_axes_dimension',
'width_to_dict',
'size_to_sizedict',
]
def get_axes_dimension(axes):
"""Returns the number of dimensions of a matplotlib axes object.
Parameters
----------
axes : object
The matplotlib axes object.
Returns
-------
int
The number of dimensions of a matplotlib axes object.
"""
if hasattr(axes, 'get_zlim'):
return 3
else:
return 2
def assert_axes_dimension(axes, dim):
"""Asserts if the number of dimensions of a matplotlib axes equals a given dim.
Parameters
----------
axes : object
The matplotlib axes object to assert.
dim : int
The numbers of dimensions to assert with.
Returns
-------
bool
True if the axes object has dim dimensions.
"""
assert get_axes_dimension(axes) == dim, 'The provided axes are not {0}D.'.format(dim)
def width_to_dict(width, dictkeys, defval=None):
width = width or defval
if isinstance(width, (int, float)):
return dict((key, width) for key in dictkeys)
if isinstance(width, dict):
for k, w in width.items():
if isinstance(w, (int, float)):
width[k] = w
return dict((key, width.get(key, defval)) for key in dictkeys)
raise Exception('This is not a valid width format: {0}'.format(type(width)))
def size_to_sizedict(size, dictkeys, defval=None):
size = size or defval
if isinstance(size, (int, float)):
return dict((key, size) for key in dictkeys)
if isinstance(size, dict):
for k, s in size.items():
if isinstance(s, (int, float)):
size[k] = s
return dict((key, size.get(key, defval)) for key in dictkeys)
raise Exception('This is not a valid size format: {0}'.format(type(size)))
def synchronize_scale_axes(axes):
pass
# ==============================================================================
# Main
# ==============================================================================
if __name__ == "__main__":
pass
|
col_desc = {'Rk':'Rank This is a count of the rows from top to bottom. It is recalculated following the sorting of a column.',
'Pos':'Position',
'Name':'Player Name Bold can mean player is active for this team or player has appeared in MLB * means LHP or LHB, # means switch hitter, + can mean HOFer.',
'Age':'Player’s age at midnight of June 30th of that year',
'G':'Games Played. This includes all times that the player appeared on the lineup card. Pitchers in non-DH games that appeared on the lineup card but did not bat will still have a game in this column.',
'PA':'Plate Appearances. When available, we use actual plate appearances from play-by-play game accounts Otherwise estimated using AB + BB + HBP + SF + SH, which excludes catcher interferences. When this color click for a summary of each PA.',
'AB':'At Bats',
'R':'Runs Scored/Allowed',
'H':'Hits/Hits Allowed',
'2B':'Doubles Hit/Allowed',
'3B':'Triples Hit/Allowed',
'HR':'Home Runs Hit/Allowed',
'RBI':'Runs Batted In',
'SB':'Stolen Bases',
'CS':'Caught Stealing',
'BB':'Bases on Balls/Walks',
'SO':'Strikeouts',
'BA':'Hits/At Bats For recent years, leaders need 3.1 PA per team game played Bold indicates highest BA using current stats Gold means awarded title at end of year.',
'OBP':'(H + BB + HBP)/(At Bats + BB + HBP + SF) For recent years, leaders need 3.1 PA per team game played',
'SLG':'Total Bases/At Bats or (1B + 2*2B + 3*3B + 4*HR)/AB For recent years, leaders need 3.1 PA per team game played',
'OPS':'On-Base + Slugging Percentages For recent years, leaders need 3.1 PA per team game played',
'OPS+':'OPS+100*[OBP/lg OBP + SLG/lg SLG - 1] Adjusted to the player’s ballpark(s)',
'TB':'Total Bases Singles + 2 x Doubles + 3 x Triples + 4 x Home Runs.',
'GDP':'Double Plays Grounded Into Only includes standard 6-4-3, 4-3, etc. double plays. First tracked in 1933. For gamelogs only in seasons we have play-by-play, we include triple plays as well. All official seasonal totals do not include GITPs.',
'HBP':'Times Hit by a Pitch.',
'SH':'Sacrifice Hits (Sacrifice Bunts)',
'SF':'Sacrifice Flies. First tracked in 1954.',
'IBB':'Intentional Bases on Balls. First tracked in 1955.'} |
# pylint: disable=missing-docstring, invalid-name
MY_DICTIONARY = {"key_one": 1, "key_two": 2, "key_three": 3}
try: # [max-try-statements]
value = MY_DICTIONARY["key_one"]
value += 1
except KeyError:
pass
try:
value = MY_DICTIONARY["key_one"]
except KeyError:
value = 0
|
# Jupyter Extension points
def _jupyter_nbextension_paths():
return [
dict(
section="notebook",
src="static",
# directory in the `nbextension/` namespace
dest="imjoy_jupyter_extension",
# _also_ in the `nbextension/` namespace
require="imjoy_jupyter_extension/imjoy-rpc",
)
]
|
#!/usr/bin/env python
"""
List of APIs supported by Gurunudi
"""
API_CHAT ='chatbot' #real time conversation and knowledge q&a - ideal for chatbots
"""
Fields returned in response JSON by Gurunudi API calls and Fields sent in request JSON to Gurunudi API calls
"""
FIELD_LANG='lang'
FIELD_TARGET_LANG='target'
FIELD_CONTEXT='context'
FIELD_TEXT="text"
FIELD_ERROR="error"
FIELD_LIST="list"
FIELD_MODEL="model"
ERROR_SERVER_INACCESSIBLE="server_inaccessible"
ERROR_INVALID_LANGUAGE_CODE="invalid_language_code"
ERROR_NO_RESPONSE="no_response_for_api"
|
numero = int(input('Digite um número de quatro digitos: '))
u = numero // 1 % 10
d = numero // 10 % 10
c = numero // 100 % 10
m = numero // 1000 % 10
print(f'Analisando o número {numero}')
print('Unidade: ', u)
print('Dezena: ', d)
print('Centena: ', c)
print('milhar: ', m)
|
#! /root/anaconda3/bin/python
# 例子一 内置函数locals()可以返回其所在局部作用域的命名空间
"""
locals()并没有返回实际的命名空间,而是返回值的拷贝,所以通过locals()修改某个名字对应的值,对于实际的命名空间是没有影响的;但是,可以通过locals()向实际的命名空间中添加一个名字和值的映射。
"""
def f():
x = 8
print(locals()) # {'x': 8}
locals()['x'] = 9
locals()['y'] = 10
print(locals()) # {'x': 8, 'y': 10}
f()
|
COLOR_CANVAS_DARK = 'rgb(33,33,33)'
COLOR_CANVAS_LIGHT = 'rgb(252, 252, 252)'
COLOR_PLOT_TEXT_LIGHT = 'rgb(52, 49, 49)'
COLOR_PLOT_TEXT_DARK = 'rgb(252, 252, 252)'
COLOR_ZERO_LINE_LIGHT = "green"
COLOR_ZERO_LINE_DARK = "limegreen"
COLOR_BEAM = "red"
COLOR_DETECTOR = "#D3D3D3"
COLOR_PAD = "slateblue"
COLOR_PATIENT = "#CE967C"
COLOR_SOURCE = "#D3D3D3"
COLOR_TABLE = "#D3D3D3"
COLOR_SLIDER_BACKGROUND = "red"
COLOR_SLIDER_BORDER_LIGHT = "rgb(252,252,252)"
COLOR_SLIDER_BORDER_DARK = "rgb(45,45,45)"
COLOR_SLIDER_TICK_LIGHT = "rgb(52, 49, 49)"
COLOR_SLIDER_TICK_DARK = "white"
COLOR_GRID_DARK = 'rgb(99,99,99)'
COLOR_GRID_LIGHT = 'rgb(99,99,99)'
COLOR_WIRE_FRAME_BEAM = 'red'
COLOR_WIRE_FRAME_DETECTOR = 'darkslategray'
COLOR_WIRE_FRAME_PAD = '#3f3f3f'
COLOR_WIRE_FRAME_TABLE = '#3f3f3f'
DATA_DS_IRP = "DSIRP"
KEY_PARAM_MODE = 'mode'
KEY_PARAM_RDSR_FILENAME = 'rdsr_filename'
KEY_PARAM_ESTIMATE_K_TAB = 'estimate_k_tab'
KEY_PARAM_K_TAB_VAL = 'k_tab_val'
KEY_PARAM_PHANTOM_MODEL = 'model'
KEY_PARAM_HUMAN_MESH = 'human_mesh'
DIMENSION_PLANE_LENGTH = "plane_length"
DIMENSION_PLANE_RESOLUTION = "plane_resolution"
DIMENSION_PLANE_WIDTH = "plane_width"
DIMENSION_CYLINDER_LENGTH = 'cylinder_length'
DIMENSION_CYLINDER_RADII_A = 'cylinder_radii_a'
DIMENSION_CYLINDER_RADII_B = 'cylinder_radii_b'
DIMENSION_CYLINDER_RESOLUTION = 'cylinder_resolution'
DIMENSION_TABLE_LENGTH = 'table_length'
DIMENSION_TABLE_WIDTH = 'table_width'
DIMENSION_TABLE_THICKNESS = 'table_thickness'
DIMENSION_PAD_LENGTH = 'pad_length'
DIMENSION_PAD_WIDTH = 'pad_width'
DIMENSION_PAD_THICKNESS = 'pad_thickness'
DIMENSION_UNIT_KEY = 'unit'
DIMENSION_UNIT_CM = 'cm'
KEY_RDSR_ACQUISITION_DATA = 'AcquisitionData'
KEY_RDSR_COMMENT = 'Comment'
KEY_RDSR_CONCEPT_CODE_SEQUENCE = 'ConceptCodeSequence'
KEY_RDSR_CONTENT_SEQUENCE = 'ContentSequence'
KEY_RDSR_DATE_TIME = 'DateTime'
KEY_RDSR_DETECTORSIZE_MM = 'DetectorSize_mm'
KEY_RDSR_EVENT_XRAY_DATA = 'Irradiation Event X-Ray Data'
KEY_RDSR_II_DIAMETER_SRDATA = 'iiDiameter SRData'
KEY_RDSR_MANUFACTURER = 'Manufacturer'
KEY_RDSR_MANUFACTURER_MODEL_NAME = 'ManufacturerModelName'
KEY_RDSR_MEASURED_VALUE_SEQUENCE = 'MeasuredValueSequence'
KEY_RDSR_TEXT_VALUE = 'TextValue'
KEY_RDSR_UID = 'UID'
KEY_NORMALIZATION_DETECTOR_SIDE_LENGTH = 'detector_side_length'
KEY_NORMALIZATION_FIELD_SIZE_MODE = 'field_size_mode'
KEY_NORMALIZATION_MANUFACTURER = 'manufacturer'
KEY_NORMALIZATION_MODELS = 'models'
IRRADIATION_EVENT_PROCEDURE_KEY_BEAM = "Beam"
IRRADIATION_EVENT_PROCEDURE_KEY_DETECTORS = "Detectors"
IRRADIATION_EVENT_PROCEDURE_KEY_PAD = "Pad"
IRRADIATION_EVENT_PROCEDURE_KEY_PATIENT = "Patient"
IRRADIATION_EVENT_PROCEDURE_KEY_SOURCE = "Source"
IRRADIATION_EVENT_PROCEDURE_KEY_TABLE = "Table"
IRRADIATION_EVENT_PROCEDURE_KEY_WIRE_FRAME_BEAM = "WF Beam"
IRRADIATION_EVENT_PROCEDURE_KEY_WIRE_FRAME_DETECTORS = "WF Detectors"
IRRADIATION_EVENT_PROCEDURE_KEY_WIRE_FRAME_PAD = "WF Pad"
IRRADIATION_EVENT_PROCEDURE_KEY_WIRE_FRAME_TABLE = "WF Table"
IRRADIATION_EVENT_STEP_KEY_ARGUMENTS = "args"
IRRADIATION_EVENT_STEP_KEY_LABEL = "label"
IRRADIATION_EVENT_STEP_KEY_METHOD = "method"
MAX_EVENT_FOR_PATIENT_INCLUSION_IN_PROCEDURE_KEY = \
'max_events_for_patient_inclusion'
MESH_NAME_PAD = "Support pad"
MESH_OPACITY_BEAM = 0.4
MODE_CALCULATE_DOSE = "calculate_dose"
MODE_PLOT_EVENT = "plot_event"
MODE_PLOT_PROCEDURE = "plot_procedure"
MODE_PLOT_SETUP = "plot_setup"
MODE_PLOT_DOSEMAP = 'plot_dosemap'
MODE_DARK_MODE = "dark_mode"
MODE_INTERACTIVITY = 'interactivity'
OUTPUT_KEY_CORRECTION_BACK_SCATTER = "k_bs"
OUTPUT_KEY_CORRECTION_INVERSE_SQUARE_LAW = "k_isq"
OUTPUT_KEY_CORRECTION_MEDIUM = "k_med"
OUTPUT_KEY_CORRECTION_TABLE = "k_tab"
OUTPUT_KEY_DOSE_MAP = "dose_map"
OUTPUT_KEY_HITS = "hits"
OUTPUT_KEY_KERMA = "kerma"
PHANTOM_MESH_ADULT_MALE = "hudfrid"
PHANTOM_MODEL_CYLINDER = "cylinder"
PHANTOM_MODEL_HUMAN = "human"
PHANTOM_MODEL_PAD = "pad"
PHANTOM_MODEL_PLANE = "plane"
PHANTOM_HUMAN_MESH_SPARSE_MODEL_ENDING = "_reduced_1000t"
PHANTOM_MODEL_TABLE = "table"
PLOT_AXIS_TITLE_X = "X - LON [cm]"
PLOT_AXIS_TITLE_Y = "Y - VER [cm]"
PLOT_AXIS_TITLE_Z = "Z - LAT [cm]"
PLOT_FONT_FAMILY = 'Arial'
PLOT_FONT_SIZE = 14
PLOT_HOVERLABEL_FONT_FAMILY = 'Arial'
PLOT_HOVERLABEL_FONT_SIZE = 14
PLOT_TITLE_FONT_FAMILY = 'Arial'
PLOT_TITLE_FONT_SIZE = 14
PLOT_EVENT_INDEX_KEY = 'plot_event_index'
PLOT_SLIDER_BORDER_WIDTH = 3
PLOT_SLIDER_FONT_SIZE_CURRENT = 18
PLOT_SLIDER_FONT_SIZE_GENERAL = 14
PLOT_SLIDER_PADDING = dict(b=0, t=0, l=25, r=25)
PLOT_SLIDER_PADDING_NOTEBOOK = dict(b=0, t=0, l=20, r=20)
PLOT_WIREFRAME_LINE_WIDTH = 4
PLOT_DRAGMODE = 'orbit'
PLOT_ASPECTMODE_SETUP_AND_EVENT = 'data'
PLOT_ASPECTMODE_PLOT_DOSEMAP = 'data'
PLOT_ASPECTMODE_PLOT_PROCEDURE = 'cube'
PLOT_ORDER_STATIC = ['right', 'back', 'left', 'front']
PLOT_PROCEDURE_AXIS_RANGE_X = [-300, 300]
PLOT_PROCEDURE_AXIS_RANGE_Y = [-300, 300]
PLOT_PROCEDURE_AXIS_RANGE_Z = [-300, 300]
# shift size of the entire image to the left to remove whitespace in plot
PLOT_GROUND_SHIFT_X_STATIC = 50
# shift size of each of the four subplots to hide all but 1 colorscale
PLOT_SHIFT_X_STATIC = [0*70, 1*70, 2*70, 3*70]
# size of each static subplot
PLOT_BASE_SIZE_STATIC = 297
PLOT_SOURCE_SIZE = 8
PLOT_FILE_TYPE_STATIC = '.png'
PLOT_LIGHTNING_DIFFUSE = 0.5
PLOT_LIGHTNING_AMBIENT = 0.5
PLOT_SLIDER_TRANSITION = dict(duration=300, easing="quad-in-out")
PLOT_ZERO_LINE_WIDTH = 5
PLOT_HEIGHT_NOTEBOOK = 800
PLOT_WIDTH_NOTEBOOK = None
PLOT_HEIGHT = None
PLOT_WIDTH = None
PLOT_MARGIN_NOTEBOOK = dict(l=5, r=5, b=5, t=40)
PLOT_MARGIN = dict(l=0, r=0, b=100, t=40)
# plot camera angles for static dosemaps
PLOT_EYE_BACK = dict(eye=dict(x=0, y=+2.5, z=0))
PLOT_EYE_FRONT = dict(eye=dict(x=0, y=-2.5, z=0))
PLOT_EYE_LEFT = dict(eye=dict(x=2.5, y=+1.5, z=0))
PLOT_EYE_RIGHT = dict(eye=dict(x=-2.5, y=+1.5, z=0))
OFFSET_LATERAL_KEY = 'd_lat'
OFFSET_VERTICAL_KEY = 'd_ver'
OFFSET_LONGITUDINAL_KEY = 'd_lon'
RESOLUTION_SPARSE = "sparse"
RESOLUTION_DENSE = "dense"
TABULATED_FIELD_SIDE_LENGTHS_IN_CM = [5, 10, 20, 25, 35]
# Offset needed to show plane phantom correctly
VISUAL_OFFSET_PHANTOM_MODEL_PLANE = -0.01
MODE_NOTEBOOK_MODE = 'notebook_mode'
PLOT_HEIGHT_KEY = 'height'
PLOT_WIDTH_KEY = 'width'
DOSEMAP_COLORSCALE_KEY = 'colorscale'
# Available colorscales are documented here:
# https://plotly.com/python/builtin-colorscales/
DOSEMAP_COLORSCALE = 'jet'
# amp
PATIENT_ORIENTATION_HEAD_FIRST_SUPINE = 'head_first_supine'
PATIENT_ORIENTATION_FEET_FIRST_SUPINE = 'feet_first_supine'
|
#faça um programa que leia o nome de uma
#pessoa e mostre uma mensagem de boas-vindas
#nome = input('Qual é o seu nome?')
#print('Olá', nome,'. Prazer em conhece-lo')
nome = input('Qual é o seu nome?')
print('Prazer em te conhecer {}!'.format(nome))
|
#3) Largest prime factor
#The prime factors of 13195 are 5, 7, 13 and 29.
#What is the largest prime factor of the number 600851475143 ?
# Solution
def primes_naive(n):
if n < 2: return []
sieve = [True] * n
for i in range(3,int(n**0.5)+1,2):
if sieve[i]:
sieve[i*i::2*i]=[False]*((n-i*i-1)//(2*i)+1)
return [2] + [i for i in range(3,n,2) if sieve[i]]
def primes(n):
sieve = [True] * (n//2)
for i in range(3,int(n**0.5)+1,2):
if sieve[i//2]:
sieve[i*i//2::i] = [False] * ((n-i*i-1)//(2*i)+1)
return [2] + [2*i+1 for i in range(1, n//2) if sieve[i]]
def prod(x):
product = 1
for i in x:
product *= i
return product
def prime_factors(n, m):
nums = [x for x in primes(m) if n % x == 0]
if prod(nums) == n:
return nums
else:
return []
max(prime_factors(600851475143, 10000)) |
f = open("twentyfive.txt", "r")
lines = [x.strip() for x in f.readlines()]
width = len(lines[0])
height = len(lines)
left = {}
down = {}
for y in range(len(lines)):
left[y] = []
down[y] = []
for x in range(len(lines[y])):
if lines[y][x] == ">":
left[y].append(x)
elif lines[y][x] == "v":
down[y].append(x)
moved = 1
step = 0
while moved != 0:
step += 1
moved = 0
new_left = {}
new_down = {}
for y in left:
new_left[y] = []
for x in left[y]:
nx = x + 1 if x != (width - 1) else 0
if nx in left[y] or nx in down[y]:
new_left[y].append(x)
else:
moved += 1
new_left[y].append(nx)
left = new_left
for y in down:
new_down[y] = []
for y in down:
for x in down[y]:
ny = y + 1 if y != (height - 1) else 0
if x in left[ny] or x in down[ny]:
new_down[y].append(x)
else:
moved += 1
new_down[ny].append(x)
down = new_down
print(step) |
class dotPolymeshValidateInvalidInfo_t(object):
# no doc
ClientId=None
nInvalidFaces=None
|
"""
1) :
Faca um programa que possua um vetor denominado 'a' que armazene 6 valores inteiros.
O programa deve executar os seguintes passos:
"""
# A) Atribua os seguintes valores :
a = [1, 0, 5, -2, -5, 7]
# B) Armazene em uma variável inteira simples a soma dos seguintes valores das posicões :
b = a[0] + a[1] + a[5]
print(b,'\n')
# C) Modifique o vetor na posicão '4', atribuindo o valor 100 a essa posicão :
a.insert(4, 100)
# D) Mostre na tela cada valor do vetor 'a' um em cada linha :
for n in a:
print(n) |
def parse_svg(txt):
txt = txt.split('<path d="')[-1]
txt = txt.split('z"/>')[0]
txt = txt.replace('\n', ' ')
txt = txt.split(' ')
# Take out the initial M x y instruction
txt = txt[2:]
# Take out the initial c instruction
txt[0] = txt[0][1:]
txt = [int(num) for num in txt]
curves = []
cur_pos = (0, 0)
for i in range(0, len(txt) - 2, 6):
# Create a new curve "c"
c = []
c.append(cur_pos)
for a in range(3):
# Add the position relative to the current one
c.append((cur_pos[0] + txt[i + a * 2], cur_pos[1] + txt[i + a * 2 + 1]))
# Update the current position
cur_pos = c[-1]
curves.append(c)
return curves[:-1]
def bezier_x(c, t):
return (1-t)**3 * c[0][0] + 3*(1-t)**2*t * c[1][0] + 3 * (1-t) * t ** 2 * c[2][0] + t ** 3 * c[3][0]
def bezier_y(c, t):
return (1-t)**3 * c[0][1] + 3*(1-t)**2*t * c[1][1] + 3 * (1-t) * t ** 2 * c[2][1] + t ** 3 * c[3][1]
def bezier_slope(c, t):
xDeriv = 3 * (1-t) ** 2 * (c[1][0] - c[0][0]) + 6 * (1-t) * t*(c[2][0]-c[1][0]) + 3 * t **2 * (c[3][0]-c[2][0])
yDeriv = 3 * (1-t) ** 2 * (c[1][1] - c[0][1]) + 6 * (1-t) * t*(c[2][1]-c[1][1]) + 3 * t **2 * (c[3][1]-c[2][1])
res = yDeriv/xDeriv
# Unless it's an asymptote, you don't want giant spikes in the middle of your graph ...
if max(res) - min(res) > 20:
raise ValueError
return res |
# -*- coding: utf-8 -*-
"""Top-level package for tmrwppk."""
__author__ = """Nick Hobart"""
__email__ = 'nick@hobart.io'
__version__ = '0.0.6'
|
class LinkedList:
class Node:
def __init__(self, data, next=None):
self.data = data
self.next = next
def __init__(self):
self.head = None
def append(self, data):
"""Add a new node to the end of the list."""
node = self.head
if node is None:
self.head = self.Node(data)
return
while node.next is not None:
node = node.next
node.next = self.Node(data)
def prepend(self, data):
"""Add a new node to the start of the list."""
self.head = self.Node(data, self.head)
def print(self):
"""Print all the nodes in the list."""
node = self.head
while node is not None:
print(node.data)
node = node.next
def delete_head(self):
"""Removes the first node in the list"""
if self.head is not None:
self.head = self.head.next
def delete_tail(self):
"""Removes the last node in the list"""
node = self.head
if node is None:
return
if node.next is None:
self.delete_head()
return
while node.next.next is not None:
node = node.next
node.next = None
def find(self, data):
"""find() -> bool"""
node = self.head
while node is not None:
if node.data == data:
return True
node = node.next
return False
def delete(self, data):
"""Delete the first occurence of data"""
node = self.head
if node is None:
return
if node.data == data:
self.delete_head()
return
if node.next is None:
return
while node.next is not None:
if node.next.data == data:
if node.next is None:
self.delete_tail()
return
node.next = node.next.next
return
node = node.next
def reverse(self):
old_head = self.head
new_head = None
buffer_node = None
while old_head is not None:
# V1
# new_head = self.Node(old_head.data, new_head)
# old_head = old_head.next
# V2
buffer_node = old_head.next
old_head.next = new_head
new_head = old_head
old_head = buffer_node
self.head = new_head
if __name__ == "__main__":
songs = LinkedList()
songs.append("Black Betty")
songs.append("Sweater Weather")
songs.prepend("Be happy")
songs.append("Sam")
songs.prepend("Rafa")
# songs.delete_head()
# songs.delete_tail()
# songs.delete_tail()
# songs.delete_tail()
# songs.delete_tail()
# songs.delete_tail()
# print(songs.find("Be Happy"))
# songs.delete("Sam")
songs.reverse()
songs.print() |
class Solution:
def maxAreaOfIsland(self, grid: List[List[int]]) -> int:
seen = set() # visited cells here
res = 0
for r, row in enumerate(grid):
for c, val in enumerate(row): # val is basically grid[r, c]
if val and (r,c) not in seen: # if val is 1 and not visited already
# We do the iterative DFS here.
stack = [(r,c)]
currArea = 0
while stack:
r0, c0 = stack.pop()
if (r0, c0) in seen:
continue
currArea += 1
for nr, nc in ((r0, c0-1), (r0-1, c0), (r0, c0+1), (r0+1, c0)):
if (0<=nr<len(grid) and 0<=nc<len(row)): # Check boundary conditions
if grid[nr][nc] and (nr, nc) not in seen: # check if val == 1 and not visited
stack.append((nr, nc))
seen.add((r0, c0))
res = max(res, currArea)
return res
|
# -*- coding: utf-8 -*-
'''
Generate baseline proxy minion grains
'''
__proxyenabled__ = ['rest_sample']
__virtualname__ = 'rest_sample'
def __virtual__():
if 'proxy' not in __opts__:
return False
else:
return __virtualname__
def kernel():
return {'kernel': 'proxy'}
def os():
return {'os': 'proxy'}
def location():
return {'location': 'In this darn virtual machine. Let me out!'}
def os_family():
return {'os_family': 'proxy'}
def os_data():
return {'os_data': 'funkyHttp release 1.0.a.4.g'}
|
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Tests that custom auth works & is not impaired by CORS',
'category': 'Hidden',
'data': [],
}
|
#String unpack example
testString = '0xL08$#$john18:jcTeam01_@#@_https://docs.google.com/spreadsheetExampleUrl'
commandData, data = testString.split('_@#@_')
print(commandData)
print(data)
command, cData = commandData.split('$#$')
print(command)
print(cData)
username, fileName = cData.split(':')
print(username)
print(fileName)
|
print('Vamos ver números por extenso.')
print('Digite um número entre 0 e 20')
numeros = ('Zero', 'Um', 'Dois', 'Três', 'Quatro', 'Cinco', 'Seis', 'Sete', 'Oito', 'Nove', 'Dez',
'Onze', 'Doze', 'Treze', 'Quatorze', 'Quinze', 'Dezesseis', 'Dezessete', 'Dezoito', 'Dezenove', 'Vinte')
opcao = 's'
while True:
while True:
n = int(input('Digite um número: '))
if n >= 0 and n <= 20:
break
print('Escrito por extenso fica: ')
print(numeros[n])
while True:
opcao = str(input('Deseja continuar? [S/N] ')).strip().lower()
if opcao in 'SsNn':
break
if opcao in 'n':
break |
def format_bytes(n):
"""Format bytes as text
Copied from dask to avoid dependency.
"""
if n > 1e15:
return "%0.2f PB" % (n / 1e15)
if n > 1e12:
return "%0.2f TB" % (n / 1e12)
if n > 1e9:
return "%0.2f GB" % (n / 1e9)
if n > 1e6:
return "%0.2f MB" % (n / 1e6)
if n > 1e3:
return "%0.2f kB" % (n / 1000)
return "%d B" % n
|
def canConstruct(target, word_bank):
tab = [False for _ in range(len(target)+1)]
# seed
tab[0] = True # creating an empty string is always possible
for i in range(len(target)+1):
if tab[i] is True:
for word in word_bank:
# If the word matches the characters starting at position i
if target[i:].startswith(word):
tab[i+len(word)] = True
return tab[-1]
print(canConstruct("abcdef", ["ab","abc","cd","def","abcd"]))
print(canConstruct("skateboard", ["bo","rd","ate","t","ska","sk","boar"]))
print(canConstruct("enterapotentpot",["a","p","ent","enter","ot","o","t"]))
print(canConstruct("eeeeeeeeeeeeeeeeeeeeeeeeeef",[
"e",
"ee",
"eee",
"eeee",
"eeeee",
"eeeeee"]))
|
#The urllib module has a function called urljoin which might be able to improve how I put together these urls.
DefaultBaseUrl = "https://api.idfy.io"
DefaultOAuthBaseUrl = DefaultBaseUrl #Could this lead to problems where the DefaultOAuthBaseUrl resets unexpectedly?
TestBaseUrl = "http://localhost:5000" #testing only
OAuthTokens = "/oauth/connect/token" #Uses OAuthBaseUrl as prefix
Signature = "/signature"
SignatureDocuments = Signature + "/documents"
Notification = "/notification"
Identification = "/identification"
IdentificationSession = Identification + "/session"
IdentificationSessionStatus = IdentificationSession + "/status"
InvalidateSession = IdentificationSession + "/invalidate"
CreateBankIdMobileSession = Identification + "/no/bankid/mobile"
Log = Identification + "/log"
RetrieveLogEntry = Log + "/requestId"
ListLogEntries = Log + "/filter"
Merchant = "/merchant"
MerchantSignature = Merchant + "/signature"
Jwt = "/jwt"
Validation = "/validation"
ValidationBankid = Validation + "/no/bankid"
Admin = "/admin"
Account = Admin + "/account"
Dealer = Admin + "/dealer"
Oauth = Admin + "/oauthclient"
Openid = Admin + "/openid"
Template = Admin + "/template"
TemplateDefaults = Template + "/defaults"
Preview = Template + "/preview"
|
# APIs for Windows 32-bit user32 library.
# Format: retval, rettype, callconv, exactname, arglist(type, name)
# arglist type is one of ['int', 'void *']
# arglist name is one of [None, 'funcptr', 'obj', 'ptr']
api_defs = {
'user32.main_entry':( 'int', None, 'stdcall', 'user32.main_entry', (('int', None), ('int', None), ('int', None)) ),
'user32.activatekeyboardlayout':( 'int', None, 'stdcall', 'user32.ActivateKeyboardLayout', (('int', None), ('int', None)) ),
'user32.adjustwindowrect':( 'int', None, 'stdcall', 'user32.AdjustWindowRect', (('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.adjustwindowrectex':( 'int', None, 'stdcall', 'user32.AdjustWindowRectEx', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.alignrects':( 'int', None, 'stdcall', 'user32.AlignRects', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.allowforegroundactivation':( 'int', None, 'cdecl', 'user32.AllowForegroundActivation', () ),
'user32.allowsetforegroundwindow':( 'int', None, 'stdcall', 'user32.AllowSetForegroundWindow', (('int', None),) ),
'user32.animatewindow':( 'int', None, 'stdcall', 'user32.AnimateWindow', ( ('int', None), ('int', None)) ),
'user32.anypopup':( 'int', None, 'cdecl', 'user32.AnyPopup', () ),
'user32.appendmenua':( 'int', None, 'stdcall', 'user32.AppendMenuA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.appendmenuw':( 'int', None, 'stdcall', 'user32.AppendMenuW', ( ('int', None), ('int', None), ('int', None)) ),
'user32.arrangeiconicwindows':( 'int', None, 'stdcall', 'user32.ArrangeIconicWindows', (('int', None),) ),
'user32.attachthreadinput':( 'int', None, 'stdcall', 'user32.AttachThreadInput', (('int', None), ('int', None), ('int', None)) ),
'user32.begindeferwindowpos':( 'int', None, 'stdcall', 'user32.BeginDeferWindowPos', (('int', None),) ),
'user32.beginpaint':( 'int', None, 'stdcall', 'user32.BeginPaint', (('int', None), ('void *', 'ptr')) ),
'user32.blockinput':( 'int', None, 'stdcall', 'user32.BlockInput', (('int', None),) ),
'user32.bringwindowtotop':( 'int', None, 'stdcall', 'user32.BringWindowToTop', (('int', None),) ),
'user32.broadcastsystemmessage':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessage', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.broadcastsystemmessagea':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.broadcastsystemmessageexa':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.broadcastsystemmessageexw':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.broadcastsystemmessagew':( 'int', None, 'stdcall', 'user32.BroadcastSystemMessageW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.buildreasonarray':( 'int', None, 'stdcall', 'user32.BuildReasonArray', (('int', None), ('int', None), ('int', None)) ),
'user32.calcmenubar':( 'int', None, 'stdcall', 'user32.CalcMenuBar', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.callmsgfilter':( 'int', None, 'stdcall', 'user32.CallMsgFilter', (('int', None), ('int', None)) ),
'user32.callmsgfiltera':( 'int', None, 'stdcall', 'user32.CallMsgFilterA', (('int', None), ('int', None)) ),
'user32.callmsgfilterw':( 'int', None, 'stdcall', 'user32.CallMsgFilterW', (('void *', 'ptr'), ('int', None)) ),
'user32.callnexthookex':( 'int', None, 'stdcall', 'user32.CallNextHookEx', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.callwindowproca':( 'int', None, 'stdcall', 'user32.CallWindowProcA', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.callwindowprocw':( 'int', None, 'stdcall', 'user32.CallWindowProcW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.cascadechildwindows':( 'int', None, 'stdcall', 'user32.CascadeChildWindows', ( ('int', None),) ),
'user32.cascadewindows':( 'int', None, 'stdcall', 'user32.CascadeWindows', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.changeclipboardchain':( 'int', None, 'stdcall', 'user32.ChangeClipboardChain', (('int', None), ('int', None)) ),
'user32.changedisplaysettingsa':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsA', (('int', None), ('int', None)) ),
'user32.changedisplaysettingsexa':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.changedisplaysettingsexw':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.changedisplaysettingsw':( 'int', None, 'stdcall', 'user32.ChangeDisplaySettingsW', (('int', None), ('int', None)) ),
'user32.changemenua':( 'int', None, 'stdcall', 'user32.ChangeMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.changemenuw':( 'int', None, 'stdcall', 'user32.ChangeMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.charlowera':( 'int', None, 'stdcall', 'user32.CharLowerA', (('int', None),) ),
'user32.charlowerbuffa':( 'int', None, 'stdcall', 'user32.CharLowerBuffA', (('int', None), ('int', None)) ),
'user32.charlowerbuffw':( 'int', None, 'stdcall', 'user32.CharLowerBuffW', (('void *', 'ptr'), ('int', None)) ),
'user32.charlowerw':( 'int', None, 'stdcall', 'user32.CharLowerW', (('void *', 'ptr'),) ),
'user32.charnexta':( 'int', None, 'stdcall', 'user32.CharNextA', (('int', None),) ),
'user32.charnextexa':( 'int', None, 'stdcall', 'user32.CharNextExA', (('int', None), ('int', None), ('int', None)) ),
'user32.charnextw':( 'int', None, 'stdcall', 'user32.CharNextW', (('int', None),) ),
'user32.charpreva':( 'int', None, 'stdcall', 'user32.CharPrevA', (('int', None), ('int', None)) ),
'user32.charprevexa':( 'int', None, 'stdcall', 'user32.CharPrevExA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.charprevw':( 'int', None, 'stdcall', 'user32.CharPrevW', (('int', None), ('int', None)) ),
'user32.chartooema':( 'int', None, 'stdcall', 'user32.CharToOemA', (('int', None), ('int', None)) ),
'user32.chartooembuffa':( 'int', None, 'stdcall', 'user32.CharToOemBuffA', (('int', None), ('int', None), ('int', None)) ),
'user32.chartooembuffw':( 'int', None, 'stdcall', 'user32.CharToOemBuffW', (('int', None), ('int', None), ('int', None)) ),
'user32.chartooemw':( 'int', None, 'stdcall', 'user32.CharToOemW', (('int', None), ('int', None)) ),
'user32.charuppera':( 'int', None, 'stdcall', 'user32.CharUpperA', (('int', None),) ),
'user32.charupperbuffa':( 'int', None, 'stdcall', 'user32.CharUpperBuffA', (('int', None), ('int', None)) ),
'user32.charupperbuffw':( 'int', None, 'stdcall', 'user32.CharUpperBuffW', (('void *', 'ptr'), ('int', None)) ),
'user32.charupperw':( 'int', None, 'stdcall', 'user32.CharUpperW', (('void *', 'ptr'),) ),
'user32.checkdlgbutton':( 'int', None, 'stdcall', 'user32.CheckDlgButton', ( ('int', None), ('int', None)) ),
'user32.checkmenuitem':( 'int', None, 'stdcall', 'user32.CheckMenuItem', ( ('int', None), ('int', None)) ),
'user32.checkmenuradioitem':( 'int', None, 'stdcall', 'user32.CheckMenuRadioItem', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.checkradiobutton':( 'int', None, 'stdcall', 'user32.CheckRadioButton', ( ('int', None), ('int', None), ('int', None)) ),
'user32.childwindowfrompoint':( 'int', None, 'stdcall', 'user32.ChildWindowFromPoint', ( ('int', None), ('int', None)) ),
'user32.childwindowfrompointex':( 'int', None, 'stdcall', 'user32.ChildWindowFromPointEx', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.cliimmsethotkey':( 'int', None, 'stdcall', 'user32.CliImmSetHotKey', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.clientthreadsetup':( 'int', None, 'cdecl', 'user32.ClientThreadSetup', () ),
'user32.clienttoscreen':( 'int', None, 'stdcall', 'user32.ClientToScreen', ( ('void *', 'ptr'),) ),
'user32.clipcursor':( 'int', None, 'stdcall', 'user32.ClipCursor', (('int', None),) ),
'user32.closeclipboard':( 'int', None, 'cdecl', 'user32.CloseClipboard', () ),
'user32.closedesktop':( 'int', None, 'stdcall', 'user32.CloseDesktop', (('int', None),) ),
'user32.closewindow':( 'int', None, 'stdcall', 'user32.CloseWindow', () ),
'user32.closewindowstation':( 'int', None, 'stdcall', 'user32.CloseWindowStation', (('int', None),) ),
'user32.copyacceleratortablea':( 'int', None, 'stdcall', 'user32.CopyAcceleratorTableA', (('int', None), ('int', None), ('int', None)) ),
'user32.copyacceleratortablew':( 'int', None, 'stdcall', 'user32.CopyAcceleratorTableW', (('int', None), ('int', None), ('int', None)) ),
'user32.copyicon':( 'int', None, 'stdcall', 'user32.CopyIcon', (('int', None),) ),
'user32.copyimage':( 'int', None, 'stdcall', 'user32.CopyImage', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.copyrect':( 'int', None, 'stdcall', 'user32.CopyRect', (('int', None), ('int', None)) ),
'user32.countclipboardformats':( 'int', None, 'cdecl', 'user32.CountClipboardFormats', () ),
'user32.createacceleratortablea':( 'int', None, 'stdcall', 'user32.CreateAcceleratorTableA', (('int', None), ('int', None)) ),
'user32.createacceleratortablew':( 'int', None, 'stdcall', 'user32.CreateAcceleratorTableW', (('int', None), ('int', None)) ),
'user32.createcaret':( 'int', None, 'stdcall', 'user32.CreateCaret', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createcursor':( 'int', None, 'stdcall', 'user32.CreateCursor', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createdesktopa':( 'int', None, 'stdcall', 'user32.CreateDesktopA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createdesktopw':( 'int', None, 'stdcall', 'user32.CreateDesktopW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createdialogindirectparama':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.createdialogindirectparamaorw':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamAorW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.createdialogindirectparamw':( 'int', None, 'stdcall', 'user32.CreateDialogIndirectParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.createdialogparama':( 'int', None, 'stdcall', 'user32.CreateDialogParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.createdialogparamw':( 'int', None, 'stdcall', 'user32.CreateDialogParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.createicon':( 'int', None, 'stdcall', 'user32.CreateIcon', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createiconfromresource':( 'int', None, 'stdcall', 'user32.CreateIconFromResource', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createiconfromresourceex':( 'int', None, 'stdcall', 'user32.CreateIconFromResourceEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createiconindirect':( 'int', None, 'stdcall', 'user32.CreateIconIndirect', (('void *', 'ptr'),) ),
'user32.createmdiwindowa':( 'int', None, 'stdcall', 'user32.CreateMDIWindowA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None)) ),
'user32.createmdiwindoww':( 'int', None, 'stdcall', 'user32.CreateMDIWindowW', (('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None)) ),
'user32.createmenu':( 'int', None, 'cdecl', 'user32.CreateMenu', () ),
'user32.createpopupmenu':( 'int', None, 'cdecl', 'user32.CreatePopupMenu', () ),
'user32.createsystemthreads':( 'int', None, 'stdcall', 'user32.CreateSystemThreads', (('int', None), ('int', None)) ),
'user32.createwindowexa':( 'int', None, 'stdcall', 'user32.CreateWindowExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.createwindowexw':( 'int', None, 'stdcall', 'user32.CreateWindowExW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.createwindowstationa':( 'int', None, 'stdcall', 'user32.CreateWindowStationA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.createwindowstationw':( 'int', None, 'stdcall', 'user32.CreateWindowStationW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.csrbroadcastsystemmessageexw':( 'int', None, 'stdcall', 'user32.CsrBroadcastSystemMessageExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ctxinituser32':( 'int', None, 'cdecl', 'user32.CtxInitUser32', () ),
'user32.ddeabandontransaction':( 'int', None, 'stdcall', 'user32.DdeAbandonTransaction', (('int', None), ('int', None), ('int', None)) ),
'user32.ddeaccessdata':( 'int', None, 'stdcall', 'user32.DdeAccessData', (('int', None), ('int', None)) ),
'user32.ddeadddata':( 'int', None, 'stdcall', 'user32.DdeAddData', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddeclienttransaction':( 'int', None, 'stdcall', 'user32.DdeClientTransaction', (('int', None), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddecmpstringhandles':( 'int', None, 'stdcall', 'user32.DdeCmpStringHandles', (('int', None), ('int', None)) ),
'user32.ddeconnect':( 'int', None, 'stdcall', 'user32.DdeConnect', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.ddeconnectlist':( 'int', None, 'stdcall', 'user32.DdeConnectList', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.ddecreatedatahandle':( 'int', None, 'stdcall', 'user32.DdeCreateDataHandle', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddecreatestringhandlea':( 'int', None, 'stdcall', 'user32.DdeCreateStringHandleA', (('int', None), ('int', None), ('int', None)) ),
'user32.ddecreatestringhandlew':( 'int', None, 'stdcall', 'user32.DdeCreateStringHandleW', (('int', None), ('int', None), ('int', None)) ),
'user32.ddedisconnect':( 'int', None, 'stdcall', 'user32.DdeDisconnect', (('int', None),) ),
'user32.ddedisconnectlist':( 'int', None, 'stdcall', 'user32.DdeDisconnectList', (('int', None),) ),
'user32.ddeenablecallback':( 'int', None, 'stdcall', 'user32.DdeEnableCallback', (('int', None), ('int', None), ('void *', 'obj')) ),
'user32.ddefreedatahandle':( 'int', None, 'stdcall', 'user32.DdeFreeDataHandle', (('int', None),) ),
'user32.ddefreestringhandle':( 'int', None, 'stdcall', 'user32.DdeFreeStringHandle', (('int', None), ('int', None)) ),
'user32.ddegetdata':( 'int', None, 'stdcall', 'user32.DdeGetData', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddegetlasterror':( 'int', None, 'stdcall', 'user32.DdeGetLastError', (('int', None),) ),
'user32.ddegetqualityofservice':( 'int', None, 'stdcall', 'user32.DdeGetQualityOfService', (('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.ddeimpersonateclient':( 'int', None, 'stdcall', 'user32.DdeImpersonateClient', (('int', None),) ),
'user32.ddeinitializea':( 'int', None, 'stdcall', 'user32.DdeInitializeA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddeinitializew':( 'int', None, 'stdcall', 'user32.DdeInitializeW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddekeepstringhandle':( 'int', None, 'stdcall', 'user32.DdeKeepStringHandle', (('int', None), ('int', None)) ),
'user32.ddenameservice':( 'int', None, 'stdcall', 'user32.DdeNameService', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddepostadvise':( 'int', None, 'stdcall', 'user32.DdePostAdvise', (('int', None), ('int', None), ('int', None)) ),
'user32.ddequeryconvinfo':( 'int', None, 'stdcall', 'user32.DdeQueryConvInfo', (('int', None), ('int', None), ('int', None)) ),
'user32.ddequerynextserver':( 'int', None, 'stdcall', 'user32.DdeQueryNextServer', (('int', None), ('int', None)) ),
'user32.ddequerystringa':( 'int', None, 'stdcall', 'user32.DdeQueryStringA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddequerystringw':( 'int', None, 'stdcall', 'user32.DdeQueryStringW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.ddereconnect':( 'int', None, 'stdcall', 'user32.DdeReconnect', (('int', None),) ),
'user32.ddesetqualityofservice':( 'int', None, 'stdcall', 'user32.DdeSetQualityOfService', (('int', None), ('int', None), ('int', None)) ),
'user32.ddesetuserhandle':( 'int', None, 'stdcall', 'user32.DdeSetUserHandle', (('int', None), ('int', None), ('int', None)) ),
'user32.ddeunaccessdata':( 'int', None, 'stdcall', 'user32.DdeUnaccessData', (('int', None),) ),
'user32.ddeuninitialize':( 'int', None, 'stdcall', 'user32.DdeUninitialize', (('int', None),) ),
'user32.defdlgproca':( 'int', None, 'stdcall', 'user32.DefDlgProcA', ( ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ),
'user32.defdlgprocw':( 'int', None, 'stdcall', 'user32.DefDlgProcW', ( ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ),
'user32.defframeproca':( 'int', None, 'stdcall', 'user32.DefFrameProcA', ( ('void *', 'obj'), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defframeprocw':( 'int', None, 'stdcall', 'user32.DefFrameProcW', ( ('void *', 'obj'), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defmdichildproca':( 'int', None, 'stdcall', 'user32.DefMDIChildProcA', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defmdichildprocw':( 'int', None, 'stdcall', 'user32.DefMDIChildProcW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defrawinputproc':( 'int', None, 'stdcall', 'user32.DefRawInputProc', (('int', None), ('int', None), ('int', None)) ),
'user32.defwindowproca':( 'int', None, 'stdcall', 'user32.DefWindowProcA', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.defwindowprocw':( 'int', None, 'stdcall', 'user32.DefWindowProcW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.deferwindowpos':( 'int', None, 'stdcall', 'user32.DeferWindowPos', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.deletemenu':( 'int', None, 'stdcall', 'user32.DeleteMenu', (('int', None), ('int', None), ('int', None)) ),
'user32.deregistershellhookwindow':( 'int', None, 'stdcall', 'user32.DeregisterShellHookWindow', (('int', None),) ),
'user32.destroyacceleratortable':( 'int', None, 'stdcall', 'user32.DestroyAcceleratorTable', (('int', None),) ),
'user32.destroycaret':( 'int', None, 'cdecl', 'user32.DestroyCaret', () ),
'user32.destroycursor':( 'int', None, 'stdcall', 'user32.DestroyCursor', (('int', None),) ),
'user32.destroyicon':( 'int', None, 'stdcall', 'user32.DestroyIcon', (('int', None),) ),
'user32.destroymenu':( 'int', None, 'stdcall', 'user32.DestroyMenu', (('int', None),) ),
'user32.destroyreasons':( 'int', None, 'stdcall', 'user32.DestroyReasons', (('int', None),) ),
'user32.destroywindow':( 'int', None, 'stdcall', 'user32.DestroyWindow', (('int', None),) ),
'user32.deviceeventworker':( 'int', None, 'stdcall', 'user32.DeviceEventWorker', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.dialogboxindirectparama':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.dialogboxindirectparamaorw':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamAorW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.dialogboxindirectparamw':( 'int', None, 'stdcall', 'user32.DialogBoxIndirectParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.dialogboxparama':( 'int', None, 'stdcall', 'user32.DialogBoxParamA', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.dialogboxparamw':( 'int', None, 'stdcall', 'user32.DialogBoxParamW', (('FileNameW', None), ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.disableprocesswindowsghosting':( 'int', None, 'cdecl', 'user32.DisableProcessWindowsGhosting', () ),
'user32.dispatchmessagea':( 'int', None, 'stdcall', 'user32.DispatchMessageA', (('int', None),) ),
'user32.dispatchmessagew':( 'int', None, 'stdcall', 'user32.DispatchMessageW', (('void *', 'ptr'),) ),
'user32.displayexitwindowswarnings':( 'int', None, 'stdcall', 'user32.DisplayExitWindowsWarnings', (('int', None),) ),
'user32.dlgdirlista':( 'int', None, 'stdcall', 'user32.DlgDirListA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirlistcomboboxa':( 'int', None, 'stdcall', 'user32.DlgDirListComboBoxA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirlistcomboboxw':( 'int', None, 'stdcall', 'user32.DlgDirListComboBoxW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirlistw':( 'int', None, 'stdcall', 'user32.DlgDirListW', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirselectcomboboxexa':( 'int', None, 'stdcall', 'user32.DlgDirSelectComboBoxExA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirselectcomboboxexw':( 'int', None, 'stdcall', 'user32.DlgDirSelectComboBoxExW', ( ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.dlgdirselectexa':( 'int', None, 'stdcall', 'user32.DlgDirSelectExA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.dlgdirselectexw':( 'int', None, 'stdcall', 'user32.DlgDirSelectExW', ( ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.dragdetect':( 'int', None, 'stdcall', 'user32.DragDetect', (('int', None), ('int', None), ('int', None)) ),
'user32.dragobject':( 'int', None, 'stdcall', 'user32.DragObject', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawanimatedrects':( 'int', None, 'stdcall', 'user32.DrawAnimatedRects', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawcaption':( 'int', None, 'stdcall', 'user32.DrawCaption', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawcaptiontempa':( 'int', None, 'stdcall', 'user32.DrawCaptionTempA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.drawcaptiontempw':( 'int', None, 'stdcall', 'user32.DrawCaptionTempW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawedge':( 'int', None, 'stdcall', 'user32.DrawEdge', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.drawfocusrect':( 'int', None, 'stdcall', 'user32.DrawFocusRect', (('int', None), ('void *', 'ptr')) ),
'user32.drawframe':( 'int', None, 'stdcall', 'user32.DrawFrame', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.drawframecontrol':( 'int', None, 'stdcall', 'user32.DrawFrameControl', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.drawicon':( 'int', None, 'stdcall', 'user32.DrawIcon', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawiconex':( 'int', None, 'stdcall', 'user32.DrawIconEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawmenubar':( 'int', None, 'stdcall', 'user32.DrawMenuBar', (('int', None),) ),
'user32.drawmenubartemp':( 'int', None, 'stdcall', 'user32.DrawMenuBarTemp', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawstatea':( 'int', None, 'stdcall', 'user32.DrawStateA', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawstatew':( 'int', None, 'stdcall', 'user32.DrawStateW', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawtexta':( 'int', None, 'stdcall', 'user32.DrawTextA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.drawtextexa':( 'int', None, 'stdcall', 'user32.DrawTextExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.drawtextexw':( 'int', None, 'stdcall', 'user32.DrawTextExW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr')) ),
'user32.drawtextw':( 'int', None, 'stdcall', 'user32.DrawTextW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.editwndproc':( 'int', None, 'stdcall', 'user32.EditWndProc', (('int', None), ('void *', 'obj'), ('void *', 'obj'), ('void *', 'obj')) ),
'user32.emptyclipboard':( 'int', None, 'cdecl', 'user32.EmptyClipboard', () ),
'user32.enablemenuitem':( 'int', None, 'stdcall', 'user32.EnableMenuItem', ( ('int', None), ('int', None)) ),
'user32.enablescrollbar':( 'int', None, 'stdcall', 'user32.EnableScrollBar', (('int', None), ('int', None), ('int', None)) ),
'user32.enablewindow':( 'int', None, 'stdcall', 'user32.EnableWindow', (('int', None), ('int', None)) ),
'user32.enddeferwindowpos':( 'int', None, 'stdcall', 'user32.EndDeferWindowPos', (('int', None),) ),
'user32.enddialog':( 'int', None, 'stdcall', 'user32.EndDialog', ( ('int', None),) ),
'user32.endmenu':( 'int', None, 'cdecl', 'user32.EndMenu', () ),
'user32.endpaint':( 'int', None, 'stdcall', 'user32.EndPaint', (('int', None), ('void *', 'ptr')) ),
'user32.endtask':( 'int', None, 'stdcall', 'user32.EndTask', (('int', None), ('int', None), ('int', None)) ),
'user32.enterreadermodehelper':( 'int', None, 'stdcall', 'user32.EnterReaderModeHelper', () ),
'user32.enumchildwindows':( 'int', None, 'stdcall', 'user32.EnumChildWindows', (('int', None), ('void *', 'funcptr'), ('void *', 'ptr')) ),
'user32.enumclipboardformats':( 'int', None, 'stdcall', 'user32.EnumClipboardFormats', (('int', None),) ),
'user32.enumdesktopwindows':( 'int', None, 'stdcall', 'user32.EnumDesktopWindows', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumdesktopsa':( 'int', None, 'stdcall', 'user32.EnumDesktopsA', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumdesktopsw':( 'int', None, 'stdcall', 'user32.EnumDesktopsW', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumdisplaydevicesa':( 'int', None, 'stdcall', 'user32.EnumDisplayDevicesA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaydevicesw':( 'int', None, 'stdcall', 'user32.EnumDisplayDevicesW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaymonitors':( 'int', None, 'stdcall', 'user32.EnumDisplayMonitors', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.enumdisplaysettingsa':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsA', (('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaysettingsexa':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsExA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaysettingsexw':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsExW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.enumdisplaysettingsw':( 'int', None, 'stdcall', 'user32.EnumDisplaySettingsW', (('int', None), ('int', None), ('int', None)) ),
'user32.enumpropsa':( 'int', None, 'stdcall', 'user32.EnumPropsA', (('int', None), ('void *', 'funcptr')) ),
'user32.enumpropsexa':( 'int', None, 'stdcall', 'user32.EnumPropsExA', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumpropsexw':( 'int', None, 'stdcall', 'user32.EnumPropsExW', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumpropsw':( 'int', None, 'stdcall', 'user32.EnumPropsW', (('int', None), ('void *', 'funcptr')) ),
'user32.enumthreadwindows':( 'int', None, 'stdcall', 'user32.EnumThreadWindows', (('int', None), ('void *', 'funcptr'), ('int', None)) ),
'user32.enumwindowstationsa':( 'int', None, 'stdcall', 'user32.EnumWindowStationsA', (('void *', 'funcptr'), ('int', None)) ),
'user32.enumwindowstationsw':( 'int', None, 'stdcall', 'user32.EnumWindowStationsW', (('void *', 'funcptr'), ('int', None)) ),
'user32.enumwindows':( 'int', None, 'stdcall', 'user32.EnumWindows', (('void *', 'funcptr'), ('void *', 'ptr')) ),
'user32.equalrect':( 'int', None, 'stdcall', 'user32.EqualRect', (('int', None), ('int', None)) ),
'user32.excludeupdatergn':( 'int', None, 'stdcall', 'user32.ExcludeUpdateRgn', (('int', None), ('int', None)) ),
'user32.exitwindowsex':( 'int', None, 'stdcall', 'user32.ExitWindowsEx', ( ('int', None), ('int', None)) ),
'user32.fillrect':( 'int', None, 'stdcall', 'user32.FillRect', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.findwindowa':( 'int', None, 'stdcall', 'user32.FindWindowA', (('int', None), ('int', None)) ),
'user32.findwindowexa':( 'int', None, 'stdcall', 'user32.FindWindowExA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.findwindowexw':( 'int', None, 'stdcall', 'user32.FindWindowExW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.findwindoww':( 'int', None, 'stdcall', 'user32.FindWindowW', (('int', None), ('int', None)) ),
'user32.flashwindow':( 'int', None, 'stdcall', 'user32.FlashWindow', (('int', None), ('int', None)) ),
'user32.flashwindowex':( 'int', None, 'stdcall', 'user32.FlashWindowEx', (('void *', 'ptr'),) ),
'user32.framerect':( 'int', None, 'stdcall', 'user32.FrameRect', (('int', None), ('int', None), ('int', None)) ),
'user32.freeddelparam':( 'int', None, 'stdcall', 'user32.FreeDDElParam', (('int', None), ('void *', 'ptr')) ),
'user32.getactivewindow':( 'int', None, 'cdecl', 'user32.GetActiveWindow', () ),
'user32.getalttabinfo':( 'int', None, 'stdcall', 'user32.GetAltTabInfo', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getalttabinfoa':( 'int', None, 'stdcall', 'user32.GetAltTabInfoA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getalttabinfow':( 'int', None, 'stdcall', 'user32.GetAltTabInfoW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getancestor':( 'int', None, 'stdcall', 'user32.GetAncestor', (('int', None), ('int', None)) ),
'user32.getappcompatflags':( 'int', None, 'stdcall', 'user32.GetAppCompatFlags', (('int', None),) ),
'user32.getappcompatflags2':( 'int', None, 'stdcall', 'user32.GetAppCompatFlags2', (('int', None),) ),
'user32.getasynckeystate':( 'int', None, 'stdcall', 'user32.GetAsyncKeyState', (('int', None),) ),
'user32.getcapture':( 'int', None, 'cdecl', 'user32.GetCapture', () ),
'user32.getcaretblinktime':( 'int', None, 'cdecl', 'user32.GetCaretBlinkTime', () ),
'user32.getcaretpos':( 'int', None, 'stdcall', 'user32.GetCaretPos', (('void *', 'ptr'),) ),
'user32.getclassinfoa':( 'int', None, 'stdcall', 'user32.GetClassInfoA', (('int', None), ('int', None), ('int', None)) ),
'user32.getclassinfoexa':( 'int', None, 'stdcall', 'user32.GetClassInfoExA', (('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.getclassinfoexw':( 'int', None, 'stdcall', 'user32.GetClassInfoExW', (('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.getclassinfow':( 'int', None, 'stdcall', 'user32.GetClassInfoW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.getclasslonga':( 'int', None, 'stdcall', 'user32.GetClassLongA', ( ('int', None),) ),
'user32.getclasslongw':( 'int', None, 'stdcall', 'user32.GetClassLongW', ( ('int', None),) ),
'user32.getclassnamea':( 'int', None, 'stdcall', 'user32.GetClassNameA', ( ('int', None), ('int', None)) ),
'user32.getclassnamew':( 'int', None, 'stdcall', 'user32.GetClassNameW', (('int', None), ('int', None), ('int', None)) ),
'user32.getclassword':( 'int', None, 'stdcall', 'user32.GetClassWord', ( ('int', None),) ),
'user32.getclientrect':( 'int', None, 'stdcall', 'user32.GetClientRect', ( ('void *', 'ptr'),) ),
'user32.getclipcursor':( 'int', None, 'stdcall', 'user32.GetClipCursor', (('int', None),) ),
'user32.getclipboarddata':( 'int', None, 'stdcall', 'user32.GetClipboardData', ( ('int', None),) ),
'user32.getclipboardformatnamea':( 'int', None, 'stdcall', 'user32.GetClipboardFormatNameA', (('int', None), ('int', None), ('int', None)) ),
'user32.getclipboardformatnamew':( 'int', None, 'stdcall', 'user32.GetClipboardFormatNameW', (('int', None), ('int', None), ('int', None)) ),
'user32.getclipboardowner':( 'int', None, 'cdecl', 'user32.GetClipboardOwner', () ),
'user32.getclipboardsequencenumber':( 'int', None, 'cdecl', 'user32.GetClipboardSequenceNumber', () ),
'user32.getclipboardviewer':( 'int', None, 'cdecl', 'user32.GetClipboardViewer', () ),
'user32.getcomboboxinfo':( 'int', None, 'stdcall', 'user32.GetComboBoxInfo', (('int', None), ('int', None)) ),
'user32.getcursor':( 'int', None, 'cdecl', 'user32.GetCursor', () ),
'user32.getcursorframeinfo':( 'int', None, 'stdcall', 'user32.GetCursorFrameInfo', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.getcursorinfo':( 'int', None, 'stdcall', 'user32.GetCursorInfo', (('int', None),) ),
'user32.getcursorpos':( 'int', None, 'stdcall', 'user32.GetCursorPos', (('void *', 'ptr'),) ),
'user32.getdc':( 'int', None, 'stdcall', 'user32.GetDC', (('int', None),) ),
'user32.getdcex':( 'int', None, 'stdcall', 'user32.GetDCEx', (('int', None), ('int', None), ('int', None)) ),
'user32.getdesktopwindow':( 'int', None, 'cdecl', 'user32.GetDesktopWindow', () ),
'user32.getdialogbaseunits':( 'int', None, 'cdecl', 'user32.GetDialogBaseUnits', () ),
'user32.getdlgctrlid':( 'int', None, 'stdcall', 'user32.GetDlgCtrlID', () ),
'user32.getdlgitem':( 'int', None, 'stdcall', 'user32.GetDlgItem', ( ('int', None),) ),
'user32.getdlgitemint':( 'int', None, 'stdcall', 'user32.GetDlgItemInt', ( ('int', None), ('int', None), ('int', None)) ),
'user32.getdlgitemtexta':( 'int', None, 'stdcall', 'user32.GetDlgItemTextA', ( ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.getdlgitemtextw':( 'int', None, 'stdcall', 'user32.GetDlgItemTextW', ( ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.getdoubleclicktime':( 'int', None, 'cdecl', 'user32.GetDoubleClickTime', () ),
'user32.getfocus':( 'int', None, 'cdecl', 'user32.GetFocus', () ),
'user32.getforegroundwindow':( 'int', None, 'cdecl', 'user32.GetForegroundWindow', () ),
'user32.getguithreadinfo':( 'int', None, 'stdcall', 'user32.GetGUIThreadInfo', (('int', None), ('int', None)) ),
'user32.getguiresources':( 'int', None, 'stdcall', 'user32.GetGuiResources', (('int', None), ('int', None)) ),
'user32.geticoninfo':( 'int', None, 'stdcall', 'user32.GetIconInfo', (('int', None), ('void *', 'ptr')) ),
'user32.getinputdesktop':( 'int', None, 'cdecl', 'user32.GetInputDesktop', () ),
'user32.getinputstate':( 'int', None, 'cdecl', 'user32.GetInputState', () ),
'user32.getinternalwindowpos':( 'int', None, 'stdcall', 'user32.GetInternalWindowPos', (('int', None), ('int', None), ('int', None)) ),
'user32.getkbcodepage':( 'int', None, 'stdcall', 'user32.GetKBCodePage', () ),
'user32.getkeynametexta':( 'int', None, 'stdcall', 'user32.GetKeyNameTextA', (('int', None), ('int', None), ('int', None)) ),
'user32.getkeynametextw':( 'int', None, 'stdcall', 'user32.GetKeyNameTextW', (('int', None), ('int', None), ('int', None)) ),
'user32.getkeystate':( 'int', None, 'stdcall', 'user32.GetKeyState', (('int', None),) ),
'user32.getkeyboardlayout':( 'int', None, 'stdcall', 'user32.GetKeyboardLayout', (('int', None),) ),
'user32.getkeyboardlayoutlist':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutList', (('int', None), ('int', None)) ),
'user32.getkeyboardlayoutnamea':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutNameA', (('int', None),) ),
'user32.getkeyboardlayoutnamew':( 'int', None, 'stdcall', 'user32.GetKeyboardLayoutNameW', (('int', None),) ),
'user32.getkeyboardstate':( 'int', None, 'stdcall', 'user32.GetKeyboardState', (('int', None),) ),
'user32.getkeyboardtype':( 'int', None, 'stdcall', 'user32.GetKeyboardType', (('int', None),) ),
'user32.getlastactivepopup':( 'int', None, 'stdcall', 'user32.GetLastActivePopup', () ),
'user32.getlastinputinfo':( 'int', None, 'stdcall', 'user32.GetLastInputInfo', (('int', None),) ),
'user32.getlayeredwindowattributes':( 'int', None, 'stdcall', 'user32.GetLayeredWindowAttributes', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getlistboxinfo':( 'int', None, 'stdcall', 'user32.GetListBoxInfo', (('int', None),) ),
'user32.getmenu':( 'int', None, 'stdcall', 'user32.GetMenu', () ),
'user32.getmenubarinfo':( 'int', None, 'stdcall', 'user32.GetMenuBarInfo', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getmenucheckmarkdimensions':( 'int', None, 'cdecl', 'user32.GetMenuCheckMarkDimensions', () ),
'user32.getmenucontexthelpid':( 'int', None, 'stdcall', 'user32.GetMenuContextHelpId', () ),
'user32.getmenudefaultitem':( 'int', None, 'stdcall', 'user32.GetMenuDefaultItem', ( ('int', None), ('int', None)) ),
'user32.getmenuinfo':( 'int', None, 'stdcall', 'user32.GetMenuInfo', ( ('int', None),) ),
'user32.getmenuitemcount':( 'int', None, 'stdcall', 'user32.GetMenuItemCount', () ),
'user32.getmenuitemid':( 'int', None, 'stdcall', 'user32.GetMenuItemID', ( ('int', None),) ),
'user32.getmenuiteminfoa':( 'int', None, 'stdcall', 'user32.GetMenuItemInfoA', ( ('void *', 'obj'), ('int', None), ('int', None), ('int', None)) ),
'user32.getmenuiteminfow':( 'int', None, 'stdcall', 'user32.GetMenuItemInfoW', ( ('int', None), ('int', None), ('int', None)) ),
'user32.getmenuitemrect':( 'int', None, 'stdcall', 'user32.GetMenuItemRect', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getmenustate':( 'int', None, 'stdcall', 'user32.GetMenuState', ( ('int', None), ('int', None)) ),
'user32.getmenustringa':( 'int', None, 'stdcall', 'user32.GetMenuStringA', ( ('int', None), ('int', None), ('void *', 'obj'), ('int', None)) ),
'user32.getmenustringw':( 'int', None, 'stdcall', 'user32.GetMenuStringW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getmessagea':( 'int', None, 'stdcall', 'user32.GetMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getmessageextrainfo':( 'int', None, 'cdecl', 'user32.GetMessageExtraInfo', () ),
'user32.getmessagepos':( 'int', None, 'cdecl', 'user32.GetMessagePos', () ),
'user32.getmessagetime':( 'int', None, 'cdecl', 'user32.GetMessageTime', () ),
'user32.getmessagew':( 'int', None, 'stdcall', 'user32.GetMessageW', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.getmonitorinfoa':( 'int', None, 'stdcall', 'user32.GetMonitorInfoA', (('void *', 'ptr'), ('int', None)) ),
'user32.getmonitorinfow':( 'int', None, 'stdcall', 'user32.GetMonitorInfoW', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.getmousemovepointsex':( 'int', None, 'stdcall', 'user32.GetMouseMovePointsEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getnextdlggroupitem':( 'int', None, 'stdcall', 'user32.GetNextDlgGroupItem', ( ('void *', 'obj'), ('int', None)) ),
'user32.getnextdlgtabitem':( 'int', None, 'stdcall', 'user32.GetNextDlgTabItem', ( ('void *', 'obj'), ('int', None)) ),
'user32.getopenclipboardwindow':( 'int', None, 'cdecl', 'user32.GetOpenClipboardWindow', () ),
'user32.getparent':( 'int', None, 'stdcall', 'user32.GetParent', () ),
'user32.getpriorityclipboardformat':( 'int', None, 'stdcall', 'user32.GetPriorityClipboardFormat', (('int', None), ('int', None)) ),
'user32.getprocessdefaultlayout':( 'int', None, 'stdcall', 'user32.GetProcessDefaultLayout', (('int', None),) ),
'user32.getprocesswindowstation':( 'int', None, 'cdecl', 'user32.GetProcessWindowStation', () ),
'user32.getprogmanwindow':( 'int', None, 'cdecl', 'user32.GetProgmanWindow', () ),
'user32.getpropa':( 'int', None, 'stdcall', 'user32.GetPropA', ( ('int', None),) ),
'user32.getpropw':( 'int', None, 'stdcall', 'user32.GetPropW', ( ('int', None),) ),
'user32.getqueuestatus':( 'int', None, 'stdcall', 'user32.GetQueueStatus', (('int', None),) ),
'user32.getrawinputbuffer':( 'int', None, 'stdcall', 'user32.GetRawInputBuffer', (('int', None), ('int', None), ('int', None)) ),
'user32.getrawinputdata':( 'int', None, 'stdcall', 'user32.GetRawInputData', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getrawinputdeviceinfoa':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceInfoA', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.getrawinputdeviceinfow':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceInfoW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getrawinputdevicelist':( 'int', None, 'stdcall', 'user32.GetRawInputDeviceList', (('int', None), ('int', None), ('int', None)) ),
'user32.getreasontitlefromreasoncode':( 'int', None, 'stdcall', 'user32.GetReasonTitleFromReasonCode', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.getregisteredrawinputdevices':( 'int', None, 'stdcall', 'user32.GetRegisteredRawInputDevices', (('int', None), ('int', None), ('int', None)) ),
'user32.getscrollbarinfo':( 'int', None, 'stdcall', 'user32.GetScrollBarInfo', (('int', None), ('int', None), ('int', None)) ),
'user32.getscrollinfo':( 'int', None, 'stdcall', 'user32.GetScrollInfo', ( ('int', None), ('void *', 'obj')) ),
'user32.getscrollpos':( 'int', None, 'stdcall', 'user32.GetScrollPos', ( ('int', None),) ),
'user32.getscrollrange':( 'int', None, 'stdcall', 'user32.GetScrollRange', ( ('int', None), ('int', None), ('void *', 'obj')) ),
'user32.getshellwindow':( 'int', None, 'cdecl', 'user32.GetShellWindow', () ),
'user32.getsubmenu':( 'int', None, 'stdcall', 'user32.GetSubMenu', ( ('int', None),) ),
'user32.getsyscolor':( 'int', None, 'stdcall', 'user32.GetSysColor', (('int', None),) ),
'user32.getsyscolorbrush':( 'int', None, 'stdcall', 'user32.GetSysColorBrush', (('int', None),) ),
'user32.getsystemmenu':( 'int', None, 'stdcall', 'user32.GetSystemMenu', (('int', None), ('int', None)) ),
'user32.getsystemmetrics':( 'int', None, 'stdcall', 'user32.GetSystemMetrics', (('int', None),) ),
'user32.gettabbedtextextenta':( 'int', None, 'stdcall', 'user32.GetTabbedTextExtentA', ( ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.gettabbedtextextentw':( 'int', None, 'stdcall', 'user32.GetTabbedTextExtentW', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.gettaskmanwindow':( 'int', None, 'cdecl', 'user32.GetTaskmanWindow', () ),
'user32.getthreaddesktop':( 'int', None, 'stdcall', 'user32.GetThreadDesktop', (('int', None),) ),
'user32.gettitlebarinfo':( 'int', None, 'stdcall', 'user32.GetTitleBarInfo', (('int', None), ('int', None)) ),
'user32.gettopwindow':( 'int', None, 'stdcall', 'user32.GetTopWindow', () ),
'user32.getupdaterect':( 'int', None, 'stdcall', 'user32.GetUpdateRect', ( ('int', None), ('int', None)) ),
'user32.getupdatergn':( 'int', None, 'stdcall', 'user32.GetUpdateRgn', ( ('int', None), ('int', None)) ),
'user32.getuserobjectinformationa':( 'int', None, 'stdcall', 'user32.GetUserObjectInformationA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getuserobjectinformationw':( 'int', None, 'stdcall', 'user32.GetUserObjectInformationW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getuserobjectsecurity':( 'int', None, 'stdcall', 'user32.GetUserObjectSecurity', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.getwinstationinfo':( 'int', None, 'stdcall', 'user32.GetWinStationInfo', (('int', None),) ),
'user32.getwindow':( 'int', None, 'stdcall', 'user32.GetWindow', ( ('int', None),) ),
'user32.getwindowcontexthelpid':( 'int', None, 'stdcall', 'user32.GetWindowContextHelpId', (('int', None),) ),
'user32.getwindowdc':( 'int', None, 'stdcall', 'user32.GetWindowDC', (('int', None),) ),
'user32.getwindowinfo':( 'int', None, 'stdcall', 'user32.GetWindowInfo', ( ('int', None),) ),
'user32.getwindowlonga':( 'int', None, 'stdcall', 'user32.GetWindowLongA', ( ('int', None),) ),
'user32.getwindowlongw':( 'int', None, 'stdcall', 'user32.GetWindowLongW', ( ('int', None),) ),
'user32.getwindowmodulefilename':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileName', ( ('int', None), ('int', None)) ),
'user32.getwindowmodulefilenamea':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileNameA', ( ('int', None), ('int', None)) ),
'user32.getwindowmodulefilenamew':( 'int', None, 'stdcall', 'user32.GetWindowModuleFileNameW', ( ('int', None), ('int', None)) ),
'user32.getwindowplacement':( 'int', None, 'stdcall', 'user32.GetWindowPlacement', (('int', None), ('void *', 'ptr')) ),
'user32.getwindowrect':( 'int', None, 'stdcall', 'user32.GetWindowRect', ( ('void *', 'ptr'),) ),
'user32.getwindowrgn':( 'int', None, 'stdcall', 'user32.GetWindowRgn', ( ('int', None),) ),
'user32.getwindowrgnbox':( 'int', None, 'stdcall', 'user32.GetWindowRgnBox', ( ('int', None),) ),
'user32.getwindowtexta':( 'int', None, 'stdcall', 'user32.GetWindowTextA', ( ('void *', 'obj'), ('int', None)) ),
'user32.getwindowtextlengtha':( 'int', None, 'stdcall', 'user32.GetWindowTextLengthA', () ),
'user32.getwindowtextlengthw':( 'int', None, 'stdcall', 'user32.GetWindowTextLengthW', () ),
'user32.getwindowtextw':( 'int', None, 'stdcall', 'user32.GetWindowTextW', ( ('void *', 'obj'), ('int', None)) ),
'user32.getwindowthreadprocessid':( 'int', None, 'stdcall', 'user32.GetWindowThreadProcessId', (('int', None), ('void *', 'ptr')) ),
'user32.getwindowword':( 'int', None, 'stdcall', 'user32.GetWindowWord', ( ('int', None),) ),
'user32.graystringa':( 'int', None, 'stdcall', 'user32.GrayStringA', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.graystringw':( 'int', None, 'stdcall', 'user32.GrayStringW', (('int', None), ('int', None), ('void *', 'funcptr'), ('void *', 'ptr'), ('DWORD', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.hidecaret':( 'int', None, 'stdcall', 'user32.HideCaret', (('int', None),) ),
'user32.hilitemenuitem':( 'int', None, 'stdcall', 'user32.HiliteMenuItem', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.impgetimea':( 'int', None, 'stdcall', 'user32.IMPGetIMEA', (('int', None), ('int', None)) ),
'user32.impgetimew':( 'int', None, 'stdcall', 'user32.IMPGetIMEW', (('int', None), ('int', None)) ),
'user32.impqueryimea':( 'int', None, 'stdcall', 'user32.IMPQueryIMEA', (('int', None),) ),
'user32.impqueryimew':( 'int', None, 'stdcall', 'user32.IMPQueryIMEW', (('int', None),) ),
'user32.impsetimea':( 'int', None, 'stdcall', 'user32.IMPSetIMEA', (('int', None), ('int', None)) ),
'user32.impsetimew':( 'int', None, 'stdcall', 'user32.IMPSetIMEW', (('int', None), ('int', None)) ),
'user32.impersonateddeclientwindow':( 'int', None, 'stdcall', 'user32.ImpersonateDdeClientWindow', (('int', None), ('int', None)) ),
'user32.insendmessage':( 'int', None, 'cdecl', 'user32.InSendMessage', () ),
'user32.insendmessageex':( 'int', None, 'stdcall', 'user32.InSendMessageEx', (('int', None),) ),
'user32.inflaterect':( 'int', None, 'stdcall', 'user32.InflateRect', (('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.initializelpkhooks':( 'int', None, 'stdcall', 'user32.InitializeLpkHooks', (('int', None),) ),
'user32.initializewin32entrytable':( 'int', None, 'stdcall', 'user32.InitializeWin32EntryTable', (('int', None),) ),
'user32.insertmenua':( 'int', None, 'stdcall', 'user32.InsertMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.insertmenuitema':( 'int', None, 'stdcall', 'user32.InsertMenuItemA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.insertmenuitemw':( 'int', None, 'stdcall', 'user32.InsertMenuItemW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.insertmenuw':( 'int', None, 'stdcall', 'user32.InsertMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.internalgetwindowtext':( 'int', None, 'stdcall', 'user32.InternalGetWindowText', (('int', None), ('int', None), ('int', None)) ),
'user32.intersectrect':( 'int', None, 'stdcall', 'user32.IntersectRect', (('void *', 'ptr'), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.invalidaterect':( 'int', None, 'stdcall', 'user32.InvalidateRect', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.invalidatergn':( 'int', None, 'stdcall', 'user32.InvalidateRgn', (('int', None), ('int', None), ('int', None)) ),
'user32.invertrect':( 'int', None, 'stdcall', 'user32.InvertRect', (('int', None), ('int', None)) ),
'user32.ischaralphaa':( 'int', None, 'stdcall', 'user32.IsCharAlphaA', (('int', None),) ),
'user32.ischaralphanumerica':( 'int', None, 'stdcall', 'user32.IsCharAlphaNumericA', (('int', None),) ),
'user32.ischaralphanumericw':( 'int', None, 'stdcall', 'user32.IsCharAlphaNumericW', (('int', None),) ),
'user32.ischaralphaw':( 'int', None, 'stdcall', 'user32.IsCharAlphaW', (('int', None),) ),
'user32.ischarlowera':( 'int', None, 'stdcall', 'user32.IsCharLowerA', (('int', None),) ),
'user32.ischarlowerw':( 'int', None, 'stdcall', 'user32.IsCharLowerW', (('int', None),) ),
'user32.ischaruppera':( 'int', None, 'stdcall', 'user32.IsCharUpperA', (('int', None),) ),
'user32.ischarupperw':( 'int', None, 'stdcall', 'user32.IsCharUpperW', (('int', None),) ),
'user32.ischild':( 'int', None, 'stdcall', 'user32.IsChild', ( ('void *', 'obj'),) ),
'user32.isclipboardformatavailable':( 'int', None, 'stdcall', 'user32.IsClipboardFormatAvailable', (('int', None),) ),
'user32.isdialogmessage':( 'int', None, 'stdcall', 'user32.IsDialogMessage', ( ('void *', 'obj'),) ),
'user32.isdialogmessagea':( 'int', None, 'stdcall', 'user32.IsDialogMessageA', ( ('void *', 'obj'),) ),
'user32.isdialogmessagew':( 'int', None, 'stdcall', 'user32.IsDialogMessageW', ( ('void *', 'obj'),) ),
'user32.isdlgbuttonchecked':( 'int', None, 'stdcall', 'user32.IsDlgButtonChecked', ( ('int', None),) ),
'user32.isguithread':( 'int', None, 'stdcall', 'user32.IsGUIThread', (('int', None),) ),
'user32.ishungappwindow':( 'int', None, 'stdcall', 'user32.IsHungAppWindow', (('int', None),) ),
'user32.isiconic':( 'int', None, 'stdcall', 'user32.IsIconic', () ),
'user32.ismenu':( 'int', None, 'stdcall', 'user32.IsMenu', () ),
'user32.isrectempty':( 'int', None, 'stdcall', 'user32.IsRectEmpty', (('int', None),) ),
'user32.isserversidewindow':( 'int', None, 'stdcall', 'user32.IsServerSideWindow', () ),
'user32.iswineventhookinstalled':( 'int', None, 'stdcall', 'user32.IsWinEventHookInstalled', (('int', None),) ),
'user32.iswindow':( 'int', None, 'stdcall', 'user32.IsWindow', () ),
'user32.iswindowenabled':( 'int', None, 'stdcall', 'user32.IsWindowEnabled', () ),
'user32.iswindowindestroy':( 'int', None, 'stdcall', 'user32.IsWindowInDestroy', () ),
'user32.iswindowunicode':( 'int', None, 'stdcall', 'user32.IsWindowUnicode', () ),
'user32.iswindowvisible':( 'int', None, 'stdcall', 'user32.IsWindowVisible', () ),
'user32.iszoomed':( 'int', None, 'stdcall', 'user32.IsZoomed', () ),
'user32.killsystemtimer':( 'int', None, 'stdcall', 'user32.KillSystemTimer', (('int', None), ('int', None)) ),
'user32.killtimer':( 'int', None, 'stdcall', 'user32.KillTimer', (('int', None), ('int', None)) ),
'user32.loadacceleratorsa':( 'int', None, 'stdcall', 'user32.LoadAcceleratorsA', (('void *', 'ptr'), ('int', None)) ),
'user32.loadacceleratorsw':( 'int', None, 'stdcall', 'user32.LoadAcceleratorsW', (('void *', 'ptr'), ('int', None)) ),
'user32.loadbitmapa':( 'int', None, 'stdcall', 'user32.LoadBitmapA', (('int', None), ('void *', 'ptr')) ),
'user32.loadbitmapw':( 'int', None, 'stdcall', 'user32.LoadBitmapW', (('int', None), ('int', None)) ),
'user32.loadcursora':( 'int', None, 'stdcall', 'user32.LoadCursorA', (('int', None), ('void *', 'ptr')) ),
'user32.loadcursorfromfilea':( 'int', None, 'stdcall', 'user32.LoadCursorFromFileA', (('void *', 'ptr'),) ),
'user32.loadcursorfromfilew':( 'int', None, 'stdcall', 'user32.LoadCursorFromFileW', (('int', None),) ),
'user32.loadcursorw':( 'int', None, 'stdcall', 'user32.LoadCursorW', (('int', None), ('int', None)) ),
'user32.loadicona':( 'int', None, 'stdcall', 'user32.LoadIconA', (('int', None), ('void *', 'ptr')) ),
'user32.loadiconw':( 'int', None, 'stdcall', 'user32.LoadIconW', (('int', None), ('int', None)) ),
'user32.loadimagea':( 'int', None, 'stdcall', 'user32.LoadImageA', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.loadimagew':( 'int', None, 'stdcall', 'user32.LoadImageW', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.loadkeyboardlayouta':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutA', (('int', None), ('int', None)) ),
'user32.loadkeyboardlayoutex':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutEx', (('int', None), ('int', None), ('int', None)) ),
'user32.loadkeyboardlayoutw':( 'int', None, 'stdcall', 'user32.LoadKeyboardLayoutW', (('void *', 'ptr'), ('int', None)) ),
'user32.loadlocalfonts':( 'int', None, 'cdecl', 'user32.LoadLocalFonts', () ),
'user32.loadmenua':( 'int', None, 'stdcall', 'user32.LoadMenuA', (('int', None), ('int', None)) ),
'user32.loadmenuindirecta':( 'int', None, 'stdcall', 'user32.LoadMenuIndirectA', (('int', None),) ),
'user32.loadmenuindirectw':( 'int', None, 'stdcall', 'user32.LoadMenuIndirectW', (('int', None),) ),
'user32.loadmenuw':( 'int', None, 'stdcall', 'user32.LoadMenuW', (('int', None), ('int', None)) ),
'user32.loadremotefonts':( 'int', None, 'cdecl', 'user32.LoadRemoteFonts', () ),
'user32.loadstringa':( 'int', None, 'stdcall', 'user32.LoadStringA', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.loadstringw':( 'int', None, 'stdcall', 'user32.LoadStringW', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.locksetforegroundwindow':( 'int', None, 'stdcall', 'user32.LockSetForegroundWindow', (('int', None),) ),
'user32.lockwindowstation':( 'int', None, 'stdcall', 'user32.LockWindowStation', (('int', None),) ),
'user32.lockwindowupdate':( 'int', None, 'stdcall', 'user32.LockWindowUpdate', (('int', None),) ),
'user32.lockworkstation':( 'int', None, 'cdecl', 'user32.LockWorkStation', () ),
'user32.lookupiconidfromdirectory':( 'int', None, 'stdcall', 'user32.LookupIconIdFromDirectory', (('int', None), ('int', None)) ),
'user32.lookupiconidfromdirectoryex':( 'int', None, 'stdcall', 'user32.LookupIconIdFromDirectoryEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.mbtowcsex':( 'int', None, 'stdcall', 'user32.MBToWCSEx', (('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.mb_getstring':( 'int', None, 'stdcall', 'user32.MB_GetString', (('int', None),) ),
'user32.mapdialogrect':( 'int', None, 'stdcall', 'user32.MapDialogRect', ( ('int', None),) ),
'user32.mapvirtualkeya':( 'int', None, 'stdcall', 'user32.MapVirtualKeyA', (('int', None), ('int', None)) ),
'user32.mapvirtualkeyexa':( 'int', None, 'stdcall', 'user32.MapVirtualKeyExA', (('int', None), ('int', None), ('int', None)) ),
'user32.mapvirtualkeyexw':( 'int', None, 'stdcall', 'user32.MapVirtualKeyExW', (('int', None), ('int', None), ('int', None)) ),
'user32.mapvirtualkeyw':( 'int', None, 'stdcall', 'user32.MapVirtualKeyW', (('int', None), ('int', None)) ),
'user32.mapwindowpoints':( 'int', None, 'stdcall', 'user32.MapWindowPoints', ( ('void *', 'obj'), ('void *', 'ptr'), ('int', None)) ),
'user32.menuitemfrompoint':( 'int', None, 'stdcall', 'user32.MenuItemFromPoint', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.menuwindowproca':( 'int', None, 'stdcall', 'user32.MenuWindowProcA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.menuwindowprocw':( 'int', None, 'stdcall', 'user32.MenuWindowProcW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messagebeep':( 'int', None, 'stdcall', 'user32.MessageBeep', (('int', None),) ),
'user32.messageboxa':( 'int', None, 'stdcall', 'user32.MessageBoxA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxexa':( 'int', None, 'stdcall', 'user32.MessageBoxExA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxexw':( 'int', None, 'stdcall', 'user32.MessageBoxExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxindirecta':( 'int', None, 'stdcall', 'user32.MessageBoxIndirectA', (('int', None),) ),
'user32.messageboxindirectw':( 'int', None, 'stdcall', 'user32.MessageBoxIndirectW', (('int', None),) ),
'user32.messageboxtimeouta':( 'int', None, 'stdcall', 'user32.MessageBoxTimeoutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxtimeoutw':( 'int', None, 'stdcall', 'user32.MessageBoxTimeoutW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.messageboxw':( 'int', None, 'stdcall', 'user32.MessageBoxW', (('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None)) ),
'user32.modifymenua':( 'int', None, 'stdcall', 'user32.ModifyMenuA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.modifymenuw':( 'int', None, 'stdcall', 'user32.ModifyMenuW', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.monitorfrompoint':( 'int', None, 'stdcall', 'user32.MonitorFromPoint', (('int', None), ('int', None), ('int', None)) ),
'user32.monitorfromrect':( 'int', None, 'stdcall', 'user32.MonitorFromRect', (('void *', 'ptr'), ('int', None)) ),
'user32.monitorfromwindow':( 'int', None, 'stdcall', 'user32.MonitorFromWindow', ( ('int', None),) ),
'user32.movewindow':( 'int', None, 'stdcall', 'user32.MoveWindow', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.msgwaitformultipleobjects':( 'int', None, 'stdcall', 'user32.MsgWaitForMultipleObjects', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.msgwaitformultipleobjectsex':( 'int', None, 'stdcall', 'user32.MsgWaitForMultipleObjectsEx', (('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.notifywinevent':( 'int', None, 'stdcall', 'user32.NotifyWinEvent', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.oemkeyscan':( 'int', None, 'stdcall', 'user32.OemKeyScan', ( ('int', None),) ),
'user32.oemtochara':( 'int', None, 'stdcall', 'user32.OemToCharA', (('int', None), ('int', None)) ),
'user32.oemtocharbuffa':( 'int', None, 'stdcall', 'user32.OemToCharBuffA', (('int', None), ('int', None), ('int', None)) ),
'user32.oemtocharbuffw':( 'int', None, 'stdcall', 'user32.OemToCharBuffW', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.oemtocharw':( 'int', None, 'stdcall', 'user32.OemToCharW', (('int', None), ('int', None)) ),
'user32.offsetrect':( 'int', None, 'stdcall', 'user32.OffsetRect', (('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.openclipboard':( 'int', None, 'stdcall', 'user32.OpenClipboard', (('int', None),) ),
'user32.opendesktopa':( 'int', None, 'stdcall', 'user32.OpenDesktopA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.opendesktopw':( 'int', None, 'stdcall', 'user32.OpenDesktopW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.openicon':( 'int', None, 'stdcall', 'user32.OpenIcon', () ),
'user32.openinputdesktop':( 'int', None, 'stdcall', 'user32.OpenInputDesktop', (('int', None), ('int', None), ('int', None)) ),
'user32.openwindowstationa':( 'int', None, 'stdcall', 'user32.OpenWindowStationA', (('int', None), ('int', None), ('int', None)) ),
'user32.openwindowstationw':( 'int', None, 'stdcall', 'user32.OpenWindowStationW', (('int', None), ('int', None), ('int', None)) ),
'user32.packddelparam':( 'int', None, 'stdcall', 'user32.PackDDElParam', (('int', None), ('int', None), ('int', None)) ),
'user32.paintdesktop':( 'int', None, 'stdcall', 'user32.PaintDesktop', (('int', None),) ),
'user32.paintmenubar':( 'int', None, 'stdcall', 'user32.PaintMenuBar', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.peekmessagea':( 'int', None, 'stdcall', 'user32.PeekMessageA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.peekmessagew':( 'int', None, 'stdcall', 'user32.PeekMessageW', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.postmessagea':( 'int', None, 'stdcall', 'user32.PostMessageA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.postmessagew':( 'int', None, 'stdcall', 'user32.PostMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.postquitmessage':( 'int', None, 'stdcall', 'user32.PostQuitMessage', (('int', None),) ),
'user32.postthreadmessagea':( 'int', None, 'stdcall', 'user32.PostThreadMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.postthreadmessagew':( 'int', None, 'stdcall', 'user32.PostThreadMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.printwindow':( 'int', None, 'stdcall', 'user32.PrintWindow', (('int', None), ('int', None), ('int', None)) ),
'user32.privateextracticonexa':( 'int', None, 'stdcall', 'user32.PrivateExtractIconExA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.privateextracticonexw':( 'int', None, 'stdcall', 'user32.PrivateExtractIconExW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.privateextracticonsa':( 'int', None, 'stdcall', 'user32.PrivateExtractIconsA', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.privateextracticonsw':( 'int', None, 'stdcall', 'user32.PrivateExtractIconsW', (('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.privatesetdbgtag':( 'int', None, 'stdcall', 'user32.PrivateSetDbgTag', (('int', None), ('int', None)) ),
'user32.privatesetripflags':( 'int', None, 'stdcall', 'user32.PrivateSetRipFlags', (('int', None), ('int', None)) ),
'user32.ptinrect':( 'int', None, 'stdcall', 'user32.PtInRect', (('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.querysendmessage':( 'int', None, 'stdcall', 'user32.QuerySendMessage', (('int', None),) ),
'user32.queryusercounters':( 'int', None, 'stdcall', 'user32.QueryUserCounters', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.realchildwindowfrompoint':( 'int', None, 'stdcall', 'user32.RealChildWindowFromPoint', (('int', None), ('int', None), ('int', None)) ),
'user32.realgetwindowclass':( 'int', None, 'stdcall', 'user32.RealGetWindowClass', (('int', None), ('int', None), ('int', None)) ),
'user32.realgetwindowclassa':( 'int', None, 'stdcall', 'user32.RealGetWindowClassA', (('int', None), ('int', None), ('int', None)) ),
'user32.realgetwindowclassw':( 'int', None, 'stdcall', 'user32.RealGetWindowClassW', (('int', None), ('int', None), ('int', None)) ),
'user32.reasoncodeneedsbugid':( 'int', None, 'stdcall', 'user32.ReasonCodeNeedsBugID', (('int', None),) ),
'user32.reasoncodeneedscomment':( 'int', None, 'stdcall', 'user32.ReasonCodeNeedsComment', (('int', None),) ),
'user32.recordshutdownreason':( 'int', None, 'stdcall', 'user32.RecordShutdownReason', ( ('void *', 'ptr'),) ),
'user32.redrawwindow':( 'int', None, 'stdcall', 'user32.RedrawWindow', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.registerclassa':( 'int', None, 'stdcall', 'user32.RegisterClassA', (('int', None),) ),
'user32.registerclassexa':( 'int', None, 'stdcall', 'user32.RegisterClassExA', (('void *', 'ptr'),) ),
'user32.registerclassexw':( 'int', None, 'stdcall', 'user32.RegisterClassExW', (('void *', 'ptr'),) ),
'user32.registerclassw':( 'int', None, 'stdcall', 'user32.RegisterClassW', (('int', None),) ),
'user32.registerclipboardformata':( 'int', None, 'stdcall', 'user32.RegisterClipboardFormatA', (('int', None),) ),
'user32.registerclipboardformatw':( 'int', None, 'stdcall', 'user32.RegisterClipboardFormatW', (('int', None),) ),
'user32.registerdevicenotificationa':( 'int', None, 'stdcall', 'user32.RegisterDeviceNotificationA', (('int', None), ('int', None), ('int', None)) ),
'user32.registerdevicenotificationw':( 'int', None, 'stdcall', 'user32.RegisterDeviceNotificationW', (('int', None), ('int', None), ('int', None)) ),
'user32.registerhotkey':( 'int', None, 'stdcall', 'user32.RegisterHotKey', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.registerlogonprocess':( 'int', None, 'stdcall', 'user32.RegisterLogonProcess', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.registermessagepumphook':( 'int', None, 'stdcall', 'user32.RegisterMessagePumpHook', (('void *', 'funcptr'),) ),
'user32.registerrawinputdevices':( 'int', None, 'stdcall', 'user32.RegisterRawInputDevices', (('int', None), ('int', None), ('int', None)) ),
'user32.registerservicesprocess':( 'int', None, 'stdcall', 'user32.RegisterServicesProcess', (('int', None),) ),
'user32.registershellhookwindow':( 'int', None, 'stdcall', 'user32.RegisterShellHookWindow', (('int', None),) ),
'user32.registersystemthread':( 'int', None, 'stdcall', 'user32.RegisterSystemThread', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.registertasklist':( 'int', None, 'stdcall', 'user32.RegisterTasklist', (('int', None),) ),
'user32.registeruserapihook':( 'int', None, 'stdcall', 'user32.RegisterUserApiHook', (('int', None), ('int', None)) ),
'user32.registerwindowmessagea':( 'int', None, 'stdcall', 'user32.RegisterWindowMessageA', (('int', None),) ),
'user32.registerwindowmessagew':( 'int', None, 'stdcall', 'user32.RegisterWindowMessageW', (('int', None),) ),
'user32.releasecapture':( 'int', None, 'cdecl', 'user32.ReleaseCapture', () ),
'user32.releasedc':( 'int', None, 'stdcall', 'user32.ReleaseDC', (('int', None), ('int', None)) ),
'user32.removemenu':( 'int', None, 'stdcall', 'user32.RemoveMenu', (('int', None), ('int', None), ('int', None)) ),
'user32.removepropa':( 'int', None, 'stdcall', 'user32.RemovePropA', (('int', None), ('int', None)) ),
'user32.removepropw':( 'int', None, 'stdcall', 'user32.RemovePropW', (('int', None), ('int', None)) ),
'user32.replymessage':( 'int', None, 'stdcall', 'user32.ReplyMessage', (('int', None),) ),
'user32.resolvedesktopforwow':( 'int', None, 'stdcall', 'user32.ResolveDesktopForWOW', (('int', None),) ),
'user32.reuseddelparam':( 'int', None, 'stdcall', 'user32.ReuseDDElParam', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.screentoclient':( 'int', None, 'stdcall', 'user32.ScreenToClient', ( ('void *', 'ptr'),) ),
'user32.scrollchildren':( 'int', None, 'stdcall', 'user32.ScrollChildren', ( ('int', None), ('int', None)) ),
'user32.scrolldc':( 'int', None, 'stdcall', 'user32.ScrollDC', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.scrollwindow':( 'int', None, 'stdcall', 'user32.ScrollWindow', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.scrollwindowex':( 'int', None, 'stdcall', 'user32.ScrollWindowEx', ( ('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.senddlgitemmessagea':( 'int', None, 'stdcall', 'user32.SendDlgItemMessageA', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.senddlgitemmessagew':( 'int', None, 'stdcall', 'user32.SendDlgItemMessageW', ( ('int', None), ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.sendimemessageexa':( 'int', None, 'stdcall', 'user32.SendIMEMessageExA', (('int', None), ('int', None)) ),
'user32.sendimemessageexw':( 'int', None, 'stdcall', 'user32.SendIMEMessageExW', (('int', None), ('int', None)) ),
'user32.sendinput':( 'int', None, 'stdcall', 'user32.SendInput', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.sendmessagea':( 'int', None, 'stdcall', 'user32.SendMessageA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.sendmessagecallbacka':( 'int', None, 'stdcall', 'user32.SendMessageCallbackA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.sendmessagecallbackw':( 'int', None, 'stdcall', 'user32.SendMessageCallbackW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.sendmessagetimeouta':( 'int', None, 'stdcall', 'user32.SendMessageTimeoutA', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.sendmessagetimeoutw':( 'int', None, 'stdcall', 'user32.SendMessageTimeoutW', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.sendmessagew':( 'int', None, 'stdcall', 'user32.SendMessageW', ( ('void *', 'obj'), ('int', None), ('void *', 'obj')) ),
'user32.sendnotifymessagea':( 'int', None, 'stdcall', 'user32.SendNotifyMessageA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.sendnotifymessagew':( 'int', None, 'stdcall', 'user32.SendNotifyMessageW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setactivewindow':( 'int', None, 'stdcall', 'user32.SetActiveWindow', (('int', None),) ),
'user32.setcapture':( 'int', None, 'stdcall', 'user32.SetCapture', (('int', None),) ),
'user32.setcaretblinktime':( 'int', None, 'stdcall', 'user32.SetCaretBlinkTime', (('int', None),) ),
'user32.setcaretpos':( 'int', None, 'stdcall', 'user32.SetCaretPos', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.setclasslonga':( 'int', None, 'stdcall', 'user32.SetClassLongA', (('int', None), ('int', None), ('int', None)) ),
'user32.setclasslongw':( 'int', None, 'stdcall', 'user32.SetClassLongW', (('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.setclassword':( 'int', None, 'stdcall', 'user32.SetClassWord', (('int', None), ('int', None), ('int', None)) ),
'user32.setclipboarddata':( 'int', None, 'stdcall', 'user32.SetClipboardData', (('int', None), ('int', None)) ),
'user32.setclipboardviewer':( 'int', None, 'stdcall', 'user32.SetClipboardViewer', (('int', None),) ),
'user32.setconsolereservekeys':( 'int', None, 'stdcall', 'user32.SetConsoleReserveKeys', (('int', None), ('int', None)) ),
'user32.setcursor':( 'int', None, 'stdcall', 'user32.SetCursor', (('int', None),) ),
'user32.setcursorcontents':( 'int', None, 'stdcall', 'user32.SetCursorContents', (('int', None), ('int', None)) ),
'user32.setcursorpos':( 'int', None, 'stdcall', 'user32.SetCursorPos', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.setdebugerrorlevel':( 'int', None, 'stdcall', 'user32.SetDebugErrorLevel', (('int', None),) ),
'user32.setdeskwallpaper':( 'int', None, 'stdcall', 'user32.SetDeskWallpaper', (('void *', 'ptr'),) ),
'user32.setdlgitemint':( 'int', None, 'stdcall', 'user32.SetDlgItemInt', ( ('int', None), ('int', None), ('int', None)) ),
'user32.setdlgitemtexta':( 'int', None, 'stdcall', 'user32.SetDlgItemTextA', ( ('int', None), ('void *', 'obj')) ),
'user32.setdlgitemtextw':( 'int', None, 'stdcall', 'user32.SetDlgItemTextW', ( ('int', None), ('void *', 'obj')) ),
'user32.setdoubleclicktime':( 'int', None, 'stdcall', 'user32.SetDoubleClickTime', (('int', None),) ),
'user32.setfocus':( 'int', None, 'stdcall', 'user32.SetFocus', (('int', None),) ),
'user32.setforegroundwindow':( 'int', None, 'stdcall', 'user32.SetForegroundWindow', (('int', None),) ),
'user32.setinternalwindowpos':( 'int', None, 'stdcall', 'user32.SetInternalWindowPos', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setkeyboardstate':( 'int', None, 'stdcall', 'user32.SetKeyboardState', (('int', None),) ),
'user32.setlasterrorex':( 'int', None, 'stdcall', 'user32.SetLastErrorEx', (('int', None), ('int', None)) ),
'user32.setlayeredwindowattributes':( 'int', None, 'stdcall', 'user32.SetLayeredWindowAttributes', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setlogonnotifywindow':( 'int', None, 'stdcall', 'user32.SetLogonNotifyWindow', (('int', None),) ),
'user32.setmenu':( 'int', None, 'stdcall', 'user32.SetMenu', (('int', None), ('int', None)) ),
'user32.setmenucontexthelpid':( 'int', None, 'stdcall', 'user32.SetMenuContextHelpId', (('int', None), ('int', None)) ),
'user32.setmenudefaultitem':( 'int', None, 'stdcall', 'user32.SetMenuDefaultItem', (('int', None), ('int', None), ('int', None)) ),
'user32.setmenuinfo':( 'int', None, 'stdcall', 'user32.SetMenuInfo', (('int', None), ('int', None)) ),
'user32.setmenuitembitmaps':( 'int', None, 'stdcall', 'user32.SetMenuItemBitmaps', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setmenuiteminfoa':( 'int', None, 'stdcall', 'user32.SetMenuItemInfoA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setmenuiteminfow':( 'int', None, 'stdcall', 'user32.SetMenuItemInfoW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr')) ),
'user32.setmessageextrainfo':( 'int', None, 'stdcall', 'user32.SetMessageExtraInfo', (('int', None),) ),
'user32.setmessagequeue':( 'int', None, 'stdcall', 'user32.SetMessageQueue', (('int', None),) ),
'user32.setparent':( 'int', None, 'stdcall', 'user32.SetParent', (('int', None), ('int', None)) ),
'user32.setprocessdefaultlayout':( 'int', None, 'stdcall', 'user32.SetProcessDefaultLayout', (('int', None),) ),
'user32.setprocesswindowstation':( 'int', None, 'stdcall', 'user32.SetProcessWindowStation', (('int', None),) ),
'user32.setprogmanwindow':( 'int', None, 'stdcall', 'user32.SetProgmanWindow', (('int', None),) ),
'user32.setpropa':( 'int', None, 'stdcall', 'user32.SetPropA', (('int', None), ('int', None), ('int', None)) ),
'user32.setpropw':( 'int', None, 'stdcall', 'user32.SetPropW', (('int', None), ('int', None), ('int', None)) ),
'user32.setrect':( 'int', None, 'stdcall', 'user32.SetRect', (('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setrectempty':( 'int', None, 'stdcall', 'user32.SetRectEmpty', (('int', None),) ),
'user32.setscrollinfo':( 'int', None, 'stdcall', 'user32.SetScrollInfo', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.setscrollpos':( 'int', None, 'stdcall', 'user32.SetScrollPos', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setscrollrange':( 'int', None, 'stdcall', 'user32.SetScrollRange', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setshellwindow':( 'int', None, 'stdcall', 'user32.SetShellWindow', (('int', None),) ),
'user32.setshellwindowex':( 'int', None, 'stdcall', 'user32.SetShellWindowEx', (('int', None), ('int', None)) ),
'user32.setsyscolors':( 'int', None, 'stdcall', 'user32.SetSysColors', (('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.setsyscolorstemp':( 'int', None, 'stdcall', 'user32.SetSysColorsTemp', (('int', None), ('int', None), ('int', None)) ),
'user32.setsystemcursor':( 'int', None, 'stdcall', 'user32.SetSystemCursor', (('int', None), ('int', None)) ),
'user32.setsystemmenu':( 'int', None, 'stdcall', 'user32.SetSystemMenu', (('int', None), ('int', None)) ),
'user32.setsystemtimer':( 'int', None, 'stdcall', 'user32.SetSystemTimer', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.settaskmanwindow':( 'int', None, 'stdcall', 'user32.SetTaskmanWindow', (('int', None),) ),
'user32.setthreaddesktop':( 'int', None, 'stdcall', 'user32.SetThreadDesktop', (('int', None),) ),
'user32.settimer':( 'int', None, 'stdcall', 'user32.SetTimer', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setuserobjectinformationa':( 'int', None, 'stdcall', 'user32.SetUserObjectInformationA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setuserobjectinformationw':( 'int', None, 'stdcall', 'user32.SetUserObjectInformationW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setuserobjectsecurity':( 'int', None, 'stdcall', 'user32.SetUserObjectSecurity', (('int', None), ('int', None), ('int', None)) ),
'user32.setwineventhook':( 'int', None, 'stdcall', 'user32.SetWinEventHook', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowcontexthelpid':( 'int', None, 'stdcall', 'user32.SetWindowContextHelpId', (('int', None), ('int', None)) ),
'user32.setwindowlonga':( 'int', None, 'stdcall', 'user32.SetWindowLongA', ( ('int', None), ('void *', 'obj')) ),
'user32.setwindowlongw':( 'int', None, 'stdcall', 'user32.SetWindowLongW', ( ('int', None), ('void *', 'obj')) ),
'user32.setwindowplacement':( 'int', None, 'stdcall', 'user32.SetWindowPlacement', (('int', None), ('int', None)) ),
'user32.setwindowpos':( 'int', None, 'stdcall', 'user32.SetWindowPos', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowrgn':( 'int', None, 'stdcall', 'user32.SetWindowRgn', (('int', None), ('int', None), ('int', None)) ),
'user32.setwindowstationuser':( 'int', None, 'stdcall', 'user32.SetWindowStationUser', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowtexta':( 'int', None, 'stdcall', 'user32.SetWindowTextA', ( ('void *', 'obj'),) ),
'user32.setwindowtextw':( 'int', None, 'stdcall', 'user32.SetWindowTextW', ( ('void *', 'obj'),) ),
'user32.setwindowword':( 'int', None, 'stdcall', 'user32.SetWindowWord', (('int', None), ('int', None), ('int', None)) ),
'user32.setwindowshooka':( 'int', None, 'stdcall', 'user32.SetWindowsHookA', (('int', None), ('int', None)) ),
'user32.setwindowshookexa':( 'int', None, 'stdcall', 'user32.SetWindowsHookExA', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowshookexw':( 'int', None, 'stdcall', 'user32.SetWindowsHookExW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.setwindowshookw':( 'int', None, 'stdcall', 'user32.SetWindowsHookW', (('int', None), ('int', None)) ),
'user32.showcaret':( 'int', None, 'stdcall', 'user32.ShowCaret', (('int', None),) ),
'user32.showcursor':( 'int', None, 'stdcall', 'user32.ShowCursor', (('int', None),) ),
'user32.showownedpopups':( 'int', None, 'stdcall', 'user32.ShowOwnedPopups', (('int', None), ('int', None)) ),
'user32.showscrollbar':( 'int', None, 'stdcall', 'user32.ShowScrollBar', (('int', None), ('int', None), ('int', None)) ),
'user32.showstartglass':( 'int', None, 'stdcall', 'user32.ShowStartGlass', (('int', None),) ),
'user32.showwindow':( 'int', None, 'stdcall', 'user32.ShowWindow', (('int', None), ('int', None)) ),
'user32.showwindowasync':( 'int', None, 'stdcall', 'user32.ShowWindowAsync', (('int', None), ('int', None)) ),
'user32.softmodalmessagebox':( 'int', None, 'stdcall', 'user32.SoftModalMessageBox', () ),
'user32.subtractrect':( 'int', None, 'stdcall', 'user32.SubtractRect', (('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.swapmousebutton':( 'int', None, 'stdcall', 'user32.SwapMouseButton', (('int', None),) ),
'user32.switchdesktop':( 'int', None, 'stdcall', 'user32.SwitchDesktop', (('int', None),) ),
'user32.switchtothiswindow':( 'int', None, 'stdcall', 'user32.SwitchToThisWindow', (('int', None), ('int', None)) ),
'user32.systemparametersinfoa':( 'int', None, 'stdcall', 'user32.SystemParametersInfoA', (('int', None), ('int', None), ('void *', 'ptr'), ('int', None)) ),
'user32.systemparametersinfow':( 'int', None, 'stdcall', 'user32.SystemParametersInfoW', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tabbedtextouta':( 'int', None, 'stdcall', 'user32.TabbedTextOutA', ( ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tabbedtextoutw':( 'int', None, 'stdcall', 'user32.TabbedTextOutW', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tilechildwindows':( 'int', None, 'stdcall', 'user32.TileChildWindows', ( ('int', None),) ),
'user32.tilewindows':( 'int', None, 'stdcall', 'user32.TileWindows', ( ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.toascii':( 'int', None, 'stdcall', 'user32.ToAscii', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.toasciiex':( 'int', None, 'stdcall', 'user32.ToAsciiEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tounicode':( 'int', None, 'stdcall', 'user32.ToUnicode', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.tounicodeex':( 'int', None, 'stdcall', 'user32.ToUnicodeEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.trackmouseevent':( 'int', None, 'stdcall', 'user32.TrackMouseEvent', (('int', None),) ),
'user32.trackpopupmenu':( 'int', None, 'stdcall', 'user32.TrackPopupMenu', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.trackpopupmenuex':( 'int', None, 'stdcall', 'user32.TrackPopupMenuEx', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.translateaccelerator':( 'int', None, 'stdcall', 'user32.TranslateAccelerator', (('int', None), ('int', None), ('int', None)) ),
'user32.translateacceleratora':( 'int', None, 'stdcall', 'user32.TranslateAcceleratorA', (('int', None), ('int', None), ('int', None)) ),
'user32.translateacceleratorw':( 'int', None, 'stdcall', 'user32.TranslateAcceleratorW', (('int', None), ('int', None), ('int', None)) ),
'user32.translatemdisysaccel':( 'int', None, 'stdcall', 'user32.TranslateMDISysAccel', ( ('int', None),) ),
'user32.translatemessage':( 'int', None, 'stdcall', 'user32.TranslateMessage', (('void *', 'ptr'),) ),
'user32.translatemessageex':( 'int', None, 'stdcall', 'user32.TranslateMessageEx', (('int', None), ('int', None)) ),
'user32.unhookwinevent':( 'int', None, 'stdcall', 'user32.UnhookWinEvent', (('int', None),) ),
'user32.unhookwindowshook':( 'int', None, 'stdcall', 'user32.UnhookWindowsHook', (('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.unhookwindowshookex':( 'int', None, 'stdcall', 'user32.UnhookWindowsHookEx', (('int', None),) ),
'user32.unionrect':( 'int', None, 'stdcall', 'user32.UnionRect', (('void *', 'ptr'), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.unloadkeyboardlayout':( 'int', None, 'stdcall', 'user32.UnloadKeyboardLayout', (('int', None),) ),
'user32.unlockwindowstation':( 'int', None, 'stdcall', 'user32.UnlockWindowStation', (('int', None),) ),
'user32.unpackddelparam':( 'int', None, 'stdcall', 'user32.UnpackDDElParam', (('int', None), ('int', None), ('void *', 'ptr'), ('void *', 'ptr')) ),
'user32.unregisterclassa':( 'int', None, 'stdcall', 'user32.UnregisterClassA', (('int', None), ('int', None)) ),
'user32.unregisterclassw':( 'int', None, 'stdcall', 'user32.UnregisterClassW', (('int', None), ('int', None)) ),
'user32.unregisterdevicenotification':( 'int', None, 'stdcall', 'user32.UnregisterDeviceNotification', (('int', None),) ),
'user32.unregisterhotkey':( 'int', None, 'stdcall', 'user32.UnregisterHotKey', (('int', None), ('int', None)) ),
'user32.unregistermessagepumphook':( 'int', None, 'cdecl', 'user32.UnregisterMessagePumpHook', () ),
'user32.unregisteruserapihook':( 'int', None, 'cdecl', 'user32.UnregisterUserApiHook', () ),
'user32.updatelayeredwindow':( 'int', None, 'stdcall', 'user32.UpdateLayeredWindow', (('int', None), ('int', None), ('void *', 'ptr'), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None)) ),
'user32.updateperusersystemparameters':( 'int', None, 'stdcall', 'user32.UpdatePerUserSystemParameters', (('int', None), ('int', None)) ),
'user32.updatewindow':( 'int', None, 'stdcall', 'user32.UpdateWindow', () ),
'user32.user32initializeimmentrytable':( 'int', None, 'stdcall', 'user32.User32InitializeImmEntryTable', (('int', None),) ),
'user32.userclientdllinitialize':( 'int', None, 'stdcall', 'user32.UserClientDllInitialize', (('int', None), ('int', None), ('int', None)) ),
'user32.userhandlegrantaccess':( 'int', None, 'stdcall', 'user32.UserHandleGrantAccess', (('int', None), ('int', None), ('int', None)) ),
'user32.userlpkpsmtextout':( 'int', None, 'stdcall', 'user32.UserLpkPSMTextOut', (('int', None), ('int', None), ('DWORD', None), ('int', None), ('int', None), ('int', None)) ),
'user32.userlpktabbedtextout':( 'int', None, 'stdcall', 'user32.UserLpkTabbedTextOut', (('int', None), ('int', None), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.userrealizepalette':( 'int', None, 'stdcall', 'user32.UserRealizePalette', (('int', None),) ),
'user32.userregisterwowhandlers':( 'int', None, 'stdcall', 'user32.UserRegisterWowHandlers', (('int', None), ('int', None)) ),
'user32.vripoutput':( 'int', None, 'cdecl', 'user32.VRipOutput', () ),
'user32.vtagoutput':( 'int', None, 'cdecl', 'user32.VTagOutput', () ),
'user32.validaterect':( 'int', None, 'stdcall', 'user32.ValidateRect', (('int', None), ('int', None)) ),
'user32.validatergn':( 'int', None, 'stdcall', 'user32.ValidateRgn', (('int', None), ('int', None)) ),
'user32.vkkeyscana':( 'int', None, 'stdcall', 'user32.VkKeyScanA', ( ('int', None),) ),
'user32.vkkeyscanexa':( 'int', None, 'stdcall', 'user32.VkKeyScanExA', ( ('int', None), ('int', None)) ),
'user32.vkkeyscanexw':( 'int', None, 'stdcall', 'user32.VkKeyScanExW', (('int', None), ('int', None)) ),
'user32.vkkeyscanw':( 'int', None, 'stdcall', 'user32.VkKeyScanW', (('int', None),) ),
'user32.wcstombex':( 'int', None, 'stdcall', 'user32.WCSToMBEx', (('int', None), ('void *', 'ptr'), ('int', None), ('void *', 'ptr'), ('int', None), ('int', None)) ),
'user32.winnlsenableime':( 'int', None, 'stdcall', 'user32.WINNLSEnableIME', (('int', None), ('int', None)) ),
'user32.winnlsgetenablestatus':( 'int', None, 'stdcall', 'user32.WINNLSGetEnableStatus', (('int', None),) ),
'user32.winnlsgetimehotkey':( 'int', None, 'stdcall', 'user32.WINNLSGetIMEHotkey', (('int', None),) ),
'user32.waitforinputidle':( 'int', None, 'stdcall', 'user32.WaitForInputIdle', (('int', None), ('int', None)) ),
'user32.waitmessage':( 'int', None, 'cdecl', 'user32.WaitMessage', () ),
'user32.win32poolallocationstats':( 'int', None, 'stdcall', 'user32.Win32PoolAllocationStats', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.winhelpa':( 'int', None, 'stdcall', 'user32.WinHelpA', ( ('int', None), ('int', None), ('int', None)) ),
'user32.winhelpw':( 'int', None, 'stdcall', 'user32.WinHelpW', ( ('int', None), ('int', None), ('int', None)) ),
'user32.windowfromdc':( 'int', None, 'stdcall', 'user32.WindowFromDC', (('int', None),) ),
'user32.windowfrompoint':( 'int', None, 'stdcall', 'user32.WindowFromPoint', (('int', None), ('int', None)) ),
'user32.keybd_event':( 'int', None, 'stdcall', 'user32.keybd_event', (('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.mouse_event':( 'int', None, 'stdcall', 'user32.mouse_event', (('int', None), ('int', None), ('int', None), ('int', None), ('int', None)) ),
'user32.wsprintfa':( 'int', None, 'cdecl', 'user32.wsprintfA', (('int', None), ('int', None)) ),
'user32.wsprintfw':( 'int', None, 'cdecl', 'user32.wsprintfW', (('void *', 'ptr'), ('int', None)) ),
'user32.wvsprintfa':( 'int', None, 'stdcall', 'user32.wvsprintfA', (('int', None), ('int', None), ('int', None)) ),
'user32.wvsprintfw':( 'int', None, 'stdcall', 'user32.wvsprintfW', (('int', None), ('int', None), ('int', None)) ),
}
|
# 삼각달팽이
# imp
def solution(n):
arr = [[0 for _ in range(n + 1)] for _ in range(n + 1)]
ans = []
top = 1
btm = n
left = 1
right = 0
num = 1
MAX = (n * (n + 1)) // 2
state = 0
while num <= MAX:
if state == 0:
for i in range(top, btm + 1):
arr[i][left] = num
num += 1
left += 1
top += 1
state = 1
elif state == 1:
for i in range(left, btm - right + 1):
arr[btm][i] = num
num += 1
btm -= 1
state = 2
elif state == 2:
for i in range(btm, top - 1, -1):
arr[i][i - right] = num
num += 1
right += 1
top += 1
state = 0
for i in range(len(arr)):
for j in range(len(arr)):
if arr[i][j] > 0:
ans.append(arr[i][j])
return ans
print(solution(5)) |
class Solution:
def minFallingPathSum(self, matrix: List[List[int]]) -> int:
# dp[i][j] means minimum falling path ended with matrix[i][j]
# dp[i][j] = min(dp[i-1][j],dp[i-1][j-1], dp[i-1][j+1])
dp = [[0 for _ in range(len(matrix[0]))] for _ in range(len(matrix))]
for i in range(len(matrix[0])):
dp[0][i] = matrix[0][i]
for i in range(1, len(matrix)):
for j in range(len(matrix[0])):
dp[i][j] = min(dp[i-1][j], dp[i-1][min(j+1, len(matrix[0])-1)], dp[i-1][max(0,j-1)]) + matrix[i][j]
return min(dp[-1]) |
# A number of options exist when aiming to review how many components to include to reduce the dimensionality complexity
# Let PCA select 90% of the variance
pipe = Pipeline([('scaler', StandardScaler()),
('reducer', PCA(n_components=0.9))]) # By providing a percent ratio value this means the algorithm aims to explain this proportion of cumulative variance
# Fit the pipe to the data
pipe.fit(ansur_df)
print('{} components selected'.format(len(pipe.steps[1][1].components_)))
# Use a visual plot to help select the number of components to include - making use of an elbow section of the plot as the initial cut-off point
# Pipeline a scaler and pca selecting 10 components
pipe = Pipeline([('scaler', StandardScaler()),
('reducer', PCA(n_components=10))])
# Fit the pipe to the data
pipe.fit(ansur_df)
# Plot the explained variance ratio
plt.plot(pipe.steps[1][1].explained_variance_ratio_)
plt.xlabel('Principal component index')
plt.ylabel('Explained variance ratio')
plt.show()
|
# ### Trees
# A tree is a widely used abstract data type that simulates a hierarchical tree structure, with a `root` value and subtrees of `children` with a `parent` node, represented as a set of linked nodes.
#
# A tree data structure can be defined recursively as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value, together with a list of references to nodes (the "children"), with the constraints that no reference is duplicated, and none points to the root.
#
# Applications of trees:
# - Manipulate hierarchical data.
# - Make information easy to search (see tree traversal).
# - Manipulate sorted lists of data.
# - As a workflow for compositing digital images for visual effects.
# - Router algorithms
# - Form of a multi-stage decision-making (see business chess).
#
# #### Binary Tree
# - A tree is called binary tree if each node of the tree has zero, one or two children.
# - Empty tree is also a valid binary tree.
#
# #### Types of binary trees:
# 1. Full binary tree: A Binary Tree is full if every node has 0 or 2 children. Following are examples of full binary tree.
# 2. Complete binary tree: A Binary Tree is complete Binary Tree if all levels are completely filled except possibly the last level and the last level has all keys as left as possible.
# 3. Perfect Binary Tree: A Binary tree is Perfect Binary Tree in which all internal nodes have two children and all leaves are at same level.
# 4. Balanced Binary Tree: A binary tree is balanced if height of the tree is O(Log n) where n is number of nodes. For Example, AVL tree maintain O(Log n) height by making sure that the difference between heights of left and right subtrees is 1. Red-Black trees maintain O(Log n) height by making sure that the number of Black nodes on every root to leaf paths are same and there are no adjacent red nodes. Balanced Binary Search trees are performance wise good as they provide O(log n) time for search, insert and delete.
# 5. A degenerate (or pathological) tree: A Tree where every internal node has one child. Such trees are performance-wise same as linked list.
class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
class Tree:
def __init__(self):
self.root = None
def preorder(self, root):
if(root):
print(root.data,end=" ")
self.preorder(root.left)
self.preorder(root.right)
def inorder(self, root):
if(root):
self.inorder(root.left)
print(root.data,end=" ")
self.inorder(root.right)
def postorder(self, root):
if(root):
self.postorder(root.left)
self.postorder(root.right)
print(root.data,end=" ")
if __name__ == '__main__':
tree = Tree()
tree.root = Node(10)
tree.root.left = Node(5)
tree.root.left.left = Node(2)
tree.root.left.right = Node(8)
tree.root.right = Node(15)
'''
Tree Structure
10
/ \
5 15
/ \
2 8
'''
print("Preorder")
tree.preorder(tree.root)
print("\nInorder")
tree.inorder(tree.root)
print("\nPostorder")
tree.postorder(tree.root)
'''
Output
Preorder
10 5 2 8 15
Inorder
2 5 8 10 15
Postorder
2 8 5 15 10
'''
|
"""
Get the editions per year.
"""
def do_query(archives, config_file=None, logger=None, context=None):
"""
Iterate through archives and get the title and editions per year
Returns result of form:
{ <YEAR>: [ (title, edition), (title, edition)] }
:param archives: RDD of defoe.nls.archive.Archive
:type archives: pyspark.rdd.PipelinedRDD
:param config_file: query configuration file (unused)
:type config_file: str or unicode
:param logger: logger (unused)
:type logger: py4j.java_gateway.JavaObject
:return: Title and editions per year
:rtype: dict
"""
# [(year, title, edition)]
documents = archives.flatMap(
lambda archive: [
(document.year, document.title, document.edition)
for document in list(archive)
]
)
doc_years = documents.map(
lambda document: (document[0], (document[1], document[2]))
)
# [(year, ("title", "edition")), ...]
# =>
# [(year, [( title, edition ...),...)]
result = (
doc_years.groupByKey()
.map(lambda year_context: (year_context[0], list(year_context[1])))
.collect()
)
return result
|
"""Monkey patch the Django admin site to also allow a permission check"""
# I feel SO dirty doing this, but admin autodiscover doesn't work if I have a custom admin site,
# and all I want to do is allow you to get into the admin site if you have either the is_staff flag or
# a custom permission as defined on the accounts model. This is so that in migrations I can pre-create
# the groups for permissions, wherein some of those groups would need to grant the equivalent of the staff flag
def patched_has_permission(request) -> bool:
"""
Patched version of admin site has_permission,
to allow for the accounts:admin_login permission
"""
if request.user.is_active:
if request.user.is_staff:
return True
if request.user.is_superuser:
return True
# This was my custom addition
if request.user.has_perm('accounts.admin_login'):
return True
return False
|
"""
Created on Fri Mar 25 22:43:42 2022
@author: zhzj
Scrivere un programma che stampa i primi 20 numeri altamente composti.
Un numero altamente composto è tale che qualunque numero minore di esso ha meno divisori.
I primi numeri altamente composti sono 1, 2, 4, 6, 12, 24, 36, 48, 60, 120, 180, 240, 360, 720, 840, 1260, 1680, 2520, 5040, 7560, 10080
"""
# definisco una funzione che mi ritorna numeri divisori di un numero
def num_div(n) :
ii = 1
cont = 0
while ii <= n :
if n % ii == 0 :
cont = cont+1
ii = ii+1
return cont
# stampa primi 20 numeri
contatori = 0
n = 1
while contatori < 20 :
ii = 1
flag = 0 # flag = 0 se il numero è altamente composto
while ii < n and flag == 0 :
if num_div(n) <= num_div(ii) :
flag = 1 # update flag = 1 --> numero non altamente composto
ii = ii+1
if ( flag == 0 ) :
print(n) # stampa il numero altamente composto
contatori = contatori + 1
n = n + 1 |
"""Desenvolva um programa que pergunte a distância de uma viagem em Km. Calcule o preço da passagem,
cobrando R$0,50 por Km para viagens de até 200Km e R$0,45 parta viagens mais longas."""
dist = float(input('Qual a distancia da sua viagem ?'))
if dist <= 200:
valor = dist * 0.50
print('O preço da sua viagem vai ser de {}'.format(valor))
else:
valor = dist * 0.45
print('O valor da sua viagem foi de {}'.format(valor))
|
#Not finished yet
# intervals = [[1,3],[2,6],[8,10],[15,18]]
# intervals = [[1,4],[4,5]]
intervals = [[2,3],[4,5],[6,7],[8,9],[1,10]]
intervals.sort(key = lambda it : it[0])
myList = [intervals[0]]
for i in range(1,len(intervals)):
# print(myList)
comp1i, comp1j = myList.pop()
comp2i, comp2j = intervals[i]
if comp2i > comp1j:
myList.append([comp1i, comp1j])
myList.append(intervals[i])
elif comp2j < comp1i:
myList.append([comp2i, comp2j])
myList.append([comp1i, comp1j])
else:
if comp2i <= comp1i:
first = comp2i
else:
first = comp1i
if comp1j <= comp2j:
end = comp2j
else:
end = comp1j
if comp1j == comp2i:
first = comp1i
end = comp2j
# myList.pop()
myList.append([first, end])
print(myList)
|
"""
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
The sum of these multiples is 23.
Finish the solution so that it returns the sum of all the multiples of 3 or 5 below the number passed in.
Note: If the number is a multiple of both 3 and 5, only count it once.
Also, if a number is negative, return 0(for languages that do have them)
"""
def solution(number):
return sum([i for i in range(3, number) if i % 3 == 0 or i % 5 == 0])
print(solution(10)) |
# -------------------------------------------------------
#
#
#
# -------------------------------------------------------
class ServiceCategory():
inpatient = 'inpatient'
other_services = 'other_services'
long_term = 'long_term'
prescription = 'prescription'
# -------------------------------------------------------
#
#
#
# -------------------------------------------------------
|
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"make_session": "00_scrapers.ipynb",
"make_browser": "00_scrapers.ipynb",
"s": "00_scrapers.ipynb",
"browsers": "00_scrapers.ipynb",
"cache_db": "00_scrapers.ipynb",
"RS_URLS": "00_scrapers.ipynb",
"ITEM_FORM": "00_scrapers.ipynb",
"KW_OPTIONS": "00_scrapers.ipynb",
"FORMATS": "00_scrapers.ipynb",
"LOCATIONS": "00_scrapers.ipynb",
"ACCESS": "00_scrapers.ipynb",
"AGENCY_FORM": "00_scrapers.ipynb",
"AGENCY_LOCATIONS": "00_scrapers.ipynb",
"AGENCY_STATUS": "00_scrapers.ipynb",
"SERIES_FORM": "00_scrapers.ipynb",
"RSBase": "00_scrapers.ipynb",
"RSEntity": "00_scrapers.ipynb",
"RSSearch": "00_scrapers.ipynb",
"RSItem": "00_scrapers.ipynb",
"RSItemSearch": "00_scrapers.ipynb",
"RSSeries": "00_scrapers.ipynb",
"RSSeriesSearch": "00_scrapers.ipynb",
"RSAgency": "00_scrapers.ipynb",
"RSAgencySearch": "00_scrapers.ipynb"}
modules = ["scrapers.py"]
doc_url = "https://wragge.github.io/recordsearch_data_scraper/"
git_url = "https://github.com/wragge/recordsearch_data_scraper/tree/master/"
def custom_doc_links(name): return None
|
'''HashMap class to keep track of key value pairs'''
class HashMap:
'''HashMap class to keep track of key value pairs'''
def __init__(self):
'''initializes key val pair'''
self.inner_size = 7
self.array = [None] * self.inner_size
self.count = 0
def get(self, key):
'''returns the keyvaluepair relating to input key'''
index = hash(key) % self.inner_size
if self.array[index] is None:
raise KeyError("Key not found")
for key_val_pair in self.array[index]:
if key_val_pair[0] == key:
return key_val_pair[1]
raise KeyError("Key not found")
def set(self, key, value):
'''sets keyvaluepair and adds it to hashmap'''
index = self.hashTuple(key) % self.inner_size
if self.isfull():
self.inner_size = self.inner_size * 2
self.array = [None] * self.inner_size
if self.array[index] is None:
self.array[index] = []
self.array[index].append((key, value))
else:
for kvp in range(len(self.array[index])):
key_val_pair = self.array[index][kvp]
if key_val_pair[0] == key:
self.array[index][kvp] = None
self.array[index][kvp] = ((key_val_pair[0], value))
return
self.array[index].append((key, value))
self.count += 1
if self.getLoadFactor() >= 0.80:
self.rehash()
def getLoadFactor(self):
'''returns how full the hashmap is'''
return self.count / self.inner_size
def rehash(self):
'''reorders hashmap'''
self.inner_size = self.inner_size * 2 - 1
temp = []
for cell in self.array:
if cell is not None:
for key_val in cell:
temp.append(key_val)
self.array = [None] * self.inner_size
self.count = 0
for key_val in temp:
self.set(key_val[0], key_val[1])
def isfull(self):
'''returns true if arr is full'''
for i in range(self.inner_size):
if self.array[i] is None:
return False
return True
def hashTuple(self, tuple_val):
'''hashes tuplue and returns value'''
if tuple_val is tuple:
return tuple_val[0] ** tuple_val[1]
return hash(tuple_val)
def remove(self, key):
'''removes key val pair from arr'''
index = hash(key) % self.inner_size
if self.array[index] is None:
raise KeyError("Key not found")
for key_val_pair in self.array[index]:
if key_val_pair[0] == key:
self.array[index] = None
def clear(self):
'''clears hashmap and creates a new one of size 7'''
self.inner_size = 7
self.array = [None] * self.inner_size
self.count = 0
def capacity(self):
'''returns capacity of hashmap'''
return self.inner_size
def size(self):
'''returns how many elements are in hashmap'''
return self.count
def keys(self):
'''returns a list of keys'''
result = []
for index in range(self.inner_size):
print(self.array[index])
if self.array[index] is not None:
for item in self.array[index]:
result.append(item[0])
return result
def __hash__(self):
'''hash function'''
return -12
|
def split_and_join(line):
# write your code here
line_splitted = line.split(' ')
return ('-').join(line_splitted)
# Or in one line:
# return ('-').join(line.split(' ')
|
""" Unit Test """
def main():
""" Main function """
root = "coco_dataset/train2017"
ann_file = "coco_dataset/annotations/captions_train2017.json"
dataset = Dataset(root, ann_file)
dataloader = DataLoader(dataset, batch_size=10, collate_fn=collate_fn)
vocab_size = dataset.tokenizer.vocab_size
embedding_dim = 300
encoder_output_dim = 120
model = CaptioningModel(vocab_size, embedding_dim, encoder_output_dim)
for batch in dataloader:
images, captions = batch
print(images.shape)
print(captions.shape)
output = model(images, captions, predict=True)
print(output.shape)
break
if __name__ == "__main__":
main()
|
def multiplication(a, b):
a = float(a)
b = float(b)
value = a * b
return value |
level = 3
name = 'Pamengpeuk'
capital = 'Sukasari'
area = 14.62
|
def get_repo_path(path):
path = path.replace('\\\\', '/').replace('\\', '/')
url_array = path.split("/")
del url_array[len(url_array) - 1]
repo_path = ""
for word in url_array:
if word != url_array[len(url_array) - 1]:
repo_path += word + "/"
return repo_path + url_array[len(url_array) - 1]
def get_difference_in_file(repo):
difference = []
for commit in repo.iter_commits():
difference = difference + [commit.summary + " made by " + commit.author.name + " on "
+ commit.authored_datetime.strftime('%d, %b %Y')]
return difference
def revert(repo, position):
x = 0
for commit in repo.iter_commits():
if int(position) > x:
repo.git.revert(commit, no_edit=True)
x += 1
|
"""
Problem Statement
Given an integer array, find and return all the subsets of the array.
The order of subsets in the output array is not important.
However the order of elements in a particular subset should remain the same as in the input array.
Note:
An empty set will be represented by an empty list.
If there are repeat integers, each occurrence must be treated as a separate entity.
Example 1
arr = [9, 9]
output = [[],
[9],
[9],
[9, 9]]
Example 2
arr = [9, 12, 15]
output = [[],
[15], # arr[len(arr) - 1: len(arr): 1]
[12], # arr[len(arr) - 2: len(arr) - 1: 1]
[12, 15], # arr[len(arr) - 2: len(arr): 1]
[9], # arr[len(arr) - 3: len(arr) - 2: 1]
[9, 15], # arr[len(arr) - 3: len(arr): 2]
[9, 12],
[9, 12, 15]] # arr[len(arr)- len(arr): len(arr)]
"""
def subsets(arr):
"""
:param: arr - input integer array
Return - list of lists (two dimensional array) where each list represents a subset
"""
# base condition
if len(arr) == 1:
# finalCompoundList.append(arr)
return [arr]
# must results final output after else statement
# otherwise it resets on final recursion call
output = [arr]
# slice_arr = slice(0, len(arr) - (len(arr) - 1))
for i in range(len(arr)):
output.append([arr[i]]) # add i element as list
temp = arr.copy()
temp.pop(i)
output.append(temp) # add array without i element as list
subsets(temp)
return output
|
class Solution:
def generateTrees(self, n: int) -> List[TreeNode]:
if n == 0:
return []
def generateTrees(mini: int, maxi: int) -> List[Optional[int]]:
if mini > maxi:
return [None]
ans = []
for i in range(mini, maxi + 1):
for left in generateTrees(mini, i - 1):
for right in generateTrees(i + 1, maxi):
ans.append(TreeNode(i))
ans[-1].left = left
ans[-1].right = right
return ans
return generateTrees(1, n)
|
input = """
up(L,0) | -up(L,0) :- latch(L).
latch(a).
latch(b).
latch(c).
"""
output = """
up(L,0) | -up(L,0) :- latch(L).
latch(a).
latch(b).
latch(c).
"""
|
def taskA(data):
difference = ord('a') - ord('A')
stack = []
for c in data:
if len(stack) == 0:
stack.append(c)
elif c != stack[-1] and (ord(c)+difference == ord(stack[-1]) or ord(c) == ord(stack[-1]) + difference):
stack.pop()
else:
stack.append(c)
return len(stack)
def taskBhelper(data,notC):
difference = ord('a') - ord('A')
stack = []
for c in data:
if difference + ord(c) != notC and ord(c) != notC:
if len(stack) == 0:
stack.append(c)
elif c != stack[-1] and (ord(c)+difference == ord(stack[-1]) or ord(c) == ord(stack[-1]) + difference):
stack.pop()
else:
stack.append(c)
return len(stack)
def taskB(data):
min = 999999999
for letter in range(ord('a'),ord('z')+1):
result = taskBhelper(data,letter)
if min > result:
min = result
return min
with open("input.txt") as input:
data = input.read()
print(taskA(data))
print(taskB(data))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.