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 |
|---|---|---|---|---|---|---|
Set normal probability density function | def NFIB(YKHO, q7In, NXpY):
YKHO.density = WGTe(YKHO.mean(q7In), NXpY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OJ6S(WKvO: torch.Tensor) -> ht2j.Tensor:\n return ht2j.exp(-(WKvO ** 2 / 2)) / oyIN.sqrt(2 * oyIN.pi)",
"def Eo2K(YKHO, EcVT):\n raise NotImplementedError",
"def GZvc(WKvO, yGTL, WTkW, KCHu=1):\n return KCHu * 1 / (WTkW * ht2j.sqrt(ht2j.tensor(2 * oyIN.pi))) * ht2j.exp(-1 / 2 * ((WKvO - yGTL) / WT... | [
"0.67801833",
"0.6755923",
"0.67078704",
"0.67059124",
"0.6578981",
"0.6533579",
"0.652303",
"0.6458603",
"0.6429473",
"0.6385546",
"0.6385546",
"0.6345143",
"0.63312536",
"0.6304768",
"0.62980795",
"0.62917155",
"0.62680686",
"0.62666124",
"0.62543845",
"0.62536865",
"0.6244... | 0.7097677 | 0 |
Set the parameters of of normal probability density function | def ykIn(YKHO, q7In, NXpY=None):
YKHO.density.loc = YKHO.mean(q7In)
if NXpY is not None:
YKHO.density.scale = NXpY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with normal distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n idHf(exwG, XP5J, std=0.02)",
"def NFIB(YKHO, q7In, NXpY):\n YKHO.density = WGTe(YKHO.mean(q7In), NXpY)",
"def CCMW(*d7pR):\n return oyIN.... | [
"0.70059043",
"0.6926919",
"0.633595",
"0.6330357",
"0.62646884",
"0.6241562",
"0.6241562",
"0.6224037",
"0.6224037",
"0.60877436",
"0.60753626",
"0.6030707",
"0.60169643",
"0.59793794",
"0.5979102",
"0.5979102",
"0.5975218",
"0.5975218",
"0.5973638",
"0.5953766",
"0.5940995"... | 0.6777002 | 2 |
Get the number of significant decimals | def UB6R(jzdc: float, Fg_i: float, seET: str) -> int:
jzdc = str(jzdc)
Fg_i = str(Fg_i)
GghE = '(?<=\\.)[0]*[1-9]+'
NAjZ = ZbWC.search(GghE, jzdc)
zSs4 = ZbWC.search(GghE, Fg_i)
NAjZ = NAjZ.end() - NAjZ.start() if NAjZ else 0
zSs4 = zSs4.end() - zSs4.start() if zSs4 else 0
if seET in ['+... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CbYT(WKvO):\n swNX = ZbWC.compile('([0-9.]+)')\n r8hN = swNX.search('{:e}'.format(float(WKvO)))\n if r8hN:\n wEf2 = r8hN.group(1).replace('.', '')\n while wEf2[-1:] == '0':\n wEf2 = wEf2[0:-1]\n return len(wEf2)\n return 0",
"def vVtN(mLGw, LUIE):\n if mLGw != 0... | [
"0.7420559",
"0.67916536",
"0.6755642",
"0.6587748",
"0.6565861",
"0.6366491",
"0.6333529",
"0.63089216",
"0.62499017",
"0.6234093",
"0.6065148",
"0.60396826",
"0.60212463",
"0.6004238",
"0.5991197",
"0.59855926",
"0.5971467",
"0.59665966",
"0.5928815",
"0.5908326",
"0.588904... | 0.6086487 | 10 |
Test string to list with default delimiter (comma). | def kDGp(YKHO):
LLrw(hLdi('a, b, c'), ['a', 'b', 'c']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDGp(YKHO):\n LLrw(hLdi('a, b, c'), ['a', 'b', 'c'])",
"def sbxN(YKHO):\n LLrw(hLdi(' a | b | c ', delimiter='|'), ['a', 'b', 'c'])",
"def sbxN(YKHO):\n LLrw(hLdi(' a | b | c ', delimiter='|'), ['a', 'b', 'c'])",
"def CD8v(Emd4, Ty9i: Union[List[str], str]) -> x1iM[str]:\n if isinstance(Ty9i,... | [
"0.7599828",
"0.73749596",
"0.73197794",
"0.7104217",
"0.70850724",
"0.69901824",
"0.69228685",
"0.6868293",
"0.6827386",
"0.68251467",
"0.68251467",
"0.68128663",
"0.6805993",
"0.6741072",
"0.6619719",
"0.6602993",
"0.65685004",
"0.6544581",
"0.65275055",
"0.65158194",
"0.65... | 0.7516786 | 1 |
Test generating job id with returning successful job set to True a job that is running. | def A3sX(YKHO, NRA_):
rjee = 'running'
NRA_.side_effect = [MSO3(job_id=rjee, status='FAILED'), MSO3(job_id=rjee + '-1', status='KILLED'), MSO3(job_id=rjee + '-2', status='FAILED'), MSO3(job_id=rjee + '-3', status='RUNNING'), MSO3(job_id=rjee + '-4', status='SUCCEEDED'), xbFK]
LLrw(rjee + '-3', wULr(rjee)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7Gd(YKHO, NRA_):\n rjee = 'return-successful-true'\n NRA_.side_effect = [MSO3(job_id=rjee, status='FAILED'), MSO3(job_id=rjee + '-1', status='KILLED'), MSO3(job_id=rjee + '-2', status='SUCCEEDED'), MSO3(job_id=rjee + '-3', status='SUCCEEDED'), MSO3(job_id=rjee + '-4', status='KILLED'), xbFK]\n LLrw(r... | [
"0.78725076",
"0.76736796",
"0.7493212",
"0.71150243",
"0.7052669",
"0.6964573",
"0.68550575",
"0.68537855",
"0.68313116",
"0.6746439",
"0.6732427",
"0.67050314",
"0.67045784",
"0.66047156",
"0.6602651",
"0.65895987",
"0.6550436",
"0.6549443",
"0.6527391",
"0.65093195",
"0.64... | 0.78671706 | 1 |
Test generating job id with returning successful job set to True. | def C7Gd(YKHO, NRA_):
rjee = 'return-successful-true'
NRA_.side_effect = [MSO3(job_id=rjee, status='FAILED'), MSO3(job_id=rjee + '-1', status='KILLED'), MSO3(job_id=rjee + '-2', status='SUCCEEDED'), MSO3(job_id=rjee + '-3', status='SUCCEEDED'), MSO3(job_id=rjee + '-4', status='KILLED'), xbFK]
LLrw(rjee + '-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def onK1(YKHO, NRA_):\n rjee = 'return-successful-false'\n NRA_.side_effect = [MSO3(job_id=rjee, status='FAILED'), MSO3(job_id=rjee + '-1', status='KILLED'), MSO3(job_id=rjee + '-2', status='SUCCEEDED'), MSO3(job_id=rjee + '-3', status='KILLED'), MSO3(job_id=rjee + '-4', status='FAILED'), MSO3(job_id=rjee + ... | [
"0.7564261",
"0.74883693",
"0.7390486",
"0.7016395",
"0.68192",
"0.67902786",
"0.66288406",
"0.6501989",
"0.6498588",
"0.6440645",
"0.6356046",
"0.6341766",
"0.63193315",
"0.62934905",
"0.6233492",
"0.62061447",
"0.6195039",
"0.6178637",
"0.61620325",
"0.6161178",
"0.61561114... | 0.78779596 | 0 |
Test generating job id with returning successful job set to False. | def onK1(YKHO, NRA_):
rjee = 'return-successful-false'
NRA_.side_effect = [MSO3(job_id=rjee, status='FAILED'), MSO3(job_id=rjee + '-1', status='KILLED'), MSO3(job_id=rjee + '-2', status='SUCCEEDED'), MSO3(job_id=rjee + '-3', status='KILLED'), MSO3(job_id=rjee + '-4', status='FAILED'), MSO3(job_id=rjee + '-5', s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7Gd(YKHO, NRA_):\n rjee = 'return-successful-true'\n NRA_.side_effect = [MSO3(job_id=rjee, status='FAILED'), MSO3(job_id=rjee + '-1', status='KILLED'), MSO3(job_id=rjee + '-2', status='SUCCEEDED'), MSO3(job_id=rjee + '-3', status='SUCCEEDED'), MSO3(job_id=rjee + '-4', status='KILLED'), xbFK]\n LLrw(r... | [
"0.7741159",
"0.7461373",
"0.73588055",
"0.6930334",
"0.6583131",
"0.65478027",
"0.65010905",
"0.64234984",
"0.63584983",
"0.62917596",
"0.62569994",
"0.6226213",
"0.6140012",
"0.60707146",
"0.60637915",
"0.6037563",
"0.6029693",
"0.6025145",
"0.5995659",
"0.59863645",
"0.596... | 0.76607066 | 1 |
Test generating job id with returning successful job set to False with a job that is running. | def xM9R(YKHO, NRA_):
rjee = 'return-successful-false-running'
NRA_.side_effect = [MSO3(job_id=rjee, status='FAILED'), MSO3(job_id=rjee + '-1', status='KILLED'), MSO3(job_id=rjee + '-2', status='SUCCEEDED'), MSO3(job_id=rjee + '-3', status='KILLED'), MSO3(job_id=rjee + '-4', status='RUNNING'), MSO3(job_id=rjee ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7Gd(YKHO, NRA_):\n rjee = 'return-successful-true'\n NRA_.side_effect = [MSO3(job_id=rjee, status='FAILED'), MSO3(job_id=rjee + '-1', status='KILLED'), MSO3(job_id=rjee + '-2', status='SUCCEEDED'), MSO3(job_id=rjee + '-3', status='SUCCEEDED'), MSO3(job_id=rjee + '-4', status='KILLED'), xbFK]\n LLrw(r... | [
"0.79073787",
"0.7863281",
"0.7777591",
"0.70760703",
"0.68380785",
"0.67975783",
"0.6749784",
"0.67238766",
"0.6715908",
"0.67016995",
"0.6580349",
"0.6573049",
"0.6571408",
"0.654079",
"0.6522122",
"0.64691615",
"0.643991",
"0.6415732",
"0.64026153",
"0.6357849",
"0.6337188... | 0.78893054 | 1 |
Check if this image is a valid Cloud Optimized GeoTiff. | def iCOt(YKHO, HlG8=True, fUWa=False, U3Fm=True, E4N8=True):
from osgeo_utils.samples.validate_cloud_optimized_geotiff import validate
qmLP, UAju, iQG7 = validate(YKHO._largeImagePath, check_tiled=HlG8, full_check=fUWa)
if UAju:
raise aetg(UAju)
if U3Fm and qmLP:
raise aetg(qmLP)
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qh3b(Xn71):\n return Xn71.shape[0] >= Cnfp and Xn71.shape[1] >= Cnfp",
"def GgMb(YKHO):\n return False",
"def duoF(B2fa) -> bool:\n return p4kp(kwargs=B2fa, options=['min_captured_at', 'max_captured_at', 'radius', 'image_type', 'organization_id', 'fields'], callback='image_check')",
"def uABQ(YK... | [
"0.5987881",
"0.5779735",
"0.5730866",
"0.56918925",
"0.5638255",
"0.5636361",
"0.5578449",
"0.55775106",
"0.5574633",
"0.5539387",
"0.5539387",
"0.55163896",
"0.5516275",
"0.5502651",
"0.546829",
"0.54644793",
"0.54386574",
"0.5435139",
"0.5420467",
"0.5416232",
"0.53532124"... | 0.6501267 | 0 |
Entropy{p1, p2, ..., pk} = (\sum_{i=1}(pilog_4(pi))) where p = the probability of kth label (i.e., probability of "unacc", "acc".. etc.) | def _XE_(U5bc):
_sei = ADdO(U5bc)
Aofo = 0
for XP5J in _sei:
if XP5J != 0:
Aofo = Aofo + XP5J * epAf.log(XP5J, 2.0)
Aofo = -Aofo
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ebCz(YKHO, usx6):\n JbQV = oRi_(int)\n pcsc = 0\n for rdlD in usx6:\n UXqs = rdlD[YKHO.target_attribute]\n JbQV[UXqs] += 1\n pcsc += 1\n return sum([-(float(JbQV[UXqs]) / pcsc) * oyIN.log2(float(JbQV[UXqs]) / pcsc) for UXqs in JbQV.keys()])",
"def ElV2(__n6):\n zhKx = len(... | [
"0.7328616",
"0.71650124",
"0.7097766",
"0.706306",
"0.70323503",
"0.70218766",
"0.6994249",
"0.6939835",
"0.69396365",
"0.69038767",
"0.68861264",
"0.68860614",
"0.688081",
"0.68786895",
"0.6860839",
"0.6857505",
"0.6842906",
"0.6841679",
"0.6830465",
"0.68263215",
"0.682534... | 0.7049804 | 4 |
Returns the index of the attribute given a list of attributes. | def Vn7Z(xC3W, azoT):
for YRbF in range(14):
if xC3W == azoT[YRbF]:
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1R_(nPrm, CECP, xC3W):\n Mljr = nPrm['stimuli'][CECP]['dimnames']\n for a7Gj, Zkyx in enumerate(Mljr):\n if Zkyx == xC3W:\n return a7Gj\n raise KeyError('Attribute {} for stimulus_ids {} not found!'.format(xC3W, CECP))",
"def mZc0(YKHO, *qIxc):\n return _VfD.XMLToken_getAttrInd... | [
"0.73938876",
"0.72550905",
"0.69739354",
"0.6962037",
"0.6157904",
"0.5883374",
"0.56698936",
"0.5663685",
"0.56469834",
"0.5610526",
"0.5521971",
"0.5484828",
"0.5475316",
"0.5472528",
"0.54595095",
"0.5449486",
"0.54472905",
"0.5440559",
"0.5406396",
"0.5391892",
"0.538325... | 0.80519223 | 0 |
Return the average minutes of delays in each month | def TSQy(NCls: str) -> x1iM[tuple]:
xDcj = "SELECT month, AVG(minutes)\n FROM delays\n GROUP BY month\n ORDER BY CASE\n WHEN month = 'sept2017' THEN 1\n WHEN month = 'oct2017' THEN 2\n WHEN month = 'nov2017' THEN 3\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KFS4(nPrm=rLdf.DataFrame()):\n return nPrm.resample('MS').mean()",
"def JMmr(YKHO):\n pass",
"def x7Yb(EcVT, pZWh, gIjT):\n yKUR = oyIN.shape(EcVT)[0]\n IaVX = oyIN.zeros((yKUR, 24 * 12))\n for _Fqy in range(yKUR):\n _KgW = 0\n for CjKC in range(365):\n for ROt1 in r... | [
"0.6415436",
"0.64030516",
"0.616808",
"0.61372477",
"0.59920913",
"0.59920913",
"0.59920913",
"0.59679264",
"0.59148836",
"0.5846982",
"0.5832878",
"0.58218294",
"0.58129346",
"0.58070534",
"0.5757412",
"0.5682873",
"0.5660415",
"0.56571954",
"0.5655737",
"0.56556123",
"0.56... | 0.6766947 | 0 |
Writes a file to the git database and produces its git hash. | def cczZ(YKHO, OZKa, sWmO, SZsr):
HCmI = 'hash-object -t blob -w --stdin'.split(' ')
LFdf = YKHO.api.m.raw_io.input(OZKa)
zJsh = YKHO.api.m.raw_io.output()
gR3p = 'Hashing modified DEPS file with revision ' + SZsr
IjR2 = YKHO.api.m.git(*HCmI, cwd=sWmO, stdin=LFdf, stdout=zJsh, name=gR3p)
sM10 = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zyFt(YKHO, Ux0P, kGys):\n vxw0 = YKHO.repo.create_blob(kGys)\n YKHO.index.add(X9mY.IndexEntry(Ux0P, vxw0, X9mY.GIT_FILEMODE_BLOB))",
"def jSYO(VUYR, Q0bu):\n x3nm = z82G()\n for zFiD in open(VUYR):\n x3nm.add_sha256(pNrF(zFiD.rstrip()))\n x3nm.build()\n NtK1 = x3nm.commit(Q0bu)\n ... | [
"0.6597363",
"0.6380266",
"0.6364687",
"0.6328963",
"0.62690824",
"0.62345916",
"0.61473936",
"0.6108748",
"0.60977906",
"0.6085713",
"0.6074401",
"0.60660505",
"0.6026786",
"0.60245496",
"0.5995089",
"0.5989244",
"0.5989244",
"0.59781533",
"0.5956775",
"0.5951876",
"0.592963... | 0.686036 | 0 |
Convert underlying query compilers data to ``pandas.DataFrame``. Returns pandas.DataFrame The QueryCompiler converted to pandas. | def onUf(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hbal(YKHO) -> 'pd.DataFrame':\n import pandas as rLdf\n jQ3Z = rLdf.DataFrame([rdlD.as_series() for rdlD in YKHO.rows])\n return jQ3Z",
"def CcBk(YKHO):\n nPrm = YKHO._get_data(pd=True)\n return nPrm",
"def onUf(YKHO):\n import pandas as rLdf\n map = {}\n for exwG, Z9rn in YKHO._fie... | [
"0.7178566",
"0.7074102",
"0.7027044",
"0.7026306",
"0.70097536",
"0.69882536",
"0.6868304",
"0.6771064",
"0.67515075",
"0.67194295",
"0.6719048",
"0.67129284",
"0.67118466",
"0.66970575",
"0.6681513",
"0.66803813",
"0.66692424",
"0.66164184",
"0.6548798",
"0.6543395",
"0.650... | 0.63851786 | 29 |
Fill null elements of `self` with value in the same location in `other`. If axes are not equal, perform frames alignment first. | def pj7N(YKHO, Elif, **B2fa):
return FKnw.register(CwDs.DataFrame.combine_first)(YKHO, other=Elif, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zvxO(YKHO, Elif):\n if Elif is None:\n yield\n else:\n CsqA = U8Lr(((G1Hx, Ty9i) for G1Hx, Ty9i in YKHO.variables.items() if G1Hx not in YKHO.dims))\n kc1W = fu1a([YKHO.variables, Elif.variables], priority_vars=CsqA)\n yield\n YKHO._update_coords(kc1W)",
"def LGJQ(YKH... | [
"0.6012547",
"0.57464975",
"0.5619093",
"0.5563153",
"0.5557716",
"0.555148",
"0.5465113",
"0.54503524",
"0.5358417",
"0.530338",
"0.52908725",
"0.5289391",
"0.5281142",
"0.5274167",
"0.525185",
"0.52477515",
"0.5211381",
"0.51700735",
"0.51383066",
"0.51355696",
"0.5130268",... | 0.0 | -1 |
Get column data by label as pandas.Series. | def yNvX(YKHO, H5ew):
Aofo = YKHO.getitem_array([H5ew]).to_pandas().squeeze(axis=1)
if not isinstance(Aofo, CwDs.Series):
raise RuntimeError(f'Expected getting column {H5ew} to give ' + f'pandas.Series, but instead got {type(Aofo)}')
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iVRZ(YKHO, UXqs):\n kZIt = []\n for WKvO in YKHO.rows:\n kZIt = kZIt + [WKvO[YKHO.column_labels.index(UXqs)]]\n return kZIt",
"def iBd8(YKHO, zYnp):\n Z9rn = zYnp\n if isinstance(Z9rn, g760.Hashable) and Z9rn in YKHO.column_labels:\n return YKHO[Z9rn]\n else:\n assert l... | [
"0.70182896",
"0.61772114",
"0.59096074",
"0.58245206",
"0.57554513",
"0.57306933",
"0.5685542",
"0.5679807",
"0.5640324",
"0.5635656",
"0.5605904",
"0.5561545",
"0.55126536",
"0.5478005",
"0.54747593",
"0.5467604",
"0.5461635",
"0.5413309",
"0.5363357",
"0.5361741",
"0.53364... | 0.5803683 | 4 |
Return boolean if values in the object are monotonically increasing. Returns bool | def n_ei(YKHO):
return nASC.register(CwDs.Series.is_monotonic_increasing)(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b9KO(YKHO) -> bool:\n return YKHO[::-1].is_monotonic_increasing",
"def mwCj(YKHO):\n AOBR = 0\n for BWXx in YKHO.data:\n if BWXx < AOBR:\n return False\n AOBR = BWXx\n return True",
"def im8t(YKHO):\n return all((YKHO(YRbF) < YKHO(YRbF + 1) for YRbF in range(len(YKHO... | [
"0.6865822",
"0.67540365",
"0.6742378",
"0.65915745",
"0.6518575",
"0.6318547",
"0.6254051",
"0.6214034",
"0.6207452",
"0.6125734",
"0.6117266",
"0.6111474",
"0.60909104",
"0.60753226",
"0.6040103",
"0.602355",
"0.60044944",
"0.5992493",
"0.5974965",
"0.5969545",
"0.5969133",... | 0.65452826 | 4 |
Return boolean if values in the object are monotonically decreasing. Returns bool | def b9KO(YKHO):
return nASC.register(CwDs.Series.is_monotonic_decreasing)(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b9KO(YKHO) -> bool:\n return YKHO[::-1].is_monotonic_increasing",
"def hfzg(nPrm):\n pass",
"def n_ei(YKHO):\n return nASC.register(CwDs.Series.is_monotonic_increasing)(YKHO)",
"def bwHl(YKHO):\n return not YKHO.direction()",
"def Plel(YKHO):\n return YKHO.zeta > 0",
"def Mg38(jzdc):\n... | [
"0.7661428",
"0.6975034",
"0.6746523",
"0.672616",
"0.6633899",
"0.6598428",
"0.6584515",
"0.65740216",
"0.6449511",
"0.6340435",
"0.6302828",
"0.62531674",
"0.6241536",
"0.6213131",
"0.62054986",
"0.6118089",
"0.60890293",
"0.60751647",
"0.6074199",
"0.60673976",
"0.60640115... | 0.6924787 | 2 |
Replace values where the condition `cond` is True. Returns BaseQueryCompiler New QueryCompiler with elements replaced with ones from `other` where `cond` is True. | def ZHfW(YKHO, Q3Ge, Elif, **B2fa):
return ul7n.register(CwDs.DataFrame.mask)(YKHO, Q3Ge, Elif, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qJWj(YKHO, Q3Ge, Elif, **B2fa):\n return ul7n.register(CwDs.DataFrame.where)(YKHO, cond=Q3Ge, other=Elif, **B2fa)",
"def AtkE(yLHq, RKYb, iPqd):\n for Ebfl in oyIN.ndindex(yLHq.shape):\n if iPqd[Ebfl]:\n yLHq[Ebfl] = RKYb[Ebfl]",
"def RoGg(YKHO, SRYB, VN2L):\n if YKHO.cond == s0V... | [
"0.5708477",
"0.5282244",
"0.5097151",
"0.49866322",
"0.4963681",
"0.48932472",
"0.47283506",
"0.46269017",
"0.4600547",
"0.45533377",
"0.45529318",
"0.45372614",
"0.4421013",
"0.43981633",
"0.4394641",
"0.43856317",
"0.43517214",
"0.43175963",
"0.43090308",
"0.43044934",
"0.... | 0.52414435 | 2 |
Convert columns of the QueryCompiler to the datetime dtype. | def OLXh(YKHO, *qIxc, **B2fa):
return nASC.register(CwDs.to_datetime)(YKHO, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnKZ(f4IJ):\n f4IJ = f4IJ.convert_objects(convert_numeric=True)\n for iVRZ in f4IJ:\n if iVRZ in Z9rn.dates:\n f4IJ[iVRZ] = f4IJ[iVRZ].astype('datetime64')\n return f4IJ",
"def EOJF(YKHO):\n return x0GU.register(CwDs.Series.dt.to_pydatetime)(YKHO)",
"def rfWZ(jQ3Z):\n jQ3Z ... | [
"0.6836998",
"0.66343814",
"0.64229715",
"0.6328779",
"0.6140836",
"0.6100975",
"0.6092735",
"0.5967828",
"0.5964857",
"0.5899258",
"0.5881144",
"0.58372337",
"0.5830784",
"0.58270943",
"0.5816091",
"0.5737446",
"0.5700464",
"0.5669621",
"0.56645733",
"0.5652112",
"0.5608656"... | 0.6433974 | 2 |
Apply passed function elementwise. | def JQ7D(YKHO, JfyU, *qIxc, **B2fa):
return ul7n.register(CwDs.DataFrame.applymap)(YKHO, JfyU, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dRO0(YKHO, JfyU, *qIxc):\n pass",
"def dRO0(YKHO, JfyU, *qIxc, **B2fa):\n pass",
"def dRO0(YKHO, m2Zb, *qIxc, **B2fa):\n pass",
"def dRO0(Emd4, JfyU):\n raise NotImplementedError",
"def yH8O(aPd6, eHNT):\n for YRbF in range(len(aPd6)):\n aPd6[YRbF] = eHNT(aPd6[YRbF])",
"def nrOS... | [
"0.7667716",
"0.7619807",
"0.75417525",
"0.72570974",
"0.72059256",
"0.7130036",
"0.7086028",
"0.7043221",
"0.7027774",
"0.70002466",
"0.696466",
"0.6847594",
"0.6844164",
"0.6839754",
"0.6635122",
"0.6622388",
"0.6605588",
"0.659064",
"0.655061",
"0.6528702",
"0.6528017",
... | 0.5760019 | 97 |
Return the integer indices that would sort the Series values. Override ndarray.argsort. Argsorts the value, omitting NA/null values, and places the result in the same locations as the nonNA values. | def hj4Q(YKHO, **B2fa):
return nASC.register(CwDs.Series.argsort)(YKHO, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hj4Q(nPrm, reversed=False):\n d6pt = oyIN.arange(len(nPrm))\n H5ew = lambda WKvO: nPrm[WKvO]\n QCY0 = sorted(d6pt, key=H5ew, reverse=reversed)\n QCY0 = oyIN.array(list(QCY0))\n return QCY0",
"def dzSq(Q6uT):\n return sorted(range(len(Q6uT)), key=Q6uT.__getitem__)",
"def gIIn(jzdc):\n j... | [
"0.68214244",
"0.6388833",
"0.6262796",
"0.6152183",
"0.6017884",
"0.59798586",
"0.59694034",
"0.59371024",
"0.5712881",
"0.5704977",
"0.567824",
"0.56720495",
"0.5667777",
"0.5667609",
"0.5646133",
"0.5620333",
"0.5593816",
"0.55647707",
"0.55567133",
"0.55500156",
"0.553832... | 0.67422855 | 1 |
Convert underlying data to numeric dtype. | def iOox(YKHO, *qIxc, **B2fa):
return nASC.register(CwDs.to_numeric)(YKHO, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3c1(YKHO):\n for iVRZ in list(YKHO.data.columns):\n if not diP9(YKHO.data[iVRZ]):\n hkxX = list(sorted(YKHO.data[iVRZ].unique()))\n _0VL = [d6pt for d6pt, BWXx in enumerate(hkxX)]\n YKHO.data[iVRZ] = YKHO.data[iVRZ].replace(to_replace=hkxX, value=_0VL)",
"def C6M2(... | [
"0.7196644",
"0.70000637",
"0.6628361",
"0.6535753",
"0.6468631",
"0.6201777",
"0.62004703",
"0.61736465",
"0.61135316",
"0.6094723",
"0.6033249",
"0.601148",
"0.5949899",
"0.59299564",
"0.59199625",
"0.59169346",
"0.5874936",
"0.58705735",
"0.58699816",
"0.58555406",
"0.5826... | 0.7104397 | 1 |
Convert columns dtypes to given dtypes. | def CVhi(YKHO, KsoV, UAju: str='raise'):
return ul7n.register(CwDs.DataFrame.astype)(YKHO, dtype=KsoV, errors=UAju) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uXnq(YKHO):\n tJPp = ['category' if uNZv == 1 else float for uNZv in YKHO.user_column_label]\n YKHO.df = YKHO.df.astype(dict(zip(YKHO.df.columns, tJPp)))\n LR7a = rLdf.DataFrame(YKHO.df.dtypes).reset_index()\n LR7a.columns = ['column_name', 'dtype']\n LR7a.dtype = LR7a.dtype.astype(str)\n YKH... | [
"0.66267186",
"0.65652454",
"0.65377486",
"0.6522656",
"0.64960134",
"0.63529843",
"0.6338003",
"0.63355935",
"0.63288695",
"0.63015723",
"0.62628376",
"0.62533873",
"0.6242137",
"0.6230301",
"0.6191892",
"0.6174604",
"0.61647916",
"0.6143277",
"0.6132584",
"0.6125871",
"0.60... | 0.63469785 | 6 |
Attempt to infer better dtypes for object columns. Attempts soft conversion of objectdtyped columns, leaving nonobject and unconvertible columns unchanged. The inference rules are the same as during normal Series/DataFrame construction. Returns BaseQueryCompiler New query compiler with udpated dtypes. | def dLBE(YKHO):
return ul7n.register(CwDs.DataFrame.infer_objects)(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aaiM(YKHO, dLBE: bool=True, bp7k: bool=True, I0qC: bool=True, YmfK: bool=True, fanq: bool=True, Bo1W: DtypeBackend='numpy_nullable'):\n return ul7n.register(CwDs.DataFrame.convert_dtypes)(YKHO, infer_objects=dLBE, convert_string=bp7k, convert_integer=I0qC, convert_boolean=YmfK, convert_floating=fanq, dtype_... | [
"0.7311645",
"0.6141115",
"0.5951801",
"0.59252405",
"0.5858429",
"0.5804716",
"0.57135195",
"0.56596303",
"0.5637005",
"0.5549481",
"0.55312085",
"0.55210197",
"0.54947287",
"0.5372321",
"0.53722",
"0.53638613",
"0.53631264",
"0.5359891",
"0.5349382",
"0.5315697",
"0.5295546... | 0.5911609 | 4 |
Return index label of first nonNaN/NULL value. Returns scalar | def GbX6(YKHO):
return ul7n.register(CwDs.DataFrame.first_valid_index)(YKHO).to_pandas().squeeze() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HRHN(qw7D):\n for d6pt, BWXx in enumerate(qw7D):\n if not oyIN.isnan(BWXx):\n return d6pt",
"def A4oB(YKHO):\n if YKHO.labels:\n return YKHO.labels[0]\n else:\n return None",
"def rCB1(iVRZ, jQ3Z):\n return jQ3Z[jQ3Z[iVRZ].isna()].index.values",
"def A4oB(YKHO)... | [
"0.6835309",
"0.68267745",
"0.65452796",
"0.6204963",
"0.61745405",
"0.6162127",
"0.6115417",
"0.6045796",
"0.60122323",
"0.59438425",
"0.59438425",
"0.59438425",
"0.59356296",
"0.59039",
"0.58519214",
"0.58519214",
"0.5845297",
"0.5845297",
"0.5835075",
"0.5835075",
"0.58037... | 0.0 | -1 |
Get position of the first occurrence of the minimum for each row or column. | def fsrv(YKHO, **B2fa):
return ul7n.register(CwDs.DataFrame.idxmin)(YKHO, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcNI(YKHO):\n JRC0 = 1000\n LChT = 1000\n G1Hx = len(YKHO.__col_lista)\n for YRbF in range(G1Hx):\n WKvO, LVAh = YKHO.__col_lista[YRbF]\n if WKvO < JRC0:\n JRC0 = WKvO\n if LVAh < LChT:\n LChT = LVAh\n return (JRC0, LChT)",
"def v8eB(oWao):\n YRbF,... | [
"0.7606432",
"0.7486169",
"0.74666184",
"0.7378834",
"0.72925377",
"0.7253958",
"0.71094084",
"0.710032",
"0.710032",
"0.7065796",
"0.69802296",
"0.69791645",
"0.6967608",
"0.6948678",
"0.6929608",
"0.6911934",
"0.6895985",
"0.688899",
"0.6875615",
"0.6849772",
"0.6836843",
... | 0.0 | -1 |
Return index label of last nonNaN/NULL value. Returns scalar | def GUPV(YKHO):
return ul7n.register(CwDs.DataFrame.last_valid_index)(YKHO).to_pandas().squeeze() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IGz6(WKvO):\n for YRbF in range(YKHO.n_cols):\n or8S = (WKvO + YRbF) % YKHO.n_cols\n Yfcq = YKHO._x_positions[or8S]\n if YKHO._cols[Yfcq].label is None:\n return or8S",
"def A4oB(YKHO):\n if YKHO.labels:\n return YKHO.labels[0]\n else:\n return None",
... | [
"0.62180364",
"0.61514366",
"0.6128868",
"0.6112533",
"0.59477663",
"0.59477663",
"0.5915875",
"0.58772737",
"0.58652467",
"0.5849298",
"0.57923335",
"0.5783711",
"0.5774498",
"0.5758952",
"0.57212836",
"0.5717264",
"0.5700071",
"0.56982714",
"0.5691616",
"0.56902575",
"0.568... | 0.5335152 | 56 |
Return boolean Series denoting duplicate rows. | def Fzy1(YKHO, **B2fa):
return ul7n.register(CwDs.DataFrame.duplicated)(YKHO, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PQsW(jQ3Z):\n return jQ3Z.duplicated().sum()",
"def nV9I(YKHO):\n return bool(YKHO.duplicated)",
"def sLSL(YKHO):\n c_NS = [rLdf.Series({'A': 'high', 'B': P9M2(lower=1, upper=1), 'C': P9M2(lower=1, upper=1), 'Class': 'apple'}, name=1), rLdf.Series({'A': 'high', 'B': P9M2(lower=1, upper=1), 'C': P9... | [
"0.66962427",
"0.6345543",
"0.6297283",
"0.62205887",
"0.62191767",
"0.61853206",
"0.60617083",
"0.6031279",
"0.5952495",
"0.5909576",
"0.5865909",
"0.57123417",
"0.56867814",
"0.5643697",
"0.56338406",
"0.5628796",
"0.5599933",
"0.55956906",
"0.5586573",
"0.5564077",
"0.5559... | 0.6518206 | 1 |
Get column data for target labels. | def HBuy(YKHO, H5ew, XCb3=False, JJjO=False):
def iYZ_(jQ3Z, H5ew):
if XCb3:
return jQ3Z.iloc[:, H5ew]
else:
return jQ3Z[H5ew]
return ul7n.register(iYZ_)(YKHO, key=H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cttL():\n nPrm = QyXt()\n pan_ = nPrm.get_label_col()\n return pan_.values",
"def Te1x(YKHO):\n Crrw = list(YKHO.meta_data[YKHO.target_column])\n return Crrw",
"def RH8N(YKHO, jQ3Z):\n return jQ3Z.iloc[:, YKHO.target_col]",
"def iVRZ(YKHO, UXqs):\n kZIt = []\n for WKvO in YKHO.row... | [
"0.76562256",
"0.72727287",
"0.7057856",
"0.69942695",
"0.6444361",
"0.6442194",
"0.64207816",
"0.62213004",
"0.61960655",
"0.6189303",
"0.6078397",
"0.59455943",
"0.5943184",
"0.5935936",
"0.59046566",
"0.59012216",
"0.5884195",
"0.5856353",
"0.5848508",
"0.58355045",
"0.582... | 0.0 | -1 |
Pivot a level of the (necessarily hierarchical) index labels. | def Nps3(YKHO, ABDL, xgWT):
return ul7n.register(CwDs.DataFrame.unstack)(YKHO, level=ABDL, fill_value=xgWT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f3rb(jzdc, OO7x, Crrw):\n if len(Crrw) != len(OO7x) + 1:\n raise ValueError('Must be one more label than number of thresholds')\n SUOP = _w65(jzdc, OO7x)\n return oyIN.take(Crrw, SUOP)",
"def _OWS(Emd4, PKko, ZWCE=[]):\n assert Emd4.is_selector(PKko)\n assert not Emd4.is_ambiguous(PKko)... | [
"0.55825186",
"0.54157853",
"0.5290193",
"0.52227354",
"0.51961017",
"0.51941335",
"0.51261646",
"0.51091826",
"0.5059404",
"0.50194997",
"0.49861678",
"0.49650565",
"0.4941675",
"0.49147475",
"0.49135137",
"0.4880725",
"0.48776016",
"0.4852325",
"0.4843919",
"0.48432368",
"0... | 0.45496312 | 55 |
Return index labels of the specified axis. | def QIui(YKHO, jDK_):
return YKHO.index if jDK_ == 0 else YKHO.columns | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VitB(YKHO, jDK_=0):\n return YKHO.get_axis(jDK_).names",
"def _s3B(YKHO, jDK_=0):\n return YKHO.get_axis(jDK_).name",
"def lz2s(nPrm, jDK_=0, Z1SI=True):\n if jDK_ not in (0, 1, 2):\n raise ValueError(f'Invalid axis {jDK_}.')\n Crrw = None\n L_oh()\n if isinstance(nPrm, gyIm):\n ... | [
"0.77826273",
"0.67891854",
"0.663276",
"0.66251105",
"0.6609745",
"0.6567489",
"0.65309304",
"0.6408788",
"0.63370806",
"0.6294041",
"0.61580217",
"0.61505395",
"0.61101425",
"0.6065778",
"0.60636157",
"0.5994912",
"0.59918153",
"0.596576",
"0.59245753",
"0.59097874",
"0.585... | 0.6320961 | 9 |
Check if specified axis is indexed by MultiIndex. | def WisN(YKHO, jDK_=0):
if jDK_ == 0:
return isinstance(YKHO.index, CwDs.MultiIndex)
assert jDK_ == 1
return isinstance(YKHO.columns, CwDs.MultiIndex) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OjXW(YKHO, ojDc, jDK_):\n d6pt = YKHO._obj.index\n FsOK = False\n JrXw = False\n wrgz = False\n if jDK_ == 0 and YKHO._has_fancy_index():\n try:\n if type(ojDc) is tuple:\n FsOK = len(ojDc) == len(d6pt.levshape) and ojDc in d6pt\n JrXw = not FsOK and o... | [
"0.6597858",
"0.6183221",
"0.5924871",
"0.5913737",
"0.58870906",
"0.5857055",
"0.5823348",
"0.57668537",
"0.5764379",
"0.5760966",
"0.56905574",
"0.56238174",
"0.5615301",
"0.55744624",
"0.55022734",
"0.5496",
"0.5463239",
"0.5444868",
"0.5387473",
"0.53632617",
"0.52963406"... | 0.8425392 | 0 |
Set index name for the specified axis. | def hlCj(YKHO, mWFP, jDK_=0):
YKHO.get_axis(jDK_).name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xZYe(YKHO, ZWCE, jDK_=0):\n YKHO.get_axis(jDK_).names = ZWCE",
"def d5rV(mWFP, MPlV='XYZ'):\n KUch.name(mWFP, MPlV)",
"def _s3B(YKHO, jDK_=0):\n return YKHO.get_axis(jDK_).name",
"def pwL3(YKHO):\n YKHO.xi = YKHO.i1\n YKHO.yi = YKHO.i2",
"def phka(or8S=-1, MPlV='XYZ'):\n KUch.axclrs(o... | [
"0.81254125",
"0.768487",
"0.72516674",
"0.7115051",
"0.6894231",
"0.6474862",
"0.6446114",
"0.6410826",
"0.62496513",
"0.6227452",
"0.6226252",
"0.61387885",
"0.60937417",
"0.5987103",
"0.5939337",
"0.59236515",
"0.58841425",
"0.5819334",
"0.5790911",
"0.5763626",
"0.5762923... | 0.91129285 | 0 |
Localize tznaive index of a Series or DataFrame to target time zone. | def csYv(YKHO, yl4j, jDK_=0, ABDL=None, jth9=True, lNEH='raise', qAcR='raise'):
Mlmp = CwDs.Series(index=YKHO.get_axis(jDK_)).tz_localize(yl4j, axis=jDK_, level=ABDL, copy=False, ambiguous=lNEH, nonexistent=qAcR).index
YEnM = YKHO.copy() if jth9 else YKHO
if jDK_ == 0:
YEnM.index = Mlmp
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YLZk(jQ3Z, qpDA):\n if qpDA == 'berk':\n _hcX = jQ3Z.index.name[-5:]\n if _hcX[0] == '-':\n yl4j = '+'\n else:\n yl4j = '-'\n zj8f = int(_hcX[1:3])\n yl4j = 'Etc/GMT' + yl4j + str(zj8f)\n jQ3Z.index = jQ3Z.index.tz_localize(yl4j).tz_convert('Am... | [
"0.6465465",
"0.6421628",
"0.6330451",
"0.6209787",
"0.6179455",
"0.61222404",
"0.6120622",
"0.610939",
"0.59529567",
"0.594147",
"0.5828125",
"0.553847",
"0.5419413",
"0.54193896",
"0.5373239",
"0.5312458",
"0.525091",
"0.5184261",
"0.51657677",
"0.508285",
"0.50410527",
"... | 0.6802567 | 0 |
Get the timezone of the underlying timeseries data. Returns BaseQueryCompiler QueryCompiler containing a single value, timezone of the data. | def ekQh(YKHO):
return x0GU.register(CwDs.Series.dt.tz)(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI(YKHO):\n o7b4 = YKHO._router_request(YKHO._make_request_data('getTimeZone', data=dict()))\n return o7b4['data']",
"def ASro(YKHO):\n return YKHO._query_timezone",
"def yl4j(YKHO) -> TYhG | None:\n return getattr(YKHO.dtype, 'tz', None)",
"def MbZJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n ret... | [
"0.6352232",
"0.62932754",
"0.57562435",
"0.5677687",
"0.56559086",
"0.564777",
"0.5560829",
"0.55422443",
"0.54996294",
"0.547904",
"0.545104",
"0.54244906",
"0.54244906",
"0.54244906",
"0.5383554",
"0.53727037",
"0.53195506",
"0.531601",
"0.52916265",
"0.526059",
"0.5243439... | 0.6071103 | 2 |
Convert timeseries data to the specified time zone. | def oVkW(YKHO, yl4j):
return x0GU.register(CwDs.Series.dt.tz_convert)(YKHO, yl4j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ruwX(YKHO, Uof5):\n if isinstance(Uof5, FXGE.tzinfo.BaseTzInfo):\n YKHO.dates = oyIN.array([Uof5.normalize(_c1T.astimezone(Uof5)) for _c1T in YKHO.dates])\n else:\n YKHO.dates = oyIN.array([_c1T.astimezone(Uof5) for _c1T in YKHO.dates])",
"def z2rf(a1PO):\n from dateutil import tz\n ... | [
"0.63275766",
"0.5790547",
"0.578196",
"0.5758568",
"0.56332403",
"0.53255606",
"0.5304012",
"0.52989143",
"0.52742994",
"0.5271136",
"0.5270757",
"0.526997",
"0.5237644",
"0.5229533",
"0.5194383",
"0.51664364",
"0.5146615",
"0.5102725",
"0.50631636",
"0.5038844",
"0.50242853... | 0.58144325 | 1 |
Resample timeseries data and get the values at the new frequency. Group data into intervals by timeseries row/column with a specified frequency and get values at the new frequency. | def P3gp(YKHO, ovaS, xgWT):
return s7Mt.register(CwDs.core.resample.Resampler.asfreq)(YKHO, ovaS, xgWT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W_vr(nPrm, Gjtu, ga2h, _Fsb):\n if not nPrm:\n return []\n else:\n jQ3Z = rLdf.DataFrame(nPrm)\n jQ3Z[ga2h] = rLdf.to_datetime(jQ3Z[ga2h])\n bGV8 = jQ3Z.set_index(ga2h)\n Vr5I = bGV8.resample(Gjtu).mean().round(_Fsb)\n hIfO = [{'pollutant_value': rdlD.pollutant_v... | [
"0.7527857",
"0.65395516",
"0.640981",
"0.6323524",
"0.623719",
"0.6235245",
"0.613569",
"0.6012482",
"0.59993255",
"0.59604543",
"0.59267193",
"0.5916196",
"0.5837326",
"0.5806948",
"0.56829226",
"0.56749856",
"0.5665765",
"0.5574831",
"0.5569976",
"0.55341446",
"0.5513231",... | 0.5271273 | 31 |
returns a random word at random | def eIcJ(YKHO) -> str:
return 'ANONYMOUS' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a2WA(YKHO):\n pass",
"def eWiV():\n with open('/home/sarga/text_words.txt', 'r') as eHNT:\n FjZn = eHNT.read().split(' ')\n return tuKI.choice(FjZn)",
"def FjP9(cfuW):\n return tuKI.choice(cfuW)",
"def uway():\n cfuW = G8sL()\n GIN8 = tuKI.choice(cfuW)\n return GIN8",
"def e... | [
"0.8547697",
"0.8541739",
"0.84624016",
"0.8407738",
"0.8344305",
"0.8344305",
"0.8344305",
"0.8302557",
"0.8302557",
"0.8302557",
"0.81407785",
"0.8104453",
"0.8038347",
"0.7990067",
"0.7870184",
"0.7812768",
"0.77841663",
"0.77741605",
"0.7651383",
"0.76324385",
"0.76273364... | 0.0 | -1 |
Return the result of adding x to y. | def H2v5(WKvO, LVAh):
return WKvO + LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(WKvO, LVAh):\n sum = 0\n sum = WKvO + LVAh\n return sum",
"def jWLi(WKvO, LVAh):\n WKvO[:] += LVAh[:]\n return WKvO",
"def H2v5(WKvO, LVAh):\n return WKvO + LVAh",
"def H2v5(WKvO, LVAh):\n return WKvO + LVAh",
"def H2v5(WKvO, LVAh):\n return WKvO + LVAh",
"def H2v5(WKvO, ... | [
"0.8285821",
"0.8139316",
"0.8038355",
"0.78860354",
"0.78860354",
"0.7833536",
"0.7713705",
"0.77054733",
"0.7648527",
"0.75544655",
"0.7370305",
"0.72671247",
"0.72570634",
"0.72168326",
"0.71489775",
"0.70954823",
"0.707491",
"0.70641196",
"0.7056436",
"0.7038028",
"0.7018... | 0.8119181 | 12 |
Return the result of taking x to the nth power. | def naF9(WKvO, exwG):
if exwG < 0:
raise ValueError('n cannot be negative')
elif 0 < exwG < 1.0:
raise ValueError('n cannot be fractional')
Aofo = 1
for bGrB in range(exwG):
Aofo = wTxu(Aofo, WKvO)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naF9(WKvO, exwG):\n if exwG == 0:\n return 1\n Aofo = naF9(WKvO, epAf.floor(exwG / 2))\n if exwG % 2 > 0:\n return WKvO * Aofo * Aofo\n else:\n return Aofo * Aofo",
"def naF9(WKvO, exwG):\n BWXx = 1\n for YRbF in range(exwG):\n BWXx = wTxu(BWXx, WKvO)\n return... | [
"0.8199509",
"0.81016123",
"0.8088352",
"0.7859765",
"0.7859765",
"0.7715088",
"0.7705435",
"0.76808894",
"0.75457567",
"0.7507694",
"0.74372077",
"0.7429175",
"0.7158701",
"0.7127153",
"0.71141845",
"0.70898527",
"0.70872205",
"0.7086152",
"0.70483077",
"0.7018379",
"0.70050... | 0.76778656 | 8 |
Return the dot product between this vector and another | def BJ1H(YKHO, he6J):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('Input vectors must be of same length, not %d and %d' % (len(jzdc), len(Fg_i)))\n return float(sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range(len(jzdc))]))",
"def BJ1H(jzdc, Fg_i):\n return oyIN.vdot(jzdc.arr, Fg_i.arr)",
"def... | [
"0.8505826",
"0.8368459",
"0.8303031",
"0.8283391",
"0.8272856",
"0.8154917",
"0.81380934",
"0.81278825",
"0.81029814",
"0.80807114",
"0.80738443",
"0.80517715",
"0.80395997",
"0.80368125",
"0.80174136",
"0.80084735",
"0.7994307",
"0.79861826",
"0.79775643",
"0.79737896",
"0.... | 0.7623168 | 49 |
Return a normalized version of this Vector | def HBfW(YKHO):
return YKHO / YKHO.norm() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBfW(YKHO):\n len = YKHO.length\n return lNLu(YKHO.x / len, YKHO.y / len)",
"def HBfW(YKHO):\n u54L = YKHO.length\n if u54L != 0:\n return YKHO / u54L\n return DKJk(YKHO)",
"def NkkI(YKHO):\n if not YKHO.magnitude():\n return lNLu(0, 0)\n vC9B = 1 / YKHO.magnitude()\n ... | [
"0.86686355",
"0.86559093",
"0.8580528",
"0.85564035",
"0.8480029",
"0.8430394",
"0.84175295",
"0.84173983",
"0.8393434",
"0.83588344",
"0.82665974",
"0.8200469",
"0.8017504",
"0.7981171",
"0.7964477",
"0.79497397",
"0.7867605",
"0.7790052",
"0.7776491",
"0.7735478",
"0.77121... | 0.82586324 | 11 |
If each component of this vector equals (in value, not necessarily reference) each component of the other vector, return True | def xa14(YKHO, Elif):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRKn(WKvO):\n return oLG2.all(WKvO == WKvO[0])",
"def GrS6(hQHm, jlSq):\n if jlSq.x - 0.001 <= hQHm.x <= jlSq.x + 0.001 and jlSq.y - 0.001 <= hQHm.y <= jlSq.y + 0.001 and (jlSq.z - 0.001 <= hQHm.z <= jlSq.z + 0.001):\n return True",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, lNLu):\n ... | [
"0.7244127",
"0.7240972",
"0.71351475",
"0.71092814",
"0.70171255",
"0.6862085",
"0.6798979",
"0.6778298",
"0.67446285",
"0.67352504",
"0.67322564",
"0.6722077",
"0.66963804",
"0.66633445",
"0.66473705",
"0.66326976",
"0.6627866",
"0.6543714",
"0.652508",
"0.65029955",
"0.650... | 0.0 | -1 |
Tests that the correct result is returned when repository is not set. | def ml64(YKHO):
YKHO.assertIsNone(YKHO.env.project_repo_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mS0H(YKHO):\n boHx = mY2R('https://repo.com/fake.git')\n YKHO.assertFalse(boHx.get_repo())\n if Hy7s.path.exists(H5tf + '/fake'):\n RDuA.rmtree(H5tf + '/fake')",
"def g1Yl(YKHO):\n YKHO.assertRaises(RIGj, p1QK, YKHO.repos)",
"def vr7C(YKHO):\n Wc9F = [YKHO.successfulresult, YKHO.faile... | [
"0.68190604",
"0.6580668",
"0.6512336",
"0.6402686",
"0.6382168",
"0.62787455",
"0.61984885",
"0.6154842",
"0.6127846",
"0.6126439",
"0.60788876",
"0.6036756",
"0.6020512",
"0.60083205",
"0.60046244",
"0.5992514",
"0.5959926",
"0.5957926",
"0.5954694",
"0.59232473",
"0.591526... | 0.59718096 | 16 |
Tests that the correct result is returned for owner. | def NJJd(YKHO):
YKHO.assertIsNone(YKHO.env.project_repo_owner) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xhGY(YKHO):\n bD7m = gxEw('projectroles:api_project_list')\n geh0 = YKHO.request_knox(bD7m, token=YKHO.get_token(YKHO.user_owner))\n YKHO.assertEqual(geh0.status_code, 200)\n Bv0m = qQXR.loads(geh0.content)\n YKHO.assertEqual(len(Bv0m), 1)\n YKHO.assertEqual(Bv0m[0]['sodar_uuid'], str(YKHO.pr... | [
"0.705032",
"0.6947268",
"0.6887776",
"0.6743806",
"0.67128575",
"0.67086506",
"0.6651376",
"0.65637034",
"0.6531271",
"0.64770263",
"0.64222896",
"0.63498306",
"0.63294023",
"0.6319555",
"0.62652695",
"0.62485087",
"0.6242229",
"0.624055",
"0.61685663",
"0.6159195",
"0.60562... | 0.61007816 | 20 |
Tests that the correct result is returned when repository contains the just the repo name (as it does outside of GitHub). | def RPzM(YKHO):
Hy7s.environ['REPOSITORY'] = YKHO.repo_name
YKHO.assertEqual(YKHO.env.project_repo_name, YKHO.repo_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L8cF(YKHO):\n bD7m = 'https://github.com/ivacf/archi'\n boHx = U6rx().fetch(bD7m)\n YKHO.assertEqual('archi', boHx['name'])",
"def TcL9(YKHO):\n Zg0d = pmON.join(gCuF.REPO_ROOT, 'test')\n uLKX.run('git init {0}'.format(Zg0d))\n GQYg = 'git://localhost'\n uLKX.run('git -C {0} remote add o... | [
"0.79387957",
"0.72274804",
"0.70685846",
"0.7066236",
"0.7042844",
"0.70427036",
"0.6866362",
"0.6829966",
"0.67533773",
"0.67025536",
"0.6701095",
"0.66502905",
"0.66423833",
"0.6629975",
"0.6610513",
"0.6603796",
"0.6558495",
"0.6557167",
"0.6529914",
"0.65183574",
"0.6492... | 0.67454344 | 9 |
Tests that the correct result is returned when repository is not set. | def ml64(YKHO):
YKHO.assertEqual(YKHO.env.git_url, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mS0H(YKHO):\n boHx = mY2R('https://repo.com/fake.git')\n YKHO.assertFalse(boHx.get_repo())\n if Hy7s.path.exists(H5tf + '/fake'):\n RDuA.rmtree(H5tf + '/fake')",
"def g1Yl(YKHO):\n YKHO.assertRaises(RIGj, p1QK, YKHO.repos)",
"def vr7C(YKHO):\n Wc9F = [YKHO.successfulresult, YKHO.faile... | [
"0.68190604",
"0.6580668",
"0.6512336",
"0.6402686",
"0.6382168",
"0.62787455",
"0.61984885",
"0.6154842",
"0.6127846",
"0.6126439",
"0.60788876",
"0.6036756",
"0.6020512",
"0.60083205",
"0.60046244",
"0.5992514",
"0.59718096",
"0.5959926",
"0.5957926",
"0.5954694",
"0.592324... | 0.5771215 | 33 |
Return the id of the mapper that will process this instance. | def W_lR(YKHO, g8x2):
kN9s = g8x2['type']
YAg3 = YKHO.mappers[kN9s]
return id(YAg3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JqtQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'route_map_id')",
"def JqtQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'route_map_id')",
"def unpH(YKHO):\n return YKHO.__id",
"def yRef(YKHO) -> str:\n return YKHO._depmap_id",
"def vDgp(YKHO):\n return YKHO.id",
"de... | [
"0.70546967",
"0.67053664",
"0.6474064",
"0.6465166",
"0.6455745",
"0.64422184",
"0.64422184",
"0.64002794",
"0.63903004",
"0.6381717",
"0.63603354",
"0.63550997",
"0.63550997",
"0.63550997",
"0.63550997",
"0.63549197",
"0.63549197",
"0.63549197",
"0.6314278",
"0.628576",
"0.... | 0.81042916 | 0 |
Move the instruction pointer to the specified index. If no index is provided, the instruction pointer incremented by one. | def JNHZ(YKHO, or8S: Optional[int]=None) -> None:
if or8S:
YKHO.ip = or8S
else:
YKHO.ip += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucSA(YKHO):\n if YKHO.simulator.programCounter < len(YKHO.simulator.instrCollection) * 4 + 4096:\n YKHO.simulator.instrCount += 1\n YKHO.instr = uliG(YKHO.simulator.mainmemory[YKHO.simulator.programCounter])\n else:\n YKHO.instr = None\n YKHO.simulator.programCounter += 4",
"def... | [
"0.59776795",
"0.56575114",
"0.5644023",
"0.55885756",
"0.55816555",
"0.5547853",
"0.5512334",
"0.54401666",
"0.54332864",
"0.54073185",
"0.53878546",
"0.5371363",
"0.5359736",
"0.53524834",
"0.5346483",
"0.5344448",
"0.53410846",
"0.5299588",
"0.5242052",
"0.5218073",
"0.521... | 0.67650664 | 0 |
Only store forms defined in the formsets list | def RTnt(YKHO, xzoi):
xzoi = dict(((L03z, xzoi[L03z]) for L03z in YKHO.context.formsets if L03z in xzoi))
return xzoi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w1H2(YKHO, QePW, L03z, dBAz, nZuS):\n dBAz.save()",
"def PBaR(YKHO, QePW, YPaw, dBAz):\n pass",
"def iyR2(YKHO, **B2fa):\n return YKHO.formsets[B2fa.get('prefix')](data=YKHO.get_form_kwargs().get('data'), **B2fa)",
"def eH5e(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n k_b7 = geh0.context.g... | [
"0.67014563",
"0.65062875",
"0.62511253",
"0.61880183",
"0.6096422",
"0.6093236",
"0.6020964",
"0.5973284",
"0.5954874",
"0.5920148",
"0.59046793",
"0.5898752",
"0.58766043",
"0.58450043",
"0.58153385",
"0.57910424",
"0.5790516",
"0.57819563",
"0.57571834",
"0.5735166",
"0.57... | 0.5493425 | 43 |
Set the password of the user with the value provided. | def G3s8(YKHO, jTXt):
YKHO.password = jTXt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZft(YKHO, zN5h):\n pass",
"def IJvu(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['userPassword'] = BWXx",
"def G3s8(YKHO, BWXx):\n r8hN = HBct.sha256()\n r8hN.update('-'.join([str(qcWV.now()), GPtr.get('security.password_salt')]))\n YKHO.salt = r8hN.hexdigest()\n YKHO.password_pending... | [
"0.83965147",
"0.83401",
"0.82305247",
"0.8219254",
"0.7953167",
"0.794184",
"0.788397",
"0.7800467",
"0.7728219",
"0.7727818",
"0.7718363",
"0.771215",
"0.7675518",
"0.76627034",
"0.7643271",
"0.7600908",
"0.7586816",
"0.75794786",
"0.757568",
"0.7566384",
"0.7560118",
"0.... | 0.80618644 | 4 |
Make ``GET`` request to ``self.list_view`` view. If ``user`` is not ``None``, the given user is authenticated before making the request. | def eejY(YKHO, CBIr=None):
QePW = YKHO.factory.get(YKHO.list_url, format='json')
rliA(QePW, CBIr)
_hkX = YKHO.list_view(QePW)
_hkX.render()
return _hkX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(YKHO, QePW, *qIxc, **B2fa):\n return super(_wf5, YKHO).list(QePW, *qIxc, **B2fa)",
"def nNXP(YKHO, CBIr=None):\n if not CBIr.is_authenticated:\n return YKHO.none()\n return YKHO.filter(users=CBIr)",
"def Hh2H(YKHO, QePW, Vh9X):\n tgfs = srYZ.from_string(Vh9X)\n locH = (yield YKHO... | [
"0.66977596",
"0.64901763",
"0.6413722",
"0.6391765",
"0.6381077",
"0.6352666",
"0.6348698",
"0.6209904",
"0.6166639",
"0.61006683",
"0.60709566",
"0.6054311",
"0.60411555",
"0.6013274",
"0.60076576",
"0.59735596",
"0.59570545",
"0.5950276",
"0.5904665",
"0.5904665",
"0.59046... | 0.8007476 | 0 |
>>> is_board_valid([[1,2,1]], 1, 3) True | def DmGW(iBIi, usx6, WfCS):
return all((all((kFFN(iBIi, Mkmy, Z9rn) for Z9rn in Ni9Y(WfCS))) for Mkmy in Ni9Y(usx6))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zr8x(iBIi):\n if type(iBIi) != list:\n return False\n for YRbF in range(len(iBIi)):\n if type(iBIi[YRbF]) != list:\n return False\n if len(iBIi[YRbF]) != 9:\n return False\n if len(iBIi) != 9:\n return False\n for rdlD in range(len(iBIi)):\n ... | [
"0.7950053",
"0.7873286",
"0.78376895",
"0.7534804",
"0.7525191",
"0.7464738",
"0.7334641",
"0.73339695",
"0.72910523",
"0.72714454",
"0.7238741",
"0.72123414",
"0.7178877",
"0.7161056",
"0.7019266",
"0.7015835",
"0.7014332",
"0.69828767",
"0.6971216",
"0.6956139",
"0.6947592... | 0.7563894 | 3 |
>>> is_cell_valid([ [2, 2, 2, 2, 2], [2, 1, 1, 1, 2], [2, 1, 2, 1, 2], [2, 1, 1, 1, 2], [2, 2, 2, 2, 2] ], 0, 0) True >>> is_cell_valid([ [2, 2, 2, 2, 2], [2, 1, 1, 1, 2], [2, 1, 2, 1, 2], [2, 1, 1, 1, 2], [2, 2, 2, 2, 2] ], 1, 1) False | def kFFN(iBIi, Mkmy, Z9rn):
return Xd2F(iBIi, Mkmy, Z9rn) or nW1p(iBIi, Mkmy, Z9rn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bfng(YKHO):\n for VmPb in YKHO._cells_iterable():\n if VmPb not in YKHO._valid_elements:\n return False\n return True",
"def IOzI(iBIi, mLGw, VmPb):\n WKvO, LVAh = VmPb\n rdlD = iBIi[WKvO]\n fvDH = l7uB(iBIi)[LVAh]\n if any((rdlD[YRbF] == mLGw for YRbF in range(9))):\n ... | [
"0.78606266",
"0.7470603",
"0.72972816",
"0.725799",
"0.71368986",
"0.71296334",
"0.7098325",
"0.7067219",
"0.6959899",
"0.69269663",
"0.6918944",
"0.6873363",
"0.68651116",
"0.6859215",
"0.68392086",
"0.6835174",
"0.6777917",
"0.676585",
"0.6765554",
"0.6763993",
"0.67618966... | 0.71045303 | 6 |
>>> is_cell_row_valid([[2,1,2],[1,1,1],[2,1,2]], 1, 1) True >>> is_cell_row_valid([[2,1,2],[1,1,1],[2,1,2]], 0, 1) False | def Xd2F(iBIi, Mkmy, Z9rn):
return all((iBIi[Mkmy][YRbF] <= iBIi[Mkmy][Z9rn] for YRbF in Ni9Y(len(iBIi[Mkmy])))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(rdlD, wvVa):\n return rdlD < rxZl and rdlD >= 0 and (wvVa < rxZl) and (wvVa >= 0) and (wvVa <= rdlD)",
"def bfng(YKHO):\n for VmPb in YKHO._cells_iterable():\n if VmPb not in YKHO._valid_elements:\n return False\n return True",
"def CrYo(YKHO, Mi_s):\n return YKHO.__is_va... | [
"0.741701",
"0.73611414",
"0.7293227",
"0.72435266",
"0.71651745",
"0.7097694",
"0.70769405",
"0.7064634",
"0.702554",
"0.70054007",
"0.70042956",
"0.69479513",
"0.6880997",
"0.6861574",
"0.6836509",
"0.6788453",
"0.6779461",
"0.67663956",
"0.67450076",
"0.67191553",
"0.67146... | 0.75150836 | 0 |
>>> is_cell_col_valid([[1,2,1]], 0, 1) True | def nW1p(iBIi, Mkmy, Z9rn):
return all((iBIi[YRbF][Z9rn] <= iBIi[Mkmy][Z9rn] for YRbF in Ni9Y(len(iBIi)))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iG05(cuUy):\n for fvDH in WfCS:\n PwWw = []\n for mLGw in xYvp:\n if cuUy[fvDH[mLGw]] == ' ':\n continue\n elif cuUy[fvDH[mLGw]] not in PwWw:\n PwWw += [cuUy[fvDH[mLGw]]]\n else:\n return False\n else:\n ... | [
"0.7146674",
"0.68358624",
"0.68296504",
"0.6785207",
"0.67778975",
"0.669936",
"0.66751194",
"0.6616738",
"0.6550353",
"0.64705276",
"0.6453668",
"0.64139533",
"0.637194",
"0.6362539",
"0.63340443",
"0.632881",
"0.6263058",
"0.6261916",
"0.6261916",
"0.6250828",
"0.6232614",... | 0.6981767 | 1 |
Test that the index page shows "Hello, World!" | def hDnz():
Ylbp = P4t4.test_client().get('/')
assert Ylbp.status_code == 200
LZTB = Ylbp.get_data(as_text=True)
j7NU = 'Hello, World!'
assert j7NU == LZTB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDnz(YKHO):\n geh0 = YKHO.client.get('')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'home/index.html')",
"def hDnz(YKHO):\n I78j = P4t4.test_client(YKHO)\n geh0 = I78j.get('/', content_type='html_text')\n YKHO.assertEqual(geh0.status_code, 200)",
"def ymzm(Y... | [
"0.82992214",
"0.82339764",
"0.8233368",
"0.8123874",
"0.8107575",
"0.8092139",
"0.8070833",
"0.80489016",
"0.8029757",
"0.8021677",
"0.7972373",
"0.79647183",
"0.79483277",
"0.79391086",
"0.7865811",
"0.7855116",
"0.78347164",
"0.7822497",
"0.77946293",
"0.77592766",
"0.7751... | 0.829304 | 1 |
Return EqualTo specific properties. | def lJ5g(YKHO):
return {'unaryNumericMatcherData': {'dataType': YKHO._data_type, 'value': YKHO._original_value}} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.properties == Elif.properties",
"def foTz(YKHO, C9U5=None, **B2fa):\n if C9U5 is None:\n C9U5 = {}\n C9U5.update(B2fa)\n dfOq = dLWq()\n for U6D_ in YKHO:\n if all((G1Hx in U6D_.properties and U6D_.properties[G1Hx] == Ty9i for G1Hx, Ty9i in C9U5.it... | [
"0.64632505",
"0.5935306",
"0.5854237",
"0.5807983",
"0.5662073",
"0.53720057",
"0.53608155",
"0.53559494",
"0.53400886",
"0.5325553",
"0.53016734",
"0.5287769",
"0.5202537",
"0.5201451",
"0.5189079",
"0.5163047",
"0.5161581",
"0.5158672",
"0.5152971",
"0.5145692",
"0.5103573... | 0.0 | -1 |
Returns a list of tuples of integers. The tuples are the start and end indexes of the points that make up a consistent stroke. | def l6qL(LTIa):
return qR73(LTIa)[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DHQS(YKHO):\n return ((YKHO.vertices[YRbF], YKHO.vertices[YRbF + 1]) for YRbF in range(len(YKHO.vertices) - 1))",
"def DHQS(YKHO):\n return ((YKHO.vertices[YRbF - 1], YKHO.vertices[YRbF]) for YRbF in range(len(YKHO.vertices)))",
"def Mcvp(YKHO):\n Lsiy = int(IQf9.coords(YKHO.rectangle)[0])\n vv... | [
"0.650172",
"0.6356292",
"0.63191974",
"0.62127423",
"0.6193609",
"0.6157209",
"0.6088006",
"0.607852",
"0.60672754",
"0.6035215",
"0.601639",
"0.6005251",
"0.5987621",
"0.596972",
"0.5950823",
"0.59374946",
"0.59174734",
"0.5912734",
"0.5906149",
"0.5878647",
"0.58663976",
... | 0.58718604 | 20 |
Returns a list of tuples. The first item in the tuple is the directional integer, and the second item is a tuple of integers for the start and end indexes of the points that make up the stroke. | def BQeU(LTIa):
XbFU, uChS = qR73(LTIa)
return list(zip(XbFU, uChS)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uapV():\n return [(1, 0), (0, 1), (-1, 0), (0, -1)]",
"def DHQS(YKHO):\n return ((YKHO.vertices[YRbF], YKHO.vertices[YRbF + 1]) for YRbF in range(len(YKHO.vertices) - 1))",
"def DHQS(YKHO):\n return ((YKHO.vertices[YRbF - 1], YKHO.vertices[YRbF]) for YRbF in range(len(YKHO.vertices)))",
"def xsU... | [
"0.7704623",
"0.67594296",
"0.671177",
"0.65432245",
"0.6489372",
"0.6403351",
"0.6285116",
"0.6213297",
"0.62070006",
"0.61684287",
"0.6166679",
"0.61550885",
"0.61420554",
"0.613753",
"0.610363",
"0.60906774",
"0.6049638",
"0.6041686",
"0.60254407",
"0.59993815",
"0.5994001... | 0.5780157 | 38 |
Returns the Levenshtein Distance between two strings, `s1` and `s2` as an integer. | def RfSv(j93S, Nqp_):
aaMd = {hG9a: '1', EGw7: '2', QMxS: '3', pY1r: '4', Ny9c: '6', e4u3: '7', ckxV: '8', glHb: '9'}
SGl7 = len([aaMd[sZqf] for sZqf in j93S])
sHY4 = len([aaMd[sZqf] for sZqf in Nqp_])
SppC = list(range(SGl7 + 1)) * (sHY4 + 1)
for YRbF in range(sHY4 + 1):
SppC[YRbF] = list(r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(Y0Fj, Pb4f):\n return KX6q.normalized_distance(Y0Fj, Pb4f)",
"def DR4Z(j93S, Nqp_):\n if len(j93S) < len(Nqp_):\n return oIP6.levenshtein_distance(Nqp_, j93S)\n if len(Nqp_) == 0:\n return len(j93S)\n LrTp = range(len(Nqp_) + 1)\n for YRbF, dg7v in enumerate(j93S):\n ... | [
"0.86942244",
"0.8484132",
"0.8356348",
"0.8239916",
"0.82171315",
"0.81972265",
"0.8021736",
"0.80152994",
"0.80049",
"0.7843604",
"0.7796122",
"0.7768025",
"0.7650802",
"0.7649564",
"0.7597331",
"0.75894356",
"0.75690806",
"0.75381345",
"0.748515",
"0.74419534",
"0.73805445... | 0.80751187 | 6 |
Return the direction the line formed by the (x, y) points in `coord1` and `coord2`. | def mnch(mAYH, pks6):
o4D3, si3g = mAYH
ajwV, skBL = pks6
if o4D3 == ajwV and si3g == skBL:
return None
elif o4D3 == ajwV and si3g > skBL:
return ckxV
elif o4D3 == ajwV and si3g < skBL:
return EGw7
elif o4D3 > ajwV and si3g == skBL:
return pY1r
elif o4D3 < ajw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OFn6(YKHO, bQpE, V6Wq=None):\n if V6Wq:\n yKcO = bQpE\n Os4s = V6Wq\n else:\n yKcO = YKHO.position\n Os4s = bQpE\n if yKcO % YKHO.game.rules['row_len'] == Os4s % YKHO.game.rules['row_len']:\n if Os4s < yKcO:\n return 0\n else:\n return 3\... | [
"0.7077475",
"0.67473817",
"0.6727258",
"0.6560717",
"0.6557516",
"0.6508098",
"0.63948435",
"0.6390899",
"0.6382273",
"0.6314306",
"0.63093567",
"0.62927353",
"0.6271189",
"0.62622476",
"0.62521976",
"0.6245554",
"0.62347925",
"0.6232314",
"0.6200161",
"0.6172732",
"0.614724... | 0.82584655 | 0 |
Select high confidence samples from `D^U` whose entropy is smaller than the threshold `delta`. | def iV6L(DMkZ: np.ndarray, RA_F: float) -> AzJI[oyIN.ndarray, oyIN.ndarray]:
bGrB, zPy8 = oqGu(pred_prob=DMkZ, k=len(DMkZ))
wyOS = zPy8[zPy8[:, 2] < RA_F]
return (wyOS[:, 0].astype(oyIN.int32), wyOS[:, 1].astype(oyIN.int32)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kxPL(LVAh, uN02, RA_F):\n QFIp = 0.5 * RA_F * RA_F\n P1dF = LVAh - uN02\n yvNY = abs(P1dF)\n uwIU = 0.5 * Fyji(P1dF)\n aNIq = RA_F * yvNY - QFIp\n zmR7 = fsJR(HFDh(yvNY, RA_F), uwIU, aNIq)\n return WEi6(zmR7, name='loss')",
"def Cnul(YKHO, mm4D, pPq6):\n pGn0, gwAu = pPq6\n UCVk = ... | [
"0.5153756",
"0.51270103",
"0.5089108",
"0.5044927",
"0.5040845",
"0.49423006",
"0.49409744",
"0.49026722",
"0.48604807",
"0.4840753",
"0.48234597",
"0.48054135",
"0.48036078",
"0.47382608",
"0.47269264",
"0.46974674",
"0.46751145",
"0.46705526",
"0.46705526",
"0.46526754",
"... | 0.6555946 | 0 |
Post data for authors Sets all other values to None if values are not provided | def FNLd():
nPrm = None
if QePW.get_json() is None:
nPrm = QePW.form.to_dict()
print(nPrm)
else:
nPrm = QePW.get_json()
if nPrm is None or nPrm == {} or all((BWXx == '' for BWXx in nPrm.values())):
return (TvZl('error.html', message='Input format is not correct'), 400)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _giq(YKHO, **B2fa):\n YKHO.author_name = B2fa.get('name')\n YKHO.author_url = B2fa.get('url')\n YKHO.author_icon = B2fa.get('icon_url')",
"def taDc(YKHO, BWXx):\n YKHO._set_attr('author', BWXx)",
"def pqLF():\n try:\n H5ew = list(QePW.args.keys())[0]\n wEf2 = QePW.args[H5ew].st... | [
"0.64397407",
"0.6175825",
"0.6098915",
"0.599035",
"0.59754086",
"0.5949272",
"0.59302086",
"0.5908655",
"0.5890984",
"0.5885011",
"0.5772818",
"0.5765819",
"0.5765376",
"0.5741887",
"0.57224584",
"0.5678815",
"0.5582717",
"0.5577919",
"0.5567393",
"0.55624264",
"0.5545347",... | 0.7018504 | 0 |
Delete data for books When excepts IndexError, the request is coming from the front end application, and needs to parse and request data differently. | def PjMN():
try:
H5ew = list(QePW.args.keys())[0]
if H5ew is None:
return (TvZl('error.html', message='Please enter a correct key'), 400)
wEf2 = QePW.args[H5ew].strip('"')
except IndexError:
GV1V = QePW.form.to_dict()
H5ew = list(GV1V.keys())[0]
wEf2 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(QePW):\n if QePW.method == 'POST':\n VkpT.objects.get(isbn=QePW.POST['delete_book']).delete()\n return vKnz('libros:home')",
"def PTpj(YKHO, d4Dd, xSHO):\n YKHO.connect()\n XJob = d4Dd[0].get()\n bYjl = f\"delete from {YKHO.book_table} where bid = '{XJob}'\"\n Vfk7 = f\"delete f... | [
"0.6731346",
"0.628473",
"0.6237934",
"0.61953634",
"0.6152177",
"0.6112556",
"0.6083911",
"0.6070356",
"0.60578585",
"0.5977506",
"0.59410113",
"0.5906001",
"0.5869275",
"0.58415025",
"0.58209205",
"0.5729588",
"0.57208157",
"0.57138693",
"0.56903034",
"0.5669386",
"0.563844... | 0.66425616 | 1 |
Delete data for authors When excepts IndexError, the request is coming from the front end application, and needs to parse and request data differently. | def v_s7():
try:
H5ew = list(QePW.args.keys())[0]
wEf2 = QePW.args[H5ew].strip('"')
if H5ew is None:
return (TvZl('error.html', message='Please enter a correct key'), 400)
except IndexError:
GV1V = QePW.form.to_dict()
H5ew = list(GV1V.keys())[0]
wEf2 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO, nPrm):\n pass",
"def v_s7(YKHO, taDc):\n UZOP = YKHO._get_author_row(taDc)\n Fg_i = YKHO.find_element(YKHO.locators['trash'], UZOP)\n Fg_i.click()",
"def bmMo(YKHO):\n QePW = YKHO.client.delete(YKHO.epoint)\n YKHO.assertEqual(QePW.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def ... | [
"0.597612",
"0.59476274",
"0.5905207",
"0.57171905",
"0.56966794",
"0.56966376",
"0.5624778",
"0.5574861",
"0.55492336",
"0.5535055",
"0.55328184",
"0.5532815",
"0.5497408",
"0.54943645",
"0.5481601",
"0.5422773",
"0.5419028",
"0.5416888",
"0.5415432",
"0.5415432",
"0.5410114... | 0.69702786 | 0 |
Return a product matching the given identifier. | def AI9R(YKHO, Ilxn):
for XP5J in YKHO['products']:
if Ilxn in XP5J.get('ids', []):
return XP5J
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AI9R(Emd4, Mc9N):\n return msfn.query.get(Mc9N)",
"def drGQ(Ii1o: int) -> h8nf[msfn]:\n return Ytq4().get_product(Ii1o)",
"def VJwz(Mc9N: str) -> msfn:\n return msfn.query.filter_by(id=Mc9N).first()",
"def drGQ(aFoZ):\n return 'do some magic!'",
"def AI9R(YKHO, id):\n w2IS = '/v3/educato... | [
"0.7814515",
"0.7807445",
"0.7786215",
"0.7755031",
"0.7526172",
"0.7422317",
"0.738578",
"0.7383733",
"0.7365643",
"0.7342667",
"0.73252803",
"0.7310571",
"0.7261338",
"0.7246913",
"0.72411865",
"0.7225621",
"0.72061104",
"0.71366537",
"0.7126494",
"0.7113762",
"0.7075467",
... | 0.84982795 | 0 |
Return a deep copy of this instance with resolved dependencies. | def U1xq(YKHO):
OBjG = jth9.deepcopy(YKHO)
qN8b = 1
while qN8b > 0:
qN8b = 0
for Lx3t in OBjG['products']:
if not OBjG.product_dependencies_are_resolvable(Lx3t):
continue
for zJAO in Lx3t.get('dependencies', []):
qN8b += 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fJlz(YKHO):\n dzye = svic(YKHO.packages_in_solution[:], YKHO.visited_packages[:], set(YKHO.visited_names))\n dzye.is_valid = YKHO.is_valid\n dzye.not_to_delete_deps = set(YKHO.not_to_delete_deps)\n for H5ew, BWXx in YKHO.dict_to_way.items():\n dzye.dict_to_way[H5ew] = BWXx[:]\n for H5ew, ... | [
"0.6926472",
"0.681574",
"0.6802871",
"0.68017864",
"0.6791336",
"0.67703503",
"0.6767935",
"0.6766639",
"0.67352974",
"0.6732083",
"0.6725003",
"0.671437",
"0.671437",
"0.671437",
"0.671437",
"0.671437",
"0.671437",
"0.671437",
"0.671437",
"0.671437",
"0.671437",
"0.671437... | 0.6665218 | 46 |
Get the total price for all products on the invoice. | def z7Kw(YKHO):
YRbF = YKHO.get_copy_with_resolved_dependencies()
woGg = ZjSO(0)
for Lx3t in YRbF['products']:
N47J = ZjSO(str(Lx3t.get('price', 0))) * ZjSO(str(Lx3t.get('quantity')))
woGg += N47J
return woGg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z7Kw(YKHO):\n return sum((ZjSO(ZfUD['price']) * ZfUD['qty'] for ZfUD in YKHO.cart.values()))",
"def OCe_(YKHO):\n woGg = 0.0\n for G1Hx, Ty9i in YKHO.order.product_orders.items():\n woGg += Ty9i.quantity * Ty9i.product.price\n return woGg",
"def woGg(YKHO) -> ZjSO:\n woGg: ZjSO = F7ib... | [
"0.8184352",
"0.7815383",
"0.7793876",
"0.7451419",
"0.7338859",
"0.73210144",
"0.72848165",
"0.7229103",
"0.7190418",
"0.71891224",
"0.7170491",
"0.7085157",
"0.70526737",
"0.69886434",
"0.69755095",
"0.68929064",
"0.6840607",
"0.6806935",
"0.6740282",
"0.6629764",
"0.659980... | 0.83977413 | 0 |
Display the face of the rendered image. | def EZIB(nPrm):
return XC5k.resize(nPrm['render'][20:180, 330:490, :], (256, 256)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8mS(YKHO):\n for YRbF in range(len(YKHO.visibleFaceList)):\n YKHO.showRectangle(YKHO.visibleFaceList[YRbF].getPosition(), YKHO.visibleFaceList[YRbF].id)\n XC5k.imshow('show', YKHO.frameImage)",
"def W8mS(RpU_, T8H5=0, Np5D=255):\n LNo8 = RpU_.reshape(Md1g, uGEl)\n QrM1.matshow(LNo8, cmap=... | [
"0.78271073",
"0.73238623",
"0.71018475",
"0.6917512",
"0.6900026",
"0.67763174",
"0.6699282",
"0.6689702",
"0.6671418",
"0.66544527",
"0.6628153",
"0.65974486",
"0.6555711",
"0.6554558",
"0.6507949",
"0.64394236",
"0.63981605",
"0.6389864",
"0.6382514",
"0.6369299",
"0.63493... | 0.6858825 | 5 |
Displays a box around the face area. | def Kp6m(nPrm):
sdCG = UuNZ(nPrm)
S6mZ = nPrm['position_data']['face_box'][nPrm['i']]
ttV6 = nPrm['sefs'][nPrm['i']]
if S6mZ is not None:
XC5k.rectangle(sdCG, *S6mZ, (0, 255, 0))
else:
XC5k.rectangle(sdCG, *ttV6, (0, 0, 255))
return sdCG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JA3n(LNo8, RpU_):\n JmFt = uGYG.ImageDraw.Draw(LNo8.image)\n JmFt.rectangle(RpU_.as_box(), outline='yellow')",
"def uxpd(JmFt, C1GJ, mWFP):\n tlxW, _tIi, es2x, LFlW = C1GJ\n JmFt.rectangle(((LFlW, tlxW), (_tIi, es2x)), outline=GATt)\n pfR3, Nx0q, JCJY, cgrK = JmFt.textbbox((LFlW, es2x), mWFP)\... | [
"0.73727435",
"0.7295779",
"0.7284597",
"0.7002227",
"0.6632041",
"0.65869826",
"0.6552596",
"0.6439948",
"0.63533455",
"0.6349754",
"0.6341232",
"0.63264877",
"0.63031256",
"0.6290293",
"0.62884825",
"0.62680304",
"0.62650377",
"0.62331635",
"0.6167695",
"0.6156476",
"0.6142... | 0.7171745 | 3 |
Generate a secure random string of letters, digits and special characters | def DUlb(FVpJ=50):
w5bg = vIwR.ascii_letters + vIwR.digits
return ''.join((FXSn.choice(w5bg) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drFW():\n return GLL2(char_choice=vIwR.ascii_letters + vIwR.digits)",
"def TFI8():\n SIyd = vIwR.ascii_uppercase + vIwR.digits\n zNig = 6\n return ''.join((tuKI.choice(SIyd) for bGrB in range(zNig)))",
"def jTXt():\n gLiZ = 'abcdefghijklmnopqsrtuvwxyzABCDEFGHIJKLMNOPQSRTUVWXYZ123456890!#%&-_... | [
"0.780001",
"0.77551126",
"0.7673126",
"0.7654715",
"0.7621727",
"0.7614289",
"0.7596714",
"0.75855654",
"0.755834",
"0.7549379",
"0.7527521",
"0.7518602",
"0.7473979",
"0.7444539",
"0.73692334",
"0.7366418",
"0.7351018",
"0.7348109",
"0.7311087",
"0.7306283",
"0.72968966",
... | 0.7442787 | 14 |
Test that populating deque with iterable produces head with value of 3. | def CY4w(d3pW):
assert d3pW._deque.head.value == 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sk_Z(OxJJ):\n from deque import Deque\n yDQN = Deque(OxJJ)\n assert yDQN.peek() == yDQN.pop()",
"def aMFe(OxJJ):\n from deque import Deque\n yDQN = Deque(OxJJ)\n yDQN.pop()\n assert yDQN._container.tail.val == OxJJ[0]",
"def VPj8(u8Y6):\n assert u8Y6.peekleft() == 4",
"def afIP(Ox... | [
"0.81437397",
"0.77774477",
"0.7641183",
"0.762126",
"0.75147253",
"0.74455357",
"0.7325635",
"0.7292514",
"0.7273456",
"0.7206831",
"0.7181101",
"0.71744853",
"0.7135484",
"0.71108943",
"0.70355535",
"0.6992504",
"0.6964566",
"0.6954277",
"0.69438636",
"0.69130117",
"0.68323... | 0.6876222 | 20 |
Test that populating deque with iterable has correct tail element. | def XIy9(d3pW):
assert d3pW._deque.tail.value == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aMFe(OxJJ):\n from deque import Deque\n yDQN = Deque(OxJJ)\n yDQN.pop()\n assert yDQN._container.tail.val == OxJJ[0]",
"def afIP(OxJJ):\n from deque import Deque\n yDQN = Deque(OxJJ)\n yDQN.pop()\n assert yDQN._container.head.val == OxJJ[-2]",
"def tVeM(OxJJ):\n from deque import... | [
"0.85604364",
"0.8389156",
"0.8330138",
"0.8286497",
"0.7804315",
"0.77509844",
"0.77497774",
"0.7640565",
"0.7574091",
"0.75488013",
"0.7487353",
"0.7435704",
"0.7374973",
"0.7370068",
"0.7368684",
"0.7339676",
"0.7320013",
"0.72704476",
"0.7242975",
"0.71349615",
"0.7129379... | 0.77158684 | 7 |
Test that full deque has length of 3. | def cvsM(d3pW):
assert d3pW._deque._length == 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LGRm(oJsc):\n oJsc.pop()\n assert oJsc.length == 2",
"def CY4w(d3pW):\n assert d3pW._deque.head.value == 3",
"def OyEz(OxJJ, Aofo):\n from deque import Deque\n yDQN = Deque(OxJJ)\n assert yDQN.size() == Aofo",
"def eCXp(wEf2, Aofo, u8Y6):\n u8Y6.append(wEf2)\n assert u8Y6.size() =... | [
"0.78715956",
"0.78197706",
"0.73358923",
"0.72801864",
"0.72706133",
"0.72319394",
"0.7222254",
"0.715272",
"0.7090539",
"0.70765245",
"0.70622855",
"0.70296174",
"0.70007426",
"0.6952745",
"0.693772",
"0.69085497",
"0.6839387",
"0.67744434",
"0.67727983",
"0.6702122",
"0.66... | 0.8577407 | 0 |
Test that error is raised when you try to initialize with noniterable. | def aGO3():
from deque import Deque
with trZe.raises(TypeError):
yDQN = Deque(interable=123456) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IQax():\n with trZe.raises(TypeError):\n bGrB = I5ib._make_np_iterable('s')",
"def cvYp(YKHO):\n YKHO.assertRaises(TypeError, pLa_, None)",
"def f9bE():\n from bbst import Bst\n with trZe.raises(TypeError):\n Bst('dfsdfadgasdg')",
"def UBce(YKHO):\n nPrm = [[0, 0], [0, 0], [0... | [
"0.78207946",
"0.75227827",
"0.751042",
"0.69699025",
"0.69321096",
"0.6930511",
"0.68200904",
"0.67998004",
"0.67872363",
"0.67678916",
"0.666899",
"0.6656615",
"0.6621781",
"0.6617661",
"0.65959954",
"0.6566306",
"0.65636396",
"0.6561756",
"0.65577096",
"0.6555133",
"0.6553... | 0.7068486 | 3 |
Test append method on empty deque first value is Denny Way. | def f8QP(vIMF):
vIMF.append('Denny Way')
assert vIMF._deque.head.value == 'Denny Way' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yh0V(wEf2, Aofo, u8Y6):\n u8Y6.append(wEf2)\n assert u8Y6._container.head.val == wEf2",
"def b1Ad(wEf2, Aofo, u8Y6):\n u8Y6.append(wEf2)\n assert u8Y6._container.head.val == Aofo[-1]",
"def Vcac(vIMF):\n vIMF.append('Denny Way')\n assert vIMF._deque.tail.value == 'Denny Way'",
"def RuLC... | [
"0.81063646",
"0.80645436",
"0.7982597",
"0.7895707",
"0.78383845",
"0.78174025",
"0.7813049",
"0.7812579",
"0.7778344",
"0.77583534",
"0.77384186",
"0.7715168",
"0.7702814",
"0.7702004",
"0.7699113",
"0.7697456",
"0.7637012",
"0.7620477",
"0.7534843",
"0.75113165",
"0.750499... | 0.8057467 | 2 |
Test append method on empty deque size is 1. | def We1g(vIMF):
vIMF.append('Denny Way')
assert vIMF.size() == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FWyc(vIMF):\n vIMF.appendleft('Denny Way')\n assert vIMF.size() == 1",
"def MHZU(d3pW):\n d3pW.append('Denny Way')\n assert d3pW.size() == 4",
"def dzYp(x_Tf):\n assert x_Tf.size() == 0",
"def Vcac(vIMF):\n vIMF.append('Denny Way')\n assert vIMF._deque.tail.value == 'Denny Way'",
"... | [
"0.8142693",
"0.799281",
"0.78356516",
"0.78067744",
"0.7801254",
"0.77563304",
"0.773669",
"0.7716044",
"0.7708684",
"0.7670607",
"0.76092035",
"0.7573592",
"0.7572263",
"0.75669426",
"0.7537802",
"0.75131786",
"0.74663246",
"0.7427651",
"0.74211085",
"0.7410628",
"0.7410008... | 0.84189683 | 0 |
Test append method on full deque size is 4. | def MHZU(d3pW):
d3pW.append('Denny Way')
assert d3pW.size() == 4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gz29(d3pW):\n d3pW.appendleft('Denny Way')\n assert d3pW.size() == 4",
"def eCXp(wEf2, Aofo, u8Y6):\n u8Y6.append(wEf2)\n assert u8Y6.size() == len(Aofo)",
"def q0sd(wEf2, u8Y6):\n u8Y6.append(wEf2)\n assert u8Y6._container.head.val == wEf2",
"def We1g(vIMF):\n vIMF.append('Denny Way... | [
"0.8107763",
"0.7996083",
"0.784534",
"0.7771841",
"0.7692915",
"0.75496393",
"0.7489729",
"0.73493737",
"0.72653687",
"0.72479504",
"0.72458094",
"0.72401154",
"0.7204945",
"0.7107906",
"0.7087053",
"0.70749664",
"0.705101",
"0.69922996",
"0.6958757",
"0.69586974",
"0.686231... | 0.83668894 | 0 |
Test appendleft method on empty deque head is Denny Way. | def C9Fd(vIMF):
vIMF.appendleft('Denny Way')
assert vIMF._deque.head.value == 'Denny Way' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NwlT(d3pW):\n d3pW.appendleft('Denny Way')\n assert d3pW._deque.head.value == 'Denny Way'",
"def Hjzn(vIMF):\n vIMF.appendleft('Denny Way')\n assert vIMF._deque.tail.value == 'Denny Way'",
"def A_hJ(vIMF):\n vIMF.appendleft(1)\n vIMF.appendleft(2)\n vIMF.popleft()\n vIMF.appendleft(... | [
"0.830469",
"0.7929587",
"0.78767884",
"0.78461593",
"0.7833552",
"0.77282774",
"0.7704946",
"0.7542734",
"0.751248",
"0.75116086",
"0.7436412",
"0.7408393",
"0.7381483",
"0.73600256",
"0.7332698",
"0.7320863",
"0.7265071",
"0.72560406",
"0.7203242",
"0.7128719",
"0.7119223",... | 0.8473656 | 0 |
Test appendleft method on empty deque tail is Denny Way. | def Hjzn(vIMF):
vIMF.appendleft('Denny Way')
assert vIMF._deque.tail.value == 'Denny Way' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHMN(d3pW):\n d3pW.appendleft('Denny Way')\n assert d3pW._deque.tail.value == 1",
"def C9Fd(vIMF):\n vIMF.appendleft('Denny Way')\n assert vIMF._deque.head.value == 'Denny Way'",
"def VvF9(wEf2, Aofo, u8Y6):\n u8Y6.appendleft(wEf2)\n assert u8Y6._container.tail.val == Aofo[-1]",
"def A_... | [
"0.815062",
"0.8085601",
"0.7992411",
"0.7941262",
"0.7925602",
"0.7906034",
"0.78771245",
"0.7870173",
"0.76730615",
"0.74690825",
"0.74386823",
"0.7400576",
"0.7399048",
"0.7236741",
"0.7168462",
"0.7163567",
"0.71409",
"0.71073455",
"0.710688",
"0.70870817",
"0.7067546",
... | 0.82863724 | 0 |
Test appendleft method on empty deque size is 1. | def FWyc(vIMF):
vIMF.appendleft('Denny Way')
assert vIMF.size() == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VXoO(vIMF):\n vIMF.append(1)\n vIMF.append(2)\n vIMF.popleft()\n vIMF.append(3)\n vIMF.append(4)\n vIMF.append(5)\n assert vIMF.popleft() == 2",
"def A_hJ(vIMF):\n vIMF.appendleft(1)\n vIMF.appendleft(2)\n vIMF.popleft()\n vIMF.appendleft(3)\n vIMF.appendleft(4)\n vIMF.... | [
"0.83064234",
"0.8298093",
"0.81073576",
"0.80492526",
"0.79913604",
"0.7971466",
"0.79468334",
"0.79121435",
"0.7818164",
"0.77969116",
"0.7793064",
"0.77172947",
"0.77104694",
"0.7601281",
"0.74928474",
"0.74416953",
"0.74322677",
"0.7417033",
"0.7411387",
"0.7393293",
"0.7... | 0.8355765 | 0 |
Test appendleft method on full deque head is Denny Way. | def NwlT(d3pW):
d3pW.appendleft('Denny Way')
assert d3pW._deque.head.value == 'Denny Way' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C9Fd(vIMF):\n vIMF.appendleft('Denny Way')\n assert vIMF._deque.head.value == 'Denny Way'",
"def bHMN(d3pW):\n d3pW.appendleft('Denny Way')\n assert d3pW._deque.tail.value == 1",
"def B6k6(wEf2, u8Y6):\n u8Y6.appendleft(wEf2)\n assert u8Y6._container.tail.val == wEf2",
"def Hjzn(vIMF):\... | [
"0.8341617",
"0.796743",
"0.7875342",
"0.7788519",
"0.77584755",
"0.7672243",
"0.7668103",
"0.7632527",
"0.7608101",
"0.751689",
"0.7504997",
"0.7438034",
"0.73950726",
"0.7379405",
"0.719912",
"0.71738017",
"0.7165083",
"0.71103764",
"0.709915",
"0.7078017",
"0.70711243",
... | 0.8437011 | 0 |
Test appendleft method on full deque tail is 1. | def bHMN(d3pW):
d3pW.appendleft('Denny Way')
assert d3pW._deque.tail.value == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B6k6(wEf2, u8Y6):\n u8Y6.appendleft(wEf2)\n assert u8Y6._container.tail.val == wEf2",
"def NwlT(d3pW):\n d3pW.appendleft('Denny Way')\n assert d3pW._deque.head.value == 'Denny Way'",
"def C9Fd(vIMF):\n vIMF.appendleft('Denny Way')\n assert vIMF._deque.head.value == 'Denny Way'",
"def Vv... | [
"0.7818615",
"0.7815832",
"0.77897835",
"0.773756",
"0.7727385",
"0.7554335",
"0.7552151",
"0.7547333",
"0.7540695",
"0.74069977",
"0.7389955",
"0.730823",
"0.71370834",
"0.7095124",
"0.70614755",
"0.7051897",
"0.7012173",
"0.700986",
"0.68795544",
"0.6864387",
"0.68641514",
... | 0.8188662 | 0 |
Test appendleft method on full deque size is 4. | def gz29(d3pW):
d3pW.appendleft('Denny Way')
assert d3pW.size() == 4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B6k6(wEf2, u8Y6):\n u8Y6.appendleft(wEf2)\n assert u8Y6._container.tail.val == wEf2",
"def c44T(wEf2, Aofo, u8Y6):\n u8Y6.appendleft(wEf2)\n assert u8Y6.size() == len(Aofo)",
"def VXoO(vIMF):\n vIMF.append(1)\n vIMF.append(2)\n vIMF.popleft()\n vIMF.append(3)\n vIMF.append(4)\n ... | [
"0.8025878",
"0.8019026",
"0.7909267",
"0.78957397",
"0.7843764",
"0.75904626",
"0.75304943",
"0.7504672",
"0.747138",
"0.7412794",
"0.7403576",
"0.7392287",
"0.7296944",
"0.7259141",
"0.71874154",
"0.71711254",
"0.7112074",
"0.709036",
"0.7067906",
"0.69947386",
"0.6990768",... | 0.8296546 | 0 |
Test peekleft can't be called on empty deques. | def wGtI(vIMF):
assert vIMF.peekleft() is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q95r(x_Tf):\n assert x_Tf.peekleft() is None",
"def Pjii():\n from deque import Deque\n Xt2W = Deque()\n assert Xt2W.peek_left() is None",
"def ARPC():\n from deque import Deque\n Xt2W = Deque()\n with trZe.raises(IndexError):\n Xt2W.pop_left()",
"def HbeK(vIMF):\n assert v... | [
"0.869497",
"0.8658158",
"0.7961052",
"0.7938752",
"0.78588176",
"0.7847153",
"0.77712846",
"0.7733076",
"0.76820976",
"0.7653646",
"0.7647736",
"0.7622755",
"0.7546392",
"0.7471053",
"0.7461773",
"0.7456721",
"0.7350174",
"0.7328798",
"0.7275362",
"0.7210209",
"0.71714437",
... | 0.88838273 | 0 |
Test peeklefting at the proper (head) value. | def H82W(d3pW):
assert d3pW.peekleft() == 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1pb(YKHO):\n if YKHO.front:\n return YKHO.front.val",
"def Pd82(oJsc):\n assert oJsc.peek_left() == 'snine'",
"def VPj8(u8Y6):\n assert u8Y6.peekleft() == 4",
"def J1pb(YKHO):\n if YKHO.new_dll.head:\n return YKHO.new_dll.head.val\n return None",
"def GngK(oJsc):\n oJsc... | [
"0.75279486",
"0.73468935",
"0.7328573",
"0.7175502",
"0.69309133",
"0.68942034",
"0.68223447",
"0.67919904",
"0.6745669",
"0.6518544",
"0.64878124",
"0.64781356",
"0.6392733",
"0.6365095",
"0.62917286",
"0.62813044",
"0.62599677",
"0.6243189",
"0.6212736",
"0.61834204",
"0.6... | 0.72643614 | 3 |
Format specified time duration as human readable text. >>> format_duration(0) '0s' >>> format_duration(61) '1m 1s' >>> format_duration(86400 2 + 60) '2d 1m' >>> format_duration(86400 2 + 60, keep_zeros=True) '2d 0h 1m 0s' >>> format_duration(86400 2 + 60, short_units=False) '2 days 1 minute' >>> format_duration(1) '1s ... | def DhpL(C6wh: Union[float, int], G97A: bool=True, ejdq: bool=False):
if G97A:
rYO3 = [(86400, 'd', 'd'), (3600, 'h', 'h'), (60, 'm', 'm'), (1, 's', 's')]
else:
rYO3 = [(86400, ' day', ' days'), (3600, ' hour', ' hours'), (60, ' minute', ' minutes'), (1, ' second', ' seconds')]
if C6wh < 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DhpL(WbTE: int) -> str:\n assert WbTE > 0, '`duration` must be nonzero number.'\n Wave = WbTE / 3600\n O66n = WbTE // 60 % 60\n C6wh = WbTE % 60\n Aofo = []\n if Wave >= 1:\n Aofo.append('{} hours'.format(Wave))\n if O66n >= 1:\n Aofo.append('{} minutes'.format(O66n))\n if... | [
"0.8164258",
"0.770202",
"0.7465312",
"0.7358414",
"0.72903585",
"0.7265614",
"0.7159384",
"0.7037472",
"0.7013463",
"0.70068485",
"0.69709533",
"0.68307924",
"0.6745669",
"0.67096573",
"0.66820735",
"0.6619122",
"0.6572073",
"0.6555335",
"0.65534097",
"0.65240216",
"0.646631... | 0.74299043 | 3 |
Iterate through all files in `root_dir`, returning the relative paths of each file. The subdirectories will not be yielded. | def yFkH(jNha: str, VWe_: str='/') -> jd6F[str, None, None]:
def eHNT(NmVZ, dx2i):
for knSv in Hy7s.listdir(NmVZ):
ida0 = NmVZ + Hy7s.sep + knSv
c7HK = dx2i + VWe_ + knSv
if Hy7s.path.isdir(ida0):
for KCHu in eHNT(ida0, c7HK):
yield KC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a_nD(jNha):\n VNcV = set()\n for Kwmb, bGrB, RRlC in Hy7s.walk(jNha):\n for gIsw in RRlC:\n KTXh = Hy7s.path.relpath(Kwmb, jNha)\n TvtZ = Hy7s.path.join(KTXh, gIsw)\n VNcV.add(TvtZ)\n return [GkAb(b687(eHNT)) for eHNT in VNcV]",
"def KEx4(eHKs):\n for tk5Y,... | [
"0.75813466",
"0.7393683",
"0.7353875",
"0.7309697",
"0.7163507",
"0.713694",
"0.7091001",
"0.70528835",
"0.6991746",
"0.6955394",
"0.69136506",
"0.69136506",
"0.69004786",
"0.6784223",
"0.6782648",
"0.6757082",
"0.6727774",
"0.6710993",
"0.6702517",
"0.6684065",
"0.66800773"... | 0.6524021 | 27 |
Get an option's description. This function exists so descriptions are always fetched in the exact same way. | def g0_7(nudR):
if nudR not in V1Lg:
raise Exception(f"Option '{nudR}' is missing metadata. " + wLLx)
if 'description' not in V1Lg[nudR]:
raise Exception(f"Option '{nudR}' is missing a description. " + wLLx)
return V1Lg[nudR]['description'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n if hasattr(YKHO, '_description'):\n return YKHO._description\n M56f: list[kDLT] = []\n GSuR = YKHO._select('description', M56f)\n return GSuR.execute_sync(h8nf[str])",
"def JBZA(YKHO) -> h8nf[str]:\n if hasattr(YKHO, '_description'):\n return YKHO._desc... | [
"0.75363505",
"0.75363505",
"0.75363505",
"0.73141265",
"0.7289079",
"0.7207426",
"0.7188839",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",
"0.717354",... | 0.8380134 | 0 |
Assert that two lists of L{Project}s are equal. | def tEU6(YKHO, bgKU, lpWD):
YKHO.assertEqual(len(bgKU), len(lpWD))
bgKU = sorted(bgKU, key=seET.attrgetter('directory'))
lpWD = sorted(lpWD, key=seET.attrgetter('directory'))
for gEVc, aEqx in zip(bgKU, lpWD):
YKHO.assertEqual(gEVc.directory, aEqx.directory) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GY1z(YKHO):\n a0QB = ka3h(title='Title 1', description='Description 1')\n eVrp = ka3h(title='Title 2', description='Description 2')\n geh0 = YKHO.client.get(gxEw('portfolio:project_list'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, a0QB.title)\n YKHO.assertContains(... | [
"0.73328876",
"0.73238105",
"0.6994209",
"0.696267",
"0.69351625",
"0.65774673",
"0.65192145",
"0.65192145",
"0.6508537",
"0.6452453",
"0.6420661",
"0.6392122",
"0.63602877",
"0.6321427",
"0.6298714",
"0.6287265",
"0.62575305",
"0.62445533",
"0.6238674",
"0.62175125",
"0.6155... | 0.7359227 | 0 |
For sensor, return True if connector's 'succeeded_at' field has updated. | def geRj(YKHO, ZRC6, EMzr):
qmJ9 = YKHO.get_connector(ZRC6)
Vscf = YKHO._parse_timestamp(qmJ9['succeeded_at'])
hDgb = YKHO._parse_timestamp(qmJ9['failed_at'])
Hv1l = Vscf if Vscf > hDgb else hDgb
if hDgb > EMzr:
bSEa = qmJ9['service']
QF7s = qmJ9['schema']
raise cAYI(f'Fivetr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxxj(YKHO):\n return YKHO.timestamp > 0",
"def yWbd(YKHO) -> bool:\n return YKHO._coordinator.last_update_success",
"def yWbd(YKHO):\n return YKHO._coordinator.last_update_success",
"def yWbd(YKHO):\n return YKHO.coordinator.last_update_success",
"def yWbd(YKHO):\n return YKHO.coordinato... | [
"0.67608744",
"0.62473327",
"0.62284654",
"0.62173575",
"0.62173575",
"0.62173575",
"0.62173575",
"0.62173575",
"0.62173575",
"0.62173575",
"0.619776",
"0.61824787",
"0.6137783",
"0.60570663",
"0.59798604",
"0.5891137",
"0.5823085",
"0.58165175",
"0.58084744",
"0.5768444",
"0... | 0.6409103 | 1 |
Returns either the pendulumparsed actual timestamp or a very outofdate timestamp if not set | def vb4D(YKHO, cZNi):
return t_XE.parse(cZNi) if cZNi is not None else t_XE.from_timestamp(-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YnO1(YKHO):\n bo34.debug('Get a timestamp')\n return ITS7.mktime(qcWV.today().timetuple())",
"def jLGN(YKHO) -> h8nf[int]:\n if YKHO.last_platform_timestamp is None:\n YKHO.logger.warning('No timestamp available yet, will return None')\n if not YKHO.connectivity_service.is_connected():\n ... | [
"0.648689",
"0.6444861",
"0.63685566",
"0.6341769",
"0.6303737",
"0.6288155",
"0.6212839",
"0.61870384",
"0.6161954",
"0.6149132",
"0.6146321",
"0.6142913",
"0.6133332",
"0.6062449",
"0.60585964",
"0.60549253",
"0.60471123",
"0.6017606",
"0.59948987",
"0.59833187",
"0.5968561... | 0.0 | -1 |
Create minimization operation for critic Qfunction. Creates a `tf.optimizer.minimize` operation for updating critic Qfunction with gradient descent, and appends it to `self._training_ops` attribute. See Equations (5, 6) in [1], for further information of the Qfunction update rule. | def b5uc(YKHO):
AAe8 = ZylS.stop_gradient(YKHO._get_Q_target())
assert AAe8.shape.as_list() == [None, 1]
_b2U = YKHO._Q_values = tuple((T8ck([YKHO._observations_ph, YKHO._actions_ph]) for T8ck in YKHO._Qs))
L1F1 = YKHO._Q_losses = tuple((ZylS.losses.mean_squared_error(labels=AAe8, predictions=Ac8S, weig... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ilro(YKHO):\n if YKHO.optim_type == 'adagrad':\n YKHO.optimizer = ZylS.train.AdagradOptimizer(YKHO.learning_rate)\n elif YKHO.optim_type == 'adam':\n YKHO.optimizer = ZylS.train.AdamOptimizer(YKHO.learning_rate)\n elif YKHO.optim_type == 'rprop':\n YKHO.optimizer = ZylS.train.RMSP... | [
"0.617701",
"0.617701",
"0.61641705",
"0.6143253",
"0.6074943",
"0.60410094",
"0.5970363",
"0.5933841",
"0.5909643",
"0.5799687",
"0.57930064",
"0.5788546",
"0.5755054",
"0.57424307",
"0.573328",
"0.5724873",
"0.5710213",
"0.56204665",
"0.56014216",
"0.55849814",
"0.55797213"... | 0.6569671 | 0 |
Create minimization operations for policy and entropy. Creates a `tf.optimizer.minimize` operations for updating policy and entropy with gradient descent, and adds them to `self._training_ops` attribute. See Section 4.2 in [1], for further information of the policy update, and Section 5 in [1] for further information o... | def _NDZ(YKHO):
xASv = YKHO._policy.actions([YKHO._observations_ph])
vYIT = YKHO._policy.log_pis([YKHO._observations_ph], xASv)
assert vYIT.shape.as_list() == [None, 1]
h8KV = YKHO._log_alpha = ZylS.get_variable('log_alpha', dtype=ZylS.float32, initializer=0.0)
Cwt5 = ZylS.exp(h8KV)
if isinstanc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYZr(YKHO):\n YKHO._lr_rate = ZylS.maximum(YKHO._hps.min_lr, ZylS.train.exponential_decay(YKHO._hps.lr, YKHO.global_step, 30000, 0.98))\n EIrk = YKHO._total_loss if YKHO._hps.coverage else YKHO._loss\n J7g5 = ZylS.trainable_variables()\n NfqM = ZylS.gradients(EIrk, J7g5, aggregation_method=ZylS.Agg... | [
"0.69648427",
"0.695903",
"0.695903",
"0.68485653",
"0.67975026",
"0.67818606",
"0.671241",
"0.6701081",
"0.6650842",
"0.6543448",
"0.6537255",
"0.6452603",
"0.6415802",
"0.6385102",
"0.63520676",
"0.6221968",
"0.62092507",
"0.61971563",
"0.61924285",
"0.61868834",
"0.6179307... | 0.0 | -1 |
Depending on which side the ball is, it will bounce to the floor and head to a random point on the other side | def p3Lt(YKHO):
WKvO = tuKI.randint(-250, 250)
A2Jf = -850
tJWT = 850
sqlD = tuKI.randint(-350, 350)
pBSp = -350
if YKHO.xcor() > 300:
YKHO.goto(WKvO, pBSp)
YKHO.goto(A2Jf, sqlD)
elif YKHO.xcor() < -300:
YKHO.goto(WKvO, pBSp)
YKHO.goto(tJWT, sqlD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riZZ(YKHO):\n YKHO.__dx = tuKI.randint(1, w476)\n YKHO.__dy = -abs(YKHO.__dy)\n if tuKI.random() > 0.5:\n YKHO.__dx = -YKHO.__dx",
"def bnMV():\n nYVo = mEGe()\n nYVo.x = tuKI.randrange(Dlbo, zMH2 - Dlbo)\n nYVo.y = tuKI.randrange(Dlbo, vkJL - Dlbo)\n nYVo.change_x = tuKI.randrang... | [
"0.7395145",
"0.7265917",
"0.7169881",
"0.70911753",
"0.68152076",
"0.6756385",
"0.6731728",
"0.66892594",
"0.65376496",
"0.65313524",
"0.65273404",
"0.6411345",
"0.6409751",
"0.6361762",
"0.6352611",
"0.63488364",
"0.6336417",
"0.6316282",
"0.63056767",
"0.62585163",
"0.6250... | 0.80569315 | 0 |
Find numeric ID of the user's public profile. User's profiles are represented with numeric IDs which can be used for the Facebook Graph API. | def tCig(YKHO, BaHi):
bD7m = 'https://www.facebook.com/' + BaHi
YKHO.get(bD7m)
JZXy = YKHO.page_source
try:
kUBT = ZbWC.search('profile_id=(\\d*)', JZXy)
GkA0 = kUBT.group(1)
return GkA0
except (AttributeError, TypeError, KeyError, ValueError):
RKD7.error('Numeric ID ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RIgS(YKHO, z39Z):\n return z39Z['id']",
"def RIgS(YKHO):\n dixj = YKHO.service.userProfiles().list().execute()\n assert 'items' in dixj\n assert len(dixj['items'])\n YKHO.profileId = dixj['items'][0]['profileId']\n return YKHO.profileId",
"def s7GB(NCls, uJjO):\n return NCls['user'].fi... | [
"0.7555418",
"0.73708826",
"0.65480274",
"0.6344922",
"0.62938446",
"0.62693226",
"0.62293553",
"0.6127612",
"0.6053696",
"0.605078",
"0.59591424",
"0.59457433",
"0.5932992",
"0.5916303",
"0.5914374",
"0.59080905",
"0.5904121",
"0.5903699",
"0.5901826",
"0.5898108",
"0.588808... | 0.7593574 | 0 |
convert a quaternion to a matrix and compare it to m | def QkW6(YKHO, vexM, r8hN, **B2fa):
oyIN.testing.assert_array_equal(vexM.to_matrix(), r8hN, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYLU():\n vexM = oyIN.sqrt(0.5) * oyIN.array([1, 0, 0, 1])\n A3Vt = zTi3.matrix_from_quaternion(vexM)\n t_0o(oyIN.array([[0, -1, 0], [1, 0, 0], [0, 0, 1]]), A3Vt)",
"def hi4y():\n A3Vt = oyIN.eye(3)\n jzdc = zTi3.axis_angle_from_matrix(A3Vt)\n t_0o(jzdc, oyIN.array([1, 0, 0, 0]))\n t3eI ... | [
"0.78906715",
"0.7567117",
"0.7308167",
"0.730368",
"0.7266376",
"0.7201517",
"0.71758056",
"0.7130442",
"0.69615674",
"0.6950392",
"0.6925922",
"0.69119704",
"0.6881468",
"0.6879158",
"0.68496335",
"0.68344015",
"0.6801395",
"0.6796591",
"0.67957723",
"0.6758892",
"0.6717089... | 0.66734284 | 21 |
convert a quaternion to a matrix and compare it to m | def lncR(YKHO, vexM, r8hN, **B2fa):
oyIN.testing.assert_array_almost_equal(vexM.to_matrix(), r8hN, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYLU():\n vexM = oyIN.sqrt(0.5) * oyIN.array([1, 0, 0, 1])\n A3Vt = zTi3.matrix_from_quaternion(vexM)\n t_0o(oyIN.array([[0, -1, 0], [1, 0, 0], [0, 0, 1]]), A3Vt)",
"def hi4y():\n A3Vt = oyIN.eye(3)\n jzdc = zTi3.axis_angle_from_matrix(A3Vt)\n t_0o(jzdc, oyIN.array([1, 0, 0, 0]))\n t3eI ... | [
"0.78906715",
"0.7567117",
"0.7308167",
"0.730368",
"0.7266376",
"0.7201517",
"0.71758056",
"0.7130442",
"0.69615674",
"0.6950392",
"0.6925922",
"0.69119704",
"0.6881468",
"0.6879158",
"0.68496335",
"0.68344015",
"0.6801395",
"0.6796591",
"0.67957723",
"0.6758892",
"0.6717089... | 0.63690233 | 38 |