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
6be99ed2e1a6b36e7495619ec9dd2bd18da700838324994ffc94de6f38b61a69
@property def family_code(self): '\n Gets the family_code of this NodesLnnHardwareNode.\n Family code of this node (X, S, NL, etc.).\n\n :return: The family_code of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._family_code
Gets the family_code of this NodesLnnHardwareNode. Family code of this node (X, S, NL, etc.). :return: The family_code of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
family_code
Atomicology/isilon_sdk_python
0
python
@property def family_code(self): '\n Gets the family_code of this NodesLnnHardwareNode.\n Family code of this node (X, S, NL, etc.).\n\n :return: The family_code of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._family_code
@property def family_code(self): '\n Gets the family_code of this NodesLnnHardwareNode.\n Family code of this node (X, S, NL, etc.).\n\n :return: The family_code of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._family_code<|docstring|>Gets the family_code of this N...
23333d2c94ed74c0a1cf99532ba646728b24129017c5883e69124841657dbb08
@family_code.setter def family_code(self, family_code): '\n Sets the family_code of this NodesLnnHardwareNode.\n Family code of this node (X, S, NL, etc.).\n\n :param family_code: The family_code of this NodesLnnHardwareNode.\n :type: str\n ' self._family_code = family_code
Sets the family_code of this NodesLnnHardwareNode. Family code of this node (X, S, NL, etc.). :param family_code: The family_code of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
family_code
Atomicology/isilon_sdk_python
0
python
@family_code.setter def family_code(self, family_code): '\n Sets the family_code of this NodesLnnHardwareNode.\n Family code of this node (X, S, NL, etc.).\n\n :param family_code: The family_code of this NodesLnnHardwareNode.\n :type: str\n ' self._family_code = family_code
@family_code.setter def family_code(self, family_code): '\n Sets the family_code of this NodesLnnHardwareNode.\n Family code of this node (X, S, NL, etc.).\n\n :param family_code: The family_code of this NodesLnnHardwareNode.\n :type: str\n ' self._family_code = family_code<|d...
5d45e99c5194a0ab9d54eaf00e9c838b6c233ca16cc805d495ff2218db5cb680
@property def flash_drive(self): "\n Gets the flash_drive of this NodesLnnHardwareNode.\n Manufacturer, model, and device id of this node's flash drive.\n\n :return: The flash_drive of this NodesLnnHardwareNode.\n :rtype: str\n " return self._flash_drive
Gets the flash_drive of this NodesLnnHardwareNode. Manufacturer, model, and device id of this node's flash drive. :return: The flash_drive of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
flash_drive
Atomicology/isilon_sdk_python
0
python
@property def flash_drive(self): "\n Gets the flash_drive of this NodesLnnHardwareNode.\n Manufacturer, model, and device id of this node's flash drive.\n\n :return: The flash_drive of this NodesLnnHardwareNode.\n :rtype: str\n " return self._flash_drive
@property def flash_drive(self): "\n Gets the flash_drive of this NodesLnnHardwareNode.\n Manufacturer, model, and device id of this node's flash drive.\n\n :return: The flash_drive of this NodesLnnHardwareNode.\n :rtype: str\n " return self._flash_drive<|docstring|>Gets the f...
e770336da85208520b20905110a4debdaddff6ea80d5225da211ee21708d1c7d
@flash_drive.setter def flash_drive(self, flash_drive): "\n Sets the flash_drive of this NodesLnnHardwareNode.\n Manufacturer, model, and device id of this node's flash drive.\n\n :param flash_drive: The flash_drive of this NodesLnnHardwareNode.\n :type: str\n " self._flash_dr...
Sets the flash_drive of this NodesLnnHardwareNode. Manufacturer, model, and device id of this node's flash drive. :param flash_drive: The flash_drive of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
flash_drive
Atomicology/isilon_sdk_python
0
python
@flash_drive.setter def flash_drive(self, flash_drive): "\n Sets the flash_drive of this NodesLnnHardwareNode.\n Manufacturer, model, and device id of this node's flash drive.\n\n :param flash_drive: The flash_drive of this NodesLnnHardwareNode.\n :type: str\n " self._flash_dr...
@flash_drive.setter def flash_drive(self, flash_drive): "\n Sets the flash_drive of this NodesLnnHardwareNode.\n Manufacturer, model, and device id of this node's flash drive.\n\n :param flash_drive: The flash_drive of this NodesLnnHardwareNode.\n :type: str\n " self._flash_dr...
64d0bfece499ddb6b3f7c4653f8aeeef3996eec83f6dc5f1b8f76dcd6cac658f
@property def generation_code(self): '\n Gets the generation_code of this NodesLnnHardwareNode.\n Generation code of this node.\n\n :return: The generation_code of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._generation_code
Gets the generation_code of this NodesLnnHardwareNode. Generation code of this node. :return: The generation_code of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
generation_code
Atomicology/isilon_sdk_python
0
python
@property def generation_code(self): '\n Gets the generation_code of this NodesLnnHardwareNode.\n Generation code of this node.\n\n :return: The generation_code of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._generation_code
@property def generation_code(self): '\n Gets the generation_code of this NodesLnnHardwareNode.\n Generation code of this node.\n\n :return: The generation_code of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._generation_code<|docstring|>Gets the generation_code of...
142dd80adedd425301c2b4897fffdf00becbfa1505263dc683d2f8cbaf808674
@generation_code.setter def generation_code(self, generation_code): '\n Sets the generation_code of this NodesLnnHardwareNode.\n Generation code of this node.\n\n :param generation_code: The generation_code of this NodesLnnHardwareNode.\n :type: str\n ' self._generation_code =...
Sets the generation_code of this NodesLnnHardwareNode. Generation code of this node. :param generation_code: The generation_code of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
generation_code
Atomicology/isilon_sdk_python
0
python
@generation_code.setter def generation_code(self, generation_code): '\n Sets the generation_code of this NodesLnnHardwareNode.\n Generation code of this node.\n\n :param generation_code: The generation_code of this NodesLnnHardwareNode.\n :type: str\n ' self._generation_code =...
@generation_code.setter def generation_code(self, generation_code): '\n Sets the generation_code of this NodesLnnHardwareNode.\n Generation code of this node.\n\n :param generation_code: The generation_code of this NodesLnnHardwareNode.\n :type: str\n ' self._generation_code =...
d0dd0f8322340372c5174864250d1b12be9885e75045a75f9720f7fa7ebd4b4b
@property def hwgen(self): '\n Gets the hwgen of this NodesLnnHardwareNode.\n Isilon hardware generation name.\n\n :return: The hwgen of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._hwgen
Gets the hwgen of this NodesLnnHardwareNode. Isilon hardware generation name. :return: The hwgen of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
hwgen
Atomicology/isilon_sdk_python
0
python
@property def hwgen(self): '\n Gets the hwgen of this NodesLnnHardwareNode.\n Isilon hardware generation name.\n\n :return: The hwgen of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._hwgen
@property def hwgen(self): '\n Gets the hwgen of this NodesLnnHardwareNode.\n Isilon hardware generation name.\n\n :return: The hwgen of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._hwgen<|docstring|>Gets the hwgen of this NodesLnnHardwareNode. Isilon hardware gen...
d9f4ff1885a6d0513f6d9f6828ecffb65e7e9c243b563636ec555b95ceaf831e
@hwgen.setter def hwgen(self, hwgen): '\n Sets the hwgen of this NodesLnnHardwareNode.\n Isilon hardware generation name.\n\n :param hwgen: The hwgen of this NodesLnnHardwareNode.\n :type: str\n ' self._hwgen = hwgen
Sets the hwgen of this NodesLnnHardwareNode. Isilon hardware generation name. :param hwgen: The hwgen of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
hwgen
Atomicology/isilon_sdk_python
0
python
@hwgen.setter def hwgen(self, hwgen): '\n Sets the hwgen of this NodesLnnHardwareNode.\n Isilon hardware generation name.\n\n :param hwgen: The hwgen of this NodesLnnHardwareNode.\n :type: str\n ' self._hwgen = hwgen
@hwgen.setter def hwgen(self, hwgen): '\n Sets the hwgen of this NodesLnnHardwareNode.\n Isilon hardware generation name.\n\n :param hwgen: The hwgen of this NodesLnnHardwareNode.\n :type: str\n ' self._hwgen = hwgen<|docstring|>Sets the hwgen of this NodesLnnHardwareNode. Isi...
48949e473d3e673cc6d83fb2fa803da231202e8e73868bf2ff7a7b18d09ed629
@property def id(self): '\n Gets the id of this NodesLnnHardwareNode.\n Node ID (Device Number) of this node.\n\n :return: The id of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._id
Gets the id of this NodesLnnHardwareNode. Node ID (Device Number) of this node. :return: The id of this NodesLnnHardwareNode. :rtype: int
isi_sdk/models/nodes_lnn_hardware_node.py
id
Atomicology/isilon_sdk_python
0
python
@property def id(self): '\n Gets the id of this NodesLnnHardwareNode.\n Node ID (Device Number) of this node.\n\n :return: The id of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._id
@property def id(self): '\n Gets the id of this NodesLnnHardwareNode.\n Node ID (Device Number) of this node.\n\n :return: The id of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._id<|docstring|>Gets the id of this NodesLnnHardwareNode. Node ID (Device Number) of th...
8b479496924b8abcc76d47180e0035c36c32df120b09fa8e069134e8396d5b44
@id.setter def id(self, id): '\n Sets the id of this NodesLnnHardwareNode.\n Node ID (Device Number) of this node.\n\n :param id: The id of this NodesLnnHardwareNode.\n :type: int\n ' self._id = id
Sets the id of this NodesLnnHardwareNode. Node ID (Device Number) of this node. :param id: The id of this NodesLnnHardwareNode. :type: int
isi_sdk/models/nodes_lnn_hardware_node.py
id
Atomicology/isilon_sdk_python
0
python
@id.setter def id(self, id): '\n Sets the id of this NodesLnnHardwareNode.\n Node ID (Device Number) of this node.\n\n :param id: The id of this NodesLnnHardwareNode.\n :type: int\n ' self._id = id
@id.setter def id(self, id): '\n Sets the id of this NodesLnnHardwareNode.\n Node ID (Device Number) of this node.\n\n :param id: The id of this NodesLnnHardwareNode.\n :type: int\n ' self._id = id<|docstring|>Sets the id of this NodesLnnHardwareNode. Node ID (Device Number) o...
03bc3d7567e2d0df9eb2291e06da16aa635a957698e9ededfe0c7b1a33c059ed
@property def imb_version(self): "\n Gets the imb_version of this NodesLnnHardwareNode.\n Version of this node's Isilon Management Board.\n\n :return: The imb_version of this NodesLnnHardwareNode.\n :rtype: str\n " return self._imb_version
Gets the imb_version of this NodesLnnHardwareNode. Version of this node's Isilon Management Board. :return: The imb_version of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
imb_version
Atomicology/isilon_sdk_python
0
python
@property def imb_version(self): "\n Gets the imb_version of this NodesLnnHardwareNode.\n Version of this node's Isilon Management Board.\n\n :return: The imb_version of this NodesLnnHardwareNode.\n :rtype: str\n " return self._imb_version
@property def imb_version(self): "\n Gets the imb_version of this NodesLnnHardwareNode.\n Version of this node's Isilon Management Board.\n\n :return: The imb_version of this NodesLnnHardwareNode.\n :rtype: str\n " return self._imb_version<|docstring|>Gets the imb_version of t...
bdeede46b0e27d8bd8dd5dafe376cc4c9027cc91dfdca800fe825267037461aa
@imb_version.setter def imb_version(self, imb_version): "\n Sets the imb_version of this NodesLnnHardwareNode.\n Version of this node's Isilon Management Board.\n\n :param imb_version: The imb_version of this NodesLnnHardwareNode.\n :type: str\n " self._imb_version = imb_versi...
Sets the imb_version of this NodesLnnHardwareNode. Version of this node's Isilon Management Board. :param imb_version: The imb_version of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
imb_version
Atomicology/isilon_sdk_python
0
python
@imb_version.setter def imb_version(self, imb_version): "\n Sets the imb_version of this NodesLnnHardwareNode.\n Version of this node's Isilon Management Board.\n\n :param imb_version: The imb_version of this NodesLnnHardwareNode.\n :type: str\n " self._imb_version = imb_versi...
@imb_version.setter def imb_version(self, imb_version): "\n Sets the imb_version of this NodesLnnHardwareNode.\n Version of this node's Isilon Management Board.\n\n :param imb_version: The imb_version of this NodesLnnHardwareNode.\n :type: str\n " self._imb_version = imb_versi...
d72d765983f34f9047f6d132e1008f0d41c2d68c004243bfdf8d8a32aa7d65e4
@property def infiniband(self): '\n Gets the infiniband of this NodesLnnHardwareNode.\n Infiniband card type.\n\n :return: The infiniband of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._infiniband
Gets the infiniband of this NodesLnnHardwareNode. Infiniband card type. :return: The infiniband of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
infiniband
Atomicology/isilon_sdk_python
0
python
@property def infiniband(self): '\n Gets the infiniband of this NodesLnnHardwareNode.\n Infiniband card type.\n\n :return: The infiniband of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._infiniband
@property def infiniband(self): '\n Gets the infiniband of this NodesLnnHardwareNode.\n Infiniband card type.\n\n :return: The infiniband of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._infiniband<|docstring|>Gets the infiniband of this NodesLnnHardwareNode. Infin...
dbeee21175e4c6355913fb164556929deda56ac20f8a7adc9e43a6354734ef58
@infiniband.setter def infiniband(self, infiniband): '\n Sets the infiniband of this NodesLnnHardwareNode.\n Infiniband card type.\n\n :param infiniband: The infiniband of this NodesLnnHardwareNode.\n :type: str\n ' self._infiniband = infiniband
Sets the infiniband of this NodesLnnHardwareNode. Infiniband card type. :param infiniband: The infiniband of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
infiniband
Atomicology/isilon_sdk_python
0
python
@infiniband.setter def infiniband(self, infiniband): '\n Sets the infiniband of this NodesLnnHardwareNode.\n Infiniband card type.\n\n :param infiniband: The infiniband of this NodesLnnHardwareNode.\n :type: str\n ' self._infiniband = infiniband
@infiniband.setter def infiniband(self, infiniband): '\n Sets the infiniband of this NodesLnnHardwareNode.\n Infiniband card type.\n\n :param infiniband: The infiniband of this NodesLnnHardwareNode.\n :type: str\n ' self._infiniband = infiniband<|docstring|>Sets the infiniband...
9e0a5ef4d2a5ef0d3ec54a7361d0b4abde506dbb711d7add6f6b9396ab4290b2
@property def lcd_version(self): '\n Gets the lcd_version of this NodesLnnHardwareNode.\n Version of the LCD panel.\n\n :return: The lcd_version of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._lcd_version
Gets the lcd_version of this NodesLnnHardwareNode. Version of the LCD panel. :return: The lcd_version of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
lcd_version
Atomicology/isilon_sdk_python
0
python
@property def lcd_version(self): '\n Gets the lcd_version of this NodesLnnHardwareNode.\n Version of the LCD panel.\n\n :return: The lcd_version of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._lcd_version
@property def lcd_version(self): '\n Gets the lcd_version of this NodesLnnHardwareNode.\n Version of the LCD panel.\n\n :return: The lcd_version of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._lcd_version<|docstring|>Gets the lcd_version of this NodesLnnHardwareNo...
cf5f4fdafdba5870f15e5890f69f2827efe7c0183d93b296a3d90ffd67fab88f
@lcd_version.setter def lcd_version(self, lcd_version): '\n Sets the lcd_version of this NodesLnnHardwareNode.\n Version of the LCD panel.\n\n :param lcd_version: The lcd_version of this NodesLnnHardwareNode.\n :type: str\n ' self._lcd_version = lcd_version
Sets the lcd_version of this NodesLnnHardwareNode. Version of the LCD panel. :param lcd_version: The lcd_version of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
lcd_version
Atomicology/isilon_sdk_python
0
python
@lcd_version.setter def lcd_version(self, lcd_version): '\n Sets the lcd_version of this NodesLnnHardwareNode.\n Version of the LCD panel.\n\n :param lcd_version: The lcd_version of this NodesLnnHardwareNode.\n :type: str\n ' self._lcd_version = lcd_version
@lcd_version.setter def lcd_version(self, lcd_version): '\n Sets the lcd_version of this NodesLnnHardwareNode.\n Version of the LCD panel.\n\n :param lcd_version: The lcd_version of this NodesLnnHardwareNode.\n :type: str\n ' self._lcd_version = lcd_version<|docstring|>Sets th...
cdad082be9207dcdea2c6ec6451997ac928bc16a88a918b71c1a05fe439e4063
@property def lnn(self): '\n Gets the lnn of this NodesLnnHardwareNode.\n Logical Node Number (LNN) of this node.\n\n :return: The lnn of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._lnn
Gets the lnn of this NodesLnnHardwareNode. Logical Node Number (LNN) of this node. :return: The lnn of this NodesLnnHardwareNode. :rtype: int
isi_sdk/models/nodes_lnn_hardware_node.py
lnn
Atomicology/isilon_sdk_python
0
python
@property def lnn(self): '\n Gets the lnn of this NodesLnnHardwareNode.\n Logical Node Number (LNN) of this node.\n\n :return: The lnn of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._lnn
@property def lnn(self): '\n Gets the lnn of this NodesLnnHardwareNode.\n Logical Node Number (LNN) of this node.\n\n :return: The lnn of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._lnn<|docstring|>Gets the lnn of this NodesLnnHardwareNode. Logical Node Number (L...
0c73a71b629f4ad5e1771b64a7398f8559a3f85bf9d65d456de3921b1c478234
@lnn.setter def lnn(self, lnn): '\n Sets the lnn of this NodesLnnHardwareNode.\n Logical Node Number (LNN) of this node.\n\n :param lnn: The lnn of this NodesLnnHardwareNode.\n :type: int\n ' self._lnn = lnn
Sets the lnn of this NodesLnnHardwareNode. Logical Node Number (LNN) of this node. :param lnn: The lnn of this NodesLnnHardwareNode. :type: int
isi_sdk/models/nodes_lnn_hardware_node.py
lnn
Atomicology/isilon_sdk_python
0
python
@lnn.setter def lnn(self, lnn): '\n Sets the lnn of this NodesLnnHardwareNode.\n Logical Node Number (LNN) of this node.\n\n :param lnn: The lnn of this NodesLnnHardwareNode.\n :type: int\n ' self._lnn = lnn
@lnn.setter def lnn(self, lnn): '\n Sets the lnn of this NodesLnnHardwareNode.\n Logical Node Number (LNN) of this node.\n\n :param lnn: The lnn of this NodesLnnHardwareNode.\n :type: int\n ' self._lnn = lnn<|docstring|>Sets the lnn of this NodesLnnHardwareNode. Logical Node N...
4ad9b5eaf6a00a055e6d47321e055b0be8db50233521393106c8a9d2c3c2c4e4
@property def motherboard(self): "\n Gets the motherboard of this NodesLnnHardwareNode.\n Manufacturer and model of this node's motherboard.\n\n :return: The motherboard of this NodesLnnHardwareNode.\n :rtype: str\n " return self._motherboard
Gets the motherboard of this NodesLnnHardwareNode. Manufacturer and model of this node's motherboard. :return: The motherboard of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
motherboard
Atomicology/isilon_sdk_python
0
python
@property def motherboard(self): "\n Gets the motherboard of this NodesLnnHardwareNode.\n Manufacturer and model of this node's motherboard.\n\n :return: The motherboard of this NodesLnnHardwareNode.\n :rtype: str\n " return self._motherboard
@property def motherboard(self): "\n Gets the motherboard of this NodesLnnHardwareNode.\n Manufacturer and model of this node's motherboard.\n\n :return: The motherboard of this NodesLnnHardwareNode.\n :rtype: str\n " return self._motherboard<|docstring|>Gets the motherboard o...
7262a843e31eb2278692629291f4e2291a78a4058ba1b6750c8052f5e8a99407
@motherboard.setter def motherboard(self, motherboard): "\n Sets the motherboard of this NodesLnnHardwareNode.\n Manufacturer and model of this node's motherboard.\n\n :param motherboard: The motherboard of this NodesLnnHardwareNode.\n :type: str\n " self._motherboard = mother...
Sets the motherboard of this NodesLnnHardwareNode. Manufacturer and model of this node's motherboard. :param motherboard: The motherboard of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
motherboard
Atomicology/isilon_sdk_python
0
python
@motherboard.setter def motherboard(self, motherboard): "\n Sets the motherboard of this NodesLnnHardwareNode.\n Manufacturer and model of this node's motherboard.\n\n :param motherboard: The motherboard of this NodesLnnHardwareNode.\n :type: str\n " self._motherboard = mother...
@motherboard.setter def motherboard(self, motherboard): "\n Sets the motherboard of this NodesLnnHardwareNode.\n Manufacturer and model of this node's motherboard.\n\n :param motherboard: The motherboard of this NodesLnnHardwareNode.\n :type: str\n " self._motherboard = mother...
8f0e4aa205030402227aaad1bbcb5607980e653f825c1f956833b992efa40b4a
@property def net_interfaces(self): "\n Gets the net_interfaces of this NodesLnnHardwareNode.\n Description of all this node's network interfaces.\n\n :return: The net_interfaces of this NodesLnnHardwareNode.\n :rtype: str\n " return self._net_interfaces
Gets the net_interfaces of this NodesLnnHardwareNode. Description of all this node's network interfaces. :return: The net_interfaces of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
net_interfaces
Atomicology/isilon_sdk_python
0
python
@property def net_interfaces(self): "\n Gets the net_interfaces of this NodesLnnHardwareNode.\n Description of all this node's network interfaces.\n\n :return: The net_interfaces of this NodesLnnHardwareNode.\n :rtype: str\n " return self._net_interfaces
@property def net_interfaces(self): "\n Gets the net_interfaces of this NodesLnnHardwareNode.\n Description of all this node's network interfaces.\n\n :return: The net_interfaces of this NodesLnnHardwareNode.\n :rtype: str\n " return self._net_interfaces<|docstring|>Gets the n...
e00ac68829eae33532131896b109f50a352db28fcf444cb0858fb934d6a24f62
@net_interfaces.setter def net_interfaces(self, net_interfaces): "\n Sets the net_interfaces of this NodesLnnHardwareNode.\n Description of all this node's network interfaces.\n\n :param net_interfaces: The net_interfaces of this NodesLnnHardwareNode.\n :type: str\n " self._ne...
Sets the net_interfaces of this NodesLnnHardwareNode. Description of all this node's network interfaces. :param net_interfaces: The net_interfaces of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
net_interfaces
Atomicology/isilon_sdk_python
0
python
@net_interfaces.setter def net_interfaces(self, net_interfaces): "\n Sets the net_interfaces of this NodesLnnHardwareNode.\n Description of all this node's network interfaces.\n\n :param net_interfaces: The net_interfaces of this NodesLnnHardwareNode.\n :type: str\n " self._ne...
@net_interfaces.setter def net_interfaces(self, net_interfaces): "\n Sets the net_interfaces of this NodesLnnHardwareNode.\n Description of all this node's network interfaces.\n\n :param net_interfaces: The net_interfaces of this NodesLnnHardwareNode.\n :type: str\n " self._ne...
a97037e8fb996ab5456b927b45c346d7cbd782052ebd7b1721193c9da6d38a4f
@property def nvram(self): "\n Gets the nvram of this NodesLnnHardwareNode.\n Manufacturer and model of this node's NVRAM board.\n\n :return: The nvram of this NodesLnnHardwareNode.\n :rtype: str\n " return self._nvram
Gets the nvram of this NodesLnnHardwareNode. Manufacturer and model of this node's NVRAM board. :return: The nvram of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
nvram
Atomicology/isilon_sdk_python
0
python
@property def nvram(self): "\n Gets the nvram of this NodesLnnHardwareNode.\n Manufacturer and model of this node's NVRAM board.\n\n :return: The nvram of this NodesLnnHardwareNode.\n :rtype: str\n " return self._nvram
@property def nvram(self): "\n Gets the nvram of this NodesLnnHardwareNode.\n Manufacturer and model of this node's NVRAM board.\n\n :return: The nvram of this NodesLnnHardwareNode.\n :rtype: str\n " return self._nvram<|docstring|>Gets the nvram of this NodesLnnHardwareNode. M...
d01b6c9de772fe5af341723ac3013cbecde3ff4af2926ae4fc934bc960df58cf
@nvram.setter def nvram(self, nvram): "\n Sets the nvram of this NodesLnnHardwareNode.\n Manufacturer and model of this node's NVRAM board.\n\n :param nvram: The nvram of this NodesLnnHardwareNode.\n :type: str\n " self._nvram = nvram
Sets the nvram of this NodesLnnHardwareNode. Manufacturer and model of this node's NVRAM board. :param nvram: The nvram of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
nvram
Atomicology/isilon_sdk_python
0
python
@nvram.setter def nvram(self, nvram): "\n Sets the nvram of this NodesLnnHardwareNode.\n Manufacturer and model of this node's NVRAM board.\n\n :param nvram: The nvram of this NodesLnnHardwareNode.\n :type: str\n " self._nvram = nvram
@nvram.setter def nvram(self, nvram): "\n Sets the nvram of this NodesLnnHardwareNode.\n Manufacturer and model of this node's NVRAM board.\n\n :param nvram: The nvram of this NodesLnnHardwareNode.\n :type: str\n " self._nvram = nvram<|docstring|>Sets the nvram of this NodesLn...
94e3fee03e02c2aa1b4da4bab2f7182cb781937214728b00501f424309acc5d9
@property def powersupplies(self): '\n Gets the powersupplies of this NodesLnnHardwareNode.\n Description strings for each power supply on this node.\n\n :return: The powersupplies of this NodesLnnHardwareNode.\n :rtype: list[str]\n ' return self._powersupplies
Gets the powersupplies of this NodesLnnHardwareNode. Description strings for each power supply on this node. :return: The powersupplies of this NodesLnnHardwareNode. :rtype: list[str]
isi_sdk/models/nodes_lnn_hardware_node.py
powersupplies
Atomicology/isilon_sdk_python
0
python
@property def powersupplies(self): '\n Gets the powersupplies of this NodesLnnHardwareNode.\n Description strings for each power supply on this node.\n\n :return: The powersupplies of this NodesLnnHardwareNode.\n :rtype: list[str]\n ' return self._powersupplies
@property def powersupplies(self): '\n Gets the powersupplies of this NodesLnnHardwareNode.\n Description strings for each power supply on this node.\n\n :return: The powersupplies of this NodesLnnHardwareNode.\n :rtype: list[str]\n ' return self._powersupplies<|docstring|>Get...
eb018790c63d192c76caa98cab10ab3389705b243b0139e652f318cec06f2cd5
@powersupplies.setter def powersupplies(self, powersupplies): '\n Sets the powersupplies of this NodesLnnHardwareNode.\n Description strings for each power supply on this node.\n\n :param powersupplies: The powersupplies of this NodesLnnHardwareNode.\n :type: list[str]\n ' sel...
Sets the powersupplies of this NodesLnnHardwareNode. Description strings for each power supply on this node. :param powersupplies: The powersupplies of this NodesLnnHardwareNode. :type: list[str]
isi_sdk/models/nodes_lnn_hardware_node.py
powersupplies
Atomicology/isilon_sdk_python
0
python
@powersupplies.setter def powersupplies(self, powersupplies): '\n Sets the powersupplies of this NodesLnnHardwareNode.\n Description strings for each power supply on this node.\n\n :param powersupplies: The powersupplies of this NodesLnnHardwareNode.\n :type: list[str]\n ' sel...
@powersupplies.setter def powersupplies(self, powersupplies): '\n Sets the powersupplies of this NodesLnnHardwareNode.\n Description strings for each power supply on this node.\n\n :param powersupplies: The powersupplies of this NodesLnnHardwareNode.\n :type: list[str]\n ' sel...
14bc58a2b3d432ebc0c699dcfda3656e5047ea4a0d6cf711a3d45224f32e054e
@property def processor(self): '\n Gets the processor of this NodesLnnHardwareNode.\n Number of processors and cores on this node.\n\n :return: The processor of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._processor
Gets the processor of this NodesLnnHardwareNode. Number of processors and cores on this node. :return: The processor of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
processor
Atomicology/isilon_sdk_python
0
python
@property def processor(self): '\n Gets the processor of this NodesLnnHardwareNode.\n Number of processors and cores on this node.\n\n :return: The processor of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._processor
@property def processor(self): '\n Gets the processor of this NodesLnnHardwareNode.\n Number of processors and cores on this node.\n\n :return: The processor of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._processor<|docstring|>Gets the processor of this NodesLnnH...
cb08bb3ba675f317633a7bf13fa020f61fb532839caf722d7d06cca7d03796ba
@processor.setter def processor(self, processor): '\n Sets the processor of this NodesLnnHardwareNode.\n Number of processors and cores on this node.\n\n :param processor: The processor of this NodesLnnHardwareNode.\n :type: str\n ' self._processor = processor
Sets the processor of this NodesLnnHardwareNode. Number of processors and cores on this node. :param processor: The processor of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
processor
Atomicology/isilon_sdk_python
0
python
@processor.setter def processor(self, processor): '\n Sets the processor of this NodesLnnHardwareNode.\n Number of processors and cores on this node.\n\n :param processor: The processor of this NodesLnnHardwareNode.\n :type: str\n ' self._processor = processor
@processor.setter def processor(self, processor): '\n Sets the processor of this NodesLnnHardwareNode.\n Number of processors and cores on this node.\n\n :param processor: The processor of this NodesLnnHardwareNode.\n :type: str\n ' self._processor = processor<|docstring|>Sets...
710032d912f67cdcb0b618c93429f1cee8a864e096bb61faa0af21cf938b8a52
@property def product(self): '\n Gets the product of this NodesLnnHardwareNode.\n Isilon product name.\n\n :return: The product of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._product
Gets the product of this NodesLnnHardwareNode. Isilon product name. :return: The product of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
product
Atomicology/isilon_sdk_python
0
python
@property def product(self): '\n Gets the product of this NodesLnnHardwareNode.\n Isilon product name.\n\n :return: The product of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._product
@property def product(self): '\n Gets the product of this NodesLnnHardwareNode.\n Isilon product name.\n\n :return: The product of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._product<|docstring|>Gets the product of this NodesLnnHardwareNode. Isilon product name. ...
82b992f4588232e82d8074ba9d0cc25f464cb0510289e2f27fd0fdbbdd9d5876
@product.setter def product(self, product): '\n Sets the product of this NodesLnnHardwareNode.\n Isilon product name.\n\n :param product: The product of this NodesLnnHardwareNode.\n :type: str\n ' self._product = product
Sets the product of this NodesLnnHardwareNode. Isilon product name. :param product: The product of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
product
Atomicology/isilon_sdk_python
0
python
@product.setter def product(self, product): '\n Sets the product of this NodesLnnHardwareNode.\n Isilon product name.\n\n :param product: The product of this NodesLnnHardwareNode.\n :type: str\n ' self._product = product
@product.setter def product(self, product): '\n Sets the product of this NodesLnnHardwareNode.\n Isilon product name.\n\n :param product: The product of this NodesLnnHardwareNode.\n :type: str\n ' self._product = product<|docstring|>Sets the product of this NodesLnnHardwareNod...
4843bbd32209abec72dcc3c9fb6c993f07b684ef07496fca697ede6b07938506
@property def ram(self): '\n Gets the ram of this NodesLnnHardwareNode.\n Size of RAM in bytes.\n\n :return: The ram of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._ram
Gets the ram of this NodesLnnHardwareNode. Size of RAM in bytes. :return: The ram of this NodesLnnHardwareNode. :rtype: int
isi_sdk/models/nodes_lnn_hardware_node.py
ram
Atomicology/isilon_sdk_python
0
python
@property def ram(self): '\n Gets the ram of this NodesLnnHardwareNode.\n Size of RAM in bytes.\n\n :return: The ram of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._ram
@property def ram(self): '\n Gets the ram of this NodesLnnHardwareNode.\n Size of RAM in bytes.\n\n :return: The ram of this NodesLnnHardwareNode.\n :rtype: int\n ' return self._ram<|docstring|>Gets the ram of this NodesLnnHardwareNode. Size of RAM in bytes. :return: The ram ...
10b1eaa4eae270f31752ec4cfde44e517d788015150a5ea5f9f8a96afa87872a
@ram.setter def ram(self, ram): '\n Sets the ram of this NodesLnnHardwareNode.\n Size of RAM in bytes.\n\n :param ram: The ram of this NodesLnnHardwareNode.\n :type: int\n ' self._ram = ram
Sets the ram of this NodesLnnHardwareNode. Size of RAM in bytes. :param ram: The ram of this NodesLnnHardwareNode. :type: int
isi_sdk/models/nodes_lnn_hardware_node.py
ram
Atomicology/isilon_sdk_python
0
python
@ram.setter def ram(self, ram): '\n Sets the ram of this NodesLnnHardwareNode.\n Size of RAM in bytes.\n\n :param ram: The ram of this NodesLnnHardwareNode.\n :type: int\n ' self._ram = ram
@ram.setter def ram(self, ram): '\n Sets the ram of this NodesLnnHardwareNode.\n Size of RAM in bytes.\n\n :param ram: The ram of this NodesLnnHardwareNode.\n :type: int\n ' self._ram = ram<|docstring|>Sets the ram of this NodesLnnHardwareNode. Size of RAM in bytes. :param ra...
8ac45b661d44b3bd9a7a281c1e913f29af81c669d277b79033ee63a74f4bb7ae
@property def serial_number(self): '\n Gets the serial_number of this NodesLnnHardwareNode.\n Serial number of this node.\n\n :return: The serial_number of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._serial_number
Gets the serial_number of this NodesLnnHardwareNode. Serial number of this node. :return: The serial_number of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
serial_number
Atomicology/isilon_sdk_python
0
python
@property def serial_number(self): '\n Gets the serial_number of this NodesLnnHardwareNode.\n Serial number of this node.\n\n :return: The serial_number of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._serial_number
@property def serial_number(self): '\n Gets the serial_number of this NodesLnnHardwareNode.\n Serial number of this node.\n\n :return: The serial_number of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._serial_number<|docstring|>Gets the serial_number of this NodesL...
41cc538dd9657c1a7d354c787615b76e4a41729a08fb270b66f064bf2ac00a2f
@serial_number.setter def serial_number(self, serial_number): '\n Sets the serial_number of this NodesLnnHardwareNode.\n Serial number of this node.\n\n :param serial_number: The serial_number of this NodesLnnHardwareNode.\n :type: str\n ' self._serial_number = serial_number
Sets the serial_number of this NodesLnnHardwareNode. Serial number of this node. :param serial_number: The serial_number of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
serial_number
Atomicology/isilon_sdk_python
0
python
@serial_number.setter def serial_number(self, serial_number): '\n Sets the serial_number of this NodesLnnHardwareNode.\n Serial number of this node.\n\n :param serial_number: The serial_number of this NodesLnnHardwareNode.\n :type: str\n ' self._serial_number = serial_number
@serial_number.setter def serial_number(self, serial_number): '\n Sets the serial_number of this NodesLnnHardwareNode.\n Serial number of this node.\n\n :param serial_number: The serial_number of this NodesLnnHardwareNode.\n :type: str\n ' self._serial_number = serial_number<|...
e1171deddf79bc7cd04028a4f956b2aa20af719a2b81f71a370c396dab29222f
@property def series(self): '\n Gets the series of this NodesLnnHardwareNode.\n Series of this node (X, I, NL, etc.).\n\n :return: The series of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._series
Gets the series of this NodesLnnHardwareNode. Series of this node (X, I, NL, etc.). :return: The series of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
series
Atomicology/isilon_sdk_python
0
python
@property def series(self): '\n Gets the series of this NodesLnnHardwareNode.\n Series of this node (X, I, NL, etc.).\n\n :return: The series of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._series
@property def series(self): '\n Gets the series of this NodesLnnHardwareNode.\n Series of this node (X, I, NL, etc.).\n\n :return: The series of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._series<|docstring|>Gets the series of this NodesLnnHardwareNode. Series of...
9013102c7d8289ad4a030aa3dc3b0e8ad87c900430dc9c48c3d3db63d1300029
@series.setter def series(self, series): '\n Sets the series of this NodesLnnHardwareNode.\n Series of this node (X, I, NL, etc.).\n\n :param series: The series of this NodesLnnHardwareNode.\n :type: str\n ' self._series = series
Sets the series of this NodesLnnHardwareNode. Series of this node (X, I, NL, etc.). :param series: The series of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
series
Atomicology/isilon_sdk_python
0
python
@series.setter def series(self, series): '\n Sets the series of this NodesLnnHardwareNode.\n Series of this node (X, I, NL, etc.).\n\n :param series: The series of this NodesLnnHardwareNode.\n :type: str\n ' self._series = series
@series.setter def series(self, series): '\n Sets the series of this NodesLnnHardwareNode.\n Series of this node (X, I, NL, etc.).\n\n :param series: The series of this NodesLnnHardwareNode.\n :type: str\n ' self._series = series<|docstring|>Sets the series of this NodesLnnHar...
3f8bc68e752a6f2182245ee98f85a37805b19ecd82561fd8922f2b72792e9b2c
@property def storage_class(self): '\n Gets the storage_class of this NodesLnnHardwareNode.\n Storage class of this node (storage or diskless).\n\n :return: The storage_class of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._storage_class
Gets the storage_class of this NodesLnnHardwareNode. Storage class of this node (storage or diskless). :return: The storage_class of this NodesLnnHardwareNode. :rtype: str
isi_sdk/models/nodes_lnn_hardware_node.py
storage_class
Atomicology/isilon_sdk_python
0
python
@property def storage_class(self): '\n Gets the storage_class of this NodesLnnHardwareNode.\n Storage class of this node (storage or diskless).\n\n :return: The storage_class of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._storage_class
@property def storage_class(self): '\n Gets the storage_class of this NodesLnnHardwareNode.\n Storage class of this node (storage or diskless).\n\n :return: The storage_class of this NodesLnnHardwareNode.\n :rtype: str\n ' return self._storage_class<|docstring|>Gets the storag...
e72d70ef0d702c249b9f2b86fc94844779476a96742af7bc8042351e8c346dfc
@storage_class.setter def storage_class(self, storage_class): '\n Sets the storage_class of this NodesLnnHardwareNode.\n Storage class of this node (storage or diskless).\n\n :param storage_class: The storage_class of this NodesLnnHardwareNode.\n :type: str\n ' self._storage_c...
Sets the storage_class of this NodesLnnHardwareNode. Storage class of this node (storage or diskless). :param storage_class: The storage_class of this NodesLnnHardwareNode. :type: str
isi_sdk/models/nodes_lnn_hardware_node.py
storage_class
Atomicology/isilon_sdk_python
0
python
@storage_class.setter def storage_class(self, storage_class): '\n Sets the storage_class of this NodesLnnHardwareNode.\n Storage class of this node (storage or diskless).\n\n :param storage_class: The storage_class of this NodesLnnHardwareNode.\n :type: str\n ' self._storage_c...
@storage_class.setter def storage_class(self, storage_class): '\n Sets the storage_class of this NodesLnnHardwareNode.\n Storage class of this node (storage or diskless).\n\n :param storage_class: The storage_class of this NodesLnnHardwareNode.\n :type: str\n ' self._storage_c...
f82945678aa8239ce359f4d053efe9cd26bebb743866b0d3ca2cc7dcb18ed12b
def to_dict(self): '\n Returns the model properties as a dict\n ' result = {} for (attr, _) in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), v...
Returns the model properties as a dict
isi_sdk/models/nodes_lnn_hardware_node.py
to_dict
Atomicology/isilon_sdk_python
0
python
def to_dict(self): '\n \n ' result = {} for (attr, _) in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) elif hasattr(value, 'to...
def to_dict(self): '\n \n ' result = {} for (attr, _) in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) elif hasattr(value, 'to...
c373d87dd29c1e96dce460ab571bff86e58edb298ba83c85d8cc7603a6505de4
def to_str(self): '\n Returns the string representation of the model\n ' return pformat(self.to_dict())
Returns the string representation of the model
isi_sdk/models/nodes_lnn_hardware_node.py
to_str
Atomicology/isilon_sdk_python
0
python
def to_str(self): '\n \n ' return pformat(self.to_dict())
def to_str(self): '\n \n ' return pformat(self.to_dict())<|docstring|>Returns the string representation of the model<|endoftext|>
1034ff7dd2eef24d21e3c2fa7409b793ab5cbb8cd75a2eb0ab3e62604b26264d
def __repr__(self): '\n For `print` and `pprint`\n ' return self.to_str()
For `print` and `pprint`
isi_sdk/models/nodes_lnn_hardware_node.py
__repr__
Atomicology/isilon_sdk_python
0
python
def __repr__(self): '\n \n ' return self.to_str()
def __repr__(self): '\n \n ' return self.to_str()<|docstring|>For `print` and `pprint`<|endoftext|>
a43b3ce7478646f0122f200e4de04f4f5ed99329a4b75930eecef4ff54a23351
def __eq__(self, other): '\n Returns true if both objects are equal\n ' return (self.__dict__ == other.__dict__)
Returns true if both objects are equal
isi_sdk/models/nodes_lnn_hardware_node.py
__eq__
Atomicology/isilon_sdk_python
0
python
def __eq__(self, other): '\n \n ' return (self.__dict__ == other.__dict__)
def __eq__(self, other): '\n \n ' return (self.__dict__ == other.__dict__)<|docstring|>Returns true if both objects are equal<|endoftext|>
2a0b1bfcb00f209de59fbfddd6b5ec2568f26333e15ce6f21b98dbda512b87fd
def __ne__(self, other): ' \n Returns true if both objects are not equal\n ' return (not (self == other))
Returns true if both objects are not equal
isi_sdk/models/nodes_lnn_hardware_node.py
__ne__
Atomicology/isilon_sdk_python
0
python
def __ne__(self, other): ' \n \n ' return (not (self == other))
def __ne__(self, other): ' \n \n ' return (not (self == other))<|docstring|>Returns true if both objects are not equal<|endoftext|>
746de7dc9c9cff2118e8029f27cfb1f767fe573f8c08253df6f65d337d577270
def maxIncreaseKeepingSkyline(self, grid): '\n :type grid: List[List[int]]\n :rtype: int\n ' size = len(grid) row_max = ([0] * size) col_max = ([0] * size) for row in range(size): for col in range(size): if (grid[row][col] > row_max[row]): row...
:type grid: List[List[int]] :rtype: int
leetcode/0807 Max Increase to Keep City Skyline.py
maxIncreaseKeepingSkyline
jaredliw/python-question-bank
1
python
def maxIncreaseKeepingSkyline(self, grid): '\n :type grid: List[List[int]]\n :rtype: int\n ' size = len(grid) row_max = ([0] * size) col_max = ([0] * size) for row in range(size): for col in range(size): if (grid[row][col] > row_max[row]): row...
def maxIncreaseKeepingSkyline(self, grid): '\n :type grid: List[List[int]]\n :rtype: int\n ' size = len(grid) row_max = ([0] * size) col_max = ([0] * size) for row in range(size): for col in range(size): if (grid[row][col] > row_max[row]): row...
0c37dd463d9c383e57d2f39b25c250728a77a4ffd8e2e99562de20c801edec6f
def get_dict(self, reverse=False): "\n Get the source and target dictionary.\n\n Args:\n reverse (bool): wether to reverse key and value in dictionary,\n i.e. key: value to value: key.\n \n Returns:\n Two dictionaries, the source and target dictionary.\n ...
Get the source and target dictionary. Args: reverse (bool): wether to reverse key and value in dictionary, i.e. key: value to value: key. Returns: Two dictionaries, the source and target dictionary. Examples: .. code-block:: python from paddle.text.datasets import WMT14 wmt14 = ...
python/paddle/text/datasets/wmt14.py
get_dict
tangzhiyi11/Paddle
17,085
python
def get_dict(self, reverse=False): "\n Get the source and target dictionary.\n\n Args:\n reverse (bool): wether to reverse key and value in dictionary,\n i.e. key: value to value: key.\n \n Returns:\n Two dictionaries, the source and target dictionary.\n ...
def get_dict(self, reverse=False): "\n Get the source and target dictionary.\n\n Args:\n reverse (bool): wether to reverse key and value in dictionary,\n i.e. key: value to value: key.\n \n Returns:\n Two dictionaries, the source and target dictionary.\n ...
88468e7950663cb4115f7b7d24379c1dab9ce04d811d7c1afefa125d06842bb1
def is_active(self): 'Skip hosts with unsupported deployment types.' deployment_type = self.get_var('openshift_deployment_type') has_valid_deployment_type = (deployment_type in DEPLOYMENT_IMAGE_INFO) return (super(DockerImageAvailability, self).is_active() and has_valid_deployment_type)
Skip hosts with unsupported deployment types.
roles/openshift_health_checker/openshift_checks/docker_image_availability.py
is_active
Ravichandramanupati/openshift
1
python
def is_active(self): deployment_type = self.get_var('openshift_deployment_type') has_valid_deployment_type = (deployment_type in DEPLOYMENT_IMAGE_INFO) return (super(DockerImageAvailability, self).is_active() and has_valid_deployment_type)
def is_active(self): deployment_type = self.get_var('openshift_deployment_type') has_valid_deployment_type = (deployment_type in DEPLOYMENT_IMAGE_INFO) return (super(DockerImageAvailability, self).is_active() and has_valid_deployment_type)<|docstring|>Skip hosts with unsupported deployment types.<|endo...
b8c302020288666b735685512346218740594b2886a6f3175d6e6bd3e49ad1d5
def required_images(self): "\n Determine which images we expect to need for this host.\n Returns: a set of required images like 'openshift/origin:v3.6'\n\n The thorny issue of determining the image names from the variables is under consideration\n via https://github.com/openshift/openshi...
Determine which images we expect to need for this host. Returns: a set of required images like 'openshift/origin:v3.6' The thorny issue of determining the image names from the variables is under consideration via https://github.com/openshift/openshift-ansible/issues/4415 For now we operate as follows: * For container...
roles/openshift_health_checker/openshift_checks/docker_image_availability.py
required_images
Ravichandramanupati/openshift
1
python
def required_images(self): "\n Determine which images we expect to need for this host.\n Returns: a set of required images like 'openshift/origin:v3.6'\n\n The thorny issue of determining the image names from the variables is under consideration\n via https://github.com/openshift/openshi...
def required_images(self): "\n Determine which images we expect to need for this host.\n Returns: a set of required images like 'openshift/origin:v3.6'\n\n The thorny issue of determining the image names from the variables is under consideration\n via https://github.com/openshift/openshi...
b2b76ec7902b57e38a5d8409a9326e07ce3200086ab49ec7b5a56449521a3aa5
def local_images(self, images): 'Filter a list of images and return those available locally.' found_images = [] for image in images: imglist = ([image] + [((reg + '/') + image) for reg in self.registries['configured']]) if self.is_image_local(imglist): found_images.append(image) ...
Filter a list of images and return those available locally.
roles/openshift_health_checker/openshift_checks/docker_image_availability.py
local_images
Ravichandramanupati/openshift
1
python
def local_images(self, images): found_images = [] for image in images: imglist = ([image] + [((reg + '/') + image) for reg in self.registries['configured']]) if self.is_image_local(imglist): found_images.append(image) return found_images
def local_images(self, images): found_images = [] for image in images: imglist = ([image] + [((reg + '/') + image) for reg in self.registries['configured']]) if self.is_image_local(imglist): found_images.append(image) return found_images<|docstring|>Filter a list of images a...
66bf697cc2319c6ac963f64c403347f7499cb5dd9a4589719cac50cc0d8b8226
def is_image_local(self, image): 'Check if image is already in local docker index.' result = self.execute_module('docker_image_facts', {'name': image}) return (bool(result.get('images')) and (not result.get('failed')))
Check if image is already in local docker index.
roles/openshift_health_checker/openshift_checks/docker_image_availability.py
is_image_local
Ravichandramanupati/openshift
1
python
def is_image_local(self, image): result = self.execute_module('docker_image_facts', {'name': image}) return (bool(result.get('images')) and (not result.get('failed')))
def is_image_local(self, image): result = self.execute_module('docker_image_facts', {'name': image}) return (bool(result.get('images')) and (not result.get('failed')))<|docstring|>Check if image is already in local docker index.<|endoftext|>
0a3e552597dbe9c5c8c9ab8b7628125fb21521e125c2b8e5c75ae6c3cddc452b
def ensure_list(self, registry_param): 'Return the task var as a list.' registry = self.get_var(registry_param, default=[]) if (not isinstance(registry, six.string_types)): return list(registry) return self.normalize(registry)
Return the task var as a list.
roles/openshift_health_checker/openshift_checks/docker_image_availability.py
ensure_list
Ravichandramanupati/openshift
1
python
def ensure_list(self, registry_param): registry = self.get_var(registry_param, default=[]) if (not isinstance(registry, six.string_types)): return list(registry) return self.normalize(registry)
def ensure_list(self, registry_param): registry = self.get_var(registry_param, default=[]) if (not isinstance(registry, six.string_types)): return list(registry) return self.normalize(registry)<|docstring|>Return the task var as a list.<|endoftext|>
e6bc028fbe78664ca9605cafbb5edd8647e506ba3f5a94cb217492365804ca90
def available_images(self, images): 'Search remotely for images. Returns: list of images found.' return [image for image in images if self.is_available_skopeo_image(image)]
Search remotely for images. Returns: list of images found.
roles/openshift_health_checker/openshift_checks/docker_image_availability.py
available_images
Ravichandramanupati/openshift
1
python
def available_images(self, images): return [image for image in images if self.is_available_skopeo_image(image)]
def available_images(self, images): return [image for image in images if self.is_available_skopeo_image(image)]<|docstring|>Search remotely for images. Returns: list of images found.<|endoftext|>
e46096cddc88a9b08c30a24e4d0f07c46cd3dfd8775f90465188f7a89c6ba0f1
def is_available_skopeo_image(self, image): 'Use Skopeo to determine if required image exists in known registry(s).' registries = self.registries['configured'] if (image.count('/') > 1): (registry, image) = image.split('/', 1) registries = [registry] for registry in registries: i...
Use Skopeo to determine if required image exists in known registry(s).
roles/openshift_health_checker/openshift_checks/docker_image_availability.py
is_available_skopeo_image
Ravichandramanupati/openshift
1
python
def is_available_skopeo_image(self, image): registries = self.registries['configured'] if (image.count('/') > 1): (registry, image) = image.split('/', 1) registries = [registry] for registry in registries: if (registry in self.registries['blocked']): continue ...
def is_available_skopeo_image(self, image): registries = self.registries['configured'] if (image.count('/') > 1): (registry, image) = image.split('/', 1) registries = [registry] for registry in registries: if (registry in self.registries['blocked']): continue ...
24825f1f37cf62811e5102fe923cd5f76a7331cc3d5b69df654a06abe0e3b24f
def connect_to_registry(self, registry): 'Use ansible wait_for module to test connectivity from host to registry. Returns bool.' (host, _, port) = registry.partition(':') port = (port or 443) args = dict(host=host, port=port, state='started', timeout=30) result = self.execute_module('wait_for', args...
Use ansible wait_for module to test connectivity from host to registry. Returns bool.
roles/openshift_health_checker/openshift_checks/docker_image_availability.py
connect_to_registry
Ravichandramanupati/openshift
1
python
def connect_to_registry(self, registry): (host, _, port) = registry.partition(':') port = (port or 443) args = dict(host=host, port=port, state='started', timeout=30) result = self.execute_module('wait_for', args) return ((result.get('rc', 0) == 0) and (not result.get('failed')))
def connect_to_registry(self, registry): (host, _, port) = registry.partition(':') port = (port or 443) args = dict(host=host, port=port, state='started', timeout=30) result = self.execute_module('wait_for', args) return ((result.get('rc', 0) == 0) and (not result.get('failed')))<|docstring|>Us...
acfefa687098da548b52f0051504b5cc956c735c3bac9662661807acd5a36450
def decodeString(self, s): '\n :type s: str\n :rtype: str\n ' stack = [] cur_str = '' i = 0 while (i < len(s)): num = 0 while ((i < len(s)) and s[i].isdigit()): num = (((num * 10) + ord(s[i])) - ord('0')) i += 1 if (num > 0): ...
:type s: str :rtype: str
LeetCode/394. Decode String.py
decodeString
ctc316/algorithm-python
0
python
def decodeString(self, s): '\n :type s: str\n :rtype: str\n ' stack = [] cur_str = i = 0 while (i < len(s)): num = 0 while ((i < len(s)) and s[i].isdigit()): num = (((num * 10) + ord(s[i])) - ord('0')) i += 1 if (num > 0): ...
def decodeString(self, s): '\n :type s: str\n :rtype: str\n ' stack = [] cur_str = i = 0 while (i < len(s)): num = 0 while ((i < len(s)) and s[i].isdigit()): num = (((num * 10) + ord(s[i])) - ord('0')) i += 1 if (num > 0): ...
d8c4ccfa2d12d400eecfd1ee9ff94a3ad43522f304f350fade9499e0b17dc98e
def setup(hass, config): 'Activate Tahoma component.' from tahoma_api import TahomaApi conf = config[DOMAIN] username = conf.get(CONF_USERNAME) password = conf.get(CONF_PASSWORD) exclude = conf.get(CONF_EXCLUDE) try: api = TahomaApi(username, password) except RequestException: ...
Activate Tahoma component.
homeassistant/components/tahoma.py
setup
spacesuitdiver/home-assistant
2
python
def setup(hass, config): from tahoma_api import TahomaApi conf = config[DOMAIN] username = conf.get(CONF_USERNAME) password = conf.get(CONF_PASSWORD) exclude = conf.get(CONF_EXCLUDE) try: api = TahomaApi(username, password) except RequestException: _LOGGER.exception('Err...
def setup(hass, config): from tahoma_api import TahomaApi conf = config[DOMAIN] username = conf.get(CONF_USERNAME) password = conf.get(CONF_PASSWORD) exclude = conf.get(CONF_EXCLUDE) try: api = TahomaApi(username, password) except RequestException: _LOGGER.exception('Err...
5edb8bc8beb95ab5b221fa16add3007e5e1b208d38c9dad492656a7e2db5c844
def map_tahoma_device(tahoma_device): 'Map Tahoma device types to Home Assistant components.' return TAHOMA_TYPES.get(tahoma_device.type)
Map Tahoma device types to Home Assistant components.
homeassistant/components/tahoma.py
map_tahoma_device
spacesuitdiver/home-assistant
2
python
def map_tahoma_device(tahoma_device): return TAHOMA_TYPES.get(tahoma_device.type)
def map_tahoma_device(tahoma_device): return TAHOMA_TYPES.get(tahoma_device.type)<|docstring|>Map Tahoma device types to Home Assistant components.<|endoftext|>
dc5139db639a0c2c196549209b77ae5278a667e558ea8b6f5d8fd80a91fa4515
def __init__(self, tahoma_device, controller): 'Initialize the device.' self.tahoma_device = tahoma_device self.controller = controller self._name = self.tahoma_device.label
Initialize the device.
homeassistant/components/tahoma.py
__init__
spacesuitdiver/home-assistant
2
python
def __init__(self, tahoma_device, controller): self.tahoma_device = tahoma_device self.controller = controller self._name = self.tahoma_device.label
def __init__(self, tahoma_device, controller): self.tahoma_device = tahoma_device self.controller = controller self._name = self.tahoma_device.label<|docstring|>Initialize the device.<|endoftext|>
959514ff3ad36bfa3d9e493ec80719a74614a7e62c186c5799451855e3d3f810
@property def name(self): 'Return the name of the device.' return self._name
Return the name of the device.
homeassistant/components/tahoma.py
name
spacesuitdiver/home-assistant
2
python
@property def name(self): return self._name
@property def name(self): return self._name<|docstring|>Return the name of the device.<|endoftext|>
ab5053a293614909330db551f622231e2b11d0748cea457a389b7f78da0c4956
@property def device_state_attributes(self): 'Return the state attributes of the device.' return {'tahoma_device_id': self.tahoma_device.url}
Return the state attributes of the device.
homeassistant/components/tahoma.py
device_state_attributes
spacesuitdiver/home-assistant
2
python
@property def device_state_attributes(self): return {'tahoma_device_id': self.tahoma_device.url}
@property def device_state_attributes(self): return {'tahoma_device_id': self.tahoma_device.url}<|docstring|>Return the state attributes of the device.<|endoftext|>
accc07b441f37ed65e4e652c6ea4ef6c7adb6c9e0c10b1d44e6b3381c909d6c6
def apply_action(self, cmd_name, *args): 'Apply Action to Device.' from tahoma_api import Action action = Action(self.tahoma_device.url) action.add_command(cmd_name, *args) self.controller.apply_actions('HomeAssistant', [action])
Apply Action to Device.
homeassistant/components/tahoma.py
apply_action
spacesuitdiver/home-assistant
2
python
def apply_action(self, cmd_name, *args): from tahoma_api import Action action = Action(self.tahoma_device.url) action.add_command(cmd_name, *args) self.controller.apply_actions('HomeAssistant', [action])
def apply_action(self, cmd_name, *args): from tahoma_api import Action action = Action(self.tahoma_device.url) action.add_command(cmd_name, *args) self.controller.apply_actions('HomeAssistant', [action])<|docstring|>Apply Action to Device.<|endoftext|>
85d882424c17c603d93835e84692346d50c4a24fde4038ae91137fcc00cb5a70
@abstractmethod def _train_epoch(self, epoch): '\n Training logic for an epoch\n\n :param epoch: Current epoch number\n ' raise NotImplementedError
Training logic for an epoch :param epoch: Current epoch number
base/base_trainer.py
_train_epoch
dll-ncai/AI-ForestWatch
2
python
@abstractmethod def _train_epoch(self, epoch): '\n Training logic for an epoch\n\n :param epoch: Current epoch number\n ' raise NotImplementedError
@abstractmethod def _train_epoch(self, epoch): '\n Training logic for an epoch\n\n :param epoch: Current epoch number\n ' raise NotImplementedError<|docstring|>Training logic for an epoch :param epoch: Current epoch number<|endoftext|>
8af4bfe45ee20e8ae379c5f0cffbbf6eb48e0d9582ff07bdaf814abcf60e0a1d
def train(self): '\n Full training logic\n ' not_improved_count = 0 for epoch in range(self.start_epoch, (self.epochs + 1)): result = self._train_epoch(epoch) log = {'epoch': epoch} log.update(result) for (key, value) in log.items(): self.logger.info...
Full training logic
base/base_trainer.py
train
dll-ncai/AI-ForestWatch
2
python
def train(self): '\n \n ' not_improved_count = 0 for epoch in range(self.start_epoch, (self.epochs + 1)): result = self._train_epoch(epoch) log = {'epoch': epoch} log.update(result) for (key, value) in log.items(): self.logger.info(' {:15s}: {}'.f...
def train(self): '\n \n ' not_improved_count = 0 for epoch in range(self.start_epoch, (self.epochs + 1)): result = self._train_epoch(epoch) log = {'epoch': epoch} log.update(result) for (key, value) in log.items(): self.logger.info(' {:15s}: {}'.f...
1010dd8d9e78d374e5d48a8fcb65bf6a7391a0a1fc4c2cafb03d1f1a7e2eaac5
def _save_checkpoint(self, epoch, save_best=False): "\n Saving checkpoints\n\n :param epoch: current epoch number\n :param log: logging information of the epoch\n :param save_best: if True, rename the saved checkpoint to 'model_best.pth'\n " arch = type(self.model).__name__ ...
Saving checkpoints :param epoch: current epoch number :param log: logging information of the epoch :param save_best: if True, rename the saved checkpoint to 'model_best.pth'
base/base_trainer.py
_save_checkpoint
dll-ncai/AI-ForestWatch
2
python
def _save_checkpoint(self, epoch, save_best=False): "\n Saving checkpoints\n\n :param epoch: current epoch number\n :param log: logging information of the epoch\n :param save_best: if True, rename the saved checkpoint to 'model_best.pth'\n " arch = type(self.model).__name__ ...
def _save_checkpoint(self, epoch, save_best=False): "\n Saving checkpoints\n\n :param epoch: current epoch number\n :param log: logging information of the epoch\n :param save_best: if True, rename the saved checkpoint to 'model_best.pth'\n " arch = type(self.model).__name__ ...
af3f372c9b3974ed607b0f56f02ad89e2fd386c3cb85be38cf6d8044d10650c2
def _resume_checkpoint(self, resume_path): '\n Resume from saved checkpoints\n\n :param resume_path: Checkpoint path to be resumed\n ' resume_path = str(resume_path) self.logger.info('Loading checkpoint: {} ...'.format(resume_path)) checkpoint = torch.load(resume_path) if (not (...
Resume from saved checkpoints :param resume_path: Checkpoint path to be resumed
base/base_trainer.py
_resume_checkpoint
dll-ncai/AI-ForestWatch
2
python
def _resume_checkpoint(self, resume_path): '\n Resume from saved checkpoints\n\n :param resume_path: Checkpoint path to be resumed\n ' resume_path = str(resume_path) self.logger.info('Loading checkpoint: {} ...'.format(resume_path)) checkpoint = torch.load(resume_path) if (not (...
def _resume_checkpoint(self, resume_path): '\n Resume from saved checkpoints\n\n :param resume_path: Checkpoint path to be resumed\n ' resume_path = str(resume_path) self.logger.info('Loading checkpoint: {} ...'.format(resume_path)) checkpoint = torch.load(resume_path) if (not (...
7ffc895412f4ab1d780b805109ba038f0c87a49f084f5f0208162863ef84f70e
@classmethod def _from_json_data(cls, client: 'BotClient', json_data: Mapping[(str, Any)]) -> 'Role': 'Converts JSON data received from the API into a valid :class:`Role` instance. For internal use only.\n\n See Also:\n :meth:`JsonAPIModel.from_json_data`\n\n Examples:\n .. docte...
Converts JSON data received from the API into a valid :class:`Role` instance. For internal use only. See Also: :meth:`JsonAPIModel.from_json_data` Examples: .. doctest:: >>> from serpcord.utils.model import compare_attributes >>> role_data = { ... "id": "41771983423143936", ...
serpcord/models/permissions.py
_from_json_data
PgBiel/serpcord
0
python
@classmethod def _from_json_data(cls, client: 'BotClient', json_data: Mapping[(str, Any)]) -> 'Role': 'Converts JSON data received from the API into a valid :class:`Role` instance. For internal use only.\n\n See Also:\n :meth:`JsonAPIModel.from_json_data`\n\n Examples:\n .. docte...
@classmethod def _from_json_data(cls, client: 'BotClient', json_data: Mapping[(str, Any)]) -> 'Role': 'Converts JSON data received from the API into a valid :class:`Role` instance. For internal use only.\n\n See Also:\n :meth:`JsonAPIModel.from_json_data`\n\n Examples:\n .. docte...
cc5168e9137a6ea6586f536f0ea34c8c672f5e8fc97d9d4ddf16f2df0f060e63
def ip_int_to_str(val): '\n That function takes a 0..2**32 interger and converts it into a string IP\n address.\n For example: 16909060 aka (1<<24)+(2<<16)+(3<<8)+4 will return 1.2.3.4\n ' if (not isinstance(val, int)): raise TypeError('ip_int_to_str expects a number') if ((val < 0) or (...
That function takes a 0..2**32 interger and converts it into a string IP address. For example: 16909060 aka (1<<24)+(2<<16)+(3<<8)+4 will return 1.2.3.4
extensions/vpn/management/commands/vpnconfig.py
ip_int_to_str
nirgal/ngw
0
python
def ip_int_to_str(val): '\n That function takes a 0..2**32 interger and converts it into a string IP\n address.\n For example: 16909060 aka (1<<24)+(2<<16)+(3<<8)+4 will return 1.2.3.4\n ' if (not isinstance(val, int)): raise TypeError('ip_int_to_str expects a number') if ((val < 0) or (...
def ip_int_to_str(val): '\n That function takes a 0..2**32 interger and converts it into a string IP\n address.\n For example: 16909060 aka (1<<24)+(2<<16)+(3<<8)+4 will return 1.2.3.4\n ' if (not isinstance(val, int)): raise TypeError('ip_int_to_str expects a number') if ((val < 0) or (...
c4301f9d6af2ba79e428114e164e31a289dffe5284fcb8b302d80201ef0d822f
def ip_str_to_int(val): '\n That function takes a string with a IP address and converts it to a integer\n For example: 1.2.3.4 returns 16909060 aka (1<<24)+(2<<16)+(3<<8)+4\n ' split = re.fullmatch('(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)', val) if (split is None): raise ValueError('Not an IP add...
That function takes a string with a IP address and converts it to a integer For example: 1.2.3.4 returns 16909060 aka (1<<24)+(2<<16)+(3<<8)+4
extensions/vpn/management/commands/vpnconfig.py
ip_str_to_int
nirgal/ngw
0
python
def ip_str_to_int(val): '\n That function takes a string with a IP address and converts it to a integer\n For example: 1.2.3.4 returns 16909060 aka (1<<24)+(2<<16)+(3<<8)+4\n ' split = re.fullmatch('(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)', val) if (split is None): raise ValueError('Not an IP add...
def ip_str_to_int(val): '\n That function takes a string with a IP address and converts it to a integer\n For example: 1.2.3.4 returns 16909060 aka (1<<24)+(2<<16)+(3<<8)+4\n ' split = re.fullmatch('(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)', val) if (split is None): raise ValueError('Not an IP add...
b2d4384dd720c2582290e8a4a5b84951d57e914730008261305347a7fcc3da03
def emoji_of_status(status: str) -> str: 'Returns the emoji associated to a docker container status.\n\n The emojis are as follows:\n * ``exited``: ⏹,\n * ``paused``: ⏸,\n * ``restarting``: ↩,\n * ``running``: ▶,\n * otherwise: ❓.\n ' return {'exited': '⏹', 'paused': '⏸'...
Returns the emoji associated to a docker container status. The emojis are as follows: * ``exited``: ⏹, * ``paused``: ⏸, * ``restarting``: ↩, * ``running``: ▶, * otherwise: ❓.
src/docker_utils.py
emoji_of_status
altaris/docker-telegram-bot
0
python
def emoji_of_status(status: str) -> str: 'Returns the emoji associated to a docker container status.\n\n The emojis are as follows:\n * ``exited``: ⏹,\n * ``paused``: ⏸,\n * ``restarting``: ↩,\n * ``running``: ▶,\n * otherwise: ❓.\n ' return {'exited': '⏹', 'paused': '⏸'...
def emoji_of_status(status: str) -> str: 'Returns the emoji associated to a docker container status.\n\n The emojis are as follows:\n * ``exited``: ⏹,\n * ``paused``: ⏸,\n * ``restarting``: ↩,\n * ``running``: ▶,\n * otherwise: ❓.\n ' return {'exited': '⏹', 'paused': '⏸'...
881d7084d3cff91221a61c2c6807e9a402c9e3a709437d7d2e07a14c43467a62
def get_container(self, container_name: str) -> Optional[Container]: 'Gets a container.\n\n If the container does not exist, return ``None`` and reports.\n ' container = None try: container = self.docker_client.containers.get(container_name) except docker.errors.NotFound: s...
Gets a container. If the container does not exist, return ``None`` and reports.
src/docker_utils.py
get_container
altaris/docker-telegram-bot
0
python
def get_container(self, container_name: str) -> Optional[Container]: 'Gets a container.\n\n If the container does not exist, return ``None`` and reports.\n ' container = None try: container = self.docker_client.containers.get(container_name) except docker.errors.NotFound: s...
def get_container(self, container_name: str) -> Optional[Container]: 'Gets a container.\n\n If the container does not exist, return ``None`` and reports.\n ' container = None try: container = self.docker_client.containers.get(container_name) except docker.errors.NotFound: s...
3cf41b45c5b1303c57c2aa866b1fabe58cf9249fb2309e54b6bdcf1784b3c50a
@property def docker_client(self) -> DockerClient: 'Returns the ``docker.DockerClient`` of this command.\n ' client = self._args_dict.get('docker_client', None) if (not isinstance(client, DockerClient)): raise ValueError('A DockerCommand must have a DockerClient as default value for key "dock...
Returns the ``docker.DockerClient`` of this command.
src/docker_utils.py
docker_client
altaris/docker-telegram-bot
0
python
@property def docker_client(self) -> DockerClient: '\n ' client = self._args_dict.get('docker_client', None) if (not isinstance(client, DockerClient)): raise ValueError('A DockerCommand must have a DockerClient as default value for key "docker_client"') return client
@property def docker_client(self) -> DockerClient: '\n ' client = self._args_dict.get('docker_client', None) if (not isinstance(client, DockerClient)): raise ValueError('A DockerCommand must have a DockerClient as default value for key "docker_client"') return client<|docstring|>Returns t...
fe2a8863acd6d7cd5fe9a1854f86aa5302425404340cb318bcdea51cafac9260
def _streams(source): 'Reimplemented from otio burnins to be able use full path to ffprobe\n :param str source: source media file\n :rtype: [{}, ...]\n ' command = (FFPROBE % {'source': source}) proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE) out = proc.communicate()[0] ...
Reimplemented from otio burnins to be able use full path to ffprobe :param str source: source media file :rtype: [{}, ...]
pype/scripts/otio_burnin.py
_streams
tokejepsen/pype
0
python
def _streams(source): 'Reimplemented from otio burnins to be able use full path to ffprobe\n :param str source: source media file\n :rtype: [{}, ...]\n ' command = (FFPROBE % {'source': source}) proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE) out = proc.communicate()[0] ...
def _streams(source): 'Reimplemented from otio burnins to be able use full path to ffprobe\n :param str source: source media file\n :rtype: [{}, ...]\n ' command = (FFPROBE % {'source': source}) proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE) out = proc.communicate()[0] ...
7608ee337bd4e2468b7581f0d2cf0fa5b6d9c719e5272c7412852a581c126eca
def burnins_from_data(input_path, output_path, data, codec_data=None, overwrite=True): '\n This method adds burnins to video/image file based on presets setting.\n Extension of output MUST be same as input. (mov -> mov, avi -> avi,...)\n\n :param input_path: full path to input file where burnins should be ...
This method adds burnins to video/image file based on presets setting. Extension of output MUST be same as input. (mov -> mov, avi -> avi,...) :param input_path: full path to input file where burnins should be add :type input_path: str :param codec_data: all codec related arguments in list :param codec_data: list :par...
pype/scripts/otio_burnin.py
burnins_from_data
tokejepsen/pype
0
python
def burnins_from_data(input_path, output_path, data, codec_data=None, overwrite=True): '\n This method adds burnins to video/image file based on presets setting.\n Extension of output MUST be same as input. (mov -> mov, avi -> avi,...)\n\n :param input_path: full path to input file where burnins should be ...
def burnins_from_data(input_path, output_path, data, codec_data=None, overwrite=True): '\n This method adds burnins to video/image file based on presets setting.\n Extension of output MUST be same as input. (mov -> mov, avi -> avi,...)\n\n :param input_path: full path to input file where burnins should be ...
4813d1d9097a3023082afcc33fe5a87de5e96bf408c8f70ced06aba53a1a536d
def add_text(self, text, align, frame_start=None, frame_end=None, options=None): '\n Adding static text to a filter.\n\n :param str text: text to apply to the drawtext\n :param enum align: alignment, must use provided enum flags\n :param int frame_start: starting frame for burnins curren...
Adding static text to a filter. :param str text: text to apply to the drawtext :param enum align: alignment, must use provided enum flags :param int frame_start: starting frame for burnins current frame :param dict options: recommended to use TextOptions
pype/scripts/otio_burnin.py
add_text
tokejepsen/pype
0
python
def add_text(self, text, align, frame_start=None, frame_end=None, options=None): '\n Adding static text to a filter.\n\n :param str text: text to apply to the drawtext\n :param enum align: alignment, must use provided enum flags\n :param int frame_start: starting frame for burnins curren...
def add_text(self, text, align, frame_start=None, frame_end=None, options=None): '\n Adding static text to a filter.\n\n :param str text: text to apply to the drawtext\n :param enum align: alignment, must use provided enum flags\n :param int frame_start: starting frame for burnins curren...
02cca5727a1d9195c62eeeccc7db3dc31ab8f2e27668d373bd88b4f9357ff846
def add_timecode(self, align, frame_start=None, frame_end=None, frame_start_tc=None, text=None, options=None): '\n Convenience method to create the frame number expression.\n\n :param enum align: alignment, must use provided enum flags\n :param int frame_start: starting frame for burnins curre...
Convenience method to create the frame number expression. :param enum align: alignment, must use provided enum flags :param int frame_start: starting frame for burnins current frame :param int frame_start_tc: starting frame for burnins timecode :param str text: text that will be before timecode :param dict options: ...
pype/scripts/otio_burnin.py
add_timecode
tokejepsen/pype
0
python
def add_timecode(self, align, frame_start=None, frame_end=None, frame_start_tc=None, text=None, options=None): '\n Convenience method to create the frame number expression.\n\n :param enum align: alignment, must use provided enum flags\n :param int frame_start: starting frame for burnins curre...
def add_timecode(self, align, frame_start=None, frame_end=None, frame_start_tc=None, text=None, options=None): '\n Convenience method to create the frame number expression.\n\n :param enum align: alignment, must use provided enum flags\n :param int frame_start: starting frame for burnins curre...
dff8771c449f454b58e5ceeebe27b88e6e90ae50871d682d504c8c84af7bf53e
def _add_burnin(self, text, align, options, draw): '\n Generic method for building the filter flags.\n :param str text: text to apply to the drawtext\n :param enum align: alignment, must use provided enum flags\n :param dict options:\n ' final_text = text text_for_size = t...
Generic method for building the filter flags. :param str text: text to apply to the drawtext :param enum align: alignment, must use provided enum flags :param dict options:
pype/scripts/otio_burnin.py
_add_burnin
tokejepsen/pype
0
python
def _add_burnin(self, text, align, options, draw): '\n Generic method for building the filter flags.\n :param str text: text to apply to the drawtext\n :param enum align: alignment, must use provided enum flags\n :param dict options:\n ' final_text = text text_for_size = t...
def _add_burnin(self, text, align, options, draw): '\n Generic method for building the filter flags.\n :param str text: text to apply to the drawtext\n :param enum align: alignment, must use provided enum flags\n :param dict options:\n ' final_text = text text_for_size = t...
2b8fa660318c689a60f5279273fa76e14c4eaffefc933b6bf7bc414622852163
def command(self, output=None, args=None, overwrite=False): '\n Generate the entire FFMPEG command.\n\n :param str output: output file\n :param str args: additional FFMPEG arguments\n :param bool overwrite: overwrite the output if it exists\n :returns: completed command\n :...
Generate the entire FFMPEG command. :param str output: output file :param str args: additional FFMPEG arguments :param bool overwrite: overwrite the output if it exists :returns: completed command :rtype: str
pype/scripts/otio_burnin.py
command
tokejepsen/pype
0
python
def command(self, output=None, args=None, overwrite=False): '\n Generate the entire FFMPEG command.\n\n :param str output: output file\n :param str args: additional FFMPEG arguments\n :param bool overwrite: overwrite the output if it exists\n :returns: completed command\n :...
def command(self, output=None, args=None, overwrite=False): '\n Generate the entire FFMPEG command.\n\n :param str output: output file\n :param str args: additional FFMPEG arguments\n :param bool overwrite: overwrite the output if it exists\n :returns: completed command\n :...
8f8ce127e096e5ae9d637915aaafea7df8475c67654c09bb4681ad659df6d51a
def render(self, output, args=None, overwrite=False, **kwargs): '\n Render the media to a specified destination.\n\n :param str output: output file\n :param str args: additional FFMPEG arguments\n :param bool overwrite: overwrite the output if it exists\n ' if ((not overwrite)...
Render the media to a specified destination. :param str output: output file :param str args: additional FFMPEG arguments :param bool overwrite: overwrite the output if it exists
pype/scripts/otio_burnin.py
render
tokejepsen/pype
0
python
def render(self, output, args=None, overwrite=False, **kwargs): '\n Render the media to a specified destination.\n\n :param str output: output file\n :param str args: additional FFMPEG arguments\n :param bool overwrite: overwrite the output if it exists\n ' if ((not overwrite)...
def render(self, output, args=None, overwrite=False, **kwargs): '\n Render the media to a specified destination.\n\n :param str output: output file\n :param str args: additional FFMPEG arguments\n :param bool overwrite: overwrite the output if it exists\n ' if ((not overwrite)...
b0d407ee2e593c3af12352746155cd581768cc0e70763ca146b5ff7bfe67396a
def start(self): '\n This function starts the Plugin Scheduler. It installs signal handlers, acquire an distributed lock and then\n return a Celery application instance\n\n The flow of the startup process is follows:\n start -> _celery_beat_service_started (starts) -> plugin_scheduler_ta...
This function starts the Plugin Scheduler. It installs signal handlers, acquire an distributed lock and then return a Celery application instance The flow of the startup process is follows: start -> _celery_beat_service_started (starts) -> plugin_scheduler_task_thread The plugin_scheduler_task_thread runs the plugin_...
yahoo_panoptes/framework/plugins/scheduler.py
start
ilholmes/panoptes
86
python
def start(self): '\n This function starts the Plugin Scheduler. It installs signal handlers, acquire an distributed lock and then\n return a Celery application instance\n\n The flow of the startup process is follows:\n start -> _celery_beat_service_started (starts) -> plugin_scheduler_ta...
def start(self): '\n This function starts the Plugin Scheduler. It installs signal handlers, acquire an distributed lock and then\n return a Celery application instance\n\n The flow of the startup process is follows:\n start -> _celery_beat_service_started (starts) -> plugin_scheduler_ta...
9d49221fb8e41ef4e362751915f8f723ad159ce596bc1f987d5b8b49ec678705
def run(self, sender=None, args=None, **kwargs): '\n This function is called after the Celery Beat Service has finished initialization.\n The function (re)installs the signal handlers, since they are overwritten by the Celery Beat Service.\n It stores the reference to the Celery Beat Service in...
This function is called after the Celery Beat Service has finished initialization. The function (re)installs the signal handlers, since they are overwritten by the Celery Beat Service. It stores the reference to the Celery Beat Service instance and starts the Plugin Scheduler thread Args: sender (celery.beat.Servi...
yahoo_panoptes/framework/plugins/scheduler.py
run
ilholmes/panoptes
86
python
def run(self, sender=None, args=None, **kwargs): '\n This function is called after the Celery Beat Service has finished initialization.\n The function (re)installs the signal handlers, since they are overwritten by the Celery Beat Service.\n It stores the reference to the Celery Beat Service in...
def run(self, sender=None, args=None, **kwargs): '\n This function is called after the Celery Beat Service has finished initialization.\n The function (re)installs the signal handlers, since they are overwritten by the Celery Beat Service.\n It stores the reference to the Celery Beat Service in...
f4d9096aecf09306ffedcbd98642cc4df33a0df7bed7e0854fa33eeada27ff06
def _plugin_scheduler_task_thread(self): "\n This function is the entry point of the Plugin Scheduler thread. It checks if the Plugin Scheduler is shutdown\n mode and if not, then calls the plugin_scheduler_task function every 'plugin_scan_interval'\n seconds\n\n Returns:\n No...
This function is the entry point of the Plugin Scheduler thread. It checks if the Plugin Scheduler is shutdown mode and if not, then calls the plugin_scheduler_task function every 'plugin_scan_interval' seconds Returns: None
yahoo_panoptes/framework/plugins/scheduler.py
_plugin_scheduler_task_thread
ilholmes/panoptes
86
python
def _plugin_scheduler_task_thread(self): "\n This function is the entry point of the Plugin Scheduler thread. It checks if the Plugin Scheduler is shutdown\n mode and if not, then calls the plugin_scheduler_task function every 'plugin_scan_interval'\n seconds\n\n Returns:\n No...
def _plugin_scheduler_task_thread(self): "\n This function is the entry point of the Plugin Scheduler thread. It checks if the Plugin Scheduler is shutdown\n mode and if not, then calls the plugin_scheduler_task function every 'plugin_scan_interval'\n seconds\n\n Returns:\n No...
0f2508cdad8b6a04da5f6a36150c928fd661462c2fbf0a6655da3b92c69659b5
def _shutdown(self): '\n The main shutdown method, which handles two scenarios\n * The Plugin Scheduler thread is alive: sets an event to shutdown the thread\n * The Plugin Scheduler thread is not alive: this can happen if we have not been able to acquire the lock or\n the if the Plugin ...
The main shutdown method, which handles two scenarios * The Plugin Scheduler thread is alive: sets an event to shutdown the thread * The Plugin Scheduler thread is not alive: this can happen if we have not been able to acquire the lock or the if the Plugin Scheduler thread quits unexpectedly. In this case, this handler...
yahoo_panoptes/framework/plugins/scheduler.py
_shutdown
ilholmes/panoptes
86
python
def _shutdown(self): '\n The main shutdown method, which handles two scenarios\n * The Plugin Scheduler thread is alive: sets an event to shutdown the thread\n * The Plugin Scheduler thread is not alive: this can happen if we have not been able to acquire the lock or\n the if the Plugin ...
def _shutdown(self): '\n The main shutdown method, which handles two scenarios\n * The Plugin Scheduler thread is alive: sets an event to shutdown the thread\n * The Plugin Scheduler thread is not alive: this can happen if we have not been able to acquire the lock or\n the if the Plugin ...
995c9d03c4f58331e63c1e7ad5fda4b4fa3234c39f98e151293f449837118e03
def _install_signal_handlers(self): '\n Installs signal handlers for SIGTERM, SIGINT and SIGHUP\n\n Returns:\n None\n ' signal.signal(signal.SIGTERM, self._signal_handler) signal.signal(signal.SIGINT, self._signal_handler) signal.signal(signal.SIGHUP, self._signal_handler...
Installs signal handlers for SIGTERM, SIGINT and SIGHUP Returns: None
yahoo_panoptes/framework/plugins/scheduler.py
_install_signal_handlers
ilholmes/panoptes
86
python
def _install_signal_handlers(self): '\n Installs signal handlers for SIGTERM, SIGINT and SIGHUP\n\n Returns:\n None\n ' signal.signal(signal.SIGTERM, self._signal_handler) signal.signal(signal.SIGINT, self._signal_handler) signal.signal(signal.SIGHUP, self._signal_handler...
def _install_signal_handlers(self): '\n Installs signal handlers for SIGTERM, SIGINT and SIGHUP\n\n Returns:\n None\n ' signal.signal(signal.SIGTERM, self._signal_handler) signal.signal(signal.SIGINT, self._signal_handler) signal.signal(signal.SIGHUP, self._signal_handler...
d5f71b57ae71bd7edac5749799b206fd03eec8d0f36423be3bd59873d4eb566f
def _signal_handler(self, signal_number, _): '\n Signal handler - wraps the _shutdown method with some checks\n\n Args:\n signal_number (int): The received signal number\n _ (frame): Current stack frame object\n\n Returns:\n None\n ' print((u'Caught %...
Signal handler - wraps the _shutdown method with some checks Args: signal_number (int): The received signal number _ (frame): Current stack frame object Returns: None
yahoo_panoptes/framework/plugins/scheduler.py
_signal_handler
ilholmes/panoptes
86
python
def _signal_handler(self, signal_number, _): '\n Signal handler - wraps the _shutdown method with some checks\n\n Args:\n signal_number (int): The received signal number\n _ (frame): Current stack frame object\n\n Returns:\n None\n ' print((u'Caught %...
def _signal_handler(self, signal_number, _): '\n Signal handler - wraps the _shutdown method with some checks\n\n Args:\n signal_number (int): The received signal number\n _ (frame): Current stack frame object\n\n Returns:\n None\n ' print((u'Caught %...
bf00145e00c54ab0f8685c0ac8c904526cb7e9a2e35006fb37a8cb542c533718
def estimate_max_likelihood_params(copula, data: np.ndarray, x0: Union[(np.ndarray, float)], optim_options: dict, verbose: int, scale: float): '\n Fits the copula with the Maximum Likelihood Estimator\n\n Parameters\n ----------\n copula\n Copula whose parameters are to be estimated\n data\n ...
Fits the copula with the Maximum Likelihood Estimator Parameters ---------- copula Copula whose parameters are to be estimated data Data to fit the copula with x0 Initial parameters for optimization optim_options optimizer options verbose Verbosity level for the optimizer scale Amount to scale ...
copulae/copula/estimator/max_likelihood.py
estimate_max_likelihood_params
CrisDS81/copulae
100
python
def estimate_max_likelihood_params(copula, data: np.ndarray, x0: Union[(np.ndarray, float)], optim_options: dict, verbose: int, scale: float): '\n Fits the copula with the Maximum Likelihood Estimator\n\n Parameters\n ----------\n copula\n Copula whose parameters are to be estimated\n data\n ...
def estimate_max_likelihood_params(copula, data: np.ndarray, x0: Union[(np.ndarray, float)], optim_options: dict, verbose: int, scale: float): '\n Fits the copula with the Maximum Likelihood Estimator\n\n Parameters\n ----------\n copula\n Copula whose parameters are to be estimated\n data\n ...
aae2823ad0e253d6ffc334094951b58596f5f649ae63cb3a6eeed00f076e09d4
def calc_log_lik(param: Union[(float, Collection[float])]) -> float: '\n Calculates the log likelihood after setting the new parameters (inserted from the optimizer) of the copula\n\n Parameters\n ----------\n param: ndarray\n Parameters of the copula\n\n Returns\n ...
Calculates the log likelihood after setting the new parameters (inserted from the optimizer) of the copula Parameters ---------- param: ndarray Parameters of the copula Returns ------- float Negative log likelihood of the copula
copulae/copula/estimator/max_likelihood.py
calc_log_lik
CrisDS81/copulae
100
python
def calc_log_lik(param: Union[(float, Collection[float])]) -> float: '\n Calculates the log likelihood after setting the new parameters (inserted from the optimizer) of the copula\n\n Parameters\n ----------\n param: ndarray\n Parameters of the copula\n\n Returns\n ...
def calc_log_lik(param: Union[(float, Collection[float])]) -> float: '\n Calculates the log likelihood after setting the new parameters (inserted from the optimizer) of the copula\n\n Parameters\n ----------\n param: ndarray\n Parameters of the copula\n\n Returns\n ...
f2155bef472dfa6ce71cd48875986923ae20fb02ec25581acd55f445044f004e
def invalid_request_error(e): 'Generates a valid ELG "failure" response if the request cannot be parsed' return ({'failure': {'errors': [{'code': 'elg.request.invalid', 'text': 'Invalid request message'}]}}, 400)
Generates a valid ELG "failure" response if the request cannot be parsed
docker/elg_app.py
invalid_request_error
GateNLP/ToxicClassifier
0
python
def invalid_request_error(e): return ({'failure': {'errors': [{'code': 'elg.request.invalid', 'text': 'Invalid request message'}]}}, 400)
def invalid_request_error(e): return ({'failure': {'errors': [{'code': 'elg.request.invalid', 'text': 'Invalid request message'}]}}, 400)<|docstring|>Generates a valid ELG "failure" response if the request cannot be parsed<|endoftext|>
8ba04ea6400d37216807d60417c046511d138c220f93c46535a89a024339e6e4
@app.errorhandler(RequestTooLarge) def request_too_large(e): 'Generates a valid ELG "failure" response if the request is too large' return ({'failure': {'errors': [{'code': 'elg.request.too.large', 'text': 'Request size too large'}]}}, 400)
Generates a valid ELG "failure" response if the request is too large
docker/elg_app.py
request_too_large
GateNLP/ToxicClassifier
0
python
@app.errorhandler(RequestTooLarge) def request_too_large(e): return ({'failure': {'errors': [{'code': 'elg.request.too.large', 'text': 'Request size too large'}]}}, 400)
@app.errorhandler(RequestTooLarge) def request_too_large(e): return ({'failure': {'errors': [{'code': 'elg.request.too.large', 'text': 'Request size too large'}]}}, 400)<|docstring|>Generates a valid ELG "failure" response if the request is too large<|endoftext|>
346c5ef1cc76a5e26204e15df2ad40ebd37c06d8624cc0961d0895a7837cb183
@app.route('/process', methods=['POST']) async def process_request(): 'Main request processing logic - accepts a JSON request and returns a JSON response.' (ctype, type_params) = cgi.parse_header(request.content_type) if (ctype == 'text/plain'): content = (await get_text_content(request, type_params...
Main request processing logic - accepts a JSON request and returns a JSON response.
docker/elg_app.py
process_request
GateNLP/ToxicClassifier
0
python
@app.route('/process', methods=['POST']) async def process_request(): (ctype, type_params) = cgi.parse_header(request.content_type) if (ctype == 'text/plain'): content = (await get_text_content(request, type_params.get('charset', 'utf-8'))) elif (ctype == 'application/json'): data = (aw...
@app.route('/process', methods=['POST']) async def process_request(): (ctype, type_params) = cgi.parse_header(request.content_type) if (ctype == 'text/plain'): content = (await get_text_content(request, type_params.get('charset', 'utf-8'))) elif (ctype == 'application/json'): data = (aw...
54314c4c001cf556746f7450521c28aaf42e51e39e0d0819f7d8a588621cd6ad
def equilibrium(): 'This function suggest probability to bet in heads(0) or tails(1) depending on the historical data. \n The main driver of this analysis is to maintaining the equivalent 50/50 - Equilibrium - for each side ' probheads = probtails = 0.0 print(f'The probability to find heads (0) is {probh...
This function suggest probability to bet in heads(0) or tails(1) depending on the historical data. The main driver of this analysis is to maintaining the equivalent 50/50 - Equilibrium - for each side
Python Exercises/headsandtailsprediction.py
equilibrium
felipebrigo/Python-projects
0
python
def equilibrium(): 'This function suggest probability to bet in heads(0) or tails(1) depending on the historical data. \n The main driver of this analysis is to maintaining the equivalent 50/50 - Equilibrium - for each side ' probheads = probtails = 0.0 print(f'The probability to find heads (0) is {probh...
def equilibrium(): 'This function suggest probability to bet in heads(0) or tails(1) depending on the historical data. \n The main driver of this analysis is to maintaining the equivalent 50/50 - Equilibrium - for each side ' probheads = probtails = 0.0 print(f'The probability to find heads (0) is {probh...
f27a860994c433d83818d9240e20b4be597e93842f1a0ad4c04afbeb564275d1
def signal_noise(response): '\n Signal and noise as defined in Borst and Theunissen 1999, Figure 2\n\n Parameters\n ----------\n\n response: nitime TimeSeries object\n The data here are individual responses of a single unit to the same\n stimulus, with repetitions being the first dimension a...
Signal and noise as defined in Borst and Theunissen 1999, Figure 2 Parameters ---------- response: nitime TimeSeries object The data here are individual responses of a single unit to the same stimulus, with repetitions being the first dimension and time as the last dimension
nitime/analysis/snr.py
signal_noise
miketrumpis/nitime
172
python
def signal_noise(response): '\n Signal and noise as defined in Borst and Theunissen 1999, Figure 2\n\n Parameters\n ----------\n\n response: nitime TimeSeries object\n The data here are individual responses of a single unit to the same\n stimulus, with repetitions being the first dimension a...
def signal_noise(response): '\n Signal and noise as defined in Borst and Theunissen 1999, Figure 2\n\n Parameters\n ----------\n\n response: nitime TimeSeries object\n The data here are individual responses of a single unit to the same\n stimulus, with repetitions being the first dimension a...
9e5a9219f3bb3d76846b167c3994e170beafb2b9a5b14ab2bb5c919461f31cda
def __init__(self, input=None, bandwidth=None, adaptive=False, low_bias=False): '\n Initializer for the multi_taper_SNR object\n\n Parameters\n ----------\n input: TimeSeries object\n\n bandwidth: float,\n The bandwidth of the windowing function will determine the number...
Initializer for the multi_taper_SNR object Parameters ---------- input: TimeSeries object bandwidth: float, The bandwidth of the windowing function will determine the number tapers to use. This parameters represents trade-off between frequency resolution (lower main lobe bandwidth for the taper) and varia...
nitime/analysis/snr.py
__init__
miketrumpis/nitime
172
python
def __init__(self, input=None, bandwidth=None, adaptive=False, low_bias=False): '\n Initializer for the multi_taper_SNR object\n\n Parameters\n ----------\n input: TimeSeries object\n\n bandwidth: float,\n The bandwidth of the windowing function will determine the number...
def __init__(self, input=None, bandwidth=None, adaptive=False, low_bias=False): '\n Initializer for the multi_taper_SNR object\n\n Parameters\n ----------\n input: TimeSeries object\n\n bandwidth: float,\n The bandwidth of the windowing function will determine the number...
76f7048a6091239e1cac563b627c4e7869fed4a941865fd0e4729c3e3f395b15
@desc.setattr_on_read def correlation(self): '\n The correlation between all combinations of trials\n\n Returns\n -------\n (r,e) : tuple\n r is the mean correlation and e is the mean error of the correlation\n (with df = n_trials - 1)\n ' c = np.corrcoef(s...
The correlation between all combinations of trials Returns ------- (r,e) : tuple r is the mean correlation and e is the mean error of the correlation (with df = n_trials - 1)
nitime/analysis/snr.py
correlation
miketrumpis/nitime
172
python
@desc.setattr_on_read def correlation(self): '\n The correlation between all combinations of trials\n\n Returns\n -------\n (r,e) : tuple\n r is the mean correlation and e is the mean error of the correlation\n (with df = n_trials - 1)\n ' c = np.corrcoef(s...
@desc.setattr_on_read def correlation(self): '\n The correlation between all combinations of trials\n\n Returns\n -------\n (r,e) : tuple\n r is the mean correlation and e is the mean error of the correlation\n (with df = n_trials - 1)\n ' c = np.corrcoef(s...
b80fc2123f6160d693fd164c885e00f0379ca6f097342689ef4142fe579cd36e
def state_concatenate(self, obs, pose_pre, history_buffer, command, num_buffer=2): '\n\n :param obs:\n :param history_buffer:\n :param command:\n :return:\n ' velocity_base = ((obs[:6] - pose_pre) / self.dt) data_tmp = history_buffer.pull().copy()[::(- 1)] data_size = ...
:param obs: :param history_buffer: :param command: :return:
my_envs/mujoco/cellrobotCPG2.py
state_concatenate
Jerryxiaoyu/my_baselines
0
python
def state_concatenate(self, obs, pose_pre, history_buffer, command, num_buffer=2): '\n\n :param obs:\n :param history_buffer:\n :param command:\n :return:\n ' velocity_base = ((obs[:6] - pose_pre) / self.dt) data_tmp = history_buffer.pull().copy()[::(- 1)] data_size = ...
def state_concatenate(self, obs, pose_pre, history_buffer, command, num_buffer=2): '\n\n :param obs:\n :param history_buffer:\n :param command:\n :return:\n ' velocity_base = ((obs[:6] - pose_pre) / self.dt) data_tmp = history_buffer.pull().copy()[::(- 1)] data_size = ...
63ac203a01892c2d6e642763d6e8daf81b8aa41dc1c364492b220310613ef17a
def reward_fun6(self, velocity_base, v_commdand, action, obs): '\n add orien\n :param velocity_base:\n :param v_commdand:\n :param action:\n :param obs:\n :return:\n ' v_e = (np.concatenate((velocity_base[:2], velocity_base[(- 1):])) -...
add orien :param velocity_base: :param v_commdand: :param action: :param obs: :return:
my_envs/mujoco/cellrobotCPG2.py
reward_fun6
Jerryxiaoyu/my_baselines
0
python
def reward_fun6(self, velocity_base, v_commdand, action, obs): '\n add orien\n :param velocity_base:\n :param v_commdand:\n :param action:\n :param obs:\n :return:\n ' v_e = (np.concatenate((velocity_base[:2], velocity_base[(- 1):])) -...
def reward_fun6(self, velocity_base, v_commdand, action, obs): '\n add orien\n :param velocity_base:\n :param v_commdand:\n :param action:\n :param obs:\n :return:\n ' v_e = (np.concatenate((velocity_base[:2], velocity_base[(- 1):])) -...
264b59934e47f391cb214e42e95aa372c1fa7782321f9d9cd94331d28eba0579
def reward_fun7(self, velocity_base, v_commdand, action, obs): '\n integal orien\n :param velocity_base:\n :param v_commdand:\n :param action:\n :param obs:\n :return:\n ' v_e = (np.concatenate((velocity_base[:2], velocity_base[(- 1):]...
integal orien :param velocity_base: :param v_commdand: :param action: :param obs: :return:
my_envs/mujoco/cellrobotCPG2.py
reward_fun7
Jerryxiaoyu/my_baselines
0
python
def reward_fun7(self, velocity_base, v_commdand, action, obs): '\n integal orien\n :param velocity_base:\n :param v_commdand:\n :param action:\n :param obs:\n :return:\n ' v_e = (np.concatenate((velocity_base[:2], velocity_base[(- 1):]...
def reward_fun7(self, velocity_base, v_commdand, action, obs): '\n integal orien\n :param velocity_base:\n :param v_commdand:\n :param action:\n :param obs:\n :return:\n ' v_e = (np.concatenate((velocity_base[:2], velocity_base[(- 1):]...
58ba394c75bcb55e63012eb2b254469283c2793cdacea24bddc5c16df87dd424
@staticmethod def create_key(): '\n Create a admin key.\n\n Returns:\n str: admin key\n ' raw_key = Fernet.generate_key() decoded = base64.b64encode(raw_key).decode() return decoded[:((len(decoded) // 4) * 4)]
Create a admin key. Returns: str: admin key
kaipred/util/crypto.py
create_key
lisphilar/kaipred
0
python
@staticmethod def create_key(): '\n Create a admin key.\n\n Returns:\n str: admin key\n ' raw_key = Fernet.generate_key() decoded = base64.b64encode(raw_key).decode() return decoded[:((len(decoded) // 4) * 4)]
@staticmethod def create_key(): '\n Create a admin key.\n\n Returns:\n str: admin key\n ' raw_key = Fernet.generate_key() decoded = base64.b64encode(raw_key).decode() return decoded[:((len(decoded) // 4) * 4)]<|docstring|>Create a admin key. Returns: str: admin key<|...
3b8f4c66889b04c220154aff3050bddda25e484a52332b7f8bfedd98681f8b5d
def encrypt(self, raw): '\n Encrypt the string.\n\n Args:\n raw (str): target string\n\n Return"\n str: encrypted string\n ' encoded = base64.b64decode(raw.encode()) encoded_encrypted = self._cipher.encrypt(encoded) return base64.b64encode(encoded_encryp...
Encrypt the string. Args: raw (str): target string Return" str: encrypted string
kaipred/util/crypto.py
encrypt
lisphilar/kaipred
0
python
def encrypt(self, raw): '\n Encrypt the string.\n\n Args:\n raw (str): target string\n\n Return"\n str: encrypted string\n ' encoded = base64.b64decode(raw.encode()) encoded_encrypted = self._cipher.encrypt(encoded) return base64.b64encode(encoded_encryp...
def encrypt(self, raw): '\n Encrypt the string.\n\n Args:\n raw (str): target string\n\n Return"\n str: encrypted string\n ' encoded = base64.b64decode(raw.encode()) encoded_encrypted = self._cipher.encrypt(encoded) return base64.b64encode(encoded_encryp...
19ef18c29f9080e48e1233e189597d710ae7050b109a4717aa98dc2ab0a13759
def decrypt(self, encrypted): '\n Decrypt the encrypted string.\n\n Args:\n str: encrypted string\n ' encoded_encrypted = base64.b64decode(encrypted.encode()) encoded = self._cipher.decrypt(encoded_encrypted) return base64.b64encode(encoded).decode('utf-8')
Decrypt the encrypted string. Args: str: encrypted string
kaipred/util/crypto.py
decrypt
lisphilar/kaipred
0
python
def decrypt(self, encrypted): '\n Decrypt the encrypted string.\n\n Args:\n str: encrypted string\n ' encoded_encrypted = base64.b64decode(encrypted.encode()) encoded = self._cipher.decrypt(encoded_encrypted) return base64.b64encode(encoded).decode('utf-8')
def decrypt(self, encrypted): '\n Decrypt the encrypted string.\n\n Args:\n str: encrypted string\n ' encoded_encrypted = base64.b64decode(encrypted.encode()) encoded = self._cipher.decrypt(encoded_encrypted) return base64.b64encode(encoded).decode('utf-8')<|docstring|>De...
5afeb4235cc7f9ef438a666d7fc942d7c607c4898c9bcf8725a5c244ebb0954b
def test_storing_and_loading_station_snapshot(self): '\n Stores and writes a station (instrument) snapshot.\n ' self.mock_parabola_2.x(1) self.mock_parabola_2.y(2.245) self.mock_parabola_2.array_like(np.linspace(0, 11, 23)) snap = self.station.snapshot(update=True) data_object = h5...
Stores and writes a station (instrument) snapshot.
pycqed/tests/test_hdf5_datasaving_loading.py
test_storing_and_loading_station_snapshot
nuttamas/PycQED_py3
60
python
def test_storing_and_loading_station_snapshot(self): '\n \n ' self.mock_parabola_2.x(1) self.mock_parabola_2.y(2.245) self.mock_parabola_2.array_like(np.linspace(0, 11, 23)) snap = self.station.snapshot(update=True) data_object = h5d.Data(name='test_object_snap', datadir=self.datad...
def test_storing_and_loading_station_snapshot(self): '\n \n ' self.mock_parabola_2.x(1) self.mock_parabola_2.y(2.245) self.mock_parabola_2.array_like(np.linspace(0, 11, 23)) snap = self.station.snapshot(update=True) data_object = h5d.Data(name='test_object_snap', datadir=self.datad...
9b67dc49cb502b96bb2dbd7035c5756ca9b16b8e198602ecea1549b104064265
@unittest.skip('FIXME: disabled, see PR #643') def test_writing_and_reading_dicts_to_hdf5(self): '\n Tests dumping some random dictionary to hdf5 and reading back the\n stored values. The input dictionary contains:\n - list of ints\n - list of floats\n - nested dict\n ...
Tests dumping some random dictionary to hdf5 and reading back the stored values. The input dictionary contains: - list of ints - list of floats - nested dict - 1D array - 2D array
pycqed/tests/test_hdf5_datasaving_loading.py
test_writing_and_reading_dicts_to_hdf5
nuttamas/PycQED_py3
60
python
@unittest.skip('FIXME: disabled, see PR #643') def test_writing_and_reading_dicts_to_hdf5(self): '\n Tests dumping some random dictionary to hdf5 and reading back the\n stored values. The input dictionary contains:\n - list of ints\n - list of floats\n - nested dict\n ...
@unittest.skip('FIXME: disabled, see PR #643') def test_writing_and_reading_dicts_to_hdf5(self): '\n Tests dumping some random dictionary to hdf5 and reading back the\n stored values. The input dictionary contains:\n - list of ints\n - list of floats\n - nested dict\n ...