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
Test we handle no device found error.
async def test_form_no_device(ajET: HomeAssistant) -> None: Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': kzTJ.SOURCE_USER}) with Po4F('pyfronius.Fronius.current_logger_info', side_effect=G366), Po4F('pyfronius.Fronius.inverter_info', return_value={'inverters': []}): EtKK = a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wAUv(tTpl):\n G9jH.info('Error: {0}'.format(tTpl))\n G9jH.info('Make sure the blink(1) device is plugged in.')\n G9jH.info('Exiting.')\n HwRy.exit(1)", "def bvnc(YKHO):\n YKHO.assertRaises(Gxxx.OpenCLClientException, YKHO.devicesAPI.GetDeviceProperties, YKHO.deviceResponses.inexistentDevice)",...
[ "0.76405585", "0.73311025", "0.728665", "0.715295", "0.71329886", "0.6989186", "0.6928902", "0.6825899", "0.6825555", "0.67965543", "0.6778626", "0.67733884", "0.67529535", "0.6742285", "0.6720697", "0.66891533", "0.66544116", "0.66496056", "0.6595", "0.6575963", "0.65754807"...
0.0
-1
Initializes a storeable object.
def FIMM(YKHO, H5ew, nPrm): YKHO.__class__.dataMap_[H5ew] = nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, VUF1=None):\n raise NotImplementedError", "def FIMM(YKHO):\n YKHO._store = P39m()", "def FIMM(YKHO):\n YKHO.store = dict()", "def FIMM(YKHO, eOIA):\n YKHO._store_path = eOIA", "def FIMM(YKHO):\n YKHO.key_store = {}\n YKHO.hash_store = {}", "def FIMM(YKHO):\n YKHO.init(...
[ "0.79264605", "0.7802816", "0.747973", "0.7276182", "0.71894664", "0.71862596", "0.70296884", "0.6974698", "0.694922", "0.6939661", "0.68678486", "0.68368113", "0.68318963", "0.6778589", "0.67135966", "0.66622674", "0.6655708", "0.6632342", "0.66089714", "0.6573974", "0.65692...
0.0
-1
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) bGrB, W60f = hlel.topk(1, 1, True, True) W60f = W60f.t() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(...
[ "0.8317406", "0.8285652", "0.82828414", "0.8281149", "0.82362676", "0.82337403", "0.822514", "0.82245225", "0.82118344", "0.81912935", "0.81870127", "0.818126", "0.8180909", "0.8179992", "0.81788236", "0.81788236", "0.8178704", "0.81778836", "0.8177197", "0.81756", "0.8173057...
0.0
-1
dict associating to each node its unique immediate dominator
def j64p(YKHO): if YKHO._immediate_dominator_map is None: YKHO._immediate_dominator_map = jg8a(YKHO.dominator_map, YKHO.bb_list) return YKHO._immediate_dominator_map
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FO7n(j64p, tk5Y):\n p3Gc = Mlko(tk5Y)\n for FTER in j64p:\n PLJb = j64p[FTER]\n if not PLJb in p3Gc:\n p3Gc[PLJb] = []\n p3Gc[PLJb].append(FTER)\n return p3Gc", "def GIDu(YKHO) -> dict:\n YKHO.relation = YKHO.read_ppis()\n Ziit = set()\n for wvau in YKHO.rela...
[ "0.6403566", "0.6311521", "0.6245531", "0.6209956", "0.6169927", "0.61088413", "0.6060346", "0.6047059", "0.6037693", "0.59816706", "0.5974027", "0.59696513", "0.59269494", "0.5839943", "0.5839764", "0.583634", "0.58323884", "0.58221334", "0.5815543", "0.57762", "0.57670385",...
0.6330589
1
return the head basicblock, i.e. the entry bb for the current node implementation
def oCCZ(YKHO, QdU6, zaZY=None, kGZX=None, iukK=None): assert not isinstance(QdU6, em1m) ggGq = YKHO.get_current_bb() if isinstance(QdU6, Zcxj): ggGq = vMQb(YKHO, QdU6) elif isinstance(QdU6, wcrq): FZPZ = YKHO.get_new_loop_id() ggGq = Jvgr(YKHO, QdU6, loop_id=FZPZ) elif isins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rt0o(YKHO):\n return qjwc.head_sptr_to_basic_block(YKHO)", "def xJZL(YKHO):\n return YKHO._gdgp()['head_block_number']", "def sdCG(YKHO):\n XkN1 = YKHO.db.get(YKHO._head_hash)\n return XkN1", "def Yot2(YKHO):\n return YKHO.base.getInnerHead()", "def tmL8(YKHO):\n return YKHO.head_node...
[ "0.7314812", "0.72881025", "0.72510904", "0.6972128", "0.66078395", "0.65971446", "0.65302706", "0.643116", "0.64001906", "0.6345441", "0.6333907", "0.6333907", "0.6333907", "0.6333907", "0.63107544", "0.630811", "0.6291016", "0.6291016", "0.62615985", "0.62594855", "0.625379...
0.0
-1
Convert an input frame to a binary image which highlight as most as possible the lanelines.
def Ffz0(VXjJ): MKlR, yzQ0 = VXjJ.shape[:2] neaT = oyIN.zeros(shape=(MKlR, yzQ0), dtype=oyIN.uint8) ITiw = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY) bGrB, idx7 = XC5k.threshold(ITiw, thresh=30, maxval=255, type=XC5k.THRESH_BINARY_INV) neaT = oyIN.logical_or(neaT, idx7) hevM = QoEK(VXjJ, kernel_si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qfoC(f4IJ):\n f4IJ = f4IJ[35:195, :]\n f4IJ = zI1D(f4IJ) * 255.0\n f4IJ = Einh(f4IJ, (84, 84))\n return f4IJ[:, :, oyIN.newaxis].astype(oyIN.uint8)", "def qfoC(f4IJ):\n f4IJ = f4IJ[35:195, :]\n f4IJ = zI1D(f4IJ) * 255.0\n f4IJ = Einh(f4IJ, (84, 84))\n return f4IJ[:, :, oyIN.newaxis].a...
[ "0.62251645", "0.62251645", "0.6159044", "0.6091319", "0.60905474", "0.6048299", "0.6048299", "0.5952712", "0.59503466", "0.5930711", "0.58458763", "0.57660764", "0.5719704", "0.5713889", "0.57066303", "0.56785715", "0.56745666", "0.5673699", "0.56704557", "0.5666592", "0.566...
0.55126655
34
Plot fitting lines on an image.
def Hx4M(LNo8, y5bX, qfpW='yellow'): if qfpW == 'yellow': XC5k.polylines(LNo8, [y5bX], False, (0, 255, 255), 1) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s5q4(Aofo, FsGz: np.array, Y6jh: np.array, il5t: np.array):\n Xn71 = hnIv.fromarray(oyIN.array(Aofo, dtype=oyIN.uint8))\n QrM1.imshow(Xn71)\n QrM1.plot(FsGz, il5t, color='yellow')\n QrM1.plot(Y6jh, il5t, color='yellow')\n QrM1.xlim(0, 1280)\n QrM1.ylim(720, 0)\n QrM1.show()", "def nIoP(Y...
[ "0.755617", "0.75218725", "0.7111837", "0.6943137", "0.69261813", "0.68425745", "0.6830197", "0.6777669", "0.6770979", "0.6743515", "0.67423636", "0.667427", "0.66611165", "0.6646901", "0.66439056", "0.66360354", "0.66162264", "0.6613656", "0.6583913", "0.6575932", "0.6567761...
0.65721273
20
Circular shift array using linear interpolation, where 0 <= `shift` < 1
def rKSe(AgUk, DkWr): eAYh = AgUk.size hJLt = eAYh * DkWr EebA = hJLt % 1 eenH = oyIN.zeros(eAYh) if hJLt == 0: eenH += AgUk elif EebA == 0: eenH += oyIN.roll(AgUk, hJLt) else: eenH += (1 - EebA) * oyIN.roll(AgUk, epAf.floor(hJLt)) eenH += EebA * oyIN.roll(AgU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DkWr(LNo8, bCqL, a8Wt):\n return oyIN.roll(oyIN.roll(LNo8, a8Wt, axis=0), bCqL, axis=1)", "def Zg70(LVAh, DkWr, jDK_):\n LVAh = XTiz.asanyarray(LVAh)\n exwG = LVAh.shape[jDK_]\n DkWr %= exwG\n return LVAh.take(XTiz.concatenate((XTiz.arange(DkWr, exwG), XTiz.arange(DkWr))), jDK_)", "def W9Wd(...
[ "0.69212365", "0.6915525", "0.68940187", "0.6808488", "0.66573197", "0.66163194", "0.659107", "0.65826476", "0.655843", "0.6556228", "0.6546875", "0.65373135", "0.6531099", "0.6512309", "0.6489153", "0.6445828", "0.6405031", "0.6394254", "0.6382494", "0.6353981", "0.6321279",...
0.6503967
14
Tests if the ainvariants in 5tuple C specify a singular elliptic curve.
def uJqA(YKHO, Nq1b): XOOk = Nq1b[0] pHXX = Nq1b[1] MgfK = Nq1b[2] h2Hz = Nq1b[3] qfWM = Nq1b[4] ftz7 = XOOk ** 2 + 4 * pHXX BZh4 = 2 * h2Hz + XOOk * MgfK bSnf = MgfK ** 2 + 4 * qfWM wHZN = XOOk ** 2 * qfWM + 4 * pHXX * qfWM - XOOk * MgfK * h2Hz + pHXX * MgfK ** 2 - h2Hz ** 2 uGw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zS17(YKHO, PJWX=False):\n epBp = YKHO.stratum().zeros()\n if epBp == [0] or epBp == [2] or epBp == [1, 1]:\n return True\n if 0 in epBp:\n raise NotImplementedError('is_hyperelliptic method not implemented for cylinder diagrams with fake zeros')\n PCpl = YKHO.nseps()\n if len(epBp)...
[ "0.59950686", "0.592172", "0.59178185", "0.586463", "0.5828727", "0.58046645", "0.5790909", "0.57491076", "0.57308954", "0.5714796", "0.56664604", "0.56653965", "0.56510663", "0.5642515", "0.56331325", "0.5632415", "0.5623979", "0.56221056", "0.5620068", "0.5611478", "0.55961...
0.5918323
2
Return all height/ainvariant tuples of elliptic curves from a list of curve height/coefficient/index tuples.
def IH2n(YKHO, QDZQ): ywKv = [] for Nq1b in QDZQ: ywKv += YKHO._coeffs_from_height(Nq1b) return ywKv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uap3(rVeX):\n kGZp = list()\n if isinstance(rVeX, list):\n kGZp.extend(rVeX)\n else:\n kGZp.append(rVeX)\n for AdZ9 in kGZp:\n AdZ9.x = oyIN.exp(AdZ9.x)", "def l0f5(YKHO, ZF_4):\n H2v2 = ZF_4[0]\n GUUu = ZF_4[1]\n d6pt = ZF_4[2]\n aPd6 = []\n for o4sw in list(R...
[ "0.62484914", "0.6072879", "0.60437626", "0.60271436", "0.5961625", "0.5890035", "0.5816252", "0.5816155", "0.5758676", "0.57064503", "0.5683524", "0.56741995", "0.5655446", "0.5651893", "0.56121117", "0.55892795", "0.5558143", "0.55447435", "0.55202293", "0.55081266", "0.548...
0.5689096
10
According to the following RFC message body and length SHOULD NOT be included in responses status 1XX, 204 and 304.
def AqMe(jGRS): return jGRS not in (204, 304) and (not 100 <= jGRS < 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LMwb(YKHO):\n if 'Content-Length' not in YKHO.request.headers:\n YKHO.request.headers['Content-Length'] = 0\n YKHO.request.body = ''", "def TBsA(YKHO, BWXx):\n if BWXx is not None:\n if YKHO.__status_code == 204:\n YKHO.status = 200\n YKHO.__body = BWXx\n Y...
[ "0.69172466", "0.6585031", "0.6450661", "0.6420251", "0.639092", "0.6388162", "0.63438314", "0.6336163", "0.6262233", "0.62538415", "0.6253486", "0.6242303", "0.6225419", "0.61965215", "0.6162431", "0.61300755", "0.6122838", "0.61153525", "0.6111052", "0.6093314", "0.60840195...
0.6938867
0
Create an image for all possible players.
def r8RM(YKHO): for oyg0 in BJsk.PlayerEnum: YKHO.initialize_player(oyg0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AK16(YKHO, Bwa6, i_PC):\n for oyg0 in Bwa6:\n if type(oyg0) is rElc:\n Jqc7 = i_PC.from_image(ZGtC.get_path('redPlayer.png'))\n else:\n Jqc7 = i_PC.from_image(ZGtC.get_path('bluePlayer.png'))\n YKHO.player_sprites[oyg0] = Jqc7\n YKHO.addSprite(Jqc7)", "def...
[ "0.70074", "0.6379918", "0.6242858", "0.62226564", "0.6191874", "0.60948634", "0.6040512", "0.60314286", "0.6002812", "0.59965515", "0.5995003", "0.59689367", "0.5952717", "0.59478045", "0.59418327", "0.5920559", "0.59187365", "0.59099644", "0.5860309", "0.58535814", "0.58093...
0.0
-1
Should raise ValueError if name shorter than 4 characters.
def wVl3(): with trZe.raises(ValueError): FYrf.Group(name='abc', creator=Rqdq.User())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fUbN(YKHO, mWFP):\n if len(mWFP) <= 0 or len(mWFP) > 16:\n print('Your name must be in between 1-16 characters:')\n return None\n return mWFP", "def KMR7(mWFP):\n if ZbWC.match('^[a-zA-Z0-9-_ .]{3,20}$', mWFP) != None:\n return mWFP\n else:\n raise ValueError()", "de...
[ "0.78412116", "0.75226027", "0.74989074", "0.74566156", "0.7411215", "0.74105877", "0.7329731", "0.73138994", "0.7292922", "0.7279715", "0.72449577", "0.7207206", "0.71841836", "0.7163292", "0.71209365", "0.70896393", "0.70862794", "0.70606184", "0.70256656", "0.69979644", "0...
0.0
-1
Should raise ValueError if name longer than 25 characters.
def SxGV(): with trZe.raises(ValueError): FYrf.Group(name='abcdefghijklmnopqrstuvwxyz', creator=Rqdq.User())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WpLy(mWFP):\n if mWFP is not None and len(mWFP) > k2_T:\n tO9_ = bGrB('name length can not be greater than ') + str(k2_T)\n raise j1Jz.ArgumentTypeError(tO9_)\n else:\n return mWFP", "def O3VO():\n BcCR = 64\n x3i3(name='a' * BcCR)\n with trZe.raises(sUXu):\n x3i3(n...
[ "0.78069854", "0.76854825", "0.7649402", "0.7628807", "0.7596437", "0.75835836", "0.75688154", "0.75688154", "0.748963", "0.73591405", "0.73515517", "0.734235", "0.7314391", "0.728239", "0.7281458", "0.7280471", "0.728027", "0.7259153", "0.72461176", "0.72436327", "0.7223026"...
0.6869862
32
Initialize the moment shortcut with given mean and standard deviation.
def FIMM(YKHO, JBMS, mJX1): super().__init__() YKHO.mean = JBMS YKHO.standard_deviation = mJX1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, JBMS=0, WTkW=20):\n YKHO.mean = JBMS\n YKHO.sigma = WTkW", "def FIMM(YKHO, JBMS, M1Jx):\n YKHO.mean = JBMS\n YKHO.std = M1Jx", "def FIMM(YKHO, z2bo, JBMS=0.0):\n super().__init__()\n YKHO.stddev = z2bo\n YKHO.mean = JBMS", "def FIMM(YKHO, JBMS=0.0, M1Jx=1.0, **B2fa):\n ...
[ "0.6914629", "0.68743205", "0.68421155", "0.6793967", "0.67801124", "0.67400235", "0.67399865", "0.6668717", "0.6630419", "0.6583987", "0.6539923", "0.64845717", "0.64387566", "0.6438451", "0.6357674", "0.6296965", "0.6291806", "0.61788964", "0.61571217", "0.61436784", "0.610...
0.72931683
0
Apply the convolutional layers to the given inputs.
def pOv4(YKHO, g4y1): g4y1, Ke1Y, JBMS, mJX1 = g4y1 csqe = YKHO.transposed_convolution(g4y1) vMc8 = xant(JBMS, mJX1)(csqe) UY2d = ZylS.keras.layers.concatenate([Ke1Y, vMc8]) y7oG = YKHO.convolution(UY2d) return y7oG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o6Bz(g4y1, WZcn, fhcK=1, h7Vl=None, wDQ7=True):\n raise NotImplementedError", "def pOv4(YKHO, g4y1):\n if YKHO.use_equalized_learning_rate:\n RndV = [WKvO for WKvO in YKHO.kernel.shape]\n IddF = RndV[0] * RndV[1] * RndV[2]\n DMuJ = ZylS.sqrt(x=2.0 / float(IddF))\n WZcn = YKH...
[ "0.8154315", "0.7643066", "0.72294474", "0.71497077", "0.71409667", "0.69559836", "0.6949569", "0.69466335", "0.6891794", "0.68883616", "0.6847168", "0.68210214", "0.6817045", "0.6816549", "0.6816549", "0.6816549", "0.6796291", "0.679123", "0.6782939", "0.67788696", "0.677041...
0.6955653
6
Initialize the convolutional blocks used in the model.
def Cc7Y(YKHO, uUI9): for KUnM in YKHO.filters: YKHO.convolutional_blocks.append(RiSy(filters=KUnM, kernel_size=YKHO.kernel_size, activation=YKHO.activation, kernel_initializer=YKHO.kernel_initializer)) for KUnM in reversed(YKHO.filters): YKHO.transposed_blocks.append(CEZX(filters=KUnM, kernel_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, **B2fa):\n super(R48A, YKHO).__init__(**B2fa)\n YKHO.blockOne = jO9g(numFilters=64, kernelSize=5, addGlobal=False, name='ConvBlock1')\n YKHO.blockTwo = jO9g(numFilters=128, kernelSize=7, addGlobal=False, name='ConvBlock2')\n YKHO.blockThree = jO9g(numFilters=256, kernelSize=9, addGlobal=...
[ "0.74578226", "0.7308451", "0.7107556", "0.69722927", "0.6944504", "0.69119686", "0.6891728", "0.6879356", "0.68476945", "0.6835002", "0.6830723", "0.6813067", "0.68094033", "0.6801378", "0.6800643", "0.67997843", "0.6785401", "0.678363", "0.6778083", "0.6772995", "0.67702806...
0.6933137
5
Initialize the BigQueryDataProcessing object.
def FIMM(YKHO): YKHO.ecosystemBatchData = {} YKHO.ecosystemContentData = {} YKHO.collectors = {} for YAju in TPrd.keys(): YKHO.collectors[YAju] = YKHO._get_collector(YAju) YKHO.ecosystemContentData[YAju] = {'size': 0, 'count': 0} YKHO.ecosystemBatchData[YAju] = {'batch_index': 1,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zOZf, ekCf=None):\n YKHO.__project_id = ekCf\n YKHO.__dataset = x3i3\n YKHO.__table = TQJD\n YKHO.__job = W7aK\n YKHO.__client = YKHO.__set_client_credential(zOZf, CPmB, 'bigquery', 'v2')", "def FIMM(YKHO, JWce=None, Vt89=None):\n YKHO._bq_client = slhS.Client(project=JWce, crede...
[ "0.6922715", "0.6907717", "0.6804099", "0.6796838", "0.66469675", "0.6572395", "0.6552006", "0.65225494", "0.64648265", "0.6439844", "0.63952446", "0.62919366", "0.62907696", "0.62795085", "0.62770164", "0.6274127", "0.6268722", "0.6243452", "0.61968327", "0.6132219", "0.6097...
0.0
-1
Test that created tags for the logged in user can be retrieved
def Lcfj(YKHO): OhYN.objects.create(user=YKHO.user, name='Vegan') OhYN.objects.create(user=YKHO.user, name='Comfort Foods') Ylbp = YKHO.client.get(ebJ5) dJ1p = OhYN.objects.all().order_by('-name') ZMzz = nD8f(dJ1p, many=True) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.assertEq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PxkR(YKHO):\n pB3N = YKHO.payload\n pB3N['email'] = 'user2@gmail.com'\n uDCI = egNl().objects.create_user(**pB3N)\n OhYN.objects.create(user=uDCI, name='fruity')\n TZ9E = OhYN.objects.create(user=YKHO.user, name='dessert')\n geh0 = YKHO.client.get(ebJ5)\n YKHO.assertEqual(geh0.status_code,...
[ "0.85400885", "0.85118353", "0.85003924", "0.8456515", "0.8450218", "0.84372723", "0.84300715", "0.8401035", "0.8381488", "0.83700514", "0.83699816", "0.83677435", "0.83479047", "0.82648253", "0.82318586", "0.7956134", "0.7875077", "0.7852833", "0.7815184", "0.7757095", "0.77...
0.76752543
24
Test that tags only belonging to user are returned
def IARo(YKHO): b5K5 = nIoS('test2@test.com', 'testPassword') OhYN.objects.create(user=b5K5, name='Vegan') TZ9E = OhYN.objects.create(user=YKHO.user, name='Comfort food') Ylbp = YKHO.client.get(ebJ5) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(len(Ylbp.data), 1) YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GhmM(YKHO):\n uDCI = egNl().objects.create_user('user1@user.com', 'Test123#')\n TZ9E = OhYN.objects.create(user=YKHO.user, name='tag-1')\n OhYN.objects.create(user=uDCI, name='tag-2')\n Ylbp = YKHO.client.get(V1ts)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(...
[ "0.81257087", "0.81115323", "0.80456513", "0.8036526", "0.8033717", "0.8030739", "0.8003747", "0.79957247", "0.7990768", "0.79857177", "0.79281783", "0.7815296", "0.7701932", "0.75965244", "0.72037065", "0.700374", "0.6845365", "0.67321724", "0.669904", "0.66562515", "0.66189...
0.80429024
3
Test creating a new tag
def HtcP(YKHO): pB3N = {'name': 'Test tag'} YKHO.client.post(ebJ5, pB3N) vtfo = OhYN.objects.filter(user=YKHO.user, name=pB3N['name']).exists() YKHO.assertTrue(vtfo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDpy(YKHO):\n pass", "def FDpy(YKHO):\n nNXP.content.create(container=YKHO.portal, type='tribuna.content.tag', title='Tag 1')", "def q1zF(YKHO):\n pB3N = {'name': 'new tag'}\n YKHO.client.post(ebJ5, pB3N)\n vtfo = OhYN.objects.filter(user=YKHO.user, name=pB3N['name']).exists()\n YKHO.asse...
[ "0.9074846", "0.83996445", "0.80496174", "0.80463296", "0.79591936", "0.79380095", "0.79248106", "0.7924173", "0.79207474", "0.79052657", "0.78748757", "0.78646404", "0.78452724", "0.78333634", "0.7818066", "0.780857", "0.7804294", "0.78020847", "0.77882874", "0.7777823", "0....
0.773743
21
Appends new message to list of all messages related to one context. In addition, it counts error and warning messages with each new message, if it's that kind of message.
def SStx(YKHO, Ol8d: Message): YKHO.__messages.append(Ol8d) if Ol8d.getMessageType() == qTHV.ERROR: YKHO.__errors_count += 1 elif Ol8d.getMessageType() == qTHV.WARNING: YKHO.__warnings_count += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yQ9V(YKHO):\n raise NotImplementedError('add_messages method must be implemented')", "def yQ9V(YKHO, QePW, Ol8d):\n if hasattr(QePW, '_messages'):\n return QePW._messages.append(Ol8d)", "async def messages(YKHO, OaeV):\n yEHD = int(YKHO.settings.getServerStat(OaeV.message.guild, 'TotalMessa...
[ "0.63489175", "0.6188019", "0.60814327", "0.6051292", "0.5992824", "0.5992824", "0.5841269", "0.5841269", "0.58323395", "0.5764499", "0.57489026", "0.57293355", "0.56740755", "0.564918", "0.5644732", "0.56377536", "0.56049395", "0.56037164", "0.55502045", "0.54745275", "0.545...
0.634414
1
Convert an ONNXModel to a PyTorch differentiable function. This method should not be used on its own.
def tQeX(C3ST: ONNXModel, KAP9: List[str]) -> AzJI[wS1e.SDFG, wS1e.SDFG, xXFZ, cuzp[str, JRYC.Data]]: if len(C3ST.sdfg.nodes()) != 1: raise xDcp('Expected to find exactly one SDFGState, found {}'.format(len(C3ST.sdfg.nodes()))) qpxI = C3ST.sdfg i4DV = C3ST.sdfg.nodes()[0] QXZj = wS1e.SDFG(qpxI.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eiuE(YKHO):\n YKHO._check_fitted_()\n if isinstance(YKHO.onnxrt_, jg41):\n\n def TnZY(rrBf, seET, zGKt):\n khtY = seET.raw_operator\n v1bE = tyeH(xDSY.BytesIO(khtY.onnx_))\n xa30(rrBf, seET, zGKt, v1bE)\n return TnZY\n yIp6 = YKHO.onnxrt_.onnx_converter()...
[ "0.67569613", "0.6706034", "0.668828", "0.6477685", "0.63908684", "0.63228863", "0.6309635", "0.62949985", "0.6276443", "0.6226348", "0.6179323", "0.61681074", "0.59703803", "0.5939067", "0.5934241", "0.5884755", "0.5855286", "0.5836617", "0.58033955", "0.5801691", "0.5787468...
0.0
-1
Check if contraction of an edge preserves the topological type
def HAYG(pNZh, D70y): if pNZh.has_edge(*D70y): ubtp = fsaO(pNZh, D70y) MboR = b3ZP(pNZh, D70y[0]) SGF4 = b3ZP(pNZh, D70y[1]) if ubtp == MboR.intersection(SGF4) and len(list(ubtp)) == 2: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iw4L():\n yvY1 = jHsn.cycle_graph(4)\n n5sN = jHsn.contracted_edge(yvY1, (0, 1))\n aEqx = jHsn.complete_graph(3)\n aEqx.add_edge(0, 0)\n assert jHsn.is_isomorphic(n5sN, aEqx)", "def Uo3g():\n yvY1 = jHsn.cycle_graph(4)\n n5sN = jHsn.contracted_edge(yvY1, (0, 1, 0))\n aEqx = jHsn.compl...
[ "0.6911815", "0.67736864", "0.64834934", "0.64204794", "0.6083738", "0.6074355", "0.60594577", "0.6050081", "0.60481304", "0.6046427", "0.5985908", "0.5985477", "0.5970357", "0.59542644", "0.59234107", "0.58764714", "0.5876278", "0.58705455", "0.58091784", "0.5777961", "0.576...
0.0
-1
Loads data from `[path]/samples` Ensure that path contains only one directory (This is due ot how the ImageFolder dataset loader works) Ensure that ALL of your images are 32 x 32. The transform in this function will rescale it to 32 x 32 if this is not the case. Returns an iterator over the tensors of the images of dim...
def EzFi(pmON, Ep8u): nPrm = TTda.datasets.ImageFolder(pmON, transform=Ymkf.Compose([Ymkf.Resize((32, 32), interpolation=2), Og2q.image_transform])) zQKy = ht2j.utils.data.DataLoader(nPrm, batch_size=Ep8u, num_workers=2) return zQKy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fPcm(_PLx, ooTa):\n Yw_3 = oyIN.zeros(ooTa)\n iumf = []\n or8S = 0\n Ep8u = ooTa[0]\n for VqRE in ZylS.gfile.Glob(Hy7s.path.join(_PLx, '*.png')):\n with ZylS.gfile.Open(VqRE) as eHNT:\n LNo8 = oyIN.array(hnIv.open(eHNT).convert('RGB')).astype(oyIN.float) / 255.0\n Yw_3[o...
[ "0.6795582", "0.67767936", "0.67495984", "0.6732861", "0.67132246", "0.669596", "0.669596", "0.6689999", "0.6678444", "0.6678444", "0.6656057", "0.66341186", "0.6628338", "0.65771633", "0.65663177", "0.6491315", "0.64570856", "0.6436565", "0.6394006", "0.63505393", "0.6339187...
0.6697844
5
Update images on the screen and flip to the new screen.
def udoe(Vjhr, tJm0, y1e_, C7MP, eQSh, WFC2, SaI9, ohsT): Vjhr.fill(tJm0.bg_color) C7MP.blitme() SaI9.draw(Vjhr) for YBnT in WFC2: YBnT.draw_bullet() y1e_.show_score() if not eQSh.game_active: ohsT.draw_button() a9eO.display.flip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aZ12(YKHO):\n G9jH.info('Refreshing Screen')\n Mtfr = YKHO.screen.copy()\n if s7Ie:\n Mtfr = Mtfr.transpose(uGYG.Image.ROTATE_180)\n Mtfr.thumbnail((YKHO.inky.WIDTH, YKHO.inky.HEIGHT), hnIv.ANTIALIAS)\n YKHO.inky.set_image(Mtfr)\n YKHO.inky.show()", "def udoe(YKHO) -> None:\n a9eO...
[ "0.77359694", "0.74720365", "0.7245987", "0.7223214", "0.71996194", "0.7197077", "0.71908253", "0.7138785", "0.71256727", "0.71133715", "0.70676285", "0.70668113", "0.7066748", "0.7021775", "0.7017807", "0.70174044", "0.7002188", "0.6997217", "0.69945073", "0.69572175", "0.69...
0.6491176
52
Returns the current node.
def ja6o(YKHO): return YKHO.cur_node
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPrP(YKHO):\n EKkU = len(YKHO.nodes_stack)\n return YKHO.nodes_stack[EKkU - 1] if EKkU > 0 else None", "def Q6kx(YKHO):\n return YKHO._node", "def Q6kx(YKHO):\n return YKHO._node", "def Q6kx(YKHO):\n return YKHO._node", "def Q6kx(YKHO):\n return YKHO._node", "def Q6kx(YKHO):\n re...
[ "0.84284925", "0.8070408", "0.80264294", "0.80264294", "0.80264294", "0.80264294", "0.80264294", "0.80264294", "0.80264294", "0.80264294", "0.80264294", "0.79170334", "0.791301", "0.7910789", "0.7866892", "0.7814992", "0.77806133", "0.7775674", "0.7749178", "0.76968175", "0.7...
0.7481312
24
Returns true if the current node is the same
def IzcV(YKHO, lUtN, BmXa): return lUtN == BmXa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g057(YKHO, i4Va, rUTj):\n return YKHO[i4Va] == YKHO[rUTj]", "def InF8(YKHO, Q6kx):\n return YKHO.name == Q6kx.name and YKHO.parents == Q6kx.parents and (YKHO.meta == Q6kx.meta)", "def xa14(YKHO, Elif):\n return type(Elif) is type(YKHO) and Elif._node is YKHO._node", "def hHbZ(YKHO, zO88):\n r...
[ "0.769939", "0.7426594", "0.74090797", "0.7406553", "0.73896664", "0.73896664", "0.73896664", "0.73896664", "0.73896664", "0.73896664", "0.7366237", "0.73415124", "0.7340079", "0.73077255", "0.729508", "0.725405", "0.7244815", "0.7230987", "0.7117685", "0.7093133", "0.7092116...
0.0
-1
Returns true if ``label`` is a nonterminal.
def zqlM(YKHO, UXqs): KCHu = str(UXqs) return len(KCHu) == 10 and KCHu[0] == '1'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYeN(YKHO):\n if isinstance(YKHO.ins_id, int):\n return True\n else:\n return False", "def CYeN(eOtH):\n if eOtH.startswith('NT(') and eOtH.endswith(')') or eOtH == 'REDUCE()':\n return True\n else:\n return False", "def CYeN(YKHO, WKvO):\n return isinstance(WKvO,...
[ "0.68240714", "0.6741583", "0.63198", "0.61536485", "0.6063952", "0.5980856", "0.59218943", "0.5751148", "0.5751148", "0.5751148", "0.57168496", "0.55759287", "0.5478864", "0.5440583", "0.5435652", "0.54017025", "0.53861094", "0.53527766", "0.5323924", "0.5299865", "0.5299865...
0.6520684
2
Adds ``word`` to the current history.
def E_nZ(YKHO, GIN8): YKHO.cur_history.append(GIN8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NrOU(YKHO, GIN8):\n YKHO.words.append(GIN8)", "def NrOU(YKHO, GIN8: str) -> None:\n YKHO.hash_table.__setitem__(GIN8, 1)", "def e0k0(YKHO, GIN8):\n YKHO.dictionary[len(GIN8)].append(GIN8)", "def e0k0(YKHO, GIN8):\n YKHO.Trie.insert(GIN8)", "def e0k0(YKHO, GIN8):\n YKHO.trie.insert(GIN8)"...
[ "0.7934099", "0.7735368", "0.7734565", "0.77121294", "0.7687019", "0.76698655", "0.7637364", "0.7616787", "0.76079845", "0.7560006", "0.7551047", "0.7512685", "0.75004405", "0.74972534", "0.74881464", "0.7446239", "0.7418187", "0.7412217", "0.7332732", "0.73171043", "0.729415...
0.78215903
1
Add a node on the head of the list
def UDKH(YKHO, Cc00): Esd_ = o7DN(Cc00) Esd_.setNext(YKHO.first.getNext()) YKHO.first.setNext(Esd_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PgMl(YKHO, wEf2):\n Q6kx = o7DN(wEf2, None)\n if len(YKHO.list) > 0:\n YKHO.list[0].pre = Q6kx\n YKHO.list.insert(0, Q6kx)", "def u8qv(YKHO, exwG):\n exwG.add_list(YKHO.head, YKHO.head.next)", "def rMGb(YKHO, Q6kx):\n Q6kx.next = YKHO.head\n YKHO.head = Q6kx", "def rMGb(YKHO, Q6k...
[ "0.83028793", "0.8142394", "0.80642325", "0.79801595", "0.78671014", "0.7848711", "0.7838898", "0.7800906", "0.77718633", "0.77711135", "0.7753889", "0.77509797", "0.77449226", "0.7738641", "0.773401", "0.77316415", "0.77260226", "0.7722859", "0.77175987", "0.7713806", "0.770...
0.7743401
13
Add a node on the end of the end
def e68I(YKHO, Cc00): Q6kx = YKHO.first while Q6kx.getNext(): Q6kx = Q6kx.getNext() Esd_ = o7DN(Cc00) Q6kx.setNext(Esd_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K_Q6(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.insert_beginning(nPrm)\n return\n YKHO.last_node.next_node = o7DN(nPrm, None)\n AMSv = YKHO.last_node.next_node", "def F1bx(YKHO, ZfUD):\n Esd_ = o7DN(ZfUD)\n if YKHO.head is None:\n YKHO.head = Esd_\n return\n els...
[ "0.7776038", "0.7655389", "0.7631147", "0.75942", "0.75038874", "0.7397479", "0.73417306", "0.73378813", "0.73373246", "0.7241541", "0.72382516", "0.71877426", "0.7178332", "0.7177767", "0.716994", "0.716994", "0.71617323", "0.71561813", "0.7145018", "0.71239674", "0.7117207"...
0.8419497
0
The unique identifier for a group in the identity store.
def hE03(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return YKHO._group.id", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def _vEr(YKHO):\n return YKHO.__group_uuid", "def ShR8(YKHO):\n return f'occupancygroup_{YKHO._bridge_unique_id}_{YKHO.device...
[ "0.87113523", "0.8464281", "0.8464281", "0.81191856", "0.80632424", "0.8023099", "0.8023099", "0.8023099", "0.8023099", "0.8023099", "0.8023099", "0.78642344", "0.7861876", "0.7581932", "0.7493844", "0.74645597", "0.7408626", "0.7408626", "0.7369978", "0.7369978", "0.7347", ...
0.7877836
11
hash_password returns a bcrypted password_hash
def qzFd(jTXt): jTXt = jTXt.encode('utf-8') return B8ni.hashpw(jTXt, B8ni.gensalt(12))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(jTXt):\n return CJ0I(jTXt)", "def a2tF(jTXt):\n return B8ni.hashpw(jTXt.encode('utf-8'), B8ni.gensalt())", "def kaVN(jTXt):\n return jf1V.hash(jTXt)", "def a2tF(jTXt):\n return ogP4.django_pbkdf2_sha256.hash(jTXt)", "def GPjS(jTXt: str) -> bytes:\n return B8ni.hashpw(jTXt.encode('ut...
[ "0.8415045", "0.83644277", "0.8332333", "0.8255641", "0.8239281", "0.82307273", "0.82161397", "0.8188615", "0.8172659", "0.81113315", "0.8093944", "0.80558956", "0.80541134", "0.8033752", "0.8019557", "0.7980324", "0.7971107", "0.7963411", "0.7960848", "0.79546064", "0.795460...
0.81439847
9
Calculate the distance between the robot position to the end node.
def KGpY(YKHO, bbrE: float, qycT: float) -> float: return YKHO._distance(bbrE, qycT, YKHO._node_data.get_node_end().x(), YKHO._node_data.get_node_end().y())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mpEh(YKHO):\n fQxG = YKHO.get_own_robot()\n xi3E = YKHO.get_own_goal()\n return (xi3E - fQxG.pos).size() - YKHO.robot_radius", "def Isx5(YKHO, bbrE: float, qycT: float) -> float:\n return YKHO._distance(bbrE, qycT, YKHO._robot_x_last, YKHO._robot_y_last)", "def koHf(YKHO) -> float:\n return ...
[ "0.73246956", "0.7322307", "0.72565347", "0.69481957", "0.6780371", "0.67776245", "0.66806084", "0.66249526", "0.65946007", "0.6578982", "0.6551365", "0.6422025", "0.6367294", "0.6351809", "0.6342665", "0.63272434", "0.6313042", "0.6312149", "0.62935024", "0.6277451", "0.6274...
0.84428966
0
Calculate the euler distance from to point.
def AcQ8(o4D3: float, si3g: float, ajwV: float, skBL: float) -> float: WKvO = o4D3 - ajwV LVAh = si3g - skBL return epAf.sqrt(WKvO * WKvO + LVAh * LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNNJ(YKHO, o_i3, fQ14):\n wjRY = 0\n for d6pt in range(YKHO.pattern_length):\n wjRY += epAf.pow(o_i3[d6pt] - fQ14[d6pt], 2)\n return epAf.sqrt(wjRY)", "def XnYi(YKHO, AU8u):\n q5JD, q2Ro = AU8u\n Jw7X = YKHO.x - q5JD\n eUWA = YKHO.y - q2Ro\n pImw = epAf.sqrt(Jw7X * Jw7X + eUWA * e...
[ "0.67153466", "0.6609033", "0.6575273", "0.65287423", "0.65286154", "0.6523403", "0.6472621", "0.6437744", "0.6432584", "0.6414468", "0.64072055", "0.6383612", "0.63783383", "0.63750994", "0.6374792", "0.63646895", "0.63143647", "0.62915576", "0.62819254", "0.6281767", "0.628...
0.0
-1
Calculate the distance between the robot position to the end node.
def f0z2(YKHO, bbrE: float, qycT: float) -> float: return YKHO._distance(bbrE, qycT, YKHO._node_data.get_node_start().x(), YKHO._node_data.get_node_start().y())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KGpY(YKHO, bbrE: float, qycT: float) -> float:\n return YKHO._distance(bbrE, qycT, YKHO._node_data.get_node_end().x(), YKHO._node_data.get_node_end().y())", "def mpEh(YKHO):\n fQxG = YKHO.get_own_robot()\n xi3E = YKHO.get_own_goal()\n return (xi3E - fQxG.pos).size() - YKHO.robot_radius", "def I...
[ "0.84428966", "0.73246956", "0.7322307", "0.72565347", "0.69481957", "0.6780371", "0.67776245", "0.66806084", "0.66249526", "0.6578982", "0.6551365", "0.6422025", "0.6367294", "0.6351809", "0.6342665", "0.63272434", "0.6313042", "0.6312149", "0.62935024", "0.6277451", "0.6274...
0.65946007
9
Get the start node for the start position for the robot.
def Shte(YKHO): return YKHO._node_data.generate_robot_start_position()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XDbp(YKHO):\n return YKHO.start_node", "def pu_z(YKHO):\n return YKHO._nodes[0]", "def XDbp(YKHO):\n return YKHO.map.map_rep[YKHO.initY][YKHO.initX]", "def pu_z(YKHO):\n return YKHO.start_", "def pu_z(YKHO):\n return YKHO.__start_node", "def XDbp(YKHO):\n return YKHO.initial_state",...
[ "0.82718724", "0.81758404", "0.8128618", "0.8056939", "0.7988546", "0.7467865", "0.73976547", "0.73082745", "0.71355677", "0.7053857", "0.7036382", "0.69305414", "0.69126403", "0.6877313", "0.6861053", "0.6847227", "0.682143", "0.6791581", "0.6762478", "0.67614406", "0.675950...
0.8470824
0
Load the weights of a model stored in saver.
def SUd8(bPTx, cb_Q, jkyf): aqBD = ZylS.train.get_checkpoint_state(bPTx) if aqBD and aqBD.model_checkpoint_path: nUeQ = Hy7s.path.basename(aqBD.model_checkpoint_path) V1C0 = Hy7s.path.join(bPTx, nUeQ) jkyf.restore(cb_Q, V1C0) return int(nUeQ.split('-')[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SUd8(YKHO, cuiw, eG0V):\n YKHO.weight_saver.restore(cuiw, eG0V)", "def SUd8(YKHO):\n if YKHO.arg.weights:\n YKHO.fileio.load_weights(YKHO.model, YKHO.arg.weights, YKHO.arg.ignore_weights)", "def SUd8(YKHO, eG0V):\n aqBD = ZylS.train.get_checkpoint_state(eG0V)\n if aqBD:\n YKHO.sav...
[ "0.82151204", "0.7513563", "0.7492857", "0.74883515", "0.74124885", "0.73520094", "0.73450375", "0.73450375", "0.7327904", "0.7327904", "0.7327904", "0.72673345", "0.72383", "0.720551", "0.720551", "0.720551", "0.71852416", "0.716105", "0.71534467", "0.71517706", "0.7144614",...
0.7274533
11
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Flattener for list of lists into a single list.
def uSwp(LzUd: List[List[str]]) -> x1iM[str]: hlel = [] for YRbF in LzUd: hlel.extend(YRbF) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j9D3(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]", "def j9D3(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]", "def PWgb(nwEZ):\n return [ZfUD for rpVW in nwEZ for ZfUD in rpVW]", "def PWgb(nwEZ):\n return [ZfUD for XuXy in nwEZ for ZfUD in XuXy]", "def PWgb(nwEZ):\n ...
[ "0.8228392", "0.8228392", "0.82163095", "0.82158864", "0.82158864", "0.82158864", "0.81968474", "0.8154104", "0.8153709", "0.8119335", "0.80343735", "0.80343735", "0.80343735", "0.80328053", "0.80237925", "0.8021716", "0.8021186", "0.8015457", "0.80063134", "0.8004929", "0.80...
0.78704137
33
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents).
def fHT3(rfNN): return rfNN.getScore()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN: GameState):\n re...
[ "0.8073216", "0.8052229", "0.8052229", "0.79367465", "0.7676834", "0.7660452", "0.76424044", "0.76333016", "0.75926745", "0.75926745", "0.75926745", "0.75926745", "0.75926745", "0.75926745", "0.75926745", "0.75926745", "0.75926745", "0.75926745", "0.7501656", "0.7488117", "0....
0.75528044
32
Convert polygons to list of ndarray and filter invalid polygons. Refer to mmdet.
def VAKD(YKHO, UT57): UT57 = [oyIN.array(XP5J) for XP5J in UT57] rXEe = [] for j5tF in UT57: if len(j5tF) % 2 == 0 and len(j5tF) >= 6: rXEe.append(j5tF) return rXEe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vJPk(YKHO, UT57):\n Bva6 = []\n for j5tF in UT57:\n for kEC0 in YKHO.clipping_planes:\n j5tF = kEC0.clip_polygon(j5tF)\n if j5tF is None:\n break\n if j5tF is not None:\n Bva6.append(j5tF)\n return Bva6", "def BeW6(UT57, f0tD=1.0):\n I...
[ "0.6080819", "0.60751593", "0.60645276", "0.59567606", "0.5831886", "0.5828973", "0.57560796", "0.5730693", "0.5712392", "0.570627", "0.5699726", "0.56983626", "0.5653085", "0.564523", "0.5633149", "0.563039", "0.562936", "0.5605203", "0.55679995", "0.55649847", "0.55553025",...
0.72298795
0
Things in acesL and boolColL are boolean; convert to 1.0/0.0
def OwfP(nPrm, qTrW, FHr_, Sw5z): GOwy = set(qTrW + FHr_) D7Gk = nPrm[[fvDH for fvDH in nPrm.columns if fvDH not in GOwy]].copy() for fvDH in GOwy: D7Gk[fvDH] = oyIN.choose(nPrm[fvDH], [0.0, 1.0]) return (D7Gk, qTrW, FHr_, Sw5z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tnuZ(WKvO):\n if WKvO:\n return 1\n else:\n return 0", "def _gPR(iVRZ):\n\n def nS5d(l5Ny):\n if l5Ny in ['Y', 'y', '1']:\n return True\n else:\n return False\n if iVRZ.name in ['active']:\n return iVRZ.apply(nS5d)\n else:\n retur...
[ "0.637792", "0.6324986", "0.6209754", "0.6173645", "0.609896", "0.6095879", "0.60656166", "0.60387933", "0.6001658", "0.5972567", "0.5930685", "0.59080744", "0.5842837", "0.58230835", "0.5814172", "0.57568926", "0.5755901", "0.5727526", "0.57128525", "0.5700682", "0.5696256",...
0.6983844
0
If root node is not None, this will be used as root node. Otherwise we draw a random root node.
def FIMM(YKHO, yokr: int=None): if yokr: tuKI.seed(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pTPf(YKHO):\n try:\n if YKHO.opt['Rooted']:\n YKHO.unRoot()\n FohR = tuKI.randint(0, len(YKHO.branch))\n YKHO.verbose(1, 3, 'Placing random root on branch: %s' % YKHO.branch[FohR].show(), 1)\n YKHO.placeRoot('Random', YKHO.branch[FohR])\n return True\n except...
[ "0.73764527", "0.69313926", "0.68385005", "0.6767284", "0.67501366", "0.654906", "0.65106696", "0.65102744", "0.65023136", "0.64650226", "0.6454027", "0.64331734", "0.6347154", "0.632006", "0.6253554", "0.6208453", "0.61916095", "0.6184241", "0.61698294", "0.6162407", "0.6124...
0.0
-1
check if a string can be converted to a float number
def e5f3(YKHO, vIwR): try: float(vIwR) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e5f3(vIwR):\n return A69P(vIwR)", "def e5f3(vIwR):\n try:\n float(vIwR)\n except ValueError:\n return False\n return True", "def e5f3(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def Xt5H(vIwR: str) -> bool:\n ret...
[ "0.8631911", "0.86303717", "0.8613136", "0.8594033", "0.85173714", "0.85173714", "0.85144174", "0.8495308", "0.84873456", "0.8437187", "0.84189594", "0.8410412", "0.83856905", "0.83842134", "0.8364164", "0.83466446", "0.8338861", "0.83387184", "0.83387184", "0.83387184", "0.8...
0.8680061
0
Returns the index of a given word in the clusters dict
def Seb2(hKn5, GIN8): for YRbF in range(len(hKn5)): if GIN8 in list(hKn5[YRbF]): return YRbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLhC(YKHO, GIN8):\n return YKHO.clustered_words[BfDw.to_unicode(GIN8)]", "def Z3Bm(GIN8):\n return oQ6S(pu_z, GIN8)[1]", "def iBC6(GIN8, qC6E, pD78):\n try:\n return qC6E[pD78[GIN8]]\n except KeyError:\n print('Word \"{}\" not seen in dataset'.format(GIN8))", "def Ajkz(YKHO, GIN...
[ "0.75512713", "0.713601", "0.7003421", "0.6992371", "0.6963559", "0.69260246", "0.69112355", "0.68648756", "0.6748392", "0.6657438", "0.6635114", "0.6552409", "0.65439034", "0.6530809", "0.6527993", "0.6512608", "0.6484081", "0.6459575", "0.6431261", "0.6372922", "0.637236", ...
0.8413971
0
Returns true if the successor pair exists in the N_w_w array, false otherwise
def gbNv(QPXS, s1k6, xMw6): if s1k6 not in QPXS or xMw6 not in QPXS[s1k6]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4Ij(YKHO, yzQ0):\n exwG = len(yzQ0)\n ywwl = oRi_(set)\n for YRbF in Ni9Y(1, exwG + 1):\n ywwl[YRbF, 1] = {k0lF for k0lF in YKHO.productions if YKHO.contains(k0lF, yzQ0[YRbF - 1])}\n for r845 in Ni9Y(1, exwG + 1):\n for YRbF in Ni9Y(1, exwG - r845 + 2):\n for G1Hx in Ni9Y(...
[ "0.60990906", "0.58936006", "0.5845541", "0.5694586", "0.5664581", "0.5656801", "0.5638363", "0.56014705", "0.5524386", "0.55135846", "0.5506177", "0.54514843", "0.541894", "0.538264", "0.5382477", "0.5381303", "0.5380529", "0.53760993", "0.5372715", "0.5365492", "0.5365384",...
0.8366451
0
Make any string into a "snake_cased" string.
def AQcz(mWFP: str): return QQNo.parameterize(QQNo.titleize(mWFP), separator='_').lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AQcz(Emd4, vIwR):\n return finE('(.)([A-Z])', '\\\\1_\\\\2', vIwR).lower()", "def AQcz(vIwR):\n vIwR = ZbWC.sub('([A-Z])', '_\\\\1', vIwR)\n return vIwR[1:].lower()", "def lFYK(vIwR: str) -> str:\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', vIwR)\n return ZbWC.sub('([a-z0-9])([A-Z])'...
[ "0.8966473", "0.88516015", "0.8637182", "0.85024995", "0.8490533", "0.84084314", "0.8391429", "0.83594453", "0.8322924", "0.82839906", "0.8227909", "0.8200041", "0.81952184", "0.8135959", "0.8121542", "0.80695945", "0.8029563", "0.8029012", "0.79967076", "0.79874945", "0.7972...
0.8151791
13
setting up the logging from yaml config file
def tqPq(): with open(aZsh) as zMa4: GPtr = eJb6.safe_load(zMa4) G9jH.config.dictConfig(GPtr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tqPq():\n with open(aZsh) as Nu1S:\n G9jH.config.dictConfig(eJb6.safe_load(Nu1S))", "def tqPq():\n with open(WgAB) as zMa4:\n GPtr = eJb6.safe_load(zMa4)\n G9jH.config.dictConfig(GPtr)", "def tqPq():\n G9jH.config.fileConfig('config/logging.conf')", "def qj87():\n ItBp = ...
[ "0.8297036", "0.82051927", "0.7777896", "0.7673507", "0.76373726", "0.7596146", "0.7525173", "0.75237256", "0.7490376", "0.7441127", "0.7392099", "0.73552424", "0.73449343", "0.72741413", "0.7268356", "0.7213966", "0.71920675", "0.717077", "0.71460766", "0.7079604", "0.707074...
0.82343006
1
Downloads a blob from the bucket.
def DPRZ(l7rj, JC20, AHTG): ntiA = S8SU.Client() WE7e = ntiA.bucket(l7rj) vxw0 = WE7e.blob(JC20) vxw0.download_to_filename(AHTG) print('Blob {} downloaded to {}.'.format(JC20, AHTG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0", "def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)", "def DPRZ(...
[ "0.81216", "0.7957541", "0.77650166", "0.76453996", "0.7630873", "0.7603773", "0.75344056", "0.7534157", "0.75023687", "0.7482801", "0.7474071", "0.7474071", "0.7474071", "0.7458533", "0.74448717", "0.7425158", "0.7425142", "0.740443", "0.73784876", "0.7373136", "0.7370222", ...
0.74574214
14
Downloads a blob from the bucket.
def absV(l7rj, JC20, Txr9, AHTG): ntiA = S8SU.Client() WE7e = ntiA.bucket(l7rj) vxw0 = WE7e.blob(JC20) YKsn = ntiA.bucket(Txr9) try: fwyn = WE7e.copy_blob(vxw0, YKsn, new_name=AHTG) except: N5ka = YKsn.blob(AHTG) CNSw = False while True: CNSw, mbCD, x3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0", "def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)", "def DPRZ(...
[ "0.81216", "0.7957541", "0.77650166", "0.76453996", "0.7630873", "0.7603773", "0.75344056", "0.7534157", "0.75023687", "0.7482801", "0.7474071", "0.7474071", "0.7474071", "0.7458533", "0.74574214", "0.74448717", "0.7425158", "0.7425142", "0.740443", "0.73784876", "0.7373136",...
0.0
-1
Copies a blob from one bucket to another with a new name.
def WCIB(l7rj, zvSV, r_bO, jsTB): ntiA = S8SU.Client() ca0c = ntiA.bucket(l7rj) KSe7 = ca0c.blob(zvSV) YKsn = ntiA.bucket(r_bO) vs4a = ca0c.copy_blob(KSe7, YKsn, jsTB) print('Blob {} in bucket {} copied to blob {} in bucket {}.'.format(KSe7.name, ca0c.name, vs4a.name, YKsn.name))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WCIB(l7rj, zvSV, MIdF, fFYM):\n ntiA = S8SU.Client()\n ca0c = ntiA.get_bucket(l7rj)\n KSe7 = ca0c.blob(zvSV)\n YKsn = ntiA.get_bucket(MIdF)\n fwyn = ca0c.copy_blob(KSe7, YKsn, fFYM)\n print('Blob {} in bucket {} copied to blob {} in bucket {}.'.format(KSe7.name, ca0c.name, fwyn.name, YKsn.nam...
[ "0.8666764", "0.8659917", "0.77571267", "0.75186867", "0.75107217", "0.7490743", "0.73982084", "0.72054225", "0.71727175", "0.7155216", "0.70779294", "0.70653147", "0.70617634", "0.70590943", "0.70572364", "0.7054306", "0.7053628", "0.7025793", "0.7014403", "0.70092106", "0.7...
0.80667955
2
Represents the string representation of the client object.
def wHJl(YKHO) -> str: return "<WallStreetJournal Connected: True'>"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.client.__str__()", "def wHJl(YKHO):\n return repr([YKHO._client])", "def wHJl(YKHO):\n return f'<Client client_id={YKHO.client_id} email={YKHO.email}>'", "def zAg0(YKHO):\n return 'Client(id=%r addr:%s name:%s level:%d state:%d)' % (YKHO.id, str(YKHO.addr), YKHO.name...
[ "0.79386955", "0.78579116", "0.7755397", "0.76049495", "0.7602593", "0.7600632", "0.73087287", "0.72484434", "0.7154423", "0.7092701", "0.7052882", "0.69765455", "0.6905439", "0.6861278", "0.6847588", "0.6844247", "0.6835639", "0.6835639", "0.6822626", "0.6822626", "0.6822626...
0.0
-1
converts a list of strings to a list of integers
def LjGi(YKHO, wEf2): try: return ''.join((Ty9i for Ty9i in wEf2 if Ty9i.isdigit())) except: zFiD, Ux0P, ogCB = zgsA() raise RcnJ({'function': 'str_to_int', 'line': zFiD, 'filename': xAKo, 'synerror': ogCB, 'arc': str(ZO_c.GetMessages(2))})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eyrs(qnba):\n JiPG = []\n for w1Cv in qnba:\n JiPG.append(int(w1Cv))\n return JiPG", "def q28K(KP6z):\n return [int(LihS) for LihS in KP6z]", "def vjfs(yv6U):\n BB4i = []\n for YRbF in yv6U:\n BB4i.append(int(YRbF))\n return BB4i", "def PVOR(hkWs):\n PVOR = []\n f...
[ "0.8621444", "0.8523958", "0.83915234", "0.83257705", "0.83227533", "0.8306796", "0.8178723", "0.80627376", "0.8049322", "0.8013085", "0.7956452", "0.79273695", "0.7918778", "0.7906699", "0.7687241", "0.7598976", "0.75419647", "0.7534101", "0.7533544", "0.7513679", "0.7501293...
0.0
-1
Calculate mse for alpha and BETA . Input the true and estimate alpha,BETA .
def W1au(Cwt5, IJ9r, UqRQ, VkH8): WJY4 = Cwt5 / oyIN.sum(Cwt5) whvd = oyIN.mean((VkH8 - IJ9r) ** 2) S5Ve = UqRQ / oyIN.sum(UqRQ) s3fY = oyIN.mean((S5Ve - WJY4) ** 2) return (s3fY, whvd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkHB(EcVT, UqYS, fuBA):\n return oyIN.mean((txbo(EcVT).dot(UqYS) - fuBA).ravel() ** 2)", "def h5nY(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)", "def h5nY(tTpl):\n return 1.0 / 2 * oyIN.mean(tTpl ** 2)", "def h5nY(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)", "def hkHB(tTpl):\n return ...
[ "0.7046324", "0.66592574", "0.6603498", "0.65895617", "0.65828615", "0.6577995", "0.65409726", "0.65409726", "0.65409726", "0.65409726", "0.65409726", "0.65152085", "0.64998645", "0.642925", "0.6414117", "0.6411089", "0.6384852", "0.6366535", "0.63617873", "0.63460034", "0.63...
0.86624783
0
Avoid returning excluded fields when always_return_data is True. This avoids returning the ``password`` after creating/updating a user.
def Y1Cf(YKHO, wHSX, **B2fa): wHSX.data = {} return super(ATKX, YKHO).full_dehydrate(wHSX, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BhJx(YKHO):\n return YKHO.instance.password", "def BhJx(YKHO):\n return YKHO.initial['password']", "def x0SS(YKHO):\n nPrm = super().clean()\n jTXt = nPrm['password']\n cbN7 = nPrm['password_confirmation']", "def BhJx(YKHO):\n return YKHO.initial['password']", "def nCu6():\n nPrm =...
[ "0.622991", "0.6133539", "0.61053526", "0.60786635", "0.60642856", "0.60534096", "0.605249", "0.605249", "0.6030214", "0.60255784", "0.6010557", "0.59705484", "0.5968529", "0.59415305", "0.5923532", "0.58949256", "0.5882826", "0.58446497", "0.58375746", "0.5824192", "0.582382...
0.0
-1
Returns total size of intervals, expect interval as (chr, left, right)
def cVzB(D7KI): D7KI.sort() EbB_ = 0 nfzA, ZSCm, uaMo = D7KI[0] for VOlW in D7KI: if VOlW[1] > uaMo or VOlW[0] != nfzA: EbB_ += uaMo - ZSCm + 1 nfzA, ZSCm, uaMo = VOlW else: uaMo = max(VOlW[2], uaMo) EbB_ += uaMo - ZSCm + 1 return EbB_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T3an(ipTK: GeneralizedInterval) -> BH6n:\n ub2E = sum([cLpF(ZfUD) for ZfUD in AkIZ(ipTK)])\n return ub2E", "def szAg(YKHO):\n return sum([VOlW[1] - VOlW[0] + 1 for VOlW in YKHO.intervals])", "def cLpF(VOlW: Interval) -> BH6n:\n VOlW.sort()\n nWAQ = VOlW[-1] - VOlW[0] if len(VOlW) > 0 else 0\...
[ "0.72779745", "0.72090155", "0.72080946", "0.71470356", "0.6961897", "0.68970925", "0.6637251", "0.662821", "0.6550975", "0.65220517", "0.65025765", "0.6492642", "0.6489097", "0.64890844", "0.64815164", "0.6459056", "0.6392495", "0.63628167", "0.63622516", "0.63189846", "0.63...
0.68702304
6
Returns the CellMapping for the cell in which the instance lives
def SQgU(YKHO): try: return ei4T.InstanceMapping.get_by_instance_uuid(YKHO.context, YKHO.instance.uuid).cell_mapping except AJ5d.InstanceMappingNotFound: raise AJ5d.MigrationPreCheckError(reason=bGrB('Unable to determine in which cell instance %s lives.') % YKHO.instance.uuid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def binM(QpfX, KAOR, VmPb):\n zzDk = ei4T.InstanceMapping.get_by_instance_uuid(QpfX, KAOR.uuid)\n if zzDk.cell_mapping is not None:\n na1r.error('During scheduling instance is already mapped to another cell: %s. This should not happen and is an indication of bigger problems. If you see this you should...
[ "0.7242521", "0.72174937", "0.72174937", "0.69795763", "0.6642899", "0.6553954", "0.64629763", "0.6460621", "0.64448816", "0.64001966", "0.6359121", "0.63232327", "0.6276992", "0.6241866", "0.6216958", "0.61939853", "0.61281526", "0.6103199", "0.6079512", "0.60718143", "0.606...
0.75553
0
Return a tuple of a timeseries array and corresponding times at given frequency (Hz), length (sec), and sampling freqency (samples/sec).
def luwW(QTg7, u54L, Vb5F): _IXK = 360.0 WKvO = XTiz.arange(0, _IXK * u54L, _IXK / Vb5F) / _IXK DZCO = XTiz.sin(2.0 * XTiz.pi * QTg7 * WKvO) return (DZCO, WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qBZl(a1PO, boBq):\n if isinstance(a1PO, oyIN.ndarray):\n a1PO = oyIN.rint(a1PO * boBq).astype(int)\n else:\n a1PO = int(round(a1PO * boBq))\n return a1PO", "def s9fw(ITS7, Vb5F):\n for YRbF in range(len(ITS7)):\n ITS7[YRbF] = ITS7[YRbF] * Vb5F\n return ITS7", "def WwXm(k...
[ "0.69369954", "0.6589103", "0.65547496", "0.6435773", "0.6410854", "0.6410854", "0.63908464", "0.62811744", "0.62805426", "0.62449026", "0.62438625", "0.6241953", "0.6208035", "0.6207495", "0.6174464", "0.6155189", "0.61332643", "0.61265063", "0.6118255", "0.61174685", "0.610...
0.5534687
71
Return the object name that should be set for this window Should be overridden in subclasses
def xMIC(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B_QI(YKHO):\n return YKHO.obj_name", "def tB6k(YKHO):\n return YKHO._object_name", "def tB6k(YKHO):\n return YKHO._object_name", "def tB6k(YKHO):\n return YKHO._object_name.value", "def H6TY(YKHO):\n return YKHO._object_name", "def mWFP(YKHO: object) -> str:\n return YKHO.__name", ...
[ "0.75299144", "0.7411819", "0.7411819", "0.7352479", "0.7342893", "0.7159703", "0.7159703", "0.7057398", "0.704423", "0.704423", "0.701739", "0.701739", "0.701739", "0.701739", "0.701739", "0.6933179", "0.6927268", "0.6899844", "0.68786496", "0.68786496", "0.6859875", "0.68...
0.7140554
7
Mocks requests. if port is 30000, act normal. if port is 30001, act normal but with a messy state. if port is 20000, return status_code=200 but bad content if port is 40000, return status_code=404
def Xd6G(bD7m, QePW): JBvl = 200 hGN5 = None kUBT = ZbWC.match('http://192\\.168\\.1\\.4/(?P<port>\\d+)/(?P<num>\\d*)', QePW.url) bIwZ = int(kUBT.groupdict()['port']) mLGw = int(kUBT.groupdict()['num']) if bIwZ == 30000: if mLGw == 99: hGN5 = nuRc.format(HPHr.get_state_str(),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zn4Q():\n try:\n bIwZ = 14100\n ObL9.start(beginning_port=bIwZ)\n Mkmy = G4JS.get('http://127.0.0.1:{port}'.format(port=bIwZ + 9))\n SjMt(Mkmy.status_code, 200)\n with DQkc(G4JS.exceptions.ConnectionError) as Bcwd:\n Mkmy = G4JS.get('http://127.0.0.1:{port}'.for...
[ "0.69091064", "0.6413112", "0.6396004", "0.6370842", "0.6307669", "0.6277558", "0.626969", "0.61164623", "0.61079055", "0.6082497", "0.60802454", "0.6076691", "0.60697573", "0.6064171", "0.6055916", "0.60379344", "0.6020978", "0.6012624", "0.6009703", "0.60035866", "0.5986116...
0.67608786
1
The class item's value.
def BWXx(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n return YKHO.__value", "def Zmkp(YKHO):\n return YKHO.attributes['value']", "def BWXx(YKHO):\n return YKHO.__value", "def BWXx(YKHO):\n return YKHO._value", "def BWXx(YKHO):\n return YKHO._value", "def BWXx(YKHO):\n return YKHO['value']", "def Zmkp(YKHO):\n return ...
[ "0.75613", "0.7537889", "0.7502427", "0.74983597", "0.74983597", "0.74735624", "0.7456661", "0.74551094", "0.7452776", "0.7452776", "0.7450547", "0.74478674", "0.7427142", "0.7427142", "0.74201554", "0.74201554", "0.74201554", "0.7419008", "0.740893", "0.740893", "0.740893", ...
0.0
-1
Returns a CLI object which uses the given callable with no translation.
def Uax2(Emd4, YEnM): return nmbq(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PRVX(oUZx: Callable[[], Any]) -> None:\n oUZx()", "def CUni(JfyU):\n JfyU = D5gV(JfyU)\n JfyU.no_help = True\n return JfyU", "def GSyo(bGrB):\n pass", "def mOBp(Emd4, YEnM, **B2fa):\n try:\n GSyo = YEnM.cli\n except AttributeError:\n if callable(YEnM):\n GSyo...
[ "0.6304482", "0.6301873", "0.6159113", "0.61180043", "0.601863", "0.60061324", "0.597973", "0.59768873", "0.5963506", "0.5951794", "0.5951794", "0.58918506", "0.5866185", "0.5848989", "0.5844801", "0.58402413", "0.58402413", "0.58402413", "0.58402413", "0.58402413", "0.584024...
0.0
-1
Rotate a point around a given point.
def tEIf(AU8u, Y_1E, hLRM=(0, 0)): WKvO, LVAh = AU8u YRSS, rUT8 = hLRM jCyH = YRSS + epAf.cos(Y_1E) * (WKvO - YRSS) + epAf.sin(Y_1E) * (LVAh - rUT8) PMVZ = rUT8 + -epAf.sin(Y_1E) * (WKvO - YRSS) + epAf.cos(Y_1E) * (LVAh - rUT8) return (jCyH, PMVZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FwCz(YKHO, YylR, AU8u):\n YKHO.rotateByRadians_(YylR)\n ZylS = aimy.transform()\n ZylS.rotateByRadians_(-YylR)\n HP9m = ZylS.transformPoint_(AU8u)\n HP9m.x -= AU8u.x\n HP9m.y -= AU8u.y\n YKHO.translateXBy_yBy_(HP9m.x, HP9m.y)", "def N0Pp(YKHO, YylR=mM0K, AU8u=[0, 0]):\n KCHu = lNLu(YK...
[ "0.8091997", "0.80891144", "0.80864495", "0.80226123", "0.79636383", "0.7894228", "0.78925675", "0.7839662", "0.77425283", "0.77417487", "0.7642868", "0.7614286", "0.75715345", "0.7565923", "0.75378585", "0.75378585", "0.75376093", "0.7537461", "0.75243485", "0.7522022", "0.7...
0.7123119
49
Get state of this runner
def xA7f(YKHO): raise NotImplementedError('Subclasses must override state_dict')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n with YKHO._lock:\n YKHO._apply_states()\n return jth9.deepcopy(YKHO._runnerstate)", "def PBhj(YKHO):\n return YKHO._runstate", "def ja6o(YKHO):\n return YKHO.state", "def ja6o(YKHO):\n return YKHO.state", "def ja6o(YKHO):\n return YKHO.state", "def ja6o(YKHO...
[ "0.8132495", "0.81053436", "0.7837442", "0.7833423", "0.7817046", "0.7817046", "0.7817046", "0.7817046", "0.7817046", "0.7817046", "0.7817046", "0.7737584", "0.7737584", "0.7703745", "0.7691805", "0.7691805", "0.7691805", "0.7691805", "0.7674125", "0.7674125", "0.7665528", ...
0.0
-1
Compute the magnitude of the gradient.
def VIzO(Ro40) -> float: FOSW = 0 CkYf = 0 for H5ew in Ro40: for gEmA in Ro40[H5ew]: for xqoZ in gEmA: CkYf += 1 FOSW += nYIM.norm(gEmA[xqoZ]) ** 2 / len(gEmA[xqoZ]) return PZyS(FOSW / CkYf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VIzO(YI_o):\n Ro40 = oyIN.asarray(oyIN.gradient(YI_o))\n F40c = oyIN.sqrt(oyIN.sum(oyIN.power(Ro40, 2.0), axis=0))\n return F40c", "def YXbZ(LNo8):\n mS2J = XC5k.Sobel(LNo8, XC5k.CV_32F, 1, 0)\n YdmJ = XC5k.Sobel(LNo8, XC5k.CV_32F, 0, 1)\n FOSW = oyIN.sqrt(oyIN.power(mS2J, 2) + oyIN.power(Y...
[ "0.7780607", "0.76058155", "0.7231363", "0.71935683", "0.7143669", "0.71327084", "0.71294636", "0.707522", "0.70693666", "0.70481503", "0.70402324", "0.69531316", "0.69364107", "0.6933124", "0.6925464", "0.6924469", "0.69177276", "0.6909438", "0.6894895", "0.68809545", "0.687...
0.7174753
4
Return the definition of this object, wherever it is. Resource is a good example. A WADL tag may contain a large number of nested tags describing a resource, or it may just contain a 'type' attribute that references a which contains those same tags. Resource.resolve_definition() will return the original Resource object...
def ZJFr(YKHO): if YKHO._definition is not None: return YKHO._definition U8uF = YKHO._get_definition_url() if U8uF is None: YKHO._definition = YKHO return YKHO zZvK = YKHO.application.lookup_xml_id(U8uF) q_DO = YKHO._definition_factory(zZvK) if q_DO is None: raise...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1tT(YKHO, id):\n return YKHO.application.resource_types.get(id)", "def Q1tT(YKHO, id):\n return ISu2(YKHO.application, YKHO.parameter.get_value(), YKHO.application.resource_types.get(id).tag)", "def aUn0(YKHO, tGci=None):\n if YKHO.representation is not None:\n q_DO = YKHO.representation_d...
[ "0.62325144", "0.62215555", "0.60879135", "0.585023", "0.5834252", "0.5805369", "0.57208294", "0.5711329", "0.5657421", "0.55807966", "0.54458916", "0.5444575", "0.5444575", "0.54252106", "0.5415783", "0.5337916", "0.5292194", "0.5264508", "0.5220466", "0.52052975", "0.515186...
0.69115627
0
Return the URL to this resource.
def bD7m(YKHO): return YKHO._url
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKrO(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_url')", "def hKhs(YKHO) -> str:\n return YKHO.__url", "def bD7m(YKHO) -> str:\n return YKHO._url", "def bD7m(YKHO) -> str:\n return YKHO._url", "def bD7m(YKHO) -> str:\n return YKHO._url", "def bD7m(YKHO) -> str:\n return YKHO._ur...
[ "0.85778683", "0.8436365", "0.8331532", "0.8331532", "0.8331532", "0.8331532", "0.8331532", "0.8331532", "0.8331532", "0.8331532", "0.8331532", "0.8331532", "0.8331532", "0.82728773", "0.82728773", "0.8250171", "0.82446307", "0.8204765", "0.820374", "0.8154316", "0.8154316", ...
0.8109437
27
Return the URL to the type definition for this resource, if any.
def AiZN(YKHO): if YKHO.tag is None: return None bD7m = YKHO.tag.attrib.get('type') if bD7m is not None: return bD7m EhYO = YKHO.tag.attrib.get('id') if EhYO is not None: P8oC = i3wb(YKHO.application.markup_url).ensureSlash() return str(P8oC) + '#' + EhYO return N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M_fZ(YKHO):\n type = YKHO.tag.attrib.get('resource_type')\n if type is None:\n raise S736('Parameter is a link, but not to a resource with a known WADL description.')\n return type", "def M_fZ(YKHO):\n return YKHO.tag.attrib.get('type')", "def DDlJ(YKHO):\n return qG0X.SBOLObject_getT...
[ "0.7781904", "0.7557284", "0.6889292", "0.67925984", "0.6756853", "0.6755733", "0.6749707", "0.6740117", "0.6683991", "0.6683991", "0.66463655", "0.66046613", "0.6500621", "0.64947027", "0.64799654", "0.64776003", "0.63800246", "0.6351885", "0.6339196", "0.6337135", "0.631581...
0.7773367
1
Return the ID of this resource.
def id(YKHO): return YKHO.tag.attrib['id']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO):\n return YKHO._resource_id", "def id(YKHO):\n return YKHO._getValue('resource-id')", "def PcW4(YKHO) -> int:\n return YKHO._resource_id", "def id(YKHO):\n hLRM = YKHO._get_origin()\n return hLRM.resource_id.id", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')"...
[ "0.9055925", "0.8827144", "0.8534578", "0.85115796", "0.85077417", "0.85077417", "0.85077417", "0.8455664", "0.8426432", "0.8202445", "0.819468", "0.8164411", "0.81616825", "0.81616825", "0.81616825", "0.81616825", "0.81508094", "0.81508094", "0.8149791", "0.8149791", "0.8149...
0.0
-1
Look up one of this resource's methods by HTTP method.
def YxsS(YKHO, GjSa=None, tGci=None, o2VW=None, ksIZ=None): for zK1A in YKHO._method_tag_iter(): mWFP = zK1A.attrib.get('name', '').lower() if GjSa is None or mWFP == GjSa.lower(): NKcE = _W0Q(YKHO, zK1A) if NKcE.is_described_by(tGci, o2VW, ksIZ): return NKcE ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GjSa(YKHO):\n return YKHO.random.choice(tJ9j)", "def xw3l(YKHO, QePW, XeOP, m5r4, TBsA):\n try:\n if not YKHO.controller:\n iked = getattr(YKHO, XeOP)\n else:\n iked = getattr(YKHO.controller, XeOP)\n return iked\n except AttributeError:\n if not YKH...
[ "0.6856528", "0.67918277", "0.6785041", "0.67849076", "0.6749572", "0.6683616", "0.66591984", "0.6644878", "0.6632321", "0.65786636", "0.65733063", "0.65269166", "0.6493359", "0.6442528", "0.6442528", "0.64349556", "0.6386474", "0.63691974", "0.633996", "0.63388526", "0.63324...
0.69032073
0
A list of this resource's parameters.
def SGPK(YKHO, tGci=None): return YKHO._find_representation_definition(tGci).params(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RQf5(YKHO):\n return XDS4.list()", "def RQf5(YKHO):\n return XDS4.list()", "def RQf5(YKHO):\n return XDS4.list()", "def RQf5(YKHO):\n return XDS4.list()", "def RQf5(YKHO):\n return XDS4.list()", "def RQf5(YKHO):\n return XDS4.list()", "def xmhH():\n return []", "def SGPK(YKHO...
[ "0.8683452", "0.8683452", "0.8683452", "0.8683452", "0.8683452", "0.8666746", "0.78964645", "0.7866688", "0.7668542", "0.7642448", "0.7625887", "0.7573084", "0.75409293", "0.75409293", "0.75409293", "0.7527644", "0.7527644", "0.7527644", "0.7527644", "0.7527644", "0.7527644",...
0.0
-1
Get the most appropriate representation definition. If media_type is provided, the most appropriate definition is the definition of the representation of that media type. If this resource is bound to a representation, the most appropriate definition is the definition of that representation. Otherwise, the most appropri...
def aUn0(YKHO, tGci=None): if YKHO.representation is not None: q_DO = YKHO.representation_definition.resolve_definition() elif tGci is not None: q_DO = YKHO.get_representation_definition(tGci) else: raise FtLs('Resource is not bound to any representation, and no media media type was ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ScWp(YKHO, tGci):\n P3St = YKHO.get_method('GET').response\n for TcPZ in P3St:\n VyO5 = TcPZ.resolve_definition().tag\n if VyO5.attrib.get('mediaType') == tGci:\n return TcPZ\n raise Am3R('No definition for representation with media type %s.' % tGci)", "def ScWp(YKHO, tGci=N...
[ "0.84351045", "0.81975967", "0.7971893", "0.6487814", "0.59573907", "0.58841276", "0.5876753", "0.5876204", "0.58504146", "0.581483", "0.57532185", "0.56627285", "0.5644958", "0.56218356", "0.56051797", "0.5518485", "0.550619", "0.5479743", "0.54592174", "0.5433528", "0.54239...
0.7854981
3
The name of the WADL method definition. This is also the name of the HTTP method (GET, POST, etc.) that should be used to invoke the WADL method.
def mWFP(YKHO): return YKHO.tag.attrib.get('name').lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HKWu(YKHO) -> str:\n return 'http.Method' + Hmkb.capitalize_first_letter(YKHO.verb.lower())", "def GjSa(YKHO):\n return YKHO._http_method.name", "def NKcE(YKHO) -> str:\n return YKHO.request.method.lower()", "def j4W7(YKHO):\n return YKHO.http_method.upper()", "def j4W7(YKHO):\n return Y...
[ "0.7312206", "0.68678796", "0.6753633", "0.67288333", "0.67288333", "0.6667727", "0.66173816", "0.66108334", "0.65779823", "0.65587187", "0.6528554", "0.6528554", "0.64514905", "0.642326", "0.63517046", "0.63517046", "0.62754506", "0.62603116", "0.62429667", "0.62032", "0.620...
0.0
-1
Return the request URL to use to invoke this method.
def ALEG(YKHO, PEzL=None, **Va6j): return YKHO.request.build_url(PEzL, **Va6j)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lWQw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'request_url')", "def bD7m(YKHO) -> str:\n return YKHO._internal_response.request.url", "def bD7m(YKHO):\n return bD7m.URL(super(VNUm, YKHO).url)", "def lWQw(YKHO, w2IS):\n return YKHO.base_url + w2IS", "def yoae(YKHO) -> h8nf[str...
[ "0.81450146", "0.7941139", "0.79281485", "0.7899534", "0.7745801", "0.773411", "0.771863", "0.76702327", "0.76105183", "0.76104116", "0.75525916", "0.75422347", "0.7531514", "0.75267905", "0.7523932", "0.7520245", "0.7504798", "0.7492032", "0.7492032", "0.7489571", "0.7479960...
0.0
-1
Return the request URL to use to invoke this method.
def jNi7(YKHO, PEzL=None, **Va6j): EK6W = YKHO.validate_param_values(YKHO.query_params, PEzL, **Va6j) bD7m = YKHO.resource.url if len(EK6W) > 0: if '?' in bD7m: SStx = '&' else: SStx = '?' bD7m += SStx + QIYp(sorted(EK6W.items())) return bD7m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lWQw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'request_url')", "def bD7m(YKHO) -> str:\n return YKHO._internal_response.request.url", "def bD7m(YKHO):\n return bD7m.URL(super(VNUm, YKHO).url)", "def lWQw(YKHO, w2IS):\n return YKHO.base_url + w2IS", "def yoae(YKHO) -> h8nf[str...
[ "0.81450146", "0.7941139", "0.79281485", "0.7899534", "0.7745801", "0.773411", "0.771863", "0.76702327", "0.76105183", "0.76104116", "0.75525916", "0.75422347", "0.7531514", "0.75267905", "0.7523932", "0.7520245", "0.7504798", "0.7492032", "0.7492032", "0.7489571", "0.7479960...
0.0
-1
Get an iterator over the representation definitions. These are the representations returned in response to an invocation of this method.
def Vs4Q(YKHO): pmON = ptaa('representation') for VyO5 in YKHO.tag.findall(pmON): yield QYEq(YKHO.resource.application, YKHO.resource, VyO5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gbjw(YKHO):\n for XLMv in YKHO._definition.iterSections():\n yield XLMv", "def S2xu(YKHO):\n return YKHO._entry_details()['representations']", "def Ndao(Emd4):\n return iter(Emd4.writerRegistry)", "def xHrl(YKHO) -> object:\n return YKHO._definitions", "def g245(YKHO):\n return {W...
[ "0.6481632", "0.63807", "0.636137", "0.61226535", "0.61171454", "0.6008197", "0.5994762", "0.59688175", "0.59688175", "0.59688175", "0.59608287", "0.59608287", "0.5944974", "0.59241456", "0.5912734", "0.5900047", "0.5891695", "0.5888753", "0.5882831", "0.58356935", "0.5823974...
0.8086624
0
The name of this parameter.
def mWFP(YKHO): return YKHO.tag.attrib.get('name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.parameter_name", "def SK6d(YKHO) -> str:\n ...", "def SK6d(YKHO) -> str:\n return HEOD.get(YKHO, 'parameterName')", "def SK6d(YKHO) -> str:\n return HEOD.get(YKHO, 'parameterName')", "def SK6d(YKHO) -> str:\n return HEOD.get(YKHO, 'parameterName')", "def SK6d(...
[ "0.90127975", "0.8900499", "0.86688113", "0.86688113", "0.86688113", "0.86155975", "0.86155975", "0.80277723", "0.8020788", "0.8020788", "0.8020788", "0.7819259", "0.7806734", "0.7806734", "0.78006196", "0.78006196", "0.78006196", "0.78006196", "0.78006196", "0.78006196", "0....
0.0
-1
The XSD type of this parameter.
def type(YKHO): return YKHO.tag.attrib.get('type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YGJA(YKHO):\n return YKHO.__elementDeclaration.elementBinding().typeDefinition()", "def j7hS(YKHO):\n V724 = YKHO.lookup_type(YKHO.field_type)\n if V724:\n return V724['xforms_type']\n else:\n raise RuntimeError(\"Field type: '%s' not supported in XForms\" % YKHO.field_type)", "de...
[ "0.71658576", "0.70054245", "0.68738085", "0.68738085", "0.68738085", "0.6748492", "0.67272127", "0.6701952", "0.6653288", "0.6653288", "0.66470957", "0.6622545", "0.6614951", "0.66078174", "0.6595094", "0.6595094", "0.6595094", "0.6595094", "0.6594001", "0.6594001", "0.65905...
0.66568136
8
The value of this parameter in the bound representation/headers.
def Zmkp(YKHO): return YKHO.value_container.get_parameter_value(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO._context['value']", "def BS8p(YKHO, k78t):\n if YKHO.headers is None:\n raise FtLs('Response object is not bound to any headers.')\n if k78t.style != 'header':\n raise NotImplementedError(\"Don't know how to find value for a parameter of type %s.\" % k78t.styl...
[ "0.7200283", "0.71394235", "0.70764613", "0.70764613", "0.70764613", "0.70648754", "0.7052257", "0.6997098", "0.6995079", "0.69667", "0.69667", "0.6964839", "0.69647884", "0.696424", "0.6943659", "0.6943659", "0.6943659", "0.69408387", "0.69397664", "0.69289714", "0.69284564"...
0.7182472
1
Turn a resource type ID into a ResourceType.
def Q1tT(YKHO, id): return ISu2(YKHO.application, YKHO.parameter.get_value(), YKHO.application.resource_types.get(id).tag)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AG37(YKHO, Eorv):\n return YKHO.getResourceValue(Eorv, jO3H.type)", "def qV7L(YKHO, Qjbs=None, NBcv=''):\n if not ui2g(Qjbs.name):\n raise rDSL('Invalid resource name: %s ' % Qjbs.name)\n if not NBcv:\n raise rDSL('Object_id is missing')\n vcaS = YKHO.clients.resource_registry.read(...
[ "0.6485898", "0.6348904", "0.62243444", "0.62223065", "0.62178653", "0.62069863", "0.6036846", "0.6017319", "0.5969667", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637", "0.596637...
0.0
-1
Retrieve a resource type by the URL of its description.
def X3sg(YKHO, cWbs): zZvK = YKHO.lookup_xml_id(cWbs) Qjbs = YKHO.resource_types.get(zZvK) if Qjbs is None: raise KeyError('No such XML ID: "%s"' % cWbs) return Qjbs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TZD5(YKHO, PKrO):\n if ZbWC.search('(api/)$', PKrO):\n return M31G\n else:\n _hkX = YKHO.server_interface.get(PKrO)\n UrXw = tU6l(_hkX)\n if SGCs(UrXw):\n return GQua\n else:\n return O57j", "def Eorv(YKHO, kN9s, leAC):\n JKCy = YKHO.__api.res...
[ "0.7508251", "0.7335377", "0.7177738", "0.6554776", "0.6485981", "0.6397314", "0.63602996", "0.6350799", "0.6267261", "0.62526494", "0.6249688", "0.6231605", "0.62164503", "0.6211919", "0.6211919", "0.6211919", "0.6211919", "0.6181537", "0.6170298", "0.61608917", "0.61608917"...
0.7569108
0
Logically opposite of __eq__
def Vdqg(YKHO, Elif): return not YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n ret...
[ "0.88366604", "0.88337636", "0.8750802", "0.87286896", "0.8705843", "0.8692625", "0.86601174", "0.8615061", "0.8603984", "0.8587181", "0.8584303", "0.854427", "0.8543366", "0.8543366", "0.8543366", "0.8534203", "0.8534203", "0.8534203", "0.85324705", "0.85324705", "0.85324705...
0.0
-1
Return the Hermitian of the matrix.
def TIj9(YKHO): return YKHO._matrix.H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IHiF(vb7U):\n return vb7U.H", "def YsUc(YKHO):\n return gQS9.matrix_stored_hermitian(YKHO)", "def OK_x(YKHO, yJiH):\n ORsB = oyIN.array([[1, 1], [1, -1]]) / oyIN.sqrt(2)\n yvT9 = B2Ja.Hermitian(ORsB, wires=0).matrix()\n assert isinstance(yvT9, oyIN.ndarray)\n assert oyIN.allclose(yvT9, OR...
[ "0.6987424", "0.6944532", "0.67494625", "0.6500472", "0.6430626", "0.6382831", "0.6342273", "0.61281115", "0.6029372", "0.60254955", "0.60027736", "0.59999377", "0.5885339", "0.5878122", "0.5838797", "0.5827146", "0.58088577", "0.5805535", "0.57951", "0.57745165", "0.57570773...
0.0
-1
Logically opposite of __eq__(other)
def Vdqg(YKHO, Elif): return not YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return super().__ne__(Elif)", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif):...
[ "0.9008276", "0.89950013", "0.8990871", "0.89395916", "0.89263904", "0.8883661", "0.88662106", "0.8858781", "0.8843337", "0.88126045", "0.874344", "0.874344", "0.874344", "0.8740774", "0.8740774", "0.87325305", "0.87325305", "0.87325305", "0.87325305", "0.87325305", "0.871934...
0.88849056
11
Creates a CONTROLU gate where qu_gate is U Note we use the handy formula for controlU gates in
def KP4Y(Emd4, O6Qp, NXZD=1, uLGY=2, sogq=2): if sogq < 2: tO9_ = 'control gates must operate on at least 2 qubits' raise UAju.InvalidQuGateError(tO9_) if NXZD == uLGY: tO9_ = 'control qubit must be different than target qubit' raise UAju.InvalidQuGateError(tO9_) if NXZD > so...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nsOz(KkY2):\n yvY1 = MUmk(2 ** (KkY2.n() + 1))\n yvY1[2 ** KkY2.n():, 2 ** KkY2.n():] = KkY2.matrix()\n return iOgy(yvY1)", "def NS4X(vQ4U, pan_, P6bq, FS3L):\n\n def H6Yy(vQ4U, pan_, msEJ, FwtR, mYrZ=set(r1CB)):\n Dqav = oyIN.array([[1, 0], [0, 0]])\n IwuR = oyIN.array([[0, 0], [0,...
[ "0.7113181", "0.64373845", "0.6369248", "0.6356281", "0.61825085", "0.6166109", "0.61159605", "0.60798806", "0.5931833", "0.5928781", "0.58959883", "0.570562", "0.5684621", "0.56568015", "0.56390584", "0.5610232", "0.55080193", "0.54954296", "0.5482396", "0.54738796", "0.5473...
0.6542085
1
Return the tensor product of two QuGates
def ePxJ(PA7M, Jcgg): Q9wQ = oyIN.kron(PA7M.matrix, Jcgg.matrix) return Reuf(Q9wQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kEeD(ufqm: torch.Tensor, iehn: torch.Tensor) -> ht2j.Tensor:\n QmRp = len(ufqm.size())\n AjwP = len(iehn.size())\n QePW = ''\n QePW += vIwR.ascii_lowercase[:QmRp] + ','\n QePW += vIwR.ascii_lowercase[QmRp:QmRp + AjwP]\n QePW += '->' + vIwR.ascii_lowercase[:QmRp + AjwP]\n return ht2j.einsum...
[ "0.6945068", "0.68934804", "0.6856624", "0.6769198", "0.6711568", "0.67109066", "0.6661208", "0.65774673", "0.65699196", "0.6564396", "0.65601283", "0.6488024", "0.6432055", "0.64289474", "0.6419859", "0.641563", "0.64149123", "0.6410066", "0.63943595", "0.6389339", "0.636007...
0.6510014
11
Return a tensor product of all gates in passed in
def HE2a(IXCZ): SppC = None if IXCZ: SppC = IXCZ[0].matrix for YRbF in range(1, len(IXCZ)): SppC = oyIN.kron(SppC, IXCZ[YRbF].matrix) return SppC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb0G(NArs, N77f, o4Jx, iArr) -> ht2j.Tensor:\n pass", "def kEeD(WKvO):\n exwG = WKvO.size\n WKvO = WKvO.reshape((exwG, 1))\n return WKvO.dot(WKvO.T).reshape((exwG ** 2,))", "def ntfE(cRc2):\n return AC6O('prod', cRc2)", "def pOv4(YKHO, g4y1):\n return ZylS.einsum('tijad,ijab->tbd', g4y1...
[ "0.7381395", "0.69722253", "0.6820046", "0.6576755", "0.65095294", "0.6505932", "0.6392773", "0.6286686", "0.6218809", "0.6201317", "0.6179271", "0.6140185", "0.61346275", "0.6123243", "0.6104909", "0.60985166", "0.60733056", "0.60665816", "0.60555315", "0.6054717", "0.602812...
0.68805575
2
Returns the unit of the spectral axis.
def rvO_(YKHO): return YKHO._wcs.wcs.cunit[YKHO.spec_axis]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RoSH():\n return rYO3.Unit('um')", "def b82i(YKHO):\n return FBLU[YKHO.sensor_name][0]", "def PXGI(YKHO):\n if YKHO.wcs.wcs.cunit[0] != YKHO.wcs.wcs.cunit[1]:\n YKHO._logger.warning('different units on x- and y-axes')\n return YKHO.wcs.wcs.cunit[0]", "def rYO3(YKHO):\n return YKHO._...
[ "0.82404274", "0.7521485", "0.75192934", "0.74411994", "0.74065524", "0.7385263", "0.72898567", "0.72898567", "0.7258414", "0.72563684", "0.723575", "0.7219666", "0.7186415", "0.7164568", "0.71561533", "0.7155365", "0.71505517", "0.71505517", "0.71505517", "0.71505517", "0.71...
0.88451093
0
Test creating a new User instance. The constructor for the User class should accept parameters for first name, last name, email, time created, and time updated.
def CW30(YKHO): NArs = {'first_name': 'John', 'last_name': 'Doe', 'email': 'test@example.com', 'time_created': '', 'time_updated': ''} CBIr = FYrf.User(**NArs) YKHO.assertEqual(NArs['first_name'], CBIr.first_name) YKHO.assertEqual(NArs['last_name'], CBIr.last_name) YKHO.assertEqual(NArs['email'], CB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cCBn(vCWU, gFsc):\n CBIr = vCWU.objects.create_user(email=gFsc.email, password=gFsc.password)\n assert CBIr.email == gFsc.email\n assert CBIr.created_at.date() == CBIr.updated_at.date()", "def cDXr(YKHO):\n nPrm = {'username': 'xavier', 'email': 'xavier@xavier.com', 'password': 'xavierpass'}\n ...
[ "0.8150939", "0.79001075", "0.7862431", "0.7848598", "0.783843", "0.78345156", "0.7833627", "0.7790108", "0.77693146", "0.7743911", "0.7727792", "0.7723334", "0.7709823", "0.76814157", "0.7621171", "0.7617607", "0.7595228", "0.7589812", "0.75862324", "0.75634336", "0.75599474...
0.8370355
0
Returns a dictionary representing the attributes of the ProgramWorkouts. Key is the name of the attribute and value is the value of the attribute.
def MNRr(YKHO): return {'program_id': YKHO.get_program().to_dict(), 'workout_id': YKHO.get_workout().to_dict()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6gc(YKHO):\n mIvx = {'hardware_id': YKHO.hardware_id, 'availability_alloc': YKHO.availability_alloc, 'duty_cycle': YKHO.duty_cycle, 'env_factor': YKHO.env_factor, 'goal_measure_id': YKHO.goal_measure_id, 'hazard_rate_alloc': YKHO.hazard_rate_alloc, 'hazard_rate_goal': YKHO.hazard_rate_goal, 'included': YKH...
[ "0.60872495", "0.5893637", "0.5878431", "0.58733267", "0.5796491", "0.57632583", "0.5718556", "0.5714244", "0.5714244", "0.5711492", "0.571108", "0.5704045", "0.5700853", "0.5689534", "0.56741524", "0.56705046", "0.56612176", "0.56458175", "0.5593928", "0.5588277", "0.5573512...
0.7040557
0
Returns Workout object for the ProgramWorkouts.
def dhOG(YKHO): Ylbp = K1Ym.query.filter_by(id=YKHO.workout_id) if Ylbp: return Ylbp raise ELJA('Workout does not exist.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I9Fe(SzyO: int):\n usx6 = ruhJ.filter_by_program_id(SzyO)\n A07C = []\n for rdlD in usx6:\n A07C.append(rdlD.workout_id)\n return NCls.session.query(K1Ym).filter(K1Ym.id.in_(A07C)).order_by(K1Ym.name).all()", "def dhOG(YKHO, RQ5D):\n return YKHO._get('workouts/' + RQ5D)", "def dhOG():...
[ "0.6573213", "0.63771766", "0.63017976", "0.6191407", "0.6106481", "0.5837094", "0.5836868", "0.5825768", "0.5729615", "0.5581725", "0.5564296", "0.5541844", "0.55050987", "0.54774445", "0.5461449", "0.5403338", "0.5360608", "0.53602076", "0.5353405", "0.53415173", "0.5323813...
0.7166507
0
Return the time (as an int) of the start of the interval containing 'when'.
def rz2M(YKHO, ZpyY): if YKHO.itype == 'month': YGfs = ITS7.gmtime(ZpyY) exwG = YGfs.tm_year * 12 + YGfs.tm_mon - 1 exwG -= exwG % YKHO.count x0eS = exwG % 12 + 1 return GRk0.timegm((exwG // 12, x0eS, 1, 0, 0, 0)) elif YKHO.itype == 'day': ZpyY -= ZpyY % (86400 * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p3xW(YKHO, ZpyY):\n if YKHO.itype == 'month':\n YGfs = ITS7.gmtime(ZpyY)\n exwG = YGfs.tm_year * 12 + YGfs.tm_mon - 1\n exwG -= exwG % YKHO.count\n x0eS = exwG % 12 + 1\n YGfs = (exwG // 12, x0eS + YKHO.count, 1, 0, 0, 0)\n return GRk0.timegm(YGfs)\n elif YKHO.it...
[ "0.751275", "0.6981411", "0.67591953", "0.61320496", "0.6131695", "0.6083581", "0.598373", "0.57854563", "0.5716682", "0.57081676", "0.5704668", "0.5695521", "0.55858636", "0.5572631", "0.5543764", "0.5535622", "0.55121326", "0.55035704", "0.5496698", "0.54621255", "0.5429402...
0.77355003
0
Return the start time of the interval starting _after_ when.
def p3xW(YKHO, ZpyY): if YKHO.itype == 'month': YGfs = ITS7.gmtime(ZpyY) exwG = YGfs.tm_year * 12 + YGfs.tm_mon - 1 exwG -= exwG % YKHO.count x0eS = exwG % 12 + 1 YGfs = (exwG // 12, x0eS + YKHO.count, 1, 0, 0, 0) return GRk0.timegm(YGfs) elif YKHO.itype == 'day':...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz2M(YKHO, ZpyY):\n if YKHO.itype == 'month':\n YGfs = ITS7.gmtime(ZpyY)\n exwG = YGfs.tm_year * 12 + YGfs.tm_mon - 1\n exwG -= exwG % YKHO.count\n x0eS = exwG % 12 + 1\n return GRk0.timegm((exwG // 12, x0eS, 1, 0, 0, 0))\n elif YKHO.itype == 'day':\n ZpyY -= Zpy...
[ "0.73681414", "0.64507586", "0.6210728", "0.61415905", "0.61038107", "0.6022244", "0.5897682", "0.5882708", "0.5837274", "0.56978685", "0.55937636", "0.5561479", "0.55379456", "0.5504008", "0.547772", "0.547772", "0.5476716", "0.5463304", "0.5428008", "0.5408397", "0.5343833"...
0.70588475
1
Getter for the underlying repository model.
def JSgi(YKHO): return YKHO._repositoryModel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F3jJ(YKHO):\n return YKHO._repository", "def F3jJ(YKHO):\n return YKHO._repository", "def boHx(YKHO):\n return YKHO.repository", "def NMoC(YKHO):\n return C3ST", "def F3jJ(YKHO):\n return YKHO._impl.getRepository(YKHO.critic)", "def YrZb(YKHO) -> object:\n raise NotImplementedError(...
[ "0.7360193", "0.7360193", "0.72090286", "0.7140528", "0.71177566", "0.70856684", "0.70509994", "0.6971737", "0.69702107", "0.69702107", "0.69702107", "0.69702107", "0.69702107", "0.69702107", "0.69702107", "0.69702107", "0.69702107", "0.69702107", "0.69702107", "0.69702107", ...
0.88372153
0
Ensure that no trailing text in a malformed notoplevelelement document(s) will not be dropped.
def y3wP(YKHO): KCHu = '<br>Hi orders!' Csk6 = wCU5.parseString(KCHu, beExtremelyLenient=True) YKHO.assertEqual(Csk6.firstChild().toxml(), '<html><br />Hi orders!</html>') vUH7 = aKaX() Csk6.firstChild().writexml(vUH7, '', '', '', '', {}, '') YKHO.assertEqual(vUH7.getvalue(), b'<html><br />Hi or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TmBc(YKHO):\n YKHO.assertIdentical(None, YKHO.partDisplayer.scrubbedHTML(''))", "def NSNG(YKHO):\n YKHO._testReject('DIST foo \\n')\n YKHO._testReject('# Comment \\n')\n YKHO._testReject(' \\n')", "def Yczo(YKHO):\n YKHO._clean_headings()\n YKHO._clean_text()", "def ZXCU(C13M):\n re...
[ "0.6257142", "0.5935298", "0.5919182", "0.5819278", "0.5793132", "0.57570106", "0.57395965", "0.57270116", "0.56919086", "0.5688759", "0.5687111", "0.5639692", "0.56199956", "0.5611186", "0.56036305", "0.56031877", "0.5597536", "0.55901825", "0.55715287", "0.55694187", "0.554...
0.6311046
0
L{Node.isEqualToNode} returns C{True} if and only if passed a L{Node} with the same children.
def K4dr(YKHO): Q6kx = wCU5.Node(object()) YKHO.assertTrue(Q6kx.isEqualToNode(Q6kx)) rEbr = wCU5.Node(object()) YKHO.assertTrue(Q6kx.isEqualToNode(rEbr)) Q6kx.appendChild(wCU5.Node(object())) YKHO.assertFalse(Q6kx.isEqualToNode(rEbr)) rEbr.appendChild(wCU5.Node(object())) YKHO.assertTrue...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def et_p(YKHO):\n YKHO.assertTrue(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar')))\n YKHO.assertFalse(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(wCU5.Element('bar', {'a': 'b'}, object(), namespa...
[ "0.7418129", "0.72576696", "0.7181643", "0.7140147", "0.7055426", "0.69589734", "0.69576067", "0.6922512", "0.68974996", "0.6832617", "0.68107486", "0.67937076", "0.67910355", "0.67750335", "0.67672205", "0.67614305", "0.67605245", "0.67488927", "0.67389727", "0.6734925", "0....
0.7828845
0
L{Document.isEqualToNode} returns C{True} if and only if passed a L{Document} with the same C{doctype} and C{documentElement}.
def et_p(YKHO): C13M = wCU5.Document() YKHO.assertTrue(C13M.isEqualToNode(C13M)) rEbr = wCU5.Document() YKHO.assertTrue(C13M.isEqualToNode(rEbr)) C13M.doctype = YKHO.doctype YKHO.assertFalse(C13M.isEqualToNode(rEbr)) rEbr.doctype = YKHO.doctype YKHO.assertTrue(C13M.isEqualToNode(rEbr)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def et_p(YKHO):\n YKHO.assertTrue(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar')))\n YKHO.assertFalse(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(wCU5.Element('bar', {'a': 'b'}, object(), namespa...
[ "0.6722494", "0.6575723", "0.6525952", "0.6519636", "0.62692577", "0.6261781", "0.6179569", "0.61150646", "0.6077649", "0.6041471", "0.5930166", "0.5930166", "0.58459467", "0.58270645", "0.5708455", "0.56724656", "0.5658583", "0.56207114", "0.5608516", "0.5608232", "0.5607589...
0.78259605
0