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 |
|---|---|---|---|---|---|---|
Logout the current user. | def erK4():
CBIr = c5ow
CBIr.authenticated = False
NCls.session.add(CBIr)
NCls.session.commit()
oLi7()
cuiw['user_idd'] = cuiw['session_idd']
cuiw['round'] = 0
return vKnz(nKyW('index')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def erK4():\n c5ow = W84Y()\n a8p0.logout(auth_header=c5ow.profile.get_auth_header(), token=c5ow.profile.token)",
"def erK4():\n oLi7()",
"def erK4(YKHO):\n if YKHO.is_loggedin():\n YKHO._send_logout_request()\n dqqV.logout()\n else:\n wk5E.logger.info('Unable to log out the... | [
"0.85760385",
"0.8575777",
"0.85243857",
"0.8480241",
"0.83090883",
"0.83080035",
"0.83073527",
"0.82905054",
"0.8280818",
"0.8241597",
"0.81981015",
"0.8166909",
"0.8130871",
"0.8116898",
"0.810702",
"0.80764365",
"0.8074127",
"0.8074127",
"0.8067122",
"0.80610317",
"0.80512... | 0.7719084 | 65 |
The fullyqualified domain name of the exposed domain used by clients to connect to the service. Similar to what would be chosen for an Active Directory set up on an internal network. | def lLIo(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'fqdn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vk56(YKHO) -> str:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def vk56(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def d1Tj(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain_name')",
"def d1Tj(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain_na... | [
"0.84443176",
"0.81944245",
"0.8080866",
"0.8080866",
"0.8080866",
"0.8080866",
"0.8080866",
"0.8080866",
"0.80431044",
"0.78768384",
"0.78768384",
"0.78768384",
"0.78768384",
"0.78768384",
"0.7759475",
"0.77021056",
"0.76697916",
"0.76697916",
"0.76697916",
"0.7668098",
"0.7... | 0.0 | -1 |
Store the ``uuid``, send confirmation message | def wjLG(JyK9, QdZT, gFsc):
gFsc['uuid'] = QdZT.message.text
mp0y = [['Yes'], ['No']]
w8Zj = DMzw(mp0y)
cb3g = 'Are you sure you want to revert?'
JyK9.sendMessage(chat_id=QdZT.message.chat_id, text=cb3g, reply_markup=w8Zj)
return friJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FR_8(YKHO, Ol8d):\n pass",
"def ls2O(YKHO, nPrm):\n YKHO.conn.send(nPrm)",
"def izyB(YKHO):\n YKHO.mail_subject = 'Подтверждение почты'\n YKHO.message = eoaG('accounts/account_verification_email.html', {'user': YKHO.user, 'uid': F8DE(Fb0K(YKHO.pk)), 'token': SVG3.make_token(YKHO.user), 'email':... | [
"0.61642265",
"0.6050282",
"0.59991634",
"0.5966679",
"0.59337497",
"0.5893539",
"0.58834153",
"0.5873993",
"0.58276176",
"0.58276176",
"0.57205904",
"0.56961346",
"0.5684119",
"0.5652714",
"0.563695",
"0.56036246",
"0.56036246",
"0.56036246",
"0.56036246",
"0.56036246",
"0.5... | 0.66732025 | 0 |
Initializes the Slate, but does no work. Timeout int Number of seconds after which to delete this slate's data (reset on each write), or None for no expiration. Pass a dict (default param) to keep whatever the slate's current timeout is. | def FIMM(YKHO, XLMv, id, vYBr={}):
YKHO.storage = GPtr.storage_class(XLMv, id, vYBr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, vYBr):\n assert vYBr > 0\n YKHO.__timeout = vYBr\n YKHO.__init_time = None",
"def FIMM(YKHO, vYBr):\n YKHO.timeout = vYBr\n YKHO.last = None\n YKHO.cache = None",
"def FIMM(YKHO, fJZN=300):\n dict.__init__(YKHO)\n YKHO._timeouts = {}\n YKHO._default_timeout = fJZN\n ... | [
"0.6454386",
"0.5936738",
"0.58900195",
"0.5796363",
"0.5739217",
"0.5674197",
"0.565263",
"0.562099",
"0.5572727",
"0.55430007",
"0.5536014",
"0.548777",
"0.5443646",
"0.54376054",
"0.5435844",
"0.5434834",
"0.5343459",
"0.53297794",
"0.5329144",
"0.53187704",
"0.53050387",
... | 0.5694543 | 5 |
Returns the number of seconds before this Slate will expire. This value is not refreshed after the first read! Returns None if already expired. The minimum numeric value returned is 0. | def m4gb(YKHO):
return YKHO.storage.time_to_expire() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p_Tc(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'expiration_seconds')",
"def p_Tc(YKHO) -> int:\n return laHg.cast(int, YKHO._properties.get('expirationSeconds'))",
"def aCSz(YKHO):\n return YKHO._expiration_secs",
"def aCSz(YKHO):\n return YKHO._expiration_secs",
"def HHgM(YKH... | [
"0.7448255",
"0.7230608",
"0.7226291",
"0.7226291",
"0.71676016",
"0.7156712",
"0.71487266",
"0.7125823",
"0.71166134",
"0.70992386",
"0.7046016",
"0.7022402",
"0.6999184",
"0.69978416",
"0.69978416",
"0.6972879",
"0.6952212",
"0.69453716",
"0.69453716",
"0.6882399",
"0.68535... | 0.66145056 | 38 |
Renew the expiration date for this Slate, without writing any other data. | def HzBR(YKHO):
YKHO.storage.touch() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IW3u(YKHO, XnA0=False):\n wzkt = ITS7.time()\n if YKHO.expire_period is None:\n return\n if XnA0 and YKHO._last_renew + YKHO.expire_period / 10 < wzkt:\n return\n YKHO._last_renew = wzkt\n try:\n YKHO.lock_path.touch()\n except OSError:\n pass",
"def tWZ0(YKHO):\... | [
"0.75678086",
"0.7230397",
"0.7154746",
"0.67536414",
"0.67336744",
"0.66146946",
"0.66110384",
"0.65044403",
"0.64894676",
"0.63516766",
"0.63516766",
"0.63516766",
"0.63516766",
"0.63516766",
"0.63380617",
"0.63380617",
"0.63100916",
"0.6304407",
"0.6232646",
"0.62284565",
... | 0.0 | -1 |
D.values() > list of D's values. | def hkxX(YKHO):
return YKHO.storage.values() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkxX(YKHO):\n return list(YKHO.itervalues())",
"def hkxX(YKHO):\n return list(YKHO.itervalues())",
"def bgRQ(YKHO):\n return list(YKHO.values.values())",
"def hkxX(YKHO):\n return YKHO.values.values()",
"def hkxX(YKHO):\n return YKHO.values.values()",
"def hkxX(YKHO):\n return YKHO.... | [
"0.795232",
"0.79137945",
"0.7835649",
"0.76954234",
"0.76954234",
"0.76465696",
"0.7616535",
"0.75452507",
"0.75158876",
"0.7474464",
"0.7471523",
"0.74586093",
"0.7454395",
"0.7435577",
"0.74201876",
"0.7409461",
"0.7390074",
"0.73571074",
"0.7335366",
"0.7335366",
"0.73269... | 0.65701395 | 92 |
Initialize Discord state from a ``discord.Client`` | def fA9J(YKHO, JyK9: discord.Client) -> None:
YKHO._clear()
for N5z6 in JyK9.guilds:
RQk0 = {str(YwkQ.id): TskY(str(YwkQ.id), YwkQ.name, YwkQ.type, str(YwkQ.category_id) if YwkQ.category_id else None, YwkQ.position) for YwkQ in N5z6.channels if SVAT.utils.verify_channel_visibility(YwkQ, N5z6.me)}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, x0hE: BotBase) -> None:\n YKHO.value = 0\n YKHO.guild_instance = None\n YKHO.client = x0hE",
"def FIMM(YKHO, x0hE):\n YKHO.client = x0hE\n YKHO.initialize()",
"def FIMM(YKHO, x0hE) -> None:\n YKHO._client = x0hE",
"def FIMM(YKHO, x0hE) -> None:\n YKHO._client = x0hE",
"d... | [
"0.7069894",
"0.6825446",
"0.661948",
"0.661948",
"0.6585322",
"0.6579911",
"0.65761083",
"0.65761083",
"0.65761083",
"0.6437429",
"0.6437429",
"0.6437429",
"0.6437429",
"0.6437429",
"0.6437429",
"0.6437429",
"0.6437429",
"0.6437429",
"0.6437429",
"0.6385795",
"0.6278902",
... | 0.6585218 | 5 |
Queues a URL to be played by the running playlist task. | async def enqueue_url(YKHO, bD7m: str, CBIr: DiscordUser) -> None:
await YKHO._playlist.enqueue_url(bD7m, CBIr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gGq6(YKHO, bD7m):\n pass",
"def QNWh():\n if not QePW.json.get('url', None):\n raise UvM_('Invalid Request, need URL', 400)\n try:\n LWCa(QePW.json.get('url'), Oa1e.client)\n except UvM_ as ex:\n raise aTqo\n except Exception as ex:\n raise UvM_('Unable to queue Url... | [
"0.76140094",
"0.69322425",
"0.6867536",
"0.68379444",
"0.66455734",
"0.65174675",
"0.6488181",
"0.64549994",
"0.6384669",
"0.636474",
"0.63181674",
"0.63090044",
"0.6297098",
"0.624285",
"0.6227863",
"0.61962897",
"0.6183524",
"0.607502",
"0.60701984",
"0.6038228",
"0.598806... | 0.74601215 | 1 |
Returns the current playback status. | def jGRS(YKHO) -> SVAT.audio.Status:
return YKHO._playlist.status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKOm(YKHO):\n return YKHO.__playback_status",
"def r3s_(YKHO):\n return YKHO.__sendUserMessage(0, YKHO.IPC_ISPLAYING)",
"def jGRS(YKHO):\n return YKHO.bus.PlaybackStatus",
"def QtQ8(YKHO):\n G9jH.info(f'{__name__} | index = {YKHO.index} | status of the player read as {YKHO.status}')\n retu... | [
"0.89243686",
"0.8814902",
"0.8427888",
"0.796441",
"0.76911384",
"0.7537763",
"0.73839504",
"0.73550177",
"0.73149234",
"0.7276903",
"0.72757906",
"0.72757906",
"0.72757906",
"0.72516716",
"0.7210501",
"0.71798044",
"0.71741885",
"0.71741885",
"0.71635514",
"0.71619016",
"0.... | 0.81552935 | 3 |
Encodes the float value into `[0, 2^bits]` states. This results in `2^bits + 1` different states. | def kLcZ(YKHO, wEf2: float, ARTs: float=0.0) -> int:
wEf2 = oyIN.clip(wEf2 + ARTs, 0, 1)
return int(round(wEf2 * YKHO.resolution)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gxeb(BWXx):\n return int(oyIN.log(BWXx) / o7u1)",
"def jhGN(YKHO, nPrm, UOVU):\n gXtX = YKHO.to_int(nPrm, UOVU)\n return oyIN.array(gXtX) / 2 ** (UOVU - 1)",
"def jhGN(YKHO, nPrm, UOVU):\n gXtX = YKHO.to_int(nPrm, UOVU)\n return oyIN.array(gXtX) / 2 ** (UOVU - 1)",
"def t3Q7(xDpu):\n if... | [
"0.606113",
"0.5659013",
"0.56538326",
"0.556624",
"0.5481031",
"0.5480877",
"0.5425284",
"0.5419756",
"0.54014254",
"0.53940237",
"0.53890383",
"0.5378349",
"0.53657377",
"0.5359769",
"0.5337105",
"0.5324826",
"0.5320855",
"0.5283114",
"0.5281756",
"0.5281756",
"0.5276527",
... | 0.0 | -1 |
(x,y) position of a point on a circle with axis origin at (0,0) and radius 1. x = cx + r cos(rad) > x = cos(rad) y = cy + r sin(rad) > y = sin(rad) Returns a list of tuples that give the point of each radian passed. | def oeNL(Wskb):
XSm6 = list(oyIN.cos(Wskb))
B3MX = list(oyIN.sin(Wskb))
return [(XSm6[or8S], B3MX[or8S]) for or8S in range(len(XSm6))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cztK(M_DK, r1VO):\n WKvO, LVAh = M_DK\n nJ9F, nxyw = (WKvO - r1VO, LVAh - r1VO)\n o4D3, si3g = (WKvO + r1VO, LVAh + r1VO)\n return [(nJ9F, nxyw), (o4D3, si3g)]",
"def O5Fg(r1VO, LTIa):\n YylR = oyIN.linspace(0, 2 * oyIN.pi, LTIa)\n m2os = oyIN.cos(YylR) * r1VO\n bmPF = oyIN.sin(YylR) * r... | [
"0.8237486",
"0.7870204",
"0.78459424",
"0.77625227",
"0.7754122",
"0.77101916",
"0.7706894",
"0.742904",
"0.73070097",
"0.7247997",
"0.72201693",
"0.71826816",
"0.71470845",
"0.7130752",
"0.7121288",
"0.710357",
"0.70015305",
"0.6967534",
"0.6950819",
"0.6949596",
"0.6944671... | 0.75190574 | 7 |
Impactweighted percentage of acceptance amongst reviewers. Returns a int between 0 and 100. | def IasY(aM_I):
ne5b = aM_I.vote_set.filter(voter_impact__gt=0)
MXdT = 0
Sv4c = 0
for Wyiq in ne5b:
if not aM_I.is_vote_valid(Wyiq):
continue
elif Wyiq.is_accepted:
Sv4c += Wyiq.voter_impact
MXdT += Wyiq.voter_impact
if MXdT == 0:
return None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoVd(YKHO):\n if YKHO.total_swaps > 0:\n return float(YKHO.accepted_swaps) / float(YKHO.total_swaps)\n else:\n return 0.0",
"def An_a(YKHO):\n if YKHO.proposal_count > 0:\n return float(YKHO.acceptance_count) / float(YKHO.proposal_count)\n else:\n return float('nan')",... | [
"0.6945916",
"0.69247174",
"0.6596149",
"0.64927626",
"0.6429511",
"0.640428",
"0.6384008",
"0.6339371",
"0.6312001",
"0.630784",
"0.6292854",
"0.6272392",
"0.62402314",
"0.6224297",
"0.62066215",
"0.6183771",
"0.61797076",
"0.61789376",
"0.6170834",
"0.61698925",
"0.61559445... | 0.70807564 | 0 |
Return a filepath with '_' appended after filename and before extension to handle duplicate files. | def Tnme(YKHO, pmON):
if not isinstance(pmON, str):
return pmON
elif '.' not in pmON:
return pmON
ouAn = pmON[0:pmON.rfind('_' if '_' in pmON else '.')] + YKHO.ExtractExtension(pmON)
hUaC = 2
while Hy7s.path.exists(ouAn):
ouAn = pmON[0:pmON.rfind('.')] + '_' + str(hUaC) + pmO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uuqz(Ux0P):\n return '%s__%s' % (kxTZ(), Ux0P)",
"def YoTy(fMXS):\n AGPF, gIsw = Hy7s.path.split(fMXS)\n oJFo = gIsw\n while Hy7s.path.exists(AGPF + '/' + oJFo):\n oJFo = '_' + oJFo\n return AGPF + '/' + oJFo",
"def yFjF(Ux0P):\n _zEa = Ux0P + F803('_%y%m%d%H%M')\n qaEx = GkAb(_... | [
"0.74832064",
"0.74405515",
"0.740776",
"0.7390719",
"0.72931254",
"0.7233164",
"0.72007596",
"0.7179633",
"0.7171632",
"0.7162695",
"0.71532744",
"0.7145176",
"0.71120954",
"0.71019536",
"0.70280355",
"0.7025311",
"0.7010924",
"0.69643486",
"0.6939075",
"0.69207156",
"0.6907... | 0.7277403 | 5 |
Applies func to obj if it is not None. | def xTMU(JfyU, YEnM):
if YEnM is None:
return YEnM
return JfyU(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y3z9(sB0A, YEnM, **B2fa):\n if callable(sB0A):\n return sB0A(YEnM, **B2fa)\n return sB0A",
"def nFSj(YEnM, Zc6P):\n if YEnM is None:\n if callable(Zc6P):\n return Zc6P()\n else:\n return Zc6P\n return YEnM",
"def u2mj(YEnM):\n return YEnM() if calla... | [
"0.74810505",
"0.72860223",
"0.69306344",
"0.6694171",
"0.63436824",
"0.6277344",
"0.6273105",
"0.6203246",
"0.61557394",
"0.6108998",
"0.6039555",
"0.6034283",
"0.59762716",
"0.59484315",
"0.5901113",
"0.589137",
"0.58841413",
"0.5864692",
"0.5854354",
"0.58507186",
"0.58412... | 0.68932253 | 3 |
Returns the first item in the iterable that is truthy. If none, then return 'default'. | def cntZ(OxJJ, WmM4=None):
for ZfUD in OxJJ:
if ZfUD:
return ZfUD
return WmM4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8tW(OxJJ, WmM4=None):\n if OxJJ:\n for ZfUD in OxJJ:\n return ZfUD\n return WmM4",
"def cntZ(OxJJ, WmM4=None):\n if hasattr(OxJJ, 'all'):\n OxJJ = OxJJ.all()\n oHE7 = iter(OxJJ)\n try:\n return oHE7.next()\n except StopIteration:\n return WmM4",
"de... | [
"0.7912081",
"0.7854002",
"0.78327245",
"0.7829371",
"0.77931154",
"0.77323914",
"0.7698472",
"0.76807576",
"0.76807576",
"0.76258796",
"0.75923645",
"0.7576265",
"0.74875826",
"0.7441961",
"0.73098874",
"0.7286996",
"0.72537977",
"0.719484",
"0.7155092",
"0.71127135",
"0.709... | 0.82898605 | 0 |
Returns 'true' if the expression is true, and 'false' if not. | def CRS3(BWXx):
return 'true' if BWXx else 'false' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dwAN(YKHO, VN2L: str) -> bool:\n try:\n Ylbp = YKHO.boolExpr.parseString(VN2L, parseAll=True)[0]\n return bool(Ylbp)\n except wpWc as e:\n RKD7.error(f'BooleanExpressionEvaluator unable to evaluate expression => {VN2L}', exc_info=tTpl)\n raise tTpl",
"def IZMT(YKHO, VN2L: Lo... | [
"0.7659191",
"0.7201325",
"0.7091725",
"0.69288474",
"0.69152033",
"0.68801373",
"0.6878873",
"0.6835821",
"0.67801094",
"0.67683136",
"0.6750279",
"0.67441523",
"0.6731441",
"0.6704797",
"0.66859806",
"0.66515285",
"0.6630825",
"0.6597007",
"0.6595983",
"0.658388",
"0.656045... | 0.0 | -1 |
Replace any backticks in 'content' with a unicode lookalike to allow quoting in Discord. | def DzkK(hGN5):
return hGN5.replace('`', '՝').replace(':', '∶') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0r0(tO9_):\n for hcXw in Z1GD:\n tO9_ = tO9_.replace(hcXw, f'\\\\{hcXw}')\n return tO9_",
"def gnKW(l5Ny: str):\n return l5Ny.replace('*', '∗').replace('`', 'ˋ')",
"def amK6(l5Ny: str) -> str:\n return ZOrr.utils.escape_markdown(l5Ny)",
"def YG9Y(YKHO, KCHu):\n return KCHu.translat... | [
"0.66320646",
"0.61564726",
"0.614871",
"0.6101103",
"0.5904939",
"0.5891289",
"0.58826673",
"0.58824325",
"0.5849031",
"0.5842244",
"0.5820446",
"0.57308495",
"0.5699139",
"0.5696753",
"0.5684172",
"0.5670177",
"0.56643784",
"0.56521565",
"0.56382585",
"0.5635274",
"0.563365... | 0.69826216 | 0 |
Class constructor. Creates a new card. | def FIMM(YKHO, mWFP):
super().__init__(mWFP)
YKHO._maintype = 'Planeswalker'
YKHO._tribal = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, khoC):\n YKHO.cards = khoC",
"def FIMM(YKHO, khoC):\n YKHO.cards = khoC",
"def dxhl(YKHO, S5Ok):\n return F1Hz(YKHO, S5Ok)",
"def FIMM(YKHO, mWFP, khoC):\n YKHO.name = mWFP\n YKHO.cards = khoC",
"def FIMM(YKHO, dxhl, lhKE):\n YKHO.card = dxhl\n YKHO.zone = lhKE",
"def ... | [
"0.7936492",
"0.78795725",
"0.7794803",
"0.776887",
"0.7741923",
"0.76286614",
"0.7555334",
"0.7511854",
"0.7480208",
"0.7469598",
"0.744585",
"0.743958",
"0.7392376",
"0.73902446",
"0.7341931",
"0.7328447",
"0.7311131",
"0.7292515",
"0.72893757",
"0.72837925",
"0.7260423",
... | 0.0 | -1 |
Returns the handler for application config file | def Nug2():
import ConfigParser
GPtr = ConfigParser.ConfigParser()
GPtr.read(Hy7s.path.join(CIv2(), 'private/baadalapp.cfg'))
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YD9W() -> UbA1:\n return wAIL.config_handler",
"def Ja6Y(YKHO, DCgT, mWFP):\n return YKHO['handlers'][DCgT][mWFP]",
"def Vayp(YKHO) -> h8nf[cuzp[str, ImMB]]:\n return YKHO._error_handler_config",
"def _tYL(YKHO):\n return YKHO.configfile",
"def tgzD():\n return wk5E.config",
"def ZZrV(... | [
"0.8008315",
"0.75604254",
"0.67044836",
"0.6596439",
"0.6529151",
"0.6512134",
"0.65021795",
"0.64990115",
"0.64046067",
"0.6366338",
"0.6348425",
"0.6345941",
"0.62966937",
"0.6266083",
"0.6252555",
"0.6251905",
"0.6172591",
"0.61642265",
"0.6161196",
"0.6149547",
"0.612817... | 0.68383807 | 2 |
Create a new user profile | def lYUQ(YKHO, D3lj, mWFP, jTXt=None):
if not D3lj:
raise ValueError('User must have an email address')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, name=mWFP)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def euOS():\n if Oa1e.user is not None or 'openid' not in cuiw:\n return vKnz(nKyW('index'))\n if QePW.method == 'POST':\n mWFP = QePW.form['name']\n D3lj = QePW.form['email']\n uOe2 = QePW.form['group']\n if not mWFP:\n Dwep(u'Error: you have to provide a name',... | [
"0.83630115",
"0.8335814",
"0.83107877",
"0.82985127",
"0.82621247",
"0.80841404",
"0.80793744",
"0.8044707",
"0.8044707",
"0.8044707",
"0.8044707",
"0.80442506",
"0.8031162",
"0.79756886",
"0.7959325",
"0.7957521",
"0.7942111",
"0.79227567",
"0.79105365",
"0.79099935",
"0.79... | 0.0 | -1 |
Returns the sum of all targets unit values, if the id is unknown, add it as value 1 | def pReJ(tyNF, x6A0):
wjRY = 0
for JjEH in x6A0:
tyNF.setdefault(JjEH.type_id, 1)
wjRY += tyNF[JjEH.type_id]
return wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vQVT(YKHO):\n for pan_ in YKHO:\n pan_.target_amount = False\n pan_.actual_amount = False\n if pan_.individual_ids:\n pan_.target_amount = sum([DM04.target_sales for DM04 in pan_.individual_ids])\n pan_.actual_amount = sum([DM04.actual_sales for DM04 in pan_.indivi... | [
"0.616385",
"0.59884655",
"0.56365985",
"0.5532508",
"0.5496509",
"0.5495635",
"0.54461366",
"0.533217",
"0.5320541",
"0.53175503",
"0.5293564",
"0.52389044",
"0.52210474",
"0.5185954",
"0.5171751",
"0.51700425",
"0.51224035",
"0.51082045",
"0.50966936",
"0.5087711",
"0.50876... | 0.6884443 | 0 |
Format a duration (given as a number in seconds) into strings. Return a pair of strings where the first string gives the duration in microseconds and the second string gives the duration as decimal seconds with exactly six digits following the decimal point. Avoids floatingpoint formatting issues by only using integer ... | def _0Xi(_HKH):
CgKi = 1000000
YXgV = Swre(_HKH * CgKi + 0.5)
MR8h = '%d' % (YXgV,)
h2Z5 = list('%07d' % (YXgV,))
h2Z5.insert(-6, '.')
uTdC = ''.join(h2Z5)
return (MR8h, uTdC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DhpL(_HKH):\n Sm0u, K0A_ = divmod(_HKH, 86400)\n Wave, K0A_ = divmod(K0A_, 3600)\n O66n, C6wh = divmod(K0A_, 60)\n U5bT = ''\n if Sm0u > 1:\n U5bT += '%d days ' % Sm0u\n elif Sm0u == 1:\n U5bT += '%d day ' % Sm0u\n if Wave > 1:\n U5bT += '%d hours ' % Wave\n elif Wa... | [
"0.66281587",
"0.65906703",
"0.64893234",
"0.6472106",
"0.6362151",
"0.6355053",
"0.6308423",
"0.6303433",
"0.62569195",
"0.6235071",
"0.6206669",
"0.6180627",
"0.61611193",
"0.6149522",
"0.61216414",
"0.60921335",
"0.6070985",
"0.60645646",
"0.6014777",
"0.59992534",
"0.5977... | 0.8826346 | 0 |
Walks through a folder and returns a list of filepaths that match the extensions. | def A99F(AGPF, z4WE, znBS=False, xhR7=('_proxy', 'BL_proxy')):
if not AGPF and z4WE:
return None
RRlC = []
from glob import glob
from os.path import basename
for YBcr in z4WE:
K4uW = AGPF + '/'
mXDZ = K4uW + YBcr
RRlC.extend(glob(mXDZ))
if not znBS:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDxs(pGQh: str, Fst3: str) -> x1iM[str]:\n ckRy = []\n Fst3 = Fst3.strip('.').lower()\n for nJTJ, bGrB, RRlC in Hy7s.walk(pGQh):\n for Ux0P in RRlC:\n if pmON.splitext(Ux0P)[1].strip('.').lower() == Fst3:\n ckRy.append(pmON.join(nJTJ, Ux0P))\n return ckRy",
"def D... | [
"0.8307724",
"0.7985331",
"0.7958145",
"0.7797741",
"0.77331954",
"0.77219266",
"0.76659304",
"0.7658214",
"0.7649444",
"0.76270485",
"0.7582279",
"0.7560103",
"0.75449705",
"0.7529535",
"0.7519406",
"0.7505382",
"0.7497869",
"0.7470486",
"0.7448316",
"0.7441697",
"0.743967",... | 0.69573236 | 89 |
Get `count` random objects for a model object `model` or from a queryset. Returns an iterator that yield one object at a time. You model must have an auto increment id for it to work and it should be available on the `id` attribute. | def NY3m(C3ST=None, SR0I=None, UHFx=float('+inf')):
if not SR0I:
try:
SR0I = C3ST.objects.all()
except AttributeError:
raise ValueError('You must provide a model or a queryset')
Np5D = SR0I.aggregate(VYxc('id'))['id__max']
YRbF = 0
while YRbF < UHFx:
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO, C3ST, QpfX):\n assert issubclass(C3ST, ZFYC.Model)\n assert isinstance(QpfX, ZFYC.Context)\n return YKHO.next_response('count', C3ST, QpfX, default=0)",
"def XjBI(YEnM, qoqK=None):\n Kyq_ = 'Count_' + YEnM.__name__\n UHFx = LgTF.get(Kyq_)\n if UHFx is not None:\n return UH... | [
"0.59553653",
"0.5920836",
"0.5886821",
"0.5822628",
"0.5687647",
"0.555531",
"0.54781014",
"0.5450543",
"0.54128975",
"0.53868026",
"0.53859574",
"0.53148216",
"0.53148216",
"0.53061897",
"0.52995706",
"0.52909416",
"0.5243999",
"0.52116776",
"0.52064127",
"0.52052903",
"0.5... | 0.81515014 | 0 |
Uses get() to return an object or None if the object does not exist. klass may be a Model, Manager, or QuerySet object. All other passed arguments and keyword arguments are used in the get() query. | def GyR0(rV9y, *qIxc, **B2fa):
SR0I = gWcE(rV9y)
try:
return SR0I.get(*qIxc, **B2fa)
except SR0I.model.DoesNotExist:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTS8(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n return None",
"def rTS8(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n ... | [
"0.7703715",
"0.76141226",
"0.7479011",
"0.7101056",
"0.6832215",
"0.6568247",
"0.65420884",
"0.65071815",
"0.6479658",
"0.6470503",
"0.6411505",
"0.6378278",
"0.63398343",
"0.63139397",
"0.6301336",
"0.6242908",
"0.6197056",
"0.6192437",
"0.6134093",
"0.61267674",
"0.6121301... | 0.7582422 | 2 |
Returns a symmetric vector about 0 of length 2n with spacing d. The center = 0 is at [n1] | def GpTc(exwG, Csk6):
return oyIN.arange(-exwG + 1, exwG + 1, 1) * Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xdgg(exwG):\n return oyIN.arange(-(exwG - 1) // 2, (exwG - 1) // 2 + 1)",
"def wnEH(XP5J: 'int const *', exwG: 'unsigned int') -> 'unsigned int':\n return QZnQ.vnl_c_vectorSI_two_norm(XP5J, exwG)",
"def cbY4(XP5J: 'int const *', exwG: 'unsigned int') -> 'unsigned int':\n return QZnQ.vnl_c_vectorSI... | [
"0.6381254",
"0.6329342",
"0.61755335",
"0.6171724",
"0.6167528",
"0.6067294",
"0.6067294",
"0.6032196",
"0.6030287",
"0.60284317",
"0.6019443",
"0.5975784",
"0.5964977",
"0.5923809",
"0.5915435",
"0.59073126",
"0.5895331",
"0.5853775",
"0.58242226",
"0.5775388",
"0.5773655",... | 0.79517037 | 0 |
Returns a boolean dictating if a User like instance can view the current Model instance. | def KKMP(YKHO, CBIr):
if YKHO.status == 'inherit' and YKHO.is_response:
return YKHO.question.can_view(CBIr)
if YKHO.status == 'rejected' and CBIr.is_staff:
return True
if YKHO.status == 'review' and CBIr.is_staff:
return True
if YKHO.status == 'draft':
if YKHO.user == CBI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKMP(YKHO):\n return YKHO.public() or 'owner' in YKHO.permissions()",
"def a6Wz(YKHO, QePW, tTee, YEnM):\n return QePW.user == YEnM",
"def m4il(YKHO, QePW: Request, tTee: Any, KAOR: User) -> bool:\n if not isinstance(KAOR, mv1M):\n Ol8d = f\"'{YKHO.__class__}' is only applicable to api view... | [
"0.76315373",
"0.7511522",
"0.7431145",
"0.7401323",
"0.7262691",
"0.7221767",
"0.71790594",
"0.713678",
"0.7124381",
"0.7110817",
"0.7087447",
"0.7084985",
"0.70601946",
"0.70505756",
"0.70365703",
"0.70295143",
"0.7023528",
"0.70159864",
"0.70112765",
"0.700426",
"0.700426"... | 0.66774976 | 87 |
Return config dict for current plugin | def GPtr(YKHO):
global _CONFIG
if not DVw1:
ZGE9 = YKHO.config_section
bo34.debug('Loading config for: %s', ZGE9)
DVw1 = PSrQ(ZGE9).config_dict
return DVw1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOQ2(YKHO):\n if not YKHO.config:\n return {}\n if not YKHO.config.configuration:\n return {}\n return YKHO.config.configuration.get(YKHO.config_section, {})",
"def GPtr(YKHO):\n return YKHO._pluginconfig",
"def Zzuc():\n return qQXR.loads(Hy7s.getenv('DKU_PLUGIN_CONFIG'))",
... | [
"0.83202225",
"0.8273446",
"0.79491764",
"0.79052645",
"0.78445065",
"0.7690798",
"0.7600991",
"0.75292045",
"0.75292045",
"0.74288225",
"0.74288225",
"0.74288225",
"0.7379567",
"0.731525",
"0.73002434",
"0.7297642",
"0.72691953",
"0.72632307",
"0.7249717",
"0.7249717",
"0.72... | 0.0 | -1 |
Escape double quotes and }'s in a string | def wFs6(YKHO, KCHu):
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IguF(KCHu):\n return KCHu.replace(\"'\", \"'\\\\''\")",
"def lAFE(vIwR):\n return vIwR.replace(\"'\", \"'\\\\''\")",
"def FQK6(vIwR):\n assert '\\n' not in vIwR, 'Cannot process a string with newlines in it ' + 'using quoteString, try quoteListString'\n ATYb = ['\\\\', '{', '}', '\"']\n for ... | [
"0.78819215",
"0.7878988",
"0.7610488",
"0.7590774",
"0.7475781",
"0.74596226",
"0.7414268",
"0.7391956",
"0.735837",
"0.7322868",
"0.7310653",
"0.72863376",
"0.7285843",
"0.7281123",
"0.7279566",
"0.72544587",
"0.7190648",
"0.7185381",
"0.71528554",
"0.71507716",
"0.7136505"... | 0.0 | -1 |
Makes a 3item list of revision, value and timestamp for a Row. | def BAXn(rdlD):
E3oo = BfDw.TimestampMilliseconds(rdlD.timestamp)
return [rdlD.revision, rdlD.value, E3oo] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jldF(Emd4, rdlD: List) -> x1iM:\n return [Emd4._get_date(rdlD), Emd4._get_transaction_type(rdlD), Emd4._get_amount(rdlD), Emd4._get_field_from(rdlD), Emd4._get_field_to(rdlD)]",
"def ON3l(YKHO):\n WBPg = [['Revision', 'Values']]\n with YKHO._api.m.step.nest('Resolving hashes'):\n usx6 = [[Mkm... | [
"0.6683707",
"0.62153745",
"0.5930729",
"0.5905013",
"0.58582544",
"0.5735159",
"0.572212",
"0.5700877",
"0.56785274",
"0.56785274",
"0.567632",
"0.5665875",
"0.5660911",
"0.56033343",
"0.55936843",
"0.55473894",
"0.5546388",
"0.5541907",
"0.55307955",
"0.55244756",
"0.547385... | 0.76663387 | 0 |
Initialize the bandits with means and standard deviations drawn from a normal distribution. | def tEzm(YKHO, JBMS=0, ee6l=1):
yGTL = tuKI.gauss(JBMS, ee6l)
YKHO.bandits = [OyIr(yGTL, 1)]
YKHO.optimal_bandit = 0
for LtKa in range(1, YKHO.k):
yGTL = tuKI.gauss(JBMS, ee6l)
YKHO.bandits += [OyIr(yGTL, 1)]
if yGTL > YKHO.bandits[YKHO.optimal_bandit].mean:
YKHO.opti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, z2bo, JBMS=0.0):\n super(VZtd, YKHO).__init__()\n YKHO.stddev = z2bo\n YKHO.mean = JBMS",
"def FIMM(YKHO, yGTL=0, WTkW=1):\n YKHO.mean = yGTL\n YKHO.stdev = WTkW\n YKHO.data = []",
"def FIMM(YKHO, yGTL=0, WTkW=1):\n YKHO.mean = yGTL\n YKHO.stdev = WTkW\n YKHO.data = []... | [
"0.68563634",
"0.67108923",
"0.6637894",
"0.66280675",
"0.65740454",
"0.64334035",
"0.63452786",
"0.62822264",
"0.6282084",
"0.62349814",
"0.6204222",
"0.6201988",
"0.61954707",
"0.61898863",
"0.61876005",
"0.6172884",
"0.61654645",
"0.61578095",
"0.60783136",
"0.60636425",
"... | 0.7085536 | 0 |
Redirect the user to the initially requested page on logout and say goodbye as well. | def vQk1(YKHO, bFHT=bD7m('/')):
Dwep(bGrB('Hasta luego!'))
vKnz('/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vQk1(YKHO, bFHT=bD7m('/')):\n Dwep(bGrB('We hope to see you soon!'))\n vKnz(bFHT)",
"def vQk1(YKHO, bFHT=DiYJ('/')):\n Dwep(bGrB('We hope to see you soon!'))\n vKnz(bFHT)",
"def erK4():\n wJ7q()\n Dwep('You were logged out')\n return vKnz(QePW.args.get('next', '/'))",
"def erK4():\n ... | [
"0.77842313",
"0.7765724",
"0.7585481",
"0.7581937",
"0.7572753",
"0.75675064",
"0.7540422",
"0.7486387",
"0.74662995",
"0.7437672",
"0.7437182",
"0.74308383",
"0.7424345",
"0.74234223",
"0.7411459",
"0.7379471",
"0.7369247",
"0.736679",
"0.7362489",
"0.73565245",
"0.7353622"... | 0.78040665 | 0 |
Returns True or False depending on whether the given ``address`` is a valid email address or not. Applies the same restrictions as ``yepes.validators.RestrictedEmailValidator``. | def Bt7w(UTX6):
UTX6 = Qsf5(UTX6)
if '@' not in UTX6:
return False
i9qL, Slw0 = UTX6.rsplit('@', 1)
return XY7k.search(Slw0) is not None and lUx9.search(i9qL) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tw02(YKHO, UTX6):\n if YKHO._reEmail.search(UTX6) is None:\n return False\n return True",
"def ozWI(UTX6):\n if not UTX6:\n return False\n kUBT = ZbWC.match('(?:[a-zA-Z\\\\-_+0-9.]+)@([a-zA-Z0-9_\\\\-]+(?:\\\\.[a-zA-Z0-9_\\\\-]+)+)', UTX6)\n if not kUBT:\n return False\n ... | [
"0.8499503",
"0.8382037",
"0.8346147",
"0.78830093",
"0.772051",
"0.76854676",
"0.74954253",
"0.7203924",
"0.71886045",
"0.7161462",
"0.71177953",
"0.7116118",
"0.71016824",
"0.70845556",
"0.70655864",
"0.70422024",
"0.7034455",
"0.7031285",
"0.7002138",
"0.69892496",
"0.6963... | 0.83345896 | 3 |
Turn a kwargs dictionary into a triple of (field, comparator, value). | def i4CI(Op6c):
def tFpc(H5ew):
"""Split a key like ``foo__gte`` into ``('foo', 'gte')``.
Simple ``foo`` becomes ``('foo', '')``.
"""
SQ3m = H5ew.rsplit('__', 1)
if len(SQ3m) == 1:
SQ3m.append('')
return SQ3m
return [tFpc(H5ew) + [BWXx] for H5ew, BW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DHvO(YKHO, B2fa):\n return jqqY(lambda G1Hx, Ty9i: cpVm((G1Hx, Ty9i)), B2fa)",
"def K0iJ(Emd4, B2fa):\n i9sM = {}\n RE_f = {}\n for H5ew, BWXx in B2fa.items():\n if H5ew in Emd4.param_def:\n RE_f[H5ew] = BWXx\n else:\n i9sM[H5ew] = BWXx\n return (i9sM, RE_f)... | [
"0.63830286",
"0.6052505",
"0.5985458",
"0.5806328",
"0.56699514",
"0.56556946",
"0.547305",
"0.54504514",
"0.5341218",
"0.5327877",
"0.5306128",
"0.5301363",
"0.52382773",
"0.5232758",
"0.5232475",
"0.5220485",
"0.51957524",
"0.5186121",
"0.5167552",
"0.51532245",
"0.5145965... | 0.0 | -1 |
Test make sure add slash in front. | def O9VN(YKHO):
geh0 = YKHO.editor_no_permissions_client.get(YKHO.page_no_first_slash.url)
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sUeu(YKHO):\n YKHO._do_test('slash')\n YKHO._do_test('no_slash')",
"def qehH(pmON: str, aEqx: str):\n assert h1DV(pmON) == aEqx",
"def HTgg(hMqs):\n if hMqs.count('/') > 0:\n return True\n else:\n return False",
"def IdoN(YKHO):\n cll5 = FYrf.ShortenedUrl.objects.create(ur... | [
"0.8248202",
"0.7693509",
"0.6777816",
"0.67641383",
"0.66946304",
"0.663378",
"0.6618485",
"0.6580477",
"0.6575243",
"0.6570068",
"0.6540467",
"0.6529544",
"0.6528796",
"0.6500928",
"0.648707",
"0.6440382",
"0.64217573",
"0.6383311",
"0.63587666",
"0.6324685",
"0.63152564",
... | 0.6336347 | 19 |
Joins a tuple in the form ``(initial, vowel, final)`` to a Hangul character. | def kgcd(FJDa):
assert len(FJDa) == len(x2Vw)
if not (FJDa[0] and FJDa[1]):
return FJDa[0] or FJDa[1]
bS0K = [tuple.index(*qIxc) for qIxc in zip(x2Vw, FJDa)]
vgXP = (bS0K[0] * len(Moq7) + bS0K[1]) * len(oLsa) + bS0K[2]
return mYtf(Ks3s + vgXP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def capf(PtEt, slhz, x6uB=''):\n if x6uB is None:\n x6uB = ''\n try:\n Vnav = uNay.index(PtEt)\n KyDe = cgBY.index(slhz)\n XIAA = PJ46.index(x6uB)\n except Exception as e:\n raise LE6E('No valid Hangul character can be generated using given combination of chosung, joongs... | [
"0.63654196",
"0.58089393",
"0.56554544",
"0.557814",
"0.553993",
"0.55358714",
"0.550381",
"0.54312557",
"0.5420424",
"0.53957593",
"0.53948575",
"0.534332",
"0.53323716",
"0.53323716",
"0.53019595",
"0.5284728",
"0.52772295",
"0.52453333",
"0.5235698",
"0.5216751",
"0.51606... | 0.61949766 | 1 |
Divides the value of this number by `div_value` only if this number satisfies `satisfaction_condition`. Mutuates this `SynchronizedNumber`; does NOT return a new object. | def Nu51(YKHO, S327, u1SC):
def ubXp(wEf2):
return wEf2 / S327
return YKHO.operate_if_satisfies_condition(ubXp, u1SC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hFiK(YKHO, EIVm):\n YKHO.val = YKHO.val / EIVm\n return YKHO",
"def Dvhm(Ty9i: Union[float, int], di96: Optional[int]=8, dgIT: Optional[Union[float, int]]=None) -> uLKX[float, int]:\n if dgIT is None:\n dgIT = di96\n _6_j = max(dgIT, int(Ty9i + di96 / 2) // di96 * di96)\n if _6_j < 0.9 ... | [
"0.622062",
"0.6176354",
"0.6116773",
"0.6099973",
"0.6099973",
"0.6098932",
"0.6098932",
"0.6038387",
"0.60165155",
"0.6003289",
"0.6003289",
"0.6003289",
"0.6003289",
"0.5980984",
"0.5980984",
"0.5980984",
"0.5980984",
"0.5980984",
"0.5980984",
"0.5980984",
"0.5980984",
"... | 0.69134414 | 0 |
Mutuates the value of this number according the the `operator` function that is passed in, only if this number satisfies `satisfaction_condition`. Mutuates this `SynchronizedNumber`; does NOT return a new object. | def GSrV(YKHO, seET, u1SC):
if YKHO._lock.acquire(YKHO.should_block_thread):
try:
if u1SC(YKHO.value):
YKHO.value = seET(YKHO.value)
return True
else:
return False
finally:
YKHO._lock.release()
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yga5(YKHO, vGlX, u1SC):\n\n def YpJp(wEf2):\n return wEf2 * vGlX\n return YKHO.operate_if_satisfies_condition(YpJp, u1SC)",
"def QEFV(YKHO, rCoQ, u1SC):\n\n def iJNU(wEf2):\n return wEf2 + rCoQ\n return YKHO.operate_if_satisfies_condition(iJNU, u1SC)",
"def L3gF(YKHO, Elif):\n ... | [
"0.54364216",
"0.5423681",
"0.5143335",
"0.48574907",
"0.4793825",
"0.47902304",
"0.46042737",
"0.45888993",
"0.45728266",
"0.45622522",
"0.45613095",
"0.45320946",
"0.45230865",
"0.44995412",
"0.44884378",
"0.44849974",
"0.44840634",
"0.44809574",
"0.44630402",
"0.4449297",
... | 0.66261727 | 0 |
Test a GET flow when the applications do not allow nominations | def rFld(YKHO):
YKHO._seed_data()
geh0 = YKHO.app.get('/api/v1/response', headers={'Authorization': YKHO.other_user_data['token']}, query_string={'event_id': YKHO.event.id})
nPrm = qQXR.loads(geh0.data)
YKHO.assertEqual(len(nPrm), 1)
nPrm = nPrm[0]
YKHO.assertEqual(nPrm['application_form_id'], Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)",
"def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)",
"def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)",
"def... | [
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065",
"0.67872065"... | 0.0 | -1 |
Test a GET flow when the applications do allow nominations | def t5j2(YKHO):
YKHO._seed_data()
geh0 = YKHO.app.get('/api/v1/response', headers={'Authorization': YKHO.other_user_data['token']}, query_string={'event_id': YKHO.event_with_nomination.id})
nPrm = qQXR.loads(geh0.data)
YKHO.assertEqual(len(nPrm), 2)
YKHO.assertEqual(nPrm[0]['application_form_id'], Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ixGW(YKHO):\n pass",
"def Wp7P(YKHO) -> None:\n return YKHO.not_allowed_response('GET')",
"def N7ff(YKHO):\n YKHO.assertEqual(YKHO.factory_from_makeRequest([]).method, 'GET')",
"def PPBk(YKHO) -> None:\n oimG, VIzB = mY5c()\n CppO = CyAT(oimG.resource())\n geh0 = YKHO.successResultOf(Cp... | [
"0.66942406",
"0.6630959",
"0.6616911",
"0.6540815",
"0.6526367",
"0.6526367",
"0.6526367",
"0.6526367",
"0.6526367",
"0.6434274",
"0.6415886",
"0.6386462",
"0.6376373",
"0.6376373",
"0.6376373",
"0.6376373",
"0.6376373",
"0.6376373",
"0.6376373",
"0.6376373",
"0.6376373",
... | 0.0 | -1 |
Test that we get a 404 error if we try to get a response for an event with no application form. | def eIlS(YKHO):
YKHO._seed_data()
bCwL = YKHO.add_event({'en': 'Test Event 2'}, key='HOLLA')
geh0 = YKHO.app.get('/api/v1/response', headers={'Authorization': YKHO.other_user_data['token']}, query_string={'event_id': bCwL.id})
YKHO.assertEqual(geh0.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hI1R(YKHO):\n YKHO._seed_data()\n geh0 = YKHO.app.get('/api/v1/response', headers={'Authorization': YKHO.other_user_data['token']}, query_string={'event_id': YKHO.event.id + 100})\n YKHO.assertEqual(geh0.status_code, 404)",
"def wXo5(YKHO):\n YKHO._seed_data()\n geh0 = YKHO.app.get('/api/v1/re... | [
"0.75665736",
"0.743025",
"0.7341092",
"0.73374945",
"0.7278039",
"0.7254629",
"0.71321",
"0.7087726",
"0.7067005",
"0.7049635",
"0.7031698",
"0.7003266",
"0.69944364",
"0.69678926",
"0.69563967",
"0.6953777",
"0.6948329",
"0.693444",
"0.6928292",
"0.6908491",
"0.6907416",
... | 0.820777 | 0 |
Test that we can't update the application form id for a response. | def GU_g(YKHO):
YKHO._seed_data()
r7tU = {'id': YKHO.response.id, 'application_form_id': YKHO.form.id + 100, 'is_submitted': True, 'answers': []}
geh0 = YKHO.app.put('/api/v1/response', data=qQXR.dumps(r7tU), content_type='application/json', headers={'Authorization': YKHO.other_user_data['token']}, query_st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l6Ok(YKHO):\n YKHO._seed_data()\n r7tU = {'id': YKHO.response.id + 100, 'application_form_id': YKHO.form.id, 'is_submitted': True, 'answers': []}\n geh0 = YKHO.app.put('/api/v1/response', data=qQXR.dumps(r7tU), content_type='application/json', headers={'Authorization': YKHO.other_user_data['token']}, ... | [
"0.7484203",
"0.71773165",
"0.69493216",
"0.69222635",
"0.6919633",
"0.6888844",
"0.6841304",
"0.6836364",
"0.6760752",
"0.6721158",
"0.6701332",
"0.6667112",
"0.6590593",
"0.65744483",
"0.64946896",
"0.6489212",
"0.6476092",
"0.6455425",
"0.64510655",
"0.64477605",
"0.639807... | 0.71423787 | 2 |
Test response list with questions requested and unsubmitted included. | def YXyP(YKHO):
YKHO._seed_static_data()
NArs = {'event_id': YKHO.event1.id, 'language': 'en', 'include_unsubmitted': True, 'question_ids[]': [1, 3]}
geh0 = YKHO.app.get('/api/v1/responses', headers=YKHO.get_auth_header_for('event1admin@mail.com'), data=NArs)
nPrm = qQXR.loads(geh0.data)
YKHO.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _C3Y(YKHO):\n YKHO._seed_static_data()\n NArs = {'event_id': YKHO.event1.id, 'language': 'en', 'include_unsubmitted': False}\n geh0 = YKHO.app.get('/api/v1/responses', headers=YKHO.get_auth_header_for('event1admin@mail.com'), data=NArs)\n nPrm = qQXR.loads(geh0.data)\n YKHO.assertEqual(len(nPrm)... | [
"0.7377365",
"0.7148376",
"0.7093144",
"0.70052963",
"0.69083536",
"0.69060266",
"0.6884316",
"0.6867698",
"0.6864521",
"0.6860124",
"0.68541133",
"0.6846576",
"0.6842297",
"0.6842297",
"0.6842297",
"0.6842297",
"0.68416965",
"0.6808349",
"0.6775068",
"0.6754438",
"0.6715538"... | 0.7973356 | 0 |
Test that a reviewer can add a tag. | def xS2v(YKHO):
YKHO._seed_static_data()
NArs = {'event_id': YKHO.event1.id, 'tag_id': YKHO.tag1.id, 'response_id': YKHO.response1.id}
geh0 = YKHO.app.post('/api/v1/responsetag', headers=YKHO.get_auth_header_for('event1reviewer1@mail.com'), json=NArs)
YKHO.assertEqual(geh0.status_code, 201)
NArs = {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B96W(YKHO):\n YKHO._seed_static_data()\n NArs = {'event_id': YKHO.event1.id, 'tag_id': YKHO.tag1.id, 'response_id': YKHO.response1.id}\n geh0 = YKHO.app.post('/api/v1/responsetag', headers=YKHO.get_auth_header_for('event1reviewer2@mail.com'), json=NArs)\n YKHO.assertEqual(geh0.status_code, 403)",
... | [
"0.70017016",
"0.6875847",
"0.6827074",
"0.68161076",
"0.6773634",
"0.67718256",
"0.6762932",
"0.67377084",
"0.6732524",
"0.6716263",
"0.67095184",
"0.67090183",
"0.66557366",
"0.6637878",
"0.66205585",
"0.6612927",
"0.660572",
"0.6593268",
"0.6573785",
"0.657266",
"0.6563705... | 0.72460467 | 0 |
Test that a reviewer of a different response can't add a tag. | def B96W(YKHO):
YKHO._seed_static_data()
NArs = {'event_id': YKHO.event1.id, 'tag_id': YKHO.tag1.id, 'response_id': YKHO.response1.id}
geh0 = YKHO.app.post('/api/v1/responsetag', headers=YKHO.get_auth_header_for('event1reviewer2@mail.com'), json=NArs)
YKHO.assertEqual(geh0.status_code, 403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wx5R(YKHO):\n YKHO._seed_static_data()\n NArs = {'event_id': YKHO.event1.id, 'tag_id': YKHO.tag1.id, 'response_id': YKHO.response1.id}\n geh0 = YKHO.app.post('/api/v1/responsetag', headers=YKHO.get_auth_header_for('user2@mail.com'), json=NArs)\n YKHO.assertEqual(geh0.status_code, 403)",
"def Ee4Q... | [
"0.79427725",
"0.7760373",
"0.7403354",
"0.7356684",
"0.70750487",
"0.65353465",
"0.6460631",
"0.6314995",
"0.6288721",
"0.62642264",
"0.61995995",
"0.613498",
"0.6107309",
"0.6082404",
"0.60118943",
"0.60029936",
"0.59923726",
"0.599104",
"0.5972729",
"0.59699553",
"0.595469... | 0.8333946 | 0 |
Test that a non admin can't access reponse detail. | def hjFJ(YKHO):
YKHO._seed_static_data()
NArs = {'event_id': YKHO.event1.id, 'response_id': YKHO.response1.id, 'language': 'en'}
geh0 = YKHO.app.get('/api/v1/responsedetail', headers=YKHO.get_auth_header_for('user1@mail.com'), json=NArs)
YKHO.assertEqual(geh0.status_code, 403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e7WD(YKHO):\n YKHO.client.login(email=YKHO.nonAdminUN, password='pass')\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)",
"def e7WD(YKHO):\n YKHO.client.login(email=YKHO.nonAdminUN, password='pass')\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.sta... | [
"0.8002399",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"0.7992676",
"... | 0.7907605 | 28 |
Returns unique proteins encountered in X!Tandem BIOML XML file. Unique proteins are determined by their FASTA headers. Several different peptides can come from the same protein header. | def XtFy(rac8, hb_0, k9g6):
MOPg = (UXqs for UXqs, ZVD9, Zqvr, sf8Z, epBp, sYus, Q6uT in K2sD(rac8) if Zqvr < hb_0 and sf8Z > k9g6)
return set(MOPg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y6i0(YKHO):\n PH57 = []\n dB3J = ''\n JBZA = ''\n Kj8K = [-1, -1]\n for H5ew, BWXx in YKHO.dict_fasta_data.items():\n n4y_ = YKHO.split_header_by_square_brackets(BWXx.description)\n if YKHO.identification_key in n4y_:\n dB3J = n4y_[YKHO.identification_key]\n if 'p... | [
"0.6460805",
"0.6221745",
"0.61406845",
"0.6071068",
"0.6060686",
"0.60247046",
"0.58763516",
"0.5806339",
"0.5761945",
"0.5760592",
"0.56489074",
"0.5634903",
"0.56253314",
"0.5625265",
"0.5592211",
"0.5584186",
"0.55664825",
"0.55453825",
"0.55442125",
"0.5536511",
"0.55133... | 0.6726958 | 0 |
cast(itkLightObject obj) > itkComplexToModulusImageFilterICF2IF2_Superclass | def YWvJ(*qIxc):
return pVh7.itkComplexToModulusImageFilterICF2IF2_Superclass_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkRescaleIntensityImageFilterIF2IF2_Superclass *':\n return KcuS.itkRescaleIntensityImageFilterIF2IF2_Superclass_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkRescaleIntensityImageFilterIUC2IF2_Superclass *':\n return KcuS.itkRescaleIntensityImageFilterIUC2IF2_... | [
"0.84285456",
"0.8423505",
"0.8397447",
"0.8350464",
"0.83050835",
"0.8285762",
"0.82848597",
"0.82778364",
"0.8275362",
"0.8273183",
"0.82189083",
"0.8201136",
"0.8199202",
"0.81975186",
"0.81973225",
"0.8196112",
"0.81937885",
"0.81837624",
"0.81752294",
"0.81707954",
"0.81... | 0.79018503 | 73 |
New() > itkComplexToModulusImageFilterICF2IF2_Superclass Create a new object of the class itkComplexToModulusImageFilterICF2IF2_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new object... | def oW_4(*qIxc, **PECO):
YEnM = fXkQ.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = DUQt.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = V_Fs.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.75077724",
"0.74808604",
"0.74779916",
"0.7455305",
"0.7449226",
"0.7446857",
"0.73910016",
"0.7344746",
"0.7334112",
"0.7330905",
"0.7329727",
"0.7327186",
"0.7304359",
"0.7290492",
"0.7286945",
"0.72735906",
"0.7272424",
"0.7243765",
"0.71925324",
"0.7187173",
"0.7179276... | 0.79977953 | 0 |
itkComplexToModulusImageFilterICF2IF2_Superclass_cast(itkLightObject obj) > itkComplexToModulusImageFilterICF2IF2_Superclass | def zEyW(*qIxc):
return pVh7.itkComplexToModulusImageFilterICF2IF2_Superclass_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qgHh(YEnM: 'itkLightObject') -> 'itkRescaleIntensityImageFilterIF2IF2_Superclass *':\n return KcuS.itkRescaleIntensityImageFilterIF2IF2_Superclass_cast(YEnM)",
"def qCkn(YEnM: 'itkLightObject') -> 'itkRescaleIntensityImageFilterIUC2IF2_Superclass *':\n return KcuS.itkRescaleIntensityImageFilterIUC2IF2_... | [
"0.86457956",
"0.8593813",
"0.8570848",
"0.85562223",
"0.854634",
"0.8539746",
"0.8523324",
"0.8522689",
"0.85080117",
"0.84995425",
"0.8488734",
"0.8487275",
"0.84852785",
"0.8464636",
"0.8464199",
"0.8463044",
"0.84602165",
"0.84541464",
"0.84456754",
"0.8443349",
"0.842898... | 0.8752078 | 0 |
cast(itkLightObject obj) > itkComplexToModulusImageFilterICF3IF3_Superclass | def YWvJ(*qIxc):
return pVh7.itkComplexToModulusImageFilterICF3IF3_Superclass_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkRescaleIntensityImageFilterIF3IF3_Superclass *':\n return KcuS.itkRescaleIntensityImageFilterIF3IF3_Superclass_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkRescaleIntensityImageFilterIUC3IF3_Superclass *':\n return KcuS.itkRescaleIntensityImageFilterIUC3IF3_... | [
"0.8382905",
"0.8373716",
"0.8368445",
"0.832562",
"0.8293058",
"0.82846516",
"0.8283233",
"0.82825476",
"0.8250433",
"0.82238865",
"0.82106715",
"0.82106197",
"0.8193183",
"0.81895494",
"0.81894106",
"0.8181357",
"0.81691056",
"0.81603205",
"0.8140337",
"0.81396437",
"0.8132... | 0.7843771 | 76 |
New() > itkComplexToModulusImageFilterICF3IF3_Superclass Create a new object of the class itkComplexToModulusImageFilterICF3IF3_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new object... | def oW_4(*qIxc, **PECO):
YEnM = LEDY.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = Tqi9.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = Ytfa.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7523121",
"0.74752146",
"0.7473776",
"0.74538565",
"0.74187934",
"0.7395269",
"0.73873526",
"0.7356049",
"0.7348602",
"0.73407394",
"0.73081124",
"0.73054063",
"0.7298286",
"0.72948354",
"0.72899973",
"0.727894",
"0.72687984",
"0.7256862",
"0.7245874",
"0.7236106",
"0.7227... | 0.79110295 | 0 |
itkComplexToModulusImageFilterICF3IF3_Superclass_cast(itkLightObject obj) > itkComplexToModulusImageFilterICF3IF3_Superclass | def Pogw(*qIxc):
return pVh7.itkComplexToModulusImageFilterICF3IF3_Superclass_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lNHq(YEnM: 'itkLightObject') -> 'itkRescaleIntensityImageFilterIF3IF3_Superclass *':\n return KcuS.itkRescaleIntensityImageFilterIF3IF3_Superclass_cast(YEnM)",
"def kKgO(YEnM: 'itkLightObject') -> 'itkRescaleIntensityImageFilterISS3IF3_Superclass *':\n return KcuS.itkRescaleIntensityImageFilterISS3IF3_... | [
"0.85788286",
"0.8565211",
"0.8562995",
"0.8547917",
"0.85458887",
"0.85410845",
"0.8537457",
"0.8524857",
"0.8514955",
"0.85117185",
"0.85052097",
"0.8497983",
"0.84973335",
"0.8495122",
"0.8489775",
"0.8487609",
"0.8485844",
"0.84787375",
"0.84719664",
"0.8456641",
"0.84566... | 0.87712455 | 0 |
cast(itkLightObject obj) > itkComplexToModulusImageFilterICF2IF2 | def YWvJ(*qIxc):
return pVh7.itkComplexToModulusImageFilterICF2IF2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF2IF2 *':\n return zrAt.itkFastMarchingImageFilterBaseIF2IF2_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkConnectedThresholdImageFilterIF2IF2 *':\n return f4YQ.itkConnectedThresholdImageFilterIF2IF2_cast(YEnM)",
"def VA6P(YEnM: ... | [
"0.8091603",
"0.8050188",
"0.8021446",
"0.80154365",
"0.7972522",
"0.79656875",
"0.7964227",
"0.79544866",
"0.793823",
"0.7930469",
"0.79261863",
"0.7903924",
"0.7896727",
"0.78886604",
"0.7861356",
"0.78481567",
"0.78406054",
"0.7831558",
"0.78310215",
"0.7810312",
"0.780586... | 0.0 | -1 |
New() > itkComplexToModulusImageFilterICF2IF2 Create a new object of the class itkComplexToModulusImageFilterICF2IF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named ... | def oW_4(*qIxc, **PECO):
YEnM = DUQt.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = fXkQ.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = RjbS.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.80240136",
"0.746239",
"0.74568224",
"0.74542207",
"0.74429816",
"0.7424229",
"0.7417843",
"0.74152833",
"0.739753",
"0.739565",
"0.7390191",
"0.73900455",
"0.7373547",
"0.73358554",
"0.73345435",
"0.73301333",
"0.73222023",
"0.73184526",
"0.7317976",
"0.7310465",
"0.73036... | 0.8194083 | 0 |
itkComplexToModulusImageFilterICF2IF2_cast(itkLightObject obj) > itkComplexToModulusImageFilterICF2IF2 | def mJKU(*qIxc):
return pVh7.itkComplexToModulusImageFilterICF2IF2_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t2yj(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF2IF2 *':\n return zrAt.itkFastMarchingImageFilterBaseIF2IF2_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF2IF2 *':\n return zrAt.itkFastMarchingImageFilterBaseIF2IF2_cast(YEnM)",
"def y_xk(YEnM: 'itk... | [
"0.82664657",
"0.817126",
"0.8119464",
"0.8105497",
"0.8084913",
"0.8079321",
"0.8055406",
"0.8024982",
"0.80226517",
"0.79695106",
"0.79691803",
"0.796352",
"0.792703",
"0.79206073",
"0.79013836",
"0.78829443",
"0.7881409",
"0.7880962",
"0.7878866",
"0.7873527",
"0.7864868",... | 0.8016862 | 9 |
cast(itkLightObject obj) > itkComplexToModulusImageFilterICF3IF3 | def YWvJ(*qIxc):
return pVh7.itkComplexToModulusImageFilterICF3IF3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkDenseFiniteDifferenceImageFilterIF3IF3 *':\n return _O5J.itkDenseFiniteDifferenceImageFilterIF3IF3_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF3IF3 *':\n return zrAt.itkFastMarchingImageFilterBaseIF3IF3_cast(YEnM)",
"def YWvJ(... | [
"0.7862187",
"0.7856992",
"0.78261095",
"0.78234977",
"0.78222513",
"0.7748929",
"0.7741686",
"0.77387804",
"0.77368927",
"0.7719657",
"0.7717281",
"0.7710629",
"0.77079153",
"0.77033025",
"0.7697644",
"0.7694664",
"0.76672137",
"0.7663644",
"0.7660447",
"0.76564753",
"0.7656... | 0.0 | -1 |
New() > itkComplexToModulusImageFilterICF3IF3 Create a new object of the class itkComplexToModulusImageFilterICF3IF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named ... | def oW_4(*qIxc, **PECO):
YEnM = n6Uj.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = LEDY.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = cErW.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.79709923",
"0.77815676",
"0.76158375",
"0.75953376",
"0.7555971",
"0.7553552",
"0.75014716",
"0.74915195",
"0.7485862",
"0.7468461",
"0.7460388",
"0.7450903",
"0.7446389",
"0.7414952",
"0.74013734",
"0.73885",
"0.7387483",
"0.73872507",
"0.73828274",
"0.7378648",
"0.737761... | 0.81891304 | 0 |
itkComplexToModulusImageFilterICF3IF3_cast(itkLightObject obj) > itkComplexToModulusImageFilterICF3IF3 | def RlTR(*qIxc):
return pVh7.itkComplexToModulusImageFilterICF3IF3_cast(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ouuJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF3IF3 *':\n return zrAt.itkFastMarchingImageFilterBaseIF3IF3_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF3IF3 *':\n return zrAt.itkFastMarchingImageFilterBaseIF3IF3_cast(YEnM)",
"def MhTV(YEnM: 'itk... | [
"0.79768944",
"0.7917212",
"0.7819781",
"0.77937406",
"0.7771138",
"0.7769405",
"0.77678514",
"0.7755277",
"0.77472246",
"0.7740435",
"0.77339476",
"0.7728381",
"0.7726447",
"0.7696107",
"0.76927173",
"0.7687282",
"0.76810634",
"0.76578677",
"0.76549995",
"0.7649416",
"0.7648... | 0.7823731 | 2 |
Return true if we're the last instruction inside an IT Block. | def hk9_(YKHO):
return YKHO.ITCounter == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U8ly(YKHO):\n return YKHO.ITCounter != 0",
"def Os4s(YKHO):\n return YKHO.__c_it_pt == YKHO.__m_it_pt",
"def V5s8(YKHO):\n return YKHO.next_addr == 0",
"def qFaV(YKHO, DTeE):\n THkp = jZXv(YKHO.cmd.ea - 4)\n if THkp is None:\n return 1\n elif THkp.get_canon_feature() & cCqm:\n ... | [
"0.7297704",
"0.7243179",
"0.66241",
"0.6563771",
"0.6523168",
"0.6442955",
"0.64339817",
"0.64230424",
"0.6380314",
"0.6379938",
"0.6369857",
"0.63629687",
"0.6354196",
"0.63532436",
"0.6306824",
"0.6274424",
"0.6272077",
"0.62644976",
"0.62550294",
"0.6246789",
"0.6241041",... | 0.8586975 | 0 |
A8.8.229 SWP, SWPB SWP (Swap) swaps a word between registers and memory. SWP loads a word from the memory address given by the value of register . The value of register is then stored to the memory address given by the value of , and the original loaded value is written to register . If the same register is specified f... | def lLpx(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.swp
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == CxbD:
tjUW = SMHM(kuMQ, 22)
Jo91 = uWbJ(kuMQ, 19, 16)
h4Tb = uWbJ(kuMQ, 15, 12)
nnTp = uWbJ(kuMQ, 3, 0)
if h4Tb == 15 or nnTp == 15 or Jo91 == 15 or (Jo91 == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vWWh():\n LLrw('offbar', VMCk.swip_swap('foobar', 'f', 'o'))\n LLrw('foocar', VMCk.swip_swap('foobar', 'b', 'c'))\n LLrw('brush', VMCk.swip_swap('crush', 'b', 'c'))\n LLrw('Msiisiispps', VMCk.swip_swap('Mississippi', 'i', 's'))",
"def qAyy(YPqY, MgeT):\n E5BI = MgeT.stack\n jzdc, Fg_i = (E5... | [
"0.6907497",
"0.6742349",
"0.67195946",
"0.6678997",
"0.6635893",
"0.6445103",
"0.63944626",
"0.6370793",
"0.6347569",
"0.6344916",
"0.6291037",
"0.62830234",
"0.62397987",
"0.6226717",
"0.62256825",
"0.62119776",
"0.6200537",
"0.6194713",
"0.6114499",
"0.6097662",
"0.6095087... | 0.0 | -1 |
A8.8.101 MLS Multiply and Subtract multiplies two register values, and subtracts the product from a third register value. The least significant 32 bits of the result are written to the destination register. These 32 bits do not depend on whether the source register values are considered to be signed values or unsigned ... | def iMji(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.mls
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == FgKF:
Jo91 = uWbJ(kuMQ, 19, 16)
SsOR = uWbJ(kuMQ, 15, 12)
CWLM = uWbJ(kuMQ, 11, 8)
qNhF = uWbJ(kuMQ, 3, 0)
if Bscu(CWLM) or Bscu(Jo91) or Bscu(qNhF) or Bscu(S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hObQ(dg7v, iYf1):\n TK2h = [round(dg7v[0] * iYf1[0] - dg7v[1] * iYf1[1], 3), round(dg7v[0] * iYf1[1] + dg7v[1] * iYf1[0], 3)]\n return TK2h",
"def OQEa(jzdc, Fg_i):\n return jzdc * Fg_i",
"def hObQ(jzdc, Fg_i):\n return jzdc * Fg_i",
"def hObQ(jzdc, Fg_i):\n return jzdc * Fg_i",
"def hOb... | [
"0.631602",
"0.6226028",
"0.6202693",
"0.6202693",
"0.6202693",
"0.616971",
"0.61205095",
"0.6113667",
"0.60900563",
"0.6064531",
"0.6064077",
"0.6062361",
"0.6055516",
"0.6046375",
"0.6043247",
"0.6042634",
"0.6042634",
"0.6042634",
"0.60390973",
"0.6035577",
"0.60194445",
... | 0.0 | -1 |
A8.8.7 ADD (register, ARM) This instruction adds a register value and an optionallyshifted register value, and writes the result to the destination register. It can optionally update the condition flags based on the result. | def rGMy(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.add_register
XEri = YKHO.decode_condition_field(kuMQ)
o4sw = SMHM(kuMQ, 20)
Jo91 = uWbJ(kuMQ, 19, 16)
CWLM = uWbJ(kuMQ, 15, 12)
qNhF = uWbJ(kuMQ, 3, 0)
kIBk = o4sw == 1
nVvy, Dd9w = azfm(kuMQ)
if CWLM == 15 and kIBk:
tZ2K ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z3nW(YKHO, Q6kx, d1jk=False):\n return YKHO.visitBinOpExpr(Q6kx, d1jk, XVRe)",
"def bvYB(YKHO, pA1o, OCGX):\n YKHO.register[pA1o] += YKHO.register[OCGX]",
"def B7NR(WKvO, LVAh):\n return WKvO + LVAh",
"def H2v5(yLHq, RKYb):\n if s5sO == Ycyt or s5sO == XttB:\n return yLHq + RKYb\n r... | [
"0.6571735",
"0.645209",
"0.63360393",
"0.6184597",
"0.61337733",
"0.6117438",
"0.6093582",
"0.6073906",
"0.60647494",
"0.60461634",
"0.60426867",
"0.60104084",
"0.6010395",
"0.5987015",
"0.5976646",
"0.59619945",
"0.59193265",
"0.58974236",
"0.5888747",
"0.5881054",
"0.58659... | 0.0 | -1 |
A8.8.6 ADD (register, Thumb) This instruction adds a register value and an optionallyshifted register value, and writes the result to the destination register. It can optionally update the condition flags based on the result. | def tpqi(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.add_register
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == FgKF:
qNhF = uWbJ(kuMQ, 8, 6)
Jo91 = uWbJ(kuMQ, 5, 3)
CWLM = uWbJ(kuMQ, 2, 0)
kIBk = not YKHO.InITBlock()
nVvy = MWLa
Dd9w = 0
XEri =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z3nW(YKHO, Q6kx, d1jk=False):\n return YKHO.visitBinOpExpr(Q6kx, d1jk, XVRe)",
"def B7NR(WKvO, LVAh):\n return WKvO + LVAh",
"def H2v5(yLHq, RKYb):\n if s5sO == Ycyt or s5sO == XttB:\n return yLHq + RKYb\n return BjYB(yLHq, RKYb)",
"def bvYB(YKHO, pA1o, OCGX):\n YKHO.register[pA1o] ... | [
"0.6209764",
"0.6011402",
"0.5955422",
"0.59380436",
"0.5831411",
"0.5824739",
"0.5788002",
"0.57845086",
"0.5772356",
"0.57678163",
"0.5767509",
"0.57369936",
"0.57332826",
"0.5724185",
"0.57183224",
"0.5705625",
"0.5691433",
"0.56914276",
"0.56208986",
"0.5611504",
"0.55744... | 0.0 | -1 |
A8.8.156 RSC (register) Reverse Subtract with Carry (register) subtracts a register value and the value of NOT (Carry flag) from an optionallyshifted register value, and writes the result to the destination register. It can optionally update the condition flags based on the result. | def mXbm(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.rsc_register
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == CxbD:
CWLM = uWbJ(kuMQ, 15, 12)
Jo91 = uWbJ(kuMQ, 19, 16)
qNhF = uWbJ(kuMQ, 3, 0)
kIBk = SMHM(kuMQ, 20)
nVvy, Dd9w = azfm(kuMQ)
if CWLM == 15... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H_EU(yLHq, RKYb):\n return hoL9.right_shift(yLHq, RKYb)",
"def vFhS(YKHO, a1PO):\n a1PO = UhBd * a1PO\n Orlf = 0.25 * YKHO.t_c\n OpKk = (a1PO - Orlf) / YKHO.t_c\n itg4 = 1.49 - 0.16 * OpKk - 0.46 * RKD7(a1PO / Orlf)\n __JV = YKHO.r_free_expansion(a1PO) / 1.19\n Pt5c = itg4 * (YKHO.r_c / ... | [
"0.53736717",
"0.5363253",
"0.53566283",
"0.5340714",
"0.5320254",
"0.52798796",
"0.5270113",
"0.52484006",
"0.5244605",
"0.5230402",
"0.52262557",
"0.5190306",
"0.51877797",
"0.51766694",
"0.51397467",
"0.5133395",
"0.5119496",
"0.5115895",
"0.5097352",
"0.5094898",
"0.50797... | 0.4725395 | 86 |
A8.8.238 TEQ (register) Test Equivalence (register) performs a bitwise exclusive OR operation on a register value and an optionallyshifted register value. It updates the condition flags based on the result, and discards the result. | def WnO9(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.teq_register
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == FgKF:
Jo91 = uWbJ(kuMQ, 19, 16)
qNhF = uWbJ(kuMQ, 3, 0)
nVvy, Dd9w = lrnA(kuMQ)
if Bscu(Jo91) or Bscu(qNhF):
raise UvVP()
XEri = None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VU5C(YKHO, pA1o, OCGX):\n YKHO.register[pA1o] = YKHO.register[pA1o] | YKHO.register[OCGX]",
"def CDCj(gr_i, k0lF, tjUW, Nq1b):\n gr_i[Nq1b] = int(k0lF == gr_i[tjUW])\n return gr_i",
"def tYeO(WKvO, LVAh):\n return JzPW(slUX(WKvO, LVAh))",
"def akoa(gr_i, k0lF, tjUW, Nq1b):\n gr_i[Nq1b] = i... | [
"0.6109977",
"0.6033441",
"0.6009569",
"0.5982677",
"0.5971178",
"0.5886485",
"0.58744544",
"0.58652365",
"0.57529896",
"0.5716987",
"0.56939954",
"0.56392837",
"0.55035514",
"0.5493842",
"0.5461454",
"0.54521513",
"0.5446918",
"0.54338044",
"0.5416356",
"0.54030114",
"0.5395... | 0.0 | -1 |
A8.8.38 CMP (register) Compare (register) subtracts an optionallyshifted register value from a register value. It updates the condition flags based on the result, and discards the result. | def kfXZ(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.cmp_register
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == FgKF:
Jo91 = uWbJ(kuMQ, 2, 0)
qNhF = uWbJ(kuMQ, 5, 3)
nVvy = MWLa
Dd9w = 0
XEri = None
Lw3l = [dQSj(Jo91), dQSj(qNhF)]
mgFW = udu8(zb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uMK2(YKHO, pA1o, OCGX):\n if YKHO.register[pA1o] == YKHO.register[OCGX]:\n YKHO.flag = 1\n elif YKHO.register[pA1o] > YKHO.register[OCGX]:\n YKHO.flag = 2\n else:\n YKHO.flag = 4",
"def NNqO(wEf2, UOVU=8):\n if wEf2 & 1 << UOVU - 1 != 0:\n wEf2 = wEf2 - (1 << UOVU)\n ... | [
"0.6228164",
"0.5446587",
"0.53790224",
"0.534212",
"0.534212",
"0.534212",
"0.534212",
"0.5336222",
"0.5297882",
"0.5287362",
"0.5266682",
"0.52654535",
"0.5251103",
"0.5248649",
"0.52459836",
"0.52389675",
"0.5233616",
"0.5233616",
"0.5233616",
"0.5214653",
"0.521025",
"0... | 0.52130353 | 20 |
A8.8.9 ADD (SP plus immediate) This instruction adds an immediate value to the SP value, and writes the result to the destination register. | def nZE1(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.add_sp_plus_immediate
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == FgKF:
CWLM = uWbJ(kuMQ, 10, 8)
ytax = uWbJ(kuMQ, 7, 0)
kIBk = False
gYRN = ytax << 2
XEri = None
Lw3l = [dQSj(CWLM), i0KC.SP, Poar(g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfQ8(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n zbZI = b_av.add_sp_plus_register\n XEri = YKHO.decode_condition_field(kuMQ)\n o4sw = SMHM(kuMQ, 20)\n CWLM = uWbJ(kuMQ, 15, 12)\n qNhF = uWbJ(kuMQ, 3, 0)\n nVvy, Dd9w = azfm(kuMQ)\n if CWLM == 15 and o4sw == 1:\n tZ2K = t8m5\n return Y... | [
"0.7015909",
"0.6244645",
"0.6180412",
"0.6103953",
"0.60796005",
"0.5984674",
"0.59493846",
"0.59237254",
"0.5861304",
"0.5810002",
"0.57739305",
"0.57686836",
"0.5762776",
"0.57272613",
"0.56823736",
"0.5682305",
"0.56822395",
"0.56776035",
"0.5673708",
"0.5671567",
"0.5668... | 0.6717277 | 1 |
A8.8.10 ADD (SP plus register, Thumb) This instruction adds an optionallyshifted register value to the SP value, and writes the result to the destination register. | def uYIK(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.add_sp_plus_register
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == FgKF:
GWua = SMHM(kuMQ, 7)
_ZZH = uWbJ(kuMQ, 2, 0)
qNhF = CWLM = GWua << 3 | _ZZH
kIBk = False
if CWLM == 15 and YKHO.InITBlock() and (not YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfQ8(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n zbZI = b_av.add_sp_plus_register\n XEri = YKHO.decode_condition_field(kuMQ)\n o4sw = SMHM(kuMQ, 20)\n CWLM = uWbJ(kuMQ, 15, 12)\n qNhF = uWbJ(kuMQ, 3, 0)\n nVvy, Dd9w = azfm(kuMQ)\n if CWLM == 15 and o4sw == 1:\n tZ2K = t8m5\n return Y... | [
"0.6486073",
"0.5968361",
"0.5928432",
"0.5915646",
"0.5891093",
"0.58530885",
"0.57418877",
"0.5605955",
"0.559679",
"0.553854",
"0.55189776",
"0.5496188",
"0.54775536",
"0.5474034",
"0.5458806",
"0.5448457",
"0.54190874",
"0.5394961",
"0.5387082",
"0.5384414",
"0.5382515",
... | 0.6435363 | 1 |
A8.8.11 ADD (SP plus register, ARM) This instruction adds an optionallyshifted register value to the SP value, and writes the result to the destination register. | def nfQ8(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.add_sp_plus_register
XEri = YKHO.decode_condition_field(kuMQ)
o4sw = SMHM(kuMQ, 20)
CWLM = uWbJ(kuMQ, 15, 12)
qNhF = uWbJ(kuMQ, 3, 0)
nVvy, Dd9w = azfm(kuMQ)
if CWLM == 15 and o4sw == 1:
tZ2K = t8m5
return YKHO.decode_subs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYIK(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n zbZI = b_av.add_sp_plus_register\n XEri = YKHO.decode_condition_field(kuMQ)\n if tZ2K == FgKF:\n GWua = SMHM(kuMQ, 7)\n _ZZH = uWbJ(kuMQ, 2, 0)\n qNhF = CWLM = GWua << 3 | _ZZH\n kIBk = False\n if CWLM == 15 and YKHO.InITBlock... | [
"0.6480103",
"0.6247829",
"0.6201872",
"0.60669726",
"0.60242766",
"0.5888388",
"0.5875313",
"0.58721936",
"0.57956696",
"0.5767348",
"0.57467574",
"0.57404554",
"0.5738901",
"0.571751",
"0.57078403",
"0.5673772",
"0.5667074",
"0.56627774",
"0.5615908",
"0.56079364",
"0.55991... | 0.70891005 | 0 |
A8.8.8 ADD (registershifted register) Add (registershifted register) adds a register value and a registershifted register value. It writes the result to the destination register, and can optionally update the condition flags based on the result. | def R8ij(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.add_rsr
return YKHO.decode_data_processing_xxx_reg_shift_reg(zbZI, kuMQ, tZ2K, 'ADD') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bvYB(YKHO, pA1o, OCGX):\n YKHO.register[pA1o] += YKHO.register[OCGX]",
"def JsCA():\n sg14 = gdrP()\n sg14.set_program_counter_value(4096)\n NArs = [DMJC(Tcqn.IMM, 101), DMJC(Tcqn.DRD, 2)]\n H2v5 = XVRe(NArs, MzU1.BYTE)\n Z8X4(sg14, H2v5, dQSj.D2, 101, [False, False, False, False, False], 4... | [
"0.68790615",
"0.63005495",
"0.61717993",
"0.61434907",
"0.6104069",
"0.60928154",
"0.60503656",
"0.60451823",
"0.6042928",
"0.60420215",
"0.60393757",
"0.6019851",
"0.6019599",
"0.5999545",
"0.5999305",
"0.5983453",
"0.5974296",
"0.5973066",
"0.5958312",
"0.59576064",
"0.595... | 0.0 | -1 |
A8.8.39 CMP (registershifted register) Compare (registershifted register) subtracts a registershifted register value from a register value. It updates the condition flags based on the result, and discards the result. | def k1Jz(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.cmp_rsr
return YKHO.decode_data_processing_xxx_reg_shift_reg_test(zbZI, kuMQ, tZ2K, 'CMP') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uMK2(YKHO, pA1o, OCGX):\n if YKHO.register[pA1o] == YKHO.register[OCGX]:\n YKHO.flag = 1\n elif YKHO.register[pA1o] > YKHO.register[OCGX]:\n YKHO.flag = 2\n else:\n YKHO.flag = 4",
"def kfXZ(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n zbZI = b_av.cmp_register\n XEri = YKHO.decode_... | [
"0.64629847",
"0.5580865",
"0.5403726",
"0.53651315",
"0.52271426",
"0.5223743",
"0.522332",
"0.52159417",
"0.5215099",
"0.5204595",
"0.5180055",
"0.5173778",
"0.5146823",
"0.50717235",
"0.5069736",
"0.50589645",
"0.5045276",
"0.50429505",
"0.5031521",
"0.5024167",
"0.5022725... | 0.47696066 | 65 |
A8.8.37 CMP (immediate) Compare (immediate) subtracts an immediate value from a register value. It updates the condition flags based on the result, and discards the result. | def kbfh(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.cmp_immediate
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == FgKF:
Jo91 = uWbJ(kuMQ, 10, 8)
gYRN = uWbJ(kuMQ, 7, 0)
XEri = None
Lw3l = [dQSj(Jo91), Poar(gYRN)]
mgFW = udu8(zbZI, kuMQ, 'CMP', False, XEri, Lw3l,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uMK2(YKHO, pA1o, OCGX):\n if YKHO.register[pA1o] == YKHO.register[OCGX]:\n YKHO.flag = 1\n elif YKHO.register[pA1o] > YKHO.register[OCGX]:\n YKHO.flag = 2\n else:\n YKHO.flag = 4",
"def I2s_(OaeV, YRbF):\n t6Eq(OaeV, YRbF, Mot6.GE)",
"def iDFq(o1Kh):\n return NZ4l if o1K... | [
"0.57860595",
"0.5346905",
"0.5314419",
"0.5220689",
"0.5154982",
"0.5133833",
"0.5130054",
"0.5086679",
"0.50577533",
"0.5055074",
"0.5046825",
"0.5027758",
"0.5021957",
"0.5016963",
"0.50123596",
"0.49919456",
"0.4970312",
"0.49691653",
"0.49687403",
"0.49687403",
"0.496874... | 0.516874 | 4 |
A8.8.81 LDRH (literal) Load Register Halfword (literal) calculates an address from the PC value and an immediate offset, loads a halfword from memory, zeroextends it to form a 32bit word, and writes it to a register. | def D1G3(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.ldrh_literal_thumb
if tZ2K == FgKF:
KkY2 = SMHM(kuMQ, 23)
h4Tb = uWbJ(kuMQ, 15, 12)
gYRN = uWbJ(kuMQ, 11, 0)
if h4Tb == 15:
raise RuntimeError('SEE Related instructions')
H2v5 = KkY2 == 1
if not H2v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I4Pi(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n mWFP = 'LDRH'\n zbZI = b_av.ldrh_literal\n FmNz = False\n XEri = None\n if tZ2K == FgKF:\n ZqWn = [pdhd(8), 1, pdhd(7), 4, 12]\n KkY2, h4Tb, ZsRi = G2m6(kuMQ, ZqWn)\n if h4Tb == 15:\n raise RuntimeError('SEE Related instruc... | [
"0.630636",
"0.6225218",
"0.61509234",
"0.60185117",
"0.59580505",
"0.5929086",
"0.5818284",
"0.5810484",
"0.5733857",
"0.56829506",
"0.568271",
"0.5644057",
"0.55842733",
"0.55395603",
"0.55034935",
"0.54870045",
"0.53638995",
"0.53383934",
"0.53049785",
"0.52403194",
"0.519... | 0.63096017 | 0 |
A8.8.81 LDRH (literal) Load Register Halfword (literal) calculates an address from the PC value and an immediate offset, loads a halfword from memory, zeroextends it to form a 32bit word, and writes it to a register. | def pMQo(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.ldrh_literal_arm
if tZ2K == CxbD:
XEri = YKHO.decode_condition_field(kuMQ)
KkY2 = SMHM(kuMQ, 23)
h4Tb = uWbJ(kuMQ, 15, 12)
SVsS = uWbJ(kuMQ, 11, 8)
HM4X = uWbJ(kuMQ, 3, 0)
gYRN = SVsS << 4 | HM4X
H2v5 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1G3(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n zbZI = b_av.ldrh_literal_thumb\n if tZ2K == FgKF:\n KkY2 = SMHM(kuMQ, 23)\n h4Tb = uWbJ(kuMQ, 15, 12)\n gYRN = uWbJ(kuMQ, 11, 0)\n if h4Tb == 15:\n raise RuntimeError('SEE Related instructions')\n H2v5 = KkY2 == 1\n ... | [
"0.63118315",
"0.630963",
"0.61519617",
"0.6016726",
"0.59593695",
"0.5930421",
"0.58185273",
"0.58095825",
"0.57348484",
"0.5683706",
"0.5681846",
"0.5645379",
"0.55843943",
"0.5540862",
"0.5504074",
"0.54890054",
"0.536383",
"0.5337924",
"0.53010035",
"0.52398807",
"0.51983... | 0.6228588 | 2 |
A8.8.64 LDR (literal) Load Register (literal) calculates an address from the PC value and an immediate offset, loads a word from memory, and writes it to a register. | def kBtq(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.ldr_literal
XEri = YKHO.decode_condition_field(kuMQ)
if tZ2K == FgKF:
h4Tb = uWbJ(kuMQ, 10, 8)
gYRN = uWbJ(kuMQ, 7, 0) << 2
H2v5 = True
XEri = None
Lw3l = [dQSj(h4Tb), Poar(gYRN)]
mgFW = udu8(zbZI, kuMQ, 'L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLdJ(YKHO, NArs):\n try:\n SsOR, DTe0, VyBY = YKHO.get_three_parameters(YKHO.THREE_PARAMETER_WITH_BRACKETS, NArs)\n except Yg58.exceptions.ParsingError:\n SsOR, M9Mk = YKHO.get_two_parameters(YKHO.TWO_PARAMETER_COMMA_SEPARATED, NArs)\n if M9Mk.startswith('='):\n M9Mk = M9M... | [
"0.6523519",
"0.6470225",
"0.6408013",
"0.633525",
"0.6303897",
"0.62839156",
"0.62087005",
"0.61903733",
"0.6143436",
"0.60586417",
"0.6049262",
"0.60163033",
"0.5953296",
"0.591797",
"0.5843609",
"0.58381104",
"0.5829538",
"0.57799727",
"0.57589537",
"0.57109684",
"0.567927... | 0.6251759 | 6 |
A8.8.81 LDRH (literal) Load Register Halfword (literal) calculates an address from the PC value and an immediate offset, loads a halfword from memory, zeroextends it to form a 32bit word, and writes it to a register. For information about memory accesses see Memory accesses on page A8291. | def I4Pi(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'LDRH'
zbZI = b_av.ldrh_literal
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(8), 1, pdhd(7), 4, 12]
KkY2, h4Tb, ZsRi = G2m6(kuMQ, ZqWn)
if h4Tb == 15:
raise RuntimeError('SEE Related instructions')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1G3(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n zbZI = b_av.ldrh_literal_thumb\n if tZ2K == FgKF:\n KkY2 = SMHM(kuMQ, 23)\n h4Tb = uWbJ(kuMQ, 15, 12)\n gYRN = uWbJ(kuMQ, 11, 0)\n if h4Tb == 15:\n raise RuntimeError('SEE Related instructions')\n H2v5 = KkY2 == 1\n ... | [
"0.62648624",
"0.6171456",
"0.6122462",
"0.6078724",
"0.59291893",
"0.5881038",
"0.5821863",
"0.581821",
"0.5675781",
"0.5640929",
"0.56050384",
"0.5567792",
"0.5552305",
"0.55333763",
"0.54962957",
"0.54669195",
"0.5339157",
"0.5338592",
"0.52933735",
"0.5288503",
"0.5222248... | 0.62760776 | 0 |
A8.8.134 QADD Saturating Add adds two register values, saturates the result to the 32bit signed integer range, and writes the result to the destination register. If saturation occurs, it sets the Q flag in the APSR. | def VkSj(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'QADD'
zbZI = b_av.qadd
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uLpg(jzdc, CYjz):\n VWTg = oyIN.array([[1, 0], [0, oyIN.exp(2 * oyIN.pi * (jzdc >> jzdc.bit_length))]])\n XP5J = sqRO.Program().defgate('A_i', VWTg)\n XP5J.inst([('A_i', t3jy) for t3jy in CYjz])\n return XP5J",
"def H2v5(YKHO, cJsZ, hbUd):\n YKHO._check_q_num(cJsZ)\n YKHO._check_q_num(hbUd)... | [
"0.5846363",
"0.563003",
"0.5531022",
"0.54905343",
"0.5466848",
"0.53198904",
"0.52957946",
"0.5258011",
"0.52522844",
"0.52203614",
"0.51361936",
"0.5076959",
"0.502943",
"0.5024861",
"0.5019936",
"0.49997815",
"0.49976087",
"0.49759224",
"0.4964206",
"0.49495655",
"0.49472... | 0.5342367 | 5 |
A8.8.136 QADD8 Saturating Add 8 performs four 8bit integer additions, saturates the results to the 8bit signed integer range and writes the results to the destination register. | def IATT(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'QADD8'
zbZI = b_av.qadd8
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J6nP(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n mWFP = 'UQADD8'\n zbZI = b_av.uqadd8\n FmNz = False\n XEri = None\n if tZ2K == FgKF:\n ZqWn = [pdhd(0)]\n bGrB = G2m6(kuMQ, ZqWn)\n Lw3l = []\n elif tZ2K == CxbD:\n ZqWn = [pdhd(0)]\n bGrB = G2m6(kuMQ, ZqWn)\n ... | [
"0.64826316",
"0.64751995",
"0.59870636",
"0.5982281",
"0.5942844",
"0.5942499",
"0.5876266",
"0.57746",
"0.57642657",
"0.5696276",
"0.5540691",
"0.5530991",
"0.55301774",
"0.548256",
"0.5443618",
"0.53786886",
"0.5373108",
"0.53697443",
"0.5343169",
"0.52949274",
"0.52597845... | 0.67637926 | 0 |
A8.8.138 QDADD Saturating Double and Add adds a doubled register value to another register value, and writes the result to the destination register. Both the doubling and the addition have their results saturated to the 32bit signed integer range If saturation occurs in either operation, it sets the Q flag in the APSR. | def UlHN(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'QDADD'
zbZI = b_av.qdadd
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, vexM):\n XP5J = YKHO\n if XP5J.is_zero:\n return vexM\n if vexM.is_zero:\n return XP5J\n if XP5J == vexM:\n return XP5J.double()\n if XP5J.x == vexM.x:\n return type(YKHO).zero()\n return XP5J.add_general(vexM)",
"def uLpg(jzdc, CYjz):\n VWTg = oyIN... | [
"0.59745014",
"0.5460108",
"0.5358355",
"0.53548014",
"0.52505696",
"0.5211862",
"0.52004486",
"0.51997143",
"0.51951873",
"0.51792973",
"0.5137505",
"0.5101802",
"0.5057728",
"0.5046192",
"0.5043232",
"0.50413793",
"0.5035856",
"0.50232196",
"0.50181985",
"0.5015262",
"0.500... | 0.53089345 | 4 |
A8.8.159 SADD8 Signed Add 8 performs four 8bit signed integer additions, and writes the results to the destination register. It sets the APSR.GE bits according to the results of the additions. | def rsY_(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'SADD8'
zbZI = b_av.sadd8
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOFa(YKHO):\n ytax = YKHO.fetch()\n H4yH = YKHO.sp\n nEeK = (H4yH & 255) + ytax\n if ytax & 128:\n YKHO.sp = uh6n(H4yH, 65280 | ytax)\n else:\n YKHO.sp = uh6n(H4yH, ytax)\n if (H4yH & 15) + (ytax & 15) > 15:\n YKHO.set_halfcarry_flag()\n else:\n YKHO.reset_halfc... | [
"0.66858447",
"0.6410938",
"0.64064175",
"0.6371332",
"0.63410556",
"0.6215773",
"0.6133139",
"0.57773465",
"0.57477605",
"0.56692755",
"0.56688786",
"0.5621421",
"0.55716026",
"0.54685116",
"0.5460438",
"0.5450752",
"0.54365194",
"0.54037464",
"0.5401852",
"0.53630227",
"0.5... | 0.68376833 | 0 |
A8.8.165 SDIV Signed Divide divides a 32bit signed integer register value by a 32bit signed integer register value, and writes the result to the destination register. The condition flags are not affected. | def _KtO(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'SDIV'
zbZI = b_av.sdiv
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wrH4(pAX6, di96):\n return pAX6 / di96 if di96 else 0",
"def XGnq(jzdc, Fg_i):\n return jzdc // Fg_i",
"def pN7q(WKvO: Union[np.ndarray, float], Csk6: np.ndarray):\n return oyIN.divide(WKvO, Csk6, where=(Csk6.flatten() > 0).reshape(Csk6.shape))",
"def pN7q(jzdc, Fg_i):\n with oyIN.errstate(di... | [
"0.6094591",
"0.5747464",
"0.5723938",
"0.5643702",
"0.56210804",
"0.5574957",
"0.5564261",
"0.5557083",
"0.5542757",
"0.5517131",
"0.55130744",
"0.54977554",
"0.54949373",
"0.54763824",
"0.5471292",
"0.54674244",
"0.5459925",
"0.545775",
"0.54469323",
"0.544609",
"0.54409325... | 0.6075252 | 1 |
A8.8.170 SHADD8 Signed Halving Add 8 performs four signed 8bit integer additions, halves the results, and writes the results to the destination register. | def W75E(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'SHADD8'
zbZI = b_av.shadd8
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOFa(YKHO):\n ytax = YKHO.fetch()\n H4yH = YKHO.sp\n nEeK = (H4yH & 255) + ytax\n if ytax & 128:\n YKHO.sp = uh6n(H4yH, 65280 | ytax)\n else:\n YKHO.sp = uh6n(H4yH, ytax)\n if (H4yH & 15) + (ytax & 15) > 15:\n YKHO.set_halfcarry_flag()\n else:\n YKHO.reset_halfc... | [
"0.639027",
"0.5956334",
"0.5894727",
"0.58779436",
"0.5633891",
"0.5620132",
"0.5613689",
"0.5535799",
"0.5490994",
"0.54146075",
"0.53760636",
"0.53066653",
"0.52749145",
"0.52488476",
"0.52250904",
"0.5213697",
"0.5202725",
"0.5194826",
"0.5179683",
"0.50879246",
"0.508652... | 0.6526269 | 0 |
A8.8.171 SHASX Signed Halving Add and Subtract with Exchange exchanges the two halfwords of the second operand, performs one signed 16bit integer addition and one signed 16bit subtraction, halves the results, and writes the results to the destination register. | def uLbm(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'SHASX'
zbZI = b_av.shasx
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nyU1(YKHO, pA1o, OCGX):\n YKHO.register[pA1o] = YKHO.register[pA1o] << YKHO.register[OCGX]",
"def ySW7(WKvO):\n return (WKvO & 65535) << 16 | (WKvO & 4294901760) >> 16",
"def Kw9d(WKvO):\n return (WKvO & 65280) >> 8 | (WKvO & 255) << 8",
"def JCoG(jzdc, Fg_i):\n return (jzdc ^ Fg_i, jzdc & Fg... | [
"0.58694005",
"0.56022644",
"0.5501269",
"0.54834247",
"0.5460531",
"0.5318873",
"0.5291349",
"0.526305",
"0.5249012",
"0.5225812",
"0.51004535",
"0.49847952",
"0.49788144",
"0.49725768",
"0.49506116",
"0.4944827",
"0.49407715",
"0.49217165",
"0.49183705",
"0.49173015",
"0.49... | 0.49409348 | 16 |
A8.8.187 SMUAD Signed Dual Multiply Add performs two signed 16 x 16bit multiplications. It adds the products together, and writes the result to the destination register. | def _kBE(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'SMUAD'
zbZI = b_av.smuad
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def le1D(VGCm, jzdc, Fg_i):\n Mkmy = jzdc + Fg_i\n VGCm.n_reset()\n if Mkmy > 65535:\n VGCm.c_set()\n else:\n VGCm.c_reset()\n return Mkmy & 65535",
"def o_M6(OaeV, V3t8, y0Da, RuSr, eafN):\n Kzrr = y0Da.build_zext(OaeV.double_type, jHoq(OaeV, V3t8, y0Da))\n I_Am = RuSr.build_l... | [
"0.6652724",
"0.62469393",
"0.59894377",
"0.5888098",
"0.58089584",
"0.5632302",
"0.5614702",
"0.5589891",
"0.5552696",
"0.55383587",
"0.5446695",
"0.54201925",
"0.5320272",
"0.531167",
"0.5297974",
"0.52966547",
"0.5245438",
"0.5198398",
"0.5178089",
"0.516788",
"0.51617986"... | 0.0 | -1 |
A8.8.193 SSAT Signed Saturate saturates an optionallyshifted signed value to a selectable signed range. | def UkkI(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'SSAT'
zbZI = b_av.ssat
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(10), 1, QOYf, 4, QOYf, 3, 4, 2, QOYf, 5]
lWrn, Jo91, XqTn, CWLM, fMya, c7FV = G2m6(kuMQ, ZqWn)
if lWrn == 1 and XqTn << 2 | fMya == 0:
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8tG(BWXx):\n return -(BWXx & 32768) | BWXx & 32767",
"def i1fZ(wEf2: float) -> float:\n if wEf2 > 32767:\n return wEf2 - 65535\n return wEf2",
"def i1fZ(BWXx, UOVU=32):\n ZHfW = 2 ** UOVU - 1\n if BWXx & 1 << UOVU - 1:\n return BWXx | ~ZHfW\n return BWXx & ZHfW",
"def i1f... | [
"0.59732336",
"0.59388417",
"0.56815386",
"0.56807923",
"0.5675435",
"0.5655496",
"0.56176555",
"0.56154317",
"0.56002903",
"0.5593028",
"0.55398357",
"0.553296",
"0.55209476",
"0.5382763",
"0.5355495",
"0.5340029",
"0.53351843",
"0.5321332",
"0.52101684",
"0.52059567",
"0.51... | 0.0 | -1 |
A8.8.198 STC, STC2 Store Coprocessor stores data from a coprocessor to a sequence of consecutive memory addresses. If no coprocessor can execute the instruction, an Undefined Instruction exception is generated. | def bl30(YKHO, kuMQ, tZ2K):
lhy8 = {}
zbZI = b_av.stc
FmNz = False
XEri = None
if tZ2K == FgKF:
mWFP = 'STC'
ZqWn = [cBu3, 1, 1, 1, 1, QOYf, 4, 4, 4, 8]
V6IE, KkY2, lWPh, XcU5, Jo91, na6k, tn3r, ytax = G2m6(kuMQ, ZqWn)
if V6IE == 0 and KkY2 == 0 and (lWPh == 0) and (X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELSM(YKHO):\n vsyI = YKHO.read_op2_record()\n Ik71 = YKHO.read_op2_record('double')\n YKHO._read_op2_end_of_table()\n u54L = len(vsyI)\n jlIB = oyIN.zeros((u54L / 4, 14))\n jlIB[:, 0] = vsyI[::4]\n jlIB[:, 1] = vsyI[1::4]\n I2Si = range(12)\n for YRbF, r845 in enumerate(vsyI[3::4]):\... | [
"0.5745156",
"0.5542534",
"0.5501852",
"0.54391",
"0.53306246",
"0.5302493",
"0.5299435",
"0.52986944",
"0.5277822",
"0.5246692",
"0.52437836",
"0.52002966",
"0.5184095",
"0.5176755",
"0.51269525",
"0.5115842",
"0.51099837",
"0.5107945",
"0.5105963",
"0.507253",
"0.5058762",
... | 0.45894736 | 99 |
A8.8.244 UADD8 Unsigned Add 8 performs four unsigned 8bit integer additions, and writes the results to the destination register. It sets the APSR.GE bits according to the results of the additions. | def O1oz(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'UADD8'
zbZI = b_av.uadd8
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J6nP(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n mWFP = 'UQADD8'\n zbZI = b_av.uqadd8\n FmNz = False\n XEri = None\n if tZ2K == FgKF:\n ZqWn = [pdhd(0)]\n bGrB = G2m6(kuMQ, ZqWn)\n Lw3l = []\n elif tZ2K == CxbD:\n ZqWn = [pdhd(0)]\n bGrB = G2m6(kuMQ, ZqWn)\n ... | [
"0.6958315",
"0.66525084",
"0.6494937",
"0.61834645",
"0.61716896",
"0.60792965",
"0.5871719",
"0.58698046",
"0.57863164",
"0.5764009",
"0.57411355",
"0.57281125",
"0.57175183",
"0.568327",
"0.5619053",
"0.54944724",
"0.54616666",
"0.5452895",
"0.54351646",
"0.5405712",
"0.53... | 0.6930264 | 1 |
A8.8.248 UDIV Unsigned Divide divides a 32bit unsigned integer register value by a 32bit unsigned integer register value, and writes the result to the destination register. The condition flags are not affected. | def twpU(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'UDIV'
zbZI = b_av.udiv
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OYqu(M6pt: long, UUZ1: long) -> Swre:\n ...",
"def _jkO(YKHO, XdG6, FohR):\n if YKHO.reg[FohR] == 0:\n print('Cannot divide by 0!')\n exit()\n else:\n YKHO.reg[XdG6] = YKHO.reg[XdG6] // YKHO.reg[FohR]",
"def XGnq(jzdc, Fg_i):\n return jzdc // Fg_i",
"def av2a(YKHO):\n ... | [
"0.66542643",
"0.655413",
"0.6065629",
"0.5952804",
"0.59394747",
"0.579337",
"0.57335556",
"0.57325006",
"0.572465",
"0.57173854",
"0.57007366",
"0.56585497",
"0.56524676",
"0.5652304",
"0.5652304",
"0.5621078",
"0.5615997",
"0.5612407",
"0.5600574",
"0.55974627",
"0.5591037... | 0.6506033 | 2 |
A8.8.250 UHADD8 Unsigned Halving Add 8 performs four unsigned 8bit integer additions, halves the results, and writes the results to the destination register | def F9Lj(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'UHADD8'
zbZI = b_av.uhadd8
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLD3(YKHO, jzdc, Fg_i):\n return (jzdc & 255) + (Fg_i & 255) & 255",
"def O1oz(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n mWFP = 'UADD8'\n zbZI = b_av.uadd8\n FmNz = False\n XEri = None\n if tZ2K == FgKF:\n ZqWn = [pdhd(0)]\n bGrB = G2m6(kuMQ, ZqWn)\n Lw3l = []\n elif tZ2K ... | [
"0.63359535",
"0.613019",
"0.6052996",
"0.5845774",
"0.5668146",
"0.5631903",
"0.557901",
"0.55720776",
"0.5567077",
"0.5509352",
"0.5485954",
"0.53981614",
"0.5389525",
"0.5386702",
"0.53757024",
"0.53149426",
"0.5288317",
"0.52640635",
"0.5227378",
"0.5204936",
"0.5178752",... | 0.65506154 | 0 |
A8.8.259 UQADD8 Unsigned Saturating Add 8 performs four unsigned 8bit integer additions, saturates the results to the 8bit unsigned integer range 0 x 28 1, and writes the results to the destination register. | def J6nP(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'UQADD8'
zbZI = b_av.uqadd8
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLD3(YKHO, jzdc, Fg_i):\n return (jzdc & 255) + (Fg_i & 255) & 255",
"def O1oz(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n mWFP = 'UADD8'\n zbZI = b_av.uadd8\n FmNz = False\n XEri = None\n if tZ2K == FgKF:\n ZqWn = [pdhd(0)]\n bGrB = G2m6(kuMQ, ZqWn)\n Lw3l = []\n elif tZ2K ... | [
"0.63106763",
"0.6202758",
"0.6109231",
"0.60049146",
"0.59902334",
"0.58038956",
"0.57839435",
"0.5718323",
"0.55179006",
"0.544627",
"0.5400036",
"0.5366291",
"0.53257287",
"0.52819145",
"0.5268816",
"0.5171406",
"0.5170017",
"0.5156364",
"0.51206267",
"0.50931746",
"0.5074... | 0.66228294 | 0 |
A8.8.266 USAT Unsigned Saturate saturates an optionallyshifted signed value to a selected unsigned range. | def gMGG(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'USAT'
zbZI = b_av.usat
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pKYF(YKHO, P6bq, qoqK):\n if P6bq > qoqK:\n yvT9 = qoqK\n elif P6bq < -qoqK:\n yvT9 = -qoqK\n else:\n yvT9 = P6bq\n return yvT9",
"def Zmba(BWXx, zNig):\n return BWXx & baZT[zNig]",
"def t8tG(BWXx):\n return -(BWXx & 32768) | BWXx & 32767",
"def i1fZ(wEf2: float) ->... | [
"0.60055345",
"0.5968751",
"0.57513934",
"0.5732068",
"0.5576221",
"0.5548028",
"0.5447557",
"0.53941107",
"0.5354375",
"0.5316806",
"0.5267027",
"0.52457994",
"0.5240278",
"0.5191571",
"0.5178819",
"0.51762176",
"0.51739985",
"0.5172075",
"0.5169751",
"0.51566494",
"0.514045... | 0.0 | -1 |
A8.8.343 VMOV (between ARM core register and singleprecision register) This instruction transfers the contents of a singleprecision Floatingpoint register to an ARM core register, or the contents of an ARM core register to a singleprecision Floatingpoint register. | def erfI(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'VMOV'
zbZI = b_av.vmov_between_arm_core_register_and_single_precision_register
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(11), 1, 4, 4, Vave, 1, cBu3]
khtY, v8CC, h4Tb, ywwl = G2m6(kuMQ, ZqWn)
elif tZ2K == CxbD:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AA40(YKHO, kuMQ, tZ2K):\n lhy8 = {}\n mWFP = 'VMOV'\n zbZI = b_av.vmov_between_two_arm_core_registers_and_two_single_precision_registers\n FmNz = False\n XEri = None\n if tZ2K == FgKF:\n ZqWn = [pdhd(11), 1, 4, 4, QBs1, 1, QOYf, 4]\n khtY, nnTp, h4Tb, E3D9, wPwK = G2m6(kuMQ, ZqW... | [
"0.672341",
"0.6307676",
"0.62070763",
"0.5881724",
"0.58165574",
"0.57422084",
"0.5716441",
"0.553591",
"0.5497668",
"0.544012",
"0.5292276",
"0.5197434",
"0.50121516",
"0.49765956",
"0.49268574",
"0.48820406",
"0.48484713",
"0.47673556",
"0.47625497",
"0.47623253",
"0.47517... | 0.72246313 | 0 |
A8.8.352 VMUL, VMULL (by scalar) Vector Multiply multiplies each element in a vector by a scalar, and places the results in a second vector. Vector Multiply Long does the same thing, but with destination vector elements that are twice as long as the elements that are multiplied. | def _75P(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'VMUL'
zbZI = b_av.vmul_scalar
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == X_yH:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n6rS(*qIxc) -> 'void':\n return QZnQ.vnl_c_vectorULL_multiply(*qIxc)",
"def wTxu(*qIxc) -> 'void':\n return QZnQ.vnl_c_vectorULL_multiply(*qIxc)",
"def HQ4O(*qIxc) -> 'void':\n return QZnQ.vnl_c_vectorUL_multiply(*qIxc)",
"def wTxu(*qIxc) -> 'void':\n return QZnQ.vnl_c_vectorUL_multiply(*qIxc... | [
"0.82144564",
"0.81278867",
"0.7796497",
"0.77019083",
"0.7479927",
"0.74317276",
"0.73393506",
"0.72820354",
"0.7277646",
"0.7251123",
"0.72323",
"0.72114325",
"0.7168529",
"0.7162009",
"0.7108468",
"0.708017",
"0.7039409",
"0.702931",
"0.70265806",
"0.7010475",
"0.70059747"... | 0.0 | -1 |
A8.8.397 VSHLL Vector Shift Left Long takes each element in a doubleword vector, left shifts them by an immediate value, and places the results in a quadword vector. | def doj9(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'VSHLL'
zbZI = b_av.vshll
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == X_yH:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OYlR(WKvO: 'long long *', gaYL: 'unsigned int') -> 'void':\n return QZnQ.vnl_c_vectorSLL_reverse(WKvO, gaYL)",
"def MagG(YKHO, Elif) -> 'MultiVector':\n return YKHO.lc(Elif)",
"def phf5(WKvO: 'long *', gaYL: 'unsigned int') -> 'void':\n return QZnQ.vnl_c_vectorSL_reverse(WKvO, gaYL)",
"def sp9w(... | [
"0.5844235",
"0.57887566",
"0.5737265",
"0.5715776",
"0.5611835",
"0.5611179",
"0.5570598",
"0.5549528",
"0.5547999",
"0.5533856",
"0.5531086",
"0.5518968",
"0.54899055",
"0.54734933",
"0.54670554",
"0.54563665",
"0.5447639",
"0.54274035",
"0.5422677",
"0.5411663",
"0.5400747... | 0.5148773 | 55 |
A8.8.414 VSUB (integer) Vector Subtract subtracts the elements of one vector from the corresponding elements of another vector, and places the results in the destination vector. | def VDyP(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'VSUB'
zbZI = b_av.vsub_int
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w82r(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('The input vectors have different length')\n return [g02w - B8FN for g02w, B8FN in zip(jzdc, Fg_i)]",
"def w82r(hQHm, jlSq):\n if ROpF(hQHm) != ROpF(jlSq):\n raise Rhzo('You cannot subtract two vectors that are not the sa... | [
"0.8201878",
"0.7990619",
"0.7984889",
"0.79311466",
"0.78888696",
"0.78841305",
"0.78265995",
"0.77247745",
"0.77125067",
"0.7670742",
"0.76578605",
"0.7648693",
"0.7617195",
"0.7603969",
"0.7602287",
"0.76021636",
"0.75620645",
"0.75388443",
"0.75370055",
"0.7516485",
"0.75... | 0.0 | -1 |
A8.8.415 VSUB (floatingpoint) Vector Subtract subtracts the elements of one vector from the corresponding elements of another vector, and places the results in the destination vector. | def T3nY(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'VSUB'
zbZI = b_av.vsub_fp
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == X_yH:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RpoC(hQHm=(0, 0, 0), jlSq=(1, 1, 1)):\n return (hQHm[0] - jlSq[0], hQHm[1] - jlSq[1], hQHm[2] - jlSq[2])",
"def w82r(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('The input vectors have different length')\n return [g02w - B8FN for g02w, B8FN in zip(jzdc, Fg_i)]",
"def qjfR(Ty... | [
"0.78716063",
"0.7848902",
"0.7780405",
"0.7773899",
"0.7709057",
"0.7679704",
"0.7641777",
"0.7615999",
"0.76112604",
"0.7535103",
"0.7535103",
"0.75303257",
"0.7484182",
"0.74810845",
"0.7480401",
"0.74644166",
"0.74514693",
"0.74129915",
"0.7398827",
"0.73819053",
"0.73625... | 0.0 | -1 |
A8.8.416 VSUBHN Vector Subtract and Narrow, returning High Half subtracts the elements of one quadword vector from the corresponding elements of another quadword vector, takes the most significant half of each result, and places the final results in a doubleword vector. | def jogw(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'VSUBHN'
zbZI = b_av.vsubhn
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RpoC(hQHm=(0, 0, 0), jlSq=(1, 1, 1)):\n return (hQHm[0] - jlSq[0], hQHm[1] - jlSq[1], hQHm[2] - jlSq[2])",
"def ZM3P(Nfy1, M6Dv):\n return kg56.vsub_vector(Nfy1, M6Dv)",
"def j4oh(hQHm, jlSq):\n return kg56.vsub(hQHm, jlSq)",
"def NKds(Nfy1, M6Dv):\n return kg56.vsubg_vector(Nfy1, M6Dv)",
"... | [
"0.66814065",
"0.6286907",
"0.62289965",
"0.6228005",
"0.62017894",
"0.61417186",
"0.6070235",
"0.6054166",
"0.604596",
"0.6018324",
"0.601741",
"0.6010012",
"0.6010012",
"0.6006931",
"0.59832364",
"0.5981882",
"0.5970166",
"0.59448653",
"0.5918632",
"0.5914394",
"0.5912874",... | 0.0 | -1 |
A8.8.417 VSUBL, VSUBW Vector Subtract Long subtracts the elements of one doubleword vector from the corresponding elements of another doubleword vector, and places the results in a quadword vector. Before subtracting, it signextends or zeroextends the elements of both operands. | def dPzD(YKHO, kuMQ, tZ2K):
lhy8 = {}
mWFP = 'VSUBL'
zbZI = b_av.vsubl_vsubw
FmNz = False
XEri = None
if tZ2K == FgKF:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
elif tZ2K == CxbD:
ZqWn = [pdhd(0)]
bGrB = G2m6(kuMQ, ZqWn)
Lw3l = []
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZeiK(*qIxc) -> 'void':\n return QZnQ.vnl_c_vectorUL_subtract(*qIxc)",
"def wncN(*qIxc) -> 'void':\n return QZnQ.vnl_c_vectorUL_subtract(*qIxc)",
"def wncN(*qIxc) -> 'void':\n return QZnQ.vnl_c_vectorULL_subtract(*qIxc)",
"def RpoC(hQHm=(0, 0, 0), jlSq=(1, 1, 1)):\n return (hQHm[0] - jlSq[0], ... | [
"0.7461838",
"0.7387105",
"0.7365304",
"0.73525614",
"0.73333156",
"0.7294665",
"0.72861505",
"0.726725",
"0.7233739",
"0.72317004",
"0.71843904",
"0.7168275",
"0.69893914",
"0.6960331",
"0.69308627",
"0.69247854",
"0.68868715",
"0.68837994",
"0.6869341",
"0.6867724",
"0.6833... | 0.65344334 | 40 |