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 |
|---|---|---|---|---|---|---|
Get column values from row. | def gXxG(YKHO, d6pt: Index, ZLJ_=None, eK7y=False):
ZLJ_ = Nq_7(ZLJ_, YKHO._columns)
or8S = YKHO.index_location(d6pt)
if eK7y:
rdlD = []
for iVRZ in ZLJ_:
fvDH = YKHO.column_location(iVRZ)
rdlD.append(YKHO._data[or8S][fvDH])
return rdlD
else:
rdlD ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHcv(YKHO, rdlD):\n U5bT = []\n for r845 in range(YKHO.shapeColumn):\n U5bT.append(YKHO.buttons[rdlD][r845].text())\n return U5bT",
"def xfPt(YKHO, fvDH: str) -> gyIm:\n yDqo, hksT = YKHO._get_col_dtype_loc(fvDH)\n return YKHO._data[yDqo][:, hksT]",
"def ulgM(YKHO, rdlD):\n for VmP... | [
"0.7345508",
"0.72079426",
"0.7114128",
"0.71111465",
"0.709266",
"0.69657457",
"0.69155985",
"0.6825146",
"0.6765976",
"0.673627",
"0.66913944",
"0.66166276",
"0.6583556",
"0.64681995",
"0.6422054",
"0.63940936",
"0.6393969",
"0.6377255",
"0.63697493",
"0.63642657",
"0.63604... | 0.0 | -1 |
Iterate rows with values as lists. | def wsbD(YKHO, I1CP=True):
for or8S, rdlD in zip(YKHO.index, YKHO._data):
if I1CP:
yield (or8S, list(rdlD))
else:
yield list(rdlD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xs5F(YKHO, *qIxc):\n Q_Ek = []\n for d7pR in qIxc:\n if d7pR in YKHO._column_translations:\n Q_Ek += YKHO._column_translations[d7pR].inputs()\n else:\n Q_Ek.append(d7pR)\n for Iz2h in YKHO.iter_rows_raw(*Q_Ek):\n hkxX = [Iz2h[0], Iz2h[1]]\n for d7pR in... | [
"0.73756903",
"0.71533924",
"0.7114714",
"0.6888027",
"0.6808713",
"0.67274874",
"0.67219156",
"0.65170556",
"0.6487671",
"0.64483136",
"0.64100844",
"0.63937354",
"0.6373241",
"0.63730186",
"0.6298312",
"0.62536573",
"0.62525684",
"0.6238389",
"0.61866456",
"0.61799157",
"0.... | 0.57509696 | 51 |
Iterate rows with values as dicts. | def m8LY(YKHO, I1CP=True) -> jd6F[cuzp[OciN, ImMB], None, None]:
for d6pt in YKHO.index:
rdlD = {'index': d6pt} if I1CP else {}
for iVRZ in YKHO._columns:
rdlD[iVRZ] = YKHO.get_cell(d6pt, iVRZ)
yield rdlD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FkCx(YKHO):\n WRKq = iter(YKHO)\n MOPg = next(WRKq)\n for rdlD in WRKq:\n yield dict(zip(MOPg, rdlD))",
"def nQ3j(rdlD, uPxI):\n return dict(zip(uPxI.fields(), rdlD))",
"def Vs4Q(YKHO):\n ZLJ_ = YKHO.columns()\n if YKHO._default_index:\n for rdlD in YKHO._df.itertuples(index... | [
"0.69744766",
"0.6617032",
"0.65347224",
"0.64995223",
"0.64995223",
"0.64094275",
"0.64094275",
"0.63850874",
"0.6368406",
"0.6345039",
"0.6329642",
"0.63011974",
"0.630039",
"0.61753786",
"0.61750656",
"0.6167536",
"0.6159854",
"0.61181295",
"0.6091897",
"0.6058906",
"0.605... | 0.6602357 | 2 |
Convert table to list representation. | def mFWN(YKHO, I1CP=True):
g75F = []
for d6pt in YKHO.index:
rdlD = U8Lr()
if I1CP:
rdlD['index'] = d6pt
for iVRZ in YKHO._columns:
rdlD[iVRZ] = YKHO.get_cell(d6pt, iVRZ)
g75F.append(rdlD)
return g75F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l6w0(YKHO):\n return YKHO.rep.entries()",
"def mFWN(YKHO):\n return nASC.register(CwDs.Series.to_list)(YKHO)",
"def mFWN(YKHO) -> list:\n return YKHO.A.tolist()",
"def lovD(YKHO):\n U5bT = []\n for tTpl in YKHO:\n U5bT.append(tTpl)\n return U5bT",
"def lovD(YKHO, TLbF=0):\n ... | [
"0.64304966",
"0.635336",
"0.63334006",
"0.6188469",
"0.6163717",
"0.6119067",
"0.61180836",
"0.6104574",
"0.61043835",
"0.6098932",
"0.60836774",
"0.6069911",
"0.6054045",
"0.6023221",
"0.6018971",
"0.6001493",
"0.599934",
"0.5967079",
"0.59374005",
"0.5933858",
"0.592881",
... | 0.5661426 | 47 |
Group a table by ``column`` and return a list of grouped Tables. | def tSzy(YKHO, tyNF: Table, iVRZ: Column) -> x1iM[TQJD]:
YKHO._requires_table(tyNF)
moMn = tyNF.group_by_column(iVRZ)
YKHO.logger.info('Found %s groups', len(moMn))
return moMn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCTM(YKHO, iVRZ):\n bf9h = YKHO.copy()\n bf9h.sort_by_column(iVRZ)\n fvDH = YKHO.column_location(iVRZ)\n moMn = wk71(bf9h.data, TU9R(fvDH))\n Aofo = []\n bf9h.clear()\n for bGrB, uOe2 in moMn:\n tyNF = bf9h.copy()\n tyNF.append_rows(uOe2)\n Aofo.append(tyNF)\n retur... | [
"0.85513383",
"0.6532524",
"0.6312355",
"0.61600953",
"0.6026099",
"0.5568698",
"0.53542984",
"0.5292979",
"0.5158976",
"0.5114148",
"0.50809896",
"0.5067889",
"0.5056088",
"0.50313807",
"0.5024239",
"0.50111103",
"0.49159738",
"0.49159738",
"0.48787895",
"0.48526627",
"0.482... | 0.8990111 | 0 |
Remove all rows from a table which have only ``None`` values. | def DVDx(YKHO, tyNF: Table):
YKHO._requires_table(tyNF)
lsmZ = []
for or8S, rdlD in tyNF.iter_lists():
if all((BWXx is None for BWXx in rdlD)):
lsmZ.append(or8S)
tyNF.delete_rows(lsmZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gica(YKHO, tyNF: Table):\n YKHO._requires_table(tyNF)\n lsmZ = []\n for or8S in reversed(tyNF.index):\n rdlD = tyNF[or8S]\n if any((BWXx is not None for BWXx in rdlD)):\n break\n lsmZ.append(or8S)\n tyNF.delete_rows(lsmZ)",
"def DiBD(jQ3Z):\n YQhc = jQ3Z.filter(... | [
"0.78526706",
"0.65610045",
"0.6503689",
"0.64150983",
"0.6410111",
"0.6358219",
"0.629917",
"0.6294147",
"0.6225571",
"0.6208026",
"0.5998382",
"0.598361",
"0.594039",
"0.5921602",
"0.5906316",
"0.58945847",
"0.5880637",
"0.58771354",
"0.5853974",
"0.5847558",
"0.5808685",
... | 0.818738 | 0 |
Remove all rows from the end of a table which have only ``None`` as values. | def Gica(YKHO, tyNF: Table):
YKHO._requires_table(tyNF)
lsmZ = []
for or8S in reversed(tyNF.index):
rdlD = tyNF[or8S]
if any((BWXx is not None for BWXx in rdlD)):
break
lsmZ.append(or8S)
tyNF.delete_rows(lsmZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVDx(YKHO, tyNF: Table):\n YKHO._requires_table(tyNF)\n lsmZ = []\n for or8S, rdlD in tyNF.iter_lists():\n if all((BWXx is None for BWXx in rdlD)):\n lsmZ.append(or8S)\n tyNF.delete_rows(lsmZ)",
"def filter(YKHO):\n YKHO.data = YKHO.data.loc[~YKHO.data.isnull().any(1), :]",
... | [
"0.7964169",
"0.62886345",
"0.6188555",
"0.60982853",
"0.6042587",
"0.59561265",
"0.5938961",
"0.5919667",
"0.5919299",
"0.59012693",
"0.58940977",
"0.58505476",
"0.5836177",
"0.58201474",
"0.57514447",
"0.56925017",
"0.5658195",
"0.5619252",
"0.5596895",
"0.55947787",
"0.556... | 0.8001879 | 0 |
Create new untitled notebook at 'path' Server base URL is 'url' Returns name of the new notebook file. | def druI(bD7m, pmON, jth9=None):
ZWCE = [GPal['name'] for GPal in uhzR(bD7m, pmON) if GPal['type'] == 'notebook']
d7pR = pmON
if isinstance(d7pR, QMSQ):
d7pR = d7pR.encode('utf-8')
zZHE = TDhU(bD7m, 'api/notebooks', NCC9(d7pR)).strip('/')
if jth9 is not None:
nPrm = qQXR.dumps({'copy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNLb(YKHO, pmON='', DMw4='', YBcr=''):\n pmON = pmON.strip('/')\n if not YKHO.dir_exists(pmON):\n raise VrQA(404, 'No such directory: %s' % pmON)\n C3ST = {}\n if DMw4:\n C3ST['type'] = DMw4\n if YBcr == '.ipynb':\n C3ST.setdefault('type', 'notebook')\n else:\n C3S... | [
"0.6608155",
"0.60415953",
"0.5997468",
"0.5932369",
"0.5903256",
"0.58528847",
"0.5790085",
"0.5648391",
"0.55989397",
"0.5560958",
"0.55255204",
"0.55201197",
"0.54570735",
"0.5451196",
"0.54240686",
"0.54012394",
"0.5374578",
"0.53085756",
"0.53085756",
"0.52815825",
"0.51... | 0.81313026 | 0 |
Return an iterator which yields the paths matching a pathname pattern. The pattern may contain simple shellstyle wildcards a la fnmatch. However, unlike fnmatch, filenames starting with a dot are special cases that are not matched by '' and '?' patterns. If recursive is true, the pattern '' will match any files and zer... | def vcsT(uvd8):
TLI7, aPr_ = Hy7s.path.split(uvd8)
if not YhjU.has_magic(uvd8):
if aPr_:
if Hy7s.path.lexists(uvd8):
yield uvd8
else:
raise FileNotFoundError
elif Hy7s.path.isdir(TLI7):
yield uvd8
else:
raise... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jkkx(pmON, mXDZ):\n for tk5Y, iIh5, iumf in Hy7s.walk(pmON, followlinks=True):\n for Ux0P in jlVJ.filter(iumf, mXDZ):\n yield Hy7s.path.join(tk5Y, Ux0P)",
"def A99F(pmON, mXDZ):\n for tk5Y, iIh5, iumf in Hy7s.walk(pmON):\n for Ux0P in jlVJ.filter(iumf, mXDZ):\n yield... | [
"0.7470483",
"0.724167",
"0.7206091",
"0.7170805",
"0.7144289",
"0.7060169",
"0.7059605",
"0.70567816",
"0.70107704",
"0.69938034",
"0.69640553",
"0.6933802",
"0.68447554",
"0.6841112",
"0.67750823",
"0.67699903",
"0.67241395",
"0.6652444",
"0.6640153",
"0.6589862",
"0.654365... | 0.63602096 | 31 |
Rotate the camera so that +z is up (Default vpython scene is +y up) | def oGNt(F6jf):
"""
There is an interaction between up and forward, the direction that the
camera is pointing. By default, the camera points in the -z direction
vector(0,0,-1). In this case, you can make the x or y axes (or anything
between) be the up vector, but you cannot make the z axis be the up... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def URYo(lbHk):\n KUch.vup3d(lbHk)",
"def umyf(YKHO):\n V9Fl = YKHO.MV\n V9Fl[:3, 1] = (0, 0, 1)\n V9Fl[2, 0] = 0\n V9Fl[2, 2] = 0\n jzdc = V9Fl[0, 0]\n Fg_i = oyIN.sqrt(1 - jzdc ** 2)\n if V9Fl[1, 0] < 0:\n Fg_i = -Fg_i\n V9Fl[1, 0] = Fg_i\n V9Fl[0, 2] = Fg_i\n V9Fl[1, 2]... | [
"0.7430334",
"0.7009169",
"0.7009169",
"0.64886934",
"0.6455609",
"0.64167166",
"0.6410739",
"0.63931197",
"0.6271744",
"0.6225299",
"0.6166877",
"0.6164807",
"0.6145292",
"0.6120838",
"0.6093956",
"0.6093271",
"0.6072405",
"0.60669416",
"0.6060744",
"0.60481805",
"0.60113543... | 0.66587967 | 3 |
Fill NaN with zero. | def z7i3(jQ3Z):
jQ3Z = jQ3Z.fillna(0)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UZXl(a1PO):\n return a1PO.float().fill_(float('-inf')).type_as(a1PO)",
"def IdSb(Oa1e, khtY, XkN1):\n WKvO = Oa1e.get_node(khtY.input('X')[0])\n yDqo = khtY.attr('dtype')\n yDqo = ON1p(yDqo)\n BWXx = fJ4t.const(0, dtype=yDqo)\n yvT9 = Bchp.transform.full_like(WKvO, BWXx).astype(yDqo)\n O... | [
"0.69296664",
"0.68928945",
"0.6783993",
"0.6768336",
"0.673804",
"0.66560954",
"0.6619058",
"0.6479309",
"0.6471661",
"0.638369",
"0.6302883",
"0.6270129",
"0.62374",
"0.6225682",
"0.6204576",
"0.619489",
"0.61801636",
"0.61632276",
"0.6141827",
"0.60993683",
"0.6081503",
... | 0.78565556 | 0 |
Fill NaN with previous values. | def Rep7(jQ3Z):
jQ3Z = jQ3Z.fillna(method='ffill')
jQ3Z = jQ3Z.fillna(method='bfill').fillna(0)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hr9Z(jQ3Z):\n return jQ3Z.fillna(method='ffill', axis=0)",
"def x7Dv(k0lF):\n noZV = oyIN.arange(k0lF.shape[0])\n W3Xw = oyIN.where(oyIN.isfinite(k0lF))\n k0lF[oyIN.isnan(k0lF)] = oyIN.interp(noZV[oyIN.isnan(k0lF)], noZV[W3Xw], k0lF[W3Xw])\n return k0lF",
"def Gdo6(YKHO, BWXx=None, NKcE=None... | [
"0.74325144",
"0.72073084",
"0.6924598",
"0.6811489",
"0.6752172",
"0.6750189",
"0.6748046",
"0.6673897",
"0.66647804",
"0.66059715",
"0.65565443",
"0.6540866",
"0.6376292",
"0.6331262",
"0.63224936",
"0.6284117",
"0.6249076",
"0.62287915",
"0.6224946",
"0.61513656",
"0.61431... | 0.7278524 | 1 |
Remove any type of punctuation and the words and then split on whitespace | def gkwq(l5Ny):
ogdh = ZbWC.compile(S8mS)
return ogdh.sub(' ', l5Ny).split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGQR(l5Ny):\n wAJt = ZbWC.compile('\\\\W*')\n return [KCHu.lower() for KCHu in wAJt.split(l5Ny) if KCHu != '']",
"def b0j5(l5Ny):\n gryw = str.maketrans(vIwR.punctuation, ' ' * len(vIwR.punctuation))\n l5Ny = l5Ny.translate(gryw)\n return ZbWC.split('\\\\s+', l5Ny)",
"def MDO3(l5Ny: str) -> ... | [
"0.7764153",
"0.7578712",
"0.74054563",
"0.7397258",
"0.739063",
"0.7379701",
"0.73594034",
"0.7351419",
"0.7346505",
"0.73402655",
"0.73402655",
"0.7331885",
"0.7299199",
"0.72888243",
"0.7285937",
"0.7225834",
"0.7219664",
"0.71976674",
"0.717803",
"0.71773326",
"0.71773326... | 0.7616074 | 1 |
Remove any type of punctuation and the words contained in the global variable common_words and then split on whitespace | def wr3U(l5Ny):
yzSa = ' | '.join(kaX9)
ogdh = ZbWC.compile(S8mS + '| ' + yzSa + ' ')
V22M = ogdh.sub(' ', ogdh.sub(' ', l5Ny)).split()
s2mk = []
for YRbF in range(len(V22M) - 1):
cntZ = V22M[YRbF]
CsFy = V22M[YRbF + 1]
s2mk.append(' '.join([cntZ, CsFy]))
return s2mk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0SS(V22M):\n s2mk = []\n try:\n for eOtH in V22M:\n eOtH = ZbWC.sub('[\\\\W\\\\d_]', ' ', eOtH)\n s2mk.append(eOtH)\n except:\n eOtH = ''\n s2mk.append(eOtH)\n return s2mk",
"def vGQR(l5Ny):\n wAJt = ZbWC.compile('\\\\W*')\n return [KCHu.lower() f... | [
"0.6997493",
"0.69969183",
"0.69742167",
"0.6832428",
"0.6822094",
"0.67601043",
"0.67574143",
"0.6756985",
"0.67543316",
"0.6739854",
"0.67051816",
"0.66922736",
"0.6691624",
"0.66914135",
"0.66914135",
"0.66914135",
"0.66914135",
"0.66914135",
"0.66914135",
"0.6681939",
"0.... | 0.70328444 | 0 |
Returns the last animation from motion folder. | def i9LP(YKHO) -> str:
return max(SC2F.glob(FvKo), key=Hy7s.path.getmtime) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HfMd(YKHO) -> a9eO.Surface:\n return YKHO.__animation_dict[YKHO.__animation_key][-1]",
"def Xiid(YKHO) -> str:\n return YKHO.move_history[-1][0]",
"def FrVQ(YKHO):\n if YKHO.last != None:\n return YKHO.last.filename\n else:\n return None",
"def Xiid(YKHO):\n if len(YKHO.moves... | [
"0.70536137",
"0.6626715",
"0.64376235",
"0.6289931",
"0.62253004",
"0.6189322",
"0.6166485",
"0.6134241",
"0.61204666",
"0.6025072",
"0.60086966",
"0.60028607",
"0.5978436",
"0.5936558",
"0.59213287",
"0.5916931",
"0.591159",
"0.5884262",
"0.58586836",
"0.5853098",
"0.584963... | 0.61035115 | 9 |
Clears the gradients in all the modules parameters | def frhb(YKHO):
for XP5J, Ro40, Ty9i, EbwU, KOtB in YKHO.params:
Ro40.zero_() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None",
"def frhb(YKHO):\n for k78t in YKHO.param():\n k78t.zero_grad()",
"def YP7j(YKHO):\n YKHO.g_optimizer.zero_grad()\n YKHO.d_optimizer.zero_grad()\n YKHO.dr_optimizer.zero_grad()",
"def YP7j(YKHO):\n YKHO.g_optimize... | [
"0.7699398",
"0.7374041",
"0.70619255",
"0.70145935",
"0.70145935",
"0.70145935",
"0.6994333",
"0.6987146",
"0.69703895",
"0.69299877",
"0.69264627",
"0.6923094",
"0.68966067",
"0.6819994",
"0.68010116",
"0.6771016",
"0.67652756",
"0.66285706",
"0.66206473",
"0.65345746",
"0.... | 0.6764791 | 17 |
Clears the gradients in all the modules parameters | def frhb(YKHO):
for XP5J, Ro40, Ty9i, EbwU, KOtB in YKHO.params:
Ro40.zero_() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None",
"def frhb(YKHO):\n for k78t in YKHO.param():\n k78t.zero_grad()",
"def YP7j(YKHO):\n YKHO.g_optimizer.zero_grad()\n YKHO.d_optimizer.zero_grad()\n YKHO.dr_optimizer.zero_grad()",
"def YP7j(YKHO):\n YKHO.g_optimize... | [
"0.7699398",
"0.7374041",
"0.70619255",
"0.70145935",
"0.70145935",
"0.70145935",
"0.6994333",
"0.6987146",
"0.69703895",
"0.69299877",
"0.69264627",
"0.6923094",
"0.68966067",
"0.6819994",
"0.68010116",
"0.6771016",
"0.67652756",
"0.66285706",
"0.66206473",
"0.65345746",
"0.... | 0.6764791 | 18 |
Rotate an array to the right by k steps, where k is nonnegative. | def jW5J(xYvp, G1Hx):
exwG = len(xYvp)
if G1Hx == 0:
return xYvp
if exwG < 2:
return xYvp
G1Hx = G1Hx % exwG
zSFg = [0] * exwG
for YRbF in range(exwG):
r845 = (YRbF + G1Hx) % exwG
zSFg[r845] = xYvp[YRbF]
return zSFg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XKfa(ezWE, G1Hx):\n ezWE[:] = ezWE[len(ezWE) - G1Hx:] + ezWE[:len(ezWE) - G1Hx]",
"def XKfa(ezWE: list, G1Hx: int):\n return ezWE[-G1Hx:] + ezWE[:len(ezWE) - G1Hx]",
"def N0Pp(xYvp, G1Hx):\n xYvp = xYvp[len(xYvp) - G1Hx:] + xYvp[:len(xYvp) - G1Hx]",
"def N0Pp(YKHO, xYvp, G1Hx):\n exwG = len(x... | [
"0.7780756",
"0.76009965",
"0.7443216",
"0.73982453",
"0.7320614",
"0.7320594",
"0.73047745",
"0.7282702",
"0.72805387",
"0.723467",
"0.7169917",
"0.71453387",
"0.71260244",
"0.7113509",
"0.71068275",
"0.70753795",
"0.7065764",
"0.7056572",
"0.7026336",
"0.7025461",
"0.695917... | 0.67634064 | 39 |
Rotate an array to the right by k steps, where k is nonnegative. | def WKNB(xYvp, G1Hx):
exwG = len(xYvp)
if G1Hx == 0:
return xYvp
if exwG < 2:
return xYvp
G1Hx = G1Hx % exwG
for bGrB in range(G1Hx):
XVAW = xYvp[-1]
for YRbF in range(exwG):
r845 = exwG - 1 - YRbF
if r845 != 0:
xYvp[r845] = xYv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XKfa(ezWE, G1Hx):\n ezWE[:] = ezWE[len(ezWE) - G1Hx:] + ezWE[:len(ezWE) - G1Hx]",
"def XKfa(ezWE: list, G1Hx: int):\n return ezWE[-G1Hx:] + ezWE[:len(ezWE) - G1Hx]",
"def N0Pp(xYvp, G1Hx):\n xYvp = xYvp[len(xYvp) - G1Hx:] + xYvp[:len(xYvp) - G1Hx]",
"def N0Pp(YKHO, xYvp, G1Hx):\n exwG = len(x... | [
"0.77834535",
"0.76037943",
"0.7448569",
"0.7402826",
"0.73254246",
"0.73246807",
"0.7308889",
"0.7285865",
"0.72399133",
"0.7174651",
"0.7142849",
"0.71315426",
"0.7118598",
"0.71113163",
"0.7080308",
"0.70704305",
"0.706071",
"0.7030984",
"0.70298725",
"0.6963938",
"0.69579... | 0.7286706 | 7 |
Rotate an array to the right by k steps, where k is nonnegative. | def a8Hp(xYvp, G1Hx):
exwG = len(xYvp)
if G1Hx == 0:
return xYvp
if exwG < 2:
return xYvp
G1Hx = G1Hx % exwG
for YRbF in range(G1Hx):
JBAi = xYvp[exwG - G1Hx + YRbF]
for r845 in range(exwG - G1Hx + YRbF, YRbF, -1):
xYvp[r845] = xYvp[r845 - 1]
xYvp[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XKfa(ezWE, G1Hx):\n ezWE[:] = ezWE[len(ezWE) - G1Hx:] + ezWE[:len(ezWE) - G1Hx]",
"def XKfa(ezWE: list, G1Hx: int):\n return ezWE[-G1Hx:] + ezWE[:len(ezWE) - G1Hx]",
"def N0Pp(xYvp, G1Hx):\n xYvp = xYvp[len(xYvp) - G1Hx:] + xYvp[:len(xYvp) - G1Hx]",
"def N0Pp(YKHO, xYvp, G1Hx):\n exwG = len(x... | [
"0.7783005",
"0.7603265",
"0.7447755",
"0.74022603",
"0.73248863",
"0.73240596",
"0.730838",
"0.7285869",
"0.7284972",
"0.723879",
"0.7173743",
"0.7143822",
"0.7130628",
"0.7117726",
"0.70800036",
"0.7070019",
"0.7060243",
"0.7030299",
"0.7029191",
"0.6963482",
"0.6957627",
... | 0.7110545 | 14 |
Play random archived video. Chooses random archived video from selected channel and redirects to its detail page view. | def hVWq(YwkQ):
try:
Acvy = tuKI.choice([f6W2['snippet']['resourceId']['videoId'] for f6W2 in XW2e(YwkQ) if f6W2['archived'] is not None])
except IndexError:
return WsL5.redirect(WsL5.url_for('videos', channel=YwkQ))
return WsL5.redirect(WsL5.url_for('videos', channel=YwkQ, video=Acvy)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjdQ(YwkQ):\n try:\n Acvy = tuKI.choice([f6W2['snippet']['resourceId']['videoId'] for f6W2 in XW2e(YwkQ)])\n except IndexError:\n return WsL5.redirect(WsL5.url_for('videos', channel=YwkQ))\n return WsL5.redirect(WsL5.url_for('videos', channel=YwkQ, video=Acvy))",
"def BYQy(YwkQ):\n ... | [
"0.7034829",
"0.6931877",
"0.69211984",
"0.6763168",
"0.6711558",
"0.6657283",
"0.6653861",
"0.6491873",
"0.64016736",
"0.5890076",
"0.5764354",
"0.57009566",
"0.56161135",
"0.5602274",
"0.5533277",
"0.55162233",
"0.55014026",
"0.54525715",
"0.53670835",
"0.53624773",
"0.5342... | 0.8072042 | 0 |
Play random video. Chooses random video from selected channel and redirects to its detail page view. | def qjdQ(YwkQ):
try:
Acvy = tuKI.choice([f6W2['snippet']['resourceId']['videoId'] for f6W2 in XW2e(YwkQ)])
except IndexError:
return WsL5.redirect(WsL5.url_for('videos', channel=YwkQ))
return WsL5.redirect(WsL5.url_for('videos', channel=YwkQ, video=Acvy)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xmeG(YKHO):\n print('play_random_video needs implementation')",
"def xmeG(YKHO):\n oM76 = len(YKHO._video_library.get_all_videos())\n SFIC = YKHO._video_library.get_all_videos()\n Gv0a = ajWY(0, oM76 - 1)\n YKHO.play_video(SFIC[Gv0a].video_id)",
"def xmeG(YKHO):\n f6W2 = tuKI.choice(YKHO.... | [
"0.7648556",
"0.7557372",
"0.75215834",
"0.74750495",
"0.7418185",
"0.7326979",
"0.7265376",
"0.69038516",
"0.6407995",
"0.6363169",
"0.61298084",
"0.6126301",
"0.5969634",
"0.5944027",
"0.5845226",
"0.5799419",
"0.57790136",
"0.57275563",
"0.56893736",
"0.5664753",
"0.561203... | 0.74526733 | 4 |
Return the stringified version of the generated xml | def BbcR(YKHO):
if YKHO._xml_string is not None:
return YKHO._xml_string
return QGpr.tostring(YKHO._xml_node) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbcR(YKHO):\n if YKHO._xml_string is not None:\n return YKHO._xml_string\n return QGpr.tostring(YKHO._xml_node)",
"def Ry3J(YKHO):\n return QGpr.tostring(YKHO.get_etree())",
"def zAg0(YKHO):\n Aofo = QToG.dom.minidom.parseString(QToG.etree.ElementTree.tostring(YKHO.ToXMLElement(), encodi... | [
"0.753312",
"0.75139797",
"0.7353235",
"0.73077554",
"0.7274747",
"0.7248204",
"0.72342646",
"0.7181866",
"0.69974494",
"0.69351363",
"0.69069105",
"0.6809317",
"0.67827904",
"0.67502034",
"0.6738443",
"0.6717033",
"0.66888523",
"0.66888523",
"0.66042393",
"0.655296",
"0.6550... | 0.7555695 | 0 |
Convert a MKL sparse handle to CSR format | def nDE7(yOeD, ZmSN=False):
bJjz = K31i()
UxQk = UztI._mkl_sparse_convert_csr(yOeD, wm27.c_int(10), wm27.byref(bJjz))
try:
l02p(UxQk, 'mkl_sparse_convert_csr')
except ValueError:
try:
Swiy(bJjz)
except ValueError:
pass
raise
if ZmSN:
Sw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qw5x(nPrm, Hxg3):\n bf9h = K31i()\n UxQk = Hxg3(wm27.byref(bf9h), wm27.c_int(GMdd), UztI.MKL_INT(nPrm.shape[0]), UztI.MKL_INT(nPrm.shape[1]), nPrm.indptr[0:-1], nPrm.indptr[1:], nPrm.indices, nPrm.data)\n l02p(UxQk, Hxg3.__name__)\n return bf9h",
"def iLIX(SppC):\n guQk = _oCF(SppC)\n if Yx... | [
"0.7503132",
"0.6884736",
"0.6833039",
"0.6737469",
"0.67181027",
"0.66780216",
"0.66586936",
"0.64889747",
"0.6419341",
"0.6368549",
"0.63611144",
"0.6345656",
"0.6335942",
"0.63115376",
"0.6233469",
"0.6230282",
"0.61900723",
"0.6182203",
"0.61719376",
"0.6149485",
"0.61394... | 0.80026007 | 0 |
Make a copy of the array as double precision floats or return the reference if it already is | def RTLV(SppC):
return SppC.astype(oyIN.float64) if SppC.dtype != oyIN.float64 else SppC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NRnh():\n EcVT = oyIN.ones((3, 10), dtype=oyIN.int32)\n EcVT = EcVT + oyIN.arange(10, dtype=oyIN.int32)\n IP77 = oet3(EcVT, copy=False)\n oyIN.testing.assert_equal(IP77.dtype, oyIN.float32)\n EcVT = EcVT.astype(oyIN.int64)\n IP77 = oet3(EcVT, copy=True)\n assert oet3(EcVT, False) is not Ec... | [
"0.6045936",
"0.59793395",
"0.58334565",
"0.5811236",
"0.58041555",
"0.5803747",
"0.575333",
"0.5719215",
"0.56880665",
"0.5652057",
"0.55822545",
"0.5509963",
"0.54988366",
"0.5480099",
"0.5459266",
"0.54408836",
"0.54186636",
"0.5418037",
"0.54136366",
"0.53953546",
"0.5379... | 0.51354 | 41 |
Create an allzero matrix or check to make sure that the provided output array matches | def WsF3(ROpF, yDqo, T4Wy='C', rk8E=None, Csw9=False):
Csw9 = False if Csw9 is None else Csw9
if rk8E is None:
return oyIN.zeros(ROpF, dtype=yDqo, order=T4Wy)
woNW = rk8E.flags['C_CONTIGUOUS'] if T4Wy == 'C' else rk8E.flags['F_CONTIGUOUS']
if ROpF != rk8E.shape or yDqo != rk8E.dtype or (not woNW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSz9(qw7D):\n if not qw7D:\n return\n Gmep = len(qw7D)\n OfOG = len(qw7D[0])\n v2XK = False\n wy1x = False\n for Z9rn in range(OfOG):\n if not qw7D[0][Z9rn]:\n v2XK = True\n for Mkmy in range(Gmep):\n if not qw7D[Mkmy][0]:\n wy1x = True\n for M... | [
"0.6301234",
"0.62567663",
"0.6065526",
"0.6004522",
"0.59100115",
"0.5880008",
"0.57987255",
"0.5796987",
"0.5677778",
"0.5663355",
"0.56167245",
"0.5616022",
"0.56049746",
"0.55885136",
"0.55830944",
"0.55815345",
"0.5564158",
"0.55434084",
"0.55371547",
"0.5533879",
"0.553... | 0.0 | -1 |
Given a dictionary containing view parameters, calculate a transformation matrix. | def izlm(tTee):
SZFh = tTee['ball'].matrix()
SZFh[0:3, 3] = tTee['center']
SZFh[0:3, 3] -= oyIN.dot(SZFh[0:3, 0:3], tTee['center'])
SZFh[0:3, 3] += tTee['translation'] * tTee['scale'] * 5.0
return SZFh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Acah(YKHO, tTee):\n raise NotImplementedError()",
"def iot0(UShr: float, Yrvv: float, yl4j: float) -> oyIN.matrix:\n return oyIN.matrix([[1, 0, 0, UShr], [0, 1, 0, Yrvv], [0, 0, 1, yl4j], [0, 0, 0, 1]])",
"def uPpx(YKHO, OHJd, Jtrf, KwSX, x8hu):\n r3a2 = Jtrf.shape[0]\n vgWs = oyIN.zeros((r3a2,... | [
"0.6074161",
"0.59667534",
"0.58879656",
"0.58708775",
"0.58666587",
"0.58450586",
"0.5839513",
"0.580901",
"0.57664406",
"0.5750556",
"0.573642",
"0.5719473",
"0.5676489",
"0.5676489",
"0.56622416",
"0.5610182",
"0.5576211",
"0.5572452",
"0.5564787",
"0.5563543",
"0.55423295... | 0.6559304 | 0 |
Render a preview of a scene to a PNG. | def c5I5(F6jf, B1Wx=(1080, 1080), oWb2=True, **B2fa):
KnxT = w7Uy(F6jf, start_loop=False, visible=oWb2, resolution=B1Wx, **B2fa)
if oWb2 is None:
oWb2 = a9EH.system() != 'Linux'
for YRbF in range(2):
_y2g.clock.tick()
KnxT.switch_to()
KnxT.dispatch_events()
KnxT.dispa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1tc(YKHO, F6jf: scenes.Scene):\n G9jH.basicConfig(stream=HwRy.stdout, level=G9jH.DEBUG)\n tzom = ITS7.time()\n G9jH.info(f'Starting to render scene with size {YKHO.hsize}, {YKHO.vsize}')\n LNo8 = g_NO.Canvas(YKHO.hsize, YKHO.vsize)\n for LVAh in range(YKHO.vsize):\n print(LVAh)\n ... | [
"0.7069312",
"0.70669353",
"0.667401",
"0.63631165",
"0.62678796",
"0.6248515",
"0.62171745",
"0.62115514",
"0.61851823",
"0.61533916",
"0.61349446",
"0.6119475",
"0.610541",
"0.60480416",
"0.60404766",
"0.60228",
"0.6015537",
"0.59994596",
"0.59963775",
"0.59657377",
"0.5931... | 0.6610991 | 3 |
Sends a 401 response that enables basic auth | def NLCy():
return oGir('Could not verify your access level for that URL.\nYou have to login with Web Manager credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8093736",
"0.80926424",
"0.7958403",
"0.7852648",
"0.7843114",
"0.7824419",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
... | 0.7389793 | 46 |
The minimum distance between any two points. | def r1VO(YKHO):
return YKHO._radius | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y38k(YKHO):\n return round(min(YKHO.combined_euclidian_distance))",
"def zG70(cntZ: Point, CsFy: Point) -> auK0:\n return PZyS((CsFy.x - cntZ.x) ** 2 + (CsFy.y - cntZ.y) ** 2)",
"def wzpZ(FcPl, MDzr):\n import numpy as oyIN\n wzpZ = 100000\n for bQpE in FcPl:\n for V6Wq in MDzr:\n ... | [
"0.7398054",
"0.7347683",
"0.73398113",
"0.7249572",
"0.722252",
"0.7174279",
"0.71381766",
"0.71290714",
"0.7060147",
"0.7054031",
"0.70410913",
"0.70343655",
"0.7026882",
"0.7016064",
"0.69856024",
"0.697728",
"0.6972156",
"0.69611466",
"0.69021547",
"0.6897761",
"0.6891984... | 0.0 | -1 |
Creates distance vectors for calculating all neighbors from a given point. A neighbor can be only so far away from the original point and is dependent on the number of dimensions. We calculate every possible coordinate on the grid that the neighbor can be part of relative to a point and store that information for later... | def sh2z(YKHO):
yk4i = [[0 for bGrB in range(YKHO._dim)]]
ZbOB = yk4i[0][:]
for YRbF in range(YKHO._dim):
ZbOB[YRbF] = 1
yk4i.append(ZbOB[:])
ZbOB[YRbF] = -1
yk4i.append(ZbOB[:])
ZbOB[YRbF] = 0
yk4i.pop(0)
del ZbOB
TaUL = []
gGq6 = [[0 for bGrB in rang... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EUdy(YKHO, AU8u):\n if AU8u is None:\n raise ValueError('Cannot operate on None')\n A_IW = []\n if len(AU8u) == 1:\n A_IW.append([AU8u[0] - 1])\n A_IW.append([AU8u[0]])\n A_IW.append([AU8u[0] + 1])\n return A_IW\n for ibWR in YKHO.point_neighbors_recursion(AU8u[1:... | [
"0.65392166",
"0.6530853",
"0.64982176",
"0.647947",
"0.64395267",
"0.6422998",
"0.6371299",
"0.6254602",
"0.620574",
"0.61816",
"0.6145644",
"0.61213267",
"0.6018979",
"0.600562",
"0.5987179",
"0.59797674",
"0.5978277",
"0.5973462",
"0.5934688",
"0.5930248",
"0.5919666",
"... | 0.7678559 | 0 |
Simply get a Row | def NMoC(Emd4, cuiw: Session=None, **B2fa):
cb_Q = next(Emd4.session()) if not cuiw else cuiw
xDcj = cb_Q.query(Emd4)
for H5ew, wEf2 in B2fa.items():
fvDH = getattr(Emd4, H5ew)
xDcj = xDcj.filter(fvDH == wEf2)
if xDcj.count() > 1:
raise Exception('Only one row is supposed to be r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NcjW(YKHO, *qIxc):\n return ED7W.Table_GetRow(YKHO, *qIxc)",
"def rdlD(YKHO):\n return YKHO['row']",
"def rdlD(YKHO):\n return YKHO.__row",
"def PNHv(YKHO, rdlD=None, *, Sg7o=True, E2qK=False, PUOY=''):\n if E2qK:\n IqP_ = YKHO.thing[rdlD]\n else:\n IqP_ = YKHO._filter_traili... | [
"0.8060224",
"0.80254126",
"0.7956843",
"0.78516746",
"0.7504425",
"0.7501024",
"0.74961317",
"0.7454073",
"0.73828816",
"0.7316386",
"0.7264345",
"0.7218404",
"0.71670437",
"0.71424335",
"0.70871454",
"0.6997214",
"0.69430214",
"0.69357276",
"0.6900298",
"0.6865246",
"0.6862... | 0.0 | -1 |
Simply get a Row | def filter(Emd4, cuiw: Session=None, **B2fa):
Q3Ge = []
for H5ew, wEf2 in B2fa.items():
H5ew = H5ew.split('__')
if len(H5ew) > 2:
fvDH = getattr(Emd4, H5ew[-2])
else:
continue
if len(H5ew) == 1:
Q3Ge.append(fvDH == wEf2)
elif len(H5ew) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NcjW(YKHO, *qIxc):\n return ED7W.Table_GetRow(YKHO, *qIxc)",
"def rdlD(YKHO):\n return YKHO['row']",
"def rdlD(YKHO):\n return YKHO.__row",
"def PNHv(YKHO, rdlD=None, *, Sg7o=True, E2qK=False, PUOY=''):\n if E2qK:\n IqP_ = YKHO.thing[rdlD]\n else:\n IqP_ = YKHO._filter_traili... | [
"0.80608964",
"0.80258733",
"0.79571295",
"0.7851937",
"0.75056285",
"0.7500683",
"0.74965936",
"0.74543816",
"0.7383244",
"0.73164743",
"0.72659916",
"0.7218317",
"0.7166832",
"0.7143129",
"0.7088893",
"0.69985425",
"0.69433063",
"0.69360405",
"0.69011056",
"0.6865461",
"0.6... | 0.0 | -1 |
Get directory where modules are stored | def pkhC(YKHO):
return YKHO._modules_dir | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p3ri():\n return Hy7s.path.dirname(xAKo)",
"def tXNQ(qaEx):\n return Hy7s.path.dirname(Hy7s.path.realpath(qaEx))",
"def aOrN(YKHO):\n return Hy7s.path.dirname(YKHO._modules['default'].path)",
"def MJH2(YKHO):\n return YKHO.config['cwd']",
"def qpBa(Emd4) -> str:\n from ixian_docker.modul... | [
"0.8037318",
"0.79695654",
"0.791168",
"0.7835981",
"0.77839756",
"0.7754749",
"0.77420557",
"0.7610356",
"0.7568536",
"0.75120974",
"0.7503393",
"0.7500169",
"0.7392109",
"0.7383796",
"0.73750055",
"0.73674023",
"0.7365304",
"0.73419416",
"0.7288379",
"0.7278813",
"0.727033"... | 0.8287971 | 0 |
Better split function to extract keywords from a page | def W78r(JZXy, JHcA):
oi6k = ' ' * len(JHcA)
GoDs = vIwR.maketrans(JHcA, oi6k)
JZXy = vIwR.translate(JZXy, GoDs)
return JZXy.split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YgNe(bD7m):\n pass",
"def mp4B(YKHO, geh0):\n dJ1p = geh0.xpath('//*/meta[@property=\"keywords\"]/@content').extract_first()\n b1Gq = geh0.xpath('//*/meta[@name=\"keywords\"]/@content').extract_first()\n if dJ1p:\n return dJ1p.strip()\n elif b1Gq:\n return b1Gq.strip()\n else:... | [
"0.6272026",
"0.6218023",
"0.6199016",
"0.61652017",
"0.6137122",
"0.6055972",
"0.6046689",
"0.60393727",
"0.6039167",
"0.60223854",
"0.6017337",
"0.59776556",
"0.59697056",
"0.5919013",
"0.5918667",
"0.58741283",
"0.5849098",
"0.58092254",
"0.58048385",
"0.57927597",
"0.5785... | 0.0 | -1 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.0 | -1 |
If this session is anon or not. Clearly not. Will always be false. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn():\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def _JeQ(YKHO):\n return YKHO._is_anonymous_access_allowed",
"def SzmQ(rxPi):\n rxPi = rxPi or koZo()\n return str(rxPi.get('user_id')) == Cj1w",
"def wDqn(UzPC, RZML, B2fa):\n return RZ... | [
"0.8205281",
"0.80249506",
"0.76313406",
"0.74665135",
"0.71720505",
"0.67657197",
"0.67004937",
"0.6676598",
"0.6668741",
"0.66563576",
"0.6607069",
"0.6583967",
"0.65072757",
"0.65040714",
"0.6469018",
"0.6456573",
"0.6436853",
"0.6399897",
"0.63922125",
"0.63631505",
"0.63... | 0.81008756 | 19 |
Return offset of local zone from GMT | def Y894():
if ITS7.localtime().tm_isdst and ITS7.daylight:
return -ITS7.altzone
else:
return -ITS7.timezone | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PduB(YKHO):\n return SED2(YKHO._tz, YKHO._t)",
"def mVXc():\n fCoM = qcWV.datetime.now() - qcWV.datetime.utcnow()\n return fCoM.total_seconds()",
"def zztL():\n return Ih2K.choice([['GMT+' + str(Ih2K.randint(1, 12))], ['GMT'], ['GMT' + str(Ih2K.randint(-12, -1))]])[0]",
"def jWUa(a1PO=None):\... | [
"0.7432826",
"0.7360823",
"0.7292204",
"0.72637445",
"0.7237618",
"0.7083396",
"0.6958518",
"0.69471073",
"0.67810845",
"0.67092437",
"0.6597678",
"0.65896887",
"0.64723",
"0.64647484",
"0.6375368",
"0.6350449",
"0.63273025",
"0.6307903",
"0.6293711",
"0.62897044",
"0.6239180... | 0.8144448 | 0 |
adds a comment using a post form to db and on get renders a comment form | def vsuQ(QePW):
nPrm = {}
if QePW.method == 'POST':
vsuQ = gZqE(QePW.POST)
if vsuQ.is_valid():
vsuQ.save()
nPrm['success'] = 1
nPrm['message'] = 'Comment successfully added'
return jnRN(nPrm)
else:
nPrm['success'] = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzWn(QePW, _sei):\n m8z6 = Iofl(T97t, pk=_sei)\n if QePW.method == 'POST':\n L03z = rGVl(QePW.POST)\n if L03z.is_valid():\n aM_I = L03z.save(commit=False)\n aM_I.post = m8z6\n aM_I.save()\n return vKnz('post_detail', pk=m8z6.pk)\n else:\n ... | [
"0.78893006",
"0.7775941",
"0.74676603",
"0.73683715",
"0.73549026",
"0.7261356",
"0.7188274",
"0.71627164",
"0.70982206",
"0.70022464",
"0.6964179",
"0.6948596",
"0.69456",
"0.6927394",
"0.67457163",
"0.6735499",
"0.6706368",
"0.6660312",
"0.66361904",
"0.659266",
"0.6552006... | 0.0 | -1 |
Declaration search space 'learning_rate' parameter | def EVKp(mWFP: str):
return A90d.lognormal(mWFP, oyIN.log(0.01), oyIN.log(10.0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkTt():\n return 1e-05",
"def sIgb(YKHO):\n if YKHO.FLAGS.learning_rate_decay is 'exponential':\n YKHO.learning_rate = ZylS.train.exponential_decay(YKHO.FLAGS.learning_rate, YKHO.global_step, YKHO.FLAGS.decay_steps, YKHO.FLAGS.decay_rate)\n else:\n YKHO.learning_rate = YKHO.FLAGS.learn... | [
"0.78878564",
"0.68934196",
"0.6887224",
"0.6881099",
"0.6881099",
"0.68807626",
"0.6831222",
"0.6792651",
"0.6758702",
"0.6748529",
"0.6719029",
"0.66813684",
"0.6668818",
"0.6660004",
"0.66429275",
"0.66198725",
"0.66147786",
"0.66040796",
"0.66040796",
"0.6595177",
"0.6593... | 0.0 | -1 |
Get the day of the month (1, 2, 3, 4, 5, etc) | def E2ep():
return qcWV.date.today().day | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gLAx(_c1T):\n return _c1T.day",
"def E2ep(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'day_of_month')",
"def E2ep(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'day_of_month')",
"def BgU3(_c1T):\n return gLAx(_c1T)",
"def E2ep(YKHO):\n return YKHO.__day_of_month",
"def E2ep(Y... | [
"0.8311167",
"0.81161326",
"0.81161326",
"0.80362916",
"0.7710154",
"0.74247456",
"0.7126231",
"0.70446944",
"0.70041364",
"0.6935808",
"0.6885859",
"0.6820927",
"0.68159795",
"0.67683005",
"0.6750017",
"0.67277735",
"0.6714676",
"0.6682958",
"0.66780627",
"0.66780627",
"0.66... | 0.85066766 | 0 |
Returns the platform configuration details | def c2sL(YKHO):
return YKHO.__config_data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zm07(YKHO):\n return YKHO.msg.platform_info",
"def zm07(YKHO):\n return a9EH.uname()._asdict()",
"def Z5O9():\n xDcj = {'type': 'config', 'action': 'get', 'xpath': \"/config/devices/entry[@name='localhost.localdomain']/platform\"}\n return j1tI['panos.call'](xDcj)",
"def GBKs(YKHO):\n retu... | [
"0.79607385",
"0.7462969",
"0.739986",
"0.7112853",
"0.7013267",
"0.68938875",
"0.6773416",
"0.667299",
"0.65865666",
"0.6552953",
"0.6520043",
"0.6519496",
"0.6502041",
"0.65001327",
"0.6492422",
"0.64656544",
"0.6462208",
"0.645399",
"0.64523786",
"0.6449862",
"0.6424083",
... | 0.6537978 | 10 |
List of trio objects in this pedigree. | def vWVw(YKHO):
return YKHO._trios | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gGnb(YKHO):\n gGnb = set()\n for lkEY in YKHO.trios:\n if lkEY.child is None or lkEY.mother is None or lkEY.father is None:\n continue\n gGnb.add(lkEY.father)\n gGnb.add(lkEY.mother)\n gGnb.add(lkEY.child)\n return list(gGnb)",
"def lLCM(YKHO):\n return [IS_... | [
"0.6735502",
"0.6648545",
"0.6611865",
"0.6585326",
"0.6218765",
"0.61787325",
"0.6174128",
"0.6173725",
"0.6133093",
"0.6071013",
"0.60465074",
"0.6045711",
"0.60023105",
"0.59655607",
"0.59582776",
"0.59162223",
"0.59141374",
"0.58219033",
"0.5811836",
"0.57785505",
"0.5767... | 0.7676709 | 0 |
Searches and retrievs content items who use content items with invalid marketplaces. | def IZDK(YKHO, S5kv: List[str]) -> x1iM[UMkL]:
with YKHO.driver.session() as cuiw:
dixj: cuzp[str, FGov] = cuiw.execute_read(iW6A, S5kv)
YKHO._add_nodes_to_mapping((Aofo.node_from for Aofo in dixj.values()))
YKHO._add_relationships_to_objects(cuiw, dixj)
return [YKHO._id_to_obj[Aofo]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C9O3():\n try:\n return (JGq6(), 200)\n except:\n return ('An error ocurred', 404)",
"def tRlI(YKHO):\n global NON_EXISTENT_TAG\n BCdN = YKHO.catalog.load_pageobject('TagsPage')\n YKHO.browser.proxy_client.new_har('page')\n BCdN.goto_page()\n DILL = YKHO.browser.page_load_d... | [
"0.58195615",
"0.5627373",
"0.55035573",
"0.5459549",
"0.54410607",
"0.54379165",
"0.5415119",
"0.53881055",
"0.5377376",
"0.5313664",
"0.5228413",
"0.5227499",
"0.5221384",
"0.5204558",
"0.5198988",
"0.51974964",
"0.5178793",
"0.5178141",
"0.51316184",
"0.51147646",
"0.51118... | 0.5012608 | 32 |
Decorator for `pytest` tests that mocks API requests by reading a file of pregenerated responses. Will generate responses file based on a real connection if pregenerated responses are not found. | def ud61(*, ks3E: Optional[Union[str, Path]]=None, Yar1=False) -> YrBT:
def GDMi(csV7: Callable):
@zaGL(csV7)
def b6ry(**B2fa):
C7Bm = Iy2e(test_func=csV7, response_logs_dir=ks3E, **B2fa)
if C7Bm.exists() and Yar1:
C7Bm.unlink()
if C7Bm.exists():... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ud61():\n with open(Hy7s.path.join(y8r7, 'response.json'), 'r') as ytgA:\n iK7Q = ytgA.read()\n h2IT.add(h2IT.GET, 'https://pypi.python.org/pypi/webargs/json', body=iK7Q, content_type='application/json')\n with open(Hy7s.path.join(y8r7, 'response_noreleases.json'), 'r') as ytgA:\n yF2w =... | [
"0.6632596",
"0.62995696",
"0.62875825",
"0.62727946",
"0.6137868",
"0.60731643",
"0.60573506",
"0.60062224",
"0.5961605",
"0.58436173",
"0.57388484",
"0.5680359",
"0.5671888",
"0.5644249",
"0.5599159",
"0.55649006",
"0.5552278",
"0.5529543",
"0.5524284",
"0.5520523",
"0.5498... | 0.5540769 | 17 |
Return rotation matrix. angle must be given in radians. axis should be of type vec3. | def DWJ0(YKHO, YylR, jDK_):
HpT6 = jDK_.x * jDK_.x
CwFP = jDK_.y * jDK_.y
LdZT = jDK_.z * jDK_.z
sHY4 = HpT6 + CwFP + LdZT
Xyq7 = epAf.cos(YylR)
LEev = (1.0 - Xyq7) / sHY4
PDUN = epAf.sin(YylR) / epAf.sqrt(sHY4)
WpqA = LEev * jDK_.x * jDK_.y
BZV0 = LEev * jDK_.x * jDK_.z
TO2Y = L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bULF(jDK_, YylR):\n ZLSD = YhSR(YylR)\n RyuO = YUNn(YylR)\n Nq1b = 1 - ZLSD\n WKvO, LVAh, epBp = tuple(jDK_)\n fUYa = WKvO * RyuO\n bEXe = LVAh * RyuO\n YBbd = epBp * RyuO\n QcSv = WKvO * Nq1b\n lvFr = LVAh * Nq1b\n qk7L = epBp * Nq1b\n F7H3 = WKvO * lvFr\n D7oh = LVAh * qk7... | [
"0.8426524",
"0.84087354",
"0.83624256",
"0.8335046",
"0.8282136",
"0.8043737",
"0.8040625",
"0.8022506",
"0.7993157",
"0.79801285",
"0.7879579",
"0.7819079",
"0.7764233",
"0.77037656",
"0.7693917",
"0.7659045",
"0.7602227",
"0.75998414",
"0.7553236",
"0.7531089",
"0.7527129"... | 0.8296097 | 4 |
Look from pos to target. The resulting transformation moves the origin to pos and rotates so that The zaxis points to target. The yaxis is as close as possible to the up vector. | def UAO2(YKHO, oeNL, pan_, vP2v=lM1u(0, 0, 1)):
dir = (pan_ - oeNL).normalize()
vP2v = vP2v.normalize()
vP2v -= vP2v * dir * dir
try:
vP2v = vP2v.normalize()
except:
vP2v = dir.ortho()
_tIi = vP2v.cross(dir).normalize()
YKHO.mlist = [_tIi.x, vP2v.x, dir.x, oeNL.x, _tIi.y, vP2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPui(YKHO):\n e1vZ = YKHO.target_destination - YKHO.location\n if e1vZ.length() != 0:\n e1vZ.scale_to_length(YKHO.speed)\n e1vZ.normalize()\n YKHO.rect.left += e1vZ.x\n YKHO.rect.top += e1vZ.y",
"def IJcT(YEnM, pan_, rKSe=0):\n if not isinstance(pan_, kOAW.Vector):\n pan_ ... | [
"0.63867235",
"0.6174689",
"0.6100806",
"0.60780716",
"0.60386586",
"0.6026328",
"0.6026328",
"0.5969622",
"0.5969622",
"0.5930626",
"0.5918353",
"0.582788",
"0.5806989",
"0.5760675",
"0.5746078",
"0.571055",
"0.5699697",
"0.5695556",
"0.55726534",
"0.55695117",
"0.5561427",
... | 0.7076027 | 0 |
Decomposes the matrix into a translation, rotation and scaling part. Returns a tuple (translation, rotation, scaling). The translation and scaling parts are given as vec3's, the rotation is still given as a mat4. | def q6sf(YKHO):
Vo9x = YKHO.ortho()
Vo9x.setRow(3, KrVB(0.0, 0.0, 0.0, 1.0))
WKvO = Vo9x.getColumn(0)
LVAh = Vo9x.getColumn(1)
epBp = Vo9x.getColumn(2)
pMBr = WKvO.length()
LECP = LVAh.length()
SeoT = epBp.length()
NXpY = lM1u(pMBr, LECP, SeoT)
WKvO /= pMBr
LVAh /= LECP
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _dUC(YKHO):\n KCHu = YKHO.scale\n kH1h = YKHO.rotation\n a1PO = YKHO.translation\n Kt_s = oyIN.eye(4)\n Kt_s[0:3, 3] = a1PO\n A3Vt = oyIN.eye(4)\n A3Vt[0:3, 0:3] = kH1h\n E3D9 = Kt_s.dot(A3Vt)\n if KCHu == 1:\n E3D9 = Kt_s.dot(A3Vt)\n else:\n o4sw = oyIN.eye(4)\n ... | [
"0.65959865",
"0.59985363",
"0.56775165",
"0.56729084",
"0.5643762",
"0.5516922",
"0.5491905",
"0.5479591",
"0.5413127",
"0.5405925",
"0.5361287",
"0.53541017",
"0.535323",
"0.53331834",
"0.53259045",
"0.5305544",
"0.5288668",
"0.52755517",
"0.5258584",
"0.523991",
"0.5236473... | 0.6354126 | 1 |
Initializes the hidden and memory cell with given batch size. | def MP8d(YKHO, Ep8u, ds3w=False):
if YKHO.is_bidir == True:
Zode = [IoiV.Variable(ht2j.zeros(2 * YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False), IoiV.Variable(ht2j.zeros(2 * YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False)]
else:
Zode = [IoiV.Variable(ht2j.zeros(YKHO.n_la... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO, Ep8u, ds3w=False):\n Zode = [IoiV.Variable(ht2j.... | [
"0.76831126",
"0.7421998",
"0.7421998",
"0.7421998",
"0.7411178",
"0.7411178",
"0.73938495",
"0.73049426",
"0.7278598",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7267112",
"0.7267112",
"0.7253098",
"0.7253098",
... | 0.73020536 | 8 |
Initializes the hidden and memory cell with given batch size. | def MP8d(YKHO, Ep8u, ds3w=None):
Zode = [IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False), IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False)]
if ds3w is not None and ds3w >= 0:
Zode = [qbCp.cuda() for qbCp in Zode]
Zode = tuple(Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO, Ep8u, ds3w=False):\n Zode = [IoiV.Variable(ht2j.... | [
"0.76831126",
"0.7421998",
"0.7421998",
"0.7421998",
"0.7411178",
"0.7411178",
"0.73938495",
"0.73049426",
"0.73020536",
"0.7278598",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7267112",
"0.7267112",
"0.72000086"... | 0.7253098 | 21 |
Initializes the hidden and memory cell with given batch size. | def MP8d(YKHO, Ep8u, ds3w=False):
Zode = [IoiV.Variable(ht2j.zeros(2 * YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False), IoiV.Variable(ht2j.zeros(2 * YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False)]
if ds3w is not None and ds3w >= 0:
Zode = [qbCp.cuda() for qbCp in Zode]
Zode ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO, Ep8u, ds3w=False):\n Zode = [IoiV.Variable(ht2j.... | [
"0.76831126",
"0.7421998",
"0.7421998",
"0.7421998",
"0.73938495",
"0.73049426",
"0.73020536",
"0.7278598",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7267112",
"0.7267112",
"0.7253098",
"0.7253098",
"0.72000086"... | 0.7411178 | 4 |
Initializes the hidden and memory cell with given batch size. | def MP8d(YKHO, Ep8u, ds3w=False):
Zode = [IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False), IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False)]
if ds3w is not None and ds3w >= 0:
Zode = [qbCp.cuda() for qbCp in Zode]
Zode = tuple(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO, Ep8u, ds3w=False):\n Zode = [IoiV.Variable(ht2j.... | [
"0.76831126",
"0.7411178",
"0.7411178",
"0.73938495",
"0.73049426",
"0.73020536",
"0.7278598",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7267112",
"0.7267112",
"0.7253098",
"0.7253098",
"0.72000086",
"0.6970245"... | 0.7421998 | 3 |
Initializes the hidden and memory cell with given batch size. | def MP8d(YKHO, Ep8u, ds3w=False):
Zode = [IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False), IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False)]
if ds3w is not None and ds3w >= 0:
Zode = [qbCp.cuda() for qbCp in Zode]
Zode = tuple(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO, Ep8u, ds3w=False):\n Zode = [IoiV.Variable(ht2j.... | [
"0.76831126",
"0.7411178",
"0.7411178",
"0.73938495",
"0.73049426",
"0.73020536",
"0.7278598",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7267112",
"0.7267112",
"0.7253098",
"0.7253098",
"0.72000086",
"0.6970245"... | 0.7421998 | 2 |
Initializes the hidden and memory cell with given batch size. | def MP8d(YKHO, Ep8u, ds3w=None):
Zode = [IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False), IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False)]
if ds3w is not None and ds3w >= 0:
Zode = [qbCp.cuda() for qbCp in Zode]
Zode = tuple(Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO, Ep8u, ds3w=False):\n Zode = [IoiV.Variable(ht2j.... | [
"0.76831126",
"0.7421998",
"0.7421998",
"0.7421998",
"0.7411178",
"0.7411178",
"0.73938495",
"0.73049426",
"0.73020536",
"0.7278598",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7267112",
"0.7267112",
"0.72000086"... | 0.7253098 | 20 |
Initializes the hidden and memory cell with given batch size. | def MP8d(YKHO, Ep8u, ds3w=False):
Zode = [IoiV.Variable(ht2j.zeros(2 * YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False), IoiV.Variable(ht2j.zeros(2 * YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False)]
if ds3w is not None and ds3w >= 0:
Zode = [qbCp.cuda() for qbCp in Zode]
Zode ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO, Ep8u, ds3w=False):\n Zode = [IoiV.Variable(ht2j.... | [
"0.76831126",
"0.7421998",
"0.7421998",
"0.7421998",
"0.73938495",
"0.73049426",
"0.73020536",
"0.7278598",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7267112",
"0.7267112",
"0.7253098",
"0.7253098",
"0.72000086"... | 0.7411178 | 5 |
Initializes the hidden and memory cell with given batch size. | def MP8d(YKHO, Ep8u, ds3w=False):
Zode = [IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False), IoiV.Variable(ht2j.zeros(YKHO.n_layers, Ep8u, YKHO.hidden_dim), requires_grad=False)]
if ds3w is not None and ds3w >= 0:
Zode = [qbCp.cuda() for qbCp in Zode]
Zode = tuple(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device), ht2j.zeros(((1 + YKHO.bidirectional) * YKHO.num_layers, Ep8u, YKHO.hidden_size)).to(YKHO.device))",
"def MP8d(YKHO, Ep8u, ds3w=False):\n Zode = [IoiV.Variable(ht2j.... | [
"0.76831126",
"0.7411178",
"0.7411178",
"0.73938495",
"0.73049426",
"0.73020536",
"0.7278598",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7277387",
"0.7267112",
"0.7267112",
"0.7253098",
"0.7253098",
"0.72000086",
"0.6970245"... | 0.7421998 | 1 |
Get the height of the board. | def VAHQ(YKHO):
return YKHO._grid_height | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO):\n return YKHO.board.shape[0]",
"def bAiv(YKHO):\n return YKHO.height",
"def bAiv(YKHO):\n return YKHO.height",
"def bAiv(YKHO):\n return YKHO._height",
"def VAHQ(YKHO):\n return YKHO._height",
"def VAHQ(YKHO):\n return YKHO._height",
"def xglF(YKHO):\n return YKHO._... | [
"0.85061747",
"0.78280723",
"0.78280723",
"0.7791742",
"0.7788428",
"0.7788428",
"0.7768036",
"0.7768036",
"0.7768036",
"0.7768036",
"0.77661127",
"0.77627283",
"0.7760338",
"0.77541906",
"0.77423555",
"0.77375555",
"0.772147",
"0.76969934",
"0.76941025",
"0.76941025",
"0.769... | 0.76272714 | 29 |
This function calculates the confidence interval for a population proportion. | def ULUO(XP5J, exwG, lwa0=95):
Cwt5 = oyIN.round(1 - lwa0 / 100, 2)
RLoG = oyIN.sqrt(XP5J * (1 - XP5J) / exwG)
zaQm = oyIN.round(eQSh.norm.ppf(1 - Cwt5 / 2), 3)
sfgS = oyIN.round(zaQm * RLoG, 2)
aHzl = oyIN.round(XP5J - sfgS, 2)
x67h = oyIN.round(XP5J + sfgS, 2)
print('Margin Of Error: {}'.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dKbu(nPrm):\n jzdc = 1.0 * oyIN.array(nPrm)\n r8hN = oyIN.mean(jzdc)\n M1Jx = oyIN.std(jzdc)\n TlDD = 1.96 * (M1Jx / oyIN.sqrt(len(jzdc)))\n return (r8hN, TlDD)",
"def pYEY(yKcO, Os4s, la9G):\n JBMS = 0.5 * (Os4s + yKcO)\n z2bo = TwBD(0.5 * (Os4s - yKcO), la9G)\n return (JBMS, z2bo)",... | [
"0.6508893",
"0.639346",
"0.638804",
"0.6352521",
"0.63073725",
"0.62562823",
"0.62539876",
"0.6225825",
"0.6165775",
"0.6103992",
"0.6073545",
"0.60363185",
"0.60099113",
"0.59602016",
"0.5904212",
"0.5887613",
"0.5869475",
"0.5854851",
"0.5843365",
"0.58110493",
"0.5808328"... | 0.6790471 | 0 |
Given a list of words, return list with duplicates removed. | def DgcG(V22M):
zsBg = []
for ZfUD in V22M:
if ZfUD != zsBg:
zsBg.append(ZfUD)
zsBg = set(zsBg)
return list(zsBg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DgcG(V22M):\n V22M = set(V22M)\n return list(V22M)",
"def c88d(s2mk):\n return sorted(set(s2mk))",
"def dDv2(Kt9y):\n Aofo = []\n for GIN8 in Kt9y:\n if GIN8 not in Aofo:\n Aofo.append(GIN8)\n return Aofo",
"def XbjW(vwCE):\n yTXi = []\n for GIN8 in vwCE:\n ... | [
"0.8782853",
"0.80357206",
"0.79982984",
"0.7957965",
"0.78726363",
"0.7813481",
"0.73638797",
"0.7334073",
"0.730446",
"0.7295227",
"0.7275074",
"0.7244554",
"0.7232783",
"0.71240723",
"0.7089221",
"0.7059419",
"0.7034976",
"0.70081365",
"0.7008079",
"0.69790393",
"0.6970064... | 0.8540177 | 1 |
Displays the median absolute error regression loss | def FlsQ(YKHO):
print('Median absolute error regression loss: ' + str(FlsQ(YKHO.model.dataset.get_y_test(), YKHO.model.get_predicted()))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FlsQ(Y8eF, aMgO, *, RVw2=..., xF06=...):\n ...",
"def wIbz(PjQx, n5sN):\n return oyIN.sqrt(hkHB(PjQx, n5sN))",
"def W4jA(YKHO):\n print('Mean absolute error regression loss: ' + str(W4jA(YKHO.model.dataset.get_y_test(), YKHO.model.get_predicted())))",
"def iAxY(Y8eF, aMgO):\n ...",
"def WS2... | [
"0.70553166",
"0.64234465",
"0.6116956",
"0.6105252",
"0.6023425",
"0.60127705",
"0.59997356",
"0.59459203",
"0.59157705",
"0.59152037",
"0.5889653",
"0.58809096",
"0.58801013",
"0.58737195",
"0.5849917",
"0.5830612",
"0.5815691",
"0.5808731",
"0.5789277",
"0.5766636",
"0.571... | 0.81183386 | 0 |
Initializes the hidden state of the PitchContourAssessor module | def MP8d(YKHO, XY1r):
YKHO.hidden = iQnE(ht2j.zeros(1, XY1r, 200))
if ht2j.cuda.is_available():
YKHO.hidden = YKHO.hidden.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n pass",
"def MP8d(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.points = None\n YKHO.centroid_activation_frames = None\n YKHO.noiseless_frames = None\n YKHO.frames = None",
"def FIMM(YKHO):\n mfDT.__init__(YKHO)\n YKHO.red_l = 0\n YKHO.green_l = 0\n YKHO.blue_l = 0\n ... | [
"0.6495618",
"0.6495618",
"0.6419755",
"0.63149667",
"0.6172381",
"0.6090327",
"0.6071634",
"0.6058726",
"0.59551233",
"0.59468347",
"0.59461504",
"0.59049726",
"0.5894608",
"0.58911955",
"0.5866699",
"0.5860648",
"0.58598876",
"0.5842271",
"0.58422166",
"0.58278775",
"0.5824... | 0.0 | -1 |
Initializes the hidden state of the PitchContourAssessor module | def MP8d(YKHO, XY1r):
YKHO.hidden = iQnE(ht2j.zeros(1, XY1r, 200))
if ht2j.cuda.is_available():
YKHO.hidden = YKHO.hidden.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n pass",
"def MP8d(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.points = None\n YKHO.centroid_activation_frames = None\n YKHO.noiseless_frames = None\n YKHO.frames = None",
"def FIMM(YKHO):\n mfDT.__init__(YKHO)\n YKHO.red_l = 0\n YKHO.green_l = 0\n YKHO.blue_l = 0\n ... | [
"0.6495242",
"0.6495242",
"0.6416757",
"0.6314452",
"0.61695516",
"0.60905975",
"0.6070337",
"0.6058013",
"0.5952843",
"0.5946237",
"0.59452075",
"0.590337",
"0.58930206",
"0.58909506",
"0.58661455",
"0.58597255",
"0.5858653",
"0.58414435",
"0.58401704",
"0.5826763",
"0.58241... | 0.0 | -1 |
Initializes the hidden state of the PitchContourAssessor module | def MP8d(YKHO, XY1r):
YKHO.hidden = iQnE(ht2j.zeros(1, XY1r, 200))
if ht2j.cuda.is_available():
YKHO.hidden = YKHO.hidden.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n pass",
"def MP8d(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.points = None\n YKHO.centroid_activation_frames = None\n YKHO.noiseless_frames = None\n YKHO.frames = None",
"def FIMM(YKHO):\n mfDT.__init__(YKHO)\n YKHO.red_l = 0\n YKHO.green_l = 0\n YKHO.blue_l = 0\n ... | [
"0.649152",
"0.649152",
"0.641769",
"0.63146424",
"0.61703354",
"0.609192",
"0.60708994",
"0.605838",
"0.5953424",
"0.59473985",
"0.5946169",
"0.5903995",
"0.5892615",
"0.5891698",
"0.58670944",
"0.5859888",
"0.5858642",
"0.5841311",
"0.5840207",
"0.5826886",
"0.582447",
"0... | 0.0 | -1 |
Initializes the hidden state of the PitchContourAssessor module | def MP8d(YKHO, XY1r):
YKHO.hidden = iQnE(ht2j.zeros(1, XY1r, 200))
if ht2j.cuda.is_available():
YKHO.hidden = YKHO.hidden.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n pass",
"def MP8d(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.points = None\n YKHO.centroid_activation_frames = None\n YKHO.noiseless_frames = None\n YKHO.frames = None",
"def FIMM(YKHO):\n mfDT.__init__(YKHO)\n YKHO.red_l = 0\n YKHO.green_l = 0\n YKHO.blue_l = 0\n ... | [
"0.64949155",
"0.64949155",
"0.64175296",
"0.63147044",
"0.61690754",
"0.60915905",
"0.6071463",
"0.6057262",
"0.59535927",
"0.5946549",
"0.5945722",
"0.590366",
"0.58936554",
"0.58903956",
"0.5865374",
"0.58594966",
"0.5859206",
"0.5841075",
"0.5839968",
"0.5828068",
"0.5824... | 0.0 | -1 |
Initializes the hidden state of the PitchContourAssessor module | def MP8d(YKHO, XY1r):
YKHO.hidden = iQnE(ht2j.zeros(1, XY1r, 200))
if ht2j.cuda.is_available():
YKHO.hidden = YKHO.hidden.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n pass",
"def MP8d(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.points = None\n YKHO.centroid_activation_frames = None\n YKHO.noiseless_frames = None\n YKHO.frames = None",
"def FIMM(YKHO):\n mfDT.__init__(YKHO)\n YKHO.red_l = 0\n YKHO.green_l = 0\n YKHO.blue_l = 0\n ... | [
"0.6495618",
"0.6495618",
"0.6419755",
"0.63149667",
"0.6172381",
"0.6090327",
"0.6071634",
"0.6058726",
"0.59551233",
"0.59468347",
"0.59461504",
"0.59049726",
"0.5894608",
"0.58911955",
"0.5866699",
"0.5860648",
"0.58598876",
"0.5842271",
"0.58422166",
"0.58278775",
"0.5824... | 0.0 | -1 |
Initializes the hidden state of the PitchContourAssessor module | def MP8d(YKHO, XY1r):
YKHO.hidden = iQnE(ht2j.zeros(1, XY1r, 200))
if ht2j.cuda.is_available():
YKHO.hidden = YKHO.hidden.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n pass",
"def MP8d(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.points = None\n YKHO.centroid_activation_frames = None\n YKHO.noiseless_frames = None\n YKHO.frames = None",
"def FIMM(YKHO):\n mfDT.__init__(YKHO)\n YKHO.red_l = 0\n YKHO.green_l = 0\n YKHO.blue_l = 0\n ... | [
"0.6495242",
"0.6495242",
"0.6416757",
"0.6314452",
"0.61695516",
"0.60905975",
"0.6070337",
"0.6058013",
"0.5952843",
"0.5946237",
"0.59452075",
"0.590337",
"0.58930206",
"0.58909506",
"0.58661455",
"0.58597255",
"0.5858653",
"0.58414435",
"0.58401704",
"0.5826763",
"0.58241... | 0.0 | -1 |
Initializes the hidden state of the PitchContourAssessor module | def MP8d(YKHO, XY1r):
YKHO.hidden = iQnE(ht2j.zeros(1, XY1r, 200))
if ht2j.cuda.is_available():
YKHO.hidden = YKHO.hidden.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n pass",
"def MP8d(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.points = None\n YKHO.centroid_activation_frames = None\n YKHO.noiseless_frames = None\n YKHO.frames = None",
"def FIMM(YKHO):\n mfDT.__init__(YKHO)\n YKHO.red_l = 0\n YKHO.green_l = 0\n YKHO.blue_l = 0\n ... | [
"0.649152",
"0.649152",
"0.641769",
"0.63146424",
"0.61703354",
"0.609192",
"0.60708994",
"0.605838",
"0.5953424",
"0.59473985",
"0.5946169",
"0.5903995",
"0.5892615",
"0.5891698",
"0.58670944",
"0.5859888",
"0.5858642",
"0.5841311",
"0.5840207",
"0.5826886",
"0.582447",
"0... | 0.0 | -1 |
Initializes the hidden state of the PitchContourAssessor module | def MP8d(YKHO, XY1r):
YKHO.hidden = iQnE(ht2j.zeros(1, XY1r, 200))
if ht2j.cuda.is_available():
YKHO.hidden = YKHO.hidden.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n pass",
"def MP8d(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.points = None\n YKHO.centroid_activation_frames = None\n YKHO.noiseless_frames = None\n YKHO.frames = None",
"def FIMM(YKHO):\n mfDT.__init__(YKHO)\n YKHO.red_l = 0\n YKHO.green_l = 0\n YKHO.blue_l = 0\n ... | [
"0.64949155",
"0.64949155",
"0.64175296",
"0.63147044",
"0.61690754",
"0.60915905",
"0.6071463",
"0.6057262",
"0.59535927",
"0.5946549",
"0.5945722",
"0.590366",
"0.58936554",
"0.58903956",
"0.5865374",
"0.58594966",
"0.5859206",
"0.5841075",
"0.5839968",
"0.5828068",
"0.5824... | 0.0 | -1 |
Compute gradient of ReLU(x) | def L4tO(WKvO):
return (WKvO > 0) * 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def APUW(YKHO):\n LVAh = YKHO.x\n LVAh[LVAh <= 0] = 0\n LVAh[LVAh > 0] = 1\n return LVAh\n raise NotImplementedError('ReLU gradient not implemented')",
"def APUW(YKHO):\n Ro40 = oyIN.where(YKHO.x > 0, 1, 0)\n return Ro40",
"def Yknt(YKHO, EcVT):\n EcVT[EcVT <= 0] = 0\n EcVT[EcVT > 0]... | [
"0.8642592",
"0.8077327",
"0.7787572",
"0.7530858",
"0.7388087",
"0.73507303",
"0.7288786",
"0.7237895",
"0.7170173",
"0.70995605",
"0.70803183",
"0.70425916",
"0.7039082",
"0.70243317",
"0.7020456",
"0.6999789",
"0.69889843",
"0.6954855",
"0.68900347",
"0.6884166",
"0.687505... | 0.6759293 | 26 |
Convert multiple arrays containing sequences of token IDs to their sentences, optionally cutting them off at the endofsequence token. | def thRW(YKHO, Sk_F: np.array, aJAQ=True) -> x1iM[x1iM[str]]:
Rhv4 = []
for qw7D in Sk_F:
Rhv4.append(YKHO.array_to_sentence(array=qw7D, cut_at_eos=aJAQ))
return Rhv4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G59B(YKHO, qw7D: np.array, aJAQ=True) -> x1iM[str]:\n yAmx = []\n for YRbF in qw7D:\n KCHu = YKHO.itos[YRbF]\n if aJAQ and KCHu == bgvO:\n break\n yAmx.append(KCHu)\n return yAmx",
"def jAM5(q_E9):\n Rhv4 = []\n for Q6uT in q_E9:\n yAmx = []\n for ... | [
"0.673198",
"0.6581544",
"0.6515886",
"0.64929503",
"0.64929503",
"0.6448785",
"0.6409684",
"0.6307942",
"0.62738013",
"0.62008506",
"0.6192786",
"0.61842006",
"0.6183306",
"0.61517054",
"0.6142672",
"0.6117138",
"0.61081755",
"0.6088635",
"0.6079087",
"0.6078653",
"0.6069158... | 0.72692674 | 0 |
Return a Teacher object. | def FIMM(YKHO, xtX7='', Yw_3=[], Crrw=[], gXuE=[]):
YKHO.folder = xtX7
YKHO.images = []
YKHO.explode_images = []
YKHO.labels = []
YKHO.explode_lbls = []
YKHO.explode_labels = []
YKHO.traces = []
YKHO.explode_traces = []
YKHO.explode_counts = []
YKHO.length = 0
YKHO.explode_le... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LtAY(YKHO):\n if 'teacher' in YKHO._prop_dict:\n if isinstance(YKHO._prop_dict['teacher'], tKe4):\n return YKHO._prop_dict['teacher']\n else:\n YKHO._prop_dict['teacher'] = X6SW(YKHO._prop_dict['teacher'])\n return YKHO._prop_dict['teacher']\n return None",
... | [
"0.75521684",
"0.6869073",
"0.6690313",
"0.6679629",
"0.64127475",
"0.6385466",
"0.5983519",
"0.5888586",
"0.5879739",
"0.58598655",
"0.5826567",
"0.5700139",
"0.5557518",
"0.55562115",
"0.55266756",
"0.5415086",
"0.53702646",
"0.53425205",
"0.5302528",
"0.5262525",
"0.525699... | 0.0 | -1 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038751",
"0.7924752",
"0.7923082",
"0.78850657",
"0.78771824",
"0.7815519",
"0.77652335",
"0.775546",
"0.77440816",
"0.77313656",
"0.77284646",
"0.77244157",
"0.770246",
"0.76888484",
"0.76888484",
"0.766384",
"0.7656689",
"0.7655605",
"0.7655605",
"0.76455575",
"0.764555... | 0.7448663 | 74 |
Return the queryset of pages to be filtered by this page. By default this includes only live pages and pages that live in the same Wagtail Site as this page. If this page cannot be mapped to a Wagtail site (for example, if it does not live under a site root), then it will not return any filterable results. The filter_c... | def Hyd6(YKHO):
qpDA = YKHO.get_site()
if not qpDA:
return YKHO.get_model_class().objects.none()
SR0I = YKHO.get_model_class().objects.in_site(qpDA).live()
CLOH = YKHO.get_filterable_list_wagtail_block()
if CLOH is None:
return SR0I
if CLOH.value['filter_children']:
SR0I ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n QePW = YKHO.request\n VIoH = QePW.GET.get('type', 'wagtailcore.Page')\n try:\n FYrf = _PPN(VIoH)\n except (LookupError, ValueError):\n raise c_ma(\"type doesn't exist\")\n if not FYrf:\n FYrf = [I0sS]\n if len(FYrf) == 1:\n umWR = FYrf[0].objects.all(... | [
"0.6996249",
"0.68621105",
"0.6222618",
"0.615874",
"0.612804",
"0.5968924",
"0.57828724",
"0.5772105",
"0.5768434",
"0.5738781",
"0.56695443",
"0.5567301",
"0.5491212",
"0.5459988",
"0.54599816",
"0.545539",
"0.54398525",
"0.5426571",
"0.5425202",
"0.53988904",
"0.53756344",... | 0.7274537 | 0 |
Returns the middle item in the number list (by position not value) picks lower middle index if number is even | def O4_6():
aO51 = Zz_i[mio1]
return aO51[round(len(aO51) / 2) - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BhIR(tZMk):\n Hpmo = float(len(tZMk)) / 2\n if Hpmo % 2 != 0:\n return (int(Hpmo - 0.5), tZMk[int(Hpmo - 0.5)])\n else:\n return ((int(Hpmo), int(Hpmo - 1)), (tZMk[int(Hpmo)], tZMk[int(Hpmo - 1)]))",
"def x1fj(ezWE):\n CMz9 = len(ezWE)\n x1fj = CMz9 // 2\n wEf2 = ezWE.pop(x1fj... | [
"0.762548",
"0.68348694",
"0.6707999",
"0.6486468",
"0.64032376",
"0.6217714",
"0.6140569",
"0.6090736",
"0.60830855",
"0.60313183",
"0.5982748",
"0.5931421",
"0.59305763",
"0.5910867",
"0.5903021",
"0.58987117",
"0.58973026",
"0.58823586",
"0.5881148",
"0.5853946",
"0.584717... | 0.76432437 | 0 |
Called when the user specifies an intent for this skill | def iL2p(q8Qy):
if q8Qy in aHUX:
return aHUX[q8Qy]()
else:
return Nivd(q8Qy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r... | [
"0.7143966",
"0.6956116",
"0.6949057",
"0.6905333",
"0.68928874",
"0.67641324",
"0.6754843",
"0.6722764",
"0.6720773",
"0.67161995",
"0.6699252",
"0.6691263",
"0.6670276",
"0.6645522",
"0.6642719",
"0.6638686",
"0.6607724",
"0.6594981",
"0.6575682",
"0.6570076",
"0.65620786",... | 0.59254783 | 51 |
return the max contour | def vz4R(Iowl):
if len(Iowl) == 0:
return []
else:
yW_R = []
nSrC = 0
for r9Hf in Iowl:
f0tD = XC5k.contourArea(r9Hf)
if f0tD > 1000 and f0tD > nSrC:
nSrC = f0tD
yW_R = r9Hf
return yW_R | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TEgk(YKHO):\n cKXd = jUwU(YKHO.data)\n llUt = gwAu(cKXd, YKHO.calcthresh(cKXd))\n YKHO.contour_exists, YKHO.largest_cont = j9Cj(llUt, YKHO.data)",
"def iL7z(Iowl):\n if len(Iowl) == 0:\n return []\n zlgn = XC5k.contourArea(Iowl[0])\n vz4R = Iowl[0]\n bKPk = 0\n for YRbF, r9Hf i... | [
"0.7914346",
"0.76383597",
"0.7450908",
"0.6993265",
"0.687721",
"0.6876506",
"0.6871764",
"0.66788846",
"0.665887",
"0.66540575",
"0.6652381",
"0.6639206",
"0.6624959",
"0.6543409",
"0.6501659",
"0.6479817",
"0.6478554",
"0.643942",
"0.6437575",
"0.64138454",
"0.63462716",
... | 0.74014544 | 3 |
MAC for switch client is connected to. | def yhq3(YKHO):
return YKHO.raw.get('sw_mac') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pp4r(YKHO):\n return YKHO.device.settings['device']['mac']",
"def Pp4r(YKHO):\n return YKHO.device.settings['device']['mac']",
"def FlYA(YKHO):\n return YKHO.__mac",
"def Pp4r(YKHO):\n Pp4r = jry1(bdbQ().config('mac'), ':').decode()\n return Pp4r.upper()",
"def QfE5(YKHO) -> str:\n YK... | [
"0.7334382",
"0.7334382",
"0.7249836",
"0.7209311",
"0.7138228",
"0.71181077",
"0.69120127",
"0.6876553",
"0.68556935",
"0.68478584",
"0.68476963",
"0.6837324",
"0.67783827",
"0.67411906",
"0.67411906",
"0.6737539",
"0.67243445",
"0.67106557",
"0.66927296",
"0.66773087",
"0.6... | 0.6656926 | 21 |
Convert the gray image into a binary image with strong borders | def GgXu(ITiw, jUwU=1):
assert ITiw is not None
CBjZ = XC5k.GaussianBlur(ITiw, (jUwU, jUwU), 0)
CBjZ = XC5k.adaptiveThreshold(CBjZ, 255, XC5k.ADAPTIVE_THRESH_GAUSSIAN_C, XC5k.THRESH_BINARY_INV, 11, 1)
WZcn = oyIN.ones((3, 3), oyIN.uint8)
CBjZ = XC5k.morphologyEx(CBjZ, XC5k.MORPH_OPEN, WZcn)
CBjZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v0PD(KU3z):\n bGrB, wFao = XC5k.threshold(KU3z, 0, 255, XC5k.THRESH_BINARY + XC5k.THRESH_OTSU)\n return wFao",
"def VpqI(KpyS):\n q3YK = XC5k.bitwise_not(KpyS)\n bGrB, q_7b = XC5k.threshold(q3YK, 125, 255, XC5k.THRESH_BINARY | XC5k.THRESH_OTSU)\n q_7b = q_7b / 255.0\n return q_7b",
"def F... | [
"0.750121",
"0.74794066",
"0.7308855",
"0.72124976",
"0.70580614",
"0.6957116",
"0.69106567",
"0.6906782",
"0.6841234",
"0.6726067",
"0.67149913",
"0.6684782",
"0.66712165",
"0.6663356",
"0.66417146",
"0.66363895",
"0.6624576",
"0.66027623",
"0.65310574",
"0.649718",
"0.64935... | 0.0 | -1 |
Ban user(temporarily or permanently) (banUsers) Ban user. | def Iu5L(TBsA: Optional[UserBanRequest]=None, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):
if _63S is None:
_63S, P1dF = FQvI()
if P1dF:
return (None, P1dF)
QePW = pMmn.create(body=TBsA, namespace=_63S)
return n8as(QePW, additional_headers=Cbut, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7o0(iG42, CBIr):\n khKA(iG42, '/ban {}'.format(CBIr))",
"async def ban(YKHO, OaeV, CBIr: discord.Member, lo9Y='Banned from guild by Talos'):\n await CBIr.ban(reason=lo9Y)\n await YKHO.bot.mod_log(OaeV, 'ban', CBIr, lo9Y)\n await OaeV.send(f'User {CBIr} banned')",
"def Husc(YKHO, CBIr):\n YK... | [
"0.75992966",
"0.74105436",
"0.7396796",
"0.7266355",
"0.72023296",
"0.7168943",
"0.7119248",
"0.70580816",
"0.6892768",
"0.6846767",
"0.6842593",
"0.6823585",
"0.6822236",
"0.6801437",
"0.6789716",
"0.6784125",
"0.67358273",
"0.67217225",
"0.6616057",
"0.65626603",
"0.653238... | 0.67676955 | 16 |
Ban user(temporarily or permanently) (banUsers) Ban user. | async def ban_users_async(TBsA: Optional[UserBanRequest]=None, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):
if _63S is None:
_63S, P1dF = FQvI()
if P1dF:
return (None, P1dF)
QePW = pMmn.create(body=TBsA, namespace=_63S)
return await x1ax(QePW, additiona... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7o0(iG42, CBIr):\n khKA(iG42, '/ban {}'.format(CBIr))",
"async def ban(YKHO, OaeV, CBIr: discord.Member, lo9Y='Banned from guild by Talos'):\n await CBIr.ban(reason=lo9Y)\n await YKHO.bot.mod_log(OaeV, 'ban', CBIr, lo9Y)\n await OaeV.send(f'User {CBIr} banned')",
"def Husc(YKHO, CBIr):\n YK... | [
"0.7599607",
"0.74108607",
"0.73967344",
"0.72669256",
"0.72028416",
"0.71696013",
"0.71195334",
"0.70584726",
"0.6893309",
"0.6846221",
"0.68423283",
"0.6824143",
"0.68230546",
"0.68020815",
"0.67904055",
"0.6784512",
"0.6767531",
"0.6722689",
"0.6617149",
"0.6563216",
"0.65... | 0.6735395 | 17 |
Get configured actions (getActions) Get configured actions. | def Q6sW(_63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):
if _63S is None:
_63S, P1dF = FQvI()
if P1dF:
return (None, P1dF)
QePW = nI50.create(namespace=_63S)
return n8as(QePW, additional_headers=Cbut, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6sW(YKHO):\n return YKHO.agent.get_actions()",
"def eqLF(YKHO):\n return YKHO.actions",
"def CA6v(YKHO):\n return YKHO.actions",
"def qaYX(YKHO):\n xASv = YKHO.actions[:]\n return xASv",
"def xASv(YKHO):\n return YKHO._action_list",
"def xASv(YKHO):\n return YKHO._actions",
"d... | [
"0.7586385",
"0.7483631",
"0.7408846",
"0.7385172",
"0.7357751",
"0.7294271",
"0.7215498",
"0.7206148",
"0.7206148",
"0.7206148",
"0.7199116",
"0.71847093",
"0.71735805",
"0.71735805",
"0.71146554",
"0.7076717",
"0.70647585",
"0.69222045",
"0.6913177",
"0.6840468",
"0.676129"... | 0.61483526 | 44 |
Get configured actions (getActions) Get configured actions. | async def get_actions_async(_63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):
if _63S is None:
_63S, P1dF = FQvI()
if P1dF:
return (None, P1dF)
QePW = nI50.create(namespace=_63S)
return await x1ax(QePW, additional_headers=Cbut, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6sW(YKHO):\n return YKHO.agent.get_actions()",
"def eqLF(YKHO):\n return YKHO.actions",
"def CA6v(YKHO):\n return YKHO.actions",
"def qaYX(YKHO):\n xASv = YKHO.actions[:]\n return xASv",
"def xASv(YKHO):\n return YKHO._action_list",
"def xASv(YKHO):\n return YKHO._actions",
"d... | [
"0.758708",
"0.7483841",
"0.7408467",
"0.7385818",
"0.7357609",
"0.7293888",
"0.7215924",
"0.7205235",
"0.7205235",
"0.7205235",
"0.7199648",
"0.7184394",
"0.7173799",
"0.7173799",
"0.71155155",
"0.70763856",
"0.7063845",
"0.692191",
"0.69132286",
"0.68394077",
"0.67623335",
... | 0.0 | -1 |
Get user status (getUserStatus) Get user status. | def YzJb(uJjO: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):
if _63S is None:
_63S, P1dF = FQvI()
if P1dF:
return (None, P1dF)
QePW = nJTo.create(user_id=uJjO, namespace=_63S)
return n8as(QePW, additional_headers=Cbut, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ByGp(Emd4):\n return pz3A(status=Emd4._user_status())",
"def VLTN(YKHO, BaHi):\n j8eK = YKHO.base_uri + '/status'\n geh0 = G4JS.get(j8eK)\n if geh0.status_code == 404:\n return None\n return geh0.json()",
"def weZ8(FMPN):\n bD7m = f'https://users.roblox.com/v1/users/{FMPN}/status'\... | [
"0.7524825",
"0.7263556",
"0.7105153",
"0.6696677",
"0.66392136",
"0.6631111",
"0.6631111",
"0.6631111",
"0.6592678",
"0.65907216",
"0.6560918",
"0.6544045",
"0.65141886",
"0.64635885",
"0.642155",
"0.63860106",
"0.6349994",
"0.6309848",
"0.6300332",
"0.62869126",
"0.62663734... | 0.6821228 | 3 |
Get user status (getUserStatus) Get user status. | async def get_user_status_async(uJjO: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):
if _63S is None:
_63S, P1dF = FQvI()
if P1dF:
return (None, P1dF)
QePW = nJTo.create(user_id=uJjO, namespace=_63S)
return await x1ax(QePW, additional_headers=Cbut, *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ByGp(Emd4):\n return pz3A(status=Emd4._user_status())",
"def VLTN(YKHO, BaHi):\n j8eK = YKHO.base_uri + '/status'\n geh0 = G4JS.get(j8eK)\n if geh0.status_code == 404:\n return None\n return geh0.json()",
"def weZ8(FMPN):\n bD7m = f'https://users.roblox.com/v1/users/{FMPN}/status'\... | [
"0.7523592",
"0.72634816",
"0.71049386",
"0.68216056",
"0.66957957",
"0.66370094",
"0.6630089",
"0.6630089",
"0.6630089",
"0.65911",
"0.6589884",
"0.65601075",
"0.6543499",
"0.65128976",
"0.64211106",
"0.6386346",
"0.6348905",
"0.6307903",
"0.6299674",
"0.628631",
"0.6265528"... | 0.64646393 | 14 |
Autoencoder transformer. Note that because sigmoid activation used at the final layer of the decoder the data must be in (0, 1) range for "binary_crossentropy" loss to get positive values. | def FIMM(YKHO, FTjJ=30, Htse=None, N77f=None, It3R=None):
super(Aqiw, YKHO).__init__()
YKHO.code_dim = FTjJ
YKHO.dims = Htse
if N77f is None:
N77f = 'mean_absolute_error'
YKHO.loss = N77f
YKHO.fit_params = It3R | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pJ5g(nPrm: np.ndarray) -> oyIN.ndarray:\n YpkZ = X6a0(shape=(784,))\n ERVO = l6ZH(128, activation='relu')(YpkZ)\n ERVO = l6ZH(64, activation='relu')(ERVO)\n ERVO = l6ZH(32, activation='relu')(ERVO)\n AgdR = l6ZH(64, activation='relu')(ERVO)\n AgdR = l6ZH(128, activation='relu')(AgdR)\n Agd... | [
"0.7081701",
"0.7064469",
"0.6839215",
"0.66432196",
"0.6342909",
"0.63256764",
"0.6319528",
"0.6300737",
"0.6239154",
"0.6192529",
"0.618424",
"0.6128118",
"0.61113214",
"0.61069864",
"0.6093878",
"0.60930073",
"0.6068266",
"0.60606444",
"0.5981551",
"0.5980654",
"0.5948494"... | 0.0 | -1 |
Allow items to be randomly assigned to a specific door | def KQRz():
kmA3 = ['door-money.png', 'door-goat.png', 'door-trash.png']
w_nW.door1_reveal = tuKI.choice(kmA3)
kmA3.remove(w_nW.door1_reveal)
w_nW.door2_reveal = tuKI.choice(kmA3)
kmA3.remove(w_nW.door2_reveal)
w_nW.door3_reveal = tuKI.choice(kmA3)
kmA3.remove(w_nW.door3_reveal) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n__i(YKHO, WKvO, LVAh):\n Mkmy = int(tuKI() * 10)\n if 3 < Mkmy and Mkmy <= 6:\n YKHO.put_fireitem(WKvO, LVAh)\n elif 6 < Mkmy and Mkmy <= 9:\n YKHO.put_bombitem(WKvO, LVAh)",
"def SawS(YKHO) -> None:\n return",
"def x1gO(YKHO, mLGw):\n dStn = None\n if mLGw is 1:\n d... | [
"0.6729286",
"0.6421847",
"0.63770074",
"0.6332747",
"0.6300454",
"0.6246168",
"0.6197324",
"0.61616385",
"0.614601",
"0.61001724",
"0.60988545",
"0.607681",
"0.60475236",
"0.60334176",
"0.5995888",
"0.59947056",
"0.59499204",
"0.5910717",
"0.5909556",
"0.5908517",
"0.5888024... | 0.7309903 | 0 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
while True:
j5sA = input('\nFor which city would you like to see data: Chicago, New York City, or Washington? \n').lower()
if j5sA not in ('chicago', 'new york city', 'washington'):
print('Please enter either Chicago, ... | {
"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.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.0 | -1 |
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.strftime('%B')
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
if x0eS != 'all':
X_bn = ['january', 'february', 'march', 'apri... | {
"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.81319666",
"0.81089365",
"0.8045794",
"0.80421233",
"0.8009013",
"0.8006819",
"0.79993606",
"0.799815",
"0.7988398",
"0.7978816",
"0.7973185",
"0.79605204",
"0.79559934",
"0.7946578",
"0.79459554",
"0.79077595",
"0.79076785",
"0.7903725",
"0.79003966",
"0.7892789",
"0.7888... | 0.76328045 | 76 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
FwPm = jQ3Z['month'].mode()[0]
print('The most common month for travel is ', FwPm)
pUF2 = jQ3Z['day_of_week'].mode()[0]
print('The most common day of the week is ', pUF2)
jQ3Z['hour'] = jQ3Z['Sta... | {
"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.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583438",
"0.7579... | 0.7625196 | 16 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
wFQK = jQ3Z['Start Station'].value_counts().idxmax()
print('The most commonly used start station is ', wFQK)
Tz_c = jQ3Z['End Station'].value_counts().idxmax()
print('The most commonly used end stat... | {
"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.70266914 | 72 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
lLPx = sum(jQ3Z['Trip Duration'])
print('The total travel time is ', lLPx / 86400, 'days.')
n0t6 = jQ3Z['Trip Duration'].mean()
print('The average travel time is ', n0t6 / 60, 'minutes.')
print('\nThis took %s secon... | {
"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.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.7720885 | 62 |
Cleans document of stopwords and punctuation. Stopwords are specified at initialization of Processing. Lemmatizes for all languages except Chinese. | def _AaB(YKHO, C13M):
F5TV = ''.join((YRbF for YRbF in C13M.lower() if YRbF not in YKHO.punctuation))
jWWN = [YRbF for YRbF in F5TV.split() if YRbF not in YKHO.stopwords]
if YKHO.lang is not 'chinese':
jWWN = [YKHO.lemmatize.lemmatize(YRbF) for YRbF in jWWN]
return jWWN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QrZ9(l5Ny):\n Esii = GFnk()\n mkhU = wgQP.PorterStemmer()\n JCyR = di0c.words('english')\n JCyR += ['.', ',', ':', '...', '!\"', '?\"', \"'\", '\"', ' - ', ' — ', ',\"', '.\"', '!', ';', '♫♫', '♫', '.\\'\"', '[', ']', '—', \".'\", 'ok', 'okay', 'yeah', 'ya', 'stuff', ' 000 ', ' em ', ' oh ', 'thank... | [
"0.7625325",
"0.7195707",
"0.70659137",
"0.70421284",
"0.70037323",
"0.6901292",
"0.68763566",
"0.68709326",
"0.68199193",
"0.6802392",
"0.6761715",
"0.6740753",
"0.673547",
"0.6725475",
"0.6722779",
"0.67183214",
"0.6692628",
"0.66864705",
"0.66829616",
"0.6656232",
"0.66502... | 0.7825676 | 0 |
Return all tokens retrieved from raw sql text. | def thS1(YKHO, pKqd):
U5Jc = g4Ww.parse(pKqd)[0]
return U5Jc.tokens | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thS1(YKHO, l5Ny):\n return tuple(YKHO._compiled_pattern.findall(l5Ny))",
"def wr3U(Novh):\n\n def Vai5(s2mk):\n\n def bGrB(WKvO):\n return bk8F(WKvO, 'op', s2mk)\n return bGrB\n zpSF = zcnz(Novh, tokens=wP7q + FWGs)\n s2mk = map(rXRV, zpSF)\n s2mk = map(Vai5(wP7q + FWG... | [
"0.68761116",
"0.63889736",
"0.63438416",
"0.63347995",
"0.6324797",
"0.63004404",
"0.62028176",
"0.6189613",
"0.6175202",
"0.6122846",
"0.60931",
"0.60501766",
"0.6048735",
"0.60041136",
"0.59980965",
"0.59953356",
"0.5974618",
"0.59277856",
"0.59134954",
"0.58998233",
"0.58... | 0.86128026 | 0 |
The ID of the endpoint that the rule is associated with. | def F7tf(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resolver_endpoint_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'end... | [
"0.785335",
"0.785335",
"0.785335",
"0.7806635",
"0.7806635",
"0.7806635",
"0.7806635",
"0.7682396",
"0.7682396",
"0.76541483",
"0.7096072",
"0.7007405",
"0.70042694",
"0.6772167",
"0.672375",
"0.66834414",
"0.6635891",
"0.6635891",
"0.6635891",
"0.6635891",
"0.647098",
"0.... | 0.6888925 | 13 |
Get an existing ResolverRule resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'ResolverRule':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = qrzV.__new__(qrzV)
r6DL.__dict__['arn'] = None
r6DL.__dict__['domain_name'] = None
r6DL.__dict__['name'] = None
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, XSoh: Optional[pulumi.Input[str]]=None, TJ_E: Optional[pulumi.Input[bool]]=None, ZzAz: Optional[pulumi.Input[str]]=None, Ey19: Optional[pulumi.Input[int]]=None, wI2t: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType... | [
"0.6719511",
"0.6532681",
"0.6080831",
"0.6042104",
"0.5868561",
"0.57383907",
"0.5715684",
"0.5545571",
"0.5542033",
"0.552981",
"0.54866755",
"0.5480718",
"0.5468526",
"0.5452355",
"0.536813",
"0.53439337",
"0.5298328",
"0.5257922",
"0.52240974",
"0.52226216",
"0.5218783",
... | 0.74160874 | 0 |
The Amazon Resource Name (ARN) of the resolver rule. | def hMqs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Yge(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_arn')",
"def _Yge(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_arn')",
"def bKqw(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'rule_name')",
"def bKqw(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_name')",
"def bKqw(YKHO) -> ... | [
"0.77187914",
"0.77187914",
"0.72137314",
"0.7097859",
"0.7097859",
"0.70503056",
"0.70503056",
"0.70503056",
"0.70503056",
"0.70503056",
"0.7023936",
"0.7023936",
"0.6795353",
"0.6795353",
"0.6795353",
"0.6770597",
"0.675322",
"0.6746797",
"0.6746797",
"0.6746797",
"0.674679... | 0.71664274 | 21 |
The ID of the endpoint that the rule is associated with. | def F7tf(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'resolver_endpoint_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'end... | [
"0.785335",
"0.785335",
"0.785335",
"0.7806635",
"0.7806635",
"0.7806635",
"0.7806635",
"0.7682396",
"0.7682396",
"0.76541483",
"0.7096072",
"0.7007405",
"0.6888925",
"0.6772167",
"0.672375",
"0.66834414",
"0.6635891",
"0.6635891",
"0.6635891",
"0.6635891",
"0.647098",
"0.6... | 0.70042694 | 12 |
The ID of the endpoint that the rule is associated with. | def mOrl(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resolver_rule_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'end... | [
"0.785335",
"0.785335",
"0.785335",
"0.7806635",
"0.7806635",
"0.7806635",
"0.7806635",
"0.7682396",
"0.7682396",
"0.76541483",
"0.7096072",
"0.7007405",
"0.70042694",
"0.6888925",
"0.6772167",
"0.672375",
"0.66834414",
"0.6635891",
"0.6635891",
"0.6635891",
"0.6635891",
"0... | 0.64390117 | 23 |
Return a hashable object that represents the identity of the item. By default this returns the position of the item in the tree. You may want to override this to return the item label (if you know that labels are unique and don't change), or return something that represents the underlying domain object, e.g. a database... | def xvUM(YKHO, ZfUD):
return YKHO.GetIndexOfItem(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, ZfUD: int) -> int:\n return YKHO.root[ZfUD].key",
"def mexE(YKHO, ZfUD):\n return ZfUD[0]",
"def tbBy(YKHO, ht7m):\n if ht7m in YKHO.item_dict:\n return YKHO.item_dict[ht7m]\n else:\n return -1",
"def O5W0(YKHO, ZfUD):\n return YKHO.__item_map[ZfUD]",
"def ht7m(Y... | [
"0.6718204",
"0.6554382",
"0.65462506",
"0.6530754",
"0.6441343",
"0.6328451",
"0.62762874",
"0.62707657",
"0.6197091",
"0.6179496",
"0.6170615",
"0.61524206",
"0.6140397",
"0.61041915",
"0.61041915",
"0.61041915",
"0.6083991",
"0.6075769",
"0.6046458",
"0.60321414",
"0.60292... | 0.72654194 | 0 |
Returns the checked/unchecked state of a tree item. | def Fgyf(YKHO, ZfUD):
gQhI = []
if YKHO._window.IsItemChecked(ZfUD):
gQhI.append(YKHO.GetItemIdentity(ZfUD))
gQhI.extend(YKHO.GetCheckedStateOfChildren(ZfUD))
return gQhI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSmn(YKHO):\n tk5Y = YKHO._window.GetRootItem()\n if not tk5Y:\n return []\n if YKHO._window.HasFlag(lnPd.TR_HIDE_ROOT):\n return YKHO.GetCheckedStateOfChildren(tk5Y)\n else:\n return YKHO.GetCheckedStateOfItem(tk5Y)",
"def tCzv(YKHO):\n return YKHO._checked",
"def P6S7(... | [
"0.69177413",
"0.6791844",
"0.678748",
"0.6771581",
"0.6743726",
"0.6448472",
"0.61242646",
"0.61118394",
"0.5986325",
"0.5969601",
"0.58343244",
"0.58270293",
"0.58140105",
"0.57682854",
"0.5758146",
"0.5758146",
"0.5758146",
"0.57553107",
"0.573678",
"0.5687317",
"0.5669797... | 0.7260089 | 0 |