Search is not available for this dataset
id
int64
0
10.8M
vector
listlengths
1.54k
1.54k
ast_depth
int64
3
164
ast_data
stringlengths
297
510k
full_path
stringlengths
0
319
code
stringlengths
60
56.5k
12,101
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,102
[ 0.03621745854616165, 0.019586268812417984, -0.011696205474436283, -0.010189115069806576, 0.04761224612593651, -0.0007225169683806598, -0.029172547161579132, 0.007594555150717497, -0.004042549058794975, -0.013593366369605064, 0.021075628697872162, -0.040732819586992264, -0.0006671092705801129...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/sys/file/ssl-key".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError...
12,103
[ 0.010667762719094753, 0.07627838104963303, 0.03651726245880127, -0.020560339093208313, -0.010220539756119251, 0.028169095516204834, -0.0029427283443510532, -0.007662423420697451, -0.01310661993920803, 0.029767172411084175, 0.03301103040575981, -0.08367247134447098, -0.035897109657526016, -...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class SystemDbFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(SystemDbFactManager, self).__init__(**kwargs) self.want = SystemInfoParameters(params=self.module.params) def exec...
12,104
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,105
[ -0.011737337335944176, -0.007218279410153627, 0.038741763681173325, -0.01808844693005085, -0.030143339186906815, -0.032366227358579636, -0.04995391145348549, -0.02562428079545498, -0.010601465590298176, 0.024402914568781853, 0.01786860078573227, -0.03175554424524307, 0.005587754305452108, ...
13
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [], "values": []}}, "targets": [{"_type": "Name", "_fields": {"id": "api_map", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": null}}, {"_type":...
class SystemInfoParameters(BaseParameters): api_map = { } returnables = [ 'base_mac_address', 'marketing_name', 'time', 'hardware_information', 'product_information', 'package_edition', 'package_version', 'product_code', 'product_buil...
12,106
[ 0.02193450927734375, 0.026279475539922714, -0.00036311193252913654, 0.006028204225003719, 0.0487847700715065, -0.0011837995843961835, -0.022784864529967308, 0.0011270120739936829, 0.0025394174735993147, -0.005125429481267929, 0.011252648197114468, -0.03308231756091118, 0.010454711504280567, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/sys/db".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError as ex: ...
12,107
[ 0.06469917297363281, -0.03175685182213783, -0.04231207072734833, -0.022387098520994186, -0.020369524136185646, 0.02194254845380783, -0.023595362901687622, -0.02865639701485634, 0.042790818959474564, 0.0007708388729952276, -0.029864663258194923, -0.017519842833280563, -0.013803857378661633, ...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def switch_board_serial(self): if self._values['system-info'] is None: return None if 'switchBoardSerialNum' not in self._values['system-info'][0]: return None if self._values['system-info'][0]['switchBoardSerialNum'].strip() == '': return None return ...
12,108
[ 0.04623618349432945, 0.007843436673283577, -0.008035428822040558, -0.02317456156015396, -0.04734296351671219, 0.03898566588759422, -0.026969226077198982, 0.002445074263960123, 0.021446632221341133, 0.00476874178275466, -0.00724487379193306, -0.047749534249305725, -0.02988298609852791, 0.03...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def switch_board_part_revision(self): if self._values['system-info'] is None: return None if 'switchBoardPartRevNum' not in self._values['system-info'][0]: return None if self._values['system-info'][0]['switchBoardPartRevNum'].strip() == '': return None ...
12,109
[ 0.035620637238025665, 0.020019525662064552, 0.023936884477734566, -0.03304702416062355, -0.025599485263228416, 0.01789003238081932, -0.0600813552737236, -0.031361646950244904, -0.002482512267306447, 0.029425742104649544, 0.006855378393083811, -0.016682937741279602, -0.030746713280677795, 0...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def host_board_part_revision(self): if self._values['system-info'] is None: return None if 'hostBoardPartRevNum' not in self._values['system-info'][0]: return None if self._values['system-info'][0]['hostBoardPartRevNum'].strip() == '': return None retu...
12,110
[ 0.05267835408449173, -0.02054324373602867, -0.02686508558690548, -0.04218212887644768, -0.008414512500166893, 0.000660465273540467, -0.05399312451481819, -0.05197714641690254, 0.00676009664312005, 0.017639799043536186, -0.011515173129737377, 0.010014146566390991, -0.01747545227408409, -0.0...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def host_board_serial(self): if self._values['system-info'] is None: return None if 'hostBoardSerialNum' not in self._values['system-info'][0]: return None if self._values['system-info'][0]['hostBoardSerialNum'].strip() == '': return None return self._...
12,111
[ 0.036763355135917664, 0.05433131754398346, 0.014563463628292084, -0.02906433306634426, -0.0008730514673516154, 0.004744079429656267, 0.003679986810311675, -0.004347652662545443, -0.025037473067641258, 0.0040555489249527454, 0.00733910920098424, 0.004970981739461422, 0.0208749920129776, 0.0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "entry", "annotation": null, "type_comment": null}}], "kwarg": nul...
def _transform_name_attribute(self, entry): if isinstance(entry, dict): for k, v in iteritems(entry): if k == 'tmName': entry['name'] = entry.pop('tmName') self._transform_name_attribute(v) elif isinstance(entry, list): for k in...
12,112
[ 0.0053403438068926334, -0.013927617110311985, 0.028090208768844604, -0.048661213368177414, 0.023582957684993744, -0.0117060337215662, -0.014515054412186146, -0.00040152709698304534, -0.007038573268800974, 0.012421639636158943, -0.01057388074696064, 0.000454596767667681, -0.025163700804114342...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def time(self): if self._values['fullDate'] is None: return None date = datetime.datetime.strptime(self._values['fullDate'], "%Y-%m-%dT%H:%M:%SZ") result = dict( day=date.day, hour=date.hour, minute=date.minute, month=date.month, ...
12,113
[ 0.011116803623735905, 0.013399061746895313, -0.03986871987581253, -0.04639269411563873, -0.008959135971963406, -0.01985507644712925, 0.00011078577517764643, -0.00044632863136939704, -0.019141515716910362, 0.040321774780750275, 0.007747217081487179, 0.00609923480078578, 0.0030751016456633806,...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_version_file_info_from_device(self): uri = "https://{0}:{1}/mgmt/tm/util/bash".format( self.client.provider['server'], self.client.provider['server_port'], ) args = dict( command='run', utilCmdArgs='-c "cat /VERSION"' ) res...
12,114
[ 0.06555525213479996, -0.013017809949815273, -0.003445714944973588, -0.009479451924562454, 0.05656591057777405, -0.0220430139452219, 0.002136761788278818, -0.03301670402288437, -0.03402083367109299, 0.011619201861321926, 0.008319922722876072, 0.0024445748422294855, -0.006443158257752657, 0....
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): result = dict() tmp = self.read_hardware_info_from_device() if tmp: result.update(tmp) tmp = self.read_clock_info_from_device() if tmp: result.update(tmp) tmp = self.read_version_info_from_device() i...
12,115
[ -0.003370230086147785, 0.019963035359978676, -0.03774188086390495, -0.011725347489118576, 0.04260346665978432, -0.0006187073304317892, -0.060687627643346786, -0.012060021981596947, 0.0042098518460989, 0.012212680652737617, 0.009781887754797935, 0.01713298074901104, -0.028324024751782417, -...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_hardware_info_from_device(self): uri = "https://{0}:{1}/mgmt/tm/sys/hardware".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError ...
12,116
[ -0.013822435401380062, 0.025318093597888947, -0.028059544041752815, 0.004728424828499556, 0.034233562648296356, 0.013396243564784527, -0.0317685641348362, -0.002094962866976857, 0.02181641012430191, 0.02914230152964592, -0.020399611443281174, 0.00004521988012129441, -0.009174641221761703, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_uptime_info_from_device(self): uri = "https://{0}:{1}/mgmt/tm/util/bash".format( self.client.provider['server'], self.client.provider['server_port'], ) args = dict( command='run', utilCmdArgs='-c "cat /proc/uptime"' ) resp ...
12,117
[ -0.0024386493023484945, 0.0434882752597332, 0.0163313839584589, -0.048190969973802567, -0.016750436276197433, 0.020289096981287003, -0.00811913050711155, -0.029170669615268707, -0.007385789882391691, 0.03520036116242409, 0.040810998529195786, -0.05182275176048279, -0.0442565381526947, -0.0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class TcpMonitorsFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(TcpMonitorsFactManager, self).__init__(**kwargs) self.want = TcpMonitorsParameters(params=self.module.params) d...
12,118
[ -0.016935350373387337, 0.021896829828619957, 0.04087080806493759, -0.032888226211071014, -0.015719540417194366, -0.02527407556772232, -0.025937242433428764, -0.020681021735072136, 0.04214802011847496, 0.013214239850640297, 0.00490928627550602, -0.055411383509635925, 0.0037303208373486996, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "defaultsFrom"}}, {"_type": ...
class TcpMonitorsParameters(BaseParameters): api_map = { 'fullPath': 'full_path', 'defaultsFrom': 'parent', 'adaptiveDivergenceType': 'adaptive_divergence_type', 'adaptiveDivergenceValue': 'adaptive_divergence_value', 'adaptiveLimit': 'adaptive_limit', 'adaptiveSampli...
12,119
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,120
[ 0.012010331265628338, 0.011645311489701271, -0.004071149043738842, -0.017744675278663635, 0.0449327677488327, -0.0026095977518707514, -0.024562304839491844, -0.018627788871526718, 0.007059013471007347, 0.008460219018161297, 0.016602516174316406, -0.022442834451794624, 0.001468174741603434, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/ltm/monitor/tcp".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError ...
12,121
[ 0.0025843156035989523, 0.04664960503578186, 0.017238542437553406, -0.042896997183561325, -0.01531533058732748, 0.023207534104585648, -0.017637256532907486, -0.011287140659987926, -0.009704009629786015, 0.03149845078587532, 0.031662628054618835, -0.06299690157175064, -0.041958846151828766, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class TcpHalfOpenMonitorsFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(TcpHalfOpenMonitorsFactManager, self).__init__(**kwargs) self.want = TcpHalfOpenMonitorsParameters(params=se...
12,122
[ -0.023938700556755066, 0.0356733575463295, 0.030608927831053734, -0.03295585885643959, -0.041997719556093216, -0.0350310392677784, -0.02606329135596752, 0.00020998860418330878, 0.04120717570185661, 0.00884422566741705, -0.007361953612416983, -0.04659276455640793, 0.020912393927574158, 0.00...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "defaultsFrom"}}, {"_type": ...
class TcpHalfOpenMonitorsParameters(BaseParameters): api_map = { 'fullPath': 'full_path', 'defaultsFrom': 'parent', 'manualResume': 'manual_resume', 'timeUntilUp': 'time_until_up', 'upInterval': 'up_interval', } returnables = [ 'full_path', 'name', ...
12,123
[ 0.015687590464949608, 0.013924256898462772, -0.0019199056550860405, -0.02022361382842064, 0.04229569062590599, -0.0003496265271678567, -0.028578167781233788, -0.015711912885308266, 0.010902266949415207, 0.00908420979976654, 0.01918993704020977, -0.030207732692360878, -0.0022467304952442646, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/ltm/monitor/tcp-half-open".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except V...
12,124
[ 0.035568103194236755, 0.04957457631826401, 0.03355666622519493, -0.07015501707792282, 0.023425888270139694, 0.05573153868317604, -0.04905945435166359, -0.007003237027674913, -0.013074344024062157, 0.04709707573056221, 0.0022843307815492153, -0.07187210023403168, -0.030784806236624718, -0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,125
[ 0.00878194160759449, -0.005831106565892696, 0.004217769484966993, -0.0007541468366980553, -0.005346784833818674, -0.019488340243697166, -0.002848197240382433, -0.021374309435486794, 0.047367315739393234, 0.02789180539548397, 0.001214813906699419, 0.009814733639359474, -0.05732317641377449, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def time_wait(self): if self._values['time_wait'] is None: return None if self._values['time_wait'] == 0: return "immediate" if self._values['time_wait'] == 4294967295: return 'indefinite' return self._values['time_wait']
12,126
[ 0.0062745739705860615, -0.006381214130669832, 0.031235268339514732, -0.016828516498208046, 0.007905137725174427, 0.0015858435072004795, -0.029694145545363426, -0.02482309564948082, 0.04791242629289627, 0.047059305012226105, 0.019016362726688385, -0.027203580364584923, 0.008813299238681793, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "defaultsFrom"}}, {"_type": ...
class TcpProfilesParameters(BaseParameters): api_map = { 'fullPath': 'full_path', 'defaultsFrom': 'parent', 'ackOnPush': 'ack_on_push', 'autoProxyBufferSize': 'auto_proxy_buffer', 'autoReceiveWindowSize': 'auto_receive_window', 'autoSendBufferSize': 'auto_send_buffer'...
12,127
[ 0.010435632430016994, 0.014507239684462547, 0.016382232308387756, 0.0017603713786229491, 0.0026054864283651114, -0.019516343250870705, -0.016655953601002693, -0.026893137022852898, 0.047408562153577805, 0.04855819419026375, 0.03780093789100647, 0.004745646379888058, -0.0889047384262085, -0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def fin_wait_1(self): if self._values['fin_wait_1'] is None: return None if self._values['fin_wait_1'] == 0: return "immediate" if self._values['fin_wait_1'] == 4294967295: return 'indefinite' return self._values['fin_wait_1']
12,128
[ 0.0223976019769907, 0.017088737338781357, 0.020733630284667015, -0.004407546948641539, -0.008029329590499401, -0.014896518550813198, 0.006381864193826914, -0.022939054295420647, 0.06666456162929535, 0.03452083468437195, 0.02301829122006893, 0.012770331464707851, -0.06148775666952133, 0.006...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def close_wait(self): if self._values['close_wait'] is None: return None if self._values['close_wait'] == 0: return "immediate" if self._values['close_wait'] == 4294967295: return 'indefinite' return self._values['close_wait']
12,129
[ 0.008661352097988129, 0.02545895054936409, 0.025158891454339027, -0.033491332083940506, -0.021108077839016914, 0.028875021263957024, -0.013214187696576118, -0.012694853357970715, -0.010646365582942963, 0.05114871636033058, 0.02248143032193184, -0.037669092416763306, -0.0053635756485164165, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class TcpProfilesFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(TcpProfilesFactManager, self).__init__(**kwargs) self.want = TcpProfilesParameters(params=self.module.params) d...
12,130
[ 0.011816795915365219, 0.010194211266934872, 0.015020886436104774, -0.01052283588796854, -0.0012066687922924757, -0.00421392684802413, -0.01749926432967186, -0.026618599891662598, 0.05312765762209892, 0.059371527284383774, 0.03875032812356949, -0.0004907975671812892, -0.08412791788578033, -...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def fin_wait_2(self): if self._values['fin_wait_2'] is None: return None if self._values['fin_wait_2'] == 0: return "immediate" if self._values['fin_wait_2'] == 4294967295: return 'indefinite' return self._values['fin_wait_2']
12,131
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,132
[ 0.011382918804883957, 0.004000839311629534, 0.0010606945725157857, -0.007016221527010202, 0.040952544659376144, 0.0014162263832986355, -0.03339933604001999, 0.0011079020332545042, -0.0009884079918265343, 0.00993718858808279, 0.015401461161673069, -0.008721593767404556, 0.024288281798362732, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/ltm/profile/tcp".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError ...
12,133
[ 0.0042154560796916485, 0.02148348093032837, -0.0008951450581662357, -0.048527393490076065, -0.01429824996739626, 0.0064269909635186195, -0.041691191494464874, -0.02242225408554077, -0.026911519467830658, 0.025852391496300697, 0.015237023122608662, -0.0581558421254158, -0.027489226311445236, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class TrafficGroupsFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(TrafficGroupsFactManager, self).__init__(**kwargs) self.want = TrafficGroupsParameters(params=self.module.params) ...
12,134
[ -0.013647972606122494, 0.0011495064245536923, 0.06064237654209137, -0.016123171895742416, 0.0031856726855039597, -0.04409521073102951, -0.06925973296165466, -0.014977245591580868, 0.03401106595993042, 0.015424156561493874, -0.019308844581246376, -0.034148577600717545, -0.00436024647206068, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "autoFailbackEnabled"}}, {"_...
class TrafficGroupsParameters(BaseParameters): api_map = { 'fullPath': 'full_path', 'autoFailbackEnabled': 'auto_failback_enabled', 'autoFailbackTime': 'auto_failback_time', 'haLoadFactor': 'ha_load_factor', 'haOrder': 'ha_order', 'isFloating': 'is_floating', ...
12,135
[ 0.05676978453993797, -0.024503299966454506, 0.017605362460017204, -0.0343935489654541, 0.03734980523586273, -0.012365814298391342, -0.05181865021586418, 0.0035451070871204138, -0.019612254574894905, 0.01589890383183956, 0.0075048115104436874, -0.029754865914583206, -0.00739665562286973, 0....
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_facts(self): results = [] collection = self.read_collection_from_device() for resource in collection: attrs = resource attrs['stats'] = self.read_stats_from_device(attrs['fullPath']) params = TrafficGroupsParameters(params=attrs) results.a...
12,136
[ 0.0355832502245903, 0.049561507999897, 0.03352329507470131, -0.0701855719089508, 0.023456497117877007, 0.05566779896616936, -0.049071043729782104, -0.007007521577179432, -0.013070897199213505, 0.04698656499385834, 0.0022592053283005953, -0.0718531534075737, -0.030801214277744293, -0.004913...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,137
[ 0.021792037412524223, 0.01319948025047779, -0.01232029590755701, -0.007607870735228062, 0.03467500954866409, -0.007836458273231983, -0.031744398176670074, -0.002023588167503476, 0.008176409639418125, -0.005143225658684969, 0.012836083769798279, -0.02752431482076645, 0.005615054164081812, -...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/cm/traffic-group".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError...
12,138
[ 0.011004529893398285, 0.02572578378021717, -0.039217837154865265, -0.040639281272888184, 0.034720487892627716, 0.007753853686153889, -0.058628689497709274, -0.022801339626312256, 0.014459102414548397, 0.030992113053798676, 0.012361891567707062, 0.0007223725551739335, -0.006384841166436672, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "full_path", "annotation": null, "type_comment": null}}], "kwarg":...
def read_stats_from_device(self, full_path): uri = "https://{0}:{1}/mgmt/tm/cm/traffic-group/{2}/stats".format( self.client.provider['server'], self.client.provider['server_port'], transform_name(name=full_path) ) resp = self.client.api.get(uri) try: ...
12,139
[ -0.00629164045676589, 0.09517624229192734, 0.0027951037045568228, -0.052519407123327255, 0.022980278357863426, 0.04122360423207283, -0.012704741209745407, -0.01643357053399086, 0.00035565075813792646, 0.04634922742843628, 0.01210351288318634, -0.05353967472910881, -0.04187949001789093, -0....
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class TrunksFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(TrunksFactManager, self).__init__(**kwargs) self.want = TrunksParameters(params=self.module.params) def exec_module(...
12,140
[ -0.006983202416449785, 0.030675802379846573, 0.018366623669862747, -0.02957860566675663, 0.004780236631631851, -0.008091828785836697, -0.05403696000576019, -0.004083059262484312, 0.04477935656905174, 0.0038887637201696634, -0.01693798042833805, -0.02694990485906601, 0.0030172921251505613, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "media"}}, {"_type": "Consta...
class TrunksParameters(BaseParameters): api_map = { 'fullPath': 'full_path', 'media': 'media_speed', 'lacpMode': 'lacp_mode', 'lacp': 'lacp_state', 'lacpTimeout': 'lacp_timeout', 'stp': 'stp_enabled', 'workingMbrCount': 'operational_member_count', 'lin...
12,141
[ 0.04976094514131546, 0.018629953265190125, 0.023931950330734253, -0.041078317910432816, 0.06542372703552246, 0.0061441147699952126, -0.016234325245022774, 0.01062831562012434, 0.0007919554482214153, 0.02546417899429798, 0.006457248702645302, -0.01779087632894516, -0.011801808141171932, 0.0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_facts(self): results = [] collection = self.read_collection_from_device() for resource in collection: attrs = resource attrs['stats'] = self.read_stats_from_device(attrs['fullPath']) params = TrunksParameters(params=attrs) results.append(p...
12,142
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,143
[ 0.009941703639924526, 0.03550354763865471, -0.031121855601668358, -0.03962470591068268, 0.036498311907052994, 0.009610116481781006, -0.0526750423014164, -0.01878206431865692, 0.014116154052317142, 0.03645094111561775, 0.012446373701095581, 0.0025475986767560244, -0.005515602882951498, -0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "full_path", "annotation": null, "type_comment": null}}], "kwarg":...
def read_stats_from_device(self, full_path): uri = "https://{0}:{1}/mgmt/tm/net/trunk/{2}/stats".format( self.client.provider['server'], self.client.provider['server_port'], transform_name(name=full_path) ) resp = self.client.api.get(uri) try: ...
12,144
[ 0.017234506085515022, 0.02980721741914749, -0.013090689666569233, -0.00664540845900774, 0.05165642872452736, -0.0017761311028152704, -0.026699356734752655, 0.005889044608920813, 0.008740860968828201, 0.003166722599416971, 0.007958008907735348, -0.028629997745156288, 0.005220972001552582, -...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/net/trunk".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError as ex:...
12,145
[ -0.005436075385659933, 0.03785647079348564, 0.0309410709887743, -0.025190118700265884, -0.025308940559625626, 0.025142589583992958, -0.004729088395833969, -0.004981583449989557, 0.008602662943303585, 0.04553232714533806, 0.023704852908849716, -0.06763309240341187, -0.02480989135801792, -0....
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class UdpProfilesFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(UdpProfilesFactManager, self).__init__(**kwargs) self.want = UdpProfilesParameters(params=self.module.params) d...
12,146
[ -0.006596400402486324, 0.009643168188631535, 0.046831484884023666, 0.00654315622523427, -0.039377257227897644, -0.02513139881193638, -0.04380246624350548, -0.005220917984843254, 0.03835969790816307, 0.035283349454402924, -0.009873894974589348, -0.04903225973248482, 0.03715282306075096, -0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "allowNoPayload"}}, {"_type"...
class UdpProfilesParameters(BaseParameters): api_map = { 'fullPath': 'full_path', 'allowNoPayload': 'allow_no_payload', 'bufferMaxBytes': 'buffer_max_bytes', 'bufferMaxPackets': 'buffer_max_packets', 'datagramLoadBalancing': 'datagram_load_balancing', 'defaultsFrom': ...
12,147
[ 0.007926459424197674, 0.007956035435199738, 0.0046464428305625916, -0.006341167259961367, 0.0371478833258152, -0.0028659473173320293, -0.03206075355410576, 0.000774900137912482, 0.004998401273041964, 0.008813749067485332, 0.009706954471766949, -0.014989289455115795, 0.017106955870985985, -...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/ltm/profile/udp".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError ...
12,148
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,149
[ -0.006484152749180794, 0.06914793699979782, 0.026206528767943382, -0.04186173900961876, -0.019176406785845757, 0.015287142246961594, -0.03118773177266121, -0.020869525149464607, -0.010808966122567654, 0.018673378974199295, 0.03928525373339653, -0.07204341888427734, -0.04281872138381004, -0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class VcmpGuestsFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(VcmpGuestsFactManager, self).__init__(**kwargs) self.want = VcmpGuestsParameters(params=self.module.params) def ...
12,150
[ 0.02508295141160488, 0.05165693163871765, 0.04146021977066994, -0.05141644552350044, 0.017579710111021996, 0.054542794823646545, -0.01910681277513504, -0.005395960994064808, 0.008134524337947369, 0.03552015498280525, 0.023844435811042786, -0.060651201754808426, -0.004629403818398714, 0.006...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): if 'vcmp' not in self.provisioned_modules: return [] results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) ...
12,151
[ -0.011490429751574993, 0.0131284911185503, 0.03192119300365448, 0.005928221624344587, -0.02442091330885887, -0.03259321674704552, -0.07464279234409332, -0.01922471821308136, 0.020076749846339226, 0.04341762140393257, -0.010164380073547363, -0.03892945498228073, 0.03674537315964699, -0.0118...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "arp"}}, {"_type": "Constant...
class VirtualAddressesParameters(BaseParameters): api_map = { 'fullPath': 'full_path', 'arp': 'arp_enabled', 'autoDelete': 'auto_delete_enabled', 'connectionLimit': 'connection_limit', 'icmpEcho': 'icmp_echo', 'mask': 'netmask', 'routeAdvertisement': 'route_ad...
12,152
[ 0.02324404940009117, 0.03207412362098694, -0.005305312108248472, -0.008303176611661911, 0.03650732710957527, -0.007503746077418327, -0.04869258776307106, -0.011028507724404335, 0.007812616415321827, -0.01368722040206194, 0.016412552446126938, -0.02999075874686241, 0.0006949595408514142, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/vcmp/guest".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueError as ex...
12,153
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,154
[ -0.016350682824850082, 0.042640987783670425, 0.02365630678832531, -0.02994311973452568, -0.03632932901382446, 0.014996408484876156, -0.03615538403391838, 0.000824678223580122, -0.0020205392502248287, 0.0361056849360466, 0.04055366665124893, -0.06798703223466873, -0.024501174688339233, -0.0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class VirtualAddressesFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(VirtualAddressesFactManager, self).__init__(**kwargs) self.want = VirtualAddressesParameters(params=self.module...
12,155
[ 0.008399417623877525, -0.030090220272541046, 0.022533051669597626, -0.009178209118545055, 0.0114049781113863, 0.02538285404443741, -0.0015474887331947684, 0.005803443491458893, 0.00959356501698494, 0.005085224285721779, -0.021829254925251007, -0.008739777840673923, 0.024736745283007622, 0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def has_message_routing_profiles(self): if self.profiles is None: return None current = self._read_current_message_routing_profiles_from_device() result = [x['name'] for x in self.profiles if x['name'] in current] if len(result) > 0: return True return Fal...
12,156
[ 0.0029402992222458124, 0.017262402921915054, 0.003301908727735281, -0.010320687666535378, 0.02745860069990158, -0.007937622256577015, -0.0497005432844162, 0.0066868094727396965, 0.0006898736464791, 0.0039243511855602264, 0.015543275512754917, -0.02745860069990158, 0.011571500450372696, -0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/ltm/virtual-address".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() except ValueEr...
12,157
[ 0.013045674189925194, -0.038598332554101944, 0.0009075761190615594, -0.028878485783934593, 0.04466445371508598, 0.019451405853033066, -0.040027033537626266, -0.003773760050535202, 0.01373660285025835, 0.020821552723646164, -0.019545089453458786, 0.021172871813178062, 0.034195125102996826, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def has_fastl4_profiles(self): if self.profiles is None: return None current = self._read_current_fastl4_profiles_from_device() result = [x['name'] for x in self.profiles if x['name'] in current] if len(result) > 0: return True return False
12,158
[ -0.03249644488096237, 0.018367556855082512, 0.0011683504562824965, -0.058515340089797974, 0.00133341399487108, -0.02947503700852394, -0.027888253331184387, -0.04499507695436478, 0.005013038869947195, 0.008890331722795963, -0.013596339151263237, -0.005284748040139675, 0.03686553239822388, 0...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def snat_type(self): if self._values['snat_type'] is None: return None if 'type' in self._values['snat_type']: if self._values['snat_type']['type'] == 'automap': return 'automap' elif self._values['snat_type']['type'] == 'none': return ...
12,159
[ 0.013109645806252956, -0.062170352786779404, 0.05643555894494057, -0.002636592136695981, 0.0019007357768714428, 0.00024370147730223835, -0.05022286996245384, 0.014043722301721573, 0.008737954311072826, 0.030607275664806366, -0.02778332680463791, -0.00889001227915287, 0.01778002455830574, -...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def destination_tuple(self): Destination = namedtuple('Destination', ['ip', 'port', 'route_domain']) # Remove the partition if self._values['destination'] is None: result = Destination(ip=None, port=None, route_domain=None) return result destination = re.sub(r'^/...
12,160
[ -0.006282709073275328, 0.060420434921979904, 0.004589582793414593, -0.05490567907691002, -0.006597146857529879, 0.03340297192335129, -0.04924579709768295, -0.014367388561367989, -0.0001557071809656918, 0.03308853134512901, 0.025977401062846184, -0.06767669320106506, -0.030573029071092606, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class VirtualServersFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(VirtualServersFactManager, self).__init__(**kwargs) self.want = VirtualServersParameters(client=self.client, para...
12,161
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,162
[ 0.035874202847480774, -0.00011616954725468531, 0.02609686553478241, -0.04291963949799538, 0.04557964950799942, 0.008339494466781616, -0.058088891208171844, 0.008111835457384586, -0.0010139794321730733, 0.022837752476334572, 0.009933104738593102, -0.03704844415187836, -0.015337001532316208, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_facts(self): results = [] collection = self.read_collection_from_device() for resource in collection: attrs = resource attrs['stats'] = self.read_stats_from_device(attrs['fullPath']) params = VirtualServersParameters(params=attrs) results....
12,163
[ 0.014375657774508, 0.025137130171060562, -0.000673315953463316, -0.005948348436504602, 0.031438786536455154, 0.0023399540223181248, -0.03699907287955284, -0.0004097815544810146, 0.0012771283509209752, -0.002533984836190939, 0.009226600639522076, -0.03116077370941639, 0.01014173123985529, -...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/ltm/virtual?expandSubcollections=true".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() ...
12,164
[ 0.0045086718164384365, 0.03274719417095184, -0.024370556697249413, -0.04221540316939354, 0.03355401009321213, 0.012007304467260838, -0.06017890200018883, -0.023065414279699326, 0.010678432881832123, 0.03443201258778572, 0.010512324050068855, 0.004790463484823704, -0.0031056441366672516, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "full_path", "annotation": null, "type_comment": null}}], "kwarg":...
def read_stats_from_device(self, full_path): uri = "https://{0}:{1}/mgmt/tm/ltm/virtual/{2}/stats".format( self.client.provider['server'], self.client.provider['server_port'], transform_name(name=full_path) ) resp = self.client.api.get(uri) try: ...
12,165
[ -0.0032653468661010265, -0.007044075522571802, 0.006291911471635103, -0.029441848397254944, 0.008315591141581535, -0.011091434396803379, -0.0382767915725708, 0.013538951985538006, 0.053821515291929245, 0.03999602422118187, -0.0012715153861790895, -0.023412596434354782, -0.006423241924494505,...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def interfaces(self): if self._values['interfaces'] is None: return None if 'items' not in self._values['interfaces']: return None result = [] for item in self._values['interfaces']['items']: tmp = dict( name=item['name'], ...
12,166
[ -0.008315927349030972, 0.00027731130830943584, 0.03670896589756012, -0.01051167119294405, -0.01606168784201145, -0.03852864354848862, -0.06390707939863205, -0.012040200643241405, 0.025499749928712845, 0.032972559332847595, -0.0032511574681848288, -0.03173517808318138, 0.0014648406067863107, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "autoLasthop"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "cmpHash"}}, {"_type": "C...
class VlansParameters(BaseParameters): api_map = { 'autoLasthop': 'auto_lasthop', 'cmpHash': 'cmp_hash_algorithm', 'failsafeAction': 'failsafe_action', 'failsafe': 'failsafe_enabled', 'failsafeTimeout': 'failsafe_timeout', 'ifIndex': 'if_index', 'learning': 'l...
12,167
[ 0.03554072603583336, 0.04957060515880585, 0.03352944925427437, -0.07019845396280289, 0.023485330864787102, 0.05572707578539848, -0.04905552417039871, -0.007008807733654976, -0.013061032630503178, 0.04701972007751465, 0.002268817974254489, -0.07186634093523026, -0.03083139657974243, -0.0048...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _exec_module(self): results = [] facts = self.read_facts() for item in facts: attrs = item.to_return() results.append(attrs) results = sorted(results, key=lambda k: k['full_path']) return results
12,168
[ -0.01849234662950039, 0.06459704786539078, -0.0022079069167375565, -0.05940621346235275, -0.006596685387194157, 0.020174561068415642, -0.03720097988843918, -0.037128884345293045, -0.014707363210618496, 0.05224478617310524, 0.023478912189602852, -0.054599884897470474, -0.022157171741127968, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class VlansFactManager(BaseManager): def __init__(self, *args, **kwargs): self.client = kwargs.get('client', None) self.module = kwargs.get('module', None) super(VlansFactManager, self).__init__(**kwargs) self.want = VlansParameters(params=self.module.params) def exec_module(sel...
12,169
[ 0.04933878779411316, -0.01453474536538124, 0.014546767808496952, -0.04327964037656784, 0.039745133370161057, 0.0012968863593414426, -0.044385675340890884, -0.007616014219820499, -0.010122627019882202, 0.02620822563767433, 0.015845157206058502, -0.015412360429763794, 0.002018213737756014, 0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_facts(self): results = [] collection = self.read_collection_from_device() for resource in collection: attrs = resource attrs['stats'] = self.read_stats_from_device(attrs['fullPath']) params = VlansParameters(params=attrs) results.append(pa...
12,170
[ 0.010457782074809074, 0.023253662511706352, -0.020961863920092583, -0.013565600849688053, 0.038405004888772964, -0.003009433625265956, -0.024191217496991158, 0.00144394941162318, 0.006371897179633379, 0.012975289486348629, 0.003732855198904872, -0.028566470369696617, 0.009728573262691498, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def read_collection_from_device(self): uri = "https://{0}:{1}/mgmt/tm/net/vlan?expandSubcollections=true".format( self.client.provider['server'], self.client.provider['server_port'], ) resp = self.client.api.get(uri) try: response = resp.json() ...
12,171
[ -0.01309998333454132, 0.01651535928249359, 0.01548480149358511, -0.01249882485717535, 0.008052889257669449, 0.015471589751541615, -0.04389122128486633, -0.014678851701319218, -0.003098281566053629, 0.046084459871053696, 0.02272513508796692, -0.07071216404438019, -0.004482268821448088, -0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "annotation": null, "type_comment": null}}, "v...
def __init__(self, *args, **kwargs): self.module = kwargs.get('module', None) self.client = kwargs.get('client', None) self.kwargs = kwargs self.want = Parameters(params=self.module.params) self.managers = { 'asm-policy-stats': AsmPolicyStatsFactManager, '...
12,172
[ 0.006100423634052277, 0.033215370029211044, -0.04127894714474678, -0.045990511775016785, 0.03513750061392784, 0.0070790695026516914, -0.05621062591671944, -0.017838317900896072, 0.009364531375467777, 0.04645932465791702, 0.003612786764279008, 0.006112143862992525, -0.006094563286751509, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "full_path", "annotation": null, "type_comment": null}}], "kwarg":...
def read_stats_from_device(self, full_path): uri = "https://{0}:{1}/mgmt/tm/net/vlan/{2}/stats".format( self.client.provider['server'], self.client.provider['server_port'], transform_name(name=full_path) ) resp = self.client.api.get(uri) try: ...
12,173
[ -0.00007497640763176605, 0.019099058583378792, 0.03672713413834572, -0.014045518822968006, -0.01937190070748329, -0.008814036846160889, -0.02213592641055584, 0.04778323322534561, 0.01037399098277092, 0.0065779052674770355, -0.02130553312599659, -0.05399932339787483, -0.020119255408644676, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def handle_gtm_pools_keyword(self): if 'gtm-pools' not in self.want.gather_subset: return keys = self.managers.keys() managers = [x for x in keys if x.startswith('gtm-') and x.endswith('-pools')] managers += self.want.gather_subset managers.remove('gtm-pools') ...
12,174
[ 0.012626979500055313, 0.03361832723021507, 0.02817612700164318, -0.028792729601264, -0.04267972707748413, 0.020321127027273178, -0.03141999989748001, 0.03935542702674866, 0.047129999846220016, 0.047773413360118866, 0.04152694717049599, -0.076726995408535, -0.020843898877501488, -0.01628638...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def exec_module(self): self.handle_all_keyword() self.handle_profiles_keyword() self.handle_monitors_keyword() self.handle_gtm_pools_keyword() self.handle_gtm_wide_ips_keyword() res = self.check_valid_gather_subset(self.want.gather_subset) if res: inva...
12,175
[ 0.0022483256179839373, 0.05482780188322067, 0.04163923114538193, -0.0415186770260334, -0.011639455333352089, 0.012597857043147087, -0.027076350525021553, 0.02927042730152607, 0.029535645619034767, -0.001867074752226472, 0.03917993605136871, -0.056949544697999954, -0.015816640108823776, -0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "managers", "annotation": null, "type_comment": null}}], "kwarg": ...
def execute_managers(self, managers): results = dict() client = F5RestClient(**self.module.params) prov = modules_provisioned(client) for manager in managers: manager.provisioned_modules = prov result = manager.exec_module() results.update(result) ...
12,176
[ -0.009345024824142456, 0.018922604620456696, 0.027931036427617073, 0.012398834340274334, -0.059191279113292694, 0.004914246965199709, -0.01071587298065424, 0.020428089424967766, -0.006474811118096113, 0.019730426371097565, -0.01740488037467003, -0.025654450058937073, 0.00005173193494556472, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def handle_gtm_wide_ips_keyword(self): if 'gtm-wide-ips' not in self.want.gather_subset: return keys = self.managers.keys() managers = [x for x in keys if x.startswith('gtm-') and x.endswith('-wide-ips')] managers += self.want.gather_subset managers.remove('gtm-wide-i...
12,177
[ 0.01574934832751751, -0.0021685988176614046, 0.013008368201553822, -0.01888374052941799, -0.02098623290657997, 0.009977167472243309, -0.04130173102021217, -0.028867356479167938, 0.02928011678159237, 0.06624787300825119, 0.008932369761168957, -0.07104620337486267, 0.015027020126581192, 0.01...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class ArgumentSpec(object): def __init__(self): self.supports_check_mode = False argument_spec = dict( gather_subset=dict( type='list', required=True, aliases=['include'], choices=[ # Meta choices ...
12,178
[ 0.0027515075635164976, 0.012528269551694393, 0.006590328644961119, -0.006360784638673067, -0.006445353850722313, 0.015488178469240665, -0.02645796537399292, 0.003820699406787753, 0.012649081647396088, -0.022084549069404602, -0.0030777016654610634, -0.04402412101626396, -0.03315098583698273, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "which", "annotation": null, "type_comment": null}}], "kwarg": nul...
def get_manager(self, which): result = {} manager = self.managers.get(which, None) if not manager: return result kwargs = dict() kwargs.update(self.kwargs) kwargs['client'] = F5RestClient(**self.module.params) result = manager(**kwargs) return...
12,179
[ 0.024623339995741844, 0.044596876949071884, 0.012437650002539158, -0.016274310648441315, -0.029341859742999077, 0.04668127000331879, -0.04068004712462425, 0.0058695171028375626, 0.06193628907203674, 0.04290187358856201, 0.015724578872323036, -0.0733431950211525, -0.005921054165810347, 0.00...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def main(): spec = ArgumentSpec() module = AnsibleModule( argument_spec=spec.argument_spec, supports_check_mode=spec.supports_check_mode ) client = F5RestClient(**module.params) try: mm = ModuleManager(module=module, client=client) results = mm.exec_module() ...
12,180
[ 0.009938891977071762, -0.0004971205489709973, 0.027648700401186943, -0.016372423619031906, -0.018146220594644547, 0.030830273404717445, -0.02031419426202774, -0.006701008882373571, 0.026156459003686905, 0.09826269745826721, 0.01641465723514557, -0.061998412013053894, 0.026212770491838455, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def __init__(self): self.supports_check_mode = False argument_spec = dict( gather_subset=dict( type='list', required=True, aliases=['include'], choices=[ # Meta choices 'all', ...
12,181
[ -0.025935571640729904, -0.049462683498859406, 0.006021155975759029, -0.012466022744774818, 0.008334840647876263, -0.046117596328258514, 0.0014969262992963195, 0.03104240447282791, -0.02078413963317871, -0.00966730061918497, 0.023393306881189346, 0.016056416556239128, -0.033562369644641876, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "p", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "q", "annotation": null, "type_comment": null}}, {"_type": "arg", "_f...
def hue2rgb(p, q, t): # Helper for the hsl2rgb function. # From: http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c if t < 0: t += 1 if t > 1: t -= 1 if t < 1/6: return p + (q - p) * 6 * t if t < 1/2: return q if t < 2/3: return p + (q -...
12,182
[ -0.002466682344675064, -0.055489808320999146, 0.0018566000508144498, -0.0012662829831242561, 0.04756269231438637, -0.08234924077987671, 0.019174765795469284, 0.005861005745828152, 0.0340697318315506, 0.017235152423381805, 0.012143666855990887, -0.016961075365543365, -0.0593690350651741, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "h", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "s", "annotation": null, "type_comment": null}}, {"_type": "arg", "_f...
def hsl2rgb(h, s, l): # Convert a hue, saturation, lightness color into red, green, blue color. # Expects incoming values in range 0...255 and outputs values in the same # range. # From: http://axonflux.com/handy-rgb-to-hsl-and-rgb-to-hsv-color-model-c h /= 255.0 s /= 255.0 l /= 255.0 r ...
12,183
[ 0.030007371678948402, -0.06005854904651642, 0.03287668898701668, 0.012561479583382607, 0.011323949322104454, -0.026634279638528824, 0.024925829842686653, -0.05304952710866928, -0.04836224392056465, 0.034212782979011536, -0.027795149013400078, -0.043937798589468, -0.0049200039356946945, -0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "size_divisor", "annotation": null, "type_comment": null}}, {"_typ...
def __init__(self, size_divisor=10.0, hue_offset=0, base='bottom'): super(FireTile, self).__init__() self.size_divisor = size_divisor self.hue_offset = hue_offset self.base = base self.fire = None self.palette = [] self.frame = 0 for x in range(256): ...
12,184
[ -0.0034216593485325575, 0.014517110772430897, -0.003782969433814287, 0.015077950432896614, 0.03768409043550491, 0.0035025496035814285, 0.006363369524478912, -0.061347197741270065, -0.036044713109731674, 0.018885185942053795, -0.03485832363367081, -0.05211491882801056, 0.03399549424648285, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "width", "annotation": ...
class FireMatrix(object): def __init__(self, width, height): self.width = width self.height = height self.data = [0]*(width*height) def get(self, x, y): x %= self.width # Wrap around when x values go outside the bounds! y %= self.height # Like-wise wrap around y value...
12,185
[ 0.010556110180914402, -0.03189374879002571, -0.00048827644786797464, -0.024358272552490234, 0.03619605675339699, -0.026818573474884033, 0.005023652222007513, -0.014800451695919037, -0.005226530134677887, 0.02470606379210949, -0.01807226613163948, -0.036402154713869095, 0.004060785286128521, ...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def draw(self): # Set the base concealed row to random intensity values (0 to 255). # The concealed row is there to reduce the base intensity, resulting in # a more pleasing result (see the video linked to above). concealed_row = self.size.rows if self.base == 'bottom' else -1 fo...
12,186
[ 0.035259444266557693, 0.004250132478773594, 0.02645075134932995, -0.026352055370807648, 0.007642836309969425, 0.0032878383062779903, 0.03444519639015198, -0.019764041528105736, -0.03296474367380142, 0.029559701681137085, 0.0004217747482471168, -0.06889039278030396, -0.03903459757566452, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def main(): # Initialize our matrix, animating at 10 frames per second. tiles = TileManager( NTNeoPixelMatrix(MATRIX_SIZE, LED_PIN, strip_type=STRIP_TYPE), draw_fps=10 ) #tiles = TileManager(NTRGBMatrix(chain_length=CHAIN), draw_fps=10) # Play with this number to set the fire height...
12,187
[ 0.013856781646609306, 0.03360850736498833, 0.04975232854485512, 0.00044028609408997, 0.02276034466922283, 0.019641652703285217, 0.017648134380578995, -0.008438817225396633, -0.01038341410458088, 0.05581849440932274, 0.03174952045083046, -0.013502107001841068, -0.015532315708696842, 0.01698...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class NativeHeapClassifierTest(unittest.TestCase): def testStandardRuleParsingAndProcessing(self): rule_tree = native_heap_classifier.LoadRules(_TEST_RULES) nheap = native_heap.NativeHeap() mock_addr = 0 for test_entry in _TEST_STACK_TRACES: mock_strace = stacktrace.Stacktrace() for (mock_...
12,188
[ 0.01402906235307455, 0.05511506646871567, 0.04337620735168457, -0.0012733782641589642, 0.02843356691300869, 0.009511228650808334, 0.022501565515995026, -0.03213794156908989, -0.02976013347506523, 0.049958981573581696, 0.01882222108542919, -0.013265660963952541, -0.034540776163339615, 0.015...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testStandardRuleParsingAndProcessing(self): rule_tree = native_heap_classifier.LoadRules(_TEST_RULES) nheap = native_heap.NativeHeap() mock_addr = 0 for test_entry in _TEST_STACK_TRACES: mock_strace = stacktrace.Stacktrace() for (mock_btstr, mock_source_path) in test_entry[1]: mo...
12,189
[ 0.0015629441477358341, 0.01854650303721428, 0.0183376744389534, -0.00008437736687483266, 0.04069528356194496, 0.0005848804721608758, 0.021731123328208923, -0.00764831155538559, -0.03093259036540985, 0.03469148650765419, 0.02902703918516636, -0.024028226733207703, 0.009938889183104038, -0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testInferHeuristicRules(self): nheap = native_heap.NativeHeap() mock_addr = 0 for (mock_alloc_size, mock_source_path) in _HEURISTIC_TEST_STACK_TRACES: mock_strace = stacktrace.Stacktrace() mock_addr += 4 # Addr is irrelevant, just keep it distinct. mock_frame = stacktrace.Frame(mock_a...
12,190
[ 0.019628772512078285, 0.006947188172489405, 0.05046268552541733, -0.040285781025886536, -0.018824638798832893, -0.02214663289487362, -0.00740198465064168, -0.02831605263054371, 0.03448547050356865, -0.0037866788916289806, 0.0023712057154625654, -0.05947953090071678, -0.023992186412215233, ...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class RendererAlgoTest( GafferSceneTest.SceneTestCase ) : def testObjectSamples( self ) : frame = GafferTest.FrameNode() sphere = GafferScene.Sphere() sphere["type"].setValue( sphere.Type.Primitive ) sphere["radius"].setInput( frame["output"] ) with Gaffer.Context() as c : c["scene:path"] = IECore.Int...
12,191
[ 0.022565247491002083, 0.022914595901966095, 0.05367009714245796, -0.021685410290956497, -0.004298912826925516, -0.03765187785029411, -0.034598320722579956, -0.016587527468800545, 0.047381844371557236, 0.019278796389698982, 0.009639398194849491, -0.060398269444704056, -0.019615205004811287, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testObjectSamples( self ) : frame = GafferTest.FrameNode() sphere = GafferScene.Sphere() sphere["type"].setValue( sphere.Type.Primitive ) sphere["radius"].setInput( frame["output"] ) with Gaffer.Context() as c : c["scene:path"] = IECore.InternedStringVectorData( [ "sphere" ] ) samples = GafferSce...
12,192
[ 0.019351722672581673, 0.020828040316700935, 0.02920713648200035, -0.021665949374437332, -0.01053372211754322, -0.037586234509944916, -0.03822464123368263, -0.03998026251792908, 0.04508752003312111, -0.00913720577955246, 0.017649304121732712, -0.04357130452990532, -0.008818001486361027, -0....
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testNonInterpolableObjectSamples( self ) : frame = GafferTest.FrameNode() procedural = GafferScene.ExternalProcedural() procedural["parameters"]["frame"] = Gaffer.NameValuePlug( "frame", 0.0 ) procedural["parameters"]["frame"]["value"].setInput( frame["output"] ) with Gaffer.Context() as c : c["scen...
12,193
[ 0.0278458334505558, 0.0003206487454008311, 0.021180035546422005, -0.05141803249716759, -0.017954649403691292, -0.031393758952617645, 0.0019369116052985191, -0.015051801688969135, 0.05617547407746315, 0.007539340294897556, 0.037683259695768356, -0.014084186404943466, -0.04166123643517494, -...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testOutputCameras( self ) : frame = GafferTest.FrameNode() camera = GafferScene.Camera() camera["perspectiveMode"].setValue( camera.PerspectiveMode.ApertureFocalLength ) camera["focalLength"].setInput( frame["output"] ) options = GafferScene.StandardOptions() options["in"].setInput( camera["out"] ) ...
12,194
[ 0.032553575932979584, -0.0013826837530359626, 0.05291517451405525, -0.061759356409311295, -0.027681782841682434, -0.05896119773387909, -0.02062392793595791, -0.014278103597462177, 0.05491385981440544, 0.01128632202744484, 0.009456276893615723, -0.053764618933200836, -0.02735699713230133, -...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testObjectSamplesForCameras( self ) : frame = GafferTest.FrameNode() camera = GafferScene.Camera() camera["perspectiveMode"].setValue( camera.PerspectiveMode.ApertureFocalLength ) camera["focalLength"].setInput( frame["output"] ) with Gaffer.Context() as c : c["scene:path"] = IECore.InternedStringVec...
12,195
[ 0.010074015706777573, 0.012563718482851982, 0.05248216912150383, -0.006502668373286724, -0.009728401899337769, -0.021978506818413734, -0.04034726694226265, -0.07526710629463196, 0.02264413610100746, 0.005437024403363466, -0.004704194143414497, -0.07040290534496307, -0.004643391817808151, -...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testCoordinateSystemSamples( self ) : coordinateSystem = GafferScene.CoordinateSystem() with Gaffer.Context() as c : c["scene:path"] = IECore.InternedStringVectorData( [ "coordinateSystem" ] ) samples = GafferScene.Private.RendererAlgo.objectSamples( coordinateSystem["out"]["object"], [ 0.75, 1.25 ] ) ...
12,196
[ 0.017822550609707832, 0.01877446286380291, -0.002481566509231925, -0.029497811570763588, -0.02075856924057007, -0.04174651578068733, 0.01954287476837635, -0.037273675203323364, 0.022444486618041992, -0.019772250205278397, 0.008160067722201347, -0.040553756058216095, 0.004940195474773645, -...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "frame", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": [...
def expectedCamera( frame ) : with Gaffer.Context() as c : c.setFrame( frame ) camera = options["out"].object( "/camera" ) GafferScene.SceneAlgo.applyCameraGlobals( camera, sceneGlobals, options["out"] ) return camera
12,197
[ -0.006932389456778765, 0.03206963092088699, -0.012234318070113659, 0.017442407086491585, -0.006234458182007074, 0.005621569696813822, 0.029653266072273254, 0.022720877081155777, -0.0335945226252079, 0.04727162420749664, -0.04701356589794159, -0.008686014451086521, 0.06554685533046722, 0.02...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "Form", "annotation": n...
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(425, 120) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.ho...
12,198
[ -0.003884639823809266, -0.04106532782316208, 0.04370144382119179, -0.04466882348060608, -0.01863417960703373, -0.026699718087911606, 0.0016400133026763797, 0.004543668124824762, 0.02220139652490616, -0.01049608550965786, -0.00438042264431715, 0.021427491679787636, -0.006904682610183954, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "bool"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "uint8"}}, {"_type": "Constant",...
class Randint_dtype(Benchmark): high = { 'bool': 1, 'uint8': 2**7, 'uint16': 2**15, 'uint32': 2**31, 'uint64': 2**63 } param_names = ['dtype'] params = ['bool', 'uint8', 'uint16', 'uint32', 'uint64'] def setup(self, name): if NumpyVersion(np.__ve...
12,199
[ -0.004896895959973335, 0.01575915701687336, 0.014001450501382351, 0.014928460121154785, -0.007608699146658182, 0.011346833780407906, 0.014157959260046482, 0.009282131679356098, -0.03421506658196449, 0.038356512784957886, -0.04584481939673424, 0.005113599356263876, 0.055813178420066833, 0.0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "Form", "annotation": null, "type_comment": null}}], "kwarg": null...
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(425, 120) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectNam...
12,200
[ -0.013410631567239761, -0.03966078907251358, 0.011848695576190948, -0.0013279897393658757, 0.04439476504921913, 0.019252410158514977, -0.03688095882534981, -0.022665275260806084, -0.004018372856080532, -0.005274114664644003, 0.009254642762243748, 0.018041392788290977, -0.03154147416353226, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def test_ordering(): # See https://bugzilla.redhat.com/show_bug.cgi?id=1154686 device = cupshelpers.Device("dnssd://Abc%20Def%20%5BABCDEF%5D._ipp._tcp.local/", **{'device-class': "network", 'device-make-and-model': "Abc Def", ...