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 |
|---|---|---|---|---|---|---|
Destroy the driver session, this function is called everytime a driver instance is destroyed This is a good place to close any open sessions, finish writing to log files | def HySU(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x9p9(YKHO):\n YKHO.driver.close()",
"def duMC():\n if nS8u:\n RKD7.msg_debug('[{driver}] dispose'.format(driver=nS8u.get_name()))\n nS8u.dispose()",
"def fFx9(YKHO):\n YKHO.session.close()",
"def WoCN(YKHO):\n YKHO.session.close()",
"def HySU(YKHO):\n\n async def close_sess... | [
"0.7129763",
"0.70032936",
"0.6854024",
"0.68136895",
"0.681202",
"0.6650462",
"0.66460943",
"0.65916353",
"0.65916353",
"0.65916353",
"0.65733254",
"0.65268165",
"0.651241",
"0.650918",
"0.6485256",
"0.6419419",
"0.64114165",
"0.63965607",
"0.63878316",
"0.6378344",
"0.63581... | 0.0 | -1 |
Returns largest snap id from DBA_HIST_SNAPSHOT | def fd69(HrP9, bo34):
R_7s.__validate(db_conn=HrP9, logger=bo34)
IqQy = 'select snap_id from dba_hist_snapshot where end_interval_time = (select max(end_interval_time) from dba_hist_snapshot)'
Pn3r = HrP9.execute_query(query=IqQy, fetch_single=True)
return Pn3r[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ysZU(h2mU, nsX0):\n O7EZ = cYzC.describe_db_snapshots(SnapshotType='automated')['DBSnapshots']\n if h2mU and (not 'None'):\n O7EZ = filter(lambda WKvO: h2mU in WKvO.get('DBInstanceIdentifier'), O7EZ)\n for Rwel in O7EZ:\n if Rwel['SnapshotCreateTime'].date() == nsX0:\n return ... | [
"0.6332178",
"0.61792976",
"0.6137891",
"0.5978063",
"0.58039176",
"0.57572174",
"0.5721936",
"0.5678851",
"0.56595546",
"0.5648404",
"0.5631838",
"0.5611582",
"0.5611572",
"0.55914605",
"0.55815375",
"0.5579846",
"0.5533067",
"0.5527304",
"0.5488597",
"0.54624677",
"0.545834... | 0.8024712 | 0 |
Return the number of total users who rated the movie. | def dhsZ(DW23: List[int], LHvA: int, mwlV: UserRatingDict) -> int:
Aofo = 0
for YRbF in DW23:
if LHvA in list(mwlV[YRbF].keys()):
Aofo += 1
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1L0():\n wjRY = sV3k['Number of Movies'].sum()\n return ('tot_movies', wjRY)",
"def cYY2(YKHO, NtEF):\n YKHO.cur.execute('SELECT CAST(SUM(view_count) AS DECIMAL(10, 0)) FROM videos WHERE uploader = \"{}\"'.format(NtEF))\n return YKHO.cur.fetchone()[0]",
"def hCbc(YKHO):\n f8HB = 0\n for ... | [
"0.6916057",
"0.660642",
"0.65746045",
"0.65171784",
"0.64303356",
"0.6368172",
"0.63395154",
"0.6249641",
"0.61884147",
"0.618811",
"0.6143058",
"0.613632",
"0.6118675",
"0.6101042",
"0.6051294",
"0.6027137",
"0.6027137",
"0.6020774",
"0.60160595",
"0.5994691",
"0.5966524",
... | 0.8175688 | 0 |
Check to see if we created the 0001 frame of this file. | def ECXa(lpM_):
cK59, mPQc, j1aU, bGrB = lpM_
return bool(Hy7s.path.exists(Hy7s.path.join('/data/niteshku001/Ravdess', cK59, mPQc, j1aU + '-0001.jpg'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ahqu(YKHO):\n TPVt = bin(int(YKHO.packet_body[YKHO.reader], base=16))[2:].zfill(8)\n return TPVt[0:3] == '001'",
"def iruL(YKHO):\n nUeQ = GkAb(YKHO.get_encoder_path() + '.data-00000-of-00001')\n return nUeQ.exists()",
"def rW68(YKHO):\n if YKHO.currentFrame == []:\n return False\n ... | [
"0.6845341",
"0.6385996",
"0.62448496",
"0.6057301",
"0.58535653",
"0.5787386",
"0.57349885",
"0.57237864",
"0.56976765",
"0.56358933",
"0.5621559",
"0.559981",
"0.55927694",
"0.5521344",
"0.550883",
"0.5489131",
"0.5481525",
"0.54558146",
"0.5454623",
"0.54435945",
"0.543617... | 0.0 | -1 |
Load the pretrained weights to the models' encoder and decoder modules | def SUd8(a2jN, C3ST, cfQG, y7GR):
ZGE9 = Hy7s.path.join(a2jN, 'i3d_ep' + str(cfQG) + '_' + y7GR + '.pt')
if Hy7s.path.isfile(ZGE9):
C3ST.load_state_dict(ht2j.load(ZGE9))
print('Loading I3D weights... : {}'.format(ZGE9))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WSaB(YKHO, WJhC):\n YKHO.encoder.load_weights(WJhC)",
"def uyMl(YKHO):\n YKHO.opt.load_weights_folder = Hy7s.path.expanduser(YKHO.opt.load_weights_folder)\n assert Hy7s.path.isdir(YKHO.opt.load_weights_folder), 'Cannot find folder {}'.format(YKHO.opt.load_weights_folder)\n print('loading model fr... | [
"0.7682749",
"0.75298536",
"0.744381",
"0.73971266",
"0.73269916",
"0.73150736",
"0.72718525",
"0.71863985",
"0.7173713",
"0.7090004",
"0.70568687",
"0.70343035",
"0.7021351",
"0.69961375",
"0.69401944",
"0.69265676",
"0.69052786",
"0.68935543",
"0.6872852",
"0.680937",
"0.68... | 0.713369 | 9 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=0'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.8221727",
"0.8220911",
"0.8220911",
"0.8220911",
"0.8220911",
"0.81940746",
"0.81111443",
"0.80852413",
"0.79712725",
"0.78637785",
"0.7659569",
"0.72363365",
"0.71586627",
"0.71513546",
"0.71513546",
"0.71502376",
"0.71502376",
"0.7140211",
"0.7135492",
"0.7126684",
"0.71... | 0.8161616 | 28 |
Return the left view of the tree. | def BtSI(YKHO) -> list:
gGq6 = []
LFlW = []
gGq6.append(YKHO)
while len(gGq6) > 0:
for YRbF in range(len(gGq6)):
if YRbF == 0:
LFlW.append(gGq6[0].data)
Q6kx = gGq6[0]
gGq6.pop(0)
if Q6kx.left != None:
gGq6.append(Q6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pFfe(YKHO):\n return YKHO.left_child(YKHO.virtual_root)",
"def gEGd(YKHO):\n return YKHO.__left",
"def gEGd(YKHO):\n return YKHO.left",
"def yX3E(YKHO):\n return YKHO.left",
"def LFlW(YKHO):\n return YKHO._left",
"def LFlW(YKHO):\n return YKHO._left",
"def gEGd(YKHO):\n return ... | [
"0.82560426",
"0.8169316",
"0.81584114",
"0.81019026",
"0.79926074",
"0.79926074",
"0.7983903",
"0.79575205",
"0.7887999",
"0.7720716",
"0.7680289",
"0.7620984",
"0.7599738",
"0.75866836",
"0.7574569",
"0.7570451",
"0.75311977",
"0.7524592",
"0.7524592",
"0.7419764",
"0.73872... | 0.75937116 | 13 |
Return the maxdepth of the tree. | def WLtg(Q6kx):
if Q6kx is None:
return 0
else:
u7TK = WLtg(Q6kx.left)
L59U = WLtg(Q6kx.right)
if u7TK > L59U:
return u7TK + 1
else:
return L59U + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xll4(YKHO):\n fz7m = oyIN.array([kjp6.tree_depth for kjp6 in YKHO.leaves])\n return fz7m.max()",
"def qi10(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_depth')",
"def tALi(YKHO):\n return YKHO.MAX_DEPTH",
"def sX7H(YKHO):\n qi10 = 0\n for Q6kx, nPrm in YKHO.traverse():\n qi10 = max... | [
"0.9047189",
"0.8690967",
"0.8652321",
"0.86203194",
"0.82904667",
"0.8260008",
"0.825735",
"0.82057595",
"0.8127802",
"0.81242335",
"0.80207545",
"0.79476947",
"0.79170525",
"0.78820616",
"0.7824556",
"0.7822474",
"0.76324034",
"0.76061285",
"0.75666094",
"0.75245845",
"0.75... | 0.7863341 | 14 |
initialize model and weights and such | def FIMM(YKHO):
super(M78E, YKHO).__init__()
YKHO.fc1 = U78l.Linear(28 * 28, 500)
YKHO.fc2 = U78l.Linear(500, 256)
YKHO.fc3 = U78l.Linear(256, 10)
YKHO.loss = R4LU() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def C0Lv(YKHO):\n pass",
"def uIcm(YKHO):\n na1r.info('Initializing Model.')\n YKHO.model = YKHO.convert(df=YKHO.training_df)\n if YKHO.bootstraps is not None:\n na1r.info('Bootstrapping Data.')\n YKHO.bootstrap_data()",
"def sTi3(YKHO):\n dIoi.Weights... | [
"0.8507747",
"0.79880965",
"0.7678937",
"0.76385456",
"0.7630126",
"0.76079684",
"0.7595659",
"0.75947237",
"0.756255",
"0.7554624",
"0.7542726",
"0.75413126",
"0.75398123",
"0.75327426",
"0.7494399",
"0.7475801",
"0.74594414",
"0.74441767",
"0.74408776",
"0.7432825",
"0.7418... | 0.0 | -1 |
Converts newlines into and s. | def P2R6(BWXx, C_xU=False):
BWXx = bqxq(BWXx)
s4Yn = ZbWC.split('\n{2,}', BWXx)
if C_xU:
s4Yn = ['<p data-parnum="%s">%s</p>' % (YRbF, IguF(XP5J).replace('\n', '<br />')) for YRbF, XP5J in enumerate(s4Yn)]
else:
s4Yn = ['<p data-parnum="%s">%s</p>' % (YRbF, XP5J.replace('\n', '<br />')) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lqyV(KCHu):\n vC9B = KCHu.splitlines(True)\n try:\n if vC9B[1] in ('\\r\\n', '\\n', '</br>'):\n vC9B = fiUG(vC9B)\n except IndexError:\n pass\n try:\n if vC9B[-1] not in ('\\r\\n', '\\n', '</br>'):\n vC9B.append('\\r\\n')\n except IndexError:\n p... | [
"0.62194276",
"0.6193952",
"0.59154564",
"0.5836151",
"0.5775937",
"0.56506264",
"0.563082",
"0.560965",
"0.5548996",
"0.55323863",
"0.5523938",
"0.54555607",
"0.53958887",
"0.53954804",
"0.5392902",
"0.53920454",
"0.5309197",
"0.53079605",
"0.5304625",
"0.53003716",
"0.52933... | 0.0 | -1 |
Split input data into batches and iterate over the minibatches. | def wdeK(YKHO, __n6, f65o, hXNa=False):
exwG = len(__n6[0])
assert len(__n6[1]) == exwG
f65o = min(f65o, exwG)
_0VL = XTiz.arange(exwG)
XTiz.random.shuffle(_0VL)
for Dvh2 in range(0, exwG - f65o + 1, f65o):
nuW2 = _0VL[Dvh2:Dvh2 + f65o]
yield (__n6[0][nuW2], __n6[1][nuW2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7kr(YKHO):\n Ep8u = YKHO.params['batch_size']\n V_8U = 0\n while V_8U + Ep8u < 500:\n ixQc = V_8U + Ep8u\n yield (YKHO.input[V_8U:ixQc], YKHO.y[V_8U:ixQc])\n V_8U = ixQc",
"def bUvy(YKHO):\n Ep8u = YKHO.params['batch_size']\n V_8U = 0\n while V_8U + Ep8u < 500:\n ... | [
"0.7514821",
"0.7228337",
"0.7189508",
"0.7113607",
"0.7111697",
"0.70808095",
"0.70292306",
"0.6942698",
"0.691379",
"0.6896721",
"0.6891105",
"0.6889889",
"0.6845333",
"0.6832212",
"0.6813091",
"0.67320377",
"0.67196655",
"0.6714967",
"0.6660149",
"0.6641212",
"0.66309243",... | 0.63300085 | 43 |
Sets the cellular_technology of this Network. | def ndvT(YKHO, ndvT):
YKHO._cellular_technology = ndvT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfJp(YKHO, FGxd):\n YKHO.etype = FGxd",
"def FIMM(YKHO, ndvT=None, SLUB=None, _R1u=None, U6yv=None, yX_L=None, lYII=None, Onn_=None, ux8C=None, o19q=None, Kcu0=None, HJ63=None, n56y=None, OiwS=None, VOsj=None, GUKZ=None, JSoq=None, DfdZ=None):\n if DfdZ is None:\n DfdZ = y8cn()\n YKHO.local_v... | [
"0.54518664",
"0.513338",
"0.5067461",
"0.48523462",
"0.48099002",
"0.47702315",
"0.47393814",
"0.47324398",
"0.47281742",
"0.47162086",
"0.47092837",
"0.4702348",
"0.46906355",
"0.4670833",
"0.46497086",
"0.46365848",
"0.46365848",
"0.46365848",
"0.46365848",
"0.4601058",
"0... | 0.9004759 | 0 |
Sets the is_voice_roaming_enabled of this Network. | def SLUB(YKHO, SLUB):
YKHO._is_voice_roaming_enabled = SLUB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OiwS(YKHO, OiwS):\n YKHO._is_data_roaming_enabled = OiwS",
"def VOsj(YKHO, VOsj):\n YKHO._is_roaming = VOsj",
"def VzW1(YKHO, fZXy):\n gTEQ('PrlVmCfg_SetUseMusic', YKHO.handle, fZXy)",
"def XsoK(YKHO, mWFP):\n G9jH.debug('setvoice...')\n for l1d8 in YKHO._eng.getProperty('voices'):\n ... | [
"0.61055624",
"0.6026634",
"0.5206036",
"0.51777315",
"0.51712847",
"0.5089319",
"0.50430036",
"0.50387585",
"0.49048346",
"0.48185816",
"0.4809759",
"0.47629684",
"0.4733111",
"0.47227722",
"0.47078836",
"0.46761084",
"0.46498984",
"0.4649474",
"0.4648588",
"0.46294358",
"0.... | 0.8437524 | 0 |
Sets the iccid of this Network. | def U6yv(YKHO, U6yv):
YKHO._iccid = U6yv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pXRJ(YKHO, iIih):\n YKHO.__cid = iIih",
"def pXRJ(YKHO, iIih):\n YKHO.__cid = iIih",
"def yf3m(YKHO, yf3m):\n YKHO._cidr = yf3m",
"def lwfF(YKHO, lwfF):\n YKHO._vcn_id = lwfF",
"def _KoS(YKHO, mdwG: int) -> None:\n YKHO.config['nci'] = '0x{}0'.format(str(mdwG).zfill(8))",
"def V_9M(YKH... | [
"0.76381475",
"0.76381475",
"0.6284573",
"0.6230802",
"0.59487116",
"0.58567274",
"0.5854948",
"0.5794281",
"0.5778503",
"0.57716906",
"0.57712877",
"0.56311375",
"0.5618979",
"0.5597367",
"0.5567419",
"0.5507964",
"0.5456775",
"0.5440663",
"0.5435232",
"0.5421832",
"0.539432... | 0.8163385 | 0 |
Sets the meid of this Network. | def yX_L(YKHO, yX_L):
YKHO._meid = yX_L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jq5z(YKHO, Lnes):\n YKHO._node_id = Lnes",
"def JCpK(YKHO, JCpK):\n YKHO._moid = JCpK",
"def JCpK(YKHO, JCpK):\n YKHO._moid = JCpK",
"def nH4V(YKHO, nH4V):\n YKHO._ion_node_id = nH4V",
"def ekm0(YKHO, id):\n raise NotImplementedError('must be implemented in subclass')",
"def KyJe(YKHO,... | [
"0.6020895",
"0.59873366",
"0.59873366",
"0.5859316",
"0.5817441",
"0.580129",
"0.5799491",
"0.57427883",
"0.5689283",
"0.5608548",
"0.5602765",
"0.55243534",
"0.55241156",
"0.5490868",
"0.54837626",
"0.547197",
"0.54190207",
"0.5397504",
"0.53779083",
"0.536733",
"0.52938765... | 0.7898926 | 0 |
Sets the carrier_settings_version of this Network. | def lYII(YKHO, lYII):
YKHO._carrier_settings_version = lYII | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2V2(YKHO, DpZH: str) -> None:\n if YKHO.current_version == DpZH:\n return\n YKHO.current_version = DpZH\n YKHO._del_cached_property('version')",
"def dXPH(YKHO, oQsa):\n gTEQ('PrlVmCfg_SetOsVersion', YKHO.handle, oQsa)",
"def DpZH(YKHO, DpZH):\n YKHO._version = DpZH",
"def DpZH(YKH... | [
"0.5824551",
"0.57495904",
"0.5720873",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
"0.57051086",
... | 0.87969404 | 0 |
Sets the current_mobile_country_code of this Network. | def ux8C(YKHO, ux8C):
YKHO._current_mobile_country_code = ux8C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o19q(YKHO, o19q):\n YKHO._current_mobile_network_code = o19q",
"def HJ63(YKHO, HJ63):\n YKHO._home_mobile_country_code = HJ63",
"def m59W(YKHO, m59W):\n YKHO._country_code = m59W",
"def n56y(YKHO, n56y):\n YKHO._home_mobile_network_code = n56y",
"def Fn_2(YKHO, Fn_2):\n YKHO._mobile_phon... | [
"0.75514936",
"0.7182278",
"0.6717251",
"0.6359026",
"0.593765",
"0.5569723",
"0.5569723",
"0.5569723",
"0.5569723",
"0.5569723",
"0.5498544",
"0.5447177",
"0.536674",
"0.536674",
"0.53656566",
"0.53653145",
"0.53653145",
"0.513803",
"0.513803",
"0.513803",
"0.513803",
"0.5... | 0.8659426 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, X1CD):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.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):
if not isinstance(Elif, X1CD):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Performs the dot product test of the operator | def QUjx(YKHO, H2v5=False):
r8hN = oyIN.random.rand(YKHO.__nm).astype('float32')
sYus = oyIN.zeros(YKHO.__nm, dtype='float32')
Csk6 = oyIN.random.rand(YKHO.__nd).astype('float32')
GzWn = oyIN.zeros(YKHO.__nd, dtype='float32')
if H2v5:
YKHO.forward(True, r8hN, GzWn)
YKHO.adjoint(True,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxL1(WKvO, LVAh):\n return sum(JaxB(seET.mul, WKvO, LVAh))",
"def gEh4():\n SjMt(BJ1H(lNLu(3.0, 2.0), lNLu(2.0, -1.0)), 4.0)",
"def DBae(YKHO, PJWX=False, yJiH=0.0001):\n\n def lbU9(H2v5, oF7G, tOwQ, yJiH, PJWX=False):\n if isinstance(tOwQ, oyIN.complex):\n tOwQ = oyIN.conj(tOwQ)... | [
"0.69024014",
"0.68140763",
"0.68031317",
"0.676828",
"0.67511",
"0.6713871",
"0.6648119",
"0.65855217",
"0.65703064",
"0.65469015",
"0.6541166",
"0.653501",
"0.6533239",
"0.6471148",
"0.64683616",
"0.6450868",
"0.6417883",
"0.64006025",
"0.63975275",
"0.6376887",
"0.63654643... | 0.63216424 | 22 |
Return True if number is Prime, returns False otherwise | def aaKp(mLGw):
if mLGw <= 0:
return 'Error: num must be a positive nonzero integer'
elif mLGw <= 3:
return mLGw > 1
elif mLGw % 2 == 0 or mLGw % 3 == 0:
return False
else:
G1Hx = 5
while G1Hx * G1Hx < mLGw:
if mLGw % G1Hx == 0 or mLGw % (G1Hx + 2) == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(FGW3: int) -> bool:\n for YRbF in range(2, int(FGW3 ** 0.5) + 1):\n if FGW3 % YRbF == 0:\n return False\n return True",
"def T1qg(FGW3):\n if FGW3 < 2:\n return False\n elif FGW3 == 2:\n return True\n elif FGW3 % 2 == 0:\n return False\n else:\n ... | [
"0.8324353",
"0.82894903",
"0.8287755",
"0.8254705",
"0.82238996",
"0.8218619",
"0.8216518",
"0.82014275",
"0.8184489",
"0.81208134",
"0.8108795",
"0.81040025",
"0.81014293",
"0.809502",
"0.8062484",
"0.80597156",
"0.80333364",
"0.8023087",
"0.80171406",
"0.8012948",
"0.80119... | 0.0 | -1 |
Returns the bytes of the newly created Lua precompiled script If is set, prepend a Lua header | def g75F(YKHO, tk5Y=False):
yvT9 = []
if tk5Y:
yvT9.append(b'\x1bLuaQ\x00\x01\x04\x08\x04\x08\x00')
yvT9.append(b'\x00' * 16)
yvT9.append(BlNT.pack('BBBB', YKHO.nb_upvalues, YKHO.nb_params, YKHO.is_vararg, YKHO.max_stacksize))
yvT9.append(BlNT.pack('<I', YKHO.nb_instr))
yvT9.append(YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mm82(YKHO):\n sdCG = '#include <stdio.h>\\n#include <stdlib.h>\\n#include <time.h>\\n#include \"../init_array_lib/init_dyn_array.h\"\\n#include \"../pips_lib/define_script.h\"\\n\\n\\nint main(int argc, const char* argv[])\\n{\\n srand(time(NULL));\\n '\n YKHO.append_text_to_file(str(sdCG))",
... | [
"0.5740971",
"0.56519836",
"0.5596711",
"0.5559799",
"0.54937595",
"0.5361915",
"0.5309566",
"0.5284",
"0.52791834",
"0.52038765",
"0.51887095",
"0.51740164",
"0.51268655",
"0.5124086",
"0.5108427",
"0.50826967",
"0.5069326",
"0.50397694",
"0.503007",
"0.5003297",
"0.50006205... | 0.0 | -1 |
Similar to funcy's walk_values, but does so recursively, including mapping f over lists. | def g2gC(eHNT, ukQo):
if hxss(ukQo):
return eHNT(juWY(g2gC(eHNT), ukQo))
elif Lm1b(ukQo):
return eHNT(list(map(g2gC(eHNT), ukQo)))
else:
return eHNT(ukQo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qn0p(eHNT, BWXx):\n if isinstance(BWXx, list):\n return map(lambda WKvO: qn0p(eHNT, WKvO), BWXx)\n elif isinstance(BWXx, dict):\n U5bT = {}\n for jGGf, hghQ in BWXx.items():\n H5ew = qn0p(eHNT, jGGf)\n BWXx = qn0p(eHNT, hghQ)\n U5bT[H5ew] = BWXx\n ... | [
"0.6835669",
"0.65501076",
"0.64315075",
"0.64061004",
"0.63632864",
"0.63422924",
"0.62596405",
"0.62184924",
"0.6192604",
"0.61345893",
"0.6108685",
"0.60270596",
"0.5974672",
"0.5957392",
"0.5901332",
"0.5897045",
"0.58449996",
"0.5798345",
"0.57810193",
"0.57624316",
"0.5... | 0.7711836 | 0 |
Get all paths that satisfy the predicate fn pred. First gets all paths and then filters them based on pred. | def dkVi(ukQo, nvEb, JlYP=(), Gtuc=None, y5F8=None):
iYAx = GzBZ(ukQo, prefix_path=JlYP, stop_at=Gtuc, stop_below=y5F8)
return list(filter(nvEb, iYAx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def neBz(YKHO, lgNN):\n return [Csk6 for Csk6 in YKHO.iter_tree if lgNN(Csk6)]",
"def filter(YKHO, FYKK: Callable[[Tuple[K, List[V]]], bool]) -> bDy6[AzJI[nMvt, x1iM[cAlv]]]:\n return (bTKY for bTKY in iter(YKHO) if FYKK(bTKY))",
"def filter(nvEb):\n\n def cIGw(YPaw):\n\n def etau(Mkmy=RVJO, WK... | [
"0.58912474",
"0.5614927",
"0.5588043",
"0.55599666",
"0.5515684",
"0.5437235",
"0.5294925",
"0.5270902",
"0.5248339",
"0.52460486",
"0.52391595",
"0.5229164",
"0.5229164",
"0.52200574",
"0.5179738",
"0.51675797",
"0.51408434",
"0.511593",
"0.5087934",
"0.5060589",
"0.5051039... | 0.766953 | 0 |
Verifies that emails used for registration do not already exist in the system. | def Bt7w(YKHO, ranT):
CBIr = mv1M.query.filter_by(email=ranT.data).first()
if CBIr:
if CBIr.email:
wk5E.logger.error('{} tried to register user with email {} but user already exists.'.format(CBIr.email, ranT.data))
else:
wk5E.logger.error('Anonymous user tried to register... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L__7(YKHO):\n Ozko = Gqqd.mainpage.MainPage(YKHO.driver)\n Ozko.click_sign_in_button()\n ptj3 = Gqqd.signinpage.SignInPage(YKHO.driver)\n ptj3.enter_create_account_email_addres('test@test.test')\n ptj3.click_create_account_button()\n YKHO.assertTrue(ptj3.check_if_account_create_error_is_visib... | [
"0.75320035",
"0.7509098",
"0.7423442",
"0.73514503",
"0.73245853",
"0.72490704",
"0.7067881",
"0.70219",
"0.7013615",
"0.69796586",
"0.6883644",
"0.687144",
"0.68452424",
"0.6785827",
"0.6784702",
"0.67555803",
"0.67275876",
"0.6706148",
"0.668442",
"0.6668196",
"0.665997",
... | 0.62377894 | 64 |
Used to verify that password meets security criteria. | def tg18(YKHO, DFgi):
if len(DFgi.data) < 8:
raise sUXu('Your password must be 8 or more characters')
qOSl = False
AQnw = False
for YRbF in DFgi.data:
if YRbF.isdigit():
qOSl = True
if YRbF.isupper():
AQnw = True
if not (qOSl or AQnw):
raise sU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNjs(YKHO, jTXt):\n return z8jj(YKHO.password_hash, jTXt)",
"def tWk5(YKHO, TBsA):\n if not YKHO.config.security_initialize:\n raise RuntimeError('First set a password')\n jTXt = qzFd(TBsA[cVFM])\n if jTXt != YKHO.config.security_password:\n raise RuntimeError('Wrong password')",
... | [
"0.8094068",
"0.8023478",
"0.79991645",
"0.7997635",
"0.79468477",
"0.7942166",
"0.7920561",
"0.79031956",
"0.78346103",
"0.78028333",
"0.7768781",
"0.76980144",
"0.7672169",
"0.7667544",
"0.766167",
"0.766167",
"0.766167",
"0.766167",
"0.766167",
"0.766167",
"0.766167",
"0... | 0.0 | -1 |
Verifies that emails used for registration do not already exist in the system. | def Bt7w(YKHO, ranT):
if mv1M.query.filter_by(email=ranT.data).first():
raise sUXu('An account with this email address already exists')
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L__7(YKHO):\n Ozko = Gqqd.mainpage.MainPage(YKHO.driver)\n Ozko.click_sign_in_button()\n ptj3 = Gqqd.signinpage.SignInPage(YKHO.driver)\n ptj3.enter_create_account_email_addres('test@test.test')\n ptj3.click_create_account_button()\n YKHO.assertTrue(ptj3.check_if_account_create_error_is_visib... | [
"0.75320035",
"0.7509098",
"0.7423442",
"0.73514503",
"0.73245853",
"0.72490704",
"0.7067881",
"0.70219",
"0.7013615",
"0.69796586",
"0.6883644",
"0.687144",
"0.68452424",
"0.6785827",
"0.6784702",
"0.67555803",
"0.67275876",
"0.6706148",
"0.668442",
"0.6668196",
"0.665997",
... | 0.62950325 | 55 |
Does the mathematical operation sigmoid of param x | def m1Hg(WKvO):
return 1 / (1 + r8hN.exp(-WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))",
"def m1Hg(WKvO):\n return ... | [
"0.89131176",
"0.89131176",
"0.8848284",
"0.8844675",
"0.88111484",
"0.88030547",
"0.88030547",
"0.8796431",
"0.879332",
"0.87928",
"0.8783767",
"0.87791777",
"0.8758823",
"0.8758823",
"0.8758823",
"0.8758823",
"0.8758823",
"0.8758823",
"0.87582564",
"0.8748229",
"0.87373173"... | 0.8975717 | 0 |
Calculate funtion Calculates activation for each neuron in the row | def hzm0(YKHO):
for HgE9 in YKHO.neurons.items():
HgE9.calculate() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xx6e(YKHO):\n WKvO = 0\n mC4V = YKHO.in_edges\n for D70y in mC4V:\n WKvO += D70y.source.activation * D70y.weight\n YKHO.activation = 1 / (1 + kLQb(-WKvO))",
"def YDYE(WKvO):\n return oyIN.maximum(0, WKvO)",
"def ECMu(EcVT):\n epBp = oyIN.sum(yzQ0 * WKvO + Fg_i)\n return epBp",
... | [
"0.7508421",
"0.7192541",
"0.6914692",
"0.6874679",
"0.6874679",
"0.68145347",
"0.6747684",
"0.67097825",
"0.6688922",
"0.6644365",
"0.6611161",
"0.66051877",
"0.66035444",
"0.65753466",
"0.6522521",
"0.6515267",
"0.6514489",
"0.6512711",
"0.65074676",
"0.6489272",
"0.6479981... | 0.6044962 | 64 |
Returns just filename with or without extension from the full path. | def jk9l(pmON, JJv9='/', PNvc='.', Fst3=False):
if Fst3 is True:
return str(pmON.split(JJv9)[-1].strip(PNvc))
else:
return str(pmON.split(JJv9)[-1].strip(PNvc).split('.')[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MjJ9(pmON: str) -> str:\n return Hy7s.path.basename(pmON)",
"def g_2H(pmON: str) -> str:\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]",
"def yFjF(pmON):\n return pmON.split('/')[-1]",
"def ouei(qaEx):\n lBIM = Hy7s.path.basename(qaEx)\n return Hy7s.path.splitext(lBIM)[1]",
"d... | [
"0.8166714",
"0.7787711",
"0.77349335",
"0.7718269",
"0.7702644",
"0.7674369",
"0.7673921",
"0.7666838",
"0.7651945",
"0.7629352",
"0.7610525",
"0.7599016",
"0.75293034",
"0.75200695",
"0.75085855",
"0.7477795",
"0.7470729",
"0.7462713",
"0.7410326",
"0.74050814",
"0.7403718"... | 0.66333425 | 100 |
return an iterator that will iterate over records in a given file. each record is returned as a list of lines | def gJ0n(MVHZ, J2us, apum):
c2Yh = htfs.get(MVHZ, AewJ)
c2Yh(MVHZ, J2us, apum) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DJc0(YKHO, AesY):\n for zFiD in open(AesY):\n yield zFiD",
"def aA6_(ytgA: TextIO) -> bDy6[str]:\n while (zFiD := ytgA.readline().strip()):\n yield zFiD",
"def aA6_(Ux0P):\n with nUeQ(Ux0P) as eHNT:\n for zFiD in eHNT:\n _6V1 = zFiD.strip()\n if _6V1:\n ... | [
"0.723143",
"0.6980368",
"0.6928537",
"0.68619937",
"0.68575156",
"0.68504083",
"0.6848712",
"0.6846169",
"0.6834265",
"0.6832111",
"0.6811981",
"0.68009275",
"0.67837363",
"0.67457247",
"0.66707927",
"0.6632928",
"0.6579308",
"0.6555346",
"0.65524304",
"0.6551592",
"0.654425... | 0.0 | -1 |
updates the public instance attribute updated_at with the current datetime. | def xkzz(YKHO):
YKHO.updated_at = qcWV.now()
S8SU.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d",
"def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d",
"def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d",
"def zB0d(YKHO, zB0d):\n YKHO._updated_at = zB0d",
"def zB0d(YKHO, zB0d):\n YKHO... | [
"0.8297064",
"0.8297064",
"0.8297064",
"0.7899627",
"0.7899627",
"0.7899627",
"0.7899627",
"0.7899627",
"0.7899627",
"0.7899627",
"0.7899627",
"0.7899627",
"0.7899627",
"0.7741202",
"0.7624038",
"0.7587348",
"0.74332345",
"0.74332345",
"0.74332345",
"0.74268264",
"0.74268264"... | 0.6132821 | 94 |
returns a dictionary containing all keys/values of __dict__ of the instance | def MNRr(YKHO):
Nsiy = YKHO.__dict__.copy()
Nsiy['__class__'] = YKHO.__class__.__name__
Nsiy['created_at'] = YKHO.created_at.isoformat()
Nsiy['updated_at'] = YKHO.updated_at.isoformat()
return Nsiy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _fYl(YKHO):\n return {G1Hx: Ty9i for G1Hx, Ty9i in vars(YKHO).items()}",
"def dict(Emd4):\n if Emd4._dict is None:\n Emd4._dict = {hkS8: getattr(Emd4, hkS8) for hkS8 in Emd4.keys()}\n return Emd4._dict",
"def _fYl(YKHO):\n return YKHO.__dict__",
"def azoT(YKHO):\n return dict(YKHO._... | [
"0.8071886",
"0.80406255",
"0.80328685",
"0.8028978",
"0.80134267",
"0.80134267",
"0.80134267",
"0.80134267",
"0.80134267",
"0.80134267",
"0.80134267",
"0.7946372",
"0.7856889",
"0.7856648",
"0.78149813",
"0.77974623",
"0.779462",
"0.77706295",
"0.7718883",
"0.7703186",
"0.77... | 0.0 | -1 |
Simulate a tetrahedron made out of 4 ebnt wire triangles. To transform a list of points, create a rotation_matrix (defined in transformations.py), | def GvUU(u54L=40.0, Mkmy=3.175 / 2):
Kf7l, nvjo = tXIo(u54L, Mkmy)
WotO = _pXO(Kf7l)
zDah = _pXO(nvjo)
RrSf = m7ij(nvjo.simplified().points, 2)
BA7i = [(WotO, zDah)]
for HEZd in RrSf:
t_of = _pXO(cj7Y(HEZd))
X8mO = MppY(t_of)
EBgd, HpuQ = t_of.points
XSoh = HpuQ -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jFx2():\n YEnM = e_di(1)\n AIM4(YEnM, _EOG)\n Z_wP()\n try:\n Zx2Y()\n except:\n if not iP7f[5]:\n Xbyz('la version actual de OpenGL no posee la funcion glutSolidTetrahedron')\n iP7f[5] = True\n h4Lj()\n sQU_()\n return YEnM",
"def Dj8A(YKHO):\n impo... | [
"0.6605458",
"0.636742",
"0.62838066",
"0.6187469",
"0.6167494",
"0.6153674",
"0.613946",
"0.6077823",
"0.6048186",
"0.604122",
"0.59904253",
"0.59671134",
"0.59339255",
"0.587405",
"0.5851065",
"0.57919925",
"0.5787562",
"0.5779007",
"0.5775938",
"0.5772443",
"0.5737264",
... | 0.63756156 | 1 |
returns a generator of all subsequences of length n in the list, in order. | def m7ij(Q6uT, exwG):
d6pt = 0
while d6pt + exwG <= len(Q6uT):
yield Q6uT[d6pt:d6pt + exwG]
d6pt = d6pt + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z0az(Q6uT, exwG):\n while Q6uT:\n yield Q6uT[:exwG]\n Q6uT = Q6uT[exwG:]",
"def Y8pi(aWuw: Sequence[T], exwG: int) -> x1iM[Kt_s]:\n for YRbF in range(len(aWuw) - (exwG - 1)):\n yield aWuw[YRbF:YRbF + exwG]",
"def Z0az(Q6uT, exwG):\n while Q6uT:\n yield Q6uT[:exwG]\n ... | [
"0.7532438",
"0.747377",
"0.7448144",
"0.7033229",
"0.70130324",
"0.68090546",
"0.6761082",
"0.6734165",
"0.6728467",
"0.6728467",
"0.67268085",
"0.6724893",
"0.6708959",
"0.6707084",
"0.6704036",
"0.6702462",
"0.6702462",
"0.670244",
"0.66995776",
"0.66995776",
"0.66995776",... | 0.7431545 | 3 |
Splitting dataframe into training and test set for selecting the model | def Ulm3(bOBl):
bOBl = bOBl.dropna()
d6pt = 100
XxFT = bOBl.iloc[:d6pt]
t4zr = bOBl.iloc[d6pt:]
return (XxFT, t4zr, bOBl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHtP(jQ3Z):\n jcFe = int(len(jQ3Z) * 0.67)\n NI2E = int(len(jQ3Z) - jcFe)\n EvQg, QOe9 = (jQ3Z[0:jcFe], jQ3Z[jcFe:len(jQ3Z)])\n return (EvQg, QOe9)",
"def Qb89(jQ3Z: pd.DataFrame):\n zNig = int(jQ3Z.shape[0] * 0.8)\n bS0K = oyIN.random.choice(jQ3Z.index, zNig, replace=False)\n XxFT = jQ3... | [
"0.7638615",
"0.7587735",
"0.7582882",
"0.74526",
"0.7408693",
"0.7361765",
"0.7346422",
"0.7338608",
"0.73139936",
"0.72734904",
"0.72582716",
"0.71744806",
"0.71277773",
"0.7011699",
"0.69551307",
"0.6950113",
"0.69354945",
"0.6922527",
"0.6918691",
"0.6875654",
"0.68753266... | 0.7225979 | 11 |
Computes the accuracy on the given batch of predictions | def QjvS(Crrw, N6Z1, _mSQ, mWFP=None):
with ZylS.name_scope(mWFP, 'batch_accuracy', [Crrw, N6Z1, _mSQ]):
A9Bj = ZylS.reduce_mean(_mSQ)
Jynq = ZylS.reduce_mean(ZylS.divide(ZylS.to_float(ZylS.equal(Crrw, N6Z1)) * _mSQ, ZylS.where(ZylS.not_equal(A9Bj, 0), A9Bj, 1)), name='value')
return Jynq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(N6Z1, x6A0):\n return vjyh",
"def vjyh(N6Z1, x6A0):\n cDK5 = x6A0.shape[0]\n bGrB, aMgO = N6Z1.max(dim=1)\n vjyh = (aMgO == x6A0).sum().item() / cDK5\n return vjyh",
"def vjyh(nvEb, pan_):\n ywwl = nvEb.shape[0]\n return (nvEb == pan_).sum() * 1.0 / ywwl",
"def vjyh(N6Z1, s8RJ):... | [
"0.79902244",
"0.7934165",
"0.7865013",
"0.7844088",
"0.7807453",
"0.7767435",
"0.7745531",
"0.77343833",
"0.77283275",
"0.7708016",
"0.7708016",
"0.76890004",
"0.7659078",
"0.7653637",
"0.7622236",
"0.7609113",
"0.7607177",
"0.7551928",
"0.7536903",
"0.7501754",
"0.7496515",... | 0.7356364 | 35 |
Return JSON representation of a file | def IZ3T(UxL2):
YEnM = r845.dumps(UxL2)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SJOK(nUeQ):\n with open(nUeQ) as KAfx:\n return qQXR.load(KAfx)",
"def dftL(YKHO, IznC):\n return {}",
"def c3ht(Ux0P):\n Aofo = qQXR.load(open(Ux0P, 'r'))\n return Aofo",
"def _got(RRlC):\n return qQXR.dumps(RRlC.split())",
"def zxpu(YKHO):\n with open(YKHO.path, mode='r', enc... | [
"0.7441481",
"0.7413895",
"0.7365258",
"0.7362204",
"0.71942586",
"0.7185419",
"0.7154442",
"0.7080278",
"0.69222635",
"0.69013035",
"0.67946815",
"0.6783969",
"0.67625594",
"0.67625594",
"0.6758317",
"0.67575884",
"0.6747577",
"0.67304564",
"0.6716846",
"0.66916776",
"0.6667... | 0.0 | -1 |
Sets the starting player | def qyL2(YKHO, oyg0):
if not oyg0:
return tuKI.choice(YKHO.players)
return oyg0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MEiE(YKHO):\n if YKHO.player2.won_previous:\n YKHO.current_player = YKHO.player2\n else:\n YKHO.current_player = YKHO.player1",
"def J2qG(YKHO):\n YKHO.current_player = next(YKHO.get_player_order_fn())",
"def IH60(YKHO, XWqO):\n YKHO.player = XWqO",
"def I6dB(YKHO):\n if YKHO... | [
"0.75605375",
"0.7314304",
"0.72100085",
"0.70760864",
"0.70383465",
"0.69941014",
"0.69805706",
"0.68357134",
"0.68007314",
"0.67199373",
"0.6690114",
"0.661817",
"0.65881526",
"0.655607",
"0.6553688",
"0.65519774",
"0.6541512",
"0.65349615",
"0.6519828",
"0.64760214",
"0.64... | 0.0 | -1 |
Returns the percentage of uncertainty reduction by the stimulus prediction. | def gzc0(hNUK, _3T4, AcYW, epBp, jmzt):
return CQAW(__Ab(hNUK, _3T4, AcYW, jmzt, epBp)) / E5ri() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aVPQ(YKHO) -> float:\n return float(oyIN.mean(oyIN.abs((YKHO.true - YKHO.predicted) / YKHO.true)) * 100)",
"def so52(YKHO) -> float:\n return float(oyIN.sqrt(oyIN.median(oyIN.square(YKHO._percentage_error()))) * 100.0)",
"def u4A4(YKHO, t4zr, vBSe):\n gXXc = 0\n for YRbF in range(len(t4zr)):\n ... | [
"0.69722545",
"0.6931428",
"0.6875434",
"0.68467116",
"0.6761176",
"0.6761176",
"0.6761015",
"0.6646365",
"0.6573585",
"0.65165967",
"0.6513019",
"0.650552",
"0.6488078",
"0.6484404",
"0.6466145",
"0.64660054",
"0.64485806",
"0.6439387",
"0.64278936",
"0.6405042",
"0.63699096... | 0.0 | -1 |
Returns the next element in the iteration without advancing the iterator. | def T7C_(YKHO):
return YKHO.next_val | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDAb(YKHO):\n return next(YKHO.iterator)",
"def UDAb(YKHO):\n return next(YKHO.iter)",
"def UDAb(YKHO):\n if YKHO.i >= len(YKHO.l):\n YKHO.i = 0\n raise StopIteration\n Aofo = YKHO.l[YKHO.i]\n YKHO.i += 1\n return Aofo",
"def UDAb(YKHO):\n if not YKHO._current_node:\n ... | [
"0.794775",
"0.7844546",
"0.77520233",
"0.77018774",
"0.7683268",
"0.76663107",
"0.76579",
"0.76458085",
"0.7600991",
"0.7565993",
"0.7555897",
"0.7524951",
"0.75006497",
"0.75006497",
"0.74555266",
"0.741625",
"0.7375549",
"0.73719597",
"0.7362884",
"0.7346874",
"0.7346874",... | 0.0 | -1 |
checks if for all items of an iterable sequence (list, tuple, etc.) a least common dtype exists to which all items can be safely be casted. | def A1f4(F67R, LgiT):
if seET.length_hint(F67R) > 1 or (seET.length_hint(F67R) == 1 and (not isinstance(F67R, (str, bytes)))) or oyIN.ndim(F67R) != 0:
return None
yDqo = oyIN.dtype(F67R.__class__)
if yDqo.name == 'object' or 'str' in yDqo.name or ('bytes' in yDqo.name and len(F67R) > 1):
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sA5Z(wEHg):\n for YRbF in wEHg:\n if not wEHg.dtypes[1] == wEHg.dtypes[YRbF]:\n raise ValueError('Types do not match')",
"def DDqk(DumB):\n return isinstance(DumB, (list, tuple, set, oyIN.ndarray))",
"def Yj0G(YKHO):\n if YKHO.dtype not in JBHC:\n raise ValueError(\"Type '... | [
"0.6362347",
"0.6343529",
"0.62670493",
"0.61364025",
"0.604948",
"0.60003525",
"0.5951121",
"0.59251696",
"0.59064656",
"0.58969873",
"0.5886752",
"0.5865586",
"0.5847587",
"0.5837936",
"0.58233356",
"0.58031726",
"0.57854974",
"0.5770386",
"0.5718282",
"0.57134825",
"0.5699... | 0.6867192 | 0 |
Creates a dataset or group for setlike objects. | def TQlT(nqDb, H_bB, mWFP, **B2fa):
if not nqDb:
return (H_bB.create_dataset(mWFP, data=list(nqDb), shape=None, dtype=int, **xlWI(B2fa)), ())
we9U = iter(nqDb)
F67R = next(we9U)
a0Iv = A1f4(F67R, we9U)
return DJ2a(nqDb, H_bB, mWFP, list_len=len(nqDb), item_dtype=a0Iv, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CW30(QMpu):\n eHNT = QMpu[3]\n C4gk = eHNT.create_group('test')\n tgCD = C4gk.require_dataset('foo', (10, 3), 'f')\n assert isinstance(tgCD, x3i3)\n assert tgCD.shape == (10, 3)\n wGy3 = C4gk.require_dataset('bar', data=(3, 10))\n lUiH = C4gk.require_dataset('bar', data=(4, 11))\n asser... | [
"0.7293513",
"0.6944663",
"0.68141973",
"0.67504334",
"0.6663288",
"0.66492665",
"0.6386901",
"0.6369093",
"0.6327021",
"0.62965447",
"0.6215188",
"0.6212039",
"0.6188282",
"0.618563",
"0.6178783",
"0.60782236",
"0.6078073",
"0.60116506",
"0.5993186",
"0.5990595",
"0.5959553"... | 0.78888154 | 0 |
Test that concatenation incompatible BDFHeaders raises an error. | def M2OV(YKHO):
WBPg = XKxL.from_path(eYaw.bdf_2048)
wrqt = XKxL.from_path(eYaw.bdf_256)
with trZe.raises(ValueError):
WBPg.concatenate(wrqt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EHM7(YKHO):\n WBPg = XKxL.from_path(eYaw.bdf_256)\n wrqt = XKxL.from_path(eYaw.bdf_256)\n assert WBPg.nb_data_records == 60\n assert WBPg.data_duration == 1\n assert wrqt.nb_data_records == 60\n assert wrqt.data_duration == 1\n assert (WBPg.nb_channels + 1) * 256 == WBPg.bytes_in_header\n ... | [
"0.6942362",
"0.6769108",
"0.66527015",
"0.6559913",
"0.65270996",
"0.6523384",
"0.64484555",
"0.64477885",
"0.6425812",
"0.6408705",
"0.6387548",
"0.6293834",
"0.6290951",
"0.6230164",
"0.6216027",
"0.6194131",
"0.6190126",
"0.61479235",
"0.6133429",
"0.61012334",
"0.6099877... | 0.8221753 | 0 |
Returns a shifted version of this waveform. | def I2d3(YKHO, qRj_):
return l2i4(YKHO.xvec + qRj_, YKHO.yvec, YKHO.xtol, order=YKHO.order, ext=YKHO.ext) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DkWr(YKHO):\n return YKHO._shift",
"def Dooq(YKHO, DkWr):\n inVT = None if YKHO.location is None else YKHO.location + DkWr\n aC0l = None if YKHO.reference is None else YKHO.reference + DkWr\n return YKHO.copy_with_changes(location=inVT, reference=aC0l, derived_from=YKHO)",
"def Dooq(YKHO, I2d3)... | [
"0.70573044",
"0.68794996",
"0.67823905",
"0.6607027",
"0.6580733",
"0.6546684",
"0.65308696",
"0.6385998",
"0.63854915",
"0.63047343",
"0.6260316",
"0.62372833",
"0.620768",
"0.6188425",
"0.6046912",
"0.5993672",
"0.59832287",
"0.5950894",
"0.5915576",
"0.5869959",
"0.586502... | 0.7225545 | 0 |
Returns the X value at which this waveform crosses the given threshold. | def w8Ry(YKHO, gwAu, yKcO=None, JCyR=None, exwG=1, D70y='both'):
XMPU = YKHO.get_all_crossings(gwAu, start=yKcO, stop=JCyR, edge=D70y)
if len(XMPU) < exwG:
return None
return XMPU[exwG - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AA31(EcVT, gwAu):\n XYLA = (oyIN.abs(EcVT) > gwAu).astype('int')\n vV8Y = oyIN.sign(EcVT) * (oyIN.abs(EcVT) - gwAu) * XYLA\n return vV8Y",
"def gwAu(YKHO) -> qe4Y.Input[float]:\n return qe4Y.get(YKHO, 'threshold')",
"def gwAu(YKHO) -> qe4Y.Input[float]:\n return qe4Y.get(YKHO, 'threshold')",... | [
"0.63141197",
"0.6267766",
"0.6267766",
"0.6267766",
"0.6267766",
"0.6267766",
"0.6052995",
"0.6004842",
"0.5958804",
"0.59584147",
"0.59584147",
"0.594345",
"0.5942724",
"0.58972937",
"0.58845794",
"0.5850298",
"0.58501846",
"0.58430636",
"0.5794639",
"0.5761636",
"0.5761636... | 0.6182369 | 6 |
Returns the X and Y arrays representing this waveform. | def oMn8(YKHO, BQGg=None, bYzl=None):
S0iV = 0 if BQGg is None else oyIN.searchsorted(YKHO.xvec, [BQGg])[0]
p6YD = len(YKHO.xvec) if bYzl is None else oyIN.searchsorted(YKHO.xvec, [bYzl])[0]
if p6YD < len(YKHO.xvec) and YKHO.xvec[p6YD] == bYzl:
p6YD += 1
orE9 = YKHO.xvec[S0iV:p6YD]
if BQGg i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qw7D(YKHO):\n return oyIN.array([YKHO.w, YKHO.x, YKHO.y, YKHO.z])",
"def dD7q(YKHO):\n return (YKHO._X, YKHO._y)",
"def oyIN(YKHO):\n return oyIN.array([YKHO.x, YKHO.y])",
"def yLtf(YKHO):\n return (YKHO.X_train, YKHO.X_test, YKHO.y_train, YKHO.y_test)",
"def LTIa(YKHO):\n return oyIN.vs... | [
"0.7363212",
"0.7266499",
"0.72189385",
"0.69336814",
"0.6890735",
"0.6877929",
"0.68748236",
"0.6873088",
"0.6859353",
"0.6856248",
"0.6796392",
"0.6784848",
"0.67333937",
"0.67246",
"0.67090386",
"0.6689536",
"0.66541594",
"0.6628827",
"0.653957",
"0.6525675",
"0.65222037",... | 0.0 | -1 |
Select function takes a row as a list and a column name and returns the date in that column. | def ohGs(YKHO, usx6: List[Row], iVRZ: DateColumn) -> Qrp8:
YdD0: x1iM[Qrp8] = []
for rdlD in usx6:
ThUb = rdlD.values[iVRZ.name]
if isinstance(ThUb, Qrp8):
YdD0.append(ThUb)
return YdD0[0] if YdD0 else Qrp8(-1, -1, -1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EfUA(vZqz, r_x0):\n return vZqz[r_x0]",
"def N9_f(fvDH):\n if callable(fvDH):\n return fvDH\n\n def FYKK(C3ST, YdD0):\n return C3ST[fvDH + ':dates'].loc[YdD0]\n return FYKK",
"def slWZ():\n ycBG = rLdf.read_sql_query(uz1h['date'], Ykhp())\n return ycBG.values",
"def ZdhW(r... | [
"0.64095426",
"0.5910437",
"0.5812094",
"0.577219",
"0.57420665",
"0.56979394",
"0.5663",
"0.557336",
"0.54978937",
"0.54614013",
"0.5435102",
"0.54271084",
"0.5343865",
"0.5339443",
"0.5339443",
"0.53258955",
"0.53258955",
"0.5315905",
"0.52771246",
"0.5244023",
"0.52343035"... | 0.72989994 | 0 |
Takes a row and a column and returns a list of rows from the full set of rows that contain the same value under the given column as the given row. | def kJ0s(YKHO, usx6: List[Row], iVRZ: Column) -> x1iM[d3C6]:
CIH_: x1iM[d3C6] = []
if not usx6:
return CIH_
ThUb = usx6[0].values[iVRZ.name]
for idYx in YKHO.table_data:
dV6n = idYx.values[iVRZ.name]
if dV6n is None or not isinstance(dV6n, type(ThUb)):
continue
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AFzI(fvDH, rdlD):\n return fvDH == iVRZ",
"def k9gG(SppC, rdlD):\n return (SppC == rdlD).all(axis=1).any()",
"def tXkx(rdlD, ZfUD):\n dixj = [ZfUD]\n for YRbF in range(9):\n if ZfUD in rdlD[YRbF]:\n dixj.append(YRbF)\n return dixj",
"def SgGF(fvDH, ev_Q):\n return ev_Q... | [
"0.62868875",
"0.62431186",
"0.62410134",
"0.61804324",
"0.6039535",
"0.6029036",
"0.60096765",
"0.5946368",
"0.5907833",
"0.5806139",
"0.5640903",
"0.5634834",
"0.5626018",
"0.5624631",
"0.5616684",
"0.5552495",
"0.55122364",
"0.5482484",
"0.5468303",
"0.5461566",
"0.5460028... | 0.6885463 | 0 |
Takes an expression that evaluates to a single row, and returns the row that occurs before the input row in the original set of rows. If the input row happens to be the top row, we will return an empty list. | def AOBR(YKHO, usx6: List[Row]) -> x1iM[d3C6]:
if not usx6:
return []
KIFf = YKHO._get_row_index(usx6[0])
if KIFf > 0:
return [YKHO.table_data[KIFf - 1]]
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tOjp(iLaZ, A314):\n NDyv.assert_is_integer(A314)\n NDyv.assert_is_geq(A314, 0)\n NDyv.assert_is_less_than(A314, len(iLaZ.index))\n Q4sn = [iLaZ[Z9rn].values[A314] for Z9rn in TaSU if iLaZ[Z9rn].values[A314] != '']\n fgPE = len(Q4sn)\n if fgPE == 0:\n return XTiz.array([], dtype=int)\n ... | [
"0.60980666",
"0.5759736",
"0.5662903",
"0.555074",
"0.55055183",
"0.5382356",
"0.5318377",
"0.5304695",
"0.5299359",
"0.5293577",
"0.5258907",
"0.525828",
"0.5255998",
"0.5253842",
"0.5205088",
"0.51679647",
"0.5138992",
"0.5135898",
"0.51252824",
"0.5119567",
"0.5104057",
... | 0.6535429 | 0 |
Takes an expression that evaluates to a single row, and returns the row that occurs after the input row in the original set of rows. If the input row happens to be the last row, we will return an empty list. | def next(YKHO, usx6: List[Row]) -> x1iM[d3C6]:
if not usx6:
return []
KIFf = YKHO._get_row_index(usx6[0])
if KIFf < len(YKHO.table_data) - 1 and KIFf != -1:
return [YKHO.table_data[KIFf + 1]]
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XVAW(YKHO, usx6: List[Row]) -> x1iM[d3C6]:\n if not usx6:\n bo34.warning('Trying to get last row from an empty list')\n return []\n return [usx6[-1]]",
"def AOBR(YKHO, usx6: List[Row]) -> x1iM[d3C6]:\n if not usx6:\n return []\n KIFf = YKHO._get_row_index(usx6[0])\n if KIF... | [
"0.6032308",
"0.5938329",
"0.54547274",
"0.53779274",
"0.5222563",
"0.5210325",
"0.5177654",
"0.51763713",
"0.51762176",
"0.51662195",
"0.51235795",
"0.50886416",
"0.5066228",
"0.5066197",
"0.5050721",
"0.50220096",
"0.50119585",
"0.49934322",
"0.49829265",
"0.49711132",
"0.4... | 0.5954463 | 1 |
Takes a list of rows and a column and returns a list containing a single row (dict from columns to cells) that has the minimum numerical value in the given column. We return a list instead of a single dict to be consistent with the return type of ``select`` and ``all_rows``. | def WHwV(YKHO, usx6: List[Row], iVRZ: ComparableColumn) -> x1iM[d3C6]:
if not usx6:
return []
xCI1 = [(rdlD.values[iVRZ.name], rdlD) for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]
if not xCI1:
return []
return [sorted(xCI1, key=lambda WKvO: WKvO[0])[0][1]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pJqc(YKHO, usx6: List[Row], iVRZ: NumberColumn) -> KUXB:\n mQEc = [rdlD.values[iVRZ.name] for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]\n if not mQEc:\n return 0.0\n if not all([isinstance(BWXx, KUXB) for BWXx in mQEc]):\n raise z1P8(f'Invalid values for number selection functi... | [
"0.75653225",
"0.7539637",
"0.6910616",
"0.6830543",
"0.66967833",
"0.6549738",
"0.64496356",
"0.6391014",
"0.6244352",
"0.6130919",
"0.6083585",
"0.58972543",
"0.58682424",
"0.5853501",
"0.5829412",
"0.5822962",
"0.5805565",
"0.5800395",
"0.57847565",
"0.577833",
"0.57663935... | 0.8007047 | 0 |
Takes a list of rows and a column and returns the min of the values under that column in those rows. | def mFQo(YKHO, usx6: List[Row], iVRZ: DateColumn) -> Qrp8:
mQEc = [rdlD.values[iVRZ.name] for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]
if not mQEc:
return Qrp8(-1, -1, -1)
if not all([isinstance(BWXx, Qrp8) for BWXx in mQEc]):
raise z1P8(f'Invalid values for date selection functio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHwV(YKHO, usx6: List[Row], iVRZ: ComparableColumn) -> x1iM[d3C6]:\n if not usx6:\n return []\n xCI1 = [(rdlD.values[iVRZ.name], rdlD) for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]\n if not xCI1:\n return []\n return [sorted(xCI1, key=lambda WKvO: WKvO[0])[0][1]]",
"def mi... | [
"0.7523535",
"0.74018383",
"0.7087411",
"0.6939389",
"0.67967975",
"0.6786008",
"0.67342144",
"0.66141933",
"0.65818274",
"0.65026927",
"0.648818",
"0.6451681",
"0.64404196",
"0.636798",
"0.63540655",
"0.62884",
"0.6276553",
"0.6243605",
"0.62028164",
"0.61936027",
"0.6181301... | 0.629917 | 15 |
Takes a list of rows and a column and returns the min of the values under that column in those rows. | def pJqc(YKHO, usx6: List[Row], iVRZ: NumberColumn) -> KUXB:
mQEc = [rdlD.values[iVRZ.name] for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]
if not mQEc:
return 0.0
if not all([isinstance(BWXx, KUXB) for BWXx in mQEc]):
raise z1P8(f'Invalid values for number selection function: {mQEc}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHwV(YKHO, usx6: List[Row], iVRZ: ComparableColumn) -> x1iM[d3C6]:\n if not usx6:\n return []\n xCI1 = [(rdlD.values[iVRZ.name], rdlD) for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]\n if not xCI1:\n return []\n return [sorted(xCI1, key=lambda WKvO: WKvO[0])[0][1]]",
"def mi... | [
"0.75244665",
"0.7399412",
"0.70864445",
"0.6938738",
"0.6783435",
"0.6732415",
"0.6612353",
"0.657953",
"0.65019745",
"0.6487431",
"0.64490616",
"0.6439465",
"0.63666445",
"0.6352567",
"0.6297611",
"0.62861377",
"0.6275725",
"0.624219",
"0.6201092",
"0.61909586",
"0.6179357"... | 0.679573 | 4 |
Draws All Buttons to GUI | def xotw():
fLMP = a9eO.Rect(486, 651, 75, 30)
Xgvr = a9eO.Rect(485, 650, 77, 32)
gmsR = meyj.render('Reset', True, FeLa)
global RESET_BTN
Ki_e = fLMP
xRMw = a9eO.Rect(401, 651, 75, 30)
ba1N = a9eO.Rect(400, 650, 77, 32)
h8jf = meyj.render('Check', True, FeLa)
global CHECK_BTN
a7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xotw(YKHO):\n for oD_N in YKHO.playing_buttons:\n oD_N.draw(YKHO.screen)",
"def ZFxs(YKHO):\n for oD_N in YKHO.buttons:\n WKvO = oD_N.starting_x\n LVAh = oD_N.starting_y\n YKHO.screen.fill(oD_N.color, ((WKvO, LVAh), (oD_N.width, oD_N.height)))",
"def _8Bk(YKHO):\n YKHO.... | [
"0.8148419",
"0.8043647",
"0.7862937",
"0.75703615",
"0.7406315",
"0.73479193",
"0.7254064",
"0.7142009",
"0.70529723",
"0.69970584",
"0.6992408",
"0.696211",
"0.6854136",
"0.68483263",
"0.681257",
"0.68122077",
"0.6778881",
"0.67738396",
"0.6761473",
"0.67216533",
"0.6712798... | 0.6459926 | 35 |
Returns the node with the minimum distance value that has not yet been added | def Tm2h(Ayfi, wS9K, RUYy):
vELP = HwRy.maxsize
ym97 = None
for Iuo4 in RUYy.values():
if Ayfi[Iuo4.id] < vELP and (not wS9K[Iuo4.id]):
vELP = Ayfi[Iuo4.id]
ym97 = Iuo4
return ym97 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcNI(YKHO):\n return min(YKHO.nodes, key=int)",
"def Jzic(YKHO, d66W, TaUL):\n _vST = None\n for Q6kx in d66W:\n if TaUL[Q6kx] >= 0:\n if _vST == None or TaUL[_vST] > TaUL[Q6kx]:\n _vST = Q6kx\n if _vST == -1:\n return None\n else:\n return _vST",... | [
"0.78858924",
"0.787231",
"0.7753907",
"0.7746355",
"0.7600601",
"0.74848473",
"0.74233663",
"0.73584545",
"0.7117518",
"0.70708716",
"0.70418245",
"0.7010514",
"0.69857085",
"0.6977521",
"0.6963034",
"0.69528985",
"0.6935069",
"0.6933698",
"0.6920054",
"0.6915494",
"0.689716... | 0.8087776 | 0 |
Given an index return an example from the position. | def OP2O(YKHO, ZfUD: int) -> cuzp[str, ht2j.Tensor]:
return {'inputs': YKHO.inputs[ZfUD], 'targets': YKHO.targets[ZfUD]} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kTCt(YKHO, d6pt, xlLU=None):\n if d6pt is None:\n xlLU = jrZe.ensure_rng(xlLU)\n d6pt = xlLU.randint(0, YKHO.n_samples)\n if d6pt < YKHO.n_positives:\n mvm2 = YKHO.get_positive(d6pt, rng=xlLU)\n else:\n d6pt = d6pt - YKHO.n_positives\n mvm2 = YKHO.get_negative(d6pt, ... | [
"0.687162",
"0.68613625",
"0.6797727",
"0.6635945",
"0.66340935",
"0.66258556",
"0.6469114",
"0.6392246",
"0.6353309",
"0.63301975",
"0.6330024",
"0.6317322",
"0.63113004",
"0.629802",
"0.6282028",
"0.62789893",
"0.6267358",
"0.616299",
"0.6149191",
"0.61026996",
"0.6092401",... | 0.0 | -1 |
Calculate the kinetic friction energy accumulation in W per m^2 | def eghY(YKHO, GD_A=None, cU0b=None):
euyF('calculating e_a,kin')
VTcs = oyIN.multiply(YKHO.sun.press.sum(1), YKHO.rel_vel)
YKHO.sun.e_akin = oyIN.absolute(oyIN.divide(oyIN.multiply(VTcs, YKHO.sun.overroll_t_incr), YKHO.sun.no_overroll_t)) / 1000
YKHO.planet.e_akin = oyIN.absolute(oyIN.divide(oyIN.multi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sQTE(YKHO):\n YKHO.ked_WFI = oyIN.zeros((YKHO.grid.Nelem, 1))\n if YKHO.m == 0:\n if YKHO.pol == 1:\n Yc3M = oyIN.floor(YKHO.N / 2)\n kTwQ = YKHO.N / 2 - Yc3M\n else:\n Yc3M = oyIN.floor(YKHO.N)\n kTwQ = YKHO.N - Yc3M\n elif YKHO.pol == 1:\n ... | [
"0.7126182",
"0.7104277",
"0.7098813",
"0.6898806",
"0.6850775",
"0.6695181",
"0.6694417",
"0.6630467",
"0.66192275",
"0.65845263",
"0.6557857",
"0.6498804",
"0.648682",
"0.63695234",
"0.6365874",
"0.6348018",
"0.6293771",
"0.6192064",
"0.6157473",
"0.61543435",
"0.6140866",
... | 0.0 | -1 |
Function to create the head of an HTML page. | def uJW4(leAC='Bibliography', JBZA=''):
kzJC = ''.join(['<p class="col-head__intro">', JBZA, '</p><!-- /.intro -->']) if len(JBZA) > 0 else JBZA
return ''.join(['<!DOCTYPE html>\n<!--[if lte IE 8 ]>\n<html lang="en" class="no-js oldie">\n<![endif]-->\n<!--[if IE 9 ]>\n<html lang="en" class="no-js ie9">\n<![endi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aISF(oykL, leAC):\n A97Q = '<!DOCTYPE html>\\n<html>\\n'\n sdCG = '<head>\\n<title>' + leAC + '\\n</title>' + oykL + '</head>\\n'\n WBPg = A97Q + sdCG + '<body>\\n<h1>' + leAC + '\\n</h1>\\n<hr/>\\n'\n return WBPg",
"def L4Ts(YKHO) -> str:\n YKHO.html_doc = YKHO.html_doc + '<head>'\n return... | [
"0.7782793",
"0.7599929",
"0.7026214",
"0.6854899",
"0.6698826",
"0.66224366",
"0.66171515",
"0.6499955",
"0.6458969",
"0.64198273",
"0.6388665",
"0.63801056",
"0.6240883",
"0.6218867",
"0.6156001",
"0.61453176",
"0.6141499",
"0.6121602",
"0.6094304",
"0.60518056",
"0.6040031... | 0.5776175 | 33 |
Get posts that are visible to the current user | def NMoC(YKHO):
uJjO = Zul5()
CBIr = BlJI(uJjO)
qIxc = H_f6.parse_args()
Wkif = qIxc.get('to_id', None)
if Wkif:
return (VWd9(CBIr, Wkif), 200)
hBzX = qIxc.get('from_id', None)
return (zUv6(CBIr, hBzX), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ecoo(CBIr):\n h_vp = T97t.objects.filter(author=CBIr)\n n52x = T97t.objects.filter(circles=LnGQ)\n awlI = T97t.objects.filter(circles__owner=CBIr.pk)\n nRbd = T97t.objects.filter(circles__members=CBIr.pk)\n return h_vp | n52x | awlI | nRbd",
"def k66M(YKHO):\n return T97t.objects.filter(use... | [
"0.81670207",
"0.7655564",
"0.67592925",
"0.6730649",
"0.6661472",
"0.6491123",
"0.62494636",
"0.6184312",
"0.6151358",
"0.61494964",
"0.61494964",
"0.6137622",
"0.61323327",
"0.6113242",
"0.60920924",
"0.60774386",
"0.60637724",
"0.6035682",
"0.599383",
"0.5980113",
"0.59709... | 0.0 | -1 |
boxes is classified as each class | def lIj3(BbZT, jcH2, Uzuy):
_mOF = BbZT['boxs']
cCrA = BbZT['scores']
AXWJ = oyIN.where(cCrA >= jcH2)[0]
if len(AXWJ) == 0:
return (None, None)
_mOF = BbZT['boxs'][AXWJ]
cCrA = cCrA[AXWJ]
A07C = BbZT['ids'][AXWJ]
oGem = BbZT['masks'][AXWJ]
o4D3 = _mOF[:, 0]
si3g = _mOF[:,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xccD(YKHO, oUSw, cCrA):\n DjQG = [[] for bGrB in range(YKHO.num_classes)]\n for V8Gh in range(1, YKHO.num_classes):\n if YKHO.top_class_only:\n iwjd = oyIN.argmax(cCrA, axis=1) == V8Gh\n else:\n iwjd = cCrA[:, V8Gh] > YKHO.class_detection_thresh\n MXxk = oyIN.wh... | [
"0.6748143",
"0.6706603",
"0.65761703",
"0.6505872",
"0.64785993",
"0.6463101",
"0.6340289",
"0.62898487",
"0.62246555",
"0.6217917",
"0.621656",
"0.621656",
"0.621656",
"0.6201196",
"0.6196101",
"0.6184682",
"0.61672515",
"0.6158482",
"0.6108624",
"0.6106724",
"0.6099241",
... | 0.0 | -1 |
boxes is classified as each class | def Wtet(j7gv, Uzuy):
_mOF, cCrA, oGem, Crrw = ([], [], [], [])
for YEnM in j7gv:
_mOF.append(YEnM['box'])
cCrA.append(YEnM['score'])
_mOF = oyIN.asarray(_mOF)
cCrA = oyIN.asarray(cCrA)
o4D3 = _mOF[:, 0]
si3g = _mOF[:, 1]
ajwV = _mOF[:, 2]
skBL = _mOF[:, 3]
ILBk = (aj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xccD(YKHO, oUSw, cCrA):\n DjQG = [[] for bGrB in range(YKHO.num_classes)]\n for V8Gh in range(1, YKHO.num_classes):\n if YKHO.top_class_only:\n iwjd = oyIN.argmax(cCrA, axis=1) == V8Gh\n else:\n iwjd = cCrA[:, V8Gh] > YKHO.class_detection_thresh\n MXxk = oyIN.wh... | [
"0.6746694",
"0.67042625",
"0.6574946",
"0.650384",
"0.6474119",
"0.6462304",
"0.6338391",
"0.62925005",
"0.6223383",
"0.6216839",
"0.6216839",
"0.6216839",
"0.6216638",
"0.6197468",
"0.6193416",
"0.6181465",
"0.6162474",
"0.61557955",
"0.61059815",
"0.6103387",
"0.6097034",
... | 0.0 | -1 |
Draw a line on the axes according to configuration. lcfg Line config ptree node. The ptree node should have a form of line.0. parent Parent axes object | def JmFt(Emd4, paXq, _AKB):
MPlV = _AKB.getAxes()
lhy8 = {}
zFiD = None
UXqs = None
or8S = int(paXq.key)
for aUGN in paXq.children:
H5ew = aUGN.key
wEf2 = aUGN.val
if H5ew == Emd4.XY:
lTdq = []
dlth = []
for M_DK in wEf2:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ubtf(YKHO):\n YKHO._dline = tiBn(points=[0, 100, xpNW, 100], linewidth=1.5, linecolor='cyan')",
"def FDJU(YKHO, zFiD, qQTo, OfK8):\n y5bX = [qQTo.chain(XP5J) for XP5J in (zFiD.p1, zFiD.p2)]\n YKHO.canvas.line([(XP5J.x, XP5J.y) for XP5J in y5bX], fill=OfK8)",
"def Hx4M(YKHO, ZbiE, CSPF, mOlj, ymxS,... | [
"0.6225547",
"0.6141533",
"0.61045897",
"0.600791",
"0.6007842",
"0.5936059",
"0.5892966",
"0.58667046",
"0.5863274",
"0.58571774",
"0.58557117",
"0.5844072",
"0.584371",
"0.5840684",
"0.58211356",
"0.5790988",
"0.5788605",
"0.5773601",
"0.5761556",
"0.5751793",
"0.5739298",
... | 0.73061675 | 0 |
returns True if elements are increasing in the list | def U4Ag(zYyW):
for YRbF in range(1, len(zYyW)):
if zYyW[YRbF - 1] > zYyW[YRbF]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfzg(hkxX):\n return all([YRbF <= r845 for YRbF, r845 in zip(hkxX, hkxX[1:])])",
"def cyVS(Q6uT):\n for YRbF, r845 in enumerate(Q6uT[:-1]):\n if r845 >= Q6uT[YRbF + 1]:\n return False\n return True",
"def NiAs(yv6U):\n if not type(yv6U) == list:\n return 'false'\n if... | [
"0.75365275",
"0.74925673",
"0.7437871",
"0.7341398",
"0.73314816",
"0.7152774",
"0.70650816",
"0.7060437",
"0.6938094",
"0.68970126",
"0.6854094",
"0.67911744",
"0.67843443",
"0.6645524",
"0.6639718",
"0.6618736",
"0.6597812",
"0.656644",
"0.64711887",
"0.6441244",
"0.643506... | 0.7917129 | 0 |
Backporting assert_allclose from Numpy 1.5 to 1.4 | def eYzO(n5sN, yRKV, LL2J=1e-07, rU28=0, YXxD='', PJWX=True):
from numpy.testing.utils import assert_array_compare
def qk7K(WKvO, LVAh):
return oyIN.allclose(WKvO, LVAh, rtol=LL2J, atol=rU28)
n5sN, yRKV = (oyIN.asanyarray(n5sN), oyIN.asanyarray(yRKV))
WBPg = 'Not equal to tolerance rtol=%g, ato... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eYzO(WKvO, LVAh, rU28=1e-05, LL2J=0.0001, PJWX=True):\n try:\n oyIN.testing.assert_allclose(WKvO, LVAh, atol=rU28, rtol=LL2J, verbose=PJWX)\n return True\n except AssertionError as e:\n eHNT = jKi7.StringIO()\n eHNT.write(str(tTpl) + '\\n\\n')\n eHNT.write('assert_allcl... | [
"0.7790505",
"0.76344216",
"0.7608641",
"0.72859603",
"0.72088796",
"0.68970716",
"0.689204",
"0.68787265",
"0.6840159",
"0.68233395",
"0.67868304",
"0.66912603",
"0.6664636",
"0.65971446",
"0.65823704",
"0.65746313",
"0.65227747",
"0.65197223",
"0.64776856",
"0.6448907",
"0.... | 0.7302566 | 3 |
Compute area of a triangle given 3 points | def E8vm(it0J: np.ndarray) -> float:
(o4D3, si3g), (ajwV, skBL), (rNcn, Sb1k) = yOwo(it0J)
jtyf = PZyS((o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2)
V70B = PZyS((ajwV - rNcn) ** 2 + (skBL - Sb1k) ** 2)
vCua = PZyS((rNcn - o4D3) ** 2 + (Sb1k - si3g) ** 2)
SBhG = (jtyf + V70B + vCua) / 2
uMGy = SBhG * ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ydTI(YKHO, EBgd, HpuQ, Lq8X):\n jzdc = PZyS((EBgd[0] - HpuQ[0]) ** 2 + (EBgd[1] - HpuQ[1]) ** 2)\n Fg_i = PZyS((HpuQ[0] - Lq8X[0]) ** 2 + (HpuQ[1] - Lq8X[1]) ** 2)\n Z9rn = PZyS((EBgd[0] - Lq8X[0]) ** 2 + (EBgd[1] - Lq8X[1]) ** 2)\n KCHu = (jzdc + Fg_i + Z9rn) / float(2)\n f0tD = PZyS(KCHu * (KC... | [
"0.85674906",
"0.8521497",
"0.8367698",
"0.82647604",
"0.8232608",
"0.8184442",
"0.8148324",
"0.8110756",
"0.80933315",
"0.806593",
"0.7962348",
"0.7912458",
"0.78917634",
"0.78031754",
"0.7793102",
"0.77343196",
"0.7730719",
"0.77258563",
"0.7697316",
"0.75490457",
"0.749381... | 0.8155868 | 6 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.80373776",
"0.7923372",
"0.7921526",
"0.78832066",
"0.78758025",
"0.78139895",
"0.77639675",
"0.7753964",
"0.7742553",
"0.7730092",
"0.7727218",
"0.7723365",
"0.7701169",
"0.76873696",
"0.76873696",
"0.7662493",
"0.765539",
"0.7654256",
"0.7654256",
"0.76442516",
"0.764425... | 0.7536213 | 28 |
Converts an index (integer) in a token (string/unicode) using the vocab. | def tqE6(YKHO, d6pt, hc_D=True):
eOtH = YKHO.sp_model.IdToPiece(d6pt)
return eOtH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tqE6(YKHO, d6pt):\n return YKHO.reverse_vocab.get(d6pt, YKHO.unk_token)",
"def caUt(YKHO, d6pt):\n return YKHO.decoder.get(d6pt)",
"def tqE6(YKHO, d6pt):\n if d6pt in YKHO.fairseq_ids_to_tokens:\n return YKHO.fairseq_ids_to_tokens[d6pt]\n return YKHO.sp_model.IdToPiece(d6pt - YKHO.fairse... | [
"0.76504004",
"0.67995644",
"0.6546384",
"0.65350676",
"0.6404568",
"0.6375889",
"0.6370274",
"0.6370274",
"0.6272747",
"0.62470657",
"0.6219838",
"0.6162691",
"0.6122522",
"0.6113642",
"0.6081953",
"0.60777116",
"0.60551715",
"0.6027793",
"0.6003488",
"0.6001299",
"0.5868207... | 0.66577786 | 2 |
Return the name of the sensor. | def mWFP(YKHO):
return f'{YKHO.client_name} {YKHO.variable}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Return the unit of measurement of this entity, if any. | def b82i(YKHO):
return lc9R[YKHO.variable][1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._metadata[1]",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"... | [
"0.8565862",
"0.8477338",
"0.8477338",
"0.8477338",
"0.8477338",
"0.8477338",
"0.8477338",
"0.8477338",
"0.8473674",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
... | 0.7864599 | 57 |
Return the state attributes. | def TzCU(YKHO):
return {PlJk: v7XK, M6sU: YKHO.probe.get_data('station_name'), _Jhf: YKHO.probe.last_update.isoformat()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.828... | 0.7570609 | 66 |
Return the timestamp of the most recent data. | def cV9T(YKHO):
_c1T, ITS7 = (YKHO.data.get('update_date'), YKHO.data.get('update_time'))
if _c1T is not None and ITS7 is not None:
return qcWV.strptime(_c1T + ITS7, '%d-%m-%Y%H:%M').replace(tzinfo=phty) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U_dL(YKHO):\n return YKHO._last_timestamp",
"def U_dL(YKHO):\n S0MI.debug('Getting last_timestamp as: %s', YKHO._last_timestamp)\n return YKHO._last_timestamp",
"def ikwY(YKHO):\n return YKHO._frame_timestamp",
"def mn17(YKHO):\n try:\n return max(YKHO.station_usage, key=lambda WKvO... | [
"0.76486593",
"0.7364548",
"0.7179991",
"0.7173839",
"0.7130857",
"0.70484143",
"0.70463294",
"0.6992933",
"0.69910926",
"0.6957483",
"0.6927991",
"0.69162804",
"0.69113654",
"0.6870302",
"0.6845708",
"0.68390936",
"0.6821002",
"0.68018234",
"0.6779948",
"0.677855",
"0.675511... | 0.6285578 | 89 |
Map from level to values based on max_value. | def sNvD(ABDL, bQ6z):
return ABDL / D0Mq * bQ6z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QLv5(YKHO):\n euU5 = {mWFP: 0 for mWFP in YKHO.group_names}\n dp2s = YKHO.get_transform_func('data_to_ax')\n if YKHO.plot == 'violinplot':\n euU5 = YKHO._get_value_maxes_violin(euU5, dp2s)\n else:\n for aUGN in YKHO.ax.get_children():\n IXKo, n01o = YKHO._get_value_pos(aUGN... | [
"0.6779481",
"0.661854",
"0.6521915",
"0.6355942",
"0.6317978",
"0.6265277",
"0.6263087",
"0.60138875",
"0.59535027",
"0.56714624",
"0.56714624",
"0.56714624",
"0.56249654",
"0.5619479",
"0.5619479",
"0.55993503",
"0.55812144",
"0.5558521",
"0.55277836",
"0.5520914",
"0.55194... | 0.7440842 | 0 |
Randomly negate value based on random_negative_prob. | def cm0p(BWXx, Ig2Z):
return -BWXx if oyIN.random.rand() < Ig2Z else BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IiXK(XP5J):\n return oyIN.clip(oyIN.random.normal(0, 3, XP5J), 0, None)",
"def cd4_(BWXx: Any) -> ImMB:\n return -BWXx if Sqm7._toss_fair_coin() else BWXx",
"def lBnO(YKHO, ByyA, FoyG, **B2fa):\n Cc4_ = ht2j.nonzero(ByyA.gt_inds == 0)\n if Cc4_.numel() != 0:\n Cc4_ = Cc4_.squeeze(1)\n ... | [
"0.73109514",
"0.72899586",
"0.71196777",
"0.68769",
"0.6795558",
"0.6721659",
"0.6665848",
"0.6632971",
"0.64435655",
"0.62850845",
"0.6261009",
"0.61856455",
"0.61799836",
"0.6109974",
"0.60397655",
"0.60113966",
"0.59970397",
"0.59902626",
"0.5978632",
"0.59776896",
"0.597... | 0.8853844 | 0 |
Instantiates Ability Objects for Pokemon created by the PokemonFactory. | def aYpI(YKHO, mWFP):
lGbz = V7ok.new_event_loop()
V7ok.set_event_loop(lGbz)
pNRJ = lGbz.run_until_complete(YKHO.api.process_requests('ability', mWFP))
JLHE = []
i_PC = rvft(pNRJ, True)
for x2cn in i_PC.create():
JLHE.append(x2cn)
return JLHE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I4Gp(YKHO, type: str, A90d: int=0, qXxR: int=0, cJcF: int=0, srLu: int=0, GwSi: int=0, iBLD: int=0, ABDL: int=0, mWFP: str='', vsUq=[kWaR]) -> WUuU:\n if type == 'Supporter':\n QQ0T = DCuF(stat_max=HR36(hp=A90d, attack=qXxR, defense=cJcF, sp_atk=srLu, sp_def=GwSi, speed=iBLD), stat_current=HR36(hp=A9... | [
"0.6599456",
"0.6198109",
"0.5792694",
"0.56491464",
"0.5476171",
"0.5426263",
"0.5405217",
"0.5305281",
"0.5284343",
"0.5241347",
"0.52400786",
"0.51918274",
"0.5175356",
"0.5154798",
"0.5147674",
"0.51380134",
"0.513156",
"0.5124926",
"0.5121062",
"0.5120388",
"0.5118778",
... | 0.545424 | 5 |
Gets the x of this Point2D. | def WKvO(YKHO):
return YKHO._x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKvO(YKHO):\n return _VfD.Point_x(YKHO)",
"def nIKw(YKHO):\n return YKHO.coords[0]",
"def WKvO(YKHO):\n return YKHO._coords[0]",
"def WKvO(YKHO):\n return YKHO.coords[0]",
"def WKvO(YKHO):\n if YKHO._x is None:\n YKHO.compute_coordinates()\n return YKHO._x",
"def p5xg(YKHO):\... | [
"0.8202853",
"0.7964946",
"0.7899306",
"0.7832003",
"0.77950877",
"0.7770974",
"0.7767594",
"0.7655691",
"0.75853753",
"0.7541222",
"0.7513232",
"0.74670273",
"0.74613774",
"0.7420815",
"0.74085504",
"0.74006236",
"0.7338587",
"0.72459483",
"0.72445965",
"0.72348505",
"0.7130... | 0.6978998 | 45 |
Gets the y of this Point2D. | def LVAh(YKHO):
return YKHO._y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVAh(YKHO):\n return _VfD.Point_y(YKHO)",
"def bDS1(YKHO):\n return YKHO.__y",
"def yDCK(YKHO):\n return YKHO.coords[1]",
"def LVAh(YKHO):\n return YKHO._coords[1]",
"def bDS1(YKHO):\n return YKHO.y",
"def bDS1(YKHO):\n return YKHO.y",
"def bDS1(YKHO):\n return YKHO._y",
"def... | [
"0.83229166",
"0.82235724",
"0.82125914",
"0.8158935",
"0.8101928",
"0.8101928",
"0.8083137",
"0.8040786",
"0.8029575",
"0.80111855",
"0.7996456",
"0.79616183",
"0.79490346",
"0.7942596",
"0.792801",
"0.7853457",
"0.7839556",
"0.77639574",
"0.77575284",
"0.7748724",
"0.770901... | 0.74073845 | 38 |
Sets the y of this Point2D. | def LVAh(YKHO, LVAh):
if LVAh is None:
raise ValueError('Invalid value for `y`, must not be `None`')
YKHO._y = LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QEd2(YKHO, LVAh):\n YKHO._y = LVAh",
"def lcEV(YKHO, LVAh):\n YKHO._y = LVAh",
"def z9NM(YKHO, LVAh):\n YKHO.y = LVAh\n pass",
"def z9NM(YKHO, LVAh):\n YKHO._y = LVAh",
"def lcEV(YKHO, LVAh: float):\n YKHO.y = LVAh",
"def z9NM(YKHO, LVAh):\n YKHO.position.setY(LVAh)",
"def lcEV... | [
"0.8453378",
"0.8452764",
"0.84150106",
"0.8326392",
"0.825327",
"0.8120081",
"0.8114923",
"0.80978614",
"0.7752102",
"0.7601844",
"0.7427981",
"0.7388533",
"0.7356006",
"0.7351102",
"0.7351102",
"0.72065663",
"0.7160429",
"0.7160429",
"0.7140703",
"0.70442504",
"0.69907975",... | 0.75235146 | 11 |
Return a bar chart that shows total amount paid for taxi rides by payment type for weekdays. | def vsQ2(jQ3Z=nPrm):
Xf84 = {1: 'Credit card', 2: 'Cash', 3: 'No charge', 4: 'Dispute', 5: 'Unknown', 6: 'Voided trip'}
jQ3Z['payment_type'] = jQ3Z['payment_type'].replace(Xf84)
rrLg = jQ3Z.groupby(['payment_type', 'weekday']).agg(total_amount=('total_amount', 'sum')).reset_index(drop=False)
return Xlvp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ojxp(pmON, q5sG):\n PlGS = KiSW(pmON, q5sG)\n YCsW = PlGS.groupby('Date')['Place'].count()\n YCsW = YCsW.to_frame()\n YCsW.columns = ['Freq']\n YCsW = YCsW.drop(['2019-01-04'])\n YCsW = YCsW.drop(['2019-01-07'])\n return YCsW",
"def mzkx(LeZt: list):\n CfUh = 'o'\n Tw8L = 'Percenta... | [
"0.54274887",
"0.5399363",
"0.532895",
"0.5269458",
"0.52669287",
"0.526326",
"0.520962",
"0.5144436",
"0.5111402",
"0.51094276",
"0.5091132",
"0.5074277",
"0.505586",
"0.50367224",
"0.50361025",
"0.50286853",
"0.500151",
"0.4954292",
"0.49293423",
"0.4892176",
"0.48813832",
... | 0.7296597 | 0 |
Return a kpi card that shows total trip distance. | def sxvB(jQ3Z=nPrm):
wjRY = jQ3Z['trip_distance'].sum().round()
return [_R2e.H4('Total Trip Distance', className='card-title'), _R2e.P(f'{int(wjRY):,d}', className='card-value')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qMDe(jQ3Z=nPrm):\n wjRY = len(jQ3Z)\n return [_R2e.H4('Total Trips', className='card-title'), _R2e.P(f'{int(wjRY):,d}', className='card-value')]",
"def W7XS(jQ3Z=nPrm):\n wjRY = jQ3Z['passenger_count'].sum().round()\n return [_R2e.H4('Total Passenger Amount', className='card-title'), _R2e.P(f'{in... | [
"0.6902948",
"0.67450553",
"0.6496759",
"0.55972195",
"0.54019475",
"0.5264698",
"0.5192559",
"0.50993186",
"0.50779825",
"0.5046142",
"0.50450855",
"0.5006136",
"0.49951693",
"0.4979992",
"0.49640006",
"0.49563554",
"0.49417576",
"0.49336472",
"0.49320427",
"0.4930143",
"0.4... | 0.8057181 | 0 |
Path where the HDF5 file is located posixpath.dirname() | def qaEx(YKHO):
return Qumu.dirname(YKHO.file_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z2Su(YKHO):\n MYW9 = '/'.join(YKHO.file_name.split('/')[:-1])\n gIsw = YKHO.file_name.split('/')[-1]\n if '.h5' in gIsw:\n gIsw = gIsw.split('.h5')[0]\n gIsw += '_hdf5'\n if YKHO.h5_path[0] == '/':\n Xw5U = YKHO.h5_path[1:]\n else:\n Xw5U = YKHO.h5_path\n return Qumu.j... | [
"0.7998137",
"0.79434365",
"0.7897259",
"0.78762734",
"0.7342185",
"0.69924957",
"0.68913627",
"0.67971563",
"0.6705226",
"0.669286",
"0.66440845",
"0.65817255",
"0.6524634",
"0.65175104",
"0.65127057",
"0.6463314",
"0.6432335",
"0.6418457",
"0.6416585",
"0.6412822",
"0.63692... | 0.72412133 | 5 |
Get a specific value from a pandas.Dataframe | def u_Ml(YKHO, pmON, mWFP):
R96M = YKHO.get(pmON)
sjXb = R96M['Parameter']
if mWFP in sjXb:
rjee = sjXb.index(mWFP)
return R96M['Value'][rjee]
raise ValueError('Unknown name: {0}'.format(mWFP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, H5ew):\n return YKHO.df[H5ew]",
"def umPh(YKHO, SmoX):\n pass",
"def NMoC(YKHO, z0q4, begg):\n YKHO.check_for_column(z0q4)\n return YKHO.data[z0q4][begg]",
"def OP2O(YKHO, or8S):\n return YKHO.data.iloc[or8S]",
"def Zmkp(YKHO, WBPg, aFUE):\n return YKHO.data[aFUE, YKHO.head... | [
"0.70596415",
"0.65514344",
"0.65166146",
"0.6503485",
"0.640726",
"0.6406935",
"0.6392975",
"0.63324744",
"0.6270443",
"0.62415093",
"0.6231693",
"0.62117183",
"0.6199969",
"0.6198087",
"0.6134324",
"0.61122453",
"0.6106325",
"0.6095749",
"0.6086242",
"0.60455424",
"0.602240... | 0.5452858 | 79 |
The absolute path to of the current pyiron project absolute path on the file system, not including the HDF5 path. | def a2jN(YKHO):
return YKHO._project.path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n return Hy7s.path.join(YKHO._project.path, YKHO.h5_path[1:]).replace('\\\\', '/')",
"def Zg0d(YKHO):\n return Hy7s.path.abspath(YKHO.path)",
"def pmON(YKHO):\n pmON = Hy7s.path.join(YKHO.base_dir, YKHO.store().replace(' ', '_'), YKHO.package_name())\n return Hy7s.path.abspath(pmON)... | [
"0.749917",
"0.7469245",
"0.746837",
"0.74283326",
"0.74239373",
"0.74075603",
"0.73930174",
"0.73682487",
"0.7350641",
"0.7349053",
"0.7340121",
"0.7337939",
"0.73337173",
"0.733115",
"0.7286074",
"0.72558075",
"0.72558075",
"0.72309726",
"0.72283375",
"0.7200086",
"0.717058... | 0.0 | -1 |
the relative path of the current project / folder starting from the root path of the pyiron user directory | def O0al(YKHO):
return YKHO._project.project_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jNha():\n return GkAb(xAKo).parent.parent",
"def phdL() -> cf3u.Path:\n return cf3u.Path(xAKo).parent.parent",
"def phdL():\n return GkAb(xAKo).parent.parent",
"def phdL():\n return str(GkAb(xAKo).parent.parent)",
"def phdL():\n return str(GkAb(xAKo).parent.parent)",
"def phdL() -> GkA... | [
"0.8077613",
"0.79924023",
"0.7989185",
"0.79072905",
"0.79072905",
"0.78957456",
"0.78957456",
"0.78957456",
"0.78957456",
"0.7894728",
"0.78666586",
"0.78622246",
"0.7831149",
"0.7732454",
"0.77062273",
"0.7705708",
"0.76734066",
"0.76734066",
"0.7659947",
"0.75575066",
"0.... | 0.6910063 | 73 |
Convert a batch of sentences to a list of text sentences. | def h2OX(Wc9F, Fbjb, br9j, NArs):
Wc9F = Wc9F.cpu().numpy()
Fbjb = Fbjb.cpu().numpy()
b4e2, lHmx = Wc9F.shape
assert Fbjb.max() == b4e2 and Fbjb.shape[0] == lHmx
assert (Wc9F[0] == NArs.eos_index).sum() == lHmx
assert (Wc9F == NArs.eos_index).sum() == 2 * lHmx
Rhv4 = []
for r845 in range... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jAM5(q_E9):\n Rhv4 = []\n for Q6uT in q_E9:\n yAmx = []\n for YRbF in range(Q6uT.shape[0]):\n GIN8 = ''.join([str(WKvO) for WKvO in Q6uT[YRbF, :]])\n yAmx.append(GIN8)\n Rhv4.append(yAmx)\n return Rhv4",
"def Rhv4(YKHO) -> x1iM[str]:\n return [YKHO.text[... | [
"0.7126118",
"0.70990527",
"0.70990527",
"0.6939262",
"0.68789613",
"0.6865277",
"0.685531",
"0.6848978",
"0.680459",
"0.67145294",
"0.6697414",
"0.66851515",
"0.667955",
"0.66777897",
"0.6654887",
"0.6624871",
"0.66241395",
"0.6622438",
"0.65980744",
"0.65934867",
"0.6570346... | 0.6501711 | 28 |
Create parametric Weiner transfer function W. | def R43U(C7Ls, nMvt):
XcU5 = 1 / C7Ls * (oyIN.conjugate(C7Ls) * C7Ls / (oyIN.conjugate(C7Ls) * C7Ls + nMvt))
return XcU5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jvQ8(YKHO, yzQ0, WKvO, LVAh, epBp):\n raise NotImplementedError()",
"def IHZk(upAO=1.0):\n XcU5 = oyIN.zeros([8, 8])\n hbGG = -(oyIN.cos(oyIN.linspace(0, 2 * oyIN.pi, 8, endpoint=False)) - 1) / 2\n for YRbF in range(8):\n hkxX = oyIN.roll(hbGG, YRbF)\n XcU5[YRbF, :] = hkxX\n retu... | [
"0.68442386",
"0.6284554",
"0.6163431",
"0.6146897",
"0.6098888",
"0.6081491",
"0.5974907",
"0.59509724",
"0.58886975",
"0.58877337",
"0.58492213",
"0.58441037",
"0.5829238",
"0.5819616",
"0.5819407",
"0.5818731",
"0.5802386",
"0.5796633",
"0.57884014",
"0.5780335",
"0.577209... | 0.66408455 | 1 |
Gets the name of this ConnectionDto. Connection name | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o0oP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_name')",
"def o0oP(YKHO) -> str:\n return qe4Y.get(YKHO, 'connection_name')",
"def o0oP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'connection_name')",
"def uQLg(YKHO):\n VRAt = YKHO.get_account()\n return get... | [
"0.8109987",
"0.78770113",
"0.7587713",
"0.7132375",
"0.7012354",
"0.6970042",
"0.68702656",
"0.68620515",
"0.686156",
"0.68561816",
"0.6841437",
"0.6841437",
"0.6827014",
"0.6827014",
"0.6827014",
"0.6827014",
"0.6827014",
"0.6827014",
"0.6827014",
"0.6827014",
"0.6827014",
... | 0.0 | -1 |
Sets the name of this ConnectionDto. Connection name | def mWFP(YKHO, mWFP):
if mWFP is not None and len(mWFP) > 1024:
raise ValueError('Invalid value for `name`, length must be less than or equal to `1024`')
if mWFP is not None and len(mWFP) < 0:
raise ValueError('Invalid value for `name`, length must be greater than or equal to `0`')
if mWFP i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP",
"def WZrJ(YKHO, ... | [
"0.698652",
"0.698652",
"0.698652",
"0.698652",
"0.698652",
"0.6979957",
"0.6964318",
"0.6835835",
"0.6835835",
"0.681234",
"0.6805783",
"0.6798256",
"0.67915547",
"0.67788064",
"0.67788064",
"0.67788064",
"0.67788064",
"0.67711574",
"0.67684996",
"0.67496085",
"0.67287225",
... | 0.0 | -1 |
Gets the type of this ConnectionDto. Database Type | def type(YKHO):
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xixj(YKHO):\n return YKHO._connection_type",
"def Xixj(YKHO):\n return YKHO._connection_type",
"def Xixj(YKHO) -> h8nf[str]:\n return YKHO._connection_type",
"def type(YKHO):\n return YKHO.container['type']",
"def type(YKHO):\n return YKHO.container['type']",
"def YwLH(YKHO):\n retu... | [
"0.7701488",
"0.7701488",
"0.7398385",
"0.7073261",
"0.7073261",
"0.6880846",
"0.686116",
"0.6806209",
"0.6728022",
"0.6728022",
"0.67221564",
"0.67090166",
"0.6699046",
"0.6699046",
"0.6678888",
"0.66640633",
"0.6648504",
"0.66438884",
"0.6623585",
"0.6623563",
"0.6607306",
... | 0.68063855 | 19 |
Sets the type of this ConnectionDto. Database Type | def type(YKHO, type):
if type is None:
raise ValueError('Invalid value for `type`, must not be `None`')
YKHO._type = type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO, type):\n BbPm = ['postgres', 'redshift', 'snowflake', 'bigquery']\n if type not in BbPm:\n raise ValueError('Invalid value for `type` ({0}), must be one of {1}'.format(type, BbPm))\n YKHO._type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YK... | [
"0.6778424",
"0.653501",
"0.653501",
"0.65224236",
"0.65224236",
"0.639923",
"0.6380722",
"0.6380722",
"0.63556075",
"0.6291323",
"0.6291323",
"0.6264483",
"0.6264483",
"0.6264483",
"0.6264483",
"0.6264483",
"0.6264483",
"0.6264483",
"0.6264483",
"0.6264483",
"0.6264483",
"... | 0.58769876 | 46 |
Gets the database of this ConnectionDto. Database/Schema Logical Name | def p9bx(YKHO):
return YKHO._database | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u_OD(YKHO):\n return YKHO.database",
"def u_OD(YKHO):\n if YKHO._database is None:\n w2B8 = YKHO.get_connection()\n NCls = w2B8[YKHO.database]\n YKHO._database = NCls\n return YKHO._database",
"def v0Hh(YKHO):\n return YKHO.db",
"def p9bx(YKHO) -> qe4Y.Output[str]:\n r... | [
"0.79545844",
"0.7820087",
"0.75245094",
"0.75190026",
"0.75059843",
"0.75059843",
"0.7470187",
"0.7464767",
"0.7464767",
"0.73580176",
"0.7350807",
"0.7336733",
"0.73366016",
"0.7235801",
"0.7198867",
"0.7195163",
"0.71335024",
"0.713143",
"0.7127368",
"0.71237785",
"0.71162... | 0.75912845 | 2 |
Gets the ssh_tunnel of this ConnectionDto. ssh tunnel configuration | def mAZn(YKHO):
return YKHO._ssh_tunnel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ddOd(YKHO):\n return YKHO._tunnel",
"def nnsN(YKHO) -> MbzY:\n return YKHO._bokeh_tunnel",
"def m7R9(YKHO):\n return YKHO._is_on_tunnel",
"def z2E1(YKHO) -> h8nf[qe4Y.Input['LinuxProfilePropertiesSshArgs']]:\n return qe4Y.get(YKHO, 'ssh')",
"def Ijc0(YKHO):\n KcEq = YKHO.sshTunnelDict['s... | [
"0.73422706",
"0.6544547",
"0.6299176",
"0.6244284",
"0.60938513",
"0.60583705",
"0.5866291",
"0.5851794",
"0.5851004",
"0.58175737",
"0.57334214",
"0.5707023",
"0.5700237",
"0.5695588",
"0.56744146",
"0.56185466",
"0.5577173",
"0.55543524",
"0.55237",
"0.55128473",
"0.548714... | 0.824663 | 0 |
Sets the ssh_tunnel of this ConnectionDto. ssh tunnel configuration | def mAZn(YKHO, mAZn):
YKHO._ssh_tunnel = mAZn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ijc0(YKHO):\n KcEq = YKHO.sshTunnelDict['ssh_ip']\n CBIr = YKHO.sshTunnelDict['ssh_user']\n jTXt = YKHO.sshTunnelDict['ssh_password']\n YS6c = YKHO.sshTunnelDict['target_ip']\n O81l = 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -C -N -f -L 3306:{0} {1}@{2}'.format(YS6c, CBIr... | [
"0.675914",
"0.6605099",
"0.6178373",
"0.60904634",
"0.5605444",
"0.5476674",
"0.5387961",
"0.53618294",
"0.5321048",
"0.53140545",
"0.53031087",
"0.5296444",
"0.52829975",
"0.5275553",
"0.5245315",
"0.5192569",
"0.5149504",
"0.5147113",
"0.51296663",
"0.51175994",
"0.5111401... | 0.83524567 | 0 |
Sets the verify_server_certificate of this ConnectionDto. Should server certificate be verified | def NvWm(YKHO, NvWm):
YKHO._verify_server_certificate = NvWm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvWm(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'verify_server_certificate')",
"def NvWm(YKHO) -> bool:\n return qe4Y.get(YKHO, 'verify_server_certificate')",
"def NvWm(YKHO):\n return YKHO._verify_server_certificate",
"def xFVe(YKHO, xFVe):\n if xFVe is not None and len(xFVe) >... | [
"0.7235582",
"0.7048329",
"0.6964776",
"0.6545746",
"0.60307807",
"0.5979448",
"0.593226",
"0.5889066",
"0.57489",
"0.57173",
"0.57043093",
"0.56502354",
"0.5499581",
"0.5421345",
"0.5383809",
"0.53299206",
"0.532554",
"0.53128654",
"0.5297012",
"0.5278152",
"0.52709925",
"... | 0.8727834 | 0 |
Sets the trusted_server_certificates of this ConnectionDto. trusted server certificates | def xFVe(YKHO, xFVe):
if xFVe is not None and len(xFVe) > 100000:
raise ValueError('Invalid value for `trusted_server_certificates`, length must be less than or equal to `100000`')
if xFVe is not None and len(xFVe) < 0:
raise ValueError('Invalid value for `trusted_server_certificates`, length mu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xFVe(YKHO):\n return YKHO._trusted_server_certificates",
"def NvWm(YKHO, NvWm):\n YKHO._verify_server_certificate = NvWm",
"def XSvv(YKHO, XSvv):\n YKHO._trusted = XSvv",
"def Z3bR(YKHO, XSvv):\n YKHO.__trusted = XSvv",
"def z4om(YKHO, z4om):\n YKHO._client_x509_cert_url = z4om",
"def ... | [
"0.7097847",
"0.58575535",
"0.5850346",
"0.5725505",
"0.51788056",
"0.5088869",
"0.5085747",
"0.49595064",
"0.4896925",
"0.48946217",
"0.48745573",
"0.4861071",
"0.4839228",
"0.48203716",
"0.47829595",
"0.47604677",
"0.47415882",
"0.47400114",
"0.47115654",
"0.46886235",
"0.4... | 0.82548046 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, rJme):
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.84564555",
"0.8391999",
"0.8144653",
"0.81410354",
"0.81326365",
"0.8094085",
"0.80921024",
"0.80921024",
"0.80921024",
"0.8085453",
"0.8085453",
"0.807646",
"0.807646",
"0.806588"
] | 0.0 | -1 |
Reads the file from the given path (json file). Returns list of instance dictionaries. | def Ueki(pmON):
nPrm = []
with open(pmON, 'r', encoding='utf-8') as nUeQ:
for KAOR in nUeQ:
nPrm.append(qQXR.loads(KAOR))
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nwr9(pmON: str) -> list:\n try:\n with open(pmON, 'r') as nUeQ:\n DFSo = qQXR.loads(nUeQ.read())\n DFSo = [uHxD(abiq['id'], abiq['name']) for abiq in DFSo]\n return DFSo\n except FileNotFoundError:\n raise Exception('Json file not found')\n except Exception a... | [
"0.7766656",
"0.7736186",
"0.7732027",
"0.76517224",
"0.7560417",
"0.7480914",
"0.7474814",
"0.7468895",
"0.7413743",
"0.7388412",
"0.7386593",
"0.73859185",
"0.7371623",
"0.73595375",
"0.73497754",
"0.7344601",
"0.734342",
"0.7338777",
"0.733736",
"0.7318205",
"0.72966874",
... | 0.8198233 | 0 |
remove numbers from the grid to create the puzzle | def QORS(YKHO):
GZQy = YKHO.get_non_empty_squares(YKHO.grid)
CJ_B = len(GZQy)
Y4bG = 3
while Y4bG > 0 and CJ_B >= 17:
rdlD, fvDH = GZQy.pop()
CJ_B -= 1
WF47 = YKHO.grid[rdlD][fvDH]
YKHO.grid[rdlD][fvDH] = 0
YHY8 = jth9.deepcopy(YKHO.grid)
YKHO.counter = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ev3m(YKHO):\n for YRbF in range(len(YKHO.board.board[0])):\n while YKHO.board.board[YRbF].count(0) < 6:\n cCR1 = tuKI.randint(0, 8)\n YKHO.board.update_board((YRbF, cCR1), 0)",
"def _KfP(YKHO):\n global counter\n WLLB = YKHO._difficulty\n while WLLB > 0:\n rdlD... | [
"0.7139495",
"0.6978002",
"0.6917827",
"0.6523514",
"0.64967364",
"0.6485853",
"0.6434701",
"0.63681704",
"0.6326973",
"0.6315295",
"0.6241159",
"0.6212497",
"0.6210529",
"0.6207884",
"0.6165753",
"0.61619693",
"0.6159317",
"0.61558974",
"0.611644",
"0.6094093",
"0.6085968",
... | 0.8469444 | 0 |
list files in a directory recursively, excluding dot files and dot directories. return array of relative to path and alwasy use '/' even on Windows. | def uTAc(pmON, P8oC=None):
if not P8oC:
P8oC = pmON
D79s = []
for bTKY in Hy7s.listdir(pmON):
if bTKY[0] == '.':
continue
GSwS = '/'.join([pmON, bTKY])
if Hy7s.path.isfile(GSwS):
D79s.append(GSwS[1 + len(P8oC):])
else:
D79s += uTAc(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zjv5(pmON: str) -> x1iM[str]:\n if not LR7z(pmON):\n return [pmON]\n return [nUeQ for NjPQ in U9eF(pmON) for nUeQ in zjv5(pmON + '/' + NjPQ)]",
"def a_nD(pmON):\n return Hy7s.listdir(pmON)",
"def JMfG(dir: str):\n MVVZ = [f'{dir}/{nUeQ}' for nUeQ in U9eF(dir) if EFYe(gzes(dir, nUeQ))]\n ... | [
"0.7524943",
"0.7516233",
"0.7486052",
"0.7436258",
"0.74204797",
"0.74015516",
"0.73997855",
"0.7381417",
"0.738034",
"0.73428553",
"0.73118794",
"0.7263268",
"0.722073",
"0.7219745",
"0.7209468",
"0.72025824",
"0.7198464",
"0.7194337",
"0.71721375",
"0.7162895",
"0.7162691"... | 0.70587146 | 31 |