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 |
|---|---|---|---|---|---|---|
Log Errors caused by Updates. | def P1dF(QdZT, QpfX):
bo34.warning('Update "%s" caused error "%s"', QdZT, QpfX.error) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.77220625",
"0.77220625",
"0.7721968",
"0.77089256",
"0.76969343",
"0.76579255",
"0.7... | 0.7746185 | 17 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
eHNT = WKvO - oyIN.max(WKvO)
return oyIN.exp(eHNT) / oyIN.sum(oyIN.exp(eHNT), axis=1, keepdims=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.80113125",
"0.77607703",
"0.77607703",
"0.7687368",
"0.76707524",
"0.76605",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76571554",
"0.76397043",
"0.762786",
"0.7551623",
"0.7532752",
"0.74565",
"0.73242354",
"0.73171765",
"0.7298... | 0.0 | -1 |
Initialize a radiation source object. | def FIMM(YKHO, Cs6h=None, Cb0j=None, ER9O=True):
for Mzf9 in hE95:
if Mzf9 in YKHO.pf:
continue
YKHO.pf[Mzf9] = hE95[Mzf9]
YKHO.Emin = YKHO.pf['source_Emin']
YKHO.Emax = YKHO.pf['source_Emax']
YKHO.logEmin = oyIN.log10(YKHO.Emin)
YKHO.logEmax = oyIN.log10(YKHO.Emax)
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, JZXy):\n YKHO.source = JZXy",
"def FIMM(YKHO, JZXy):\n YKHO.from_source(JZXy)",
"def FIMM(YKHO, JZXy=None):\n YKHO.source = JZXy",
"def FIMM(YKHO, JZXy=None):\n YKHO.source = JZXy",
"def FIMM(YKHO, JZXy):\n YKHO.source = JZXy",
"def FIMM(YKHO, JZXy):\n YKHO.source = JZXy"... | [
"0.65966314",
"0.65620124",
"0.64379543",
"0.64379543",
"0.6275772",
"0.6275772",
"0.6275772",
"0.6234633",
"0.6195145",
"0.60522896",
"0.5985561",
"0.5946217",
"0.5946062",
"0.59333676",
"0.5891408",
"0.5888009",
"0.5884931",
"0.5883095",
"0.58669204",
"0.5863458",
"0.583081... | 0.0 | -1 |
Average ionizing photon luminosity (per absorber) in s^1. | def RoGS(YKHO):
if not hasattr(YKHO, '_qdot_bar_all'):
uDnv = YKHO.hnu_bar
return YKHO._qdot_bar_all | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO):\n return 0.1656589",
"def JBMS(YKHO):\n return 0.072",
"def JBMS(YKHO):\n return 0.576",
"def h8xF(YKHO, jzdc):\n return sum((WKvO * WKvO for WKvO in jzdc)) / float(sum(jzdc))",
"def JBMS(YKHO):\n return 0.06748",
"def kvkx(YKHO):\n u54L = len(Q1Kq.ram_y)\n Lx3t = 0\n... | [
"0.7007429",
"0.6716225",
"0.66821116",
"0.65891516",
"0.65804154",
"0.6558725",
"0.64935887",
"0.64905596",
"0.6417756",
"0.6399032",
"0.62454385",
"0.62258595",
"0.62234896",
"0.62020147",
"0.61776876",
"0.61776876",
"0.6151388",
"0.61363435",
"0.61363435",
"0.6133242",
"0.... | 0.0 | -1 |
Return Qdot (photons / s) for this source at energy E. | def iRjy(YKHO, a1PO=0, bin=None):
if YKHO.pf['source_type'] in [0, 1, 2]:
return YKHO.Qdot[bin]
else:
return YKHO.BolometricLuminosity(a1PO) * YKHO.LE[bin] / YKHO.E[bin] / c4OX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vexM(YKHO):\n RHJb = oyIN.hypot(YKHO.ep, YKHO.ec)\n return oyIN.exp(-RHJb / 2.0)",
"def REqO(YKHO):\n if not hasattr(YKHO, '_Qdot_all'):\n YKHO._Qdot_all = YKHO.Lbol * YKHO.LE / YKHO.E / c4OX\n return YKHO._Qdot_all",
"def wWCZ(YKHO):\n return oyIN.dot(oyIN.ones(YKHO.nbeads, float), o... | [
"0.6944593",
"0.6788561",
"0.6425384",
"0.6211791",
"0.6211791",
"0.6209578",
"0.61953163",
"0.60437185",
"0.603073",
"0.60292447",
"0.6022679",
"0.6022545",
"0.60169894",
"0.6004144",
"0.5997662",
"0.59684765",
"0.5952493",
"0.59492195",
"0.5911064",
"0.5887703",
"0.58716583... | 0.0 | -1 |
r""" Return fraction of bolometric luminosity emitted at energy E. | def sg5f(YKHO, ut5U, a1PO=0.0):
return YKHO._normL * YKHO._Intensity(ut5U, t=a1PO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHs0(SApd):\n vC9B = 1.26e+38 * SApd\n return vC9B",
"def Ay1R(tTpl):\n return tTpl / _bIs / (tTpl / _bIs + (1 - tTpl) / wbHy)",
"def N0xI(YKHO):\n return YKHO.L",
"def OXyU(ut5U):\n return 12.39842 / ut5U",
"def N0xI(eHNT=11245.5, GPal=2808, I9ur=115000000000.0, bO89=115000000000.0, mOl... | [
"0.708705",
"0.6987152",
"0.68055683",
"0.6759625",
"0.6637758",
"0.648811",
"0.6456991",
"0.640991",
"0.64090526",
"0.6404694",
"0.63988364",
"0.63553506",
"0.63540995",
"0.6346173",
"0.63259685",
"0.63239574",
"0.6320652",
"0.63011545",
"0.6300981",
"0.62864846",
"0.6283869... | 0.0 | -1 |
Test for minimal substructure | def uHtb(YKHO):
Ty9i = Y_ao('test-testing-coin')
Ty9i.validate_structure()
YKHO.assertEquals(len(Ty9i.structure_errors), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wlMJ(YKHO, zLC2: Topology):\n a4Ln(len(list(zLC2.elements)) >= 2)\n OMWt = next(iter(zLC2.elements))\n vcn7 = frozenset({OMWt})\n X44G = TdRg(vcn7, zLC2)\n YKHO.assertIn(OMWt, X44G.elements)",
"def DvD5(N9D1):\n if N9D1.HasSubstructMatch(Mk_G.Chem.MolFromSmarts('NS(=O)(=O)c1ccc(-n2cccn2)cc1... | [
"0.64253104",
"0.642149",
"0.6298887",
"0.62471205",
"0.62386775",
"0.61838394",
"0.60523516",
"0.59993243",
"0.59523046",
"0.5905411",
"0.5904035",
"0.5891478",
"0.5871152",
"0.5868363",
"0.58634603",
"0.5860652",
"0.58379203",
"0.58129084",
"0.58093816",
"0.5785577",
"0.577... | 0.0 | -1 |
Returns one dictionary that includes the percentage score based on the colors and keywords Returns another dictionary that also includes the keyword and the corresponding percentage score for each palette | def peBr(fGtn, Iqex, CP4h):
u2Wg = {}
oaIz = {}
B1nG = {}
bPgv = {}
OpVG = list(JB2Z.keys())
Sk78 = 0
for tn62 in Iqex.keys():
p1kx = 0
oaIz[tn62] = []
bPgv[tn62] = {}
for GIN8 in fGtn:
rzgX = 0
if GIN8 not in B1nG:
B1nG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvhS(e2tZ, wUfe, ujIP, Kt_r, CP4h):\n fe6E = {}\n BR3H = {}\n bZux = {}\n iqPE = {}\n if len(ujIP) == 0:\n lwd0 = 0.15\n WkFh = 0.15\n hocj = 0.15\n aQAW = 0.3\n EKKt = 0.25\n else:\n lwd0 = 0.1\n WkFh = 0.1\n hocj = 0.1\n aQAW = ... | [
"0.771953",
"0.70292145",
"0.6644455",
"0.63559514",
"0.6092428",
"0.59867334",
"0.5939559",
"0.5928586",
"0.58632755",
"0.5771254",
"0.57707644",
"0.5676902",
"0.56384647",
"0.5574645",
"0.5552993",
"0.552168",
"0.55184525",
"0.548009",
"0.54453117",
"0.5409882",
"0.53680813... | 0.7339136 | 1 |
Sets the is_valid of this PhoneNumberValidationResponse. | def SGVO(YKHO, SGVO):
YKHO._is_valid = SGVO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkSS(YKHO, deVW):\n YKHO.valid = deVW\n return True",
"def deVW(YKHO, deVW):\n YKHO._valid = deVW",
"def di7f(YKHO, di7f):\n YKHO._is_resume_valid = di7f",
"def iDxA(YKHO, iDxA):\n YKHO._date_valid = iDxA",
"def xzCw(YKHO):\n YKHO._valid = True",
"def J93I(YKHO, J93I):\n YKHO._va... | [
"0.7091611",
"0.69106555",
"0.619981",
"0.60199344",
"0.5875566",
"0.57296973",
"0.5677561",
"0.5652971",
"0.56058097",
"0.55880165",
"0.55852103",
"0.5578251",
"0.5578251",
"0.5578251",
"0.55544466",
"0.55544466",
"0.55220366",
"0.54769224",
"0.54448307",
"0.5390132",
"0.534... | 0.75296086 | 0 |
Sets the successful of this PhoneNumberValidationResponse. | def Zw_x(YKHO, Zw_x):
YKHO._successful = Zw_x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nyyK(YKHO, nyyK: bool):\n YKHO._success = nyyK",
"def nyyK(YKHO):\n return YKHO._success",
"def nyyK(YKHO):\n return YKHO._success",
"def nyyK(YKHO):\n return YKHO._success",
"def nyyK(YKHO):\n return YKHO._success",
"def nyyK(YKHO):\n return YKHO._success",
"def nyyK(YKHO):\n ... | [
"0.65176284",
"0.6489637",
"0.6489637",
"0.6489637",
"0.6489637",
"0.6489637",
"0.6458414",
"0.6458414",
"0.6380521",
"0.6380521",
"0.6380521",
"0.637381",
"0.63656795",
"0.63656795",
"0.6290014",
"0.6242715",
"0.6196021",
"0.61717594",
"0.6169617",
"0.6169617",
"0.61218053",... | 0.6646311 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Generate an infinite sequence of prime numbers. | def slx7():
lWPh = {}
vexM = 2
while True:
if vexM not in lWPh:
yield vexM
lWPh[vexM * vexM] = [vexM]
else:
for XP5J in lWPh[vexM]:
lWPh.setdefault(XP5J + vexM, []).append(XP5J)
del lWPh[vexM]
vexM += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DzI6():\n YRbF = 1\n while True:\n if T1qg(YRbF):\n yield YRbF\n YRbF += 1",
"def mPb3() -> int:\n xd2Y = []\n for exwG in UHFx(start=2):\n if all(lambda tTpl: exwG % tTpl != 0, xd2Y):\n xd2Y.append(exwG)\n yield exwG",
"def rPed():\n YRb... | [
"0.82207215",
"0.7956827",
"0.7741498",
"0.77003324",
"0.7683854",
"0.76620984",
"0.7604251",
"0.7596093",
"0.7581087",
"0.7403047",
"0.73933476",
"0.73786706",
"0.73487204",
"0.7314217",
"0.7289382",
"0.7286642",
"0.7281246",
"0.72608936",
"0.7252423",
"0.72450584",
"0.72288... | 0.6544434 | 90 |
The function builds a keras Sequential model | def n8cN(EvQg):
C3ST = ileL()
C3ST.add(HGYM(64, activation='relu', input_shape=(EvQg.shape[1], EvQg.shape[2])))
C3ST.add(lARV(0.1))
C3ST.add(l6ZH(51, activation='sigmoid'))
C3ST.compile(loss='binary_crossentropy', optimizer='rmsprop', metrics=['accuracy'])
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8cN(YKHO):\n C3ST = ileL()\n C3ST.add(l6ZH(units=64, activation='relu', input_dim=YKHO.obs_dim))\n C3ST.add(l6ZH(units=64, activation='relu'))\n C3ST.add(l6ZH(units=YKHO.act_dim, activation='linear'))\n C3ST.compile(loss='mse', optimizer=qhl4(lr=YKHO.lr))\n return C3ST",
"def n8cN(YKHO):\n... | [
"0.823888",
"0.8172341",
"0.80938226",
"0.80485964",
"0.80322015",
"0.7992388",
"0.79714847",
"0.79464036",
"0.79348356",
"0.7894554",
"0.78926486",
"0.784012",
"0.7816509",
"0.7808142",
"0.7797422",
"0.77864677",
"0.77661204",
"0.7748492",
"0.77448183",
"0.7736632",
"0.76575... | 0.72823703 | 72 |
Return the start time of the track. | def SWox(YKHO):
return YKHO.start().time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSV8(YKHO):\n return YKHO.start_time",
"def jSV8(YKHO):\n return YKHO.start",
"def jSV8(YKHO):\n return YKHO.start_time",
"def R4lU(YKHO):\n return YKHO.start",
"def SWox(YKHO):\n return YKHO.time_list[0]",
"def jSV8(YKHO):\n return YKHO.__start_time",
"def jSV8(YKHO):\n return... | [
"0.83623236",
"0.83566004",
"0.8277882",
"0.82207817",
"0.81831837",
"0.8176208",
"0.8176208",
"0.81563485",
"0.8097604",
"0.8097604",
"0.80668944",
"0.80668944",
"0.80461603",
"0.80439204",
"0.8032405",
"0.80321616",
"0.80321616",
"0.80321616",
"0.80321616",
"0.80321616",
"0... | 0.79147816 | 54 |
Return the end time of te track. | def C7pn(YKHO):
return YKHO.end().time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wirM(YKHO):\n return YKHO.end",
"def NgWO(YKHO):\n return YKHO.endtime",
"def wirM(YKHO):\n return YKHO.end_time",
"def IElX(YKHO):\n return YKHO.end",
"def wirM(YKHO):\n return YKHO.end_time",
"def C7pn(YKHO) -> ITS7:\n return YKHO._endtime",
"def IElX(YKHO):\n if hasattr(YKHO... | [
"0.8456309",
"0.84525204",
"0.8445325",
"0.84336",
"0.8339857",
"0.8324909",
"0.8269436",
"0.82681394",
"0.82681394",
"0.82243145",
"0.82243145",
"0.82243145",
"0.82243145",
"0.82243145",
"0.82243145",
"0.82243145",
"0.82243145",
"0.8164629",
"0.8162259",
"0.8151475",
"0.8144... | 0.81474537 | 20 |
calculates the number of parameters | def jiVT(YKHO):
YKHO.n_params = int(YKHO.P * YKHO.rank) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gi2P(YKHO):\n return 0",
"def gi2P(YKHO):\n return 3",
"def bXZ1(YKHO):\n UHFx = 0\n for mWFP, xqoZ in YKHO.named_parameters():\n UHFx += xqoZ.numel()\n return UHFx",
"def oHc6(YKHO) -> int:\n ...",
"def M0zs(YKHO):\n return sum((XP5J.numel() for XP5J in YKHO.parameters()))"... | [
"0.85659575",
"0.8490719",
"0.84083724",
"0.83952063",
"0.8291394",
"0.8291394",
"0.82563984",
"0.82289314",
"0.82218295",
"0.82218295",
"0.819624",
"0.819624",
"0.8134597",
"0.8123616",
"0.7891567",
"0.7869852",
"0.786609",
"0.7839663",
"0.783897",
"0.783481",
"0.77815205",
... | 0.7593462 | 30 |
Get number of learnable parameters in model | def bXZ1(YKHO):
UHFx = 0
for mWFP, xqoZ in YKHO.named_parameters():
UHFx += xqoZ.numel()
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VgCS(C3ST):\n i5MP = sum((XP5J.numel() for XP5J in C3ST.parameters()))\n wbg2 = sum((XP5J.numel() for XP5J in C3ST.parameters() if XP5J.requires_grad))\n print('Parameter Count: all {:,d}; trainable {:,d}'.format(i5MP, wbg2))\n return (i5MP, wbg2)",
"def UqPz():\n C3ST = hxc2(num_classes=2)\n ... | [
"0.837906",
"0.819607",
"0.8195788",
"0.8189434",
"0.81352603",
"0.81087494",
"0.80822444",
"0.80789447",
"0.80735487",
"0.8068017",
"0.79656744",
"0.7940898",
"0.7934546",
"0.79172975",
"0.7888346",
"0.7875954",
"0.78654075",
"0.78543234",
"0.7818531",
"0.7812481",
"0.780931... | 0.6886549 | 100 |
Returns a list of all objective fitness values for this candidate. | def l9ba(YKHO):
return [Ty9i for Ty9i in YKHO._fitness_values] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkbQ(YKHO, ST5f):\n sDyI = []\n for rV9r in YKHO.objectives:\n F0Kn = ST5f.objective_specific(rV9r)\n sDyI.append(rV9r.fitness(F0Kn))\n return sDyI",
"def MxGZ(YKHO):\n xRqF = []\n RV1e = []\n for DM04 in YKHO.get_population():\n DjOX = DM04.get_fitness()\n xRqF.... | [
"0.737694",
"0.70563024",
"0.6933083",
"0.69251615",
"0.68010044",
"0.6778112",
"0.6758586",
"0.67416364",
"0.67357403",
"0.6723406",
"0.667939",
"0.66693455",
"0.6630499",
"0.6606106",
"0.6580049",
"0.6568835",
"0.65565515",
"0.6523668",
"0.6509017",
"0.64540815",
"0.6424559... | 0.7978178 | 0 |
returns true if this candidate dominates other candidate. (implements PARETO dominance). | def vIBh(YKHO, Elif):
_hZ2 = 1e-10
ac8g = True
for YRbF in range(0, len(YKHO._fitness_values)):
QKq3 = YKHO._fitness_values[YRbF]
L3Jw = Elif._fitness_values[YRbF]
if abs(QKq3 - L3Jw) < _hZ2:
continue
elif QKq3 > L3Jw:
return False
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vIBh(YKHO, Elif, YEnM=slice(None)):\n if YKHO.n_constraints == 0:\n return YKHO.old_dominates(Elif, obj=YEnM)\n Dyub = YKHO.feasible()\n EmyI = Elif.feasible()\n if Dyub and EmyI:\n return YKHO.old_dominates(Elif, obj=YEnM)\n elif Dyub and (not EmyI):\n return True\n elif... | [
"0.7377799",
"0.72269917",
"0.7146027",
"0.6940473",
"0.68516946",
"0.65855515",
"0.6547692",
"0.6544891",
"0.6528106",
"0.65020883",
"0.6414247",
"0.64020175",
"0.63934547",
"0.63934547",
"0.6386336",
"0.63660073",
"0.6310569",
"0.62648636",
"0.624988",
"0.62427133",
"0.6234... | 0.7162843 | 2 |
format all class attributes into a dict. Used for generating JSON output. | def _fYl(YKHO):
return {'id': YKHO._id, 'fitness_values': YKHO.get_fitness_values(), 'features': {yEmV.model.get_feature_name(id): wEf2 for id, wEf2 in YKHO.get_features().items()}} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wbCR(YKHO, Mjw9, qtQv, HGq1):\n if not isinstance(Mjw9, dict):\n raise ImportError('Invalid json : __class_attributes__ must be a dictionary for {} class'.format(HGq1))\n ZLSD = ''\n for mWFP, BWXx in Mjw9.iteritems():\n ZLSD += ' {} = {}\\n'.format(mWFP, BWXx)\n return ZLSD",
"d... | [
"0.7613178",
"0.7337337",
"0.72544116",
"0.71967393",
"0.71583563",
"0.7138612",
"0.7084495",
"0.7064038",
"0.7057084",
"0.7053951",
"0.7017079",
"0.6999538",
"0.69447243",
"0.69428384",
"0.69404674",
"0.6940283",
"0.6902078",
"0.68995863",
"0.68888843",
"0.68540037",
"0.6848... | 0.0 | -1 |
Create a 2D numpy array with an initial state of State.DEAD. Change state of cells in seed to State.ALIVE. Parameters; | def MpWO(YKHO, yokr: (1, 2, 3)=None):
del YKHO.board
YKHO.board = oyIN.full((gWCW.ROWS, gWCW.COLUMNS), wHLO.DEAD)
if yokr is None or len(yokr) is 0:
return
print(f'[gameoflife.Game.initialize_board_from_seed]: {yokr}')
for Mkmy, Z9rn in map(gWCW.convertIDtoRC, yokr):
YKHO.board[Mkmy,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ed9K() -> oyIN.ndarray:\n return oyIN.zeros(shape=(6, 7), dtype=CyzR)",
"def Ed9K() -> oyIN.ndarray:\n SqHK = oyIN.zeros([6, 7], dtype=CyzR(0))\n return SqHK",
"def FIMM(YKHO, yokr=None):\n YKHO.board = oyIN.full((gWCW.ROWS, gWCW.COLUMNS), wHLO.DEAD)\n YKHO.initialize_board_from_seed(yokr)",... | [
"0.7277665",
"0.72034514",
"0.6796107",
"0.66523266",
"0.6555107",
"0.6512574",
"0.64241743",
"0.641969",
"0.64026994",
"0.63750464",
"0.6339363",
"0.6339363",
"0.63175535",
"0.6300228",
"0.62785184",
"0.6223452",
"0.621678",
"0.62157834",
"0.6211659",
"0.61956203",
"0.615222... | 0.67979336 | 2 |
Return the number of live cells surrounding self.board[row, column] | def cpAM(YKHO, rdlD, iVRZ) -> int:
UHFx = 0
for YRbF in [-1, 0, 1]:
for r845 in [-1, 0, 1]:
if YRbF is 0 and r845 is 0:
pass
else:
try:
if YKHO.board[rdlD + YRbF, iVRZ + r845] is wHLO.ALIVE:
UHFx += 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hLyg(YKHO, rdlD, fvDH):\n p6S0, EHG8 = (rdlD - 1, fvDH - 1)\n SiRx = EHG8\n u54L = 3\n UHFx = 0\n for bGrB in range(u54L):\n for bGrB in range(u54L):\n try:\n if not (p6S0 == rdlD and EHG8 == fvDH):\n if YKHO[p6S0, EHG8] == 1:\n ... | [
"0.7816322",
"0.7597219",
"0.74268955",
"0.7407497",
"0.74044347",
"0.733637",
"0.7333299",
"0.72868454",
"0.7273537",
"0.7163517",
"0.71578",
"0.71236014",
"0.7122264",
"0.71009624",
"0.70863307",
"0.70761293",
"0.7049992",
"0.7026006",
"0.7024094",
"0.6998917",
"0.6952683",... | 0.7837334 | 0 |
Create a base class with a metaclass. | def rSS7(e5kH, *gitN):
class metaclass(e5kH):
def fwuD(Emd4, mWFP, ZTce, Csk6):
return e5kH(mWFP, gitN, Csk6)
return type.__new__(y4vQ, 'temporary_class', (), {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, ... | [
"0.82980454",
"0.82980454",
"0.82980454",
"0.82980454",
"0.82980454",
"0.82980454",
"0.82321227",
"0.82321227",
"0.82321227",
"0.82321227",
"0.8203042",
"0.80391204",
"0.80391204",
"0.80391204",
"0.8017039",
"0.8017039",
"0.78227603",
"0.77492",
"0.7551718",
"0.7547112",
"0.7... | 0.74461424 | 21 |
If string matches one or more from patterns | def wEjD(vIwR: str, b6H_) -> bool:
if not isinstance(vIwR, str):
return False
if len(b6H_) == 0:
return False
if len(b6H_) == 1:
return bool(b6H_[0].match(vIwR))
else:
return wEjD(vIwR, b6H_[1:]) or bool(b6H_[0].match(vIwR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kUBT(vIwR, b6H_):\n if b6H_ is None:\n return True\n else:\n return any((ZbWC.match(mXDZ, vIwR) for mXDZ in b6H_))",
"def H1Hr(b6H_, str):\n for njyT in b6H_:\n if njyT.search(str):\n return True\n return False",
"def H1Hr(Emd4, KCHu, b6H_):\n for XP5J in b6H_... | [
"0.82474333",
"0.8176838",
"0.76767975",
"0.76522076",
"0.7621443",
"0.74219126",
"0.7414823",
"0.736192",
"0.72515297",
"0.7225711",
"0.71786255",
"0.7175728",
"0.7175488",
"0.7147284",
"0.7092079",
"0.70345545",
"0.7016179",
"0.69874865",
"0.69498396",
"0.69425905",
"0.6913... | 0.74642956 | 5 |
Return np.nan if value is different and 1 if value is the same | def _E99(EcVT, LVAh):
epBp = (EcVT.to_numpy() == LVAh.to_numpy()).astype(float)
epBp[epBp == 0] = oyIN.nan
return epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nxS0(BWXx):\n if BWXx == BWXx:\n return False\n else:\n return True",
"def L6uT(BWXx):\n return BWXx != BWXx",
"def G9ii(UXsi, c163):\n return UXsi == c163",
"def rs7G(YKHO):\n return auLr(abs(YKHO.value))",
"def YRQk(jzdc, Fg_i):\n return oyIN.equal(jzdc, Fg_i, where=~o... | [
"0.6442599",
"0.64133203",
"0.63549364",
"0.60223866",
"0.5935664",
"0.5906287",
"0.59045994",
"0.58847886",
"0.58638984",
"0.57798606",
"0.57678664",
"0.57344675",
"0.5708793",
"0.5706105",
"0.5684221",
"0.56724787",
"0.56724787",
"0.56724787",
"0.56724787",
"0.56724787",
"0... | 0.5754175 | 11 |
True if ``dim`` is a distributed Dimension, False otherwise. | def qlNT(YKHO, tpio):
return any((tpio is Csk6 for Csk6 in YKHO.distributor.dimensions)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uVog(IZxK, Htse):\n ROpF = tuple(IZxK.loc.shape)\n return ROpF == Htse",
"def s_rM(S9Ti: Shaped) -> bool:\n return hasattr(S9Ti, 'ndim') and getattr(S9Ti, 'ndim') == 1",
"def xtNt(YKHO, Csk6):\n Csk6 = '[%s]' % Csk6.strip(' []')\n return len(YKHO.dimensionality) == 1 and YKHO.dimensionality[... | [
"0.81579626",
"0.6474741",
"0.6386263",
"0.63015693",
"0.6227786",
"0.62037456",
"0.61381763",
"0.60772294",
"0.60081565",
"0.60025185",
"0.59544677",
"0.59507865",
"0.5867749",
"0.5861242",
"0.58473426",
"0.58441293",
"0.58412594",
"0.58394307",
"0.5836582",
"0.58357984",
"0... | 0.86041373 | 0 |
A map of default argument values defined by this Grid. | def fF32(YKHO):
qIxc = KJYs()
for G1Hx, Ty9i in YKHO.dimension_map.items():
qIxc.update(G1Hx._arg_defaults(_min=0, size=Ty9i.loc))
if wOGa['mpi']:
DjF0 = YKHO.distributor
qIxc[DjF0._obj_comm.name] = DjF0._obj_comm.value
qIxc[DjF0._obj_neighborhood.name] = DjF0._obj_neighborho... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2S9(Emd4):\n return dict(rename_dict={}, show_pins=False, ndum_cell=None, power_width_ntr=None, g_space=0, ds_space=0)",
"def R2S9(Emd4):\n return dict(rename_dict={}, show_pins=False, debug=True, g_space=0, ds_space=0, power_width_ntr=None)",
"def R2S9(Emd4):\n return dict(rename_dict={}, show_p... | [
"0.7892851",
"0.7799741",
"0.7799741",
"0.77174884",
"0.7716843",
"0.7657488",
"0.73614806",
"0.73358744",
"0.72669446",
"0.7213104",
"0.72129446",
"0.7171475",
"0.71522546",
"0.7047284",
"0.6980126",
"0.6970289",
"0.6966977",
"0.69464046",
"0.69192976",
"0.6916929",
"0.69048... | 0.7998158 | 0 |
Get a list of all the labels associated with this issue. | def Te1x(F3jJ, rfQU):
return rfQU['labels'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n Crrw.append(UXqs.name)\n return Crrw",
"def Te1x(YKHO):\n Ylbp = []\n Ylbp.extend(YKHO._labels)\n if YKHO.id:\n Ylbp.extend(YKHO._control._form._id_to_labels.get(YKHO.id, ()))\n return Ylbp",
"def Umo8(YKHO):\n... | [
"0.85037905",
"0.8196814",
"0.8174246",
"0.81702083",
"0.8164121",
"0.8122908",
"0.8118543",
"0.8110522",
"0.81099474",
"0.8062826",
"0.80166584",
"0.80022764",
"0.7972201",
"0.7972201",
"0.7929608",
"0.79250425",
"0.7887761",
"0.7880586",
"0.7880586",
"0.786581",
"0.78393257... | 0.7792198 | 28 |
Pad a list to given size by appending the object repeatedly as necessary. Cuts off the end of the list if it is longer than the supplied size. >>> pad_list(range(4), 6, 'x') [0, 1, 2, 3, 'x', 'x'] >>> pad_list(range(4), 2, 'x') [0, 1] >>> pad_list(range(4), 4, 'x') [0, 1, 2, 3] | def RnIX(vC9B, zNig, YEnM):
return list(WhY1.islice(WhY1.chain(vC9B, WhY1.repeat(YEnM)), zNig)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ofFo(HOpV, _30P, _C3A=False, KHPh=None):\n qmiB = _30P - len(HOpV)\n if qmiB <= 0:\n return HOpV\n if _C3A:\n for YRbF in range(qmiB):\n HOpV.insert(0, KHPh)\n else:\n for YRbF in range(qmiB):\n HOpV.append(KHPh)\n return HOpV",
"def RnIX(DBRU, KHPh, ... | [
"0.8106168",
"0.75603634",
"0.7524928",
"0.7344459",
"0.7291429",
"0.721701",
"0.7153487",
"0.7129166",
"0.70041317",
"0.69215095",
"0.6857505",
"0.6796693",
"0.67557746",
"0.67428297",
"0.674152",
"0.669948",
"0.66566074",
"0.6611155",
"0.6598484",
"0.65609425",
"0.6553221",... | 0.78914064 | 1 |
Parse a TFRecord representing a single MNIST data point into an input feature tensor and a label tensor. | def mXdQ(lGjS: tf.Tensor) -> AzJI[cuzp[str, ZylS.Tensor], ZylS.Tensor]:
m6Me = ZylS.io.parse_example(serialized=lGjS, features={'image_raw': ZylS.io.FixedLenFeature([], ZylS.string)})
LNo8 = ZylS.io.decode_raw(m6Me['image_raw'], ZylS.float32)
OX2H = ZylS.io.parse_example(serialized=lGjS, features={'label': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ps5P(YKHO, kmL7):\n bySB = ZylS.parse_single_example(kmL7, features={'data': ZylS.FixedLenFeature([], ZylS.string), 'dataShape': ZylS.FixedLenFeature([YKHO.__tfrecord_shape_lens['data']], ZylS.int64), 'label': ZylS.FixedLenFeature([], ZylS.string), 'labelShape': ZylS.FixedLenFeature([YKHO.__tfrecord_shape_l... | [
"0.76054657",
"0.73955405",
"0.73278433",
"0.7256131",
"0.71599066",
"0.71215934",
"0.7083901",
"0.6915653",
"0.6889789",
"0.6855293",
"0.68117535",
"0.67690545",
"0.67654806",
"0.6761623",
"0.67579937",
"0.6754049",
"0.6754049",
"0.6754049",
"0.6742619",
"0.6742513",
"0.6713... | 0.6820179 | 10 |
The Dapr Application Identifier. | def B7c0(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'app_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def llgT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'application_identifier')",
"de... | [
"0.8105231",
"0.8105231",
"0.8105231",
"0.8056592",
"0.79453486",
"0.7833002",
"0.77715254",
"0.77615184",
"0.7723478",
"0.76832443",
"0.76491874",
"0.76370406",
"0.7618784",
"0.76002806",
"0.7564629",
"0.75602245",
"0.75461245",
"0.75461245",
"0.75302094",
"0.74516356",
"0.7... | 0.7541623 | 18 |
The port which the application is listening on. This is the same as the `ingress` port. | def dT4P(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'app_port') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H56_(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'ingress_port')",
"def H56_(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'ingress_port')",
"def bIwZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'port')",
"def bIwZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'port')",
"def bIwZ(YKHO) -> int:\n return ... | [
"0.7921978",
"0.7921978",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7843045",
"0.7832622",
"0.7784814",
"0.77607375",
"0.77368736",
... | 0.75882834 | 42 |
The type of managed identity to assign. Possible values are `SystemAssigned`, `UserAssigned`, and `SystemAssigned, UserAssigned` (to enable both). | def type(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO) -> h8nf[qe4Y.Input['ManagedIdentityType']]:\n return qe4Y.get(YKHO, 'type')",
"def MUAt(YKHO) -> str:\n return qe4Y.get(YKHO, 'identity_management_type')",
"def H_dn(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'identity_type')",
"def type(YKHO) -> qe4Y.Input[uLKX[str, 'ManagedServiceI... | [
"0.7069707",
"0.6923356",
"0.6621699",
"0.6481782",
"0.6481782",
"0.6468101",
"0.6181125",
"0.61032104",
"0.61032104",
"0.61032104",
"0.61032104",
"0.6042094",
"0.5978226",
"0.597104",
"0.5955001",
"0.5946896",
"0.590465",
"0.58995414",
"0.58587956",
"0.5852496",
"0.58329403"... | 0.0 | -1 |
The FQDN of the ingress. | def lLIo(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'fqdn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"... | [
"0.70321107",
"0.70321107",
"0.70321107",
"0.70321107",
"0.70321107",
"0.70321107",
"0.70321107",
"0.6906006",
"0.6906006",
"0.68460256",
"0.6783938",
"0.6783938",
"0.6735194",
"0.6735194",
"0.6735194",
"0.6735194",
"0.6727425",
"0.6688665",
"0.6685069",
"0.6637739",
"0.65870... | 0.65697026 | 27 |
The ID of the Container App Environment Certificate. | def MSpN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'certificate_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MSpN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_id')",
"def MSpN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_id')",
"def MSpN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_id')",
"def MSpN(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, '... | [
"0.75974417",
"0.75974417",
"0.75974417",
"0.7464095",
"0.7178354",
"0.7178354",
"0.69134855",
"0.66940314",
"0.6676614",
"0.6543543",
"0.6519969",
"0.65122324",
"0.65122324",
"0.65122324",
"0.65122324",
"0.64204913",
"0.64201033",
"0.6407753",
"0.6407753",
"0.6407753",
"0.63... | 0.7381333 | 4 |
The label to apply to the revision as a name prefix for routing traffic. | def UXqs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'label') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXqs(YKHO):\n return YKHO.name + ':'",
"def M9Mk(YKHO, ZI14):\n return '.L%s' % ZI14",
"def M9Mk(YKHO) -> str:\n return YKHO._label_name",
"def UXqs(YKHO) -> str:\n return YKHO._str_representation_for('name')",
"def uK6X(YKHO, UXqs):\n pass",
"def MXRn(YKHO):\n YEnM = YKHO.object\n ... | [
"0.73603773",
"0.71890754",
"0.71164984",
"0.7104211",
"0.70350873",
"0.70216286",
"0.6947705",
"0.6946159",
"0.6916275",
"0.6905331",
"0.6889697",
"0.6884784",
"0.6881574",
"0.6881574",
"0.6881574",
"0.6881574",
"0.68711203",
"0.68711203",
"0.68711203",
"0.68711203",
"0.6871... | 0.0 | -1 |
The name of the Secret Reference containing the password value for this user on the Container Registry, `username` must also be supplied. | def zrUR(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'password_secret_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AuKh(YKHO, NtEF):\n return aTOD.get_password(YKHO.keyring, NtEF)",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe... | [
"0.69054866",
"0.6730729",
"0.6730729",
"0.6730729",
"0.6730729",
"0.6610851",
"0.66079295",
"0.65054864",
"0.64060116",
"0.6389368",
"0.6372112",
"0.6372112",
"0.6372112",
"0.6372112",
"0.62860924",
"0.62327635",
"0.62327635",
"0.6207152",
"0.6207152",
"0.6199199",
"0.619919... | 0.64671844 | 8 |
The value for this secret. | def BWXx(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DXni(YKHO):\n return YKHO._secret",
"def DXni(YKHO):\n return YKHO._secret",
"def DXni(YKHO) -> str:\n return YKHO._secret",
"def DXni(YKHO) -> str:\n return YKHO._secret",
"def BWXx(YKHO):\n return YKHO['value']",
"def DXni(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret')",
"def D... | [
"0.7457961",
"0.7457961",
"0.7453927",
"0.7453927",
"0.7443066",
"0.74260837",
"0.74260837",
"0.74260837",
"0.74260837",
"0.74260837",
"0.74260837",
"0.74260837",
"0.74260837",
"0.742361",
"0.742361",
"0.742361",
"0.742361",
"0.742361",
"0.742361",
"0.742361",
"0.742361",
"... | 0.0 | -1 |
The maximum number of replicas for this container. | def jxE4(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'max_replicas') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jxE4(YKHO) -> int:\n return YKHO.__max_replicas",
"def AUIF(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_num_replicas')",
"def vYcL(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_instances')",
"def SUel(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'number_of_replicas')",
"def X4Tl(YKHO... | [
"0.88826907",
"0.8864141",
"0.7694208",
"0.76694155",
"0.7651577",
"0.7651577",
"0.7651577",
"0.7651577",
"0.7651577",
"0.7651577",
"0.76440114",
"0.7620025",
"0.75866914",
"0.7558903",
"0.7501555",
"0.7501555",
"0.7501555",
"0.7501555",
"0.7501555",
"0.7501555",
"0.7501555",... | 0.8428436 | 2 |
The minimum number of replicas for this container. | def A5Kw(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'min_replicas') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SutP(YKHO) -> int:\n return qe4Y.get(YKHO, 'min_num_replicas')",
"def A5Kw(YKHO) -> h8nf[int]:\n return YKHO.__min_replicas",
"def SUel(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'number_of_replicas')",
"def AUIF(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_num_replicas')",
"def ... | [
"0.87623143",
"0.8330749",
"0.77126634",
"0.7581557",
"0.7581056",
"0.75208896",
"0.75208896",
"0.75208896",
"0.75208896",
"0.75208896",
"0.75208896",
"0.75208896",
"0.7513697",
"0.7506412",
"0.74983567",
"0.74983567",
"0.74983567",
"0.74983567",
"0.74983567",
"0.74983567",
"... | 0.8107577 | 2 |
The name of the environment variable for the container. | def mWFP(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jvnp(YKHO):\n return f'AIRFLOW_VAR_{YKHO.name.upper()}'",
"def i2I_(YKHO) -> str:\n return YKHO._env_name",
"def i2I_(YKHO):\n return YKHO._env_name",
"def IIb3():\n mWFP = Hy7s.environ.get('CONTAINER_NAME', '')\n if not mWFP:\n raise kfhB('Container name was not defined')\n retu... | [
"0.8295278",
"0.8026705",
"0.7923963",
"0.7651193",
"0.75781345",
"0.7538334",
"0.75306064",
"0.7470835",
"0.7398266",
"0.7267588",
"0.72272533",
"0.7204188",
"0.71967524",
"0.7111925",
"0.70807976",
"0.70477825",
"0.7023207",
"0.69588536",
"0.68879324",
"0.6879966",
"0.68799... | 0.0 | -1 |
The name of the secret that contains the value for this environment variable. | def qnCX(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'secret_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qnCX(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret_name')",
"def qnCX(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'secret_name')",
"def qnCX(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('secretName'))",
"def qnCX(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('... | [
"0.84907925",
"0.8116857",
"0.81040287",
"0.81040287",
"0.7983688",
"0.77496237",
"0.7703348",
"0.7682086",
"0.7613365",
"0.7613365",
"0.761322",
"0.75164205",
"0.75164205",
"0.75164205",
"0.75164205",
"0.75164205",
"0.75164205",
"0.75164205",
"0.75164205",
"0.7433894",
"0.74... | 0.7912388 | 6 |
The value for this environment variable. | def BWXx(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sadl(YKHO, y0cW='', ZI14=''):\n mWFP = [YKHO.name]\n if y0cW:\n mWFP.insert(0, y0cW)\n if ZI14:\n mWFP.append(ZI14)\n mWFP = '_'.join(mWFP).upper()\n if not IPme.utils.env_has(mWFP):\n return\n try:\n return IPme.utils.env_get(mWFP, type=YKHO.type, raise_exception=... | [
"0.6865861",
"0.6819682",
"0.6817452",
"0.6794885",
"0.678045",
"0.67457724",
"0.67307025",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0.67146116",
"0... | 0.0 | -1 |
The name of the Metadata configuration item. | def mWFP(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> str:\n return YKHO._metadata.name",
"def ygrk(YKHO):\n return YKHO._DefaultName + '_metadata'",
"def mWFP(YKHO):\n return YKHO._config['name']",
"def mWFP(YKHO):\n return YKHO._config.name",
"def mWFP(YKHO):\n return YKHO._config.name",
"def mWFP(YKHO):\n return YKHO._... | [
"0.7736892",
"0.7579846",
"0.74505395",
"0.7294693",
"0.7294693",
"0.7294693",
"0.7288571",
"0.71901214",
"0.71901214",
"0.7188601",
"0.71862173",
"0.7183426",
"0.7149593",
"0.71367365",
"0.71367365",
"0.71367365",
"0.71294975",
"0.7115656",
"0.7099444",
"0.7076392",
"0.70722... | 0.0 | -1 |
The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item. | def qnCX(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'secret_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qnCX(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret_name')",
"def qnCX(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('secretName'))",
"def qnCX(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('secretName'))",
"def tmJ8(YKHO) -> str:\n return qe4Y.get(YKHO, 'aws_secret_n... | [
"0.7914201",
"0.7903023",
"0.7903023",
"0.7637173",
"0.757609",
"0.7561803",
"0.7480635",
"0.7480635",
"0.7166502",
"0.70620376",
"0.6910254",
"0.68863654",
"0.687022",
"0.687022",
"0.687022",
"0.687022",
"0.687022",
"0.687022",
"0.687022",
"0.687022",
"0.6862474",
"0.68544... | 0.74578816 | 8 |
The value for this metadata configuration item. | def BWXx(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO['value']",
"def BWXx(YKHO):\n return YKHO.data.get('value')",
"def BWXx(YKHO) -> str:\n return YKHO._values.get('value')",
"def BWXx(YKHO) -> str:\n return YKHO.get_attribute('value')",
"def BWXx(YKHO):\n return YKHO._get_field('value')",
"def BWXx(YKHO):\n ... | [
"0.76204705",
"0.7572838",
"0.7559983",
"0.75182647",
"0.74057394",
"0.7369042",
"0.73660064",
"0.73485965",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283",
"0.7345283"... | 0.0 | -1 |
The value for this secret. | def BWXx(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DXni(YKHO):\n return YKHO._secret",
"def DXni(YKHO):\n return YKHO._secret",
"def DXni(YKHO) -> str:\n return YKHO._secret",
"def DXni(YKHO) -> str:\n return YKHO._secret",
"def BWXx(YKHO):\n return YKHO['value']",
"def DXni(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret')",
"def D... | [
"0.74580854",
"0.74580854",
"0.74540323",
"0.74540323",
"0.74432915",
"0.74257755",
"0.74257755",
"0.74257755",
"0.74257755",
"0.74257755",
"0.74257755",
"0.74257755",
"0.74257755",
"0.74240327",
"0.74240327",
"0.74240327",
"0.74240327",
"0.74240327",
"0.74240327",
"0.74240327"... | 0.0 | -1 |
Convert a rotation about the z axis to a quaternion. This is a helper for 2D simulations, taking the rotation of a particle about the z axis and converting it to a quaternion. The input angle `theta` is assumed to be in radians. | def _UVk(q7In: np.ndarray) -> oyIN.ndarray:
return xXv4.from_euler(q7In, 0, 0).astype(oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MRtk(q7In):\n lY0q = oyIN.cos(q7In)\n aevO = oyIN.sin(q7In)\n return oyIN.array([[lY0q, -aevO, 0.0], [aevO, lY0q, 0.0], [0.0, 0.0, 1.0]], dtype=oyIN.float64)",
"def J_ZY(q7In):\n wU9w = oyIN.deg2rad(q7In)\n fOhA = oyIN.sin(wU9w)\n Dmt6 = oyIN.cos(wU9w)\n bULF = oyIN.array([[Dmt6, -fOhA, ... | [
"0.74617004",
"0.7351942",
"0.7315098",
"0.7213226",
"0.71950364",
"0.6995629",
"0.69829863",
"0.69829863",
"0.69829863",
"0.69829863",
"0.6954314",
"0.69400465",
"0.6900414",
"0.6857093",
"0.6841034",
"0.6841034",
"0.677253",
"0.6691578",
"0.6658838",
"0.66306293",
"0.661902... | 0.7887945 | 0 |
Convert a rotation about the z axis to a quaternion. This is a helper for 2D simulations, taking the rotation of a particle about the z axis and converting it to a quaternion. The input angle `theta` is assumed to be in radians. | def M_1D(slpS: np.ndarray) -> oyIN.ndarray:
return xXv4.to_euler(slpS)[:, 0].astype(oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UVk(q7In: np.ndarray) -> oyIN.ndarray:\n return xXv4.from_euler(q7In, 0, 0).astype(oyIN.float32)",
"def MRtk(q7In):\n lY0q = oyIN.cos(q7In)\n aevO = oyIN.sin(q7In)\n return oyIN.array([[lY0q, -aevO, 0.0], [aevO, lY0q, 0.0], [0.0, 0.0, 1.0]], dtype=oyIN.float64)",
"def J_ZY(q7In):\n wU9w = o... | [
"0.78876156",
"0.7460944",
"0.73517454",
"0.73149806",
"0.7214313",
"0.71953523",
"0.69950765",
"0.6981663",
"0.6981663",
"0.6981663",
"0.6981663",
"0.69541997",
"0.69388765",
"0.6899336",
"0.68560904",
"0.68395996",
"0.68395996",
"0.6771921",
"0.669216",
"0.66595674",
"0.662... | 0.6296099 | 37 |
Initialize a ``Request`` instance. Parameters are passed to the underlying ``webob.Request``. This method also adds the ``micropath.base_path`` key to the WSGI environment (use the ``base_path`` attribute to access it). | def FIMM(YKHO, *qIxc, **B2fa):
super(VNUm, YKHO).__init__(*qIxc, **B2fa)
YKHO.environ['micropath.base_path'] = YKHO.script_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E2Sy(YKHO, QePW, *qIxc, **B2fa):\n nNdW = YKHO.get_parser_context(QePW)\n return VNUm(QePW, parsers=YKHO.get_parsers(), authenticators=YKHO.get_authenticators(), negotiator=YKHO.get_content_negotiator(), parser_context=nNdW)",
"def E2Sy(YKHO, QePW, *qIxc, **B2fa):\n nNdW = YKHO.get_parser_context(Qe... | [
"0.705691",
"0.7050077",
"0.69064146",
"0.66677",
"0.64876455",
"0.63720024",
"0.6348936",
"0.6270968",
"0.60358346",
"0.5970297",
"0.5966699",
"0.5953065",
"0.5931973",
"0.5884682",
"0.5882369",
"0.5858374",
"0.58497965",
"0.5736623",
"0.5727705",
"0.5724563",
"0.56889015",
... | 0.76279515 | 0 |
Retrieve the dependency injector from the WSGI environment. | def n6uJ(YKHO):
if 'micropath.injector' not in YKHO.environ:
YKHO.environ['micropath.injector'] = n6uJ.Injector()
return YKHO.environ['micropath.injector'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n5Uw():\n OAjX.FlaskInjector(app=P4t4, modules=[lWLw])",
"def wJxA():\n global _jinja_env\n if w1bt is None:\n w1bt = HmIb()\n return w1bt",
"def rTEB():\n if not zAej.__instance:\n zAej.__instance = zAej()\n return zAej.__instance",
"def SmSw(YKHO):\n return getattr(YK... | [
"0.66588455",
"0.5956181",
"0.5921807",
"0.58718795",
"0.5857797",
"0.58184355",
"0.5783414",
"0.567451",
"0.5658451",
"0.5650495",
"0.5650408",
"0.5639196",
"0.5639196",
"0.56384325",
"0.56311655",
"0.55968887",
"0.55549556",
"0.554526",
"0.5523567",
"0.5513308",
"0.54850787... | 0.7698993 | 0 |
Creates new instance of style error. | def FIMM(YKHO, Q6kx: AST, l5Ny: str=None) -> None:
YKHO.node = Q6kx
if l5Ny is None:
YKHO._text = Q6kx.__class__.__name__.lower()
else:
YKHO._text = l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OdgU(YKHO):\n return YKHO.exception_type(YKHO.message)",
"def FIMM(YKHO, l5Ny):\n super(KakM, YKHO).__init__(l5Ny + '\\n' + ''.join(V2zj()))",
"def XTaQ(Emd4, wEf2):\n return Emd4('properties_error', wEf2)",
"def XTaQ(Emd4, wEf2):\n return Emd4('properties_error', wEf2)",
"def XTaQ(Emd4, wE... | [
"0.63183",
"0.6153869",
"0.61298877",
"0.61298877",
"0.61298877",
"0.61163104",
"0.60768926",
"0.60464865",
"0.60370743",
"0.6017281",
"0.6009102",
"0.6008696",
"0.60017526",
"0.5982158",
"0.5964717",
"0.5964717",
"0.5964717",
"0.594429",
"0.59093064",
"0.58578247",
"0.584329... | 0.0 | -1 |
Returns only the digits from a given string. | def VLuJ(hGN5):
return int(''.join((U6D_ for U6D_ in hGN5 if U6D_.isdigit()))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ywua(KCHu):\n Aofo = []\n for Z9rn in KCHu:\n if Z9rn.isdigit():\n Aofo.append(Z9rn)\n return Aofo",
"def wHxI(vIwR):\n return [int(KCHu) for KCHu in vIwR.split() if KCHu.isdigit()]",
"def mQGg(vIwR):\n return ZbWC.sub('\\\\D', '', vIwR)",
"def VAwO(vIwR, tW6W=False):\n ... | [
"0.81501776",
"0.795372",
"0.78364265",
"0.7700038",
"0.74205977",
"0.74186915",
"0.7397107",
"0.73283464",
"0.722992",
"0.7163551",
"0.7133873",
"0.71207845",
"0.70955426",
"0.7059752",
"0.70551056",
"0.7042567",
"0.7033174",
"0.6896853",
"0.68542606",
"0.6847242",
"0.683643... | 0.63562816 | 41 |
Return the next IP address of the given one. | def KLfe(D8Ke, YPaw=1):
sB1G = '!L'
FGW3 = BlNT.unpack(sB1G, GGmw.inet_aton(D8Ke))[0]
FGW3 += YPaw
return GGmw.inet_ntoa(BlNT.pack(sB1G, FGW3)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPHn(YKHO, next):\n for WKvO, LVAh in enumerate(YKHO.IPs):\n if LVAh == next:\n return YKHO.IPs[(WKvO + 1) % len(YKHO.IPs)]",
"def V3D1(YKHO, tO9_, qIxc):\n return Bhrn.clirun('nextip', str(qIxc))[1]",
"def sqyQ(YKHO):\n if YKHO.network.ip_type != '4':\n return None\n y... | [
"0.7867439",
"0.7533274",
"0.7132837",
"0.7132837",
"0.6813163",
"0.6802574",
"0.6792809",
"0.65302175",
"0.64586395",
"0.644756",
"0.63575834",
"0.63498646",
"0.6294992",
"0.6252408",
"0.62373716",
"0.61521596",
"0.61084783",
"0.6080818",
"0.60711807",
"0.59643275",
"0.59624... | 0.72086245 | 2 |
A memoization decorator, whose purpose is to cache calls. | def qroa(JfyU, QTBn={}, UAju={}):
@jKi7.wraps(JfyU)
def h3Xc(*qIxc, **B2fa):
if JfyU in UAju:
jKi7.reraise(*UAju[JfyU])
try:
return QTBn[JfyU]
except KeyError:
try:
QTBn[JfyU] = Aofo = JfyU(*qIxc, **B2fa)
return Aofo
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jEIa(JfyU):\n global _all_caches\n wyyA = {}\n zFg4.append(wyyA)\n\n @xBlr.wraps(JfyU)\n def r9PI(*qIxc):\n if not isinstance(qIxc, g760.abc.Hashable):\n return JfyU(*qIxc)\n if qIxc not in wyyA:\n wyyA[qIxc] = JfyU(*qIxc)\n return wyyA[qIxc]\n retur... | [
"0.83352304",
"0.8297296",
"0.82929856",
"0.82803667",
"0.8257668",
"0.82509214",
"0.82430464",
"0.8240123",
"0.82092845",
"0.81942844",
"0.8192075",
"0.81907964",
"0.81634223",
"0.8148724",
"0.8147106",
"0.8142494",
"0.8139876",
"0.81394315",
"0.81239724",
"0.81239724",
"0.8... | 0.0 | -1 |
Obtain a new logger object. The `name` parameter will be the name of the logger and `format_string` will be the format it will use for logging. `logging_file` is a file where the messages will be written. | def fZx2(mWFP='argus', sI3h=iSwn, lwsi=LMeV):
bo34 = G9jH.getLogger(mWFP)
uaPq = G9jH.Formatter(sI3h)
if not bo34.handlers:
if lwsi:
L8wK = G9jH.FileHandler(lwsi, delay=True)
L8wK.setFormatter(uaPq)
bo34.addHandler(L8wK)
bo34.setLevel(G9jH.DEBUG)
return bo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZx2(mWFP, PFAa='%(asctime)s [%(pathname)s:%(lineno)s - %(levelname)s ] %(message)s', x8us='%Y-%m-%d %H:%M:%S', nUeQ=False):\n bo34 = G9jH.getLogger(mWFP)\n bo34.setLevel(G9jH.INFO)\n DCgT = G9jH.StreamHandler() if not nUeQ else G9jH.FileHandler(mWFP)\n DCgT.setLevel(G9jH.INFO)\n uaPq = G9jH.For... | [
"0.8057677",
"0.798751",
"0.737433",
"0.7336968",
"0.7230931",
"0.7169562",
"0.71533823",
"0.7139481",
"0.70866305",
"0.70697325",
"0.7063244",
"0.7049704",
"0.70457846",
"0.70152825",
"0.6998281",
"0.6998281",
"0.6998281",
"0.6998281",
"0.6997044",
"0.6994956",
"0.6994956",
... | 0.81352705 | 0 |
Skip the method decorated if we are using the `os_type`. | def FIMM(YKHO, jcC_, lo9Y=''):
YKHO._target_os_list = jcC_
YKHO._reason = lo9Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, m2Zb):\n\n @jKi7.wraps(m2Zb)\n def h3Xc(*qIxc, **B2fa):\n try:\n iMgk = qIxc[0]\n except IndexError:\n raise Bx6I.ArgusInvalidDecoratorError('Incompatible use of decorator %s on %s', 'skip_on_os', m2Zb.__name__)\n try:\n GTzZ = iMgk.get_os_... | [
"0.6869616",
"0.5707173",
"0.5537799",
"0.5452349",
"0.5445666",
"0.5381258",
"0.5357569",
"0.5322997",
"0.52876484",
"0.52853924",
"0.5274514",
"0.5217826",
"0.51682127",
"0.51664734",
"0.51450497",
"0.51225203",
"0.51118994",
"0.51098585",
"0.5091952",
"0.5065238",
"0.50577... | 0.0 | -1 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
sve5 = jQ3Z['month'].mode()[0]
print('Most Common Month:', sve5)
jQ3Z['Start Time'] = rLdf.to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.80004",
"0.79217696",
"0.78921604",
"0.78623635",
"0.7859447",
"0.7840089",
"0.7800651",
"0.7785077",
"0.77359724",
"0.7723725",
"0.7714387",
"0.7708706",
"0.77048045",
"0.77022535",
"0.7690253",
"0.7686504",
"0.76810664",
"0.76796",
"0.76725346",
"0.76620656",
"0.766119",... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
_8rG = jQ3Z['Start Station'].mode()[0]
print('Most popular start station:', _8rG)
oFx8 = jQ3Z['End Station'].mode()[0]
print('Most popular end station:', oFx8)
jQ3Z['route'] = jQ3Z['Start Statio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.76654726",
"0.76264316",
"0.76100993",
"0.75849444",
"0.7576263",
"0.75670516",
"0.7557652",
"0.75378203",
"0.7529607",
"0.750169",
"0.7499543",
"0.74961287",
"0.748713",
"0.74839073",
"0.747546",
"0.7473013",
"0.74364847",
"0.74328995",
"0.7428165",
"0.74270153",
"0.74163... | 0.74376714 | 16 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
Xu4d = int(jQ3Z['Trip Duration'].sum())
if Xu4d <= 60:
print('The overall trip duration was: {} seconds.'.format(Xu4d))
elif Xu4d <= 3600:
O66n = Xu4d // 60
print('The overall trip duration was appro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
get special ids out of a file pids.txt | def tS16():
Ux0P = 'D:\\devel\\Testdaten61\\work\\dispolevel\\pids.txt'
Fg9H = set()
for zFiD in open(Ux0P):
Ii1o = zFiD.strip()
if Ii1o:
Fg9H.add(Ii1o)
return Fg9H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SOnW(lk7w):\n RiBP = list()\n return RiBP",
"def R6pO(JmmZ):\n with open(JmmZ) as eHNT:\n A07C = eHNT.read().replace('\"', '').splitlines()\n return A07C[1:]",
"def HPT0(YKHO):\n for zFiD in open(YKHO.filepath, 'r'):\n for id in ZbWC.split('[^\\\\w:\\\\.-]', zFiD):\n ... | [
"0.7293389",
"0.7087975",
"0.70596933",
"0.687566",
"0.66259444",
"0.65958154",
"0.65458006",
"0.6531995",
"0.64739984",
"0.6454961",
"0.63580763",
"0.6312949",
"0.62932473",
"0.6279488",
"0.6245147",
"0.6233126",
"0.6211416",
"0.62111574",
"0.62017727",
"0.61944294",
"0.6178... | 0.7726716 | 0 |
Update an existing instance of a model if found, or create new otherwise | def kjgT(ouvA, C3ST, hkxX=None, **B2fa):
KAOR = ouvA.query(C3ST).filter_by(**B2fa).first()
if KAOR:
ouvA.query(C3ST).filter_by(**B2fa).update(hkxX)
return (KAOR, False)
else:
NArs = dict(((G1Hx, Ty9i) for G1Hx, Ty9i in B2fa.items() if not isinstance(Ty9i, swcc)))
NArs.update(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, C3ST: CreationType) -> PC_4:\n bD7m = YKHO._get_path(C3ST.uid)\n sPBL = YKHO.session.put_resource(bD7m, C3ST.dump())\n nPrm = sPBL[YKHO._individual_key] if YKHO._individual_key else sPBL\n YKHO._check_experimental(nPrm)\n return YKHO.build(nPrm)",
"def QdZT(YKHO, C3ST: _abc.Hashable... | [
"0.7281294",
"0.7158171",
"0.7144077",
"0.70883673",
"0.7072577",
"0.70397127",
"0.6990643",
"0.6931447",
"0.6926484",
"0.6918384",
"0.68536335",
"0.68440765",
"0.6784306",
"0.67489195",
"0.67377883",
"0.6729673",
"0.6667789",
"0.6650765",
"0.6634712",
"0.6588739",
"0.65843",... | 0.6720334 | 16 |
Setup the default headers. In this case they are the minimum required CORS related headers. | def a1AC(YKHO):
YKHO.set_header('Access-Control-Allow-Origin', '*')
YKHO.set_header('Access-Control-Allow-Headers', 'x-requested-with')
YKHO.set_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS')
YKHO.set_header('Content-Type', 'application/octet-stream') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a1AC(YKHO):\n YKHO.set_header('Access-Control-Allow-Credentials', 'true')\n YKHO.set_header('Access-Control-Allow-Origin', '*')",
"def a1AC(YKHO):\n YKHO.set_header('Access-Control-Allow-Origin', '*')\n YKHO.set_header('Access-Control-Allow-Headers', 'x-requested-with')\n YKHO.set_header('Acce... | [
"0.8331793",
"0.815916",
"0.81587106",
"0.7825978",
"0.77485925",
"0.7741406",
"0.76133925",
"0.75978696",
"0.75618887",
"0.74429995",
"0.74021006",
"0.7347429",
"0.7291583",
"0.7259865",
"0.7252997",
"0.72447634",
"0.7221983",
"0.70654494",
"0.70582503",
"0.6982972",
"0.6974... | 0.7951433 | 3 |
The byte size of the frame's raw data. | def zNig(YKHO):
return YKHO._size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brh6(YKHO):\n return YKHO._size",
"def bmRF(YKHO):\n return YKHO.size + YKHO.payloadsize",
"def E0U9(YKHO):\n return YKHO._frame_length",
"def E0U9(YKHO):\n return YKHO._frame_length",
"def brh6(YKHO):\n return YKHO.frame_size_",
"def S2bT(YKHO, f4IJ):\n return YKHO.frame_index[f4IJ... | [
"0.8165967",
"0.8164937",
"0.8074815",
"0.8074815",
"0.80677015",
"0.80455416",
"0.7969737",
"0.7790061",
"0.7606195",
"0.7606056",
"0.75924164",
"0.7589439",
"0.7588768",
"0.7565124",
"0.7554035",
"0.7544692",
"0.7544692",
"0.7538346",
"0.7498405",
"0.74790186",
"0.74691206"... | 0.0 | -1 |
Serve the index file. | def NMoC(YKHO):
with RkCj.path(XmQH, 'index.html') as RcGC:
YKHO.render(str(RcGC)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return j0kY('static/index.html')",
"def NMoC(YKHO):\n S0MI.info('[IndexHandler] HTTP connection opened')\n YKHO.render('index.html')\n S0MI.info('[IndexHandler] index.html served')",
"async def index() -> oGir:\n return await j0kY(olSb / 'index.html')",
"def d6pt():\n return P... | [
"0.7764314",
"0.77331996",
"0.7621189",
"0.76113683",
"0.7589841",
"0.7511032",
"0.7505716",
"0.7400525",
"0.73168343",
"0.7313542",
"0.7275934",
"0.7229656",
"0.72118384",
"0.71722513",
"0.71557796",
"0.7150356",
"0.7144548",
"0.7144548",
"0.71271545",
"0.7120048",
"0.710590... | 0.0 | -1 |
Returns derivative of activation function | def PwbB(WKvO):
LVAh = YDYE(WKvO) * (1.0 - YDYE(WKvO))
return LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZgV(YKHO):\n assert YKHO.output.size > 0\n return oyIN.multiply(YKHO.output, 1 - YKHO.output)",
"def kZgV(YKHO):\n assert YKHO.output.size > 0\n return 1.0 / (1.0 + oyIN.exp(-YKHO.linear_output))",
"def NHx2(YKHO, JfyU):\n if JfyU == 'sigmoid':\n return lambda yvT9: yvT9 * (1 - yvT9)... | [
"0.85761994",
"0.8388386",
"0.8083846",
"0.7994634",
"0.79489005",
"0.78849024",
"0.78534156",
"0.78219604",
"0.7806587",
"0.7795946",
"0.77515924",
"0.74662787",
"0.7455963",
"0.73513234",
"0.730768",
"0.7305467",
"0.72928333",
"0.7265168",
"0.72579056",
"0.7254523",
"0.7224... | 0.86734694 | 0 |
Returns the string representation of the model using alias | def gTzM(YKHO) -> str:
return CgYo.pformat(YKHO.dict(by_alias=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return YKHO.alias",
"def zAg0(YKHO):\n return YKHO.alias_name",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def mWFP(YKHO):\n return f'{YKHO.alias}'",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('a... | [
"0.77665067",
"0.7684247",
"0.72099316",
"0.69695336",
"0.6875455",
"0.6853435",
"0.6750787",
"0.6750787",
"0.67278194",
"0.67196035",
"0.6668564",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.6518873",
"0.64316285",
"0.6425204",
"0.6368609",
"0.6366865... | 0.65216684 | 13 |
Indicates whether all files / steps have been executed Use this to know when the batch workflow is complete if manually executing the workflow with execute_next() | def J1ea(YKHO) -> bool:
return YKHO._processed_files == YKHO.total_files | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1ea(YKHO):\n return YKHO._breeze_stat == WqeS.DONE or EFYe(YKHO._test_file)",
"def ZZQq(YKHO):\n ALbc = all([Fg_i.is_complete() for Fg_i in YKHO.behaviors])\n DB5l = all([KCHu >= YKHO.config.task.extra_steps for KCHu in YKHO._extra_step_idxs])\n return ALbc and DB5l",
"def ZZQq(YKHO):\n ret... | [
"0.72570753",
"0.70860326",
"0.69277275",
"0.6923704",
"0.6911964",
"0.6888276",
"0.6868296",
"0.6867292",
"0.6852503",
"0.6852481",
"0.6821272",
"0.6815982",
"0.68072116",
"0.6805897",
"0.6786087",
"0.677419",
"0.6767484",
"0.6766343",
"0.67465705",
"0.67367077",
"0.671914",... | 0.7242763 | 1 |
Compute the average Hamming loss. The Hamming loss is the fraction of labels that are incorrectly predicted. | def zrBW(Y8eF, aMgO, *, xF06=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(YKHO, MKlR):\n return (-YKHO.labels * oyIN.log(MKlR) - (1 - YKHO.labels) * oyIN.log(1 - MKlR)).mean()",
"def NxgT(Y8eF, aMgO, NkkI=True, xF06=None):\n nyKs = []\n for YRbF in range(Y8eF.shape[0]):\n BHZ3 = set(oyIN.where(Y8eF[YRbF])[0])\n IjEw = set(oyIN.where(aMgO[YRbF])[0])\n ... | [
"0.71418136",
"0.6878837",
"0.6770586",
"0.66331303",
"0.66290283",
"0.65557057",
"0.65496796",
"0.65276045",
"0.65261775",
"0.6520156",
"0.65179276",
"0.65169793",
"0.65065396",
"0.64752716",
"0.6453745",
"0.641665",
"0.637869",
"0.6372633",
"0.63174266",
"0.63174266",
"0.63... | 0.6765424 | 3 |
Compute the Brier score loss. The smaller the Brier score loss, the better, hence the naming with "loss". The Brier score measures the mean squared difference between the predicted probability and the actual outcome. The Brier score always takes on a value between zero and one, since this is the largest possible differ... | def ItLE(Y8eF, ZxJs, *, xF06=..., uxJJ=...):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bM5F(YKHO):\n mpiO = ItLE(YKHO.actual, YKHO.predicted)\n return mpiO",
"def RVxB(bdkc=None, Y8eF=None, xF06=None, K92k=None):\n p1kx = ItLE(y_true=None, y_prob=None, sample_weight=None, pos_label=1)\n return p1kx",
"def lA4R(LVAh, ZNzn):\n XP5J = oyIN.clip(ZNzn[:, 1], a_min=0, a_max=1)\n ... | [
"0.78516084",
"0.73507273",
"0.7300959",
"0.6701525",
"0.65639704",
"0.6468953",
"0.6140538",
"0.613062",
"0.6123444",
"0.60945845",
"0.60877186",
"0.6041159",
"0.60333884",
"0.60214776",
"0.5983338",
"0.59828943",
"0.5930366",
"0.5922145",
"0.59065944",
"0.5904814",
"0.58860... | 0.74902487 | 1 |
returns the index view of the app | def d6pt(QePW):
return igJ6('Blog Index Page', QePW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return YKHO.load_view('index.html')",
"def d6pt(YKHO):\n return TvZl('{0}/index.html'.format(YKHO.__APP_DIR__))",
"def d6pt(YKHO):\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return ... | [
"0.81798095",
"0.77367204",
"0.75817376",
"0.7543248",
"0.7543248",
"0.7505989",
"0.74828136",
"0.74100137",
"0.73967147",
"0.73878765",
"0.7386947",
"0.73707265",
"0.7361074",
"0.7361074",
"0.7361074",
"0.7361074",
"0.7361074",
"0.7361074",
"0.7319016",
"0.73121077",
"0.7311... | 0.0 | -1 |
Given two positive integers a and b, return the even digits between a and b, in ascending order. | def vIB_(jzdc, Fg_i):
print('3') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c8Kg(jzdc, Fg_i):\n if jzdc < Fg_i:\n if jzdc % 2 == 0:\n for YRbF in range(jzdc + 2, Fg_i, 2):\n vwra.append(YRbF)\n return vwra\n else:\n for YRbF in range(jzdc + 1, Fg_i, 2):\n vwra.append(YRbF)\n return vwra\n eli... | [
"0.67570114",
"0.674627",
"0.6653604",
"0.66513455",
"0.6512911",
"0.64162403",
"0.63950384",
"0.6360734",
"0.6349788",
"0.6298244",
"0.62844115",
"0.6254239",
"0.62507737",
"0.6236516",
"0.6218678",
"0.6215169",
"0.6173147",
"0.61723423",
"0.6170479",
"0.61655706",
"0.614193... | 0.0 | -1 |
Initialize a new bullet. | def FIMM(YKHO, BH3N):
super().__init__()
YKHO.settings = BH3N.settings
YKHO.screen = BH3N.screen
YKHO.screen_rect = BH3N.screen.get_rect()
YKHO.color = YKHO.settings.bullet_color
YKHO.rect = a9eO.Rect(0, 0, YKHO.settings.bullet_width, YKHO.settings.bullet_height)
YKHO.rect.midtop = BH3N.ship... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, tJm0, Vjhr, oeTy):\n \"\"\"Create a bullet object at the given alien's current position.\"\"\"\n super().__init__()\n YKHO.screen = Vjhr\n YKHO.rect = a9eO.Rect(0, 0, tJm0.bullet_width, tJm0.bullet_height)\n YKHO.rect.centerx = oeTy.rect.centerx\n YKHO.rect.top = oeTy.rect.bottom\n... | [
"0.7928098",
"0.77685726",
"0.7682496",
"0.7579262",
"0.74889016",
"0.746139",
"0.74534273",
"0.7432263",
"0.74207884",
"0.74107605",
"0.7393928",
"0.72776353",
"0.7197417",
"0.71734446",
"0.71520776",
"0.71474814",
"0.71355176",
"0.7076159",
"0.7060506",
"0.7054631",
"0.7034... | 0.7236441 | 12 |
Draw bullet on the screen. | def izLs(YKHO):
a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.colour, YKHO.rect)",
"def izLs(YKHO):\n TlDD.draw.rect(YKHO.screen, YKHO.colour, YKHO.rect)",
"def izLs(YKHO):\n a9eO.draw.rect(YKHO.game.getScreen(), YKHO.color, YKHO.rect)",
"def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)"... | [
"0.89407694",
"0.89261246",
"0.8909205",
"0.89020336",
"0.89020336",
"0.89020336",
"0.8877964",
"0.8877964",
"0.8839477",
"0.88208",
"0.83876383",
"0.8243462",
"0.8243462",
"0.8243462",
"0.8243462",
"0.80168104",
"0.7813997",
"0.78019696",
"0.76742315",
"0.7341057",
"0.725708... | 0.8921239 | 3 |
Test initialization of a resource. | def Ses3(MC83, YofL, QpfX):
zVa7 = i_Tn(QpfX, YofL)
assert zVa7.request is YofL
assert zVa7.context is QpfX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yD0O(YKHO):\n YSCM = JKCy.Recipe(YKHO._DESCRIPTION, YKHO._CONTENTS, YKHO._ARGS)\n YKHO.assertIsNotNone(YSCM)",
"def LbQI(YKHO):\n YKHO.assertEqual(YKHO.resource.auth['account'], 'APP_ID')\n YKHO.assertEqual(YKHO.resource.auth['api_key'], 'APP_KEY')\n YKHO.assertEqual(YKHO.resource.endpoint, '/... | [
"0.77840483",
"0.7591178",
"0.72860634",
"0.72470534",
"0.7171829",
"0.7141999",
"0.7141999",
"0.7020104",
"0.68906736",
"0.6819311",
"0.68160176",
"0.67310786",
"0.67129636",
"0.6695807",
"0.66129726",
"0.6558948",
"0.65341103",
"0.65224767",
"0.65205866",
"0.6505111",
"0.64... | 0.7039271 | 7 |
Test collection_post method of rest resource. | def Bzh4(MC83, YofL, QpfX, jxGD):
zVa7 = i_Tn(QpfX, YofL)
zVa7.model = jxGD
geh0 = zVa7.collection_post()
assert isinstance(geh0, jxGD) is True
assert isinstance(YofL.registry.notifications[0], YTVa.ObjectCreatedEvent) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KL2_(YKHO):\n SAs9.set_override('deployment_version_create', 'Skip', 'validations')\n B0gN = None\n EZ2Z = 'trees'\n P4Tn = 'lots of info'\n with Po4F.object(AQh6, 'add_collection') as liu6:\n tKrx = kkJv()\n B0gN = AQh6(JRIE)\n tKrx.post_collection(helper=B0gN, collection_i... | [
"0.77553993",
"0.7513002",
"0.7242017",
"0.70434856",
"0.7036417",
"0.70020455",
"0.70013976",
"0.6930426",
"0.67971",
"0.6794806",
"0.67816037",
"0.67678237",
"0.67526925",
"0.67368793",
"0.6736448",
"0.6731576",
"0.6731576",
"0.67005795",
"0.66693145",
"0.66580164",
"0.6647... | 0.7720228 | 1 |
Returns a random sequence of given length and alphabet | def Mk9F(u54L, gZgb=None):
if not (isinstance(u54L, int) and u54L >= rk3g):
raise XdUp('get_rand_seq 1 arg has to be an int >= {}'.format(rk3g))
if gZgb is None:
gZgb = DD3O
if not isinstance(gZgb, qfpF.Alphabet.Alphabet):
raise XdUp('get_rand_seq alphabet arg has to be of IUPAC.Alph... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvKB(YKHO, gZgb=NABo, u54L=TnKs):\n import random\n random.seed()\n return ''.join((random.choice(gZgb) for bGrB in range(u54L)))",
"def BAn3(u54L: Union[int, str], gZgb: str='nt') -> str:\n if gZgb not in ['nt', 'aa']:\n raise ValueError('Invalid alphabet option.')\n aWuw = ''\n F6A... | [
"0.8675968",
"0.8550423",
"0.7984431",
"0.793579",
"0.7812113",
"0.77625585",
"0.77497673",
"0.7747781",
"0.7630722",
"0.7585758",
"0.75726527",
"0.75606954",
"0.7534468",
"0.7487931",
"0.74592716",
"0.7451655",
"0.7440472",
"0.7418052",
"0.74069697",
"0.7383978",
"0.73802674... | 0.76854867 | 8 |
Creates a filter with gaussian blurring | def ruLr(AOlJ, stDt, WTkW):
WKvO = ZylS.range(-int(AOlJ / 2), int(AOlJ / 2) + 1, 1)
LVAh = WKvO
fuBA, EcVT = ZylS.meshgrid(WKvO, LVAh)
WTkW = -2 * WTkW ** 2
epBp = ZylS.cast(ZylS.add(ZylS.square(EcVT), ZylS.square(fuBA)), ZylS.float32)
G1Hx = 2 * ZylS.exp(ZylS.divide(epBp, WTkW))
G1Hx = ZylS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raZd(YKHO):\n V2fX.gaussian_filter(YKHO.im, sigma=oyIN.random.rand(), output=YKHO.im)",
"def xsYF(k0lF, WTkW=1.0):\n return apUX(k0lF, sigma=WTkW)",
"def xsYF(VXjJ, Ot1W=7):\n return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0)",
"def jUwU(LNo8):\n return IAWS(LNo8.astype(float), sigma=2)",
"de... | [
"0.80076694",
"0.79611003",
"0.781322",
"0.77557355",
"0.7750031",
"0.77094805",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
"0.768165",
... | 0.0 | -1 |
Invert length in kilometer to GPS unit. Use the haversine function. | def owgb(u54L):
return u54L / wMYt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dNcu(jtuy, kSJA, F3ew, m27z):\n kSJA, jtuy, m27z, F3ew = map(epAf.radians, [kSJA, jtuy, m27z, F3ew])\n J7Up = m27z - kSJA\n L3Pz = F3ew - jtuy\n jzdc = epAf.sin(L3Pz / 2) ** 2 + epAf.cos(jtuy) * epAf.cos(F3ew) * epAf.sin(J7Up / 2) ** 2\n Z9rn = 2 * epAf.asin(epAf.sqrt(jzdc))\n Csk6 = 6367 * Z... | [
"0.64028907",
"0.6359616",
"0.63575613",
"0.63575613",
"0.633103",
"0.6274724",
"0.6185157",
"0.61510915",
"0.611433",
"0.6105507",
"0.6082115",
"0.6079898",
"0.6070081",
"0.60420513",
"0.60418856",
"0.6039577",
"0.60302615",
"0.6014713",
"0.60090643",
"0.60052115",
"0.600117... | 0.0 | -1 |
Loads the last saved pi.predict_model weights (with the highest episode number suffix). (Also loading pi.target_model actually gives worse results (see documentation load_v_model).) | def dUGO(YKHO):
y0cW = Hy7s.path.join(YKHO.models_folder, HFKx)
Bm6t = SC2F.glob(y0cW + '*.h5')
if Bm6t:
YKHO.env.ep = max([int(WKvO[len(y0cW):-3]) for WKvO in Bm6t])
AU2M = '{}{}.h5'.format(y0cW, YKHO.env.ep)
YKHO.pi.predict_model.load_weights(AU2M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z1IG(YKHO):\n y0cW = Hy7s.path.join(YKHO.models_folder, g9Dd)\n CXej = SC2F.glob(y0cW + '*.h5')\n if CXej:\n YKHO.env.ep = max([int(WKvO[len(y0cW):-3]) for WKvO in CXej])\n fOv7 = '{}{}.h5'.format(y0cW, YKHO.env.ep)\n YKHO.v.predict_model.load_weights(fOv7)",
"def JPqq(ROPw):\n ... | [
"0.7856065",
"0.677499",
"0.66479963",
"0.6617477",
"0.6612204",
"0.6590198",
"0.6582947",
"0.65742457",
"0.6558754",
"0.65327626",
"0.6445819",
"0.6427371",
"0.64228606",
"0.6419619",
"0.64076614",
"0.6387962",
"0.63857335",
"0.63669115",
"0.6334201",
"0.63189864",
"0.631149... | 0.8223395 | 0 |
Return true if the binary sensor is on. | def Debg(YKHO) -> bool:
if YKHO._type == Qvbp:
return YKHO._client.get_circ_pump()
if YKHO._type == YcsD:
ypv2 = YKHO._client.get_filtermode()
if ypv2 == YKHO._client.FILTER_OFF:
return False
if YKHO._num == 1 and ypv2 != YKHO._client.FILTER_2:
return True... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debg(YKHO) -> bool:\n return YKHO.wemo.has_sensor != 0 and YKHO.wemo.sensor_state == 0",
"def Debg(YKHO):\n try:\n return YKHO._izzibridge.data[YKHO._sensor_type] == YKHO._active_state\n except KeyError:\n return False",
"def Debg(YKHO):\n return YKHO._sub_device.status['status'] ... | [
"0.8003706",
"0.7735378",
"0.7648598",
"0.764372",
"0.7632894",
"0.7605471",
"0.7578052",
"0.75327617",
"0.7519022",
"0.7504179",
"0.7482119",
"0.7462278",
"0.7462278",
"0.7453757",
"0.74361366",
"0.74179333",
"0.74100983",
"0.73959124",
"0.73942626",
"0.73942626",
"0.7380430... | 0.0 | -1 |
Return the class of this device, from component DEVICE_CLASSES. | def rM2U(YKHO):
return KatO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._sensor.get(F6ct)",
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return eeT9",
"def rM2U(YKHO) -> str:\n return eeT9",
"def rM2U(YKHO) -> str:\n return YKHO._device_class_from_type",
"def rM2U(YKHO) -> str:\n return YKHO._dev_... | [
"0.8530458",
"0.8427048",
"0.83754224",
"0.8375304",
"0.83282167",
"0.8324846",
"0.8292974",
"0.8292974",
"0.8292974",
"0.82486385",
"0.8244376",
"0.8244376",
"0.8244376",
"0.8244376",
"0.8244376",
"0.8244376",
"0.8244376",
"0.8244376",
"0.8244376",
"0.8244376",
"0.8244376",
... | 0.6720553 | 88 |
The string representation of the class Returns the string representation of the class | def zAg0(YKHO) -> str:
QxIo = YKHO.summary()
BWj8 = ' A protein feature instance with: {} chains, {} transmembrane regions, {} domains. {} PTMs, {} sequence variants and {} splice variants'.format(QxIo['number_of_chains'], QxIo['number_of_transmembrane_regions'], QxIo['number_of_domains'], QxIo['number_of_PT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict... | [
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273",
"0.78572273"... | 0.0 | -1 |
Calculate IntersectionOverUnion(IOU) of two bounding boxes. | def z9IC(H5F9, D8Q3, vgXP=0):
if H5F9.shape[1] < 4 or D8Q3.shape[1] < 4:
raise IndexError('Bounding boxes axis 1 must have at least length 4')
GPIy = oyIN.maximum(H5F9[:, None, :2], D8Q3[:, :2])
Rzz_ = oyIN.minimum(H5F9[:, None, 2:4], D8Q3[:, 2:4])
zLeF = oyIN.prod(Rzz_ - GPIy + vgXP, axis=2) * ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8gd(MErA, ZnGJ):\n ZFgS = max(0, min(MErA.right, ZnGJ.right) - max(MErA.left, ZnGJ.left))\n rfRS = max(0, min(MErA.bottom, ZnGJ.bottom) - max(MErA.top, ZnGJ.top))\n iQin = ZFgS * rfRS\n bzU2 = (MErA.right - MErA.left) * (MErA.bottom - MErA.top)\n Eq1k = (ZnGJ.right - ZnGJ.left) * (ZnGJ.bottom -... | [
"0.8185492",
"0.81507325",
"0.80416983",
"0.8030026",
"0.8014368",
"0.79164886",
"0.7838385",
"0.78331214",
"0.78259754",
"0.7816745",
"0.7792807",
"0.77909124",
"0.77909124",
"0.77813447",
"0.7776955",
"0.77625936",
"0.77579427",
"0.77558875",
"0.7749869",
"0.7748181",
"0.77... | 0.0 | -1 |
Removes a pinned object from local storage. | def GNpB(YKHO, *qIxc, **B2fa):
return YKHO._pin_rm.request(YKHO._client, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SjNj(YKHO, YEnM):\n YKHO.index.unmark(YEnM.__uuid__)",
"def UYmI(Ak3z):\n O8vH.pop(Ak3z)",
"def FaAz(YKHO, U6D_):\n YKHO.connection.srem(YKHO.pk, U6D_)",
"def OMAz(YKHO, eL5z):\n raise NotImplementedError",
"def uat1(YKHO, WBAH):\n raise NotImplementedError",
"def kSdD(YKHO, YEnM):\n ... | [
"0.6214311",
"0.61972076",
"0.6075562",
"0.60474956",
"0.60383373",
"0.6018133",
"0.601803",
"0.60149467",
"0.60126746",
"0.6010806",
"0.60086524",
"0.5977954",
"0.5975562",
"0.59622157",
"0.5938763",
"0.59347755",
"0.5924521",
"0.5923174",
"0.5920188",
"0.5907901",
"0.589937... | 0.0 | -1 |
Finds peers in the DHT that can provide an exact value, given a key. | def xjvc(YKHO, *qIxc, **B2fa):
return YKHO._dht_findprovs.request(YKHO._client, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(YKHO, H5ew):\n HDvY = YKHO.hash_function(H5ew, YKHO.N)\n for YRbF in range(YKHO.N):\n j4H1 = (HDvY + YRbF) % YKHO.N\n if YKHO.T[j4H1] is None:\n return None\n if YKHO.T[j4H1][0] == H5ew:\n return YKHO.T[j4H1][1]\n return None",
"def TgwQ(YKHO, H5ew):\n... | [
"0.64548755",
"0.6448634",
"0.6409579",
"0.62632465",
"0.6259883",
"0.6239167",
"0.62093043",
"0.61914015",
"0.61889344",
"0.60179216",
"0.60112745",
"0.6010475",
"0.597559",
"0.5960294",
"0.5949282",
"0.59239197",
"0.59158987",
"0.5906852",
"0.5819598",
"0.57989043",
"0.5782... | 0.0 | -1 |
Queries the DHT for its best value related to given key. | def S_fY(YKHO, *qIxc, **B2fa):
Ylbp = YKHO._dht_get.request(YKHO._client, *qIxc, **B2fa)
if isinstance(Ylbp, dict) and 'Extra' in Ylbp:
return Ylbp['Extra']
else:
for Mkmy in Ylbp:
if 'Extra' in Mkmy and len(Mkmy['Extra']) > 0:
return Mkmy['Extra']
raise ZuOR(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew):\n d6pt = H5ew % YKHO.capacity\n Q6kx = YKHO.hashMap[d6pt]\n while Q6kx:\n if Q6kx.key == H5ew:\n return Q6kx.val\n Q6kx = Q6kx.next\n return -1",
"def TgwQ(YKHO, H5ew: str) -> ImMB:\n d6pt = YKHO.hash(H5ew)\n jvSB = YKHO.buckets[d6pt]\n if jvSB ... | [
"0.69226164",
"0.6877094",
"0.67083853",
"0.6706852",
"0.66916287",
"0.6682229",
"0.6660115",
"0.6624205",
"0.6600904",
"0.65725416",
"0.657214",
"0.65714717",
"0.65352756",
"0.6533612",
"0.65164405",
"0.64997286",
"0.6494105",
"0.6488405",
"0.64644843",
"0.64637333",
"0.6455... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by schedule | def e_63(K0do, qtWj, tspZ, b6Gq, KMvS):
for YPaw in b6Gq:
if qtWj >= YPaw:
tspZ *= KMvS
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q95C(YKHO):\n if vPBo.lr_schedule == 'custom_step':\n G9jH.info('Using custom step for learning rate decay schedule {}'.format([(jzdc // YKHO.iter_epoch, vPBo.learning_rate ** (G1Hx + 1)) for G1Hx, jzdc in enumerate(YKHO.decay_steps)]))\n YKHO.learning_rate = ZylS.get_variable('learning_rate',... | [
"0.7772001",
"0.7771884",
"0.77703995",
"0.7737288",
"0.76913875",
"0.7614017",
"0.7609294",
"0.7576482",
"0.75764024",
"0.7574085",
"0.7561578",
"0.7552799",
"0.7538885",
"0.7537426",
"0.75308645",
"0.75305325",
"0.75250614",
"0.75211513",
"0.7489858",
"0.74883926",
"0.74800... | 0.7511352 | 18 |
Sets the learning rate to the initial LR decayed by schedule | def ffcr(qtWj, WTkW, b6Gq, KMvS=0.5):
for YPaw in b6Gq:
if qtWj >= YPaw:
WTkW *= KMvS
return WTkW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q95C(YKHO):\n if vPBo.lr_schedule == 'custom_step':\n G9jH.info('Using custom step for learning rate decay schedule {}'.format([(jzdc // YKHO.iter_epoch, vPBo.learning_rate ** (G1Hx + 1)) for G1Hx, jzdc in enumerate(YKHO.decay_steps)]))\n YKHO.learning_rate = ZylS.get_variable('learning_rate',... | [
"0.7772556",
"0.7770895",
"0.7770363",
"0.7736555",
"0.76910526",
"0.7614607",
"0.76100504",
"0.7577198",
"0.757713",
"0.7574807",
"0.7562245",
"0.7553109",
"0.7539596",
"0.7538393",
"0.7530814",
"0.7529593",
"0.7525857",
"0.7520816",
"0.7512354",
"0.7488677",
"0.7488152",
... | 0.0 | -1 |
Returns a copy of the Codes object | def jth9(YKHO):
return jth9(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n lY0q = pzhQ(None, YKHO.data)\n for mXDZ in YKHO.patternMap.keys():\n jth9 = XGjD(0)\n jth9.usage = mXDZ.usage\n jth9.support = mXDZ.support\n jth9.usage_list = mXDZ.usage_list.copy()\n jth9.elements = mXDZ.elements\n lY0q.patternMap[jth9] = YKHO.pat... | [
"0.66473186",
"0.6384028",
"0.62462413",
"0.6165493",
"0.6136461",
"0.6107231",
"0.6107231",
"0.6107231",
"0.6107231",
"0.6107231",
"0.610197",
"0.6088835",
"0.6088835",
"0.60858643",
"0.60852796",
"0.6059075",
"0.6059075",
"0.6059075",
"0.6059075",
"0.6059075",
"0.6059075",
... | 0.59842795 | 47 |
Returns a string rep of val, padded with enough leading 0s to give you a string rep with ndigits in it | def zbeT(wEf2, LZhb=2):
wEf2 = str(int(wEf2))
kNuw = LZhb - len(wEf2)
wEf2 = '0' * kNuw + wEf2
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOVh(exwG, BHGE=3):\n hVLt = ''\n for WKvO in Ni9Y(1, BHGE):\n if exwG / 10 ** WKvO == 0:\n hVLt = '0' * (BHGE - WKvO)\n break\n ByEy = hVLt + str(exwG)\n return ByEy",
"def kHOa(BWXx: int, a__r: int=2):\n return str(BWXx).zfill(a__r)",
"def yMXD(WKvO):\n if l... | [
"0.71027046",
"0.7016188",
"0.701422",
"0.69886065",
"0.6958481",
"0.69484824",
"0.68248516",
"0.6748723",
"0.6736872",
"0.67129076",
"0.6662479",
"0.66549605",
"0.6653751",
"0.6622416",
"0.659977",
"0.6582992",
"0.6582149",
"0.65655",
"0.6563716",
"0.6548359",
"0.6544059",
... | 0.80524695 | 0 |
Check if the input is iterable, stolen from numpy.iterable() | def OxJJ(WKvO):
try:
iter(WKvO)
return True
except:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZ5(d7pR):\n return hasattr(d7pR, '__iter__')",
"def GfZ5(WKvO):\n if isinstance(WKvO, oyIN.ndarray) and len(WKvO.shape) == 0:\n return False\n return isinstance(WKvO, (iu5r, oyIN.ndarray)) and (not isinstance(WKvO, str))",
"def rUFq(vGaq):\n pass",
"def GfZ5(d7pR):\n return not is... | [
"0.86114395",
"0.84647113",
"0.8450286",
"0.8431047",
"0.83417284",
"0.8323789",
"0.8318387",
"0.83015513",
"0.82743955",
"0.82567954",
"0.82567954",
"0.82550454",
"0.82305944",
"0.8202022",
"0.81581503",
"0.81561065",
"0.81403744",
"0.8091069",
"0.8087027",
"0.8081121",
"0.8... | 0.7701952 | 44 |
Convert a 1D array to a 2D array with just a singleton row. If arr is already 2D, just return it. If it's anything more than 2D, raise an error | def TIf2(ezWE):
fHgE = ezWE.ndim
assert fHgE in [1, 2], 'array rank > 2'
if fHgE == 1:
ezWE = ezWE.reshape(1, -1)
return ezWE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cuDt(ezWE):\n if ezWE is None:\n return ezWE\n try:\n ezWE = oyIN.array(ezWE)\n except:\n return ezWE\n if ezWE.ndim == 1:\n ezWE = ezWE[:, None]\n return ezWE",
"def ior9(ezWE):\n if ezWE.ndim > 1:\n return ezWE\n else:\n return ezWE[:, oyIN.new... | [
"0.80116606",
"0.79166144",
"0.75806737",
"0.72182375",
"0.70256215",
"0.70166194",
"0.68582296",
"0.67780524",
"0.65922344",
"0.6589289",
"0.6585928",
"0.6584902",
"0.65551203",
"0.63868123",
"0.6342033",
"0.6264585",
"0.61992735",
"0.6107185",
"0.61067533",
"0.61038303",
"0... | 0.7360748 | 3 |
Return a boolean array describing which components of a and b are equal subject to given tolerances. The relative error rtol must be positive and << 1.0 The absolute error atol comes into play for those elements of y that are very small or zero; it says how small x must be also. Copied and modified from numpy.allclose(... | def OS2K(jzdc, Fg_i, LL2J=1e-14, rU28=1e-14):
WKvO = oyIN.array(jzdc, copy=False)
LVAh = oyIN.array(Fg_i, copy=False)
return oyIN.less(oyIN.absolute(WKvO - LVAh), rU28 + LL2J * oyIN.absolute(LVAh)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SBMJ(WKvO, LVAh, LL2J=1e-05, rU28=1e-14):\n for jzdc, Fg_i in zip(WKvO, LVAh):\n if oyIN.abs(jzdc - Fg_i) > rU28 + LL2J * oyIN.abs(Fg_i):\n return False\n return True",
"def SBMJ(jzdc, Fg_i, LL2J=1e-05, rU28=1e-08, c_rt=0, Pexq=False, VFNv=5, i0mK=True):\n if len(If3P) > 0:\n ... | [
"0.80860317",
"0.784495",
"0.7531407",
"0.7400955",
"0.7246825",
"0.7204157",
"0.7204157",
"0.71907246",
"0.71177304",
"0.71040064",
"0.70582855",
"0.7031316",
"0.7026169",
"0.7015401",
"0.69883245",
"0.69883245",
"0.69777495",
"0.69605994",
"0.6957404",
"0.6954115",
"0.69424... | 0.7111833 | 9 |
Resample using sample and hold. Returns resampled values at ts given the original points (t,y) such that the resampled values are just the most recent value in y (think of a staircase with nonuniform steps). Assumes that t is sorted. t and ts arrays should be of the same data type. Contributed by Robert Kern. | def Wwmj(a1PO, LVAh, i8WE, uZq5=False):
YRbF = oyIN.searchsorted(a1PO, i8WE) - 1
'this has an issue of not keeping the original data point where ts == t'
YRbF = oyIN.where(YRbF < 0, 0, YRbF)
if uZq5:
CG54 = oyIN.diff(YRbF).nonzero()[0]
QJlQ = OS2K(a1PO[1:], i8WE[CG54])
YRbF[CG54[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VsGh(i8WE, hkxX, eAYh):\n assert oyIN.all(oyIN.diff(i8WE) > 0)\n i8WE = NkkI(i8WE)\n return oyIN.interp(oyIN.linspace(0.0, 1.0, eAYh), i8WE, hkxX)",
"def VsGh(YKHO, a1PO):\n EcVT, fuBA, Nk6w = NKfo(YKHO.xyz, YKHO.transforms[a1PO].as_affine(), YKHO.inv_affine, YKHO.affine)\n if YKHO.time_interp... | [
"0.6612203",
"0.64845246",
"0.6471493",
"0.61160374",
"0.6042791",
"0.59660363",
"0.5933928",
"0.5922334",
"0.59141076",
"0.58742046",
"0.58690816",
"0.57465297",
"0.56889415",
"0.56581765",
"0.5602096",
"0.55950683",
"0.5594846",
"0.55805117",
"0.5575198",
"0.5534588",
"0.54... | 0.5318649 | 33 |
Return a string with the binary representation of an integer, or sequence of integers. If necessary, will append leading zeros if result is less than minbits long. Uses np.binary_repr() | def bin(YRbF, PpTS=8):
gXtX = j6LA(YRbF)
vnea = []
for YRbF in gXtX:
KCHu = oyIN.binary_repr(YRbF)
kNuw = PpTS - len(KCHu)
KCHu = '0' * kNuw + KCHu
vnea.append(KCHu)
if len(vnea) == 1:
vnea = vnea[0]
return vnea | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EXMX(YRbF, Hy_v=8):\n UOVU = []\n while YRbF > 0:\n G1Hx = YRbF & oR14\n YRbF = YRbF >> 8\n UOVU.append(kfcK[G1Hx])\n UOVU.reverse()\n Aofo = ''.join(UOVU or kfcK[0]).lstrip('0')\n if len(Aofo) < Hy_v:\n return '0' * (Hy_v - len(Aofo)) + Aofo\n else:\n retur... | [
"0.76129943",
"0.7249001",
"0.71508723",
"0.7106595",
"0.7078184",
"0.7054237",
"0.7042543",
"0.6993632",
"0.6857422",
"0.68099123",
"0.67784214",
"0.674443",
"0.6681454",
"0.66754276",
"0.6645779",
"0.66202813",
"0.6614469",
"0.6601693",
"0.65512335",
"0.65413636",
"0.652965... | 0.71648157 | 2 |
Finds char in string, returns matching indices. There's gotta be a builtin way to do this somewhere... | def a7yY(vIwR, hcXw):
assert len(hcXw) == 1
YRbF = []
for QJlQ, KCHu in enumerate(vIwR):
if KCHu == hcXw:
YRbF.append(QJlQ)
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def neBz(vIwR, hcXw):\n return [d6pt for d6pt, sZqf in enumerate(vIwR) if sZqf == hcXw]",
"def jore(vIwR, hcXw):\n return [dQgj for dQgj, sZqf in enumerate(vIwR) if sZqf == hcXw]",
"def neBz(KCHu, Npgh):\n return [YRbF for YRbF, HcKE in enumerate(KCHu) if HcKE == Npgh]",
"def neBz(Bpww, Npgh, yKcO=0... | [
"0.8593602",
"0.8481497",
"0.80027723",
"0.76329005",
"0.7594165",
"0.74773633",
"0.74059796",
"0.7364311",
"0.7323949",
"0.72604614",
"0.7237212",
"0.72265875",
"0.7188767",
"0.70312846",
"0.7003293",
"0.69777447",
"0.696205",
"0.6958215",
"0.69447225",
"0.6925719",
"0.68858... | 0.83157986 | 2 |
Normalize a such that all of its values span the interval [0, 1] | def dBBt(jzdc):
jzdc = jzdc - jzdc.min()
jzdc = jzdc / jzdc.max()
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(jzdc):\n return jzdc * 1 / jzdc.sum()",
"def NkkI(WKvO):\n return (WKvO - WKvO.min()) / (WKvO.max() - WKvO.min())",
"def Ey2R(jzdc):\n jzdc = oyIN.asarray(jzdc)\n T8H5 = jzdc.min()\n return (jzdc - T8H5) / (jzdc.max() - T8H5)",
"def iC99(WKvO):\n WKvO -= WKvO.min(1, keepdim=True)[0... | [
"0.8025517",
"0.79673177",
"0.79480875",
"0.78856903",
"0.78814834",
"0.782603",
"0.7742783",
"0.7742462",
"0.76999533",
"0.7678077",
"0.76756227",
"0.7653626",
"0.7638982",
"0.76208836",
"0.7612775",
"0.7576374",
"0.75741434",
"0.7566893",
"0.75629646",
"0.7545472",
"0.75432... | 0.73411405 | 38 |
Returns the entropy (in bits) of the prob distribution described by the prob values in p | def oqGu(XP5J):
XP5J = THDZ(XP5J)
return -(XP5J * oyIN.log2(XP5J)).sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oqGu(XP5J):\n if XP5J == 0:\n return 0\n elif XP5J == 1:\n return 0\n else:\n return -(XP5J * oyIN.log2(XP5J) + (1 - XP5J) * oyIN.log2(1 - XP5J))",
"def oqGu(YKHO, *V6IE):\n Mkmy = 0\n for XP5J in V6IE:\n if XP5J == 1:\n return 0\n elif XP5J > 0:\n... | [
"0.846356",
"0.8148856",
"0.7913234",
"0.77514535",
"0.7635979",
"0.7557622",
"0.75324833",
"0.75270754",
"0.74371934",
"0.7356686",
"0.73022366",
"0.72881687",
"0.72808343",
"0.7238318",
"0.72349584",
"0.7231464",
"0.721421",
"0.7211034",
"0.7179941",
"0.7120383",
"0.7113638... | 0.8584376 | 0 |