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 |
|---|---|---|---|---|---|---|
testing office does not exist. | def M0WN(YKHO):
NT__ = YKHO.generate_token()
geh0 = YKHO.client.get('api/v2/admin/office/200', headers={'content-type': 'application/json', 'Authorization': f'Bearer {NT__}'})
YKHO.assertEqual(geh0.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RmXT(YKHO):\n bD7m = '/api/v1/consultorios/AAA/'\n QePW = YKHO.client.get(bD7m)\n YKHO.assertEqual(QePW.status_code, jGRS.HTTP_404_NOT_FOUND)",
"def LexK(YKHO):\n bD7m = '/api/v1/consultorios/{}/'.format(YKHO.app_client.id)\n QePW = YKHO.client.get(bD7m)\n YKHO.assertEqual(QePW.status_code,... | [
"0.728482",
"0.68407035",
"0.65162516",
"0.644528",
"0.62505734",
"0.6213178",
"0.60399044",
"0.5956804",
"0.5956804",
"0.58342713",
"0.5818633",
"0.5814929",
"0.5784971",
"0.5781812",
"0.57669777",
"0.57438064",
"0.57429135",
"0.57223547",
"0.5689003",
"0.56777626",
"0.56736... | 0.79791325 | 0 |
DPMinimum Component Returns differentially private estimates of the minimum elements of each column of the data. | def XAQa(nPrm, kbGe=None, LSh8=None, CN9P=None, zY54='Automatic', KsUd=None, **B2fa):
return C1zu('DPMinimum', arguments={'data': C1zu.of(nPrm), 'candidates': C1zu.of(kbGe), 'lower': C1zu.of(LSh8), 'upper': C1zu.of(CN9P)}, options={'mechanism': zY54, 'privacy_usage': oo7p(KsUd)}, constraints=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def min(YKHO):\n return YKHO._summarize(aBqk._cmin)",
"def P4MC(nPrm):\n if LDQU(nPrm):\n nPrm = [oyIN.min(nPrm[fvDH]) for fvDH in nPrm.columns]\n elif LMoG(nPrm):\n nPrm = [YNnI(nPrm[fvDH]) for fvDH in nPrm.columns]\n elif isinstance(nPrm, rLdf.DataFrame):\n nPrm = oyIN.min(nPrm... | [
"0.69582605",
"0.69307077",
"0.6845297",
"0.67493725",
"0.6695501",
"0.66640407",
"0.66006297",
"0.65799034",
"0.6537866",
"0.65148956",
"0.64993054",
"0.6469134",
"0.64242935",
"0.63480365",
"0.63243157",
"0.6314989",
"0.6282098",
"0.6278526",
"0.62499225",
"0.6223569",
"0.6... | 0.7016547 | 0 |
Impute Component Replaces null values with draws from a specified distribution. If the `categories` argument is provided, the data are considered to be categorical regardless of atomic type and the elements provided in `null_value` will be replaced with those in `categories` according to `weights`. | def v3bk(nPrm, LSh8=None, CN9P=None, LeZt=None, VO2C=None, _mSQ=None, IZxK=None, DkWr=None, NXpY=None, **B2fa):
return C1zu('Impute', arguments={'data': C1zu.of(nPrm), 'lower': C1zu.of(LSh8), 'upper': C1zu.of(CN9P), 'categories': C1zu.of(LeZt, value_format='jagged'), 'null_values': C1zu.of(VO2C, value_format='jagge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXo2(iglq):\n bBVO.set_hyperseed(100)\n EcVT, r8hN, UDiA = iglq\n dpm0 = oyIN.copy(EcVT)\n dpm0[:, r8hN[:, 0], 0] = UDiA[0]\n dpm0[:, r8hN[:, 1], 1] = UDiA[1]\n\n def LWmu(**B2fa):\n return (B2fa['X'], 0.0)\n\n def v_QQ(**B2fa):\n return (B2fa['M'], 0.0)\n exwG, ywwl, lWPh... | [
"0.5843646",
"0.5703534",
"0.56534433",
"0.53330684",
"0.51503074",
"0.51098883",
"0.5103439",
"0.5027979",
"0.46898478",
"0.464653",
"0.46087444",
"0.46075082",
"0.45855418",
"0.45746383",
"0.45719746",
"0.45481202",
"0.45344567",
"0.4522975",
"0.4521848",
"0.45034105",
"0.4... | 0.69118243 | 0 |
Maximum Component Find the maximum value of each column in the data. | def PtQX(nPrm, kbGe=None, **B2fa):
return C1zu('Maximum', arguments={'data': C1zu.of(nPrm), 'candidates': C1zu.of(kbGe)}, options={}, constraints=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYxc(nPrm):\n return nPrm.max()",
"def qfB5(YKHO):\n bQ6z = YKHO.df[YKHO.col_name].max()\n return bQ6z",
"def max(YKHO):\n return XTiz.ma.max(YKHO.data)",
"def max(YKHO):\n return oyIN.max(YKHO.data_array)",
"def max(YKHO):\n return YKHO._reduce_for_stat_function(vuvg.max, only_numeri... | [
"0.7639471",
"0.74651176",
"0.74068457",
"0.73748827",
"0.7288054",
"0.72342914",
"0.72342485",
"0.72225535",
"0.72085446",
"0.7185807",
"0.7153377",
"0.7085026",
"0.69979435",
"0.6984802",
"0.69161564",
"0.69110006",
"0.688618",
"0.68475777",
"0.6833298",
"0.6833129",
"0.683... | 0.68577296 | 17 |
Minimum Component Find the minimum value of each column in the data. | def vELP(nPrm, kbGe=None, **B2fa):
return C1zu('Minimum', arguments={'data': C1zu.of(nPrm), 'candidates': C1zu.of(kbGe)}, options={}, constraints=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4MC(nPrm):\n if LDQU(nPrm):\n nPrm = [oyIN.min(nPrm[fvDH]) for fvDH in nPrm.columns]\n elif LMoG(nPrm):\n nPrm = [YNnI(nPrm[fvDH]) for fvDH in nPrm.columns]\n elif isinstance(nPrm, rLdf.DataFrame):\n nPrm = oyIN.min(nPrm)\n elif isinstance(nPrm, o7sj.lil_matrix):\n nPrm... | [
"0.77326643",
"0.75248986",
"0.7514261",
"0.7485672",
"0.74042296",
"0.7334882",
"0.7311381",
"0.7263559",
"0.72224015",
"0.7207765",
"0.71996886",
"0.7061297",
"0.70022327",
"0.6993521",
"0.69879144",
"0.69703585",
"0.69274914",
"0.688212",
"0.68421286",
"0.6833069",
"0.6820... | 0.6537558 | 45 |
Quantile Component Get values corresponding to specified quantiles for each column of the data. | def aM62(nPrm, Cwt5, kbGe=None, GoGv='midpoint', **B2fa):
return C1zu('Quantile', arguments={'data': C1zu.of(nPrm), 'candidates': C1zu.of(kbGe)}, options={'alpha': Cwt5, 'interpolation': GoGv}, constraints=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tr1t(YKHO, z0q4, o7bE):\n YKHO.check_for_column(z0q4)\n return list(YKHO.data[z0q4].quantile(o7bE))",
"def jviO(nPrm):\n vexM = oyIN.percentile(nPrm, [25, 50, 75])\n return (vexM[0], vexM[1], vexM[2])",
"def Tr1t(nPrm, o7bE):\n kc1W = list(nPrm.data_vars)\n yXlG = rLdf.DataFrame(columns=[... | [
"0.7723791",
"0.71955717",
"0.71177274",
"0.709959",
"0.7073731",
"0.7029196",
"0.69120234",
"0.67740047",
"0.6707667",
"0.6646069",
"0.6633467",
"0.6619459",
"0.6606744",
"0.6595048",
"0.6574982",
"0.6570927",
"0.6540677",
"0.65342575",
"0.65328175",
"0.6506613",
"0.6492949"... | 0.6383378 | 27 |
Reshape Component Reshapes a row vector into a matrix. | def q3V_(nPrm, ROpF, z_n9=False, LAOT='row', **B2fa):
return C1zu('Reshape', arguments={'data': C1zu.of(nPrm)}, options={'symmetric': z_n9, 'layout': LAOT, 'shape': ROpF}, constraints=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rdlD(Ty9i):\n return Ty9i.reshape((1, Ty9i.size))",
"def q3V_(WKvO, ROpF):\n return hekC(ROpF)(WKvO)",
"def nrpi(Z9rn, Ty9i, BLg0):\n rkoI = Z9rn.ref(Ty9i)\n assert BLg0.is_constant(tuple)\n O358 = False\n if BLg0.value == ():\n BLg0 = (1,)\n O358 = True\n else:\n ... | [
"0.6900741",
"0.6811683",
"0.6622637",
"0.6507112",
"0.64353794",
"0.628789",
"0.62686",
"0.62366134",
"0.62168616",
"0.61947775",
"0.61918604",
"0.61802113",
"0.6178215",
"0.6139591",
"0.6139526",
"0.61285394",
"0.6126825",
"0.61071724",
"0.60722476",
"0.60699594",
"0.606448... | 0.56694686 | 47 |
ToFloat Component Cast data to a float atomic type. | def jhGN(nPrm, **B2fa):
return C1zu('ToFloat', arguments={'data': C1zu.of(nPrm)}, options={}, constraints=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dtko(BWXx):\n JHly = 'float32'\n if isinstance(BWXx, (oyIN.matrix, oyIN.ndarray)):\n if BWXx.dtype != oyIN.dtype(JHly):\n return BWXx.astype(JHly)\n return BWXx\n elif isinstance(BWXx, (ZylS.Tensor, ZylS.SparseTensor)):\n return ZylS.cast(BWXx, ZylS.float32)\n elif K... | [
"0.69599676",
"0.6947573",
"0.69162434",
"0.68740153",
"0.6788781",
"0.67866516",
"0.6780354",
"0.67762655",
"0.67088765",
"0.6685503",
"0.66399074",
"0.6607561",
"0.6521487",
"0.65097505",
"0.6438368",
"0.6431341",
"0.6420081",
"0.63894767",
"0.6378874",
"0.6361583",
"0.6356... | 0.8099834 | 0 |
Handle an individual sequence, returns frame offsets unique to that sequence based on the output length. | def rMwf(YKHO, jIcB, SVFM):
eSJ3 = len(SVFM)
tsWk = int(YKHO.input_tensor.shape[1])
hGs1 = int(YKHO.input_tensor.shape[2])
WbAn = oyIN.zeros((tsWk, hGs1))
WbAn[:lAak, 0] = oyIN.ones(lAak)
WbAn[eSJ3:eSJ3 + lAak, 0] = oyIN.ones(lAak)
for or8S, Dfta in enumerate(SVFM):
PCnA = or8S + lAa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nfk3(YKHO, CJSN):\n thoa = len(CJSN) - YKHO.seq_length\n if thoa == 0:\n return CJSN\n elif thoa > 0:\n return CJSN[thoa:]\n else:\n return CJSN[:1] * abs(thoa) + CJSN",
"def r_CX(YKHO, jWe2, BVvO):\n Aofo = YKHO.tf_session.run(YKHO.output_tensor, feed_dict={YKHO.input_ten... | [
"0.62496144",
"0.6018629",
"0.5797323",
"0.57035273",
"0.5538109",
"0.54730046",
"0.54676616",
"0.54140294",
"0.54096365",
"0.5404373",
"0.5370025",
"0.5361999",
"0.534984",
"0.534074",
"0.5306048",
"0.5281904",
"0.5262537",
"0.5243066",
"0.52411693",
"0.521795",
"0.5208451",... | 0.4859664 | 98 |
Converts a MultiDiGraph to a DiGraph. This is not lossless. | def WhJO(eVVj):
zCLt = jHsn.DiGraph(crs=eVVj.graph['crs'])
for Q6kx in eVVj.nodes:
zCLt.add_node(Q6kx, **eVVj.nodes[Q6kx])
for Q6kx, A_IW in eVVj.adjacency():
for AAbN in A_IW:
zCLt.add_edge(Q6kx, AAbN)
return zCLt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtEB(pNZh: Union[gr.MultiDiGraph, gr.OrderedMultiDiGraph]) -> jHsn.DiGraph:\n GRyJ: x1iM[AzJI[int, cuzp[str, fHgE.Node]]] = [None] * pNZh.number_of_nodes()\n Lnes = {}\n for YRbF, Q6kx in enumerate(pNZh.nodes()):\n GRyJ[YRbF] = (YRbF, {'node': Q6kx})\n Lnes[Q6kx] = YRbF\n PSM6 = {}\n ... | [
"0.74510324",
"0.6200519",
"0.6021186",
"0.57963204",
"0.5790773",
"0.56979305",
"0.5629782",
"0.55409557",
"0.5537737",
"0.5528657",
"0.55179363",
"0.5491196",
"0.5484487",
"0.5437468",
"0.5412226",
"0.53960115",
"0.5376957",
"0.53714126",
"0.53581613",
"0.5355225",
"0.53356... | 0.0 | -1 |
Splits a given network into two networks with disjoint edges randomly. | def CX57(eVVj, dMYj=0.1):
Cy7q = tuKI.sample(list(eVVj.edges()), int(len(eVVj.edges()) * dMYj))
o8HJ = eVVj.copy()
o8HJ.remove_edges_from(Cy7q)
inv3 = eVVj.copy()
inv3.remove_edges_from(o8HJ.edges())
return (o8HJ, inv3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def khVi(YKHO):\n XWCm(YKHO.nodes[1], 2)\n XWCm(YKHO.nodes[2], 1)\n YKHO.sync_all([YKHO.nodes[:2], YKHO.nodes[2:]])",
"def C2qs(exwG):\n return jHsn.fast_gnp_random_graph(exwG, 2 / (exwG * exwG), directed=True)",
"def OOi0(_E99):\n eVVj = []\n for gEmA in range(1, len(_E99)):\n eVVj.ap... | [
"0.6870835",
"0.58356804",
"0.57925427",
"0.57220614",
"0.5662645",
"0.56111646",
"0.55763596",
"0.5571033",
"0.5569067",
"0.55261344",
"0.5498645",
"0.54774463",
"0.5461168",
"0.54593486",
"0.5452104",
"0.5449402",
"0.54340035",
"0.5363878",
"0.53611666",
"0.53298086",
"0.53... | 0.73719376 | 0 |
Returns a move that can be played in the game represented by the 'board' argument. Move selection is done using the 'minimax' function which uses the minimax algorithm with a depth of self.depth to decide on the best move to play. | def ysMt(YKHO, iBIi: Board) -> int:
BZN_, AsiB = YKHO.minimax(iBIi, -epAf.inf, epAf.inf, YKHO._depth, 1)
return BZN_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZN_(YKHO, iBIi):\n YKHO.start_time = ITS7.time()\n AasG = YKHO.get_disk_count(YKHO.my_color, iBIi) + YKHO.get_disk_count(YKHO.opponent_color, iBIi)\n if AasG < 15:\n YKHO.minimax_max_depth = 7\n elif AasG < 45:\n YKHO.minimax_max_depth = 5\n else:\n YKHO.minimax_max_depth =... | [
"0.79542685",
"0.79283834",
"0.7859559",
"0.78451806",
"0.7762921",
"0.7733113",
"0.7708824",
"0.7658644",
"0.7598491",
"0.75613964",
"0.752473",
"0.74973416",
"0.7475594",
"0.74668753",
"0.7449215",
"0.74386096",
"0.74046713",
"0.7392777",
"0.7391734",
"0.73862904",
"0.73629... | 0.7695812 | 7 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(YKHO, K0do, Wc9F, b0Ix, paSp, m_03, Ep8u):
tspZ = b0Ix
for YRbF in range(len(paSp)):
NXpY = m_03[YRbF] if YRbF < len(m_03) else 1
if Wc9F >= paSp[YRbF]:
tspZ = tspZ * NXpY
if Wc9F == paSp[YRbF]:
break
else:
break
for Lwm5 i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.79134107",
"0.7906755",
"0.7850054",
"0.7775328",
"0.773414",
"0.7731414",
"0.77228016",
"0.7721925",
"0.77193093",
"0.77092254",
"0.76932764",
"0.76743245",
"0.7665481",
"0.7665481",
"0.7665481",
"0.7654962",
"0.76418406",
"0.7639415",
"0.76375794",
"0.7626146",
"0.762473... | 0.0 | -1 |
Returns the intermediate representation of the regex. `match` is of type `quepy.regex.Match` and is analogous to a python re match. It contains matched groups in the regular expression. When implementing a regex one must fill this method. | def FDnX(YKHO, kUBT):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unoq(lcnE, uOe2=0):\n if lcnE:\n return lcnE.group(uOe2)\n else:\n return ''",
"def Jcs5(kUBT, Dl0U):\n yvT9 = dict()\n yvT9['line_number'] = kTlB(kUBT)\n yvT9['match'] = IPaH(kUBT, Dl0U)\n yvT9['value'] = jW_a(kUBT)\n return yvT9",
"def hBnP(w91x, kUBT):\n if w91x is ... | [
"0.65260977",
"0.6206823",
"0.61301637",
"0.6013107",
"0.600129",
"0.5925946",
"0.59169245",
"0.5843623",
"0.5822081",
"0.58141583",
"0.5734834",
"0.573191",
"0.5585897",
"0.55472225",
"0.55376583",
"0.54451925",
"0.5338242",
"0.5334164",
"0.53170955",
"0.51497495",
"0.513527... | 0.484355 | 42 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str, ZbOB=None) -> bool:
if not YKHO.root:
return False
if not ZbOB:
ZbOB = YKHO.root
for QyVM in range(len(GIN8)):
if GIN8[QyVM] == '.':
for H5ew in ZbOB.keys():
if 'end' != H5ew and YKHO.search(GIN8[QyVM + 1:], ZbOB[H5ew]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.8386537",
"0.8149872",
"0.8123037",
"0.78559494",
"0.78300846",
"0.77929264",
"0.77922416",
"0.7763923",
"0.775279",
"0.77465785",
"0.77099645",
"0.76809365",
"0.76762706",
"0.766352",
"0.7650309",
"0.7633329",
"0.7627476",
"0.76109934",
"0.7576837",
"0.7568961",
"0.756020... | 0.0 | -1 |
Prepare self.ctx.static, a list of all the sites with static (full) occupancy. Prepare self.ctx.sites, a dictionary containing, for each type of partially occupied site, the list of site, with either the ion, or the vacancy site. | def uIcm(YKHO):
lnWq = {}
k9q4 = {}
YKHO.ctx.static = []
YKHO.ctx.partial = {}
YKHO.ctx.select = []
YKHO.ctx.compositions = []
YKHO.ctx.sites_refactored = {}
for qpDA in YKHO.ctx.structure:
if YKHO.__is_partial(qpDA):
YKHO.ctx.sites_refactored.setdefault(qpDA.species_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DGp7(YKHO):\n Qpq_ = YKHO.structure\n WrH9 = YKHO.potentials\n N8OZ = YKHO.shapes\n bGrB, Mj6t = YKHO._check_for_CPA(Qpq_, WrH9)\n qF3e = []\n for r845 in range(len(Qpq_.sites)):\n qF3e.append({'StructureDataSite': Qpq_.sites[r845], 'potential': Mj6t[r845], 'shapefun': N8OZ[r845 % len(... | [
"0.56925267",
"0.5310055",
"0.52103853",
"0.5208855",
"0.52086264",
"0.5143907",
"0.5099758",
"0.5097602",
"0.5046086",
"0.503777",
"0.4891652",
"0.48659876",
"0.4825206",
"0.482473",
"0.48072958",
"0.47979233",
"0.4744293",
"0.4733904",
"0.47282398",
"0.4727508",
"0.47185266... | 0.5572548 | 1 |
Return whether this exception equals another. | def xa14(YKHO, Elif):
return type(YKHO) is type(Elif) and YKHO.line == Elif.line and (YKHO.line_num == Elif.line_num) and (jKi7.text_type(YKHO) == jKi7.text_type(Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, l9K3):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, Nme7):\n return False\n return YKHO.to_dict() == Elif.to_dict()",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, dHa0):... | [
"0.7838597",
"0.737434",
"0.73329884",
"0.7310152",
"0.71994346",
"0.718141",
"0.71651614",
"0.71527827",
"0.71527827",
"0.71226144",
"0.709702",
"0.70956147",
"0.70479685",
"0.70289963",
"0.7027998",
"0.7013588",
"0.7010732",
"0.70104736",
"0.70104736",
"0.70104736",
"0.7010... | 0.0 | -1 |
Create list with 'n' slots | def sSif(zNig: int) -> list:
YZ1J = zNig * [None]
return YZ1J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GXIA(exwG, FMLJ, YEnM):\n if exwG == 0:\n return BRj5(FMLJ, YEnM)\n yv6U = [0] * exwG\n for YRbF in range(exwG):\n yv6U[YRbF] = BRj5(FMLJ, YEnM)\n return yv6U",
"def GXIA(exwG, FMLJ, YEnM):\n if exwG == 0:\n return BRj5(FMLJ, YEnM)\n yv6U = [0] * exwG\n for YRbF in r... | [
"0.7450795",
"0.7450795",
"0.7020711",
"0.69280535",
"0.69105875",
"0.68483967",
"0.68276805",
"0.6777595",
"0.6733655",
"0.6727704",
"0.67031187",
"0.67031187",
"0.6701704",
"0.6700401",
"0.6700401",
"0.66940814",
"0.6665419",
"0.6646593",
"0.66400844",
"0.66388744",
"0.6634... | 0.0 | -1 |
Return boolean value True if isbn format is valid | def _Swv(ef6I: str):
nJvg = False
Z5r0 = list(ef6I)
zhJJ = ''
if len(Z5r0) == 13:
Tvf4 = []
g8rs = []
d6pt = 0
pcsW = []
for bseI in Z5r0:
if bseI in '0123456789':
Tvf4.append(bseI)
elif bseI not in '0123456789':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nCYJ(Z5r0):\n return len(Z5r0) == 10 and (Z5r0[-1] == 'X' or Z5r0[-1].isdigit()) and all((Ko6S.isdigit() for Ko6S in Z5r0[:-1]))",
"def SGVO(Z5r0: str) -> bool:\n Lg_1 = Z5r0.replace('-', '')\n xYvp = []\n kSXA = False\n if Lg_1:\n for hcXw in Lg_1:\n if hcXw == 'X':\n ... | [
"0.80440646",
"0.75025845",
"0.74354047",
"0.74281985",
"0.7312452",
"0.7196969",
"0.71772194",
"0.7138838",
"0.71299714",
"0.71211886",
"0.7052126",
"0.68939483",
"0.68916845",
"0.6603794",
"0.6603781",
"0.65762776",
"0.6460187",
"0.6444072",
"0.63961875",
"0.6367517",
"0.62... | 0.723948 | 5 |
Sets the netmask of this NodeInterfaceAlias. | def XYGv(YKHO, XYGv):
YKHO._netmask = XYGv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pRtY(YKHO, XYGv):\n YKHO._validator.validate_one('netmask', iyhn['netmask'], XYGv)\n YKHO._ifAttributes['netmask'] = XYGv",
"def pRtY(YKHO):\n YKHO.netmask = YKHO.settings.getKeyValue('netmask')\n YKHO.socket.send('setenv netmask ' + YKHO.netmask + '\\r', 1)\n return None",
"def ccRX(YKHO, r... | [
"0.79404473",
"0.73556066",
"0.6985128",
"0.6803436",
"0.6572765",
"0.6390518",
"0.6204599",
"0.61416304",
"0.599702",
"0.5927063",
"0.5927063",
"0.5569508",
"0.55434114",
"0.55363625",
"0.5507061",
"0.5441891",
"0.53779703",
"0.53711003",
"0.53678113",
"0.5301316",
"0.527144... | 0.8133332 | 0 |
Sets the ip_address of this NodeInterfaceAlias. | def I33c(YKHO, I33c):
YKHO._ip_address = I33c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HSdK(YKHO, I33c):\n YKHO._validator.validate_one('address', iyhn['address'], I33c)\n YKHO._ifAttributes['address'] = I33c",
"def D8Ke(YKHO, D8Ke):\n YKHO._ip = D8Ke",
"def D8Ke(YKHO, D8Ke):\n YKHO._ip = D8Ke",
"def D8Ke(YKHO, D8Ke: str):\n YKHO._ip = D8Ke",
"def RotX(YKHO, D8Ke: str, aCb... | [
"0.7535228",
"0.7147766",
"0.7147766",
"0.7087434",
"0.6989552",
"0.6956023",
"0.68806165",
"0.68451834",
"0.67728853",
"0.67325073",
"0.65992415",
"0.6476874",
"0.64717007",
"0.6461826",
"0.6343288",
"0.62721837",
"0.6271698",
"0.62490517",
"0.62092835",
"0.61837757",
"0.606... | 0.7574069 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, cFiu):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Initializes self.chitchat_bot with some conversational model. | def CkZ8(YKHO):
YKHO.chatbot = W8e4("Fresher's Friend")
YKHO.chatbot.trainer2 = uJts(YKHO.chatbot)
YKHO.chatbot.trainer = JAyJ(YKHO.chatbot)
YKHO.chatbot.trainer.train('chatterbot.corpus.english.greetings')
for Ux0P in iumf:
YKHO.chatbot.trainer2.train(RRlC[Ux0P]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkZ8(YKHO):\n YKHO.chatbot = W8e4('skoochbot', trainer='chatterbot.trainers.ChatterBotCorpusTrainer')\n YKHO.chatbot.train('chatterbot.corpus.english')\n print('Extra training...')\n YKHO.chatbot.set_trainer(uJts)\n YKHO.chatbot.train(['Hello', 'Hello. How are you?', 'I am well.', 'Good to hear'... | [
"0.69043535",
"0.67929095",
"0.67929095",
"0.67672825",
"0.6641166",
"0.6511156",
"0.6511156",
"0.6435355",
"0.6302653",
"0.62517583",
"0.60971355",
"0.60947114",
"0.60165435",
"0.5970731",
"0.5947144",
"0.5945499",
"0.5942612",
"0.5897279",
"0.5893073",
"0.5875649",
"0.58617... | 0.67607635 | 4 |
Initialize a new instance of ``cls`` from the given ``mapping``. | def SLBx(Emd4, J8oL):
raise NotImplementedError('Subclasses of MapInitializable must implement from_mapping.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, J8oL: Mapping[str, Any]) -> None:\n YKHO.__dict__.update(J8oL)",
"def FIMM(YKHO, J8oL: Dict[int, int]):\n YKHO.mapping = J8oL",
"def UpTm(Emd4, J8oL):\n MAvh = Emd4()\n for G1Hx in J8oL:\n Ty9i = dict.__getitem__(J8oL, G1Hx)\n if isinstance(Ty9i, dict):\n Ty9... | [
"0.74940765",
"0.72053355",
"0.71137536",
"0.709988",
"0.69840705",
"0.6830272",
"0.6763204",
"0.6717812",
"0.6669467",
"0.6434085",
"0.63913065",
"0.63913065",
"0.62930256",
"0.6198686",
"0.61934406",
"0.61261284",
"0.6090526",
"0.6090526",
"0.6090526",
"0.6090526",
"0.60905... | 0.8147797 | 0 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')",
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n C3ST = YKHO._meta.... | [
"0.7801019",
"0.7709888",
"0.76735187",
"0.76735187",
"0.75235254",
"0.74023134",
"0.73974043",
"0.73762494",
"0.7326721",
"0.7269429",
"0.7242188",
"0.723378",
"0.7205664",
"0.7173438",
"0.71659935",
"0.71088326",
"0.70359325",
"0.70359325",
"0.7010714",
"0.6985456",
"0.6965... | 0.0 | -1 |
x has shape [seq length, batch], padding_mask has shape [batch, seq length] | def KVH6(YKHO, zhTA, lnFo=250, Mi3O=None):
FBNX = ht2j.arange(lnFo, device=zhTA.device).unsqueeze(-1)
MKlR = zhTA + YKHO.position_embeddings(FBNX).expand_as(zhTA)
MKlR = YKHO.dropout(MKlR)
ShMy = None
if YKHO.causal:
ShMy = ht2j.full((lnFo, lnFo), -float('Inf'), device=MKlR.device, dtype=MKl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YczY(Q6uT):\n Q6uT = ZylS.cast(ZylS.math.equal(Q6uT, 0), ZylS.float32)\n return Q6uT[:, ZylS.newaxis, ZylS.newaxis, :]",
"def Pm89(g4y1, fRI8=0):\n ZHfW = ZylS.cast(ZylS.equal(g4y1, fRI8), 'float32')\n ZHfW = ZHfW[:, ZylS.newaxis, ZylS.newaxis, :]\n return ZHfW",
"def HI2w(nPrm, KHPh=0):\n ... | [
"0.75731164",
"0.70298314",
"0.69030887",
"0.68127817",
"0.65745115",
"0.6567377",
"0.6481786",
"0.6462458",
"0.64518964",
"0.64113533",
"0.6398223",
"0.6381566",
"0.6378395",
"0.63447213",
"0.6338231",
"0.63317764",
"0.6314723",
"0.62982994",
"0.6293184",
"0.6286742",
"0.628... | 0.0 | -1 |
Converts a time string into unix | def Nq8F(xmph):
wx6A = int(xmph[0:4])
M9oE = int(xmph[5:7])
WCB9 = int(xmph[8:10])
ROt1 = int(xmph[11:13]) + lWPh.tzOffset + lWPh.dst
min = int(xmph[14:16])
kRsb = int(xmph[17:19])
eQyR = -1
pru3 = -1
dh61 = 0
Ei1M = ITS7.mktime((wx6A, M9oE, WCB9, ROt1, min, kRsb, eQyR, pru3, dh6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnHN(IZrA):\n aevO = ITS7.strptime(IZrA, '%Y-%m-%d %H:%M')\n return ITS7.mktime(aevO)",
"def f0WG(YKHO, a1PO):\n LVAh, r8hN, Csk6 = str(a1PO).split('-')\n return qcWV(int(LVAh), int(r8hN), int(Csk6)).strftime('%s')",
"def vNUx(JvEs, ejIZ):\n format = '%Y %m %d %H %M %S'\n return ITS7.mkti... | [
"0.77871555",
"0.7515878",
"0.7422874",
"0.718827",
"0.715167",
"0.7126895",
"0.7038204",
"0.6877953",
"0.6871574",
"0.6832298",
"0.6825329",
"0.68185085",
"0.68029606",
"0.679469",
"0.67918897",
"0.676656",
"0.6705236",
"0.66919494",
"0.6691843",
"0.66401935",
"0.66200954",
... | 0.5870194 | 80 |
Get a random element from the collection. | def UIrZ(YKHO) -> int:
return Acvy(YKHO.array) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO) -> 'PFElement':\n return tuKI.choice(list(iter(YKHO)))",
"def m5AQ(YKHO, OxJJ):\n yv6U = list(OxJJ)\n or8S = YKHO._rand_int(0, len(yv6U))\n return yv6U[or8S]",
"def UIrZ(YKHO):\n Gv0a = ajWY(0, len(YKHO.list_val) - 1)\n return YKHO.list_val[Gv0a]",
"def UIrZ(YKHO):\n retur... | [
"0.7651958",
"0.7149041",
"0.70814615",
"0.7044879",
"0.70404017",
"0.7034526",
"0.6959262",
"0.69563407",
"0.68719393",
"0.68376184",
"0.6797525",
"0.670551",
"0.6697882",
"0.6692588",
"0.6692588",
"0.6692588",
"0.6692588",
"0.66815263",
"0.66744214",
"0.6673934",
"0.6651395... | 0.61053157 | 72 |
Check the name of the currently installed table definition. | def iRlW(YKHO, k9X4):
return k9X4 == YKHO._table.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RPa5(YKHO, mWFP: str) -> bool:\n try:\n YKHO.execute('select * from {table} limit 1', mWFP)\n return True\n except iHv3.OperationalError:\n return False",
"def wthm(YKHO, dkEj):\n D1Eo = 'SELECT count(*) FROM sqlite_master'\n lgHt = \"type='table' AND name='{}';\".format(dkEj... | [
"0.68693244",
"0.67616963",
"0.67600906",
"0.67544353",
"0.67398244",
"0.6737316",
"0.65376353",
"0.64955884",
"0.6483068",
"0.6424202",
"0.641076",
"0.6409308",
"0.6385364",
"0.6372749",
"0.6359765",
"0.633788",
"0.63370806",
"0.6334842",
"0.6316244",
"0.63141674",
"0.631179... | 0.60474765 | 48 |
Parse start date and time. | def hFBJ(YKHO, ZfUD):
try:
AzFi = hfK9(ZfUD)
return qcWV.combine(AzFi.date(), ITS7(13))
except ValueError:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hFBJ(YKHO, mbyn):\n return qcWV.strptime(mbyn.title(), '%B %d, %Y')",
"def hFBJ(YKHO, geh0):\n mbyn = geh0.css('.date time::attr(datetime)').extract_first()\n jmHs = ''.join(geh0.css('article.time::text').extract()).strip()\n if not jmHs:\n jmHs = ''.join(geh0.css('article.time *::text').e... | [
"0.8012607",
"0.7956383",
"0.79541355",
"0.775254",
"0.7745357",
"0.7708766",
"0.7648467",
"0.7642984",
"0.74821883",
"0.7459805",
"0.7399587",
"0.7093819",
"0.697785",
"0.69141096",
"0.6728942",
"0.65998924",
"0.6470897",
"0.6462791",
"0.6380753",
"0.634331",
"0.6262659",
... | 0.754136 | 8 |
Apply accumulated gradients to the shared network and clear accumulated gradients. | def L7aC(YKHO):
kdJa = {}
if YKHO.actor_learner_type == 0 or YKHO.actor_learner_type == 1:
for YRbF in Ni9Y(len(YKHO.accumulated_grads)):
if YKHO.optimizer_mode == 'local':
if YKHO.optimizer_type == 'momentum':
YKHO.m[YRbF] = YKHO.m[YRbF] * 0.9 + YKHO.accu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrDc(YKHO, Pusg: str='mean') -> None:\n if Pusg == 'mean':\n gH2v = ht2j.mean\n elif Pusg == 'sum':\n gH2v = ht2j.sum\n else:\n raise ValueError(f\"'reduce' must be one of 'mean' or 'sum', got '{Pusg}''.\")\n if not YKHO._forward_succesful:\n raise RuntimeError('An error... | [
"0.61880356",
"0.61864597",
"0.6143851",
"0.6082672",
"0.60781544",
"0.60781544",
"0.60781544",
"0.60481215",
"0.60116106",
"0.598573",
"0.5979478",
"0.5927112",
"0.5927112",
"0.5904418",
"0.5878214",
"0.58651006",
"0.5864109",
"0.57984",
"0.5796732",
"0.5778578",
"0.57525736... | 0.6959485 | 0 |
Rescale immediate reward by max reward encountered thus far. | def IeCw(YKHO, vOGg):
if vOGg > YKHO.max_reward:
bGrB, YKHO.max_reward = YKHO.session.run([YKHO.update_max_reward_op, YKHO.thread_max_reward], feed_dict={YKHO.thread_max_reward_placeholder: vOGg})
return vOGg / YKHO.max_reward | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMIL(vOGg, pEdD, JAPK, aM8h=10):\n uvMl = (JAPK - pEdD) / 2\n finE = (JAPK + pEdD) / 2\n return (vOGg - finE) / uvMl * aM8h",
"def dLqk(QTBn, vOGg, JAPK, Cwt5=1, Z9rn=100, KMvS=0.9):\n xASv[QTBn] = xASv.get(QTBn, 0.0) + 1.0\n Cwt5 *= Z9rn / (Z9rn + xASv[QTBn])\n vwlo[QTBn] = vwlo.get(QTBn, ... | [
"0.6932845",
"0.69185096",
"0.67427933",
"0.62989753",
"0.61871755",
"0.61834866",
"0.6177571",
"0.6118756",
"0.60466236",
"0.59783274",
"0.59655595",
"0.5955039",
"0.5943445",
"0.5931755",
"0.59014183",
"0.5896534",
"0.5891751",
"0.5879372",
"0.58158135",
"0.58030826",
"0.58... | 0.80197644 | 0 |
Return the hidden layers in the model, if applicable. | def fKMN(YKHO):
return YKHO._layer_names | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3Wb(YKHO):\n if YKHO.hidden is None:\n YKHO.hidden, YKHO.inputs, YKHO.weights_all, YKHO.biases_all = ([], [], [], [])\n bwxf = YKHO.x\n if YKHO.covnet == 1:\n ZGCe, YKHO._drouput, YKHO.hidden, YKHO.inputs = btVS(YKHO.x)\n elif YKHO.covnet == 2:\n RfTf, YKHO... | [
"0.775939",
"0.7407488",
"0.720062",
"0.7121522",
"0.7119102",
"0.6937549",
"0.6933334",
"0.6861195",
"0.66476566",
"0.66261524",
"0.6588278",
"0.64553165",
"0.6326623",
"0.63245225",
"0.6194957",
"0.61478955",
"0.6134804",
"0.6124031",
"0.6117281",
"0.6096762",
"0.6096107",
... | 0.0 | -1 |
Return the output of the specified layer for input `x`. `layer` is specified by layer index (between 0 and `nb_layers 1`) or by name. The number of layers can be determined by counting the results returned by calling `layer_names`. | def VNmP(YKHO, WKvO, gEmA, Ep8u=128):
import keras.backend as G1Hx
from art import NUMPY_DTYPE
if isinstance(gEmA, jKi7.string_types):
if gEmA not in YKHO._layer_names:
raise ValueError('Layer name %s is not part of the graph.' % gEmA)
lzjZ = gEmA
elif isinstance(gEmA, int):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HWpb(C3ST, WbAn, lzjZ=None, mgU1=None, gEmA=None, HQBm=0):\n CAar(lzjZ, mgU1, gEmA)\n gEmA = RY3r(C3ST, lzjZ, mgU1)\n if A797:\n boDn = nMvt.function([C3ST.input], [gEmA.output])\n else:\n boDn = nMvt.function([C3ST.input, nMvt.learning_phase()], [gEmA.output])\n return boDn([WbAn,... | [
"0.68188757",
"0.6476081",
"0.63862973",
"0.610451",
"0.6092965",
"0.6092965",
"0.6087379",
"0.6026246",
"0.6017031",
"0.5997315",
"0.599621",
"0.59715414",
"0.59615916",
"0.59427017",
"0.59360677",
"0.5917803",
"0.581254",
"0.57995594",
"0.57995594",
"0.57934666",
"0.5781068... | 0.5244578 | 72 |
Return the hidden layers in the model, if applicable. | def vKhw(YKHO):
from keras.engine.topology import InputLayer
fKMN = [gEmA.name for gEmA in YKHO._model.layers[:-1] if not isinstance(gEmA, InputLayer)]
bo34.info('Inferred %i hidden layers on Keras classifier.', len(fKMN))
return fKMN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3Wb(YKHO):\n if YKHO.hidden is None:\n YKHO.hidden, YKHO.inputs, YKHO.weights_all, YKHO.biases_all = ([], [], [], [])\n bwxf = YKHO.x\n if YKHO.covnet == 1:\n ZGCe, YKHO._drouput, YKHO.hidden, YKHO.inputs = btVS(YKHO.x)\n elif YKHO.covnet == 2:\n RfTf, YKHO... | [
"0.7760711",
"0.72006637",
"0.7124429",
"0.7117808",
"0.69360596",
"0.6931592",
"0.685979",
"0.66463804",
"0.66217035",
"0.6587119",
"0.6456979",
"0.6329385",
"0.63250995",
"0.6197503",
"0.6145871",
"0.6130595",
"0.6122501",
"0.61189544",
"0.60988975",
"0.60988194",
"0.608900... | 0.74081975 | 1 |
Use to ensure `KerasClassifier` can be unpickled. | def UzTX(YKHO, QTBn):
YKHO.__dict__.update(QTBn)
import os
from art import DATA_PATH
from keras.models import load_model
Zg0d = os.path.join(DATA_PATH, QTBn['model_name'])
C3ST = load_model(str(Zg0d))
YKHO._model = C3ST
YKHO._initialize_params(C3ST, QTBn['_use_logits'], QTBn['_input_laye... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXpd(YKHO):\n pass",
"def iMQ8():\n pmON = F0fg([0])\n assert Hy7s.path.exists(pmON)\n list(AXOg(pmON))\n assert not Hy7s.path.exists(pmON)",
"def I1HL(VIsj):\n if Hy7s.path.isfile(VIsj):\n q4ob = k6eJ.load(VIsj)\n M_NZ = q4ob[0]\n Z5wO = q4ob[1]\n H96n = q4ob[... | [
"0.5978574",
"0.55839074",
"0.55732924",
"0.5561597",
"0.55380505",
"0.5529262",
"0.5524372",
"0.5503287",
"0.54762274",
"0.54666734",
"0.5453719",
"0.538002",
"0.5377517",
"0.53402835",
"0.5323417",
"0.5259297",
"0.52471125",
"0.52405703",
"0.52405703",
"0.5239126",
"0.52323... | 0.0 | -1 |
Returns the number of direct subtrees. | def szAg(YKHO):
return len(YKHO.subtrees()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tIln(Kt_s):\n exwG = 1\n if Kt_s.isLeaf:\n return exwG\n for YRbF in range(len(Kt_s.child)):\n exwG += tIln(Kt_s.child[YRbF])\n return exwG",
"def VjyD(YKHO):\n return len(YKHO.data_kd)",
"def W8Ya(YKHO) -> int:\n if YKHO.children == []:\n return 1\n else:\n ... | [
"0.77615625",
"0.7559843",
"0.74153984",
"0.7380784",
"0.7334495",
"0.7328914",
"0.7243306",
"0.7234234",
"0.7213517",
"0.7191488",
"0.7165649",
"0.7127489",
"0.7071592",
"0.7048243",
"0.7046984",
"0.7026274",
"0.6986101",
"0.6965567",
"0.6965093",
"0.69378567",
"0.69266677",... | 0.75990516 | 1 |
Returns the syntactic head of this tree. This will be one of the children of this tree (unless this tree is a leaf in which case it is its own head). Requires a parsing model to be loaded (other you'll get a ValueError) since those include head finding information. | def sdCG(YKHO):
if not rRsO._parser_heads_loaded:
raise ValueError('You need to have loaded a parser model in order to get the log probability.')
return YKHO.__class__(YKHO._tree.headTree()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO):\n return YKHO._head",
"def sdCG(YKHO):\n return YKHO._head",
"def WBPg(YKHO):\n if not YKHO._ast:\n return None\n else:\n return YKHO._ast[0]",
"def sdCG(YKHO) -> GRpb:\n return YKHO._model.head",
"def sdCG(YKHO):\n if YKHO.type == 'NP' and any((yzQ0.type.sta... | [
"0.61841905",
"0.61841905",
"0.6172447",
"0.61130303",
"0.6083801",
"0.6010015",
"0.60049856",
"0.5926663",
"0.58690697",
"0.5839139",
"0.58276486",
"0.5747515",
"0.57131845",
"0.5628753",
"0.5622687",
"0.56163764",
"0.5611119",
"0.56021464",
"0.5561352",
"0.55586714",
"0.553... | 0.637172 | 0 |
Returns the number of tokens in this sentence. | def szAg(YKHO):
return len(YKHO.sentrep) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O4S7(YKHO, A97Q):\n return len(N3rN(A97Q))",
"def u54L(YKHO):\n return len(YKHO.tokens)",
"def Cj7G(YKHO, d6pt):\n raise NotImplementedError",
"def szAg(YKHO):\n return len(YKHO._tokens)",
"def UHFx(YKHO, s2mk):\n return YKHO.counts[s2mk]",
"def t7hl(YKHO):\n return len(YKHO.text)",... | [
"0.7836106",
"0.7688214",
"0.7504052",
"0.74834204",
"0.74415344",
"0.7347082",
"0.73227507",
"0.7308001",
"0.7157055",
"0.71347266",
"0.7084988",
"0.7078545",
"0.70465213",
"0.69677114",
"0.6957916",
"0.6923655",
"0.6923655",
"0.6902223",
"0.6892427",
"0.68709505",
"0.687095... | 0.0 | -1 |
Returns a list of tokens in this sentence. | def s2mk(YKHO):
s2mk = []
for d6pt in range(len(YKHO.sentrep)):
s2mk.append(YKHO.sentrep.getWord(d6pt).lexeme())
return s2mk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxVV(YKHO):\n list = []\n for YRbF in range(YKHO.startIdx, YKHO.endIdx + 1):\n eOtH = YKHO.sentence[YRbF]\n list.append(eOtH)\n return list",
"def thS1(YKHO) -> x1iM[str]:\n return YKHO.tokens",
"def s2mk(YKHO):\n return YKHO._sentrep.tokens()",
"def s2mk(YKHO):\n return Y... | [
"0.8909632",
"0.82979715",
"0.80948067",
"0.80017704",
"0.7964599",
"0.7964599",
"0.7964599",
"0.79554844",
"0.79067516",
"0.79067516",
"0.78814447",
"0.78568083",
"0.77948284",
"0.7701055",
"0.7551193",
"0.74970746",
"0.7430531",
"0.73834765",
"0.7330617",
"0.72796357",
"0.7... | 0.83423185 | 1 |
Return the number of parses in this list. | def szAg(YKHO):
return len(YKHO.parses) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO) -> int:\n return len(YKHO.__fsmParses)",
"def UHFx(YKHO):\n return YKHO.__tree.node_count",
"def UHFx(YKHO):\n return len(YKHO._elements)",
"def UHFx(YKHO):\n return len(YKHO.find())",
"def UHFx(YKHO):\n return len(list(YKHO.nodes))",
"def HXjU(YKHO):\n return YKHO._inter... | [
"0.726463",
"0.69731474",
"0.69063157",
"0.69036376",
"0.685544",
"0.6815833",
"0.6801309",
"0.6801309",
"0.6801309",
"0.67861974",
"0.67789316",
"0.6778111",
"0.6742266",
"0.6738679",
"0.6729679",
"0.67293",
"0.672612",
"0.67230767",
"0.6721473",
"0.6721473",
"0.67160594",
... | 0.69914895 | 1 |
Represent this NBestList as a string. | def wHJl(YKHO):
return repr(YKHO.parses) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.list)",
"def zAg0(YKHO):\n return '({},{},{})'.format(YKHO.tail, YKHO.head, YKHO.weight)",
"def zAg0(YKHO):\n return list.__str__(YKHO)",
"def zAg0(YKHO):\n KCHu = '--\\n'\n for U6D_ in YKHO:\n KCHu += U6D_.__str__() + '\\n'\n KCHu += '--'\n '\\n ... | [
"0.75465053",
"0.7505444",
"0.7324701",
"0.7319853",
"0.72757405",
"0.72620094",
"0.715769",
"0.7111798",
"0.7110414",
"0.7092671",
"0.70692897",
"0.7032134",
"0.7030495",
"0.7026046",
"0.70002466",
"0.6990324",
"0.6982765",
"0.69674486",
"0.6964508",
"0.69583267",
"0.6958326... | 0.0 | -1 |
Get the best parse in this nbest list according to the reranker. If there are no parses in this list, returns None. | def xiqb(YKHO):
if len(YKHO.parses):
return min(YKHO, key=lambda hfK9: hfK9.reranker_rank)
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CjyL(YKHO):\n if len(YKHO.parses):\n return min(YKHO, key=lambda hfK9: hfK9.parser_rank)\n else:\n return None",
"def e1Nf(YKHO):\n if not YKHO.scores:\n return None\n return YKHO.te_list[YKHO.scores.index(max(YKHO.scores))]",
"def cIS6(YKHO):\n if len(YKHO.Data) < 1:\n ... | [
"0.8373511",
"0.65718275",
"0.6500075",
"0.64146477",
"0.62999225",
"0.6202989",
"0.60084933",
"0.5901182",
"0.5857812",
"0.57952964",
"0.5749076",
"0.5727109",
"0.56371915",
"0.557005",
"0.5550474",
"0.5528388",
"0.5527575",
"0.55199236",
"0.5472127",
"0.5466968",
"0.5464971... | 0.86023206 | 0 |
Get the tokens of this sentence as a sequence of strings. | def s2mk(YKHO):
return YKHO._sentrep.tokens() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxVV(YKHO):\n list = []\n for YRbF in range(YKHO.startIdx, YKHO.endIdx + 1):\n eOtH = YKHO.sentence[YRbF]\n list.append(eOtH)\n return list",
"def s2mk(YKHO):\n s2mk = []\n for d6pt in range(len(YKHO.sentrep)):\n s2mk.append(YKHO.sentrep.getWord(d6pt).lexeme())\n return... | [
"0.816749",
"0.77816635",
"0.76809406",
"0.76809406",
"0.7668489",
"0.73684907",
"0.73684907",
"0.73684907",
"0.73198664",
"0.72141314",
"0.7159835",
"0.70942134",
"0.7090057",
"0.7051247",
"0.7043043",
"0.7033877",
"0.6969542",
"0.69587606",
"0.6956135",
"0.6930485",
"0.6911... | 0.76357657 | 5 |
Displays the main screen | def yKcO(YKHO):
print('*' * 20)
print('*' + ' ' * 18 + '*')
print('*' + ' ' * 4 + 'Connect 4X' + ' ' * 4 + '*')
print('*' + ' ' * 18 + '*')
print('*' * 20)
print('\nConsole Version 1.0.0\n')
YKHO.print_menu()
YKHO.get_input() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lb1t(YKHO):\n YKHO.clear_terminal()\n YKHO.main_menu()\n YKHO.handle_selection_main()",
"def iXC1(YKHO):\n YKHO.ui['main_window'].widgets['main'].show_all()\n MZYv.main()",
"def b8V_(YKHO):\n YKHO.window.show_all()\n MZYv.main()",
"def b8V_():\n tk5Y = xNQ_()\n if pCR8:\n ... | [
"0.81365585",
"0.7576515",
"0.7477452",
"0.7360781",
"0.7338293",
"0.73135716",
"0.7170008",
"0.7133583",
"0.71250594",
"0.7106969",
"0.70939785",
"0.70913374",
"0.70472693",
"0.70471257",
"0.7015743",
"0.70154047",
"0.6996691",
"0.6958611",
"0.69513714",
"0.6949986",
"0.6933... | 0.0 | -1 |
Predefine a specific binding of an event to a handler by id. The event in this binding can be set to be listened for later on by simply using this id instead of having to set the details of the binding every single time. | def XkiF(YKHO, wacs, BHHI, DCgT, FiiE=None, ljnF=False):
qIxc = (FiiE,) if FiiE else ()
YKHO._bindings[wacs] = (ljnF, BHHI, DCgT) + qIxc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XkiF(YKHO, ZuB6, wacs, BHHI, iy2A):\n YKHO.event_binder.bind(wacs, BHHI, iy2A)\n YKHO._state_bindings[ZuB6].append(wacs)",
"def ozxF(YKHO, ZuB6):\n YKHO.event_binder.accept(YKHO._state_bindings[ZuB6], exclusive=True)",
"def Ab6j(YKHO, DCgT):\n if YKHO._handler:\n DCgT.pre_listeners = YKH... | [
"0.6363393",
"0.58288777",
"0.57922",
"0.561555",
"0.5534807",
"0.5532453",
"0.5312405",
"0.5312405",
"0.52582514",
"0.5231969",
"0.5191159",
"0.5154052",
"0.50541383",
"0.50489116",
"0.5020392",
"0.5013019",
"0.49831635",
"0.49563533",
"0.4938433",
"0.49322563",
"0.4911449",... | 0.6501186 | 0 |
Remove the given binding. Note that, if the binding is currently active, this also stops the event in that binding being listened for! Returns True if successful or False if binding_id was not found. | def KiXY(YKHO, wacs):
if wacs not in YKHO._bindings:
return False
BHHI = YKHO._bindings[wacs][1]
del YKHO._bindings[wacs]
if BHHI in YKHO._active_bindings:
YKHO.ignore(BHHI)
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hIlm(OaeV, sVez):\n h8yp = False\n tyNF = 'NAT_BINDINGS'\n H5ew = sVez\n if len(sVez) > 32:\n OaeV.fail('Invalid binding name. Maximum allowed binding name is 32 characters !!')\n b_nl = YIkF()\n b_nl.connect()\n nPrm = b_nl.get_entry(tyNF, H5ew)\n if not nPrm:\n k8wH.echo... | [
"0.7076661",
"0.57430536",
"0.5727326",
"0.57155985",
"0.5664812",
"0.549085",
"0.54687154",
"0.54090065",
"0.53977257",
"0.5387706",
"0.53198826",
"0.5283744",
"0.52211154",
"0.5221037",
"0.5219053",
"0.51463586",
"0.5106394",
"0.51028186",
"0.50739527",
"0.50698537",
"0.505... | 0.7853153 | 0 |
Stop listening for all events. | def QF2Z(YKHO):
YKHO._listener.ignore_all()
YKHO._active_bindings = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO) -> None:\n if YKHO._server:\n YKHO._server.stop()\n vzeF.info('Stopped event server')\n YKHO._listeners = {}",
"def JCyR(YKHO) -> None:\n for KAOR in YKHO.instances:\n KAOR.listener = None\n KAOR.stop()",
"def os8w(YKHO):\n if YKHO.listener:\n YKHO.... | [
"0.76798916",
"0.7640488",
"0.7591344",
"0.7445824",
"0.74239284",
"0.73986095",
"0.7373083",
"0.7243395",
"0.71392226",
"0.71097994",
"0.7108672",
"0.7012575",
"0.696214",
"0.69604033",
"0.69300264",
"0.68996143",
"0.6873771",
"0.6873454",
"0.68661344",
"0.68476516",
"0.6772... | 0.0 | -1 |
Set cells in obstacle grid to be empty Reset zombie and human lists to be empty | def Y7Bk(YKHO):
YKHO._zombie_list = []
YKHO._human_list = []
XYBu.Grid.clear(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LM9n(YKHO):\n YKHO.obstacles = oyIN.array([])",
"def Y7Bk(YKHO):\n XYBu.Grid.clear(YKHO)\n YKHO._zombie_list = []\n YKHO._human_list = []",
"def Y7Bk(YKHO):\n XYBu.Grid.clear(YKHO)\n YKHO._zombie_list = []\n YKHO._human_list = []",
"def SiRx(YKHO):\n YKHO._cells = [[0 for L9B9 in ... | [
"0.7903046",
"0.77405584",
"0.77138525",
"0.77031183",
"0.76965207",
"0.76102734",
"0.7586986",
"0.74917936",
"0.7486784",
"0.74409497",
"0.7411356",
"0.7393945",
"0.7387012",
"0.73719716",
"0.73582643",
"0.7325802",
"0.72839963",
"0.72313416",
"0.72108424",
"0.7210384",
"0.7... | 0.76223475 | 5 |
Add zombie to the zombie list | def PooL(YKHO, rdlD, fvDH):
YKHO._zombie_list.append((rdlD, fvDH)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PooL(YKHO, LEXu):\n if LEXu not in YKHO._entities['all']:\n YKHO._entities['all'].append(LEXu)\n YKHO._entities['zombies'].append(LEXu)\n YKHO._entities[LEXu._team]['zombies'].append(LEXu)\n LEXu.set_id(YKHO._entities[LEXu._team]['id'])\n YKHO._entities[LEXu._team]['id'] += 1",
"def Poo... | [
"0.8145755",
"0.7598467",
"0.7579104",
"0.59433466",
"0.5911907",
"0.58728415",
"0.58334374",
"0.5747301",
"0.5735042",
"0.5729783",
"0.5714266",
"0.56813896",
"0.56762284",
"0.5671887",
"0.5589427",
"0.5577833",
"0.5557215",
"0.5556951",
"0.553771",
"0.55231005",
"0.55041355... | 0.7627476 | 1 |
Provides a representation of the Transaction to allow full recreation of the object. | def wHJl(YKHO):
return '%s(asset=%s, quantity=%s, dt=%s, price=%s, trans_id=%s, type=%s)' % (type(YKHO).__name__, YKHO.asset.name, YKHO.quantity, YKHO.timestamp, YKHO.price, YKHO.trans_ID, YKHO.type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kh6j(YKHO):\n return T74E(YKHO)",
"def wHJl(YKHO):\n return u'<Transaction id={i}, amount={a}>'.format(i=YKHO.id, a=YKHO.amount)",
"def gQVK(YKHO):\n return UShr.Transactions(YKHO)",
"def JDq6(YKHO) -> P08A:\n SlLe(YKHO.is_set('raw_transaction'), \"'raw_transaction' content is not set.\")\n ... | [
"0.74648994",
"0.74223006",
"0.690562",
"0.66901046",
"0.665314",
"0.665314",
"0.6570076",
"0.6510454",
"0.6472744",
"0.6438016",
"0.6425391",
"0.6399525",
"0.6398045",
"0.6389314",
"0.6387074",
"0.6386355",
"0.6386262",
"0.63572973",
"0.63535535",
"0.6340769",
"0.62804043",
... | 0.65446836 | 7 |
The basename of this run's comparison output file | def mmsg(YKHO):
return f'{YKHO.name}.compare.out' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JAUl(tETI, QWQX):\n return '%s/%s*.tfrecord' % (tETI, QWQX)",
"def CYnr(YKHO):\n wS_e = Hy7s.path.join(YKHO.__folder, FLGC.DIFF_OUT)\n if not Hy7s.path.exists(wS_e):\n Hy7s.makedirs(wS_e)\n return Hy7s.path.join(wS_e, YKHO.__name + '.jpg')",
"def aPr_(YKHO):\n return sYT0(YKHO.filenam... | [
"0.724916",
"0.7180829",
"0.712557",
"0.71170336",
"0.7099507",
"0.70774126",
"0.706676",
"0.7050639",
"0.7023703",
"0.6979415",
"0.694758",
"0.6854372",
"0.6845246",
"0.68306226",
"0.6823736",
"0.6768582",
"0.6762195",
"0.67548233",
"0.67499095",
"0.6737838",
"0.67358494",
... | 0.7507315 | 0 |
Returns True if the global compile_only flag was set or this test is compileonly, False otherwise | def DITC(YKHO):
return YKHO._compileTest or STnF.compile_only | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SIhL(YKHO):\n return YKHO.compiled",
"def SIhL(YKHO):\n return YKHO.compiled",
"def SGVO(bNKA: Project) -> bool:\n return bool(p7e6.compile_dir(bNKA.root, quiet=1))",
"def SdlG():\n MkC4 = Hy7s.environ.get('PURE_PYTHON')\n amDY = MkC4 == '0'\n return amDY",
"def Krlf():\n MkC4 = Hy... | [
"0.6464506",
"0.6464506",
"0.6344039",
"0.6276564",
"0.61448205",
"0.61313295",
"0.60959446",
"0.60588104",
"0.60523546",
"0.6038912",
"0.59923583",
"0.5987128",
"0.5955495",
"0.5941639",
"0.59216696",
"0.59068334",
"0.59040093",
"0.5868585",
"0.5771224",
"0.56915176",
"0.566... | 0.6822172 | 0 |
Returns True if the global compile_only flag was set or this test is compileonly, False otherwise | def Lp8i(YKHO):
return YKHO._doComparison and (not STnF.skip_comparison) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DITC(YKHO):\n return YKHO._compileTest or STnF.compile_only",
"def SIhL(YKHO):\n return YKHO.compiled",
"def SIhL(YKHO):\n return YKHO.compiled",
"def SGVO(bNKA: Project) -> bool:\n return bool(p7e6.compile_dir(bNKA.root, quiet=1))",
"def SdlG():\n MkC4 = Hy7s.environ.get('PURE_PYTHON')\... | [
"0.6824188",
"0.64660424",
"0.64660424",
"0.6346249",
"0.6277215",
"0.6145587",
"0.6132217",
"0.6096295",
"0.6059342",
"0.6054365",
"0.6039375",
"0.59922004",
"0.59875226",
"0.5955925",
"0.59420365",
"0.5921338",
"0.59090436",
"0.59042805",
"0.58710635",
"0.5772058",
"0.56931... | 0.55498034 | 33 |
Sets the testspecific absolute tolerance to the specified value. | def F8mc(YKHO, BWXx):
YKHO._abs_tolerance = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bfmc(j2gm=1e-09, TLxG=0.0):\n global REL_TOLERANCE, ABS_TOLERANCE\n D_n2 = j2gm\n B4Eq = TLxG",
"def Bfmc(YKHO, yJiH):\n YKHO.tolerance = yJiH",
"def Bfmc(YKHO, BWXx):\n YKHO._tolerance = BWXx",
"def D1sU(YKHO, D1sU: float) -> None:\n YKHO._tolerance = D1sU",
"def yJiH(YKHO, BWXx):\n ... | [
"0.7582184",
"0.7259427",
"0.71561307",
"0.71303403",
"0.7057077",
"0.68581104",
"0.6620214",
"0.66105586",
"0.6607541",
"0.65930724",
"0.64984727",
"0.64688385",
"0.6356821",
"0.63470626",
"0.62884426",
"0.613621",
"0.61237836",
"0.61077803",
"0.6067578",
"0.6047074",
"0.598... | 0.8241769 | 0 |
Sets the testspecific particle tolerance to the specified value. | def QzVf(YKHO, BWXx):
YKHO._particle_tolerance = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1sU(YKHO, D1sU: float) -> None:\n YKHO._tolerance = D1sU",
"def Bfmc(YKHO, yJiH):\n YKHO.tolerance = yJiH",
"def Bfmc(YKHO, BWXx):\n YKHO._tolerance = BWXx",
"def yJiH(YKHO, BWXx):\n YKHO._tol = BWXx",
"def Bfmc(YKHO, yJiH):\n YKHO.precision = yJiH\n return",
"def ynf1(YKHO, SGf8):... | [
"0.7447135",
"0.741869",
"0.7331127",
"0.7031548",
"0.69907933",
"0.69570714",
"0.67173755",
"0.6637055",
"0.6633346",
"0.65139985",
"0.6276457",
"0.6248293",
"0.6244987",
"0.614971",
"0.60737383",
"0.60336727",
"0.59862906",
"0.59683275",
"0.59660506",
"0.591808",
"0.5842602... | 0.83703387 | 0 |
Returns the number of past runs to include in the running runtime average. | def ioyQ(YKHO):
if STnF.performance_params:
return int(STnF.performance_params[1])
elif YKHO._check_performance:
return YKHO._runs_to_average
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qvn0(YKHO):\n return YKHO.tmax_epochs - YKHO.tmin_epochs",
"def kQni(YKHO):\n return YKHO._number_of_launches",
"def Qvn0(YKHO):\n return YKHO.stop_time - YKHO.start_time",
"def yFDA(YKHO):\n pQ4c, pZ68 = (YKHO.period, YKHO.last_start_time)\n wzkt = wj6w()\n if isinstance(pQ4c, FxIh):\n... | [
"0.6596683",
"0.6400447",
"0.6333939",
"0.63238794",
"0.63110125",
"0.62969416",
"0.6245464",
"0.62369865",
"0.6181699",
"0.61726147",
"0.6166713",
"0.6155285",
"0.61264575",
"0.60711217",
"0.6067969",
"0.60281026",
"0.6024463",
"0.6014393",
"0.5981797",
"0.5970396",
"0.59655... | 0.63618994 | 2 |
r""" Return the maximum number of expectationmaximization steps. | def lawD(YKHO):
return YKHO._max_em_iterations | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wvmV(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_steps')",
"def tlOG(YKHO):\n return float(YKHO.trainer_parameters['max_steps'])",
"def tlOG(YKHO):\n return float(YKHO.trainer_parameters['max_steps'])",
"def tlOG(YKHO) -> float:\n return float(YKHO.trainer_parameters['max_steps'])",
"def wvm... | [
"0.78330225",
"0.7377708",
"0.7363513",
"0.7304067",
"0.7259231",
"0.71325046",
"0.7094793",
"0.7078195",
"0.7005278",
"0.69071627",
"0.6897559",
"0.68686783",
"0.6839605",
"0.67332375",
"0.6714402",
"0.67111224",
"0.66572154",
"0.665481",
"0.66516376",
"0.66397923",
"0.66351... | 0.729889 | 4 |
Compute the logdet of the cholesky decomposition of matrices. | def cjTj(DGCm, olp8, ROaS):
if olp8 == 'full':
YKua, bGrB, bGrB = DGCm.shape
D9CC = oyIN.sum(oyIN.log(DGCm.reshape(YKua, -1)[:, ::ROaS + 1]), 1)
elif olp8 == 'tied':
D9CC = oyIN.sum(oyIN.log(oyIN.diag(DGCm)))
elif olp8 == 'diag':
D9CC = oyIN.sum(oyIN.log(DGCm), axis=1)
el... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h25c(SppC):\n Zihr, O_Up = oyIN.linalg.slogdet(SppC)\n if not Zihr > 0:\n return -oyIN.inf\n return O_Up",
"def jZzP(k0lF):\n aPd6 = ie5n(k0lF)\n mCyv = 2 * sum(oyIN.log(oyIN.diag(aPd6)))\n return mCyv",
"def WOLb(Q6kx):\n if Q6kx.op == nUPH:\n WKvO, = Q6kx.inputs\n ... | [
"0.7355757",
"0.7214726",
"0.67879087",
"0.65485704",
"0.6523364",
"0.6494481",
"0.6338424",
"0.6192388",
"0.6150096",
"0.6149231",
"0.61332285",
"0.6108461",
"0.6065173",
"0.6063",
"0.6022569",
"0.6005327",
"0.5964",
"0.59611917",
"0.58553296",
"0.5854681",
"0.5842726",
"0... | 0.7837815 | 0 |
(Model) > NoneType Removes the model from the collection, if it has been saved. | def PTpj(YKHO):
if YKHO.iid is not None:
YKHO.db().remove(YKHO.iid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wR7Z(YKHO, C3ST):\n assert isinstance(C3ST, wOed)\n YKHO.model_list.remove(C3ST)\n del YKHO.model_dict[C3ST.model_id]\n C3ST.structure = None\n if C3ST == YKHO.default_model:\n if len(YKHO.model_list) > 0:\n YKHO.default_model = YKHO.model_list[0]\n else:\n YK... | [
"0.695924",
"0.6812191",
"0.66286206",
"0.66125435",
"0.65402555",
"0.64539653",
"0.6375231",
"0.6375231",
"0.6375231",
"0.6319423",
"0.6221392",
"0.62168777",
"0.61965394",
"0.6183775",
"0.6157625",
"0.6157105",
"0.613652",
"0.6096627",
"0.6083554",
"0.60604393",
"0.6058133"... | 0.0 | -1 |
(Model) > string Gets this models' ID. | def unpH(YKHO):
return YKHO.iid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLJR(YKHO):\n return _VfD.Model_getId(YKHO)",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.id",
"def unpH(YKHO... | [
"0.83877546",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.78950673",
"0.7858498",
"0.7843049",
... | 0.0 | -1 |
Test case to check if the values of variables are correctly being placed. | def u25y(YKHO):
YKHO.assertEquals(YKHO.new_blog.title, 'business blog')
YKHO.assertEquals(YKHO.new_blog.description, 'asdfghjkl')
YKHO.assertEquals(YKHO.new_blog.user_id, YKHO.new_user.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jP7F(YKHO):\n pass",
"def EEAz(YKHO):\n pass",
"def ZMh6(YKHO):\n I78j = xorp(xAKo, package_order=['urbansim'], test_data={'gridcell': {'grid_id': qw7D([1, 2, 3])}, 'building': {'building_id': qw7D([1, 2, 3, 4, 5, 6]), 'building_type': qw7D([1, 2, 1, 2, 1, 1]), 'grid_id': qw7D([2, 3, 1, 1, 2, 1]),... | [
"0.7073967",
"0.68298763",
"0.67747873",
"0.66679686",
"0.6667237",
"0.6597304",
"0.6536712",
"0.6509868",
"0.6394894",
"0.63144284",
"0.63097435",
"0.6253922",
"0.62445027",
"0.6229036",
"0.6204029",
"0.61955863",
"0.61548215",
"0.6152034",
"0.61188954",
"0.6066865",
"0.6059... | 0.0 | -1 |
Compute bounding boxes from masks. | def p5Lc(ZHfW):
oUSw = oyIN.zeros([ZHfW.shape[-1], ZHfW.shape[0], 2], dtype=oyIN.int32)
for YRbF in range(ZHfW.shape[-1]):
for r845 in range(ZHfW.shape[0]):
r8hN = ZHfW[r845, :, YRbF]
GO_b = oyIN.where(r8hN)[0]
if GO_b.shape[0]:
o4D3, ajwV = GO_b[[0, -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p5Lc(ZHfW):\n oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)\n for YRbF in range(ZHfW.shape[-1]):\n r8hN = ZHfW[:, :, YRbF]\n GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]\n mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]\n if GO_b.shape[0]:\n o4D3, ajwV = GO_... | [
"0.78467315",
"0.7821438",
"0.78130674",
"0.7462639",
"0.73268336",
"0.7318628",
"0.7165459",
"0.70358133",
"0.7027821",
"0.6983254",
"0.68408525",
"0.6769498",
"0.6769209",
"0.6680738",
"0.66408485",
"0.6610212",
"0.66068614",
"0.6589283",
"0.65518355",
"0.64983237",
"0.6495... | 0.77246463 | 3 |
Calculates overlap rate of the given box with the array of the given boxes. | def lVsl(FlUN, oUSw):
o4D3 = oyIN.maximum(FlUN[0], oUSw[:, 0])
ajwV = oyIN.minimum(FlUN[1], oUSw[:, 1])
iQin = oyIN.maximum(ajwV - o4D3, 0)
p1Yn = oUSw[:, 1] - oUSw[:, 0]
yHH9 = iQin / p1Yn
return yHH9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pjys(wGB6, QFOH):\n bzU2 = (wGB6[:, 0] - wGB6[:, 2]) * (wGB6[:, 1] - wGB6[:, 3])\n Eq1k = (QFOH[:, 0] - QFOH[:, 2]) * (QFOH[:, 1] - QFOH[:, 3])\n PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))\n for YRbF in range(wGB6.shape[0]):\n PZIW[YRbF][:] = X7Mn(wGB6[YRbF], bzU2[YRbF], QFOH, Eq1k)\n... | [
"0.683769",
"0.67385703",
"0.67338043",
"0.6639075",
"0.6631456",
"0.6564688",
"0.65451217",
"0.65451217",
"0.65451217",
"0.6464292",
"0.6441125",
"0.6440703",
"0.64187664",
"0.641289",
"0.6351331",
"0.6351331",
"0.6297871",
"0.61612046",
"0.6127457",
"0.6089508",
"0.60859644... | 0.85941243 | 0 |
Constructor browser reference to the browser window (HelpBrowser) parent reference to the parent widget (QWidget) | def FIMM(YKHO, SYsl, _AKB=None):
super(PPk8, YKHO).__init__(_AKB)
YKHO.setupUi(YKHO)
YKHO.setWindowFlags(uaAZ.Window)
YKHO.tabWidget.setTabIcon(0, XSNG.PixmapCache.getIcon('siteinfo-general.png'))
YKHO.tabWidget.setTabIcon(1, XSNG.PixmapCache.getIcon('siteinfo-media.png'))
YKHO.__imageReply = No... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, eHpk, _AKB=None):\n super(SZLG, YKHO).__init__(_AKB)\n YKHO.__engine = eHpk\n YKHO.__layout = C3c5(YKHO)\n YKHO.__result = YKHO.__engine.resultWidget()\n YKHO.__query = YKHO.__engine.queryWidget()\n YKHO.__layout.addWidget(YKHO.__query)\n YKHO.__layout.addWidget(YKHO.__result)\n... | [
"0.66674954",
"0.6598266",
"0.65834486",
"0.6583403",
"0.64812154",
"0.6414591",
"0.6410956",
"0.6410956",
"0.6410956",
"0.6410956",
"0.6410956",
"0.6395357",
"0.6367763",
"0.63656765",
"0.6344497",
"0.6334291",
"0.6331163",
"0.6324489",
"0.6321797",
"0.6271439",
"0.62036306"... | 0.67742336 | 0 |
Show the image and wait for the user's input. This implementation refers to | def rp9R(YKHO, vYBr=0, KSvm=' ') -> int:
if YKHO.is_inline:
return
if YKHO.fig_show.canvas.manager:
YKHO.fig_show.show()
while True:
tvqc = None
def DCgT(chmV):
nonlocal event
tvqc = chmV if not isinstance(tvqc, ickc) else tvqc
YKHO.fig_sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6fe(YKHO):\n if YKHO.image is not None:\n XC5k.imshow(YKHO.image_window, YKHO.image)\n XC5k.waitKey(1)\n else:\n sQC5.loginfo('No image to show yet')",
"def nUHY(YKHO):\n YKHO.image.show()",
"def nUHY(LNo8):\n XC5k.imshow('press ENTER to close', LNo8)\n XC5k.waitKey(0)"... | [
"0.70464724",
"0.6942489",
"0.68543565",
"0.6795744",
"0.67523015",
"0.66879356",
"0.66520196",
"0.66166127",
"0.66150707",
"0.6584849",
"0.6557377",
"0.6553896",
"0.65269804",
"0.65214586",
"0.6520507",
"0.65093404",
"0.6497416",
"0.6479195",
"0.64204687",
"0.6389722",
"0.63... | 0.0 | -1 |
If a course is added to a program with no position specified, it should be given the last position | def cNtV():
JRIs = W10k.create(position_in_program=None)
assert JRIs.position_in_program == 1
SyXP = W10k.create(program=JRIs.program, position_in_program=None)
assert SyXP.position_in_program == 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PleP(pY6K, mLGw, l5Ny):\n r8hN = ZbWC.search('[\\\\d\\\\w]{5} - ([\\\\w ]*)', l5Ny)\n leAC = r8hN.group(1) if r8hN else 'nomatch'\n r8hN = ZbWC.search('\\\\.\\\\s(.*)\\\\sTypically', l5Ny)\n Bxhj = r8hN.group(1) if r8hN else 'nomatch'\n r8hN = ZbWC.search('Credit Hours: (\\\\d+\\\\.\\\\d+)', l5N... | [
"0.6059749",
"0.60214466",
"0.5971754",
"0.58582604",
"0.5850716",
"0.5834378",
"0.5585464",
"0.5498338",
"0.54754156",
"0.544179",
"0.5433476",
"0.54184014",
"0.5408004",
"0.5249713",
"0.5235485",
"0.5217162",
"0.51617837",
"0.51460004",
"0.5142971",
"0.5108315",
"0.5107247"... | 0.69066656 | 0 |
Test that the courseware_url property yields the correct values | def os_D(gCuF):
gCuF.OPENEDX_BASE_REDIRECT_URL = 'http://example.com'
dZ4Q = O_pW.build(courseware_url_path='/path')
_XWI = O_pW.build(courseware_url_path=None)
assert dZ4Q.courseware_url == 'http://example.com/path'
assert _XWI.courseware_url is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZP4j(YKHO):\n a1PO = YKHO.create_request_object()\n YKHO.assertEqual('studies', a1PO.url_path())",
"def QEZv(YKHO):\n geh0 = YKHO.client.get('/courses/edx/math101/2014/wiki/math101/')\n YKHO.assertIn('/courses/edx/math101/2014/wiki/math101/_edit/', geh0.content)\n YKHO.assertIn('/courses/edx/m... | [
"0.68515897",
"0.6769534",
"0.6680695",
"0.65622246",
"0.6526996",
"0.6499889",
"0.6406337",
"0.63644224",
"0.63492215",
"0.6336467",
"0.6320577",
"0.62524176",
"0.6228312",
"0.6142877",
"0.6140908",
"0.6072798",
"0.60564566",
"0.6036206",
"0.603611",
"0.60348505",
"0.6032429... | 0.79107726 | 0 |
Test that CourseRun.is_past returns the expected boolean value | def VTxh(qgVN, aEqx):
wzkt = rNCx()
KhBf = None if qgVN is None else wzkt + fCoM(days=qgVN)
assert O_pW.create(end_date=KhBf).is_past is aEqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A9vv(YKHO):\n pass",
"def RHzP(YKHO) -> bool:\n return YKHO.start < rIAI.now()",
"def HVyC(YKHO):\n return YKHO._t < ITS7()",
"def MULS(YKHO):\n g3ow = II0Q(question_text='Past question', days=-30)\n geh0 = YKHO.client.get(gxEw('polls:results', args=(g3ow.id,)))\n YKHO.assertContains(ge... | [
"0.7304504",
"0.6898809",
"0.68628436",
"0.6848323",
"0.6815093",
"0.67340946",
"0.6658702",
"0.66432476",
"0.66301584",
"0.659276",
"0.65365636",
"0.65349257",
"0.6531136",
"0.6500227",
"0.64834046",
"0.64794445",
"0.6474354",
"0.6465263",
"0.6461419",
"0.64506",
"0.6431522"... | 0.75661534 | 0 |
Test that the get_program_run_enrollments helper method for CourseRunEnrollment returns the appropriate course run enrollments for a program | def DORJ(CBIr):
Z928 = XHg9.create_batch(2)
YPqY = Z928[0]
OxDl = C8PG.create_batch(2, user=CBIr, run__course__program=i_PC.Iterator([YPqY, YPqY, Z928[1]]))
KLez = set(OxDl[0:2])
assert set(ZsKK.get_program_run_enrollments(CBIr, YPqY)) == KLez | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def parS(CBIr, YPqY):\n S0j5 = [IihV.from_string(H5ew) for H5ew in MfiT(YPqY)]\n return BTFJ.objects.filter(user=CBIr, course_id__in=S0j5, mode__in=[YDl1.VERIFIED, YDl1.MASTERS, YDl1.EXECUTIVE_EDUCATION], is_active=True)",
"def GWL3(YKHO):\n eVgC = [qxzt.create() for bGrB in range(2)]\n Cgse = [h21A.... | [
"0.716674",
"0.6605928",
"0.6269143",
"0.6221132",
"0.59707457",
"0.5924151",
"0.5884932",
"0.5802704",
"0.57989705",
"0.5710633",
"0.5684599",
"0.5642243",
"0.56108344",
"0.55495614",
"0.55353355",
"0.5533046",
"0.5529943",
"0.5501822",
"0.5475876",
"0.54491967",
"0.5437152"... | 0.8249601 | 0 |
Checks the board for winner or tie. If there is a winner, returns the winner's mark. If there is a tie, returns "Tie". If none of these end conditions is met, returns None. | def guON(YKHO):
for r845 in range(3):
if YKHO.board[0][r845] != ' ' and YKHO.board[0][r845] == YKHO.board[1][r845] == YKHO.board[2][r845]:
return YKHO.board[0][r845]
if YKHO.board[r845][0] != ' ' and YKHO.board[r845][0] == YKHO.board[r845][1] == YKHO.board[r845][2]:
return YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHVe(iBIi):\n Pni9 = YW2m(iBIi, EcVT)\n YGxV = YW2m(iBIi, LTX_)\n if Pni9:\n return EcVT\n if YGxV:\n return LTX_\n return None",
"def bHVe(YKHO, iBIi):\n if YKHO.any_legal_move(XDQs, iBIi) or YKHO.any_legal_move(eJVO, iBIi):\n return None\n JJZ3 = YKHO.score(XDQs, i... | [
"0.7684047",
"0.7614557",
"0.7586759",
"0.74370456",
"0.7408347",
"0.740621",
"0.74011075",
"0.736439",
"0.7356053",
"0.7311544",
"0.7291992",
"0.7282269",
"0.7280371",
"0.7276752",
"0.72161126",
"0.7209679",
"0.7178762",
"0.7143668",
"0.71123534",
"0.70941097",
"0.709376",
... | 0.78677267 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
QrM1.figure()
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
Q... | {
"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.8194052",
"0.8095069",
"0.80293566",
"0.8018802",
"0.799371",
"0.7990971",
"0.7980545",
"0.7975993",
"0.79609",
"0.7957234",
"0.7937344",
"0.79343724",
"0.79341805",
"0.79310715",
"0.7926063",
"0.79241866",
"0.7923726",
"0.79229325",
"0.79226404",
"0.79218584",
"0.7917542"... | 0.0 | -1 |
return a list of all known neighbors | def OPAV(YKHO):
return YKHO.Neighbors | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIRx(YKHO):\n return []",
"def BTfj(YKHO):\n return [AAbN for AAbN, bGrB in YKHO.neighbors.items()]",
"def BTfj(YKHO):\n return YKHO.neighbors",
"def BTfj(YKHO):\n return YKHO.neighbors",
"def BTfj(YKHO):\n return YKHO.neighbors",
"def BTfj(YKHO):\n return YKHO.neighbors",
"def BT... | [
"0.8391941",
"0.81786907",
"0.81600475",
"0.81600475",
"0.81600475",
"0.81600475",
"0.81265086",
"0.801169",
"0.79801375",
"0.794152",
"0.7904197",
"0.7852381",
"0.784753",
"0.78405887",
"0.78309107",
"0.78273046",
"0.7800181",
"0.7782491",
"0.7749291",
"0.7744155",
"0.774409... | 0.74715614 | 27 |
Return Pandas CustomBusinessDay based on .txt | def pfHh(YKHO):
q54C = None
viqz = nDEZ.Config()
if viqz.add_section(r85Y.CONFIG_SECTION_CALENDAR):
pkrI = YKHO.calendar.lower()
if pkrI in viqz:
try:
AUpj = Hy7s.path.join(r85Y.ROOT_DATA, viqz[pkrI])
with open(AUpj, 'r') as UFl0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvWm(Ux0P):\n jQ3Z = rLdf.read_excel(Ux0P, skiprows=0, parse_dates=False)\n jQ3Z['Tendering Periodneww'] = rLdf.to_datetime(jQ3Z['Tendering Period'], errors='coerce')\n jQ3Z['Delivery Periodneww'] = rLdf.to_datetime(jQ3Z['Delivery Period'], errors='coerce')\n jQ3Z['Tendering Period'] = jQ3Z['Tender... | [
"0.54792",
"0.5381545",
"0.5381313",
"0.5372838",
"0.5362254",
"0.5351883",
"0.5350997",
"0.53211653",
"0.5319699",
"0.5319156",
"0.5301872",
"0.5257496",
"0.5251457",
"0.52480364",
"0.5231774",
"0.5230262",
"0.52292466",
"0.522913",
"0.52251965",
"0.5224911",
"0.5220286",
... | 0.5747413 | 0 |
Returns the address of the mediaserver with regard to the currently chosen connection strategy. If no strategy was selected, None is returned. | def UTX6(YKHO):
if YKHO.con_strategy == 'local':
return YKHO.address_local()
if YKHO.con_strategy == 'remote':
return YKHO.address_remote()
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fWZF(YKHO, mWFP, WmM4=None):\n if mWFP == 'sockname':\n return YKHO.__relayed_address\n return WmM4",
"def c6yp(YKHO):\n PsCT = YKHO.remote_route\n return PsCT[0] if PsCT else None",
"def _Sv0(YKHO):\n return YKHO.osm_host",
"def lWkl(YKHO, DpZH):\n try:\n CH7A = YKHO.sudo... | [
"0.57991",
"0.5788144",
"0.5709753",
"0.5571292",
"0.55416906",
"0.5538118",
"0.55268586",
"0.5515366",
"0.54939884",
"0.53704107",
"0.5354528",
"0.5354528",
"0.5348719",
"0.5332141",
"0.5331331",
"0.53152525",
"0.5312938",
"0.5258389",
"0.52337706",
"0.5224539",
"0.5206046",... | 0.71823025 | 0 |
Return a random first name consistent with a given seed. | def c9ua(yokr):
if eXn2(yokr, 1):
cntZ = E0c2
else:
cntZ = eIRu
return cntZ[eXn2(yokr, len(cntZ))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gje8():\n qMKQ = ['Albrecht', 'Lysa', 'Yvette', 'Jésus', 'Amanitus']\n Ii5V = ['Andersson', 'Natt och Dag', 'av Pommern', 'Krusmynta']\n tuKI.seed()\n cntZ = qMKQ[tuKI.randint(0, len(qMKQ) - 1)]\n XVAW = Ii5V[tuKI.randint(0, len(Ii5V) - 1)]\n mWFP = cntZ + ' ' + XVAW\n return mWFP",
"def... | [
"0.73826253",
"0.71441495",
"0.7045821",
"0.6932578",
"0.6925943",
"0.6924926",
"0.6916525",
"0.6878518",
"0.6805603",
"0.6730048",
"0.6724545",
"0.67172307",
"0.6641586",
"0.6637091",
"0.65825343",
"0.65674067",
"0.65450186",
"0.6489816",
"0.64401555",
"0.6389313",
"0.636862... | 0.8186219 | 0 |
we define queryset by filter a data owned by current active user, we use this for all model extends bound to user, like todo model | def k66M(YKHO):
uIfa = {YKHO.bound_to_user_field_name: YKHO.request.auth.user}
return super(rFqd, YKHO).get_queryset().filter(**uIfa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO, *qIxc, **B2fa):\n umWR = super().get_queryset(*qIxc, **B2fa).filter(user=YKHO.request.user)\n return umWR",
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)",
"def k66M(YKHO, QePW):\n umWR = super().get_queryset(QePW)\n return umWR.filter(user=QePW.u... | [
"0.8181547",
"0.808988",
"0.7956351",
"0.79547375",
"0.7918021",
"0.77009606",
"0.7622131",
"0.7557892",
"0.7548126",
"0.74452204",
"0.7420513",
"0.74070495",
"0.73972994",
"0.7336948",
"0.7336948",
"0.732518",
"0.7289943",
"0.72758704",
"0.7245939",
"0.72297513",
"0.72297317... | 0.8009748 | 2 |
Endpoint. Retrieve a list of articles. | def mrVf():
vgXP = int(d7pR('offset', '0', HZkU))
qoqK = vJPk(d7pR('limit', str(AeTv), HZkU), 1, AeTv)
with wk5E.config.dba.engine.begin() as w2B8:
Ylbp = nhfz(w2B8, '\n SELECT no\n FROM article\n ORDER BY no\n LIMIT :limit\n OFFSET :offset\n ', {'offset': v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list():\n mrVf = []\n if QePW.method == 'GET':\n geh0 = tyNF.scan()\n mrVf = geh0.get('Items')\n return TvZl('article/articles.html', articles=mrVf, title='List Articles')",
"def nWKz():\n return rPXJ('index', articles=iqGZ())",
"def list(YKHO, QePW):\n SR0I = wHLq.objects.all(... | [
"0.834087",
"0.7946029",
"0.77411634",
"0.74669945",
"0.74529004",
"0.7433966",
"0.7422792",
"0.73798174",
"0.73665166",
"0.7209931",
"0.7209162",
"0.7087792",
"0.7065397",
"0.7005387",
"0.69917214",
"0.69782454",
"0.69404846",
"0.69230485",
"0.69015163",
"0.6899068",
"0.6811... | 0.74979204 | 3 |
Return the value of the state (computed in __init__). | def UnfG(YKHO, QTBn):
return YKHO.values[QTBn] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO, QTBn):\n raise NotImplementedError",
"def BWXx(YKHO, QTBn):\n raise NotImplementedError",
"def BWXx(YKHO, QTBn):\n raise NotImplementedError",
"def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()",
"def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()",
"def BWXx(YKHO, QTBn):\n retu... | [
"0.83004",
"0.83004",
"0.825906",
"0.8086294",
"0.8086294",
"0.79571116",
"0.79308134",
"0.78029096",
"0.77365136",
"0.7735367",
"0.7603885",
"0.7603885",
"0.7603885",
"0.7603885",
"0.7603885",
"0.7603885",
"0.7603885",
"0.7603885",
"0.7603885",
"0.7603885",
"0.7603885",
"0... | 0.7734854 | 20 |
The policy is the best action in the given state according to the values currently stored in self.values. You may break ties any way you see fit. Note that if there are no legal actions, which is the case at the terminal state, you should return None. | def pAi2(YKHO, QTBn):
"""*** YOUR CODE HERE ***"""
wCw7 = -100000000
Qzsg = None
for XeOP in YKHO.mdp.getPossibleActions(QTBn):
eaV4 = YKHO.getQValue(QTBn, XeOP)
if eaV4 > wCw7:
Qzsg = XeOP
wCw7 = eaV4
return Qzsg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcoU(YKHO, QTBn):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n lA2T = YKHO.mdp.getPossibleActions(QTBn)\n if len(lA2T) is 0:\n return None\n hjEf = gnPz.Counter()\n for XeOP in lA2T:\n for CrTw, Q7Be in YKHO.mdp.getTransitionStatesAndProbs(QTBn, XeOP):\n hjEf[XeOP] += Q7Be * (... | [
"0.77932984",
"0.77125514",
"0.761519",
"0.7606851",
"0.7493173",
"0.7467505",
"0.7373492",
"0.7342821",
"0.7341081",
"0.73393077",
"0.73349196",
"0.73109776",
"0.7310181",
"0.7295553",
"0.72748286",
"0.72445726",
"0.72445726",
"0.7156237",
"0.7089561",
"0.70827645",
"0.70623... | 0.7314243 | 11 |
Next zone serial number. Next serial is greater than current one. Serial is built using current data to follow common practive. | def jaSW(YKHO):
Kt_s = ITS7.gmtime()
P8oC = Kt_s[0] * 10000 + Kt_s[1] * 100 + Kt_s[2]
NalO = YKHO.serial // 100
if NalO < P8oC:
return P8oC * 100
else:
return YKHO.serial + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lnAX(YKHO):\n DpUl = YKHO._next_sequence_number\n YKHO._next_sequence_number += 1\n return DpUl",
"def mSiK(YKHO):\n with open(YKHO.ca_dir + osbf, 'r+') as J_yN:\n AiF7.flock(J_yN, AiF7.LOCK_EX)\n Pt6R = int(J_yN.read())\n J_yN.seek(0)\n J_yN.truncate()\n J_yN.w... | [
"0.6465065",
"0.6294775",
"0.61611086",
"0.6109975",
"0.6051333",
"0.60172594",
"0.59992635",
"0.5993045",
"0.59796476",
"0.58794314",
"0.58794314",
"0.58713484",
"0.585806",
"0.5823625",
"0.58135706",
"0.5806198",
"0.57873565",
"0.5781377",
"0.57158947",
"0.57105285",
"0.566... | 0.77350956 | 0 |
Get a list of notification groups to notify about zone changes | def sLLx(YKHO):
if YKHO.notification_group:
return [YKHO.notification_group]
if YKHO.profile.notification_group:
return [YKHO.profile.notification_group]
SMR4 = A6Ms.get_notification_group('dns.change')
if SMR4:
return [SMR4]
else:
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L0BT(YKHO):\n hfpE = NCls.leak[YKHO.id].notified_groups\n if hfpE is None:\n return []\n else:\n return qQXR.loads(hfpE)",
"def K8P5(YKHO) -> x1iM:\n pass",
"def moMn(YKHO):\n return YKHO.get('{}/groups'.format(gsRm.CM1.value))",
"def OjAO() -> cQ68:\n ABDL = QRWf.objects.... | [
"0.64347035",
"0.58877194",
"0.5824756",
"0.58240813",
"0.5785113",
"0.5726456",
"0.57208014",
"0.5693628",
"0.5691242",
"0.5624232",
"0.55486226",
"0.5536277",
"0.5532384",
"0.5531114",
"0.55070025",
"0.5504677",
"0.54586047",
"0.54154223",
"0.54148686",
"0.5399377",
"0.5379... | 0.7972055 | 0 |
Get the width in pixels of the frames this game renders. | def wLCK(YKHO) -> AzJI[int, int]:
return YKHO.__sim.frame_size() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xiCJ(YKHO):\n return lHN0",
"def B_hS(YKHO) -> int:\n return YKHO.__sim.frame_size()[0]",
"def V8C_(YKHO) -> int:\n return YKHO.rsimulator.get_frame_width()",
"def lHN0(YKHO):\n return YKHO._frame_width",
"def yRXn(YKHO) -> int:\n pass",
"def V8C_(YKHO):\n return max(map(kMBb.get_wi... | [
"0.8688647",
"0.8613795",
"0.8520266",
"0.8426821",
"0.8346426",
"0.8209329",
"0.78909",
"0.7611521",
"0.7594529",
"0.759402",
"0.75854415",
"0.75768906",
"0.7528958",
"0.74856",
"0.74758935",
"0.74758935",
"0.74511576",
"0.7443739",
"0.74220127",
"0.7415641",
"0.7415641",
... | 0.72729653 | 45 |
Get the width in pixels of the frames this game renders. | def B_hS(YKHO) -> int:
return YKHO.__sim.frame_size()[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xiCJ(YKHO):\n return lHN0",
"def V8C_(YKHO) -> int:\n return YKHO.rsimulator.get_frame_width()",
"def lHN0(YKHO):\n return YKHO._frame_width",
"def yRXn(YKHO) -> int:\n pass",
"def V8C_(YKHO):\n return max(map(kMBb.get_width, YKHO.frames))",
"def V8C_(YKHO) -> int:\n return int(YKHO... | [
"0.86891806",
"0.85198593",
"0.8427314",
"0.8346614",
"0.8209053",
"0.78901935",
"0.7610554",
"0.7594967",
"0.75932884",
"0.7586037",
"0.7576318",
"0.7529654",
"0.74853146",
"0.74766475",
"0.74766475",
"0.7451439",
"0.74444026",
"0.7422578",
"0.74161416",
"0.74161416",
"0.741... | 0.8612898 | 1 |
Get the height in pixels of the frames this game renders. | def WMya(YKHO) -> int:
return YKHO.__sim.frame_size()[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAiv(YKHO):\n return HVRk",
"def xglF(YKHO) -> int:\n return YKHO.rsimulator.get_frame_height()",
"def mC4B(YKHO) -> int:\n pass",
"def HVRk(YKHO):\n return YKHO._frame_height",
"def xglF(YKHO):\n return max(map(kMBb.get_height, YKHO.frames))",
"def xglF(YKHO) -> int:\n return int(Y... | [
"0.8737532",
"0.858383",
"0.8386076",
"0.83400345",
"0.82720095",
"0.79945946",
"0.7796253",
"0.7796253",
"0.77437437",
"0.76917267",
"0.7630042",
"0.76270753",
"0.75525427",
"0.75489825",
"0.75448066",
"0.75448066",
"0.75448066",
"0.75448066",
"0.75314134",
"0.7521969",
"0.7... | 0.8675554 | 1 |
Get a JSON representation of the state. | def oD7C(YKHO) -> cuzp[str, ImMB]:
return qQXR.loads(YKHO.get_state().to_json()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cbsw(YKHO) -> cuzp[str, ImMB]:\n return YKHO.state_to_json()",
"def stVm(YKHO) -> cuzp[str, ImMB]:\n return YKHO.rstate.to_json()",
"def oD7C(YKHO):\n return {'state_type': YKHO.state_type, 'state_id': YKHO.state_id, 'public': YKHO.public, 'private': YKHO.private}",
"def _1qY(YKHO):\n return ... | [
"0.87301415",
"0.85217005",
"0.8410326",
"0.8047187",
"0.7858633",
"0.74160475",
"0.73493433",
"0.72855616",
"0.72207755",
"0.70691967",
"0.7063533",
"0.69893986",
"0.69556314",
"0.69279844",
"0.69250184",
"0.69142",
"0.6911378",
"0.690467",
"0.68803036",
"0.6873965",
"0.6859... | 0.8407449 | 3 |
Get the height of the rendered game in pixels. | def xglF(YKHO) -> int:
return YKHO.rsimulator.get_frame_height() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xglF(YKHO) -> int:\n return int(YKHO._surface.get_height())",
"def H2v2(YKHO):\n return YKHO.SCREEN_H",
"def bAiv(YKHO):\n return YKHO.height",
"def bAiv(YKHO):\n return YKHO.height",
"def bAiv(YKHO):\n return YKHO._height",
"def H2v2(YKHO) -> int:\n return YKHO.rect_uv.h",
"def H... | [
"0.81684476",
"0.80634594",
"0.78612244",
"0.78612244",
"0.7832945",
"0.77984476",
"0.7766496",
"0.7761719",
"0.7737755",
"0.7736839",
"0.76962453",
"0.7694103",
"0.7622402",
"0.7622402",
"0.7622402",
"0.7622402",
"0.76040655",
"0.7603959",
"0.76033235",
"0.7601484",
"0.76001... | 0.7824396 | 5 |
Get the width of the rendered game in pixels. | def V8C_(YKHO) -> int:
return YKHO.rsimulator.get_frame_width() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V8C_(YKHO) -> int:\n return int(YKHO._surface.get_width())",
"def TVTK(YKHO):\n return YKHO.SCREEN_W",
"def TiRu(YKHO):\n QpfX = lgcA(YKHO.context)\n return QpfX.getWidth()",
"def TVTK(YKHO) -> int:\n return YKHO.rect_uv.w",
"def TVTK(YKHO):\n return YKHO._w",
"def TVTK(YKHO):\n ... | [
"0.8115016",
"0.79692084",
"0.77971774",
"0.76963514",
"0.76890427",
"0.76551825",
"0.7617467",
"0.7585239",
"0.75754964",
"0.7558717",
"0.7558717",
"0.7554131",
"0.75291353",
"0.7524967",
"0.7524733",
"0.75203687",
"0.7508959",
"0.74974203",
"0.74974203",
"0.74974203",
"0.74... | 0.75831 | 8 |
Get the state's JSON representation as a python object. | def stVm(YKHO) -> cuzp[str, ImMB]:
return YKHO.rstate.to_json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO) -> cuzp[str, ImMB]:\n return qQXR.loads(YKHO.get_state().to_json())",
"def cbsw(YKHO) -> cuzp[str, ImMB]:\n return YKHO.state_to_json()",
"def tah0(YKHO):\n QpfX = FyMh.pickler.Pickler(unpicklable=True, warn=True, keys=True)\n YTk9 = QpfX.flatten(YKHO, reset=True)\n FyMh.set_encod... | [
"0.83683366",
"0.8212334",
"0.78208005",
"0.76950616",
"0.7276408",
"0.7193767",
"0.71107274",
"0.70564234",
"0.70532304",
"0.7030929",
"0.69553906",
"0.6923266",
"0.69154525",
"0.6816502",
"0.67719",
"0.67719",
"0.67662394",
"0.67638034",
"0.6703736",
"0.6650296",
"0.6649427... | 0.7937635 | 2 |
Removes duplicates in a sorted array of integers in place (i.e. the original array is modified). All entries up to a particular length of the array are sorted in increasing order and are not duplicated. Beyond that length, it does not matter what is stored in the array. This version uses two while loops to determine th... | def uY6T(YKHO, xYvp: List[int]) -> int:
fC6h = 0
l4bO = 0
ErMq = len(xYvp)
while fC6h < ErMq - 1:
while xYvp[fC6h] <= xYvp[l4bO]:
fC6h += 1
if fC6h >= ErMq:
break
else:
l4bO += 1
xYvp[l4bO] = xYvp[fC6h]
return l4bO + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUEk(YKHO, qw7D: List) -> x1iM:\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in qw7D if not (WKvO in PwWw or aygV(WKvO))]",
"def dDv2(xYvp: List[int]) -> int:\n if not xYvp:\n return 0\n id7O = 0\n for DkUh in range(1, len(xYvp)):\n if xYvp[id7O] != xYvp[DkUh]:\n ... | [
"0.68854004",
"0.6849876",
"0.6775448",
"0.6752954",
"0.6712457",
"0.66421545",
"0.662587",
"0.64599824",
"0.64023757",
"0.62553763",
"0.6144159",
"0.61293685",
"0.6112883",
"0.6107234",
"0.6087302",
"0.6021101",
"0.6008951",
"0.6006148",
"0.60044",
"0.5992662",
"0.5977117",
... | 0.6525636 | 7 |
Removes duplicates in a sorted array of integers in place (i.e. the original array is modified). All entries up to a particular length of the array are sorted in increasing order and are not duplicated. Beyond that length, it does not matter what is stored in the array. A much shorter version using a for loop. | def uY6T(YKHO, xYvp: List[int]) -> int:
l4bO = 0
for YRbF, exwG in enumerate(xYvp):
if xYvp[l4bO] != xYvp[YRbF]:
l4bO += 1
xYvp[l4bO] = xYvp[YRbF]
return l4bO + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUEk(YKHO, qw7D: List) -> x1iM:\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in qw7D if not (WKvO in PwWw or aygV(WKvO))]",
"def XcUH(VosJ):\n yp4p = VosJ.copy()\n P6bq = []\n for YRbF in range(yp4p.shape[0]):\n for r845 in range(yp4p.shape[1]):\n if yp4p[YRbF]... | [
"0.7500093",
"0.7180552",
"0.71648175",
"0.70080674",
"0.6961687",
"0.6937332",
"0.6876349",
"0.6798919",
"0.6758164",
"0.66873443",
"0.66688263",
"0.6607664",
"0.6533917",
"0.65171826",
"0.6407602",
"0.6230464",
"0.62107706",
"0.6203199",
"0.6133676",
"0.6131479",
"0.6107336... | 0.6228829 | 16 |
Compute the array mapping monomials under multiplication by x_var | def wZhx(Y2ZM, Nygx, SRYB):
qBei = Y2ZM[Nygx].copy()
qBei[:, SRYB] += 1
return oyIN.argmin(oyIN.abs(qBei[:, oyIN.newaxis] - Y2ZM[oyIN.newaxis]).sum(axis=-1), axis=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fgRC(YKHO, WKvO):\n Csk6 = YKHO.manifold.shape[0]\n exwG = WKvO.shape[1]\n osdx = oyIN.zeros(shape=(exwG, YKHO.m))\n for yzQ0 in range(YKHO.m):\n yGTL = oyIN.tile(YKHO.manifold[:, yzQ0].reshape(Csk6, 1), (1, exwG))\n osdx[:, yzQ0] = oyIN.sum((WKvO - yGTL) ** 2, 0) / YKHO.sigma ** 2\n ... | [
"0.688784",
"0.63702035",
"0.6330995",
"0.61941296",
"0.6099713",
"0.6046073",
"0.59148383",
"0.588612",
"0.5858323",
"0.58422726",
"0.581216",
"0.573582",
"0.5702135",
"0.56995577",
"0.5675611",
"0.56696725",
"0.5643081",
"0.56386024",
"0.5636899",
"0.5633451",
"0.561626",
... | 0.5129997 | 78 |
Update url string to try to make sure that the proper url scheme (https, http) is used | def AD71(QePW: flask.Request) -> str:
ys3h = KVWQ(QePW.url_root)
Tm06 = QePW.headers.get('X-Scheme')
if Tm06 is not None:
return ys3h._replace(scheme=Tm06).geturl()
elif ys3h.scheme == 'http' and 'localhost' not in ys3h.netloc:
return ys3h._replace(scheme='https').geturl()
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQcs(bD7m):\n if 'http://' in bD7m or 'https://' in bD7m:\n return bD7m\n try:\n if G4JS.get('https://' + bD7m):\n return 'https://' + bD7m\n except Exception as ex:\n CgYo(aTqo)\n return 'http://' + bD7m",
"def yWMy(Emd4, bD7m: str):\n ...",
"def QzyC(bD7m):\... | [
"0.77348053",
"0.7493406",
"0.73766786",
"0.7328102",
"0.7213342",
"0.71923023",
"0.7186089",
"0.7145018",
"0.7122136",
"0.7047641",
"0.70049304",
"0.6989341",
"0.69811887",
"0.6958153",
"0.6946653",
"0.69459736",
"0.68953645",
"0.6779411",
"0.6762922",
"0.6647423",
"0.663314... | 0.581559 | 85 |
Takes in a speech, tokenizes and breaks it out into sentences, lemmatizes and removes stop words and punctuation for each speech | def biH0(nC0Z):
IuUc = '!"#$%&\'()’*+,-./:”;<=>?@[\\]^_`{|}~'
hwHU = CNQv.lang.en.stop_words.STOP_WORDS
TwhW = ['abc', 'c', 'o', 'n', '']
mTBh = []
b0j5 = CNQv.load('en_core_web_sm')
sASA = b0j5(nC0Z)
for yAmx in sASA.sents:
yAmx = [GIN8.lemma_.lower().strip() if GIN8.lemma_ != '-PRO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NBjn(YKHO, yAmx):\n V22M = YKHO.tokenizer.tokenize(yAmx)\n V22M = [YKHO.lemmatizer.lemmatize(GIN8) for GIN8 in V22M]\n V22M = [GIN8.lower() for GIN8 in V22M if len(GIN8) > 1]\n V22M = [GIN8 for GIN8 in V22M if GIN8 not in di0c.words('english')]\n return V22M",
"def QrZ9(l5Ny):\n Esii = GFnk... | [
"0.72735536",
"0.7171761",
"0.7118004",
"0.71071094",
"0.7104198",
"0.7082318",
"0.69064766",
"0.68198186",
"0.6813841",
"0.68095016",
"0.68062806",
"0.68042564",
"0.6797433",
"0.67923796",
"0.67888284",
"0.67711854",
"0.6768037",
"0.6767615",
"0.67422837",
"0.6728139",
"0.67... | 0.70303637 | 6 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8):
Q6kx = YKHO.root
for hcXw in GIN8:
if hcXw in Q6kx.dict:
Q6kx = Q6kx.dict[hcXw]
else:
return False
if Q6kx.end:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.838688",
"0.81506926",
"0.8123755",
"0.7855897",
"0.78300554",
"0.77929205",
"0.7792431",
"0.7764039",
"0.77527696",
"0.7747135",
"0.7710718",
"0.7681125",
"0.76765084",
"0.7663886",
"0.76334864",
"0.7627911",
"0.7610731",
"0.7577138",
"0.7569136",
"0.7560349",
"0.75594175... | 0.7650241 | 14 |
Copyright (c) 2012 by David WardeFarley Reads a partial array (contiguous chunk along the first axis) from an NPY file. | def kZDR(Ux0P, NUEI, NwL4):
assert NUEI >= 0 and NwL4 > 0
with open(Ux0P, 'rb') as PzCc:
IJ4N, cbKy = oyIN.lib.format.read_magic(PzCc)
ROpF, blu1, yDqo = oyIN.lib.format.read_array_header_1_0(PzCc)
assert not blu1, 'Fortran order arrays not supported'
assert NUEI < ROpF[0], 'star... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xB50(Ux0P):\n p891 = oyIN.load(Ux0P)\n return p891",
"def knAK(nUeQ, yDqo='float32', ROpF=None, EdbX=-1, UHFx=-1):\n if EdbX >= 0:\n l2sb = 1\n else:\n l2sb = -1\n try:\n nUeQ.seek(0, 1)\n except AttributeError:\n nUeQ = open(nUeQ)\n if EdbX > 0 or UHFx >= 0:\... | [
"0.6325949",
"0.6271587",
"0.6199003",
"0.61408424",
"0.6067401",
"0.5998804",
"0.5961009",
"0.5885518",
"0.5878145",
"0.5876129",
"0.5849605",
"0.58374834",
"0.58344537",
"0.58189416",
"0.5805925",
"0.57592756",
"0.5726147",
"0.56939596",
"0.5681636",
"0.5681636",
"0.5658396... | 0.7298586 | 0 |
__call__(self, x, c, finetune=False) Invokes the forward propagation of BatchNormalization. In training mode, the BatchNormalization computes moving averages of mean and variance for evaluatino during training, and normalizes the input using batch statistics. | def nrOS(YKHO, WKvO, Z9rn, LSVv=False, **B2fa):
if Z9rn.ndim == 2:
ZW_q = vuvg.matmul(Z9rn, YKHO.gammas.W)
MonL = vuvg.matmul(Z9rn, YKHO.betas.W)
else:
ZW_q = YKHO.gammas(Z9rn)
MonL = YKHO.betas(Z9rn)
return super(Xr2_, YKHO).__call__(WKvO, ZW_q, MonL, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, WKvO, **B2fa):\n wAVY.check_unexpected_kwargs(B2fa, test='test argument is not supported anymore. Use chainer.using_config')\n LSVv, = wAVY.parse_kwargs(B2fa, ('finetune', False))\n if hasattr(YKHO, 'gamma'):\n KMvS = YKHO.gamma\n else:\n with lDLs.get_device_from_id(YKHO._... | [
"0.78120357",
"0.6609565",
"0.6519364",
"0.64857125",
"0.63217014",
"0.62920266",
"0.62697506",
"0.6240007",
"0.6204136",
"0.61848927",
"0.6183013",
"0.6145865",
"0.6096971",
"0.60799265",
"0.60720384",
"0.6063913",
"0.60437244",
"0.6033654",
"0.6029397",
"0.60261464",
"0.598... | 0.79198986 | 0 |
Resets the population count for collecting population statistics. This method can be skipped if it is the first time to use the finetuning mode. Otherwise, this method should be called before starting the finetuning mode again. | def iM7i(YKHO):
YKHO.N = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1J4(YKHO):\n YKHO.logger.info('Reinit called. Clear the population.')\n YKHO.set_init_population([], perf_name=None)\n YKHO._gt_rollouts = []\n YKHO._gt_scores = []",
"def h9Zz(YKHO):\n YKHO.next_population = []",
"def SiRx(YKHO):\n if not YKHO._data_writer.is_ran_last():\n if not... | [
"0.7370528",
"0.73314667",
"0.71854067",
"0.69929546",
"0.69929546",
"0.6989829",
"0.68576974",
"0.6851169",
"0.6805506",
"0.6776551",
"0.6727888",
"0.6719139",
"0.67131925",
"0.6656626",
"0.6646397",
"0.6635762",
"0.65523297",
"0.6549725",
"0.6549059",
"0.6544948",
"0.653123... | 0.6109606 | 61 |
For a given file, return whether it's an allowed type or not | def XT0o(Ux0P):
return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in yPQU.config['ALLOWED_EXTENSIONS'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P25J(gIsw):\n return gIsw.lower().endswith(Q7AW)",
"def qdVJ(IznC):\n YBcr = pmON.splitext(IznC)[1]\n return YBcr in NexC",
"def xDbo(nUeQ):\n yvke = ['png', 'jpg', 'jpeg']\n sKBJ = nUeQ.filename.split('.')[-1] in yvke\n ew0n = ['image/jpeg', 'image/jpg', 'image/png']\n yhuy = nUeQ.mim... | [
"0.8261494",
"0.8156615",
"0.7785007",
"0.7743022",
"0.7712795",
"0.7351481",
"0.7300726",
"0.72518766",
"0.7231298",
"0.7231298",
"0.72218883",
"0.7214557",
"0.7211013",
"0.7211013",
"0.7211013",
"0.7211013",
"0.7211013",
"0.7211013",
"0.7211013",
"0.7211013",
"0.7211013",
... | 0.69851446 | 45 |