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 |
|---|---|---|---|---|---|
15,301 | [
-0.03144132345914841,
0.00048455933574587107,
0.02575010061264038,
-0.016955548897385597,
-0.01117842085659504,
-0.019360896199941635,
-0.005642901640385389,
-0.004375799093395472,
0.009573066607117653,
0.012209284119307995,
-0.0059757842682302,
-0.046818364411592484,
0.010807954706251621,
... | 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": "subcomponent", "annotation": null, "type_comment": null}}, {"_typ... | def get_path_component(self, subcomponent, now, filename):
if subcomponent == 'date':
return now.strftime('%Y-%m-%d')
if subcomponent == 'time':
return now.strftime('%H-%M')
if subcomponent.startswith('%'):
return now.strftime(subcomponent)
f_... | |
15,302 | [
0.02840506285429001,
-0.010312499478459358,
0.020739872008562088,
-0.06236582249403,
-0.004581882618367672,
0.0011826739646494389,
0.026191137731075287,
-0.0037386075127869844,
-0.03080696053802967,
0.026065822690725327,
-0.02030126564204693,
-0.03389810025691986,
0.03320885822176933,
-0.0... | 10 | {"_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": "instance", "annotation": null, "type_comment": null}}, {"_type": ... | def __call__(self, instance, filename):
now = datetime.now()
result = []
for component in self.path:
folder = []
for subcomponent in component:
folder.append(self.get_path_component(subcomponent, now, filename))
result.append(''.join(folder))
... | |
15,303 | [
0.022135216742753983,
0.013829996809363365,
0.025373049080371857,
-0.009707477875053883,
-0.054164476692676544,
0.027154458686709404,
-0.03391899913549423,
-0.023687930777668953,
0.02486751414835453,
0.08006713539361954,
-0.010766694322228432,
-0.04561852663755417,
0.037433672696352005,
0.... | 16 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "s", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "ignorecase", "annotation": null, "type_comment": null}}], "kwarg": n... | def ant_matcher(s, ignorecase):
reflags = re.I if ignorecase else 0
ret = []
for x in Utils.to_list(s):
x = x.replace('\\', '/').replace('//', '/')
if x.endswith('/'):
x += '**'
accu = []
for k in x.split('/'):
if k == '**':
accu.append(k)
else:
k = k.replace('.', '[.]').replace('*', '.*').r... | |
15,304 | [
-0.02096601203083992,
-0.010958685539662838,
-0.01805172488093376,
-0.06690819561481476,
-0.021122565492987633,
0.02450651116669178,
0.004040262661874294,
-0.005551598034799099,
-0.02090580016374588,
0.04205245152115822,
0.0028209583833813667,
-0.011470491997897625,
0.010061518289148808,
0... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "name", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "nn", "annotation": null, "type_comment": null}}], "kwarg": null, ... | def ant_sub_filter(name, nn):
ret = []
for lst in nn:
if not lst:
pass
elif lst[0] == '**':
ret.append(lst)
if len(lst) > 1:
if lst[1].match(name):
ret.append(lst[2:])
else:
ret.append([])
elif lst[0].match(name):
ret.append(lst[1:])
return ret | |
15,305 | [
0.022296970710158348,
0.031797416508197784,
0.023998863995075226,
-0.0038481124211102724,
-0.002108517801389098,
0.018473094329237938,
-0.002972929272800684,
-0.0366445854306221,
0.043193645775318146,
0.01788066141307354,
0.008170169778168201,
-0.019690271466970444,
0.017180515453219414,
-... | 14 | {"_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 abspath(self):
try:
return self.cache_abspath
except AttributeError:
pass
if not self.parent:
val = ''
elif not self.parent.name:
val = self.name + os.sep
else:
val = self.parent.abspath().rstrip(os.sep) + os.sep + self.name
self.cache_abspath = val
return val | |
15,306 | [
-0.0037036556750535965,
0.010497873649001122,
-0.04910480976104736,
-0.04265119880437851,
0.011609328910708427,
0.00024335490888915956,
0.04368377476930618,
-0.020479459315538406,
-0.010289924219250679,
0.002004204783588648,
0.04302407056093216,
-0.07750069350004196,
-0.024122163653373718,
... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}... | def setUpClass(cls):
super(SubmitVideo, cls).setUpClass()
cls.video_pg = video_page.VideoPage(cls)
cls.submit_pg = submit_page.SubmitPage(cls)
cls.test_videos = {
'youtube': {
'url': 'http://www.youtube.com/watch?v=WqJineyEszo',
'form': 'scrap... | |
15,307 | [
0.0398033931851387,
-0.015579787082970142,
0.016695119440555573,
-0.013221325352787971,
0.020970556885004044,
-0.05906609818339348,
-0.017101749777793884,
0.009306047111749649,
-0.010485278442502022,
0.013639574870467186,
-0.005030609667301178,
-0.03566737100481987,
-0.011292731389403343,
... | 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 rendered_content(self):
renderer = getattr(self, "accepted_renderer", None)
media_type = getattr(self, "accepted_media_type", None)
context = getattr(self, "renderer_context", None)
assert renderer, ".accepted_renderer not set on Response"
assert media_type, ".accepted_media... | |
15,308 | [
0.02485022135078907,
0.004604823421686888,
0.011937727220356464,
-0.028280895203351974,
-0.04420630261301994,
0.023115897551178932,
-0.04775090888142586,
-0.003424342954531312,
0.025875626131892204,
0.06025830656290054,
0.03435736149549484,
-0.09646392613649368,
-0.010817378759384155,
-0.0... | 13 | {"_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():
argument_spec = dict(
name=dict(type='str'),
details_level=dict(type='str', choices=['uid', 'standard', 'full']),
limit=dict(type='int'),
offset=dict(type='int'),
order=dict(type='list', options=dict(
ASC=dict(type='str', choices=['name']),
... | |
15,309 | [
0.013068722561001778,
-0.01241245772689581,
0.09151500463485718,
-0.014019174501299858,
0.03625297546386719,
-0.009476237930357456,
0.005620682146400213,
0.004766406491398811,
0.025322770699858665,
0.028174128383398056,
0.028445687144994736,
-0.01821700669825077,
0.07010719180107117,
-0.07... | 7 | {"_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 test_containers(self):
web = self.create_service('web')
db = self.create_service('db')
project = Project('composetest', [web, db], self.client)
project.up()
containers = project.containers()
self.assertEqual(len(containers), 2) | |
15,310 | [
0.006105650682002306,
0.009411669336259365,
0.06915222108364105,
-0.009740658104419708,
-0.015185105614364147,
0.03581465780735016,
0.0005378326750360429,
-0.01937810331583023,
0.031995803117752075,
0.037543464452028275,
0.029802542179822922,
0.0026415891479700804,
0.00403172941878438,
-0.... | 13 | {"_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 ProjectTest(DockerClientTestCase):
def test_containers(self):
web = self.create_service('web')
db = self.create_service('db')
project = Project('composetest', [web, db], self.client)
project.up()
containers = project.containers()
self.assertEqual(len(containe... | |
15,311 | [
0.02568736858665943,
0.0038209406193345785,
0.07684028148651123,
-0.019287709146738052,
0.021949611604213715,
0.00517962034791708,
-0.013376064598560333,
-0.021483778953552246,
0.019864454865455627,
0.025066256523132324,
0.020507747307419777,
-0.01875532791018486,
0.07369036227464676,
-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 test_containers_with_service_names(self):
web = self.create_service('web')
db = self.create_service('db')
project = Project('composetest', [web, db], self.client)
project.up()
containers = project.containers(['web'])
self.assertEqual(
[c.name for c in co... | |
15,312 | [
0.035166941583156586,
-0.016422845423221588,
0.08184728771448135,
-0.003980944398790598,
0.018453940749168396,
0.001286843209527433,
0.01224459521472454,
0.002518556546419859,
0.017873628064990044,
0.012000864371657372,
0.02509271539747715,
-0.014612270519137383,
0.05269238352775574,
-0.07... | 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 test_containers_with_extra_service(self):
web = self.create_service('web')
web_1 = web.create_container()
db = self.create_service('db')
db_1 = db.create_container()
self.create_service('extra').create_container()
project = Project('composetest', [web, db], self.cl... | |
15,313 | [
0.008804691024124622,
-0.003877989947795868,
0.03770875558257103,
-0.03106878325343132,
0.03317742422223091,
0.010391779243946075,
0.014053857885301113,
0.01384075079113245,
0.013481833040714264,
-0.0022740778513252735,
0.048678167164325714,
-0.0219276063144207,
0.030866893008351326,
-0.06... | 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 test_volumes_from_service(self):
service_dicts = build_service_dicts({
'data': {
'image': 'busybox:latest',
'volumes': ['/var/data'],
},
'db': {
'image': 'busybox:latest',
'volumes_from': ['data'],
... | |
15,314 | [
0.011202442459762096,
-0.013234464451670647,
0.05584375187754631,
0.006138180382549763,
0.011170856654644012,
-0.0019477930618450046,
0.0021833707578480244,
0.023331401869654655,
0.008580817840993404,
-0.0074226707220077515,
0.03499710187315941,
0.05057944729924202,
0.021183565258979797,
-... | 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 test_volumes_from_container(self):
data_container = Container.create(
self.client,
image='busybox:latest',
volumes=['/var/data'],
name='composetest_data_container',
labels={LABEL_PROJECT: 'composetest'},
)
project = Project.from_dic... | |
15,315 | [
-0.015154684893786907,
-0.032505352050065994,
0.040372271090745926,
-0.03018871136009693,
0.0330362468957901,
0.004017922095954418,
-0.01651812344789505,
0.00939324963837862,
0.01694042794406414,
0.023516304790973663,
0.03636641800403595,
-0.014068759977817535,
0.04918032884597778,
-0.0652... | 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 test_net_from_service(self):
project = Project.from_dicts(
name='composetest',
service_dicts=build_service_dicts({
'net': {
'image': 'busybox:latest',
'command': ["top"]
},
'web': {
... | |
15,316 | [
-0.0182126946747303,
-0.029573088511824608,
0.027927633374929428,
-0.005060334224253893,
0.01460622064769268,
-0.008165283128619194,
0.0038459666538983583,
0.02826574072241783,
0.017626643180847168,
0.023532243445515633,
0.010898314416408539,
0.05409711226820946,
0.05058079957962036,
-0.04... | 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 test_net_from_container(self):
net_container = Container.create(
self.client,
image='busybox:latest',
name='composetest_net_container',
command='top',
labels={LABEL_PROJECT: 'composetest'},
)
net_container.start()
project =... | |
15,317 | [
0.025910068303346634,
0.0027686653193086386,
0.06481180340051651,
-0.031941913068294525,
-0.01783911883831024,
0.02781486138701439,
0.007826745510101318,
0.01674019917845726,
0.049329254776239395,
0.025910068303346634,
0.04036695882678032,
-0.03936572000384331,
0.043834660202264786,
-0.066... | 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 test_start_stop_kill_remove(self):
web = self.create_service('web')
db = self.create_service('db')
project = Project('composetest', [web, db], self.client)
project.start()
self.assertEqual(len(web.containers()), 0)
self.assertEqual(len(db.containers()), 0)
... | |
15,318 | [
0.01017787866294384,
-0.005394525360316038,
0.085464246571064,
-0.007808029651641846,
0.021840032190084457,
0.013483195565640926,
0.022314002737402916,
0.01095743477344513,
0.04876900464296341,
0.020680053159594536,
0.027540143579244614,
-0.00022100404021330178,
0.030808040872216225,
-0.07... | 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 test_project_up(self):
web = self.create_service('web')
db = self.create_service('db', volumes=['/var/db'])
project = Project('composetest', [web, db], self.client)
project.start()
self.assertEqual(len(project.containers()), 0)
project.up(['db'])
self.assertE... | |
15,319 | [
0.02026236429810524,
-0.0031601854134351015,
0.08828690648078918,
0.009623073972761631,
-0.0037953206337988377,
0.021377725526690483,
0.028751490637660027,
0.0025002642069011927,
0.0302882082760334,
0.007559658959507942,
0.0059083071537315845,
0.017932502552866936,
0.04002901539206505,
-0.... | 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 test_project_up_recreates_containers(self):
web = self.create_service('web')
db = self.create_service('db', volumes=['/etc'])
project = Project('composetest', [web, db], self.client)
project.start()
self.assertEqual(len(project.containers()), 0)
project.up(['db'])
... | |
15,320 | [
0.021922804415225983,
-0.0014438154175877571,
0.10102790594100952,
-0.01347456593066454,
-0.01089246291667223,
0.020318390801548958,
0.023865649476647377,
0.010798454284667969,
0.04397095367312431,
0.01799951307475567,
0.026698442175984383,
-0.0004073705931659788,
0.06036605313420296,
-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 test_project_up_starts_uncreated_services(self):
db = self.create_service('db')
web = self.create_service('web', links=[(db, 'db')])
project = Project('composetest', [db, web], self.client)
project.up(['db'])
self.assertEqual(len(project.containers()), 1)
project.up(... | |
15,321 | [
0.035526905208826065,
0.01714794710278511,
0.07395898550748825,
-0.007730733137577772,
0.0018680553184822202,
0.01704946719110012,
0.028288574889302254,
0.0038807541131973267,
0.025531115010380745,
0.01927759312093258,
0.002094253199175,
0.00784767884761095,
0.04744306579232216,
-0.0400816... | 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 test_project_up_with_no_recreate_running(self):
web = self.create_service('web')
db = self.create_service('db', volumes=['/var/db'])
project = Project('composetest', [web, db], self.client)
project.start()
self.assertEqual(len(project.containers()), 0)
project.up(['d... | |
15,322 | [
0.04010961577296257,
0.010793177410960197,
0.04785175994038582,
-0.0031444926280528307,
-0.01438688300549984,
0.026000099256634712,
0.017401736229658127,
0.012186039239168167,
0.031161529943346977,
0.012083534151315689,
0.0036178247537463903,
0.001505919499322772,
0.03434521704912186,
-0.0... | 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 test_project_up_with_no_recreate_stopped(self):
web = self.create_service('web')
db = self.create_service('db', volumes=['/var/db'])
project = Project('composetest', [web, db], self.client)
project.start()
self.assertEqual(len(project.containers()), 0)
project.up(['d... | |
15,323 | [
-0.004297072999179363,
-0.016604777425527573,
0.088643379509449,
-0.014042389579117298,
-0.0021517076529562473,
0.001999486703425646,
0.017492733895778656,
-0.0033139786683022976,
0.03105309046804905,
0.03019050508737564,
0.03244844824075699,
0.01616079919040203,
0.05089256539940834,
-0.07... | 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 test_project_up_starts_links(self):
console = self.create_service('console')
db = self.create_service('db', volumes=['/var/db'])
web = self.create_service('web', links=[(db, 'db')])
project = Project('composetest', [web, db, console], self.client)
project.start()
sel... | |
15,324 | [
0.021597126498818398,
-0.009984043426811695,
0.10376493632793427,
-0.016870440915226936,
0.001730855437926948,
0.02705194428563118,
0.004865524359047413,
0.00018357558292336762,
0.04395940899848938,
0.024521995335817337,
0.03897355869412422,
-0.006892568897455931,
0.04484797641634941,
-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 test_project_up_without_all_services(self):
console = self.create_service('console')
db = self.create_service('db')
project = Project('composetest', [console, db], self.client)
project.start()
self.assertEqual(len(project.containers()), 0)
project.up()
self.a... | |
15,325 | [
-0.004404312931001186,
-0.002494828077033162,
0.08626378327608109,
-0.014744322746992111,
0.008036605082452297,
0.04029693081974983,
0.02431231364607811,
0.005881909281015396,
0.033842336386442184,
0.01823739893734455,
0.015048068948090076,
0.025691824033856392,
0.01955362968146801,
-0.071... | 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 test_project_up_starts_depends(self):
project = Project.from_dicts(
name='composetest',
service_dicts=build_service_dicts({
'console': {
'image': 'busybox:latest',
'command': ["top"],
},
'data': {... | |
15,326 | [
-0.0017516108928248286,
-0.0066943662241101265,
0.05893979221582413,
-0.0161301176995039,
0.025027383118867874,
0.02969018742442131,
0.012666670605540276,
0.003484864253550768,
0.023473115637898445,
0.018149442970752716,
0.01734171248972416,
0.011240905150771141,
0.008989052847027779,
-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}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def test_project_up_with_no_deps(self):
project = Project.from_dicts(
name='composetest',
service_dicts=build_service_dicts({
'console': {
'image': 'busybox:latest',
'command': ["top"],
},
'data': {
... | |
15,327 | [
0.022501032799482346,
0.007678620982915163,
0.06290611624717712,
-0.021813396364450455,
-0.007181993685662746,
0.0019785501062870026,
0.011174112558364868,
-0.008137046359479427,
0.010091720148921013,
0.04635187238454819,
0.011409692466259003,
-0.025302520021796227,
-0.01331979688256979,
-... | 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 test_unscale_after_restart(self):
web = self.create_service('web')
project = Project('composetest', [web], self.client)
project.start()
service = project.get_service('web')
service.scale(1)
self.assertEqual(len(service.containers()), 1)
service.scale(3)
... | |
15,328 | [
0.047277193516492844,
0.03706613555550575,
-0.0008116992539726198,
-0.012380906380712986,
-0.032726436853408813,
0.01781829446554184,
0.018545832484960556,
-0.03310935199260712,
0.044086236506700516,
0.01895427331328392,
0.032803021371364594,
-0.0020549751352518797,
-0.01569950021803379,
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": "page", "annotation": null, "type_comment": null}}, {"_type": "arg... | def ValidateAndMeasurePage(self, page, tab, results):
tab.WaitForDocumentReadyStateToBeComplete()
tab.WaitForJavaScriptExpression('window.done', 600)
self._power_metric.Stop(page, tab)
self._memory_metric.Stop(page, tab)
self._memory_metric.AddResults(tab, results)
self._power_metric.AddResult... | |
15,329 | [
-0.03298937529325485,
0.016700195148587227,
0.031215520575642586,
-0.039111338555812836,
-0.0398901030421257,
-0.0154995983466506,
-0.006143595091998577,
-0.00964263267815113,
-0.0094749815762043,
0.0309991966933012,
-0.0064951214008033276,
-0.01622428372502327,
0.019858522340655327,
-0.03... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "1.0"}}, "targets": [{"_type": "Name", "_fields": {"id": "VERSION", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": null}}, {... | class VirtualInterfaceList(base.ObjectListBase, base.NovaObject):
# Version 1.0: Initial version
VERSION = '1.0'
fields = {
'objects': fields.ListOfObjectsField('VirtualInterface'),
}
child_versions = {
'1.0': '1.0',
}
@base.remotable_classmethod
def get_all(cls, context... | |
15,330 | [
-0.013830697163939476,
0.028751827776432037,
0.029641976580023766,
-0.03491611406207085,
-0.007143449503928423,
-0.0024117487482726574,
0.02128569968044758,
-0.0014729192480444908,
-0.0014235436683520675,
0.02022864669561386,
0.011238137260079384,
-0.006809643469750881,
0.022431766614317894,... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "1.0"}}, "targets": [{"_type": "Name", "_fields": {"id": "VERSION", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": null}}, {... | class VirtualInterface(base.NovaPersistentObject, base.NovaObject):
# Version 1.0: Initial version
VERSION = '1.0'
fields = {
'id': fields.IntegerField(),
'address': fields.StringField(nullable=True),
'network_id': fields.IntegerField(),
'instance_uuid': fields.UUIDField(),
... | |
15,331 | [
0.014512164518237114,
0.031050214543938637,
0.008459579199552536,
-0.0535154864192009,
-0.011814326047897339,
0.0032419192139059305,
-0.01707962341606617,
0.01387029979377985,
-0.015164058655500412,
0.041480518877506256,
0.019667143002152443,
-0.03010747581720352,
-0.03143132105469704,
-0.... | 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():
parser = load_parser()
args = parser.parse_args()
try:
if args.jenkins_command is None:
parser.print_help()
else:
JenkinsCli(args).run_command(args)
except JenkinsException as e:
print("Jenkins server response: %s:" % e)
except KeyboardInt... | |
15,332 | [
-0.021526865661144257,
-0.019316790625452995,
-0.018010281026363373,
-0.013443606905639172,
-0.03799864277243614,
0.0136267626658082,
-0.008498410694301128,
0.018352171406149864,
0.04776693135499954,
0.036191508173942566,
-0.002855698112398386,
-0.04210132360458374,
0.04044071212410927,
-0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "interface", "annotation": null, "type_comment": null}}], "kwarg... | def get_udld_interface(module, interface):
command = 'show udld {0}'.format(interface)
interface_udld = {}
mode = None
try:
body = execute_show_command(command, module)[0]
table = body['TABLE_interface']['ROW_interface']
status = str(table.get('mib-port-status', None))
#... | |
15,333 | [
-0.020683005452156067,
-0.048053085803985596,
-0.04453357309103012,
-0.019064029678702354,
0.006974502000957727,
0.02827342227101326,
-0.006898245774209499,
0.03099517896771431,
0.03709566965699196,
0.025387421250343323,
0.026232104748487473,
-0.052839625626802444,
0.024190787225961685,
-0... | 13 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "interface", "annotation": null, "type_comment": null}}], "kwarg... | def is_interface_copper(module, interface):
command = 'show interface status'
copper = []
try:
body = execute_show_command(command, module)[0]
table = body['TABLE_interface']['ROW_interface']
for each in table:
itype = each.get('type', 'DNE')
if 'CU' in itype ... | |
15,334 | [
0.009485391899943352,
-0.039604149758815765,
0.026899058371782303,
-0.040944136679172516,
-0.033201973885297775,
0.028139790520071983,
-0.009044932201504707,
0.012990458868443966,
0.025459809228777885,
0.050299253314733505,
0.007618091069161892,
-0.04069599136710167,
0.044715963304042816,
... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "delta", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "interface", "annotation": null, "type_comment": null}}, {"_type"... | def get_commands_config_udld_interface(delta, interface, module, existing):
commands = []
copper = is_interface_copper(module, interface)
if delta:
mode = delta['mode']
if mode == 'aggressive':
command = 'udld aggressive'
elif copper:
if mode == 'enabled':
... | |
15,335 | [
0.001176479272544384,
0.00223626964725554,
0.0006070217350497842,
-0.03450153395533562,
-0.049233101308345795,
0.06173958629369736,
-0.019411908462643623,
-0.0047410838305950165,
0.04043508321046829,
0.09647130221128464,
0.013363270089030266,
-0.06450175493955612,
0.04040950536727905,
0.02... | 12 | {"_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():
argument_spec = dict(
mode=dict(choices=['enabled', 'disabled', 'aggressive'],
required=True),
interface=dict(type='str', required=True),
state=dict(choices=['absent', 'present'], default='present'),
)
argument_spec.update(nxos_argument_spec)
m... | |
15,336 | [
0.007563217077404261,
-0.028273940086364746,
0.006759277544915676,
-0.025923963636159897,
-0.03527440130710602,
0.04034540429711342,
-0.019442971795797348,
0.01810719631612301,
0.03322126343846321,
0.044352732598781586,
0.012015806511044502,
-0.05733945220708847,
0.03297389671206474,
-0.01... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "delta", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "interface", "annotation": null, "type_comment": null}}, {"_type"... | def get_commands_remove_udld_interface(delta, interface, module, existing):
commands = []
copper = is_interface_copper(module, interface)
if delta:
mode = delta['mode']
if mode == 'aggressive':
command = 'no udld aggressive'
elif copper:
if mode == 'enabled':... | |
15,337 | [
0.004607203882187605,
0.024674000218510628,
0.015336897224187851,
-0.023557472974061966,
-0.021336691454052925,
0.01105483528226614,
-0.015754060819745064,
-0.020833641290664673,
0.02374151721596718,
0.017925765365362167,
0.005766673479229212,
-0.028195351362228394,
0.024085063487291336,
0... | 8 | {"_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 TestBayes_mvs(TestCase):
def test_result_attributes(self):
x = np.arange(15)
attributes = ('statistic', 'minmax')
res = stats.bayes_mvs(x)
for i in res:
check_named_results(i, attributes) | |
15,338 | [
0.0029030488803982735,
-0.024425428360700607,
-0.010574343614280224,
-0.0005568664637394249,
-0.00037675179191865027,
0.01744113862514496,
-0.017636960372328758,
-0.012441172264516354,
0.022623872384428978,
0.032584644854068756,
-0.016932005062699318,
-0.034046776592731476,
0.012330207042396... | 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}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestAnderson(TestCase):
def test_normal(self):
rs = RandomState(1234567890)
x1 = rs.standard_exponential(size=50)
x2 = rs.standard_normal(size=50)
A,crit,sig = stats.anderson(x1)
assert_array_less(crit[:-1], A)
A,crit,sig = stats.anderson(x2)
assert_arra... | |
15,339 | [
0.014567079022526741,
-0.05855577811598778,
0.010528254322707653,
-0.0028296930249780416,
-0.018584344536066055,
0.010269539430737495,
0.0004179411625955254,
0.010183300822973251,
0.02431918866932392,
0.04225674644112587,
-0.008839421905577183,
-0.03696746751666069,
0.01726202480494976,
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 test_expon(self):
rs = RandomState(1234567890)
x1 = rs.standard_exponential(size=50)
x2 = rs.standard_normal(size=50)
A,crit,sig = stats.anderson(x1,'expon')
assert_array_less(A, crit[-2:])
olderr = np.seterr(all='ignore')
try:
A,crit,sig = stats.a... | |
15,340 | [
0.017948487773537636,
-0.056044578552246094,
0.004911801777780056,
0.003191683441400528,
-0.0062088859267532825,
0.015973232686519623,
0.0048986333422362804,
-0.005955394823104143,
0.017487594857811928,
0.04424571990966797,
-0.026126043871045113,
-0.031130025163292885,
-0.002409811597317457,... | 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 test_normal(self):
rs = RandomState(1234567890)
x1 = rs.standard_exponential(size=50)
x2 = rs.standard_normal(size=50)
A,crit,sig = stats.anderson(x1)
assert_array_less(crit[:-1], A)
A,crit,sig = stats.anderson(x2)
assert_array_less(A, crit[-2:]) | |
15,341 | [
-0.005201731808483601,
-0.021465906873345375,
0.01127275638282299,
-0.02126961573958397,
0.019348761066794395,
0.012317309156060219,
-0.011805548332631588,
-0.027607034891843796,
0.021465906873345375,
0.057120904326438904,
0.011812558397650719,
-0.041137147694826126,
0.02026011422276497,
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": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestAndersonKSamp(TestCase):
def test_example1a(self):
# Example data from Scholz & Stephens (1987), originally
# published in Lehmann (1995, Nonparametrics, Statistical
# Methods Based on Ranks, p. 309)
# Pass a mixture of lists and arrays
t1 = [38.7, 41.5, 43.8, 44.5,... | |
15,342 | [
-0.032050006091594696,
-0.029932992532849312,
0.028834287077188492,
-0.03046894632279873,
0.00826038047671318,
-0.006940595339983702,
-0.0013758926652371883,
0.026677075773477554,
-0.007851716130971909,
0.06640461832284927,
0.00028660940006375313,
-0.003828716464340687,
0.001318110153079033,... | 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 test_example1a(self):
# Example data from Scholz & Stephens (1987), originally
# published in Lehmann (1995, Nonparametrics, Statistical
# Methods Based on Ranks, p. 309)
# Pass a mixture of lists and arrays
t1 = [38.7, 41.5, 43.8, 44.5, 45.5, 46.0, 47.7, 58.0]
t2 = n... | |
15,343 | [
-0.014980346895754337,
-0.026498189195990562,
0.018285466358065605,
-0.04555628076195717,
0.007275555748492479,
0.020202722400426865,
0.007490173447877169,
0.010823909193277359,
0.0019279863918200135,
0.0437534898519516,
0.014200568199157715,
0.009886743500828743,
0.004997026175260544,
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 test_example2a(self):
# Example data taken from an earlier technical report of
# Scholz and Stephens
# Pass lists instead of arrays
t1 = [194, 15, 41, 29, 33, 181]
t2 = [413, 14, 58, 37, 100, 65, 9, 169, 447, 184, 36, 201, 118]
t3 = [34, 31, 18, 18, 67, 57, 62, 7, 22,... | |
15,344 | [
-0.019467415288090706,
-0.029921403154730797,
0.0267363078892231,
-0.02631339058279991,
0.008346009999513626,
0.0010696835815906525,
-0.00627107173204422,
0.016084076836705208,
-0.005977011751383543,
0.05767535790801048,
-0.0012481018202379346,
0.0036113178357481956,
0.005534270312637091,
... | 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 test_example1b(self):
# Example data from Scholz & Stephens (1987), originally
# published in Lehmann (1995, Nonparametrics, Statistical
# Methods Based on Ranks, p. 309)
# Pass arrays
t1 = np.array([38.7, 41.5, 43.8, 44.5, 45.5, 46.0, 47.7, 58.0])
t2 = np.array([39.2... | |
15,345 | [
-0.017902690917253494,
-0.007313018199056387,
0.025314802303910255,
-0.034695547074079514,
0.013516201637685299,
0.004683766979724169,
-0.009215591475367546,
0.0013278379337862134,
-0.004934800788760185,
0.04206801950931549,
0.006170152686536312,
-0.010160272940993309,
-0.0011296531883999705... | 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 test_result_attributes(self):
# Example data from Scholz & Stephens (1987), originally
# published in Lehmann (1995, Nonparametrics, Statistical
# Methods Based on Ranks, p. 309)
# Pass a mixture of lists and arrays
t1 = [38.7, 41.5, 43.8, 44.5, 45.5, 46.0, 47.7, 58.0]
... | |
15,346 | [
-0.013715825043618679,
-0.02392164058983326,
0.016351858153939247,
-0.04789966344833374,
0.0056632403284311295,
0.02396392822265625,
0.013638295233249664,
0.01033268216997385,
0.001594658475369215,
0.037524692714214325,
0.014646189287304878,
0.01526643242686987,
-0.005124052055180073,
0.00... | 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 test_example2b(self):
# Example data taken from an earlier technical report of
# Scholz and Stephens
t1 = [194, 15, 41, 29, 33, 181]
t2 = [413, 14, 58, 37, 100, 65, 9, 169, 447, 184, 36, 201, 118]
t3 = [34, 31, 18, 18, 67, 57, 62, 7, 22, 34]
t4 = [90, 10, 60, 186, 61,... | |
15,347 | [
-0.01843525841832161,
-0.03933711722493172,
0.008119221776723862,
-0.06120249256491661,
-0.02165982313454151,
0.0030527375638484955,
-0.026194769889116287,
-0.03982529789209366,
0.008870763704180717,
0.03422406315803528,
0.019745640456676483,
-0.0535457581281662,
0.006034817546606064,
0.01... | 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}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestAnsari(TestCase):
def test_small(self):
x = [1,2,3,3,4]
y = [3,2,6,1,6,1,4,1]
with warnings.catch_warnings(record=True): # Ties preclude use ...
W, pval = stats.ansari(x,y)
assert_almost_equal(W,23.5,11)
assert_almost_equal(pval,0.13499256881897437,11)... | |
15,348 | [
-0.029660983011126518,
-0.03009597398340702,
0.021477704867720604,
-0.03624022752046585,
-0.021029120311141014,
-0.015279076062142849,
-0.009352317079901695,
0.0028886154759675264,
0.013552703894674778,
0.03357590734958649,
0.022796273231506348,
-0.0210427138954401,
-0.035533368587493896,
... | 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 test_approx(self):
ramsay = np.array((111, 107, 100, 99, 102, 106, 109, 108, 104, 99,
101, 96, 97, 102, 107, 113, 116, 113, 110, 98))
parekh = np.array((107, 108, 106, 98, 105, 103, 110, 105, 104,
100, 96, 108, 103, 104, 114, 114, 113, 108, 106, ... | |
15,349 | [
0.003888100618496537,
-0.004418161232024431,
0.03617443889379501,
-0.012164750136435032,
-0.013929645530879498,
0.007178031839430332,
-0.03273940458893776,
-0.04865900054574013,
-0.0010823310585692525,
-0.027859291061758995,
0.005958002991974354,
-0.015256278216838837,
0.04759295657277107,
... | 8 | {"_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 TestBartlett(TestCase):
def test_data(self):
args = [g1, g2, g3, g4, g5, g6, g7, g8, g9, g10]
T, pval = stats.bartlett(*args)
assert_almost_equal(T,20.78587342806484,7)
assert_almost_equal(pval,0.0136358632781,7)
def test_bad_arg(self):
# Too few args raises Value... | |
15,350 | [
-0.023081785067915916,
-0.003356411587446928,
0.03896019235253334,
-0.022242682054638863,
0.0026060601230710745,
0.028684411197900772,
-0.03898601233959198,
-0.029304055497050285,
0.01092124730348587,
0.053237851709127426,
0.024450168013572693,
-0.020048106089234352,
-0.01102452166378498,
... | 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}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class TestLevene(TestCase):
def test_data(self):
args = [g1, g2, g3, g4, g5, g6, g7, g8, g9, g10]
W, pval = stats.levene(*args)
assert_almost_equal(W,1.7059176930008939,7)
assert_almost_equal(pval,0.0990829755522,7)
def test_trimmed1(self):
# Test that center='trimmed' ... | |
15,351 | [
-0.005602774675935507,
-0.029022542759776115,
0.048461318016052246,
-0.030152702704072,
0.022704940289258957,
0.0031927055679261684,
0.006803570780903101,
-0.00871354341506958,
0.01887369342148304,
0.04495781660079956,
0.009826752357184887,
-0.007283889688551426,
-0.04927503317594528,
0.03... | 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 test_equal_mean_median(self):
x = np.linspace(-1,1,21)
np.random.seed(1234)
x2 = np.random.permutation(x)
y = x**3
W1, pval1 = stats.levene(x, y, center='mean')
W2, pval2 = stats.levene(x2, y, center='median')
assert_almost_equal(W1, W2)
assert_almost_... | |
15,352 | [
0.012732020579278469,
-0.02221660129725933,
0.02608259953558445,
-0.048840440809726715,
-0.0005299638723954558,
0.025721773505210876,
0.0003169313131365925,
0.01798977702856064,
0.01090211421251297,
0.06546423584222794,
0.030232105404138565,
-0.007912409491837025,
-0.04164968430995941,
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 test_trimmed2(self):
x = [1.2, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 100.0]
y = [0.0, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5, 200.0]
np.random.seed(1234)
x2 = np.random.permutation(x)
# Use center='trimmed'
W0, pval0 = stats.levene(x, y, center='trimmed', proportiontocut=0.125)
... | |
15,353 | [
0.023136965930461884,
-0.009039080701768398,
0.02045348845422268,
-0.017564577981829643,
-0.019002612680196762,
-0.03697805851697922,
-0.008917104452848434,
-0.006631655152887106,
0.014842581935226917,
0.042678844183683395,
0.009982791729271412,
-0.006512889172881842,
-0.004680035635828972,
... | 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 test_basic(self):
np.random.seed(12345)
x = stats.norm.rvs(size=20)
osm, osr = stats.probplot(x, fit=False)
osm_expected = [-1.8241636, -1.38768012, -1.11829229, -0.91222575,
-0.73908135, -0.5857176, -0.44506467, -0.31273668,
-0.1856892... | |
15,354 | [
0.02365514263510704,
-0.003415002953261137,
0.028422050178050995,
-0.028601450845599174,
-0.025679796934127808,
-0.04021117836236954,
-0.006170071195811033,
-0.008406161330640316,
0.042030803859233856,
0.026294881477952003,
0.007848740555346012,
-0.03716138377785683,
0.0009114149725064635,
... | 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 test_sparams_keyword(self):
np.random.seed(123456)
x = stats.norm.rvs(size=100)
# Check that None, () and 0 (loc=0, for normal distribution) all work
# and give the same results
osm1, osr1 = stats.probplot(x, sparams=None, fit=False)
osm2, osr2 = stats.probplot(x, spa... | |
15,355 | [
0.0074728867039084435,
-0.027475548908114433,
0.041997238993644714,
-0.011341053061187267,
-0.0027099656872451305,
-0.0028850610833615065,
-0.026203295215964317,
-0.005554867442697287,
0.027912484481930733,
0.02162832021713257,
0.02865784615278244,
-0.009451949037611485,
0.01768304780125618,... | 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 TestPpccPlot(TestCase):
def setUp(self):
np.random.seed(7654321)
self.x = stats.loggamma.rvs(5, size=500) + 5
def test_basic(self):
N = 5
svals, ppcc = stats.ppcc_plot(self.x, -10, 10, N=N)
ppcc_expected = [0.21139644, 0.21384059, 0.98766719, 0.97980182, 0.93519298... | |
15,356 | [
0.013639402575790882,
-0.027766894549131393,
0.01674419641494751,
-0.02731947787106037,
-0.007890786975622177,
-0.03977933153510094,
-0.013219102285802364,
-0.011504008434712887,
0.001572734210640192,
0.021123448386788368,
0.031915657222270966,
0.00042199442395940423,
0.004341966938227415,
... | 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 test_plot_kwarg(self):
np.random.seed(7654321)
fig = plt.figure()
fig.add_subplot(111)
x = stats.t.rvs(3, size=100)
res1, fitres1 = stats.probplot(x, plot=plt)
plt.close()
res2, fitres2 = stats.probplot(x, plot=None)
res3 = stats.probplot(x, fit=False,... | |
15,357 | [
0.028181197121739388,
-0.024965398013591766,
0.030586907640099525,
-0.027812974527478218,
0.014888410456478596,
0.00933440774679184,
-0.050004441291093826,
-0.019110681489109993,
0.03507920727133751,
0.03451460227370262,
0.013943309895694256,
-0.02356615662574768,
0.009886739775538445,
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 test_dist(self):
# Test that we can specify distributions both by name and as objects.
svals1, ppcc1 = stats.ppcc_plot(self.x, -10, 10, dist='tukeylambda')
svals2, ppcc2 = stats.ppcc_plot(self.x, -10, 10, dist=stats.tukeylambda)
assert_allclose(svals1, svals2, rtol=1e-20)
ass... | |
15,358 | [
0.006947757210582495,
-0.014796033501625061,
0.014871076680719852,
-0.01933615282177925,
0.013620356097817421,
0.028841635212302208,
-0.05203000828623772,
-0.015759089961647987,
0.029141807928681374,
0.006062871776521206,
0.0386723056435585,
-0.02779102884232998,
0.007566864136606455,
0.04... | 7 | {"_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 test_plot_kwarg(self):
# Check with the matplotlib.pyplot module
fig = plt.figure()
fig.add_subplot(111)
stats.ppcc_plot(self.x, -20, 20, plot=plt)
plt.close()
# Check that a Matplotlib Axes object is accepted
fig.add_subplot(111)
ax = fig.add_subplot... | |
15,359 | [
-0.007305960636585951,
0.00949558150023222,
0.027988117188215256,
0.051683712750673294,
-0.002342731226235628,
-0.035272397100925446,
-0.001491814386099577,
0.04903882369399071,
0.0009356020018458366,
0.023803990334272385,
-0.008449549786746502,
-0.0234354417771101,
0.0031380944419652224,
... | 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 MarginBox1Client:
def main(self):
UI.OpenDialog(
VBox(
MarginBox(10, 2, Label("Hello, World!")),
PushButton(Opt("default"), "&OK")
)
)
UI.UserInput()
UI.CloseDialog() | |
15,360 | [
0.014167037792503834,
-0.01749221421778202,
-0.028435995802283287,
0.0036532357335090637,
-0.03495894744992256,
-0.0020049798768013716,
-0.016715066507458687,
0.025123558938503265,
0.04415732994675636,
0.013682912103831768,
-0.010650758631527424,
-0.028283115476369858,
0.011408796533942223,
... | 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 testBijector(self):
bijector = identity_bijector.Identity(validate_args=True)
self.assertEqual("identity", bijector.name)
x = [[[0.], [1.]]]
self.assertAllEqual(x, self.evaluate(bijector.forward(x)))
self.assertAllEqual(x, self.evaluate(bijector.inverse(x)))
self.assertAllEqual(
0.,
... | |
15,361 | [
0.005934475921094418,
-0.006172741763293743,
-0.002953385468572378,
0.04587998241186142,
0.007280953694134951,
-0.038743097335100174,
-0.0030642065685242414,
0.04871700704097748,
0.006798881571739912,
0.01928289234638214,
-0.02060166373848915,
-0.02597649209201336,
-0.008112112991511822,
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 main(self):
UI.OpenDialog(
VBox(
MarginBox(10, 2, Label("Hello, World!")),
PushButton(Opt("default"), "&OK")
)
)
UI.UserInput()
UI.CloseDialog() | |
15,362 | [
0.026380181312561035,
0.010718235746026039,
-0.023990720510482788,
-0.0198297668248415,
-0.017536435276269913,
-0.013169491663575172,
-0.004603828769177198,
0.018827291205525398,
0.028289001435041428,
0.022150563076138496,
0.025515031069517136,
-0.0467180497944355,
0.0216287262737751,
0.02... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Enable = params.get("Enable")
self.Region = params.get("Region")
self.InstanceId = params.get("InstanceId")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set... | |
15,363 | [
0.0004515332111623138,
0.041403595358133316,
-0.049254681915044785,
-0.039408858865499496,
-0.0014944550348445773,
-0.00755059439688921,
-0.02715912275016308,
0.00493569765239954,
0.003308579558506608,
-0.011156466789543629,
0.01993459090590477,
-0.06265522539615631,
0.058358870446681976,
... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.OperationId = params.get("OperationId")
self.Type = params.get("Type")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set.remove(name)
if len(memeber_set) > 0... | |
15,364 | [
0.010704061947762966,
0.027928363531827927,
-0.024138474836945534,
-0.03260120376944542,
-0.0202534981071949,
-0.008258971385657787,
-0.008849868550896645,
-0.00942038930952549,
0.0017361838836222887,
0.024831250309944153,
0.015539906919002533,
-0.054905861616134644,
0.04300642013549805,
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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Enable = params.get("Enable")
self.Template = params.get("Template")
if params.get("SelectedRange") is not None:
self.SelectedRange = SelectedRange()
self.SelectedRange._deserialize(params.get("SelectedRange"))
if params.get("C... | |
15,365 | [
0.01938849315047264,
0.037857480347156525,
-0.03875071555376053,
-0.01475154422223568,
-0.019138913601636887,
-0.02011096477508545,
-0.026797104626893997,
-0.01999274268746376,
0.017562612891197205,
0.04258637875318527,
0.02323729358613491,
-0.04707883670926094,
0.014423147775232792,
0.034... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Namespace = params.get("Namespace")
self.State = params.get("State")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set.remove(name)
if len(memeber_set) > 0:
... | |
15,366 | [
0.023753603920340538,
0.033683061599731445,
-0.04280168190598488,
-0.040781229734420776,
-0.024644197896122932,
-0.0041771517135202885,
-0.001827711588703096,
0.019367096945643425,
0.03652764856815338,
0.01968611590564251,
0.029323140159249306,
-0.0428282655775547,
0.0229826420545578,
0.03... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Enable = params.get("Enable")
self.LogSet = params.get("LogSet")
self.Topic = params.get("Topic")
self.NeedDelete = params.get("NeedDelete")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in... | |
15,367 | [
0.02344415709376335,
0.002071601804345846,
-0.030774440616369247,
-0.0077446033246815205,
-0.0027042371220886707,
-0.014826294034719467,
0.014953777194023132,
0.0032444470562040806,
0.01949217915534973,
0.05476677417755127,
0.017350461333990097,
-0.05091678351163864,
0.03199828043580055,
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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.ClusterId = params.get("ClusterId")
self.Region = params.get("Region")
self.Role = params.get("Role")
self.VpcId = params.get("VpcId")
self.SubnetId = params.get("SubnetId")
self.DisplayName = params.get("DisplayName")
self.Sta... | |
15,368 | [
-0.0038079351652413607,
0.004898666404187679,
-0.02935991808772087,
-0.04001058638095856,
-0.018093304708600044,
-0.047786857932806015,
-0.029385581612586975,
-0.0142693305388093,
0.006406441796571016,
0.04871077090501785,
0.007930257357656956,
-0.05902780592441559,
0.03667423129081726,
0.... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.AutoInjectionNamespaceList = params.get("AutoInjectionNamespaceList")
if params.get("IngressGatewayList") is not None:
self.IngressGatewayList = []
for item in params.get("IngressGatewayList"):
obj = IngressGateway()
... | |
15,369 | [
-0.004979215562343597,
0.010543829761445522,
-0.0671612024307251,
-0.007457181345671415,
-0.03656081110239029,
-0.045102309435606,
-0.031930841505527496,
-0.003964745905250311,
-0.005820726044476032,
0.053643811494112015,
0.037598565220832825,
-0.04166974499821663,
0.020315997302532196,
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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.LinkState = params.get("LinkState")
self.LinkErrorDetail = params.get("LinkErrorDetail")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set.remove(name)
if le... | |
15,370 | [
0.026111382991075516,
0.03432173281908035,
-0.031607795506715775,
-0.021917114034295082,
-0.03550051525235176,
-0.019861098378896713,
0.0036014518700540066,
-0.033499326556921005,
0.013364093378186226,
0.03736463561654091,
-0.003909854218363762,
-0.06831450760364532,
0.050029683858156204,
... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.DisplayName = params.get("DisplayName")
self.MeshVersion = params.get("MeshVersion")
self.Type = params.get("Type")
if params.get("Config") is not None:
self.Config = MeshConfig()
self.Config._deserialize(params.get("Config"))
... | |
15,371 | [
-0.00010163759725401178,
0.0010611996985971928,
-0.05048428848385811,
-0.013780216686427593,
0.0075117722153663635,
-0.030591044574975967,
-0.0013007993111386895,
0.02326059155166149,
0.04481160640716553,
0.0441899411380291,
0.027301406487822533,
-0.06703609228134155,
0.03950155898928642,
... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Url = params.get("Url")
self.AuthType = params.get("AuthType")
self.IsPublicAddr = params.get("IsPublicAddr")
self.VpcId = params.get("VpcId")
self.Username = params.get("Username")
self.Password = params.get("Password")
memebe... | |
15,372 | [
0.028898540884256363,
0.05349989980459213,
-0.011850818991661072,
-0.01698729209601879,
-0.0323362834751606,
-0.0020596252288669348,
-0.014382126741111279,
-0.022694485262036324,
0.0026303445920348167,
0.018007872626185417,
0.009588084183633327,
-0.07820868492126465,
0.03322257846593857,
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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MeshId = params.get("MeshId")
self.NeedDeleteCLS = params.get("NeedDeleteCLS")
self.NeedDeleteTMP = params.get("NeedDeleteTMP")
self.NeedDeleteAPM = params.get("NeedDeleteAPM")
self.NeedDeleteGrafana = params.get("NeedDeleteGrafana")
m... | |
15,373 | [
0.019589325413107872,
0.0334334596991539,
-0.04358245059847832,
-0.03943173959851265,
-0.0035337978042662144,
-0.02133565954864025,
-0.0038469990249723196,
0.004982749931514263,
-0.002454992849379778,
0.0243474543094635,
0.008681057021021843,
-0.048998620361089706,
0.008953130804002285,
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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.NodeSelectType = params.get("NodeSelectType")
self.Nodes = params.get("Nodes")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set.remove(name)
if len(memeber_... | |
15,374 | [
-0.009757133200764656,
0.043220583349466324,
-0.0669666975736618,
-0.036163080483675,
-0.0212255772203207,
-0.017577432096004486,
-0.046271760016679764,
0.012012350372970104,
0.007952959276735783,
0.05059647187590599,
0.033881328999996185,
-0.07317517697811127,
0.020151033997535706,
0.0176... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
if params.get("Filters") is not None:
self.Filters = []
for item in params.get("Filters"):
obj = Filter()
obj._deserialize(item)
self.Filters.append(obj)
self.Limit = params.get("Limit")
self.... | |
15,375 | [
-0.006515679880976677,
0.04864240437746048,
-0.002115344163030386,
-0.002080813981592655,
-0.024237127974629402,
-0.03917815536260605,
-0.06418395042419434,
0.006509674713015556,
0.045255452394485474,
0.024885693565011024,
-0.02193111926317215,
-0.06788317859172821,
0.04624031111598015,
-0... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
if params.get("MeshList") is not None:
self.MeshList = []
for item in params.get("MeshList"):
obj = Mesh()
obj._deserialize(item)
self.MeshList.append(obj)
self.Total = params.get("Total")
sel... | |
15,376 | [
0.033593084663152695,
0.03380012884736061,
-0.023512570187449455,
-0.008165344595909119,
-0.0402185283601284,
-0.022399703040719032,
-0.013652042485773563,
-0.012668577954173088,
0.004939969163388014,
0.021649163216352463,
0.013017966412007809,
-0.05937021225690842,
0.03871745243668556,
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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MeshId = params.get("MeshId")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set.remove(name)
if len(memeber_set) > 0:
warnings.warn("%s fileds are useles... | |
15,377 | [
0.029558975249528885,
0.02610471472144127,
-0.029822658747434616,
-0.03464807569980621,
-0.004578213207423687,
-0.020646456629037857,
-0.03657297044992447,
-0.026618897914886475,
0.0318002887070179,
0.007277678232640028,
0.018444694578647614,
-0.0473049059510231,
0.025841031223535538,
0.01... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Name = params.get("Name")
self.Namespace = params.get("Namespace")
if params.get("Workload") is not None:
self.Workload = WorkloadConfig()
self.Workload._deserialize(params.get("Workload"))
if params.get("Status") is not None:
... | |
15,378 | [
0.019816754385828972,
0.005866086110472679,
-0.02187192626297474,
-0.042056161910295486,
-0.021463613957166672,
-0.0056006829254329205,
-0.0009408195037394762,
-0.007329205051064491,
0.010092117823660374,
0.054713841527700424,
0.023614058271050453,
-0.05743592604994774,
-0.001571151544339954... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.CurrentVersion = params.get("CurrentVersion")
self.DesiredVersion = params.get("DesiredVersion")
self.State = params.get("State")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
... | |
15,379 | [
-0.019448358565568924,
0.0022346468176692724,
-0.027436314150691032,
-0.014615976251661777,
-0.025403015315532684,
-0.015526998788118362,
0.01196872815489769,
-0.006697338540107012,
-0.011024697683751583,
0.03884390369057655,
-0.0022280451375991106,
-0.04755803570151329,
0.029707269743084908... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
if params.get("L4Clusters") is not None:
self.L4Clusters = []
for item in params.get("L4Clusters"):
obj = ExtensiveCluster()
obj._deserialize(item)
self.L4Clusters.append(obj)
if params.get("L7Cluster... | |
15,380 | [
0.041074298322200775,
0.027712779119610786,
-0.03956363722681999,
-0.00788537971675396,
-0.009135579690337181,
-0.015158682130277157,
0.029614126309752464,
0.011902950704097748,
-0.009285343810915947,
0.023467306047677994,
0.033390771597623825,
-0.039329227060079575,
0.00458732433617115,
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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.ClusterId = params.get("ClusterId")
self.Zone = params.get("Zone")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set.remove(name)
if len(memeber_set) > 0:
... | |
15,381 | [
0.01399336289614439,
0.010454343631863594,
-0.03883429244160652,
-0.01101028174161911,
-0.016244232654571533,
-0.021640898659825325,
-0.018847649917006493,
0.0038780055474489927,
0.0327596552670002,
0.03430543467402458,
0.028285034000873566,
-0.06259046494960785,
0.03202744573354721,
0.021... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Enabled = params.get("Enabled")
self.InternalURL = params.get("InternalURL")
self.PublicURL = params.get("PublicURL")
self.PublicFailedReason = params.get("PublicFailedReason")
self.PublicFailedMessage = params.get("PublicFailedMessage")
... | |
15,382 | [
0.02453988417983055,
0.02027207799255848,
-0.04728009179234505,
-0.033782511949539185,
-0.018382417038083076,
-0.008921257220208645,
-0.03542793169617653,
-0.002461701398715377,
0.02554256282746792,
0.02266307920217514,
0.02879483625292778,
-0.05211351066827774,
0.01125441025942564,
0.0143... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Name = params.get("Name")
self.Values = params.get("Values")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set.remove(name)
if len(memeber_set) > 0:
... | |
15,383 | [
0.021851368248462677,
0.023946166038513184,
-0.03390955179929733,
-0.033883366733789444,
0.002368104411289096,
-0.029615215957164764,
-0.02882966585457325,
-0.02458769828081131,
0.026774145662784576,
0.026407554745674133,
0.02132766880095005,
-0.05545979365706444,
0.03974880278110504,
0.00... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Name = params.get("Name")
self.Namespace = params.get("Namespace")
self.ClusterId = params.get("ClusterId")
if params.get("Service") is not None:
self.Service = Service()
self.Service._deserialize(params.get("Service"))
... | |
15,384 | [
0.04615739732980728,
0.03198699280619621,
-0.013790592551231384,
-0.027898846194148064,
-0.034887369722127914,
-0.0022788660135120153,
-0.022056661546230316,
-0.026200054213404655,
0.017277948558330536,
-0.004951354581862688,
0.007043767720460892,
-0.0868455171585083,
0.01580013893544674,
... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MinReplicas = params.get("MinReplicas")
self.MaxReplicas = params.get("MaxReplicas")
if params.get("Metrics") is not None:
self.Metrics = []
for item in params.get("Metrics"):
obj = MetricSpec()
obj._des... | |
15,385 | [
0.028215520083904266,
0.01890868879854679,
-0.031916793435811996,
-0.03277506306767464,
-0.012149838730692863,
-0.02431308850646019,
-0.029234711080789566,
-0.03159494325518608,
0.03296280652284622,
0.06270711869001389,
0.003107864409685135,
-0.0505840964615345,
0.02333412691950798,
0.0246... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
if params.get("LoadBalancer") is not None:
self.LoadBalancer = LoadBalancerStatus()
self.LoadBalancer._deserialize(params.get("LoadBalancer"))
self.CurrentVersion = params.get("CurrentVersion")
self.DesiredVersion = params.get("DesiredVersi... | |
15,386 | [
0.002969700377434492,
-0.0014570880448445678,
0.005811526905745268,
-0.013689224608242512,
-0.030635865405201912,
-0.019531037658452988,
0.0032557337544858456,
0.017969630658626556,
0.02853604406118393,
0.047353681176900864,
0.0124979792162776,
-0.07413987070322037,
0.02168470062315464,
-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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.ExcludeIPRanges = params.get("ExcludeIPRanges")
self.HoldApplicationUntilProxyStarts = params.get("HoldApplicationUntilProxyStarts")
self.HoldProxyUntilApplicationEnds = params.get("HoldProxyUntilApplicationEnds")
memeber_set = set(params.keys())
... | |
15,387 | [
0.03359532356262207,
0.042232684791088104,
-0.027167517691850662,
-0.054184384644031525,
-0.003452434204518795,
-0.025070948526263237,
-0.014562995173037052,
-0.026891322806477547,
0.012052133679389954,
0.014839190058410168,
0.00939062051475048,
-0.03821530565619469,
0.032616086304187775,
... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
if params.get("Workload") is not None:
self.Workload = WorkloadConfig()
self.Workload._deserialize(params.get("Workload"))
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
... | |
15,388 | [
0.024871855974197388,
0.013303710147738457,
-0.03301670402288437,
-0.037936411798000336,
0.005052949767559767,
-0.02025279775261879,
-0.01623503491282463,
-0.015087103471159935,
0.03777242451906204,
0.045315973460674286,
0.01961050182580948,
-0.05663130432367325,
0.04086090624332428,
-0.00... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.OutboundTrafficPolicy = params.get("OutboundTrafficPolicy")
if params.get("Tracing") is not None:
self.Tracing = TracingConfig()
self.Tracing._deserialize(params.get("Tracing"))
self.DisablePolicyChecks = params.get("DisablePolicyCheck... | |
15,389 | [
0.020007919520139694,
0.03370564803481102,
-0.025343365967273712,
0.0066051785834133625,
-0.03006318211555481,
-0.01818668656051159,
-0.0021755406633019447,
-0.014069671742618084,
0.002624436281621456,
0.0297553688287735,
0.005367509089410305,
-0.05545784905552864,
0.03986193239688873,
0.0... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MeshId = params.get("MeshId")
if params.get("ClusterList") is not None:
self.ClusterList = []
for item in params.get("ClusterList"):
obj = Cluster()
obj._deserialize(item)
self.ClusterList.append... | |
15,390 | [
0.03529098629951477,
0.034203071147203445,
0.012245707213878632,
-0.021055186167359352,
-0.019542716443538666,
-0.011535907164216042,
-0.013134615495800972,
-0.021546076983213425,
0.017817968502640724,
0.003162589855492115,
-0.0006691688904538751,
-0.0592251755297184,
0.06012735143303871,
... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MeshID = params.get("MeshID")
if params.get("Prometheus") is not None:
self.Prometheus = PrometheusConfig()
self.Prometheus._deserialize(params.get("Prometheus"))
memeber_set = set(params.keys())
for name, value in vars(self).i... | |
15,391 | [
0.03839574754238129,
0.013547154143452644,
-0.03222168982028961,
-0.02824697457253933,
-0.017343007028102875,
-0.035056985914707184,
-0.03214219585061073,
-0.016892539337277412,
0.04247645288705826,
0.03945567086338997,
0.014640199951827526,
-0.04176100715994835,
0.01349415723234415,
0.017... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.LoadBalancerId = params.get("LoadBalancerId")
self.LoadBalancerName = params.get("LoadBalancerName")
self.LoadBalancerVip = params.get("LoadBalancerVip")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if na... | |
15,392 | [
0.008431226015090942,
0.005959171336144209,
-0.03966335952281952,
-0.028366483747959137,
-0.023008063435554504,
-0.03391825035214424,
-0.02807646617293358,
-0.010627073235809803,
0.03971860185265541,
0.04480081424117088,
0.0029347019735723734,
-0.04515988379716873,
0.031183797866106033,
0.... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.LoadBalancerType = params.get("LoadBalancerType")
self.SubnetId = params.get("SubnetId")
self.InternetChargeType = params.get("InternetChargeType")
self.InternetMaxBandwidthOut = params.get("InternetMaxBandwidthOut")
self.ZoneID = params.get("... | |
15,393 | [
0.02586524933576584,
0.025417707860469818,
-0.020205169916152954,
-0.0015014021191745996,
-0.04093685746192932,
-0.022482365369796753,
-0.011300415731966496,
-0.03388150408864021,
0.02819509617984295,
0.046649590134620667,
-0.0027099279686808586,
-0.06328759342432022,
0.05617958679795265,
... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MeshId = params.get("MeshId")
self.DisplayName = params.get("DisplayName")
self.Type = params.get("Type")
self.Region = params.get("Region")
self.Version = params.get("Version")
self.State = params.get("State")
self.CreatedTime... | |
15,394 | [
0.012314814142882824,
0.018481969833374023,
-0.019599726423621178,
-0.05833128094673157,
-0.0028951186686754227,
-0.028333820402622223,
0.00026948811137117445,
-0.011729941703379154,
0.025513436645269394,
0.004997410345822573,
0.024785595014691353,
-0.05162474140524864,
0.04330655559897423,
... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
if params.get("Istio") is not None:
self.Istio = IstioConfig()
self.Istio._deserialize(params.get("Istio"))
if params.get("AccessLog") is not None:
self.AccessLog = AccessLogConfig()
self.AccessLog._deserialize(params.get("A... | |
15,395 | [
-0.006362265907227993,
0.04469747468829155,
-0.06026506796479225,
-0.055515632033348083,
-0.003977653104811907,
-0.00297499424777925,
-0.021227341145277023,
-0.036095716059207916,
0.03815380483865738,
-0.018430450931191444,
0.0013712347717955709,
-0.07256083190441132,
0.048892807215452194,
... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.Type = params.get("Type")
if params.get("Pods") is not None:
self.Pods = PodsMetricSource()
self.Pods._deserialize(params.get("Pods"))
if params.get("Resource") is not None:
self.Resource = ResourceMetricSource()
... | |
15,396 | [
0.021717585623264313,
0.02169102057814598,
-0.02109328843653202,
-0.04186778888106346,
-0.001916062319651246,
0.0013382548931986094,
-0.029992850497364998,
-0.008268622681498528,
0.030816391110420227,
0.037670381367206573,
0.017068561166524887,
-0.06009196490049362,
0.05732911452651024,
-0... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.ServiceCount = params.get("ServiceCount")
self.CanaryVersion = params.get("CanaryVersion")
if params.get("Prometheus") is not None:
self.Prometheus = []
for item in params.get("Prometheus"):
obj = PrometheusStatus()
... | |
15,397 | [
0.040955424308776855,
0.031909894198179245,
-0.014425382018089294,
-0.006579767446964979,
-0.03196263685822487,
-0.01998983509838581,
-0.0009798776591196656,
-0.02529056929051876,
0.005600713659077883,
0.03167254850268364,
0.0006972048431634903,
-0.06450545787811279,
0.0545896552503109,
0.... | 10 | {"_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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MeshId = params.get("MeshId")
self.DisplayName = params.get("DisplayName")
if params.get("Config") is not None:
self.Config = MeshConfig()
self.Config._deserialize(params.get("Config"))
if params.get("ClusterList") is not None:... | |
15,398 | [
0.04231182485818863,
0.04051189497113228,
-0.005953878164291382,
-0.0021021589636802673,
-0.03419870138168335,
-0.027804912999272346,
-0.010510794818401337,
-0.0220961757004261,
0.018267963081598282,
0.019329115748405457,
-0.0037274702917784452,
-0.05265471711754799,
0.0490817166864872,
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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MeshId = params.get("MeshId")
self.Enable = params.get("Enable")
if params.get("APM") is not None:
self.APM = APM()
self.APM._deserialize(params.get("APM"))
self.Sampling = params.get("Sampling")
if params.get("Zipkin")... | |
15,399 | [
0.011618905700743198,
0.018937528133392334,
-0.041049398481845856,
-0.04308423399925232,
-0.021786296740174294,
-0.0005494053475558758,
-0.025177687406539917,
-0.011618905700743198,
0.017621668055653572,
0.005405877251178026,
0.005090477876365185,
-0.057952091097831726,
0.007773068267852068,... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.MetricName = params.get("MetricName")
self.TargetAverageValue = params.get("TargetAverageValue")
memeber_set = set(params.keys())
for name, value in vars(self).items():
if name in memeber_set:
memeber_set.remove(name)
... | |
15,400 | [
0.02127622626721859,
-0.0003629588754847646,
-0.016185035929083824,
-0.01884130947291851,
-0.0026302309706807137,
-0.01860693097114563,
-0.0012508246582001448,
0.029687756672501564,
0.052213992923498154,
0.03182319179177284,
0.009785240516066551,
-0.04687540605664253,
0.040885768830776215,
... | 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": "params", "annotation": null, "type_comment": null}}], "kwarg": nu... | def _deserialize(self, params):
self.VpcId = params.get("VpcId")
self.SubnetId = params.get("SubnetId")
self.Region = params.get("Region")
self.InstanceId = params.get("InstanceId")
if params.get("CustomProm") is not None:
self.CustomProm = CustomPromConfig()
... |