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 |
|---|---|---|---|---|---|---|
return json data products from one category. | def JiqI(YKHO, Ghho):
bD7m = 'https://fr.openfoodfacts.org/cgi/search.pl? action=process& tagtype_0=categories& tag_contains_0=contains& tag_0=%s& sort_by=unique_scans_n& page_size=100& ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mb9b(CwLm):\n VMw8 = int(CwLm)\n p_h6 = jA2G.categories(OToB)\n Ldyl = p_h6.get_products_by_category(VMw8)\n return oGir(qQXR.dumps(Ldyl, use_decimal=True), mimetype='application/json')",
"def I7U4(VMw8, Mc9N):\n cuiw = GhOX()\n Ghho = cuiw.query(qZuN).filter_by(id=VMw8).one()\n try:\n ... | [
"0.7658957",
"0.7469128",
"0.7383698",
"0.7334499",
"0.7310448",
"0.72298855",
"0.717272",
"0.7167553",
"0.71608764",
"0.709408",
"0.709226",
"0.7086522",
"0.705941",
"0.7045453",
"0.69564337",
"0.6949733",
"0.6947985",
"0.6937929",
"0.69255286",
"0.69010305",
"0.69003683",
... | 0.7358353 | 3 |
confirm a user's password reset via emailed token | def NMoC(YKHO, eOtH):
try:
D3lj = gayK(eOtH)
except Exception:
return k3xx('the password reset link is invalid or has expired')
CBIr = NCls.session.query(mv1M).filter_by(email=D3lj).one_or_none()
if not CBIr:
return b3Ke('no user found with email = "{}"'.format(D3lj))
if CBIr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NcCH(eOtH):\n lQqU = eOtH\n if Oa1e.user['is_authenticated']:\n eTsH(403)\n CBIr = jVr7.check_token(eOtH)\n if not CBIr:\n return TvZl('accounts/password_reset_request_unsuccessful.html')\n Dwep(\"We've automatically logged you in. Please change your password now!\", category='info... | [
"0.7850636",
"0.75821596",
"0.7537648",
"0.75278765",
"0.74998116",
"0.74946326",
"0.7453057",
"0.73945385",
"0.738405",
"0.73569995",
"0.7352302",
"0.73187727",
"0.7284149",
"0.7276821",
"0.7266166",
"0.7264087",
"0.7258615",
"0.72223943",
"0.71989006",
"0.71806455",
"0.7148... | 0.0 | -1 |
Return the kwargs from dict that are inputs to function f. | def fzTi(B2fa: dict, eHNT: Callable) -> dict:
KCHu = tq_1.signature(eHNT)
XP5J = KCHu.parameters
if next(reversed(XP5J.values())).kind == tq_1.Parameter.VAR_KEYWORD:
return B2fa
if len(B2fa) < len(XP5J):
return {G1Hx: Ty9i for G1Hx, Ty9i in B2fa.items() if G1Hx in XP5J}
return {G1Hx:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zfHn(pVQS):\n return pVQS.get(pRjz, dict())",
"def FJnO(JfyU, lddw: dict):\n wEsz = aadv(JfyU)\n ZWCE = [k78t for k78t in wEsz.parameters]\n B2fa = {G1Hx: lddw.pop(G1Hx) for G1Hx in lddw.keys() & ZWCE}\n return B2fa",
"def C3Aw(B2fa: Dict[str, Any], JfyU: Callable[..., Any]) -> cuzp[str, ImM... | [
"0.7690614",
"0.7276052",
"0.7040315",
"0.692441",
"0.6903845",
"0.68774164",
"0.6843887",
"0.6791161",
"0.67870885",
"0.67600375",
"0.66657984",
"0.6575474",
"0.65484416",
"0.65396345",
"0.64465225",
"0.64015216",
"0.63790095",
"0.6367768",
"0.63598776",
"0.6337181",
"0.6330... | 0.70470047 | 2 |
Converts input to tuple. | def EV8W(Ty9i: Union[Tuple[Number, ...], Number, Iterable], exwG: int):
if isinstance(Ty9i, tuple):
return Ty9i
elif isinstance(Ty9i, KUXB):
return (Ty9i,) * exwG
else:
return tuple(Ty9i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXWe(IqQl):\n return tuple(IqQl)",
"def Cdjl(WKvO):\n if isinstance(WKvO, tuple):\n return WKvO\n return (WKvO,)",
"def YElZ(WKvO):\n return WKvO if isinstance(WKvO, tuple) else (WKvO,)",
"def XMpf(*qIxc):\n return tuple(qIxc)",
"def EV8W(rdlD):\n if rdlD.size == 1:\n re... | [
"0.7800187",
"0.77297056",
"0.7556673",
"0.7372013",
"0.7334185",
"0.73029554",
"0.7240079",
"0.7206287",
"0.71753025",
"0.71734226",
"0.7130957",
"0.71239036",
"0.7113541",
"0.7088448",
"0.7054965",
"0.70495605",
"0.7043155",
"0.7007416",
"0.7007416",
"0.6981266",
"0.6974579... | 0.6573309 | 55 |
Check that instrument_name is a valid instrument on OANDA for data | def g2sy(YKHO, KB4z):
Gskj = YKHO.api.get_instruments()
return KB4z in (WKvO[1] for WKvO in Gskj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucsZ(YKHO, a35g):\n if a35g not in ['nircam', 'niriss', 'fgs']:\n raise ValueError('WARNING: {} is not a valid instrument.'.format(a35g))",
"def eFeW(YKHO):\n YKHO.assertRaises(RuntimeError, YNgL, OutputWorkspace='__ISISIndirectEnergyTransferTest_ws', InputFiles=['IRS26176.RAW'], Instrument='IRI... | [
"0.74260205",
"0.59711653",
"0.5696049",
"0.5681334",
"0.5569826",
"0.55180466",
"0.5480369",
"0.5478933",
"0.5458725",
"0.54347074",
"0.54178125",
"0.5380643",
"0.5373441",
"0.53644973",
"0.5353655",
"0.53470355",
"0.53395677",
"0.53249556",
"0.5323718",
"0.5289486",
"0.5265... | 0.7602078 | 0 |
Returns a list of commits that are the parent of the commit passed in. | def ZRe6(F0ds, xot2):
RCmq = dTAH.urlopen('https://skia.googlesource.com/skia/+log/%s?format=json&n=%d' % (F0ds, xot2))
QzfE = RCmq.read()[4:]
zgjV = qQXR.loads(QzfE)
return [XkTm['commit'] for XkTm in zgjV['log']] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3x8(YKHO, jSYO):\n return CD35(['git', '--no-pager', 'log', '--no-walk', '--pretty=format:%P', jSYO]).strip().split()",
"def ACnF(YKHO):\n return [YKHO.repository.get_changeset(_AKB) for _AKB in YKHO._commit.parents]",
"def fe7l(F3jJ, cYW_):\n return cYW_.parents if len(cYW_.parents) else [F3jJ.r... | [
"0.81364375",
"0.7554425",
"0.741373",
"0.7395002",
"0.70023566",
"0.674966",
"0.65356934",
"0.6441539",
"0.6420648",
"0.63966465",
"0.6360218",
"0.6293399",
"0.6283189",
"0.6269547",
"0.62524664",
"0.6244322",
"0.6244182",
"0.6219761",
"0.6177354",
"0.61675566",
"0.61643666"... | 0.63964796 | 10 |
Callback Called when tracks are removed from the playlist. | def FMqM(YKHO, NvAR, HqKa, ldlt):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eIR8(YKHO, MCGS):\n YKHO.conn.listen_signal(path='/org/mpris/MediaPlayer2', fallback=False, interface='org.mpris.MediaPlayer2.TrackList', name='TrackRemoved', func=MCGS)",
"def oC7L(YKHO, NvAR, ldlt=None):\n try:\n NvAR.remove_callback(YKHO.tracks_added, ldlt)\n NvAR.remove_callback(YKHO.... | [
"0.7702303",
"0.74959266",
"0.74363214",
"0.6828037",
"0.6828037",
"0.6705659",
"0.6673403",
"0.6642944",
"0.6615088",
"0.65245503",
"0.65245503",
"0.6478776",
"0.6472107",
"0.6420822",
"0.6420112",
"0.64083576",
"0.6316753",
"0.62772155",
"0.6269891",
"0.62584674",
"0.624918... | 0.88623685 | 0 |
weight_variable generates a weight variable of a given shape. | def E9N2(ROpF):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n return ZylS.get_variable(name='weight', shape=ROpF, initializer=ZylS.truncated_normal_initializer(stddev=0.1))",
"def E9N2(ROpF):\n return ZylS.get_variable('weights', ROpF, initializer=ZylS.contrib.layers.xavier_initializer())",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, ... | [
"0.84314823",
"0.84171796",
"0.8409499",
"0.8343622",
"0.8299395",
"0.82949835",
"0.8286199",
"0.8275145",
"0.8252328",
"0.8163204",
"0.8159106",
"0.81570065",
"0.81570065",
"0.81570065",
"0.81570065",
"0.81570065",
"0.81570065",
"0.81570065",
"0.81570065",
"0.81570065",
"0.8... | 0.81351304 | 24 |
bias_variable generates a bias variable of a given shape. | def Y7ph(ROpF):
RqgG = ZylS.constant(0.1, shape=ROpF)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG, name='bias')",
"def Y7ph(ROpF):\n with ZylS.name_scope('biases'):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n Es0b = ZylS.Variable(RqgG)\n return Es0b",
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, s... | [
"0.8450208",
"0.843371",
"0.84225553",
"0.8418631",
"0.83956254",
"0.8339686",
"0.8330452",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.8325915",
"0.8306395",
"0.8306395",
"0.82... | 0.8303826 | 22 |
If input task is scatterable, return working directories of scattered tasks. Otherwise, return working directories of the only task. | def d4dA(YKHO, D5gV):
U5bT = []
if khtY.exists(khtY.join(YKHO.tasks_dir, D5gV + '-0')):
U5bT = [khtY.join(YKHO.tasks_dir, D5gV + '-0')]
else:
for YRbF in range(1, 10000):
NYQY = khtY.join(YKHO.tasks_dir, D5gV + '-' + str(YRbF))
if khtY.exists(NYQY):
U5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DIkj(YKHO, uDMk):\n\n def fx2c(nUeQ, AGPF):\n \"\"\"\n Return true, if the common prefix of both is equal to directory\n e.g. /a/b/c/d.rst and directory is /a/b, the common prefix is /a/b\n \"\"\"\n AGPF = Hy7s.path.abspath(AGPF)\n nUeQ = Hy7s.path.abspa... | [
"0.5775277",
"0.5500201",
"0.53875184",
"0.5340598",
"0.5218811",
"0.5209068",
"0.52022374",
"0.51055616",
"0.508575",
"0.5079909",
"0.5058849",
"0.50515175",
"0.50325584",
"0.50251263",
"0.50251263",
"0.5019384",
"0.50104755",
"0.5000307",
"0.49851474",
"0.49826926",
"0.4978... | 0.69963723 | 0 |
Set seed of random number generators to limit the number of sources of nondeterministic behavior for a specific platform, device, and PyTorch release. For more information, see | def e3of(yokr=None, bo34=None, qVnc=True, KuEO=True, _hMD=True, q91V: bool=False):
if yokr is None:
KdNK = 'pytorch_3T27T'
yokr = [str(ord(sZqf) - 96) for sZqf in KdNK]
yokr = abs(int(''.join(yokr))) % 2 ** 32
tuKI.seed(yokr)
oyIN.random.seed(yokr)
Hy7s.environ['PYTHONHASHSEED'] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e3of():\n ht2j.manual_seed(SGPK.RANDOM_SEED)\n ht2j.cuda.manual_seed_all(SGPK.RANDOM_SEED)\n ht2j.backends.cudnn.deterministic = True\n ht2j.backends.cudnn.benchmark = False\n oyIN.random.seed(SGPK.RANDOM_SEED)\n Hy7s.environ['PYTHONHASHSEED'] = str(SGPK.RANDOM_SEED)",
"def BpNF():\n ht2... | [
"0.80061567",
"0.78487825",
"0.7836205",
"0.767834",
"0.7664814",
"0.7650375",
"0.7640172",
"0.76241845",
"0.76224005",
"0.76196766",
"0.7605041",
"0.7591965",
"0.7579939",
"0.7577299",
"0.7568373",
"0.75600535",
"0.7546298",
"0.75309485",
"0.7507412",
"0.74774045",
"0.747740... | 0.0 | -1 |
Set seed for Dataloader. DataLoader will reseed workers the "Randomness in multiprocess data loading" algorithm. Use `worker_init_fn()` to preserve reproducibility. For more information, see | def NBJ5(U3lI):
g4Cd = ht2j.initial_seed() % 2 ** 32
oyIN.random.seed(g4Cd)
tuKI.seed(g4Cd) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvjC(U3lI):\n g4Cd = ht2j.initial_seed() % 2 ** 32\n oyIN.random.seed(g4Cd)\n tuKI.seed(g4Cd)\n return",
"def LvjC(U3lI):\n oyIN.random.seed(yokr + U3lI)",
"def NxwE(U3lI):\n oyIN.random.seed(77 + U3lI)",
"def LvjC(U3lI):\n OTv7 = ht2j.IntTensor(1).random_().item()\n oyIN.random.s... | [
"0.77276",
"0.7712208",
"0.7628397",
"0.7545541",
"0.75310564",
"0.75310564",
"0.75075996",
"0.7452414",
"0.74338067",
"0.7387396",
"0.7387396",
"0.7368496",
"0.7331652",
"0.73084474",
"0.72919655",
"0.6697638",
"0.6595552",
"0.6577561",
"0.6543008",
"0.6519998",
"0.64597213"... | 0.733692 | 12 |
Set seed for Dataloader generators. DataLoader will reseed workers the "Randomness in multiprocess data loading" algorithm. Use `generator` to preserve reproducibility. For more information, see | def pWul(c2Yh, bo34, yokr=0):
c2Yh.manual_seed(yokr)
tO9_ = f'Dataloader generator with seed {yokr} has been created.'
bo34.info(tO9_)
return c2Yh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yokr(yokr=None):\n VDG3.random_generator.seed(yokr)",
"def e3of(YKHO, yokr):\n YKHO.seed_val = yokr\n oyIN.random.seed(YKHO.seed_val)\n ht2j.manual_seed(YKHO.seed_val)\n ht2j.cuda.manual_seed(YKHO.seed_val)\n ht2j.cuda.manual_seed_all(YKHO.seed_val)\n tuKI.seed(YKHO.seed_val)\n ht2j.b... | [
"0.70680946",
"0.69123673",
"0.68893594",
"0.6885236",
"0.6882635",
"0.6874584",
"0.6873708",
"0.68694717",
"0.6834543",
"0.6793345",
"0.6790155",
"0.6768801",
"0.6768801",
"0.6768801",
"0.6768801",
"0.67435974",
"0.67335117",
"0.6731485",
"0.6720108",
"0.6711612",
"0.6697529... | 0.77216667 | 0 |
Initializes the UI for the TUI widget. | def FIMM(YKHO):
YKHO.packet_store = c9_N(YKHO)
YKHO.root_node = gurS(YKHO.packet_store, YKHO)
YKHO.dynamic_view = lb4W.TreeWalker(YKHO.root_node)
YKHO.packet_list = lb4W.AttrWrap(Ic49(YKHO.dynamic_view, YKHO.packet_focus_changed), 'packets')
YKHO.packet_list.offset_rows = 1
YKHO.decoder_rows = l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MG5I(YKHO):\n YKHO.setFixedSize(600, 300)\n YKHO.centre()\n YKHO.setWindowTitle('UBCCrawler')\n YKHO.statusBar().showMessage('Ready')\n YKHO.initTextBrowser()\n YKHO.initDropDownMenus()\n YKHO.show()",
"def edgV(YKHO) -> None:\n YKHO.setGeometry(100, 100, 350, 350)\n YKHO.setWindow... | [
"0.7812378",
"0.7716507",
"0.7630131",
"0.7512977",
"0.74866986",
"0.7484966",
"0.74728507",
"0.74643177",
"0.74351066",
"0.74037987",
"0.7363704",
"0.7334262",
"0.73321503",
"0.7316961",
"0.7312435",
"0.72274685",
"0.72257155",
"0.72204316",
"0.72130734",
"0.72121733",
"0.71... | 0.0 | -1 |
Find the absolute path of boot.oat In Android 5.0+, all the jars of BOOTCLASSPATH are packaged into boot.oat | def FL4G(YKHO):
gXoL = Hy7s.path.join(YKHO.mFrwDir, 'arm/boot.oat')
if Hy7s.path.exists(gXoL):
return gXoL
gXoL = Hy7s.path.join(YKHO.mFrwDir, 'x86/boot.oat')
if Hy7s.path.exists(gXoL):
return gXoL
gXoL = None
HCmI = 'find %s -name boot.oat' % wQcs.mkarg(YKHO.mFrwDir)
TJZp, l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mZzp(YKHO):\n dTkm = pmON.join(YKHO.get_extraction_fullpath(), Do60)\n if pmON.exists(dTkm):\n return dTkm",
"def ILHo(YKHO):\n return YKHO._boot_class_path",
"def oZPa(pmON):\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(jKRH.__file__), pmON))",
"def vByj(sKYw, CMTZ):\n ... | [
"0.6362985",
"0.6256776",
"0.59855425",
"0.5786437",
"0.5761423",
"0.5756445",
"0.56890774",
"0.5688114",
"0.56838524",
"0.5667022",
"0.56302315",
"0.56267524",
"0.5623712",
"0.5620802",
"0.5594265",
"0.5577803",
"0.5574882",
"0.5574882",
"0.55655617",
"0.55541456",
"0.555414... | 0.69588375 | 0 |
Verify that the gravatar_url method returns the expected output. | def kjO7(YKHO):
D3lj = 'joe@example.com'
KJnJ = 'JOE@example.com'
l8Mb = ' JOE@example.com '
bD7m = LSNk(D3lj)
YKHO.assertEqual(bD7m, LSNk(KJnJ))
YKHO.assertEqual(bD7m, LSNk(l8Mb))
bvHv = KVWQ(bD7m)
umWR = _Ibt(bvHv.query)
YKHO.assertTrue('s' in umWR)
YKHO.assertTrue('d' in umW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j7qT(YKHO):\n D3lj = 'joe@example.com'\n xj6k = Nm9l(D3lj)\n e7m5 = UvdR(D3lj)\n YKHO.assertTrue(xj6k.endswith(e7m5))",
"def VJeu(YKHO):\n doNR = 'eve@example.com'\n DA2P = 'matt@automattic.com'\n YKHO.assertFalse(xbRJ(doNR))\n YKHO.assertTrue(xbRJ(DA2P))",
"def GsIh(YKHO):\n fro... | [
"0.75725347",
"0.7473721",
"0.722165",
"0.67799824",
"0.6550951",
"0.65245664",
"0.65105623",
"0.64661646",
"0.62583923",
"0.62082195",
"0.6179378",
"0.6168372",
"0.6116663",
"0.6098888",
"0.60830307",
"0.5956567",
"0.5952861",
"0.5945894",
"0.5914851",
"0.5906304",
"0.590552... | 0.71907127 | 3 |
Verify that the has_gravatar helper method correctly determines if a user has a gravatar or not. | def VJeu(YKHO):
doNR = 'eve@example.com'
DA2P = 'matt@automattic.com'
YKHO.assertFalse(xbRJ(doNR))
YKHO.assertTrue(xbRJ(DA2P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XqZV():\n if Oa1e.user:\n return Oa1e.user\n else:\n return False",
"def GsIh(YKHO):\n from hashlib import md5\n D3lj = 'tester@test.com'\n zNig = '120x120'\n CBIr = mv1M(email=D3lj)\n bD7m = 'http://www.gravatar.com/avatar/{}?d=mm&s={}'\n aEqx = bD7m.format(md5(CBIr.ema... | [
"0.6184987",
"0.6086187",
"0.6062241",
"0.6033782",
"0.6019574",
"0.59022915",
"0.57978433",
"0.57823443",
"0.57417166",
"0.5735872",
"0.5664408",
"0.5638939",
"0.563725",
"0.5595141",
"0.5570274",
"0.5525361",
"0.5502606",
"0.54744726",
"0.5473691",
"0.54705554",
"0.54672736... | 0.7696557 | 0 |
Return true if the path is a child of the other path. | def g2qA(_AKB, pmON):
_AKB = Hy7s.path.abspath(_AKB)
pmON = Hy7s.path.abspath(pmON)
return Hy7s.path.commonpath([_AKB]) == Hy7s.path.commonpath([_AKB, pmON]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wbxR(YKHO, Elif):\n return YKHO.parent == Elif",
"def cRIP(Emd4, _AKB, aUGN):\n XP5J = aUGN.getParent()\n while XP5J is not None:\n if _AKB == XP5J:\n return True\n XP5J = XP5J.getParent()\n return False",
"def Q_AL(aUGN: str, _AKB: str) -> bool:\n _AKB = Hy7s.path.a... | [
"0.76187444",
"0.71905077",
"0.71489185",
"0.70621556",
"0.70621556",
"0.69814926",
"0.69542885",
"0.687826",
"0.6844656",
"0.68433493",
"0.6818595",
"0.6770254",
"0.67455995",
"0.67321676",
"0.6728307",
"0.67253363",
"0.66841185",
"0.6647577",
"0.664633",
"0.6610166",
"0.659... | 0.6646861 | 18 |
Get the status of a workflow. | def xDcj(k838: str=r1Il.Argument(..., callback=lBMX)):
PsR1 = k838
try:
w2B8 = k0Ur()
_hkX = w2B8.get(Thon(PsR1), timeout=60)
except G4JS.exceptions.ConnectionError:
Ms8K('Could not reach WF Manager.')
if _hkX.status_code != G4JS.codes.okay:
Ms8K('Could not successfully q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4S2(YKHO, BMxt: str) -> od9V:\n if BMxt in YKHO._workflow_executors:\n if BMxt in YKHO._queued_workflows:\n return od9V.PENDING\n return od9V.RUNNING\n VUF1 = tEQe.get_workflow_storage(BMxt)\n jGRS = VUF1.load_workflow_status()\n if jGRS == od9V.NONE:\n raise IikC(B... | [
"0.7439974",
"0.7382541",
"0.7211865",
"0.71198213",
"0.70360273",
"0.70169747",
"0.70169747",
"0.70042604",
"0.69979036",
"0.6994015",
"0.6949553",
"0.6935724",
"0.69335026",
"0.6926777",
"0.6926777",
"0.6926777",
"0.6926777",
"0.69189644",
"0.6918477",
"0.6904746",
"0.69047... | 0.0 | -1 |
Parse a semantic version string. | def FIMM(YKHO, DpZH):
kUBT = dJps._RE.match(DpZH)
if not kUBT:
raise ValueError('"%s" is not a valid semantic version.' % DpZH)
YKHO.major = int(kUBT.group(1))
YKHO.minor = int(kUBT.group(2))
YKHO.patch = int(kUBT.group(3))
YKHO.prerelease = tFpc(kUBT.group(4))
YKHO.build = tFpc(kUBT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BvuR(vIwR):\n mAtj = [HYz9, iG7p]\n for ZzdS in mAtj:\n try:\n return ZzdS.parse(vIwR)\n except ValueError:\n pass\n raise ValueError('Input is neither a SemVer nor TwilioVersion: ' + vIwR)",
"def BvuR(VsNR: str) -> str:\n VsNR = VsNR.strip('\\n')\n try:\n ... | [
"0.76058",
"0.75185275",
"0.736349",
"0.7212368",
"0.7081604",
"0.7063816",
"0.7053778",
"0.69051945",
"0.68996197",
"0.6823037",
"0.6821119",
"0.6742625",
"0.66885257",
"0.6632664",
"0.6569384",
"0.6529958",
"0.6467674",
"0.64604795",
"0.64604664",
"0.6455252",
"0.64495856",... | 0.6077684 | 41 |
Split a prerelease or build string as per the semver spec. Specifically, splits the string on periods, then converts every section that contains only numeric digits to an integer. | def tFpc(vIwR):
if vIwR is None:
return
def bChK(Npeo):
if ZbWC.search('[^0-9]', Npeo):
return Npeo
return int(Npeo)
return map(bChK, vIwR.split('.')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yO3N(Ty9i):\n Ty9i = Ty9i.split('.') if isinstance(Ty9i, jKi7.string_types) else Ty9i\n return [int(WKvO) if isinstance(WKvO, jKi7.string_types) and WKvO.isdigit() else WKvO for WKvO in Ty9i if WKvO not in ['', None]]",
"def HWku(YKHO, KCHu, jVh8, BZrO=True, cr23=0):\n xYvp = []\n for exwG in KCH... | [
"0.69279987",
"0.68860495",
"0.68272567",
"0.6710651",
"0.6610073",
"0.65734756",
"0.6470061",
"0.6386565",
"0.6296606",
"0.6281627",
"0.62609327",
"0.6250748",
"0.62244904",
"0.6200495",
"0.61927515",
"0.61900616",
"0.6168496",
"0.6157162",
"0.6140616",
"0.61361724",
"0.6130... | 0.6647181 | 4 |
Gets all Canvas courses for the given date range, in the EdFi UDM format. | def LWrK(g_NO: Canvas, kepv: str, KhBf: str, V6NC: sqlalchemy.engine.base.Engine) -> AzJI[x1iM[CQpO], hxoQ]:
sDlr: x1iM[CQpO] = lglN.request_courses(g_NO, kepv, KhBf)
QsE1: hxoQ = lglN.courses_synced_as_df(sDlr, V6NC)
return (sDlr, QsE1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_courses(YKHO, eOtH):\n bD7m = f'{YKHO.canvas_url}/api/v1/courses'\n nPrm = await YKHO.get_canvas_items(eOtH, bD7m)\n return nPrm",
"def k8nB(YKHO):\n return",
"def i8S6():\n zVa7 = b8V_()\n try:\n sDlr = []\n shLb = None\n yv6U = []\n while True:\n ... | [
"0.6316684",
"0.5995582",
"0.58974165",
"0.58416885",
"0.581258",
"0.57889014",
"0.57772183",
"0.5739247",
"0.5694829",
"0.5674801",
"0.5626003",
"0.55993605",
"0.559549",
"0.55686736",
"0.5524575",
"0.5504046",
"0.5483157",
"0.5437524",
"0.5432039",
"0.54145664",
"0.5411494"... | 0.66189456 | 0 |
Initializes the API Wrapper | def FIMM(YKHO, Vt89=None):
YKHO.session = G4JS.Session()
YKHO.authenticated = False
if Vt89 is not None and type(Vt89) == dict:
if 'username' in Vt89 and 'password' in Vt89 or 'session' in Vt89:
YKHO.login(Vt89) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ENf7(YKHO):\n if hasattr(YKHO, '_init_praw') and YKHO._init_praw and (X8Rg is not None):\n YKHO._praw = aGBa(**X8Rg)\n wC2y = YKHO._authenticated(YKHO._praw)\n if wC2y:\n YKHO.logger.info(f'Reddit credentials authenticated. Using PRAW API.')\n YKHO.api = CyXk(YKHO.... | [
"0.76357466",
"0.7536162",
"0.7471222",
"0.73580134",
"0.72552526",
"0.7244585",
"0.7238622",
"0.72295314",
"0.71717167",
"0.716659",
"0.70934474",
"0.70794046",
"0.7061851",
"0.7061851",
"0.7037493",
"0.7010337",
"0.7008871",
"0.69846386",
"0.69728297",
"0.6967012",
"0.69416... | 0.0 | -1 |
Get the CIE026 spectral sensitivities. | def hzDY(UlXy: Optional[int]=1, Gdo6: Optional[bool]=True) -> rLdf.DataFrame:
if UlXy not in [1, 5]:
raise ValueError('Must specify 1 or 5 for binwidth')
NKcn = ['Wavelength', 'S', 'M', 'L', 'R', 'I']
GJqV = oyIN.array([380, oyIN.nan, oyIN.nan, oyIN.nan, 0.000589, 0.00091816, 381, oyIN.nan, oyIN.nan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SsZU(YKHO):\n return YKHO._spectral_sensitivity",
"def FXis(YKHO):\n return _nn5",
"def T6Tz(YKHO):\n if YKHO.webapp:\n if YKHO.key not in YKHO.spectra:\n tO9_ = 'Provided SED key, %s, not supported.' % YKHO.key\n raise Y9il(value=tO9_)\n K5WD = YKHO.spectra[YKH... | [
"0.62140846",
"0.5839331",
"0.5644865",
"0.56138563",
"0.5585965",
"0.5575861",
"0.5563162",
"0.5549098",
"0.5495413",
"0.54575074",
"0.5438749",
"0.5415341",
"0.5408757",
"0.54067457",
"0.5382173",
"0.537941",
"0.5354227",
"0.5340037",
"0.5332577",
"0.53200454",
"0.53160036"... | 0.0 | -1 |
test whether a user is able to get ratings of a particular article. | def DlZO(YKHO):
YKHO.create_rating()
RrWF = YKHO.create_rating()
s5ru = RrWF[1]
ileW = _yIP(s5ru)
geh0 = YKHO.client.get(ileW, **YKHO.headers, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ltcd(YKHO):\n Fb5b, JBvl = YKHO.rate(user=YKHO.author)\n YKHO.assertIn('You cannot rate your own article', Fb5b)\n YKHO.assertEqual(400, JBvl)",
"def Vvc5(YKHO):\n Fb5b, JBvl = YKHO.rate()\n YKHO.assertIn('ratings', Fb5b)\n YKHO.assertEqual(201, JBvl)\n YKHO.assertIn('user', Fb5b)\n Y... | [
"0.68099403",
"0.67821944",
"0.6673802",
"0.659161",
"0.6508576",
"0.6467223",
"0.6268587",
"0.61995125",
"0.61409783",
"0.6118561",
"0.60774696",
"0.60415614",
"0.6011839",
"0.5984561",
"0.5984561",
"0.5984561",
"0.59560734",
"0.5955726",
"0.5938966",
"0.59057385",
"0.590305... | 0.5449697 | 94 |
test whether an unauthenticated user is able to get ratings of a particular article. | def _ovB(YKHO):
YKHO.create_rating()
RrWF = YKHO.create_rating()
s5ru = RrWF[1]
ileW = _yIP(s5ru)
geh0 = YKHO.client.get(ileW, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ltcd(YKHO):\n Fb5b, JBvl = YKHO.rate(user=YKHO.author)\n YKHO.assertIn('You cannot rate your own article', Fb5b)\n YKHO.assertEqual(400, JBvl)",
"def Vvc5(YKHO):\n Fb5b, JBvl = YKHO.rate()\n YKHO.assertIn('ratings', Fb5b)\n YKHO.assertEqual(201, JBvl)\n YKHO.assertIn('user', Fb5b)\n Y... | [
"0.68788975",
"0.68446636",
"0.67591864",
"0.6666547",
"0.66359085",
"0.64886355",
"0.6459989",
"0.6453595",
"0.6308598",
"0.63080746",
"0.6239054",
"0.6136376",
"0.6126441",
"0.60454434",
"0.6026895",
"0.60190046",
"0.5982648",
"0.5939789",
"0.590876",
"0.5883679",
"0.587491... | 0.63126385 | 8 |
An optional description of this resource. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213"... | 0.0 | -1 |
An optional description of this resource. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213"... | 0.0 | -1 |
An optional description of this resource. | def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213",
"0.77536213"... | 0.0 | -1 |
Creates a model params dict that includes the encoder params for the specific model. | def TFcy(wVYf, JsVn):
Kn36 = jth9.deepcopy(YBU0)
Kn36['modelParams']['sensorParams']['encoders'][JsVn] = wVYf[JsVn]
return Kn36 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W6RH(YKHO, y4ha=True):\n NArs = super().get_params(deep=y4ha)\n if not y4ha:\n NArs['encoder'] = YKHO.encoder\n else:\n NArs['encoder'] = YKHO.encoder.get_params(deep=y4ha)\n return NArs",
"def Ox7k():\n return {'width': 30, 'height': 30, 'density': None, 'infected_chance': 0.05,... | [
"0.6681472",
"0.6587157",
"0.6552954",
"0.6477118",
"0.6424033",
"0.6411673",
"0.6403668",
"0.636633",
"0.63223016",
"0.62986326",
"0.62847114",
"0.6239419",
"0.617737",
"0.6170199",
"0.6167023",
"0.6166296",
"0.6123237",
"0.6123237",
"0.6123237",
"0.6123237",
"0.61088264",
... | 0.7075132 | 0 |
Dropout for sparse tensors. | def zSpM(WKvO, sMyr, ZqPb):
FzVw = sMyr
FzVw += ZylS.random_uniform(ZqPb)
Vwv8 = ZylS.cast(ZylS.floor(FzVw), dtype=ZylS.bool)
TYvy = ZylS.sparse_retain(WKvO, Vwv8)
return TYvy * (1.0 / sMyr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T7wl(YKHO, EcVT, sMyr, f3d9):\n ZqPb = [f3d9]\n FzVw = sMyr\n FzVw += ZylS.random_uniform(ZqPb)\n Vwv8 = ZylS.cast(ZylS.floor(FzVw), dtype=ZylS.bool)\n TYvy = ZylS.sparse_retain(EcVT, Vwv8)\n return TYvy * ZylS.div(1.0, sMyr)",
"def zSpM(WKvO, TyPQ, ZqPb):\n sMyr = 1 - TyPQ\n FzVw = s... | [
"0.7381222",
"0.7262561",
"0.7113198",
"0.7042524",
"0.7042524",
"0.7042524",
"0.7037642",
"0.70221937",
"0.7020842",
"0.7003277",
"0.67202723",
"0.670865",
"0.66191477",
"0.66170317",
"0.6608008",
"0.6564389",
"0.65521944",
"0.6497717",
"0.6338826",
"0.62303686",
"0.62133807... | 0.7023691 | 7 |
Return a bond force object. | def zoGt(YKHO, P9SZ):
return YKHO.bondForces[P9SZ]() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ME8I(YKHO):\n DHvX = IbNv.BondForce()\n YKHO._copyDataUsingInterface(DHvX, YKHO)\n return DHvX",
"def W0I0(YKHO):\n return xRw4(YKHO.session, e0lz.checkResult(YKHO._lib().indigoBond(YKHO.id)))",
"def ME8I(YKHO):\n DHvX = IbNv.CrossBondBondAngleForce()\n YKHO._copyDataUsingInterface(DHvX, ... | [
"0.68980515",
"0.667572",
"0.6513578",
"0.6487207",
"0.63428724",
"0.62101614",
"0.6129233",
"0.61115694",
"0.61079466",
"0.6097322",
"0.6010464",
"0.58788174",
"0.5836946",
"0.5712295",
"0.5673991",
"0.56691325",
"0.5668253",
"0.563391",
"0.5576241",
"0.55442375",
"0.5541603... | 0.7127099 | 0 |
Return a dihedral force object. | def CNJF(YKHO, P9SZ):
return YKHO.dihedralForces[P9SZ]() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NHXQ(YKHO):\n for YRbF in range(YKHO.datalength):\n hQHm = oyIN.zeros(3)\n jlSq = oyIN.zeros(3)\n bUZ8 = oyIN.zeros(3)\n for r845 in range(3):\n hQHm[r845] = YKHO.coords[0][YRbF][r845] - YKHO.coords[1][YRbF][r845]\n jlSq[r845] = YKHO.coords[2][YRbF][r845] - ... | [
"0.6791165",
"0.6751885",
"0.65290165",
"0.6177903",
"0.6123919",
"0.5932641",
"0.59135276",
"0.5881594",
"0.58380157",
"0.58076257",
"0.58018655",
"0.57329124",
"0.57306504",
"0.5722886",
"0.57196635",
"0.56634337",
"0.56587243",
"0.56467223",
"0.56429946",
"0.5636509",
"0.5... | 0.7517809 | 0 |
Uses GroupNorm implementation with group=1 for speed. | def FIMM(YKHO, Qi3c: int, SGf8: float=1e-12):
super().__init__()
YKHO.layer_norm = ht2j.nn.GroupNorm(1, num_channels=Qi3c, eps=SGf8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcN8(g4y1, uOe2=32, jDK_=-1, SGf8=1e-05, **B2fa):\n KLrp(g4y1, 3)\n Ltpw = AmRs(locals())\n hlel = llWB.CreateOperator(nout=1, op_type='FusedGroupNorm', **Ltpw)\n if g4y1[0].shape is not None:\n hlel.shape = g4y1[0].shape[:]\n return hlel",
"def CkYf(tpio):\n return U78l.GroupNorm(mi... | [
"0.70870745",
"0.70621175",
"0.69375235",
"0.69198704",
"0.6759665",
"0.67297244",
"0.66484654",
"0.63209194",
"0.63123316",
"0.63085264",
"0.6229885",
"0.6226903",
"0.6173167",
"0.6163444",
"0.61417896",
"0.613284",
"0.6088851",
"0.6061234",
"0.60604495",
"0.6057334",
"0.605... | 0.0 | -1 |
Prepares a VpcConfig dict containing keys 'Subnets' and 'SecurityGroupIds'. This is the dict format expected by SageMaker CreateTrainingJob and CreateModel APIs. | def MNRr(Npkd, TaQy):
if Npkd is None or TaQy is None:
return None
return {Qw9j: Npkd, wIza: TaQy} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO, iWGg):\n maxY = sorted([WKvO['size'] for WKvO in iWGg.values()])\n u_n0 = KDI4(YKHO.evpc.cidr_block, maxY)\n ofls = YKHO.evpc.azones\n Npkd = {}\n for zNig, yf3m in zip(maxY, u_n0):\n Npkd.setdefault(zNig, []).append(yf3m)\n for mWFP, gAeH in iWGg.items():\n KgfE = '{... | [
"0.6380829",
"0.623176",
"0.5802006",
"0.5628274",
"0.55877733",
"0.54090804",
"0.54090804",
"0.5282036",
"0.5274933",
"0.5267924",
"0.52545184",
"0.5250066",
"0.5158646",
"0.5140697",
"0.5099275",
"0.50725394",
"0.5069083",
"0.505563",
"0.5042624",
"0.50335616",
"0.5018733",... | 0.47503805 | 62 |
Method to calculate the windspeed | def ospg(bOBl):
return (bOBl['uwind'] ** 2 + bOBl['vwind'] ** 2).apply(oyIN.sqrt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TYz5(YKHO):\n raise NotImplementedError",
"def xhJw(YKHO):\n return YKHO.windspeed",
"def TYz5(YKHO):\n return YKHO._wind",
"def TYz5(YKHO):\n return round(YKHO.get_wind_speed_average())",
"def TYz5(YKHO) -> float:\n return YKHO._device.windSpeed",
"def TYz5(YKHO):\n return None",
... | [
"0.85415035",
"0.8180094",
"0.81401813",
"0.8086988",
"0.80852157",
"0.80834144",
"0.8041037",
"0.7924386",
"0.78737384",
"0.76007414",
"0.75294596",
"0.7501337",
"0.74982744",
"0.7398222",
"0.7291323",
"0.72858465",
"0.725166",
"0.725166",
"0.7107599",
"0.7093375",
"0.698265... | 0.78182715 | 9 |
Create or update an Entity. | def LvpJ(YKHO, mWFP, g2g3=None, yIVm=None, som_=None, lbi2=None, I8b3=qz7o):
if yIVm is not None and (not isinstance(yIVm, dict)):
tf1m = 'unsupported metadata argument provided "{arg}" ({arg_type}), required type: dict"'
raise Bx6I.ParamValidationError(tf1m.format(arg=yIVm, arg_type=type(yIVm)))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VHtg(YKHO, LEXu: Union[Job, BaseNode, Model, Environment, Component, Datastore], **B2fa) -> uLKX[W7aK, wOed, zAej, C1zu, h8F1]:\n return yZoE(LEXu, YKHO._operation_container.all_operations, **B2fa)",
"def VHtg(YKHO, nPrm: C) -> Kt_s:\n LEXu = nPrm.__class__\n Z_YN = 'create' in nPrm.__class__.__name... | [
"0.6850771",
"0.6768282",
"0.6604659",
"0.65506834",
"0.654699",
"0.6358494",
"0.63360304",
"0.6274976",
"0.6255612",
"0.6250086",
"0.6175904",
"0.6164536",
"0.6154996",
"0.6133153",
"0.61162144",
"0.6111556",
"0.61103356",
"0.60989153",
"0.60780865",
"0.6057874",
"0.6013431"... | 0.7121483 | 0 |
Update an existing entity. | def UMiR(YKHO, g2g3, mWFP=None, yIVm=None, som_=None, lbi2=None, I8b3=qz7o):
if yIVm is not None and (not isinstance(yIVm, dict)):
tf1m = 'unsupported metadata argument provided "{arg}" ({arg_type}), required type: dict"'
raise Bx6I.ParamValidationError(tf1m.format(arg=yIVm, arg_type=type(yIVm)))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMiR(YKHO, LEXu):\n raise NotImplementedError",
"def QdZT(YKHO, LEXu):\n id = YKHO._identify(LEXu)\n YKHO._unindex(YKHO.get(id))\n YKHO.db.update(YKHO.table).set(entity=qQXR.dumps(LEXu)).where(id=id)\n YKHO._index(LEXu)\n YKHO.db.commit()",
"def QdZT(YKHO):\n VT3I = RZup(YKHO)\n YKH... | [
"0.82681406",
"0.786983",
"0.7470806",
"0.7311373",
"0.71649617",
"0.7010968",
"0.6998855",
"0.696643",
"0.69514006",
"0.6877833",
"0.6871844",
"0.6721718",
"0.67098045",
"0.66800785",
"0.66800785",
"0.66800785",
"0.66800785",
"0.66800785",
"0.66768223",
"0.6673687",
"0.66711... | 0.66468716 | 27 |
Generate a signed ID (OIDC) token. | def gNpX(YKHO, mWFP, I8b3=qz7o):
QovZ = BfDw.format_url('/v1/{mount_point}/oidc/token/{name}', mount_point=I8b3, name=mWFP)
return YKHO._adapter.get(url=QovZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQUb():\n return str(qxeD.uuid4())",
"def LQUb():\n return qxeD.uuid4().hex",
"def LQUb(YKHO, h9HD=None, o8Kj=None):\n if h9HD is None:\n h9HD = 600\n return YKHO.authtokens.new(h9HD, attrs=o8Kj)['id']",
"def Qrb7(YKHO):\n return LQUb(42)",
"def TQGb():\n return f'TOKEN_{FXSn.t... | [
"0.6821048",
"0.68043905",
"0.6743394",
"0.6721441",
"0.67000675",
"0.66821444",
"0.66362846",
"0.6629467",
"0.655754",
"0.6411206",
"0.63345623",
"0.63345623",
"0.63345623",
"0.63345623",
"0.63345623",
"0.633105",
"0.6314393",
"0.63079655",
"0.6283745",
"0.6282823",
"0.62783... | 0.6923417 | 0 |
Cases where both child exists, need to find the minimum val node by going down the left child of left tree | def Y3jM(YKHO, Q6kx):
ZbOB = Q6kx
while ZbOB.left is not None:
ZbOB = ZbOB.left
return ZbOB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcNI(J_Es):\n if J_Es is None:\n return (None, None)\n if J_Es.left is None:\n return (J_Es.key, J_Es.val)\n return XcNI(J_Es.left)",
"def _VFX(YKHO, Q6kx):\n if Q6kx['left'] == None:\n return Q6kx\n else:\n return YKHO.__min(Q6kx['left'])",
"def d1Ro(YKHO):\n ... | [
"0.78809077",
"0.77717453",
"0.77546984",
"0.77046424",
"0.76445967",
"0.75911564",
"0.7538363",
"0.7511969",
"0.7502372",
"0.7418961",
"0.7404349",
"0.73825157",
"0.7305121",
"0.7252213",
"0.72341037",
"0.72304547",
"0.72262615",
"0.7195887",
"0.7095304",
"0.7085867",
"0.707... | 0.80633926 | 0 |
save JSON data to a file | def wiPd(YKHO):
with open(f'{YKHO.directory}/{YKHO.filename}', 'w') as yvT9:
qQXR.dump(YKHO.raw, yvT9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1ai(nPrm):\n nUeQ = open('data.txt', 'w')\n nUeQ.write(nPrm)\n nUeQ.close()",
"def U1ai(YKHO, nPrm):\n with open(YKHO.filename, 'w') as UXEK:\n qQXR.dump(nPrm, UXEK, indent=4)",
"def eGRE(YKHO, pmON):\n with open(pmON, 'w') as _RR0:\n qQXR.dump(YKHO.data, _RR0)",
"def znGk(Y... | [
"0.85372216",
"0.85279936",
"0.8473733",
"0.84458846",
"0.8367258",
"0.83599806",
"0.8337771",
"0.83211523",
"0.82667536",
"0.82126474",
"0.8189966",
"0.8186086",
"0.81831026",
"0.81657976",
"0.8153677",
"0.81481624",
"0.81355673",
"0.8129685",
"0.81163645",
"0.8116162",
"0.8... | 0.0 | -1 |
Build tables and model weights based on final vocabulary settings. | def n9Qk(YKHO, QdZT=False):
if not YKHO.wv.index2word:
YKHO.scale_vocab()
if YKHO.sorted_vocab and (not QdZT):
YKHO.sort_vocab()
if YKHO.hs:
YKHO.create_binary_tree()
if YKHO.negative:
YKHO.make_cum_table()
if YKHO.null_word:
GIN8, Ty9i = ('\x00', zoYt(count=1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvJg():\n global documentList, bagOfWordDictionary\n Uwi4 = fJyn.Dictionary(TWvs)\n Byby = [Uwi4.doc2bow(A97Q) for A97Q in TWvs]\n lJgm = 'POS'\n ur6a(Byby, Uwi4, lJgm)\n GRZM = fJyn.Dictionary(Wvqd)\n CVoC = [GRZM.doc2bow(l5Ny) for l5Ny in Wvqd]\n lJgm = 'BOW'\n ur6a(CVoC, GRZM, lJg... | [
"0.7325422",
"0.691697",
"0.682858",
"0.6793551",
"0.6779004",
"0.67463523",
"0.6737394",
"0.66724426",
"0.6669421",
"0.6607834",
"0.65498066",
"0.6530464",
"0.6509035",
"0.64973325",
"0.6463753",
"0.6463262",
"0.6460717",
"0.63971484",
"0.6394955",
"0.6307515",
"0.62957245",... | 0.6584159 | 10 |
Handle the start of the config flow. Called after wiffi integration has been selected in the 'add integration UI'. The user_input is set to None in this case. We will open a config flow form then. This function is also called if the form has been submitted. user_input contains a dict with the user entered values then. | async def async_step_user(YKHO, fZOT=None):
if fZOT is None:
return YKHO._async_show_form()
YKHO._async_abort_entries_match(fZOT)
try:
N5z6 = IBli(fZOT[ZcvP])
await N5z6.start_server()
await N5z6.close_server()
return YKHO.async_create_entry(title=f'Port {fZOT[ZcvP]}'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_step_user(YKHO, fZOT: Optional[Dict[str, Any]]=None):\n vzeF.debug(f'User triggered configuration flow via UI. user_input: {fZOT}')\n wvEv = kJJJ(tsGL(YKHO.hass))\n UAju: cuzp[str, str] = {}\n if YKHO._options is None:\n YKHO._options = {}\n S3vU = await n1jM(YKHO.hass, wv... | [
"0.7356702",
"0.68996954",
"0.6885103",
"0.68632203",
"0.67526704",
"0.6723281",
"0.6723281",
"0.6652599",
"0.64955384",
"0.6493932",
"0.6472726",
"0.64359623",
"0.6426202",
"0.64245105",
"0.641711",
"0.64043033",
"0.6386471",
"0.63848394",
"0.6364707",
"0.633209",
"0.6324426... | 0.629025 | 21 |
Testing ASTAR when the start and end are immediate neighbors of each other. Edge Case. | def jXkz(YKHO):
for YRbF in range(100):
with YKHO.subTest(i=YRbF):
ulfd = oyIN.array([oyIN.random.randint(1, 7), oyIN.random.randint(1, 7)])
XP5J = oyIN.random.randint(0, 1)
CcpP = oyIN.power(-1, oyIN.random.randint(1, 2)) * oyIN.array([XP5J, 1 - XP5J]) + ulfd
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wi0M(YKHO):\n YRbF, r845 = x6o3('i j')\n ROpF = (10, 10)\n yKcO = 3\n Os4s = 6\n jzdc = f_8k(name='a', shape=ROpF, dimensions=(YRbF, r845))\n pmsH = cf81(jzdc, jzdc + 1)\n khtY = uS0y(pmsH)\n khtY(i_s=yKcO, i_e=Os4s, j_s=yKcO, j_e=Os4s)\n ZHfW = oyIN.ones(ROpF, oyIN.bool)\n ZHfW[y... | [
"0.6272321",
"0.6151503",
"0.5980508",
"0.5918544",
"0.5890039",
"0.5868016",
"0.5860702",
"0.57936245",
"0.5769572",
"0.57530195",
"0.5738135",
"0.57237077",
"0.5688438",
"0.5676059",
"0.5674838",
"0.5666847",
"0.56575215",
"0.5652566",
"0.56466824",
"0.5638607",
"0.5638365"... | 0.5989851 | 2 |
Initially fills board dictionary with "None" in each position. | def NcHd(YKHO):
for WKvO in range(9):
for LVAh in range(10):
YKHO.set_filled_spaces((WKvO, LVAh), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T3Ni(YKHO):\n iBIi = dict()\n for rdlD in range(-1, _apf.NUM_OF_ROWS + 1):\n for iVRZ in range(-1, _apf.NUM_OF_COLUMNS + 1):\n iBIi[rdlD, iVRZ] = None\n return iBIi",
"def idFV():\n iBIi = dict()\n for YRbF in range(BrEt):\n for r845 in range(BrEt):\n ZMlM =... | [
"0.81808394",
"0.77470833",
"0.76208067",
"0.75003296",
"0.7497601",
"0.74511045",
"0.72988725",
"0.71639204",
"0.71011084",
"0.7057075",
"0.7041198",
"0.69907194",
"0.6967916",
"0.6967672",
"0.69553673",
"0.6936815",
"0.6933443",
"0.68954235",
"0.6886131",
"0.6836572",
"0.67... | 0.63898414 | 48 |
Removes individual targets from possible move list. Used if previously valid position is determined to be invalid. | def FG7a(YKHO, BHsk):
YKHO._possible_targets.remove(BHsk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O7Pc(YKHO):\n YKHO._possible_targets.clear()",
"def xhDO(YKHO, x6A0: List[str]) -> bool:\n if not x6A0:\n return False\n if not all((pan_ in YKHO.targets for pan_ in x6A0)):\n return False\n if sorted(set(x6A0)) != sorted(x6A0):\n return False\n if len(x6A0) == len(YKHO.ta... | [
"0.68900245",
"0.64382356",
"0.60993934",
"0.60502064",
"0.6025623",
"0.6018783",
"0.60129696",
"0.5898875",
"0.5841985",
"0.580567",
"0.5755001",
"0.57159704",
"0.5699129",
"0.56575",
"0.565656",
"0.5650228",
"0.5641254",
"0.5608362",
"0.5600181",
"0.5587502",
"0.5580186",
... | 0.7206479 | 0 |
Helper function that checks if collision has occurred. Returns False if collision detected. | def cBtv(YKHO, vP2v, oTDq, LFlW, _tIi, IjIm, ANFY, EfeR):
Oo5L = abs(ANFY[1] - EfeR[1])
BXcL = abs(ANFY[0] - EfeR[0])
if vP2v:
for oeNL in range(Oo5L - 1):
BHsk = (ANFY[0], ANFY[1] - (oeNL + 1))
DzcB = YKHO._game.check_square(BHsk)
if DzcB != None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cBtv(YKHO):\n return False",
"def cBtv(YKHO):\n raise NotImplementedError()",
"def hs4y(YKHO):\n return YKHO._hascollision",
"def bGhc(YKHO):\n if YKHO.position[0] < 13 or YKHO.position[1] < 13 or YKHO.position[0] > 829 or (YKHO.position[1] > 567):\n YKHO.hit = True\n return Tru... | [
"0.88108426",
"0.78682816",
"0.78287655",
"0.78078747",
"0.77589476",
"0.77446234",
"0.7729866",
"0.7628318",
"0.7584855",
"0.7578336",
"0.7493097",
"0.7465107",
"0.7432462",
"0.7396815",
"0.73710483",
"0.7367022",
"0.73456573",
"0.73418444",
"0.7327806",
"0.73233193",
"0.730... | 0.0 | -1 |
Helper function that checks if collision has occurred. Returns False if collision detected. | def cBtv(YKHO, CiQY, lxK0, i7xK, xGBj, aRqw, jtTB, SXs1, Nt9e, ANFY):
if CiQY or lxK0:
BHsk = (ANFY[0], ANFY[1] - 1)
if YKHO._game.check_square(BHsk) != None:
return False
if CiQY:
BHsk = (ANFY[0] + 1, ANFY[1] - 2)
if YKHO._game.check_square(BHsk) != None:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cBtv(YKHO):\n return False",
"def cBtv(YKHO):\n raise NotImplementedError()",
"def hs4y(YKHO):\n return YKHO._hascollision",
"def bGhc(YKHO):\n if YKHO.position[0] < 13 or YKHO.position[1] < 13 or YKHO.position[0] > 829 or (YKHO.position[1] > 567):\n YKHO.hit = True\n return Tru... | [
"0.8812802",
"0.78705764",
"0.78299034",
"0.78089046",
"0.7761119",
"0.77471024",
"0.77309203",
"0.7628672",
"0.75848484",
"0.7576867",
"0.7493957",
"0.7464655",
"0.7432666",
"0.73976636",
"0.73713505",
"0.7368193",
"0.73459554",
"0.7341596",
"0.7328109",
"0.7323011",
"0.7301... | 0.0 | -1 |
Helper function that checks if collision has occurred. Returns False if collision detected. | def cBtv(YKHO, CiQY, lxK0, i7xK, xGBj, aRqw, jtTB, SXs1, Nt9e, ANFY):
if CiQY or lxK0:
BHsk = (ANFY[0], ANFY[1] - 1)
if YKHO._game.check_square(BHsk) != None:
return False
return True
if i7xK or xGBj:
BHsk = (ANFY[0] + 1, ANFY[1])
if YKHO._game.check_square(BH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cBtv(YKHO):\n return False",
"def cBtv(YKHO):\n raise NotImplementedError()",
"def hs4y(YKHO):\n return YKHO._hascollision",
"def bGhc(YKHO):\n if YKHO.position[0] < 13 or YKHO.position[1] < 13 or YKHO.position[0] > 829 or (YKHO.position[1] > 567):\n YKHO.hit = True\n return Tru... | [
"0.88108426",
"0.78682816",
"0.78287655",
"0.78078747",
"0.77589476",
"0.77446234",
"0.7729866",
"0.7628318",
"0.7584855",
"0.7578336",
"0.7493097",
"0.7465107",
"0.7432462",
"0.7396815",
"0.73710483",
"0.7367022",
"0.73456573",
"0.73418444",
"0.7327806",
"0.73233193",
"0.730... | 0.6718309 | 83 |
Gets a copy instance with the same attributes. Returns | def jth9(YKHO) -> object:
jth9 = SZHv()
if YKHO.__initialized:
jth9.__width = YKHO.__width
jth9.__height = YKHO.__height
jth9.__area = YKHO.__area.copy()
jth9.__coveredArea = YKHO.__coveredArea
jth9.__layout = [[rA91[0], rA91[1], rA91[2].copy(), rA91[3]] for rA91 in YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__class__(YKHO.attributes)",
"def jth9(YKHO):\n return YKHO.__class__.new_from_obj(YKHO, copy=True)",
"def jth9(YKHO):\n Z9rn = type(YKHO)()\n Z9rn._attrs = YKHO._attrs.copy()\n return Z9rn",
"def jth9(YKHO):\n return YKHO.__class__(YKHO.getValue(recursive=Fals... | [
"0.8462108",
"0.8328599",
"0.81931907",
"0.8189002",
"0.8117031",
"0.8092772",
"0.8078024",
"0.8068544",
"0.8068544",
"0.8068544",
"0.8068544",
"0.8068544",
"0.8034866",
"0.80214524",
"0.80178756",
"0.8008092",
"0.8005266",
"0.79878545",
"0.79878545",
"0.79870707",
"0.7987070... | 0.0 | -1 |
Gets the number of the covered cells in the matrix. Returns int number of the covered cells in the matrix. Raises NotInitializedException If this method called before initialize() method | def PMF8(YKHO) -> int:
if not YKHO.__initialized:
raise M2y0('The instance used before calling initialize method')
return YKHO.__coveredArea | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def btFB(YKHO):\n return len(YKHO.cells)",
"def SjiT(YKHO):\n return YKHO.num_cells",
"def hDeO(YKHO):\n mLGw = 0\n for BHsk, qw7D in YKHO.cell_dict.items():\n if len(qw7D) > 1:\n mLGw += 1\n return mLGw",
"def ADJD(YKHO):\n XIuT = 0\n for LVAh in range(YKHO.height):\n ... | [
"0.68961",
"0.6840643",
"0.6705855",
"0.6678719",
"0.6674541",
"0.66200507",
"0.6593708",
"0.65251213",
"0.6499721",
"0.6381292",
"0.63427705",
"0.6317376",
"0.62974995",
"0.6204242",
"0.6194594",
"0.6185225",
"0.61847496",
"0.61847496",
"0.61847496",
"0.6176624",
"0.6168474"... | 0.62863475 | 13 |
Shows the survey question. | def tJx2(YKHO):
print(YKHO.question) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJx2(YKHO):\n print(bAls)",
"def tJx2(YKHO):\n print(bAls)",
"def Inv7() -> str:\n RzRl = {}\n return TvZl('survey/survey.html', **RzRl)",
"def tJx2(id):\n if id != len(cuiw['responses']):\n if len(cuiw['responses']) == len(_WCs.questions):\n Dwep('Your answers have alrea... | [
"0.7413055",
"0.7335923",
"0.72328025",
"0.7158184",
"0.7053589",
"0.6852042",
"0.6775539",
"0.6701152",
"0.6647248",
"0.6632531",
"0.6613631",
"0.6588156",
"0.65599245",
"0.65020084",
"0.64696544",
"0.6458034",
"0.6422274",
"0.64051545",
"0.63180846",
"0.6315218",
"0.6287811... | 0.7192587 | 3 |
Initialize name and cuisine type attributes. | def FIMM(YKHO, mWFP, TdJL):
YKHO.name = mWFP
YKHO.cuisine_type = TdJL
YKHO.number_served = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP, N4Ku):\n YKHO.name = mWFP\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, mWFP, N4Ku):\n YKHO.name = mWFP.title()\n YKHO.cuisine_type = N4Ku",
"def FIMM(YKHO, mWFP, TdJL):\n YKHO.name = mWFP\n YKHO.cuisine_type = TdJL",
"def FIMM(YKHO, mWFP, FKii='ice cream'):\n super()... | [
"0.79208666",
"0.7661914",
"0.736232",
"0.69226426",
"0.68656325",
"0.6807734",
"0.6761545",
"0.67554915",
"0.67554915",
"0.67554915",
"0.67554915",
"0.67157197",
"0.6715419",
"0.6659457",
"0.66355836",
"0.66090214",
"0.65814155",
"0.65794826",
"0.65794826",
"0.65794826",
"0.... | 0.6748178 | 11 |
Get center of bounding box. | def cX4W(oeNL):
o4D3 = oeNL[0, 0]
si3g = oeNL[0, 1]
ajwV = oeNL[0, 2]
skBL = oeNL[0, 3]
return oyIN.asarray([(ajwV + o4D3) / 2, (skBL + si3g) / 2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lnpr(YKHO):\n cviu = YKHO.get_bounding_box()\n return cviu.center()",
"def o9dz(YKHO):\n QOjQ = ccKF.getAttr('{}.boundingBoxMin'.format(YKHO.MAYA_STR_OBJECT))[0]\n VZti = ccKF.getAttr('{}.boundingBoxMax'.format(YKHO.MAYA_STR_OBJECT))[0]\n return (VZti[0] / 2 + QOjQ[0] / 2, VZti[1] / 2 + QOjQ[1... | [
"0.87737346",
"0.8493833",
"0.82629365",
"0.8210202",
"0.8135537",
"0.798791",
"0.7923541",
"0.7899661",
"0.7875572",
"0.78422457",
"0.78330874",
"0.7788933",
"0.7786367",
"0.77843684",
"0.7781408",
"0.7768188",
"0.7749398",
"0.77408916",
"0.7717891",
"0.77026135",
"0.7696768... | 0.0 | -1 |
Gets all hyperparameters of pipeline. | def GudW(YKHO) -> cuzp:
PNhm = YKHO.metadata_store.get_pipeline_executions(YKHO)
QjBU = {}
for tTpl in PNhm:
djsR = YKHO.metadata_store.store.get_contexts_by_execution(tTpl.id)
mknV = [tTpl for tTpl in djsR if tTpl.type_id == 3][0]
FDBB = mknV.name.split('.')[-1]
if FDBB == i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UwBq(YKHO):\n Mkmy = [getattr(YKHO, hkS8) for hkS8 in dir(YKHO) if hkS8.startswith('hyperparameter_')]\n return Mkmy",
"def UwBq(YKHO):\n Mkmy = []\n for bpHD in YKHO.kernel.hyperparameters:\n Mkmy.append(RX_N('kernel__' + bpHD.name, bpHD.value_type, bpHD.bounds, bpHD.n_elements))\n ret... | [
"0.74520487",
"0.71863145",
"0.7097061",
"0.7097061",
"0.7094049",
"0.68920577",
"0.680106",
"0.670995",
"0.66910785",
"0.66852635",
"0.66575533",
"0.65754616",
"0.6397926",
"0.63834625",
"0.6360663",
"0.63559216",
"0.63539994",
"0.6335978",
"0.6335978",
"0.63318396",
"0.6309... | 0.6664039 | 10 |
Calculate the mean of the payment for a bag of coins of dimension `n`. | def SVgC(exwG):
if exwG != int(exwG) or exwG < 1:
raise ValueError('Parameter must be a positive integer, not "%s"!' % exwG)
return (2 * exwG ** 2 + 3 * exwG + 1) / 6.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgoM(ywwl, WKvO):\n beOw = [wu2O(ywwl) for YRbF in range(WKvO)]\n return oyIN.mean(beOw)",
"def JBMS(exwG, XP5J):\n with g2zq.extradps(5):\n exwG, XP5J = fDEZ(exwG, XP5J)\n return exwG * XP5J",
"def qqgr(jzdc, exwG):\n hlel = oyIN.zeros(len(jzdc))\n for YRbF in range(len(jzdc))... | [
"0.6518537",
"0.62323487",
"0.62189585",
"0.62182164",
"0.60691166",
"0.6054188",
"0.60312045",
"0.5987715",
"0.5976509",
"0.5957823",
"0.5945392",
"0.59305006",
"0.592439",
"0.59208524",
"0.59119517",
"0.5902903",
"0.58843786",
"0.5844896",
"0.5842398",
"0.58163655",
"0.5815... | 0.75276583 | 0 |
Renders the index view. | def d6pt(QePW):
Ldyl = msfn.objects.filter(featured=True)
if pFt6(QePW):
return _1tc(QePW, 'pages/internet-explorer.html')
QpfX = {'products': Ldyl, 'body_class': 'body-index'}
return _1tc(QePW, 'pages/index.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return... | [
"0.8286406",
"0.81290036",
"0.804828",
"0.804828",
"0.8048078",
"0.79355806",
"0.7856457",
"0.7844236",
"0.78407043",
"0.78361344",
"0.7815613",
"0.7815613",
"0.7815613",
"0.7815613",
"0.7815613",
"0.7815613",
"0.7808313",
"0.77671105",
"0.7733647",
"0.7726802",
"0.7726802",
... | 0.0 | -1 |
Pick GPU if available, else CPU | def XXJM():
if ht2j.cuda.is_available:
return ht2j.device('cuda')
else:
return ht2j.device('cpu') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O71Z():\n if Sdxo():\n yIrk = QHwK()\n print(f'Torch is using GPU: {ueYb(yIrk)}')\n else:\n print('Cuda is not available. Torch is using CPU')",
"def VGCm(YKHO):\n YKHO.use_gpu = False",
"def vxYq():\n return ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')",
"d... | [
"0.7947973",
"0.75578064",
"0.74485654",
"0.74095625",
"0.7316703",
"0.73146325",
"0.723696",
"0.7225468",
"0.7219934",
"0.7200233",
"0.7191617",
"0.7146489",
"0.7130445",
"0.7115081",
"0.7114107",
"0.708303",
"0.70411146",
"0.703197",
"0.6994349",
"0.69885767",
"0.69885767",... | 0.6715549 | 42 |
return a full filepath to the test data directory | def apKH(Ux0P):
return Hy7s.path.abspath(Hy7s.path.join(gCuF.ORIG_BASE_PATH, Ux0P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HFlV():\n wd8X = Hy7s.dirname(xAKo)\n return Hy7s.path_join(wd8X, 'data')",
"def ShE3():\n l_jd = Hy7s.path.dirname(xAKo)\n oGGu = 'resources/'\n jKql = Hy7s.path.join(l_jd, oGGu)\n return jKql",
"def WLhE() -> GkAb:\n return wquX",
"def JA7F():\n return KQwf",
"def ci8m():\n ... | [
"0.89290184",
"0.8884744",
"0.8673309",
"0.86540085",
"0.8520506",
"0.8465968",
"0.8399039",
"0.83833563",
"0.8346251",
"0.8345946",
"0.83343446",
"0.83085185",
"0.8296755",
"0.8243742",
"0.8221716",
"0.8194604",
"0.81865513",
"0.81013376",
"0.8081945",
"0.80639637",
"0.80113... | 0.0 | -1 |
Only a club officer may respond to a question. An answer may not be set to null after it has been answered. | def OyZr(YKHO, BWXx):
if BWXx is None:
if YKHO.instance and YKHO.instance.answer is not None:
raise IyFz.ValidationError('You are not allowed to unanswer a question! ' + 'You can change the answer text instead.')
return BWXx
BWXx = x0SS(WxwX.linkify(BWXx))
KekI = eY7X.objects.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T_5I(YKHO, xq0S, bAls):\n return",
"def XOpk(YKHO, zAlC):\n return None",
"def RJpj(YKHO):\n CBIr, VsZH = iCKn(return_json=False, return_plain_password=True)\n bReh = II0Q(question_text='Some question.', days=30, created_by=CBIr)\n UtdY = ZFO7(choice_text='Some choice', question=bReh)\n v... | [
"0.6258384",
"0.61215484",
"0.6079143",
"0.6042452",
"0.5999487",
"0.59379584",
"0.59378994",
"0.59375113",
"0.5846688",
"0.5836097",
"0.5818511",
"0.57996684",
"0.5799118",
"0.576735",
"0.5757774",
"0.5751581",
"0.57204765",
"0.56895405",
"0.5660966",
"0.5636516",
"0.5627973... | 0.6003844 | 4 |
Return the concatenated first and last name of the applicant | def W0tD(YKHO, YEnM):
return f'{YEnM.user.first_name} {YEnM.user.last_name}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')",
"def xpqj(YKHO):\n return ' '.join([YKHO.firstname, YKHO.lastname])",
"def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()",
"def xpqj(YKHO):\n return YKHO.first_nam... | [
"0.7836856",
"0.7745323",
"0.7737646",
"0.77323234",
"0.7726644",
"0.7708634",
"0.7667067",
"0.7632016",
"0.7628517",
"0.7615443",
"0.7578555",
"0.7568096",
"0.756111",
"0.755516",
"0.75550705",
"0.75318253",
"0.75318253",
"0.75318253",
"0.7509822",
"0.75027955",
"0.7488503",... | 0.0 | -1 |
Override to also include values for fields we add when we override init. We need to query the responses to find the appropriate response for each question | def UpuU(YKHO, KAOR):
V_D6 = {'name': YKHO.get_name(KAOR), 'email': KAOR.user.email, 'graduation_year': KAOR.user.profile.graduation_year, 'committee': YKHO.get_committee(KAOR)}
SCWY = KAOR.application
for bAls in SCWY.questions.all():
geh0 = KAOR.responses.filter(question=bAls).first()
if g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n super(LA9f, YKHO).__init__(*qIxc, **B2fa)\n yFM4 = YKHO.instance.multiplechoiceresponse_set.all()\n OAEo = YKHO.instance.freeresponseresponse_set.all()\n for bAls in YKHO.instance.response_set.exam.question_set.all():\n if bAls.is_multiple_choice:\n ge... | [
"0.74317026",
"0.7408542",
"0.73512524",
"0.73512524",
"0.73512524",
"0.70951414",
"0.70144165",
"0.66303396",
"0.6531853",
"0.6487771",
"0.6487731",
"0.6456217",
"0.64168686",
"0.63838524",
"0.6323813",
"0.63159174",
"0.6315619",
"0.6244264",
"0.6240672",
"0.6233546",
"0.619... | 0.0 | -1 |
Save JSON object to file. | def nN8w(nPrm, pmON):
with open(pmON, 'w') as eHNT:
qQXR.dump(nPrm, eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QN9E(gIsw, TLbt):\n with open(gIsw, 'w') as nUeQ:\n qQXR.dump(TLbt, nUeQ)",
"def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, hlel)",
"def U1ai(TLbt: Text, gIsw: Text) -> None:\n yr6X = qQXR.dumps(TLbt, sort_keys=True, indent=4)\n with open(gIsw, 'a+') ... | [
"0.86076736",
"0.85865194",
"0.8549213",
"0.8294071",
"0.8278399",
"0.821031",
"0.8206036",
"0.8187679",
"0.8171215",
"0.8171215",
"0.8158308",
"0.81580186",
"0.8136341",
"0.8130396",
"0.81298155",
"0.81181407",
"0.8103965",
"0.80997884",
"0.80892885",
"0.8089107",
"0.8080771... | 0.0 | -1 |
The parameter describing how many living neighbours a cell needs in order to stay alive. | def Dnwo(YKHO):
return YKHO._alive | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def abJR():\n pass",
"def BvsR(YKHO):\n return YKHO._num_neighbors",
"def BXrO(OUsw: list, _zM9: dict) -> int:\n Lvst = 0\n for AAbN in OUsw:\n if _zM9[AAbN] is not None:\n if _zM9[AAbN]['state'] == 'X':\n Lvst += 1\n return Lvst",
"def tozU(YKHO):\n return ... | [
"0.7038529",
"0.692588",
"0.692046",
"0.67105854",
"0.66489166",
"0.6614618",
"0.6573195",
"0.65658367",
"0.6518222",
"0.65104663",
"0.6499388",
"0.6474068",
"0.64630675",
"0.64387715",
"0.64229345",
"0.6394361",
"0.6375654",
"0.63717574",
"0.63691247",
"0.636666",
"0.6354536... | 0.0 | -1 |
Get annealing object from annealing config. | def NMoC(_Fei, K0do):
if not _Fei.schedule:
return None
elif _Fei.schedule == 'plateau':
return hc6Z.ReduceLROnPlateau(optimizer=K0do, mode='max', factor=_Fei.factor, patience=_Fei.patience)
else:
raise ValueError(f'Unexpected lr_schedule: {_Fei.schedule}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dhbr(YKHO):\n return YKHO.config",
"def tgzD():\n return PSrQ()",
"def zHP6(YKHO):\n D40Q = uZz8.ConfigManager()\n D40Q.halo_api_key = 'ABC123'\n D40Q.halo_api_secret_key = 'DEF456'\n return D40Q",
"def jxrn() -> YIIj:\n return YIIj()",
"def WmM4(Emd4, GPtr: PretrainedConfig) -> 'O... | [
"0.6085395",
"0.603055",
"0.5748112",
"0.55961204",
"0.5572822",
"0.5518652",
"0.549653",
"0.5476033",
"0.5466533",
"0.54119635",
"0.54118186",
"0.5399714",
"0.5399714",
"0.5399714",
"0.5399714",
"0.5399714",
"0.5399714",
"0.5399714",
"0.5399714",
"0.5399714",
"0.5399714",
... | 0.0 | -1 |
Creates initial variational parameters. | def Tg89(H5ew, ROpF, C3ST):
KneB = oLG2.ones(ROpF, oLG2.float32)
QKMd = C3ST.init(H5ew, KneB)['params']
return QKMd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UcWp(YKHO):\n SGPK = oyIN.zeros(shape=YKHO.num_params, dtype='f8')\n SGPK[YKHO.bi:YKHO.bj] = YKHO.bs_init\n SGPK[YKHO.ci:YKHO.cj] = YKHO.cs_init\n SGPK[YKHO.ti] = YKHO.tau_init\n return SGPK",
"def UMh3(YKHO, MkKh=10):\n YKHO.alpha = oyIN.ones(YKHO.K) * MkKh\n YKHO.means = 2 * oyIN.rando... | [
"0.7231708",
"0.7198148",
"0.7149084",
"0.7115547",
"0.7105552",
"0.7058665",
"0.70567316",
"0.70453507",
"0.70386386",
"0.69580334",
"0.6899489",
"0.6899489",
"0.68786407",
"0.6840867",
"0.6816794",
"0.6816794",
"0.6808379",
"0.68025666",
"0.68015814",
"0.680061",
"0.680061"... | 0.0 | -1 |
Creates and saves a User with a given email and password. | def xWi2(YKHO, jTXt, ksfB, WJxI, qMrd, **wdCM):
wzkt = rIAI.now()
if not YKHO.model.USERNAME_FIELD:
raise ValueError('User model must have set USERNAME_FIELD')
Ilxn = wdCM.get(YKHO.model.USERNAME_FIELD)
if not Ilxn:
raise ValueError(("User's %s must be set", YKHO.model.USERNAME_FIELD))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def lYUQ(YKHO, D3lj, jTXt, **wdCM):\n print('\\n\\nCREATING USER HERE')\n ... | [
"0.87197226",
"0.84558815",
"0.8438791",
"0.8435237",
"0.841885",
"0.84166986",
"0.8413887",
"0.84057635",
"0.83967656",
"0.8388154",
"0.8387009",
"0.8384952",
"0.8384952",
"0.837837",
"0.8377283",
"0.8372283",
"0.8372283",
"0.8372283",
"0.83691996",
"0.8364916",
"0.8361757",... | 0.0 | -1 |
Returns the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM",
"def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()",
"def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl... | [
"0.82872856",
"0.8179012",
"0.81130326",
"0.80760396",
"0.8034134",
"0.8032392",
"0.8030516",
"0.80072623",
"0.8006718",
"0.8005418",
"0.8000916",
"0.7995176",
"0.79901665",
"0.79793483",
"0.79790914",
"0.79603624",
"0.7952844",
"0.7944558",
"0.7944558",
"0.79419315",
"0.7941... | 0.77470917 | 64 |
Creates a context with an open SQLAlchemy session. | def ouvA(h8Lu=opZS):
eHpk = y2U9(h8Lu, convert_unicode=True)
UzPC = eHpk.connect()
ouvA = oCsa(FJ3D(autocommit=False, autoflush=True, bind=eHpk))
yield ouvA
ouvA.close()
UzPC.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pKx9():\n global engine, Session\n cuiw = DMju()\n try:\n yield cuiw\n cuiw.commit()\n except:\n cuiw.rollback()\n raise\n finally:\n cuiw.close()",
"def gte4():\n eQSh.up('alchemy', 'sessions')\n cuiw = DMju()\n return cuiw",
"def cuiw(**B2fa) -> ... | [
"0.73803437",
"0.7154885",
"0.70587426",
"0.69181925",
"0.6911418",
"0.67794436",
"0.6776355",
"0.67752916",
"0.6772102",
"0.6768303",
"0.67569965",
"0.6727672",
"0.6692009",
"0.66813016",
"0.66703653",
"0.6667585",
"0.6644956",
"0.66417503",
"0.6640936",
"0.6629732",
"0.6623... | 0.64714944 | 40 |
Tests the insertion of a `Intervention` record via the `iodi_intervention` method of the `DalClinicalTrials` class and its retrieval via the `get` method. | def s1ko(YKHO):
WBAH = YKHO.dal.iodi_intervention(intervention_type=lPLI.DEVICE, name='Whole body hyperthermia unit', description=None)
YKHO.assertEqual(WBAH, 1)
YEnM = YKHO.dal.get(vNXL, WBAH)
YKHO.assertEqual(YEnM.intervention_id, 1)
YKHO.assertEqual(YEnM.intervention_type, lPLI.DEVICE)
YKHO.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y8Zz(YKHO):\n WBAH = YKHO.dal.iodi_intervention(intervention_type=lPLI.DEVICE, name='Whole body hyperthermia unit', description=None)\n YKHO.assertEqual(WBAH, 1)\n YKHO.dal.delete(vNXL, WBAH)\n YEnM = YKHO.dal.get(vNXL, WBAH)\n YKHO.assertIsNone(YEnM)",
"def agPe(YKHO):\n WBAH = YKHO.dal.io... | [
"0.6679897",
"0.65665567",
"0.64031756",
"0.614604",
"0.59853375",
"0.5652199",
"0.54416543",
"0.5415032",
"0.5403255",
"0.5401614",
"0.53509796",
"0.52955556",
"0.52839893",
"0.52655005",
"0.52317125",
"0.5229041",
"0.51997983",
"0.5194748",
"0.51882863",
"0.51839423",
"0.51... | 0.761451 | 0 |
Get total number of hits. | def wjRY(YKHO):
return YKHO._results.total | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wjRY(YKHO):\n if YKHO._response:\n return YKHO._response.json()['hitCount']",
"def Vl35(YKHO):\n return YKHO.client.get('total_hit')",
"def FKH2(YKHO):\n return YKHO.numhits",
"def wjRY(YKHO):\n return YKHO.result['hits']['total']",
"def yht1(YKHO) -> int:\n return YKHO._hits",
... | [
"0.8409598",
"0.80275524",
"0.8025774",
"0.801677",
"0.79464024",
"0.77417046",
"0.76942676",
"0.76414084",
"0.76391476",
"0.7541519",
"0.75347394",
"0.7524841",
"0.7510323",
"0.7510323",
"0.7480179",
"0.7476753",
"0.74484813",
"0.74371797",
"0.743553",
"0.7388136",
"0.737841... | 0.7039848 | 50 |
Create and return a new user. | def lYUQ(D3lj, c9ua, zp3f, NtEF, jTXt, faRY, oZKl, j5sA, heLZ):
CBIr = mv1M(email=D3lj, first_name=c9ua, last_name=zp3f, username=NtEF, password=jTXt, join_date=faRY, website=oZKl, city=j5sA, pronouns=heLZ)
NCls.session.add(CBIr)
NCls.session.commit()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(D3lj, jTXt):\n Q5YQ = mv1M(D3lj, jTXt)\n return Q5YQ",
"def lYUQ(YKHO):\n return egNl().objects.create_user(YKHO.user_email, YKHO.user_password)",
"def lYUQ():\n nPrm = QePW.get_json()\n return CfQI(nPrm)",
"def Ss1U():\n CBIr = mv1M.objects.get_or_create(username='john', first_nam... | [
"0.8400247",
"0.8339993",
"0.8324968",
"0.82426304",
"0.82285994",
"0.81801134",
"0.8161598",
"0.81462926",
"0.8144961",
"0.81275487",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81241375",
"0.811842",
"0.8108549",
"0.8094399",
"0.80879855",
"0.80... | 0.0 | -1 |
Return a user given an email address. | def CYTf(D3lj):
return mv1M.query.filter(mv1M.email == D3lj).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lN4b():\n return mv1M.query.filter(mv1M.email == D3lj).first()",
"def CYTf(D3lj, QePW=None):\n return lCqJ(email=D3lj, request=QePW)",
"def CYTf(D3lj):\n xDcj = 'SELECT * FROM users WHERE email=%s'\n ZfUD, QoB4 = _dsm(xDcj, (D3lj,))\n if ZfUD is None:\n return None\n CBIr = dTxi([Z... | [
"0.8773317",
"0.8592891",
"0.8572826",
"0.8530685",
"0.84776026",
"0.8463806",
"0.8456533",
"0.8456533",
"0.8426086",
"0.8419031",
"0.841863",
"0.8411765",
"0.84076416",
"0.8402506",
"0.8396243",
"0.8374064",
"0.8350953",
"0.83484143",
"0.83484143",
"0.83484143",
"0.833052",
... | 0.8333994 | 21 |
Return user given their ID | def bt8D(uJjO):
return mv1M.query.filter(mv1M.user_id == uJjO).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PM_C():\n return mv1M.quey.filter(mv1M.user_id == uJjO).first",
"def CBIr(id):\n CBIr = AGPF.get_user(id=id)\n return CBIr",
"def TKWP(uJjO):\n return xyx6.find_one({'user_id': uJjO})",
"def bt8D(id):\n return mv1M.query.get(id)",
"def bt8D(id):\n return mv1M.query.filter(mv1M.user_id... | [
"0.8397668",
"0.8391019",
"0.83252496",
"0.8284775",
"0.8258085",
"0.8250103",
"0.8250103",
"0.8214143",
"0.82091486",
"0.8207696",
"0.818899",
"0.81601113",
"0.81583655",
"0.8155147",
"0.8139967",
"0.81337243",
"0.8127198",
"0.80965066",
"0.8091736",
"0.80590564",
"0.8053326... | 0.7904696 | 33 |
Calculate the time needed to move from the current position to the targetPos position | def HOlL(YKHO, C5Bi):
return (YKHO.body.getPosition() - C5Bi).length() / YKHO.speed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m4VY(YKHO, ITS7):\n pass",
"def m4VY(YKHO, ITS7):\n pass",
"def m4VY(YKHO, ITS7):\n return g74T.pos(ITS7, YKHO.total_time) * (YKHO.target_pos - YKHO.current_pos)",
"def NdaG(YKHO, O5np, mdM9):\n wmVS = abs(O5np - YKHO.last_known_x) / YKHO.motor_speed_x\n rIH8 = abs(mdM9 - YKHO.last_known_y... | [
"0.706826",
"0.706826",
"0.6975307",
"0.6894106",
"0.6797636",
"0.6675545",
"0.6652584",
"0.663876",
"0.66179204",
"0.6591553",
"0.6539489",
"0.6539489",
"0.6539489",
"0.6408175",
"0.6376293",
"0.63169163",
"0.6308293",
"0.61823213",
"0.61776364",
"0.6174385",
"0.61519355",
... | 0.87105113 | 0 |
Gets the about of this OrganizationUser. | def vsuQ(YKHO) -> str:
return YKHO._about | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ESz5(YKHO):\n return YKHO._get('users/@me')",
"def vsuQ(YKHO):\n return YKHO._about",
"def AmPw(YKHO) -> GaXD:\n return YKHO.__personal_info",
"def H_wZ(YKHO, NtEF):\n try:\n nPrm = YKHO.reddit.get('user/{}/about.json'.format(NtEF))\n _EYN, L3FO, _sRS, WTmn, wZ3b, obDU, fp1n = (... | [
"0.7047966",
"0.69525576",
"0.69130117",
"0.6892586",
"0.6702775",
"0.6693912",
"0.66123873",
"0.65783536",
"0.6570325",
"0.6552335",
"0.6379959",
"0.6379959",
"0.637987",
"0.637987",
"0.637987",
"0.637987",
"0.6344123",
"0.63234216",
"0.63192505",
"0.6270103",
"0.6231794",
... | 0.6585914 | 7 |
Gets the zip_code of this OrganizationUser. | def jLqg(YKHO) -> int:
return YKHO._zip_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jLqg(YKHO):\n return YKHO._zip_code",
"def jLqg(YKHO):\n return YKHO._zip_code",
"def jLqg(YKHO):\n return YKHO._zip_code",
"def DD6W(YKHO):\n return YKHO._zipcode",
"def jLqg(YKHO: object) -> str:\n return YKHO.__zip_code",
"def jLqg(YKHO):\n return str(tuKI.randint(10000, 99999))"... | [
"0.7703856",
"0.7703856",
"0.7703856",
"0.7687056",
"0.75400347",
"0.66298157",
"0.6617059",
"0.65927744",
"0.65618145",
"0.65618145",
"0.65618145",
"0.65618145",
"0.64141136",
"0.64136076",
"0.6401708",
"0.637977",
"0.62717927",
"0.6176513",
"0.61721253",
"0.6102569",
"0.608... | 0.76466537 | 4 |
Gets the contact_phone of this OrganizationUser. | def hkQl(YKHO) -> str:
return YKHO._contact_phone | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ESYf(YKHO):\n return YKHO.__phone_number",
"def FlVu(YKHO):\n return YKHO.phone",
"def FlVu(YKHO):\n bWtk = getattr(YKHO, YKHO.PHONE_FIELD)\n if not bWtk:\n return ''\n return bWtk",
"def VGNJ(YKHO):\n return YKHO.__phone_number",
"def JSoq(YKHO):\n return YKHO._phone_number... | [
"0.7078674",
"0.6951126",
"0.69227856",
"0.69046515",
"0.685586",
"0.685586",
"0.685586",
"0.685586",
"0.685586",
"0.685586",
"0.68452024",
"0.67695695",
"0.67695695",
"0.67695695",
"0.67695695",
"0.67695695",
"0.6763463",
"0.6763463",
"0.6763463",
"0.6763463",
"0.6763463",
... | 0.7777742 | 0 |
Gets the contact_email of this OrganizationUser. | def LpCf(YKHO) -> str:
return YKHO._contact_email | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LpCf(YKHO):\n return YKHO._contact_email",
"def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()",
"def aimK(YKHO):\n if YKHO.contact is None:\n return YKHO.contact_extra\n return YKHO.contact.email",
"def RC0X(YKHO):\n if YKHO.email == '':\n Y... | [
"0.7760758",
"0.74474716",
"0.7427468",
"0.72523224",
"0.7212485",
"0.7173637",
"0.70540184",
"0.7001998",
"0.6940012",
"0.6931434",
"0.68697655",
"0.6838856",
"0.6781673",
"0.6741609",
"0.6741609",
"0.6741609",
"0.67318594",
"0.67318594",
"0.67318594",
"0.67305857",
"0.66971... | 0.76248574 | 1 |
Sets the contact_email of this OrganizationUser. | def LpCf(YKHO, LpCf: str):
if LpCf is None:
raise ValueError('Invalid value for `contact_email`, must not be `None`')
YKHO._contact_email = LpCf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LpCf(YKHO, LpCf):\n if LpCf is None:\n raise ValueError('Invalid value for `contact_email`, must not be `None`')\n if LpCf is not None and len(LpCf) > 254:\n raise ValueError('Invalid value for `contact_email`, length must be less than or equal to `254`')\n if LpCf is not None and len(Lp... | [
"0.7652203",
"0.75299776",
"0.75299776",
"0.6612837",
"0.6605945",
"0.6536905",
"0.65355235",
"0.64417064",
"0.6440143",
"0.6439177",
"0.6439177",
"0.6373506",
"0.62993",
"0.62993",
"0.62993",
"0.6287624",
"0.6235835",
"0.6221162",
"0.6221162",
"0.6221162",
"0.6221162",
"0.... | 0.7925296 | 0 |
Gets the web_site of this OrganizationUser. | def UFnY(YKHO) -> str:
return YKHO._web_site | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZKl(YKHO):\n return YKHO._website",
"def oZKl(YKHO):\n return YKHO._website",
"def oZKl(YKHO):\n return YKHO._website",
"def qpDA(YKHO) -> g4ur:\n return YKHO._site",
"def oZKl(YKHO) -> str:\n return YKHO._website",
"def oZKl(YKHO) -> laHg.Optional[str]:\n return YKHO.data['website... | [
"0.69785565",
"0.69483674",
"0.69483674",
"0.6785363",
"0.6632231",
"0.66044843",
"0.6581346",
"0.65251565",
"0.6453084",
"0.62379813",
"0.62375754",
"0.6147623",
"0.6063927",
"0.60337114",
"0.60337114",
"0.6014284",
"0.6006748",
"0.594645",
"0.5858054",
"0.5736594",
"0.57211... | 0.7256811 | 0 |
Gets the work_sector of this OrganizationUser. | def nyUT(YKHO) -> X4eS:
return YKHO._work_sector | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nyUT(YKHO, nyUT: Sector):\n YKHO._work_sector = nyUT",
"def wbiw(YKHO):\n return pm2r.GCIOrganization.get(YKHO.profile.student_data.winner_for.to_old_key())",
"def dhOG(YKHO):\n Ylbp = K1Ym.query.filter_by(id=YKHO.workout_id)\n if Ylbp:\n return Ylbp\n raise ELJA('Workout does not exi... | [
"0.5344042",
"0.5207928",
"0.5095669",
"0.5087544",
"0.49912867",
"0.49912867",
"0.49912867",
"0.49902457",
"0.49902457",
"0.4973624",
"0.49598813",
"0.49420092",
"0.49173754",
"0.4916387",
"0.49075553",
"0.48887348",
"0.4887938",
"0.48716477",
"0.4869841",
"0.485707",
"0.484... | 0.7746913 | 0 |
Gets the user of this OrganizationUser. | def CBIr(YKHO) -> mv1M:
return YKHO._user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO):\n return YKHO.client.User.User_get().result()",
"def TKWP(YKHO):\n return mv1M.query_by_id(YKHO.user)",
"def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None",
"def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.use... | [
"0.76924455",
"0.7667293",
"0.7437446",
"0.7437446",
"0.7437446",
"0.74044895",
"0.7369111",
"0.7356258",
"0.7277469",
"0.7248167",
"0.7194346",
"0.7194346",
"0.7194346",
"0.71760386",
"0.71587586",
"0.7109989",
"0.7109989",
"0.7092785",
"0.7083196",
"0.7076843",
"0.7071815",... | 0.7043486 | 22 |
__get_integer_nominal_attribute_representation Utility function, to determine a nominal index when coded in onehot fashion. The nominal_index uses as reference the number of nominal attributes plus the number of numerical attributes. | def v7uC(YKHO, Bubl=None, aklI=None):
ZSml = YKHO.n_num_features + (Bubl - YKHO.n_num_features) * YKHO.n_categories_per_cat_feature
for YRbF in range(YKHO.n_categories_per_cat_feature):
if aklI[int(ZSml)] == 1:
return YRbF
ZSml += 1
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SLij(YKHO):\n raise NotImplementedError",
"def yCqp(RJQy):\n FiPM = oyIN.array(RJQy)\n vzTG = oyIN.zeros((FiPM.size, FiPM.max() + 1))\n vzTG[oyIN.arange(FiPM.size), FiPM] = 1\n vzTG = vzTG.astype(oyIN.uint)\n return vzTG",
"def UPru(FGW3, Ybg9, sOT8=-1):\n if FGW3 == sOT8:\n ret... | [
"0.641511",
"0.63163054",
"0.5945606",
"0.59025204",
"0.58082473",
"0.57986367",
"0.57575387",
"0.57507324",
"0.5732096",
"0.57283705",
"0.571939",
"0.56794167",
"0.5669564",
"0.5658118",
"0.56568956",
"0.56115603",
"0.5610402",
"0.56079745",
"0.5583949",
"0.55822474",
"0.558... | 0.84558976 | 0 |
switch all LEDs to right status | def rw2S(YKHO):
YKHO.__switch_led(0, YKHO.__receiving)
YKHO.__switch_led(1, YKHO.__queue)
YKHO.__switch_led(2, YKHO.__recording) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gg3Q(YKHO):\n vSod = [YKHO.temperature_status, YKHO.humidity_status, YKHO.soil_status, YKHO.light_status]\n for jGRS in vSod:\n OfK8 = YKHO.status_colours[jGRS]\n YKHO.turn_leds_on(OfK8)\n N5MO(2)\n YKHO.turn_leds_off(OfK8)\n N5MO(0.1)",
"def SCq0():\n F8uC.blue_le... | [
"0.73663414",
"0.72714514",
"0.7154544",
"0.71198875",
"0.7110592",
"0.70999974",
"0.70788383",
"0.70324266",
"0.69801986",
"0.6951565",
"0.6922487",
"0.6887316",
"0.6884091",
"0.68781954",
"0.6871798",
"0.686124",
"0.6853413",
"0.68447727",
"0.6840939",
"0.68372935",
"0.6828... | 0.7235816 | 2 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.6334155 | 77 |
Has an invalid number of resolutions. | def vLNT(YKHO):
yv6U = ['input', 'nonregression', 'gdal_fuzzer_unchecked_numresolutions.jp2']
IUlj = QfyG('/'.join(yv6U))
njyT = ZbWC.compile('Invalid\\snumber\\sof\\sresolutions\\s\n \\(\\d+\\)\\.', ZbWC.VERBOSE)
with YKHO.assertWarnsRegex(UserWarning, njyT):
ADqa(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wayL(YKHO):\n WJuo = YKHO._frame_manager.ComputeResolution()\n ITS7.sleep(YKHO._DELAY_RESOLUTION_PROBE)\n r7Cm = YKHO._frame_manager.ComputeResolution()\n return WJuo == r7Cm and 0 not in WJuo",
"def Fz8m(YKHO):\n for Ty9i in YKHO.tunnel_dimensions.values():\n if Ty9i <= 0:\n ... | [
"0.6952885",
"0.6662141",
"0.6592947",
"0.6498311",
"0.6006741",
"0.5944002",
"0.59400237",
"0.5876893",
"0.58699256",
"0.58635324",
"0.58329755",
"0.5815544",
"0.57570744",
"0.5722125",
"0.5716861",
"0.57052344",
"0.5688887",
"0.56806284",
"0.5679396",
"0.56768847",
"0.56639... | 0.0 | -1 |
Clone(itkGradientMagnitudeImageFilterIF2IF2 self) > itkGradientMagnitudeImageFilterIF2IF2_Pointer | def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterIF2IF2_Pointer':
return R1N2.itkGradientMagnitudeImageFilterIF2IF2_Clone(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterIUC2IUC2_Pointer':\n return R1N2.itkGradientMagnitudeImageFilterIUC2IUC2_Clone(YKHO)",
"def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterISS2ISS2_Pointer':\n return R1N2.itkGradientMagnitudeImageFilterISS2ISS2_Clone(YKHO)",
"def B29l(YKHO) -> 'itkGradien... | [
"0.88524216",
"0.88034105",
"0.8246758",
"0.7802448",
"0.7773198",
"0.77561617",
"0.7748098",
"0.77256066",
"0.76910245",
"0.76723933",
"0.76682395",
"0.76675963",
"0.7665646",
"0.76569",
"0.7644178",
"0.76344645",
"0.7534455",
"0.74448675",
"0.7432831",
"0.7410593",
"0.74093... | 0.9354714 | 0 |
cast(itkLightObject obj) > itkGradientMagnitudeImageFilterIF2IF2 | def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF2IF2 *':
return R1N2.itkGradientMagnitudeImageFilterIF2IF2_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ClG5(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF2IF2 *':\n return R1N2.itkGradientMagnitudeImageFilterIF2IF2_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterISS2ISS2 *':\n return R1N2.itkGradientMagnitudeImageFilterISS2ISS2_cast(YEnM)",
"def YWvJ(YE... | [
"0.8748683",
"0.8076263",
"0.8073713",
"0.8029975",
"0.7976913",
"0.7808838",
"0.7780068",
"0.7766393",
"0.7730872",
"0.7684596",
"0.7659572",
"0.7659212",
"0.7623435",
"0.76079535",
"0.7597807",
"0.75458735",
"0.75219077",
"0.75080794",
"0.74943256",
"0.7489862",
"0.74890435... | 0.865005 | 1 |
New() > itkGradientMagnitudeImageFilterIF2IF2 Create a new object of the class itkGradientMagnitudeImageFilterIF2IF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named ... | def oW_4(*qIxc, **PECO):
YEnM = Vcli.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = w_cf.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = urah.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.795207",
"0.76539755",
"0.74706894",
"0.7438129",
"0.74069804",
"0.7336019",
"0.72954094",
"0.72853094",
"0.72668934",
"0.72643584",
"0.72643584",
"0.725632",
"0.7227026",
"0.7216078",
"0.7210679",
"0.7209625",
"0.7184497",
"0.7184459",
"0.71771777",
"0.71670204",
"0.71453... | 0.82160294 | 0 |
itkGradientMagnitudeImageFilterIF2IF2_cast(itkLightObject obj) > itkGradientMagnitudeImageFilterIF2IF2 | def ClG5(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF2IF2 *':
return R1N2.itkGradientMagnitudeImageFilterIF2IF2_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF2IF2 *':\n return R1N2.itkGradientMagnitudeImageFilterIF2IF2_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIUC2IUC2 *':\n return R1N2.itkGradientMagnitudeImageFilterIUC2IUC2_cast(YEnM)",
"def QJ9W(YE... | [
"0.9242692",
"0.865158",
"0.8645967",
"0.86244875",
"0.8592246",
"0.84089386",
"0.8327625",
"0.8100961",
"0.8091562",
"0.8071895",
"0.80690825",
"0.80676997",
"0.80055165",
"0.7999446",
"0.7980129",
"0.79775584",
"0.79677033",
"0.7871166",
"0.7859294",
"0.7844739",
"0.7843146... | 0.9416846 | 0 |
Clone(itkGradientMagnitudeImageFilterIF3IF3 self) > itkGradientMagnitudeImageFilterIF3IF3_Pointer | def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterIF3IF3_Pointer':
return R1N2.itkGradientMagnitudeImageFilterIF3IF3_Clone(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterISS3ISS3_Pointer':\n return R1N2.itkGradientMagnitudeImageFilterISS3ISS3_Clone(YKHO)",
"def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterIUC3IUC3_Pointer':\n return R1N2.itkGradientMagnitudeImageFilterIUC3IUC3_Clone(YKHO)",
"def B29l(YKHO) -> 'itkGradien... | [
"0.90088725",
"0.90026236",
"0.86301684",
"0.79241616",
"0.78534776",
"0.7847165",
"0.7841181",
"0.7816173",
"0.78137773",
"0.7796311",
"0.7791463",
"0.7776673",
"0.77499276",
"0.77202076",
"0.7700415",
"0.7690707",
"0.76647055",
"0.7609927",
"0.76018405",
"0.75825113",
"0.75... | 0.9327309 | 0 |
cast(itkLightObject obj) > itkGradientMagnitudeImageFilterIF3IF3 | def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF3IF3 *':
return R1N2.itkGradientMagnitudeImageFilterIF3IF3_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JEXs(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF3IF3 *':\n return R1N2.itkGradientMagnitudeImageFilterIF3IF3_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterISS3ISS3 *':\n return R1N2.itkGradientMagnitudeImageFilterISS3ISS3_cast(YEnM)",
"def yebB(YE... | [
"0.8695676",
"0.83779824",
"0.8374271",
"0.8284751",
"0.8178695",
"0.81653345",
"0.807836",
"0.8051474",
"0.79922336",
"0.77659273",
"0.7697113",
"0.7690426",
"0.7650961",
"0.7625151",
"0.7592232",
"0.75647783",
"0.75501776",
"0.75465006",
"0.75401545",
"0.75233674",
"0.75013... | 0.8613751 | 1 |
New() > itkGradientMagnitudeImageFilterIF3IF3 Create a new object of the class itkGradientMagnitudeImageFilterIF3IF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named ... | def oW_4(*qIxc, **PECO):
YEnM = jrWd.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = cMd5.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = GZmW.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7820353",
"0.77461624",
"0.7604166",
"0.7564744",
"0.75600666",
"0.75264895",
"0.7518925",
"0.7483713",
"0.746953",
"0.7467315",
"0.74578303",
"0.743911",
"0.743911",
"0.73975176",
"0.7388751",
"0.7378143",
"0.735937",
"0.7357575",
"0.7357461",
"0.7333353",
"0.7324293",
... | 0.81743145 | 0 |
itkGradientMagnitudeImageFilterIF3IF3_cast(itkLightObject obj) > itkGradientMagnitudeImageFilterIF3IF3 | def JEXs(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF3IF3 *':
return R1N2.itkGradientMagnitudeImageFilterIF3IF3_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF3IF3 *':\n return R1N2.itkGradientMagnitudeImageFilterIF3IF3_cast(YEnM)",
"def yebB(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterISS3ISS3 *':\n return R1N2.itkGradientMagnitudeImageFilterISS3ISS3_cast(YEnM)",
"def YWvJ(YE... | [
"0.91699696",
"0.8990761",
"0.8869376",
"0.8845259",
"0.88129044",
"0.8773972",
"0.8703458",
"0.8130876",
"0.8116317",
"0.8095125",
"0.8078418",
"0.8064889",
"0.8044028",
"0.8029103",
"0.80120337",
"0.7996443",
"0.79650056",
"0.78665286",
"0.784937",
"0.7822754",
"0.78066117"... | 0.9356175 | 0 |
Clone(itkGradientMagnitudeImageFilterISS2ISS2 self) > itkGradientMagnitudeImageFilterISS2ISS2_Pointer | def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterISS2ISS2_Pointer':
return R1N2.itkGradientMagnitudeImageFilterISS2ISS2_Clone(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterIF2IF2_Pointer':\n return R1N2.itkGradientMagnitudeImageFilterIF2IF2_Clone(YKHO)",
"def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterIUC2IUC2_Pointer':\n return R1N2.itkGradientMagnitudeImageFilterIUC2IUC2_Clone(YKHO)",
"def B29l(YKHO) -> 'itkGradientMag... | [
"0.888828",
"0.865704",
"0.8241447",
"0.80912346",
"0.79280734",
"0.7897939",
"0.78917116",
"0.7786947",
"0.7784093",
"0.77802116",
"0.7779152",
"0.77721995",
"0.7761311",
"0.7758178",
"0.7757218",
"0.7749895",
"0.7746925",
"0.7735528",
"0.77310866",
"0.7729244",
"0.77269167"... | 0.92869467 | 0 |
cast(itkLightObject obj) > itkGradientMagnitudeImageFilterISS2ISS2 | def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterISS2ISS2 *':
return R1N2.itkGradientMagnitudeImageFilterISS2ISS2_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QJ9W(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterISS2ISS2 *':\n return R1N2.itkGradientMagnitudeImageFilterISS2ISS2_cast(YEnM)",
"def ClG5(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF2IF2 *':\n return R1N2.itkGradientMagnitudeImageFilterIF2IF2_cast(YEnM)",
"def YWvJ(YE... | [
"0.8502789",
"0.84765273",
"0.84637606",
"0.80927294",
"0.7994517",
"0.7975523",
"0.79437953",
"0.784212",
"0.7783695",
"0.7673256",
"0.7663832",
"0.76420414",
"0.7621625",
"0.76104635",
"0.75851995",
"0.7577425",
"0.75467247",
"0.7543807",
"0.75356984",
"0.7519581",
"0.75044... | 0.85079056 | 0 |
New() > itkGradientMagnitudeImageFilterISS2ISS2 Create a new object of the class itkGradientMagnitudeImageFilterISS2ISS2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non na... | def oW_4(*qIxc, **PECO):
YEnM = w_cf.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = Vcli.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = urah.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.78450257",
"0.7521738",
"0.74432385",
"0.74271095",
"0.7420658",
"0.74171835",
"0.7386687",
"0.73861814",
"0.7349809",
"0.73429954",
"0.7308053",
"0.72882855",
"0.7273973",
"0.7268092",
"0.72660017",
"0.7252587",
"0.72453904",
"0.72357696",
"0.72278863",
"0.7219915",
"0.72... | 0.8178486 | 0 |
itkGradientMagnitudeImageFilterISS2ISS2_cast(itkLightObject obj) > itkGradientMagnitudeImageFilterISS2ISS2 | def QJ9W(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterISS2ISS2 *':
return R1N2.itkGradientMagnitudeImageFilterISS2ISS2_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterISS2ISS2 *':\n return R1N2.itkGradientMagnitudeImageFilterISS2ISS2_cast(YEnM)",
"def ClG5(YEnM: 'itkLightObject') -> 'itkGradientMagnitudeImageFilterIF2IF2 *':\n return R1N2.itkGradientMagnitudeImageFilterIF2IF2_cast(YEnM)",
"def YWvJ(YE... | [
"0.9049358",
"0.9000406",
"0.8880423",
"0.8506871",
"0.8493113",
"0.8355672",
"0.83122396",
"0.82032424",
"0.8062634",
"0.79912996",
"0.79865175",
"0.79649794",
"0.7964484",
"0.79495937",
"0.7948118",
"0.79413444",
"0.7937491",
"0.7919851",
"0.7908165",
"0.79010195",
"0.79005... | 0.92369956 | 0 |
Clone(itkGradientMagnitudeImageFilterISS3ISS3 self) > itkGradientMagnitudeImageFilterISS3ISS3_Pointer | def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterISS3ISS3_Pointer':
return R1N2.itkGradientMagnitudeImageFilterISS3ISS3_Clone(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterIF3IF3_Pointer':\n return R1N2.itkGradientMagnitudeImageFilterIF3IF3_Clone(YKHO)",
"def B29l(YKHO) -> 'itkGradientMagnitudeImageFilterIUC3IUC3_Pointer':\n return R1N2.itkGradientMagnitudeImageFilterIUC3IUC3_Clone(YKHO)",
"def B29l(YKHO) -> 'itkGradientMag... | [
"0.9078579",
"0.8923695",
"0.8642491",
"0.8004495",
"0.7966736",
"0.79187167",
"0.78564525",
"0.7832863",
"0.7832272",
"0.7821967",
"0.780623",
"0.780452",
"0.77860147",
"0.778455",
"0.77812016",
"0.7777592",
"0.77755934",
"0.7770685",
"0.7766923",
"0.7760592",
"0.77580506",
... | 0.92962277 | 0 |