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 |
|---|---|---|---|---|---|---|
Returns a deep copy of the passed Dataset. | def jth9(Emd4, __n6: 'Dataset') -> 'Dataset':
return Emd4(oyIN.copy(__n6.data), __n6.dt, __n6.t_init, oyIN.copy(__n6.scaling), oyIN.copy(__n6.is_scaled), oyIN.copy(__n6.descriptions), oyIN.copy(__n6.c_inds), oyIN.copy(__n6.p_inds), __n6.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO, y4ha=True):\n oxOY = YKHO.dataset.copy(deep=y4ha)\n return oxOY[YKHO.name]",
"def jth9(YKHO: T_Dataset, y4ha: bool=False, nPrm: Mapping[Any, ArrayLike] | None=None) -> rBI9:\n return YKHO._copy(deep=y4ha, data=nPrm)",
"def HMBI(YKHO):\n return jth9.deepcopy(YKHO.__dataset)",
"def j... | [
"0.8150364",
"0.78657836",
"0.7639005",
"0.75991714",
"0.72062033",
"0.7139922",
"0.70062894",
"0.6954602",
"0.69189924",
"0.6907571",
"0.69036895",
"0.6842244",
"0.68253165",
"0.67650586",
"0.67244226",
"0.67083573",
"0.65851694",
"0.6584682",
"0.65783626",
"0.6575963",
"0.6... | 0.8093103 | 1 |
Adds the mean and std back to every column and returns the data. | def rb4S(YKHO) -> oyIN.ndarray:
HMtB = oyIN.copy(YKHO.data)
for G1Hx in range(YKHO.d):
if YKHO.is_scaled[G1Hx]:
HMtB[:, G1Hx] = wtKO(HMtB[:, G1Hx], YKHO.scaling[G1Hx, :])
return HMtB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLKg(mSgG):\n return (mSgG.mean(), mSgG.std())",
"def NNXq(nPrm, WfCS=True, qEY0=False, jDK_=0):\n JBMS, M1Jx = N21e(nPrm, WfCS, jDK_)\n Cc00 = (nPrm - JBMS) / M1Jx\n if not qEY0:\n return Cc00\n else:\n return (Cc00, JBMS, M1Jx)",
"def ssCJ(nPrm):\n dixj = oyIN.empty((nPrm.... | [
"0.74378186",
"0.7261662",
"0.71754473",
"0.7098763",
"0.695603",
"0.6735045",
"0.67274094",
"0.6710479",
"0.6710221",
"0.66964686",
"0.66865915",
"0.6661931",
"0.6584697",
"0.651937",
"0.6480898",
"0.64455265",
"0.64133215",
"0.6412819",
"0.63817304",
"0.6359688",
"0.6353063... | 0.58258766 | 97 |
Returns path where to store this `Dataset`. | def yFjF(mWFP: str, JRYC: int=15) -> str:
k5si = '' if JRYC == 15 else f'_dt_{JRYC}'
return Hy7s.path.join(ixnM, mWFP + k5si) + '.pkl' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c1ta(YKHO):\n return YKHO._dataset_path",
"def c1ta(YKHO) -> str:\n pass",
"def OyQC(YKHO):\n return YKHO.data_path",
"def KHwQ(YKHO):\n if YKHO.smell is not None:\n sWmO = Hy7s.getcwd()\n uRP3 = YKHO.smell.getDatasetFileName()\n return Hy7s.path.join(sWmO, 'data', uRP3)\... | [
"0.8427732",
"0.83568656",
"0.80896366",
"0.8081971",
"0.79947966",
"0.789323",
"0.78471005",
"0.7692815",
"0.7607335",
"0.75795543",
"0.75727427",
"0.7518902",
"0.7475306",
"0.7440661",
"0.7435907",
"0.73651105",
"0.73649377",
"0.73521966",
"0.73477864",
"0.73409325",
"0.732... | 0.0 | -1 |
Extracts sequences of length `seq_len` from the data. If `seq_len` is None, the sequence length of the associated dataset is used. Uses caching for multiple calls with same `seq_len`. | def jOws(YKHO, tsWk: int=None) -> AzJI[oyIN.ndarray, oyIN.ndarray]:
if tsWk is None:
tsWk = YKHO.s_len
UxQk = YKHO._get_sequences(tsWk)
return UxQk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jOws(lWPh, ZM6q):\n for rdlD in lWPh['seq'].values:\n assert len(rdlD) == ZM6q\n nPrm = oyIN.array(lWPh['seq'].values)\n return oyIN.vstack([oyIN.expand_dims(WKvO, axis=0) for WKvO in nPrm])",
"def TyzG(YKHO, q4aw, lKJ9, mC1D):\n\n def uABQ():\n \"\"\"\n Sanity checks on ... | [
"0.6278841",
"0.62382615",
"0.6087249",
"0.59270245",
"0.5895578",
"0.58907235",
"0.5859343",
"0.5779466",
"0.5778063",
"0.5772876",
"0.57053614",
"0.5667442",
"0.56453854",
"0.5629593",
"0.5603615",
"0.5511844",
"0.5485",
"0.5484271",
"0.545084",
"0.5444103",
"0.54156435",
... | 0.70264155 | 0 |
Handle POST operations for ProductReviews | def eLpg(YKHO, QePW):
CBIr = QePW.auth.user
bi3t = obVQ()
Mc9N = QePW.data['product_id']
S_t7 = QePW.data['rating_id']
try:
Lx3t = msfn.objects.get(id=Mc9N)
except msfn.DoesNotExist:
return oGir({'message: invalid product id'}, status=jGRS.HTTP_422_UNPROCESSABLE_ENTITY)
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NtzC():\n if QePW.method == 'POST':\n TBsA = QePW.get_json()\n Slbv = E1cg(id=TBsA['id'], restaurant_id=TBsA['restaurant_id'], profile_id=TBsA['profile_id'], description=TBsA['description'], rating=TBsA['rating'], pictures=TBsA['pictures'])\n NCls.session.add(Slbv)\n NCls.session... | [
"0.7007141",
"0.69990474",
"0.67790955",
"0.67383415",
"0.6667531",
"0.66048974",
"0.6584185",
"0.6582023",
"0.6562975",
"0.6543784",
"0.65241325",
"0.6472685",
"0.6414654",
"0.6399868",
"0.63093513",
"0.62687933",
"0.6267539",
"0.6262867",
"0.6257975",
"0.6249193",
"0.623225... | 0.72761106 | 0 |
Handle DELETE requests for a single ProductReview | def xSHO(YKHO, QePW, _sei=None):
try:
bi3t = obVQ.objects.get(pk=_sei)
bi3t.delete()
return oGir({}, status=jGRS.HTTP_204_NO_CONTENT)
except obVQ.DoesNotExist as ex:
return oGir({'message': aTqo.args[0]}, status=jGRS.HTTP_404_NOT_FOUND)
except Exception as ex:
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oQQV(QePW, Mc9N, oOW1):\n Lx3t = Iofl(msfn, pk=Mc9N)\n Slbv = Iofl(E1cg, product=Lx3t, pk=oOW1)\n if QePW.user == Slbv.user:\n Slbv.delete()\n yEHD.success(QePW, 'Review delete successfully')\n return vKnz('product_detail', Mc9N)",
"def oQQV(QePW, Mc9N, oOW1):\n Lx3t = Iofl(msfn,... | [
"0.80964404",
"0.80964404",
"0.78522015",
"0.77886426",
"0.7702237",
"0.7586534",
"0.74933374",
"0.7362203",
"0.73331624",
"0.7306028",
"0.7285398",
"0.7231372",
"0.71769625",
"0.7172173",
"0.7162018",
"0.70890385",
"0.7065073",
"0.69568944",
"0.693333",
"0.6882387",
"0.68605... | 0.82298034 | 0 |
Hash a given password | def qzFd(jTXt: str):
return jf1V.hash(jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a2tF(jTXt):\n return B8ni.hashpw(jTXt.encode('utf-8'), B8ni.gensalt())",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)",
"def qzFd(jTXt):\n jTXt = jKi7.b(jTXt)\n return HBct.sha256(jTXt).hexdigest()",
"def qz... | [
"0.8508238",
"0.84321487",
"0.84321487",
"0.84191936",
"0.841004",
"0.841004",
"0.837441",
"0.8359825",
"0.83535135",
"0.83053064",
"0.82656085",
"0.82526577",
"0.82489353",
"0.8225933",
"0.8224357",
"0.8211506",
"0.81311345",
"0.8127063",
"0.8112079",
"0.8095066",
"0.8086364... | 0.8674366 | 0 |
Validate that current user is active | async def get_current_active_user(c5ow: User=JHvC(W84Y)):
if not c5ow.is_verified:
raise tjbj(status_code=400, content={'message': 'User is not verified.'})
if not c5ow.is_active:
raise tjbj(status_code=400, content={'message': 'User is not active.'})
return c5ow | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active",
"def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBIr.status == 0:\n return True\n else:\n return False",
"def BhPT(YKHO, QePW):\n CBIr = None\n NtEF = QePW.POST.get('us... | [
"0.8082322",
"0.7637145",
"0.76125026",
"0.7449795",
"0.7449795",
"0.7449795",
"0.7449795",
"0.7449795",
"0.74412745",
"0.74412745",
"0.74412745",
"0.74412745",
"0.7372378",
"0.73381835",
"0.7287868",
"0.7157053",
"0.71076274",
"0.7059051",
"0.7035018",
"0.7035018",
"0.702552... | 0.0 | -1 |
Sets a gameboard matrix from a reference test_matrix, and then compares the value returned by the rows_iterator against each of its rows | def phcI(YKHO):
AwYF = YKHO.builder.build_from_moves([1, 1, 2, 4, 1, 3, 5, 1, 3, 2, 7, 7, 4, 3, 6, 5, 2, 7, 5, 6])
'\n . . . . . . .\n . . . . . . .\n B . . . . . .\n W W B . W . B\n B B W W B B B\n W W B B W W W\n '
M5p9 = [[None, None, None, None, None, Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wnPx(YKHO):\n for rdlD in SppC:\n YKHO.assertEquals(sorted(rdlD), range(1, 10))",
"def eTng(YKHO):\n return",
"def xNJw(YKHO):\n VZGX = mA_P()\n VZGX.set_score('A', 'C', 5)\n YKHO.assertEqual(VZGX.get_score('A', 'C'), 5)",
"def foZk(YKHO):\n Crrw = ['III', 'IXI', 'IYY', 'YIZ', 'X... | [
"0.6898341",
"0.6516771",
"0.6331988",
"0.62471616",
"0.59772295",
"0.5927374",
"0.59247005",
"0.58968353",
"0.58571243",
"0.5846277",
"0.57756525",
"0.5766028",
"0.5728739",
"0.56823534",
"0.56781685",
"0.5661006",
"0.56544113",
"0.5649584",
"0.55987436",
"0.5597783",
"0.559... | 0.6578767 | 1 |
Removes all color sets on the given MFnMesh. | def TgHj(rR8k):
kPqn = []
rR8k.getColorSetNames(kPqn)
for qQMY in kPqn:
rR8k.deleteColorSet(qQMY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZsR4():\n Hnbc = [WKvO.getTransform() for WKvO in TlDD.ls(type=['mesh', 'nurbsSurface'])]\n xcXv = TlDD.selected()\n TlDD.select(Hnbc)\n TlDD.hyperShade(assign='lambert1')\n TlDD.mel.hyperShadePanelMenuCommand('hyperShadePanel1', 'deleteUnusedNodes')\n TlDD.select(xcXv)",
"def sHt2(YKHO):\n... | [
"0.7104341",
"0.6802246",
"0.6427307",
"0.6348041",
"0.6342164",
"0.62292993",
"0.6178013",
"0.61059",
"0.59780306",
"0.5934366",
"0.5897371",
"0.58915174",
"0.58749753",
"0.5845441",
"0.58358335",
"0.58168256",
"0.58139527",
"0.58084524",
"0.5803968",
"0.57670766",
"0.574924... | 0.83129305 | 0 |
Tests that the authored color sets on the source cube mesh export correctly. | def hJea(YKHO):
CAp3 = 'ColorSetSourceCube'
YKHO._GetUsdStage(CAp3)
xNck = YKHO._GetCubeUsdMesh(CAp3)
for qQMY in YKHO.SOURCE_COLOR_SET_NAMES:
M_pn = _1Qv.ValueTypeNames.Color4fArray
if YKHO._IsColorSetAlpha(qQMY):
M_pn = _1Qv.ValueTypeNames.FloatArray
elif YKHO._IsCo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDlY(YKHO):\n CAp3 = 'ObjectLevelCube'\n qQMY = 'FaceColor_Sparse_kAlpha'\n SKPG = [MHbQ.Vec3f(1, 1, 0)] * 4\n gWnj = [1.0, 0.4, 0.8, 0.6]\n N9e9 = [0, 1, 2, 1, 3, 1]\n YKHO._VerifyColorSetsAsDisplayColorExportForCube(CAp3, qQMY, SKPG, gWnj, N9e9)\n qQMY = 'FaceVertexColor_Full_kRGB'\n ... | [
"0.7534508",
"0.7512952",
"0.71930265",
"0.6945695",
"0.6654721",
"0.66121835",
"0.6601574",
"0.64245486",
"0.6419098",
"0.63328874",
"0.6291424",
"0.6291094",
"0.6280787",
"0.62739354",
"0.62714565",
"0.62387127",
"0.6218812",
"0.62153035",
"0.6190096",
"0.6163577",
"0.61543... | 0.7753021 | 0 |
Tests that color sets authored as displayColor on a cube with a material assignment at the object level export correctly. | def bDlY(YKHO):
CAp3 = 'ObjectLevelCube'
qQMY = 'FaceColor_Sparse_kAlpha'
SKPG = [MHbQ.Vec3f(1, 1, 0)] * 4
gWnj = [1.0, 0.4, 0.8, 0.6]
N9e9 = [0, 1, 2, 1, 3, 1]
YKHO._VerifyColorSetsAsDisplayColorExportForCube(CAp3, qQMY, SKPG, gWnj, N9e9)
qQMY = 'FaceVertexColor_Full_kRGB'
SKPG = YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dNk6(YKHO):\n CAp3 = 'UnassignedCube'\n qQMY = 'FaceVertexColor_Full_kRGB'\n SKPG = YKHO._GetExpectedColorSetValues(qQMY)\n SKPG = YKHO._ConvertColorsToLinear(SKPG)\n gWnj = [YKHO._AlphaFromVec4f(YKHO.COLOR_SHADER_DEFAULT)] * 24\n N9e9 = YKHO._GetExpectedColorSetIndices(qQMY)\n YKHO._Verif... | [
"0.8072206",
"0.7651986",
"0.74583197",
"0.73098546",
"0.7027864",
"0.67114145",
"0.6699682",
"0.6694083",
"0.66314",
"0.6574294",
"0.6564317",
"0.65614784",
"0.6517377",
"0.65105027",
"0.6397507",
"0.6392609",
"0.63881874",
"0.6317764",
"0.6288416",
"0.62568223",
"0.62182754... | 0.8511435 | 0 |
Petrosian BBD using densitycorrected Vmax. | def VVuw(_RR0='bbd_petro.dat', WfCS=('ABSMAG_R', 'R_SB_ABS'), HfiF=((-25, -12), (16, 26)), Pyrc=(26, 20), Viww=0.002, zXLc=0.65, SbhB=1, x3eZ=1):
Dncu = i912.GalSample()
Dncu.read_gama()
Dncu.add_vmax()
bJi7 = UVDP(Dncu.tsel(), WfCS, Pyrc, HfiF)
bJi7.plot(chol_fit=True, finish=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IEfv(YKHO):\n EiFW = YKHO.d_params / YKHO.results.bse\n return EiFW",
"def T7im(nPrm, mb4J, N77f, ejS2, OVBF, gwAu=None):\n L42E = oyIN.ones((len(mb4J), 5))\n L42E[:, 0] = mb4J\n L42E[:, 1] = N77f\n L42E[:, 2] = ejS2\n L42E[:, 3] = OVBF\n Ru1L = fzI6.pinv(L42E)\n if gwAu != None:\n... | [
"0.6274695",
"0.6128628",
"0.6124412",
"0.6078362",
"0.6023726",
"0.60055864",
"0.596289",
"0.5943468",
"0.5938694",
"0.5922561",
"0.59015274",
"0.58871937",
"0.585918",
"0.58393794",
"0.5828112",
"0.5827016",
"0.5789208",
"0.57662684",
"0.5765107",
"0.5763161",
"0.57552564",... | 0.0 | -1 |
Petrosian BBD using densitycorrected Vmax. | def SY0Q(_RR0='bbd_sersic.dat', WfCS=('ABSMAG_R_SERSIC', 'R_SB_SERSIC_ABS'), HfiF=((-25, -12), (16, 26)), Pyrc=(26, 20), Viww=0.002, zXLc=0.65, x3eZ=1):
Dncu = i912.GalSample()
Dncu.read_gama()
Dncu.add_sersic()
Dncu.add_vmax()
bJi7 = UVDP(Dncu.tsel(), WfCS, Pyrc, HfiF)
bJi7.plot(chol_fit=True, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IEfv(YKHO):\n EiFW = YKHO.d_params / YKHO.results.bse\n return EiFW",
"def T7im(nPrm, mb4J, N77f, ejS2, OVBF, gwAu=None):\n L42E = oyIN.ones((len(mb4J), 5))\n L42E[:, 0] = mb4J\n L42E[:, 1] = N77f\n L42E[:, 2] = ejS2\n L42E[:, 3] = OVBF\n Ru1L = fzI6.pinv(L42E)\n if gwAu != None:\n... | [
"0.6274695",
"0.6128628",
"0.6124412",
"0.6078362",
"0.6023726",
"0.60055864",
"0.596289",
"0.5943468",
"0.5938694",
"0.5922561",
"0.59015274",
"0.58871937",
"0.585918",
"0.58393794",
"0.5828112",
"0.5827016",
"0.5789208",
"0.57662684",
"0.5765107",
"0.5763161",
"0.57552564",... | 0.0 | -1 |
Converts a string/chariterator of json objects into a generator of dicts. | def VAHy(eJh7: Iterator) -> jd6F:
eyoo = 0
SKTF = ''
s_ww = False
for hcXw in eJh7:
if not s_ww and hcXw == '{':
eyoo += 1
elif not s_ww and hcXw == '}':
eyoo -= 1
elif hcXw == '"':
s_ww = not s_ww
else:
pass
SKTF +=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wNQ8(LDUZ: io.TextIOWrapper) -> bDy6:\n for zFiD in LDUZ:\n yield qQXR.loads(zFiD)",
"def _1kr(KCHu):\n while KCHu:\n KCHu = KCHu.strip()\n YEnM, oeNL = Z9ms.raw_decode(KCHu)\n if not oeNL:\n raise ValueError('no JSON object found at %i' % oeNL)\n yield YEn... | [
"0.7394332",
"0.70347935",
"0.6791056",
"0.636732",
"0.62993133",
"0.6290672",
"0.62068975",
"0.61728114",
"0.61404526",
"0.6073375",
"0.6063729",
"0.60599786",
"0.60038716",
"0.5958304",
"0.5948687",
"0.5896193",
"0.58804095",
"0.5866134",
"0.5826808",
"0.57380253",
"0.57373... | 0.72783595 | 1 |
Return a given numpy (image) array with Keras dimension ordering. default order (cv2)=(height, width, channels) | def AD_g(YKHO, yyU_):
print('WARNING: Only convert to Keras format after completing all pre-processing steps.')
if yyU_ == 'th':
YKHO.arr = YKHO.arr.transpose((2, 1, 0))
assert YKHO.arr.shape[0] == 1 or YKHO.arr.shape[0] == 3
elif yyU_ == 'tf':
YKHO.arr = YKHO.arr.transpose((1, 0, 2)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mCo1(VXjJ, keg2='default'):\n if keg2 == 'default':\n keg2 = nMvt.image_dim_ordering()\n if keg2 not in {'th', 'tf'}:\n raise ValueError('Unknown dim_ordering: ', keg2)\n WKvO = oyIN.asarray(VXjJ, dtype='float32')\n if len(WKvO.shape) == 3:\n if keg2 == 'th':\n WKvO ... | [
"0.65750754",
"0.6460012",
"0.6377514",
"0.6327984",
"0.6294931",
"0.6286043",
"0.62804633",
"0.6168749",
"0.60351723",
"0.6006556",
"0.5966534",
"0.5929648",
"0.5861893",
"0.58599824",
"0.58449304",
"0.5824646",
"0.57848513",
"0.5784302",
"0.5778046",
"0.5772296",
"0.5768165... | 0.62583095 | 7 |
Get md5 of file. | def xORj(YKHO):
pFtS = HBct.md5()
with open(YKHO.filepath, 'rb') as eHNT:
for yOAJ in iter(lambda: eHNT.read(4096), b''):
pFtS.update(yOAJ)
return pFtS.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WwXu(YKHO, gIsw):\n try:\n with open(gIsw, 'rb') as OMYC:\n hGN5 = OMYC.read()\n except IOError as e:\n raise IOError(f'Cannot open {gIsw}: {tTpl.errno}')\n return xORj(hGN5).hexdigest()",
"def UcYW(YKHO, Ux0P):\n pFtS = HBct.md5()\n with open(Ux0P, 'rb') as eHNT:\n ... | [
"0.89537615",
"0.8853256",
"0.88043666",
"0.87554353",
"0.87285775",
"0.8722099",
"0.87163377",
"0.8709292",
"0.8673541",
"0.86465377",
"0.86460245",
"0.8641795",
"0.8597531",
"0.8586393",
"0.854128",
"0.85184133",
"0.8499944",
"0.8486685",
"0.8463628",
"0.84476763",
"0.84440... | 0.86179054 | 12 |
Write md5 of file to outfile. | def KLq_(YKHO, _RR0):
with open(_RR0, 'wt') as ug3y:
ug3y.write('%s %s' % (YKHO.md5, YKHO.filepath)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLq_(YKHO):\n pFtS = HBct.md5()\n UXEK = GkAb(YKHO.output_path, YKHO.output_file)\n if not UXEK.is_file():\n raise FileNotFoundError(f'{UXEK.as_posix()} file does not exist')\n with open(UXEK.as_posix(), 'rb') as Ga6V:\n for yOAJ in iter(lambda: Ga6V.read(4096), b''):\n pFt... | [
"0.8419595",
"0.7188996",
"0.7162466",
"0.7108035",
"0.7108035",
"0.71044034",
"0.70045424",
"0.6945707",
"0.6945533",
"0.6877433",
"0.6867447",
"0.6846858",
"0.6843373",
"0.683122",
"0.683122",
"0.68271196",
"0.68220174",
"0.68220174",
"0.68155515",
"0.6805311",
"0.6798863",... | 0.88162124 | 0 |
The name of the Section. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M8YW(YKHO):\n raise NotImplementedError()",
"def XLMv(YKHO):\n return YKHO.name",
"def M8YW(YKHO):\n return YKHO.value",
"def jXK2(YKHO, mWFP: str) -> str:\n return f'\"{akhO}{mWFP}\"'",
"def xDj7(YKHO):\n raise NotImplementedError('Please implement')",
"def HVam(YKHO, XLMv):\n retu... | [
"0.87432665",
"0.8582453",
"0.84789175",
"0.82918376",
"0.78872025",
"0.78756154",
"0.7803237",
"0.77415174",
"0.7665533",
"0.7599491",
"0.74588203",
"0.726958",
"0.7222119",
"0.7209114",
"0.71288556",
"0.71278495",
"0.7117401",
"0.69652283",
"0.6936092",
"0.69103736",
"0.689... | 0.0 | -1 |
The list of all childsections of this Section. | def UOrz(YKHO):
return YKHO._sections | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def afYC(YKHO):\n return [Z9rn for Z9rn in YKHO._children]",
"def afYC(YKHO):\n return []",
"def UOrz(YKHO) -> x1iM[GYI8]:\n return YKHO._sections",
"def afYC(YKHO):\n return YKHO.childs[:]",
"def yrsg(YKHO):\n return list(YKHO.__children)",
"def RbaF(YKHO):\n return []",
"def afYC(YK... | [
"0.74853694",
"0.74506974",
"0.7449709",
"0.7322262",
"0.732086",
"0.7301237",
"0.72755134",
"0.72497207",
"0.724807",
"0.724807",
"0.724807",
"0.724807",
"0.724807",
"0.724807",
"0.724807",
"0.724807",
"0.72437775",
"0.72393286",
"0.7237348",
"0.7230153",
"0.72204375",
"0.... | 0.67454684 | 60 |
The parent Section, Document or None. | def _AKB(YKHO):
return YKHO._parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO):\n YKHO.check_destroyed()\n if YKHO.__secref.has_parent() == 0:\n return None\n else:\n return GYI8._get(YKHO.__secref.parent)",
"def yVWF(YKHO):\n YKHO.check_destroyed()\n if YKHO.__secref.has_trueparent() == 0:\n return None\n else:\n return GYI8._ge... | [
"0.88274795",
"0.8009885",
"0.7890488",
"0.7689384",
"0.7615129",
"0.75419134",
"0.7508148",
"0.74979717",
"0.7495911",
"0.7477675",
"0.7477675",
"0.7477675",
"0.7464751",
"0.7464751",
"0.7464751",
"0.7464751",
"0.7464665",
"0.74578524",
"0.7455143",
"0.74238104",
"0.7409392"... | 0.7516905 | 7 |
Returns the repository responsible for this Section, which might not be the repository attribute, but may be inherited from a parent Section / the Document. | def _xs3(YKHO):
if YKHO._repository is None and YKHO.parent is not None:
return YKHO.parent.get_repository()
return super(db6Z, YKHO).repository | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F3jJ(YKHO):\n return YKHO._impl.getRepository(YKHO.critic)",
"def boHx(YKHO):\n return YKHO.repository",
"def boHx(YKHO) -> str:\n return YKHO._metadata.repo",
"def boHx(YKHO):\n return YKHO._repo",
"def boHx(YKHO):\n if not YKHO._repo:\n YKHO._repo = JvFA(YKHO.uid)\n return YK... | [
"0.7087359",
"0.6995676",
"0.69443697",
"0.6891156",
"0.6862012",
"0.67824125",
"0.67824125",
"0.677302",
"0.6750619",
"0.6677583",
"0.663838",
"0.6628081",
"0.65709364",
"0.6538976",
"0.6475808",
"0.6456615",
"0.64298844",
"0.63936234",
"0.638799",
"0.6373",
"0.6360734",
"... | 0.8307997 | 0 |
Returns the path of the archive directory corresponding to "directory", parent/_archives/ directory overrides the archive directory | def zT_t(YKHO, AGPF=None):
if not SLdk.isEmpty(AGPF):
return SLdk.normalizePath(AGPF, normalize=False)
else:
return SLdk.backupsDirectory(YKHO.sourcePath()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SoPu(YKHO, AGPF=None, pan_=None):\n if SLdk.isEmpty(pan_):\n pan_ = YKHO.versionName()\n if not pan_.endswith('.zip'):\n pan_ = pan_ + '.zip'\n pan_ = pan_.replace('..', '.')\n return YKHO.archiveDirectory(directory=AGPF) + pan_",
"def QcGB(YKHO, rZRz):\n if not juj8(rZRz) and YK... | [
"0.67978644",
"0.66946405",
"0.6619867",
"0.65974975",
"0.64837015",
"0.64549667",
"0.6449635",
"0.64431214",
"0.6333405",
"0.6318416",
"0.63005847",
"0.6293517",
"0.6282483",
"0.6275749",
"0.62289256",
"0.6217683",
"0.6211657",
"0.6210511",
"0.6200114",
"0.6189238",
"0.61418... | 0.87300795 | 0 |
Splits the filename into a prefix and a remaining. | def eiVH(YKHO, uRP3, y0cW=None):
if y0cW is None:
return (None, None)
if uRP3 is None:
return (None, None)
if len(y0cW) <= 0:
return (None, None)
if len(uRP3) <= 0:
return (None, None)
if not uRP3.lower().startswith(y0cW.lower()):
return (None, uRP3)
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DTK5(gIsw):\n print('file_name: ', gIsw)\n print('split_file_name: ', '_'.join(gIsw.replace(':', '').split('/'))[:-4] + 'txt')\n return '_'.join(gIsw.replace(':', '').split('/'))[:-4] + 'txt'",
"def kdT2(Ux0P):\n jNP6 = Ux0P.split('_')\n return jNP6",
"def DTK5(qaEx):\n Ux0P = Hy7s.path.b... | [
"0.7504568",
"0.74432987",
"0.73215157",
"0.71873844",
"0.7042",
"0.70015144",
"0.692552",
"0.6910091",
"0.68775856",
"0.6858844",
"0.68555576",
"0.6784063",
"0.67231846",
"0.6670998",
"0.66682845",
"0.6645558",
"0.6645558",
"0.6645341",
"0.66340417",
"0.6608278",
"0.6597742"... | 0.77866966 | 0 |
Splits the filename into a remaining and a suffix. | def TNLc(YKHO, uRP3, ZI14=None):
if ZI14 is None:
return (None, None)
if uRP3 is None:
return (None, None)
if len(ZI14) <= 0:
return (None, None)
if len(uRP3) <= 0:
return (None, None)
if not uRP3.lower().endswith(ZI14.lower()):
return (uRP3, None)
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5uP(FYKK):\n if '.' in FYKK:\n P8oC, YBcr = FYKK.rsplit('.', 1)\n else:\n YBcr = ''\n P8oC = FYKK\n return (P8oC, YBcr)",
"def kdT2(Ux0P):\n return Hy7s.path.splitext(Ux0P)[0]",
"def kdT2(Ux0P):\n jNP6 = Ux0P.split('_')\n return jNP6",
"def ud_i(Ux0P):\n mWFP = ... | [
"0.76747936",
"0.7635425",
"0.73870146",
"0.73738235",
"0.73723656",
"0.7361026",
"0.7302634",
"0.7221363",
"0.7192895",
"0.71899307",
"0.7148975",
"0.713377",
"0.70917654",
"0.6987292",
"0.6945978",
"0.6916893",
"0.6897502",
"0.6875562",
"0.68349487",
"0.6826698",
"0.6825689... | 0.7793069 | 0 |
A coupon code, an integer or a float as a representation of the coupon. | def c_Ww(YKHO, KXJ_):
YKHO._processor.coupon(KXJ_)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JMN9(YKHO):\n return YKHO._coupon_code",
"def ivog(YKHO, KAOR):\n if KAOR.coupon:\n return KAOR.coupon.coupon_code",
"def ivog(YKHO, KAOR):\n iajZ = YKHO._get_coupon_version(KAOR)\n if iajZ:\n return iajZ.coupon.coupon_code",
"def KXJ_(YKHO) -> qe4Y.Output[h8nf[str]]:\n retur... | [
"0.7682133",
"0.74017555",
"0.711905",
"0.6675199",
"0.6605182",
"0.6605182",
"0.6546193",
"0.65319854",
"0.64494383",
"0.63802683",
"0.63671106",
"0.63671106",
"0.63671106",
"0.63155127",
"0.6157332",
"0.6073756",
"0.60235846",
"0.59763557",
"0.59021926",
"0.57856286",
"0.56... | 0.5983028 | 17 |
parse pip requirement files and create a string from them, for inserting into bootstrap file. | def LOla(XSj5, iumf, PJWX=True):
hGN5 = []
for Ux0P in iumf:
print('requirements from %r:' % Ux0P)
hGN5.append('\n# requirements from %s' % Ux0P)
gas1 = O1OY(filepath=Hy7s.path.join(XSj5, Ux0P))
wGyf = Hy7s.path.splitext(Ux0P)[0].upper()
hGN5.append('%s = %s' % (wGyf, CgY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHZg(Ux0P):\n fA3L = []\n for zFiD in open(gzes(YnkN, 'requirements', Ux0P)):\n zFiD = zFiD.strip()\n if not zFiD or '://' in zFiD:\n continue\n kUBT = Em3y.match(zFiD)\n if kUBT:\n fA3L.extend(qHZg(kUBT.group('filename')))\n else:\n fA3... | [
"0.65386593",
"0.64782727",
"0.6441971",
"0.64237016",
"0.6410969",
"0.6320444",
"0.63043076",
"0.62811166",
"0.6262553",
"0.62621534",
"0.6249926",
"0.62442124",
"0.62418294",
"0.6207254",
"0.61548865",
"0.61351025",
"0.61262107",
"0.6123013",
"0.61212915",
"0.61185753",
"0.... | 0.5652845 | 87 |
Retrieve the last measurement taken. This can be executed at any time, including when the instrument is currently taking measurements. If there are no data points available, the value ``9.91000000E+37`` is returned. | def wXtz(YKHO):
nPrm = YKHO.query('DATA:LAST?')
u3J5 = {'VDC': 'V', 'VAC': 'V'}
if nPrm == '9.91000000E+37':
return int(nPrm)
else:
nPrm = nPrm.split(' ')
nPrm[0] = float(nPrm[0])
if nPrm[1] in u3J5:
nPrm[1] = u3J5[nPrm[1]]
return sqRO.Quantity(*nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ozAH(YKHO):\n return int(YKHO.lastevent / YKHO.measlen()) + 1",
"def fsbt(YKHO) -> float:\n return YKHO._data[-1][0]",
"def CUs1(YKHO) -> float:\n YKHO._assert_univariate()\n YKHO._assert_deterministic()\n return float(YKHO._xa[-1, 0, 0])",
"def kTHI(YKHO):\n return YKHO._selection_trac... | [
"0.74443436",
"0.70995575",
"0.70052624",
"0.6934538",
"0.6825455",
"0.6820372",
"0.67734754",
"0.6764776",
"0.67367524",
"0.67334133",
"0.6659645",
"0.66557294",
"0.6636295",
"0.6635666",
"0.663454",
"0.660466",
"0.658048",
"0.6574716",
"0.65313447",
"0.6527125",
"0.6525565"... | 0.7174189 | 1 |
Convert the resouce ID to a HATEOASstyle href with resource name. | def Ne6A(kFeU, PcW4):
if PcW4:
Eorv = '{name}/{id}'.format(name=kFeU, id=PcW4)
else:
Eorv = '{name}/????'.format(name=kFeU)
return BRmt(resource=Eorv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gMBO(PcW4):\n if not PcW4:\n return ''\n return gnPz.GetInstance(C3ST.Resource, PcW4).GetURL().encode('utf8')",
"def nzBm(YKHO, KmYg=None):\n if KmYg is None:\n KmYg = YKHO.book_id\n ZfjT = ''\n for Ko6S in KmYg[:-1]:\n ZfjT = ZfjT + Ko6S + '/'\n ZfjT = ZfjT + KmYg + '/... | [
"0.66697943",
"0.6174032",
"0.6136454",
"0.60084045",
"0.5942063",
"0.5928717",
"0.58350104",
"0.5795557",
"0.578052",
"0.5675497",
"0.5616957",
"0.5600067",
"0.55732507",
"0.55508053",
"0.5526893",
"0.55075073",
"0.5497889",
"0.5489817",
"0.5489817",
"0.5489817",
"0.5489817"... | 0.70835185 | 0 |
The home page for Meal Planner | def d6pt(QePW):
return _1tc(QePW, 'meal_planners/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n l_7H = HlLx.read_all_news()\n BkYD = HlLx.read_index()\n fyvm = BkYD['page_title']\n MP2t = {'title': BkYD['page_title'], 'description': BkYD['page_subtitle']}\n return TvZl('layouts/home.html', **locals())",
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return... | [
"0.7575341",
"0.7545498",
"0.7488946",
"0.7443572",
"0.7431363",
"0.74228674",
"0.73962724",
"0.7394998",
"0.7368235",
"0.7349919",
"0.7349919",
"0.7347172",
"0.7346727",
"0.7335967",
"0.7331015",
"0.7306395",
"0.7297454",
"0.7285743",
"0.7277132",
"0.72758174",
"0.727458",
... | 0.0 | -1 |
Test the transponder event is fired. | async def test_fire_transponder_event(ajET: HomeAssistant, Ua4b) -> None:
YTVa = YLsF(ajET, iSkS)
pKvt = W0L4(Is3J(0, 7, False), periphery=Jdp1.TRANSPONDER, code='aabbcc')
await Ua4b.async_process_input(pKvt)
await ajET.async_block_till_done()
assert len(YTVa) == 1
assert YTVa[0].event_type == i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TTbV(YKHO):\n h7wB = DuvM.mock.MagicMock()\n h7wB.sender.credit = True\n YKHO.handler._sent = False\n YKHO.handler.on_sendable(h7wB)\n YKHO.assertTrue(h7wB.sender.send.called)\n YKHO.assertTrue(YKHO.handler._sent)",
"def cNLv(YKHO):\n jzdc = Hnez()\n jzdc.eventReceived('1')\n jzdc.... | [
"0.66405314",
"0.64164376",
"0.63446826",
"0.61626023",
"0.6122226",
"0.6117385",
"0.6106874",
"0.6100735",
"0.5953142",
"0.58951336",
"0.5846881",
"0.58294624",
"0.58259124",
"0.5799253",
"0.5788564",
"0.57374346",
"0.57238543",
"0.5721203",
"0.57076985",
"0.57009524",
"0.55... | 0.69260323 | 0 |
Return a dictionary of device properties. Returns | def tCDn(YKHO):
C9U5 = YKHO.adb_shell(uwaB.CMD_MANUFACTURER + ' && ' + uwaB.CMD_MODEL + ' && ' + uwaB.CMD_SERIALNO + ' && ' + uwaB.CMD_VERSION + ' && ' + uwaB.CMD_MAC_WLAN0 + ' && ' + uwaB.CMD_MAC_ETH0)
if not C9U5:
return {}
Nqlg = C9U5.strip().splitlines()
if len(Nqlg) != 6:
return {}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iso7(smW4):\n Pjr8 = d2t1.SystemBus()\n begE = Pjr8.get_object('org.freedesktop.Hal', smW4)\n lhy8 = begE.GetAllProperties(dbus_interface='org.freedesktop.Hal.Device')\n return dict(lhy8)",
"def LLc5(YKHO):\n return YKHO.__device_dict",
"def iF4_(YKHO):\n ZAM1 = {'uuid': YKHO.uuid, 'machi... | [
"0.81782687",
"0.80532736",
"0.8005095",
"0.79749185",
"0.79599375",
"0.7926967",
"0.7926967",
"0.7925542",
"0.7918641",
"0.7895082",
"0.7886263",
"0.7851741",
"0.7851741",
"0.78254074",
"0.7815849",
"0.7790847",
"0.777906",
"0.777906",
"0.777906",
"0.77637225",
"0.77613866",... | 0.7916861 | 9 |
Get a version number, as a float. This would primarily be used so some app or extension can determine if we are later than a specific version of either the engine or a specific app. Maybe YAGNI. | def iswp(P4t4=None, uSiz='Version', rg2O=None):
if rg2O is None:
rg2O = L6MF
if P4t4 is None:
dict = rg2O
else:
dict = rg2O['Apps'][P4t4]
return dict[uSiz] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpZH(YKHO) -> h8nf[float]:\n DpZH = YKHO.uncommon_version\n if DpZH is not None:\n return float(int(DpZH.split('.')[0]))",
"def jhGN(YKHO, DpZH: str) -> str:\n try:\n lpha = DpZH.split('.')\n return f'{lpha[0]}.{lpha[1]}{lpha[2]}'\n except (ValueError, TypeError, AttributeErr... | [
"0.79367554",
"0.7134953",
"0.7051146",
"0.7018492",
"0.6777165",
"0.66919607",
"0.66349024",
"0.6582569",
"0.65815187",
"0.65787065",
"0.65682226",
"0.6555521",
"0.6550027",
"0.65172017",
"0.6503798",
"0.6488218",
"0.6484201",
"0.6453464",
"0.64396894",
"0.6422336",
"0.64092... | 0.0 | -1 |
Returns prime factors of n as a list. | def uBVK(exwG):
YRbF = 2
Llmz = []
while YRbF * YRbF <= exwG:
if exwG % YRbF:
YRbF += 1
else:
exwG //= YRbF
Llmz.append(YRbF)
if exwG > 1:
Llmz.append(exwG)
return Llmz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uBVK(exwG):\n YRbF = 2\n Llmz = []\n while YRbF * YRbF <= exwG:\n if exwG % YRbF:\n YRbF += 1\n else:\n exwG //= YRbF\n Llmz.append(YRbF)\n if exwG > 1:\n Llmz.append(exwG)\n return Llmz",
"def F93g(exwG):\n vC9B = list(uBVK(exwG))\n ... | [
"0.90964794",
"0.90908957",
"0.9031411",
"0.90006375",
"0.89587486",
"0.89561963",
"0.8830894",
"0.8816668",
"0.87675893",
"0.8755685",
"0.8755685",
"0.8747207",
"0.872773",
"0.8715467",
"0.8704444",
"0.8704232",
"0.8697064",
"0.8693874",
"0.8692558",
"0.8692558",
"0.8685037"... | 0.8840571 | 6 |
Applies network layers and ops on input image(s) x. | def KVH6(YKHO, WKvO, pan_=False):
c7pe = list()
hksT = list()
Fv2L = list()
for G1Hx in range(14):
WKvO = YKHO.vgg[G1Hx](WKvO)
if YKHO.phase != 'test':
L3Yx = YKHO.netD_pixel(j7EX(WKvO))
for G1Hx in range(14, 23):
WKvO = YKHO.vgg[G1Hx](WKvO)
if YKHO.phase != 'test':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n return Pusg(jX85, YKHO.layers, WKvO.unsqueeze(1))",
"def KVH6(YKHO, WKvO):\n return Pusg(jX85, YKHO.layers, WKvO.unsqueeze(1))",
"def aV0p(YKHO, WKvO):\n dFGd = YKHO.add_conv_op(x=WKvO, num_pixels_conv=5, num_channels_in_previous_layer=1, num_channels_in_current_layer=YKHO.num_... | [
"0.69823223",
"0.69402516",
"0.6820701",
"0.6812367",
"0.6812367",
"0.6778873",
"0.666119",
"0.66163725",
"0.6561691",
"0.65478355",
"0.65452373",
"0.64560163",
"0.6409668",
"0.63668734",
"0.6340254",
"0.6334035",
"0.63289243",
"0.63131064",
"0.63079584",
"0.6305548",
"0.6279... | 0.0 | -1 |
Sets the address of this CartWarehouse. | def UTX6(YKHO, UTX6):
YKHO._address = UTX6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ce3W(YKHO, UTX6):\n YKHO.address = UTX6",
"def Ce3W(YKHO, UTX6):\n YKHO.address = UTX6",
"def Ce3W(YKHO, UTX6):\n YKHO.address = UTX6",
"def HSdK(YKHO, rRzo):\n YKHO.address = rRzo",
"def HSdK(YKHO, UTX6: str):\n YKHO.__address = UTX6\n return YKHO",
"def Ce3W(YKHO, DbMD):\n YKHO... | [
"0.7302789",
"0.7302789",
"0.7302789",
"0.7159473",
"0.7012058",
"0.69768566",
"0.6753283",
"0.67473876",
"0.6694872",
"0.66182387",
"0.66182387",
"0.66182387",
"0.66182387",
"0.6556545",
"0.6534962",
"0.6492508",
"0.63731015",
"0.63633996",
"0.6305538",
"0.62815523",
"0.6190... | 0.6632335 | 10 |
Sets the carriers_ids of this CartWarehouse. | def Ad5L(YKHO, Ad5L):
YKHO._carriers_ids = Ad5L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kq8d(YKHO, WqDe):\n YKHO._market_ids = WqDe",
"def Lqv2(YKHO, Lqv2):\n YKHO._cve_ids = Lqv2",
"def roBb(YKHO, roBb):\n YKHO._cars = roBb",
"def sQRl(YKHO, sQRl):\n YKHO._zone_ids = sQRl",
"def MboH(dQ3O=oJiz.keys(), rVtO=False):\n if 'System Manager' not in Er1K.get_roles(Er1K.session.us... | [
"0.61171913",
"0.56415945",
"0.5574847",
"0.5350942",
"0.53488433",
"0.53243154",
"0.5297828",
"0.5297828",
"0.529672",
"0.5270507",
"0.5207545",
"0.51961505",
"0.5195831",
"0.51034",
"0.5093215",
"0.50221586",
"0.50096744",
"0.49985188",
"0.49922115",
"0.48456636",
"0.484566... | 0.84015495 | 0 |
Sets the stores_ids of this CartWarehouse. | def tzTb(YKHO, tzTb):
YKHO._stores_ids = tzTb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kq8d(YKHO, WqDe):\n YKHO._market_ids = WqDe",
"def Epav(YKHO, F1m0):\n for VUF1 in F1m0:\n YKHO.add_store(VUF1)",
"def Epav(YKHO, F1m0):\n for VUF1 in F1m0:\n YKHO.add_store(VUF1)",
"def apYH(YKHO, d1k_):\n YKHO.config(show_multiple_locations=True)\n YKHO.config(show_image_di... | [
"0.647646",
"0.6321858",
"0.6321858",
"0.57797045",
"0.56962866",
"0.55534214",
"0.52888703",
"0.5202674",
"0.5202674",
"0.5185329",
"0.5158206",
"0.5112048",
"0.51083416",
"0.5080358",
"0.507589",
"0.506711",
"0.49963564",
"0.49634773",
"0.49634773",
"0.4927261",
"0.4924676"... | 0.8436643 | 0 |
Sets the additional_fields of this CartWarehouse. | def cu96(YKHO, cu96):
YKHO._additional_fields = cu96 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hB1I(YKHO):\n pass",
"def zrq3(YKHO, zrq3):\n YKHO._additional_data_fields = zrq3",
"def N_X7(YKHO, N_X7):\n YKHO._additional_properties = N_X7",
"def X9mI(YKHO, X9mI):\n YKHO._extra_properties = X9mI",
"def hUYe(YKHO):\n pass",
"def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3",
... | [
"0.7054957",
"0.6748962",
"0.62248564",
"0.583471",
"0.5811344",
"0.57807124",
"0.57754445",
"0.57541114",
"0.575411",
"0.575411",
"0.575411",
"0.575411",
"0.575411",
"0.575411",
"0.57381004",
"0.5727737",
"0.56832594",
"0.5612794",
"0.5608574",
"0.5513065",
"0.5504763",
"0... | 0.73192817 | 0 |
Sets the custom_fields of this CartWarehouse. | def Sno3(YKHO, Sno3):
YKHO._custom_fields = Sno3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3",
"def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3",
"def g0xd(YKHO, g0xd):\n YKHO._custom_field_settings = g0xd",
"def dCAY(YKHO, dCAY):\n YKHO._custom_field = dCAY",
"def dCAY(YKHO, dCAY):\n YKHO._custom_field = dCAY",
"def hXTF(YKHO,... | [
"0.7258964",
"0.71936107",
"0.6384337",
"0.5994753",
"0.5994753",
"0.5858834",
"0.5858834",
"0.58143157",
"0.58143157",
"0.57704216",
"0.5593512",
"0.55677754",
"0.5561032",
"0.5537147",
"0.55313355",
"0.5444781",
"0.5390245",
"0.5388659",
"0.5374166",
"0.5374166",
"0.5371706... | 0.7281899 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 82 |
Returns an ArgumentParser preinitalized with common arguments for configuring logging and the main database connection. It also supports reading arguments from environment variables. | def iaaJ(JBZA):
wvEv = ugSn.ArgumentParser(description=JBZA, auto_env_var_prefix='ctf_')
wvEv.add_argument('--loglevel', default='WARNING', type=str, choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], help='Log level')
_pd9 = wvEv.add_argument_group('database', 'Gameserver database')
_pd9.add_ar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nEw_(YKHO):\n wvEv = j1Jz.ArgumentParser(description='Bootstrapping phase of the Amazon Appstore Crawler')\n wvEv.add_argument('--console-log-verbosity', type=str, choices=['INFO', 'DEBUG', 'WARN', '... | [
"0.72667605",
"0.7150287",
"0.7079237",
"0.70469314",
"0.7012004",
"0.7008243",
"0.69280684",
"0.69050974",
"0.6838824",
"0.68031996",
"0.6781757",
"0.6768644",
"0.6750751",
"0.6750381",
"0.6702472",
"0.67016464",
"0.66916656",
"0.6686128",
"0.66756195",
"0.66704696",
"0.6668... | 0.0 | -1 |
Tokenizes the questions. This will add q_token in each entry of the dataset. 1 represent nil, and should be treated as padding_idx in embedding | def wr3U(YKHO, bAls, BcCR=14):
s2mk = YKHO.dictionary.tokenize(bAls, False)
s2mk = s2mk[:BcCR]
if len(s2mk) < BcCR:
dvgN = [YKHO.dictionary.padding_idx] * (BcCR - len(s2mk))
s2mk = dvgN + s2mk
BfDw.assert_eq(len(s2mk), BcCR)
return s2mk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(YKHO, BcCR=14):\n for UXjx in range(len(YKHO.entries)):\n bTKY = YKHO.entries[UXjx]\n s2mk = YKHO.dictionary.tokenize(bTKY['question'], False)\n s2mk = s2mk[:BcCR]\n if len(s2mk) < BcCR:\n dvgN = [YKHO.dictionary.padding_idx] * (BcCR - len(s2mk))\n s2mk... | [
"0.6698408",
"0.6582491",
"0.6500856",
"0.6489869",
"0.6371795",
"0.6371795",
"0.636617",
"0.6350592",
"0.6276897",
"0.6188368",
"0.6092575",
"0.6089351",
"0.6082448",
"0.6051224",
"0.6040035",
"0.5963438",
"0.59449345",
"0.5827016",
"0.58132774",
"0.57983166",
"0.5793089",
... | 0.6272296 | 9 |
Saves check in for one user to the database. | def GfdN(YKHO, CBIr, tQlN):
w2B8 = iHv3.connect('debts.db')
Z9rn = w2B8.cursor()
try:
dixj = Z9rn.execute("SELECT MAX(id) FROM checks\n WHERE user = '{0}';".format(CBIr))
id = next(dixj)[0]
except StopIteration:
Z9rn.execute("INSERT INTO checks (check_in_date, chec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n pB3N = YKHO.context['payload']\n CBIr = mv1M.objects.get(username=pB3N['user'])\n CBIr.is_verified = True\n CBIr.save()",
"def qQaj(YKHO):\n VUF1.add_user(YKHO)",
"def qQaj(CBIr):\n CBIr.save_user_details()",
"def xkzz(YKHO):\n t1Ap = YKHO.context['jwt_payload']\n CB... | [
"0.68710214",
"0.68100923",
"0.6655765",
"0.66208434",
"0.65822965",
"0.6526348",
"0.65073496",
"0.64805573",
"0.6479469",
"0.6479469",
"0.6479469",
"0.6456223",
"0.645046",
"0.645046",
"0.645046",
"0.645046",
"0.645046",
"0.639095",
"0.639095",
"0.6356699",
"0.633045",
"0.... | 0.6837815 | 1 |
Returns the user associated with the current request, as authenticated by the authentication classes provided to the request. | def CBIr(YKHO):
if not hasattr(YKHO, '_user'):
with mnVo():
YKHO._authenticate()
return YKHO._user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5ow(YKHO, QePW=None) -> tnwy('User'):\n WBPg = YKHO.authorization_header(QePW)\n Hufe = YKHO.extract_base64_authorization_header(WBPg)\n x8I_ = YKHO.decode_base64_authorization_header(Hufe)\n CBIr, zN5h = YKHO.extract_user_credentials(x8I_)\n return YKHO.user_object_from_credentials(CBIr, zN5h)... | [
"0.8012637",
"0.79807997",
"0.79577637",
"0.7892985",
"0.7887959",
"0.7647383",
"0.758539",
"0.7498095",
"0.7470398",
"0.74364704",
"0.7400349",
"0.73879045",
"0.7379656",
"0.734861",
"0.72974354",
"0.7291431",
"0.72792345",
"0.7276705",
"0.7267865",
"0.72543204",
"0.72452193... | 0.71328676 | 33 |
Return the instance of the authentication instance class that was used to authenticate the request, or `None`. | def FNuA(YKHO):
if not hasattr(YKHO, '_authenticator'):
with mnVo():
YKHO._authenticate()
return YKHO._authenticator | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m9sn(YKHO):\n return YKHO.__authentication",
"def m9sn(YKHO):\n return YKHO.__authentication",
"def Jpbe(YKHO):\n return YKHO.__class__._auth",
"def Jpbe(YKHO):\n return PO44(YKHO)",
"def KUn3(YKHO):\n return YKHO.__authentication",
"def JP87(YKHO):\n return YKHO.user",
"def NLCy(... | [
"0.7139976",
"0.7139976",
"0.6741509",
"0.66512465",
"0.6562167",
"0.65173984",
"0.6463807",
"0.6431315",
"0.64301515",
"0.64241415",
"0.6421654",
"0.6409548",
"0.63719624",
"0.63641304",
"0.63617396",
"0.63460684",
"0.6345164",
"0.63410854",
"0.63410854",
"0.63410854",
"0.63... | 0.0 | -1 |
Get generic regression model. | def xwV6(EcVT=[], fuBA=[], YLAH=[], NI2E=0.1, kj9G=False, biH0=True, lh66=True, lac1=False, bPNk=[], ZGE9='my_model', GPtr={}):
xsax = dXFm.LGBMRegressor(n_estimators=GPtr['n_estimators'], learning_rate=GPtr['learning_rate'], num_leaves=GPtr['num_leaves'])
U34r = oRi_()
Lcqa, Z5wO, VJv0, H96n, eGIg, Sd0T = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vbtl(YKHO):\n if YKHO.model:\n return YKHO.model\n else:\n if YKHO.type == 'l1_regularizer':\n YKHO.model = Fz20.l1_regularizer(scale=float(YKHO.weight))\n elif YKHO.type == 'l2_regularizer':\n YKHO.model = Fz20.l2_regularizer(scale=float(YKHO.weight))\n ... | [
"0.6825564",
"0.6814247",
"0.676363",
"0.659517",
"0.65029645",
"0.647774",
"0.6403427",
"0.6385498",
"0.6333349",
"0.6331046",
"0.6322882",
"0.6312126",
"0.6267115",
"0.6267115",
"0.6188556",
"0.61471534",
"0.6120495",
"0.6107441",
"0.60934794",
"0.6073235",
"0.606617",
"0... | 0.0 | -1 |
Perform an action and step the environment dynamics. The action is executed by the Agent vehicle, and all other vehicles on the road performs their default behaviour for several simulation timesteps until the next decision making step. | def YPaw(YKHO, XeOP):
YKHO._make_ego_vehicles()
if YKHO.road is None or YKHO.ego_vehicles is None:
raise NotImplementedError('The road and vehicle must be initialized in the environment implementation')
YKHO.steps += 1
for YWSi in YKHO.ego_vehicles:
if YWSi.lane_index == ('nxr', 'sen', 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPaw(YKHO, XeOP):\n if YKHO.road is None or YKHO.vehicle is None:\n raise NotImplementedError('The road and vehicle must be initialized in the environment implementation')\n YKHO._simulate(XeOP)\n W061 = YKHO.observation.observe()\n vOGg = YKHO._reward(XeOP)\n f9TP = YKHO._is_terminal()\n... | [
"0.75555825",
"0.71118385",
"0.7030882",
"0.7010374",
"0.7009452",
"0.7006014",
"0.6967516",
"0.6953408",
"0.69501954",
"0.69405967",
"0.689797",
"0.6893532",
"0.68896645",
"0.6860583",
"0.68229616",
"0.68218255",
"0.68187875",
"0.6808587",
"0.6774225",
"0.6760614",
"0.672667... | 0.76680976 | 0 |
Close the environment. Will close the environment viewer if it exists. | def DDI8(YKHO):
YKHO.done = True
if YKHO.viewer is not None:
YKHO.viewer.close()
YKHO.viewer = None
QrM1.close('all') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO._env.close()",
"def DDI8(YKHO):\n YKHO.env.close()",
"def DDI8(YKHO):\n YKHO.env.close()",
"def DDI8(YKHO):\n YKHO._env.close()",
"def DDI8(YKHO):\n YKHO._env.close()",
"def DDI8(YKHO):\n YKHO.env.close()",
"def LPZs(YKHO):\n pass",
"def DDI8(YKHO):\n fo... | [
"0.7814105",
"0.76926243",
"0.76926243",
"0.76456267",
"0.76456267",
"0.76021284",
"0.7496624",
"0.72441924",
"0.70529056",
"0.6886882",
"0.68361735",
"0.68361735",
"0.66856086",
"0.6680332",
"0.66329885",
"0.6563476",
"0.6484515",
"0.64582616",
"0.6443162",
"0.63651365",
"0.... | 0.5745261 | 55 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 86 |
Called for [Nodes] and [Edges] >> Self because list don't have __rshift__ operators. | def vAAD(YKHO, Elif: Union[List['Node'], List['Edge']]):
for z1Rg in Elif:
if isinstance(z1Rg, ndC_):
z1Rg.forward = True
z1Rg.connect(YKHO)
else:
z1Rg.connect(YKHO, ndC_(YKHO, forward=True))
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVk1(YKHO, Elif: Union[List['Node'], List['Edge']]) -> x1iM['Edge']:\n return YKHO.append(Elif, reverse=True)",
"def vAAD(YKHO, Elif: Union[List['Node'], List['Edge']]) -> x1iM['Edge']:\n return YKHO.append(Elif, forward=True)",
"def m5re(YKHO, Elif: Union['Node', 'Edge', List['Node']]):\n YKHO.fo... | [
"0.7910812",
"0.776388",
"0.75447375",
"0.7543475",
"0.75187993",
"0.7388573",
"0.7354443",
"0.71803933",
"0.71728206",
"0.7096509",
"0.7091517",
"0.7088784",
"0.70832425",
"0.70279187",
"0.69449216",
"0.6898598",
"0.68521273",
"0.6830409",
"0.68300676",
"0.6814564",
"0.68057... | 0.7006087 | 14 |
Called for [Nodes] << Self because list of Nodes don't have __lshift__ operators. | def hVk1(YKHO, Elif: Union[List['Node'], List['Edge']]):
for z1Rg in Elif:
if isinstance(z1Rg, ndC_):
z1Rg.reverse = True
z1Rg.connect(YKHO)
else:
z1Rg.connect(YKHO, ndC_(YKHO, reverse=True))
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MagG(YKHO, Elif):\n Elif.downstream().append(YKHO)\n YKHO.upstream().append(Elif)",
"def MagG(YKHO, Elif: Union['Node', 'Edge', List['Node']]):\n YKHO.reverse = True\n return YKHO.connect(Elif)",
"def MagG(YKHO, Elif):\n return YKHO.binary(Elif, seET.lshift)",
"def hVk1(YKHO, Elif: Union[L... | [
"0.7501746",
"0.74838847",
"0.721516",
"0.7199431",
"0.7191009",
"0.71545863",
"0.7108111",
"0.70914173",
"0.7088164",
"0.6950521",
"0.69271946",
"0.69199693",
"0.68286765",
"0.6790439",
"0.6721143",
"0.6717639",
"0.67062163",
"0.670605",
"0.6639884",
"0.6585872",
"0.6572696"... | 0.6461083 | 23 |
Edge represents an edge between two nodes. | def FIMM(YKHO, Q6kx: 'Node'=None, KVH6: bool=False, gxEw: bool=False, UXqs: str='', qfpW: str='', _Cnz: str='', **o8Kj: Dict):
if Q6kx is not None:
assert isinstance(Q6kx, o7DN)
YKHO.node = Q6kx
YKHO.forward = KVH6
YKHO.reverse = gxEw
YKHO._attrs = {}
for G1Hx, Ty9i in YKHO._default_edge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1KG(YKHO, i4Va, rUTj):\n pass",
"def D70y(YKHO, pu_z: Node, HHsV: Node, **o8Kj: Any) -> None:\n YKHO.dot.edge(pu_z.id, HHsV.id, **o8Kj)",
"def D70y(YKHO, Elif: 'Vertice') -> 'Edge':\n return YKHO._edge_to_vertice[Elif]",
"def m5X5(YKHO, cIke, ULgk):\n return ZYgz.TBiConVisitor_ExamineEdge(YK... | [
"0.74684334",
"0.731165",
"0.72944236",
"0.6828385",
"0.68248355",
"0.68172014",
"0.6716177",
"0.670532",
"0.67021775",
"0.6640738",
"0.66388047",
"0.66358155",
"0.6629131",
"0.66155386",
"0.66097873",
"0.6599131",
"0.65989083",
"0.65724576",
"0.6568811",
"0.65654916",
"0.656... | 0.0 | -1 |
Called for [Nodes] or [Edges] >> Self because list of Edges don't have __rshift__ operators. | def vAAD(YKHO, Elif: Union[List['Node'], List['Edge']]) -> x1iM['Edge']:
return YKHO.append(Elif, forward=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVk1(YKHO, Elif: Union[List['Node'], List['Edge']]) -> x1iM['Edge']:\n return YKHO.append(Elif, reverse=True)",
"def m5re(YKHO, Elif: Union['Node', List['Node'], 'Edge']):\n if isinstance(Elif, list):\n for Q6kx in Elif:\n YKHO.connect(Q6kx, ndC_(YKHO, forward=True))\n return E... | [
"0.79817134",
"0.7679401",
"0.755041",
"0.7491007",
"0.7386236",
"0.73163307",
"0.727375",
"0.727138",
"0.7189163",
"0.71818006",
"0.71577764",
"0.7142644",
"0.71095157",
"0.6979485",
"0.6964028",
"0.68508357",
"0.6804092",
"0.6757642",
"0.67377716",
"0.6735982",
"0.67168",
... | 0.7850638 | 1 |
Called for [Nodes] or [Edges] << Self because list of Edges don't have __lshift__ operators. | def hVk1(YKHO, Elif: Union[List['Node'], List['Edge']]) -> x1iM['Edge']:
return YKHO.append(Elif, reverse=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MagG(YKHO, Elif: Union['Node', 'Edge', List['Node']]):\n YKHO.reverse = True\n return YKHO.connect(Elif)",
"def MagG(YKHO, Elif: Union['Node', List['Node'], 'Edge']):\n if isinstance(Elif, list):\n for Q6kx in Elif:\n YKHO.connect(Q6kx, ndC_(YKHO, reverse=True))\n return Eli... | [
"0.76891404",
"0.7622098",
"0.7619511",
"0.7364707",
"0.7321756",
"0.72774243",
"0.7189346",
"0.71861285",
"0.7152289",
"0.711283",
"0.7094868",
"0.6976008",
"0.696135",
"0.6950356",
"0.68139917",
"0.68139535",
"0.6810308",
"0.6757562",
"0.67403936",
"0.6692953",
"0.66469496"... | 0.7609256 | 3 |
The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access. | def mLXZ(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'tenant_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IuI1(YKHO):\n return YKHO.tenant",
"def SIK3(YKHO):\n return YKHO.request.tenant",
"def hqpR(xQy_):\n pass",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.65430516",
"0.64735395",
"0.6466606",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.642204",
"0.6392473",
"0... | 0.61442864 | 73 |
The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access. | def mLXZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'tenant_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IuI1(YKHO):\n return YKHO.tenant",
"def SIK3(YKHO):\n return YKHO.request.tenant",
"def hqpR(xQy_):\n pass",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.65461653",
"0.64767003",
"0.6469507",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
"0.6425615",
... | 0.6162865 | 45 |
The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access. | def mLXZ(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'tenant_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IuI1(YKHO):\n return YKHO.tenant",
"def SIK3(YKHO):\n return YKHO.request.tenant",
"def hqpR(xQy_):\n pass",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')",
"def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.65443295",
"0.64754033",
"0.6467737",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
"0.6423336",
... | 0.6152262 | 66 |
Adds anonymous Truth question. | async def addTruth(YKHO, OaeV, *, w75t: str):
YKHO.bot.r.sadd('truths', w75t)
await OaeV.send('truth added!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d8fu(YKHO):\n geh0 = YKHO.client.get(gxEw('yaksh:add_quiz', kwargs={'course_id': YKHO.course.id}), follow=True)\n wf5m = '/exam/login/?next=/exam/manage/addquiz/{0}/'.format(YKHO.course.id)\n YKHO.assertRedirects(geh0, wf5m)",
"def it6l(YKHO):\n pass",
"def kGhj(YKHO):\n pass",
"def bAls()... | [
"0.6234604",
"0.59580123",
"0.5912514",
"0.58788675",
"0.57704866",
"0.576498",
"0.57461107",
"0.5716371",
"0.5673202",
"0.56222653",
"0.54589486",
"0.54421794",
"0.54369414",
"0.5433494",
"0.5433494",
"0.5433494",
"0.54239297",
"0.5394288",
"0.5394288",
"0.5393914",
"0.53854... | 0.53592795 | 23 |
Adds anonymous Dare question. | async def addDare(YKHO, OaeV, *, w75t: str):
YKHO.bot.r.sadd('dares', w75t)
await OaeV.send('dare added!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def it6l(YKHO):\n pass",
"def wWM5(YKHO, bAls, ANfV):\n YKHO.questions.append(super(RoxL, YKHO).__init__(bAls, ANfV))",
"def sMrc():\n uthR = TvZl('welcome')\n return bAls(uthR)",
"def d8fu(YKHO):\n geh0 = YKHO.client.get(gxEw('yaksh:add_quiz', kwargs={'course_id': YKHO.course.id}), follow=Tru... | [
"0.6204647",
"0.6203632",
"0.5819293",
"0.58086836",
"0.5792137",
"0.5782623",
"0.5730213",
"0.57003444",
"0.5699769",
"0.56830055",
"0.5663257",
"0.5656321",
"0.5640861",
"0.5620143",
"0.56198",
"0.56116194",
"0.5580984",
"0.5561612",
"0.55563515",
"0.55476856",
"0.5514839",... | 0.52943045 | 38 |
Gets anonymous Truth question. | async def truth(YKHO, OaeV):
u54L = YKHO.bot.r.scard('truths')
if u54L == 0:
await OaeV.send('no more truths')
return
await OaeV.send(YKHO.bot.r.spop('truths').decode()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NSJu(YKHO):\n return YKHO.__question",
"def bAls(YKHO):\n return YKHO.__question",
"def NSJu(YKHO):\n for RHGO in EP61.objects.filter(block=YKHO):\n if RHGO.answer is None:\n return RHGO.question",
"def bAls():\n return 'Sure.'",
"def tWjH(YKHO):\n if YKHO.cQuestion is ... | [
"0.670712",
"0.6509297",
"0.6467368",
"0.6317141",
"0.6285725",
"0.62750024",
"0.61252505",
"0.61215574",
"0.61169744",
"0.5990137",
"0.5953822",
"0.592479",
"0.59228134",
"0.59060025",
"0.5898124",
"0.58573383",
"0.58335096",
"0.5830423",
"0.5827506",
"0.5787811",
"0.5762052... | 0.0 | -1 |
Builds a JSON error response to return as a WS client notification. | def Y5MC(e88K, tELg):
UrB1 = []
for Vugn in e88K.errors.values():
UrB1.extend(Vugn.to_json())
E2B1 = []
for f9UR in e88K.warnings.values():
E2B1.extend(f9UR.to_json())
return {'pk': tELg.pk, 'uuid': tELg.uuid, 'status': tELg.status, 'errors': UrB1, 'warnings': E2B1} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y__t(YKHO):\n return jnRN({'error': YKHO.message, 'status': 'error'}, status=YKHO.status)",
"def jxdG(nPrm):\n wLKY = {}\n wLKY['success'] = 'false'\n wLKY['data'] = {}\n wLKY['error'] = nPrm\n return qQXR.dumps(wLKY)",
"def jxdG(nPrm):\n wLKY = {}\n wLKY['success'] = 'false'\n w... | [
"0.7873914",
"0.7575945",
"0.7575945",
"0.749545",
"0.7316487",
"0.7229583",
"0.71173877",
"0.70977396",
"0.7064733",
"0.7058158",
"0.7038772",
"0.70347613",
"0.70231044",
"0.7007791",
"0.7001477",
"0.69847804",
"0.69779444",
"0.6963505",
"0.68833125",
"0.68808603",
"0.686424... | 0.0 | -1 |
Test uploading asian_chars_1.txt, NOT setting the file format | def xLYx(YKHO):
YKHO.check_history_for_string('Your history is empty')
FLXQ = Dvct.query(EEdB.model.History).filter(nWJV(EEdB.model.History.table.c.deleted == False, EEdB.model.History.table.c.user_id == y26g.id)).order_by(QoB4(EEdB.model.History.table.c.create_time)).first()
YKHO.upload_file('asian_chars_1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def liTD(x0hE, AZgw):\n x0hE.login_root()\n for KOdv, (tTpl, IJjE) in enumerate([('utf-8', None), ('utf-8', T_Uj.BOM_UTF8), ('utf-16', None), ('utf-16', T_Uj.BOM_UTF16), ('utf-32', None), ('utf-32', T_Uj.BOM_UTF32)]):\n nPrm = f'disambiguated id,disambiguation source,name\\n123,ABC,대학 #{KOdv} WITH {tT... | [
"0.6813589",
"0.6733013",
"0.66115",
"0.6570808",
"0.65528005",
"0.6520262",
"0.6488445",
"0.646728",
"0.6433449",
"0.64051414",
"0.6298955",
"0.62341624",
"0.6209771",
"0.6203147",
"0.61887705",
"0.61780137",
"0.61470413",
"0.6124294",
"0.6113105",
"0.6044456",
"0.5991085",
... | 0.6638348 | 2 |
This function takes an input sequence and produces chunks of chosen size. Offset can be used to control degree of overlap (or distance between chunks that don't overlap) | def tpVX(Q6uT, zNig, vgXP=1):
return zip(*(uOgj(Q6uT, YRbF, None, vgXP) for YRbF in range(zNig))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmsE(aWuw: Sequence | str, zNig: int, yHH9: int, /) -> bDy6[tuple[int, str]]:\n d6pt = 0\n while d6pt < len(aWuw) - 2 * yHH9:\n yield (d6pt, aWuw[d6pt:d6pt + zNig + 2 * yHH9])\n d6pt += zNig",
"def alOD(Q6uT, zNig):\n return zip(*[iter(Q6uT)] * zNig)",
"def eHxA(Q6uT, zNig):\n ret... | [
"0.78390646",
"0.77381676",
"0.74619496",
"0.74619496",
"0.7416307",
"0.73891574",
"0.7331429",
"0.7208752",
"0.7042137",
"0.70262086",
"0.6988838",
"0.69463736",
"0.6930718",
"0.69073355",
"0.6875343",
"0.6874248",
"0.6827899",
"0.67576104",
"0.6720714",
"0.66989166",
"0.669... | 0.8438287 | 0 |
The average reading of the specified time range should fall between the upper and lower bound | def oPpe(YKHO, IDsK, A2Fp):
YKHO.expect_average_less_than(A2Fp)
YKHO.expect_average_greater_than(IDsK)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pf9S(YKHO):\n hkxX = []\n BJCy = 0\n for YRbF in range(0, YKHO.burst):\n YKHO.pulse()\n ITS7.sleep(0.04)\n hkxX.append(YKHO.distance)\n BJCy += hkxX[YRbF]\n ITS7.sleep(0.05)\n return BJCy / YKHO.burst",
"def QyZs(YKHO, vnBN=12 * PCpl, ULDd=12.5 * PCpl):\n Wy1... | [
"0.6604481",
"0.6504317",
"0.6502496",
"0.6310983",
"0.62529397",
"0.6243768",
"0.62017864",
"0.6191018",
"0.61824876",
"0.6165684",
"0.6136652",
"0.6123249",
"0.60980594",
"0.60186577",
"0.60126317",
"0.5980515",
"0.59688336",
"0.5961435",
"0.5951552",
"0.5923625",
"0.587969... | 0.7145695 | 0 |
The average reading of the specified time range should fall below the upper bound | def h_65(YKHO, A2Fp):
YKHO._expectations.append(Slkh(YKHO, A2Fp))
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oPpe(YKHO, IDsK, A2Fp):\n YKHO.expect_average_less_than(A2Fp)\n YKHO.expect_average_greater_than(IDsK)\n return YKHO",
"def WiTQ(YKHO, a1PO=None):\n if len(YKHO._rs) > 0:\n if a1PO is None:\n a1PO = YKHO._last_t\n if a1PO < YKHO._last_t:\n jMN5 = 'timeseries.av... | [
"0.7027715",
"0.6626531",
"0.6450798",
"0.6362407",
"0.630419",
"0.6187588",
"0.6151384",
"0.6099029",
"0.6092",
"0.60891193",
"0.6078218",
"0.607162",
"0.60548127",
"0.6020423",
"0.60024935",
"0.5995587",
"0.597993",
"0.5977637",
"0.5957024",
"0.59466976",
"0.59377736",
"0... | 0.0 | -1 |
The average reading of the specified time range should fall above the lower bound | def IjPb(YKHO, IDsK):
YKHO._expectations.append(r_tb(YKHO, IDsK))
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oPpe(YKHO, IDsK, A2Fp):\n YKHO.expect_average_less_than(A2Fp)\n YKHO.expect_average_greater_than(IDsK)\n return YKHO",
"def WiTQ(YKHO, a1PO=None):\n if len(YKHO._rs) > 0:\n if a1PO is None:\n a1PO = YKHO._last_t\n if a1PO < YKHO._last_t:\n jMN5 = 'timeseries.av... | [
"0.69744825",
"0.65211636",
"0.64658916",
"0.6260915",
"0.62458986",
"0.6217554",
"0.6188228",
"0.6179229",
"0.61774063",
"0.616987",
"0.6155566",
"0.6149098",
"0.61105496",
"0.60793734",
"0.6031362",
"0.6005458",
"0.5994735",
"0.5979407",
"0.59685934",
"0.59572434",
"0.59562... | 0.0 | -1 |
Returns primary fraction, in cGy/MU, with inverse square and beamstopper attenuation. angle; relative to isocenter>couch direction, in degrees distance; from isocenter, in meters | def Oc9B(YylR, Ayfi):
if YylR < 90 - 1.685:
return 0
elif 270 - 1.685 > YylR > 90 + 1.685:
return 0
elif YylR > 270 + 1.685:
return 0
else:
OZ65 = float(1) / 16
OZ65 *= float(4) / 100
OZ65 *= (float(0.85) / Ayfi) ** 2
return OZ65 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gajd() -> float:\n ...",
"def LtTT(YKHO):\n return YKHO.initial_charge - float(YKHO.age()) / YKHO.size",
"def NoJH(YKHO):\n return epAf.acos(YKHO.ndot(YKHO.q, YKHO.p, YKHO.r) / epAf.sqrt(YKHO.d2(YKHO.q, YKHO.p) * YKHO.d2(YKHO.r, YKHO.p)))",
"def i2d7(YKHO):\n return YKHO._circumradius * epAf.... | [
"0.6023225",
"0.59215987",
"0.59149384",
"0.59116626",
"0.5899284",
"0.58974665",
"0.5841049",
"0.5800217",
"0.57927656",
"0.57912165",
"0.5773597",
"0.57496214",
"0.5729404",
"0.5713306",
"0.57095265",
"0.57062405",
"0.57062405",
"0.5699819",
"0.5689553",
"0.56882185",
"0.56... | 0.6681443 | 0 |
Convert frame predictions into a sequence. Pad so all batches have same nof notes. | def zDIp(YKHO, IqQl):
pssd, Ts4V, _0Ii = IqQl
anJ5 = []
for I7JW in range(nMvt.int_shape(pssd)[0]):
GbTd = pssd[I7JW]
ZHY6 = Ts4V[I7JW]
YIni = _0Ii[I7JW]
aWuw = H9UY.predict_sequence(frame_predictions=GbTd, onset_predictions=ZHY6, offset_predictions=YIni, velocity_values=None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gc7n(Wc9F):\n Xtuq = [ht2j.squeeze(WKvO[0]) for WKvO in Wc9F]\n Fbjb = [len(KCHu) for KCHu in Xtuq]\n Rsne = U78l.utils.rnn.pad_sequence(Xtuq, batch_first=True, padding_value=0)\n Crrw = [Fg_i[1] for Fg_i in Wc9F]\n wzH_ = Rsne.size(1)\n All1 = ht2j.cat([ogYM.repeat(1, wzH_, 1) for ogYM in Cr... | [
"0.6374871",
"0.62061894",
"0.6086084",
"0.6072106",
"0.60550874",
"0.59909886",
"0.59618795",
"0.59429497",
"0.589994",
"0.5872959",
"0.585091",
"0.5838826",
"0.5817272",
"0.573094",
"0.57160604",
"0.5685369",
"0.56793153",
"0.56636554",
"0.56636554",
"0.5645608",
"0.5640218... | 0.0 | -1 |
Compute loss for model. If both `labels` and `mask` are None, | def KVH6(YKHO, bySB, Crrw=None, ZHfW=None):
begE = ht2j.device('cuda') if bySB.is_cuda else ht2j.device('cpu')
if len(bySB.shape) < 3:
raise ValueError('`features` needs to be [bsz, n_views, ...],at least 3 dimensions are required')
if len(bySB.shape) > 3:
bySB = bySB.view(bySB.shape[0], byS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pBxC(GPtr, vT2H, tSw9, YBkW, FpBn):\n if (tSw9 > 0).sum() > 0:\n iIRD = ht2j.nonzero(tSw9 > 0)[:, 0]\n Khov = tSw9[iIRD.data].long()\n _0VL = ht2j.stack((iIRD, Khov), dim=1)\n Y8eF = vT2H[_0VL[:, 0].data, :, :]\n if GPtr.GLOBAL_MASK:\n aMgO = FpBn[_0VL[:, 0], 0,... | [
"0.7329488",
"0.72307736",
"0.7044707",
"0.70306396",
"0.69531035",
"0.69361484",
"0.678308",
"0.6758537",
"0.67518306",
"0.6744268",
"0.6732295",
"0.67305654",
"0.6721974",
"0.6707832",
"0.67076623",
"0.6645691",
"0.6615347",
"0.6610278",
"0.66081554",
"0.65899426",
"0.65781... | 0.0 | -1 |
Calculates the mean squared error from the expected values and calculated values | def Laj1(BFeB, Se68):
XP5J = BFeB.get(Se68)
n5sN, nvEb = (oyIN.array(1), oyIN.array(XP5J))
hkHB = oyIN.square(oyIN.subtract(n5sN, nvEb)).mean()
return hkHB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8jS(aEqx, Aofo):\n return oyIN.sqrt(oyIN.nanmean(oyIN.square(aEqx - Aofo)))",
"def tIbu(hkxX):\n S8vG = sum(hkxX) / len(hkxX)\n return (S8vG, oyIN.sqrt(sum((hkxX - S8vG) ** 2) / (len(hkxX) - 1)))",
"def SDab(YKHO):\n r8hN = YKHO.y_actual.shape[0]\n hkHB = YKHO.sum_of_squares_of_residuals()\... | [
"0.7234299",
"0.7156884",
"0.7119407",
"0.71112347",
"0.7101236",
"0.704622",
"0.699468",
"0.69596237",
"0.6951224",
"0.6888405",
"0.6874638",
"0.68740284",
"0.6870164",
"0.6866477",
"0.6859531",
"0.68513054",
"0.68420404",
"0.6838113",
"0.68341756",
"0.68086034",
"0.68059427... | 0.0 | -1 |
Apply the Keras utility fuction that correctly rearranges the dimensions of the image | def biH0(YKHO, LNo8):
return mCo1(LNo8, data_format=YKHO.data_format) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ypc3(LNo8, lJr8, uIYW, hzE5):\n LNo8 = Einh(LNo8, lJr8, uIYW)\n return LNo8",
"def avlH(ezWE, ZGE9):\n NrYS = {'efficientnet': (256, 256, 3), 'densenet': (448, 448, 1), 'inception': (256, 256, 1), 'xception': (320, 320, 1)}\n ROpF = NrYS[ZGE9]\n Ep8u = ezWE.shape[0]\n OVDz = (Ep8u,) + ROpF\... | [
"0.6737492",
"0.668278",
"0.64758265",
"0.64416146",
"0.641966",
"0.63981473",
"0.63890946",
"0.63649935",
"0.6341078",
"0.6304375",
"0.6290209",
"0.6285258",
"0.62777454",
"0.6268071",
"0.6239167",
"0.62226003",
"0.62202555",
"0.6211732",
"0.61889935",
"0.6163548",
"0.616308... | 0.0 | -1 |
Return a full name, neatly formatted | def e1yb(c9ua, zp3f):
eHMM = f'{c9ua} {zp3f}'
return eHMM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n print(eHMM.title())\n return eHMM.title()",
"def e1yb(cntZ, XVAW):\n eHMM = cntZ + ' ' + XVAW\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(cntZ, XVAW):\n eHMM = cntZ + ' '... | [
"0.8599715",
"0.8551545",
"0.8520089",
"0.85188204",
"0.85105926",
"0.8501089",
"0.84971976",
"0.84896237",
"0.8473805",
"0.8459291",
"0.8452346",
"0.8452346",
"0.84482056",
"0.8448115",
"0.84473956",
"0.8436305",
"0.8426182",
"0.84101325",
"0.84085304",
"0.84085304",
"0.8394... | 0.0 | -1 |
Finds fields with variance below provided threshold. | def o_Cc(YKHO, nPrm: pd.DataFrame, I8JS: float) -> x1iM[str]:
P1bh = HQEp(threshold=round(I8JS / 100, 2))
P1bh.fit(nPrm)
Zw05 = [Z9rn for Z9rn in nPrm.columns if Z9rn not in nPrm.columns[P1bh.get_support()]]
if len(Zw05) == len(nPrm.columns):
raise fy8z(msg=f'All feature columns show a variance ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b5xS(jQ3Z, gwAu=0.001):\n print(f'number of features before filter {jQ3Z.shape[1]}')\n OEgS = oyIN.var(jQ3Z, axis=0).to_dict()\n OEgS = {G1Hx: Ty9i for G1Hx, Ty9i in OEgS.items() if Ty9i >= gwAu}\n btrg = list(OEgS.keys())\n jQ3Z = jQ3Z[btrg]\n print(f'number of features remaining {jQ3Z.shape... | [
"0.7647654",
"0.6204318",
"0.61826116",
"0.60744643",
"0.6050834",
"0.6038228",
"0.58811253",
"0.58708686",
"0.58429974",
"0.5746872",
"0.5731329",
"0.570799",
"0.56677324",
"0.56653696",
"0.56544507",
"0.5609191",
"0.5588322",
"0.5570984",
"0.5569677",
"0.55505496",
"0.55502... | 0.5733513 | 10 |
Add a new donation to the database and print a thank you email for the donor | def W1Or():
geh0 = 'list'
while geh0 == 'list':
geh0 = input('\nWhat is the full name of the donor to whom you ' + 'would like to send a thank you?\nAlternatively, ' + 'type "list" for a list of current donors ' + 'or "q" to quit back to main menu.\n>>> ')
if geh0 == 'list':
for bGrB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q8aT(Q2Ui, c9ua, zp3f, D3lj):\n k6zn = tB4w('Donation Amount')\n Q2Ui.add_donor(c9ua, zp3f, D3lj, k6zn)\n print(Q2Ui.thank_you_message(c9ua, k6zn))",
"def VtQ7(YKHO, OOWi):\n try:\n with p9bx.transaction():\n k6zn = aH27.create(donor=UVaW.get(UVaW.full_name == YKHO.name), donati... | [
"0.7806268",
"0.7528929",
"0.7475587",
"0.7459221",
"0.7452692",
"0.7449236",
"0.7445668",
"0.74386156",
"0.7432908",
"0.7414249",
"0.738959",
"0.7355786",
"0.7134864",
"0.71039444",
"0.7044604",
"0.7040818",
"0.6985301",
"0.68894345",
"0.68716425",
"0.6855777",
"0.685175",
... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj, aF2y):
global lr
tspZ = aF2y * 0.1 ** (qtWj // 5)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.7992297",
"0.79405",
"0.78894717",
"0.78279567",
"0.7822518",
"0.78168035",
"0.7810657",
"0.78024876",
"0.7791146",
"0.77885497",
"0.7781633",
"0.7764914",
"0.7764064",
"0.77610976",
"0.77491426",
"0.7738275",
"0.7730432",
"0.77241886",
"0.7712018",
"0.770841",
"0.7704384"... | 0.7572809 | 79 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(100.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Generate API documents without the API | def g2zA():
global doc_errors
if vF3Y:
P1dF(EyO9(vF3Y))
U34r('{cnt} errors.'.format(cnt=len(vF3Y))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UQYz(YKHO):\n YKHO.meta_api.doc = ''\n return",
"def wBpm(YKHO, OTY2):\n if not Hy7s.path.exists(OTY2):\n Hy7s.mkdir(OTY2)\n KZ52 = YKHO.discover_modules()\n YKHO.write_modules_api(KZ52, OTY2)",
"def wBpm(YKHO, OTY2):\n if not Hy7s.path.exists(OTY2):\n Hy7s.mkdir(OTY2)\n ... | [
"0.73268276",
"0.70784956",
"0.7077418",
"0.7077418",
"0.7077418",
"0.70238554",
"0.70065933",
"0.7004095",
"0.6928577",
"0.6907435",
"0.6898852",
"0.6896307",
"0.6878005",
"0.6785898",
"0.675927",
"0.6711504",
"0.67049676",
"0.666892",
"0.66205937",
"0.6584481",
"0.65726787"... | 0.73830193 | 0 |
Called by superclass constructor. Checks if the given comment instance is actually a comment, and raises an error if not. | def IMcP(YKHO, _jJ2: Comment):
if not isinstance(_jJ2, jY1u):
raise TypeError('Comment must be an instance of the praw comment object') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, aM_I):\n YKHO.comment = aM_I",
"def EuDW(YKHO):\n YKHO.assertTrue(isinstance(YKHO.new_comment, jY1u))",
"def aM_I(YKHO, aM_I):\n try:\n YKHO._comment = aM_I\n except Exception as e:\n raise tTpl",
"def aM_I(YKHO, aM_I):\n try:\n YKHO._comment = aM_I\n exc... | [
"0.72639674",
"0.69879645",
"0.6840714",
"0.673266",
"0.673266",
"0.66960114",
"0.66172093",
"0.65650994",
"0.65641576",
"0.6563497",
"0.6411356",
"0.63013995",
"0.6277222",
"0.62461746",
"0.61193854",
"0.60712904",
"0.6069329",
"0.60381204",
"0.60285795",
"0.60285795",
"0.60... | 0.6394137 | 11 |
Add timed reminder. Add a reminder that will play after `time` has elapsed. If the user has left the channel, the reminder will play as soon as they return. | def BVvk(OaeV, aC0m, WbTE, Ol8d):
wzkt = qcWV.now()
a1PO = LrXp(WbTE)
if aC0m.lower() == 'me' and aC0m not in OaeV.client.channels[OaeV.target]['users']:
aC0m = OaeV.origin
if a1PO is None:
OaeV.respond(OaeV._("Sorry, I don't understand that time."))
return
JRYC = fCoM(second... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def reminder(YKHO, OaeV, ITS7: int, *, Ol8d: str):\n if len(Ol8d) < 1:\n Ol8d = 'reminder'\n if ITS7 < 1:\n ITS7 = 1\n await YKHO.bot.say(f\"okay, i'll remind you in {ITS7} minute{'s' * (ITS7 > 1)}\")\n await V7ok.sleep(ITS7 * 60)\n await YKHO.bot.say(f'Hey {OaeV.message.author.m... | [
"0.7272246",
"0.72428054",
"0.72243154",
"0.71518075",
"0.64343053",
"0.62577754",
"0.62105846",
"0.6207409",
"0.6200725",
"0.6168778",
"0.61025757",
"0.6005396",
"0.5961603",
"0.5828897",
"0.582807",
"0.5786089",
"0.576845",
"0.5722019",
"0.5721673",
"0.5659333",
"0.5658934"... | 0.68760777 | 4 |
Sets the created_on of this AttackImplants. | def i0wi(YKHO, i0wi):
if YKHO.local_vars_configuration.client_side_validation and i0wi is None:
raise ValueError('Invalid value for `created_on`, must not be `None`')
YKHO._created_on = i0wi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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_on = i0wi",
"def i0wi(YKHO, i0wi):\n YKHO._created_on = i0wi",
"def i0wi(YKHO, i0wi):\n YKHO._cr... | [
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.7864762",
"0.6688869",
"... | 0.702912 | 20 |
Sets the last_checkin of this AttackImplants. | def io2g(YKHO, io2g):
if YKHO.local_vars_configuration.client_side_validation and io2g is None:
raise ValueError('Invalid value for `last_checkin`, must not be `None`')
YKHO._last_checkin = io2g | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b3kN(YKHO, b3kN):\n YKHO._last_check_in = b3kN",
"def K8CI(YKHO, K8CI):\n YKHO._check_in_interval = K8CI",
"def jdsR(YKHO, jdsR):\n YKHO._log_in_time = jdsR",
"def jdsR(YKHO, jdsR):\n YKHO._log_in_time = jdsR",
"def Ftli(YKHO, Ftli):\n YKHO._last_checked = Ftli",
"def CLYK(YKHO, CLYK):... | [
"0.8001033",
"0.5534424",
"0.5462962",
"0.5462962",
"0.5435724",
"0.5387035",
"0.5291446",
"0.5277809",
"0.51960844",
"0.51886034",
"0.51391906",
"0.5009777",
"0.5008536",
"0.50061667",
"0.49902484",
"0.49836677",
"0.49664655",
"0.49663335",
"0.49395803",
"0.49269",
"0.489465... | 0.7303124 | 1 |
Sets the method of this AttackImplants. | def NKcE(YKHO, NKcE):
if YKHO.local_vars_configuration.client_side_validation and NKcE is None:
raise ValueError('Invalid value for `method`, must not be `None`')
YKHO._method = NKcE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UPfL(YKHO, NKcE):\n if not isinstance(NKcE, str):\n raise TypeError('Unexpected type {}'.format(type(NKcE)))\n YKHO._method = NKcE",
"def NKcE(YKHO, NKcE):\n YKHO._method = NKcE",
"def dXlo(YKHO):\n YKHO._method = YKHO.__class__.METHOD",
"def NKcE(YKHO, NKcE: str):\n YKHO._method = ... | [
"0.69727063",
"0.6857813",
"0.6819916",
"0.67853934",
"0.675231",
"0.675231",
"0.675231",
"0.675231",
"0.6481679",
"0.64084756",
"0.6406559",
"0.63745624",
"0.6295591",
"0.6295591",
"0.62842196",
"0.6159361",
"0.6126375",
"0.61213696",
"0.60879433",
"0.60127944",
"0.60127944"... | 0.5740083 | 30 |
Sets the uid of this AttackImplants. | def PObu(YKHO, PObu):
if YKHO.local_vars_configuration.client_side_validation and PObu is None:
raise ValueError('Invalid value for `uid`, must not be `None`')
YKHO._uid = PObu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PObu(YKHO, PObu: int):\n YKHO._uid = PObu",
"def PObu(YKHO, PObu):\n YKHO._uid = PObu",
"def PObu(YKHO, PObu):\n YKHO._uid = PObu",
"def PObu(YKHO, PObu):\n YKHO._uid = PObu",
"def PObu(YKHO, PObu):\n YKHO._uid = PObu",
"def PObu(YKHO, PObu):\n YKHO._uid = PObu",
"def PObu(YKHO, P... | [
"0.7445258",
"0.73493564",
"0.73493564",
"0.73493564",
"0.73493564",
"0.73493564",
"0.73493564",
"0.7282559",
"0.7282559",
"0.71260124",
"0.7016698",
"0.6887426",
"0.6806199",
"0.6777197",
"0.6720447",
"0.66840833",
"0.66108644",
"0.66053814",
"0.66053814",
"0.6328822",
"0.63... | 0.6823028 | 12 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, TKbA):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Gets a portfolio name from a given file name. | def Ybhk(USCV: Text) -> HVIF.Portfolio:
JhJs = Dywt.get_file_binary_content(USCV)
return t2lc.loads(JhJs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLyC(YKHO, gIsw):\n return YKHO.__dot_split(gIsw)[0]",
"def Ce7c(uRP3):\n j9fW = uRP3.split('/Users/lujan/Desktop/thesis_work/cloned_repos/')[1]\n j9fW = j9fW.split('/')[0]\n return j9fW",
"def IThz(gIsw):\n gIsw = Hy7s.path.basename(gIsw)\n oeNL = gIsw.rindex('.')\n return gIsw[:oeNL]... | [
"0.70604354",
"0.7022882",
"0.67902005",
"0.6762133",
"0.6696994",
"0.6691269",
"0.66315234",
"0.662043",
"0.65987235",
"0.65973353",
"0.6573204",
"0.6550952",
"0.6478617",
"0.6462086",
"0.644262",
"0.64366287",
"0.64273375",
"0.6425798",
"0.6418872",
"0.63938534",
"0.6390179... | 0.61540765 | 45 |
Test with the same sentences. Common_words array should contain all the words and uncommon_words array should be empty | def dLjY(YKHO):
BfLy, gqMS = YKHO.run_function_and_sort_results(YKHO.sentence1, YKHO.sentence1)
YKHO.assertEqual(BfLy, YKHO.expected_same_sentence)
YKHO.assertEqual(len(gqMS), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qeXR(YKHO):\n BfLy, gqMS = YKHO.run_function_and_sort_results(YKHO.onewordsentence1, YKHO.onewordsentence2)\n YKHO.assertEqual(len(BfLy), 0)\n YKHO.assertEquals(gqMS, ['bye', 'hi'])",
"def vuYh():\n pass",
"def Sk5t(YKHO):\n BfLy, gqMS = YKHO.run_function_and_sort_results(YKHO.sentence1, '')... | [
"0.8188898",
"0.72907424",
"0.724144",
"0.7171391",
"0.70951897",
"0.70455456",
"0.68511784",
"0.6769343",
"0.6743179",
"0.6698373",
"0.66983473",
"0.66743433",
"0.66187376",
"0.658433",
"0.65814465",
"0.65733117",
"0.6556512",
"0.6551775",
"0.6543326",
"0.65015113",
"0.64986... | 0.7836143 | 1 |
Return rolling mean of given values, using specified window size. | def VBBt(hkxX, KnxT):
return hkxX.rolling(window=KnxT, center=False).mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YD_6(YKHO, yMhW):\n upF9 = YKHO.series.rolling(window=yMhW)\n return upF9.mean()",
"def JtYS(EcVT, yMhW):\n EcVT = rLdf.Series(EcVT)\n try:\n a9Cy = oyIN.array(EcVT.rolling(window=yMhW, min_periods=1).mean(center=True))\n except TypeError:\n a9Cy = oyIN.array(EcVT.rolling(window=... | [
"0.84725136",
"0.8258445",
"0.809987",
"0.80484027",
"0.78920794",
"0.7848945",
"0.7806625",
"0.77743846",
"0.7752218",
"0.77455527",
"0.7639777",
"0.755123",
"0.7477969",
"0.74681616",
"0.74056464",
"0.7397514",
"0.73623407",
"0.7360437",
"0.7360437",
"0.7360437",
"0.7360437... | 0.769436 | 10 |
Return rolling standard deviation of given values, using specified window size. | def xJ7n(hkxX, KnxT):
return hkxX.rolling(window=KnxT, center=False).std() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RIHi(WKvO: np.ndarray, yMhW: int=21) -> oyIN.ndarray:\n if not isinstance(WKvO, oyIN.ndarray):\n raise wRZk('Incorrect type of x for std_rolling')\n if not isinstance(yMhW, int):\n raise wRZk('Incorrect type of prev for std_rolling')\n M1Jx = [None for bGrB in range(yMhW)]\n for YRbF ... | [
"0.78824687",
"0.77146333",
"0.75339997",
"0.75323254",
"0.75129795",
"0.750085",
"0.74525833",
"0.7299626",
"0.7086392",
"0.70096105",
"0.6840487",
"0.6705796",
"0.66634333",
"0.6571878",
"0.65296197",
"0.65035",
"0.6487437",
"0.64444757",
"0.6336269",
"0.62772816",
"0.62179... | 0.7252443 | 8 |
Simple Moving Average for given stocks | def dBGK(jQ3Z, exwG):
return VBBt(jQ3Z, exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C9SG(i4kL):\n oewt = i4kL.StockName.unique()\n for LpID in oewt:\n _lYe = i4kL.loc[i4kL.StockName == LpID]\n _lYe.reset_index(inplace=True)\n nPrm = _lYe[['Date', 'Close']]\n for YRbF in (5, 10, 15):\n dBGK = nPrm.set_index('Date').rolling(window=YRbF).mean()\n ... | [
"0.7677281",
"0.74343264",
"0.7181842",
"0.7145854",
"0.70946777",
"0.70795554",
"0.70280254",
"0.7011734",
"0.70097995",
"0.6994545",
"0.699238",
"0.69704187",
"0.6948167",
"0.6946659",
"0.6936495",
"0.69095695",
"0.68603057",
"0.68534887",
"0.6845972",
"0.6823302",
"0.68185... | 0.6585986 | 46 |
Convolve every column vectors in basis with vector vec, concatenate all results and return. | def P79G(he6J, SxVy):
zNig = oyIN.shape(SxVy)
u54L = oyIN.shape(he6J)
Ylbp = []
for Ty9i in SxVy:
Ylbp = Ylbp + list(oyIN.convolve(he6J, Ty9i, 'valid'))
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I32M(YKHO, he6J):\n assert len(he6J.size()) == 1 and he6J.size()[0] == YKHO.d\n for Mkmy in range(YKHO.r):\n gSR0 = YKHO.buckets[Mkmy, :].to(YKHO.device)\n jryd = YKHO.signs[Mkmy, :].to(YKHO.device)\n for GXq3 in range(YKHO.numBlocks):\n yKcO = GXq3 * gSR0.size()[0]\n ... | [
"0.60220736",
"0.5892723",
"0.5706673",
"0.55620617",
"0.55565023",
"0.5545551",
"0.5496135",
"0.5449311",
"0.54215974",
"0.5405916",
"0.5405665",
"0.53978026",
"0.53754425",
"0.5355623",
"0.5340259",
"0.5317509",
"0.5253567",
"0.52168095",
"0.52077067",
"0.52011144",
"0.5186... | 0.7622427 | 0 |
Given delta and phi returns a vector | def rfNt(RA_F, rVnq):
WKvO = oyIN.cos(rVnq)
LVAh = oyIN.sin(rVnq)
epBp = oyIN.sin(RA_F)
iArr = oyIN.array([WKvO, LVAh, epBp])
iArr = iArr / oyIN.linalg.norm(iArr)
return iArr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def br2l(EBgd, HpuQ):\n return oyIN.arccos(oyIN.cos(abs(EBgd - HpuQ)))",
"def rVnq(YKHO, *qIxc):\n return gQS9.coord_phi(YKHO, *qIxc)",
"def BNJz(jzdc, Fg_i):\n return oyIN.abs(YhSR(jzdc - Fg_i))",
"def T0z6(q7In, rVnq):\n exwG = oyIN.array([oyIN.sin(q7In) * oyIN.cos(rVnq), oyIN.sin(q7In) * oyIN.... | [
"0.7305833",
"0.7209014",
"0.7116286",
"0.71012986",
"0.6983729",
"0.6933261",
"0.6898939",
"0.68828696",
"0.6878492",
"0.68459153",
"0.68028766",
"0.67251563",
"0.6658444",
"0.66454417",
"0.66362655",
"0.66147715",
"0.6602936",
"0.65740204",
"0.6573763",
"0.6533325",
"0.6503... | 0.74335355 | 0 |
Cross operator can be used to obtain the cross product as a matrixvector product a x b = [a_x]_ij [b]_j | def kMnb(P6bq):
r8hN = oyIN.zeros((3, 3))
r8hN[0][1] = -P6bq[2]
r8hN[0][2] = P6bq[1]
r8hN[1][0] = P6bq[2]
r8hN[1][2] = -P6bq[0]
r8hN[2][0] = -P6bq[1]
r8hN[2][1] = P6bq[0]
return r8hN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dcUW(WKvO, LVAh):\n assert WKvO.shape[0] == 3\n assert LVAh.shape[0] == 3\n return oyIN.expand_dims(oyIN.cross(WKvO[:, 0], LVAh[:, 0]), axis=-1)",
"def WHx2(jzdc, Fg_i):\n Ylbp = oyIN.empty(3)\n Ylbp[0] = jzdc[1] * Fg_i[2] - Fg_i[1] * jzdc[2]\n Ylbp[1] = jzdc[2] * Fg_i[0] - Fg_i[2] * jzdc[0... | [
"0.8008645",
"0.78057045",
"0.77737117",
"0.7761125",
"0.7754904",
"0.7737985",
"0.7707255",
"0.7647358",
"0.7645448",
"0.76127887",
"0.75822294",
"0.75559086",
"0.7539873",
"0.75352955",
"0.7531909",
"0.74806905",
"0.73910964",
"0.7390167",
"0.7361453",
"0.7343225",
"0.72871... | 0.69234645 | 53 |
Make flattening of raw data using windows (time chunks) of given size | def tSri(nPrm, bW5R, O_cv):
O_cv = int(bW5R * O_cv)
Lv1a = len(nPrm) // O_cv
WKza = oyIN.empty((Lv1a, O_cv))
for o5f3 in range(Lv1a):
fsWt = o5f3 * O_cv
_KoX = (o5f3 + 1) * O_cv
LVAh = nPrm[fsWt:_KoX]
RtFO, _6KK, bGrB, bGrB, bGrB = nZ2P([YRbF for YRbF in range(len(LVAh))]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UWUT(nPrm, FxOY):\n rdlD = int(nPrm.shape[0] / FxOY[0]) * FxOY[0]\n fvDH = int(nPrm.shape[1] / FxOY[1]) * FxOY[1]\n SuPp = []\n for YRbF in range(FxOY[0]):\n for r845 in range(FxOY[1]):\n SuPp.append(nPrm[YRbF:rdlD:FxOY[0], r845:fvDH:FxOY[1]])\n return SuPp",
"def jYsM(yGGd, ... | [
"0.6578376",
"0.6544331",
"0.64730495",
"0.6375838",
"0.63658196",
"0.62989897",
"0.62699866",
"0.6263137",
"0.6229236",
"0.6210033",
"0.6197263",
"0.6190517",
"0.6190517",
"0.6183195",
"0.61239094",
"0.60889935",
"0.6074441",
"0.60713017",
"0.6069725",
"0.6058561",
"0.604850... | 0.6851135 | 0 |
Create a bias variable with appropriate initialization | def Y7ph(mWFP, ROpF):
RqgG = ZylS.constant(0.0, shape=ROpF, dtype=ZylS.float32)
return ZylS.get_variable('b_' + mWFP, dtype=ZylS.float32, initializer=RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7ph(ROpF, ECSy=0.025):\n RqgG = ZylS.constant(ECSy, shape=ROpF)\n return ZylS.Variable(RqgG)",
"def n1Xm(ROpF, MuED=ZylS.zeros_initializer()):\n return ZylS.get_variable(name='b', shape=ROpF, initializer=MuED)",
"def KR18(YKHO, ROpF):\n return ZylS.Variable(ZylS.constant(0.0, shape=ROpF, dtype... | [
"0.7972861",
"0.7894519",
"0.78661984",
"0.782629",
"0.7718307",
"0.7701945",
"0.7676896",
"0.7632911",
"0.7626534",
"0.7602123",
"0.75994956",
"0.7589722",
"0.75851166",
"0.75851166",
"0.75720125",
"0.7569418",
"0.7569418",
"0.7569418",
"0.7569418",
"0.7569418",
"0.7569418",... | 0.73233044 | 68 |
Infer the download target of the current host system. | def SLTo() -> str:
if HwRy.platform == 'win32':
return 'windows'
if HwRy.platform == 'darwin':
return 'macos'
n5J2 = (GkAb(XP5J) for XP5J in ['/etc/os-release', '/usr/lib/os-release'])
Ys3F = (XP5J for XP5J in n5J2 if XP5J.is_file())
EmMj = next(iter(Ys3F), None)
if EmMj:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BK83(YKHO):\n raise NotImplementedError(\"get_target not implemented in {} for '{}'You may need to install a python module for this type of url\".format(YKHO.__class__.__name__, str(YKHO)))",
"def BK83(YKHO):\n return _zut(YKHO.ftp) if YKHO.ftp else W6Ho(YKHO.dir)",
"def mFyf(YKHO) -> str:\n retur... | [
"0.6384908",
"0.626699",
"0.61049056",
"0.59352523",
"0.593098",
"0.5919288",
"0.58267826",
"0.5775655",
"0.5770686",
"0.57019067",
"0.56326014",
"0.5627997",
"0.5606055",
"0.5606055",
"0.5606055",
"0.5606055",
"0.5606055",
"0.5606055",
"0.5606055",
"0.5606055",
"0.5606055",
... | 0.6191282 | 2 |
Return a humanreadable string representation of the instance. | def wHJl(YKHO):
KCHu = '['
z49m = False
with YKHO._cv:
for ZfUD in YKHO._queue:
if z49m:
KCHu = KCHu + f', {ZfUD[2]} @ {ZfUD[0]}'
else:
z49m = True
KCHu = KCHu + f'{ZfUD[2]} @ {ZfUD[0]}'
KCHu = KCHu + ']'
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.human_format()",
"def zAg0(YKHO):\n return '<{} instance>'.format(type(YKHO).__name__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n re... | [
"0.8103568",
"0.8052727",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
"0.78863215",
... | 0.0 | -1 |