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 |
|---|---|---|---|---|---|---|
(read only) The number of CCM defect errors received. | def _R6a(YKHO):
return YKHO._get_attribute('errCcmDefectCount') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ldtb(YKHO) -> int:\n return sum((len(tTpl) for tTpl in YKHO.errors.values()))",
"def AGxm(YKHO):\n if YKHO._cacheExpiration <= NA0M.GetTickCount():\n if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS:\n return LgMi.ERRCOUNT_INVALID\n Ylbp = YKHO._errCount\n retu... | [
"0.7461432",
"0.72877026",
"0.72443134",
"0.72436816",
"0.7201189",
"0.70902014",
"0.7068613",
"0.7015806",
"0.70046484",
"0.69647",
"0.6961267",
"0.68854296",
"0.6783305",
"0.6715702",
"0.67095494",
"0.6665564",
"0.66525567",
"0.66383225",
"0.6631704",
"0.6618105",
"0.657824... | 0.80675703 | 0 |
(read only) The rdi tx state. | def jxkh(YKHO):
return YKHO._get_attribute('rdiTxState') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _MRW(YKHO):\n return YKHO._get_attribute('rdiRxState')",
"def ja6o(YKHO):\n return YKHO.prev_outtx",
"def ja6o(YKHO):\n return YKHO.state & 255",
"def dSi0(YKHO):\n return YKHO.state",
"def QTBn(YKHO):\n return YKHO.__state",
"def QTBn(YKHO):\n return YKHO.stateDic",
"def QTBn(YKH... | [
"0.76220447",
"0.67465764",
"0.65319353",
"0.6525764",
"0.65183336",
"0.6514061",
"0.651022",
"0.6508991",
"0.6500285",
"0.6479639",
"0.64680487",
"0.64680487",
"0.6455967",
"0.6455967",
"0.64527136",
"0.6443111",
"0.64298564",
"0.64298564",
"0.64298564",
"0.64298564",
"0.642... | 0.87004226 | 0 |
(read only) The remote MAC address for the CCM message. | def eMnP(YKHO):
return YKHO._get_attribute('remoteMacAddress') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXjy(YKHO):\n return YKHO.query(':SYST:COMM:ETH:MAC?')",
"def HXjy(YKHO):\n return YKHO._get_variable('mac')",
"def p4ZD(YKHO):\n return YKHO.configuration['MAC']",
"def QfE5(YKHO):\n return YKHO.port['mac_address']",
"def B_LB():\n YmHP = _7az.get_local_interface()\n return bT5T.ifad... | [
"0.7694773",
"0.76073015",
"0.74683785",
"0.7457615",
"0.74268097",
"0.74153364",
"0.7346283",
"0.7341168",
"0.72930104",
"0.72824097",
"0.72726905",
"0.72709936",
"0.72709936",
"0.7228448",
"0.72142905",
"0.7188563",
"0.71800715",
"0.71007943",
"0.70856184",
"0.70714676",
"0... | 0.80246407 | 0 |
(read only) The number of RMEP defect errors received. | def N8iO(YKHO):
return YKHO._get_attribute('remoteMepDefectCount') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wXIV(YKHO):\n return YKHO.errors",
"def _WAK(YKHO):\n return YKHO._iErr",
"def _R6a(YKHO):\n return YKHO._get_attribute('errCcmDefectCount')",
"def ldtb(YKHO) -> int:\n return sum((len(tTpl) for tTpl in YKHO.errors.values()))",
"def c8PR(YKHO) -> int:\n return YKHO.error_count",
"def i... | [
"0.7528774",
"0.7504271",
"0.7503996",
"0.74355704",
"0.74139667",
"0.7345498",
"0.712849",
"0.7108955",
"0.70868766",
"0.70411247",
"0.69850326",
"0.6930903",
"0.6889429",
"0.669839",
"0.6695016",
"0.6676937",
"0.66726",
"0.6664816",
"0.66571844",
"0.6564105",
"0.65472484",
... | 0.60942626 | 55 |
(read only) The source MEP identifier for the CCM. | def m6a8(YKHO):
return YKHO._get_attribute('srcMepId') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UBGL(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_id')",
"def cP1Y(YKHO) -> str:\n return YKHO.source_id",
"def mtJJ(YKHO) -> str:\n return YKHO._subject.metric_source_id(YKHO._metric_source) or '' if YKHO._subject and YKHO._metric_source else ''",
"def cP1Y(YKHO):\n return zZ1q(YKHO._my_map... | [
"0.70339096",
"0.6935256",
"0.6926813",
"0.6898944",
"0.6795278",
"0.6742987",
"0.6701069",
"0.66115177",
"0.64297026",
"0.6427578",
"0.63983744",
"0.63983744",
"0.63023466",
"0.6242099",
"0.6242099",
"0.6242099",
"0.6242099",
"0.6242099",
"0.6215953",
"0.62134063",
"0.619850... | 0.7018612 | 1 |
Converts an array of numbered time delta values to datetimes. This is similar to the CF time utilities but more comprehensive on timedelta options recognized. | def _nJw(ZQRQ: np.array, pGcm: str, DffG: str='%Y-%m-%d %X') -> oyIN.array:
VOlW = pGcm.split(' ')[0].lower()
hLRM = qcWV.datetime.strptime(pGcm.split(' since ')[-1], DffG)
if VOlW == 'years':
RA_F = enlf(years=1)
elif VOlW == 'months':
RA_F = enlf(months=1)
elif VOlW == 'weeks':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c89h(v9CE):\n DwRD = []\n for ITS7 in v9CE:\n try:\n CjKC, kRsb, _8eu = p_4M.day_sec_type_from_string(ITS7)\n hjfy = p_4M.tai_from_day(CjKC) + kRsb\n DwRD += [hjfy]\n except wpWc:\n RKD7.error('Could not convert time: %s', ITS7)\n DwRD ... | [
"0.6208844",
"0.61511093",
"0.6126869",
"0.61230624",
"0.6107574",
"0.607079",
"0.607046",
"0.5925035",
"0.5876179",
"0.57746387",
"0.5764433",
"0.57588017",
"0.5742517",
"0.56461066",
"0.56405914",
"0.5624431",
"0.5624431",
"0.56158715",
"0.5590106",
"0.5586889",
"0.54464734... | 0.5917549 | 8 |
Bivariate empirical copula cdf with parameter i, j; | def Gzi2(EcVT, fuBA, YRbF, r845):
sIOC = oyIN.sort(EcVT)
EDNH = oyIN.sort(fuBA)
ywwl = EcVT.shape[0]
Z9rn = 0
for exwG in range(ywwl):
Z9rn += EcVT[exwG] <= sIOC[YRbF] and fuBA[exwG] <= EDNH[r845]
return Z9rn / ywwl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EEZE(WKvO, YRbF, r845):\n r8hN = WKvO.shape[1]\n lgWp = oyIN.arange(r8hN)\n ZwWU = lgWp[lgWp != YRbF]\n XPoH = lgWp[lgWp != r845]\n return KPKi(WKvO[:, ZwWU[:, oyIN.newaxis], XPoH[oyIN.newaxis, :]])",
"def YzER(YKHO, LVAh, qIxc=None):\n LVAh = oyIN.asarray(LVAh)\n if qIxc is None:\n ... | [
"0.65412545",
"0.64400095",
"0.6282541",
"0.62546253",
"0.6238107",
"0.6202859",
"0.61820316",
"0.61638",
"0.6140201",
"0.6137817",
"0.6133967",
"0.60777575",
"0.6068123",
"0.60567844",
"0.60352004",
"0.603091",
"0.60266215",
"0.60188025",
"0.6001326",
"0.59988886",
"0.599184... | 0.6468515 | 1 |
Weighted portfolio tail dependency coefficient; Essentially the weighted pairwise tail dependence, without taking into account asset volatility. | def Me7c(YKHO, _mSQ, t6Sc='empirical'):
assert t6Sc in ['empirical', 'gaussian', 't', 'MCF'], "marginal method should be 'empirical', 'gaussian', 't' or 'MCF'!"
yzQ0 = YKHO._checkWeights(_mSQ)[:, 0]
nlH8 = YKHO.tdm(t6Sc).values
exwG = YKHO._X.shape[1]
j93S = 0
Nqp_ = 0
for YRbF in range(exwG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVjA(YKHO):\n return YKHO.balance + YKHO.portfolio.total_closing_value()",
"def PCoy(YKHO, TYz5):\n t7Zg = 4\n if TYz5 <= 3:\n return 0\n else:\n return 0.8",
"def DaJg(YKHO, xNQ_=None, VWrU=None):\n xNQ_ = YRCA(VWrU, xNQ_)\n YKHO.checkPropertyTempRange('thermal conductivity... | [
"0.5646841",
"0.55801857",
"0.55373544",
"0.5525908",
"0.5524893",
"0.54931915",
"0.5481381",
"0.5468334",
"0.54670095",
"0.54306215",
"0.5415679",
"0.5407499",
"0.540072",
"0.53763473",
"0.5375908",
"0.5375908",
"0.5371271",
"0.53442943",
"0.5309644",
"0.53076935",
"0.527265... | 0.0 | -1 |
Return the full coefficient matrix in the spinorbital basis | def kl10(YKHO):
Nq1b = oyIN.zeros((2 * YKHO.M, 2 * YKHO.M), dtype=oyIN.complex128)
for YRbF in range(YKHO.M):
for r845 in range(YKHO.M):
Nq1b[2 * YRbF, 2 * r845] = YKHO.C[YRbF, r845]
Nq1b[2 * YRbF + 1, 2 * r845 + 1] = YKHO.C[YRbF, r845]
return Nq1b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2jN(YKHO, yM17):\n return oyIN.array(I4Qa.CalcCoulombMat(yM17))",
"def FN88(YKHO):\n return YKHO.coef",
"def QQD4(ywwl, Zihr):\n NBNw, RPT1 = oyIN.meshgrid(oyIN.arange(0, ywwl), oyIN.arange(0, ywwl))\n lxZs = NBNw * RPT1\n naF9 = Zihr * (2 * oyIN.pi * 1j * lxZs) / ywwl\n _kLY = oyIN.ones... | [
"0.68125504",
"0.6455653",
"0.64391345",
"0.6435443",
"0.63996005",
"0.6388235",
"0.6385208",
"0.6380248",
"0.6374812",
"0.63523144",
"0.6341907",
"0.6322669",
"0.6285394",
"0.6264702",
"0.6228697",
"0.6191814",
"0.6187571",
"0.6173552",
"0.6148923",
"0.6142174",
"0.61215097"... | 0.6714023 | 1 |
Loads `torch.nn.Module` instance from path | def tyeH(YKHO, pmON):
uqvc = Hy7s.path.join(pmON, YKHO.model_jit_file_name)
tyeH = ht2j.jit.load
if not Hy7s.path.exists(uqvc):
uqvc = Hy7s.path.join(pmON, YKHO.model_file_name)
tyeH = ht2j.load
with open(uqvc, 'rb') as eHNT:
return tyeH(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPib(YKHO, pmON):\n YKHO.loaded_model = True\n YKHO.model = ht2j.load(pmON)",
"def uyMl(YKHO, ZGE9: str) -> ht2j.nn.Module:\n pmON = f'{YKHO._log_dir}/{ZGE9}.pth'\n C3ST = ht2j.load(pmON)\n return C3ST",
"def cmTB(pmON):\n global __brain_index\n I2TA = PQrP.load_source('__brain_model' ... | [
"0.7454807",
"0.711922",
"0.703062",
"0.68331766",
"0.67900205",
"0.67703575",
"0.6761508",
"0.67128485",
"0.66501254",
"0.6626282",
"0.6574486",
"0.65629286",
"0.6548407",
"0.6514612",
"0.6498505",
"0.64940983",
"0.6489446",
"0.6483082",
"0.6453725",
"0.64434636",
"0.6412989... | 0.66239184 | 10 |
Update this dictionary with the values in d and kw. The setting raises an exception if the updating would clobber an existing value. | def QdZT(YKHO, Csk6=(), **YSA3):
for G1Hx, Ty9i in WhY1.chain(Csk6.iteritems() if hasattr(Csk6, 'iteritems') else Csk6, YSA3.iteritems()):
YKHO[G1Hx] = Ty9i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, Csk6=None, **YSA3):\n if not Csk6 is None:\n if hasattr(Csk6, 'items'):\n DumB = Csk6.items()\n else:\n DumB = Csk6\n for G1Hx, Ty9i in DumB:\n YKHO[G1Hx] = Ty9i\n for G1Hx, Ty9i in YSA3.items():\n YKHO[G1Hx] = Ty9i",
"def NY2Y(Csk... | [
"0.7862951",
"0.66653574",
"0.660222",
"0.6570562",
"0.6533493",
"0.6448982",
"0.63860816",
"0.6353244",
"0.6329228",
"0.6306297",
"0.6279654",
"0.62333137",
"0.62067026",
"0.6166885",
"0.6030487",
"0.6015088",
"0.6008784",
"0.60017437",
"0.5992829",
"0.5981458",
"0.59394",
... | 0.74485046 | 1 |
Assign value to self[key] unconditionally. Will not raise an error, even if self[key] already exists. | def set(YKHO, H5ew, BWXx):
super(KigR, YKHO).__setitem__(H5ew, BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1R3(YKHO, H5ew, BWXx):\n if H5ew in YKHO.keys() and BWXx is not YKHO[H5ew]:\n raise KeyError(f\"Key '{H5ew}' already exists with value '{YKHO[H5ew]}'.\")\n dict.__setitem__(YKHO, H5ew, BWXx)",
"def set(YKHO, H5ew, BWXx):\n try:\n YKHO[H5ew] = BWXx\n except KeyError:\n raise"... | [
"0.78005743",
"0.73064935",
"0.7272529",
"0.7262903",
"0.7255719",
"0.72081876",
"0.7089456",
"0.70351404",
"0.69981724",
"0.6965508",
"0.69596666",
"0.6929559",
"0.6900474",
"0.68946964",
"0.68893003",
"0.6889118",
"0.6815246",
"0.68105173",
"0.67814595",
"0.67533684",
"0.67... | 0.6699437 | 25 |
Concatenates a url suffix with the base url for the places where only a suffix is returned. Updates the list of dicts given, and returns it. | def MODD(YKHO, h2IT: List[Dict[str, Any]], sFZY: str='url'):
for geh0 in h2IT:
YKHO._concatenate_url(geh0, sFZY)
return h2IT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l4eR(YKHO, ZI14):\n return f'{YKHO._base_url}/{ZI14}'",
"def Qi1G(YKHO, *qIxc):\n bD7m = YKHO._api_url.rstrip('/')\n for ZI14 in qIxc:\n bD7m += '/' + ZI14.strip('/')\n S0MI.debug('URL created: %s', bD7m)\n return bD7m",
"def UkyR(YKHO, geh0: Dict[str, Any], sFZY: str='url'):\n if ... | [
"0.69260323",
"0.69082457",
"0.64503545",
"0.6210586",
"0.6171155",
"0.6149305",
"0.6148315",
"0.608411",
"0.60784936",
"0.60757464",
"0.5993535",
"0.5957388",
"0.5873666",
"0.58730495",
"0.5854687",
"0.58405954",
"0.5802346",
"0.5787963",
"0.5779036",
"0.5778521",
"0.5774753... | 0.60373193 | 10 |
Lowers firsts letter of all keys in the dictionary given and returns the new dictionary. | def OedJ(geh0: dict):
Plm4.debug(f'lowering keys for response: {geh0}')
return dict(((_lpy(H5ew), BWXx) for H5ew, BWXx in geh0.items())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIGo(fK8P) -> dict:\n return {H5ew.lower() if type(H5ew) == str else H5ew: BWXx for H5ew, BWXx in fK8P.items()}",
"def fsrE(YKHO, Csk6):\n for G1Hx in Csk6.iterkeys():\n Ty9i = Csk6.pop(G1Hx)\n if type(G1Hx) == str and (not G1Hx.islower()):\n G1Hx = G1Hx.lower()\n Csk6[G... | [
"0.75449955",
"0.7297301",
"0.7194202",
"0.7169957",
"0.6980764",
"0.68534404",
"0.67207855",
"0.6685644",
"0.66468054",
"0.63910294",
"0.6322031",
"0.621531",
"0.62150705",
"0.62068325",
"0.6201798",
"0.6172836",
"0.6165604",
"0.6162149",
"0.61339694",
"0.61226904",
"0.61191... | 0.6866522 | 5 |
For a dictionary d, get the key for the largest value. If largest value is attained several times, get the smallest respective key. | def MIlm(Csk6):
X_7r = sorted([H5ew for H5ew in Csk6.keys()])
hkxX = [Csk6[H5ew] for H5ew in X_7r]
bQ6z = max(hkxX)
for H5ew, BWXx in zip(X_7r, hkxX):
if BWXx == bQ6z:
return H5ew | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SU_z(Csk6):\n Ty9i = list(Csk6.values())\n G1Hx = list(Csk6.keys())\n return G1Hx[Ty9i.index(max(Ty9i))]",
"def SU_z(Csk6):\n Ty9i = list(Csk6.values())\n G1Hx = list(Csk6.keys())\n return G1Hx[Ty9i.index(max(Ty9i))]",
"def SU_z(Csk6):\n Ty9i = list(Csk6.values())\n G1Hx = list(Csk6... | [
"0.8052534",
"0.8052534",
"0.8012843",
"0.8012843",
"0.8005146",
"0.7986714",
"0.7986242",
"0.7985935",
"0.7873417",
"0.7856638",
"0.78231525",
"0.7819912",
"0.78197986",
"0.78055185",
"0.7745127",
"0.7677104",
"0.7574468",
"0.757087",
"0.75640625",
"0.7542157",
"0.7506815",
... | 0.84360904 | 0 |
For a given embedding, return bootstrap replications for R. | def rLHV(I3uV, wjQX, _fgY, UuIT, mYJq, H5b3):
lhiI, yMFs, G0lX = wjQX
HufS = 1 + int((min([Mq01[-1] - Mq01[0] for Mq01 in I3uV]) - (lhiI + _fgY)) / _fgY)
r0ru = int(H5b3)
if r0ru >= HufS:
print('Warning. Block length too large given number of symbols. Skipping.')
return []
iuxw = oyI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B1fX(__n6, kCVF, xAU6, OnWS, y12T):\n uPHA = __n6.shape[1]\n lYc0 = list()\n for bGrB in OnWS:\n tfQ1 = y12T.choice(uPHA, size=uPHA, replace=True)\n DDF0 = __n6[:, tfQ1]\n Aofo = kCVF(DDF0, options=xAU6)\n lYc0.append(Aofo)\n return lYc0",
"def DDF0(YKHO):\n ZLJ_ = ... | [
"0.59238976",
"0.56594044",
"0.55153924",
"0.5506629",
"0.5444762",
"0.5439812",
"0.5408113",
"0.5369856",
"0.53658086",
"0.5337143",
"0.5334687",
"0.5323687",
"0.5316615",
"0.5283828",
"0.5283828",
"0.5274904",
"0.52614206",
"0.526052",
"0.52605057",
"0.52442867",
"0.5216855... | 0.5422269 | 6 |
Get symbol_counts for the symbols excluding the response. | def Uv5s(DgwF, vGZu=True):
NCQl = [mBkc(), mBkc()]
for o61b in DgwF:
geh0 = int(o61b % 2)
jVeP = o61b // 2
NCQl[geh0][jVeP] = DgwF[o61b]
if vGZu:
FrNZ = mBkc()
for geh0 in [0, 1]:
for o61b in NCQl[geh0]:
FrNZ[o61b] += NCQl[geh0][o61b]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fTMl(YKHO):\n return YKHO.nsymbols",
"def FXgP(YKHO) -> int:\n ...",
"def vZzE(YKHO):\n return YKHO.get_request('/api/v1/symbols')",
"def mghD(YKHO):\n return J8uC.SBModule_GetNumSymbols(YKHO)",
"def AXYl(YKHO):\n return len(YKHO._vocabulary)",
"def GnqG(YKHO) -> int:\n ...",
"def... | [
"0.6868337",
"0.65387636",
"0.60656565",
"0.595737",
"0.59140086",
"0.5904302",
"0.5819976",
"0.57712436",
"0.576551",
"0.57639825",
"0.5760583",
"0.57378894",
"0.57275826",
"0.56821483",
"0.5653936",
"0.56504446",
"0.56167704",
"0.55986243",
"0.54951555",
"0.54888004",
"0.54... | 0.59123045 | 5 |
This method uses iteration with a for/while loop to reverse the string. If must iterate the string starting at the first character forward. | def EYtn(vIwR):
st9m = ''
for YRbF in range(len(vIwR)):
st9m += vIwR[len(vIwR) - YRbF - 1]
return st9m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rvFv(KCHu: str) -> str:\n return KCHu[::-1]",
"def Zke2(YKHO, KCHu: List[str]) -> None:\n j93S = []\n YRbF = len(KCHu) - 1\n print(YRbF)\n while YRbF >= 0:\n j93S.append(KCHu[YRbF])\n YRbF -= 1\n for r845 in range(0, len(KCHu)):\n KCHu[r845] = j93S[r845]",
"def Zke2(Y... | [
"0.8329499",
"0.7604014",
"0.7540326",
"0.74203086",
"0.74041146",
"0.7401986",
"0.73915935",
"0.73650527",
"0.7342529",
"0.7329175",
"0.73233247",
"0.7309714",
"0.7299148",
"0.72863734",
"0.72481143",
"0.72402245",
"0.72371805",
"0.7232566",
"0.722307",
"0.72209036",
"0.7220... | 0.80244404 | 1 |
Initialize a batch of Uniform distributions. | def FIMM(YKHO, gqRb=0.0, ODP9=1.0, rUrJ=False, fdIe=True, mWFP='Uniform'):
SGPK = dict(locals())
with IPme.name_scope(mWFP, values=[gqRb, ODP9]) as mWFP:
with IPme.control_dependencies([M7ml.assert_less(gqRb, ODP9, message='uniform not defined when low >= high.')] if rUrJ else []):
YKHO._low... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XW5Q(YKHO):\n YKHO.total_space.uniform_init_()",
"def AB3B(xlLU, Htse, NXpY=1):\n sjXb = tuKI.split(xlLU, 3)\n NArs = [tuKI.normal(sjXb[YRbF], [Htse, Htse]) * NXpY for YRbF in range(2)]\n return NArs",
"def uIcm(YKHO, hksT: float=0, NXpY: float=0.1):\n YKHO._global_bias = 0\n 'same parame... | [
"0.6856444",
"0.6489439",
"0.6471512",
"0.6469473",
"0.6434122",
"0.6425081",
"0.63261354",
"0.627009",
"0.6244181",
"0.61719954",
"0.61334497",
"0.6102543",
"0.6099677",
"0.6083456",
"0.60828143",
"0.6054643",
"0.6054167",
"0.60448754",
"0.60413116",
"0.6026905",
"0.60267395... | 0.0 | -1 |
Prerpc interceptor for set_iam_policy Override in a subclass to manipulate the request or metadata before they are sent to the Eventarc server. | def XHNm(YKHO, QePW: iam_policy_pb2.SetIamPolicyRequest, yIVm: Sequence[Tuple[str, str]]) -> AzJI[N1Ai.SetIamPolicyRequest, bdIy[AzJI[str, str]]]:
return (QePW, yIVm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pOmo(YKHO, QePW):\n YKHO.check_preconditions(QePW)\n Yx0R = WR89.b64encode(bytearray(str(YKHO.counter), 'utf-8')).decode('utf-8')\n if QePW.headers.get('if-match') is not None and Yx0R != QePW.headers.get('if-match'):\n raise LbBU.ErrorResponse('Mismatched ETag has %s' % Yx0R, status_code=412)\... | [
"0.7018864",
"0.6836461",
"0.6635458",
"0.65768325",
"0.65768325",
"0.64836913",
"0.63322604",
"0.62648034",
"0.62648034",
"0.6264592",
"0.62399465",
"0.5978845",
"0.5978764",
"0.59641916",
"0.5947355",
"0.59388053",
"0.5938315",
"0.5902565",
"0.5843378",
"0.58425325",
"0.576... | 0.654784 | 6 |
Postrpc interceptor for set_iam_policy Override in a subclass to manipulate the response after it is returned by the Eventarc server but before it is returned to user code. | def SsT4(YKHO, geh0: policy_pb2.Policy) -> u0K_.Policy:
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JJ6d(YKHO, QePW, geh0):\n geh0 = YKHO._add_p3p_policy(geh0)\n return geh0",
"def _cwM(YKHO, geh0: policy_pb2.Policy) -> u0K_.Policy:\n return geh0",
"def _cwM(YKHO, geh0: policy_pb2.Policy) -> u0K_.Policy:\n return geh0",
"def pOmo(YKHO, QePW):\n YKHO.check_preconditions(QePW)\n Yx0R = ... | [
"0.7145557",
"0.68427557",
"0.68427557",
"0.6673944",
"0.6372639",
"0.6240336",
"0.62217623",
"0.6059875",
"0.59610313",
"0.588819",
"0.5867198",
"0.5818042",
"0.5796402",
"0.5772008",
"0.5772008",
"0.5744825",
"0.5744825",
"0.56849414",
"0.5667363",
"0.5662995",
"0.5657298",... | 0.7264721 | 0 |
r"""Call the list operations method over HTTP. | def nrOS(YKHO, QePW: operations_pb2.ListOperationsRequest, *, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Optional[float]=None, yIVm: Sequence[Tuple[str, str]]=()) -> s1LG.ListOperationsResponse:
Zgvv: x1iM[cuzp[str, str]] = [{'method': 'get', 'uri': '/v1/{name=projects/*/locations/*}/operations'}]
QePW, yIV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nyyo(YKHO):\n geh0 = YKHO.authed_get('{}-list'.format(XBe4))\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)",
"def P74o(YKHO, QePW, **B2fa):\n return YKHO.dispatch('list', QePW, **B2fa)",
"def UMnH(YKHO, QePW, *qIxc, **B2fa):\n pass",
"def list(YKHO, QePW):\n NuCn = ['Uses actions ... | [
"0.7547105",
"0.74485487",
"0.73498064",
"0.7148355",
"0.70831966",
"0.70579004",
"0.696871",
"0.6908607",
"0.69014245",
"0.69014245",
"0.69014245",
"0.6852013",
"0.6852013",
"0.6852013",
"0.6852013",
"0.6852013",
"0.68451494",
"0.6831096",
"0.6831096",
"0.68276703",
"0.68229... | 0.0 | -1 |
Check if the fleet is at an edge and the update position of all aliens in the fleet | def bOBM(URms, SaI9, ig_r, eQSh, Vjhr, WFC2, y1e_):
YSO3(URms, SaI9)
SaI9.update()
LHWL(URms, eQSh, Vjhr, ig_r, SaI9, WFC2, y1e_)
if a9eO.sprite.spritecollideany(ig_r, SaI9):
GR2R(URms, eQSh, Vjhr, ig_r, SaI9, WFC2, y1e_)
print('Ship Hit!!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break",
"def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break",
"def nMi8(YKHO):\n for oeTy in YK... | [
"0.7683869",
"0.76536316",
"0.7650482",
"0.7627116",
"0.7618077",
"0.7618077",
"0.7618077",
"0.7618077",
"0.7610017",
"0.75957453",
"0.75467014",
"0.744381",
"0.7389978",
"0.7374009",
"0.73651713",
"0.7363328",
"0.7363328",
"0.7363328",
"0.7363328",
"0.7363328",
"0.7363328",
... | 0.0 | -1 |
Check if any aliens hit the bottom of the screen | def LHWL(URms, eQSh, Vjhr, ig_r, SaI9, WFC2, y1e_):
VXOZ = Vjhr.get_rect()
for oeTy in SaI9.sprites():
'Treat it the same way as if ship is hit'
if oeTy.rect.bottom >= VXOZ.bottom:
GR2R(URms, eQSh, Vjhr, ig_r, SaI9, WFC2, y1e_)
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VXOZ.bottom:\n YKHO._ship_hit()\n break",
"def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VX... | [
"0.86856323",
"0.8654698",
"0.85987777",
"0.848117",
"0.84490895",
"0.83680713",
"0.83519995",
"0.8220252",
"0.8206428",
"0.8187336",
"0.81848395",
"0.81510395",
"0.81426024",
"0.8139971",
"0.8126761",
"0.81222343",
"0.81123775",
"0.81078863",
"0.8093762",
"0.80912435",
"0.80... | 0.81504834 | 12 |
We check if the bullets top rect is lower that screen_top rect if it is then we increment miss count with 1 if it reaches 3 we register it as a ship_hit and reset. | def q815(URms, eQSh, Vjhr, ig_r, SaI9, WFC2, y1e_):
VXOZ = Vjhr.get_rect()
for YBnT in WFC2:
if YBnT.rect.top < VXOZ.top:
URms.miss_count += 1
if URms.miss_count > URms.miss_limit:
GR2R(URms, eQSh, Vjhr, ig_r, SaI9, WFC2, y1e_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GR2R(URms, eQSh, Vjhr, ig_r, SaI9, WFC2, y1e_):\n if eQSh.ships_left > 0 and eQSh.miss_left > 0:\n eQSh.ships_left -= 1\n eQSh.miss_left -= 1\n eQSh.ships_left -= 1\n URms.miss_count = 0\n SaI9.empty()\n WFC2.empty()\n y1e_.prep_ships()\n a_1E(URms, ig... | [
"0.70528686",
"0.7029351",
"0.67615545",
"0.66446203",
"0.6637197",
"0.66072917",
"0.659865",
"0.6597456",
"0.6597329",
"0.6578241",
"0.6578089",
"0.6572873",
"0.6569987",
"0.6551418",
"0.65493155",
"0.65424126",
"0.64998627",
"0.6465426",
"0.64480776",
"0.6427405",
"0.642060... | 0.7603417 | 0 |
Shoots maximum 3 bullets at one time | def FT1c(WFC2, URms, ig_r, Vjhr):
if len(WFC2) < 3:
jbub = GBVa(URms, ig_r, Vjhr)
WFC2.add(jbub) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hy9P(tJm0, Vjhr, Uuad, WFC2):\n if len(WFC2) < tJm0.bullets_allowed:\n jbub = GBVa(tJm0, Vjhr, Uuad)\n WFC2.add(jbub)",
"def Hy9P(tJm0, Vjhr, C7MP, WFC2):\n if len(WFC2) < tJm0.bullets_allowed:\n jbub = GBVa(tJm0, Vjhr, C7MP)\n WFC2.add(jbub)",
"def Hy9P(tJm0, Vjhr, C7MP, ... | [
"0.74712807",
"0.74383414",
"0.7425032",
"0.7395892",
"0.73924565",
"0.7366083",
"0.73534286",
"0.73508525",
"0.7335773",
"0.7326016",
"0.7297092",
"0.7296851",
"0.7292113",
"0.7278489",
"0.72625566",
"0.7231662",
"0.72291183",
"0.7228422",
"0.7210679",
"0.7205891",
"0.719031... | 0.796863 | 0 |
Square each element of the input array, and return the sum(s) of that. | def UnoB(jzdc, jDK_=0):
jzdc, jDK_ = tYsh(jzdc, jDK_)
return oyIN.sum(jzdc * jzdc, jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lzxs(fUYa):\n wjRY = 0\n for YRbF in fUYa:\n wjRY += YRbF * YRbF\n return wjRY",
"def Lzxs(fUYa):\n wjRY = 0\n for WKvO in fUYa:\n wjRY += WKvO * WKvO\n return wjRY",
"def dGFT(nPrm):\n return sum((YRbF ** 2 for YRbF in nPrm))",
"def gii8(jzdc, jDK_=0):\n jzdc, jDK_ ... | [
"0.77900285",
"0.762542",
"0.76100963",
"0.7605633",
"0.7605633",
"0.752207",
"0.7408269",
"0.723834",
"0.696398",
"0.6963532",
"0.6941767",
"0.69388634",
"0.68931836",
"0.6891178",
"0.68291384",
"0.6803277",
"0.67718464",
"0.674809",
"0.6747865",
"0.66888726",
"0.66869664",
... | 0.7335095 | 7 |
A curried collate_fn that allows us to pass in the vocab_field so that we can numericalize inputs during the collation procedure. | def SaW5(nPrm, vVeU):
def QxcP(nPrm):
"""Creates mini-batch tensors from the list of dictionaries.
We should build custom collate_fn rather than using default collate_fn,
because merging caption (including padding) is not supported in default.
Args:
data: list ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a29n(YKHO):\n\n def QxcP(gGnb):\n z_aV = [KCHu[0] for KCHu in gGnb]\n if YKHO.text_tokenize is not None:\n z_aV = YKHO.text_tokenize(z_aV)\n Crrw = ht2j.stack([KCHu[1] for KCHu in gGnb])\n return (z_aV, Crrw)\n return QxcP",
"def QxcP(nPrm, begE):\n from torch.... | [
"0.6089008",
"0.57749677",
"0.57416",
"0.5690311",
"0.55437666",
"0.5482675",
"0.52328527",
"0.5184831",
"0.50884545",
"0.50866944",
"0.49732366",
"0.4963334",
"0.49121717",
"0.48974487",
"0.4885966",
"0.4881709",
"0.4881709",
"0.4874072",
"0.47999257",
"0.4764735",
"0.476120... | 0.620744 | 0 |
save_to_json_file function to sabe json in file arguments my_obj the json rep filename the file | def PF_N(UxL2, Ux0P):
with open(Ux0P, mode='w', encoding='UTF8') as oEGn:
oEGn.write(qQXR.dumps(UxL2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PF_N(UxL2, Ux0P):\n with open(Ux0P, 'w') as PFCt:\n PFCt.write(qQXR.dumps(UxL2))",
"def PF_N(UxL2, Ux0P):\n with open(Ux0P, 'w') as eHNT:\n return eHNT.write(qQXR.dumps(UxL2))",
"def PF_N(UxL2, Ux0P):\n with open(Ux0P, 'w') as eHNT:\n return eHNT.write(qQXR.dumps(UxL2))",
"d... | [
"0.9013314",
"0.9009034",
"0.9009034",
"0.8998824",
"0.89680254",
"0.8948602",
"0.89404064",
"0.89404064",
"0.89370537",
"0.89220405",
"0.89164084",
"0.89163667",
"0.8897013",
"0.88851094",
"0.88843834",
"0.8880992",
"0.88799536",
"0.8875536",
"0.8872584",
"0.8872381",
"0.886... | 0.8672983 | 27 |
Returns normalized version of the text Normalization means removal of nonalphanumeric characters and stemming of word. Also remove stopwords | def Xosv(Emd4, l5Ny):
Us_E = Emd4._stemmer.stem(l5Ny)
Us_E = [GIN8 for GIN8 in Us_E.split(' ') if GIN8 not in Emd4._stop]
yOlS = ' '.join(Us_E)
return yOlS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xosv(l5Ny):\n s2mk = Dhdw.tokenize.word_tokenize(l5Ny, language='spanish', preserve_line=False)\n s2mk = [yzQ0.lower() for yzQ0 in s2mk]\n tyNF = str.maketrans('', '', vIwR.punctuation)\n EESs = [yzQ0.translate(tyNF) for yzQ0 in s2mk]\n V22M = [GIN8 for GIN8 in EESs if GIN8.isalpha()]\n\n def... | [
"0.8114119",
"0.7979183",
"0.78796995",
"0.778526",
"0.7740763",
"0.7714826",
"0.7705431",
"0.7657183",
"0.76545525",
"0.7639804",
"0.7626772",
"0.760917",
"0.76039654",
"0.7519368",
"0.74590296",
"0.74590296",
"0.745902",
"0.7433066",
"0.7421844",
"0.740373",
"0.7396059",
... | 0.819437 | 0 |
Computes the VAE loss function. KL(N(\mu, \sigma), N(0, 1)) = \log \frac{1}{\sigma} + \frac{\sigma^2 + \mu^2}{2} \frac{1}{2} | def KsZl(YKHO, input, MbHC, bGrB, yGTL, IR53, **B2fa):
YKHO.recons_loss = vuvg.mse_loss(MbHC, input)
YKHO.kld_loss = ht2j.mean(-0.5 * ht2j.sum(1 + IR53 - yGTL ** 2 - IR53.exp(), dim=1), dim=0)
YKHO.loss = YKHO.recons_loss + YKHO.kld_weight * YKHO.kld_loss
return YKHO.loss | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dMiA(yGTL, XO02):\n return -0.5 * ht2j.sum(1 + XO02 - yGTL.pow(2) - XO02.exp())",
"def fDxD(Y8eF, aMgO):\n V9Qw = nMvt.sum(nMvt.binary_crossentropy(aMgO, Y8eF), axis=1)\n bISY = 0.5 * nMvt.sum(nMvt.exp(SgQ6) + nMvt.square(yGTL) - 1.0 - SgQ6, axis=1)\n return V9Qw + bISY",
"def fDxD(Y8eF, aMgO):... | [
"0.7989064",
"0.7512392",
"0.74825203",
"0.7472895",
"0.7463625",
"0.73996913",
"0.7397476",
"0.7262023",
"0.7191708",
"0.71893436",
"0.7136797",
"0.7127273",
"0.7127273",
"0.71074015",
"0.7053595",
"0.6937121",
"0.6934006",
"0.692876",
"0.6902755",
"0.6880862",
"0.6853825",
... | 0.0 | -1 |
Given an input image x, returns the reconstructed image | def C6M2(YKHO, WKvO, **B2fa):
return YKHO.forward(WKvO)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j9DC(WKvO):\n return WKvO / 255 * 2 - 1",
"def XyOr(YKHO, WKvO):\n WKvO = WKvO.astype(oyIN.float32)\n WKvO = oyIN.expand_dims(WKvO, 0)\n WKvO = oyIN.expand_dims(WKvO, 0)\n return F1PJ.Variable(WKvO)",
"def biH0(WKvO):\n WKvO = WKvO.resize((H2v2, TVTK))\n WKvO = oyIN.asarray(WKvO, dtype... | [
"0.70948803",
"0.6846143",
"0.68418384",
"0.6794269",
"0.6762604",
"0.67419934",
"0.6611813",
"0.65711397",
"0.6540865",
"0.64895564",
"0.6409451",
"0.63910824",
"0.6387204",
"0.63676304",
"0.63676304",
"0.6365141",
"0.63244516",
"0.630486",
"0.6298853",
"0.6294388",
"0.62923... | 0.0 | -1 |
Recover data by normalized results, mean value and std value | def PyLF(Gfht, chbr, YgCz, HQ3O=1):
if HQ3O == 0:
chbr = chbr.T
YgCz = YgCz.T
return Gfht * YgCz.values + chbr.values | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7gV(WbAn, eQSh):\n return (WbAn - JBMS) / (M1Jx + 1e-07)",
"def WuUW(nPrm, JBMS, M1Jx):\n return (nPrm - JBMS) / M1Jx",
"def NkkI(nPrm, M1Jx):\n r8hN = oyIN.mean(nPrm)\n nPrm = (nPrm - r8hN) / M1Jx\n return nPrm",
"def jnV4(YKHO, nPrm):\n r8hN = nPrm.mean()\n KCHu = nPrm.std()\n ... | [
"0.7643071",
"0.7549405",
"0.7319753",
"0.72988063",
"0.7293821",
"0.72748995",
"0.72674567",
"0.71742636",
"0.7131279",
"0.7047745",
"0.70278215",
"0.70214385",
"0.70191485",
"0.70181954",
"0.69701946",
"0.6958799",
"0.69522333",
"0.6950194",
"0.69296706",
"0.6922059",
"0.69... | 0.0 | -1 |
Pass a batch through a PyTorch model, and calculate the loss. | def wo8r(C3ST, OPAs, Wc9F, yGCl=None):
EcVT = Wc9F['spectrogram']
LVAh = Wc9F['target']
if yGCl is not None:
EcVT = EcVT.to(device=yGCl)
LVAh = LVAh.to(device=yGCl)
o4Jx = C3ST(EcVT)
N77f = OPAs(o4Jx, LVAh)
return (o4Jx, N77f) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yorg(YKHO, Wc9F: Tuple[Tensor]) -> llWB:\n Wc9F = [ZfUD.to(YKHO.device) for ZfUD in Wc9F]\n [P57q, PkUH, l5Ny, whnh] = Wc9F\n aTLP, FqYY, ykQM = YKHO.model(P57q, PkUH, l5Ny, whnh)\n l5Ny, FqYY, ykQM = (l5Ny.int(), FqYY.int(), ykQM.int())\n N77f = YKHO.criterion(aTLP, FqYY, l5Ny, ykQM)\n retur... | [
"0.7694029",
"0.75958365",
"0.7401727",
"0.7295417",
"0.7212273",
"0.7210275",
"0.7196407",
"0.7125174",
"0.71175075",
"0.71002",
"0.7080873",
"0.7077703",
"0.7052286",
"0.7040945",
"0.7027829",
"0.69967496",
"0.69698226",
"0.69670904",
"0.69667864",
"0.69645345",
"0.6963847"... | 0.0 | -1 |
Return average rewards of the known low level states represented by a high level state | def rYOT(YKHO, QTBn):
return sum((YRbF for YRbF in YKHO.reward[QTBn][1])) / YKHO.reward[QTBn][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B1KD(YKHO):\n if YKHO._sum_states_no_jump is None:\n return None\n XP5J = YKHO.no_jump_prob\n return [XP5J * eOEr + (1 - XP5J) * xaRO / (YKHO.num_trajectories - 1) for eOEr, xaRO in zip(YKHO._sum_states_no_jump, YKHO._sum_states_jump)]",
"def B1KD(YKHO):\n if YKHO._sum_states is None:\n ... | [
"0.68729514",
"0.67277735",
"0.65063906",
"0.6400314",
"0.62390757",
"0.61472297",
"0.61420137",
"0.6129377",
"0.609329",
"0.609329",
"0.60746735",
"0.60409546",
"0.60329676",
"0.6027529",
"0.60153013",
"0.59976643",
"0.59556925",
"0.59437215",
"0.59031993",
"0.58914953",
"0.... | 0.7363512 | 0 |
Tensor descriptions of all output tensors of Model | def o4Jx(YKHO) -> [Xe69]:
o4Jx = []
for or8S in range(YKHO.output_num()):
o4Jx.append(YKHO.output(or8S))
return o4Jx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fnn2(YKHO):\n return [vhpA.name for vhpA in YKHO._opr.out_tensors]",
"def o4Jx(YKHO) -> x1iM[YQp4.Tensor]:\n return YKHO._outputs",
"def o4Jx(YKHO) -> AzJI[llWB, ...]:\n return tuple(map(lambda V3xq: V3xq.fwd_tensor, YKHO._expected_outputs))",
"def jgTe(YKHO):\n return YKHO._get_output_tensor... | [
"0.75854397",
"0.7430486",
"0.7152116",
"0.7130657",
"0.71129215",
"0.70128036",
"0.6904329",
"0.677592",
"0.6718466",
"0.668234",
"0.6651997",
"0.66237557",
"0.66170216",
"0.65981776",
"0.6585882",
"0.6575015",
"0.6575015",
"0.65717256",
"0.656199",
"0.6519972",
"0.6505624",... | 0.7509849 | 1 |
Create an "Authorization" header value from an authdict (created by generate_response()). | def dotw(zBQA):
IUsu = []
for G1Hx in zBQA.keys():
IUsu += ['%s=%s' % (G1Hx, zBQA[G1Hx])]
return 'Digest ' + ', '.join(IUsu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rtIP(Jpbe):\n KUn3 = dict()\n if next(iter(Jpbe.keys())) == 'token':\n eOtH = next(iter(Jpbe.values()))\n KUn3['PRIVATE-TOKEN'] = eOtH\n return KUn3",
"def QIuQ(YKHO) -> cuzp[str, str]:\n MkeE = WR89.b64encode(f'{YKHO.client_id}:{YKHO.client_secret}'.encode('ascii')).decode('ascii')... | [
"0.7411888",
"0.7035337",
"0.70243275",
"0.69714177",
"0.68960387",
"0.68960387",
"0.68815076",
"0.6863452",
"0.6803825",
"0.67817456",
"0.67551726",
"0.67545784",
"0.6752718",
"0.67226714",
"0.671114",
"0.66872084",
"0.6684427",
"0.6643401",
"0.6639172",
"0.6639172",
"0.6635... | 0.6236539 | 51 |
Convert this object in a readeable string (for print) | def zAg0(YKHO):
skxy = ''
skxy += super(fGaM, YKHO).__str__()
if YKHO.indmag is not None:
jbXL = YKHO.indmag.__str__().replace(LUo0, LUo0 + '\t').rstrip('\t')
skxy += 'indmag = ' + jbXL
else:
skxy += 'indmag = None' + LUo0 + LUo0
if YKHO.fluxlink is not None:
jbXL = Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return ... | [
"0.81463313",
"0.8111257",
"0.8111257",
"0.8050149",
"0.80424947",
"0.8025347",
"0.8008911",
"0.8008911",
"0.8006721",
"0.79878736",
"0.79819286",
"0.79819286",
"0.79819286",
"0.79819286",
"0.7977299",
"0.7974111",
"0.7974111",
"0.7974111",
"0.7974111",
"0.7974111",
"0.797411... | 0.0 | -1 |
Split annotation file into training and validation dataset. | def WDyg(rrl5, Htx6, GlR1, HI29=0.2):
y_k2 = 'train_annotations.txt'
RQ6r = 'val_annotation.txt'
if Hy7s.path.exists(rrl5 + y_k2) and Hy7s.path.exists(Htx6 + RQ6r):
return (y_k2, RQ6r)
if not Hy7s.path.exists(GlR1):
qmLP.warn('Annotations file %s is not exists.' % GlR1, stacklevel=3)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wENT(Jpnd, CFDw):\n XxFT, t4zr = (list(), list())\n with open(Jpnd, 'r') as z36O:\n N5Pj = m6_J.reader(z36O)\n for rdlD in N5Pj:\n XxFT.append(rdlD)\n with open(CFDw, 'r') as z36O:\n N5Pj = m6_J.reader(z36O)\n for rdlD in N5Pj:\n t4zr.append(rdlD)\n ... | [
"0.71022314",
"0.67480755",
"0.67113835",
"0.67087346",
"0.6687395",
"0.66710883",
"0.6646752",
"0.65486175",
"0.6517198",
"0.6503941",
"0.6494243",
"0.6490159",
"0.64508414",
"0.64407295",
"0.643842",
"0.64315414",
"0.64259374",
"0.6399133",
"0.63886666",
"0.638575",
"0.6371... | 0.72825676 | 0 |
Sanitize a Source directory path string. | def Uk9s(j8eK: str) -> str:
for YRbF in ['@', '/', ':']:
j8eK = j8eK.replace(YRbF, '_')
return j8eK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def beR0(KCHu):\n if HwRy.platform != 'win32':\n return KCHu\n DY0W, bGrB = Hy7s.path.splitdrive(KCHu)\n if HwRy.version_info < (2, 7) and (not DY0W):\n DY0W, bGrB = Hy7s.path.splitunc(KCHu)\n cZ8_ = Hy7s.path.normpath(alfA(KCHu, DY0W)).split(Hy7s.path.sep)\n if DY0W:\n cZ8_.pop... | [
"0.71806335",
"0.6975121",
"0.6884741",
"0.6750342",
"0.67360276",
"0.67198056",
"0.66508824",
"0.65498275",
"0.6530142",
"0.65084827",
"0.6492716",
"0.64264596",
"0.6417002",
"0.63799953",
"0.63700086",
"0.6369804",
"0.6368998",
"0.636027",
"0.6351345",
"0.6334719",
"0.63316... | 0.7259373 | 0 |
Goes through .ase or .aseprite file and draws all of your frames | def KDxR(YKHO):
aYVS = []
for GyPq in range(YKHO.aseprite_file.header.num_frames):
f4IJ = YKHO.draw_single_frame(GyPq)
aYVS.append(f4IJ)
return aYVS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n L3F1 = YKHO.animations[YKHO.current_animation].get_current_frame()\n YKHO.screen.blit(YKHO.images[L3F1], YKHO.rect)",
"def JmFt(YKHO, Vjhr):\n for YRbF in YKHO.images:\n Vjhr.blit(YRbF, [YKHO.rect.x, YKHO.rect.y])",
"def SxEy(YKHO, Po9C):\n ANn3 = [None] * len(YKHO.aseprite... | [
"0.6826646",
"0.6703152",
"0.6673897",
"0.6638291",
"0.6630331",
"0.6573949",
"0.64949447",
"0.647821",
"0.6446735",
"0.6440764",
"0.64125234",
"0.64117575",
"0.64053446",
"0.63970256",
"0.6382606",
"0.6340654",
"0.63382685",
"0.6331815",
"0.6329972",
"0.6314594",
"0.63066965... | 0.6117533 | 49 |
after each request, this method calls .close() (i.e. .remove()) on the current SQLAlchemy Session | def GTYX(AJ5d):
S8SU.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rYe1(geh0):\n ouvA.remove()\n ouvA.bind.pool.dispose()\n return geh0",
"def fFx9(YKHO):\n YKHO.session.close()",
"def fFx9(YKHO):\n YKHO.session.close()",
"def fFx9(YKHO):\n YKHO._session.close()",
"def PFDu(QePW, Pw3N):\n try:\n return Pw3N(QePW)\n finally:\n ouvA... | [
"0.78326637",
"0.7783075",
"0.7783075",
"0.770346",
"0.7664241",
"0.7620115",
"0.7591967",
"0.7591967",
"0.7591967",
"0.7591967",
"0.7591967",
"0.7591967",
"0.7591967",
"0.7457055",
"0.74349695",
"0.74327016",
"0.7426396",
"0.74066967",
"0.7325843",
"0.7267227",
"0.72544634",... | 0.0 | -1 |
Convert an AWS crontab to standard crontab. It just removes the year cron part and it translates '' to '?' | def MWWO(UQ6D: str) -> gd2N:
if not isinstance(UQ6D, jUrF):
raise howM('Invalid Ansible cron string')
Gm6a = UQ6D.strip().split()
if len(Gm6a) != 6:
raise howM(f'len: {len(Gm6a)}. Invalid cron string format, this is not an AWS cron (len 6)')
nAey = Gm6a.pop()
FrGT = []
for Q7me i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFgy(WNMJ: str, OsB1: Optional[AwsSpecificDetails]=None) -> str:\n if not isinstance(WNMJ, jUrF):\n raise howM('Invalid Ansible cron string')\n Gm6a = WNMJ.strip().split()\n if len(Gm6a) != 5:\n raise howM(f'len: {len(Gm6a)}. Invalid cron string format')\n if OsB1:\n for Q7me i... | [
"0.68840104",
"0.6161607",
"0.58592707",
"0.5696331",
"0.52674395",
"0.51338017",
"0.50544405",
"0.5029356",
"0.49477732",
"0.49469697",
"0.4944739",
"0.49354246",
"0.49026477",
"0.48663414",
"0.4863927",
"0.4860885",
"0.4841701",
"0.48290297",
"0.4809031",
"0.48082358",
"0.4... | 0.6844276 | 1 |
Wraps hidden states in new Tensors, to detach them from their history. | def MXs9(MKlR):
if isinstance(MKlR, ht2j.Tensor):
return MKlR.detach()
else:
return tuple((IOWm(Ty9i) for Ty9i in MKlR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YmeV(YKHO):\n YKHO.hidden = (ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size), ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))",
"def eIRW(Zode):\n if isinstance(Zode, ht2j.Tensor):\n return Zode.detach()\n else:\n return tuple((eIRW(Ty9i) for Ty9i in Zode))",
"def MAw8(YKHO):\n ... | [
"0.6880629",
"0.64517695",
"0.6377572",
"0.63079625",
"0.62515086",
"0.6233768",
"0.62034684",
"0.61984754",
"0.61882585",
"0.61882585",
"0.6126888",
"0.61185306",
"0.60700804",
"0.6000492",
"0.5997249",
"0.5995625",
"0.5969928",
"0.59628063",
"0.59474343",
"0.5938205",
"0.59... | 0.0 | -1 |
Wraps hidden states in new Tensors, to detach them from their history. | def IOWm(MKlR):
if isinstance(MKlR, ht2j.Tensor):
return MKlR.detach()
else:
return tuple((IOWm(Ty9i) for Ty9i in MKlR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YmeV(YKHO):\n YKHO.hidden = (ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size), ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))",
"def eIRW(Zode):\n if isinstance(Zode, ht2j.Tensor):\n return Zode.detach()\n else:\n return tuple((eIRW(Ty9i) for Ty9i in Zode))",
"def MAw8(YKHO):\n ... | [
"0.68817127",
"0.64524364",
"0.6377822",
"0.6308269",
"0.6251872",
"0.62346905",
"0.620526",
"0.6198483",
"0.61893356",
"0.61893356",
"0.6127799",
"0.6119159",
"0.6070529",
"0.60014546",
"0.5996576",
"0.59965634",
"0.59704787",
"0.5963885",
"0.5948447",
"0.5937371",
"0.593649... | 0.5652399 | 44 |
Gets the heading of this VehicleLocation. | def cEyu(YKHO) -> float:
return YKHO._heading | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1Ac(YKHO):\n return YKHO._heading",
"def M1Ac(YKHO):\n return YKHO._heading",
"def M1Ac(YKHO):\n return YKHO.__heading",
"def M1Ac(YKHO):\n return YKHO.__heading",
"def fiGL(YKHO):\n return YKHO.localheading",
"def akYC(YKHO):\n return YKHO._get_value('HEADING')",
"def cEyu(YKHO)... | [
"0.7793248",
"0.7793248",
"0.774817",
"0.76408595",
"0.76311654",
"0.75112736",
"0.7464997",
"0.7433342",
"0.709824",
"0.70934683",
"0.7034947",
"0.7030868",
"0.69798374",
"0.694942",
"0.69483423",
"0.6729872",
"0.6692693",
"0.66770697",
"0.6658858",
"0.662792",
"0.6434758",
... | 0.74339086 | 7 |
Gets the id of this VehicleLocation. | def id(YKHO) -> int:
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qcmx(YKHO) -> str:\n return qe4Y.get(YKHO, 'location_id')",
"def nkjF(YKHO):\n return YKHO.__locationID",
"def sSDU(YKHO):\n return YKHO.vehicle_id",
"def qcmx(YKHO) -> str:\n return YKHO._flo_location_id",
"def DDJ9(YKHO):\n return YKHO._vehicle_id",
"def ShR8(YKHO):\n return str(Y... | [
"0.7686018",
"0.7423413",
"0.7292738",
"0.721301",
"0.70278203",
"0.7012651",
"0.68379956",
"0.680772",
"0.680772",
"0.680772",
"0.67968893",
"0.67964274",
"0.67964274",
"0.67964274",
"0.67964274",
"0.67964274",
"0.6766407",
"0.6766407",
"0.6766407",
"0.6766407",
"0.6762861",... | 0.0 | -1 |
Gets the latitude of this VehicleLocation. | def _UuI(YKHO) -> float:
return YKHO._latitude | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UuI(YKHO):\n return YKHO._vehicle.location.get('latitude')",
"def _UuI(YKHO):\n return YKHO._gps.latitude",
"def _UuI(YKHO):\n hLRM = YKHO._get_origin()\n return hLRM.latitude",
"def _UuI(YKHO):\n return YKHO._location[0]",
"def TujQ(YKHO):\n return YKHO.latitude",
"def _UuI(YKHO):... | [
"0.88985103",
"0.83760816",
"0.8312786",
"0.8183561",
"0.8174484",
"0.81730425",
"0.8138286",
"0.8138286",
"0.8138286",
"0.8138286",
"0.81152576",
"0.8112416",
"0.806462",
"0.8044991",
"0.8044991",
"0.8022293",
"0.8009567",
"0.7983841",
"0.79715514",
"0.79486656",
"0.7894779"... | 0.8264605 | 3 |
Sets the latitude of this VehicleLocation. | def _UuI(YKHO, _UuI: float):
YKHO._latitude = _UuI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UuI(YKHO, _UuI):\n YKHO._latitude = _UuI",
"def _UuI(YKHO, _UuI):\n YKHO._latitude = _UuI",
"def _UuI(YKHO, _UuI):\n YKHO._latitude = _UuI",
"def _UuI(YKHO, _UuI):\n YKHO._latitude = _UuI",
"def _UuI(YKHO, _UuI):\n YKHO._latitude = _UuI",
"def _UuI(YKHO, _UuI):\n if _UuI is None:\n... | [
"0.7983491",
"0.7983491",
"0.7983491",
"0.7983491",
"0.7983491",
"0.77566624",
"0.7617269",
"0.7569468",
"0.7451655",
"0.73848236",
"0.7361831",
"0.7351008",
"0.72847885",
"0.7103708",
"0.69376624",
"0.6790008",
"0.67765945",
"0.6642547",
"0.6544027",
"0.65229636",
"0.6521744... | 0.80201316 | 0 |
Gets the location of this VehicleLocation. | def Rci7(YKHO) -> str:
return YKHO._location | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbd3(YKHO):\n Rci7 = YKHO.vehicle.get_location()\n return Rci7",
"def yuHr(YKHO):\n return YKHO._location",
"def hbd3(YKHO):\n return YKHO._location",
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO):\n return YKHO.__location",
"def hbd3(YKHO):\n return YKHO.location",
... | [
"0.87544745",
"0.8112812",
"0.80192053",
"0.7984358",
"0.79386604",
"0.7920576",
"0.7920576",
"0.7920576",
"0.791309",
"0.777436",
"0.77640086",
"0.77640086",
"0.7722488",
"0.7650806",
"0.7650806",
"0.7615801",
"0.7588575",
"0.7588575",
"0.7588575",
"0.7588575",
"0.7588575",
... | 0.6977373 | 84 |
Sets the location of this VehicleLocation. | def Rci7(YKHO, Rci7: str):
YKHO._location = Rci7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MtGr(YKHO, Rci7):\n YKHO._location = Rci7",
"def YK7p(YKHO, Rci7):\n YKHO._location = Rci7",
"def QDqo(YKHO, Rci7):\n YKHO.loc = Rci7",
"def f1l8(YKHO, Rci7):\n if isinstance(Rci7, _JMH):\n YKHO._location = Rci7\n else:\n raise Exception",
"def Rci7(YKHO, Rci7):\n YKHO._... | [
"0.7886874",
"0.7634787",
"0.7566141",
"0.733212",
"0.7257088",
"0.7257088",
"0.7257088",
"0.7257088",
"0.7257088",
"0.7257088",
"0.7257088",
"0.7257088",
"0.7257088",
"0.7257088",
"0.7257088",
"0.71769524",
"0.71769524",
"0.71769524",
"0.71769524",
"0.71769524",
"0.7156435",... | 0.7056513 | 24 |
Gets the longitude of this VehicleLocation. | def fopC(YKHO) -> float:
return YKHO._longitude | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fopC(YKHO):\n return YKHO._vehicle.location.get('longitude')",
"def fopC(YKHO):\n return YKHO._location[1]",
"def fopC(YKHO):\n return YKHO._gps.longitude",
"def fopC(YKHO):\n hLRM = YKHO._get_origin()\n return hLRM.longitude",
"def fopC(YKHO) -> str:\n return qe4Y.get(YKHO, 'longitud... | [
"0.90701294",
"0.84863824",
"0.8462225",
"0.8452298",
"0.8395538",
"0.83805037",
"0.835645",
"0.83238524",
"0.8311424",
"0.8311424",
"0.8311424",
"0.8248883",
"0.82228166",
"0.8208072",
"0.8189031",
"0.81751263",
"0.81724036",
"0.81236225",
"0.8107585",
"0.8106982",
"0.805736... | 0.8498072 | 2 |
Sets the longitude of this VehicleLocation. | def fopC(YKHO, fopC: float):
YKHO._longitude = fopC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fopC(YKHO, fopC):\n YKHO._longitude = fopC",
"def fopC(YKHO, fopC):\n YKHO._longitude = fopC",
"def fopC(YKHO, fopC):\n YKHO._longitude = fopC",
"def fopC(YKHO, fopC):\n YKHO._longitude = fopC",
"def fopC(YKHO, fopC):\n if fopC is None:\n raise ValueError('Invalid value for `longi... | [
"0.8100839",
"0.8100839",
"0.8100839",
"0.8100839",
"0.79750377",
"0.77992016",
"0.77823937",
"0.77375996",
"0.73747486",
"0.72772986",
"0.72324955",
"0.71785957",
"0.7115404",
"0.70747894",
"0.70336694",
"0.6964897",
"0.6917522",
"0.68889576",
"0.68809575",
"0.68809575",
"0.... | 0.8224862 | 1 |
Gets the name of this VehicleLocation. | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return f'{YKHO._vehicle.name} Location'",
"def mWFP(YKHO):\n Rci7 = YKHO._data.get_location(YKHO._location_id)\n return Rci7.name",
"def WuUm(YKHO):\n return YKHO._location_name",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO._vehicle_name, YKHO._entity_name)",
"def mWFP(YK... | [
"0.8493811",
"0.812508",
"0.7707167",
"0.7562315",
"0.7411227",
"0.7356151",
"0.7233832",
"0.7156382",
"0.7156382",
"0.7156382",
"0.7156382",
"0.7144591",
"0.7144591",
"0.7144591",
"0.7144591",
"0.7144591",
"0.7144591",
"0.71426886",
"0.71426886",
"0.71426886",
"0.71426886",
... | 0.0 | -1 |
Gets the on_trip of this VehicleLocation. | def Jsns(YKHO) -> bool:
return YKHO._on_trip | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bbNz(YKHO):\n return YKHO.__arrival_airport",
"def Jsns(YKHO, Jsns: bool):\n YKHO._on_trip = Jsns",
"def PYA9(YKHO):\n return YKHO.__arrival",
"def PYA9(YKHO):\n return YKHO.__arrival",
"def hbd3(YKHO):\n Rci7 = YKHO.vehicle.get_location()\n return Rci7",
"def _UuI(YKHO):\n retur... | [
"0.57439435",
"0.5702855",
"0.5560007",
"0.5560007",
"0.55519557",
"0.5291951",
"0.52818537",
"0.5271735",
"0.52209777",
"0.5183428",
"0.5149607",
"0.5136593",
"0.5103341",
"0.50920653",
"0.5056255",
"0.50554794",
"0.50533724",
"0.50481784",
"0.50302386",
"0.50276834",
"0.502... | 0.59609103 | 0 |
Sets the on_trip of this VehicleLocation. | def Jsns(YKHO, Jsns: bool):
YKHO._on_trip = Jsns | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ajPN(YKHO, P3_X):\n YKHO.roundtrip = P3_X",
"def Jsns(YKHO) -> bool:\n return YKHO._on_trip",
"def cbRW(YKHO, b1Vu: pd.DataFrame) -> None:\n YKHO.trip_df = b1Vu",
"def R_8W(YKHO, R_8W):\n YKHO._travel_route = R_8W",
"def IFNl(YKHO, jY15: bool):\n if YKHO.ptt is not None:\n if jY15... | [
"0.59388745",
"0.5612906",
"0.55081147",
"0.5455925",
"0.54478115",
"0.54393107",
"0.5353756",
"0.5116825",
"0.5070791",
"0.5014825",
"0.49881777",
"0.49725375",
"0.49605867",
"0.4956014",
"0.49510396",
"0.49077454",
"0.49050567",
"0.48387977",
"0.48387977",
"0.4828731",
"0.4... | 0.78948915 | 0 |
Gets the speed of this VehicleLocation. | def iBLD(YKHO) -> float:
return YKHO._speed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ERGf(YKHO):\n return YKHO._speed",
"def ERGf(YKHO):\n return YKHO.__speed",
"def ERGf(YKHO):\n return YKHO.__speed",
"def ERGf(YKHO):\n y917 = YKHO.vehicle.get_velocity()\n return 3.6 * epAf.sqrt(y917.x ** 2 + y917.y ** 2 + y917.z ** 2)",
"def DDP8(YKHO):\n return YKHO._get_value('SPE... | [
"0.7821567",
"0.7760452",
"0.7760452",
"0.76819295",
"0.7679739",
"0.7665279",
"0.76400983",
"0.7496592",
"0.7493901",
"0.74800557",
"0.74800557",
"0.74800557",
"0.7295063",
"0.7290381",
"0.7283329",
"0.72559035",
"0.7174598",
"0.7097947",
"0.7069831",
"0.7034881",
"0.7031838... | 0.74942404 | 9 |
Gets the vin of this VehicleLocation. | def STXJ(YKHO) -> str:
return YKHO._vin | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def STXJ(YKHO) -> str:\n return YKHO._vehicle_link['vin']",
"def STXJ(YKHO) -> str:\n return YKHO.data['vin']",
"def Czgu(YKHO):\n nPrm = YKHO.bus.read_i2c_block_data(YKHO.address, 30, 2)\n STXJ = int.from_bytes(nPrm, byteorder='big', signed=False) >> 4\n return STXJ * 0.025",
"def STXJ(YKHO, ... | [
"0.7879402",
"0.75720125",
"0.68369615",
"0.6725918",
"0.60584646",
"0.60225976",
"0.5809011",
"0.5715691",
"0.5715691",
"0.5700206",
"0.5665781",
"0.56167775",
"0.56167775",
"0.55974317",
"0.55722344",
"0.55402356",
"0.54717785",
"0.54594725",
"0.54462487",
"0.5441346",
"0.5... | 0.7726239 | 1 |
Sets the vin of this VehicleLocation. | def STXJ(YKHO, STXJ: str):
YKHO._vin = STXJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def STXJ(YKHO, STXJ):\n YKHO._vin = STXJ",
"def STXJ(YKHO, STXJ):\n if YKHO.local_vars_configuration.client_side_validation and STXJ is not None and (len(STXJ) > 17):\n raise ValueError('Invalid value for `vin`, length must be less than or equal to `17`')\n if YKHO.local_vars_configuration.client... | [
"0.7896862",
"0.78445023",
"0.66502994",
"0.63248855",
"0.6031218",
"0.5893527",
"0.54264855",
"0.52295196",
"0.5179979",
"0.5175422",
"0.51603305",
"0.5152568",
"0.5151914",
"0.5151914",
"0.5129784",
"0.49738",
"0.49482894",
"0.49367738",
"0.49326095",
"0.49259007",
"0.49213... | 0.7824004 | 2 |
Emit a dictionary of window functions by which to aggregate events. By default, `_aggregate` performs a rank by clock values to pick the most recent row per logical time. | def RGND(YKHO, **B2fa):
return dict(rank=vSEq(YKHO.event_type)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qemi(YKHO, O56v, RZML):\n O56v = tuple(set(O56v))\n l2gf = dict()\n while True:\n yield FusX.sleep(1.0)\n tvqc = (yield vH_e.next())\n vHj7 = ITS7.time()\n sPBL = set()\n H5ew = tuple((tuple(sorted(tvqc.values(WKvO))) for WKvO in O56v))\n sPBL.add(H5ew)\n ... | [
"0.59666646",
"0.5918306",
"0.589742",
"0.5827921",
"0.5709144",
"0.5664382",
"0.56118876",
"0.55872464",
"0.5528727",
"0.55052423",
"0.55047184",
"0.5453335",
"0.5446997",
"0.54417586",
"0.5408558",
"0.54068553",
"0.5402625",
"0.53925365",
"0.5385724",
"0.5380694",
"0.534899... | 0.7120654 | 0 |
Query for events and aggregates that match the container subquery. We expect that the number of (filtered) container rows (e.g. via a LIMIT statement) to be much less than the number of total event rows. Note that if we were to query by events first and then by the container type, we might select many more rows. The qu... | def IqIr(YKHO, zGKt, Qemi, **B2fa):
return YKHO.container_store._order_by(YKHO._query(zGKt, Qemi), **B2fa).from_self() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YOHa(YKHO, xDcj):\n if YKHO._is_joined_polymorphic():\n hWCj = xDcj.subquery(reduce_columns=True, with_labels=True)\n else:\n hWCj = xDcj.subquery(YKHO.container_type.__tablename__)\n return wTeh(YKHO.container_type, hWCj)",
"def v_rB(YKHO, Qemi=None, qoqK=None, vgXP=None, **B2fa):\n ... | [
"0.65082717",
"0.62853223",
"0.6216438",
"0.60914546",
"0.58806425",
"0.5290121",
"0.51077545",
"0.50371397",
"0.5011679",
"0.50116616",
"0.4995132",
"0.49941635",
"0.4981617",
"0.49607596",
"0.488936",
"0.48480543",
"0.481466",
"0.48141804",
"0.48078567",
"0.48059854",
"0.47... | 0.5668105 | 5 |
Filter by aggregates. By default, selects only events with the top rank (e.g. most recent clock). | def b_xr(YKHO, xDcj, Qemi, **B2fa):
return xDcj.filter(Qemi['rank'] == 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RGND(YKHO, **B2fa):\n return dict(rank=vSEq(YKHO.event_type))",
"def Qemi(YKHO, mblK, waEm, qoqK, eCrh):\n ycBG = mblK[:]\n ycBG.extend(waEm)\n return sorted(ycBG, key=seET.itemgetter('total_score'), reverse=True)[:qoqK]",
"def e5nd(YKHO, WJ3Z=10):\n r9Hf = 0\n for YRbF, wEf2 in YKHO.sort... | [
"0.5887202",
"0.5690009",
"0.53031546",
"0.5278261",
"0.52439976",
"0.5241695",
"0.5227269",
"0.51615506",
"0.5148042",
"0.513958",
"0.51236475",
"0.5106319",
"0.5097922",
"0.509321",
"0.50685036",
"0.5042864",
"0.5034402",
"0.50295174",
"0.50223655",
"0.50211143",
"0.5009067... | 0.6480339 | 0 |
Updates the screen with all objects in the game | def JmFt(Vjhr, ITS7, p1kx, p9NO):
Vjhr.fill(aGkR)
for YEnM in p9NO:
try:
a9eO.draw.rect(Vjhr, YEnM.color, (YEnM.x, YEnM.y, Sg0P, Sg0P), 0)
except:
print(YEnM.x, YEnM.y, YEnM.color)
a9eO.draw.rect(Vjhr, o9Ax, (0, vkJL, zMH2, YNfy), 0)
o9av = a9eO.font.SysFont('mono... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n Vjhr.fill((0, 0, 0))\n for DHvp in YKHO.coords['Walls']:\n Vjhr.blit(DHvp.surface, DHvp.rect)\n for object in YKHO.coords['Objects']:\n Vjhr.blit(object.surface, object.rect)\n for Pp4r in YKHO.coords['M']:\n Vjhr.blit(YKHO.image_scaling(Rulv['M']), Pp4r)\n for... | [
"0.83749855",
"0.7631254",
"0.7547746",
"0.7498477",
"0.7488956",
"0.7398327",
"0.73444784",
"0.73388135",
"0.7334263",
"0.7326349",
"0.7271383",
"0.7226205",
"0.7219397",
"0.7208717",
"0.7205393",
"0.7190434",
"0.7186969",
"0.7155244",
"0.7154639",
"0.7140574",
"0.7140495",
... | 0.0 | -1 |
Convert detection results to a list of numpy arrays. | def _Q3a(c8oy, Crrw, jTqs):
if c8oy.shape[0] == 0:
return [oyIN.zeros((0, 5), dtype=oyIN.float32) for YRbF in range(jTqs - 1)]
else:
c8oy = c8oy.cpu().numpy()
Crrw = Crrw.cpu().numpy()
return [c8oy[Crrw == YRbF, :] for YRbF in range(jTqs - 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZgHU(dixj: List[SimulationResult]):\n fUYa = oyIN.array([Mkmy.xs for Mkmy in dixj])\n O1jJ = oyIN.array([Mkmy.du_dls for Mkmy in dixj])\n OGMd = oyIN.array([Mkmy.du_dps for Mkmy in dixj], dtype=object)\n return (fUYa, O1jJ, OGMd)",
"def NBjn(YKHO, SVFM: np.ndarray) -> oyIN.ndarray:\n ...",
"... | [
"0.743679",
"0.68794566",
"0.6777277",
"0.6705239",
"0.65036184",
"0.64373106",
"0.6415338",
"0.63988113",
"0.6384562",
"0.6343146",
"0.631173",
"0.62941647",
"0.6243867",
"0.62284386",
"0.62104005",
"0.6152353",
"0.6151457",
"0.61329174",
"0.6121389",
"0.60786796",
"0.607570... | 0.0 | -1 |
Parse the input `tf.Example` proto using the features_spec | def h5v2(yMmD):
QpfX, _73Q = xDSY.parse_single_sequence_example(serialized=yMmD, context_features=WSZz, sequence_features=fevS)
wFVV = dict()
for _x49, a1PO in QpfX.items():
a1PO = ZylS.expand_dims(a1PO, axis=0)
a1PO = ZylS.tile(a1PO, multiples=[uhJS])
if _3Ii.get_dict()[_x49]['type'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wvEv(YKHO, PU1l):\n wFVV = {'content_str': ZylS.io.FixedLenFeature([], ZylS.string), 'content': ZylS.io.VarLenFeature(ZylS.int64), 'char': ZylS.io.VarLenFeature(ZylS.int64), 'source': ZylS.io.FixedLenFeature([], ZylS.string)}\n bySB = ZylS.io.parse_single_example(serialized=PU1l, features=wFVV)\n hGN5... | [
"0.80543214",
"0.7917943",
"0.7773389",
"0.77484953",
"0.7745322",
"0.7732196",
"0.77263767",
"0.76860887",
"0.7625279",
"0.75685406",
"0.75621045",
"0.75559974",
"0.74608153",
"0.74567866",
"0.74388665",
"0.7421181",
"0.7410371",
"0.7372356",
"0.73712015",
"0.73360664",
"0.7... | 0.65845376 | 48 |
Test that we can filter XForms by has_task | def mGFE(YKHO):
CBIr = x1U3()
k_g4.make('ona.XForm', _quantity=5)
qQTo = k_g4.make('ona.XForm', ona_pk=596, ona_project_id=54, title='Coconut', id_string='coconut')
tTee = HnQo.as_view({'get': 'list'})
QePW = YKHO.factory.get('/forms', {'has_task': 1})
rliA(QePW, user=CBIr)
geh0 = tTee(reque... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l20c(rs0C, D5gV):\n T6ZH = _Kok(D5gV.user, task_name='Other task')\n kOQX = _Kok(D5gV.user, task_name='HIDDEN')\n geh0 = rs0C.get('/api/tasks/', data={'search': 'task'})\n assert uLCg(D5gV, geh0)\n assert uLCg(T6ZH, geh0)\n assert not uLCg(kOQX, geh0)",
"def u0YE(YKHO):\n qJ7f = []\n ... | [
"0.6477764",
"0.6355369",
"0.6244416",
"0.61352575",
"0.6128494",
"0.60648155",
"0.6041681",
"0.5979485",
"0.5927167",
"0.5847507",
"0.5809953",
"0.5788305",
"0.5788118",
"0.57847613",
"0.5783982",
"0.57510334",
"0.57252693",
"0.56802636",
"0.56526166",
"0.55704653",
"0.55477... | 0.77913624 | 0 |
Mark this job as unassigned by setting the assigned and overdue columns to L{None}. | def pzUJ(YKHO):
return YKHO.update(isAssigned=0, assigned=None, overdue=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aRDB(YKHO):\n YKHO.assigned_supervisor = None\n YKHO.assigned_module_id = None",
"def sGEN(YKHO):\n pass",
"def t1I_(YKHO):\n YRbF = YKHO._not_able_p\n r845 = YKHO._not_able_s\n if YRbF is None and r845 is None:\n YRbF, r845 = YKHO._left_placed()\n YKHO._busy_p.remove(YRbF)\... | [
"0.621006",
"0.59486914",
"0.5788435",
"0.57463527",
"0.57317203",
"0.5709998",
"0.56756663",
"0.5649396",
"0.55729836",
"0.5564952",
"0.55438155",
"0.55438155",
"0.55438155",
"0.5479965",
"0.54258615",
"0.53746796",
"0.53729683",
"0.5365941",
"0.53640807",
"0.53640807",
"0.5... | 0.6978233 | 0 |
Return the L{WorkItem} corresponding to this L{JobItem}. | def u7lr(YKHO):
SVdL = YKHO.workItemForType(YKHO.workType)
sRSq = (yield SVdL.loadForJob(YKHO.transaction, YKHO.jobID))
BPmf(sRSq[0] if len(sRSq) == 1 else None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bB15(YKHO, vYBr=None):\n try:\n sTrf = YKHO._work_q.get(True, vYBr)\n except g5js.Empty:\n return None\n return sTrf",
"def UIzg(YKHO):\n oCfW = YKHO._get_job()\n YKHO._update_display()\n return oCfW",
"def oCfW(YKHO):\n return YKHO._job",
"def oCfW(YKHO):\n return Y... | [
"0.6670895",
"0.62879515",
"0.6230819",
"0.6230819",
"0.61835396",
"0.6114079",
"0.60641205",
"0.6045555",
"0.6014389",
"0.5984713",
"0.59684396",
"0.5848656",
"0.58473635",
"0.5829663",
"0.5800761",
"0.5776",
"0.5766877",
"0.5759492",
"0.570937",
"0.56982726",
"0.56357753",
... | 0.7463082 | 0 |
Map all L{WorkItem} subclasses table names to the class type. | def WpjY(Emd4):
if Emd4._workTypes is None:
Emd4._workTypes = []
def Trz4(qWQn, T2zP):
if hasattr(qWQn, 'table'):
T2zP.append(qWQn)
else:
for KtLh in qWQn.__subclasses__():
Trz4(KtLh, T2zP)
from twext.enterprise.job... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAPm(YKHO, k9X4):\n tyNF = YKHO.table_map(k9X4)\n vAPm = Mm3i.get_class_by_table(ZHt1, tyNF)\n return vAPm",
"def DrXj(YKHO):\n for H5ew, wEf2 in YKHO.modelclasses.iteritems():\n YKHO.create_table_formodelclass(wEf2)",
"def V_C9(Emd4):\n Hjk9 = {}\n Hjk9[Emd4.feature] = Emd4\n i... | [
"0.62653065",
"0.6243808",
"0.6011001",
"0.5897527",
"0.56156296",
"0.5610087",
"0.5552561",
"0.55393606",
"0.5532785",
"0.54895085",
"0.54697657",
"0.5464259",
"0.54556084",
"0.54443365",
"0.5439605",
"0.5434323",
"0.5424441",
"0.53946775",
"0.53678083",
"0.536295",
"0.53237... | 0.7113948 | 0 |
Map all L{WorkItem} subclasses table names to the class type. | def XwOV(Emd4):
if Emd4._workTypeMap is None:
Emd4.workTypes()
return Emd4._workTypeMap | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WpjY(Emd4):\n if Emd4._workTypes is None:\n Emd4._workTypes = []\n\n def Trz4(qWQn, T2zP):\n if hasattr(qWQn, 'table'):\n T2zP.append(qWQn)\n else:\n for KtLh in qWQn.__subclasses__():\n Trz4(KtLh, T2zP)\n from twext... | [
"0.7113422",
"0.62652105",
"0.6243322",
"0.6008884",
"0.58972013",
"0.5614846",
"0.56097823",
"0.5550654",
"0.55391085",
"0.5531463",
"0.54887456",
"0.5469451",
"0.5463869",
"0.545454",
"0.54447466",
"0.5433431",
"0.5424597",
"0.53936255",
"0.5367408",
"0.5362439",
"0.5323430... | 0.54391277 | 15 |
Filters unresolved answers and then computes the number of occurrences of each unresolved answer. This method is run within the context of a MapReduce job. | def UFqz(YKHO, mXhE: stats_domain.StateAnswersDict) -> KW7S.StateAnswersCalcOutput:
uW24 = mXhE['interaction_id']
if uW24 in vg4R.LINEAR_INTERACTION_IDS:
raise Exception("Linear interaction '%s' is not allowed for the calculation of top submitted answers, by frequency." % uW24)
jZCz: x1iM[hZUf] = [{... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X8Lz():\n Inv7 = yH1f().split('\\n\\n')\n wjRY = mBkc()\n for KCHu in Inv7:\n Br4M = len(KCHu.split('\\n'))\n MGAL = mBkc()\n for a70H in KCHu:\n for ANfV in a70H:\n if ANfV != '\\n':\n MGAL[ANfV] += 1\n E6bO = {G1Hx: Ty9i for G1... | [
"0.6056903",
"0.58999056",
"0.5896428",
"0.58336806",
"0.5725544",
"0.56090695",
"0.5604205",
"0.5541942",
"0.5539434",
"0.55001754",
"0.54948974",
"0.54863805",
"0.5468619",
"0.5461333",
"0.54575765",
"0.5415975",
"0.5404312",
"0.5403078",
"0.5382493",
"0.5364702",
"0.535585... | 0.0 | -1 |
Splits paragraph text into list of sentences. \n | def fAiv(KnbE):
return KnbE.split('. ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6PU(YKHO, l5Ny):\n if '<eos>' in l5Ny:\n Rhv4 = [l5Ny.replace('<eos>', '')]\n else:\n Rhv4 = l5Ny.split('\\n')\n return [yAmx.split() for yAmx in Rhv4]",
"def ZQ83(l5Ny):\n l5Ny = l5Ny.strip()\n s4Yn = [XP5J.strip() for XP5J in l5Ny.split('<newline>')]\n s4Yn = [XP5J for XP5J... | [
"0.8099816",
"0.80043274",
"0.7825358",
"0.7789605",
"0.7760997",
"0.7731647",
"0.77190346",
"0.76826507",
"0.7676433",
"0.7668734",
"0.76489246",
"0.7632947",
"0.7609211",
"0.7609211",
"0.7589506",
"0.7555849",
"0.74997425",
"0.7494057",
"0.7483626",
"0.74659306",
"0.7434649... | 0.74436307 | 20 |
Get all gateways for the interfaces. | def n3Ki():
return xmTW() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q_tk():\n pxwp = bT5T.gateways()\n return pxwp",
"def xmTW(YKHO) -> qe4Y.Output[h8nf[bdIy[str]]]:\n return qe4Y.get(YKHO, 'gateways')",
"def CQ5r(mWFP: str) -> list:\n KEmf = cUW3.describe_internet_gateways(Filters=[{'Name': 'tag:Name', 'Values': [mWFP]}])\n return KEmf.get('InternetGateways... | [
"0.79434943",
"0.71275145",
"0.6903931",
"0.68890035",
"0.68523836",
"0.6812641",
"0.6753647",
"0.67134124",
"0.67134124",
"0.6673323",
"0.65529364",
"0.65519714",
"0.6537398",
"0.6537398",
"0.64700174",
"0.63492584",
"0.6309489",
"0.6288157",
"0.62487614",
"0.62181973",
"0.6... | 0.74777657 | 1 |
Initializes the Transformation Encoder class with MSE loss | def FIMM(YKHO, CXJL, Ep8u, zfxQ, qcKh, M7xW, a6Jb, YAwd, qOC3, b0Ix, cPy2):
YKHO.encoder = FQma(CXJL, Ep8u, zfxQ, qcKh)
YKHO.decoder = jUE7(a6Jb, M7xW, Ep8u, YAwd, qOC3, True)
YKHO.reEncoder = kFp6(CXJL, Ep8u, zfxQ, qcKh)
YKHO.optimizer = ZylS.keras.optimizers.Adam(lr=b0Ix)
YKHO.checkpoint = ZylS.tr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.loss_fn = ht2j.nn.MSELoss(size_average=None, reduce=None, reduction='mean')",
"def DbxN(YKHO):\n YKHO.compile(optimizer=YKHO.optimizer(), loss='mse')",
"def FIMM(YKHO):\n YKHO.latent_size = None\n YKHO.dnse_dropout = None\n if Ke5A:\n print('\\nstart AE.__init__()')... | [
"0.68448126",
"0.6463291",
"0.6230922",
"0.61171156",
"0.60696256",
"0.60497016",
"0.6035801",
"0.60316056",
"0.59999686",
"0.59962606",
"0.5993921",
"0.59575105",
"0.595384",
"0.5932312",
"0.5928593",
"0.5922202",
"0.5895799",
"0.588076",
"0.5865688",
"0.584422",
"0.5816955"... | 0.5797564 | 23 |
Calculate Catmull Rom for a chain of points and return the combined curve. | def FTTd(LTIa, sT4o=10):
LTIa = SLNo(LTIa)
zNig = len(LTIa)
Nq1b = []
for YRbF in range(zNig - 3):
Z9rn = Ae5i(LTIa[YRbF], LTIa[YRbF + 1], LTIa[YRbF + 2], LTIa[YRbF + 3], sT4o)
Nq1b.extend(Z9rn)
return Nq1b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jV_k(V6IE):\n Rv0k = len(V6IE)\n Nq1b = []\n for YRbF in range(Rv0k - 3):\n Z9rn = AGQS(V6IE[YRbF], V6IE[YRbF + 1], V6IE[YRbF + 2], V6IE[YRbF + 3])\n Nq1b.extend(Z9rn)\n return Nq1b",
"def AGQS(MlT5, Wqlh, bskW, bxM2, X0FW=100):\n MlT5, Wqlh, bskW, bxM2 = map(XTiz.array, [MlT5, W... | [
"0.7550364",
"0.64900756",
"0.6178712",
"0.5680457",
"0.56609476",
"0.5656816",
"0.56210786",
"0.5588826",
"0.5544401",
"0.5538943",
"0.5526176",
"0.5492648",
"0.5469248",
"0.54571605",
"0.5422686",
"0.54081494",
"0.53718436",
"0.5352561",
"0.5316083",
"0.5310527",
"0.5310456... | 0.68422496 | 1 |
Remove nodes from graph and nodes_statuses dict. | def BLhX(xcvg, Eotx, FpdC):
dJ0X = Eotx.copy()
BKkW = FpdC.copy()
for Lnes in xcvg:
dJ0X.remove_node(Lnes)
del BKkW[Lnes]
return (dJ0X, BKkW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oew7(YKHO):\n YKHO._node_status = {}",
"def eZa2(YKHO, Ziit):\n YKHO._graph.remove_nodes_from(Ziit)",
"def SsXr(Ziit):\n UP4K = {}\n for G1Hx, Ty9i in Ziit.items():\n if Ty9i['external-ip'] == '(null)':\n continue\n if Ty9i.get('to', []):\n UP4K[G1Hx] = Ty9i\... | [
"0.6889542",
"0.6775132",
"0.66267115",
"0.6582878",
"0.6396997",
"0.6396018",
"0.6341765",
"0.6330595",
"0.62881005",
"0.62586206",
"0.6252478",
"0.62073886",
"0.6207339",
"0.61721754",
"0.61487716",
"0.61392224",
"0.60855377",
"0.60852116",
"0.6053729",
"0.60499495",
"0.604... | 0.7782765 | 0 |
Return all closed regions in image who's pixel satisfy test. | def a3xJ(LNo8, QOe9):
e3Fk = LNo8.load()
fUYa, bEXe = map(Ni9Y, LNo8.size)
pPvV = set((M_DK for M_DK in Hs6x.product(fUYa, bEXe) if QOe9(e3Fk[M_DK])))
while pPvV:
zn0c = set()
D70y = set([pPvV.pop()])
while D70y:
zn0c |= D70y
pPvV -= D70y
D70y ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKt(VXjJ):\n ZHfW = oyIN.zeros_like(VXjJ)\n iXlf = oyIN.array([[(100, VXjJ.shape[0]), (VXjJ.shape[1] * 0.4, VXjJ.shape[0] * 0.5), (VXjJ.shape[1] * 0.6, VXjJ.shape[0] * 0.5), (VXjJ.shape[1], VXjJ.shape[0])]], dtype=oyIN.int32)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (25... | [
"0.640888",
"0.63912714",
"0.6368487",
"0.63362783",
"0.6236531",
"0.6220888",
"0.61842626",
"0.6168015",
"0.6145856",
"0.6092551",
"0.5929831",
"0.5823096",
"0.58156955",
"0.5806874",
"0.579147",
"0.57772976",
"0.57672477",
"0.5757092",
"0.5745296",
"0.5725169",
"0.5714036",... | 0.83072495 | 0 |
Returns `model_fn` closure for TPUEstimator. | def VPYM(AgTV, phrK, b0Ix, H0j9, USzt, ND3i, GPtr, vLi8, ZGlH=False):
def JnVv(bySB, Crrw, Tuqy, NArs):
"""The `model_fn` for TPUEstimator."""
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s' % (mWFP, bySB[mWFP].s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNzv(QjBU):\n\n def Csmj(bySB, Crrw, Tuqy, NArs):\n \"\"\"Model function.\"\"\"\n del Crrw, NArs\n qqWV = C3ST.BaseModel(QjBU, mode=Tuqy, features=bySB)\n if Tuqy == QUnY.ModeKeys.INFER:\n xnXT = qqWV.predicted_ids\n xnXT = ZylS.transpose(xnXT, [2, 1, 0])\n ... | [
"0.67876256",
"0.67231953",
"0.6708339",
"0.6708339",
"0.6704804",
"0.6642739",
"0.66179776",
"0.6606682",
"0.64987177",
"0.64855075",
"0.64845395",
"0.64673865",
"0.6446065",
"0.6385782",
"0.63442314",
"0.6340337",
"0.63192046",
"0.62871474",
"0.6259095",
"0.6225923",
"0.622... | 0.5475995 | 87 |
The `model_fn` for TPUEstimator. | def JnVv(bySB, Crrw, Tuqy, NArs):
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s' % (mWFP, bySB[mWFP].shape))
r8br = bySB['unique_ids']
Pha6 = bySB['input_ids']
Uszf = bySB['segment_ids']
LT6S = Tuqy == ZylS.estimator.Mod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu... | [
"0.72367716",
"0.71988326",
"0.7104839",
"0.70972824",
"0.70390856",
"0.70390856",
"0.6974548",
"0.69318426",
"0.68878186",
"0.6779888",
"0.6657784",
"0.66280496",
"0.66276866",
"0.65930724",
"0.658428",
"0.6548632",
"0.653595",
"0.64862645",
"0.64843076",
"0.6481026",
"0.642... | 0.0 | -1 |
Generate a random string of fixed length | def TJC9(FVpJ=10):
KoG3 = vIwR.ascii_lowercase
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def MiNk(u54L):\n gLiZ = vIwR.ascii... | [
"0.8746205",
"0.87138057",
"0.86634374",
"0.8589632",
"0.85856813",
"0.85634226",
"0.8558564",
"0.85515654",
"0.853908",
"0.8533391",
"0.8508468",
"0.85072726",
"0.84704083",
"0.84667903",
"0.84667903",
"0.84504145",
"0.8449424",
"0.8428432",
"0.84244287",
"0.8423231",
"0.841... | 0.0 | -1 |
Return user by email or None | def CYTf(D3lj):
return xDcj(mv1M).filter_by(email=D3lj).first() or None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n if CBIr.email == D3lj:\n return CBIr\n return None",
"def TKWP(Emd4, D3lj):\n try:\n return Emd4.get(Emd4.email == D3lj)\n except ws9Q:\n return None",
"def KacQ(YKHO, D3lj):\n ... | [
"0.8702737",
"0.86809886",
"0.8545691",
"0.85309356",
"0.8530321",
"0.8526509",
"0.84381443",
"0.8372714",
"0.83309925",
"0.8310516",
"0.8276422",
"0.82705086",
"0.8256987",
"0.82240903",
"0.8222578",
"0.82014066",
"0.81986517",
"0.81614107",
"0.8136145",
"0.8131354",
"0.8126... | 0.8349348 | 8 |
Return user by user id | def bt8D(PObu):
return xDcj(mv1M).filter_by(id=int(PObu)).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(uJjO):\n return xyx6.find_one({'user_id': uJjO})",
"def bt8D(uJjO):\n return NCls.get(uJjO, None)",
"def bt8D(uJjO):\n return mv1M.query.get(uJjO)",
"def TKWP(uJjO):\n CBIr = mv1M.objects.get_or_404(id=uJjO)\n return CBIr",
"def TKWP(uJjO):\n return mv1M.query.get(uJjO)",
"def ... | [
"0.85456955",
"0.8447271",
"0.8444386",
"0.8431712",
"0.8380381",
"0.8350824",
"0.83339137",
"0.83287007",
"0.83036953",
"0.82965755",
"0.8280629",
"0.82720196",
"0.8267466",
"0.8259909",
"0.82527167",
"0.82242167",
"0.8215473",
"0.8207957",
"0.820468",
"0.820468",
"0.820468"... | 0.0 | -1 |
When a requested doc is not present, we should return a 404 | def v4ew(YKHO, X47D):
X47D.return_value.preamble.return_value = None
tTee = uK8v.PreambleView.as_view()
YKHO.assertRaises(uhgT, tTee, b9AL().get('/preamble/1/c/x'), paragraphs='1/c/x') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf(P1dF):\n return Yxsy(pz3A({'error': 'Document not found'}), 404)",
"def o3cf(YKHO):\n raise lW34()",
"def Gftu(YKHO):\n eOtH = LQUb('1234', 'foo@user.com', 'foouser', scope=[uC2a.READ_COMPILE, uC2a.CREATE_COMPILE, uC2a.READ_FULLTEXT, uC2a.CREATE_FULLTEXT])\n with YKHO.app.app_context():\n ... | [
"0.7578598",
"0.7412772",
"0.7090618",
"0.69218004",
"0.6913944",
"0.69016755",
"0.6878704",
"0.68533784",
"0.68449885",
"0.68190384",
"0.6776456",
"0.6775375",
"0.6757295",
"0.67182577",
"0.6707824",
"0.6695624",
"0.6692449",
"0.66878587",
"0.66715884",
"0.66703695",
"0.6654... | 0.671186 | 14 |
Find the first recurring characters or None if there isn't one. >>> f("ABC") >>> f("ABAC") 'A' >>> f("ABBAC") 'A' >>> f("DADBBBC") 'B' | def np3n(KCHu):
Fb9w = len(KCHu)
gLiZ = {(KCHu.count(Z9rn), Fb9w - KCHu.index(Z9rn)): Z9rn for Z9rn in KCHu}
np3n = max(gLiZ.keys())
if np3n[0] == 1:
return None
return gLiZ[np3n] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJdZ(NPoT):\n On0l = {}\n for hcXw in NPoT:\n if hcXw in On0l:\n return hcXw\n else:\n On0l[hcXw] = 1",
"def IWGu(KCHu):\n for Z9rn in KCHu:\n if KCHu.index(Z9rn) == KCHu.rindex(Z9rn):\n return Z9rn\n return '_'",
"def wACR(YKHO, l5Ny):\n ... | [
"0.72182447",
"0.7122045",
"0.7073689",
"0.6977627",
"0.69188815",
"0.6563214",
"0.6532874",
"0.65260255",
"0.64928824",
"0.63985515",
"0.63131833",
"0.619799",
"0.61883116",
"0.6144681",
"0.61204505",
"0.6092162",
"0.60209906",
"0.5968103",
"0.5954559",
"0.5925744",
"0.59213... | 0.8303391 | 0 |
Doublylinked list initialization. Composed of some attributes from linkedlist, and also has a tail. | def FIMM(YKHO):
YKHO._linkedlist = _sfu()
YKHO.head = YKHO._linkedlist.head
YKHO._length = YKHO._linkedlist._length
YKHO.tail = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n sdCG = o7DN()\n J3uN = o7DN()\n sdCG.next = J3uN\n J3uN.prev = sdCG\n YKHO.head = sdCG\n YKHO.tail = J3uN",
"def FIMM(YKHO):\n YKHO._doubly_linked_list = LpwA()",
"def FIMM(YKHO):\n YKHO.head = None\n YKHO.tail = YKHO.head",
"def FIMM(YKHO, *qIxc):\n if len(qIx... | [
"0.7909438",
"0.75859696",
"0.7511043",
"0.7453015",
"0.7438232",
"0.7438232",
"0.7438232",
"0.742967",
"0.7415963",
"0.7415598",
"0.74112594",
"0.74112594",
"0.7400426",
"0.7360168",
"0.73443204",
"0.7318747",
"0.7279871",
"0.722274",
"0.71830076",
"0.715368",
"0.71489674",
... | 0.75507426 | 2 |
Push node to head of list. | def _jXH(YKHO, nPrm):
PrEE = YKHO.head
ac0X = YKHO._linkedlist.push(nPrm)
if YKHO.tail is None:
YKHO.tail = ac0X
if YKHO.head:
PrEE.prev = ac0X
YKHO.head = ac0X
YKHO.head.next_node = PrEE
YKHO._length += 1
YKHO.head.prev = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, Q6kx):\n if YKHO.head is None:\n YKHO.head = Q6kx\n else:\n Q6kx._next = YKHO.head\n YKHO.head = Q6kx\n YKHO.size += 1",
"def PgMl(YKHO, wEf2):\n Q6kx = o7DN(wEf2, None)\n if len(YKHO.list) > 0:\n YKHO.list[0].pre = Q6kx\n YKHO.list.insert(0, Q6kx)",
... | [
"0.8142824",
"0.78804934",
"0.75853896",
"0.7555465",
"0.74944454",
"0.74913645",
"0.7473394",
"0.7401281",
"0.73819005",
"0.7357837",
"0.735324",
"0.7343042",
"0.73239833",
"0.73218113",
"0.7309789",
"0.7307316",
"0.72944397",
"0.72891533",
"0.7288588",
"0.7286874",
"0.72853... | 0.0 | -1 |
Remove node at head of list. | def BEuN(YKHO):
if not YKHO.head:
raise IndexError('List empty')
U680 = YKHO.head.data
YKHO._length -= 1
if not YKHO.head.next_node:
YKHO.head = None
YKHO.tail = None
else:
YKHO.head = YKHO.head.next_node
YKHO.head.prev = None
return U680 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vmd7(YKHO):\n if YKHO._is_empty():\n raise Exception('ERROR: List is empty!')\n else:\n GHi7 = YKHO.head\n YKHO.head = GHi7.next\n GHi7.next = None\n del GHi7\n if YKHO.head is None:\n YKHO.tail = YKHO.head",
"def _IVA(YKHO):\n if YKHO.head is Non... | [
"0.8596943",
"0.8270696",
"0.8072142",
"0.7979259",
"0.7806646",
"0.77135205",
"0.76822305",
"0.7676644",
"0.76675767",
"0.7663508",
"0.7636882",
"0.7633869",
"0.7622046",
"0.76076823",
"0.7560379",
"0.7553904",
"0.74328846",
"0.742679",
"0.73701286",
"0.73590904",
"0.7345696... | 0.0 | -1 |
Location of Trac templates provided by plugin. | def kTZQ(YKHO):
return [Whwd('tracqa', 'templates')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1hi(YKHO):\n return super()._template_paths() + [Hy7s.path.join(Hy7s.path.dirname(xAKo), 'Templates')]",
"def C1hi(YKHO):\n return super()._template_paths() + [Hy7s.path.join(Hy7s.path.dirname(xAKo), 'Templates')]",
"def UhR0(YKHO):\n return super().template_path + [Hy7s.path.join(Hy7s.path.dirna... | [
"0.73179895",
"0.73179895",
"0.7272878",
"0.7085779",
"0.70791864",
"0.6993762",
"0.68476236",
"0.68091005",
"0.67358446",
"0.6639066",
"0.6627965",
"0.6627965",
"0.6627965",
"0.6562894",
"0.65605927",
"0.6551315",
"0.6491091",
"0.6453981",
"0.6453981",
"0.6453981",
"0.645398... | 0.7064291 | 5 |
Checks if a path has no obstructions | def qWwZ(YKHO, yKcO, Os4s):
WKvO, LVAh = yKcO
ivGw, LNWq = Os4s
JY0y = ivGw - WKvO
RfE8 = LNWq - LVAh
if abs(JY0y) > abs(RfE8):
XSoh = -1 if JY0y < 0 else 1
WKvO += XSoh
if YKHO._is_obstructed_location((WKvO, LVAh)):
return False
WKvO += XSoh
if YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.roots) == 0",
"def NROV(YKHO):\n return len(YKHO.states) > 1",
"def FBfn(YKHO) -> bool:\n if YKHO._mesh:\n return len(YKHO._mesh.vertices) == 0\n return YKHO.path is None",
"def FBfn(YKHO):\n return YKHO.obstacles == [] or YKHO.obstacles == None",
"de... | [
"0.656358",
"0.6553821",
"0.647292",
"0.646604",
"0.635986",
"0.63595253",
"0.617699",
"0.61599475",
"0.6146373",
"0.6126645",
"0.61220384",
"0.6050227",
"0.6048703",
"0.6046525",
"0.6044848",
"0.6033638",
"0.60276824",
"0.60166925",
"0.6007563",
"0.59984595",
"0.5988055",
... | 0.0 | -1 |
Unpack the cells because the stack_bidirectional_dynamic_rnn expects a list of cells, one per layer. | def gr6s(VmPb):
if isinstance(VmPb, ZylS.contrib.rnn.MultiRNNCell):
return VmPb._cells
else:
return [VmPb] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YezX(VmPb):\n if isinstance(VmPb, ZylS.contrib.rnn.MultiRNNCell):\n return VmPb._cells\n else:\n return [VmPb]",
"def Bfwt(YKHO):\n jC0h = []\n for bGrB in range(YKHO.num_layers):\n DkXM = YKHO._rnn_single_cell()\n jC0h.append(DkXM)\n if YKHO.num_layers == 1:\n ... | [
"0.71081257",
"0.6576752",
"0.63966966",
"0.62807643",
"0.58750916",
"0.57973105",
"0.57872957",
"0.57742524",
"0.57527053",
"0.56830215",
"0.56705964",
"0.56705964",
"0.56705964",
"0.56678224",
"0.56544554",
"0.55977154",
"0.5564062",
"0.55383694",
"0.54845434",
"0.54760295",
... | 0.71858186 | 0 |
Returns the index in listy that contains the value i. If i occurs multiple times in the list, returns one of the corresponding indices. Returns 1 if the value is not in the listy. | def Kdi7(ISMy, YRbF):
return Z8lG(ISMy, YRbF, 0, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vn7Z(WKvO, G2R8):\n for d6pt, mWFP in enumerate(G2R8):\n if WKvO == mWFP:\n return d6pt",
"def kS1Y(YKHO, pan_):\n IAiS = 0\n for Mcte in YKHO:\n IAiS += 1\n if pan_ == Mcte[0]:\n return IAiS",
"def _0VL(vC9B, wEf2):\n return [d6pt for d6pt, BWXx in en... | [
"0.7007958",
"0.70036376",
"0.68258893",
"0.6794535",
"0.6790593",
"0.67475295",
"0.6708586",
"0.6707458",
"0.6697575",
"0.66952854",
"0.66895336",
"0.6672369",
"0.6599897",
"0.65997255",
"0.65932316",
"0.65720147",
"0.6569432",
"0.65056866",
"0.6443225",
"0.64196885",
"0.641... | 0.7359204 | 0 |
Extract code examples into directory tree | def cdp5():
PSle(p1QY)
p1QY.mkdir()
for J87D in vtfo(waZJ).glob('*.md'):
print(J87D.name)
l5Ny = J87D.read_text()
for PU1l in vhpz.findall(l5Ny):
PU1l = PU1l.strip()
GKeO = PU1l.splitlines()[0]
if not (GKeO.startswith('//') and GKeO.endswith('.scal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Japz(YKHO):\n _73Q = Hy7s.listdir(YKHO.examples_path)\n for tTpl in _73Q:\n Nsam = Hy7s.path.join(YKHO.examples_path, tTpl)\n if Hy7s.path.isfile(Nsam):\n J_Es = M73q(Nsam, using_file=True)",
"def V1cC(OaeV):\n U34r('copying examples into docs directory')\n iXC1('cp examp... | [
"0.72865856",
"0.7238025",
"0.722509",
"0.69960004",
"0.69804287",
"0.6910899",
"0.6890276",
"0.6821683",
"0.6696798",
"0.6696798",
"0.6696798",
"0.6696798",
"0.66135424",
"0.649887",
"0.64693725",
"0.64132524",
"0.636755",
"0.6313376",
"0.62961435",
"0.6290908",
"0.6290908",... | 0.8064395 | 0 |
Get the subpath relative to path. | def WYgf(YKHO) -> h8nf[str]:
return YKHO._sub_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vUG1(pmON, schV=None):\n schV = schV if schV is not None else E0XI()\n XNWQ = Hy7s.path.relpath(Hy7s.path.abspath(pmON), Hy7s.path.abspath(schV))\n if not XNWQ.startswith('..'):\n return XNWQ\n return pmON",
"def C3IS(YKHO, *pmON):\n return Hy7s.path.relpath(YKHO._getPath(*pmON), YKHO.w... | [
"0.8027703",
"0.75937873",
"0.7412437",
"0.7384001",
"0.73295885",
"0.73146963",
"0.7312188",
"0.73005086",
"0.72398293",
"0.7237713",
"0.72267145",
"0.72243375",
"0.72080064",
"0.7205539",
"0.71636546",
"0.71482563",
"0.7121096",
"0.70801604",
"0.70666105",
"0.70600843",
"0.... | 0.6934855 | 27 |
Load model from the given path. | def IkbX(N3HV, pmON, NnVG=None):
if not (Hy7s.path.isdir(pmON) or Hy7s.path.exists(pmON + AiaD)):
raise ValueError(f'Model pretrain path {pmON} does not exists.')
G9jH.info(f'Loading parameters from {pmON}...')
RTkH = set()
QTBn = xnqt(pmON)
I5pv = {}
for XkN1 in N3HV.blocks:
for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def O5RJ(Emd4, uqvc):\n pass",
"def J2u4(YKHO, pmON):\n YKHO._model = uyMl(pmON)\n print('Loaded model from file.')",
"def uyMl(YKHO, pmON):\n pmON = oAb3.Path(pmON)\n with pmON.open('rb') as eHNT:\... | [
"0.90862495",
"0.8775588",
"0.8715448",
"0.8555849",
"0.853915",
"0.84579355",
"0.8446488",
"0.8325297",
"0.8322502",
"0.83032084",
"0.83025086",
"0.8301984",
"0.8253563",
"0.82392746",
"0.82277745",
"0.81914335",
"0.8190945",
"0.81735444",
"0.8167499",
"0.81562006",
"0.81442... | 0.0 | -1 |
Init from checkpoints or pretrained model in given path. | def RIKn(h7uU, YPqY, pETf):
if h7uU:
CbyH.static.load(YPqY, h7uU, pETf)
G9jH.info(f'Finish initing checkpoint from {h7uU}')
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO, pmON):\n OuMq = YKHO._get_distributed_strategy()\n with OuMq.scope():\n YKHO.initialise_models()\n YKHO.model = ZylS.keras.models.load_model(pmON)\n YKHO.trained_ = True",
"def lhGW(YKHO, pmON):\n vauY = ht2j.load(pmON)\n vauY.pop('classifier.1.weight')\n vauY.pop('... | [
"0.7326807",
"0.73172426",
"0.7270907",
"0.7258601",
"0.7191533",
"0.71652603",
"0.7154811",
"0.71261245",
"0.7087053",
"0.7054402",
"0.7046348",
"0.7033509",
"0.6963185",
"0.6947302",
"0.69341487",
"0.6933868",
"0.6901455",
"0.6897395",
"0.68895155",
"0.68573403",
"0.6856143... | 0.0 | -1 |
Init from checkpoints or pretrained model in given path. | def RrSi(RWZW, YPqY):
if RWZW:
if not isinstance(RWZW, list):
v8sj = [RWZW]
for Hj7O in v8sj:
IkbX(YPqY, Hj7O)
G9jH.info(f'Finish initing pretrained model from {v8sj}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO, pmON):\n OuMq = YKHO._get_distributed_strategy()\n with OuMq.scope():\n YKHO.initialise_models()\n YKHO.model = ZylS.keras.models.load_model(pmON)\n YKHO.trained_ = True",
"def lhGW(YKHO, pmON):\n vauY = ht2j.load(pmON)\n vauY.pop('classifier.1.weight')\n vauY.pop('... | [
"0.7326807",
"0.73172426",
"0.7258601",
"0.7191533",
"0.71652603",
"0.7154811",
"0.71261245",
"0.7087053",
"0.7054402",
"0.7046348",
"0.7033509",
"0.6963185",
"0.6947302",
"0.69341487",
"0.6933868",
"0.6901455",
"0.6897395",
"0.68895155",
"0.68573403",
"0.6856143",
"0.6822368... | 0.7270907 | 2 |
Generate primes less than `n` (except 2) using the Sieve of Sundaram. | def DzI6(exwG: int):
ABXB = int((exwG - 2) / 2)
KwQv = [0] * (ABXB + 1)
for vU9r in range(1, ABXB + 1):
_gRY = vU9r
while vU9r + _gRY + 2 * vU9r * _gRY <= ABXB:
KwQv[vU9r + _gRY + 2 * vU9r * _gRY] = 1
_gRY += 1
return [2 * YRbF + 1 for YRbF in range(1, ABXB + 1) i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KwQv(exwG):\n\n def EfI0(jzdc, exwG):\n \"\"\"\n primen\n\n this inner-function is a generator\n that produces a sequence of number\n starting from 5 to n\n avoinding all the multiple of 2 and\n 3 this speeds up a lot the sieve\n having a lot less numb... | [
"0.7925588",
"0.76802313",
"0.7650953",
"0.7621639",
"0.7621639",
"0.7621639",
"0.7615843",
"0.76034933",
"0.75964415",
"0.7585516",
"0.75624716",
"0.75624716",
"0.75624716",
"0.75624716",
"0.75583434",
"0.75378156",
"0.7509233",
"0.7505083",
"0.75030863",
"0.7460259",
"0.745... | 0.7791754 | 1 |
Returns the Euler yaw from a quaternion. | def U0Pj(YKHO, vexM):
return vwZf(2 * (vexM.w * vexM.z + vexM.x * vexM.y), 1 - 2 * (vexM.y * vexM.y + vexM.z * vexM.z)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yrsR(YKHO, slpS):\n WKvO = slpS.x\n LVAh = slpS.y\n epBp = slpS.z\n yzQ0 = slpS.w\n UH4d = 2 * (yzQ0 * WKvO + LVAh * epBp)\n RqEy = 1 - 2 * (WKvO * WKvO + LVAh * LVAh)\n rKSe = oyIN.arctan2(UH4d, RqEy)\n _mrX = 2 * (yzQ0 * LVAh - epBp * WKvO)\n H2HG = oyIN.arcsin(_mrX)\n zEni = 2 ... | [
"0.8584036",
"0.84102917",
"0.81639177",
"0.81639177",
"0.7793801",
"0.7790919",
"0.76933414",
"0.7616364",
"0.75844985",
"0.7539737",
"0.75313413",
"0.75249946",
"0.7501149",
"0.7481322",
"0.7481322",
"0.7481322",
"0.7481322",
"0.7472315",
"0.7456622",
"0.7450691",
"0.744232... | 0.7460383 | 18 |
Returns time as POSIX time (integer) | def xgnN(YKHO):
return hfK9(YKHO.raw_time, settings={'TIMEZONE': 'UTC', 'RETURN_AS_TIMEZONE_AWARE': True}).timestamp() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CgLc() -> int:\n return int(round(ITS7.time()))",
"def m7L9():\n return int(ITS7.mktime(ITS7.localtime()))",
"def kMp9() -> int:\n return int(ITS7.time())",
"def ItX3():\n return int(ITS7.time())",
"def ItX3():\n return int(ITS7.time())",
"def eSEE(YKHO) -> int:\n Sqsz = YKHO.read_r... | [
"0.7770445",
"0.7698876",
"0.74122894",
"0.72104627",
"0.72104627",
"0.7202451",
"0.70907915",
"0.7080916",
"0.70670766",
"0.7061757",
"0.70425606",
"0.7034419",
"0.69705653",
"0.69393027",
"0.69367915",
"0.6910217",
"0.68893355",
"0.68883497",
"0.68881553",
"0.6858965",
"0.6... | 0.6830934 | 21 |
Return a new SingleCategoryAttribute with a subset of the items in the categories. | def OP2O(YKHO, ZfUD: Union[str, List[str]]) -> 'SingleCategoryAttribute':
if isinstance(ZfUD, str):
LeZt = [ZfUD]
else:
LeZt = ZfUD
if not set(LeZt).issubset(YKHO.category_names):
raise ValueError('Items to get must be subset of categories.')
Cc00 = YKHO._data.loc[YKHO._data.isin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ReNU(YKHO, ZfUD: Union[str, List[str]]) -> 'SingleCategoryAttribute':\n if isinstance(ZfUD, str):\n LeZt = [ZfUD]\n else:\n LeZt = ZfUD\n if not set(LeZt).issubset(YKHO.category_names):\n raise ValueError('Items to drop must be subset of categories.')\n Cc00 = YKHO._data.loc[~Y... | [
"0.6284836",
"0.6264884",
"0.6141001",
"0.58109003",
"0.5724058",
"0.5621507",
"0.5569287",
"0.55416566",
"0.55416566",
"0.5512547",
"0.54337025",
"0.5421695",
"0.54172283",
"0.54134023",
"0.54068065",
"0.538304",
"0.53468627",
"0.5307384",
"0.5297137",
"0.5279314",
"0.523736... | 0.7246923 | 0 |