query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns the list of items currently present in this item. | def Hju2(YKHO):
return YKHO.getCutPlanes() + YKHO.getIsosurfaces() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nDBw(YKHO):\n return YKHO.item_list",
"def nDBw(YKHO) -> list:\n return YKHO._items",
"def DumB(YKHO) -> x1iM[kLxY]:\n return YKHO._items",
"def tzNJ(YKHO):\n return YKHO.api.state['items']",
"def DumB(YKHO):\n return [WKvO.item for WKvO in YKHO]",
"def nDBw(YKHO):\n return YKHO.ite... | [
"0.8302771",
"0.82145596",
"0.80660933",
"0.7957701",
"0.79011357",
"0.7892576",
"0.7880532",
"0.7875717",
"0.7802759",
"0.7696309",
"0.7644806",
"0.762694",
"0.75896615",
"0.7539122",
"0.735725",
"0.7353106",
"0.7332338",
"0.732954",
"0.7262226",
"0.7146134",
"0.7119999",
... | 0.0 | -1 |
Return 3D dataset. This method does not cache data converted to a specific mode, it computes it for each request. | def iIby(YKHO, jth9=True, Tuqy=None):
if Tuqy is None:
return super(y27X, YKHO).getData(copy=jth9)
else:
return YKHO._convertComplexData(YKHO._data, Tuqy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AZ0W(YKHO, *qIxc):\n return nvSv.Adaptor3d_Surface_D3(YKHO, *qIxc)",
"def ZB7u(YKHO, D2Z6=14):\n YsCx, tXQa = nUTO(YKHO.dataset_name, D2Z6)\n return YKHO._data_train['3d'][:, YsCx, :][:, tXQa, :]",
"def dD7q(YKHO, iIih, type='train'):\n __n6 = ht2j.load(Hy7s.path.join(YKHO.path, type, 'data{}.p... | [
"0.60187584",
"0.59878784",
"0.58777374",
"0.58265644",
"0.58206046",
"0.5816656",
"0.5816164",
"0.57970816",
"0.57919204",
"0.5772738",
"0.57650393",
"0.57250017",
"0.5724938",
"0.5707195",
"0.5686548",
"0.5647479",
"0.5564669",
"0.55568475",
"0.5537837",
"0.5516145",
"0.550... | 0.6331602 | 0 |
Attach the view to the GUI. | def qD78(YKHO, eFlV):
super(x6Ig, YKHO).attach(eFlV)
YKHO.actions.add(YKHO.toggle_show_labels, checkable=True, checked=YKHO.do_show_labels)
YKHO.actions.add(YKHO.toggle_highlighted_spikes, checkable=True, checked=YKHO.show_all_spikes)
YKHO.actions.add(YKHO.toggle_auto_scale, checkable=True, checked=YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KL49(YKHO):\n YKHO.setup()",
"def KL49(YKHO):\n YKHO.setup()",
"def KL49(YKHO):\n YKHO.setup()",
"def FuDM(YKHO, KnxT, tTee):\n if len(tTee.relative_to) > 0:\n IBYl = KnxT.get_view_by_id(tTee.relative_to)\n else:\n IBYl = None\n KnxT.add_view(tTee, tTee.position, IBYl, (tT... | [
"0.66884124",
"0.66884124",
"0.66884124",
"0.66009265",
"0.6581134",
"0.6503647",
"0.6470148",
"0.6323154",
"0.62344205",
"0.6183854",
"0.6170608",
"0.6120538",
"0.60880315",
"0.60534596",
"0.604596",
"0.6022283",
"0.5969684",
"0.5946267",
"0.5931756",
"0.58913046",
"0.589079... | 0.6533588 | 5 |
Interval as `(tmin, tmax)`. | def VOlW(YKHO):
return YKHO._interval | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j2me(p4_k, m3B5, RfSx):\n Uni8(m3B5, (None, 'numeric'), item_name='tmin')\n Uni8(RfSx, (None, 'numeric'), item_name='tmax')\n for mWFP, d7pR in (('tmin', m3B5), ('tmax', RfSx)):\n if d7pR is None:\n continue\n if d7pR < 0:\n raise ValueError(f\"Argument '{mWFP}' mus... | [
"0.68151754",
"0.66623974",
"0.6629554",
"0.6584883",
"0.65043294",
"0.6474935",
"0.6412259",
"0.6410299",
"0.63806736",
"0.63406235",
"0.62529576",
"0.6237908",
"0.62276185",
"0.6169634",
"0.6162228",
"0.6150554",
"0.6136628",
"0.6109361",
"0.61021554",
"0.608784",
"0.604031... | 0.0 | -1 |
Attach the view to the GUI. | def qD78(YKHO, eFlV):
dM6I.attach(YKHO, eFlV)
YKHO.actions.add(YKHO.switch_origin)
YKHO.actions.separator()
YKHO.actions.add(YKHO.go_to, prompt=True, prompt_default=lambda: str(YKHO.time))
YKHO.actions.separator()
YKHO.actions.add(YKHO.go_to_start)
YKHO.actions.add(YKHO.go_to_end)
YKHO.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KL49(YKHO):\n YKHO.setup()",
"def KL49(YKHO):\n YKHO.setup()",
"def KL49(YKHO):\n YKHO.setup()",
"def FuDM(YKHO, KnxT, tTee):\n if len(tTee.relative_to) > 0:\n IBYl = KnxT.get_view_by_id(tTee.relative_to)\n else:\n IBYl = None\n KnxT.add_view(tTee, tTee.position, IBYl, (tT... | [
"0.66884124",
"0.66884124",
"0.66884124",
"0.66009265",
"0.6533588",
"0.6503647",
"0.6470148",
"0.6323154",
"0.62344205",
"0.6183854",
"0.6170608",
"0.6120538",
"0.60880315",
"0.60534596",
"0.604596",
"0.6022283",
"0.5969684",
"0.5946267",
"0.5931756",
"0.58913046",
"0.589079... | 0.6581134 | 4 |
Returns a logger with the given name | def fZx2(mWFP: str):
bo34 = G9jH.getLogger(mWFP)
for DCgT in yint:
bo34.addHandler(DCgT)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZx2(mWFP):\n return G9jH.getLogger(mWFP)",
"def fZx2(mWFP):\n return G9jH.getLogger(mWFP)",
"def fZx2(mWFP: str) -> G9jH.Logger:\n return G9jH.getLogger(mWFP)",
"def fZx2(mWFP: str) -> G9jH.Logger:\n try:\n XP5J = GkAb(mWFP)\n if XP5J.exists():\n mWFP = str(XP5J.abso... | [
"0.86943036",
"0.86648834",
"0.86127335",
"0.83303255",
"0.8310802",
"0.8274421",
"0.82201195",
"0.82107776",
"0.81484",
"0.81371915",
"0.81099725",
"0.80877364",
"0.80632704",
"0.7964971",
"0.79618955",
"0.7960622",
"0.79571754",
"0.7941737",
"0.79340976",
"0.7931048",
"0.79... | 0.79965186 | 13 |
Return a logger with a default ColoredFormatter. | def WWrj():
uaPq = S4sv('%(log_color)s%(levelname)-5s%(reset)s %(yellow)s[%(asctime)s]%(reset)s%(green)s %(name)s %(purple)s %(filename)s %(purple)s %(funcName)s %(purple)s:%(lineno)d%(reset)s %(bold_blue)s%(message)s%(reset)s', datefmt='%y-%m-%d %H;%M:%S', log_colors={'DEBUG': 'blue', 'INFO': 'yellow', 'WARNING': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmAE():\n RKD7 = G9jH.getLogger()\n RKD7.setLevel(G9jH.DEBUG)\n PFAa = '%(asctime)s - %(levelname)-8s - %(message)s'\n x8us = '%Y-%m-%d %H:%M:%S'\n if Hy7s.isatty(2):\n pFXF = '%(log_color)s' + PFAa\n Jw9H = {'DEBUG': 'reset', 'INFO': 'reset', 'WARNING': 'bold_yellow', 'ERROR': 'bo... | [
"0.6996591",
"0.69907147",
"0.6911573",
"0.682854",
"0.65775317",
"0.65120155",
"0.6396354",
"0.6385912",
"0.6341703",
"0.6268824",
"0.61986893",
"0.6196991",
"0.618999",
"0.61819875",
"0.6148457",
"0.6129842",
"0.6128831",
"0.6113148",
"0.61027133",
"0.60929334",
"0.60799354... | 0.67095196 | 4 |
Returns ndarrays or Tensors of all data in the current split. | def yLtf(YKHO, lpha=None, XTiz=True):
if lpha is not None:
mQ8J = YKHO.split_
YKHO.set_split(lpha)
JyoU = pVAc(YKHO, batch_size=len(YKHO), shuffle=False, drop_last=False)
for YRbF, FTUV in enumerate(JyoU):
assert YRbF == 0
WKvO = FTUV['x']
LVAh = FTUV['y']
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def koNC(YKHO) -> h8nf[oyIN.ndarray]:\n if YKHO._data_store is None:\n return None\n return YKHO._data_store[:YKHO._count, :]",
"def ZDfD(YKHO):\n return (YKHO.X_data, YKHO.Y_data)",
"def eGoy(YKHO):\n L4cE = YKHO.client.map(F3Sm, YKHO.vecDask, pure=False)\n Sk_F = YKHO.client.gather(L4cE... | [
"0.62569696",
"0.618584",
"0.6073904",
"0.6042331",
"0.5926986",
"0.5832924",
"0.5821185",
"0.5761303",
"0.5756968",
"0.57559574",
"0.57297504",
"0.57242715",
"0.57101953",
"0.570451",
"0.5688236",
"0.56806684",
"0.56590205",
"0.564544",
"0.56339717",
"0.55949557",
"0.5587822... | 0.5634289 | 18 |
Partitions the full data into a list of ndarrays/Tensors. | def yUSa(YKHO, lpha=None, ywwl=5, XTiz=True, IuXB=None):
nPrm = YKHO.get_data(lpha, XTiz)
EcVT = nPrm['x']
LVAh = nPrm['y']
zNig = len(LVAh)
if IuXB is None:
IuXB = oyIN.random.permutation(zNig)
elif len(IuXB) != zNig:
raise Exception('Permutation provided is wrong length: ' + st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bxf_(nPrm: nd.NDArray, Ep8u):\n wlx8 = len(nPrm) // Ep8u\n nPrm = nPrm[0:wlx8 * Ep8u]\n nPrm = nPrm.reshape(Ep8u, -1).transpose()\n return nPrm",
"def SZFh(YKHO, eHxA):\n nPrm = oyIN.array([yOAJ.flatten() for yOAJ in eHxA])\n return nPrm",
"def lkbw(nPrm):\n Aofo = []\n for XjbL in ... | [
"0.6259908",
"0.62205553",
"0.60901254",
"0.6081688",
"0.6013226",
"0.6012804",
"0.600478",
"0.5999807",
"0.59407836",
"0.5916167",
"0.59141505",
"0.5829531",
"0.5814003",
"0.5805772",
"0.58050174",
"0.5766101",
"0.5750351",
"0.5743768",
"0.5734869",
"0.57283336",
"0.57187784... | 0.0 | -1 |
Converts a string of text into a numerical vector of features based on the word embedding LTM. | def _Eet(YKHO, l5Ny):
nexB = set()
V22M = dFss(l5Ny)
for GIN8 in V22M:
if GIN8 in YKHO.tree:
JZlq = YKHO.tree.word_ancestors(GIN8)
nexB.update(JZlq)
return YKHO.nl.isin(nexB).values | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fQ14(l5Ny, C3ST, quXY, psFu=False):\n if not psFu:\n l5Ny = l5Ny.split()\n he6J = oyIN.zeros(300)\n for GIN8 in l5Ny:\n if (GIN8 in C3ST) & (GIN8 in quXY):\n he6J += C3ST[GIN8] * quXY[GIN8]\n if oyIN.linalg.norm(he6J) > 0:\n return he6J / oyIN.linalg.norm(he6J)\n ... | [
"0.70021975",
"0.6557391",
"0.65419817",
"0.65404963",
"0.6515521",
"0.64831823",
"0.6474055",
"0.64408255",
"0.64127994",
"0.6378021",
"0.63599265",
"0.63383466",
"0.6331677",
"0.6309186",
"0.63056415",
"0.6245646",
"0.6237467",
"0.62303",
"0.62136185",
"0.61973566",
"0.6189... | 0.0 | -1 |
Creates a Tensor for use as an Embedding initialization from the source vocabulary and predefined word embeddings. | def MI9c(Zi3l, gKCT):
Cj7G = len(Zi3l)
lhva = gKCT.shape[1]
_mSQ = oyIN.zeros((Cj7G, lhva), dtype=oyIN.float32)
for or8S in range(Cj7G):
eOtH = Zi3l.lookup_index(or8S)
if eOtH in gKCT.index:
_mSQ[or8S, :] = gKCT.loc[eOtH]
else:
_mSQ[or8S, :] = oyIN.random.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7di(eBSA, jXxl, Agjb):\n wjQX = ZylS.Variable(ZylS.random_uniform((jXxl, Agjb), -1, 1))\n Q1PJ = ZylS.nn.embedding_lookup(wjQX, eBSA)\n return Q1PJ",
"def D0Em(GPtr):\n oN1m = oyIN.load(GPtr.wordembed_params)\n with ZylS.variable_scope('vc'):\n with ZylS.variable_scope('lstm', reuse=Tr... | [
"0.74340177",
"0.7306449",
"0.72952855",
"0.70558393",
"0.7044115",
"0.68895066",
"0.67812735",
"0.6750932",
"0.67492104",
"0.67476356",
"0.67427427",
"0.6717155",
"0.6711093",
"0.6680487",
"0.6676144",
"0.6672202",
"0.6647878",
"0.6621589",
"0.66202843",
"0.65980107",
"0.658... | 0.66311824 | 17 |
Override fields on ``self.account``. | def yzI9(YKHO, oWhS=pB7M, r0fD=pB7M, XQLn=pB7M, IPVe=pB7M, Suua=pB7M, GNUR=pB7M, zeuP=pB7M, Zy9F=pB7M, pXu5=pB7M, nOeW=pB7M, lp9P=pB7M, C4wl=pB7M, b4t6=pB7M, HvdB=pB7M, xfAy=pB7M, aVgf=pB7M, eMxJ=pB7M):
YKHO._dirty_account = True
YKHO._account_overrides = B2fa = {G1Hx: Ty9i for G1Hx, Ty9i in locals().items() if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc",
"def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc",
"def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc",
"def ZrNc(YKHO, ZrNc):\n YKHO._account = ZrNc",
"def Po4F(YKHO, ZrNc=None, CBIr=None, Z31E=None):\n return super().patch()",
"def ZrNc(YKHO, ZrNc: ... | [
"0.6413226",
"0.6413226",
"0.6413226",
"0.6413226",
"0.6343206",
"0.6329128",
"0.6322581",
"0.63135093",
"0.61441493",
"0.60770935",
"0.60361296",
"0.6022793",
"0.60135746",
"0.60068023",
"0.59981",
"0.59467715",
"0.58997744",
"0.5875439",
"0.5858766",
"0.5787134",
"0.5765871... | 0.67399603 | 0 |
The indices of the master array which correspond to this partition's data array. | def _0VL(YKHO):
return tuple([slice(*Mkmy) for Mkmy in YKHO.location]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _0VL(YKHO) -> oyIN.ndarray:\n return YKHO.impl.indices",
"def fdyk(YKHO):\n return B_n2(*[range(*Mkmy) for Mkmy in YKHO.location])",
"def ofQq(YKHO):\n return oyIN.array([WhQ6.atom_idxs for WhQ6 in YKHO])",
"def JzsK(YKHO):\n return YKHO.region_pairs",
"def xvIg(YKHO):\n return YKHO._ind... | [
"0.70275134",
"0.6850407",
"0.683511",
"0.6796057",
"0.6708753",
"0.6668921",
"0.6662458",
"0.66586286",
"0.6644368",
"0.6611067",
"0.66031367",
"0.65675586",
"0.65319914",
"0.64623576",
"0.6393266",
"0.6372617",
"0.6343201",
"0.63220435",
"0.6305004",
"0.62970823",
"0.628111... | 0.62476814 | 23 |
Return a deep copy. ``p.copy()`` is equivalent to ``copy.deepcopy(p)``. | def jth9(YKHO):
BdN0 = gftJ.__new__(gftJ)
BdN0.__dict__ = YKHO.__dict__.copy()
YKHO._increment_file_counter()
return BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _qLf(YKHO):\n return KalG.deepcopy(YKHO)",
"def jth9(YKHO):\n return AkZY.deepcopy(YKHO)",
"def jth9(YKHO):\n import jth9 as RcS5\n return RcS5.deepcopy(YKHO)",
"def _qLf(YKHO):\n return YKHO.copy()",
"def jth9(YKHO):\n return jth9.deepcopy(YKHO)",
"def _qLf(YKHO):\n return jth9.... | [
"0.7977393",
"0.7835692",
"0.7835209",
"0.7829921",
"0.7808746",
"0.7806165",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0.77548367",
"0... | 0.0 | -1 |
overload == which is useful for tests | def xa14(YKHO, Elif):
return oyIN.all([YKHO.__getattribute__(mWFP) == Elif.__getattribute__(mWFP) for mWFP in YKHO._fields]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def whu6(YKHO):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qI... | [
"0.8219239",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"0.8051525",
"... | 0.0 | -1 |
The extended location of the cluster associated with the resource. | def zXcB(YKHO) -> qe4Y.Input['ExtendedLocationArgs']:
return qe4Y.get(YKHO, 'extended_location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXcB(YKHO) -> qe4Y.Output['outputs.ExtendedLocationResponse']:\n return qe4Y.get(YKHO, 'extended_location')",
"def zXcB(YKHO) -> qe4Y.Output['outputs.ExtendedLocationResponse']:\n return qe4Y.get(YKHO, 'extended_location')",
"def zXcB(YKHO) -> qe4Y.Output[h8nf['outputs.ExtendedLocationResponse']]:\n ... | [
"0.67308724",
"0.67308724",
"0.6552111",
"0.6427688",
"0.64267975",
"0.64260936",
"0.64260936",
"0.63151413",
"0.6296761",
"0.6123441",
"0.6123441",
"0.595561",
"0.58933264",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953... | 0.6507004 | 3 |
The name of the resource group. The name is case insensitive. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_grou... | [
"0.8591477",
"0.8364604",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.8203347",
"0.81754756",
"0.8084906",
"0.8084906",
"0.8084906",
"0.8084906",
"0.8084906",
"0.8084906",
... | 0.80879456 | 52 |
Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on the network attachment definition injected into the Hybrid AKS Cluster. | def ywZZ(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'HybridAksIpamEnabled']]]:
return qe4Y.get(YKHO, 'hybrid_aks_ipam_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxAH(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'internet_advertising_disabled')",
"def WxAH(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'internet_advertising_disabled')",
"def Rc8U(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'L3NetworkConfigurationIpamEnabled']]]:\n return qe4Y.... | [
"0.6013737",
"0.6013737",
"0.57309324",
"0.56934357",
"0.5477145",
"0.52816826",
"0.52816826",
"0.5257691",
"0.52326876",
"0.5207934",
"0.5207934",
"0.5186799",
"0.5176646",
"0.5155211",
"0.51384276",
"0.51132184",
"0.51126623",
"0.5108996",
"0.5088345",
"0.5074993",
"0.50374... | 0.0 | -1 |
The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP allocation type is IPV4 or DualStack. | def fzyR(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'ipv4_connected_prefix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PiDd(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'local_ipv4_network_cidr')",
"def PiDd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'local_ipv4_network_cidr')",
"def PiDd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'local_ipv4_network_cidr')",
"def nMQK(YKHO):\n ... | [
"0.74853224",
"0.73985845",
"0.73985845",
"0.72560716",
"0.72186995",
"0.68104565",
"0.68104565",
"0.6797192",
"0.66854614",
"0.6672047",
"0.65196866",
"0.6441253",
"0.64102024",
"0.64046043",
"0.6388265",
"0.6357316",
"0.63264906",
"0.63264906",
"0.63264906",
"0.6296035",
"0... | 0.72907937 | 3 |
The name of the L3 network. | def Jo6E(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'l3_network_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eVVj(YKHO) -> str:\n return qe4Y.get(YKHO, 'network')",
"def tN3E(YKHO) -> str:\n return YKHO._computer_network_name",
"def tvqd(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('network_name'), B2fa)",
"def mWFP(YKHO) -> str:\n return f'{YKHO._inst} NAT {YKHO._data['name']}... | [
"0.6955331",
"0.6824133",
"0.6799091",
"0.6677395",
"0.66031",
"0.6491807",
"0.6462104",
"0.64592564",
"0.64398986",
"0.63908404",
"0.63872564",
"0.638713",
"0.63722634",
"0.6359511",
"0.6331267",
"0.63089246",
"0.62042356",
"0.6186131",
"0.61773044",
"0.61605525",
"0.6082077... | 0.88098806 | 0 |
The geolocation where the resource lives | def Rci7(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO):\n return YKHO.__location",
"def hbd3(YKHO):\n return None",
"def QXqx(YKHO):\n return YKHO._Location",
"def quGm(YKHO):\n return YKHO.get_pr... | [
"0.816298",
"0.7999453",
"0.79540074",
"0.7945644",
"0.78364915",
"0.77626437",
"0.7730134",
"0.7681095",
"0.7624169",
"0.76093256",
"0.76093256",
"0.75724584",
"0.75544393",
"0.7547195",
"0.75165695",
"0.74507827",
"0.74267685",
"0.7419033",
"0.7419033",
"0.7419033",
"0.7419... | 0.0 | -1 |
Get an existing L3Network resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'L3Network':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = b8K4.__new__(b8K4)
r6DL.__dict__['associated_resource_ids'] = None
r6DL.__dict__['cluster_id'] = None
r6DL.__dict__['det... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kq0k(id):\n QTBn = S8SU.get(wHLO, id)\n if QTBn is not None:\n return pz3A(QTBn.to_dict())\n eTsH(404)",
"def Q_BA(ZuB6):\n QTBn = S8SU.get(wHLO, ZuB6)\n if not QTBn:\n eTsH(404)\n return (pz3A(QTBn.to_dict()), 200)",
"def UOSj(RjQS, rlcK, U3Fm=True):\n bHR_ = Vdw8(RjQS)\... | [
"0.5696972",
"0.5616301",
"0.559337",
"0.55891603",
"0.55436486",
"0.5497109",
"0.54890585",
"0.5482085",
"0.5455767",
"0.5444336",
"0.54149556",
"0.53990793",
"0.53760177",
"0.53489095",
"0.534057",
"0.5307886",
"0.5290895",
"0.529065",
"0.5247792",
"0.5244457",
"0.5226916",... | 0.6454363 | 0 |
The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. | def SMbe(YKHO) -> qe4Y.Output[bdIy[str]]:
return qe4Y.get(YKHO, 'associated_resource_ids') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WeDj(YKHO):\n return YKHO._network_ids",
"def OIX_(YKHO):\n return YKHO._get_list_field('otherResources')",
"def LCAZ(YKHO):\n return YKHO._resource_names",
"def ZzRC(YKHO):\n I3Ln = []\n CFp1 = {}\n for eVVj, jGRS in YKHO.networks.items():\n if jGRS['onboarded']:\n I3... | [
"0.69101155",
"0.6573186",
"0.6401023",
"0.6343839",
"0.6258195",
"0.5978847",
"0.5978847",
"0.5978847",
"0.5819962",
"0.5801385",
"0.5795712",
"0.5795712",
"0.57860464",
"0.57594633",
"0.5741592",
"0.5688209",
"0.5666085",
"0.5643691",
"0.56345814",
"0.5630704",
"0.5611117",... | 0.70806557 | 1 |
The resource ID of the Network Cloud cluster this L3 network is associated with. | def JvOq(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'cluster_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')",
"def JvOq(YKHO) -> str:\n return qe4Y... | [
"0.8012701",
"0.8012701",
"0.8012701",
"0.8012701",
"0.8012701",
"0.767193",
"0.724202",
"0.724202",
"0.71904457",
"0.71904457",
"0.71904457",
"0.7147318",
"0.71079326",
"0.7104546",
"0.70985615",
"0.70811",
"0.7055768",
"0.69946766",
"0.69447",
"0.69314307",
"0.68725604",
... | 0.74517417 | 8 |
The extended location of the cluster associated with the resource. | def zXcB(YKHO) -> qe4Y.Output['outputs.ExtendedLocationResponse']:
return qe4Y.get(YKHO, 'extended_location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXcB(YKHO) -> qe4Y.Output[h8nf['outputs.ExtendedLocationResponse']]:\n return qe4Y.get(YKHO, 'extended_location')",
"def zXcB(YKHO) -> qe4Y.Input['ExtendedLocationArgs']:\n return qe4Y.get(YKHO, 'extended_location')",
"def zXcB(YKHO) -> qe4Y.Input['ExtendedLocationArgs']:\n return qe4Y.get(YKHO, '... | [
"0.6552111",
"0.6507004",
"0.6507004",
"0.6427688",
"0.64267975",
"0.64260936",
"0.64260936",
"0.63151413",
"0.6296761",
"0.6123441",
"0.6123441",
"0.595561",
"0.58933264",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",
"0.5883953",... | 0.67308724 | 1 |
Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on the network attachment definition injected into the Hybrid AKS Cluster. | def ywZZ(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'hybrid_aks_ipam_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxAH(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'internet_advertising_disabled')",
"def WxAH(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'internet_advertising_disabled')",
"def Rc8U(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'L3NetworkConfigurationIpamEnabled']]]:\n return qe4Y.... | [
"0.60128003",
"0.60128003",
"0.57295716",
"0.56930447",
"0.5477912",
"0.5282392",
"0.5282392",
"0.52573335",
"0.5233392",
"0.5205244",
"0.5205244",
"0.5186832",
"0.5175805",
"0.5155281",
"0.51379627",
"0.51135457",
"0.5112992",
"0.51077884",
"0.50872314",
"0.5076411",
"0.5037... | 0.0 | -1 |
The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP allocation type is IPV4 or DualStack. | def fzyR(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'ipv4_connected_prefix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PiDd(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'local_ipv4_network_cidr')",
"def PiDd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'local_ipv4_network_cidr')",
"def PiDd(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'local_ipv4_network_cidr')",
"def fzyR(YKHO) -> h8... | [
"0.748467",
"0.7397195",
"0.7397195",
"0.72900414",
"0.7255836",
"0.68101245",
"0.68101245",
"0.6797655",
"0.6686527",
"0.66722995",
"0.6519062",
"0.644197",
"0.64091825",
"0.64038914",
"0.6388208",
"0.63576555",
"0.6327051",
"0.6327051",
"0.6327051",
"0.6295223",
"0.6267015"... | 0.7218586 | 5 |
The geolocation where the resource lives | def Rci7(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO):\n return YKHO.__location",
"def hbd3(YKHO):\n return None",
"def QXqx(YKHO):\n return YKHO._Location",
"def quGm(YKHO):\n return YKHO.get_pr... | [
"0.816298",
"0.7999453",
"0.79540074",
"0.7945644",
"0.78364915",
"0.77626437",
"0.7730134",
"0.7681095",
"0.7624169",
"0.76093256",
"0.76093256",
"0.75724584",
"0.75544393",
"0.7547195",
"0.75165695",
"0.74507827",
"0.74267685",
"0.7419033",
"0.7419033",
"0.7419033",
"0.7419... | 0.6883943 | 75 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7918516",
"0.7918516",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7866337",
"0.7708053",
"0.75534964",
"0.7282099",
"0.70591027",
"0.6979169",
"0.69202054",
"0.6868452",
"0.67303157",
"0.67049116",
"0.6654272",
"0.6646357",
"0.66396123",
"0.66396123",
"0.663961... | 0.0 | -1 |
Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this L3 network. | def yiV3(YKHO) -> qe4Y.Output[bdIy[str]]:
return qe4Y.get(YKHO, 'virtual_machines_associated_ids') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPBJ(YKHO):\n eIXr = YKHO._experiment.remote\n for vC9B in YKHO._experiment.labels:\n for Mkmy in vC9B.remote:\n assert Mkmy in eIXr\n return eIXr",
"def Mt5B(YKHO) -> bdIy['outputs.SubResourceReadOnlyResponse']:\n return qe4Y.get(YKHO, 'virtual_machines')",
"def CWJV(YKHO):\n... | [
"0.5911471",
"0.5848252",
"0.5473489",
"0.5471283",
"0.54288316",
"0.54288316",
"0.542811",
"0.5384369",
"0.53598607",
"0.53279454",
"0.53103167",
"0.53008413",
"0.5270152",
"0.5221629",
"0.5212279",
"0.5154512",
"0.51520634",
"0.5138587",
"0.5093057",
"0.50420386",
"0.500422... | 0.55128694 | 2 |
Load weights from a checkpoint file into the tensorflow graph. | def SUd8(YKHO, V1C0, cb_Q=None):
if cb_Q is None:
cb_Q = ZylS.get_default_session()
assert cb_Q is not None
jkyf = ZylS.train.Saver(YKHO.variables_to_restore)
jkyf.restore(cb_Q, V1C0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ks9j(cb_Q, bPTx):\n PfZw = Fz20.assign_from_checkpoint_fn(bPTx, Fz20.get_model_variables(), ignore_missing_vars=True)\n PfZw(cb_Q)",
"def JdYC(YKHO, pmON: str, H5ew: str):\n aqBD = ht2j.load(pmON, map_location='cpu')\n YKHO.load_state_dict(aqBD[H5ew])",
"def JdYC(YKHO, pmON: str, H5ew: str):\n ... | [
"0.76077384",
"0.74392045",
"0.74392045",
"0.7414661",
"0.7232018",
"0.71317524",
"0.7071087",
"0.70339084",
"0.700918",
"0.6977498",
"0.6935631",
"0.691333",
"0.68927085",
"0.68749905",
"0.68339276",
"0.6816416",
"0.6816042",
"0.67910594",
"0.6769799",
"0.6769098",
"0.672785... | 0.77680707 | 2 |
Load weights from a checkpoint file into the tensorflow graph. | def SUd8(YKHO, V1C0, cb_Q=None):
if cb_Q is None:
cb_Q = ZylS.get_default_session()
assert cb_Q is not None
jkyf = ZylS.train.Saver(YKHO.variables_to_restore)
jkyf.restore(cb_Q, V1C0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ks9j(cb_Q, bPTx):\n PfZw = Fz20.assign_from_checkpoint_fn(bPTx, Fz20.get_model_variables(), ignore_missing_vars=True)\n PfZw(cb_Q)",
"def JdYC(YKHO, pmON: str, H5ew: str):\n aqBD = ht2j.load(pmON, map_location='cpu')\n YKHO.load_state_dict(aqBD[H5ew])",
"def JdYC(YKHO, pmON: str, H5ew: str):\n ... | [
"0.76077384",
"0.74392045",
"0.74392045",
"0.7414661",
"0.7232018",
"0.71317524",
"0.7071087",
"0.70339084",
"0.700918",
"0.6977498",
"0.6935631",
"0.691333",
"0.68927085",
"0.68749905",
"0.68339276",
"0.6816416",
"0.6816042",
"0.67910594",
"0.6769799",
"0.6769098",
"0.672785... | 0.77680707 | 1 |
Load weights from a checkpoint file into the tensorflow graph. | def SUd8(YKHO, V1C0, cb_Q=None):
if cb_Q is None:
cb_Q = ZylS.get_default_session()
assert cb_Q is not None
jkyf = ZylS.train.Saver(YKHO.variables_to_restore)
jkyf.restore(cb_Q, V1C0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ks9j(cb_Q, bPTx):\n PfZw = Fz20.assign_from_checkpoint_fn(bPTx, Fz20.get_model_variables(), ignore_missing_vars=True)\n PfZw(cb_Q)",
"def JdYC(YKHO, pmON: str, H5ew: str):\n aqBD = ht2j.load(pmON, map_location='cpu')\n YKHO.load_state_dict(aqBD[H5ew])",
"def JdYC(YKHO, pmON: str, H5ew: str):\n ... | [
"0.76077384",
"0.74392045",
"0.74392045",
"0.7414661",
"0.7232018",
"0.71317524",
"0.7071087",
"0.70339084",
"0.700918",
"0.6977498",
"0.6935631",
"0.691333",
"0.68927085",
"0.68749905",
"0.68339276",
"0.6816416",
"0.6816042",
"0.67910594",
"0.6769799",
"0.6769098",
"0.672785... | 0.77680707 | 0 |
Save the training checkpoint to the disk. | def IRyE(YKHO):
if not YKHO.save_ckpt:
return
ccBJ = None
xWf0 = False
vauY = YKHO.create_checkpoint()
if YKHO.save_best_only:
if YKHO.valid_dataloader:
for ZfUD in [YKHO.valid_metric_meters, YKHO.valid_loss_meters]:
if YKHO.primary_indicator in ZfUD:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRyE(YKHO):\n if not Hy7s.path.isdir(YKHO.path + '/checkpoint/'):\n Hy7s.makedirs(YKHO.path + '/checkpoint/')\n if YKHO.saver == None:\n with YKHO.graph.as_default():\n YKHO.saver = ZylS.train.Saver(ZylS.global_variables())\n YKHO.saver.save(YKHO.session, YKHO.path + '/checkpo... | [
"0.8523187",
"0.82452935",
"0.8190791",
"0.8153993",
"0.81345206",
"0.812798",
"0.8117262",
"0.80906636",
"0.80737823",
"0.79668844",
"0.79027486",
"0.77434766",
"0.77273154",
"0.7645351",
"0.764001",
"0.76386636",
"0.7630027",
"0.76060045",
"0.75488526",
"0.75404406",
"0.750... | 0.727966 | 43 |
shoot_ray shoots a ray from a given row and column if possible | def ChH_(YKHO, g6hC, o7hg):
hLRM = YKHO._board.get_board_square((g6hC, o7hg))
TAm4 = hLRM.is_edge()
if TAm4 == False:
return False
hWDr = m1mO.Ray(g6hC, o7hg)
hLRM.set_originating_ray(hWDr)
YKHO.set_score(-1)
while hWDr.get_direction() != None:
YKHO.move_ray(hWDr)
K1VA = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ChH_(YKHO, rdlD, fvDH):\n if not YKHO.valid_ray(rdlD, fvDH):\n return False\n spHt = m1mO(rdlD, fvDH)\n if not spHt.can_continue(YKHO.get_a_locations()):\n YKHO.mark_portal(spHt.get_start())\n if YKHO.get_score() <= 0:\n YKHO.change_state('LOST')\n return None\n ... | [
"0.78674567",
"0.6780156",
"0.67677057",
"0.61004895",
"0.5816195",
"0.5722863",
"0.5721122",
"0.56699514",
"0.566448",
"0.5559462",
"0.5555234",
"0.55531144",
"0.55380315",
"0.55212104",
"0.55208117",
"0.5480533",
"0.54755425",
"0.5391073",
"0.53854626",
"0.5371789",
"0.5366... | 0.748143 | 1 |
atoms_left returns the number of unguessed atoms still left | def jRpt(YKHO):
return len(YKHO._atoms) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jRpt(YKHO):\n return YKHO._atoms",
"def jRpt(YKHO):\n return YKHO._board.get_atoms()",
"def q4T5(YKHO):\n return YKHO.num_white_pieces + YKHO.num_black_pieces",
"def K8Cp(YKHO):\n YKHO.mass_left_count = int(oyIN.sum(YKHO.array))",
"def jyjw(iVRZ):\n rdlD = nLDA(iVRZ)\n return wtOp(iVR... | [
"0.7521378",
"0.74469197",
"0.6469958",
"0.6355561",
"0.6071514",
"0.6057757",
"0.6004638",
"0.59833574",
"0.59616107",
"0.5921324",
"0.5888561",
"0.5864343",
"0.5864343",
"0.5818085",
"0.57945406",
"0.57681686",
"0.5768063",
"0.5694106",
"0.56850934",
"0.56428653",
"0.559667... | 0.84319353 | 0 |
Gets the crosslistings of the top edges from a course | def VK6W(YKHO, cuiw, _E1d):
Q6kx = YKHO.getNode(_E1d)
if not Q6kx:
return []
mC4V = Q6kx.getEdges()
return sorted(mC4V.keys(), key=lambda G1Hx: mC4V[G1Hx], reverse=True)[:5] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RIBh(httR):\n sDlr = []\n iXlf = set(httR.nodes())\n P8oC = set(httR.nodes_where({'is_support': True}))\n if P8oC:\n sDlr.append(list(P8oC))\n PwWw = set()\n PwWw.update(P8oC)\n iXlf -= P8oC\n while iXlf:\n myQS = set((cHk7 for H5ew in sDlr[-1] for cHk7... | [
"0.59826374",
"0.55603427",
"0.5523582",
"0.5495732",
"0.5461872",
"0.54479295",
"0.53818995",
"0.5318768",
"0.52677137",
"0.5246417",
"0.520737",
"0.5162896",
"0.5158995",
"0.51440036",
"0.51215637",
"0.5089466",
"0.50795156",
"0.50770104",
"0.5055389",
"0.5054957",
"0.50231... | 0.72403175 | 0 |
Loads a json value from a file and converts it to the corresponding python object. | def h7d4(nJ4q):
with open(nJ4q) as oNue:
BWXx = qQXR.load(oNue)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(Emd4, nUeQ):\n with open(nUeQ, 'r') as eHNT:\n r845 = qQXR.load(eHNT)\n return Emd4(**r845)",
"def EBvf(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n YEnM = qQXR.loads(eHNT.read())\n return YEnM",
"def MCoo(NqAa):\n object = qQXR.loads(NqAa)\n print(object)\n retu... | [
"0.7691063",
"0.76900375",
"0.76079774",
"0.7595927",
"0.75809187",
"0.7557681",
"0.7495783",
"0.74881333",
"0.74459565",
"0.7439162",
"0.7416306",
"0.7365671",
"0.73619384",
"0.7338387",
"0.73190105",
"0.7312332",
"0.7281531",
"0.7272493",
"0.72698015",
"0.7256082",
"0.72544... | 0.74380505 | 10 |
Return a string for the array of numbers for this matrix | def zAg0(YKHO):
return str(YKHO.array) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO) -> str:\n return ','.join((''.join((str(exwG) for exwG in r8hN)) for r8hN in YKHO.matrix))",
"def zAg0(YKHO):\n hlel = ''\n for YRbF in YKHO.values:\n aevO = []\n hlel += '['\n for r845 in YRbF:\n aevO.append(str(r845))\n hlel += ','.join(aevO) + ']'... | [
"0.7381142",
"0.7210961",
"0.7170365",
"0.7031644",
"0.6882609",
"0.68663853",
"0.6862946",
"0.6755842",
"0.67423487",
"0.66417027",
"0.65829957",
"0.6536184",
"0.6523809",
"0.6509771",
"0.64562243",
"0.6420926",
"0.64129996",
"0.638619",
"0.6340786",
"0.63212585",
"0.626529"... | 0.66033196 | 10 |
Returns the self.guessed_by and self.metaphors_used data as a readable string. | def HIzZ(YKHO):
return '\n'.join(['Guessed by {}'.format(YKHO.guessed_by), '{} metaphors used'.format(YKHO.metaphors_used)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L02H(YKHO):\n return YKHO._guessed_strings",
"def zAg0(YKHO):\n Csk6 = {}\n Csk6['tuner_number'] = YKHO.tuner_number\n Csk6['output_format'] = YKHO.output_format\n Csk6['output_source'] = YKHO.output_source\n return str(Csk6)",
"def Tekt(YKHO):\n\n def gMH1(H5ew):\n if getattr(Y... | [
"0.66056585",
"0.6369337",
"0.63330597",
"0.63225114",
"0.62778735",
"0.62415534",
"0.6170479",
"0.6140569",
"0.60968494",
"0.60799277",
"0.60438675",
"0.60398",
"0.60284495",
"0.6009198",
"0.59779775",
"0.59726894",
"0.597072",
"0.59602815",
"0.594238",
"0.5917474",
"0.58926... | 0.80824745 | 0 |
Takes `x_axis` and returns an uniformly sampled array of values from its minimum to its maximum with few extra points | def bG1d(PPHi, KR0Q=100, SGf8=0.1):
dgIT = oyIN.min(PPHi)
bQ6z = oyIN.max(PPHi)
Ayfi = bQ6z - dgIT
return oyIN.linspace(dgIT - SGf8 * Ayfi, bQ6z + SGf8 * Ayfi, num=KR0Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO):\n zfAR = HTbS.np_random.rand(YKHO.num_discrete_space)\n return [int(WKvO) for WKvO in oyIN.floor(oyIN.multiply(YKHO.high - YKHO.low + 1.0, zfAR) + YKHO.low)]",
"def NXpY(MEXo=1, OV1s=1):\n WKvO = V4rn(MEXo)\n LVAh = V4rn(OV1s)\n return oyIN.array(((WKvO, 0, 0), (0, LVAh, 0), (0, 0,... | [
"0.6698139",
"0.6558226",
"0.65457267",
"0.64248043",
"0.6340408",
"0.6254296",
"0.61594844",
"0.6148418",
"0.60947704",
"0.60901093",
"0.5998522",
"0.5891753",
"0.5868367",
"0.58548534",
"0.5790514",
"0.5744083",
"0.5735349",
"0.57298034",
"0.57228523",
"0.5720773",
"0.56946... | 0.59077674 | 11 |
Name of current protocol. | def mWFP(YKHO):
return 'Null' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iquo(YKHO) -> str:\n return __name__",
"def iquo(YKHO) -> str:\n return qe4Y.get(YKHO, 'protocol')",
"def NovM(YKHO):\n YKHO._protocol_name = 'kerberos'\n return YKHO._protocol_name",
"def aQaF(YKHO) -> str:\n ...",
"def EwEf(YKHO) -> str:\n return YKHO._layer_protocol_name",
"def I... | [
"0.8527097",
"0.8032896",
"0.8025242",
"0.7800471",
"0.7785212",
"0.7730119",
"0.76614213",
"0.76614213",
"0.75701255",
"0.75649047",
"0.75599545",
"0.7478808",
"0.7466269",
"0.7439446",
"0.7334409",
"0.7231231",
"0.71754944",
"0.715286",
"0.70239735",
"0.70239735",
"0.702397... | 0.0 | -1 |
Test case for add_or_update_case | def x6uz(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tbie(YKHO):\n pass",
"def qRhm(YKHO):\n pass",
"def mmy9(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def b6pt(YKHO):\n pass",
"def N8Hm(YKHO):\n\n def exg2(mWFP, BWXx):\n return f'{mWFP}-{BWXx}'\n n9ai = Jdws(YKH... | [
"0.79237324",
"0.7314126",
"0.7272837",
"0.72685695",
"0.72685695",
"0.72685695",
"0.712033",
"0.69949913",
"0.6982817",
"0.69368035",
"0.69113",
"0.68479264",
"0.68319446",
"0.6824832",
"0.6721132",
"0.6690393",
"0.6686279",
"0.66511667",
"0.6622248",
"0.6599744",
"0.6579878... | 0.90939504 | 0 |
Returns the presence for this channel | def w8TK(YKHO, NArs=None, vYBr=None):
NArs = NArs or {}
pmON = '/channels/%s/presence' % YKHO.__name
return YKHO.__ably._get(pmON, params=NArs, timeout=vYBr).json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8TK(YKHO):\n return YKHO.slack_client.api_call('users.getPresence?user=' + YKHO.user_id)",
"def h8jc(YKHO):\n return YKHO.humanPresence",
"def SLbt(YKHO):\n OFMJ = YKHO.presence()\n if OFMJ.get('ok'):\n return OFMJ.get('online')\n return None",
"def KgST(YKHO, *qIxc, **B2fa):\n ... | [
"0.78225",
"0.65050405",
"0.63529664",
"0.6173057",
"0.5725983",
"0.5710549",
"0.5505179",
"0.54912657",
"0.54869306",
"0.54740065",
"0.5472166",
"0.5465967",
"0.5449083",
"0.5377885",
"0.5373487",
"0.5356357",
"0.534464",
"0.53218323",
"0.52983725",
"0.52873003",
"0.528721",... | 0.80038244 | 0 |
Get an existing Assessment resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Assessment':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = me4P.__new__(me4P)
r6DL.__dict__['additional_data'] = None
r6DL.__dict__['display_name'] = None
r6DL.__dict__['links'] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Assessment':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = dict()\n r6DL['additional_data'] = None\n r6DL['display_name'] = None\n r6DL['links'] = None\n r6DL['metadata'] ... | [
"0.6976486",
"0.608855",
"0.5846438",
"0.5757699",
"0.5648362",
"0.55919707",
"0.5582545",
"0.55817664",
"0.55264586",
"0.55085826",
"0.550386",
"0.5496845",
"0.54861027",
"0.5467891",
"0.54414856",
"0.53757304",
"0.53509825",
"0.53232807",
"0.5311685",
"0.52735114",
"0.52480... | 0.6898669 | 1 |
Convert the axisangle representation to the matrix representation of the rotation | def tPaT(Mkmy):
KCHu = oyIN.sin(Mkmy[3])
Z9rn = oyIN.cos(Mkmy[3])
a1PO = 1 - Z9rn
exwG = NkkI(Mkmy[0:3])
WKvO = exwG[0]
LVAh = exwG[1]
epBp = exwG[2]
r8hN = oyIN.array([[a1PO * WKvO * WKvO + Z9rn, a1PO * WKvO * LVAh - KCHu * epBp, a1PO * WKvO * epBp + KCHu * LVAh], [a1PO * WKvO * LVAh + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _eYH(jDK_):\n return KakW(GhxC(jDK_))",
"def bULF(YylR, jDK_):\n CBO5 = D785(YylR)\n tw3e = OB3T(jDK_)\n ShHK = oyIN.linalg.inv(tw3e)\n return Pusg(oyIN.dot, [tw3e, CBO5, ShHK])",
"def k4PZ(YylR: torch.Tensor) -> ht2j.Tensor:\n dUBp = XBKw(YylR)\n _Lrm: ht2j.Tensor = ht2j.cos(dUBp)\n ... | [
"0.81078196",
"0.78859186",
"0.74368423",
"0.7374491",
"0.7312507",
"0.7310099",
"0.7273846",
"0.7225561",
"0.71868175",
"0.71868175",
"0.70643413",
"0.70557725",
"0.70138526",
"0.7002238",
"0.6987983",
"0.6980551",
"0.69750994",
"0.6967742",
"0.69532573",
"0.693683",
"0.6926... | 0.0 | -1 |
Generator over all subclasses of a given class, in depth first order. | def QTsd(Emd4, LwWV=None):
if not isinstance(Emd4, type):
raise TypeError('itersubclasses must be called with new-style classes, not %.100r' % Emd4)
if LwWV is None:
LwWV = set()
try:
zbDt = Emd4.__subclasses__()
except TypeError:
zbDt = Emd4.__subclasses__(Emd4)
for ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ty1Z(Emd4):\n for dm7U in Emd4.__subclasses__():\n yield dm7U\n for IXEH in Ty1Z(dm7U):\n yield IXEH",
"def Okba(kJjn):\n for Emd4 in kJjn:\n esbs = Emd4.__subclasses__()\n if esbs:\n for qWQn in Okba(esbs):\n yield qWQn\n else:\n ... | [
"0.7962573",
"0.79427534",
"0.7785052",
"0.75617856",
"0.7538503",
"0.75220305",
"0.7414212",
"0.7337148",
"0.7327652",
"0.7236801",
"0.70275396",
"0.7026855",
"0.7007763",
"0.6963463",
"0.6906831",
"0.688978",
"0.688137",
"0.6830467",
"0.68002534",
"0.67773235",
"0.6738663",... | 0.7340427 | 7 |
Initialize the axis ranges from proviuded Plot or renderer. | def Cusn(YKHO, kj9G, SZFh=None):
if SZFh is None:
def SZFh(WKvO):
return WKvO
elif isinstance(SZFh, int):
LZhb = SZFh
def SZFh(WKvO):
return round(WKvO, LZhb)
YKHO.x_axis_range_low = SZFh(kj9G.x_axis.mapper.range.low)
YKHO.auto_x_axis_range_low = YKHO.x_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxX5(YKHO):\n TKGt, wmQo = YKHO._get_extremes()\n YKHO.y_axis.min = TKGt\n YKHO.y_axis.max = wmQo\n YKHO.y_axis._max_min()\n if not None in [KCHu.xvalues for KCHu in YKHO]:\n TKGt, wmQo = YKHO._get_extremes('xvalues')\n YKHO.x_axis.min = TKGt\n YKHO.x_axis.max = wmQo\n ... | [
"0.71792495",
"0.7129534",
"0.68548447",
"0.67877525",
"0.6537042",
"0.64943486",
"0.641954",
"0.6235867",
"0.6223747",
"0.6188791",
"0.61873025",
"0.61726326",
"0.6160985",
"0.6133905",
"0.61263645",
"0.61139727",
"0.61138016",
"0.61124223",
"0.60551167",
"0.60020185",
"0.60... | 0.7375276 | 0 |
Peak wavelength when the curve is expressed as power density. | def OH2r(YKHO):
return PtXs.b_wien / YKHO.temperature | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __d3(VYvU):\n return 2 * oyIN.pi * nX8D * zNxT / VYvU",
"def __d3(YKHO):\n return __d3(VYvU)",
"def hfRT(YKHO):\n pass",
"def __d3(VYvU):\n return 2 * O05v * nX8D * zNxT / VYvU",
"def v0JC(YKHO):\n return YKHO.compute_PSF(oyIN.zeros(YKHO.N_zern))",
"def b0IB(YKHO):\n return YKHO.sol... | [
"0.65199757",
"0.65100896",
"0.6436953",
"0.6426267",
"0.6408306",
"0.62890404",
"0.6252019",
"0.624753",
"0.6180097",
"0.61793584",
"0.6162006",
"0.6152941",
"0.61026114",
"0.6093139",
"0.6071749",
"0.6033385",
"0.59775233",
"0.59704584",
"0.5951522",
"0.5938655",
"0.5900657... | 0.5508018 | 82 |
Performs a batched inner product over the last dimension. Replacement for deprecated `from numpy.core.umath_tests import inner1d`. | def Ofka(jzdc: np.ndarray, Fg_i: np.ndarray, qutR: bool=True) -> oyIN.ndarray:
if qutR and jzdc.shape != Fg_i.shape:
raise ValueError('All dimensions have to be equal')
if jzdc.shape[-1] == 0:
return oyIN.empty_like(jzdc)
return oyIN.einsum('...i,...i->...', jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oVGL(jzdc, Fg_i):\n jzdc, Fg_i = CbK3([jzdc, Fg_i], 2)\n return jzdc[:, :, oyIN.newaxis] * Fg_i[:, oyIN.newaxis, :]",
"def aKAg(ociI, jDK_=0):\n yvT9 = KPxj(ociI)\n return oyIN.prod(yvT9, axis=jDK_)",
"def W5DJ(jzdc: np.ndarray, Fg_i: np.ndarray, qutR: bool=True) -> oyIN.ndarray:\n if qutR a... | [
"0.7076053",
"0.6733254",
"0.6566906",
"0.6538848",
"0.6200467",
"0.5971671",
"0.5898091",
"0.5882279",
"0.586811",
"0.58539116",
"0.5828389",
"0.58158463",
"0.57993835",
"0.5773256",
"0.57691",
"0.570448",
"0.5675385",
"0.5650381",
"0.5588937",
"0.55867285",
"0.5513858",
"... | 0.6739568 | 1 |
Performs a batched outer product over the last dimension. | def W5DJ(jzdc: np.ndarray, Fg_i: np.ndarray, qutR: bool=True) -> oyIN.ndarray:
if qutR and jzdc.shape[:-1] != Fg_i.shape[:-1]:
raise ValueError('All except the last dimension have to be equal')
return oyIN.einsum('...i,...j->...ij', jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oVGL(jzdc, Fg_i):\n jzdc, Fg_i = CbK3([jzdc, Fg_i], 2)\n return jzdc[:, :, oyIN.newaxis] * Fg_i[:, oyIN.newaxis, :]",
"def aKAg(WKvO):\n return bdPE.backend.batch_dot(WKvO[0], WKvO[1], axes=[1, 1]) / WKvO[0].get_shape().as_list()[1]",
"def aKAg(ociI, jDK_=0):\n yvT9 = KPxj(ociI)\n return oyI... | [
"0.755109",
"0.70560527",
"0.6960709",
"0.6768571",
"0.65054774",
"0.63410676",
"0.61378115",
"0.61229986",
"0.60099125",
"0.5946456",
"0.59233963",
"0.590922",
"0.5882272",
"0.587886",
"0.5864047",
"0.58254915",
"0.5783885",
"0.5765654",
"0.5729165",
"0.57191443",
"0.5591057... | 0.66920644 | 4 |
`probs` values ndarray `k` take the smallest `k` elements, if `reverse` is False and the largest `k` if `reverse` is True `axis` sorting and selection axis. | def cmPm(BFeB: np.ndarray, G1Hx: Optional[int]=None, jDK_: int=-1, gxEw: bool=False) -> AzJI[oyIN.ndarray, oyIN.ndarray]:
if G1Hx is not None and G1Hx <= 0:
raise ValueError('k must be larger than 0. Use None to chose all elements.')
if jDK_ != -1:
raise ValueError('Only last axis supported atm'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GX5W(BFeB, G1Hx):\n if G1Hx > 0:\n return oyIN.flip(BFeB[0].argsort()[-G1Hx:])\n else:\n return oyIN.flip(BFeB[0].argsort())",
"def iqMp(BFeB, G1Hx):\n if G1Hx > 0:\n return BFeB.argsort()[-G1Hx:][::-1]\n else:\n return BFeB.argsort()[:][::-1]",
"def kcc4(ezWE, G1Hx)... | [
"0.7283214",
"0.6759031",
"0.58316225",
"0.58071005",
"0.5797564",
"0.57924837",
"0.5782279",
"0.5650926",
"0.55970734",
"0.5593298",
"0.558886",
"0.5553999",
"0.5523884",
"0.548393",
"0.5477123",
"0.5454491",
"0.5419435",
"0.5367509",
"0.5322573",
"0.5320744",
"0.5307545",
... | 0.7433971 | 0 |
Replace colored pixels with a `neutral_color`. The `ratio` defines the 'colorfulness' above which level the pixel should be replace. I.e. if the `ratio` is 1 nothing will be replaced, if `ratio` is 0 only strict greys are kept unmodified. | def w0xg(VXjJ: np.ndarray, dMYj: float, XWqg: Tuple[int, int, int]=dIqV) -> None:
xMux = VXjJ.shape[-1]
assert xMux == 3, 'Not a 3 channel color image'
CkYf = oyIN.std(oyIN.array(M6Jo))
ifkm = oyIN.std(VXjJ, axis=-1)
VXjJ[ifkm > dMYj * CkYf] = XWqg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CI5o(dMYj):\n Fg_i = 0\n if round(dMYj, 1) == 0.5:\n Mkmy = 255\n Oa1e = 255\n elif dMYj < 0.5:\n Mkmy = int(dMYj * 2 * 255.0)\n Oa1e = 255\n else:\n Mkmy = 255\n Oa1e = int((1.0 - dMYj) * 2 * 255.0)\n d7Eb = (Mkmy, Oa1e, Fg_i)\n return d7Eb",
"def ... | [
"0.4983211",
"0.48789826",
"0.48116347",
"0.4737011",
"0.47265878",
"0.46818957",
"0.4571823",
"0.45462266",
"0.44600105",
"0.4397929",
"0.42731524",
"0.427132",
"0.4269558",
"0.42693788",
"0.42575642",
"0.42499575",
"0.42406985",
"0.42318156",
"0.4226033",
"0.4211065",
"0.41... | 0.7399279 | 0 |
np.broadcast_shapes requires `numpy==1.20.0`, which is not available for `python < 3.7`. | def wt62(*N8OZ: Tuple[int, ...]) -> AzJI[int, ...]:
Sk_F = [oyIN.empty(ROpF) for ROpF in N8OZ]
return oyIN.broadcast(*Sk_F).shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KP2Q():\n QOe9((1, 2, 3))\n QOe9((2, 1, 3))\n QOe9((2, 3, 1))\n wY1Q((1, 2, 3))\n wY1Q((2, 1, 3))\n wY1Q((2, 3, 1))",
"def moed(*N8OZ, **B2fa):\n U3Fm = B2fa.pop('strict', False)\n Ej4_ = []\n for ROpF in N8OZ:\n for YRbF, zNig in enumerate(reversed(ROpF)):\n if Y... | [
"0.63662064",
"0.631577",
"0.6181781",
"0.60380113",
"0.59342825",
"0.5925404",
"0.58053595",
"0.57856745",
"0.57498085",
"0.56896067",
"0.55596524",
"0.55482703",
"0.548472",
"0.548077",
"0.540709",
"0.5397413",
"0.53940207",
"0.5373903",
"0.53049004",
"0.526517",
"0.5237194... | 0.6529921 | 0 |
Creates a picture grid (left to right, top to bottom). | def ry8O(Yw_3: np.ndarray, aUKP: int=8, xgWT=(0, 0, 0)) -> oyIN.ndarray:
if not Yw_3.ndim == 4:
raise ValueError('Input shape must be [n, height, width, channel]')
MKlR, yzQ0 = Yw_3.shape[1:3]
wlx8 = Yw_3.shape[0]
xMux = Yw_3.shape[3]
usx6 = pqtO(wlx8, aUKP)
WfCS = min(wlx8, aUKP)
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lm0U(Yw_3, Gmep=4, OfOG=4):\n G1Hx = min(Gmep * OfOG, len(Yw_3))\n _0VL = [YRbF for YRbF in range(G1Hx)]\n return qr3m(Yw_3, _0VL, Gmep, OfOG)",
"def Lm0U(Cs6h):\n for YRbF in range(4):\n Cs6h.append([0, 0, 0, 0])",
"def JQ1D(cb_Q, khtY):\n exwG = 10\n fiGP = oyIN.linspace(-20, 20,... | [
"0.7382325",
"0.7234491",
"0.71866596",
"0.708115",
"0.70502263",
"0.7038171",
"0.6941421",
"0.69232905",
"0.68283314",
"0.6826088",
"0.68064976",
"0.67884314",
"0.6752977",
"0.6732644",
"0.67231864",
"0.6684483",
"0.66807157",
"0.6656162",
"0.66169745",
"0.65663916",
"0.6561... | 0.0 | -1 |
Test admin cannot create a product with a blacklisted token | def MFkj(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
_hkX = YKHO.client.delete('/api/v1/logout', headers={'Authorization': 'Bearer {}'.format(eOtH)})
Amyp = qQXR.loads(_hkX.data.decode())
YKHO.assertEqual(Amyp['message'], 'You are successfully logged out!')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXqa(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)\n _hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization... | [
"0.82479733",
"0.7897591",
"0.7884179",
"0.78223985",
"0.7625364",
"0.7585557",
"0.7400365",
"0.7375994",
"0.72420007",
"0.7152579",
"0.7103639",
"0.70389014",
"0.6944365",
"0.6929796",
"0.68858266",
"0.68301815",
"0.67753994",
"0.6750073",
"0.6746582",
"0.66715974",
"0.66688... | 0.8788049 | 0 |
Tests that 'admin' cannot add a product with empty fields | def VwAx(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
Lx3t = dict(prod_name='', category='', stock=20, price=150)
_hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization': 'Bearer {}'.format(eOt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OGon(YKHO):\n Amyp = YKHO.admin_add_product()\n _hkX = YKHO.admin_create_user()\n Amyp = YKHO.attendant_login()\n eOtH = Amyp['token']\n RsIL = dict(products=[{'prod_name': '', 'quantity': 10}])\n _hkX = YKHO.client.post('/api/v1/sales', content_type='application/json', data=qQXR.dumps(RsIL),... | [
"0.7727357",
"0.71426547",
"0.71228373",
"0.6888725",
"0.6875848",
"0.68659735",
"0.68113697",
"0.6800745",
"0.6779112",
"0.67721987",
"0.6709652",
"0.66885155",
"0.6665036",
"0.6651361",
"0.6607132",
"0.66057837",
"0.66039413",
"0.65725106",
"0.6552758",
"0.6544897",
"0.6522... | 0.8373025 | 0 |
Tests that a user cannot view a product in the Inventory with blacklisted token | def PXqa(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)
_hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization': 'Bearer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w2hW(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)\n _hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization... | [
"0.77314836",
"0.7319002",
"0.68258417",
"0.6709656",
"0.66352224",
"0.6600747",
"0.65926576",
"0.65914124",
"0.6580106",
"0.6573959",
"0.6558386",
"0.65569514",
"0.6534714",
"0.6512719",
"0.6504638",
"0.64704",
"0.6448948",
"0.6437487",
"0.6420581",
"0.6419264",
"0.63966596"... | 0.79721093 | 0 |
Tests that a user can view all products in the Inventory | def sKb3(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)
_hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization': 'Bearer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXzE(YKHO):\n YKHO.client.login(username='test_seller', password='secret')\n geh0 = YKHO.client.get(gxEw('website:products'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(len(geh0.context['products']), 0)\n YKHO.assertNotIn('<h5 class=\"card-title mb-0\">Test Product</h5>'.encode... | [
"0.72330284",
"0.71533865",
"0.70860183",
"0.6867175",
"0.6790764",
"0.67349434",
"0.6666839",
"0.6636514",
"0.66316766",
"0.6597527",
"0.65619427",
"0.6444273",
"0.6425292",
"0.642249",
"0.6402104",
"0.64012486",
"0.6383176",
"0.6383148",
"0.6321953",
"0.6320072",
"0.6299333... | 0.7486654 | 0 |
Tests that a user cannot view products from empty Inventory | def Zk_G(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
_hkX = YKHO.client.get('/api/v1/products', headers={'Authorization': 'Bearer {}'.format(eOtH)})
Amyp = qQXR.loads(_hkX.data.decode())
YKHO.assertEqual(Amyp['message'], 'There are no products yet!')
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jOjo(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n _hkX = YKHO.client.delete('/api/v1/products/1', content_type='application/json', headers={'Authorization': 'Bearer {}'.format(eOtH)})\n Amyp = qQXR.loads(_hkX.data.decode())\n YKHO.assertEqual(Amyp... | [
"0.74154675",
"0.72096145",
"0.7158583",
"0.693217",
"0.6781853",
"0.6733253",
"0.66969836",
"0.65152705",
"0.64797616",
"0.64615333",
"0.6445138",
"0.6428424",
"0.63962966",
"0.6393635",
"0.63872916",
"0.63662773",
"0.633816",
"0.6332057",
"0.63152456",
"0.6308194",
"0.63058... | 0.78474796 | 0 |
Test that you cant updated a nonexistant product | def XXdo(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
o5h_ = dict(prod_name='NY_jeans', category='denims', stock=50, price=180)
_hkX = YKHO.client.put('/api/v1/products/1', content_type='application/json', data=qQXR.dumps(o5h_), headers={'Authorization': 'Bearer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JID8(YKHO):\n z1_4 = b0P7()\n z1_4.id = '1cak41-nonexist'\n try:\n z1_4.update()\n except KeyError:\n YKHO.assertRaises(KeyError)",
"def a98L(YKHO):\n aqR5 = {'category': {'name': 'general', 'index': 0}, 'name': 'Producto 2 modified', 'description': 'Descripcion de producto 2 mod... | [
"0.74883664",
"0.74142987",
"0.7132973",
"0.7130076",
"0.6898503",
"0.6843232",
"0.676572",
"0.6739922",
"0.67206293",
"0.67113554",
"0.66875863",
"0.6684773",
"0.668369",
"0.66656035",
"0.6630668",
"0.6606419",
"0.65949506",
"0.6585263",
"0.65486664",
"0.65191656",
"0.651270... | 0.7994515 | 0 |
Test that product cannot be updated with unauthorised user | def ivxi(YKHO):
_hkX = YKHO.admin_create_user()
Amyp = YKHO.attendant_login()
eOtH = Amyp['token']
o5h_ = dict(prod_name='NY_jeans', category='denims', stock=50, price=180)
_hkX = YKHO.client.put('/api/v1/products/1', content_type='application/json', data=qQXR.dumps(o5h_), headers={'Authorization': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a98L(YKHO):\n aqR5 = {'category': {'name': 'general', 'index': 0}, 'name': 'Producto 2 modified', 'description': 'Descripcion de producto 2 modified', 'selling': True, 'price': 20}\n geh0 = YKHO.client.put('/api/1.0/products/2/', data=aqR5, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP... | [
"0.7472202",
"0.74601954",
"0.730332",
"0.72697306",
"0.71795666",
"0.71784",
"0.7131658",
"0.70938385",
"0.7079321",
"0.6975282",
"0.695774",
"0.6886112",
"0.68209416",
"0.68174875",
"0.6791423",
"0.6772019",
"0.6765322",
"0.6752393",
"0.67434675",
"0.66997343",
"0.6691479",... | 0.80988926 | 0 |
Test that product cannot be updated with empty fields | def QrtJ(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)
_hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization': 'Bearer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oJOP(YKHO):\n nPrm = {'pk': 1, 'name': None, 'description': '\\n Yogurt also spelled yoghurt, yogourt or yoghourt,\\n is a food produced by bacterial fermentation of milk.\\n '}\n bD7m = gxEw('products:detail', kwargs={'pk': nPrm['pk']})\n geh0 = YKHO.client.pu... | [
"0.802753",
"0.7568224",
"0.7292608",
"0.7203753",
"0.7033387",
"0.69645137",
"0.6949159",
"0.6943705",
"0.69149756",
"0.691329",
"0.690093",
"0.6899394",
"0.6895893",
"0.68875086",
"0.6824652",
"0.6816774",
"0.68002254",
"0.6785967",
"0.6772013",
"0.67623484",
"0.6751942",
... | 0.8045699 | 0 |
Test that a non admin cannot delete a product | def wPkU(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)
_hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization': 'Bearer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xiZO(YKHO):\n YKHO._require_login(YKHO.user1)\n geh0 = YKHO.client.delete('/api/1.0/products/2/')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def t4BA(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY... | [
"0.8456681",
"0.82070416",
"0.8153313",
"0.772525",
"0.750598",
"0.75052166",
"0.7497598",
"0.74397874",
"0.73591393",
"0.7334757",
"0.7330903",
"0.72217363",
"0.72114277",
"0.71953607",
"0.7125004",
"0.70727336",
"0.70629984",
"0.6935391",
"0.69298255",
"0.6893835",
"0.68860... | 0.834971 | 1 |
Test that admin cannnot delete a product from empty Inventory | def jOjo(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
_hkX = YKHO.client.delete('/api/v1/products/1', content_type='application/json', headers={'Authorization': 'Bearer {}'.format(eOtH)})
Amyp = qQXR.loads(_hkX.data.decode())
YKHO.assertEqual(Amyp['message']... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t4BA(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)\n _hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization... | [
"0.79532677",
"0.7735564",
"0.7528131",
"0.7521453",
"0.7518936",
"0.746801",
"0.7354772",
"0.72263944",
"0.71801",
"0.71784055",
"0.7171436",
"0.7112214",
"0.7106493",
"0.70771635",
"0.6879483",
"0.68655676",
"0.68639493",
"0.68453324",
"0.6812393",
"0.6777014",
"0.67697865"... | 0.8764794 | 0 |
Test that admin cannnot delete a nonexistant product | def t4BA(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)
_hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization': 'Bearer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xiZO(YKHO):\n YKHO._require_login(YKHO.user1)\n geh0 = YKHO.client.delete('/api/1.0/products/2/')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def wPkU(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY... | [
"0.8434453",
"0.81416374",
"0.8129146",
"0.79895574",
"0.7884565",
"0.7712441",
"0.7642063",
"0.75856626",
"0.7577927",
"0.757099",
"0.7507489",
"0.75073075",
"0.75018024",
"0.7473333",
"0.7418871",
"0.7409584",
"0.72817427",
"0.7275699",
"0.72678584",
"0.7262097",
"0.7227959... | 0.8506851 | 0 |
Test that admin cannnot delete a product with nointeger prod_id | def b7lS(YKHO):
_hkX = YKHO.admin_register()
Amyp = YKHO.admin_login()
eOtH = Amyp['token']
Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)
_hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Authorization': 'Bearer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W_kM(YKHO):\n Lx3t = YKHO.create_product()\n Ldyl = YKHO.product_obj.search([])\n YKHO.assertIn(Lx3t, Ldyl)\n Lx3t.unlink()\n YKHO.assertNotIn(Lx3t.exists(), Ldyl)",
"def xiZO(YKHO):\n YKHO._require_login(YKHO.user1)\n geh0 = YKHO.client.delete('/api/1.0/products/2/')\n YKHO.assertEqu... | [
"0.8163337",
"0.811003",
"0.80877143",
"0.80876744",
"0.8045905",
"0.79786986",
"0.7882516",
"0.7854732",
"0.7846621",
"0.7829516",
"0.77844703",
"0.77800816",
"0.7772745",
"0.77263916",
"0.7600396",
"0.7597553",
"0.75532126",
"0.7346543",
"0.72736114",
"0.7209453",
"0.708175... | 0.8068848 | 4 |
Adam optimizer with learning rate 0.0002 for the first 100k steps (~100 epochs) and a linearly decaying rate that goes to zero over the next 100k steps | def XgNT(N77f, kc1W, mWFP='Adam'):
Aak1 = ZylS.Variable(0, trainable=False, name='global_step')
RY2B = YKHO.opt.lr
_DkU = 0.0
SxTw = YKHO.opt.niter
z4eA = YKHO.opt.niter_decay
dgWh = YKHO.opt.beta1
b0Ix = ZylS.where(ZylS.greater_equal(Aak1, SxTw), ZylS.train.polynomial_decay(RY2B, Aak1 - SxT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_NZ(N77f, ma4o, BkRq, f9Ey):\n Aak1 = ZylS.train.get_or_create_global_step()\n tspZ = ZylS.train.exponential_decay(ma4o, Aak1, BkRq, f9Ey, staircase=True)\n sqQC = ZylS.train.AdamOptimizer(learning_rate=tspZ)\n Aak1 = ZylS.train.get_or_create_global_step()\n _Zyu = ZylS.get_collection(ZylS.Grap... | [
"0.7543031",
"0.73133004",
"0.724946",
"0.7170338",
"0.7165979",
"0.7088052",
"0.7046958",
"0.6981401",
"0.6972685",
"0.69598085",
"0.6947667",
"0.69352144",
"0.69040656",
"0.6877185",
"0.68620074",
"0.6840973",
"0.68289465",
"0.6801931",
"0.67928517",
"0.6781422",
"0.6772846... | 0.68411076 | 15 |
return least common multiple of two integers | def BsJX(WKvO: int, LVAh: int) -> int:
assert isinstance(WKvO, int) and isinstance(LVAh, int) and (WKvO > 0) and (LVAh > 0)
return int(WKvO * LVAh / ML2l(WKvO, LVAh)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwzu(gdXy, DWMs):\n return gdXy * DWMs // epAf.gcd(gdXy, DWMs)",
"def h9pL(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)",
"def TVgX(gdXy, DWMs, fCee, uOLt):\n return vwzu(gdXy * DWMs // epAf.gcd(gdXy, DWMs), fCee * uOLt // epAf.gcd(fCee, uOLt))",
"def BsJX(jzdc: int, Fg_i: int):\n re... | [
"0.8421955",
"0.8331325",
"0.7644219",
"0.76081353",
"0.75759864",
"0.75759864",
"0.75638235",
"0.7436232",
"0.73484886",
"0.7300214",
"0.7295642",
"0.72913396",
"0.72913396",
"0.72913396",
"0.72913396",
"0.72913396",
"0.72913396",
"0.72913396",
"0.72913396",
"0.72913396",
"0... | 0.71541774 | 27 |
tokenize using the nltk default (ptb + a 'punkt' sentence tokenizer) | def wr3U(YKHO, ywwl=None, Lxb0=True, LSh8=True):
for w2fL in YKHO.tokenize_generic(dFss, N=ywwl, drop_punctuation=Lxb0):
if LSh8:
w2fL = w2fL.lower()
yield w2fL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p2vp(YKHO, l5Ny: str):\n return YKHO.bpe_tokenize(l5Ny)",
"def biH0(l5Ny):\n EcVT = []\n WFjr = Dhdw.data.load('tokenizers/punkt/english.pickle')\n for a1PO in l5Ny:\n Eab6 = WFjr.tokenize(a1PO)\n Aofo = ''\n for KCHu in Eab6:\n s2mk = dFss(KCHu)\n Aofo ... | [
"0.7247982",
"0.7229188",
"0.7094783",
"0.70895004",
"0.70805717",
"0.69946355",
"0.6974862",
"0.6922694",
"0.6919841",
"0.68694",
"0.6835729",
"0.6791642",
"0.67796576",
"0.6747571",
"0.6684571",
"0.66801494",
"0.6662924",
"0.6644727",
"0.66325396",
"0.6598598",
"0.6588903",... | 0.0 | -1 |
Compute observation vector for solving the exterior orientation parameters of a single image based on their approximate values | def ZYr4(YKHO, yCYR):
exwG = yCYR.shape[0]
v8j0 = yCYR[:, 0] - YKHO.exteriorOrientationParameters[0]
rKIL = yCYR[:, 1] - YKHO.exteriorOrientationParameters[1]
R5Nm = yCYR[:, 2] - YKHO.exteriorOrientationParameters[2]
Wmt4 = oyIN.vstack([v8j0, rKIL, R5Nm])
rAUn = oyIN.dot(YKHO.rotationMatrix.T, W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNbV(Jsb0, yGTL):\n return jbYn * oyIN.sqrt(Jsb0 * (Jsb0 + 2.0 * yGTL * CRKn)) / (Jsb0 + yGTL * CRKn)",
"def vLtb(YKHO, Ya9w):\n Ya9w = Ya9w.reshape(oyIN.size(Ya9w), 1)\n fKBJ = YKHO.camera.fiducialMarks.reshape(oyIN.size(YKHO.camera.fiducialMarks), 1)\n exwG = int(len(Ya9w))\n P6bq = 6\n k... | [
"0.60023314",
"0.5932807",
"0.5920514",
"0.5843368",
"0.58112794",
"0.57958204",
"0.5776637",
"0.573947",
"0.5736349",
"0.5707544",
"0.5702388",
"0.5691359",
"0.5680941",
"0.5660144",
"0.5651713",
"0.5644874",
"0.56244063",
"0.55701184",
"0.55645734",
"0.5539961",
"0.5539685"... | 0.56527215 | 14 |
Compute observation vector for solving the exterior orientation parameters of a single image based on their approximate values | def Su2X(YKHO, yCYR):
exwG = yCYR.shape[0]
v8j0 = yCYR[:, 0] - YKHO.exteriorOrientationParameters[0]
rKIL = yCYR[:, 1] - YKHO.exteriorOrientationParameters[1]
R5Nm = yCYR[:, 2] - YKHO.exteriorOrientationParameters[2]
Wmt4 = oyIN.vstack([v8j0, rKIL, R5Nm])
rAUn = oyIN.dot(YKHO.rotationMatrix_RzRy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNbV(Jsb0, yGTL):\n return jbYn * oyIN.sqrt(Jsb0 * (Jsb0 + 2.0 * yGTL * CRKn)) / (Jsb0 + yGTL * CRKn)",
"def vLtb(YKHO, Ya9w):\n Ya9w = Ya9w.reshape(oyIN.size(Ya9w), 1)\n fKBJ = YKHO.camera.fiducialMarks.reshape(oyIN.size(YKHO.camera.fiducialMarks), 1)\n exwG = int(len(Ya9w))\n P6bq = 6\n k... | [
"0.600269",
"0.5934908",
"0.5921452",
"0.58419925",
"0.58109325",
"0.5797084",
"0.5777378",
"0.57385683",
"0.57354975",
"0.57078993",
"0.5702315",
"0.5689945",
"0.5679907",
"0.5660313",
"0.5653539",
"0.5650662",
"0.56459534",
"0.5623185",
"0.55718786",
"0.55647194",
"0.553900... | 0.0 | -1 |
Create a new Logger. | def FIMM(YKHO, qaEx, SlI3=True, jRxN=False):
YKHO.file_path = qaEx
YKHO.print_too = SlI3
if jRxN:
if Hy7s.path.exists(qaEx):
print('Overriding - deleting previous log...')
Hy7s.remove(qaEx)
Hy7s.makedirs(Hy7s.path.dirname(qaEx), exist_ok=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmAE() -> G9jH.Logger:\n pass",
"def lmAE():\n global logger\n bo34 = G9jH.getLogger(E70h)\n uaPq = G9jH.Formatter(fmt='%(asctime)s %(levelname)s %(message)s')\n DCgT = G9jH.StreamHandler()\n DCgT.setFormatter(uaPq)\n bo34.addHandler(DCgT)\n return bo34",
"def lmAE():\n G9jH.basi... | [
"0.82856834",
"0.7896472",
"0.77731115",
"0.7539057",
"0.7495882",
"0.7493682",
"0.7396028",
"0.73747236",
"0.7198107",
"0.71252424",
"0.71039444",
"0.7093442",
"0.7016825",
"0.69982064",
"0.6978802",
"0.69182163",
"0.6911099",
"0.6907273",
"0.6900183",
"0.6848638",
"0.683535... | 0.0 | -1 |
Return github tag commit SHA URL as string | def B5Fg(YKHO, mf1Q):
bD7m = 'https://{}/{}/{}/commit/{}'.format(KGnI, YKHO.repo, YKHO.product, mf1Q)
return bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CdQC(ytgA: str) -> str:\n return f'https://github.com/pantsbuild/pants/blob/release_{OPxt}/{ytgA}'",
"def GS8c(YKHO):\n return YKHO.github.replace('.git', '')",
"def waKH(boHx):\n return 'https://github.com/' + boHx",
"def nKyW(YKHO: Self, cRgY: str, pmON: str, gLi5: int | None=None) -> str:\n ... | [
"0.71973187",
"0.69282585",
"0.6792901",
"0.6748358",
"0.66634905",
"0.6656634",
"0.6605502",
"0.6590671",
"0.65770376",
"0.6560338",
"0.6532101",
"0.65264523",
"0.6505128",
"0.6500491",
"0.6499007",
"0.64897436",
"0.63229996",
"0.6280397",
"0.6262036",
"0.6240915",
"0.619329... | 0.8073723 | 0 |
Gets the confidence of this PcrTestRecordResult. | def la9G(YKHO):
return YKHO._confidence | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la9G(YKHO) -> float:\n return YKHO._confidence",
"def la9G(YKHO) -> float:\n return float(YKHO.class_scores[YKHO.class_num])",
"def sBRS(YKHO):\n return YKHO._detection_confidence",
"def HlS4(YKHO):\n return YKHO.__medie_confidence",
"def _EbQ(YKHO):\n return YKHO.__min_confidence",
"d... | [
"0.74183095",
"0.695079",
"0.6752761",
"0.62172127",
"0.6101365",
"0.59268916",
"0.59007055",
"0.58964837",
"0.58102906",
"0.5795349",
"0.5786901",
"0.57829434",
"0.5746195",
"0.56174123",
"0.56115687",
"0.5601758",
"0.55095553",
"0.55019873",
"0.545608",
"0.5437329",
"0.5400... | 0.7580267 | 1 |
Sets the confidence of this PcrTestRecordResult. | def la9G(YKHO, la9G):
YKHO._confidence = la9G | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la9G(YKHO, la9G: float):\n YKHO._confidence = la9G",
"def la9G(YKHO, la9G):\n YKHO._confidence = la9G",
"def la9G(YKHO, la9G):\n YKHO._confidence = la9G",
"def la9G(YKHO) -> float:\n return YKHO._confidence",
"def la9G(YKHO):\n return YKHO._confidence",
"def la9G(YKHO):\n return YKH... | [
"0.73178154",
"0.72186536",
"0.72186536",
"0.64052767",
"0.624179",
"0.624179",
"0.6131234",
"0.6131234",
"0.60332805",
"0.60332805",
"0.5945399",
"0.59088707",
"0.5768737",
"0.5661176",
"0.51978236",
"0.5128352",
"0.5126153",
"0.5094373",
"0.5067891",
"0.50525135",
"0.501097... | 0.72880876 | 2 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, MdfE):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
This function returns True if userInput can be converted to a number and returns False if it cannot. | def qxtQ(ic1t):
try:
float(ic1t)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iq36(iVqJ):\n if iVqJ == '':\n return True\n try:\n float(iVqJ)\n return True\n except ValueError:\n return False",
"def srfq(YKHO, SRYB):\n try:\n int(SRYB)\n except:\n return False\n else:\n return True",
"def quAJ(YKHO):\n try:\n ... | [
"0.7273646",
"0.710573",
"0.70342",
"0.700277",
"0.6989638",
"0.69800496",
"0.6931918",
"0.68965924",
"0.68937594",
"0.68852633",
"0.6882689",
"0.68496823",
"0.6842476",
"0.6823968",
"0.68192196",
"0.68040407",
"0.679756",
"0.6784865",
"0.67602575",
"0.6758838",
"0.673784",
... | 0.86746126 | 0 |
Adds the required columns to the table and appends new records if given. | def ykws(tyNF, usx6=None):
try:
if usx6 is None:
usx6 = []
m1c7 = oyIN.dtype([('_ID', oyIN.int), ('MEAN_DEF_CNT', oyIN.float64), ('MEDIAN_DEF_CNT', oyIN.int32), ('MIN_DEF_CNT', oyIN.int32), ('MAX_DEF_CNT', oyIN.int32), ('PRI_NUM_DEF', oyIN.int32), ('SEC_NUM_DEF', oyIN.int32), ('PER_PRI',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8Dm(YKHO, JZXy):\n WfCS = JZXy.get_cols()\n SnBA = JZXy.get_types()\n GA74 = []\n Jdaw = []\n for YRbF in range(len(WfCS)):\n if WfCS[YRbF] not in YKHO.cols:\n GA74.append(WfCS[YRbF])\n Jdaw.append(SnBA[YRbF])\n YKHO.cols.extend(GA74)\n YKHO.types.extend(Jdaw)... | [
"0.6977524",
"0.66601425",
"0.6458155",
"0.63593054",
"0.6348672",
"0.63241756",
"0.63117015",
"0.62366897",
"0.62343997",
"0.6218119",
"0.61731595",
"0.61588264",
"0.60610455",
"0.6052164",
"0.6035236",
"0.60302246",
"0.5991479",
"0.59869546",
"0.5986548",
"0.5966985",
"0.58... | 0.0 | -1 |
Factory method to create a cache object from github/spilchen/baseball_id_db This is called as part of package initialization and so can be refered to via the Lookup variable. >>> from baseball_id import Lookup >>> Lookup.from_yahoo_ids([10794, 9542, 7578]) | def eLpg(Emd4):
i5iB._create_default_https_context = i5iB._create_unverified_context
Z9rn = ccBJ.Cache('https://raw.githubusercontent.com/spilchen/baseball_id_db/main/master.csv')
return Z9rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wz2l(Emd4):\n JZXy = RkCj.open_text('baseball_id', 'sample.master.csv', encoding='iso-8859-1')\n Z9rn = ccBJ.Cache(JZXy)\n return Z9rn",
"def l_xx(Emd4, KZxX, N719):\n YPaw = 0\n cqRL = []\n while YPaw < KZxX.shape[0]:\n nMvt = str(int(KZxX[YPaw, 0]))\n cqRL.append(Q3d2(nMvt, ... | [
"0.6530035",
"0.5592927",
"0.5449668",
"0.54129845",
"0.5390788",
"0.5236379",
"0.52326137",
"0.52017933",
"0.5083397",
"0.50474405",
"0.49929607",
"0.4948093",
"0.49268007",
"0.48906374",
"0.48458242",
"0.48337904",
"0.4833684",
"0.48185053",
"0.481795",
"0.4808004",
"0.4792... | 0.6934165 | 0 |
Shannon Entropy Calculates the Shannon Entropy for the given data array x. | def oqGu(WKvO, Pyrc, NkkI=False, CdxF=False):
if CdxF:
if not oyIN.isclose(sum(WKvO), 1, atol=0.0001):
raise ValueError('Probabilities in vector x do not sum up to 1.')
if WKvO.any(0):
XP5J = WKvO + 1e-15
else:
XP5J = WKvO
else:
Pyrc = oyIN.his... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vrza(YKHO, KCHu):\n tTpl = KCHu[oyIN.nonzero(KCHu)] ** 2 * oyIN.log(KCHu[oyIN.nonzero(KCHu)] ** 2)\n return oyIN.sum(tTpl)",
"def oqGu(WKvO):\n WyJz = oyIN.nonzero(WKvO)[0]\n return -oyIN.sum(WKvO[WyJz] * oyIN.log2(WKvO[WyJz]))",
"def C7Ls(YKHO, nPrm):\n oqGu = 0\n if not nPrm:\n r... | [
"0.7339232",
"0.6906172",
"0.67469835",
"0.66126776",
"0.6580351",
"0.6566007",
"0.65266234",
"0.646055",
"0.6361494",
"0.6340554",
"0.62182045",
"0.6194352",
"0.6190961",
"0.6157335",
"0.6148306",
"0.61020863",
"0.6101131",
"0.60966253",
"0.6066495",
"0.60436225",
"0.6029721... | 0.6537447 | 6 |
Cross Entropy Calculates the cross entropy of two discrete distributions x and y. | def CqbS(WKvO, LVAh, Pyrc, CdxF=False):
if CdxF:
assert len(WKvO) == len(LVAh)
if not oyIN.isclose(sum(WKvO), 1, atol=0.0001):
raise ValueError('Probabilities in vector x do not sum up to 1.')
if not oyIN.isclose(sum(LVAh), 1, atol=0.0001):
raise ValueError('Probabili... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CqbS(WKvO, LVAh):\n if len(LVAh.shape) == 1:\n return vuvg.cross_entropy(WKvO, LVAh)\n if LVAh.shape[1] == 1:\n LVAh = LVAh.squeeze(1)\n return vuvg.cross_entropy(WKvO, LVAh)\n return ht2j.mean(ht2j.div(vuvg.binary_cross_entropy_with_logits(WKvO, LVAh, reduction='none'), ht2j.sum(... | [
"0.7399793",
"0.7246357",
"0.71943384",
"0.70277774",
"0.6669306",
"0.6637702",
"0.6602384",
"0.65894943",
"0.65266645",
"0.6473503",
"0.6437216",
"0.642684",
"0.63894004",
"0.6365542",
"0.6353329",
"0.63220906",
"0.628778",
"0.6279644",
"0.62760943",
"0.6269529",
"0.62406224... | 0.7348612 | 1 |
Method for parsing CLI arguments using argparse. | def i6XR():
wvEv = j1Jz.ArgumentParser(description='Get all dependent review IDs')
wvEv.add_argument('-r', '--review-id', type=str, required=True, help='Review ID')
wvEv.add_argument('-o', '--out-file', type=str, required=False, help='The out file with the reviews IDs')
return wvEv.parse_args() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qF9x():\n wvEv = j1Jz.ArgumentParser('Generates a MANIFEST file used by the HMP2 AnADAMA2 workflows.')\n wvEv.add_argument('-b', '--broad-data-sheet', required=True, help='Broad data product status spreadsheet. Contains entries indicating new files to be processed.')\n wvEv.add_argument('-o', '--outpu... | [
"0.80792505",
"0.8012675",
"0.78432906",
"0.78108615",
"0.7765357",
"0.7751876",
"0.77110696",
"0.76705295",
"0.7647746",
"0.7644992",
"0.7644233",
"0.76380914",
"0.75653404",
"0.7562569",
"0.75440955",
"0.7535946",
"0.75321084",
"0.75190026",
"0.75150883",
"0.7505613",
"0.74... | 0.0 | -1 |
Return the distance between this WordForm and the one provided. | def Ayfi(YKHO, gcpQ, FBNX=None, bySB=None):
pImw = 0
for dQgj in range(3):
if FBNX == None or dQgj in FBNX:
if YKHO.segments[dQgj].seg_type == gcpQ.segments[dQgj].seg_type:
for RDhP in YKHO.segments[dQgj].possible_features():
if bySB == None or RDhP in byS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO):\n return YKHO.value * len(YKHO.alignment.query)",
"def Ayfi(YKHO):\n return YKHO._distance",
"def Ayfi(YKHO) -> int:\n return 0",
"def Ayfi(YKHO) -> float:\n return YKHO._dist_two_wire()",
"def zG70(YKHO) -> int:\n return YKHO.get_measurement_data().distance",
"def Ayfi(YKH... | [
"0.7310629",
"0.7117631",
"0.7048731",
"0.7045804",
"0.6998764",
"0.69940305",
"0.68218845",
"0.66140974",
"0.66028076",
"0.65679866",
"0.6541728",
"0.6533054",
"0.65226877",
"0.65203345",
"0.6491885",
"0.6491787",
"0.6487429",
"0.6487429",
"0.6478075",
"0.6459302",
"0.644873... | 0.6702924 | 7 |
Given a dictionary, converts both the keys and values of it to string and returns it. | def fW5x(Csk6: dict) -> dict:
return {str(H5ew): str(BWXx) for H5ew, BWXx in Csk6.items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dI34(cmPJ):\n if not isinstance(cmPJ, dict):\n return cmPJ\n return dict(((str(G1Hx), dI34(Ty9i)) for G1Hx, Ty9i in cmPJ.items()))",
"def RjrO(cmPJ):\n if not isinstance(cmPJ, dict):\n return cmPJ\n return dict(((str(G1Hx), RjrO(Ty9i)) for G1Hx, Ty9i in cmPJ.items()))",
"def E446(... | [
"0.8282609",
"0.8013096",
"0.79114354",
"0.7898864",
"0.7838265",
"0.77222395",
"0.7700551",
"0.75931054",
"0.75236297",
"0.74511623",
"0.7303022",
"0.727308",
"0.70777315",
"0.6990856",
"0.69411385",
"0.68564725",
"0.6851728",
"0.68371916",
"0.6835815",
"0.6810409",
"0.67745... | 0.72467685 | 12 |
Authorization header credentials are not valid | def Bjk0(YKHO, eOtH=True):
sZfS = str(qxeD.uuid4())
if eOtH:
return YKHO.credentials(HTTP_AUTHORIZATION='Token %s' % sZfS)
else:
return YKHO.credentials(HTTP_AUTHORIZATION='Basic %s' % sZfS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p_Hn():\n return c1Bu(401)",
"def Jxnw(YKHO, QePW):\n return 'Api key authentication failed.'",
"def My0H(YKHO, WCzf):\n QePW = VNUm(YKHO.environ)\n QePW.authorization = 'bad authorization header'\n QePW.body = YKHO.get_request_body()\n geh0 = YKHO.xmodule.grade_handler(QePW, '')\n VvT... | [
"0.7151656",
"0.6980444",
"0.69387716",
"0.6932599",
"0.69088596",
"0.6879544",
"0.6865807",
"0.68371814",
"0.6741195",
"0.6717008",
"0.67152405",
"0.668238",
"0.66528887",
"0.66374475",
"0.66084486",
"0.65807706",
"0.6570014",
"0.6560585",
"0.6551",
"0.65419096",
"0.65318316... | 0.63877547 | 33 |
Create and return an author for testing | def CErn(fnHH, ZZDk):
CBIr = mv1M.objects.create_user(**fnHH)
CBIr.save()
ZZDk['user'] = CBIr
taDc = o763.objects.create(**ZZDk)
taDc.save()
return (CBIr, taDc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AVOK(c9ua='testfirstname', zp3f='testlastname'):\n return o763.objects.create(first_name=c9ua, last_name=zp3f)",
"def CErn(mWFP):\n return o763.objects.create(name=mWFP)",
"def eLpg(YKHO, vGfb):\n return o763.objects.get_or_create_author(vGfb['author'])",
"def taDc(YKHO):\n return mv1M(None, ... | [
"0.79695106",
"0.7857562",
"0.7657986",
"0.746278",
"0.71505",
"0.7013657",
"0.6913632",
"0.6895028",
"0.68653756",
"0.6783304",
"0.6783304",
"0.66965",
"0.6666494",
"0.66540325",
"0.6537066",
"0.64950055",
"0.64649695",
"0.64644116",
"0.6461421",
"0.6401893",
"0.63745886",
... | 0.7088164 | 5 |
Returns the expression in infix form. | def Jwtf(YKHO):
return str(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jwtf(YKHO):\n return '(' + YKHO.leftOperand.infix() + ' ' + str(YKHO.operator) + ' ' + YKHO.rightOperand.infix() + ')'",
"def Sg3U(Emd4, lsX7):\n bo34.info(f'in the calculate infix expression {lsX7}')\n UqER = lsX7.split()\n E5BI = []\n try:\n for tTpl in UqER:\n if not tTpl.... | [
"0.820744",
"0.74909353",
"0.6935869",
"0.68716174",
"0.6740321",
"0.670735",
"0.66578454",
"0.6584289",
"0.6553258",
"0.64778376",
"0.636958",
"0.6362766",
"0.6355834",
"0.634328",
"0.6335792",
"0.6330504",
"0.6273808",
"0.62522274",
"0.62522274",
"0.62522274",
"0.624801",
... | 0.68402994 | 4 |
Returns the expression in postfix form. | def hEAh(YKHO):
return str(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtMr(YKHO, VN2L: str) -> str:\n E5BI: list[str] = []\n hlel: str = ''\n VN2L = f'({VN2L})'\n VN2L = YKHO.tokenize_expr(VN2L)\n for eOtH in VN2L:\n if eOtH == '(':\n E5BI.append('(')\n elif eOtH == ')':\n while E5BI[-1] != '(':\n hlel += f'{E5BI.... | [
"0.7961822",
"0.78936446",
"0.7821992",
"0.77166677",
"0.76865053",
"0.7469475",
"0.7190205",
"0.71594596",
"0.7055572",
"0.696866",
"0.6934861",
"0.6923071",
"0.6912573",
"0.68213874",
"0.6815801",
"0.68071514",
"0.6803007",
"0.67953223",
"0.67841136",
"0.67317486",
"0.66949... | 0.6813625 | 15 |
Returns the expression in infix form (fully parenthesized). | def Jwtf(YKHO):
return '(' + YKHO.leftOperand.infix() + ' ' + str(YKHO.operator) + ' ' + YKHO.rightOperand.infix() + ')' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTY7(vIwR):\n return hEAh(XtMr(vIwR))",
"def dQt5(YKHO, VN2L: str) -> str:\n VN2L = reversed(VN2L)\n VN2L = list(VN2L)\n for YRbF, tTpl in enumerate(VN2L):\n if tTpl == '(':\n VN2L[YRbF] = ')'\n elif tTpl == ')':\n VN2L[YRbF] = '('\n VN2L = ''.join(VN2L)\n ... | [
"0.71687776",
"0.70765674",
"0.70678484",
"0.70356464",
"0.69882065",
"0.6876605",
"0.6813432",
"0.6722101",
"0.6542399",
"0.6502566",
"0.648048",
"0.64614725",
"0.645874",
"0.63886565",
"0.63599867",
"0.632505",
"0.626854",
"0.6246395",
"0.62401587",
"0.62371445",
"0.6197802... | 0.81181073 | 0 |
Publish helm chart index to github pages | def xGMy(mWFP, ckRy, FCN7, sTKg, GbhA=''):
DpZH = s2At(*ckRy)
_9zN = '{}-{}'.format(mWFP, DpZH)
cogj(['git', 'clone', '--no-checkout', UJIA(FCN7), _9zN], echo=False)
cogj(['git', 'checkout', 'gh-pages'], cwd=_9zN)
with bxBA() as g75m:
cogj(['helm', 'package', mWFP, '--destination', g75m + '/... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPXJ(Z9rn, Tl0b='url-shortener'):\n Z9rn.run(f'helm template {Tl0b} {vEcN} > ./generated-deployment.yml')",
"def d6pt():\n return TvZl('charts.html')",
"def b8V_():\n tk5Y = bEw4(name=Hy7s.getcwd(), file='meta.json', collection='.github/jekyll')\n tk5Y.update()\n tk5Y.export_folders(True)",
... | [
"0.6303632",
"0.5992799",
"0.59895986",
"0.56986564",
"0.5615526",
"0.55472004",
"0.5513828",
"0.53691167",
"0.5364688",
"0.5286044",
"0.5263749",
"0.52587676",
"0.5251907",
"0.5230299",
"0.5216074",
"0.52005446",
"0.5190611",
"0.5182666",
"0.5175446",
"0.51723653",
"0.516488... | 0.6350673 | 0 |
Close the connection to the database Closing a connection makes it unsuitable for any further database access. This applies to all objects that may retain a reference to the connection being closed. Any uncommitted changes will be lost | def eIRW(YKHO):
if YKHO.connection is None:
return
jGRS = YKHO.postgres.disconnect(YKHO.connection)
YKHO.connection = None
return jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZlT(Emd4):\n NCls.close()",
"def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None",
"def ngVb(YKHO):\n if YKHO.cursor is None and YKHO.database is None:\n return\n YKHO.cursor.close()\n YKHO.database.close()",
"def DDI8(YKHO):\n RdP... | [
"0.84439224",
"0.83842707",
"0.8336061",
"0.8335705",
"0.83256894",
"0.8237229",
"0.81866556",
"0.8157642",
"0.8143764",
"0.8094697",
"0.80411196",
"0.7991679",
"0.7938622",
"0.7927069",
"0.7838937",
"0.7826264",
"0.780774",
"0.7779079",
"0.77731264",
"0.7767926",
"0.77654034... | 0.0 | -1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, xQQa):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
This is the view handler for the "/" url. | async def index(QePW):
return {'title': QePW.app['name'], 'intro': "Success! you've setup a basic aiohttp app."} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tk5Y(YKHO, QePW):\n return ''",
"def d6pt(bGrB):\n rPXJ = DWkG.get_template('route/home.html')\n return igJ6(rPXJ.render(cFqH({})))",
"def tk5Y(YKHO):\n return YKHO.app.get('/', headers=YKHO.headers)",
"def NMoC(YKHO):\n YKHO.response.out.write(rPXJ.render('templates/home.html', None))",
... | [
"0.6833893",
"0.68323773",
"0.68276465",
"0.6732128",
"0.6723868",
"0.67115694",
"0.670275",
"0.670275",
"0.6678917",
"0.6669672",
"0.66280764",
"0.6614279",
"0.6596165",
"0.6596165",
"0.6596165",
"0.6584849",
"0.6568513",
"0.6565733",
"0.6544685",
"0.6540552",
"0.6508354",
... | 0.0 | -1 |
Draw detected bounding boxes. | def _1rj(Xn71, _2sc, l40E, knl1=0.5):
Xn71 = Xn71[:, :, (2, 1, 0)]
LZpg, aNZO = QrM1.subplots(figsize=(12, 12))
aNZO.imshow(Xn71, aspect='equal')
for YRbF, nUPH in enumerate(l40E):
cviu = l40E[YRbF, :4]
p1kx = l40E[YRbF, -1]
aNZO.add_patch(QrM1.Rectangle((cviu[0], cviu[1]), cviu[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sGG5(YKHO, NncF, hlel):\n for YRbF, edvT in enumerate(NncF):\n if edvT[2] > hlel.shape[1] or edvT[3] > hlel.shape[0] or edvT[0] < 0 or (edvT[1] < 0):\n continue\n XC5k.rectangle(oyIN.asarray(hlel), (edvT[0], edvT[1]), (edvT[2], edvT[3]), YKHO.colors[YRbF % len(YKHO.colors)], thickne... | [
"0.77598673",
"0.7638101",
"0.7510348",
"0.72977304",
"0.7150563",
"0.7103931",
"0.7101873",
"0.7083905",
"0.7020769",
"0.6993739",
"0.6974172",
"0.69637305",
"0.6859061",
"0.68521667",
"0.68319523",
"0.6830371",
"0.6809837",
"0.6805064",
"0.67750585",
"0.6774759",
"0.6742592... | 0.0 | -1 |
checking if adding another owner from the current owner's token works as expected. | def Fy9_():
Y7Bk()
rJYx('randemail@gmail.com', 'password1234', 'Jane', 'Citizen')
cq1n = rJYx('randemail2@gmail.com', 'password1234', 'Jane', 'Citizen')
t6So = EM4i(cq1n['token'], 'Random Channel', True)
OJna = rJYx('randemail3@gmail.com', 'password1234', 'Jane', 'Citizen')
_beT(cq1n['token'], t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkC6():\n Y7Bk()\n rJYx('randemail@gmail.com', 'password1234', 'Jane', 'Citizen')\n cq1n = rJYx('randemail2@gmail.com', 'password1234', 'Jane', 'Citizen')\n t6So = EM4i(cq1n['token'], 'Random Channel', True)\n OJna = rJYx('randemail3@gmail.com', 'password1234', 'Jane', 'Citizen')\n _beT(cq1n[... | [
"0.68776894",
"0.67999893",
"0.6754783",
"0.668292",
"0.6530196",
"0.64863986",
"0.6447112",
"0.6423208",
"0.62997204",
"0.6244084",
"0.6210982",
"0.612194",
"0.61106676",
"0.60979927",
"0.6089244",
"0.5948427",
"0.59481156",
"0.59479606",
"0.59267443",
"0.5896144",
"0.584883... | 0.6017289 | 15 |
checking if owner of the flockr who is not the channel owner can add owner | def E204():
Y7Bk()
HjRf = rJYx('randemail@gmail.com', 'password1234', 'Jane', 'Citizen')
cq1n = rJYx('randemail2@gmail.com', 'password1234', 'Jane', 'Citizen')
OJna = rJYx('randemail3@gmail.com', 'password1234', 'Jane', 'Citizen')
t6So = EM4i(cq1n['token'], 'Random Channel', True)
VNaa(HjRf['tok... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hmYX():\n\n async def check(OaeV):\n if OaeV.guild:\n qsJ6 = OaeV.author == OaeV.guild.owner\n if not qsJ6:\n await OaeV.send(\"I guess you are not this server's pogchamp. Bruh.\")\n return qsJ6\n return True\n return wQcs.check(GfdN)",
"def... | [
"0.7385676",
"0.7370181",
"0.7258386",
"0.70770735",
"0.700007",
"0.69392306",
"0.6930852",
"0.6926534",
"0.6849369",
"0.6614387",
"0.6608435",
"0.65947664",
"0.65030146",
"0.6469669",
"0.6452825",
"0.64186174",
"0.63679105",
"0.6348153",
"0.6341457",
"0.6329557",
"0.6293552"... | 0.7151373 | 3 |
checking if able to remove an owner who is the last owner of the channel | def xPnz():
Y7Bk()
HjRf = rJYx('randemail@gmail.com', 'password1234', 'Jane', 'Citizen')
cq1n = rJYx('randemail2@gmail.com', 'password1234', 'Jane', 'Citizen')
t6So = EM4i(cq1n['token'], 'Random Channel', True)
VNaa(HjRf['token'], t6So['channel_id'])
E_1x(HjRf['token'], t6So['channel_id'], cq1n[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_1x(eOtH, LOJ7, lgoE):\n CmXP = p9bx.get_current_user(eOtH)\n TkZG = p9bx.get_channel_data(LOJ7)\n zDGP = p9bx.get_permission_dict(CmXP)\n FiSD = p9bx.get_permission_dict(lgoE)\n if FiSD['permission_id'] == 1:\n raise P1dF.AccessError(description='user being removed is the owner of the s... | [
"0.73305464",
"0.7195283",
"0.7129515",
"0.712579",
"0.70183945",
"0.6805983",
"0.67637455",
"0.66506666",
"0.65761715",
"0.6486065",
"0.6440695",
"0.6412174",
"0.6344784",
"0.6314831",
"0.6306158",
"0.62849295",
"0.62610173",
"0.6227882",
"0.6078866",
"0.607737",
"0.60758984... | 0.7552469 | 0 |