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
Initialize the audio recorder.
def FIMM(YKHO, xMux: int=1, ztRo: int=1024, u0Zu: int=44100): YKHO.audio_interface = GcZg.PyAudio() YKHO.do_record: bool = False YKHO.channels: int = xMux YKHO.chunk_size: int = ztRo YKHO.framerate: int = u0Zu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iv5t(YKHO):\n YKHO.listener = aFU4(channels=1)\n YKHO.listener.listen()\n YKHO.recording = False\n YKHO.paused = False", "def g80K(YKHO):\n YKHO.statusBar().showMessage('Initialising...')\n YKHO.streams = XaLO('type', 'EEG')\n YKHO.inlet = vePQ(YKHO.streams[0])\n YKHO.timeObj = []\n ...
[ "0.7969136", "0.77465457", "0.694623", "0.65840256", "0.65149903", "0.6455523", "0.64353704", "0.6416108", "0.6362843", "0.62887937", "0.62634784", "0.62535757", "0.61542404", "0.6131643", "0.611427", "0.6105745", "0.60926855", "0.6090424", "0.6056593", "0.605459", "0.6046958...
0.597156
25
Returns the current model version that is being used.
def W0Pc(): Csk6 = {} nUeQ = NB__ + '/model_version.txt' with open(nUeQ) as eHNT: for zFiD in eHNT: H5ew, BWXx = zFiD.split(',') Csk6[H5ew] = BWXx return Csk6['model version']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv():\n global __model\n return UZ7h.__version__", "def TBez(YKHO) -> str:\n return qe4Y.get(YKHO, 'model_version')", "def DpZH(YKHO):\n return YKHO.get_current_version()", "def kaPv(YKHO):\n return YKHO.version", "def Aq2d(YKHO):\n w5up = YKHO.get_version(YKHO.get_module_and_path(Y...
[ "0.8860181", "0.8713543", "0.8404392", "0.81729317", "0.8051358", "0.8019811", "0.8019811", "0.7990323", "0.79573834", "0.7953396", "0.7953396", "0.7931517", "0.7908191", "0.7901453", "0.7853436", "0.7806518", "0.7801677", "0.7731159", "0.7730727", "0.7723906", "0.76860297", ...
0.0
-1
distance entre (x,y) a (x2,y2)
def YRsN(WKvO, LVAh, ajwV=0, skBL=0): return PZyS((WKvO - ajwV) * (WKvO - ajwV) + (LVAh - skBL) * (LVAh - skBL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(o4D3, si3g, ajwV, skBL):\n return ((ajwV - o4D3) ** 2 + (skBL - si3g) ** 2) ** 0.5", "def zG70(o4D3, si3g, ajwV, skBL):\n return epAf.sqrt((o4D3 - ajwV) ** 2 + (si3g * 2.38 - skBL * 2.38) ** 2)", "def Ayfi(EBgd, HpuQ):\n return ((EBgd.x - HpuQ.x) ** 2 + (EBgd.y - HpuQ.y) ** 2) ** 0.5", "def...
[ "0.8578777", "0.84616524", "0.82376426", "0.82217366", "0.8189253", "0.81299496", "0.81079173", "0.8066122", "0.8065951", "0.80604225", "0.8053258", "0.8040548", "0.8040402", "0.8016909", "0.7973561", "0.7930424", "0.7913016", "0.7862245", "0.7812645", "0.78024817", "0.779811...
0.7843424
18
Return all Conv2D ops that were in the graph when `self` was created.
def rGNW(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xMux(YKHO) -> AzJI[gAQ6.Channel]:\n return YKHO.operands", "def FIMM(YKHO):\n YKHO._conv_to_gamma = g760.defaultdict(set)\n for khtY in ZylS.get_default_graph().get_operations():\n if khtY.type != 'FusedBatchNorm':\n continue\n jjm8 = zrk7(khtY)\n for yIp6 in jjm8:\n ...
[ "0.60008216", "0.58251077", "0.57010907", "0.56970924", "0.5687658", "0.568355", "0.56683254", "0.56332326", "0.56086457", "0.55784947", "0.5539517", "0.55273575", "0.5525051", "0.5524235", "0.55027443", "0.54982394", "0.5480031", "0.5464814", "0.5461911", "0.5459056", "0.544...
0.6908821
0
Fetches a variable by name (like tf.get_variable with reuse=True). The reason why we can't simply use tf.get_variable with reuse=True is that when variable partitioner is used, tf.get_variable requires knowing the shape of the variable (even though it knows it and thus shouldn't require it). This helper is a convenienc...
def JOc8(mWFP): try: khtY = ZylS.get_default_graph().get_operation_by_name(mWFP) except KeyError: return None try: ROpF = ZylS.TensorShape(khtY.get_attr('shape')) except ValueError: ROpF = khtY.outputs[0].shape with ZylS.variable_scope(ZylS.get_variable_scope(), reuse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeTJ(YKHO, M_u8):\n with YKHO._graph.as_default():\n return YKHO._sess.run(YKHO._get_tensor_by_name(M_u8))", "def h7GU(XuY2):\n ckoU = IPme.get_collection(IPme.GraphKeys.GLOBAL_VARIABLES)\n\n def d4vQ(ZfUD):\n try:\n return XuY2 == ZfUD.op.name\n except AttributeError...
[ "0.7706543", "0.7443449", "0.7327384", "0.72280097", "0.71235067", "0.70656633", "0.7012553", "0.6829421", "0.6721947", "0.6650945", "0.6632645", "0.6583236", "0.6567573", "0.6567573", "0.6556751", "0.65530396", "0.65377516", "0.65162945", "0.65149677", "0.6389653", "0.638830...
0.79840314
0
This special view just renders a custom 404 page. We do this so that the 404 page fits nicely into our global layout.
def Ffnu(QePW): return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vHqH(QePW, AJ5d=None):\n return _1tc(QePW, '404.html', {'exception': AJ5d})", "def m7kB(tTpl):\n return TvZl('404.html', page_title=404)", "def RQdI(YKHO):\n geh0 = YKHO.render_template('404.html')\n geh0.status_code = 404\n return geh0", "def m7kB(tTpl):\n return (TvZl('404.html'), 404...
[ "0.8473042", "0.8469589", "0.83740014", "0.83566475", "0.83566475", "0.83454525", "0.83418304", "0.8315424", "0.82897997", "0.8258756", "0.8247422", "0.81765383", "0.81449676", "0.8089407", "0.8078276", "0.80388564", "0.80335736", "0.80214727", "0.79859", "0.7979914", "0.7967...
0.0
-1
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, PhL6: ConfigEntry) -> bool: if (yT1k := (await ajET.config_entries.async_unload_platforms(PhL6, aprE))): del ajET.data[Sugg][PhL6.unique_id] if not ajET.data[Sugg]: itVU(ajET) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.61827
58
A method to initialize the weight matrices of the neural network
def Z2AQ(YKHO): Wskb = 1 / oyIN.sqrt(YKHO.no_of_in_nodes) EcVT = pjBP(mean=0, sd=1, low=-Wskb, upp=Wskb) YKHO.wih = EcVT.rvs((YKHO.no_of_hidden_nodes, YKHO.no_of_in_nodes)) Wskb = 1 / oyIN.sqrt(YKHO.no_of_hidden_nodes) EcVT = pjBP(mean=0, sd=1, low=-Wskb, upp=Wskb) YKHO.who = EcVT.rvs((YKHO.no_o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C0Lv(YKHO):\n pass", "def KPMd(FwdM: int) -> oyIN.ndarray:\n _mSQ = oyIN.zeros((FwdM, FwdM))\n return _mSQ", "def FIMM(YKHO, Zt8E, dIM5, yB6h=None, NCJH=None, prGP=None):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeightVector(Zt8...
[ "0.79101557", "0.7823027", "0.7680514", "0.7647122", "0.7619412", "0.7514427", "0.7486472", "0.7483291", "0.747333", "0.7439607", "0.7434485", "0.7415247", "0.7415247", "0.7415247", "0.7405477", "0.73851675", "0.7381978", "0.732718", "0.7326214", "0.72958493", "0.7277155", ...
0.76108575
5
Return all models for this package
def FYrf(YKHO): return YKHO.config.models()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ArHU(YKHO):\n YKHO.load()\n return YKHO._models", "def FYrf(YKHO):\n return YKHO._base.classes", "def FYrf(YKHO):\n FYrf = []\n for wHSX in YKHO.bundles.values():\n FYrf.extend(list(wHSX.models.values()))\n return FYrf", "def FYrf(YKHO) -> list[fqu7]:\n return YKHO._models", ...
[ "0.8120881", "0.7775702", "0.75307536", "0.7503053", "0.7502738", "0.7487087", "0.74715954", "0.74590635", "0.74221176", "0.7374514", "0.7355504", "0.7201942", "0.71983826", "0.7136512", "0.7134999", "0.71347255", "0.71347255", "0.71338195", "0.71240234", "0.7076645", "0.7008...
0.80048996
1
Provides an Elastic Transcoder pipeline resource.
def FIMM(Ro_8, kFeU, VKhi=None, SrMw=None, bq1v=None, k3Ao=None, Luo0=None, mWFP=None, ivf7=None, N8Gl=None, LmAn=None, qe8B=None, gfWw=None, r6DL=None, __name__=None, qqwM=None): if __name__ is not None: qmLP.warn('explicit use of __name__ is deprecated', DeprecationWarning) kFeU = __name__ if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPIK(YKHO) -> Y0rt:\n if YKHO._to_pipeline is None:\n raise AttributeError('pipeline not available because `to_pipeline` was not set on __init__.')\n return YKHO._to_pipeline(YKHO)", "def mP1Y(YKHO) -> i37G.Pipeline:\n PQzC = i37G.Artifact()\n fvc7 = i37G.Artifact()\n return i37G.Pipeli...
[ "0.626101", "0.6219813", "0.61951226", "0.6080427", "0.59189564", "0.5891496", "0.58826566", "0.58826566", "0.5776212", "0.57197475", "0.5704538", "0.56580055", "0.56465614", "0.5646217", "0.5617565", "0.56156844", "0.55874455", "0.55465984", "0.55416036", "0.55069274", "0.54...
0.5477407
23
Get an existing Pipeline resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU, id, VKhi=None, hMqs=None, SrMw=None, bq1v=None, k3Ao=None, Luo0=None, mWFP=None, ivf7=None, N8Gl=None, LmAn=None, qe8B=None, gfWw=None): VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = dict() r6DL['arn'] = hMqs r6DL['aws_kms_key_arn'] = SrMw r6DL['content_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU, id, VKhi=None, hMqs=None, O1Xk=None, mWFP=None, axXk=None, EuXk=None, dJ1p=None):\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = dict()\n r6DL['arn'] = hMqs\n r6DL['artifact_store'] = O1Xk\n r6DL['name'] = mWFP\n r6DL['role_arn'] = axXk\n r6DL['s...
[ "0.65629584", "0.6305222", "0.6137626", "0.55851334", "0.558452", "0.5573303", "0.5518145", "0.5510742", "0.5496675", "0.54952633", "0.54903036", "0.5455046", "0.54531443", "0.54273576", "0.53915834", "0.5355077", "0.53269154", "0.5323903", "0.53054225", "0.52698195", "0.5265...
0.5629204
3
Batches generator for keras fit_generator. Returns batches of patches 40x40px
def eHxA(EcVT, LVAh, Ep8u=32, aklK=4, dGrG=0, lMIx=aPXM(dim_ordering='th'), LT6S=True): while 1: B1Ty, _cYS = (0.2, 0.2) pZYi = [YRbF for YRbF in range(len(LVAh)) if LVAh[YRbF] == 1] pZYi = tuKI.sample(pZYi, int(B1Ty * len(pZYi))) dPiC = [YRbF for YRbF in range(len(LVAh)) if LVAh[YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UehI(eK5b, FTrt=128, kho3=1):\n for xkjI, oGem in eK5b:\n e5N9 = []\n kcsN = []\n for YRbF in range(0, xkjI.shape[0]):\n oWOB = v1NS(xkjI[YRbF], (FTrt, FTrt, xkjI[YRbF].shape[-1]), step=FTrt)\n VR7D = oWOB.reshape(-1, *oWOB.shape[-3:])\n e5N9.append(VR7D...
[ "0.75850147", "0.68815976", "0.68326396", "0.6755585", "0.6644264", "0.6620349", "0.6575366", "0.6522162", "0.651144", "0.64903986", "0.64785254", "0.6468773", "0.6439617", "0.641493", "0.6412302", "0.6401784", "0.6395237", "0.6349848", "0.63443595", "0.6343094", "0.6311528",...
0.59383214
84
Initialize the vizual API instance. Either expects an API instance or a dictionary from which an instance can be loaded. The second option is only attempted if the given api is None.
def FIMM(YKHO, nNXP=None, C9U5=None): if not nNXP is None: YKHO.api = nNXP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nNXP):\n YKHO.api = nNXP\n YKHO.data = None", "def FIMM(YKHO, HrYv=False):\n YKHO.api_use = HrYv", "def FIMM(YKHO, **B2fa):\n cuiw = sYI0.VkApi(**B2fa)\n try:\n cuiw.auth(token_only=True)\n except sYI0.AuthError as error_msg:\n print(tf1m)\n raise\n YKHO...
[ "0.704837", "0.69297767", "0.66669494", "0.66658497", "0.66658497", "0.65633357", "0.6538071", "0.6495853", "0.6428577", "0.6426494", "0.637943", "0.63387316", "0.631297", "0.62820774", "0.6267703", "0.62651426", "0.62651426", "0.62174606", "0.61411256", "0.61384624", "0.6131...
0.70418453
1
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.76047015", "0.74474794", "0.74041575", "0.7280166", "0.7208148", "0.716517", "0.7156958", "0.7144544", "0.7144544", "0.7144544", "0.7144544", "0.7144544", "0.7144544", "0.7131029", "0.710041", "0.7065585", "0.7064068", "0.7062088", "0.7062088", "0.7062088", "0.7062088", ...
0.7096404
29
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.74906194", "0.7289004", "0.7160026", "0.7153636", "0.70664865", "0.69872606", "0.696703", "0.6955486", "0.6913438", "0.683529", "0.68184656", "0.6810287", "0.68057126", "0.68057126", "0.68057126", "0.68057126", "0.68057126", "0.68057126", "0.67864585", "0.6758343", "0.6758...
0.675569
42
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY=None, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.figure() Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.7822435
83
Create a dataset given the option. This function wraps the class CustomDatasetDataLoader. This is the main interface between this package and 'train.py'/'test.py'
def oUGu(y7GR): zQKy = rYeY(y7GR) __n6 = zQKy.load_data() return __n6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUGu(y7GR):\n zQKy = rYeY(y7GR)\n __n6 = zQKy.load_data()\n return __n6", "def __n6(xAU6):\n pass", "def oUGu(puqW, viJf, VKhi):\n XP5J = HJ00(puqW, VKhi)\n if puqW == 'train' or puqW == 'dev' or puqW == 'test':\n c4Si = viJf\n XP5J.read_labelled_data(c4Si)\n elif puqW ==...
[ "0.86547446", "0.73279417", "0.7206806", "0.7136899", "0.7091097", "0.7000412", "0.69710624", "0.6920948", "0.6885193", "0.6882524", "0.6872056", "0.68634677", "0.68610644", "0.6838574", "0.68384725", "0.68295753", "0.68007475", "0.6762982", "0.67489755", "0.6738657", "0.6731...
0.861957
1
Return the number of data in the dataset
def szAg(YKHO): return min(len(YKHO.dataset), YKHO.opt.max_dataset_size)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RTy5(YKHO):\n return len(YKHO.data)", "def SAv9(YKHO):\n try:\n D1HL = len(YKHO.x)\n bo34.info('Number of data points: {0}'.format(D1HL))\n except AttributeError:\n bo34.error('Data object has not been defined')\n D1HL = 0\n return D1HL", "def yJv_(__n6):\n return...
[ "0.85221523", "0.8378141", "0.82205755", "0.8141319", "0.8054871", "0.79933023", "0.7989313", "0.7789385", "0.76775163", "0.76177317", "0.76037794", "0.75928235", "0.7564491", "0.7530984", "0.7469992", "0.74464196", "0.7399506", "0.7392637", "0.73787904", "0.73774236", "0.736...
0.6896656
79
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(it5J, YKHO).__init__(*qIxc, **c_sp) if YKHO.Rscanpose is None: YKHO.Rscanpose = [0.0] * 645 else: YKHO.Rscanpose = [0.0] * 645
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.77936935", "0.77195734", "0.77195734", "0.76861507", "0.76260346", "0.7563092", "0.7439089", "0.74163747", "0.73512906", "0.73076564", "0.72798854", "0.72372425", "0.7226609", "0.7223668", "0.7223668", "0.7218618", "0.7210883", "0.7210883", "0.7210883", "0.7210883", "0.721...
0.0
-1
Parses a single tf.Example into image and label tensors.
def bMCa(lGjS): bySB = ZylS.parse_single_example(lGjS, features={'image': ZylS.FixedLenFeature([], ZylS.string), 'label': ZylS.FixedLenFeature([], ZylS.int64)}) LNo8 = ZylS.decode_raw(bySB['image'], ZylS.uint8) LNo8.set_shape([qsRB * dVi8 * Wl2e]) LNo8 = ZylS.cast(ZylS.transpose(ZylS.reshape(LNo8, [qsRB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cwOz(PU1l):\n bySB = ZylS.parse_single_example(PU1l, EQAi)\n LNo8 = ZylS.image.decode_png(bySB['image/encoded'])\n UXqs = ZylS.image.decode_png(bySB['label/encoded'])\n UXqs = UXqs[..., 0]\n f4BB = bySB['image/path']\n BiJg = bySB['label/path']\n return (LNo8, UXqs, f4BB, BiJg)", "def wv...
[ "0.83829236", "0.8046354", "0.80220467", "0.792347", "0.78906894", "0.7831778", "0.77363175", "0.76417243", "0.7498123", "0.7488421", "0.74800056", "0.7437563", "0.7437213", "0.7389777", "0.73031527", "0.7254027", "0.7237167", "0.7227293", "0.7180672", "0.7136457", "0.7120209...
0.8229335
1
make empty boggle grid
def R0O3(TVTK, H2v2): return {(rdlD, fvDH): Acvy(tcl1) for rdlD in range(H2v2) for fvDH in range(TVTK)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfkN():\n return [['', '', ''], ['', '', ''], ['', '', '']]", "def da1w(YKHO, D7qW=None, O6RR=0):\n if not D7qW:\n D7qW = YKHO.gameGrid\n for Mkmy, Z9rn in D7qW:\n YKHO.emptyCell(Mkmy, Z9rn, gameGrid=D7qW, emptyValue=O6RR)", "def SiRx(YKHO):\n YKHO._grid = [[0 for zpwQ in range(YK...
[ "0.6874487", "0.67928714", "0.6782125", "0.67666495", "0.6757196", "0.673991", "0.6732009", "0.6715818", "0.67102534", "0.6696798", "0.66834736", "0.66779596", "0.6673599", "0.6665801", "0.66280323", "0.66040796", "0.6552258", "0.65505785", "0.65319175", "0.6530315", "0.65237...
0.0
-1
Returns the environment variables that the command exports to shell.
def ig65(qIxc=None): if qIxc is not None: if not isinstance(qIxc, list): qIxc = [qIxc] qIxc += ['>', 'nul', '&&'] qIxc += ['set'] Slaj = Yn3K.Popen(qIxc, shell=True, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE) zJsh, wIbz = Slaj.communicate() if Slaj.returncode != 0: raise...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E6J6(YKHO):\n sEAN = {}\n for G1Hx, Ty9i in Hy7s.environ.items():\n G1Hx = G1Hx.decode() if isinstance(G1Hx, bytes) else G1Hx\n Ty9i = Ty9i.decode() if isinstance(Ty9i, bytes) else Ty9i\n sEAN[G1Hx] = Ty9i\n return list(sEAN.items())", "def t38H():\n QUTX = ['PATH', 'ORACLE_H...
[ "0.76085585", "0.74995005", "0.7212889", "0.71174705", "0.7094753", "0.70785105", "0.7041463", "0.6980493", "0.6939119", "0.6925751", "0.6904933", "0.6883877", "0.68133074", "0.6768039", "0.6748998", "0.67447126", "0.6741414", "0.67398554", "0.6677551", "0.6653996", "0.665326...
0.66250956
22
Add two integer strings of same length without carry >>> add_wo_carry('9876', '5432') '0008'
def Nfhw(MxXY, cWFu): jtyf = [int(WKvO) for WKvO in str(MxXY)] V70B = [int(WKvO) for WKvO in str(cWFu)] AX4T = map(seET.add, jtyf, V70B) D0IF = [str(WKvO)[-1] for WKvO in AX4T] return ''.join(D0IF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXUA(Ymry, Ie5c):\n wzH_ = max(len(Ymry), len(Ie5c))\n eJc1 = list(map(int, list(Ymry.zfill(wzH_))))\n iNMx = list(map(int, list(Ie5c.zfill(wzH_))))\n OwjK = [None] * wzH_\n QAki = 0\n for L4yN in reversed(range(wzH_)):\n Aofo = eJc1[L4yN] ^ iNMx[L4yN]\n if QAki and (not Aofo):\...
[ "0.738321", "0.73441905", "0.72760355", "0.71834505", "0.70681775", "0.7062339", "0.7016835", "0.6959322", "0.68051505", "0.67834264", "0.6699625", "0.66355956", "0.6570719", "0.6534934", "0.65145355", "0.6485566", "0.64543813", "0.6364307", "0.6349641", "0.6289134", "0.62795...
0.788304
0
Substract two integer strings of same length without carry >>> sub_wo_carry('9007', '1234') '8873'
def flF0(MxXY, cWFu): jtyf = [int(WKvO) + 10 for WKvO in str(MxXY)] V70B = [int(WKvO) for WKvO in str(cWFu)] AX4T = map(seET.sub, jtyf, V70B) D0IF = [str(WKvO)[-1] for WKvO in AX4T] return ''.join(D0IF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L3Uq(jzdc, Fg_i):\n Aofo = bytearray()\n QAki = 0\n for xTfc, SluS in zip(jzdc, Fg_i):\n u9bz = xTfc - SluS - QAki\n if u9bz < 0:\n QAki = 1\n Aofo.append(u9bz % 256)\n else:\n QAki = 0\n Aofo.append(u9bz)\n return Aofo", "def Nfhw(...
[ "0.6733123", "0.64523053", "0.63948476", "0.6362099", "0.62545234", "0.6232102", "0.6148664", "0.6140974", "0.6140974", "0.6140974", "0.6094881", "0.6085639", "0.60787594", "0.6003238", "0.6003238", "0.5995954", "0.5995954", "0.5995954", "0.5990235", "0.59888077", "0.59712374...
0.7895557
0
Compares two comparable numeric quantities to see if they are within tolerable limits or not (0.1% of correct answer). Returns True or False
def AJoA(jm2W, Fx_0, wmYo, kQPh): global ureg try: if Fx_0 == '': sAno = jm2W return abs((sAno - wmYo) / sAno) <= 0.0001 else: sAno = g_7g.Quantity(jm2W, Fx_0).to(kQPh) return abs((sAno.magnitude - wmYo) / sAno.magnitude) <= 0.0001 except R29p....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aT1D(o4D3, ajwV):\n if abs(o4D3 - ajwV) <= mNmR:\n return True\n return False", "def Qwqp(WKvO, LVAh, rhd_):\n return round(WKvO - LVAh, rhd_) == 0", "def D2pd(YKHO, jzdc: float, Fg_i: float) -> bool:\n return jzdc >= Fg_i - YKHO.tol * max(abs(jzdc), abs(Fg_i), 1.0)", "def oilP(WKvO, L...
[ "0.7460852", "0.7255448", "0.7163253", "0.71208143", "0.71011686", "0.69799984", "0.69520193", "0.69399184", "0.691082", "0.69083834", "0.6908233", "0.68960756", "0.6864178", "0.68553567", "0.6822016", "0.6818452", "0.6815394", "0.68087286", "0.68070555", "0.6800536", "0.6800...
0.63796777
54
Return true if the queue is on.
def Debg(YKHO): return YKHO._data['enabled']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZHJ(YKHO):\n return len(YKHO.queue) > 0", "def any(YKHO) -> bool:\n return len(YKHO.queue) > 0", "def tWdm(YKHO):\n TF1W = YKHO._grep_qstat('queued')\n if TF1W:\n return True\n return False", "def M3RM(YKHO):\n if YKHO.get_db('jobid') is None:\n RKD7.debug('jobid not foun...
[ "0.80942106", "0.7644684", "0.7554481", "0.7320227", "0.7318586", "0.7317834", "0.7231066", "0.71622443", "0.70926577", "0.7089679", "0.70846164", "0.70846164", "0.70846164", "0.7056037", "0.70450974", "0.7022867", "0.6987548", "0.6979007", "0.6972467", "0.6970045", "0.697004...
0.0
-1
Return the port state attributes.
def R1i3(YKHO): azoT = YKHO._attrs for Es0b in YKHO._sid_data['sid_attr']: if Es0b in YKHO._data: azoT[RTi1(Es0b)] = YKHO._data[Es0b] return azoT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzCU(YKHO):\n return YKHO._poe_data.ports[YKHO._port]", "def QTBn(YKHO):\n return {'port': YKHO.self.__port.port, 'baudrate': YKHO.self.__port.baudrate, 'bytesize': YKHO.self.__port.bytesize, 'parity': YKHO.self.__port.parity, 'stopbits': YKHO.self.__port.stopbits, 'timeout': YKHO.self.__port.timeout, ...
[ "0.8186696", "0.79095244", "0.7908586", "0.7832808", "0.7832808", "0.7816633", "0.7804596", "0.77929586", "0.77929586", "0.7736866", "0.7708524", "0.7708524", "0.7708524", "0.7708524", "0.7708524", "0.7708524", "0.7708524", "0.7708524", "0.7708524", "0.7708524", "0.7708524", ...
0.7354149
35
COMPLETE THIS FUNCTION (PART 1) Given a sequence, this function should return a list of ngrams, where each ngram is a Python tuple. This should work for arbitrary values of 1 <= n < len(sequence).
def RisN(aWuw, exwG): Aofo = [] if exwG == 1: Aofo.append(tuple(['START'])) Aofo.append(tuple(['STOP'])) if exwG == 3 and len(aWuw) == 1: Aofo.append(tuple(['START', 'START', aWuw[0]])) Aofo.append(tuple(['START', aWuw[0], 'STOP'])) return Aofo if exwG > 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RisN(aWuw, exwG):\n u54L = len(aWuw)\n if exwG == 1 or exwG == 2:\n aWuw = ['START'] * exwG + aWuw + ['STOP']\n Os4s = exwG + 1\n else:\n aWuw = ['START'] * (exwG - 1) + aWuw + ['STOP']\n Os4s = 1\n if exwG == 2:\n Os4s = exwG\n Aofo = []\n ycBG = ()\n fo...
[ "0.8763529", "0.85098594", "0.8387284", "0.8298498", "0.8086003", "0.79911363", "0.78336895", "0.7663164", "0.7625829", "0.7546381", "0.7535764", "0.7534203", "0.75049025", "0.7498775", "0.7474024", "0.7469835", "0.7446558", "0.7443803", "0.74133855", "0.7399401", "0.73655355...
0.8256341
4
COMPLETE THIS METHOD (PART 3) Returns the raw (unsmoothed) trigram probability
def UAUC(YKHO, _UTc): mLGw = YKHO.trigramcounts[_UTc] OCOs = YKHO.bigramcounts[_UTc[:-1]] if len(_UTc) == 2: print(_UTc) return YKHO.raw_bigram_probability(_UTc) if OCOs == 0 and mLGw != 0: print(_UTc, _UTc[:-1], OCOs, mLGw) return 1 if OCOs == 0: return 1 / l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpOm(YKHO, _UTc):\n hwrp = 1 / 3.0\n Vpdb = 1 / 3.0\n Hyxi = 1 / 3.0\n nI_w = YKHO.raw_unigram_probability((_UTc[2],))\n Xscg = YKHO.raw_bigram_probability((_UTc[1], _UTc[2]))\n CiRF = YKHO.raw_trigram_probability(_UTc)\n Aofo = 0.0\n Aofo = hwrp * CiRF + Vpdb * Xscg + Hyxi * nI_w\n ...
[ "0.7756939", "0.77344036", "0.76416236", "0.74117917", "0.7331346", "0.73155785", "0.7222813", "0.71737164", "0.71000147", "0.7094879", "0.691427", "0.6834663", "0.67442095", "0.6739439", "0.6738607", "0.6699013", "0.6678823", "0.6635451", "0.66307485", "0.66089636", "0.66001...
0.73499596
4
return the config filename
def ayhn(YKHO): return YKHO.name() + '.py'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rn2x(YKHO):\n return YKHO._configFileName", "def Ux0P():\n global _cfgfn\n return ndcr", "def _NTK(YKHO):\n return YKHO._config_file_name", "def FgkN(YKHO):\n E0cB = HwRy.argv\n Xf8z = 'dev'\n if None != E0cB and len(E0cB) > 1:\n Xf8z = E0cB[1]\n Nu1S = Xf8z + '.cfg'\n b...
[ "0.83283734", "0.82707685", "0.8267743", "0.82336384", "0.81004906", "0.7963827", "0.78473616", "0.77613986", "0.7551578", "0.75452465", "0.7498181", "0.745226", "0.74485326", "0.7446891", "0.7392078", "0.7389087", "0.7388546", "0.7279395", "0.72120994", "0.72119015", "0.7201...
0.85215724
0
Initialize 2layer network. Weight matrices are initialized randomly. Biases are zero vectors.
def FIMM(YKHO, zi3C, wjbX, a6Jb, lg_F=0.01): YKHO.params = {} YKHO.params['W1'] = lg_F * oyIN.random.randn(zi3C, wjbX) YKHO.params['b1'] = oyIN.zeros(wjbX) YKHO.params['W2'] = lg_F * oyIN.random.randn(wjbX, a6Jb) YKHO.params['b2'] = oyIN.zeros(a6Jb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO, SUd8=None):\n if SUd8:\n pass\n else:\n WKvO = YKHO.weights_shape[1]\n LVAh = YKHO.weights_shape[0]\n YKHO.weights = oyIN.random.randn(LVAh, WKvO) / oyIN.sqrt(WKvO)\n YKHO.biases = oyIN.random.randn(LVAh, 1)", "def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYl...
[ "0.75092906", "0.73077995", "0.72071165", "0.7204983", "0.7148916", "0.71056473", "0.7079986", "0.7031666", "0.70306444", "0.6973227", "0.6963526", "0.69350827", "0.69296825", "0.69054693", "0.68843025", "0.68821084", "0.68821084", "0.68821084", "0.6861307", "0.6726525", "0.6...
0.0
-1
Opens a new database connection if there is none yet for the current application context.
def GGod(): if not hasattr(Oa1e, 'sqlite_db'): Oa1e.sqlite_db = _uJw() return Oa1e.sqlite_db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db", "def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)", "def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)", "def W...
[ "0.7737639", "0.7582971", "0.73180443", "0.71693045", "0.70220166", "0.6966687", "0.6954785", "0.69486743", "0.6897534", "0.6842663", "0.68292314", "0.68191963", "0.680592", "0.67950195", "0.67697805", "0.6762173", "0.6751266", "0.6746273", "0.67316663", "0.670031", "0.668866...
0.640242
74
Checks if the currently logged in user is the administrator.
def uJBC(): if 'username' in cuiw and cuiw['username'] == 'admin': return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Kb1(YKHO):\n if not YKHO.current_user:\n return False\n else:\n return YKHO.current_user in ['1']", "def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n return False", "def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.i...
[ "0.86273277", "0.841409", "0.83798116", "0.8318721", "0.82656795", "0.82064736", "0.8204422", "0.81897783", "0.8162296", "0.81430477", "0.8127073", "0.80692375", "0.80692375", "0.7976512", "0.7941674", "0.79382646", "0.7923693", "0.790627", "0.78834516", "0.7822475", "0.78079...
0.8058512
13
takes a list of np arrays of different lengths where other dimensions are of same size, returns padded np array w/ shape (n_items, max_sequence_length, ) + (n_dimensions,) pads evenly on start and end w/ greater pads on end if not %2
def R9cP(yqD4, kjOt='edge', JRYC='float32'): fcYF = len(yqD4) Kmcr = max(map(lambda WKvO: WKvO.shape[0], yqD4)) sjdr = yqD4[0].shape[1:] EcVT = oyIN.zeros((fcYF, Kmcr) + sjdr, JRYC) for YRbF, WKvO in enumerate(yqD4): TocD = (Kmcr - WKvO.shape[0]) // 2 REHY = Kmcr - (TocD + WKvO.shape...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S5Za(jWe2):\n wzH_ = max((KCHu.shape[0] for KCHu in jWe2))\n H5Km = []\n for Q6uT in jWe2:\n AOVh = oyIN.concatenate([Q6uT, oyIN.zeros((wzH_ - Q6uT.shape[0],) + Q6uT.shape[1:])])\n H5Km.append(AOVh[oyIN.newaxis, :])\n return oyIN.concatenate(H5Km, axis=0)", "def K9W8(jWe2, hVLt=Sbzz...
[ "0.7648255", "0.72513604", "0.7160173", "0.7104164", "0.70251584", "0.69889945", "0.69644034", "0.6961522", "0.6952945", "0.6940661", "0.69116616", "0.69115156", "0.6900491", "0.68814635", "0.6854474", "0.67933303", "0.67689484", "0.6767432", "0.67457503", "0.6737443", "0.673...
0.7213359
2
Initializing attributes of the class Users.
def FIMM(YKHO, c9ua, zp3f, NtEF, ZJe_, Rci7): YKHO.first_name = c9ua YKHO.last_name = zp3f YKHO.username = NtEF YKHO.age = ZJe_ YKHO.location = Rci7 YKHO.login_attempts = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.__type = RqVe\n YKHO.__user = None", "def FIMM(YKHO, DW23: List[str]=None, n52x: bool=None):\n YKHO.swagger_types = {'users': x1iM[str], 'public': bool}\n YKHO.attribute_map = {'users': 'users', 'public': 'public'}\n YKHO._users = DW23\n YKHO._public = n52x", "def FIMM(...
[ "0.6936763", "0.6777871", "0.6712647", "0.67002547", "0.65750587", "0.6560765", "0.64976335", "0.6433575", "0.642979", "0.64200366", "0.6419934", "0.6378849", "0.63592553", "0.6348923", "0.6329101", "0.63264585", "0.63236374", "0.6315715", "0.6308108", "0.62455976", "0.623937...
0.60661155
38
cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUC2
def YWvJ(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUC2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v3Ul(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUC2_cast(*qIxc)", "def aYKI(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL2_cast(*qIxc)", "def UDwz(YEnM: 'itkLightObject') -> 'itkLabelStatisticsImageFilterIF2IUC2 *':\n return v15T.itkLabelStatisticsImageFilterIF2IUC2_cast(YEnM...
[ "0.8085982", "0.79233956", "0.7915338", "0.78901803", "0.78609645", "0.7858094", "0.7706184", "0.7705733", "0.7705527", "0.7697832", "0.7669698", "0.76657593", "0.76649", "0.76632285", "0.7658371", "0.7654769", "0.7640764", "0.7640531", "0.76203465", "0.7596636", "0.75846297"...
0.77181613
6
New() > itkLabelShapeOpeningImageFilterIUC2 Create a new object of the class itkLabelShapeOpeningImageFilterIUC2 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 para...
def oW_4(*qIxc, **PECO): YEnM = IHmF.__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 = fTr1.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = jzrB.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.7852894", "0.7628601", "0.74670064", "0.7380148", "0.7335118", "0.7327023", "0.7306951", "0.7301522", "0.72992057", "0.72827893", "0.72700286", "0.7247629", "0.72205573", "0.7217248", "0.7213627", "0.721344", "0.72126853", "0.7207099", "0.7206555", "0.7194717", "0.7168512"...
0.8175631
0
itkLabelShapeOpeningImageFilterIUC2_cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUC2
def v3Ul(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUC2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDwz(YEnM: 'itkLightObject') -> 'itkLabelStatisticsImageFilterIF2IUC2 *':\n return v15T.itkLabelStatisticsImageFilterIF2IUC2_cast(YEnM)", "def gz53(YEnM: 'itkLightObject') -> 'itkLabelStatisticsImageFilterIUC2IUC2 *':\n return v15T.itkLabelStatisticsImageFilterIUC2IUC2_cast(YEnM)", "def aYKI(*qIxc):\...
[ "0.8314873", "0.8312219", "0.82890284", "0.8148178", "0.8117329", "0.81110466", "0.81009364", "0.80737984", "0.8047413", "0.80406207", "0.7976132", "0.7951859", "0.79404116", "0.7932154", "0.79199076", "0.79181635", "0.7915808", "0.79149115", "0.7912903", "0.790627", "0.78931...
0.8553355
0
cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUC3
def YWvJ(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUC3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cwdN(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUC3_cast(*qIxc)", "def HvNC(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL3_cast(*qIxc)", "def vLtS(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUS3_cast(*qIxc)", "def OIC0(YEnM: 'itkLightObject') -> 'itkLabelStatistic...
[ "0.8051953", "0.79690355", "0.77631503", "0.7752133", "0.77365917", "0.7735961", "0.77260625", "0.7670788", "0.76261944", "0.762288", "0.7604216", "0.7598049", "0.75894624", "0.7575746", "0.7574246", "0.75711226", "0.75663704", "0.75631124", "0.7562301", "0.7561385", "0.75491...
0.76631546
8
New() > itkLabelShapeOpeningImageFilterIUC3 Create a new object of the class itkLabelShapeOpeningImageFilterIUC3 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 para...
def oW_4(*qIxc, **PECO): YEnM = DBnO.__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 = z0hP.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = JqXR.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.78404844", "0.75513065", "0.74313855", "0.7421334", "0.7409808", "0.74061596", "0.7401589", "0.7397313", "0.7372884", "0.7364181", "0.734163", "0.73392516", "0.7337199", "0.7329389", "0.73292536", "0.73244727", "0.73165715", "0.7310209", "0.7305626", "0.7275945", "0.726687...
0.8143032
0
itkLabelShapeOpeningImageFilterIUC3_cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUC3
def cwdN(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUC3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvNC(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL3_cast(*qIxc)", "def R4aa(YEnM: 'itkLightObject') -> 'itkLabelStatisticsImageFilterIUC3IUC3 *':\n return v15T.itkLabelStatisticsImageFilterIUC3IUC3_cast(YEnM)", "def OIC0(YEnM: 'itkLightObject') -> 'itkLabelStatisticsImageFilterIF3IUC3 *':\...
[ "0.8368045", "0.821621", "0.82030636", "0.80841976", "0.8079337", "0.80573875", "0.8032679", "0.80321443", "0.7976718", "0.7959224", "0.7952724", "0.7899733", "0.78784776", "0.78730375", "0.7858763", "0.78403157", "0.7838943", "0.78322345", "0.7828861", "0.7824089", "0.781159...
0.8525797
0
GetBackgroundValue(self) > unsigned long
def nYaX(YKHO): return jQtO.itkLabelShapeOpeningImageFilterIUL2_GetBackgroundValue(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nYaX(YKHO) -> 'unsigned short':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_GetBackgroundValue(YKHO)", "def nYaX(YKHO) -> 'unsigned short':\n return RmO1.itkBinaryGrindPeakImageFilterIUS3_GetBackgroundValue(YKHO)", "def nYaX(YKHO) -> 'unsigned short':\n return RC9M.itkNotImageFilterIUS2IUS2_Ge...
[ "0.7737006", "0.77182204", "0.7681286", "0.7642128", "0.75252587", "0.7524116", "0.7383692", "0.73833084", "0.7315721", "0.727174", "0.7264374", "0.716038", "0.70613956", "0.7033896", "0.70272636", "0.69789225", "0.6837921", "0.68291885", "0.67811203", "0.67353165", "0.669298...
0.6340069
27
cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUL2
def YWvJ(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUL2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aYKI(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL2_cast(*qIxc)", "def v3Ul(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUC2_cast(*qIxc)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkLabelStatisticsImageFilterIF2IUC2 *':\n return v15T.itkLabelStatisticsImageFilterIF2IUC2_cast(YEnM...
[ "0.8012293", "0.7730993", "0.758959", "0.75821096", "0.7559438", "0.75055397", "0.7494203", "0.74905676", "0.74472886", "0.74340004", "0.74072564", "0.7395963", "0.7391285", "0.7386178", "0.7386141", "0.7385466", "0.7384272", "0.7365174", "0.73477453", "0.73245186", "0.731464...
0.76258916
2
New() > itkLabelShapeOpeningImageFilterIUL2 Create a new object of the class itkLabelShapeOpeningImageFilterIUL2 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 para...
def oW_4(*qIxc, **PECO): YEnM = fTr1.__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 = IHmF.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = jzrB.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.80340856", "0.77699167", "0.7615085", "0.7349321", "0.73308325", "0.6981616", "0.69504404", "0.69433874", "0.69157785", "0.69061863", "0.69024414", "0.69007784", "0.68895066", "0.68852204", "0.6870489", "0.68364483", "0.6835135", "0.682967", "0.6820463", "0.6812641", "0.67...
0.8186143
0
itkLabelShapeOpeningImageFilterIUL2_cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUL2
def aYKI(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUL2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v3Ul(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUC2_cast(*qIxc)", "def YWvJ(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL2_cast(*qIxc)", "def hrKh(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUS2_cast(*qIxc)", "def UDwz(YEnM: 'itkLightObject') -> 'itkLabelStatistic...
[ "0.8184659", "0.7999193", "0.79628026", "0.7903417", "0.78431404", "0.78352135", "0.77649355", "0.773157", "0.7722059", "0.77089065", "0.77064925", "0.7694309", "0.76898223", "0.76773995", "0.7674774", "0.7671728", "0.7659833", "0.7641825", "0.76295376", "0.7629418", "0.76189...
0.85288584
0
GetBackgroundValue(self) > unsigned long
def nYaX(YKHO): return jQtO.itkLabelShapeOpeningImageFilterIUL3_GetBackgroundValue(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nYaX(YKHO) -> 'unsigned short':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_GetBackgroundValue(YKHO)", "def nYaX(YKHO) -> 'unsigned short':\n return RmO1.itkBinaryGrindPeakImageFilterIUS3_GetBackgroundValue(YKHO)", "def nYaX(YKHO) -> 'unsigned short':\n return RC9M.itkNotImageFilterIUS2IUS2_Ge...
[ "0.7737006", "0.77182204", "0.7681286", "0.7642128", "0.75252587", "0.7524116", "0.7383692", "0.73833084", "0.7315721", "0.727174", "0.7264374", "0.716038", "0.70613956", "0.7033896", "0.70272636", "0.69789225", "0.6837921", "0.68291885", "0.67811203", "0.67353165", "0.669298...
0.63008976
30
cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUL3
def YWvJ(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUL3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvNC(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL3_cast(*qIxc)", "def cwdN(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUC3_cast(*qIxc)", "def vLtS(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUS3_cast(*qIxc)", "def aYKI(*qIxc):\n return jQtO.itkLabelShapeOpening...
[ "0.79298866", "0.76909214", "0.7654205", "0.75990516", "0.74745476", "0.74678576", "0.74460673", "0.74419695", "0.7441349", "0.7426428", "0.742581", "0.7419738", "0.74058115", "0.74055374", "0.7391793", "0.73847324", "0.738118", "0.7375612", "0.7370897", "0.7366151", "0.73527...
0.7554147
4
New() > itkLabelShapeOpeningImageFilterIUL3 Create a new object of the class itkLabelShapeOpeningImageFilterIUL3 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 para...
def oW_4(*qIxc, **PECO): YEnM = z0hP.__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 = DBnO.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = JqXR.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.8013044", "0.7707837", "0.7301679", "0.70666283", "0.70537907", "0.7053348", "0.7042634", "0.703377", "0.7026652", "0.70244336", "0.70075125", "0.70022047", "0.69982916", "0.69788796", "0.6973958", "0.6966385", "0.69632", "0.69575906", "0.69466597", "0.69424224", "0.693756...
0.81305206
0
itkLabelShapeOpeningImageFilterIUL3_cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUL3
def HvNC(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUL3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cwdN(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUC3_cast(*qIxc)", "def vLtS(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUS3_cast(*qIxc)", "def YWvJ(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL3_cast(*qIxc)", "def OIC0(YEnM: 'itkLightObject') -> 'itkLabelStatistic...
[ "0.8204645", "0.8092552", "0.79199415", "0.784081", "0.78191406", "0.7811634", "0.7788143", "0.7774149", "0.77606213", "0.7754849", "0.7739077", "0.77293634", "0.7710111", "0.7707036", "0.77046067", "0.7674444", "0.7663901", "0.76611704", "0.76608115", "0.765003", "0.7647054"...
0.84926444
0
cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUS2
def YWvJ(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUS2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hrKh(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUS2_cast(*qIxc)", "def aYKI(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL2_cast(*qIxc)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkLabelStatisticsImageFilterIF2IUS2 *':\n return v15T.itkLabelStatisticsImageFilterIF2IUS2_cast(YEnM...
[ "0.78920436", "0.7706312", "0.755923", "0.75433284", "0.7542991", "0.74543655", "0.74205667", "0.74183464", "0.7374501", "0.7373725", "0.73734075", "0.7360082", "0.7357408", "0.7348211", "0.7313102", "0.7310419", "0.7298819", "0.7269222", "0.72484714", "0.7234487", "0.721592"...
0.7505284
5
New() > itkLabelShapeOpeningImageFilterIUS2 Create a new object of the class itkLabelShapeOpeningImageFilterIUS2 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 para...
def oW_4(*qIxc, **PECO): YEnM = jzrB.__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 = fTr1.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = IHmF.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.78754896", "0.78627527", "0.77313423", "0.72295743", "0.7186022", "0.71564853", "0.7122956", "0.70924604", "0.70854133", "0.70552564", "0.704826", "0.70434165", "0.702327", "0.70126545", "0.7008473", "0.6999009", "0.6993559", "0.69662863", "0.694241", "0.693873", "0.691870...
0.82265264
0
itkLabelShapeOpeningImageFilterIUS2_cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUS2
def hrKh(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUS2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aYKI(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL2_cast(*qIxc)", "def BlKv(YEnM: 'itkLightObject') -> 'itkLabelStatisticsImageFilterIF2IUS2 *':\n return v15T.itkLabelStatisticsImageFilterIF2IUS2_cast(YEnM)", "def v3Ul(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUC2_cast(*qIxc...
[ "0.81107277", "0.79696566", "0.7944072", "0.7922931", "0.78640664", "0.7825589", "0.7775871", "0.77724737", "0.77195656", "0.7696881", "0.76931864", "0.76890504", "0.76636183", "0.76281", "0.760129", "0.7600809", "0.7598741", "0.75879145", "0.7558603", "0.7557666", "0.7528054...
0.84580594
0
cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUS3
def YWvJ(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUS3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vLtS(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUS3_cast(*qIxc)", "def HvNC(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL3_cast(*qIxc)", "def hrKh(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUS2_cast(*qIxc)", "def cwdN(*qIxc):\n return jQtO.itkLabelShapeOpening...
[ "0.7884982", "0.76935387", "0.7568831", "0.75332016", "0.7443235", "0.7396062", "0.73916113", "0.73763156", "0.73639095", "0.73534125", "0.73343885", "0.73245275", "0.7321727", "0.72910506", "0.7285906", "0.7268845", "0.72526383", "0.72371423", "0.7233805", "0.72321534", "0.7...
0.75723696
2
New() > itkLabelShapeOpeningImageFilterIUS3 Create a new object of the class itkLabelShapeOpeningImageFilterIUS3 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 para...
def oW_4(*qIxc, **PECO): YEnM = JqXR.__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 = z0hP.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = DBnO.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.7854471", "0.78389716", "0.74344563", "0.72061753", "0.7174974", "0.71529996", "0.7135097", "0.7134907", "0.7100368", "0.7098662", "0.7092609", "0.7090714", "0.7085719", "0.70746416", "0.70310676", "0.70302635", "0.7022295", "0.70202935", "0.7012143", "0.70068055", "0.6989...
0.81266874
0
itkLabelShapeOpeningImageFilterIUS3_cast(itkLightObject obj) > itkLabelShapeOpeningImageFilterIUS3
def vLtS(*qIxc): return jQtO.itkLabelShapeOpeningImageFilterIUS3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvNC(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUL3_cast(*qIxc)", "def cwdN(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUC3_cast(*qIxc)", "def YWvJ(*qIxc):\n return jQtO.itkLabelShapeOpeningImageFilterIUS3_cast(*qIxc)", "def x8in(YEnM: 'itkLightObject') -> 'itkLabelStatistic...
[ "0.8211752", "0.8041203", "0.7922317", "0.78247", "0.7805688", "0.77466166", "0.77002645", "0.7686547", "0.7650522", "0.75920635", "0.75889456", "0.7578653", "0.75711036", "0.7565041", "0.7539838", "0.75260305", "0.7518246", "0.74956864", "0.74885267", "0.7477896", "0.7435774...
0.8460685
0
Set the charge for selected atoms. Note that both the hierarchy and the xray_structure must be passed here in the context of the pdbtools app, the scattering_type attributes will override the atom's element and charge when the structure is written out.
def Mxcp(gEYm, wNKD, fMbG, SuM2, WJkG, RKD7=None): assert isinstance(WJkG, int) if SuM2 is None: raise PvyU('You must specify an atom selection to apply a charge to.') if abs(WJkG) >= 10: raise PvyU('The charge must be in the range from -9 to 9.') if RKD7 is None: RKD7 = jBHO() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gl3t(YKHO, type, WJkG):\n assert type < YKHO.num_atom_types + 1\n assert type > 0\n YKHO.charges[type] = WJkG", "def y2ey(YKHO, *qIxc):\n return _VfD.Species_setCharge(YKHO, *qIxc)", "def y2ey(YKHO, *qIxc):\n return _VfD.FbcSpeciesPlugin_setCharge(YKHO, *qIxc)", "def WJkG(YKHO, WJkG):\n ...
[ "0.63067305", "0.62471193", "0.6138", "0.58585244", "0.5833018", "0.5355907", "0.5249129", "0.5106193", "0.5055654", "0.4987439", "0.49700603", "0.4951861", "0.4843085", "0.47947472", "0.47832185", "0.4735127", "0.47171184", "0.46691176", "0.4664291", "0.46586925", "0.4658002...
0.82591903
0
Sorts and capitalize all words
def MfIv(V22M): return sorted(V22M, key=str.lower)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MDZz(V22M):\n l1kM = ''\n for GIN8 in V22M:\n if l1kM == '':\n l1kM = GIN8[:1].lower() + GIN8[1:]\n else:\n l1kM = '%s%s' % (l1kM, GIN8.capitalize())\n return l1kM", "def Ekzq(V22M):\n _CS_ = V22M.split(' ')\n _CS_ = [KCHu[0].upper() + KCHu[1:].lower() for K...
[ "0.74322474", "0.7253092", "0.7168752", "0.7088848", "0.70584476", "0.70159197", "0.69449323", "0.68793505", "0.6873719", "0.67511594", "0.67342377", "0.6706985", "0.67053354", "0.6685236", "0.66767406", "0.6650773", "0.6645728", "0.6617403", "0.6613444", "0.6611285", "0.6608...
0.7406095
1
return the total amount paid after emi_num
def wMl7(YKHO, mBKG): vs5h = 0 for G1Hx in YKHO.txn_log.keys(): if G1Hx <= mBKG: vs5h += YKHO.txn_log[G1Hx] fKUJ = YKHO.monthly_emi * mBKG CDiQ = vs5h + fKUJ VS6E = YKHO.repay_amount - CDiQ if CDiQ >= YKHO.repay_amount: W_i2 = 0 elif YKHO.monthly_emi > VS6E: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zSxe(YKHO) -> ZjSO:\n return YKHO.total_principal + YKHO.total_interest", "def qBlJ(YKHO):\n return sum(YKHO.paid)", "def S6Ai(YKHO):\n wjRY = 0.0\n for zFiD in YKHO.loan_ids:\n if zFiD.pay:\n wjRY += zFiD.amount\n YKHO.total_paid = wjRY", "def AQqC(id):\n nPrm = NCls....
[ "0.65935636", "0.65385884", "0.6187814", "0.5992375", "0.59199977", "0.58948976", "0.58948976", "0.5891049", "0.58753014", "0.58020794", "0.57931286", "0.5786181", "0.576278", "0.57526463", "0.5748888", "0.57236874", "0.5693929", "0.567132", "0.5671129", "0.56479716", "0.5641...
0.6651568
0
Return the MM calculated energy of the structure
def M6MN(YKHO, dQgj): YKHO.simulation.context.setPositions(dQgj) QTBn = YKHO.simulation.context.getState(getEnergy=True) VYvU = QTBn.getPotentialEnergy().value_in_unit(PXGI.kilocalories_per_mole) return VYvU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M6MN(YKHO):\n return YKHO.momentum * YKHO.momentum / (2 * YKHO.mass)", "def TrwH(YKHO):\n return YKHO.parameters.E0 + YKHO.x * reeg * YKHO.parameters.sigma * YKHO.mt", "def VYvU(YKHO):\n dBA9, lcbZ, tTpl = (YKHO.nocc, YKHO.gmo, YKHO.e)\n b10C = 0.0\n for YRbF in range(dBA9):\n for r84...
[ "0.8011897", "0.7236766", "0.72213215", "0.719831", "0.7176835", "0.7128191", "0.70815146", "0.70300055", "0.6976268", "0.69536984", "0.6949243", "0.6921412", "0.6911287", "0.69055843", "0.690532", "0.6850432", "0.683771", "0.6818059", "0.6803566", "0.6761848", "0.67555153", ...
0.61439055
82
Close an active session for the client process. After closing a session, the client process is required to call open_session() again before using any of the clientfacing member functions. Closing an active session will remove the record of which signals and controls the client process has access to; thus, this record i...
def x9p9(YKHO, oa2y): YKHO._active_sessions.check_client_active(oa2y, 'PlatformCloseSession') w7ki = YKHO._active_sessions.get_reference_count(oa2y) if w7ki == 0: YKHO._close_session_completely(oa2y) elif w7ki == 1: YKHO._active_sessions.decrement_reference_count(oa2y) YKHO._clos...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N56S(YKHO, oa2y):\n cb_Q = YKHO._active_sessions.remove_client(oa2y)\n if cb_Q is not None:\n WcKa.source_remove(cb_Q['watch_id'])\n x8ok = cb_Q.get('batch_server')\n if x8ok is not None:\n try:\n YKHO._pio.stop_batch_server(x8ok)\n except Runtime...
[ "0.7437084", "0.690607", "0.68884754", "0.6834479", "0.66683245", "0.65452087", "0.65006196", "0.6426763", "0.6408033", "0.6401355", "0.639842", "0.63926005", "0.63916206", "0.6341986", "0.6329491", "0.6316306", "0.6316306", "0.6316306", "0.6270928", "0.6270928", "0.6270928",...
0.7810562
0
The name of the resource group. The name is case insensitive.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_grou...
[ "0.8591477", "0.8364604", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.8203347", "0.81754756", "0.8084906", "0.8084906", "0.8084906", "0.8084906", "0.8084906", "0.8084906", ...
0.80879456
44
The number of records that have been successfully ingested.
def dl04(YKHO) -> qe4Y.Output[int]: return qe4Y.get(YKHO, 'ingested_record_count')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dl04(YKHO) -> int:\n return qe4Y.get(YKHO, 'ingested_record_count')", "def WvAD(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'valid_record_count')", "def s2rh(YKHO):\n return YKHO.__num_records", "def m94Z(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'total_record_count')", "def...
[ "0.8487349", "0.7815422", "0.7733585", "0.75136316", "0.749256", "0.7402974", "0.73891795", "0.73745716", "0.73220044", "0.73096746", "0.73080456", "0.72314", "0.7164667", "0.7136669", "0.71226245", "0.7111875", "0.71010864", "0.71010864", "0.71010864", "0.71010864", "0.71010...
0.8518079
0
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
def type(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '...
[ "0.7918516", "0.7918516", "0.7866337", "0.7866337", "0.7866337", "0.7866337", "0.7866337", "0.7708053", "0.75534964", "0.7282099", "0.70591027", "0.6979169", "0.69202054", "0.6868452", "0.67303157", "0.67049116", "0.6654272", "0.6646357", "0.66396123", "0.66396123", "0.663961...
0.0
-1
1D array of the range of xcoordinates of simulated grid points.
def fiGP(YKHO): return YKHO._x_points
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OVow(YKHO) -> oyIN.array:\n LSh8, CN9P = YKHO.get_xrange_indices()\n return YKHO.x[LSh8, CN9P + 1]", "def OVow(YKHO):\n return (YKHO.xvec[0], YKHO.xvec[-1])", "def pDX4(YKHO):\n W8qs = [oyIN.random.randint(low=0, high=YKHO.total_windows - YKHO.buffer_needed) for bGrB in range(YKHO.total_points)...
[ "0.78571814", "0.7176431", "0.69910145", "0.6824067", "0.675544", "0.6752765", "0.6751219", "0.67341363", "0.6685781", "0.66097045", "0.66063", "0.66007453", "0.656058", "0.6520074", "0.651184", "0.6488101", "0.647228", "0.6442931", "0.6423826", "0.63745934", "0.6354807", "...
0.6104764
33
1D array of the range of ycoordinates of simulated grid points.
def vNbQ(YKHO): return YKHO._y_points
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nxyw(YKHO, ABDL):\n B1Wx = YKHO.resolution(ABDL)\n return oyIN.arange(0, (YKHO.y_extent + B1Wx - 1) // B1Wx, 64)", "def NmOH(YKHO):\n WKvO = YKHO.center_grid.x0 + oyIN.arange(YKHO.nx) * YKHO.dx\n YJkM = YKHO.corner_grid.y0 + oyIN.arange(YKHO.ny + 1) * YKHO.dy\n return oyIN.meshgrid(WKvO, YJkM)...
[ "0.65916383", "0.6579203", "0.6470338", "0.6320861", "0.6312931", "0.6268279", "0.6261383", "0.62526274", "0.61985606", "0.61934626", "0.61716056", "0.6162058", "0.6158355", "0.6142149", "0.6118493", "0.61113155", "0.61075926", "0.6102357", "0.6090378", "0.6074509", "0.607450...
0.6352446
3
Test API can edit an existing candidate. (PUT request)
def RHqF(YKHO): YKHO.register_user() Aofo = YKHO.login_user() NT__ = qQXR.loads(Aofo.data.decode())['access_token'] im04 = YKHO.client().post('/candidate', headers=dict(Authorization=NT__), data=YKHO.candidate) YKHO.assertEqual(im04.status_code, 201) dixj = qQXR.loads(im04.data.decode()) im0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zX4x(YKHO):\n geh0 = YKHO.app.put('/api/v1/users/rides/1', data=qQXR.dumps(YKHO.ride), content_type='application/json', headers=YKHO.headers)\n YKHO.assertEqual(geh0.status_code, 200)\n Bv0m = qQXR.loads(geh0.get_data().decode('utf-8'))\n YKHO.assertEqual(Bv0m['start point'], 'Juja')", "def VZul(...
[ "0.6611098", "0.66103894", "0.64359283", "0.631056", "0.6284428", "0.6220648", "0.6183864", "0.61323905", "0.6097053", "0.6091945", "0.6084329", "0.60665303", "0.6065541", "0.60520715", "0.60402054", "0.60301983", "0.6026076", "0.6023222", "0.6022955", "0.6002233", "0.5990035...
0.835647
0
Return the learning rate for the network depending on the size
def tspZ(YKHO): return 0.1 / YKHO.h ** 1.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkTt():\n return 1e-05", "def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr", "def NkTt(b0Ix, wjbX, Jy20):\n with ZylS.name_scope('learning_rate'):\n wbn8 = ZylS.to_float(Jy20)\n YPaw = ZylS.to_float(ZylS.train.get_or_create_global_step())\n b0Ix *= wjbX ** ...
[ "0.78287953", "0.7724514", "0.7442814", "0.73025054", "0.73025054", "0.72176313", "0.7148397", "0.71479964", "0.71163183", "0.7093668", "0.6739542", "0.6723354", "0.6671022", "0.6593442", "0.6576625", "0.65572596", "0.65374106", "0.65373266", "0.65011245", "0.64905524", "0.64...
0.0
-1
Return the learning rate for the network depending on the size
def tspZ(YKHO): return 0.1 / YKHO.h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkTt():\n return 1e-05", "def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr", "def NkTt(b0Ix, wjbX, Jy20):\n with ZylS.name_scope('learning_rate'):\n wbn8 = ZylS.to_float(Jy20)\n YPaw = ZylS.to_float(ZylS.train.get_or_create_global_step())\n b0Ix *= wjbX ** ...
[ "0.78287953", "0.7724514", "0.7442814", "0.73025054", "0.73025054", "0.72176313", "0.7148397", "0.71479964", "0.71163183", "0.7093668", "0.6739542", "0.6723354", "0.6671022", "0.6593442", "0.6576625", "0.65572596", "0.65374106", "0.65373266", "0.65011245", "0.64905524", "0.64...
0.0
-1
Tries to get the coordinates for the given stations.
def xsU0(KYrJ, VsZX): _UuI = [] fopC = [] for UTX6, KgtT in zip(KYrJ, VsZX): try: Oa1e = Yha6.osm('{}, {}, New York'.format(UTX6, KgtT)).json _UuI.append(Oa1e['lat']) fopC.append(Oa1e['lng']) except: _UuI.append(None) fopC.append(No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t9_r(gnAD, VipJ):\n TjCJ = gnAD['gridReference']\n gXTo = TjCJ[:2]\n gnAD['precision'] = 10 ** (5 - len(TjCJ[2:]) / 2)\n gnAD['easting'] = VipJ[gXTo][0] + int(TjCJ[2:len(TjCJ[2:]) / 2 + 2]) * gnAD['precision']\n gnAD['northing'] = VipJ[gXTo][1] + int(TjCJ[len(TjCJ[2:]) / 2 + 2:]) * gnAD['precisi...
[ "0.6694319", "0.642123", "0.63363254", "0.62377053", "0.62344146", "0.61675394", "0.60888624", "0.5959338", "0.595098", "0.5932836", "0.5925174", "0.5890509", "0.5879424", "0.5800218", "0.579859", "0.57925904", "0.5722443", "0.57109815", "0.5709719", "0.5709719", "0.56924045"...
0.55364794
31
Compute and return the output of the network when parameterized with `params` on `input_data`.
def E2Gd(YKHO, NArs, WbAn): kdJa = dict(zip(YKHO.network_params, NArs)) kdJa[YKHO.X_Minibatch] = WbAn return YKHO.session.run(YKHO.f_output, feed_dict=kdJa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SviG(YKHO, WbAn: np.ndarray) -> oyIN.ndarray:\n if WbAn.shape[0] != YKHO.input_layer_size:\n raise IndexError(f'Input data length is {WbAn.shape[0]}, must match length of input layer size {YKHO.input_layer_size}')\n Yuwc = oyIN.zeros(YKHO.hidden_layer_size, dtype=oyIN.float32)\n for G4DJ in ran...
[ "0.6962737", "0.65651304", "0.64880806", "0.62049186", "0.61080664", "0.61079204", "0.6062648", "0.6043072", "0.5967871", "0.5962566", "0.5879268", "0.58225167", "0.58205044", "0.5813368", "0.5806537", "0.5801782", "0.57999605", "0.57720494", "0.57394594", "0.5698388", "0.568...
0.8428336
0
Compute and return the output of the network when parameterized with `params` on `input_data`.
def Z_AU(YKHO, D5Q4, WbAn): kdJa = {} kdJa[YKHO.X_Minibatch] = WbAn return YKHO.session.run(YKHO.pred_output[D5Q4], feed_dict=kdJa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E2Gd(YKHO, NArs, WbAn):\n kdJa = dict(zip(YKHO.network_params, NArs))\n kdJa[YKHO.X_Minibatch] = WbAn\n return YKHO.session.run(YKHO.f_output, feed_dict=kdJa)", "def SviG(YKHO, WbAn: np.ndarray) -> oyIN.ndarray:\n if WbAn.shape[0] != YKHO.input_layer_size:\n raise IndexError(f'Input data l...
[ "0.8427756", "0.69635", "0.65663815", "0.648931", "0.62063706", "0.6109536", "0.61083716", "0.60447276", "0.5968614", "0.5964566", "0.58792645", "0.5823191", "0.5822008", "0.58138376", "0.5807008", "0.58025354", "0.58011687", "0.57735956", "0.5739798", "0.5700363", "0.5679638...
0.6064794
7
Cumulative standard normal distribution.
def gaWM(WKvO): XOOk = 0.254829592 pHXX = -0.284496736 MgfK = 1.421413741 h2Hz = -1.453152027 Os2l = 1.061405429 XP5J = 0.3275911 Zihr = 1 if WKvO < 0: Zihr = -1 WKvO = abs(WKvO) / epAf.sqrt(2.0) a1PO = 1.0 / (1.0 + XP5J * WKvO) LVAh = 1.0 - ((((Os2l * a1PO + h2Hz) * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XA7A(epBp):\n from math import exp\n kYGz = +0.31938153\n ftz7 = -0.356563782\n _2fo = +1.781477937\n BZh4 = -1.821255978\n CH56 = +1.330274429\n XP5J = +0.2316419\n Z9rn = +0.39894228\n if epBp >= 0.0:\n a1PO = 1.0 / (1.0 + XP5J * epBp)\n return 1.0 - Z9rn * exp(-epBp ...
[ "0.76851344", "0.74152076", "0.73346686", "0.7244333", "0.71839005", "0.7131577", "0.69278485", "0.6810465", "0.67138207", "0.67137516", "0.67103475", "0.6588341", "0.65674835", "0.6525102", "0.65181786", "0.6465767", "0.6455078", "0.639367", "0.6375049", "0.6215783", "0.6209...
0.0
-1
This is a primitive function of e^(gamma y)sin ((n pi y)/A), multiplied by 2/Aexp(gammay).
def KkY2(exwG, KMvS, k0lF, LVAh): return (2 * k0lF * KMvS * epAf.sin(epAf.pi * exwG * LVAh / k0lF) - 2 * epAf.pi * exwG * epAf.cos(epAf.pi * exwG * LVAh / k0lF)) / (k0lF ** 2 * KMvS ** 2 + epAf.pi ** 2 * exwG ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p0WX(WKvO, RqgG, sTns):\n return RqgG * oyIN.exp(-WKvO / sTns)", "def FaRZ(WKvO):\n KMvS = 0.577215665\n return -KMvS - B_0t(WKvO, 1) - oyIN.log(WKvO)", "def GsUB(WKvO, RHJb):\n return 1 / oyIN.pi * 1 / RHJb * oyIN.exp(-(WKvO / RHJb) ** 2)", "def vuvg(WKvO):\n return epAf.exp(-0.5 * WKvO *...
[ "0.6812344", "0.67157173", "0.66481435", "0.651393", "0.6510742", "0.64022386", "0.6401282", "0.6373076", "0.63730127", "0.6355589", "0.63467276", "0.6331447", "0.6275051", "0.6263549", "0.6216546", "0.6213597", "0.6194261", "0.6193766", "0.616869", "0.6166437", "0.6155559", ...
0.74732214
0
Returns a numpy array that is binary packed.
def KsmB(m6Me): jzdc = m6Me.astype('i1') Fg_i = jzdc.reshape((-1, 2)) Fg_i[:, 1] = Fg_i[:, 1] << 4 Z9rn = oyIN.bitwise_or(Fg_i[:, 0], Fg_i[:, 1]).astype('i1') return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EOyd(ezWE):\n return [oyIN.array(gJEt).tobytes() for gJEt in ezWE]", "def c5ow(nPrm):\n pLEX = R3u8()\n pLEX.frombytes(nPrm)\n return pLEX", "def b7Sy(ezWE: ndarray) -> gyIm:\n ezWE = ezWE.ravel()\n return (ezWE[::2] + (ezWE[1::2] << 4)).astype('uint8')", "def llJG(YKHO):\n from bits...
[ "0.68155456", "0.6657949", "0.655781", "0.6490013", "0.6446903", "0.6441773", "0.64400554", "0.6390015", "0.63689923", "0.6288171", "0.62178695", "0.62070173", "0.6167479", "0.61575425", "0.6156892", "0.6128707", "0.61157036", "0.6106918", "0.609474", "0.60929173", "0.6087773...
0.60609436
22
Update Gaussian parameters with diagonal covariance
def WuOS(EcVT, s6GH, rgTr=5.0): ywwl = EcVT.shape[0] lWPh = EcVT.shape[1] E3D9 = s6GH.shape[1] B9EC = oyIN.zeros((E3D9, lWPh)) QYVD = oyIN.zeros((E3D9, lWPh)) for G1Hx in range(E3D9): for exwG in range(ywwl): B9EC[G1Hx, :] += oyIN.exp(s6GH[exwG, G1Hx]) * EcVT[exwG, :] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ioae(YKHO):\n raise RuntimeError('Internal cosmosis error in SingleValueGaussianLikelihood')", "def Ioae(YKHO):\n raise RuntimeError('Your Gaussian covariance code needs to over-ride the build_covariance method so it knows how to load the data covariance (or set constant_covariance=False and over-ride ...
[ "0.6520932", "0.6244814", "0.6132422", "0.6097101", "0.5980771", "0.59680223", "0.5890005", "0.58773696", "0.5821621", "0.5801322", "0.579809", "0.5795447", "0.57706726", "0.5733653", "0.573118", "0.57129925", "0.5638596", "0.5631603", "0.5613267", "0.56101966", "0.55793625",...
0.5636483
17
Force the module under test to be reimported. Because pytest runs all tests within the same scope (this makes me cry) we have to do some manual housekeeping to avoid tests polluting each other. Since conftest.py already does some sys.modules mangling I see no reason not to do the same thing here.
def NuhN(yR_P): if '.' in yR_P: paSp = yR_P.split('.') else: paSp = [yR_P] for YRbF in range(len(paSp)): yR_P = '.'.join(paSp[0:YRbF + 1]) try: del HwRy.modules[yR_P] except KeyError: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOKG(YKHO):\n uuha = TMAJ.MagicMock()\n G7Q1('tests.utils.test_module', uuha)\n import tests.utils.test_module\n iJKP(lfdS.utils.test_module)\n YKHO.assertEqual(uuha.call_count, 2)", "def X8xF(hxGQ):\n for G1Hx in list(HwRy.modules):\n if not isinstance(G1Hx, str):\n conti...
[ "0.6746044", "0.66979873", "0.6477635", "0.63719857", "0.6252365", "0.6235158", "0.62041223", "0.6198232", "0.6108221", "0.6085866", "0.6078852", "0.60534996", "0.60254765", "0.600301", "0.5997715", "0.59392923", "0.5877362", "0.587497", "0.5871731", "0.586319", "0.585239", ...
0.7124968
0
Create new rz single qubit gate.
def FIMM(YKHO, rVnq): super().__init__('rz', 1, [rVnq])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dnz0(YKHO, rVnq, vexM):\n return YKHO.append(cKtp(rVnq), [vexM], [])", "def Nk6w(YKHO, cPnd):\n YKHO.apply_gate_operation('Z', cPnd)", "def MJVf(YKHO, x_QX) -> Rv0t:\n ewpR = kLP0(name=YKHO.__rabi_gate_name__, num_qubits=1, params=[x_QX])\n DPNn = Rv0t(1)\n DPNn.append(ewpR, (0,))\n DPNn....
[ "0.64287657", "0.6099297", "0.5898651", "0.5861154", "0.580816", "0.57955754", "0.57367224", "0.5729241", "0.5719736", "0.5706072", "0.5680553", "0.5639831", "0.5627709", "0.5623784", "0.56206375", "0.55766356", "0.55131817", "0.54742813", "0.544934", "0.5444207", "0.53942406...
0.47234657
100
Apply Rz to q.
def dnz0(YKHO, rVnq, vexM): return YKHO.append(cKtp(rVnq), [vexM], [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LaXt(vexM):\n pnwv, HmiG = (YUNn(vexM), YhSR(vexM))\n return XTiz.matrix([[HmiG, pnwv, 0, 0], [-pnwv, HmiG, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]])", "def Nk6w(YKHO, cPnd):\n YKHO.apply_gate_operation('Z', cPnd)", "def p5XC(YKHO, QTBn, MPlV, **B2fa):\n return YKHO._apply_phase(QTBn, MPlV, -1)", "...
[ "0.70316553", "0.6450491", "0.632264", "0.6186978", "0.6071907", "0.59562814", "0.58147013", "0.57785785", "0.57325786", "0.5728475", "0.57197875", "0.56993246", "0.5659389", "0.5620494", "0.56044215", "0.5576617", "0.5520912", "0.5506319", "0.5459853", "0.54062986", "0.54034...
0.68994224
1
Set the name of the room
def WZrJ(YKHO, XIAj): YKHO.name = XIAj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R", "def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)", "def WZrJ(YKHO, mWFP: str) -> None:\n _e0h.wlr_seat_set_name(YKHO._ptr, mWFP.encode())", "def a12t(YKHO, gv2B: str, BdN0: str):\n for abiq in YKHO.rooms:\n if abiq.name == gv2B:\n abiq...
[ "0.713663", "0.70908546", "0.70468944", "0.69912845", "0.6983755", "0.6948137", "0.6906284", "0.6906284", "0.6906284", "0.6906284", "0.6906284", "0.68945503", "0.68945503", "0.68907464", "0.68319714", "0.68319714", "0.68319714", "0.68319714", "0.6798939", "0.67978996", "0.678...
0.9014936
0
Connect rooms together, to create the map of rooms
def g7t1(YKHO, _3r9, XSoh): YKHO.linked_rooms[XSoh] = _3r9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eEEi(YKHO):\n DFSo = YKHO.model.get_all_rooms()\n for abiq in DFSo:\n YKHO._add_room(abiq)", "def G2kF(O7kA, abiq):\n for WKvO in range(abiq.x1 + 1, abiq.x2):\n for LVAh in range(abiq.y1 + 1, abiq.y2):\n O7kA.terrain[WKvO][LVAh] = 1", "def DFSo(*qIxc):\n s_GD.system_mes...
[ "0.6852546", "0.6832722", "0.6804679", "0.6800517", "0.67645746", "0.67229444", "0.65797603", "0.6555584", "0.65234435", "0.65117246", "0.64874405", "0.6484442", "0.6471041", "0.64631975", "0.6395378", "0.636149", "0.6319884", "0.6252946", "0.61874944", "0.61856043", "0.61520...
0.6127214
22
Get the index left child of index
def LFlW(YKHO, d6pt): try: if d6pt == YKHO.root_index(): d6pt = YKHO.adjacency_list[d6pt][0] else: d6pt = YKHO.adjacency_list[d6pt][1] return d6pt except IndexError: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdj0(YKHO, d6pt):\n return 2 * d6pt + 1", "def cdj0(YKHO, d6pt):\n return 2 * d6pt", "def uI3T(YKHO):\n return 2 * YKHO.index + 1", "def ixOR(or8S):\n return (or8S << 1) + 1", "def uI3T(YKHO, _AKB):\n return 2 * _AKB + 1", "def urqV(YKHO, d6pt):\n return 2 * d6pt + 1", "def cdj0(Y...
[ "0.90987784", "0.90317005", "0.8905215", "0.8503361", "0.8332863", "0.8146887", "0.7957613", "0.7887684", "0.7869901", "0.7869901", "0.78112483", "0.7800396", "0.77713263", "0.7691286", "0.76460344", "0.7619399", "0.7607053", "0.7548032", "0.75244474", "0.74123925", "0.740149...
0.80303824
6
Compute finite difference approximation to firstderivative of f
def YbfD(eHNT, SGf8, WKvO, Jw7X, ht58): if ht58 == 'fd1': KaIg = eHNT(WKvO) ytgA = eHNT(WKvO + SGf8 * Jw7X) return 1.0 / SGf8 * (ytgA - KaIg) elif ht58 == 'bd1': KaIg = eHNT(WKvO) ej8u = eHNT(WKvO - SGf8 * Jw7X) return 1.0 / SGf8 * (KaIg - ej8u) elif ht58 == '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BESI(WKvO, eHNT):\n BXW4 = oyIN.diff(eHNT, n=1)\n BXW4 = oyIN.insert(BXW4, -1, 2 * BXW4[-1] - BXW4[-2])\n Jw7X = WKvO[1] - WKvO[2]\n return BXW4 / Jw7X", "def EFD8(eHNT, WKvO, YRbF, _hZ2=1e-10):\n A3mO = oyIN.copy(WKvO).astype(oyIN.float64)\n A3mO[YRbF] = A3mO[YRbF] + _hZ2\n BWXx = (eHNT...
[ "0.82054245", "0.77715814", "0.7437851", "0.7435485", "0.7296304", "0.7296304", "0.71847135", "0.71778184", "0.71445215", "0.70453423", "0.69946945", "0.6958921", "0.6929292", "0.6924365", "0.6880624", "0.6861173", "0.68156135", "0.67985636", "0.6746113", "0.67382216", "0.672...
0.65189505
28
Settlement date, formatted as yyyyMM or yyyyMMdd (ISO8601)
def QeKj(YKHO) -> qcWV.date: return YKHO.__settlement_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KOqi():\n cY5_ = qcWV.now(rIAI.utc).date() + fCoM(days=2)\n QeKj = cY5_.strftime('%Y%m%d')\n return QeKj", "def QeKj(YKHO, BWXx):\n if BWXx:\n YKHO._settlement_date = hfK9(BWXx).date() if isinstance(BWXx, my84) else BWXx", "def GX6r(_c1T):\n return _c1T.strftime('%m/%d/%Y')", "def p...
[ "0.73603165", "0.6983856", "0.65309083", "0.65231663", "0.6507806", "0.63602024", "0.62975174", "0.624039", "0.62308675", "0.62168384", "0.617023", "0.6140942", "0.61178774", "0.61154044", "0.6107389", "0.60865355", "0.6077755", "0.6075849", "0.60738987", "0.6050871", "0.6048...
0.72565615
1
Creation time as ISO8601 UTC instant
def wqpv(YKHO) -> qcWV.datetime: return YKHO.__created_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XAPA(YKHO):\n return '%Y/%m/%d %I:%M:%S'.format(YKHO.creation_time)", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')", "def XGAw(YKHO) -> s...
[ "0.76311934", "0.76114553", "0.76114553", "0.76114553", "0.741649", "0.73525983", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246", "0.7321246",...
0.68319273
57
Return callable that returns config value if it exists.
def x0PB(mWFP): def NMoC(): try: return GPtr.get('yourls', mWFP) except (qMRL, EtCm): return None return NMoC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BzgC(YKHO, BWXx):\n try:\n wEf2 = getattr(YKHO.configuration, BWXx)\n except AttributeError:\n wEf2 = None\n return wEf2", "def nrOS(YKHO, mWFP):\n return getattr(YKHO.config, mWFP, getattr(YKHO, mWFP, None))", "def ITzR():\n assert callable(GPtr.get)", "def uFKh(_DBc, WmM4=N...
[ "0.63374597", "0.63292855", "0.63210374", "0.62549025", "0.6202626", "0.6121607", "0.60557956", "0.59862566", "0.59833014", "0.59367955", "0.5911785", "0.58831775", "0.5851627", "0.5848557", "0.5846965", "0.5840532", "0.58229953", "0.58227575", "0.5800165", "0.577961", "0.577...
0.709517
0
Add one or more MQTT topics to subscribe to. Add the topic(s) afterwards to the list of subscribedto topics.
def DfnJ(YKHO, rlUa: str | list[str], db6b: MQTTCallback=None, **B2fa: Any) -> None: def UD6_(rlUa: str) -> None: """ Handle subscription of a single topic. """ if rlUa in YKHO.subscribedTopics: YKHO.messageHandler and YKHO.messageHandler.logging(YKHO.mqttClient, G9jH.WARNING, f'MQTT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4NO(YKHO, AdpB: List[str]) -> None:\n YKHO.log.debug(f'Adding {AdpB} to {YKHO.topics}')\n YKHO.topics.extend(AdpB)", "def SY91(YKHO, rlUa):\n if rlUa not in YKHO.subscriptions:\n YKHO.subscriptions.append(rlUa)\n YKHO.mqtt.subscribe(rlUa)", "def vI1d(YKHO, AdpB):\n G9jH.debug(f'L...
[ "0.79668194", "0.7013201", "0.68434346", "0.65632993", "0.6552192", "0.64358073", "0.6357499", "0.6307314", "0.6243517", "0.62268454", "0.6182504", "0.6163507", "0.6141364", "0.6074601", "0.6019518", "0.600262", "0.5982004", "0.59341836", "0.5918623", "0.59090877", "0.5887492...
0.64738464
5
Unsubscribe from a topic. `topic` is either an MQTTTopic structure with a previously subscribed to topic, or a topic name, in which case it is searched for in the list of MQTTTopics.
def YTIn(YKHO, rlUa: str | MQTTTopic) -> None: if isinstance(rlUa, e1Oa): if rlUa.topic not in YKHO.subscribedTopics: YKHO.messageHandler and YKHO.messageHandler.logging(YKHO.mqttClient, G9jH.WARNING, f'MQTT: unknown topic: {rlUa.topic}') return if (Mkmy := YKHO.mqttClient.un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_4S(YKHO, rlUa):\n QePW = oFZE.RequestUnsubscribe(topic=rlUa)\n return YKHO.stub.unsubscribe(QePW)", "async def unsubscribe(YKHO, rlUa: str, JuHa: int=None) -> None:\n ...", "def eQny(YKHO, pqAP: str) -> bool:\n Aofo = YKHO.__twitch.delete_eventsub_subscription(pqAP)\n if Aofo:\n YKH...
[ "0.8346598", "0.77913505", "0.75999", "0.7499919", "0.7160631", "0.6972879", "0.68356097", "0.6703196", "0.6680555", "0.6609505", "0.6113541", "0.59910476", "0.583082", "0.58190256", "0.57220286", "0.57081944", "0.5667056", "0.56057805", "0.5574315", "0.556646", "0.55532223",...
0.859222
0
Check whether the number managed subscriptions matches the number of currently subscribedto topics.
def BW0C(YKHO) -> bool: return YKHO.subscribedCount == len(YKHO.subscribedTopics)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tPrd(YKHO):\n ouLf = OEPY(product=YKHO.desktop)\n NaW5(len(ouLf), 3)\n xcT1 = OEPY(product=YKHO.mobile)\n NaW5(len(xcT1), 2)", "def Emrm(YKHO, O7Jy):\n return YKHO._count_publishers_or_subscribers(O7Jy, H8PP.rclpy_count_subscribers)", "def Oyh0(Emd4, rlUa):\n if Emd4.all().filter('topic_h...
[ "0.6529019", "0.64319134", "0.6344029", "0.61946326", "0.61635345", "0.60581344", "0.60397667", "0.6008687", "0.6005124", "0.60028076", "0.5832667", "0.57937104", "0.57245815", "0.57192606", "0.569042", "0.5664807", "0.5654088", "0.5635794", "0.56060433", "0.559429", "0.55886...
0.6339416
3
Return the name of the sensor.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.0
-1
Return the state attributes.
def R1i3(YKHO): return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def upgy(YKHO)...
[ "0.8953404", "0.8953404", "0.85239846", "0.8366765", "0.8366765", "0.8363429", "0.83362615", "0.8334551", "0.8310377", "0.8292682", "0.8289349", "0.8289349", "0.8273077", "0.82236886", "0.8223562", "0.8205066", "0.8184393", "0.81659013", "0.8102565", "0.8064994", "0.8064994",...
0.82871646
19
Split the input data to test / train split to be used in machine learning
def FIMM(YKHO, VD8l, PnKf, xa0w: float, yokr: int): super().__init__(predictor_vars=VD8l, response_var=PnKf) YKHO.seed = yokr YKHO.train_split = xa0w if type(YKHO.seed) != int: raise ValueError(f'seed value not an int, it is {YKHO.seed}') if not type(YKHO.train_split) == float: raise...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cTf9(onqj):\n XxFT, t4zr = bHtP(onqj, test_size=0.2, random_state=42)\n return (XxFT, t4zr)", "def Qb89(nPrm, NI2E):\n q4Iw = int(round(len(nPrm) * (1 - NI2E))) + 1\n EvQg, QOe9 = (nPrm[:q4Iw], nPrm[q4Iw:])\n return (EvQg, QOe9)", "def JWSc(nPrm):\n raise NotImplementedError", "def Qb89...
[ "0.85633165", "0.8388454", "0.8346235", "0.8271904", "0.8251709", "0.8218088", "0.8209363", "0.8198223", "0.81865114", "0.80025434", "0.7921232", "0.7919696", "0.7889015", "0.78807575", "0.78798896", "0.78700984", "0.78617764", "0.7857819", "0.7816629", "0.774531", "0.771966"...
0.0
-1
Sets the heap_max of this TaskManagerMetricsInfo.
def zOZi(YKHO, zOZi): YKHO._heap_max = zOZi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NnR0(YKHO, NnR0):\n YKHO._non_heap_max = NnR0", "def PH89(YKHO, PH89):\n YKHO._max_memory_mb = PH89", "def guDs(YKHO, zYFS):\n if zYFS is None:\n YKHO.max_mem = None\n return\n elif type(zYFS) is float or type(zYFS) is int:\n noL6 = zYFS\n elif type(zYFS) is str:\n ...
[ "0.6626879", "0.6181461", "0.61811733", "0.61060923", "0.5978751", "0.59258306", "0.59258306", "0.5867038", "0.5867038", "0.5867038", "0.5849855", "0.58473265", "0.5834918", "0.5814143", "0.5769788", "0.5769788", "0.57570934", "0.5704619", "0.56911886", "0.5622587", "0.558877...
0.8110456
0
Sets the non_heap_used of this TaskManagerMetricsInfo.
def PoqO(YKHO, PoqO): YKHO._non_heap_used = PoqO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oh8n(YKHO, Oh8n):\n YKHO._heap_used = Oh8n", "def m12r(YKHO, eBnz):\n YKHO.used_mem = eBnz\n return", "def zI2H(YKHO, zI2H: int):\n YKHO._memory_used = zI2H", "def NnR0(YKHO, NnR0):\n YKHO._non_heap_max = NnR0", "def VjIq(YKHO, VjIq):\n YKHO._non_heap_committed = VjIq", "def ADdk(YK...
[ "0.6291598", "0.6273463", "0.6097252", "0.5613726", "0.55397135", "0.5297318", "0.52758723", "0.5258061", "0.51918805", "0.5188622", "0.49513888", "0.48736694", "0.485139", "0.4845899", "0.4845725", "0.48365203", "0.48168665", "0.47932005", "0.47764748", "0.4773068", "0.47532...
0.794406
0
Sets the non_heap_committed of this TaskManagerMetricsInfo.
def VjIq(YKHO, VjIq): YKHO._non_heap_committed = VjIq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PoqO(YKHO, PoqO):\n YKHO._non_heap_used = PoqO", "def NnR0(YKHO, NnR0):\n YKHO._non_heap_max = NnR0", "def qruF(YKHO, qruF):\n YKHO._heap_committed = qruF", "def V2ch(YKHO, V2ch):\n YKHO._disk_num_not = V2ch", "def A6ob(YKHO, A6ob):\n YKHO._vm_snapshot_num_not = A6ob", "def Oh8n(YKHO, ...
[ "0.64571434", "0.5781086", "0.5648441", "0.5366493", "0.50516164", "0.48842835", "0.48411992", "0.48010585", "0.47936597", "0.47573137", "0.47312197", "0.47151467", "0.4713035", "0.4684705", "0.46108097", "0.4602422", "0.45990223", "0.45906383", "0.457726", "0.45559895", "0.4...
0.78811336
0
Sets the non_heap_max of this TaskManagerMetricsInfo.
def NnR0(YKHO, NnR0): YKHO._non_heap_max = NnR0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PoqO(YKHO, PoqO):\n YKHO._non_heap_used = PoqO", "def zOZi(YKHO, zOZi):\n YKHO._heap_max = zOZi", "def kfKe(YKHO, DChu):\n YKHO.__is_max = DChu", "def Bu0a(YKHO, bQ6z):\n YKHO.MaxValue = bQ6z", "def Bu0a(YKHO, bQ6z):\n YKHO.MaxValue = bQ6z", "def vJrH(YKHO, Z3sz):\n gTEQ('PrlDispCfg...
[ "0.6502602", "0.60926497", "0.60050774", "0.5792456", "0.5792456", "0.5707673", "0.5694867", "0.5675417", "0.5636486", "0.562897", "0.55975515", "0.554014", "0.5482629", "0.5482629", "0.5482629", "0.54631966", "0.54631966", "0.54238504", "0.54039484", "0.54009366", "0.539634"...
0.8380408
0
Sets the mapped_count of this TaskManagerMetricsInfo.
def WmQu(YKHO, WmQu): YKHO._mapped_count = WmQu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RVTN(YKHO, cBKN):\n YKHO.mapped_info = cBKN", "def UYFc(YKHO, UYFc):\n YKHO._mapped_used = UYFc", "def wOFl(YKHO, wOFl):\n YKHO._process_count = wOFl", "def vaWL(YKHO):\n MswJ = YKHO.wait().until(i1TH.presence_of_element_located(YKHO.line_item_mapping_grid_count_span_locator), 'line item mapp...
[ "0.66207695", "0.64716375", "0.56269515", "0.5459901", "0.53556633", "0.531744", "0.5303203", "0.52530044", "0.5246449", "0.52354133", "0.5216228", "0.5139872", "0.5057147", "0.5055907", "0.5055124", "0.49604854", "0.4921465", "0.48765808", "0.48717633", "0.48644963", "0.4860...
0.81148535
0
Sets the memory_segments_total of this TaskManagerMetricsInfo.
def PBKF(YKHO, PBKF): YKHO._memory_segments_total = PBKF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SkKE(YKHO, SkKE):\n YKHO._total_memory = SkKE", "def tyHK(YKHO, poLx):\n YKHO.total_mem = poLx\n return", "def msVb(YKHO, msVb):\n YKHO._total_actual_memory = msVb", "def QKwt(YKHO, QKwt):\n YKHO._memory_segments_available = QKwt", "def N068(YKHO, N068):\n YKHO._total_allocated_memory...
[ "0.7018766", "0.6743253", "0.66498226", "0.65172005", "0.6190984", "0.5889619", "0.57065934", "0.5548552", "0.5511228", "0.540781", "0.53714246", "0.533922", "0.5301006", "0.52449936", "0.5217802", "0.51979667", "0.5142255", "0.51377094", "0.50974166", "0.50959224", "0.509259...
0.86381906
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, usvP): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Returns chunks of an iterable at a time.
def WaSS(OxJJ, zNig): WhY1 = iter(OxJJ) while True: yOAJ = tuple(Hs6x.islice(WhY1, zNig)) if len(yOAJ) == 0: break yield yOAJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChZT(OxJJ, zNig):\n for YRbF in range(0, len(OxJJ), zNig):\n yield OxJJ[YRbF:YRbF + zNig]", "def ChZT(OxJJ, zNig):\n for YRbF in range(0, len(OxJJ), zNig):\n yield OxJJ[YRbF:YRbF + zNig]", "def ChZT(OxJJ, zNig):\n for YRbF in range(0, len(OxJJ), zNig):\n yield OxJJ[YRbF:YRbF +...
[ "0.75042737", "0.75042737", "0.75042737", "0.74160326", "0.7318999", "0.7310084", "0.7295632", "0.7238026", "0.72255385", "0.7215634", "0.72145677", "0.7185212", "0.7139658", "0.7116562", "0.7091419", "0.7053181", "0.7033942", "0.6988627", "0.69878596", "0.69781035", "0.69754...
0.7122963
13