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 |
|---|---|---|---|---|---|---|
Check whether the value self is less than other | def JWbp(YKHO, Elif):
try:
return YKHO.val < Elif.val
except:
return YKHO.val < Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zcf_(YKHO, Elif):\n return 1 - Qvn0.lt(YKHO, Elif)",
"def TPjt(YKHO, Elif):\n return 1 - Qvn0.lt(Elif, YKHO)",
"def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif",
"def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif",
"def JWbp(YKHO, Elif):\n return YKHO <= Elif and ... | [
"0.8055347",
"0.8051002",
"0.7975857",
"0.7975857",
"0.7957924",
"0.79491305",
"0.79417366",
"0.7938579",
"0.79182094",
"0.787731",
"0.7864425",
"0.78534454",
"0.78509116",
"0.78509116",
"0.7847569",
"0.78474003",
"0.7845229",
"0.7834082",
"0.782592",
"0.7824588",
"0.7804401"... | 0.7642524 | 47 |
Check whether the value self is less than or equal to other | def TPjt(YKHO, Elif):
return YKHO.__lt__(Elif) or YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zcf_(YKHO: _TT, Elif: _TT) -> bool:\n if type(YKHO) != type(Elif):\n raise TypeError('Types do not match')\n return YKHO.value >= Elif.value",
"def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif",
"def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif",
"def Zcf_(YKHO,... | [
"0.82916117",
"0.82125723",
"0.82125723",
"0.8208959",
"0.818303",
"0.81701463",
"0.8166372",
"0.8166372",
"0.8157619",
"0.81554556",
"0.815016",
"0.8149271",
"0.81261086",
"0.8113528",
"0.8112823",
"0.810707",
"0.810707",
"0.81057215",
"0.806862",
"0.80678856",
"0.8055787",
... | 0.7793942 | 47 |
Check whether the value self is greater than other | def jmxi(YKHO, Elif):
try:
return YKHO.val > Elif.val
except:
return YKHO.val > Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n return YKHO >= Elif and YKHO != Elif",
"def jmxi(YKHO, Elif):\n return YKHO >= Elif and YKHO != Elif",
"def jmxi(YKHO, Elif):\n return not YKHO <= Elif",
"def jmxi(YKHO, Elif):\n return YKHO >= Elif and (not YKHO <= Elif)",
"def jmxi(YKHO, Elif):\n if isinstance(Elif,... | [
"0.850166",
"0.850166",
"0.8383213",
"0.83828586",
"0.83733726",
"0.8353885",
"0.83260596",
"0.82977545",
"0.8290281",
"0.82490367",
"0.82330704",
"0.8186457",
"0.81820863",
"0.8179524",
"0.81676936",
"0.8158279",
"0.8144876",
"0.8107643",
"0.8071686",
"0.8068013",
"0.8057014... | 0.843813 | 2 |
Check whether the value self is larger than or equal to other | def Zcf_(YKHO, Elif):
return YKHO.__gt__(Elif) or YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n return not YKHO <= Elif",
"def jmxi(YKHO, Elif):\n return YKHO >= Elif and YKHO != Elif",
"def jmxi(YKHO, Elif):\n return YKHO >= Elif and YKHO != Elif",
"def jmxi(YKHO, Elif):\n return YKHO.__ge__(Elif) and YKHO.__ne__(Elif)",
"def jmxi(YKHO, Elif):\n return not YKHO... | [
"0.8334512",
"0.8323968",
"0.8323968",
"0.8275414",
"0.82664084",
"0.8208709",
"0.8196882",
"0.8178027",
"0.8173796",
"0.81498563",
"0.81466806",
"0.81439584",
"0.8106487",
"0.80786973",
"0.8078147",
"0.80442566",
"0.80442566",
"0.8023268",
"0.7994361",
"0.7992754",
"0.798381... | 0.79692084 | 22 |
Return the exponential of self. | def kLQb(YKHO):
wEf2 = oyIN.exp(YKHO.val)
if len(YKHO.der.shape):
CcEu = oyIN.exp(YKHO.val)
CcEu = oyIN.expand_dims(CcEu, 1) if len(YKHO.der.shape) > len(CcEu.shape) else CcEu
vf2_ = oyIN.multiply(CcEu, YKHO.der)
else:
vf2_ = None
return RELP(wEf2, vf2_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VBX1(BWXx):\n return epAf.exp(BWXx)",
"def VBX1(YKHO) -> oyIN.ndarray:\n if YKHO.is_real():\n return oyIN.array([1.0, 0.0, 0.0, 0.0])\n a1PO = oyIN.linalg.norm(YKHO.v)\n P6bq = YKHO.v / a1PO\n _whA = oyIN.array([oyIN.cos(a1PO), *P6bq * oyIN.sin(a1PO)])\n if YKHO.is_pure():\n r... | [
"0.80905885",
"0.80318856",
"0.7743788",
"0.75203687",
"0.7484333",
"0.74115163",
"0.72976995",
"0.72534764",
"0.72098315",
"0.71438736",
"0.7116615",
"0.70764434",
"0.706863",
"0.6993814",
"0.6909972",
"0.69095373",
"0.6887894",
"0.67494726",
"0.6740504",
"0.67073464",
"0.66... | 0.7773673 | 2 |
delete the character to the left of the cursor | def DLu9(YKHO):
Q6kx = YKHO.start
while Q6kx is not None:
if Q6kx == YKHO.cursor:
zFiD = Q6kx.element
Q6kx.element = zFiD[0:YKHO.delta - 1] + zFiD[YKHO.delta:]
YKHO.delta = YKHO.delta - 1
break
Q6kx = Q6kx.next
YKHO.get_text() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FgKN():\n AU8u().delete_right_char()",
"def OjlP(bTKY):\n bTKY.delete_symbol()",
"def PTpj(YKHO):\n del YKHO.characters[YKHO.cursor.position]",
"def APs5(l5Ny):\n \"\"\" if the user try to delete an empty line it will not allowed him:)\"\"\"\n if len(l5Ny.getText()) < 1:\n l5Ny.setT... | [
"0.7970712",
"0.7240335",
"0.7229049",
"0.71070904",
"0.695129",
"0.691229",
"0.6835891",
"0.67571753",
"0.67544967",
"0.6754191",
"0.6643641",
"0.6638436",
"0.6558255",
"0.64575654",
"0.64427185",
"0.64377517",
"0.6416933",
"0.63925153",
"0.6387937",
"0.6338906",
"0.62445724... | 0.6320641 | 20 |
Get a list of nodes from the XML data. | def iYjE(YKHO, w7zc, _AKB=None):
if YKHO.data is None:
return None
if _AKB is None:
return YKHO.data.xpath(w7zc)
else:
return _AKB.xpath(w7zc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTxU(YKHO):\n return []",
"def Ziit(YKHO):\n return (Q6kx.content for Q6kx in YKHO.traverse())",
"def Ziit(YKHO) -> Ykgu:\n return YKHO._nodes",
"def Ziit(YKHO, nPrm=False):\n return YKHO._G.nodes(data=nPrm)",
"def AyQV(YKHO):\n return [Q6kx for Q6kx in YKHO._nodes.itervalues()]",
"def... | [
"0.7015951",
"0.7012096",
"0.6912623",
"0.6859364",
"0.68582904",
"0.68582904",
"0.6843832",
"0.6794125",
"0.67779016",
"0.6721625",
"0.67191553",
"0.67184025",
"0.6651142",
"0.6647751",
"0.6625332",
"0.6623198",
"0.66007304",
"0.65728265",
"0.6546428",
"0.6542172",
"0.649753... | 0.0 | -1 |
Get the subject configuration item by ID. | def mUtM(YKHO, mhCr):
return YKHO.get_node('//Subject[@id="%s"]' % mhCr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ggdo(YKHO, HjSO: str) -> any:\n pass",
"def NMoC(YKHO, id):\n return KrCY.get(id)",
"def kTCt(YKHO, H5ew):\n return YKHO.config[H5ew] if H5ew in YKHO.config.keys() else None",
"def Iov8(YKHO, id):\n pmON = 'item/' + id\n return YKHO.sendRestRequest('GET', pmON)",
"def b0h_(QpfX, HjSO, cu... | [
"0.64427334",
"0.5887513",
"0.58327484",
"0.57978326",
"0.5784069",
"0.57466805",
"0.5726707",
"0.5711708",
"0.5668366",
"0.5626656",
"0.56199616",
"0.56051797",
"0.5555822",
"0.5547103",
"0.55410844",
"0.5539455",
"0.55092275",
"0.54685116",
"0.5464688",
"0.54578066",
"0.545... | 0.6410556 | 1 |
Get the score panel configuration node. | def r2w4(YKHO, mhCr):
return YKHO.get_node('//ScorePanels/ScorePanel[@id="%s"]' % mhCr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gf6P(YKHO) -> 'outputs.NodeConfigResponse':\n return qe4Y.get(YKHO, 'node_config')",
"def Gf6P(YKHO) -> qe4Y.Output['outputs.NodeConfigResponse']:\n return qe4Y.get(YKHO, 'node_config')",
"def LVw3():\n return None",
"def GPtr(YKHO) -> h8nf[qe4Y.Input['NodeConfigArgs']]:\n return qe4Y.get(YKH... | [
"0.6304897",
"0.6246214",
"0.5964019",
"0.5856851",
"0.58023477",
"0.5731579",
"0.57037073",
"0.57028264",
"0.5684316",
"0.56469375",
"0.5612736",
"0.56004655",
"0.5577127",
"0.5554848",
"0.55461204",
"0.5518103",
"0.55123484",
"0.5494142",
"0.54831827",
"0.54753786",
"0.5411... | 0.63832724 | 0 |
Get the score function configuration node. | def I32s(YKHO, mhCr):
return YKHO.get_node('//ScoreFunctions/ScoreFunction[@id="%s"]' % mhCr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gf6P(YKHO) -> qe4Y.Output['outputs.NodeConfigResponse']:\n return qe4Y.get(YKHO, 'node_config')",
"def Gf6P(YKHO) -> 'outputs.NodeConfigResponse':\n return qe4Y.get(YKHO, 'node_config')",
"def Gf6P(YKHO) -> qe4Y.Input['NodeConfigArgs']:\n return qe4Y.get(YKHO, 'node_config')",
"def GPtr(YKHO) ->... | [
"0.63718575",
"0.6308112",
"0.61304075",
"0.61296046",
"0.58007616",
"0.5749604",
"0.56206375",
"0.56024706",
"0.5595929",
"0.5578642",
"0.55448943",
"0.5543336",
"0.55408746",
"0.5515674",
"0.5506461",
"0.54993033",
"0.5492998",
"0.5463755",
"0.54461634",
"0.54443985",
"0.54... | 0.0 | -1 |
Get the map server configuration node. | def SKC1(YKHO):
return YKHO.get_node('//MapServer') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hrlR(YKHO) -> h8nf[qe4Y.Input['ConfigServerSettingsArgs']]:\n return qe4Y.get(YKHO, 'config_server')",
"def Gf6P(YKHO) -> 'outputs.NodeConfigResponse':\n return qe4Y.get(YKHO, 'node_config')",
"def Gf6P(YKHO) -> qe4Y.Output['outputs.NodeConfigResponse']:\n return qe4Y.get(YKHO, 'node_config')",
... | [
"0.729202",
"0.7186677",
"0.7145203",
"0.68700224",
"0.6852158",
"0.6690987",
"0.6620924",
"0.65789413",
"0.65578187",
"0.655448",
"0.6519716",
"0.64807874",
"0.64468384",
"0.62988555",
"0.6187097",
"0.61847913",
"0.6175286",
"0.61583996",
"0.6147118",
"0.61404",
"0.6107913",... | 0.80254036 | 0 |
A class method for parsing action bits, returning all enabled actions. | def S22F(wVSO: int) -> x1iM['LoggingActions']:
return [XeOP for XeOP in zH1z if XeOP.value & wVSO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xASv(YKHO) -> list:\n if YKHO.debug:\n print(f'AState.actions()')\n if not YKHO._examined:\n if YKHO.debug:\n print(f'\\tExamining...')\n YKHO._actions = YKHO._generate_actions()\n YKHO._examined = True\n return YKHO._actions",
"def Q6sW(YKHO):\n return []",... | [
"0.7033281",
"0.70253116",
"0.70028716",
"0.70028716",
"0.70028716",
"0.68904287",
"0.68365353",
"0.68182606",
"0.6795314",
"0.67753595",
"0.67426085",
"0.67391264",
"0.66866684",
"0.6621637",
"0.661713",
"0.6593213",
"0.65725034",
"0.6533465",
"0.65257895",
"0.647652",
"0.64... | 0.68279076 | 7 |
Generates a quaternion described by a direction vector and "upwards" orientation vector. | def cuI3(XSoh, vP2v) -> AzJI[float, float, float, float]:
XSoh = XSoh / h6oM.vnorm(XSoh)
vP2v = vP2v / h6oM.vnorm(vP2v)
WKvO = h6oM.vcrss(vP2v, XSoh)
WKvO = WKvO / h6oM.vnorm(WKvO)
LVAh = h6oM.vcrss(XSoh, WKvO)
LVAh = LVAh / h6oM.vnorm(LVAh)
epBp = XSoh
Mkmy = PZyS(1.0 + WKvO[0] + LVAh[1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aodV(rKSe, H2HG, xTkQ):\n shtX = bYdR()\n slpS = ZylS.transformations.quaternion_from_euler(rKSe, H2HG, xTkQ)\n shtX.orientation.x = slpS[0]\n shtX.orientation.y = slpS[1]\n shtX.orientation.z = slpS[2]\n shtX.orientation.w = slpS[3]\n return shtX.orientation",
"def ViI5(hbUd, cJsZ):\n ... | [
"0.61915535",
"0.6190099",
"0.6179429",
"0.6140949",
"0.61003274",
"0.6035656",
"0.603231",
"0.60136503",
"0.60045856",
"0.593415",
"0.59243786",
"0.59128946",
"0.5902041",
"0.5898314",
"0.5885532",
"0.5883003",
"0.58659077",
"0.5852006",
"0.5811246",
"0.5791843",
"0.57909685... | 0.75455904 | 0 |
Calculate the average of a list of ints. | def qqgr(list):
return sum(list) / len(list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ewCO(mSrU):\n return sum(mSrU) / len(mSrU)",
"def JfyU(yv6U):\n i9Rn = 0\n for YRbF in yv6U:\n i9Rn = i9Rn + YRbF\n qqgr = i9Rn / len(yv6U)\n return qqgr",
"def S8vG(aO51):\n j79P = None\n FhbU = 0\n if len(aO51) != 0:\n for mLGw in aO51:\n FhbU = FhbU + mLG... | [
"0.7987588",
"0.7841614",
"0.7765132",
"0.7756065",
"0.7707706",
"0.76810974",
"0.76375526",
"0.76363796",
"0.76339686",
"0.7611916",
"0.7609526",
"0.7594919",
"0.75106096",
"0.74903756",
"0.74733925",
"0.7463148",
"0.7437408",
"0.74343395",
"0.7425022",
"0.7414942",
"0.73833... | 0.78449416 | 1 |
Set up the main window | def Phkg(YKHO, mBtZ):
super(pj9R, YKHO).finish_initializing(mBtZ)
YKHO._create_context_menu()
YKHO.AboutDialog = xSLT
YKHO.PreferencesDialog = P2Et
YKHO.maximize()
YKHO.browsewindow = YKHO.builder.get_object('browsewindow')
YKHO.webview = NUFe.WebView()
YKHO.browsewindow.add(YKHO.webview... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zvL6(YKHO):\n YKHO.main_menu_window = hSph.MainMenuFrame(YKHO.uiCoordinator)\n YKHO.menu_window = YKHO.main_menu_window._mf\n YKHO.score_window = YKHO.main_menu_window._hf\n YKHO.instructions_window = YKHO.main_menu_window._if\n YKHO.menu_window.playButton.focus_set()",
"def b8V_(YKHO):\n Y... | [
"0.80549276",
"0.77803993",
"0.76101744",
"0.76079625",
"0.76058704",
"0.75583404",
"0.75058156",
"0.7500768",
"0.7449036",
"0.74340516",
"0.7430231",
"0.73911846",
"0.73764753",
"0.730698",
"0.7291845",
"0.7287895",
"0.72417337",
"0.72298133",
"0.72146386",
"0.7190348",
"0.7... | 0.0 | -1 |
Removes "$" sign from a column & converts it to float. This function accepts a dataframe and columns with $ sign to be converted to float. | def KCtP(jQ3Z, fvDH):
jQ3Z[fvDH] = jQ3Z[fvDH].apply(lambda KCHu: KCHu.strip('$')).astype(float)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gBe3(jQ3Z, *WfCS):\n for fvDH in WfCS:\n jQ3Z[fvDH] = jQ3Z[fvDH].str.replace(',', '')\n jQ3Z[fvDH] = jQ3Z[fvDH].str.replace(' ', '')\n jQ3Z[fvDH] = jQ3Z[fvDH].astype(float)\n return jQ3Z",
"def FVpL(jQ3Z, AAHb):\n jQ3Z[AAHb] = jQ3Z[AAHb].replace('[^.0-9]', '', regex=True).astype... | [
"0.7570698",
"0.75322235",
"0.6993561",
"0.67573756",
"0.63994634",
"0.60710955",
"0.6047121",
"0.60041076",
"0.59911036",
"0.5854781",
"0.58415484",
"0.58027667",
"0.574845",
"0.57288504",
"0.570624",
"0.5689626",
"0.56807375",
"0.5654527",
"0.56319237",
"0.5611079",
"0.5575... | 0.7972689 | 0 |
Plot distribution of the column(s). This function will plot a chart of the passed column as the 'kind' specified in kind_. You can pass multiple columns to this function. | def f52L(LNrR, jQ3Z, *fvDH):
if LNrR == 'box':
if len(fvDH) == 1:
wLS1 = jQ3Z.boxplot(column=fvDH[0], rot=90)
QrM1.show()
elif len(fvDH) > 1:
for Z9rn in fvDH[1:]:
wLS1 = jQ3Z.boxplot(column=fvDH[0], by=Z9rn, rot=90)
QrM1.show()
eli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Di6E(jQ3Z, iVRZ='', leAC='', co3n=2, zURN=None):\n xJ2h = iEax.Box(y=jQ3Z[iVRZ], name='Box')\n ojtC = iEax.Histogram(x=jQ3Z[iVRZ], name='x')\n LZpg = bWeC.make_subplots(rows=1, cols=co3n)\n LZpg.append_trace(xJ2h, 1, 1)\n LZpg.append_trace(ojtC, 1, 2)\n LZpg['layout'].update(height=300, title... | [
"0.64963204",
"0.6482532",
"0.6081623",
"0.6079596",
"0.5998469",
"0.59509665",
"0.59473723",
"0.59424454",
"0.58836085",
"0.58611655",
"0.584121",
"0.57620525",
"0.57547474",
"0.5736022",
"0.5730198",
"0.5717798",
"0.5704081",
"0.56984556",
"0.56752133",
"0.5659248",
"0.5658... | 0.81192666 | 0 |
Testing preparation of the database and important functions. | def enxp(YKHO, bTj3: str):
NCls = VEMi(data_source=bTj3)
assert NCls.members == {J0qS(member_id='member-123', accounts=set(), name='member-123'), J0qS(member_id='member-124', accounts=set(), name='member-124')}
assert NCls.accounts == [tHSi(account_id='account-abc', member_id='member-123'), tHSi(account_id=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n NCls.drop_all()\n NCls.create_all()",
"def FCbF(YKHO):\n with p9bx() as NCls:\n Pe9W = 'INSERT INTO persons (person_name, address, email) VALUES (%s, %s, %s)'\n NCls.query(Pe9W, 'test_person_a', '123 Fake Street', 'test@example.com')\n NCls.query(Pe9W, 'test_person... | [
"0.7683269",
"0.75967115",
"0.75949347",
"0.7471486",
"0.7423211",
"0.7416072",
"0.7416072",
"0.7416072",
"0.7415056",
"0.7400543",
"0.73796666",
"0.7379533",
"0.73772407",
"0.7360647",
"0.7346288",
"0.7340452",
"0.7337439",
"0.73233026",
"0.73226374",
"0.73203385",
"0.726300... | 0.6909625 | 79 |
Return panda data frame of the moving averages | def P0F1(wDWA, w4Sv=4, TMFJ=True):
wDWA['MA_Col1'] = wDWA.iloc[:, 0].rolling(window=w4Sv).mean()
wDWA['MA_Col2'] = wDWA.iloc[:, 1].rolling(window=w4Sv).mean()
wDWA['MA_Col3'] = wDWA.iloc[:, 2].rolling(window=w4Sv).mean()
wDWA['MA_Col4'] = wDWA.iloc[:, 3].rolling(window=w4Sv).mean()
wDWA['MA_Col5'] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h4wu(jQ3Z, zsZf, yMhW=None):\n if yMhW == None:\n yMhW = jQ3Z.shape[0]\n rMc9 = jQ3Z.shift(zsZf).rolling(min_periods=1, center=False, window=yMhW).mean()\n rMc9.columns = rMc9.columns + '_mean'\n return rMc9",
"def f40l(YKHO):\n if not isinstance(YKHO.df, rLdf.DataFrame):\n raise... | [
"0.7443811",
"0.74277246",
"0.72513866",
"0.72178644",
"0.7217166",
"0.71337783",
"0.6939632",
"0.6933122",
"0.6903184",
"0.68855256",
"0.6862415",
"0.6853283",
"0.68278843",
"0.67301923",
"0.66960794",
"0.6654622",
"0.66407907",
"0.66143763",
"0.66110533",
"0.66005486",
"0.6... | 0.71340775 | 5 |
Format electricity price forecast results into a dataframe | def cOs7(Z5wO, aMgO, AVpI, b6Gq):
H_A0 = dict(((G1Hx, Ty9i) for G1Hx, Ty9i in zip(Z5wO, aMgO)))
G_vy = rLdf.DataFrame.from_dict(H_A0, 'index').sort_index()
G_vy.columns = ['forecasted_price']
G_vy = G_vy.merge(AVpI[['blockid']], left_index=True, right_index=True, how='left')
icoM = rLdf.unique(G_vy.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CsF8(YKHO, iapZ):\n try:\n gXgc = rLdf.DataFrame(iapZ, columns=['Date', 'Price'])\n except:\n raise TypeError('Error: Could not convert scraped price history table to dataframe. Check regex function and scraping mechanism.')\n try:\n gXgc['Date'] = rLdf.to_datetime(gXgc['Date'], i... | [
"0.66204685",
"0.6586722",
"0.6498953",
"0.5946335",
"0.5903674",
"0.5885178",
"0.5810363",
"0.5797524",
"0.57929206",
"0.57795846",
"0.5762223",
"0.57479817",
"0.57337576",
"0.5730984",
"0.56588686",
"0.5654153",
"0.56438005",
"0.56434083",
"0.5608236",
"0.5606983",
"0.55988... | 0.6507811 | 2 |
Linearly increase `lr` for `pct_start` or `warmup_steps` before cosine annealing from `pct_start` or `warmup_steps`. | def rVs8(K0do: torch.optim.Optimizer, ABAq: int, vHjL: Optional[float]=None, wbn8: Optional[int]=None, MQ77: float=1.0 / 1000) -> ht2j.optim.lr_scheduler._LRScheduler:
if vHjL is None and wbn8 is None:
raise ValueError('You must define either pct_start OR warmup_steps')
if wbn8 is not None and (wbn8 <= ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VrJ0(YKHO, aF2y):\n wbn8 = 10\n UTSl = 500\n Zm8p = 0.001\n if YKHO.steps < wbn8:\n tspZ = aF2y * (YKHO.steps + 1) / wbn8\n elif YKHO.steps < wbn8 + UTSl:\n YPaw = YKHO.steps - wbn8\n vexM = 0.5 * (1 + epAf.cos(epAf.pi * YPaw / UTSl))\n tspZ = aF2y * vexM + Zm8p * (1 ... | [
"0.72321916",
"0.658215",
"0.62908053",
"0.6244085",
"0.61668813",
"0.61224467",
"0.6114424",
"0.6068697",
"0.6005816",
"0.6004883",
"0.5999371",
"0.5942117",
"0.5917581",
"0.588871",
"0.5815931",
"0.57902896",
"0.57861066",
"0.57856804",
"0.5781266",
"0.57493615",
"0.5731851... | 0.6678389 | 1 |
Linearly increase `lr` for `pct_start` or `warmup_steps` before linear decreasing of `lr`. | def U8Ld(K0do: Optimizer, ABAq: int, vHjL: Optional[float]=None, wbn8: Optional[int]=None, MQ77: float=1.0 / 1000) -> ht2j.optim.lr_scheduler._LRScheduler:
if vHjL is None and wbn8 is None:
raise ValueError('You must define either pct_start OR warmup_steps')
if wbn8 is not None and (wbn8 <= 0 or not isi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def xZ67(K0do: Optimizer, ABAq: int, vHjL: Optional[float]=None, wbn8: Optional[int]=None, MQ77: float=1.0 / 1000) -> ht2j.opt... | [
"0.7004273",
"0.69648665",
"0.69609404",
"0.6761896",
"0.67390037",
"0.6617007",
"0.66152376",
"0.6605321",
"0.6546198",
"0.65241843",
"0.6514494",
"0.64930683",
"0.64812076",
"0.645743",
"0.6437994",
"0.6412555",
"0.6396178",
"0.6351208",
"0.63397175",
"0.6321464",
"0.630637... | 0.71566784 | 0 |
Linearly increase `lr` for `pct_start` or `warmup_steps` after which keep the `lr` at constant value. | def xZ67(K0do: Optimizer, ABAq: int, vHjL: Optional[float]=None, wbn8: Optional[int]=None, MQ77: float=1.0 / 1000) -> ht2j.optim.lr_scheduler._LRScheduler:
if vHjL is None and wbn8 is None:
raise ValueError('You must define either pct_start OR warmup_steps')
if wbn8 is not None and (wbn8 <= 0 or not isi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def U8Ld(K0do: Optimizer, ABAq: int, vHjL: Optional[float]=None, wbn8: Optional[int]=None, MQ77: float=1.0 / 1000) -> ht2j.opt... | [
"0.7200733",
"0.70973206",
"0.7034057",
"0.6873075",
"0.68204015",
"0.6768964",
"0.67240745",
"0.6616199",
"0.6600019",
"0.6591008",
"0.6580116",
"0.6574635",
"0.65610594",
"0.6539885",
"0.6520072",
"0.65169734",
"0.6458039",
"0.64431155",
"0.642239",
"0.6408706",
"0.63997823... | 0.71810764 | 1 |
The ``ObjectType`` described in the ACE. ``None`` if `ACE`` has no ``ObjectType`` | def vcaS(YKHO):
if not YKHO.Flags & i8Ys.ACE_OBJECT_TYPE_PRESENT:
return None
return YKHO.ObjectType | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rvub(YKHO):\n if not YKHO.Flags & i8Ys.ACE_INHERITED_OBJECT_TYPE_PRESENT:\n return None\n if YKHO.Flags & i8Ys.ACE_OBJECT_TYPE_PRESENT:\n return YKHO.InheritedObjectType\n return YKHO.ObjectType",
"def vcaS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'object_type')",
"def vcaS(YKH... | [
"0.69274837",
"0.67652214",
"0.67652214",
"0.6458054",
"0.6458054",
"0.6458054",
"0.6458054",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
"0.6293348",
... | 0.8260422 | 0 |
The group of the security descriptor | def uOe2(YKHO):
uOe2 = i8Ys.PSID()
IZ8n = i8Ys.BOOL()
YuQO.GetSecurityDescriptorGroup(YKHO, uOe2, IZ8n)
return uOe2 or None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uOe2(YKHO):\n return YKHO._group",
"def uOe2(YKHO):\n return YKHO._group",
"def uOe2(YKHO):\n return YKHO._group",
"def uOe2(YKHO) -> str:\n return qe4Y.get(YKHO, 'group')",
"def ANtU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'security_group')",
"def uOe2(YKHO):\n retu... | [
"0.7813998",
"0.7813998",
"0.7813998",
"0.77394426",
"0.77296996",
"0.7722294",
"0.76519376",
"0.7651268",
"0.7507755",
"0.74972963",
"0.74225944",
"0.7297601",
"0.7195563",
"0.7189577",
"0.71889275",
"0.71889275",
"0.7181225",
"0.71059054",
"0.71059054",
"0.71059054",
"0.710... | 0.8435953 | 0 |
Inits a new BT instance with an optional root node created with the provided data. | def FIMM(YKHO, wnaa=None, T_G7=None):
YKHO._root = ZnGa(wnaa) if wnaa else None
YKHO._size = 1 if wnaa else 0
YKHO._treetype = T_G7
YKHO._depth = 1 if wnaa else 0
YKHO._max_chars = len(str(wnaa)) if wnaa else 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nPrm=None):\n if nPrm is not None:\n YKHO._size = 1\n YKHO.head = o7DN(nPrm)\n YKHO.tail = YKHO.head\n else:\n YKHO._size = 0\n YKHO.head = None\n YKHO.tail = None",
"def FIMM(YKHO, nPrm=None):\n YKHO.data = nPrm\n YKHO.next = YKHO.prior = None... | [
"0.68921053",
"0.6869826",
"0.6584426",
"0.65554357",
"0.6441902",
"0.6411301",
"0.63676625",
"0.63672113",
"0.6361909",
"0.6299748",
"0.6291422",
"0.62613595",
"0.62424195",
"0.6233267",
"0.61878353",
"0.6180863",
"0.6157787",
"0.6157787",
"0.61523336",
"0.61441714",
"0.6142... | 0.77117044 | 0 |
Returns the type of the tree, or None if the tree is not typed. | def T_G7(YKHO):
return YKHO._treetype | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zcg8(YKHO, OaeV):\n if OaeV is None:\n return None\n return YKHO.visit(OaeV)",
"def FRul(Q6kx):\n try:\n if len(Q6kx.inferred()) > 0:\n Iah1 = Q6kx.inferred()[0]\n if isinstance(Iah1, awyi):\n Yrvv = Iah1.name\n elif isinstance(Iah1, s5dF... | [
"0.7197251",
"0.6993529",
"0.6721539",
"0.6593387",
"0.65631604",
"0.65169317",
"0.6495995",
"0.6378965",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
"0.6325105",
... | 0.60337937 | 49 |
Returns True if the instance is a valid binary search tree, False otherwise (if it has been corrupted). Uses a recursive postorder traversal. | def pcG9(YKHO):
try:
YKHO._recursive_is_bst_helper(YKHO._root)
except AttributeError:
return False
return YKHO._root._isvalidBST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PDoh(YKHO, tk5Y):\n if not tk5Y:\n return False\n E5BI = MUE7()\n THkp = None\n while tk5Y or E5BI:\n if tk5Y:\n E5BI.append(tk5Y)\n tk5Y = tk5Y.left\n else:\n Q6kx = E5BI.pop()\n if THkp and THkp.val > Q6kx.val:\n retu... | [
"0.6934552",
"0.662915",
"0.6591189",
"0.6492879",
"0.63614947",
"0.6301986",
"0.6298726",
"0.6220561",
"0.6192502",
"0.6190562",
"0.6164166",
"0.6162353",
"0.61623365",
"0.61549264",
"0.6091633",
"0.6074732",
"0.6054756",
"0.60321075",
"0.60304135",
"0.60071594",
"0.60021394... | 0.7162799 | 0 |
compute duration between current time and last time. | def EdTY(YKHO, vHj7):
return vHj7 - YKHO.slam.get_data(node_name=YKHO.last_point_name)['time'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE(YKHO):\n return (YKHO.end_time or ITS7.time()) - YKHO.start_time",
"def WbTE(YKHO):\n return YKHO.end_time - YKHO.start_time",
"def EdTY(YKHO):\n return YKHO.endtime - YKHO.starttime",
"def WbTE(YKHO) -> float:\n return YKHO.endTime() - YKHO.startTime()",
"def EdTY(YKHO):\n return f... | [
"0.76543397",
"0.73647034",
"0.73391217",
"0.7181912",
"0.7181031",
"0.7033646",
"0.7029622",
"0.7019136",
"0.7010028",
"0.6971725",
"0.69540006",
"0.69260883",
"0.69109166",
"0.6836921",
"0.6803885",
"0.6760833",
"0.6760276",
"0.6739406",
"0.67309505",
"0.6720957",
"0.668519... | 0.77319616 | 0 |
Lancaster midP(probability) modified binomial uncertainty confidence intervals. | def n74Z(G1Hx, exwG, MhOK=oyIN.array([0.025, 0.975])):
yvT9 = oyIN.zeros(MhOK.size)
for r845 in range(len(yvT9)):
def eHNT(XP5J):
hlI9 = 0.0
aM8h = 1.0
for YRbF in range(0, G1Hx + 1):
if YRbF == G1Hx:
aM8h = 1 / 2
h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x1fj(EBgd, HpuQ):\n return [(EBgd[0] + HpuQ[0]) / 2.0, (EBgd[1] + HpuQ[1]) / 2.0]",
"def TSO_(a2D8: int, Ueky: float, pV0u: float) -> float:\n XP5J = axi4(a2D8, Ueky, pV0u)\n PvqG = axi4(a2D8 + 1, Ueky, pV0u)\n R7by = 0.5 * (XP5J - PvqG)\n XP5J -= R7by\n return XP5J",
"def x1fj(EBgd, HpuQ... | [
"0.62773454",
"0.62709796",
"0.61771905",
"0.61004615",
"0.5770777",
"0.5769201",
"0.5677501",
"0.5655826",
"0.56488883",
"0.55592686",
"0.5527616",
"0.552404",
"0.5518331",
"0.5499565",
"0.5491422",
"0.5479519",
"0.54634124",
"0.5460115",
"0.5433614",
"0.5418188",
"0.5408561... | 0.65083563 | 0 |
ClopperPearson binomial proportion confidence interval. Below, beta.ppf (percent point functions) returns inverse CDF for quantiles. | def ldli(G1Hx, exwG, MhOK=[0.025, 0.975]):
if G1Hx == 0:
LSh8 = 0
CN9P = 1 - (1 - MhOK[1]) ** (1 / exwG)
elif G1Hx == exwG:
LSh8 = MhOK[0] ** (1 / exwG)
CN9P = 1
else:
LSh8 = eQSh.beta.ppf(q=MhOK[0], a=G1Hx, b=exwG - G1Hx + 1)
CN9P = eQSh.beta.ppf(q=MhOK[1], a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ULUO(XP5J, exwG, lwa0=95):\n Cwt5 = oyIN.round(1 - lwa0 / 100, 2)\n RLoG = oyIN.sqrt(XP5J * (1 - XP5J) / exwG)\n zaQm = oyIN.round(eQSh.norm.ppf(1 - Cwt5 / 2), 3)\n sfgS = oyIN.round(zaQm * RLoG, 2)\n aHzl = oyIN.round(XP5J - sfgS, 2)\n x67h = oyIN.round(XP5J + sfgS, 2)\n print('Margin Of ... | [
"0.6244176",
"0.6120192",
"0.5931537",
"0.58469415",
"0.5845753",
"0.5788267",
"0.5640404",
"0.5614743",
"0.55501354",
"0.5537031",
"0.5525241",
"0.5525241",
"0.5502838",
"0.548889",
"0.548889",
"0.5488433",
"0.5446284",
"0.54461855",
"0.54424006",
"0.54341644",
"0.5433645",
... | 0.5481795 | 16 |
Katz el al. ratio confidence interval of two binomial proportions. | def wmlA(LEev, MxXY, Xyq7, cWFu, epBp=1.0):
I_Jp = LEev / MxXY / (Xyq7 / cWFu)
heNs = oyIN.log(I_Jp)
Pian = oyIN.sqrt(1 / LEev + 1 / Xyq7 - 1 / MxXY - 1 / cWFu)
LSh8 = oyIN.exp(heNs - epBp * Pian)
CN9P = oyIN.exp(heNs + epBp * Pian)
return oyIN.array([LSh8, CN9P]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QbjI(LEev, MxXY, Xyq7, cWFu, tjUW):\n BvMi = Vnkp(k=LEev, n=MxXY, B=tjUW)\n rKYz = Vnkp(k=Xyq7, n=cWFu, B=tjUW)\n A3Vt = BvMi / MxXY / (rKYz / cWFu)\n return (A3Vt, BvMi, rKYz)",
"def lbGh(LEev, MxXY, Xyq7, cWFu, epBp=1.0):\n I_Jp = LEev / MxXY / (Xyq7 / cWFu)\n heNs = oyIN.log(I_Jp)\n P... | [
"0.7155009",
"0.71242326",
"0.6707542",
"0.6669287",
"0.65800554",
"0.65685",
"0.6514665",
"0.6391786",
"0.6281577",
"0.62768036",
"0.6186152",
"0.6129782",
"0.60850835",
"0.60487473",
"0.60415936",
"0.6029413",
"0.5936662",
"0.5915111",
"0.5906728",
"0.59012157",
"0.5895611"... | 0.7235961 | 0 |
Tests a block to see if it's an armature. | def eim5(YKHO, vuz6):
if isinstance(vuz6, g06x.NiNode):
return vuz6 in YKHO.nif_import.dict_armatures
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uhVF(YKHO, XkN1):\n pass",
"def uhVF(XkN1):\n kTRN = XkN1.runtime.get_asides(XkN1)\n assert len(kTRN) == 1, f'Found {kTRN} asides but expected only test_aside'\n assert isinstance(kTRN[0], HOaa)\n Ghho = XkN1.scope_ids.block_type\n assert kTRN[0].data_field == f'{Ghho} aside data'\n asse... | [
"0.74814016",
"0.68003225",
"0.66845286",
"0.63154423",
"0.6108202",
"0.6065927",
"0.6026056",
"0.60030407",
"0.5943352",
"0.5940206",
"0.593345",
"0.59219223",
"0.5920326",
"0.590203",
"0.58903724",
"0.5882341",
"0.5870395",
"0.5869949",
"0.5851886",
"0.5844354",
"0.58418363... | 0.6206139 | 4 |
Initialize the ship and set its starting position. | def FIMM(YKHO, Vjhr, tJm0):
YKHO.screen = Vjhr
YKHO.ai_settings = tJm0
YKHO.image = a9eO.image.load('images/ship.bmp')
YKHO.rect = YKHO.image.get_rect()
YKHO.screen_rect = Vjhr.get_rect()
YKHO.rect.centerx = YKHO.screen_rect.centerx
YKHO.rect.bottom = YKHO.screen_rect.bottom
YKHO.center ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n global ship_image\n YKHO.spaceshipgame = NauM()\n YKHO.spaceshipgame.init()\n oeNL = [1, 1]\n y917 = [1, 1]\n YylR = 0\n LNo8 = ejEv\n hgjH = [1, 1]\n zNig = 1\n U34r = mYeQ(hgjH, zNig)\n YKHO.ship = riCe(oeNL, y917, YylR, LNo8, U34r)",
"def FCbF(YKHO):\n glo... | [
"0.7156775",
"0.7156775",
"0.71117884",
"0.7104403",
"0.70625305",
"0.6991875",
"0.69255584",
"0.68944544",
"0.688422",
"0.6880826",
"0.68696547",
"0.6849714",
"0.68470556",
"0.68340504",
"0.6809345",
"0.6806218",
"0.67833537",
"0.6759838",
"0.6683925",
"0.6680851",
"0.663616... | 0.65135926 | 25 |
Center the ship on the screen. | def _0rf(YKHO):
YKHO.center = YKHO.screen_rect.centerx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _0rf(YKHO):\n YKHO.center = YKHO.screen_rect.centerx",
"def _0rf(YKHO):\n YKHO.center = YKHO.screen_rect.centerx",
"def _0rf(YKHO):\n YKHO.center = YKHO.screen_rect.centerx",
"def _0rf(YKHO):\n YKHO.rect.centerx = YKHO.screen_rect.centerx\n YKHO.rect.bottom = YKHO.screen_rect.bottom\n Y... | [
"0.90483487",
"0.90483487",
"0.90483487",
"0.86796546",
"0.77428573",
"0.7571409",
"0.7519597",
"0.7502143",
"0.74013364",
"0.7365447",
"0.72528094",
"0.7213482",
"0.7202151",
"0.71933264",
"0.7159793",
"0.712372",
"0.712372",
"0.7016084",
"0.6983172",
"0.6981482",
"0.6975728... | 0.90521824 | 0 |
Dump data to JSON string and encode it to UTF8 bytes | def kLcZ(nPrm):
return pOIB.dumps(nPrm).encode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDCE(zgjV):\n return qQXR.dumps(zgjV).encode('utf-8')",
"def EazC(nPrm):\n return qQXR.dumps(nPrm, cls=feCR)",
"def xhsS(YEnM, PjZe=qQXR.dumps):\n Aofo = PjZe(YEnM)\n if isinstance(Aofo, g9qP):\n return Aofo.encode('utf-8')\n return Aofo",
"def yhRz(nPrm):\n bytes = qQXR.dumps(nP... | [
"0.7268252",
"0.7101218",
"0.70162684",
"0.7004749",
"0.6861776",
"0.6849809",
"0.6734317",
"0.66930455",
"0.6684536",
"0.6682361",
"0.66691464",
"0.6613906",
"0.65788335",
"0.65686315",
"0.65555805",
"0.65536755",
"0.65452945",
"0.65111357",
"0.6478395",
"0.6444124",
"0.6441... | 0.7895607 | 0 |
Set sequence length and reshape the tensors. | def NXmX(YKHO, Y2uF):
YKHO._sequence_length = Y2uF
YKHO.tensors = [ht2j.tensor(QLxT(WKvO, YKHO._sequence_length, YKHO._sequence_stride)).float() for WKvO in [YKHO.inputs, YKHO.outputs]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _j33(o4Jx):\n ROpF = o4Jx.get_shape().as_list()\n gNly = ROpF[1]\n cuu0 = o4Jx.get_shape().as_list()[-1]\n UP6E = [[0, 0], [0, ZylS.floormod(gNly, 2)], [0, 0]]\n o4Jx = ZylS.pad(o4Jx, UP6E)\n hinZ = hekC((int(oyIN.ceil(gNly / 2)), cuu0 * 2))(o4Jx)\n return hinZ",
"def AeBf(Xtuq, yDqo=ht2... | [
"0.616096",
"0.59452933",
"0.58334416",
"0.5833246",
"0.57840604",
"0.5783229",
"0.57400054",
"0.5584882",
"0.55569005",
"0.5551493",
"0.55459756",
"0.5541593",
"0.5534233",
"0.5533882",
"0.54904556",
"0.54662037",
"0.5457648",
"0.5410564",
"0.5408659",
"0.5408425",
"0.540616... | 0.7175728 | 0 |
Returns the containerStatus.name value. | def W0tD(YKHO) -> I2jr:
return YKHO._get_value(IFrB.Keys.NAME) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VHRi(YKHO) -> str:\n return qe4Y.get(YKHO, 'container_status')",
"def mWFP(YKHO):\n return YKHO.container['name']",
"def mWFP(YKHO):\n return YKHO.container['name']",
"def VHRi(YKHO):\n if YKHO.status == 'complete':\n return 'complete'\n try:\n XWMp = YKHO._ecs.describe_tasks... | [
"0.78838944",
"0.7151554",
"0.7151554",
"0.6861036",
"0.6508252",
"0.6507606",
"0.6414648",
"0.63992006",
"0.63624674",
"0.6326732",
"0.6276408",
"0.6272272",
"0.62708735",
"0.62708735",
"0.62708735",
"0.62708735",
"0.62708735",
"0.62708735",
"0.62708735",
"0.62708735",
"0.62... | 0.6182458 | 48 |
Returns the containerStatus.ready value. | def IJ7Q(YKHO) -> I2jr:
return str(YKHO._get_value(IFrB.Keys.READY)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YFXS():\n OivO = AwKJ(fields=['ready'])\n return OivO['ready']",
"def VHRi(YKHO) -> str:\n return qe4Y.get(YKHO, 'container_status')",
"def kITe(YKHO):\n return YKHO._GetPod()['status']['phase'] != 'Pending'",
"def xzN7(YKHO):\n return YKHO._get_attribute('isReady')",
"def IJ7Q(YKHO) -> ... | [
"0.81886744",
"0.6929381",
"0.6631243",
"0.66224277",
"0.6563929",
"0.6491427",
"0.64218175",
"0.63882756",
"0.6378612",
"0.6316286",
"0.62270486",
"0.61994684",
"0.6191246",
"0.6165124",
"0.6148387",
"0.6110771",
"0.6104591",
"0.6102533",
"0.6092385",
"0.60668665",
"0.606650... | 0.77743787 | 1 |
Returns the containerStatus.started value. | def PA2A(YKHO) -> I2jr:
return str(YKHO._get_value(IFrB.Keys.STARTED)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOn(YKHO):\n if YKHO._started is not None:\n return YKHO._started\n YKHO._started = getattr(YKHO.factory, 'status_' + YKHO.class_name())(YKHO)\n return YKHO._started",
"def KAOn(YKHO):\n return YKHO._started",
"def KAOn(YKHO):\n return YKHO._started.get()",
"def PA2A(YKHO):\n re... | [
"0.69823766",
"0.68510574",
"0.6814347",
"0.65220654",
"0.63466644",
"0.6272844",
"0.6268768",
"0.6218933",
"0.6149078",
"0.6070092",
"0.5989994",
"0.59782565",
"0.59665734",
"0.59665734",
"0.5962265",
"0.5914463",
"0.5910613",
"0.5910613",
"0.59023404",
"0.5895928",
"0.58878... | 0.75084513 | 0 |
Returns a flattened version of the containerStatus.state dictionary with one level of keys for the current container state. | def _RrT(YKHO) -> cuzp[I2jr, I2jr]:
FDwL: cuzp = YKHO._container_status_dict.get(IFrB.Keys.STATE)
xA7f: cuzp = dict()
if not FDwL:
return xA7f
if 'running' in FDwL:
HX9S: cuzp = FDwL['running']
xA7f['container-state'] = 'running'
xA7f['container-started-at'] = HX9S['start... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZXdV(YKHO):\n return {Z9rn['id']: Z9rn['state'] for Z9rn in YKHO.get_containers()}",
"def W71Y(xA7f, d2Vr=False):\n return JmSv.flatten_dict(xA7f, is_leaf=_hs9, keep_empty_nodes=d2Vr, sep='/')",
"def QTBn(YKHO):\n return {YKHO._reverse_mapping[G1Hx]: Ty9i for G1Hx, Ty9i in enumerate(YKHO._state)}"... | [
"0.6925622",
"0.6215494",
"0.6113009",
"0.59109503",
"0.5887527",
"0.58695763",
"0.5763103",
"0.57626987",
"0.5760663",
"0.57332975",
"0.57332975",
"0.5721266",
"0.5720302",
"0.570658",
"0.5704859",
"0.56571037",
"0.5656357",
"0.56533784",
"0.5651744",
"0.56394327",
"0.563511... | 0.7052586 | 0 |
Returns the name of the pod being targeted by this _LogDownloadProcess. | def Ktg6(YKHO) -> I2jr:
return YKHO._pod_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b9xm(YKHO) -> h8nf[str]:\n return YKHO._log_name",
"def mWFP(YKHO):\n return YKHO._job",
"def mWFP(YKHO):\n try:\n return YKHO._name\n except AttributeError:\n if YKHO.is_task:\n try:\n return YKHO.pos_str\n except:\n return Hy7s... | [
"0.6230243",
"0.59221005",
"0.588133",
"0.5842129",
"0.577266",
"0.5664137",
"0.5626554",
"0.5615543",
"0.56040597",
"0.55814016",
"0.5578702",
"0.5563325",
"0.554708",
"0.5527147",
"0.54400164",
"0.54400164",
"0.54400164",
"0.5436899",
"0.54166156",
"0.54166156",
"0.5415997"... | 0.7364078 | 0 |
Initialize a new Turing machine tape. | def FIMM(YKHO, J4QZ: Sequence[str], Ttel: str, uKWF: int=0) -> None:
J4QZ = list(J4QZ)
while len(J4QZ) <= uKWF:
J4QZ.append(Ttel)
object.__setattr__(YKHO, 'tape', tuple(J4QZ))
object.__setattr__(YKHO, 'blank_symbol', Ttel)
object.__setattr__(YKHO, 'current_position', uKWF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qOBX(YKHO):\n with cR0t(SyntaxError):\n YKHO.machine.init_tape('abacab')\n assert YKHO.machine.head is None\n assert YKHO.machine.state is None\n assert YKHO.machine.tape is None\n YKHO.machine.add_state('0 ,R, ,R, ,R, a,N,!')\n with cR0t(RuntimeError):\n YKHO.machine.init_t... | [
"0.7160444",
"0.6507855",
"0.6280777",
"0.62381667",
"0.61869127",
"0.61729425",
"0.60678405",
"0.6059041",
"0.5912671",
"0.59116876",
"0.5856003",
"0.58186525",
"0.5801618",
"0.5732802",
"0.5710768",
"0.5688818",
"0.5668883",
"0.5644087",
"0.5640291",
"0.5631922",
"0.5630079... | 0.59690666 | 8 |
Ask the `scf.issues` table for the `max(updated_at)` value | def V6yJ():
from .utils import connect_to_pg
w2B8 = connect_to_pg()
xDcj = 'select max(updated_at) from scf.issues'
Ylbp = w2B8.execute(xDcj)
j7ph = Ylbp.fetchone()[0]
print(j7ph)
return j7ph | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RZYP():\n try:\n return E0Eg.objects.latest().updated_at\n except E0Eg.DoesNotExist:\n return None",
"def cV9T(Emd4):\n p1kx = Ca9i.query.with_entities(Ca9i.updated_on).order_by(QoB4(Ca9i.updated_on)).first()\n if p1kx:\n return p1kx[0]\n else:\n return None",
"de... | [
"0.68252975",
"0.64990026",
"0.63866246",
"0.6291118",
"0.6145425",
"0.61246777",
"0.60446906",
"0.5908022",
"0.5897066",
"0.5886259",
"0.5859047",
"0.5829207",
"0.5802256",
"0.57248986",
"0.57241786",
"0.569559",
"0.5686604",
"0.5686604",
"0.5678401",
"0.56739753",
"0.566812... | 0.79132134 | 0 |
Owner is not allowed to create new assessments | def ctzZ(YKHO):
qv1X, _hkX = nPrm.get_assessment(YKHO.contract['id'])
geh0 = YKHO.user_01.post(YKHO.assessment_list_url, qv1X)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ctzZ(YKHO):\n qv1X, _hkX = nPrm.get_assessment(YKHO.contract['id'])\n geh0 = YKHO.user_01.post(YKHO.assessment_list_url, qv1X)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n geh0.data.pop('id')\n wVBI(YKHO, geh0, _hkX)",
"def P4PN(YKHO):\n qv1X, _hkX = nPrm.get_assessment(YKH... | [
"0.7729678",
"0.7404685",
"0.7404685",
"0.73812246",
"0.70971346",
"0.6987078",
"0.6987078",
"0.6125905",
"0.6123834",
"0.6116707",
"0.6007696",
"0.600519",
"0.5966265",
"0.59602743",
"0.5905564",
"0.5899384",
"0.58667445",
"0.5829399",
"0.5825799",
"0.5779918",
"0.57797366",... | 0.8200943 | 0 |
Owner is allowed to update assessment, but not its template | def x_ZP(YKHO):
qv1X = {'weight': 60, 'additional_description': 'asdfqwer'}
geh0 = YKHO.user_01.put(YKHO.assessment_report_url, qv1X)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
geh0 = YKHO.user_01.patch(YKHO.assessment_report_url, qv1X)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMmo(YKHO):\n qv1X, _hkX = nPrm.get_assessment(YKHO.contract['id'])\n geh0 = YKHO.user_01.put(YKHO.assessment_report_url, qv1X)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def ctzZ(YKHO):\n qv1X, _hkX = nPrm.get_assessment(YKHO.contract['id'])\n geh0 = YKHO.user_01.post(YK... | [
"0.76198685",
"0.7014278",
"0.69869745",
"0.69542193",
"0.691126",
"0.6698085",
"0.6698085",
"0.6694836",
"0.6629851",
"0.6591788",
"0.6454214",
"0.6403161",
"0.63843614",
"0.6370104",
"0.6331404",
"0.63233614",
"0.6264152",
"0.62533796",
"0.62363976",
"0.62208354",
"0.620975... | 0.65763557 | 10 |
Owner is allowed to update assessment, but not its template | def fMmo(YKHO):
qv1X, _hkX = nPrm.get_assessment(YKHO.contract['id'])
geh0 = YKHO.user_01.put(YKHO.assessment_report_url, qv1X)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ctzZ(YKHO):\n qv1X, _hkX = nPrm.get_assessment(YKHO.contract['id'])\n geh0 = YKHO.user_01.post(YKHO.assessment_list_url, qv1X)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def TREE(Emd4, CBIr, YEnM):\n if not Emd4._meta.model.published_where_is_examiner(CBIr).filter(id=YEnM.id... | [
"0.7016037",
"0.6986622",
"0.6953042",
"0.69114345",
"0.6697692",
"0.6697692",
"0.6693855",
"0.6629722",
"0.6591057",
"0.6575246",
"0.6452929",
"0.6403039",
"0.63823926",
"0.63718337",
"0.6331136",
"0.63222486",
"0.62632626",
"0.6253046",
"0.6236008",
"0.6219802",
"0.62087697... | 0.76203734 | 0 |
Gets value at each latent site in `model` given unconstrained parameters `params`. The `transforms` is used to transform these unconstrained parameters to base values of the corresponding priors in `model`. If a prior is a transformed distribution, the corresponding base value lies in the support of base distribution. ... | def muAk(C3ST, SQWW, J4Uw, Ymkf, NArs):
FWkU = DNyc(Ymkf, NArs)
y_6M = dwI0(C3ST, base_param_map=FWkU)
ZAi2 = zgsA(y_6M).get_trace(*SQWW, **J4Uw)
return {G1Hx: ZAi2[G1Hx]['value'] for G1Hx, Ty9i in NArs.items() if G1Hx in ZAi2} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DNyc(Ymkf, NArs, CX33=False):\n if CX33:\n Ymkf = {G1Hx: Ty9i.inv for G1Hx, Ty9i in Ymkf.items()}\n return {G1Hx: Ymkf[G1Hx](Ty9i) if G1Hx in Ymkf else Ty9i for G1Hx, Ty9i in NArs.items()}",
"def SZFh(YKHO, NArs, C3ST, nGID, u5Om):\n YKHO._transform_parameters(C3ST, NArs, nGID, u5Om)",
"def... | [
"0.51287293",
"0.5014981",
"0.49878404",
"0.49160644",
"0.48483506",
"0.48171145",
"0.4814651",
"0.47981277",
"0.4785113",
"0.47635627",
"0.47552845",
"0.47528157",
"0.4731376",
"0.47163966",
"0.47118264",
"0.46632335",
"0.46602204",
"0.46121612",
"0.4611313",
"0.4600581",
"0... | 0.5808672 | 0 |
Run model by sampling latent parameters from `posterior_samples`, and return values at sample sites from the forward run. By default, only sites not contained in `posterior_samples` are returned. This can be modified by changing the `return_sites` keyword argument. | def nB4_(xlLU, C3ST, i6cc, L0dW=None, *qIxc, **B2fa):
def ai6e(xlLU, gGnb):
ZAi2 = zgsA(yokr(XEri(C3ST, gGnb), xlLU)).get_trace(*qIxc, **B2fa)
DGp7 = ZAi2.keys() - gGnb.keys() if L0dW is None else L0dW
return {mWFP: qpDA['value'] for mWFP, qpDA in ZAi2.items() if mWFP in DGp7}
eAYh = rM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aGGT(xVvQ: random.PRNGKey, C3ST, nPrm: np.ndarray, ZPop: int=1000, Cwt5: float=1, WTkW: float=0, Kt_s: int=10, nU9o=None, V1HI=None):\n if nU9o is None or V1HI is None:\n return YR_7(xVvQ, C3ST, nPrm, ZPop, alpha=Cwt5, sigma=WTkW, T=Kt_s)\n else:\n return Ogaw(xVvQ, C3ST, nPrm, ZPop, alpha=... | [
"0.5906568",
"0.5903699",
"0.5674437",
"0.56429356",
"0.55982494",
"0.5565764",
"0.55430764",
"0.5409633",
"0.5352642",
"0.53096735",
"0.5296155",
"0.52424693",
"0.5212656",
"0.5209799",
"0.51776236",
"0.51599663",
"0.51223016",
"0.5116351",
"0.5079671",
"0.5070743",
"0.50510... | 0.7101027 | 0 |
Read one double from the mmap at the given index. | def zPVJ(YKHO, pWMD, lo8O, Ljgy, yw2p, WEHE):
vgXP = YKHO.item_size * (pWMD * YKHO.t_idx + lo8O * YKHO.p_idx + Ljgy * YKHO.v_idx + yw2p * YKHO.l_idx + WEHE)
YKHO.mm.seek(vgXP)
return YKHO.unpacker.unpack(YKHO.mm.read(YKHO.item_size))[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ueki(YKHO, rRzo, d6pt=None):\n hp_O = YKHO.index_addr(rRzo, d6pt)\n BWXx = YKHO.mem.read(hp_O)\n return BWXx",
"def Ueki(N5Pj: BitStreamReader, kS1Y: int) -> float:\n return N5Pj.readFloat64()",
"def nzLS(YKHO, eOB9: int, UTX6: int):\n YKHO.__bufferSize = 8\n BWXx = YKHO.__read_bytes(eOB9... | [
"0.65888184",
"0.63827366",
"0.6195038",
"0.6150515",
"0.6065789",
"0.6041797",
"0.59662384",
"0.5801523",
"0.5800641",
"0.5800641",
"0.57903033",
"0.577169",
"0.5763536",
"0.57473046",
"0.57420444",
"0.57398087",
"0.57294977",
"0.57294977",
"0.57169896",
"0.57151556",
"0.566... | 0.5224635 | 78 |
Closes the connection to the database. | def DDI8(YKHO):
YKHO.__database__.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZlT(Emd4):\n NCls.close()",
"def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None",
"def DDI8(YKHO):\n RdPg.debug('DB -> close')\n YKHO.conn.close()",
"def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()",
"def EM8p(YKHO):\n ... | [
"0.8420153",
"0.8370933",
"0.8159778",
"0.8131062",
"0.81211287",
"0.80669576",
"0.7892404",
"0.78269607",
"0.7820135",
"0.7819574",
"0.7819202",
"0.779008",
"0.77802986",
"0.7766655",
"0.77557564",
"0.77336437",
"0.7686685",
"0.7686685",
"0.7686685",
"0.76859367",
"0.7666182... | 0.7944911 | 6 |
Retorna la columna indicada por col_ | def sTNf(IkwA, AvN3, Ukn6, tlA2, i_Aq) -> list:
ivc1 = []
if len(i_Aq) == 0:
print('La lista esta vacía')
else:
JsUV = T2IJ()
ivc1 = [geyT[IkwA] for geyT in i_Aq if Ukn6(geyT[AvN3], tlA2)]
wuPY = T2IJ()
print('Tiempo de ejecución ', wuPY - JsUV, ' segundos')
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iBd8(Emd4, mWFP):\n return Emd4._columns[mWFP]",
"def fvDH(YKHO):\n return YKHO.__col",
"def iBd8(YKHO, mWFP):\n return YKHO.column(mWFP)",
"def SyG7(YKHO, or8S):\n return YKHO.text[YKHO._fwf.column_slices[or8S]]",
"def Osfr(YKHO, z0q4):\n or8S = YKHO.colnames.index(z0q4)\n return YKH... | [
"0.7297933",
"0.7265185",
"0.72539353",
"0.72371495",
"0.71198535",
"0.7071204",
"0.7057092",
"0.70470905",
"0.69812626",
"0.6970632",
"0.69333863",
"0.692727",
"0.692428",
"0.6921571",
"0.6904998",
"0.6902945",
"0.6902945",
"0.68911576",
"0.6882006",
"0.6864295",
"0.68458384... | 0.0 | -1 |
decay the learning rate | def WMj5(YKHO):
if YKHO.l_rate > YKHO.l_rate_bound[0] and YKHO.l_rate - YKHO.decay_rate > 0.0:
YKHO.l_rate -= YKHO.decay_rate
elif YKHO.l_rate - YKHO.decay_rate <= 0.0 or YKHO.l_rate < YKHO.l_rate_bound[0]:
YKHO.l_rate = YKHO.l_rate_bound[0]
for gEmA in YKHO.network:
gEmA.learning_ra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qh2O(YPaw):\n return Cwt5 / (1 + f9Ey * YPaw)",
"def biVQ(qtWj):\n tspZ = b0Ix\n if qtWj >= 60:\n tspZ *= 0.1\n print('Learning rate: ', tspZ)\n return tspZ",
"def biVQ(qtWj):\n oLNr = 0.1\n ReNU = 0.5\n Gn2V = 10.0\n fqnS = oLNr * epAf.pow(ReNU, epAf.floor((1 + qtWj) / Gn... | [
"0.8596038",
"0.8295382",
"0.8146965",
"0.80920637",
"0.8000208",
"0.7931285",
"0.79282117",
"0.7827922",
"0.7731021",
"0.76989293",
"0.76924986",
"0.7688428",
"0.76328516",
"0.7614572",
"0.7609397",
"0.7555843",
"0.75371397",
"0.7528518",
"0.7517061",
"0.72959",
"0.7262789",... | 0.7892362 | 7 |
Sets the id of this MMCTicketsTicket. | def id(YKHO, id):
if id is None:
raise ValueError('Invalid value for `id`, must not be `None`')
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cZez(YKHO, cZez):\n YKHO._ticket_id = cZez",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('... | [
"0.7516366",
"0.7246705",
"0.7182433",
"0.7181039",
"0.69257003",
"0.6905536",
"0.67877376",
"0.67877376",
"0.67877376",
"0.67733014",
"0.67733014",
"0.67733014",
"0.67733014",
"0.67733014",
"0.6727641",
"0.6727641",
"0.6727641",
"0.6727641",
"0.6727641",
"0.6727641",
"0.6727... | 0.0 | -1 |
Sets the status of this MMCTicketsTicket. | def jGRS(YKHO, jGRS):
if jGRS is None:
raise ValueError('Invalid value for `status`, must not be `None`')
BbPm = ['Open', 'Claimed', 'Held', 'Closed']
if jGRS not in BbPm:
raise ValueError('Invalid value for `status` ({0}), must be one of {1}'.format(jGRS, BbPm))
YKHO._status = jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cYSk(YKHO, jGRS):\n with YKHO.lock:\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def gYPd(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS, i8WE=None):\n ... | [
"0.7207598",
"0.7055755",
"0.7055755",
"0.7055755",
"0.69597983",
"0.69264305",
"0.6909668",
"0.67951363",
"0.67951363",
"0.67951363",
"0.67951363",
"0.67951363",
"0.67951363",
"0.67951363",
"0.67607075",
"0.67607075",
"0.67607075",
"0.67607075",
"0.67607075",
"0.67607075",
"... | 0.581172 | 74 |
Sets the sender of this MMCTicketsTicket. | def vC92(YKHO, vC92):
YKHO._sender = vC92 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vC92(YKHO, vC92: str):\n if vC92 is None:\n raise ValueError('Invalid value for `sender`, must not be `None`')\n YKHO._sender = vC92",
"def vC92(YKHO, vC92: Address) -> None:\n SlLe(isinstance(vC92, str), f\"Sender must be string. Found '{type(vC92)}'\")\n YKHO._sender = vC92",
"def yH5S... | [
"0.7231686",
"0.6864236",
"0.6267467",
"0.6013667",
"0.58400345",
"0.5560073",
"0.54336375",
"0.5334049",
"0.52730346",
"0.52726376",
"0.5245843",
"0.52189356",
"0.5139688",
"0.51391596",
"0.51367354",
"0.5121695",
"0.5088449",
"0.505906",
"0.5021455",
"0.4994811",
"0.4980890... | 0.6058703 | 6 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, eBAK):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Convert JSON string to Series | def pktP(Emd4, qQXR, ENzu='index', yDqo=None, XTiz=True):
KCHu = None
if yDqo is not None and ENzu == 'split':
XTiz = False
if XTiz:
try:
if ENzu == 'split':
AgdR = _1kr(qQXR, dtype=yDqo, numpy=True)
AgdR = dict(((str(G1Hx), Ty9i) for G1Hx, Ty9i in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qts2(YKHO, QToG):\n Csk6 = YKHO._xml_to_dict(QToG)\n Csk6 = Csk6['Data']\n if isinstance(Csk6, exCv):\n raise gSvM('Provided xml has no content.')\n fNDO = Csk6['Series']\n if YKHO.get_first:\n if isinstance(fNDO, list):\n return oM6q(**fNDO[0])\n else:\n ... | [
"0.63821644",
"0.61480427",
"0.60911655",
"0.6006355",
"0.6005788",
"0.5944397",
"0.5919177",
"0.5919177",
"0.5813796",
"0.571271",
"0.5710816",
"0.5703605",
"0.5689672",
"0.5645758",
"0.56379116",
"0.5601851",
"0.55863893",
"0.556919",
"0.5563988",
"0.5561029",
"0.5530773",
... | 0.70196193 | 0 |
Convert JSON string to DataFrame | def pktP(Emd4, qQXR, ENzu='columns', yDqo=None, XTiz=True):
jQ3Z = None
if yDqo is not None and ENzu == 'split':
XTiz = False
if XTiz:
try:
if ENzu == 'columns':
qIxc = _1kr(qQXR, dtype=yDqo, numpy=True, labelled=True)
if qIxc:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def onUf(nPrm: str) -> CwDs.DataFrame:\n zZcM = qQXR.loads(nPrm)\n if isinstance(zZcM, list):\n return CwDs.DataFrame.from_records(zZcM)\n if 'instances' in zZcM:\n return CwDs.DataFrame.from_records(zZcM['instances'])\n if 'inputs' in zZcM:\n return CwDs.DataFrame.from_dict(zZcM['... | [
"0.77508926",
"0.7245385",
"0.7098532",
"0.6824663",
"0.6778319",
"0.6456525",
"0.6408276",
"0.63489217",
"0.6340924",
"0.630475",
"0.6302125",
"0.628899",
"0.6159746",
"0.615229",
"0.6135666",
"0.610166",
"0.6096299",
"0.60884327",
"0.6076875",
"0.6049788",
"0.60476893",
"... | 0.6804238 | 4 |
close out ROUTER socket and and all the PUSH clients we are holding | def DDI8(YKHO):
YKHO._router_socket.close()
for x0hE in YKHO._active_clients.values():
x0hE.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n if YKHO.push_socket is not None:\n YKHO.push_socket.close()\n if YKHO.pull_socket is not None:\n YKHO.pull_socket.close()\n if YKHO.control_socket is not None:\n YKHO.control_socket.close()",
"def DDI8(YKHO):\n if YKHO.pending_messages:\n print('?? closin... | [
"0.7677334",
"0.74523956",
"0.7361958",
"0.73474795",
"0.7299397",
"0.7273113",
"0.7256868",
"0.72533935",
"0.7221448",
"0.72152513",
"0.72001386",
"0.71951497",
"0.7192452",
"0.7170539",
"0.7135394",
"0.7116222",
"0.7116222",
"0.7116222",
"0.7116222",
"0.7116222",
"0.7116222... | 0.7443191 | 2 |
Create a frame of tkinter.Buttons | def kIAc(YKHO, Rci7, fRFN, wQcs=None):
OOnZ = XW6u.Frame(Rci7)
YKHO.make_spacer(OOnZ).grid()
for gZ2G, qxY0 in enumerate(fRFN):
YKHO.make_spacer(OOnZ, width=3).grid(column=O_tH[::2][gZ2G], row=1, sticky='nsew')
if wQcs is None:
def bxcz(mWFP=qxY0):
YKHO.click_and... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jHsu(f4IJ):\n YZz6 = D04X(f4IJ, height=2, width=2, text=' ', command=lambda: wlc7(YZz6))\n YZz6.pack(side=pY1r)\n V_Tw = D04X(f4IJ, height=2, width=2, text=' ', command=lambda: wlc7(V_Tw))\n V_Tw.pack(side=pY1r)\n nBRS = D04X(f4IJ, height=2, width=2, text=' ', command=lambda: wlc7(nBRS))\n nB... | [
"0.845355",
"0.80933005",
"0.78759617",
"0.77731866",
"0.75577736",
"0.7283207",
"0.7246773",
"0.71515995",
"0.71356755",
"0.71343994",
"0.71298456",
"0.710385",
"0.70527506",
"0.7039372",
"0.7023345",
"0.7014041",
"0.69850445",
"0.6969275",
"0.69688344",
"0.69489366",
"0.692... | 0.7694392 | 4 |
Compute my distance from the origin | def Z4u2(YKHO):
return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + ... | [
"0.85663384",
"0.85663384",
"0.85663384",
"0.85663384",
"0.85663384",
"0.85663384",
"0.85663384",
"0.8565058",
"0.84973544",
"0.8323514",
"0.8296796",
"0.7732662",
"0.74226093",
"0.7381035",
"0.7292783",
"0.7264896",
"0.72594285",
"0.7255858",
"0.72473836",
"0.7230952",
"0.72... | 0.8215572 | 11 |
Return the halfway point between myself and the target | def Tf9J(YKHO, pan_):
RsfQ = (YKHO.x + pan_.x) / 2
suhQ = (YKHO.y + pan_.y) / 2
return PvyL(RsfQ, suhQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tf9J(YKHO, pan_):\n RsfQ = (YKHO.x + pan_.x) / 2\n suhQ = (YKHO.y + pan_.y) / 2\n return PvyL(RsfQ, suhQ)",
"def Tf9J(YKHO, pan_):\n RsfQ = (YKHO.x + pan_.x) / 2\n suhQ = (YKHO.y + pan_.y) / 2\n return PvyL(RsfQ, suhQ)",
"def Tf9J(YKHO, pan_):\n RsfQ = (YKHO.x + pan_.x) / 2\n suhQ =... | [
"0.87807095",
"0.87807095",
"0.87807095",
"0.8739289",
"0.7258228",
"0.67555827",
"0.6575694",
"0.63087344",
"0.6154392",
"0.6012264",
"0.5984519",
"0.5891061",
"0.5862106",
"0.5861572",
"0.58551717",
"0.58381695",
"0.5818833",
"0.5798639",
"0.57962465",
"0.5786625",
"0.57834... | 0.8788246 | 0 |
Returns self >= y | def rhDa(YKHO, LVAh):
return 1 - YKHO.lt(LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 > Elif.x ** 2 + Elif.y ** 2",
"def Zcf_(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 >= Elif.x ** 2 + Elif.y ** 2",
"def TPjt(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 <= Elif.x ** 2 + Elif.y ** 2",
"def _ger(YKHO, LVAh):\n return ... | [
"0.7647544",
"0.74854106",
"0.7406816",
"0.7226857",
"0.721487",
"0.7059892",
"0.69713557",
"0.69652885",
"0.68853354",
"0.68498856",
"0.6845239",
"0.6838656",
"0.683052",
"0.6814957",
"0.6814957",
"0.6806536",
"0.6777519",
"0.6776329",
"0.675417",
"0.67368144",
"0.6689226",
... | 0.7751738 | 0 |
Returns self <= y | def LJE9(YKHO, LVAh):
return 1 - YKHO.gt(LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 <= Elif.x ** 2 + Elif.y ** 2",
"def rhDa(YKHO, LVAh):\n return 1 - YKHO.lt(LVAh)",
"def Zcf_(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 >= Elif.x ** 2 + Elif.y ** 2",
"def jmxi(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 > Elif.x *... | [
"0.7712549",
"0.7471368",
"0.74442613",
"0.74333876",
"0.72451806",
"0.69610465",
"0.69493896",
"0.6913926",
"0.6838152",
"0.68102074",
"0.68092567",
"0.68027353",
"0.6795027",
"0.67910564",
"0.67843527",
"0.6767478",
"0.6742666",
"0.67419136",
"0.6737069",
"0.6735821",
"0.67... | 0.7036661 | 5 |
Returns self < y | def D5g7(YKHO, LVAh):
return (YKHO - LVAh)._ltz() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWbp(YKHO, Elif):\n return YKHO.y < Elif.y or (not YKHO.y > Elif.y and YKHO.x < Elif.x)",
"def JWbp(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 < Elif.x ** 2 + Elif.y ** 2",
"def rhDa(YKHO, LVAh):\n return 1 - YKHO.lt(LVAh)",
"def D5g7(YKHO, WKvO, LVAh):\n return YKHO.le(WKvO, LVAh) and W... | [
"0.8192013",
"0.8107101",
"0.79201335",
"0.7781432",
"0.76688457",
"0.75860703",
"0.75636667",
"0.7492044",
"0.7480179",
"0.7467689",
"0.74646187",
"0.7455622",
"0.74427897",
"0.74427897",
"0.7411403",
"0.7411403",
"0.740588",
"0.740277",
"0.73811054",
"0.73806155",
"0.737833... | 0.75649625 | 6 |
Returns self == y | def cIT_(YKHO, LVAh):
return 1 - YKHO.ne(LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, LVAh):\n vexM = YKHO.compare(LVAh)\n return vexM",
"def xa14(YKHO, Elif):\n if YKHO.x == Elif.x and YKHO.y == Elif.y:\n return True\n else:\n return False\n pass",
"def xa14(YKHO, Elif):\n Z1Fi = YKHO.x == Elif.x\n IfnB = YKHO.y == Elif.y\n return Z1Fi and I... | [
"0.8355385",
"0.77769613",
"0.77367425",
"0.77367425",
"0.77257544",
"0.76997656",
"0.76812845",
"0.7634397",
"0.762615",
"0.7546791",
"0.75340766",
"0.7519",
"0.741281",
"0.7358739",
"0.7357912",
"0.7351526",
"0.7351526",
"0.7307372",
"0.7258089",
"0.7238714",
"0.7215591",
... | 0.7246933 | 19 |
Returns self != y | def d_5N(YKHO, LVAh):
by6d = YKHO - LVAh
by6d = type(by6d).stack([by6d, -by6d])
return by6d._ltz().sum(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return YKHO.x != Elif.x or YKHO.y != Elif.y",
"def Vdqg(YKHO, LVAh):\n if isinstance(LVAh, jetH):\n return YKHO._name != LVAh._name or YKHO._value != LVAh._value or YKHO._start != LVAh._start or (YKHO._end != LVAh._end)\n else:\n return True",
"def Vdqg(YKHO, Elif... | [
"0.7969515",
"0.79550064",
"0.7879952",
"0.75674444",
"0.7565495",
"0.7564373",
"0.7504307",
"0.7504307",
"0.7492106",
"0.7477315",
"0.7477315",
"0.7466425",
"0.74612075",
"0.7441007",
"0.74299884",
"0.74299884",
"0.74299884",
"0.74299884",
"0.74299884",
"0.74299884",
"0.7429... | 0.0 | -1 |
Computes the sign value of a tensor (0 is considered positive) | def Zihr(YKHO):
return 1 - 2 * YKHO._ltz() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zihr(vhpA):\n raise NotImplementedError",
"def l_vr(WKvO: type_alias.TensorLike, mWFP: str='nonzero_sign') -> ZylS.Tensor:\n with ZylS.name_scope(mWFP):\n WKvO = ZylS.convert_to_tensor(value=WKvO)\n a0GJ = ZylS.ones_like(WKvO)\n return ZylS.where(ZylS.greater_equal(WKvO, 0.0), a0GJ... | [
"0.8688876",
"0.8020817",
"0.73350376",
"0.72776",
"0.71012455",
"0.7001005",
"0.69773585",
"0.69760126",
"0.6954157",
"0.69462097",
"0.68638426",
"0.6846129",
"0.68455863",
"0.6840148",
"0.681499",
"0.6723042",
"0.6689427",
"0.64769393",
"0.6449525",
"0.6414176",
"0.6403147"... | 0.6835348 | 14 |
Compute a Rectified Linear function on the input tensor. | def QZir(YKHO):
return YKHO * YKHO.ge(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pq9v(WKvO):\n return max(0, WKvO)",
"def z8o0(YKHO, WKvO):\n with ZylS.name_scope('presoftmax_linear'):\n Ep8u = ZylS.shape(WKvO)[0]\n u54L = ZylS.shape(WKvO)[1]\n WKvO = ZylS.reshape(WKvO, [-1, YKHO.hidden_size])\n KeL5 = ZylS.matmul(WKvO, YKHO.shared_weights, transpose_b=T... | [
"0.5970563",
"0.588639",
"0.58455044",
"0.57528335",
"0.573016",
"0.5672835",
"0.5606219",
"0.5543441",
"0.5519835",
"0.54540956",
"0.53852",
"0.5361734",
"0.5357778",
"0.5347382",
"0.53225744",
"0.5321803",
"0.5249057",
"0.5242132",
"0.5223154",
"0.521976",
"0.52183104",
"... | 0.0 | -1 |
Filters queryset by the authenticated user | def k66M(YKHO):
return YKHO.model.objects.filter(subscription__owner=YKHO.request.user).distinct() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO, *qIxc, **B2fa):\n umWR = super().get_queryset(*qIxc, **B2fa).filter(user=YKHO.request.user)\n return umWR",
"def k66M(YKHO, QePW):\n umWR = super().get_queryset(QePW)\n return umWR.filter(user=QePW.user)",
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.u... | [
"0.8423304",
"0.8391054",
"0.838733",
"0.8149967",
"0.7963382",
"0.7937927",
"0.7909407",
"0.79084146",
"0.7890036",
"0.774387",
"0.77354693",
"0.7706081",
"0.7612861",
"0.75021136",
"0.74818945",
"0.74818945",
"0.7450472",
"0.73689824",
"0.7309137",
"0.7304479",
"0.72586757"... | 0.0 | -1 |
Construct an OffPolicyRLAlgorithm class. | def FIMM(YKHO, MU5J, Qabx, HaYv, KCX1, _vdl=False, FMQW=0.99, X7fo=20, j71d=None, I4ve=50, xItN=64, pKMm=int(10000.0), o2E0=1, ZAYv=1.0, HXQL=False, nbj2=True, N5SR=None):
YKHO.env_spec = MU5J
YKHO.policy = Qabx
YKHO.qf = HaYv
YKHO.replay_buffer = KCX1
YKHO.n_epoch_cycles = X7fo
YKHO.n_train_ste... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, h0HE='__label__', tspZ=0.1, io4a=100, tpio=100, VTcd=5, qtWj=5, tfZ6=1, V3hn=5, u8Mh=1, N77f='softmax', rLCY=0, UdxA=0, O9Ia=0, idx7=12, a1PO=0.0001, UKHL=0, tZ2K='utf-8'):\n YKHO.lr = tspZ\n YKHO.lr_update_rate = io4a\n YKHO.dim = tpio\n YKHO.ws = VTcd\n YKHO.epoch = qtWj\n YKHO.m... | [
"0.585678",
"0.57566017",
"0.5522687",
"0.53843707",
"0.53692234",
"0.52911294",
"0.5261529",
"0.52430874",
"0.52410984",
"0.5224469",
"0.52211624",
"0.5208351",
"0.5171106",
"0.5160015",
"0.51163393",
"0.51117873",
"0.5096557",
"0.50862664",
"0.50831383",
"0.5071074",
"0.507... | 0.49913856 | 32 |
Return data saved in the snapshot for this iteration. | def ZHlS(YKHO, WRKq, C57J):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnHK(YKHO) -> cuzp[str, ImMB]:\n YKHO.__logger.debug('Eva.data_snapshot called')\n return YKHO.__http_client.data_snapshot()",
"def QVrV(YKHO):\n nPrm = {'t': YKHO.sim.t, 'time': YKHO.time, 'vehicles': YKHO.sim.vehicles, 'stations': YKHO.sim.stations, 'state': YKHO.state, 'done': YKHO.is_done}\n ... | [
"0.75004965",
"0.7392499",
"0.69908816",
"0.69753265",
"0.6927988",
"0.6900747",
"0.6900747",
"0.6900747",
"0.68804044",
"0.6871595",
"0.6871595",
"0.6871595",
"0.6871595",
"0.6858777",
"0.68576086",
"0.68576086",
"0.68576086",
"0.6849394",
"0.6764887",
"0.6764887",
"0.676488... | 0.64540744 | 66 |
Test that the __repr__ returns the expected string. | def fcai(YKHO):
Aofo = str(ybMI())
tO9_ = '<SaturatedVapourPressureTable: t_min: {}; t_max: {}; t_increment: {}>'.format(183.15, 338.25, 0.1)
YKHO.assertEqual(Aofo, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4zp():\n Z9rn = Lr0q(4)\n assert Z9rn.__repr__() == 'Circle(4)'",
"def H4zp(YKHO, Mkmy, sWfS):\n assert repr(Mkmy) == sWfS",
"def H4zp(YKHO):\n YKHO.assertEqual(repr(YKHO.card), 'A of Spades')",
"def H4zp(YKHO):\n YKHO.assertEqual(repr(YKHO.deck), 'Deck of 52 cards.')",
"def H4zp(YKHO):... | [
"0.84488606",
"0.8367304",
"0.8118027",
"0.8027177",
"0.7913055",
"0.7902084",
"0.77371377",
"0.77266246",
"0.7684297",
"0.7648227",
"0.7643458",
"0.7641018",
"0.7561054",
"0.75464463",
"0.75418574",
"0.75004804",
"0.74947554",
"0.74875206",
"0.7480081",
"0.7434388",
"0.74266... | 0.0 | -1 |
Loads content from the .yaml file | def f9B0(nUeQ: Text):
with open(nUeQ) as ytgA:
return eJb6.load(ytgA, eJb6.FullLoader) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9B0(hGN5):\n from yaml import load, FullLoader\n return load(hGN5, Loader=FullLoader)",
"def f9B0(qaEx):\n with open(qaEx) as Fwbn:\n hGN5 = eJb6.load(Fwbn, Loader=eJb6.FullLoader)\n return hGN5",
"def jnN0(YKHO, pmON):\n with pmON.open('r') as nVrR:\n nPrm = f9B0(nVrR)\n Y... | [
"0.75512975",
"0.7452672",
"0.73025095",
"0.7236565",
"0.723366",
"0.71937925",
"0.7175745",
"0.7158273",
"0.7081697",
"0.706416",
"0.7013241",
"0.69512755",
"0.6909463",
"0.69061136",
"0.69010407",
"0.6862992",
"0.6861315",
"0.6846718",
"0.68331915",
"0.6832633",
"0.6817455"... | 0.7285358 | 3 |
Verifies the password with the hashed version of the password | def sNjs(M56W, kg40):
return Fm8B.pwd_context.verify(M56W, kg40) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNjs(YKHO, jTXt):\n return z8jj(YKHO.password_hash, jTXt)",
"def sNjs(jTXt, vhgk):\n cgqW = qzFd(jTXt)\n return FXSn.compare_digest(cgqW, vhgk)",
"def sNjs(jTXt, hash):\n NKcE = KYb0(WsL5.current_app.config['HASH_ALGORITHM'])\n return NKcE.verify(jTXt, hash)",
"def TGbE(YKHO, jTXt):\n r... | [
"0.8170109",
"0.8021272",
"0.79729545",
"0.7930665",
"0.78215545",
"0.7796895",
"0.77442235",
"0.7738284",
"0.76607555",
"0.7628723",
"0.76221764",
"0.76201296",
"0.7602849",
"0.75910705",
"0.7545537",
"0.7542424",
"0.751934",
"0.751934",
"0.751934",
"0.751934",
"0.751934",
... | 0.7447905 | 28 |
Gaussian Error Linear Unit (GELU) is a new type of activation function that can estimate any of the existing activation values such as Sigmoid, ReLU, ELU, tanh while providing superior learning. | def CKFj(pKvt):
yvT9 = 1 + ZylS.tanh(oyIN.sqrt(oyIN.pi) * (pKvt + 0.044715 * ZylS.pow(pKvt, 3)))
yvT9 *= 0.5 * pKvt
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vmco(input):\n return o8DQ.apply('Gelu', input.device, [input], approximate=False)",
"def Vmco(WKvO):\n return rBhd(WKvO)",
"def kncC(Oa1e, khtY, XkN1):\n WKvO = Oa1e.get_node(khtY.input('X')[0])\n yvT9 = WKvO * (fJ4t.const(0.5, dtype='float32') + Bchp.erf(WKvO * fJ4t.const(0.5 ** 0.5, dtype='f... | [
"0.75621027",
"0.7431084",
"0.73271376",
"0.72919774",
"0.7239625",
"0.71963245",
"0.71963245",
"0.71963245",
"0.71963245",
"0.71963245",
"0.71963245",
"0.71963245",
"0.71963245",
"0.71847886",
"0.7039584",
"0.700383",
"0.678312",
"0.674072",
"0.6735506",
"0.67328763",
"0.672... | 0.6913287 | 17 |
perform softmax, this is slightly different to the default softmax in tensorflow | def U_16(pKvt, jDK_=-1):
yvT9 = pKvt - ZylS.reduce_max(pKvt, axis=jDK_, keepdims=True)
aTqo = ZylS.exp(yvT9)
vg0C = aTqo / ZylS.reduce_sum(aTqo, axis=jDK_, keepdims=True)
return vg0C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=1, keepdims=True)",
"def N93T(WKvO):\n N61t = oyIN.sum(oyIN.exp(WKvO), axis=1)\n N61t = oyIN.expand_dims(N61t, axis=1)\n hcL3 = oyIN.divide(oyIN.exp(WKvO), N61t)\n return hcL3",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / ... | [
"0.8079552",
"0.80553985",
"0.8020616",
"0.80151814",
"0.7982914",
"0.7977513",
"0.793704",
"0.79321504",
"0.7920388",
"0.79125535",
"0.79017717",
"0.79017717",
"0.78836805",
"0.7881727",
"0.7871345",
"0.7871345",
"0.7871345",
"0.7871345",
"0.7871345",
"0.7871345",
"0.7871345... | 0.7552131 | 61 |
2 reshape last dimension of input tensor from n > [n, inp.shape[1]/n] | def nJFT(pKvt, exwG):
*yKcO, r8hN = VuBz(pKvt)
yvT9 = ZylS.reshape(pKvt, yKcO + [exwG, r8hN // exwG])
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gFhC(pKvt):\n *yKcO, r8hN, exwG = VuBz(pKvt)\n yvT9 = ZylS.reshape(pKvt, yKcO + [r8hN * exwG])\n return yvT9",
"def gFhC(pKvt):\n *yKcO, r8hN, exwG = VuBz(pKvt)\n yvT9 = ZylS.reshape(pKvt, yKcO + [r8hN * exwG])\n return yvT9",
"def VjTS(WKvO, exwG):\n iPPn = WKvO.get_shape().dims\n ... | [
"0.74011856",
"0.74011856",
"0.71523815",
"0.7100475",
"0.7057273",
"0.7048126",
"0.6899745",
"0.68313116",
"0.6741739",
"0.6631202",
"0.66274846",
"0.6624807",
"0.66114247",
"0.66114247",
"0.66114247",
"0.66111815",
"0.6583127",
"0.6561051",
"0.6561051",
"0.65291256",
"0.652... | 0.72413564 | 3 |
one stack or block with multihead attention and ff block | def XkN1(pKvt, rrBf, SDIR, GPtr):
with ZylS.variable_scope(rrBf):
jHsn = pKvt.shape[-1].value
CkYf = Xth3(pKvt, 'ln_1')
Fw3A, ZaSX = v2uf(CkYf, 'attn', jHsn, past=SDIR, config=GPtr)
yvT9 = Fw3A + pKvt
CkYf = Xth3(yvT9, 'ln_2')
vVET = ZcdJ(CkYf, 'mlp', jHsn * 4)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E4tv(cEm9, bVaX, tRwx, NlU1, iQSw, tpio=(1024, 1024, 1024), uOe2=16, d6pt=1):\n yVFQ = (tpio[0] / uOe2, tpio[1] / uOe2, tpio[2] / uOe2)\n kpsn = RsfQ.symbol.slice_axis(data=cEm9, axis=0, begin=0, end=tRwx)\n tUOj = RsfQ.sym.Reshape(bVaX, shape=(-3, -2))\n XYup = RsfQ.sym.FullyConnected(name='pair_p... | [
"0.6630847",
"0.6301414",
"0.6099973",
"0.5977877",
"0.59587246",
"0.58791524",
"0.5762132",
"0.5739169",
"0.5729132",
"0.5719356",
"0.5711061",
"0.56902385",
"0.5645238",
"0.5633464",
"0.5624794",
"0.5579361",
"0.5577352",
"0.55726933",
"0.5571347",
"0.5570089",
"0.5562015",... | 0.6139001 | 2 |
sets a new head of the linked list to be the given node | def NWbf(YKHO, ac0X: Node):
lHJN = YKHO.head
YKHO.head = ac0X
YKHO.head.next_node = lHJN
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NWbf(YKHO, Q6kx, sdCG):\n if sdCG in [Q6kx] + YKHO.children_recursive(Q6kx):\n tO9_ = 'future head %i is a (possibly indirect) child of %i'\n raise ValueError(tO9_ % (sdCG, Q6kx))\n if Q6kx <= 0 or sdCG < 0:\n raise IndexError()\n kJiB = YKHO._heads[:]\n kJiB[Q6kx - 1] = sdCG\n... | [
"0.7799535",
"0.7725687",
"0.72488606",
"0.71570104",
"0.7054193",
"0.7029424",
"0.6931657",
"0.69270885",
"0.69005203",
"0.69005203",
"0.69005203",
"0.69005203",
"0.69005203",
"0.6899239",
"0.6879037",
"0.6832339",
"0.6794643",
"0.6790538",
"0.6777206",
"0.67569387",
"0.6737... | 0.8215506 | 0 |
The identity block is the block that has no conv layer at shortcut. Arguments | def fIUL(YKHO, FRUf, Ot1W, KUnM, EtM5, XkN1, ivFb=1):
DZWo, MXwb, wMAF = KUnM
if DDLl.image_data_format() == 'channels_last':
z5f9 = 3
else:
z5f9 = 1
if XkN1 > 'z':
XkN1 = chr(ord(XkN1) - ord('z') + ord('A') - 1)
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.7128075",
"0.7022187",
"0.69112873",
"0.6884249",
"0.6846568",
"0.6822699",
"0.6821866",
"0.6803595",
"0.6800122",
"0.6784813",
"0.6770751",
"0.67161965",
"0.6714853",
"0.67141736",
"0.6663679",
"0.66245866",
"0.66224706",
"0.66224706",
"0.66083175",
"0.65988076",
"0.65481... | 0.6850563 | 4 |
A block that has a conv layer at shortcut. Arguments | def cxer(YKHO, FRUf, Ot1W, KUnM, EtM5, XkN1, FEri=(2, 2), ivFb=1):
DZWo, MXwb, wMAF = KUnM
if DDLl.image_data_format() == 'channels_last':
z5f9 = 3
else:
z5f9 = 1
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
FEri = (1, 1) if ivFb > 1 else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)",
"def mjQN(YKHO, EcVT, KUnM, eHNT, KCHu, EtM5, XkN1):\n jZbr = 'res' + str(EtM5) + XkN1 + '_branch'\n tagR = 'bn' + str(EtM5) + XkN1 + '_branch'\n LedO = EcVT\n nK5p, Xf5Z, uN8x = KUnM\n EcVT = yHwh(filters=nK5p,... | [
"0.72210574",
"0.6797653",
"0.67508686",
"0.673468",
"0.6702727",
"0.66709983",
"0.66706705",
"0.6638113",
"0.6602907",
"0.6602907",
"0.65983295",
"0.65591985",
"0.6556552",
"0.6553555",
"0.6531844",
"0.65101147",
"0.650745",
"0.6479069",
"0.6421294",
"0.64118993",
"0.6391051... | 0.6210063 | 42 |
call for ResNet50, ResNet101 or ResNet152. | def nrOS(YKHO, g4y1, oIhP='c5', **B2fa):
if DDLl.image_data_format() == 'channels_last':
z5f9 = 3
else:
z5f9 = 1
ivFb = YKHO.dilation
WKvO = fhcK.ZeroPadding2D(padding=(3, 3), name='conv1_pad')(g4y1)
WKvO = fhcK.Conv2D(64, (7, 7), strides=(2, 2), padding='valid', kernel_initializer='... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWYJ():\n return FYrf.resnet152(pretrained=True)",
"def K0Xe(**B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 23, 3], **B2fa)\n return C3ST",
"def uwZX(**B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST",
"def uwZX(**B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST",
... | [
"0.73285013",
"0.7169848",
"0.71270514",
"0.71270514",
"0.7047204",
"0.6935936",
"0.6908594",
"0.6895498",
"0.6894643",
"0.6874172",
"0.68439186",
"0.68203944",
"0.6648259",
"0.66323125",
"0.66323125",
"0.66323125",
"0.66323125",
"0.6628184",
"0.6621562",
"0.66200966",
"0.658... | 0.0 | -1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, cPIs):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80885184",
"0.80885184",
"0.805514",
"0.7983044",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, cPIs):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Get form process mapper by id. | def NMoC(W_lR):
try:
return (k_b5.get_mapper(W_lR), qed_.OK)
except qTNt as err:
return (XObx.error, XObx.status_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xj9H(Emd4, sy2e) -> xltx:\n return Emd4.query.filter(xltx.id == sy2e).first()",
"def pAlw(Emd4, _gHB) -> xltx:\n return Emd4.query.filter(nWJV(xltx.form_id == _gHB)).first()",
"def OAxn(Emd4, sy2e) -> xltx:\n return Emd4.query.filter(nWJV(xltx.id == sy2e, xltx.status == str(Fme5.Active.value))).fi... | [
"0.81324744",
"0.74157876",
"0.6764169",
"0.57165146",
"0.5708167",
"0.5707011",
"0.56617624",
"0.5577138",
"0.55048394",
"0.54706615",
"0.54040277",
"0.5401317",
"0.53922546",
"0.5378217",
"0.53765863",
"0.5335342",
"0.5287182",
"0.5236855",
"0.51899993",
"0.51656705",
"0.51... | 0.72150403 | 2 |
This is the constructor for a Serializer, which will serialize a midi given the filename. It will generate buckets for the different phrases in it and generate a markov chain of the different phrases in them. | def FIMM(YKHO, Ux0P, PJWX=False):
YKHO.filename = Ux0P
YKHO.markov_chain = hL9B()
YKHO.initial_notes = []
YKHO.bpm = None
YKHO.song_length = None
YKHO.phraseLength = None
YKHO._parse(verbose=PJWX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, pmON: str) -> None:\n YKHO.path = pmON\n YKHO.path_token_idx_corpus = Hy7s.path.join(pmON, 'processed_corpus/token_idx_corpus.txt')\n YKHO.path_token_terms_idxs = Hy7s.path.join(pmON, 'processed_corpus/token_terms_idxs.txt')\n YKHO.path_tf_tokens = Hy7s.path.join(pmON, 'frequencies/tf_to... | [
"0.60947126",
"0.59937733",
"0.59885854",
"0.5966946",
"0.5927021",
"0.5846304",
"0.5830441",
"0.5800224",
"0.5792673",
"0.57770985",
"0.57458854",
"0.5722488",
"0.5695499",
"0.56746894",
"0.56612754",
"0.56236064",
"0.55936116",
"0.55885524",
"0.5581206",
"0.5574399",
"0.554... | 0.6294542 | 0 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
j5sA = input('can you please choose a city from chicago, new york city, washington ')
while j5sA not in OerS.keys():
print('please choose correct city name')
cKBo = input('can you please choose a city from chicago, new york ci... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.6671997",
"0.6536215",
"0.646006",
"0.6373503",
"0.634963",
"0.6310927",
"0.62878346",
"0.6260315",
"0.6230766",
"0.6212286",
"0.62057954",
"0.61819345",
"0.6171279",
"0.617014",
"0.6159775",
"0.6159162",
"0.6154152",
"0.6145805",
"0.61331624",
"0.6105786",
"0.6103557",
... | 0.58829975 | 45 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['start time'] = rLdf.to_datetime(jQ3Z['start time'])
jQ3Z['month'] = jQ3Z['start time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['start time'].dt.day_name()
if x0eS != 'all':
X_bn = ['january', 'february', 'march', 'april', 'may', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.76218694 | 78 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
X_bn = ['january', 'february', 'march', 'april', 'may', 'june']
x0eS = jQ3Z['month'].mode()[0]
print('most coommon month is: {months [month]}')
CjKC = jQ3Z['day_of_week'].mode([0])
print('most co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80219704",
"0.8020818",
"0.7913993",
"0.78247195",
"0.78199595",
"0.7812343",
"0.7763912",
"0.77388734",
"0.7734508",
"0.77323586",
"0.7684857",
"0.7667099",
"0.7649721",
"0.7642678",
"0.7637972",
"0.76349765",
"0.762374",
"0.76213294",
"0.7611406",
"0.7598117",
"0.7581664... | 0.7542168 | 25 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
eEyK = jQ3Z['start station'].mode(0)
print('most coommon start station is: [most_start_station]')
xSkw = jQ3Z['start station'] + ' , ' + jQ3Z['end station'].mode(0)
print('most frequent combination ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.731165 | 22 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
RGHr = jQ3Z['Trip Duration'].sum()
print('total trave time:', RGHr, 'seconds, or', RGHr / 3600, 'hour')
IvhD = jQ3Z['Trip Duration'].mean()
print('mean trave time:', IvhD, 'seconds, or', IvhD / 3600, 'hour')
print('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.8143788",
"0.8025597",
"0.7950089",
"0.7937902",
"0.79316837",
"0.7927231",
"0.7915687",
"0.7914976",
"0.79086065",
"0.79061425",
"0.79011726",
"0.7892046",
"0.7890013",
"0.7887204",
"0.7885618",
"0.7884607",
"0.78830457",
"0.7874646",
"0.78690827",
"0.78669995",
"0.786436... | 0.8004826 | 2 |
GetOutput(itkMeshSourceMD2 self) > itkMeshD2 GetOutput(itkMeshSourceMD2 self, unsigned int idx) > itkMeshD2 | def lKgj(YKHO, *qIxc) -> 'itkMeshD2 *':
return O8Nl.itkMeshSourceMD2_GetOutput(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lKgj(YKHO, *qIxc) -> 'itkMeshD2 *':\n return VW7C.itkVTKPolyDataReaderMD2_Superclass_GetOutput(YKHO, *qIxc)",
"def lKgj(YKHO, *qIxc) -> 'itkMeshF2 *':\n return O8Nl.itkMeshSourceMF2_GetOutput(YKHO, *qIxc)",
"def lKgj(YKHO, *qIxc) -> 'itkPointSetD2 *':\n return O8Nl.itkMeshSourcePSD2_GetOutput(YKHO... | [
"0.7293018",
"0.72541255",
"0.7158855",
"0.70990807",
"0.6907669",
"0.68959236",
"0.685535",
"0.68515456",
"0.6817617",
"0.6721697",
"0.66275924",
"0.6499262",
"0.64549446",
"0.6446446",
"0.6421495",
"0.6414436",
"0.6413012",
"0.64019996",
"0.63796735",
"0.6310147",
"0.626708... | 0.7765747 | 0 |
SetOutput(itkMeshSourceMD2 self, itkMeshD2 output) | def lfpV(YKHO, hlel: 'itkMeshD2') -> 'void':
return O8Nl.itkMeshSourceMD2_SetOutput(YKHO, hlel) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lfpV(YKHO, hlel: 'itkMeshD2') -> 'void':\n return VW7C.itkVTKPolyDataReaderMD2_Superclass_SetOutput(YKHO, hlel)",
"def lfpV(YKHO, hlel: 'itkMeshF2') -> 'void':\n return O8Nl.itkMeshSourceMF2_SetOutput(YKHO, hlel)",
"def lfpV(YKHO, hlel: 'itkMeshUS2') -> 'void':\n return O8Nl.itkMeshSourceMUS2_SetO... | [
"0.85408777",
"0.8436794",
"0.8156087",
"0.8082966",
"0.8075073",
"0.80591136",
"0.8037396",
"0.8017616",
"0.7772682",
"0.7687711",
"0.75678295",
"0.7477237",
"0.7435119",
"0.7377135",
"0.73440486",
"0.73304504",
"0.7190394",
"0.7167892",
"0.7145344",
"0.7143531",
"0.71410066... | 0.9047114 | 0 |
GraftOutput(itkMeshSourceMD2 self, itkDataObject output) | def zb5L(YKHO, *qIxc) -> 'void':
return O8Nl.itkMeshSourceMD2_GraftOutput(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zb5L(YKHO, *qIxc) -> 'void':\n return O8Nl.itkMeshSourceMF2_GraftOutput(YKHO, *qIxc)",
"def zb5L(YKHO, *qIxc) -> 'void':\n return O8Nl.itkMeshSourceMD3_GraftOutput(YKHO, *qIxc)",
"def zb5L(YKHO, *qIxc) -> 'void':\n return O8Nl.itkMeshSourceMUS2_GraftOutput(YKHO, *qIxc)",
"def zb5L(YKHO, *qIxc) -... | [
"0.813137",
"0.8047807",
"0.79801047",
"0.7901101",
"0.7811657",
"0.77159315",
"0.7714399",
"0.75027156",
"0.7500757",
"0.7483299",
"0.7471552",
"0.74177057",
"0.7356151",
"0.73276156",
"0.7275761",
"0.72537553",
"0.725138",
"0.7121262",
"0.7118158",
"0.7051659",
"0.6980417",... | 0.85767597 | 0 |
GraftNthOutput(itkMeshSourceMD2 self, unsigned int idx, itkDataObject output) | def cq5Y(YKHO, or8S: 'unsigned int', hlel: 'itkDataObject') -> 'void':
return O8Nl.itkMeshSourceMD2_GraftNthOutput(YKHO, or8S, hlel) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cq5Y(YKHO, or8S: 'unsigned int', hlel: 'itkDataObject') -> 'void':\n return O8Nl.itkMeshSourceMUS2_GraftNthOutput(YKHO, or8S, hlel)",
"def cq5Y(YKHO, or8S: 'unsigned int', hlel: 'itkDataObject') -> 'void':\n return O8Nl.itkMeshSourceMF2_GraftNthOutput(YKHO, or8S, hlel)",
"def cq5Y(YKHO, or8S: 'unsign... | [
"0.8895929",
"0.8845778",
"0.87717694",
"0.87607586",
"0.87497526",
"0.8741091",
"0.86390656",
"0.8607202",
"0.8592239",
"0.8582708",
"0.85725385",
"0.85713667",
"0.8549169",
"0.8525887",
"0.84945935",
"0.8478014",
"0.83609694",
"0.83421946",
"0.8329922",
"0.8310773",
"0.8295... | 0.9096824 | 0 |
cast(itkLightObject obj) > itkMeshSourceMD2 | def YWvJ(YEnM: 'itkLightObject') -> 'itkMeshSourceMD2 *':
return O8Nl.itkMeshSourceMD2_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SyZY(YEnM: 'itkLightObject') -> 'itkMeshSourceMD2 *':\n return O8Nl.itkMeshSourceMD2_cast(YEnM)",
"def Kjvt(YEnM: 'itkLightObject') -> 'itkMeshSourceMF2 *':\n return O8Nl.itkMeshSourceMF2_cast(YEnM)",
"def huXH(YEnM: 'itkLightObject') -> 'itkMeshSourceMD3 *':\n return O8Nl.itkMeshSourceMD3_cast(YE... | [
"0.8996953",
"0.84341466",
"0.83416533",
"0.83237725",
"0.8267698",
"0.80988115",
"0.80505294",
"0.7952978",
"0.7903292",
"0.78473246",
"0.7822463",
"0.7807682",
"0.78034276",
"0.7794012",
"0.7734233",
"0.7728149",
"0.7705135",
"0.76785487",
"0.7651541",
"0.7634923",
"0.76227... | 0.8830349 | 1 |
New() > itkMeshSourceMD2 Create a new object of the class itkMeshSourceMD2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, etc. The nam... | def oW_4(*qIxc, **PECO):
YEnM = WuIs.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = N7v8.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = g69d.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7607745",
"0.73963547",
"0.73528904",
"0.7332097",
"0.7224885",
"0.71391606",
"0.7101255",
"0.7032626",
"0.69623244",
"0.6959722",
"0.687684",
"0.6871987",
"0.6844981",
"0.6781399",
"0.6766016",
"0.6749919",
"0.6704135",
"0.66129017",
"0.6598685",
"0.655854",
"0.65113515",... | 0.7935427 | 0 |