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 |
|---|---|---|---|---|---|---|
r""" Return the mean of the model. | def JBMS(YKHO):
return YKHO._mean | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO):\n return YKHO._lift('mean')",
"def lVH4(YKHO):\n return YKHO.mean",
"def JBMS(YKHO):\n return YKHO._mean_func",
"def JBMS(YKHO):\n return YKHO.mu",
"def JBMS(YKHO):\n return YKHO.vmean",
"def EJaY(YKHO, t9eR, NCCd, lD0u):\n pass",
"def JBMS(YKHO):\n return YKHO.sum ... | [
"0.8413452",
"0.82731175",
"0.81881654",
"0.81490177",
"0.81417876",
"0.8072013",
"0.8052937",
"0.8044909",
"0.80283767",
"0.7960688",
"0.7907659",
"0.78985846",
"0.78470564",
"0.781608",
"0.78025645",
"0.77440906",
"0.77248245",
"0.77014965",
"0.77007467",
"0.768167",
"0.760... | 0.83098125 | 2 |
get the value of property _State | def wHLO(YKHO):
if YKHO.force_auto_sync:
YKHO.get('State')
return YKHO._State | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__stat... | [
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263",
"0.83590263"... | 0.0 | -1 |
get the value of property _LeaseTime | def apW_(YKHO):
if YKHO.force_auto_sync:
YKHO.get('LeaseTime')
return YKHO._LeaseTime | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S8sS(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('MinLeaseTime')\n return YKHO._MinLeaseTime",
"def sde1(YKHO) -> str:\n return qe4Y.get(YKHO, 'lease_duration')",
"def m7L9(YKHO):\n return YKHO._time",
"def m7L9(YKHO):\n return YKHO._time",
"def m7L9(YKHO):\n return YKHO._time... | [
"0.7079596",
"0.7068743",
"0.68648225",
"0.68648225",
"0.68648225",
"0.6838564",
"0.6725396",
"0.671128",
"0.67063874",
"0.66243255",
"0.6540618",
"0.6540618",
"0.64857495",
"0.64857495",
"0.64857495",
"0.64857495",
"0.64857495",
"0.64857495",
"0.64641875",
"0.6438324",
"0.64... | 0.80563843 | 0 |
get the value of property _RenewTime | def e4KG(YKHO):
if YKHO.force_auto_sync:
YKHO.get('RenewTime')
return YKHO._RenewTime | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKW0(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('ExpireTime')\n return YKHO._ExpireTime",
"def apW_(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('LeaseTime')\n return YKHO._LeaseTime",
"def m7L9(YKHO):\n return YKHO._time",
"def m7L9(YKHO):\n return YKHO._time",
"def m... | [
"0.667307",
"0.66344386",
"0.6580426",
"0.6580426",
"0.6580426",
"0.6565816",
"0.65193915",
"0.64963865",
"0.6487867",
"0.6468324",
"0.644163",
"0.63699234",
"0.6347196",
"0.6330478",
"0.63255614",
"0.63212377",
"0.63212377",
"0.63165146",
"0.6304175",
"0.6296504",
"0.6294682... | 0.8216229 | 0 |
get the value of property _MinLeaseTime | def S8sS(YKHO):
if YKHO.force_auto_sync:
YKHO.get('MinLeaseTime')
return YKHO._MinLeaseTime | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C9qt(YKHO) -> str:\n return YKHO._min_time",
"def C9qt(YKHO):\n return YKHO._ll_tree_sequence.get_min_time()",
"def q6eo(YKHO):\n return YKHO._get_attribute('minLifetime')",
"def qxYZ(YKHO):\n return YKHO._get_time_info(['Reserve_Time_M', 'reserveTimeMinute'])",
"def apW_(YKHO):\n if YKH... | [
"0.7321576",
"0.71592706",
"0.7150514",
"0.71164584",
"0.69542754",
"0.69331163",
"0.683981",
"0.67600757",
"0.67418724",
"0.6740244",
"0.668717",
"0.6660195",
"0.66200835",
"0.6568898",
"0.6549413",
"0.65324664",
"0.65324664",
"0.65021324",
"0.6454619",
"0.6406164",
"0.63793... | 0.86647534 | 0 |
Returns `True' if the protocol state is valid, i.e., if the life time has not expired yet. Otherwise, `False' is returned. | def pbT6(YKHO):
assert YKHO.issueDate
wzkt = int(ITS7.time())
if wzkt - YKHO.issueDate > PtXs.SESSION_TICKET_LIFETIME:
RKD7.debug('Ticket is not valid anymore.')
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO):\n return YKHO.is_signed and (not YKHO.is_expired)",
"def deVW(YKHO):\n return YKHO.expiry > rIAI.now()",
"def SGVO(YKHO):\n return YKHO.startTime <= t10t.get_now() < YKHO.endTime",
"def sMfG(YKHO, QTBn):\n e21f = [ws9H, xFAT, aeYm, Y9dW, xs4k, UqMM]\n if not QTBn in e21f:\n ... | [
"0.70828533",
"0.6860852",
"0.671874",
"0.6611087",
"0.65304226",
"0.64390063",
"0.6417083",
"0.64134914",
"0.6408846",
"0.63265926",
"0.63169956",
"0.6301628",
"0.629391",
"0.6282165",
"0.62502635",
"0.62391526",
"0.6238167",
"0.6232668",
"0.62212104",
"0.6218563",
"0.621399... | 0.666025 | 3 |
Linearly scale Val to y1 and y2 from x1 and x2 range x1 and y1 are low values | def eVC5(wEf2, o4D3, si3g, ajwV, skBL):
MEXo = ajwV - o4D3
Z6gX = 0
if MEXo is 0:
Z6gX = si3g
else:
OV1s = skBL - si3g
Z6gX = (wEf2 - o4D3) * OV1s / MEXo + si3g
return Z6gX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PoFk(input, kstO, HHOu, ssDt=None):\n T6xo, jqZF = kstO\n Sr08, z40C = HHOu\n if T6xo is None:\n if ssDt:\n T6xo = ssDt[0]\n else:\n T6xo = wDdJ.min(input)\n if jqZF is None:\n if ssDt:\n jqZF = ssDt[1]\n else:\n jqZF = wDdJ.ma... | [
"0.6553931",
"0.64390045",
"0.6413466",
"0.6246256",
"0.62345225",
"0.6115074",
"0.60944426",
"0.60672504",
"0.606105",
"0.60555506",
"0.6031617",
"0.6022795",
"0.6007552",
"0.6007142",
"0.5999376",
"0.5968791",
"0.59579855",
"0.5949993",
"0.5945295",
"0.5939555",
"0.5924955"... | 0.8562407 | 0 |
Get the maximum number of individuals which should be permitted based upon group size and count. | def QiD9(YKHO) -> int:
return YKHO.group_size.upper * YKHO.groups_allowed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mpgB(YKHO, wHmK):\n return YKHO.individuals_per_generation[wHmK - 1]",
"def Zgof(YKHO, moMn):\n return max(moMn.values())",
"def max(YKHO) -> int:\n return YKHO._status['party_size'][1]",
"def N44s(YKHO):\n return YKHO.__size * 20",
"def Aeea(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(Y... | [
"0.6829581",
"0.65898097",
"0.6558657",
"0.6442366",
"0.6440042",
"0.6390008",
"0.6390008",
"0.6390008",
"0.6390008",
"0.6390008",
"0.6304808",
"0.6294226",
"0.6280366",
"0.6198952",
"0.6180253",
"0.6151519",
"0.6112058",
"0.6106987",
"0.61047906",
"0.61047906",
"0.6072633",
... | 0.8241399 | 0 |
Return a new Creature with a different rarity score. | def i3ak(YKHO) -> YE5F:
return YE5F(active_periods=YKHO.active_periods, entity_id=YKHO.entity_id, group_size=YKHO.group_size, groups_allowed=YKHO.groups_allowed, loot_list=YKHO.loot_list, rarity=YKHO.rarity) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X0KL(YKHO, fPBP: int) -> YE5F:\n Aofo = YKHO.clone()\n Aofo.rarity\n return Aofo",
"async def random_skill_score(YKHO, YA5f):\n if YA5f == 'common':\n tuKI.randint(1, 20)\n elif YA5f == 'uncommon':\n tuKI.randint(21, 40)\n elif YA5f == 'rare':\n tuKI.randint(41, 60)\n ... | [
"0.84581256",
"0.53526497",
"0.5091108",
"0.49989107",
"0.49667493",
"0.49579054",
"0.4918436",
"0.49032104",
"0.4896907",
"0.48554677",
"0.4821494",
"0.48161387",
"0.47791076",
"0.47184214",
"0.47090432",
"0.46684515",
"0.46287483",
"0.4625443",
"0.46208242",
"0.4619833",
"0... | 0.6166507 | 1 |
Return a new Creature with a different rarity score. | def X0KL(YKHO, fPBP: int) -> YE5F:
Aofo = YKHO.clone()
Aofo.rarity
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3ak(YKHO) -> YE5F:\n return YE5F(active_periods=YKHO.active_periods, entity_id=YKHO.entity_id, group_size=YKHO.group_size, groups_allowed=YKHO.groups_allowed, loot_list=YKHO.loot_list, rarity=YKHO.rarity)",
"async def random_skill_score(YKHO, YA5f):\n if YA5f == 'common':\n tuKI.randint(1, 20)\... | [
"0.6166414",
"0.5352428",
"0.5091952",
"0.49984735",
"0.49671257",
"0.4958161",
"0.4918341",
"0.49028686",
"0.48969826",
"0.4854182",
"0.4821092",
"0.48155612",
"0.47788063",
"0.47185913",
"0.47086024",
"0.4668522",
"0.46275893",
"0.46254885",
"0.46201208",
"0.46199286",
"0.4... | 0.84576464 | 0 |
quote('abc def') > 'abc%20def' Each part of a URL, e.g. the path info, the query, etc., has a different set of reserved characters that must be quoted. | def NCC9(KCHu, KXjL='/', tZ2K=None, UAju=None):
if not KCHu:
return KCHu
if tZ2K is not None or isinstance(KCHu, QMSQ):
if tZ2K is None:
tZ2K = 'utf-8'
if UAju is None:
UAju = 'strict'
KCHu = KCHu.encode(tZ2K, UAju)
if isinstance(KXjL, QMSQ):
K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D2vs(vIwR):\n return NCC9(vIwR.encode('utf-8'))",
"def YUxO(KCHu, dT6y='/', tZ2K=None):\n if isinstance(KCHu, QMSQ):\n if tZ2K is None:\n tZ2K = IT1t\n KCHu = KCHu.encode(tZ2K, 'ignore')\n return uRlK.quote(KCHu, dT6y)",
"def b58H(l5Ny):\n return uRlK.quote(l5Ny, safe='... | [
"0.7727329",
"0.7549331",
"0.73220825",
"0.72719216",
"0.7215815",
"0.7200697",
"0.7135425",
"0.71222466",
"0.7106083",
"0.7006834",
"0.6998326",
"0.6923226",
"0.68766606",
"0.68338174",
"0.682162",
"0.67332083",
"0.6659755",
"0.6624627",
"0.661697",
"0.65920717",
"0.6574367"... | 0.6240505 | 29 |
Quote the query fragment of a URL; replacing ' ' with '+' | def ZfMZ(KCHu, KXjL='', tZ2K=None, UAju=None):
if ' ' in KCHu:
KCHu = NCC9(KCHu, KXjL + ' ', tZ2K, UAju)
return KCHu.replace(' ', '+')
return NCC9(KCHu, KXjL, tZ2K, UAju) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oXD5(BWXx, jWLi=True):\n NCC9 = RGPD.quote_plus if jWLi else RGPD.quote\n return NCC9(jShR(BWXx))",
"def D2vs(vIwR):\n return NCC9(vIwR.encode('utf-8'))",
"def ZZhr(xDcj, MTKo=''):\n I6iO = []\n for KCHu in xDcj:\n if MTKo != 'url' or KCHu.isalnum():\n I6iO.append(KCHu)\n ... | [
"0.71631026",
"0.7115743",
"0.7083949",
"0.6980745",
"0.6910441",
"0.6775542",
"0.6743839",
"0.6742581",
"0.6707673",
"0.6707673",
"0.6682814",
"0.6672246",
"0.6627611",
"0.6580458",
"0.6572045",
"0.6568193",
"0.6542396",
"0.6533632",
"0.6530424",
"0.65260977",
"0.64762306",
... | 0.0 | -1 |
Encode a sequence of twoelement tuples or dictionary into a URL query string. If the query arg is a sequence of twoelement tuples, the order of the parameters in the output will match the order of parameters in the input. | def QIYp(xDcj):
if hasattr(xDcj, 'items'):
xDcj = xDcj.items()
vC9B = []
for G1Hx, Ty9i in xDcj:
G1Hx = ZfMZ(G1Hx)
if isinstance(Ty9i, exCv):
Ty9i = ZfMZ(Ty9i)
vC9B.append(G1Hx + '=' + Ty9i)
else:
Ty9i = ZfMZ(QMSQ(Ty9i))
vC9B.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QIYp(xDcj, n0uV=0):\n if hasattr(xDcj, 'items'):\n xDcj = xDcj.items()\n return DNJs([(e0D3(G1Hx), [e0D3(YRbF) for YRbF in Ty9i] if isinstance(Ty9i, (list, tuple)) else e0D3(Ty9i)) for G1Hx, Ty9i in xDcj], n0uV)",
"def TcF5(*qIxc, **B2fa):\n qIxc = dict(qIxc)\n qIxc.update(B2fa)\n retur... | [
"0.762284",
"0.750115",
"0.73277026",
"0.68043315",
"0.68010056",
"0.6721123",
"0.66955036",
"0.6586925",
"0.65574735",
"0.6461868",
"0.6450649",
"0.6427401",
"0.6406831",
"0.6391107",
"0.6375627",
"0.6358444",
"0.63017106",
"0.6255624",
"0.62428766",
"0.6196875",
"0.61835796... | 0.7394032 | 2 |
Update config file with the given data. | def YYiC(YKHO, nPrm):
YKHO.config.data = RSKQ(YKHO.config.data, nPrm)
YKHO.config.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.save_config_file()",
"def l7uM(**B2fa):\n Nu1S = ThMw()\n Nu1S.update(B2fa)\n Nu1S = {H5ew: BWXx for H5ew, BWXx in Nu1S.items() if BWXx is not None}\n G9jH.info('open config file %s', xzSM)\n with open(xzSM, 'w') as eHNT:\n G9jH.info('begin io %s', xzSM)\n q... | [
"0.7576278",
"0.71342003",
"0.6927803",
"0.68982965",
"0.6841013",
"0.6840025",
"0.6720955",
"0.6715679",
"0.667692",
"0.66759175",
"0.6666382",
"0.66445744",
"0.6629904",
"0.6626489",
"0.6576087",
"0.6537789",
"0.652745",
"0.64435184",
"0.6415863",
"0.6407324",
"0.6394025",
... | 0.8345362 | 0 |
Update the mount state for each host. | def ym9D(YKHO):
QTBn = {'mounted': epUu(), 'unmounted': epUu(), 'nodirectory': epUu(), 'rogue': epUu()}
YKHO.log.info('Checking which hosts have the mount point directory created')
oUZx = f'test -d {YKHO.mount_dir.value} -a ! -L {YKHO.mount_dir.value}'
wwJD = YKHO._run_as_owner(YKHO.hosts, oUZx)
C5v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O0Tx(YKHO, KcEq):\n with YKHO.cond:\n if YKHO.state is not None:\n na1r.warning('host_up called, but we think host is already up')\n YKHO._host_down()\n while YKHO.use_count != 0:\n YKHO.cond.wait()\n if YKHO.state is None:\n na1r.debug('Initi... | [
"0.63614225",
"0.62531316",
"0.59802324",
"0.59656864",
"0.5872148",
"0.57357365",
"0.57185787",
"0.5664235",
"0.5607055",
"0.55639845",
"0.5547378",
"0.54874724",
"0.54578435",
"0.5440539",
"0.5370309",
"0.5361698",
"0.5335429",
"0.53253216",
"0.53147936",
"0.52973133",
"0.5... | 0.789063 | 0 |
This will concatenate a list of Vertices with the Vertex Array for the given layer index. | def xXZm(YKHO, gEmA, ec22):
YKHO._mesh[gEmA] += ec22 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p8eW(YKHO, Cc7o):\n for SLBp in Cc7o:\n YKHO.add_vertex(SLBp)",
"def yQgw(YKHO, d6pt, qfpW):\n pNZh = YKHO.graphs[d6pt]\n for YRbF in range(len(pNZh) - 1):\n Ty9i = lNLu.createFromTwoTuples(pNZh[YRbF], pNZh[YRbF + 1], color=qfpW)\n Ty9i.showFromTuple(YKHO.context, pNZh[YRbF])",
... | [
"0.5781591",
"0.56564015",
"0.55158335",
"0.5452877",
"0.5406261",
"0.5362405",
"0.521514",
"0.51968896",
"0.51588446",
"0.51068157",
"0.50934255",
"0.5039812",
"0.5035995",
"0.50323033",
"0.50307673",
"0.5021856",
"0.5021013",
"0.50198966",
"0.5017682",
"0.5012401",
"0.50024... | 0.5266493 | 6 |
The coordinate of this starting location. | def AU8u(YKHO) -> PvyL:
return PvyL.from_np_array(YKHO.position) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oQwg(YKHO):\n return YKHO.coord",
"def Rci7(YKHO):\n return YKHO.geometry.location",
"def Urye(YKHO) -> m7iN:\n return YKHO._game_info.player_start_location",
"def BHsk(YKHO):\n return YKHO.model.coord",
"def Wkq0(YKHO):\n return YKHO.coord_cls(x=0, y=0, system=YKHO)",
"def hbd3(YKHO):... | [
"0.8078699",
"0.78237444",
"0.78104395",
"0.7771976",
"0.7655221",
"0.76090926",
"0.7535836",
"0.7531385",
"0.7505909",
"0.74364",
"0.74240035",
"0.74058086",
"0.7367615",
"0.7329546",
"0.7325664",
"0.73126185",
"0.7310607",
"0.7303615",
"0.7303615",
"0.72908527",
"0.7279785"... | 0.0 | -1 |
Get the state of this plan. | def f4IJ(YKHO) -> QYXk:
assert YKHO._mission
return QYXk(road_ids=YKHO._route.road_ids if YKHO._route else [], mission=YKHO._mission) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def QTBn(YKHO):\n Aofo = YKHO.getResult()\n return Aofo.state",
"def GBfH(YKHO):\n return YKHO.state",
"def GBfH(YKHO):\n return YKHO.state",
"def GBfH(YKHO):\n return YKHO.state",
"def GBfH(YKHO):\n r... | [
"0.77218986",
"0.77218986",
"0.76877433",
"0.7647401",
"0.7647401",
"0.7647401",
"0.7635092",
"0.76125926",
"0.760397",
"0.760397",
"0.760397",
"0.760397",
"0.760397",
"0.7578655",
"0.7578655",
"0.755482",
"0.7532972",
"0.7532972",
"0.7492836",
"0.74060977",
"0.74060977",
"... | 0.0 | -1 |
Plot clusters for clustering. | def HeFd(aNZO, KK4c, W7Ac, jQ3Z, mWFP):
CMVf = uuEx.color_palette('hls', len(oyIN.unique(jQ3Z['y'])))
GaYV = uuEx.color_palette('hls', len(oyIN.unique(jQ3Z['c'])))
uuEx.scatterplot(x=KK4c, y=W7Ac, hue='y', palette=CMVf, data=jQ3Z, legend='full', alpha=0.3, ax=aNZO[0])
uuEx.scatterplot(x=KK4c, y=W7Ac, hu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HeFd(YKHO):\n pass",
"def bAHj(YKHO):\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111, projection='3d')\n LZpg.set_size_inches(18.5, 9.5)\n aNZO.set_title('Identification of Cluster Particles with Voronoi Volumes', fontsize=22)\n aNZO.set_xlabel('x [m]', fontsize=18)\n aNZO.set_ylab... | [
"0.88072544",
"0.85386676",
"0.8215624",
"0.7839966",
"0.77590936",
"0.7660864",
"0.7536083",
"0.74911845",
"0.74713933",
"0.7470934",
"0.7427409",
"0.73683476",
"0.7340834",
"0.7339011",
"0.73347133",
"0.7302822",
"0.72959346",
"0.72154164",
"0.7167083",
"0.7161983",
"0.7075... | 0.75853246 | 6 |
(str) Name of the signal. Primarily used for debugging. | def mWFP(YKHO):
return YKHO._name if YKHO._name is not None else '0x%x' % id(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return q46V(YKHO.obj)",
"def Q0HP(YKHO):\n return q46V(YKHO.obj)",
"def mWFP(YKHO):\n return f'{YKHO._vehicle.name} {YKHO.wan_name} Signal'",
"def kBn4(wEsz):\n try:\n return wEsz._name\n except AttributeError:\n pass\n return wEsz.name",
"def kBn4(wEsz):\n... | [
"0.8523746",
"0.8153488",
"0.7853298",
"0.7643534",
"0.7643534",
"0.71697146",
"0.7146038",
"0.7101834",
"0.70716125",
"0.69314754",
"0.6645807",
"0.6550978",
"0.6517696",
"0.651284",
"0.65111375",
"0.6485195",
"0.6485195",
"0.6485195",
"0.6485195",
"0.6485195",
"0.6485195",
... | 0.0 | -1 |
(bool) Whether associated live data can be changed. | def VY20(YKHO):
return YKHO._readonly | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fj40(YKHO):\n return bool(YKHO.changed_data)",
"def R1aV(YKHO):\n if YKHO.is_updated:\n YKHO.is_updated = False\n return True\n else:\n return False",
"def YPNF(YKHO):\n return not not YKHO._olddata",
"def llHi(YKHO):\n return True",
"def bC3K(YKHO):\n return True... | [
"0.7664667",
"0.72236025",
"0.7221693",
"0.71634007",
"0.7153708",
"0.71230614",
"0.69400084",
"0.69392246",
"0.6904709",
"0.69043034",
"0.69043034",
"0.68862987",
"0.6873543",
"0.68681735",
"0.6852447",
"0.6832046",
"0.681729",
"0.68070257",
"0.68070257",
"0.6780863",
"0.677... | 0.0 | -1 |
Reset ndarray to the base value of the signal that maps to it | def SiRx(YKHO, Gaon):
if not Gaon.readonly:
YKHO[Gaon] = Gaon.initial_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO) -> oyIN.array:\n raise NotImplementedError",
"def SiRx(YKHO):\n YKHO.A = oyIN.zeros(YKHO.A.shape)",
"def ji3u(YKHO):\n YKHO.values = oyIN.array([])",
"def SiRx(YKHO):\n YKHO.x_prev = oyIN.zeros_like(YKHO.mu)",
"def YmeV(YKHO):\n YKHO.s = oyIN.copy(YKHO.s_i)",
"def nlyJ(YKHO)... | [
"0.6604181",
"0.64188147",
"0.6362876",
"0.6316145",
"0.62479174",
"0.6156489",
"0.61177236",
"0.607323",
"0.6030172",
"0.5971335",
"0.59388685",
"0.59350777",
"0.59052515",
"0.5846195",
"0.5832709",
"0.5803816",
"0.58018315",
"0.57863855",
"0.5777171",
"0.5768362",
"0.573181... | 0.57667273 | 20 |
Format time as human readable with two units. | def sIGm(C6wh):
e27C = []
rYO3 = [(60, 'second'), (60, 'minute'), (60, 'hour'), (24, 'day'), (365, 'year')]
OAwr = C6wh
for PXGI in rYO3:
Z5kt = OAwr % PXGI[0]
if Z5kt != 0:
e27C.append('{} {}'.format(Z5kt, nd0d(PXGI[1], Z5kt)))
OAwr = OAwr // PXGI[0]
if OAwr ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ct8j(a1PO):\n r8hN, KCHu = divmod(a1PO, 60)\n MKlR, r8hN = divmod(r8hN, 60)\n if MKlR:\n return f'{MKlR:2.0f}hr {r8hN:2.0f}min {KCHu:4.1f}s'\n elif r8hN:\n return f'{r8hN:2.0f}min {KCHu:4.1f}s'\n else:\n return f'{KCHu:4.1f}s'",
"def EgnU():\n return ITS7.strftime('%A, ... | [
"0.7318539",
"0.7229094",
"0.7218902",
"0.7205436",
"0.7149427",
"0.7082788",
"0.7080231",
"0.70451623",
"0.7007278",
"0.6979167",
"0.6938128",
"0.69149363",
"0.6897457",
"0.6868326",
"0.68674266",
"0.68524367",
"0.68157226",
"0.6812967",
"0.67846733",
"0.6780671",
"0.6779049... | 0.6210963 | 64 |
Test logging nothing when events do not overlap. | def VPlP(RLPg, X3uS, KTnm):
KTnm.set_level(G9jH.INFO)
G80B, Roew = RLPg.make_non_overlapping_events()
X3uS.start_event(G80B)
X3uS.log_conflicts(G80B.start_time)
X3uS.end_event(G80B)
X3uS.log_conflicts(G80B.end_time)
X3uS.start_event(Roew)
X3uS.log_conflicts(Roew.start_time)
X3uS.end_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VSxj(RLPg, q2Hh, KTnm):\n KTnm.set_level(G9jH.INFO)\n G80B, Roew = RLPg.make_overlapping_events()\n s75J(G80B, Roew, q2Hh, q2Hh, [q2Hh])\n assert len(KTnm.messages) == 0",
"def HbfF(RLPg, X3uS, KTnm):\n KTnm.set_level(G9jH.INFO)\n G80B, Roew = RLPg.make_consecutive_events()\n X3uS.start_... | [
"0.78422534",
"0.7332112",
"0.7111064",
"0.70400584",
"0.68922204",
"0.66992307",
"0.66137105",
"0.65962005",
"0.659173",
"0.65630174",
"0.65389043",
"0.6432229",
"0.63447213",
"0.6206858",
"0.6170935",
"0.59786797",
"0.5975548",
"0.59500444",
"0.59217006",
"0.5913639",
"0.58... | 0.82447785 | 0 |
Test logging when events overlap. | def tBeM(RLPg, X3uS, KTnm):
KTnm.set_level(G9jH.INFO)
G80B, Roew = RLPg.make_overlapping_events()
s75J(G80B, Roew, X3uS, X3uS, [X3uS])
assert len(KTnm.messages) == 1
Ol8d = KTnm.messages[0]
assert "Schedule conflict: place='Woodshop'" in Ol8d
EzUv = "Conflict(start_time='{}', end_time='{}',"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VPlP(RLPg, X3uS, KTnm):\n KTnm.set_level(G9jH.INFO)\n G80B, Roew = RLPg.make_non_overlapping_events()\n X3uS.start_event(G80B)\n X3uS.log_conflicts(G80B.start_time)\n X3uS.end_event(G80B)\n X3uS.log_conflicts(G80B.end_time)\n X3uS.start_event(Roew)\n X3uS.log_conflicts(Roew.start_time)\... | [
"0.8093412",
"0.7614708",
"0.7564919",
"0.7351385",
"0.7246044",
"0.70633316",
"0.70509565",
"0.70035",
"0.6748311",
"0.66106915",
"0.61616695",
"0.60896856",
"0.60413057",
"0.59821135",
"0.59428275",
"0.58326954",
"0.58228695",
"0.58201545",
"0.58099663",
"0.5804145",
"0.576... | 0.7658214 | 1 |
Test logging when events overlap. | def VSxj(RLPg, q2Hh, KTnm):
KTnm.set_level(G9jH.INFO)
G80B, Roew = RLPg.make_overlapping_events()
s75J(G80B, Roew, q2Hh, q2Hh, [q2Hh])
assert len(KTnm.messages) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VPlP(RLPg, X3uS, KTnm):\n KTnm.set_level(G9jH.INFO)\n G80B, Roew = RLPg.make_non_overlapping_events()\n X3uS.start_event(G80B)\n X3uS.log_conflicts(G80B.start_time)\n X3uS.end_event(G80B)\n X3uS.log_conflicts(G80B.end_time)\n X3uS.start_event(Roew)\n X3uS.log_conflicts(Roew.start_time)\... | [
"0.8093412",
"0.7658214",
"0.7614708",
"0.7351385",
"0.7246044",
"0.70633316",
"0.70509565",
"0.70035",
"0.6748311",
"0.66106915",
"0.61616695",
"0.60896856",
"0.60413057",
"0.59821135",
"0.59428275",
"0.58326954",
"0.58228695",
"0.58201545",
"0.58099663",
"0.5804145",
"0.576... | 0.7564919 | 3 |
Splits data into train, validation and test set | def N66D(nPrm, Crrw, iusU=0.5, DyFO=42):
assert 0 <= iusU <= 1, 'Error: training set ratio must be between 0 and 1'
cC56, RwUt, VJv0, i7j0 = bHtP(nPrm, Crrw, train_size=iusU, random_state=DyFO)
rfpI, sAoX, A3RF, H96n = bHtP(RwUt, i7j0, train_size=0.5, random_state=DyFO)
return (cC56, rfpI, sAoX, VJv0, A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cTf9(onqj):\n XxFT, t4zr = bHtP(onqj, test_size=0.2, random_state=42)\n return (XxFT, t4zr)",
"def ArpX(YKHO, nPrm):\n CZRf, pZ_I, OJCd, PdIf = bHtP(nPrm[0], nPrm[1], random_state=2)\n ek3M, rXmj = (bHtP(nPrm[0], nPrm[1], random_state=2, test_size=0.15)[1], bHtP(nPrm[0], nPrm[1], random_state=2, ... | [
"0.85447806",
"0.8493923",
"0.83882785",
"0.8343567",
"0.81740195",
"0.8126246",
"0.81160015",
"0.796242",
"0.7943654",
"0.7903312",
"0.7867195",
"0.77971345",
"0.7780968",
"0.77794904",
"0.77479666",
"0.7723619",
"0.7705078",
"0.7664957",
"0.7651086",
"0.7621758",
"0.7521416... | 0.7642893 | 19 |
Test if there are temporal relation in the graph. | def qd5Z(Oa1e):
return any((any((D70y.get(XP5J) == 'time' for XP5J in {'argmax', 'argmin', 'type'})) or 'num' in D70y for D70y in Oa1e.get('edgeSet', []))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FLml(YKHO):\n return any(map(lambda KCHu: KCHu.is_temporal, YKHO))",
"def gXHg(YKHO, tTpl):\n if tTpl in YKHO.temporal:\n return True",
"def HLXZ(YKHO) -> bool:\n return YKHO.graph_count and (not YKHO.data_flow_null_count)",
"def gXHg(jDK_):\n return jDK_.lower() in q1yE",
"def TxP0(... | [
"0.6949356",
"0.6732171",
"0.6202478",
"0.617535",
"0.58112055",
"0.5701779",
"0.5688753",
"0.56867164",
"0.5646803",
"0.56201804",
"0.5532245",
"0.55285877",
"0.5502352",
"0.5486662",
"0.54823154",
"0.54660666",
"0.5462605",
"0.54212254",
"0.5369836",
"0.5356995",
"0.5349476... | 0.7878967 | 0 |
Test if the given graphs only uses the allowed extensions. | def funE(Oa1e, NexC=set()):
NexC = set(NexC)
if 'v-structure' not in NexC and 'v-structure' in {tTpl.get('type', 'direct') for tTpl in Oa1e.get('edgeSet', [])}:
return False
if 'temporal' not in NexC and qd5Z(Oa1e):
return False
if 'hopUp' not in NexC and any(('hopUp' in tTpl for tTpl in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVFM(Ux0P, CBZq):\n return Ux0P.lower().endswith(CBZq)",
"def DVFM(Ux0P, CBZq):\n return Ux0P.lower().endswith(CBZq)",
"def eDAr(ICwc, qh8G):\n HRmI(ICwc, qh8G)\n return ICwc.nodes.issubset(qh8G.nodes) and ICwc.edges.issubset(qh8G.edges)",
"def DVFM(Ux0P: Union[Path, str], CBZq: tuple[str, ..... | [
"0.6065724",
"0.6065724",
"0.60316604",
"0.60111684",
"0.6009983",
"0.59923023",
"0.5982447",
"0.59039724",
"0.5902276",
"0.58919746",
"0.5781829",
"0.57775843",
"0.57775843",
"0.57654876",
"0.5765398",
"0.57533365",
"0.57504195",
"0.5739063",
"0.57363665",
"0.57212067",
"0.5... | 0.7062963 | 0 |
Shrink current window down Will shrink all secondary clients below the specified index in order. Each client will attempt to shrink as much as it is able before the next client is resized. Any amount that was unable to be applied to the clients is returned. | def Okpf(YKHO, Fo_b, GTZT):
LFlW = GTZT
for or8S in range(Fo_b + 1, len(YKHO.relative_sizes)):
LFlW -= LFlW - YKHO._shrink(or8S, LFlW)
return LFlW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AK0z(YKHO, GTZT):\n x0hE = YKHO.clients[YKHO.focused]\n nZuS = GTZT\n LFlW = x0hE.width - GTZT\n if LFlW < YKHO.min_secondary_size:\n nZuS = x0hE.width - YKHO.min_secondary_size\n bRkI = nZuS / 2\n if YKHO.focused == 1:\n YKHO.grow_down_shared(0, nZuS)\n elif YKHO.focused == ... | [
"0.67992985",
"0.6795239",
"0.6521221",
"0.6307644",
"0.6207567",
"0.6206843",
"0.61276096",
"0.6001164",
"0.59807885",
"0.57549524",
"0.55938506",
"0.5511365",
"0.53897417",
"0.5349745",
"0.5121988",
"0.48835444",
"0.46778956",
"0.46377677",
"0.46206918",
"0.45929945",
"0.45... | 0.65553856 | 2 |
Swap current window with closest window to the left | def Sfjm(YKHO):
ufJO = YKHO.clients.current_client
WKvO, LVAh = (ufJO.x, ufJO.y)
kbGe = [Z9rn for Z9rn in YKHO.clients if Z9rn.info()['x'] < WKvO]
pan_ = YKHO._get_closest(WKvO, LVAh, kbGe)
YKHO.swap(ufJO, pan_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XsU7():\n if VsSo:\n nvEb = OGnW.objects.filter(pk__in=[XP5J + 1 for XP5J in xQC3.CHOSEN_PREDS])\n for XP5J in nvEb:\n XP5J.move_window()",
"def Sfjm(YKHO):\n ufJO = YKHO.clients.current_client\n WKvO, LVAh = (ufJO.x, ufJO.y)\n kbGe = [Z9rn for Z9rn in YKHO.clients.client... | [
"0.7203738",
"0.6793183",
"0.66878366",
"0.63805354",
"0.63805354",
"0.635756",
"0.63549966",
"0.62852836",
"0.6202336",
"0.6189263",
"0.61566764",
"0.6140997",
"0.61312133",
"0.61020553",
"0.6087673",
"0.6040562",
"0.6019785",
"0.6012512",
"0.6012512",
"0.6007547",
"0.597211... | 0.70630604 | 1 |
Swap current window with closest window to the right | def UXL0(YKHO):
ufJO = YKHO.clients.current_client
WKvO, LVAh = (ufJO.x, ufJO.y)
kbGe = [Z9rn for Z9rn in YKHO.clients if Z9rn.info()['x'] > WKvO]
pan_ = YKHO._get_closest(WKvO, LVAh, kbGe)
YKHO.swap(ufJO, pan_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XsU7():\n if VsSo:\n nvEb = OGnW.objects.filter(pk__in=[XP5J + 1 for XP5J in xQC3.CHOSEN_PREDS])\n for XP5J in nvEb:\n XP5J.move_window()",
"def V_vW(NWm2, m_7i):\n cnRw = map(lambda LVAh: int(LVAh), yeNw(NWm2))\n C2mq = map(lambda LVAh: int(LVAh) - jLVo / 2, qJDm(NWm2))\n ... | [
"0.7142098",
"0.6746179",
"0.6708299",
"0.6554204",
"0.6464042",
"0.6400142",
"0.63638383",
"0.62892324",
"0.62677294",
"0.62653357",
"0.62653357",
"0.6254421",
"0.6181581",
"0.6171001",
"0.6167619",
"0.6078853",
"0.60516375",
"0.60308003",
"0.6030217",
"0.6026241",
"0.600219... | 0.6981272 | 1 |
Configure the left column | def K1ie(YKHO, x0hE, d6pt):
TVTK = YKHO._get_secondary_widths()[0]
H2v2 = YKHO._get_secondary_height(d6pt)
LFlW = YKHO.screen_rect.x
tlxW = YKHO.screen_rect.y + YKHO._get_relative_sizes_above(d6pt)
if not YKHO.main_centered or len(YKHO.clients) == 2:
LFlW += YKHO._get_main_width()
YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y4Jf(YKHO, *qIxc, **B2fa):\n pass",
"def nOv3(YKHO, tTpl=0):\n YKHO.make_empty_side(u'left')",
"def bFb7(YKHO, LFlW):\n YKHO.left = LFlW",
"def t8r0(Cs6h):\n _tIi = int(Cs6h.width / 2)\n R7f8 = rApN(grid=Cs6h, crop=xb_B(left=0, right=_tIi, top=0, bottom=0))\n R7f8.find_grid_lines()\n ... | [
"0.63195825",
"0.6086111",
"0.6077265",
"0.5996412",
"0.5920634",
"0.5807526",
"0.58066976",
"0.5735618",
"0.57232714",
"0.5686847",
"0.5674994",
"0.5672776",
"0.5672776",
"0.5653484",
"0.5637909",
"0.563178",
"0.56097245",
"0.5602208",
"0.5592556",
"0.5558909",
"0.5556237",
... | 0.66508955 | 0 |
Place a client on the screen Will prevent double margins by applying east and south margins only when the client is the rightmost or the bottommost window. | def Jodt(YKHO, x0hE, LFlW, tlxW, TVTK, H2v2):
if isinstance(YKHO.margin, int):
MVIL = [YKHO.margin] * 4
else:
MVIL = YKHO.margin.copy()
JTIU = LFlW + TVTK - YKHO.screen_rect.x + MVIL[1] >= YKHO.screen_rect.width
eydk = tlxW + H2v2 - YKHO.screen_rect.y + MVIL[2] >= YKHO.screen_rect.height... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uOYE(YKHO, x0hE):\n TVTK = YKHO._get_main_width()\n H2v2 = YKHO.screen_rect.height\n LFlW = YKHO.screen_rect.x\n tlxW = YKHO.screen_rect.y\n if YKHO.main_centered and len(YKHO.clients) > 2:\n LFlW += (YKHO.screen_rect.width - TVTK) // 2\n YKHO._place_client(x0hE, LFlW, tlxW, TVTK, H2v2... | [
"0.75539875",
"0.67920446",
"0.6782173",
"0.6717248",
"0.67088723",
"0.6532626",
"0.6277888",
"0.62567747",
"0.62149477",
"0.610243",
"0.6094332",
"0.59938514",
"0.5988378",
"0.5969192",
"0.5961537",
"0.59436643",
"0.58513707",
"0.58424866",
"0.5833053",
"0.5833053",
"0.58291... | 0.7591064 | 0 |
Tell if user is authorized to perform an operation on an object / repo | def P3Bs(YKHO, wbiw: str, boHx: str, Uvf2: Permission, ZcVd: Optional[str]=None) -> bool:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P3Bs(YKHO, QePW, YEnM=None):\n return True",
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.user.is_superuser:\n return True\n if QePW.user.profile.role == HSUm.CLIENT and YEnM.owner != QePW.user:\n return False\n if QePW.user.profile.role == HSUm.EXECUTOR and YEnM.executor != QePW.us... | [
"0.7524522",
"0.73527783",
"0.73342746",
"0.7287169",
"0.72329104",
"0.7111462",
"0.709465",
"0.706015",
"0.7040911",
"0.70273584",
"0.70273584",
"0.6986406",
"0.69847655",
"0.69780433",
"0.69685835",
"0.6936195",
"0.693598",
"0.69347084",
"0.6912802",
"0.6912274",
"0.6899886... | 0.71538675 | 5 |
Check that the compulsory columns are present on the DataFrame. Any other columns within the DataFrame are ignored. | def Cq64(jQ3Z: DataFrame, YR7t: Sequence) -> None:
if not set(YR7t).issubset(jQ3Z.columns):
yk4i = set(YR7t).difference(jQ3Z.columns)
tO9_ = f'The following compulsory column(s) are missing from the DataFrame: {yk4i}'
raise ValueError(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S0mI(YKHO, jQ3Z: pd.DataFrame) -> None:\n if any([Z9rn not in jQ3Z.columns for Z9rn in Nzxe]):\n raise ValueError(f'Missing columns in dataset.Columns: {jQ3Z.columns}Required: {Nzxe}')",
"def fMcz(YKHO, jQ3Z: pd.DataFrame, vD_2: set) -> bool:\n Y0N0 = vD_2.difference(jQ3Z.columns)\n if len(Y0... | [
"0.81305635",
"0.78329897",
"0.7660651",
"0.75005776",
"0.7425309",
"0.74197876",
"0.72678596",
"0.7239387",
"0.7127136",
"0.70580316",
"0.701105",
"0.6953294",
"0.69302094",
"0.6899149",
"0.6857188",
"0.68193567",
"0.67958313",
"0.6782587",
"0.67810744",
"0.67645425",
"0.671... | 0.84855485 | 0 |
Preprocess the columns with temporal dtype to convert from numpy datetime objects to pandas datetime objects. Casting the dtype of the columns to object type results in columns of dtype "object" with the contents of the columns being pandas datetime objects, rather than numpy datetime objects. | def OeY9(jQ3Z: DataFrame) -> hxoQ:
for fvDH in jQ3Z.select_dtypes(include=['datetime64[ns, UTC]']):
jQ3Z = jQ3Z.astype({fvDH: 'O'})
for fvDH in jQ3Z.select_dtypes(include='timedelta64[ns]'):
jQ3Z = jQ3Z.astype({fvDH: 'O'})
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnKZ(f4IJ):\n f4IJ = f4IJ.convert_objects(convert_numeric=True)\n for iVRZ in f4IJ:\n if iVRZ in Z9rn.dates:\n f4IJ[iVRZ] = f4IJ[iVRZ].astype('datetime64')\n return f4IJ",
"def FUA9(WafH):\n for YRbF, yDqo in enumerate(WafH.dtypes):\n if yDqo.type == oyIN.object_:\n ... | [
"0.74709755",
"0.7033335",
"0.6733504",
"0.659353",
"0.64212334",
"0.6386969",
"0.63688743",
"0.63353765",
"0.63305885",
"0.6291442",
"0.6264255",
"0.60583246",
"0.6027275",
"0.60056144",
"0.59894425",
"0.5982113",
"0.5968225",
"0.59520805",
"0.59478825",
"0.5935167",
"0.5865... | 0.8187906 | 0 |
helper function format that converts time | def format(GMp6):
""" in tenths of seconds into formatted string A:BC.D """
k0lF = GMp6 // 600
RZUV = GMp6 // 10
tpZk = RZUV % 60
tjUW = tpZk // 10
Nq1b = tpZk % 10
lWPh = GMp6 % 10
return str(k0lF) + ':' + str(tjUW) + str(Nq1b) + '.' + str(lWPh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ct8j(YKHO, ITS7):\n TKQ0 = ITS7[0:2]\n cpvk = ITS7[2:4]\n KG9w = ITS7[4:]\n return '%s:%s:%s UTC' % (TKQ0, cpvk, KG9w)",
"def XrpE(S0TS):\n G9jH.debug('in_time = %s', S0TS)\n yvT9 = S0TS.strftime('%a, %d %b %Y %H:%M:%S %z+0000')\n G9jH.debug('out = %s, out')\n return yvT9",
"def ct8... | [
"0.80753815",
"0.78916687",
"0.7760521",
"0.7726221",
"0.7718569",
"0.7677393",
"0.7623019",
"0.7544477",
"0.7486131",
"0.74268425",
"0.742128",
"0.7410823",
"0.73338574",
"0.7297183",
"0.72908336",
"0.7281866",
"0.7246052",
"0.7245116",
"0.72278744",
"0.7192817",
"0.7164283"... | 0.6411065 | 100 |
The IDP Metadata URL. Note that either `idp_metadata_url` or `idp_metadata_xml` (but not both) must be specified. | def D7F9(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'idp_metadata_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D7F9(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'idp_metadata_url')",
"def iKSN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'metadata_url')",
"def uAXU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'idp_metadata_xml')",
"def uAXU(YKHO) -> h8nf[qe4Y.Input[str]]... | [
"0.88143337",
"0.77208996",
"0.69850427",
"0.69850427",
"0.6940839",
"0.655783",
"0.64734745",
"0.61319673",
"0.5966178",
"0.5825402",
"0.5802312",
"0.5780511",
"0.56919533",
"0.56919533",
"0.56362516",
"0.56362516",
"0.56137985",
"0.5597476",
"0.5585035",
"0.5585035",
"0.558... | 0.892841 | 0 |
The IDP Metadata URL. Note that either `idp_metadata_url` or `idp_metadata_xml` (but not both) must be specified. | def D7F9(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'idp_metadata_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D7F9(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'idp_metadata_url')",
"def iKSN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'metadata_url')",
"def uAXU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'idp_metadata_xml')",
"def uAXU(YKHO) -> h8nf[qe4Y.Input[str]]... | [
"0.8815419",
"0.7720322",
"0.6985402",
"0.6985402",
"0.6941505",
"0.6558796",
"0.647289",
"0.6130445",
"0.59652656",
"0.5824618",
"0.58035105",
"0.5779413",
"0.569295",
"0.569295",
"0.5635098",
"0.5635098",
"0.5613696",
"0.5596113",
"0.55840826",
"0.55840826",
"0.55840826",
... | 0.8929303 | 1 |
The status of the SAML configuration. | def jGRS(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO) -> qe4Y.Output['outputs.AssessmentStatusResponse']:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO) -> qe4Y.Output['outputs.AssessmentStatusResponseResponse']:\n return qe4Y.get(YKHO, 'status')",
"def jGRS():\n with ClTz():\n n30Z = Tw6k()\n OXYg = qoWl()\n f9Ro... | [
"0.7058781",
"0.6983164",
"0.6817036",
"0.6783692",
"0.67710745",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
... | 0.0 | -1 |
Get an existing WorkspaceSamlConfiguration resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, saza: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, sOg6: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, xQN6: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, iv_i: Optional[pulumi.Input[str]]=None, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, ul9_: Optional[pulumi.Input[str]]=None, qDzk: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, vdqp: Optional[pulumi.Input[str]]=None, VPRs: Optional[pulumi.Input... | [
"0.5538515",
"0.54990077",
"0.54566634",
"0.5317396",
"0.52680546",
"0.5262775",
"0.52016664",
"0.5139147",
"0.5115766",
"0.51015955",
"0.5100212",
"0.50605243",
"0.5002299",
"0.4928875",
"0.49048665",
"0.4883968",
"0.48664626",
"0.48504826",
"0.48420328",
"0.4830552",
"0.482... | 0.75696605 | 0 |
The IDP Metadata URL. Note that either `idp_metadata_url` or `idp_metadata_xml` (but not both) must be specified. | def D7F9(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'idp_metadata_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D7F9(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'idp_metadata_url')",
"def D7F9(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'idp_metadata_url')",
"def iKSN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'metadata_url')",
"def uAXU(YKHO) -> h8nf[qe4Y.Input[str]]:... | [
"0.8927949",
"0.8927949",
"0.7721125",
"0.6984451",
"0.6984451",
"0.69399685",
"0.65574515",
"0.64741915",
"0.6130745",
"0.59659696",
"0.5825923",
"0.58000207",
"0.5780518",
"0.5689842",
"0.5689842",
"0.5636517",
"0.5636517",
"0.5614861",
"0.5598212",
"0.5585309",
"0.5585309"... | 0.88136303 | 2 |
The status of the SAML configuration. | def jGRS(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO) -> qe4Y.Output['outputs.AssessmentStatusResponse']:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO) -> qe4Y.Output['outputs.AssessmentStatusResponseResponse']:\n return qe4Y.get(YKHO, 'status')",
"def jGRS():\n with ClTz():\n n30Z = Tw6k()\n OXYg = qoWl()\n f9Ro... | [
"0.7058781",
"0.6983164",
"0.6817036",
"0.6783692",
"0.67710745",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
"0.67552096",
... | 0.66962016 | 47 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
j5sA = input('Would you like to see data for Chicago, New York City, Washington?').lower()
print(j5sA)
while j5sA not in ['chicago', 'washington', 'new york city']:
j5sA = input('Input available name of the city').lower()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.58150685 | 58 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
Ux0P = '{}.csv'.format(j5sA.replace(' ', '_'))
print(Ux0P)
jQ3Z = rLdf.read_csv(Ux0P)
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
if x0eS != 'all':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.0 | -1 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
sve5 = jQ3Z['month'].mode().values[0]
print('most popular month: {} '.format(sve5))
StUT = jQ3Z['day_of_week'].mode().values[0]
print('most popular day_of_week: {} '.format(StUT))
jQ3Z['hour'] = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80235124",
"0.80223495",
"0.7914819",
"0.78260994",
"0.7821642",
"0.78139323",
"0.77653635",
"0.7739615",
"0.77358055",
"0.7733576",
"0.7686211",
"0.7667902",
"0.76510555",
"0.76440334",
"0.76391727",
"0.7636328",
"0.7624661",
"0.7622607",
"0.76119757",
"0.7599401",
"0.758... | 0.7527221 | 27 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
_8rG = jQ3Z['Start Station'].mode().values[0]
print('Popular start station: {} '.format(_8rG))
oFx8 = jQ3Z['End Station'].mode().values[0]
print('\npopular end station: {} '.format(oFx8))
BWz1 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.72894394 | 29 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time'])
jQ3Z['Duration'] = jQ3Z['End Time'] - jQ3Z['Start Time']
print('total time travel:', jQ3Z['Duration'].sum())
print('mean travel time: ', jQ3Z['Duration'].mean())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.7528124 | 98 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
KndY = KndY[OrFa(Y8eF, aMgO)]
if NkkI:
Bcwd = B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81922984",
"0.80933887",
"0.80272716",
"0.8016492",
"0.79913706",
"0.79885876",
"0.79777396",
"0.79729784",
"0.7958926",
"0.7954523",
"0.79347897",
"0.7931899",
"0.7931772",
"0.7928666",
"0.7923684",
"0.7921764",
"0.79213995",
"0.7920191",
"0.792016",
"0.7919876",
"0.79153... | 0.0 | -1 |
Deserialize registration model from a file containing JSON. Assumes a JSON formatted registration model, with keys 'regmethod' and 'transclass' specifying the registration method used and the transformation type as strings, and 'transformations' containing the transformations. The format of the transformations will dep... | def tyeH(nUeQ):
import json
import importlib
eHNT = open(nUeQ, 'r')
input = json.loads(eHNT.read())
_eBP = str(input['regMethod'])
Um9M = str(input['transClass'])
sGzJ = getattr(importlib.import_module('thunder.imgprocessing.transformation'), Um9M)
BmLB = {}
for G1Hx, Ty9i in input['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(nUeQ):\n return yGKR.load(nUeQ)",
"def zZDP(YKHO):\n try:\n with open('registered.json', 'r') as nUeQ:\n YKHO.final_dicc = qQXR.load(nUeQ)\n except (FileNotFoundError, ValueError, qQXR.decoder.JSONDecodeError):\n pass",
"def GwPd(Ux0P: str) -> cuzp[str, Hu_q]:\n wi... | [
"0.6152679",
"0.5517744",
"0.5454677",
"0.52596986",
"0.51930666",
"0.5169601",
"0.50803816",
"0.50481814",
"0.5048122",
"0.50383097",
"0.502685",
"0.5015702",
"0.5006676",
"0.4995949",
"0.49528322",
"0.4947995",
"0.49237466",
"0.49138537",
"0.49093756",
"0.4899112",
"0.48791... | 0.82451445 | 0 |
Test that the result of _public_repos_url is the expected one based on the mocked payload | def y4Sn(YKHO, QAIN, aEqx):
with Po4F('client.get_json') as TMAJ:
KAOR = zI0C(QAIN)
TMAJ.return_value = aEqx
YKHO.assertEqual(KAOR._public_repos_url, aEqx['repos_url']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ig9R(YKHO, WADM):\n v7ki = [{'name': 'Google'}]\n WADM.return_value = v7ki\n with Po4F('client.GithubOrgClient._public_repos_url', new_callable=cqv0) as yyEa:\n yyEa.return_value = 'hello/world'\n Buc1 = zI0C('test')\n Aofo = Buc1.public_repos()\n GfdN = [sWfS['name'] for s... | [
"0.8165539",
"0.7519236",
"0.6719071",
"0.6716822",
"0.6522895",
"0.648663",
"0.6443497",
"0.6414371",
"0.61882615",
"0.6184085",
"0.6174079",
"0.6146442",
"0.6130969",
"0.6115983",
"0.60996205",
"0.60840577",
"0.6066543",
"0.6057088",
"0.6020417",
"0.5977149",
"0.59506327",
... | 0.80628514 | 1 |
Return equality between itself and argument | def xa14(YKHO, SppC: 'MatrixBoolean') -> bool:
if not isinstance(SppC, n3sK) or YKHO.dimM != SppC.dimM or YKHO.dimN != SppC.dimN or (YKHO.matrix != SppC.matrix):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, wAVY):\n return super().__eq__(wAVY)",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n ... | [
"0.7924894",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"0.7452219",
"... | 0.0 | -1 |
Return value of the cell at position m, n | def Zmkp(YKHO, r8hN: int, exwG: int) -> int:
return YKHO.matrix[r8hN][exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ji2i(YKHO, d6pt):\n WKvO, LVAh = d6pt\n return YKHO.grid[LVAh][WKvO]",
"def bwbz(YKHO, H5ew):\n wEf2 = 0\n wEf2 = YKHO._table[H5ew[0], H5ew[1]]\n return wEf2",
"def Xa8q(YKHO, rdlD, iVRZ):\n return YKHO.thing[f'{iVRZ}{rdlD}'].value",
"def bwbz(YKHO, rdlD, iVRZ):\n return YKHO.sudoku_... | [
"0.69836324",
"0.65525454",
"0.6487007",
"0.6443801",
"0.63799673",
"0.6315123",
"0.63149637",
"0.6284218",
"0.627854",
"0.6245651",
"0.62431604",
"0.62148076",
"0.6214526",
"0.61991215",
"0.6199037",
"0.6194864",
"0.61790216",
"0.61664265",
"0.6159156",
"0.6154935",
"0.61500... | 0.82471144 | 0 |
Set an empty matrix containing only 0 | def YV11(YKHO, lsmZ: int) -> None:
ndTn, LRQz = lsmZ
YKHO._set_dim(ndTn, LRQz)
YKHO.matrix = [[0 for bGrB in range(LRQz)] for bGrB in range(ndTn)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y1Us(YKHO, SppC) -> None:\n if not SppC:\n return\n MKlR, yzQ0 = (len(SppC), len(SppC[0]))\n nlpD = False\n for YRbF in range(MKlR):\n if SppC[YRbF][0] == 0:\n nlpD = True\n for r845 in range(1, yzQ0):\n if SppC[YRbF][r845] == 0:\n SppC[0][r... | [
"0.7923586",
"0.7900355",
"0.7863084",
"0.7853867",
"0.78464204",
"0.78248113",
"0.7799413",
"0.7768714",
"0.775196",
"0.77210057",
"0.77202976",
"0.7719934",
"0.7710213",
"0.77064663",
"0.768912",
"0.7687898",
"0.76852566",
"0.767767",
"0.7675788",
"0.7665884",
"0.7652749",
... | 0.7532405 | 29 |
Creation Date for the Log Analytics Query, in ISO 8601 format. | def QT9s(YKHO) -> str:
return qe4Y.get(YKHO, 'time_created') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d8PD(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_date')",
"def d8PD(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_date')",
"def d8PD(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_date')",
"def ykZT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'creation_date_time')",
"def XAPA(YKHO):\... | [
"0.7202839",
"0.7202839",
"0.7202839",
"0.6736525",
"0.6709503",
"0.66336286",
"0.6597363",
"0.6597363",
"0.6597363",
"0.6573073",
"0.6510829",
"0.64769626",
"0.64713496",
"0.64713496",
"0.64713496",
"0.6438459",
"0.6438459",
"0.6438459",
"0.6438459",
"0.6438459",
"0.6438459"... | 0.57939404 | 97 |
Write translation JSON file. | def bFLq(pmON, RRrx):
with open(pmON, 'w', encoding='utf8', newline=Hy7s.linesep) as RE6H:
qQXR.dump(RRrx, RE6H, ensure_ascii=False, indent=4, sort_keys=True)
RE6H.write(Hy7s.linesep) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uP8n(YKHO, jY1r):\n jY1r.write(qQXR.dumps(YKHO.translations, sort_keys=True, indent=4))",
"def ZOvP(P4t4, DuqQ, RRrx=None):\n if not RRrx:\n RRrx = v1Aw(P4t4)\n if not RRrx:\n return\n ZMG7 = Er1K.get_pymodule_path(P4t4, 'translations')\n Er1K.create_folder(ZMG7)\n bFLq(Hy7s.p... | [
"0.7920048",
"0.72325045",
"0.72279346",
"0.7196365",
"0.7175183",
"0.6968843",
"0.69429517",
"0.6920029",
"0.6920029",
"0.6887245",
"0.68823844",
"0.6853503",
"0.6749535",
"0.6734055",
"0.67087567",
"0.67016655",
"0.66422325",
"0.6624843",
"0.65717566",
"0.6565238",
"0.65651... | 0.6887478 | 9 |
A faster cumsum, for vectors of size < 8192. | def oLZW(WKvO, rhd_=yOcR.lax.Precision.DEFAULT):
ZHfW = oLG2.triu(oLG2.ones(WKvO.shape, dtype=oLG2.bool_))
return oLG2.einsum('ij,jk', WKvO, ZHfW, precision=rhd_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucYM(YKHO) -> oyIN.ndarray:\n if not hasattr(YKHO, '__cumsum'):\n YKHO.__cumsum = oyIN.insert(oyIN.cumsum(YKHO.sizes), 0, 0)\n return YKHO.__cumsum",
"def ncqH(fUYa):\n _3JK = 0\n for WKvO in fUYa:\n _3JK += WKvO\n yield _3JK",
"def IJGg(qw7D):\n Ylbp = []\n wEf2 = 0\... | [
"0.7096713",
"0.69426435",
"0.6849122",
"0.6789896",
"0.6752854",
"0.6742231",
"0.67084485",
"0.66521716",
"0.65112877",
"0.6510565",
"0.6504534",
"0.64434093",
"0.6429902",
"0.6397713",
"0.6321388",
"0.6298271",
"0.6298271",
"0.6298271",
"0.62788266",
"0.62781227",
"0.622553... | 0.6570658 | 8 |
Displays current server time | def ITS7(YKHO, p9K5, qIxc):
return str(qcWV.datetime.now()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CLAi(YKHO):\n return CLAi.Servertime(YKHO)",
"def Kb27():\n return ITS7.asctime()",
"def wzkt():\n print(F803('%Y-%m-%d %H:%M:%S', WPt4()))",
"def b8dk():\n return F803('%H:%M:%S', ITS7.localtime())",
"async def server_time(YKHO):\n j8eK = '/fapi/v1/time'\n nyyK, P1dF = await YKHO.req... | [
"0.76804984",
"0.7634974",
"0.744474",
"0.73868763",
"0.7247567",
"0.7243079",
"0.7138182",
"0.7100776",
"0.70977163",
"0.7066082",
"0.70605445",
"0.703727",
"0.69715315",
"0.6967022",
"0.6944744",
"0.69272226",
"0.6922758",
"0.691844",
"0.68838453",
"0.68630517",
"0.68524677... | 0.6470981 | 66 |
Replaces ${MODULE_DIR} in a POSIX path and returns the platformdependent path string. | def DsTA(BWXx: str) -> str:
SQ3m = oAb3.PurePosixPath(BWXx).parts
if DI8M not in SQ3m:
return BWXx
if SQ3m[0] != DI8M:
raise ValueError(f"'{DI8M}' needs to be the head of flag value if present, but got '{BWXx}'.")
return str(mupb.joinpath(*SQ3m[1:])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kd_l(pmON):\n if r5rD():\n return pmON.replace('/', '\\\\')\n else:\n return pmON.replace('\\\\', '/')",
"def C3oy(pmON):\n if 'win' in HwRy.platform:\n return pmON.replace('/', '\\\\')\n elif 'linux' in HwRy.platform:\n return pmON.replace('\\\\', '/')",
"def MJH2()... | [
"0.6401663",
"0.6372536",
"0.6366904",
"0.6243135",
"0.6237686",
"0.61687243",
"0.6126809",
"0.60327554",
"0.599607",
"0.5904811",
"0.58830845",
"0.5872023",
"0.58660454",
"0.5845637",
"0.5812143",
"0.5791789",
"0.57478946",
"0.5746082",
"0.5716666",
"0.5695854",
"0.56807786"... | 0.7529465 | 0 |
Returns the IREE run module flags of the input model and execution config. | def tsLK(aMxg: ImportedModel, WbAn: common_definitions.ModelInputData, o9kL: ModuleExecutionConfig, EHBZ: str='0', hWG7: bool=True) -> x1iM[str]:
C3ST = aMxg.model
uyvP = [f'--function={C3ST.entry_function}']
if WbAn != pgb1.ZEROS_MODEL_INPUT_DATA:
raise ValueError('Currently only support all-zeros ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LyN7(nAu5):\n if nAu5 is 'train':\n Q67X = QAgB\n elif nAu5 is 'eval':\n Q67X = OGWg\n elif nAu5 is 'tfrecorder':\n Q67X = O2zo\n else:\n print('Unrecognized configuration name : %s, exiting ....' % nAu5)\n exit(-1)\n return Az5W + Q67X",
"def Np0y(YKHO):\n ... | [
"0.59311867",
"0.5843983",
"0.5841181",
"0.5793107",
"0.57462883",
"0.56632704",
"0.5601686",
"0.5566324",
"0.55531895",
"0.55361235",
"0.5514968",
"0.54272187",
"0.54206955",
"0.53971255",
"0.53658414",
"0.52972007",
"0.5278759",
"0.5241683",
"0.52289045",
"0.52036625",
"0.5... | 0.6648862 | 0 |
Gets if a product is revisable or not. | def qZAp(YKHO, A07C=[], WmM4=None):
U5bT = False
for XV9j in YKHO.browse(MdCC(A07C)):
if FvYI(YKHO, XV9j.id):
U5bT = True
break
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _WNv(YKHO):\n return getattr(YKHO, 'revelant', YKHO.__class__._revelant_)",
"async def is_premium(YKHO) -> bool:\n tTpl = await YKHO.request.request(url=f'https://www.roblox.com/mobileapi/userinfo', method='get')\n return tTpl['IsPremium']",
"def ebnO(YKHO):\n return bool(YKHO.products)",
"de... | [
"0.6547502",
"0.6181641",
"0.6129152",
"0.60451126",
"0.5835326",
"0.58311665",
"0.57051295",
"0.57051295",
"0.5677906",
"0.5651899",
"0.56397504",
"0.5581217",
"0.5581217",
"0.5581217",
"0.5581217",
"0.5581217",
"0.5581217",
"0.5581217",
"0.5581217",
"0.5581217",
"0.5581217"... | 0.57611775 | 6 |
Return a string representation of the model. | def zAg0(YKHO):
return YKHO.text | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW... | [
"0.8550562",
"0.78680784",
"0.7859392",
"0.7820475",
"0.78200865",
"0.78200865",
"0.78024864",
"0.7667491",
"0.7658678",
"0.7652298",
"0.7619285",
"0.75894105",
"0.7587887",
"0.7541158",
"0.75327915",
"0.75327915",
"0.75173604",
"0.7495425",
"0.7490489",
"0.7479993",
"0.74670... | 0.0 | -1 |
Return a string representation of the model. | def zAg0(YKHO):
return YKHO.text[:50] + '...' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW... | [
"0.8550562",
"0.78680784",
"0.7859392",
"0.7820475",
"0.78200865",
"0.78200865",
"0.78024864",
"0.7667491",
"0.7658678",
"0.7652298",
"0.7619285",
"0.75894105",
"0.7587887",
"0.7541158",
"0.75327915",
"0.75327915",
"0.75173604",
"0.7495425",
"0.7490489",
"0.7479993",
"0.74670... | 0.0 | -1 |
Retrieves a User object with the id linked to it | def TKWP(uJjO=None):
DW23 = S8SU.all('User')
CBIr = DW23.get('User' + '.' + uJjO)
if CBIr is None:
eTsH(404)
else:
return (pz3A(CBIr.to_dict()), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def KacQ(YKHO, id: int) -> auMM.bbUser:\n id = YKHO.validateID(id)\n return YKHO.users[id]",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",
"def NMoC(YKHO, uJjO):\n return mv1M.get(uJjO)",
"def bt8D(id):\n CBIr = cuiw.query... | [
"0.8460531",
"0.84129167",
"0.8363828",
"0.8228979",
"0.8196091",
"0.8152984",
"0.8152285",
"0.81419647",
"0.81419647",
"0.81419647",
"0.81419647",
"0.8127679",
"0.8112537",
"0.81110734",
"0.8087793",
"0.80669117",
"0.80636716",
"0.80591726",
"0.8052434",
"0.8052434",
"0.8052... | 0.7390201 | 97 |
Return the slope of line. If vertical, return infinity | def VMex(vC9B):
if vC9B[1] == vC9B[0]:
return float('inf')
else:
return float(vC9B[3] - vC9B[2]) / (vC9B[1] - vC9B[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMex(YKHO):\n if YKHO.b == 0:\n return None\n else:\n return -1 * YKHO.a / YKHO.b",
"def VMex(yKcO, Os4s):\n o4D3 = yKcO[0]\n si3g = yKcO[1]\n ajwV = Os4s[0]\n skBL = Os4s[1]\n tlxW = float(skBL - si3g)\n JyK9 = float(ajwV - o4D3)\n if JyK9 == 0:\n return None\... | [
"0.78768456",
"0.7504399",
"0.7434203",
"0.74321777",
"0.7431112",
"0.7312253",
"0.7107018",
"0.7074267",
"0.7048968",
"0.70196927",
"0.6911064",
"0.6902746",
"0.68834984",
"0.68247545",
"0.68240714",
"0.6742568",
"0.6741415",
"0.6647917",
"0.6641746",
"0.661496",
"0.65463865... | 0.7810303 | 1 |
Takes 2dimensional data and returns the superposition of the derivative for x and the derivative for y. | def QQht(nPrm, WKvO=None, LVAh=None):
if WKvO is None or LVAh is None:
WKvO = oyIN.arange(0, len(nPrm[:, 0]))
LVAh = oyIN.arange(0, len(nPrm[0, :]))
B_eA = oyIN.diff(nPrm, axis=0)
EKoS = oyIN.diff(nPrm, axis=1)
Jw7X = oyIN.diff(WKvO)
eUWA = oyIN.diff(LVAh)
Gs82 = (B_eA.T / Jw7X).... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVyp(Y7fn, WKvO, LVAh):\n O5iP = (Y7fn - WKvO[1] + (Y7fn - WKvO[2])) / ((WKvO[0] - WKvO[1]) * (WKvO[0] - WKvO[2])) * LVAh[0] + (Y7fn - WKvO[0] + (Y7fn - WKvO[2])) / ((WKvO[1] - WKvO[0]) * (WKvO[1] - WKvO[2])) * LVAh[1] + (Y7fn - WKvO[0] + (Y7fn - WKvO[1])) / ((WKvO[2] - WKvO[0]) * (WKvO[2] - WKvO[1])) * LVA... | [
"0.6938651",
"0.6718694",
"0.67182934",
"0.666574",
"0.6613897",
"0.6407551",
"0.63130546",
"0.6270544",
"0.61832285",
"0.6169441",
"0.6158775",
"0.6095087",
"0.60663843",
"0.60353935",
"0.603533",
"0.6026558",
"0.6024889",
"0.5936687",
"0.5918605",
"0.58918214",
"0.5829386",... | 0.7077721 | 0 |
Return a logger which writes everything to stdout. | def lLrZ(RaXn=G9jH.INFO):
bo34 = G9jH.getLogger(__name__)
xxd4 = G9jH.StreamHandler(HwRy.stdout)
xxd4.setFormatter(G9jH.Formatter('%(asctime)s:%(levelname)s:%(module)s: %(message)s'))
xxd4.setLevel(RaXn)
bo34.addHandler(xxd4)
bo34.setLevel(RaXn)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I45O(YKHO):\n bo34 = G9jH.getLogger(YKHO.NAME)\n bo34.setLevel(YKHO.LOG_LEVEL)\n QKKE = G9jH.StreamHandler(HwRy.stdout)\n FMLJ = '\\x1b[1;32m%(levelname)-5s %(module)s:%(funcName)s():'\n FMLJ += '%(lineno)d %(asctime)s\\x1b[0m| %(message)s'\n QKKE.setFormatter(G9jH.Formatter(FMLJ))\n bo34.... | [
"0.7316038",
"0.709956",
"0.6898612",
"0.68376845",
"0.6818234",
"0.67856514",
"0.671446",
"0.67142963",
"0.6636028",
"0.6625081",
"0.65867305",
"0.65808034",
"0.65178365",
"0.64889306",
"0.6424482",
"0.64230144",
"0.6409482",
"0.6404034",
"0.6381939",
"0.6312757",
"0.6305472... | 0.6843126 | 3 |
Checks whether the elements of an array are strictly increasing. | def Mg38(jzdc):
return oyIN.all(oyIN.diff(jzdc) > 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ynxl(ezWE, U4Ag=True):\n if len(ezWE) == 0:\n return True\n if U4Ag:\n return oyIN.all(oyIN.diff(ezWE) >= 0)\n else:\n return oyIN.all(oyIN.diff(ezWE) <= 0)",
"def U4Ag(nPrm):\n return (oyIN.diff(nPrm) > 0).all() == True",
"def f3N3(aWuw, U3Fm=False):\n ZbOB = aWuw[0]\n ... | [
"0.7699243",
"0.7627975",
"0.7175153",
"0.71117735",
"0.7087826",
"0.70144826",
"0.683785",
"0.67904943",
"0.6783914",
"0.6709119",
"0.6680873",
"0.655088",
"0.6538169",
"0.6526585",
"0.6522076",
"0.6502252",
"0.64690286",
"0.6435398",
"0.6381961",
"0.6369455",
"0.62817544",
... | 0.80792975 | 0 |
Returns the magnitude of a Quantity or number. | def YXbZ(WKvO):
return WKvO.magnitude if hasattr(WKvO, 'magnitude') else WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return PZyS(YKHO.dot(YKHO))",
"def YXbZ(*qIxc):\n return PZyS(BJ1H(qIxc, qIxc))",
"def YXbZ(YKHO):\n return YKHO.real ** 2 + XTiz.inner(YKHO.pure, YKHO.pure)",
"def YXbZ(YKHO):\n return epAf.sqrt(Pusg(lambda WKvO, LVAh: WKvO + LVAh, [WKvO ** 2 for WKvO in YKHO.vector]))",
"def... | [
"0.7077792",
"0.70125926",
"0.68785787",
"0.68625635",
"0.6815076",
"0.67330873",
"0.6645811",
"0.6520507",
"0.6463618",
"0.63547575",
"0.6327381",
"0.6324424",
"0.62734187",
"0.62501884",
"0.6218764",
"0.6218194",
"0.6217566",
"0.6212252",
"0.62004584",
"0.62004066",
"0.6180... | 0.73513764 | 0 |
Unit vector in the direction of v. | def GcMV(Ty9i):
FOSW = vjne(Ty9i)
if FOSW == 0:
return Ty9i
else:
return Ty9i / FOSW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ECss(YKHO, Ty9i):\n return Ty9i / oyIN.linalg.norm(Ty9i)",
"def dVIs(Ty9i):\n LDcD = oyIN.linalg.norm(Ty9i)\n if oyIN.isclose(LDcD, 0):\n raise ValueError('Cannot make unit vector from zero vector.')\n else:\n return Ty9i / LDcD",
"def j8U8(Ty9i):\n MKlR = (Ty9i[0] ** 2 + Ty9i[... | [
"0.876196",
"0.8152993",
"0.8148603",
"0.7971984",
"0.7936508",
"0.79334545",
"0.7881249",
"0.7872178",
"0.78442323",
"0.78442323",
"0.78442323",
"0.7830655",
"0.7821232",
"0.77987015",
"0.7793998",
"0.7759176",
"0.7738089",
"0.7738089",
"0.7738089",
"0.7738089",
"0.7738089",... | 0.0 | -1 |
Perpendicular Vector (rotated left). Only works with 2D Vectors. | def hFff(Ty9i):
assert len(Ty9i) == 2
WKvO, LVAh = Ty9i
return lNLu(-LVAh, WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CrII(YKHO, iArr):\n PpdG = YKHO.subtractVector(YKHO.parallelTo(iArr))\n return PpdG",
"def LezA(Ty9i):\n if Ty9i[1] == 0 and Ty9i[2] == 0:\n if Ty9i[0] == 0:\n raise ValueError('zero vector')\n else:\n return oyIN.cross(Ty9i, [0, 1, 0])\n return oyIN.cross(Ty9i... | [
"0.8416795",
"0.84082466",
"0.8146965",
"0.80611336",
"0.7819039",
"0.7711964",
"0.761575",
"0.7277041",
"0.72417593",
"0.7024806",
"0.69228154",
"0.68911976",
"0.68653077",
"0.67755646",
"0.6598421",
"0.65955156",
"0.6578948",
"0.65578604",
"0.65521973",
"0.63305825",
"0.619... | 0.7179226 | 9 |
Test that ConnectorLoopError is thrown when Connector.connect is called with event loop running in current thread. | async def test_connect_ConnectorLoopError() -> None:
veI6 = V7ok.get_running_loop()
SQvy = RZs0(loop=veI6)
trZe.raises(lcpE, SQvy.connect, 'my-project:my-region:my-instance', 'pg8000') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_connect_error_with_no_server(KyT5):\n x0hE = svJL(hostname='127.0.0.1', port=65534, loop=KyT5)\n with trZe.raises(bc_Y):\n await x0hE.connect(timeout=0.1)",
"def DPa0(YKHO):\n yield YKHO.connect('127.0.0.1', YKHO.pbPort)\n REAE = jth9.copy(YKHO.defaultConfig)\n REAE.reconnect... | [
"0.6947779",
"0.68460256",
"0.65138566",
"0.6482847",
"0.6448226",
"0.6438702",
"0.63926756",
"0.63752186",
"0.63597155",
"0.635074",
"0.6311952",
"0.6292978",
"0.62809366",
"0.6269353",
"0.62270355",
"0.6209838",
"0.61868274",
"0.6183249",
"0.6162814",
"0.61423254",
"0.61079... | 0.88154346 | 0 |
This function returns the list of all products from the API. | def q0ZI():
wv_W = []
ifdZ = 1000
Voci = 1
while Voci < ifdZ:
xqoZ = {'per_page': 100, 'page': Voci}
QACW = OEeg().get_details(wc_endpoint='products', params=xqoZ)
if QACW:
Voci += 1
wv_W.extend(QACW)
else:
break
return wv_W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CGif():\n Ldyl = []\n x0hE = ytxd()\n for Lx3t in x0hE.get_products():\n Ldyl.append(msfn(base_currency=Lx3t[0], quote_currency=Lx3t[1]))\n return Ldyl",
"def CnKV():\n nPrm = NFJ2.get_all_products()\n return nPrm",
"def CnKV(YKHO):\n pass",
"def uQsB(YKHO):\n return YKHO._... | [
"0.8298007",
"0.82738745",
"0.8251436",
"0.8233669",
"0.8157878",
"0.8154259",
"0.8032464",
"0.8028842",
"0.7957147",
"0.78499264",
"0.7720971",
"0.7705617",
"0.7637103",
"0.7636632",
"0.75827783",
"0.75748986",
"0.75737715",
"0.7553478",
"0.74817824",
"0.7467059",
"0.7436524... | 0.8170335 | 4 |
Create instance Main window to create the main window of Application. | def b8V_():
import sys
XLL2 = x5x0.QApplication(sys.argv)
KnxT = HNwX()
KnxT.show()
sys.exit(XLL2.exec_()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riwc():\n cJnu = Cvzl()\n J6FS.append(cJnu)\n Qijt = P4t4.desktop().availableGeometry(cJnu)\n cJnu.resize(Qijt.width() * 2 / 3, Qijt.height() * 2 / 3)\n cJnu.show()\n return cJnu",
"def EYn4(YKHO):\n P4t4 = YKHO.app\n KnxT = YKHO.window\n KnxT.show()\n P4t4.exec()",
"def b8V_(... | [
"0.8074604",
"0.77945703",
"0.74060464",
"0.736164",
"0.736164",
"0.736164",
"0.7301354",
"0.72590005",
"0.7209125",
"0.71755886",
"0.71612227",
"0.7159483",
"0.71347713",
"0.7119588",
"0.7070056",
"0.7040067",
"0.70168006",
"0.6950666",
"0.69227606",
"0.68792033",
"0.6821610... | 0.68440044 | 20 |
Calculates income after taxes and cash transfers. Defined as aftertax_income minus noncash benefits. | def PYhR(jQ3Z):
return jQ3Z.aftertax_income - (1 - Vq3K.HOUSING_CASH_SHARE) * jQ3Z.housing_ben - (1 - Vq3K.MCAID_CASH_SHARE) * jQ3Z.mcaid_ben - (1 - Vq3K.MCARE_CASH_SHARE) * jQ3Z.mcare_ben - (1 - Vq3K.OTHER_CASH_SHARE) * jQ3Z.other_ben - (1 - Vq3K.SNAP_CASH_SHARE) * jQ3Z.snap_ben - (1 - Vq3K.SSI_CASH_SHARE) * jQ3Z.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dORC(ya_D, Dvuq):\n return ya_D - Dvuq",
"def HvDN(YKHO):\n zCF7 = YKHO.net_revenue() - YKHO.depreciation()\n return zCF7",
"def JODv(YKHO):\n hpSR = YKHO.before_tax_profit() * (1 - YKHO.tax_rate)\n return hpSR",
"def IjO7(MPJe, hzm0):\n u7CS = hzm0.array('c00100')\n oJch = oyIN.wher... | [
"0.6502832",
"0.64841217",
"0.63989854",
"0.6217795",
"0.61582565",
"0.6105369",
"0.5936392",
"0.5826362",
"0.58258766",
"0.5792423",
"0.5729272",
"0.5714489",
"0.5661098",
"0.5655638",
"0.5633946",
"0.5602791",
"0.55662984",
"0.5536809",
"0.5504084",
"0.5497639",
"0.5496065"... | 0.72147006 | 0 |
Approximates Tax Policy Center's Expanded Cash Income measure. Subtracts WIC, housing assistance, veteran's benefits, Medicare, and Medicaid from expanded_income. ECI adds income measures not modeled in TaxCalculator, so these are ignored and will create a discrepancy compared to TPC's ECI. | def vs7a(jQ3Z):
return jQ3Z.expanded_income - jQ3Z[jGzX.ECI_REMOVE_COLS].sum(axis=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjO7(MPJe, hzm0):\n u7CS = hzm0.array('c00100')\n oJch = oyIN.where(hzm0.array('c04470') < hzm0.array('standard'), 0.0, hzm0.array('c04470'))\n padI = u7CS - oJch\n oeNL = oyIN.array(padI > 0.0, dtype=bool)\n jQne = oyIN.where(oeNL, MPJe, 0.0)\n M0kl = hzm0.array('e00200')\n i4Af = oyIN.ze... | [
"0.63575685",
"0.61947",
"0.5838606",
"0.5754118",
"0.5631078",
"0.54414266",
"0.5274697",
"0.52616",
"0.5242341",
"0.5241744",
"0.5208719",
"0.5192135",
"0.5163222",
"0.51623523",
"0.51258457",
"0.5102183",
"0.50571877",
"0.50395715",
"0.5017013",
"0.5012186",
"0.49937758",
... | 0.5733739 | 4 |
validates ip address format | def Yef8(D8Ke):
SAfb = ''
try:
SAfb = str(SwOd.ip_address(D8Ke))
except ValueError:
G9jH.error("ip address '{}' is not valid: ".format(D8Ke))
return SAfb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def emBu(YKHO, I33c):\n u_n7 = '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\\\/([0-9]|[1-2][0-9]|3[0-2]))?$'\n Mkmy = ZbWC.compile(u_n7)\n if Mkmy.match(I33c):\n print('Valid IP address format')\n YKHO.target = I33c\n r... | [
"0.8194823",
"0.76122284",
"0.7550071",
"0.75436187",
"0.7410464",
"0.7329071",
"0.7280199",
"0.7267632",
"0.7255606",
"0.72446436",
"0.7235161",
"0.7197597",
"0.71690744",
"0.7164797",
"0.7104662",
"0.70866674",
"0.7076848",
"0.70563567",
"0.70498806",
"0.69903475",
"0.69893... | 0.73847663 | 5 |
validate ip address with cidr format. defaults to /24 if only IP is given | def mwo_(wR2I):
J3J2 = ''
while True:
try:
J3J2 = SwOd.ip_network(wR2I)
break
except ValueError:
G9jH.warn('input should be in format x.x.x.x/x')
wR2I = input('enter the network cidr: ')
return J3J2.compressed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z1ax(yf3m):\n Hjcr = ''\n while not Hjcr:\n Hjcr = QkHq(yf3m)\n if Hjcr and Hjcr < 32:\n pass\n else:\n yf3m = input('user input has to be an integer and less than 32: ')\n return yf3m",
"def W2Zm(YKHO, UTX6):\n try:\n xOIh.IPNetwork(UTX6)\n ex... | [
"0.7101074",
"0.70184755",
"0.68896466",
"0.68324304",
"0.68313074",
"0.6806895",
"0.6802307",
"0.6781137",
"0.6773412",
"0.6717731",
"0.6716789",
"0.6716789",
"0.67142653",
"0.66491306",
"0.66491306",
"0.66009504",
"0.6510521",
"0.65094715",
"0.6486576",
"0.6465099",
"0.6425... | 0.7482977 | 0 |
Returns leading coefficient of f. | def rlU_(eHNT):
if not eHNT:
return J2mU
else:
return eHNT[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZRI(YKHO) -> float:\n ...",
"def GUUu(eHNT):\n return G0X5(eHNT.rep, eHNT.lev, eHNT.dom)",
"def ZzFL(eHNT=0.1):\n jzdc = oyIN.cos(eHNT) - 1 - oyIN.sqrt(oyIN.cos(eHNT) ** 2 - 4 * oyIN.cos(eHNT) + 3)\n jzdc = oyIN.abs(jzdc)\n Fg_i = 1 - jzdc\n return (Fg_i, jzdc)",
"def eHNT(YKHO, EcVT):... | [
"0.68067116",
"0.67108554",
"0.66341895",
"0.66190064",
"0.65667504",
"0.65371764",
"0.6503691",
"0.6419352",
"0.6413542",
"0.6389451",
"0.63540816",
"0.6267388",
"0.62656873",
"0.62519294",
"0.62496334",
"0.62341577",
"0.62002504",
"0.6183896",
"0.61793876",
"0.6176155",
"0.... | 0.59243304 | 39 |
Returns trailing coefficient of f. | def O5zh(eHNT):
if not eHNT:
return J2mU
else:
return eHNT[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(LVAh):\n G1Hx = 1.0\n return LVAh * (1 - LVAh)",
"def b7La(eHNT, jzdc):\n if eHNT == []:\n return 0\n Aofo = eHNT[-1]\n YRbF = len(eHNT) - 1\n while YRbF >= 0:\n Aofo = eHNT[YRbF] + jzdc * Aofo\n YRbF -= 1\n return Aofo",
"def nCVg(YKHO):\n return YKHO.beta... | [
"0.61605144",
"0.6077934",
"0.5969837",
"0.5947496",
"0.5921533",
"0.5921533",
"0.5905034",
"0.59044874",
"0.58646727",
"0.5864177",
"0.58433276",
"0.5835778",
"0.5786339",
"0.57820654",
"0.5752609",
"0.5752391",
"0.5751712",
"0.57513165",
"0.57398295",
"0.5739353",
"0.571015... | 0.5584072 | 35 |
Returns nth coefficient of f. | def Psyv(eHNT, exwG):
if exwG < 0 or exwG > len(eHNT) - 1:
raise IndexError
else:
return eHNT[x0uq(eHNT) - exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kJS3(VN2L, exwG, YRbF):\n return int(VN2L.coeff_monomial(WKvO ** (YRbF + exwG) * LVAh ** exwG))",
"def eHNT(YRbF):\n return tTpl(2 ** ywwl - 1 - YRbF) ^ 2 ** (ywwl - 1)",
"def b7La(eHNT, jzdc):\n if eHNT == []:\n return 0\n Aofo = eHNT[-1]\n YRbF = len(eHNT) - 1\n while YRbF >= 0:\... | [
"0.7056215",
"0.7050887",
"0.69566965",
"0.67553794",
"0.6707752",
"0.6696093",
"0.6630105",
"0.66094106",
"0.6600523",
"0.6504286",
"0.6456364",
"0.6427401",
"0.63642055",
"0.6362384",
"0.63592935",
"0.6350223",
"0.63102573",
"0.63026184",
"0.6237878",
"0.61649144",
"0.61449... | 0.73746616 | 0 |
Returns True if f is zero in Z[X]. | def MbqM(eHNT):
if vxCN(eHNT):
return not eHNT
elif len(eHNT) == 1:
return MbqM(eHNT[0])
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MCGS(YKHO, WKvO):\n if oyIN.any(WKvO[YKHO._z] != 0):\n return oyIN.inf\n else:\n return 0",
"def Witr(eHNT):\n return EMda(eHNT.rep, eHNT.lev)",
"def _xgi(YKHO):\n ...",
"def PNxx(YKHO):\n return YKHO.p.isZero() & (YKHO.q.isZero() == False)",
"def ebnO(YKHO):\n for tTpl ... | [
"0.72440785",
"0.70402265",
"0.6390811",
"0.6329779",
"0.63218135",
"0.62462336",
"0.6222576",
"0.62079483",
"0.62048215",
"0.6146138",
"0.61352956",
"0.6050971",
"0.5987397",
"0.595638",
"0.59485096",
"0.59373397",
"0.5934698",
"0.5923522",
"0.588555",
"0.58643323",
"0.58572... | 0.6950707 | 2 |
Subtract cxk from f in Z[x]. | def MwxC(eHNT, Z9rn, G1Hx=0):
if not Z9rn:
return eHNT
exwG = len(eHNT)
r8hN = exwG - G1Hx - 1
if G1Hx == exwG - 1:
return VbXB([eHNT[0] - Z9rn] + eHNT[1:])
elif G1Hx >= exwG:
return [-Z9rn] + [J2mU] * (G1Hx - exwG) + eHNT
else:
return eHNT[:r8hN] + [eHNT[r8hN] - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SfmU(eHNT, Oa1e):\n if not Oa1e:\n return eHNT\n if not eHNT:\n return _0Sl(Oa1e)\n jQ3Z = x0uq(eHNT)\n xkW5 = x0uq(Oa1e)\n if jQ3Z == xkW5:\n return VbXB([jzdc - Fg_i for jzdc, Fg_i in zip(eHNT, Oa1e)])\n else:\n G1Hx = abs(jQ3Z - xkW5)\n if jQ3Z > xkW5:\n ... | [
"0.65491664",
"0.6192572",
"0.60566866",
"0.5968153",
"0.5962163",
"0.5939183",
"0.59240633",
"0.58609855",
"0.5851643",
"0.5826591",
"0.58083516",
"0.57662076",
"0.5744788",
"0.57186055",
"0.56572986",
"0.565209",
"0.5609364",
"0.55824673",
"0.5579653",
"0.5557265",
"0.55479... | 0.63576776 | 1 |
Subtract cxk from f in Z[X]. | def DflO(eHNT, Z9rn, G1Hx=0):
return wYph(eHNT, stef(Z9rn), G1Hx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SfmU(eHNT, Oa1e):\n if not Oa1e:\n return eHNT\n if not eHNT:\n return _0Sl(Oa1e)\n jQ3Z = x0uq(eHNT)\n xkW5 = x0uq(Oa1e)\n if jQ3Z == xkW5:\n return VbXB([jzdc - Fg_i for jzdc, Fg_i in zip(eHNT, Oa1e)])\n else:\n G1Hx = abs(jQ3Z - xkW5)\n if jQ3Z > xkW5:\n ... | [
"0.64574474",
"0.62853634",
"0.60615396",
"0.6052799",
"0.6050572",
"0.5987769",
"0.57797927",
"0.57410425",
"0.5685736",
"0.56525683",
"0.56501037",
"0.56167096",
"0.5603385",
"0.55749017",
"0.55726856",
"0.55049276",
"0.5498131",
"0.5446875",
"0.5440292",
"0.54340875",
"0.5... | 0.62080353 | 2 |
Raise f to the nth power in Z[x]. | def cpPk(eHNT, exwG):
if not exwG:
return [AOGM]
if exwG == 1 or eHNT == [] or eHNT == [1]:
return eHNT
Oa1e = [AOGM]
while True:
exwG, r8hN = (exwG // 2, exwG)
if r8hN & 1:
Oa1e = B0iq(Oa1e, eHNT)
if exwG == 0:
break
eHNT =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SO5j(eHNT, exwG):\n if vxCN(eHNT):\n return cpPk(eHNT, exwG)\n if not exwG:\n return sCo7(eHNT, 1)\n if exwG == 1 or MbqM(eHNT) or qMPr(eHNT):\n return eHNT\n Oa1e = sCo7(eHNT, 1)\n while True:\n exwG, r8hN = (exwG // 2, exwG)\n if r8hN & 1:\n Oa1e =... | [
"0.7477932",
"0.73431796",
"0.70889837",
"0.7078694",
"0.7066896",
"0.70379096",
"0.70142376",
"0.6844157",
"0.6833018",
"0.6828619",
"0.67335033",
"0.67156863",
"0.67114174",
"0.6674375",
"0.6639195",
"0.65672934",
"0.655759",
"0.6553508",
"0.64179116",
"0.64179116",
"0.6398... | 0.71944225 | 2 |
Raise f to the nth power in Z[X]. | def SO5j(eHNT, exwG):
if vxCN(eHNT):
return cpPk(eHNT, exwG)
if not exwG:
return sCo7(eHNT, 1)
if exwG == 1 or MbqM(eHNT) or qMPr(eHNT):
return eHNT
Oa1e = sCo7(eHNT, 1)
while True:
exwG, r8hN = (exwG // 2, exwG)
if r8hN & 1:
Oa1e = i0Kp(Oa1e, eHNT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pow(eHNT, exwG):\n return eHNT.per(C7Jo(eHNT.rep, exwG, eHNT.lev, eHNT.dom))",
"def cpPk(eHNT, exwG):\n if not exwG:\n return [AOGM]\n if exwG == 1 or eHNT == [] or eHNT == [1]:\n return eHNT\n Oa1e = [AOGM]\n while True:\n exwG, r8hN = (exwG // 2, exwG)\n if r8hN &... | [
"0.732194",
"0.7110891",
"0.70446986",
"0.69497335",
"0.6943896",
"0.69369024",
"0.69259584",
"0.681598",
"0.6739879",
"0.67289054",
"0.6727927",
"0.6680388",
"0.6616513",
"0.65826035",
"0.6541072",
"0.6437504",
"0.6396418",
"0.63798684",
"0.6339265",
"0.63387877",
"0.6330188... | 0.7451823 | 0 |
Returns maximum norm of a polynomial in Z[x]. | def gKEK(eHNT):
if not eHNT:
return J2mU
else:
return max(mkLd(eHNT)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bs6N(eHNT):\n if vxCN(eHNT):\n return gKEK(eHNT)\n else:\n return max([Bs6N(lk9W) for lk9W in eHNT])",
"def wTln() -> float:\n return 1.0",
"def CkYf(WKvO):\n return cdHd(WKvO, WKvO)[0].sqrt_()",
"def YO2c(WKvO):\n return cdHd(WKvO, WKvO)[0]",
"def KD9H(epBp):\n jzdc = a... | [
"0.7676479",
"0.67081606",
"0.6429065",
"0.6397484",
"0.63679093",
"0.6361638",
"0.6344008",
"0.6340044",
"0.633521",
"0.62989974",
"0.6297091",
"0.6288976",
"0.617381",
"0.61337125",
"0.6115138",
"0.6100051",
"0.6100051",
"0.6092006",
"0.6067748",
"0.60584384",
"0.6003973",
... | 0.6763031 | 1 |
Returns maximum norm of a polynomial in Z[X]. | def Bs6N(eHNT):
if vxCN(eHNT):
return gKEK(eHNT)
else:
return max([Bs6N(lk9W) for lk9W in eHNT]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wTln() -> float:\n return 1.0",
"def gKEK(eHNT):\n if not eHNT:\n return J2mU\n else:\n return max(mkLd(eHNT))",
"def vXfG(Nk6w):\n return Nk6w.view(Nk6w.shape[0], -1).norm(dim=1)[:, None, None, None]",
"def KD9H(epBp):\n jzdc = abs(float(epBp))\n if jzdc >= 8.3:\n ... | [
"0.6703867",
"0.6691624",
"0.65342957",
"0.63917094",
"0.63875395",
"0.6378613",
"0.6371709",
"0.63692665",
"0.634451",
"0.6282344",
"0.6230944",
"0.6225322",
"0.6217385",
"0.61546063",
"0.61530846",
"0.61375695",
"0.6108851",
"0.6108851",
"0.605075",
"0.60412884",
"0.5984149... | 0.7637313 | 0 |
Returns l1 norm of a polynomial in Z[x]. | def H3eu(eHNT):
if not eHNT:
return J2mU
else:
return sum(mkLd(eHNT)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AY5H(eHNT):\n if vxCN(eHNT):\n return H3eu(eHNT)\n else:\n return sum([AY5H(lk9W) for lk9W in eHNT])",
"def jtyf(he6J):\n return oyIN.linalg.norm(he6J, ord=1)",
"def bu94(EcVT):\n return max(oyIN.sum(EcVT, axis=0))",
"def neQZ(EcVT):\n Oben(EcVT, oyIN.ndarray)\n return oyI... | [
"0.7844401",
"0.7328825",
"0.71581227",
"0.712899",
"0.7107472",
"0.68653864",
"0.6814324",
"0.67756003",
"0.6774308",
"0.6737321",
"0.6716745",
"0.66532063",
"0.6628349",
"0.66172665",
"0.66081995",
"0.649694",
"0.6494543",
"0.64607596",
"0.6405793",
"0.6394973",
"0.6386501"... | 0.6881367 | 5 |
Returns l1 norm of a polynomial in Z[X]. | def AY5H(eHNT):
if vxCN(eHNT):
return H3eu(eHNT)
else:
return sum([AY5H(lk9W) for lk9W in eHNT]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jtyf(he6J):\n return oyIN.linalg.norm(he6J, ord=1)",
"def bu94(EcVT):\n return max(oyIN.sum(EcVT, axis=0))",
"def cZIU(EcVT):\n if EcVT.shape[0] * EcVT.shape[1] == 0:\n return 0\n return abs(EcVT).sum()",
"def neQZ(EcVT):\n Oben(EcVT, oyIN.ndarray)\n return oyIN.sqrt(oyIN.power(E... | [
"0.7400679",
"0.723374",
"0.72229683",
"0.7202876",
"0.69178206",
"0.6877627",
"0.6835889",
"0.6834067",
"0.6809726",
"0.67698973",
"0.6706666",
"0.66810614",
"0.6680159",
"0.6630256",
"0.6602132",
"0.65969056",
"0.65755683",
"0.6462875",
"0.6444661",
"0.63563305",
"0.6343032... | 0.7832138 | 0 |
mth order derivative of a polynomial in Z[x]. | def OgHh(eHNT, r8hN=1):
exwG, BXW4 = (x0uq(eHNT), [])
exwG = f8gi(eHNT)
if exwG < r8hN:
return []
BXW4, Z9rn = ([], AOGM)
for YRbF in Ni9Y(0, r8hN):
Z9rn, exwG = (Z9rn * exwG, exwG - 1)
for lk9W in eHNT[:-r8hN]:
BXW4.append(lk9W * Z9rn)
Z9rn, exwG = (exwG * (Z9rn ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N4WL(YKHO, WKvO, LVAh, epBp):\n r8hN = len(WKvO)\n ycBG = oyIN.zeros((r8hN, YKHO.funcCount))\n for r845 in range(YKHO.funcCount):\n ycBG[:, r845] = YKHO.functions[r845](WKvO, LVAh, epBp)\n YRbF = YKHO.argcompare(ycBG, axis=1)\n LVAh = ycBG[oyIN.arange(r8hN), YRbF]\n lMIJ = oyIN.zeros_l... | [
"0.69404477",
"0.6908545",
"0.68533975",
"0.681335",
"0.67528856",
"0.67230815",
"0.6700251",
"0.6641134",
"0.654892",
"0.6538333",
"0.6527875",
"0.6526804",
"0.65219885",
"0.6506436",
"0.64684093",
"0.64621884",
"0.6444908",
"0.6411884",
"0.6409387",
"0.6390736",
"0.6369589"... | 0.7049844 | 0 |
mth order derivative in x_k of a polynomial in Z[X]. | def e0Do(eHNT, G1Hx, r8hN=1):
if G1Hx < 0:
G1Hx += nu4s(eHNT) + 1
if G1Hx == 1:
return bVRP(eHNT, r8hN)
def PRb8(Oa1e, vC9B):
if vC9B == G1Hx:
return bVRP(Oa1e, r8hN)
else:
return J5bV([PRb8(lk9W, vC9B + 1) for lk9W in Oa1e])
return PRb8(eHNT, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LU8J(eHNT, G1Hx, r8hN, WKvO):\n if G1Hx < 0:\n G1Hx += nu4s(eHNT) + 1\n if G1Hx == 1:\n return IOLE(bVRP(eHNT, r8hN), WKvO)\n\n def JoqL(Oa1e, vC9B):\n if vC9B == G1Hx:\n return IOLE(bVRP(Oa1e, r8hN), WKvO)\n else:\n return J5bV([JoqL(lk9W, vC9B + 1) f... | [
"0.6870524",
"0.66385525",
"0.6337095",
"0.62586904",
"0.6247389",
"0.61913675",
"0.60805315",
"0.6015209",
"0.6011528",
"0.6003042",
"0.5988012",
"0.5969743",
"0.5950972",
"0.5926677",
"0.5915538",
"0.58842486",
"0.5876771",
"0.5820747",
"0.579722",
"0.57847553",
"0.5760495"... | 0.68088853 | 1 |
Evaluate f(x) in Z[x] using Horner scheme. | def JUQb(eHNT, WKvO):
Aofo = J2mU
if not WKvO:
return O5zh(eHNT)
for jzdc in eHNT:
Aofo *= WKvO
Aofo += jzdc
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MY12(eHNT, WKvO, PJWX=True, MKlR=1e-05):\n AOlJ = eHNT(WKvO)\n Ro40 = oyIN.zeros_like(WKvO)\n WhY1 = oyIN.nditer(WKvO, flags=['multi_index'], op_flags=['readwrite'])\n while not WhY1.finished:\n p6S0 = WhY1.multi_index\n yNrh = WKvO[p6S0]\n WKvO[p6S0] = yNrh + MKlR\n KH9... | [
"0.63460684",
"0.62573415",
"0.62205976",
"0.62145764",
"0.61654454",
"0.61396074",
"0.6139041",
"0.61204016",
"0.60601825",
"0.5955203",
"0.59275115",
"0.5910847",
"0.59042245",
"0.57765585",
"0.5759126",
"0.5754126",
"0.5714853",
"0.5668366",
"0.5658677",
"0.56582755",
"0.5... | 0.59313357 | 10 |
Evaluate f in Z[X] in variable x_1, using Horner scheme. | def IOLE(eHNT, WKvO):
if hasattr(WKvO, '__iter__'):
return IJ4P(eHNT, WKvO)
if vxCN(eHNT):
return JUQb(eHNT, WKvO)
if not WKvO:
return O5zh(eHNT)
Aofo = rlU_(eHNT)
for lk9W in eHNT[1:]:
Aofo = o69_(Aofo, WKvO)
Aofo = ZY8P(Aofo, lk9W)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dyub(WKvO):\n return WKvO ** 3 - 2 * WKvO + 2",
"def yhM8(_g9D: Sequence[float], WKvO: float) -> float:\n Aofo = 0.0\n for lk9W in reversed(_g9D):\n Aofo = Aofo * WKvO + lk9W\n return Aofo",
"def MY12(eHNT, WKvO, PJWX=True, MKlR=1e-05):\n AOlJ = eHNT(WKvO)\n Ro40 = oyIN.zeros_like(... | [
"0.6301516",
"0.6086152",
"0.6085154",
"0.6078058",
"0.60761476",
"0.599915",
"0.59574884",
"0.59230375",
"0.5922305",
"0.59212714",
"0.58689886",
"0.58516985",
"0.58236176",
"0.5813196",
"0.5812005",
"0.5777729",
"0.57619",
"0.57413137",
"0.5729096",
"0.5706535",
"0.5689789"... | 0.60219145 | 5 |
Divides all coefficients by polynomial content. | def jCUe(eHNT):
v9Lt = y2Xu(eHNT)
if qMPr(v9Lt):
return (v9Lt, eHNT)
else:
return (v9Lt, [MTDA(lk9W, v9Lt) for lk9W in eHNT]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dShr(YKHO, V6IE):\n if V6IE.getDegree() == -1:\n raise CllM('Impossible to divide by 0')\n return\n K0A_ = xitm(YKHO.__coefficients)\n if YKHO.getDegree() < V6IE.getDegree():\n return (xitm([]), K0A_)\n W575 = [0] * (YKHO.getDegree() - V6IE.getDegree() + 1)\n VLzE = xitm([])... | [
"0.6044631",
"0.5843627",
"0.5542578",
"0.5382521",
"0.5338407",
"0.5337228",
"0.53105533",
"0.52908397",
"0.52908397",
"0.52769446",
"0.52437663",
"0.5228222",
"0.5201172",
"0.5160551",
"0.51473844",
"0.514249",
"0.51404566",
"0.51333195",
"0.5128716",
"0.5064503",
"0.505992... | 0.0 | -1 |
Returns a onehot tensor. This is a PyTorch equivalent of Tensorflow's tf.one_hot. | def KLLm(_0VL, rb7a):
szx1 = ht2j.zeros(_0VL.size() + ht2j.Size([rb7a])).cuda()
d6pt = _0VL.view(_0VL.size() + ht2j.Size([1]))
szx1 = szx1.scatter_(1, d6pt, 1)
return szx1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFAW(a1PO, jTqs, begE='cpu'):\n return ht2j.zeros(a1PO.size()[0], jTqs).to(begE).scatter_(1, a1PO.view(-1, 1), 1)",
"def N9CW(vhpA: torch.Tensor, jTqs: int=-1, tpio: int=-1) -> ht2j.Tensor:\n if not nNW7(vhpA):\n raise ValueError(f'tensor must be integer type, current type: {vhpA.dtype}')\n b... | [
"0.7789414",
"0.7704868",
"0.76986057",
"0.76597536",
"0.7629563",
"0.7553897",
"0.75398374",
"0.74877393",
"0.74762434",
"0.7469148",
"0.74602",
"0.74449766",
"0.74236",
"0.73929656",
"0.7385945",
"0.7382963",
"0.7356756",
"0.7319632",
"0.72946125",
"0.72945786",
"0.7265763"... | 0.6733651 | 73 |
Get outputs with additional unlock conditions. | def DwuK(YKHO, LqCC):
return YKHO._call_account_method('getOutputsWithAdditionalUnlockConditions', {'outputsToClaim': LqCC}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eEcc(YKHO):\n o4Jx = YKHO._outputs().get()\n return o4Jx",
"def Jvkf():\n o4Jx = {}\n for YEnM in vars(PJEB.output).values():\n if hasattr(YEnM, 'OUTPUT_NAME'):\n o4Jx[YEnM.OUTPUT_NAME] = YEnM\n return o4Jx",
"def Jvkf(YKHO):\n o4Jx = set()\n o4Jx.update(YKHO.get_inte... | [
"0.6029543",
"0.5978834",
"0.595764",
"0.59557635",
"0.58315384",
"0.57428867",
"0.5715514",
"0.5687862",
"0.5673937",
"0.56377727",
"0.5630134",
"0.55974096",
"0.5584727",
"0.5545749",
"0.55104816",
"0.5496828",
"0.5495693",
"0.5490033",
"0.54719263",
"0.54620355",
"0.544653... | 0.7448071 | 0 |
Returns all unspent outputs of the account. | def sz11(YKHO, ZieQ=None):
return YKHO._call_account_method('unspentOutputs', {'filterOptions': ZieQ}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w10v(YKHO, z50T, UTX6):\n raise NotImplementedError(\"This service does not support getting unspent outputs. Or rather it has no defined 'get_unspent_outputs' method.\")",
"def w10v(YKHO, UTX6):\n raise NotImplementedError('coming soon...')\n o4Jx = []\n for xfAY in YKHO._unspent._list_unspent(UT... | [
"0.80590487",
"0.7758299",
"0.74471706",
"0.7018622",
"0.6618164",
"0.65917027",
"0.6520653",
"0.61917466",
"0.617753",
"0.61040336",
"0.59494156",
"0.5922694",
"0.5908892",
"0.5908892",
"0.5908892",
"0.5908892",
"0.5908892",
"0.5908892",
"0.5908892",
"0.585725",
"0.57359296"... | 0.83500385 | 0 |
Returns all transaction of the account. | def gQVK(YKHO):
return YKHO._call_account_method('transactions') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gQVK(YKHO):\n return UShr.AccountTransactions(YKHO)",
"def gQVK(YKHO) -> x1iM[T74E]:\n return YKHO.session.get_transactions(YKHO.account_id)",
"def gQVK(YKHO):\n bD7m = f'{YKHO._ynab.api_url}/budgets/{YKHO.budget.id}/accounts/{YKHO.id}/transactions'\n geh0 = YKHO._ynab.session.get(bD7m)\n if... | [
"0.83322763",
"0.8157989",
"0.77802324",
"0.76984334",
"0.753643",
"0.7532989",
"0.750693",
"0.7451186",
"0.7426054",
"0.73617077",
"0.7297444",
"0.72779584",
"0.7239408",
"0.7174363",
"0.7129202",
"0.71288365",
"0.70906407",
"0.70444614",
"0.70438075",
"0.6977753",
"0.691445... | 0.8300182 | 1 |