query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return number of bits set to 1 in n | def Zsg6(wEf2):
exwG = 0
while wEf2:
if wEf2 & 1:
exwG += 1
wEf2 >>= 1
return exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oI3y(exwG):\n wEf2 = bin(exwG)\n return wEf2.count('1')",
"def oI3y(exwG):\n UHFx = 0\n while exwG:\n UHFx += exwG & 1\n exwG = exwG >> 1\n return UHFx",
"def fnmO(exwG):\n UHFx = 0\n while exwG:\n UHFx += 1\n exwG = exwG & exwG - 1\n return UHFx",
"def... | [
"0.8670351",
"0.85950416",
"0.8486431",
"0.83816206",
"0.80531037",
"0.79949665",
"0.79880583",
"0.79559684",
"0.7921096",
"0.789642",
"0.78495735",
"0.7728929",
"0.76919436",
"0.7687245",
"0.7604785",
"0.76041883",
"0.75641453",
"0.75302196",
"0.75102973",
"0.74957836",
"0.7... | 0.7427104 | 22 |
Return the path to the session upload directory | def LefR(JkXK):
return Hy7s.path.join(P5qa, JkXK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSzP():\n return pmON.join(wk5E.config.get('UPLOAD_FOLDER'))",
"def JJkJ(KAOR, xX1y):\n return Hy7s.path.join('uploads', KAOR.patient.user.username, xX1y)",
"def wxev(YKHO):\n return Hy7s.path.join(az6k, 'mnist_session')",
"def Xxp6(YKHO):\n pmON = gCuF.UPLOAD_MEDIA_ROOT\n return pmON",
... | [
"0.79996413",
"0.7269546",
"0.7216464",
"0.7183701",
"0.71458066",
"0.70107967",
"0.6972221",
"0.6966065",
"0.6945529",
"0.6943178",
"0.690616",
"0.688011",
"0.67668676",
"0.67579937",
"0.6663238",
"0.66285527",
"0.6606085",
"0.65914935",
"0.65690404",
"0.6566942",
"0.6563194... | 0.8547111 | 0 |
Signed distance to the separating hyperplane. Signed distance is positive for an inlier and negative for an outlier. | def YEmv(YKHO, EcVT: np.ndarray) -> float:
EnBg = YKHO.scaler.transform(EcVT.reshape(1, -1))
return YKHO.clf.decision_function(EnBg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sbCj(WKvO, LVAh):\n bGrB, pImw = VgNI(WKvO, LVAh)\n return pImw",
"def Js6z(YKHO, Elif: 'Polygon'):\n kMgi = YKHO.distance(Elif)\n return kMgi - YKHO.penetration_depth(Elif) if kMgi <= 1e-07 else kMgi",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n re... | [
"0.65633273",
"0.64159364",
"0.63623273",
"0.6308843",
"0.6301537",
"0.6301537",
"0.6301537",
"0.6301537",
"0.6301537",
"0.6301537",
"0.6301537",
"0.6301537",
"0.6301075",
"0.6301075",
"0.62854546",
"0.61779815",
"0.61362094",
"0.61192316",
"0.6032651",
"0.603107",
"0.6027813... | 0.0 | -1 |
Creates a genesis block with a None Vote. | def tBOj(YKHO):
cb0j = n3Kt(None, None)
if n3Kt.isValidBlock(cb0j):
YKHO.blocks.append(cb0j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RsZu():\n return n3Kt(0, _c1T.datetime.now(), 'Genesis Block', '0')",
"def RsZu():\n return n3Kt(0, _c1T.datetime.now(), 'Genisis Block', '0')",
"def _Pic():\n XkN1 = n3Kt(index=0, timestamp=qcWV.now(), score=0, traffic_signs=0, previous_hash='0')\n return XkN1",
"def _Pic():\n XkN1 = n3Kt... | [
"0.78471947",
"0.76459426",
"0.7512636",
"0.7449785",
"0.7276397",
"0.7269081",
"0.718097",
"0.70344096",
"0.69698864",
"0.6942864",
"0.69078183",
"0.68419373",
"0.68316823",
"0.6782408",
"0.64879435",
"0.6453778",
"0.6446892",
"0.64420426",
"0.63899857",
"0.6385368",
"0.6357... | 0.74180263 | 4 |
Takes DataFrame and splits category column into 36 dummy variable columns | def o8c1(jQ3Z: pd.DataFrame):
LeZt = jQ3Z.categories.str.split(';', expand=True)
RTfd = LeZt.loc[0].str.split('-').str[0]
LeZt.columns = RTfd
for iVRZ in RTfd:
LeZt[iVRZ] = LeZt[iVRZ].str.split('-').str[1]
LeZt[iVRZ] = LeZt[iVRZ].astype(int)
G_PE = rLdf.concat([jQ3Z, LeZt], axis=1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROuh(jQ3Z, R8Ph, DM6L):\n for fvDH in R8Ph:\n try:\n ewrA = rLdf.get_dummies(jQ3Z[fvDH], prefix=fvDH, prefix_sep='_', drop_first=True, dummy_na=DM6L)\n jQ3Z = rLdf.concat([jQ3Z.drop(fvDH, axis=1), ewrA], axis=1)\n except:\n continue\n return jQ3Z",
"def Ab... | [
"0.7464175",
"0.7339483",
"0.73159283",
"0.72390115",
"0.7206719",
"0.7201929",
"0.71305716",
"0.69945985",
"0.6904414",
"0.68953747",
"0.68911695",
"0.68428457",
"0.68346274",
"0.6807899",
"0.6786141",
"0.6784848",
"0.6759271",
"0.6672904",
"0.66697645",
"0.65913105",
"0.658... | 0.6230654 | 47 |
Returns a noise model when input is not False or None. A string will be interpreted as the name of a backend, and the noise model of this will be extracted. A float will be interpreted as an error probability for a depolarizing+measurement error model. Anything else (such as True) will give the depolarizing+measurement... | def dKmm(O3mL):
if O3mL:
if type(O3mL) is str:
begE = JLXL(O3mL)
amdr = ARTs.device.basic_device_noise_model(begE.properties())
else:
if type(O3mL) is float:
ANue = O3mL
GBpS = O3mL
else:
ANue = 0.08
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rgnb(P1dF, Tcon=True, rvlj=True):\n return None",
"def dKmm(ANue, hlBG):\n N6t6 = q_RB([('X', ANue), ('I', 1 - ANue)])\n HJGG = jt_7(hlBG, 1)\n mKwP = HJGG.tensor(HJGG)\n amdr = sJ4G()\n amdr.add_all_qubit_readout_error([[1 - ANue, ANue], [ANue, 1 - ANue]])\n amdr.add_all_qubit_quantum_e... | [
"0.66453564",
"0.64327604",
"0.63425297",
"0.5887795",
"0.5873085",
"0.5810915",
"0.5782592",
"0.5750202",
"0.5704928",
"0.56409603",
"0.56159884",
"0.55478066",
"0.55138767",
"0.54901254",
"0.5472212",
"0.54684913",
"0.54460883",
"0.5415706",
"0.53877735",
"0.53736407",
"0.5... | 0.7615424 | 0 |
calculates the occurence of positive and negative words in a given tweet and returns a list of assigned scores +1 means that a token is positive, 1 that a token is negative, 0 that the token was not found in the lexicon | def KTdr(YKHO, zw3H):
cCrA = []
ooeG = 1
les3 = -1
Vaus = 0
jbXL = []
for P2GO in range(len(zw3H)):
eOtH = zw3H[P2GO]
if JUOb.emoji_count(eOtH) <= 1:
jbXL.append(eOtH)
continue
Qf8j = YKHO.split_mutliple_emojis(eOtH)
jbXL = list(eNCK(jbXL, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JybI(YKHO, l5Ny):\n l5Ny = l5Ny.lower()\n p1kx = 0\n b0j5 = Dhdw.tokenize.TweetTokenizer()\n s2mk = b0j5.tokenize(l5Ny)\n for eOtH in s2mk:\n for GIN8 in YKHO.positives:\n if eOtH == GIN8:\n p1kx += 1\n for GIN8 in YKHO.negatives:\n if eOtH == G... | [
"0.7690284",
"0.7662904",
"0.7640653",
"0.7572792",
"0.7557526",
"0.74938834",
"0.747683",
"0.74050635",
"0.7374687",
"0.73718",
"0.7304257",
"0.7299666",
"0.72854185",
"0.7232967",
"0.722602",
"0.72046876",
"0.71804726",
"0.7110401",
"0.7108712",
"0.69413996",
"0.69249946",
... | 0.72013307 | 16 |
Determines if the image contains rows/cols that are all black. | def JuzO(k0lF):
MKlR, yzQ0 = k0lF.shape
for TPao in Ni9Y(MKlR):
G1dH = oyIN.sum(k0lF[TPao])
if G1dH != 0:
break
for fVVZ in Ni9Y(MKlR - 1, -1, -1):
G1dH = oyIN.sum(k0lF[fVVZ])
if G1dH != 0:
break
for Smcs in Ni9Y(yzQ0):
G1dH = oyIN.sum(k0lF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fJav(YKHO, rdlD: int, fvDH: int):\n for qfpW in YKHO.grid[rdlD][fvDH]:\n if qfpW is not None:\n return True\n return False",
"def ZOBW(YKHO):\n iTym = YKHO.board.shape[0]\n e8HV = YKHO.board.shape[1]\n for rdlD in range(iTym):\n for fvDH in range(e8HV):\n if... | [
"0.7211561",
"0.6919761",
"0.69089186",
"0.6883486",
"0.68763113",
"0.68394995",
"0.6811275",
"0.67761594",
"0.6719775",
"0.67000616",
"0.6684659",
"0.66494685",
"0.66054165",
"0.6580581",
"0.6563494",
"0.6560871",
"0.6556839",
"0.653817",
"0.6524492",
"0.65141183",
"0.651054... | 0.0 | -1 |
Resets the accumulated gradients. | def SiRx(YKHO):
if YKHO._gradients:
YKHO._accum_steps.assign(0)
for ICX2 in YKHO._get_replica_gradients():
ICX2.assign(ZylS.zeros_like(ICX2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n if not YKHO._gradients:\n return\n YKHO._accum_steps.assign(0)\n for ICX2 in YKHO._gradients:\n if ICX2 is not None:\n ICX2.assign(ZylS.zeros_like(ICX2))",
"def ASIv(YKHO):\n YKHO.sum_loss = 0.0\n YKHO.sum_grad = 0.0\n YKHO.sum_grad2 = 0.0\n YKHO.co... | [
"0.8699958",
"0.7858137",
"0.77997553",
"0.7778252",
"0.77679414",
"0.7741997",
"0.7741997",
"0.7741997",
"0.7741997",
"0.77304274",
"0.7718239",
"0.76530665",
"0.76380694",
"0.76380694",
"0.76380694",
"0.7631291",
"0.7615534",
"0.7572738",
"0.755022",
"0.7444702",
"0.7357411... | 0.8495098 | 1 |
Resets the accumulated gradients. | def SiRx(YKHO):
if YKHO._hessians:
YKHO._accum_steps.assign(0)
for e_VS in YKHO._get_replica_hessians():
e_VS.assign(ZylS.zeros_like(e_VS)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n if not YKHO._gradients:\n return\n YKHO._accum_steps.assign(0)\n for ICX2 in YKHO._gradients:\n if ICX2 is not None:\n ICX2.assign(ZylS.zeros_like(ICX2))",
"def SiRx(YKHO):\n if YKHO._gradients:\n YKHO._accum_steps.assign(0)\n for ICX2 in YKHO.... | [
"0.8699958",
"0.8495098",
"0.7858137",
"0.77997553",
"0.7778252",
"0.77679414",
"0.7741997",
"0.7741997",
"0.7741997",
"0.7741997",
"0.77304274",
"0.7718239",
"0.76530665",
"0.76380694",
"0.76380694",
"0.76380694",
"0.7631291",
"0.7615534",
"0.7572738",
"0.755022",
"0.7444702... | 0.66873896 | 61 |
Gets the compensated pressure in Pascals. | def OtiN(YKHO):
Yh3e = YKHO.read_raw_pressure()
CIn9 = YKHO.t_fine / 2.0 - 64000.0
AhCl = CIn9 * CIn9 * YKHO.dig_P6 / 32768.0
AhCl = AhCl + CIn9 * YKHO.dig_P5 * 2.0
AhCl = AhCl / 4.0 + YKHO.dig_P4 * 65536.0
CIn9 = (YKHO.dig_P3 * CIn9 * CIn9 / 524288.0 + YKHO.dig_P2 * CIn9) / 524288.0
CIn9 = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJ2p(YKHO):\n Yh3e = YKHO.data.adc_p\n Z9rn = YKHO.calibration\n if YKHO.t_fine is None:\n YKHO.temperature\n CIn9 = YKHO.t_fine - 128000\n AhCl = CIn9 * CIn9 * Z9rn.P6\n AhCl = AhCl + (CIn9 * Z9rn.P5 << 17)\n AhCl = AhCl + (Z9rn.P4 << 35)\n CIn9 = (CIn9 * CIn9 * Z9rn.P3 >> 8) + ... | [
"0.75420666",
"0.74272776",
"0.7416121",
"0.7360313",
"0.7321785",
"0.73177534",
"0.73177534",
"0.73177534",
"0.73177534",
"0.71806294",
"0.7166186",
"0.7140291",
"0.7122686",
"0.7041772",
"0.70302665",
"0.6930784",
"0.6898228",
"0.68923146",
"0.6847109",
"0.68133944",
"0.681... | 0.6828283 | 19 |
get a instance and update the leased_at value. | def AN7o(KAOR):
C3ST = sD4e.get(KAOR)
C3ST.leased_at = rIAI.now()
C3ST.save()
Pi5l.info('Instance %s as been leased (%s)', C3ST.id, C3ST.heartbeat_at) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zbms(YKHO):\n YKHO.age += 1",
"def MagG(YKHO, KAOR):\n YKHO.clerk.store(SK3C.asinstance(KAOR, YKHO.klass))",
"def NMoC(KAOR):\n try:\n C3ST = VqjK.objects.get(id=KAOR['id'])\n except rIt9:\n Pi5l.info('Instance %s as never been seen before', KAOR['id'])\n C3ST = VqjK()\n ... | [
"0.57341254",
"0.5378746",
"0.53403926",
"0.5205652",
"0.5156789",
"0.51346654",
"0.5092734",
"0.5040366",
"0.5035796",
"0.49936184",
"0.4986273",
"0.49851543",
"0.4981883",
"0.4971084",
"0.49657452",
"0.4941489",
"0.49297047",
"0.4904929",
"0.4889347",
"0.48661125",
"0.48645... | 0.7065456 | 0 |
A function decorated with `~plasmapy.particles.particle_input` where the argument annotated with `~plasmapy.particles.Particle` is named `isotope`. This function should raise an `~plasmapy.utils.InvalidIsotopeError` when the argument is not an isotope or an ion of an isotope. | def Zmdt(qBv7: Particle) -> HnbY:
return qBv7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vnEl(il4J):\n with trZe.raises(hSFg):\n Zmdt(il4J)\n trZe.fail(f\"@particle_input is not raising an InvalidIsotopeError for {repr(il4J)} even though the annotated argument is named 'isotope'.\")",
"def ZKr2(qBv7):\n Zmdt(qBv7)",
"def CbOU(YKHO, qBv7):\n return e0lz.checkResult(YKHO._... | [
"0.7399267",
"0.6690345",
"0.5642322",
"0.5545269",
"0.54975396",
"0.5329685",
"0.5185378",
"0.51681983",
"0.51610506",
"0.51513815",
"0.51018894",
"0.50029093",
"0.4929441",
"0.49142945",
"0.48450932",
"0.48048684",
"0.47913986",
"0.47827792",
"0.4703019",
"0.47023505",
"0.4... | 0.7925376 | 0 |
Test that particle_input will raise an `~plasmapy.utils.InvalidElementError` if an argument decorated with `~plasmapy.particles.Particle` is named 'element', but the annotated argument ends up not being an element, isotope, or ion. | def SJye(il4J):
with trZe.raises(vcMX):
Xsph(il4J)
trZe.fail(f"@particle_input is not raising an InvalidElementError for {repr(il4J)} even though the annotated argument is named 'element'.") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr8Y(R9Zj, d7pR):\n\n @pH8l(**R9Zj)\n def eHNT(il4J: ParticleLike):\n return il4J\n with trZe.raises(QCw5):\n eHNT(d7pR)",
"def vnEl(il4J):\n with trZe.raises(hSFg):\n Zmdt(il4J)\n trZe.fail(f\"@particle_input is not raising an InvalidIsotopeError for {repr(il4J)} even... | [
"0.72722167",
"0.705914",
"0.7016614",
"0.69544816",
"0.69396275",
"0.6456705",
"0.6361813",
"0.62894285",
"0.62221193",
"0.6210887",
"0.6103075",
"0.6051378",
"0.60428333",
"0.5976725",
"0.5976725",
"0.59360415",
"0.5878317",
"0.58051",
"0.5788203",
"0.5776608",
"0.57391757"... | 0.81548643 | 0 |
Test that particle_input will not raise an `~plasmapy.utils.InvalidIsotopeError` if the annotated argument is named 'isotope' and is assigned values that are isotopes or ions of isotopes. | def ZKr2(qBv7):
Zmdt(qBv7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vnEl(il4J):\n with trZe.raises(hSFg):\n Zmdt(il4J)\n trZe.fail(f\"@particle_input is not raising an InvalidIsotopeError for {repr(il4J)} even though the annotated argument is named 'isotope'.\")",
"def Zmdt(qBv7: Particle) -> HnbY:\n return qBv7",
"def OtQ5(il4J):\n with trZe.raises(... | [
"0.8221808",
"0.63535976",
"0.632194",
"0.6033936",
"0.5989063",
"0.58571076",
"0.5792202",
"0.5608007",
"0.5571874",
"0.5545987",
"0.5477244",
"0.5477244",
"0.5456612",
"0.5427228",
"0.5413231",
"0.53773487",
"0.53569174",
"0.5334827",
"0.53250104",
"0.53221035",
"0.53107476... | 0.6204583 | 3 |
Test that particle_input will raise an `~plasmapy.utils.InvalidIsotopeError` if an argument decorated with `~plasmapy.particles.Particle` is named 'isotope', but the annotated argument ends up not being an isotope or an ion of an isotope. | def vnEl(il4J):
with trZe.raises(hSFg):
Zmdt(il4J)
trZe.fail(f"@particle_input is not raising an InvalidIsotopeError for {repr(il4J)} even though the annotated argument is named 'isotope'.") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr8Y(R9Zj, d7pR):\n\n @pH8l(**R9Zj)\n def eHNT(il4J: ParticleLike):\n return il4J\n with trZe.raises(QCw5):\n eHNT(d7pR)",
"def OtQ5(il4J):\n with trZe.raises(mgpV):\n fDsK(il4J)\n trZe.fail(f\"@particle_input is not raising an InvalidIonError for {repr(il4J)} even tho... | [
"0.66617525",
"0.658246",
"0.6497663",
"0.6370892",
"0.6252022",
"0.60916406",
"0.601159",
"0.58183795",
"0.5791317",
"0.57846737",
"0.5734801",
"0.5665348",
"0.5647143",
"0.56238025",
"0.55625594",
"0.55625594",
"0.5539908",
"0.55027175",
"0.54147726",
"0.5396183",
"0.535187... | 0.82891923 | 0 |
Test that particle_input will not raise an `~plasmapy.utils.InvalidIonError` if the annotated argument is named 'ion' and is assigned values that are ions. | def ukyC(kQ4Y):
fDsK(kQ4Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OtQ5(il4J):\n with trZe.raises(mgpV):\n fDsK(il4J)\n trZe.fail(f\"@particle_input is not raising an InvalidIonError for {repr(il4J)} even though the annotated argument is named 'ion'.\")",
"def NMmZ():\n\n @pH8l\n def Jbmw():\n pass\n with trZe.raises(QCw5):\n Jbmw()",... | [
"0.8331195",
"0.6847955",
"0.6507693",
"0.6349824",
"0.62598884",
"0.62044084",
"0.60888857",
"0.60379314",
"0.6000438",
"0.58717185",
"0.57879305",
"0.5783329",
"0.5769398",
"0.56980234",
"0.56980234",
"0.5630604",
"0.551529",
"0.55143225",
"0.54875875",
"0.5486379",
"0.5479... | 0.6166143 | 6 |
Analyze text for sentiment, returning its score. | def JybI(YKHO, l5Ny):
p1kx = 0
b0j5 = Dhdw.tokenize.TweetTokenizer()
s2mk = b0j5.tokenize(l5Ny)
for zFiD in YKHO.positives:
if zFiD == s2mk[0]:
p1kx += 1
else:
p1kx += 0
for zFiD in YKHO.negatives:
if zFiD == s2mk[0]:
p1kx -= 1
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JybI(YKHO, l5Ny):\n if l5Ny is None:\n return 0\n El7S = YKHO.get_negative_sentiment(l5Ny)\n M9aE = YKHO.preprocess(l5Ny)\n AWOd = YKHO.get_slur_count(M9aE)\n ghFx = YKHO.get_violent_word_count(M9aE)\n p1kx = AWOd * (ghFx + 1) * (El7S + 1)\n return p1kx",
"def JybI(YKHO, l5Ny):\n ... | [
"0.85296327",
"0.82400197",
"0.81915534",
"0.8187007",
"0.81855565",
"0.81248415",
"0.8120135",
"0.8066295",
"0.8063533",
"0.8042583",
"0.8040192",
"0.80246836",
"0.8018919",
"0.7968929",
"0.7967751",
"0.79237264",
"0.7914289",
"0.7904865",
"0.78776073",
"0.7873493",
"0.78237... | 0.87191117 | 0 |
Return billed amount from starting current read and prior amount. | def U88P(n9Ir, JUyo, atgA, rTME):
TJBm = Gic5(atgA, rTME)
mnjn = TJBm + rj3G + NB_3 + Z34z
mnjn = mnjn + GF6v + stac
akib = JUyo - n9Ir
mnjn = mnjn + d1TT(akib)
mnjn = mnjn + t4QA(akib)
return round(mnjn, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qWbc(YKHO):\n wMl7 = YKHO.balance_checker()\n if wMl7 > gCuF.MIN_BALANCE:\n YKHO.log(u'Current balance %s - no need to refill', wMl7)\n return 0\n zOPo = 250 - wMl7\n zOPo = max(gCuF.MIN_RECHARGE_AMOUNT, zOPo)\n zOPo = min(gCuF.MAX_RECHARGE_AMOUNT, zOPo)\n YKHO.log(u'Current bal... | [
"0.6403436",
"0.6393922",
"0.623611",
"0.6143363",
"0.6084122",
"0.60714924",
"0.6025579",
"0.60146093",
"0.5993548",
"0.59166485",
"0.5854394",
"0.5821789",
"0.5821789",
"0.58194",
"0.58105135",
"0.5799483",
"0.5792244",
"0.5789511",
"0.5759622",
"0.57543504",
"0.57448447",
... | 0.0 | -1 |
Return billed amount from starting current read and prior amount. | def tg8u(n9Ir, JUyo):
SWox = ITS7.process_time_ns()
TJBm = 10.83
kVqG = 1.32
LMv5 = 2.63
rj3G = 9.01
NB_3 = 7
GF6v = 2.5
stac = 1.0
Z34z = 0.5
mnjn = TJBm + rj3G + NB_3 + Z34z
mnjn = mnjn + GF6v + stac
if JUyo - n9Ir > 3000:
je9t = kVqG * 3
mnjn = mnjn + j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qWbc(YKHO):\n wMl7 = YKHO.balance_checker()\n if wMl7 > gCuF.MIN_BALANCE:\n YKHO.log(u'Current balance %s - no need to refill', wMl7)\n return 0\n zOPo = 250 - wMl7\n zOPo = max(gCuF.MIN_RECHARGE_AMOUNT, zOPo)\n zOPo = min(gCuF.MAX_RECHARGE_AMOUNT, zOPo)\n YKHO.log(u'Current bal... | [
"0.6404117",
"0.6392822",
"0.623599",
"0.614444",
"0.6085856",
"0.60711557",
"0.6024598",
"0.60133195",
"0.59938496",
"0.59157515",
"0.58553416",
"0.5821726",
"0.5821726",
"0.5819388",
"0.58111423",
"0.5798478",
"0.57919216",
"0.57900596",
"0.57592374",
"0.5754819",
"0.574498... | 0.5549563 | 49 |
Returns a list of the versions for a resource of type file at the provided reference. MUST return CODE_NOT_FOUND if the reference does not exist. MUST return CODE_OK and MUST return an empty list if no versions are available. | def Wcq7(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L6MF(YKHO):\n return YKHO.properties.get('Versions', skuz(YKHO.context, oudJ('versions', YKHO.resource_path)))",
"def UW8p(ukXE):\n bD7m = 'https://api.github.com/repos/%s/%s-%s/tags' % (qnl3, jDML, ukXE)\n _hkX = _hSU.get(bD7m)\n if _hkX.status_code != 200:\n print('Got non 200 response: ... | [
"0.60266143",
"0.60238117",
"0.592397",
"0.58692455",
"0.58581424",
"0.5769318",
"0.574177",
"0.5735941",
"0.5675399",
"0.5597012",
"0.55813646",
"0.5559301",
"0.5554511",
"0.5551943",
"0.5508509",
"0.5440488",
"0.5434794",
"0.5414156",
"0.5402081",
"0.53957987",
"0.53813297"... | 0.5911123 | 3 |
Select next tokens randomly from the top k possible next tokens. Samples from a categorical distribution over the ``keep_topk`` words using the category probabilities ``logits / sampling_temp``. | def Eh3s(KeL5, _Ogg, DwjY):
if _Ogg == 0.0 or DwjY == 1:
wiVh, ttCd = KeL5.topk(1, dim=-1)
if _Ogg > 0:
wiVh /= _Ogg
else:
KeL5 = ht2j.div(KeL5, _Ogg)
if DwjY > 0:
HXXN, SbUR = ht2j.topk(KeL5, DwjY, dim=1)
h6G8 = HXXN[:, -1].view([-1, 1])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yRwn(H42b, KeL5, CtWL):\n zFhB = KeL5.squeeze(0)[-1]\n Dc5P, Bh_I = ht2j.topk(zFhB, k=H42b)\n Acvy = oyIN.random.choice(Bh_I.tolist())\n Ghho = CtWL[Acvy]\n return (Acvy, Ghho)",
"def VUMo(YKHO, BcCR, H42b=50):\n tMZv = [YKHO.tokenizer.encode('<sos>').ids[0]]\n Pha6 = ZylS.expand_dims(tM... | [
"0.712426",
"0.70766664",
"0.67227644",
"0.6479551",
"0.6477976",
"0.6463837",
"0.64213717",
"0.63429713",
"0.63168955",
"0.6315221",
"0.6308631",
"0.6302911",
"0.62879",
"0.62810606",
"0.62810606",
"0.6268262",
"0.62662035",
"0.62460226",
"0.62460226",
"0.62460226",
"0.62460... | 0.637833 | 7 |
Retrieve the pixel locations corresponding to a segmentID. | def qsB6(YKHO, zQvj=1):
lRYc = YKHO.ri
YRbF = zQvj
if lRYc[YRbF + 1] > lRYc[YRbF]:
or8S = lRYc[lRYc[YRbF]:lRYc[YRbF + 1]]
or8S = PJ4f(YKHO.dims, or8S, dimensions=True)
else:
or8S = (XTiz.array([]), XTiz.array([]))
return or8S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pai1(PXIy):\n uUWh = [[] for bGrB in range(PXIy.max() + 1)]\n for (WKvO, LVAh), yVx1 in oyIN.ndenumerate(PXIy):\n uUWh[yVx1].append((WKvO, LVAh))\n return oyIN.array([oyIN.array(hTWD) for hTWD in uUWh])",
"def UO31(YKHO, WpAY):\n HQNz = f'/api/file/segments/{WpAY}'\n return YKHO._get(HQ... | [
"0.68219876",
"0.6025922",
"0.60007894",
"0.5723184",
"0.5668457",
"0.56398934",
"0.5561133",
"0.55506575",
"0.55435455",
"0.5541759",
"0.5478856",
"0.5443575",
"0.54361236",
"0.53953004",
"0.53803194",
"0.5362812",
"0.5343439",
"0.5335269",
"0.5300222",
"0.5295925",
"0.52889... | 0.7583596 | 0 |
Function that creates a Flask application. App configuration is set here. | def LUif() -> L2w0:
P4t4 = L2w0(__name__, static_url_path='/static')
P4t4.config.from_pyfile('config.py')
with P4t4.app_context():
lyVk()
TB6O(P4t4)
Mrxz(P4t4)
GjwV(P4t4)
hNKQ(P4t4)
P4t4.before_request(miXd)
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z_uJ():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(PSrQ)\n P4t4.config.from_object(Hy7s.environ.get('APP_SETTINGS'))\n return P4t4",
"def LUif():\n bo34 = G9jH.getLogger(__name__)\n bo34.info('Setting up Flask application...')\n P4t4 = L2w0(__name__)\n uVAu(P4t4, KJT5())\n b... | [
"0.88669866",
"0.878626",
"0.8786",
"0.8768423",
"0.87585574",
"0.8757774",
"0.8756618",
"0.874888",
"0.8746353",
"0.8702948",
"0.863967",
"0.8625693",
"0.8618062",
"0.86149746",
"0.85963714",
"0.85866445",
"0.85837126",
"0.8574412",
"0.85741097",
"0.85551053",
"0.85543704",
... | 0.87780315 | 3 |
Convert image from XYZ to LMS | def CxYX(VXjJ, xIkP):
WKvO, LVAh, epBp = VXjJ.shape
QVTa = VXjJ.transpose(2, 0, 1).reshape(3, -1)
kx7k = oyIN.matmul(xIkP, QVTa)
return kx7k.reshape(epBp, WKvO, LVAh).transpose(1, 2, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dxbh(VXjJ, xIkP):\n return CxYX(wO5D(VXjJ), xIkP)",
"def _1u1(VXjJ, xIkP):\n vC9B, r8hN, KCHu = VXjJ.shape\n QVTa = VXjJ.transpose(2, 0, 1).reshape(3, -1)\n YnYo = oyIN.matmul(oyIN.linalg.inv(xIkP), QVTa)\n return YnYo.reshape(KCHu, vC9B, r8hN).transpose(1, 2, 0)",
"def deRz(RM3a: ArrayLike)... | [
"0.705328",
"0.66707677",
"0.66019154",
"0.6459611",
"0.6322055",
"0.62992954",
"0.608342",
"0.60764027",
"0.6059209",
"0.6051124",
"0.595137",
"0.590789",
"0.5897655",
"0.5874024",
"0.58454525",
"0.5835486",
"0.5832423",
"0.5824716",
"0.5817912",
"0.5710608",
"0.5704376",
... | 0.70590496 | 0 |
Return a list of identity APIs available on the server and the data associated with them. | def xmza(YKHO, cI0f=False):
if cI0f:
return YKHO._available_versions
L6MF = []
for Ty9i in YKHO._available_versions:
try:
jGRS = Ty9i['status']
except KeyError:
I45O.warning('Skipping over invalid version data. No stability status in version.')
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWtV(YKHO) -> dict:\n try:\n TLbt = YKHO._atmo_get_req('/api/v2/identities')\n except VrQA as e:\n raise VrQA(str(tTpl) + ' Fail to list all identity') from tTpl\n return TLbt['results']",
"def list(YKHO, **B2fa):\n return super(YLQl, YKHO).list(**B2fa)",
"def list(YKHO, **B2fa):\... | [
"0.7416802",
"0.67709756",
"0.6689854",
"0.6555294",
"0.65462774",
"0.6248169",
"0.6170497",
"0.61696607",
"0.6113517",
"0.6105131",
"0.60604596",
"0.6019267",
"0.59948677",
"0.59893066",
"0.5985452",
"0.5922923",
"0.5913119",
"0.5909158",
"0.5887019",
"0.58809084",
"0.584535... | 0.0 | -1 |
Return a dictionary of factory functions for available API versions. | def QmvA(YKHO, cI0f=False, **B2fa):
L6MF = dict()
Qdn1 = YKHO.available_versions(unstable=cI0f)
lCvM = YKHO._get_client_constructor_kwargs(kwargs_dict=B2fa)
for vL7S in Qdn1:
try:
Ty9i = YKHO._get_factory_from_response_entry(vL7S, **lCvM)
except Bx6I.DiscoveryFailure as e:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L6MF():\n import sys\n return {'python': sys.version, 'ida': GTZY.get_kernel_version(), 'hexrays': GTZY.get_hexrays_version() if GTZY.init_hexrays_plugin() else None}",
"def c3id():\n return [{'class': E9na, 'name': 'Numba1'}, {'class': TI7J, 'name': 'Cuda1'}, {'class': DkBX, 'name': 'Cuda2'}, {'cla... | [
"0.64550453",
"0.6419598",
"0.6361832",
"0.6311952",
"0.62870336",
"0.61524075",
"0.611578",
"0.60909295",
"0.59381354",
"0.58884954",
"0.58527577",
"0.5800856",
"0.57837975",
"0.5716451",
"0.57156134",
"0.570858",
"0.56726384",
"0.5663663",
"0.5645505",
"0.56322247",
"0.5629... | 0.6147583 | 6 |
Convert kilograms to pounds | def p5oH(Rruz):
_Aw1 = Rruz * 2.20462262185
return _Aw1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def kilograms(YKHO, OaeV, _Aw1: float):\n if not epAf.isfinite(_Aw1):\n return await OaeV.send('Invalid amount')\n await OaeV.send('{}kg'.format(round(_Aw1 * 0.4535924, 1)))",
"def jou0():\n Omr3 = input('Give me the weight in pounds!\\n')\n _Aw1 = Omr3.split(',')\n Rruz = [int(WKvO) ... | [
"0.7706709",
"0.72633994",
"0.6793195",
"0.66900647",
"0.6603207",
"0.6592539",
"0.658525",
"0.64637595",
"0.64368254",
"0.64261746",
"0.6381985",
"0.63630486",
"0.63566744",
"0.63191354",
"0.6314423",
"0.6262311",
"0.6255376",
"0.624417",
"0.62137413",
"0.6198063",
"0.619357... | 0.7532313 | 2 |
Convert kilograms to pounds | def p5oH(Rruz):
_Aw1 = Rruz * 2.20462262185
return _Aw1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def kilograms(YKHO, OaeV, _Aw1: float):\n if not epAf.isfinite(_Aw1):\n return await OaeV.send('Invalid amount')\n await OaeV.send('{}kg'.format(round(_Aw1 * 0.4535924, 1)))",
"def jou0():\n Omr3 = input('Give me the weight in pounds!\\n')\n _Aw1 = Omr3.split(',')\n Rruz = [int(WKvO) ... | [
"0.7705347",
"0.72640955",
"0.6792424",
"0.66910565",
"0.6604526",
"0.659116",
"0.65834916",
"0.64642763",
"0.6437709",
"0.6426199",
"0.6381174",
"0.6363031",
"0.63545555",
"0.6317693",
"0.6313647",
"0.6263221",
"0.62554073",
"0.6243273",
"0.62129366",
"0.61971676",
"0.619373... | 0.75337034 | 1 |
computes normalized densities per slice (quadrant by default) for all images | def SZiA(YKHO, Hacr=4, _xFV=False, g1EG=1, zlGF=False) -> oyIN.array:
jJeC = oyIN.empty((0, 2), float)
for LNo8 in PRqg.tqdm(YKHO.images, desc='Images'):
H4Jy = LNo8.compute_cytoplasmic_density()
ede1 = LNo8.get_or_compute_quadrant_densities(Hacr, _xFV, g1EG, zlGF)
f_9U = Hacr * g1EG
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(Yw_3):\n Yw_3 -= Yw_3.mean(axis=0, keepdims=True)\n Yw_3 /= oyIN.maximum(Yw_3.std(axis=0, keepdims=True), 0.3)",
"def NkkI(xkjI, vPci=(3, 3), YPaw=(1, 1)):\n xkjI = xkjI.astype('float32')\n xMux = 1\n Tsl8 = 1\n Kwv4 = xkjI.shape\n if len(Kwv4) == 4:\n xkjI = KzvP(xkjI, vPci,... | [
"0.6365709",
"0.6342485",
"0.63049763",
"0.6185508",
"0.6162559",
"0.614336",
"0.6100677",
"0.60816187",
"0.60671127",
"0.6035419",
"0.60290766",
"0.60290766",
"0.60247225",
"0.5944113",
"0.5900583",
"0.58831304",
"0.5873863",
"0.5860128",
"0.5858749",
"0.5845693",
"0.5818431... | 0.56520236 | 40 |
Returns the number of blobs in the store. | def ectM(YKHO):
return len(YKHO.__blobs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWB0(w2B8):\n try:\n N1p7 = w2B8.cursor()\n N1p7.execute('\\n SELECT COUNT(*)\\n FROM blobs\\n ')\n nPrm = N1p7.fetchone()\n if nPrm is None:\n return 0\n return nPrm[0]\n except Exception as ex:\n raise MEUK(a... | [
"0.80478823",
"0.78371745",
"0.7658451",
"0.73601335",
"0.7283281",
"0.72634524",
"0.7255945",
"0.72240686",
"0.72070223",
"0.7128654",
"0.70434374",
"0.70434374",
"0.7037877",
"0.7037877",
"0.6993624",
"0.69650626",
"0.6961509",
"0.69576913",
"0.69400537",
"0.69289863",
"0.6... | 0.83057606 | 0 |
Returns the number of blobs in the store. | def dIng(YKHO):
return YKHO.__blobs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ectM(YKHO):\n return len(YKHO.__blobs)",
"def YWB0(w2B8):\n try:\n N1p7 = w2B8.cursor()\n N1p7.execute('\\n SELECT COUNT(*)\\n FROM blobs\\n ')\n nPrm = N1p7.fetchone()\n if nPrm is None:\n return 0\n return nPrm[0]... | [
"0.8305745",
"0.8047767",
"0.78370565",
"0.7658654",
"0.73603815",
"0.7282989",
"0.72640437",
"0.7256859",
"0.72253203",
"0.72078466",
"0.71297956",
"0.70444095",
"0.70444095",
"0.70381296",
"0.70381296",
"0.69931227",
"0.69655913",
"0.69627094",
"0.6957159",
"0.6941524",
"0.... | 0.0 | -1 |
(list), (list) > set() Given two lists of string containing bird names, returns a set of unique\ bird names (no duplicates) common to both bird watcher's lists. | def RfYh():
vASe = []
OQAR = []
yzQ0 = set()
for ZfUD in vASe:
if ZfUD in OQAR:
yzQ0.add(ZfUD)
return yzQ0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wZb6(YKHO, mino):\n Aofo = set(mino[0])\n for KCHu in mino[1:]:\n Aofo.intersection_update(KCHu)\n return Aofo",
"def vPAp():\n iHrl = ['Bulbasaur', 'Charmander', 'Squirtle']\n X1zw = ['Caterpie', 'Pidgey', 'Squirtle']\n fuxk = set(iHrl)\n t3Zq = set(X1zw)\n return fuxk.union(t... | [
"0.71602875",
"0.70684",
"0.69982904",
"0.6854183",
"0.67871636",
"0.6759331",
"0.6708059",
"0.6687455",
"0.66579664",
"0.66525877",
"0.662136",
"0.6525921",
"0.6514687",
"0.649344",
"0.64754534",
"0.6470948",
"0.6457905",
"0.6446864",
"0.64448845",
"0.6439868",
"0.64136106",... | 0.786214 | 0 |
Given a sequence, return a list of the unique items without preserving ordering. | def VzYJ(aWuw):
try:
exwG = len(aWuw)
except TypeError:
return PYMC(aWuw)
try:
return list(set(aWuw))
except TypeError:
pass
try:
a1PO = sorted(aWuw)
except TypeError:
pass
else:
assert exwG > 0
XVAW = a1PO[0]
G8V9 = YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GF9x(Q6uT):\n PwWw = set()\n return [WKvO for WKvO in Q6uT if not (WKvO in PwWw or PwWw.add(WKvO))]",
"def kcwm(Q6uT):\n return list(set(Q6uT))",
"def kcwm(Q6uT):\n return list(set(Q6uT))",
"def kcwm(Q6uT):\n return list(set(Q6uT))",
"def kcwm(Q6uT):\n return list(set(Q6uT))",
"def ... | [
"0.8843743",
"0.87242055",
"0.86071837",
"0.86071837",
"0.86071837",
"0.85967016",
"0.84970623",
"0.849502",
"0.8493399",
"0.8443662",
"0.8443662",
"0.8407897",
"0.8345775",
"0.8318372",
"0.8275741",
"0.8196187",
"0.81393856",
"0.8019886",
"0.8011022",
"0.8003996",
"0.7964957... | 0.7463433 | 32 |
Given a sequence, return a list of the unique items while preserving ordering. For performance reasons, only use this if you really do need to preserve the ordering. | def PYMC(OxJJ):
return list(UfHm(OxJJ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GF9x(Q6uT):\n PwWw = set()\n return [WKvO for WKvO in Q6uT if not (WKvO in PwWw or PwWw.add(WKvO))]",
"def zsbE(YKHO, Q6uT):\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in Q6uT if not (WKvO in PwWw or aygV(WKvO))]",
"def kcwm(Q6uT):\n return list(set(Q6uT))",
"def kcwm(Q6uT... | [
"0.85652727",
"0.85084224",
"0.8507424",
"0.8351883",
"0.8351883",
"0.8351883",
"0.83300054",
"0.83047456",
"0.8277807",
"0.8277807",
"0.82386494",
"0.8168348",
"0.8153696",
"0.8138174",
"0.8042117",
"0.7882458",
"0.78088236",
"0.7728783",
"0.77241105",
"0.76789874",
"0.76755... | 0.695057 | 51 |
Given a sequence, yield unique items while preserving ordering. For performance reasons, only use this if you really do need to preserve the ordering. | def UfHm(OxJJ):
KCHu = set()
qiJt = KCHu.add
A3OT = []
wwUd = A3OT.append
OxJJ = iter(OxJJ)
while True:
try:
for WKvO in OxJJ:
if WKvO not in KCHu:
yield WKvO
qiJt(WKvO)
except TypeError:
if WKvO not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MsCz(Q6uT):\n PwWw = set()\n for ZfUD in Q6uT:\n if ZfUD not in PwWw:\n PwWw.add(ZfUD)\n yield ZfUD",
"def GF9x(Q6uT):\n PwWw = set()\n return [WKvO for WKvO in Q6uT if not (WKvO in PwWw or PwWw.add(WKvO))]",
"def cize(Q6uT):\n PwWw = set()\n return [WKvO for ... | [
"0.8440612",
"0.8118658",
"0.7817484",
"0.76841354",
"0.7674822",
"0.7622231",
"0.76069355",
"0.76069355",
"0.759183",
"0.7573737",
"0.7573737",
"0.7573737",
"0.7492172",
"0.74854994",
"0.7470057",
"0.74294096",
"0.73873234",
"0.73384",
"0.7297362",
"0.7244549",
"0.72416455",... | 0.66478765 | 58 |
Closes the request session. | def _EHv(YKHO):
YKHO.client.close()
YKHO.logger.debug('HTTP session closed.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x9p9(YKHO):\n YKHO.session.close()",
"def x9p9(YKHO):\n YKHO.session.close()",
"def DDI8(YKHO):\n if YKHO.session is None:\n return\n try:\n YKHO.session.close()\n except G4JS.RequestException:\n if not YKHO.fail_silently:\n raise\n finally:\n YKHO.s... | [
"0.78168684",
"0.7757171",
"0.76583713",
"0.7611066",
"0.76042396",
"0.7548058",
"0.7508113",
"0.75016254",
"0.75016254",
"0.75016254",
"0.75016254",
"0.75016254",
"0.75016254",
"0.75016254",
"0.7497566",
"0.7466094",
"0.7466094",
"0.7438851",
"0.7438851",
"0.7438851",
"0.743... | 0.66159433 | 71 |
Get the latest information for symbol. | def PidA(YKHO, **B2fa):
if YKHO.spot is True or B2fa.get('spot', '') is True:
ZI14 = '/spot/quote/v1/ticker/24hr'
else:
ZI14 = '/v2/public/tickers'
return YKHO._submit_request(method='GET', path=YKHO.endpoint + ZI14, query=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gc4l(YKHO):\n gIsw = Hy7s.path.join(YKHO.base_data_folder, 'last_updated')\n if Hy7s.path.exists(gIsw):\n nUeQ = open(gIsw, 'r')\n o61b = nUeQ.read()\n nUeQ.close()\n return o61b\n else:\n return None",
"def yCy7(YKHO):\n return YKHO.market.get_symbol_details()"... | [
"0.71772766",
"0.7125653",
"0.7091891",
"0.693844",
"0.6884312",
"0.68826514",
"0.6844027",
"0.67771775",
"0.67771775",
"0.67771775",
"0.6776996",
"0.67538154",
"0.6670159",
"0.6644743",
"0.6644743",
"0.6644743",
"0.6637854",
"0.663578",
"0.6572049",
"0.6541496",
"0.6533793",... | 0.73389935 | 0 |
Get the last traded price. | def hmt_(YKHO, **B2fa):
return YKHO._submit_request(method='GET', path=YKHO.endpoint + '/spot/quote/v1/ticker/price', query=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IcKI(YKHO):\n if YKHO.trade_data:\n return YKHO.trade_data[-1]['price']\n return None",
"def N_Zi(YKHO):\n return YKHO.__last_price",
"def mUwC(YKHO):\n return YKHO.price_history[-1]",
"def gxV2(YKHO, o61b):\n return lWPh(YKHO.client.fetchTicker(o61b['symbol'])['last'])",
"def Voz... | [
"0.8616578",
"0.84781927",
"0.816255",
"0.79420465",
"0.7937732",
"0.7867199",
"0.786314",
"0.78582805",
"0.77785397",
"0.7670755",
"0.7625025",
"0.7582326",
"0.74781173",
"0.7413526",
"0.7251948",
"0.72452956",
"0.71759444",
"0.71601915",
"0.71501654",
"0.7146679",
"0.704231... | 0.82727313 | 2 |
Gets the total amount of unsettled contracts. In other words, the total number of contracts held in open positions. | def qVmF(YKHO, **B2fa):
return YKHO._submit_request(method='GET', path=YKHO.endpoint + '/v2/public/open-interest', query=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wnnw(Emd4):\n n2vK = GhOX.query(Emd4).all()\n FM0v = 0\n for ZfUD in n2vK:\n if not ZfUD.payment_received:\n FM0v = FM0v + ZfUD.num_tickets\n return FM0v",
"def o6MN():\n return YlYY.positions_total()",
"def KDBT(YKHO) -> int:\n return YKHO._total_unstake_amount.get()",
... | [
"0.6641279",
"0.65479696",
"0.6327415",
"0.63228065",
"0.6307379",
"0.62471265",
"0.62417763",
"0.61821985",
"0.6174655",
"0.60208833",
"0.6020171",
"0.60114443",
"0.59743696",
"0.595412",
"0.59424764",
"0.59182847",
"0.5908288",
"0.58627635",
"0.5858615",
"0.5832485",
"0.581... | 0.0 | -1 |
Find the index in source list of the targeted ID. | def sG_q(JZXy, pan_, H5ew):
return next((YRbF for YRbF, r845 in enumerate(JZXy) if r845[H5ew] == pan_[H5ew])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kS1Y(YKHO, pan_):\n for YRbF in range(len(YKHO)):\n if YKHO[YRbF][0] == pan_:\n return YRbF\n return None",
"def kS1Y(YKHO, pan_):\n for d6pt, SjLr in enumerate(YKHO):\n if SjLr[0] == ZfUD:\n return d6pt\n return None",
"def kS1Y(YKHO, pan_):\n IAiS = 0\n ... | [
"0.7416203",
"0.73686874",
"0.7212837",
"0.7156265",
"0.70294267",
"0.6981138",
"0.6945736",
"0.6944287",
"0.6921892",
"0.6896987",
"0.6841814",
"0.68399423",
"0.6815895",
"0.6807568",
"0.67968535",
"0.67811024",
"0.67414993",
"0.6726221",
"0.6699875",
"0.66137344",
"0.655437... | 0.7323628 | 2 |
An initial board shall be a 2D array of SIZE x SIZE | def zghv(YKHO):
iBIi = KFny()
YKHO.assertEqual(len(iBIi), gg4D)
for rdlD in range(gg4D):
YKHO.assertEqual(len(iBIi[rdlD]), gg4D) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZ2Y():\n iBIi = [[0 for fvDH in range(Z9rn.NUM_CELLS)] for rdlD in range(Z9rn.NUM_CELLS)]\n for YRbF in range(2):\n iBIi = T8zw(iBIi)\n return iBIi",
"def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO =... | [
"0.7586948",
"0.7564778",
"0.7551548",
"0.74349034",
"0.7388185",
"0.7375811",
"0.73734456",
"0.7357686",
"0.7320788",
"0.72097105",
"0.7097438",
"0.7076039",
"0.7061235",
"0.705612",
"0.7032306",
"0.7032124",
"0.7014393",
"0.70058346",
"0.6983502",
"0.6926117",
"0.6920478",
... | 0.0 | -1 |
Tests that true is returned since tile 2048 is present in board | def ZP7a(YKHO):
iBIi = [[2, 4, 8, 16], [16, 8, 4, 2], [32, 2048, 128, 256], [256, 128, 64, 32]]
bGrB, kTv5, bGrB = YgOb(iBIi)
YKHO.assertTrue(kTv5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sGOc(iBIi):\n for fvDH in iBIi:\n if 2048 in fvDH:\n return True\n return False",
"def CCZs(iBIi):\n eL5z = iBIi[0, 0]\n for WKvO in range(Wl2e):\n for LVAh in range(dVi8):\n if iBIi[WKvO, LVAh] != eL5z:\n return False\n return True",
"def I... | [
"0.79486626",
"0.7916642",
"0.78317",
"0.7780062",
"0.7609631",
"0.7531401",
"0.751463",
"0.7437821",
"0.74226105",
"0.7370716",
"0.73667735",
"0.73662215",
"0.7365943",
"0.7361949",
"0.73300636",
"0.73176944",
"0.7307048",
"0.72937",
"0.727281",
"0.72147244",
"0.72107005",
... | 0.0 | -1 |
Tests that false is returned since tile 2048 is not present in board | def M0lB(YKHO):
iBIi = [[2, 4, 8, 16], [16, 8, 4, 2], [32, 2, 128, 256], [256, 128, 64, 32]]
bGrB, kTv5, bGrB = YgOb(iBIi)
YKHO.assertFalse(kTv5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ij5W(eL5z) -> bool:\n return True",
"def CCZs(iBIi):\n eL5z = iBIi[0, 0]\n for WKvO in range(Wl2e):\n for LVAh in range(dVi8):\n if iBIi[WKvO, LVAh] != eL5z:\n return False\n return True",
"def JYgA(YKHO, eL5z):\n rdlD = eL5z[0]\n fvDH = eL5z[1]\n retur... | [
"0.79511505",
"0.79220337",
"0.767339",
"0.75842065",
"0.7577544",
"0.75226563",
"0.74542123",
"0.7444765",
"0.7409935",
"0.73758006",
"0.7367816",
"0.7347858",
"0.7345756",
"0.7213585",
"0.7182188",
"0.7156558",
"0.7143653",
"0.71399194",
"0.71220213",
"0.71052694",
"0.71008... | 0.67696977 | 89 |
Returns the current proxy list, specifying for each proxy it's name, id, and parent (input) proxy id. A 'parent' of '0' means the proxy has no input. | def list(YKHO, zZMq=None):
Odov = zpQX.ProxyManager().GetProxiesInGroup('sources')
eJGh = YKHO.getView(zZMq)
JynK = {'view': eJGh.GetGlobalIDAsString()}
W56b = []
for H5ew in Odov:
X14R = {}
X14R['name'] = H5ew[0]
X14R['id'] = H5ew[1]
kMyc = Odov[H5ew]
sWfS = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vb4h(YKHO):\n ySVl = []\n for Q6kx in YKHO._my_map['parentNodes']:\n ySVl.append(s8iI(Q6kx._my_map, runtime=YKHO._runtime, proxy=YKHO._proxy, lookup_session=YKHO._lookup_session))\n return Kss3(ySVl)",
"def Wzts():\n Odov = []\n U34r = DImo()\n for YRbF in U34r:\n jbXL = {}\n ... | [
"0.58377856",
"0.57380533",
"0.5686033",
"0.56735635",
"0.56497705",
"0.5613978",
"0.558086",
"0.55766886",
"0.5571807",
"0.5562023",
"0.55355036",
"0.55328214",
"0.55220294",
"0.54989105",
"0.54928327",
"0.5489025",
"0.5414416",
"0.5390919",
"0.5358307",
"0.5353591",
"0.5341... | 0.5738057 | 1 |
Confirmation email contains link to complete registration | def H275(YKHO):
MMYY = YKHO.environ.get_config_for('mbox_file')
def UzDi():
eWWu = gGzT.mbox(MMYY)
assert len(eWWu) == 1
BfDw.try_until(1, UzDi)
YKHO.mbox = gGzT.mbox(MMYY)
for H5ew, Ol8d in YKHO.mbox.items():
continue
BR7U = YKHO.environ.get_config_for('trailhead_url')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vfwt():\n BUw6 = 'your_register_email_@gmail.com'\n l5Ny = jEqF(query=f'to: {BUw6} and Welcome to Automation Testing')\n l5Ny = l5Ny.replace('=\\n', '').replace('\\r', '').replace('=3D', '=')\n PtKn = ZbWC.search('href=\"(.+?)>Confirm', l5Ny).group(1)\n return ZbWC.search('[\\'\"]?([^\\'\" >]+)'... | [
"0.7374224",
"0.7158193",
"0.7093006",
"0.7047788",
"0.701282",
"0.7001911",
"0.6864159",
"0.6721093",
"0.6706364",
"0.6693325",
"0.6650488",
"0.6645012",
"0.66409695",
"0.6637049",
"0.6604873",
"0.66042674",
"0.65116787",
"0.6511308",
"0.6472487",
"0.6472182",
"0.64400244",
... | 0.63349444 | 35 |
Returns list of players ids | def ELxn(YKHO):
return [WKvO[0] for WKvO in YKHO.players] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAjN():\n w2B8 = Ykhp()\n Z9rn = w2B8.cursor()\n Z9rn.execute('SELECT id from standing')\n Bwa6 = list(Hs6x.chain(*Z9rn.fetchall()))\n w2B8.close()\n return Bwa6",
"def A07C(YKHO):\n return [XP5J['id'] for XP5J in YKHO.response['data']['relationships']['players']['data']]",
"def z4tM(Y... | [
"0.8794889",
"0.83707786",
"0.80886245",
"0.7528768",
"0.7526312",
"0.7372268",
"0.73582953",
"0.7349502",
"0.730645",
"0.7262476",
"0.71699154",
"0.7127386",
"0.71212035",
"0.71137655",
"0.7099744",
"0.70750535",
"0.702375",
"0.7008639",
"0.7006688",
"0.6930152",
"0.6930152"... | 0.8978788 | 0 |
Returns list of players instance from ids | def vKS6(YKHO, OQiH):
zSH8 = [WKvO[0] for WKvO in YKHO.players]
Bwa6 = []
for id in zSH8:
for XP5J in OQiH:
if XP5J.id == id:
Bwa6.append(XP5J)
return Bwa6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HU4L(YKHO, rsqG: List[int]) -> x1iM[mVZ4]:\n Bwa6 = []\n for oyg0 in YKHO.players:\n if oyg0.id in rsqG:\n Bwa6.append(oyg0)\n return Bwa6",
"def ELxn(YKHO):\n return [WKvO[0] for WKvO in YKHO.players]",
"def dPXt():\n return Bwa6",
"def dPXt(YKHO):\n rsqG = [int(LZbL)... | [
"0.78933",
"0.7420937",
"0.71798134",
"0.7170169",
"0.7169718",
"0.70589674",
"0.6996478",
"0.6914684",
"0.67621046",
"0.6720285",
"0.6716645",
"0.66942483",
"0.667929",
"0.6624204",
"0.6612394",
"0.65875113",
"0.65875113",
"0.65875113",
"0.65633136",
"0.65542394",
"0.6552151... | 0.81240016 | 0 |
Update round end date to db | def oAuq(YKHO, YbVa, TLI7):
NCls = FMJQ(TLI7 + '/db.json')
wSIr = NCls.table('tournaments')
for a1PO in wSIr:
if a1PO.doc_id == YbVa.id:
a1PO['rounds'][-1]['end'] = YbVa.rounds[-1].end
wSIr.update(a1PO, doc_ids=[YbVa.id])
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_7j(YKHO, eiFi: datetime) -> None:\n if eiFi > YKHO.enddate:\n raise ValueError('The enddate should not be greater then the current enddate.')\n if eiFi < YKHO.startdate:\n raise ValueError('The enddate should not be smaller then the current startdate.')\n fwfe = (eiFi - YKHO.startdate)... | [
"0.6897984",
"0.67002296",
"0.6647236",
"0.6488918",
"0.6488918",
"0.6488918",
"0.64706856",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6363058",
"0.6327919",
... | 0.6619175 | 3 |
Sum up all the spectral counts for all the proteins in a set of fractionations. Filtered s.t. any returned protein will have at least min_count counts in one fraction of one of the fractionations. | def dOMn(Vb5F, ziIx=2):
iCFL = geyT.all_prots(Vb5F, min_count=ziIx)
bQ2u = g760.defaultdict(float)
for eHNT in Vb5F:
tTpl = geyT.load_elution(eHNT)
zPqQ = oyIN.sum(oyIN.array(tTpl.mat), axis=1)
j1xb = sum(zPqQ)
qI4x = 1 / (j1xb * len(Vb5F))
for XP5J, hlI9 in zip(tTpl.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QiXa(YKHO, BWz1):\n BFeB = oRi_(lambda: oRi_(int))\n for H5ew in BWz1.keys():\n wjRY = float(sum(BWz1[H5ew].values()))\n for uf9D, UHFx in BWz1[H5ew].items():\n BFeB[H5ew][uf9D] = UHFx / wjRY\n return BFeB",
"def jpyd(YKHO):\n UHFx = oyIN.bincount(YKHO.scores)[1:]\n nN... | [
"0.5383357",
"0.5380295",
"0.52911365",
"0.52315134",
"0.5150812",
"0.51302487",
"0.5124768",
"0.5096493",
"0.5065636",
"0.50649357",
"0.5053519",
"0.50437975",
"0.5036578",
"0.50056195",
"0.49997658",
"0.49931794",
"0.49840114",
"0.49812704",
"0.4948975",
"0.49365443",
"0.49... | 0.6135191 | 0 |
pads seq with leading 0s up to length pad | def KPTa(UOVU, hVLt):
assert len(UOVU) <= hVLt
return [0] * (hVLt - len(UOVU)) + UOVU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gI2r(Q6uT):\n tsWk = len(Q6uT)\n oMWu = (DLMa - tsWk) // 2\n N8kD = DLMa - oMWu - tsWk\n Q6uT = oMWu * '-' + Q6uT + N8kD * '-'\n return Q6uT",
"def BVhq(YKHO, aWuw):\n FlGb = aWuw[0]\n if YKHO.sequence_length is not None:\n while len(aWuw) < YKHO.sequence_length:\n aWuw... | [
"0.8184844",
"0.8113659",
"0.7995212",
"0.79008615",
"0.7721826",
"0.7710681",
"0.7668803",
"0.7584773",
"0.7559376",
"0.74910176",
"0.7418401",
"0.7414153",
"0.73193073",
"0.7198235",
"0.71881396",
"0.71817774",
"0.717504",
"0.7160909",
"0.7140496",
"0.7131651",
"0.7108155",... | 0.0 | -1 |
Initializes a `CannedEstimator` instance. | def FIMM(YKHO, sdCG, dyeT, WaDF, sSiH=None, lSKn=None, u2V1='mean', WNA5=None, eG0V=None, B2o6=1, K0do='Adagrad', qLGn='Adagrad', XBxI=None, GPtr=None, _Ohj=None, yDqo=ZylS.float32):
GPtr = Wy8R.maybe_overwrite_model_dir_and_session_config(GPtr, eG0V)
eG0V = GPtr.model_dir
dyeT = jth9.deepcopy(dyeT)
k3l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BHCt=None):\n YKHO.estimator = BHCt",
"def FIMM(YKHO, BHCt=axnu()):\n YKHO.estimator = BHCt",
"def FIMM(YKHO, BHCt, N5XC=10, uxrk=1.0, OHct=True, t3eI=None):\n YKHO.estimator = BHCt\n YKHO.n_estimators = N5XC\n YKHO.max_samples = uxrk\n YKHO.bootstrap = OHct\n YKHO.random_st... | [
"0.68558073",
"0.65887356",
"0.65231985",
"0.6245867",
"0.62227345",
"0.61817795",
"0.614644",
"0.6095126",
"0.60698277",
"0.60698277",
"0.60557365",
"0.60164404",
"0.59518695",
"0.58344364",
"0.57799625",
"0.5764907",
"0.57614595",
"0.5705211",
"0.56892455",
"0.56786877",
"0... | 0.6550403 | 2 |
Initializes a `CannedRegressor` instance. | def FIMM(YKHO, dyeT, WaDF, sSiH=None, lSKn=None, u2V1='mean', WNA5=None, eG0V=None, B2o6=1, yYmR=None, K0do='Adagrad', qLGn='Adagrad', XBxI=None, GPtr=None, _Ohj=None, i818=ZylS.keras.losses.Reduction.SUM_OVER_BATCH_SIZE, GT2U=None, yDqo=ZylS.float32):
GPtr = Wy8R.maybe_overwrite_model_dir_and_session_config(GPtr, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n print('==> Initializing')\n WZcn = KRni() * cR9W() + NWFI()\n Xd_j = rRIL(kernel=WZcn, alpha=0.0001, n_restarts_optimizer=3, normalize_y=True, random_state=hqJl)\n YKHO.model = jB7S(base_estimator=Xd_j, n_estimators=20, max_samples=1000, max_features=1.0, bootstrap=False, bootstrap_fe... | [
"0.6796703",
"0.6256654",
"0.6201934",
"0.6177782",
"0.5953219",
"0.58378625",
"0.57753634",
"0.577224",
"0.5690128",
"0.5671479",
"0.5661599",
"0.55893064",
"0.55888784",
"0.5577963",
"0.5576496",
"0.55677825",
"0.5550881",
"0.5508795",
"0.55029196",
"0.5486577",
"0.5429326"... | 0.0 | -1 |
Takes a distance matrix `d` of shape `[n_batch, n_particles, n_particles, 1]` and maps it onto a normalized radial basis function (RBF) kernel representation of shape `[n_batch, n_particles, n_particles, n_kernels]` via `d_{ij} > f_{ij} where `f_{ij} = (g_{ij1}, ..., g_{ijK}) / sum_{k} g_{ijk} and `g_{ijk} = exp((d_{ij... | def CcJw(Csk6: torch.Tensor, yGTL: Union[torch.Tensor, float], KMvS: Union[torch.Tensor, float]=1.0, SGf8=1e-06) -> ht2j.Tensor:
K2Zv = ht2j.exp(-(Csk6 - yGTL).pow(2) / KMvS ** 2) + SGf8
K2Zv = K2Zv / K2Zv.sum(dim=-1, keepdim=True)
return K2Zv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(nJ0e, Csk6, Mkmy, exwG, CCTw):\n RmfS = oyIN.random.randn(Csk6, Mkmy)\n H5hq = oyIN.zeros((Mkmy, Csk6))\n kkDY = []\n PaZR = []\n lWPh = YF5l(Csk6)\n k19e = U8Ke(RmfS, lWPh)\n for Wc9F in nJ0e:\n r8hN = len(Wc9F)\n MKlR = (4.0 / (3.0 * exwG)) ** 0.2\n G0jP, aKEW, ... | [
"0.63160485",
"0.6134188",
"0.61196005",
"0.60527533",
"0.59248525",
"0.5793659",
"0.5766159",
"0.57546586",
"0.5753209",
"0.5697885",
"0.567736",
"0.5661419",
"0.56418794",
"0.5641866",
"0.5585315",
"0.5564664",
"0.55472034",
"0.55299926",
"0.5515307",
"0.550948",
"0.5433082... | 0.5784494 | 6 |
Takes a distance matrix `d` of shape `[n_batch, n_particles, n_particles, 1]` and maps it onto a normalized radial basis function (RBF) kernel representation of shape `[n_batch, n_particles, n_particles, n_kernels]` via `d_{ij} > f_{ij} where `f_{ij} = (g_{ij1}, ..., g_{ijK}) / sum_{k} g_{ijk} and `g_{ijk} = exp((d_{ij... | def JprD(Csk6: torch.Tensor, yGTL: Union[torch.Tensor, float], SeLa: Union[torch.Tensor, float], VVyp=False) -> ht2j.Tensor:
gVfj = ht2j.exp(SeLa)
K2Zv = ht2j.exp(-(Csk6 - yGTL).pow(2) * gVfj.pow(2))
yPjU = K2Zv.sum(dim=-1, keepdim=True)
NJRn = K2Zv / (1e-06 + yPjU)
if VVyp:
yye1 = -2 * (Csk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(nJ0e, Csk6, Mkmy, exwG, CCTw):\n RmfS = oyIN.random.randn(Csk6, Mkmy)\n H5hq = oyIN.zeros((Mkmy, Csk6))\n kkDY = []\n PaZR = []\n lWPh = YF5l(Csk6)\n k19e = U8Ke(RmfS, lWPh)\n for Wc9F in nJ0e:\n r8hN = len(Wc9F)\n MKlR = (4.0 / (3.0 * exwG)) ** 0.2\n G0jP, aKEW, ... | [
"0.63177323",
"0.6131791",
"0.60548764",
"0.59224224",
"0.57935816",
"0.578467",
"0.5768851",
"0.5752878",
"0.5751368",
"0.5696777",
"0.567714",
"0.5660896",
"0.56400585",
"0.56396484",
"0.5583289",
"0.55642486",
"0.5547105",
"0.553037",
"0.5515207",
"0.5510025",
"0.5431641",... | 0.611839 | 2 |
Crop given image to 1/4 size centered at the centroid of given polygon | def PMKz(U61S, oSbv, nfNq, QmoE, b0Ju, ZMzA):
NL1d = G0Yq(ZMzA)
vObe = xgf0.convertLatLongToPixels(U61S, oSbv, nfNq, QmoE, b0Ju, NL1d)
S3Cm = min(max(vObe[0], U61S.size[0] / 4), U61S.size[0] * 3 / 4)
YmfI = min(max(vObe[1], U61S.size[1] / 4), U61S.size[1] * 3 / 4)
jNOo = (S3Cm - U61S.size[0] / 4, Ym... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imIE(YKHO, LNo8):\n ROpF = LNo8.shape\n EZd9 = min(ROpF[1], ROpF[2])\n EBA4 = max(ROpF[1] - ROpF[2], 0) // 2\n NZ85 = max(ROpF[2] - ROpF[1], 0) // 2\n LNo8 = ZylS.image.crop_to_bounding_box(LNo8, EBA4, NZ85, EZd9, EZd9)\n return LNo8",
"def imIE(LNo8):\n ROpF = LNo8.shape\n EZd9 = min... | [
"0.7158844",
"0.7109564",
"0.707699",
"0.7068119",
"0.70582646",
"0.70413804",
"0.70316255",
"0.7020176",
"0.69435745",
"0.6803684",
"0.678313",
"0.6764475",
"0.6751449",
"0.6743044",
"0.6712359",
"0.6693116",
"0.66892743",
"0.66872084",
"0.66858655",
"0.66856664",
"0.6654656... | 0.72071254 | 0 |
Find the area intersection of the two given polygons | def iwNT(UdKV, P38E):
hRYE = rSWe(UdKV)
WjCt = rSWe(P38E)
if not hRYE.intersects(WjCt):
return None
JeqJ = hRYE.intersection(WjCt)
if JeqJ.area == 0:
return None
iQin = []
for YRbF in range(len(JeqJ.exterior.coords.xy[0])):
iQin.append([JeqJ.exterior.coords.xy[0][YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zu8G(U9Jw, cpNR):\n EBgd = U9Jw.polygon\n HpuQ = cpNR.polygon\n Lq8X = EBgd.intersection(HpuQ)\n return Lq8X.area",
"def iISW(YKHO, it1i, BmL8):\n GNN0 = it1i[0]\n PJML = it1i[2]\n zZFf = it1i[1]\n qLkG = it1i[3]\n SHbA = BmL8[0]\n ukNm = BmL8[2]\n _LY5 = BmL8[1]\n ymns = ... | [
"0.7841005",
"0.77071255",
"0.767658",
"0.75122225",
"0.7455515",
"0.7341264",
"0.7335051",
"0.7157082",
"0.70919347",
"0.70433444",
"0.7028387",
"0.6929165",
"0.6921792",
"0.69159114",
"0.69100153",
"0.6872252",
"0.6834128",
"0.68303686",
"0.6816618",
"0.68087137",
"0.677869... | 0.6286391 | 73 |
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter. | def cfQO(tvqc, QpfX):
print('Incoming request...')
"\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n "
if tvqc['session']['new']:
WZhd({'requestId': tvqc['request']['r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])... | [
"0.6919153",
"0.6762279",
"0.6582638",
"0.6456925",
"0.6376541",
"0.62857693",
"0.6269976",
"0.6268548",
"0.6245225",
"0.6218213",
"0.62147915",
"0.61939096",
"0.6178928",
"0.6152392",
"0.61446714",
"0.6132524",
"0.613066",
"0.6050472",
"0.60074687",
"0.5980991",
"0.59355634"... | 0.64899814 | 3 |
Sends a GET request to the test endpoint. | def Gchn(YKHO, JGyi=''):
NArs = {'testParam': JGyi}
return YKHO._send('GET', 'Test_GetRequest', NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ScdL(YKHO):\n geh0 = YKHO.client.open('/v1/test', method='GET')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))",
"def Gchn(d4y1):\n geh0 = d4y1.get('/get-test')\n assert geh0.url == '{base_url}/get-test'.format(base_url=zDeW)\n assert geh0.status_code == 200\n ass... | [
"0.7902737",
"0.77976066",
"0.7763075",
"0.7358186",
"0.73315835",
"0.7116918",
"0.7112874",
"0.70480824",
"0.7037957",
"0.70293486",
"0.70238227",
"0.7004503",
"0.6967105",
"0.6962273",
"0.6941716",
"0.6936819",
"0.6929216",
"0.69148594",
"0.69059825",
"0.69003195",
"0.68773... | 0.74769723 | 3 |
Sends a POST request to the test endpoint. | def tP_1(YKHO, JGyi=''):
NArs = {'testParam': JGyi}
return YKHO._send('POST', 'Test_PostRequest', NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tP_1(d4y1):\n geh0 = d4y1.post('/post-test')\n assert geh0.url == '{base_url}/post-test'.format(base_url=zDeW)\n assert geh0.status_code == 200\n assert geh0.json() == {'Post-Test': 'A-OK'}",
"def wBOa(YKHO):\n _hkX, hGN5 = YKHO.client.request('http://127.0.0.1:%d/testkey42' % njoD(), 'POST', ... | [
"0.76776344",
"0.7449483",
"0.742524",
"0.742524",
"0.742524",
"0.742524",
"0.742524",
"0.742524",
"0.742524",
"0.742524",
"0.742524",
"0.73847586",
"0.72044194",
"0.7175188",
"0.7068484",
"0.7043428",
"0.7024063",
"0.7012593",
"0.69510543",
"0.6943185",
"0.6901802",
"0.689... | 0.75853115 | 1 |
Generates a onetimeuse number. Team Cowboy allows any value, so long as it is unique (it is unclear how uniqueness is defined). | def sZqm(YKHO):
return tuKI.randint(10000000, HwRy.maxint) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kn3U():\n return int(ITS7.time() * 1000000)",
"def E0La():\n return 10000 * MfZA()",
"def k64Q():\n return tuKI.randrange(1111111111, 9999999999)",
"def hqie():\n return int(ITS7.time())",
"def hqie():\n return int(ITS7.time())",
"def hqie():\n return int(ITS7.time())",
"def hqie(... | [
"0.71300125",
"0.7072069",
"0.7063079",
"0.70253813",
"0.70253813",
"0.6987792",
"0.6987792",
"0.6890052",
"0.6876787",
"0.68535024",
"0.6846812",
"0.68200386",
"0.6802033",
"0.6777304",
"0.6776731",
"0.6730499",
"0.6696158",
"0.66796285",
"0.66709864",
"0.6666382",
"0.663833... | 0.69221646 | 7 |
Generates a request signature. | def plXe(YKHO, NArs, NKcE):
ERVO = ['%s=%s' % (uRlK.quote(YRbF).lower(), uRlK.quote(NArs[YRbF]).lower()) for YRbF in sorted(NArs)]
KCHu = '%s|%s|%s|%s|%s|%s' % (YKHO._private_key, NKcE, NArs['method'], NArs['timestamp'], NArs['nonce'], '&'.join(ERVO))
return HBct.sha1(KCHu).hexdigest().lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vRH4(YKHO, **B2fa):\n YKHO.update_data_from_dictionary(B2fa)\n YKHO.validate()\n return YKHO.calculate_signature()",
"def ELfM(YKHO) -> None:\n YKHO.signature = YKHO.request",
"def vRH4(Emd4, QePW, rJDA, QDug):\n TBsA = QePW.get_data()\n if not QePW.has_header('Date'):\n QePW.add_h... | [
"0.7454528",
"0.72847307",
"0.711569",
"0.7054462",
"0.7045437",
"0.6926273",
"0.6903766",
"0.682416",
"0.6783082",
"0.6774808",
"0.67659974",
"0.67548233",
"0.6750863",
"0.67485887",
"0.6747462",
"0.6670678",
"0.66630536",
"0.66570973",
"0.66563785",
"0.6648179",
"0.6644782"... | 0.68144184 | 8 |
Remove in strings for comment_ptr. TODO. Later on, fix regex instead. | def z2qB(JZXy):
for vIwR in ZbWC.findall('".*?#.*?"|\\\'.*?#.*?\\\'', JZXy):
if '#' in vIwR:
C4fU = vIwR.replace('#', '')
JZXy = JZXy.replace(vIwR, C4fU)
return JZXy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CVra(aM_I):\n aM_I = aM_I.translate({ord(Z9rn): '' for Z9rn in '#'})\n aM_I = ZbWC.sub('@[a-z0-9]*\\\\s', '', aM_I)\n aM_I = ' '.join(aM_I.split())\n ejzT = ZbWC.compile('\\\\s*' + RtZh + '\\\\s*', ZbWC.UNICODE)\n aM_I = ZbWC.sub(ejzT, '', aM_I)\n return aM_I",
"def VuKm(KCHu):\n return ... | [
"0.7548192",
"0.7217239",
"0.72117525",
"0.7184218",
"0.70993674",
"0.7036413",
"0.7030099",
"0.70056194",
"0.69918454",
"0.6844719",
"0.6785103",
"0.67337364",
"0.6687713",
"0.6665532",
"0.66519135",
"0.66247994",
"0.65609574",
"0.65475017",
"0.6538056",
"0.6513597",
"0.6447... | 0.5837362 | 98 |
Remove comments and empty lines from source. Return a list of lines | def q_6Q(JZXy, m29u, SgbK):
if m29u:
JZXy = bSLV(JZXy)
Nqlg = pzhR(JZXy)
if SgbK:
Nqlg = [zFiD for zFiD in Nqlg if len(zFiD.strip()) > 0]
return Nqlg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSLV(whSy):\n BwKB = []\n for zFiD in whSy:\n if zFiD != '':\n if zFiD.strip()[0] != '#':\n BwKB.append(zFiD)\n return BwKB",
"def bSLV(whSy):\n BwKB = []\n for zFiD in whSy:\n if zFiD != '':\n if len(zFiD.strip()) > 0 and zFiD.strip()[0] != '... | [
"0.7457562",
"0.7431718",
"0.7376689",
"0.7267307",
"0.7212827",
"0.71634704",
"0.71568364",
"0.70991623",
"0.70285684",
"0.6995319",
"0.6995319",
"0.69878346",
"0.69698244",
"0.6936067",
"0.6924236",
"0.68566954",
"0.6742344",
"0.6675837",
"0.66037893",
"0.6600935",
"0.65994... | 0.8503231 | 1 |
Register new session record in the session table. | def UlWs(YKHO, UTX6, QTBn, iG42):
Oy65.__table[str(Oy65.__id)] = {'address': UTX6, 'state': QTBn, 'sock': iG42}
Oy65.__id += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _mzC(YKHO):\n NCls.session.add(YKHO)",
"def RFVC(Emd4, cuiw, YEnM):\n cuiw.add(YEnM)",
"def JPHp(YKHO):\n cuiw.add(YKHO)\n cuiw.commit()",
"def BdN0(YKHO, YEnM):\n YKHO.__session.add(YEnM)",
"def BdN0(YKHO, YEnM):\n YKHO.__session.add(YEnM)",
"def BdN0(YKHO, YEnM):\n YKHO.__sessi... | [
"0.7124921",
"0.68314517",
"0.65450776",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
"0.6472636",
... | 0.6619524 | 2 |
Return the expanded form of a short URI if the namespace is known. | def z8wX(j8eK):
SeW3, bGrB, m8z6 = j8eK.rpartition(':')
if SeW3:
D6Rs = hdNB.__members__.get(SeW3, None)
if D6Rs:
return '%s%s' % (D6Rs.value, m8z6)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KQrF(j8eK):\n Q6lo = YyBp.match(j8eK)\n if Q6lo:\n try:\n y0cW = hdNB(u'%s%s' % (Q6lo.group('uri'), Q6lo.group('sep')))\n j8eK = u'%s:%s' % (y0cW.name, Q6lo.group('attr'))\n except ValueError:\n pass\n return j8eK",
"def lHli(TwgP):\n ys3h = KVWQ(aSe... | [
"0.7412404",
"0.64126354",
"0.6262567",
"0.6252947",
"0.6216998",
"0.6184336",
"0.61758",
"0.61523676",
"0.6035095",
"0.6017004",
"0.5924058",
"0.5915406",
"0.58682626",
"0.58516824",
"0.58507526",
"0.58445597",
"0.5836028",
"0.57929236",
"0.5759645",
"0.5741143",
"0.5718766"... | 0.5405698 | 43 |
Test getting a file ID for a nonexistent file. | def zZY5(YKHO):
ypjv = YKHO.exporter.fileIDForFileName('nonexistent_file')
YKHO.logger.log('file ids = {}'.format(ypjv), 'info')
YKHO.assertIsNone(ypjv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cLGo(YKHO, sJwm):\n ZfUD = sJwm.DirectoryRecordSequence[5]\n ZfUD.ReferencedFileID[-1] = 'MISSING'\n PObu = ZfUD.ReferencedSOPInstanceUIDInFile\n tO9_ = 'The referenced SOP Instance for the directory record at offset 1220 does not exist:'\n with trZe.warns(UserWarning, match=tO9_):\n Vb5F... | [
"0.73988384",
"0.73221296",
"0.724237",
"0.7190041",
"0.7088464",
"0.7021176",
"0.6987738",
"0.6970281",
"0.6963851",
"0.69494957",
"0.6896905",
"0.6889082",
"0.68766785",
"0.6864919",
"0.6820232",
"0.68130594",
"0.68125015",
"0.6809313",
"0.6809071",
"0.6770341",
"0.6760574"... | 0.87539095 | 0 |
Generates a weight variable of a given shape. | def E9N2(ROpF):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n Deam = ZylS.random_uniform_initializer(-0.05, 0.05)\n return ZylS.get_variable('weights', ROpF, initializer=Deam)",
"def E9N2(ROpF):\n with ZylS.name_scope('weights'):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1, seed=vjbM())\n Es0b = ZylS.Variable(RqgG)\n return E... | [
"0.8349463",
"0.829122",
"0.826819",
"0.8263241",
"0.824646",
"0.82345414",
"0.82289904",
"0.8223218",
"0.81966305",
"0.81651646",
"0.8146883",
"0.81439376",
"0.8128845",
"0.81287766",
"0.81011707",
"0.80924165",
"0.8083327",
"0.80765826",
"0.80765826",
"0.80765826",
"0.80611... | 0.8059782 | 25 |
Generates a bias variable of a given shape. | def Y7ph(ROpF):
RqgG = ZylS.constant(0.1, shape=ROpF)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG, name='biases')",
"def Y7ph(ROpF):\n h0_e = ZylS.random_uniform_initializer(-0.05, 0.05)\n return ZylS.get_variable('biases', ROpF, initializer=h0_e)",
"def Y7ph(ROpF):\n with ZylS.name_scope('biases'):\n ... | [
"0.84915173",
"0.84827197",
"0.84259176",
"0.8419444",
"0.8381995",
"0.83793116",
"0.8356456",
"0.83373886",
"0.83373886",
"0.8336918",
"0.83311075",
"0.83311075",
"0.83311075",
"0.83311075",
"0.83311075",
"0.83311075",
"0.83311075",
"0.83311075",
"0.83311075",
"0.83311075",
... | 0.83186257 | 23 |
Generate strides from an ensemble of univariate time series with specified length and dilation parameters. | def Gosd(EcVT, yMhW, ivFb):
cDK5, pccI = EcVT.shape
RzON = (cDK5, pccI - (yMhW - 1) * ivFb, yMhW)
Esro, j93S = EcVT.strides
MWlT = (Esro, j93S, ivFb * j93S)
return Tb35(EcVT, shape=RzON, strides=MWlT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r033(EcVT, yMhW, ivFb):\n pccI = EcVT.shape[0]\n RzON = (pccI - (yMhW - 1) * ivFb, yMhW)\n Esro = EcVT.strides[0]\n MWlT = (Esro, ivFb * Esro)\n return Tb35(EcVT, shape=RzON, strides=MWlT)",
"def PXTq(ezWE, yMhW):\n ezWE = oyIN.concatenate((ezWE[-yMhW // 2 + 1:], ezWE, ezWE[:yMhW // 2]))\n ... | [
"0.7685209",
"0.6546356",
"0.5930147",
"0.5835189",
"0.57784534",
"0.5717822",
"0.5717822",
"0.5705633",
"0.5639166",
"0.5628533",
"0.561596",
"0.5585293",
"0.55848837",
"0.5561147",
"0.55364954",
"0.5532097",
"0.55312294",
"0.5507985",
"0.547881",
"0.547881",
"0.547504",
"... | 0.7609998 | 1 |
Generate strides from the input univariate time series with specified length and dilation parameters. | def r033(EcVT, yMhW, ivFb):
pccI = EcVT.shape[0]
RzON = (pccI - (yMhW - 1) * ivFb, yMhW)
Esro = EcVT.strides[0]
MWlT = (Esro, ivFb * Esro)
return Tb35(EcVT, shape=RzON, strides=MWlT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gosd(EcVT, yMhW, ivFb):\n cDK5, pccI = EcVT.shape\n RzON = (cDK5, pccI - (yMhW - 1) * ivFb, yMhW)\n Esro, j93S = EcVT.strides\n MWlT = (Esro, j93S, ivFb * j93S)\n return Tb35(EcVT, shape=RzON, strides=MWlT)",
"def PXTq(ezWE, yMhW):\n ezWE = oyIN.concatenate((ezWE[-yMhW // 2 + 1:], ezWE, ezW... | [
"0.7857432",
"0.65189046",
"0.59629256",
"0.5952099",
"0.5944353",
"0.59044033",
"0.5869098",
"0.58581525",
"0.5853368",
"0.58185637",
"0.58110476",
"0.5772503",
"0.5760387",
"0.57508177",
"0.5729908",
"0.56998956",
"0.5694838",
"0.5650021",
"0.564722",
"0.5645233",
"0.563808... | 0.78644574 | 0 |
Return a list of the texture squares for the top, bottom and side. | def LSj8(Wbbi, exwG, zgyH):
Aofo = []
for eHNT in range(6):
mcUg = Ydhz(0, 0, 0, eHNT, exwG)
if eHNT >= len(Wbbi):
eHNT = -1
K_4v = fBZJ(*Wbbi[eHNT])
Aofo.append((mcUg, K_4v))
Aofo.append(([], ()))
if not zgyH:
Law2 = Pusg(lambda jzdc, Fg_i: (jzdc[0] +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jOtm(YKHO, tlxW, es2x, HEZd):\n tlxW = YKHO.tex_coord(*tlxW)\n es2x = YKHO.tex_coord(*es2x)\n HEZd = YKHO.tex_coord(*HEZd)\n Aofo = []\n Aofo.extend(tlxW)\n Aofo.extend(es2x)\n Aofo.extend(HEZd * 4)\n YKHO.texture = Aofo\n return Aofo",
"def jOtm(tlxW, es2x, HEZd):\n tlxW = fBZJ... | [
"0.7268069",
"0.700906",
"0.700906",
"0.700906",
"0.700906",
"0.6734254",
"0.6371533",
"0.6366672",
"0.62691337",
"0.62274635",
"0.6219877",
"0.6215398",
"0.61818355",
"0.6178041",
"0.6133411",
"0.60953915",
"0.6078333",
"0.6030085",
"0.59807587",
"0.59756964",
"0.5975056",
... | 0.532251 | 99 |
Get last restore logs for the given group. | async def configuration_get_last_restore_logs_for_group(YKHO, uOe2: str) -> oGir:
bD7m = f'/configuration/v1/groups/{uOe2}/last_restore_log'
return await YKHO.get(bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def configuration_get_backup_log_for_snapshot(YKHO, uOe2: str, Rwel: str) -> oGir:\n bD7m = f'/configuration/v1/groups/{uOe2}/snapshots/{Rwel}/backup_log'\n return await YKHO.get(bD7m)",
"def gfsT(YKHO):\n return YKHO.get_string('retrieveLastRemoteControlLogs', [])",
"def gfsT(YKHO):\n return... | [
"0.6293397",
"0.59230274",
"0.59230274",
"0.5733025",
"0.55620754",
"0.55561763",
"0.5526436",
"0.55221295",
"0.54555357",
"0.5446868",
"0.5441685",
"0.5415015",
"0.5376719",
"0.5367233",
"0.5321936",
"0.5297998",
"0.52891195",
"0.5277395",
"0.52673364",
"0.5244627",
"0.52002... | 0.87368804 | 0 |
Delete all of the template variables for a device. | async def configuration_delete_device_template_variables(YKHO, IaIi: str) -> oGir:
bD7m = f'/configuration/v1/devices/{IaIi}/template_variables'
return await YKHO.delete(bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tEbD(YKHO):\n for zljZ in YKHO._counter_var_list:\n del zljZ\n for zljZ in YKHO._motor_var_list:\n del zljZ",
"def X8gu(OaeV):\n x0hE = E9mX(OaeV.config)\n G9jH.basicConfig(level=G9jH.INFO)\n try:\n for mWFP, J8oL in vtad.items():\n x0hE.elasticsearch.indices.de... | [
"0.6766588",
"0.6418593",
"0.6285565",
"0.60943985",
"0.6078665",
"0.60218644",
"0.59875363",
"0.5942628",
"0.5888439",
"0.5848553",
"0.5841707",
"0.583443",
"0.5826902",
"0.5803097",
"0.5797937",
"0.5767145",
"0.57535565",
"0.5747926",
"0.5739647",
"0.57218826",
"0.5693948",... | 0.71851265 | 0 |
Get last known running configuration for a device. | async def configuration_get_device_configuration(YKHO, IaIi: str) -> oGir:
bD7m = f'/configuration/v1/devices/{IaIi}/configuration'
return await YKHO.get(bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RAtI(begE, MTKo=None):\n if MTKo:\n HCmI = 'show running-config {}'.format(MTKo)\n else:\n HCmI = 'show running-config'\n try:\n yvT9 = begE.execute(HCmI)\n except Gx5Q as e:\n raise Gx5Q('Could not get running-config information on device {device}'.format(device=begE.na... | [
"0.7138517",
"0.6962791",
"0.6920701",
"0.6876665",
"0.6802988",
"0.66605663",
"0.6631364",
"0.6604914",
"0.65944624",
"0.65345615",
"0.6520668",
"0.6474999",
"0.64742357",
"0.6463614",
"0.6444896",
"0.6429076",
"0.64087766",
"0.63664144",
"0.6331251",
"0.63233584",
"0.627899... | 0.0 | -1 |
Get templates of devices present in the given list of groups. | async def configuration_get_groups_template_details(YKHO, DS1x: str, HF9C: List[str]=None, bqz7: List[str]=None, t3vy: bool=None, vgXP: int=0, qoqK: int=100) -> oGir:
bD7m = '/configuration/v1/devices/groups/template'
NArs = {'device_type': DS1x, 'include_groups': HF9C, 'exclude_groups': bqz7, 'all_groups': t3v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def configuration_get_groups_template_data(YKHO, moMn: List[str]) -> oGir:\n bD7m = '/configuration/v2/groups/template_info'\n NArs = {'groups': moMn}\n return await YKHO.get(bD7m, params=NArs)",
"async def configuration_get_templates(YKHO, uOe2: str, rPXJ: str=None, DS1x: str=None, DpZH: str=None... | [
"0.75522614",
"0.69385815",
"0.66839707",
"0.61586094",
"0.60932666",
"0.6069358",
"0.601418",
"0.581878",
"0.5760244",
"0.5680098",
"0.5669311",
"0.56153107",
"0.54655766",
"0.5388342",
"0.53312075",
"0.5325316",
"0.52597845",
"0.52428347",
"0.5203017",
"0.51948935",
"0.5184... | 0.64811045 | 3 |
Set configuration mode as either Monitor or Manage at customer level. | async def configuration_set_cust_config_mode(YKHO, WBkA: str) -> oGir:
bD7m = '/configuration/v1/mode'
zgjV = {'config_mode': WBkA}
return await YKHO.post(bD7m, json_data=zgjV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDOu(YKHO):\n ZJiz = ZzQN | Y0Qw | fPAC | moHk | CznS\n Pjr8.write_byte_data(BIJw, eVki, ZJiz)",
"def Ep52(YKHO, Tuqy):\n if not Tuqy in ['auto', 'min', 'max']:\n print('WARNING: Invalid mode given. Setting mode to auto.')\n if Tuqy == 'auto':\n if 'loss' in YKHO.monitor:\n ... | [
"0.59599733",
"0.5913599",
"0.5905455",
"0.586433",
"0.5843733",
"0.5791999",
"0.5740794",
"0.57283324",
"0.5702332",
"0.5672463",
"0.56492996",
"0.56427497",
"0.5589525",
"0.55679566",
"0.55572337",
"0.5554995",
"0.5550161",
"0.55386233",
"0.5526303",
"0.54927695",
"0.546441... | 0.6022893 | 0 |
Set configuration mode as either Monitor or Manage for given devices. | async def configuration_set_device_config_mode(YKHO, VAO0: List[str], WBkA: str) -> oGir:
bD7m = '/configuration/v1/mode/device'
zgjV = {'serials': VAO0, 'config_mode': WBkA}
return await YKHO.post(bD7m, json_data=zgjV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ncnV(YKHO):\n YKHO.command('ATE0', raise_errors=False)\n YKHO.command('AT+CMEE=1', raise_errors=False)\n YKHO.command('AT+WIND=0', raise_errors=False)\n YKHO.command('AT+CSMS=1', raise_errors=False)\n YKHO.command(YKHO.smshandler.get_mode_cmd())\n YKHO.command('AT+CNMI=2,2,0,0,0', raise_error... | [
"0.6148597",
"0.6147415",
"0.61324644",
"0.59510475",
"0.5823475",
"0.5821908",
"0.58014494",
"0.575778",
"0.5752256",
"0.56995755",
"0.5689533",
"0.56707877",
"0.56633854",
"0.564788",
"0.564494",
"0.5640727",
"0.5607555",
"0.56001085",
"0.55767685",
"0.55750966",
"0.5570467... | 0.5752548 | 8 |
Get configuration mode as either Monitor or Managed mode for device serials. | async def configuration_get_device_serials_config_mode(YKHO, v5kQ: List[str]) -> oGir:
bD7m = '/configuration/v1/mode/devices'
NArs = {'device_serials': v5kQ}
return await YKHO.get(bD7m, params=NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vEk7(YKHO):\n return YKHO._config[lyWs].value",
"def yQBk(YKHO):\n nPrm = 1 & YKHO.get_config_reg() >> _eJ1\n if nPrm == 1:\n return 'single'\n return 'continous'",
"def yQBk():\n return X8Rg['mode']",
"def WzhB() -> str:\n return J330",
"def Kfu_(YKHO):\n Tuqy = C5YH(YKHO.C... | [
"0.70469266",
"0.7039273",
"0.6961136",
"0.68182343",
"0.6756986",
"0.6653633",
"0.66182476",
"0.6614481",
"0.6599854",
"0.65439737",
"0.6515779",
"0.6486612",
"0.64800483",
"0.6448607",
"0.6439931",
"0.6408102",
"0.6389714",
"0.6374693",
"0.63726",
"0.63722664",
"0.63712615"... | 0.5920897 | 75 |
Get auto commit state as either On or Off at group level. | async def configuration_get_groups_auto_commit_state(YKHO, vexM: str=None, vgXP: int=0, qoqK: int=100) -> oGir:
bD7m = '/configuration/v1/auto_commit_state/groups'
NArs = {'q': vexM, 'offset': vgXP, 'limit': qoqK}
return await YKHO.get(bD7m, params=NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cdim(YKHO):\n return YKHO._autocommit",
"def iBsD(YKHO):\n if YKHO.autocommit is None:\n Ylbp = YKHO.show_server_variable('autocommit')\n YKHO.autocommit = Ylbp and Ylbp[0][1] == '1'\n return YKHO.autocommit",
"def jGRS(YKHO):\n kL40 = set([uOe2.status for uOe2 in YKHO.groups.all(... | [
"0.6668903",
"0.632388",
"0.5811197",
"0.5755966",
"0.57344145",
"0.56572473",
"0.5621817",
"0.5607911",
"0.556363",
"0.556363",
"0.5562156",
"0.55548686",
"0.5540519",
"0.55006987",
"0.5443826",
"0.54177725",
"0.54132545",
"0.5405018",
"0.5398142",
"0.5384184",
"0.5362946",
... | 0.5341002 | 23 |
Get auto commit state as either On or Off for device serials. | async def configuration_get_device_serials_auto_commit_state(YKHO, v5kQ: List[str]) -> oGir:
bD7m = '/configuration/v1/auto_commit_state/devices'
NArs = {'device_serials': v5kQ}
return await YKHO.get(bD7m, params=NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K1l8(YKHO, _UE4, RdGg):\n geh0 = YKHO.txrx_txt('PID:IN{}:OUT{}:INT:AUTO?'.format(_UE4, RdGg))\n return geh0 == 'ON'",
"def yYFS(YKHO):\n return YKHO._call_response('c').endswith('On')",
"def Cdim(YKHO):\n return YKHO._autocommit",
"def ja6o(YKHO):\n return YKHO.state & 255",
"def Debg(YK... | [
"0.65600777",
"0.6518144",
"0.6197047",
"0.61531645",
"0.61205626",
"0.61127865",
"0.6093327",
"0.6076166",
"0.6053376",
"0.60383004",
"0.6032612",
"0.5995373",
"0.59856504",
"0.5967849",
"0.59628123",
"0.5960064",
"0.5952805",
"0.59525675",
"0.59525675",
"0.5929529",
"0.5917... | 0.6190703 | 3 |
(Deprecated) Get an existing swarm config. | async def configuration_get_swarm_config(YKHO, Artt: str) -> oGir:
bD7m = f'/configuration/v1/swarm_config/{Artt}'
return await YKHO.get(bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YMkZ():\n tTpl = ZCi4().get()\n return tTpl.config if tTpl else None",
"def tgzD():\n return OlaR",
"async def configuration_get_swarm_config_v2(YKHO, Artt: str) -> oGir:\n bD7m = f'/configuration/v2/swarm_config/{Artt}'\n return await YKHO.get(bD7m)",
"def kILe():\n Fv2L = (2377, 'loca... | [
"0.6551674",
"0.6429004",
"0.63788205",
"0.6280313",
"0.6263394",
"0.62303394",
"0.6208986",
"0.61392754",
"0.6098639",
"0.6096615",
"0.60696447",
"0.6065562",
"0.60546756",
"0.6000581",
"0.59563315",
"0.5939607",
"0.5938175",
"0.5929258",
"0.59195226",
"0.59195226",
"0.59195... | 0.6469598 | 1 |
Get an existing swarm config. | async def configuration_get_swarm_config_v2(YKHO, Artt: str) -> oGir:
bD7m = f'/configuration/v2/swarm_config/{Artt}'
return await YKHO.get(bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def configuration_get_swarm_config(YKHO, Artt: str) -> oGir:\n bD7m = f'/configuration/v1/swarm_config/{Artt}'\n return await YKHO.get(bD7m)",
"def tgzD():\n global _CONFIG\n if DVw1 is None:\n DVw1 = GzEt.load()\n return _qLf(DVw1)",
"def NMoC(mWFP):\n return PSrQ._config.get(mW... | [
"0.6851311",
"0.67401487",
"0.6659719",
"0.6606811",
"0.6594425",
"0.65404963",
"0.6506829",
"0.6475733",
"0.6467674",
"0.64662135",
"0.64068156",
"0.6401854",
"0.6394235",
"0.6379182",
"0.63771254",
"0.6371657",
"0.6345532",
"0.63413274",
"0.633503",
"0.6328442",
"0.6321755"... | 0.66489446 | 3 |
Save user with the model. | def lac1(YKHO, QePW, YEnM, L03z, nZuS):
if QePW.user:
YEnM.user = QePW.user
YEnM.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n YEnM.user.save()\n YEnM.save()",
"def qQaj(YKHO):\n VUF1.add_user(YKHO)",
"def _vhh(CBIr):\n CBIr.save_user()",
"def qQaj(CBIr):\n CBIr.save_user()",
"def qQaj(CBIr):\n CBIr.save_user()",
"def qQaj(CBIr):\n CBIr.save_user()",
"def qQaj(CBIr... | [
"0.8209027",
"0.8193108",
"0.81070304",
"0.8073884",
"0.8073884",
"0.8073884",
"0.802402",
"0.802402",
"0.79316396",
"0.79231924",
"0.7820431",
"0.7759182",
"0.7717015",
"0.7610828",
"0.7511092",
"0.7511092",
"0.7511092",
"0.7511092",
"0.7511092",
"0.74549264",
"0.7436181",
... | 0.74937594 | 19 |
Level data normalization function. | def TjEO(YKHO):
if YKHO.isAttributeValue('get_normal'):
QpfX = YKHO.getContext()
ZPZy = YKHO.getAttribute('get_normal')
return fMle.execTxtFunction(function=ZPZy, context=QpfX, show_debug=True)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7gV(YKHO):\n print('Normalizing data ...')\n YKHO.data = oyIN.array(list(map(lambda ZfUD: ZfUD / oyIN.linalg.norm(ZfUD), YKHO.data)))\n print('Done!')",
"def l9RK(YKHO):\n YKHO._norm_data = qX3H(YKHO.data, axis=1)",
"def Q7gV():\n pass",
"def OEry(YKHO, nPrm, I1mm=0):\n nPrm = GS9h(nPr... | [
"0.71524614",
"0.7121171",
"0.69883984",
"0.6979707",
"0.6977881",
"0.6975811",
"0.6843146",
"0.68135226",
"0.68031317",
"0.67923206",
"0.6740461",
"0.67344624",
"0.6692512",
"0.6650622",
"0.6603095",
"0.65829587",
"0.6580176",
"0.65654534",
"0.6556055",
"0.65249807",
"0.6521... | 0.0 | -1 |
Return washed form of the index term TERM that would be suitable for storing into idxWORD tables. I.e., lower the TERM if LOWER_TERM is True, and truncate it safely to MAX_CHAR_LENGTH UTF8 characters (meaning, in principle, 4MAX_CHAR_LENGTH bytes). The function works by an internal conversion of TERM, when needed, from... | def LEnD(OXAZ, bsQg=50, dUcd=True):
if dUcd:
zKdY = QMSQ(OXAZ, 'utf-8').lower()
else:
zKdY = QMSQ(OXAZ, 'utf-8')
if len(zKdY) <= bsQg:
return zKdY.encode('utf-8')
else:
return zKdY[:bsQg].encode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SANN(YKHO):\n KCHu = 'YYYYYEEESSSSSSSSS OOXXXXXXXXXXXX!!!'\n a1PO = isxO(normalize_words=True, character_normalization_count=4, stem=False, min_length=2)\n YKHO.assertEqual(['yeees', 'oox'], a1PO.tokenize(KCHu))",
"def ZxzL(YKHO):\n return max([len(YKHO.tokenizer.encode(''.join(Csk6.values()))) f... | [
"0.53233963",
"0.5132643",
"0.5113265",
"0.5040564",
"0.50139296",
"0.4956032",
"0.48524314",
"0.48260638",
"0.47826472",
"0.47506592",
"0.4744022",
"0.4735892",
"0.47213075",
"0.4710376",
"0.46551633",
"0.46227592",
"0.459634",
"0.45954046",
"0.458106",
"0.45797208",
"0.4578... | 0.68007314 | 0 |
Learning rule about how agent updates itself given batched data. The output is a dictionary containing useful items, i.e. loss, batched_policy_loss | def v5Xw(YKHO, lWPh):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lfe6(YKHO):\n oyIN.random.seed(YKHO.steps)\n A07C, Wc9F, bGrB = YKHO.buffer.sample(YKHO.sample_size)\n if YKHO.direct_update:\n Wc9F = oyIN.concatenate((Wc9F, YKHO.buffer.get(YKHO.recent_experiences)), axis=0)\n A07C = oyIN.concatenate((A07C, YKHO.recent_experiences)).astype(int)\n if... | [
"0.6566699",
"0.6341227",
"0.63401735",
"0.6320905",
"0.6274516",
"0.6240823",
"0.62099767",
"0.6178238",
"0.61759585",
"0.6173952",
"0.6083865",
"0.6031238",
"0.6006427",
"0.6004236",
"0.6001695",
"0.5998892",
"0.5988156",
"0.5985679",
"0.5977423",
"0.5973839",
"0.59562063",... | 0.0 | -1 |
Create a FuncOp with the provided `name`, `type`, and `visibility`. `name` is a string representing the function name. `type` is either a FunctionType or a pair of list describing inputs and results. `visibility` is a string matching `public`, `private`, or `nested`. None implies private visibility. `body_builder` is a... | def FIMM(YKHO, mWFP, type, *, mQS7=None, daFu=None, hksT=None, D8Ke=None):
Nb6n = qgwt.get(str(mWFP))
if isinstance(type, tuple):
type = kI0w.get(inputs=type[0], results=type[1])
type = P5b8.get(type)
KXs6 = qgwt.get(str(mQS7)) if mQS7 is not None else None
super().__init__(Nb6n, type, sym_v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VGr5(mWFP: str, VztR: Type) -> AzJI[vk2a, n3Kt]:\n o8Kj = {'type': P5b8.get(VztR), 'sym_name': qgwt.get(mWFP)}\n khtY = vk2a.create('func', regions=1, attributes=o8Kj)\n g9cO = khtY.regions[0]\n DcQd = g9cO.blocks.append(*VztR.inputs)\n return (khtY, DcQd)",
"def bM0u(_h7H, khtY):\n\n def U... | [
"0.68280566",
"0.50891566",
"0.5059073",
"0.4681192",
"0.46248874",
"0.46212262",
"0.46101308",
"0.4597745",
"0.45525748",
"0.45220178",
"0.45110273",
"0.45001474",
"0.44934446",
"0.44837397",
"0.44774404",
"0.44457003",
"0.44420448",
"0.44418007",
"0.44351467",
"0.44329238",
... | 0.64782876 | 1 |
Flip horizontally an image | def SBp7(LNo8, UXqs):
LNo8 = ZylS.image.flip_left_right(LNo8)
return (LNo8, UXqs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hl5t(VXjJ):\n if not RDRa(VXjJ):\n raise TypeError(t_1q.format(type(VXjJ)))\n return VXjJ.transpose(YGpq)",
"def Hl5t(YKHO, Tz44, gb5P):\n VXjJ = Yw_3.Image(Tz44.data)\n VXjJ.horizontal_flip()\n T4M1 = VXjJ.execute_transforms(gb5P)\n return T4M1",
"def cUQC(LNo8, H4hf, WnvX):\n ... | [
"0.8264612",
"0.8019569",
"0.7818924",
"0.78069687",
"0.7733396",
"0.77310973",
"0.7708591",
"0.76404583",
"0.76216614",
"0.76216614",
"0.7621041",
"0.7529753",
"0.7496275",
"0.74951124",
"0.7478908",
"0.74754167",
"0.74341226",
"0.74300504",
"0.7421423",
"0.7410285",
"0.7406... | 0.0 | -1 |
Returns session id string. | def unpH(YKHO):
return YKHO._sid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JkXK() -> str:\n return '6428b4c1-c360-4605-9318-ed99371b7bd6'",
"def JkXK() -> str:\n return str(qxeD.uuid4())",
"def JkXK():\n return str(qxeD.uuid4())",
"def JkXK():\n return str(qxeD.uuid4())",
"def JkXK():\n return str(qxeD.uuid4())",
"def JkXK():\n return str(qxeD.uuid4())",
... | [
"0.88673866",
"0.88143927",
"0.87876177",
"0.87876177",
"0.87876177",
"0.87876177",
"0.8539162",
"0.82640463",
"0.8216921",
"0.80124533",
"0.7902453",
"0.78890514",
"0.78846115",
"0.78521526",
"0.7768887",
"0.7768887",
"0.7747845",
"0.76487243",
"0.7619073",
"0.7616268",
"0.7... | 0.7192745 | 32 |
The lengths of each of the data axes. | def ROpF(YKHO):
if YKHO._loaded_data:
return YKHO._data.shape
try:
return tuple((YKHO.data_header['NAXIS%d' % YRbF] for YRbF in range(YKHO.ndim, 0, -1)))
except (KeyError, TypeError):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tpio(YKHO):\n return len(YKHO.axes)",
"def tpio(YKHO):\n return len(YKHO.axes)",
"def TjLA(YKHO):\n if YKHO.__data == None and YKHO.__ncvar == None:\n raise Exception('Box is empty - use .load to load in a netCDF file')\n Fbjb = []\n for Csk6 in range(0, len(YKHO.__dims)):\n Fb... | [
"0.77963895",
"0.77963895",
"0.74509937",
"0.741814",
"0.7307083",
"0.72310305",
"0.7186896",
"0.71499777",
"0.71487474",
"0.708212",
"0.7054656",
"0.70165396",
"0.7008782",
"0.699199",
"0.69910955",
"0.6970373",
"0.69685286",
"0.6967513",
"0.69593394",
"0.6925226",
"0.692351... | 0.0 | -1 |
Return variance as a `numpy.ma.MaskedArray`. If variances have been provided for each data pixel, then this property can be used to record those variances. Normally this is a masked array which shares the mask of the data property. However if no variances have been provided, then this property is None. Variances are ty... | def SRYB(YKHO):
if YKHO._var is None:
return None
else:
Ylbp = fHeP.MaskedArray(YKHO._var, mask=YKHO._mask, copy=False)
Ylbp._sharedmask = False
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tfuv(YKHO, gwAu):\n if YKHO._var is None:\n raise ValueError('Operation forbidden without variance extension.')\n YKHO.data[YKHO._var > gwAu] = fHeP.masked",
"def I8JS(BkYD):\n return qw7D.variance(BkYD)",
"def I8JS(nPrm, r8hN=None):\n return eyk1(nPrm, r8hN, 1)",
"def I8JS(nPrm):\n ... | [
"0.7039817",
"0.67712796",
"0.6740186",
"0.66901565",
"0.6669925",
"0.64714724",
"0.6408654",
"0.63801646",
"0.63470745",
"0.6319",
"0.62141246",
"0.62063664",
"0.61150455",
"0.6103307",
"0.6068566",
"0.60639644",
"0.6056647",
"0.59920174",
"0.59746164",
"0.5958146",
"0.59506... | 0.6224385 | 10 |
Return a copy of the object. | def jth9(YKHO):
return YKHO.__class__.new_from_obj(YKHO, copy=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n return jth9.deepcopy(YKHO)",
"def QyFW(YKHO):\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n return AkZY.deepcopy(YKHO)",
... | [
"0.8664884",
"0.8664884",
"0.8647867",
"0.86057127",
"0.86057127",
"0.86009187",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
"0.8578688",
... | 0.8510446 | 25 |
Mask data elements whose values are greater than a given value (<=). | def TPjt(YKHO, ZfUD):
Aofo = YKHO.copy()
Aofo.data = oyIN.ma.masked_greater(YKHO.data, ZfUD)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B3jI(Sxzb, BWXx):\n SymK = Sxzb < BWXx\n Sxzb = Sxzb.where(SymK)\n return Sxzb",
"def QqXZ(YKHO, sja8, BWXx):\n if YKHO._masked_arr:\n ezWE = YKHO._masked_arr\n else:\n ezWE = YKHO._arr\n ezWE[ezWE > sja8] = BWXx",
"def cAh3(Sxzb, BWXx):\n ckTS = Sxzb > BWXx\n Sxzb = S... | [
"0.75551313",
"0.7341951",
"0.72076213",
"0.6957138",
"0.675702",
"0.6672683",
"0.6471364",
"0.6375162",
"0.6316401",
"0.62770665",
"0.6224119",
"0.6178101",
"0.6154137",
"0.60763717",
"0.60383594",
"0.60264784",
"0.6016538",
"0.60124695",
"0.5934888",
"0.59123725",
"0.590502... | 0.66150194 | 6 |
Mask pixels with a variance above a threshold value. | def Tfuv(YKHO, gwAu):
if YKHO._var is None:
raise ValueError('Operation forbidden without variance extension.')
YKHO.data[YKHO._var > gwAu] = fHeP.masked | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def knl1(YKHO, GEkH):\n a1Nq = a9eO.surfarray.pixels3d(YKHO.im)\n a1Nq[:] = qJWj(HFDh(a1Nq, GEkH), 1, 255).astype(udMp)",
"def enBX(EcVT, tAX0=0.8):\n iz5W = HQEp(threshold=tAX0 * (1 - tAX0))\n EcVT = iz5W.fit_transform(EcVT)\n return EcVT",
"def b5xS(jQ3Z, gwAu=0.001):\n print(f'number of fe... | [
"0.63616097",
"0.6327853",
"0.631931",
"0.6283123",
"0.61945933",
"0.61743826",
"0.6161367",
"0.6153389",
"0.61201507",
"0.61189693",
"0.6115485",
"0.6094498",
"0.6086976",
"0.60443556",
"0.6039931",
"0.5997518",
"0.5986875",
"0.5976491",
"0.59414923",
"0.5940136",
"0.5921011... | 0.81058806 | 0 |
Logout user and redirect to target url. | def jbux(YKHO, *qIxc, **B2fa):
if YKHO.request.user.is_authenticated():
erK4(YKHO.request)
return super(muCn, YKHO).get_redirect_url(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def erK4():\n oLi7()\n return vKnz(BfDw.get_url())",
"def erK4():\n oLi7()\n return vKnz(nKyW('.login'))",
"def erK4():\n oLi7()\n return vKnz(nKyW(fOLk))",
"def erK4():\n cuiw.pop('user', None)\n return vKnz(nKyW('index'))",
"def erK4():\n cuiw.pop('user_id', None)\n return v... | [
"0.85987985",
"0.8309643",
"0.82882947",
"0.82760274",
"0.8266353",
"0.8255462",
"0.8253612",
"0.8250895",
"0.82434636",
"0.8228938",
"0.82244873",
"0.82209235",
"0.8218164",
"0.81855667",
"0.8179576",
"0.81602556",
"0.81527287",
"0.8145193",
"0.8144325",
"0.8136028",
"0.8136... | 0.0 | -1 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
print(Hy7s.path.join(XSj5, t_yv))
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86645055",
"0.8190357",
"0.8175001",
"0.8163073",
"0.80863976",
"0.80863976",
"0.80863976",
"0.80863976",
"0.8086095",
"0.80784917",
"0.8077746",
"0.8073863",
"0.8065137",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.... | 0.80573195 | 21 |
Returns a list of all the funds in the system. | def S6Jz(YKHO):
return wEfu.objects.all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pIwL(YKHO):\n return YKHO._call('listfunds')",
"def zEb0(YKHO) -> x1iM[cuzp]:\n nPrm = YKHO.news_parser._make_request(url=YKHO.url.format(topic='money_funds'))\n return nPrm",
"async def get_all_funds(YKHO) -> float:\n Cmv2 = await YKHO.bfx.get_wallets()\n Cr__ = 'funding'\n u6Kq = filter... | [
"0.8458714",
"0.7698067",
"0.7352743",
"0.7270884",
"0.7041211",
"0.64944696",
"0.6432795",
"0.63469326",
"0.6294338",
"0.61920506",
"0.61741024",
"0.6171405",
"0.61248034",
"0.60855484",
"0.6021785",
"0.6002577",
"0.5951969",
"0.5948252",
"0.59413356",
"0.5919259",
"0.591281... | 0.0 | -1 |
Append a node to the path graph. | def zzcZ(YKHO, BWXx):
if type(BWXx) is not int:
raise TypeError('Path graph only supports integer node values. Input has type %s.' % str(type(BWXx)))
YKHO.__nodes.append(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AP2I(Q6kx, pmON):\n if Q6kx.parent is None:\n return\n pmON.append(Q6kx.value)\n UD_O.addPath(Q6kx.parent, pmON)",
"def g5gD(YKHO, Q6kx):\n YKHO.graph[Q6kx]",
"def SStx(YKHO, Q6kx):\n YKHO._nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n if Q6kx not in YKHO.__graph:\n YKHO._... | [
"0.7937116",
"0.78599465",
"0.7760309",
"0.7604503",
"0.7568662",
"0.7542287",
"0.7542287",
"0.74594676",
"0.7411428",
"0.7386048",
"0.7379564",
"0.7323122",
"0.7271088",
"0.7259068",
"0.7224954",
"0.7224954",
"0.7204252",
"0.7201717",
"0.71943647",
"0.7190795",
"0.7178738",
... | 0.6894802 | 38 |
Add a new normal hyperparameter | def js4S(YKHO, mWFP, LSh8, CN9P, IZG9=False, RKD7=False, kU1m=None):
return YKHO._factory(EbFG, mWFP, LSh8, CN9P, IZG9, RKD7, kU1m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UdJ4(YKHO, k78t):\n YKHO.model.parameters.append(k78t)",
"def lkUe(YKHO, BWXx, mWFP: str=None, HyJ9=None) -> ueFv.Hyperparameter:\n return YKHO._hp_space.add_hyperparameter(BWXx, mWFP, HyJ9)",
"def y8j0(YKHO, JBMS: float, I8JS: float, f_Wa: int, UXqs: str) -> dict:\n kIyH = {UXqs: YKHO._param_calc... | [
"0.64784527",
"0.6455938",
"0.6084359",
"0.59436667",
"0.5922263",
"0.5895564",
"0.5836903",
"0.5816811",
"0.5773517",
"0.5765165",
"0.575982",
"0.57520854",
"0.57321364",
"0.572984",
"0.5714827",
"0.57070386",
"0.57070386",
"0.56953835",
"0.5677837",
"0.5675259",
"0.5665488"... | 0.0 | -1 |