hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
5fcb6ee636bc08393dd59367cd3793d5f1df9ced
346
py
Python
bsc_crawler.py
mgteus/Easy_BSC_Scan
47dbf13ad19f9c9bc8b8df7dde8b9427d9e22c79
[ "MIT" ]
1
2022-03-26T03:42:34.000Z
2022-03-26T03:42:34.000Z
bsc_crawler.py
mgteus/Easy_BSC_Scan
47dbf13ad19f9c9bc8b8df7dde8b9427d9e22c79
[ "MIT" ]
null
null
null
bsc_crawler.py
mgteus/Easy_BSC_Scan
47dbf13ad19f9c9bc8b8df7dde8b9427d9e22c79
[ "MIT" ]
null
null
null
import selenium """ Usar o selenium pra fazer um crawler pegar as carteiras com maiores taxas de holding de cada token, e com isso ir buscando as infos de trade de cada carteira encontrada --------------------------{========= contract address =============} https://bscscan.com/token/0x00e1656e45f18ec6747F5a8496Fd39B50b38396D#balances """
24.714286
80
0.682081
41
346
5.756098
0.780488
0.050847
0
0
0
0
0
0
0
0
0
0.096667
0.132948
346
14
81
24.714286
0.69
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
5fd25f2f8969cf7ee357f652a304e953857effa5
881
py
Python
ulord/ulord/forms/role.py
monotone/Ulord-platform
8ec19bbb8845db8f22df925d33b118b22dab0d0b
[ "MIT" ]
28
2018-04-27T08:02:18.000Z
2020-01-14T05:08:34.000Z
ulord/ulord/forms/role.py
monotone/Ulord-platform
8ec19bbb8845db8f22df925d33b118b22dab0d0b
[ "MIT" ]
2
2018-05-16T08:29:20.000Z
2018-06-17T04:51:08.000Z
ulord/ulord/forms/role.py
monotone/Ulord-platform
8ec19bbb8845db8f22df925d33b118b22dab0d0b
[ "MIT" ]
4
2018-05-14T11:43:31.000Z
2018-09-29T09:58:58.000Z
# -*- coding: utf-8 -*- # @Date : 2018/3/29 # @Author : Shu # @Email : httpservlet@yeah.net from flask_wtf import FlaskForm from wtforms import StringField, IntegerField from wtforms.validators import Email, DataRequired, Length, Optional from .validators import Unique,Exists from ulord.models import Role __all__ = ['AddRoleForm','EditRoleForm','RemoveRoleForm'] class AddRoleForm(FlaskForm): name = StringField('name', validators=[DataRequired(), Length(max=32), Unique(Role, Role.name)]) des = StringField('des', validators=[DataRequired(), Length(max=500)]) class EditRoleForm(FlaskForm): id = IntegerField('id', validators=[DataRequired(),Exists(Role,Role.id)]) des = StringField('des', validators=[DataRequired(), Length(max=500)]) class RemoveRoleForm(FlaskForm): id = IntegerField('id', validators=[DataRequired(), Exists(Role, Role.id)])
33.884615
100
0.725312
100
881
6.34
0.41
0.173502
0.132492
0.146688
0.375394
0.375394
0.375394
0.375394
0.375394
0.198738
0
0.020752
0.124858
881
25
101
35.24
0.801556
0.101022
0
0.285714
0
0
0.064886
0
0
0
0
0
0
1
0
false
0
0.357143
0
0.928571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
395cf9863ec800b33c5e6222667d7e925c58af62
1,283
py
Python
test/test_module.py
Kriegbaum/OpcBridge
6af5416acee35c3fb87754824dbd1f23f549c13e
[ "MIT" ]
null
null
null
test/test_module.py
Kriegbaum/OpcBridge
6af5416acee35c3fb87754824dbd1f23f549c13e
[ "MIT" ]
null
null
null
test/test_module.py
Kriegbaum/OpcBridge
6af5416acee35c3fb87754824dbd1f23f549c13e
[ "MIT" ]
null
null
null
import opcBridge def test_makeEightBit(): assert opcBridge.makeEightBit(3666) == 255 def test_rgbSetBrightness(): assert opcBridge.rgbSetBrightness(255, [1,1,1]) == [255,255,255] assert opcBridge.rgbSetBrightness(255, [0,0,0]) == [0,0,0] assert opcBridge.rgbSetBrightness(0, [255,255,255]) == [0,0,0] def test_brightnessChange(): assert opcBridge.brightnessChange([128,128,128], 0) == [128,128,128] assert opcBridge.brightnessChange([128,128,128], 255) == [255,255,255] assert opcBridge.brightnessChange([50,50,50], -128) == [1,1,1] def test_getLocalIP(): assert type(opcBridge.getLocalIP()) == str def test_PSU(): psu = opcBridge.PSU('127.0.0.1', 1) assert psu.checkPixels([[0,0,0]] * 512) == False assert psu.checkPixels(([[0,0,0]] * 512) + [[0,0,1]]) == True psu.switch(False) def test_renderer(): renderer = opcBridge.Renderer(16) renderer.commands.put([renderer.relativeFade, [12, [0], 5]]) renderer.commands.put([renderer.absoluteFade, [[255,255,255], [1], 0]]) renderer.commands.put([renderer.multiCommand, [[[[2], [128,128,128], 2]]]]) renderer.executeCommands() assert renderer.remaining[0] == 5 * renderer.frameRate assert renderer.endVals[1][0] == 255 assert renderer.remaining[1] == 2
37.735294
79
0.666407
172
1,283
4.936047
0.22093
0.030624
0.024735
0.014134
0.219081
0.155477
0.061249
0
0
0
0
0.141423
0.145752
1,283
33
80
38.878788
0.633212
0
0
0
0
0
0.007015
0
0
0
0
0
0.481481
1
0.222222
false
0
0.037037
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
2
39608819b735e94c6d8cbbfbfec37fc27c4fc2e6
597
py
Python
src/modeling/bert/__init__.py
microsoft/MeshGraphormer
1c489e35e6bd3848ce0702891e4c8365b584bb8e
[ "MIT" ]
135
2021-08-18T01:27:41.000Z
2022-03-28T05:34:15.000Z
src/modeling/bert/__init__.py
microsoft/MeshGraphormer
1c489e35e6bd3848ce0702891e4c8365b584bb8e
[ "MIT" ]
14
2021-09-08T12:12:20.000Z
2022-03-30T07:34:06.000Z
src/modeling/bert/__init__.py
microsoft/MeshGraphormer
1c489e35e6bd3848ce0702891e4c8365b584bb8e
[ "MIT" ]
13
2021-10-11T10:29:32.000Z
2022-03-19T09:37:45.000Z
__version__ = "1.0.0" from .modeling_bert import (BertConfig, BertModel, load_tf_weights_in_bert, BERT_PRETRAINED_MODEL_ARCHIVE_MAP, BERT_PRETRAINED_CONFIG_ARCHIVE_MAP) from .modeling_graphormer import Graphormer from .e2e_body_network import Graphormer_Body_Network from .e2e_hand_network import Graphormer_Hand_Network from .modeling_utils import (WEIGHTS_NAME, CONFIG_NAME, TF_WEIGHTS_NAME, PretrainedConfig, PreTrainedModel, prune_layer, Conv1D) from .file_utils import (PYTORCH_PRETRAINED_BERT_CACHE, cached_path)
35.117647
82
0.758794
72
597
5.777778
0.486111
0.086538
0.110577
0
0
0
0
0
0
0
0
0.012474
0.194305
597
16
83
37.3125
0.852391
0
0
0
0
0
0.008375
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3963406543bdb78d8e057d08f66105757555733c
492
py
Python
Dataset/Leetcode/train/6/469.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/6/469.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/6/469.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, s: str, numRows: int) -> str: if numRows==1 or numRows>=len(s): return s result='' for j in range(numRows): i=j for u in range(len(s)): if 0<j<numRows-1: w=(i-2*j) if 0<w<len(s): result+=s[w] if i<len(s): result+=s[i] i+=(2*numRows-2) return result
25.894737
47
0.365854
63
492
2.857143
0.380952
0.088889
0.111111
0.122222
0
0
0
0
0
0
0
0.029046
0.510163
492
18
48
27.333333
0.717842
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
39649a615a7bc69c3b7a57860929d0dbfe5c0f92
1,118
py
Python
lab_4.py
daniel21-meet/meet2019y1lab4
bc5b6221f4cc1e354906417af38b0721c5782723
[ "MIT" ]
null
null
null
lab_4.py
daniel21-meet/meet2019y1lab4
bc5b6221f4cc1e354906417af38b0721c5782723
[ "MIT" ]
null
null
null
lab_4.py
daniel21-meet/meet2019y1lab4
bc5b6221f4cc1e354906417af38b0721c5782723
[ "MIT" ]
null
null
null
""" import turtle turtle.shape ('turtle') d = turtle.clone () d.shape ('square') d.goto (100,100) d.penup () d.goto (0,0) d.pendown () d.goto (100,0) d.goto (100,100) d.goto (0,100) d.goto (0,0) c = turtle.Turtle () c.shape ('triangle') c.goto (50,100) c.goto (100,0) c.goto (0,0) d.goto (300,300) d.stamp () d.goto(100,100) turtle.stamp () turtle.goto (0,300) turtle.clearstamps () turtle.mainloop """ """ import turtle d = turtle.Turtle() d.color ('white') turtle.left (90) turtle.color ('blue') turtle.shape ('arrow') d.shape ('circle') turtle.bgcolor ('purple') d.pencolor ('yellow') d.pensize(3) d.goto (0,100) turtle.pensize (6) turtle.pencolor ('green') turtle.goto (0,-100) turtle.goto (50,-100) d.goto (-50,100) d.pencolor ('white') d.goto (-50,0) turtle.pencolor ('blue') turtle.goto(50,0) """ import turtle def up(): turtle.forward (50) def down(): turtle.back (50) def left(): turtle.left(45) def right(): turtle.right (45) turtle.onkeypress(up, "w") turtle.onkeypress(down, "s") turtle.onkeypress(left, "a") turtle.onkeypress(right, "d") turtle.listen () turtle.mainloop
16.202899
29
0.649374
184
1,118
3.945652
0.244565
0.075758
0.044077
0.045455
0.033058
0
0
0
0
0
0
0.090343
0.13864
1,118
68
30
16.441176
0.663551
0.354204
0
0
0
0
0.013289
0
0
0
0
0
0
1
0.266667
true
0
0.066667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
2
3965ce0ed8f74a971f242d8b6588fb9a28df01d2
1,221
py
Python
logo/templatetags/logo_extras.py
dmitryro/zrealtycorp.com
22cb52187b3787676c0ad4ca278189323cec8f24
[ "MIT" ]
1
2018-02-21T21:25:40.000Z
2018-02-21T21:25:40.000Z
logo/templatetags/logo_extras.py
dmitryro/zrealtycorp.com
22cb52187b3787676c0ad4ca278189323cec8f24
[ "MIT" ]
null
null
null
logo/templatetags/logo_extras.py
dmitryro/zrealtycorp.com
22cb52187b3787676c0ad4ca278189323cec8f24
[ "MIT" ]
null
null
null
import logging import re import sys from urlparse import urlparse from django.template import Library, Node, NodeList, TemplateSyntaxError from django.utils.encoding import smart_str from logo.models import Logo from tagging.models import Tag, TaggedItem from django import template from django.template.defaultfilters import stringfilter from PIL import Image,ImageEnhance import urllib2 as urllib from cStringIO import StringIO from zrealty.settings import MEDIA_URL register = template.Library() kw_pat = re.compile(r'^(?P<key>[\w]+)=(?P<value>.+)$') logger = logging.getLogger('sorl.thumbnail') """ Get the logo meta """ @register.simple_tag def logo_meta(a, b, *args, **kwargs): try: logo = Logo.objects.get(id=int(a)) if (b==1): return logo.title elif (b==2): return logo.version elif (b==3): return logo.logo_thumbnail.url elif (b==4): return logo.logo_thumbnail.height elif (b==5): return logo.logo_thumbnail.width elif (b==6): return logo.slogan except TypeError: print "Invalid argument type" except NameError: print "No result for this id"
24.918367
72
0.666667
161
1,221
5.006211
0.534161
0.074442
0.052109
0.085608
0
0
0
0
0
0
0
0.007495
0.235053
1,221
48
73
25.4375
0.85546
0
0
0
0
0
0.071967
0.025105
0
0
0
0
0
0
null
null
0
0.378378
null
null
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
3969afd910dcaafb16ecfeab1be25d1723f94bed
403
py
Python
src/squad/engine/messaging/messages.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/engine/messaging/messages.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/engine/messaging/messages.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
from squad.constants import Leg from .base import Message class ServoAngleMessage(Message): """ Servo angle data message. """ leg: Leg theta_hip: float theta_femur: float theta_leg: float class ImuDataMessage(Message): """ IMU data message. """ accel_x: float accel_y: float accel_z: float d_roll: float d_pitch: float d_yaw: float
14.392857
33
0.637717
51
403
4.862745
0.509804
0.072581
0
0
0
0
0
0
0
0
0
0
0.282878
403
27
34
14.925926
0.858131
0.1067
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.142857
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
3969bd2fd23c6d1ac52f076a83083139b3bc56c9
9,567
py
Python
pysnmp-with-texts/HH3C-VOICE-IF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/HH3C-VOICE-IF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/HH3C-VOICE-IF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HH3C-VOICE-IF-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-VOICE-IF-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:30:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint") hh3cVoice, = mibBuilder.importSymbols("HH3C-OID-MIB", "hh3cVoice") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") ObjectIdentity, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Unsigned32, MibIdentifier, Bits, TimeTicks, Gauge32, NotificationType, IpAddress, Counter64, ModuleIdentity, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Unsigned32", "MibIdentifier", "Bits", "TimeTicks", "Gauge32", "NotificationType", "IpAddress", "Counter64", "ModuleIdentity", "Integer32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") hh3cVoiceInterface = ModuleIdentity((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13)) hh3cVoiceInterface.setRevisions(('2007-12-10 17:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hh3cVoiceInterface.setRevisionsDescriptions(('The initial version of this MIB file.',)) if mibBuilder.loadTexts: hh3cVoiceInterface.setLastUpdated('200712101700Z') if mibBuilder.loadTexts: hh3cVoiceInterface.setOrganization('Hangzhou H3C Technologies Co., Ltd.') if mibBuilder.loadTexts: hh3cVoiceInterface.setContactInfo('Platform Team H3C Technologies Co., Ltd. Hai-Dian District Beijing P.R. China Http://www.hh3c.com Zip:100085') if mibBuilder.loadTexts: hh3cVoiceInterface.setDescription('This MIB file is to provide the definition of the voice interface general configuration.') hh3cVoiceIfObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1)) hh3cVoiceIfConfigTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1), ) if mibBuilder.loadTexts: hh3cVoiceIfConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfConfigTable.setDescription('The table contains configurable parameters for both analog voice interface and digital voice interface.') hh3cVoiceIfConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hh3cVoiceIfConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfConfigEntry.setDescription('The entry of voice interface table.') hh3cVoiceIfCfgCngOn = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgCngOn.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgCngOn.setDescription('This object indicates whether the silence gaps should be filled with background noise. It is applicable to FXO, FXS, E&M subscriber lines and E1/T1 voice subscriber line.') hh3cVoiceIfCfgNonLinearSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgNonLinearSwitch.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgNonLinearSwitch.setDescription('This object expresses the nonlinear processing is enable or disable for the voice interface. It is applicable to FXO, FXS, E&M subscriber lines and E1/T1 voice subscriber line. Currently, only digital voice subscriber lines can be set disabled.') hh3cVoiceIfCfgInputGain = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-140, 139))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgInputGain.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgInputGain.setDescription('This object indicates the amount of gain added to the receiver side of the voice interface. Unit is 0.1 db. It is applicable to FXO, FXS, E&M subscriber lines and E1/T1 voice subscriber line.') hh3cVoiceIfCfgOutputGain = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-140, 139))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgOutputGain.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgOutputGain.setDescription('This object indicates the amount of gain added to the send side of the voice interface. Unit is 0.1 db. It is applicable to FXO, FXS, E&M subscriber lines and E1/T1 voice subscriber line.') hh3cVoiceIfCfgEchoCancelSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgEchoCancelSwitch.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgEchoCancelSwitch.setDescription('This object indicates whether the echo cancellation is enabled. It is applicable to FXO, FXS, E&M subscriber lines and E1/T1 voice subscriber line.') hh3cVoiceIfCfgEchoCancelDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgEchoCancelDelay.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgEchoCancelDelay.setDescription("This object indicates the delay of the echo cancellation for the voice interface. This value couldn't be modified unless hh3cVoiceIfCfgEchoCancelSwitch is enable. Unit is milliseconds. It is applicable to FXO, FXS, E&M subscriber lines and E1/T1 voice subscriber line. The default value of this object is 32.") hh3cVoiceIfCfgTimerDialInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 300))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgTimerDialInterval.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgTimerDialInterval.setDescription('The interval, in seconds, between two dialing numbers. The default value of this object is 10 seconds. It is applicable to FXO, FXS, E&M subscriber lines and E1/T1 with loop-start or ground-start protocol voice subscriber line.') hh3cVoiceIfCfgTimerFirstDial = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 300))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgTimerFirstDial.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgTimerFirstDial.setDescription('The period of time, in seconds, before dialing the first number. The default value of this object is 10 seconds. It is applicable to FXO, FXS subscriber lines and E1/T1 with loop-start or ground-start protocol voice subscriber line.') hh3cVoiceIfCfgPrivateline = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgPrivateline.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgPrivateline.setDescription('This object indicates the E.164 phone number for plar mode. It is applicable to FXO, FXS, E&M subscriber lines and E1/T1 voice subscriber line.') hh3cVoiceIfCfgRegTone = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 39, 13, 1, 1, 1, 10), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0, 0), ValueSizeConstraint(2, 3), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cVoiceIfCfgRegTone.setStatus('current') if mibBuilder.loadTexts: hh3cVoiceIfCfgRegTone.setDescription('This object uses 2 or 3 letter country code specify voice parameters of different countrys. This value will take effect on all voice interfaces of all cards on the device.') mibBuilder.exportSymbols("HH3C-VOICE-IF-MIB", hh3cVoiceInterface=hh3cVoiceInterface, hh3cVoiceIfCfgNonLinearSwitch=hh3cVoiceIfCfgNonLinearSwitch, hh3cVoiceIfCfgCngOn=hh3cVoiceIfCfgCngOn, hh3cVoiceIfObjects=hh3cVoiceIfObjects, hh3cVoiceIfCfgPrivateline=hh3cVoiceIfCfgPrivateline, hh3cVoiceIfCfgOutputGain=hh3cVoiceIfCfgOutputGain, hh3cVoiceIfCfgRegTone=hh3cVoiceIfCfgRegTone, hh3cVoiceIfCfgEchoCancelSwitch=hh3cVoiceIfCfgEchoCancelSwitch, hh3cVoiceIfConfigTable=hh3cVoiceIfConfigTable, hh3cVoiceIfCfgInputGain=hh3cVoiceIfCfgInputGain, hh3cVoiceIfCfgEchoCancelDelay=hh3cVoiceIfCfgEchoCancelDelay, hh3cVoiceIfCfgTimerFirstDial=hh3cVoiceIfCfgTimerFirstDial, hh3cVoiceIfCfgTimerDialInterval=hh3cVoiceIfCfgTimerDialInterval, PYSNMP_MODULE_ID=hh3cVoiceInterface, hh3cVoiceIfConfigEntry=hh3cVoiceIfConfigEntry)
151.857143
802
0.796279
1,130
9,567
6.739823
0.231858
0.045693
0.079963
0.007353
0.454175
0.343881
0.332589
0.328782
0.328782
0.328782
0
0.063233
0.090833
9,567
62
803
154.306452
0.812371
0.034285
0
0
0
0.203704
0.346371
0.008017
0
0
0
0
0
1
0
false
0
0.148148
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
396eae1c8a0ca7127ef95513409ea81661aa7996
275
py
Python
api/anomaly/migrations/0017_merge_20210810_0524.py
LeiSoft/CueObserve
cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e
[ "Apache-2.0" ]
149
2021-07-16T13:37:30.000Z
2022-03-21T10:13:15.000Z
api/anomaly/migrations/0017_merge_20210810_0524.py
LeiSoft/CueObserve
cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e
[ "Apache-2.0" ]
61
2021-07-15T06:39:05.000Z
2021-12-27T06:58:10.000Z
api/anomaly/migrations/0017_merge_20210810_0524.py
LeiSoft/CueObserve
cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e
[ "Apache-2.0" ]
22
2021-07-19T07:20:49.000Z
2022-03-21T10:13:16.000Z
# Generated by Django 3.2.1 on 2021-08-10 05:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('anomaly', '0015_merge_20210806_0248'), ('anomaly', '0016_merge_20210806_1138'), ] operations = [ ]
18.333333
48
0.650909
33
275
5.242424
0.818182
0.150289
0
0
0
0
0
0
0
0
0
0.221698
0.229091
275
14
49
19.642857
0.59434
0.163636
0
0
1
0
0.27193
0.210526
0
0
0
0
0
1
0
false
0
0.125
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
39814f5d4d52d557ef6bc63b08a7ae1b8f143329
3,391
py
Python
mri/test/test_wavelet_adjoint.py
sfarrens/pysap-mri
08efd564606f7ef3bb16e1eff1fcddadd36d1e8c
[ "CECILL-B" ]
null
null
null
mri/test/test_wavelet_adjoint.py
sfarrens/pysap-mri
08efd564606f7ef3bb16e1eff1fcddadd36d1e8c
[ "CECILL-B" ]
null
null
null
mri/test/test_wavelet_adjoint.py
sfarrens/pysap-mri
08efd564606f7ef3bb16e1eff1fcddadd36d1e8c
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################## # pySAP - Copyright (C) CEA, 2017 - 2018 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ########################################################################## # System import import unittest import numpy # Package import from mri.reconstruct.linear import WaveletN class TestAdjointOperatorWaveletTransform(unittest.TestCase): """ Test the adjoint operator of the Wavelets both for 2D and 3D. """ def setUp(self): """ Set the number of iterations. """ self.N = 64 self.max_iter = 10 def test_Wavelet2D_ISAP(self): """Test the adjoint operator for the 2D Wavelet transform """ for i in range(self.max_iter): print("Process Wavelet2D_ISAP test '{0}'...", i) wavelet_op_adj = WaveletN(wavelet_name="HaarWaveletTransform", nb_scale=4) Img = (numpy.random.randn(self.N, self.N) + 1j * numpy.random.randn(self.N, self.N)) f_p = wavelet_op_adj.op(Img) f = (numpy.random.randn(*f_p.shape) + 1j * numpy.random.randn(*f_p.shape)) I_p = wavelet_op_adj.adj_op(f) x_d = numpy.vdot(Img, I_p) x_ad = numpy.vdot(f_p, f) numpy.testing.assert_allclose(x_d, x_ad, rtol=1e-6) print(" Wavelet2 adjoint test passes") def test_Wavelet2D_PyWt(self): """Test the adjoint operator for the 2D Wavelet transform """ for i in range(self.max_iter): print("Process Wavelet2D PyWt test '{0}'...", i) wavelet_op_adj = WaveletN(wavelet_name="sym8", nb_scale=4) Img = (numpy.random.randn(self.N, self.N) + 1j * numpy.random.randn(self.N, self.N)) f_p = wavelet_op_adj.op(Img) f = (numpy.random.randn(*f_p.shape) + 1j * numpy.random.randn(*f_p.shape)) I_p = wavelet_op_adj.adj_op(f) x_d = numpy.vdot(Img, I_p) x_ad = numpy.vdot(f_p, f) numpy.testing.assert_allclose(x_d, x_ad, rtol=1e-6) print(" Wavelet2 adjoint test passes") def test_Wavelet3D_PyWt(self): """Test the adjoint operator for the 3D Wavelet transform """ for i in range(self.max_iter): print("Process Wavelet3D PyWt test '{0}'...", i) wavelet_op_adj = WaveletN(wavelet_name="sym8", nb_scale=4, dim=3, padding_mode='periodization') Img = (numpy.random.randn(self.N, self.N, self.N) + 1j * numpy.random.randn(self.N, self.N, self.N)) f_p = wavelet_op_adj.op(Img) f = (numpy.random.randn(*f_p.shape) + 1j * numpy.random.randn(*f_p.shape)) I_p = wavelet_op_adj.adj_op(f) x_d = numpy.vdot(Img, I_p) x_ad = numpy.vdot(f_p, f) numpy.testing.assert_allclose(x_d, x_ad, rtol=1e-6) print(" Wavelet3 adjoint test passes") if __name__ == "__main__": unittest.main()
39.430233
74
0.538484
443
3,391
3.936795
0.259594
0.043005
0.110092
0.045872
0.663991
0.663991
0.663991
0.663991
0.639335
0.606078
0
0.020824
0.306104
3,391
85
75
39.894118
0.720357
0.171631
0
0.618182
0
0
0.092917
0
0
0
0
0
0.054545
1
0.072727
false
0.054545
0.054545
0
0.145455
0.109091
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
398def066bd0c8e7e197dbd11969017bc8010d4d
7,406
py
Python
test_modelprovider.py
gfzriesgos/assetmaster
67d423f945fe5b1443160ce7c152fe8d3583f3b1
[ "Apache-2.0" ]
null
null
null
test_modelprovider.py
gfzriesgos/assetmaster
67d423f945fe5b1443160ce7c152fe8d3583f3b1
[ "Apache-2.0" ]
1
2019-10-28T13:06:22.000Z
2019-10-28T13:06:22.000Z
test_modelprovider.py
gfzriesgos/assetmaster
67d423f945fe5b1443160ce7c152fe8d3583f3b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright © 2021 Helmholtz Centre Potsdam GFZ German Research Centre for Geosciences, Potsdam, Germany # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ Test cases for testing the model provider module. """ import unittest import pandas as pd import geopandas as gpd from shapely.geometry import box import modelprovider class TestMultiModelProvider(unittest.TestCase): """ Test case for the MultiModelProvider class. """ def setUp(self): """ Sets up the multi model setting. """ # ~~ germany geom1 = self._geom_from_bounding_box(lonmin=50, lonmax=55, latmin=10, latmax=15) # ~~ chile geom2 = self._geom_from_bounding_box( lonmin=-80, lonmax=-65, latmin=-70, latmax=-30 ) df1 = pd.DataFrame({"name": ["germany"], "geometry": [geom1]}) df2 = pd.DataFrame({"name": ["chile"], "geometry": [geom2]}) crs = {"init": 3226} gdf1 = gpd.GeoDataFrame(df1, crs=crs, geometry=df1["geometry"]) gdf2 = gpd.GeoDataFrame(df2, crs=crs, geometry=df2["geometry"]) model_provider1 = modelprovider.ModelProvider(gdf1) model_provider2 = modelprovider.ModelProvider(gdf2) self.model_provider = modelprovider.MultiModelProvider( models=[model_provider1, model_provider2] ) # search for the whole world self.roi_world = gpd.GeoDataFrame( index=[0], crs=crs, geometry=[ self._geom_from_bounding_box( lonmin=-180, lonmax=180, latmin=-90, latmax=90 ) ], ) # search only for NE hemisphere self.roi_ne = gpd.GeoDataFrame( index=[0], crs=crs, geometry=[ self._geom_from_bounding_box(lonmin=0, lonmax=180, latmin=0, latmax=90) ], ) self.roi_smaller_g = gpd.GeoDataFrame( index=[0], crs=crs, geometry=[ self._geom_from_bounding_box(lonmin=51, lonmax=54, latmin=11, latmax=14) ], ) def _geom_from_bounding_box(self, lonmin, lonmax, latmin, latmax): self.assertLess(lonmin, lonmax) self.assertLess(latmin, latmax) return box(minx=lonmin, maxx=lonmax, miny=latmin, maxy=latmax) def test_within(self): """ Tests the within method. It should only give back the elements from the model if the elements are completely in the roi. """ models_within_world = self.model_provider.within(self.roi_world) models_within_ne = self.model_provider.within(self.roi_ne) models_within_smaller_g = self.model_provider.within(self.roi_smaller_g) self.assertEqual(len(models_within_world), 2) self.assertEqual(len(models_within_ne), 1) self.assertEqual(len(models_within_smaller_g), 0) self.assertEqual(type(models_within_world), gpd.GeoDataFrame) def test_intersects(self): """ Tests the intersection method. It should only give back the elements from the model that intersects with the roi. """ models_intersection_world = self.model_provider.intersects(self.roi_world) models_intersection_ne = self.model_provider.intersects(self.roi_ne) models_intersection_smaller_g = self.model_provider.intersects( self.roi_smaller_g ) self.assertEqual(len(models_intersection_world), 2) self.assertEqual(len(models_intersection_ne), 1) self.assertEqual(len(models_intersection_smaller_g), 1) self.assertEqual(type(models_intersection_world), gpd.GeoDataFrame) class TestModelProvider(unittest.TestCase): """ Test case for the ModelProvider class. """ def setUp(self): """ Sets one geodataframe and the model provider instance. """ # ~~ germany geom1 = self._geom_from_bounding_box(lonmin=50, lonmax=55, latmin=10, latmax=15) # ~~ chile geom2 = self._geom_from_bounding_box( lonmin=-80, lonmax=-65, latmin=-70, latmax=-30 ) df = pd.DataFrame({"name": ["germany", "chile"], "geometry": [geom1, geom2]}) crs = {"init": 3226} gdf = gpd.GeoDataFrame(df, crs=crs, geometry=df["geometry"]) self.model_provider = modelprovider.ModelProvider(gdf) # search for the whole world self.roi_world = gpd.GeoDataFrame( index=[0], crs=crs, geometry=[ self._geom_from_bounding_box( lonmin=-180, lonmax=180, latmin=-90, latmax=90 ) ], ) # search only for NE hemisphere self.roi_ne = gpd.GeoDataFrame( index=[0], crs=crs, geometry=[ self._geom_from_bounding_box(lonmin=0, lonmax=180, latmin=0, latmax=90) ], ) self.roi_smaller_g = gpd.GeoDataFrame( index=[0], crs=crs, geometry=[ self._geom_from_bounding_box(lonmin=51, lonmax=54, latmin=11, latmax=14) ], ) def _geom_from_bounding_box(self, lonmin, lonmax, latmin, latmax): self.assertLess(lonmin, lonmax) self.assertLess(latmin, latmax) return box(minx=lonmin, maxx=lonmax, miny=latmin, maxy=latmax) def test_within(self): """ Tests the within method. It should only give back the elements from the model if the elements are completely in the roi. """ models_within_world = self.model_provider.within(self.roi_world) models_within_ne = self.model_provider.within(self.roi_ne) models_within_smaller_g = self.model_provider.within(self.roi_smaller_g) self.assertEqual(len(models_within_world), 2) self.assertEqual(len(models_within_ne), 1) self.assertEqual(len(models_within_smaller_g), 0) self.assertEqual(type(models_within_world), gpd.GeoDataFrame) def test_intersects(self): """ Tests the intersection method. It should only give back the elements from the model that intersects with the roi. """ models_intersection_world = self.model_provider.intersects(self.roi_world) models_intersection_ne = self.model_provider.intersects(self.roi_ne) models_intersection_smaller_g = self.model_provider.intersects( self.roi_smaller_g ) self.assertEqual(len(models_intersection_world), 2) self.assertEqual(len(models_intersection_ne), 1) self.assertEqual(len(models_intersection_smaller_g), 1) self.assertEqual(type(models_intersection_world), gpd.GeoDataFrame) if __name__ == "__main__": unittest.main()
33.817352
307
0.63273
878
7,406
5.149203
0.203872
0.02787
0.052643
0.050431
0.707808
0.698518
0.685247
0.685247
0.685247
0.685247
0
0.025741
0.270861
7,406
218
308
33.972477
0.811296
0.200918
0
0.731707
0
0
0.017683
0
0
0
0
0
0.162602
1
0.065041
false
0
0.04065
0
0.138211
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
399019d631ac8f10351b4b4b03e6a602f43aa33a
470
py
Python
mute/container/container.py
LZJ861124/mute
f278d9cd2e9c1a4551d5ecdffde919d22ab2f6bb
[ "MIT" ]
null
null
null
mute/container/container.py
LZJ861124/mute
f278d9cd2e9c1a4551d5ecdffde919d22ab2f6bb
[ "MIT" ]
null
null
null
mute/container/container.py
LZJ861124/mute
f278d9cd2e9c1a4551d5ecdffde919d22ab2f6bb
[ "MIT" ]
null
null
null
from __future__ import annotations from element.element import Element from logcat.logcat import LogCat class Container(Element): def __init__(self, x=0, y=0, width=1, height=1): super().__init__(x, y, width, height) self._elements = [] @LogCat.log_func def add(self, element) -> Container: self._elements.append(element) return self @property def elements(self): return self._elements # container.py
18.8
52
0.661702
59
470
5
0.440678
0.122034
0
0
0
0
0
0
0
0
0
0.011173
0.238298
470
24
53
19.583333
0.812849
0.025532
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.214286
0.071429
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
399c6c8553af344b1be2890f67343c4e398634fc
11,824
py
Python
tests/test_journal/test_pages.py
tembo-core/tembo-notes
3905c61b4da1734d256cf993cc1d265e2a072ec4
[ "0BSD" ]
1
2021-11-11T18:48:53.000Z
2021-11-11T18:48:53.000Z
tests/test_journal/test_pages.py
tembo-core/tembo-notes
3905c61b4da1734d256cf993cc1d265e2a072ec4
[ "0BSD" ]
14
2021-11-15T22:11:21.000Z
2021-12-26T19:55:20.000Z
tests/test_journal/test_pages.py
tembo-core/tembo-notes
3905c61b4da1734d256cf993cc1d265e2a072ec4
[ "0BSD" ]
1
2021-11-21T22:35:22.000Z
2021-11-21T22:35:22.000Z
from datetime import date import pathlib import pytest from tembo import PageCreatorOptions, ScopedPageCreator from tembo import exceptions from tembo.utils import Success DATE_TODAY = date.today().strftime("%d-%m-%Y") def test_create_page_base_path_does_not_exist(tmpdir): # arrange base_path = str(tmpdir / "nonexistent" / "path") options = PageCreatorOptions( base_path=base_path, page_path="", filename="", extension="", name="", user_input=None, example=None, template_filename=None, template_path=None, ) # act with pytest.raises( exceptions.BasePathDoesNotExistError ) as base_path_does_not_exist_error: scoped_page = ScopedPageCreator(options).create_page() # assert assert ( str(base_path_does_not_exist_error.value) == f"Tembo base path of {base_path} does not exist." ) @pytest.mark.parametrize("template_path", [(None), ("/nonexistent/path")]) def test_create_page_template_file_does_not_exist(template_path, tmpdir): # arrange options = PageCreatorOptions( base_path=str(tmpdir), page_path="some_path", filename="some_filename", extension="some_extension", name="some_name", user_input=None, example=None, template_filename="template.md.tpl", template_path=template_path, ) # act with pytest.raises( exceptions.TemplateFileNotFoundError ) as template_file_not_found_error: scoped_page = ScopedPageCreator(options).create_page() # assert if template_path is None: assert str(template_file_not_found_error.value) == ( f"Template file {options.base_path}/.templates/{options.template_filename} does not exist." ) else: assert str(template_file_not_found_error.value) == ( f"Template file {template_path}/{options.template_filename} does not exist." ) def test_create_page_already_exists(datadir): # arrange options = PageCreatorOptions( base_path=str(datadir), page_path="does_exist", filename="some_note", extension="md", name="some_name", user_input=None, example=None, template_filename=None, template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path / options.filename ).with_suffix(f".{options.extension}") # act scoped_page = ScopedPageCreator(options).create_page() with pytest.raises(exceptions.ScopedPageAlreadyExists) as page_already_exists: result = scoped_page.save_to_disk() # assert assert scoped_page_file.exists() assert str(page_already_exists.value) == f"{scoped_page_file} already exists" with scoped_page_file.open("r", encoding="utf-8") as scoped_page_contents: assert scoped_page_contents.readlines() == ["this file already exists\n"] def test_create_page_without_template(tmpdir): # arrange options = PageCreatorOptions( base_path=str(tmpdir), page_path="some_path", filename="some_filename", extension="some_extension", name="some_name", user_input=None, example=None, template_filename=None, template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path / options.filename ).with_suffix(f".{options.extension}") # act scoped_page = ScopedPageCreator(options).create_page() result = scoped_page.save_to_disk() # assert assert scoped_page_file.exists() assert isinstance(result, Success) assert result.message == str(scoped_page_file) with scoped_page_file.open("r", encoding="utf-8") as scoped_page_contents: assert scoped_page_contents.readlines() == [] def test_create_page_with_template(datadir, caplog): # arrange options = PageCreatorOptions( base_path=str(datadir), page_path="some_path", filename="some_note", extension="md", name="some_name", user_input=None, example=None, template_filename="some_template_no_tokens.md.tpl", template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path / options.filename ).with_suffix(f".{options.extension}") # act scoped_page = ScopedPageCreator(options).create_page() result = scoped_page.save_to_disk() # assert assert scoped_page_file.exists() assert isinstance(result, Success) assert result.message == str(scoped_page_file) with scoped_page_file.open("r", encoding="utf-8") as scoped_page_contents: assert scoped_page_contents.readlines() == [ "scoped page file\n", "\n", "no tokens", ] @pytest.mark.parametrize( "user_input,template_filename,page_contents", [ (None, "some_template_date_tokens.md.tpl", f"some date token: {DATE_TODAY}"), ( ("first_input", "second_input"), "some_template_input_tokens.md.tpl", "some input tokens second_input first_input", ), (None, "some_template_name_tokens.md.tpl", "some name token some_name"), ], ) def test_create_tokened_page_tokens_in_template( datadir, caplog, user_input, template_filename, page_contents ): # arrange options = PageCreatorOptions( base_path=str(datadir), page_path="some_path", filename="some_note", extension="md", name="some_name", user_input=user_input, example=None, template_filename=template_filename, template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path / options.filename ).with_suffix(f".{options.extension}") # act scoped_page = ScopedPageCreator(options).create_page() result = scoped_page.save_to_disk() # assert assert scoped_page_file.exists() assert isinstance(result, Success) assert result.message == str(scoped_page_file) with scoped_page_file.open("r", encoding="utf-8") as scoped_page_contents: assert scoped_page_contents.readline() == page_contents @pytest.mark.parametrize( "user_input,filename,tokened_filename", [ (None, "date_token_{d:%d-%m-%Y}", f"date_token_{DATE_TODAY}"), (None, "name_token_{name}", "name_token_some_name"), ( ("first_input", "second input"), "input_token_{input1}_{input0}", "input_token_second_input_first_input", ), ], ) def test_create_tokened_page_tokens_in_filename( datadir, caplog, user_input, filename, tokened_filename ): # arrange options = PageCreatorOptions( base_path=str(datadir), page_path="some_path", filename=filename, extension="md", name="some_name", user_input=user_input, example=None, template_filename=None, template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path / tokened_filename ).with_suffix(f".{options.extension}") # act scoped_page = ScopedPageCreator(options).create_page() result = scoped_page.save_to_disk() # assert assert scoped_page_file.exists() assert isinstance(result, Success) assert result.message == str(scoped_page_file) def test_create_tokened_page_input_tokens_preserve_order(datadir, caplog): # arrange tokened_filename = "input_token_fourth_input_first_input" options = PageCreatorOptions( base_path=str(datadir), page_path="some_path", filename="input_token_{input3}_{input0}", extension="md", name="some_name", user_input=("first_input", "second_input", "third_input", "fourth_input"), example=None, template_filename="some_template_input_tokens_preserve_order.md.tpl", template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path / tokened_filename ).with_suffix(f".{options.extension}") # act scoped_page = ScopedPageCreator(options).create_page() result = scoped_page.save_to_disk() # assert assert scoped_page_file.exists() assert isinstance(result, Success) assert result.message == str(scoped_page_file) with scoped_page_file.open(mode="r", encoding="utf-8") as scoped_page_contents: assert scoped_page_contents.readline() == "third_input second_input" @pytest.mark.parametrize( "user_input,expected,given", [ (None, 3, 0), (("first_input", "second_input"), 3, 2), (("first_input", "second_input", "third_input", "fourth_input"), 3, 4), ], ) def test_create_page_mismatched_tokens(tmpdir, user_input, expected, given): # arrange options = PageCreatorOptions( base_path=str(tmpdir), page_path="some_path", filename="input_token_{input0}_{input1}_{input2}", extension="md", name="some_name", user_input=user_input, example=None, template_filename=None, template_path=None, ) # act with pytest.raises(exceptions.MismatchedTokenError) as mismatched_token_error: scoped_page = ScopedPageCreator(options).create_page() # assert assert mismatched_token_error.value.expected == expected assert mismatched_token_error.value.given == given def test_create_page_spaces_in_path(tmpdir, caplog): # arrange options = PageCreatorOptions( base_path=str(tmpdir), page_path="some path with a space", filename="some filename with a space", extension="md", name="some_name", user_input=None, example=None, template_filename=None, template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path.replace(" ", "_") / options.filename.replace(" ", "_") ).with_suffix(f".{options.extension}") # act scoped_page = ScopedPageCreator(options).create_page() result = scoped_page.save_to_disk() # assert assert scoped_page_file.exists() assert isinstance(result, Success) assert result.message == str(scoped_page_file) def test_create_page_dot_in_extension(tmpdir, caplog): # arrange options = PageCreatorOptions( base_path=str(tmpdir), page_path="some_path", filename="some_filename", extension=".md", name="some_name", user_input=None, example=None, template_filename=None, template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path / options.filename ).with_suffix(f".{options.extension[1:]}") # act scoped_page = ScopedPageCreator(options).create_page() result = scoped_page.save_to_disk() # assert assert scoped_page_file.exists() assert isinstance(result, Success) assert result.message == str(scoped_page_file) def test_create_page_str_representation(tmpdir): # arrange options = PageCreatorOptions( base_path=str(tmpdir), page_path="some_path", filename="some_filename", extension="md", name="some_name", user_input=None, example=None, template_filename=None, template_path=None, ) scoped_page_file = ( pathlib.Path(options.base_path) / options.page_path / options.filename ).with_suffix(f".{options.extension}") # act scoped_page = ScopedPageCreator(options).create_page() # assert assert str(scoped_page) == f"ScopedPage(\"{scoped_page_file}\")"
30.395887
103
0.663396
1,360
11,824
5.441912
0.086765
0.085124
0.060532
0.053506
0.761789
0.720173
0.687745
0.671261
0.651398
0.624645
0
0.00208
0.227334
11,824
388
104
30.474227
0.808012
0.019198
0
0.625418
0
0
0.152941
0.053374
0
0
0
0
0.113712
1
0.040134
false
0
0.020067
0
0.060201
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
39a02a8539d0fcbf1ba0eb1cf8ab9d0f7d6620d1
353
py
Python
main_weather_stations_id.py
MahshidJabari/accident-prediction-montreal
f496269cbf6fada2bbff66325328f98d11a60c68
[ "MIT" ]
9
2019-10-26T20:42:34.000Z
2021-10-04T14:33:24.000Z
main_weather_stations_id.py
MahshidJabari/accident-prediction-montreal
f496269cbf6fada2bbff66325328f98d11a60c68
[ "MIT" ]
5
2019-05-16T20:01:39.000Z
2021-12-13T20:01:57.000Z
main_weather_stations_id.py
MahshidJabari/accident-prediction-montreal
f496269cbf6fada2bbff66325328f98d11a60c68
[ "MIT" ]
10
2019-04-26T21:26:12.000Z
2021-06-18T14:27:28.000Z
#!/usr/bin/env python import accident_prediction_montreal from accidents_montreal import get_accident_df from weather import get_useful_stations_id_df from utils import init_spark from preprocess import preprocess_accidents spark = init_spark() accident_df = preprocess_accidents(get_accident_df(spark)) get_useful_stations_id_df(spark, accident_df)
27.153846
58
0.866856
52
353
5.480769
0.384615
0.140351
0.091228
0.133333
0.147368
0
0
0
0
0
0
0
0.087819
353
12
59
29.416667
0.885093
0.056657
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.625
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
39ab29f585aa461dcae4205ace2c8814de40a649
345
py
Python
classgroup/serializers.py
wanderknight/OnlineJudge
dc1a085867a7f26799931f7ab6d58e071f75cf1c
[ "MIT" ]
null
null
null
classgroup/serializers.py
wanderknight/OnlineJudge
dc1a085867a7f26799931f7ab6d58e071f75cf1c
[ "MIT" ]
null
null
null
classgroup/serializers.py
wanderknight/OnlineJudge
dc1a085867a7f26799931f7ab6d58e071f75cf1c
[ "MIT" ]
null
null
null
__author__ = 'wanderknight' __time__ = '2019/8/9 20:33' from utils.api import serializers from utils.api._serializers import UsernameSerializer from .models import Classgroup class ClassgroupSerializer(serializers.ModelSerializer): # created_by = UsernameSerializer() class Meta: model = Classgroup fields = "__all__"
24.642857
56
0.750725
36
345
6.805556
0.694444
0.073469
0.097959
0
0
0
0
0
0
0
0
0.035088
0.173913
345
13
57
26.538462
0.824561
0.095652
0
0
0
0
0.106452
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
39bb8e18c09bfcb65af66f50c94f197828b2c787
85
py
Python
nothing/__init__.py
large-passenger-carrying-vehicle/nothing
bdeaed6e4d9f98b8fa3dd3fa4d9575239dbf9007
[ "MIT" ]
4
2016-02-12T15:15:00.000Z
2021-03-15T11:29:51.000Z
nothing/__init__.py
large-passenger-carrying-vehicle/nothing
bdeaed6e4d9f98b8fa3dd3fa4d9575239dbf9007
[ "MIT" ]
1
2018-09-17T06:45:26.000Z
2018-09-17T06:45:26.000Z
nothing/__init__.py
large-passenger-carrying-vehicle/nothing
bdeaed6e4d9f98b8fa3dd3fa4d9575239dbf9007
[ "MIT" ]
2
2018-09-17T04:11:43.000Z
2019-10-11T13:34:18.000Z
""" A simple package that does nothing. """ __version__ = '0.0.3'
10.625
35
0.505882
10
85
3.9
0.9
0
0
0
0
0
0
0
0
0
0
0.054545
0.352941
85
7
36
12.142857
0.654545
0.411765
0
0
0
0
0.119048
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
39bbb79e2c1aed83d7a70d171baa56c9d8b1fbad
272
py
Python
users-backend/users/admin_api/schema.py
pythonitalia/pycon
14e03b2158916f9437fdbde70e48e5bf5266997e
[ "MIT" ]
56
2018-01-20T17:18:40.000Z
2022-03-28T22:42:04.000Z
users-backend/users/admin_api/schema.py
pythonitalia/pycon
14e03b2158916f9437fdbde70e48e5bf5266997e
[ "MIT" ]
2,029
2018-01-20T11:37:24.000Z
2022-03-31T04:10:51.000Z
users-backend/users/admin_api/schema.py
pythonitalia/pycon
14e03b2158916f9437fdbde70e48e5bf5266997e
[ "MIT" ]
17
2018-03-17T09:44:28.000Z
2021-12-27T19:57:35.000Z
import strawberry from pythonit_toolkit.api.extensions import SentryExtension from users.admin_api.mutation import Mutation from users.admin_api.query import Query schema = strawberry.federation.Schema( query=Query, mutation=Mutation, extensions=[SentryExtension] )
27.2
64
0.834559
33
272
6.787879
0.424242
0.080357
0.125
0.151786
0
0
0
0
0
0
0
0
0.099265
272
9
65
30.222222
0.914286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
39bde6db1b79338ec84e998f2bca090cec8cce28
1,257
py
Python
tests/test_middleware.py
ionrock/json_url_rewriter
23ef2c1fd40ec18df2af7d5fc2cc6766c51655d1
[ "BSD-3-Clause" ]
null
null
null
tests/test_middleware.py
ionrock/json_url_rewriter
23ef2c1fd40ec18df2af7d5fc2cc6766c51655d1
[ "BSD-3-Clause" ]
null
null
null
tests/test_middleware.py
ionrock/json_url_rewriter
23ef2c1fd40ec18df2af7d5fc2cc6766c51655d1
[ "BSD-3-Clause" ]
null
null
null
import json from mock import Mock from webtest import TestApp from json_url_rewriter import middleware class TestMiddlware(object): doc = {'hello': {'foo': 'bar'}} def middleware(self, *args): return middleware.RewriteMiddleware(*args) def resp(self, doc): return json.dumps(doc, indent=2).split('\n') def test_json_loading(self): mw = self.middleware(None, None) assert mw.json(self.resp(self.doc)) == self.doc def test_rewriter(self): resp = self.resp(self.doc) rewriter = Mock(return_value=self.doc) mw = self.middleware(None, rewriter) doc = mw.json(resp) result = mw.rewrite(resp, {}) rewriter.assert_called_with(doc, {}) # Noop rewriter assert result == json.dumps(doc) def test_middleware(self): def app(environ, sr): headers = [('Content-Type', 'application/json')] sr('200 OK', headers) return self.resp(self.doc) result = {'hello': 'world'} app = TestApp(self.middleware(app, lambda x, environ: result)) resp = app.get('/') assert resp.json == result class TestHeaderToPathPrefixRewriter(object): def test_regex(self): pass
25.14
70
0.610183
151
1,257
5.013245
0.357616
0.055482
0.058124
0.059445
0
0
0
0
0
0
0
0.004315
0.26253
1,257
49
71
25.653061
0.812298
0.010342
0
0
0
0
0.046699
0
0
0
0
0
0.121212
1
0.212121
false
0.030303
0.121212
0.060606
0.515152
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
39d03aae2f87b2c4d6150bf899820c6d81abbc2b
1,751
py
Python
stest/pylibs/lazy_libs.py
hotswwkyo/stest
4b420abdc25d8618e0e154b3df0fefa6be8ef39a
[ "MIT" ]
null
null
null
stest/pylibs/lazy_libs.py
hotswwkyo/stest
4b420abdc25d8618e0e154b3df0fefa6be8ef39a
[ "MIT" ]
null
null
null
stest/pylibs/lazy_libs.py
hotswwkyo/stest
4b420abdc25d8618e0e154b3df0fefa6be8ef39a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @Author: 思文伟 @Date: 2022/03/23 ''' class LazyLibs(object): class Appium(object): @property def MobileBy(self): from appium.webdriver.common.mobileby import MobileBy return MobileBy @property def webdriver(self): from appium import webdriver return webdriver class Selenium(object): @property def exceptions(cls): from selenium.common import exceptions return exceptions @property def ActionChains(self): from selenium.webdriver import ActionChains return ActionChains @property def Keys(self): from selenium.webdriver.common.keys import Keys return Keys @property def By(self): from selenium.webdriver.common.by import By return By @property def WebDriverWait(self): from selenium.webdriver.support.wait import WebDriverWait return WebDriverWait @property def webdriver(self): from selenium import webdriver return webdriver @property def WebElement(self): from selenium.webdriver.remote.webelement import WebElement return WebElement @property def Select(self): from selenium.webdriver.support.ui import Select return Select class Wechat(object): @property def minium(self): import minium return minium @property def miniconfig(self): from minium.framework import miniconfig return miniconfig
24.319444
71
0.577955
164
1,751
6.170732
0.262195
0.130435
0.110672
0.148221
0.179842
0
0
0
0
0
0
0.008043
0.360937
1,751
71
72
24.661972
0.896336
0.042833
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0
0.769231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
39eaaa351971704012f15049a23ab49e7d98ddd4
218
py
Python
pymacula/__init__.py
warrickball/pymacula
39c0376ae07b093798ec8e1a0e47fa2a0c29ed6e
[ "MIT" ]
2
2016-09-02T15:49:53.000Z
2017-06-29T21:51:58.000Z
pymacula/__init__.py
warrickball/pymacula
39c0376ae07b093798ec8e1a0e47fa2a0c29ed6e
[ "MIT" ]
1
2019-02-13T08:01:39.000Z
2019-02-13T08:01:39.000Z
pymacula/__init__.py
warrickball/pymacula
39c0376ae07b093798ec8e1a0e47fa2a0c29ed6e
[ "MIT" ]
5
2015-03-10T20:07:32.000Z
2019-03-27T23:27:42.000Z
# -*- coding: utf-8 -*- __version__ = "0.0.2" try: __PYMACULA_SETUP__ except NameError: __PYMACULA_SETUP__ = False if not __PYMACULA_SETUP__: from .macula import Star, Spot, MaculaModel, macula
16.769231
55
0.674312
26
218
4.923077
0.769231
0.304688
0
0
0
0
0
0
0
0
0
0.023669
0.224771
218
12
56
18.166667
0.733728
0.09633
0
0
0
0
0.025641
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f2d483fc2c91b16a9684db819f62c421d33ba36c
494
py
Python
09.Dictionaries/citiesByCountry.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
09.Dictionaries/citiesByCountry.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
09.Dictionaries/citiesByCountry.py
nikolayvutov/Python
55163496dac452a7110b7f76edc6894ee195f1fe
[ "MIT" ]
null
null
null
n = int(input()) continents = {} for i in range(n): str = input().split(' ') if str[0] in continents: if str[1] in continents[str[0]]: continents[str[0]][str[1]].append(str[2]) else: continents[str[0]][str[1]] = [str[2]] else: continents[str[0]] = { str[1]: [str[2]] } for i in continents: print('{}'.format(i)) for task in continents[i]: print('\t {} -> '.format(task), end='') print()
22.454545
53
0.477733
66
494
3.575758
0.318182
0.084746
0.237288
0.216102
0.313559
0.237288
0.237288
0.237288
0.237288
0.237288
0
0.035503
0.315789
494
21
54
23.52381
0.662722
0
0
0.111111
0
0
0.024292
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f2dcc2bed87abfcfd2e3b4ff6e616d95e76d5796
1,875
py
Python
anella/aux/keystoneExps/kstonexps.py
Fundacio-i2CAT/ai4.0-tenor
cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1
[ "curl", "Vim", "Ruby", "Apache-2.0" ]
null
null
null
anella/aux/keystoneExps/kstonexps.py
Fundacio-i2CAT/ai4.0-tenor
cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1
[ "curl", "Vim", "Ruby", "Apache-2.0" ]
null
null
null
anella/aux/keystoneExps/kstonexps.py
Fundacio-i2CAT/ai4.0-tenor
cafb6127f0c9c4f0a8df1eb48cd4fa1a0ee1aed1
[ "curl", "Vim", "Ruby", "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import requests import json KEYSTONE_URL = 'http://dev.anella.i2cat.net:5000/v3' USER = 'admin' PASSWORD = 'i2cat' AUTH_TEMPLATE = {'auth': {'scope': {'project': {'domain': {'id': 'default'}, 'name': 'admin'}}, 'identity': {'password': {'user': {'domain': {'id': 'default'}, 'password': PASSWORD, 'name': USER}}, 'methods': ['password']}}} def get_token(): resp = requests.post('{0}/auth/tokens'.format(KEYSTONE_URL), headers={'Content-Type': 'application/json'}, json=AUTH_TEMPLATE) if resp.status_code == 201: return resp.headers['X-Subject-Token'] else: return resp.status_code def get_user_list(token): resp = requests.get('{0}/users'.format(KEYSTONE_URL), headers={'Content-Type': 'application/json','X-Auth-Token': token}) return resp.text def get_role_list(token): resp = requests.get('{0}/roles'.format(KEYSTONE_URL), headers={'Content-Type': 'application/json','X-Auth-Token': token}) return resp.text def post_roles(token): resp = requests.post('{0}/roles'.format(KEYSTONE_URL), headers={'Content-Type': 'application/json','X-Auth-Token': token}, json={'role': {'name': 'User.Provider'}}) resp = requests.post('{0}/roles'.format(KEYSTONE_URL), headers={'Content-Type': 'application/json','X-Auth-Token': token}, json={'role': {'name': 'User.Client'}}) return resp.text if __name__ == '__main__': token = get_token() print token print get_role_list(token)
33.482143
92
0.522133
195
1,875
4.882051
0.307692
0.069328
0.089286
0.12605
0.527311
0.49895
0.447479
0.447479
0.394958
0.394958
0
0.012346
0.3088
1,875
55
93
34.090909
0.722222
0.020267
0
0.2
0
0
0.244687
0
0
0
0
0
0
0
null
null
0.088889
0.044444
null
null
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
f2e4517534433d76cab25d5272e3d4d76dcf681a
7,176
py
Python
run.py
craig-shenton/nomis-workforce-clustering
689486d74e87877d7eeca3b8bd2daadff56962ef
[ "MIT" ]
null
null
null
run.py
craig-shenton/nomis-workforce-clustering
689486d74e87877d7eeca3b8bd2daadff56962ef
[ "MIT" ]
null
null
null
run.py
craig-shenton/nomis-workforce-clustering
689486d74e87877d7eeca3b8bd2daadff56962ef
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np # County / Unitary Authorities Apr-2021 # NOMIS API - Population estimates - local authority based by five year age band url = "https://www.nomisweb.co.uk/api/v01/dataset/NM_31_1.data.csv?geography=1807745025...1807745028,1807745030...1807745032,1807745034...1807745083,1807745085,1807745282,1807745283,1807745086...1807745155,1807745157...1807745164,1807745166...1807745170,1807745172...1807745177,1807745179...1807745194,1807745196,1807745197,1807745199,1807745201...1807745218,1807745221,1807745222,1807745224,1807745226...1807745231,1807745233,1807745234,1807745236...1807745244,1807745271...1807745281&date=latest&sex=7&age=0,24,22,25&measures=20100,20301&signature=NPK-be81606366125733ff591b:0x55c28d4f3b15b3d94ea6f86d2ba90f4e761c43c3" df_population = pd.read_csv(url) df_population = df_population[ [ "DATE", "GEOGRAPHY_NAME", "GEOGRAPHY_CODE", "GEOGRAPHY_TYPE", "AGE_NAME", "MEASURES_NAME", "OBS_VALUE", ] ] df_population = df_population[df_population["GEOGRAPHY_CODE"].str.contains("E")] df_population_pivot = df_population.pivot_table( index=["GEOGRAPHY_CODE"], columns=["AGE_NAME", "MEASURES_NAME"], values="OBS_VALUE" ).reset_index() df_population_pivot.columns = df_population_pivot.columns.map("|".join).str.strip("|") # NOMIS - annual population survey url = "https://www.nomisweb.co.uk/api/v01/dataset/NM_17_5.data.csv?geography=1807745025...1807745028,1807745030...1807745032,1807745034...1807745083,1807745085,1807745282,1807745283,1807745086...1807745155,1807745157...1807745164,1807745166...1807745170,1807745172...1807745177,1807745179...1807745194,1807745196,1807745197,1807745199,1807745201...1807745218,1807745221,1807745222,1807745224,1807745226...1807745231,1807745233,1807745234,1807745236...1807745244&date=latestMINUS4&variable=18,45,248,249,111,1487,1488,1537,290,720...722,344,84,72,74,1463,1464,1558,885...888,416,418,1349,602...605,434...437,197,202&measures=20599,21001,21002,21003&signature=NPK-be81606366125733ff591b:0xf38669505a2fa883628ec2471d9566bbd3dd3563" df_survey = pd.read_csv(url) df_survey = df_survey[ [ "DATE", "GEOGRAPHY_NAME", "GEOGRAPHY_CODE", "GEOGRAPHY_TYPE", "MEASURES_NAME", "VARIABLE_NAME", "OBS_VALUE", ] ] df_survey = df_survey[df_survey["GEOGRAPHY_CODE"].str.contains("E")] df_survey_pivot = df_survey.pivot_table( index=["GEOGRAPHY_CODE"], columns=["VARIABLE_NAME", "MEASURES_NAME"], values="OBS_VALUE", ).reset_index() df_survey_pivot.columns = df_survey_pivot.columns.map("|".join).str.strip("|") # NOMIS - annual survey of hours and earnings - workplace analysis url = "/api/v01/dataset/NM_99_1.data.csv?geography=1807745025...1807745028,1807745030...1807745032,1807745034...1807745083,1807745085,1807745282,1807745283,1807745086...1807745155,1807745157...1807745164,1807745166...1807745170,1807745172...1807745177,1807745179...1807745194,1807745196,1807745197,1807745199,1807745201...1807745218,1807745221,1807745222,1807745224,1807745226...1807745231,1807745233,1807745234,1807745236...1807745244&date=latestMINUS1&sex=8,9&item=2&pay=1,7&measures=20100,20701&signature=NPK-be81606366125733ff591b:0xf6642f02ae17b8d9fb60ef7229a0b28010dbfb3b" df_workplace = pd.read_csv(url) df_workplace = df_workplace[ [ "DATE", "GEOGRAPHY_NAME", "GEOGRAPHY_CODE", "GEOGRAPHY_TYPE", "SEX_NAME", "PAY_NAME", "MEASURES_NAME", "OBS_VALUE", ] ] df_workplace = df_workplace[df_workplace["GEOGRAPHY_CODE"].str.contains("E")] df_workplace_pivot = df_workplace.pivot_table( index=["GEOGRAPHY_CODE"], columns=["SEX_NAME", "PAY_NAME", "MEASURES_NAME"], values="OBS_VALUE", ).reset_index() df_workplace_pivot.columns = df_workplace_pivot.columns.map("|".join).str.strip("|") # NOMIS - jobs density url = "https://www.nomisweb.co.uk/api/v01/dataset/NM_57_1.data.csv?geography=1807745025...1807745028,1807745030...1807745032,1807745034...1807745083,1807745085,1807745282,1807745283,1807745086...1807745155,1807745157...1807745164,1807745166...1807745170,1807745172...1807745177,1807745179...1807745194,1807745196,1807745197,1807745199,1807745201...1807745218,1807745221,1807745222,1807745224,1807745226...1807745231,1807745233,1807745234,1807745236...1807745244,1807745271...1807745281&date=latest&item=1,3&measures=20100&signature=NPK-be81606366125733ff591b:0xc789ee7ace7b897a1eed8f6e2ca5e3ad42ac8540" df_density = pd.read_csv(url) df_density = df_density[ [ "DATE", "GEOGRAPHY_NAME", "GEOGRAPHY_CODE", "GEOGRAPHY_TYPE", "ITEM_NAME", "MEASURES_NAME", "OBS_VALUE", ] ] df_density = df_density[df_density["GEOGRAPHY_CODE"].str.contains("E")] df_density_pivot = df_density.pivot_table( index=["GEOGRAPHY_CODE"], columns=["ITEM_NAME", "MEASURES_NAME"], values="OBS_VALUE" ).reset_index() df_density_pivot.columns = df_density_pivot.columns.map("|".join).str.strip("|") # NOMIS - Claimant count url = "https://www.nomisweb.co.uk/api/v01/dataset/NM_162_1.data.csv?geography=1807745025...1807745028,1807745030...1807745032,1807745034...1807745083,1807745085,1807745282,1807745283,1807745086...1807745155,1807745157...1807745164,1807745166...1807745170,1807745172...1807745177,1807745179...1807745194,1807745196,1807745197,1807745199,1807745201...1807745218,1807745221,1807745222,1807745224,1807745226...1807745231,1807745233,1807745234,1807745236...1807745244,1807745271...1807745281&date=latestMINUS24&gender=0&age=0&measure=1...4&measures=20100&signature=NPK-be81606366125733ff591b:0xb2f5e7659af9ab5b972c8eacf5e12aa1c7aef5bf" df_claim = pd.read_csv(url) df_claim = df_claim[ [ "DATE", "GEOGRAPHY_NAME", "GEOGRAPHY_CODE", "GEOGRAPHY_TYPE", "MEASURE_NAME", "OBS_VALUE", ] ] df_claim = df_claim[df_claim["GEOGRAPHY_CODE"].str.contains("E")] df_claim_pivot = df_claim.pivot_table( index=["GEOGRAPHY_CODE"], columns=["MEASURE_NAME"], values="OBS_VALUE" ).reset_index() # London Min Wage url = "https://opendata.arcgis.com/datasets/3ba3daf9278f47daba0f561889c3521a_0.csv" df_london = pd.read_csv(url) df_london["london_min_wage"] = np.where(df_london["RGN19NM"] == "London", True, False) df_london.drop(list(df_london.filter(["FID", "LAD19NM"])), axis=1, inplace=True) df_london.rename(columns={"LAD19CD": "GEOGRAPHY_CODE"}, inplace=True) # Merge to master file merged_master = pd.merge( df_population_pivot, df_survey_pivot, on=["GEOGRAPHY_CODE"], how="left" ) merged_master = pd.merge( merged_master, df_density_pivot, on=["GEOGRAPHY_CODE"], how="left" ) merged_master = pd.merge( merged_master, df_workplace_pivot, on=["GEOGRAPHY_CODE"], how="left" ) merged_master = pd.merge( merged_master, df_claim_pivot, on=["GEOGRAPHY_CODE"], how="left" ) merged_master = pd.merge(merged_master, df_london, on=["GEOGRAPHY_CODE"], how="left") merged_master.reset_index().to_csv("data/master_file.csv", index=False) col_list = list(merged_master.columns) df = pd.DataFrame(col_list) # saving the dataframe df.to_csv("data/metrics.csv")
50.181818
728
0.755713
862
7,176
6.076566
0.242459
0.052119
0.021382
0.013746
0.647003
0.61302
0.529782
0.470027
0.455517
0.423444
0
0.328556
0.095736
7,176
142
729
50.535211
0.478656
0.044036
0
0.358974
0
0.042735
0.594307
0.083212
0
0
0.030657
0
0
1
0
false
0
0.017094
0
0.017094
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f2eabf8dccf7ca517c7a9175f1d77913ec8194c2
1,185
py
Python
euler-problems/euler-problem-96/unittests_3.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
euler-problems/euler-problem-96/unittests_3.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
2
2017-08-24T18:55:37.000Z
2017-08-24T18:59:06.000Z
euler-problems/euler-problem-96/unittests_3.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
import unittest from sudoku import Sudoku __author__ = 'Sergey' class Test(unittest.TestCase): def setUp(self): str_sudoku = """200080300 060070084 030500209 000105408 000000000 402706000 301007040 720040060 004010003""" int_sudoku = [] for line in str_sudoku.split("\n"): int_sudoku.append([int(i) for i in list(line.strip())]) self.s = Sudoku(int_sudoku) def testUseHiddenLongerMethod(self): self.s.draw_sudoku() print "" self.s.loner() self.s.draw_sudoku() print "" self.s.hidden_loner() self.s.draw_sudoku() print "" self.s.loner() self.s.draw_sudoku() def testUseOpenPairMethod(self): self.s.draw_sudoku() print "" self.s.open_pairs() self.s.draw_sudoku() print "" self.s.hidden_loner() self.s.draw_sudoku() print "" self.s.loner() self.s.draw_sudoku()
19.75
67
0.4827
116
1,185
4.758621
0.353448
0.13587
0.130435
0.217391
0.407609
0.407609
0.407609
0.407609
0.347826
0.347826
0
0.117562
0.418565
1,185
59
68
20.084746
0.683599
0
0
0.475
0
0
0.245748
0
0
0
0
0
0
0
null
null
0
0.05
null
null
0.15
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
f2eb78befea9be3698890bad31a73432b8a3f82a
2,313
py
Python
Client codes/Client codes/discord/auth/user.py
kneeraazon01/raasbot
932648a6017cc5f888038ad3c54bb59c35deadf8
[ "Apache-2.0" ]
null
null
null
Client codes/Client codes/discord/auth/user.py
kneeraazon01/raasbot
932648a6017cc5f888038ad3c54bb59c35deadf8
[ "Apache-2.0" ]
null
null
null
Client codes/Client codes/discord/auth/user.py
kneeraazon01/raasbot
932648a6017cc5f888038ad3c54bb59c35deadf8
[ "Apache-2.0" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2021-present Dolfies Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ from abc import ABCMeta from discord.user import ClientUser as _User class _FakeState: def __init__(self, http): self.http = http class _HideMeta(ABCMeta): # I know this is cursed def __new__(cls, cls_name, cls_bases, cls_dict): cls_dict.setdefault("__excluded__", set()) out_cls = super(_HideMeta, cls).__new__(cls, cls_name, cls_bases, cls_dict) def __getattribute__(self, name): if name in cls_dict["__excluded__"]: raise AttributeError(name) else: return super(out_cls, self).__getattribute__(name) out_cls.__getattribute__ = __getattribute__ def __dir__(self): return sorted((set(dir(out_cls)) | set(self.__dict__.keys())) - set(cls_dict["__excluded__"])) out_cls.__dir__ = __dir__ return out_cls class ClientUser(_User, metaclass=_HideMeta): __excluded__ = {'get_relationship', 'relationships', 'friends', 'blocked', 'create_group', 'note', '_relationships', 'settings', 'edit_settings'} def __init__(self, http, data): super().__init__(state=_FakeState(http), data=data)
39.87931
108
0.703415
306
2,313
5.009804
0.470588
0.057404
0.01696
0.019569
0.03653
0.03653
0.03653
0.03653
0
0
0
0.002219
0.220493
2,313
57
109
40.578947
0.848031
0.477302
0
0
0
0
0.113636
0
0
0
0
0
0
1
0.208333
false
0
0.083333
0.041667
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8406e503462c33eb4bde782868094c5a2fbb6cf7
347
py
Python
sq_test/__init__.py
derobertson/alembic_psql_test_ex
500dde2b4c1f1bb9911826df11fed185305a408a
[ "Apache-2.0" ]
null
null
null
sq_test/__init__.py
derobertson/alembic_psql_test_ex
500dde2b4c1f1bb9911826df11fed185305a408a
[ "Apache-2.0" ]
null
null
null
sq_test/__init__.py
derobertson/alembic_psql_test_ex
500dde2b4c1f1bb9911826df11fed185305a408a
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from config import config db = SQLAlchemy() def create_app(conf_env: str): app = Flask(__name__) app.config.from_object(config(conf_env)) from sq_test.main import main as main_blueprint app.register_blueprint(main_blueprint) db.init_app(app) return app
19.277778
51
0.755043
51
347
4.862745
0.431373
0.072581
0
0
0
0
0
0
0
0
0
0
0.178674
347
17
52
20.411765
0.870175
0
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
842980f02e32cd04eb9bcdbd1d5059560dcd622d
1,109
py
Python
server/database/populate_database.py
BenjaminCatarevas/reddit-outfits
c912ffde0dc350b415a6ca2d5139bc6bb875b8dc
[ "MIT" ]
1
2020-07-11T23:36:52.000Z
2020-07-11T23:36:52.000Z
server/database/populate_database.py
BenjaminCatarevas/reddit-outfits
c912ffde0dc350b415a6ca2d5139bc6bb875b8dc
[ "MIT" ]
6
2020-01-11T00:40:58.000Z
2022-02-26T17:29:03.000Z
server/database/populate_database.py
BenjaminCatarevas/reddit-outfits
c912ffde0dc350b415a6ca2d5139bc6bb875b8dc
[ "MIT" ]
null
null
null
import config from database import RedditOutfitsDatabase from util_reddit import generate_thread_ids ''' This script is ran according to Malefashionadvice's, Femalefashionadvice's, and Streetwear's weekly thread(s) schedules. ''' def process_threads(thread_ids: list, database): ''' Given a list of threads IDs, processes each one. ''' for thread_id in thread_ids: database.process_thread(thread_id) database = RedditOutfitsDatabase( 'reddit_outfits', 'redditoutfits', config.redditoutfits_password) # Retrieve most recent 25 thread IDs for each subreddit. # By default retrieves 25 results. malefashionadvice_thread_ids = generate_thread_ids( 'WAYWT', 'AutoModerator', 'malefashionadvice') femalefashionadvice_thread_ids = generate_thread_ids( 'WAYWT', 'AutoModerator', 'femalefashionadvice') streetwear_thread_ids = generate_thread_ids( 'WDYWT', 'AutoModerator', 'streetwear') process_threads(malefashionadvice_thread_ids, database) process_threads(femalefashionadvice_thread_ids, database) process_threads(streetwear_thread_ids, database) database.close()
30.805556
120
0.790803
126
1,109
6.706349
0.412698
0.138462
0.080473
0.085207
0.208284
0.104142
0.104142
0
0
0
0
0.004137
0.128043
1,109
35
121
31.685714
0.8697
0.124436
0
0
1
0
0.153753
0
0
0
0
0
0
1
0.055556
false
0.055556
0.166667
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
842d2553d8f1d4f1dbcae61716128ced74a42cc3
4,598
py
Python
tests/test_add_single_application_flow.py
DanielLevy0705/algosec-ansible-role
d3734c81b402b67fff88add6143ead686105340b
[ "MIT" ]
13
2018-01-30T04:54:03.000Z
2022-01-27T03:58:42.000Z
tests/test_add_single_application_flow.py
DanielLevy0705/algosec-ansible-role
d3734c81b402b67fff88add6143ead686105340b
[ "MIT" ]
8
2018-02-08T06:54:47.000Z
2021-09-21T14:50:30.000Z
tests/test_add_single_application_flow.py
DanielLevy0705/algosec-ansible-role
d3734c81b402b67fff88add6143ead686105340b
[ "MIT" ]
8
2018-02-08T05:55:25.000Z
2021-09-25T13:15:16.000Z
import pytest from algosec.errors import EmptyFlowSearch from library import algosec_add_single_application_flow from tests.conftest import AnsibleExitJson, ALGOSEC_SERVER, ALGOSEC_USER, ALGOSEC_PASSWORD, ALGOSEC_CERTIFY_SSL, my_vcr PROPER_ARGS = dict( ip_address=ALGOSEC_SERVER, user=ALGOSEC_USER, password=ALGOSEC_PASSWORD, certify_ssl=ALGOSEC_CERTIFY_SSL, app_name="Payroll", name="new-test-flow-2", sources=["192.168.12.12", "HR Payroll server", "192.168.0.0/16"], destinations=["16.47.71.62", "234.234.234.234"], services=["HTTPS", "http", "tcp/80", "tcp/51"] ) MODIFIED_FLOW_ARGS = dict( ip_address=ALGOSEC_SERVER, user=ALGOSEC_USER, password=ALGOSEC_PASSWORD, certify_ssl=ALGOSEC_CERTIFY_SSL, app_name="Payroll", name="new-test-flow-2", sources=["192.168.12.12", "HR Payroll server", "192.168.0.0/16"], destinations=["16.47.71.62", "234.234.234.234"], services=["HTTPS"] ) class TestDefineApplicationFlows(object): ansible_module = algosec_add_single_application_flow @staticmethod def does_flow_exists(abf_client, app_name, flow_name): """Used to delete a flow on ABF to prepare for the tests""" app_revision_id = abf_client.get_application_revision_id_by_name(app_name) try: abf_client.get_flow_by_name(app_revision_id, flow_name) return True except EmptyFlowSearch: return False @pytest.mark.parametrize('ansible_module_args', [PROPER_ARGS], indirect=True) @my_vcr.use_cassette('add_single_application_flow_1.yaml') def test_create_new_application_flow(self, abf_client, ansible_module_args, ansible_module): app_name = ansible_module_args['app_name'] flow_name = ansible_module_args['name'] if self.does_flow_exists(abf_client, app_name, flow_name): raise UserWarning( "Please manually delete {} flow from {} ABF app, " "apply any drafts and resolve change requests for this unittest to properly run.".format( flow_name, app_name, ) ) # TODO: Test also creation of new network objects, by deleting some of the ones that are used # TODO: Very similar to how the flow deletion is taking place. with pytest.raises(AnsibleExitJson) as result: ansible_module.main() return_value = result.value.args[0] assert return_value['changed'], "'changed' should be True as a new flow was created on ABF." assert return_value['msg'] == 'Flow created/updated successfully!' # TODO: Add to the ansible output whether the flow was created or updated @pytest.mark.parametrize('ansible_module_args', [PROPER_ARGS], indirect=True) @my_vcr.use_cassette('add_single_application_flow_2.yaml') def test_not_creating_an_already_existing_flow(self, abf_client, ansible_module_args, ansible_module): app_name = ansible_module_args['app_name'] flow_name = ansible_module_args['name'] if not self.does_flow_exists(abf_client, app_name, flow_name): raise UserWarning( "Please run the `test_create_new_application_flow` unittest before running this unittest " "to make sure the flow already exists on ABF." ) with pytest.raises(AnsibleExitJson) as result: ansible_module.main() return_value = result.value.args[0] assert not return_value['changed'] assert return_value['msg'] == 'Flow already exists on AlgoSec BusinessFlow.' @pytest.mark.parametrize('ansible_module_args', [MODIFIED_FLOW_ARGS], indirect=True) @my_vcr.use_cassette('add_single_application_flow__changing_existing_flow.yaml') def test_changing_existing_flow(self, abf_client, ansible_module_args, ansible_module): app_name = ansible_module_args['app_name'] flow_name = ansible_module_args['name'] if not self.does_flow_exists(abf_client, app_name, flow_name): raise UserWarning( "Please run the `test_create_new_application_flow` unittest before running this unittest " "to make sure the flow already exists on ABF." ) with pytest.raises(AnsibleExitJson) as result: ansible_module.main() return_value = result.value.args[0] assert return_value['changed'] assert return_value['msg'] == 'Flow created/updated successfully!' # TODO: Add to the ansible output whether the flow was created or updated
45.98
119
0.690953
606
4,598
4.963696
0.250825
0.082114
0.067819
0.034907
0.714096
0.685505
0.672872
0.672872
0.65891
0.646277
0
0.02532
0.218356
4,598
99
120
46.444444
0.811631
0.076338
0
0.52381
0
0
0.240208
0.045304
0
0
0
0.010101
0.071429
1
0.047619
false
0.035714
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
84386c977ab6f2da83c270b655cf63510dc214ca
508
py
Python
src/engine/__init__.py
BradAnderson1995/PyZelda
8fffcf01fb66bb583b40f4e23b4fc850bcbca2da
[ "MIT" ]
6
2017-04-25T00:22:02.000Z
2022-02-18T05:27:17.000Z
src/engine/__init__.py
BradAnderson1995/PyZelda
8fffcf01fb66bb583b40f4e23b4fc850bcbca2da
[ "MIT" ]
null
null
null
src/engine/__init__.py
BradAnderson1995/PyZelda
8fffcf01fb66bb583b40f4e23b4fc850bcbca2da
[ "MIT" ]
3
2018-11-17T18:07:58.000Z
2021-11-04T02:46:41.000Z
__author__ = 'brad' # Import engine files import coordsurface import scene import state import gameclock import gameobject import resourceman import spritesheet import map import backend # Import engine level classes from coordsurface import CoordinateSurface from scene import Scene from state import State from gameclock import GameClock from gameobject import GameObject from gameobject import ObjectState from resourceman import ResourceManager from spritesheet import Spritesheet from map import Map
20.32
42
0.854331
63
508
6.825397
0.31746
0.111628
0.093023
0
0
0
0
0
0
0
0
0
0.135827
508
24
43
21.166667
0.979499
0.09252
0
0
0
0
0.008734
0
0
0
0
0
0
1
0
false
0
0.947368
0
0.947368
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ffcadf2f0ef40f478f7943a7b4aea587965912d8
1,101
py
Python
scieldas/services/chrome/app.py
autophagy/scieldas
0159f45321e4edb2211010e096dfc09f5c103df0
[ "MIT" ]
6
2018-06-13T06:54:12.000Z
2021-01-15T13:59:33.000Z
scieldas/services/chrome/app.py
Autophagy/scieldas
0159f45321e4edb2211010e096dfc09f5c103df0
[ "MIT" ]
1
2020-06-21T17:56:32.000Z
2020-06-23T07:48:57.000Z
scieldas/services/chrome/app.py
autophagy/scieldas
0159f45321e4edb2211010e096dfc09f5c103df0
[ "MIT" ]
null
null
null
from scieldas.services import Service from scieldas.shields import RatingShield, TextShield from .api import Chrome api = Chrome() class Version(Service): name = "Chrome Web Store Version" example = "2.0.4" shield = TextShield(prefix="Version") base = "chrome" routes = ["version/:appId"] def route(self, appId): return api.version(appId) class Users(Service): name = "Chrome Web Store Users" example = 1380 shield = TextShield(prefix="Users") base = "chrome" routes = ["users/:appId"] def route(self, appId): return api.users(appId) class Rating(Service): name = "Chrome Web Store Rating" example = 4.2 shield = TextShield(prefix="Rating") base = "chrome" routes = ["rating/:appId"] def route(self, appId): return api.rating(appId) class RatingStars(Service): name = "Chrome Web Store Rating" example = 4.0 shield = RatingShield(prefix="Rating", min=0, max=5) base = "chrome" routes = ["rating/stars/:appId"] def route(self, appId): return api.rating(appId)
21.588235
56
0.63851
134
1,101
5.246269
0.268657
0.062589
0.096728
0.113798
0.389758
0.318634
0.318634
0.230441
0.119488
0
0
0.015458
0.236149
1,101
50
57
22.02
0.820452
0
0
0.333333
0
0
0.184378
0
0
0
0
0
0
1
0.111111
false
0
0.083333
0.111111
0.972222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
ffefba4d0256255599a79b246d11b21dd8fe9c6c
323
py
Python
trump_net/tests/test_basic.py
iandennismiller/trump-net
a20eee04f5b0ba2283e593712482172fc8a5d551
[ "MIT" ]
null
null
null
trump_net/tests/test_basic.py
iandennismiller/trump-net
a20eee04f5b0ba2283e593712482172fc8a5d551
[ "MIT" ]
null
null
null
trump_net/tests/test_basic.py
iandennismiller/trump-net
a20eee04f5b0ba2283e593712482172fc8a5d551
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # trump-net (c) Ian Dennis Miller from nose.plugins.attrib import attr from .mixins import DiamondTestCase class BasicTestCase(DiamondTestCase): def test_basic(self): "ensure the minimum test works" assert True @attr("skip") def test_skip(self): assert False
20.1875
39
0.668731
41
323
5.219512
0.756098
0.065421
0
0
0
0
0
0
0
0
0
0.004032
0.232198
323
15
40
21.533333
0.858871
0.260062
0
0
0
0
0.123596
0
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
fff34ac987559808f918f8b78927c139193d92c2
298
py
Python
ex034.py
juniorpedroso/Exercicios-CEV-Python
4adad3b6f3994cf61f9ead5564124b8b9c58d304
[ "MIT" ]
null
null
null
ex034.py
juniorpedroso/Exercicios-CEV-Python
4adad3b6f3994cf61f9ead5564124b8b9c58d304
[ "MIT" ]
null
null
null
ex034.py
juniorpedroso/Exercicios-CEV-Python
4adad3b6f3994cf61f9ead5564124b8b9c58d304
[ "MIT" ]
null
null
null
salario = float(input('Qual é o seu atual salário?: R$')) if salario > 1250: aumento = 10 novosalario = salario * (1 + 10 / 100) else: aumento = 15 novosalario = salario * (1 + 15 / 100) print('O valor do novo salário com um aumento de {}% é R${:.2f}'.format(aumento, novosalario))
33.111111
94
0.630872
44
298
4.272727
0.636364
0.191489
0.202128
0
0
0
0
0
0
0
0
0.090909
0.224832
298
8
95
37.25
0.722944
0
0
0
0
0
0.291946
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fff96df1e84e438d94c4e9ac0e5a05e4663611be
10,914
py
Python
quranSurah.py
QuranPalace/QuranSurah
d27c0942db95130f76ce7a04b59547722a252cd3
[ "Apache-2.0" ]
2
2016-02-18T14:31:32.000Z
2016-04-09T10:32:30.000Z
quranSurah.py
QuranPalace/QuranSurah
d27c0942db95130f76ce7a04b59547722a252cd3
[ "Apache-2.0" ]
null
null
null
quranSurah.py
QuranPalace/QuranSurah
d27c0942db95130f76ce7a04b59547722a252cd3
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python import sys import timeit import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer ''' Author: Ehsaneddin Asgari Email: asgari@berkeley.edu ''' class QuranSurah: _letters_map={"_hamzah_": 'ء', "_HHHH_": "ح", "_DDDD_": "ض", "_ayn_":"ع", "w":'و',"q":"ق","e":"ا","r":'ر',"_TTTT_":"ط","t":'ت',"_SSSS_":"ص","uu":"و","ii":"ي","i":"ا","EndOf_SSSS_tack":"", "_HHHH_elpingVowel":"","llaah":"الله","aa":"ا","_sh_":"ش","s":"س","x":"خ","d":"د","_dh_":"ذ","z":"ز","f":"ف","y":"ی","g":"غ","h":"ه","j":"ج","k":"ک","l":"ل","b":"ب","n":"ن","m":"م"} _letters=["_hamzah_", "_HHHH_", "_DDDD_", "_ayn_", "w","q","e","r","_TTTT_","t","_SSSS_","uu","ii","i","EndOf_SSSS_tack", "_HHHH_elpingVowel","llaah","aa","_sh_","s","x","d","_dh_","z","f","y","g","h","j","k","l","b","n","m"] def __init__(self, surah): ''' Class constructor ''' self.allSurahs=[[ 0, 7, 5, 1, 'الفاتحة', "Al-Fatiha", 'The Opening', 'Meccan' ],[ 7, 286, 87, 40, 'البقرة', "Al-Baqara", 'The Heifer', 'Medinan' ],[ 293, 200, 89, 20, 'آل عمران', "Al-i-Imran", 'The Family of Imran', 'Medinan' ],[ 493, 176, 92, 24, 'النساء', "An-Nisa", 'The Women', 'Medinan' ],[ 669, 120, 112, 16, 'المائدة', "Al-Ma'ida", 'The Table', 'Medinan' ],[ 789, 165, 55, 20, 'الأنعام', "Al-An'am", 'The Cattle', 'Meccan' ],[ 954, 206, 39, 24, 'الأعراف', "Al-A'raf", 'The Heights', 'Meccan' ],[ 1160, 75, 88, 10, 'الأنفال', "Al-Anfal", 'The Spoils of War', 'Medinan' ],[ 1235, 129, 113, 16, 'التوبة', "At-Tawba", 'The Repentance', 'Medinan' ],[ 1364, 109, 51, 11, 'يونس', "Yunus", 'Jonah', 'Meccan' ],[ 1473, 123, 52, 10, 'هود', "Hud", 'Hud', 'Meccan' ],[ 1596, 111, 53, 12, 'يوسف', "Yusuf", 'Joseph', 'Meccan' ],[ 1707, 43, 96, 6, 'الرعد', "Ar-Ra'd", 'The Thunder', 'Medinan' ],[ 1750, 52, 72, 7, 'ابراهيم', "Ibrahim", 'Abraham', 'Meccan' ],[ 1802, 99, 54, 6, 'الحجر', "Al-Hijr", 'The Stoneland', 'Meccan' ],[ 1901, 128, 70, 16, 'النحل', "An-Nahl", 'The Honey Bees', 'Meccan' ],[ 2029, 111, 50, 12, 'الإسراء', "Al-Isra", 'The Night Journey', 'Meccan' ],[ 2140, 110, 69, 12, 'الكهف', "Al-Kahf", 'The Cave', 'Meccan' ],[ 2250, 98, 44, 6, 'مريم', "Maryam", 'Mary', 'Meccan' ],[ 2348, 135, 45, 8, 'طه', "Ta-Ha", 'Ta-Ha', 'Meccan' ],[ 2483, 112, 73, 7, 'الأنبياء', "Al-Anbiya", 'The Prophets', 'Meccan' ],[ 2595, 78, 103, 10, 'الحج', "Al-Hajj", 'The Pilgrimage', 'Medinan' ],[ 2673, 118, 74, 6, 'المؤمنون', "Al-Mu'minun", 'The Believers', 'Meccan' ],[ 2791, 64, 102, 9, 'النور', "An-Nur", 'The Light', 'Medinan' ],[ 2855, 77, 42, 6, 'الفرقان', "Al-Furqan", 'The Criterion', 'Meccan' ],[ 2932, 227, 47, 11, 'الشعراء', "Ash-Shu'ara", 'The Poets', 'Meccan' ],[ 3159, 93, 48, 7, 'النمل', "An-Naml", 'The Ant', 'Meccan' ],[ 3252, 88, 49, 9, 'القصص', "Al-Qasas", 'The Stories', 'Meccan' ],[ 3340, 69, 85, 7, 'العنكبوت', "Al-Ankabut", 'The Spider', 'Meccan' ],[ 3409, 60, 84, 6, 'الروم', "Ar-Rum", 'The Romans', 'Meccan' ],[ 3469, 34, 57, 4, 'لقمان', "Luqman", 'Luqman', 'Meccan' ],[ 3503, 30, 75, 3, 'السجدة', "As-Sajda", 'The Prostration', 'Meccan' ],[ 3533, 73, 90, 9, 'الأحزاب', "Al-Ahzab", 'The Clans', 'Medinan' ],[ 3606, 54, 58, 6, 'سبإ', "Saba", 'Sheba', 'Meccan' ],[ 3660, 45, 43, 5, 'فاطر', "Fatir", 'The Originator', 'Meccan' ],[ 3705, 83, 41, 5, 'يس', "Ya-Sin", 'Yaseen', 'Meccan' ],[ 3788, 182, 56, 5, 'الصافات', "As-Saffat", 'Drawn up in Ranks', 'Meccan' ],[ 3970, 88, 38, 5, 'ص', "Sad", 'The Letter Sad', 'Meccan' ],[ 4058, 75, 59, 8, 'الزمر', "Az-Zumar", 'The Troops', 'Meccan' ],[ 4133, 85, 60, 9, 'غافر', "Ghafir", 'The Forgiver', 'Meccan' ],[ 4218, 54, 61, 6, 'فصلت', "Fussilat", 'Explained in Detail', 'Meccan' ],[ 4272, 53, 62, 5, 'الشورى', "Ash-Shura", 'The Consultation', 'Meccan' ],[ 4325, 89, 63, 7, 'الزخرف', "Az-Zukhruf", 'The Ornaments of Gold', 'Meccan' ],[ 4414, 59, 64, 3, 'الدخان', "Ad-Dukhan", 'The Smoke', 'Meccan' ],[ 4473, 37, 65, 4, 'الجاثية', "Al-Jathiya", 'Crouching', 'Meccan' ],[ 4510, 35, 66, 4, 'الأحقاف', "Al-Ahqaf", 'The Dunes', 'Meccan' ],[ 4545, 38, 95, 4, 'محمد', "Muhammad", 'Muhammad', 'Medinan' ],[ 4583, 29, 111, 4, 'الفتح', "Al-Fath", 'The Victory', 'Medinan' ],[ 4612, 18, 106, 2, 'الحجرات', "Al-Hujurat", 'The Inner Apartments', 'Medinan' ],[ 4630, 45, 34, 3, 'ق', "Qaf", 'The Letter Qaf', 'Meccan' ],[ 4675, 60, 67, 3, 'الذاريات', "Adh-Dhariyat", 'The Winnowing Winds', 'Meccan' ],[ 4735, 49, 76, 2, 'الطور', "At-Tur", 'The Mount', 'Meccan' ],[ 4784, 62, 23, 3, 'النجم', "An-Najm", 'The Star', 'Meccan' ],[ 4846, 55, 37, 3, 'القمر', "Al-Qamar", 'The Moon', 'Meccan' ],[ 4901, 78, 97, 3, 'الرحمن', "Ar-Rahman", 'The Beneficent', 'Medinan' ],[ 4979, 96, 46, 3, 'الواقعة', "Al-Waqi'a", 'The Inevitable', 'Meccan' ],[ 5075, 29, 94, 4, 'الحديد', "Al-Hadid", 'The Iron', 'Medinan' ],[ 5104, 22, 105, 3, 'المجادلة', "Al-Mujadila", 'The Pleading', 'Medinan' ],[ 5126, 24, 101, 3, 'الحشر', "Al-Hashr", 'The Exile', 'Medinan' ],[ 5150, 13, 91, 2, 'الممتحنة', "Al-Mumtahina", 'Examining Her', 'Medinan' ],[ 5163, 14, 109, 2, 'الصف', "As-Saff", 'The Ranks', 'Medinan' ],[ 5177, 11, 110, 2, 'الجمعة', "Al-Jumu'a", 'Friday', 'Medinan' ],[ 5188, 11, 104, 2, 'المنافقون', "Al-Munafiqun", 'The Hypocrites', 'Medinan' ],[ 5199, 18, 108, 2, 'التغابن', "At-Taghabun", 'Mutual Disillusion', 'Medinan' ],[ 5217, 12, 99, 2, 'الطلاق', "At-Talaq", 'Divorce', 'Medinan' ],[ 5229, 12, 107, 2, 'التحريم', "At-Tahrim", 'The Prohibition', 'Medinan' ],[ 5241, 30, 77, 2, 'الملك', "Al-Mulk", 'The Sovereignty', 'Meccan' ],[ 5271, 52, 2, 2, 'القلم', "Al-Qalam", 'The Pen', 'Meccan' ],[ 5323, 52, 78, 2, 'الحاقة', "Al-Haqqa", 'The Reality', 'Meccan' ],[ 5375, 44, 79, 2, 'المعارج', "Al-Ma'arij", 'The Ascending Stairways', 'Meccan' ],[ 5419, 28, 71, 2, 'نوح', "Nuh", 'Noah', 'Meccan' ],[ 5447, 28, 40, 2, 'الجن', "Al-Jinn", 'The Jinn', 'Meccan' ],[ 5475, 20, 3, 2, 'المزمل', "Al-Muzzammil", 'The Enshrouded One', 'Meccan' ],[ 5495, 56, 4, 2, 'المدثر', "Al-Muddathir", 'The Cloaked One', 'Meccan' ],[ 5551, 40, 31, 2, 'القيامة', "Al-Qiyama", 'The Resurrection', 'Meccan' ],[ 5591, 31, 98, 2, 'الانسان', "Al-Insan", 'Human', 'Medinan' ],[ 5622, 50, 33, 2, 'المرسلات', "Al-Mursalat", 'The Emissaries', 'Meccan' ],[ 5672, 40, 80, 2, 'النبإ', "An-Naba'", 'The Announcement', 'Meccan' ],[ 5712, 46, 81, 2, 'النازعات', "An-Nazi'at", 'Those Who Drag Forth', 'Meccan' ],[ 5758, 42, 24, 1, 'عبس', "Abasa", 'He Frowned', 'Meccan' ],[ 5800, 29, 7, 1, 'التكوير', "At-Takwir", 'The Folding Up', 'Meccan' ],[ 5829, 19, 82, 1, 'الإنفطار', "Al-Infitar", 'The Cleaving', 'Meccan' ],[ 5848, 36, 86, 1, 'المطففين', "Al-Mutaffifin", 'Defrauding', 'Meccan' ],[ 5884, 25, 83, 1, 'الإنشقاق', "Al-Inshiqaq", 'The Splitting Open', 'Meccan' ],[ 5909, 22, 27, 1, 'البروج', "Al-Buruj", 'The Constellations', 'Meccan' ],[ 5931, 17, 36, 1, 'الطارق', "At-Tariq", 'The Morning Star', 'Meccan' ],[ 5948, 19, 8, 1, 'الأعلى', "Al-A'la", 'The Most High', 'Meccan' ],[ 5967, 26, 68, 1, 'الغاشية', "Al-Ghashiya", 'The Overwhelming', 'Meccan' ],[ 5993, 30, 10, 1, 'الفجر', "Al-Fajr", 'The Dawn', 'Meccan' ],[ 6023, 20, 35, 1, 'البلد', "Al-Balad", 'The City', 'Meccan' ],[ 6043, 15, 26, 1, 'الشمس', "Ash-Shams", 'The Sun', 'Meccan' ],[ 6058, 21, 9, 1, 'الليل', "Al-Lail", 'The Night', 'Meccan' ],[ 6079, 11, 11, 1, 'الضحى', "Ad-Dhuha", 'The Morning Hours', 'Meccan' ],[ 6090, 8, 12, 1, 'الشرح', "Ash-Sharh", 'The Consolation', 'Meccan' ],[ 6098, 8, 28, 1, 'التين', "At-Tin", 'The Fig', 'Meccan' ],[ 6106, 19, 1, 1, 'العلق', "Al-Alaq", 'The Clot', 'Meccan' ],[ 6125, 5, 25, 1, 'القدر', "Al-Qadr", 'The Power, Fate', 'Meccan' ],[ 6130, 8, 100, 1, 'البينة', "Al-Bayyina", 'The Evidence', 'Medinan' ],[ 6138, 8, 93, 1, 'الزلزلة', "Az-Zalzala", 'The Earthquake', 'Medinan' ],[ 6146, 11, 14, 1, 'العاديات', "Al-Adiyat", 'The Chargers', 'Meccan' ],[ 6157, 11, 30, 1, 'القارعة', "Al-Qari'a", 'The Calamity', 'Meccan' ],[ 6168, 8, 16, 1, 'التكاثر', "At-Takathur", 'Competition', 'Meccan' ],[ 6176, 3, 13, 1, 'العصر', "Al-Asr", 'The Time', 'Meccan' ],[ 6179, 9, 32, 1, 'الهمزة', "Al-Humaza", 'The Traducer', 'Meccan' ],[ 6188, 5, 19, 1, 'الفيل', "Al-Fil", 'The Elephant', 'Meccan' ],[ 6193, 4, 29, 1, 'قريش', "Quraysh", 'Quraysh', 'Meccan' ],[ 6197, 7, 17, 1, 'الماعون', "Al-Ma'un", 'Almsgiving', 'Meccan' ],[ 6204, 3, 15, 1, 'الكوثر', "Al-Kawthar", 'Abundance', 'Meccan' ],[ 6207, 6, 18, 1, 'الكافرون', "Al-Kafirun", 'The Disbelievers', 'Meccan' ],[ 6213, 3, 114, 1, 'النصر', "An-Nasr", 'Divine Support', 'Medinan' ],[ 6216, 5, 6, 1, 'المسد', "Al-Masad", 'The Palm Fibre', 'Meccan' ],[ 6221, 4, 22, 1, 'الإخلاص', "Al-Ikhlas", 'Purity of Faith', 'Meccan' ],[ 6225, 5, 20, 1, 'الفلق', "Al-Falaq", 'The Dawn', 'Meccan' ],[ 6230, 6, 21, 1, 'الناس', "An-Nas", 'Mankind', 'Meccan' ] ] self.surah_info=self.allSurahs[surah-1] f=open('quran.txt','r') lines=f.readlines() self.text=[line.strip() for line in lines[self.surah_info[0]:(self.surah_info[0]+self.surah_info[1])]] f=open('quran_noStop.csv','r') lines=f.readlines() self.nonStopWord_roots=[line.strip() for line in lines[self.surah_info[0]:(self.surah_info[0]+self.surah_info[1])]] f=open('quran_haveStop.csv','r') lines=f.readlines() self.roots=[line.strip() for line in lines[self.surah_info[0]:(self.surah_info[0]+self.surah_info[1])]] def __str__(self): ''' This method returns information about the surah ''' return ("Surah: "+self.surah_info[4]+ " ("+self.surah_info[5]+":"+self.surah_info[6]+"), revealed in "+self.surah_info[7] + ", which has "+ str(self.surah_info[1])+" Ayah") def getAvgAyahTFIDF(self,text,n,k): ''' This method returns ayaat which are close to the average ayah ''' tf = TfidfVectorizer(ngram_range=(1,n),min_df=1 , max_df=1.0) tf_matrix = tf.fit_transform(text) feature_names = tf.get_feature_names() # average ayah avg_ayah=np.mean(tf_matrix.toarray(),axis=0) # cosine similarity sim_scores=avg_ayah.T.dot(tf_matrix.toarray().T) idxs=np.argsort(sim_scores)[::-1] return ["("+str(idx+1)+")"+self.text[idx] for idx in idxs[:k]] def topFrequentWords(self,n,k): ''' This method returns the k-top frequent words ''' tf = TfidfVectorizer(ngram_range=(n,n),min_df=1 , max_df=1.0) tf_matrix = tf.fit_transform(self.text) feature_names = tf.get_feature_names() # average ayah sum_ayat=np.sum(tf_matrix.toarray(),axis=0) idxs=np.argsort(sum_ayat)[::-1] return [feature_names[idx] for idx in idxs[:k]] def topFrequentRoots(self,n,k): ''' This method returns the k-top frequent roots ''' tf = TfidfVectorizer(ngram_range=(n,n),min_df=1 , max_df=1.0) tf_matrix = tf.fit_transform(self.nonStopWord_roots) feature_names = tf.get_feature_names() # average ayah sum_ayat=np.sum(tf_matrix.toarray(),axis=0) idxs=np.argsort(sum_ayat)[::-1] return [feature_names[idx] for idx in idxs[:k]] def convert2Arabic(self, word): ''' This function converts roots to the arabic letters ''' for letter in self._letters: if letter in word: word=word.replace(letter,self._letters_map[letter])
133.097561
7,749
0.594924
1,666
10,914
3.830132
0.465186
0.022567
0.030559
0.013164
0.152171
0.142924
0.125372
0.122395
0.122395
0.114872
0
0.113869
0.13982
10,914
82
7,750
133.097561
0.565829
0.031428
0
0.297872
0
0
0.379337
0
0
0
0
0
0
1
0.12766
false
0
0.085106
0
0.361702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
08119bce9d9e9e83e529106b6355cb194e4d91b0
2,304
py
Python
rocketbase/exceptions.py
Rocketbase-AI/rocketbase-pip-package
f12d82e32ae3bf3d3c9ae310baf32c9c5d980671
[ "MIT" ]
null
null
null
rocketbase/exceptions.py
Rocketbase-AI/rocketbase-pip-package
f12d82e32ae3bf3d3c9ae310baf32c9c5d980671
[ "MIT" ]
null
null
null
rocketbase/exceptions.py
Rocketbase-AI/rocketbase-pip-package
f12d82e32ae3bf3d3c9ae310baf32c9c5d980671
[ "MIT" ]
null
null
null
class RocketNotEnoughInfo(Exception): """ Exception raised when not enough information is provided to fetch/find a Rocket. """ def __init__(self, message, errors=None): # Call the base class constructor with the parameters it needs super().__init__(message) class RocketInfoFormat(Exception): """ Exception raised when the format of a Rocket's information is not conform. """ def __init__(self, message, errors=None): # Call the base class constructor with the parameters it needs super().__init__(message) class RocketAPIError(Exception): """ Exception raised when the RocketAPI is returning an error code. """ def __init__(self, message, errors=None): # Call the base class constructor with the parameters it needs super().__init__(message) class RocketNotFound(Exception): """ Exception raised when no Rocket is found. """ def __init__(self, message, errors=None): # Call the base class constructor with the parameters it needs super().__init__(message) class RocketHashNotValid(Exception): """ Exception raised when the hash of a Rocket is not valid. """ def __init__(self, message, errors=None): # Call the base class constructor with the parameters it needs super().__init__(message) class RocketDeviceNotFound(Exception): """ Exception raised when the device requested to run the Rocket doesn't exist. """ def __init__(self, message, errors=None): # Call the base class constructor with the parameters it needs super().__init__(message) class CloudStorageCredentials(Exception): """ Exception raised when the retrieval of the credentials for the Cloud Storage failed """ def __init__(self, message, errors=None): # Call the base class constructor with the parameters it needs super().__init__(message) class ShadowRocketPostprocessData(Exception): """ Exception raised when there are some missing information to successfully complete the post-process function of a ShadowRocket. """ def __init__(self, message, errors=None): # Call the base class constructor with the parameters it needs super().__init__(message)
27.428571
130
0.689236
274
2,304
5.562044
0.262774
0.094488
0.125984
0.146982
0.62336
0.521654
0.521654
0.521654
0.521654
0.521654
0
0
0.233073
2,304
83
131
27.759036
0.862479
0.474826
0
0.666667
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
081dc644a25b4e1a6589c80519d39b0e02658765
763
py
Python
advent/y2021/d7.py
ljk233/Advent.py
f21c9ffc1ae5e490c35ca8c63e5000892b9dc5f2
[ "MIT" ]
null
null
null
advent/y2021/d7.py
ljk233/Advent.py
f21c9ffc1ae5e490c35ca8c63e5000892b9dc5f2
[ "MIT" ]
null
null
null
advent/y2021/d7.py
ljk233/Advent.py
f21c9ffc1ae5e490c35ca8c63e5000892b9dc5f2
[ "MIT" ]
null
null
null
from ..solution import Solution from math import ceil, floor from statistics import median, mean def abs_diff(a, b) -> int: return int(abs(a - b)) def sum_to(n: int) -> int: return int((n * (n + 1)) / 2) def median_cost(crabs_pos) -> int: med_pos = int(median(crabs_pos)) return sum([abs_diff(pos, med_pos) for pos in crabs_pos]) def mean_cost(crabs_pos) -> int: mean_pos = mean(crabs_pos) return min( sum([sum_to(abs_diff(pos, floor(mean_pos))) for pos in crabs_pos]), sum([sum_to(abs_diff(pos, ceil(mean_pos))) for pos in crabs_pos]) ) def solve(input: list[str]) -> Solution: crabs_pos = sorted([int(x) for x in input[0].split(",")]) return Solution(median_cost(crabs_pos), mean_cost(crabs_pos))
24.612903
75
0.657929
129
763
3.689922
0.27907
0.168067
0.10084
0.069328
0.22479
0.22479
0.14916
0
0
0
0
0.004902
0.197903
763
30
76
25.433333
0.772876
0
0
0
0
0
0.001312
0
0
0
0
0
0
1
0.263158
false
0
0.157895
0.105263
0.684211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
08330658c6710c05c6c703937954d15e9a2b27ce
1,290
py
Python
src/pv.py
openclimatefix/nowcasting_api
b5ad084466811d0415ccbfb52306d9d56651a461
[ "MIT" ]
3
2021-12-12T21:32:40.000Z
2021-12-12T21:32:46.000Z
src/pv.py
openclimatefix/nowcasting_api
b5ad084466811d0415ccbfb52306d9d56651a461
[ "MIT" ]
58
2021-09-16T11:03:58.000Z
2022-03-28T17:28:48.000Z
src/pv.py
openclimatefix/nowcasting_api
b5ad084466811d0415ccbfb52306d9d56651a461
[ "MIT" ]
5
2021-09-27T14:51:30.000Z
2022-03-11T14:02:44.000Z
""" Expose PV data """ # # import logging # from datetime import datetime, timedelta # from typing import List # # from fastapi import APIRouter, Depends # from nowcasting_datamodel.models import PVYield # from nowcasting_datamodel.read.read_pv import get_latest_pv_yield, get_pv_systems # from sqlalchemy.orm.session import Session # # from database import get_session_pv # # logger = logging.getLogger(__name__) # # # router = APIRouter() # # @router.get("/pv_latest", response_model=List[PVYield]) # def get_latest_pv_data(session: Session = Depends(get_session_pv)) -> List[PVYield]: # """Get Latest PV data from specific pv sites # # Only provide PV data received within the last 1 hour # """ # # # get latest pv data # pv_systems_sql = get_pv_systems(session=session) # pv_yields_sql = get_latest_pv_yield(session=session, pv_systems=pv_systems_sql) # # # remove any data older than 1 hours # now_minus_1_hours = datetime.utcnow() - timedelta(hours=1) # pv_yields_sql = [ # pv_yield_sql # for pv_yield_sql in pv_yields_sql # if pv_yield_sql.datetime_utc >= now_minus_1_hours # ] # # # convert to pydantic # pv_yields = [PVYield.from_orm(pv_yield_sql) for pv_yield_sql in pv_yields_sql] # # return pv_yields
30
86
0.71938
184
1,290
4.722826
0.331522
0.056387
0.063291
0.051784
0.082854
0.082854
0.082854
0.082854
0.082854
0.082854
0
0.004762
0.186047
1,290
42
87
30.714286
0.822857
0.929457
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
08416cbbe41d33373e0e358e8e1a0c276210acf1
899
py
Python
kiqpo/main.py
bionic-py/Bionic
a54c85107a6a2aa9a9563b6b3e1f9bb64d63faa4
[ "MIT" ]
9
2021-10-31T03:38:16.000Z
2021-12-17T00:03:36.000Z
kiqpo/main.py
bionic-py/Bionic
a54c85107a6a2aa9a9563b6b3e1f9bb64d63faa4
[ "MIT" ]
12
2021-11-11T14:18:09.000Z
2021-12-03T14:00:25.000Z
kiqpo/main.py
kiqpo/kiqpo
a54c85107a6a2aa9a9563b6b3e1f9bb64d63faa4
[ "MIT" ]
3
2022-03-03T18:30:53.000Z
2022-03-09T13:29:39.000Z
from view import* def RunApp(): Head(), Body( KiqpoLayout( TopAppBar(title='My app', style=TopAppBarStyle( background=Colors.blue )), Home( Padding( Button(label='blue button', style=buttonstyle( borderRadius=Px(5), width=Screen(19), background=Colors.blue ), onTap=Alert("hello")), ), Padding( Button(label='red button', style=buttonstyle( borderRadius=Px(5), width=Screen(19), background=Colors.red ), onTap=Snackbar.show("MySnackbar",'HI to python')), ), Snackbar.initialize("MySnackbar"), ), ), )
29.966667
73
0.407119
63
899
5.809524
0.619048
0.131148
0.10929
0.185792
0.360656
0.360656
0.360656
0.360656
0.360656
0.360656
0
0.013015
0.487208
899
29
74
31
0.780911
0
0
0.444444
0
0
0.07119
0
0
0
0
0
0
1
0.037037
true
0
0.037037
0
0.074074
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
085273f234a38f6eded8217fdaa7ca10d725fc51
3,979
py
Python
joblistings/migrations/0001_initial.py
MattYu/ConcordiaAce
35eff7614652eb548e532dcf00e3a7296855285c
[ "MIT" ]
1
2021-06-14T06:54:16.000Z
2021-06-14T06:54:16.000Z
joblistings/migrations/0001_initial.py
MattYu/ConcordiaAce
35eff7614652eb548e532dcf00e3a7296855285c
[ "MIT" ]
34
2020-04-05T01:14:31.000Z
2022-03-12T00:23:02.000Z
joblistings/migrations/0001_initial.py
MattYu/ConcordiaAce
35eff7614652eb548e532dcf00e3a7296855285c
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-02-03 20:11 from django.db import migrations, models import django.db.models.deletion import tinymce.models class Migration(migrations.Migration): initial = True dependencies = [ ('accounts', '0001_initial'), ('companies', '0001_initial'), ] operations = [ migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=60)), ('category', models.CharField(choices=[('ANY', 'Any Category'), ('E_Aero_Mech', 'GCS Engineering - Aerospace & Mechanical'), ('E_Elec', 'GCS Engineering - Electrical'), ('E_Ind', 'GCS Engineering - Industrial'), ('E_QS', 'GCS Engineering - Quality System'), ('E_Soft', 'GCS Engineering and Computer Science - Computer, Information Security & Software'), ('E_Other', 'GCS Engineering - Other'), ('F_A_Design', 'Fine Arts - Computational Arts & Design'), ('J_Acc_Fin', 'JMSB - Accounting & Finance'), ('J_HR_Mar', 'JMSB - HR & Marketing'), ('J_Bus', 'JMSB - Business Administration'), ('J_Man', 'JMSB - Management & Supply Chain Operation Management'), ('J_Other', 'JMSB - Other'), ('A_Acc', 'Arts and Science - Actuarial Mathematics & Finance'), ('A_Econ', 'Arts and Science - Economics'), ('A_Math_Phy', 'Arts and Science - Mathematics & Physics'), ('A_Pol', 'Arts and Science - Political Science'), ('A_BIO_CHEM', 'Arts and Science - Biology & Chemistry'), ('A_Jou', 'Arts and Science - Journalism'), ('A_Tr', 'Arts and Science - Translation'), ('A_Other', 'Arts and Science - Other')], default='Any', max_length=40)), ('salaryRange', models.CharField(default='N/A', max_length=40)), ('vacancy', models.IntegerField(blank=True, null=True)), ('startDate', models.CharField(default='', max_length=40)), ('expirationDate', models.CharField(default='', max_length=40)), ('duration', models.CharField(default='', max_length=40)), ('description', tinymce.models.HTMLField(default='', max_length=2000)), ('responsabilities', tinymce.models.HTMLField(default='', max_length=2000)), ('requirements', tinymce.models.HTMLField(default='', max_length=2000)), ('status', models.CharField(choices=[('Pending', 'Pending Coop Review'), ('Waiting', 'Collecting applications'), ('Review', 'Open for Review'), ('Interviewing', 'Intervierwing'), ('Not Approved', 'Not Approved'), ('Closed', 'Closed')], default='Pending', max_length=20)), ('country', models.CharField(choices=[('None', 'Country'), ('CA', 'Canada'), ('US', 'USA'), ('Other-Europe', 'Other- Europe'), ('Other-Asia', 'Other- Asia'), ('Other', 'Other')], default='Canada', max_length=40)), ('location', models.CharField(default='Montreal', max_length=40)), ('postcode', models.CharField(default='', max_length=40)), ('yourLocation', models.CharField(default='', max_length=40)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('company', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, to='companies.Company')), ('jobAccessPermission', models.ManyToManyField(to='accounts.Employer')), ], ), migrations.CreateModel( name='JobPDFDescription', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('descriptionFile', models.FileField(default='', upload_to='company/jobDescription.')), ('job', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, to='joblistings.Job')), ], ), ]
76.519231
1,135
0.620759
419
3,979
5.761337
0.408115
0.052196
0.041011
0.051781
0.260563
0.237365
0.169014
0.116819
0.116819
0.116819
0
0.01761
0.200804
3,979
51
1,136
78.019608
0.741509
0.010807
0
0.227273
1
0
0.363498
0.005846
0
0
0
0
0
1
0
false
0
0.068182
0
0.159091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0857232be2a3bdb6f6296e490cca86bf8cb097e4
2,519
py
Python
app/account/models.py
nabechin/article
63bbaaaa9c194cc259456c46d8c3ccd0f8ee10c1
[ "MIT" ]
null
null
null
app/account/models.py
nabechin/article
63bbaaaa9c194cc259456c46d8c3ccd0f8ee10c1
[ "MIT" ]
9
2020-07-09T15:29:48.000Z
2020-07-29T13:05:30.000Z
app/account/models.py
nabechin/article
63bbaaaa9c194cc259456c46d8c3ccd0f8ee10c1
[ "MIT" ]
null
null
null
import uuid import os from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin from django.conf import settings def profile_image_save_path(instance, fileName): extension = fileName.split('.')[-1] filename = f'{uuid.uuid4()}.{extension}' return os.path.join('profile_image/', filename) def introduction_image_save_path(instance, fileName): extension = fileName.split('.')[-1] filename = f'{uuid.uuid4()}.{extension}' return os.path.join('background_image/', filename) class UserManager(BaseUserManager): def create_user(self, email, password, **extra_fields): user = self.model(email=self.normalize_email(email), **extra_fields) user.set_password(password) user.save(using=self._db) return user def create_superuser(self, email, password, username): user = self.create_user(email, password, username) user.is_staff = True user.is_superuser = True user.save(using=self._db) return user class User(AbstractBaseUser, PermissionsMixin): class Meta: verbose_name = 'ユーザ' name = models.CharField(max_length=255) username = models.CharField( max_length=150, unique=True, default=None, verbose_name='ユーザ名') email = models.EmailField( max_length=255, unique=True, verbose_name='メールアドレス',) password = models.CharField(max_length=128, default=None) is_active = models.BooleanField(default=True) is_staff = models.BooleanField(default=False) objects = UserManager() USERNAME_FIELD = 'email' def __str__(self): return self.name class UserProfile(models.Model): introduction = models.TextField(blank=True, null=True, default="") profile_image = models.ImageField( null=True, upload_to=profile_image_save_path, default="default_profile.jpg") background_image = models.ImageField( null=True, upload_to=introduction_image_save_path, default="default_background.jpg") user = models.OneToOneField( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name='user_profile' ) class Relation(models.Model): follower = models.ForeignKey( settings.AUTH_USER_MODEL, null=True, on_delete=models.CASCADE, related_name='follower' ) target = models.ForeignKey( settings.AUTH_USER_MODEL, null=True, on_delete=models.CASCADE, related_name='target' )
31.4875
92
0.695514
295
2,519
5.742373
0.294915
0.023613
0.030697
0.042503
0.331759
0.299882
0.280992
0.20307
0.20307
0.20307
0
0.007905
0.196507
2,519
79
93
31.886076
0.829051
0
0
0.25
0
0
0.067884
0.029377
0
0
0
0
0
1
0.078125
false
0.078125
0.078125
0.015625
0.53125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
f231c2e6a0bbec8e3a6c8442c5309f9cc6d9acf4
172
py
Python
application/script/test.py
fengshukun/kcweb
313bce537818f0152a363101c91bf2eed50e9502
[ "MIT" ]
null
null
null
application/script/test.py
fengshukun/kcweb
313bce537818f0152a363101c91bf2eed50e9502
[ "MIT" ]
null
null
null
application/script/test.py
fengshukun/kcweb
313bce537818f0152a363101c91bf2eed50e9502
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #脚本文件 import sys sys.path.append("../../") from ${appname}.script.common import * class TEST: def aa(self): print('aa') t=TEST() t.aa()
15.636364
38
0.569767
25
172
3.92
0.76
0
0
0
0
0
0
0
0
0
0
0.007143
0.186047
172
11
39
15.636364
0.692857
0.145349
0
0
0
0
0.055172
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.125
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
f239cd610f1ea1327351024702ff45ae6400bfd0
918
py
Python
stubs/sql_model_template.py
pythononwheels/pow_comments
2cfe1c648f26058d5e5d6c7d86fbe1261847e4f0
[ "MIT" ]
null
null
null
stubs/sql_model_template.py
pythononwheels/pow_comments
2cfe1c648f26058d5e5d6c7d86fbe1261847e4f0
[ "MIT" ]
null
null
null
stubs/sql_model_template.py
pythononwheels/pow_comments
2cfe1c648f26058d5e5d6c7d86fbe1261847e4f0
[ "MIT" ]
null
null
null
# # Model {{model_class_name}} # from sqlalchemy import Column, Integer, String, Boolean, Sequence from sqlalchemy import BigInteger, Date, DateTime, Float, Numeric from {{appname}}.powlib import relation from {{appname}}.dblib import Base #@relation.has_many("<plural_other_models>") #@relation.setup_schema() class {{model_class_name}}(Base): # # column definitions: sqlalchemy classic style # which offer you all sqlalchemy options # #title = Column(String(50)) #text = Column(String) # # or the new (cerberus) schema style # which offer you immediate validation # schema = { # string sqltypes can be TEXT or UNICODE or nothing 'name': {'type': 'string', 'maxlength' : 35}, 'text': {'type': 'string'} } # init def __init__(self, **kwargs): self.init_on_load(**kwargs) # # your model's methods down here #
26.228571
65
0.642702
107
918
5.383178
0.598131
0.034722
0.048611
0.0625
0
0
0
0
0
0
0
0.005698
0.235294
918
34
66
27
0.814815
0.418301
0
0
0
0
0.072125
0
0
0
0
0
0
0
null
null
0
0.363636
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
f24877ab95cdb8b75a9b4325996445b8afad53b7
253,905
py
Python
pysnmp-with-texts/ASCEND-MIBINET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ASCEND-MIBINET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ASCEND-MIBINET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ASCEND-MIBINET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBINET-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:27:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # configuration, = mibBuilder.importSymbols("ASCEND-MIB", "configuration") ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") TimeTicks, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Counter32, Unsigned32, Gauge32, iso, IpAddress, Integer32, Bits, MibIdentifier, ModuleIdentity, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Counter32", "Unsigned32", "Gauge32", "iso", "IpAddress", "Integer32", "Bits", "MibIdentifier", "ModuleIdentity", "Counter64") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") class DisplayString(OctetString): pass mibinternetProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 529, 23, 1)) mibinternetProfileTable = MibTable((1, 3, 6, 1, 4, 1, 529, 23, 1, 1), ) if mibBuilder.loadTexts: mibinternetProfileTable.setStatus('mandatory') if mibBuilder.loadTexts: mibinternetProfileTable.setDescription('A list of mibinternetProfile profile entries.') mibinternetProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1), ).setIndexNames((0, "ASCEND-MIBINET-MIB", "internetProfile-Station")) if mibBuilder.loadTexts: mibinternetProfileEntry.setStatus('mandatory') if mibBuilder.loadTexts: mibinternetProfileEntry.setDescription('A mibinternetProfile entry containing objects that maps to the parameters of mibinternetProfile profile.') internetProfile_Station = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 1), DisplayString()).setLabel("internetProfile-Station").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_Station.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Station.setDescription('The name of the host we will be communicating with. This name is used as part of the authentication process when authentication is being used.') internetProfile_Active = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-Active").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Active.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Active.setDescription('A profile can be disabled by setting this field to no. There is no difference between an inactive profile and no profile at all to the remainder of the code.') internetProfile_EncapsulationProtocol = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 9, 4, 5, 6, 10, 11, 12, 13, 7, 14, 15, 17, 8, 18, 21, 22, 23, 24, 26, 27, 28))).clone(namedValues=NamedValues(("mpp", 1), ("mp", 2), ("ppp", 3), ("combinet", 9), ("slip", 4), ("cslip", 5), ("frameRelay", 6), ("frameRelayCircuit", 10), ("x25pad", 11), ("euraw", 12), ("euui", 13), ("tcpRaw", 7), ("rfc1356X25", 14), ("ara", 15), ("t3pos", 17), ("dtpt", 8), ("x32", 18), ("atm", 21), ("atmFrameRelayCircuit", 22), ("hdlcNrm", 23), ("atmCircuit", 24), ("visa2", 26), ("atmSvcSig", 27), ("atmIma", 28)))).setLabel("internetProfile-EncapsulationProtocol").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_EncapsulationProtocol.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_EncapsulationProtocol.setDescription('The encapsulation protocol to be used when communicating with the named station.') internetProfile_CalledNumberType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 7))).clone(namedValues=NamedValues(("unknown", 1), ("international", 2), ("national", 3), ("networkSpecific", 4), ("local", 5), ("abbrev", 7)))).setLabel("internetProfile-CalledNumberType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_CalledNumberType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_CalledNumberType.setDescription('Indication of whether national number, international number, etc. is specified.') internetProfile_DialNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 5), DisplayString()).setLabel("internetProfile-DialNumber").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_DialNumber.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_DialNumber.setDescription('The phone number of the named station.') internetProfile_SubAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 292), DisplayString()).setLabel("internetProfile-SubAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SubAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SubAddress.setDescription('The sub-address extension to the dialed number of the station.') internetProfile_Clid = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 6), DisplayString()).setLabel("internetProfile-Clid").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Clid.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Clid.setDescription('The calling line number for authentication.') internetProfile_AutoProfiles = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 420), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AutoProfiles").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AutoProfiles.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AutoProfiles.setDescription('This parameter enables or disables automatic profile creation. Currently only the Stinger IDSL provides this capability for PPP Circuits and Frame Relay Circuits.') internetProfile_IpOptions_IpRoutingEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-IpRoutingEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_IpRoutingEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_IpRoutingEnabled.setDescription('Enable/disable IP routing for this connection.') internetProfile_IpOptions_VjHeaderPrediction = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-VjHeaderPrediction").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_VjHeaderPrediction.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_VjHeaderPrediction.setDescription('Enable/disable Van Jacabson TCP Header prediction processing on this connection if supported by the selected encapsulation protocol.') internetProfile_IpOptions_RemoteAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 9), IpAddress()).setLabel("internetProfile-IpOptions-RemoteAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_RemoteAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_RemoteAddress.setDescription('The remote address with netmask of the named host.') internetProfile_IpOptions_NetmaskRemote = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 10), IpAddress()).setLabel("internetProfile-IpOptions-NetmaskRemote").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_NetmaskRemote.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_NetmaskRemote.setDescription('The netmask of the remote address.') internetProfile_IpOptions_LocalAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 11), IpAddress()).setLabel("internetProfile-IpOptions-LocalAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_LocalAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_LocalAddress.setDescription('The interface address with netmask, if required, of the local end. If left zero the interface is assumed to be an unnumbered interface.') internetProfile_IpOptions_NetmaskLocal = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 12), IpAddress()).setLabel("internetProfile-IpOptions-NetmaskLocal").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_NetmaskLocal.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_NetmaskLocal.setDescription('The netmask of the local interface address.') internetProfile_IpOptions_RoutingMetric = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 13), Integer32()).setLabel("internetProfile-IpOptions-RoutingMetric").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_RoutingMetric.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_RoutingMetric.setDescription('The routing metric, typically measured in number of hops, to be used in the routing table entry created for this connection when the connection is active.') internetProfile_IpOptions_Preference = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 14), Integer32()).setLabel("internetProfile-IpOptions-Preference").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_Preference.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_Preference.setDescription('The preference used for comparing this route to other routes. Preference has a higher priority than metric. As with the metric field, the lower the number, the higher the preference.') internetProfile_IpOptions_DownPreference = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 15), Integer32()).setLabel("internetProfile-IpOptions-DownPreference").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_DownPreference.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_DownPreference.setDescription('The preference used for comparing the down-metric route to other routes. Preference has a higher priority than metric. As with the metric field, the lower the number, the higher the preference.') internetProfile_IpOptions_PrivateRoute = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-PrivateRoute").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_PrivateRoute.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_PrivateRoute.setDescription('Enable/disable distribution of the route created for this connection via routing protocols. Private routes are used internally, but never advertized to the outside world.') internetProfile_IpOptions_MulticastAllowed = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-MulticastAllowed").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_MulticastAllowed.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_MulticastAllowed.setDescription('Enable this connection as a multicast traffic client.') internetProfile_IpOptions_AddressPool = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 18), Integer32()).setLabel("internetProfile-IpOptions-AddressPool").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_AddressPool.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_AddressPool.setDescription('The number of the address pool from which an address for this host should be obtained when using assigned addresses.') internetProfile_IpOptions_IpDirect = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 19), IpAddress()).setLabel("internetProfile-IpOptions-IpDirect").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_IpDirect.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_IpDirect.setDescription('The address of the next-hop when IP direct routing is used.') internetProfile_IpOptions_Rip = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("routingOff", 1), ("routingSendOnly", 2), ("routingRecvOnly", 3), ("routingSendAndRecv", 4), ("routingSendOnlyV2", 5), ("routingRecvOnlyV2", 6), ("routingSendAndRecvV2", 7)))).setLabel("internetProfile-IpOptions-Rip").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_Rip.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_Rip.setDescription('Specify if RIP or RIP-2 should be used over this connection and if used in both directions or not.') internetProfile_IpOptions_RouteFilter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 21), DisplayString()).setLabel("internetProfile-IpOptions-RouteFilter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_RouteFilter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_RouteFilter.setDescription('The name of this filter. All filters are referenced by name so a name must be assigned to active filters.') internetProfile_IpOptions_SourceIpCheck = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-SourceIpCheck").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_SourceIpCheck.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_SourceIpCheck.setDescription("Enable/disable source ip checking. Packets with source ip address which doesn't match with negotiated remote ip address will be dropped.") internetProfile_IpOptions_OspfOptions_Active = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-OspfOptions-Active").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Active.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Active.setDescription('Is OSPF active on this interface.') internetProfile_IpOptions_OspfOptions_Area = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 24), IpAddress()).setLabel("internetProfile-IpOptions-OspfOptions-Area").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Area.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Area.setDescription('The area that this interface belongs to.') internetProfile_IpOptions_OspfOptions_AreaType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("normal", 1), ("stub", 2), ("nSSA", 3)))).setLabel("internetProfile-IpOptions-OspfOptions-AreaType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AreaType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AreaType.setDescription('The type of Area. Normal, Stub, NSSA') internetProfile_IpOptions_OspfOptions_HelloInterval = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 26), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-HelloInterval").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_HelloInterval.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_HelloInterval.setDescription('The hello interval (seconds).') internetProfile_IpOptions_OspfOptions_DeadInterval = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 27), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-DeadInterval").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_DeadInterval.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_DeadInterval.setDescription('The dead interval (seconds).') internetProfile_IpOptions_OspfOptions_Priority = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 28), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-Priority").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Priority.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Priority.setDescription('The priority of this router in DR elections.') internetProfile_IpOptions_OspfOptions_AuthenType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("simple", 2), ("md5", 3)))).setLabel("internetProfile-IpOptions-OspfOptions-AuthenType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AuthenType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AuthenType.setDescription('The type of OSPF authentication in effect.') internetProfile_IpOptions_OspfOptions_AuthKey = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 30), DisplayString()).setLabel("internetProfile-IpOptions-OspfOptions-AuthKey").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AuthKey.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AuthKey.setDescription('The authentication key.') internetProfile_IpOptions_OspfOptions_KeyId = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 31), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-KeyId").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_KeyId.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_KeyId.setDescription('The key identifier for MD5 authentication.') internetProfile_IpOptions_OspfOptions_Cost = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 32), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-Cost").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Cost.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Cost.setDescription('The output cost.') internetProfile_IpOptions_OspfOptions_DownCost = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 33), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-DownCost").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_DownCost.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_DownCost.setDescription('The output cost when the link is physically down but virtually up.') internetProfile_IpOptions_OspfOptions_AseType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("type1", 1), ("type2", 2)))).setLabel("internetProfile-IpOptions-OspfOptions-AseType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AseType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AseType.setDescription('The OSPF ASE type of this LSA.') internetProfile_IpOptions_OspfOptions_AseTag = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 35), DisplayString()).setLabel("internetProfile-IpOptions-OspfOptions-AseTag").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AseTag.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_AseTag.setDescription('The OSPF ASE tag of this link.') internetProfile_IpOptions_OspfOptions_TransitDelay = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 36), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-TransitDelay").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_TransitDelay.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_TransitDelay.setDescription('The estimated transit delay (seconds).') internetProfile_IpOptions_OspfOptions_RetransmitInterval = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 37), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-RetransmitInterval").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_RetransmitInterval.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_RetransmitInterval.setDescription('The retransmit time (seconds).') internetProfile_IpOptions_OspfOptions_NonMulticast = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-OspfOptions-NonMulticast").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_NonMulticast.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_NonMulticast.setDescription('Use direct addresses instead of multicast addresses.') internetProfile_IpOptions_OspfOptions_NetworkType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 250), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4))).clone(namedValues=NamedValues(("broadcast", 2), ("nonBroadcast", 3), ("pointToPoint", 4)))).setLabel("internetProfile-IpOptions-OspfOptions-NetworkType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_NetworkType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_NetworkType.setDescription('The type of network attachment.') internetProfile_IpOptions_OspfOptions_PollInterval = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 251), Integer32()).setLabel("internetProfile-IpOptions-OspfOptions-PollInterval").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_PollInterval.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_PollInterval.setDescription('The poll interval for non-broadcast multi-access network (seconds).') internetProfile_IpOptions_OspfOptions_Md5AuthKey = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 252), DisplayString()).setLabel("internetProfile-IpOptions-OspfOptions-Md5AuthKey").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Md5AuthKey.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_OspfOptions_Md5AuthKey.setDescription('The MD5 authentication key.') internetProfile_IpOptions_MulticastRateLimit = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 39), Integer32()).setLabel("internetProfile-IpOptions-MulticastRateLimit").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_MulticastRateLimit.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_MulticastRateLimit.setDescription('The multicast rate limit in seconds.') internetProfile_IpOptions_MulticastGroupLeaveDelay = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 40), Integer32()).setLabel("internetProfile-IpOptions-MulticastGroupLeaveDelay").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_MulticastGroupLeaveDelay.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_MulticastGroupLeaveDelay.setDescription('The multicast group leave in seconds. This is only for IGMP Version 2') internetProfile_IpOptions_ClientDnsPrimaryAddr = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 41), IpAddress()).setLabel("internetProfile-IpOptions-ClientDnsPrimaryAddr").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_ClientDnsPrimaryAddr.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_ClientDnsPrimaryAddr.setDescription('User specific DNS Primary Address.') internetProfile_IpOptions_ClientDnsSecondaryAddr = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 42), IpAddress()).setLabel("internetProfile-IpOptions-ClientDnsSecondaryAddr").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_ClientDnsSecondaryAddr.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_ClientDnsSecondaryAddr.setDescription('User specific DNS Secondary Address.') internetProfile_IpOptions_ClientDnsAddrAssign = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 43), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-ClientDnsAddrAssign").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_ClientDnsAddrAssign.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_ClientDnsAddrAssign.setDescription('A flag to control assigning user specific DNS Addresses.') internetProfile_IpOptions_ClientDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 44), IpAddress()).setLabel("internetProfile-IpOptions-ClientDefaultGateway").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_ClientDefaultGateway.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_ClientDefaultGateway.setDescription("The default gateway to be used for traffic from this connection, if no specific route is found in the routing table. If left zero, the system's default route will be used.") internetProfile_IpOptions_TosOptions_Active = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-TosOptions-Active").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_Active.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_Active.setDescription('Activate type of service for this connection.') internetProfile_IpOptions_TosOptions_Precedence = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 46), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 33, 65, 97, 129, 161, 193, 225))).clone(namedValues=NamedValues(("n-000", 1), ("n-001", 33), ("n-010", 65), ("n-011", 97), ("n-100", 129), ("n-101", 161), ("n-110", 193), ("n-111", 225)))).setLabel("internetProfile-IpOptions-TosOptions-Precedence").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_Precedence.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_Precedence.setDescription('Tag the precedence bits (priority bits) in the TOS octet of IP datagram header with this value when match occurs.') internetProfile_IpOptions_TosOptions_TypeOfService = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 47), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 5, 9, 17))).clone(namedValues=NamedValues(("normal", 1), ("cost", 3), ("reliability", 5), ("throughput", 9), ("latency", 17)))).setLabel("internetProfile-IpOptions-TosOptions-TypeOfService").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_TypeOfService.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_TypeOfService.setDescription('Tag the type of service field in the TOS octet of IP datagram header with this value when match occurs.') internetProfile_IpOptions_TosOptions_ApplyTo = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 48), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1025, 2049, 3073))).clone(namedValues=NamedValues(("incoming", 1025), ("outgoing", 2049), ("both", 3073)))).setLabel("internetProfile-IpOptions-TosOptions-ApplyTo").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_ApplyTo.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_ApplyTo.setDescription('Define how the type-of-service applies to data flow for this connection.') internetProfile_IpOptions_TosOptions_MarkingType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 459), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("precedenceTos", 1), ("dscp", 2)))).setLabel("internetProfile-IpOptions-TosOptions-MarkingType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_MarkingType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_MarkingType.setDescription('Select type of packet marking.') internetProfile_IpOptions_TosOptions_Dscp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 460), DisplayString()).setLabel("internetProfile-IpOptions-TosOptions-Dscp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_Dscp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_TosOptions_Dscp.setDescription('DSCP tag to be used in marking of the packets (if marking-type = dscp).') internetProfile_IpOptions_TosFilter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 49), DisplayString()).setLabel("internetProfile-IpOptions-TosFilter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_TosFilter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_TosFilter.setDescription('The name of type-of-service filter. All filters are referenced by name so a name must be assigned to active filters.') internetProfile_IpOptions_ClientWinsPrimaryAddr = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 293), IpAddress()).setLabel("internetProfile-IpOptions-ClientWinsPrimaryAddr").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_ClientWinsPrimaryAddr.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_ClientWinsPrimaryAddr.setDescription('User specific WINS Primary Address.') internetProfile_IpOptions_ClientWinsSecondaryAddr = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 294), IpAddress()).setLabel("internetProfile-IpOptions-ClientWinsSecondaryAddr").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_ClientWinsSecondaryAddr.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_ClientWinsSecondaryAddr.setDescription('User specific WINS Secondary Address.') internetProfile_IpOptions_ClientWinsAddrAssign = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 295), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-ClientWinsAddrAssign").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_ClientWinsAddrAssign.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_ClientWinsAddrAssign.setDescription('A flag to control assigning user specific WINS Addresses.') internetProfile_IpOptions_PrivateRouteTable = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 296), DisplayString()).setLabel("internetProfile-IpOptions-PrivateRouteTable").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_PrivateRouteTable.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_PrivateRouteTable.setDescription('Private route table ID for this connection') internetProfile_IpOptions_PrivateRouteProfileRequired = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 297), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpOptions-PrivateRouteProfileRequired").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_PrivateRouteProfileRequired.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_PrivateRouteProfileRequired.setDescription('Parameter to decide default action,if private route table not found. If set to yes, the call will be cleared if the private route profile cannot be found. If set to no, the call will be allowed to complete, even if the private route profile cannot be found.') internetProfile_IpOptions_NatProfileName = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 419), DisplayString()).setLabel("internetProfile-IpOptions-NatProfileName").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_NatProfileName.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_NatProfileName.setDescription('The profile to use for NAT translations on this connection.') internetProfile_IpOptions_AddressRealm = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 421), Integer32()).setLabel("internetProfile-IpOptions-AddressRealm").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpOptions_AddressRealm.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpOptions_AddressRealm.setDescription('Used to determine which interfaces and WANs are connected to the same address space--they will have the identical values in this field.') internetProfile_IpxOptions_IpxRoutingEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpxOptions-IpxRoutingEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxRoutingEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxRoutingEnabled.setDescription('Enable/disable IPX routing for this connection.') internetProfile_IpxOptions_PeerMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 51), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("routerPeer", 1), ("dialinPeer", 2)))).setLabel("internetProfile-IpxOptions-PeerMode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_PeerMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_PeerMode.setDescription('Enable/disable full routing between peer or use the pool to assign a network number.') internetProfile_IpxOptions_Rip = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 52), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("both", 1), ("send", 2), ("recv", 3), ("off", 4)))).setLabel("internetProfile-IpxOptions-Rip").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_Rip.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_Rip.setDescription('This field specifies RIP traffic when peer is a Router.') internetProfile_IpxOptions_Sap = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("both", 1), ("send", 2), ("recv", 3), ("off", 4)))).setLabel("internetProfile-IpxOptions-Sap").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_Sap.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_Sap.setDescription('This field specifies SAP traffic when peer is a Router.') internetProfile_IpxOptions_DialQuery = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 54), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpxOptions-DialQuery").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_DialQuery.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_DialQuery.setDescription('Indicate if we should dial to this connection if our SAP table contains no NetWare file servers, and a workstation makes a get-nearest-server query.') internetProfile_IpxOptions_NetNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 55), DisplayString()).setLabel("internetProfile-IpxOptions-NetNumber").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_NetNumber.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_NetNumber.setDescription("The network number of the other router. May be zero, if we don't know what it is.") internetProfile_IpxOptions_NetAlias = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 56), DisplayString()).setLabel("internetProfile-IpxOptions-NetAlias").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_NetAlias.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_NetAlias.setDescription('The network number of the point to point link.') internetProfile_IpxOptions_SapFilter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 57), DisplayString()).setLabel("internetProfile-IpxOptions-SapFilter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_SapFilter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_SapFilter.setDescription('The name of the IPX SAP filter, if any, to use with this connection.') internetProfile_IpxOptions_IpxSpoofing = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 58), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("clientSpoofing", 2), ("serverSpoofing", 3)))).setLabel("internetProfile-IpxOptions-IpxSpoofing").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSpoofing.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSpoofing.setDescription('Selects the IPX spoofing mode when bridging.') internetProfile_IpxOptions_SpoofingTimeout = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 59), Integer32()).setLabel("internetProfile-IpxOptions-SpoofingTimeout").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_SpoofingTimeout.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_SpoofingTimeout.setDescription('IPX NetWare connection timeout value.') internetProfile_IpxOptions_IpxSapHsProxy = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 60), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpxOptions-IpxSapHsProxy").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSapHsProxy.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSapHsProxy.setDescription('Use IPX SAP Home Server Proxy.') internetProfile_IpxOptions_IpxHeaderCompression = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 61), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpxOptions-IpxHeaderCompression").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxHeaderCompression.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxHeaderCompression.setDescription('Use IPX header compression if encapsulation supports it.') internetProfile_BridgingOptions_BridgingGroup = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 62), Integer32()).setLabel("internetProfile-BridgingOptions-BridgingGroup").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_BridgingOptions_BridgingGroup.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BridgingOptions_BridgingGroup.setDescription('Select the bridging group for this connection. Group 0 disables bridging. All packets not routed will be bridged to interfaces belonging to the same group.') internetProfile_BridgingOptions_DialOnBroadcast = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 63), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-BridgingOptions-DialOnBroadcast").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_BridgingOptions_DialOnBroadcast.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BridgingOptions_DialOnBroadcast.setDescription('Enable/disable outdial when broadcast frames are received.') internetProfile_BridgingOptions_IpxSpoofing = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 64), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("clientSpoofing", 2), ("serverSpoofing", 3)))).setLabel("internetProfile-BridgingOptions-IpxSpoofing").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_BridgingOptions_IpxSpoofing.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BridgingOptions_IpxSpoofing.setDescription('Selects the IPX spoofing mode when bridging.') internetProfile_BridgingOptions_SpoofingTimeout = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 65), Integer32()).setLabel("internetProfile-BridgingOptions-SpoofingTimeout").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_BridgingOptions_SpoofingTimeout.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BridgingOptions_SpoofingTimeout.setDescription('IPX NetWare connection timeout value.') internetProfile_BridgingOptions_Fill2 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 253), Integer32()).setLabel("internetProfile-BridgingOptions-Fill2").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_BridgingOptions_Fill2.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BridgingOptions_Fill2.setDescription('filler to get to 32 bit boundary') internetProfile_BridgingOptions_BridgeType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 66), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("transparentBridging", 1), ("ipxClientBridging", 2), ("noBridging", 3)))).setLabel("internetProfile-BridgingOptions-BridgeType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_BridgingOptions_BridgeType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BridgingOptions_BridgeType.setDescription('For the P25 user interface.') internetProfile_BridgingOptions_Egress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 285), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-BridgingOptions-Egress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_BridgingOptions_Egress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BridgingOptions_Egress.setDescription('Enable/disable Egress on this interface. This interface will become the exit path for all packets destined to the network.') internetProfile_SessionOptions_CallFilter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 67), DisplayString()).setLabel("internetProfile-SessionOptions-CallFilter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_CallFilter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_CallFilter.setDescription('The name of the filter used to determine if a packet should cause the idle timer to be reset or, when the answer profile is used for connection profile defaults, if a call should be placed.') internetProfile_SessionOptions_DataFilter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 68), DisplayString()).setLabel("internetProfile-SessionOptions-DataFilter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_DataFilter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_DataFilter.setDescription('The name of the filter used to determine if packets should be forwarded or dropped.') internetProfile_SessionOptions_FilterPersistence = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 69), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-SessionOptions-FilterPersistence").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_FilterPersistence.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_FilterPersistence.setDescription('Determines if filters should persist between calls.') internetProfile_SessionOptions_FilterRequired = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 298), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-SessionOptions-FilterRequired").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_FilterRequired.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_FilterRequired.setDescription('If No, the call will be allowed to come up even if the specified filter was not found either locally, in the cache or in RADIUS. If Yes, then the call will be cleared if the specified filter was not found either locally, in the cache or in RADIUS.') internetProfile_SessionOptions_IdleTimer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 70), Integer32()).setLabel("internetProfile-SessionOptions-IdleTimer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_IdleTimer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_IdleTimer.setDescription('The number of seconds of no activity before a call will be dropped. The value 0 disables the idle timer.') internetProfile_SessionOptions_TsIdleMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 71), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noIdle", 1), ("inputOnlyIdle", 2), ("inputOutputIdle", 3)))).setLabel("internetProfile-SessionOptions-TsIdleMode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_TsIdleMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_TsIdleMode.setDescription('The method used to determine when the terminal server idle session timer is reset.') internetProfile_SessionOptions_TsIdleTimer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 72), Integer32()).setLabel("internetProfile-SessionOptions-TsIdleTimer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_TsIdleTimer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_TsIdleTimer.setDescription('The number of seconds of no activity as defined by the idle mode before a session will be terminated.') internetProfile_SessionOptions_Backup = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 73), DisplayString()).setLabel("internetProfile-SessionOptions-Backup").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_Backup.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_Backup.setDescription('Name of the backup connection profile.') internetProfile_SessionOptions_Secondary = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 74), DisplayString()).setLabel("internetProfile-SessionOptions-Secondary").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_Secondary.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_Secondary.setDescription('A secondary internet profile used for dial back-up support.') internetProfile_SessionOptions_MaxCallDuration = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 76), Integer32()).setLabel("internetProfile-SessionOptions-MaxCallDuration").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_MaxCallDuration.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_MaxCallDuration.setDescription('The number of minutes of connect time before a call will be dropped. The value 0 disables the connection timer.') internetProfile_SessionOptions_VtpGateway = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 77), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-SessionOptions-VtpGateway").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_VtpGateway.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_VtpGateway.setDescription("This profile is an VTP gateway connection to an mobile client's home network.") internetProfile_SessionOptions_Blockcountlimit = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 78), Integer32()).setLabel("internetProfile-SessionOptions-Blockcountlimit").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_Blockcountlimit.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_Blockcountlimit.setDescription('Maximum number of failed attempts allowed for connection before blocking the call.') internetProfile_SessionOptions_Blockduration = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 79), Integer32()).setLabel("internetProfile-SessionOptions-Blockduration").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_Blockduration.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_Blockduration.setDescription('Number of seconds that connection attempts to non responding network will be blocked before allowing retries.') internetProfile_SessionOptions_MaxVtpTunnels = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 81), Integer32()).setLabel("internetProfile-SessionOptions-MaxVtpTunnels").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_MaxVtpTunnels.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_MaxVtpTunnels.setDescription('If this profile is a VTP gateway, then this parameter specifies the maximum number of VTP tunnels allowed to the VTP home network specified by the name of this profile.') internetProfile_SessionOptions_RedialDelayLimit = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 82), Integer32()).setLabel("internetProfile-SessionOptions-RedialDelayLimit").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_RedialDelayLimit.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_RedialDelayLimit.setDescription('Number of seconds delay before allowing a redial') internetProfile_SessionOptions_SesRateType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("disabled", 1), ("sdsl", 2), ("adslCap", 3), ("adslCell", 4), ("adslDmt", 5)))).setLabel("internetProfile-SessionOptions-SesRateType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_SesRateType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_SesRateType.setDescription('The per ses rate type.') internetProfile_SessionOptions_SesRateMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 84), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3))).clone(namedValues=NamedValues(("autobaud", 2), ("singlebaud", 3)))).setLabel("internetProfile-SessionOptions-SesRateMode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_SesRateMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_SesRateMode.setDescription('The per ses rate mode.') internetProfile_SessionOptions_SesAdslCapUpRate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 85), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(51, 52, 53, 54, 55, 56, 57))).clone(namedValues=NamedValues(("n-1088000", 51), ("n-952000", 52), ("n-816000", 53), ("n-680000", 54), ("n-544000", 55), ("n-408000", 56), ("n-272000", 57)))).setLabel("internetProfile-SessionOptions-SesAdslCapUpRate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_SesAdslCapUpRate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_SesAdslCapUpRate.setDescription('The per session adsl-cap up stream data rate') internetProfile_SessionOptions_SesAdslCapDownRate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 86), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=NamedValues(("n-7168000", 1), ("n-6272000", 2), ("n-5120000", 3), ("n-4480000", 4), ("n-3200000", 5), ("n-2688000", 6), ("n-2560000", 7), ("n-2240000", 8), ("n-1920000", 9), ("n-1600000", 10), ("n-1280000", 11), ("n-960000", 12), ("n-640000", 13)))).setLabel("internetProfile-SessionOptions-SesAdslCapDownRate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_SesAdslCapDownRate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_SesAdslCapDownRate.setDescription('The per session adsl-cap down stream data rate') internetProfile_SessionOptions_SesSdslRate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 87), 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))).clone(namedValues=NamedValues(("n-144000", 1), ("n-272000", 2), ("n-400000", 3), ("n-528000", 4), ("n-784000", 5), ("n-1168000", 6), ("n-1552000", 7), ("n-2320000", 8), ("n-160000", 9), ("n-192000", 10), ("n-208000", 11), ("n-384000", 12), ("n-416000", 13), ("n-768000", 14), ("n-1040000", 15), ("n-1152000", 16), ("n-1536000", 17), ("n-1568000", 18), ("n-1680000", 19), ("n-1920000", 20), ("n-2160000", 21)))).setLabel("internetProfile-SessionOptions-SesSdslRate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_SesSdslRate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_SesSdslRate.setDescription('The per session symetrical data rate. This parameter does not pertain to the old 16 port sdsl card.') internetProfile_SessionOptions_SesAdslDmtUpRate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 88), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161))).clone(namedValues=NamedValues(("upstrmMegMax", 151), ("n-1088000", 152), ("n-928000", 153), ("n-896000", 154), ("n-800000", 155), ("n-768000", 156), ("n-640000", 157), ("n-512000", 158), ("n-384000", 159), ("n-256000", 160), ("n-128000", 161)))).setLabel("internetProfile-SessionOptions-SesAdslDmtUpRate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_SesAdslDmtUpRate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_SesAdslDmtUpRate.setDescription('The per session adsl-dmt up stream data rate') internetProfile_SessionOptions_SesAdslDmtDownRate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 89), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122))).clone(namedValues=NamedValues(("dwnstrmMegMax", 101), ("n-9504000", 102), ("n-8960000", 103), ("n-8000000", 104), ("n-7168000", 105), ("n-6272000", 106), ("n-5120000", 107), ("n-4480000", 108), ("n-3200000", 109), ("n-2688000", 110), ("n-2560000", 111), ("n-2240000", 112), ("n-1920000", 113), ("n-1600000", 114), ("n-1280000", 115), ("n-960000", 116), ("n-768000", 117), ("n-640000", 118), ("n-512000", 119), ("n-384000", 120), ("n-256000", 121), ("n-128000", 122)))).setLabel("internetProfile-SessionOptions-SesAdslDmtDownRate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_SesAdslDmtDownRate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_SesAdslDmtDownRate.setDescription('The per session adsl-dmt down stream data rate') internetProfile_SessionOptions_RxDataRateLimit = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 90), Integer32()).setLabel("internetProfile-SessionOptions-RxDataRateLimit").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_RxDataRateLimit.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_RxDataRateLimit.setDescription('The maximum information rate to be received from the named station (kbps).') internetProfile_SessionOptions_TxDataRateLimit = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 91), Integer32()).setLabel("internetProfile-SessionOptions-TxDataRateLimit").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_TxDataRateLimit.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_TxDataRateLimit.setDescription('The maximum information rate to be transmitted to the named station (kbps).') internetProfile_SessionOptions_CirTimer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 414), Integer32()).setLabel("internetProfile-SessionOptions-CirTimer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_CirTimer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_CirTimer.setDescription('The CIR timer in (milli-sec).') internetProfile_SessionOptions_TrafficShaper = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 286), Integer32()).setLabel("internetProfile-SessionOptions-TrafficShaper").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_TrafficShaper.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_TrafficShaper.setDescription('The traffic shaper assigned to this profile.') internetProfile_SessionOptions_MaxtapLogServer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 299), DisplayString()).setLabel("internetProfile-SessionOptions-MaxtapLogServer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_MaxtapLogServer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_MaxtapLogServer.setDescription('The name or the IP Address of the host to which the MaxTap start/stop notifications has to be sent.') internetProfile_SessionOptions_MaxtapDataServer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 300), DisplayString()).setLabel("internetProfile-SessionOptions-MaxtapDataServer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_MaxtapDataServer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_MaxtapDataServer.setDescription('The name or the IP Address of the host to which the tapped data has to be sent.') internetProfile_SessionOptions_Priority = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 415), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("high", 2)))).setLabel("internetProfile-SessionOptions-Priority").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SessionOptions_Priority.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SessionOptions_Priority.setDescription('Priority of the link') internetProfile_TelcoOptions_AnswerOriginate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 92), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ansAndOrig", 1), ("answerOnly", 2), ("originateOnly", 3)))).setLabel("internetProfile-TelcoOptions-AnswerOriginate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_AnswerOriginate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_AnswerOriginate.setDescription('Specifies if this profile can be used for incoming calls, outgoing calls, or both.') internetProfile_TelcoOptions_Callback = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 93), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-TelcoOptions-Callback").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_Callback.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_Callback.setDescription('When true a call received from the named host requires callback security. The number dialed is the phoneNumber from this connection profile.') internetProfile_TelcoOptions_CallType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 94), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("off", 1), ("ft1", 2), ("ft1Mpp", 3), ("bri", 4), ("ft1Bo", 5), ("dChan", 6), ("aodi", 7), ("megamax", 8)))).setLabel("internetProfile-TelcoOptions-CallType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_CallType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_CallType.setDescription('Nailed channel usage for this connection.') internetProfile_TelcoOptions_NailedGroups = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 95), DisplayString()).setLabel("internetProfile-TelcoOptions-NailedGroups").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_NailedGroups.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_NailedGroups.setDescription('All the nailed groups belonging to a session. MPP supports multiple groups.') internetProfile_TelcoOptions_Ft1Caller = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 96), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-TelcoOptions-Ft1Caller").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_Ft1Caller.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_Ft1Caller.setDescription('Specifies if this side should initiate calls when a mix of nailed and switched calls are being used.') internetProfile_TelcoOptions_Force56kbps = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 97), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-TelcoOptions-Force56kbps").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_Force56kbps.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_Force56kbps.setDescription('If yes then inbound 64 kbps calls are connected at 56 kbps.') internetProfile_TelcoOptions_DataService = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 98), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 255, 263))).clone(namedValues=NamedValues(("voice", 1), ("n-56kRestricted", 2), ("n-64kClear", 3), ("n-64kRestricted", 4), ("n-56kClear", 5), ("n-384kRestricted", 6), ("n-384kClear", 7), ("n-1536kClear", 8), ("n-1536kRestricted", 9), ("n-128kClear", 10), ("n-192kClear", 11), ("n-256kClear", 12), ("n-320kClear", 13), ("dws384Clear", 14), ("n-448Clear", 15), ("n-512Clear", 16), ("n-576Clear", 17), ("n-640Clear", 18), ("n-704Clear", 19), ("n-768Clear", 20), ("n-832Clear", 21), ("n-896Clear", 22), ("n-960Clear", 23), ("n-1024Clear", 24), ("n-1088Clear", 25), ("n-1152Clear", 26), ("n-1216Clear", 27), ("n-1280Clear", 28), ("n-1344Clear", 29), ("n-1408Clear", 30), ("n-1472Clear", 31), ("n-1600Clear", 32), ("n-1664Clear", 33), ("n-1728Clear", 34), ("n-1792Clear", 35), ("n-1856Clear", 36), ("n-1920Clear", 37), ("x30RestrictedBearer", 39), ("v110ClearBearer", 40), ("n-64kX30Restricted", 41), ("n-56kV110Clear", 42), ("modem", 43), ("atmodem", 44), ("n-2456kV110", 46), ("n-4856kV110", 47), ("n-9656kV110", 48), ("n-19256kV110", 49), ("n-38456kV110", 50), ("n-2456krV110", 51), ("n-4856krV110", 52), ("n-9656krV110", 53), ("n-19256krV110", 54), ("n-38456krV110", 55), ("n-2464kV110", 56), ("n-4864kV110", 57), ("n-9664kV110", 58), ("n-19264kV110", 59), ("n-38464kV110", 60), ("n-2464krV110", 61), ("n-4864krV110", 62), ("n-9664krV110", 63), ("n-19264krV110", 64), ("n-38464krV110", 65), ("v32", 66), ("phs64k", 67), ("voiceOverIp", 68), ("atmSvc", 70), ("frameRelaySvc", 71), ("vpnTunnel", 72), ("wormarq", 73), ("n-14456kV110", 74), ("n-28856kV110", 75), ("n-14456krV110", 76), ("n-28856krV110", 77), ("n-14464kV110", 78), ("n-28864kV110", 79), ("n-14464krV110", 80), ("n-28864krV110", 81), ("modem31khzAudio", 82), ("x25Svc", 83), ("n-144kClear", 255), ("iptoip", 263)))).setLabel("internetProfile-TelcoOptions-DataService").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_DataService.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_DataService.setDescription('The type of bearer channel capability to set up for each switched call in the session.') internetProfile_TelcoOptions_CallByCall = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 99), Integer32()).setLabel("internetProfile-TelcoOptions-CallByCall").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_CallByCall.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_CallByCall.setDescription('The call-by-call signaling value for PRI lines.') internetProfile_TelcoOptions_BillingNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 100), DisplayString()).setLabel("internetProfile-TelcoOptions-BillingNumber").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_BillingNumber.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_BillingNumber.setDescription("A number used for billing purposes. This number, if present, is used as either a 'billing suffix' or the 'calling party number'.") internetProfile_TelcoOptions_TransitNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 101), DisplayString()).setLabel("internetProfile-TelcoOptions-TransitNumber").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_TransitNumber.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_TransitNumber.setDescription("The string for use in the 'transit network IE' for PRI calling when going through a LEC.") internetProfile_TelcoOptions_ExpectCallback = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 102), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-TelcoOptions-ExpectCallback").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_ExpectCallback.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_ExpectCallback.setDescription('When true we expect calls to the named host will result in a callback from that host. This would occur if the remote host were authenticating us based on Caller ID.') internetProfile_TelcoOptions_DialoutAllowed = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 103), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-TelcoOptions-DialoutAllowed").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_DialoutAllowed.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_DialoutAllowed.setDescription('When true, this connection is allowed to use the LAN modems to place outgoing calls.') internetProfile_TelcoOptions_DelayCallback = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 104), Integer32()).setLabel("internetProfile-TelcoOptions-DelayCallback").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_DelayCallback.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_DelayCallback.setDescription('Number of seconds to delay before dialing back. Values of 0-3 seconds are treated as 3 seconds.') internetProfile_TelcoOptions_NasPortType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 254), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3))).clone(namedValues=NamedValues(("async", 4), ("sync", 5), ("isdnSync", 6), ("v120IsdnAsync", 7), ("v110IsdnAsync", 8), ("virtual", 9), ("v32IsdnAsync", 10), ("vdspAsyncIsdn", 11), ("arqPdcIsdn", 12), ("any", 1), ("digital", 2), ("analog", 3)))).setLabel("internetProfile-TelcoOptions-NasPortType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TelcoOptions_NasPortType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TelcoOptions_NasPortType.setDescription('Indicates the type of physical port being used.') internetProfile_PppOptions_SendAuthMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 105), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("noPppAuth", 1), ("papPppAuth", 2), ("chapPppAuth", 3), ("anyPppAuth", 4), ("desPapPppAuth", 5), ("tokenPapPppAuth", 6), ("tokenChapPppAuth", 7), ("cacheTokenPppAuth", 8), ("msChapPppAuth", 9), ("papPreferred", 10)))).setLabel("internetProfile-PppOptions-SendAuthMode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_SendAuthMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_SendAuthMode.setDescription('The type of PPP authentication to use for this call.') internetProfile_PppOptions_PppCircuit = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 422), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("none", 1), ("transparent", 2)))).setLabel("internetProfile-PppOptions-PppCircuit").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_PppCircuit.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_PppCircuit.setDescription('PPP Circuit. Set to type to enable the PPP Circuit Mode.') internetProfile_PppOptions_PppCircuitName = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 423), DisplayString()).setLabel("internetProfile-PppOptions-PppCircuitName").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_PppCircuitName.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_PppCircuitName.setDescription('The peer datalink identifier for a PPP circuit.') internetProfile_PppOptions_BiDirectionalAuth = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 354), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("allowed", 2), ("required", 3)))).setLabel("internetProfile-PppOptions-BiDirectionalAuth").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_BiDirectionalAuth.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_BiDirectionalAuth.setDescription('This parameter enables the authentication to be done in both directions. It can be used only with CHAP or MS-CHAP authentication.') internetProfile_PppOptions_SendPassword = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 106), DisplayString()).setLabel("internetProfile-PppOptions-SendPassword").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_SendPassword.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_SendPassword.setDescription('This is the password sent to the far end; used for MPP and PPP PAP and CHAP security.') internetProfile_PppOptions_SubstituteSendName = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 107), DisplayString()).setLabel("internetProfile-PppOptions-SubstituteSendName").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_SubstituteSendName.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_SubstituteSendName.setDescription('Name send to the far end, if different from the global system name.') internetProfile_PppOptions_RecvPassword = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 108), DisplayString()).setLabel("internetProfile-PppOptions-RecvPassword").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_RecvPassword.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_RecvPassword.setDescription('This is the password received from the far end; used for MPP and PPP PAP and CHAP security.') internetProfile_PppOptions_SubstituteRecvName = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 355), DisplayString()).setLabel("internetProfile-PppOptions-SubstituteRecvName").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_SubstituteRecvName.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_SubstituteRecvName.setDescription('Name expected from the far end used during a bi-directional authentication. If it is null the profile name will be used in place. This parameter is used only for outgoing calls.') internetProfile_PppOptions_LinkCompression = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 109), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("stac", 2), ("stac9", 3), ("msStac", 4), ("mppc", 5)))).setLabel("internetProfile-PppOptions-LinkCompression").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_LinkCompression.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_LinkCompression.setDescription('The type of link compression to use for PPP, MP, and MPP calls.') internetProfile_PppOptions_Mru = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 110), Integer32()).setLabel("internetProfile-PppOptions-Mru").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_Mru.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_Mru.setDescription('The Maximum Receive Unit, i.e. the largest frame we will accept.') internetProfile_PppOptions_Lqm = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 111), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-PppOptions-Lqm").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_Lqm.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_Lqm.setDescription('Link Quality Monitoring. Set to Yes to enable the PPP LQM protocol.') internetProfile_PppOptions_LqmMinimumPeriod = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 112), Integer32()).setLabel("internetProfile-PppOptions-LqmMinimumPeriod").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_LqmMinimumPeriod.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_LqmMinimumPeriod.setDescription('The minimum period, in 1/100 of a second, that we will accept/send link quality monitoring packets.') internetProfile_PppOptions_LqmMaximumPeriod = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 113), Integer32()).setLabel("internetProfile-PppOptions-LqmMaximumPeriod").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_LqmMaximumPeriod.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_LqmMaximumPeriod.setDescription('The maximum period, in 1/100 of a second, that we will accept/send link quality monitoring packets.') internetProfile_PppOptions_CbcpEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 114), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-PppOptions-CbcpEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_CbcpEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_CbcpEnabled.setDescription('Enable Microsoft Callback Control Protocol Negotiation.') internetProfile_PppOptions_ModeCallbackControl = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 115), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4, 8))).clone(namedValues=NamedValues(("cbcpNoCallback", 2), ("cbcpUserNumber", 3), ("cbcpProfileNum", 4), ("cbcpAll", 8)))).setLabel("internetProfile-PppOptions-ModeCallbackControl").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_ModeCallbackControl.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_ModeCallbackControl.setDescription('CBCP operation allowed on to use for this call.') internetProfile_PppOptions_DelayCallbackControl = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 116), Integer32()).setLabel("internetProfile-PppOptions-DelayCallbackControl").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_DelayCallbackControl.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_DelayCallbackControl.setDescription('Delay to request before callback to us is initiated') internetProfile_PppOptions_TrunkGroupCallbackControl = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 117), Integer32()).setLabel("internetProfile-PppOptions-TrunkGroupCallbackControl").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_TrunkGroupCallbackControl.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_TrunkGroupCallbackControl.setDescription('Trunk group to use for the callback.') internetProfile_PppOptions_SplitCodeDotUserEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 118), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-PppOptions-SplitCodeDotUserEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_SplitCodeDotUserEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_SplitCodeDotUserEnabled.setDescription('TRUE if local splitting of passwords is desired in CACHE-TOKEN. This feature permits the use of usernames longer than five chars, when using a typical 4 digit pin and 6 digit ACE token code.') internetProfile_PppOptions_PppInterfaceType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 119), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("hdlcLike", 1), ("frameRelay", 2), ("aal5", 3), ("x25", 4)))).setLabel("internetProfile-PppOptions-PppInterfaceType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_PppInterfaceType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_PppInterfaceType.setDescription('PPP network interface for this profile.') internetProfile_PppOptions_Mtu = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 301), Integer32()).setLabel("internetProfile-PppOptions-Mtu").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppOptions_Mtu.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppOptions_Mtu.setDescription('The Maximum Transmit Unit, i.e. the largest frame we will transmit.') internetProfile_MpOptions_BaseChannelCount = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 120), Integer32()).setLabel("internetProfile-MpOptions-BaseChannelCount").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MpOptions_BaseChannelCount.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MpOptions_BaseChannelCount.setDescription('When the session is initially set up, and if it is a fixed session, the number of channels to be used for the call.') internetProfile_MpOptions_MinimumChannels = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 121), Integer32()).setLabel("internetProfile-MpOptions-MinimumChannels").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MpOptions_MinimumChannels.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MpOptions_MinimumChannels.setDescription('The default value for the minimum number of channels in a multi-channel call.') internetProfile_MpOptions_MaximumChannels = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 122), Integer32()).setLabel("internetProfile-MpOptions-MaximumChannels").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MpOptions_MaximumChannels.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MpOptions_MaximumChannels.setDescription('The default value for the maximum number of channels in a multi-channel call.') internetProfile_MpOptions_BacpEnable = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 123), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-MpOptions-BacpEnable").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MpOptions_BacpEnable.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MpOptions_BacpEnable.setDescription('Enable Bandwidth Allocation Control Protocol (BACP).') internetProfile_MpOptions_BodEnable = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 255), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-MpOptions-BodEnable").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MpOptions_BodEnable.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MpOptions_BodEnable.setDescription('Enable Bandwidth On Demand.') internetProfile_MpOptions_CallbackrequestEnable = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 284), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-MpOptions-CallbackrequestEnable").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MpOptions_CallbackrequestEnable.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MpOptions_CallbackrequestEnable.setDescription('Allow BAP CallBackRequest.') internetProfile_MppOptions_AuxSendPassword = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 124), DisplayString()).setLabel("internetProfile-MppOptions-AuxSendPassword").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_AuxSendPassword.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_AuxSendPassword.setDescription('This is the password sent to the far end; used for MPP PAP-TOKEN-CHAP security.') internetProfile_MppOptions_DynamicAlgorithm = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 125), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("constant", 1), ("linear", 2), ("quadratic", 3)))).setLabel("internetProfile-MppOptions-DynamicAlgorithm").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_DynamicAlgorithm.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_DynamicAlgorithm.setDescription('The algorithm to use to calculate the average link utilization. Bandwidth changes are performed on the average utilization, not current utilization.') internetProfile_MppOptions_BandwidthMonitorDirection = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 126), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("transmit", 1), ("transmitRecv", 2), ("none", 3)))).setLabel("internetProfile-MppOptions-BandwidthMonitorDirection").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_BandwidthMonitorDirection.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_BandwidthMonitorDirection.setDescription('The direction to monitor link utilization. A unit can monitor transmit, transmit and receive, or turn off monitoring entirely.') internetProfile_MppOptions_IncrementChannelCount = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 127), Integer32()).setLabel("internetProfile-MppOptions-IncrementChannelCount").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_IncrementChannelCount.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_IncrementChannelCount.setDescription('Number of channels to increment as a block.') internetProfile_MppOptions_DecrementChannelCount = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 128), Integer32()).setLabel("internetProfile-MppOptions-DecrementChannelCount").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_DecrementChannelCount.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_DecrementChannelCount.setDescription('Number of channels to decrement as a block.') internetProfile_MppOptions_SecondsHistory = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 129), Integer32()).setLabel("internetProfile-MppOptions-SecondsHistory").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_SecondsHistory.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_SecondsHistory.setDescription('The number of seconds of history that link utilization is averaged over to make bandwidth changes.') internetProfile_MppOptions_AddPersistence = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 130), Integer32()).setLabel("internetProfile-MppOptions-AddPersistence").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_AddPersistence.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_AddPersistence.setDescription('The number of seconds of that the average line utilization must exceed the target utilization before bandwidth will be added.') internetProfile_MppOptions_SubPersistence = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 131), Integer32()).setLabel("internetProfile-MppOptions-SubPersistence").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_SubPersistence.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_SubPersistence.setDescription('The number of seconds of that the average line utilization must fall below the target utilization before bandwidth will be reduced. Bandwidth will not be reduced if the reduced bandwidth would exceed the target utilization.') internetProfile_MppOptions_TargetUtilization = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 132), Integer32()).setLabel("internetProfile-MppOptions-TargetUtilization").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_TargetUtilization.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_TargetUtilization.setDescription('The default value for the target utilization. Bandwidth changes occur when the average utilization exceeds or falls below this value.') internetProfile_MppOptions_X25chanTargetUtilization = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 380), Integer32()).setLabel("internetProfile-MppOptions-X25chanTargetUtilization").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MppOptions_X25chanTargetUtilization.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MppOptions_X25chanTargetUtilization.setDescription('The default value for the X25 channel target utilization. Bandwidth changes occur when the average utilization exceeds or falls below this value.') internetProfile_FrOptions_FrameRelayProfile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 133), DisplayString()).setLabel("internetProfile-FrOptions-FrameRelayProfile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_FrameRelayProfile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_FrameRelayProfile.setDescription('Frame Relay profile name, specifies link over which this circuit is established.') internetProfile_FrOptions_CircuitType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 302), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("pvc", 1), ("svc", 2)))).setLabel("internetProfile-FrOptions-CircuitType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_CircuitType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_CircuitType.setDescription('The type of circuit, permanent (PVC) or switched (SVC).') internetProfile_FrOptions_Dlci = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 134), Integer32()).setLabel("internetProfile-FrOptions-Dlci").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_Dlci.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_Dlci.setDescription('The assigned DLCI value for this connection, for PVC.') internetProfile_FrOptions_CircuitName = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 135), DisplayString()).setLabel("internetProfile-FrOptions-CircuitName").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_CircuitName.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_CircuitName.setDescription('The peer frame relay datalink for a FR circuit.') internetProfile_FrOptions_FrLinkType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 303), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("transparentLink", 1), ("hostLink", 2), ("trunkLink", 3)))).setLabel("internetProfile-FrOptions-FrLinkType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_FrLinkType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_FrLinkType.setDescription('The frame relay link type.') internetProfile_FrOptions_FrDirectEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 136), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-FrOptions-FrDirectEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_FrDirectEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_FrDirectEnabled.setDescription('Enable the frame relay direct option for this connection.') internetProfile_FrOptions_FrDirectProfile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 137), DisplayString()).setLabel("internetProfile-FrOptions-FrDirectProfile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_FrDirectProfile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_FrDirectProfile.setDescription('Name of the frame relay profile that will be used for frame-relay-direct routing.') internetProfile_FrOptions_FrDirectDlci = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 138), Integer32()).setLabel("internetProfile-FrOptions-FrDirectDlci").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_FrDirectDlci.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_FrDirectDlci.setDescription('The DLCI of the frame relay direct connection.') internetProfile_FrOptions_MfrBundleName = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 287), DisplayString()).setLabel("internetProfile-FrOptions-MfrBundleName").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FrOptions_MfrBundleName.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FrOptions_MfrBundleName.setDescription('Name of the multi-link frame-relay profile.') internetProfile_TcpClearOptions_Host = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 139), DisplayString()).setLabel("internetProfile-TcpClearOptions-Host").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Host.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Host.setDescription('The first TCP CLEAR login host.') internetProfile_TcpClearOptions_Port = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 140), Integer32()).setLabel("internetProfile-TcpClearOptions-Port").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Port.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Port.setDescription('The TCP port of the first login-host.') internetProfile_TcpClearOptions_Host2 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 141), DisplayString()).setLabel("internetProfile-TcpClearOptions-Host2").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Host2.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Host2.setDescription('The second TCP CLEAR login host.') internetProfile_TcpClearOptions_Port2 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 142), Integer32()).setLabel("internetProfile-TcpClearOptions-Port2").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Port2.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Port2.setDescription('The TCP port of the second login-host.') internetProfile_TcpClearOptions_Host3 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 143), DisplayString()).setLabel("internetProfile-TcpClearOptions-Host3").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Host3.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Host3.setDescription('The third TCP CLEAR login host.') internetProfile_TcpClearOptions_Port3 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 144), Integer32()).setLabel("internetProfile-TcpClearOptions-Port3").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Port3.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Port3.setDescription('The TCP port of the third login-host.') internetProfile_TcpClearOptions_Host4 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 145), DisplayString()).setLabel("internetProfile-TcpClearOptions-Host4").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Host4.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Host4.setDescription('The fourth TCP CLEAR login host.') internetProfile_TcpClearOptions_Port4 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 146), Integer32()).setLabel("internetProfile-TcpClearOptions-Port4").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Port4.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_Port4.setDescription('The TCP port of the fourth login-host.') internetProfile_TcpClearOptions_DetectEndOfPacket = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 147), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-TcpClearOptions-DetectEndOfPacket").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_DetectEndOfPacket.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_DetectEndOfPacket.setDescription('Set to yes to attempt packet detection') internetProfile_TcpClearOptions_EndOfPacketPattern = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 148), DisplayString()).setLabel("internetProfile-TcpClearOptions-EndOfPacketPattern").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_EndOfPacketPattern.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_EndOfPacketPattern.setDescription('End of packet pattern to match') internetProfile_TcpClearOptions_FlushLength = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 149), Integer32()).setLabel("internetProfile-TcpClearOptions-FlushLength").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_FlushLength.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_FlushLength.setDescription('Set the maximum packet length before flush') internetProfile_TcpClearOptions_FlushTime = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 150), Integer32()).setLabel("internetProfile-TcpClearOptions-FlushTime").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TcpClearOptions_FlushTime.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TcpClearOptions_FlushTime.setDescription('Set the maximum packet hold time before flush') internetProfile_AraOptions_RecvPassword = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 151), DisplayString()).setLabel("internetProfile-AraOptions-RecvPassword").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AraOptions_RecvPassword.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AraOptions_RecvPassword.setDescription('The password received from the far end.') internetProfile_AraOptions_MaximumConnectTime = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 152), Integer32()).setLabel("internetProfile-AraOptions-MaximumConnectTime").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AraOptions_MaximumConnectTime.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AraOptions_MaximumConnectTime.setDescription('Maximum time in minutes that an ARA session can stay connected.') internetProfile_X25Options_X25Profile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 157), DisplayString()).setLabel("internetProfile-X25Options-X25Profile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_X25Profile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_X25Profile.setDescription('Name of the x25 profile that this profile is associated with.') internetProfile_X25Options_Lcn = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 158), Integer32()).setLabel("internetProfile-X25Options-Lcn").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_Lcn.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_Lcn.setDescription('The LCN (if any) for this profile (for PVCs).') internetProfile_X25Options_X3Profile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 159), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 10, 11))).clone(namedValues=NamedValues(("crtProfile", 1), ("infonetProfile", 2), ("defaultProfile", 3), ("scenProfile", 4), ("ccSspProfile", 5), ("ccTspProfile", 6), ("hardcopyProfile", 7), ("hdxProfile", 8), ("sharkProfile", 9), ("posProfile", 12), ("nullProfile", 10), ("customProfile", 11)))).setLabel("internetProfile-X25Options-X3Profile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_X3Profile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_X3Profile.setDescription('X.3 profile parameter index') internetProfile_X25Options_MaxCalls = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 160), Integer32()).setLabel("internetProfile-X25Options-MaxCalls").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_MaxCalls.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_MaxCalls.setDescription('Max number of unsuccessful calls') internetProfile_X25Options_VcTimerEnable = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 161), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-X25Options-VcTimerEnable").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_VcTimerEnable.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_VcTimerEnable.setDescription('PAD VCE enable flag') internetProfile_X25Options_X25EncapsType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 162), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("rfc877", 1), ("snap", 2), ("null", 3), ("ppp", 4), ("aodi", 5)))).setLabel("internetProfile-X25Options-X25EncapsType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_X25EncapsType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_X25EncapsType.setDescription('RFC1356 encaps Type: RFC877/SNAP/NULL') internetProfile_X25Options_RemoteX25Address = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 461), DisplayString()).setLabel("internetProfile-X25Options-RemoteX25Address").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_RemoteX25Address.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_RemoteX25Address.setDescription('X.25 address of remote station.') internetProfile_X25Options_ReverseCharge = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 164), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-X25Options-ReverseCharge").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_ReverseCharge.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_ReverseCharge.setDescription('Reverse charge request') internetProfile_X25Options_CallMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 165), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("both", 1), ("outgoing", 2), ("incoming", 3)))).setLabel("internetProfile-X25Options-CallMode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_CallMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_CallMode.setDescription('Call mode for this interface: Both/Outgoing/Incoming') internetProfile_X25Options_AnswerX25Address = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 462), DisplayString()).setLabel("internetProfile-X25Options-AnswerX25Address").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_AnswerX25Address.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_AnswerX25Address.setDescription('Answer number: mandatory if call mode is incoming or both.') internetProfile_X25Options_InactivityTimer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 167), Integer32()).setLabel("internetProfile-X25Options-InactivityTimer").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X25Options_InactivityTimer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_InactivityTimer.setDescription('X.25 Inactivity Timer.') internetProfile_X25Options_Windowsize = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 463), Integer32()).setLabel("internetProfile-X25Options-Windowsize").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_Windowsize.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_Windowsize.setDescription('Window size requested on outgoing X.25 calls.') internetProfile_X25Options_Packetsize = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 464), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(7, 8, 9, 10, 11, 12, 13))).clone(namedValues=NamedValues(("n-6", 7), ("n-7", 8), ("n-8", 9), ("n-9", 10), ("n-10", 11), ("n-11", 12), ("n-12", 13)))).setLabel("internetProfile-X25Options-Packetsize").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_Packetsize.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_Packetsize.setDescription('Packet size requested on outgoing X.25 calls.') internetProfile_X25Options_X25Rpoa = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 169), DisplayString()).setLabel("internetProfile-X25Options-X25Rpoa").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_X25Rpoa.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_X25Rpoa.setDescription('X.25 RPOA facility.') internetProfile_X25Options_X25CugIndex = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 170), DisplayString()).setLabel("internetProfile-X25Options-X25CugIndex").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_X25CugIndex.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_X25CugIndex.setDescription('X.25 CUG index. Supplied as a right-justified field e.g. 1 should be 0001') internetProfile_X25Options_X25Nui = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 171), DisplayString()).setLabel("internetProfile-X25Options-X25Nui").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_X25Nui.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_X25Nui.setDescription('X.25 NUI facility.') internetProfile_X25Options_PadBanner = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 172), DisplayString()).setLabel("internetProfile-X25Options-PadBanner").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X25Options_PadBanner.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadBanner.setDescription('PAD banner message.') internetProfile_X25Options_PadPrompt = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 173), DisplayString()).setLabel("internetProfile-X25Options-PadPrompt").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X25Options_PadPrompt.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadPrompt.setDescription('PAD prompt.') internetProfile_X25Options_PadNuiPrompt = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 174), DisplayString()).setLabel("internetProfile-X25Options-PadNuiPrompt").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X25Options_PadNuiPrompt.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadNuiPrompt.setDescription('NUI prompt.') internetProfile_X25Options_PadNuiPwPrompt = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 175), DisplayString()).setLabel("internetProfile-X25Options-PadNuiPwPrompt").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X25Options_PadNuiPwPrompt.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadNuiPwPrompt.setDescription('NUI password prompt.') internetProfile_X25Options_PadAlias1 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 176), DisplayString()).setLabel("internetProfile-X25Options-PadAlias1").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X25Options_PadAlias1.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadAlias1.setDescription('PAD Alias number 1.') internetProfile_X25Options_PadAlias2 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 177), DisplayString()).setLabel("internetProfile-X25Options-PadAlias2").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X25Options_PadAlias2.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadAlias2.setDescription('PAD Alias number 2.') internetProfile_X25Options_PadAlias3 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 178), DisplayString()).setLabel("internetProfile-X25Options-PadAlias3").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X25Options_PadAlias3.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadAlias3.setDescription('PAD Alias number 3.') internetProfile_X25Options_PadDiagDisp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 179), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-X25Options-PadDiagDisp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_PadDiagDisp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadDiagDisp.setDescription('PAD D/B channel Diagnostic display.') internetProfile_X25Options_PadDefaultListen = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 180), DisplayString()).setLabel("internetProfile-X25Options-PadDefaultListen").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_PadDefaultListen.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadDefaultListen.setDescription('PAD diag listen address.') internetProfile_X25Options_PadDefaultPw = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 181), DisplayString()).setLabel("internetProfile-X25Options-PadDefaultPw").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_PadDefaultPw.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PadDefaultPw.setDescription('PAD diag password.') internetProfile_X25Options_X121SourceAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 471), DisplayString()).setLabel("internetProfile-X25Options-X121SourceAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_X121SourceAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_X121SourceAddress.setDescription('X.121 address to use to identify this call') internetProfile_X25Options_PosAuth = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 472), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("false", 1), ("true", 2)))).setLabel("internetProfile-X25Options-PosAuth").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X25Options_PosAuth.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X25Options_PosAuth.setDescription('Use POS Authentication') internetProfile_EuOptions_DceAddr = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 182), Integer32()).setLabel("internetProfile-EuOptions-DceAddr").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_EuOptions_DceAddr.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_EuOptions_DceAddr.setDescription('The address of the DCE side of the link when the EUNET UI protocol is used.') internetProfile_EuOptions_DteAddr = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 183), Integer32()).setLabel("internetProfile-EuOptions-DteAddr").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_EuOptions_DteAddr.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_EuOptions_DteAddr.setDescription('The address of the DTE side of the link when the EUNET UI protocol is used.') internetProfile_EuOptions_Mru = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 184), Integer32()).setLabel("internetProfile-EuOptions-Mru").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_EuOptions_Mru.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_EuOptions_Mru.setDescription('The MRU used for EUNET protocol connections.') internetProfile_X75Options_KFramesOutstanding = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 185), Integer32()).setLabel("internetProfile-X75Options-KFramesOutstanding").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X75Options_KFramesOutstanding.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X75Options_KFramesOutstanding.setDescription('Number of frames outstanding before we require an ack. Defaults to 7.') internetProfile_X75Options_N2Retransmissions = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 186), Integer32()).setLabel("internetProfile-X75Options-N2Retransmissions").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X75Options_N2Retransmissions.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X75Options_N2Retransmissions.setDescription('Number of retransmissions allowed. Defaults to 10.') internetProfile_X75Options_T1RetranTimer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 187), Integer32()).setLabel("internetProfile-X75Options-T1RetranTimer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X75Options_T1RetranTimer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X75Options_T1RetranTimer.setDescription('Number of milliseconds between retransmissions. Defaults to 1000.') internetProfile_X75Options_FrameLength = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 188), Integer32()).setLabel("internetProfile-X75Options-FrameLength").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X75Options_FrameLength.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X75Options_FrameLength.setDescription('Frame length to use for incoming X.75 connections. Defaults to 1024.') internetProfile_AppletalkOptions_AtalkRoutingEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 189), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AppletalkOptions-AtalkRoutingEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkRoutingEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkRoutingEnabled.setDescription('Enable/disable AppleTalk routine for this connection.') internetProfile_AppletalkOptions_AtalkStaticZoneName = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 190), DisplayString()).setLabel("internetProfile-AppletalkOptions-AtalkStaticZoneName").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkStaticZoneName.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkStaticZoneName.setDescription('The static Zone Name to show for this route.') internetProfile_AppletalkOptions_AtalkStaticNetStart = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 191), Integer32()).setLabel("internetProfile-AppletalkOptions-AtalkStaticNetStart").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkStaticNetStart.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkStaticNetStart.setDescription('The Net Number start value for this route.') internetProfile_AppletalkOptions_AtalkStaticNetEnd = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 192), Integer32()).setLabel("internetProfile-AppletalkOptions-AtalkStaticNetEnd").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkStaticNetEnd.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkStaticNetEnd.setDescription('The Net Number end value for this route.') internetProfile_AppletalkOptions_AtalkPeerMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 193), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("routerPeer", 1), ("dialinPeer", 2)))).setLabel("internetProfile-AppletalkOptions-AtalkPeerMode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkPeerMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AppletalkOptions_AtalkPeerMode.setDescription('Enable/disable full routing between peer or using proxy AARP to assign a network address.') internetProfile_UsrRadOptions_AcctType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 194), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("global", 1), ("local", 2), ("both", 3)))).setLabel("internetProfile-UsrRadOptions-AcctType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctType.setDescription('Specify where accounting information for this connection will be sent, either the global server list, a per-user override, or both.') internetProfile_UsrRadOptions_AcctHost = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 195), IpAddress()).setLabel("internetProfile-UsrRadOptions-AcctHost").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctHost.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctHost.setDescription('The IP address of the RADIUS accounting host.') internetProfile_UsrRadOptions_AcctPort = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 196), Integer32()).setLabel("internetProfile-UsrRadOptions-AcctPort").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctPort.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctPort.setDescription('The UDP port of the RADIUS Accounting server.') internetProfile_UsrRadOptions_AcctKey = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 197), DisplayString()).setLabel("internetProfile-UsrRadOptions-AcctKey").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctKey.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctKey.setDescription('The RADIUS accounting key.') internetProfile_UsrRadOptions_AcctTimeout = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 198), Integer32()).setLabel("internetProfile-UsrRadOptions-AcctTimeout").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctTimeout.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctTimeout.setDescription('Number of seconds to wait for a response to accounting request.') internetProfile_UsrRadOptions_AcctIdBase = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 199), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("acctBase10", 1), ("acctBase16", 2)))).setLabel("internetProfile-UsrRadOptions-AcctIdBase").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctIdBase.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_UsrRadOptions_AcctIdBase.setDescription('The Base to use in reporting the Account ID') internetProfile_CalledNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 200), DisplayString()).setLabel("internetProfile-CalledNumber").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_CalledNumber.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_CalledNumber.setDescription('The called line number for authentication.') internetProfile_DhcpOptions_ReplyEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 201), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-DhcpOptions-ReplyEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_DhcpOptions_ReplyEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_DhcpOptions_ReplyEnabled.setDescription('Set to yes to enable replies to DHCP clients.') internetProfile_DhcpOptions_PoolNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 202), Integer32()).setLabel("internetProfile-DhcpOptions-PoolNumber").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_DhcpOptions_PoolNumber.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_DhcpOptions_PoolNumber.setDescription('Allocate addresses from this pool.') internetProfile_DhcpOptions_MaximumLeases = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 203), Integer32()).setLabel("internetProfile-DhcpOptions-MaximumLeases").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_DhcpOptions_MaximumLeases.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_DhcpOptions_MaximumLeases.setDescription('Maximum number of leases allowed on this connection.') internetProfile_SharedProf = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 283), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-SharedProf").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SharedProf.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SharedProf.setDescription('When TRUE multiple users may share a connection profile, as long as IP addresses are not duplicated.') internetProfile_MaxSharedUsers = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 465), Integer32()).setLabel("internetProfile-MaxSharedUsers").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_MaxSharedUsers.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_MaxSharedUsers.setDescription('Limits the maximum number of end users allowed to connect using a shared connection profile. The default value is 0 which means there is no limit.') internetProfile_T3posOptions_X25Profile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 205), DisplayString()).setLabel("internetProfile-T3posOptions-X25Profile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_T3posOptions_X25Profile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_X25Profile.setDescription('Name of the x25 profile that this profile is associated with.') internetProfile_T3posOptions_MaxCalls = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 206), Integer32()).setLabel("internetProfile-T3posOptions-MaxCalls").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_T3posOptions_MaxCalls.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_MaxCalls.setDescription('Max number of unsuccessful calls') internetProfile_T3posOptions_AutoCallX121Address = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 207), DisplayString()).setLabel("internetProfile-T3posOptions-AutoCallX121Address").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_AutoCallX121Address.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_AutoCallX121Address.setDescription('X.121 address to auto-call upon session startup.') internetProfile_T3posOptions_ReverseCharge = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 208), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-T3posOptions-ReverseCharge").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_T3posOptions_ReverseCharge.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_ReverseCharge.setDescription('Reverse charge request') internetProfile_T3posOptions_Answer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 209), DisplayString()).setLabel("internetProfile-T3posOptions-Answer").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_Answer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_Answer.setDescription('Answer number: mandatory if call mode is incoming or both.') internetProfile_T3posOptions_T3PosHostInitMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 210), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("local", 1), ("binLocal", 2), ("transparent", 3), ("blind", 4), ("unknown", 5)))).setLabel("internetProfile-T3posOptions-T3PosHostInitMode").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosHostInitMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosHostInitMode.setDescription('T3POS Host Initialization mode: LOCAL/BIN-LOCAL/TRANSPARENT/BLIND') internetProfile_T3posOptions_T3PosDteInitMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 211), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("local", 1), ("binLocal", 2), ("transparent", 3), ("blind", 4), ("unknown", 5)))).setLabel("internetProfile-T3posOptions-T3PosDteInitMode").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosDteInitMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosDteInitMode.setDescription('T3POS DTE Initialization mode: LOCAL/BIN-LOCAL/TRANSPARENT/BLIND') internetProfile_T3posOptions_T3PosEnqHandling = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 212), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setLabel("internetProfile-T3posOptions-T3PosEnqHandling").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosEnqHandling.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosEnqHandling.setDescription('T3POS ENQ handling param') internetProfile_T3posOptions_T3PosMaxBlockSize = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 213), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("n-512", 1), ("n-1024", 2)))).setLabel("internetProfile-T3posOptions-T3PosMaxBlockSize").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosMaxBlockSize.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosMaxBlockSize.setDescription('T3POS Max block size: 512/1024') internetProfile_T3posOptions_T3PosT1 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 214), Integer32()).setLabel("internetProfile-T3posOptions-T3PosT1").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT1.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT1.setDescription('T3POS T1 timer.') internetProfile_T3posOptions_T3PosT2 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 215), Integer32()).setLabel("internetProfile-T3posOptions-T3PosT2").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT2.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT2.setDescription('T3POS T2 timer.') internetProfile_T3posOptions_T3PosT3 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 216), Integer32()).setLabel("internetProfile-T3posOptions-T3PosT3").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT3.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT3.setDescription('T3POS T3 timer.') internetProfile_T3posOptions_T3PosT4 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 217), Integer32()).setLabel("internetProfile-T3posOptions-T3PosT4").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT4.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT4.setDescription('T3POS T4 timer.') internetProfile_T3posOptions_T3PosT5 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 218), Integer32()).setLabel("internetProfile-T3posOptions-T3PosT5").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT5.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT5.setDescription('T3POS T5 timer.') internetProfile_T3posOptions_T3PosT6 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 219), Integer32()).setLabel("internetProfile-T3posOptions-T3PosT6").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT6.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosT6.setDescription('T3POS T6 timer.') internetProfile_T3posOptions_T3PosMethodOfHostNotif = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 220), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("callRequestPacket", 2), ("modeSwitchFrame", 3)))).setLabel("internetProfile-T3posOptions-T3PosMethodOfHostNotif").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosMethodOfHostNotif.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosMethodOfHostNotif.setDescription('T3POS Method of Host Notification.') internetProfile_T3posOptions_T3PosPidSelection = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 221), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("x29", 1), ("t3pos", 2)))).setLabel("internetProfile-T3posOptions-T3PosPidSelection").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosPidSelection.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosPidSelection.setDescription('T3POS PID selection: X.29, T3POS.') internetProfile_T3posOptions_T3PosAckSuppression = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 222), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setLabel("internetProfile-T3posOptions-T3PosAckSuppression").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosAckSuppression.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_T3PosAckSuppression.setDescription('T3POS ACK suppression.') internetProfile_T3posOptions_X25Rpoa = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 223), DisplayString()).setLabel("internetProfile-T3posOptions-X25Rpoa").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_X25Rpoa.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_X25Rpoa.setDescription('X.25 RPOA facility.') internetProfile_T3posOptions_X25CugIndex = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 224), DisplayString()).setLabel("internetProfile-T3posOptions-X25CugIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_X25CugIndex.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_X25CugIndex.setDescription('X.25 CUG index.') internetProfile_T3posOptions_X25Nui = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 225), DisplayString()).setLabel("internetProfile-T3posOptions-X25Nui").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_X25Nui.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_X25Nui.setDescription('X.25 NUI facility.') internetProfile_T3posOptions_DataFormat = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 226), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("dataFormat7e1", 1), ("dataFormat7o1", 2), ("dataFormat7m1", 3), ("dataFormat7s1", 4), ("dataFormat8n1", 5)))).setLabel("internetProfile-T3posOptions-DataFormat").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_DataFormat.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_DataFormat.setDescription('T3POS Open/Local Data Format.') internetProfile_T3posOptions_LinkAccessType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 227), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("axtypeDedicated", 1), ("axtypeDialIn", 2)))).setLabel("internetProfile-T3posOptions-LinkAccessType").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_T3posOptions_LinkAccessType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_T3posOptions_LinkAccessType.setDescription('T3POS Link access type.') internetProfile_FramedOnly = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 228), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-FramedOnly").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_FramedOnly.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_FramedOnly.setDescription('A profile can be restricted to only doing the framed commands (ppp, mpp, slip, and quit) by setting this to YES') internetProfile_AltdialNumber1 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 229), DisplayString()).setLabel("internetProfile-AltdialNumber1").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AltdialNumber1.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AltdialNumber1.setDescription('The first alternate phone number of the named station.') internetProfile_AltdialNumber2 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 230), DisplayString()).setLabel("internetProfile-AltdialNumber2").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AltdialNumber2.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AltdialNumber2.setDescription('The second alternate phone number of the named station.') internetProfile_AltdialNumber3 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 231), DisplayString()).setLabel("internetProfile-AltdialNumber3").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AltdialNumber3.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AltdialNumber3.setDescription('The third alternate phone number of the named station.') internetProfile_X32Options_X32Profile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 232), DisplayString()).setLabel("internetProfile-X32Options-X32Profile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X32Options_X32Profile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X32Options_X32Profile.setDescription('Name of the x25 profile that this profile is associated with.') internetProfile_X32Options_CallMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 233), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("both", 1), ("outgoing", 2), ("incoming", 3)))).setLabel("internetProfile-X32Options-CallMode").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_X32Options_CallMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X32Options_CallMode.setDescription('Call mode for this interface: Incoming') internetProfile_X32Options_X32ApplMode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 424), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("netToNet", 1), ("isdnCircuitMode", 2), ("isdnPacketMode", 3), ("last", 4)))).setLabel("internetProfile-X32Options-X32ApplMode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_X32Options_X32ApplMode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_X32Options_X32ApplMode.setDescription('Appl mode for this interface') internetProfile_TunnelOptions_ProfileType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 234), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("disabled", 1), ("mobileClient", 2), ("gatewayProfile", 3), ("dialoutProfile", 4)))).setLabel("internetProfile-TunnelOptions-ProfileType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_ProfileType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_ProfileType.setDescription('The type of connection this profile describes') internetProfile_TunnelOptions_TunnelingProtocol = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 235), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 8))).clone(namedValues=NamedValues(("disabled", 1), ("pptpProtocol", 2), ("l2fProtocol", 3), ("l2tpProtocol", 4), ("atmpProtocol", 5), ("vtpProtocol", 6), ("ipinipProtocol", 8)))).setLabel("internetProfile-TunnelOptions-TunnelingProtocol").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_TunnelingProtocol.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_TunnelingProtocol.setDescription('The protocol used for tunneling, if enabled') internetProfile_TunnelOptions_MaxTunnels = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 236), Integer32()).setLabel("internetProfile-TunnelOptions-MaxTunnels").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_MaxTunnels.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_MaxTunnels.setDescription('If this profile is a tunnel gateway, then this parameter specifies the maximum number of tunnels allowed to the home network specified by the name of this profile.') internetProfile_TunnelOptions_AtmpHaRip = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 237), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ripOff", 1), ("ripSendV2", 2)))).setLabel("internetProfile-TunnelOptions-AtmpHaRip").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_AtmpHaRip.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_AtmpHaRip.setDescription("Allows an ATMP home agent to send routing updates to the home network consisting of the mobile nodes' addresses.") internetProfile_TunnelOptions_PrimaryTunnelServer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 238), DisplayString()).setLabel("internetProfile-TunnelOptions-PrimaryTunnelServer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_PrimaryTunnelServer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_PrimaryTunnelServer.setDescription("The IP address or hostname of the primary tunnel server if this is a mobile client's profile.") internetProfile_TunnelOptions_SecondaryTunnelServer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 239), DisplayString()).setLabel("internetProfile-TunnelOptions-SecondaryTunnelServer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_SecondaryTunnelServer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_SecondaryTunnelServer.setDescription("The IP address or hostname of the secondary tunnel server if this is a mobile client's profile.") internetProfile_TunnelOptions_UdpPort = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 240), Integer32()).setLabel("internetProfile-TunnelOptions-UdpPort").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_UdpPort.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_UdpPort.setDescription("The default UDP port to use when communicating with the ATMP home agent, if this is a mobile client's profile.") internetProfile_TunnelOptions_Password = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 241), DisplayString()).setLabel("internetProfile-TunnelOptions-Password").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_Password.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_Password.setDescription('The password required by the tunnel server, if this is a mobile client profile.') internetProfile_TunnelOptions_HomeNetworkName = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 242), DisplayString()).setLabel("internetProfile-TunnelOptions-HomeNetworkName").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_HomeNetworkName.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_HomeNetworkName.setDescription("The name of the home network if the ATMP home agent is operating in gateway mode. It should be empty if the ATMP home agent is operating in router mode. For L2TP, it indicates the Private Group ID value for a client. Used for ATMP and L2TP mobile client's profiles.") internetProfile_TunnelOptions_ClientAuthId = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 413), DisplayString()).setLabel("internetProfile-TunnelOptions-ClientAuthId").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_ClientAuthId.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_ClientAuthId.setDescription('The system name used by the Tunnel Initiator during Tunnel establishment for the purposes of tunnel authentication. This is different and independent from user authentication. Used on L2TP and L2F.') internetProfile_TunnelOptions_ServerAuthId = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 417), DisplayString()).setLabel("internetProfile-TunnelOptions-ServerAuthId").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_ServerAuthId.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_ServerAuthId.setDescription('The system name used by the Tunnel Terminator during Tunnel establishment for the purposes of tunnel authentication. This is different and independent from user authentication. Used on L2TP and L2F.') internetProfile_TunnelOptions_Vrouter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 356), DisplayString()).setLabel("internetProfile-TunnelOptions-Vrouter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_Vrouter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_Vrouter.setDescription('The name of the virtual router used for the tunnel.') internetProfile_TunnelOptions_AssignmentId = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 418), DisplayString()).setLabel("internetProfile-TunnelOptions-AssignmentId").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_AssignmentId.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_AssignmentId.setDescription('The identification assigned to tunnels so that sessions could be grouped into different tunnels based on this Id. This Id only has local significance and is not transmited to the remote tunnel-endpoint.') internetProfile_TunnelOptions_TosCopying = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 473), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-TunnelOptions-TosCopying").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_TunnelOptions_TosCopying.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_TunnelOptions_TosCopying.setDescription('Control the TOS byte of the outer IP header') internetProfile_IpsecOptions_Enabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 474), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-IpsecOptions-Enabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpsecOptions_Enabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpsecOptions_Enabled.setDescription('IPSec can be disabled on a profile by setting this field to no.') internetProfile_IpsecOptions_SecurityPolicyDatabase = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 475), DisplayString()).setLabel("internetProfile-IpsecOptions-SecurityPolicyDatabase").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpsecOptions_SecurityPolicyDatabase.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpsecOptions_SecurityPolicyDatabase.setDescription('The name of the IPSec SPD profile to be used.') internetProfile_PriNumberingPlanId = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 244), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 10))).clone(namedValues=NamedValues(("unknown", 1), ("iSDN", 2), ("private", 10)))).setLabel("internetProfile-PriNumberingPlanId").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PriNumberingPlanId.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PriNumberingPlanId.setDescription("PRI Called Party element's Numbering-Plan-ID value for outgoing PRI calls.") internetProfile_Vrouter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 245), DisplayString()).setLabel("internetProfile-Vrouter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Vrouter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Vrouter.setDescription('Specifies the VRouter in which this profile belongs.') internetProfile_CrossConnectIndex = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 425), Integer32()).setLabel("internetProfile-CrossConnectIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_CrossConnectIndex.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_CrossConnectIndex.setDescription('AToM Mib cross connect index.') internetProfile_AtmOptions_Atm1483type = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 246), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("aal5Llc", 1), ("aal5Vc", 2)))).setLabel("internetProfile-AtmOptions-Atm1483type").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_Atm1483type.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_Atm1483type.setDescription('The type of AAL5 multiplexing.') internetProfile_AtmOptions_Vpi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 247), Integer32()).setLabel("internetProfile-AtmOptions-Vpi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_Vpi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_Vpi.setDescription('The VPI of this connection.') internetProfile_AtmOptions_Vci = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 248), Integer32()).setLabel("internetProfile-AtmOptions-Vci").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_Vci.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_Vci.setDescription('The VCI of this connection.') internetProfile_AtmOptions_NailedGroup = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 256), Integer32()).setLabel("internetProfile-AtmOptions-NailedGroup").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_NailedGroup.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_NailedGroup.setDescription('A number that identifies the set of lines that makes up a nailed-group.') internetProfile_AtmOptions_CastType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 426), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4))).clone(namedValues=NamedValues(("p2p", 2), ("p2mproot", 3), ("p2mpleaf", 4)))).setLabel("internetProfile-AtmOptions-CastType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_CastType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_CastType.setDescription('The connection topology type.') internetProfile_AtmOptions_ConnKind = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 427), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("pvc", 2), ("svcIncoming", 3), ("svcOutgoing", 4), ("spvcInitiator", 5), ("spvcTarget", 6)))).setLabel("internetProfile-AtmOptions-ConnKind").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_ConnKind.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_ConnKind.setDescription('The use of call control.') internetProfile_AtmOptions_AtmServiceType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 257), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("atmUbrService", 1), ("atmCbrService", 2), ("atmAbrService", 3), ("atmVbrService", 4)))).setLabel("internetProfile-AtmOptions-AtmServiceType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmServiceType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmServiceType.setDescription('ATM service type.') internetProfile_AtmOptions_AtmServiceRate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 258), Integer32()).setLabel("internetProfile-AtmOptions-AtmServiceRate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmServiceRate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmServiceRate.setDescription('ATM service rate is the minimum bits per second that is required.') internetProfile_AtmOptions_VpSwitching = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 304), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmOptions-VpSwitching").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_VpSwitching.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_VpSwitching.setDescription('Is this VP switching? VP = 0 is used for VC switching and VP > 0 is used for VP switching.') internetProfile_AtmOptions_TargetAtmAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 428), DisplayString()).setLabel("internetProfile-AtmOptions-TargetAtmAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_TargetAtmAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_TargetAtmAddress.setDescription('The target ATM Address of this Soft PVcc or PVpc.') internetProfile_AtmOptions_TargetSelect = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 429), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3))).clone(namedValues=NamedValues(("required", 2), ("any", 3)))).setLabel("internetProfile-AtmOptions-TargetSelect").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_AtmOptions_TargetSelect.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_TargetSelect.setDescription('Indicates whether the target VPI/VCI values are to be used at the destination.') internetProfile_AtmOptions_TargetVpi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 430), Integer32()).setLabel("internetProfile-AtmOptions-TargetVpi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_TargetVpi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_TargetVpi.setDescription('Target VPI.') internetProfile_AtmOptions_TargetVci = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 431), Integer32()).setLabel("internetProfile-AtmOptions-TargetVci").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_TargetVci.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_TargetVci.setDescription('Target VCI.') internetProfile_AtmOptions_SpvcRetryInterval = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 448), Integer32()).setLabel("internetProfile-AtmOptions-SpvcRetryInterval").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SpvcRetryInterval.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SpvcRetryInterval.setDescription('Period to wait before attempting to establish SPVC after the first SPVC setup failure. 0 indicates no retry') internetProfile_AtmOptions_SpvcRetryThreshold = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 449), Integer32()).setLabel("internetProfile-AtmOptions-SpvcRetryThreshold").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SpvcRetryThreshold.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SpvcRetryThreshold.setDescription('The number of consecutive call setup attempts for the SPVC to fail before the call failure is declared. 0 indicates infinite number of call attempts that means failure is not declared.') internetProfile_AtmOptions_SpvcRetryLimit = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 450), Integer32()).setLabel("internetProfile-AtmOptions-SpvcRetryLimit").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SpvcRetryLimit.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SpvcRetryLimit.setDescription('Maximum limit on how many consecutive unsuccessful call setup attempts can be made before stopping the attempt to set up the connection.') internetProfile_AtmOptions_AtmDirectEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 306), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmOptions-AtmDirectEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmDirectEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmDirectEnabled.setDescription('Enable ATM Direct.') internetProfile_AtmOptions_AtmDirectProfile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 307), DisplayString()).setLabel("internetProfile-AtmOptions-AtmDirectProfile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmDirectProfile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmDirectProfile.setDescription('The atm connection profile name to be used for the ATM Direct connection.') internetProfile_AtmOptions_VcFaultManagement = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 357), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("segmentLoopback", 2), ("endToEndLoopback", 3)))).setLabel("internetProfile-AtmOptions-VcFaultManagement").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_VcFaultManagement.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_VcFaultManagement.setDescription('The VC fault management function to be used for this VC.') internetProfile_AtmOptions_VcMaxLoopbackCellLoss = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 358), Integer32()).setLabel("internetProfile-AtmOptions-VcMaxLoopbackCellLoss").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_VcMaxLoopbackCellLoss.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_VcMaxLoopbackCellLoss.setDescription('The maximum number of consecutive cell loopback failures before the call is disconnected.') internetProfile_AtmOptions_SvcOptions_Enabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 308), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmOptions-SvcOptions-Enabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_Enabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_Enabled.setDescription('Enable ATM SVC.') internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_NumberingPlan = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 381), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 9))).clone(namedValues=NamedValues(("undefined", 1), ("isdn", 2), ("aesa", 3), ("unknown", 5), ("x121", 9)))).setLabel("internetProfile-AtmOptions-SvcOptions-IncomingCallerAddr-NumberingPlan").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_NumberingPlan.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_NumberingPlan.setDescription('Numbering plan for an SVC address') internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 382), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-IncomingCallerAddr-E164NativeAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress.setDescription('An SVC address in a native E.164 format.') internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 383), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 4, 5))).clone(namedValues=NamedValues(("undefined", 1), ("dccAesa", 2), ("icdAesa", 6), ("e164Aesa", 4), ("customAesa", 5)))).setLabel("internetProfile-AtmOptions-SvcOptions-IncomingCallerAddr-AesaAddress-Format").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format.setDescription('An AESA address format used to define this SVC address.') internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 384), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-IncomingCallerAddr-AesaAddress-IdpPortion-Afi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi.setDescription('An Authority and Format Identifier(AFI) for AESA address. Must be defined for every AESA address.') internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 385), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-IncomingCallerAddr-AesaAddress-IdpPortion-Idi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi.setDescription('An Initial Domain Identifier (IDI) portion of the AESA address.') internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 386), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-IncomingCallerAddr-AesaAddress-DspPortion-HoDsp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp.setDescription('A High-Order Domain-Specific Part of AESA address. The IDP portion determine the format of the HO-DSP.') internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 387), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-IncomingCallerAddr-AesaAddress-DspPortion-Esi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi.setDescription('An End System Identifier (ESI) which uniquely identifies the end system within the specified subnetwork.') internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 388), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-IncomingCallerAddr-AesaAddress-DspPortion-Sel").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel.setDescription('A selector (SEL) field that may be used by the end system.') internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 389), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 9))).clone(namedValues=NamedValues(("undefined", 1), ("isdn", 2), ("aesa", 3), ("unknown", 5), ("x121", 9)))).setLabel("internetProfile-AtmOptions-SvcOptions-OutgoingCalledAddr-NumberingPlan").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan.setDescription('Numbering plan for an SVC address') internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 390), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-OutgoingCalledAddr-E164NativeAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress.setDescription('An SVC address in a native E.164 format.') internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 391), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 4, 5))).clone(namedValues=NamedValues(("undefined", 1), ("dccAesa", 2), ("icdAesa", 6), ("e164Aesa", 4), ("customAesa", 5)))).setLabel("internetProfile-AtmOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-Format").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format.setDescription('An AESA address format used to define this SVC address.') internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 392), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-IdpPortion-Afi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi.setDescription('An Authority and Format Identifier(AFI) for AESA address. Must be defined for every AESA address.') internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 393), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-IdpPortion-Idi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi.setDescription('An Initial Domain Identifier (IDI) portion of the AESA address.') internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 394), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-DspPortion-HoDsp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp.setDescription('A High-Order Domain-Specific Part of AESA address. The IDP portion determine the format of the HO-DSP.') internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 395), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-DspPortion-Esi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi.setDescription('An End System Identifier (ESI) which uniquely identifies the end system within the specified subnetwork.') internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 396), DisplayString()).setLabel("internetProfile-AtmOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-DspPortion-Sel").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel.setDescription('A selector (SEL) field that may be used by the end system.') internetProfile_AtmOptions_AtmInverseArp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 327), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmOptions-AtmInverseArp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmInverseArp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmInverseArp.setDescription('Send Atm Inverse Arp request for this connection.') internetProfile_AtmOptions_Fr08Mode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 367), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("translation", 1), ("transparent", 2)))).setLabel("internetProfile-AtmOptions-Fr08Mode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_Fr08Mode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_Fr08Mode.setDescription('The FR-08 transparent mode') internetProfile_AtmOptions_AtmCircuitProfile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 432), DisplayString()).setLabel("internetProfile-AtmOptions-AtmCircuitProfile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmCircuitProfile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_AtmCircuitProfile.setDescription('The atm circuit profile name to be used for this connection.') internetProfile_AtmOptions_OamAisF5 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 451), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("segment", 2), ("endToEnd", 3)))).setLabel("internetProfile-AtmOptions-OamAisF5").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_OamAisF5.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_OamAisF5.setDescription('Disable/Enable sending OAM AIS F5 cells when pvc is down.') internetProfile_AtmOptions_OamSupport = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 452), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmOptions-OamSupport").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_OamSupport.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_OamSupport.setDescription('Is F4 OAM supported? It is used only when vp-switching is yes. The Stinger system can only support F4 OAM for 50 VPC segments in total.') internetProfile_AtmOptions_Mtu = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 468), Integer32()).setLabel("internetProfile-AtmOptions-Mtu").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmOptions_Mtu.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmOptions_Mtu.setDescription('The maximum packet size (excluding LLC encapsulation if used) that can be transmitted to a remote peer without performing fragmentation.') internetProfile_HdlcNrmOptions_SnrmResponseTimeout = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 259), Integer32()).setLabel("internetProfile-HdlcNrmOptions-SnrmResponseTimeout").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_SnrmResponseTimeout.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_SnrmResponseTimeout.setDescription('SNRM Response Timeout in milliseconds.') internetProfile_HdlcNrmOptions_SnrmRetryCounter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 260), Integer32()).setLabel("internetProfile-HdlcNrmOptions-SnrmRetryCounter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_SnrmRetryCounter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_SnrmRetryCounter.setDescription('SNRM Retry Counter in units.') internetProfile_HdlcNrmOptions_PollTimeout = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 261), Integer32()).setLabel("internetProfile-HdlcNrmOptions-PollTimeout").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_PollTimeout.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_PollTimeout.setDescription('HDLC-NRM Poll Reponse Timeout in milliseconds') internetProfile_HdlcNrmOptions_PollRate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 262), Integer32()).setLabel("internetProfile-HdlcNrmOptions-PollRate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_PollRate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_PollRate.setDescription('HDLC-NRM Poll Rate in milliseconds') internetProfile_HdlcNrmOptions_PollRetryCount = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 263), Integer32()).setLabel("internetProfile-HdlcNrmOptions-PollRetryCount").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_PollRetryCount.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_PollRetryCount.setDescription('Poll Response Retry Counter in units') internetProfile_HdlcNrmOptions_Primary = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 264), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-HdlcNrmOptions-Primary").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_Primary.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_Primary.setDescription('Primary station (Yes) or Secondary station (No).') internetProfile_HdlcNrmOptions_AsyncDrop = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 368), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-HdlcNrmOptions-AsyncDrop").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_AsyncDrop.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_AsyncDrop.setDescription('Drop Async I-frames (Yes) or process (No).') internetProfile_HdlcNrmOptions_StationPollAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 416), Integer32()).setLabel("internetProfile-HdlcNrmOptions-StationPollAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_StationPollAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_HdlcNrmOptions_StationPollAddress.setDescription('Secondary station address to use for SNRM polling') internetProfile_AtmConnectOptions_Atm1483type = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 265), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("aal5Llc", 1), ("aal5Vc", 2)))).setLabel("internetProfile-AtmConnectOptions-Atm1483type").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Atm1483type.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Atm1483type.setDescription('The type of AAL5 multiplexing.') internetProfile_AtmConnectOptions_Vpi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 266), Integer32()).setLabel("internetProfile-AtmConnectOptions-Vpi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Vpi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Vpi.setDescription('The VPI of this connection.') internetProfile_AtmConnectOptions_Vci = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 267), Integer32()).setLabel("internetProfile-AtmConnectOptions-Vci").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Vci.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Vci.setDescription('The VCI of this connection.') internetProfile_AtmConnectOptions_NailedGroup = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 268), Integer32()).setLabel("internetProfile-AtmConnectOptions-NailedGroup").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_NailedGroup.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_NailedGroup.setDescription('A number that identifies the set of lines that makes up a nailed-group.') internetProfile_AtmConnectOptions_CastType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 433), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4))).clone(namedValues=NamedValues(("p2p", 2), ("p2mproot", 3), ("p2mpleaf", 4)))).setLabel("internetProfile-AtmConnectOptions-CastType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_CastType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_CastType.setDescription('The connection topology type.') internetProfile_AtmConnectOptions_ConnKind = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 434), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("pvc", 2), ("svcIncoming", 3), ("svcOutgoing", 4), ("spvcInitiator", 5), ("spvcTarget", 6)))).setLabel("internetProfile-AtmConnectOptions-ConnKind").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_ConnKind.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_ConnKind.setDescription('The use of call control.') internetProfile_AtmConnectOptions_AtmServiceType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 269), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("atmUbrService", 1), ("atmCbrService", 2), ("atmAbrService", 3), ("atmVbrService", 4)))).setLabel("internetProfile-AtmConnectOptions-AtmServiceType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmServiceType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmServiceType.setDescription('ATM service type.') internetProfile_AtmConnectOptions_AtmServiceRate = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 270), Integer32()).setLabel("internetProfile-AtmConnectOptions-AtmServiceRate").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmServiceRate.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmServiceRate.setDescription('ATM service rate is the minimum bits per second that is required.') internetProfile_AtmConnectOptions_VpSwitching = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 328), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmConnectOptions-VpSwitching").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_VpSwitching.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_VpSwitching.setDescription('Is this VP switching? VP = 0 is used for VC switching and VP > 0 is used for VP switching.') internetProfile_AtmConnectOptions_TargetAtmAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 435), DisplayString()).setLabel("internetProfile-AtmConnectOptions-TargetAtmAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_TargetAtmAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_TargetAtmAddress.setDescription('The target ATM Address of this Soft PVcc or PVpc.') internetProfile_AtmConnectOptions_TargetSelect = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 436), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3))).clone(namedValues=NamedValues(("required", 2), ("any", 3)))).setLabel("internetProfile-AtmConnectOptions-TargetSelect").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_TargetSelect.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_TargetSelect.setDescription('Indicates whether the target VPI/VCI values are to be used at the destination.') internetProfile_AtmConnectOptions_TargetVpi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 437), Integer32()).setLabel("internetProfile-AtmConnectOptions-TargetVpi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_TargetVpi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_TargetVpi.setDescription('Target VPI.') internetProfile_AtmConnectOptions_TargetVci = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 438), Integer32()).setLabel("internetProfile-AtmConnectOptions-TargetVci").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_TargetVci.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_TargetVci.setDescription('Target VCI.') internetProfile_AtmConnectOptions_SpvcRetryInterval = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 453), Integer32()).setLabel("internetProfile-AtmConnectOptions-SpvcRetryInterval").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SpvcRetryInterval.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SpvcRetryInterval.setDescription('Period to wait before attempting to establish SPVC after the first SPVC setup failure. 0 indicates no retry') internetProfile_AtmConnectOptions_SpvcRetryThreshold = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 454), Integer32()).setLabel("internetProfile-AtmConnectOptions-SpvcRetryThreshold").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SpvcRetryThreshold.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SpvcRetryThreshold.setDescription('The number of consecutive call setup attempts for the SPVC to fail before the call failure is declared. 0 indicates infinite number of call attempts that means failure is not declared.') internetProfile_AtmConnectOptions_SpvcRetryLimit = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 455), Integer32()).setLabel("internetProfile-AtmConnectOptions-SpvcRetryLimit").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SpvcRetryLimit.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SpvcRetryLimit.setDescription('Maximum limit on how many consecutive unsuccessful call setup attempts can be made before stopping the attempt to set up the connection.') internetProfile_AtmConnectOptions_AtmDirectEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 330), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmConnectOptions-AtmDirectEnabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmDirectEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmDirectEnabled.setDescription('Enable ATM Direct.') internetProfile_AtmConnectOptions_AtmDirectProfile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 331), DisplayString()).setLabel("internetProfile-AtmConnectOptions-AtmDirectProfile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmDirectProfile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmDirectProfile.setDescription('The atm connection profile name to be used for the ATM Direct connection.') internetProfile_AtmConnectOptions_VcFaultManagement = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 369), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("segmentLoopback", 2), ("endToEndLoopback", 3)))).setLabel("internetProfile-AtmConnectOptions-VcFaultManagement").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_VcFaultManagement.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_VcFaultManagement.setDescription('The VC fault management function to be used for this VC.') internetProfile_AtmConnectOptions_VcMaxLoopbackCellLoss = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 370), Integer32()).setLabel("internetProfile-AtmConnectOptions-VcMaxLoopbackCellLoss").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_VcMaxLoopbackCellLoss.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_VcMaxLoopbackCellLoss.setDescription('The maximum number of consecutive cell loopback failures before the call is disconnected.') internetProfile_AtmConnectOptions_SvcOptions_Enabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 332), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmConnectOptions-SvcOptions-Enabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_Enabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_Enabled.setDescription('Enable ATM SVC.') internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_NumberingPlan = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 397), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 9))).clone(namedValues=NamedValues(("undefined", 1), ("isdn", 2), ("aesa", 3), ("unknown", 5), ("x121", 9)))).setLabel("internetProfile-AtmConnectOptions-SvcOptions-IncomingCallerAddr-NumberingPlan").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_NumberingPlan.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_NumberingPlan.setDescription('Numbering plan for an SVC address') internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 398), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-IncomingCallerAddr-E164NativeAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress.setDescription('An SVC address in a native E.164 format.') internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 399), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 4, 5))).clone(namedValues=NamedValues(("undefined", 1), ("dccAesa", 2), ("icdAesa", 6), ("e164Aesa", 4), ("customAesa", 5)))).setLabel("internetProfile-AtmConnectOptions-SvcOptions-IncomingCallerAddr-AesaAddress-Format").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format.setDescription('An AESA address format used to define this SVC address.') internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 400), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-IncomingCallerAddr-AesaAddress-IdpPortion-Afi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi.setDescription('An Authority and Format Identifier(AFI) for AESA address. Must be defined for every AESA address.') internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 401), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-IncomingCallerAddr-AesaAddress-IdpPortion-Idi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi.setDescription('An Initial Domain Identifier (IDI) portion of the AESA address.') internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 402), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-IncomingCallerAddr-AesaAddress-DspPortion-HoDsp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp.setDescription('A High-Order Domain-Specific Part of AESA address. The IDP portion determine the format of the HO-DSP.') internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 403), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-IncomingCallerAddr-AesaAddress-DspPortion-Esi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi.setDescription('An End System Identifier (ESI) which uniquely identifies the end system within the specified subnetwork.') internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 404), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-IncomingCallerAddr-AesaAddress-DspPortion-Sel").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel.setDescription('A selector (SEL) field that may be used by the end system.') internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 405), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 5, 9))).clone(namedValues=NamedValues(("undefined", 1), ("isdn", 2), ("aesa", 3), ("unknown", 5), ("x121", 9)))).setLabel("internetProfile-AtmConnectOptions-SvcOptions-OutgoingCalledAddr-NumberingPlan").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan.setDescription('Numbering plan for an SVC address') internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 406), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-OutgoingCalledAddr-E164NativeAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress.setDescription('An SVC address in a native E.164 format.') internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 407), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 4, 5))).clone(namedValues=NamedValues(("undefined", 1), ("dccAesa", 2), ("icdAesa", 6), ("e164Aesa", 4), ("customAesa", 5)))).setLabel("internetProfile-AtmConnectOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-Format").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format.setDescription('An AESA address format used to define this SVC address.') internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 408), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-IdpPortion-Afi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi.setDescription('An Authority and Format Identifier(AFI) for AESA address. Must be defined for every AESA address.') internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 409), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-IdpPortion-Idi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi.setDescription('An Initial Domain Identifier (IDI) portion of the AESA address.') internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 410), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-DspPortion-HoDsp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp.setDescription('A High-Order Domain-Specific Part of AESA address. The IDP portion determine the format of the HO-DSP.') internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 411), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-DspPortion-Esi").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi.setDescription('An End System Identifier (ESI) which uniquely identifies the end system within the specified subnetwork.') internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 412), DisplayString()).setLabel("internetProfile-AtmConnectOptions-SvcOptions-OutgoingCalledAddr-AesaAddress-DspPortion-Sel").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel.setDescription('A selector (SEL) field that may be used by the end system.') internetProfile_AtmConnectOptions_AtmInverseArp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 351), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmConnectOptions-AtmInverseArp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmInverseArp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmInverseArp.setDescription('Send Atm Inverse Arp request for this connection.') internetProfile_AtmConnectOptions_Fr08Mode = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 379), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("translation", 1), ("transparent", 2)))).setLabel("internetProfile-AtmConnectOptions-Fr08Mode").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Fr08Mode.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Fr08Mode.setDescription('The FR-08 transparent mode') internetProfile_AtmConnectOptions_AtmCircuitProfile = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 439), DisplayString()).setLabel("internetProfile-AtmConnectOptions-AtmCircuitProfile").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmCircuitProfile.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_AtmCircuitProfile.setDescription('The atm circuit profile name to be used for this connection.') internetProfile_AtmConnectOptions_OamAisF5 = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 456), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disable", 1), ("segment", 2), ("endToEnd", 3)))).setLabel("internetProfile-AtmConnectOptions-OamAisF5").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_OamAisF5.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_OamAisF5.setDescription('Disable/Enable sending OAM AIS F5 cells when pvc is down.') internetProfile_AtmConnectOptions_OamSupport = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 457), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmConnectOptions-OamSupport").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_OamSupport.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_OamSupport.setDescription('Is F4 OAM supported? It is used only when vp-switching is yes. The Stinger system can only support F4 OAM for 50 VPC segments in total.') internetProfile_AtmConnectOptions_Mtu = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 469), Integer32()).setLabel("internetProfile-AtmConnectOptions-Mtu").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Mtu.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmConnectOptions_Mtu.setDescription('The maximum packet size (excluding LLC encapsulation if used) that can be transmitted to a remote peer without performing fragmentation.') internetProfile_Visa2Options_IdleCharacterDelay = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 271), Integer32()).setLabel("internetProfile-Visa2Options-IdleCharacterDelay").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Visa2Options_IdleCharacterDelay.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Visa2Options_IdleCharacterDelay.setDescription('Idle Character Delay in milliseconds.') internetProfile_Visa2Options_FirstDataForwardCharacter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 272), DisplayString()).setLabel("internetProfile-Visa2Options-FirstDataForwardCharacter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Visa2Options_FirstDataForwardCharacter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Visa2Options_FirstDataForwardCharacter.setDescription('First Data Forwarding Character. Default is 0x04') internetProfile_Visa2Options_SecondDataForwardCharacter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 273), DisplayString()).setLabel("internetProfile-Visa2Options-SecondDataForwardCharacter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Visa2Options_SecondDataForwardCharacter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Visa2Options_SecondDataForwardCharacter.setDescription('Second Data Forwarding Character. Default is 0x06') internetProfile_Visa2Options_ThirdDataForwardCharacter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 274), DisplayString()).setLabel("internetProfile-Visa2Options-ThirdDataForwardCharacter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Visa2Options_ThirdDataForwardCharacter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Visa2Options_ThirdDataForwardCharacter.setDescription('Third Data Forwarding Character. Default is 0x15') internetProfile_Visa2Options_FourthDataForwardCharacter = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 275), DisplayString()).setLabel("internetProfile-Visa2Options-FourthDataForwardCharacter").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Visa2Options_FourthDataForwardCharacter.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Visa2Options_FourthDataForwardCharacter.setDescription('Fourth Data Forwarding Character. Default is 0x05') internetProfile_Visa2Options_o1CharSequence = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 276), DisplayString()).setLabel("internetProfile-Visa2Options-o1CharSequence").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Visa2Options_o1CharSequence.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Visa2Options_o1CharSequence.setDescription('1 character data forwarding sequence. Default is 0x03') internetProfile_Visa2Options_o2CharSequence = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 277), DisplayString()).setLabel("internetProfile-Visa2Options-o2CharSequence").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Visa2Options_o2CharSequence.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Visa2Options_o2CharSequence.setDescription('2 character data forwarding sequence. Default is 0x00:0x03') internetProfile_SdtnPacketsServer = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 278), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-SdtnPacketsServer").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_SdtnPacketsServer.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_SdtnPacketsServer.setDescription('Decides if this profile Handles sdtn-packets. Note, the Sdtn data packets may still be encapsulated') internetProfile_oATString = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 279), DisplayString()).setLabel("internetProfile-oATString").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_oATString.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_oATString.setDescription('Allows the user to enter customized AT commands in the modem dial or answer string.') internetProfile_PortRedirectOptions_Protocol = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 280), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 7, 18))).clone(namedValues=NamedValues(("none", 1), ("tcp", 7), ("udp", 18)))).setLabel("internetProfile-PortRedirectOptions-Protocol").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PortRedirectOptions_Protocol.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PortRedirectOptions_Protocol.setDescription('The protocol to be redirected.') internetProfile_PortRedirectOptions_PortNumber = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 281), Integer32()).setLabel("internetProfile-PortRedirectOptions-PortNumber").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PortRedirectOptions_PortNumber.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PortRedirectOptions_PortNumber.setDescription('Port number to be redirected.') internetProfile_PortRedirectOptions_RedirectAddress = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 282), IpAddress()).setLabel("internetProfile-PortRedirectOptions-RedirectAddress").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PortRedirectOptions_RedirectAddress.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PortRedirectOptions_RedirectAddress.setDescription('IP Address of server to which packet is to be redirected.') internetProfile_PppoeOptions_Pppoe = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 288), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-PppoeOptions-Pppoe").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppoeOptions_Pppoe.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppoeOptions_Pppoe.setDescription('Enable or disable the ability to establish PPP over Ethernet session over this interface.') internetProfile_PppoeOptions_BridgeNonPppoe = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 289), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-PppoeOptions-BridgeNonPppoe").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PppoeOptions_BridgeNonPppoe.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PppoeOptions_BridgeNonPppoe.setDescription('States wheather to bridge all other protocols except PPPoE on this interface or not.') internetProfile_AtmQosOptions_UsrUpStreamContract = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 352), DisplayString()).setLabel("internetProfile-AtmQosOptions-UsrUpStreamContract").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmQosOptions_UsrUpStreamContract.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmQosOptions_UsrUpStreamContract.setDescription('Quality of Service (QOS) contract for user up stream traffic') internetProfile_AtmQosOptions_UsrDnStreamContract = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 353), DisplayString()).setLabel("internetProfile-AtmQosOptions-UsrDnStreamContract").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmQosOptions_UsrDnStreamContract.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmQosOptions_UsrDnStreamContract.setDescription('Quality of Service (QOS) contract for user down stream traffic') internetProfile_AtmQosOptions_SubtendingHops = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 470), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("n-0Level", 1), ("n-1Level", 2), ("n-2Level", 3), ("n-3Level", 4)))).setLabel("internetProfile-AtmQosOptions-SubtendingHops").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmQosOptions_SubtendingHops.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmQosOptions_SubtendingHops.setDescription('Number of hops from which the end-point of this connection originates') internetProfile_BirOptions_Enable = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 290), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-BirOptions-Enable").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_BirOptions_Enable.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BirOptions_Enable.setDescription('Enable or disable the BIR on this interface.') internetProfile_BirOptions_ProxyArp = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 291), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-BirOptions-ProxyArp").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_BirOptions_ProxyArp.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_BirOptions_ProxyArp.setDescription('Specify how proxy arp is to be used on an interface.') internetProfile_AtmAalOptions_AalEnabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 440), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-AtmAalOptions-AalEnabled").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_AtmAalOptions_AalEnabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmAalOptions_AalEnabled.setDescription('Enable the AAl options') internetProfile_AtmAalOptions_AalType = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 441), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("aal0", 1), ("aal5", 2), ("unspecified", 3)))).setLabel("internetProfile-AtmAalOptions-AalType").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmAalOptions_AalType.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmAalOptions_AalType.setDescription('ATM Adaptation Layer type') internetProfile_AtmAalOptions_TransmitSduSize = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 442), Integer32()).setLabel("internetProfile-AtmAalOptions-TransmitSduSize").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmAalOptions_TransmitSduSize.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmAalOptions_TransmitSduSize.setDescription('Size of the trasmitt Service Data Unit in octets.') internetProfile_AtmAalOptions_ReceiveSduSize = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 443), Integer32()).setLabel("internetProfile-AtmAalOptions-ReceiveSduSize").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_AtmAalOptions_ReceiveSduSize.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_AtmAalOptions_ReceiveSduSize.setDescription('Size of the receive Service Data Unit in octets.') internetProfile_ConnUser = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 444), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("default", 1), ("cpcs", 2)))).setLabel("internetProfile-ConnUser").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_ConnUser.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_ConnUser.setDescription('Connetion User type .') internetProfile_ModemOnHoldTimeout = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 458), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))).clone(namedValues=NamedValues(("mohDisabled", 1), ("n-10SecMohTimeout", 2), ("n-20SecMohTimeout", 3), ("n-30SecMohTimeout", 4), ("n-40SecMohTimeout", 5), ("n-1MinMohTimeout", 6), ("n-2MinMohTimeout", 7), ("n-3MinMohTimeout", 8), ("n-4MinMohTimeout", 9), ("n-6MinMohTimeout", 10), ("n-8MinMohTimeout", 11), ("n-12MinMohTimeout", 12), ("n-16MinMohTimeout", 13), ("noLimitMohTimeout", 14), ("connProfileUseGlobal", 15)))).setLabel("internetProfile-ModemOnHoldTimeout").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_ModemOnHoldTimeout.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_ModemOnHoldTimeout.setDescription('The allowable Modem-on-Hold timeout values.') internetProfile_PriorityOptions_Enabled = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 482), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setLabel("internetProfile-PriorityOptions-Enabled").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PriorityOptions_Enabled.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PriorityOptions_Enabled.setDescription('Enable priority classification.') internetProfile_PriorityOptions_PacketClassification = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 477), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3))).clone(namedValues=NamedValues(("qosTag", 2), ("udpPortRange", 3)))).setLabel("internetProfile-PriorityOptions-PacketClassification").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PriorityOptions_PacketClassification.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PriorityOptions_PacketClassification.setDescription('Method used to classify PPP packets.') internetProfile_PriorityOptions_MaxRtpPacketDelay = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 478), Integer32()).setLabel("internetProfile-PriorityOptions-MaxRtpPacketDelay").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PriorityOptions_MaxRtpPacketDelay.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PriorityOptions_MaxRtpPacketDelay.setDescription('Maximum delay for RTP packets in milli-seconds. Used for calculating the fragment size for the non-rtp traffic using the same link.') internetProfile_PriorityOptions_MinimumRtpPort = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 479), Integer32()).setLabel("internetProfile-PriorityOptions-MinimumRtpPort").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PriorityOptions_MinimumRtpPort.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PriorityOptions_MinimumRtpPort.setDescription('Minimum UDP port for prioritization') internetProfile_PriorityOptions_MaximumRtpPort = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 480), Integer32()).setLabel("internetProfile-PriorityOptions-MaximumRtpPort").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PriorityOptions_MaximumRtpPort.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PriorityOptions_MaximumRtpPort.setDescription('Maximum UDP port for prioritization') internetProfile_PriorityOptions_NoHighPrioPktDuration = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 481), Integer32()).setLabel("internetProfile-PriorityOptions-NoHighPrioPktDuration").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_PriorityOptions_NoHighPrioPktDuration.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_PriorityOptions_NoHighPrioPktDuration.setDescription('The number of seconds of no high priority packets before disabling IP fragmentation of low priority packets. The value 0 disables checking duration of no high priority packet.') internetProfile_Action_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 1, 1, 249), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noAction", 1), ("createProfile", 2), ("deleteProfile", 3)))).setLabel("internetProfile-Action-o").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_Action_o.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_Action_o.setDescription('') mibinternetProfile_IpxOptions_IpxSapHsProxyNetTable = MibTable((1, 3, 6, 1, 4, 1, 529, 23, 1, 2), ).setLabel("mibinternetProfile-IpxOptions-IpxSapHsProxyNetTable") if mibBuilder.loadTexts: mibinternetProfile_IpxOptions_IpxSapHsProxyNetTable.setStatus('mandatory') if mibBuilder.loadTexts: mibinternetProfile_IpxOptions_IpxSapHsProxyNetTable.setDescription('A list of mibinternetProfile__ipx_options__ipx_sap_hs_proxy_net profile entries.') mibinternetProfile_IpxOptions_IpxSapHsProxyNetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 23, 1, 2, 1), ).setLabel("mibinternetProfile-IpxOptions-IpxSapHsProxyNetEntry").setIndexNames((0, "ASCEND-MIBINET-MIB", "internetProfile-IpxOptions-IpxSapHsProxyNet-Station"), (0, "ASCEND-MIBINET-MIB", "internetProfile-IpxOptions-IpxSapHsProxyNet-Index-o")) if mibBuilder.loadTexts: mibinternetProfile_IpxOptions_IpxSapHsProxyNetEntry.setStatus('mandatory') if mibBuilder.loadTexts: mibinternetProfile_IpxOptions_IpxSapHsProxyNetEntry.setDescription('A mibinternetProfile__ipx_options__ipx_sap_hs_proxy_net entry containing objects that maps to the parameters of mibinternetProfile__ipx_options__ipx_sap_hs_proxy_net profile.') internetProfile_IpxOptions_IpxSapHsProxyNet_Station = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 2, 1, 1), DisplayString()).setLabel("internetProfile-IpxOptions-IpxSapHsProxyNet-Station").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSapHsProxyNet_Station.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSapHsProxyNet_Station.setDescription('') internetProfile_IpxOptions_IpxSapHsProxyNet_Index_o = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 2, 1, 2), Integer32()).setLabel("internetProfile-IpxOptions-IpxSapHsProxyNet-Index-o").setMaxAccess("readonly") if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSapHsProxyNet_Index_o.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSapHsProxyNet_Index_o.setDescription('') internetProfile_IpxOptions_IpxSapHsProxyNet = MibScalar((1, 3, 6, 1, 4, 1, 529, 23, 1, 2, 1, 3), Integer32()).setLabel("internetProfile-IpxOptions-IpxSapHsProxyNet").setMaxAccess("readwrite") if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSapHsProxyNet.setStatus('mandatory') if mibBuilder.loadTexts: internetProfile_IpxOptions_IpxSapHsProxyNet.setDescription('The Network# for IPX SAP Proxy Home Server.') mibBuilder.exportSymbols("ASCEND-MIBINET-MIB", internetProfile_IpxOptions_NetAlias=internetProfile_IpxOptions_NetAlias, internetProfile_IpxOptions_Rip=internetProfile_IpxOptions_Rip, internetProfile_X25Options_PadAlias2=internetProfile_X25Options_PadAlias2, internetProfile_Clid=internetProfile_Clid, internetProfile_AtmConnectOptions_Atm1483type=internetProfile_AtmConnectOptions_Atm1483type, internetProfile_IpOptions_NetmaskLocal=internetProfile_IpOptions_NetmaskLocal, internetProfile_TelcoOptions_Callback=internetProfile_TelcoOptions_Callback, internetProfile_T3posOptions_T3PosEnqHandling=internetProfile_T3posOptions_T3PosEnqHandling, internetProfile_T3posOptions_X25CugIndex=internetProfile_T3posOptions_X25CugIndex, internetProfile_X25Options_PadAlias3=internetProfile_X25Options_PadAlias3, internetProfile_IpOptions_TosOptions_Dscp=internetProfile_IpOptions_TosOptions_Dscp, internetProfile_T3posOptions_X25Rpoa=internetProfile_T3posOptions_X25Rpoa, internetProfile_Visa2Options_FourthDataForwardCharacter=internetProfile_Visa2Options_FourthDataForwardCharacter, internetProfile_TelcoOptions_AnswerOriginate=internetProfile_TelcoOptions_AnswerOriginate, internetProfile_TelcoOptions_TransitNumber=internetProfile_TelcoOptions_TransitNumber, internetProfile_IpxOptions_IpxSapHsProxy=internetProfile_IpxOptions_IpxSapHsProxy, internetProfile_IpOptions_OspfOptions_AreaType=internetProfile_IpOptions_OspfOptions_AreaType, internetProfile_AtmQosOptions_UsrUpStreamContract=internetProfile_AtmQosOptions_UsrUpStreamContract, internetProfile_IpOptions_VjHeaderPrediction=internetProfile_IpOptions_VjHeaderPrediction, internetProfile_T3posOptions_DataFormat=internetProfile_T3posOptions_DataFormat, internetProfile_AtmConnectOptions_SpvcRetryLimit=internetProfile_AtmConnectOptions_SpvcRetryLimit, internetProfile_AtmOptions_Mtu=internetProfile_AtmOptions_Mtu, internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi=internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi, internetProfile_AtmConnectOptions_OamSupport=internetProfile_AtmConnectOptions_OamSupport, internetProfile_DhcpOptions_PoolNumber=internetProfile_DhcpOptions_PoolNumber, internetProfile_HdlcNrmOptions_Primary=internetProfile_HdlcNrmOptions_Primary, internetProfile_IpOptions_OspfOptions_DownCost=internetProfile_IpOptions_OspfOptions_DownCost, internetProfile_PppOptions_PppInterfaceType=internetProfile_PppOptions_PppInterfaceType, internetProfile_UsrRadOptions_AcctPort=internetProfile_UsrRadOptions_AcctPort, internetProfile_T3posOptions_T3PosT4=internetProfile_T3posOptions_T3PosT4, internetProfile_PriorityOptions_Enabled=internetProfile_PriorityOptions_Enabled, internetProfile_TcpClearOptions_Port2=internetProfile_TcpClearOptions_Port2, internetProfile_PppOptions_PppCircuit=internetProfile_PppOptions_PppCircuit, internetProfile_DhcpOptions_MaximumLeases=internetProfile_DhcpOptions_MaximumLeases, internetProfile_PriorityOptions_MaxRtpPacketDelay=internetProfile_PriorityOptions_MaxRtpPacketDelay, internetProfile_TunnelOptions_Password=internetProfile_TunnelOptions_Password, internetProfile_IpOptions_AddressRealm=internetProfile_IpOptions_AddressRealm, internetProfile_SessionOptions_MaxtapLogServer=internetProfile_SessionOptions_MaxtapLogServer, internetProfile_AtmConnectOptions_OamAisF5=internetProfile_AtmConnectOptions_OamAisF5, internetProfile_X25Options_PosAuth=internetProfile_X25Options_PosAuth, internetProfile_PppOptions_LinkCompression=internetProfile_PppOptions_LinkCompression, internetProfile_BridgingOptions_SpoofingTimeout=internetProfile_BridgingOptions_SpoofingTimeout, internetProfile_AppletalkOptions_AtalkRoutingEnabled=internetProfile_AppletalkOptions_AtalkRoutingEnabled, internetProfile_IpOptions_IpDirect=internetProfile_IpOptions_IpDirect, internetProfile_SharedProf=internetProfile_SharedProf, internetProfile_SessionOptions_Blockduration=internetProfile_SessionOptions_Blockduration, internetProfile_TcpClearOptions_FlushLength=internetProfile_TcpClearOptions_FlushLength, internetProfile_SessionOptions_VtpGateway=internetProfile_SessionOptions_VtpGateway, internetProfile_AtmOptions_AtmServiceType=internetProfile_AtmOptions_AtmServiceType, internetProfile_TunnelOptions_TunnelingProtocol=internetProfile_TunnelOptions_TunnelingProtocol, internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel=internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel, internetProfile_HdlcNrmOptions_PollRetryCount=internetProfile_HdlcNrmOptions_PollRetryCount, internetProfile_X25Options_X3Profile=internetProfile_X25Options_X3Profile, internetProfile_PriorityOptions_MinimumRtpPort=internetProfile_PriorityOptions_MinimumRtpPort, internetProfile_SessionOptions_CallFilter=internetProfile_SessionOptions_CallFilter, internetProfile_AtmConnectOptions_AtmInverseArp=internetProfile_AtmConnectOptions_AtmInverseArp, internetProfile_IpOptions_Rip=internetProfile_IpOptions_Rip, internetProfile_IpxOptions_IpxSapHsProxyNet_Index_o=internetProfile_IpxOptions_IpxSapHsProxyNet_Index_o, internetProfile_TelcoOptions_Force56kbps=internetProfile_TelcoOptions_Force56kbps, internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel=internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Sel, internetProfile_IpOptions_OspfOptions_Active=internetProfile_IpOptions_OspfOptions_Active, internetProfile_IpxOptions_IpxHeaderCompression=internetProfile_IpxOptions_IpxHeaderCompression, internetProfile_AppletalkOptions_AtalkStaticNetStart=internetProfile_AppletalkOptions_AtalkStaticNetStart, internetProfile_Visa2Options_o1CharSequence=internetProfile_Visa2Options_o1CharSequence, internetProfile_PriorityOptions_MaximumRtpPort=internetProfile_PriorityOptions_MaximumRtpPort, internetProfile_IpOptions_Preference=internetProfile_IpOptions_Preference, internetProfile_AtmQosOptions_UsrDnStreamContract=internetProfile_AtmQosOptions_UsrDnStreamContract, internetProfile_TelcoOptions_Ft1Caller=internetProfile_TelcoOptions_Ft1Caller, internetProfile_AtmOptions_Fr08Mode=internetProfile_AtmOptions_Fr08Mode, internetProfile_IpOptions_OspfOptions_PollInterval=internetProfile_IpOptions_OspfOptions_PollInterval, internetProfile_PppOptions_BiDirectionalAuth=internetProfile_PppOptions_BiDirectionalAuth, internetProfile_EuOptions_DceAddr=internetProfile_EuOptions_DceAddr, internetProfile_AtmConnectOptions_SvcOptions_Enabled=internetProfile_AtmConnectOptions_SvcOptions_Enabled, internetProfile_IpOptions_OspfOptions_AseTag=internetProfile_IpOptions_OspfOptions_AseTag, internetProfile_BridgingOptions_BridgingGroup=internetProfile_BridgingOptions_BridgingGroup, internetProfile_TunnelOptions_HomeNetworkName=internetProfile_TunnelOptions_HomeNetworkName, internetProfile_HdlcNrmOptions_AsyncDrop=internetProfile_HdlcNrmOptions_AsyncDrop, internetProfile_SessionOptions_SesAdslCapUpRate=internetProfile_SessionOptions_SesAdslCapUpRate, internetProfile_BridgingOptions_IpxSpoofing=internetProfile_BridgingOptions_IpxSpoofing, internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp=internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp, internetProfile_PppOptions_CbcpEnabled=internetProfile_PppOptions_CbcpEnabled, internetProfile_X25Options_PadDefaultListen=internetProfile_X25Options_PadDefaultListen, internetProfile_IpOptions_RemoteAddress=internetProfile_IpOptions_RemoteAddress, internetProfile_SessionOptions_RedialDelayLimit=internetProfile_SessionOptions_RedialDelayLimit, internetProfile_AtmOptions_OamSupport=internetProfile_AtmOptions_OamSupport, internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format=internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format, internetProfile_BridgingOptions_DialOnBroadcast=internetProfile_BridgingOptions_DialOnBroadcast, internetProfile_IpOptions_PrivateRoute=internetProfile_IpOptions_PrivateRoute, internetProfile_MppOptions_X25chanTargetUtilization=internetProfile_MppOptions_X25chanTargetUtilization, internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format=internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_Format, mibinternetProfile_IpxOptions_IpxSapHsProxyNetEntry=mibinternetProfile_IpxOptions_IpxSapHsProxyNetEntry, internetProfile_BridgingOptions_BridgeType=internetProfile_BridgingOptions_BridgeType, internetProfile_AtmConnectOptions_CastType=internetProfile_AtmConnectOptions_CastType, internetProfile_PriorityOptions_NoHighPrioPktDuration=internetProfile_PriorityOptions_NoHighPrioPktDuration, DisplayString=DisplayString, internetProfile_AtmAalOptions_AalType=internetProfile_AtmAalOptions_AalType, internetProfile_AtmAalOptions_ReceiveSduSize=internetProfile_AtmAalOptions_ReceiveSduSize, internetProfile_AtmConnectOptions_SpvcRetryThreshold=internetProfile_AtmConnectOptions_SpvcRetryThreshold, internetProfile_SessionOptions_IdleTimer=internetProfile_SessionOptions_IdleTimer, internetProfile_T3posOptions_T3PosDteInitMode=internetProfile_T3posOptions_T3PosDteInitMode, internetProfile_AtmConnectOptions_TargetVpi=internetProfile_AtmConnectOptions_TargetVpi, internetProfile_AtmConnectOptions_VcMaxLoopbackCellLoss=internetProfile_AtmConnectOptions_VcMaxLoopbackCellLoss, internetProfile_BirOptions_ProxyArp=internetProfile_BirOptions_ProxyArp, internetProfile_X25Options_PadPrompt=internetProfile_X25Options_PadPrompt, internetProfile_AtmOptions_SpvcRetryLimit=internetProfile_AtmOptions_SpvcRetryLimit, internetProfile_AtmConnectOptions_TargetSelect=internetProfile_AtmConnectOptions_TargetSelect, internetProfile_T3posOptions_T3PosT3=internetProfile_T3posOptions_T3PosT3, internetProfile_X25Options_MaxCalls=internetProfile_X25Options_MaxCalls, internetProfile_Vrouter=internetProfile_Vrouter, internetProfile_UsrRadOptions_AcctKey=internetProfile_UsrRadOptions_AcctKey, internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress=internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress, internetProfile_TunnelOptions_Vrouter=internetProfile_TunnelOptions_Vrouter, internetProfile_SessionOptions_TsIdleMode=internetProfile_SessionOptions_TsIdleMode, internetProfile_AtmOptions_SpvcRetryThreshold=internetProfile_AtmOptions_SpvcRetryThreshold, internetProfile_IpOptions_ClientWinsAddrAssign=internetProfile_IpOptions_ClientWinsAddrAssign, internetProfile_TcpClearOptions_DetectEndOfPacket=internetProfile_TcpClearOptions_DetectEndOfPacket, internetProfile_TcpClearOptions_Host3=internetProfile_TcpClearOptions_Host3, internetProfile_X25Options_X121SourceAddress=internetProfile_X25Options_X121SourceAddress, internetProfile_HdlcNrmOptions_PollRate=internetProfile_HdlcNrmOptions_PollRate, internetProfile_AtmOptions_AtmDirectProfile=internetProfile_AtmOptions_AtmDirectProfile, internetProfile_IpOptions_TosFilter=internetProfile_IpOptions_TosFilter, internetProfile_SessionOptions_MaxCallDuration=internetProfile_SessionOptions_MaxCallDuration, internetProfile_IpxOptions_DialQuery=internetProfile_IpxOptions_DialQuery, internetProfile_MppOptions_TargetUtilization=internetProfile_MppOptions_TargetUtilization, internetProfile_T3posOptions_AutoCallX121Address=internetProfile_T3posOptions_AutoCallX121Address, internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress=internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress, internetProfile_X75Options_T1RetranTimer=internetProfile_X75Options_T1RetranTimer, internetProfile_T3posOptions_T3PosPidSelection=internetProfile_T3posOptions_T3PosPidSelection, internetProfile_X32Options_X32ApplMode=internetProfile_X32Options_X32ApplMode, internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_NumberingPlan=internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_NumberingPlan, internetProfile_AtmConnectOptions_SpvcRetryInterval=internetProfile_AtmConnectOptions_SpvcRetryInterval, internetProfile_AtmOptions_AtmInverseArp=internetProfile_AtmOptions_AtmInverseArp, internetProfile_X25Options_X25EncapsType=internetProfile_X25Options_X25EncapsType, internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi=internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi, internetProfile_PriNumberingPlanId=internetProfile_PriNumberingPlanId, internetProfile_Visa2Options_ThirdDataForwardCharacter=internetProfile_Visa2Options_ThirdDataForwardCharacter, internetProfile_X25Options_CallMode=internetProfile_X25Options_CallMode, internetProfile_X25Options_PadNuiPrompt=internetProfile_X25Options_PadNuiPrompt, internetProfile_X25Options_RemoteX25Address=internetProfile_X25Options_RemoteX25Address, internetProfile_SessionOptions_TsIdleTimer=internetProfile_SessionOptions_TsIdleTimer, internetProfile_MppOptions_AddPersistence=internetProfile_MppOptions_AddPersistence, internetProfile_BridgingOptions_Egress=internetProfile_BridgingOptions_Egress, internetProfile_FrOptions_FrDirectProfile=internetProfile_FrOptions_FrDirectProfile, internetProfile_AtmConnectOptions_VcFaultManagement=internetProfile_AtmConnectOptions_VcFaultManagement, internetProfile_IpOptions_ClientWinsSecondaryAddr=internetProfile_IpOptions_ClientWinsSecondaryAddr, internetProfile_SessionOptions_DataFilter=internetProfile_SessionOptions_DataFilter, internetProfile_EuOptions_DteAddr=internetProfile_EuOptions_DteAddr, internetProfile_UsrRadOptions_AcctIdBase=internetProfile_UsrRadOptions_AcctIdBase, internetProfile_X25Options_X25Profile=internetProfile_X25Options_X25Profile, internetProfile_AltdialNumber1=internetProfile_AltdialNumber1, internetProfile_IpOptions_OspfOptions_NetworkType=internetProfile_IpOptions_OspfOptions_NetworkType, internetProfile_AtmOptions_TargetAtmAddress=internetProfile_AtmOptions_TargetAtmAddress, internetProfile_MppOptions_DynamicAlgorithm=internetProfile_MppOptions_DynamicAlgorithm, internetProfile_EuOptions_Mru=internetProfile_EuOptions_Mru, internetProfile_SessionOptions_FilterRequired=internetProfile_SessionOptions_FilterRequired, internetProfile_PortRedirectOptions_PortNumber=internetProfile_PortRedirectOptions_PortNumber, internetProfile_IpOptions_TosOptions_Active=internetProfile_IpOptions_TosOptions_Active, internetProfile_SessionOptions_SesAdslDmtDownRate=internetProfile_SessionOptions_SesAdslDmtDownRate, internetProfile_AtmConnectOptions_TargetVci=internetProfile_AtmConnectOptions_TargetVci, internetProfile_MppOptions_BandwidthMonitorDirection=internetProfile_MppOptions_BandwidthMonitorDirection, internetProfile_X25Options_X25CugIndex=internetProfile_X25Options_X25CugIndex, internetProfile_AtmConnectOptions_TargetAtmAddress=internetProfile_AtmConnectOptions_TargetAtmAddress, internetProfile_IpOptions_RouteFilter=internetProfile_IpOptions_RouteFilter, internetProfile_TelcoOptions_DelayCallback=internetProfile_TelcoOptions_DelayCallback, internetProfile_AtmConnectOptions_VpSwitching=internetProfile_AtmConnectOptions_VpSwitching, internetProfile_AtmOptions_AtmDirectEnabled=internetProfile_AtmOptions_AtmDirectEnabled, internetProfile_SessionOptions_TrafficShaper=internetProfile_SessionOptions_TrafficShaper, internetProfile_BridgingOptions_Fill2=internetProfile_BridgingOptions_Fill2, internetProfile_X25Options_X25Nui=internetProfile_X25Options_X25Nui, internetProfile_IpOptions_OspfOptions_Cost=internetProfile_IpOptions_OspfOptions_Cost, internetProfile_IpOptions_OspfOptions_KeyId=internetProfile_IpOptions_OspfOptions_KeyId, internetProfile_SessionOptions_SesRateType=internetProfile_SessionOptions_SesRateType, internetProfile_IpxOptions_IpxRoutingEnabled=internetProfile_IpxOptions_IpxRoutingEnabled, internetProfile_FrOptions_Dlci=internetProfile_FrOptions_Dlci, internetProfile_IpOptions_NetmaskRemote=internetProfile_IpOptions_NetmaskRemote, internetProfile_MaxSharedUsers=internetProfile_MaxSharedUsers, internetProfile_CalledNumber=internetProfile_CalledNumber, internetProfile_T3posOptions_MaxCalls=internetProfile_T3posOptions_MaxCalls, internetProfile_TunnelOptions_SecondaryTunnelServer=internetProfile_TunnelOptions_SecondaryTunnelServer, internetProfile_IpOptions_MulticastRateLimit=internetProfile_IpOptions_MulticastRateLimit, internetProfile_T3posOptions_LinkAccessType=internetProfile_T3posOptions_LinkAccessType, internetProfile_oATString=internetProfile_oATString, internetProfile_AraOptions_RecvPassword=internetProfile_AraOptions_RecvPassword, internetProfile_PppOptions_SubstituteSendName=internetProfile_PppOptions_SubstituteSendName, internetProfile_TelcoOptions_CallByCall=internetProfile_TelcoOptions_CallByCall, internetProfile_AtmOptions_ConnKind=internetProfile_AtmOptions_ConnKind, internetProfile_ConnUser=internetProfile_ConnUser, internetProfile_TunnelOptions_TosCopying=internetProfile_TunnelOptions_TosCopying, internetProfile_UsrRadOptions_AcctType=internetProfile_UsrRadOptions_AcctType, internetProfile_MppOptions_AuxSendPassword=internetProfile_MppOptions_AuxSendPassword, internetProfile_X75Options_FrameLength=internetProfile_X75Options_FrameLength, internetProfile_IpOptions_TosOptions_ApplyTo=internetProfile_IpOptions_TosOptions_ApplyTo, internetProfile_AppletalkOptions_AtalkStaticZoneName=internetProfile_AppletalkOptions_AtalkStaticZoneName, internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format=internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format, internetProfile_IpOptions_RoutingMetric=internetProfile_IpOptions_RoutingMetric, internetProfile_X25Options_VcTimerEnable=internetProfile_X25Options_VcTimerEnable, mibinternetProfileEntry=mibinternetProfileEntry, internetProfile_SessionOptions_SesAdslCapDownRate=internetProfile_SessionOptions_SesAdslCapDownRate, internetProfile_IpxOptions_NetNumber=internetProfile_IpxOptions_NetNumber, internetProfile_CrossConnectIndex=internetProfile_CrossConnectIndex, internetProfile_TelcoOptions_NailedGroups=internetProfile_TelcoOptions_NailedGroups, internetProfile_Visa2Options_o2CharSequence=internetProfile_Visa2Options_o2CharSequence, internetProfile_T3posOptions_Answer=internetProfile_T3posOptions_Answer, internetProfile_X25Options_Windowsize=internetProfile_X25Options_Windowsize, internetProfile_X25Options_X25Rpoa=internetProfile_X25Options_X25Rpoa, internetProfile_AtmAalOptions_TransmitSduSize=internetProfile_AtmAalOptions_TransmitSduSize, internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi=internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi, internetProfile_X25Options_InactivityTimer=internetProfile_X25Options_InactivityTimer, internetProfile_SessionOptions_SesSdslRate=internetProfile_SessionOptions_SesSdslRate, internetProfile_MpOptions_CallbackrequestEnable=internetProfile_MpOptions_CallbackrequestEnable, internetProfile_PppOptions_Mru=internetProfile_PppOptions_Mru, internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp=internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp, internetProfile_X25Options_PadDiagDisp=internetProfile_X25Options_PadDiagDisp, internetProfile_TcpClearOptions_EndOfPacketPattern=internetProfile_TcpClearOptions_EndOfPacketPattern, internetProfile_TelcoOptions_BillingNumber=internetProfile_TelcoOptions_BillingNumber, internetProfile_IpOptions_AddressPool=internetProfile_IpOptions_AddressPool, internetProfile_AtmOptions_TargetVci=internetProfile_AtmOptions_TargetVci, internetProfile_AtmConnectOptions_NailedGroup=internetProfile_AtmConnectOptions_NailedGroup, internetProfile_IpOptions_ClientDnsAddrAssign=internetProfile_IpOptions_ClientDnsAddrAssign, internetProfile_TcpClearOptions_Port=internetProfile_TcpClearOptions_Port, internetProfile_T3posOptions_T3PosMaxBlockSize=internetProfile_T3posOptions_T3PosMaxBlockSize, internetProfile_UsrRadOptions_AcctHost=internetProfile_UsrRadOptions_AcctHost, internetProfile_AtmOptions_NailedGroup=internetProfile_AtmOptions_NailedGroup, internetProfile_FrOptions_MfrBundleName=internetProfile_FrOptions_MfrBundleName, internetProfile_AppletalkOptions_AtalkStaticNetEnd=internetProfile_AppletalkOptions_AtalkStaticNetEnd, internetProfile_SubAddress=internetProfile_SubAddress, internetProfile_PppOptions_DelayCallbackControl=internetProfile_PppOptions_DelayCallbackControl, internetProfile_AtmConnectOptions_AtmServiceRate=internetProfile_AtmConnectOptions_AtmServiceRate, internetProfile_IpOptions_OspfOptions_Md5AuthKey=internetProfile_IpOptions_OspfOptions_Md5AuthKey, internetProfile_T3posOptions_T3PosAckSuppression=internetProfile_T3posOptions_T3PosAckSuppression, internetProfile_T3posOptions_X25Nui=internetProfile_T3posOptions_X25Nui, internetProfile_TunnelOptions_PrimaryTunnelServer=internetProfile_TunnelOptions_PrimaryTunnelServer, internetProfile_IpOptions_TosOptions_Precedence=internetProfile_IpOptions_TosOptions_Precedence, internetProfile_AltdialNumber3=internetProfile_AltdialNumber3, internetProfile_MpOptions_BodEnable=internetProfile_MpOptions_BodEnable, internetProfile_AtmConnectOptions_AtmDirectProfile=internetProfile_AtmConnectOptions_AtmDirectProfile, internetProfile_TelcoOptions_DialoutAllowed=internetProfile_TelcoOptions_DialoutAllowed, internetProfile_SessionOptions_Backup=internetProfile_SessionOptions_Backup, internetProfile_SdtnPacketsServer=internetProfile_SdtnPacketsServer, internetProfile_IpOptions_MulticastAllowed=internetProfile_IpOptions_MulticastAllowed, internetProfile_IpOptions_ClientWinsPrimaryAddr=internetProfile_IpOptions_ClientWinsPrimaryAddr, internetProfile_AtmConnectOptions_AtmServiceType=internetProfile_AtmConnectOptions_AtmServiceType, internetProfile_IpOptions_LocalAddress=internetProfile_IpOptions_LocalAddress, internetProfile_MpOptions_BacpEnable=internetProfile_MpOptions_BacpEnable, internetProfile_SessionOptions_Blockcountlimit=internetProfile_SessionOptions_Blockcountlimit, internetProfile_TelcoOptions_DataService=internetProfile_TelcoOptions_DataService, internetProfile_AtmConnectOptions_ConnKind=internetProfile_AtmConnectOptions_ConnKind, internetProfile_IpOptions_OspfOptions_AuthKey=internetProfile_IpOptions_OspfOptions_AuthKey, internetProfile_FrOptions_FrDirectEnabled=internetProfile_FrOptions_FrDirectEnabled, internetProfile_PppOptions_LqmMaximumPeriod=internetProfile_PppOptions_LqmMaximumPeriod, internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel=internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel, internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi=internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Idi, internetProfile_PortRedirectOptions_Protocol=internetProfile_PortRedirectOptions_Protocol, internetProfile_SessionOptions_SesAdslDmtUpRate=internetProfile_SessionOptions_SesAdslDmtUpRate) mibBuilder.exportSymbols("ASCEND-MIBINET-MIB", internetProfile_T3posOptions_T3PosT6=internetProfile_T3posOptions_T3PosT6, internetProfile_PortRedirectOptions_RedirectAddress=internetProfile_PortRedirectOptions_RedirectAddress, internetProfile_X32Options_CallMode=internetProfile_X32Options_CallMode, internetProfile_AtmConnectOptions_Vci=internetProfile_AtmConnectOptions_Vci, internetProfile_IpOptions_ClientDefaultGateway=internetProfile_IpOptions_ClientDefaultGateway, internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan=internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan, internetProfile_AtmOptions_SvcOptions_Enabled=internetProfile_AtmOptions_SvcOptions_Enabled, internetProfile_DialNumber=internetProfile_DialNumber, internetProfile_IpOptions_TosOptions_MarkingType=internetProfile_IpOptions_TosOptions_MarkingType, internetProfile_TcpClearOptions_Host=internetProfile_TcpClearOptions_Host, internetProfile_IpsecOptions_Enabled=internetProfile_IpsecOptions_Enabled, internetProfile_HdlcNrmOptions_PollTimeout=internetProfile_HdlcNrmOptions_PollTimeout, internetProfile_IpOptions_OspfOptions_TransitDelay=internetProfile_IpOptions_OspfOptions_TransitDelay, internetProfile_IpxOptions_SapFilter=internetProfile_IpxOptions_SapFilter, internetProfile_X25Options_ReverseCharge=internetProfile_X25Options_ReverseCharge, internetProfile_EncapsulationProtocol=internetProfile_EncapsulationProtocol, internetProfile_TcpClearOptions_Host2=internetProfile_TcpClearOptions_Host2, internetProfile_T3posOptions_T3PosT2=internetProfile_T3posOptions_T3PosT2, internetProfile_MpOptions_BaseChannelCount=internetProfile_MpOptions_BaseChannelCount, internetProfile_PriorityOptions_PacketClassification=internetProfile_PriorityOptions_PacketClassification, internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format=internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_Format, internetProfile_IpOptions_OspfOptions_DeadInterval=internetProfile_IpOptions_OspfOptions_DeadInterval, internetProfile_IpOptions_DownPreference=internetProfile_IpOptions_DownPreference, internetProfile_AtmOptions_Vpi=internetProfile_AtmOptions_Vpi, internetProfile_X25Options_PadBanner=internetProfile_X25Options_PadBanner, internetProfile_HdlcNrmOptions_StationPollAddress=internetProfile_HdlcNrmOptions_StationPollAddress, internetProfile_T3posOptions_T3PosT5=internetProfile_T3posOptions_T3PosT5, internetProfile_UsrRadOptions_AcctTimeout=internetProfile_UsrRadOptions_AcctTimeout, internetProfile_TunnelOptions_UdpPort=internetProfile_TunnelOptions_UdpPort, internetProfile_MppOptions_SubPersistence=internetProfile_MppOptions_SubPersistence, internetProfile_PppOptions_LqmMinimumPeriod=internetProfile_PppOptions_LqmMinimumPeriod, internetProfile_IpxOptions_IpxSapHsProxyNet=internetProfile_IpxOptions_IpxSapHsProxyNet, internetProfile_SessionOptions_CirTimer=internetProfile_SessionOptions_CirTimer, internetProfile_AtmConnectOptions_Vpi=internetProfile_AtmConnectOptions_Vpi, internetProfile_Visa2Options_FirstDataForwardCharacter=internetProfile_Visa2Options_FirstDataForwardCharacter, internetProfile_TcpClearOptions_FlushTime=internetProfile_TcpClearOptions_FlushTime, internetProfile_FrOptions_CircuitType=internetProfile_FrOptions_CircuitType, internetProfile_IpOptions_OspfOptions_Area=internetProfile_IpOptions_OspfOptions_Area, internetProfile_IpOptions_IpRoutingEnabled=internetProfile_IpOptions_IpRoutingEnabled, internetProfile_AtmOptions_AtmCircuitProfile=internetProfile_AtmOptions_AtmCircuitProfile, internetProfile_PppOptions_RecvPassword=internetProfile_PppOptions_RecvPassword, internetProfile_IpOptions_ClientDnsPrimaryAddr=internetProfile_IpOptions_ClientDnsPrimaryAddr, internetProfile_Visa2Options_SecondDataForwardCharacter=internetProfile_Visa2Options_SecondDataForwardCharacter, internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_NumberingPlan=internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_NumberingPlan, internetProfile_IpxOptions_PeerMode=internetProfile_IpxOptions_PeerMode, internetProfile_Active=internetProfile_Active, internetProfile_T3posOptions_T3PosMethodOfHostNotif=internetProfile_T3posOptions_T3PosMethodOfHostNotif, internetProfile_IpOptions_NatProfileName=internetProfile_IpOptions_NatProfileName, internetProfile_FrOptions_FrDirectDlci=internetProfile_FrOptions_FrDirectDlci, internetProfile_X32Options_X32Profile=internetProfile_X32Options_X32Profile, internetProfile_PppOptions_Lqm=internetProfile_PppOptions_Lqm, internetProfile_T3posOptions_X25Profile=internetProfile_T3posOptions_X25Profile, internetProfile_FrOptions_FrameRelayProfile=internetProfile_FrOptions_FrameRelayProfile, internetProfile_SessionOptions_FilterPersistence=internetProfile_SessionOptions_FilterPersistence, internetProfile_PppOptions_SendPassword=internetProfile_PppOptions_SendPassword, internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi=internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_IdpPortion_Afi, internetProfile_PppOptions_TrunkGroupCallbackControl=internetProfile_PppOptions_TrunkGroupCallbackControl, internetProfile_T3posOptions_T3PosHostInitMode=internetProfile_T3posOptions_T3PosHostInitMode, mibinternetProfile_IpxOptions_IpxSapHsProxyNetTable=mibinternetProfile_IpxOptions_IpxSapHsProxyNetTable, internetProfile_AtmQosOptions_SubtendingHops=internetProfile_AtmQosOptions_SubtendingHops, internetProfile_AtmOptions_Vci=internetProfile_AtmOptions_Vci, internetProfile_IpxOptions_IpxSpoofing=internetProfile_IpxOptions_IpxSpoofing, internetProfile_HdlcNrmOptions_SnrmRetryCounter=internetProfile_HdlcNrmOptions_SnrmRetryCounter, internetProfile_PppOptions_SplitCodeDotUserEnabled=internetProfile_PppOptions_SplitCodeDotUserEnabled, internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel=internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Sel, internetProfile_SessionOptions_MaxtapDataServer=internetProfile_SessionOptions_MaxtapDataServer, internetProfile_AraOptions_MaximumConnectTime=internetProfile_AraOptions_MaximumConnectTime, internetProfile_DhcpOptions_ReplyEnabled=internetProfile_DhcpOptions_ReplyEnabled, internetProfile_Action_o=internetProfile_Action_o, internetProfile_SessionOptions_Priority=internetProfile_SessionOptions_Priority, internetProfile_SessionOptions_MaxVtpTunnels=internetProfile_SessionOptions_MaxVtpTunnels, internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi=internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi, internetProfile_FrOptions_CircuitName=internetProfile_FrOptions_CircuitName, internetProfile_IpOptions_OspfOptions_AuthenType=internetProfile_IpOptions_OspfOptions_AuthenType, internetProfile_BirOptions_Enable=internetProfile_BirOptions_Enable, internetProfile_AppletalkOptions_AtalkPeerMode=internetProfile_AppletalkOptions_AtalkPeerMode, internetProfile_AtmOptions_Atm1483type=internetProfile_AtmOptions_Atm1483type, internetProfile_IpxOptions_Sap=internetProfile_IpxOptions_Sap, internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress=internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_E164NativeAddress, internetProfile_IpsecOptions_SecurityPolicyDatabase=internetProfile_IpsecOptions_SecurityPolicyDatabase, internetProfile_TunnelOptions_ServerAuthId=internetProfile_TunnelOptions_ServerAuthId, internetProfile_TcpClearOptions_Host4=internetProfile_TcpClearOptions_Host4, internetProfile_IpOptions_OspfOptions_AseType=internetProfile_IpOptions_OspfOptions_AseType, internetProfile_TunnelOptions_ProfileType=internetProfile_TunnelOptions_ProfileType, internetProfile_IpOptions_MulticastGroupLeaveDelay=internetProfile_IpOptions_MulticastGroupLeaveDelay, internetProfile_AltdialNumber2=internetProfile_AltdialNumber2, internetProfile_FramedOnly=internetProfile_FramedOnly, internetProfile_TcpClearOptions_Port3=internetProfile_TcpClearOptions_Port3, internetProfile_AtmOptions_CastType=internetProfile_AtmOptions_CastType, internetProfile_TunnelOptions_AssignmentId=internetProfile_TunnelOptions_AssignmentId, internetProfile_IpxOptions_IpxSapHsProxyNet_Station=internetProfile_IpxOptions_IpxSapHsProxyNet_Station, internetProfile_PppoeOptions_Pppoe=internetProfile_PppoeOptions_Pppoe, internetProfile_AtmOptions_AtmServiceRate=internetProfile_AtmOptions_AtmServiceRate, internetProfile_IpOptions_OspfOptions_HelloInterval=internetProfile_IpOptions_OspfOptions_HelloInterval, internetProfile_CalledNumberType=internetProfile_CalledNumberType, internetProfile_PppOptions_SubstituteRecvName=internetProfile_PppOptions_SubstituteRecvName, internetProfile_AtmOptions_VpSwitching=internetProfile_AtmOptions_VpSwitching, internetProfile_HdlcNrmOptions_SnrmResponseTimeout=internetProfile_HdlcNrmOptions_SnrmResponseTimeout, internetProfile_X75Options_N2Retransmissions=internetProfile_X75Options_N2Retransmissions, internetProfile_X25Options_PadNuiPwPrompt=internetProfile_X25Options_PadNuiPwPrompt, internetProfile_SessionOptions_RxDataRateLimit=internetProfile_SessionOptions_RxDataRateLimit, internetProfile_T3posOptions_T3PosT1=internetProfile_T3posOptions_T3PosT1, internetProfile_T3posOptions_ReverseCharge=internetProfile_T3posOptions_ReverseCharge, internetProfile_AtmOptions_VcMaxLoopbackCellLoss=internetProfile_AtmOptions_VcMaxLoopbackCellLoss, internetProfile_TelcoOptions_CallType=internetProfile_TelcoOptions_CallType, internetProfile_Visa2Options_IdleCharacterDelay=internetProfile_Visa2Options_IdleCharacterDelay, internetProfile_IpxOptions_SpoofingTimeout=internetProfile_IpxOptions_SpoofingTimeout, internetProfile_PppOptions_Mtu=internetProfile_PppOptions_Mtu, internetProfile_IpOptions_PrivateRouteProfileRequired=internetProfile_IpOptions_PrivateRouteProfileRequired, internetProfile_PppOptions_ModeCallbackControl=internetProfile_PppOptions_ModeCallbackControl, internetProfile_AutoProfiles=internetProfile_AutoProfiles, internetProfile_TcpClearOptions_Port4=internetProfile_TcpClearOptions_Port4, internetProfile_TunnelOptions_AtmpHaRip=internetProfile_TunnelOptions_AtmpHaRip, internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi=internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi, internetProfile_X75Options_KFramesOutstanding=internetProfile_X75Options_KFramesOutstanding, internetProfile_MppOptions_DecrementChannelCount=internetProfile_MppOptions_DecrementChannelCount, mibinternetProfileTable=mibinternetProfileTable, internetProfile_TunnelOptions_ClientAuthId=internetProfile_TunnelOptions_ClientAuthId, internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi=internetProfile_AtmConnectOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi, internetProfile_X25Options_Lcn=internetProfile_X25Options_Lcn, internetProfile_IpOptions_SourceIpCheck=internetProfile_IpOptions_SourceIpCheck, internetProfile_AtmOptions_TargetVpi=internetProfile_AtmOptions_TargetVpi, internetProfile_AtmConnectOptions_Fr08Mode=internetProfile_AtmConnectOptions_Fr08Mode, internetProfile_IpOptions_OspfOptions_NonMulticast=internetProfile_IpOptions_OspfOptions_NonMulticast, internetProfile_FrOptions_FrLinkType=internetProfile_FrOptions_FrLinkType, internetProfile_SessionOptions_TxDataRateLimit=internetProfile_SessionOptions_TxDataRateLimit, internetProfile_X25Options_PadDefaultPw=internetProfile_X25Options_PadDefaultPw, internetProfile_AtmConnectOptions_Mtu=internetProfile_AtmConnectOptions_Mtu, internetProfile_SessionOptions_Secondary=internetProfile_SessionOptions_Secondary, internetProfile_PppOptions_SendAuthMode=internetProfile_PppOptions_SendAuthMode, internetProfile_Station=internetProfile_Station, internetProfile_MpOptions_MaximumChannels=internetProfile_MpOptions_MaximumChannels, internetProfile_AtmAalOptions_AalEnabled=internetProfile_AtmAalOptions_AalEnabled, internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan=internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_NumberingPlan, internetProfile_AtmOptions_OamAisF5=internetProfile_AtmOptions_OamAisF5, internetProfile_MppOptions_SecondsHistory=internetProfile_MppOptions_SecondsHistory, internetProfile_IpOptions_ClientDnsSecondaryAddr=internetProfile_IpOptions_ClientDnsSecondaryAddr, internetProfile_X25Options_Packetsize=internetProfile_X25Options_Packetsize, internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi=internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Afi, internetProfile_IpOptions_OspfOptions_RetransmitInterval=internetProfile_IpOptions_OspfOptions_RetransmitInterval, internetProfile_AtmConnectOptions_AtmCircuitProfile=internetProfile_AtmConnectOptions_AtmCircuitProfile, internetProfile_TelcoOptions_ExpectCallback=internetProfile_TelcoOptions_ExpectCallback, internetProfile_AtmOptions_TargetSelect=internetProfile_AtmOptions_TargetSelect, internetProfile_TelcoOptions_NasPortType=internetProfile_TelcoOptions_NasPortType, internetProfile_MpOptions_MinimumChannels=internetProfile_MpOptions_MinimumChannels, internetProfile_X25Options_PadAlias1=internetProfile_X25Options_PadAlias1, internetProfile_PppOptions_PppCircuitName=internetProfile_PppOptions_PppCircuitName, internetProfile_IpOptions_OspfOptions_Priority=internetProfile_IpOptions_OspfOptions_Priority, internetProfile_PppoeOptions_BridgeNonPppoe=internetProfile_PppoeOptions_BridgeNonPppoe, internetProfile_SessionOptions_SesRateMode=internetProfile_SessionOptions_SesRateMode, internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi=internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_Esi, internetProfile_AtmOptions_SpvcRetryInterval=internetProfile_AtmOptions_SpvcRetryInterval, internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi=internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_IdpPortion_Idi, internetProfile_IpOptions_TosOptions_TypeOfService=internetProfile_IpOptions_TosOptions_TypeOfService, internetProfile_TunnelOptions_MaxTunnels=internetProfile_TunnelOptions_MaxTunnels, internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi=internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_Esi, internetProfile_X25Options_AnswerX25Address=internetProfile_X25Options_AnswerX25Address, internetProfile_ModemOnHoldTimeout=internetProfile_ModemOnHoldTimeout, mibinternetProfile=mibinternetProfile, internetProfile_AtmOptions_VcFaultManagement=internetProfile_AtmOptions_VcFaultManagement, internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress=internetProfile_AtmConnectOptions_SvcOptions_OutgoingCalledAddr_E164NativeAddress, internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp=internetProfile_AtmOptions_SvcOptions_IncomingCallerAddr_AesaAddress_DspPortion_HoDsp, internetProfile_IpOptions_PrivateRouteTable=internetProfile_IpOptions_PrivateRouteTable, internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp=internetProfile_AtmOptions_SvcOptions_OutgoingCalledAddr_AesaAddress_DspPortion_HoDsp, internetProfile_MppOptions_IncrementChannelCount=internetProfile_MppOptions_IncrementChannelCount, internetProfile_AtmConnectOptions_AtmDirectEnabled=internetProfile_AtmConnectOptions_AtmDirectEnabled)
199.141176
22,962
0.832662
27,190
253,905
7.600221
0.073777
0.048546
0.084955
0.144244
0.641611
0.601094
0.535248
0.298635
0.247583
0.235403
0
0.049177
0.059534
253,905
1,274
22,963
199.297488
0.816231
0.0013
0
0
0
0.056082
0.231427
0.074454
0
0
0.00011
0
0
1
0
false
0.016588
0.005529
0
0.006319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f24d1fa8de76e38eaa7e9f3c6bf8ed0ca08c6aee
80
py
Python
techgig/isdigit.py
suhasksv/py-ground
8c04a845c6b5c4efcb335c8ad59416874e8226d1
[ "Apache-2.0" ]
3
2020-06-01T09:40:41.000Z
2020-08-26T12:09:27.000Z
techgig/isdigit.py
suhasksv/py-ground
8c04a845c6b5c4efcb335c8ad59416874e8226d1
[ "Apache-2.0" ]
null
null
null
techgig/isdigit.py
suhasksv/py-ground
8c04a845c6b5c4efcb335c8ad59416874e8226d1
[ "Apache-2.0" ]
4
2020-07-20T10:38:23.000Z
2020-10-16T08:41:05.000Z
def main(): s = input("") x = s.isdigit() print(x, end="") main()
10
20
0.4375
11
80
3.181818
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.3125
80
7
21
11.428571
0.636364
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f24e4b352e1cc8fe84c1b7868b5ba38485574583
204
py
Python
setup.py
Skellet0r/movie-industry
97bcc9638e6c8e4fed2fe549514a9b8556d3f3ac
[ "MIT" ]
null
null
null
setup.py
Skellet0r/movie-industry
97bcc9638e6c8e4fed2fe549514a9b8556d3f3ac
[ "MIT" ]
null
null
null
setup.py
Skellet0r/movie-industry
97bcc9638e6c8e4fed2fe549514a9b8556d3f3ac
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="src", version="", author="", author_email="", description="", url="", packages=setuptools.find_packages(), install_requires=[], )
17
40
0.607843
18
204
6.722222
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.215686
204
12
41
17
0.75625
0
0
0
0
0
0.014634
0
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
f254bc5574879640dd8bfa92762aa60698f2dffe
68
py
Python
triggercmd_cli/settings.py
GussSoares/triggercmd-cli
d8094bfe4fc815e8a6de664de667e6a5a6dd4888
[ "MIT" ]
8
2021-09-18T11:33:41.000Z
2021-10-07T15:39:19.000Z
triggercmd_cli/settings.py
GussSoares/triggercmd-cli
d8094bfe4fc815e8a6de664de667e6a5a6dd4888
[ "MIT" ]
5
2021-09-22T13:27:59.000Z
2021-10-14T14:24:43.000Z
triggercmd_cli/settings.py
GussSoares/triggercmd-cli
d8094bfe4fc815e8a6de664de667e6a5a6dd4888
[ "MIT" ]
3
2021-09-22T01:46:28.000Z
2021-10-13T22:47:11.000Z
DEFAULT_METHOD="http://" DEFAULT_PORT=9075 DEFAULT_HOST="localhost"
17
24
0.808824
9
68
5.777778
0.777778
0
0
0
0
0
0
0
0
0
0
0.061538
0.044118
68
3
25
22.666667
0.738462
0
0
0
0
0
0.235294
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f256a781f2214f9a2820909fa4b6184f9eef5d83
251
py
Python
app/views.py
imeldawade/News-App
875690aa1948f24717728b3f25de0d870cd3204d
[ "MIT" ]
null
null
null
app/views.py
imeldawade/News-App
875690aa1948f24717728b3f25de0d870cd3204d
[ "MIT" ]
null
null
null
app/views.py
imeldawade/News-App
875690aa1948f24717728b3f25de0d870cd3204d
[ "MIT" ]
null
null
null
from app import app from flask import render_template from .request import get_newss @app.route('/') def index(): items = get_newss('sources') title = 'Top Headlines' return render_template('index.html',title = title,sources=items)
16.733333
68
0.709163
34
251
5.117647
0.558824
0.16092
0
0
0
0
0
0
0
0
0
0
0.179283
251
14
69
17.928571
0.84466
0
0
0
0
0
0.124498
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
f280736a0a9fc0116963136ede754f292cf9a180
205
py
Python
Excel with python.py
MoomenEltelbany/PythonDesafios
aa2f44d3104cf3607f58dc42c2f8fc8023f128de
[ "MIT" ]
null
null
null
Excel with python.py
MoomenEltelbany/PythonDesafios
aa2f44d3104cf3607f58dc42c2f8fc8023f128de
[ "MIT" ]
null
null
null
Excel with python.py
MoomenEltelbany/PythonDesafios
aa2f44d3104cf3607f58dc42c2f8fc8023f128de
[ "MIT" ]
null
null
null
from openpyxl import load_workbook, Workbook from openpyxl.utils import get_column_letter wb = load_workbook('Myname.xlsx') ws = wb.active ws.move_range('C1:D11', rows=2, cols=2) wb.save('Myname.xlsx')
20.5
44
0.765854
34
205
4.470588
0.647059
0.157895
0
0
0
0
0
0
0
0
0
0.027322
0.107317
205
9
45
22.777778
0.803279
0
0
0
0
0
0.137255
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
f28c63a1ec57ebc651a4aaa42a41f6704cfe49ac
345
py
Python
app/commands/log/abort.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-06-22T21:25:52.000Z
2020-06-22T21:25:52.000Z
app/commands/log/abort.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-05-21T02:46:24.000Z
2020-05-25T07:19:23.000Z
app/commands/log/abort.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
null
null
null
from systems.commands.index import Command class Abort(Command('log.abort')): def exec(self): def abort_command(log_key): self.publish_abort(log_key) self.wait_for_tasks(log_key) self.success("Task {} successfully aborted".format(log_key)) self.run_list(self.log_names, abort_command)
26.538462
72
0.666667
46
345
4.76087
0.543478
0.109589
0.182648
0
0
0
0
0
0
0
0
0
0.226087
345
12
73
28.75
0.820225
0
0
0
0
0
0.107246
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
f28feefaa6baea2ad8df4b1800275bc1eb07c5b1
5,941
py
Python
pykelihood/parameters.py
OpheliaMiralles/pykelihood
6e0f2a733475c276b7ae67d2cb59521cca7df022
[ "MIT" ]
5
2020-11-23T08:06:51.000Z
2021-09-09T17:00:02.000Z
pykelihood/parameters.py
OpheliaMiralles/pykelihood
6e0f2a733475c276b7ae67d2cb59521cca7df022
[ "MIT" ]
4
2020-11-18T11:43:37.000Z
2021-04-20T16:30:50.000Z
pykelihood/parameters.py
OpheliaMiralles/pykelihood
6e0f2a733475c276b7ae67d2cb59521cca7df022
[ "MIT" ]
4
2020-11-17T14:27:18.000Z
2021-03-30T16:11:11.000Z
from __future__ import annotations from collections import ChainMap from typing import Any, Callable, Dict, Iterable, Tuple, TypeVar, Union from pykelihood.utils import flatten_dict _T = TypeVar("_T") def ensure_parametrized(x: Any, constant=False) -> Parametrized: if isinstance(x, Parametrized): return x cls = ConstantParameter if constant else Parameter return cls(x) class Parametrized(object): params_names: Tuple[str] def __init__(self, *params: Union[Parametrized, Any]): self._params = tuple(ensure_parametrized(p) for p in params) def _build_instance(self, **new_params): return type(self)(**new_params) @property def params(self) -> Tuple[Parametrized]: return self._params @property def param_dict(self) -> Dict[str, Parametrized]: return dict(zip(self.params_names, self.params)) @property def flattened_params(self) -> Tuple[Parametrized]: return tuple(p_ for p in self.params for p_ in p.params) @property def flattened_param_dict(self) -> Dict[str, Parametrized]: p_dict = flatten_dict(self._flattened_param_dict_helper()) return {"_".join(names): value for names, value in p_dict.items()} def _flattened_param_dict_helper(self): return { name: value._flattened_param_dict_helper() for name, value in self.param_dict.items() } @property def optimisation_params(self) -> Tuple[Parametrized]: return tuple(p_ for p in self.params for p_ in p.optimisation_params) @property def optimisation_param_dict(self) -> Dict[str, Parametrized]: p_dict = flatten_dict(self._optimisation_param_dict_helper()) return {"_".join(names): value for names, value in p_dict.items()} def _optimisation_param_dict_helper(self): return { name: value._optimisation_param_dict_helper() for name, value in self.param_dict.items() if not isinstance(value, ConstantParameter) } def __call__(self, *args, **kwargs): raise NotImplementedError("A generic Parametrized object has no value!") def __repr__(self): args = [f"{a}={v!r}" for a, v in zip(self.params_names, self._params)] return f"{type(self).__name__}({', '.join(args)})" def with_params(self, params: Iterable = None, **named_params): if params is not None and named_params: raise ValueError("Please only use one way to provide values to parameters.") if params is not None: params = iter(params) new_params = {} for p_name, param in self.param_dict.items(): new_params[p_name] = param.with_params(params) else: new_params = {} for p_name, param in self.param_dict.items(): this_param_values = {} for name, value in named_params.items(): # check if this value is for this parameter if name == p_name: new_params[name] = value # no need to look further break elif name.startswith(p_name + "_"): remaining = name[len(p_name + "_") :] this_param_values[remaining] = value else: # nobreak if this_param_values: new_params[p_name] = param.with_params(**this_param_values) # use current values if none were given new_params = ChainMap(new_params, self.param_dict) return self._build_instance(**new_params) def __getattr__(self, param: str) -> Parametrized: try: idx = self.params_names.index(param) except ValueError: raise AttributeError(f"No parameter {param} in {type(self).__name__}") return self._params[idx] class Parameter(Parametrized): def __init__(self, value=0.0): self._value = value @property def params(self): return (self,) def _flattened_param_dict_helper(self): return self @property def optimisation_params(self): return (self,) def _optimisation_param_dict_helper(self): return self def with_params(self, params): param = next(iter(params)) if isinstance(param, ConstantParameter): return param return type(self)(param) @property def value(self): return self._value def __call__(self): return self.value def __repr__(self): return repr(self.value) def __getattr__(self, item): raise AttributeError def __float__(self): return float(self.value) class ConstantParameter(Parameter): def with_params(self, params): return self @property def optimisation_params(self): # do not show up in the params return () class ParametrizedFunction(Parametrized): def __init__(self, f: Callable, *, fname=None, **params: Parametrized): super(ParametrizedFunction, self).__init__(*params.values()) self.params_names = tuple(params.keys()) self.f = f self.fname = fname or f.__qualname__ def __call__(self, *args, **kwargs): param_values = {p_name: p() for p_name, p in self.param_dict.items()} return self.f(*args, **kwargs, **param_values) def __getattr__(self, param): try: return super(ParametrizedFunction, self).__getattr__(param) except AttributeError: raise AttributeError(f"No parameter {param} in {self.fname}") def __repr__(self): args = [f"{a}={v!r}" for a, v in zip(self.params_names, self._params)] return f"{self.fname}({', '.join(args)})" def _build_instance(self, **new_params): return type(self)(self.f, fname=self.fname, **new_params)
32.464481
88
0.622454
713
5,941
4.904628
0.1669
0.048613
0.034315
0.021447
0.422934
0.338576
0.320275
0.21161
0.21161
0.187017
0
0.000465
0.276553
5,941
182
89
32.642857
0.813169
0.023565
0
0.338235
0
0
0.047455
0.007938
0
0
0
0
0
1
0.242647
false
0
0.029412
0.132353
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
f29894ec723a39697b6fec7707f3b25f588b9553
179
py
Python
iterators-generators/map_generator_demo.py
Minkov/python-oop
db9651eef374c0e74c32cb6f2bf07c734cc1d051
[ "MIT" ]
3
2021-11-16T04:52:53.000Z
2022-02-07T20:28:41.000Z
iterators-generators/map_generator_demo.py
Minkov/python-oop
db9651eef374c0e74c32cb6f2bf07c734cc1d051
[ "MIT" ]
null
null
null
iterators-generators/map_generator_demo.py
Minkov/python-oop
db9651eef374c0e74c32cb6f2bf07c734cc1d051
[ "MIT" ]
1
2021-12-07T07:04:38.000Z
2021-12-07T07:04:38.000Z
ll = [1, 2, 3] def increment(x): print(f'Old value: {x}') return x + 1 print(map(increment, ll)) for x in map(increment, ll): print(x) iter = map(increment, ll)
11.933333
28
0.581006
31
179
3.354839
0.516129
0.346154
0.403846
0
0
0
0
0
0
0
0
0.02963
0.24581
179
14
29
12.785714
0.740741
0
0
0
0
0
0.078212
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.375
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f29b674dfcc20e4e145fa624c3f62ff2adc0b720
5,738
py
Python
ptbaselines/algos/common/distributions.py
KongCDY/baselines_pytorch
26c1a9e7829aad88eb725f79c401fe9d108803bf
[ "MIT" ]
null
null
null
ptbaselines/algos/common/distributions.py
KongCDY/baselines_pytorch
26c1a9e7829aad88eb725f79c401fe9d108803bf
[ "MIT" ]
null
null
null
ptbaselines/algos/common/distributions.py
KongCDY/baselines_pytorch
26c1a9e7829aad88eb725f79c401fe9d108803bf
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import functional as F import torch.distributions as distributions import numpy as np import math from ptbaselines.algos.common.torch_utils import init_weight class Pd(object): """ A particular probability distribution """ def flatparam(self): raise NotImplementedError def mode(self): raise NotImplementedError def neglogp(self, x): # Usually it's easier to define the negative logprob raise NotImplementedError def kl(self, other): raise NotImplementedError def entropy(self): raise NotImplementedError def sample(self): raise NotImplementedError def logp(self, x): return - self.neglogp(x) def get_shape(self): return self.flatparam().shape @property def shape(self): return self.get_shape() def __getitem__(self, idx): return self.__class__(self.flatparam()[idx]) class PdType(nn.Module): """ Parametrized family of probability distributions """ def __init__(self): super(PdType, self).__init__() def pdclass(self): raise NotImplementedError def pdfromflat(self, flat): return self.pdclass()(flat) def pdfromlatent(self, latent_vector, init_scale, init_bias): raise NotImplementedError def param_shape(self): raise NotImplementedError def sample_shape(self): raise NotImplementedError def sample_dtype(self): raise NotImplementedError # def __eq__(self, other): # return (type(self) == type(other)) and (self.__dict__ == other.__dict__) class CategoricalPdType(PdType): def __init__(self, in_dim, ncat, init_scale = 1.0, init_bias = 0.0): super(CategoricalPdType, self).__init__() self.in_dim = in_dim self.ncat = ncat self.fc = nn.Linear(in_dim, ncat) init_weight(self.fc, init_scale, init_bias) def pdclass(self): return CategoricalPd def pdfromlatent(self, latent_vector): pdparam = self.fc(latent_vector) return self.pdfromflat(pdparam), pdparam def param_shape(self): return [self.ncat] def sample_shape(self): return [] def sample_dtype(self): return torch.int32 class DiagGaussianPdType(PdType): def __init__(self, in_dim, size, logstd = 0.0, init_scale = 1.0, init_bias = 0.0): super(DiagGaussianPdType, self).__init__() self.in_dim = in_dim self.size = size self.fc = nn.Linear(in_dim, size) self.logstd = torch.Tensor([[logstd]*size]) # first dim for batch init_weight(self.fc, init_scale, init_bias) def pdclass(self): return DiagGaussianPd def pdfromlatent(self, latent_vector): mean = self.fc(latent_vector) return self.pdfromflat([mean, self.logstd]), mean def param_shape(self): return [2*self.size] def sample_shape(self): return [self.size] def sample_dtype(self): return torch.float32 class CategoricalPd(Pd): def __init__(self, logits): self.logits = logits self._m = distributions.Categorical(F.softmax(logits, -1)) def flatparam(self): return self.logits def mode(self): return torch.argmax(self.logits, axis=-1) @property def mean(self): return F.softmax(self.logits) def neglogp(self, x): return -self._m.log_prob(x) def kl(self, other): a0 = self.logits - self.logits.max(dim=-1, keepdim=True)[0] a1 = other.logits - other.logits.max(dim=-1, keepdim=True)[0] ea0 = torch.exp(a0) ea1 = torch.exp(a1) z0 = ea0.sum(dim=-1, keepdim=True) z1 = ea1.sum(dim=-1, keepdim=True) p0 = ea0 / z0 return torch.sum(p0 * (a0 - torch.log(z0) - a1 + torch.log(z1)), dim=-1) def entropy(self): a0 = self.logits - self.logits.max(dim=-1, keepdim=True)[0] ea0 = torch.exp(a0) z0 = ea0.sum(dim=-1, keepdim=True) p0 = ea0 / z0 return torch.sum(p0 * (torch.log(z0) - a0), dim=-1) def sample(self): return self._m.sample() @classmethod def fromflat(cls, flat): return cls(flat) class DiagGaussianPd(Pd): def __init__(self, params): self.mean, self.logstd = params self.std = torch.exp(self.logstd) self._m = distributions.Normal(self.mean, self.std) def flatparam(self): return torch.cat([self.mean, self.std.expand(self.mean.size())], dim = -1) def mode(self): return self.mean def neglogp(self, x): return -self._m.log_prob(x).sum(dim = 1) def kl(self, other): assert isinstance(other, DiagGaussianPd) return (other.logstd - self.logstd + (self.std**2 + (self.mean - other.mean)**2) / (2.0 * other.std**2) - 0.5).sum(dim = -1) def entropy(self): return (self.logstd + 0.5 * math.log(2.0 * math.pi * math.e)).sum(dim = -1) def sample(self): return self._m.sample() @classmethod def fromflat(cls, flat): return cls(flat) def make_pdtype(in_dim, ac_space, init_scale = 1.0, init_bias = 0.0): from gym import spaces if isinstance(ac_space, spaces.Box): assert len(ac_space.shape) == 1 return DiagGaussianPdType(in_dim, ac_space.shape[0], init_scale, init_bias) elif isinstance(ac_space, spaces.Discrete): return CategoricalPdType(in_dim, ac_space.n, init_scale, init_bias) elif isinstance(ac_space, spaces.MultiDiscrete): return MultiCategoricalPdType(ac_space.nvec) elif isinstance(ac_space, spaces.MultiBinary): return BernoulliPdType(ac_space.n) else: raise NotImplementedError
33.555556
132
0.638899
754
5,738
4.70557
0.190981
0.050733
0.083709
0.069899
0.385851
0.304961
0.241826
0.212514
0.191939
0.15248
0
0.018014
0.245382
5,738
170
133
33.752941
0.801386
0.044615
0
0.445946
0
0
0
0
0
0
0
0
0.013514
1
0.317568
false
0
0.054054
0.168919
0.641892
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
f2a455ba40f5f20beb6e070b74e11c87b1b0609c
8,419
py
Python
15.1-Oxygen/oxygen.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
1
2020-09-27T23:02:46.000Z
2020-09-27T23:02:46.000Z
15.1-Oxygen/oxygen.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
null
null
null
15.1-Oxygen/oxygen.py
Kehvarl/AdventOfCode2019
f72cfeefdfbde365bc9a5b722d5875d556379cf2
[ "MIT" ]
1
2019-12-09T17:10:48.000Z
2019-12-09T17:10:48.000Z
from IntCode import IntCode prog = [3, 1033, 1008, 1033, 1, 1032, 1005, 1032, 31, 1008, 1033, 2, 1032, 1005, 1032, 58, 1008, 1033, 3, 1032, 1005, 1032, 81, 1008, 1033, 4, 1032, 1005, 1032, 104, 99, 101, 0, 1034, 1039, 102, 1, 1036, 1041, 1001, 1035, -1, 1040, 1008, 1038, 0, 1043, 102, -1, 1043, 1032, 1, 1037, 1032, 1042, 1106, 0, 124, 101, 0, 1034, 1039, 101, 0, 1036, 1041, 1001, 1035, 1, 1040, 1008, 1038, 0, 1043, 1, 1037, 1038, 1042, 1105, 1, 124, 1001, 1034, -1, 1039, 1008, 1036, 0, 1041, 1002, 1035, 1, 1040, 1001, 1038, 0, 1043, 1001, 1037, 0, 1042, 1106, 0, 124, 1001, 1034, 1, 1039, 1008, 1036, 0, 1041, 102, 1, 1035, 1040, 1002, 1038, 1, 1043, 102, 1, 1037, 1042, 1006, 1039, 217, 1006, 1040, 217, 1008, 1039, 40, 1032, 1005, 1032, 217, 1008, 1040, 40, 1032, 1005, 1032, 217, 1008, 1039, 9, 1032, 1006, 1032, 165, 1008, 1040, 33, 1032, 1006, 1032, 165, 1101, 2, 0, 1044, 1106, 0, 224, 2, 1041, 1043, 1032, 1006, 1032, 179, 1102, 1, 1, 1044, 1106, 0, 224, 1, 1041, 1043, 1032, 1006, 1032, 217, 1, 1042, 1043, 1032, 1001, 1032, -1, 1032, 1002, 1032, 39, 1032, 1, 1032, 1039, 1032, 101, -1, 1032, 1032, 101, 252, 1032, 211, 1007, 0, 53, 1044, 1106, 0, 224, 1101, 0, 0, 1044, 1106, 0, 224, 1006, 1044, 247, 1001, 1039, 0, 1034, 101, 0, 1040, 1035, 102, 1, 1041, 1036, 101, 0, 1043, 1038, 101, 0, 1042, 1037, 4, 1044, 1105, 1, 0, 64, 32, 22, 30, 60, 6, 82, 30, 34, 77, 7, 15, 17, 32, 43, 96, 51, 43, 27, 74, 39, 14, 10, 70, 32, 20, 59, 35, 98, 3, 81, 47, 40, 23, 65, 16, 1, 82, 35, 35, 44, 76, 93, 55, 6, 40, 65, 15, 62, 62, 67, 7, 72, 21, 92, 85, 54, 71, 42, 84, 80, 30, 64, 88, 50, 90, 16, 34, 63, 20, 88, 24, 64, 86, 11, 64, 20, 44, 23, 63, 11, 26, 10, 84, 75, 13, 93, 39, 16, 67, 2, 91, 97, 22, 86, 40, 69, 11, 40, 58, 93, 22, 82, 30, 24, 40, 58, 26, 75, 70, 52, 20, 27, 95, 57, 23, 69, 9, 30, 82, 87, 70, 42, 32, 90, 67, 36, 92, 41, 97, 72, 24, 3, 36, 60, 96, 5, 62, 13, 74, 27, 21, 60, 58, 90, 17, 49, 27, 70, 29, 59, 48, 72, 30, 35, 11, 21, 60, 99, 35, 37, 71, 9, 84, 3, 22, 74, 20, 48, 70, 19, 58, 65, 22, 14, 72, 15, 7, 31, 77, 61, 5, 31, 60, 24, 80, 33, 58, 49, 78, 80, 37, 79, 66, 37, 83, 4, 21, 50, 65, 96, 23, 67, 89, 44, 17, 58, 60, 41, 96, 96, 39, 27, 62, 84, 18, 74, 38, 56, 9, 72, 70, 32, 62, 95, 6, 87, 51, 96, 36, 4, 3, 79, 21, 21, 31, 66, 93, 13, 10, 77, 43, 52, 68, 66, 47, 42, 55, 57, 23, 60, 45, 63, 3, 86, 96, 29, 70, 81, 31, 3, 48, 38, 91, 34, 69, 85, 18, 95, 93, 96, 85, 15, 38, 80, 35, 17, 98, 92, 14, 57, 60, 25, 46, 63, 60, 16, 58, 25, 48, 73, 59, 40, 6, 72, 46, 91, 39, 22, 63, 79, 58, 67, 84, 33, 52, 78, 52, 26, 21, 61, 49, 78, 77, 5, 95, 75, 20, 56, 30, 43, 67, 75, 33, 84, 10, 14, 60, 21, 98, 14, 31, 81, 97, 49, 64, 19, 69, 44, 3, 68, 2, 66, 20, 69, 48, 81, 96, 22, 56, 22, 25, 27, 60, 59, 36, 10, 45, 81, 39, 46, 97, 54, 49, 42, 78, 89, 26, 93, 55, 14, 96, 48, 48, 96, 57, 51, 82, 94, 23, 46, 64, 20, 10, 56, 19, 63, 41, 77, 17, 26, 68, 47, 37, 97, 84, 6, 93, 26, 99, 1, 11, 84, 12, 79, 74, 34, 85, 25, 48, 92, 69, 68, 44, 59, 35, 99, 33, 88, 75, 29, 12, 87, 79, 37, 74, 24, 98, 4, 68, 1, 85, 43, 31, 60, 2, 82, 16, 51, 65, 97, 4, 82, 42, 52, 82, 56, 58, 24, 33, 60, 22, 65, 29, 43, 75, 10, 72, 34, 97, 70, 11, 36, 89, 26, 69, 84, 26, 50, 17, 42, 83, 44, 63, 1, 84, 77, 22, 89, 46, 72, 79, 93, 22, 94, 34, 79, 48, 68, 55, 3, 73, 91, 30, 79, 37, 76, 19, 24, 61, 41, 98, 32, 12, 6, 57, 16, 44, 55, 43, 63, 55, 98, 11, 68, 17, 50, 67, 26, 86, 19, 60, 14, 56, 30, 59, 11, 9, 41, 26, 59, 39, 56, 49, 48, 82, 3, 83, 64, 69, 48, 65, 89, 42, 78, 33, 25, 91, 92, 50, 91, 8, 64, 73, 92, 16, 96, 28, 40, 27, 67, 22, 69, 95, 7, 12, 70, 56, 49, 81, 22, 68, 67, 40, 48, 92, 43, 14, 86, 60, 49, 39, 74, 58, 42, 43, 54, 37, 2, 84, 25, 41, 22, 22, 65, 16, 6, 67, 62, 22, 25, 88, 52, 76, 88, 40, 20, 75, 84, 24, 4, 39, 99, 51, 72, 73, 14, 15, 81, 39, 70, 15, 26, 15, 32, 34, 83, 33, 73, 95, 14, 55, 91, 65, 81, 44, 3, 89, 49, 80, 5, 38, 56, 42, 76, 68, 14, 4, 76, 71, 98, 65, 62, 31, 6, 96, 23, 77, 82, 4, 59, 91, 29, 14, 91, 42, 80, 35, 2, 58, 99, 27, 40, 64, 43, 86, 74, 17, 58, 68, 24, 71, 51, 73, 35, 74, 63, 50, 17, 24, 5, 83, 71, 12, 62, 33, 19, 31, 84, 41, 25, 71, 75, 41, 43, 55, 85, 22, 11, 88, 71, 49, 33, 55, 50, 63, 52, 64, 23, 25, 42, 85, 47, 49, 30, 65, 42, 95, 61, 15, 86, 7, 61, 62, 32, 79, 62, 82, 13, 84, 30, 69, 21, 70, 22, 99, 95, 71, 5, 71, 11, 69, 39, 85, 79, 89, 41, 94, 82, 86, 46, 83, 96, 80, 48, 74, 63, 56, 8, 58, 38, 66, 12, 61, 33, 88, 30, 92, 27, 57, 0, 0, 21, 21, 1, 10, 1, 0, 0, 0, 0, 0, 0 ] def grid_to_map(grid, min_x, max_x, min_y, max_y): display_grid = [[" " for _ in range(min_x - 1, max_x + 1)] for _ in range(min_y - 1, max_y + 1)] tiles = ["#", ".", "0", "@"] for pos in grid.keys(): x, y = pos x = x + abs(min_x) y = y + abs(min_y) display_grid[y][x] = tiles[grid[pos]] return display_grid def get_pos(x, y, direction): if direction == 1: y -= 1 elif direction == 2: y += 1 elif direction == 3: x -= 1 elif direction == 4: x += 1 else: print("Invalid direction: {} from {}, {})".format(direction, x, y)) return x, y reverse_direction = {1: 2, 2: 1, 3: 4, 4: 3} droid = IntCode(prog, input_val=[]) droid_direction = 1 grid = {(0, 0): 3} path = [] goal = None droid_x = 0 droid_y = 0 running = True while running: # Try to move droid pos = get_pos(droid_x, droid_y, droid_direction) while pos in grid and droid_direction <= 4: droid_direction += 1 if droid_direction <= 4: pos = get_pos(droid_x, droid_y, droid_direction) if droid_direction == 5 and len(path) > 0: droid_direction = reverse_direction[path[-1]] droid.input_val.append(droid_direction) pos = get_pos(droid_x, droid_y, droid_direction) path = path[:-1] droid.run() droid_x, droid_y = pos continue elif droid_direction == 5 and len(path) == 0: running = False break droid.input_val.append(droid_direction) droid.run() move = droid.output.pop() grid[pos] = move # Did it move? if move > 0: path.append(droid_direction) droid_direction = 1 droid_x, droid_y = pos if move == 2: goal = pos else: droid_direction += 1 if droid_direction > 4: droid_direction = 1 # Try the next direction min_x = 0 min_y = 0 max_x = 0 max_y = 0 for pos in grid.keys(): x, y = pos if x < min_x: min_x = x if x > max_x: max_x = x if y < min_y: min_y = y if y > max_y: max_y = y display_grid = grid_to_map(grid, min_x, max_x, min_y, max_y) print("\n".join(["".join(line) for line in display_grid])) bfs = [[1000 for _ in range(len(display_grid[0]))] for _ in range(len(display_grid))] gx, gy = goal gx = gx + abs(min_x) gy = gy + abs(min_y) sx, sy = (0, 0) sx = sx + abs(min_x) sy = sy + abs(min_y) bfs[gy][gx] = 0 neighbors = [(0, -1), (-1, 0), (1, 0), (0, 1)] """ Use Dijkstra's Algorithm to calculate the movement score towards goals in this map """ changed = True while changed: changed = False for y in range(0, len(display_grid)): for x in range(0, len(display_grid[0])): if not display_grid[y][x] == "#": lowest_neighbor = 1000 for neighbor in neighbors: dx, dy = neighbor tx, ty = x + dx, y + dy if 0 <= tx < len(display_grid[0]) and 0 <= ty < len(display_grid): lowest_neighbor = min(lowest_neighbor, bfs[ty][tx]) if bfs[y][x] > lowest_neighbor + 1: bfs[y][x] = lowest_neighbor + 1 changed = True printable_bfs = [[str(i).zfill(3) if i < 1000 else "###" for i in line] for line in bfs] print("\n".join([" ".join(line) for line in printable_bfs])) print() print(bfs[sy][sx]) max_dist = 0 for y in range(0, len(bfs)): for x in range(0, len(bfs[0])): if bfs[y][x] > max_dist and bfs[y][x] != 1000: max_dist = bfs[y][x] print(max_dist)
43.848958
120
0.515501
1,619
8,419
2.619518
0.136504
0.056119
0.016977
0.014148
0.216694
0.191228
0.118604
0.091252
0.078519
0.02971
0
0.408597
0.300867
8,419
191
121
44.078534
0.311927
0.006295
0
0.137255
0
0
0.005803
0
0
0
0
0
0
1
0.013072
false
0
0.006536
0
0.03268
0.045752
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f2c903a90f0e4f8dcd0c5f62e8ad560b9b87c414
282
py
Python
AcademicDealerBackend/accounts/urls.py
Acciente717/AcademicDealerBackend
8024725f88997fa430fa92e1caa28161ffbb06f6
[ "MIT" ]
5
2019-03-10T06:57:15.000Z
2019-03-17T03:04:40.000Z
AcademicDealerBackend/accounts/urls.py
Acciente717/AcademicDealerBackend
8024725f88997fa430fa92e1caa28161ffbb06f6
[ "MIT" ]
11
2019-05-14T15:13:48.000Z
2019-05-31T15:31:33.000Z
AcademicDealerBackend/accounts/urls.py
Acciente717/AcademicDealerBackend
8024725f88997fa430fa92e1caa28161ffbb06f6
[ "MIT" ]
null
null
null
from django.urls import include, path from django.contrib.auth import views as auth_views from django.urls import reverse_lazy from . import views urlpatterns = [ path('', include('django.contrib.auth.urls')), path('signup/', views.SignUp.as_view(), name='signup'), ]
25.636364
59
0.719858
39
282
5.128205
0.410256
0.15
0.14
0.2
0
0
0
0
0
0
0
0
0.148936
282
10
60
28.2
0.833333
0
0
0
0
0
0.131206
0.085106
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
f2ca4ea78ee4e5982071b5d95d0f46af1abf0c37
908
py
Python
setup.py
scottwoodall/django-devrecargar
98ebd405835a58d6183e70d374c17a38449484dc
[ "MIT" ]
64
2015-12-06T19:01:47.000Z
2019-06-06T20:54:04.000Z
setup.py
scottwoodall/django-devrecargar
98ebd405835a58d6183e70d374c17a38449484dc
[ "MIT" ]
null
null
null
setup.py
scottwoodall/django-devrecargar
98ebd405835a58d6183e70d374c17a38449484dc
[ "MIT" ]
4
2015-12-12T20:36:12.000Z
2020-03-23T12:53:50.000Z
import setuptools setuptools.setup( name="devrecargar", version="0.1.4", url="https://github.com/scottwoodall/django-devrecargar", author="Scott Woodall", author_email="scott.woodall@gmail.com", description=""" A Django app that automatically reloads your browser when a file (py, html, js, css) changes. """, long_description=open('README.md').read(), packages=setuptools.find_packages(), license="MIT", install_requires=['watchdog'], include_package_data=True, classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', ], )
28.375
72
0.621145
92
908
6.065217
0.695652
0.170251
0.224014
0.09319
0
0
0
0
0
0
0
0.012968
0.235683
908
31
73
29.290323
0.791066
0
0
0
0
0
0.540749
0.02533
0
0
0
0
0
1
0
true
0
0.037037
0
0.037037
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
4b395bf6f3ccacfa15a9aa458979d749632b141c
395
py
Python
old/InputLayer.py
praxidike97/neural-network-polyglot
ffc96fb54c3580edbb6e03b5ea122ce04d736459
[ "MIT" ]
1
2019-07-22T08:13:50.000Z
2019-07-22T08:13:50.000Z
old/InputLayer.py
praxidike97/everything-from-scratch
ffc96fb54c3580edbb6e03b5ea122ce04d736459
[ "MIT" ]
null
null
null
old/InputLayer.py
praxidike97/everything-from-scratch
ffc96fb54c3580edbb6e03b5ea122ce04d736459
[ "MIT" ]
null
null
null
import numpy as np class InputLayer(): def __init__(self, number_neurons): self.number_neurons = number_neurons self.stored_output = [] def calc_feed_forward(self, input): self.input = input self.output = input self.stored_output.append(self.output) return np.asarray(self.output) def reset(self): self.stored_output = []
21.944444
46
0.640506
48
395
5.020833
0.4375
0.161826
0.19917
0
0
0
0
0
0
0
0
0
0.265823
395
17
47
23.235294
0.831034
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.083333
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
4b4f748f0f8e49de9877a4b16898ce57f7ad69d9
1,377
py
Python
tests/test_utils.py
hugovk/atoma
7e457345cf8531c55212a61bb150f620b52b204b
[ "MIT" ]
90
2018-03-11T13:07:00.000Z
2022-02-06T13:19:31.000Z
tests/test_utils.py
hugovk/atoma
7e457345cf8531c55212a61bb150f620b52b204b
[ "MIT" ]
14
2018-04-11T22:42:38.000Z
2021-10-19T13:50:22.000Z
tests/test_utils.py
hugovk/atoma
7e457345cf8531c55212a61bb150f620b52b204b
[ "MIT" ]
18
2018-03-11T13:07:21.000Z
2022-02-24T04:06:33.000Z
from datetime import datetime, timedelta, timezone from dateutil.tz import tzoffset from atoma.utils import try_parse_date, try_parse_length def test_try_parse_date(): expected = datetime( 2018, 11, 30, 17, 0, tzinfo=timezone(timedelta(seconds=32400)) ) assert try_parse_date('Fri, 30 Nov 2018 17:00:00 +0900') == expected assert try_parse_date('Fri, 30 Nov 2018 17:00:00:00 +0900') is None expected = datetime(2018, 11, 30, 17, 0, tzinfo=timezone.utc) assert try_parse_date('Fri, 30 Nov 2018 17:00:00 GMT') == expected assert try_parse_date('Fri, 30 Nov 2018 17:00:00 UT') == expected assert try_parse_date('Fri, 30 Nov 2018 17:00:00 Z') == expected assert try_parse_date('Fri, 30 Nov 2018 17:00:00') == expected expected = datetime(2018, 11, 30, 17, 0, tzinfo=tzoffset('PST', -28800)) assert try_parse_date('Fri, 30 Nov 2018 17:00:00 PST') == expected expected = datetime(2018, 10, 10, 18, 0, tzinfo=timezone.utc) assert try_parse_date('Web, 10 Oct 2018 18:00:00 +0000') == expected def test_try_parse_length(): assert try_parse_length(10) == 10 assert try_parse_length(545332) == 545332 assert try_parse_length(10.5633) == 10 assert try_parse_length('10') == 10 assert try_parse_length('foo') is None assert try_parse_length(-1) is None assert try_parse_length(None) is None
36.236842
76
0.699346
225
1,377
4.102222
0.208889
0.16468
0.227519
0.156013
0.652221
0.626219
0.569881
0.569881
0.491874
0.403034
0
0.171556
0.183007
1,377
37
77
37.216216
0.648889
0
0
0
0
0
0.175744
0
0
0
0
0
0.576923
1
0.076923
false
0
0.115385
0
0.192308
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
4b5203aa9548f8aa6c8b6034a4fdd25168199a17
153
py
Python
CURSO UDEMY/TEORICAS/10.py
CamilliCerutti/Exercicios-de-Python-curso-em-video
6571a5c5cb7b4398352a7778c55588c0c16f13c2
[ "MIT" ]
null
null
null
CURSO UDEMY/TEORICAS/10.py
CamilliCerutti/Exercicios-de-Python-curso-em-video
6571a5c5cb7b4398352a7778c55588c0c16f13c2
[ "MIT" ]
null
null
null
CURSO UDEMY/TEORICAS/10.py
CamilliCerutti/Exercicios-de-Python-curso-em-video
6571a5c5cb7b4398352a7778c55588c0c16f13c2
[ "MIT" ]
null
null
null
lista = [['edu', 'joao', 'luizr'], ['maria', ' aline', 'joana'],['helena', 'ed', 'lu']] enumerada = list(enumerate(lista)) print(enumerada[1][1][2][0])
30.6
87
0.568627
20
153
4.35
0.85
0
0
0
0
0
0
0
0
0
0
0.029197
0.104575
153
5
88
30.6
0.605839
0
0
0
0
0
0.246753
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4b56a24a913f0729b849538496b4d34de2615458
669
py
Python
salientdetect/__init__.py
shunsukeaihara/salientdetect
5e1736ccf572f3b9a10e17ee02585314fad51148
[ "MIT" ]
7
2015-10-16T09:16:40.000Z
2021-04-22T08:43:28.000Z
salientdetect/__init__.py
shunsukeaihara/salientdetect
5e1736ccf572f3b9a10e17ee02585314fad51148
[ "MIT" ]
3
2017-02-26T14:32:07.000Z
2021-12-18T05:05:55.000Z
salientdetect/__init__.py
shunsukeaihara/salientdetect
5e1736ccf572f3b9a10e17ee02585314fad51148
[ "MIT" ]
2
2016-01-04T09:47:58.000Z
2017-09-28T11:12:36.000Z
# -*- coding: utf-8 -*- import numpy as np from skimage.util import img_as_float from skimage.segmentation import slic from skimage.io import imread import os from salientdetect.detector import calc_saliency_score def _load_dist_mat(): npy_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "color_dist.npy") return np.load(npy_path) DIST_MAT = _load_dist_mat() def saliency_score(path): img = imread(path) return saliency_score_from_ndarry(img) def saliency_score_from_ndarry(img): segment_labels = slic(img_as_float(img), n_segments=20, compactness=20, sigma=2.0) return calc_saliency_score(img, segment_labels, DIST_MAT)
25.730769
89
0.768311
105
669
4.580952
0.419048
0.135135
0.04158
0.095634
0.108108
0
0
0
0
0
0
0.012069
0.133034
669
25
90
26.76
0.817241
0.03139
0
0
0
0
0.021705
0
0
0
0
0
0
1
0.1875
false
0
0.375
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4b68c1d367e2c81452f0de9d84b1d117db4213af
1,898
py
Python
leetcode/341.py
zi-NaN/algorithm_exercise
817916a62774145fe6387b715f76c5badbf99197
[ "MIT" ]
null
null
null
leetcode/341.py
zi-NaN/algorithm_exercise
817916a62774145fe6387b715f76c5badbf99197
[ "MIT" ]
null
null
null
leetcode/341.py
zi-NaN/algorithm_exercise
817916a62774145fe6387b715f76c5badbf99197
[ "MIT" ]
1
2018-11-21T05:14:07.000Z
2018-11-21T05:14:07.000Z
""" * Author: ZHAO Zinan * Created: 01/25/2019 341. Flatten Nested List Iterator """ # """ # This is the interface that allows for creating nested lists. # You should not implement it, or speculate about its implementation # """ #class NestedInteger(object): # def isInteger(self): # """ # @return True if this NestedInteger holds a single integer, rather than a nested list. # :rtype bool # """ # # def getInteger(self): # """ # @return the single integer that this NestedInteger holds, if it holds a single integer # Return None if this NestedInteger holds a nested list # :rtype int # """ # # def getList(self): # """ # @return the nested list that this NestedInteger holds, if it holds a nested list # Return None if this NestedInteger holds a single integer # :rtype List[NestedInteger] # """ def flatten(nestedList): result = [] if len(nestedList) == 0: return [] for ele in nestedList: if ele.isInteger(): result.append(ele) else: result.extend(flatten(ele.getList())) return result class NestedIterator(object): def __init__(self, nestedList): """ Initialize your data structure here. :type nestedList: List[NestedInteger] """ self.nestedList = flatten(nestedList) def next(self): """ :rtype: int """ return self.nestedList.pop(0) def hasNext(self): """ :rtype: bool """ return len(self.nestedList) != 0 # Your NestedIterator object will be instantiated and called as such: # i, v = NestedIterator(nestedList), [] # while i.hasNext(): v.append(i.next())
28.328358
96
0.554795
199
1,898
5.271357
0.41206
0.047664
0.104862
0.068637
0.183985
0.183985
0.183985
0.068637
0
0
0
0.011254
0.344573
1,898
67
97
28.328358
0.831994
0.577977
0
0
0
0
0
0
0
0
0
0
0
1
0.235294
false
0
0
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4b75a54ea373aadd53d2a1bf72c9240f8822c262
500
py
Python
twtech/config.py
jianboy/ServerManager
da3e81c30591770927f2cbfe56797732a488446d
[ "Apache-2.0" ]
null
null
null
twtech/config.py
jianboy/ServerManager
da3e81c30591770927f2cbfe56797732a488446d
[ "Apache-2.0" ]
null
null
null
twtech/config.py
jianboy/ServerManager
da3e81c30591770927f2cbfe56797732a488446d
[ "Apache-2.0" ]
2
2018-07-14T03:43:45.000Z
2021-12-30T06:32:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' @Auther :liuyuqi.gov@msn.cn @Time :2018/7/7 3:04 @File :config.py ''' from configparser import ConfigParser cf = ConfigParser() config_path = "../conf/config.ini" section_name = "data_file_name" cf.read(config_path) class Config(): def __init__(self): pass def getConfig(self): return self def setConfig(self, db_mysql, sysconfig, file): pass def setConfigByDB(self, db_mysql): self.db_mysql = ""
18.518519
51
0.646
68
500
4.573529
0.632353
0.057878
0.106109
0
0
0
0
0
0
0
0
0.025253
0.208
500
27
52
18.518519
0.760101
0.216
0
0.142857
0
0
0.083333
0
0
0
0
0
0
1
0.285714
false
0.142857
0.071429
0.071429
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
4b75c39edd2025426e3d8b78774568d0f7de3f08
412
py
Python
01_basic/exercise_028.py
sideroff/python-exercises
6a9cc55735d977a71697204c734b3ade84a0c4fd
[ "MIT" ]
null
null
null
01_basic/exercise_028.py
sideroff/python-exercises
6a9cc55735d977a71697204c734b3ade84a0c4fd
[ "MIT" ]
4
2020-03-24T18:00:07.000Z
2021-06-02T00:51:22.000Z
01_basic/exercise_028.py
sideroff/python-exercises
6a9cc55735d977a71697204c734b3ade84a0c4fd
[ "MIT" ]
null
null
null
numbers = [ 386, 462, 47, 418, 907, 344, 236, 375, 823, 566, 597, 978, 328, 615, 953, 345, 399, 162, 758, 219, 918, 237, 412, 566, 826, 248, 866, 950, 626, 949, 687, 217, 815, 67, 104, 58, 512, 24, 892, 894, 767, 553, 81, 379, 843, 831, 445, 742, 717, 958,743, 527 ] for number in numbers: if number is 237: print("Number 237 reached. Stopping") break print(number)
34.333333
110
0.567961
69
412
3.391304
0.884058
0.094017
0
0
0
0
0
0
0
0
0
0.52862
0.279126
412
12
111
34.333333
0.259259
0
0
0
0
0
0.067797
0
0
0
0
0
0
1
0
false
0
0
0
0
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4b793a50406de5f0f5a33aea90a7308840892487
375
py
Python
satchmo/discount/admin.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
1
2016-05-09T12:21:04.000Z
2016-05-09T12:21:04.000Z
satchmo/discount/admin.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
satchmo/discount/admin.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
from satchmo.discount.models import Discount from django.contrib import admin from django.utils.translation import get_language, ugettext_lazy as _ class DiscountOptions(admin.ModelAdmin): list_display=('site', 'description','active') list_display_links = ('description',) filter_horizontal = ('validProducts',) admin.site.register(Discount, DiscountOptions)
28.846154
69
0.784
42
375
6.833333
0.666667
0.069686
0
0
0
0
0
0
0
0
0
0
0.114667
375
12
70
31.25
0.864458
0
0
0
0
0
0.120321
0
0
0
0
0
0
1
0
false
0
0.375
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4b81324c86a509d33831b6d383e658f1e93c2e99
166
py
Python
src/pipx/emojies.py
alexef/pipx
4db161a6295df33aee82cba4242d27ebb02ca35b
[ "MIT" ]
1
2020-10-29T16:47:28.000Z
2020-10-29T16:47:28.000Z
src/pipx/emojies.py
alexef/pipx
4db161a6295df33aee82cba4242d27ebb02ca35b
[ "MIT" ]
null
null
null
src/pipx/emojies.py
alexef/pipx
4db161a6295df33aee82cba4242d27ebb02ca35b
[ "MIT" ]
null
null
null
from pipx.constants import emoji_support if emoji_support: stars = "✨ 🌟 ✨" hazard = "⚠️" sleep = "😴" else: stars = "" hazard = "" sleep = ""
15.090909
40
0.524096
21
166
4.333333
0.714286
0.263736
0
0
0
0
0
0
0
0
0
0
0.313253
166
10
41
16.6
0.745614
0
0
0
0
0
0.048193
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
298df0ba8ef53e00d0153aa50a04eab3788a7437
30,269
py
Python
keimpx.py
BuloZB/keimpx
2df1eb21be5a80e91a5489c82676f170ad1781cf
[ "Apache-1.1" ]
1
2019-06-26T17:23:29.000Z
2019-06-26T17:23:29.000Z
keimpx.py
BuloZB/keimpx
2df1eb21be5a80e91a5489c82676f170ad1781cf
[ "Apache-1.1" ]
null
null
null
keimpx.py
BuloZB/keimpx
2df1eb21be5a80e91a5489c82676f170ad1781cf
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python # -*- coding: iso-8859-15 -*- # -*- Mode: python -*- ''' keimpx is an open source tool, released under a modified version of Apache License 1.1. It is developed in Python using CORE Security Technologies's Impacket library, http://code.google.com/p/impacket/. It can be used to quickly check for the usefulness of credentials across a network over SMB. Homepage: https://inquisb.github.com/keimpx Usage: https://github.com/inquisb/keimpx#usage Examples: https://github.com/inquisb/keimpx/wiki/Examples Frequently Asked Questions: https://github.com/inquisb/keimpx/wiki/FAQ Contributors: https://github.com/inquisb/keimpx#contributors License: I provide this software under a slightly modified version of the Apache Software License. The only changes to the document were the replacement of 'Apache' with 'keimpx' and 'Apache Software Foundation' with 'Bernardo Damele A. G.'. Feel free to compare the resulting document to the official Apache license. The `Apache Software License' is an Open Source Initiative Approved License. The Apache Software License, Version 1.1 Modifications by Bernardo Damele A. G. (see above) Copyright (c) 2009-2013 Bernardo Damele A. G. <bernardo.damele@gmail.com> All rights reserved. This product includes software developed by CORE Security Technologies (http://www.coresecurity.com/). THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ''' __author__ = 'Bernardo Damele A. G. <bernardo.damele@gmail.com>' __version__ = '0.3-dev' import os import re from lib.common import * from lib.interactiveshell import InteractiveShell from lib.smbshell import SMBShell added_credentials = set() added_targets = set() conf = {} credentials = [] domains = [] pool_thread = None successes = 0 targets = [] commands = [] stop_threads = [False] if hasattr(sys, 'frozen'): keimpx_path = os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding())) else: keimpx_path = os.path.dirname(os.path.realpath(__file__)) class test_login(Thread): def __init__(self, target): Thread.__init__(self) self.__target = target self.__dstip = self.__target.getHost() self.__dstport = self.__target.getPort() self.__target_id = self.__target.getIdentity() self.__destfile = '*SMBSERVER' if self.__dstport == 139 else self.__dstip self.__srcfile = conf.name self.__timeout = 3 def connect(self): self.smb = SMBConnection(self.__destfile, self.__dstip, self.__srcfile, self.__dstport, self.__timeout) def login(self, user, password, lmhash, nthash, domain): self.smb.login(user, password, domain, lmhash, nthash) def logoff(self): self.smb.logoff() def check_admin(self): try: self.__trans = transport.SMBTransport(dstip=self.__dstip, dstport=self.__dstport, filename='svcctl', smb_connection=self.smb) self.__trans.connect() self.__dce = self.__trans.get_dce_rpc() self.__dce.bind(scmr.MSRPC_UUID_SCMR) self.__resp = scmr.hROpenSCManagerW(self.__dce, dwDesiredAccess=scmr.SC_MANAGER_CREATE_SERVICE) self.__mgr_handle = self.__resp['lpScHandle'] scmr.hRCloseServiceHandle(self.__dce, self.__mgr_handle) self.__dce.disconnect() return True except rpcrt.DCERPCException, e: pass except Exception, e: logger.error('Check admin error: %s' % str(e)) return False def run(self): global pool_thread global successes try: logger.info('Assessing host %s' % self.__target_id) for credential in credentials: user, password, lmhash, nthash = credential.getCredentials() if password != '' or ( password == '' and lmhash == '' and nthash == ''): password_str = password or 'BLANK' elif lmhash != '' and nthash != '': password_str = '%s:%s' % (lmhash, nthash) for domain in domains: if stop_threads[0]: break status = False error_code = None is_admin = None if domain: user_str = '%s\%s' % (domain, user) else: user_str = user try: self.connect() self.login(user, password, lmhash, nthash, domain) if self.smb.isGuestSession() > 0: logger.warn('%s allows guest sessions with any credentials, skipping further login attempts' % self.__target_id) return else: is_admin = self.check_admin() if self.smb.getServerDomain().upper() != domain.upper() and self.smb.getServerName().upper() != domain.upper(): domain = '' user_str = user logger.info('Successful login for %s with %s on %s %s' % (user_str, password_str, self.__target_id, "(admin user)" if is_admin else "")) self.logoff() status = True successes += 1 except SessionError, e: logger.debug('Failed login for %s with %s on %s %s' % (user_str, password_str, self.__target_id, e.getErrorString())) error_code = e.getErrorCode() credential.addTarget(self.__dstip, self.__dstport, domain, status, error_code, is_admin) self.__target.addCredential(user, password, lmhash, nthash, domain, status, error_code, is_admin) if status is True: break logger.info('Assessment on host %s finished' % self.__target.getIdentity()) except (socket.error, socket.herror, socket.gaierror, socket.timeout, NetBIOSTimeout), e: if not stop_threads[0]: logger.warn('Connection to host %s failed (%s)' % (self.__target.getIdentity(), str(e))) pool_thread.release() class CredentialsTarget: def __init__(self, host, port, domain, status, error_code, is_admin): self.host = host self.port = port self.domain = domain self.status = status self.error_code = error_code self.is_admin = is_admin def getHost(self): return self.host def getPort(self): return self.port def getStatus(self): return self.status def isAdmin(self): return self.is_admin def getIdentity(self): if self.domain: return '%s:%s@%s %s' % (self.host, self.port, self.domain, '(admin user)' if self.isAdmin() else '') else: return '%s:%s %s' % (self.host, self.port, '(admin user)' if self.isAdmin() else '') class Credentials: def __init__(self, user, password='', lmhash='', nthash=''): self.user = user self.password = password self.lmhash = lmhash self.nthash = nthash # All targets where these credentials pair have been tested # List of CredentialsTarget() objects self.tested_targets = [] def getUser(self): return self.user def getPassword(self): return self.password def getLMhash(self): return self.lmhash def getNThash(self): return self.nthash def getIdentity(self): if self.lmhash != '' and self.nthash != '': return '%s/%s:%s' % (self.user, self.lmhash, self.nthash) else: return '%s/%s' % (self.user, self.password or 'BLANK') def getCredentials(self): if self.lmhash != '' and self.nthash != '': return self.user, self.password, self.lmhash, self.nthash else: return self.user, self.password, '', '' def addTarget(self, host, port, domain, status, error_code, is_admin): self.tested_targets.append(CredentialsTarget(host, port, domain, status, error_code, is_admin)) def getTargets(self, valid_only=False): _ = [] for tested_target in self.tested_targets: if (valid_only and tested_target.getStatus() is True) \ or not valid_only: _.append(tested_target) return _ def getValidTargets(self): return self.getTargets(True) class TargetCredentials: def __init__(self, user, password, lmhash, nthash, domain, status, error_code, is_admin): self.user = user self.password = password self.lmhash = lmhash self.nthash = nthash self.domain = domain self.status = status self.error_code = error_code self.is_admin = is_admin def getUser(self): return self.user def getPassword(self): return self.password def getLMhash(self): return self.lmhash def getNThash(self): return self.nthash def getDomain(self): return self.domain def getStatus(self): return self.status def isAdmin(self): return self.is_admin def getIdentity(self): if self.domain: _ = '%s\%s' % (self.domain, self.user) else: _ = self.user if self.lmhash != '' and self.nthash != '': return '%s/%s:%s %s' % (_, self.lmhash, self.nthash, '(admin user)' if self.isAdmin() else '') else: return '%s/%s %s' % (_, self.password or 'BLANK', '(admin user)' if self.isAdmin() else '') class Target: def __init__(self, target, port): self.target = target self.port = int(port) # All credentials tested on this target # List of TargetCredentials() objects self.tested_credentials = [] def getHost(self): return self.target def getPort(self): return self.port def getIdentity(self): return '%s:%d' % (self.target, self.port) def addCredential(self, user, password, lmhash, nthash, domain, status, error_code, is_admin): self.tested_credentials.append(TargetCredentials(user, password, lmhash, nthash, domain, status, error_code, is_admin)) def getCredentials(self, valid_only=False): _ = [] for tested_credential in self.tested_credentials: if (valid_only and tested_credential.getStatus() is True) \ or not valid_only: _.append(tested_credential) return _ def getValidCredentials(self): return self.getCredentials(True) def add_command(cmd): global commands #if cmd is not None and len(cmd) > 0 and cmd not in commands: if cmd is not None and len(cmd) > 0: commands.append(cmd) def parse_list_file(filename): global commands commands = [] try: fp = open(filename, 'rb') file_lines = fp.read().splitlines() fp.close() except IOError, e: logger.error('Could not open commands file %s' % filename) return file_lines = remove_comments(file_lines) for line in file_lines: add_command(line) def get_admin_credentials(target): for credentials in target.getValidCredentials(): if credentials.isAdmin(): return credentials return False def oscmdlist(): parse_list_file(conf.oscmdlist) targets_tuple = () for target in targets: admin_credentials = None if len(target.getValidCredentials()) == 0: continue else: admin_credentials = get_admin_credentials(target) if admin_credentials is False: admin_credentials = target.getValidCredentials()[0] logger.warn('No admin user identified for target %s, some commands will not work' % target.getIdentity()) logger.info('Executing OS commands on %s with user %s' % (target.getIdentity(), admin_credentials.getUser())) smb_shell = SMBShell(target, admin_credentials, conf.name) if len(commands) > 0: logger.info('Executing OS commands from provided file') for command in commands: print 'OS command \'%s\' output:' % command try: smb_shell.svcexec(command, 'SHARE') except SessionError, e: #traceback.print_exc() logger.error('SMB error: %s' % (e.getErrorString(), )) except NetBIOSTimeout, e: logger.error('SMB connection timed out') except keimpxError, e: logger.error(e) except KeyboardInterrupt, _: print logger.info('User aborted') smb_shell.do_exit('') except Exception, e: #traceback.print_exc() logger.error(str(e)) print '----------8<----------' def smbcmdlist(): parse_list_file(conf.smbcmdlist) targets_tuple = () for target in targets: if len(target.getValidCredentials()) == 0: continue else: admin_credentials = get_admin_credentials(target) if admin_credentials is False: admin_credentials = target.getValidCredentials()[0] logger.warn('No admin user identified for target %s, some commands will not work' % target.getIdentity()) logger.info('Executing SMB commands on %s with user %s' % (target.getIdentity(), admin_credentials.getUser())) shell = InteractiveShell(target, admin_credentials, conf.name) if len(commands) > 0: logger.info('Executing SMB commands from provided file') for command in commands: print 'SMB command \'%s\' output:' % command try: shell.onecmd(command) except SessionError, e: #traceback.print_exc() logger.error('SMB error: %s' % (e.getErrorString(), )) except NetBIOSTimeout, e: logger.error('SMB connection timed out') except keimpxError, e: logger.error(e) except KeyboardInterrupt, _: print logger.info('User aborted') shell.do_exit('') except Exception, e: #traceback.print_exc() logger.error(str(e)) print '----------8<----------' ############### # Set domains # ############### def parse_domains_file(filename): try: fp = open(filename, 'rb') file_lines = fp.read().splitlines() fp.close() except IOError, e: logger.error('Could not open domains file %s' % filename) return file_lines = remove_comments(file_lines) for line in file_lines: add_domain(line) def add_domain(line): global domains _ = str(line).replace(' ', '').split(',') for d in _: d = d.upper().split('.')[0] domains.append(d) logger.debug('Parsed domain%s: %s' % ('(s)' if len(_) > 1 else '', ', '.join([d for d in _]))) def set_domains(): global domains logger.info('Loading domains') if conf.domain is not None: logger.debug('Loading domains from command line') add_domain(conf.domain) if conf.domainsfile is not None: logger.debug('Loading domains from file %s' % conf.domainsfile) parse_domains_file(conf.domainsfile) domains = list(set(domains)) if len(domains) == 0: logger.info('No domains specified, using a blank domain') domains.append('') elif len(domains) > 0: if '' not in domains: domains.append('') logger.info('Loaded %s unique domain%s' % (len(domains), 's' if len(domains) > 1 else '')) ################### # Set credentials # ################### def parse_credentials_file(filename): try: fp = open(filename, 'rb') file_lines = fp.read().splitlines() fp.close() except IOError, e: logger.error('Could not open credentials file %s' % filename) return file_lines = remove_comments(file_lines) for line in file_lines: add_credentials(line=line) def parse_credentials(credentials_line): credentials_line = credentials_line.replace('NO PASSWORD*********************', '00000000000000000000000000000000') fgdumpmatch = re.compile('^(\S+?):(.*?:?)([0-9a-fA-F]{32}):([0-9a-fA-F]{32}):.*?:.*?:\s*$') fgdump = fgdumpmatch.match(credentials_line) wcematch = re.compile('^(\S+?):.*?:([0-9a-fA-F]{32}):([0-9a-fA-F]{32})\s*$') wce = wcematch.match(credentials_line) cainmatch = re.compile('^(\S+?):.*?:.*?:([0-9a-fA-F]{32}):([0-9a-fA-F]{32})\s*$') cain = cainmatch.match(credentials_line) plaintextpassmatch = re.compile('^(\S+?)\s+(\S*?)$') plain = plaintextpassmatch.match(credentials_line) # Credentials with hashes (pwdump/pwdumpx/fgdump/pass-the-hash output format) if fgdump: try: binascii.a2b_hex(fgdump.group(3)) binascii.a2b_hex(fgdump.group(4)) return fgdump.group(1), '', fgdump.group(3), fgdump.group(4) except: raise credentialsError, 'credentials error' # Credentials with hashes (wce output format) elif wce: try: binascii.a2b_hex(wce.group(2)) binascii.a2b_hex(wce.group(3)) return wce.group(1), '', wce.group(2), wce.group(3) except: raise credentialsError, 'credentials error' # Credentials with hashes (cain/l0phtcrack output format) elif cain: try: binascii.a2b_hex(cain.group(2)) binascii.a2b_hex(cain.group(3)) return cain.group(1), '', cain.group(2), cain.group(3) except: raise credentialsError, 'credentials error' # Credentials with password (added by user manually divided by a space) elif plain: return plain.group(1), plain.group(2), '', '' else: raise credentialsError, 'credentials error' def add_credentials(user=None, password='', lmhash='', nthash='', line=None): global added_credentials global credentials if line is not None: try: user, password, lmhash, nthash = parse_credentials(line) if user.count('\\') == 1: _, user = user.split('\\') add_domain(_) except credentialsError, _: logger.warn('Bad line in credentials file %s: %s' % (conf.credsfile, line)) return if (user, password, lmhash, nthash) in added_credentials: return elif user is not None: added_credentials.add((user, password, lmhash, nthash)) credential = Credentials(user, password, lmhash, nthash) credentials.append(credential) logger.debug('Parsed credentials: %s' % credential.getIdentity()) def set_credentials(): logger.info('Loading credentials') if conf.user is not None: logger.debug('Loading credentials from command line') add_credentials(conf.user, conf.password or '', conf.lmhash or '', conf.nthash or '') if conf.credsfile is not None: logger.debug('Loading credentials from file %s' % conf.credsfile) parse_credentials_file(conf.credsfile) if len(credentials) < 1: logger.error('No valid credentials loaded') sys.exit(1) logger.info('Loaded %s unique credential%s' % (len(credentials), 's' if len(credentials) > 1 else '')) ############### # Set targets # ############### def parse_targets_file(filename): try: fp = open(filename, 'rb') file_lines = fp.read().splitlines() fp.close() except IOError, e: logger.error('Could not open targets file %s' % filename) return file_lines = remove_comments(file_lines) for line in file_lines: add_target(line) def parse_target(target_line): targetmatch = re.compile('^([0-9a-zA-Z\-\_\.]+)(:(\d+))?') h = targetmatch.match(str(target_line)) if h and h.group(3): host = h.group(1) port = h.group(3) if port.isdigit() and int(port) > 0 and int(port) <= 65535: return host, int(port) else: return host, conf.port elif h: host = h.group(1) return host, conf.port else: raise targetError, 'target error' def add_target(line): global added_targets global targets try: host, port = parse_target(line) except targetError, _: logger.warn('Bad line in targets file %s: %s' % (conf.list, line)) return if (host, port) in added_targets: return else: added_targets.add((host, port)) target = Target(host, port) targets.append(target) logger.debug('Parsed target: %s' % target.getIdentity()) def addr_to_int(value): _ = value.split('.') return (long(_[0]) << 24) + (long(_[1]) << 16) + (long(_[2]) << 8) + long(_[3]) def int_to_addr(value): return '.'.join(str(value >> n & 0xFF) for n in (24, 16, 8, 0)) def set_targets(): logger.info('Loading targets') if conf.target is not None: if '/' not in conf.target: logger.debug('Loading targets from command line') add_target(conf.target) else: address, mask = re.search(r"([\d.]+)/(\d+)", conf.target).groups() logger.debug('Expanding targets from command line') start_int = addr_to_int(address) & ~((1 << 32 - int(mask)) - 1) end_int = start_int | ((1 << 32 - int(mask)) - 1) for _ in xrange(start_int, end_int): add_target(int_to_addr(_)) if conf.list is not None: logger.debug('Loading targets from file %s' % conf.list) parse_targets_file(conf.list) if len(targets) < 1: logger.error('No valid targets loaded') sys.exit(1) logger.info('Loaded %s unique target%s' % (len(targets), 's' if len(targets) > 1 else '')) def check_conf(): global conf set_verbosity(conf.verbose) if conf.name is None: conf.name = socket.gethostname() conf.name = str(conf.name) if conf.port is None: conf.port = 445 logger.debug('Using %s as local NetBIOS hostname' % conf.name) if conf.threads < 3: conf.threads = 3 logger.info('Forcing number of threads to 3') set_targets() set_credentials() set_domains() def cmdline_parser(): ''' This function parses the command line parameters and arguments ''' usage = '%s [options]' % sys.argv[0] parser = OptionParser(usage=usage, version=__version__) try: parser.add_option('-v', dest='verbose', type='int', default=0, help='Verbosity level: 0-2 (default: 0)') parser.add_option('-t', dest='target', help='Target address') parser.add_option('-l', dest='list', help='File with list of targets') parser.add_option('-U', dest='user', help='User') parser.add_option('-P', dest='password', help='Password') parser.add_option('--nt', dest='nthash', help='NT hash') parser.add_option('--lm', dest='lmhash', help='LM hash') parser.add_option('-c', dest='credsfile', help='File with list of credentials') parser.add_option('-D', dest='domain', help='Domain') parser.add_option('-d', dest='domainsfile', help='File with list of domains') parser.add_option('-p', dest='port', type='int', default=445, help='SMB port: 139 or 445 (default: 445)') parser.add_option('-n', dest='name', help='Local NetBIOS hostname') parser.add_option('-T', dest='threads', type='int', default=10, help='Maximum simultaneous connections (default: 10)') parser.add_option('-b', '--batch', dest='batch', action='store_true', default=False, help='Batch mode: do not prompt for an interactive SMB shell') parser.add_option('-x', dest='smbcmdlist', help='Execute a list of SMB ' 'commands against all hosts') parser.add_option('-X', dest='oscmdlist', help='Execute a list of OS ' 'commands against all hosts') (args, _) = parser.parse_args() if not args.target and not args.list: errMsg = 'missing a mandatory parameter (-t or -l), ' errMsg += '-h for help' parser.error(errMsg) return args except (OptionError, TypeError), e: parser.error(e) debugMsg = 'Parsing command line' logger.debug(debugMsg) def banner(): print ''' keimpx %s by %s ''' % (__version__, __author__) def main(): global conf global credentials global domains global have_readline global pool_thread banner() conf = cmdline_parser() check_conf() pool_thread = threading.BoundedSemaphore(conf.threads) try: for target in targets: pool_thread.acquire() current = test_login(target) current.daemon = True current.start() while (threading.activeCount() > 1): a = 'Caughtit' pass except KeyboardInterrupt: print try: logger.warn('Test interrupted') a = 'Caughtit' stop_threads[0] = True except KeyboardInterrupt: print logger.info('User aborted') os._exit(1) if successes == 0: print '\nNo credentials worked on any target\n' os._exit(0) print '\nThe credentials worked in total %d times\n' % successes print 'TARGET SORTED RESULTS:\n' for target in targets: valid_credentials = target.getValidCredentials() if len(valid_credentials) > 0: print target.getIdentity() for valid_credential in valid_credentials: print ' %s' % valid_credential.getIdentity() print print '\nUSER SORTED RESULTS:\n' for credential in credentials: valid_credentials = credential.getValidTargets() if len(valid_credentials) > 0: print credential.getIdentity() for valid_credential in valid_credentials: print ' %s' % valid_credential.getIdentity() print if conf.smbcmdlist is not None: smbcmdlist() if conf.oscmdlist is not None: oscmdlist() if conf.batch or conf.smbcmdlist or conf.oscmdlist: return while True: msg = 'Do you want to establish a SMB shell from any of the targets? [Y/n] ' choice = raw_input(msg) if choice and choice[0].lower() != 'y': return counter = 0 targets_dict = {} msg = 'Which target do you want to connect to?' for target in targets: valid_credentials = target.getValidCredentials() if len(valid_credentials) > 0: counter += 1 msg += '\n[%d] %s%s' % (counter, target.getIdentity(), ' (default)' if counter == 1 else '') targets_dict[counter] = (target, valid_credentials) msg += '\n> ' choice = read_input(msg, counter) user_target, valid_credentials = targets_dict[int(choice)] counter = 0 credentials_dict = {} msg = 'Which credentials do you want to use to connect?' for credential in valid_credentials: counter += 1 msg += '\n[%d] %s%s' % (counter, credential.getIdentity(), ' (default)' if counter == 1 else '') credentials_dict[counter] = credential msg += '\n> ' choice = read_input(msg, counter) user_credentials = credentials_dict[int(choice)] if mswindows is True and have_readline: try: _outputfile = readline.GetOutputFile() except AttributeError: logger.debug('Failed GetOutputFile when using platform\'s readline library') have_readline = False uses_libedit = False if sys.platform.lower() == 'darwin' and have_readline: import commands (status, result) = commands.getstatusoutput('otool -L %s | grep libedit' % readline.__file__) if status == 0 and len(result) > 0: readline.parse_and_bind('bind ^I rl_complete') debugMsg = 'Leopard libedit detected when using platform\'s ' debugMsg += 'readline library' logger.debug(debugMsg) uses_libedit = True try: shell = InteractiveShell(user_target, user_credentials, conf.name) shell.cmdloop() except RuntimeError, e: logger.error('Runtime error: %s' % str(e)) except Exception, _: #traceback.print_exc() pass if __name__ == '__main__': warnings.filterwarnings(action='ignore', category=DeprecationWarning) try: main() except KeyboardInterrupt: print logger.info('User aborted') os._exit(1) os._exit(0)
31.728512
164
0.59034
3,504
30,269
4.971176
0.154966
0.002985
0.015271
0.016534
0.374591
0.307136
0.283885
0.270567
0.24169
0.21976
0
0.009957
0.293237
30,269
953
165
31.761805
0.804282
0.022829
0
0.395062
0
0.00463
0.124886
0.012126
0
0
0.000147
0
0
0
null
null
0.057099
0.009259
null
null
0.030864
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
2991f234111d1447755dfb2bef57dbe8384dfc6d
459
py
Python
ch9/listing_9_7.py
s8w1e2ep/clean_code
50adb410330618eb3df701222924f45cbbbbc03d
[ "MIT" ]
null
null
null
ch9/listing_9_7.py
s8w1e2ep/clean_code
50adb410330618eb3df701222924f45cbbbbc03d
[ "MIT" ]
null
null
null
ch9/listing_9_7.py
s8w1e2ep/clean_code
50adb410330618eb3df701222924f45cbbbbc03d
[ "MIT" ]
null
null
null
def test_get_page_hierarchy_as_xml(): given_pages('PageOne', 'PageOne.ChildOne', 'PageTwo') when_request_is_issued('root', 'type:pages') then_response_should_be_xml() def test_get_page_hierarchy_has_right_tags(): given_pages('PageOne', 'PageOne.ChildOne', 'PageTwo') when_request_is_issued('root', 'type:pages') then_response_should_be_contain( '<name>PageOne</name>', '<name>PageTwo</name>', '<name>ChildOne</name>' )
30.6
79
0.714597
60
459
5.016667
0.45
0.046512
0.066445
0.093023
0.757475
0.604651
0.604651
0.604651
0.604651
0.604651
0
0
0.130719
459
15
80
30.6
0.754386
0
0
0.4
0
0
0.323913
0.045652
0
0
0
0
0
1
0.2
true
0
0
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
29b9fc9530b6fd2016fc568701dbf631b66b0670
356
py
Python
src/demos/appendix_b.py
romilly/o-x-o
861fdb7f7169d2e0f7648703a759c36c09b8c295
[ "MIT" ]
1
2022-03-04T12:09:00.000Z
2022-03-04T12:09:00.000Z
src/demos/appendix_b.py
romilly/o-x-o
861fdb7f7169d2e0f7648703a759c36c09b8c295
[ "MIT" ]
1
2022-03-23T07:59:47.000Z
2022-03-23T07:59:47.000Z
src/demos/appendix_b.py
romilly/o-x-o
861fdb7f7169d2e0f7648703a759c36c09b8c295
[ "MIT" ]
null
null
null
from robot.robot import Robot robot = Robot() try: robot.open() robot.send_line('2 + 2') robot.send_line('2 + 3') robot.send_line('positive ← {⍵/⍨⍵>0}') robot.send_line('positive ¯3 + ⍳5') robot.send_line(')ed positive') robot.screenshot('ed.png') robot.close_editor() robot.send_line(')off') finally: robot.close()
23.733333
42
0.620787
55
356
4
0.436364
0.245455
0.354545
0.127273
0
0
0
0
0
0
0
0.02439
0.19382
356
15
43
23.733333
0.721254
0
0
0
0
0
0.187675
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
29ba8c25984a64186a2da5a366a7de1e7491badd
1,113
py
Python
ws4/cardplay/cardplay/play.py
eth-its/Python-for-SysAdmins
fbea44b6c3a3b5c981ef1d5eb0df38336d8aa745
[ "CC0-1.0" ]
1
2021-04-22T12:59:22.000Z
2021-04-22T12:59:22.000Z
ws4/cardplay/cardplay/play.py
eth-its/Python-for-SysAdmins
fbea44b6c3a3b5c981ef1d5eb0df38336d8aa745
[ "CC0-1.0" ]
14
2020-12-15T22:04:33.000Z
2021-11-24T17:15:02.000Z
ws4/cardplay/cardplay/play.py
eth-its/Python-for-SysAdmins
fbea44b6c3a3b5c981ef1d5eb0df38336d8aa745
[ "CC0-1.0" ]
1
2021-11-16T08:37:01.000Z
2021-11-16T08:37:01.000Z
from random import shuffle class Card: """ A card in the play. Suit is element of ['Hearts','Diamonds','Clubs','Spades']. Value is element of ['A','2','3','4','5','6','7','8','9','10','J','Q','K']. """ def __init__(self, suit, value): self.suit = suit self.value = value def __repr__(self): return f"{self.value} of {self.suit}" class Deck: def __init__(self): suits = ['Hearts','Diamonds','Clubs','Spades'] values = ['A','2','3','4','5','6','7','8','9','10','J','Q','K'] self.cards = [Card(suit, value) for suit in suits for value in values] def __repr__(self): return f"Cards remaining in deck: {len(self.cards)}." def shuffle(self): if len(self.cards) < 52: raise ValueError("Only full decks can be shuffled") shuffle(self.cards) return self def deal(self): if len(self.cards) == 0: raise ValueError("All cards have been dealt") return self.cards.pop() def main(): print(Deck()) if __name__ == "__main__": main()
27.146341
79
0.540881
154
1,113
3.753247
0.415584
0.093426
0.062284
0.086505
0.17301
0.048443
0.048443
0.048443
0.048443
0.048443
0
0.02843
0.273136
1,113
40
80
27.825
0.686032
0.138365
0
0.074074
0
0
0.185027
0
0
0
0
0
0
1
0.259259
false
0
0.037037
0.074074
0.518519
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
29d75332c4d702cbd0468f1e052089976e51b459
461
py
Python
portapp/forms.py
ezekielkibiego/portfolio2
b0375937e6293397b411f1c920cfe85b867d246f
[ "MIT" ]
null
null
null
portapp/forms.py
ezekielkibiego/portfolio2
b0375937e6293397b411f1c920cfe85b867d246f
[ "MIT" ]
null
null
null
portapp/forms.py
ezekielkibiego/portfolio2
b0375937e6293397b411f1c920cfe85b867d246f
[ "MIT" ]
null
null
null
from django.forms.widgets import Textarea from .models import * from django.forms import ModelForm from django import forms class LoginForm(forms.Form): username=forms.CharField() password=forms.CharField(widget=forms.PasswordInput) class CommentForm(forms.ModelForm): class Meta: model = Comment fields =['name','email', 'message' ] widgets = { 'message': Textarea(attrs={'cols' : 20, 'rows' : 3}), }
25.611111
65
0.661605
51
461
5.980392
0.568627
0.098361
0.098361
0
0
0
0
0
0
0
0
0.008333
0.219089
461
18
66
25.611111
0.838889
0
0
0
0
0
0.067245
0
0
0
0
0
0
1
0
false
0.071429
0.285714
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
29e9448876bc2ccd805a9eaf4fb0222a51a102bf
792
py
Python
uasyncio/basic/main.py
sourceperl/micropython.cookbook
87826546f9a680bd292df209936d30c08ed461be
[ "MIT" ]
null
null
null
uasyncio/basic/main.py
sourceperl/micropython.cookbook
87826546f9a680bd292df209936d30c08ed461be
[ "MIT" ]
null
null
null
uasyncio/basic/main.py
sourceperl/micropython.cookbook
87826546f9a680bd292df209936d30c08ed461be
[ "MIT" ]
1
2021-07-08T09:25:42.000Z
2021-07-08T09:25:42.000Z
import uasyncio import gc from machine import Pin # task 1 async def led_blink(): led = Pin(25, Pin.OUT) while True: led.on() await uasyncio.sleep_ms(100) led.off() await uasyncio.sleep_ms(100) # task 2 async def say_hello(): while True: print('time to say hello !') await uasyncio.sleep_ms(1_000) # task 3 async def mem_report(): while True: print('free mem = %s' % gc.mem_free()) await uasyncio.sleep_ms(5_000) # main task async def main(): # create task uasyncio.create_task(led_blink()) uasyncio.create_task(say_hello()) uasyncio.create_task(mem_report()) # main loop while True: print('main() is alive') await uasyncio.sleep_ms(2_000) # run uasyncio.run(main())
20.307692
46
0.625
115
792
4.147826
0.356522
0.136268
0.188679
0.209644
0.096436
0
0
0
0
0
0
0.039316
0.261364
792
38
47
20.842105
0.776068
0.070707
0
0.230769
0
0
0.06456
0
0
0
0
0
0
1
0
false
0
0.115385
0
0.115385
0.115385
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
29f0d249ffdafd7dac0484078ff701433e6f158f
3,938
py
Python
carla_ros_bridge/launch/carla_ros_passive_sensing.launch.py
anrp-tri/ros-bridge
329e4da72e3dcecf2119cf771dfc29fe9b99eb03
[ "MIT" ]
null
null
null
carla_ros_bridge/launch/carla_ros_passive_sensing.launch.py
anrp-tri/ros-bridge
329e4da72e3dcecf2119cf771dfc29fe9b99eb03
[ "MIT" ]
null
null
null
carla_ros_bridge/launch/carla_ros_passive_sensing.launch.py
anrp-tri/ros-bridge
329e4da72e3dcecf2119cf771dfc29fe9b99eb03
[ "MIT" ]
1
2022-01-25T16:44:16.000Z
2022-01-25T16:44:16.000Z
from pathlib import Path from ament_index_python.packages import get_package_share_directory import launch from launch.substitutions import TextSubstitution import launch_ros.actions def generate_launch_description(): # Get the object spawner node which creates the sensors we want. object_spawn_path = Path(get_package_share_directory("carla_spawn_objects")) included_launch = launch.actions.IncludeLaunchDescription( launch.launch_description_sources.PythonLaunchDescriptionSource( str((object_spawn_path / "launch" / "carla_spawn_objects.launch.py").absolute()) ), launch_arguments={ "objects_definition_file": TextSubstitution( text=str((object_spawn_path / "config" / "object_sensor_only.json").absolute()) ), "spawn_sensors_only": TextSubstitution(text="true"), }.items(), ) ld = launch.LaunchDescription( [ included_launch, launch.actions.DeclareLaunchArgument( name="host", default_value="localhost", description="IP of the CARLA server" ), launch.actions.DeclareLaunchArgument( name="port", default_value="2000", description="TCP port of the CARLA server" ), launch.actions.DeclareLaunchArgument( name="timeout", default_value="2", description="Time to wait for a successful connection to the CARLA server", ), launch.actions.DeclareLaunchArgument( name="synchronous_mode", default_value="True", description="Enable/disable synchronous mode. If enabled, the ROS bridge waits until the expected data is received for all sensors", ), launch.actions.DeclareLaunchArgument( name="fixed_delta_seconds", default_value="0.05", description="Simulation time (delta seconds) between simulation steps", ), launch.actions.DeclareLaunchArgument( name="ego_vehicle_role_name", default_value=[ "hero", "ego_vehicle", "hero0", "hero1", "hero2", "hero3", "hero4", "hero5", "hero6", "hero7", "hero8", "hero9", ], description="Role names to identify ego vehicles. ", ), launch_ros.actions.Node( package="carla_ros_bridge", executable="bridge", name="carla_ros_bridge", output="screen", emulate_tty="True", on_exit=launch.actions.Shutdown(), parameters=[ # TODO(andrew.best): Perhaps this solves our problems w.r.t to time? {"use_sim_time": True}, {"host": launch.substitutions.LaunchConfiguration("host")}, {"port": launch.substitutions.LaunchConfiguration("port")}, {"timeout": launch.substitutions.LaunchConfiguration("timeout")}, {"passive": True}, {"synchronous_mode": launch.substitutions.LaunchConfiguration("synchronous_mode")}, {"synchronous_mode_wait_for_vehicle_control_command": False}, {"fixed_delta_seconds": launch.substitutions.LaunchConfiguration("fixed_delta_seconds")}, {"register_all_sensors": True}, {"ego_vehicle_role_name": launch.substitutions.LaunchConfiguration("ego_vehicle_role_name")}, ], ), ] ) return ld if __name__ == "__main__": generate_launch_description()
42.344086
148
0.560437
334
3,938
6.356287
0.422156
0.048987
0.09609
0.107395
0.075365
0.075365
0.075365
0.050871
0
0
0
0.006977
0.344845
3,938
92
149
42.804348
0.815891
0.032758
0
0.2
1
0.011765
0.234367
0.049133
0
0
0
0.01087
0
1
0.011765
false
0.011765
0.058824
0
0.082353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
4b076237c74f4fbd5579c2a04742506de72aebd6
653
py
Python
list/comprehension.py
Khachornchit/Python-Quick-Start
a262d96296d400138548f6061f34481d25afd37f
[ "MIT" ]
1
2020-07-01T04:42:38.000Z
2020-07-01T04:42:38.000Z
list/comprehension.py
khachornchit/Python3
a262d96296d400138548f6061f34481d25afd37f
[ "MIT" ]
null
null
null
list/comprehension.py
khachornchit/Python3
a262d96296d400138548f6061f34481d25afd37f
[ "MIT" ]
null
null
null
#1st method sq1 = [] for x in range(10): sq1.append(x**2) print("sq1 = ", sq1) # 2nd method sq2 = [x**2 for x in range(10)] print("sq2 = ", sq2) sq3 = [(x,y) for x in [1,2,3] for y in [3,1,4] if x!=y] print("sq3 = ", sq3) vec = [-4, -2, 0, 2, 4] print("x*2", [x*2 for x in vec]) print("x if x>0", [x for x in vec if x>=0]) print("abs(x) = ", [abs(x) for x in vec]) freshfruit = [' banana', ' loganberry ', 'passion fruit '] print("weapon.strip() = ", [weapon.strip() for weapon in freshfruit]) print("(x, x**2) = ", [(x, x**2) for x in range(6)]) vec2 = [[1,2,3], [4,5,6], [7,8,9]] print("num = ", [num for elem in vec2 for num in elem])
23.321429
69
0.540582
133
653
2.654135
0.278195
0.07932
0.11898
0.093484
0.195467
0.073654
0
0
0
0
0
0.090909
0.20827
653
28
70
23.321429
0.591876
0.032159
0
0
0
0
0.172742
0
0
0
0
0
0
1
0
false
0.058824
0
0
0
0.529412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
1
0
2
d99ac0a9307c093738f9385a1e8c022c77e8477e
214
py
Python
run_server.py
vagnervjs/frame-player
682164d688d49440e2539f52370b5abde98c364b
[ "MIT" ]
233
2015-01-07T20:19:10.000Z
2022-03-05T12:36:21.000Z
run_server.py
lepe/frame-player
7b4a6f5739909012bd288c2fadb181a7fb1fdab5
[ "MIT" ]
17
2015-03-02T13:37:13.000Z
2017-06-23T14:20:40.000Z
run_server.py
vagnervjs/frame-player
682164d688d49440e2539f52370b5abde98c364b
[ "MIT" ]
84
2015-01-30T17:48:32.000Z
2022-03-05T12:36:22.000Z
# run_server.py import SimpleHTTPServer m = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map m[''] = 'text/plain' m.update(dict([(k, v + ';charset=UTF-8') for k, v in m.items()])) SimpleHTTPServer.test()
23.777778
65
0.728972
29
214
5.310345
0.758621
0.025974
0
0
0
0
0
0
0
0
0
0.005208
0.102804
214
8
66
26.75
0.796875
0.060748
0
0
0
0
0.120603
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d99d0db266ba294c13c86f09c5998a4ab4185bf2
434
py
Python
perfplot/__init__.py
unutbu/perfplot
9bd5fe4efdb8fe0a7f2c89d00b59a21d9237a049
[ "MIT" ]
4
2020-05-30T20:49:10.000Z
2021-11-08T01:54:11.000Z
perfplot/__init__.py
unutbu/perfplot
9bd5fe4efdb8fe0a7f2c89d00b59a21d9237a049
[ "MIT" ]
null
null
null
perfplot/__init__.py
unutbu/perfplot
9bd5fe4efdb8fe0a7f2c89d00b59a21d9237a049
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from __future__ import print_function from perfplot.__about__ import ( __author__, __author_email__, __copyright__, __license__, __version__, __status__ ) # pylint: disable=wildcard-import from perfplot.main import * try: import pipdate except ImportError: pass else: if pipdate.needs_checking(__name__): print(pipdate.check(__name__, __version__), end='')
18.083333
59
0.695853
45
434
5.666667
0.711111
0.094118
0
0
0
0
0
0
0
0
0
0.002915
0.209677
434
23
60
18.869565
0.740525
0.12212
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.058824
0.294118
0
0.294118
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
d9a7c6e8107b9ca826b7020b7f6bdf12e2e3a01c
4,994
py
Python
library/panos_import.py
psiri/ansible-pan
99e86b586c5aa13b915a1fc23e1fc267678a7f58
[ "0BSD" ]
null
null
null
library/panos_import.py
psiri/ansible-pan
99e86b586c5aa13b915a1fc23e1fc267678a7f58
[ "0BSD" ]
1
2021-09-23T23:35:40.000Z
2021-09-23T23:35:40.000Z
library/panos_import.py
psiri/ansible-pan
99e86b586c5aa13b915a1fc23e1fc267678a7f58
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2014, Palo Alto Networks <techbizdev@paloaltonetworks.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. DOCUMENTATION = ''' --- module: panos_import short_description: import file on PAN-OS devices description: - Import file on PAN-OS device author: - Palo Alto Networks - Luigi Mori (jtschichold) version_added: "0.0" requirements: - pan-python - requests - requests_toolbelt options: ip_address: description: - IP address (or hostname) of PAN-OS device required: true password: description: - password for authentication required: true username: description: - username for authentication required: false default: "admin" category: description: - category of file required: false default: software file: description: - file to import required: false default: None url: description: - url to file to import required: false default: None ''' EXAMPLES = ''' # import software image PanOS_vm-6.1.1 on 192.168.1.1 - name: import software image into PAN-OS panos_import: ip_address: 192.168.1.1 username: admin password: admin file: /tmp/PanOS_vm-6.1.1 category: software ''' import sys import os.path import xml.etree import tempfile import shutil import os try: import pan.xapi except ImportError: print "failed=True msg='pan-python required for this module'" sys.exit(1) try: import requests except ImportError: print "failed=True msg='requests required for this module'" sys.exit(1) try: import requests_toolbelt except ImportError: print "failed=True msg='requests_toolbelt required for this module'" sys.exit(1) def import_file(xapi, module, ip_address, file_, category): xapi.keygen() params = { 'type': 'import', 'category': category, 'key': xapi.api_key } filename = os.path.basename(file_) mef = requests_toolbelt.MultipartEncoder( fields={ 'file': (filename, open(file_, 'rb'), 'application/octet-stream') } ) r = requests.post( 'https://'+ip_address+'/api/', verify=False, params=params, headers={'Content-Type': mef.content_type}, data=mef ) # if something goes wrong just raise an exception r.raise_for_status() resp = xml.etree.ElementTree.fromstring(r.content) if resp.attrib['status'] == 'error': module.fail_json(msg=r.content) return True, filename def download_file(url): r = requests.get(url, stream=True) fo = tempfile.NamedTemporaryFile(prefix='ai', delete=False) shutil.copyfileobj(r.raw, fo) fo.close() return fo.name def delete_file(path): os.remove(path) def main(): argument_spec = dict( ip_address=dict(default=None), password=dict(default=None, no_log=True), username=dict(default='admin'), category=dict(default='software'), file=dict(default=None), url=dict(default=None) ) module = AnsibleModule(argument_spec=argument_spec) ip_address = module.params["ip_address"] if not ip_address: module.fail_json(msg="ip_address should be specified") password = module.params["password"] if not password: module.fail_json(msg="password is required") username = module.params['username'] xapi = pan.xapi.PanXapi( hostname=ip_address, api_username=username, api_password=password ) file_ = module.params['file'] url = module.params['url'] if file_ is None and url is None: module.fail_json(msg="file or url is required") if file_ is not None and url is not None: module.fail_json(msg="only one of file or url can be specified") category = module.params['category'] if url is not None: file_ = download_file(url) changed, filename = import_file(xapi, module, ip_address, file_, category) if url is not None: delete_file(file_) module.exit_json(changed=changed, filename=filename, msg="okey dokey") from ansible.module_utils.basic import * # noqa main()
25.875648
78
0.660593
641
4,994
5.063963
0.322933
0.033272
0.021565
0.026186
0.169439
0.150339
0.111214
0.053604
0.028343
0.028343
0
0.008227
0.245495
4,994
192
79
26.010417
0.853238
0.168602
0
0.193103
0
0
0.393859
0.011122
0
0
0
0
0
0
null
null
0.055172
0.165517
null
null
0.02069
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
d9b4638ac2af2968d4bd16b5b970ac5c509244e8
8,714
py
Python
hirschman.py
aes3219563/Hirschman-Transform-Lib
dabd9561b679e4675b7678f28b46907b464d66ef
[ "MIT" ]
null
null
null
hirschman.py
aes3219563/Hirschman-Transform-Lib
dabd9561b679e4675b7678f28b46907b464d66ef
[ "MIT" ]
null
null
null
hirschman.py
aes3219563/Hirschman-Transform-Lib
dabd9561b679e4675b7678f28b46907b464d66ef
[ "MIT" ]
null
null
null
#coding=utf-8 import numpy as np import random import numpy.linalg as linalg __version__ = "1.0.1" class computation: def __init__(self): ######sym2 self._sym2_h=[-0.1294,0.2241,0.8365,0.4830] self._sym2_g=[-0.4830,0.8365,-0.2241,-0.1294] ######sym3 self._sym3_h=[0.0352,-0.0854,-0.1350,0.4599,0.8069,0.3327] self._sym3_g=[-0.3327,0.8069,-0.4599,-0.1350,0.0854,0.0352] ######sym4 self._sym4_h=[-0.0758,-0.0296,0.4976,0.8037,0.2979,-0.0992,-0.0126,0.0322] self._sym4_g=[-0.0322,-0.0126,0.0992,0.2979,-0.8037,0.4976,0.0296,-0.0758] ######sym5 self._sym5_h=[0.0273,0.0295,-0.0391,0.1994,0.7234,0.6340,0.0166,-0.1753,-0.0211,0.0195] self._sym5_g=[-0.0195,-0.0211,0.1753,0.0166,-0.6340,0.7234,-0.1994,-0.0391,-0.0295,0.0273] ######sym6 self._sym6_h=[0.0154041093270274, 0.00349071208421747, -0.117990111148191, -0.0483117425856330,\ 0.491055941926747, 0.787641141030194, 0.337929421727622, -0.0726375227864625,\ -0.0210602925123006, 0.0447249017706658, 0.00176771186424280, -0.00780070832503415] self._sym6_g=[0.00780070832503415, 0.00176771186424280, -0.0447249017706658, -0.0210602925123006,\ 0.0726375227864625, 0.337929421727622, -0.787641141030194, 0.491055941926747,\ 0.0483117425856330, -0.117990111148191, -0.00349071208421747, 0.0154041093270274] ######sym7 self._sym7_h=[0.00268181456825788, -0.00104738488868292, -0.0126363034032519, 0.0305155131659636,\ 0.0678926935013727, -0.0495528349371273, 0.0174412550868558, 0.536101917091763,\ 0.767764317003164, 0.288629631751515, -0.140047240442962, -0.107808237703818,\ 0.00401024487153366, 0.0102681767085113] self._sym7_g=[-0.0102681767085113, 0.00401024487153366, 0.107808237703818, -0.140047240442962,\ -0.288629631751515, 0.767764317003164, -0.536101917091763, 0.0174412550868558,\ 0.0495528349371273, 0.0678926935013727, -0.0305155131659636, -0.0126363034032519,\ 0.00104738488868292, 0.00268181456825788] ######sym8 self._sym8_h=[-0.00338241595100613,-0.000542132331791148,0.0316950878114930,\ 0.00760748732491761,-0.143294238350810,-0.0612733590676585,\ 0.481359651258372,0.777185751700524,0.364441894835331,\ -0.0519458381077090,-0.0272190299170560,0.0491371796736075,\ 0.00380875201389062,-0.0149522583370482,-0.000302920514721367,0.00188995033275946] self._sym8_g=[-0.00188995033275946,-0.000302920514721367,0.0149522583370482,\ 0.00380875201389062,-0.0491371796736075,-0.0272190299170560,\ 0.0519458381077090,0.364441894835331,-0.777185751700524,\ 0.481359651258372,0.0612733590676585,-0.143294238350810,\ -0.00760748732491761,0.0316950878114930,0.000542132331791148,-0.00338241595100613] ######dw2 self._db2_h=[-0.1294,0.2241,0.8365,0.4830] self._db2_g=[-0.4830,0.8365,-0.2241,-0.1294] ######dw3 self._db3_h=[0.0352,-0.0854,-0.1350,0.4599,0.8069,0.3327] self._db3_g=[-0.3327,0.8069,-0.4599,-0.1350,0.0854,0.0352] ######dw4 self._db4_h=[-0.0106,0.0329,0.0308,-0.1870,-0.0280,0.6309,0.7148,0.2304] self._db4_g=[-0.2304,0.7148,-0.6309,-0.0280,0.1870,0.0308,-0.0329,-0.0106] ######dw5 self._db5_h=[0.0033,-0.0126,-0.0062,0.0776,-0.0322,-0.2423,0.1384,0.7243,0.6038,0.1601] self._db5_g=[-0.1601,0.6038,-0.7243,0.1384,0.2423,-0.0322,-0.0776,-0.0062,0.0126,0.0033] ######dw6 self._db6_h=[-0.00107730108499558,0.00477725751101065,0.000553842200993802,-0.0315820393180312,\ 0.0275228655300163,0.0975016055870794,-0.129766867567096,-0.226264693965169,\ 0.315250351709243,0.751133908021578,0.494623890398385,0.111540743350080] self._db6_g=[-0.111540743350080,0.494623890398385,-0.751133908021578,0.315250351709243,\ 0.226264693965169,-0.129766867567096,-0.0975016055870794,0.0275228655300163,\ 0.0315820393180312,0.000553842200993802,-0.00477725751101065,-0.00107730108499558] def dftmtx(self,N): return np.matrix(np.fft.fft(np.eye(N))) def div(self,N): res=[] for i in range (2,N): if N%i==0: res.append(i) return res def htm(self,dft_len,total_len): eye_len=int(total_len/dft_len) dft=self.dftmtx(dft_len) (row,col)=dft.shape cols=[] for i in range(0,row): tmp_row=dft[i] tmp_eye=np.eye(eye_len) rows=[] for j in range(0,tmp_row.shape[1]): rows.append(tmp_eye.dot(tmp_row[0,j])) cols.append(np.concatenate(rows,axis=1)) return np.matrix(np.concatenate(cols,axis=0)).dot(1/np.sqrt(dft_len)) def ihtm(self,dft_len,total_len): eye_len=int(total_len/dft_len) dft=dftmtx(dft_len) dft=dft.H (row,col)=dft.shape cols=[] for i in range(0,row): tmp_row=dft[i] tmp_eye=np.eye(eye_len) rows=[] for j in range(0,tmp_row.shape[1]): rows.append(tmp_eye.dot(tmp_row[0,j])) cols.append(np.concatenate(rows,axis=1)) return np.matrix(np.concatenate(cols,axis=0)).dot(1/np.sqrt(dft_len)) def omp(self,args): T=args[1].copy() s=args[0] N=args[2] size=T.shape M=size[0] hat_y=np.zeros((1,N),dtype=np.complex) Aug_t=[] r_n=s pos_array=[] for times in range(0,int(M)): pos=np.argmax(np.absolute(T.H.dot(r_n))) if np.array(Aug_t).size==0: Aug_t=np.array(T[:,pos]) else: Aug_t=np.concatenate([np.array(Aug_t),np.array(T[:,pos])],axis=1) Aug_t=np.matrix(Aug_t) T[:,pos]=np.zeros((M,1)) aug_y=(np.linalg.pinv( np.matrix(Aug_t.H.dot(Aug_t)))).dot(Aug_t.H).dot(s); r_n=s-Aug_t.dot(aug_y); pos_array.append(pos) if np.power(np.absolute(aug_y[-1,0]),2)/linalg.norm(aug_y)<0.05: break hat_y[0,pos_array]=aug_y.T return hat_y def dwt(self,N,wname): switch={'db2':{'h':self._db2_h,'g':self._db2_g},\ 'db3':{'h':self._db3_h,'g':self._db3_g},\ 'db4':{'h':self._db4_h,'g':self._db4_g},\ 'db5':{'h':self._db5_h,'g':self._db5_g},\ 'db6':{'h':self._db6_h,'g':self._db6_g},\ 'sym2':{'h':self._sym2_h,'g':self._sym2_g},\ 'sym3':{'h':self._sym3_h,'g':self._sym3_g},\ 'sym4':{'h':self._sym4_h,'g':self._sym4_g},\ 'sym5':{'h':self._sym5_h,'g':self._sym5_g},\ 'sym6':{'h':self._sym6_h,'g':self._sym6_g},\ 'sym7':{'h':self._sym7_h,'g':self._sym7_g},\ 'sym8':{'h':self._sym8_h,'g':self._sym8_g},\ } if not switch.get(wname): print('wave name not found') return h=switch[wname]['h'] g=switch[wname]['g'] L=len(h) rank_max=int(np.log2(N)) rank_min=int(np.log2(L))+1 ww=1 for jj in range(rank_min,rank_max+1): nn=np.power(2,jj) p1_0=np.concatenate([np.array(h),np.zeros((1,nn-L))] ,axis=None) p2_0=np.concatenate([np.array(g),np.zeros((1,nn-L))] ,axis=None) p1=[] p2=[] for ii in range(0,int(nn/2)): p1.append(np.roll(p1_0,int(2*(ii)))) p2.append(np.roll(p2_0,int(2*(ii)))) w1=np.concatenate([p1,p2],axis=0) mm=np.power(2,rank_max)-np.max(w1.shape) w=np.matrix( np.concatenate([np.concatenate([w1,np.zeros((np.max(w1.shape),mm))],axis=1),np.concatenate([np.zeros((mm,np.max(w1.shape))),np.eye(mm,mm)],axis=1)],axis=0)) ww=ww*w return ww def randsubmtx(self,A,m): (row,col)=A.shape numlist=list(range(row)) randnum=[] for x in range(m): pos=random.randint(0,len(numlist)-1) randnum.append(numlist[ pos]) numlist.remove(numlist[ pos]) return A[randnum]
48.681564
182
0.560363
1,208
8,714
3.906457
0.18543
0.00551
0.015257
0.010172
0.175037
0.166137
0.15978
0.151727
0.151727
0.142827
0
0.398182
0.26796
8,714
178
183
48.955056
0.34159
0.006312
0
0.139241
0
0
0.011061
0
0
0
0
0
0
1
0.050633
false
0
0.018987
0.006329
0.126582
0.006329
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d9b746a2c79bd6f4fbc878be082a54b05b2108cb
699
py
Python
venv/Scripts/django-admin.py
pedrohd21/Agenda-Django
c48a90d76094523fd2060ff735faefbf3c2f808d
[ "MIT" ]
1
2021-04-21T00:07:03.000Z
2021-04-21T00:07:03.000Z
venv/Scripts/django-admin.py
pedrohd21/Agenda
c48a90d76094523fd2060ff735faefbf3c2f808d
[ "MIT" ]
null
null
null
venv/Scripts/django-admin.py
pedrohd21/Agenda
c48a90d76094523fd2060ff735faefbf3c2f808d
[ "MIT" ]
null
null
null
#!c:\users\pedro\documents\github\agenda\venv\scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django-admin.py was deprecated in Django 3.1 and removed in Django ' '4.0. Please manually remove this script from your virtual environment ' 'and use django-admin instead.' ) if __name__ == "__main__": warnings.warn( 'django-admin.py is deprecated in favor of django-admin.', RemovedInDjango40Warning, ) management.execute_from_command_line()
31.772727
80
0.728183
88
699
5.659091
0.647727
0.110442
0.078313
0
0
0
0
0
0
0
0
0.014159
0.191702
699
21
81
33.285714
0.867257
0.180258
0
0
0
0
0.401051
0
0
0
0
0
0
1
0
true
0
0.3125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
d9beda75cf8f601813cb1e0106a06881bcd28dbb
4,306
py
Python
ml/sarsa/gym-minigrid/tests.py
AlinMH/C-Projects
1e11b4fd1b96045b4b810d5892b2be73c1d5d886
[ "MIT" ]
null
null
null
ml/sarsa/gym-minigrid/tests.py
AlinMH/C-Projects
1e11b4fd1b96045b4b810d5892b2be73c1d5d886
[ "MIT" ]
null
null
null
ml/sarsa/gym-minigrid/tests.py
AlinMH/C-Projects
1e11b4fd1b96045b4b810d5892b2be73c1d5d886
[ "MIT" ]
null
null
null
from sarsa_skel import * def plot_egreedy(map): c1 = 0.5 lr1 = 0.1 d1 = 0.99 q01 = 0 steps1, avg_lengths1, avg_returns1 = sarsa_egreedy(map_file=map, learning_rate=lr1, discount=d1, const=c1, train_episodes=500, q0=q01, final_show=False) c2 = 0.5 lr2 = 0.1 d2 = 0.99 q02 = 0.2 steps2, avg_lengths2, avg_returns2 = sarsa_egreedy(map_file=map, learning_rate=lr2, discount=d2, const=c2, train_episodes=500, q0=q02, final_show=False) c3 = 0.5 lr3 = 0.1 d3 = 0.99 q03 = 0.5 steps3, avg_lengths3, avg_returns3 = sarsa_egreedy(map_file=map, learning_rate=lr3, discount=d3, const=c3, train_episodes=500, q0=q03, final_show=False) c4 = 0.5 lr4 = 0.1 d4 = 0.99 q04 = 1 steps4, avg_lengths4, avg_returns4 = sarsa_egreedy(map_file=map, learning_rate=lr4, discount=d4, const=c4, train_episodes=500, q0=q04, final_show=False) _fig, (ax1, ax2) = plt.subplots(ncols=2) ax1.plot(steps1, avg_lengths1, label="egreedy c:" + str(c1) + " lr=" + str(lr1) + " q0=" + str(q01)) ax1.plot(steps2, avg_lengths2, label="egreedy c:" + str(c2) + " lr=" + str(lr2) + " q0=" + str(q02)) ax1.plot(steps3, avg_lengths3, label="egreedy c:" + str(c3) + " lr=" + str(lr3) + " q0=" + str(q03)) ax1.plot(steps4, avg_lengths4, label="egreedy c:" + str(c4) + " lr=" + str(lr4) + " q0=" + str(q04)) ax1.set_title("Average episode length") ax1.legend() ax2.plot(steps1, avg_returns1, label="egreedy c:" + str(c1) + " lr=" + str(lr1) + " q0=" + str(q01)) ax2.plot(steps2, avg_returns2, label="egreedy c:" + str(c2) + " lr=" + str(lr2) + " q0=" + str(q02)) ax2.plot(steps3, avg_returns3, label="egreedy c:" + str(c3) + " lr=" + str(lr3) + " q0=" + str(q03)) ax2.plot(steps4, avg_returns4, label="egreedy c:" + str(c4) + " lr=" + str(lr4) + " q0=" + str(q04)) ax2.set_title("Average episode return") ax2.legend() plt.show() def plot_softmax(map): lr1 = 0.1 d1 = 0.99 steps1, avg_lengths1, avg_returns1 = sarsa_softmax(map_file=map, learning_rate=lr1, discount=d1, train_episodes=500, q0=0, final_show=False) lr2 = 0.2 d2 = 0.99 steps2, avg_lengths2, avg_returns2 = sarsa_softmax(map_file=map, learning_rate=lr2, discount=d2, train_episodes=500, q0=0, final_show=False) lr3 = 0.4 d3 = 0.99 steps3, avg_lengths3, avg_returns3 = sarsa_softmax(map_file=map, learning_rate=lr3, discount=d3, train_episodes=500, q0=0, final_show=False) lr4 = 0.8 d4 = 0.99 steps4, avg_lengths4, avg_returns4 = sarsa_softmax(map_file=map, learning_rate=lr4, discount=d4, train_episodes=500, q0=0, final_show=False) _fig, (ax1, ax2) = plt.subplots(ncols=2) ax1.plot(steps1, avg_lengths1, label="softmax lr=" + str(lr1)) ax1.plot(steps2, avg_lengths2, label="softmax lr=" + str(lr2)) ax1.plot(steps3, avg_lengths3, label="softmax lr=" + str(lr3)) ax1.plot(steps4, avg_lengths4, label="softmax lr=" + str(lr4)) ax1.set_title("Average episode length") ax1.legend() ax2.plot(steps1, avg_returns1, label="softmax lr=" + str(lr1)) ax2.plot(steps2, avg_returns2, label="softmax lr=" + str(lr2)) ax2.plot(steps3, avg_returns3, label="softmax lr=" + str(lr3)) ax2.plot(steps4, avg_returns4, label="softmax lr=" + str(lr4)) ax2.set_title("Average episode return") ax2.legend() plt.show() if __name__ == '__main__': plot_softmax("MiniGrid-Empty-6x6-v0")
46.804348
105
0.51974
541
4,306
3.970425
0.149723
0.037244
0.037244
0.067039
0.841713
0.785847
0.524209
0.479516
0.294227
0.294227
0
0.101108
0.349977
4,306
91
106
47.318681
0.666309
0
0
0.37037
0
0
0.08105
0.004877
0
0
0
0
0
1
0.024691
false
0
0.012346
0
0.037037
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d9dc61ad925e91e2fe8b6c9fdbaac346c7031a5c
1,284
py
Python
setup.py
ganeshkumarsv/riot
b76b0b74c32046ab27d61fe4cb3c2b2f04f9d0a2
[ "Apache-2.0" ]
12
2020-11-23T16:46:01.000Z
2021-05-16T07:44:49.000Z
setup.py
ganeshkumarsv/riot
b76b0b74c32046ab27d61fe4cb3c2b2f04f9d0a2
[ "Apache-2.0" ]
84
2020-11-23T15:37:06.000Z
2022-01-26T19:18:05.000Z
setup.py
ganeshkumarsv/riot
b76b0b74c32046ab27d61fe4cb3c2b2f04f9d0a2
[ "Apache-2.0" ]
9
2020-11-23T16:55:53.000Z
2022-01-13T20:10:52.000Z
from setuptools import find_packages, setup with open("README.md", "r") as f: long_description = f.read() setup( name="riot", description="A simple Python test runner runner.", url="https://github.com/DataDog/riot", author="Datadog, Inc.", author_email="dev@datadoghq.com", classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", ], entry_points={"console_scripts": ["riot = riot.__main__:main"]}, long_description=long_description, long_description_content_type="text/markdown", license="Apache 2", packages=find_packages(exclude=["tests*"]), package_data={"riot": ["py.typed"]}, python_requires=">=3.6", install_requires=[ "dataclasses; python_version<'3.7'", "click>=7,<8", "virtualenv", "rich", ], setup_requires=["setuptools_scm"], use_scm_version=True, # Required for mypy compatibility, see # https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages zip_safe=False, )
32.1
102
0.63785
147
1,284
5.401361
0.598639
0.143577
0.188917
0.163728
0
0
0
0
0
0
0
0.020568
0.204829
1,284
39
103
32.923077
0.757101
0.102804
0
0.058824
0
0
0.419861
0
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d9e5e0743392171022fdbc998a69f23466bd548a
224
py
Python
PYTHON/Sets/set_union_oper.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/set_union_oper.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/set_union_oper.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if __name__ == '__main__': i = int(input()) A = set(map(int, input().split())) j = int(input()) B = set(map(int, input().split())) res = A.union(B) print(len(res))
18.666667
38
0.544643
34
224
3.352941
0.647059
0.280702
0.157895
0.245614
0.333333
0
0
0
0
0
0
0.005814
0.232143
224
11
39
20.363636
0.656977
0.09375
0
0
0
0
0.039604
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d9ebc748aa8c03a6906e11e765117231b769a509
2,429
py
Python
GrAm/models.py
claudianjeri/Instagram
93b16495c0ec62eb4ab0327d18e3155b82f1b4bd
[ "MIT" ]
3
2018-06-14T12:07:49.000Z
2020-06-16T02:44:14.000Z
GrAm/models.py
claudianjeri/Instagram
93b16495c0ec62eb4ab0327d18e3155b82f1b4bd
[ "MIT" ]
null
null
null
GrAm/models.py
claudianjeri/Instagram
93b16495c0ec62eb4ab0327d18e3155b82f1b4bd
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class Profile(models.Model): profilePic = models.ImageField(upload_to='profile/',null=True,blank=True) bio = models.CharField(max_length=60,blank=True) user = models.ForeignKey(User,on_delete=models.CASCADE) def __str__(self): return self.bio def save_profile(self): self.save() def delete_profile(self): self.delete() @classmethod def get_profile(cls): profile = Profile.objects.all() return profile @classmethod def find_profile(cls,search_term): profile = cls.objects.filter(user__username__icontains=search_term) return profile @classmethod def update_profile(cls,id,bio): updated = Image.objects.filter(id=id).update(bio = bio) return updated class Image(models.Model): image = models.ImageField(upload_to='uploads/', blank=True, null=True) caption = models.CharField(max_length = 60) upload_date = models.DateTimeField(auto_now_add=True) user = models.ForeignKey(User,on_delete=models.CASCADE) profile = models.ForeignKey(Profile,on_delete=models.CASCADE) likes = models.PositiveIntegerField(default=0) def __str__(self): return self.caption class Meta: ordering = ['-upload_date'] def save_image(self): self.save() def delete_image(self): self.delete() @classmethod def update_caption(cls,id,caption): captioned = Image.objects.filter(id=id).update(caption = caption) return captioned @classmethod def get_images(cls): image = Image.objects.all() return image @classmethod def get_image_by_id(cls,id): image = Image.objects.filter(id=Image.id) return image class Comment(models.Model): comments = models.CharField(max_length=60,blank=True,null=True) comment_date = models.DateTimeField(auto_now_add=True) user = models.ForeignKey(User) image = models.ForeignKey(Image,on_delete=models.CASCADE) def __str__(self): return self.comments class Meta: ordering = ['comment_date'] def save_comment(self): return self.save() def delete_comment(self): self.delete() @classmethod def get_comment(cls): comment = Comment.objects.all() return comment
26.402174
77
0.671058
298
2,429
5.302013
0.228188
0.062025
0.035443
0.053165
0.35
0.276582
0.201899
0.160127
0.160127
0.077215
0
0.003717
0.224784
2,429
91
78
26.692308
0.835369
0.009881
0
0.338235
0
0
0.016646
0
0
0
0
0
0
1
0.235294
false
0
0.029412
0.058824
0.691176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8a04d14000f4271c71299f48a5d06e8b4db5cda1
4,211
py
Python
python/commonil.py
cblichmann/binaryninja-api
fb0924a21fcc43f716524d172c7f64249d0e77fd
[ "MIT" ]
589
2016-04-11T11:32:33.000Z
2022-03-30T09:49:37.000Z
python/commonil.py
cblichmann/binaryninja-api
fb0924a21fcc43f716524d172c7f64249d0e77fd
[ "MIT" ]
2,744
2016-04-11T02:47:37.000Z
2022-03-31T21:05:09.000Z
python/commonil.py
cblichmann/binaryninja-api
fb0924a21fcc43f716524d172c7f64249d0e77fd
[ "MIT" ]
178
2016-04-15T00:47:05.000Z
2022-03-24T10:42:54.000Z
# Copyright (c) 2019-2021 Vector 35 Inc # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. from dataclasses import dataclass from .flowgraph import FlowGraph, FlowGraphNode from .enums import BranchType from .interaction import show_graph_report from .log import log_warn # This file contains a list of top level abstract classes for implementing BNIL instructions @dataclass(frozen=True, repr=False) class BaseILInstruction: @classmethod def prepend_parent(cls, graph:FlowGraph, node:FlowGraphNode, nodes={}): for parent in cls.__bases__: if not issubclass(parent, BaseILInstruction): continue if parent.__name__ in nodes: nodes[parent.__name__].add_outgoing_edge(BranchType.UnconditionalBranch, node) else: parent_node = FlowGraphNode(graph) parent_node.lines = [f"{parent.__name__}"] parent_node.add_outgoing_edge(BranchType.UnconditionalBranch, node) graph.append(parent_node) nodes[parent.__name__] = parent_node parent.prepend_parent(graph, parent_node, nodes) @classmethod def add_subgraph(cls, graph, nodes): node = FlowGraphNode(graph) node.lines = [f"{cls.__name__}"] graph.append(node) cls.prepend_parent(graph, node, nodes) return graph @classmethod def show_hierarchy_graph(cls): show_graph_report(f"{cls.__name__}", cls.add_subgraph(FlowGraph(), {})) @dataclass(frozen=True, repr=False) class Constant(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class BinaryOperation(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class UnaryOperation(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class Comparison(BinaryOperation): pass @dataclass(frozen=True, repr=False) class SSA(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class Phi(SSA): pass @dataclass(frozen=True, repr=False) class FloatingPoint(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class ControlFlow(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class Terminal(ControlFlow): pass @dataclass(frozen=True, repr=False) class Loop(ControlFlow): pass @dataclass(frozen=True, repr=False) class Call(ControlFlow): pass @dataclass(frozen=True, repr=False) class Syscall(Call): pass @dataclass(frozen=True, repr=False) class Tailcall(Call): pass @dataclass(frozen=True, repr=False) class Return(Terminal): pass @dataclass(frozen=True, repr=False) class Signed(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class Arithmetic(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class Carry(Arithmetic): pass @dataclass(frozen=True, repr=False) class DoublePrecision(Arithmetic): pass @dataclass(frozen=True, repr=False) class Memory(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class Load(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class Store(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class RegisterStack(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class SetVar(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class StackOperation(BaseILInstruction): pass @dataclass(frozen=True, repr=False) class SetReg: pass
23.52514
92
0.775588
551
4,211
5.836661
0.315789
0.121269
0.153607
0.185945
0.419465
0.419465
0.369092
0.334577
0
0
0
0.002731
0.13061
4,211
178
93
23.657303
0.875717
0.272857
0
0.509434
0
0
0.014798
0
0
0
0
0
0
1
0.028302
false
0.235849
0.04717
0
0.330189
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
8a089ab22687a6c718fe9ddc41ff5fec4a5e80f5
11,869
py
Python
h2o-py/h2o/estimators/isolation_forest.py
13927729580/h2o-3
850ecb214f01340edb62c45242c76212f4b60381
[ "Apache-2.0" ]
1
2019-09-15T18:50:36.000Z
2019-09-15T18:50:36.000Z
h2o-py/h2o/estimators/isolation_forest.py
13927729580/h2o-3
850ecb214f01340edb62c45242c76212f4b60381
[ "Apache-2.0" ]
null
null
null
h2o-py/h2o/estimators/isolation_forest.py
13927729580/h2o-3
850ecb214f01340edb62c45242c76212f4b60381
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # # This file is auto-generated by h2o-3/h2o-bindings/bin/gen_python.py # Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details) # from __future__ import absolute_import, division, print_function, unicode_literals from h2o.estimators.estimator_base import H2OEstimator from h2o.exceptions import H2OValueError from h2o.frame import H2OFrame from h2o.utils.typechecks import assert_is_type, Enum, numeric class H2OIsolationForestEstimator(H2OEstimator): """ Isolation Forest Builds an Isolation Forest model. Isolation Forest algorithm samples the training frame and in each iteration builds a tree that partitions the space of the sample observations until it isolates each observation. Length of the path from root to a leaf node of the resulting tree is used to calculate the anomaly score. Anomalies are easier to isolate and their average tree path is expected to be shorter than paths of regular observations. """ algo = "isolationforest" param_names = {"model_id", "training_frame", "score_each_iteration", "score_tree_interval", "ignored_columns", "ignore_const_cols", "ntrees", "max_depth", "min_rows", "max_runtime_secs", "seed", "build_tree_one_node", "mtries", "sample_size", "sample_rate", "col_sample_rate_change_per_level", "col_sample_rate_per_tree", "categorical_encoding", "stopping_rounds", "stopping_metric", "stopping_tolerance", "export_checkpoints_dir"} def __init__(self, **kwargs): super(H2OIsolationForestEstimator, self).__init__() self._parms = {} for pname, pvalue in kwargs.items(): if pname == 'model_id': self._id = pvalue self._parms["model_id"] = pvalue elif pname in self.param_names: # Using setattr(...) will invoke type-checking of the arguments setattr(self, pname, pvalue) else: raise H2OValueError("Unknown parameter %s = %r" % (pname, pvalue)) @property def training_frame(self): """ Id of the training data frame. Type: ``H2OFrame``. """ return self._parms.get("training_frame") @training_frame.setter def training_frame(self, training_frame): self._parms["training_frame"] = H2OFrame._validate(training_frame, 'training_frame') @property def score_each_iteration(self): """ Whether to score during each iteration of model training. Type: ``bool`` (default: ``False``). """ return self._parms.get("score_each_iteration") @score_each_iteration.setter def score_each_iteration(self, score_each_iteration): assert_is_type(score_each_iteration, None, bool) self._parms["score_each_iteration"] = score_each_iteration @property def score_tree_interval(self): """ Score the model after every so many trees. Disabled if set to 0. Type: ``int`` (default: ``0``). """ return self._parms.get("score_tree_interval") @score_tree_interval.setter def score_tree_interval(self, score_tree_interval): assert_is_type(score_tree_interval, None, int) self._parms["score_tree_interval"] = score_tree_interval @property def ignored_columns(self): """ Names of columns to ignore for training. Type: ``List[str]``. """ return self._parms.get("ignored_columns") @ignored_columns.setter def ignored_columns(self, ignored_columns): assert_is_type(ignored_columns, None, [str]) self._parms["ignored_columns"] = ignored_columns @property def ignore_const_cols(self): """ Ignore constant columns. Type: ``bool`` (default: ``True``). """ return self._parms.get("ignore_const_cols") @ignore_const_cols.setter def ignore_const_cols(self, ignore_const_cols): assert_is_type(ignore_const_cols, None, bool) self._parms["ignore_const_cols"] = ignore_const_cols @property def ntrees(self): """ Number of trees. Type: ``int`` (default: ``50``). """ return self._parms.get("ntrees") @ntrees.setter def ntrees(self, ntrees): assert_is_type(ntrees, None, int) self._parms["ntrees"] = ntrees @property def max_depth(self): """ Maximum tree depth. Type: ``int`` (default: ``8``). """ return self._parms.get("max_depth") @max_depth.setter def max_depth(self, max_depth): assert_is_type(max_depth, None, int) self._parms["max_depth"] = max_depth @property def min_rows(self): """ Fewest allowed (weighted) observations in a leaf. Type: ``float`` (default: ``1``). """ return self._parms.get("min_rows") @min_rows.setter def min_rows(self, min_rows): assert_is_type(min_rows, None, numeric) self._parms["min_rows"] = min_rows @property def max_runtime_secs(self): """ Maximum allowed runtime in seconds for model training. Use 0 to disable. Type: ``float`` (default: ``0``). """ return self._parms.get("max_runtime_secs") @max_runtime_secs.setter def max_runtime_secs(self, max_runtime_secs): assert_is_type(max_runtime_secs, None, numeric) self._parms["max_runtime_secs"] = max_runtime_secs @property def seed(self): """ Seed for pseudo random number generator (if applicable) Type: ``int`` (default: ``-1``). """ return self._parms.get("seed") @seed.setter def seed(self, seed): assert_is_type(seed, None, int) self._parms["seed"] = seed @property def build_tree_one_node(self): """ Run on one node only; no network overhead but fewer cpus used. Suitable for small datasets. Type: ``bool`` (default: ``False``). """ return self._parms.get("build_tree_one_node") @build_tree_one_node.setter def build_tree_one_node(self, build_tree_one_node): assert_is_type(build_tree_one_node, None, bool) self._parms["build_tree_one_node"] = build_tree_one_node @property def mtries(self): """ Number of variables randomly sampled as candidates at each split. If set to -1, defaults (number of predictors)/3. Type: ``int`` (default: ``-1``). """ return self._parms.get("mtries") @mtries.setter def mtries(self, mtries): assert_is_type(mtries, None, int) self._parms["mtries"] = mtries @property def sample_size(self): """ Number of randomly sampled observations used to train each Isolation Forest tree. Only one of parameters sample_size and sample_rate should be defined. If sample_rate is defined, sample_size will be ignored. Type: ``int`` (default: ``256``). """ return self._parms.get("sample_size") @sample_size.setter def sample_size(self, sample_size): assert_is_type(sample_size, None, int) self._parms["sample_size"] = sample_size @property def sample_rate(self): """ Rate of randomly sampled observations used to train each Isolation Forest tree. Needs to be in range from 0.0 to 1.0. If set to -1, sample_rate is disabled and sample_size will be used instead. Type: ``float`` (default: ``-1``). """ return self._parms.get("sample_rate") @sample_rate.setter def sample_rate(self, sample_rate): assert_is_type(sample_rate, None, numeric) self._parms["sample_rate"] = sample_rate @property def col_sample_rate_change_per_level(self): """ Relative change of the column sampling rate for every level (must be > 0.0 and <= 2.0) Type: ``float`` (default: ``1``). """ return self._parms.get("col_sample_rate_change_per_level") @col_sample_rate_change_per_level.setter def col_sample_rate_change_per_level(self, col_sample_rate_change_per_level): assert_is_type(col_sample_rate_change_per_level, None, numeric) self._parms["col_sample_rate_change_per_level"] = col_sample_rate_change_per_level @property def col_sample_rate_per_tree(self): """ Column sample rate per tree (from 0.0 to 1.0) Type: ``float`` (default: ``1``). """ return self._parms.get("col_sample_rate_per_tree") @col_sample_rate_per_tree.setter def col_sample_rate_per_tree(self, col_sample_rate_per_tree): assert_is_type(col_sample_rate_per_tree, None, numeric) self._parms["col_sample_rate_per_tree"] = col_sample_rate_per_tree @property def categorical_encoding(self): """ Encoding scheme for categorical features One of: ``"auto"``, ``"enum"``, ``"one_hot_internal"``, ``"one_hot_explicit"``, ``"binary"``, ``"eigen"``, ``"label_encoder"``, ``"sort_by_response"``, ``"enum_limited"`` (default: ``"auto"``). """ return self._parms.get("categorical_encoding") @categorical_encoding.setter def categorical_encoding(self, categorical_encoding): assert_is_type(categorical_encoding, None, Enum("auto", "enum", "one_hot_internal", "one_hot_explicit", "binary", "eigen", "label_encoder", "sort_by_response", "enum_limited")) self._parms["categorical_encoding"] = categorical_encoding @property def stopping_rounds(self): """ Early stopping based on convergence of stopping_metric. Stop if simple moving average of length k of the stopping_metric does not improve for k:=stopping_rounds scoring events (0 to disable) Type: ``int`` (default: ``0``). """ return self._parms.get("stopping_rounds") @stopping_rounds.setter def stopping_rounds(self, stopping_rounds): assert_is_type(stopping_rounds, None, int) self._parms["stopping_rounds"] = stopping_rounds @property def stopping_metric(self): """ Metric to use for early stopping (AUTO: logloss for classification, deviance for regression and anonomaly_score for Isolation Forest). Note that custom and custom_increasing can only be used in GBM and DRF with the Python client. One of: ``"auto"``, ``"anomaly_score"`` (default: ``"auto"``). """ return self._parms.get("stopping_metric") @stopping_metric.setter def stopping_metric(self, stopping_metric): assert_is_type(stopping_metric, None, Enum("auto", "anomaly_score")) self._parms["stopping_metric"] = stopping_metric @property def stopping_tolerance(self): """ Relative tolerance for metric-based stopping criterion (stop if relative improvement is not at least this much) Type: ``float`` (default: ``0.01``). """ return self._parms.get("stopping_tolerance") @stopping_tolerance.setter def stopping_tolerance(self, stopping_tolerance): assert_is_type(stopping_tolerance, None, numeric) self._parms["stopping_tolerance"] = stopping_tolerance @property def export_checkpoints_dir(self): """ Automatically export generated models to this directory. Type: ``str``. """ return self._parms.get("export_checkpoints_dir") @export_checkpoints_dir.setter def export_checkpoints_dir(self, export_checkpoints_dir): assert_is_type(export_checkpoints_dir, None, str) self._parms["export_checkpoints_dir"] = export_checkpoints_dir
32.340599
184
0.64917
1,466
11,869
4.964529
0.189632
0.054411
0.034625
0.051937
0.2928
0.245672
0.150866
0.13795
0.081616
0.07612
0
0.006673
0.24248
11,869
366
185
32.428962
0.802803
0.288061
0
0.12426
1
0
0.14937
0.030394
0
0
0
0
0.12426
1
0.254438
false
0
0.029586
0
0.426036
0.005917
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
8a1a8ff2a4da8702ad4339915707621ee47a25a3
608
py
Python
chat/views.py
horsehair/unimate
13fd7336307120ea36ff7eb8a28f6d1966222130
[ "MIT" ]
null
null
null
chat/views.py
horsehair/unimate
13fd7336307120ea36ff7eb8a28f6d1966222130
[ "MIT" ]
null
null
null
chat/views.py
horsehair/unimate
13fd7336307120ea36ff7eb8a28f6d1966222130
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.shortcuts import render from django.views import View from rest_framework import permissions from django.contrib.auth.mixins import LoginRequiredMixin # Create your views here. class Index(View): permission_classes = (permissions.IsAuthenticated,) def get(self, request): return render(request, 'chatrooms/index.html') class Room(View): permission_classes = (permissions.IsAuthenticated,) def get(self, request, room_name): return render(request, 'chatrooms/room.html', {'room_name': room_name})
27.636364
79
0.756579
75
608
6.053333
0.413333
0.088106
0.0837
0.110132
0.418502
0.281938
0.281938
0.281938
0.281938
0
0
0
0.152961
608
21
80
28.952381
0.881553
0.077303
0
0.307692
0
0
0.086022
0
0
0
0
0
0
1
0.153846
false
0
0.384615
0.153846
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
0
0
0
2
8a1c055b1ccab9ae0d72f879c9a1ed08b17dd826
229
py
Python
ex012.py
cristianoandrad/ExerciciosPythonCursoEmVideo
362603436b71c8ef8386d7a9ab3c5fed0b8d63f7
[ "MIT" ]
null
null
null
ex012.py
cristianoandrad/ExerciciosPythonCursoEmVideo
362603436b71c8ef8386d7a9ab3c5fed0b8d63f7
[ "MIT" ]
null
null
null
ex012.py
cristianoandrad/ExerciciosPythonCursoEmVideo
362603436b71c8ef8386d7a9ab3c5fed0b8d63f7
[ "MIT" ]
null
null
null
# Faça um algoritmo que leia o preço de um produto e mostre seu novo preço, com 5% de desconto. prod = float(input('Digite o valor do produto: ')) print('O valor do prpduto com desconto é {:.2f}'.format(prod - (prod * 0.05)))
38.166667
96
0.689956
41
229
3.853659
0.707317
0.075949
0.101266
0
0
0
0
0
0
0
0
0.026882
0.187773
229
5
97
45.8
0.822581
0.406114
0
0
0
0
0.507576
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
8a2044f6c113515a4fe6c97d81ef77720c3d6db0
410
py
Python
monte_carlo_gsa/__init__.py
dgdekoning/lca-global-sensitivity-analysis
5de99055a2de4a420c2c318b93b21f9de0da2fd9
[ "BSD-2-Clause" ]
3
2020-10-02T13:37:57.000Z
2021-03-11T08:35:26.000Z
monte_carlo_gsa/__init__.py
dgdekoning/lca-global-sensitivity-analysis
5de99055a2de4a420c2c318b93b21f9de0da2fd9
[ "BSD-2-Clause" ]
null
null
null
monte_carlo_gsa/__init__.py
dgdekoning/lca-global-sensitivity-analysis
5de99055a2de4a420c2c318b93b21f9de0da2fd9
[ "BSD-2-Clause" ]
1
2020-10-02T15:23:42.000Z
2020-10-02T15:23:42.000Z
from .montecarlo import MonteCarloLCA from .sensitivity_analysis import GlobalSensitivityAnalysis from .sensitivity_analysis import ( get_lca, filter_technosphere_exchanges, filter_biosphere_exchanges, get_exchanges, drop_no_uncertainty_exchanges, get_exchanges_dataframe, get_CF_dataframe, get_parameters_DF, get_exchange_values, get_X, get_X_CF, get_X_P, get_problem, )
24.117647
59
0.8
49
410
6.183673
0.510204
0.039604
0.151815
0.191419
0
0
0
0
0
0
0
0
0.156098
410
17
60
24.117647
0.875723
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.176471
0
0.176471
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
8a242714764a2bd2e2be7ba7f0d51593bd73ba31
381
py
Python
ch03/library_app/__manifest__.py
dreispt/Odoo-12-Development-Essentials-Fourth-Edition
4763f91c25c6599daed3aec95c7c92ea098f1446
[ "MIT" ]
121
2018-08-30T10:33:32.000Z
2021-11-08T13:13:43.000Z
ch03/library_app/__manifest__.py
dreispt/Odoo-12-Development-Essentials-Fourth-Edition
4763f91c25c6599daed3aec95c7c92ea098f1446
[ "MIT" ]
2
2019-04-18T11:47:58.000Z
2019-06-21T11:28:21.000Z
ch03/library_app/__manifest__.py
dreispt/Odoo-12-Development-Essentials-Fourth-Edition
4763f91c25c6599daed3aec95c7c92ea098f1446
[ "MIT" ]
152
2018-11-03T14:07:06.000Z
2022-03-05T17:38:36.000Z
{'name': 'Library Management Application', 'description': 'Library books, members and book borrowing.', 'author': 'Daniel Reis', 'depends': ['base'], 'data': [ 'security/library_security.xml', 'security/ir.model.access.csv', 'views/library_menu.xml', 'views/book_view.xml', 'views/book_list_template.xml', ], 'application': True, 'installable': True, }
25.4
61
0.664042
43
381
5.767442
0.674419
0.064516
0.096774
0
0
0
0
0
0
0
0
0
0.149606
381
14
62
27.214286
0.765432
0
0
0
0
0
0.700787
0.28084
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
8a2f41fceb07435413f7d9b69e1fd4d4e7835dc1
535
py
Python
pytoggl/model/workspace.py
cloew/pytoggl
ec559e532559bfeaeb0de7f18831d30ed84f5ff1
[ "MIT" ]
null
null
null
pytoggl/model/workspace.py
cloew/pytoggl
ec559e532559bfeaeb0de7f18831d30ed84f5ff1
[ "MIT" ]
null
null
null
pytoggl/model/workspace.py
cloew/pytoggl
ec559e532559bfeaeb0de7f18831d30ed84f5ff1
[ "MIT" ]
null
null
null
from .actions import Get, Update, AccessApi from .model import Model from .model_for_api import model_for_api from ..api.nested import WorkspaceProjectsApi from ..requests import RequestApis @model_for_api(RequestApis.Workspaces) class Workspace(Model): """ Represents a Toggl Workspace """ get = Get() update = Update() projects = AccessApi(WorkspaceProjectsApi) def __repr__(self): """ String representation of the workspace """ return "<Workspace({0})>".format(self.name)
33.4375
55
0.693458
60
535
6.016667
0.516667
0.066482
0.091413
0
0
0
0
0
0
0
0
0.002358
0.207477
535
16
56
33.4375
0.849057
0.127103
0
0
0
0
0.036446
0
0
0
0
0
0
1
0.083333
false
0
0.416667
0
0.916667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
8a312cc2d01ae96786271ef25258c9893d100694
258
py
Python
dayOneExercises/multiplication_table.py
kindyluv/python30DaysExercises
04e0f760c384cca692fa431cee11c480793d5891
[ "MIT" ]
null
null
null
dayOneExercises/multiplication_table.py
kindyluv/python30DaysExercises
04e0f760c384cca692fa431cee11c480793d5891
[ "MIT" ]
null
null
null
dayOneExercises/multiplication_table.py
kindyluv/python30DaysExercises
04e0f760c384cca692fa431cee11c480793d5891
[ "MIT" ]
null
null
null
number = int(input('Enter a number: ')) times = int(input('Enter a times: ')) def multiplication(numbers, x): z = 1 while z <= numbers: b = '{} x {} = {}'.format(z, x, x * z) print(b) z += 1 multiplication(number, times)
17.2
46
0.523256
35
258
3.857143
0.457143
0.118519
0.192593
0.207407
0
0
0
0
0
0
0
0.010989
0.294574
258
14
47
18.428571
0.730769
0
0
0
0
0
0.167315
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.111111
0.111111
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8a41b08d66247fec7a921d1d82ce0e968c1849a9
325
py
Python
review/urls.py
MNoumanAbbasi/ratefessor
35bf52b040e0018cf345a9dd4e402b790a770bee
[ "MIT" ]
1
2020-11-29T08:16:05.000Z
2020-11-29T08:16:05.000Z
review/urls.py
MNoumanAbbasi/ratefessor
35bf52b040e0018cf345a9dd4e402b790a770bee
[ "MIT" ]
null
null
null
review/urls.py
MNoumanAbbasi/ratefessor
35bf52b040e0018cf345a9dd4e402b790a770bee
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('<prof_id>/<course_name>', views.addReview, name='add-review'), path('<review_id>/<prof_id>/<course_name>', views.deleteReview, name='delete-review'), path('<review_id>/<vote>/<prof_id>/<course_name>', views.voteReview, name='vote-review') ]
36.111111
92
0.698462
44
325
4.977273
0.409091
0.082192
0.164384
0.219178
0.287671
0
0
0
0
0
0
0
0.104615
325
8
93
40.625
0.752577
0
0
0
0
0
0.412308
0.307692
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8a47155815c889ba515f378678e2a41d28557ce3
8,362
py
Python
tests/components/volumio/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/volumio/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/volumio/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Test the Volumio config flow.""" from unittest.mock import patch from homeassistant import config_entries from homeassistant.components import zeroconf from homeassistant.components.volumio.config_flow import CannotConnectError from homeassistant.components.volumio.const import DOMAIN from tests.common import MockConfigEntry TEST_SYSTEM_INFO = {"id": "1111-1111-1111-1111", "name": "TestVolumio"} TEST_CONNECTION = { "host": "1.1.1.1", "port": 3000, } TEST_DISCOVERY = zeroconf.ZeroconfServiceInfo( host="1.1.1.1", addresses=["1.1.1.1"], hostname="mock_hostname", name="mock_name", port=3000, properties={"volumioName": "discovered", "UUID": "2222-2222-2222-2222"}, type="mock_type", ) TEST_DISCOVERY_RESULT = { "host": TEST_DISCOVERY.host, "port": TEST_DISCOVERY.port, "id": TEST_DISCOVERY.properties["UUID"], "name": TEST_DISCOVERY.properties["volumioName"], } async def test_form(hass): """Test we get the form.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_USER} ) assert result["type"] == "form" assert result["errors"] == {} with patch( "homeassistant.components.volumio.config_flow.Volumio.get_system_info", return_value=TEST_SYSTEM_INFO, ), patch( "homeassistant.components.volumio.async_setup_entry", return_value=True, ) as mock_setup_entry: result2 = await hass.config_entries.flow.async_configure( result["flow_id"], TEST_CONNECTION, ) await hass.async_block_till_done() assert result2["type"] == "create_entry" assert result2["title"] == "TestVolumio" assert result2["data"] == {**TEST_SYSTEM_INFO, **TEST_CONNECTION} assert len(mock_setup_entry.mock_calls) == 1 async def test_form_updates_unique_id(hass): """Test a duplicate id aborts and updates existing entry.""" entry = MockConfigEntry( domain=DOMAIN, unique_id=TEST_SYSTEM_INFO["id"], data={ "host": "dummy", "port": 11, "name": "dummy", "id": TEST_SYSTEM_INFO["id"], }, ) entry.add_to_hass(hass) result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_USER} ) with patch( "homeassistant.components.volumio.config_flow.Volumio.get_system_info", return_value=TEST_SYSTEM_INFO, ), patch( "homeassistant.components.volumio.async_setup_entry", return_value=True, ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], TEST_CONNECTION, ) await hass.async_block_till_done() assert result2["type"] == "abort" assert result2["reason"] == "already_configured" assert entry.data == {**TEST_SYSTEM_INFO, **TEST_CONNECTION} async def test_empty_system_info(hass): """Test old volumio versions with empty system info.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_USER} ) assert result["type"] == "form" assert result["errors"] == {} with patch( "homeassistant.components.volumio.config_flow.Volumio.get_system_info", return_value={}, ), patch( "homeassistant.components.volumio.async_setup_entry", return_value=True, ) as mock_setup_entry: result2 = await hass.config_entries.flow.async_configure( result["flow_id"], TEST_CONNECTION, ) await hass.async_block_till_done() assert result2["type"] == "create_entry" assert result2["title"] == TEST_CONNECTION["host"] assert result2["data"] == { "host": TEST_CONNECTION["host"], "port": TEST_CONNECTION["port"], "name": TEST_CONNECTION["host"], "id": None, } assert len(mock_setup_entry.mock_calls) == 1 async def test_form_cannot_connect(hass): """Test we handle cannot connect error.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_USER} ) with patch( "homeassistant.components.volumio.config_flow.Volumio.get_system_info", side_effect=CannotConnectError, ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], TEST_CONNECTION, ) assert result2["type"] == "form" assert result2["errors"] == {"base": "cannot_connect"} async def test_form_exception(hass): """Test we handle generic error.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_USER} ) with patch( "homeassistant.components.volumio.config_flow.Volumio.get_system_info", side_effect=Exception, ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], TEST_CONNECTION, ) assert result2["type"] == "form" assert result2["errors"] == {"base": "unknown"} async def test_discovery(hass): """Test discovery flow works.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_ZEROCONF}, data=TEST_DISCOVERY ) with patch( "homeassistant.components.volumio.config_flow.Volumio.get_system_info", return_value=TEST_SYSTEM_INFO, ), patch( "homeassistant.components.volumio.async_setup_entry", return_value=True, ) as mock_setup_entry: result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input={}, ) await hass.async_block_till_done() assert result2["type"] == "create_entry" assert result2["title"] == TEST_DISCOVERY_RESULT["name"] assert result2["data"] == TEST_DISCOVERY_RESULT assert result2["result"] assert result2["result"].unique_id == TEST_DISCOVERY_RESULT["id"] assert len(mock_setup_entry.mock_calls) == 1 async def test_discovery_cannot_connect(hass): """Test discovery aborts if cannot connect.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_ZEROCONF}, data=TEST_DISCOVERY ) with patch( "homeassistant.components.volumio.config_flow.Volumio.get_system_info", side_effect=CannotConnectError, ): result2 = await hass.config_entries.flow.async_configure( result["flow_id"], user_input={}, ) assert result2["type"] == "abort" assert result2["reason"] == "cannot_connect" async def test_discovery_duplicate_data(hass): """Test discovery aborts if same mDNS packet arrives.""" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_ZEROCONF}, data=TEST_DISCOVERY ) assert result["type"] == "form" assert result["step_id"] == "discovery_confirm" result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_ZEROCONF}, data=TEST_DISCOVERY ) assert result["type"] == "abort" assert result["reason"] == "already_in_progress" async def test_discovery_updates_unique_id(hass): """Test a duplicate discovery id aborts and updates existing entry.""" entry = MockConfigEntry( domain=DOMAIN, unique_id=TEST_DISCOVERY_RESULT["id"], data={ "host": "dummy", "port": 11, "name": "dummy", "id": TEST_DISCOVERY_RESULT["id"], }, state=config_entries.ConfigEntryState.SETUP_RETRY, ) entry.add_to_hass(hass) with patch( "homeassistant.components.volumio.async_setup_entry", return_value=True, ) as mock_setup_entry: result = await hass.config_entries.flow.async_init( DOMAIN, context={"source": config_entries.SOURCE_ZEROCONF}, data=TEST_DISCOVERY, ) await hass.async_block_till_done() assert result["type"] == "abort" assert result["reason"] == "already_configured" assert entry.data == TEST_DISCOVERY_RESULT assert len(mock_setup_entry.mock_calls) == 1
30.856089
87
0.656661
951
8,362
5.519453
0.120925
0.071823
0.048581
0.071252
0.767575
0.714422
0.692322
0.649838
0.629072
0.629072
0
0.013202
0.221
8,362
270
88
30.97037
0.792601
0.003468
0
0.574879
0
0
0.182186
0.091852
0
0
0
0
0.169082
1
0
false
0
0.028986
0
0.028986
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8a5011d384c83cad42fada26cd6bf2a1e3e88c2a
183
py
Python
setup_tellurium.py
ScienceStacks/SBMLlint
b65e570d6041b4779d61eeb4b6d7b68e7b766421
[ "MIT" ]
1
2021-04-25T00:45:57.000Z
2021-04-25T00:45:57.000Z
setup_tellurium.py
ScienceStacks/SBMLlint
b65e570d6041b4779d61eeb4b6d7b68e7b766421
[ "MIT" ]
5
2019-02-19T17:08:37.000Z
2021-08-15T23:15:26.000Z
setup_tellurium.py
ScienceStacks/SBMLlint
b65e570d6041b4779d61eeb4b6d7b68e7b766421
[ "MIT" ]
3
2019-11-21T16:51:54.000Z
2020-08-24T00:42:52.000Z
"""Setup with Tellurim.""" import setup TELLURIUM = "tellurium" install_requires = list(setup.INSTALL_REQUIRES) install_requires.append(TELLURIUM) setup.doSetup(install_requires)
16.636364
47
0.797814
21
183
6.761905
0.47619
0.422535
0
0
0
0
0
0
0
0
0
0
0.092896
183
10
48
18.3
0.855422
0.10929
0
0
0
0
0.057325
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8a70e7f2c1178b4fcca23f27592018f06e88c845
10,937
py
Python
tests/test_higherorder.py
hsadeghidw/dimod
c6b4adc18c22f39fd5a79e6775bbcab84b1a5489
[ "Apache-2.0" ]
null
null
null
tests/test_higherorder.py
hsadeghidw/dimod
c6b4adc18c22f39fd5a79e6775bbcab84b1a5489
[ "Apache-2.0" ]
null
null
null
tests/test_higherorder.py
hsadeghidw/dimod
c6b4adc18c22f39fd5a79e6775bbcab84b1a5489
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import itertools import unittest import dimod from dimod import make_quadratic, poly_energy, poly_energies class TestMakeQuadratic(unittest.TestCase): def test__spin_prod(self): bqm = dimod.higherorder.utils._spin_product(['a', 'b', 'p', 'aux']) for v in ['a', 'b', 'p', 'aux']: self.assertIn(v, bqm.variables) self.assertEqual(len(bqm), 4) # has an auxiliary variable seen = set() samples = dimod.ExactSolver().sample(bqm) for sample, energy in samples.data(['sample', 'energy']): if energy == 0: self.assertEqual(sample['a'] * sample['b'], sample['p']) seen.add((sample['a'], sample['b'], sample['p'])) if sample['a'] * sample['b'] != sample['p']: self.assertGreaterEqual(energy, 1) # gap 1 self.assertEqual(seen, {(-1, -1, +1), (-1, +1, -1), (+1, -1, -1), (+1, +1, +1)}) def test__binary_prod(self): variables = ['a', 'b', 'p'] bqm = dimod.higherorder.utils._binary_product(variables) for v in variables: self.assertIn(v, bqm.variables) self.assertEqual(len(bqm), 3) seen = set() samples = dimod.ExactSolver().sample(bqm) for sample, energy in samples.data(['sample', 'energy']): if energy == 0: self.assertEqual(sample['a'] * sample['b'], sample['p']) seen.add((sample['a'], sample['b'], sample['p'])) if sample['a'] * sample['b'] != sample['p']: self.assertGreaterEqual(energy, 1) # gap 1 self.assertEqual(seen, {(0, 0, 0), (0, 1, 0), (1, 0, 0), (1, 1, 1)}) def test_empty(self): bqm = make_quadratic({}, 1.0, dimod.SPIN) self.assertEqual(bqm, dimod.BinaryQuadraticModel.empty(dimod.SPIN)) def test_no_higher_order(self): poly = {(0, 1): -1, (1, 2): 1} bqm = make_quadratic(poly, 1.0, dimod.SPIN) variables = set().union(*poly) aux_variables = tuple(set(bqm.linear) - variables) variables = tuple(variables) for config in itertools.product((-1, 1), repeat=len(variables)): sample = dict(zip(variables, config)) energy = poly_energy(sample, poly) reduced_energies = [] for aux_config in itertools.product((-1, 1), repeat=len(aux_variables)): aux_sample = dict(zip(aux_variables, aux_config)) aux_sample.update(sample) reduced_energies.append(bqm.energy(aux_sample)) self.assertAlmostEqual(energy, min(reduced_energies)) def test_simple(self): poly = {(0, 1, 2): -1} bqm = make_quadratic(poly, 5.0, dimod.SPIN) variables = set().union(*poly) aux_variables = tuple(set(bqm.linear) - variables) variables = tuple(variables) self.assertTrue(aux_variables) for config in itertools.product((-1, 1), repeat=len(variables)): sample = dict(zip(variables, config)) energy = poly_energy(sample, poly) reduced_energies = [] for aux_config in itertools.product((-1, 1), repeat=len(aux_variables)): aux_sample = dict(zip(aux_variables, aux_config)) aux_sample.update(sample) reduced_energies.append(bqm.energy(aux_sample)) self.assertAlmostEqual(energy, min(reduced_energies)) def test_several_terms(self): poly = {(0, 1, 2): -1, (1, 2, 3): 1, (0, 2, 3): .5, (0,): .4, (): .5} bqm = make_quadratic(poly, 5.0, bqm=dimod.BinaryQuadraticModel.empty(dimod.SPIN)) variables = set().union(*poly) aux_variables = tuple(set(bqm.linear) - variables) variables = tuple(variables) self.assertTrue(aux_variables) for config in itertools.product((-1, 1), repeat=len(variables)): sample = dict(zip(variables, config)) energy = poly_energy(sample, poly) reduced_energies = [] for aux_config in itertools.product((-1, 1), repeat=len(aux_variables)): aux_sample = dict(zip(aux_variables, aux_config)) aux_sample.update(sample) reduced_energies.append(bqm.energy(aux_sample)) self.assertAlmostEqual(energy, min(reduced_energies)) def test_bug(self): # from a bug report # https://support.dwavesys.com/hc/en-us/community/posts/360035719954-dimod-make-quadratic-returns-error H = {(0, 1, 0, 1): -4.61898, (0, 1, 1, 0): 4.61898, (0, 2, 0, 2): -5.18353, (0, 2, 2, 0): 5.18353, (1, 0, 0, 1): 4.61898, (1, 0, 1, 0): -4.61898, (1, 2, 2, 1): 4.97017, (2, 0, 0, 2): 5.18353, (2, 0, 2, 0): -5.18353, (2, 1, 1, 2): 4.97017, } bqm = make_quadratic(H, 1, 'BINARY') # should be no aux variables self.assertEqual(set(bqm.variables), {0, 1, 2}) def test_another(self): J = {(0, 1, 2): -1, (0, 1, 3): -1, (2, 3, 0): 1, (3, 2, 0): -1} h = {0: 0, 1: 0, 2: 0, 3: 0} off = .5 poly = J.copy() poly.update({(v,): bias for v, bias in h.items()}) poly[()] = off bqm = make_quadratic(J, 5.0, bqm=dimod.BinaryQuadraticModel.from_ising(h, {}, off)) variables = set(h).union(*J) aux_variables = tuple(set(bqm.linear) - variables) variables = tuple(variables) self.assertTrue(aux_variables) for config in itertools.product((-1, 1), repeat=len(variables)): sample = dict(zip(variables, config)) energy = poly_energy(sample, poly) reduced_energies = [] for aux_config in itertools.product((-1, 1), repeat=len(aux_variables)): aux_sample = dict(zip(aux_variables, aux_config)) aux_sample.update(sample) reduced_energies.append(bqm.energy(aux_sample)) self.assertAlmostEqual(energy, min(reduced_energies)) def test_vartype(self): poly = {(0, 1, 2): 10, (0, 1): 5} # make sure (0, 1) is most common self.assertEqual(dimod.make_quadratic(poly, 1.0, 'SPIN'), dimod.make_quadratic(poly, 1.0, dimod.SPIN)) self.assertEqual(dimod.make_quadratic(poly, 1.0, 'BINARY'), dimod.make_quadratic(poly, 1.0, dimod.BINARY)) def test_quad_to_linear(self): J = {(0, 1): -1, (0, 1, 2): 1, (0, 1, 3): 1} h = {} off = .5 poly = J.copy() poly.update({(v,): bias for v, bias in h.items()}) poly[()] = off bqm = make_quadratic(J, 10.0, bqm=dimod.BinaryQuadraticModel.from_ising(h, {}, off)) variables = set(h).union(*J) aux_variables = tuple(set(bqm.linear) - variables) variables = tuple(variables) self.assertTrue(aux_variables) for config in itertools.product((-1, 1), repeat=len(variables)): sample = dict(zip(variables, config)) energy = poly_energy(sample, poly) reduced_energies = [] for aux_config in itertools.product((-1, 1), repeat=len(aux_variables)): aux_sample = dict(zip(aux_variables, aux_config)) aux_sample.update(sample) reduced_energies.append(bqm.energy(aux_sample)) self.assertAlmostEqual(energy, min(reduced_energies)) def test_linear_and_offset(self): poly = {(0,): .5, tuple(): 1.3} bqm = dimod.make_quadratic(poly, 10.0, dimod.BINARY) self.assertEqual(bqm, dimod.BinaryQuadraticModel({0: .5}, {}, 1.3, dimod.BINARY)) def test_binary_polynomial(self): HUBO = {(0, 1, 2): .5, (0, 1): 1.3, (2, 4, 1): -1, (3, 2): -1} bqm = make_quadratic(HUBO, 1000.0, dimod.BINARY) variables = set().union(*HUBO) aux_variables = tuple(set(bqm.linear) - variables) variables = tuple(variables) self.assertTrue(aux_variables) for config in itertools.product((0, 1), repeat=len(variables)): sample = dict(zip(variables, config)) energy = poly_energy(sample, HUBO) reduced_energies = [] for aux_config in itertools.product((0, 1), repeat=len(aux_variables)): aux_sample = dict(zip(aux_variables, aux_config)) aux_sample.update(sample) reduced_energies.append(bqm.energy(aux_sample)) self.assertAlmostEqual(energy, min(reduced_energies)) def test_poly_energies(self): linear = {0: 1.0, 1: 1.0} j = {(0, 1, 2): 0.5} poly = dimod.BinaryPolynomial.from_hising(linear, j) samples = [[1, 1, -1], [1, -1, 1], [1, 1, 1], [-1, 1, -1]] en = poly_energies(samples, poly) self.assertListEqual(list(en), [1.5, -0.5, 2.5, 0.5]) en = poly_energy(samples[0], poly) self.assertAlmostEqual(en, 1.5) with self.assertRaises(ValueError): poly_energy(samples, poly) poly = {('a',): 1.0, ('b',): 1.0, ('a', 'b', 'c'): 0.5} samples = [{'a': 1, 'b': 1, 'c': -1}, {'a': 1, 'b': -1, 'c': 1}, {'a': 1, 'b': 1, 'c': 1}, {'a': -1, 'b': 1, 'c': -1}] en = poly_energies(samples, poly) self.assertListEqual(list(en), [1.5, -0.5, 2.5, 0.5]) en = poly_energy(samples[0], poly) self.assertAlmostEqual(en, 1.5) with self.assertRaises(ValueError): poly_energy(samples, poly)
37.584192
111
0.526744
1,324
10,937
4.251511
0.133686
0.015278
0.011725
0.012791
0.728016
0.712027
0.686268
0.666904
0.641855
0.625511
0
0.05015
0.330895
10,937
290
112
37.713793
0.719049
0.073238
0
0.590244
0
0
0.008898
0
0
0
0
0
0.156098
1
0.063415
false
0
0.019512
0
0.087805
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8a771c57c914d6d8c284b033c0e60e14ddf3b3e8
376
py
Python
config.py
sunbohong/hammer
a3d17681ceb2e0da14a6c4533a34db39262b534b
[ "Apache-2.0" ]
null
null
null
config.py
sunbohong/hammer
a3d17681ceb2e0da14a6c4533a34db39262b534b
[ "Apache-2.0" ]
null
null
null
config.py
sunbohong/hammer
a3d17681ceb2e0da14a6c4533a34db39262b534b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # condition = '(![(NSString *)[[NSThread callStackSymbols] description] containsString:@"test1"])&&(![(NSString *)[[NSThread callStackSymbols] description] containsString:@"test2"])' condition = '1' # 忽略 C++ 的异常 IGNORE_CXX_COUNT = 0 IGNORE_CXX_CONDITION = condition # 忽略 OC 的异常 IGNORE_OC_COUNT = 0 IGNORE_OC_CONDITION = condition
25.066667
182
0.712766
43
376
6.046512
0.534884
0.123077
0.246154
0.330769
0.438462
0
0
0
0
0
0
0.018127
0.119681
376
14
183
26.857143
0.767372
0.638298
0
0
0
0
0.007634
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8a93a379fce90c74fea273a35c91e31a145b936a
462
py
Python
ckanext/ckanext-apicatalog_scheming/ckanext/apicatalog_scheming/schema.py
vrk-kpa/api-catalog
1150e0f288a96c27657a0c4a02dac96ce1134894
[ "MIT" ]
17
2015-10-28T11:39:30.000Z
2022-01-25T22:25:37.000Z
ckanext/ckanext-apicatalog_scheming/ckanext/apicatalog_scheming/schema.py
vrk-kpa/api-catalog
1150e0f288a96c27657a0c4a02dac96ce1134894
[ "MIT" ]
19
2016-05-22T06:09:54.000Z
2022-03-18T09:58:28.000Z
ckanext/ckanext-apicatalog_scheming/ckanext/apicatalog_scheming/schema.py
vrk-kpa/api-catalog
1150e0f288a96c27657a0c4a02dac96ce1134894
[ "MIT" ]
9
2015-12-24T04:43:46.000Z
2020-04-10T06:00:00.000Z
from ckan.logic.schema import validator_args @validator_args def create_user_to_organization_schema(not_empty, unicode_safe, email_validator, business_id_validator): return { "fullname": [not_empty, unicode_safe], "email": [not_empty, unicode_safe, email_validator], "business_id": [not_empty, unicode_safe, business_id_validator], "organization_name": [not_empty, unicode_safe] }
35.538462
79
0.679654
52
462
5.576923
0.423077
0.137931
0.258621
0.327586
0.37931
0.296552
0.296552
0.296552
0
0
0
0
0.233766
462
12
80
38.5
0.819209
0
0
0
0
0
0.088745
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
0.3
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8a93b06c31ce297f1a1ea5eca796db87ecfab841
216
py
Python
avocado/util/hash.py
avocado-fork-workaround/avocado-blockchain
c177ef0356384a4ed91822a437edb4d7a8717cef
[ "Apache-2.0" ]
16
2021-07-07T08:21:28.000Z
2022-02-09T04:28:42.000Z
avocado/util/hash.py
avocado-fork-workaround/avocado-blockchain
c177ef0356384a4ed91822a437edb4d7a8717cef
[ "Apache-2.0" ]
null
null
null
avocado/util/hash.py
avocado-fork-workaround/avocado-blockchain
c177ef0356384a4ed91822a437edb4d7a8717cef
[ "Apache-2.0" ]
1
2021-08-18T16:39:49.000Z
2021-08-18T16:39:49.000Z
import blspy from avocado.types.blockchain_format.sized_bytes import bytes32 def std_hash(b) -> bytes32: """ The standard hash used in many places. """ return bytes32(blspy.Util.hash256(bytes(b)))
19.636364
63
0.708333
30
216
5
0.766667
0
0
0
0
0
0
0
0
0
0
0.051136
0.185185
216
10
64
21.6
0.801136
0.175926
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
0
0
0
2
8a96ff1569ef20f115d2c5f24849d27e17c8d98c
712
py
Python
clear_code.py
ffel/piff
bc73b446374707179059c2069c420292ab37eb49
[ "MIT" ]
null
null
null
clear_code.py
ffel/piff
bc73b446374707179059c2069c420292ab37eb49
[ "MIT" ]
null
null
null
clear_code.py
ffel/piff
bc73b446374707179059c2069c420292ab37eb49
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Clear included code. $ pandoc --filter clear_code.py see http://pandoc.org/scripting.html ''' from __future__ import print_function import sys import os.path import re # print all debug info to stderr def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) from pandocfilters import toJSONFilter, CodeBlock def insertfile(key, value, fmt, meta): if key == 'CodeBlock': [[ident, classes, kvs], code] = value kv = {key: value for key, value in kvs} if "include" in kv and os.path.isfile(kv["include"]): return CodeBlock([ident, classes, kvs], "") return None if __name__ == "__main__": toJSONFilter(insertfile)
22.25
61
0.664326
95
712
4.831579
0.589474
0.052288
0.091503
0.104575
0
0
0
0
0
0
0
0
0.206461
712
31
62
22.967742
0.812389
0.206461
0
0
0
0
0.055755
0
0
0
0
0
0
1
0.125
false
0
0.3125
0
0.5625
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
8aad1e945962b4046508bed95b1b2e4f60ee9362
1,685
py
Python
manage.py
winhtaikaung/simple-flask-template
7d54127c79aac9ac12986cbc2cac05bb0ebf50b9
[ "WTFPL" ]
null
null
null
manage.py
winhtaikaung/simple-flask-template
7d54127c79aac9ac12986cbc2cac05bb0ebf50b9
[ "WTFPL" ]
null
null
null
manage.py
winhtaikaung/simple-flask-template
7d54127c79aac9ac12986cbc2cac05bb0ebf50b9
[ "WTFPL" ]
null
null
null
import calendar import datetime import os import time from os.path import join, dirname from time import strftime, gmtime from dotenv import load_dotenv from flask import Flask from flask_migrate import Migrate, MigrateCommand from flask_script import Manager from flask_sqlalchemy import SQLAlchemy from sqlalchemy import Column, Integer, String, VARCHAR, Boolean, DECIMAL, DATE from sqlalchemy.orm import relationship dotenv_path = join(dirname(__file__), '.env') load_dotenv(dotenv_path) app = Flask(__name__) # OR, the same with increased verbosity: from database import engine url = os.environ["DB_URL_FORMAT"] url = url.format(os.environ["DB_USER_NAME"], os.environ["DB_PASSWORD"], os.environ["DB_HOST"], os.environ["DB_PORT"], os.environ["DB_NAME"]) app.config['SQLALCHEMY_DATABASE_URI'] = str(url) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) def generate_uuid(): import uuid return str(uuid.uuid4()) def gen_cursor(): return str(time.time()) class BaseModel(object): id = Column(Integer, primary_key=True) object_id = Column(String(50), unique=True, index=True, default=generate_uuid) created_date = Column(VARCHAR,index=True, default=str(strftime("%Y-%m-%d %X", gmtime()))) cursor = Column(DECIMAL, default=gen_cursor, index=True) is_disabled = Column(Boolean, default=False) updated_date = Column(VARCHAR,index=True, default=str(strftime("%Y-%m-%d %X", gmtime()))) class User(BaseModel) name=Column(VARCHAR) email=Column(VARCHAR) migrate = Migrate(app, db) manager = Manager(app) manager.add_command('db', MigrateCommand) if __name__ == '__main__': manager.run()
27.622951
117
0.740059
233
1,685
5.158798
0.369099
0.044925
0.054908
0.036606
0.08985
0.08985
0.08985
0.08985
0.08985
0.08985
0
0.002068
0.138872
1,685
61
118
27.622951
0.826327
0.022552
0
0
0
0
0.0887
0.032199
0
0
0
0
0
0
null
null
0.023256
0.348837
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
8abe1cd19eb4f714ffc347009fd7e55c9aa4b271
372,998
py
Python
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/api/OpenMaya.py
CountZer0/PipelineConstructionSet
0aa73a8a63c72989b2d1c677efd78dad4388d335
[ "BSD-3-Clause" ]
21
2015-04-27T05:01:36.000Z
2021-11-22T13:45:14.000Z
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/api/_OpenMaya_py2.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
null
null
null
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/api/_OpenMaya_py2.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
7
2015-04-11T11:37:19.000Z
2020-05-22T09:49:04.000Z
class MTransformationMatrix(object): """ Manipulate the individual components of a transformation. """ def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def asMatrix(*args, **kwargs): """ Interpolates between the identity transformation and that currently in the object, returning the result as an MMatrix. """ pass def asMatrixInverse(*args, **kwargs): """ Returns the inverse of the matrix representing the transformation. """ pass def asRotateMatrix(*args, **kwargs): """ Returns the matrix which takes points from object space to the space immediately following the scale/shear/rotation transformations. """ pass def asScaleMatrix(*args, **kwargs): """ Returns the matrix which takes points from object space to the space immediately following scale and shear transformations. """ pass def isEquivalent(*args, **kwargs): """ Returns true if this transformation's matrix is within tolerance of another's matrix. """ pass def reorderRotation(*args, **kwargs): """ Reorders the transformation's rotate component to give the same overall rotation but using a new order or rotations. """ pass def rotateBy(*args, **kwargs): """ Adds to the transformation's rotation component. """ pass def rotateByComponents(*args, **kwargs): """ Adds to the transformation's rotation component. """ pass def rotatePivot(*args, **kwargs): """ Returns the transformation's rotate pivot component. """ pass def rotatePivotTranslation(*args, **kwargs): """ Returns the transformation's rotate pivot translation component. """ pass def rotation(*args, **kwargs): """ Returns the transformation's rotation component as either an Euler rotation or a quaternion. """ pass def rotationComponents(*args, **kwargs): """ Returns a list containing the four components of the transformation's rotate component. """ pass def rotationOrder(*args, **kwargs): """ Returns the order of rotations when the transformation's rotate component is expressed as an euler rotation. """ pass def rotationOrientation(*args, **kwargs): """ Returns a quaternion which orients the local rotation space. """ pass def scale(*args, **kwargs): """ Returns a list containing the transformation's scale components. """ pass def scaleBy(*args, **kwargs): """ Multiplies the transformation's scale components by the three floats in the provided sequence. """ pass def scalePivot(*args, **kwargs): """ Returns the transformation's scale pivot component. """ pass def scalePivotTranslation(*args, **kwargs): """ Returns the transformation's scale pivot translation component. """ pass def setRotatePivot(*args, **kwargs): """ Sets the transformation's rotate pivot component. """ pass def setRotatePivotTranslation(*args, **kwargs): """ Sets the transformation's rotate pivot translation component. """ pass def setRotation(*args, **kwargs): """ Sets the transformation's rotation component. """ pass def setRotationComponents(*args, **kwargs): """ Sets the transformation's rotate component from the four values in the provided sequence. """ pass def setRotationOrientation(*args, **kwargs): """ Sets a quaternion which orients the local rotation space. """ pass def setScale(*args, **kwargs): """ Sets the transformation's scale components to the three floats in the provided sequence. """ pass def setScalePivot(*args, **kwargs): """ Sets the transformation's scale pivot component. """ pass def setScalePivotTranslation(*args, **kwargs): """ Sets the transformation's scale pivot translation component. """ pass def setShear(*args, **kwargs): """ Sets the transformation's shear component. """ pass def setToRotationAxis(*args, **kwargs): """ Sets the transformation's rotate component to be a given axis vector and angle in radians. """ pass def setTranslation(*args, **kwargs): """ Sets the transformation's translation component. """ pass def shear(*args, **kwargs): """ Returns a list containing the transformation's shear components. """ pass def shearBy(*args, **kwargs): """ Multiplies the transformation's shear components by the three floats in the provided sequence. """ pass def translateBy(*args, **kwargs): """ Adds a vector to the transformation's translation component. """ pass def translation(*args, **kwargs): """ Returns the transformation's translation component as a vector. """ pass __new__ = None kIdentity = None kInvalid = 0 kLast = 7 kTolerance = 1e-10 kXYZ = 1 kXZY = 4 kYXZ = 5 kYZX = 2 kZXY = 3 kZYX = 6 class MSyntax(object): """ Syntax for commands. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addArg(*args, **kwargs): """ Add a command argument. """ pass def addFlag(*args, **kwargs): """ Add a flag and its arguments. """ pass def makeFlagMultiUse(*args, **kwargs): """ Set whether a flag may be used multiple times on the command line. """ pass def makeFlagQueryWithFullArgs(*args, **kwargs): """ Set whether a flag requires its args when queried. """ pass def maxObjects(*args, **kwargs): """ Returns the maximum number of objects which can be passed to the command. """ pass def minObjects(*args, **kwargs): """ Returns the minimum number of objects which can be passed to the command. """ pass def setMaxObjects(*args, **kwargs): """ Sets the maximum number of objects which can be passed to the command. """ pass def setMinObjects(*args, **kwargs): """ Sets the minimum number of objects which can be passed to the command. """ pass def setObjectType(*args, **kwargs): """ Set the type and number of objects to be passed to the command. """ pass def useSelectionAsDefault(*args, **kwargs): """ If set to True then when no objects are provided on the command-line Maya will pass the current selection instead. """ pass enableEdit = None enableQuery = None __new__ = None kAngle = 8 kBoolean = 2 kDistance = 7 kDouble = 4 kInvalidArgType = 0 kInvalidObjectFormat = 0 kLastArgType = 11 kLastObjectFormat = 4 kLong = 3 kNoArg = 1 kNone = 1 kSelectionItem = 10 kSelectionList = 3 kString = 5 kStringObjects = 2 kTime = 9 kUnsigned = 6 class MDoubleArray(object): """ Array of double values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MFnBase(object): """ Base class for function sets. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def hasObj(*args, **kwargs): """ Returns True if the function set is compatible with the specified Maya object. """ pass def object(*args, **kwargs): """ Returns a reference to the object to which the function set is currently attached, or MObject.kNullObj if none. """ pass def setObject(*args, **kwargs): """ Attaches the function set to the specified Maya object. """ pass def type(*args, **kwargs): """ Returns the type of the function set. """ pass __new__ = None class MAttributePattern(object): """ Manipulate attribute structure patterns. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def addRootAttr(*args, **kwargs): """ Add the given root attribute to this pattern. """ pass def name(*args, **kwargs): """ Return the name of the attribute pattern. """ pass def removeRootAttr(*args, **kwargs): """ Return the nth or passed-in root attribute from this pattern. """ pass def rootAttr(*args, **kwargs): """ Return the nth root attribute in this pattern. """ pass def rootAttrCount(*args, **kwargs): """ Return the number of root attributes in this pattern. """ pass def attrPattern(*args, **kwargs): """ Return the specified pattern indexed from the global list. """ pass def attrPatternCount(*args, **kwargs): """ Return the global number of patterns created. """ pass def findPattern(*args, **kwargs): """ Return a pattern with the given name, None if not found. """ pass __new__ = None class MFloatVectorArray(object): """ Array of MFloatVector values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MAngle(object): """ Manipulate angular data. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def asAngMinutes(*args, **kwargs): """ Returns the angular value, converted to minutes of arc. """ pass def asAngSeconds(*args, **kwargs): """ Returns the angular value, converted to seconds of arc. """ pass def asDegrees(*args, **kwargs): """ Returns the angular value, converted to degrees. """ pass def asRadians(*args, **kwargs): """ Returns the angular value, converted to radians. """ pass def asUnits(*args, **kwargs): """ Returns the angular value, converted to the specified units. """ pass def internalToUI(*args, **kwargs): """ Converts a value from Maya's internal units to the units used in the UI. """ pass def internalUnit(*args, **kwargs): """ Returns the angular unit used internally by Maya. """ pass def setUIUnit(*args, **kwargs): """ Sets the angular unit used in Maya's UI. """ pass def uiToInternal(*args, **kwargs): """ Converts a value from the units used in the UI to Maya's internal units. """ pass def uiUnit(*args, **kwargs): """ Returns the units used to display angles in Maya's UI. """ pass unit = None value = None __new__ = None kAngMinutes = 3 kAngSeconds = 4 kDegrees = 2 kInvalid = 0 kLast = 5 kRadians = 1 class MEulerRotation(object): """ X, Y and Z rotations, applied in a specified order. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __isub__(*args, **kwargs): """ x.__isub__(y) <==> x-=y """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __neg__(*args, **kwargs): """ x.__neg__() <==> -x """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def alternateSolution(*args, **kwargs): """ Returns an equivalent rotation which is not simply a multiple. """ pass def asMatrix(*args, **kwargs): """ Returns the rotation as an equivalent matrix. """ pass def asQuaternion(*args, **kwargs): """ Returns the rotation as an equivalent quaternion. """ pass def asVector(*args, **kwargs): """ Returns the X, Y and Z rotations as a vector. """ pass def bound(*args, **kwargs): """ Returns a new MEulerRotation having this rotation, but with each rotation component bound within +/- PI. """ pass def boundIt(*args, **kwargs): """ In-place bounding of each rotation component to lie wthin +/- PI. """ pass def closestCut(*args, **kwargs): """ Returns the rotation which is full spin multiples of this one and comes closest to target. """ pass def closestSolution(*args, **kwargs): """ Returns the equivalent rotation which comes closest to a target. """ pass def incrementalRotateBy(*args, **kwargs): """ Increase this rotation by a given angle around the specified axis. The update is done in series of small increments to avoid flipping. """ pass def inverse(*args, **kwargs): """ Returns a new MEulerRotation containing the inverse rotation of this one and reversed rotation order. """ pass def invertIt(*args, **kwargs): """ In-place inversion of the rotation. Rotation order is also reversed. """ pass def isEquivalent(*args, **kwargs): """ Returns true if this rotation has the same order as another and their X, Y and Z components are within a tolerance of each other. """ pass def isZero(*args, **kwargs): """ Returns true if the X, Y and Z components are each within a tolerance of 0.0. """ pass def reorder(*args, **kwargs): """ Returns a new MEulerRotation having this rotation, reordered to use the given rotation order. """ pass def reorderIt(*args, **kwargs): """ In-place reordering to use the given rotation order. """ pass def setToAlternateSolution(*args, **kwargs): """ Replace this rotation with an alternate solution. """ pass def setToClosestCut(*args, **kwargs): """ Replace this rotation with the closest cut to a target. """ pass def setToClosestSolution(*args, **kwargs): """ Replace this rotation with the closest solution to a target. """ pass def setValue(*args, **kwargs): """ Set the rotation. """ pass def computeAlternateSolution(*args, **kwargs): """ Returns an equivalent rotation which is not simply a multiple. """ pass def computeBound(*args, **kwargs): """ Returns an equivalent rotation with each rotation component bound within +/- PI. """ pass def computeClosestCut(*args, **kwargs): """ Returns the rotation which is full spin multiples of the src and comes closest to target. """ pass def computeClosestSolution(*args, **kwargs): """ Returns the equivalent rotation which comes closest to a target. """ pass def decompose(*args, **kwargs): """ Extracts a rotation from a matrix. """ pass order = None x = None y = None z = None __new__ = None kIdentity = None kTolerance = 1e-10 kXYZ = 0 kXZY = 3 kYXZ = 4 kYZX = 1 kZXY = 2 kZYX = 5 class MBoundingBox(object): """ 3D axis-aligned bounding box. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def clear(*args, **kwargs): """ Empties the bounding box, setting its corners to (0, 0, 0). """ pass def contains(*args, **kwargs): """ Returns True if a point lies within the bounding box. """ pass def expand(*args, **kwargs): """ Expands the bounding box to include a point or other bounding box. """ pass def intersects(*args, **kwargs): """ Returns True if any part of a given bounding box lies within this one. """ pass def transformUsing(*args, **kwargs): """ Multiplies the bounding box's corners by a matrix. """ pass center = None depth = None height = None max = None min = None width = None __new__ = None class MUint64Array(object): """ Array of MUint64 values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MIntArray(object): """ Array of int values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MDistance(object): """ Manipulate distance data. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def asCentimeters(*args, **kwargs): """ Return the distance value, converted to centimeters. """ pass def asFeet(*args, **kwargs): """ Return the distance value, converted to feet. """ pass def asInches(*args, **kwargs): """ Return the distance value, converted to inches. """ pass def asKilometers(*args, **kwargs): """ Return the distance value, converted to kilometers. """ pass def asMeters(*args, **kwargs): """ Return the distance value, converted to meters. """ pass def asMiles(*args, **kwargs): """ Return the distance value, converted to miles. """ pass def asMillimeters(*args, **kwargs): """ Return the distance value, converted to millimeters. """ pass def asUnits(*args, **kwargs): """ Return the distance value, converted to the specified units. """ pass def asYards(*args, **kwargs): """ Return the distance value, converted to yards. """ pass def internalToUI(*args, **kwargs): """ Convert a value from Maya's internal units to the units used in the UI. """ pass def internalUnit(*args, **kwargs): """ Return the distance unit used internally by Maya. """ pass def setUIUnit(*args, **kwargs): """ Change the units used to display distances in Maya's UI. """ pass def uiToInternal(*args, **kwargs): """ Convert a value from the units used in the UI to Maya's internal units. """ pass def uiUnit(*args, **kwargs): """ Return the units used to display distances in Maya's UI. """ pass unit = None value = None __new__ = None kCentimeters = 6 kFeet = 2 kInches = 1 kInvalid = 0 kKilometers = 7 kLast = 9 kMeters = 8 kMiles = 4 kMillimeters = 5 kYards = 3 class MUintArray(object): """ Array of unsigned int values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MMatrix(object): """ 4x4 matrix with double-precision elements. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __isub__(*args, **kwargs): """ x.__isub__(y) <==> x-=y """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def adjoint(*args, **kwargs): """ Returns a new matrix containing this matrix's adjoint. """ pass def det3x3(*args, **kwargs): """ Returns the determinant of the 3x3 matrix formed by the first 3 elements of the first 3 rows of this matrix. """ pass def det4x4(*args, **kwargs): """ Returns this matrix's determinant. """ pass def getElement(*args, **kwargs): """ Returns the matrix element for the specified row and column. """ pass def homogenize(*args, **kwargs): """ Returns a new matrix containing the homogenized version of this matrix. """ pass def inverse(*args, **kwargs): """ Returns a new matrix containing this matrix's inverse. """ pass def isEquivalent(*args, **kwargs): """ Test for equivalence of two matrices, within a tolerance. """ pass def isSingular(*args, **kwargs): """ Returns True if this matrix is singular. """ pass def setElement(*args, **kwargs): """ Sets the matrix element for the specified row and column. """ pass def setToIdentity(*args, **kwargs): """ Sets this matrix to the identity. """ pass def setToProduct(*args, **kwargs): """ Sets this matrix to the product of the two matrices passed in. """ pass def transpose(*args, **kwargs): """ Returns a new matrix containing this matrix's transpose. """ pass __new__ = None kIdentity = None kTolerance = 1e-10 class MDagPath(object): """ Path to a DAG node from the top of the DAG. """ def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def apiType(*args, **kwargs): """ Returns the type of the object at the end of the path. """ pass def child(*args, **kwargs): """ Returns the specified child of the object at the end of the path. """ pass def childCount(*args, **kwargs): """ Returns the number of objects parented directly beneath the object at the end of the path. """ pass def exclusiveMatrix(*args, **kwargs): """ Returns the matrix for all transforms in the path, excluding the end object. """ pass def exclusiveMatrixInverse(*args, **kwargs): """ Returns the inverse of exclusiveMatrix(). """ pass def extendToShape(*args, **kwargs): """ Extends the path to the specified shape node parented directly beneath the transform at the current end of the path. """ pass def fullPathName(*args, **kwargs): """ Returns a string representation of the path from the DAG root to the path's last node. """ pass def getPath(*args, **kwargs): """ Returns the specified sub-path of this path. """ pass def hasFn(*args, **kwargs): """ Returns True if the object at the end of the path supports the given function set. """ pass def inclusiveMatrix(*args, **kwargs): """ Returns the matrix for all transforms in the path, including the end object, if it is a transform. """ pass def inclusiveMatrixInverse(*args, **kwargs): """ Returns the inverse of inclusiveMatrix(). """ pass def instanceNumber(*args, **kwargs): """ Returns the instance number of this path to the object at the end. """ pass def isInstanced(*args, **kwargs): """ Returns True if the object at the end of the path can be reached by more than one path. """ pass def isTemplated(*args, **kwargs): """ Returns true if the DAG Node at the end of the path is templated. """ pass def isValid(*args, **kwargs): """ Returns True if this is a valid path. """ pass def isVisible(*args, **kwargs): """ Returns true if the DAG Node at the end of the path is visible. """ pass def length(*args, **kwargs): """ Returns the number of nodes on the path, not including the DAG's root node. """ pass def node(*args, **kwargs): """ Returns the DAG node at the end of the path. """ pass def numberOfShapesDirectlyBelow(*args, **kwargs): """ Returns the number of shape nodes parented directly beneath the transform at the end of the path. """ pass def partialPathName(*args, **kwargs): """ Returns the minimum string representation which will uniquely identify the path. """ pass def pathCount(*args, **kwargs): """ Returns the number of sub-paths which make up this path. """ pass def pop(*args, **kwargs): """ Removes objects from the end of the path. """ pass def push(*args, **kwargs): """ Extends the path to the specified child object, which must be parented directly beneath the object currently at the end of the path. """ pass def set(*args, **kwargs): """ Replaces the current path held by this object with another. """ pass def transform(*args, **kwargs): """ Returns the last transform node on the path. """ pass def getAPathTo(*args, **kwargs): """ Returns the first path found to the given node. """ pass def getAllPathsTo(*args, **kwargs): """ Returns all paths to the given node. """ pass __new__ = None class MTime(object): """ Manipulate time data. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __div__(*args, **kwargs): """ x.__div__(y) <==> x/y """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __idiv__(*args, **kwargs): """ x.__idiv__(y) <==> x/=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __isub__(*args, **kwargs): """ x.__isub__(y) <==> x-=y """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __rdiv__(*args, **kwargs): """ x.__rdiv__(y) <==> y/x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def asUnits(*args, **kwargs): """ Return the time value, converted to the specified units. """ pass def setUIUnit(*args, **kwargs): """ Change the units used to display time in Maya's UI. """ pass def uiUnit(*args, **kwargs): """ Return the units used to display time in Maya's UI. """ pass unit = None value = None __new__ = None k100FPS = 25 k10FPS = 18 k1200FPS = 38 k120FPS = 26 k125FPS = 27 k12FPS = 19 k1500FPS = 39 k150FPS = 28 k16FPS = 20 k2000FPS = 40 k200FPS = 29 k20FPS = 21 k240FPS = 30 k250FPS = 31 k2FPS = 12 k3000FPS = 41 k300FPS = 32 k375FPS = 33 k3FPS = 13 k400FPS = 34 k40FPS = 22 k4FPS = 14 k500FPS = 35 k5FPS = 15 k6000FPS = 42 k600FPS = 36 k6FPS = 16 k750FPS = 37 k75FPS = 23 k80FPS = 24 k8FPS = 17 kFilm = 6 kGames = 5 kHours = 1 kInvalid = 0 kLast = 44 kMilliseconds = 4 kMinutes = 2 kNTSCField = 11 kNTSCFrame = 8 kPALField = 10 kPALFrame = 7 kSeconds = 3 kShowScan = 9 kUserDef = 43 class MMeshIsectAccelParams(object): """ Opaque class used to store parameters used by MFnMesh's intersection calculations for later re-use. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass __new__ = None class MFloatArray(object): """ Array of float values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MVector(object): """ 3D vector with double-precision coordinates. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __div__(*args, **kwargs): """ x.__div__(y) <==> x/y """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __idiv__(*args, **kwargs): """ x.__idiv__(y) <==> x/=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __isub__(*args, **kwargs): """ x.__isub__(y) <==> x-=y """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __neg__(*args, **kwargs): """ x.__neg__() <==> -x """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __rdiv__(*args, **kwargs): """ x.__rdiv__(y) <==> y/x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __rxor__(*args, **kwargs): """ x.__rxor__(y) <==> y^x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def __xor__(*args, **kwargs): """ x.__xor__(y) <==> x^y """ pass def angle(*args, **kwargs): """ Returns the angle, in radians, between this vector and another. """ pass def isEquivalent(*args, **kwargs): """ Returns True if this vector and another are within a given tolerance of being equal. """ pass def isParallel(*args, **kwargs): """ Returns True if this vector and another are within the given tolerance of being parallel. """ pass def length(*args, **kwargs): """ Returns the magnitude of this vector. """ pass def normal(*args, **kwargs): """ Returns a new vector containing the normalized version of this one. """ pass def normalize(*args, **kwargs): """ Normalizes this vector in-place and returns a new reference to it. """ pass def rotateBy(*args, **kwargs): """ Returns the vector resulting from rotating this one by the given amount. """ pass def rotateTo(*args, **kwargs): """ Returns the quaternion which will rotate this vector into another. """ pass def transformAsNormal(*args, **kwargs): """ Returns a new vector which is calculated by postmultiplying this vector by the transpose of the given matrix's inverse and then normalizing the result. """ pass x = None y = None z = None __new__ = None kOneVector = None kTolerance = 1e-10 kWaxis = 3 kXaxis = 0 kXaxisVector = None kXnegAxisVector = None kYaxis = 1 kYaxisVector = None kYnegAxisVector = None kZaxis = 2 kZaxisVector = None kZeroVector = None kZnegAxisVector = None class MDGModifier(object): """ Used to change the structure of the dependency graph. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addAttribute(*args, **kwargs): """ addAttribute(MObject node, MObject attribute) -> self Adds an operation to the modifier to add a new dynamic attribute to the given dependency node. If the attribute is a compound its children will be added as well, so only the parent needs to be added using this method. """ pass def addExtensionAttribute(*args, **kwargs): """ addExtensionAttribute(MNodeClass nodeClass, MObject attribute) -> self Adds an operation to the modifier to add a new extension attribute to the given node class. If the attribute is a compound its children will be added as well, so only the parent needs to be added using this method. """ pass def commandToExecute(*args, **kwargs): """ commandToExecute(command) -> self Adds an operation to the modifier to execute a MEL command. The specified command must be undoable otherwise unexpected results may occur. It is best to use multiple commandToExecute() calls rather than batching multiple commands into one call to commandToExecute(). They will still be undone together, as a single undo action by the user, but Maya will better be able to recover if one of the commands fails. """ pass def connect(*args, **kwargs): """ connect(MPlug source, MPlug dest) -> self connect(MObject sourceNode, MObject sourceAttr, MObject destNode, MObject destAttr) -> self Adds an operation to the modifier that connects two plugs in the dependency graph. It is the user's responsibility to ensure that the source and destination attributes are of compatible types. For instance, if the source attribute is a nurbs surface then the destination must also be a nurbs surface. Plugs can either be specified with node and attribute MObjects or with MPlugs. """ pass def createNode(*args, **kwargs): """ createNode(typeName) -> MObject createNode(MTypeId typeId) -> MObject Adds an operation to the modifier to create a node of the given type. The new node is created and returned but will not be added to the Dependency Graph until the modifier's doIt() method is called. Raises TypeError if the named node type does not exist or if it is a DAG node type. """ pass def deleteNode(*args, **kwargs): """ deleteNode(MObject node) -> self Adds an operation to the modifer which deletes the specified node from the Dependency Graph. If the modifier already contains other operations on the same node (e.g. a disconnect) then they should be committed by calling the modifier's doIt() before the deleteNode operation is added. """ pass def disconnect(*args, **kwargs): """ disconnect(MPlug source, MPlug dest) -> self disconnect(MObject sourceNode, MObject sourceAttr, MObject destNode, MObject destAttr) -> self Adds an operation to the modifier that breaks a connection between two plugs in the dependency graph. Plugs can either be specified with node and attribute MObjects or with MPlugs. """ pass def doIt(*args, **kwargs): """ doIt() -> self Executes the modifier's operations. If doIt() is called multiple times in a row, without any intervening calls to undoIt(), then only the operations which were added since the previous doIt() call will be executed. If undoIt() has been called then the next call to doIt() will do all operations. """ pass def linkExtensionAttributeToPlugin(*args, **kwargs): """ linkExtensionAttributeToPlugin(MObject plugin, MObject attribute) -> self The plugin can call this method to indicate that the extension attribute defines part of the plugin, regardless of the node type to which it attaches itself. This requirement is used when the plugin is checked to see if it is in use or if is able to be unloaded or if it is required as part of a stored file. For compound attributes only the topmost parent attribute may be passed in and all of its children will be included, recursively. Thus it's not possible to link a child attribute to a plugin by itself. Note that the link is established immediately and is not affected by the modifier's doIt() or undoIt() methods. """ pass def newPlugValue(*args, **kwargs): """ newPlugValue(MPlug plug, MObject value) -> self Adds an operation to the modifier to set the value of a plug, where value is an MObject data wrapper, such as created by the various MFn*Data classes. """ pass def newPlugValueBool(*args, **kwargs): """ newPlugValueBool(MPlug plug, bool value) -> self Adds an operation to the modifier to set a value onto a bool plug. """ pass def newPlugValueChar(*args, **kwargs): """ newPlugValueChar(MPlug plug, int value) -> self Adds an operation to the modifier to set a value onto a char (single byte signed integer) plug. """ pass def newPlugValueDouble(*args, **kwargs): """ newPlugValueDouble(MPlug plug, float value) -> self Adds an operation to the modifier to set a value onto a double-precision float plug. """ pass def newPlugValueFloat(*args, **kwargs): """ newPlugValueFloat(MPlug plug, float value) -> self Adds an operation to the modifier to set a value onto a single-precision float plug. """ pass def newPlugValueInt(*args, **kwargs): """ newPlugValueInt(MPlug plug, int value) -> self Adds an operation to the modifier to set a value onto an int plug. """ pass def newPlugValueMAngle(*args, **kwargs): """ newPlugValueMAngle(MPlug plug, MAngle value) -> self Adds an operation to the modifier to set a value onto an angle plug. """ pass def newPlugValueMDistance(*args, **kwargs): """ newPlugValueMDistance(MPlug plug, MDistance value) -> self Adds an operation to the modifier to set a value onto a distance plug. """ pass def newPlugValueMTime(*args, **kwargs): """ newPlugValueMTime(MPlug plug, MTime value) -> self Adds an operation to the modifier to set a value onto a time plug. """ pass def newPlugValueShort(*args, **kwargs): """ newPlugValueShort(MPlug plug, int value) -> self Adds an operation to the modifier to set a value onto a short integer plug. """ pass def newPlugValueString(*args, **kwargs): """ newPlugValueString(MPlug plug, string value) -> self Adds an operation to the modifier to set a value onto a string plug. """ pass def removeAttribute(*args, **kwargs): """ removeAttribute(MObject node, MObject attribute) -> self Adds an operation to the modifier to remove a dynamic attribute from the given dependency node. If the attribute is a compound its children will be removed as well, so only the parent needs to be removed using this method. The attribute MObject passed in will be set to kNullObj. There should be no function sets attached to the attribute at the time of the call as their behaviour may become unpredictable. """ pass def removeExtensionAttribute(*args, **kwargs): """ removeExtensionAttribute(MNodeClass nodeClass, MObject attribute) -> self Adds an operation to the modifier to remove an extension attribute from the given node class. If the attribute is a compound its children will be removed as well, so only the parent needs to be removed using this method. The attribute MObject passed in will be set to kNullObj. There should be no function sets attached to the attribute at the time of the call as their behaviour may become unpredictable. """ pass def removeExtensionAttributeIfUnset(*args, **kwargs): """ removeExtensionAttributeIfUnset(MNodeClass nodeClass, MObject attribute) -> self Adds an operation to the modifier to remove an extension attribute from the given node class, but only if there are no nodes in the graph with non-default values for this attribute. If the attribute is a compound its children will be removed as well, so only the parent needs to be removed using this method. The attribute MObject passed in will be set to kNullObj. There should be no function sets attached to the attribute at the time of the call as their behaviour may become unpredictable. """ pass def renameNode(*args, **kwargs): """ renameNode(MObject node, string newName) -> self Adds an operation to the modifer to rename a node. """ pass def setNodeLockState(*args, **kwargs): """ setNodeLockState(MObject node, bool newState) -> self Adds an operation to the modifier to set the lockState of a node. """ pass def undoIt(*args, **kwargs): """ undoIt() -> self Undoes all of the operations that have been given to this modifier. It is only valid to call this method after the doIt() method has been called. """ pass def unlinkExtensionAttributeFromPlugin(*args, **kwargs): """ unlinkExtensionAttributeFromPlugin(MObject plugin, MObject attribute) -> self The plugin can call this method to indicate that it no longer requires an extension attribute for its operation. This requirement is used when the plugin is checked to see if it is in use or if is able to be unloaded or if it is required as part of a stored file. For compound attributes only the topmost parent attribute may be passed in and all of its children will be unlinked, recursively. Thus it's not possible to unlink a child attribute from a plugin by itself. Note that the link is broken immediately and is not affected by the modifier's doIt() or undoIt() methods. """ pass __new__ = None class MSpace(object): """ Static class providing coordinate space constants. """ kInvalid = 0 kLast = 5 kObject = 2 kPostTransform = 3 kPreTransform = 2 kTransform = 1 kWorld = 4 class MColorArray(object): """ Array of MColor values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MPoint(object): """ 3D point with double-precision coordinates. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __div__(*args, **kwargs): """ x.__div__(y) <==> x/y """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __isub__(*args, **kwargs): """ x.__isub__(y) <==> x-=y """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __rdiv__(*args, **kwargs): """ x.__rdiv__(y) <==> y/x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def cartesianize(*args, **kwargs): """ Convert point to cartesian form. """ pass def distanceTo(*args, **kwargs): """ Return distance between this point and another. """ pass def homogenize(*args, **kwargs): """ Convert point to homogenous form. """ pass def isEquivalent(*args, **kwargs): """ Test for equivalence of two points, within a tolerance. """ pass def rationalize(*args, **kwargs): """ Convert point to rational form. """ pass w = None x = None y = None z = None __new__ = None kOrigin = None kTolerance = 1e-10 class MFloatMatrix(object): """ 4x4 matrix with single-precision elements. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __isub__(*args, **kwargs): """ x.__isub__(y) <==> x-=y """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def adjoint(*args, **kwargs): """ Returns a new matrix containing this matrix's adjoint. """ pass def det3x3(*args, **kwargs): """ Returns the determinant of the 3x3 matrix formed by the first 3 elements of the first 3 rows of this matrix. """ pass def det4x4(*args, **kwargs): """ Returns this matrix's determinant. """ pass def getElement(*args, **kwargs): """ Returns the matrix element for the specified row and column. """ pass def homogenize(*args, **kwargs): """ Returns a new matrix containing the homogenized version of this matrix. """ pass def inverse(*args, **kwargs): """ Returns a new matrix containing this matrix's inverse. """ pass def isEquivalent(*args, **kwargs): """ Test for equivalence of two matrices, within a tolerance. """ pass def setElement(*args, **kwargs): """ Sets the matrix element for the specified row and column. """ pass def setToIdentity(*args, **kwargs): """ Sets this matrix to the identity. """ pass def setToProduct(*args, **kwargs): """ Sets this matrix to the product of the two matrices passed in. """ pass def transpose(*args, **kwargs): """ Returns a new matrix containing this matrix's transpose. """ pass __new__ = None kTolerance = 9.999999747378752e-06 class MDagPathArray(object): """ Array of MDagPath values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MObjectArray(object): """ Array of MObject values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MDGContext(object): """ Dependency graph context. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def getTime(*args, **kwargs): """ Returns the time at which this context is set to evaluate. """ pass def isNormal(*args, **kwargs): """ Returns True if the context is set to evaluate normally. Returns False if the context is set to evaluate at a specific time. """ pass __new__ = None kNormal = None class MVectorArray(object): """ Array of MVector values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MMeshSmoothOptions(object): """ Options for control of smooth mesh generation. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass boundaryRule = None divisions = None keepBorderEdge = None keepHardEdge = None propEdgeHardness = None smoothUVs = None smoothness = None __new__ = None kCreaseAll = 1 kCreaseEdge = 2 kInvalid = -1 kLast = 3 kLegacy = 0 class MPointArray(object): """ Array of MPoint values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MTypeId(object): """ Stores a Maya object type identifier. """ def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def id(*args, **kwargs): """ Returns the type id as a long. """ pass __new__ = None class MFloatPoint(object): """ 3D point with single-precision coordinates. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __div__(*args, **kwargs): """ x.__div__(y) <==> x/y """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __isub__(*args, **kwargs): """ x.__isub__(y) <==> x-=y """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __rdiv__(*args, **kwargs): """ x.__rdiv__(y) <==> y/x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def cartesianize(*args, **kwargs): """ Convert point to cartesian form. """ pass def distanceTo(*args, **kwargs): """ Return distance between this point and another. """ pass def homogenize(*args, **kwargs): """ Convert point to homogenous form. """ pass def isEquivalent(*args, **kwargs): """ Test for equivalence of two points, within a tolerance. """ pass def rationalize(*args, **kwargs): """ Convert point to rational form. """ pass w = None x = None y = None z = None __new__ = None kOrigin = None kTolerance = 1e-10 class MPlug(object): """ Create and access dependency node plugs. """ def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def array(*args, **kwargs): """ Returns a plug for the array of plugs of which this plug is an element. """ pass def asBool(*args, **kwargs): """ Retrieves the plug's value, as a boolean. """ pass def asChar(*args, **kwargs): """ Retrieves the plug's value, as a single-byte integer. """ pass def asDouble(*args, **kwargs): """ Retrieves the plug's value, as a double-precision float. """ pass def asFloat(*args, **kwargs): """ Retrieves the plug's value, as a single-precision float. """ pass def asInt(*args, **kwargs): """ Retrieves the plug's value, as a regular integer. """ pass def asMAngle(*args, **kwargs): """ Retrieves the plug's value, as an MAngle. """ pass def asMDistance(*args, **kwargs): """ Retrieves the plug's value, as an MDistance. """ pass def asMObject(*args, **kwargs): """ Retrieves the plug's value, as as an MObject containing a direct reference to the plug's data. """ pass def asMTime(*args, **kwargs): """ Retrieves the plug's value, as an MTime. """ pass def asShort(*args, **kwargs): """ Retrieves the plug's value, as a short integer. """ pass def asString(*args, **kwargs): """ Retrieves the plug's value, as a string. """ pass def attribute(*args, **kwargs): """ Returns the attribute currently referenced by this plug. """ pass def child(*args, **kwargs): """ Returns a plug for the specified child attribute of this plug. """ pass def connectedTo(*args, **kwargs): """ Returns an array of plugs which are connected to this one. """ pass def connectionByPhysicalIndex(*args, **kwargs): """ Returns a plug for the index'th connected element of this plug. """ pass def constructHandle(*args, **kwargs): """ Constructs a data handle for the plug. """ pass def destructHandle(*args, **kwargs): """ Destroys a data handle previously constructed using constructHandle(). """ pass def elementByLogicalIndex(*args, **kwargs): """ Returns a plug for the element of this plug array having the specified logical index. """ pass def elementByPhysicalIndex(*args, **kwargs): """ Returns a plug for the element of this plug array having the specified physical index. """ pass def evaluateNumElements(*args, **kwargs): """ Like numElements() but evaluates all connected elements first to ensure that they are included in the count. """ pass def getExistingArrayAttributeIndices(*args, **kwargs): """ Returns an array of all the plug's logical indices which are currently in use. """ pass def getSetAttrCmds(*args, **kwargs): """ Returns a list of strings containing the setAttr commands (in MEL syntax) for this plug and all of its descendents. """ pass def isFreeToChange(*args, **kwargs): """ Returns a value indicating if the plug's value can be changed, after taking into account the effects of locking and connections. """ pass def logicalIndex(*args, **kwargs): """ Returns this plug's logical index within its parent array. """ pass def name(*args, **kwargs): """ Returns the name of the plug. """ pass def node(*args, **kwargs): """ Returns the node that this plug belongs to. """ pass def numChildren(*args, **kwargs): """ Returns the number of children this plug has. """ pass def numConnectedChildren(*args, **kwargs): """ Returns the number of this plug's children which have connections. """ pass def numConnectedElements(*args, **kwargs): """ Returns the number of this plug's elements which have connections. """ pass def numElements(*args, **kwargs): """ Returns the number of the plug's logical indices which are currently in use. Connected elements which have not yet been evaluated may not yet fully exist and may be excluded from the count. """ pass def parent(*args, **kwargs): """ Returns a plug for the parent of this plug. """ pass def partialName(*args, **kwargs): """ Returns the name of the plug, formatted according to various criteria. """ pass def selectAncestorLogicalIndex(*args, **kwargs): """ Changes the logical index of the specified attribute in the plug's path. """ pass def setAttribute(*args, **kwargs): """ Switches the plug to reference the given attribute of the same node as the previously referenced attribute. """ pass def setBool(*args, **kwargs): """ Sets the plug's value as a boolean. """ pass def setChar(*args, **kwargs): """ Sets the plug's value as a single-byte integer. """ pass def setDouble(*args, **kwargs): """ Sets the plug's value as a double-precision float. """ pass def setFloat(*args, **kwargs): """ Sets the plug's value as a single-precision float. """ pass def setInt(*args, **kwargs): """ Sets the plug's value as a regular integer. """ pass def setMAngle(*args, **kwargs): """ Sets the plug's value as an MAngle. """ pass def setMDataHandle(*args, **kwargs): """ Sets the plug's value as a data handle. """ pass def setMDistance(*args, **kwargs): """ Sets the plug's value as an MDistance. """ pass def setMObject(*args, **kwargs): """ Sets the plug's value as an MObject. """ pass def setMPxData(*args, **kwargs): """ Sets the plug's value using custom plug-in data. """ pass def setMTime(*args, **kwargs): """ Sets the plug's value as an MTime. """ pass def setNumElements(*args, **kwargs): """ Pre-allocates space for count elements in an array of plugs. """ pass def setShort(*args, **kwargs): """ Sets the plug's value as a short integer. """ pass def setString(*args, **kwargs): """ Sets the plug's value as a string. """ pass info = None isArray = None isCaching = None isChannelBox = None isChild = None isCompound = None isConnected = None isDestination = None isDynamic = None isElement = None isFromReferencedFile = None isIgnoredWhenRendering = None isKeyable = None isLocked = None isNetworked = None isNull = None isProcedural = None isSource = None __new__ = None kAll = 0 kChanged = 2 kChildrenNotFreeToChange = 2 kFreeToChange = 0 kLastAttrSelector = 3 kNonDefault = 1 kNotFreeToChange = 1 class MArgParser(object): """ Command argument list parser. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def commandArgumentBool(*args, **kwargs): """ commandArgumentBool(argIndex) -> bool Returns the specified command argument as a bool. """ pass def commandArgumentDouble(*args, **kwargs): """ Alias for commandArgumentFloat(). """ pass def commandArgumentFloat(*args, **kwargs): """ commandArgumentFloat(argIndex) -> float Returns the specified command argument as a float. """ pass def commandArgumentInt(*args, **kwargs): """ commandArgumentInt(argIndex) -> int Returns the specified command argument as an int. """ pass def commandArgumentMAngle(*args, **kwargs): """ commandArgumentMAngle(argIndex) -> MAngle Returns the specified command argument as an MAngle. """ pass def commandArgumentMDistance(*args, **kwargs): """ commandArgumentMDistance(argIndex) -> MDistance Returns the specified command argument as an MDistance. """ pass def commandArgumentMTime(*args, **kwargs): """ commandArgumentMTime(argIndex) -> MTime Returns the specified command argument as an MTime. """ pass def commandArgumentString(*args, **kwargs): """ commandArgumentString(argIndex) -> unicode string Returns the specified command argument as a string. """ pass def flagArgumentBool(*args, **kwargs): """ flagArgumentBool(flagName, argIndex) -> bool Returns the specified argument of the specified single-use flag as a bool. """ pass def flagArgumentDouble(*args, **kwargs): """ flagArgumentDouble(flagName, argIndex) -> float Alias for flagArgumentFloat(). """ pass def flagArgumentFloat(*args, **kwargs): """ flagArgumentFloat(flagName, argIndex) -> float Returns the specified argument of the specified single-use flag as a float. """ pass def flagArgumentInt(*args, **kwargs): """ flagArgumentInt(flagName, argIndex) -> int Returns the specified argument of the specified single-use flag as an int. """ pass def flagArgumentMAngle(*args, **kwargs): """ flagArgumentMAngle(flagName, argIndex) -> MAngle Returns the specified argument of the specified single-use flag as an MAngle. """ pass def flagArgumentMDistance(*args, **kwargs): """ flagArgumentMDistance(flagName, argIndex) -> MDistance Returns the specified argument of the specified single-use flag as an MDistance. """ pass def flagArgumentMTime(*args, **kwargs): """ flagArgumentMTime(flagName, argIndex) -> MTime Returns the specified argument of the specified single-use flag as an MTime. """ pass def flagArgumentString(*args, **kwargs): """ flagArgumentString(flagName, argIndex) -> string Returns the specified argument of the specified single-use flag as a string. """ pass def getFlagArgumentList(*args, **kwargs): """ getFlagArgumentList(flagName, occurrence) -> MArgList Returns the arguments for the specified occurrence of the given multi-use flag as an MArgList. Raises RuntimeError if the flag has not been enabled for multi-use. Raises IndexError if occurrence is out of range. """ pass def getFlagArgumentPosition(*args, **kwargs): """ getFlagArgumentPosition(flagName, occurrence) -> int Returns the position in the argument list of the specified occurrence of the given flag. Raises IndexError if occurrence is out of range. """ pass def getObjectStrings(*args, **kwargs): """ getObjectStrings() -> tuple of unicode strings If the command's MSyntax has set the object format to kStringObjects then this method will return the objects passed to the command as a tuple of strings. If any other object format is set then an empty tuple will be returned. """ pass def isFlagSet(*args, **kwargs): """ isFlagSet(flagName) -> bool Returns True if the given flag appears on the command line. """ pass def numberOfFlagUses(*args, **kwargs): """ numberOfFlagUses(flagName) -> int Returns the number of times that the flag appears on the command line. """ pass isEdit = None isQuery = None numberOfFlagsUsed = None __new__ = None class MQuaternion(object): """ Quaternion math. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __neg__(*args, **kwargs): """ x.__neg__() <==> -x """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def asAxisAngle(*args, **kwargs): """ Returns the rotation as a tuple containing an axis vector and an angle in radians about that axis. """ pass def asEulerRotation(*args, **kwargs): """ Returns the rotation as an equivalent MEulerRotation. """ pass def asMatrix(*args, **kwargs): """ Returns the rotation as an equivalent rotation matrix. """ pass def conjugate(*args, **kwargs): """ Returns the conjugate of this quaternion (i.e. x, y and z components negated). """ pass def conjugateIt(*args, **kwargs): """ In-place conjugation (i.e. negates the x, y and z components). """ pass def exp(*args, **kwargs): """ Returns a new quaternion containing the exponent of this one. """ pass def inverse(*args, **kwargs): """ Returns a new quaternion containing the inverse of this one. """ pass def invertIt(*args, **kwargs): """ In-place inversion. """ pass def isEquivalent(*args, **kwargs): """ Returns True if the distance between the two quaternions (in quaternion space) is less than or equal to the given tolerance. """ pass def log(*args, **kwargs): """ Returns a new quaternion containing the natural log of this one. """ pass def negateIt(*args, **kwargs): """ In-place negation of the x, y, z and w components. """ pass def normal(*args, **kwargs): """ Returns a new quaternion containing the normalized version of this one (i.e. scaled to unit length). """ pass def normalizeIt(*args, **kwargs): """ In-place normalization (i.e. scales the quaternion to unit length). """ pass def setToXAxis(*args, **kwargs): """ Set this quaternion to be equivalent to a rotation of a given angle, in radians, about the X-axis. """ pass def setToYAxis(*args, **kwargs): """ Set this quaternion to be equivalent to a rotation of a given angle, in radians, about the Y-axis. """ pass def setToZAxis(*args, **kwargs): """ Set this quaternion to be equivalent to a rotation of a given angle, in radians, about the Z-axis. """ pass def setValue(*args, **kwargs): """ Set the value of this quaternion to that of the specified MQuaternion, MEulerRotation, MMatrix or MVector and angle. """ pass def slerp(*args, **kwargs): """ Returns the quaternion at a given interpolation value along the shortest path between two quaternions. """ pass def squad(*args, **kwargs): """ Returns the quaternion at a given interpolation value along a cubic curve segment in quaternion space. """ pass def squadPt(*args, **kwargs): """ Returns a new quaternion representing an intermediate point which when used with squad() will produce a C1 continuous spline. """ pass w = None x = None y = None z = None __new__ = None kIdentity = None kTolerance = 1e-10 class MPxAttributePatternFactory(object): """ Base class for custom attribute pattern factories. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass __new__ = None class MColor(object): """ Manipulate color data. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __div__(*args, **kwargs): """ x.__div__(y) <==> x/y """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __idiv__(*args, **kwargs): """ x.__idiv__(y) <==> x/=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __rdiv__(*args, **kwargs): """ x.__rdiv__(y) <==> y/x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def getColor(*args, **kwargs): """ Returns a list containing the color's components, in the specified color model. """ pass def setColor(*args, **kwargs): """ Sets the color's components and color model. """ pass a = None b = None g = None r = None __new__ = None kByte = 1 kCMY = 2 kCMYK = 3 kFloat = 0 kHSV = 1 kOpaqueBlack = None kRGB = 0 kShort = 2 class MSelectionList(object): """ A heterogenous list of MObjects, MPlugs and MDagPaths. __init__() Initializes a new, empty MSelectionList object. __init__(MSelectionList other) Initializes a new MSelectionList object containing the same items as another list. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def add(*args, **kwargs): """ add(pattern, searchChildNamespaces=False) -> self add(item, mergeWithExisting=True) -> self The first version adds to the list any nodes, DAG paths, components or plugs which match the given the pattern string. The second version adds the specific item to the list, where the item can be a plug (MPlug), a node (MObject), a DAG path (MDagPath) or a component (tuple of (MDagPath, MObject) ). """ pass def clear(*args, **kwargs): """ clear() -> self Empties the selection list. """ pass def copy(*args, **kwargs): """ copy(src) -> self Replaces the contents of the selection list with a copy of those from src (MSelectionList). """ pass def getComponent(*args, **kwargs): """ getComponent(index) -> (MDagPath, MObject) Returns the index'th item of the list as a component, represented by a tuple containing an MDagPath and an MObject. If the item is just a DAG path without a component then MObject.kNullObj will be returned in the second element of the tuple. Raises TypeError if the item is neither a DAG path nor a component. Raises IndexError if index is out of range. """ pass def getDagPath(*args, **kwargs): """ getDagPath(index) -> MDagPath Returns the DAG path associated with the index'th item of the list. Raises TypeError if the item is neither a DAG path nor a component. Raises IndexError if index is out of range. """ pass def getDependNode(*args, **kwargs): """ getDependNode(index) -> MObject Returns the node associated with the index'th item, whether it be a dependency node, DAG path, component or plug. Raises IndexError if index is out of range. """ pass def getPlug(*args, **kwargs): """ getPlug(index) -> MPlug Returns the index'th item of the list as a plug. Raises TypeError if the item is not a plug. Raises IndexError if index is out of range. """ pass def getSelectionStrings(*args, **kwargs): """ getSelectionStrings(index=None) -> (string, string, ...) Returns a tuple containing the string representation of the specified item. For nodes, DAG paths, plugs and contiguous components the tuple will only contain a single string, but for non- contiguous components there will be a separate string for each distinct block of contiguous elements. If index is not specified then the string representations of all the items in the selection list are returned. Raises IndexError if index is out of bounds. """ pass def hasItem(*args, **kwargs): """ hasItem(item) -> bool Returns True if the given item is on the selection list. For a component this means that all of the elements of the component must be on the list. A component is passed as a tuple containing the MDagPath of the DAG node and an MObject containing the component. """ pass def hasItemPartly(*args, **kwargs): """ hasItemPartly(dagPath, component) -> bool Returns True if at least one of the component's elements is on the selection list. Raises TypeError if dagPath is invalid or component does not contain a component. """ pass def isEmpty(*args, **kwargs): """ isEmpty() -> bool Returns True if the selection list is empty. """ pass def length(*args, **kwargs): """ length() -> int Returns the number of items on the selection list. """ pass def merge(*args, **kwargs): """ merge(other, strategy=kMergeNormal) -> self merge(dagPath, component, strategy=kMergeNormal) -> self The first version merges the items from another selection list in with those already on the list, using the given strategy. The second version merges the specified component with those already on the list. """ pass def remove(*args, **kwargs): """ remove(index) -> self Removes the index'th item from the list. Raises IndexError if the index is out of range. """ pass def replace(*args, **kwargs): """ replace(index, newItem) -> self Replaces the index'th item on the list with a new item. A component is passed as a tuple containing the MDagPath of the DAG node and an MObject containing the component. Raises IndexError if the index is out of range. """ pass def toggle(*args, **kwargs): """ toggle(dagPath, component) -> self Removes from the list those elements of the given component which are already on it and adds those which are not. """ pass __new__ = None kMergeNormal = 0 kRemoveFromList = 2 kXORWithList = 1 class MFn(object): """ Static class providing constants for all API types. """ kAISEnvFacade = 961 kAddDoubleLinear = 5 kAdskMaterial = 1049 kAffect = 6 kAimConstraint = 111 kAir = 257 kAlignCurve = 41 kAlignManip = 897 kAlignSurface = 42 kAmbientLight = 303 kAngle = 270 kAngleBetween = 21 kAnimBlend = 781 kAnimBlendInOut = 782 kAnimCurve = 7 kAnimCurveTimeToAngular = 8 kAnimCurveTimeToDistance = 9 kAnimCurveTimeToTime = 10 kAnimCurveTimeToUnitless = 11 kAnimCurveUnitlessToAngular = 12 kAnimCurveUnitlessToDistance = 13 kAnimCurveUnitlessToTime = 14 kAnimCurveUnitlessToUnitless = 15 kAnimLayer = 1002 kAnisotropy = 609 kAnnotation = 271 kAnyGeometryVarGroup = 115 kArcLength = 273 kAreaLight = 305 kArrayMapper = 517 kArrowManip = 123 kAssembly = 1063 kAsset = 1000 kAttachCurve = 43 kAttachSurface = 44 kAttribute = 554 kAttribute2Double = 734 kAttribute2Float = 735 kAttribute2Int = 737 kAttribute2Long = 737 kAttribute2Short = 736 kAttribute3Double = 738 kAttribute3Float = 739 kAttribute3Int = 741 kAttribute3Long = 741 kAttribute3Short = 740 kAttribute4Double = 866 kAudio = 22 kAverageCurveManip = 149 kAvgCurves = 45 kAvgNurbsSurfacePoints = 47 kAvgSurfacePoints = 46 kAxesActionManip = 124 kBackground = 23 kBallProjectionManip = 125 kBarnDoorManip = 150 kBase = 1 kBaseLattice = 249 kBendLattice = 335 kBevel = 48 kBevelManip = 151 kBevelPlus = 885 kBezierCurve = 1036 kBezierCurveData = 1037 kBezierCurveToNurbs = 1039 kBinaryData = 733 kBirailSrf = 49 kBlend = 27 kBlendColorSet = 726 kBlendColors = 31 kBlendDevice = 30 kBlendManip = 152 kBlendNodeAdditiveRotation = 1015 kBlendNodeAdditiveScale = 1014 kBlendNodeBase = 1003 kBlendNodeBoolean = 1004 kBlendNodeDouble = 1005 kBlendNodeDoubleAngle = 1006 kBlendNodeDoubleLinear = 1007 kBlendNodeEnum = 1008 kBlendNodeFloat = 1009 kBlendNodeFloatAngle = 1010 kBlendNodeFloatLinear = 1011 kBlendNodeInt16 = 1012 kBlendNodeInt32 = 1013 kBlendNodeTime = 1034 kBlendShape = 336 kBlendTwoAttr = 28 kBlendWeighted = 29 kBlindData = 743 kBlindDataTemplate = 744 kBlinn = 365 kBlinnMaterial = 380 kBoundary = 53 kBox = 853 kBoxData = 852 kBrownian = 497 kBrush = 752 kBulge = 486 kBulgeLattice = 337 kBump = 32 kBump3d = 33 kButtonManip = 153 kCacheBase = 981 kCacheBlend = 982 kCacheFile = 971 kCacheTrack = 983 kCacheableNode = 978 kCamera = 250 kCameraManip = 154 kCameraPlaneManip = 143 kCameraSet = 993 kCameraView = 34 kCenterManip = 134 kChainToSpline = 35 kCharacter = 675 kCharacterMap = 790 kCharacterMappingData = 729 kCharacterOffset = 676 kChecker = 487 kChoice = 36 kChooser = 759 kCircle = 54 kCircleManip = 126 kCirclePointManip = 231 kCircleSweepManip = 128 kClampColor = 39 kClientDevice = 1059 kClip = 796 kClipGhostShape = 1064 kClipLibrary = 767 kClipScheduler = 766 kClipToGhostData = 1065 kCloseCurve = 55 kCloseSurface = 57 kClosestPointOnMesh = 973 kClosestPointOnSurface = 56 kCloth = 488 kCloud = 498 kCluster = 251 kClusterFilter = 344 kClusterFlexor = 300 kCoiManip = 155 kCollision = 253 kColorBackground = 24 kColorProfile = 1048 kCommCornerManip = 600 kCommCornerOperManip = 601 kCommEdgeOperManip = 598 kCommEdgePtManip = 597 kCommEdgeSegmentManip = 599 kComponent = 524 kComponentListData = 572 kComponentManip = 661 kCompoundAttribute = 564 kConcentricProjectionManip = 129 kCondition = 37 kCone = 96 kConstraint = 917 kContainer = 995 kContainerBase = 1050 kContrast = 38 kControl = 475 kCopyColorSet = 725 kCopyUVSet = 794 kCpManip = 156 kCrater = 499 kCreaseSet = 1072 kCreate = 40 kCreateBPManip = 823 kCreateBezierManip = 1035 kCreateCVManip = 157 kCreateColorSet = 723 kCreateEPManip = 158 kCreateSectionManip = 810 kCreateUVSet = 795 kCrossSectionEditManip = 811 kCrossSectionManager = 809 kCubicProjectionManip = 130 kCurve = 266 kCurveCVComponent = 525 kCurveCurveIntersect = 628 kCurveEPComponent = 526 kCurveEdManip = 159 kCurveFromMeshCoM = 919 kCurveFromMeshEdge = 627 kCurveFromSubdivEdge = 822 kCurveFromSubdivFace = 828 kCurveFromSurface = 58 kCurveFromSurfaceBnd = 59 kCurveFromSurfaceCoS = 60 kCurveFromSurfaceIso = 61 kCurveInfo = 62 kCurveKnotComponent = 527 kCurveNormalizerAngle = 985 kCurveNormalizerLinear = 986 kCurveParamComponent = 528 kCurveSegmentManip = 160 kCurveVarGroup = 116 kCylinder = 98 kCylindricalProjectionManip = 131 kDOF = 323 kDPbirailSrf = 50 kDagContainer = 1051 kDagNode = 107 kDagPose = 677 kDagSelectionItem = 551 kData = 571 kData2Double = 581 kData2Float = 582 kData2Int = 583 kData2Long = 583 kData2Short = 584 kData3Double = 585 kData3Float = 586 kData3Int = 587 kData3Long = 587 kData3Short = 588 kData4Double = 867 kDblTrsManip = 190 kDecayRegionCapComponent = 537 kDecayRegionComponent = 538 kDefaultLightList = 317 kDeformBend = 612 kDeformBendManip = 618 kDeformFlare = 615 kDeformFlareManip = 621 kDeformFunc = 611 kDeformSine = 616 kDeformSineManip = 622 kDeformSquash = 614 kDeformSquashManip = 620 kDeformTwist = 613 kDeformTwistManip = 619 kDeformWave = 617 kDeformWaveManip = 623 kDeleteColorSet = 724 kDeleteComponent = 318 kDeleteUVSet = 787 kDependencyNode = 4 kDetachCurve = 63 kDetachSurface = 64 kDiffuseMaterial = 378 kDimension = 269 kDimensionManip = 232 kDirectedDisc = 276 kDirectionManip = 161 kDirectionalLight = 308 kDiscManip = 132 kDiskCache = 849 kDispatchCompute = 319 kDisplacementShader = 321 kDisplayLayer = 720 kDisplayLayerManager = 721 kDistance = 272 kDistanceBetween = 322 kDistanceManip = 625 kDofManip = 162 kDoubleAngleAttribute = 556 kDoubleArrayData = 573 kDoubleIndexedComponent = 701 kDoubleLinearAttribute = 558 kDoubleShadingSwitch = 606 kDrag = 258 kDropOffFunction = 812 kDropoffLocator = 282 kDropoffManip = 163 kDummy = 254 kDummyConnectable = 324 kDynAirManip = 711 kDynArrayAttrsData = 716 kDynAttenuationManip = 715 kDynBase = 707 kDynBaseFieldManip = 710 kDynEmitterManip = 708 kDynFieldsManip = 709 kDynGlobals = 756 kDynNewtonManip = 712 kDynParticleSetComponent = 549 kDynSpreadManip = 714 kDynSweptGeometryData = 730 kDynTurbulenceManip = 713 kDynamicConstraint = 975 kDynamicsController = 325 kEdgeComponent = 534 kEditCurve = 807 kEditCurveManip = 808 kEditMetadata = 1071 kEmitter = 255 kEnableManip = 136 kEnumAttribute = 561 kEnvBall = 480 kEnvChrome = 482 kEnvCube = 481 kEnvFacade = 960 kEnvFogMaterial = 372 kEnvFogShape = 278 kEnvSky = 483 kEnvSphere = 484 kExplodeNurbsShell = 679 kExpression = 327 kExtendCurve = 65 kExtendCurveDistanceManip = 164 kExtendSurface = 66 kExtendSurfaceDistanceManip = 703 kExtract = 328 kExtrude = 67 kExtrudeManip = 165 kFFD = 338 kFFblendSrf = 68 kFFfilletSrf = 69 kFacade = 958 kFfdDualBase = 339 kField = 256 kFileBackground = 25 kFileTexture = 489 kFilletCurve = 70 kFilter = 329 kFilterClosestSample = 330 kFilterEuler = 331 kFilterSimplify = 332 kFitBspline = 71 kFixedLineManip = 233 kFlexor = 299 kFloatAngleAttribute = 557 kFloatArrayData = 1019 kFloatLinearAttribute = 559 kFloatMatrixAttribute = 568 kFloatVectorArrayData = 996 kFlow = 72 kFluid = 899 kFluidData = 901 kFluidEmitter = 905 kFluidGeom = 900 kFluidTexture2D = 894 kFluidTexture3D = 893 kFollicle = 920 kForceUpdateManip = 682 kFosterParent = 1074 kFourByFourMatrix = 762 kFractal = 490 kFreePointManip = 133 kFreePointTriadManip = 137 kGammaCorrect = 333 kGenericAttribute = 565 kGeoConnectable = 326 kGeoConnector = 907 kGeometric = 265 kGeometryConstraint = 113 kGeometryData = 699 kGeometryFilt = 334 kGeometryOnLineManip = 142 kGeometryVarGroup = 114 kGlobalCacheControls = 848 kGlobalStitch = 688 kGranite = 500 kGravity = 259 kGreasePencilSequence = 1070 kGreasePlane = 1068 kGreasePlaneRenderShape = 1069 kGrid = 491 kGroundPlane = 290 kGroupId = 348 kGroupParts = 349 kGuide = 350 kGuideLine = 301 kHairConstraint = 925 kHairSystem = 921 kHairTubeShader = 932 kHandleRotateManip = 216 kHardenPointCurve = 73 kHardwareReflectionMap = 872 kHardwareRenderGlobals = 516 kHardwareRenderingGlobals = 1053 kHeightField = 906 kHikEffector = 945 kHikFKJoint = 947 kHikFloorContactMarker = 967 kHikGroundPlane = 968 kHikHandle = 949 kHikIKEffector = 946 kHikSolver = 948 kHistorySwitch = 972 kHsvToRgb = 351 kHwShaderNode = 875 kHyperGraphInfo = 352 kHyperLayout = 353 kHyperLayoutDG = 987 kHyperView = 354 kIkEffector = 119 kIkHandle = 120 kIkRPManip = 167 kIkSolver = 355 kIkSplineManip = 166 kIkSystem = 361 kIllustratorCurve = 74 kImageAdd = 646 kImageBlur = 652 kImageColorCorrect = 651 kImageData = 640 kImageDepth = 654 kImageDiff = 647 kImageDisplay = 655 kImageFilter = 653 kImageLoad = 641 kImageMotionBlur = 657 kImageMultiply = 648 kImageNetDest = 644 kImageNetSrc = 643 kImageOver = 649 kImagePlane = 362 kImageRender = 645 kImageSave = 642 kImageSource = 778 kImageUnder = 650 kImageView = 656 kImplicitCone = 880 kImplicitSphere = 881 kInsertKnotCrv = 75 kInsertKnotSrf = 76 kInstancer = 749 kIntArrayData = 574 kIntersectSurface = 77 kInvalid = 0 kIsoparmComponent = 529 kIsoparmManip = 146 kItemList = 553 kJiggleDeformer = 847 kJoint = 121 kJointCluster = 346 kJointClusterManip = 168 kJointTranslateManip = 229 kKeyframeDelta = 934 kKeyframeDeltaAddRemove = 937 kKeyframeDeltaBlockAddRemove = 938 kKeyframeDeltaBreakdown = 942 kKeyframeDeltaInfType = 939 kKeyframeDeltaMove = 935 kKeyframeDeltaScale = 936 kKeyframeDeltaTangent = 940 kKeyframeDeltaWeighted = 941 kKeyframeRegionManip = 984 kKeyingGroup = 674 kLambert = 363 kLambertMaterial = 379 kLast = 1075 kLattice = 279 kLatticeComponent = 535 kLatticeData = 575 kLatticeGeom = 280 kLayeredShader = 368 kLayeredTexture = 791 kLeastSquares = 370 kLeather = 501 kLight = 302 kLightDataAttribute = 566 kLightFogMaterial = 371 kLightInfo = 369 kLightLink = 755 kLightList = 373 kLightManip = 169 kLightProjectionGeometry = 234 kLightSource = 374 kLightSourceMaterial = 382 kLimitManip = 135 kLineArrowManip = 235 kLineManip = 147 kLineModifier = 962 kLinearLight = 306 kLocator = 281 kLodGroup = 760 kLodThresholds = 758 kLookAt = 112 kLuminance = 375 kMCsolver = 356 kMPbirailSrf = 51 kMakeGroup = 376 kMandelbrot = 1066 kMandelbrot3D = 1067 kManip2DContainer = 192 kManipContainer = 148 kManipulator = 230 kManipulator2D = 205 kManipulator3D = 122 kMarble = 502 kMarker = 283 kMarkerManip = 210 kMaterial = 377 kMaterialFacade = 959 kMaterialInfo = 383 kMatrixAdd = 384 kMatrixAttribute = 567 kMatrixData = 576 kMatrixFloatData = 659 kMatrixHold = 385 kMatrixMult = 386 kMatrixPass = 387 kMatrixWtAdd = 388 kMembrane = 1020 kMentalRayTexture = 927 kMergeVertsToolManip = 1021 kMesh = 296 kMeshComponent = 539 kMeshData = 577 kMeshEdgeComponent = 540 kMeshFaceVertComponent = 544 kMeshFrEdgeComponent = 542 kMeshGeom = 297 kMeshMapComponent = 803 kMeshPolygonComponent = 541 kMeshVarGroup = 117 kMeshVertComponent = 543 kMeshVtxFaceComponent = 732 kMessageAttribute = 569 kMidModifier = 389 kMidModifierWithMatrix = 390 kModel = 3 kModifyEdgeBaseManip = 824 kModifyEdgeCrvManip = 815 kModifyEdgeManip = 816 kMotionPath = 435 kMotionPathManip = 170 kMountain = 492 kMoveUVShellManip2D = 697 kMoveVertexManip = 750 kMultDoubleLinear = 761 kMultiSubVertexComponent = 547 kMultilisterLight = 436 kMultiplyDivide = 437 kMute = 916 kNBase = 980 kNCloth = 989 kNComponent = 976 kNId = 1018 kNIdData = 1017 kNObject = 998 kNObjectData = 997 kNParticle = 990 kNRigid = 991 kNamedObject = 2 kNearestPointOnCurve = 1047 kNewton = 260 kNoise = 865 kNonAmbientLight = 304 kNonDagSelectionItem = 552 kNonExtendedLight = 307 kNonLinear = 610 kNormalConstraint = 238 kNucleus = 979 kNumericAttribute = 555 kNumericData = 580 kNurbsBoolean = 680 kNurbsCircular2PtArc = 630 kNurbsCircular3PtArc = 629 kNurbsCube = 80 kNurbsCurve = 267 kNurbsCurveData = 579 kNurbsCurveGeom = 268 kNurbsCurveToBezier = 1038 kNurbsPlane = 79 kNurbsSquare = 608 kNurbsSurface = 294 kNurbsSurfaceData = 578 kNurbsSurfaceGeom = 295 kNurbsTesselate = 78 kNurbsToSubdiv = 747 kObjectAttrFilter = 667 kObjectBinFilter = 928 kObjectFilter = 663 kObjectMultiFilter = 664 kObjectNameFilter = 665 kObjectRenderFilter = 668 kObjectScriptFilter = 669 kObjectTypeFilter = 666 kOcean = 861 kOceanShader = 884 kOffsetCos = 81 kOffsetCosManip = 171 kOffsetCurve = 82 kOffsetCurveManip = 172 kOffsetSurface = 631 kOffsetSurfaceManip = 639 kOldGeometryConstraint = 438 kOpticalFX = 439 kOrientConstraint = 239 kOrientationComponent = 545 kOrientationLocator = 286 kOrientationMarker = 284 kOrthoGrid = 291 kPASolver = 357 kPairBlend = 912 kParamDimension = 275 kParentConstraint = 242 kParticle = 311 kParticleAgeMapper = 440 kParticleCloud = 441 kParticleColorMapper = 442 kParticleIncandecenceMapper = 443 kParticleSamplerInfo = 793 kParticleTransparencyMapper = 444 kPartition = 445 kPassContributionMap = 774 kPfxGeometry = 930 kPfxHair = 931 kPfxToon = 955 kPhong = 366 kPhongExplorer = 367 kPhongMaterial = 381 kPivotComponent = 530 kPivotManip2D = 191 kPlace2dTexture = 446 kPlace3dTexture = 447 kPlanarProjectionManip = 207 kPlanarTrimSrf = 83 kPlane = 288 kPlugin = 570 kPluginCameraSet = 994 kPluginClientDevice = 1060 kPluginConstraintNode = 999 kPluginData = 589 kPluginDeformerNode = 602 kPluginDependNode = 448 kPluginEmitterNode = 718 kPluginFieldNode = 717 kPluginGeometryData = 754 kPluginHardwareShader = 876 kPluginHwShaderNode = 877 kPluginIkSolver = 748 kPluginImagePlaneNode = 988 kPluginLocatorNode = 449 kPluginManipContainer = 683 kPluginManipulatorNode = 1016 kPluginObjectSet = 909 kPluginParticleAttributeMapperNode = 992 kPluginShape = 698 kPluginSpringNode = 719 kPluginThreadedDevice = 1061 kPluginTransformNode = 898 kPlusMinusAverage = 450 kPointArrayData = 590 kPointConstraint = 240 kPointLight = 309 kPointManip = 236 kPointMatrixMult = 451 kPointOnCurveInfo = 84 kPointOnCurveManip = 208 kPointOnLineManip = 211 kPointOnPolyConstraint = 1042 kPointOnSurfaceInfo = 85 kPointOnSurfaceManip = 212 kPoleVectorConstraint = 243 kPolyAppend = 393 kPolyAppendVertex = 783 kPolyArrow = 963 kPolyAutoProj = 837 kPolyAutoProjManip = 951 kPolyAverageVertex = 836 kPolyBevel = 391 kPolyBlindData = 745 kPolyBoolOp = 604 kPolyBridgeEdge = 977 kPolyChipOff = 394 kPolyCloseBorder = 395 kPolyCollapseEdge = 396 kPolyCollapseF = 397 kPolyColorDel = 728 kPolyColorMod = 727 kPolyColorPerVertex = 722 kPolyComponentData = 969 kPolyCone = 427 kPolyConnectComponents = 1043 kPolyCreaseEdge = 944 kPolyCreateFacet = 433 kPolyCreateToolManip = 140 kPolyCreator = 425 kPolyCube = 428 kPolyCut = 887 kPolyCutManip = 891 kPolyCutManipContainer = 890 kPolyCylProj = 398 kPolyCylinder = 429 kPolyDelEdge = 399 kPolyDelFacet = 400 kPolyDelVertex = 401 kPolyDuplicateEdge = 957 kPolyEdgeToCurve = 1001 kPolyEditEdgeFlow = 1073 kPolyExtrudeEdge = 780 kPolyExtrudeFacet = 402 kPolyExtrudeManip = 1056 kPolyExtrudeManipContainer = 1057 kPolyExtrudeVertex = 911 kPolyFlipEdge = 779 kPolyFlipUV = 874 kPolyHelix = 970 kPolyHoleFace = 1041 kPolyLayoutUV = 838 kPolyMapCut = 403 kPolyMapDel = 404 kPolyMapSew = 405 kPolyMapSewMove = 839 kPolyMappingManip = 194 kPolyMergeEdge = 406 kPolyMergeFacet = 407 kPolyMergeUV = 895 kPolyMergeVert = 685 kPolyMesh = 430 kPolyMirror = 943 kPolyModifierManip = 195 kPolyMoveEdge = 408 kPolyMoveFacet = 409 kPolyMoveFacetUV = 410 kPolyMoveUV = 411 kPolyMoveUVManip = 193 kPolyMoveVertex = 412 kPolyMoveVertexManip = 196 kPolyMoveVertexUV = 413 kPolyNormal = 414 kPolyNormalPerVertex = 746 kPolyNormalizeUV = 873 kPolyPipe = 966 kPolyPlanProj = 415 kPolyPlatonicSolid = 965 kPolyPoke = 888 kPolyPokeManip = 892 kPolyPrimitive = 426 kPolyPrimitiveMisc = 964 kPolyPrism = 952 kPolyProj = 416 kPolyProjectCurve = 1054 kPolyProjectionManip = 174 kPolyPyramid = 953 kPolyQuad = 417 kPolyReduce = 757 kPolySelectEditFeedbackManip = 1024 kPolySeparate = 452 kPolySewEdge = 684 kPolySmooth = 418 kPolySmoothFacet = 686 kPolySmoothProxy = 929 kPolySoftEdge = 419 kPolySphProj = 420 kPolySphere = 431 kPolySpinEdge = 1040 kPolySplit = 421 kPolySplitEdge = 801 kPolySplitRing = 954 kPolySplitToolManip = 141 kPolySplitVert = 797 kPolyStraightenUVBorder = 896 kPolySubdEdge = 422 kPolySubdFacet = 423 kPolyToSubdiv = 672 kPolyToolFeedbackManip = 1023 kPolyToolFeedbackShape = 312 kPolyTorus = 432 kPolyTransfer = 835 kPolyTriangulate = 424 kPolyTweak = 392 kPolyTweakUV = 696 kPolyUVRectangle = 1052 kPolyUnite = 434 kPolyVertexNormalManip = 197 kPolyWedgeFace = 889 kPositionMarker = 285 kPostProcessList = 453 kPrecompExport = 775 kPrimitive = 86 kProjectCurve = 87 kProjectTangent = 88 kProjectTangentManip = 177 kProjection = 454 kProjectionManip = 173 kProjectionMultiManip = 176 kProjectionUVManip = 175 kPropModManip = 178 kPropMoveTriadManip = 138 kProxy = 108 kProxyManager = 950 kPsdFileTexture = 933 kQuadPtOnLineManip = 179 kQuadShadingSwitch = 910 kRBFsurface = 89 kRPsolver = 359 kRadial = 261 kRadius = 274 kRamp = 493 kRampBackground = 26 kRampShader = 882 kRbfSrfManip = 180 kRebuildCurve = 90 kRebuildSurface = 91 kRecord = 455 kReference = 742 kReflect = 364 kRemapColor = 923 kRemapHsv = 924 kRemapValue = 922 kRenderBox = 854 kRenderCone = 97 kRenderGlobals = 512 kRenderGlobalsList = 513 kRenderLayer = 772 kRenderLayerManager = 773 kRenderPass = 770 kRenderPassSet = 771 kRenderQuality = 514 kRenderRect = 277 kRenderSetup = 511 kRenderSphere = 298 kRenderTarget = 776 kRenderUtilityList = 456 kRenderedImageSource = 777 kRenderingList = 1055 kResolution = 515 kResultCurve = 16 kResultCurveTimeToAngular = 17 kResultCurveTimeToDistance = 18 kResultCurveTimeToTime = 19 kResultCurveTimeToUnitless = 20 kReverse = 457 kReverseCrvManip = 182 kReverseCurve = 92 kReverseCurveManip = 181 kReverseSurface = 93 kReverseSurfaceManip = 183 kRevolve = 94 kRevolveManip = 184 kRevolvedPrimitive = 95 kRevolvedPrimitiveManip = 185 kRgbToHsv = 458 kRigid = 314 kRigidConstraint = 313 kRigidDeform = 340 kRigidSolver = 459 kRock = 503 kRotateBoxManip = 214 kRotateLimitsManip = 217 kRotateManip = 215 kRotateUVManip2D = 694 kRoundConstantRadius = 632 kRoundConstantRadiusManip = 635 kRoundRadiusCrvManip = 634 kRoundRadiusManip = 633 kSCsolver = 358 kSPbirailSrf = 52 kSamplerInfo = 467 kScaleConstraint = 244 kScaleLimitsManip = 218 kScaleManip = 219 kScalePointManip = 817 kScaleUVManip2D = 695 kScalingBoxManip = 220 kScreenAlignedCircleManip = 127 kScript = 626 kScriptManip = 221 kSculpt = 341 kSectionManip = 804 kSelectionItem = 550 kSelectionList = 595 kSelectionListData = 662 kSelectionListOperator = 670 kSequenceManager = 1031 kSequencer = 1032 kSet = 460 kSetGroupComponent = 548 kSetRange = 463 kSfRevolveManip = 827 kShaderGlow = 464 kShaderList = 465 kShadingEngine = 320 kShadingMap = 466 kShape = 248 kShapeFragment = 468 kShot = 1033 kSimpleVolumeShader = 469 kSingleIndexedComponent = 700 kSingleShadingSwitch = 605 kSketchPlane = 289 kSkin = 100 kSkinBinding = 1044 kSkinClusterFilter = 673 kSkinShader = 660 kSl60 = 470 kSmear = 902 kSmoothCurve = 687 kSmoothTangentSrf = 769 kSnapshot = 471 kSnapshotPath = 908 kSnapshotShape = 845 kSnow = 504 kSoftMod = 252 kSoftModFilter = 345 kSoftModManip = 624 kSolidFractal = 505 kSphere = 99 kSphereData = 591 kSphericalProjectionManip = 222 kSplineSolver = 360 kSpotCylinderManip = 187 kSpotLight = 310 kSpotManip = 186 kSpring = 315 kSprite = 292 kSquareSrf = 704 kSquareSrfManip = 705 kStateManip = 145 kStencil = 494 kStereoCameraMaster = 1030 kStitchAsNurbsShell = 678 kStitchSrf = 101 kStitchSrfManip = 681 kStoryBoard = 472 kStringArrayData = 593 kStringData = 592 kStringShadingSwitch = 903 kStroke = 751 kStrokeGlobals = 753 kStucco = 506 kStudioClearCoat = 904 kStyleCurve = 886 kSubCurve = 102 kSubSurface = 768 kSubVertexComponent = 546 kSubdAddTopology = 878 kSubdAutoProj = 863 kSubdBlindData = 789 kSubdBoolean = 813 kSubdCleanTopology = 879 kSubdCloseBorder = 850 kSubdDelFace = 844 kSubdExtrudeFace = 825 kSubdHierBlind = 788 kSubdLayoutUV = 859 kSubdMapCut = 858 kSubdMapSewMove = 860 kSubdMappingManip = 871 kSubdMergeVert = 851 kSubdModifier = 840 kSubdModifyEdge = 814 kSubdMoveEdge = 842 kSubdMoveFace = 843 kSubdMoveVertex = 841 kSubdPlanProj = 868 kSubdProjectionManip = 870 kSubdSplitFace = 855 kSubdSubdivideFace = 864 kSubdTweak = 869 kSubdTweakUV = 857 kSubdiv = 671 kSubdivCVComponent = 689 kSubdivCollapse = 792 kSubdivCompId = 785 kSubdivData = 798 kSubdivEdgeComponent = 690 kSubdivFaceComponent = 691 kSubdivGeom = 799 kSubdivMapComponent = 846 kSubdivReverseFaces = 802 kSubdivSurfaceVarGroup = 826 kSubdivToNurbs = 806 kSubdivToPoly = 706 kSummaryObject = 473 kSuper = 474 kSurface = 293 kSurfaceCVComponent = 531 kSurfaceEPComponent = 532 kSurfaceEdManip = 764 kSurfaceFaceComponent = 765 kSurfaceInfo = 103 kSurfaceKnotComponent = 533 kSurfaceLuminance = 476 kSurfaceRangeComponent = 536 kSurfaceShader = 477 kSurfaceVarGroup = 118 kSymmetryConstraint = 241 kSymmetryLocator = 819 kSymmetryMapCurve = 821 kSymmetryMapVector = 820 kTangentConstraint = 245 kTexLattice = 200 kTexLatticeDeformManip = 199 kTexSmoothManip = 201 kTexSmudgeUVManip = 198 kTextButtonManip = 638 kTextCurves = 104 kTextManip = 913 kTexture2d = 485 kTexture3d = 496 kTextureBakeSet = 461 kTextureEnv = 479 kTextureList = 478 kTextureManip3D = 223 kThreadedDevice = 1058 kThreePointArcManip = 636 kTime = 509 kTimeAttribute = 560 kTimeFunction = 926 kTimeToUnitConversion = 510 kTimeWarp = 1062 kToggleManip = 224 kToggleOnLineManip = 144 kToonLineAttributes = 956 kTorus = 603 kTowPointManip = 139 kTowPointOnCurveManip = 209 kTowPointOnSurfaceManip = 763 kTransferAttributes = 974 kTransform = 110 kTransformBoxManip = 818 kTransformGeometry = 596 kTranslateBoxManip = 225 kTranslateLimitsManip = 226 kTranslateManip = 227 kTranslateManip2D = 206 kTranslateUVManip = 213 kTranslateUVManip2D = 693 kTriadManip = 237 kTrim = 105 kTrimLocator = 287 kTrimManip = 228 kTrimWithBoundaries = 918 kTriplanarProjectionManip = 188 kTripleIndexedComponent = 702 kTripleShadingSwitch = 607 kTrsInsertManip = 203 kTrsManip = 189 kTrsTransManip = 202 kTrsXformManip = 204 kTurbulence = 262 kTweak = 342 kTwoPointArcManip = 637 kTxSl = 507 kTypedAttribute = 563 kUInt64ArrayData = 800 kUVManip2D = 692 kUint64SingleIndexedComponent = 1022 kUnderWorld = 109 kUniform = 263 kUnitAttribute = 562 kUnitConversion = 518 kUnitToTimeConversion = 519 kUnknown = 521 kUnknownDag = 316 kUnknownTransform = 246 kUntrim = 106 kUnused1 = 829 kUnused2 = 830 kUnused3 = 831 kUnused4 = 832 kUnused5 = 833 kUnused6 = 834 kUseBackground = 520 kUvChooser = 784 kVectorArrayData = 594 kVectorProduct = 522 kVertexBakeSet = 462 kVertexWeightSet = 1046 kViewColorManager = 658 kViewManip = 914 kVolumeAxis = 786 kVolumeBindManip = 1045 kVolumeFog = 856 kVolumeLight = 883 kVolumeNoise = 862 kVolumeShader = 523 kVortex = 264 kWater = 495 kWeightGeometryFilt = 343 kWire = 347 kWood = 508 kWorld = 247 kWrapFilter = 731 kWriteToColorBuffer = 1026 kWriteToDepthBuffer = 1028 kWriteToFrameBuffer = 1025 kWriteToLabelBuffer = 1029 kWriteToVectorBuffer = 1027 kXformManip = 915 kXsectionSubdivEdit = 805 class MGlobal(object): """ Static class providing common API global functions. """ def displayError(*args, **kwargs): """ displayError(msg) -> None Display an error in the script editor. """ pass def displayInfo(*args, **kwargs): """ displayInfo(msg) -> None Display an informational message in the script editor. """ pass def displayWarning(*args, **kwargs): """ displayWarning(msg) -> None Display a warning in the script editor. """ pass def getActiveSelectionList(*args, **kwargs): """ getActiveSelectionList() -> MSelectionList Return an MSelectionList containing the nodes, components and plugs currently selected in Maya. """ pass def getFunctionSetList(*args, **kwargs): """ getFunctionSetList(MObject) -> (string, string, ...) Returns a tuple of strings that represent the type of each function set that will accept this object. """ pass def getSelectionListByName(*args, **kwargs): """ getSelectionListByName(name) -> MSelectionList Returns an MSelectionList with all of the objects that match the specified name. The name may use the same type of regular expressions as can be used in MEL commands. For example, the pattern 'pCube*' will match all occurrences of objects whose names begin with 'pCube'. """ pass kAddToHeadOfList = 4 kAddToList = 2 kBaseUIMode = 3 kBatch = 1 kInteractive = 0 kLibraryApp = 2 kRemoveFromList = 3 kReplaceList = 0 kSelectComponentMode = 1 kSelectLeafMode = 3 kSelectObjectMode = 0 kSelectRootMode = 2 kSelectTemplateMode = 4 kSurfaceSelectMethod = 0 kWireframeSelectMethod = 1 kXORWithList = 1 class MArgList(object): """ Argument list for passing to commands. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def addArg(*args, **kwargs): """ addArg(arg) -> self , 'arg' is a numeric value, MAngle, MDistance, MTime, MPoint or MVector. Add an argument to the end of the arg list. """ pass def asAngle(*args, **kwargs): """ asAngle(index) -> MAngle Return an argument as an MAngle. """ pass def asBool(*args, **kwargs): """ asBool(index) -> bool Return an argument as a boolean. """ pass def asDistance(*args, **kwargs): """ asDistance(index) -> MDistance Return an argument as an MDistance. """ pass def asDouble(*args, **kwargs): """ asDouble(index) -> float Alias for asFloat(). """ pass def asDoubleArray(*args, **kwargs): """ asDoubleArray(index) -> MDoubleArray Return a sequence of arguments as an MDoubleArray. """ pass def asFloat(*args, **kwargs): """ asFloat(index) -> float Return an argument as a float. """ pass def asInt(*args, **kwargs): """ asInt(index) -> int Return an argument as an integer. """ pass def asIntArray(*args, **kwargs): """ asIntArray(index) -> MIntArray Return a sequence of arguments as an MIntArray. """ pass def asMatrix(*args, **kwargs): """ asMatrix(index) -> MMatrix Return a sequence of arguments as an MMatrix. """ pass def asPoint(*args, **kwargs): """ asPoint(index) -> MPoint Return a sequence of arguments as an MPoint. """ pass def asString(*args, **kwargs): """ asString(index) -> string Return an argument as a string. """ pass def asStringArray(*args, **kwargs): """ asStringArray(index) -> list of strings Return a sequence of arguments as a list of strings. """ pass def asTime(*args, **kwargs): """ asTime(index) -> MTime Return an argument as an MTime. """ pass def asVector(*args, **kwargs): """ asVector(index) -> MVector Return a sequence of arguments as an MVector. """ pass def flagIndex(*args, **kwargs): """ flagIndex(shortFlag, longFlag=None) -> int Return index of first occurrence of specified flag. """ pass def lastArgUsed(*args, **kwargs): """ lastArgUsed() -> int Return index of last argument used by the most recent as*() method. """ pass __new__ = None kInvalidArgIndex = 4294967295 class MFloatPointArray(object): """ Array of MFloatPoint values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MRampAttribute(object): """ Functionset for creating and working with ramp attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addEntries(*args, **kwargs): """ Adds entries to the ramp. """ pass def deleteEntries(*args, **kwargs): """ Removes from the ramp those entries with the specified indices. """ pass def getEntries(*args, **kwargs): """ Returns a tuple containing all of the entries in the ramp. """ pass def getValueAtPosition(*args, **kwargs): """ Returns the value of the entry at the given position. """ pass def hasIndex(*args, **kwargs): """ Return true if an entry is defined at this index. """ pass def numEntries(*args, **kwargs): """ Returns the number of entries in the ramp. """ pass def pack(*args, **kwargs): """ Change the indices numbering by re-ordering them from 0. """ pass def setInterpolationAtIndex(*args, **kwargs): """ Sets the interpolation of the entry at the given index. """ pass def setPositionAtIndex(*args, **kwargs): """ Sets the position of the entry at the given index. """ pass def setRamp(*args, **kwargs): """ Set this ramp with one or multiple entries. Current entries are removed before adding the new one(s). """ pass def setValueAtIndex(*args, **kwargs): """ Sets the value of the entry at the given index. """ pass def sort(*args, **kwargs): """ Sort the ramp by position. Indices are also re-ordered during sort. """ pass def createColorRamp(*args, **kwargs): """ Creates and returns a new color ramp attribute. """ pass def createCurveRamp(*args, **kwargs): """ Creates and returns a new curve ramp attribute. """ pass def createRamp(*args, **kwargs): """ Creates and returns a new color or curve ramp attribute initialized with values. """ pass isColorRamp = None isCurveRamp = None __new__ = None kLinear = 1 kNone = 0 kSmooth = 2 kSpline = 3 class MObject(object): """ Opaque wrapper for internal Maya objects. """ def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def apiType(*args, **kwargs): """ Returns the function set type for the object. """ pass def hasFn(*args, **kwargs): """ Tests whether object is compatible with the specified function set. """ pass def isNull(*args, **kwargs): """ Tests whether there is an internal Maya object. """ pass apiTypeStr = None __new__ = None kNullObj = None class MWeight(object): """ Methods for accessing component weight data. This class is currently only used to access soft select and symmetry selection weights. Other weight data (e.g. deformer weights) does not use this class and can be accessed through the corresponding MFn class or directly from the node's attributes. __init__() Initializes a new MWeight object with influence weight of 1 and seam weight of 0. __init__(MWeight src) Initializes a new MWeight object with the same value as src. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass influence = None seam = None __new__ = None class MFloatVector(object): """ 3D vector with single-precision coordinates. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __div__(*args, **kwargs): """ x.__div__(y) <==> x/y """ pass def __eq__(*args, **kwargs): """ x.__eq__(y) <==> x==y """ pass def __ge__(*args, **kwargs): """ x.__ge__(y) <==> x>=y """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __gt__(*args, **kwargs): """ x.__gt__(y) <==> x>y """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __idiv__(*args, **kwargs): """ x.__idiv__(y) <==> x/=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __isub__(*args, **kwargs): """ x.__isub__(y) <==> x-=y """ pass def __le__(*args, **kwargs): """ x.__le__(y) <==> x<=y """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __lt__(*args, **kwargs): """ x.__lt__(y) <==> x<y """ pass def __mul__(*args, **kwargs): """ x.__mul__(y) <==> x*y """ pass def __ne__(*args, **kwargs): """ x.__ne__(y) <==> x!=y """ pass def __neg__(*args, **kwargs): """ x.__neg__() <==> -x """ pass def __radd__(*args, **kwargs): """ x.__radd__(y) <==> y+x """ pass def __rdiv__(*args, **kwargs): """ x.__rdiv__(y) <==> y/x """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(y) <==> y*x """ pass def __rsub__(*args, **kwargs): """ x.__rsub__(y) <==> y-x """ pass def __rxor__(*args, **kwargs): """ x.__rxor__(y) <==> y^x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def __sub__(*args, **kwargs): """ x.__sub__(y) <==> x-y """ pass def __xor__(*args, **kwargs): """ x.__xor__(y) <==> x^y """ pass def angle(*args, **kwargs): """ Returns the angle, in radians, between this vector and another. """ pass def isEquivalent(*args, **kwargs): """ Returns True if this vector and another are within a given tolerance of being equal. """ pass def isParallel(*args, **kwargs): """ Returns True if this vector and another are within the given tolerance of being parallel. """ pass def length(*args, **kwargs): """ Returns the magnitude of this vector. """ pass def normal(*args, **kwargs): """ Returns a new vector containing the normalized version of this one. """ pass def normalize(*args, **kwargs): """ Normalizes this vector in-place and returns a new reference to it. """ pass def transformAsNormal(*args, **kwargs): """ Returns a new vector which is calculated by postmultiplying this vector by the transpose of the given matrix and then normalizing the result. """ pass x = None y = None z = None __new__ = None kOneVector = None kTolerance = 9.999999747378752e-06 kXaxisVector = None kXnegAxisVector = None kYaxisVector = None kYnegAxisVector = None kZaxisVector = None kZeroVector = None kZnegAxisVector = None class MPlugArray(object): """ Array of MPlug values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MCallbackIdArray(object): """ Array of MCallbackId values. """ def __add__(*args, **kwargs): """ x.__add__(y) <==> x+y """ pass def __contains__(*args, **kwargs): """ x.__contains__(y) <==> y in x """ pass def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __delslice__(*args, **kwargs): """ x.__delslice__(i, j) <==> del x[i:j] Use of negative indices is not supported. """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __getslice__(*args, **kwargs): """ x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported. """ pass def __iadd__(*args, **kwargs): """ x.__iadd__(y) <==> x+=y """ pass def __imul__(*args, **kwargs): """ x.__imul__(y) <==> x*=y """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __mul__(*args, **kwargs): """ x.__mul__(n) <==> x*n """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __rmul__(*args, **kwargs): """ x.__rmul__(n) <==> n*x """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def __setslice__(*args, **kwargs): """ x.__setslice__(i, j, y) <==> x[i:j]=y Use of negative indices is not supported. """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def append(*args, **kwargs): """ Add a value to the end of the array. """ pass def clear(*args, **kwargs): """ Remove all elements from the array. """ pass def copy(*args, **kwargs): """ Replace the array contents with that of another or of a compatible Python sequence. """ pass def insert(*args, **kwargs): """ Insert a new value into the array at the given index. """ pass def remove(*args, **kwargs): """ Remove an element from the array. """ pass def setLength(*args, **kwargs): """ Grow or shrink the array to contain a specific number of elements. """ pass sizeIncrement = None __new__ = None class MNodeClass(object): """ A class for performing node class-level operations in the dependency graph. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __repr__(*args, **kwargs): """ x.__repr__() <==> repr(x) """ pass def __str__(*args, **kwargs): """ x.__str__() <==> str(x) """ pass def addExtensionAttribute(*args, **kwargs): """ Adds an extension attribute to the node class. An extension attribute is a class-level attribute which has been added dynamically to a node class. Because it is added at the class level, all nodes of that class will have the given attribute, and will only store the attribute's value if it differs from the default. Returns the type of the object at the end of the path. """ pass def attribute(*args, **kwargs): """ If passed an int: Returns the node class's i'th attribute. Raises IndexError if index is out of bounds. If passed a string, Returns the node class's attribute having the given name. Returns MObject.kNullObj if the class does not have an attribute with that name. """ pass def getAttributes(*args, **kwargs): """ Returns an MObjectArray array containing all of the node class's attributes. """ pass def hasAttribute(*args, **kwargs): """ Returns True if the node class has an attribute of the given name, False otherwise. """ pass def removeExtensionAttribute(*args, **kwargs): """ Removes an extension attribute from the node class. Raises ValueError if attr is not an extension attribute of this node class. """ pass def removeExtensionAttributeIfUnset(*args, **kwargs): """ Removes an extension attribute from the node class, but only if there are no nodes in the graph with non-default values for this attribute. Returns True if the attribute was removed, False otherwise. Raises ValueError if attr is not an extension attribute of this node class. """ pass attributeCount = None classification = None pluginName = None typeId = None typeName = None __new__ = None class MPxCommand(object): """ Base class for custom commands. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def doIt(*args, **kwargs): """ Called by Maya to execute the command. """ pass def hasSyntax(*args, **kwargs): """ Called by Maya to determine if the command provides an MSyntax object describing its syntax. """ pass def isUndoable(*args, **kwargs): """ Called by Maya to determine if the command supports undo. """ pass def redoIt(*args, **kwargs): """ Called by Maya to redo a previously undone command. """ pass def syntax(*args, **kwargs): """ Returns the command's MSyntax object, if it has one. """ pass def undoIt(*args, **kwargs): """ Called by Maya to undo a previously executed command. """ pass def appendToResult(*args, **kwargs): """ Append a value to the result to be returned by the command. """ pass def clearResult(*args, **kwargs): """ Clears the command's result. """ pass def currentResult(*args, **kwargs): """ Returns the command's current result. """ pass def currentResultType(*args, **kwargs): """ Returns the type of the current result. """ pass def displayError(*args, **kwargs): """ Display an error message. """ pass def displayInfo(*args, **kwargs): """ Display an informational message. """ pass def displayWarning(*args, **kwargs): """ Display a warning message. """ pass def isCurrentResultArray(*args, **kwargs): """ Returns true if the command's current result is an array of values. """ pass def setResult(*args, **kwargs): """ Set the value of the result to be returned by the command. """ pass commandString = None historyOn = None __new__ = None kDouble = 1 kLong = 0 kNoArg = 3 kString = 2 class MFnComponent(MFnBase): """ This is the base class for all function sets which deal with component objects. __init__() Initializes a new, empty MFnComponent object __init__(MObject component) Initializes a new MFnComponent function set, attached to the specified component. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def isEqual(*args, **kwargs): """ isEqual(MObject other) -> bool Returns True if other refers to the same component as the one to which the function set is currently attached. """ pass def weight(*args, **kwargs): """ weight(index) -> MWeight Returns the weight associated with the specified element, where index can range from 0 to elementCount-1. """ pass componentType = None elementCount = None hasWeights = None isComplete = None isEmpty = None __new__ = None class MDagModifier(MDGModifier): """ Used to change the structure of the DAG """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def createNode(*args, **kwargs): """ createNode(typeName, parent=MObject.kNullObj) -> new DAG node MObject createNode(typeId, parent=MObject.kNullObj) -> new DAG node MObject Adds an operation to the modifier to create a DAG node of the specified type. If a parent DAG node is provided the new node will be parented under it. If no parent is provided and the new DAG node is a transform type then it will be parented under the world. In both of these cases the method returns the new DAG node. If no parent is provided and the new DAG node is not a transform type then a transform node will be created and the child parented under that. The new transform will be parented under the world and it is the transform node which will be returned by the method, not the child. None of the newly created nodes will be added to the DAG until the modifier's doIt() method is called. """ pass def reparentNode(*args, **kwargs): """ reparentNode(MObject node, newParent=MObject.kNullObj) -> self Adds an operation to the modifier to reparent a DAG node under a specified parent. If no parent is provided then the DAG node will be reparented under the world, so long as it is a transform type. If it is not a transform type then the doIt() will raise a RuntimeError. """ pass __new__ = None class MFnData(MFnBase): """ Base class for dependency graph data function sets. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass __new__ = None kAny = 23 kComponentList = 12 kDoubleArray = 7 kDynArrayAttrs = 18 kDynSweptGeometry = 19 kFloatArray = 8 kIntArray = 9 kInvalid = 0 kLast = 24 kLattice = 14 kMatrix = 5 kMesh = 13 kNId = 22 kNObject = 21 kNumeric = 1 kNurbsCurve = 15 kNurbsSurface = 16 kPlugin = 2 kPluginGeometry = 3 kPointArray = 10 kSphere = 17 kString = 4 kStringArray = 6 kSubdSurface = 20 kVectorArray = 11 class MFnPlugin(MFnBase): """ Register and deregister plug-in services with Maya. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def apiVersion(*args, **kwargs): """ Return the API version required by the plug-in. """ pass def deregisterAttributePatternFactory(*args, **kwargs): """ Deregister a user defined attribute pattern factory type from Maya. """ pass def deregisterCommand(*args, **kwargs): """ Deregister a user defined command from Maya. """ pass def loadPath(*args, **kwargs): """ Return the full path name of the file from which the plug-in was loaded. """ pass def name(*args, **kwargs): """ Return the plug-in's name. """ pass def registerAttributePatternFactory(*args, **kwargs): """ Register a new attribute pattern factory type with Maya. """ pass def registerCommand(*args, **kwargs): """ Register a new command with Maya. """ pass def setName(*args, **kwargs): """ Set the plug-in's name. """ pass def vendor(*args, **kwargs): """ Return the plug-in's vendor string. """ pass version = None __new__ = None class MArgDatabase(MArgParser): """ Command argument list parser which extends MArgParser with the ability to return arguments and objects as MSelectionLists """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def commandArgumentMSelectionList(*args, **kwargs): """ commandArgumentMSelectionList(argIndex) -> MSelectionList Returns the specified command argument as an MSelectionList. """ pass def flagArgumentMSelectionList(*args, **kwargs): """ flagArgumentMSelectionList(flagName, argIndex) -> MSelectionList Returns the specified argument of the specified single-use flag as an MSelectionList. """ pass def getObjectList(*args, **kwargs): """ getObjectList() -> MSelectionList If the command's MSyntax has set the object format to kSelectionList then this method will return the objects passed to the command as an MSelectionList. If any other object format is set then an empty selection list will be returned. """ pass __new__ = None class MFnDependencyNode(MFnBase): """ Function set for operating on dependency nodes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addAttribute(*args, **kwargs): """ Adds a new dynamic attribute to the node. """ pass def attribute(*args, **kwargs): """ Returns an attribute of the node, given either its index or name. """ pass def attributeClass(*args, **kwargs): """ Returns the class of the specified attribute. """ pass def attributeCount(*args, **kwargs): """ Returns the number of attributes on the node. """ pass def canBeWritten(*args, **kwargs): """ Returns true if the node will be written to file. """ pass def create(*args, **kwargs): """ Creates a new node of the given type. """ pass def dgCallbackIds(*args, **kwargs): """ Returns DG timing information for a specific callback type, broken down by callbackId. """ pass def dgCallbacks(*args, **kwargs): """ Returns DG timing information broken down by callback type. """ pass def dgTimer(*args, **kwargs): """ Returns a specific DG timer metric for a given timer type. """ pass def dgTimerOff(*args, **kwargs): """ Turns DG timing off for this node. """ pass def dgTimerOn(*args, **kwargs): """ Turns DG timing on for this node. """ pass def dgTimerQueryState(*args, **kwargs): """ Returns the current DG timer state for this node. """ pass def dgTimerReset(*args, **kwargs): """ Resets all DG timers for this node. """ pass def findAlias(*args, **kwargs): """ Returns the attribute which has the given alias. """ pass def findPlug(*args, **kwargs): """ Returns a plug for the given attribute. """ pass def getAffectedAttributes(*args, **kwargs): """ Returns all of the attributes which are affected by the specified attribute. """ pass def getAffectingAttributes(*args, **kwargs): """ Returns all of the attributes which affect the specified attribute. """ pass def getAliasAttr(*args, **kwargs): """ Returns the node's alias attribute, which is a special attribute used to store information about the node's attribute aliases. """ pass def getAliasList(*args, **kwargs): """ Returns all of the node's attribute aliases. """ pass def getConnections(*args, **kwargs): """ Returns all the plugs which are connected to attributes of this node. """ pass def hasAttribute(*args, **kwargs): """ Returns True if the node has an attribute with the given name. """ pass def hasUniqueName(*args, **kwargs): """ Returns True if the node's name is unique. """ pass def isFlagSet(*args, **kwargs): """ Returns the state of the specified node flag. """ pass def isNewAttribute(*args, **kwargs): """ Returns True if the specified attribute was added in the current scene, and not by by one of its referenced files. """ pass def isTrackingEdits(*args, **kwargs): """ Returns True if the node is referenced or in an assembly that is tracking edits. """ pass def name(*args, **kwargs): """ Returns the node's name. """ pass def plugsAlias(*args, **kwargs): """ Returns the alias for a plug's attribute. """ pass def removeAttribute(*args, **kwargs): """ Removes a dynamic attribute from the node. """ pass def reorderedAttribute(*args, **kwargs): """ Returns one of the node's attribute, based on the order in which they are written to file. """ pass def setAlias(*args, **kwargs): """ Adds or removes an attribute alias. """ pass def setDoNotWrite(*args, **kwargs): """ Used to prevent the node from being written to file. """ pass def setFlag(*args, **kwargs): """ Sets the state of the specified node flag. """ pass def setName(*args, **kwargs): """ Sets the node's name. """ pass def userNode(*args, **kwargs): """ Returns the MPxNode object for a plugin node. """ pass def allocateFlag(*args, **kwargs): """ Allocates a flag on all nodes for use by the named plugin and returns the flag's index. """ pass def classification(*args, **kwargs): """ Returns the classification string for the named node type. """ pass def deallocateAllFlags(*args, **kwargs): """ Deallocates all node flags which are currently allocated to the named plugin. """ pass def deallocateFlag(*args, **kwargs): """ Deallocates the specified node flag, which was previously allocated by the named plugin using allocateFlag(). """ pass isDefaultNode = None isFromReferencedFile = None isLocked = None isShared = None namespace = None pluginName = None typeId = None typeName = None __new__ = None kExtensionAttr = 3 kInvalidAttr = 4 kLocalDynamicAttr = 1 kNormalAttr = 2 kTimerInvalidState = 3 kTimerMetric_callback = 0 kTimerMetric_callbackNotViaAPI = 6 kTimerMetric_callbackViaAPI = 5 kTimerMetric_compute = 1 kTimerMetric_computeDuringCallback = 7 kTimerMetric_computeNotDuringCallback = 8 kTimerMetric_dirty = 2 kTimerMetric_draw = 3 kTimerMetric_fetch = 4 kTimerOff = 0 kTimerOn = 1 kTimerType_count = 2 kTimerType_inclusive = 1 kTimerType_self = 0 kTimerUninitialized = 2 class MFnAttribute(MFnBase): """ Base class for attribute functionsets. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def accepts(*args, **kwargs): """ Returns True if this attribute can accept a connection of the given type. """ pass def addToCategory(*args, **kwargs): """ Adds the attribute to a category """ pass def getAddAttrCmd(*args, **kwargs): """ Returns a string containing a MEL 'addAttr' command capable of recreating the attribute. """ pass def hasCategory(*args, **kwargs): """ Checks to see if the attribute has a given category """ pass def setNiceNameOverride(*args, **kwargs): """ Sets a nice UI name for this attribute rather than using the default derived from it's long name. """ pass affectsAppearance = None affectsWorldSpace = None array = None cached = None channelBox = None connectable = None disconnectBehavior = None dynamic = None extension = None hidden = None indeterminant = None indexMatters = None internal = None keyable = None name = None parent = None readable = None renderSource = None shortName = None storable = None usedAsColor = None usedAsFilename = None usesArrayDataBuilder = None worldSpace = None writable = None __new__ = None kDelete = 0 kNothing = 2 kReset = 1 class MFnEnumAttribute(MFnAttribute): """ Functionset for creating and working with enumeration attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addField(*args, **kwargs): """ Add an item to the enumeration with a specified UI name and corresponding attribute value. """ pass def create(*args, **kwargs): """ Creates a new enumeration attribute, attaches it to the function set and returns it as an MObject. """ pass def fieldName(*args, **kwargs): """ Returns the name of the enumeration item which has a given value. """ pass def fieldValue(*args, **kwargs): """ Returns the value of the enumeration item which has a given name. """ pass def getMax(*args, **kwargs): """ Returns the maximum value of all the enumeration items. """ pass def getMin(*args, **kwargs): """ Returns the minimum value of all the enumeration items. """ pass def setDefaultByName(*args, **kwargs): """ Set the default value using the name of an enumeration item. Equivalent to: attr.default = attr.fieldValue(name) """ pass default = None __new__ = None class MFnDoubleIndexedComponent(MFnComponent): """ This function set allows you to create, edit, and query double indexed components. Double indexed components store 2 dimensional index values. __init__() Initializes a new, empty MFnDoubleIndexedComponent object __init__(MObject component) Initializes a new MFnDoubleIndexedComponent function set, attached to the specified component. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addElement(*args, **kwargs): """ addElement(uIndex, vIndex) -> self addElement([uIndex, vIndex]) -> self Adds the element identified by (uIndex, vIndex) to the component. """ pass def addElements(*args, **kwargs): """ addElements(sequence of [uIndex, vIndex]) -> self Adds the specified elements to the component. Each item in the elements sequence is itself a sequence of two ints which are the U and V indices of an element to be added. """ pass def create(*args, **kwargs): """ create(MFn Type constant) -> MObject Creates a new, empty component, attaches it to the function set and returns an MObject which references it. """ pass def getCompleteData(*args, **kwargs): """ getCompleteData() -> (numU, numV) Returns a tuple containing the number of U and V indices in the complete component, or (0,0) if the component is not complete. """ pass def getElement(*args, **kwargs): """ getElement(index) -> (uIndex, vIndex) Returns the index'th element of the component as a tuple containing the element's U and V indices. """ pass def getElements(*args, **kwargs): """ getElements() -> list of (uIndex, vIndex) Returns all of the component's elements as a list of tuples with each tuple containing the U and V indices of a single element. """ pass def setCompleteData(*args, **kwargs): """ setCompleteData(numU, numV) -> self Marks the component as complete (i.e. contains all possible elements). numU and numV indicate the number of U and V indices in the complete component (i.e. the max U index is numU-1 and the max V index is numV-1). """ pass __new__ = None class MFnGenericAttribute(MFnAttribute): """ Functionset for creating and working with attributes which can accept several different types of data. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addDataType(*args, **kwargs): """ Adds the specified Maya data type to the list of those accepted by the attribute. """ pass def addNumericType(*args, **kwargs): """ Adds the specified numeric type to the list of those accepted by the attribute. """ pass def addTypeId(*args, **kwargs): """ Adds the specified data typeId to the list of those accepted by the attribute. """ pass def create(*args, **kwargs): """ Creates a new generic attribute, attaches it to the function set and returns it as an MObject. """ pass def removeDataType(*args, **kwargs): """ Removes the specified Maya data type from the list of those accepted by the attribute. """ pass def removeNumericType(*args, **kwargs): """ Removes the specified numeric type from the list of those accepted by the attribute. """ pass def removeTypeId(*args, **kwargs): """ Removes the specified data typeId from the list of those accepted by the attribute. """ pass __new__ = None class MFnLightDataAttribute(MFnAttribute): """ Functionset for creating and working with light data attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def child(*args, **kwargs): """ Returns one of the attribute's children, specified by index. """ pass def create(*args, **kwargs): """ Creates a new light data attribute, attaches it to the function set and returns it as an MObject. """ pass default = None __new__ = None class MFnMatrixAttribute(MFnAttribute): """ Functionset for creating and working with matrix attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ Creates a new matrix attribute, attaches it to the function set and returns it as an MObject. """ pass default = None __new__ = None kDouble = 1 kFloat = 0 class MFnPointArrayData(MFnData): """ Function set for node data consisting of an array of MPoints. """ def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def array(*args, **kwargs): """ Returns the encapsulated array as an MPointArray. """ pass def copyTo(*args, **kwargs): """ Replaces the elements of an array with those in the encapsulated array. """ pass def create(*args, **kwargs): """ Creates a new MPoint array data object. """ pass def set(*args, **kwargs): """ Sets values in the encapsulated array. """ pass __new__ = None class MFnMessageAttribute(MFnAttribute): """ Functionset for creating and working with message attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ Creates a new message attribute, attaches it to the function set and returns it as an MObject. """ pass __new__ = None class MFnTripleIndexedComponent(MFnComponent): """ This function set allows you to create, edit, and query triple indexed components. Triple indexed components store 3 dimensional index values. __init__() Initializes a new, empty MFnTripleIndexedComponent object __init__(MObject component) Initializes a new MFnTripleIndexedComponent function set, attached to the specified component. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addElement(*args, **kwargs): """ addElement(sIndex, tIndex, uIndex) -> self addElement([sIndex, tIndex, uIndex]) -> self Adds the element identified by (sIndex, tIndex, uIndex) to the component. """ pass def addElements(*args, **kwargs): """ addElements(sequence of [sIndex, tIndex, uIndex]) -> self Adds the specified elements to the component. Each item in the elements sequence is itself a sequence of three ints which are the S, T and U indices of an element to be added. """ pass def create(*args, **kwargs): """ create(MFn Type constant) -> MObject Creates a new, empty component, attaches it to the function set and returns an MObject which references it. """ pass def getCompleteData(*args, **kwargs): """ getCompleteData() -> (numS, numT, numU) Returns a tuple containing the number of S, T and U indices in the complete component, or (0,0,0) if the component is not complete. """ pass def getElement(*args, **kwargs): """ getElement(index) -> (sIndex, tIndex, uIndex) Returns the index'th element of the component as a tuple containing the element's S, T and U indices. """ pass def getElements(*args, **kwargs): """ getElements() -> list of (sIndex, tIndex, uIndex) Returns all of the component's elements as a list of tuples with each tuple containing the S, T and U indices of a single element. """ pass def setCompleteData(*args, **kwargs): """ setCompleteData(numS, numT, numU) -> self Marks the component as complete (i.e. contains all possible elements). numS, numT and numU indicate the number of S, T and U indices in the complete component (i.e. the max S index is numS-1, the max T index is numT-1 and the max U index is numU-1). """ pass __new__ = None class MFnNumericAttribute(MFnAttribute): """ Functionset for creating and working with numeric attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def child(*args, **kwargs): """ Returns the specified child attribute of the parent attribute currently attached to the function set. """ pass def create(*args, **kwargs): """ Creates a new simple or compound numeric attribute, attaches it to the function set and returns it in an MObject. """ pass def createAddr(*args, **kwargs): """ Creates a new address attribute, attaches it to the function set and returns it in an MObject. """ pass def createColor(*args, **kwargs): """ Creates a new color attribute, attaches it to the function set and returns it in an MObject. """ pass def createPoint(*args, **kwargs): """ Creates a new 3D point attribute, attaches it to the function set and returns it in an MObject. """ pass def getMax(*args, **kwargs): """ Returns the attribute's hard maximum value(s). """ pass def getMin(*args, **kwargs): """ Returns the attribute's hard minimum value(s). """ pass def getSoftMax(*args, **kwargs): """ Returns the attribute's soft maximum value. """ pass def getSoftMin(*args, **kwargs): """ Returns the attribute's soft minimum value. """ pass def hasMax(*args, **kwargs): """ Returns True if a hard maximum value has been specified for the attribute. """ pass def hasMin(*args, **kwargs): """ Returns True if a hard minimum value has been specified for the attribute. """ pass def hasSoftMax(*args, **kwargs): """ Returns True if a soft maximum value has been specified for the attribute. """ pass def hasSoftMin(*args, **kwargs): """ Returns True if a soft minimum value has been specified for the attribute. """ pass def numericType(*args, **kwargs): """ Returns the numeric type of the attribute currently attached to the function set. """ pass def setMax(*args, **kwargs): """ Sets the attribute's hard maximum value(s). """ pass def setMin(*args, **kwargs): """ Sets the attribute's hard minimum value(s). """ pass def setSoftMax(*args, **kwargs): """ Sets the attribute's soft maximum value. """ pass def setSoftMin(*args, **kwargs): """ Sets the attribute's soft minimum value. """ pass default = None __new__ = None class MFnStringData(MFnData): """ Function set for string node data. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ Creates a new string data object. """ pass def set(*args, **kwargs): """ Sets the value of the encapsulated string. """ pass def string(*args, **kwargs): """ Returns the encapsulated string as a unicode object. """ pass __new__ = None class MFnStringArrayData(MFnData): """ Function set for node data consisting of an array of string. """ def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def array(*args, **kwargs): """ Returns the encapsulated array as a list of unicode objects. """ pass def create(*args, **kwargs): """ Creates a new string array data object. """ pass def set(*args, **kwargs): """ Sets values in the encapsulated array. """ pass __new__ = None class MFnComponentListData(MFnData): """ MFnComponentListData allows the creation and manipulation of component list (represented as MObjects) data objects for use in the dependency graph. __init__() Initializes a new, empty MFnComponentListData object. __init__(MObject) Initializes a new MFnComponentListData function set, attached to the specified object. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def add(*args, **kwargs): """ add(MObject) -> self Adds the specified component to the end of the list. """ pass def clear(*args, **kwargs): """ clear() -> self Removes all of the components from the list. """ pass def create(*args, **kwargs): """ create() -> MObject Creates a new, empty component list, attaches it to the function set and returns an MObject which references it. """ pass def get(*args, **kwargs): """ get(index) -> MObject Returns a copy of the component at the specified index. Raises IndexError if the index is out of range. """ pass def has(*args, **kwargs): """ has(MObject) -> bool Returns True if the list contains the specified component, False otherwise. """ pass def length(*args, **kwargs): """ length() -> int Returns the number of components in the list. """ pass def remove(*args, **kwargs): """ remove(MObject) -> self remove(index) -> self Removes the specified component from the list. No exception is raised if the component is not in the list, raises IndexError if index is out of range """ pass __new__ = None class MFnTypedAttribute(MFnAttribute): """ Functionset for creating and working typed attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def attrType(*args, **kwargs): """ Returns the type of data handled by the attribute. """ pass def create(*args, **kwargs): """ Creates a new type attribute, attaches it to the function set and returns it as an MObject. """ pass default = None __new__ = None class MFnUInt64ArrayData(MFnData): """ Function set for node data consisting of an array of MUint64. """ def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def array(*args, **kwargs): """ Returns the encapsulated array as an MUint64Array. """ pass def copyTo(*args, **kwargs): """ Replaces the elements of an array with those in the encapsulated array. """ pass def create(*args, **kwargs): """ Creates a new MUint64 array data object. """ pass def set(*args, **kwargs): """ Sets values in the encapsulated array. """ pass __new__ = None class MFnSingleIndexedComponent(MFnComponent): """ This function set allows you to create, edit, and query single indexed components. Single indexed components store 1 dimensional index values. __init__() Initializes a new, empty MFnSingleIndexedComponent object __init__(MObject component) Initializes a new MFnSingleIndexedComponent function set, attached to the specified component. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addElement(*args, **kwargs): """ addElement(int element) -> self Adds the specified element to the component. """ pass def addElements(*args, **kwargs): """ addElements([int]) -> self addElements(MIntArray) -> self Adds the specified elements to the component. """ pass def create(*args, **kwargs): """ create(MFn Type constant) -> MObject Creates a new, empty component, attaches it to the function set and returns an MObject which references it. """ pass def element(*args, **kwargs): """ element(index) -> int Returns the index'th element of the component. """ pass def getCompleteData(*args, **kwargs): """ getCompleteData() -> int Returns the number of elements in the complete component, or 0 if the component is not complete. """ pass def getElements(*args, **kwargs): """ getElements() -> MIntArray Returns all of the component's elements. """ pass def setCompleteData(*args, **kwargs): """ setCompleteData(numElements) -> self Marks the component as complete (i.e. contains all possible elements). numElements indicates the number of elements in the complete component. """ pass __new__ = None class MFnDagNode(MFnDependencyNode): """ Function set for operating on DAG nodes. __init__() Initializes a new, empty MFnDagNode functionset. __init__(MObject) Initializes a new MFnDagNode functionset and attaches it to a DAG node. __init__(MDagPath) Initializes a new MFnDagNode functionset and attaches it to a DAG path. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addChild(*args, **kwargs): """ addChild(node, index=kNextPos, keepExistingParents=False) -> self Makes a node a child of this one. """ pass def child(*args, **kwargs): """ child(index) -> MObject Returns the specified child of this node. """ pass def childCount(*args, **kwargs): """ childCount() -> int Returns the number of nodes which are children of this one. """ pass def create(*args, **kwargs): """ create(type, name=None, parent=MObject.kNullObj) -> MObject Creates a new DAG node of the specified type, with the given name. The type may be either a type name or a type ID. If no name is given then a unique name will be generated by combining the type name with an integer. If a parent is given then the new node will be parented under it and the functionset will be attached to the newly-created node. The newly-created node will be returned. If no parent is given and the new node is a transform, it will be parented under the world and the functionset will be attached to the newly-created transform. The newly-created transform will be returned. If no parent is given and the new node is not a transform then a transform node will be created under the world, the new node will be parented under it, and the functionset will be attached to the transform. The transform will be returned. """ pass def dagPath(*args, **kwargs): """ dagPath() -> MDagPath Returns the DAG path to which this function set is attached. Raises a TypeError if the function set is attached to an MObject rather than a path. """ pass def dagRoot(*args, **kwargs): """ dagRoot() -> MObject Returns the root node of the first path leading to this node. """ pass def duplicate(*args, **kwargs): """ duplicate(instance=False, instanceLeaf=False) -> MObject Duplicates the DAG hierarchy rooted at the current node. """ pass def fullPathName(*args, **kwargs): """ fullPathName() -> string Returns the full path of the attached object, from the root of the DAG on down. """ pass def getAllPaths(*args, **kwargs): """ getAllPaths() -> MDagPathArray Returns all of the DAG paths which lead to the object to which this function set is attached. """ pass def getPath(*args, **kwargs): """ getPath() -> MDagPath Returns the DAG path to which this function set is attached, or the first path to the node if the function set is attached to an MObject. """ pass def hasChild(*args, **kwargs): """ hasChild(node) -> bool Returns True if the specified node is a child of this one. """ pass def hasParent(*args, **kwargs): """ hasParent(node) -> bool Returns True if the specified node is a parent of this one. """ pass def instanceCount(*args, **kwargs): """ instanceCount(indirect) -> int Returns the number of instances for this node. """ pass def isChildOf(*args, **kwargs): """ isChildOf(node) -> bool Returns True if the specified node is a parent of this one. """ pass def isInstanced(*args, **kwargs): """ isInstanced(indirect=True) -> bool Returns True if this node is instanced. """ pass def isInstancedAttribute(*args, **kwargs): """ isInstancedAttribute(attr) -> bool Returns True if the specified attribute is an instanced attribute of this node. """ pass def isParentOf(*args, **kwargs): """ isParentOf(node) -> bool Returns True if the specified node is a child of this one. """ pass def parent(*args, **kwargs): """ parent(index) -> MObject Returns the specified parent of this node. """ pass def parentCount(*args, **kwargs): """ parentCount() -> int Returns the number of parents this node has. """ pass def partialPathName(*args, **kwargs): """ partialPathName() -> string Returns the minimum path string necessary to uniquely identify the attached object. """ pass def removeChild(*args, **kwargs): """ removeChild(node) -> self Removes the child, specified by MObject, reparenting it under the world. """ pass def removeChildAt(*args, **kwargs): """ removeChildAt(index) -> self Removes the child, specified by index, reparenting it under the world. """ pass def setObject(*args, **kwargs): """ setObject(MObject or MDagPath) -> self Attaches the function set to the specified node or DAG path. """ pass def transformationMatrix(*args, **kwargs): """ transformationMatrix() -> MMatrix Returns the object space transformation matrix for this DAG node. """ pass boundingBox = None inModel = None inUnderWorld = None isInstanceable = None isIntermediateObject = None objectColor = None useObjectColor = None __new__ = None kNextPos = 255 class MFnDoubleArrayData(MFnData): """ Function set for node data consisting of an array of doubles. """ def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def array(*args, **kwargs): """ Returns the encapsulated array as an MDoubleArray. """ pass def copyTo(*args, **kwargs): """ Replaces the elements of an array with those in the encapsulated array. """ pass def create(*args, **kwargs): """ Creates a new double array data object. """ pass def set(*args, **kwargs): """ Sets values in the encapsulated array. """ pass __new__ = None class MFnVectorArrayData(MFnData): """ Function set for node data consisting of an array of MVectors. """ def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def array(*args, **kwargs): """ Returns the encapsulated array as an MVectorArray. """ pass def copyTo(*args, **kwargs): """ Replaces the elements of an array with those in the encapsulated array. """ pass def create(*args, **kwargs): """ Creates a new MVector array data object. """ pass def set(*args, **kwargs): """ Sets values in the encapsulated array. """ pass __new__ = None class MFnNumericData(MFnData): """ Function set for non-simple numeric node data. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ Creates a new numeric data object. """ pass def getData(*args, **kwargs): """ Returns a list containing the attached data object's data. """ pass def numericType(*args, **kwargs): """ Returns the type of data in the attached data object. """ pass def setData(*args, **kwargs): """ Sets the value of the data in the attached data object. """ pass __new__ = None k2Double = 14 k2Float = 11 k2Int = 8 k2Long = 8 k2Short = 5 k3Double = 15 k3Float = 12 k3Int = 9 k3Long = 9 k3Short = 6 k4Double = 16 kAddr = 17 kBoolean = 1 kByte = 2 kChar = 3 kDouble = 13 kFloat = 10 kInt = 7 kInvalid = 0 kLast = 18 kLong = 7 kShort = 4 class MFnGeometryData(MFnData): """ This class is the function set for geometry data. Geometry data adds matrix and grouping (set) information to regular data and is used to pass geometry types such as mesh, lattice, and NURBS shape data through DG connections. __init__() Initializes a new, empty MFnGeometryData object __init__(MObject) Initializes a new MFnGeometryData function set, attached to the specified object. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addObjectGroup(*args, **kwargs): """ addObjectGroup(id) -> self Adds an object group with the given id to the object. """ pass def addObjectGroupComponent(*args, **kwargs): """ addObjectGroupComponent(id, MObject component) -> self Adds the members of the given component to the object group with the given id. """ pass def changeObjectGroupId(*args, **kwargs): """ changeObjectGroupId(sourceId, destId) -> self Changes the id of the object group with the given id to the new id. """ pass def copyObjectGroups(*args, **kwargs): """ copyObjectGroups(MObject inGeom) -> self Copies the object groups from the given geometry data object. """ pass def hasObjectGroup(*args, **kwargs): """ hasObjectGroup(id) -> self Returns True if an object group with the given id is contained in the data. """ pass def objectGroup(*args, **kwargs): """ objectGroup(index) -> int Returns the id of the index'th object group contained by the object. """ pass def objectGroupComponent(*args, **kwargs): """ objectGroupComponent(id) -> MObject Returns a component which contains the members of the object group with the given id. """ pass def objectGroupType(*args, **kwargs): """ objectGroupType(id) -> MFn Type constant Returns the type of the component that the object group with the given id contains. """ pass def removeObjectGroup(*args, **kwargs): """ removeObjectGroup(id) -> self Removes an object group with the given id from the object. """ pass def removeObjectGroupComponent(*args, **kwargs): """ removeObjectGroupComponent(id, MObject component) -> self Removes the members of the given component from the object group with the given id. """ pass def setObjectGroupComponent(*args, **kwargs): """ setObjectGroupComponent(id, MObject component) -> self Sets the members of the object group with the given id to be only those in the given component. """ pass isIdentity = None isNotIdentity = None matrix = None objectGroupCount = None __new__ = None class MFnUnitAttribute(MFnAttribute): """ Functionset for creating and working with angle, distance and time attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ Creates a new unit attribute, attaches it to the function set and returns it as an MObject. """ pass def getMax(*args, **kwargs): """ Returns the attribute's hard maximum value. """ pass def getMin(*args, **kwargs): """ Returns the attribute's hard minimum value. """ pass def getSoftMax(*args, **kwargs): """ Returns the attribute's soft maximum value. """ pass def getSoftMin(*args, **kwargs): """ Returns the attribute's soft minimum value. """ pass def hasMax(*args, **kwargs): """ Returns True if the attribute has a hard maximum value. """ pass def hasMin(*args, **kwargs): """ Returns True if the attribute has a hard minimum value. """ pass def hasSoftMax(*args, **kwargs): """ Returns True if the attribute has a soft maximum value. """ pass def hasSoftMin(*args, **kwargs): """ Returns True if the attribute has a soft minimum value. """ pass def setMax(*args, **kwargs): """ Sets the attribute's hard maximum value. """ pass def setMin(*args, **kwargs): """ Sets the attribute's hard minimum value. """ pass def setSoftMax(*args, **kwargs): """ Sets the attribute's soft maximum value. """ pass def setSoftMin(*args, **kwargs): """ Sets the attribute's soft minimum value. """ pass def unitType(*args, **kwargs): """ Returns the type of data handled by the attribute. """ pass default = None __new__ = None kAngle = 1 kDistance = 2 kInvalid = 0 kLast = 4 kTime = 3 class MFnIntArrayData(MFnData): """ Function set for node data consisting of an array of ints. """ def __delitem__(*args, **kwargs): """ x.__delitem__(y) <==> del x[y] """ pass def __getitem__(*args, **kwargs): """ x.__getitem__(y) <==> x[y] """ pass def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def __len__(*args, **kwargs): """ x.__len__() <==> len(x) """ pass def __setitem__(*args, **kwargs): """ x.__setitem__(i, y) <==> x[i]=y """ pass def array(*args, **kwargs): """ Returns the encapsulated array as an MIntArray. """ pass def copyTo(*args, **kwargs): """ Replaces the elements of an array with those in the encapsulated array. """ pass def create(*args, **kwargs): """ Creates a new int array data object. """ pass def set(*args, **kwargs): """ Sets values in the encapsulated array. """ pass __new__ = None class MFnCompoundAttribute(MFnAttribute): """ Functionset for creating and working with compound attributes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addChild(*args, **kwargs): """ Add a child attribute. """ pass def child(*args, **kwargs): """ Returns one of the attribute's children, specified by index. """ pass def create(*args, **kwargs): """ Creates a new compound attribute, attaches it to the function set and returns it as an MObject. """ pass def getAddAttrCmds(*args, **kwargs): """ Returns a list of MEL 'addAttr' commands capable of recreating the attribute and all of its children. """ pass def numChildren(*args, **kwargs): """ Returns number of child attributes currently parented under the compound attribute. """ pass def removeChild(*args, **kwargs): """ Remove a child attribute. """ pass __new__ = None class MFnMatrixData(MFnData): """ Function set for matrix node data. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ Creates a new matrix data object. """ pass def isTransformation(*args, **kwargs): """ Returns True if the attached object is an MTransformationMatrix, False if it is an MMatrix. """ pass def matrix(*args, **kwargs): """ Returns the encapsulated matrix as an MMatrix. """ pass def set(*args, **kwargs): """ Sets the value of the encapsulated matrix. """ pass def transformation(*args, **kwargs): """ Returns the encapsulated matrix as an MTransformationMatrix. """ pass __new__ = None class MFnMeshData(MFnGeometryData): """ MFnMeshData allows the creation and manipulation of Mesh data objects for use in the dependency graph. __init__() Initializes a new, empty MFnMeshData object __init__(MObject) Initializes a new MFnMeshData function set, attached to the specified object. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ create() -> MObject Creates a new mesh data object, attaches it to this function set and returns an MObject which references it. """ pass __new__ = None class MFnTransform(MFnDagNode): """ Function set for operating on transform nodes. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def clearRestPosition(*args, **kwargs): """ Clears the transform's rest position matrix. """ pass def create(*args, **kwargs): """ Creates a new transform node and attaches it to the function set. """ pass def enableLimit(*args, **kwargs): """ Enables or disables a specified limit type. """ pass def isLimited(*args, **kwargs): """ Returns True if the specified limit type is enabled. """ pass def limitValue(*args, **kwargs): """ Returns the value of the specified limit. """ pass def resetFromRestPosition(*args, **kwargs): """ Resets the transform from its rest position matrix. """ pass def restPosition(*args, **kwargs): """ Returns the transform's rest position matrix. """ pass def rotateBy(*args, **kwargs): """ Adds an MEulerRotation or MQuaternion to the transform's rotation. """ pass def rotateByComponents(*args, **kwargs): """ Adds to the transform's rotation using the individual components of an MEulerRotation or MQuaternion. """ pass def rotateOrientation(*args, **kwargs): """ Returns the MQuaternion which orients the local rotation space. """ pass def rotatePivot(*args, **kwargs): """ Returns the transform's rotate pivot. """ pass def rotatePivotTranslation(*args, **kwargs): """ Returns the transform's rotate pivot translation. """ pass def rotation(*args, **kwargs): """ Returns the transform's rotation as an MEulerRotation or MQuaternion. """ pass def rotationComponents(*args, **kwargs): """ Returns the transform's rotation as the individual components of an MEulerRotation or MQuaternion. """ pass def rotationOrder(*args, **kwargs): """ Returns the order of rotations when the transform's rotation is expressed as an MEulerRotation. """ pass def scale(*args, **kwargs): """ Returns a list containing the transform's XYZ scale components. """ pass def scaleBy(*args, **kwargs): """ Multiplies the transform's XYZ scale components by a sequence of three floats. """ pass def scalePivot(*args, **kwargs): """ Returns the transform's scale pivot. """ pass def scalePivotTranslation(*args, **kwargs): """ Returns the transform's scale pivot translation. """ pass def setLimit(*args, **kwargs): """ Sets the value of the specified limit. """ pass def setRestPosition(*args, **kwargs): """ Sets the transform's rest position matrix. """ pass def setRotateOrientation(*args, **kwargs): """ Sets the MQuaternion which orients the local rotation space. """ pass def setRotatePivot(*args, **kwargs): """ Sets the transform's rotate pivot. """ pass def setRotatePivotTranslation(*args, **kwargs): """ Sets the transform's rotate pivot translation. """ pass def setRotation(*args, **kwargs): """ Sets the transform's rotation using an MEulerRotation or MQuaternion. """ pass def setRotationComponents(*args, **kwargs): """ Sets the transform's rotation using the individual components of an MEulerRotation or MQuaternion. """ pass def setRotationOrder(*args, **kwargs): """ Sets the transform's rotation order. """ pass def setScale(*args, **kwargs): """ Sets the transform's scale components. """ pass def setScalePivot(*args, **kwargs): """ Sets the transform's scale pivot. """ pass def setScalePivotTranslation(*args, **kwargs): """ Sets the transform's scale pivot translation. """ pass def setShear(*args, **kwargs): """ Sets the transform's shear. """ pass def setTransformation(*args, **kwargs): """ Sets the transform's attribute values to represent the given transformation matrix. """ pass def setTranslation(*args, **kwargs): """ Sets the transform's translation. """ pass def shear(*args, **kwargs): """ Returns a list containing the transform's shear components. """ pass def shearBy(*args, **kwargs): """ Multiplies the transform's shear components by a sequence of three floats. """ pass def transformation(*args, **kwargs): """ Returns the transformation matrix represented by this transform. """ pass def translateBy(*args, **kwargs): """ Adds an MVector to the transform's translation. """ pass def translation(*args, **kwargs): """ Returns the transform's translation as an MVector. """ pass __new__ = None kRotateMaxX = 13 kRotateMaxY = 15 kRotateMaxZ = 17 kRotateMinX = 12 kRotateMinY = 14 kRotateMinZ = 16 kScaleMaxX = 1 kScaleMaxY = 3 kScaleMaxZ = 5 kScaleMinX = 0 kScaleMinY = 2 kScaleMinZ = 4 kShearMaxXY = 7 kShearMaxXZ = 9 kShearMaxYZ = 11 kShearMinXY = 6 kShearMinXZ = 8 kShearMinYZ = 10 kTranslateMaxX = 19 kTranslateMaxY = 21 kTranslateMaxZ = 23 kTranslateMinX = 18 kTranslateMinY = 20 kTranslateMinZ = 22 class MFnNurbsCurveData(MFnGeometryData): """ MFnNurbsCurveData allows the creation and manipulation of Nurbs Curve data objects for use in the dependency graph. __init__() Initializes a new, empty MFnNurbsCurveData object __init__(MObject) Initializes a new MFnNurbsCurveData function set, attached to the specified object. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ create() -> MObject Creates a new nurbs curve data object, attaches it to this function set and returns an MObject which references it. """ pass __new__ = None class MFnMesh(MFnDagNode): """ Function set for operation on meshes (polygonal surfaces). __init__() Initializes a new, empty MFnMesh object. __init__(MDagPath path) Initializes a new MFnMesh object and attaches it to the DAG path of a mesh node. __init__(MObject nodeOrData) Initializes a new MFnMesh object and attaches it to a mesh node or mesh data object. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def addHoles(*args, **kwargs): """ addHoles(faceIndex, vertices, loopCounts, mergeVertices=True, pointTolerance=kPointTolerance) -> self Adds holes to a mesh polygon. loopCounts is an array of vertex counts. The first entry gives the count of vertices that make up the first hole to add to the polygon (using that many entries in vertexArray). The following entries in loopCounts give the count of vertices that make up each remaining hole, using the following entries in vertexArray. Therefore the sum of the entries of loopCounts should equal the total length of vertexArray. Note that holes should normally be specified with the opposite winding order to the exterior polygon. """ pass def addPolygon(*args, **kwargs): """ addPolygon(vertices, mergeVertices=True, pointTolerance=kPointTolerance, loopCounts=None) -> faceId Adds a new polygon to the mesh, returning the index of the new polygon. If mergeVertices is True and a new vertex is within pointTolerance of an existing one, then they are 'merged' by reusing the existing vertex and discarding the new one. loopCounts allows for polygons with holes. If supplied, it is an array of integer vertex counts. The first entry gives the count of vertices that make up the exterior of the polygon (using that many entries in vertexArray). The following entries in loopCounts give the count of vertices that make up each hole, using the following entries in vertexArray. Therefore the sum of the entries of loopCounts should equal the total length of vertexArray. Note that holes should normally be specified with the opposite winding order to the exterior polygon. """ pass def allIntersections(*args, **kwargs): """ allIntersections(raySource, rayDirection, space, maxParam, testBothDirections, faceIds=None, triIds=None, idsSorted=False, accelParams=None, tolerance=kIntersectTolerance, sortHits=False) -> (hitPoints, hitRayParams, hitFaces, hitTriangles, hitBary1s, hitBary2s) Finds all intersection of a ray starting at raySource and travelling in rayDirection with the mesh. If faceIds is specified, then only those faces will be considered for intersection. If both faceIds and triIds are given, then the triIds will be interpreted as face-relative and each pair of entries will be taken as a (face, triangle) pair to be considered for intersection. Thus, the face-triangle pair (10, 0) means the first triangle on face 10. If neither faceIds nor triIds is given, then all face-triangles in the mesh will be considered. The maxParam and testBothDirections flags can be used to control the radius of the search around the raySource point. The search proceeds by testing all applicable face-triangles looking for intersections. If the accelParams parameter is given then the mesh builds an intersection acceleration structure based on it. This acceleration structure is used to speed up the intersection operation, sometimes by a factor of several hundred over the non- accelerated case. Once created, the acceleration structure is cached and will be reused the next time this method (or anyIntersection() or allIntersections()) is called with an identically-configured MMeshIsectAccelParams object. If a different MMeshIsectAccelParams object is used, then the acceleration structure will be deleted and re-created according to the new settings. Once created, the acceleration structure will persist until either the object is destroyed (or rebuilt by a construction history operation), or the freeCachedIntersectionAccelerator() method is called. The cachedIntersectionAcceleratorInfo() and globalIntersectionAcceleratorsInfo() methods provide useful information about the resource usage of individual acceleration structures, and of all such structures in the system. If the ray hits the mesh, the details of the intersection points will be returned as a tuple containing the following: * hitPoints (MFloatPointArray) - coordinates of the points hit, in the space specified by the caller.* hitRayParams (MFloatArray) - parametric distances along the ray to the points hit.* hitFaces (MIntArray) - IDs of the faces hit * hitTriangles (MIntArray) - face-relative IDs of the triangles hit * hitBary1s (MFloatArray) - first barycentric coordinate of the points hit. If the vertices of the hitTriangle are (v1, v2, v3) then the barycentric coordinates are such that the hitPoint = (*hitBary1)*v1 + (*hitBary2)*v2 + (1-*hitBary1-*hitBary2)*v3.* hitBary2s (MFloatArray) - second barycentric coordinate of the points hit. If no point was hit then the arrays will all be empty. """ pass def anyIntersection(*args, **kwargs): """ anyIntersection(raySource, rayDirection, space, maxParam, testBothDirections, faceIds=None, triIds=None, idsSorted=False, accelParams=None, tolerance=kIntersectTolerance) -> (hitPoint, hitRayParam, hitFace, hitTriangle, hitBary1, hitBary2) Finds any intersection of a ray starting at raySource and travelling in rayDirection with the mesh. If faceIds is specified, then only those faces will be considered for intersection. If both faceIds and triIds are given, then the triIds will be interpreted as face-relative and each pair of entries will be taken as a (face, triangle) pair to be considered for intersection. Thus, the face-triangle pair (10, 0) means the first triangle on face 10. If neither faceIds nor triIds is given, then all face-triangles in the mesh will be considered. The maxParam and testBothDirections flags can be used to control the radius of the search around the raySource point. The search proceeds by testing all applicable face-triangles looking for intersections. If the accelParams parameter is given then the mesh builds an intersection acceleration structure based on it. This acceleration structure is used to speed up the intersection operation, sometimes by a factor of several hundred over the non- accelerated case. Once created, the acceleration structure is cached and will be reused the next time this method (or anyIntersection() or allIntersections()) is called with an identically-configured MMeshIsectAccelParams object. If a different MMeshIsectAccelParams object is used, then the acceleration structure will be deleted and re-created according to the new settings. Once created, the acceleration structure will persist until either the object is destroyed (or rebuilt by a construction history operation), or the freeCachedIntersectionAccelerator() method is called. The cachedIntersectionAcceleratorInfo() and globalIntersectionAcceleratorsInfo() methods provide useful information about the resource usage of individual acceleration structures, and of all such structures in the system. If the ray hits the mesh, the details of the intersection point will be returned as a tuple containing the following: * hitPoint (MFloatPoint) - coordinates of the point hit, in the space specified by the caller.* hitRayParam (float) - parametric distance along the ray to the point hit.* hitFace (int) - ID of the face hit * hitTriangle (int) - face-relative ID of the triangle hit * hitBary1 (float) - first barycentric coordinate of the point hit. If the vertices of the hitTriangle are (v1, v2, v3) then the barycentric coordinates are such that the hitPoint = (*hitBary1)*v1 + (*hitBary2)*v2 + (1-*hitBary1-*hitBary2)*v3.* hitBary2 (float) - second barycentric coordinate of the point hit. If no point was hit then the arrays will all be empty. """ pass def assignColor(*args, **kwargs): """ assignColor(faceId, vertexIndex, colorId, colorSet='') -> self Assigns a color from a colorSet to a specified vertex of a face. """ pass def assignColors(*args, **kwargs): """ assignColors(colorIds, colorSet=') -> self Assigns colors to all of the mesh's face-vertices. The colorIds sequence must contain an entry for every vertex of every face, in face order, meaning that the entries for all the vertices of face 0 come first, followed by the entries for the vertices of face 1, etc. """ pass def assignUV(*args, **kwargs): """ assignUV(faceId, vertexIndex, uvId, uvSet='') -> self Assigns a UV coordinate from a uvSet to a specified vertex of a face. """ pass def assignUVs(*args, **kwargs): """ assignUVs(uvCounts, uvIds, uvSet='') -> self Assigns UV coordinates to the mesh's face-vertices. uvCounts contains the number of UVs to assign for each of the mesh's faces. That number must equal the number of vertices in the corresponding face or be 0 to indicate that no UVs will be assigned to that face. """ pass def booleanOp(*args, **kwargs): """ booleanOp(Boolean Operation constant, MFnMesh, MFnMesh) -> self Replaces this mesh's geometry with the result of a boolean operation on the two specified meshes. """ pass def cachedIntersectionAcceleratorInfo(*args, **kwargs): """ cachedIntersectionAcceleratorInfo() -> string Retrieves a string that describes the intersection acceleration structure for this object, if any. The string will be of the following form: 10x10x10 uniform grid, (build time 0.5s), (memory footprint 2000KB) It describes the configuration of the cached intersection accelerator, as well as how long it took to build it, and how much memory it is currently occupying. If the mesh has no cached intersection accelerator, the empty string is returned. """ pass def cleanupEdgeSmoothing(*args, **kwargs): """ cleanupEdgeSmoothing() -> self Updates the mesh after setEdgeSmoothing has been done. This should be called only once, after all the desired edges have been had their smoothing set. If you don't call this method, the normals may not be correct, and the object will look odd in shaded mode. """ pass def clearBlindData(*args, **kwargs): """ clearBlindData(compType) -> self clearBlindData(compType, blindDataId, compId=None, attr='') -> self The first version deletes all blind data from all the mesh's components of the given type (an MFn Type constant). The second version deletes values of the specified blind data type from the mesh's components of a given type. If a component ID is provided then the data is only deleted from that component, otherwise it is deleted from all of the mesh's components of the specified type. If a blind data attribute name is provided then only data for that attribute is deleted, otherwise data for all of the blind data type's attributes is deleted. """ pass def clearColors(*args, **kwargs): """ clearColors(colorSet='') -> self Clears out all colors from a colorSet, and leaves behind an empty colorset. This method should be used if it is needed to shrink the actual size of the color set. In this case, the user should call clearColors(), setColors() and then assignColors() to rebuild the mapping info. When called on mesh data, the colors are removed. When called on a shape with no history, the colors are removed and the attributes are set on the shape. When called on a shape with history, the polyColorDel command is invoked and a polyColorDel node is created. If no colorSet is specified the mesh's current color set will be used. """ pass def clearUVs(*args, **kwargs): """ clearUVs(uvSet='') -> self Clears out all uvs from a uvSet, and leaves behind an empty uvset. This method should be used if it is needed to shrink the actual size of the uv set. In this case, the user should call clearUVs(), setUVs() and then assignUVs() to rebuild the mapping info. When called on mesh data, the uvs are removed. When called on a shape with no history, the uvs are removed and the attributes are set on the shape. When called on a shape with history, the polyMapDel command is invoked and a polyMapDel node is created. If no uvSet is specified the mesh's current uv set will be used. """ pass def closestIntersection(*args, **kwargs): """ closestIntersection(raySource, rayDirection, space, maxParam, testBothDirections, faceIds=None, triIds=None, idsSorted=False, accelParams=None, tolerance=kIntersectTolerance) -> (hitPoint, hitRayParam, hitFace, hitTriangle, hitBary1, hitBary2) Finds the closest intersection of a ray starting at raySource and travelling in rayDirection with the mesh. If faceIds is specified, then only those faces will be considered for intersection. If both faceIds and triIds are given, then the triIds will be interpreted as face-relative and each pair of entries will be taken as a (face, triangle) pair to be considered for intersection. Thus, the face-triangle pair (10, 0) means the first triangle on face 10. If neither faceIds nor triIds is given, then all face-triangles in the mesh will be considered. The maxParam and testBothDirections flags can be used to control the radius of the search around the raySource point. The search proceeds by testing all applicable face-triangles looking for intersections. If the accelParams parameter is given then the mesh builds an intersection acceleration structure based on it. This acceleration structure is used to speed up the intersection operation, sometimes by a factor of several hundred over the non- accelerated case. Once created, the acceleration structure is cached and will be reused the next time this method (or anyIntersection() or allIntersections()) is called with an identically-configured MMeshIsectAccelParams object. If a different MMeshIsectAccelParams object is used, then the acceleration structure will be deleted and re-created according to the new settings. Once created, the acceleration structure will persist until either the object is destroyed (or rebuilt by a construction history operation), or the freeCachedIntersectionAccelerator() method is called. The cachedIntersectionAcceleratorInfo() and globalIntersectionAcceleratorsInfo() methods provide useful information about the resource usage of individual acceleration structures, and of all such structures in the system. If the ray hits the mesh, the details of the intersection point will be returned as a tuple containing the following: * hitPoint (MFloatPoint) - coordinates of the point hit, in the space specified by the caller.* hitRayParam (float) - parametric distance along the ray to the point hit.* hitFace (int) - ID of the face hit * hitTriangle (int) - face-relative ID of the triangle hit * hitBary1 (float) - first barycentric coordinate of the point hit. If the vertices of the hitTriangle are (v1, v2, v3) then the barycentric coordinates are such that the hitPoint = (*hitBary1)*v1 + (*hitBary2)*v2 + (1-*hitBary1-*hitBary2)*v3.* hitBary2 (float) - second barycentric coordinate of the point hit. If no point was hit then the arrays will all be empty. """ pass def collapseEdges(*args, **kwargs): """ collapseEdges(seq of int) -> self Collapses edges into vertices. The two vertices that create each given edge are replaced in turn by one vertex placed at the average of the two initial vertex. """ pass def collapseFaces(*args, **kwargs): """ collapseFaces(seq of int) -> self Collapses faces into vertices. Adjacent faces will be collapsed together into a single vertex. Non-adjacent faces will be collapsed into their own, separate vertices. """ pass def copy(*args, **kwargs): """ copy(MObject, parent=kNullObj) -> MObject Creates a new mesh with the same geometry as the source. Raises TypeError if the source is not a mesh node or mesh data object or it contains an empty mesh. If the parent is a kMeshData wrapper (e.g. from MFnMeshData.create()) then a mesh data object will be created and returned and the wrapper will be set to reference it. If the parent is a transform type node then a mesh node will be created and parented beneath it and the return value will be the mesh node. If the parent is any other type of node a TypeError will be raised. If no parent is provided then a transform node will be created and returned and a mesh node will be created and parented under the transform. """ pass def copyInPlace(*args, **kwargs): """ copyInPlace(MObject) -> self Replaces the current mesh's geometry with that from the source. Raises TypeError if the source is not a mesh node or mesh data object or it contains an empty mesh. """ pass def copyUVSet(*args, **kwargs): """ copyUVSet(fromName, toName, modifier=None) -> string Copies the contents of one UV set into another. If the source UV set does not exist, or if it has the same name as the destination, then no copy will be made. If the destination UV set exists then its contents will be replace by a copy of the source UV set. If the destination UV set does not exist then a new UV set will be created and the source UV set will be copied into it. The name of the UV set will be that provided with a number appended to the end to ensure uniqueness. The final name of the destination UV set will be returned. This method is only valid for functionsets which are attached to mesh nodes, not mesh data. """ pass def create(*args, **kwargs): """ create(vertices, polygonCounts, polygonConnects, uValues=None, vValues=None, parent=kNullObj) -> MObject Creates a new polygonal mesh and sets this function set to operate on it. This method is meant to be as efficient as possible and thus assumes that all the given data is topologically correct. If UV values are supplied both parameters must be given and they must contain the same number of values, otherwise IndexError will be raised. Note that the UVs are simply stored in the mesh, not assigned to any vertices. To assign them use assignUVs(). If the parent is a kMeshData wrapper (e.g. from MFnMeshData.create()) then a mesh data object will be created and returned and the wrapper will be set to reference it. If the parent is a transform type node then a mesh node will be created and parented beneath it and the return value will be the mesh node. If the parent is any other type of node a TypeError will be raised. If no parent is provided then a transform node will be created and returned and a mesh node will be created and parented under the transform. """ pass def createBlindDataType(*args, **kwargs): """ createBlindDataType(blindDataId, ((longName, shortName, typeName), ...)) -> self Create a new blind data type with the specified attributes. Each element of the attrs sequence is a tuple containing the long name, short name and type name of the attribute. Valid type names are 'int', 'float', 'double', 'boolean', 'string' or 'binary'. Raises RuntimeError if the blind data id is already in use or an invalid format was specified. """ pass def createColorSet(*args, **kwargs): """ createColorSet(name, clamped, rep=kRGBA, modifier=None, instances=None) -> string Creates a new, empty color set for this mesh. If no name is provided 'colorSet#' will be used, where # is a number that makes the name unique for this mesh. If a name is provided but it conflicts with that of an existing color set then a number will be appended to the proposed name to make it unique. The return value is the final name used for the new color set. This method will only work when the functionset is attached to a mesh node, not mesh data. """ pass def createInPlace(*args, **kwargs): """ createInPlace(vertices, polygonCounts, polygonConnects) -> self Replaces the existing polygonal mesh with a new one. This method is meant to be as efficient as possible and thus assumes that all the given data is topologically correct. The vertices may be given as a sequence of MFloatPoint's or a sequence of MPoint's, but not a mix of the two. """ pass def createUVSet(*args, **kwargs): """ createUVSet(name, modifier=None, instances=None) -> string Creates a new, empty UV set for this mesh. If a UV set with proposed name already exists then a number will be appended to the proposed name to name it unique. If the proposed name is empty then a name of the form uvSet# will be used where '#' is a number chosen to ensure that the name is unique. The name used for the UV set will be returned. This method is only valid for functionsets which are attached to mesh nodes, not mesh data. """ pass def currentColorSetName(*args, **kwargs): """ currentColorSetName(instance=kInstanceUnspecified) -> string Get the name of the 'current' color set. The current color set is the one used for color operations when no color set is explicitly specified. On instanced meshes, color sets may be applied on a per-instance basis or may be shared across all instances. When the color sets are per-instance, the concept of the current color set has two levels of granularity. Namely, the current color set applies to one or more instances, plus there are other color sets in the same color set family that apply to different instances. The instance arguement is used to indicate that if this is a per-instance color set, you are interested in the name of the color set that applies to the specified instance. When the index is not specified, the current color set will be returned regardless of which instance it is for. If there is no current color set, then an empty string will be returned. """ pass def currentUVSetName(*args, **kwargs): """ currentUVSetName(instance=kInstanceUnspecified) -> string Get the name of the 'current' uv set. The current uv set is the one used for uv operations when no uv set is explicitly specified. On instanced meshes, uv sets may be applied on a per-instance basis or may be shared across all instances. When the uv sets are per-instance, the concept of the current uv set has two levels of granularity. Namely, the current uv set applies to one or more instances, plus there are other uv sets in the same uv set family that apply to different instances. The instance arguement is used to indicate that if this is a per-instance uv set, you are interested in the name of the uv set that applies to the specified instance. When the index is not specified, the current uv set will be returned regardless of which instance it is for. If there is no current uv set, then an empty string will be returned. """ pass def deleteColorSet(*args, **kwargs): """ deleteColorSet(colorSet, modifier=None, currentSelection=None) -> self Deletes a color set from the mesh. This method is only valid for functionsets which are attached to mesh nodes, not mesh data. """ pass def deleteEdge(*args, **kwargs): """ deleteEdge(edgeId, modifier=None) -> self Deletes the specified edge. """ pass def deleteFace(*args, **kwargs): """ deleteFace(faceId, modifier=None) -> self Deletes the specified face. """ pass def deleteUVSet(*args, **kwargs): """ deleteUVSet(uvSet, modifier=None, currentSelection=None) -> self Deletes a uv set from the mesh. This method is only valid for functionsets which are attached to mesh nodes, not mesh data. """ pass def deleteVertex(*args, **kwargs): """ deleteVertex(vertexId, modifier=None) -> self Deletes the specified vertex. """ pass def duplicateFaces(*args, **kwargs): """ duplicateFaces(faces, translation=None) -> self Duplicates a set of faces and detaches them from the rest of the mesh. The resulting mesh will contain one more independant piece of geometry. """ pass def extractFaces(*args, **kwargs): """ extractFaces(faces, translation=None) -> self Detaches a set of faces from the rest of the mesh. The resulting mesh will contain one more independant piece of geometry. """ pass def extrudeEdges(*args, **kwargs): """ extrudeEdges(edges, extrusionCount=1, translation=None, extrudeTogether=True) -> self Extrude the given edges along a vector. The resulting mesh will have extra parallelograms coming out of the given edges and going to the new extruded edges. The length of the new polygon is determined by the length of the vector. The extrusionCount parameter is the number of subsequent extrusions per edges and represents the number of polygons that will be created from each given edge to the extruded edges. """ pass def extrudeFaces(*args, **kwargs): """ extrudeFaces(faces, extrusionCount=1, translation=None, extrudeTogether=True) -> self Extrude the given faces along a vector. The resulting mesh will have extra parallelograms coming out of the given faces and going to the new extruded faces. The length of the new polygon is determined by the length of the vector. The extrusionCount parameter is the number of subsequent extrusions per faces and represents the number of polygons that will be created from each given face to the extruded faces. """ pass def freeCachedIntersectionAccelerator(*args, **kwargs): """ freeCachedIntersectionAccelerator() -> self If the mesh has a cached intersection accelerator structure, then this routine forces it to be deleted. Ordinarily, these structures are cached so that series of calls to the closestIntersection(), allIntersections(), and anyIntersection() methods can reuse the same structure. Once the client is finished with these intersection operations, however, they are responsible for freeing the acceleration structure, which is what this method does. """ pass def generateSmoothMesh(*args, **kwargs): """ generateSmoothMesh(parent=kNullObj, options=None) -> MObject Creates a new polygonal mesh which is a smoothed version of the one to which the functionset is attached. If an options object is supplied it will be used to direct the smoothing operation, otherwise the mesh's Smooth Mesh Preview attributes will be used. If the parent is a kMeshData wrapper (e.g. from MFnMeshData.create()) then a mesh data object will be created and returned. If the parent is a transform type node then a mesh node will be created and parented beneath it and the return value will be the mesh node. If the parent is any other type of node a TypeError will be raised. If no parent is provided then a transform node will be created and returned and a mesh node will be created and parented under the transform. Note that, unlike the create functions, this function does not set the functionset to operate on the new mesh, but leaves it attached to the original mesh. """ pass def getAssignedUVs(*args, **kwargs): """ getAssignedUVs(uvSet='') -> (counts, uvIds) Returns a tuple containing all of the UV assignments for the specified UV set. The first element of the tuple is an array of counts giving the number of UVs assigned to each face of the mesh. The count will either be zero, indicating that that face's vertices do not have UVs assigned, or else it will equal the number of the face's vertices. The second element of the tuple is an array of UV IDs for all of the face-vertices which have UVs assigned. """ pass def getAssociatedColorSetInstances(*args, **kwargs): """ getAssociatedColorSetInstances(colorSet) -> MIntArray Returns the instance numbers associated with the specified Color set. If the color map is shared across all instances, an empty array will be returned. This method will only work if the functionset is attached to a mesh node. It will raise RuntimeError if the functionset is attached to mesh data. """ pass def getAssociatedUVSetInstances(*args, **kwargs): """ getAssociatedUVSetInstances(uvSet) -> MIntArray Returns the instance numbers associated with the specified UV set. If the uv map is shared across all instances, an empty array will be returned. This method will only work if the functionset is attached to a mesh node. It will raise RuntimeError if the functionset is attached to mesh data. """ pass def getAssociatedUVSetTextures(*args, **kwargs): """ getAssociatedUVSetTextures(uvSet) -> MObjectArray Returns the texture nodes which are using the specified UV set. If the texture has a 2d texture placement, the texture, and not the placement will be returned. This method will only work if the functionset is attached to a mesh node. It will raise RuntimeError if the functionset is attached to mesh data. """ pass def getBinaryBlindData(*args, **kwargs): """ getBinaryBlindData(compId, compType, blindDataId, attr) -> string getBinaryBlindData(compType, blindDataId, attr) -> (MIntArray, [string, string, ...]) The first version returns the value of the specified blind data attribute from the specified mesh component. The second version returns a tuple containing an array of component IDs and an array of values for the specified blind data attribute for all of the mesh's components of the specified type. Both versions raise RuntimeError if the attribute is not of 'binary' type. """ pass def getBinormals(*args, **kwargs): """ getBinormals(space=MSpace.kObject, uvSet='') -> MFloatVectorArray Returns the binormal vectors for all face-vertices. This method is not threadsafe. """ pass def getBlindDataAttrNames(*args, **kwargs): """ getBlindDataAttrNames(blindDataId) -> ((longName, shortName, typeName), ...) Returns a tuple listing the attributes of the given blind data type. Each element of the tuple is itself a tuple containing the long name, short name and type name of the attribute. Type names can be 'int', 'float', 'double', 'boolean', 'string' or 'binary'. """ pass def getBlindDataTypes(*args, **kwargs): """ getBlindDataTypes(MFn Type constant) -> MIntArray Returns all the blind data ID's associated with the given component type on this mesh. """ pass def getBoolBlindData(*args, **kwargs): """ getBoolBlindData(compId, compType, blindDataId, attr) -> bool getBoolBlindData(compType, blindDataId, attr) -> (MIntArray, MIntArray) The first version returns the value of the specified blind data attribute from the specified mesh component. The second version returns a tuple containing an array of component IDs and an array of values for the specified blind data attribute for all of the mesh's components of the specified type. Both versions raise RuntimeError if the attribute is not of 'boolean' type. """ pass def getClosestNormal(*args, **kwargs): """ getClosestNormal(MPoint, space=MSpace.kObject) -> (MVector, int) Returns a tuple containing the normal at the closest point on the mesh to the given point and the ID of the face in which that closest point lies. """ pass def getClosestPoint(*args, **kwargs): """ getClosestPoint(MPoint, space=MSpace.kObject) -> (MPoint, int) Returns a tuple containing the closest point on the mesh to the given point and the ID of the face in which that closest point lies. This method is not threadsafe. """ pass def getClosestPointAndNormal(*args, **kwargs): """ getClosestPointAndNormal(MPoint, space=MSpace.kObject) -> (MPoint, MVector, int) Returns a tuple containing the closest point on the mesh to the given point, the normal at that point, and the ID of the face in which that point lies. This method is not threadsafe. """ pass def getColor(*args, **kwargs): """ getColor(colorId, colorSet='') -> MColor Returns a color from a colorSet. Raises IndexError if the colorId is out of range. """ pass def getColorIndex(*args, **kwargs): """ getColorIndex(faceId, localVertexId, colorSet='') -> int Returns the index into the specified colorSet of the color used by a specific face-vertex. This can be used to index into the sequence returned by getColors(). """ pass def getColorRepresentation(*args, **kwargs): """ getColorRepresentation(colorSet) -> Color Representation constant Returns the Color Representation used by the specified color set. """ pass def getColorSetFamilyNames(*args, **kwargs): """ getColorSetFamilyNames() -> (string, ...) Returns the names of all of the color set families on this object. A color set family is a set of per-instance sets with the same name with each individual set applying to one or more instances. A set which is shared across all instances will be the sole member of its family. Given a color set family name, getColorSetsInFamily() may be used to determine the names of the associated individual sets. """ pass def getColorSetNames(*args, **kwargs): """ getColorSetNames() -> (string, ...) Returns the names of all the color sets on this object. """ pass def getColorSetsInFamily(*args, **kwargs): """ getColorSetsInFamily(familyName) -> (string, ...) Returns the names of all of the color sets that belong to the specified family. Per-instance sets will have multiple sets in a family, with each individual set applying to one or more instances. A set which is shared across all instances will be the sole member of its family and will share the same name as its family. """ pass def getColors(*args, **kwargs): """ getColors(colorSet='') -> MColorArray Returns all of the colors in a colorSet. If no colorSet is specified then the default colorSet is used. Use the index returned by getColorIndex() to access the returned array. """ pass def getConnectedSetsAndMembers(*args, **kwargs): """ getConnectedSetsAndMembers(instance, renderableSetsOnly) -> (MObjectArray, MObjectArray) Returns a tuple containing an array of sets and an array of the components of the mesh which are in those sets. If a component has no elements in it that means that the entire mesh is in the set. This method will only work if the functionset is attached to a mesh node. It will raise RuntimeError if the functionset is attached to mesh data. """ pass def getConnectedShaders(*args, **kwargs): """ getConnectedShaders(instance) -> (MObjectArray, MIntArray) Returns a tuple containing an array of shaders (sets) and an array of ints mapping the mesh's polygons onto those shaders. For each polygon in the mesh there will be corresponding value in the second array. If it is -1 that means that the polygon is not assigned to a shader, otherwise it indicates the index into the first array of the shader to which that polygon is assigned. This method will only work if the functionset is attached to a mesh node. It will raise RuntimeError if the functionset is attached to mesh data. """ pass def getCreaseEdges(*args, **kwargs): """ getCreaseEdges() -> (MUintArray, MDoubleArray) Returns a tuple containing two arrays. The first contains the mesh- relative/global IDs of the mesh's creased edges and the second contains the associated crease data. Please note that to make effective use of the creasing variable in software outside of Maya may require a license under patents owned by Pixar(R). """ pass def getCreaseVertices(*args, **kwargs): """ getCreaseVertices() -> (MUintArray, MDoubleArray) Returns a tuple containing two arrays. The first contains the mesh- relative/global IDs of the mesh's creased vertices and the second contains the associated crease data. Please note that to make effective use of the creasing variable in software outside of Maya may require a license under patents owned by Pixar(R). """ pass def getDoubleBlindData(*args, **kwargs): """ getDoubleBlindData(compId, compType, blindDataId, attr) -> float getDoubleBlindData(compType, blindDataId, attr) -> (MIntArray, MDoubleArray) The first version returns the value of the specified blind data attribute from the specified mesh component. The second version returns a tuple containing an array of component IDs and an array of values for the specified blind data attribute for all of the mesh's components of the specified type. Both versions raise RuntimeError if the attribute is not of 'double' type. """ pass def getEdgeVertices(*args, **kwargs): """ getEdgeVertices(edgeId) -> (int, int) Returns a tuple containing the mesh-relative/global IDs of the edge's two vertices. The indices can be used to refer to the elements in the array returned by the getPoints() method. """ pass def getFaceAndVertexIndices(*args, **kwargs): """ getFaceAndVertexIndices(faceVertexIndex, localVertex=True) -> (int, int) Returns a tuple containg the faceId and vertexIndex represented by the given face-vertex index. This is the reverse of the operation performed by getFaceVertexIndex(). If localVertex is True then the returned vertexIndex is the face- relative/local index, otherwise it is the mesh-relative/global index. """ pass def getFaceNormalIds(*args, **kwargs): """ getFaceNormalIds(faceId) -> MIntArray Returns the IDs of the normals for all the vertices of a given face. These IDs can be used to index into the arrays returned by getNormals(). """ pass def getFaceUVSetNames(*args, **kwargs): """ getFaceUVSetNames(faceId) -> (string, ...) Returns the names of all of the uv sets mapped to the specified face. This method is not threadsafe. """ pass def getFaceVertexBinormal(*args, **kwargs): """ getFaceVertexBinormal(faceId, vertexId, space=MSpace.kObject, uvSet='') -> MVector Returns the binormal vector at a given face vertex. This method is not threadsafe. """ pass def getFaceVertexBinormals(*args, **kwargs): """ getFaceVertexBinormals(faceId, space=MSpace.kObject, uvSet='') -> MFloatVectorArray Returns all the per-vertex-per-face binormals for a given face. This method is not threadsafe. """ pass def getFaceVertexColors(*args, **kwargs): """ getFaceVertexColors(colorSet='', defaultUnsetColor=None) -> MColorArray Returns colors for all the mesh's face-vertices. The colors are returned in face order: e.g. F0V0, F0V1.. F0Vn, F1V0, etc... Use the index returned by getFaceVertexIndex() if you wish to index directly into the returned color array. If no face has color for that vertex, the entry returned will be defaultUnsetColor. If a color was set for some but not all the faces for that vertex, the ones where the color has not been explicitly set will return (0,0,0). If a vertex has shared color, the same value will be set for all its vertes/faces. If the colorSet is not specified, the default color set will be used. If the defaultUnsetColor is not given, then (-1, -1, -1, -1) will be used. """ pass def getFaceVertexIndex(*args, **kwargs): """ getFaceVertexIndex(faceId, vertexIndex, localVertex=True) -> int Returns the index for a specific face-vertex into an array of face- vertex values, such as those returned by getFaceVertexBinormals(), getFaceVertexColors(), getFaceVertexNormals(), etc. The values in the target arrays are presumed to be in face order: F0V0, F0V1.. F0Vn, F1V0, etc... If localVertex is True then vertexIndex must be a face-relative/local index. If localVertex is False then vertexIndex must be a mesh- relative/global index. The opposite operation is performed by the getFaceAndVertexIndices() method. """ pass def getFaceVertexNormal(*args, **kwargs): """ getFaceVertexNormal(faceId, vertexId, space=MSpace.kObject) -> MVector Returns the per-vertex-per-face normal for a given face and vertex. This method is not threadsafe. """ pass def getFaceVertexNormals(*args, **kwargs): """ getFaceVertexNormals(faceId, space=MSpace.kObject) -> MFloatVectorArray Returns the normals for a given face. This method is not threadsafe. """ pass def getFaceVertexTangent(*args, **kwargs): """ getFaceVertexTangent(faceId, vertexId, space=MSpace.kObject, uvSet='') -> MVector Return the normalized tangent vector at a given face vertex. The tangent is defined as the surface tangent of the polygon running in the U direction defined by the uv map. This method is not threadsafe. """ pass def getFaceVertexTangents(*args, **kwargs): """ getFaceVertexTangents(faceId, space=MSpace.kObject, uvSet='') -> MFloatVectorArray Returns all the per-vertex-per-face tangents for a given face. The tangent is defined as the surface tangent of the polygon running in the U direction defined by the uv map. This method is not threadsafe. """ pass def getFloatBlindData(*args, **kwargs): """ getFloatBlindData(compId, compType, blindDataId, attr) -> float getFloatBlindData(compType, blindDataId, attr) -> (MIntArray, MFloatArray) The first version returns the value of the specified blind data attribute from the specified mesh component. The second version returns a tuple containing an array of component IDs and an array of values for the specified blind data attribute for all of the mesh's components of the specified type. Both versions raise RuntimeError if the attribute is not of 'float' type. """ pass def getFloatPoints(*args, **kwargs): """ getFloatPoints(space=MSpace.kObject) -> MFloatPointArray Returns an MFloatPointArray containing the mesh's vertices. """ pass def getHoles(*args, **kwargs): """ getHoles() -> ((face, (v1, v2, ...)), (face, (v1, v2, ...)), ...) Returns a tuple describing the holes in the mesh. Each element of the tuple is itself a tuple. The first element of the sub-tuple is the integer ID of the face in which the hole occurs. The second element of the sub-tuple is another tuple containing the mesh-relative/global IDs of the vertices which make up the hole. Take the following return value as an example: ((3, (7, 2, 6)), (5, (11, 10, 3, 4))) This says that the mesh has two holes. The first hole is in face 3 and consists of vertices 7, 2 and 6. The second hole is in face 5 and consists of vertices 11, 10, 3 and 4. """ pass def getIntBlindData(*args, **kwargs): """ getIntBlindData(compId, compType, blindDataId, attr) -> int getIntBlindData(compType, blindDataId, attr) -> (MIntArray, MIntArray) The first version returns the value of the specified blind data attribute from the specified mesh component. The second version returns a tuple containing an array of component IDs and an array of values for the specified blind data attribute for all of the mesh's components of the specified type. Both versions raise RuntimeError if the attribute is not of 'int' type. """ pass def getInvisibleFaces(*args, **kwargs): """ getInvisibleFaces() -> MUintArray Returns the invisible faces of the mesh. Invisible faces are like lightweight holes in that they are not rendered but do not require additional geometry the way that holes do. They have the advantage over holes that if the mesh is smoothed then their edges will be smoothed as well, while holes will retain their hard edges. Invisible faces can be set using the setInvisibleFaces() method or the polyHole command. """ pass def getNormalIds(*args, **kwargs): """ getNormalIds() -> (MIntArray, MIntArray) Returns the normal IDs for all of the mesh's polygons as a tuple of two int arrays. The first array contains the number of vertices for each polygon and the second contains the normal IDs for each polygon- vertex. These IDs can be used to index into the array returned by getNormals(). """ pass def getNormals(*args, **kwargs): """ getNormals(space=MSpace.kObject) -> MFloatVectorArray Returns a copy of the mesh's normals. The normals are the per-polygon per-vertex normals. To find the normal for a particular vertex-face, use getFaceNormalIds() to get the index into the array. This method is not threadsafe. """ pass def getPoint(*args, **kwargs): """ getPoint(vertexId, space=MSpace.kObject) -> MPoint Returns the position of specified vertex. """ pass def getPointAtUV(*args, **kwargs): """ getPointAtUV(faceId, u, v, space=MSpace.kObject, uvSet='', tolerance=0.0) -> MPoint Returns the position of the point at the give UV value in the specified face. This method is not threadsafe. """ pass def getPoints(*args, **kwargs): """ getPoints(space=MSpace.kObject) -> MPointArray Returns a copy of the mesh's vertex positions as an MPointArray. """ pass def getPolygonNormal(*args, **kwargs): """ getPolygonNormal(polygonId, space=MSpace.kObject) -> MVector Returns the per-polygon normal for the given polygon. This method is not threadsafe. """ pass def getPolygonTriangleVertices(*args, **kwargs): """ getPolygonTriangleVertices(polygonId, triangleId) -> (int, int, int) Returns the mesh-relative/global IDs of the 3 vertices of the specified triangle of the specified polygon. These IDs can be used to index into the arrays returned by getPoints() and getFloatPoints(). """ pass def getPolygonUV(*args, **kwargs): """ getPolygonUV(polygonId, vertexId, uvSet='') -> (float, float) Returns a tuple containing the U and V values at a specified vertex of a specified polygon. This method is not threadsafe. """ pass def getPolygonUVid(*args, **kwargs): """ getPolygonUVid(polygonId, vertexId, uvSet='') -> int Returns the ID of the UV at a specified vertex of a specified polygon. This method is not threadsafe. """ pass def getPolygonVertices(*args, **kwargs): """ getPolygonVertices(polygonId) -> MIntArray Returns the mesh-relative/global vertex IDs the specified polygon. These IDs can be used to index into the arrays returned by getPoints() and getFloatPoints(). """ pass def getSmoothMeshDisplayOptions(*args, **kwargs): """ getSmoothMeshDisplayOptions() -> MMeshSmoothOptions Returns the options currently in use when smoothing the mesh for display. """ pass def getStringBlindData(*args, **kwargs): """ getStringBlindData(compId, compType, blindDataId, attr) -> string getStringBlindData(compType, blindDataId, attr) -> (MIntArray, [string, string, ...]) The first version returns the value of the specified blind data attribute from the specified mesh component. The second version returns a tuple containing an array of component IDs and an array of values for the specified blind data attribute for all of the mesh's components of the specified type. Both versions raise RuntimeError if the attribute is not of 'string' type. """ pass def getTangentId(*args, **kwargs): """ getTangentId(faceId, vertexId) -> int Returns the ID of the tangent for a given face and vertex. """ pass def getTangents(*args, **kwargs): """ getTangents(space=MSpace.kObject, uvSet='') -> MFloatVectorArray Return the tangent vectors for all face vertices. The tangent is defined as the surface tangent of the polygon running in the U direction defined by the uv map. This method is not threadsafe. """ pass def getTriangles(*args, **kwargs): """ getTriangles() -> (MIntArray, MIntArray) Returns a tuple describing the mesh's triangulation. The first element of the tuple is an array giving the number of triangles for each of the mesh's polygons. The second tuple gives the ids of the vertices of all the triangles. """ pass def getUV(*args, **kwargs): """ getUV(uvId, uvSet='') -> (float, float) Returns a tuple containing the u and v values of the specified UV. """ pass def getUVAtPoint(*args, **kwargs): """ getUVAtPoint(point, space=MSpace.kObject, uvSet='') -> (float, float, int) Returns a tuple containing the u and v coordinates of the point on the mesh closest to the given point, and the ID of the face containing that closest point. This method is not threadsafe. """ pass def getUVSetFamilyNames(*args, **kwargs): """ getUVSetFamilyNames() -> (string, ...) Returns the names of all of the uv set families on this object. A uv set family is a set of per-instance sets with the same name with each individual set applying to one or more instances. A set which is shared across all instances will be the sole member of its family. Given a uv set family name, getUVSetsInFamily() may be used to determine the names of the associated individual sets. """ pass def getUVSetNames(*args, **kwargs): """ getUVSetNames() -> (string, ...) Returns the names of all the uv sets on this object. """ pass def getUVSetsInFamily(*args, **kwargs): """ getUVSetsInFamily(familyName) -> (string, ...) Returns the names of all of the uv sets that belong to the specified family. Per-instance sets will have multiple sets in a family, with each individual set applying to one or more instances. A set which is shared across all instances will be the sole member of its family and will share the same name as its family. """ pass def getUVs(*args, **kwargs): """ getUVs(uvSet='') -> (MFloatArray, MFloatArray) Returns a tuple containing an array of U values and an array of V values, representing all of the UVs for the given UV set. """ pass def getUvShellsIds(*args, **kwargs): """ getUvShellsIds(uvSet='') -> (int, MIntArray) Returns a tuple containing describing how the specified UV set's UVs are grouped into shells. The first element of the tuple is the number of distinct shells. The second element of the tuple is an array of shell indices, one per uv, indicating which shell that uv is part of. """ pass def getVertexColors(*args, **kwargs): """ getVertexColors(colorSet='', defaultUnsetColor=None) -> MColorArray Gets colors for all vertices of the given colorSet. If no face has color for that vertex, the entry returned will be defaultUnsetColor. If a color was set for some or all the faces for that vertex, an average of those vertex/face values where the color has been set will be returned. If the colorSet is not specified, the default color set will be used. If the defaultUnsetColor is not given, then (-1, -1, -1, -1) will be used. """ pass def getVertexNormal(*args, **kwargs): """ getVertexNormal(vertexId, angleWeighted, space=MSpace.kObject) -> MVector Returns the normal at the given vertex. The returned normal is a single per-vertex normal, so unshared normals at a vertex will be averaged. If angleWeighted is set to true, the normals are computed by an average of surrounding face normals weighted by the angle subtended by the face at the vertex. If angleWeighted is set to false, a simple average of surround face normals is returned. The simple average evaluation is significantly faster than the angle- weighted average. This method is not threadsafe. """ pass def getVertexNormals(*args, **kwargs): """ getVertexNormals(angleWeighted, space=MSpace.kObject) -> MFloatVectorArray Returns all the vertex normals. The returned normals are per-vertex normals, so unshared normals at a vertex will be averaged. If angleWeighted is set to True, the normals are computed by an average of surrounding face normals weighted by the angle subtended by the face at the vertex. If angleWeighted is set to false, a simple average of surround face normals is returned. The simple average evaluation is significantly faster than the angle- weighted average. This method is not threadsafe. """ pass def getVertices(*args, **kwargs): """ getVertices() -> (MIntArray, MIntArray) Returns the mesh-relative/global vertex IDs for all of the mesh's polygons as a tuple of two int arrays. The first array contains the number of vertices for each polygon and the second contains the mesh- relative IDs for each polygon-vertex. These IDs can be used to index into the arrays returned by getPoints() and getFloatPoints(). """ pass def hasAlphaChannels(*args, **kwargs): """ hasAlphaChannels(colorSet) -> bool Returns True if the color set has an alpha channel. """ pass def hasBlindData(*args, **kwargs): """ hasBlindData(compType, compId=None, blindDataId=None) -> bool Returns true if any component of the given type on this mesh has blind data. If a component ID is provided then only that particular component is checked. If a blind data ID is provided then only blind data of that type is checked. """ pass def hasColorChannels(*args, **kwargs): """ hasColorChannels(colorSet) -> bool Returns True if the color set has RGB channels. """ pass def isBlindDataTypeUsed(*args, **kwargs): """ isBlindDataTypeUsed(blindDataId) -> bool Returns True if the blind data type is already in use anywhere in the scene. """ pass def isColorClamped(*args, **kwargs): """ isColorClamped(colorSet) -> bool Returns True if the color sets RGBA components are clamped to the range 0 to 1. """ pass def isColorSetPerInstance(*args, **kwargs): """ isColorSetPerInstance(colorSet) -> bool Returns True if the color set is per-instance, and False if it is shared across all instances. """ pass def isEdgeSmooth(*args, **kwargs): """ isEdgeSmooth(edgeId) -> bool Returns True if the edge is smooth, False if it is hard. """ pass def isNormalLocked(*args, **kwargs): """ isNormalLocked(normalId) -> bool Returns True if the normal is locked, False otherwise. """ pass def isPolygonConvex(*args, **kwargs): """ isPolygonConvex(faceId) -> bool Returns True if the polygon is convex, False if it is concave. """ pass def isUVSetPerInstance(*args, **kwargs): """ isUVSetPerInstance(uvSet) -> bool Returns True if the UV set is per-instance, and False if it is shared across all instances. """ pass def lockFaceVertexNormals(*args, **kwargs): """ lockFaceVertexNormals(seq of faceIds, seq of vertIds) -> self Locks the normals for the given face/vertex pairs. """ pass def lockVertexNormals(*args, **kwargs): """ lockVertexNormals(sequence of vertIds) -> self Locks the shared normals for the specified vertices. """ pass def numColors(*args, **kwargs): """ numColors(colorSet='') -> int Returns the number of colors in the given color set. If no color set is specified then the mesh's current color set will be used. """ pass def numUVs(*args, **kwargs): """ numUVs(uvSet='') -> int Returns the number of UVs (texture coordinates) in the given UV set. If no UV set is specified then the mesh's current UV set will be used. """ pass def onBoundary(*args, **kwargs): """ onBoundary(faceId) -> bool Returns true if the face is on the border of the mesh, meaning that one or more of its edges is a border edge. """ pass def polygonVertexCount(*args, **kwargs): """ polygonVertexCount(faceId) -> int Returns the number of vertices in the given polygon. Raises ValueError if the polygon ID is invalid. """ pass def removeFaceColors(*args, **kwargs): """ removeFaceColors(seq of faceIds) -> self Removes colors from all vertices of the specified faces. """ pass def removeFaceVertexColors(*args, **kwargs): """ removeFaceVertexColors(seq of faceIds, seq of vertexIds) -> self Removes colors from the specified face/vertex pairs. """ pass def removeVertexColors(*args, **kwargs): """ removeVertexColors(seq of vertexIds) -> self Removes colors from the specified vertices in all of the faces which share those vertices. """ pass def renameUVSet(*args, **kwargs): """ renameUVSet(origName, newName, modifier=None) -> self Renames a UV set. The set must exist and the new name cannot be the same as that of an existing set. This method is only valid for functionsets which are attached to mesh nodes, not mesh data. """ pass def setBinaryBlindData(*args, **kwargs): """ setBinaryBlindData(compId, compType, blindDataId, attr, data) -> self setBinaryBlindData(seq of compId, compType, blindDataId, attr, data) -> self The first version sets the value of a 'binary' blind data attribute on a single component of the mesh. The data must be a single string. The second version sets the value of a 'binary' blind data attribute on multiple components of the mesh. If the data is a sequence of strings then it must provide a value for each component in compIds. If it is a single string then all of the specified components will have their blind data set to that value. """ pass def setBoolBlindData(*args, **kwargs): """ setBoolBlindData(compId, compType, blindDataId, attr, data) -> self setBoolBlindData(seq of compId, compType, blindDataId, attr, data) -> self The first version sets the value of a 'boolean' blind data attribute on a single component of the mesh. The data must be a single boolean. The second version sets the value of a 'boolean' blind data attribute on multiple components of the mesh. If the data is a sequence of booleans then it must provide a value for each component in compIds. If it is a single boolean then all of the specified components will have their blind data set to that value. """ pass def setColor(*args, **kwargs): """ setColor(colorId, MColor, colorSet='', rep=kRGBA) -> self Sets a color in the specified colorSet. If no colorSet is given the current colorSet will be used. If the colorId is greater than or equal to numColors() then the colorSet will be grown to accommodate the specified color. """ pass def setColors(*args, **kwargs): """ setColors(seq of MColor, colorSet='', rep=kRGBA) -> self Sets all the colors of the specified colorSet. If no colorSet is given the current colorSet will be used. After using this method to set the color values, you can call assignColors() to assign the corresponding color ids to the geometry. The color sequence must be at least as large as the current color set size. You can determine the color set size by calling numColors() for the default color set, or numColors(colorSet) for a named color set. If the sequence is larger than the color set size, then the color set for this mesh will be expanded to accommodate the new color values. In order to shrink the colorSet you have to clear its existing colors. E.g: clearColors(), setColors( ... ), assignColors() """ pass def setCreaseEdges(*args, **kwargs): """ setCreaseEdges(edgeIds, seq of float) -> self Sets the specified edges of the mesh as crease edges. Please note that to make effective use of the creasing variable in software outside of Maya may require a license under patents owned by Pixar(R). """ pass def setCreaseVertices(*args, **kwargs): """ setCreaseVertices(edgeIds, seq of float) -> self Sets the specified edges of the mesh as crease edges. Please note that to make effective use of the creasing variable in software outside of Maya may require a license under patents owned by Pixar(R). """ pass def setCurrentColorSetName(*args, **kwargs): """ setCurrentColorSetName(colorSet, modifier=None, currentSelection=None) -> self Sets the 'current' color set for this object. The current color set is the one used when no color set name is specified for a color operation. If the specified color set does not exist then the current color set will not be changed. If 'modifier' (MDGModifier) is provided then the operation will be added to the modifier and will not take effect until the modifier's doIt() is called. Otherwise it will take effect immediately. This method may change the current selection. If the 'currentSelection' (MSelectionList) parameter is provided then the current selection will be saved to it prior to the change. This is useful for supporting full undo of the change. This method is only valid for functionsets which are attached to mesh nodes, not mesh data. """ pass def setCurrentUVSetName(*args, **kwargs): """ setCurrentUVSetName(uvSet, modifier=None, currentSelection=None) -> self Sets the 'current' uv set for this object. The current uv set is the one used when no uv set name is specified for a uv operation. If the specified uv set does not exist then the current uv set will not be changed. If 'modifier' (MDGModifier) is provided then the operation will be added to the modifier and will not take effect until the modifier's doIt() is called. Otherwise it will take effect immediately. This method may change the current selection. If the 'currentSelection' (MSelectionList) parameter is provided then the current selection will be saved to it prior to the change. This is useful for supporting full undo of the change. This method is only valid for functionsets which are attached to mesh nodes, not mesh data. """ pass def setDoubleBlindData(*args, **kwargs): """ setDoubleBlindData(compId, compType, blindDataId, attr, data) -> self setDoubleBlindData(seq of compId, compType, blindDataId, attr, data) -> self The first version sets the value of a 'double' blind data attribute on a single component of the mesh. The data must be a single float. The second version sets the value of a 'double' blind data attribute on multiple components of the mesh. If the data is a sequence of floats then it must provide a value for each component in compIds. If it is a single float then all of the specified components will have their blind data set to that value. """ pass def setEdgeSmoothing(*args, **kwargs): """ setEdgeSmoothing(edgeId, smooth=True) -> self Sets the specified edge to be hard or smooth. You must use the cleanupEdgeSmoothing() method after all the desired edges on your mesh have had setEdgeSmoothing() done. Use the updateSurface() method to indicate the mesh needs to be redrawn. """ pass def setFaceColor(*args, **kwargs): """ setFaceColor(color, faceId, rep=kRGBA) -> self Sets the face-vertex color for all vertices on this face. """ pass def setFaceColors(*args, **kwargs): """ setFaceColors(colors, faceIds, rep=kRGBA) -> self Sets the colors of the specified faces. For each face in the faceIds sequence the corresponding color from the colors sequence will be applied to all of its vertices. """ pass def setFaceVertexColor(*args, **kwargs): """ setFaceVertexColor(color, faceId, vertexId, modifier=None, rep=kRGBA) -> self Sets a face-specific normal at a vertex. If 'modifier' (MDGModifier) is provided then the operation will be added to the modifier and will not take effect until the modifier's doIt() is called. Otherwise it will take effect immediately. """ pass def setFaceVertexColors(*args, **kwargs): """ setFaceVertexColors(colors, faceIds, vertexIds, modifier=None, rep=kRGBA) -> self Sets the colors of the specified face/vertex pairs. If 'modifier' (MDGModifier) is provided then the operation will be added to the modifier and will not take effect until the modifier's doIt() is called. Otherwise it will take effect immediately. """ pass def setFaceVertexNormal(*args, **kwargs): """ setFaceVertexNormal(normal, faceId, vertexId, space=MSpace.kObject, modifier=None) -> self Sets a face-specific normal at a vertex. If 'modifier' (MDGModifier) is provided then the operation will be added to the modifier and will not take effect until the modifier's doIt() is called. Otherwise it will take effect immediately. """ pass def setFaceVertexNormals(*args, **kwargs): """ setFaceVertexNormal(normals, faceIds, vertexIds, space=MSpace.kObject) -> self Sets normals for the given face/vertex pairs. """ pass def setFloatBlindData(*args, **kwargs): """ setFloatBlindData(compId, compType, blindDataId, attr, data) -> self setFloatBlindData(seq of compId, compType, blindDataId, attr, data) -> self The first version sets the value of a 'float' blind data attribute on a single component of the mesh. The data must be a single float. The second version sets the value of a 'float' blind data attribute on multiple components of the mesh. If the data is a sequence of floats then it must provide a value for each component in compIds. If it is a single float then all of the specified components will have their blind data set to that value. """ pass def setIntBlindData(*args, **kwargs): """ setIntBlindData(compId, compType, blindDataId, attr, data) -> self setIntBlindData(seq of compId, compType, blindDataId, attr, data) -> self The first version sets the value of a 'int' blind data attribute on a single component of the mesh. The data must be a single int. The second version sets the value of a 'int' blind data attribute on multiple components of the mesh. If the data is a sequence of ints then it must provide a value for each component in compIds. If it is a single int then all of the specified components will have their blind data set to that value. """ pass def setInvisibleFaces(*args, **kwargs): """ setInvisibleFaces(faceIds, makeVisible=False) -> self Sets the specified faces of the mesh to be visible or invisible. See the getInvisibleFaces() method for a description of invisible faces. """ pass def setIsColorClamped(*args, **kwargs): """ setIsColorClamped(colorSet, clamped) -> self Sets whether the color set's RGBA components should be clamped to the range 0 to 1. """ pass def setNormals(*args, **kwargs): """ setNormals(normals, space=MSpace.kObject) -> self Sets the mesh's normals (user normals). """ pass def setPoint(*args, **kwargs): """ setPoint(vertexId, MPoint, space=MSpace.kObject) -> self Sets the position of specified vertex. Note that if you modify the position of a vertex for a mesh node (as opposed to mesh data), a tweak will be created. If you have a node with no history, the first time that a tweak is created, the underlying pointers under the MFnMesh object may change. You will need to call syncObject() to make sure that the object is valid. Subsequent calls to setPoint() on the same object do not require a syncObject() call. """ pass def setPoints(*args, **kwargs): """ setPoints(points, space=MSpace.kObject) -> self Sets the positions of the mesh's vertices. The positions may be given as a sequence of MFloatPoint's or a sequence of MPoint's, but not a mix of the two. """ pass def setSmoothMeshDisplayOptions(*args, **kwargs): """ setSmoothMeshDisplayOptions(MMeshSmoothOptions) -> self Sets the options to use when smoothing the mesh for display. """ pass def setSomeColors(*args, **kwargs): """ setSomeColors(colorIds, colors, colorSet='', rep=kRGBA) -> self Sets specific colors in a colorSet. If the largest colorId in the sequence is larger than numColors() then the colorSet will be grown to accommodate the new color values. If you have added new colorIds, you can call assignColors to assign the colorIds to the geometry. If you are modifying existing colors, they will already be referenced by the existing mesh data. """ pass def setSomeUVs(*args, **kwargs): """ setSomeUVs(uvIds, uValues, vValues, uvSet='') -> self Sets the specified texture coordinates (uv's) for this mesh. The uv value sequences and the uvIds sequence must all be of equal size. If the largest uvId in the array is larger than numUVs() then the uv list for this mesh will be grown to accommodate the new uv values. If a named uv set is given, the array will be grown when the largest uvId is larger than numUVs(uvSet). If you have added new uvIds, you must call one of the assignUV methods to assign the uvIds to the geometry. If you are modifying existing UVs, you do not need to call one of the assignUV methods. """ pass def setStringBlindData(*args, **kwargs): """ setStringBlindData(compId, compType, blindDataId, attr, data) -> self setStringBlindData(seq of compId, compType, blindDataId, attr, data) -> self The first version sets the value of a 'string' blind data attribute on a single component of the mesh. The data must be a single string. The second version sets the value of a 'string' blind data attribute on multiple components of the mesh. If the data is a sequence of strings then it must provide a value for each component in compIds. If it is a single string then all of the specified components will have their blind data set to that value. """ pass def setUV(*args, **kwargs): """ setUV(uvId, u, v, uvSet='') -> self Sets the specified texture coordinate. The uvId is the element in the uv list that will be set. If the uvId is greater than or equal to numUVs() then the uv list will be grown to accommodate the specified uv. If the UV being added is new, thenyou must call one of the assignUV methods in order to update the geometry. """ pass def setUVs(*args, **kwargs): """ setUVs(uValues, vValues, uvSet='') -> self Sets all of the texture coordinates (uv's) for this mesh. The uv value sequences must be of equal size and must be at least as large as the current UV set size. You can determine the UV set size by calling numUVs() for the default UV set, or numUVs(uvSet) for a named UV set. If the sequences are larger than the UV set size, then the uv list for this mesh will be grown to accommodate the new uv values. After using this method to set the UV values, you must call one of the assignUV methods to assign the corresponding UV ids to the geometry. In order to shrink the uvs array, do the following: clearUVs(), setUVs(...), assignUVs(). These steps will let you to create an array of uvs which is smaller than the original one. """ pass def setVertexColor(*args, **kwargs): """ setVertexColor(color, vertexId, modifier=None, rep=kRGBA) -> self Sets the color for a vertex in all the faces which share it. If 'modifier' (MDGModifier) is provided then the operation will be added to the modifier and will not take effect until the modifier's doIt() is called. Otherwise it will take effect immediately. """ pass def setVertexColors(*args, **kwargs): """ setVertexColors(colors, vertexIds, modifier=None, rep=kRGBA) -> self Sets the colors of the specified vertices. For each vertex in the vertexIds sequence, the corresponding color from the colors sequence will be applied to the vertex in all of the faces which share it. If 'modifier' (MDGModifier) is provided then the operation will be added to the modifier and will not take effect until the modifier's doIt() is called. Otherwise it will take effect immediately. """ pass def setVertexNormal(*args, **kwargs): """ setVertexNormal(normal, vertexId, space=MSpace.kObject, modifier=None) -> self Sets the shared normal at a vertex. If 'modifier' (MDGModifier) is provided then the operation will be added to the modifier and will not take effect until the modifier's doIt() is called. Otherwise it will take effect immediately. """ pass def setVertexNormals(*args, **kwargs): """ setVertexNormal(normals, vertexIds, space=MSpace.kObject) -> self Sets the shared normals for the given vertices. """ pass def sortIntersectionFaceTriIds(*args, **kwargs): """ sortIntersectionFaceTriIds(faceIds, triIds=none) -> self Convenience routine for sorting faceIds or face/triangle ids before passing them into the closestIntersection(), allIntersections(), or anyIntersection() methods. When using an acceleration structure with an intersection operation it is essential that any faceId or faceId/triId arrays be sorted properly to ensure optimal performance. Both arguments must be MIntArray's. """ pass def split(*args, **kwargs): """ split(((kOnEdge, int, float), (kInternalPoint, MFloatPoint), ...)) -> self Each tuple in the placements sequence consists of a Split Placement constant followed by one or two parameters. If the Split Placement is kOnEdge then the tuple will contain two more elements giving the int id of the edge to split, and a float value between 0 and 1 indicating how far along the edge to do the split. The same edge cannot be split more than once per call. If the Split Placement is kInternalPoint then the tuple will contain just one more element giving an MFloatPoint within the face. All splits must begin and end on an edge meaning that the first and last tuples in the placements sequence must be kOnEdge placements. """ pass def subdivideEdges(*args, **kwargs): """ subdivideEdges(edges, numDivisions) -> self Subdivides edges at regular intervals. For example, if numDivisions is 2 then two equally-spaced vertices will be added to each of the specified edges: one 1/3 of the way along the edge and a second 2/3 of the way along the edge. """ pass def subdivideFaces(*args, **kwargs): """ subdivideFaces(faces, numDivisions) -> self Subdivides each specified face into a grid of smaller faces. Triangles are subdivided into a grid of smaller triangles and quads are subdivided into a grid of smaller quads. Faces with more than four edges are ignored. The numDivisions parameter tells how many times to subdivide each edge of the face. Internal points and edges are introduced as needed to create a grid of smaller faces. """ pass def syncObject(*args, **kwargs): """ syncObject() -> self If a non-api operation happens that many have changed the underlying Maya object attached to this functionset, calling this method will make sure that the functionset picks up those changes. In particular this call should be used after calling mel commands which might affect the mesh. Note that this only applies when the functionset is attached to a mesh node. If it's attached to mesh data the it is not necessary to call this method. """ pass def unlockFaceVertexNormals(*args, **kwargs): """ unlockFaceVertexNormals(seq of faceIds, seq of vertIds) -> self Unlocks the normals for the given face/vertex pairs. """ pass def unlockVertexNormals(*args, **kwargs): """ unlockVertexNormals(sequence of vertIds) -> self Unlocks the shared normals for the specified vertices. """ pass def updateSurface(*args, **kwargs): """ updateSurface() -> self Signal that this polygonal mesh has changed and needs to be redrawn. """ pass def autoUniformGridParams(*args, **kwargs): """ autoUniformGridParams() -> MMeshIsectAccelParams Creates an object which specifies a uniform voxel grid structure which can be used by the intersection routines to speed up their operation. The number of voxel cells to use will be determined automatically based on the density of triangles in the mesh. The grid acceleration structure will be cached with the mesh, so that if the same MMeshIsectAccelParams configuration is used on the next intersect call, the acceleration structure will not need to be rebuilt. """ pass def clearGlobalIntersectionAcceleratorInfo(*args, **kwargs): """ clearGlobalIntersectionAcceleratorInfo() Clears the 'total count', 'total build time', and 'peak memory' fields from the information string returned by globalIntersectionAcceleratorsInfo(). It will not cause information about currently existing accelerators to be lost. """ pass def globalIntersectionAcceleratorsInfo(*args, **kwargs): """ globalIntersectionAcceleratorsInfo() -> string Returns a string that describes the system-wide resource usage for cached mesh intersection accelerators. The string will be of the following form: total 10 accelerators created (2 currently active - total current memory = 10000KB), total build time = 10.2s, peak memory = 14567.1KB This means that: * a total of 10 intersection accelerators have been created as instructed by calls to closestIntersection(), allIntersections(), or anyIntersection() with non-NULL accelParams values. Thesen structures are destroyed and re-created when intersection requests with differing acceleration parameters are passed in for the same mesh, so it is useful to see this value, which is the total count of how many have been created. In this case, 8 of the 10 created have been destroyed, either automatically or via calls to the freeCachedIntersectionAccelerator() method * the total memory footprint for the 2 accelerators currently in existence is 10,000KB * the total build time for all 10 structures that have been created is 10.2 seconds * the peak of total memory usage for all accelerators in the system was 14567.1KB Calling clearGlobalIntersectionAcceleratorInfo() will clear the 'total count', 'total build time', and 'peak memory' fields from this information. It will not cause information about currently existing accelerators to be lost. """ pass def uniformGridParams(*args, **kwargs): """ uniformGridParams(xDiv, yDiv, zDiv) -> MMeshIsectAccelParams Creates an object which specifies a uniform voxel grid structure which can be used by the intersection routines to speed up their operation. This object specifies the number of voxel cells to be used in the x, y, and z dimensions. The grid acceleration structure will be cached with the mesh, so that if the same MMeshIsectAccelParams configuration is used on the next intersect call, the acceleration structure will not need to be rebuilt. """ pass checkSamePointTwice = None displayColors = None numColorSets = None numEdges = None numFaceVertices = None numNormals = None numPolygons = None numUVSets = None numVertices = None __new__ = None kAlpha = 1 kDifference = 2 kInstanceUnspecified = -1 kInternalPoint = 1 kIntersectTolerance = 1e-06 kIntersection = 3 kInvalid = 2 kOnEdge = 0 kPointTolerance = 1e-10 kRGB = 3 kRGBA = 4 kUnion = 1 class MFnNurbsSurfaceData(MFnGeometryData): """ MFnNurbsSurfaceData allows the creation and manipulation of Nurbs Surface data objects for use in the dependency graph. __init__() Initializes a new, empty MFnNurbsSurfaceData object __init__(MObject) Initializes a new MFnNurbsSurfaceData function set, attached to the specified object. """ def __init__(*args, **kwargs): """ x.__init__(...) initializes x; see help(type(x)) for signature """ pass def create(*args, **kwargs): """ create() -> MObject Creates a new nurbs surface data object, attaches it to this function set and returns an MObject which references it. """ pass __new__ = None
19.439129
378
0.500654
36,596
372,998
4.961826
0.12127
0.081781
0.03562
0.012788
0.583722
0.541582
0.509299
0.474318
0.446589
0.422496
0
0.018286
0.411788
372,998
19,187
379
19.440142
0.809341
0.415713
0
0.569504
0
0
0
0
0
0
0
0
0
1
0.317579
false
0.318435
0
0
0.682421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
8ace5194a87da872ba00fb0761ec4b05737de46b
7,010
py
Python
src/cowrie/ssh_proxy/client_transport.py
danielmittelman/cowrie
06889ac9bfd955392e10cea661fe74c356fb9f40
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/ssh_proxy/client_transport.py
danielmittelman/cowrie
06889ac9bfd955392e10cea661fe74c356fb9f40
[ "BSD-3-Clause" ]
null
null
null
src/cowrie/ssh_proxy/client_transport.py
danielmittelman/cowrie
06889ac9bfd955392e10cea661fe74c356fb9f40
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019 Guilherme Borges <guilhermerosasborges@gmail.com> # All rights reserved. from twisted.conch.ssh import transport from twisted.internet import defer, protocol from twisted.protocols.policies import TimeoutMixin from twisted.python import log from cowrie.core.config import CowrieConfig from cowrie.ssh_proxy.util import bin_string_to_hex, string_to_hex def get_int(data, length=4): return int.from_bytes(data[:length], byteorder="big") def get_bool(data): return bool(get_int(data, length=1)) def get_string(data): length = get_int(data, 4) value = data[4 : length + 4] return length + 4, value class BackendSSHTransport(transport.SSHClientTransport, TimeoutMixin): """ This class represents the transport layer from Cowrie's proxy to the backend SSH server. It is responsible for authentication to that server, and sending messages it gets to the handler. """ def __init__(self, factory): self.delayedPackets = [] self.factory = factory self.canAuth = False self.authDone = False # keep these from when frontend authenticates self.frontendTriedUsername = None self.frontendTriedPassword = None def connectionMade(self): log.msg(f"Connected to SSH backend at {self.transport.getPeer().host}") self.factory.server.client = self self.factory.server.sshParse.set_client(self) transport.SSHClientTransport.connectionMade(self) def verifyHostKey(self, pub_key, fingerprint): return defer.succeed(True) def connectionSecure(self): log.msg("Backend Connection Secured") self.canAuth = True self.authenticateBackend() def authenticateBackend(self, tried_username=None, tried_password=None): """ This is called when the frontend is authenticated, so as to give us the option to authenticate with the username and password given by the attacker. """ # we keep these here in case frontend has authenticated and backend hasn't established the secure channel yet; # in that case, tried credentials are stored to be used whenever usearauth with backend can be performed if tried_username and tried_password: self.frontendTriedUsername = tried_username self.frontendTriedPassword = tried_password # do nothing if frontend is not authenticated, or backend has not established a secure channel if not self.factory.server.frontendAuthenticated or not self.canAuth: return # we authenticate with the backend using the credentials provided # TODO create the account in the backend before (contact the pool of VMs for example) # so these credentials from the config may not be needed after all username = CowrieConfig.get("proxy", "backend_user").encode() password = CowrieConfig.get("proxy", "backend_pass").encode() log.msg(f"Will auth with backend: {username}/{password}") self.sendPacket(5, bin_string_to_hex(b"ssh-userauth")) payload = ( bin_string_to_hex(username) + string_to_hex("ssh-connection") + string_to_hex("password") + b"\x00" + bin_string_to_hex(password) ) self.sendPacket(50, payload) self.factory.server.backendConnected = True # send packets from the frontend that were waiting to go to the backend for packet in self.factory.server.delayedPackets: self.factory.server.sshParse.parse_packet("[SERVER]", packet[0], packet[1]) self.factory.server.delayedPackets = [] # backend auth is done, attackers will now be connected to the backend self.authDone = True def connectionLost(self, reason): if self.factory.server.pool_interface: log.msg( eventid="cowrie.proxy.client_disconnect", format="Lost connection with the pool backend: id %(vm_id)s", vm_id=self.factory.server.pool_interface.vm_id, protocol="ssh", ) else: log.msg( eventid="cowrie.proxy.client_disconnect", format="Lost connection with the proxy's backend: %(honey_ip)s:%(honey_port)s", honey_ip=self.factory.server.backend_ip, honey_port=self.factory.server.backend_port, protocol="ssh", ) self.transport.connectionLost(reason) self.transport = None # if connection from frontend is not closed, do it here if self.factory.server.transport: self.factory.server.transport.loseConnection() def timeoutConnection(self): """ Make sure all sessions time out eventually. Timeout is reset when authentication succeeds. """ log.msg("Timeout reached in BackendSSHTransport") self.transport.loseConnection() self.factory.server.transport.loseConnection() def dispatchMessage(self, message_num, payload): if message_num in [6, 52]: return # TODO consume these in authenticateBackend if message_num == 98: # looking for RFC 4254 - 6.10. Returning Exit Status pointer = 4 # ignore recipient_channel leng, message = get_string(payload[pointer:]) if message == b"exit-status": pointer += leng + 1 # also boolean ignored exit_status = get_int(payload[pointer:]) log.msg(f"exitCode: {exit_status}") if transport.SSHClientTransport.isEncrypted(self, "both"): self.packet_buffer(message_num, payload) else: transport.SSHClientTransport.dispatchMessage(self, message_num, payload) def packet_buffer(self, message_num, payload): """ We can only proceed if authentication has been performed between client and proxy. Meanwhile we hold packets from the backend to the frontend in here. """ if not self.factory.server.frontendAuthenticated: # wait till frontend connects and authenticates to send packets to them log.msg("Connection to client not ready, buffering packet from backend") self.delayedPackets.append([message_num, payload]) else: if len(self.delayedPackets) > 0: self.delayedPackets.append([message_num, payload]) for packet in self.delayedPackets: self.factory.server.sshParse.parse_packet( "[CLIENT]", packet[0], packet[1] ) self.delayedPackets = [] else: self.factory.server.sshParse.parse_packet( "[CLIENT]", message_num, payload ) class BackendSSHFactory(protocol.ClientFactory): def buildProtocol(self, addr): return BackendSSHTransport(self)
39.382022
118
0.650214
810
7,010
5.539506
0.312346
0.046579
0.064408
0.012481
0.156898
0.119456
0.062848
0.029864
0.029864
0.029864
0
0.006643
0.2699
7,010
177
119
39.60452
0.870066
0.23281
0
0.176991
0
0
0.105163
0.026481
0
0
0
0.011299
0
1
0.115044
false
0.070796
0.053097
0.035398
0.247788
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2