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 |
|---|---|---|---|---|---|---|
Called if all forms are valid. Creates a Recipe instance along with associated Ingredients and Instructions and then redirects to a success page. | def lwXz(YKHO, L03z, aobn, usA9):
YKHO.object = L03z.save()
aobn.instance = YKHO.object
aobn.save()
usA9.instance = YKHO.object
usA9.save()
return Yd7Q(YKHO.get_success_url()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QoQY(QePW):\n if QePW.method != 'POST':\n return vKnz('wine_recipes:index')\n else:\n return vKnz('wine_recipes:index')\n return vKnz('wine_recipes:index')",
"def EPwd():\n L03z = dq3a()\n S0MI.debug('New recipe form.')\n if L03z.validate_on_submit():\n S0MI.debug('Vali... | [
"0.70694685",
"0.69859505",
"0.68088096",
"0.65856504",
"0.657511",
"0.6545892",
"0.65387654",
"0.64091027",
"0.64004564",
"0.63868254",
"0.633516",
"0.6325188",
"0.6285694",
"0.626744",
"0.6261914",
"0.6248058",
"0.6183703",
"0.6161535",
"0.6157244",
"0.60787463",
"0.6067558... | 0.67874974 | 4 |
Called if a form is invalid. Rerenders the context data with the datafilled forms and errors. | def ee9W(YKHO, L03z, aobn, usA9):
return YKHO.render_to_response(YKHO.get_context_data(form=L03z, ingredient_form=aobn, instruction_form=usA9)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))",
"def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data())",
"def ee9W(YKHO, L03z, **B2fa):\n QpfX = YKHO.get_context_data(**B2fa... | [
"0.8202596",
"0.7983298",
"0.79133844",
"0.78708065",
"0.78708065",
"0.78708065",
"0.78708065",
"0.78708065",
"0.78708065",
"0.78708065",
"0.78697675",
"0.78395516",
"0.7814502",
"0.77890104",
"0.77868557",
"0.7781056",
"0.7770876",
"0.77366686",
"0.7699906",
"0.76843923",
"0... | 0.7271188 | 32 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.expand_dims(oyIN.max(WKvO, axis=-1), axis=-1))
return uw5A / oyIN.expand_dims(uw5A.sum(axis=-1), axis=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.8011412",
"0.7760833",
"0.7760833",
"0.76863474",
"0.76712537",
"0.76611257",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7657704",
"0.7640335",
"0.7627424",
"0.75514656",
"0.7532562",
"0.7457792",
"0.73241115",
"0.73168015",
"0.7298793... | 0.0 | -1 |
Get the config file name for an instance. | def opBM(YKHO, zeTD):
return BfDw.PathJoin(YKHO._cfgdir, zeTD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _NTK(KAOR, Ux0P):\n return 'configs/{0}.{1}'.format(KAOR.slug, KAOR.extension)",
"def _NTK(YKHO):\n pass",
"def Ks8p(YKHO) -> str:\n return YKHO._config.get_name()",
"def AeFH(YKHO):\n return Hy7s.path.join(YKHO.env.root_path, 'configs', YKHO.id + '.ini')",
"def MeGT(Emd4) -> str:\n retu... | [
"0.83603877",
"0.7715785",
"0.76237935",
"0.756889",
"0.7552027",
"0.75375044",
"0.74879754",
"0.7485293",
"0.7458602",
"0.7425333",
"0.7361814",
"0.73271173",
"0.72824496",
"0.7267444",
"0.7267444",
"0.7267444",
"0.7258181",
"0.7251682",
"0.7107637",
"0.70474076",
"0.7036728... | 0.85570675 | 0 |
Get the migration status As MigrateInstance for Xen is still blocking, if this method is called it means that MigrateInstance has completed successfully. So we can safely assume that the migration was successful and notify this fact to the client. | def azes(YKHO, KAOR):
return ei4T.MigrationStatus(status=uwaB.HV_MIGRATION_COMPLETED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def azes(YKHO, KAOR):\n for bGrB in range(YKHO._MIGRATION_INFO_MAX_BAD_ANSWERS):\n NHQX = YKHO.qmp.GetMigrationStatus()\n if 'status' in NHQX:\n if NHQX['status'] in uwaB.HV_KVM_MIGRATION_VALID_STATUSES:\n b7uh = ei4T.MigrationStatus(status=NHQX['status'])\n ... | [
"0.7303992",
"0.7282844",
"0.70026904",
"0.66689813",
"0.6426171",
"0.6392466",
"0.6250521",
"0.6250521",
"0.6224094",
"0.61662775",
"0.615016",
"0.61447585",
"0.6140315",
"0.60812503",
"0.60812503",
"0.60812503",
"0.6029538",
"0.6016122",
"0.6013819",
"0.6013491",
"0.6008093... | 0.8312731 | 1 |
Discrete Cosine Transform, Type I | def wAUG(WKvO):
OOcW = WKvO.shape
WKvO = WKvO.view(-1, OOcW[-1])
WKvO = ht2j.cat([WKvO, WKvO.flip([1])[:, 1:-1]], dim=1)
return ae6g(WKvO)[:, :, 0].view(*OOcW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tFNH(WKvO):\n return oyIN.cos(WKvO)",
"def siwH(WKvO):\n return 1 / YUNn(WKvO)",
"def siwH(WKvO):\n return 1 / epAf.sin(WKvO)",
"def no4o(WKvO):\n Phjr = oyIN.cos(WKvO)\n return Phjr",
"def YhSR(WKvO):\n return uEWC(WKvO.dtype, 'cos', WKvO)",
"def w1vp(YKHO):\n exwG = YKHO.norm2(... | [
"0.72083044",
"0.7126906",
"0.7111951",
"0.695264",
"0.69106394",
"0.68693626",
"0.6775115",
"0.6730984",
"0.67221934",
"0.66989607",
"0.66554767",
"0.665531",
"0.66501015",
"0.6645452",
"0.66285914",
"0.66161144",
"0.6612175",
"0.6600381",
"0.6598718",
"0.6598546",
"0.659233... | 0.0 | -1 |
Discrete Cosine Transform, Type II (a.k.a. the DCT) | def fK8P(WKvO, CkYf=None):
OOcW = WKvO.shape
ywwl = OOcW[-1]
WKvO = WKvO.contiguous().view(-1, ywwl)
Ty9i = ht2j.cat([WKvO[:, ::2], WKvO[:, 1::2].flip([1])], dim=1)
eMWi = vlHR(Ty9i)
G1Hx = -ht2j.arange(ywwl, dtype=WKvO.dtype, device=WKvO.device)[None, :] * oyIN.pi / (2 * ywwl)
ZotG = ht2j.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ha4a(YKHO, SppC):\n \"\"\"\n compDCT = fftpack.dct(fftpack.dct(matrix.T, norm=None).T, norm=None)\n #compDCT = fftpack.dct(matrix, type=None, n=matrix.shape, axis=None, norm=None, overwrite_x=None)\n im = Image.fromarray(compDCT.real)\n im.show()\n print(\"NUMPY DCT START-... | [
"0.7795904",
"0.7752437",
"0.7527515",
"0.7522513",
"0.75216764",
"0.74762815",
"0.7043241",
"0.70180565",
"0.69807786",
"0.6957084",
"0.6821154",
"0.6805797",
"0.6778636",
"0.6716457",
"0.6636673",
"0.6587107",
"0.65395486",
"0.65048873",
"0.6494334",
"0.64458287",
"0.635166... | 0.60095704 | 41 |
Can be used with a LinearDCT layer to do a 3D DCT. | def VdJb(WKvO, NQCf):
mSn1 = NQCf(WKvO)
IP77 = NQCf(mSn1.transpose(-1, -2))
YGIc = NQCf(IP77.transpose(-1, -3))
return YGIc.transpose(-1, -3).transpose(-1, -2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CIK9(DYuh: int, tYiq: int, _0fC: int=1, oug5: bool=True) -> ht2j.nn.Module:\n return U78l.Conv3d(DYuh, tYiq, kernel_size=1, stride=_0fC, bias=oug5)",
"def oH4o(input, nMvt=40):\n HsZf, ywwl = input.shape\n SVYz = XTiz.pi / nMvt\n YZ0U = ulrD(nMvt, ywwl, SVYz, False)\n YZ0U[:, 0] = YZ0U[:, 0] *... | [
"0.69372416",
"0.6678726",
"0.65401936",
"0.6451993",
"0.64437217",
"0.6386883",
"0.63499373",
"0.63262784",
"0.62951064",
"0.62498754",
"0.6238288",
"0.6237178",
"0.6220537",
"0.6218573",
"0.6190775",
"0.61888105",
"0.6176756",
"0.61744875",
"0.61576945",
"0.61427647",
"0.61... | 0.62644 | 9 |
Add a unit aware xlabel to an axis object. | def Lps_(jDK_, UXqs, PXGI=None, tZ2S=False, **YSA3):
if PXGI is not None and PXGI != '':
qbhf = jDK_.get_xticks()
SnCn, PXGI = XgLh(val=max(abs(qbhf)), unit=PXGI)
LEzW = '{:.4g}' if not tZ2S else '${:.4g}$'
uaPq = I8kJ.ticker.FuncFormatter(lambda WKvO, oeNL: LEzW.format(WKvO * SnCn))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VoLU(YKHO, UXqs):\n YKHO.chart['xAxis'][0]['name'] = UXqs\n return YKHO",
"def i2d8(YKHO, BWXx):\n YKHO.set_string('xax_units', BWXx)",
"def VoLU(l5Ny, object=None):\n return MPlV(object, xlabel=l5Ny)",
"def VoLU(YKHO, UXqs):\n YKHO._send('with g%s' % YKHO.gID)\n YKHO._send('xaxis label... | [
"0.691327",
"0.6910999",
"0.68159115",
"0.67929566",
"0.6762282",
"0.67041516",
"0.668918",
"0.6657709",
"0.6628671",
"0.66215706",
"0.65696955",
"0.64937514",
"0.64875424",
"0.6448099",
"0.6416521",
"0.6289999",
"0.62622184",
"0.6253165",
"0.62229747",
"0.61932373",
"0.61715... | 0.73344344 | 0 |
Add a rectangular block to a color plot using pcolormesh. xvals and yvals should be single vectors with values for the two sweep points. zvals should be a list of arrays with the measured values with shape (len(yvals), len(xvals)). gridorientation The grid orientation for the zvals is the same as is used in ax.pcolorme... | def um_u(lTdq, dlth, gJ4K, aNZO=None, NkkI=False, RKD7=False, lR77=None, **YSA3):
lTdq = oyIN.array(lTdq)
dlth = oyIN.array(dlth)
nyAZ = lTdq.argsort()
lTdq = lTdq[nyAZ]
fT6c = dlth.argsort()
dlth = dlth[fT6c]
gJ4K = gJ4K[:, nyAZ]
gJ4K = gJ4K[fT6c, :]
if aNZO is None:
LZpg = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w_9Q(LZpg, aNZO, CAzz, Jd40, epBp, iMGt, aVkX=15, aQHM='pcolormesh'):\n bctv = A7tO(nbins=aVkX).tick_values(epBp.min(), epBp.max())\n CkYf = DjPV(bctv, ncolors=iMGt.N, clip=True)\n if aQHM == 'pcolormesh':\n Xn71 = aNZO.pcolormesh(CAzz, Jd40, epBp, cmap=iMGt, norm=CkYf)\n elif aQHM == 'conto... | [
"0.6216144",
"0.6011616",
"0.59707594",
"0.56252724",
"0.55780727",
"0.55581355",
"0.5552394",
"0.5517845",
"0.5492278",
"0.5487611",
"0.5338853",
"0.5336867",
"0.53149164",
"0.53014606",
"0.52892804",
"0.52467763",
"0.5234982",
"0.52154815",
"0.51776475",
"0.51495165",
"0.51... | 0.7070278 | 0 |
Set up matplotlib's RC params for LaTeX plotting. Call this before plotting a figure. | def MjC7(Enm2=None, Focb=None, ZLJ_=1):
assert ZLJ_ in [1, 2]
if Enm2 is None:
Enm2 = 3.39 if ZLJ_ == 1 else 6.9
if Focb is None:
Focb = Enm2 * ZlbZ
Tw9C = 8.0
if Focb > Tw9C:
print('WARNING: fig_height too large:' + Focb + 'so will reduce to' + Tw9C + 'inches.')
Focb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM39():\n LaRT = True if RDuA.which('tex') else False\n I8kJ.pyplot.rc('text', usetex=LaRT)\n I8kJ.pyplot.rc('font', family='serif')\n I8kJ.rcParams['hatch.linewidth'] = 0.5",
"def YVgb():\n QrM1.rcParams.update({'figure.figsize': (12, 9)})\n QrM1.rcParams.update({'lines.linewidth': 2})\n ... | [
"0.7804009",
"0.74147326",
"0.7397312",
"0.72275734",
"0.7208816",
"0.719358",
"0.70532995",
"0.70532995",
"0.7021843",
"0.7016683",
"0.70031863",
"0.69578296",
"0.6888135",
"0.6777919",
"0.6759038",
"0.6751007",
"0.6711426",
"0.6708518",
"0.6701741",
"0.6700401",
"0.6687782"... | 0.0 | -1 |
Materials metric returns the material mass (quantity of material in Resources times the massfrac in Compositions) indexed by the SimId, QualId, ResourceId, ObjId, TimeCreated, and NucId. | def LSZ7(u4qd, b_VF):
WKvO = rLdf.merge(u4qd, b_VF, on=['SimId', 'QualId'], how='inner')
WKvO = WKvO.set_index(['SimId', 'QualId', 'ResourceId', 'ObjId', 'TimeCreated', 'NucId', 'Units'])
LVAh = WKvO['Quantity'] * WKvO['MassFrac']
LVAh.name = 'Mass'
epBp = LVAh.reset_index()
return epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GFNQ(YKHO):\n uPqz = [dict() for YRbF in range(len(YKHO.columns))]\n for (lziW, QJCc), ww2c in YKHO.iterrows():\n jwwx = '{0:s}{1:d}'.format(w7v4.name(lziW), QJCc)\n for YRbF in range(len(YKHO.columns)):\n uPqz[YRbF][jwwx] = ww2c[YRbF]\n return [Mx95.Material(meLH) for meLH in... | [
"0.64490944",
"0.643344",
"0.6408009",
"0.63744915",
"0.6353354",
"0.6337992",
"0.6216437",
"0.6135504",
"0.61354345",
"0.60913664",
"0.5998088",
"0.59891504",
"0.5968853",
"0.5953313",
"0.59485835",
"0.59485835",
"0.5940779",
"0.5936078",
"0.593379",
"0.5925997",
"0.5876488"... | 0.75533766 | 0 |
Return a random user agent string. | def ZwH4():
return pz3A(ua=YE2Q.query.order_by(JfyU.random()).first().string) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZwH4():\n return tuKI.choice(['Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36'])",
"def ZwH4():\n return tuKI.choice(g9nt)",
"def ZwH4(YKHO):\n return tuKI.choice(YKHO.__get_data('user_agents.txt', 'USER_AGENT'))",
"def ZwH4():... | [
"0.878307",
"0.8762214",
"0.8648115",
"0.8605929",
"0.857341",
"0.8570911",
"0.8570911",
"0.84045637",
"0.8301208",
"0.8209865",
"0.8143774",
"0.8058957",
"0.78216916",
"0.77814174",
"0.7678779",
"0.7613929",
"0.7416886",
"0.73305774",
"0.7203561",
"0.71940875",
"0.71262836",... | 0.83842087 | 8 |
Launch the View and the associated Controller. If startup file was provided at init process it and display. Otherwise display the welcome message. | def yKcO(YKHO):
YKHO._mw.show()
YKHO._c.start()
if YKHO._startup_file_path is not None:
YKHO._mw.load_img_from_txt(YKHO._startup_file_path)
else:
YKHO._mw.set_welcome_msg(DeuX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKcO(YKHO):\n if not YKHO.init_flag:\n YKHO.init_main()\n YKHO.show()\n HwRy.exit(YKHO.app.exec_())",
"def iXC1(YKHO):\n sqpk(YKHO.window.active_view())",
"def Bg67(Emd4):\n xAU6, qIxc = Emd4.set_commands()\n if xAU6.tui:\n Emd4.launch_tui()\n elif xAU6.gui:\n Emd4... | [
"0.6609342",
"0.62889737",
"0.62240183",
"0.6222591",
"0.6160588",
"0.6144946",
"0.6114538",
"0.6089695",
"0.60669273",
"0.6054652",
"0.6011143",
"0.5978343",
"0.5962324",
"0.59319586",
"0.5925932",
"0.5925932",
"0.59151924",
"0.5902321",
"0.5899848",
"0.58979994",
"0.5862332... | 0.66716063 | 0 |
Get the average leg pose. | def D9jj(YKHO, NT7I):
HmN3 = B8BL(YKHO._robot.GetMotorAngles())
jUMi = []
for d6pt in NT7I:
jUMi.append([HmN3[d6pt], HmN3[d6pt + JeID]])
jUMi = oyIN.array(jUMi)
return oyIN.mean(jUMi, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qqgr(YKHO):\n return YKHO._avg",
"def M_GK(YKHO):\n return YKHO.average(YKHO.delta_mat)",
"def O5mg(YKHO):\n return YKHO.average",
"def Jwyt(YKHO):\n return YKHO.__avg_position",
"def xD_J(YKHO):\n return sum([Ty9i.degree() for Ty9i in YKHO.verticesPoset]) / float(YKHO.order())",
"def ... | [
"0.68311083",
"0.6764733",
"0.6740319",
"0.6724881",
"0.67184323",
"0.66735667",
"0.6666314",
"0.66651267",
"0.66198635",
"0.66045135",
"0.65980655",
"0.6588819",
"0.6584273",
"0.65799093",
"0.65717614",
"0.6552466",
"0.6542491",
"0.65174097",
"0.64520735",
"0.64305764",
"0.6... | 0.7589406 | 0 |
Returns a list of the momentum transfer vectors in cartesian space given a list of reflections. | def vpgC(Tnu0, NjLr):
WNTX = NjLr.lattice.b_matrix()
vpgC = []
for YRbF, V8ye in enumerate(Tnu0):
Nw9c = xlPy.dot(WNTX, V8ye[0])
Nw9c = TquA.Vector(Nw9c[0], Nw9c[1], Nw9c[2], V8ye[0])
vpgC.append(Nw9c)
return vpgC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8tr(EcVT, H0B8, WTkW, lGbz=False, r8hN='nearest'):\n if lGbz:\n r8hN = 'wrap'\n w26Q = fRhS(EcVT, WTkW, axis=0, order=0, mode=r8hN)\n M0oR = fRhS(EcVT, WTkW, axis=0, order=1, mode=r8hN)\n mTTr = oyIN.sqrt(oyIN.sum(M0oR ** 2, 1))\n mTTr[mTTr == 0] = 1\n g8Mn = [w26Q, M0oR]\n for T4W... | [
"0.61226845",
"0.60237664",
"0.58621174",
"0.58621174",
"0.5848791",
"0.58303183",
"0.5754981",
"0.57168263",
"0.569697",
"0.5634475",
"0.55900323",
"0.5559333",
"0.5544284",
"0.5514388",
"0.5504936",
"0.5501688",
"0.5474052",
"0.54675233",
"0.5429386",
"0.5398402",
"0.539405... | 0.8182527 | 0 |
Given a list of vectors it plots them onto a stereographic projection. | def vSot(UBSO, LZpg=None, aNZO=None, qfpW='black'):
if LZpg is None:
LZpg = QrM1.figure()
if aNZO is None:
aNZO = LZpg.add_subplot(111)
r1VO = xlPy.linalg.norm(UBSO[0])
fUYa = []
bEXe = []
for YRbF, iArr in enumerate(UBSO):
fUYa.append(iArr[0] * r1VO / (r1VO - iArr[2]))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JYrM(UBSO, LZpg=None, aNZO=None, qfpW='black'):\n if LZpg is None:\n LZpg = QrM1.figure()\n if aNZO is None:\n aNZO = LZpg.add_subplot(111, projection='3d')\n fUYa = []\n bEXe = []\n YBbd = []\n for YRbF, iArr in enumerate(UBSO):\n fUYa.append(iArr[0])\n bEXe.appen... | [
"0.7143704",
"0.676654",
"0.6643834",
"0.6596147",
"0.64055365",
"0.63936317",
"0.63667184",
"0.6323408",
"0.6270186",
"0.6250047",
"0.62338346",
"0.6210266",
"0.6191738",
"0.61663145",
"0.6093076",
"0.6050263",
"0.59946746",
"0.59749484",
"0.5967629",
"0.58934575",
"0.586816... | 0.8013563 | 0 |
Sample a batch of experiences. | def mvm2(YKHO, Ep8u):
k52S = oyIN.random.permutation(YKHO._maxsize)
xwx4 = []
for d6pt in k52S:
xwx4.append(YKHO._storage[d6pt])
wspz = []
xASv = []
vwlo = []
BKVD = []
J1ea = []
for cL3G in xwx4:
if cL3G != None:
wspz.append(cL3G[0])
xASv.appe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XO44(YKHO):\n pass",
"def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)",
"def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)",
"def UVgs(YKHO):\n Ep8u = m... | [
"0.78110474",
"0.7638188",
"0.71348554",
"0.708761",
"0.7063213",
"0.70081747",
"0.69747835",
"0.6946321",
"0.69079083",
"0.68765277",
"0.68173116",
"0.67345333",
"0.6733207",
"0.67210984",
"0.6699259",
"0.66791505",
"0.6635271",
"0.66320235",
"0.66320235",
"0.66273504",
"0.6... | 0.0 | -1 |
Initialize the bearing vectors (since constant) to avoid redundant computations. | def s2Zp(YKHO):
OxJJ = (-65 + WKvO * 0.5078125 for WKvO in range(256))
FRGI = oyIN.fromiter(OxJJ, float)
YKHO.low_freq_brgs = oyIN.expand_dims(FRGI, 0)
OxJJ = (-35 + WKvO * 0.2734375 for WKvO in range(256))
FRGI = oyIN.fromiter(OxJJ, float)
YKHO.high_freq_brgs = oyIN.expand_dims(FRGI, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.thetas = oyIN.zeros([3, 1])\n YKHO.thetadots = oyIN.zeros([3, 1])",
"def Uxin(YKHO):\n for SRYB in YKHO.mn.variables:\n s8nK = YKHO.mn.unary_potentials[SRYB]\n L5LA = vqBa(s8nK)\n s8nK = s8nK - L5LA\n YKHO.var_beliefs[SRYB] = s8nK\n for SRYB in YKHO.... | [
"0.6544012",
"0.65007675",
"0.59498674",
"0.59281456",
"0.58964336",
"0.58485836",
"0.5837588",
"0.5837588",
"0.5837588",
"0.58138055",
"0.5811956",
"0.57981765",
"0.5796922",
"0.57566625",
"0.5744388",
"0.57287115",
"0.57271",
"0.57169276",
"0.5711019",
"0.5705475",
"0.56816... | 0.6216255 | 2 |
Add a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list. | def PgMl(YKHO, nPrm):
Esd_ = o7DN(nPrm)
Esd_.next = YKHO.head
YKHO.head = Esd_
YKHO.length += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yMiq(YKHO, wEf2, Z6gX):\n if YKHO.includes(wEf2):\n if YKHO.head.value == wEf2:\n YKHO.insert(Z6gX)\n else:\n Q6kx = o7DN(Z6gX)\n jvSB = YKHO.head\n while jvSB.nxt.value != wEf2:\n jvSB = jvSB.nxt\n Q6kx.nxt = jvSB.nxt\n ... | [
"0.8458561",
"0.83949095",
"0.8387002",
"0.8136193",
"0.8073811",
"0.8033845",
"0.7992439",
"0.7960131",
"0.79432654",
"0.7919317",
"0.7892835",
"0.7871263",
"0.7837379",
"0.7831015",
"0.7783066",
"0.7761248",
"0.7702354",
"0.76717806",
"0.7670804",
"0.7670552",
"0.7662298",
... | 0.0 | -1 |
List of valid labels. | def Crrw(YKHO) -> x1iM[str]:
return YKHO._labels | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Crrw():\n return list(uzmd)",
"def Crrw(YKHO) -> x1iM[str]:\n pass",
"def Te1x(YKHO) -> list:\n return []",
"def obPg(YKHO):\n evRj = set(YKHO.file_df['label'].unique())\n fUr2 = set(yizA.REMOVE_CLASSES)\n return list(evRj - fUr2)",
"def Te1x(YKHO):\n return []",
"def Te1x(YKHO):... | [
"0.822532",
"0.795498",
"0.784704",
"0.7814057",
"0.7630919",
"0.7630919",
"0.7376866",
"0.7337621",
"0.7328907",
"0.728833",
"0.7265997",
"0.7259563",
"0.7258248",
"0.72266674",
"0.72266674",
"0.72266674",
"0.72266674",
"0.72266674",
"0.71920466",
"0.71920466",
"0.71751595",... | 0.7744202 | 4 |
Return a reference to the self._facets dict set in __init__. | def cwoN(YKHO):
return YKHO._facets | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E3Ky(YKHO):\n return YKHO._facets",
"def bjwq(YKHO):\n return YKHO.__pfacets",
"def kjts(YKHO):\n return {**YKHO.default_facets, **YKHO.facets}",
"async def get_facets(YKHO) -> uLKX[dict, None]:\n return await YKHO._first_iterator_instance().get_facets()",
"def E3Ky(YKHO):\n raise NotImp... | [
"0.742515",
"0.73774946",
"0.7372854",
"0.72874856",
"0.7188868",
"0.691378",
"0.6808345",
"0.64739865",
"0.6456167",
"0.63856333",
"0.63400334",
"0.6314935",
"0.6265706",
"0.62623376",
"0.6211276",
"0.6164195",
"0.6140101",
"0.611296",
"0.6074632",
"0.60616463",
"0.60099655"... | 0.81077564 | 0 |
Serialize self into a string. | def Napc(YKHO, TY0X=None):
if TY0X is None:
TY0X = YKHO.get_default_body_mode()
JZs_ = YKHO.serialize_header()
ZGJL = getattr(YKHO, 'serialize_body_%s' % TY0X, None)
if ZGJL is None:
raise ValueError('Invalid body serialization mode %s' % TY0X)
TBsA = ZGJL()
return JZs_ + qk1z.pa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.serialize())",
"def zzna(YKHO):\n return l2Pc(YKHO.to_dict())",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def Napc(YKHO):\n return repr(YKHO)",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO):\n retur... | [
"0.86063385",
"0.8583284",
"0.8296337",
"0.8296337",
"0.8286461",
"0.82746315",
"0.8235555",
"0.8199447",
"0.81916845",
"0.81805277",
"0.8131894",
"0.810179",
"0.8101476",
"0.80967534",
"0.8089003",
"0.807574",
"0.8073648",
"0.80538994",
"0.80538994",
"0.80299604",
"0.8029960... | 0.0 | -1 |
Choose a backend instance. | def JLXL(Emd4, DDLl=None):
return DDLl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JLXL(DDLl):\n if DDLl == 'random':\n zxMY = H6we()\n tuKI.shuffle(zxMY)\n return zxMY[0]\n return DDLl",
"def Bl4q(qIxc):\n if qIxc.backend == 'gatttool':\n DDLl = UDLR\n elif qIxc.backend == 'bluepy':\n DDLl = Pxak\n elif qIxc.backend == 'pygatt':\n D... | [
"0.746792",
"0.74061584",
"0.72989386",
"0.7216347",
"0.7178801",
"0.71601313",
"0.712461",
"0.70088863",
"0.69920754",
"0.6991295",
"0.6962673",
"0.6890683",
"0.6888606",
"0.6888606",
"0.6888606",
"0.68400615",
"0.68272287",
"0.6768596",
"0.6758947",
"0.6668852",
"0.6638084"... | 0.7442546 | 1 |
Delete self from the backend. | def PTpj(YKHO, DDLl=None):
DDLl = DDLl if DDLl else YKHO.get_backend(YKHO._backend)
DDLl.delete(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO):\n YKHO._delete(YKHO._lookup('self'))",
"def PTpj(YKHO):\n del YKHO",
"def PTpj(YKHO):\n PTpj(YKHO)",
"def PTpj(YKHO) -> None:\n bD7m = YKHO.get_url('self')\n YKHO.session.delete(bD7m)",
"def PTpj(YKHO):\n S8SU.delete(YKHO)",
"def PTpj(YKHO):\n FYrf.storage.delete(YKHO... | [
"0.80756766",
"0.795388",
"0.7920607",
"0.77828336",
"0.7781768",
"0.7663263",
"0.7663263",
"0.76454437",
"0.7617627",
"0.7581458",
"0.7559375",
"0.75459737",
"0.75366503",
"0.7513652",
"0.7513343",
"0.7513343",
"0.7513343",
"0.7513343",
"0.7469323",
"0.746552",
"0.7463848",
... | 0.7554404 | 11 |
Get a valid path referring to a given filename in the `semevaldata` subdirectory of the package. | def Fr_O(Ux0P):
return RkCj.resource_filename('discriminatt', Hy7s.path.join('semeval-data', Ux0P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ehj4(Ux0P):\n with RkCj.path('spitfire.data', Ux0P) as XP5J:\n pmON = str(XP5J)\n return pmON",
"def OyQC(Ux0P):\n AU6t = Hy7s.path.dirname(Hy7s.path.realpath('__file__'))\n rKZV = Hy7s.path.join(AU6t, 'data', Ux0P)\n return rKZV",
"def s8df(YKHO, Ux0P):\n wd8X = Hy7s.path.dirname(... | [
"0.66690576",
"0.6598679",
"0.6593908",
"0.656178",
"0.656178",
"0.65542066",
"0.6539902",
"0.64131147",
"0.6385173",
"0.6300458",
"0.6288153",
"0.628128",
"0.62672544",
"0.61953145",
"0.61858225",
"0.61822855",
"0.61755276",
"0.6160711",
"0.6142563",
"0.61385083",
"0.6106123... | 0.7805075 | 0 |
Get a valid path referring to a given filename in the `moredata` subdirectory of the package. | def sME1(Ux0P):
return RkCj.resource_filename('discriminatt', Hy7s.path.join('more-data', Ux0P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xtev(jQJk):\n MJH2 = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n return Hy7s.path.join(MJH2, '..', 'adas_data', jQJk)",
"def twhy(Ux0P=''):\n return Hy7s.path.join(i0XC, Ux0P)",
"def F28p(Ux0P):\n return Hy7s.path.join(i0XC, Ux0P)",
"def F28p(Ux0P):\n return Hy7s.path.join(i0XC, Ux0P)",
... | [
"0.7224118",
"0.7209069",
"0.7111118",
"0.7111118",
"0.70730436",
"0.70589733",
"0.7012636",
"0.692276",
"0.6864987",
"0.68042684",
"0.67937505",
"0.6746922",
"0.67360955",
"0.66888434",
"0.6678676",
"0.66755605",
"0.6660163",
"0.66583633",
"0.66380894",
"0.6636495",
"0.66007... | 0.70496947 | 6 |
Read the list of examples from one of the included data files. | def AHIJ(mWFP):
Ux0P = Fr_O(mWFP)
_73Q = []
for zFiD in open(Ux0P, encoding='utf-8'):
UrE_, MP_r, xC3W, gr26 = zFiD.rstrip().split(',')
nTrQ = bool(int(gr26))
_73Q.append(scw9(UrE_, MP_r, xC3W, nTrQ))
return _73Q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, h_xa, Ux0P):\n raise NotImplementedError()",
"def uaX7(ESvo, HUmy):\n import read_dataFile\n from os import listdir\n from os.path import isfile, join\n _73Q = []\n global x_to_file_dictionary\n jePI = [eHNT for eHNT in listdir(ESvo) if isfile(join(ESvo, eHNT))]\n for uRP3 ... | [
"0.6963775",
"0.6899058",
"0.6885859",
"0.68108547",
"0.680095",
"0.673509",
"0.672601",
"0.6715893",
"0.6623767",
"0.65978384",
"0.6593918",
"0.65501064",
"0.6544254",
"0.6544072",
"0.650942",
"0.650942",
"0.650942",
"0.650942",
"0.6496074",
"0.6488269",
"0.6486643",
"0.64... | 0.0 | -1 |
Gets the result of this Report. | def Aofo(YKHO):
return YKHO._result | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u3tA(YKHO):\n return YKHO.result.report",
"def EEnb(YKHO):\n return YKHO._result",
"def EEnb(YKHO):\n return YKHO._result",
"def EEnb(YKHO):\n return YKHO._result",
"def XZHZ(YKHO):\n return YKHO.result",
"def G7yD(YKHO):\n return YKHO.__result",
"def XZHZ(YKHO):\n return YKHO.... | [
"0.80880594",
"0.7866147",
"0.7866147",
"0.7866147",
"0.7757599",
"0.7751426",
"0.77376264",
"0.7696865",
"0.76454645",
"0.76304364",
"0.757413",
"0.757413",
"0.757413",
"0.757413",
"0.757413",
"0.7455629",
"0.7455629",
"0.74499094",
"0.7430878",
"0.7430878",
"0.742657",
"0... | 0.76596266 | 12 |
Gets the report_id of this Report. Reports unique identifier | def VJS0(YKHO):
return YKHO._report_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ixXi(YKHO):\n VJS0 = ''\n if YKHO._report_key in (Mik5.SEARCH_DETAIL_REPORT, Mik5.SEARCH_BODY_REPORT) and 'payment' in YKHO._report_data:\n VJS0 = YKHO._report_data['payment']['invoiceId']\n elif YKHO._report_key == Mik5.FINANCING_STATEMENT_REPORT and 'baseRegistrationNumber' in YKHO._report_da... | [
"0.84092855",
"0.8185662",
"0.8165938",
"0.76530635",
"0.6700516",
"0.66207093",
"0.65784425",
"0.65784425",
"0.6529767",
"0.6511625",
"0.6511625",
"0.6511625",
"0.64996743",
"0.64832574",
"0.64832574",
"0.64832574",
"0.64832574",
"0.64832574",
"0.64832574",
"0.64832574",
"0.... | 0.8700522 | 0 |
Gets the created_on of this Report. Report created date | def i0wi(YKHO):
return YKHO._created_on | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def JjkJ(YKHO):\n return YKHO._date_created",
"def... | [
"0.80290127",
"0.80290127",
"0.80290127",
"0.80290127",
"0.80290127",
"0.7993475",
"0.7993316",
"0.7993316",
"0.7947294",
"0.7947294",
"0.7947294",
"0.7947294",
"0.7926267",
"0.79065114",
"0.78970253",
"0.7867845",
"0.77701515",
"0.76056176",
"0.7598253",
"0.7581944",
"0.7572... | 0.77291405 | 18 |
Gets the generated_on of this Report. Report generated date | def ab61(YKHO):
return YKHO._generated_on | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i0wi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'created_on')",
"def i0wi(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_on')",
"def a0GP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'created_date')",
"def JjkJ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'date_created')",... | [
"0.7242833",
"0.71543884",
"0.70791274",
"0.7049839",
"0.70253396",
"0.6986369",
"0.6985592",
"0.69498444",
"0.6896527",
"0.6889379",
"0.6880975",
"0.6880975",
"0.6880975",
"0.6880975",
"0.6880975",
"0.6880975",
"0.6880975",
"0.6880975",
"0.6880975",
"0.687236",
"0.6856707",
... | 0.78808033 | 0 |
Sets the generated_on of this Report. Report generated date | def ab61(YKHO, ab61):
YKHO._generated_on = ab61 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ab61(YKHO):\n return YKHO._generated_on",
"def jpwO(YKHO, jpwO):\n YKHO._generated = jpwO",
"def i0wi(YKHO, i0wi):\n YKHO._created_on = i0wi",
"def i0wi(YKHO, i0wi):\n YKHO._created_on = i0wi",
"def i0wi(YKHO, i0wi):\n YKHO._created_on = i0wi",
"def i0wi(YKHO, i0wi):\n YKHO._created... | [
"0.7080075",
"0.6838545",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
"0.64802295",
... | 0.7966632 | 0 |
Gets the period_start of this Report. Report period end date | def lGFN(YKHO):
return YKHO._period_start | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLIi(YKHO):\n return hA3p(YKHO.data.get('period_begin'))",
"def skcJ(pQ4c):\n return OE4O[pQ4c[0]].start_end(pQ4c)",
"def aheP(YKHO):\n return YKHO.period",
"def qMHz(YKHO, KBgZ, PObu, pQ4c):\n P5uT = YKHO.pool['account.period']\n wEtp = vWWt = pQ4c\n return P5uT.search(KBgZ, PObu, [('s... | [
"0.7135363",
"0.6773259",
"0.6595879",
"0.6415145",
"0.63877404",
"0.63522077",
"0.63522077",
"0.63522077",
"0.63522077",
"0.6264167",
"0.62065995",
"0.61937",
"0.6187214",
"0.61325765",
"0.61323875",
"0.61131656",
"0.61118954",
"0.6101422",
"0.60436505",
"0.60201",
"0.601948... | 0.7627775 | 0 |
Sets the period_start of this Report. Report period end date | def lGFN(YKHO, lGFN):
YKHO._period_start = lGFN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Evbw(YKHO, Evbw):\n YKHO._billing_period_start = Evbw",
"def GEfr(YKHO, GEfr):\n YKHO._date_period = GEfr",
"def XV6Z(YKHO, XV6Z):\n YKHO._period_end = XV6Z",
"def UXWu(YKHO, UXWu):\n YKHO._period_started = UXWu",
"def pQ4c(YKHO, pQ4c):\n YKHO._period = pQ4c",
"def lGFN(YKHO):\n ret... | [
"0.7021445",
"0.6718021",
"0.66179216",
"0.6501322",
"0.64666396",
"0.6450914",
"0.6436434",
"0.6436434",
"0.6436434",
"0.6436434",
"0.6436434",
"0.6436434",
"0.6228589",
"0.621696",
"0.60626775",
"0.6043455",
"0.59109277",
"0.5910574",
"0.5865121",
"0.58629775",
"0.5856372",... | 0.81566066 | 1 |
Gets the period_end of this Report. Report period start date | def XV6Z(YKHO):
return YKHO._period_end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XV6Z(YKHO):\n return hA3p(YKHO.data.get('period_end'))",
"def mjdP(Zc_S, pQ4c):\n wEtp = LgWF.get(Zc_S, 'YYYYMMDD')\n if pQ4c == 'monthly':\n ddKN = wEtp.replace(months=+1)\n else:\n ddKN = wEtp.replace(days=+7)\n DYRh = ddKN.format('YYYYMMDD')\n return DYRh",
"def mjdP(YKHO... | [
"0.7929746",
"0.7545003",
"0.7236116",
"0.7236116",
"0.7236116",
"0.7236116",
"0.7136931",
"0.68981326",
"0.68604684",
"0.6833483",
"0.6830144",
"0.6830144",
"0.6830144",
"0.6830144",
"0.6830144",
"0.6830144",
"0.6820229",
"0.6795273",
"0.67561144",
"0.67480195",
"0.6738805",... | 0.7970361 | 0 |
Sets the period_end of this Report. Report period start date | def XV6Z(YKHO, XV6Z):
YKHO._period_end = XV6Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _cNM(YKHO, _cNM):\n YKHO._billing_period_end = _cNM",
"def zyep(YKHO, sKOJ):\n RA_F = qcWV.timedelta(sKOJ)\n KhBf = YKHO.start_date + RA_F\n YKHO.end_date = KhBf",
"def XV6Z(YKHO):\n return hA3p(YKHO.data.get('period_end'))",
"def XV6Z(YKHO):\n return YKHO._period_end",
"def Zq8v(YKHO... | [
"0.7335828",
"0.7048536",
"0.703525",
"0.6977085",
"0.68203264",
"0.6680053",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.66679823",
"0.6637716",
"0.... | 0.84329116 | 0 |
Gets the report_type of this Report. Report's type | def GHJz(YKHO):
return YKHO._report_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ly51(YKHO):\n pass",
"def GHJz(YKHO):\n return YKHO._identity",
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKHO._type",
"def FRul(YKHO):\n return YKHO._type",
"def FRul(YKHO):\n ... | [
"0.8491787",
"0.7106776",
"0.707116",
"0.707116",
"0.707116",
"0.7065076",
"0.7065076",
"0.7065076",
"0.7065076",
"0.7065076",
"0.7065076",
"0.7065076",
"0.6956619",
"0.6939306",
"0.6939306",
"0.69217044",
"0.69133586",
"0.6901591",
"0.68692696",
"0.68692696",
"0.6867413",
... | 0.86859035 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86416155",
"0.8510352",
"0.78545547",
"0.77443707",
"0.77117187",
"0.7697595",
"0.76603293",
"0.7638324",
"0.76217484",
"0.7607743",
"0.7607743",
"0.7607743",
"0.76074046",
"0.75997984",
"0.7585864",
"0.7583017",
"0.75715595",
"0.75687325",
"0.7539626",
"0.7539626",
"0.752... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8393104",
"0.8355197",
"0.8295551",
"0.8133039",
"0.811476",
"0.8100177",
"0.80994433",
"0.80982935",
"0.80982935",
"0.8093244",
"0.8093244",
"0.8093244",
"0.8093244",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80671525",
"0.80597436",
"0.8057952",
"0... | 0.0 | -1 |
Returns a list of videos to play including pre/end rolls >>> ob = Video(uid=u'video1', name=u'Video 1', description=u'description', tags=[u'tag1', u'tag2', u'tag3']) >>> ob.get_playlist() [u'video1'] >>> ob.pre_roll = u'fake_video1' >>> ob.get_playlist() [u'fake_video1', u'video1'] >>> ob.end_roll = u'fake_video2' >>> ... | def nE0P(YKHO, uv6v=[], m8z6=[]):
NvAR = [YKHO.__name__]
if YKHO.pre_roll:
if X8Rg.get('add_parent_stings') == 'after':
uv6v = [YKHO.pre_roll] + uv6v
else:
uv6v = uv6v + [YKHO.pre_roll]
NvAR = uv6v + NvAR
if YKHO.end_roll:
if X8Rg.get('add_parent_stings') ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nE0P(YKHO, *qIxc):\n return YKHO.songs_list",
"def nE0P(YKHO):\n bWXe = YKHO.next_playing\n return bWXe",
"def jabJ(zVa7, JqP_):\n h2IT = zVa7.playlistItems().list(part='snippet', playlistId=JqP_, maxResults=50).execute()\n arg2 = []\n while True:\n doDC = [W7M9['snippet']['resourc... | [
"0.6863265",
"0.6759084",
"0.62094986",
"0.6200957",
"0.6180878",
"0.617585",
"0.6130719",
"0.6115414",
"0.61047643",
"0.6048581",
"0.60117054",
"0.5984416",
"0.5957944",
"0.5927577",
"0.5922333",
"0.58681226",
"0.58681226",
"0.5860837",
"0.58489305",
"0.5848716",
"0.58438444... | 0.693393 | 0 |
Return a sequence of sentences based on given sentence ids. | def ZfZk(YKHO, A07C):
if len(A07C) == 0 or A07C[0] == '':
return ('', [])
yAmx = ''
sTgM = []
if YKHO.wmode == 'tmx':
yAmx = YKHO.addTuBeginning()
for Wswm in A07C:
znbZ, o8Kj = YKHO.getSentence(Wswm)
yAmx = YKHO.addSentence(yAmx, znbZ, Wswm)
sTgM.append(o8Kj)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v28M(Rhv4: DataFrame, rXQP: Set[int]):\n OPAs = Rhv4['sentence_index'].map(lambda WKvO: WKvO in rXQP)\n return Rhv4[OPAs]['sentence'].tolist()",
"def CS8H(A07C, URt2):\n return [URt2[YRbF] for YRbF in A07C]",
"def iAEk(YKHO, yZn6):\n C13M = YKHO.document_store[yZn6]\n Rhv4 = []\n for yAmx... | [
"0.7742311",
"0.7280168",
"0.7044923",
"0.68708295",
"0.66329706",
"0.66080046",
"0.6589662",
"0.6531779",
"0.6521562",
"0.6511666",
"0.6446232",
"0.64098287",
"0.63914716",
"0.6333654",
"0.6311297",
"0.6293298",
"0.6258975",
"0.6254069",
"0.6246256",
"0.62443674",
"0.6213978... | 0.7028409 | 3 |
static method that returns the JSON string representation of list_dictionaries. (JSON is one of the standard formats for sharing data representation) Static method that returns the JSON string representation of list_dictionaries json_string_representation = json.dumps(my_obj) | def IZ3T(F986):
if F986 is None or F986 is []:
return '[]'
else:
return qQXR.dumps(F986) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986, sort_keys=True)",
"def IZ3T(F986):\n if F986:\n if type(F986) is list:\n return qQXR.dumps(F986)\n else:\n return '[]'",
"def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQX... | [
"0.8057474",
"0.78939146",
"0.7881124",
"0.7874276",
"0.7874276",
"0.7862359",
"0.78572416",
"0.78138685",
"0.78138685",
"0.779283",
"0.77890295",
"0.7782204",
"0.77815807",
"0.77815807",
"0.77815807",
"0.77815807",
"0.77815807",
"0.77815807",
"0.774905",
"0.7746295",
"0.7746... | 0.7727027 | 25 |
that returns the list of the JSON string representation json_string json.loads() expects to get its text from a string object | def K3BH(zEKB):
if zEKB is None or not zEKB:
return []
else:
return qQXR.loads(zEKB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3BH(zEKB):\n if zEKB and len(zEKB) > 0:\n return qQXR.loads(zEKB)\n return []",
"def K3BH(zEKB):\n o9Ep = []\n if zEKB is None or zEKB == '':\n return o9Ep\n else:\n return qQXR.loads(zEKB)",
"def K3BH(zEKB):\n vC9B = []\n if zEKB is None or zEKB is '':\n r... | [
"0.83659846",
"0.83390427",
"0.83051354",
"0.82835597",
"0.8211329",
"0.8148003",
"0.8140484",
"0.81245995",
"0.81245995",
"0.8117274",
"0.8102292",
"0.8102292",
"0.8102292",
"0.8102292",
"0.8102292",
"0.8100186",
"0.8100186",
"0.80910176",
"0.80910176",
"0.80910176",
"0.8091... | 0.80436605 | 24 |
Returns True if the data is a truthy value, False otherwise. | def U5e0(nPrm):
vIwR = str(nPrm).lower()
return vIwR in ['true', '1', 'f'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eRwN(YKHO):\n return bool(YKHO.data)",
"def eRwN(YKHO):\n return YKHO.data is not None",
"def LUSK(YKHO):\n return bool(YKHO.data)",
"def eRwN(YKHO):\n return bool(YKHO.get_value())",
"def YwhW(YKHO, nPrm):\n return False",
"def deVW(YKHO):\n return YKHO.data is not None",
"def eR... | [
"0.7812124",
"0.78077286",
"0.7345519",
"0.7135728",
"0.71325",
"0.7107471",
"0.7066886",
"0.7043291",
"0.7037087",
"0.70200384",
"0.6992097",
"0.69661236",
"0.69374216",
"0.6915968",
"0.68935984",
"0.6865065",
"0.6865065",
"0.6807801",
"0.6781628",
"0.6774414",
"0.6765444",
... | 0.78632665 | 0 |
Adds an output to this transaction | def RSdM(YKHO, hlel):
RKD7.debug('creating output... %d', hlel.value)
YKHO.output.append(hlel)
hlel.n = len(YKHO.output)
hlel.transaction = YKHO.hash_transaction()
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSdM(YKHO, uT23):\n YKHO._outputs.append(uT23)",
"def RSdM(YKHO, hlel):\n pass",
"def RSdM(YKHO, hlel):\n YKHO._outputs.append(hlel)",
"def H2v5(YKHO, hlel):\n YKHO.outputs.append(hlel)",
"def RSdM(YKHO, hlel):\n YKHO._outputs.append(hlel)\n YKHO._numOutputs = YKHO._numOutputs + 1",
... | [
"0.8351514",
"0.8192405",
"0.80625427",
"0.8054893",
"0.79844344",
"0.7490836",
"0.7312285",
"0.7029476",
"0.7029476",
"0.7029476",
"0.7029476",
"0.6948964",
"0.69243675",
"0.6874946",
"0.68472016",
"0.68397886",
"0.6826902",
"0.67572427",
"0.6731775",
"0.6694816",
"0.6590576... | 0.83065605 | 1 |
Checks whether the Heap is empty or not. True if Heap is empty, False otherwise. | def A4KR(YKHO):
return YKHO.root is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.heap[0] == 0",
"def FBfn(YKHO) -> bool:\n return YKHO.heap.length() == 0",
"def FBfn(YKHO) -> bool:\n return YKHO.heap.length() == 0",
"def FBfn(YKHO) -> bool:\n return YKHO.heap.length() == 0",
"def FBfn(YKHO) -> bool:\n return YKHO.heap.length() == 0",
"def ... | [
"0.8766048",
"0.87112814",
"0.87112814",
"0.87112814",
"0.87112814",
"0.87112814",
"0.86588395",
"0.85633427",
"0.8503603",
"0.84412986",
"0.84412986",
"0.81419414",
"0.76749784",
"0.76641405",
"0.76596594",
"0.76028913",
"0.7594376",
"0.75909734",
"0.75870883",
"0.75870883",
... | 0.0 | -1 |
Returns the size (the number of Nodes) of the Heap. The size of the Heap. | def R8e4(YKHO):
return YKHO.size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return YKHO._heap_size",
"def zNig(YKHO):\n return len(YKHO.heap)",
"def zNig(YKHO):\n return len(YKHO.heap)",
"def zNig(YKHO):\n return len(YKHO.heap)",
"def H0NN(YKHO):\n Forh = 0\n for H5ew, ZfUD in YKHO._heap_descriptor.items():\n LyhY = oyIN.prod(ZfUD['shape'... | [
"0.82789713",
"0.8148433",
"0.8148433",
"0.8148433",
"0.7903976",
"0.78789717",
"0.7559019",
"0.74235684",
"0.7329863",
"0.7289782",
"0.7257499",
"0.7257499",
"0.7257499",
"0.7257499",
"0.7223887",
"0.71914935",
"0.7170405",
"0.7161356",
"0.71412843",
"0.7139735",
"0.7099905"... | 0.0 | -1 |
So the last k items get shifted to the front with the [k] item in the list becoming the new head. Need to do this with one pass over the LL and O(1) storage. | def BCjs(aPd6, G1Hx):
sdCG = iter = aPd6
def tmnz(aPd6):
"""
Returns the length of the LL
and sets the tail's next node to the current head.
"""
ycBG = aPd6
aPd6 = aPd6.next
UHFx = 1
while aPd6:
UHFx += 1
aPd6 = aPd6.next
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gxwV(sdCG, G1Hx):\n Vo9x = o7DN(0)\n Vo9x.next = sdCG\n THkp = Vo9x\n yKcO, J3uN = (sdCG, THkp)\n while yKcO is not None:\n for YRbF in range(G1Hx):\n J3uN = J3uN.next\n if J3uN is None:\n return Vo9x.next\n x19x = J3uN.next\n yKcO, J3uN ... | [
"0.77117705",
"0.76527935",
"0.74587035",
"0.7392566",
"0.7360906",
"0.73057747",
"0.72496116",
"0.7233854",
"0.72243255",
"0.7179867",
"0.71709055",
"0.71039325",
"0.7062389",
"0.6966478",
"0.6948887",
"0.69108194",
"0.6847115",
"0.6777544",
"0.67347956",
"0.6723211",
"0.671... | 0.78438705 | 0 |
Returns the length of the LL and sets the tail's next node to the current head. | def tmnz(aPd6):
ycBG = aPd6
aPd6 = aPd6.next
UHFx = 1
while aPd6:
UHFx += 1
aPd6 = aPd6.next
ycBG = ycBG.next
ycBG.next = sdCG
return (UHFx, sdCG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQQq(YKHO, sdCG):\n jvSB = sdCG\n u54L = 0\n while jvSB is not None:\n u54L += 1\n jvSB = jvSB.next\n return u54L",
"def wepG(vC9B):\n Z9rn = 0\n while vC9B:\n Z9rn += 1\n vC9B = vC9B.next\n return Z9rn",
"def NEj8(YKHO):\n u54L = 0\n if YKHO.head:\n ... | [
"0.6917111",
"0.6810359",
"0.67617124",
"0.6726155",
"0.670151",
"0.6678634",
"0.6663622",
"0.6637111",
"0.66294545",
"0.6621356",
"0.6601507",
"0.6595259",
"0.65949637",
"0.6582692",
"0.6579285",
"0.6553131",
"0.6550581",
"0.65473676",
"0.6527862",
"0.6524642",
"0.65207714",... | 0.701758 | 0 |
Validate the uploaded samplesheet and files by the lab | def dMK9(YKHO):
gcHA = YKHO.get_samplesheet_names()
YKHO.match_results(gcHA)
if len(YKHO.improper_files) is 0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rOLZ(YKHO):\n nPrm = {'input_data': [{'name': 'File1', 'file_id': YKHO.file_1.id}, {'name': 'File3', 'file_ids': [YKHO.file_2.id]}]}\n SPvY = DAmW()\n SPvY.add_allowed_media_type('application/json')\n rtDh = DAmW()\n rtDh.add_allowed_media_type('text/plain')\n RRlC = {'File1': (True, False, S... | [
"0.72387767",
"0.6892895",
"0.67398494",
"0.6728196",
"0.6689343",
"0.6668135",
"0.66589415",
"0.66126144",
"0.6608363",
"0.6602621",
"0.65807873",
"0.65709484",
"0.65699226",
"0.6566393",
"0.65411484",
"0.6524652",
"0.6520782",
"0.64988714",
"0.6480472",
"0.6452482",
"0.6442... | 0.80208725 | 0 |
r""" Returns \p True if the \p MoveSet is empty | def FBfn(YKHO, kxcW: Set[Move]=None) -> bool:
if kxcW is not None and kxcW:
XLlb = set(YKHO.avail.values())
if len(XLlb) > len(kxcW):
return False
for QJVE in XLlb:
for o2Ej in kxcW:
if P_ka.is_identical(QJVE, o2Ej):
break
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO):\n if len(YKHO.x) == 0:\n return True\n return False",
"def FBfn(YKHO):\n for bGrB in YKHO:\n return True\n else:\n return False",
"def lsmZ(YKHO):\n return YKHO.size() == 0",
"def FBfn(YKHO):\n return not YKHO._alleles",
"def FBfn(YKHO) -> bool:\n r... | [
"0.7368137",
"0.73588693",
"0.73332554",
"0.7306427",
"0.73033226",
"0.73033226",
"0.72802263",
"0.7279302",
"0.7279302",
"0.7279302",
"0.72588027",
"0.72479373",
"0.72475415",
"0.72410727",
"0.72342193",
"0.72214544",
"0.7220926",
"0.7214268",
"0.72131765",
"0.72131765",
"0.... | 0.73546636 | 2 |
Gets unique identifier for this object. | def okcC(YKHO):
return YKHO.__uid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def ShR8(YKHO) -> str:\n return YKHO._id",
"def unpH(YKHO):\n return YKHO.__identifier",
"def ShR8(YKHO):\n return YKHO._name",
"def ShR8(YKHO):\n return YKHO._name",
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._id... | [
"0.86351436",
"0.86351436",
"0.8554307",
"0.85281116",
"0.85281116",
"0.85028476",
"0.85028476",
"0.85028476",
"0.85028476",
"0.85028476",
"0.84452665",
"0.84452665",
"0.84058666",
"0.83358973",
"0.83358973",
"0.83358973",
"0.83358973",
"0.83358973",
"0.83358973",
"0.83358973",... | 0.0 | -1 |
Return the geopandas.GeoDataFrame that contains the geometry column and any number of attribute columns | def yLtf(YKHO) -> SsVK.GeoDataFrame:
return YKHO._data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m_xQ(YKHO):\n try:\n MhBQ = U_NH.GeoDataFrame({'geometry': U_NH.GeoSeries(YKHO.geometries)})\n MhBQ.crs = YKHO.crs\n MhBQ = MhBQ.join(YKHO.attributes)\n except Exception:\n bo34.debug('failed to build a GeoDataFrame from shapelygeometries')\n raise Exception()\n retu... | [
"0.7879766",
"0.7135492",
"0.711605",
"0.7108728",
"0.70499873",
"0.7028027",
"0.6935947",
"0.69043654",
"0.68580824",
"0.6851762",
"0.6804332",
"0.6613417",
"0.6598542",
"0.65632284",
"0.6524424",
"0.6519077",
"0.65116334",
"0.64856213",
"0.64711803",
"0.6470787",
"0.645365"... | 0.62084776 | 33 |
Convert this FeatureCollection into a dictionary that can be converted into a valid JSON representation | def MNRr(YKHO) -> cuzp:
Csk6 = {'id': YKHO.id}
if YKHO._start_times is not None:
Csk6.update(YKHO.start_times_to_dict())
if YKHO._end_times is not None:
Csk6.update(YKHO.end_times_to_dict())
if YKHO._data is not None:
Csk6['data'] = qQXR.loads(YKHO._data.to_json())
return Csk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO):\n return YKHO.featureCollection",
"def oD7C(YKHO):\n return YKHO.feature",
"def wFOJ(YKHO):\n bySB = [KCHu.data for KCHu in YKHO._items]\n RGIO = {'type': 'FeatureCollection', 'features': bySB, 'collections': [Z9rn.data for Z9rn in YKHO._collections]}\n if YKHO._search is not Non... | [
"0.83281666",
"0.77120084",
"0.75093865",
"0.7505354",
"0.7372852",
"0.73703647",
"0.73666894",
"0.7354035",
"0.73051876",
"0.71722704",
"0.71348643",
"0.7124349",
"0.7078129",
"0.7018599",
"0.70117414",
"0.6974099",
"0.69509584",
"0.6892614",
"0.68873084",
"0.6850394",
"0.68... | 0.0 | -1 |
Return all words in a string, where a word is four or more contiguous characters in the range az or AZ. The resulting words should be lower case. | def V22M(l5Ny):
"""
for word in re.split("[^a-z]", text.lower()):
if len(word) >= 4:
yield word"""
return ZbWC.findall(tV8Z, l5Ny.lower()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l4Z4(vIwR):\n if vIwR.isupper():\n return [yzQ0.lower() for yzQ0 in vIwR.split('_')]\n else:\n njyT = ''.join((ZbWC.escape(yzQ0) + '|' for yzQ0 in cmPJ)) + '[a-z0-9]+|[A-Z][a-z0-9]*'\n return [yzQ0 if yzQ0 in cmPJ else yzQ0.lower() for yzQ0 in ZbWC.findall(njyT, vIwR)]",
"def B7TV(... | [
"0.7514194",
"0.7031508",
"0.6991943",
"0.6943823",
"0.6915894",
"0.68795866",
"0.6851359",
"0.68429834",
"0.6832124",
"0.6807917",
"0.6798013",
"0.66429657",
"0.6571219",
"0.6539249",
"0.65243167",
"0.6499221",
"0.64722437",
"0.64691055",
"0.64559805",
"0.6450722",
"0.644080... | 0.67298406 | 11 |
Take an iterator over words, add the sum to the total, and return the total. An iterable object that contains the words in a document The total counter we should add the counts to | def aymO(V22M, wjRY=mBkc()):
assert isinstance(wjRY, mBkc)
for GIN8 in V22M:
wjRY[GIN8] += 1
return wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IUTL(GIN8, V22M):\n UHFx = 0\n for FwVi in V22M[GIN8]:\n UHFx += FwVi.count\n return UHFx",
"def wjRY(YKHO):\n return sum([YKHO.words] + [KG9w.words for KG9w in YKHO.subsections])",
"def vFPU(V22M, m2Zb):\n wjRY = 0\n for BWXx in V22M:\n wjRY += m2Zb(BWXx)\n return wjRY",... | [
"0.6749554",
"0.6716096",
"0.6691774",
"0.6504713",
"0.647599",
"0.6442361",
"0.64270943",
"0.6410144",
"0.6349041",
"0.63129157",
"0.62835854",
"0.6239075",
"0.6239075",
"0.62132275",
"0.61839885",
"0.61701095",
"0.6140282",
"0.6104169",
"0.6073597",
"0.60460734",
"0.6044115... | 0.72120094 | 0 |
Convert 1D array of unix timestamps (float) to `datetime.datetime` | def DQN4(zXrx):
return oyIN.array([qcWV.utcfromtimestamp(Oa8f) for Oa8f in zXrx]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z3S3(xc6J):\n return oyIN.array([JRYC.timestamp() for JRYC in xc6J])",
"def PFlq(M_Ra):\n WyrD = oyIN.zeros((len(M_Ra), 7), dtype='float32')\n YRbF = 0\n for ITS7 in M_Ra:\n Yk00 = str(qcWV.datetime.fromtimestamp(int(ITS7)))\n MUBp, CsVP = Yk00.split(' ')\n lO87, x0eS, CjKC =... | [
"0.810345",
"0.7255599",
"0.7255599",
"0.71778935",
"0.7173731",
"0.7096622",
"0.70557266",
"0.70557266",
"0.70442003",
"0.696752",
"0.6895434",
"0.6847967",
"0.68387073",
"0.6831853",
"0.6765631",
"0.6742342",
"0.6573055",
"0.6562071",
"0.6562071",
"0.6517274",
"0.65059316",... | 0.8527718 | 0 |
Returns a dictionary containing entities and their linked attributes to look for redundant information Returns dict Dictionary with the mapping of entity types and relational attributes. | def _8ww(YKHO):
J8oL = {}
for _j8X in YKHO.attributes:
xC3W = YKHO.attributes[_j8X]
if 'entities' in xC3W:
for LEXu in xC3W['entities']:
J8oL.setdefault(LEXu, []).append(_j8X)
return J8oL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def baHi(Emd4, LEXu):\n hlel = LEXu.attrib\n jpc5 = {}\n if 'type' in hlel:\n hlel['_type'] = hlel['type']\n del hlel['type']\n for QWcs in LEXu:\n if QWcs.tag == 'entity':\n ShoO = Emd4.dictify_entity(QWcs)\n if QWcs.attrib.get('rel') == ShoO.get('_type'):\n ... | [
"0.70297027",
"0.64916724",
"0.64401346",
"0.6383555",
"0.63643086",
"0.6262529",
"0.62443024",
"0.62443024",
"0.62212795",
"0.6133354",
"0.6127665",
"0.6085135",
"0.60700095",
"0.60569555",
"0.60523504",
"0.59804076",
"0.5972347",
"0.59687585",
"0.5952935",
"0.5952664",
"0.5... | 0.68525666 | 1 |
Compute the target activation for the current layer in a DTPlike fashion (see pg. 11), based on the output target and the output activation. | def ZD5u(YKHO, B26D, BkHJ, c8oV):
Ws7F = YKHO.propagate_backward(B26D)
HJMp = YKHO.propagate_backward(c8oV)
NOSC = Ws7F + BkHJ - HJMp
return NOSC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ntLs(YKHO, xYGm):\n return lambda KeL5, ZHfW: fhcK.Activation('softmax', name=xYGm)(KeL5)",
"def r5V0(CtJu, Ru3a, nPrm):\n if not isinstance(Ru3a, list):\n Ru3a = [Ru3a]\n JfyU = nMvt.function([CtJu, nMvt.learning_phase()], Ru3a)\n return [ZfUD.astype(oyIN.float64) for ZfUD in JfyU([nPrm, ... | [
"0.70095134",
"0.69469994",
"0.69313085",
"0.68416923",
"0.6805627",
"0.6770588",
"0.6749657",
"0.6721159",
"0.66525686",
"0.6590064",
"0.6560558",
"0.65529174",
"0.6526294",
"0.6482575",
"0.64602655",
"0.6430291",
"0.64278454",
"0.6414269",
"0.6410196",
"0.6386977",
"0.63700... | 0.6177099 | 37 |
Compute the target linear activation for the current layer in a DTPlike fashion, based on the linear output target and the output linear activation | def ZD5u(YKHO, dI4W, BkHJ, BKEM):
Ws7F = YKHO.propagate_backward(dI4W)
HJMp = YKHO.propagate_backward(BKEM)
NOSC = Ws7F + BkHJ - HJMp
return NOSC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZgV(YKHO):\n assert YKHO.output.size > 0\n return 1.0 / (1.0 + oyIN.exp(-YKHO.linear_output))",
"def KVH6(YKHO, input):\n _Y_0 = YKHO.hidden_linear(input)\n huKH = YKHO.hidden_activation(_Y_0)\n RP6R = YKHO.output_linear(huKH)\n return RP6R",
"def bmNr(FRUf, Gzv5, EDoJ, v3qL=ZylS.nn.relu... | [
"0.7249085",
"0.71671903",
"0.7140741",
"0.69393843",
"0.68976295",
"0.68745726",
"0.6855351",
"0.68509126",
"0.68268186",
"0.6728575",
"0.6718982",
"0.6706985",
"0.6703038",
"0.6642411",
"0.66413546",
"0.66390216",
"0.66351455",
"0.6594737",
"0.6594115",
"0.65895283",
"0.657... | 0.0 | -1 |
Computes the vol of a portfolio from a covariance matrix and constituent weights weights are a numpy array or N x 1 maxtrix and covmat is an N x N matrix | def cKVX(_mSQ, Bgm1):
return oyIN.matmul(oyIN.matmul(_mSQ.T, Bgm1), _mSQ) ** 0.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cKVX(_mSQ, gbZI):\n return (_mSQ.T @ gbZI @ _mSQ) ** 0.5",
"def jtvu(jbYn, _mSQ):\n Esro = 0.0\n for YRbF in range(_mSQ.shape[0]):\n Esro += _mSQ[YRbF] * _mSQ[YRbF] * jbYn[YRbF, YRbF]\n j93S = 0.0\n for YRbF in range(_mSQ.shape[0] - 1):\n Nqp_ = 0.0\n for r845 in range(YRb... | [
"0.8846491",
"0.7099956",
"0.6663899",
"0.6641465",
"0.6619612",
"0.64574736",
"0.6209041",
"0.61808914",
"0.6151332",
"0.61425906",
"0.6141934",
"0.60741836",
"0.60662574",
"0.60470945",
"0.60205084",
"0.5925106",
"0.5916037",
"0.5912959",
"0.59095573",
"0.58967614",
"0.5891... | 0.8826142 | 1 |
This function takes last element as pivot, places the pivot element at its correct position in sorted array, and places all smaller (smaller than pivot) to left of pivot and all greater elements to right of pivot | def Qrt_(ezWE, gqRb, ODP9):
csQL = ezWE[ODP9]
Khs_ = gqRb
for YRbF in range(gqRb, ODP9):
if ezWE[YRbF] < csQL:
ezWE[YRbF], ezWE[Khs_] = (ezWE[Khs_], ezWE[YRbF])
Khs_ += 1
ezWE[ODP9], ezWE[Khs_] = (ezWE[Khs_], ezWE[ODP9])
return Khs_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Umeh(ezWE, cntZ, XVAW):\n x1fj = cntZ + (XVAW - cntZ) >> 1\n if (ezWE[cntZ] - ezWE[x1fj]) * (ezWE[XVAW] - ezWE[cntZ]) >= 0:\n return cntZ\n elif (ezWE[x1fj] - ezWE[cntZ]) * (ezWE[XVAW] - ezWE[x1fj]) >= 0:\n return x1fj\n else:\n return XVAW",
"def Qrt_(ybN4, cntZ, XVAW):\n ... | [
"0.74839497",
"0.72998154",
"0.7243484",
"0.7235378",
"0.7201316",
"0.7198429",
"0.7168397",
"0.7168208",
"0.7132421",
"0.71297336",
"0.7113435",
"0.71006995",
"0.7054534",
"0.7026437",
"0.6981754",
"0.697323",
"0.69592106",
"0.6916666",
"0.6893032",
"0.68833524",
"0.68512726... | 0.69479877 | 17 |
generate random Users with mean as a random cluster center | def ta0n(YKHO):
JvOq = oyIN.random.choice(YKHO.user_initial_n_clusters)
iJiw = YKHO.user_init_sigma * YKHO.user_rng.randn(YKHO.embedding_dimension)
iJiw += YKHO.user_cluster_centers[JvOq]
P6bq = mv1M(id=YKHO.user_counter, embedding=iJiw)
YKHO.user_counter += 1
YKHO.users[P6bq.id] = P6bq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y6Hy(YKHO):\n YKHO.user_cluster_centers = YKHO.user_cluster_sigma * YKHO.user_rng.randn(YKHO.user_initial_n_clusters, YKHO.embedding_dimension)\n for YRbF in range(YKHO.n_users):\n YKHO._add_random_user()",
"def iutz(YKHO) -> None:\n return oyIN.array([Iccc.rand(YKHO._bounds[e_2d].min(), YKHO... | [
"0.71888006",
"0.714009",
"0.6920708",
"0.66288745",
"0.65893334",
"0.6560552",
"0.6483216",
"0.6474777",
"0.64720166",
"0.6465002",
"0.6422105",
"0.6418497",
"0.64020777",
"0.6400824",
"0.63878465",
"0.63730466",
"0.63467145",
"0.63135093",
"0.63099045",
"0.6306464",
"0.6286... | 0.70138955 | 2 |
choice first user uniformly at random | def nAnt(YKHO):
return oyIN.random.choice(range(len(YKHO.users))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Imy3(YKHO, input):\n input = YKHO.formatter(input)\n return tuKI.choice(input)",
"def z_cu(YKHO):\n mrPm = YKHO.constraints['choices']\n if mrPm:\n return tuKI.choice(mrPm)\n else:\n return None",
"def IN6l(YKHO):\n super().make_choice()\n YKHO.choice = tuKI.choices([0, 1... | [
"0.72136694",
"0.71825767",
"0.71700996",
"0.67884296",
"0.678721",
"0.6762166",
"0.67535317",
"0.67480785",
"0.67106086",
"0.67076826",
"0.66972977",
"0.6696841",
"0.6688446",
"0.66451705",
"0.664274",
"0.6617498",
"0.65966624",
"0.6595611",
"0.6592301",
"0.6572669",
"0.6547... | 0.63019496 | 59 |
perform grayscale thresholding using a lower and upper threshold by blacking the background lying between the threholds and whitening the foreground Parameter | def M5qd(UFp3, iImO, DevT):
CWPj = UFp3 < DevT
TjL5 = UFp3 > iImO
EOxM = oyIN.logical_and(CWPj, TjL5)
return EOxM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_(Avlo=255, VTvO=0, Nhxk=[10, 20, 30, 40]):\n Hy7s.chdir(Hy7s.getcwd() + '/edge')\n _PLx = MJKz()\n kmfe = yUDG()\n JfRw(_PLx, kmfe, Avlo, VTvO, Nhxk)\n Hy7s.chdir('..')",
"def wzy1(LNo8, W8mS=True):\n LNo8 = XC5k.GaussianBlur(LNo8, (5, 5), 0)\n H2v2, TVTK = LNo8.shape[:2]\n Ufsv =... | [
"0.73966384",
"0.7314137",
"0.71631753",
"0.70731336",
"0.7051863",
"0.6975376",
"0.6974173",
"0.69141537",
"0.6886015",
"0.68412197",
"0.68304324",
"0.6828695",
"0.6827402",
"0.68239915",
"0.6817111",
"0.6811857",
"0.6799779",
"0.67751586",
"0.6680843",
"0.6675467",
"0.66523... | 0.6317984 | 68 |
Reset the noise parameter of the agent. | def SiRx(YKHO):
YKHO.noise.reset() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.noise.reset()",
"def yPzQ(YKHO):\n YKHO.state = jth9.copy(YKHO.mu)",
"def CTAD(YKHO, CTAD=True):\n YKHO._reset_noise = CTAD",
"def SiRx(YKHO, Qabx):\n with ht2j.no_grad():\n for xqoZ in Qabx.parameters():\n ARTs = ht2j.randn(xqoZ.size()) * YKHO.sigma\n ... | [
"0.7998903",
"0.79603714",
"0.788748",
"0.74795264",
"0.72986424",
"0.7144738",
"0.7107076",
"0.70575714",
"0.7026138",
"0.70113367",
"0.698955",
"0.6773206",
"0.67473495",
"0.6708438",
"0.6662745",
"0.66615754",
"0.6579986",
"0.6566268",
"0.6518786",
"0.65157986",
"0.6492343... | 0.80810934 | 1 |
Update value parameters using given batch of experience tuples. Update according to Q_targets = r + gamma critic_target(next_state, actor_target(next_state)) | def v5Xw(YKHO, wfZK):
wspz, xASv, vwlo, BKVD, nQSc, h4Ou, _0VL = wfZK
CKbg = YKHO.actor_target(BKVD)
El8S = xASv[:, YKHO.index * YKHO.action_size:(YKHO.index + 1) * YKHO.action_size]
if YKHO.index:
e8Bg = ht2j.cat((El8S, CKbg), dim=1)
else:
e8Bg = ht2j.cat((CKbg, El8S), dim=1)
gd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pu93(YKHO, _p7a, Ep8u, Vhxs):\n Pqjz, mP_b, GfYY, fh_V, bYtc = _p7a.sample(batch_size=Ep8u)\n Pqjz = ht2j.FloatTensor(Pqjz).to(YKHO.device)\n fh_V = ht2j.FloatTensor(fh_V).to(YKHO.device)\n mP_b = ht2j.FloatTensor(mP_b).to(YKHO.device)\n GfYY = ht2j.FloatTensor(GfYY).to(YKHO.device).unsqueeze(1)... | [
"0.6999836",
"0.6970922",
"0.68430716",
"0.6834422",
"0.6723108",
"0.6714371",
"0.6713491",
"0.67119217",
"0.66865236",
"0.66598034",
"0.66392606",
"0.66348386",
"0.6610548",
"0.6575264",
"0.65748584",
"0.65706587",
"0.6564031",
"0.65362865",
"0.6532695",
"0.6530306",
"0.6512... | 0.6135041 | 82 |
Clean up column names by replacing invalid characters with an '_', and wrap reserved keywords in quotes so they can be used as column names. | def SoR1(z0q4):
z0q4 = ZbWC.sub('[^a-zA-Z0-9_\\"]', '_', z0q4.strip())
if z0q4.lower() in ('time', 'datetime', 'timestamp', 'user'):
return '"' + z0q4 + '"'
else:
return z0q4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fKUY(Jyyj):\n return str(Jyyj).lower().strip().replace(' ', '_').replace(',', '_')",
"def fKUY(Jyyj):\n return str(Jyyj).lower().strip().replace(' ', '_').replace(',', '_')",
"def IJqp(jQ3Z):\n jQ3Z.columns = [ZbWC.sub('[\\\\. \\\\(\\\\)\\\\/]+', '_', LihS) for LihS in jQ3Z.columns]\n jQ3Z.colu... | [
"0.7428871",
"0.7428871",
"0.7374092",
"0.7296996",
"0.7145118",
"0.7120565",
"0.7119628",
"0.7040474",
"0.69145626",
"0.6863204",
"0.68015254",
"0.67810756",
"0.6715753",
"0.66402006",
"0.66301167",
"0.6622576",
"0.66168",
"0.66063267",
"0.65892345",
"0.6562061",
"0.6557613"... | 0.70634454 | 7 |
This method determines whether the file is compressed by searching the file name for .gz | def x2nr(VqRE):
r8hN = ZbWC.search('.*(.gz)\\d*$', str(VqRE))
return True if r8hN else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e2GX(mWFP):\n return mWFP.split('.')[-1] == 'gz'",
"def e2GX(mWFP):\n return mWFP.endswith('.gz')",
"def x2nr(nUeQ):\n Ux0P, ztnR = Hy7s.path.splitext(nUeQ)\n return ztnR in [format for xTYz in RDuA.get_unpack_formats() for format in xTYz[1]]",
"def i4c8(qaEx):\n e2GX = False\n if twTI.... | [
"0.82476944",
"0.8175705",
"0.7856498",
"0.78471917",
"0.773886",
"0.77341324",
"0.7654267",
"0.76497626",
"0.7528379",
"0.74933946",
"0.7485884",
"0.74639183",
"0.73688465",
"0.7364766",
"0.7346986",
"0.7320187",
"0.7311662",
"0.71863115",
"0.71820265",
"0.71500206",
"0.7134... | 0.83855593 | 0 |
Split a cloud storage key into it's 'path' and 'filename'. | def etEd(H5ew, bjJF=True):
if '/' in H5ew:
r8hN = ZbWC.search('^(.*/)(.*$)', H5ew)
if r8hN:
if bjJF:
return r8hN.group(1)
else:
return (r8hN.group(1), r8hN.group(2))
else:
raise Exception('Directory prefix not found in key',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cu2f(H5ew):\n JZXy, C3ST, _c1T, Ux0P = H5ew.split('/')\n qtWj = Ux0P.split('_')[-1]\n return (JZXy, C3ST, _c1T, qtWj)",
"def QCL9(H5ew):\n return H5ew.rsplit('/', 1)[-1].rsplit('-', 1)",
"def vxsF(H5ew):\n return H5ew.split('.')",
"def YptF(y1Uh):\n return Hy7s.path.splitext(aPr_(y1Uh))... | [
"0.7297149",
"0.7204891",
"0.7139948",
"0.70489454",
"0.69922745",
"0.68593043",
"0.6824191",
"0.6716962",
"0.6696538",
"0.6671683",
"0.664373",
"0.664373",
"0.6633888",
"0.6562908",
"0.65130043",
"0.64757085",
"0.6473216",
"0.64458585",
"0.6326004",
"0.6316801",
"0.6312068",... | 0.7139801 | 3 |
Split an S3 path into it's 'bucket' and 'path'. | def YRTP(bZa0):
r8hN = ZbWC.search('s3://(.+?)/(.*)', str(bZa0), ZbWC.IGNORECASE)
if r8hN and r8hN.group and r8hN.group(1):
pmON = '' if not r8hN.group(2) else r8hN.group(2)
return (r8hN.group(1), pmON)
else:
raise Exception('Bucket not found in ' + bZa0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def moST(TkSh):\n RVjQ = TkSh.replace('s3://', '').split('/')\n WE7e = RVjQ.pop(0)\n H5ew = '/'.join(RVjQ)\n return (WE7e, H5ew)",
"def moST(pmON):\n if not pmON.startswith('s3://'):\n raise ValueError('Invalid S3 path')\n pmON = pmON[5:]\n SQ3m = pmON.strip('/').strip().split('/')\n ... | [
"0.87027603",
"0.8487175",
"0.80392474",
"0.8000221",
"0.7676688",
"0.74562395",
"0.70803034",
"0.7072089",
"0.6941235",
"0.6931411",
"0.6876521",
"0.68651026",
"0.68252814",
"0.6802427",
"0.6784337",
"0.67437863",
"0.6721467",
"0.67146796",
"0.664696",
"0.6641842",
"0.654921... | 0.71027166 | 6 |
Determine whether the operating system is Windows or Mac. The production server is a Windows machine, whereas some of the development machines are Mac | def uR89():
import platform
if platform.system() == 'Darwin':
return 'Mac'
elif platform.system() == 'Windows':
return 'Windows'
else:
raise Exception('platform.system not identified - ' + platform.system()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JoHW():\n if a9EH.system().startswith('Windows'):\n return 'Windows'\n elif a9EH.system().startswith('Linux'):\n return 'Linux'\n else:\n return 'UNKNOWN'",
"def r5rD():\n return Z5O9().upper() == 'Windows'.upper()",
"def r5rD():\n return a9EH.system().lower() == 'window... | [
"0.82820934",
"0.8166117",
"0.802969",
"0.80041397",
"0.7948858",
"0.7921514",
"0.790223",
"0.78933036",
"0.78816885",
"0.7838483",
"0.7789329",
"0.77200174",
"0.7706628",
"0.76947933",
"0.76913565",
"0.76773345",
"0.76551443",
"0.76325303",
"0.75711286",
"0.75684667",
"0.756... | 0.78815824 | 9 |
Return today's date as a string. The time is not included. | def yo7_():
return qcWV.datetime.now().strftime('%Y-%m-%d') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gVTZ() -> str:\n return qcWV.datetime.today().strftime('%Y-%m-%d')",
"def DeyU():\n JUFO = qcWV.now()\n return str(JUFO.strftime('%Y-%m-%d'))",
"def gVTZ():\n from datetime import date\n return str(date.today())",
"def nsX0():\n DibD = qcWV.datetime.now()\n return DibD.strftime('%d-%... | [
"0.8765479",
"0.8660206",
"0.85466444",
"0.8501635",
"0.8418692",
"0.83998513",
"0.83671254",
"0.82477015",
"0.8233502",
"0.821953",
"0.8169942",
"0.8121427",
"0.81191325",
"0.80813",
"0.8036069",
"0.8027431",
"0.8004203",
"0.7998833",
"0.7938998",
"0.7934019",
"0.78834414",
... | 0.8372968 | 6 |
Not starightforward to vectorize add. Hence we loop | def sum(WKvO, Z9rn, tpio=-2):
pfA5 = list(WKvO.size())
pfA5.pop(tpio)
YAq3 = ht2j.zeros(pfA5, dtype=WKvO.dtype, device=WKvO.device)
for aBiq in ht2j.unbind(WKvO, tpio):
YAq3 = H2v5(YAq3, aBiq, Z9rn)
return YAq3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g12u(YKHO, nPrm):\n yvT9 = nPrm * nPrm + nPrm\n return yvT9",
"def xXeU(P6bq, Ty9i):\n if len(P6bq) != len(Ty9i):\n print('Two vector must be same length')\n return -1\n else:\n ycBG = P6bq[:]\n for YRbF in range(len(ycBG)):\n ycBG[YRbF] = P6bq[YRbF] + Ty9i[... | [
"0.69322336",
"0.6521281",
"0.65050846",
"0.640376",
"0.6379022",
"0.63573444",
"0.6351652",
"0.6336662",
"0.62744105",
"0.6265644",
"0.6260419",
"0.6255722",
"0.625546",
"0.625451",
"0.6244469",
"0.6239678",
"0.6239678",
"0.6232365",
"0.6198714",
"0.6194893",
"0.6185104",
... | 0.0 | -1 |
Set up a new PreciseOrbit object, does not parse any data | def FIMM(YKHO, hVIq, jYva=None, qaEx=None, Y3mr=1, **B2fa):
super().__init__(rundate=hVIq)
YKHO.file_key = 'gnss_orbit_sp3' if jYva is None else jYva
YKHO.file_path = qaEx
YKHO.day_offset = Y3mr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Cnec):\n YKHO.polyproj = Cnec",
"def FIMM(YKHO):\n YKHO.quaternion = R5H8()\n YKHO.velocity = rg7f()\n YKHO.position = Nw1F()\n YKHO.isInitialized = False",
"def FIMM(YKHO):\n YKHO.state = wHLO()\n YKHO.quad = yNRT()",
"def FIMM(YKHO):\n YKHO.set_path()\n YKHO.vx = 0... | [
"0.6738083",
"0.6532938",
"0.63981",
"0.63941294",
"0.63936234",
"0.63292664",
"0.6313541",
"0.6268265",
"0.6267256",
"0.6250069",
"0.6197573",
"0.6197233",
"0.6195438",
"0.617493",
"0.6165558",
"0.6165109",
"0.6153042",
"0.61507285",
"0.6148235",
"0.6143734",
"0.6132879",
... | 0.0 | -1 |
Return a Host object at this index. | def Aofo(YKHO, d6pt):
return YKHO.result_as(d6pt, NPYu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rzPS(YKHO):\n assert len(YKHO) == 1, AssertionError('Found multiple hosts in HostContainer')\n return YKHO._all[0]",
"def OP2O(YKHO, d6pt):\n if d6pt != 0:\n raise Exception('Only [0] index operation is allowed on HostsContainer instance.')\n Of0F = list(YKHO._all)\n if len(Of0F) == 0:\... | [
"0.7568332",
"0.74281156",
"0.7111672",
"0.69917667",
"0.69480944",
"0.6739692",
"0.6714329",
"0.6629876",
"0.65579724",
"0.65489286",
"0.6533101",
"0.6480241",
"0.6460659",
"0.646034",
"0.6414998",
"0.6363615",
"0.63571346",
"0.6332313",
"0.63318884",
"0.632936",
"0.63049114... | 0.6590174 | 8 |
Return a Service object at this index. | def Aofo(YKHO, d6pt):
return YKHO.result_as(d6pt, M87a) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zVa7(YKHO) -> M87a:\n return YKHO.accessory.services.iid(YKHO._iid)",
"def zVa7(YKHO):\n try:\n return YKHO._service\n except Exception as e:\n raise tTpl",
"def zVa7(YKHO):\n try:\n return YKHO._service\n except Exception as e:\n raise tTpl",
"def OP2O(YKHO, YR... | [
"0.72876275",
"0.7085811",
"0.7085811",
"0.7001343",
"0.6975706",
"0.69293845",
"0.67710114",
"0.6687899",
"0.66471684",
"0.6624271",
"0.6624271",
"0.6624271",
"0.6624271",
"0.66134787",
"0.6562879",
"0.65537286",
"0.6532971",
"0.6314146",
"0.62684983",
"0.62402964",
"0.62033... | 0.6919527 | 6 |
Get the default key for this level of the foldermap. Raises a ValueError if it does not have a default. | def rOY3(YKHO) -> h8nf[str]:
return YKHO.__curr_level.get('__default') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NtON(YKHO):\n Mkmy = YKHO.key_default_or_none\n if Mkmy is None:\n raise RuntimeError('Could not define key_default')\n return Mkmy\n return YKHO._default_key",
"def WmM4(YKHO, H5ew):\n try:\n return YKHO._default[H5ew]\n except KeyError:\n raise KeyError('No default va... | [
"0.71330315",
"0.6669909",
"0.6612738",
"0.6537262",
"0.6471902",
"0.6453945",
"0.6387174",
"0.6371138",
"0.63349473",
"0.6322395",
"0.63067496",
"0.6270228",
"0.62332237",
"0.62173676",
"0.62027705",
"0.6164145",
"0.6154444",
"0.6147827",
"0.6146803",
"0.61448574",
"0.614247... | 0.82946515 | 0 |
Truncate or expand cmap such that it covers axes limit and and colorbar to axes | def hUJX(aNZO, iMGt, CkYf, **B2fa):
ywwl = iMGt.N
h3cg, Z3uP = (oyIN.min(aNZO.get_ylim()), oyIN.max(aNZO.get_ylim()))
hkxX = oyIN.linspace(h3cg, Z3uP, num=ywwl)
EYKh = jth9(CkYf)
EYKh.clip = True
Jw9H = iMGt(EYKh(hkxX))
if isinstance(iMGt, rVxW.DiscreteColormap):
Nynu = 'discrete'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IaOv(iMGt, kpLf=None, JCoA=None, ma_p=0, ezWE=None, QR6r=None):\n if kpLf is None:\n kpLf = ezWE.min().values\n if JCoA is None:\n JCoA = ezWE.max().values\n eS5m = ma_p - kpLf\n WqsQ = JCoA - ma_p\n if eS5m > WqsQ:\n pRCb = 0.0\n JnI8 = 0.5 * (JCoA - kpLf) / eS5m\n ... | [
"0.6871764",
"0.682694",
"0.68233997",
"0.6807271",
"0.67153233",
"0.66258305",
"0.66072536",
"0.63873386",
"0.63785106",
"0.62932205",
"0.62845844",
"0.6230177",
"0.6211949",
"0.6206068",
"0.6151993",
"0.6120643",
"0.6112375",
"0.6094641",
"0.6093011",
"0.6082999",
"0.605752... | 0.5582817 | 93 |
Compute the x_range, i.e., the values for which the density will be computed. It should be slightly larger than the max and min so that the plot actually reaches 0, and also has a bit of a tail on both sides. | def emZv(nPrm, dDGN=0.2):
try:
w7OC = oyIN.nanmax(nPrm) - oyIN.nanmin(nPrm)
except ValueError:
return []
if w7OC < 1e-06:
return [oyIN.nanmin(nPrm), oyIN.nanmax(nPrm)]
return oyIN.linspace(oyIN.nanmin(nPrm) - dDGN * w7OC, oyIN.nanmax(nPrm) + dDGN * w7OC, 1000) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def awtB(YKHO):\n return YKHO.xmax - YKHO.xmin",
"def iPPI(YKHO):\n hkxX = oyIN.linspace(-5, 5, 100)\n return hkxX",
"def Ehbj(YKHO):\n ksmO = YKHO.last_draw[0]\n EBgd, HpuQ = ksmO.boundingBox()\n kBZ_ = YKHO._axisInterval(YKHO._xSpec, EBgd[0], HpuQ[0])\n return kBZ_",
"def mhuT(da75, Pg... | [
"0.7561271",
"0.73063266",
"0.7199232",
"0.69702065",
"0.6956036",
"0.6921286",
"0.66138315",
"0.6601223",
"0.65973216",
"0.648508",
"0.64565974",
"0.6428313",
"0.64116716",
"0.6398799",
"0.6346306",
"0.6322874",
"0.63012826",
"0.63012826",
"0.6292483",
"0.62872225",
"0.62646... | 0.6599744 | 8 |
Log out user view and redirects to index page | def lViG(QePW):
erK4(QePW)
return Yd7Q('/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def erK4():\n oLi7()\n return vKnz(nKyW(fOLk))",
"def erK4():\n oLi7()\n return vKnz(nKyW('index.index'))",
"def erK4():\n oLi7()\n return vKnz(nKyW('main.index'))",
"def erK4():\n oLi7()\n return vKnz(nKyW('main.index'))",
"def erK4():\n oLi7()\n return vKnz(nKyW('main.index'... | [
"0.8332702",
"0.82884085",
"0.82850814",
"0.82525754",
"0.82525754",
"0.8226552",
"0.8226552",
"0.8226552",
"0.8226552",
"0.8226552",
"0.8226552",
"0.8226552",
"0.8226552",
"0.8226552",
"0.8226321",
"0.81644976",
"0.8139995",
"0.81331366",
"0.81253994",
"0.81078345",
"0.81004... | 0.81980205 | 15 |
Store the item at the given array pointer. | def Bcpy(QpfX, mBtZ, ztb7, wEf2, AsCw):
mIJV = None if ztb7.aligned else 1
return QpfX.pack_value(mBtZ, ztb7.dtype, wEf2, AsCw, align=mIJV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1R3(YKHO, d6pt: int, BWXx: T) -> None:\n YKHO.array[d6pt] = BWXx",
"def TIvv(QpfX, mBtZ, wEsz, qIxc):\n Fuqr, EsHr, ryv5 = wEsz.args\n FUTK, or8S, wEf2 = qIxc\n if isinstance(EsHr, SnBA.BaseTuple):\n dXvQ = EsHr.types\n _0VL = Zlwm.unpack_tuple(mBtZ, or8S, count=len(EsHr))\n els... | [
"0.6941775",
"0.67701",
"0.6712653",
"0.6642507",
"0.6625913",
"0.66235596",
"0.66235596",
"0.66144353",
"0.66035223",
"0.6600799",
"0.6526502",
"0.651399",
"0.6510479",
"0.6510479",
"0.650783",
"0.6466275",
"0.6453952",
"0.638045",
"0.6354105",
"0.6342706",
"0.632841",
"0.... | 0.7392661 | 0 |
Normalize the index type and value. 0d arrays are converted to scalars. | def ubzb(QpfX, mBtZ, EsHr, or8S):
if isinstance(EsHr, SnBA.Array) and EsHr.ndim == 0:
assert isinstance(EsHr.dtype, SnBA.Integer)
RVRM = f53l(EsHr)(QpfX, mBtZ, or8S)
YJ8S = m2HQ(QpfX, mBtZ, EsHr, RVRM.data)
return (EsHr.dtype, YJ8S)
else:
return (EsHr, or8S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, ezWE):\n d6pt = []\n hkxX = []\n UXqs = ezWE[0]\n for fvDH in YKHO.numeric_cols:\n if fvDH in YKHO.feat_dict:\n if len(ezWE[fvDH].strip()) == 0 or ezWE[fvDH] == '-1' or ezWE[fvDH] == '0':\n continue\n else:\n if int(ezWE[fvDH]) <... | [
"0.6585237",
"0.64728963",
"0.6459751",
"0.63344395",
"0.624587",
"0.6242145",
"0.6220424",
"0.61939114",
"0.61575615",
"0.6155535",
"0.61016536",
"0.60984457",
"0.60711944",
"0.60662585",
"0.6061109",
"0.6028442",
"0.6027428",
"0.6022592",
"0.6017514",
"0.6004029",
"0.596944... | 0.6862468 | 0 |
Return this dimension's size as an integer. | def jiw9(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9(YKHO):\n return pL5w(aP4s(YKHO._get_info_node(), 'size'))",
"def jiw9(YKHO):\n return float(YKHO.__props.size[0])",
"def zNig(YKHO):\n return YKHO.i_length * YKHO.x_length",
"def R8e4(YKHO) -> int:\n return YKHO.size",
"def R8e4(YKHO) -> int:\n return YKHO.size",
"def zNig(YKHO) -... | [
"0.8218263",
"0.8008542",
"0.78932095",
"0.7803114",
"0.7803114",
"0.7789509",
"0.7789509",
"0.7789509",
"0.7789509",
"0.7789509",
"0.7789509",
"0.7789509",
"0.77892745",
"0.775565",
"0.7751863",
"0.77360266",
"0.7728743",
"0.7696555",
"0.7696555",
"0.7689209",
"0.7689209",
... | 0.0 | -1 |
Compute a halfopen range [lower, upper) of byte offsets from the array's data pointer, that bound the inmemory extent of the array. This mimics offset_bounds_from_strides() from numpy/core/src/private/mem_overlap.c | def yOeT(QpfX, mBtZ, kuRi, ezWE, N8OZ, FEri):
GuM9 = ezWE.itemsize
sbx9 = GuM9.type(0)
a0GJ = sbx9.type(1)
if kuRi.layout in 'CF':
LSh8 = sbx9
CN9P = mBtZ.mul(GuM9, ezWE.nitems)
else:
LSh8 = sbx9
CN9P = sbx9
for YRbF in range(kuRi.ndim):
b09q = mBt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wc1f(YKHO, FEri, GuM9):\n assert len(FEri) == YKHO.aryty.ndim\n mBtZ = YKHO.builder\n FBfn = Zlwm.false_bit\n sbx9 = YKHO.ll_intp(0)\n a0GJ = YKHO.ll_intp(1)\n LSh8 = sbx9\n CN9P = sbx9\n for SOYA, ROpF, _0fC in zip(YKHO.indexers, YKHO.indexers_shape, FEri):\n FBfn = mBtZ.or_(FBf... | [
"0.70091796",
"0.59999067",
"0.5922031",
"0.5917326",
"0.5835059",
"0.5832554",
"0.581585",
"0.5798254",
"0.57787275",
"0.5754573",
"0.5631794",
"0.5616125",
"0.55907226",
"0.55889755",
"0.55638945",
"0.5563357",
"0.5562086",
"0.55240357",
"0.5494933",
"0.54834205",
"0.545444... | 0.7551531 | 0 |
Preprocess dimension for broadcasting. Returns (shapes, strides) such that the ndim match target_shape. When expanding to higher ndim, the returning shapes and strides are prepended with ones and zeros, respectively. When truncating to lower ndim, the shapes are checked (in runtime). All extra dimension must have size ... | def B40P(QpfX, mBtZ, N8OZ, FEri, u5Om):
sbx9 = QpfX.get_constant(SnBA.uintp, 0)
a0GJ = QpfX.get_constant(SnBA.uintp, 1)
if len(u5Om) > len(N8OZ):
Xpgg = len(u5Om) - len(N8OZ)
N8OZ = [a0GJ] * Xpgg + N8OZ
FEri = [sbx9] * Xpgg + FEri
elif len(u5Om) < len(N8OZ):
Xpgg = len(N8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W5zf(QpfX, mBtZ, N8OZ, FEri, u5Om):\n WbBR = []\n eV3G = []\n sbx9 = QpfX.get_constant(SnBA.uintp, 0)\n a0GJ = QpfX.get_constant(SnBA.uintp, 1)\n YGrE = [mBtZ.icmp_signed('!=', D8Lu, gv2B) for D8Lu, gv2B in zip(u5Om, N8OZ)]\n uPfz = [mBtZ.icmp_signed('==', gv2B, a0GJ) for gv2B in N8OZ]\n a... | [
"0.6593674",
"0.62027586",
"0.61429834",
"0.6002728",
"0.5855905",
"0.5855905",
"0.58321846",
"0.58296144",
"0.5826098",
"0.5826098",
"0.5728782",
"0.5643339",
"0.5605016",
"0.5592751",
"0.5584702",
"0.5579789",
"0.5560698",
"0.55401874",
"0.55295765",
"0.55249685",
"0.549988... | 0.7233078 | 0 |
Broadcast shapes and strides to target_shape given that their ndim already matches. For each location where the shape is 1 and does not match the dim for target, it is set to the value at the target and the stride is set to zero. | def W5zf(QpfX, mBtZ, N8OZ, FEri, u5Om):
WbBR = []
eV3G = []
sbx9 = QpfX.get_constant(SnBA.uintp, 0)
a0GJ = QpfX.get_constant(SnBA.uintp, 1)
YGrE = [mBtZ.icmp_signed('!=', D8Lu, gv2B) for D8Lu, gv2B in zip(u5Om, N8OZ)]
uPfz = [mBtZ.icmp_signed('==', gv2B, a0GJ) for gv2B in N8OZ]
aTLP = [mBtZ.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B40P(QpfX, mBtZ, N8OZ, FEri, u5Om):\n sbx9 = QpfX.get_constant(SnBA.uintp, 0)\n a0GJ = QpfX.get_constant(SnBA.uintp, 1)\n if len(u5Om) > len(N8OZ):\n Xpgg = len(u5Om) - len(N8OZ)\n N8OZ = [a0GJ] * Xpgg + N8OZ\n FEri = [sbx9] * Xpgg + FEri\n elif len(u5Om) < len(N8OZ):\n ... | [
"0.6898215",
"0.6742657",
"0.65324724",
"0.62527007",
"0.61363167",
"0.61363167",
"0.5897348",
"0.58691615",
"0.58551335",
"0.58020484",
"0.57728535",
"0.5732087",
"0.56505775",
"0.5621758",
"0.55963427",
"0.55936134",
"0.5556581",
"0.55565214",
"0.54846555",
"0.5472656",
"0.... | 0.601652 | 6 |
Broadcast the given array to the target_shape. Returns (array_type, array) | def y08H(QpfX, mBtZ, MtvO, ezWE, u5Om):
N8OZ = Zlwm.unpack_tuple(mBtZ, ezWE.shape)
FEri = Zlwm.unpack_tuple(mBtZ, ezWE.strides)
N8OZ, FEri = B40P(QpfX, mBtZ, N8OZ, FEri, u5Om)
N8OZ, FEri = W5zf(QpfX, mBtZ, N8OZ, FEri, u5Om)
wcru = MtvO.copy(ndim=len(u5Om), layout='A')
OeK1 = f53l(wcru)(QpfX, mBt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZuV8(qw7D, ROpF, DkY6=False):\n return v2Sb(qw7D, ROpF, subok=DkY6, readonly=True)",
"def ZuV8(nPrm, ROpF):\n return hoL9.broadcast_to(nPrm, ROpF)",
"def n5GS(qw7D, ROpF):\n Bjgb = oyIN.shape(qw7D)\n if Bjgb == ROpF:\n return qw7D\n eL5z = [r8hN if exwG == 1 else 1 for exwG, r8hN in z... | [
"0.6879489",
"0.6824419",
"0.6587155",
"0.6479598",
"0.6358275",
"0.62980664",
"0.62039477",
"0.6091889",
"0.6080729",
"0.6065611",
"0.5979531",
"0.59435153",
"0.5942454",
"0.5941581",
"0.58619595",
"0.5839391",
"0.58018744",
"0.58018744",
"0.5790014",
"0.57638824",
"0.571412... | 0.718213 | 0 |
Call into Numba_attempt_nocopy_reshape() for the given array type and instance, and the specified new shape. Return value is nonzero if successful, and the array pointed to by newstrides will be filled up with the computed results. | def qArU(QpfX, mBtZ, Fuqr, FUTK, nMbg, etdq, pDK6):
qFuN = QpfX.get_value_type(SnBA.intp)
KSoo = qFuN.as_pointer()
i6NM = QpfX.get_value_type(SnBA.intc)
xuLC = _ABP.FunctionType(i6NM, [qFuN, KSoo, KSoo, qFuN, KSoo, KSoo, qFuN, i6NM])
FYKK = Zlwm.get_or_insert_function(mBtZ.module, xuLC, 'numba_attem... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0ax(jzdc, ROpF, FEri):\n raise NotImplementedError",
"def uJH6(QpfX, mBtZ, lszO, t0QC, FUTK):\n assert lszO.ndim == t0QC.ndim\n assert lszO.layout == t0QC.layout\n YjAC = ord(t0QC.layout)\n YoUf = ord('A')\n Z3_8 = ord('C')\n a8B9 = ord('F')\n Xc1Q = SnBA.int8\n\n def PQrP(fHgE, H... | [
"0.62224936",
"0.5910341",
"0.57210034",
"0.5673357",
"0.55594534",
"0.55091363",
"0.54993117",
"0.53571814",
"0.53313476",
"0.53274924",
"0.52906215",
"0.5283101",
"0.527797",
"0.5251931",
"0.5248273",
"0.5235739",
"0.5174865",
"0.51577437",
"0.5152668",
"0.51010036",
"0.505... | 0.7776465 | 0 |
Create a constant array from bytes (mechanism is targetdependent). | def UtVs(QpfX, mBtZ, Yrvv, _AQ3):
LaVg = oyIN.array(bytearray(_AQ3), dtype=oyIN.uint8)
return QpfX.make_constant_array(mBtZ, Yrvv, LaVg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qhYA(QpfX, mBtZ, Yrvv, _AQ3):\n return QpfX.make_constant_array(mBtZ, Yrvv, _AQ3)",
"def oMqY(zZcM):\n return bytearray(b''.join(zZcM))",
"def mKlw(QpfX, mBtZ, Yrvv, _AQ3):\n Q96g = _ABP.ArrayType(_ABP.IntType(8), _AQ3.nbytes)\n wEf2 = Q96g(bytearray(_AQ3.tostring()))\n return Zlwm.alloca_on... | [
"0.70398057",
"0.64703995",
"0.6161856",
"0.6048247",
"0.5988361",
"0.58755535",
"0.5831883",
"0.580632",
"0.5774384",
"0.57193184",
"0.5710916",
"0.56977504",
"0.56643003",
"0.565709",
"0.5652155",
"0.56510574",
"0.561949",
"0.5618681",
"0.56174296",
"0.5617036",
"0.5617036"... | 0.7656231 | 0 |
Utility function used for allocating a new array during LLVM code generation (lowering). Given a target context, builder, array type, and a tuple or list of lowered dimension sizes, returns a LLVM value pointing at a Numba runtime allocated array. | def yhBm(QpfX, mBtZ, MtvO, N8OZ):
e7vX = f53l(MtvO)
FUTK = e7vX(QpfX, mBtZ)
SLLj = QpfX.get_data_type(MtvO.dtype)
GuM9 = QpfX.get_constant(SnBA.intp, GxGT(QpfX, MtvO))
J4dZ = QpfX.get_constant(SnBA.intp, 1)
oUcR = RIrr(_ABP.IntType(1), 0)
for KCHu in N8OZ:
e_Sb = mBtZ.smul_with_overf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dTiS(QpfX, mBtZ, S3R2, HiOC, g4y1):\n HiOC = [WKvO.type if isinstance(WKvO, SnBA.Optional) else WKvO for WKvO in HiOC]\n pVdE = QpfX.get_value_type(SnBA.intp)\n\n def BVfE(wEf2):\n return QpfX.get_constant(SnBA.intp, wEf2)\n g5bv = BVfE(0)\n UgBJ = BVfE(1)\n tFhq = Zlwm.alloca_once(mBt... | [
"0.62568057",
"0.62131226",
"0.58629227",
"0.57911617",
"0.57652694",
"0.5640084",
"0.5619323",
"0.5588646",
"0.5568676",
"0.5568119",
"0.5550034",
"0.55286866",
"0.54540765",
"0.53950685",
"0.5379469",
"0.53787035",
"0.5346848",
"0.5332258",
"0.5316784",
"0.52964514",
"0.528... | 0.53221357 | 18 |
Same as _insert_axis_in_shape(), but with a strides array. | def uy4u(QpfX, mBtZ, SptQ, qC1Y, jDK_):
assert len(SptQ) == qC1Y - 1
C07d = _ABP.ArrayType(Zlwm.intp_t, qC1Y)
FEri = Zlwm.alloca_once(mBtZ, C07d)
a0GJ = Zlwm.intp_t(1)
sbx9 = Zlwm.intp_t(0)
for tpio in range(qC1Y - 1):
RRcV = Zlwm.intp_t(tpio)
fhGJ = mBtZ.icmp_signed('>=', RRcV, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PI0m(QpfX, mBtZ, JNn7, qC1Y, jDK_):\n assert len(JNn7) == qC1Y - 1\n C07d = _ABP.ArrayType(Zlwm.intp_t, qC1Y)\n N8OZ = Zlwm.alloca_once(mBtZ, C07d)\n a0GJ = Zlwm.intp_t(1)\n for tpio in range(qC1Y - 1):\n RRcV = Zlwm.intp_t(tpio)\n fhGJ = mBtZ.icmp_signed('>=', RRcV, jDK_)\n ... | [
"0.6539347",
"0.59859794",
"0.5732514",
"0.571918",
"0.5718173",
"0.57098716",
"0.57080173",
"0.5688426",
"0.55402",
"0.5486618",
"0.54589134",
"0.5438902",
"0.5423542",
"0.53853464",
"0.5351963",
"0.5313861",
"0.5279825",
"0.52582204",
"0.525279",
"0.52393687",
"0.5215679",
... | 0.7953463 | 0 |
np.expand_dims() with the given axis. | def wmvz(QpfX, mBtZ, wEsz, qIxc, jDK_):
I1mq = wEsz.return_type
qC1Y = I1mq.ndim
kuRi = wEsz.args[0]
ezWE = f53l(kuRi)(QpfX, mBtZ, value=qIxc[0])
U5bT = f53l(I1mq)(QpfX, mBtZ)
N8OZ = Zlwm.unpack_tuple(mBtZ, ezWE.shape)
FEri = Zlwm.unpack_tuple(mBtZ, ezWE.strides)
m0BE = PI0m(QpfX, mBtZ, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wmvz(ezWE: array_like, jDK_: int) -> KvM0:\n return oyIN.expand_dims(ezWE, axis=jDK_)",
"def wmvz(YKHO, WKvO, jDK_):\n nvUx(NotImplementedError)",
"def KxAP(input, jDK_, mWFP=None):\n return tTyL.expand_dims(input, jDK_, mWFP)",
"def wmvz(EcVT, jDK_):\n if not isinstance(EcVT, R5ST.usm_ndarra... | [
"0.8530559",
"0.7751151",
"0.7749119",
"0.7687521",
"0.7651762",
"0.74339914",
"0.7317215",
"0.72452784",
"0.7222685",
"0.71005464",
"0.70957613",
"0.70560545",
"0.69360435",
"0.6889944",
"0.65962756",
"0.6551926",
"0.65185255",
"0.6510712",
"0.6504022",
"0.6217005",
"0.61967... | 0.7126833 | 9 |
Save the blockchain in a JSON file | def UFVQ(YKHO, Fv2L):
eHKs = Fv2L['blockchainDir']
if not Hy7s.path.exists(eHKs):
YKHO.set_internal_dir(eHKs)
rmyT = []
for XkN1 in YKHO.service.BLOCK_CHAIN:
rmyT.append(XkN1.serialize())
qaEx = Fv2L['blockchainDir'] + '/dump.json'
with open(qaEx, 'w') as _RR0:
qQXR.dump(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eGRE(YKHO):\n try:\n with open('data/blockchain-{}.txt'.format(YKHO.node_id), mode='w') as eHNT:\n VJXi = [XkN1.__dict__ for XkN1 in [n3Kt(c3cI.index, c3cI.previous_hash, [UShr.__dict__ for UShr in c3cI.transactions], c3cI.proof, c3cI.timestamp) for c3cI in YKHO.__chain]]\n eHNT... | [
"0.7946815",
"0.7375154",
"0.70561093",
"0.7031396",
"0.6963186",
"0.69616157",
"0.6949882",
"0.6920674",
"0.6914647",
"0.68965816",
"0.6856492",
"0.6832771",
"0.6823155",
"0.68197536",
"0.6806438",
"0.6798067",
"0.6777404",
"0.67679167",
"0.6729912",
"0.67244893",
"0.6706618... | 0.7611552 | 1 |
Save the users in a JSON file | def s8A0(YKHO, Fv2L):
eHKs = Fv2L['usersDir']
if not Hy7s.path.exists(eHKs):
YKHO.set_internal_dir(eHKs)
wliQ = YKHO.service.USERS
DW23 = [wliQ[G1Hx].serialize() for G1Hx in wliQ]
qaEx = Fv2L['usersDir'] + '/dump.json'
with open(qaEx, 'w') as _RR0:
qQXR.dump(DW23, _RR0)
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJI9(CBIr):\n DW23 = CBIr\n with open('user.json', 'w') as eHNT:\n eHNT.write(qQXR.dumps(DW23))",
"def wiPd(YKHO):\n achh('users', YKHO._users, d=YKHO._dir)",
"def zyFt():\n with open('user.txt', 'r+') as bpNo:\n qQXR.dump(r388.user, bpNo, indent=4, sort_keys=True)",
"def bFLq(Y... | [
"0.8645917",
"0.8600971",
"0.8521616",
"0.80811805",
"0.7968132",
"0.79310626",
"0.7875154",
"0.78516346",
"0.78204983",
"0.7818685",
"0.7675215",
"0.76205015",
"0.76152074",
"0.7546662",
"0.75136834",
"0.74495983",
"0.73777187",
"0.7269278",
"0.7257731",
"0.7187177",
"0.7104... | 0.7543637 | 14 |
Create the very first genesis block. Essential to provide the stockpile qoins. | def Dhh9(YKHO, Fv2L):
CTvt = YKHO.USERS[Kkf4]
UShr = T74E(CTvt, CTvt, Fv2L['defaultGenesisAmount'], ITS7.time())
XkN1 = n3Kt(0, ITS7.time(), None, [UShr])
bEAa, hash = XkN1.gen_hash()
XkN1.set_hash(bEAa, hash)
return XkN1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Pic():\n XkN1 = n3Kt(index=0, timestamp=qcWV.now(), data='Genesis Block', previous_hash='0')\n return XkN1",
"def RsZu():\n return n3Kt(0, _c1T.datetime.now(), 'Genisis Block', '0')",
"def RsZu():\n return n3Kt(0, _c1T.datetime.now(), 'Genesis Block', '0')",
"def RsZu(YKHO):\n BZTK = n3Kt... | [
"0.83280545",
"0.83077496",
"0.8299151",
"0.81656754",
"0.81262535",
"0.8119675",
"0.81054944",
"0.7916833",
"0.7903032",
"0.7893096",
"0.7762116",
"0.7756605",
"0.7650244",
"0.75866586",
"0.75259525",
"0.7510113",
"0.74814606",
"0.73441887",
"0.73285973",
"0.73207086",
"0.72... | 0.7446471 | 17 |
Check if the user is authenticated. Check the token validity and expiration. | def c5pa(YKHO, eOtH):
KUf6 = jbpC(YKHO.SECRET_KEY)
try:
i8WE = KUf6.extract_timestamp(eOtH)
except ArtZ:
return False
wzkt = int(ITS7.time())
if wzkt - i8WE > j_UE:
return False
Hufe = KUf6.decrypt(eOtH)
J7UI = WR89.b64decode(Hufe)
_ugn = qQXR.loads(J7UI)
CBIr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n if qcWV.datetime.utcnow() < YKHO.token_expires and YKHO.active:\n return True\n else:\n return False",
"def rts1(YKHO):\n if not YKHO.token:\n return False\n try:\n YKHO.lookup_token()\n return True\n except pW87:\n return False\n exce... | [
"0.7927616",
"0.78224456",
"0.7775225",
"0.7740774",
"0.76101226",
"0.76038504",
"0.7533659",
"0.7503328",
"0.7432143",
"0.74247086",
"0.74090445",
"0.73922026",
"0.73792946",
"0.734809",
"0.73440194",
"0.73417866",
"0.73417866",
"0.73417866",
"0.73417866",
"0.73417866",
"0.7... | 0.74851185 | 8 |
Compute the focal loss given the target tensor and the predicted tensor. | def UYCc(Y8eF, aMgO, XFF7):
with ZylS.compat.v1.variable_scope('loss/focal') as rrBf:
Cwt5 = 0.25
KMvS = 2.0
IZFC = XFF7
Crrw = Y8eF
Iujo = ZylS.ones_like(Crrw) * Cwt5
Iujo = ZylS.where(ZylS.equal(Crrw, 1), Iujo, 1 - Iujo)
TvvM = ZylS.where(ZylS.equal(Crrw, 1)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YU5z(YKHO, aTLP, pan_):\n KeL5 = -vuvg.cross_entropy(aTLP, pan_.long(), ignore_index=YKHO.ignore_index)\n Xf84 = ht2j.exp(KeL5)\n if YKHO.alpha is not None:\n KeL5 *= YKHO.alpha\n N77f = -(1 - Xf84) ** YKHO.gamma * KeL5\n return N77f",
"def UYCc(Y8eF=None, aMgO=None):\n Y8eF = ZylS.o... | [
"0.81109047",
"0.7796845",
"0.7786942",
"0.77309203",
"0.7714193",
"0.7647058",
"0.7647058",
"0.7645233",
"0.76043737",
"0.75375664",
"0.7427637",
"0.73576105",
"0.7333751",
"0.728601",
"0.7260131",
"0.7257276",
"0.7250458",
"0.72290194",
"0.71283895",
"0.71270305",
"0.712441... | 0.69566923 | 24 |
Test that a numpy nan is correctly handled | def OK_B():
import numpy as oyIN
with trZe.raises(sUXu) as _n4O:
xzCw('np.nan', oyIN.nan, min_value=5.1, max_value=5.2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L6uT(YKHO, *qIxc, **B2fa):\n pass",
"def L6uT(YKHO, *qIxc, **B2fa):\n pass",
"def L6uT(YKHO, WKvO):\n pass",
"def Ujeh(qw7D, bo34) -> None:\n bo34.debug('*' * 50)\n exwG = 0\n QOe9 = qw7D[qw7D > oyIN.finfo(oyIN.float32).max]\n bo34.debug(f'test for numpy float32overflow {QOe9.shape}'... | [
"0.802403",
"0.802403",
"0.79482526",
"0.78325325",
"0.77606326",
"0.7660887",
"0.76562536",
"0.76245683",
"0.75959903",
"0.7586296",
"0.75304043",
"0.7506612",
"0.75036675",
"0.7493542",
"0.7453129",
"0.74413294",
"0.7413286",
"0.7378649",
"0.73779255",
"0.73485357",
"0.7324... | 0.7935874 | 3 |