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 |
|---|---|---|---|---|---|---|
Return tuple index from string | def sDB2(KCHu):
KCHu = CBky(KCHu)
if KCHu == '.':
return ()
return tuple(KCHu.split('/')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vn7Z(KCHu):\n return int(KCHu[KCHu.find('[') + 1:KCHu.find(']')])",
"def d6pt(YKHO, WKvO):\n if isinstance(WKvO, str):\n return YKHO.string_to_index[WKvO]\n elif isinstance(WKvO, tuple):\n return YKHO.tuple_to_index[WKvO]\n else:\n raise ValueError('x should be tuple or strin... | [
"0.7459661",
"0.70794404",
"0.6811724",
"0.66307557",
"0.65761364",
"0.65267617",
"0.6502999",
"0.63448",
"0.6311195",
"0.63108635",
"0.6308044",
"0.62322056",
"0.61838686",
"0.61797583",
"0.61797583",
"0.61797583",
"0.61420673",
"0.6119358",
"0.60885864",
"0.60844654",
"0.60... | 0.79893565 | 0 |
Push item onto heap, maintaining the heap invariant. | def jGbP(gGCN, ZfUD):
gGCN.append(ZfUD)
docK.siftdown(gGCN, 0, len(gGCN) - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, ZfUD: tuple):\n YKHO.__heap.append(ZfUD)\n YKHO.__sift_up(YKHO.__len__() - 1)",
"def _jXH(YKHO, ZfUD):\n _eVy.heappush(YKHO.heap, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.heap.append(YKHO.m * ZfUD)\n YKHO._sift_up()",
"def JPHp(YKHO, ZfUD):\n YKHO.heaplist.append(ZfUD)\n YKHO... | [
"0.90253484",
"0.8933334",
"0.8741391",
"0.8274943",
"0.82147866",
"0.81077504",
"0.8019698",
"0.7926902",
"0.7830162",
"0.7817611",
"0.7750294",
"0.77498114",
"0.7690737",
"0.76804686",
"0.7674637",
"0.76346713",
"0.7627365",
"0.7624954",
"0.7607674",
"0.758073",
"0.75679433... | 0.8270626 | 4 |
Return completed sequence as reward +1 if self completed sequence Otherwise 1 if other agent completed a sequence | def vwlo(YKHO, j18g, XeOP):
TRVV = m3e3(j18g, XeOP, YKHO.id).agents[YKHO.id].completed_seqs
J1b4 = f4Ge(j18g)
if YKHO.r0 < TRVV:
YKHO.r0 = TRVV
return YKHO.r0
elif YKHO.r1 > J1b4 * -1:
YKHO.r1 = J1b4 * -1
return YKHO.r1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xyVK(YKHO, OxZ5, Aofo, vOGg, jVqq):\n if OxZ5:\n vOGg += 0 if Aofo == 'Tie' else 10 if jVqq else -10\n else:\n vOGg += -1\n return vOGg",
"def vOGg(YKHO, oyg0, cPA3):\n if cPA3 == 'Tie':\n return 1\n elif cPA3 == 'Resume':\n return -1\n elif oyg0 == 'agent':\n ... | [
"0.660096",
"0.65818244",
"0.6541033",
"0.6474668",
"0.64602625",
"0.6446884",
"0.63306075",
"0.627449",
"0.62156755",
"0.6144254",
"0.6034267",
"0.60057455",
"0.6001978",
"0.5934301",
"0.5898835",
"0.5897956",
"0.58568347",
"0.5855334",
"0.585152",
"0.5850956",
"0.5830765",
... | 0.6523937 | 3 |
Compute the best action to take in a state. Note that if there are no legal actions, at the terminal state, return None. | def r8IL(YKHO, xASv, QTBn):
wgk9 = YKHO.valueFromQvalues(QTBn, xASv)
if YD8N(QTBn):
return None
else:
TmFF = [XeOP for XeOP in xASv if YKHO.getQvalue(QTBn, XeOP) == wgk9]
r8IL = tuKI.choice(TmFF)
return r8IL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePBn(YKHO, QTBn):\n qieF = YKHO.get_legal_actions(QTBn)\n if len(qieF) == 0:\n return None\n cx73 = YKHO.get_qvalue(QTBn, qieF[0])\n TJiw = [qieF[0]]\n for XeOP in qieF[1:]:\n BWXx = YKHO.get_qvalue(QTBn, XeOP)\n if BWXx > cx73:\n TJiw = [XeOP]\n cx73 =... | [
"0.8111166",
"0.80138415",
"0.7906326",
"0.77821064",
"0.7652555",
"0.7649821",
"0.7626857",
"0.76178986",
"0.75692207",
"0.756028",
"0.7509545",
"0.7494221",
"0.7467473",
"0.7442508",
"0.7412597",
"0.732331",
"0.7310414",
"0.7287622",
"0.72671753",
"0.72437954",
"0.7240179",... | 0.7579905 | 8 |
return the currently logged in user associated with this request | def TKWP(YKHO):
AcPe = QePW.get_cookie(YKHO.conf['auth.cookie_key'], secret=YKHO.conf['auth.cookie_secret'])
if AcPe:
with z1KK(YKHO.conf['auth.dbfile']) as N1p7:
try:
NtEF, D3lj = next(N1p7.execute("\n SELECT username, email\n FR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n if fnHH is None:\n G9jH.debug('User dict is None.')\n return None\n return YKHO.auth.store.user_model.get_by_id(fnHH['user_id'], namespace=jl6g.get_namespace())",
"def jF0d(YKHO):\n return YKHO.session_mgr.get_logged_in_user()",... | [
"0.8463737",
"0.84300995",
"0.83632684",
"0.8321918",
"0.8317239",
"0.8317239",
"0.8292623",
"0.82810175",
"0.81991047",
"0.8187159",
"0.8164048",
"0.8164048",
"0.8164048",
"0.81480056",
"0.8135569",
"0.8110923",
"0.81096816",
"0.80226153",
"0.80226153",
"0.80226153",
"0.8022... | 0.0 | -1 |
Unload a config entry. | async def async_unload_entry_gw(ajET: HomeAssistant, bTKY: ConfigEntry):
yT1k = all(await V7ok.gather(*(ajET.config_entries.async_forward_entry_unload(bTKY, UksD) for UksD in YJpT)))
ajET.data[Sugg][bTKY.entry_id][fP8R]()
if yT1k:
ajET.data[Sugg].pop(bTKY.entry_id)
return yT1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k",
"async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True",
"async def async_unload_entry(ajET: HomeAssis... | [
"0.697284",
"0.6888074",
"0.6779855",
"0.6747459",
"0.6689002",
"0.6657831",
"0.66162205",
"0.6603433",
"0.65925974",
"0.65595686",
"0.65411645",
"0.6507643",
"0.6507643",
"0.6507643",
"0.6507643",
"0.64977276",
"0.64931643",
"0.6486601",
"0.6486601",
"0.6486601",
"0.6486601"... | 0.5764828 | 82 |
Return the class of this device, from component DEVICE_CLASSES. | def rM2U(YKHO):
return YKHO._device_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return MQ2o.get(YKHO.sensor_data['model'])",
"def rM2U(YKHO):\n return YKHO.sensor_type['class']",
"def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')",
"def ZvYj(YKHO):\n return YfpN.get_class(YKHO.type)",
"def rM2U(YKHO):\n return u32P[YKHO.info_type]['devi... | [
"0.87266827",
"0.852074",
"0.8471363",
"0.8442806",
"0.83113384",
"0.83078414",
"0.8197917",
"0.81939846",
"0.8125181",
"0.8109455",
"0.8109455",
"0.8109455",
"0.8059611",
"0.8053818",
"0.8053818",
"0.80360585",
"0.80360585",
"0.8023502",
"0.7951035",
"0.7926857",
"0.78515744... | 0.8241434 | 10 |
test base model documentation self.assertNotEqual(len(models.__doc__), 0) self.assertNotEqual(len(models.base_model.__doc__), 0) | def FDIU(YKHO):
YKHO.assertNotEqual(len(mv1M.__doc__), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VwWe(YKHO):\n YKHO.assertTrue(len(rvDU.__doc__) > 0)",
"def a2bl(YKHO):\n YKHO.assertIsNotNone(KcDH.__doc__)",
"def lenX(YKHO):\n YKHO.assertIsNotNone(KcDH.__doc__)\n YKHO.assertIsNotNone(KcDH.__init__.__doc__)\n YKHO.assertIsNotNone(KcDH.save.__doc__)",
"def lenX(YKHO):\n YKHO.assertTr... | [
"0.853411",
"0.851514",
"0.83893543",
"0.82619375",
"0.812141",
"0.786481",
"0.77326053",
"0.76871467",
"0.73674875",
"0.7243505",
"0.71794033",
"0.716489",
"0.70583415",
"0.70485944",
"0.69695365",
"0.6913679",
"0.6836074",
"0.6823692",
"0.6803415",
"0.67909616",
"0.67525536... | 0.6317256 | 43 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True)
Ylbp.append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Reparent all children to the new block | def tVOj(YKHO, c9u9):
for aUGN in YKHO.children:
aUGN.parents.remove(YKHO)
c9u9.add_child(aUGN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fqgc(YKHO):\n if YKHO.parent and hasattr(YKHO.parent, 'add_child)'):\n for aUGN in YKHO._children:\n aUGN.x += YKHO.x\n aUGN.y += YKHO.y\n YKHO.parent.add_child(aUGN)\n YKHO._children = []\n YKHO.remove()",
"def se_Q(YKHO, _AKB):\n pass",
"def tVOj(YKHO, ... | [
"0.6631784",
"0.6490407",
"0.6353167",
"0.63093984",
"0.6288142",
"0.6228584",
"0.59935254",
"0.5980885",
"0.59628344",
"0.59349644",
"0.5917297",
"0.59031016",
"0.5896928",
"0.58631754",
"0.5781513",
"0.57493854",
"0.57493854",
"0.57475924",
"0.5735977",
"0.5719167",
"0.5706... | 0.86628354 | 0 |
Returns True or False if the value is set or unset. | def tYgd(XLMv, MTKo, WmM4=False):
Ylbp = NMoC(XLMv, MTKo, WmM4)
if Ylbp == WmM4:
return WmM4
if Ylbp.lower() == 'true' or Ylbp == '1':
return True
return WmM4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tWmy(YKHO):\n return hasattr(YKHO, '_value')",
"def tMjQ(YKHO) -> bool:\n ...",
"def YcPi(YKHO):\n if not YKHO.app.args.value is None or YKHO.app.args.value == '':\n return True\n else:\n return False",
"def eRwN(YKHO):\n return bool(YKHO.get_value())",
"def q7VK(YKHO, bIdP... | [
"0.69787174",
"0.6920298",
"0.6835076",
"0.67387396",
"0.66384107",
"0.65920794",
"0.6479605",
"0.6453722",
"0.64453083",
"0.64453083",
"0.64453083",
"0.64453083",
"0.64453083",
"0.6417013",
"0.6407997",
"0.6352897",
"0.6347799",
"0.6342986",
"0.6340991",
"0.63197124",
"0.630... | 0.0 | -1 |
Returns a random char using a string as it's alphabet | def R71E(ASFv):
hcXw = ASFv[icr8.randrange(len(ASFv))]
return hcXw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wAgY(KoG3: str) -> str:\n return KoG3[tuKI.randint(0, len(KoG3) - 1)]",
"def ORaO():\n return GLL2(char_choice=vIwR.ascii_letters)",
"def wAgY():\n return chr(ajWY(97, 122))",
"def CbOq():\n mLGw = tuKI.randint(0, 26 + 26 + 10)\n if mLGw < 26:\n return chr(mLGw + 65)\n mLGw -= 26... | [
"0.85989255",
"0.8566459",
"0.8453621",
"0.8356242",
"0.82302165",
"0.82215476",
"0.8190683",
"0.7799926",
"0.7756426",
"0.7650104",
"0.75570405",
"0.7464199",
"0.74516094",
"0.7404364",
"0.7345983",
"0.7248197",
"0.71465176",
"0.7106063",
"0.70963585",
"0.7091313",
"0.707313... | 0.8804219 | 0 |
Returns a string containing all characters from alphabet in random order. | def QEXj(gZgb):
qw7D = [Npgh for Npgh in gZgb]
zFiD = []
for YRbF in range(len(gZgb)):
zFiD.append(qw7D.pop(fmL7(qw7D)))
return zFiD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ORaO():\n return GLL2(char_choice=vIwR.ascii_letters)",
"def BWvy():\n return ''.join((tuKI.choice(vIwR.ascii_letters) for YRbF in range(6)))",
"def Xbd_(YRbF):\n return ''.join((Ih2K.choice(vIwR.ascii_letters) for WKvO in range(YRbF)))",
"def drFW():\n return GLL2(char_choice=vIwR.ascii_lett... | [
"0.8566082",
"0.7829491",
"0.78065264",
"0.78030956",
"0.77873456",
"0.7786689",
"0.76649487",
"0.76349944",
"0.7593901",
"0.7561787",
"0.7491714",
"0.74399364",
"0.7362568",
"0.7341765",
"0.7337101",
"0.7289436",
"0.7287332",
"0.7282114",
"0.726503",
"0.72393346",
"0.7237215... | 0.0 | -1 |
Reads first line from the file specified by filepath and returns it without the trailing new line. | def YO4k(VqRE):
ASFv = T_Uj.open(VqRE, encoding='utf-8').readline()
ASFv = ASFv[:-1]
return ASFv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGn_(Ux0P):\n Aofo = None\n with open(Ux0P, 'r') as eHNT:\n Aofo = eHNT.readline()\n Aofo = Aofo.rstrip('\\n')\n eHNT.close()\n return Aofo",
"def TW_O(nUeQ: str) -> str:\n with open(nUeQ) as eHNT:\n return eHNT.readline().split('\\n')[0]",
"def TW_O(Ux0P):\n try:... | [
"0.78080046",
"0.7526887",
"0.74067116",
"0.7003495",
"0.6996447",
"0.6974035",
"0.6884951",
"0.6541199",
"0.6525618",
"0.6525618",
"0.6496393",
"0.6460021",
"0.6454461",
"0.6443769",
"0.6334649",
"0.6317436",
"0.62485236",
"0.6187799",
"0.61429185",
"0.6129208",
"0.6078065",... | 0.0 | -1 |
Compute the gram matrix of X and Y (if Y is empty we compute the gram matrix for training comparing all the elements of X) usign the rbf kernel | def kvrI(EcVT, KMvS, fuBA=[]):
if len(fuBA) == 0:
XmJe = EcVT.shape[0]
Bg4l = oyIN.zeros((XmJe, XmJe), dtype=oyIN.float32)
for YRbF in range(XmJe):
for r845 in range(YRbF, XmJe):
Bg4l[YRbF, r845] = HbVf(EcVT[YRbF], EcVT[r845], KMvS)
Bg4l[r845, YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o9bN(WKvO, LVAh):\n nQ3j = (oyIN.dot(cC56[WKvO, :], cC56[LVAh, :]) + 1) ** 5\n '\\n sigma = 1\\n if np.ndim(x_train[x, :]) == 1 and np.ndim(x_train[y, :]) == 1:\\n Result = np.exp(- (np.linalg.norm(x_train[x, :] - x_train[y, :], 2)) ** 2 / (2 * sigma ** 2))\\n elif (np.ndim(x_train[x, :])... | [
"0.63944775",
"0.61379",
"0.5956246",
"0.59269893",
"0.5923523",
"0.5854087",
"0.58412397",
"0.5837221",
"0.5820182",
"0.5777014",
"0.57580966",
"0.57494974",
"0.5733653",
"0.5732807",
"0.5707223",
"0.56892216",
"0.56879246",
"0.5671535",
"0.56639284",
"0.56569475",
"0.565046... | 0.7913166 | 0 |
Get valid Offres for this Cagnotte. | def BzKk(YKHO) -> ZYvt:
return _ifq.objects.filter(proposition__cagnotte=YKHO, valide=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BzKk(YKHO) -> list[int]:\n KUnM: list[dict[str, int]] = [{}, {'valide': True}, {'paye': True}]\n return [YKHO.offre_set.filter(**eHNT).count() for eHNT in KUnM]",
"def tbc8(YKHO):\n return YKHO.expiration.aerosols(YKHO.mask)",
"def ZUas():\n return [vars(CGXC) for CGXC in ytOx]",
"def VZgG(YK... | [
"0.5582882",
"0.54721117",
"0.5402464",
"0.5298141",
"0.525203",
"0.5212415",
"0.52083105",
"0.5145217",
"0.51137483",
"0.5109835",
"0.5086796",
"0.50752497",
"0.5065085",
"0.50401497",
"0.5020969",
"0.5017466",
"0.50131255",
"0.50005555",
"0.49951112",
"0.49949393",
"0.49926... | 0.5904981 | 0 |
Get the advancement in percent of the goal for this Cagnotte. | def Eb4t(YKHO) -> int:
return int(round(100 * YKHO.somme() / YKHO.finances)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kd5R(YKHO):\n return (YKHO.get_percent() + 100) / 2",
"def His1(YKHO):\n return YKHO.bottle.pct()",
"def Z_NO(YKHO):\n return YKHO.percentage",
"def Z_NO(YKHO):\n return YKHO.percentage",
"def smj9(YKHO):\n if not (YKHO.votes and YKHO.score):\n return 0\n return 100 * (YKHO.get... | [
"0.73520815",
"0.7048747",
"0.6941846",
"0.6941846",
"0.6895525",
"0.68142676",
"0.6786697",
"0.67595285",
"0.67595285",
"0.6756571",
"0.6748007",
"0.6687695",
"0.6546592",
"0.6541772",
"0.65348536",
"0.64870733",
"0.64767617",
"0.6460417",
"0.6401927",
"0.6399915",
"0.638899... | 0.65741664 | 12 |
Get a list of number of [all, valid, payed] Offres for this Proposition. | def BzKk(YKHO) -> list[int]:
KUnM: list[dict[str, int]] = [{}, {'valide': True}, {'paye': True}]
return [YKHO.offre_set.filter(**eHNT).count() for eHNT in KUnM] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZgG(YKHO):\n return YKHO.game.get_payoffs()",
"def VZgG(YKHO):\n raise NotImplementedError",
"def rZF3(YKHO):\n n3PM = YKHO._df['nprops'].sum()\n return n3PM",
"def K5yt(YKHO):\n return YKHO.expedientepersona_set.filter(propietario=True).count()",
"def qDKj(YKHO):\n return YKHO.price... | [
"0.66346943",
"0.63965905",
"0.5823254",
"0.5818139",
"0.57787657",
"0.56784976",
"0.56576014",
"0.56438684",
"0.5620136",
"0.56012595",
"0.55562747",
"0.55546445",
"0.5526337",
"0.55237144",
"0.55154264",
"0.549721",
"0.5482786",
"0.5482786",
"0.54705316",
"0.5456392",
"0.54... | 0.7000213 | 0 |
Get the sum of all Offres for this Proposition. | def nGz5(YKHO) -> NUGf:
return uxGy(YKHO.offre_set.filter(valide=True), 'prix', output_field=FYrf.DecimalField()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sum(YKHO):\n return sum(YKHO.items())",
"def h4aS(YKHO):\n wjRY = 0.0\n for AliE in YKHO.drinks:\n wjRY = wjRY + AliE.get_price()\n for UJLR in YKHO.food:\n wjRY = wjRY + UJLR.get_price()\n return wjRY",
"def sum(YKHO):\n return YKHO.aggregate(oyIN.sum)",
"def a4vB(YKHO):\... | [
"0.6175785",
"0.60835445",
"0.60697144",
"0.60564274",
"0.605366",
"0.5993023",
"0.5979701",
"0.59639686",
"0.5963827",
"0.5963827",
"0.5963629",
"0.58991766",
"0.58899003",
"0.58854544",
"0.58044136",
"0.5787844",
"0.5766211",
"0.5763135",
"0.57045233",
"0.57026976",
"0.5702... | 0.56026983 | 26 |
Return the description of this Demande. | def zAg0(YKHO) -> str:
return YKHO.description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5do(YKHO):\n return YKHO.__description",
"def t5do(YKHO):\n return YKHO.__description",
"def t5do(YKHO) -> str:\n pass",
"def KUG7(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n re... | [
"0.83839744",
"0.8378097",
"0.835788",
"0.8341018",
"0.83334017",
"0.83334017",
"0.83334017",
"0.83334017",
"0.83248985",
"0.82662314",
"0.82662314",
"0.82662314",
"0.82662314",
"0.82662314",
"0.82662314",
"0.82662314",
"0.82662314",
"0.82662314",
"0.82662314",
"0.82662314",
... | 0.0 | -1 |
Gets the stored of this InlineResponse2003. | def uhPm(YKHO) -> int:
return YKHO._stored | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return YKHO.data",
"def NMoC(YKHO):\n return YKHO.data",
"def yLtf(YKHO):\n return YKHO._result",
"def NMoC(YKHO):\n return YKHO.get_data()",
"def gje0(YKHO):\n return YKHO._response_variable",
"def QfZV(YKHO):\n return YKHO._store_data",
"def VUF1(YKHO):\n return... | [
"0.6243855",
"0.61981964",
"0.6130884",
"0.60398877",
"0.603954",
"0.6015542",
"0.5962877",
"0.5939602",
"0.5935533",
"0.5869409",
"0.5869409",
"0.5869409",
"0.5869409",
"0.5830511",
"0.5830511",
"0.5830511",
"0.58221245",
"0.58221245",
"0.58221245",
"0.58017886",
"0.5800307"... | 0.5601515 | 47 |
This function returns True if num is even else False | def BnE9(FGW3):
if FGW3 % 2 == 0:
return True
else:
return False
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubP8(mLGw: int) -> bool:\n return mLGw % 2 == 0",
"def ubP8(mLGw):\n return mLGw % 2 == 0",
"def ubP8(FGW3):\n if FGW3 % 2 == 0:\n return True\n else:\n return False",
"def ubP8(FGW3: int) -> bool:\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def... | [
"0.88295573",
"0.87483865",
"0.85842067",
"0.8510712",
"0.8421976",
"0.8371641",
"0.8322239",
"0.83186007",
"0.8310539",
"0.8284932",
"0.820618",
"0.81311196",
"0.8113936",
"0.80517083",
"0.8040163",
"0.7978397",
"0.7962383",
"0.7903109",
"0.7902896",
"0.78983",
"0.78947496",... | 0.8506438 | 4 |
Version versions that are longer are not equal, regardless of name | def mTo3(YKHO):
hQHm = L6MF.Version(version='1.2.3', name='foo')
jlSq = L6MF.Version(version='1.2', name='bar')
YKHO.assertFalse(hQHm == jlSq)
YKHO.assertFalse(jlSq == hQHm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mTo3(YKHO):\n hQHm = L6MF.Version(version='1.2.3', name='foo')\n jlSq = L6MF.Version(version='1.2', name='bar')\n YKHO.assertTrue(hQHm != jlSq)\n YKHO.assertTrue(jlSq != hQHm)",
"def NxUk(jzdc, Fg_i):\n if jzdc:\n jzdc = IAob.version.LooseVersion(jzdc)\n Fg_i = IAob.version.Loose... | [
"0.6839004",
"0.68267447",
"0.67950994",
"0.67762035",
"0.67679363",
"0.6719986",
"0.66870314",
"0.66812545",
"0.6647304",
"0.66426194",
"0.6610771",
"0.6610771",
"0.6591535",
"0.65827906",
"0.6570027",
"0.65579885",
"0.65551233",
"0.65449727",
"0.65377486",
"0.652605",
"0.65... | 0.6837805 | 1 |
returns text and hashtags in a separate list removes mentions and URLs | def Th7q(Mau6):
l5Ny = Mau6.lower()
HJbV = ZbWC.findall('#([a-zA-Z0-9_]{1,50})', l5Ny)
l5Ny = ZbWC.sub('http\\S+', '', l5Ny)
rq7K = ZbWC.sub('@[A-Za-z0-9_]+', '', l5Ny)
rq7K = ZbWC.sub('#[A-Za-z0-9_]+', '', rq7K)
return (rq7K, HJbV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asgQ(YKHO, dVbA):\n if grFq.hashtagre is None:\n grFq.hashtagre = ZbWC.compile('|'.join(map(ZbWC.escape, dVbA)))\n return [[r8hN.group(0).replace('#', '', 1), r8hN.span()] for r8hN in grFq.hashtagre.finditer(YKHO.text)]",
"def xeUF(Zqd2):\n qh0o = []\n for Mau6 in Zqd2:\n UfhV = ZbW... | [
"0.72237986",
"0.72097373",
"0.7150658",
"0.7090971",
"0.7040362",
"0.6964086",
"0.6777448",
"0.66975623",
"0.65857905",
"0.65670365",
"0.6549303",
"0.6483093",
"0.6408876",
"0.636152",
"0.6345191",
"0.6328474",
"0.63196975",
"0.6235232",
"0.62311995",
"0.62172586",
"0.619169... | 0.7287602 | 0 |
Escape `+ ^ % ~ { } [ ] ( )` by putting them within curly braces. | def r25n(vIwR):
return ZbWC.sub('([+^%~{}\\[\\]()])', '{\\1}', vIwR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a_4o(SRYB):\n return f'({ZbWC.escape(SRYB)})'",
"def KDSv(YSA3):\n YSA3 = YSA3.replace('\\\\', '\\\\\\\\')\n YSA3 = YSA3.replace('(', '\\\\(')\n YSA3 = YSA3.replace(')', '\\\\)')\n YSA3 = YSA3.replace('+', '\\\\+')\n YSA3 = YSA3.replace('-', '\\\\-')\n YSA3 = YSA3.replace(':', '\\\\:')\n... | [
"0.6206434",
"0.6192753",
"0.6033577",
"0.58778614",
"0.5805936",
"0.5723644",
"0.5689772",
"0.56493694",
"0.5648915",
"0.5610038",
"0.5569773",
"0.55538535",
"0.55222386",
"0.5518014",
"0.55051255",
"0.5491474",
"0.5488566",
"0.54707247",
"0.54246294",
"0.53857386",
"0.53746... | 0.69137347 | 0 |
Return the email address to satisfy FlaskLogin's requirements. | def unpH(YKHO):
return YKHO.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return ... | [
"0.7461588",
"0.7461588",
"0.7461588",
"0.7461588",
"0.74425983",
"0.74425983",
"0.74425983",
"0.7438113",
"0.7438113",
"0.7438113",
"0.7438113",
"0.7438113",
"0.7438113",
"0.7438113",
"0.7419648",
"0.72887826",
"0.7231647",
"0.7226117",
"0.7203963",
"0.7173964",
"0.71455765"... | 0.0 | -1 |
Return True if the user is authenticated. | def rts1(YKHO):
return YKHO.authenticated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n return YKHO.user is not None and YKHO.state == yTCL.authenticated",
"def rts1(YKHO):\n return bool(Vu5X())",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n retu... | [
"0.8739372",
"0.87086535",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.8613915",
"0.8609252",
"0.8578436",
"0.83723366",
"0.83587176",
"0.8258534",
"0.82273275",
"0.8209421",
"0.8200795",
"0.8174884",
"0.81280386",
"0.8... | 0.8580474 | 22 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn():\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def _JeQ(YKHO):\n return YKHO._is_anonymous_access_allowed",
"def rts1(YKHO):\n return False",
"def SzmQ(rxPi):\n rxPi = rxPi or koZo()\n return str(rxPi.get('user_id')) == Cj1w",
"def... | [
"0.85624325",
"0.83800477",
"0.82456774",
"0.7815806",
"0.7576082",
"0.72904116",
"0.72619915",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72338396",
"0.715833",
"0.7106215",
"0.70944613",
"0.70567185",
"0.70209265",
"... | 0.8360155 | 21 |
Generate an RGB colormap as a function of the lidar range. | def LK8i(HFMc: NDArrayFloat) -> NY8q:
range = HFMc[..., 2]
range = oyIN.round(range).astype(int)
qfpW = QrM1.get_cmap('turbo')(oyIN.arange(0, range.max() + 1))
qfpW = qfpW[range]
cZxq: NY8q = (qfpW * 255.0).astype(oyIN.uint8)
return cZxq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def Vbhv():\n Mkmy = '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0... | [
"0.6731256",
"0.66647995",
"0.6652849",
"0.6652849",
"0.6652849",
"0.6652849",
"0.6648341",
"0.66214395",
"0.6565707",
"0.6444118",
"0.63473815",
"0.62825024",
"0.6269329",
"0.62619907",
"0.62564105",
"0.62214714",
"0.6200118",
"0.6158911",
"0.61488414",
"0.61409956",
"0.6118... | 0.64667225 | 9 |
This function will bounce the ball off a horizontal surface (not a vertical one) | def riZZ(YKHO, yk4i):
YKHO.direction = (180 - YKHO.direction) % 360
YKHO.direction -= yk4i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riZZ(YKHO):\n if YKHO.x > TVTK - YKHO.size:\n YKHO.x = 2 * (TVTK - YKHO.size) - YKHO.x\n YKHO.angle = YKHO.angle * -1\n YKHO.speed *= zwOg\n elif YKHO.x < YKHO.size:\n YKHO.x = 2 * YKHO.size - YKHO.x\n YKHO.angle = YKHO.angle * -1\n YKHO.speed *= zwOg\n if YKH... | [
"0.7938347",
"0.775263",
"0.7560556",
"0.7509976",
"0.7218989",
"0.71924436",
"0.7166426",
"0.7049132",
"0.69999367",
"0.69923764",
"0.6980749",
"0.69763756",
"0.697183",
"0.69567215",
"0.68515444",
"0.6842405",
"0.6791582",
"0.678786",
"0.67670965",
"0.67422974",
"0.67243564... | 0.66323644 | 23 |
Reshape a numpy array, which is input_shape=(height, width), as opposed to input_shape=(width, height) for cv2 | def UVJ7(VXjJ, GhuM):
H2v2, TVTK = GhuM
return XC5k.resize(VXjJ, (TVTK, H2v2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qJN0(YKHO, YpkZ):\n gF_I = oyIN.transpose(YpkZ, (1, 2, 0))\n gF_I = oyIN.flipud(gF_I)\n gF_I = oyIN.reshape(gF_I, (1, gxm5[0], gxm5[1], gxm5[2]))\n return gF_I",
"def FeRX(qw7D):\n return oyIN.array(qw7D, dtype=float).reshape(1, len(qw7D))",
"def SNeg(Ddli):\n BLg0 = oyIN.size(Ddli)\n ... | [
"0.75426155",
"0.7538381",
"0.750343",
"0.74050325",
"0.7379166",
"0.7118144",
"0.70271003",
"0.69979405",
"0.6938404",
"0.68963325",
"0.6891859",
"0.68788457",
"0.673821",
"0.6674105",
"0.663945",
"0.6624979",
"0.66099364",
"0.6590305",
"0.6543726",
"0.6521954",
"0.64937097"... | 0.729674 | 6 |
Generate a word by putting letters together in semirandom order. Based on an old mIRC script of mine | def _oAf(YKHO, SGPK=None):
lzi6 = ['a', 'e', 'i', 'o', 'u']
rjAh = ['y']
lkcV = ['b', 'c', 'd', 'f', 'g', 'h', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't']
YfX1 = ['j', 'q', 'v', 'w', 'x', 'z']
IHfV = 5
CAUy = 50
DVQL = 1
if SGPK and len(SGPK) > 0:
DVQL = aFsc.parseInt(SGPK[0], 1, 1, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FjP9():\n KoG3 = [chr(YRbF) for YRbF in range(ord('a'), ord('z') + 1)] + [chr(YRbF) for YRbF in range(ord('A'), ord('Z') + 1)]\n u54L = 4 + tuKI.randint(0, 4)\n str = ''\n for YRbF in range(u54L):\n str = str + tuKI.choice(KoG3)\n return str",
"async def generate(YKHO):\n VZxz = ''\n... | [
"0.7348327",
"0.72831905",
"0.71383727",
"0.70475894",
"0.70081955",
"0.7002903",
"0.69867027",
"0.6961003",
"0.6905931",
"0.6830481",
"0.6811186",
"0.6804953",
"0.6794218",
"0.6788312",
"0.6758187",
"0.67534137",
"0.67459625",
"0.6734872",
"0.67283314",
"0.6724369",
"0.66958... | 0.66741556 | 23 |
Create a Dataset with given parameters | def FIMM(YKHO, NDln, J1iL=None, wAGG=False, OkyP=None, r9WU=None, PdPk='raise', SFa2=(224, 224), dvgN=0, kHgf='center'):
if r9WU and OkyP:
raise WoHy('Please specify only the folder for files or the generator object')
if r9WU is None and OkyP is None:
raise WoHy("Both the folder for files and th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6",
"def PK3w(YKHO, jQ3Z, **B2fa):\n ... | [
"0.7901727",
"0.751719",
"0.7508082",
"0.7474049",
"0.74200004",
"0.71773547",
"0.71231073",
"0.6902051",
"0.6887092",
"0.6882389",
"0.6812367",
"0.6791436",
"0.6779203",
"0.67541957",
"0.6744004",
"0.6700447",
"0.6638474",
"0.6637085",
"0.6633394",
"0.662852",
"0.6613329",
... | 0.0 | -1 |
Check if two direction are the same | def IzcV(YKHO, Z9rn):
if YKHO == Z9rn:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DEc2(Emd4, *F_On, tTpl=1e-09):\n vC9B = len(F_On)\n if vC9B == 2:\n hQHm = F_On[0]\n jlSq = F_On[1]\n return abs(hQHm.angle - jlSq.angle) % (2 * epAf.pi) < tTpl\n else:\n for YRbF in range(vC9B):\n for r845 in range(YRbF + 1, vC9B):\n if not Emd4.s... | [
"0.67011553",
"0.6545725",
"0.653401",
"0.64784795",
"0.6411828",
"0.63874024",
"0.63691133",
"0.63128185",
"0.6271442",
"0.6242837",
"0.62306064",
"0.6217841",
"0.62128127",
"0.6200708",
"0.6191165",
"0.61680114",
"0.6160807",
"0.6158463",
"0.6154551",
"0.6137575",
"0.613511... | 0.0 | -1 |
Return absolute filename without extension | def chx7(YKHO, P4t4):
return P4t4.recordingsPath.child(YKHO.filename).path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Juou(IznC):\n L3tS = Hy7s.path.abspath(IznC)\n return L3tS",
"def HcGC(Ux0P):\n P8oC = Hy7s.path.basename(Ux0P)\n return Hy7s.path.splitext(P8oC)[0]",
"def JjUH(VqRE: str) -> str:\n return str(oAb3.Path(VqRE).with_suffix(''))",
"def IhdV(Ux0P):\n lBW9 = Hy7s.path.abspath(Hy7s.path.dirna... | [
"0.78481704",
"0.75869185",
"0.7576942",
"0.75079584",
"0.74541324",
"0.737877",
"0.73689896",
"0.7278024",
"0.72766817",
"0.72753686",
"0.72712547",
"0.72666395",
"0.72407055",
"0.72376615",
"0.7237291",
"0.7233161",
"0.72288567",
"0.72287464",
"0.72044635",
"0.72007036",
"0... | 0.0 | -1 |
Check to see if the player or something is standing near the bomb when it explodes | def HTxc(YKHO, uZb4, ypsO):
if uZb4[0] == ypsO[0]:
if uZb4[1] in range(ypsO[1] - 2 * 30, ypsO[1] + 3 * 30, 30):
return True
else:
return False
elif uZb4[1] == ypsO[1]:
if uZb4[0] in range(ypsO[0] - 2 * 30, ypsO[0] + 3 * 30, 30):
return True
els... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bFGp(YKHO):\n return any((Z9rn.cX + Z9rn.width >= YKHO.end_location for Z9rn in YKHO.enemies))",
"def VtS_(YKHO):\n return YKHO.lives() < 0",
"def Frb8(YKHO):\n return YKHO.lives == 0",
"def vcyy(YKHO, YimI: dict):\n bJ0u = False\n kpkG = YimI['self'][3]\n kpkG = list(kpkG)\n for m9X... | [
"0.6627156",
"0.6428905",
"0.6339003",
"0.62968373",
"0.6255475",
"0.62122405",
"0.62059975",
"0.61984617",
"0.61965895",
"0.6184373",
"0.617349",
"0.61086166",
"0.60775405",
"0.6074266",
"0.6067661",
"0.6065833",
"0.60267395",
"0.6026282",
"0.601978",
"0.601434",
"0.6012972"... | 0.61070997 | 12 |
setting the model's dropout rate to 0 | def jKC_(YKHO):
def Skr7(gEmA):
if isinstance(gEmA, U78l.Dropout):
gEmA.p = 0
YKHO.apply(Skr7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dpQ2(YKHO, TyPQ=0.0):\n zfxz = oyIN.zeros((1,))\n Z6gX = zfxz + TyPQ\n YKHO.drop_rate.set_value(Ap8e(Z6gX))\n return",
"def hr1G(YKHO, hr1G):\n if hr1G >= 1.0:\n raise ValueError('The `dropout` must be < 1.')\n YKHO._internal.set_dropout(float(hr1G))",
"def FIMM(YKHO, mVUw, **B2fa)... | [
"0.73202485",
"0.7097229",
"0.6755646",
"0.6518173",
"0.6518173",
"0.6518173",
"0.6459747",
"0.6352619",
"0.630998",
"0.59556454",
"0.5919821",
"0.58942986",
"0.5875477",
"0.58311474",
"0.57800645",
"0.57659876",
"0.5748509",
"0.5724652",
"0.57129025",
"0.570234",
"0.5697805"... | 0.6827436 | 2 |
returns all positions of origin for a given protein identified by its transcript_id | def TnvK(YKHO, y8x7):
return YKHO.proteinPos.get(y8x7, []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNX(YKHO, ByBU):\n return YKHO._do(YKHO._get_base, 'positions', ByBU)",
"def wJ89(YKHO):\n return dQgj.Position.all_from_account_id(YKHO.id)",
"def wJ89(YKHO, Z31E=None) -> x1iM[DhiK]:\n if Z31E is None:\n Z31E = YKHO.default_account_id\n bD7m = f'/v1/accounts/{Z31E}/positions'\n nPr... | [
"0.6135871",
"0.5831772",
"0.56497216",
"0.5620489",
"0.55843717",
"0.55106676",
"0.54799193",
"0.544478",
"0.5430569",
"0.5427946",
"0.5398808",
"0.53546363",
"0.53124326",
"0.5289352",
"0.5264125",
"0.5256786",
"0.5247895",
"0.52344173",
"0.5188332",
"0.51806706",
"0.517128... | 0.72142464 | 0 |
Change the `User.usrAccessExpiresAt` to today's date + 180 days | def xNeB():
uJjO = QePW.form.get('user_id')
TWq2 = Hrl5(180)
CBIr = dcpE.get_by_id(uJjO)
CBIr = dcpE.update(CBIr, access_expires_at=TWq2)
return GX_8({'message': 'Updated expiration date to {}'.format(TWq2)}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b2y6(YKHO) -> qcWV:\n return YKHO.firstAccessDate + fCoM(seconds=YKHO.expirePeriodInSeconds)",
"def yxS0(YKHO, BWXx):\n BWXx = gnPz.parse_valid_date(BWXx)\n YKHO._set_attr('expires', BWXx)",
"def bdZ1(YKHO):\n YKHO.expiration = qcWV.now() + fCoM(seconds=YKHO.expires_in - 10)\n G9jH.debug('To... | [
"0.70153236",
"0.667454",
"0.65073955",
"0.6476731",
"0.6299011",
"0.62826693",
"0.6258953",
"0.6243003",
"0.6140046",
"0.5946309",
"0.5940055",
"0.5932952",
"0.5900719",
"0.58820456",
"0.58177894",
"0.57764006",
"0.5745565",
"0.5712269",
"0.56682134",
"0.5653572",
"0.56215",... | 0.61525667 | 8 |
Retrieves the configuration value specified. | def tgzD(ZfUD: str) -> uLKX[str, int]:
nUeQ = bsaa('config.json')
BWXx = nUeQ.get(ZfUD)
if BWXx is None:
raise Exception(f'Your config is out of date! Missing a value for {ZfUD}')
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZR0i(YKHO, mWFP):\n if mWFP in YKHO.config_values:\n return YKHO.config_values[mWFP]",
"def ge7L(YKHO, XLMv, H5ew):\n return GPtr.get(XLMv, H5ew)",
"def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)",
"def egFI(YKHO, H5ew):\n return YKHO.config[H5ew]",
"def Zmkp(YKHO, H5ew):\n ... | [
"0.8003153",
"0.78221416",
"0.77238125",
"0.75071114",
"0.7480084",
"0.7374818",
"0.73705477",
"0.73699105",
"0.7336914",
"0.7317879",
"0.73178285",
"0.7293462",
"0.72908235",
"0.7275754",
"0.7229134",
"0.718197",
"0.71777713",
"0.71609455",
"0.7141536",
"0.7138206",
"0.71246... | 0.6916398 | 37 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(DBQw, YKHO).__init__(*qIxc, **c_sp)
if YKHO.rcvTOW is None:
YKHO.rcvTOW = 0
if YKHO.week is None:
YKHO.week = 0
if YKHO.numSV is None:
YKHO.numSV = 0
if YKHO.reserved1 is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.7794795",
"0.77207875",
"0.77207875",
"0.7687243",
"0.7625947",
"0.7564293",
"0.7440383",
"0.74175525",
"0.7352349",
"0.7308313",
"0.72808266",
"0.72378874",
"0.722805",
"0.7225032",
"0.7225032",
"0.7219433",
"0.72120637",
"0.72120637",
"0.72120637",
"0.72120637",
"0.72120... | 0.0 | -1 |
Get an embedding for a supplied string | def Q1PJ(xDcj: str) -> dict:
wjQX = C3ST.embed(xDcj)
return {'embedding': wjQX, 'model': ZGE9} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nhS3():\n EHMP = P4t4.config.get('EMBEDDING_HOST')\n b60J = P4t4.config.get('EMBEDDING_PORT')\n o2VW = {'text': QePW.args.get('text', ''), 'language': QePW.args.get('language', None)}\n Mkmy = G4JS.get(f'http://{EHMP}:{b60J}/api/v1/embeddings/create', params=o2VW)\n return pz3A(Mkmy.json())",
... | [
"0.6789192",
"0.6787894",
"0.6745919",
"0.6744328",
"0.6724526",
"0.6534897",
"0.6394602",
"0.63193136",
"0.63009477",
"0.6289545",
"0.6280635",
"0.621938",
"0.6190343",
"0.61494434",
"0.6147239",
"0.6094935",
"0.6064261",
"0.5987999",
"0.59518164",
"0.59514683",
"0.59439796"... | 0.58295786 | 25 |
Find number of eggs to bring back, using the smallest number of eggs. Assumes there is an infinite supply of eggs of each weight, and there is always a egg of value 1. | def fECP(lbP5, lE_A, i_PE={}):
for YRbF, yzQ0 in enumerate(lbP5):
i_PE[yzQ0] = []
for r845 in range(lE_A + 1):
if r845 == 0:
i_PE[yzQ0].append(0)
elif yzQ0 <= r845:
if YRbF == 0:
d3ZD = i_PE[yzQ0][r845 - yzQ0] + 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mNCz(Oa1e, ATUZ, xLKM):\n if ATUZ == 'FUEL':\n return xLKM\n a1PO = sum([Oa1e.edges[ATUZ, KCHu]['cost'] * mNCz(Oa1e, KCHu, xLKM) for KCHu in Oa1e.successors(ATUZ)])\n return X6j_(a1PO, Oa1e.nodes[ATUZ]['batch_size'])",
"def OrR8(U0Pr, b7hB):\n RBwV = 0\n hI0L = 0\n U0Pr.sort(reverse=... | [
"0.6662027",
"0.5932552",
"0.5918526",
"0.56802285",
"0.5671168",
"0.56686914",
"0.56456834",
"0.5641083",
"0.56011915",
"0.5580425",
"0.5569461",
"0.5535122",
"0.55312604",
"0.55207425",
"0.5515338",
"0.5471096",
"0.5411348",
"0.5373723",
"0.5373407",
"0.537054",
"0.53639114... | 0.621169 | 1 |
Check if the given email adress is already taken by someone. | def NMoC(YKHO, **B2fa) -> (dict, int):
NArs = {'email': B2fa['email']}
if not NArs['email']:
return (WSpt.get_response(), 400)
gYAw = thgm.value_in_database('UserTable', 'email', NArs['email'])
return ({'success': True, 'taken': gYAw}, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KJ4h(Hxmi: str) -> bool:\n return hGhV(NJJf.email_address, Hxmi)",
"def a84E(D3lj):\n DW23 = mv1M.objects.filter(email=D3lj).values()\n if len(DW23):\n return True\n return False",
"def yO6T(D3lj):\n if mv1M.objects.filter(email=D3lj).exists():\n return True\n return False",... | [
"0.81772524",
"0.7600871",
"0.7600677",
"0.7539377",
"0.7236727",
"0.71787477",
"0.70742327",
"0.7014581",
"0.69838274",
"0.6977851",
"0.695766",
"0.69394714",
"0.69238675",
"0.68900275",
"0.68745935",
"0.68352276",
"0.68326586",
"0.67389286",
"0.66912",
"0.66790843",
"0.6662... | 0.0 | -1 |
Define py.test command line options for this plugin. | def YyTK(wvEv):
uOe2 = wvEv.getgroup('ansible-playbook')
uOe2.addoption('--ansible-playbook-directory', action='store', dest='ansible_playbook_directory', metavar='PLAYBOOK_DIR', help='Directory where ansible playbooks are stored.')
uOe2.addoption('--ansible-playbook-inventory', action='store', dest='ansibl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JMwh(YKHO, wvEv):\n wvEv.add_argument('--pytest', action='store_true', default=False, dest='pytest', help='Use pytest runner instead of nose.')\n wvEv.add_argument('--app', metavar='APP_LABEL', action='append', dest='app_names', help='A Django app label to add to the list of installed apps. This is only ... | [
"0.75257295",
"0.72936356",
"0.72087264",
"0.71608716",
"0.713364",
"0.7099801",
"0.70465946",
"0.6982287",
"0.6934263",
"0.69197273",
"0.68485343",
"0.6840971",
"0.6818722",
"0.6773975",
"0.6760837",
"0.67465514",
"0.67350245",
"0.67309225",
"0.6713253",
"0.67065084",
"0.670... | 0.0 | -1 |
get data[indices] safely and with optional padding to either indices.size or data.size | def arI5(nPrm, _0VL, c_Zo=None, dvgN=oyIN.nan):
if not (c_Zo is None or c_Zo in ['data', 'index']):
raise TypeError('unexpected argument keepdim={}'.format(c_Zo))
nPrm = oyIN.asarray(nPrm)
_0VL = oyIN.asarray(_0VL)
YRbF = _0VL[_0VL < nPrm.size]
if c_Zo is None:
return nPrm[YRbF]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z2L_(bS0K: list, nPrm: np.ndarray) -> oyIN.ndarray:\n return oyIN.asarray([nPrm[YRbF, r845] for YRbF, r845 in bS0K])",
"def FV3h(YKHO, nPrm, QyVM):\n ZSgh = ht2j.arange(0, nPrm.shape[0], dtype=ht2j.int64).to(YKHO.device)\n _0VL = ht2j.stack([ZSgh, QyVM], dim=1)\n Ylbp = nPrm[_0VL.transpose(0, 1).... | [
"0.64515316",
"0.6291412",
"0.6151581",
"0.60655594",
"0.5989121",
"0.5965736",
"0.5876504",
"0.5842424",
"0.58177423",
"0.5790873",
"0.5726232",
"0.57143295",
"0.5708361",
"0.5675591",
"0.56290674",
"0.5604596",
"0.5579937",
"0.55170494",
"0.55085826",
"0.5507799",
"0.550575... | 0.7182823 | 0 |
init Etcd3Client, close its connectionpool when teardown | def x0hE():
bGrB, XP5J, bGrB = _AfU()
Z9rn = i9zE(KcEq, XP5J, iquo)
yield Z9rn
Z9rn.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, GPtr):\n YKHO.logger = G9jH.getLogger(__name__)\n YKHO.etcd_key_prefix = None\n ayrW = 'localhost'\n SXGB = Hy7s.getenv('ETCD_HOST')\n if SXGB is not None and SXGB != '':\n ayrW = SXGB\n try:\n bIwZ = Hy7s.getenv('ETCD_CLIENT_PORT', '2379')\n except Exception as e:... | [
"0.6394745",
"0.6223009",
"0.6188004",
"0.6122781",
"0.5872924",
"0.58113235",
"0.572251",
"0.5680575",
"0.56592935",
"0.56570673",
"0.56547004",
"0.5588087",
"0.55753064",
"0.5560368",
"0.55023384",
"0.5501191",
"0.54811597",
"0.54789394",
"0.54769146",
"0.5468104",
"0.54542... | 0.61097974 | 4 |
difference with iou is we divide total area of boxes1 by its intersection with boxes2 | def Camr(wGB6, QFOH):
bzU2 = ab__(wGB6)
Eq1k = ab__(QFOH)
D5g7 = ht2j.max(wGB6[:, None, :2], QFOH[:, :2])
FohR = ht2j.min(wGB6[:, None, 2:], QFOH[:, 2:])
BQsO = (FohR - D5g7).clamp(min=0)
C7_8 = BQsO[:, :, 0] * BQsO[:, :, 1]
RjuK = C7_8 / bzU2.unsqueeze(-1).expand_as(C7_8)
return RjuK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CV1J(wGB6: np.array, QFOH: np.array) -> oyIN.array:\n C7_8 = iQin(wGB6, QFOH)\n Eq1k = f0tD(QFOH)\n return C7_8 / Eq1k",
"def CV1J(wGB6, QFOH):\n XMlP = iQin(wGB6, QFOH)\n ILBk = oyIN.expand_dims(f0tD(QFOH), axis=0)\n return XMlP / ILBk",
"def RjuK(wGB6, QFOH):\n XMlP = iQin(wGB6, QFOH... | [
"0.8451533",
"0.840949",
"0.8243755",
"0.7942563",
"0.7853105",
"0.77830726",
"0.7693856",
"0.76882285",
"0.76702803",
"0.7587807",
"0.7538178",
"0.74851453",
"0.7484504",
"0.74831045",
"0.7469192",
"0.7382318",
"0.7331065",
"0.7301706",
"0.72732025",
"0.7255938",
"0.7212973"... | 0.72669625 | 19 |
Compute the bounding boxes around the provided masks The masks should be in format [N, H, W] where N is the number of masks, (H, W) are the spatial dimensions. Returns a [N, 4] tensors, with the boxes in xyxy format | def Nfot(oGem):
if oGem.numel() == 0:
return ht2j.zeros((0, 4), device=oGem.device)
MKlR, yzQ0 = oGem.shape[-2:]
LVAh = ht2j.arange(0, MKlR, dtype=ht2j.float)
WKvO = ht2j.arange(0, yzQ0, dtype=ht2j.float)
LVAh, WKvO = ht2j.meshgrid(LVAh, WKvO)
M01R = oGem * WKvO.unsqueeze(0)
re6M = M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yhtB(oGem: 'torch.Tensor'):\n if ht2j.numel(oGem) == 0:\n return ht2j.zeros(*oGem.shape[:-2], 4, device=oGem.device)\n ROpF = oGem.shape\n H2v2, TVTK = ROpF[-2:]\n tQJv, bGrB = ht2j.max(oGem, dim=-1)\n jZfo = tQJv * ht2j.arange(H2v2, device=tQJv.device)[None, :]\n uBJN, bGrB = ht2j.max... | [
"0.80041194",
"0.78250813",
"0.7821831",
"0.7811703",
"0.76448375",
"0.75730765",
"0.754612",
"0.69376516",
"0.69044983",
"0.6804093",
"0.67601",
"0.66304064",
"0.6443853",
"0.6433631",
"0.6358561",
"0.634099",
"0.63274246",
"0.6302167",
"0.6295122",
"0.6275535",
"0.6252578",... | 0.8466156 | 0 |
get standard datetime String | def fOuw(JRYC: Union[datetime, None]=None):
if JRYC is None:
return EgRS()
elif isinstance(JRYC, qcWV):
return bD64(JRYC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7Na():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime())",
"def cTxh():\n return qcWV.now().strftime(dDFw)",
"def dFdi():\n return JRYC.strftime(JRYC.now(), '%Y %m %d, %H:%M:%S')",
"def Jv5M(YKHO, a1PO=None):\n if a1PO is None:\n a1PO = ITS7.time()\n jmHs = ITS7.strftim... | [
"0.7965849",
"0.7779492",
"0.751557",
"0.73982793",
"0.72566646",
"0.7227383",
"0.7153067",
"0.70970625",
"0.70795083",
"0.70795083",
"0.7062511",
"0.7049153",
"0.70125234",
"0.6980558",
"0.69615316",
"0.69607997",
"0.6960537",
"0.6912158",
"0.69098437",
"0.68727136",
"0.6869... | 0.0 | -1 |
Total price without taxation and discount | def wzZw(YKHO):
return YKHO.quoteitem_set.all().annotate(total_quote_price=vuvg('price') * vuvg('quantity')).aggregate(zphJ('total_quote_price'))['total_quote_price__sum'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ne9N(YKHO):\n if YKHO.total_price == 0:\n for FMQW in YKHO.discounts:\n for ZfUD in YKHO.items:\n ZfUD.add_discount(FMQW)\n for ZfUD in YKHO.items:\n YKHO.total_price += ZfUD.final_price()\n return YKHO.total_price",
"def _UXA(wjRY, MvzV):\n woGg = ... | [
"0.77000076",
"0.76575816",
"0.72955185",
"0.72816265",
"0.72665584",
"0.72658736",
"0.71764964",
"0.7166359",
"0.71625495",
"0.7161888",
"0.71541446",
"0.71268743",
"0.7124396",
"0.70812684",
"0.7048368",
"0.70354915",
"0.7033276",
"0.7023461",
"0.69899917",
"0.6986364",
"0.... | 0.0 | -1 |
Return final quote price | def k3VF(YKHO):
wjRY, FMQW, SXGB = (YKHO.get_total_quote_price(), YKHO.get_quote_discount(), YKHO.get_quote_taxation())
return wjRY - FMQW + SXGB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return f'{YKHO.soup.find(attrs={'class': 'woocommerce-Price-amount'}).text}'",
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO.price",
"def hI0L(YKHO):\n return YKHO.pri... | [
"0.72491926",
"0.71886194",
"0.71429",
"0.71429",
"0.71429",
"0.70211214",
"0.70194435",
"0.6951319",
"0.69328886",
"0.6932559",
"0.69148046",
"0.6900835",
"0.685845",
"0.68555963",
"0.68555963",
"0.6837993",
"0.68152875",
"0.67969316",
"0.6752503",
"0.67521435",
"0.67127484"... | 0.8524689 | 0 |
Sets the url of this Document. | def bD7m(YKHO, bD7m):
YKHO._url = bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U2Rp(YKHO, bD7m):\n YKHO.url = bD7m",
"def U2Rp(YKHO, bD7m):\n if bD7m is not None:\n YKHO.url = bD7m",
"def U2Rp(YKHO, bD7m):\n YKHO.data['url'] = bD7m",
"def bD7m(YKHO, bD7m: str):\n YKHO._url = bD7m",
"def bD7m(YKHO, bD7m: str):\n YKHO._url = bD7m",
"def bD7m(YKHO, bD7m: str)... | [
"0.8412399",
"0.8336629",
"0.8136744",
"0.8091173",
"0.80271095",
"0.80271095",
"0.80271095",
"0.79436314",
"0.77633595",
"0.76205",
"0.74165994",
"0.7305785",
"0.7202988",
"0.71454203",
"0.71138424",
"0.70245063",
"0.70142025",
"0.691426",
"0.6762624",
"0.6690353",
"0.667316... | 0.80568296 | 10 |
Sets the uuid of this Document. | def qxeD(YKHO, qxeD):
if qxeD is not None and len(qxeD) < 1:
raise ValueError('Invalid value for `uuid`, length must be greater than or equal to `1`')
YKHO._uuid = qxeD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD: str):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD: str):\n YKHO._uuid = qxeD",
"def q... | [
"0.7966575",
"0.7966575",
"0.7966575",
"0.7966575",
"0.79464763",
"0.7910333",
"0.7387999",
"0.73772806",
"0.64273643",
"0.6306441",
"0.6160552",
"0.6091931",
"0.6037679",
"0.6012513",
"0.5995177",
"0.59551936",
"0.5943602",
"0.5864733",
"0.5847472",
"0.5785526",
"0.5778248",... | 0.73110586 | 9 |
Sets the user of this Document. | def CBIr(YKHO, CBIr):
YKHO._user = CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lT6e(YKHO, CBIr):\n YKHO._user = CBIr",
"def lT6e(YKHO, CBIr):\n YKHO.user = CBIr",
"def lT6e(YKHO, CBIr: User):\n YKHO.__user = CBIr",
"def B_Lo(YKHO, CBIr):\n L3iJ.xmlURISetUser(YKHO._o, CBIr)",
"def CBIr(YKHO, CBIr):\n YKHO.user_id = CBIr.get_id()",
"def B_Lo(YKHO, BWXx):\n retur... | [
"0.79773825",
"0.79105324",
"0.76266295",
"0.71006274",
"0.7024403",
"0.70122147",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.6886362",
"0.68766904... | 0.7496731 | 11 |
Sets the name of this Document. | def mWFP(YKHO, mWFP):
if mWFP is not None and len(mWFP) > 255:
raise ValueError('Invalid value for `name`, length must be less than or equal to `255`')
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def zPdd(YKHO, mWFP):\n YKHO.name = mWFP",
"def cWFH(YKHO, A97Q, mWFP):\n if not YKHO.doc_name_set:\n A97Q.name = mWFP\n YKHO.doc_name_set = True\n return True\n else:\n raise NIWX('Document::Name')",
"def WZrJ(YKHO, mWFP: s... | [
"0.8255297",
"0.8201001",
"0.81936884",
"0.8172652",
"0.8130249",
"0.8109488",
"0.8109488",
"0.8092643",
"0.8082225",
"0.8063818",
"0.8063818",
"0.8063818",
"0.8063818",
"0.8063818",
"0.8015915",
"0.7976473",
"0.795167",
"0.795167",
"0.7941867",
"0.79197055",
"0.79197055",
... | 0.0 | -1 |
Sets the external_id of this Document. | def WhG7(YKHO, WhG7):
if WhG7 is not None and len(WhG7) > 255:
raise ValueError('Invalid value for `external_id`, length must be less than or equal to `255`')
YKHO._external_id = WhG7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n if WhG7 is None:\n raise ValueError('Invalid value for `external_id`, must not be `None`')\n YKHO._external... | [
"0.83748776",
"0.83748776",
"0.83748776",
"0.7661575",
"0.7374165",
"0.70647997",
"0.675369",
"0.6514403",
"0.6265823",
"0.6265823",
"0.60981345",
"0.57731545",
"0.5729093",
"0.56846035",
"0.5619747",
"0.55755323",
"0.5500711",
"0.5486472",
"0.54626614",
"0.5437183",
"0.54238... | 0.76365376 | 4 |
Sets the frontend_id of this Document. | def LKwC(YKHO, LKwC):
if LKwC is not None and len(LKwC) > 255:
raise ValueError('Invalid value for `frontend_id`, length must be less than or equal to `255`')
YKHO._frontend_id = LKwC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYeM(YKHO, tYeM):\n YKHO._web_id = tYeM",
"def oBco(YKHO, BWXx):\n super(V4kV, YKHO)._set_input('DocumentId', BWXx)",
"def V_9M(YKHO, TbZN):\n YKHO.ssc_id = TbZN",
"def VJJg(YKHO, A97Q, DQPw):\n A97Q.add_ext_document_reference(Zc4z(external_document_id=DQPw))",
"def yZn6(YKHO, yZn6):\n Y... | [
"0.55378383",
"0.5325575",
"0.52786845",
"0.5251443",
"0.52469516",
"0.5246251",
"0.51875114",
"0.51875114",
"0.51875114",
"0.51875114",
"0.5183966",
"0.5183966",
"0.50986695",
"0.5066609",
"0.50623035",
"0.50598156",
"0.5007953",
"0.500628",
"0.49780914",
"0.49144825",
"0.49... | 0.78105503 | 0 |
Sets the events_callback_url of this Document. | def nh2I(YKHO, nh2I):
if nh2I is not None and len(nh2I) > 2100:
raise ValueError('Invalid value for `events_callback_url`, length must be less than or equal to `2100`')
YKHO._events_callback_url = nh2I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCEN(YKHO, RJDY):\n YKHO.callback_url = RJDY",
"async def set_event_url(YKHO, TdRx: Optional[str]) -> None:\n if not TdRx:\n TdRx = YKHO._server.url\n bD7m = NCC9(str(TdRx), safe='')\n vzeF.info('Setting event update URL to %s', bD7m)\n await YKHO._api_request(f'postURL/{bD7m}')",
"de... | [
"0.75515646",
"0.6580946",
"0.59642255",
"0.56799674",
"0.56111544",
"0.5601352",
"0.558387",
"0.5581121",
"0.55357224",
"0.5520516",
"0.5519779",
"0.54972214",
"0.5437589",
"0.537568",
"0.5372901",
"0.5320275",
"0.53069943",
"0.53069943",
"0.53069943",
"0.53069943",
"0.53069... | 0.7836989 | 0 |
Sets the signrequest of this Document. | def Data(YKHO, Data):
YKHO._signrequest = Data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vRH4(YKHO, vRH4):\n YKHO._sign_request = vRH4",
"def YJ7w(YKHO, YJ7w):\n YKHO._signature_flag = YJ7w",
"def mJv3(YKHO, mJv3):\n YKHO._signer_name = mJv3",
"def mJv3(YKHO, mJv3):\n YKHO._signer_name = mJv3",
"def wSmR(YKHO, wSmR):\n YKHO._sign_date = wSmR",
"def vRH4(YKHO):\n return ... | [
"0.79942375",
"0.6228678",
"0.616524",
"0.616524",
"0.6139709",
"0.6124173",
"0.6053103",
"0.6053103",
"0.6043794",
"0.59363663",
"0.59275293",
"0.58878905",
"0.58878905",
"0.58826387",
"0.5721185",
"0.5591872",
"0.5512092",
"0.5456609",
"0.5443755",
"0.5378709",
"0.5368341",... | 0.81864744 | 0 |
Sets the signing_log of this Document. | def oPSI(YKHO, oPSI):
YKHO._signing_log = oPSI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sGz_(YKHO, I_Tk, Gt1C, hLTL, lB2t, E7r2):\n YKHO.PDFreactorConfiguration.in1['signPdfKeystoreURL'] = I_Tk\n YKHO.PDFreactorConfiguration.in1['signPdfKeyAlias'] = Gt1C\n YKHO.PDFreactorConfiguration.in1['signPdfKeystorePassword'] = hLTL\n YKHO.PDFreactorConfiguration.in1['signPdfKeystoreType'] = lB2... | [
"0.59428334",
"0.58175457",
"0.57036656",
"0.56887096",
"0.56887096",
"0.56795955",
"0.56219345",
"0.56217515",
"0.56046075",
"0.56032",
"0.55922824",
"0.55922824",
"0.5560236",
"0.5513746",
"0.5505159",
"0.5473783",
"0.54111314",
"0.54080945",
"0.54080945",
"0.53499395",
"0.... | 0.87596947 | 0 |
Sets the attachments of this Document. | def CS4K(YKHO, CS4K):
YKHO._attachments = CS4K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gNjn(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['addAttachments'] = BWXx",
"def Uiu6(YKHO):\n YKHO.response['attachments'] = []",
"def CS4K(YKHO, wEf2: list):\n YKHO._attachments = []\n if wEf2 is not None:\n for ZfUD in wEf2:\n if isinstance(ZfUD, vKIi):\n ... | [
"0.66301376",
"0.6629674",
"0.63063186",
"0.6266505",
"0.6211472",
"0.61580443",
"0.61457306",
"0.5954822",
"0.5865942",
"0.57971734",
"0.57489145",
"0.57373524",
"0.5662363",
"0.5626304",
"0.5562629",
"0.55603254",
"0.54381",
"0.5426246",
"0.5356124",
"0.5293208",
"0.5252491... | 0.80687654 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, yQaM):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Return a dict with the video this method is for to keep the compatibility for old | def ZmqW(bD7m, NArs=None):
Q1PJ = ITGx.get_embed(bD7m, NArs)
return Q1PJ.get_embed_dict() if Q1PJ else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l1ej():\n f6W2 = {}\n for G1Hx, Ty9i in pths.VIDEOS.iteritems():\n f6W2[G1Hx] = Ty9i.__dict__\n return f6W2",
"def Gm11(YKHO):\n YKHO.cur.execute('SELECT video_ID, video_title FROM videos')\n SFIC = {}\n G5C3 = []\n for f6W2 in YKHO.cur.fetchall():\n G5C3.append(f6W2[1])\n ... | [
"0.82025266",
"0.7349134",
"0.7035774",
"0.67291355",
"0.6574835",
"0.6517849",
"0.6508744",
"0.647195",
"0.6454397",
"0.6444857",
"0.64435345",
"0.6405546",
"0.6382915",
"0.6305499",
"0.6233442",
"0.6219377",
"0.6216433",
"0.6195231",
"0.6195164",
"0.6187113",
"0.6147258",
... | 0.0 | -1 |
Return a dict with the video. | def ZmqW(YKHO):
if not YKHO.get_url() or not YKHO.get_embed_url():
return None
hlel = {'url': YKHO.get_url(), 'embed_url': YKHO.get_embed_url(), 'provider_url': YKHO.get_provider_url(), 'provider_name': YKHO.get_provider_name(), 'thumbnail_url': YKHO.get_thumbnail_url(), 'type': 'video'}
if YKHO.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l1ej():\n f6W2 = {}\n for G1Hx, Ty9i in pths.VIDEOS.iteritems():\n f6W2[G1Hx] = Ty9i.__dict__\n return f6W2",
"def Gm11(YKHO):\n YKHO.cur.execute('SELECT video_ID, video_title FROM videos')\n SFIC = {}\n G5C3 = []\n for f6W2 in YKHO.cur.fetchall():\n G5C3.append(f6W2[1])\n ... | [
"0.8715809",
"0.760929",
"0.7151687",
"0.68675786",
"0.68445945",
"0.66078943",
"0.65674424",
"0.6541241",
"0.6478438",
"0.64718205",
"0.64499915",
"0.639612",
"0.63326305",
"0.6311286",
"0.6296101",
"0.6291146",
"0.6280565",
"0.62697464",
"0.62697464",
"0.62697464",
"0.62697... | 0.704604 | 3 |
Fixes some malformed urls that are around on some sites, which looks like | def j4Dd(bD7m):
XP5J = KVWQ.urlparse(bD7m)
pmON = XP5J.path
if '&' in XP5J.path:
pmON = ZbWC.sub('\\&.+', '', XP5J.path)
return KVWQ.urlunparse((XP5J.scheme, XP5J.netloc, pmON, XP5J.params, XP5J.query, XP5J.fragment)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yWMy(Emd4, bD7m: str):\n ...",
"def QzyC(bD7m):\n if not bD7m.startswith('http'):\n bD7m = 'http://' + bD7m\n return bD7m",
"def guNd(bD7m):\n if bD7m.startswith('http//'):\n bD7m = 'http://' + bD7m[6:]\n elif bD7m.startswith('https//'):\n bD7m = 'https://' + bD7m[7:]\n ... | [
"0.78042585",
"0.7360744",
"0.73024404",
"0.72862786",
"0.6927415",
"0.6925513",
"0.687715",
"0.6705978",
"0.66862786",
"0.6643094",
"0.66389006",
"0.65923584",
"0.6529251",
"0.6512607",
"0.6481778",
"0.64646554",
"0.6454716",
"0.64415497",
"0.64275753",
"0.6346145",
"0.63125... | 0.6401412 | 19 |
Returns if the url is for users urls. also if is an valid user url but had the fragment p/1/u/video_id return False. because represent a video. | def wZ9O(bD7m=None, VyJ2=None):
if not VyJ2:
if bD7m:
VyJ2 = KVWQ.urlparse(bD7m)
else:
return False
if ZbWC.match('(.{1}/){3}([\\w+-_^/]+)', VyJ2.fragment):
return False
return VyJ2.path.startswith('/user/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yto3(bD7m):\n return ZbWC.search('^[a-zA-Z][-+\\\\.\\\\w]*://[^\\\\s]+$', bD7m) is not None and bD7m[:4] != 'uuid'",
"def jr1t(bD7m=None, VyJ2=None):\n if not VyJ2:\n VyJ2 = KVWQ.urlparse(bD7m)\n return VyJ2.netloc.endswith('bambuser.com') and bool(ZbWC.search('^\\\\/(v|broadcast)\\\\/\\\\d+(... | [
"0.6797255",
"0.6776674",
"0.6695254",
"0.6600181",
"0.6558438",
"0.6511136",
"0.6471161",
"0.64537007",
"0.64287174",
"0.6398071",
"0.6377049",
"0.6374972",
"0.6268475",
"0.6253439",
"0.620971",
"0.616572",
"0.61631346",
"0.6155011",
"0.6154694",
"0.6147056",
"0.61452335",
... | 0.8035845 | 0 |
Returns a vimeo "canonical" url. | def hKhs(YKHO):
if not YKHO.get_video_id():
return ''
return 'http://www.vimeo.com/%s' % YKHO.get_video_id() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vP9t(YKHO):\n if not YKHO.get_video_id():\n return ''\n return 'https://player.vimeo.com/video/%s' % YKHO.get_video_id()",
"def vP9t(YKHO):\n if not YKHO.original_url:\n return ''\n return 'https://vine.co/v/%s/embed/simple' % YKHO.get_video_id()",
"def KnUS(YKHO, P6bq: str) -> st... | [
"0.7192233",
"0.6557044",
"0.64804375",
"0.6467344",
"0.63553363",
"0.6218523",
"0.62002414",
"0.61866117",
"0.6112958",
"0.6079552",
"0.5983926",
"0.5967099",
"0.5799134",
"0.5737427",
"0.5726324",
"0.5716322",
"0.5704041",
"0.5684439",
"0.5660576",
"0.5651033",
"0.5608154",... | 0.76509166 | 0 |
Expand tab characters in a string into spaces. | def ALym(l5Ny, iVRZ, agdd, J9EB=False):
Tdem = ''
while True:
KY2Z = l5Ny.find('\t')
if KY2Z < 0:
break
Nkn0 = agdd - (KY2Z + iVRZ) % agdd
iVRZ += KY2Z + Nkn0
if J9EB:
LGJQ = '\t' + ' ' * (Nkn0 - 1)
else:
LGJQ = ' ' * Nkn0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nJ_J(l5Ny, oi6k=4):\n return l5Ny.replace('\\t', ' ' * oi6k)",
"def b5be(vIwR: str, s44w: int=4) -> str:\n return vIwR.replace('\\t', ' ' * s44w)",
"def WVWl(l5Ny, agdd=1):\n return l5Ny.expandtabs(agdd)",
"def cAaD(JNSG):\n if JNSG is None:\n return None\n while True:\n if J... | [
"0.7704402",
"0.75756913",
"0.7293861",
"0.6853842",
"0.6732741",
"0.64412326",
"0.628677",
"0.6025947",
"0.60081637",
"0.6005864",
"0.59091336",
"0.58948296",
"0.5841299",
"0.5801375",
"0.57646495",
"0.5762307",
"0.5704514",
"0.5685822",
"0.56365174",
"0.55587494",
"0.546904... | 0.71988934 | 3 |
Returns all the blocks corresponding to the lines in the region. | def QvMK(QTBn):
Aofo = []
aZJI = 0
for bTKY in QTBn:
oeNL = bTKY['pos']
rmyT = [(KCHu[0] - aZJI, KCHu[1] - KCHu[0]) for KCHu in bTKY['blocks']]
rmyT.append((oeNL - aZJI, 0))
Aofo.append(rmyT)
aZJI = oeNL
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpYM(Nqlg):\n hlrW = [or8S for or8S, vC9B in enumerate(Nqlg) if Fdrx.match(vC9B)]\n rmyT, w4Fz = ([], 0)\n for TlDD in hlrW:\n rmyT.append(Nqlg[w4Fz:TlDD])\n w4Fz = TlDD + 1\n rmyT.append(Nqlg[w4Fz:])\n rmyT = [YRbF for YRbF in rmyT if len(YRbF)]\n return rmyT",
"def xpYM(YKHO... | [
"0.7326278",
"0.69235015",
"0.6890726",
"0.6847235",
"0.662264",
"0.65536696",
"0.64290226",
"0.6395803",
"0.631637",
"0.62798375",
"0.627069",
"0.6252505",
"0.6214526",
"0.62134707",
"0.61772335",
"0.614175",
"0.61267143",
"0.6081043",
"0.6074623",
"0.60600126",
"0.60487306"... | 0.7424399 | 0 |
Return the position of the most significant digit. 0 means 1's place, 1 means 10's place, 1 means 0.1's place, etc. | def aR5_(wEf2):
if not wEf2:
return 0
return epAf.floor(epAf.log10(abs(wEf2))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h3IJ(YKHO):\n return YKHO._pos_number.zfill(2)",
"def MzX1(yU2q):\n return oyIN.searchsorted(yU2q[1:], yU2q[0])",
"def rDWI(Csk6):\n return epAf.log(1.0 + 1.0 / float(Csk6)) / epAf.log(10)",
"def W_Vi(BHGE):\n FGW3 = 0\n Zihr = 1\n eUsh = 0\n SOnQ = 0\n kdDG = len(BHGE)\n for K... | [
"0.62555724",
"0.6162614",
"0.61577386",
"0.60454047",
"0.59892374",
"0.59852195",
"0.5983845",
"0.5983076",
"0.5972174",
"0.59253937",
"0.5864846",
"0.5800455",
"0.57597715",
"0.57448214",
"0.57143694",
"0.5688247",
"0.5662061",
"0.56425166",
"0.56129336",
"0.5587425",
"0.55... | 0.0 | -1 |
Return the position of the most significant digit. 0 means 1's place, 1 means 10's place, 1 means 0.1's place, etc. | def hfqz(YKHO):
return epAf.floor(epAf.log10(abs(YKHO._val))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h3IJ(YKHO):\n return YKHO._pos_number.zfill(2)",
"def MzX1(yU2q):\n return oyIN.searchsorted(yU2q[1:], yU2q[0])",
"def rDWI(Csk6):\n return epAf.log(1.0 + 1.0 / float(Csk6)) / epAf.log(10)",
"def W_Vi(BHGE):\n FGW3 = 0\n Zihr = 1\n eUsh = 0\n SOnQ = 0\n kdDG = len(BHGE)\n for K... | [
"0.6254771",
"0.61622",
"0.6158704",
"0.6045698",
"0.598721",
"0.598524",
"0.5982183",
"0.5981973",
"0.59718096",
"0.5924583",
"0.586324",
"0.5800375",
"0.5760931",
"0.5744544",
"0.57132316",
"0.5688763",
"0.56613684",
"0.5642242",
"0.56123924",
"0.5586677",
"0.5579431",
"0... | 0.0 | -1 |
it returns list of given number of colors | def INjU(FGW3=5):
import colorsys
ywwl = FGW3
w05E = [(WKvO * 1.0 / ywwl, 1.0, 1.0) for WKvO in range(ywwl)]
Bm3H = map(lambda WKvO: colorsys.hsv_to_rgb(*WKvO), w05E)
if FGW3 == 1:
Bm3H = Bm3H
return Bm3H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jw9H(G1Hx):\n U5bT = []\n for YRbF in range(G1Hx):\n U5bT.append((tuKI.uniform(0, 1), tuKI.uniform(0, 1), tuKI.uniform(0, 1)))\n return U5bT",
"def fRt4(ydh_):\n import colorsys\n Jw9H = []\n for YRbF in oyIN.arange(0.0, 360.0, 360.0 / ydh_):\n Hafq = YRbF / 360.0\n TfM... | [
"0.7956679",
"0.7936606",
"0.779266",
"0.7730483",
"0.7703664",
"0.768577",
"0.75030977",
"0.74811244",
"0.7479576",
"0.7421606",
"0.74136955",
"0.7380331",
"0.7347177",
"0.7334211",
"0.7229836",
"0.7227842",
"0.7217518",
"0.71872324",
"0.717211",
"0.71673256",
"0.71641874",
... | 0.7682016 | 6 |
Return kilometers converted to miles. | def dzqF(Mkmy: Number, NXpY: int=6) -> float:
if not isinstance(Mkmy, (float, int)):
raise ValueError('Float or integer value expected.')
return round(Mkmy / tS7Y, NXpY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brid(q5XV):\n return q5XV * 0.621371",
"def zpqm(JYmd):\n return JYmd * 1.60934",
"def QAKp(l1UJ):\n JYmd = l1UJ / 1609.344\n return JYmd",
"def kkZL(ssQ2: float) -> float:\n ssQ2 = float(ssQ2)\n JYmd = float(float(ssQ2) * 0.621371)\n return round(JYmd, 2)",
"def zpqm(JYmd: float) ... | [
"0.85204375",
"0.8409632",
"0.8382595",
"0.8361742",
"0.813403",
"0.7848914",
"0.7368488",
"0.71962035",
"0.71519965",
"0.7077874",
"0.70574766",
"0.69708043",
"0.69686466",
"0.6918244",
"0.68268144",
"0.68182606",
"0.6801564",
"0.6759867",
"0.6694112",
"0.6678816",
"0.667535... | 0.6835919 | 14 |
Return the equivalent field name in the file format for a standard geolocation field (lat, lon, time, z). Used for internal purpose and should not be called directly. | def CsAL(YKHO, K_Sa):
return K_Sa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def webP(QnmL, FDPT):\n for i1KT in UH90.iterShapeRecords():\n ROpF, AIu6 = (i1KT.shape, i1KT.record)\n cviu, LTIa = (ROpF.bbox, ROpF.points)\n if M8li((FDPT, QnmL), [(cviu[0], cviu[1]), (cviu[2], cviu[1]), (cviu[2], cviu[3]), (cviu[0], cviu[3])]):\n if M8li((FDPT, QnmL), LTIa):\... | [
"0.5895857",
"0.5769432",
"0.56786984",
"0.56513333",
"0.5647745",
"0.56222594",
"0.5617634",
"0.5617229",
"0.5598112",
"0.5521769",
"0.5517996",
"0.5513703",
"0.5467093",
"0.5438111",
"0.54005414",
"0.539231",
"0.537227",
"0.5340862",
"0.53050864",
"0.530451",
"0.5293425",
... | 0.74658877 | 0 |
Returns the bounding box of the feature, as a tuple. | def s_Sm(YKHO):
CRpt = YKHO.get_full_dimensions('lon').values()
SuPp = [slice(None, None, CRpt[0] - 1), slice(None, None, CRpt[1] - 1)]
FDPT = YKHO.read_values('lon', slices=SuPp)
QnmL = YKHO.read_values('lat', slices=SuPp)
return (FDPT.min(), QnmL.min(), FDPT.max(), QnmL.max()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HV3G(YKHO):\n rwK9 = oyIN.max(YKHO.points[:, 0])\n re6M = oyIN.max(YKHO.points[:, 1])\n KDmU = oyIN.min(YKHO.points[:, 0])\n wBZN = oyIN.min(YKHO.points[:, 1])\n return ((re6M, rwK9), (wBZN, KDmU))",
"def s_Sm(YKHO) -> AzJI[Cd5b, Cd5b]:\n if YKHO.is_brush():\n wsjU, dfUo = YKHO.solid... | [
"0.78971106",
"0.7867348",
"0.77681565",
"0.7715258",
"0.76766145",
"0.76009524",
"0.75598633",
"0.7506213",
"0.7473114",
"0.744594",
"0.74406433",
"0.74406433",
"0.7418034",
"0.7404445",
"0.736192",
"0.736192",
"0.73381007",
"0.7314084",
"0.7272144",
"0.72178125",
"0.7213776... | 0.6969831 | 32 |
Appends the specified transition to the memory. | def SStx(YKHO, QTBn, XeOP, vOGg, _ins):
assert QTBn.shape == YKHO._state_shape, 'Invalid state shape (required: %s, got: %s)' % (YKHO._state_shape, QTBn.shape)
YKHO._states[YKHO._pos] = QTBn
YKHO._actions[YKHO._pos] = XeOP
YKHO._rewards[YKHO._pos] = vOGg
YKHO._terminals[YKHO._pos] = _ins
YKHO._c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OnZY(YKHO, OZkM):\n YKHO.buffer.append(OZkM)",
"def Xumz(YKHO, OZkM: Tuple[np.array, int, int, np.array, bool]) -> None:\n YKHO.replay_memory.append(OZkM)",
"def _jXH(YKHO, OZkM, KAOR=0):\n YKHO.memory.put(OZkM)",
"def tJtd(YKHO, QTBn, XeOP, rxHc, vOGg, _ins):\n if len(YKHO.memory) >= YKHO.si... | [
"0.8132843",
"0.792192",
"0.77726907",
"0.75853884",
"0.71884996",
"0.7046272",
"0.70148134",
"0.70004374",
"0.69907516",
"0.69736516",
"0.6941401",
"0.68760645",
"0.687369",
"0.67795897",
"0.6755102",
"0.6755102",
"0.66875243",
"0.6650613",
"0.656368",
"0.6556201",
"0.648782... | 0.6040921 | 34 |
List the manifest that should be regsitered when the main Ecpy app is started. | def rzx2():
import enaml
with enaml.imports():
from .pulses.manifest import PulsesManagerManifest
from .tasks.manifest import PulsesTasksManifest
from .measure.manifest import PulsesMeasureManifest
return [PulsesManagerManifest, PulsesTasksManifest, PulsesMeasureManifest] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WYGf(QpfX):\n return gW6a._readEntriesForSection(QpfX.projectDir, gW6a.MANIFEST_SECTION)",
"def H2RQ(YKHO):\n YKHO.app_manifests = []\n JNNq = Hy7s.path.join(YKHO.apps_dir_path, 'lib')\n for _SvI in Hy7s.listdir(JNNq):\n if _SvI not in ('__init__.py', '__init__.pyc'):\n if _SvI.... | [
"0.6822402",
"0.6748621",
"0.6674137",
"0.64820325",
"0.64424783",
"0.6272776",
"0.62469447",
"0.6175232",
"0.6144232",
"0.6143908",
"0.6143908",
"0.6017375",
"0.6006644",
"0.6003636",
"0.6000731",
"0.59922254",
"0.593581",
"0.5889177",
"0.5864841",
"0.581836",
"0.58062243",
... | 0.68570423 | 0 |
returns a dictionary of fields which contain empty values | def FCRa(YKHO):
UMY8 = YKHO.__class__.objects.values().get(pk=YKHO.pk)
Csk6 = {G1Hx: Ty9i for G1Hx, Ty9i in zip(UMY8.keys(), UMY8.values()) if Ty9i is None or Ty9i is u''}
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mu8L(YEnM: dict) -> dict:\n return {G1Hx: Ty9i for G1Hx, Ty9i in YEnM.items() if Ty9i is not None}",
"def zjCg(YKHO):\n return [eHNT for eHNT in YKHO.__dict__ if not YKHO.__dict__[eHNT]]",
"def iTqW(rV9y, Csk6):\n return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in Csk6.iteritems() if Ty9i is not None))",... | [
"0.7983259",
"0.7941192",
"0.7639726",
"0.746539",
"0.73698676",
"0.6927214",
"0.6896085",
"0.67924005",
"0.67747486",
"0.67715764",
"0.662057",
"0.6573854",
"0.6554528",
"0.65203387",
"0.6458828",
"0.6446863",
"0.6426083",
"0.64000857",
"0.63668996",
"0.6316774",
"0.62832195... | 0.78172976 | 2 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(YKHO, y7GR, qtWj):
tspZ = y7GR.learning_rate * 0.1 ** (qtWj // y7GR.lr_update)
for Lwm5 in YKHO.optimizer.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7665748",
"0.7665748",
"0.7665748",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585... | 0.732454 | 86 |
returns onehot encoded action | def XeOP(YKHO, hbFX):
return oyIN.eye(YKHO.action_space)[hbFX] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(jzdc, xASv, yDqo=a1PO.float32):\n assert 1 == jzdc.shape[-1]\n return (jzdc == a1PO.arange(xASv, device=jzdc.device)).to(dtype=yDqo)",
"def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel",
"def aFAW(QWiF)... | [
"0.7803888",
"0.77997535",
"0.77748996",
"0.77598214",
"0.77598214",
"0.75943583",
"0.75904423",
"0.7542067",
"0.74882495",
"0.74628276",
"0.7456401",
"0.74519724",
"0.74468255",
"0.7442785",
"0.7379645",
"0.73758435",
"0.7364575",
"0.7344589",
"0.73437077",
"0.7299576",
"0.7... | 0.0 | -1 |
A method that load a JSON file. | def tyeH(YKHO, pmON):
with open(pmON, 'rt') as Ki2L:
nPrm = qQXR.load(Ki2L)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H(gIsw):\n return qQXR.load(open(gIsw))",
"def LNvC(Ux0P):\n with open(Ux0P) as eHNT:\n return qQXR.loads(eHNT.read())",
"def WEhu(qaEx):\n with open(qaEx) as eHNT:\n return tU6l(eHNT.read())",
"def lc9H(Ux0P):\n with open(Ux0P) as nUeQ:\n YEnM = qQXR.load(nUeQ)\n r... | [
"0.83633",
"0.8256155",
"0.82382756",
"0.82305276",
"0.82032794",
"0.8193304",
"0.818521",
"0.81823885",
"0.8172648",
"0.8162192",
"0.8151449",
"0.81493753",
"0.81493753",
"0.8145307",
"0.81450677",
"0.81305826",
"0.81234866",
"0.8105768",
"0.8104503",
"0.8097091",
"0.8084463... | 0.79184186 | 32 |
Calculates the cdf values for the generate_cdf function | def a9o9(YKHO):
for eHNT, pImw in YKHO.__dists.iteritems():
for dict in YKHO.__queries:
dict['rss_lower_cdf'] = dict[umWR.QRY_LRSS] / YKHO.__db_size
dict['rss_upper_cdf'] = dict[umWR.QRY_URSS] / YKHO.__db_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, WKvO):\n if hasattr(WKvO, '__len__'):\n nn47 = oyIN.array([YKHO.cdf(YRbF) for YRbF in WKvO])\n else:\n nn47 = YKHO._distribution.cdf(WKvO)\n return nn47",
"def YzER(YKHO, BWXx=None):\n if BWXx is None:\n BWXx = YKHO.value\n return YKHO.rv.cdf(BWXx, *YKHO._pymc_d... | [
"0.7880744",
"0.77626157",
"0.77579534",
"0.76733917",
"0.75176334",
"0.74449193",
"0.74449193",
"0.7443677",
"0.74034524",
"0.7279149",
"0.726381",
"0.72613597",
"0.7246009",
"0.7064074",
"0.70593214",
"0.70334816",
"0.69956577",
"0.69546115",
"0.6932023",
"0.69054836",
"0.6... | 0.7402563 | 9 |
Remove speaker names and the first utterance from dialogue | def wVCU(V22M, N8L0, AwTT):
CyPu = []
Vl6w = []
ciSl = []
for GIN8, N77f in zip(V22M, N8L0):
if GIN8 in AwTT and (N77f == 100 or N77f == -100):
continue
if GIN8 == ':' and (N77f == 100 or N77f == -100):
continue
if N77f == 100:
CyPu.append(GIN8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eAMn(yaZN):\n vGaq = 'thing' if tuKI.random() > 0.5 else 'object'\n for d6pt, hZN8 in enumerate(yaZN):\n l5Ny = hZN8['caption']\n yaZN[d6pt]['caption'] = hcaS(l5Ny, vGaq, '.')\n for ESQh, FzR0 in enumerate(hZN8['dialog']):\n l5Ny = FzR0['question']\n l5Ny = hcaS... | [
"0.60985166",
"0.6002549",
"0.55941844",
"0.55934334",
"0.5578986",
"0.55637485",
"0.553348",
"0.53715837",
"0.53666514",
"0.5334621",
"0.52376544",
"0.52326286",
"0.5224764",
"0.52162284",
"0.5195054",
"0.5191454",
"0.5151477",
"0.50407106",
"0.50406885",
"0.5033438",
"0.503... | 0.6401526 | 0 |
Recursively turn mapping into nested `types.MappingProxyTypes` | def XBlP(Csk6):
Csk6 = dict(Csk6)
for G1Hx in Csk6.keys():
if hasattr(Csk6[G1Hx], '__getitem__') and hasattr(Csk6[G1Hx], 'keys'):
Csk6[G1Hx] = XBlP(Csk6[G1Hx])
Csk6 = SnBA.MappingProxyType(Csk6)
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VGtH(J8oL, ACnF=None):\n if ACnF is None:\n ACnF = []\n for rRzo, wEf2 in J8oL.items():\n if isinstance(rRzo, (str,)) and isinstance(wEf2, (str,)):\n yield (rRzo, lpUq(wEf2))\n else:\n DpUl = ACnF + [rRzo]\n if isinstance(wEf2, dict):\n ... | [
"0.6313534",
"0.57938516",
"0.5754199",
"0.5752322",
"0.5725024",
"0.56901246",
"0.56665444",
"0.5643556",
"0.5601905",
"0.5561394",
"0.55355215",
"0.5421475",
"0.5410307",
"0.5360019",
"0.5313919",
"0.5280264",
"0.5251168",
"0.5235689",
"0.5233986",
"0.5225589",
"0.521427",
... | 0.5478922 | 11 |
Initialize an object that contains the visible routines. Link the pi and gpio pins necessary and provide a function that controls the growth lighting. | def FIMM(YKHO, *qIxc, PcH2=HlIL, fabr=[va5c.GROWTH], gCuF, Z2Su=Hy7s.getcwd(), **B2fa):
super().__init__(light_control=PcH2, working_directory=Z2Su)
YKHO.CAM_ID = 2
YKHO.HAS_UPDATE = True
YKHO.settings = gCuF
YKHO.light_channels = []
for YwkQ in fabr:
if YwkQ in YKHO.settings.allowed_cha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n xi8C.setmode(xi8C.BOARD)\n for agxD in YKHO.all:\n xi8C.setup(agxD, xi8C.OUT)",
"def FIMM(YKHO):\n xi8C.setmode(xi8C.BOARD)\n YKHO.chanlist = [29, 31, 33, 35, 37]\n xi8C.setup(29, xi8C.IN)\n xi8C.setup(31, xi8C.IN)\n xi8C.setup(33, xi8C.IN)\n xi8C.setup(35, xi8C.I... | [
"0.74019915",
"0.7265144",
"0.72364",
"0.7109603",
"0.7031701",
"0.6993921",
"0.68408257",
"0.6820979",
"0.6786727",
"0.67469424",
"0.67213744",
"0.6720505",
"0.668183",
"0.66169983",
"0.66029096",
"0.6590681",
"0.65724903",
"0.65525204",
"0.65111274",
"0.65042925",
"0.647631... | 0.58720434 | 70 |
Function that calibrates the white balance for certain lighting specified in the channel parameter. This is camera specific, so it needs to be specified for each camera. | def Ygdm(YKHO, YwkQ: LC):
F5Lm('Warming up camera sensor...', 1)
YKHO.light_control(YwkQ, 1)
if YwkQ == va5c.WHITE:
with xUEU.PiCamera() as XtFw:
XtFw.resolution = (128, 80)
XtFw.rotation = YKHO.config['rotation']
XtFw.framerate = YKHO.settings.framerate[YwkQ]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hyHz(YKHO, YwkQ=None):\n return float(YKHO.getSensorData('ILLUMINATION', YwkQ))",
"def cXtq(LNo8, s_Vt):\n pPbt = []\n for YwkQ in XC5k.split(LNo8):\n VAJu, fHeP = (oyIN.percentile(YwkQ, s_Vt), oyIN.percentile(YwkQ, 100.0 - s_Vt))\n YwkQ = oyIN.uint8(oyIN.clip((YwkQ - VAJu) * 255.0 / (... | [
"0.61250806",
"0.5965167",
"0.5808294",
"0.5722662",
"0.5578191",
"0.5549312",
"0.5513952",
"0.54621667",
"0.5446234",
"0.53895867",
"0.53544164",
"0.52993697",
"0.52919817",
"0.5266026",
"0.52444756",
"0.524326",
"0.522411",
"0.5221587",
"0.52102345",
"0.5171049",
"0.516117"... | 0.7945288 | 0 |
Make the string by concatenating 10 characters | def wPRN(YKHO, hcXw: str, UHFx: int):
return hcXw * UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PGcp(exwG, len):\n KCHu = ''\n for YRbF in Ni9Y(0, exwG):\n KCHu += '1'\n for YRbF in Ni9Y(exwG, len):\n KCHu += '0'\n return KCHu",
"def eLpg(hcXw, u54L):\n if uDkn(hcXw):\n hcXw = yIiu\n VAp7 = KAvf\n for SrfE in Hs6x.repeat(hcXw, u54L):\n VAp7 += SrfE\n ... | [
"0.67154586",
"0.6604242",
"0.65211594",
"0.64415324",
"0.6398398",
"0.6345512",
"0.6304692",
"0.6245096",
"0.6243254",
"0.62368506",
"0.62165385",
"0.62158006",
"0.6182434",
"0.6179776",
"0.6167445",
"0.6162779",
"0.6157869",
"0.61573946",
"0.6146108",
"0.6106913",
"0.607111... | 0.0 | -1 |
Get the installed version for this project. | def k9RV(FHhW):
shAH = oqXj(FHhW)
if not Hy7s.path.exists(shAH):
raise QQ9n
with open(shAH, 'r') as eHNT:
return eHNT.read().strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSgd(YKHO):\n QTBn = YKHO.coordinator.data\n try:\n return cNH6(QTBn, 'firmware_update_info.base.installed_version')\n except KeyError:\n return None",
"def DpZH(YKHO):\n if YKHO.installed and (not YKHO._version):\n hlel = YKHO.call(YKHO._version_args, require_success=False)\... | [
"0.7820845",
"0.7573568",
"0.75185996",
"0.7504568",
"0.74173695",
"0.7417229",
"0.7375602",
"0.7361621",
"0.73463887",
"0.7324919",
"0.731229",
"0.72636425",
"0.7257509",
"0.7255835",
"0.7255835",
"0.72463197",
"0.72237104",
"0.7223102",
"0.722015",
"0.7211256",
"0.72073174"... | 0.6736342 | 87 |
Checks if a keyvalue pair is overridden. | def LbHe(YKHO, H5ew: _K) -> bool:
return H5ew in YKHO._customs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d33w(YKHO, _DBc):\n return _DBc in YKHO._explicit_settings",
"def lcCx(YKHO) -> bool:\n ...",
"def Tncv(YKHO) -> bool:\n if YKHO.parent is not None:\n return False\n return any((YKHO.elem in WKvO for WKvO in YKHO.schema.root if WKvO.tag == cCXu))",
"def eheT(YKHO, H5ew, BWXx):\n v4N... | [
"0.67183137",
"0.6225687",
"0.6050497",
"0.59912413",
"0.58764154",
"0.5763726",
"0.5761076",
"0.574152",
"0.5589279",
"0.5531325",
"0.5529704",
"0.5516081",
"0.5505543",
"0.5501006",
"0.5500598",
"0.54891133",
"0.5485341",
"0.54730964",
"0.5397111",
"0.5395002",
"0.5384455",... | 0.0 | -1 |
Adds a symbolic function. | def H2v5(YKHO, JfyU: Callable, hdOL: OpsetVersion) -> None:
YKHO._functions.set_base(hdOL, JfyU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J5Is(YKHO, m2Zb=None, mWFP='main'):\n if not isinstance(m2Zb, BPuU):\n print('Failed adding function! The input is not a SSAFunction.')\n elif mWFP in YKHO.ssa.functions:\n print('Failed adding function! Name already exist in the NNSSA network!')\n else:\n YKHO.ssa.add_function(mW... | [
"0.69114876",
"0.67881477",
"0.67881477",
"0.6768395",
"0.6540673",
"0.6528086",
"0.632356",
"0.6312063",
"0.62504023",
"0.61514604",
"0.6104824",
"0.6044929",
"0.60346407",
"0.5983935",
"0.59323126",
"0.592068",
"0.5906884",
"0.58918697",
"0.58825797",
"0.5847118",
"0.584201... | 0.6087199 | 11 |
Get current position in bounding box format `(top left x, top left y, width, height)`. | def Z080(JBMS):
U5bT = JBMS[:4].copy()
U5bT[2] *= U5bT[3]
U5bT[:2] -= U5bT[2:] / 2
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QXqx(C1GJ):\n h3cg, BQGg, Z3uP, bYzl = C1GJ\n yzQ0 = 1280\n MKlR = 720\n LFlW, _tIi, tlxW, es2x = (BQGg * yzQ0, bYzl * yzQ0, h3cg * MKlR, Z3uP * MKlR)\n tlxW = max(0, oyIN.floor(tlxW + 0.5).astype('int32'))\n LFlW = max(0, oyIN.floor(LFlW + 0.5).astype('int32'))\n es2x = min(MKlR, oyIN.flo... | [
"0.78299105",
"0.7808465",
"0.7656338",
"0.7539508",
"0.7469358",
"0.74591184",
"0.74350125",
"0.7391066",
"0.7290741",
"0.72883403",
"0.7165338",
"0.714176",
"0.71285486",
"0.709847",
"0.7097389",
"0.7097389",
"0.7083763",
"0.7083763",
"0.70822966",
"0.7071966",
"0.7064618",... | 0.0 | -1 |
Returns number of gems of the user | def tnhq(YKHO):
return YKHO.gems | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IVPP(YKHO):\n YKHO.cleanup()\n return len([True for P6bq in YKHO.users if not P6bq.name.startswith('System/')])",
"def vj7Q(YKHO):\n bo34.debug('Getting the number of users discovered...')\n return gFHi(VcOo(\"span[data-nsmodule='usersdiscovered']\"))",
"def xyYX(YKHO, cuiw) -> int:\n jsUo =... | [
"0.63939273",
"0.617394",
"0.61286867",
"0.61275655",
"0.6074947",
"0.6023079",
"0.60116863",
"0.5996377",
"0.5897199",
"0.58710957",
"0.586125",
"0.5840047",
"0.5837006",
"0.5795334",
"0.5790401",
"0.57717955",
"0.5756756",
"0.57475865",
"0.5732999",
"0.57158947",
"0.570542"... | 0.5380569 | 52 |
Return the length of the data inserted at pos. | def phug(YKHO, oeNL):
if oeNL in YKHO.insertions:
return YKHO.insertions[oeNL]
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nWMf(YKHO):\n return len(YKHO.data)",
"def u54L(YKHO):\n return len(YKHO._data) if YKHO._data else 0",
"def len(YKHO):\n return len(YKHO.data)",
"def u54L(YKHO) -> int:\n return len(YKHO.data)",
"def u54L(YKHO):\n return len(YKHO.data)",
"def u54L(YKHO):\n return len(YKHO.data)",
... | [
"0.64747965",
"0.6352307",
"0.6288425",
"0.6252985",
"0.6224766",
"0.6224766",
"0.6224766",
"0.61958516",
"0.61939985",
"0.6155615",
"0.6120838",
"0.6089486",
"0.6052351",
"0.6050647",
"0.6050647",
"0.6050647",
"0.6046272",
"0.60322696",
"0.6031389",
"0.6025278",
"0.6025278",... | 0.79796803 | 0 |
Return a list of all nodes with the given cursor kind. | def WEEB(Q6kx, eJTR):
def jbn3(Q6kx, _AKB, EmMj):
if Q6kx.kind == eJTR:
EmMj.append(Q6kx)
return 2
EmMj = []
HYLZ.Cursor_visit(Q6kx, HYLZ.Cursor_visit_callback(jbn3), EmMj)
return EmMj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpOb(Q6kx, mwXN):\n\n def jbn3(Q6kx, _AKB, EmMj):\n if Q6kx.kind in mwXN:\n EmMj.append(Q6kx)\n return 2\n EmMj = []\n HYLZ.Cursor_visit(Q6kx, HYLZ.Cursor_visit_callback(jbn3), EmMj)\n return EmMj",
"def ASvJ(w2B8):\n DpUl = w2B8.cursor()\n DpUl.execute('SELECT * FR... | [
"0.69339275",
"0.61247975",
"0.6049354",
"0.6036378",
"0.59437424",
"0.5733899",
"0.5629998",
"0.55007434",
"0.5495847",
"0.54852235",
"0.5484781",
"0.5468732",
"0.5421211",
"0.54094577",
"0.5379108",
"0.5315027",
"0.53092724",
"0.52947426",
"0.5277855",
"0.52556694",
"0.5247... | 0.679692 | 1 |
Return a list of all nodes with one of the given kinds. | def NpOb(Q6kx, mwXN):
def jbn3(Q6kx, _AKB, EmMj):
if Q6kx.kind in mwXN:
EmMj.append(Q6kx)
return 2
EmMj = []
HYLZ.Cursor_visit(Q6kx, HYLZ.Cursor_visit_callback(jbn3), EmMj)
return EmMj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CTfM(YKHO, ziJC):\n for Q6kx, tckm in YKHO._execution_graph.nodes_iter(data=True):\n if tckm['kind'] in ziJC:\n yield Q6kx",
"def LPWB(w1kE, cM24='switch'):\n return {G1Hx: Ty9i for geyT in w1kE for G1Hx, Ty9i in geyT.items() if Ty9i['type'] == cM24}",
"def LPWB(YKHO, PGEZ=None):\n ... | [
"0.66526467",
"0.5960975",
"0.59491485",
"0.579626",
"0.579363",
"0.5780786",
"0.56611025",
"0.55858386",
"0.5585554",
"0.5550465",
"0.55432415",
"0.5536144",
"0.54632044",
"0.54180396",
"0.5393017",
"0.53753716",
"0.5347973",
"0.5342732",
"0.5285149",
"0.52699256",
"0.526762... | 0.5877766 | 3 |
Add a tag around the given source range. The 'tag' argument is the type of HTML tag to add. Attributes is a list of pairs, where the first element is the attribute name, and the second is the attribute value. | def McTr(YKHO, TZ9E, azoT, xx9t):
YKHO.tags.append((TZ9E, azoT, xx9t)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def McTr(YKHO, TZ9E):\n YKHO.tags.append(TZ9E)",
"def McTr(YKHO, TZ9E):\n U7YL = YKHO.copy()\n U7YL.tags.add(TZ9E)\n return U7YL",
"def McTr(YKHO, TZ9E):\n if TZ9E not in YKHO._tag:\n YKHO._tag.append(TZ9E)\n return YKHO",
"def McTr(*, TZ9E='tag!', eHNT=xp6w):\n setattr(eHNT, 'my_... | [
"0.6237614",
"0.62363",
"0.6118091",
"0.60898703",
"0.604354",
"0.6036695",
"0.5933094",
"0.5858743",
"0.58373415",
"0.56728524",
"0.5649009",
"0.5648591",
"0.5643544",
"0.5584881",
"0.55269784",
"0.549094",
"0.54548544",
"0.5401982",
"0.5391238",
"0.538289",
"0.53532255",
... | 0.6789945 | 0 |
Recursively find all source files in the given directory. Filenames are all given as absolute paths. | def SLzi(dir):
CBZq = ['h', 'c', 'cc', 'cpp', 'm', 'mm']
CBZq = tuple(['.' + WKvO for WKvO in CBZq])
RRlC = set()
for pGQh, iIh5, iumf in Hy7s.walk(dir):
RRlC.update([Hy7s.path.join(pGQh, mWFP) for mWFP in iumf if mWFP.endswith(CBZq)])
return [Hy7s.path.abspath(nUeQ) for nUeQ in RRlC] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVO9(IWVd):\n for pGQh, bGrB, iumf in Hy7s.walk(IWVd):\n for FYKK in iumf:\n if FYKK.endswith('.c'):\n if pGQh != IWVd:\n SEcv = pGQh[len(IWVd) + 1:]\n yield Hy7s.path.join(SEcv, FYKK)\n else:\n yield FY... | [
"0.739287",
"0.7017929",
"0.6990493",
"0.6988693",
"0.67914504",
"0.67714125",
"0.67694056",
"0.67431784",
"0.6726342",
"0.6668429",
"0.6651442",
"0.6627994",
"0.6588584",
"0.658678",
"0.6584782",
"0.6575987",
"0.6546709",
"0.6535129",
"0.6530092",
"0.6501476",
"0.64707786",
... | 0.68940085 | 4 |
Return a copy of the filter. All attributes are copied aside from the integration and channels which are referenced only. Returns Filter | def jth9(YKHO):
BdN0 = YKHO.__class__(integration=None, data=None)
for xC3W, BWXx in YKHO.__dict__.items():
if xC3W in YKHO.referenced_attributes:
setattr(BdN0, xC3W, BWXx)
elif hasattr(BWXx, 'copy'):
setattr(BdN0, xC3W, BWXx.copy())
else:
setattr(BdN0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n BDSM = l58K(YKHO.capacity, YKHO.error_rate)\n BDSM.filter = YKHO.filter.copy()\n return BDSM",
"def jth9(YKHO) -> 'FilterAlgorithmState':\n return _qLf(YKHO)",
"def claA(YKHO):\n i3ak = jth9.deepcopy(YKHO)\n i3ak._allow_filtering = True\n return i3ak",
"def jth9(YKHO):\... | [
"0.7904287",
"0.7236204",
"0.71982616",
"0.6469615",
"0.63807416",
"0.6281001",
"0.6264682",
"0.62618846",
"0.6240955",
"0.6240955",
"0.6194326",
"0.6176442",
"0.61553276",
"0.606434",
"0.6047419",
"0.6035076",
"0.5963126",
"0.59589064",
"0.5956324",
"0.5930615",
"0.59087825"... | 0.5929971 | 20 |