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 |
|---|---|---|---|---|---|---|
Width of vessel in meters. | def TVTK(YKHO) -> float:
return YKHO._width | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xiCJ(YKHO):\n f0tD = YKHO.getArea()\n u54L = YKHO.getLength()\n return f0tD / u54L",
"def TVTK(YKHO):\n return _VfD.Dimensions_width(YKHO)",
"def TVTK(YKHO):\n YKHO._updateExtents()\n return YKHO._mWidth",
"def TVTK(YKHO):\n return YKHO._width",
"def xiCJ(YKHO):\n return _VfD.Di... | [
"0.7299548",
"0.70635",
"0.69861746",
"0.69734865",
"0.6972006",
"0.69204634",
"0.6885758",
"0.6883103",
"0.68774253",
"0.6876215",
"0.6866559",
"0.68358254",
"0.68353707",
"0.68158084",
"0.6810069",
"0.6780191",
"0.67649233",
"0.67600685",
"0.675475",
"0.67534876",
"0.675348... | 0.70413023 | 2 |
Returns the actions taken (surge, rudder) over the current episode. The actions are probably normalized. | def rxOW(YKHO) -> oyIN.ndarray:
return YKHO._prev_inputs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjQW(YKHO, cb_Q, SGf8, epOr, C3ST, xACz):\n eZIr = []\n if oyIN.random.random() < SGf8:\n n_Lg, TVf3 = Q7fO(YKHO.actions)\n eZIr += [('random_action', n_Lg), ('action', TVf3)]\n else:\n kis7, Inzj = epOr.fetch_last_state()\n L2FX = cb_Q.run(C3ST.q_actions, feed_dict={C3ST.s... | [
"0.6364059",
"0.6249148",
"0.61824155",
"0.61693347",
"0.61609685",
"0.61609685",
"0.6037237",
"0.60246557",
"0.6019658",
"0.60086256",
"0.600165",
"0.59581584",
"0.591739",
"0.5917285",
"0.5900955",
"0.58999646",
"0.5874077",
"0.576354",
"0.576354",
"0.576354",
"0.5751001",
... | 0.0 | -1 |
Array containg the angles each sensor ray relative to the vessel heading. | def j1ah(YKHO) -> oyIN.ndarray:
return YKHO._sensor_angles | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bLm4(YKHO):\n YKHO._sort_measurements()\n return YKHO._angles",
"def rVdz(YKHO) -> oyIN.ndarray:\n rVnq = oyIN.arctan2(YKHO.A[1, 2], YKHO.A[2, 2])\n q7In = -oyIN.sin(YKHO.A[0, 2])\n nYlf = oyIN.arctan2(YKHO.A[0, 1], YKHO.A[0, 0])\n return oyIN.array([rVnq, q7In, nYlf])",
"def LRAy(YKHO):\... | [
"0.7016958",
"0.6909558",
"0.6893508",
"0.6864394",
"0.6793748",
"0.67041063",
"0.6692219",
"0.6638509",
"0.66264886",
"0.65301067",
"0.64589685",
"0.6456956",
"0.6438218",
"0.6359479",
"0.6352709",
"0.62833625",
"0.6273829",
"0.62136245",
"0.6208153",
"0.6202665",
"0.6166515... | 0.71208733 | 0 |
Returns the maximum progress along the path in the current episode. Can take values between 0 and 1. | def TpCe(YKHO) -> float:
return YKHO._max_progress | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZBSt(pmON):\n pmON = pmON.replace('data/', '')\n pmON = pmON.replace('goals/', '')\n D5gV = xCjU.names[pmON]()\n wvmV = D5gV.max_steps - 1\n return wvmV",
"def wvmV(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_steps')",
"def tlOG(YKHO):\n return float(YKHO.trainer_parameters['max_steps']... | [
"0.73297197",
"0.64544684",
"0.6354707",
"0.63543916",
"0.624282",
"0.6206802",
"0.61976147",
"0.61849344",
"0.6169866",
"0.60593766",
"0.60562116",
"0.60456085",
"0.59878737",
"0.5984284",
"0.5981434",
"0.59502697",
"0.59446305",
"0.5942261",
"0.59215844",
"0.59015244",
"0.5... | 0.71555537 | 1 |
Generate a new random string based on time and secret set in the options. | def Jaim(YKHO):
return B2KD('%s#%s' % (ITS7(), YKHO.app.cfg['sessions/secret'])).hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vhex():\n return f'secret.{str(qcWV.now())}'",
"def YxxQ():\n i8WE = ITS7.time()\n return '%s_%s' % (i8WE, Jv62(6, vIwR.digits))",
"def LVlv():\n KCHu = qcWV.datetime.now().strftime('%Y%m%d%H%M%S')\n return KCHu + '-{:04d}'.format(tuKI.randint(1, 9999))",
"def Vhex():\n return ''.join((... | [
"0.7288348",
"0.6942245",
"0.69355977",
"0.69098353",
"0.6879747",
"0.68468726",
"0.68439794",
"0.6820532",
"0.67946756",
"0.6768783",
"0.6663619",
"0.66245025",
"0.66134125",
"0.6525383",
"0.6522482",
"0.64752525",
"0.64635783",
"0.64498323",
"0.6445284",
"0.6442957",
"0.644... | 0.6043357 | 68 |
Plot the original image, heatmap of predicted class probabilities, and target mask. | def KVsW(VXjJ: torch.Tensor, cii7: torch.Tensor, pan_: torch.Tensor, JBMS, M1Jx, WJI9: SummaryWriter=None, jjAE=True):
Ep8u = min(12, VXjJ.shape[0])
olTx = Ep8u // 4
VXjJ = R0O3(VXjJ, 4)
JBMS = JBMS[1]
M1Jx = M1Jx[1]
VXjJ = bcW2(VXjJ.data.cpu(), mean=JBMS, std=M1Jx)
if pan_ is not None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj9G(YKHO):\n QrM1.imshow(YKHO.cm, interpolation='nearest', cmap=YKHO.cmap)\n QrM1.title(YKHO.title)\n QrM1.colorbar()\n wIWT = oyIN.arange(len(YKHO.classes))\n QrM1.xticks(wIWT, YKHO.classes, rotation=45)\n QrM1.yticks(wIWT, YKHO.classes)\n if YKHO.normalize:\n YKHO.cm = YKHO.cm.as... | [
"0.6891294",
"0.68093246",
"0.6715932",
"0.6593411",
"0.65670604",
"0.656108",
"0.6546862",
"0.65015",
"0.6477857",
"0.6468046",
"0.6451067",
"0.64251685",
"0.6397279",
"0.63954693",
"0.6388033",
"0.6332793",
"0.6326738",
"0.6322636",
"0.6311436",
"0.62949145",
"0.6287086",
... | 0.6687267 | 3 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def Ayfi(plM3, b3PE, igSk, iT5T):
plM3, b3PE, igSk, iT5T = map(Y_1E, [plM3, b3PE, igSk, iT5T])
BYW5 = iT5T - b3PE
n_9K = igSk - plM3
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(plM3) * YhSR(igSk) * YUNn(BYW5 / 2) ** 2
Z9rn = 2 * P099(PZyS(jzdc))
r8hN = 6367000 * Z9rn
return r8hN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.8145642",
"0.7864861",
"0.7633779",
"0.7606547",
"0.75978154",
"0.75965756",
"0.7594718",
"0.75721717",
"0.7563575",
"0.75563323",
"0.75293887",
"0.7517552",
"0.7494435",
"0.74680996",
"0.74525726",
"0.7434768",
"0.7392089",
"0.73589164",
"0.7348987",
"0.73317003",
"0.7329... | 0.6952209 | 61 |
Get pytz timezone object given latitude and longitude. | def Vsdc(_UuI, fopC):
ZylS = uLe1()
return FXGE.timezone(ZylS.timezone_at(lng=fopC, lat=_UuI)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EULI(FDPT, QnmL):\n FDPT = FDPT % 360.0\n FDPT = FDPT - 360 if FDPT > 180 else FDPT\n if FDPT > 180 or FDPT < -180:\n raise NotImplemented('Longitudes must be between -180 and 180')\n CstC = 'POINT(%f %f)' % (FDPT, QnmL)\n AU8u = _1kr(CstC)\n for ymua, _x49 in SE4x:\n if _x49.co... | [
"0.67936176",
"0.6750431",
"0.6226324",
"0.6128914",
"0.6119667",
"0.6103295",
"0.60568494",
"0.6012178",
"0.57484335",
"0.569708",
"0.569469",
"0.5684975",
"0.5674865",
"0.5660943",
"0.56254375",
"0.55746734",
"0.55738276",
"0.5571883",
"0.55466306",
"0.5495939",
"0.54793996... | 0.76507705 | 0 |
Returns either the awardee or the member's full name | def l9u1(YKHO):
if YKHO.member is None:
return YKHO.awardee
return YKHO.member.full_name() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y0hN(mS46):\n if mS46.nick is None:\n mWFP = mS46.name\n else:\n mWFP = mS46.nick\n if mv1M.objects.get(id=mS46.id).is_ironman:\n mWFP += ' (IM)'\n return mWFP",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def xpqj(YK... | [
"0.73488957",
"0.7261464",
"0.7178808",
"0.7146033",
"0.7134935",
"0.7115238",
"0.71145135",
"0.70939153",
"0.70884776",
"0.7074432",
"0.7056197",
"0.7048027",
"0.7044949",
"0.7043551",
"0.7043551",
"0.7030402",
"0.7010918",
"0.6984012",
"0.69702154",
"0.6970123",
"0.6967131"... | 0.83768004 | 0 |
Sampling hidden state from visible state and reconstruct visible state from hidden state. | def yjdq(YKHO, oWb2):
kCf7 = YKHO.probabilities_hidden(oWb2)
RQrb = YKHO.sample(kCf7)
Rga7 = YKHO.probabilities_visible(RQrb)
h1oF = Rga7
return (kCf7, RQrb, Rga7, h1oF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def XNFb(YKHO, nPrm):\n paGB = nPrm.shape[0]\n GoGU = oyIN.o... | [
"0.6534501",
"0.63554436",
"0.6333946",
"0.62743825",
"0.6163395",
"0.61502",
"0.6058766",
"0.60505605",
"0.60097826",
"0.59704745",
"0.5966308",
"0.5965213",
"0.5963686",
"0.59475076",
"0.5926652",
"0.5921115",
"0.5921115",
"0.5921115",
"0.5920937",
"0.5791542",
"0.5766759",... | 0.6569311 | 0 |
Computing the energy of the model. | def VYvU(YKHO, oWb2):
eA3d = ZylS.matmul(oWb2, YKHO._bias_visible)
EC58 = ZylS.matmul(oWb2, YKHO._weights) + ZylS.squeeze(YKHO._bias_hidden)
G1I4 = ZylS.reduce_sum(ZylS.math.log(1 + ZylS.exp(EC58)), axis=1)
return ZylS.reduce_mean(-G1I4 - eA3d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO):\n YKHO.E = -oyIN.sum(YKHO.phi) + 0.5 * YKHO.mass * oyIN.sqrt(YKHO.v_x ** 2 + YKHO.v_y ** 2)",
"def MI1C(YKHO):\n YRbF = YKHO.inl[0].to_flow()\n z1Rg = YKHO.outl[0].to_flow()\n epEI = (rHlu(YRbF, T0=YKHO.inl[0].T.val_SI) + rHlu(z1Rg, T0=YKHO.outl[0].T.val_SI)) / 2\n return YRbF[0] *... | [
"0.8121822",
"0.7995192",
"0.78771305",
"0.7833237",
"0.7763487",
"0.773528",
"0.77243483",
"0.75646216",
"0.75559765",
"0.75398797",
"0.7448315",
"0.74248207",
"0.7383639",
"0.73809487",
"0.7365883",
"0.7300219",
"0.72813165",
"0.7279714",
"0.72761434",
"0.7264688",
"0.72592... | 0.6501839 | 78 |
Given an end_time and a timezone for it... build and return the corresponding aware end_datetime. Update DateTimeTracker correspondingly afterwards | def u7BF(YKHO, ejIZ: str, lOE1, KhBf: datetime.date=None):
if YKHO.dt.tzinfo.zone != lOE1.zone:
cQrD = YKHO.dt.astimezone(lOE1)
else:
cQrD = YKHO.dt
kCjO = int(ejIZ[0:2])
nH09 = int(ejIZ[2:4])
if not KhBf:
KhBf = cQrD.date()
C7pn = ITS7(hour=kCjO, minute=nH09)
JyvY = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aKfz(Zsej: int, R0xY: dt.datetime=JRYC.datetime.now()) -> JRYC.datetime:\n return R0xY + JRYC.timedelta(days=Zsej)",
"def FIMM(YKHO, *qIxc, **B2fa):\n super().__init__(*qIxc, **B2fa)\n YKHO.local_tz = FXGE.timezone(gCuF.TIME_ZONE)\n YKHO.end_time = YKHO.start_time + fCoM(minutes=YKHO.duration)",
... | [
"0.58296525",
"0.575914",
"0.5488467",
"0.5438639",
"0.5426441",
"0.54148734",
"0.5386522",
"0.5376798",
"0.53601134",
"0.526317",
"0.5239543",
"0.52394307",
"0.5189775",
"0.5182552",
"0.51586515",
"0.51511514",
"0.5143428",
"0.5122173",
"0.5104445",
"0.5070197",
"0.5061339",... | 0.72165704 | 0 |
Checks if a given user has READ permission on a given namespace | def l9Y1(CBIr, _63S):
geh0 = xKrd().get('{}://{}/{}/{}'.format(PKPR, MSIF, RiJh, '/userNamespaceAuthorizations/userIds/{}/namespaces/{}').format(CBIr, _63S))
if geh0.status_code == 200:
GtGV = geh0.json()
return 'READ' in GtGV['namespacePermissions']
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B95r(QePW):\n return QePW.user.is_authenticated",
"def Xs3U(YKHO, CBIr):\n raise RXLT(True)",
"def CWUc(YKHO, _63S, CBIr):\n if not _63S.owners.filter(id=CBIr.id).count():\n raise Bx6I.PermissionDenied('The namespace listed on your filename must match one of the namespaces you have access t... | [
"0.71995556",
"0.71734613",
"0.70004433",
"0.6604134",
"0.6524117",
"0.64604485",
"0.6407858",
"0.6336592",
"0.6281944",
"0.6269588",
"0.62346065",
"0.6209889",
"0.6206937",
"0.6170513",
"0.6152513",
"0.6152187",
"0.6151709",
"0.612149",
"0.609237",
"0.6048587",
"0.5998443",
... | 0.8490019 | 0 |
Checks if a given user has SELECT privilege on a given table | def A3jt(N1p7, CBIr, uPxI, tyNF):
if CBIr == IVE2:
return
uPxI = uPxI.lower()
N1p7.execute('set role admin')
LQOL = qOhk(N1p7, 'SHOW GRANT USER {} on TABLE {}.{}'.format(CBIr, uPxI, tyNF), True)
if len(LQOL) == 0:
return False
for YmV_ in LQOL:
if 'SELECT' == YmV_[6]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TbFv(N1p7, LmAn, uPxI, tyNF):\n uPxI = uPxI.lower()\n N1p7.execute('set role admin')\n N1p7.execute('USE {}'.format(uPxI))\n LQOL = qOhk(N1p7, 'SHOW GRANT ROLE {} on TABLE {}'.format(LmAn, tyNF), True)\n if len(LQOL) == 0:\n return False\n for YmV_ in LQOL:\n if 'SELECT' == YmV_... | [
"0.76571894",
"0.6994353",
"0.63678724",
"0.6311401",
"0.618453",
"0.6076857",
"0.5957128",
"0.57485396",
"0.5740589",
"0.5719474",
"0.57084644",
"0.55783325",
"0.552981",
"0.5529078",
"0.5513197",
"0.5499006",
"0.547723",
"0.54581815",
"0.53977525",
"0.53947526",
"0.53802323... | 0.843867 | 0 |
Method to generate the laby. Transforms the .txt file into a list of lines, then each line into a list of characters. For each character it will generate a square, or set Macgyver/exit's position. | def UWxd(oyg0, exit):
with open('macgyverlaby.txt') as jsXB:
TT7m = ''.join((str(zFiD) for zFiD in jsXB))
KP6z = list(TT7m)
jsXB = []
WKvO = 0
LVAh = 0
for bTKY in KP6z:
if bTKY == 'm':
jsXB.append(_UKz(PXwx(WKvO, LVAh), True))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6M2(YKHO):\n with open(YKHO.file, 'r') as nUeQ:\n g8x2 = []\n for zFiD in nUeQ:\n oL2j = []\n for Jqc7 in zFiD:\n if Jqc7 != '\\n':\n oL2j.append(Jqc7)\n g8x2.append(oL2j)\n YKHO.structure = g8x2",
"def jsQ2(YKHO):\n ... | [
"0.6384481",
"0.59391844",
"0.5797327",
"0.5713891",
"0.57133985",
"0.5695597",
"0.5524117",
"0.55224484",
"0.55146295",
"0.5501566",
"0.5481186",
"0.5476874",
"0.5472788",
"0.5365956",
"0.5329122",
"0.53207356",
"0.53117996",
"0.52957255",
"0.5284792",
"0.52808475",
"0.52597... | 0.74996257 | 0 |
Tests search for item found and unavailable. | def uuy6(YKHO):
f605 = {'API_URL_ROOT': YKHO.api_url_root, 'API_KEY': YKHO.api_key, 'PARTNERSHIP_ID': YKHO.partnership_id, 'UNIVERSITY_CODE': YKHO.university_code, 'LOG_PATH': YKHO.LOG_PATH}
cuUy = A70z(f605)
cuUy.run_search(YKHO.patron_barcode, 'ISBN', YKHO.isbn_found_and_unavailable)
YKHO.assertEqual(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lu6C(YKHO):\n KCHu = oIP6(YKHO.logger)\n I4p_, HI6H = ('ISBN', YKHO.isbn_found_and_unavailable)\n DURG = KCHu.search(YKHO.patron_barcode, I4p_, HI6H, YKHO.api_url_root, YKHO.api_key, YKHO.partnership_id, YKHO.university_code)\n YKHO.assertEqual([u'Available', u'RequestLink', u'SearchTerm'], sorted(... | [
"0.8018395",
"0.71890247",
"0.71764255",
"0.7030243",
"0.6977662",
"0.6969089",
"0.6904887",
"0.681629",
"0.6808563",
"0.6796961",
"0.67030275",
"0.6643682",
"0.6639831",
"0.66368157",
"0.6515197",
"0.6499329",
"0.6494485",
"0.6430935",
"0.6358132",
"0.6297274",
"0.62961257",... | 0.73733974 | 1 |
Tests search for item not found. | def se1h(YKHO):
f605 = {'API_URL_ROOT': YKHO.api_url_root, 'API_KEY': YKHO.api_key, 'PARTNERSHIP_ID': YKHO.partnership_id, 'UNIVERSITY_CODE': YKHO.university_code, 'LOG_PATH': YKHO.LOG_PATH}
cuUy = A70z(f605)
cuUy.run_search(YKHO.patron_barcode, 'ISBN', YKHO.isbn_not_found)
YKHO.assertEqual({'Problem': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nYHC(YKHO):\n KCHu = oIP6(YKHO.logger)\n I4p_, HI6H = ('ISBN', YKHO.isbn_not_found)\n DURG = KCHu.search(YKHO.patron_barcode, I4p_, HI6H, YKHO.api_url_root, YKHO.api_key, YKHO.partnership_id, YKHO.university_code)\n YKHO.assertEqual({'Problem': {'ErrorCode': 'PUBFI002', 'ErrorMessage': 'No result'}... | [
"0.7829702",
"0.749001",
"0.74181086",
"0.7389959",
"0.72843266",
"0.71713054",
"0.7092081",
"0.7072373",
"0.7055071",
"0.6880571",
"0.68507904",
"0.6829939",
"0.68077207",
"0.6632664",
"0.6615246",
"0.65996975",
"0.65903574",
"0.6561538",
"0.65032244",
"0.64801717",
"0.64401... | 0.73144275 | 4 |
Tests manager requesting on notfound item. Note that this will really attempt the request. | def KfWu(YKHO):
f605 = {'API_URL_ROOT': YKHO.api_url_root, 'API_KEY': YKHO.api_key, 'PARTNERSHIP_ID': YKHO.partnership_id, 'UNIVERSITY_CODE': YKHO.university_code, 'PICKUP_LOCATION': YKHO.pickup_location, 'LOG_PATH': YKHO.LOG_PATH}
cuUy = A70z(f605)
cuUy.run_request_item(YKHO.patron_barcode, 'ISBN', YKHO.is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _DYy(YKHO):\n _hkX = YKHO.app.get('/items/0')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_404_NOT_FOUND)",
"def _aBP(YKHO):\n Mkmy = lyzZ(YKHO.logger)\n I4p_, HI6H = ('ISBN', YKHO.isbn_not_found)\n DURG = Mkmy.request_item(YKHO.patron_barcode, I4p_, HI6H, YKHO.pickup_location, YKHO.api_url_... | [
"0.7736214",
"0.76214814",
"0.684548",
"0.6831218",
"0.68054146",
"0.6801467",
"0.67217314",
"0.6690045",
"0.6680714",
"0.6573519",
"0.6561619",
"0.6533151",
"0.6458568",
"0.64272666",
"0.6382908",
"0.6374065",
"0.6329962",
"0.62946355",
"0.6291485",
"0.6257982",
"0.62516975"... | 0.7434154 | 2 |
Tests basic isbn search for unavailable found item. | def lu6C(YKHO):
KCHu = oIP6(YKHO.logger)
I4p_, HI6H = ('ISBN', YKHO.isbn_found_and_unavailable)
DURG = KCHu.search(YKHO.patron_barcode, I4p_, HI6H, YKHO.api_url_root, YKHO.api_key, YKHO.partnership_id, YKHO.university_code)
YKHO.assertEqual([u'Available', u'RequestLink', u'SearchTerm'], sorted(DURG.keys... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfWu(YKHO):\n f605 = {'API_URL_ROOT': YKHO.api_url_root, 'API_KEY': YKHO.api_key, 'PARTNERSHIP_ID': YKHO.partnership_id, 'UNIVERSITY_CODE': YKHO.university_code, 'PICKUP_LOCATION': YKHO.pickup_location, 'LOG_PATH': YKHO.LOG_PATH}\n cuUy = A70z(f605)\n cuUy.run_request_item(YKHO.patron_barcode, 'ISBN',... | [
"0.71568733",
"0.71375215",
"0.71078074",
"0.70965296",
"0.69709545",
"0.68349105",
"0.66931206",
"0.6606826",
"0.6538037",
"0.65102106",
"0.63279444",
"0.6320771",
"0.6181923",
"0.61090755",
"0.5986501",
"0.5943237",
"0.5779287",
"0.5777104",
"0.5773757",
"0.5713782",
"0.569... | 0.7520346 | 0 |
Tests basic isbn request for notfound item. | def _aBP(YKHO):
Mkmy = lyzZ(YKHO.logger)
I4p_, HI6H = ('ISBN', YKHO.isbn_not_found)
DURG = Mkmy.request_item(YKHO.patron_barcode, I4p_, HI6H, YKHO.pickup_location, YKHO.api_url_root, YKHO.api_key, YKHO.partnership_id, YKHO.university_code)
YKHO.assertEqual({'Problem': {'ErrorCode': 'PUBRI003', 'ErrorMes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfWu(YKHO):\n f605 = {'API_URL_ROOT': YKHO.api_url_root, 'API_KEY': YKHO.api_key, 'PARTNERSHIP_ID': YKHO.partnership_id, 'UNIVERSITY_CODE': YKHO.university_code, 'PICKUP_LOCATION': YKHO.pickup_location, 'LOG_PATH': YKHO.LOG_PATH}\n cuUy = A70z(f605)\n cuUy.run_request_item(YKHO.patron_barcode, 'ISBN',... | [
"0.809304",
"0.7167015",
"0.6983698",
"0.6961759",
"0.68072677",
"0.6759586",
"0.6579298",
"0.65318906",
"0.65110666",
"0.6450708",
"0.6399753",
"0.6366054",
"0.63500774",
"0.6340973",
"0.6292489",
"0.62702876",
"0.6234978",
"0.6196849",
"0.61744386",
"0.61652654",
"0.6138202... | 0.8290618 | 0 |
A reimplementation of accessible pk queryset for the "normal" unified JTs. Does not return inventory sources or system JTs, these should be handled inside of get_queryset where it is utilized. | def o5VU(Emd4, CU1e, pSaF):
if Emd4 != LQ_L:
return super(LQ_L, Emd4).accessible_pk_qs(CU1e, pSaF)
return lXEU._accessible_pk_qs(Emd4, CU1e, pSaF, content_types=Emd4._submodels_with_roles()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f2DS(YKHO):\n return ((z1Rg.id, z1Rg) for z1Rg in YKHO._queryset())",
"def HI6K(YKHO):\n return YKHO.type.objects.filter(id__in=YKHO.ids)",
"def SR0I(YKHO, QePW, SR0I):\n return SR0I if YKHO.value() is None else SR0I.filter(instrument__id=YKHO.value())",
"def k66M(YKHO):\n H0q3 = super(wbEy, ... | [
"0.6129872",
"0.5813205",
"0.56689954",
"0.5538362",
"0.55228454",
"0.55075806",
"0.5485429",
"0.54546946",
"0.54523325",
"0.5443754",
"0.5436462",
"0.5400819",
"0.53958815",
"0.53685564",
"0.5366976",
"0.53633326",
"0.53610146",
"0.53562343",
"0.5350868",
"0.53381896",
"0.53... | 0.6442074 | 0 |
This method returns a filelike object ready to be read which contains all stdout for the UnifiedJob. If the size of the file is greater than `settings.STDOUT_MAX_BYTES_DISPLAY`, a StdoutMaxBytesExceeded exception will be raised. | def k_tr(YKHO, ZGtz=True):
IqTh = gCuF.STDOUT_MAX_BYTES_DISPLAY
if ZGtz:
Gcbu = kJm3()
else:
if not Hy7s.path.exists(gCuF.JOBOUTPUT_ROOT):
Hy7s.makedirs(gCuF.JOBOUTPUT_ROOT)
Gcbu = gbPf.NamedTemporaryFile(mode='w', prefix='{}-{}-'.format(YKHO.model_to_str(), YKHO.pk), suf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0k1(YKHO):\n bGrB = YKHO.get()\n if YKHO._stdout is not None:\n if URLg(YKHO._stdout):\n with open(YKHO._stdout) as eHNT:\n YKHO._out = eHNT.read()\n return YKHO._out",
"def ydaO(YKHO):\n YKHO._is_launched.wait()\n wKQE = iter(YKHO._popen.stdout.readline, b'')... | [
"0.5871149",
"0.5525514",
"0.5501839",
"0.54867613",
"0.5395682",
"0.53367585",
"0.53367585",
"0.53367585",
"0.53367585",
"0.5307945",
"0.52621764",
"0.51016444",
"0.507231",
"0.50648206",
"0.50240415",
"0.50096893",
"0.498653",
"0.49732062",
"0.49674836",
"0.49123088",
"0.48... | 0.73263097 | 0 |
Returns True if dispatcher running this job acknowledged request and sent SIGTERM | def A6dv(YKHO):
if not YKHO.celery_task_id:
return
c53o = []
try:
vYBr = 5
c53o = wsCm('dispatcher', YKHO.controller_node).cancel([YKHO.celery_task_id])
except GGmw.timeout:
bo34.error(f'could not reach dispatcher on {YKHO.controller_node} within {vYBr}s')
except Exce... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A7Ja(YKHO):\n return YKHO._terminate.isSet()",
"def NSD8(YKHO) -> bool:\n return YKHO.terminate",
"def F4Wu(YKHO, bGrB):\n if YKHO._shutdown_event.is_set():\n raise tOKe('Unable to process message - currently shutting down')",
"def HX9S(YKHO):\n return not YKHO._kill_event.is_set()",
... | [
"0.67554474",
"0.64415896",
"0.6369764",
"0.6269525",
"0.61635363",
"0.6120694",
"0.61162776",
"0.6061043",
"0.60353684",
"0.60035914",
"0.59770304",
"0.59689724",
"0.593686",
"0.58462846",
"0.5832207",
"0.5817955",
"0.58103335",
"0.57641995",
"0.5748771",
"0.57455665",
"0.57... | 0.0 | -1 |
Tests whether ``Resolved.__repr__`` works as intended. | def KnBW():
g2g3 = 202211050036
s5jr = vKIi.precreate(g2g3)
YwkQ = DIz8.precreate(g2g3)
LmAn = FxgQ.precreate(g2g3)
Ol8d = LuKW.precreate(g2g3)
CBIr = mv1M.precreate(g2g3)
s2ni = sGlv(attachments=[s5jr], channels=[YwkQ], roles=[LmAn], messages=[Ol8d], users=[CBIr])
Qg87.assert_instance(r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4zp(YKHO, Mkmy, sWfS):\n assert repr(Mkmy) == sWfS",
"def H4zp():\n Z9rn = Lr0q(4)\n assert Z9rn.__repr__() == 'Circle(4)'",
"def H4zp(YKHO):\n YKHO.assertEqual(repr(YKHO.card), 'A of Spades')",
"def yrtM(Emd4) -> bool:\n raise NotImplementedError",
"def H4zp(YKHO):\n Vo9x = yp3N()\n... | [
"0.76464975",
"0.7243855",
"0.7176626",
"0.7151514",
"0.70843065",
"0.7072185",
"0.7059306",
"0.69031",
"0.6782615",
"0.67780906",
"0.6754082",
"0.67105484",
"0.6694708",
"0.6673053",
"0.65794456",
"0.65352595",
"0.65005285",
"0.6487848",
"0.64836925",
"0.6434913",
"0.6429339... | 0.67346865 | 11 |
Tests whether ``Resolved.__eq__`` works as intended. | def K3iE():
g2g3 = 202211050038
s5jr = vKIi.precreate(g2g3)
YwkQ = DIz8.precreate(g2g3)
LmAn = FxgQ.precreate(g2g3)
Ol8d = LuKW.precreate(g2g3)
CBIr = mv1M.precreate(g2g3)
nURT = {'attachments': [s5jr], 'channels': [YwkQ], 'roles': [LmAn], 'messages': [Ol8d], 'users': [CBIr]}
s2ni = sGlv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def whu6(YKHO):\n pass",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"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 ... | [
"0.68777514",
"0.6852498",
"0.6852498",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
"0.68428284",
... | 0.0 | -1 |
Calculate a reduced influence coefficient matrix from a complete influence coefficient matrix. | def ICKU(gHfI):
dkYO = oyIN.shape(gHfI)
zYZ7 = dkYO[0] * dkYO[1]
eeBk = oyIN.zeros((zYZ7, zYZ7))
ewCu = 0
for YRbF in range(0, dkYO[0]):
for r845 in range(0, dkYO[1]):
eeBk[ewCu, :] = oyIN.reshape(gHfI[YRbF, r845, :, :], zYZ7)
ewCu += 1
return eeBk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tUQj(YKHO):\n GyLV = aLMY()\n for YRbF in range(YKHO._height):\n O_6X = list()\n for r845 in range(YKHO._width):\n O_6X.append(YKHO.cofactor(YRbF, r845))\n GyLV.addRow(*O_6X)\n return GyLV",
"def aGNk(N4a3, lziW, dO17):\n HiEr = oyIN.zeros(lziW)\n d6pt = N4a3.in... | [
"0.59304214",
"0.5929222",
"0.5812368",
"0.58077896",
"0.5765094",
"0.5695201",
"0.5688761",
"0.5669813",
"0.5577388",
"0.5560173",
"0.55368185",
"0.55104",
"0.54747885",
"0.5453567",
"0.54345644",
"0.54046273",
"0.5401262",
"0.53838986",
"0.53227013",
"0.53210837",
"0.531964... | 0.4954746 | 56 |
Generate a complete influence coefficient matrix as required for boundary element contact mechanics calculations. | def Y5cF(PPHi, HmAy, CHEv):
lnFo = len(PPHi)
o9Bw = len(HmAy)
ywSm = oyIN.zeros((lnFo, o9Bw, lnFo, o9Bw))
AkaT = (PPHi[-1] - PPHi[0]) / (lnFo - 1) / 2
_B67 = (HmAy[-1] - HmAy[0]) / (o9Bw - 1) / 2
jGa_ = GKJC(PPHi)
fXrx = GKJC(HmAy)
mp7Y = d_5N.evaluate('x_grid + a_factor')
B2ml = d_5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tUQj(YKHO):\n GyLV = aLMY()\n for YRbF in range(YKHO._height):\n O_6X = list()\n for r845 in range(YKHO._width):\n O_6X.append(YKHO.cofactor(YRbF, r845))\n GyLV.addRow(*O_6X)\n return GyLV",
"def KupS(YKHO):\n Y7fn = 0\n O5iP = 0\n g_QQ = YKHO.width()\n Jb... | [
"0.6481157",
"0.62562436",
"0.62488186",
"0.6240849",
"0.6116911",
"0.6077862",
"0.6050431",
"0.5964872",
"0.58841085",
"0.584239",
"0.57857436",
"0.5780283",
"0.5766078",
"0.57503134",
"0.5738815",
"0.5725279",
"0.571975",
"0.57022685",
"0.57014185",
"0.5694971",
"0.56781244... | 0.539125 | 57 |
Returns value for the environment variable | def NMoC(YKHO):
return YKHO.match.group('value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n YKHO.value = Hy7s.getenv(YKHO.name, YKHO.default)\n return YKHO.value",
"def TYk2(XuY2: str) -> str:\n if XuY2 in Hy7s.environ.keys():\n return Hy7s.environ[XuY2]",
"def VTiq(YKHO, mWFP):\n if not Hy7s.environ.has_key(mWFP):\n return None\n return Hy7s.environ[mWF... | [
"0.8029504",
"0.79075146",
"0.78773695",
"0.78602374",
"0.7785148",
"0.7772786",
"0.77047604",
"0.7533139",
"0.749595",
"0.7345182",
"0.73212856",
"0.7286622",
"0.72648054",
"0.7253057",
"0.7250981",
"0.7249198",
"0.7216375",
"0.71715677",
"0.7159809",
"0.7140047",
"0.7137754... | 0.0 | -1 |
Allow setting many envs at a time. | def sFFJ(YKHO, QUTX: Dict[str, str]):
iWnM = []
for mWFP, BWXx in QUTX.items():
iWnM.append(f'{mWFP}={BWXx}')
bo34.info('Setting env %s=%s in %s', mWFP, BWXx, YKHO.deployment_name)
YKHO.openshift.do_action('set', ['env', YKHO.resource_type, YKHO.deployment_name, iWnM])
YKHO.wait_for_reso... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QUTX(YKHO, QUTX):\n YKHO._instructions_setter('ENV', QUTX)",
"def NquT(YKHO):\n for G1Hx, Ty9i in BfDw.slurm_envs(WmM4.SBATCH_VARS_FOR_WORKFLOW).items():\n setattr(YKHO, G1Hx, Ty9i)",
"def i3lT(YKHO):\n for mWFP, BWXx, XLMv in YKHO._marchConfig():\n rqvd = YKHO._get_param_name(mWFP, ... | [
"0.7537119",
"0.6550076",
"0.6537088",
"0.6504986",
"0.6190689",
"0.6136109",
"0.6088526",
"0.6082753",
"0.60640764",
"0.60571617",
"0.6020056",
"0.6014825",
"0.59957194",
"0.5991743",
"0.5965301",
"0.5945593",
"0.59423506",
"0.5932325",
"0.5928465",
"0.5924925",
"0.5896044",... | 0.76120794 | 0 |
The function takes a sentence and count the words, first take out the escape codes and then split the words. | def t7hl(A0cm):
aZX3 = A0cm.replace('\n', ' ')
aZX3 = aZX3.split(' ')
cmPJ = {}
for YRbF in aZX3:
if YRbF != '':
cmPJ[YRbF] = aZX3.count(YRbF)
return cmPJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AjMb(yAmx):\n V22M = []\n YHNB = 0\n u54L = len(yAmx)\n V_8U = 0\n while V_8U < u54L:\n Npgh = ' '\n while V_8U < u54L:\n Npgh = yAmx[V_8U]\n if Npgh > ' ':\n break\n V_8U += 1\n if V_8U >= u54L:\n break\n if ... | [
"0.68360895",
"0.67470264",
"0.6646266",
"0.66386414",
"0.6576101",
"0.65191495",
"0.64899343",
"0.64739996",
"0.6459389",
"0.6425281",
"0.64024675",
"0.63711226",
"0.63393295",
"0.6333911",
"0.63288033",
"0.6313574",
"0.62990534",
"0.62961227",
"0.627172",
"0.6271076",
"0.62... | 0.59350085 | 72 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(Mkmy):
Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
Mkmy.headers['Pragma'] = 'no-cache'
Mkmy.headers['Expires'] = '0'
Mkmy.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
Mkmy.headers['Cache-Control'] = 'public, max-age=0'
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.82229227",
"0.8222085",
"0.8222085",
"0.8222085",
"0.8222085",
"0.819543",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"0.8162872",
"... | 0.7661059 | 37 |
Convert a datetime.timedelta object into Days, Hours, Minutes, Seconds. | def uk6m(S378):
if not S378:
return '---'
lcOE = S378.total_seconds()
cDWY = ''
if lcOE > 86400:
Sm0u = lcOE // 86400
cDWY += '{} days'.format(int(Sm0u))
lcOE = lcOE - Sm0u * 86400
if lcOE > 3600:
zbR6 = lcOE // 3600
cDWY += ' {} hours'.format(int(zbR6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i2Ct(ZfUD):\n if isinstance(ZfUD, fCoM):\n C6wh = int(ZfUD.total_seconds())\n Wave, K0A_ = divmod(C6wh, 3600)\n O66n, C6wh = divmod(K0A_, 60)\n p7fT = '{}h {}m {}s'.format(Wave, O66n, C6wh)\n else:\n raise TypeError(ZfUD, 'is not timedelta object')\n return p7fT",
... | [
"0.723899",
"0.71328026",
"0.6774715",
"0.6733618",
"0.66779184",
"0.6622992",
"0.6567872",
"0.65264505",
"0.6513849",
"0.6478437",
"0.6447721",
"0.6446586",
"0.6430813",
"0.64186895",
"0.6371977",
"0.6365604",
"0.6361276",
"0.6341838",
"0.6338272",
"0.63255066",
"0.6325211",... | 0.68995523 | 2 |
Caches the given post in the user's timeline. The post is inserted reverse chronologically. | def sR6s(Q74b):
eHNY = PvBj.get_timeline()
d6pt = [eHNY.index(jGRS) for jGRS in eHNY if hfK9(jGRS['pubdate']) < hfK9(Q74b['pubdate'])]
if len(d6pt) == 0:
eHNY.insert(0, Q74b)
else:
eHNY.insert(d6pt[0], Q74b)
if len(eHNY) > 1000:
eHNY = eHNY[0:999]
PI6f(PvBj.cache_file_loc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWem(YKHO, m8z6):\n with open(YKHO.cache_filename, 'w') as LwUv:\n qQXR.dump(m8z6['id'], LwUv)",
"def beQF(m8z6):\n bGZr = ''\n try:\n T8qx = m8z6.category_post_image_name + '.' + str(H2Co.what(m8z6.category_post_image))\n Vb5F = GTMl(location=gCuF.IMAGE_USER)\n Ux0P = Vb... | [
"0.6897148",
"0.56462574",
"0.56285316",
"0.56207824",
"0.54824287",
"0.5409037",
"0.5375541",
"0.5374787",
"0.53701055",
"0.5333687",
"0.5332967",
"0.53082865",
"0.5307745",
"0.52751726",
"0.5271335",
"0.52648944",
"0.5238627",
"0.52123165",
"0.5210372",
"0.5209396",
"0.5156... | 0.48121765 | 58 |
Removes the post with the given status_id from the user's cached timeline. | def WqVH(mJH4):
eHNY = [jGRS for jGRS in PvBj.get_timeline if jGRS['guid'] != mJH4]
PI6f(PvBj.cache_file_location, 'timeline', rJ29) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def rndactivity_remove(YKHO, OaeV: commands.Context, jGRS: int):\n async with YKHO.config.statuses() as kL40:\n if len(kL40) < jGRS:\n return await FMLJ(OaeV, pEH_(bGrB('No status with the ID `{id}` exists')), id=jGRS)\n eSnm = kL40.pop(jGRS - 1)\n if not kL40:\n ... | [
"0.63384604",
"0.6262617",
"0.60500157",
"0.5950372",
"0.58491564",
"0.5804031",
"0.57429415",
"0.5669231",
"0.5555525",
"0.55456287",
"0.5526256",
"0.55195045",
"0.546012",
"0.5433655",
"0.540426",
"0.5381575",
"0.537297",
"0.5371668",
"0.53704596",
"0.53596425",
"0.5359539"... | 0.7689713 | 0 |
Returns the first value of a list or the value itself when given a `request.vars` style key. If the value is a list, its first item will be returned; otherwise, the value will be returned asis. | def UiMu(YKHO, H5ew, WmM4=None):
hkxX = YKHO.getlist(H5ew)
return hkxX[0] if hkxX else WmM4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UiMu(KCHu):\n return KCHu[0] if isinstance(KCHu, list) else KCHu",
"def rnLc(H5ew, hkxX, wBee=False):\n YRbF, r845 = (1, 0) if not wBee else (0, 1)\n for TpU3 in hkxX:\n if TpU3[YRbF] == H5ew:\n return TpU3[r845]\n return None",
"def Lmtv(qIxc, H5ew):\n if not qIxc:\n ... | [
"0.59930444",
"0.5962821",
"0.5950862",
"0.566413",
"0.5629889",
"0.56125337",
"0.55779874",
"0.55760497",
"0.55736816",
"0.5516245",
"0.5492377",
"0.5440507",
"0.5323764",
"0.5237315",
"0.52180666",
"0.5205747",
"0.5200182",
"0.5199856",
"0.51979053",
"0.518327",
"0.51650953... | 0.6196312 | 0 |
select an element randomly from a lis | def w9st(lDFP):
return lDFP[ajWY(0, len(lDFP) - 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uu03(yv6U):\n Acvy = tuKI.randint(0, len(yv6U) - 1)\n return yv6U[Acvy]",
"def Acvy(aPd6):\n vvjl = len(aPd6)\n UWug = int(vvjl * tuKI())\n return aPd6[UWug]",
"def tHgn(list):\n return tuKI.choice(list)",
"def U4eP(YKHO, vC9B):\n if len(vC9B) == 0:\n return -1\n return vC9... | [
"0.75144416",
"0.74923056",
"0.71464497",
"0.71230614",
"0.71152055",
"0.6928507",
"0.69022536",
"0.6857503",
"0.6849486",
"0.6810723",
"0.678612",
"0.67699593",
"0.6747843",
"0.6747843",
"0.6747843",
"0.6747843",
"0.6721026",
"0.6712398",
"0.6599632",
"0.6583839",
"0.6541563... | 0.7449069 | 2 |
select an element randomly from a list excluding the given one | def OHxQ(lDFP, c4yI):
f0Tu = w9st(lDFP)
while f0Tu == c4yI:
f0Tu = w9st(lDFP)
return f0Tu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uu03(yv6U):\n Acvy = tuKI.randint(0, len(yv6U) - 1)\n return yv6U[Acvy]",
"def OlUV(fUYa):\n exwG = len(fUYa) - 1\n YRbF = ajWY(0, exwG)\n return fUYa[YRbF]",
"def lnM1(Wo3y):\n return tuKI.choice(Wo3y)",
"def aPTa(AtKC):\n if len(AtKC) == 2:\n return AtKC[0] if int(tuKI(2)) e... | [
"0.7403675",
"0.7220092",
"0.70141333",
"0.69315976",
"0.68790174",
"0.68679357",
"0.68245864",
"0.6769756",
"0.6721893",
"0.67211175",
"0.6683685",
"0.66006804",
"0.6559623",
"0.65436554",
"0.6533628",
"0.6527482",
"0.6490424",
"0.6468462",
"0.6448325",
"0.6430817",
"0.63958... | 0.6143613 | 40 |
generates random sublist from a list without replacemment | def o1Li(lDFP, mLGw):
lLaZ(mLGw, len(lDFP), 'size of sublist to be sampled greater than or equal to main list')
YRbF = ajWY(0, len(lDFP) - 1)
iz5W = lDFP[YRbF]
_ftC = {YRbF}
VGY6 = [iz5W]
while len(_ftC) < mLGw:
YRbF = ajWY(0, len(lDFP) - 1)
if YRbF not in _ftC:
iz5W ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ASxs(lDFP, mLGw):\n return list(map(lambda YRbF: w9st(lDFP), range(mLGw)))",
"def tHgn(list):\n return tuKI.choice(list)",
"def w6Jh(vC9B: list, zNig: int) -> list:\n cntZ = ajWY(0, len(vC9B) - zNig)\n return vC9B[cntZ:cntZ + zNig]",
"def BV7u(exwG):\n JTgH = list(range(exwG))\n tuKI.sh... | [
"0.76314026",
"0.7582477",
"0.7421406",
"0.6964384",
"0.692715",
"0.6860676",
"0.68375623",
"0.68250865",
"0.67940235",
"0.6744911",
"0.67142886",
"0.6696584",
"0.66773117",
"0.6672385",
"0.6670478",
"0.66464764",
"0.6643001",
"0.6611635",
"0.66012007",
"0.6593617",
"0.658838... | 0.7163945 | 3 |
generates random sublist from a list with replacemment | def ASxs(lDFP, mLGw):
return list(map(lambda YRbF: w9st(lDFP), range(mLGw))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tHgn(list):\n return tuKI.choice(list)",
"def w6Jh(vC9B: list, zNig: int) -> list:\n cntZ = ajWY(0, len(vC9B) - zNig)\n return vC9B[cntZ:cntZ + zNig]",
"def ZiK1(vC9B, yKcO, Os4s):\n vC9B[yKcO:Os4s] = sorted(vC9B[yKcO:Os4s], key=lambda WKvO: tuKI.random())\n return vC9B",
"def o1Li(lDFP, m... | [
"0.7353521",
"0.68763447",
"0.6822858",
"0.6577555",
"0.65426594",
"0.65049654",
"0.64765465",
"0.6476462",
"0.6459007",
"0.6443692",
"0.6338879",
"0.63366365",
"0.63103604",
"0.6306718",
"0.629345",
"0.6283552",
"0.6275224",
"0.6269632",
"0.6262004",
"0.62601686",
"0.6253910... | 0.74972445 | 0 |
sets some elents in the first list randomly with elements from the second list | def Hw5P(lDFP, kmv4):
vC9B = len(lDFP)
_ftC = set()
for Csk6 in kmv4:
YRbF = ajWY(0, vC9B - 1)
while YRbF in _ftC:
YRbF = ajWY(0, vC9B - 1)
lDFP[YRbF] = Csk6
_ftC.add(YRbF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TNef(Kt9y, I_KI, DbxN=0):\n oyIN.random.seed(seed=DbxN)\n oyIN.random.shuffle(Kt9y)\n oyIN.random.seed(seed=DbxN)\n oyIN.random.shuffle(I_KI)",
"def FTFp(p9uc, ODx9):\n EBgd = ajWY(0, len(p9uc) - 1)\n HpuQ = ajWY(0, len(ODx9) - 1)\n jbXL = p9uc[EBgd]\n p9uc[EBgd] = ODx9[HpuQ]\n ODx... | [
"0.76853144",
"0.71410125",
"0.70643985",
"0.65418375",
"0.6471022",
"0.6459093",
"0.6302327",
"0.6270351",
"0.6222225",
"0.62209797",
"0.6202239",
"0.61605257",
"0.6154705",
"0.60853446",
"0.59724885",
"0.5927701",
"0.58773077",
"0.5862317",
"0.5833291",
"0.5750147",
"0.5738... | 0.66022635 | 3 |
splits a list into sub lists of approximately equal size, with items in sublists randomly chod=sen | def RWYF(zmhF, lmyU):
HJTh = len(zmhF)
WCYq = list(zmhF)
Rv0k = int(len(WCYq) / lmyU)
moMn = list()
UHFx = 0
for YRbF in range(lmyU):
if YRbF == lmyU - 1:
Wqvb = HJTh - UHFx
else:
Wqvb = Rv0k + ajWY(-2, 2)
UHFx += Wqvb
rrLg = list()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ai6k(nPrm, UOrz=2):\n U5bT = [[] for YRbF in range(UOrz)]\n for ZfUD in nPrm:\n U5bT[tuKI.randrange(UOrz)].append(ZfUD)\n return U5bT",
"def Qrt_(qgK3: list, exwG: int):\n KG5z = jth9.deepcopy(qgK3)\n tuKI.shuffle(KG5z)\n if len(qgK3) > exwG:\n return [KG5z[YRbF::exwG] for YRb... | [
"0.69467145",
"0.68404555",
"0.6809988",
"0.6672847",
"0.6657127",
"0.65283084",
"0.649177",
"0.64286476",
"0.64183015",
"0.6399493",
"0.63903284",
"0.6389243",
"0.6367187",
"0.6364535",
"0.6266029",
"0.6258166",
"0.62371975",
"0.62260824",
"0.61997783",
"0.61996883",
"0.6198... | 0.73824614 | 0 |
extracts list from another list, given indices | def bILz(nPrm, _0VL):
if yT7Y(nPrm, _0VL):
yTZt = nPrm.copy()
else:
yTZt = list()
LJE9 = len(nPrm)
for YRbF in _0VL:
assert YRbF < LJE9, 'index {} out of bound {}'.format(YRbF, LJE9)
yTZt.append(nPrm[YRbF])
return yTZt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ucag(qFa0, _0VL):\n return [qFa0[P2GO] for P2GO in _0VL]",
"def QDUa(cyvW, bS0K):\n UqER = [cyvW[YRbF] for YRbF in bS0K]\n return UqER",
"def cqaF(vC9B, or8S):\n return [vC9B[YRbF] for YRbF in or8S]",
"def S5t5(yv6U, _0VL):\n R6Bn = TU9R(*_0VL)(yv6U)\n if len(_0VL) == 1:\n return... | [
"0.81797177",
"0.74004084",
"0.73235387",
"0.7253971",
"0.7032841",
"0.7029539",
"0.6984813",
"0.6865537",
"0.6836507",
"0.66363055",
"0.6484061",
"0.64742684",
"0.643168",
"0.6422398",
"0.63765717",
"0.6337673",
"0.6288079",
"0.6248093",
"0.62399125",
"0.62146866",
"0.614460... | 0.7322136 | 3 |
int array from delim separated string | def qSIP(zFiD, SAEY=','):
ezWE = zFiD.split(SAEY)
return [int(jzdc) for jzdc in ezWE] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qOuz(zFiD):\n I2M0 = zFiD.split(',')\n if len(I2M0) > 1:\n B3KW = list(map(lambda Ty9i: int(Ty9i), I2M0))\n else:\n ymbj = zFiD.split(':')\n if len(ymbj) == 2:\n nEeK = int(ymbj[0])\n ekgN = int(ymbj[1])\n B3KW = list(range(nEeK, ekgN + 1))\n ... | [
"0.72379214",
"0.684962",
"0.6728982",
"0.6678012",
"0.6640123",
"0.65883213",
"0.6574866",
"0.6537495",
"0.65371567",
"0.65273845",
"0.65046215",
"0.6417508",
"0.6412186",
"0.6318638",
"0.6318216",
"0.6258499",
"0.62582076",
"0.6251155",
"0.62294185",
"0.61902475",
"0.61872"... | 0.7706036 | 0 |
convert to string list | def jnEZ(hkxX, rhd_=None):
return list(map(lambda b4lR: Ke42(b4lR, rhd_), hkxX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sCS9(aPd6):\n o4sw = ''\n for WKvO in aPd6:\n o4sw += str(WKvO)\n return o4sw",
"def NOSI(aPd6):\n return [str(WKvO) for WKvO in aPd6]",
"def nt7k(YKHO, cWbH):\n return ';'.join(cWbH)",
"def zAg0(YKHO):\n VDwR = ''\n for ZfUD in YKHO._data:\n VDwR += ZfUD + ', '\n re... | [
"0.73455364",
"0.7308787",
"0.7063419",
"0.7021181",
"0.69840807",
"0.69787604",
"0.6966291",
"0.6946745",
"0.69167346",
"0.69085383",
"0.6882239",
"0.6857694",
"0.6852867",
"0.684071",
"0.68235236",
"0.68097615",
"0.6791841",
"0.677701",
"0.677701",
"0.676237",
"0.6682535",
... | 0.71633005 | 2 |
get lines from a file | def yptI(kyzg, SAEY=','):
Nqlg = list()
for BDwY in Gyi8(kyzg, SAEY):
Nqlg.append(BDwY)
return Nqlg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HbNy(IznC):\n return []",
"def PyNg(L49q):\n with open(L49q, 'r') as eHNT:\n Nqlg = eHNT.read()\n return Nqlg.splitlines()",
"def aA6_(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n Nqlg = eHNT.readlines()\n return Nqlg",
"def OaiK(apum):\n with open(apum, 'r') as zZcM:\n ... | [
"0.8028985",
"0.79466677",
"0.79000217",
"0.78965145",
"0.77945226",
"0.77141535",
"0.7678618",
"0.7675815",
"0.75970656",
"0.75414336",
"0.74973565",
"0.7492417",
"0.74745077",
"0.74743235",
"0.74719423",
"0.7471733",
"0.73972094",
"0.7342484",
"0.7300058",
"0.72994614",
"0.... | 0.0 | -1 |
Returns True is string is a number | def tIyV(aevO):
return aevO.replace('.', '', 1).isdigit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def QirG(Dhyu):\n return Myyj(Dhyu) or QpCZ(Dhyu)",
"def ye72(KCHu):\n ... | [
"0.87243295",
"0.86852115",
"0.8595288",
"0.85894513",
"0.85598266",
"0.8549267",
"0.8544011",
"0.8505952",
"0.850492",
"0.8498675",
"0.8498675",
"0.8498675",
"0.8454011",
"0.84477544",
"0.832368",
"0.82826376",
"0.82817423",
"0.82757294",
"0.8234189",
"0.81734663",
"0.816637... | 0.7623907 | 46 |
file record generator with row and column filter applied | def uB85(AesY, ulrI, ZLJ_, SAEY=','):
ZLJ_ = qSIP(ZLJ_, SAEY)
with open(AesY, 'r') as ytgA:
for zFiD in ytgA:
zFiD = zFiD[:-1]
if SAEY is not None:
zFiD = zFiD.split(SAEY)
if ulrI(zFiD):
se2i = bILz(zFiD, ZLJ_)
yield se2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAdp(AesY, ulrI, SAEY=','):\n with open(AesY, 'r') as ytgA:\n for zFiD in ytgA:\n zFiD = zFiD[:-1]\n if SAEY is not None:\n zFiD = zFiD.split(SAEY)\n if ulrI(zFiD):\n yield zFiD",
"def kzkV(YKHO, *qIxc):\n with open(YKHO.filename) as... | [
"0.62498385",
"0.62427604",
"0.59685385",
"0.5945742",
"0.5883134",
"0.5867652",
"0.5820567",
"0.5803369",
"0.57455117",
"0.5725123",
"0.5724859",
"0.57240885",
"0.5704861",
"0.5696153",
"0.5664843",
"0.5653511",
"0.5649182",
"0.56270355",
"0.5626881",
"0.55749047",
"0.555627... | 0.6691331 | 0 |
get ALL indexes of list elements | def iCR1(lDFP, xYVW):
return list(map(lambda tTpl: xYVW.index(tTpl), lDFP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DzXR(YKHO, DumB: Iterable[_T]) -> x1iM[int]:\n return [YKHO.get_index(ZfUD) for ZfUD in DumB]",
"def VBnu(Cwmt: list, ZfUD: Any) -> AzJI[int, ...]:\n bS0K = [d6pt for d6pt, BWXx in enumerate(Cwmt) if BWXx == ZfUD]\n return bS0K",
"def y3AP(YKHO, yv6U, U6D_):\n Aofo = []\n vgXP = -1\n whil... | [
"0.77868956",
"0.7431119",
"0.73785806",
"0.73624647",
"0.7338215",
"0.72532356",
"0.72036815",
"0.7110967",
"0.7103995",
"0.70737785",
"0.7046307",
"0.7042078",
"0.70124465",
"0.6976393",
"0.6810378",
"0.6806202",
"0.67971027",
"0.67875147",
"0.67573243",
"0.6747437",
"0.673... | 0.7261694 | 5 |
return min, max values of a column | def bIcR(tyNF, fvDH):
MynD = None
n4wC = None
for ETu_ in tyNF:
BWXx = ETu_[fvDH]
if MynD is None:
MynD = BWXx
n4wC = BWXx
elif BWXx < MynD:
MynD = BWXx
elif BWXx > n4wC:
n4wC = BWXx
return (MynD, n4wC, n4wC - MynD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zpIh(jQ3Z, fvDH):\n return (jQ3Z[fvDH].min(), jQ3Z[fvDH].max())",
"def PN3y(YKHO, fvDH):\n YKHO.max = max(fvDH)\n YKHO.min = min(fvDH)",
"def XrV7(bOBl, Es0b):\n print('Maximum value of ', Es0b, 'is: ', bOBl[Es0b].max())\n print('Minimum value of ', Es0b, 'is: ', bOBl[Es0b].min())",
"def O... | [
"0.7972702",
"0.7783097",
"0.71817213",
"0.716688",
"0.68736446",
"0.6850248",
"0.6738514",
"0.6724881",
"0.6687197",
"0.6677552",
"0.6671152",
"0.66614187",
"0.66089",
"0.65693426",
"0.6541818",
"0.6541818",
"0.65232164",
"0.6502788",
"0.6479793",
"0.6449615",
"0.64489573",
... | 0.7948461 | 1 |
Given a filename return the original path | def RAju(VXjJ, hLRM):
XBX8 = VXjJ.split('_')[1:]
Ghho = XBX8[-3]
Ux0P = XBX8[-2] + '_' + XBX8[-1]
CRZz = Hy7s.path.sep.join([hLRM, Ghho])
CRZz = Hy7s.path.sep.join([CRZz, Ux0P])
return CRZz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E0XI(Ux0P):\n if Hy7s.path.isabs(Ux0P):\n ex45 = Ux0P\n else:\n Ux0P = Ux0P.lstrip('/\\\\.')\n Ux0P = Ux0P.replace('/', '\\\\')\n ex45 = Hy7s.path.join(Hy7s.getcwd(), Ux0P)\n return ex45",
"def qaEx(gIsw, pmON):\n return pmON.rstrip('\\\\/') + '/{0}'.format(gIsw) if pm... | [
"0.75641775",
"0.74056464",
"0.72795254",
"0.71217936",
"0.7047483",
"0.69768983",
"0.69525677",
"0.69373",
"0.68968034",
"0.6883796",
"0.68546015",
"0.68392336",
"0.68084586",
"0.6796116",
"0.67903066",
"0.678943",
"0.6759913",
"0.6750788",
"0.67392915",
"0.6733291",
"0.6727... | 0.0 | -1 |
Calculates the maximum value of a function over a discrete space. The function is of the form `f([[state,...,action]]) > [[float]]`. | def y8Na(JfyU: Callable[[Tuple], np.ndarray], lT6G: Iterable[Tuple], QTBn: Tuple[Union[int, float]]) -> AzJI[float, AzJI[uLKX[int, float]], None]:
T6S7 = [JfyU(oyIN.asarray((*QTBn, *XeOP)).reshape(1, -1))[0, 0] for XeOP in lT6G]
PtQX = max(T6S7)
return (PtQX, lT6G[T6S7.index(PtQX)], None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fo30(YKHO, QTBn):\n jzdc = YKHO.sess.run(YKHO.network.maxOutputNode, feed_dict={YKHO.network.inputs: [QTBn]})\n return jzdc[0]",
"def dSnR(vexM):\n i65w = oRi_(float)\n for QTBn, CE5G in vexM.items():\n i65w[QTBn] = oyIN.max(CE5G)\n return i65w",
"def hPOm(JfyU: Callable[[Tuple], np.n... | [
"0.69241726",
"0.68707573",
"0.6766437",
"0.6695684",
"0.663746",
"0.65546215",
"0.65330714",
"0.6517808",
"0.650299",
"0.6489235",
"0.64075166",
"0.6392414",
"0.6382451",
"0.6341185",
"0.63397753",
"0.6326931",
"0.6326931",
"0.63123477",
"0.62715364",
"0.6264739",
"0.6257919... | 0.7713988 | 0 |
Calculates the maximum value of a function over a continuous space. The function is of the form `f([[state,...,action]]) > [[float]]`. | def hJbr(JfyU: Callable[[Tuple], np.ndarray], lT6G: Iterable[Tuple], QTBn: Tuple[Union[int, float]]) -> AzJI[float, AzJI[uLKX[int, float]], None]:
KTfX = tuple(zip(QTBn, QTBn))
DbxN = tuple([*QTBn, *oyIN.random.uniform(*zip(*lT6G))])
MT0a = lambda WKvO: -JfyU(oyIN.asarray(WKvO).reshape(1, -1))[0, 0]
Ylb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y8Na(JfyU: Callable[[Tuple], np.ndarray], lT6G: Iterable[Tuple], QTBn: Tuple[Union[int, float]]) -> AzJI[float, AzJI[uLKX[int, float]], None]:\n T6S7 = [JfyU(oyIN.asarray((*QTBn, *XeOP)).reshape(1, -1))[0, 0] for XeOP in lT6G]\n PtQX = max(T6S7)\n return (PtQX, lT6G[T6S7.index(PtQX)], None)",
"def p... | [
"0.74118465",
"0.6911882",
"0.67653006",
"0.6755675",
"0.6700097",
"0.66732067",
"0.66682297",
"0.66391003",
"0.6638205",
"0.6624884",
"0.6593813",
"0.6561686",
"0.653449",
"0.6528168",
"0.6528168",
"0.6464699",
"0.6464699",
"0.6464699",
"0.6464699",
"0.6464699",
"0.6464699",... | 0.7000933 | 1 |
Calculates the maximum value of a function over a discretecontinuous hybrid space. The function is of the form `f([[state,...,action]]) > [[float]]`. | def ivv1(JfyU: Callable[[Tuple], np.ndarray], lT6G: Tuple[Tuple], QTBn: Tuple[Union[int, float]], v9Lt: Tuple[bool], xASv: Iterable[Tuple]) -> AzJI[float, AzJI[uLKX[int, float]], None]:
P6Dd = -oyIN.inf
bQz4 = None
MT0a = lambda WKvO: -JfyU(oyIN.asarray(WKvO).reshape(1, -1))[0, 0]
KTfX = tuple(zip(QTBn,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y8Na(JfyU: Callable[[Tuple], np.ndarray], lT6G: Iterable[Tuple], QTBn: Tuple[Union[int, float]]) -> AzJI[float, AzJI[uLKX[int, float]], None]:\n T6S7 = [JfyU(oyIN.asarray((*QTBn, *XeOP)).reshape(1, -1))[0, 0] for XeOP in lT6G]\n PtQX = max(T6S7)\n return (PtQX, lT6G[T6S7.index(PtQX)], None)",
"def T... | [
"0.723416",
"0.66574",
"0.65544426",
"0.6518895",
"0.6501835",
"0.6483888",
"0.6481177",
"0.6454216",
"0.6367743",
"0.63644564",
"0.6269009",
"0.6242306",
"0.6242306",
"0.6208276",
"0.62002057",
"0.61769724",
"0.61769724",
"0.61769724",
"0.61769724",
"0.61769724",
"0.61769724... | 0.6870728 | 1 |
Return Hardware Helper instance. | def B0gN(YKHO) -> wBK2:
return YKHO._helper | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bdSV(YKHO):\n return YKHO._hardware",
"def k0vJ(YKHO):\n return YKHO._get_system_status()['hardware']",
"def z85L(YKHO):\n return",
"def VeaS(YKHO):\n raise NotImplementedError()",
"def Y18M(YKHO):\n return (YKHO.vendorId, YKHO.deviceId, YKHO.physicalMemory, YKHO.osInfo, YKHO.cpuSpeed[0]... | [
"0.58485013",
"0.57532084",
"0.57418317",
"0.5716966",
"0.5714746",
"0.57100344",
"0.56509393",
"0.56391436",
"0.55760807",
"0.5419607",
"0.5363711",
"0.53604835",
"0.53523004",
"0.53211254",
"0.5297295",
"0.5281962",
"0.5261004",
"0.525017",
"0.5205277",
"0.517679",
"0.51628... | 0.6856541 | 0 |
Test for workday.get_index_of_day with empty daylist | def Vjfb(YKHO):
YKHO._test_giod([], '15.07.2013', 0, -1, 'Empty list without next value.')
YKHO._test_giod([], '15.07.2013', 1, -1, 'Empty list with next=1.')
YKHO._test_giod([], '15.07.2013', -1, -1, 'Empty list with next=-1.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UadV(YKHO):\n Sm0u = ['15.07.2013']\n YKHO._test_find_day(Sm0u)\n YKHO._test_giod(Sm0u, '16.07.2013', 0, -1, 'Find not existing day in an One-Day-List')\n YKHO._test_giod(Sm0u, '16.07.2013', 1, 0, 'Find not existing day in an One-Day-List with next=1.')\n YKHO._test_giod(Sm0u, '16.07.2013', -1, ... | [
"0.6985117",
"0.68697405",
"0.5974712",
"0.5910122",
"0.58396995",
"0.579942",
"0.579942",
"0.56485224",
"0.5625296",
"0.5617682",
"0.5616635",
"0.5519079",
"0.54104215",
"0.5407502",
"0.5365336",
"0.5355601",
"0.52986115",
"0.5282035",
"0.5257318",
"0.5249783",
"0.5244184",
... | 0.78290266 | 0 |
Create tree structure (dict) | def a7_H(jlSF):
IfzY = {}
for f5nC in jlSF:
AOQK(IfzY, f5nC, {'departments': {}, 'divisions': []})
for X5CZ in f5nC.department_set.all():
AOQK(IfzY[f5nC]['departments'], X5CZ, X5CZ.division_set.all())
for rAjW in f5nC.division_set.all():
if not rAjW.department:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8z1():\n return g760.defaultdict(w8z1)",
"def J_Es():\n return oRi_(J_Es)",
"def MNRr(YKHO):\n\n def O4bD(Q6kx):\n if len(Q6kx.children) == 0:\n return Q6kx.info\n else:\n Yd6X = Q6kx.info.copy()\n Yd6X['children'] = []\n for Z9rn in Q6kx.... | [
"0.7705202",
"0.76248664",
"0.7139732",
"0.7070391",
"0.70667595",
"0.70103884",
"0.6973848",
"0.69458",
"0.69284344",
"0.68967056",
"0.6896021",
"0.68392974",
"0.67928666",
"0.67302006",
"0.67150164",
"0.66945535",
"0.668076",
"0.6629802",
"0.6526941",
"0.65033984",
"0.64537... | 0.6436795 | 22 |
Resumes a previous training by passing an explicit ``save_path`` instead of generating a new one | def kvfq(YKHO, gXgy: str, ppBc: BaseDataManager, TnHC: BaseDataManager=None, NArs: Parameters=None, **B2fa):
return YKHO.run(train_data=ppBc, val_data=TnHC, params=NArs, save_path=gXgy, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CB6K(YKHO, sPrH):\n if sPrH:\n sPrH = f'{YKHO.model_dir}/{sPrH}.pth.tar'\n if Hy7s.path.isfile(sPrH):\n print(f\"=> loading checkpoint '{sPrH}'\")\n vauY = ht2j.load(sPrH, map_location=YKHO.device)\n YKHO.best_acc = vauY['best_acc']\n YKHO.model.load... | [
"0.73369473",
"0.7321174",
"0.7216827",
"0.7208701",
"0.70329",
"0.6985532",
"0.6979012",
"0.69499284",
"0.6924008",
"0.68699634",
"0.6851208",
"0.68294954",
"0.6827136",
"0.6795692",
"0.66544294",
"0.661796",
"0.65858245",
"0.6541243",
"0.6527385",
"0.6489939",
"0.64483947",... | 0.7236645 | 2 |
perspective transform wrapper class | def FIMM(YKHO, h3Aq, DOuq):
YKHO.M = XC5k.getPerspectiveTransform(h3Aq, DOuq)
YKHO.inverse_M = XC5k.getPerspectiveTransform(DOuq, h3Aq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W3xn(YKHO):\n zZcM = oyIN.float32([[(0.42 * YKHO.img_shape[1], 0.65 * YKHO.img_shape[0]), (0.58 * YKHO.img_shape[1], 0.65 * YKHO.img_shape[0]), (0 * YKHO.img_shape[1], YKHO.img_shape[0]), (1 * YKHO.img_shape[1], YKHO.img_shape[0])]])\n zr3f = oyIN.float32([[0, 0], [YKHO.img_shape[1], 0], [0, YKHO.img_sha... | [
"0.76095355",
"0.75749624",
"0.7421696",
"0.72860265",
"0.6811848",
"0.67915446",
"0.6714098",
"0.66579306",
"0.65663964",
"0.65524143",
"0.648868",
"0.64626616",
"0.6441885",
"0.6436822",
"0.6397949",
"0.6391625",
"0.62671566",
"0.6254645",
"0.6212158",
"0.6204939",
"0.61910... | 0.6580018 | 8 |
Return a sanitized function name string compatible with DOT representation. | def d59d(JfyU):
return str(JfyU).replace('::', '\\') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEU2(KCHu):\n e_b4 = Pmux.intersection(KCHu)\n if e_b4:\n raise ValueError('%(s)s contains forbidden characters (%(forbidden)s)' % locals())\n if not KCHu:\n return ''\n elif KCHu in oZx7:\n raise ValueError('The name %(s)r is reserved!' % locals())\n EESs = KCHu.rstrip('/')... | [
"0.6810576",
"0.66400546",
"0.64475447",
"0.64210916",
"0.63648",
"0.6298803",
"0.62474054",
"0.61831445",
"0.6174671",
"0.61154217",
"0.60855067",
"0.6061834",
"0.6032024",
"0.6028092",
"0.60221523",
"0.6001506",
"0.59857047",
"0.59793925",
"0.5967366",
"0.5961315",
"0.59612... | 0.80500704 | 0 |
magic from rllab for computing discounted cumulative sums of vectors. | def qcfT(WKvO, FMQW):
return Zxt2.signal.lfilter([1], [1, float(-FMQW)], WKvO[::-1], axis=0)[::-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hse8(YKHO, vwlo, mVUw=None):\n mVUw = YKHO.gamma if mVUw is None else mVUw\n vwlo = oyIN.array(vwlo)\n WLJS = list(pD6w(vwlo[::-1], lambda U5bT, jFFD: mVUw * U5bT + jFFD))\n WLJS = oyIN.array(WLJS)[::-1]\n return WLJS",
"def FMQW(YKHO, Mkmy, _ins, KCHu):\n g2lU, ZysX = (oyIN.zeros_like(Mkmy... | [
"0.6540757",
"0.64635974",
"0.6429183",
"0.6427291",
"0.6323769",
"0.63178307",
"0.63175875",
"0.6267737",
"0.6225033",
"0.6221566",
"0.62135977",
"0.62053436",
"0.61727947",
"0.61320513",
"0.6120513",
"0.60986733",
"0.6009351",
"0.59941953",
"0.59521544",
"0.59496266",
"0.59... | 0.6335572 | 8 |
Fillin/deduce missing values in environ. | def vrZR(YKHO, PNq_):
k_KZ = None
if PNq_.has_key('REQUEST_URI'):
k_KZ = PNq_['REQUEST_URI'].split('?', 1)
if not PNq_.has_key('QUERY_STRING') or not PNq_['QUERY_STRING']:
if k_KZ is not None and len(k_KZ) > 1:
PNq_['QUERY_STRING'] = k_KZ[1]
else:
PNq_['QUERY_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wd9F(sjXb):\n return {G1Hx: Hy7s.environ.get(G1Hx, _UiZ) for G1Hx in sjXb}",
"def v4nP(eNNA: Set[str]) -> P39m:\n wH3v = {}\n for i2I_, sadl in PNq_.items():\n if i2I_ not in eNNA:\n continue\n wH3v[i2I_] = sadl\n return wH3v",
"def RnCt(YKHO, PNq_) -> None:\n PNq_.u... | [
"0.66411483",
"0.66087127",
"0.6534122",
"0.65307343",
"0.6371233",
"0.6371233",
"0.6371233",
"0.6371233",
"0.6371233",
"0.6371233",
"0.63070416",
"0.6285022",
"0.6186171",
"0.6141114",
"0.6135139",
"0.61149204",
"0.6103417",
"0.6088425",
"0.60726273",
"0.60531324",
"0.602398... | 0.6298745 | 11 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("\nHello! Let's explore some US bikeshare data!\n")
while 1:
j5sA = input('Would you like to see data for Chicago | CH, New York City | NYC, or Washington | WA?\n').lower()
print()
if j5sA == 'chicago' or j5sA == 'ch':
j5sA = 'chicago'
if j5sA == 'ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66709363",
"0.6536631",
"0.6460791",
"0.6373951",
"0.6349272",
"0.6310802",
"0.6287722",
"0.62607133",
"0.6230896",
"0.6212277",
"0.62065274",
"0.61828023",
"0.6171454",
"0.61700225",
"0.6159926",
"0.6158883",
"0.6154618",
"0.61455905",
"0.6130836",
"0.61063856",
"0.610411... | 0.0 | -1 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(j5sA)
jQ3Z['month'] = rLdf.to_datetime(jQ3Z['Start Time']).dt.month
jQ3Z['day_of_week'] = rLdf.to_datetime(jQ3Z['Start Time']).dt.dayofweek
if x0eS != 'all':
jQ3Z = jQ3Z[jQ3Z['month'] == x0eS]
if CjKC != 'all':
jQ3Z = jQ3Z[jQ3Z['day_of... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.8131747",
"0.81087744",
"0.80456793",
"0.80419374",
"0.80089974",
"0.8006586",
"0.7998844",
"0.7997986",
"0.7988014",
"0.797856",
"0.79733896",
"0.7960562",
"0.79556054",
"0.794673",
"0.7945893",
"0.7907837",
"0.7907697",
"0.790398",
"0.79001075",
"0.7892662",
"0.7888655",... | 0.7808538 | 32 |
Displays statistics on the most popular times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Popular Times of Travel...\n')
SWox = ITS7.time()
jQ3Z['month'] = rLdf.to_datetime(jQ3Z['Start Time']).dt.month
sve5 = jQ3Z['month'].mode()[0]
for mLGw in xoS0:
if xoS0[mLGw] == sve5:
sve5 = mLGw.title()
print('Most popular month ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the most frequent times of travel...\\n')\n SWox = ITS7.time()\n if len(jQ3Z['month'].unique()) > 1:\n vswJ, Hu0p = tbPw(jQ3Z['month'])\n print(f'Most popular month: {vswJ}, Count: {Hu0p}')\n if len(jQ3Z['day'].unique()) > 1:\n NO20, KBuT = tb... | [
"0.77551055",
"0.7629987",
"0.75815743",
"0.7372291",
"0.72286546",
"0.72216403",
"0.7211003",
"0.71911144",
"0.7164325",
"0.7160902",
"0.71318567",
"0.7131502",
"0.7122922",
"0.7122367",
"0.7115236",
"0.7114355",
"0.7113138",
"0.7109965",
"0.7090651",
"0.70847386",
"0.708443... | 0.7255359 | 4 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
print('\nMost popular start station: {}'.format(jQ3Z['Start Station'].mode()[0]))
print('\nMost popular end station: {}'.format(jQ3Z['End Station'].mode()[0]))
print('\nMost popular trip from start to e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7816157",
"0.7662524",
"0.7492024",
"0.7475423",
"0.74471235",
"0.7430301",
"0.74246186",
"0.741813",
"0.7400704",
"0.7387859",
"0.73857087",
"0.7365416",
"0.73599696",
"0.73571277",
"0.73555714",
"0.73525584",
"0.7351796",
"0.735084",
"0.7342505",
"0.734093",
"0.7337747",... | 0.7554042 | 2 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
yixB = jQ3Z['Trip Duration'].sum()
O66n, C6wh = divmod(yixB, 60)
Wave, O66n = divmod(O66n, 60)
Sm0u, Wave = divmod(Wave, 24)
ulWt, Sm0u = divmod(Sm0u, 365)
print('\nPassengers travelled a total of: %d years %02d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.8143032",
"0.8024939",
"0.8004003",
"0.7949475",
"0.79372776",
"0.79307956",
"0.7926507",
"0.79149866",
"0.7914229",
"0.79077655",
"0.79054105",
"0.7900338",
"0.78913456",
"0.78892654",
"0.78863764",
"0.7884846",
"0.78839767",
"0.7882144",
"0.7873669",
"0.7868308",
"0.7866... | 0.7691605 | 70 |
Sets the Entity's id (Stage's nodeIndex) | def id(YKHO, id=0):
YKHO.type_def['id'] = id
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2g3(YKHO, g2g3: str):\n YKHO._entity_id = g2g3",
"def g2g3(YKHO, g2g3):\n YKHO._entity_id = g2g3",
"def g2g3(YKHO, g2g3):\n if g2g3 is None:\n raise ValueError('Invalid value for `entity_id`, must not be `None`')\n YKHO._entity_id = g2g3",
"def davs(YKHO, BWXx):\n super(c0Ra, YKHO)... | [
"0.7288651",
"0.7261937",
"0.68000484",
"0.6687752",
"0.65441185",
"0.650544",
"0.6461501",
"0.64213777",
"0.64186966",
"0.63741297",
"0.6347914",
"0.6312209",
"0.630786",
"0.63020474",
"0.62571937",
"0.62302077",
"0.622943",
"0.62199575",
"0.6177491",
"0.6165765",
"0.6158151... | 0.660073 | 4 |
Check if the Entity is of a certain type | def WUsn(YKHO, Qy3K):
if Qy3K.lower() in ('entity', YKHO.settings['_type'].lower()):
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ykh9(YKHO, zXgc):\n return zXgc in ['artist', 'song', 'genre']",
"def bfng(YKHO, BWXx):\n if hasattr(YKHO._type, 'istypeof'):\n return YKHO._type.istypeof(BWXx)\n else:\n return isinstance(BWXx, YKHO._type)",
"def e8zD(YKHO, YEnM):\n return isinstance(YEnM, YKHO.type_)",
"def cb... | [
"0.7638851",
"0.7033444",
"0.6808084",
"0.6792856",
"0.6679623",
"0.6650414",
"0.6649699",
"0.6564971",
"0.6549901",
"0.6529419",
"0.6526937",
"0.64430064",
"0.6413656",
"0.6358948",
"0.6326068",
"0.629998",
"0.6291419",
"0.6276344",
"0.6261377",
"0.62416005",
"0.6210924",
... | 0.8143101 | 0 |
Move the Rectangle by modifying its corner object. | def wjMf(Mkmy, Jw7X, eUWA):
Mkmy.corner.x = Mkmy.corner.x + Jw7X
Mkmy.corner.y = Mkmy.corner.y + eUWA
ZbiO.setx(Mkmy.corner.x)
ZbiO.sety(Mkmy.corner.y)
for YRbF in range(2):
ZbiO.fd(Mkmy.width)
ZbiO.lt(90)
ZbiO.fd(Mkmy.height)
ZbiO.lt(90)
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZN_(YKHO, Jw7X, eUWA):\n YKHO.corner.x += Jw7X\n YKHO.corner.y += eUWA",
"def BZN_(YKHO, Jw7X, eUWA):\n YKHO.corner.x += Jw7X\n YKHO.corner.y += eUWA",
"def BZN_(YKHO, Jw7X, eUWA):\n YKHO.corner.x += Jw7X\n YKHO.corner.y += eUWA",
"def BZN_(YKHO, Jw7X, eUWA):\n YKHO.corner.x += Jw7X... | [
"0.7000503",
"0.7000503",
"0.7000503",
"0.69938785",
"0.6982471",
"0.67373776",
"0.63404274",
"0.6298832",
"0.62947994",
"0.6282506",
"0.6233576",
"0.6215441",
"0.61811674",
"0.6096873",
"0.60852855",
"0.5990984",
"0.5989975",
"0.5957505",
"0.5948925",
"0.59286416",
"0.592864... | 0.63123775 | 7 |
Returns True if t1 is after t2; false otherwise. | def _YhM(n2Q1, SpII):
return (n2Q1.hour, n2Q1.minute, n2Q1.second) > (SpII.hour, SpII.minute, SpII.second) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _YhM(YKHO, Elif):\n if YKHO.is_before(Elif) or YKHO == Elif:\n return False\n else:\n return True",
"def _YhM(YKHO, Elif):\n if YKHO.is_before(Elif) == False:\n if YKHO != Elif:\n return True\n return False",
"def E4vx(YKHO, _sQW):\n if YKHO.equals(_sQW):\n ... | [
"0.75125057",
"0.7429796",
"0.73929745",
"0.72149795",
"0.72039163",
"0.7099517",
"0.66878116",
"0.655956",
"0.65366393",
"0.6506957",
"0.6470305",
"0.64262325",
"0.64262325",
"0.6406126",
"0.6331021",
"0.62891877",
"0.62535655",
"0.6244581",
"0.62373865",
"0.61819375",
"0.61... | 0.70913756 | 6 |
Adds seconds to a Time object. | def EAdr(ITS7, C6wh):
assert fO0v(ITS7)
C6wh += hpAa(ITS7)
return PFz2(C6wh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qevl(YKHO, C6wh):\n return xcMI(0, 0, YKHO.to_seconds() + C6wh)",
"def EAdr(ITS7, C6wh):\n assert fO0v(ITS7)\n C6wh += ITS7.time_to_int()\n return PFz2(C6wh)",
"def edzz(C6wh):\n Xmxw(qcWV.timedelta(0, C6wh))",
"def C6wh(YKHO, C6wh):\n YKHO._seconds = C6wh",
"def jUWg(YKHO, kRsb):\n ... | [
"0.78307766",
"0.69903797",
"0.6803477",
"0.6756962",
"0.6666293",
"0.6649546",
"0.66336894",
"0.6583278",
"0.62150925",
"0.61799365",
"0.615658",
"0.61066055",
"0.60882944",
"0.60400695",
"0.6024801",
"0.6023055",
"0.5999886",
"0.5978862",
"0.59618837",
"0.5956492",
"0.59390... | 0.6927864 | 2 |
Adds seconds to a Time object. | def EAdr(ITS7, C6wh):
assert fO0v(ITS7)
C6wh += ITS7.time_to_int()
return PFz2(C6wh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qevl(YKHO, C6wh):\n return xcMI(0, 0, YKHO.to_seconds() + C6wh)",
"def EAdr(ITS7, C6wh):\n assert fO0v(ITS7)\n C6wh += hpAa(ITS7)\n return PFz2(C6wh)",
"def edzz(C6wh):\n Xmxw(qcWV.timedelta(0, C6wh))",
"def C6wh(YKHO, C6wh):\n YKHO._seconds = C6wh",
"def jUWg(YKHO, kRsb):\n YKHO.s... | [
"0.78307766",
"0.6927864",
"0.6803477",
"0.6756962",
"0.6666293",
"0.6649546",
"0.66336894",
"0.6583278",
"0.62150925",
"0.61799365",
"0.615658",
"0.61066055",
"0.60882944",
"0.60400695",
"0.6024801",
"0.6023055",
"0.5999886",
"0.5978862",
"0.59618837",
"0.5956492",
"0.593901... | 0.69903797 | 1 |
sets up window and all the widgets | def FIMM(YKHO):
EceD.__init__(YKHO, title='Address Book')
YKHO.addLabel(text='First Name:', row=0, column=0, sticky='NSEW')
YKHO.inputField1 = YKHO.addTextField(text='', row=0, column=1, width=5, sticky='NSEW')
YKHO.addLabel(text='Last Name:', row=1, column=0, sticky='NSEW')
YKHO.inputField2 = YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zvL6(YKHO):\n YKHO.main_menu_window = hSph.MainMenuFrame(YKHO.uiCoordinator)\n YKHO.menu_window = YKHO.main_menu_window._mf\n YKHO.score_window = YKHO.main_menu_window._hf\n YKHO.instructions_window = YKHO.main_menu_window._if\n YKHO.menu_window.playButton.focus_set()",
"def DbxN(YKHO):\n _... | [
"0.7787372",
"0.77320147",
"0.76805985",
"0.76545197",
"0.7615445",
"0.75964576",
"0.7558102",
"0.7490224",
"0.74126697",
"0.74049395",
"0.73966575",
"0.7384085",
"0.73416513",
"0.73398507",
"0.7267249",
"0.7218066",
"0.71866405",
"0.7176432",
"0.7110608",
"0.710039",
"0.7099... | 0.0 | -1 |
Build a string representation of the HyperparameterConfig. | def zAg0(YKHO) -> str:
return '\n'.join([f'{A90d}: {YKHO.hyperparams[A90d]}' for A90d in YKHO.hyperparams]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n cKY_ = 'Configurations\\n'\n cKY_ += CgYo.pformat(YKHO.__dict__)\n return cKY_",
"def zAg0():\n return str(viqz)",
"def wHJl(YKHO) -> str:\n return qQXR.dumps(YKHO._config)",
"def str(YKHO):\n oXYM = ['{0} name={1}'.format(YKHO.layer_type, YKHO.name)]\n for H5ew, BWXx i... | [
"0.71508455",
"0.6864315",
"0.680465",
"0.67813075",
"0.6348431",
"0.6345511",
"0.63154775",
"0.6312308",
"0.6279822",
"0.6271738",
"0.62691575",
"0.6199463",
"0.6167693",
"0.61509144",
"0.6090665",
"0.60872066",
"0.60872066",
"0.60356134",
"0.59921837",
"0.5974515",
"0.59728... | 0.7095357 | 1 |
Return the default dropdown size. | def zNig(YKHO):
return dict(width=YKHO.w, height=YKHO.h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9():\n y7GR = ['regular', 'small', 'large']\n pKvt = rU9W(y7GR, 'Widget size:')\n V1Lg['size'] = y7GR[pKvt]\n oV74('size', y7GR[pKvt])\n return",
"def u3AR(YKHO):\n NKoN = Ky_k = ''\n if YKHO.selector_declarations:\n NKoN = YKHO.selector_declarations[1].getPropertyValue('width'... | [
"0.73972404",
"0.64381707",
"0.6395496",
"0.6288401",
"0.62859637",
"0.62736166",
"0.6250367",
"0.6247634",
"0.61684835",
"0.61266255",
"0.61266255",
"0.61266255",
"0.6115029",
"0.6099338",
"0.60664904",
"0.59997344",
"0.5957957",
"0.5936947",
"0.59262776",
"0.5925267",
"0.59... | 0.0 | -1 |
Open a browser tab showing single | def qFCm(YKHO, ckYJ):
bD7m = Hy7s.path.join('file://', TEjX, 'build', 'html', ckYJ)
HywK.open(bD7m, new=2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BuIZ(YKHO, bD7m):\n yUgp = YKHO.driver.window_handles\n if vnIA.os == 'mac':\n YKHO.driver.find_element_by_tag_name('body').send_keys(OLKu.COMMAND + 't')\n else:\n YKHO.driver.find_element_by_tag_name('body').send_keys(OLKu.CONTROL + 't')\n ITS7.sleep(0.25)\n sXfX = set(YKHO.driver... | [
"0.7756468",
"0.77226114",
"0.7556416",
"0.75134903",
"0.7471569",
"0.74635446",
"0.7443906",
"0.72972023",
"0.7287823",
"0.72756606",
"0.7198614",
"0.7158972",
"0.7094349",
"0.7075039",
"0.7044656",
"0.7039502",
"0.70210725",
"0.69317484",
"0.69229186",
"0.6906482",
"0.68989... | 0.65932244 | 38 |
Initialize remote value of KNX DPT 1 representing a climate operation mode. | def FIMM(YKHO, uLVm: XKNX, nwWH: GroupAddressesType | None=None, nCNX: GroupAddressesType | None=None, OV20: bool | int | float | str=True, yxaP: str | None=None, BZ2A: str='Climate mode binary', QUC2: AsyncCallbackType | None=None, jEwG: HVACOperationMode | None=None):
if not isinstance(jEwG, lmto):
raise ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, uLVm: XKNX, nwWH: GroupAddressesType | None=None, nCNX: GroupAddressesType | None=None, OV20: bool | int | float | str=True, yxaP: str | None=None, BZ2A: str='Climate mode', z8oc: ClimateModeType | None=None, QUC2: AsyncCallbackType | None=None):\n super().__init__(uLVm, group_address=nwWH, group... | [
"0.5819061",
"0.56439674",
"0.53057885",
"0.53057885",
"0.53057885",
"0.5236872",
"0.5200744",
"0.50949395",
"0.5051989",
"0.504443",
"0.50327706",
"0.50267476",
"0.50209856",
"0.49953154",
"0.48788038",
"0.4843685",
"0.4819835",
"0.4803406",
"0.47888547",
"0.47865847",
"0.47... | 0.50607747 | 8 |
Creates a hidden markov model object with M hidden states. | def FIMM(YKHO, E3D9, nMvt):
YKHO.M = E3D9
YKHO.K = nMvt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EyDt(YKHO):\n nvAm = YKHO.moralize()\n cpvk = wJdQ(nvAm.edges())\n cpvk.add_nodes_from(nvAm.nodes())\n cpvk.add_factors(*[EGi9.to_factor() for EGi9 in YKHO.cpds])\n return cpvk",
"def MP8d(YKHO):\n D5BU = ht2j.zeros(YKHO.num_layers, YKHO.batch_size, YKHO.hidden_size)\n return D5BU",
"d... | [
"0.63076204",
"0.62111276",
"0.6170079",
"0.60326874",
"0.5970324",
"0.59700006",
"0.58591807",
"0.5822325",
"0.5798316",
"0.577887",
"0.56757784",
"0.56261045",
"0.55624646",
"0.5561263",
"0.5559619",
"0.5559619",
"0.55463094",
"0.553127",
"0.55100214",
"0.55100214",
"0.5502... | 0.0 | -1 |
Convert camelCase string to snake_case. | def UvrF(mWFP):
j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\1_\\2', mWFP)
return ZbWC.sub('([a-z0-9])([A-Z])', '\\1_\\2', j93S).lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def taD7(GPn9):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', GPn9)\n Nqp_ = ZbWC.sub('([a-z0-9])([A-Z])', '\\\\1_\\\\2', j93S).lower()\n return Nqp_.replace('__', '_')",
"def AQcz(str):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', str)\n Nqp_ = ZbWC.sub('-', '_', j93S)\n return ... | [
"0.83922935",
"0.8382237",
"0.8352884",
"0.82065755",
"0.8192346",
"0.8134536",
"0.8100583",
"0.79239666",
"0.7897534",
"0.7875393",
"0.78665465",
"0.7827113",
"0.7769993",
"0.7729836",
"0.76905155",
"0.7667429",
"0.7630975",
"0.76263887",
"0.7615211",
"0.7604704",
"0.7592038... | 0.75884104 | 21 |
Force missing values to appear at the beginning of the DataFrame instead of the end. | def ZKv9(jeHe, w20b):
QxuO = jeHe.shape[0] - w20b.shape[0]
if QxuO > 0:
rMBo = rLdf.DataFrame(oyIN.full((oyIN.abs(QxuO), w20b.shape[1]), oyIN.nan), columns=w20b.columns)
w20b = rLdf.concat((rMBo, w20b), axis=0).reset_index(drop=True)
elif QxuO < 0:
rMBo = rLdf.DataFrame(oyIN.full((oy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OMLU(wDWA: pd.DataFrame):\n wDWA.fillna(method='pad', inplace=True)",
"def b5Z4(YKHO, jQ3Z):\n return jQ3Z.dropna(axis='columns', how='all').fillna(0.0)",
"def Rep7(jQ3Z):\n jQ3Z = jQ3Z.fillna(method='ffill')\n jQ3Z = jQ3Z.fillna(method='bfill').fillna(0)\n return jQ3Z",
"def z7i3(jQ3Z):\n... | [
"0.70773196",
"0.69040954",
"0.6807456",
"0.66524595",
"0.658136",
"0.646944",
"0.64566696",
"0.64035106",
"0.64019877",
"0.6401032",
"0.6306065",
"0.6257852",
"0.6256947",
"0.6251326",
"0.6223952",
"0.61246413",
"0.6088262",
"0.6042709",
"0.6035861",
"0.6017882",
"0.59797156... | 0.0 | -1 |
Returns a boolean of whether the raw_password was correct. Handles encryption formats behind the scenes. | def EvfH(Ud05, JqyM):
vRyL, NTfD, lNLE = JqyM.split('$')
return lNLE == OMIw(vRyL, NTfD, Ud05) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvfH(YKHO, Ud05):\n return EvfH(Ud05, YKHO.password)",
"def e3F7(YKHO, jTXt):\n return axsU().check_password_hash(YKHO.password, jTXt)",
"def tg18(YKHO, jTXt):\n return YKHO._password == TDEB(jTXt, leDs(str(YKHO._salt)))",
"def sNjs(YKHO, jTXt):\n return YKHO.PASSWORD == jTXt",
"def EvfH(YK... | [
"0.7856368",
"0.73722756",
"0.7331199",
"0.72308093",
"0.71682143",
"0.7166637",
"0.709903",
"0.7083616",
"0.7061117",
"0.70148677",
"0.69298446",
"0.69238937",
"0.6904415",
"0.69039166",
"0.6873755",
"0.6868197",
"0.6854907",
"0.6842843",
"0.68418324",
"0.68413496",
"0.68151... | 0.76191616 | 1 |
The ID of the CR Instance. | def o_gm(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def yHil(YKHO):\n return YKHO._id",
"def OyzV(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def id(YKHO):\n return YKHO.__id",
"def o_gm(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'instance_id'... | [
"0.75583506",
"0.73895645",
"0.7377989",
"0.735136",
"0.7331318",
"0.7329716",
"0.7329716",
"0.7329716",
"0.7316119",
"0.72769076",
"0.72735715",
"0.72735715",
"0.7270205",
"0.7245078",
"0.7245078",
"0.7245078",
"0.7245078",
"0.7245078",
"0.7245078",
"0.7242256",
"0.7241275",... | 0.0 | -1 |
The ID of the CR Instance. | def o_gm(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def yHil(YKHO):\n return YKHO._id",
"def OyzV(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def id(YKHO):\n return YKHO.__id",
"def o_gm(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'instance_id'... | [
"0.75583506",
"0.73895645",
"0.7377989",
"0.735136",
"0.7331318",
"0.7329716",
"0.7329716",
"0.7329716",
"0.7316119",
"0.72769076",
"0.72735715",
"0.72735715",
"0.7270205",
"0.7245078",
"0.7245078",
"0.7245078",
"0.7245078",
"0.7245078",
"0.7245078",
"0.7242256",
"0.7241275",... | 0.0 | -1 |
Get an existing EndpointAclPolicy 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, JBZA: Optional[pulumi.Input[str]]=None, UdWu: Optional[pulumi.Input[str]]=None, bTKY: Optional[pulumi.Input[str]]=None, o_gm: Optional[pulumi.Input[str]]=None, LCet: Optional[pulumi.Input[str]]=None) -> 'EndpointAclPolicy':
VKhi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, wuvO: Optional[pulumi.Input[str]]=None, _5R0: Optional[pulumi.Input[int]]=None, gGcx: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FirewallPolicyCustomRuleArgs']]]]]=None, etR_: Optional[pulumi.Input[bool]]=Non... | [
"0.6320034",
"0.5855849",
"0.581994",
"0.57380086",
"0.5594384",
"0.5574973",
"0.5525668",
"0.5427185",
"0.5421561",
"0.5316694",
"0.5280498",
"0.524068",
"0.51482886",
"0.5139898",
"0.50779575",
"0.506987",
"0.5061437",
"0.5019143",
"0.49754748",
"0.49381846",
"0.4920512",
... | 0.7297297 | 0 |
The ID of the CR Instance. | def o_gm(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def yHil(YKHO):\n return YKHO._id",
"def OyzV(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def id(YKHO):\n return YKHO.__id",
"def o_gm(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'instance_id'... | [
"0.75583506",
"0.73895645",
"0.7377989",
"0.735136",
"0.7331318",
"0.7329716",
"0.7329716",
"0.7329716",
"0.7316119",
"0.72769076",
"0.72735715",
"0.72735715",
"0.7270205",
"0.7242256",
"0.7241275",
"0.72083396",
"0.71998537",
"0.71692824",
"0.71556026",
"0.7155421",
"0.71479... | 0.7245078 | 18 |
The set of arguments for constructing a CustomRoutingEndpointTrafficPolicy resource. | def FIMM(Ro_8, *, UTX6: pulumi.Input[str], _R4q: pulumi.Input[str], fQb3: Optional[pulumi.Input[Sequence[pulumi.Input['CustomRoutingEndpointTrafficPolicyPortRangeArgs']]]]=None):
qe4Y.set(Ro_8, 'address', UTX6)
qe4Y.set(Ro_8, 'endpoint_id', _R4q)
if fQb3 is not None:
qe4Y.set(Ro_8, 'port_ranges', fQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: CustomRoutingEndpointTrafficPolicyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, UTX6: Optional[pulumi.Input[str]]=None, _R4q: Optional[pulumi.Input[str]]=None, fQb3: Optional[pulumi.Input[Sequ... | [
"0.782005",
"0.72253287",
"0.6508231",
"0.6418846",
"0.60830736",
"0.60157984",
"0.59518415",
"0.5826727",
"0.5800157",
"0.565689",
"0.5629276",
"0.56056476",
"0.5523971",
"0.5518003",
"0.5461124",
"0.54498684",
"0.5429909",
"0.54204965",
"0.54161054",
"0.5411822",
"0.5406165... | 0.65651757 | 2 |
The ID of the GA instance. | def JQIW(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'accelerator_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def OyzV(YKHO):\n return YKHO.__id",
"def UVlm(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def j42G(YKHO):\n return YKHO._google_id",
"def unpH(YKHO):\n ret... | [
"0.74904877",
"0.7415844",
"0.73839885",
"0.7316879",
"0.7316879",
"0.73164403",
"0.73024017",
"0.729295",
"0.7273794",
"0.7242831",
"0.723836",
"0.72374445",
"0.72374445",
"0.72374445",
"0.72374445",
"0.72258496",
"0.72258496",
"0.72258496",
"0.72258496",
"0.72258496",
"0.72... | 0.0 | -1 |
The ID of the endpoint group. | def ds_6(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'endpoint_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ds_6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_group_id')",
"def id(YKHO):\n return YKHO._group",
"def hE03(YKHO):\n return YKHO._id",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE0... | [
"0.87171066",
"0.8056731",
"0.8042457",
"0.8007308",
"0.8007308",
"0.7753101",
"0.7753101",
"0.7753101",
"0.7722578",
"0.7675036",
"0.7661746",
"0.7552041",
"0.7439207",
"0.73402745",
"0.73263025",
"0.7250136",
"0.7250136",
"0.7250136",
"0.72194743",
"0.72194743",
"0.72194743... | 0.83692557 | 1 |
The ID of the listener. | def ZzAz(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'listener_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZzAz(YKHO) -> str:\n return qe4Y.get(YKHO, 'listener_id')",
"def ZzAz(YKHO) -> str:\n return qe4Y.get(YKHO, 'listener_id')",
"def ZzAz(YKHO) -> str:\n return qe4Y.get(YKHO, 'listener_id')",
"def ZzAz(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'listener_id')",
"def ZzAz(YKHO) -> qe4Y... | [
"0.9106911",
"0.9106911",
"0.9106911",
"0.879295",
"0.879295",
"0.8778011",
"0.80371755",
"0.7770768",
"0.76732135",
"0.7539775",
"0.73272634",
"0.72096616",
"0.69974947",
"0.6852207",
"0.6827058",
"0.6815371",
"0.68066704",
"0.68060124",
"0.6797553",
"0.6754734",
"0.675169",... | 0.8458395 | 7 |
The status of the Custom Routing Endpoint Traffic Policy. | def jGRS(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n if 'status' in YKHO._prop_dict:\n if isinstance(YKHO._prop_dict['status'], tKe4):\n return YKHO._prop_dict['status']\n else:\n YKHO._prop_dict['status'] = OkC6(YKHO._prop_dict['status'])\n return YKHO._prop_dict['status']\n return None",
"def... | [
"0.6547827",
"0.65099645",
"0.6461354",
"0.6461354",
"0.6461354",
"0.63963133",
"0.6373368",
"0.63640386",
"0.6340081",
"0.6331104",
"0.631457",
"0.6312065",
"0.6310273",
"0.6310256",
"0.6305132",
"0.62586564",
"0.62479603",
"0.62479603",
"0.62479603",
"0.62479603",
"0.624796... | 0.0 | -1 |
Get an existing CustomRoutingEndpointTrafficPolicy 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, JQIW: Optional[pulumi.Input[str]]=None, UTX6: Optional[pulumi.Input[str]]=None, JlxN: Optional[pulumi.Input[str]]=None, ds_6: Optional[pulumi.Input[str]]=None, _R4q: Optional[pulumi.Input[str]]=None, ZzAz: Optional[pulumi.Input[str]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, Zid4: Optional[pulumi.Input[str]]=None, mUlj: Optional[pulumi.Input[str]]=None, jGRS: Optional[pulumi.Input[str]]=None, c8T6: Optional[pulumi.Input[str]]=None, HWCg: Optional[pulumi.Input[str]]=None) -> 'InterRegionTrafficQosPo... | [
"0.60383314",
"0.5898164",
"0.54942995",
"0.5465016",
"0.52798486",
"0.52389556",
"0.51301444",
"0.5001591",
"0.5001516",
"0.4921867",
"0.48477647",
"0.48472804",
"0.48276007",
"0.48225462",
"0.47889128",
"0.47813886",
"0.47464636",
"0.4738759",
"0.47213665",
"0.46819428",
"0... | 0.76101273 | 0 |
The ID of the GA instance. | def JQIW(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'accelerator_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def OyzV(YKHO):\n return YKHO.__id",
"def UVlm(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def j42G(YKHO):\n return YKHO._google_id",
"def unpH(YKHO):\n ret... | [
"0.74904877",
"0.7415844",
"0.73839885",
"0.7316879",
"0.7316879",
"0.73164403",
"0.73024017",
"0.729295",
"0.7273794",
"0.7242831",
"0.723836",
"0.72374445",
"0.72374445",
"0.72374445",
"0.72374445",
"0.72258496",
"0.72258496",
"0.72258496",
"0.72258496",
"0.72258496",
"0.72... | 0.0 | -1 |
The ID of the endpoint group. | def ds_6(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'endpoint_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ds_6(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint_group_id')",
"def id(YKHO):\n return YKHO._group",
"def hE03(YKHO):\n return YKHO._id",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"de... | [
"0.83692557",
"0.8056731",
"0.8042457",
"0.8007308",
"0.8007308",
"0.7753101",
"0.7753101",
"0.7753101",
"0.7722578",
"0.7675036",
"0.7661746",
"0.7552041",
"0.7439207",
"0.73402745",
"0.73263025",
"0.7250136",
"0.7250136",
"0.7250136",
"0.72194743",
"0.72194743",
"0.72194743... | 0.87171066 | 0 |
The ID of the listener. | def ZzAz(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'listener_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZzAz(YKHO) -> str:\n return qe4Y.get(YKHO, 'listener_id')",
"def ZzAz(YKHO) -> str:\n return qe4Y.get(YKHO, 'listener_id')",
"def ZzAz(YKHO) -> str:\n return qe4Y.get(YKHO, 'listener_id')",
"def ZzAz(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'listener_id')",
"def ZzAz(YKHO) -> h8nf[... | [
"0.9106911",
"0.9106911",
"0.9106911",
"0.8778011",
"0.8458395",
"0.8458395",
"0.80371755",
"0.7770768",
"0.76732135",
"0.7539775",
"0.73272634",
"0.72096616",
"0.69974947",
"0.6852207",
"0.6827058",
"0.6815371",
"0.68066704",
"0.68060124",
"0.6797553",
"0.6754734",
"0.675169... | 0.879295 | 4 |
The status of the Custom Routing Endpoint Traffic Policy. | def jGRS(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n if 'status' in YKHO._prop_dict:\n if isinstance(YKHO._prop_dict['status'], tKe4):\n return YKHO._prop_dict['status']\n else:\n YKHO._prop_dict['status'] = OkC6(YKHO._prop_dict['status'])\n return YKHO._prop_dict['status']\n return None",
"def... | [
"0.6547656",
"0.65101266",
"0.64596957",
"0.64596957",
"0.64596957",
"0.63952667",
"0.6371959",
"0.6362727",
"0.633881",
"0.63300335",
"0.63138664",
"0.63115156",
"0.6309228",
"0.6309074",
"0.6304812",
"0.6258032",
"0.62463796",
"0.62463796",
"0.62463796",
"0.62463796",
"0.62... | 0.0 | -1 |
Verify Deleter component behavior when run as a script. Test to make sure running the Deleter as a script does the setup work that we expect and then launches the deleter service. | async def test_script_main(GPtr, AZgw, Ehsq):
for H5ew in GPtr.keys():
Ehsq.setenv(H5ew, GPtr[H5ew])
Wqg_ = AZgw.patch('asyncio.get_event_loop')
aa7F = AZgw.patch('logging.getLogger')
LmC3 = AZgw.patch('lta.deleter.status_loop')
KRnu = AZgw.patch('lta.deleter.work_loop')
b8V_()
Wqg_.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_deleter_run(GPtr, AZgw):\n N1VT = AZgw.MagicMock()\n XP5J = EsNu(GPtr, N1VT)\n XP5J._do_work = zrRO()\n await XP5J.run()\n XP5J._do_work.assert_called()",
"def ypgw(YKHO):\n Aofo = YKHO.runner.invoke(WdU4.cli, ['setup', 'delete'], input='n\\n')\n YKHO.assertEqual(Aofo.exit_cod... | [
"0.6265655",
"0.6236453",
"0.5997123",
"0.59468085",
"0.5899435",
"0.56390345",
"0.56278884",
"0.55946267",
"0.558757",
"0.5585469",
"0.55731493",
"0.5550661",
"0.5549767",
"0.5512597",
"0.5453055",
"0.54352415",
"0.54200995",
"0.53758013",
"0.534663",
"0.5342097",
"0.5317777... | 0.0 | -1 |
Test that _delete_bundle attempts to delete a Bundle. | async def test_deleter_delete_bundle(GPtr, AZgw):
N1VT = AZgw.MagicMock()
TxK5 = AZgw.patch('rest_tools.client.RestClient', new_callable=zrRO)
jFXQ = AZgw.patch('os.remove', new_callable=CFMy)
XP5J = EsNu(GPtr, N1VT)
await XP5J._delete_bundle(TxK5, {'uuid': 'c4b345e4-2395-4f9e-b0eb-9cc1c9cdf003', 'b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cHDs(YKHO):\n pass",
"async def test_deleter_delete_bundle_raises(GPtr, AZgw):\n N1VT = AZgw.MagicMock()\n TxK5 = AZgw.patch('rest_tools.client.RestClient.request', new_callable=zrRO)\n TxK5.return_value = {'bundle': {'one': 1}}\n bf6X = AZgw.patch('lta.deleter.Deleter._delete_bundle', new_cal... | [
"0.7735599",
"0.6880295",
"0.6785166",
"0.66929287",
"0.66807514",
"0.6627249",
"0.6568472",
"0.6557792",
"0.65478677",
"0.6508988",
"0.65059435",
"0.63601476",
"0.6313739",
"0.6302595",
"0.62975156",
"0.62945664",
"0.6249865",
"0.6171922",
"0.61523885",
"0.6101641",
"0.61007... | 0.76512027 | 1 |
Round number of repeats based on depth multiplier. | def Lh9z(DVQL, Reel):
return int(epAf.ceil(Reel * DVQL)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _6yG(YKHO, DVQL):\n return int(epAf.ceil(YKHO.depth_coefficient * DVQL))",
"def Lh9z(DVQL):\n return int(epAf.ceil(Reel * DVQL))",
"def _6yG(YKHO, DVQL, Reel):\n if not Reel:\n return DVQL\n return int(epAf.ceil(Reel * DVQL))",
"def Lh9z(DVQL, YOQM):\n pSDG = YOQM\n if not pSDG:\... | [
"0.8876546",
"0.87485105",
"0.86348873",
"0.85847086",
"0.8439529",
"0.83897537",
"0.83897537",
"0.83897537",
"0.8308418",
"0.77939695",
"0.6887175",
"0.6887175",
"0.6861657",
"0.6199542",
"0.6199542",
"0.6029677",
"0.5980465",
"0.59490407",
"0.59474444",
"0.5848384",
"0.5833... | 0.8589512 | 3 |
Get json from local file. | def c3ht(nUeQ):
with open(nUeQ, 'r', encoding='utf8') as eHNT:
wwU3 = qQXR.load(eHNT)
return wwU3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SJOK(nUeQ):\n with open(nUeQ) as KAfx:\n return qQXR.load(KAfx)",
"def c3ht(Ux0P):\n Aofo = qQXR.load(open(Ux0P, 'r'))\n return Aofo",
"def cHUw(YKHO, pmON):\n with open(pmON) as eHNT:\n return qQXR.load(eHNT)",
"def W5P5(mWFP):\n with open(mWFP) as U50w:\n return qQXR... | [
"0.82337254",
"0.8208683",
"0.7920694",
"0.783677",
"0.7824961",
"0.77196395",
"0.7690869",
"0.76279944",
"0.7616185",
"0.76052725",
"0.7528612",
"0.75224805",
"0.75095755",
"0.7508645",
"0.7495749",
"0.74929076",
"0.749044",
"0.745639",
"0.7452924",
"0.74390274",
"0.7410339"... | 0.7351579 | 27 |
Find appropriate least dataset in local according to num. | def j9mY(RRlC, ASFE, y6xN):
awrp = oyIN.Inf
for eHNT in RRlC:
pu8V = ZbWC.split('[-.]', eHNT)
if y6xN in pu8V:
for jbXL in pu8V:
if jbXL.isdigit():
mLGw = int(jbXL)
if ASFE <= mLGw < awrp:
awrp = mLGw
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ztz1(XgSV, RZL7, sB1G, ASFE, y6xN):\n awrp = oyIN.Inf\n for G1Hx, Ty9i in XgSV.items():\n if RZL7 in G1Hx and y6xN in G1Hx and (sB1G in G1Hx):\n pu8V = ZbWC.split('[-.]', G1Hx)\n for jbXL in pu8V:\n if jbXL.isdigit():\n mLGw = int(jbXL)\n ... | [
"0.60515654",
"0.5806434",
"0.53540474",
"0.5349064",
"0.5164306",
"0.5147884",
"0.514781",
"0.51312685",
"0.51193017",
"0.5078722",
"0.50693583",
"0.5065835",
"0.50539136",
"0.50523007",
"0.50350106",
"0.5018262",
"0.50050765",
"0.49885857",
"0.49791822",
"0.49589893",
"0.49... | 0.6678268 | 0 |