body_hash
stringlengths
64
64
body
stringlengths
23
109k
docstring
stringlengths
1
57k
path
stringlengths
4
198
name
stringlengths
1
115
repository_name
stringlengths
7
111
repository_stars
float64
0
191k
lang
stringclasses
1 value
body_without_docstring
stringlengths
14
108k
unified
stringlengths
45
133k
ec227399f58deefe8e8a53e3c27ffb815ce2c2468cdaaef2879a323506787292
@property def BVlanTpid(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): B VLAN TPID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['BVlanTpid']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): B VLAN TPID
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
BVlanTpid
OpenIxia/ixnetwork_restpy
20
python
@property def BVlanTpid(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): B VLAN TPID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['BVlanTpid']))
@property def BVlanTpid(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): B VLAN TPID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['BVlanTpid']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): B VLAN TPID<|endoftext|>
323c9b8cbbf7244a915c1ef0f8c92957af0c3378587a1b0872ff3e7a0580ed32
@property def Count(self): '\n Returns\n -------\n - number: Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group.\n ' return self._get_attribute(self._SDM_ATT_MAP['Count'])
Returns ------- - number: Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group.
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
Count
OpenIxia/ixnetwork_restpy
20
python
@property def Count(self): '\n Returns\n -------\n - number: Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group.\n ' return self._get_attribute(self._SDM_ATT_MAP['Count'])
@property def Count(self): '\n Returns\n -------\n - number: Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group.\n ' return self._get_attribute(self._SDM_ATT_MAP['Count'])<|docstring|>Returns ------- - number: Number of elements inside associated multiplier-scaled container object, e.g. number of devices inside a Device Group.<|endoftext|>
2c46a49708a8719ef44387efd2afbca7c2140ca610f85f1b92e34ba0de0691f1
@property def DescriptiveName(self): "\n Returns\n -------\n - str: Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context.\n " return self._get_attribute(self._SDM_ATT_MAP['DescriptiveName'])
Returns ------- - str: Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context.
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
DescriptiveName
OpenIxia/ixnetwork_restpy
20
python
@property def DescriptiveName(self): "\n Returns\n -------\n - str: Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context.\n " return self._get_attribute(self._SDM_ATT_MAP['DescriptiveName'])
@property def DescriptiveName(self): "\n Returns\n -------\n - str: Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context.\n " return self._get_attribute(self._SDM_ATT_MAP['DescriptiveName'])<|docstring|>Returns ------- - str: Longer, more descriptive name for element. It's not guaranteed to be unique like -name-, but may offer more context.<|endoftext|>
83846c8cde0ef31c3d7296070d768a2d126b3db410bb3c7dfead322f6de0aeb0
@property def EnableVlanAwareService(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Enable VLAN Aware Service\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['EnableVlanAwareService']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Enable VLAN Aware Service
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
EnableVlanAwareService
OpenIxia/ixnetwork_restpy
20
python
@property def EnableVlanAwareService(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Enable VLAN Aware Service\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['EnableVlanAwareService']))
@property def EnableVlanAwareService(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Enable VLAN Aware Service\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['EnableVlanAwareService']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Enable VLAN Aware Service<|endoftext|>
b3a5826ee97fa3f9211099d6d0069658270e752c6a5e42868390ce6b50478169
@property def EthernetTagId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Ethernet Tag ID. For VPWS, this acts as VPWS Service ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['EthernetTagId']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Ethernet Tag ID. For VPWS, this acts as VPWS Service ID
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
EthernetTagId
OpenIxia/ixnetwork_restpy
20
python
@property def EthernetTagId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Ethernet Tag ID. For VPWS, this acts as VPWS Service ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['EthernetTagId']))
@property def EthernetTagId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Ethernet Tag ID. For VPWS, this acts as VPWS Service ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['EthernetTagId']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Ethernet Tag ID. For VPWS, this acts as VPWS Service ID<|endoftext|>
bdaa1891605f094bd8714ac97384ecdc15560695b591eafe20585b0a4ee06fdb
@property def ExportEviRTAssignedNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Export Route Target Assigned Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportEviRTAssignedNumber']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Export Route Target Assigned Number
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ExportEviRTAssignedNumber
OpenIxia/ixnetwork_restpy
20
python
@property def ExportEviRTAssignedNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Export Route Target Assigned Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportEviRTAssignedNumber']))
@property def ExportEviRTAssignedNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Export Route Target Assigned Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportEviRTAssignedNumber']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Export Route Target Assigned Number<|endoftext|>
97632e964d941b16bd6aaf395f905c1542f6da9f02d55b5a8340ec0830691c14
@property def ExportRTIpv4Address(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): IP\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTIpv4Address']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): IP
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ExportRTIpv4Address
OpenIxia/ixnetwork_restpy
20
python
@property def ExportRTIpv4Address(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): IP\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTIpv4Address']))
@property def ExportRTIpv4Address(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): IP\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTIpv4Address']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): IP<|endoftext|>
942399435e1c118550819783c98d59043ec839601b12a6806505f88652954bb2
@property def ExportRTSubType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): SubType\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTSubType']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): SubType
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ExportRTSubType
OpenIxia/ixnetwork_restpy
20
python
@property def ExportRTSubType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): SubType\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTSubType']))
@property def ExportRTSubType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): SubType\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTSubType']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): SubType<|endoftext|>
8cd1dadc3c9a56fa74134e040915923c9247364a54b8c065ce61aa3829e72c53
@property def ExportRTType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Type\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTType']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Type
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ExportRTType
OpenIxia/ixnetwork_restpy
20
python
@property def ExportRTType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Type\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTType']))
@property def ExportRTType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Type\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTType']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Type<|endoftext|>
fb8e1666f27f1f827f82c2d9821d71d2f379bf361b093838e2f40775c162bc85
@property def ExportRTValueSameAsExportRT(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export RT configured in EVI.\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTValueSameAsExportRT']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export RT configured in EVI.
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ExportRTValueSameAsExportRT
OpenIxia/ixnetwork_restpy
20
python
@property def ExportRTValueSameAsExportRT(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export RT configured in EVI.\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTValueSameAsExportRT']))
@property def ExportRTValueSameAsExportRT(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export RT configured in EVI.\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ExportRTValueSameAsExportRT']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export RT configured in EVI.<|endoftext|>
a55bb2b1fd309891000d042cf2aa8df4c2e4cc6d5834e78ae2e045d416db7bd4
@property def GroupAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Group Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['GroupAddress']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Group Address
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
GroupAddress
OpenIxia/ixnetwork_restpy
20
python
@property def GroupAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Group Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['GroupAddress']))
@property def GroupAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Group Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['GroupAddress']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Group Address<|endoftext|>
88657c7c9290f7ce667dc4dd9b87d171480e15e4edf496eaae4b0db1035c2a3d
@property def ImportEviRTAssignedNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Import Route Target Assigned Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportEviRTAssignedNumber']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Import Route Target Assigned Number
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ImportEviRTAssignedNumber
OpenIxia/ixnetwork_restpy
20
python
@property def ImportEviRTAssignedNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Import Route Target Assigned Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportEviRTAssignedNumber']))
@property def ImportEviRTAssignedNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Import Route Target Assigned Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportEviRTAssignedNumber']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Import Route Target Assigned Number<|endoftext|>
36a83cd70902352c3e1936ea037882a012a552d320eb9aced2f9f464b2f86269
@property def ImportRTIpv4Address(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): IP\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTIpv4Address']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): IP
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ImportRTIpv4Address
OpenIxia/ixnetwork_restpy
20
python
@property def ImportRTIpv4Address(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): IP\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTIpv4Address']))
@property def ImportRTIpv4Address(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): IP\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTIpv4Address']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): IP<|endoftext|>
55edf0e18885044912672bf0d4218e01fcae25c80350a5ab9beee6e021b63b1e
@property def ImportRTSubType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): SubType\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTSubType']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): SubType
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ImportRTSubType
OpenIxia/ixnetwork_restpy
20
python
@property def ImportRTSubType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): SubType\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTSubType']))
@property def ImportRTSubType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): SubType\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTSubType']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): SubType<|endoftext|>
a2bab4957606d21ea3165dee22a00741bcfbabecff831c3a9dac92fc5bcb399b
@property def ImportRTType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Type\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTType']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Type
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ImportRTType
OpenIxia/ixnetwork_restpy
20
python
@property def ImportRTType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Type\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTType']))
@property def ImportRTType(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Type\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTType']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Type<|endoftext|>
b4ae92c0d1bf65ce8e0432ef723ecfe92b6fd803b2fd7b6ad74176ded8e34496
@property def ImportRTValueSameAsExportEVIRT(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export EVI-RT configured in broadcastdomain\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTValueSameAsExportEVIRT']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export EVI-RT configured in broadcastdomain
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
ImportRTValueSameAsExportEVIRT
OpenIxia/ixnetwork_restpy
20
python
@property def ImportRTValueSameAsExportEVIRT(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export EVI-RT configured in broadcastdomain\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTValueSameAsExportEVIRT']))
@property def ImportRTValueSameAsExportEVIRT(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export EVI-RT configured in broadcastdomain\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['ImportRTValueSameAsExportEVIRT']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Same value as the Export EVI-RT configured in broadcastdomain<|endoftext|>
691022692259818e6f04672fad983dcbc0b2d7f4670796b4d4c03d9b0b2b53a3
@property def Name(self): '\n Returns\n -------\n - str: Name of NGPF element, guaranteed to be unique in Scenario\n ' return self._get_attribute(self._SDM_ATT_MAP['Name'])
Returns ------- - str: Name of NGPF element, guaranteed to be unique in Scenario
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
Name
OpenIxia/ixnetwork_restpy
20
python
@property def Name(self): '\n Returns\n -------\n - str: Name of NGPF element, guaranteed to be unique in Scenario\n ' return self._get_attribute(self._SDM_ATT_MAP['Name'])
@property def Name(self): '\n Returns\n -------\n - str: Name of NGPF element, guaranteed to be unique in Scenario\n ' return self._get_attribute(self._SDM_ATT_MAP['Name'])<|docstring|>Returns ------- - str: Name of NGPF element, guaranteed to be unique in Scenario<|endoftext|>
6c95a883e542dc2d49652be114d6f5784132727b62ebfc49880464f32274df76
@property def NoOfMacPools(self): '\n Returns\n -------\n - number: Number of Mac Pools\n ' return self._get_attribute(self._SDM_ATT_MAP['NoOfMacPools'])
Returns ------- - number: Number of Mac Pools
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
NoOfMacPools
OpenIxia/ixnetwork_restpy
20
python
@property def NoOfMacPools(self): '\n Returns\n -------\n - number: Number of Mac Pools\n ' return self._get_attribute(self._SDM_ATT_MAP['NoOfMacPools'])
@property def NoOfMacPools(self): '\n Returns\n -------\n - number: Number of Mac Pools\n ' return self._get_attribute(self._SDM_ATT_MAP['NoOfMacPools'])<|docstring|>Returns ------- - number: Number of Mac Pools<|endoftext|>
e0888288606a3f9f42ada1bbba07a4668f77361f28b9c41d6edc7e7a61b0e895
@property def NumJoinSynchIgmpRoutes(self): '\n Returns\n -------\n - number: The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumJoinSynchIgmpRoutes'])
Returns ------- - number: The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
NumJoinSynchIgmpRoutes
OpenIxia/ixnetwork_restpy
20
python
@property def NumJoinSynchIgmpRoutes(self): '\n Returns\n -------\n - number: The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumJoinSynchIgmpRoutes'])
@property def NumJoinSynchIgmpRoutes(self): '\n Returns\n -------\n - number: The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumJoinSynchIgmpRoutes'])<|docstring|>Returns ------- - number: The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain<|endoftext|>
49a0de63ae9f2fd78a5008676715541886904253513e4159b8ea16f7a508e99c
@property def NumJoinSynchMldRoutes(self): '\n Returns\n -------\n - number: The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumJoinSynchMldRoutes'])
Returns ------- - number: The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
NumJoinSynchMldRoutes
OpenIxia/ixnetwork_restpy
20
python
@property def NumJoinSynchMldRoutes(self): '\n Returns\n -------\n - number: The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumJoinSynchMldRoutes'])
@property def NumJoinSynchMldRoutes(self): '\n Returns\n -------\n - number: The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumJoinSynchMldRoutes'])<|docstring|>Returns ------- - number: The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain<|endoftext|>
41601ae92c0b22bc808a01ae66cc729768ac83377a60fdacc7e861a27fc44b03
@property def NumLeaveSynchIgmpRoutes(self): '\n Returns\n -------\n - number: The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumLeaveSynchIgmpRoutes'])
Returns ------- - number: The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
NumLeaveSynchIgmpRoutes
OpenIxia/ixnetwork_restpy
20
python
@property def NumLeaveSynchIgmpRoutes(self): '\n Returns\n -------\n - number: The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumLeaveSynchIgmpRoutes'])
@property def NumLeaveSynchIgmpRoutes(self): '\n Returns\n -------\n - number: The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumLeaveSynchIgmpRoutes'])<|docstring|>Returns ------- - number: The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain<|endoftext|>
f94ca30fe1874bb3a71f2cb6726ef25eec20de0e6828388fce15170eaba2600b
@property def NumLeaveSynchMldRoutes(self): '\n Returns\n -------\n - number: The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumLeaveSynchMldRoutes'])
Returns ------- - number: The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
NumLeaveSynchMldRoutes
OpenIxia/ixnetwork_restpy
20
python
@property def NumLeaveSynchMldRoutes(self): '\n Returns\n -------\n - number: The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumLeaveSynchMldRoutes'])
@property def NumLeaveSynchMldRoutes(self): '\n Returns\n -------\n - number: The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumLeaveSynchMldRoutes'])<|docstring|>Returns ------- - number: The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain<|endoftext|>
37110aee9b907940f3af6d9613cd1045ee966260266550a3e761de0ffaab7184
@property def NumSmetIgmpRoutes(self): '\n Returns\n -------\n - number: The number of SMET (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumSmetIgmpRoutes'])
Returns ------- - number: The number of SMET (IGMP) Routes to be configured under Broadcast Domain
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
NumSmetIgmpRoutes
OpenIxia/ixnetwork_restpy
20
python
@property def NumSmetIgmpRoutes(self): '\n Returns\n -------\n - number: The number of SMET (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumSmetIgmpRoutes'])
@property def NumSmetIgmpRoutes(self): '\n Returns\n -------\n - number: The number of SMET (IGMP) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumSmetIgmpRoutes'])<|docstring|>Returns ------- - number: The number of SMET (IGMP) Routes to be configured under Broadcast Domain<|endoftext|>
da9f67d60646819339ee6d72b9574bb87f0d9aafcbe14ac417859ee3b83f91bd
@property def NumSmetMldRoutes(self): '\n Returns\n -------\n - number: The number of SMET (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumSmetMldRoutes'])
Returns ------- - number: The number of SMET (MLD) Routes to be configured under Broadcast Domain
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
NumSmetMldRoutes
OpenIxia/ixnetwork_restpy
20
python
@property def NumSmetMldRoutes(self): '\n Returns\n -------\n - number: The number of SMET (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumSmetMldRoutes'])
@property def NumSmetMldRoutes(self): '\n Returns\n -------\n - number: The number of SMET (MLD) Routes to be configured under Broadcast Domain\n ' return self._get_attribute(self._SDM_ATT_MAP['NumSmetMldRoutes'])<|docstring|>Returns ------- - number: The number of SMET (MLD) Routes to be configured under Broadcast Domain<|endoftext|>
62401187b0949f49f820c6d78d9661f771074fc85bef2efc95fe6a301161dbb4
@property def RootAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Root Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RootAddress']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Root Address
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
RootAddress
OpenIxia/ixnetwork_restpy
20
python
@property def RootAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Root Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RootAddress']))
@property def RootAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Root Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RootAddress']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Root Address<|endoftext|>
496cb132d082e118a07b099396d7fe0e0cebdd7eff242b3213763eb254b3d0bd
@property def RsvpP2mpId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpP2mpId']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
RsvpP2mpId
OpenIxia/ixnetwork_restpy
20
python
@property def RsvpP2mpId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpP2mpId']))
@property def RsvpP2mpId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpP2mpId']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID<|endoftext|>
2f352d8ad1ad70b10f360fd492c3205add7a4db367395eb67348c0b81efc095c
@property def RsvpP2mpIdAsNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID as Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpP2mpIdAsNumber']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID as Number
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
RsvpP2mpIdAsNumber
OpenIxia/ixnetwork_restpy
20
python
@property def RsvpP2mpIdAsNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID as Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpP2mpIdAsNumber']))
@property def RsvpP2mpIdAsNumber(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID as Number\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpP2mpIdAsNumber']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP P2MP ID as Number<|endoftext|>
9586df640116929ee4da48e9b177bb1cc4bac7c02ae38cd828ac34ef311e5d80
@property def RsvpTunnelId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP Tunnel ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpTunnelId']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP Tunnel ID
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
RsvpTunnelId
OpenIxia/ixnetwork_restpy
20
python
@property def RsvpTunnelId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP Tunnel ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpTunnelId']))
@property def RsvpTunnelId(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP Tunnel ID\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['RsvpTunnelId']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): RSVP Tunnel ID<|endoftext|>
dc5a09a17a6354484fa09a6739864d195bee2dfbe9ca8959e28c8289f5fd1c97
@property def SenderAddressPRootNodeAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Sender Address/P-Root Node Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SenderAddressPRootNodeAddress']))
Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Sender Address/P-Root Node Address
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
SenderAddressPRootNodeAddress
OpenIxia/ixnetwork_restpy
20
python
@property def SenderAddressPRootNodeAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Sender Address/P-Root Node Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SenderAddressPRootNodeAddress']))
@property def SenderAddressPRootNodeAddress(self): '\n Returns\n -------\n - obj(ixnetwork_restpy.multivalue.Multivalue): Sender Address/P-Root Node Address\n ' from ixnetwork_restpy.multivalue import Multivalue return Multivalue(self, self._get_attribute(self._SDM_ATT_MAP['SenderAddressPRootNodeAddress']))<|docstring|>Returns ------- - obj(ixnetwork_restpy.multivalue.Multivalue): Sender Address/P-Root Node Address<|endoftext|>
557603fb0bf492d30340a00f5199fcd6f8798534eec9cae53b56fcb7c7f8a015
@property def UsebVlan(self): '\n Returns\n -------\n - bool: Use B-VLAN\n ' return self._get_attribute(self._SDM_ATT_MAP['UsebVlan'])
Returns ------- - bool: Use B-VLAN
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
UsebVlan
OpenIxia/ixnetwork_restpy
20
python
@property def UsebVlan(self): '\n Returns\n -------\n - bool: Use B-VLAN\n ' return self._get_attribute(self._SDM_ATT_MAP['UsebVlan'])
@property def UsebVlan(self): '\n Returns\n -------\n - bool: Use B-VLAN\n ' return self._get_attribute(self._SDM_ATT_MAP['UsebVlan'])<|docstring|>Returns ------- - bool: Use B-VLAN<|endoftext|>
567d62775d671625c0f0e7c95c03b27e62668deba65f4a40d5b522f551bacb71
def update(self, Name=None, NoOfMacPools=None, NumJoinSynchIgmpRoutes=None, NumJoinSynchMldRoutes=None, NumLeaveSynchIgmpRoutes=None, NumLeaveSynchMldRoutes=None, NumSmetIgmpRoutes=None, NumSmetMldRoutes=None, UsebVlan=None): 'Updates broadcastDomainV4 resource on the server.\n\n This method has some named parameters with a type: obj (Multivalue).\n The Multivalue class has documentation that details the possible values for those named parameters.\n\n Args\n ----\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfMacPools (number): Number of Mac Pools\n - NumJoinSynchIgmpRoutes (number): The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain\n - NumJoinSynchMldRoutes (number): The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain\n - NumLeaveSynchIgmpRoutes (number): The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain\n - NumLeaveSynchMldRoutes (number): The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain\n - NumSmetIgmpRoutes (number): The number of SMET (IGMP) Routes to be configured under Broadcast Domain\n - NumSmetMldRoutes (number): The number of SMET (MLD) Routes to be configured under Broadcast Domain\n - UsebVlan (bool): Use B-VLAN\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._update(self._map_locals(self._SDM_ATT_MAP, locals()))
Updates broadcastDomainV4 resource on the server. This method has some named parameters with a type: obj (Multivalue). The Multivalue class has documentation that details the possible values for those named parameters. Args ---- - Name (str): Name of NGPF element, guaranteed to be unique in Scenario - NoOfMacPools (number): Number of Mac Pools - NumJoinSynchIgmpRoutes (number): The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain - NumJoinSynchMldRoutes (number): The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain - NumLeaveSynchIgmpRoutes (number): The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain - NumLeaveSynchMldRoutes (number): The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain - NumSmetIgmpRoutes (number): The number of SMET (IGMP) Routes to be configured under Broadcast Domain - NumSmetMldRoutes (number): The number of SMET (MLD) Routes to be configured under Broadcast Domain - UsebVlan (bool): Use B-VLAN Raises ------ - ServerError: The server has encountered an uncategorized error condition
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
update
OpenIxia/ixnetwork_restpy
20
python
def update(self, Name=None, NoOfMacPools=None, NumJoinSynchIgmpRoutes=None, NumJoinSynchMldRoutes=None, NumLeaveSynchIgmpRoutes=None, NumLeaveSynchMldRoutes=None, NumSmetIgmpRoutes=None, NumSmetMldRoutes=None, UsebVlan=None): 'Updates broadcastDomainV4 resource on the server.\n\n This method has some named parameters with a type: obj (Multivalue).\n The Multivalue class has documentation that details the possible values for those named parameters.\n\n Args\n ----\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfMacPools (number): Number of Mac Pools\n - NumJoinSynchIgmpRoutes (number): The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain\n - NumJoinSynchMldRoutes (number): The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain\n - NumLeaveSynchIgmpRoutes (number): The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain\n - NumLeaveSynchMldRoutes (number): The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain\n - NumSmetIgmpRoutes (number): The number of SMET (IGMP) Routes to be configured under Broadcast Domain\n - NumSmetMldRoutes (number): The number of SMET (MLD) Routes to be configured under Broadcast Domain\n - UsebVlan (bool): Use B-VLAN\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._update(self._map_locals(self._SDM_ATT_MAP, locals()))
def update(self, Name=None, NoOfMacPools=None, NumJoinSynchIgmpRoutes=None, NumJoinSynchMldRoutes=None, NumLeaveSynchIgmpRoutes=None, NumLeaveSynchMldRoutes=None, NumSmetIgmpRoutes=None, NumSmetMldRoutes=None, UsebVlan=None): 'Updates broadcastDomainV4 resource on the server.\n\n This method has some named parameters with a type: obj (Multivalue).\n The Multivalue class has documentation that details the possible values for those named parameters.\n\n Args\n ----\n - Name (str): Name of NGPF element, guaranteed to be unique in Scenario\n - NoOfMacPools (number): Number of Mac Pools\n - NumJoinSynchIgmpRoutes (number): The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain\n - NumJoinSynchMldRoutes (number): The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain\n - NumLeaveSynchIgmpRoutes (number): The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain\n - NumLeaveSynchMldRoutes (number): The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain\n - NumSmetIgmpRoutes (number): The number of SMET (IGMP) Routes to be configured under Broadcast Domain\n - NumSmetMldRoutes (number): The number of SMET (MLD) Routes to be configured under Broadcast Domain\n - UsebVlan (bool): Use B-VLAN\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._update(self._map_locals(self._SDM_ATT_MAP, locals()))<|docstring|>Updates broadcastDomainV4 resource on the server. This method has some named parameters with a type: obj (Multivalue). The Multivalue class has documentation that details the possible values for those named parameters. Args ---- - Name (str): Name of NGPF element, guaranteed to be unique in Scenario - NoOfMacPools (number): Number of Mac Pools - NumJoinSynchIgmpRoutes (number): The number of JoinSnch (IGMP) Routes to be configured under Broadcast Domain - NumJoinSynchMldRoutes (number): The number of JoinSynch (MLD) Routes to be configured under Broadcast Domain - NumLeaveSynchIgmpRoutes (number): The number of LeaveSynch (IGMP) Routes to be configured under Broadcast Domain - NumLeaveSynchMldRoutes (number): The number of LeaveSynch (MLD) Routes to be configured under Broadcast Domain - NumSmetIgmpRoutes (number): The number of SMET (IGMP) Routes to be configured under Broadcast Domain - NumSmetMldRoutes (number): The number of SMET (MLD) Routes to be configured under Broadcast Domain - UsebVlan (bool): Use B-VLAN Raises ------ - ServerError: The server has encountered an uncategorized error condition<|endoftext|>
9938546bcbff24edf5a98754f2a7a7ba79dd97e00a15d133263d8784242e5817
def AdvertiseAliasing(self, *args, **kwargs): 'Executes the advertiseAliasing operation on the server.\n\n Advertise Aliasing Per Broadcast Domain.\n\n advertiseAliasing(Arg2=list, async_operation=bool)list\n ------------------------------------------------------\n - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group.\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('advertiseAliasing', payload=payload, response_object=None)
Executes the advertiseAliasing operation on the server. Advertise Aliasing Per Broadcast Domain. advertiseAliasing(Arg2=list, async_operation=bool)list ------------------------------------------------------ - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group. - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
AdvertiseAliasing
OpenIxia/ixnetwork_restpy
20
python
def AdvertiseAliasing(self, *args, **kwargs): 'Executes the advertiseAliasing operation on the server.\n\n Advertise Aliasing Per Broadcast Domain.\n\n advertiseAliasing(Arg2=list, async_operation=bool)list\n ------------------------------------------------------\n - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group.\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('advertiseAliasing', payload=payload, response_object=None)
def AdvertiseAliasing(self, *args, **kwargs): 'Executes the advertiseAliasing operation on the server.\n\n Advertise Aliasing Per Broadcast Domain.\n\n advertiseAliasing(Arg2=list, async_operation=bool)list\n ------------------------------------------------------\n - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group.\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('advertiseAliasing', payload=payload, response_object=None)<|docstring|>Executes the advertiseAliasing operation on the server. Advertise Aliasing Per Broadcast Domain. advertiseAliasing(Arg2=list, async_operation=bool)list ------------------------------------------------------ - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group. - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition<|endoftext|>
8d58b465b24e01e47b20fd44b30d93d823c2540a3ac6462260e295a53213a80c
def AdvertiseAliasingPerBroadcastDomain(self, *args, **kwargs): 'Executes the advertiseAliasingPerBroadcastDomain operation on the server.\n\n Advertise Aliasing Per Broadcast Domain\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n advertiseAliasingPerBroadcastDomain(async_operation=bool)\n ---------------------------------------------------------\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n advertiseAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool)\n ------------------------------------------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n advertiseAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool)\n --------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('advertiseAliasingPerBroadcastDomain', payload=payload, response_object=None)
Executes the advertiseAliasingPerBroadcastDomain operation on the server. Advertise Aliasing Per Broadcast Domain The IxNetwork model allows for multiple method Signatures with the same name while python does not. advertiseAliasingPerBroadcastDomain(async_operation=bool) --------------------------------------------------------- - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. advertiseAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool) ------------------------------------------------------------------------------ - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. advertiseAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool) -------------------------------------------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
AdvertiseAliasingPerBroadcastDomain
OpenIxia/ixnetwork_restpy
20
python
def AdvertiseAliasingPerBroadcastDomain(self, *args, **kwargs): 'Executes the advertiseAliasingPerBroadcastDomain operation on the server.\n\n Advertise Aliasing Per Broadcast Domain\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n advertiseAliasingPerBroadcastDomain(async_operation=bool)\n ---------------------------------------------------------\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n advertiseAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool)\n ------------------------------------------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n advertiseAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool)\n --------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('advertiseAliasingPerBroadcastDomain', payload=payload, response_object=None)
def AdvertiseAliasingPerBroadcastDomain(self, *args, **kwargs): 'Executes the advertiseAliasingPerBroadcastDomain operation on the server.\n\n Advertise Aliasing Per Broadcast Domain\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n advertiseAliasingPerBroadcastDomain(async_operation=bool)\n ---------------------------------------------------------\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n advertiseAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool)\n ------------------------------------------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n advertiseAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool)\n --------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('advertiseAliasingPerBroadcastDomain', payload=payload, response_object=None)<|docstring|>Executes the advertiseAliasingPerBroadcastDomain operation on the server. Advertise Aliasing Per Broadcast Domain The IxNetwork model allows for multiple method Signatures with the same name while python does not. advertiseAliasingPerBroadcastDomain(async_operation=bool) --------------------------------------------------------- - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. advertiseAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool) ------------------------------------------------------------------------------ - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. advertiseAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool) -------------------------------------------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition<|endoftext|>
6c0fa3bb551b127f3ac6f9cbda22fd88ff998b86dd770b6b2be1dad675730944
def WithdrawAliasing(self, *args, **kwargs): 'Executes the withdrawAliasing operation on the server.\n\n Withdraw Aliasing Per Broadcast Domain.\n\n withdrawAliasing(Arg2=list, async_operation=bool)list\n -----------------------------------------------------\n - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group.\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('withdrawAliasing', payload=payload, response_object=None)
Executes the withdrawAliasing operation on the server. Withdraw Aliasing Per Broadcast Domain. withdrawAliasing(Arg2=list, async_operation=bool)list ----------------------------------------------------- - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group. - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
WithdrawAliasing
OpenIxia/ixnetwork_restpy
20
python
def WithdrawAliasing(self, *args, **kwargs): 'Executes the withdrawAliasing operation on the server.\n\n Withdraw Aliasing Per Broadcast Domain.\n\n withdrawAliasing(Arg2=list, async_operation=bool)list\n -----------------------------------------------------\n - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group.\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('withdrawAliasing', payload=payload, response_object=None)
def WithdrawAliasing(self, *args, **kwargs): 'Executes the withdrawAliasing operation on the server.\n\n Withdraw Aliasing Per Broadcast Domain.\n\n withdrawAliasing(Arg2=list, async_operation=bool)list\n -----------------------------------------------------\n - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group.\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n - Returns list(str): ID to associate each async action invocation\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self.href} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('withdrawAliasing', payload=payload, response_object=None)<|docstring|>Executes the withdrawAliasing operation on the server. Withdraw Aliasing Per Broadcast Domain. withdrawAliasing(Arg2=list, async_operation=bool)list ----------------------------------------------------- - Arg2 (list(number)): List of indices into the group. An empty list indicates all instances in the group. - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. - Returns list(str): ID to associate each async action invocation Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition<|endoftext|>
473280c79069c8842373337528b97858dd530b07c4e63eeaf7dc2e70c28ae684
def WithdrawAliasingPerBroadcastDomain(self, *args, **kwargs): 'Executes the withdrawAliasingPerBroadcastDomain operation on the server.\n\n Advertise Aliasing Per Broadcast Domain\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n withdrawAliasingPerBroadcastDomain(async_operation=bool)\n --------------------------------------------------------\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n withdrawAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool)\n -----------------------------------------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n withdrawAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool)\n -------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('withdrawAliasingPerBroadcastDomain', payload=payload, response_object=None)
Executes the withdrawAliasingPerBroadcastDomain operation on the server. Advertise Aliasing Per Broadcast Domain The IxNetwork model allows for multiple method Signatures with the same name while python does not. withdrawAliasingPerBroadcastDomain(async_operation=bool) -------------------------------------------------------- - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. withdrawAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool) ----------------------------------------------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. withdrawAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool) ------------------------------------------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
WithdrawAliasingPerBroadcastDomain
OpenIxia/ixnetwork_restpy
20
python
def WithdrawAliasingPerBroadcastDomain(self, *args, **kwargs): 'Executes the withdrawAliasingPerBroadcastDomain operation on the server.\n\n Advertise Aliasing Per Broadcast Domain\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n withdrawAliasingPerBroadcastDomain(async_operation=bool)\n --------------------------------------------------------\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n withdrawAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool)\n -----------------------------------------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n withdrawAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool)\n -------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('withdrawAliasingPerBroadcastDomain', payload=payload, response_object=None)
def WithdrawAliasingPerBroadcastDomain(self, *args, **kwargs): 'Executes the withdrawAliasingPerBroadcastDomain operation on the server.\n\n Advertise Aliasing Per Broadcast Domain\n\n The IxNetwork model allows for multiple method Signatures with the same name while python does not.\n\n withdrawAliasingPerBroadcastDomain(async_operation=bool)\n --------------------------------------------------------\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n withdrawAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool)\n -----------------------------------------------------------------------------\n - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n withdrawAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool)\n -------------------------------------------------------------------------------\n - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12\n - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete.\n\n Raises\n ------\n - NotFoundError: The requested resource does not exist on the server\n - ServerError: The server has encountered an uncategorized error condition\n ' payload = {'Arg1': self} for i in range(len(args)): payload[('Arg%s' % (i + 2))] = args[i] for item in kwargs.items(): payload[item[0]] = item[1] return self._execute('withdrawAliasingPerBroadcastDomain', payload=payload, response_object=None)<|docstring|>Executes the withdrawAliasingPerBroadcastDomain operation on the server. Advertise Aliasing Per Broadcast Domain The IxNetwork model allows for multiple method Signatures with the same name while python does not. withdrawAliasingPerBroadcastDomain(async_operation=bool) -------------------------------------------------------- - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. withdrawAliasingPerBroadcastDomain(SessionIndices=list, async_operation=bool) ----------------------------------------------------------------------------- - SessionIndices (list(number)): This parameter requires an array of session numbers 1 2 3 - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. withdrawAliasingPerBroadcastDomain(SessionIndices=string, async_operation=bool) ------------------------------------------------------------------------------- - SessionIndices (str): This parameter requires a string of session numbers 1-4;6;7-12 - async_operation (bool=False): True to execute the operation asynchronously. Any subsequent rest api calls made through the Connection class will block until the operation is complete. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition<|endoftext|>
6706a411b9de38ee000325cb8f954aa3123c12a356ac829aa2e144a13a75981d
def get_device_ids(self, PortNames=None, Active=None, AdRouteLabel=None, AsNumber2Bytes=None, AsNumber4Bytes=None, BVlanId=None, BVlanPriority=None, BVlanTpid=None, EnableVlanAwareService=None, EthernetTagId=None, ExportEviRTAssignedNumber=None, ExportRTIpv4Address=None, ExportRTSubType=None, ExportRTType=None, ExportRTValueSameAsExportRT=None, GroupAddress=None, ImportEviRTAssignedNumber=None, ImportRTIpv4Address=None, ImportRTSubType=None, ImportRTType=None, ImportRTValueSameAsExportEVIRT=None, RootAddress=None, RsvpP2mpId=None, RsvpP2mpIdAsNumber=None, RsvpTunnelId=None, SenderAddressPRootNodeAddress=None): 'Base class infrastructure that gets a list of broadcastDomainV4 device ids encapsulated by this object.\n\n Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object.\n\n Args\n ----\n - PortNames (str): optional regex of port names\n - Active (str): optional regex of active\n - AdRouteLabel (str): optional regex of adRouteLabel\n - AsNumber2Bytes (str): optional regex of asNumber2Bytes\n - AsNumber4Bytes (str): optional regex of asNumber4Bytes\n - BVlanId (str): optional regex of bVlanId\n - BVlanPriority (str): optional regex of bVlanPriority\n - BVlanTpid (str): optional regex of bVlanTpid\n - EnableVlanAwareService (str): optional regex of enableVlanAwareService\n - EthernetTagId (str): optional regex of ethernetTagId\n - ExportEviRTAssignedNumber (str): optional regex of exportEviRTAssignedNumber\n - ExportRTIpv4Address (str): optional regex of exportRTIpv4Address\n - ExportRTSubType (str): optional regex of exportRTSubType\n - ExportRTType (str): optional regex of exportRTType\n - ExportRTValueSameAsExportRT (str): optional regex of exportRTValueSameAsExportRT\n - GroupAddress (str): optional regex of groupAddress\n - ImportEviRTAssignedNumber (str): optional regex of importEviRTAssignedNumber\n - ImportRTIpv4Address (str): optional regex of importRTIpv4Address\n - ImportRTSubType (str): optional regex of importRTSubType\n - ImportRTType (str): optional regex of importRTType\n - ImportRTValueSameAsExportEVIRT (str): optional regex of importRTValueSameAsExportEVIRT\n - RootAddress (str): optional regex of rootAddress\n - RsvpP2mpId (str): optional regex of rsvpP2mpId\n - RsvpP2mpIdAsNumber (str): optional regex of rsvpP2mpIdAsNumber\n - RsvpTunnelId (str): optional regex of rsvpTunnelId\n - SenderAddressPRootNodeAddress (str): optional regex of senderAddressPRootNodeAddress\n\n Returns\n -------\n - list(int): A list of device ids that meets the regex criteria provided in the method parameters\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._get_ngpf_device_ids(locals())
Base class infrastructure that gets a list of broadcastDomainV4 device ids encapsulated by this object. Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object. Args ---- - PortNames (str): optional regex of port names - Active (str): optional regex of active - AdRouteLabel (str): optional regex of adRouteLabel - AsNumber2Bytes (str): optional regex of asNumber2Bytes - AsNumber4Bytes (str): optional regex of asNumber4Bytes - BVlanId (str): optional regex of bVlanId - BVlanPriority (str): optional regex of bVlanPriority - BVlanTpid (str): optional regex of bVlanTpid - EnableVlanAwareService (str): optional regex of enableVlanAwareService - EthernetTagId (str): optional regex of ethernetTagId - ExportEviRTAssignedNumber (str): optional regex of exportEviRTAssignedNumber - ExportRTIpv4Address (str): optional regex of exportRTIpv4Address - ExportRTSubType (str): optional regex of exportRTSubType - ExportRTType (str): optional regex of exportRTType - ExportRTValueSameAsExportRT (str): optional regex of exportRTValueSameAsExportRT - GroupAddress (str): optional regex of groupAddress - ImportEviRTAssignedNumber (str): optional regex of importEviRTAssignedNumber - ImportRTIpv4Address (str): optional regex of importRTIpv4Address - ImportRTSubType (str): optional regex of importRTSubType - ImportRTType (str): optional regex of importRTType - ImportRTValueSameAsExportEVIRT (str): optional regex of importRTValueSameAsExportEVIRT - RootAddress (str): optional regex of rootAddress - RsvpP2mpId (str): optional regex of rsvpP2mpId - RsvpP2mpIdAsNumber (str): optional regex of rsvpP2mpIdAsNumber - RsvpTunnelId (str): optional regex of rsvpTunnelId - SenderAddressPRootNodeAddress (str): optional regex of senderAddressPRootNodeAddress Returns ------- - list(int): A list of device ids that meets the regex criteria provided in the method parameters Raises ------ - ServerError: The server has encountered an uncategorized error condition
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/broadcastdomainv4_ada8e5062c0947bde8a3de0fc7b9d534.py
get_device_ids
OpenIxia/ixnetwork_restpy
20
python
def get_device_ids(self, PortNames=None, Active=None, AdRouteLabel=None, AsNumber2Bytes=None, AsNumber4Bytes=None, BVlanId=None, BVlanPriority=None, BVlanTpid=None, EnableVlanAwareService=None, EthernetTagId=None, ExportEviRTAssignedNumber=None, ExportRTIpv4Address=None, ExportRTSubType=None, ExportRTType=None, ExportRTValueSameAsExportRT=None, GroupAddress=None, ImportEviRTAssignedNumber=None, ImportRTIpv4Address=None, ImportRTSubType=None, ImportRTType=None, ImportRTValueSameAsExportEVIRT=None, RootAddress=None, RsvpP2mpId=None, RsvpP2mpIdAsNumber=None, RsvpTunnelId=None, SenderAddressPRootNodeAddress=None): 'Base class infrastructure that gets a list of broadcastDomainV4 device ids encapsulated by this object.\n\n Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object.\n\n Args\n ----\n - PortNames (str): optional regex of port names\n - Active (str): optional regex of active\n - AdRouteLabel (str): optional regex of adRouteLabel\n - AsNumber2Bytes (str): optional regex of asNumber2Bytes\n - AsNumber4Bytes (str): optional regex of asNumber4Bytes\n - BVlanId (str): optional regex of bVlanId\n - BVlanPriority (str): optional regex of bVlanPriority\n - BVlanTpid (str): optional regex of bVlanTpid\n - EnableVlanAwareService (str): optional regex of enableVlanAwareService\n - EthernetTagId (str): optional regex of ethernetTagId\n - ExportEviRTAssignedNumber (str): optional regex of exportEviRTAssignedNumber\n - ExportRTIpv4Address (str): optional regex of exportRTIpv4Address\n - ExportRTSubType (str): optional regex of exportRTSubType\n - ExportRTType (str): optional regex of exportRTType\n - ExportRTValueSameAsExportRT (str): optional regex of exportRTValueSameAsExportRT\n - GroupAddress (str): optional regex of groupAddress\n - ImportEviRTAssignedNumber (str): optional regex of importEviRTAssignedNumber\n - ImportRTIpv4Address (str): optional regex of importRTIpv4Address\n - ImportRTSubType (str): optional regex of importRTSubType\n - ImportRTType (str): optional regex of importRTType\n - ImportRTValueSameAsExportEVIRT (str): optional regex of importRTValueSameAsExportEVIRT\n - RootAddress (str): optional regex of rootAddress\n - RsvpP2mpId (str): optional regex of rsvpP2mpId\n - RsvpP2mpIdAsNumber (str): optional regex of rsvpP2mpIdAsNumber\n - RsvpTunnelId (str): optional regex of rsvpTunnelId\n - SenderAddressPRootNodeAddress (str): optional regex of senderAddressPRootNodeAddress\n\n Returns\n -------\n - list(int): A list of device ids that meets the regex criteria provided in the method parameters\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._get_ngpf_device_ids(locals())
def get_device_ids(self, PortNames=None, Active=None, AdRouteLabel=None, AsNumber2Bytes=None, AsNumber4Bytes=None, BVlanId=None, BVlanPriority=None, BVlanTpid=None, EnableVlanAwareService=None, EthernetTagId=None, ExportEviRTAssignedNumber=None, ExportRTIpv4Address=None, ExportRTSubType=None, ExportRTType=None, ExportRTValueSameAsExportRT=None, GroupAddress=None, ImportEviRTAssignedNumber=None, ImportRTIpv4Address=None, ImportRTSubType=None, ImportRTType=None, ImportRTValueSameAsExportEVIRT=None, RootAddress=None, RsvpP2mpId=None, RsvpP2mpIdAsNumber=None, RsvpTunnelId=None, SenderAddressPRootNodeAddress=None): 'Base class infrastructure that gets a list of broadcastDomainV4 device ids encapsulated by this object.\n\n Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object.\n\n Args\n ----\n - PortNames (str): optional regex of port names\n - Active (str): optional regex of active\n - AdRouteLabel (str): optional regex of adRouteLabel\n - AsNumber2Bytes (str): optional regex of asNumber2Bytes\n - AsNumber4Bytes (str): optional regex of asNumber4Bytes\n - BVlanId (str): optional regex of bVlanId\n - BVlanPriority (str): optional regex of bVlanPriority\n - BVlanTpid (str): optional regex of bVlanTpid\n - EnableVlanAwareService (str): optional regex of enableVlanAwareService\n - EthernetTagId (str): optional regex of ethernetTagId\n - ExportEviRTAssignedNumber (str): optional regex of exportEviRTAssignedNumber\n - ExportRTIpv4Address (str): optional regex of exportRTIpv4Address\n - ExportRTSubType (str): optional regex of exportRTSubType\n - ExportRTType (str): optional regex of exportRTType\n - ExportRTValueSameAsExportRT (str): optional regex of exportRTValueSameAsExportRT\n - GroupAddress (str): optional regex of groupAddress\n - ImportEviRTAssignedNumber (str): optional regex of importEviRTAssignedNumber\n - ImportRTIpv4Address (str): optional regex of importRTIpv4Address\n - ImportRTSubType (str): optional regex of importRTSubType\n - ImportRTType (str): optional regex of importRTType\n - ImportRTValueSameAsExportEVIRT (str): optional regex of importRTValueSameAsExportEVIRT\n - RootAddress (str): optional regex of rootAddress\n - RsvpP2mpId (str): optional regex of rsvpP2mpId\n - RsvpP2mpIdAsNumber (str): optional regex of rsvpP2mpIdAsNumber\n - RsvpTunnelId (str): optional regex of rsvpTunnelId\n - SenderAddressPRootNodeAddress (str): optional regex of senderAddressPRootNodeAddress\n\n Returns\n -------\n - list(int): A list of device ids that meets the regex criteria provided in the method parameters\n\n Raises\n ------\n - ServerError: The server has encountered an uncategorized error condition\n ' return self._get_ngpf_device_ids(locals())<|docstring|>Base class infrastructure that gets a list of broadcastDomainV4 device ids encapsulated by this object. Use the optional regex parameters in the method to refine the list of device ids encapsulated by this object. Args ---- - PortNames (str): optional regex of port names - Active (str): optional regex of active - AdRouteLabel (str): optional regex of adRouteLabel - AsNumber2Bytes (str): optional regex of asNumber2Bytes - AsNumber4Bytes (str): optional regex of asNumber4Bytes - BVlanId (str): optional regex of bVlanId - BVlanPriority (str): optional regex of bVlanPriority - BVlanTpid (str): optional regex of bVlanTpid - EnableVlanAwareService (str): optional regex of enableVlanAwareService - EthernetTagId (str): optional regex of ethernetTagId - ExportEviRTAssignedNumber (str): optional regex of exportEviRTAssignedNumber - ExportRTIpv4Address (str): optional regex of exportRTIpv4Address - ExportRTSubType (str): optional regex of exportRTSubType - ExportRTType (str): optional regex of exportRTType - ExportRTValueSameAsExportRT (str): optional regex of exportRTValueSameAsExportRT - GroupAddress (str): optional regex of groupAddress - ImportEviRTAssignedNumber (str): optional regex of importEviRTAssignedNumber - ImportRTIpv4Address (str): optional regex of importRTIpv4Address - ImportRTSubType (str): optional regex of importRTSubType - ImportRTType (str): optional regex of importRTType - ImportRTValueSameAsExportEVIRT (str): optional regex of importRTValueSameAsExportEVIRT - RootAddress (str): optional regex of rootAddress - RsvpP2mpId (str): optional regex of rsvpP2mpId - RsvpP2mpIdAsNumber (str): optional regex of rsvpP2mpIdAsNumber - RsvpTunnelId (str): optional regex of rsvpTunnelId - SenderAddressPRootNodeAddress (str): optional regex of senderAddressPRootNodeAddress Returns ------- - list(int): A list of device ids that meets the regex criteria provided in the method parameters Raises ------ - ServerError: The server has encountered an uncategorized error condition<|endoftext|>
aa75daf2aefe6a56bb2802b5e1e9ed33c8aa7bfd6ed9865b9c34e98a7a3fe482
def genbank_to_fasta(self, write_contig=None, write_faa=None, write_nt=None, feature_identifier='locus_tag', return_gene_dict=False): '\n self.gbk is a JAKomics FILE\n ' import warnings from Bio import BiopythonWarning warnings.simplefilter('ignore', BiopythonWarning) if (write_contig != None): ct_file = open(write_contig, 'w') if (write_faa != None): aa_file = open(write_faa, 'w') if (write_nt != None): nt_file = open(write_nt, 'w') if return_gene_dict: gene_dict = {} for seq_record in SeqIO.parse(self.file.file_path, 'genbank'): if (write_contig != None): ct = str(seq_record.seq) ct_file.write((((('>' + seq_record.name) + '\n') + ct) + '\n')) for feature in seq_record.features: if (feature.type in ['CDS', 'ncRNA']): id = None if (feature_identifier in feature.qualifiers): id = feature.qualifiers[feature_identifier][0] elif ('db_xref' in feature.qualifiers): for f in feature.qualifiers['db_xref']: if f.startswith('RAST2:fig|'): id = f.replace('RAST2:fig|', '') if (id is None): if ('locus_tag' in feature.qualifiers): id = feature.qualifiers['locus_tag'][0] else: id = 'unknown' print(f'{colors.bcolors.YELLOW}WARNING: No {feature_identifier} found for feature with locus_tag {id}{colors.bcolors.END}', file=sys.stderr) else: if return_gene_dict: gene = GENE(id) gene.replicon = seq_record.name gene.parse_gbk_location(feature.location) if ('product' in feature.qualifiers): gene.product = feature.qualifiers['product'] if ('EC_number' in feature.qualifiers): gene.EC_number = feature.qualifiers['EC_number'] if (write_faa != None): if ('translation' in feature.qualifiers): aa = feature.qualifiers['translation'][0] aa_file.write((((('>' + id) + '\n') + aa) + '\n')) if return_gene_dict: gene.aa = aa if (write_nt != None): nt = str(feature.location.extract(seq_record).seq) nt_file.write((((('>' + id) + '\n') + nt) + '\n')) if return_gene_dict: gene.nt = nt if return_gene_dict: gene_dict[id] = gene if (write_contig != None): ct_file.close() if (write_faa != None): aa_file.close() if (write_nt != None): nt_file.close() if return_gene_dict: return gene_dict
self.gbk is a JAKomics FILE
jakomics/genome.py
genbank_to_fasta
jeffkimbrel/jakomics
0
python
def genbank_to_fasta(self, write_contig=None, write_faa=None, write_nt=None, feature_identifier='locus_tag', return_gene_dict=False): '\n \n ' import warnings from Bio import BiopythonWarning warnings.simplefilter('ignore', BiopythonWarning) if (write_contig != None): ct_file = open(write_contig, 'w') if (write_faa != None): aa_file = open(write_faa, 'w') if (write_nt != None): nt_file = open(write_nt, 'w') if return_gene_dict: gene_dict = {} for seq_record in SeqIO.parse(self.file.file_path, 'genbank'): if (write_contig != None): ct = str(seq_record.seq) ct_file.write((((('>' + seq_record.name) + '\n') + ct) + '\n')) for feature in seq_record.features: if (feature.type in ['CDS', 'ncRNA']): id = None if (feature_identifier in feature.qualifiers): id = feature.qualifiers[feature_identifier][0] elif ('db_xref' in feature.qualifiers): for f in feature.qualifiers['db_xref']: if f.startswith('RAST2:fig|'): id = f.replace('RAST2:fig|', ) if (id is None): if ('locus_tag' in feature.qualifiers): id = feature.qualifiers['locus_tag'][0] else: id = 'unknown' print(f'{colors.bcolors.YELLOW}WARNING: No {feature_identifier} found for feature with locus_tag {id}{colors.bcolors.END}', file=sys.stderr) else: if return_gene_dict: gene = GENE(id) gene.replicon = seq_record.name gene.parse_gbk_location(feature.location) if ('product' in feature.qualifiers): gene.product = feature.qualifiers['product'] if ('EC_number' in feature.qualifiers): gene.EC_number = feature.qualifiers['EC_number'] if (write_faa != None): if ('translation' in feature.qualifiers): aa = feature.qualifiers['translation'][0] aa_file.write((((('>' + id) + '\n') + aa) + '\n')) if return_gene_dict: gene.aa = aa if (write_nt != None): nt = str(feature.location.extract(seq_record).seq) nt_file.write((((('>' + id) + '\n') + nt) + '\n')) if return_gene_dict: gene.nt = nt if return_gene_dict: gene_dict[id] = gene if (write_contig != None): ct_file.close() if (write_faa != None): aa_file.close() if (write_nt != None): nt_file.close() if return_gene_dict: return gene_dict
def genbank_to_fasta(self, write_contig=None, write_faa=None, write_nt=None, feature_identifier='locus_tag', return_gene_dict=False): '\n \n ' import warnings from Bio import BiopythonWarning warnings.simplefilter('ignore', BiopythonWarning) if (write_contig != None): ct_file = open(write_contig, 'w') if (write_faa != None): aa_file = open(write_faa, 'w') if (write_nt != None): nt_file = open(write_nt, 'w') if return_gene_dict: gene_dict = {} for seq_record in SeqIO.parse(self.file.file_path, 'genbank'): if (write_contig != None): ct = str(seq_record.seq) ct_file.write((((('>' + seq_record.name) + '\n') + ct) + '\n')) for feature in seq_record.features: if (feature.type in ['CDS', 'ncRNA']): id = None if (feature_identifier in feature.qualifiers): id = feature.qualifiers[feature_identifier][0] elif ('db_xref' in feature.qualifiers): for f in feature.qualifiers['db_xref']: if f.startswith('RAST2:fig|'): id = f.replace('RAST2:fig|', ) if (id is None): if ('locus_tag' in feature.qualifiers): id = feature.qualifiers['locus_tag'][0] else: id = 'unknown' print(f'{colors.bcolors.YELLOW}WARNING: No {feature_identifier} found for feature with locus_tag {id}{colors.bcolors.END}', file=sys.stderr) else: if return_gene_dict: gene = GENE(id) gene.replicon = seq_record.name gene.parse_gbk_location(feature.location) if ('product' in feature.qualifiers): gene.product = feature.qualifiers['product'] if ('EC_number' in feature.qualifiers): gene.EC_number = feature.qualifiers['EC_number'] if (write_faa != None): if ('translation' in feature.qualifiers): aa = feature.qualifiers['translation'][0] aa_file.write((((('>' + id) + '\n') + aa) + '\n')) if return_gene_dict: gene.aa = aa if (write_nt != None): nt = str(feature.location.extract(seq_record).seq) nt_file.write((((('>' + id) + '\n') + nt) + '\n')) if return_gene_dict: gene.nt = nt if return_gene_dict: gene_dict[id] = gene if (write_contig != None): ct_file.close() if (write_faa != None): aa_file.close() if (write_nt != None): nt_file.close() if return_gene_dict: return gene_dict<|docstring|>self.gbk is a JAKomics FILE<|endoftext|>
a180423d1d4b9ccb9e8ce43736bb77bfbfd7d89a825070437224b229cee7c909
def compare(wfun, fin, fout): '\nLists the comparison between the pull of each observable in the NP hypothesis and the SM.\n\n:Arguments:\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file `.yaml` where the ellipsoid is saved.\n - fout\\: Path to the `.tex` file where the comaparison table will be written.\n The observables are ordered by their SM pull, and are shaded in green\n if the NP improves this pull and in red otherwise.\n ' dbf = load(fin) bf = dbf['bf'] w = wfun(bf) gl = SMEFTglob.gl glNP = gl.parameter_point(w) glSM = gl.parameter_point({}, scale=1000) obsSM = glSM.obstable() obsNP = glNP.obstable() obscoll = loadobslist() f = open((fout + '.tex'), 'wt', encoding='utf-8') obsnum = 0 f.write(('\\begin{longtable}{|c|c|c|c|c|}\\hline\n & Observable &\t NP prediction ' + '&\t NP pull & SM pull\\endhead\\hline\n')) for obs in obscoll: if isinstance(obs, list): obs = tuple(obs) NPpull = float(obsNP.loc[([obs], 'pull exp.')]) SMpull = float(obsSM.loc[([obs], 'pull exp.')]) if (NPpull > SMpull): col = int(min(50, (50 * (NPpull - SMpull)))) f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' \cellcolor{{red!{col}}}{texnumber(NPpull, 2)} $ \sigma$ & ') + f'''{texnumber(SMpull, 2)} $ \sigma$ \\ \hline ''')) elif (SMpull > NPpull): col = int(min(50, (50 * (SMpull - NPpull)))) f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' \cellcolor{{green!{col}}}{texnumber(NPpull, 2)} $ \sigma$ & ') + f'''{texnumber(SMpull, 2)} $ \sigma$ \\ \hline ''')) else: f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' {texnumber(NPpull, 2)} $ \sigma$ & {texnumber(SMpull, 2)} ') + '$ \\sigma$ \\\\ \\hline\n')) obsnum += 1 f.write('\\end{longtable}') f.close()
Lists the comparison between the pull of each observable in the NP hypothesis and the SM. :Arguments: - wfun\: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents. - fin\: Path to the file `.yaml` where the ellipsoid is saved. - fout\: Path to the `.tex` file where the comaparison table will be written. The observables are ordered by their SM pull, and are shaded in green if the NP improves this pull and in red otherwise.
SMEFT19/comparepulls.py
compare
Jorge-Alda/SMEFT19
2
python
def compare(wfun, fin, fout): '\nLists the comparison between the pull of each observable in the NP hypothesis and the SM.\n\n:Arguments:\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file `.yaml` where the ellipsoid is saved.\n - fout\\: Path to the `.tex` file where the comaparison table will be written.\n The observables are ordered by their SM pull, and are shaded in green\n if the NP improves this pull and in red otherwise.\n ' dbf = load(fin) bf = dbf['bf'] w = wfun(bf) gl = SMEFTglob.gl glNP = gl.parameter_point(w) glSM = gl.parameter_point({}, scale=1000) obsSM = glSM.obstable() obsNP = glNP.obstable() obscoll = loadobslist() f = open((fout + '.tex'), 'wt', encoding='utf-8') obsnum = 0 f.write(('\\begin{longtable}{|c|c|c|c|c|}\\hline\n & Observable &\t NP prediction ' + '&\t NP pull & SM pull\\endhead\\hline\n')) for obs in obscoll: if isinstance(obs, list): obs = tuple(obs) NPpull = float(obsNP.loc[([obs], 'pull exp.')]) SMpull = float(obsSM.loc[([obs], 'pull exp.')]) if (NPpull > SMpull): col = int(min(50, (50 * (NPpull - SMpull)))) f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' \cellcolor{{red!{col}}}{texnumber(NPpull, 2)} $ \sigma$ & ') + f'{texnumber(SMpull, 2)} $ \sigma$ \\ \hline ')) elif (SMpull > NPpull): col = int(min(50, (50 * (SMpull - NPpull)))) f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' \cellcolor{{green!{col}}}{texnumber(NPpull, 2)} $ \sigma$ & ') + f'{texnumber(SMpull, 2)} $ \sigma$ \\ \hline ')) else: f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' {texnumber(NPpull, 2)} $ \sigma$ & {texnumber(SMpull, 2)} ') + '$ \\sigma$ \\\\ \\hline\n')) obsnum += 1 f.write('\\end{longtable}') f.close()
def compare(wfun, fin, fout): '\nLists the comparison between the pull of each observable in the NP hypothesis and the SM.\n\n:Arguments:\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file `.yaml` where the ellipsoid is saved.\n - fout\\: Path to the `.tex` file where the comaparison table will be written.\n The observables are ordered by their SM pull, and are shaded in green\n if the NP improves this pull and in red otherwise.\n ' dbf = load(fin) bf = dbf['bf'] w = wfun(bf) gl = SMEFTglob.gl glNP = gl.parameter_point(w) glSM = gl.parameter_point({}, scale=1000) obsSM = glSM.obstable() obsNP = glNP.obstable() obscoll = loadobslist() f = open((fout + '.tex'), 'wt', encoding='utf-8') obsnum = 0 f.write(('\\begin{longtable}{|c|c|c|c|c|}\\hline\n & Observable &\t NP prediction ' + '&\t NP pull & SM pull\\endhead\\hline\n')) for obs in obscoll: if isinstance(obs, list): obs = tuple(obs) NPpull = float(obsNP.loc[([obs], 'pull exp.')]) SMpull = float(obsSM.loc[([obs], 'pull exp.')]) if (NPpull > SMpull): col = int(min(50, (50 * (NPpull - SMpull)))) f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' \cellcolor{{red!{col}}}{texnumber(NPpull, 2)} $ \sigma$ & ') + f'{texnumber(SMpull, 2)} $ \sigma$ \\ \hline ')) elif (SMpull > NPpull): col = int(min(50, (50 * (SMpull - NPpull)))) f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' \cellcolor{{green!{col}}}{texnumber(NPpull, 2)} $ \sigma$ & ') + f'{texnumber(SMpull, 2)} $ \sigma$ \\ \hline ')) else: f.write(((f"{obsnum} & {tex(obs)} & {texnumber(obsNP.loc[([obs], 'theory')], 5)} &" + f' {texnumber(NPpull, 2)} $ \sigma$ & {texnumber(SMpull, 2)} ') + '$ \\sigma$ \\\\ \\hline\n')) obsnum += 1 f.write('\\end{longtable}') f.close()<|docstring|>Lists the comparison between the pull of each observable in the NP hypothesis and the SM. :Arguments: - wfun\: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents. - fin\: Path to the file `.yaml` where the ellipsoid is saved. - fout\: Path to the `.tex` file where the comaparison table will be written. The observables are ordered by their SM pull, and are shaded in green if the NP improves this pull and in red otherwise.<|endoftext|>
5600bb514380757db7b39a230e466fabe0a357a22553d513629132b1d5340f35
def pointpull(x, wfun, bf, printlevel=1, numres=5): '\nDetermines the observable whose pull changes the most between two NP hypothesis.\n\n:Arguments:\n - x\\: Point in space parameter of the tested NP hypothesis.\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - bf\\: Point in space parameter of the reference NP hypothesis (e.g. the best fit).\n - [printlevel\\: 0 for silent mode, 1 for verbose mode.]\n - [numres\\: Number of observables displayed. Default=5.]\n\n:Returns:\n - A multi-line string. Each line contains the id number of the observable,\n its name and the squared difference of the pulls.\n ' w = wfun(bf) wx = wfun(x) gl = SMEFTglob.gl glNP = gl.parameter_point(w) glx = gl.parameter_point(wx) obsNP = glNP.obstable() obsx = glx.obstable() obscoll = loadobslist() dicpull = dict() i = 0 for obs in obscoll: pull0 = (float(obsNP.loc[([obs], 'pull exp.')]) * sign(obsNP.loc[([obs], 'theory')], obsNP.loc[([obs], 'experiment')])) pullx = (float(obsx.loc[([obs], 'pull exp.')]) * sign(obsx.loc[([obs], 'theory')], obsx.loc[([obs], 'experiment')])) dicpull[i] = ((pullx - pull0) ** 2) i += 1 sortdict = sorted(dicpull, key=dicpull.get, reverse=True)[0:numres] results = '' for obs in sortdict: results += (((((str(obs) + '\t') + str(obscoll[obs])) + '\t') + str(dicpull[obs])) + '\n') if printlevel: print(results) return results
Determines the observable whose pull changes the most between two NP hypothesis. :Arguments: - x\: Point in space parameter of the tested NP hypothesis. - wfun\: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents. - bf\: Point in space parameter of the reference NP hypothesis (e.g. the best fit). - [printlevel\: 0 for silent mode, 1 for verbose mode.] - [numres\: Number of observables displayed. Default=5.] :Returns: - A multi-line string. Each line contains the id number of the observable, its name and the squared difference of the pulls.
SMEFT19/comparepulls.py
pointpull
Jorge-Alda/SMEFT19
2
python
def pointpull(x, wfun, bf, printlevel=1, numres=5): '\nDetermines the observable whose pull changes the most between two NP hypothesis.\n\n:Arguments:\n - x\\: Point in space parameter of the tested NP hypothesis.\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - bf\\: Point in space parameter of the reference NP hypothesis (e.g. the best fit).\n - [printlevel\\: 0 for silent mode, 1 for verbose mode.]\n - [numres\\: Number of observables displayed. Default=5.]\n\n:Returns:\n - A multi-line string. Each line contains the id number of the observable,\n its name and the squared difference of the pulls.\n ' w = wfun(bf) wx = wfun(x) gl = SMEFTglob.gl glNP = gl.parameter_point(w) glx = gl.parameter_point(wx) obsNP = glNP.obstable() obsx = glx.obstable() obscoll = loadobslist() dicpull = dict() i = 0 for obs in obscoll: pull0 = (float(obsNP.loc[([obs], 'pull exp.')]) * sign(obsNP.loc[([obs], 'theory')], obsNP.loc[([obs], 'experiment')])) pullx = (float(obsx.loc[([obs], 'pull exp.')]) * sign(obsx.loc[([obs], 'theory')], obsx.loc[([obs], 'experiment')])) dicpull[i] = ((pullx - pull0) ** 2) i += 1 sortdict = sorted(dicpull, key=dicpull.get, reverse=True)[0:numres] results = for obs in sortdict: results += (((((str(obs) + '\t') + str(obscoll[obs])) + '\t') + str(dicpull[obs])) + '\n') if printlevel: print(results) return results
def pointpull(x, wfun, bf, printlevel=1, numres=5): '\nDetermines the observable whose pull changes the most between two NP hypothesis.\n\n:Arguments:\n - x\\: Point in space parameter of the tested NP hypothesis.\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - bf\\: Point in space parameter of the reference NP hypothesis (e.g. the best fit).\n - [printlevel\\: 0 for silent mode, 1 for verbose mode.]\n - [numres\\: Number of observables displayed. Default=5.]\n\n:Returns:\n - A multi-line string. Each line contains the id number of the observable,\n its name and the squared difference of the pulls.\n ' w = wfun(bf) wx = wfun(x) gl = SMEFTglob.gl glNP = gl.parameter_point(w) glx = gl.parameter_point(wx) obsNP = glNP.obstable() obsx = glx.obstable() obscoll = loadobslist() dicpull = dict() i = 0 for obs in obscoll: pull0 = (float(obsNP.loc[([obs], 'pull exp.')]) * sign(obsNP.loc[([obs], 'theory')], obsNP.loc[([obs], 'experiment')])) pullx = (float(obsx.loc[([obs], 'pull exp.')]) * sign(obsx.loc[([obs], 'theory')], obsx.loc[([obs], 'experiment')])) dicpull[i] = ((pullx - pull0) ** 2) i += 1 sortdict = sorted(dicpull, key=dicpull.get, reverse=True)[0:numres] results = for obs in sortdict: results += (((((str(obs) + '\t') + str(obscoll[obs])) + '\t') + str(dicpull[obs])) + '\n') if printlevel: print(results) return results<|docstring|>Determines the observable whose pull changes the most between two NP hypothesis. :Arguments: - x\: Point in space parameter of the tested NP hypothesis. - wfun\: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents. - bf\: Point in space parameter of the reference NP hypothesis (e.g. the best fit). - [printlevel\: 0 for silent mode, 1 for verbose mode.] - [numres\: Number of observables displayed. Default=5.] :Returns: - A multi-line string. Each line contains the id number of the observable, its name and the squared difference of the pulls.<|endoftext|>
0f2280e19b53be16c0027a37d74172458342ccdfa692f7c4b12586ecf7b31210
def notablepulls(wfun, fin): '\nDetermines the observables whose pull changes the most between\nthe best fit and the notable points of the ellipsoid.\n\n:Arguments:\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file `.yaml` where the ellipsoid is saved.\n ' dbf = load(fin) bf = dbf['bf'] v = dbf['v'] d = dbf['d'] n = len(bf) p = delta_chi2(1, n) H = ((v @ d) @ v.T) for i in range(0, n): dC = float(np.sqrt((p / H[(i, i)]))) delta = np.zeros(n) delta[i] = dC print((('Operator ' + str((i + 1))) + '+\n**********************\n')) print(pointpull((bf + delta), wfun, bf, 0)) print('\n\n') print((('Operator ' + str((i + 1))) + '-\n**********************\n')) print(pointpull((bf - delta), wfun, bf, 0)) print('\n\n') for i in range(0, n): delta = np.zeros(n) delta[i] = 1 print((('Axis ' + str((i + 1))) + '+\n**********************\n')) print(pointpull(parametrize(delta, bf, v, d), wfun, bf, 0)) print('\n\n') print((('Axis ' + str((i + 1))) + '-\n**********************\n')) print(pointpull(parametrize((- delta), bf, v, d), wfun, bf, 0)) print('\n\n') bfm = np.matrix(bf) dSM = float(np.sqrt((p / ((bfm @ H) @ bfm.T)))) print('SM+\n**********************\n') print(pointpull((bf * (1 + dSM)), wfun, bf, 0)) print('\n\n') print('SM-\n**********************\n') print(pointpull((bf * (1 - dSM)), wfun, bf, 0))
Determines the observables whose pull changes the most between the best fit and the notable points of the ellipsoid. :Arguments: - wfun\: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents. - fin\: Path to the file `.yaml` where the ellipsoid is saved.
SMEFT19/comparepulls.py
notablepulls
Jorge-Alda/SMEFT19
2
python
def notablepulls(wfun, fin): '\nDetermines the observables whose pull changes the most between\nthe best fit and the notable points of the ellipsoid.\n\n:Arguments:\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file `.yaml` where the ellipsoid is saved.\n ' dbf = load(fin) bf = dbf['bf'] v = dbf['v'] d = dbf['d'] n = len(bf) p = delta_chi2(1, n) H = ((v @ d) @ v.T) for i in range(0, n): dC = float(np.sqrt((p / H[(i, i)]))) delta = np.zeros(n) delta[i] = dC print((('Operator ' + str((i + 1))) + '+\n**********************\n')) print(pointpull((bf + delta), wfun, bf, 0)) print('\n\n') print((('Operator ' + str((i + 1))) + '-\n**********************\n')) print(pointpull((bf - delta), wfun, bf, 0)) print('\n\n') for i in range(0, n): delta = np.zeros(n) delta[i] = 1 print((('Axis ' + str((i + 1))) + '+\n**********************\n')) print(pointpull(parametrize(delta, bf, v, d), wfun, bf, 0)) print('\n\n') print((('Axis ' + str((i + 1))) + '-\n**********************\n')) print(pointpull(parametrize((- delta), bf, v, d), wfun, bf, 0)) print('\n\n') bfm = np.matrix(bf) dSM = float(np.sqrt((p / ((bfm @ H) @ bfm.T)))) print('SM+\n**********************\n') print(pointpull((bf * (1 + dSM)), wfun, bf, 0)) print('\n\n') print('SM-\n**********************\n') print(pointpull((bf * (1 - dSM)), wfun, bf, 0))
def notablepulls(wfun, fin): '\nDetermines the observables whose pull changes the most between\nthe best fit and the notable points of the ellipsoid.\n\n:Arguments:\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file `.yaml` where the ellipsoid is saved.\n ' dbf = load(fin) bf = dbf['bf'] v = dbf['v'] d = dbf['d'] n = len(bf) p = delta_chi2(1, n) H = ((v @ d) @ v.T) for i in range(0, n): dC = float(np.sqrt((p / H[(i, i)]))) delta = np.zeros(n) delta[i] = dC print((('Operator ' + str((i + 1))) + '+\n**********************\n')) print(pointpull((bf + delta), wfun, bf, 0)) print('\n\n') print((('Operator ' + str((i + 1))) + '-\n**********************\n')) print(pointpull((bf - delta), wfun, bf, 0)) print('\n\n') for i in range(0, n): delta = np.zeros(n) delta[i] = 1 print((('Axis ' + str((i + 1))) + '+\n**********************\n')) print(pointpull(parametrize(delta, bf, v, d), wfun, bf, 0)) print('\n\n') print((('Axis ' + str((i + 1))) + '-\n**********************\n')) print(pointpull(parametrize((- delta), bf, v, d), wfun, bf, 0)) print('\n\n') bfm = np.matrix(bf) dSM = float(np.sqrt((p / ((bfm @ H) @ bfm.T)))) print('SM+\n**********************\n') print(pointpull((bf * (1 + dSM)), wfun, bf, 0)) print('\n\n') print('SM-\n**********************\n') print(pointpull((bf * (1 - dSM)), wfun, bf, 0))<|docstring|>Determines the observables whose pull changes the most between the best fit and the notable points of the ellipsoid. :Arguments: - wfun\: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents. - fin\: Path to the file `.yaml` where the ellipsoid is saved.<|endoftext|>
84b70bd76cb18124f543a5dd7209bf70bc63c988074f62140bd5eb700c8ced86
def pullevolution(obscode, wfun, fin, direction): "\nCalculates the variation of the pull along a line connecting\ntwo opposite notable points of the ellipsoid.\n\n:Arguments:\n - obscode\\: ID-Number of the observable, as returned by comparepulls.pointpull\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file .yaml where the ellipsoid is saved.\n - direction\\: string with the following format\\:\n\n - 'wc' + str(i)\\: for the i-th Wilson coefficient.\n - 'ax' + str(i)\\: for the i-th principal axis of the ellipsoid.\n - 'sm'\\: for the direction joining the bf and sm points.\n " dbf = load(fin) bf = dbf['bf'] v = dbf['v'] d = dbf['d'] n = len(bf) p = delta_chi2(1, n) H = ((v @ d) @ v.T) pull_list = [] obscoll = loadobslist() obs = obscoll[obscode] for c in np.linspace((- 1), 1, 200): if (direction[:2] == 'wc'): i = (int(direction[2:]) - 1) dC = float(np.sqrt((p / H[(i, i)]))) delta = np.zeros(n) delta[i] = dC point = (bf + (c * delta)) if (direction[:2] == 'ax'): i = (int(direction[2:]) - 1) delta = np.zeros(n) delta[i] = c point = parametrize(delta, bf, v, d) if (direction[:2] == 'sm'): bfm = np.matrix(bf) dSM = float(np.sqrt((p / ((bfm @ H) @ bfm.T)))) point = (bf * (1 + (c * dSM))) pull_list.append(SMEFTglob.pull_obs(point, obs, wfun)) return pull_list
Calculates the variation of the pull along a line connecting two opposite notable points of the ellipsoid. :Arguments: - obscode\: ID-Number of the observable, as returned by comparepulls.pointpull - wfun\: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents. - fin\: Path to the file .yaml where the ellipsoid is saved. - direction\: string with the following format\: - 'wc' + str(i)\: for the i-th Wilson coefficient. - 'ax' + str(i)\: for the i-th principal axis of the ellipsoid. - 'sm'\: for the direction joining the bf and sm points.
SMEFT19/comparepulls.py
pullevolution
Jorge-Alda/SMEFT19
2
python
def pullevolution(obscode, wfun, fin, direction): "\nCalculates the variation of the pull along a line connecting\ntwo opposite notable points of the ellipsoid.\n\n:Arguments:\n - obscode\\: ID-Number of the observable, as returned by comparepulls.pointpull\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file .yaml where the ellipsoid is saved.\n - direction\\: string with the following format\\:\n\n - 'wc' + str(i)\\: for the i-th Wilson coefficient.\n - 'ax' + str(i)\\: for the i-th principal axis of the ellipsoid.\n - 'sm'\\: for the direction joining the bf and sm points.\n " dbf = load(fin) bf = dbf['bf'] v = dbf['v'] d = dbf['d'] n = len(bf) p = delta_chi2(1, n) H = ((v @ d) @ v.T) pull_list = [] obscoll = loadobslist() obs = obscoll[obscode] for c in np.linspace((- 1), 1, 200): if (direction[:2] == 'wc'): i = (int(direction[2:]) - 1) dC = float(np.sqrt((p / H[(i, i)]))) delta = np.zeros(n) delta[i] = dC point = (bf + (c * delta)) if (direction[:2] == 'ax'): i = (int(direction[2:]) - 1) delta = np.zeros(n) delta[i] = c point = parametrize(delta, bf, v, d) if (direction[:2] == 'sm'): bfm = np.matrix(bf) dSM = float(np.sqrt((p / ((bfm @ H) @ bfm.T)))) point = (bf * (1 + (c * dSM))) pull_list.append(SMEFTglob.pull_obs(point, obs, wfun)) return pull_list
def pullevolution(obscode, wfun, fin, direction): "\nCalculates the variation of the pull along a line connecting\ntwo opposite notable points of the ellipsoid.\n\n:Arguments:\n - obscode\\: ID-Number of the observable, as returned by comparepulls.pointpull\n - wfun\\: Function that takes a point in parameter space\n and returns a dictionary of Wilson coefficents.\n - fin\\: Path to the file .yaml where the ellipsoid is saved.\n - direction\\: string with the following format\\:\n\n - 'wc' + str(i)\\: for the i-th Wilson coefficient.\n - 'ax' + str(i)\\: for the i-th principal axis of the ellipsoid.\n - 'sm'\\: for the direction joining the bf and sm points.\n " dbf = load(fin) bf = dbf['bf'] v = dbf['v'] d = dbf['d'] n = len(bf) p = delta_chi2(1, n) H = ((v @ d) @ v.T) pull_list = [] obscoll = loadobslist() obs = obscoll[obscode] for c in np.linspace((- 1), 1, 200): if (direction[:2] == 'wc'): i = (int(direction[2:]) - 1) dC = float(np.sqrt((p / H[(i, i)]))) delta = np.zeros(n) delta[i] = dC point = (bf + (c * delta)) if (direction[:2] == 'ax'): i = (int(direction[2:]) - 1) delta = np.zeros(n) delta[i] = c point = parametrize(delta, bf, v, d) if (direction[:2] == 'sm'): bfm = np.matrix(bf) dSM = float(np.sqrt((p / ((bfm @ H) @ bfm.T)))) point = (bf * (1 + (c * dSM))) pull_list.append(SMEFTglob.pull_obs(point, obs, wfun)) return pull_list<|docstring|>Calculates the variation of the pull along a line connecting two opposite notable points of the ellipsoid. :Arguments: - obscode\: ID-Number of the observable, as returned by comparepulls.pointpull - wfun\: Function that takes a point in parameter space and returns a dictionary of Wilson coefficents. - fin\: Path to the file .yaml where the ellipsoid is saved. - direction\: string with the following format\: - 'wc' + str(i)\: for the i-th Wilson coefficient. - 'ax' + str(i)\: for the i-th principal axis of the ellipsoid. - 'sm'\: for the direction joining the bf and sm points.<|endoftext|>
a2386612cd7ba7bcdf12c45c996f1138d45573d6de28b26192af71bed646f04c
def list_backends(): 'List color backends.' return [b.name.replace('.py', '') for b in os.scandir(os.path.join(MODULE_DIR, 'backends')) if ('__' not in b.name)]
List color backends.
pywal/colors.py
list_backends
micimize/pywal
22
python
def list_backends(): return [b.name.replace('.py', ) for b in os.scandir(os.path.join(MODULE_DIR, 'backends')) if ('__' not in b.name)]
def list_backends(): return [b.name.replace('.py', ) for b in os.scandir(os.path.join(MODULE_DIR, 'backends')) if ('__' not in b.name)]<|docstring|>List color backends.<|endoftext|>
d39388e895d2c686c54bc476a937d2a013c2b98d39807e58e46038ad06e2c540
def colors_to_dict(colors, img): 'Convert list of colors to pywal format.' return {'wallpaper': img, 'alpha': util.Color.alpha_num, 'special': {'background': colors[0], 'foreground': colors[15], 'cursor': colors[15]}, 'colors': {'color0': colors[0], 'color1': colors[1], 'color2': colors[2], 'color3': colors[3], 'color4': colors[4], 'color5': colors[5], 'color6': colors[6], 'color7': colors[7], 'color8': colors[8], 'color9': colors[9], 'color10': colors[10], 'color11': colors[11], 'color12': colors[12], 'color13': colors[13], 'color14': colors[14], 'color15': colors[15]}}
Convert list of colors to pywal format.
pywal/colors.py
colors_to_dict
micimize/pywal
22
python
def colors_to_dict(colors, img): return {'wallpaper': img, 'alpha': util.Color.alpha_num, 'special': {'background': colors[0], 'foreground': colors[15], 'cursor': colors[15]}, 'colors': {'color0': colors[0], 'color1': colors[1], 'color2': colors[2], 'color3': colors[3], 'color4': colors[4], 'color5': colors[5], 'color6': colors[6], 'color7': colors[7], 'color8': colors[8], 'color9': colors[9], 'color10': colors[10], 'color11': colors[11], 'color12': colors[12], 'color13': colors[13], 'color14': colors[14], 'color15': colors[15]}}
def colors_to_dict(colors, img): return {'wallpaper': img, 'alpha': util.Color.alpha_num, 'special': {'background': colors[0], 'foreground': colors[15], 'cursor': colors[15]}, 'colors': {'color0': colors[0], 'color1': colors[1], 'color2': colors[2], 'color3': colors[3], 'color4': colors[4], 'color5': colors[5], 'color6': colors[6], 'color7': colors[7], 'color8': colors[8], 'color9': colors[9], 'color10': colors[10], 'color11': colors[11], 'color12': colors[12], 'color13': colors[13], 'color14': colors[14], 'color15': colors[15]}}<|docstring|>Convert list of colors to pywal format.<|endoftext|>
e560d07400167e03a88361600e8cd4f2f3c6373189f145723e69cec7fbb863ba
def generic_adjust(colors, light, nine): 'Generic color adjustment for themers.' if light: for color in colors: color = util.saturate_color(color, 0.6) color = util.darken_color(color, 0.5) if nine: colors[0] = util.lighten_color(colors[0], 0.95) colors[7] = util.darken_color(colors[0], 0.75) colors[8] = util.darken_color(colors[0], 0.25) colors[15] = colors[7] else: colors[0] = util.lighten_color(colors[0], 0.75) colors[7] = util.darken_color(colors[0], 0.5) colors[8] = util.darken_color(colors[0], 0.25) colors[1] = util.darken_color(colors[1], 0.25) colors[2] = util.darken_color(colors[2], 0.25) colors[3] = util.darken_color(colors[3], 0.25) colors[4] = util.darken_color(colors[4], 0.25) colors[5] = util.darken_color(colors[5], 0.25) colors[6] = util.darken_color(colors[6], 0.25) colors[15] = util.darken_color(colors[0], 0.75) elif nine: colors[0] = util.darken_color(colors[0], 0.8) colors[7] = util.lighten_color(colors[0], 0.75) colors[8] = util.lighten_color(colors[0], 0.25) colors[15] = colors[7] else: colors[0] = util.darken_color(colors[0], 0.75) colors[7] = util.lighten_color(colors[0], 0.5) colors[8] = util.lighten_color(colors[0], 0.25) colors[1] = util.darken_color(colors[1], 0.25) colors[2] = util.darken_color(colors[2], 0.25) colors[3] = util.darken_color(colors[3], 0.25) colors[4] = util.darken_color(colors[4], 0.25) colors[5] = util.darken_color(colors[5], 0.25) colors[6] = util.darken_color(colors[6], 0.25) colors[15] = util.lighten_color(colors[0], 0.75) return colors
Generic color adjustment for themers.
pywal/colors.py
generic_adjust
micimize/pywal
22
python
def generic_adjust(colors, light, nine): if light: for color in colors: color = util.saturate_color(color, 0.6) color = util.darken_color(color, 0.5) if nine: colors[0] = util.lighten_color(colors[0], 0.95) colors[7] = util.darken_color(colors[0], 0.75) colors[8] = util.darken_color(colors[0], 0.25) colors[15] = colors[7] else: colors[0] = util.lighten_color(colors[0], 0.75) colors[7] = util.darken_color(colors[0], 0.5) colors[8] = util.darken_color(colors[0], 0.25) colors[1] = util.darken_color(colors[1], 0.25) colors[2] = util.darken_color(colors[2], 0.25) colors[3] = util.darken_color(colors[3], 0.25) colors[4] = util.darken_color(colors[4], 0.25) colors[5] = util.darken_color(colors[5], 0.25) colors[6] = util.darken_color(colors[6], 0.25) colors[15] = util.darken_color(colors[0], 0.75) elif nine: colors[0] = util.darken_color(colors[0], 0.8) colors[7] = util.lighten_color(colors[0], 0.75) colors[8] = util.lighten_color(colors[0], 0.25) colors[15] = colors[7] else: colors[0] = util.darken_color(colors[0], 0.75) colors[7] = util.lighten_color(colors[0], 0.5) colors[8] = util.lighten_color(colors[0], 0.25) colors[1] = util.darken_color(colors[1], 0.25) colors[2] = util.darken_color(colors[2], 0.25) colors[3] = util.darken_color(colors[3], 0.25) colors[4] = util.darken_color(colors[4], 0.25) colors[5] = util.darken_color(colors[5], 0.25) colors[6] = util.darken_color(colors[6], 0.25) colors[15] = util.lighten_color(colors[0], 0.75) return colors
def generic_adjust(colors, light, nine): if light: for color in colors: color = util.saturate_color(color, 0.6) color = util.darken_color(color, 0.5) if nine: colors[0] = util.lighten_color(colors[0], 0.95) colors[7] = util.darken_color(colors[0], 0.75) colors[8] = util.darken_color(colors[0], 0.25) colors[15] = colors[7] else: colors[0] = util.lighten_color(colors[0], 0.75) colors[7] = util.darken_color(colors[0], 0.5) colors[8] = util.darken_color(colors[0], 0.25) colors[1] = util.darken_color(colors[1], 0.25) colors[2] = util.darken_color(colors[2], 0.25) colors[3] = util.darken_color(colors[3], 0.25) colors[4] = util.darken_color(colors[4], 0.25) colors[5] = util.darken_color(colors[5], 0.25) colors[6] = util.darken_color(colors[6], 0.25) colors[15] = util.darken_color(colors[0], 0.75) elif nine: colors[0] = util.darken_color(colors[0], 0.8) colors[7] = util.lighten_color(colors[0], 0.75) colors[8] = util.lighten_color(colors[0], 0.25) colors[15] = colors[7] else: colors[0] = util.darken_color(colors[0], 0.75) colors[7] = util.lighten_color(colors[0], 0.5) colors[8] = util.lighten_color(colors[0], 0.25) colors[1] = util.darken_color(colors[1], 0.25) colors[2] = util.darken_color(colors[2], 0.25) colors[3] = util.darken_color(colors[3], 0.25) colors[4] = util.darken_color(colors[4], 0.25) colors[5] = util.darken_color(colors[5], 0.25) colors[6] = util.darken_color(colors[6], 0.25) colors[15] = util.lighten_color(colors[0], 0.75) return colors<|docstring|>Generic color adjustment for themers.<|endoftext|>
6c46f3646ede3c28bd497f0797628d6a522ab4ee5c0461f5041b67e571313b30
def saturate_colors(colors, amount): 'Saturate all colors.' if (amount and (float(amount) <= 1.0)): for (i, _) in enumerate(colors): if (i not in [0, 7, 8, 15]): colors[i] = util.saturate_color(colors[i], float(amount)) return colors
Saturate all colors.
pywal/colors.py
saturate_colors
micimize/pywal
22
python
def saturate_colors(colors, amount): if (amount and (float(amount) <= 1.0)): for (i, _) in enumerate(colors): if (i not in [0, 7, 8, 15]): colors[i] = util.saturate_color(colors[i], float(amount)) return colors
def saturate_colors(colors, amount): if (amount and (float(amount) <= 1.0)): for (i, _) in enumerate(colors): if (i not in [0, 7, 8, 15]): colors[i] = util.saturate_color(colors[i], float(amount)) return colors<|docstring|>Saturate all colors.<|endoftext|>
80bf164a4c8cb79012322b3968b1db3c4da240dc99fce03c72e9ef6ec35d2a04
def cache_fname(img, backend, nine, light, cache_dir, sat=''): 'Create the cache file name.' color_type = ('light' if light else 'dark') color_num = ('9' if nine else '16') file_name = re.sub('[/|\\|.]', '_', img) file_size = os.path.getsize(img) file_parts = [file_name, color_num, color_type, backend, sat, file_size, __cache_version__] return [cache_dir, 'schemes', ('%s_%s_%s_%s_%s_%s_%s.json' % (*file_parts,))]
Create the cache file name.
pywal/colors.py
cache_fname
micimize/pywal
22
python
def cache_fname(img, backend, nine, light, cache_dir, sat=): color_type = ('light' if light else 'dark') color_num = ('9' if nine else '16') file_name = re.sub('[/|\\|.]', '_', img) file_size = os.path.getsize(img) file_parts = [file_name, color_num, color_type, backend, sat, file_size, __cache_version__] return [cache_dir, 'schemes', ('%s_%s_%s_%s_%s_%s_%s.json' % (*file_parts,))]
def cache_fname(img, backend, nine, light, cache_dir, sat=): color_type = ('light' if light else 'dark') color_num = ('9' if nine else '16') file_name = re.sub('[/|\\|.]', '_', img) file_size = os.path.getsize(img) file_parts = [file_name, color_num, color_type, backend, sat, file_size, __cache_version__] return [cache_dir, 'schemes', ('%s_%s_%s_%s_%s_%s_%s.json' % (*file_parts,))]<|docstring|>Create the cache file name.<|endoftext|>
d3aece395087e904fd2b9ed9326a83429731f4da65670ff542473b6a801140dc
def get_backend(backend): 'Figure out which backend to use.' if (backend == 'random'): backends = list_backends() random.shuffle(backends) return backends[0] return backend
Figure out which backend to use.
pywal/colors.py
get_backend
micimize/pywal
22
python
def get_backend(backend): if (backend == 'random'): backends = list_backends() random.shuffle(backends) return backends[0] return backend
def get_backend(backend): if (backend == 'random'): backends = list_backends() random.shuffle(backends) return backends[0] return backend<|docstring|>Figure out which backend to use.<|endoftext|>
8bf249948557af894cd6778d77be1f0d0039b6ff323c120fdd48eeb5dad82b7c
def palette(): 'Generate a palette from the colors.' for i in range(0, 16): if ((i % 8) == 0): print() if (i > 7): i = ('8;5;%s' % i) print(('\x1b[4%sm%s\x1b[0m' % (i, (' ' * (80 // 20)))), end='') print('\n')
Generate a palette from the colors.
pywal/colors.py
palette
micimize/pywal
22
python
def palette(): for i in range(0, 16): if ((i % 8) == 0): print() if (i > 7): i = ('8;5;%s' % i) print(('\x1b[4%sm%s\x1b[0m' % (i, (' ' * (80 // 20)))), end=) print('\n')
def palette(): for i in range(0, 16): if ((i % 8) == 0): print() if (i > 7): i = ('8;5;%s' % i) print(('\x1b[4%sm%s\x1b[0m' % (i, (' ' * (80 // 20)))), end=) print('\n')<|docstring|>Generate a palette from the colors.<|endoftext|>
3ac61be375cb535ecfd3820bb6273580b1f3273b2d5e3c9bdbe19c55e90bb29c
def get(img, light=False, nine=False, backend='wal', cache_dir=CACHE_DIR, sat=''): 'Generate a palette.' cache_name = cache_fname(img, backend, nine, light, cache_dir, sat) cache_file = os.path.join(*cache_name) if os.path.isfile(cache_file): colors = theme.file(cache_file) colors['alpha'] = util.Color.alpha_num logging.info('Found cached colorscheme.') else: logging.info('Generating a colorscheme.') backend = get_backend(backend) try: __import__(('pywal.backends.%s' % backend)) except ImportError: __import__('pywal.backends.wal') backend = 'wal' logging.info('Using %s backend.', backend) backend = sys.modules[('pywal.backends.%s' % backend)] colors = getattr(backend, 'get')(img, light, nine) colors = colors_to_dict(saturate_colors(colors, sat), img) util.save_file_json(colors, cache_file) logging.info('Generation complete.') return colors
Generate a palette.
pywal/colors.py
get
micimize/pywal
22
python
def get(img, light=False, nine=False, backend='wal', cache_dir=CACHE_DIR, sat=): cache_name = cache_fname(img, backend, nine, light, cache_dir, sat) cache_file = os.path.join(*cache_name) if os.path.isfile(cache_file): colors = theme.file(cache_file) colors['alpha'] = util.Color.alpha_num logging.info('Found cached colorscheme.') else: logging.info('Generating a colorscheme.') backend = get_backend(backend) try: __import__(('pywal.backends.%s' % backend)) except ImportError: __import__('pywal.backends.wal') backend = 'wal' logging.info('Using %s backend.', backend) backend = sys.modules[('pywal.backends.%s' % backend)] colors = getattr(backend, 'get')(img, light, nine) colors = colors_to_dict(saturate_colors(colors, sat), img) util.save_file_json(colors, cache_file) logging.info('Generation complete.') return colors
def get(img, light=False, nine=False, backend='wal', cache_dir=CACHE_DIR, sat=): cache_name = cache_fname(img, backend, nine, light, cache_dir, sat) cache_file = os.path.join(*cache_name) if os.path.isfile(cache_file): colors = theme.file(cache_file) colors['alpha'] = util.Color.alpha_num logging.info('Found cached colorscheme.') else: logging.info('Generating a colorscheme.') backend = get_backend(backend) try: __import__(('pywal.backends.%s' % backend)) except ImportError: __import__('pywal.backends.wal') backend = 'wal' logging.info('Using %s backend.', backend) backend = sys.modules[('pywal.backends.%s' % backend)] colors = getattr(backend, 'get')(img, light, nine) colors = colors_to_dict(saturate_colors(colors, sat), img) util.save_file_json(colors, cache_file) logging.info('Generation complete.') return colors<|docstring|>Generate a palette.<|endoftext|>
c623fd15347be5d26b83267c17f3d3991ae7f680bf5b071b74def6c6d1111365
def file(input_file): 'Deprecated: symbolic link to --> theme.file' return theme.file(input_file)
Deprecated: symbolic link to --> theme.file
pywal/colors.py
file
micimize/pywal
22
python
def file(input_file): return theme.file(input_file)
def file(input_file): return theme.file(input_file)<|docstring|>Deprecated: symbolic link to --> theme.file<|endoftext|>
048c32f366f10bb21e3735985ffbd49701476aab655f6e07b36136812147d76e
def get_work_dir(): 'Return work directory for Syzkaller.' return os.path.join(environment.get_value('FUZZ_INPUTS_DISK'), 'syzkaller')
Return work directory for Syzkaller.
src/python/bot/fuzzers/syzkaller/runner.py
get_work_dir
temp1337temp1337/clusterfuzz
1
python
def get_work_dir(): return os.path.join(environment.get_value('FUZZ_INPUTS_DISK'), 'syzkaller')
def get_work_dir(): return os.path.join(environment.get_value('FUZZ_INPUTS_DISK'), 'syzkaller')<|docstring|>Return work directory for Syzkaller.<|endoftext|>
c552f6673ed5f40a2b5c107a8509fd12cb493e705a89f373ed4860d43b35c923
def get_config(): 'Get arguments for a given fuzz target.' device_serial = environment.get_value('ANDROID_SERIAL') build_dir = environment.get_value('BUILD_DIR') temp_dir = fuzzer_utils.get_temp_dir() binary_path = os.path.join(build_dir, 'syzkaller') json_config_path = os.path.join(temp_dir, 'config.json') default_vmlinux_path = os.path.join('/tmp', device_serial, 'vmlinux') vmlinux_path = environment.get_value('VMLINUX_PATH', default_vmlinux_path) syzhub_address = environment.get_value('SYZHUB_ADDRESS') syzhub_client = environment.get_value('SYZHUB_CLIENT') syzhub_key = environment.get_value('SYZHUB_KEY') config.generate(serial=device_serial, work_dir_path=get_work_dir(), binary_path=binary_path, vmlinux_path=vmlinux_path, config_path=json_config_path, kcov=True, reproduce=False, syzhub_address=syzhub_address, syzhub_client=syzhub_client, syzhub_key=syzhub_key) return ['-config', json_config_path]
Get arguments for a given fuzz target.
src/python/bot/fuzzers/syzkaller/runner.py
get_config
temp1337temp1337/clusterfuzz
1
python
def get_config(): device_serial = environment.get_value('ANDROID_SERIAL') build_dir = environment.get_value('BUILD_DIR') temp_dir = fuzzer_utils.get_temp_dir() binary_path = os.path.join(build_dir, 'syzkaller') json_config_path = os.path.join(temp_dir, 'config.json') default_vmlinux_path = os.path.join('/tmp', device_serial, 'vmlinux') vmlinux_path = environment.get_value('VMLINUX_PATH', default_vmlinux_path) syzhub_address = environment.get_value('SYZHUB_ADDRESS') syzhub_client = environment.get_value('SYZHUB_CLIENT') syzhub_key = environment.get_value('SYZHUB_KEY') config.generate(serial=device_serial, work_dir_path=get_work_dir(), binary_path=binary_path, vmlinux_path=vmlinux_path, config_path=json_config_path, kcov=True, reproduce=False, syzhub_address=syzhub_address, syzhub_client=syzhub_client, syzhub_key=syzhub_key) return ['-config', json_config_path]
def get_config(): device_serial = environment.get_value('ANDROID_SERIAL') build_dir = environment.get_value('BUILD_DIR') temp_dir = fuzzer_utils.get_temp_dir() binary_path = os.path.join(build_dir, 'syzkaller') json_config_path = os.path.join(temp_dir, 'config.json') default_vmlinux_path = os.path.join('/tmp', device_serial, 'vmlinux') vmlinux_path = environment.get_value('VMLINUX_PATH', default_vmlinux_path) syzhub_address = environment.get_value('SYZHUB_ADDRESS') syzhub_client = environment.get_value('SYZHUB_CLIENT') syzhub_key = environment.get_value('SYZHUB_KEY') config.generate(serial=device_serial, work_dir_path=get_work_dir(), binary_path=binary_path, vmlinux_path=vmlinux_path, config_path=json_config_path, kcov=True, reproduce=False, syzhub_address=syzhub_address, syzhub_client=syzhub_client, syzhub_key=syzhub_key) return ['-config', json_config_path]<|docstring|>Get arguments for a given fuzz target.<|endoftext|>
1305572e5aef540914c373ac618d672e5b235d136e177a923f72adb35b552f83
def get_cover_file_path(): 'Return location of coverage file for Syzkaller.' return os.path.join(get_work_dir(), 'coverfile')
Return location of coverage file for Syzkaller.
src/python/bot/fuzzers/syzkaller/runner.py
get_cover_file_path
temp1337temp1337/clusterfuzz
1
python
def get_cover_file_path(): return os.path.join(get_work_dir(), 'coverfile')
def get_cover_file_path(): return os.path.join(get_work_dir(), 'coverfile')<|docstring|>Return location of coverage file for Syzkaller.<|endoftext|>
f164c56d66417a485734f5680aba258fe2426763b9a88febc121be69823d61ee
def get_runner(fuzzer_path): 'Return a syzkaller runner object.' return AndroidSyzkallerRunner(fuzzer_path)
Return a syzkaller runner object.
src/python/bot/fuzzers/syzkaller/runner.py
get_runner
temp1337temp1337/clusterfuzz
1
python
def get_runner(fuzzer_path): return AndroidSyzkallerRunner(fuzzer_path)
def get_runner(fuzzer_path): return AndroidSyzkallerRunner(fuzzer_path)<|docstring|>Return a syzkaller runner object.<|endoftext|>
97dad0130a2dc68a8a96a37f39f9a27be396f5d47600edf6a15e766349ea906f
def _upload_kernel_coverage_data(kcov_path, kernel_bid): 'Upload kcov data to a cloud storage bucket.' bucket_name = local_config.ProjectConfig().get('coverage.reports.bucket') if (not bucket_name): return formatted_date = str(utils.utcnow().date().isoformat()) identifier = (environment.get_value('BOT_NAME') + str(utils.utcnow().isoformat())) gcs_url = f'gs://{bucket_name}/syzkaller/{formatted_date}/{kernel_bid}/{identifier}' if storage.copy_file_to(kcov_path, gcs_url): logs.log(f'Copied kcov data to {gcs_url}.')
Upload kcov data to a cloud storage bucket.
src/python/bot/fuzzers/syzkaller/runner.py
_upload_kernel_coverage_data
temp1337temp1337/clusterfuzz
1
python
def _upload_kernel_coverage_data(kcov_path, kernel_bid): bucket_name = local_config.ProjectConfig().get('coverage.reports.bucket') if (not bucket_name): return formatted_date = str(utils.utcnow().date().isoformat()) identifier = (environment.get_value('BOT_NAME') + str(utils.utcnow().isoformat())) gcs_url = f'gs://{bucket_name}/syzkaller/{formatted_date}/{kernel_bid}/{identifier}' if storage.copy_file_to(kcov_path, gcs_url): logs.log(f'Copied kcov data to {gcs_url}.')
def _upload_kernel_coverage_data(kcov_path, kernel_bid): bucket_name = local_config.ProjectConfig().get('coverage.reports.bucket') if (not bucket_name): return formatted_date = str(utils.utcnow().date().isoformat()) identifier = (environment.get_value('BOT_NAME') + str(utils.utcnow().isoformat())) gcs_url = f'gs://{bucket_name}/syzkaller/{formatted_date}/{kernel_bid}/{identifier}' if storage.copy_file_to(kcov_path, gcs_url): logs.log(f'Copied kcov data to {gcs_url}.')<|docstring|>Upload kcov data to a cloud storage bucket.<|endoftext|>
a93317e9b79bc16e23e95a3a3d13ff4d75ccdd190ffc8e952df53c1937418ff3
def __init__(self, executable_path): 'Inits the AndroidSyzkallerRunner.\n\n Args:\n executable_path: Path to the fuzzer executable.\n default_args: Default arguments to always pass to the fuzzer.\n ' super().__init__(executable_path=executable_path)
Inits the AndroidSyzkallerRunner. Args: executable_path: Path to the fuzzer executable. default_args: Default arguments to always pass to the fuzzer.
src/python/bot/fuzzers/syzkaller/runner.py
__init__
temp1337temp1337/clusterfuzz
1
python
def __init__(self, executable_path): 'Inits the AndroidSyzkallerRunner.\n\n Args:\n executable_path: Path to the fuzzer executable.\n default_args: Default arguments to always pass to the fuzzer.\n ' super().__init__(executable_path=executable_path)
def __init__(self, executable_path): 'Inits the AndroidSyzkallerRunner.\n\n Args:\n executable_path: Path to the fuzzer executable.\n default_args: Default arguments to always pass to the fuzzer.\n ' super().__init__(executable_path=executable_path)<|docstring|>Inits the AndroidSyzkallerRunner. Args: executable_path: Path to the fuzzer executable. default_args: Default arguments to always pass to the fuzzer.<|endoftext|>
8eadc3c9d0ccd35eb798fb93eec73e278f6054107c8af8c5cc825ff990f50385
def get_command(self, additional_args=None): 'Process.get_command override.' base_command = super().get_command(additional_args=additional_args) return base_command
Process.get_command override.
src/python/bot/fuzzers/syzkaller/runner.py
get_command
temp1337temp1337/clusterfuzz
1
python
def get_command(self, additional_args=None): base_command = super().get_command(additional_args=additional_args) return base_command
def get_command(self, additional_args=None): base_command = super().get_command(additional_args=additional_args) return base_command<|docstring|>Process.get_command override.<|endoftext|>
9edae31ccd0fb573311c7ed1798e1f6962c3b0b8ede0bb726aa06c7d0709851b
def _create_empty_testcase_file(self): 'Create an empty testcase file in temporary directory.' (_, path) = tempfile.mkstemp(dir=fuzzer_utils.get_temp_dir()) return path
Create an empty testcase file in temporary directory.
src/python/bot/fuzzers/syzkaller/runner.py
_create_empty_testcase_file
temp1337temp1337/clusterfuzz
1
python
def _create_empty_testcase_file(self): (_, path) = tempfile.mkstemp(dir=fuzzer_utils.get_temp_dir()) return path
def _create_empty_testcase_file(self): (_, path) = tempfile.mkstemp(dir=fuzzer_utils.get_temp_dir()) return path<|docstring|>Create an empty testcase file in temporary directory.<|endoftext|>
6389c1af1f0c2a3321d040d70c29627cc1b589a68ea695484841eda495dc8358
def repro(self, repro_timeout, repro_args): "This is where crash repro'ing is done.\n Args:\n repro_timeout: The maximum time in seconds that repro job is allowed\n to run for.\n repro_args: A sequence of arguments to be passed to the executable.\n " logs.log('Running Syzkaller testcase.') additional_args = copy.copy(repro_args) result = self.run_and_wait(additional_args, timeout=repro_timeout) result.return_code = self._crash_was_reproducible(result.output) if result.return_code: logs.log('Successfully reproduced crash.') else: logs.log('Failed to reproduce crash.') logs.log('Syzkaller repro testcase stopped.') return engine.ReproduceResult(result.command, result.return_code, result.time_executed, result.output)
This is where crash repro'ing is done. Args: repro_timeout: The maximum time in seconds that repro job is allowed to run for. repro_args: A sequence of arguments to be passed to the executable.
src/python/bot/fuzzers/syzkaller/runner.py
repro
temp1337temp1337/clusterfuzz
1
python
def repro(self, repro_timeout, repro_args): "This is where crash repro'ing is done.\n Args:\n repro_timeout: The maximum time in seconds that repro job is allowed\n to run for.\n repro_args: A sequence of arguments to be passed to the executable.\n " logs.log('Running Syzkaller testcase.') additional_args = copy.copy(repro_args) result = self.run_and_wait(additional_args, timeout=repro_timeout) result.return_code = self._crash_was_reproducible(result.output) if result.return_code: logs.log('Successfully reproduced crash.') else: logs.log('Failed to reproduce crash.') logs.log('Syzkaller repro testcase stopped.') return engine.ReproduceResult(result.command, result.return_code, result.time_executed, result.output)
def repro(self, repro_timeout, repro_args): "This is where crash repro'ing is done.\n Args:\n repro_timeout: The maximum time in seconds that repro job is allowed\n to run for.\n repro_args: A sequence of arguments to be passed to the executable.\n " logs.log('Running Syzkaller testcase.') additional_args = copy.copy(repro_args) result = self.run_and_wait(additional_args, timeout=repro_timeout) result.return_code = self._crash_was_reproducible(result.output) if result.return_code: logs.log('Successfully reproduced crash.') else: logs.log('Failed to reproduce crash.') logs.log('Syzkaller repro testcase stopped.') return engine.ReproduceResult(result.command, result.return_code, result.time_executed, result.output)<|docstring|>This is where crash repro'ing is done. Args: repro_timeout: The maximum time in seconds that repro job is allowed to run for. repro_args: A sequence of arguments to be passed to the executable.<|endoftext|>
3b76449bac270d85ff7f26c88b4a4786bab4967119cea8265dbd56cb7d30e317
def fuzz(self, fuzz_timeout, additional_args, unused_additional_args=None, unused_extra_env=None): 'This is where actual syzkaller fuzzing is done.\n Args:\n fuzz_timeout: The maximum time in seconds that fuzz job is allowed\n to run for.\n additional_args: A sequence of additional arguments to be passed to\n the executable.\n ' def _filter_log(content): 'Filter unneeded content from log.' result = '' strip_regex = re.compile('^c\\d+\\s+\\d+\\s') for line in content.splitlines(): result += (strip_regex.sub('', line) + '\n') return result logs.log('Running Syzkaller.') additional_args = copy.copy(additional_args) (_, kernel_bid) = kernel_utils.get_kernel_hash_and_build_id() fuzz_result = self.run_and_wait(additional_args, timeout=fuzz_timeout) logs.log('Syzkaller stopped, fuzzing timed out: {}'.format(fuzz_result.time_executed)) fuzz_logs = ((fuzz_result.output or '') + '\n') crashes = [] parsed_stats = {} visited = set() for (subdir, _, files) in os.walk(get_work_dir()): for file in files: unique_crash = os.path.join(subdir, file) if (fnmatch.fnmatch(file, 'report*') and (unique_crash not in visited)): visited.add(unique_crash) log_content = _filter_log(utils.read_data_from_file(os.path.join(subdir, file), eval_data=False).decode('utf-8')) fuzz_logs += (log_content + '\n') crash_testcase_file_path = os.path.join(subdir, ('log' + file[len('report'):])) if crash_testcase_file_path: reproduce_arguments = [unique_crash] actual_duration = int(fuzz_result.time_executed) crashes.append(engine.Crash(crash_testcase_file_path, log_content, reproduce_arguments, actual_duration)) _upload_kernel_coverage_data(get_cover_file_path(), kernel_bid) return engine.FuzzResult(fuzz_logs, fuzz_result.command, crashes, parsed_stats, fuzz_result.time_executed)
This is where actual syzkaller fuzzing is done. Args: fuzz_timeout: The maximum time in seconds that fuzz job is allowed to run for. additional_args: A sequence of additional arguments to be passed to the executable.
src/python/bot/fuzzers/syzkaller/runner.py
fuzz
temp1337temp1337/clusterfuzz
1
python
def fuzz(self, fuzz_timeout, additional_args, unused_additional_args=None, unused_extra_env=None): 'This is where actual syzkaller fuzzing is done.\n Args:\n fuzz_timeout: The maximum time in seconds that fuzz job is allowed\n to run for.\n additional_args: A sequence of additional arguments to be passed to\n the executable.\n ' def _filter_log(content): 'Filter unneeded content from log.' result = strip_regex = re.compile('^c\\d+\\s+\\d+\\s') for line in content.splitlines(): result += (strip_regex.sub(, line) + '\n') return result logs.log('Running Syzkaller.') additional_args = copy.copy(additional_args) (_, kernel_bid) = kernel_utils.get_kernel_hash_and_build_id() fuzz_result = self.run_and_wait(additional_args, timeout=fuzz_timeout) logs.log('Syzkaller stopped, fuzzing timed out: {}'.format(fuzz_result.time_executed)) fuzz_logs = ((fuzz_result.output or ) + '\n') crashes = [] parsed_stats = {} visited = set() for (subdir, _, files) in os.walk(get_work_dir()): for file in files: unique_crash = os.path.join(subdir, file) if (fnmatch.fnmatch(file, 'report*') and (unique_crash not in visited)): visited.add(unique_crash) log_content = _filter_log(utils.read_data_from_file(os.path.join(subdir, file), eval_data=False).decode('utf-8')) fuzz_logs += (log_content + '\n') crash_testcase_file_path = os.path.join(subdir, ('log' + file[len('report'):])) if crash_testcase_file_path: reproduce_arguments = [unique_crash] actual_duration = int(fuzz_result.time_executed) crashes.append(engine.Crash(crash_testcase_file_path, log_content, reproduce_arguments, actual_duration)) _upload_kernel_coverage_data(get_cover_file_path(), kernel_bid) return engine.FuzzResult(fuzz_logs, fuzz_result.command, crashes, parsed_stats, fuzz_result.time_executed)
def fuzz(self, fuzz_timeout, additional_args, unused_additional_args=None, unused_extra_env=None): 'This is where actual syzkaller fuzzing is done.\n Args:\n fuzz_timeout: The maximum time in seconds that fuzz job is allowed\n to run for.\n additional_args: A sequence of additional arguments to be passed to\n the executable.\n ' def _filter_log(content): 'Filter unneeded content from log.' result = strip_regex = re.compile('^c\\d+\\s+\\d+\\s') for line in content.splitlines(): result += (strip_regex.sub(, line) + '\n') return result logs.log('Running Syzkaller.') additional_args = copy.copy(additional_args) (_, kernel_bid) = kernel_utils.get_kernel_hash_and_build_id() fuzz_result = self.run_and_wait(additional_args, timeout=fuzz_timeout) logs.log('Syzkaller stopped, fuzzing timed out: {}'.format(fuzz_result.time_executed)) fuzz_logs = ((fuzz_result.output or ) + '\n') crashes = [] parsed_stats = {} visited = set() for (subdir, _, files) in os.walk(get_work_dir()): for file in files: unique_crash = os.path.join(subdir, file) if (fnmatch.fnmatch(file, 'report*') and (unique_crash not in visited)): visited.add(unique_crash) log_content = _filter_log(utils.read_data_from_file(os.path.join(subdir, file), eval_data=False).decode('utf-8')) fuzz_logs += (log_content + '\n') crash_testcase_file_path = os.path.join(subdir, ('log' + file[len('report'):])) if crash_testcase_file_path: reproduce_arguments = [unique_crash] actual_duration = int(fuzz_result.time_executed) crashes.append(engine.Crash(crash_testcase_file_path, log_content, reproduce_arguments, actual_duration)) _upload_kernel_coverage_data(get_cover_file_path(), kernel_bid) return engine.FuzzResult(fuzz_logs, fuzz_result.command, crashes, parsed_stats, fuzz_result.time_executed)<|docstring|>This is where actual syzkaller fuzzing is done. Args: fuzz_timeout: The maximum time in seconds that fuzz job is allowed to run for. additional_args: A sequence of additional arguments to be passed to the executable.<|endoftext|>
46c2d07fe5905b249a3b2f8f1b7786425d99b4ba444dda866a0e47cd18504acd
def _filter_log(content): 'Filter unneeded content from log.' result = '' strip_regex = re.compile('^c\\d+\\s+\\d+\\s') for line in content.splitlines(): result += (strip_regex.sub('', line) + '\n') return result
Filter unneeded content from log.
src/python/bot/fuzzers/syzkaller/runner.py
_filter_log
temp1337temp1337/clusterfuzz
1
python
def _filter_log(content): result = strip_regex = re.compile('^c\\d+\\s+\\d+\\s') for line in content.splitlines(): result += (strip_regex.sub(, line) + '\n') return result
def _filter_log(content): result = strip_regex = re.compile('^c\\d+\\s+\\d+\\s') for line in content.splitlines(): result += (strip_regex.sub(, line) + '\n') return result<|docstring|>Filter unneeded content from log.<|endoftext|>
570b4297ab71bdc9907499c99f33a6cf16fc3e7a4ed9facce4d4e80dbc4d36b4
def getBaseAppName(): 'Base App name, which this script belongs to.\n ' appName = util.get_appname_from_path(__file__) if (appName is None): raise Exception(('Cannot get app name from file: %s' % __file__)) return appName
Base App name, which this script belongs to.
splunktaucclib/rest_handler/util.py
getBaseAppName
JasonConger/addonfactory-ucc-library
11
python
def getBaseAppName(): '\n ' appName = util.get_appname_from_path(__file__) if (appName is None): raise Exception(('Cannot get app name from file: %s' % __file__)) return appName
def getBaseAppName(): '\n ' appName = util.get_appname_from_path(__file__) if (appName is None): raise Exception(('Cannot get app name from file: %s' % __file__)) return appName<|docstring|>Base App name, which this script belongs to.<|endoftext|>
3bf18be5e5adff2c5fb97d8e43f1f2324300678117a30c2ee99d45d584bab41b
def get_base_app_name(): '\n Base App name, which this script belongs to.\n ' import __main__ main_name = __main__.__file__ absolute_path = os.path.normpath(main_name) parts = absolute_path.split(os.path.sep) parts.reverse() for key in ('apps', 'slave-apps', 'master-apps'): try: idx = parts.index(key) if (parts[(idx + 1)] == 'etc'): return parts[(idx - 1)] except (ValueError, IndexError): pass raise RestError(status=500, message=('Cannot get app name from file: %s' % main_name))
Base App name, which this script belongs to.
splunktaucclib/rest_handler/util.py
get_base_app_name
JasonConger/addonfactory-ucc-library
11
python
def get_base_app_name(): '\n \n ' import __main__ main_name = __main__.__file__ absolute_path = os.path.normpath(main_name) parts = absolute_path.split(os.path.sep) parts.reverse() for key in ('apps', 'slave-apps', 'master-apps'): try: idx = parts.index(key) if (parts[(idx + 1)] == 'etc'): return parts[(idx - 1)] except (ValueError, IndexError): pass raise RestError(status=500, message=('Cannot get app name from file: %s' % main_name))
def get_base_app_name(): '\n \n ' import __main__ main_name = __main__.__file__ absolute_path = os.path.normpath(main_name) parts = absolute_path.split(os.path.sep) parts.reverse() for key in ('apps', 'slave-apps', 'master-apps'): try: idx = parts.index(key) if (parts[(idx + 1)] == 'etc'): return parts[(idx - 1)] except (ValueError, IndexError): pass raise RestError(status=500, message=('Cannot get app name from file: %s' % main_name))<|docstring|>Base App name, which this script belongs to.<|endoftext|>
71a5283fd414ae961afbef5e901b9fd7b02544f57856499e2532663c6db4261c
def derror_maker(klass, msg): ' Decorate distutils class to make run method raise error ' class K(klass): def run(self): raise RuntimeError(msg) return K
Decorate distutils class to make run method raise error
cythexts.py
derror_maker
stefanv/dipy
3
python
def derror_maker(klass, msg): ' ' class K(klass): def run(self): raise RuntimeError(msg) return K
def derror_maker(klass, msg): ' ' class K(klass): def run(self): raise RuntimeError(msg) return K<|docstring|>Decorate distutils class to make run method raise error<|endoftext|>
a5fb33cbb7d7d26b9fce75740fa8fa2f8246759284fdcb91974c2c45952503a9
def stamped_pyx_ok(exts, hash_stamp_fname): ' Check for match of recorded hashes for pyx, corresponding c files\n\n Parameters\n ----------\n exts : sequence of ``Extension``\n distutils ``Extension`` instances, in fact only need to contain a\n ``sources`` sequence field.\n hash_stamp_fname : str\n filename of text file containing hash stamps\n\n Returns\n -------\n tf : bool\n True if there is a corresponding c file for each pyx or py file in\n `exts` sources, and the hash for both the (pyx, py) file *and* the c\n file match those recorded in the file named in `hash_stamp_fname`.\n ' stamps = {} for mod in exts: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() c_fname = (base + '.c') try: c_file = open(c_fname, 'rt') except IOError: return False c_hash = sha1(c_file.read()).hexdigest() stamps[source_hash] = source stamps[c_hash] = c_fname try: stamp_file = open(hash_stamp_fname, 'rt') except IOError: return False for line in stamp_file: if line.startswith('#'): continue (fname, hash) = [e.strip() for e in line.split(',')] if (not (hash in stamps)): return False fname = fname.replace(filesep, '/') if (not (stamps[hash].replace(filesep, '/') == fname)): return False stamps.pop(hash) return (len(stamps) == 0)
Check for match of recorded hashes for pyx, corresponding c files Parameters ---------- exts : sequence of ``Extension`` distutils ``Extension`` instances, in fact only need to contain a ``sources`` sequence field. hash_stamp_fname : str filename of text file containing hash stamps Returns ------- tf : bool True if there is a corresponding c file for each pyx or py file in `exts` sources, and the hash for both the (pyx, py) file *and* the c file match those recorded in the file named in `hash_stamp_fname`.
cythexts.py
stamped_pyx_ok
stefanv/dipy
3
python
def stamped_pyx_ok(exts, hash_stamp_fname): ' Check for match of recorded hashes for pyx, corresponding c files\n\n Parameters\n ----------\n exts : sequence of ``Extension``\n distutils ``Extension`` instances, in fact only need to contain a\n ``sources`` sequence field.\n hash_stamp_fname : str\n filename of text file containing hash stamps\n\n Returns\n -------\n tf : bool\n True if there is a corresponding c file for each pyx or py file in\n `exts` sources, and the hash for both the (pyx, py) file *and* the c\n file match those recorded in the file named in `hash_stamp_fname`.\n ' stamps = {} for mod in exts: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() c_fname = (base + '.c') try: c_file = open(c_fname, 'rt') except IOError: return False c_hash = sha1(c_file.read()).hexdigest() stamps[source_hash] = source stamps[c_hash] = c_fname try: stamp_file = open(hash_stamp_fname, 'rt') except IOError: return False for line in stamp_file: if line.startswith('#'): continue (fname, hash) = [e.strip() for e in line.split(',')] if (not (hash in stamps)): return False fname = fname.replace(filesep, '/') if (not (stamps[hash].replace(filesep, '/') == fname)): return False stamps.pop(hash) return (len(stamps) == 0)
def stamped_pyx_ok(exts, hash_stamp_fname): ' Check for match of recorded hashes for pyx, corresponding c files\n\n Parameters\n ----------\n exts : sequence of ``Extension``\n distutils ``Extension`` instances, in fact only need to contain a\n ``sources`` sequence field.\n hash_stamp_fname : str\n filename of text file containing hash stamps\n\n Returns\n -------\n tf : bool\n True if there is a corresponding c file for each pyx or py file in\n `exts` sources, and the hash for both the (pyx, py) file *and* the c\n file match those recorded in the file named in `hash_stamp_fname`.\n ' stamps = {} for mod in exts: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() c_fname = (base + '.c') try: c_file = open(c_fname, 'rt') except IOError: return False c_hash = sha1(c_file.read()).hexdigest() stamps[source_hash] = source stamps[c_hash] = c_fname try: stamp_file = open(hash_stamp_fname, 'rt') except IOError: return False for line in stamp_file: if line.startswith('#'): continue (fname, hash) = [e.strip() for e in line.split(',')] if (not (hash in stamps)): return False fname = fname.replace(filesep, '/') if (not (stamps[hash].replace(filesep, '/') == fname)): return False stamps.pop(hash) return (len(stamps) == 0)<|docstring|>Check for match of recorded hashes for pyx, corresponding c files Parameters ---------- exts : sequence of ``Extension`` distutils ``Extension`` instances, in fact only need to contain a ``sources`` sequence field. hash_stamp_fname : str filename of text file containing hash stamps Returns ------- tf : bool True if there is a corresponding c file for each pyx or py file in `exts` sources, and the hash for both the (pyx, py) file *and* the c file match those recorded in the file named in `hash_stamp_fname`.<|endoftext|>
3de16b8424f2a07f957756f3105f1e22d0129c609b0158cd0a7c2a6744c6573c
def cyproc_exts(exts, cython_min_version, hash_stamps_fname='pyx-stamps', build_ext=build_ext): " Process sequence of `exts` to check if we need Cython. Return builder\n\n Parameters\n ----------\n exts : sequence of distutils ``Extension``\n If we already have good c files for any pyx or py sources, we replace\n the pyx or py files with their compiled up c versions inplace.\n cython_min_version : str\n Minimum cython version neede for compile\n hash_stamps_fname : str, optional\n filename with hashes for pyx/py and c files known to be in sync. Default\n is 'pyx-stamps'\n build_ext : distutils command\n default build_ext to return if not cythonizing. Default is distutils\n ``build_ext`` class\n\n Returns\n -------\n builder : ``distutils`` ``build_ext`` class or similar\n Can be ``build_ext`` input (if we have good c files) or cython\n ``build_ext`` if we have a good cython, or a class raising an informative\n error on ``run()``\n " if stamped_pyx_ok(exts, hash_stamps_fname): for mod in exts: sources = [] for source in mod.sources: (base, ext) = splitext(source) if (ext in ('.pyx', '.py')): sources.append((base + '.c')) else: sources.append(source) mod.sources = sources return build_ext try: from Cython.Compiler.Version import version as cyversion except ImportError: cython_ok = False else: cython_ok = (LooseVersion(cyversion) >= cython_min_version) if cython_ok: from Cython.Distutils import build_ext as extbuilder return extbuilder return derror_maker(build_ext, ('Need cython>=%s to build extensions' % cython_min_version))
Process sequence of `exts` to check if we need Cython. Return builder Parameters ---------- exts : sequence of distutils ``Extension`` If we already have good c files for any pyx or py sources, we replace the pyx or py files with their compiled up c versions inplace. cython_min_version : str Minimum cython version neede for compile hash_stamps_fname : str, optional filename with hashes for pyx/py and c files known to be in sync. Default is 'pyx-stamps' build_ext : distutils command default build_ext to return if not cythonizing. Default is distutils ``build_ext`` class Returns ------- builder : ``distutils`` ``build_ext`` class or similar Can be ``build_ext`` input (if we have good c files) or cython ``build_ext`` if we have a good cython, or a class raising an informative error on ``run()``
cythexts.py
cyproc_exts
stefanv/dipy
3
python
def cyproc_exts(exts, cython_min_version, hash_stamps_fname='pyx-stamps', build_ext=build_ext): " Process sequence of `exts` to check if we need Cython. Return builder\n\n Parameters\n ----------\n exts : sequence of distutils ``Extension``\n If we already have good c files for any pyx or py sources, we replace\n the pyx or py files with their compiled up c versions inplace.\n cython_min_version : str\n Minimum cython version neede for compile\n hash_stamps_fname : str, optional\n filename with hashes for pyx/py and c files known to be in sync. Default\n is 'pyx-stamps'\n build_ext : distutils command\n default build_ext to return if not cythonizing. Default is distutils\n ``build_ext`` class\n\n Returns\n -------\n builder : ``distutils`` ``build_ext`` class or similar\n Can be ``build_ext`` input (if we have good c files) or cython\n ``build_ext`` if we have a good cython, or a class raising an informative\n error on ``run()``\n " if stamped_pyx_ok(exts, hash_stamps_fname): for mod in exts: sources = [] for source in mod.sources: (base, ext) = splitext(source) if (ext in ('.pyx', '.py')): sources.append((base + '.c')) else: sources.append(source) mod.sources = sources return build_ext try: from Cython.Compiler.Version import version as cyversion except ImportError: cython_ok = False else: cython_ok = (LooseVersion(cyversion) >= cython_min_version) if cython_ok: from Cython.Distutils import build_ext as extbuilder return extbuilder return derror_maker(build_ext, ('Need cython>=%s to build extensions' % cython_min_version))
def cyproc_exts(exts, cython_min_version, hash_stamps_fname='pyx-stamps', build_ext=build_ext): " Process sequence of `exts` to check if we need Cython. Return builder\n\n Parameters\n ----------\n exts : sequence of distutils ``Extension``\n If we already have good c files for any pyx or py sources, we replace\n the pyx or py files with their compiled up c versions inplace.\n cython_min_version : str\n Minimum cython version neede for compile\n hash_stamps_fname : str, optional\n filename with hashes for pyx/py and c files known to be in sync. Default\n is 'pyx-stamps'\n build_ext : distutils command\n default build_ext to return if not cythonizing. Default is distutils\n ``build_ext`` class\n\n Returns\n -------\n builder : ``distutils`` ``build_ext`` class or similar\n Can be ``build_ext`` input (if we have good c files) or cython\n ``build_ext`` if we have a good cython, or a class raising an informative\n error on ``run()``\n " if stamped_pyx_ok(exts, hash_stamps_fname): for mod in exts: sources = [] for source in mod.sources: (base, ext) = splitext(source) if (ext in ('.pyx', '.py')): sources.append((base + '.c')) else: sources.append(source) mod.sources = sources return build_ext try: from Cython.Compiler.Version import version as cyversion except ImportError: cython_ok = False else: cython_ok = (LooseVersion(cyversion) >= cython_min_version) if cython_ok: from Cython.Distutils import build_ext as extbuilder return extbuilder return derror_maker(build_ext, ('Need cython>=%s to build extensions' % cython_min_version))<|docstring|>Process sequence of `exts` to check if we need Cython. Return builder Parameters ---------- exts : sequence of distutils ``Extension`` If we already have good c files for any pyx or py sources, we replace the pyx or py files with their compiled up c versions inplace. cython_min_version : str Minimum cython version neede for compile hash_stamps_fname : str, optional filename with hashes for pyx/py and c files known to be in sync. Default is 'pyx-stamps' build_ext : distutils command default build_ext to return if not cythonizing. Default is distutils ``build_ext`` class Returns ------- builder : ``distutils`` ``build_ext`` class or similar Can be ``build_ext`` input (if we have good c files) or cython ``build_ext`` if we have a good cython, or a class raising an informative error on ``run()``<|endoftext|>
513746bca15c85fb5f1c0f5d0ec6b14f973cdec04bc5b1ad899ed5cd21f140fc
def get_pyx_sdist(sdist_like=sdist, hash_stamps_fname='pyx-stamps'): ' Add pyx->c conversion, hash recording to sdist command `sdist_like`\n\n Parameters\n ----------\n sdist_like : sdist command class, optional\n command that will do work of ``distutils.command.sdist.sdist``. By\n default we use the distutils version\n hash_stamps_fname : str, optional\n filename to which to write hashes of pyx / py and c files. Default is\n ``pyx-stamps``\n\n Returns\n -------\n modified_sdist : sdist-like command class\n decorated `sdist_like` class, for compiling pyx / py files to c, putting\n the .c files in the the source archive, and writing hashes for these\n into the file named from `hash_stamps_fname`\n ' class PyxSDist(sdist_like): ' Custom distutils sdist command to generate .c files from pyx files.\n\n Running the command object ``obj.run()`` will compile the pyx / py files\n in any extensions, into c files, and add them to the list of files to\n put into the source archive, as well as the usual behavior of distutils\n ``sdist``. It will also take the sha1 hashes of the pyx / py and c\n files, and store them in a file ``pyx-stamps``, and put this file in the\n release tree. This allows someone who has the archive to know that the\n pyx and c files that they have are the ones packed into the archive, and\n therefore they may not need Cython at install time. See\n ``cython_process_exts`` for the build-time command.\n ' def make_distribution(self): ' Compile pyx to c files, add to sources, stamp sha1s ' stamps = [] for mod in self.distribution.ext_modules: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (source, source_hash))) c_fname = (base + '.c') check_call(('cython ' + source), shell=True) c_hash = sha1(open(c_fname, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (c_fname, c_hash))) self.filelist.append(c_fname) self.stamps = stamps sdist_like.make_distribution(self) def make_release_tree(self, base_dir, files): ' Put pyx stamps file into release tree ' sdist_like.make_release_tree(self, base_dir, files) stamp_fname = pjoin(base_dir, hash_stamps_fname) stamp_file = open(stamp_fname, 'wt') stamp_file.write('# SHA1 hashes for pyx files and generated c files\n') stamp_file.write('# Auto-generated file, do not edit\n') stamp_file.writelines(self.stamps) stamp_file.close() return PyxSDist
Add pyx->c conversion, hash recording to sdist command `sdist_like` Parameters ---------- sdist_like : sdist command class, optional command that will do work of ``distutils.command.sdist.sdist``. By default we use the distutils version hash_stamps_fname : str, optional filename to which to write hashes of pyx / py and c files. Default is ``pyx-stamps`` Returns ------- modified_sdist : sdist-like command class decorated `sdist_like` class, for compiling pyx / py files to c, putting the .c files in the the source archive, and writing hashes for these into the file named from `hash_stamps_fname`
cythexts.py
get_pyx_sdist
stefanv/dipy
3
python
def get_pyx_sdist(sdist_like=sdist, hash_stamps_fname='pyx-stamps'): ' Add pyx->c conversion, hash recording to sdist command `sdist_like`\n\n Parameters\n ----------\n sdist_like : sdist command class, optional\n command that will do work of ``distutils.command.sdist.sdist``. By\n default we use the distutils version\n hash_stamps_fname : str, optional\n filename to which to write hashes of pyx / py and c files. Default is\n ``pyx-stamps``\n\n Returns\n -------\n modified_sdist : sdist-like command class\n decorated `sdist_like` class, for compiling pyx / py files to c, putting\n the .c files in the the source archive, and writing hashes for these\n into the file named from `hash_stamps_fname`\n ' class PyxSDist(sdist_like): ' Custom distutils sdist command to generate .c files from pyx files.\n\n Running the command object ``obj.run()`` will compile the pyx / py files\n in any extensions, into c files, and add them to the list of files to\n put into the source archive, as well as the usual behavior of distutils\n ``sdist``. It will also take the sha1 hashes of the pyx / py and c\n files, and store them in a file ``pyx-stamps``, and put this file in the\n release tree. This allows someone who has the archive to know that the\n pyx and c files that they have are the ones packed into the archive, and\n therefore they may not need Cython at install time. See\n ``cython_process_exts`` for the build-time command.\n ' def make_distribution(self): ' Compile pyx to c files, add to sources, stamp sha1s ' stamps = [] for mod in self.distribution.ext_modules: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (source, source_hash))) c_fname = (base + '.c') check_call(('cython ' + source), shell=True) c_hash = sha1(open(c_fname, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (c_fname, c_hash))) self.filelist.append(c_fname) self.stamps = stamps sdist_like.make_distribution(self) def make_release_tree(self, base_dir, files): ' Put pyx stamps file into release tree ' sdist_like.make_release_tree(self, base_dir, files) stamp_fname = pjoin(base_dir, hash_stamps_fname) stamp_file = open(stamp_fname, 'wt') stamp_file.write('# SHA1 hashes for pyx files and generated c files\n') stamp_file.write('# Auto-generated file, do not edit\n') stamp_file.writelines(self.stamps) stamp_file.close() return PyxSDist
def get_pyx_sdist(sdist_like=sdist, hash_stamps_fname='pyx-stamps'): ' Add pyx->c conversion, hash recording to sdist command `sdist_like`\n\n Parameters\n ----------\n sdist_like : sdist command class, optional\n command that will do work of ``distutils.command.sdist.sdist``. By\n default we use the distutils version\n hash_stamps_fname : str, optional\n filename to which to write hashes of pyx / py and c files. Default is\n ``pyx-stamps``\n\n Returns\n -------\n modified_sdist : sdist-like command class\n decorated `sdist_like` class, for compiling pyx / py files to c, putting\n the .c files in the the source archive, and writing hashes for these\n into the file named from `hash_stamps_fname`\n ' class PyxSDist(sdist_like): ' Custom distutils sdist command to generate .c files from pyx files.\n\n Running the command object ``obj.run()`` will compile the pyx / py files\n in any extensions, into c files, and add them to the list of files to\n put into the source archive, as well as the usual behavior of distutils\n ``sdist``. It will also take the sha1 hashes of the pyx / py and c\n files, and store them in a file ``pyx-stamps``, and put this file in the\n release tree. This allows someone who has the archive to know that the\n pyx and c files that they have are the ones packed into the archive, and\n therefore they may not need Cython at install time. See\n ``cython_process_exts`` for the build-time command.\n ' def make_distribution(self): ' Compile pyx to c files, add to sources, stamp sha1s ' stamps = [] for mod in self.distribution.ext_modules: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (source, source_hash))) c_fname = (base + '.c') check_call(('cython ' + source), shell=True) c_hash = sha1(open(c_fname, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (c_fname, c_hash))) self.filelist.append(c_fname) self.stamps = stamps sdist_like.make_distribution(self) def make_release_tree(self, base_dir, files): ' Put pyx stamps file into release tree ' sdist_like.make_release_tree(self, base_dir, files) stamp_fname = pjoin(base_dir, hash_stamps_fname) stamp_file = open(stamp_fname, 'wt') stamp_file.write('# SHA1 hashes for pyx files and generated c files\n') stamp_file.write('# Auto-generated file, do not edit\n') stamp_file.writelines(self.stamps) stamp_file.close() return PyxSDist<|docstring|>Add pyx->c conversion, hash recording to sdist command `sdist_like` Parameters ---------- sdist_like : sdist command class, optional command that will do work of ``distutils.command.sdist.sdist``. By default we use the distutils version hash_stamps_fname : str, optional filename to which to write hashes of pyx / py and c files. Default is ``pyx-stamps`` Returns ------- modified_sdist : sdist-like command class decorated `sdist_like` class, for compiling pyx / py files to c, putting the .c files in the the source archive, and writing hashes for these into the file named from `hash_stamps_fname`<|endoftext|>
36cbe5595958d0b385c20c75a55e7e47c09414f661d68b324246fe07516ada45
def make_distribution(self): ' Compile pyx to c files, add to sources, stamp sha1s ' stamps = [] for mod in self.distribution.ext_modules: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (source, source_hash))) c_fname = (base + '.c') check_call(('cython ' + source), shell=True) c_hash = sha1(open(c_fname, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (c_fname, c_hash))) self.filelist.append(c_fname) self.stamps = stamps sdist_like.make_distribution(self)
Compile pyx to c files, add to sources, stamp sha1s
cythexts.py
make_distribution
stefanv/dipy
3
python
def make_distribution(self): ' ' stamps = [] for mod in self.distribution.ext_modules: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (source, source_hash))) c_fname = (base + '.c') check_call(('cython ' + source), shell=True) c_hash = sha1(open(c_fname, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (c_fname, c_hash))) self.filelist.append(c_fname) self.stamps = stamps sdist_like.make_distribution(self)
def make_distribution(self): ' ' stamps = [] for mod in self.distribution.ext_modules: for source in mod.sources: (base, ext) = splitext(source) if (not (ext in ('.pyx', '.py'))): continue source_hash = sha1(open(source, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (source, source_hash))) c_fname = (base + '.c') check_call(('cython ' + source), shell=True) c_hash = sha1(open(c_fname, 'rt').read()).hexdigest() stamps.append(('%s, %s\n' % (c_fname, c_hash))) self.filelist.append(c_fname) self.stamps = stamps sdist_like.make_distribution(self)<|docstring|>Compile pyx to c files, add to sources, stamp sha1s<|endoftext|>
32874b721f842375f42585bd26affa5cddf638242db5239ddd4d20af075f67e9
def make_release_tree(self, base_dir, files): ' Put pyx stamps file into release tree ' sdist_like.make_release_tree(self, base_dir, files) stamp_fname = pjoin(base_dir, hash_stamps_fname) stamp_file = open(stamp_fname, 'wt') stamp_file.write('# SHA1 hashes for pyx files and generated c files\n') stamp_file.write('# Auto-generated file, do not edit\n') stamp_file.writelines(self.stamps) stamp_file.close()
Put pyx stamps file into release tree
cythexts.py
make_release_tree
stefanv/dipy
3
python
def make_release_tree(self, base_dir, files): ' ' sdist_like.make_release_tree(self, base_dir, files) stamp_fname = pjoin(base_dir, hash_stamps_fname) stamp_file = open(stamp_fname, 'wt') stamp_file.write('# SHA1 hashes for pyx files and generated c files\n') stamp_file.write('# Auto-generated file, do not edit\n') stamp_file.writelines(self.stamps) stamp_file.close()
def make_release_tree(self, base_dir, files): ' ' sdist_like.make_release_tree(self, base_dir, files) stamp_fname = pjoin(base_dir, hash_stamps_fname) stamp_file = open(stamp_fname, 'wt') stamp_file.write('# SHA1 hashes for pyx files and generated c files\n') stamp_file.write('# Auto-generated file, do not edit\n') stamp_file.writelines(self.stamps) stamp_file.close()<|docstring|>Put pyx stamps file into release tree<|endoftext|>
e595e40ae8681096c4afbb924c76ecb9faf2658038dba1f5965b8af4ef202efa
def suite(): 'Define all the tests of the module.' suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(UpdateTestCase)) return suite
Define all the tests of the module.
tests/zoomus/components/webinar/test_update.py
suite
appfluence/zoomus
2
python
def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(UpdateTestCase)) return suite
def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(UpdateTestCase)) return suite<|docstring|>Define all the tests of the module.<|endoftext|>
b268cc90248e15a479578d5603b9a634a834790e6a440aa7bfaf7d551163bb4b
def __init__(self, datetime_timestamp, device_id, device_info): 'Initialize the event.\n\n Args:\n datetime_timestamp: The timestamp for the event as a datetime object.\n device_id: The device ID.\n device_info: A dict that contains extracted information from the plist.\n ' super(IPodPlistEvent, self).__init__(datetime_timestamp, eventdata.EventTimestamp.LAST_CONNECTED) self.device_id = device_id for (key, value) in device_info.iteritems(): if (key == u'Connected'): continue attribute_name = key.lower().replace(u' ', u'_') setattr(self, attribute_name, value)
Initialize the event. Args: datetime_timestamp: The timestamp for the event as a datetime object. device_id: The device ID. device_info: A dict that contains extracted information from the plist.
plaso/parsers/plist_plugins/ipod.py
__init__
Defense-Cyber-Crime-Center/plaso
2
python
def __init__(self, datetime_timestamp, device_id, device_info): 'Initialize the event.\n\n Args:\n datetime_timestamp: The timestamp for the event as a datetime object.\n device_id: The device ID.\n device_info: A dict that contains extracted information from the plist.\n ' super(IPodPlistEvent, self).__init__(datetime_timestamp, eventdata.EventTimestamp.LAST_CONNECTED) self.device_id = device_id for (key, value) in device_info.iteritems(): if (key == u'Connected'): continue attribute_name = key.lower().replace(u' ', u'_') setattr(self, attribute_name, value)
def __init__(self, datetime_timestamp, device_id, device_info): 'Initialize the event.\n\n Args:\n datetime_timestamp: The timestamp for the event as a datetime object.\n device_id: The device ID.\n device_info: A dict that contains extracted information from the plist.\n ' super(IPodPlistEvent, self).__init__(datetime_timestamp, eventdata.EventTimestamp.LAST_CONNECTED) self.device_id = device_id for (key, value) in device_info.iteritems(): if (key == u'Connected'): continue attribute_name = key.lower().replace(u' ', u'_') setattr(self, attribute_name, value)<|docstring|>Initialize the event. Args: datetime_timestamp: The timestamp for the event as a datetime object. device_id: The device ID. device_info: A dict that contains extracted information from the plist.<|endoftext|>
a8bf2de69770a475b9723b097e3ac912f570354df372c55055318d89eb677265
def GetEntries(self, parser_mediator, match=None, **unused_kwargs): 'Extract device information from the iPod plist.\n\n Args:\n parser_mediator: A parser mediator object (instance of ParserMediator).\n match: Optional dictionary containing keys extracted from PLIST_KEYS.\n The default is None.\n ' if (not (u'Devices' in match)): return devices = match[u'Devices'] if (not devices): return for (device, device_info) in devices.iteritems(): if (u'Connected' not in device_info): continue event_object = IPodPlistEvent(device_info.get(u'Connected'), device, device_info) parser_mediator.ProduceEvent(event_object)
Extract device information from the iPod plist. Args: parser_mediator: A parser mediator object (instance of ParserMediator). match: Optional dictionary containing keys extracted from PLIST_KEYS. The default is None.
plaso/parsers/plist_plugins/ipod.py
GetEntries
Defense-Cyber-Crime-Center/plaso
2
python
def GetEntries(self, parser_mediator, match=None, **unused_kwargs): 'Extract device information from the iPod plist.\n\n Args:\n parser_mediator: A parser mediator object (instance of ParserMediator).\n match: Optional dictionary containing keys extracted from PLIST_KEYS.\n The default is None.\n ' if (not (u'Devices' in match)): return devices = match[u'Devices'] if (not devices): return for (device, device_info) in devices.iteritems(): if (u'Connected' not in device_info): continue event_object = IPodPlistEvent(device_info.get(u'Connected'), device, device_info) parser_mediator.ProduceEvent(event_object)
def GetEntries(self, parser_mediator, match=None, **unused_kwargs): 'Extract device information from the iPod plist.\n\n Args:\n parser_mediator: A parser mediator object (instance of ParserMediator).\n match: Optional dictionary containing keys extracted from PLIST_KEYS.\n The default is None.\n ' if (not (u'Devices' in match)): return devices = match[u'Devices'] if (not devices): return for (device, device_info) in devices.iteritems(): if (u'Connected' not in device_info): continue event_object = IPodPlistEvent(device_info.get(u'Connected'), device, device_info) parser_mediator.ProduceEvent(event_object)<|docstring|>Extract device information from the iPod plist. Args: parser_mediator: A parser mediator object (instance of ParserMediator). match: Optional dictionary containing keys extracted from PLIST_KEYS. The default is None.<|endoftext|>
845416011c7c298923f81fde1687c8d752e74aebd9cff623c73f85e721c18cf0
def configure_training(net_type, opt, lr, clip_grad, lr_decay, batch_size): ' supports Adam optimizer only' assert (opt in ['adam']) assert (net_type in ['ff', 'rnn']) opt_kwargs = {} opt_kwargs['lr'] = lr train_params = {} train_params['optimizer'] = (opt, opt_kwargs) train_params['clip_grad_norm'] = clip_grad train_params['batch_size'] = batch_size train_params['lr_decay'] = lr_decay if (net_type == 'ff'): criterion = (lambda logit, target: F.binary_cross_entropy_with_logits(logit, target, reduce=False)) else: ce = (lambda logit, target: F.cross_entropy(logit, target, reduce=False)) def criterion(logits, targets): return sequence_loss(logits, targets, ce, pad_idx=(- 1)) return (criterion, train_params)
supports Adam optimizer only
train_extractor_ml.py
configure_training
aniket03/fast_abs_rl
0
python
def configure_training(net_type, opt, lr, clip_grad, lr_decay, batch_size): ' ' assert (opt in ['adam']) assert (net_type in ['ff', 'rnn']) opt_kwargs = {} opt_kwargs['lr'] = lr train_params = {} train_params['optimizer'] = (opt, opt_kwargs) train_params['clip_grad_norm'] = clip_grad train_params['batch_size'] = batch_size train_params['lr_decay'] = lr_decay if (net_type == 'ff'): criterion = (lambda logit, target: F.binary_cross_entropy_with_logits(logit, target, reduce=False)) else: ce = (lambda logit, target: F.cross_entropy(logit, target, reduce=False)) def criterion(logits, targets): return sequence_loss(logits, targets, ce, pad_idx=(- 1)) return (criterion, train_params)
def configure_training(net_type, opt, lr, clip_grad, lr_decay, batch_size): ' ' assert (opt in ['adam']) assert (net_type in ['ff', 'rnn']) opt_kwargs = {} opt_kwargs['lr'] = lr train_params = {} train_params['optimizer'] = (opt, opt_kwargs) train_params['clip_grad_norm'] = clip_grad train_params['batch_size'] = batch_size train_params['lr_decay'] = lr_decay if (net_type == 'ff'): criterion = (lambda logit, target: F.binary_cross_entropy_with_logits(logit, target, reduce=False)) else: ce = (lambda logit, target: F.cross_entropy(logit, target, reduce=False)) def criterion(logits, targets): return sequence_loss(logits, targets, ce, pad_idx=(- 1)) return (criterion, train_params)<|docstring|>supports Adam optimizer only<|endoftext|>
f519b3e982e2cc5b43bad0ae79b5145178d1506ac12862c411eb1abab9f7b53d
def __init__(self, config, raw): '\n :param config: ObjectView\n Config object\n :param raw: [] of str\n Lines in file\n ' self.config = config self.market = self.date = self.sum = None self.lines = raw self.normalize() self.parse()
:param config: ObjectView Config object :param raw: [] of str Lines in file
parser/receipt.py
__init__
rayrrr/receipt-parser
2
python
def __init__(self, config, raw): '\n :param config: ObjectView\n Config object\n :param raw: [] of str\n Lines in file\n ' self.config = config self.market = self.date = self.sum = None self.lines = raw self.normalize() self.parse()
def __init__(self, config, raw): '\n :param config: ObjectView\n Config object\n :param raw: [] of str\n Lines in file\n ' self.config = config self.market = self.date = self.sum = None self.lines = raw self.normalize() self.parse()<|docstring|>:param config: ObjectView Config object :param raw: [] of str Lines in file<|endoftext|>
ea4daf672f93ee9bf76402b553e69c0a337b09f1c1448c484f5884ff9557cac3
def normalize(self): '\n :return: void\n 1) strip empty lines\n 2) convert to lowercase\n 3) encoding?\n\n ' self.lines = [line.lower() for line in self.lines if line.strip()]
:return: void 1) strip empty lines 2) convert to lowercase 3) encoding?
parser/receipt.py
normalize
rayrrr/receipt-parser
2
python
def normalize(self): '\n :return: void\n 1) strip empty lines\n 2) convert to lowercase\n 3) encoding?\n\n ' self.lines = [line.lower() for line in self.lines if line.strip()]
def normalize(self): '\n :return: void\n 1) strip empty lines\n 2) convert to lowercase\n 3) encoding?\n\n ' self.lines = [line.lower() for line in self.lines if line.strip()]<|docstring|>:return: void 1) strip empty lines 2) convert to lowercase 3) encoding?<|endoftext|>
4d01aec0b33c2dad52974b6d209a7dd9749f678b4218b9c144971e73fa6daddd
def parse(self): '\n :return: void\n Parses obj data\n ' self.market = self.parse_market() self.date = self.parse_date() self.sum = self.parse_sum()
:return: void Parses obj data
parser/receipt.py
parse
rayrrr/receipt-parser
2
python
def parse(self): '\n :return: void\n Parses obj data\n ' self.market = self.parse_market() self.date = self.parse_date() self.sum = self.parse_sum()
def parse(self): '\n :return: void\n Parses obj data\n ' self.market = self.parse_market() self.date = self.parse_date() self.sum = self.parse_sum()<|docstring|>:return: void Parses obj data<|endoftext|>
32163a37787e164a294ee82644bcd43f6886002d503c1579b4177fe3164bae5c
def fuzzy_find(self, keyword, accuracy=0.6): '\n :param keyword: str\n The keyword string to look for\n :param accuracy: float\n Required accuracy for a match of a string with the keyword\n :return: str\n Returns the first line in lines that contains a keyword.\n It runs a fuzzy match if 0 < accuracy < 1.0\n ' for line in self.lines: words = line.split() matches = get_close_matches(keyword, words, 1, accuracy) if matches: return line
:param keyword: str The keyword string to look for :param accuracy: float Required accuracy for a match of a string with the keyword :return: str Returns the first line in lines that contains a keyword. It runs a fuzzy match if 0 < accuracy < 1.0
parser/receipt.py
fuzzy_find
rayrrr/receipt-parser
2
python
def fuzzy_find(self, keyword, accuracy=0.6): '\n :param keyword: str\n The keyword string to look for\n :param accuracy: float\n Required accuracy for a match of a string with the keyword\n :return: str\n Returns the first line in lines that contains a keyword.\n It runs a fuzzy match if 0 < accuracy < 1.0\n ' for line in self.lines: words = line.split() matches = get_close_matches(keyword, words, 1, accuracy) if matches: return line
def fuzzy_find(self, keyword, accuracy=0.6): '\n :param keyword: str\n The keyword string to look for\n :param accuracy: float\n Required accuracy for a match of a string with the keyword\n :return: str\n Returns the first line in lines that contains a keyword.\n It runs a fuzzy match if 0 < accuracy < 1.0\n ' for line in self.lines: words = line.split() matches = get_close_matches(keyword, words, 1, accuracy) if matches: return line<|docstring|>:param keyword: str The keyword string to look for :param accuracy: float Required accuracy for a match of a string with the keyword :return: str Returns the first line in lines that contains a keyword. It runs a fuzzy match if 0 < accuracy < 1.0<|endoftext|>
1f08cb51d43818f0cea6c77fbe65654fea6df2c75935b964dc1508b14e1c9995
def parse_date(self): '\n :return: date\n Parses data\n ' for line in self.lines: m = re.match(self.config.date_format, line) if m: return m.group(1)
:return: date Parses data
parser/receipt.py
parse_date
rayrrr/receipt-parser
2
python
def parse_date(self): '\n :return: date\n Parses data\n ' for line in self.lines: m = re.match(self.config.date_format, line) if m: return m.group(1)
def parse_date(self): '\n :return: date\n Parses data\n ' for line in self.lines: m = re.match(self.config.date_format, line) if m: return m.group(1)<|docstring|>:return: date Parses data<|endoftext|>
969648af28b0c2408957df17dd83f9033577912543b4a9d94fd1f6ee3c5c2609
def parse_market(self): '\n :return: str\n Parses market data\n ' for int_accuracy in range(10, 6, (- 1)): accuracy = (int_accuracy / 10.0) for (market, spellings) in self.config.markets.items(): for spelling in spellings: line = self.fuzzy_find(spelling, accuracy) if line: print(line, accuracy, market) return market
:return: str Parses market data
parser/receipt.py
parse_market
rayrrr/receipt-parser
2
python
def parse_market(self): '\n :return: str\n Parses market data\n ' for int_accuracy in range(10, 6, (- 1)): accuracy = (int_accuracy / 10.0) for (market, spellings) in self.config.markets.items(): for spelling in spellings: line = self.fuzzy_find(spelling, accuracy) if line: print(line, accuracy, market) return market
def parse_market(self): '\n :return: str\n Parses market data\n ' for int_accuracy in range(10, 6, (- 1)): accuracy = (int_accuracy / 10.0) for (market, spellings) in self.config.markets.items(): for spelling in spellings: line = self.fuzzy_find(spelling, accuracy) if line: print(line, accuracy, market) return market<|docstring|>:return: str Parses market data<|endoftext|>
faf88c1ca8d347050e22042c63b82d4a30c1370280b60c7c75ff89b4049f8905
def parse_sum(self): '\n :return: str\n Parses sum data\n ' for sum_key in self.config.sum_keys: sum_line = self.fuzzy_find(sum_key) if sum_line: sum_line = sum_line.replace(',', '.') sum_float = re.search(self.config.sum_format, sum_line) if sum_float: return sum_float.group(0)
:return: str Parses sum data
parser/receipt.py
parse_sum
rayrrr/receipt-parser
2
python
def parse_sum(self): '\n :return: str\n Parses sum data\n ' for sum_key in self.config.sum_keys: sum_line = self.fuzzy_find(sum_key) if sum_line: sum_line = sum_line.replace(',', '.') sum_float = re.search(self.config.sum_format, sum_line) if sum_float: return sum_float.group(0)
def parse_sum(self): '\n :return: str\n Parses sum data\n ' for sum_key in self.config.sum_keys: sum_line = self.fuzzy_find(sum_key) if sum_line: sum_line = sum_line.replace(',', '.') sum_float = re.search(self.config.sum_format, sum_line) if sum_float: return sum_float.group(0)<|docstring|>:return: str Parses sum data<|endoftext|>
324322aff987233f0c0dd28d0cf45778cc34faa81e65b95844dc717df3cc514c
def __init__(self, gpu_profile_types=None, hostname=None, password=None, port=None, protocol=None, remote_access_internal_ip=None, remote_access_port=None, storage_service_hostname=None, storage_service_password=None, storage_service_port=None, storage_service_protocol=None, storage_service_username=None, username=None, vsphere_api_version=None, vsphere_host=None, vsphere_port=None, local_vars_configuration=None): 'VCloudRestCloud - a model defined in OpenAPI' if (local_vars_configuration is None): local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._gpu_profile_types = None self._hostname = None self._password = None self._port = None self._protocol = None self._remote_access_internal_ip = None self._remote_access_port = None self._storage_service_hostname = None self._storage_service_password = None self._storage_service_port = None self._storage_service_protocol = None self._storage_service_username = None self._username = None self._vsphere_api_version = None self._vsphere_host = None self._vsphere_port = None self.discriminator = None if (gpu_profile_types is not None): self.gpu_profile_types = gpu_profile_types self.hostname = hostname self.password = password self.port = port self.protocol = protocol self.remote_access_internal_ip = remote_access_internal_ip self.remote_access_port = remote_access_port if (storage_service_hostname is not None): self.storage_service_hostname = storage_service_hostname if (storage_service_password is not None): self.storage_service_password = storage_service_password if (storage_service_port is not None): self.storage_service_port = storage_service_port if (storage_service_protocol is not None): self.storage_service_protocol = storage_service_protocol if (storage_service_username is not None): self.storage_service_username = storage_service_username self.username = username if (vsphere_api_version is not None): self.vsphere_api_version = vsphere_api_version if (vsphere_host is not None): self.vsphere_host = vsphere_host if (vsphere_port is not None): self.vsphere_port = vsphere_port
VCloudRestCloud - a model defined in OpenAPI
cons3rt/models/v_cloud_rest_cloud.py
__init__
cons3rt/cons3rt-python-sdk
0
python
def __init__(self, gpu_profile_types=None, hostname=None, password=None, port=None, protocol=None, remote_access_internal_ip=None, remote_access_port=None, storage_service_hostname=None, storage_service_password=None, storage_service_port=None, storage_service_protocol=None, storage_service_username=None, username=None, vsphere_api_version=None, vsphere_host=None, vsphere_port=None, local_vars_configuration=None): if (local_vars_configuration is None): local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._gpu_profile_types = None self._hostname = None self._password = None self._port = None self._protocol = None self._remote_access_internal_ip = None self._remote_access_port = None self._storage_service_hostname = None self._storage_service_password = None self._storage_service_port = None self._storage_service_protocol = None self._storage_service_username = None self._username = None self._vsphere_api_version = None self._vsphere_host = None self._vsphere_port = None self.discriminator = None if (gpu_profile_types is not None): self.gpu_profile_types = gpu_profile_types self.hostname = hostname self.password = password self.port = port self.protocol = protocol self.remote_access_internal_ip = remote_access_internal_ip self.remote_access_port = remote_access_port if (storage_service_hostname is not None): self.storage_service_hostname = storage_service_hostname if (storage_service_password is not None): self.storage_service_password = storage_service_password if (storage_service_port is not None): self.storage_service_port = storage_service_port if (storage_service_protocol is not None): self.storage_service_protocol = storage_service_protocol if (storage_service_username is not None): self.storage_service_username = storage_service_username self.username = username if (vsphere_api_version is not None): self.vsphere_api_version = vsphere_api_version if (vsphere_host is not None): self.vsphere_host = vsphere_host if (vsphere_port is not None): self.vsphere_port = vsphere_port
def __init__(self, gpu_profile_types=None, hostname=None, password=None, port=None, protocol=None, remote_access_internal_ip=None, remote_access_port=None, storage_service_hostname=None, storage_service_password=None, storage_service_port=None, storage_service_protocol=None, storage_service_username=None, username=None, vsphere_api_version=None, vsphere_host=None, vsphere_port=None, local_vars_configuration=None): if (local_vars_configuration is None): local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._gpu_profile_types = None self._hostname = None self._password = None self._port = None self._protocol = None self._remote_access_internal_ip = None self._remote_access_port = None self._storage_service_hostname = None self._storage_service_password = None self._storage_service_port = None self._storage_service_protocol = None self._storage_service_username = None self._username = None self._vsphere_api_version = None self._vsphere_host = None self._vsphere_port = None self.discriminator = None if (gpu_profile_types is not None): self.gpu_profile_types = gpu_profile_types self.hostname = hostname self.password = password self.port = port self.protocol = protocol self.remote_access_internal_ip = remote_access_internal_ip self.remote_access_port = remote_access_port if (storage_service_hostname is not None): self.storage_service_hostname = storage_service_hostname if (storage_service_password is not None): self.storage_service_password = storage_service_password if (storage_service_port is not None): self.storage_service_port = storage_service_port if (storage_service_protocol is not None): self.storage_service_protocol = storage_service_protocol if (storage_service_username is not None): self.storage_service_username = storage_service_username self.username = username if (vsphere_api_version is not None): self.vsphere_api_version = vsphere_api_version if (vsphere_host is not None): self.vsphere_host = vsphere_host if (vsphere_port is not None): self.vsphere_port = vsphere_port<|docstring|>VCloudRestCloud - a model defined in OpenAPI<|endoftext|>
b4be563ae15886bf7f1b651757fac9e375de49a7113c8191f9f306bc92f9caa2
@property def gpu_profile_types(self): 'Gets the gpu_profile_types of this VCloudRestCloud. # noqa: E501\n\n\n :return: The gpu_profile_types of this VCloudRestCloud. # noqa: E501\n :rtype: list[str]\n ' return self._gpu_profile_types
Gets the gpu_profile_types of this VCloudRestCloud. # noqa: E501 :return: The gpu_profile_types of this VCloudRestCloud. # noqa: E501 :rtype: list[str]
cons3rt/models/v_cloud_rest_cloud.py
gpu_profile_types
cons3rt/cons3rt-python-sdk
0
python
@property def gpu_profile_types(self): 'Gets the gpu_profile_types of this VCloudRestCloud. # noqa: E501\n\n\n :return: The gpu_profile_types of this VCloudRestCloud. # noqa: E501\n :rtype: list[str]\n ' return self._gpu_profile_types
@property def gpu_profile_types(self): 'Gets the gpu_profile_types of this VCloudRestCloud. # noqa: E501\n\n\n :return: The gpu_profile_types of this VCloudRestCloud. # noqa: E501\n :rtype: list[str]\n ' return self._gpu_profile_types<|docstring|>Gets the gpu_profile_types of this VCloudRestCloud. # noqa: E501 :return: The gpu_profile_types of this VCloudRestCloud. # noqa: E501 :rtype: list[str]<|endoftext|>
05863807409144d272f0c5c7849e45e0103a9f5f56b35ce3d9fafd3448cb16ca
@gpu_profile_types.setter def gpu_profile_types(self, gpu_profile_types): 'Sets the gpu_profile_types of this VCloudRestCloud.\n\n\n :param gpu_profile_types: The gpu_profile_types of this VCloudRestCloud. # noqa: E501\n :type: list[str]\n ' allowed_values = ['M10_0Q', 'M10_1Q', 'M10_2Q', 'M10_4Q', 'V100D_2Q', 'V100D_4Q'] if (self.local_vars_configuration.client_side_validation and (not set(gpu_profile_types).issubset(set(allowed_values)))): raise ValueError('Invalid values for `gpu_profile_types` [{0}], must be a subset of [{1}]'.format(', '.join(map(str, (set(gpu_profile_types) - set(allowed_values)))), ', '.join(map(str, allowed_values)))) self._gpu_profile_types = gpu_profile_types
Sets the gpu_profile_types of this VCloudRestCloud. :param gpu_profile_types: The gpu_profile_types of this VCloudRestCloud. # noqa: E501 :type: list[str]
cons3rt/models/v_cloud_rest_cloud.py
gpu_profile_types
cons3rt/cons3rt-python-sdk
0
python
@gpu_profile_types.setter def gpu_profile_types(self, gpu_profile_types): 'Sets the gpu_profile_types of this VCloudRestCloud.\n\n\n :param gpu_profile_types: The gpu_profile_types of this VCloudRestCloud. # noqa: E501\n :type: list[str]\n ' allowed_values = ['M10_0Q', 'M10_1Q', 'M10_2Q', 'M10_4Q', 'V100D_2Q', 'V100D_4Q'] if (self.local_vars_configuration.client_side_validation and (not set(gpu_profile_types).issubset(set(allowed_values)))): raise ValueError('Invalid values for `gpu_profile_types` [{0}], must be a subset of [{1}]'.format(', '.join(map(str, (set(gpu_profile_types) - set(allowed_values)))), ', '.join(map(str, allowed_values)))) self._gpu_profile_types = gpu_profile_types
@gpu_profile_types.setter def gpu_profile_types(self, gpu_profile_types): 'Sets the gpu_profile_types of this VCloudRestCloud.\n\n\n :param gpu_profile_types: The gpu_profile_types of this VCloudRestCloud. # noqa: E501\n :type: list[str]\n ' allowed_values = ['M10_0Q', 'M10_1Q', 'M10_2Q', 'M10_4Q', 'V100D_2Q', 'V100D_4Q'] if (self.local_vars_configuration.client_side_validation and (not set(gpu_profile_types).issubset(set(allowed_values)))): raise ValueError('Invalid values for `gpu_profile_types` [{0}], must be a subset of [{1}]'.format(', '.join(map(str, (set(gpu_profile_types) - set(allowed_values)))), ', '.join(map(str, allowed_values)))) self._gpu_profile_types = gpu_profile_types<|docstring|>Sets the gpu_profile_types of this VCloudRestCloud. :param gpu_profile_types: The gpu_profile_types of this VCloudRestCloud. # noqa: E501 :type: list[str]<|endoftext|>
aeb5b95ed0b3a73f87cb35a8d8b1b10e4b0f8957f4c8f7e5eabdd264da546126
@property def hostname(self): 'Gets the hostname of this VCloudRestCloud. # noqa: E501\n\n\n :return: The hostname of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._hostname
Gets the hostname of this VCloudRestCloud. # noqa: E501 :return: The hostname of this VCloudRestCloud. # noqa: E501 :rtype: str
cons3rt/models/v_cloud_rest_cloud.py
hostname
cons3rt/cons3rt-python-sdk
0
python
@property def hostname(self): 'Gets the hostname of this VCloudRestCloud. # noqa: E501\n\n\n :return: The hostname of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._hostname
@property def hostname(self): 'Gets the hostname of this VCloudRestCloud. # noqa: E501\n\n\n :return: The hostname of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._hostname<|docstring|>Gets the hostname of this VCloudRestCloud. # noqa: E501 :return: The hostname of this VCloudRestCloud. # noqa: E501 :rtype: str<|endoftext|>
d07371cba0f0da8cdd7ea3a054d82d93acf676099b8174673141879ebdecd532
@hostname.setter def hostname(self, hostname): 'Sets the hostname of this VCloudRestCloud.\n\n\n :param hostname: The hostname of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (hostname is None)): raise ValueError('Invalid value for `hostname`, must not be `None`') self._hostname = hostname
Sets the hostname of this VCloudRestCloud. :param hostname: The hostname of this VCloudRestCloud. # noqa: E501 :type: str
cons3rt/models/v_cloud_rest_cloud.py
hostname
cons3rt/cons3rt-python-sdk
0
python
@hostname.setter def hostname(self, hostname): 'Sets the hostname of this VCloudRestCloud.\n\n\n :param hostname: The hostname of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (hostname is None)): raise ValueError('Invalid value for `hostname`, must not be `None`') self._hostname = hostname
@hostname.setter def hostname(self, hostname): 'Sets the hostname of this VCloudRestCloud.\n\n\n :param hostname: The hostname of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (hostname is None)): raise ValueError('Invalid value for `hostname`, must not be `None`') self._hostname = hostname<|docstring|>Sets the hostname of this VCloudRestCloud. :param hostname: The hostname of this VCloudRestCloud. # noqa: E501 :type: str<|endoftext|>
3216e5761be8d57d484c02e0c295518875bdbb27d5d58d39db7e719cc2be599f
@property def password(self): 'Gets the password of this VCloudRestCloud. # noqa: E501\n\n\n :return: The password of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._password
Gets the password of this VCloudRestCloud. # noqa: E501 :return: The password of this VCloudRestCloud. # noqa: E501 :rtype: str
cons3rt/models/v_cloud_rest_cloud.py
password
cons3rt/cons3rt-python-sdk
0
python
@property def password(self): 'Gets the password of this VCloudRestCloud. # noqa: E501\n\n\n :return: The password of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._password
@property def password(self): 'Gets the password of this VCloudRestCloud. # noqa: E501\n\n\n :return: The password of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._password<|docstring|>Gets the password of this VCloudRestCloud. # noqa: E501 :return: The password of this VCloudRestCloud. # noqa: E501 :rtype: str<|endoftext|>
013c9f5a2beda4a515dad47be837a90c8efc517e165625cadf8fbfd11562b7c6
@password.setter def password(self, password): 'Sets the password of this VCloudRestCloud.\n\n\n :param password: The password of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (password is None)): raise ValueError('Invalid value for `password`, must not be `None`') self._password = password
Sets the password of this VCloudRestCloud. :param password: The password of this VCloudRestCloud. # noqa: E501 :type: str
cons3rt/models/v_cloud_rest_cloud.py
password
cons3rt/cons3rt-python-sdk
0
python
@password.setter def password(self, password): 'Sets the password of this VCloudRestCloud.\n\n\n :param password: The password of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (password is None)): raise ValueError('Invalid value for `password`, must not be `None`') self._password = password
@password.setter def password(self, password): 'Sets the password of this VCloudRestCloud.\n\n\n :param password: The password of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (password is None)): raise ValueError('Invalid value for `password`, must not be `None`') self._password = password<|docstring|>Sets the password of this VCloudRestCloud. :param password: The password of this VCloudRestCloud. # noqa: E501 :type: str<|endoftext|>
5bf10e0c22b2a4f4de1dc454b68cc010c44637fc6fd1efddd29ca68cf1b8a4af
@property def port(self): 'Gets the port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._port
Gets the port of this VCloudRestCloud. # noqa: E501 :return: The port of this VCloudRestCloud. # noqa: E501 :rtype: int
cons3rt/models/v_cloud_rest_cloud.py
port
cons3rt/cons3rt-python-sdk
0
python
@property def port(self): 'Gets the port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._port
@property def port(self): 'Gets the port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._port<|docstring|>Gets the port of this VCloudRestCloud. # noqa: E501 :return: The port of this VCloudRestCloud. # noqa: E501 :rtype: int<|endoftext|>
7f5a5f8e505e7c75431e43384cbc1e3f93c7bb3f23bfa56abca818049b044352
@port.setter def port(self, port): 'Sets the port of this VCloudRestCloud.\n\n\n :param port: The port of this VCloudRestCloud. # noqa: E501\n :type: int\n ' if (self.local_vars_configuration.client_side_validation and (port is None)): raise ValueError('Invalid value for `port`, must not be `None`') self._port = port
Sets the port of this VCloudRestCloud. :param port: The port of this VCloudRestCloud. # noqa: E501 :type: int
cons3rt/models/v_cloud_rest_cloud.py
port
cons3rt/cons3rt-python-sdk
0
python
@port.setter def port(self, port): 'Sets the port of this VCloudRestCloud.\n\n\n :param port: The port of this VCloudRestCloud. # noqa: E501\n :type: int\n ' if (self.local_vars_configuration.client_side_validation and (port is None)): raise ValueError('Invalid value for `port`, must not be `None`') self._port = port
@port.setter def port(self, port): 'Sets the port of this VCloudRestCloud.\n\n\n :param port: The port of this VCloudRestCloud. # noqa: E501\n :type: int\n ' if (self.local_vars_configuration.client_side_validation and (port is None)): raise ValueError('Invalid value for `port`, must not be `None`') self._port = port<|docstring|>Sets the port of this VCloudRestCloud. :param port: The port of this VCloudRestCloud. # noqa: E501 :type: int<|endoftext|>
6411c4797cbb95f87991c5511b77f72e1672a65310232fc2f79461a0f62b1175
@property def protocol(self): 'Gets the protocol of this VCloudRestCloud. # noqa: E501\n\n\n :return: The protocol of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._protocol
Gets the protocol of this VCloudRestCloud. # noqa: E501 :return: The protocol of this VCloudRestCloud. # noqa: E501 :rtype: str
cons3rt/models/v_cloud_rest_cloud.py
protocol
cons3rt/cons3rt-python-sdk
0
python
@property def protocol(self): 'Gets the protocol of this VCloudRestCloud. # noqa: E501\n\n\n :return: The protocol of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._protocol
@property def protocol(self): 'Gets the protocol of this VCloudRestCloud. # noqa: E501\n\n\n :return: The protocol of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._protocol<|docstring|>Gets the protocol of this VCloudRestCloud. # noqa: E501 :return: The protocol of this VCloudRestCloud. # noqa: E501 :rtype: str<|endoftext|>
adbeb99e6e0521a6b09c20a180a3328470673bccb970d1e3df2517049858e3fe
@protocol.setter def protocol(self, protocol): 'Sets the protocol of this VCloudRestCloud.\n\n\n :param protocol: The protocol of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (protocol is None)): raise ValueError('Invalid value for `protocol`, must not be `None`') self._protocol = protocol
Sets the protocol of this VCloudRestCloud. :param protocol: The protocol of this VCloudRestCloud. # noqa: E501 :type: str
cons3rt/models/v_cloud_rest_cloud.py
protocol
cons3rt/cons3rt-python-sdk
0
python
@protocol.setter def protocol(self, protocol): 'Sets the protocol of this VCloudRestCloud.\n\n\n :param protocol: The protocol of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (protocol is None)): raise ValueError('Invalid value for `protocol`, must not be `None`') self._protocol = protocol
@protocol.setter def protocol(self, protocol): 'Sets the protocol of this VCloudRestCloud.\n\n\n :param protocol: The protocol of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (protocol is None)): raise ValueError('Invalid value for `protocol`, must not be `None`') self._protocol = protocol<|docstring|>Sets the protocol of this VCloudRestCloud. :param protocol: The protocol of this VCloudRestCloud. # noqa: E501 :type: str<|endoftext|>
6870f565e45c089b4fdd36ee3b679b3be64cc6c1925d06f3e41cf66e78611972
@property def remote_access_internal_ip(self): 'Gets the remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n\n\n :return: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._remote_access_internal_ip
Gets the remote_access_internal_ip of this VCloudRestCloud. # noqa: E501 :return: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501 :rtype: str
cons3rt/models/v_cloud_rest_cloud.py
remote_access_internal_ip
cons3rt/cons3rt-python-sdk
0
python
@property def remote_access_internal_ip(self): 'Gets the remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n\n\n :return: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._remote_access_internal_ip
@property def remote_access_internal_ip(self): 'Gets the remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n\n\n :return: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._remote_access_internal_ip<|docstring|>Gets the remote_access_internal_ip of this VCloudRestCloud. # noqa: E501 :return: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501 :rtype: str<|endoftext|>
0c49e07c196f70f83c2ed967134597c47af57c80b68405b41df8ceb11d3ecfa1
@remote_access_internal_ip.setter def remote_access_internal_ip(self, remote_access_internal_ip): 'Sets the remote_access_internal_ip of this VCloudRestCloud.\n\n\n :param remote_access_internal_ip: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (remote_access_internal_ip is None)): raise ValueError('Invalid value for `remote_access_internal_ip`, must not be `None`') self._remote_access_internal_ip = remote_access_internal_ip
Sets the remote_access_internal_ip of this VCloudRestCloud. :param remote_access_internal_ip: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501 :type: str
cons3rt/models/v_cloud_rest_cloud.py
remote_access_internal_ip
cons3rt/cons3rt-python-sdk
0
python
@remote_access_internal_ip.setter def remote_access_internal_ip(self, remote_access_internal_ip): 'Sets the remote_access_internal_ip of this VCloudRestCloud.\n\n\n :param remote_access_internal_ip: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (remote_access_internal_ip is None)): raise ValueError('Invalid value for `remote_access_internal_ip`, must not be `None`') self._remote_access_internal_ip = remote_access_internal_ip
@remote_access_internal_ip.setter def remote_access_internal_ip(self, remote_access_internal_ip): 'Sets the remote_access_internal_ip of this VCloudRestCloud.\n\n\n :param remote_access_internal_ip: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501\n :type: str\n ' if (self.local_vars_configuration.client_side_validation and (remote_access_internal_ip is None)): raise ValueError('Invalid value for `remote_access_internal_ip`, must not be `None`') self._remote_access_internal_ip = remote_access_internal_ip<|docstring|>Sets the remote_access_internal_ip of this VCloudRestCloud. :param remote_access_internal_ip: The remote_access_internal_ip of this VCloudRestCloud. # noqa: E501 :type: str<|endoftext|>
bd58cd614fe70074640197f8a1663e3ea14387c2503cc5033df8feaa887d058e
@property def remote_access_port(self): 'Gets the remote_access_port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The remote_access_port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._remote_access_port
Gets the remote_access_port of this VCloudRestCloud. # noqa: E501 :return: The remote_access_port of this VCloudRestCloud. # noqa: E501 :rtype: int
cons3rt/models/v_cloud_rest_cloud.py
remote_access_port
cons3rt/cons3rt-python-sdk
0
python
@property def remote_access_port(self): 'Gets the remote_access_port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The remote_access_port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._remote_access_port
@property def remote_access_port(self): 'Gets the remote_access_port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The remote_access_port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._remote_access_port<|docstring|>Gets the remote_access_port of this VCloudRestCloud. # noqa: E501 :return: The remote_access_port of this VCloudRestCloud. # noqa: E501 :rtype: int<|endoftext|>
246632de2a04211cf06e994ff3cca911c46437e640453f5b0e6fb0d2316fe34e
@remote_access_port.setter def remote_access_port(self, remote_access_port): 'Sets the remote_access_port of this VCloudRestCloud.\n\n\n :param remote_access_port: The remote_access_port of this VCloudRestCloud. # noqa: E501\n :type: int\n ' if (self.local_vars_configuration.client_side_validation and (remote_access_port is None)): raise ValueError('Invalid value for `remote_access_port`, must not be `None`') self._remote_access_port = remote_access_port
Sets the remote_access_port of this VCloudRestCloud. :param remote_access_port: The remote_access_port of this VCloudRestCloud. # noqa: E501 :type: int
cons3rt/models/v_cloud_rest_cloud.py
remote_access_port
cons3rt/cons3rt-python-sdk
0
python
@remote_access_port.setter def remote_access_port(self, remote_access_port): 'Sets the remote_access_port of this VCloudRestCloud.\n\n\n :param remote_access_port: The remote_access_port of this VCloudRestCloud. # noqa: E501\n :type: int\n ' if (self.local_vars_configuration.client_side_validation and (remote_access_port is None)): raise ValueError('Invalid value for `remote_access_port`, must not be `None`') self._remote_access_port = remote_access_port
@remote_access_port.setter def remote_access_port(self, remote_access_port): 'Sets the remote_access_port of this VCloudRestCloud.\n\n\n :param remote_access_port: The remote_access_port of this VCloudRestCloud. # noqa: E501\n :type: int\n ' if (self.local_vars_configuration.client_side_validation and (remote_access_port is None)): raise ValueError('Invalid value for `remote_access_port`, must not be `None`') self._remote_access_port = remote_access_port<|docstring|>Sets the remote_access_port of this VCloudRestCloud. :param remote_access_port: The remote_access_port of this VCloudRestCloud. # noqa: E501 :type: int<|endoftext|>
60fe559ac2e1d1f8babad9c3382af30875f8e5c997c09d1fb4b59a6c3a6aaf05
@property def storage_service_hostname(self): 'Gets the storage_service_hostname of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_hostname of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._storage_service_hostname
Gets the storage_service_hostname of this VCloudRestCloud. # noqa: E501 :return: The storage_service_hostname of this VCloudRestCloud. # noqa: E501 :rtype: str
cons3rt/models/v_cloud_rest_cloud.py
storage_service_hostname
cons3rt/cons3rt-python-sdk
0
python
@property def storage_service_hostname(self): 'Gets the storage_service_hostname of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_hostname of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._storage_service_hostname
@property def storage_service_hostname(self): 'Gets the storage_service_hostname of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_hostname of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._storage_service_hostname<|docstring|>Gets the storage_service_hostname of this VCloudRestCloud. # noqa: E501 :return: The storage_service_hostname of this VCloudRestCloud. # noqa: E501 :rtype: str<|endoftext|>
a4bb5b5ad4c427983af3aa31c6dfd807f613edc13766516c262df773fbec5f82
@storage_service_hostname.setter def storage_service_hostname(self, storage_service_hostname): 'Sets the storage_service_hostname of this VCloudRestCloud.\n\n\n :param storage_service_hostname: The storage_service_hostname of this VCloudRestCloud. # noqa: E501\n :type: str\n ' self._storage_service_hostname = storage_service_hostname
Sets the storage_service_hostname of this VCloudRestCloud. :param storage_service_hostname: The storage_service_hostname of this VCloudRestCloud. # noqa: E501 :type: str
cons3rt/models/v_cloud_rest_cloud.py
storage_service_hostname
cons3rt/cons3rt-python-sdk
0
python
@storage_service_hostname.setter def storage_service_hostname(self, storage_service_hostname): 'Sets the storage_service_hostname of this VCloudRestCloud.\n\n\n :param storage_service_hostname: The storage_service_hostname of this VCloudRestCloud. # noqa: E501\n :type: str\n ' self._storage_service_hostname = storage_service_hostname
@storage_service_hostname.setter def storage_service_hostname(self, storage_service_hostname): 'Sets the storage_service_hostname of this VCloudRestCloud.\n\n\n :param storage_service_hostname: The storage_service_hostname of this VCloudRestCloud. # noqa: E501\n :type: str\n ' self._storage_service_hostname = storage_service_hostname<|docstring|>Sets the storage_service_hostname of this VCloudRestCloud. :param storage_service_hostname: The storage_service_hostname of this VCloudRestCloud. # noqa: E501 :type: str<|endoftext|>
d4c82c9318c02dd0bc09a707e4bca0f07e4d99aa4d1cb4d4c5b85ab1b54d0a00
@property def storage_service_password(self): 'Gets the storage_service_password of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_password of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._storage_service_password
Gets the storage_service_password of this VCloudRestCloud. # noqa: E501 :return: The storage_service_password of this VCloudRestCloud. # noqa: E501 :rtype: str
cons3rt/models/v_cloud_rest_cloud.py
storage_service_password
cons3rt/cons3rt-python-sdk
0
python
@property def storage_service_password(self): 'Gets the storage_service_password of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_password of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._storage_service_password
@property def storage_service_password(self): 'Gets the storage_service_password of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_password of this VCloudRestCloud. # noqa: E501\n :rtype: str\n ' return self._storage_service_password<|docstring|>Gets the storage_service_password of this VCloudRestCloud. # noqa: E501 :return: The storage_service_password of this VCloudRestCloud. # noqa: E501 :rtype: str<|endoftext|>
7e77b7589a8e2212e8d01c00048b4f69e3f4ae6c4faf888cdb6fa1729a3268c8
@storage_service_password.setter def storage_service_password(self, storage_service_password): 'Sets the storage_service_password of this VCloudRestCloud.\n\n\n :param storage_service_password: The storage_service_password of this VCloudRestCloud. # noqa: E501\n :type: str\n ' self._storage_service_password = storage_service_password
Sets the storage_service_password of this VCloudRestCloud. :param storage_service_password: The storage_service_password of this VCloudRestCloud. # noqa: E501 :type: str
cons3rt/models/v_cloud_rest_cloud.py
storage_service_password
cons3rt/cons3rt-python-sdk
0
python
@storage_service_password.setter def storage_service_password(self, storage_service_password): 'Sets the storage_service_password of this VCloudRestCloud.\n\n\n :param storage_service_password: The storage_service_password of this VCloudRestCloud. # noqa: E501\n :type: str\n ' self._storage_service_password = storage_service_password
@storage_service_password.setter def storage_service_password(self, storage_service_password): 'Sets the storage_service_password of this VCloudRestCloud.\n\n\n :param storage_service_password: The storage_service_password of this VCloudRestCloud. # noqa: E501\n :type: str\n ' self._storage_service_password = storage_service_password<|docstring|>Sets the storage_service_password of this VCloudRestCloud. :param storage_service_password: The storage_service_password of this VCloudRestCloud. # noqa: E501 :type: str<|endoftext|>
96618e9cb8a050f0dd99b136283db2327b09a9f17ad697c9a452b6c91d5b6b41
@property def storage_service_port(self): 'Gets the storage_service_port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._storage_service_port
Gets the storage_service_port of this VCloudRestCloud. # noqa: E501 :return: The storage_service_port of this VCloudRestCloud. # noqa: E501 :rtype: int
cons3rt/models/v_cloud_rest_cloud.py
storage_service_port
cons3rt/cons3rt-python-sdk
0
python
@property def storage_service_port(self): 'Gets the storage_service_port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._storage_service_port
@property def storage_service_port(self): 'Gets the storage_service_port of this VCloudRestCloud. # noqa: E501\n\n\n :return: The storage_service_port of this VCloudRestCloud. # noqa: E501\n :rtype: int\n ' return self._storage_service_port<|docstring|>Gets the storage_service_port of this VCloudRestCloud. # noqa: E501 :return: The storage_service_port of this VCloudRestCloud. # noqa: E501 :rtype: int<|endoftext|>