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
Method to Create new User having the details provided(arguments). Bypasses an error after creating user to verify.
def KEwG(YKHO, QBRK, DCxm, D3lj, LmAn): YKHO.waitForElement(locator=YKHO._createUserBtn, locatorType='xpath') YKHO.elementClick(locator=YKHO._createUserBtn, locatorType='xpath') YKHO.waitForElement(locator=YKHO._createUser_firstName) YKHO.sendKeys(QBRK, locator=YKHO._createUser_firstName) YKHO.sendK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, vGfb: tuple):\n CBIr = LOzg.objects.create(user_name=vGfb[0], email=vGfb[1], password=vGfb[2])\n return CBIr", "def xWi2(YKHO, CJFr, fV9G, RnYf, PHBT, jTXt=None, **wdCM):\n if not (CJFr and fV9G):\n raise ValueError(\"The user's Name must be set\")\n if not RnYf:\n raise ...
[ "0.81658626", "0.812273", "0.79001874", "0.7873561", "0.786089", "0.7845663", "0.7822935", "0.7803112", "0.780146", "0.7782876", "0.77760905", "0.7772073", "0.7768335", "0.776815", "0.77621067", "0.77603656", "0.7755696", "0.77265525", "0.77216506", "0.7718733", "0.7713615", ...
0.0
-1
Generate the primes less than or equal to n using the sieve of Eratosthenes.
def ht2G(WKvO): S2wa = [] for YRbF in range(2, WKvO + 1): if YRbF not in S2wa: print(YRbF) for r845 in range(YRbF * YRbF, WKvO + 1, YRbF): S2wa.append(r845)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DJ4N(exwG):\n mSrU = [True for YRbF in range(exwG + 1)]\n XP5J = 2\n while XP5J ** 2 <= exwG:\n if mSrU[XP5J]:\n for YRbF in range(XP5J ** 2, exwG + 1, XP5J):\n mSrU[YRbF] = False\n XP5J += 1\n rPed = EC_r(range(2, exwG + 1), mSrU[2:])\n return list(rPed)"...
[ "0.84532684", "0.84293544", "0.839482", "0.82773215", "0.82773215", "0.827718", "0.824376", "0.82298744", "0.82075906", "0.8160965", "0.8142738", "0.81048757", "0.8100949", "0.80772", "0.80077285", "0.7987257", "0.7985756", "0.7976648", "0.79743433", "0.7949417", "0.79442585"...
0.7163392
80
Set a configuration of all the possible variables that were set in the experiments. This includes the datasets, hyperparameters for training, networks, outputs, datasets paths, results paths
def wOGa(ETiu, ikYM, ltfJ, S3nF=0, YHBS=0, DVe7=False, FWK_=0, cEbl=0, FiJ9=0, jqwg=0, Yd3Y=False): AaD6 = False __n6 = {0: 'mocap', 1: 'mbientlab', 2: 'virtual', 3: 'mocap_half', 4: 'virtual_quarter', 5: 'mocap_quarter', 6: 'mbientlab_50_p', 7: 'mbientlab_10_p', 8: 'mbientlab_50_r', 9: 'mbientlab_10_r', 10: 'm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr():\n kuHn = './experiments'\n iDjc = 1000\n begE = 'cpu'\n FEOK = Hy7s.path.join(kuHn, 'data/ethanol.xyz')\n U67F = Hy7s.path.join(kuHn, 'simulation')\n NB0B = Hy7s.path.join(kuHn, 'training')\n uqvc = Hy7s.path.join(NB0B, 'best_model')\n f2Tp = True", "def GPtr():\n COeE: BPp...
[ "0.672564", "0.62647396", "0.6243723", "0.6128425", "0.61060774", "0.60060334", "0.59438", "0.5941659", "0.5925815", "0.59166384", "0.5910552", "0.58799183", "0.58657604", "0.58369905", "0.5828707", "0.58076674", "0.58044046", "0.5795966", "0.5772712", "0.5751345", "0.5745822...
0.534881
86
Initialization of the BoundReduce class. Threshold defines the minimum percentage reduction for another iteration of the reduction process to occur.
def FIMM(YKHO, uwaB, gwAu=0.05, h5J3=50, JbyC={}): YKHO.constants = uwaB YKHO.coefficients = uwaB.calculate_constants() YKHO.threshold = gwAu YKHO.tries = h5J3 YKHO.flags = JbyC YKHO.initialize_flags()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gwAu: float=0.3, _s3n: float=0.0) -> None:\n YKHO.threshold = gwAu\n YKHO.initial_val = _s3n", "def FIMM(YKHO, KnxT: int=5, gwAu: float=0.3, _s3n: float=0.0) -> None:\n YKHO.window = KnxT\n YKHO.threshold = gwAu\n YKHO.initial_val = _s3n", "def FIMM(YKHO, aM8h: float=0.5, gwAu: fl...
[ "0.6810921", "0.64456433", "0.63972753", "0.61463356", "0.5975817", "0.5975474", "0.5908852", "0.58632016", "0.5782928", "0.5772152", "0.57609445", "0.57543427", "0.57528543", "0.5717439", "0.5700633", "0.5643688", "0.5613517", "0.5608308", "0.55533224", "0.5535364", "0.55320...
0.5283508
55
Updates the constants given new bounds on n_1 n_k.
def m79x(YKHO, Czns): YKHO.constants.eq_update_constants(Czns) YKHO.coefficients = YKHO.constants.get_coefficients() return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WrpY(Fg_i, WKvO, exwG):\n for r845 in range(1, exwG - 1):\n for YRbF in range(1, exwG - 1):\n WKvO[hDX3(YRbF, r845, 0, exwG)] = -WKvO[hDX3(YRbF, r845, 1, exwG)] if Fg_i == 3 else WKvO[hDX3(YRbF, r845, 1, exwG)]\n WKvO[hDX3(YRbF, r845, 0, exwG - 1)] = -WKvO[hDX3(YRbF, r845, 1, ex...
[ "0.5758972", "0.5612657", "0.55401975", "0.54818946", "0.5425561", "0.5327902", "0.5288398", "0.5261668", "0.5260755", "0.5236507", "0.5203776", "0.5196004", "0.518947", "0.51719576", "0.51719576", "0.512912", "0.5089175", "0.5071909", "0.50679207", "0.5052258", "0.5044588", ...
0.5166177
15
Calculates an appropriate large constant given a bound.
def foLr(YKHO, mmRm, pAgK): shQw = round(90 / (pAgK - 1)) return rIJu(10 ** shQw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZW8(YKHO, mmRm, c5cb):\n zXh6 = YKHO.generate_approximation_matrix(c5cb)\n YiF8 = YKHO.generate_LLL_matrix(zXh6)\n qCnr = YKHO.generate_GS_matrix(YiF8)\n aAIl = YKHO.calculate_minimal_vector_bound(c5cb, YiF8, qCnr)\n o4sw, Kt_s = YKHO.calculate_S_and_T(YKHO.coefficients['Z_bounds'])\n print(...
[ "0.70371264", "0.68274575", "0.6330151", "0.63199085", "0.6241818", "0.61968136", "0.59357655", "0.5923358", "0.58914244", "0.58479667", "0.5781844", "0.5777799", "0.5703968", "0.5685938", "0.5674198", "0.5645476", "0.56358624", "0.5593585", "0.5581525", "0.55808944", "0.5540...
0.7848133
0
Finds a better upperbound on our values as defined in the procedure within our paper.
def yZW8(YKHO, mmRm, c5cb): zXh6 = YKHO.generate_approximation_matrix(c5cb) YiF8 = YKHO.generate_LLL_matrix(zXh6) qCnr = YKHO.generate_GS_matrix(YiF8) aAIl = YKHO.calculate_minimal_vector_bound(c5cb, YiF8, qCnr) o4sw, Kt_s = YKHO.calculate_S_and_T(YKHO.coefficients['Z_bounds']) print('ST', Kt_s ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A2Fp(YKHO) -> float:\n ...", "def gLHL(YKHO):\n return YKHO._upper_bound", "def Anhc(YKHO):\n if YKHO._all_nodes:\n return min((Q6kx.upper_bound for Q6kx in YKHO._all_nodes))\n else:\n return oyIN.inf", "def A2Fp(H2v2):\n cVLt = epAf.tan(epAf.radians(72))\n RE8R = 250 + H2...
[ "0.8117035", "0.76629865", "0.7376866", "0.72653604", "0.7040345", "0.6879957", "0.6829678", "0.681125", "0.6780286", "0.67495567", "0.6693107", "0.6671602", "0.664028", "0.6582505", "0.6542788", "0.64727503", "0.64616185", "0.64602685", "0.64478844", "0.64478844", "0.6401193...
0.0
-1
Load pretrained checkpoint from file.
def Y7RH(YKHO, Pnnt): print('loading model from %s\n' % Pnnt) try: if YKHO.use_cuda: TlrQ = ht2j.load(Pnnt) else: TlrQ = ht2j.load(Pnnt, map_location='cpu') BJY9 = YKHO.online_net.state_dict() TlrQ = {G1Hx: Ty9i for G1Hx, Ty9i in TlrQ.items() if G1Hx in BJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nh79(YKHO, nUeQ):\n \"\"\"Load \"\"\"\n PH_e = ht2j.load(nUeQ)\n YKHO.load_state_dict(PH_e['model_state_dict'])", "def Nh79(lqDJ: pl.Path) -> h8nf[cuzp[str, ImMB]]:\n if lqDJ.exists():\n bo34.info(f'Loading checkpoint {lqDJ}.')\n vauY = ht2j.load(str(lqDJ))\n bo34.info(f'Done...
[ "0.8382953", "0.79492986", "0.7863191", "0.78538054", "0.77684975", "0.77320653", "0.772008", "0.7675161", "0.7656564", "0.75781804", "0.74947304", "0.7473096", "0.7473096", "0.74447674", "0.74183965", "0.7414635", "0.7361754", "0.73499084", "0.73413765", "0.7331794", "0.7313...
0.7398939
16
Helper that sets up the users_allowed field on a Form or ModelForm that has a users_allowed ModelMultipleChoiceField (e.g. anything that inherits from AccessControl).
def RRMp(L03z, EE7J): L03z.fields['users_allowed'].queryset = EE7J if EE7J else egNl().objects.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pa5y(YKHO, EE7J, S03D):\n YKHO.widget.user_choices = gRQ0(EE7J)\n YKHO.fields[0].queryset = EE7J\n YKHO.widget.widgets[0].choices = YKHO.widget.user_choices\n YKHO.widget.group_choices = zvwY(S03D)\n YKHO.fields[1].queryset = S03D\n YKHO.widget.widgets[1].choices = YKHO.widget.group_choices",...
[ "0.7133922", "0.59891295", "0.5419426", "0.53075457", "0.5258928", "0.52459574", "0.5212209", "0.5207903", "0.5204906", "0.51343834", "0.5131318", "0.5113206", "0.51043993", "0.5103326", "0.5090685", "0.50806564", "0.5064924", "0.5064924", "0.5062102", "0.50522286", "0.505021...
0.8015561
0
Returns a random string of length string_length.
def kSFd(a__r=10): tuKI = str(qxeD.uuid4()) tuKI = tuKI.upper() tuKI = tuKI.replace('-', '') return tuKI[0:a__r]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWvy(u54L):\n return ''.join((jxbx().choice(C1SZ + BHGE) for YRbF in range(u54L)))", "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def GLL2(u54L: int) -> str:\n return ''.join(tuKI.choices(vIwR.ascii_letters + vIwR.digits, k=u54L...
[ "0.8691263", "0.8690539", "0.8676425", "0.86712104", "0.86504567", "0.86304426", "0.8626901", "0.85903996", "0.8588565", "0.8576007", "0.8560824", "0.85416645", "0.8539037", "0.85361385", "0.84932715", "0.8490938", "0.844971", "0.8442166", "0.84295636", "0.8426424", "0.838733...
0.8030489
84
_expand_dims for a scalar structured tensor.
def dqo4(aevO: structured_tensor.StructuredTensor): EZd9 = ZylS.constant([1], dtype=ZylS.int64) EZMw = {G1Hx: smTM(aevO.field_value(G1Hx), 0) for G1Hx in aevO.field_names()} return W6aO.StructuredTensor.from_fields(EZMw, shape=EZd9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q7Ey(WKvO):\n WKvO = ZylS.convert_to_tensor(WKvO)\n if WKvO.shape == ():\n return ZylS.expand_dims(WKvO, axis=0)\n return WKvO", "def smTM(aevO, jDK_):\n if not isinstance(aevO, W6aO.StructuredTensor):\n return ZylS.expand_dims(aevO, jDK_)\n WNnl = BPvt(jDK_, aevO.rank)\n if a...
[ "0.7003609", "0.6901896", "0.6636332", "0.65023893", "0.6334577", "0.6224399", "0.6102494", "0.59605575", "0.59365094", "0.5773648", "0.5752287", "0.57223636", "0.56908256", "0.5673388", "0.56402624", "0.56392986", "0.5556645", "0.5543574", "0.5509353", "0.5501211", "0.549557...
0.8211019
0
tf.expand_dims, but works on StructuredTensor too.
def smTM(aevO, jDK_): if not isinstance(aevO, W6aO.StructuredTensor): return ZylS.expand_dims(aevO, jDK_) WNnl = BPvt(jDK_, aevO.rank) if aevO.rank == 0: return dqo4(aevO) if WNnl == 0: HN6s = aevO.nrows() return aevO.partition_outer_dimension(qSDL.from_uniform_row_length...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q7Ey(WKvO):\n WKvO = ZylS.convert_to_tensor(WKvO)\n if WKvO.shape == ():\n return ZylS.expand_dims(WKvO, axis=0)\n return WKvO", "def dqo4(aevO: structured_tensor.StructuredTensor):\n EZd9 = ZylS.constant([1], dtype=ZylS.int64)\n EZMw = {G1Hx: smTM(aevO.field_value(G1Hx), 0) for G1Hx in...
[ "0.7842055", "0.7647919", "0.7427348", "0.71710736", "0.7027676", "0.6803491", "0.6722156", "0.67122793", "0.66567737", "0.66567737", "0.6634648", "0.65741295", "0.6564677", "0.6547203", "0.6547203", "0.65142137", "0.65100014", "0.64877397", "0.64306694", "0.6397916", "0.6380...
0.77122444
1
Creates a fully partitioned ragged tensor from a multidimensional tensor. If the tensor is 1D, then it is unchanged.
def l10p(hkxX: tf.Tensor, yDqo: tf.dtypes.DType): jEEa = hkxX.shape assert jEEa is not None ZfLr = jEEa.rank assert ZfLr is not None if ZfLr == 1: return hkxX assert ZfLr > 0 return ZylS.RaggedTensor.from_tensor(hkxX, ragged_rank=ZfLr - 1, row_splits_dtype=yDqo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _M9P(QZcN: Union[tf.RaggedTensor, tf.Tensor], yDqo=ZylS.dtypes.int64):\n if isinstance(QZcN, ZylS.RaggedTensor):\n QZcN = QZcN.with_row_splits_dtype(yDqo)\n SH97 = l10p(QZcN.flat_values, dtype=yDqo)\n return QZcN.with_flat_values(SH97)\n else:\n cuB2 = QZcN.shape\n asse...
[ "0.7368402", "0.64630765", "0.6426143", "0.6329257", "0.62925947", "0.6286065", "0.62552154", "0.6254118", "0.6218781", "0.6139193", "0.59959036", "0.5988833", "0.5983663", "0.59732264", "0.59441143", "0.59402", "0.5913747", "0.588858", "0.58860505", "0.58745676", "0.5845783"...
0.5308736
87
Creates a fully partitioned ragged tensor from a tensor or a ragged tensor. If given a tensor, it must be at least twodimensional.
def _M9P(QZcN: Union[tf.RaggedTensor, tf.Tensor], yDqo=ZylS.dtypes.int64): if isinstance(QZcN, ZylS.RaggedTensor): QZcN = QZcN.with_row_splits_dtype(yDqo) SH97 = l10p(QZcN.flat_values, dtype=yDqo) return QZcN.with_flat_values(SH97) else: cuB2 = QZcN.shape assert cuB2 is n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n9JX(vhpA):\n wRk_ = vhpA.size()\n o1Cz = vhpA.view(-1)\n OPKh = hXNa(o1Cz)\n return OPKh.view(wRk_)", "def q3V_(vhpA):\n rdlD = ZylS.shape(vhpA)[0]\n ihqc = [rdlD, -1]\n yvT9 = ZylS.reshape(vhpA, ihqc)\n return yvT9", "def xg5y(vhpA: torch.Tensor, vfPX: int, E0dZ: int, TGxH: int) -...
[ "0.60885423", "0.59994423", "0.59394586", "0.58616525", "0.5802742", "0.5799802", "0.5794589", "0.5777821", "0.57208747", "0.5720422", "0.5707192", "0.56794417", "0.567807", "0.5667455", "0.5644864", "0.5638416", "0.56102264", "0.56070644", "0.5604347", "0.557955", "0.5555979...
0.770993
0
Returns the minimax action using self.depth and self.evaluationFunction
def bk5W(YKHO, Ov5A): wEf2, BZN_ = YKHO.max_value(state=Ov5A, alpha=-epAf.inf, beta=epAf.inf) return BZN_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\...
[ "0.7482665", "0.7383559", "0.71806973", "0.7110041", "0.70884514", "0.70694935", "0.70683014", "0.7048308", "0.70055133", "0.69651455", "0.69642085", "0.69604385", "0.6945924", "0.68998593", "0.6895832", "0.688605", "0.6826282", "0.6767276", "0.6758028", "0.6751636", "0.67054...
0.0
-1
Return all values for var that aren't currently ruled out.
def mrPm(YKHO, SRYB): return (YKHO.curr_domains or YKHO.domains)[SRYB]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ahtj(YKHO):\n EAhI = YKHO.code_cfg\n kc1W = set([WKvO[1:] for WKvO in Ohl8(EAhI)])\n Bx6I = set(['complexity', 'code_cfg'])\n tptH = set(vars(YKHO).keys())\n Ktrd = set(filter(lambda WKvO: YKHO.__dict__[WKvO] is None, tptH))\n Ktrd = Ktrd.union(set(filter(lambda WKvO: str(YKHO.__dict__[WKvO])...
[ "0.6513947", "0.6378371", "0.6350286", "0.6258128", "0.61469907", "0.61321694", "0.59471303", "0.5930412", "0.5909507", "0.58292854", "0.5821927", "0.58140504", "0.5809701", "0.5802926", "0.58000296", "0.57720435", "0.5748814", "0.5747037", "0.5720926", "0.5712526", "0.56853"...
0.0
-1
Determines whether a number is prime or not.
def T1qg(mLGw): xpKl = int(epAf.ceil(epAf.sqrt(mLGw))) for exwG in range(2, xpKl + 1): if mLGw % exwG == 0: if mLGw != exwG: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T1qg(FGW3):\n if FGW3 < 2:\n return False\n elif FGW3 == 2:\n return True\n elif FGW3 % 2 == 0:\n return False\n else:\n for WKvO in range(2, FGW3):\n if FGW3 % WKvO == 0:\n return False\n else:\n return True", "def GiUy(f813...
[ "0.81489384", "0.81168395", "0.80673546", "0.80496997", "0.80037653", "0.7981594", "0.7973921", "0.79685766", "0.7966969", "0.79294753", "0.79008937", "0.7873249", "0.7852324", "0.7850377", "0.78497577", "0.7845095", "0.78436106", "0.78404874", "0.78381497", "0.7824701", "0.7...
0.77126676
29
Add Sample object to list of samples.
def H2v5(YKHO, mvm2, **B2fa): if not YKHO.samples: YKHO.init(mvm2) YKHO.samples.append(mvm2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KCtu(YKHO, gGnb):\n gGnb = [gGnb] if isinstance(gGnb, NlXC) else gGnb\n for mvm2 in gGnb:\n if isinstance(mvm2, NlXC):\n YKHO._samples.append(mvm2)\n YKHO[y1ra] = True\n else:\n vzeF.warning('not a peppy.Sample object, not adding')", "def ZKvw(YKHO, mvm2):...
[ "0.82711065", "0.82400715", "0.7879517", "0.73882633", "0.7204324", "0.6718199", "0.6655872", "0.65226907", "0.6508938", "0.64730805", "0.63968986", "0.63796824", "0.63000923", "0.62492037", "0.61510104", "0.6145541", "0.61278725", "0.6104108", "0.60343003", "0.6000136", "0.5...
0.8065982
2
Return whether self and other represent the same expressions. Unfortunately, the Node class in Python 2.3 doesn't define ==, so we need to write our own.
def raw4(YKHO, Elif): if not isinstance(Elif, o7DN) or not isinstance(Elif, YKHO.__class__): return False for sLDs, ggdG in zip(YKHO.getChildren(), Elif.getChildren()): if not sLDs == ggdG: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, tPEx):\n return False\n return YKHO.evaluate() == Elif.evaluate()", "def xa14(YKHO, Elif):\n return Elif is YKHO or (isinstance(Elif, EWKA) and YKHO.op == Elif.op and (YKHO.args == Elif.args))", "def xa14(YKHO, Elif):\n if Elif is YKHO:\n ...
[ "0.82572985", "0.8129553", "0.791884", "0.7829463", "0.7791102", "0.77551913", "0.77551913", "0.77551913", "0.77551913", "0.77551913", "0.76689976", "0.765581", "0.7652951", "0.76402044", "0.7531183", "0.7429546", "0.74063975", "0.738333", "0.7351718", "0.7348117", "0.7326018...
0.7354098
18
Converts a list of JsonSerializable objects to JSON.
def crtl(DumB): return qQXR.dumps(ZDK7(DumB))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmMQ(YKHO, hxmK):\n tOSK = []\n for rdlD in hxmK:\n tOSK += [qQXR.dumps(rdlD)]\n return tOSK", "def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)", "def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)", "def ZDK7(DumB):...
[ "0.7775905", "0.6788045", "0.6788045", "0.67015606", "0.6662819", "0.6603623", "0.6520674", "0.6520674", "0.65070826", "0.6486467", "0.6478263", "0.6477549", "0.6447063", "0.64422417", "0.6440202", "0.6437975", "0.6426778", "0.64177066", "0.64158386", "0.640341", "0.6390288",...
0.7478646
1
Converts a list of JsonSerializable objects to a list of dictionaries.
def ZDK7(DumB): khaN = [] for ZfUD in DumB: if not isinstance(ZfUD, bREy): raise ValueError('Items must of type JsonSerializable') khaN.append(ZfUD.__dict__) return khaN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmMQ(YKHO, hxmK):\n tOSK = []\n for rdlD in hxmK:\n tOSK += [qQXR.dumps(rdlD)]\n return tOSK", "def dBIZ(YKHO) -> x1iM[cuzp[str, ImMB]]:\n return [VQ6Z.to_dict() for VQ6Z in YKHO._elements]", "def js81(GBaN):\n hlel = oRi_(list)\n for fGC9 in GBaN:\n for H5ew, BWXx in fGC9.i...
[ "0.64979964", "0.64311266", "0.63277876", "0.61498904", "0.6096823", "0.6073397", "0.59635407", "0.5921128", "0.58732253", "0.58344257", "0.57878256", "0.57704824", "0.5759773", "0.5712127", "0.56738687", "0.56259304", "0.5557589", "0.5553443", "0.5530284", "0.5523198", "0.55...
0.8136458
0
Plot predictions of recurrent nets.
def GNy8(aNZO, oQzQ, o3Uj, hd4v=7): oQzQ.plot(label='reanalysis', linewidth=2, ax=aNZO) WXkz = o3Uj.init_time for YRbF, DbxN in enumerate(WXkz): if not YRbF % hd4v == 0: continue SG6Y = o3Uj.sel(init_time=DbxN) ITS7 = [rLdf.Timestamp(SG6Y.coords['init_time'].values) + JRY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xymb(YKHO):\n QrM1.title('Targets vs. Predictions')\n QrM1.plot(YKHO.T, label='Targets')\n QrM1.plot(YKHO.Y, label='Predictions')\n QrM1.xlabel('Sample number')\n QrM1.legend()\n QrM1.show()", "def xymb(Zxma, cC56, VJv0, S3QA, rfpI, A3RF, QeNb):\n LZpg, (hh7H, fTVC) = QrM1.subplots(nrows...
[ "0.7712358", "0.727708", "0.7138299", "0.6980853", "0.6751405", "0.6733568", "0.66608036", "0.66227955", "0.6620298", "0.6603898", "0.6541682", "0.64953333", "0.64945626", "0.6484872", "0.64760584", "0.647545", "0.6456396", "0.6385887", "0.63581365", "0.63485366", "0.6331288"...
0.64298934
17
Sometimes the object has no `cursor_field` value assigned, and the ` "" ` emmited as state value, this causes conflicts with datetime lib to parse the `time component`, to avoid the errors we falling back to default start_date from input config.
def gSPT(YKHO, nTrQ: Mapping[str, Any]=None) -> str: QTBn = nTrQ.get(YKHO.cursor_field) if nTrQ else YKHO.start_datetime if not QTBn: YKHO.logger.info(f'Stream state for `{YKHO.name}` was not emmited, falling back to default value: {YKHO.start_datetime}') return YKHO.start_datetime return QT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQON(YKHO):\n yo7_ = QnH5.today()\n if YKHO.start == 'week':\n kepv = yo7_ - fCoM(days=yo7_.weekday())\n elif YKHO.start == 'month':\n kepv = yo7_.replace(day=1)\n elif YKHO.start == 'quarter':\n tMZy = epAf.ceil(yo7_.month / 3)\n kepv = QnH5(yo7_.year, (tMZy - 1) * 3 + ...
[ "0.59654886", "0.5916772", "0.5880905", "0.5879721", "0.5780306", "0.5771559", "0.57325613", "0.5731133", "0.57017326", "0.5684123", "0.568002", "0.56400204", "0.56086844", "0.55757403", "0.5541543", "0.5535366", "0.5518431", "0.5514232", "0.5500834", "0.5486695", "0.54633373...
0.5595259
13
Returns the ResourceStatus of one particular Kubernetes resource.
def Y0mc(type, eHMM='', UXqs='', NbWK=True): HCmI = 'kubectl get {} --no-headers --all-namespaces -o wide --selector "{}" | grep "{}" | awk \'{{print $1 " " $2}}\'' HCmI = HCmI.format(type, UXqs, eHMM) try: RB_t = Yn3K.check_output(HCmI, shell=True, stderr=Yn3K.STDOUT) except Yn3K.CalledProcessE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o1uN(YKHO) -> 'outputs.InstantSnapshotResourceStatusResponse':\n return qe4Y.get(YKHO, 'resource_status')", "def Y0mc(YKHO, _63S: 'str'=None):\n pass", "def jGRS(YKHO, Eorv):\n PcW4 = XaM3(Eorv)\n if PcW4:\n Eorv = YKHO._get('%s%s' % (YKHO.url, PcW4))\n jGRS = VLTN(Eorv)\n ...
[ "0.76229763", "0.73207796", "0.66773975", "0.6439037", "0.62865084", "0.603517", "0.59161764", "0.5822509", "0.5811077", "0.57906324", "0.5747971", "0.5739691", "0.5718194", "0.5718194", "0.5718194", "0.5718194", "0.5718194", "0.5718194", "0.5718194", "0.5709668", "0.56913644...
0.72029287
2
Returns an iterator to the status of pods selected with the label selector.
def QdRl(TjzQ, jFGi, NbWK=True): HCmI = 'kubectl get pods --all-namespaces -o wide --selector={} -o=jsonpath=\'{{range .items[*]}}{{@.metadata.name}}{{" "}}{{@.status.containerStatuses[0].ready}}{{" "}}{{@.status.phase}}{{" "}}{{@.spec.nodeName}}{{" "}}{{@.metadata.namespace}}{{"\\n"}}\''.format(TjzQ) try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PPOw(YKHO, TjzQ, _63S):\n return YKHO.core_client.list_namespaced_pod(_63S, label_selector=TjzQ, watch=False)", "def yfMk(YKHO, PVGn, KKfI) -> x1iM[str]:\n vWBr = ['get', 'pods', '-l', f'{PVGn}={KKfI}', '-o', 'jsonpath=\"{.items[*].status.podIP}\"']\n zJsh, bGrB, bGrB = HJIr(vWBr)\n return eJb6.s...
[ "0.68512", "0.65445507", "0.62595487", "0.61863065", "0.61733085", "0.6057545", "0.58621997", "0.58302987", "0.5808809", "0.5740844", "0.567828", "0.56306326", "0.5615431", "0.5466532", "0.5434335", "0.5413703", "0.5413656", "0.5400823", "0.53992146", "0.53965664", "0.5350517...
0.7944297
0
Returns energy gap correlation function data of an exciton state
def Ejsx(YKHO, v5wx, ifAX, exwG): Ngpo = ifAX.monomers[0].get_egcf((0, 1)) WCCm = len(Ngpo) frWt = ifAX.get_SystemBathInteraction() Mbdw = frWt.CC e3zP = 0 for bbZo in ifAX.monomers: e3zP += bbZo.nel - 1 lY0q = XTiz.zeros(WCCm, dtype=XTiz.complex128) for ERMG in range(e3zP): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jIkG(YKHO, QTBn):\n return YKHO.fc(QTBn.float_features).exp() + YKHO.EPSILON", "def H7NK(QTBn):\n OoVr = QTBn[0, :]\n kOjW = oyIN.roll(OoVr, -1)\n kOjW[-1] += YMVS\n dtRH = QTBn[1, :]\n rat5 = oyIN.roll(dtRH, -1)\n pImw = kOjW - OoVr\n if (pImw <= 0).any():\n G9jH.critical('CRI...
[ "0.57918143", "0.5706206", "0.5679367", "0.56127805", "0.560693", "0.55548656", "0.55495775", "0.55098313", "0.545567", "0.5435076", "0.5431533", "0.5406826", "0.5401776", "0.5399951", "0.5399907", "0.53825414", "0.5378272", "0.5374307", "0.5342117", "0.5313359", "0.5303445",...
0.0
-1
Remove all empty values and versions from the dumped dict.
def CT4Y(YKHO, nPrm, fzsM): if not fzsM: for H5ew in list(nPrm): if H5ew == 'versions': nPrm.pop(H5ew) return {H5ew: BWXx for H5ew, BWXx in nPrm.items() if BWXx is not None} for ZfUD in nPrm: for H5ew in list(ZfUD): if H5ew == 'versions' or ZfUD[H5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rqfp(Op6c):\n for G1Hx, Ty9i in Op6c.items():\n if len(Ty9i) == 0:\n Op6c[G1Hx] = 'NULL'\n if isinstance(Ty9i, str):\n Ty9i = Ty9i.strip().replace('\\t', '').replace('\\n', '').encode('utf-8', 'ignore')\n Op6c[G1Hx] = Ty9i\n return Op6c", "def xnx3(tbx9):\...
[ "0.71420825", "0.69245446", "0.6911726", "0.6817932", "0.6758381", "0.66833586", "0.64930177", "0.64137995", "0.6412033", "0.6384501", "0.6328246", "0.63277", "0.63069534", "0.62830883", "0.62739176", "0.62687373", "0.62326473", "0.62241316", "0.62227315", "0.61956143", "0.61...
0.7656601
0
Checks if the current request belongs to admin namespace
def _Kb1(QpfX): QePW = QpfX['request'] bD7m = xBs1(QePW.path) QpfX['is_admin'] = False return bD7m.app_name == 'admin'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AWLs(YKHO, QePW) -> bool:\n if gCuF.AXES_ONLY_ADMIN_SITE and hasattr(QePW, 'path') and (not ZbWC.match('^%s' % gxEw('admin:index'), QePW.path)):\n return True\n return False", "def _Kb1(YKHO):\n return YKHO.admin", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def hfMq(YKH...
[ "0.7516266", "0.71202093", "0.7084599", "0.70300645", "0.7011564", "0.7011564", "0.7011564", "0.70091057", "0.6944642", "0.6927288", "0.69075626", "0.6904302", "0.6904302", "0.6898047", "0.68556285", "0.6837943", "0.6820567", "0.68151474", "0.6811115", "0.6809473", "0.6790797...
0.8030837
0
Get the descendants of the given node.
def j18M(YKHO, Lnes, UzPC=None): UzPC = UzPC or YKHO.engine.connect() return UzPC.execute(EfUA([YKHO.paths, YKHO.nodes.c.title]).select_from(YKHO.paths.join(YKHO.nodes, YKHO.nodes.c.id == YKHO.paths.c.descendant)).where(YKHO.paths.c.ancestor == Lnes).where(YKHO.paths.c.depth == '1'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yxFV(Q6kx):\n if len(Q6kx.children) == 0:\n return []\n else:\n afYC = Q6kx.children[:]\n for aUGN in Q6kx.children:\n afYC.extend(o7DN.s_all_descendants(aUGN))\n return afYC", "def j18M(DpUl, Q6kx):\n Pe9W = '\\n SELECT\\n nodes.*\\n FRO...
[ "0.7513998", "0.7354369", "0.72853243", "0.7061065", "0.70581686", "0.70034635", "0.69848096", "0.68753374", "0.6865626", "0.67648876", "0.676021", "0.6722101", "0.66403586", "0.660167", "0.6538753", "0.64592934", "0.6412767", "0.64020485", "0.6324568", "0.6242581", "0.622560...
0.7504214
1
Distance2 between sequence of N, Mdimensional points and line l1l2
def JH67(XP5J, jtyf, V70B): XP5J, jtyf, V70B = (oyIN.asarray(XP5J), oyIN.asarray(jtyf), oyIN.asarray(V70B)) VqfF = jtyf - XP5J exwG = V70B - jtyf exwG /= oyIN.sqrt(sum(exwG ** 2)) pImw = VqfF - oyIN.outer(exwG, oyIN.dot(VqfF, exwG)).T return oyIN.sum(pImw ** 2, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UBqM(EBgd, hQHm, HpuQ, jlSq):\n if len(hQHm.shape) == 2:\n XOOk = oyIN.einsum('ij,ij->i', hQHm, hQHm)\n pHXX = oyIN.einsum('ij,ij->i', hQHm, jlSq)\n kYGz = -oyIN.einsum('ij,ij->i', jlSq, hQHm)\n ftz7 = -oyIN.einsum('ij,ij->i', jlSq, jlSq)\n dg7v = -oyIN.einsum('ij,j->i', h...
[ "0.7310883", "0.72843426", "0.7146299", "0.7141547", "0.7073252", "0.7022996", "0.70170534", "0.68681467", "0.6831304", "0.6820344", "0.67997026", "0.67725146", "0.67673594", "0.67307544", "0.6720408", "0.6647806", "0.66438526", "0.66293716", "0.6624619", "0.6614878", "0.6609...
0.7826586
0
Convert an image to a sequence of indexes
def JUa6(VXjJ): VXjJ = iepi(VXjJ) ZYDH = sum(VXjJ, axis=1) ywwl = sum(ZYDH) RMvl, d9Qd = VXjJ.shape EQES = oyIN.arange(d9Qd) Wmg4 = oyIN.zeros(ywwl, dtype=int) fRPJ = oyIN.zeros(ywwl, dtype=int) P2GO = Wmg4 gDyN = fRPJ for YRbF, exwG in enumerate(ZYDH): P2GO, P2GO[:exwG] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eM4e():\n if nMvt.image_dim_ordering() == 'th':\n return (0, 1, 2, 3)\n else:\n return (0, 3, 1, 2)", "def yldS(Ux0P):\n return sHRZ(Ux0P)", "def kNRX(YKHO):\n with g5R2.File(YKHO.image_features_path, 'r') as _0K_:\n s48b = _0K_['ids'][()]\n gPul = {id: YRbF for YRbF, id...
[ "0.7209459", "0.6851916", "0.6841864", "0.65924764", "0.65444666", "0.642088", "0.6372391", "0.6357856", "0.6269647", "0.6040294", "0.6040294", "0.6033849", "0.60004187", "0.59836465", "0.5981329", "0.59606445", "0.5949437", "0.5942697", "0.59202313", "0.5879955", "0.58695084...
0.6048361
9
Sets the text of this SummaryAnalysisRequest. Text to be analyzed
def l5Ny(YKHO, l5Ny): if l5Ny is None: raise ValueError('Invalid value for `text`, must not be `None`') YKHO._text = l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5Ny(YKHO, l5Ny):\n YKHO._text = l5Ny", "def l5Ny(YKHO, l5Ny):\n YKHO._text = l5Ny", "def l5Ny(YKHO, l5Ny):\n YKHO._text = l5Ny", "def l5Ny(YKHO, l5Ny):\n YKHO._text = l5Ny", "def l5Ny(YKHO, l5Ny):\n YKHO._text = l5Ny", "def l5Ny(YKHO, l5Ny):\n YKHO._text = l5Ny", "def l5Ny(YKHO, ...
[ "0.73053324", "0.73053324", "0.73053324", "0.73053324", "0.73053324", "0.73053324", "0.7250907", "0.7164473", "0.71619475", "0.70921135", "0.6974636", "0.696551", "0.6944709", "0.6916013", "0.6845413", "0.6792056", "0.6709426", "0.65639323", "0.6551423", "0.654735", "0.644821...
0.73276865
0
Gets the language of this SummaryAnalysisRequest. Document's language. Set correct UK/US language to get regionspecific suggestions
def rQow(YKHO): return YKHO._language
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bmkt(YKHO):\n return YKHO.language", "def rQow(YKHO):\n return YKHO._get('language', {})", "def Bmkt(YKHO):\n return YKHO.lang", "def rQow(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'language')", "def x9KY(YKHO):\n return YKHO.getOrDefault(YKHO.language)", "def rQow(YKHO):...
[ "0.7281727", "0.72808343", "0.72280914", "0.7119039", "0.7116587", "0.70811087", "0.70652795", "0.7046453", "0.6973049", "0.69423443", "0.6893855", "0.68785393", "0.68559635", "0.68559635", "0.68206537", "0.6735319", "0.67247015", "0.67247015", "0.6691365", "0.66912156", "0.6...
0.69469714
12
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, Bcc8): 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
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
75
Analyse a return statement.
def zVqs(YKHO, WNtM: ast.Return, *, next: CFNode) -> vjud: if WNtM.value is None: Ziit = dict(next=YKHO._context[HNBX]) else: Ziit = dict(next=YKHO._context[SWwd]) FSBL, bGrB = YKHO._expression_as_constant(WNtM.value) if not FSBL: Ziit.update(error=YKHO._raise) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tCl_(YKHO: Parser, Q6kx: doc.Return) -> None:\n YKHO.report_error(Q6kx, 'Return is not allowed.')", "def ijSu(YKHO):\n YKHO.currtok = next(YKHO.tg)\n MDu0 = YKHO.Expression()\n if YKHO.currtok[1].name == 'SEMI':\n YKHO.currtok = next(YKHO.tg)\n return zVba(MDu0)\n raise g6lB('ERR...
[ "0.74100626", "0.7092027", "0.6895308", "0.676903", "0.6694369", "0.64414495", "0.64238936", "0.6385314", "0.636924", "0.63604385", "0.631531", "0.6298807", "0.62973344", "0.6276877", "0.62388825", "0.6163157", "0.61428994", "0.60274535", "0.59721214", "0.59432447", "0.590610...
0.75820386
0
Apply a function to all items in the specified tree. The function should take a single argument (the current item in the tree). The return value of the function is ignored. A deepfirstsearch algorithm is used.
def wGxh(J_Es: dict, JfyU: Callable, qIxc: Optional[Tuple]=None, B2fa: Optional[Mapping]=None) -> None: if qIxc is None: qIxc = () if B2fa is None: B2fa = {} wH8M = [] tCo7 = set() for PObu, ZfUD in J_Es.items(): wH8M.append((PObu, ZfUD)) while wH8M: PObu, ZfUD = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRO0(YKHO, JfyU):\n U5bT = [JfyU(YKHO)]\n for bGrB, Q6kx in YKHO.children.items():\n U5bT.extend(Q6kx.apply(JfyU))\n return U5bT", "def eNvf(YKHO, FYKK: Callable[[RTreeNode[T]], None]) -> None:\n YKHO._traverse(YKHO.root, FYKK)", "def gY_a(YKHO, FYKK):\n if YKHO.value:\n FYKK(Y...
[ "0.65904546", "0.65580195", "0.6500019", "0.63694006", "0.63578683", "0.6255641", "0.62404877", "0.610505", "0.5889033", "0.5867297", "0.5859251", "0.5816661", "0.5803459", "0.57961905", "0.5620061", "0.5592607", "0.55921054", "0.5577645", "0.557688", "0.5506884", "0.54616064...
0.72394025
0
Find one item in the specified tree. The function applied to the item searched must return True when the item is passed to the function. By default the first match is returned.
def QiWx(J_Es: dict, JfyU: Callable, qIxc: Tuple, B2fa: Mapping) -> uLKX[dict, None]: wH8M = [] tCo7 = set() for PObu, ZfUD in J_Es.items(): wH8M.append((PObu, ZfUD)) while wH8M: PObu, ZfUD = wH8M.pop() tCo7.add(PObu) if JfyU(ZfUD, *qIxc, **B2fa): return ZfUD ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dL6b(YKHO, JfyU):\n return next((bGrB(WKvO) for WKvO in YKHO._ if JfyU(WKvO)), None)", "def fIEA(YKHO, ZfUD):\n ZRuv = YKHO.root\n if YKHO.root is not None:\n ZRuv = YKHO.__findHelper(ZRuv, ZfUD)\n return ZRuv", "def TgwQ(YKHO, ZfUD):\n if YKHO._element == ZfUD:\n return YKHO\n...
[ "0.7241768", "0.72306645", "0.72128564", "0.6999607", "0.6960374", "0.682458", "0.68233484", "0.680479", "0.6804497", "0.6798166", "0.6790682", "0.6742852", "0.6676143", "0.66509813", "0.6638938", "0.6601269", "0.65210813", "0.6516802", "0.65001035", "0.64941734", "0.6477933"...
0.68086535
7
Write tree in a json file at specified location.
def cvoZ(J_Es: dict, pmON: str) -> None: with open(pmON, mode='w', encoding='utf-8') as rVmU: rVmU.write(qQXR.dumps(J_Es, indent=4))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lsrz(Q6kx, VqRE):\n nPrm = Ueki(Q6kx)\n if not nPrm:\n return\n with open(VqRE, 'w') as eHNT:\n qQXR.dump(nPrm, eHNT, indent=4, sort_keys=True)\n return nPrm", "def f0cv(nPrm, pmON, **B2fa):\n with open(VaVH(pmON), 'wt') as nUeQ:\n hpFW(nPrm, nUeQ, **B2fa)", "def Lsrz(YK...
[ "0.7074254", "0.6997906", "0.6891475", "0.6799715", "0.6799715", "0.6765691", "0.6716399", "0.66876066", "0.6681753", "0.6675008", "0.6670283", "0.6653552", "0.66356", "0.6622884", "0.65868676", "0.6586202", "0.6554381", "0.655351", "0.6544089", "0.6515199", "0.65092945", "...
0.7905787
0
conv2d returns a 2d convolution layer with full stride.
def b_zE(WKvO, XcU5, mWFP=None): return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME', name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DYf_():\n VXjJ = oyIN.array([[0.3, 0.5, 0.7, 0.9], [0.1, 0.3, 0.5, 0.7], [0.9, 0.7, 0.5, 0.3]])\n rPXJ = oyIN.array([[1, 0], [1, 0]])\n rPXJ = oyIN.flipud(oyIN.fliplr(rPXJ))\n return cxpp(VXjJ, rPXJ, mode='valid')", "def gZ8A(WKvO, XcU5):\n return ZylS.nn.conv2d(input=WKvO, filter=XcU5, stride...
[ "0.7629538", "0.7627165", "0.7579147", "0.7463493", "0.74578935", "0.74578935", "0.7426121", "0.7426121", "0.7426121", "0.7426121", "0.7386576", "0.7337714", "0.7330282", "0.73295087", "0.7313963", "0.73015827", "0.7296284", "0.72696656", "0.72463566", "0.72321266", "0.720884...
0.7196564
21
weight_variable generates a weight variable of a given shape.
def E9N2(ROpF, mWFP=None): RqgG = ZylS.truncated_normal(ROpF, stddev=0.2) return ZylS.Variable(RqgG, name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_variable('weight', initializer=RqgG, regularizer=ZylS.nn.l2_loss)", "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)", "def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev...
[ "0.8268416", "0.82356274", "0.815898", "0.81571364", "0.814004", "0.814004", "0.814004", "0.8137777", "0.8134971", "0.8134971", "0.8134971", "0.8134971", "0.8134971", "0.8134971", "0.8134971", "0.8134971", "0.8134971", "0.8134971", "0.8121185", "0.8064902", "0.7982461", "0....
0.79582846
22
See what template used for main page
def wVd0(YKHO): geh0 = YKHO.client.get('/') YKHO.assertTemplateUsed(geh0, 'main.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ozko():\n return TvZl('main_page.html')", "def Ozko():\n return TvZl('index.html')", "def kZiy():\n return TvZl('Main_Page.html')", "def kZiy():\n return TvZl('main.html')", "def Ozko():\n Gqqd = DZGO()\n return TvZl('disp.html', pages=Gqqd)", "def b8V_():\n return TvZl('main.htm...
[ "0.7223213", "0.6972704", "0.6837707", "0.68041813", "0.66889495", "0.66498816", "0.66498816", "0.65733975", "0.65592015", "0.64922833", "0.6471615", "0.6451084", "0.6428908", "0.64121896", "0.64073396", "0.6400402", "0.63593125", "0.635728", "0.63478667", "0.6346091", "0.632...
0.7040163
1
Check case is main page response if DB empty.
def Wgp6(YKHO): nj3W.objects.all().delete() x0hE = i9zE() geh0 = x0hE.get('/') YKHO.assertEquals(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sZWw(YKHO):\n im04 = YKHO.app.get('/')\n assert b'Your closet is empty.' in im04.data", "def Ef1H(vY7J):\n geh0 = vY7J.get('/', status=200)\n _R2e = geh0.html\n assert len(_R2e.find_all('article')) == 0", "def _TPM(YKHO):\n geh0 = YKHO.client.get(YKHO.get_url(YKHO.study.pk), {'description...
[ "0.6630922", "0.64764184", "0.62744784", "0.62744784", "0.6227041", "0.6220018", "0.6214386", "0.61474466", "0.61474466", "0.61474466", "0.61314154", "0.6129026", "0.6040497", "0.603603", "0.59957504", "0.5978025", "0.5955443", "0.59418917", "0.59172785", "0.5901049", "0.5899...
0.6473134
2
Transform a list of note in string into index.
def SZFh(YKHO, p8Bw): f9FY = [] for KAOR in p8Bw: f9FY.append([YKHO.notes_to_index[fytP] for fytP in KAOR]) return oyIN.array(f9FY, dtype=oyIN.int32)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sDB2(KCHu):\n KCHu = CBky(KCHu)\n if KCHu == '.':\n return ()\n return tuple(KCHu.split('/'))", "def msS1(YKHO, vC9B):\n return ' '.join(vC9B)", "def Vn7Z(KCHu):\n return int(KCHu[KCHu.find('[') + 1:KCHu.find(']')])", "def jKXs(aWuw, vSkR):\n syNc = [vSkR[U6D_] for U6D_ in aWuw]\...
[ "0.6205227", "0.6048822", "0.5978325", "0.5811571", "0.5778731", "0.57226247", "0.5722", "0.5709454", "0.5643686", "0.5579303", "0.55769545", "0.5557279", "0.5555395", "0.55224115", "0.55134404", "0.5511016", "0.550031", "0.54862696", "0.54687506", "0.54210365", "0.54057056",...
0.5760384
5
check if 2 grids are equal return boolean value
def yu09(oMoz, HwYe): for YRbF in range(4): for r845 in range(4): if oMoz[YRbF][r845] != HwYe[YRbF][r845]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yu09(oMoz, HwYe):\n if oMoz == HwYe:\n return True\n else:\n return False", "def yu09(oMoz, HwYe):\n if oMoz == HwYe:\n return True\n return False", "def yu09(oMoz, HwYe):\n KCHu = 0\n for MKlR in range(4):\n for r8hN in range(4):\n if oMoz[MKlR][r8h...
[ "0.8933384", "0.8914656", "0.8585009", "0.8558586", "0.8200414", "0.80762106", "0.79177386", "0.7875002", "0.784008", "0.75213224", "0.7462791", "0.7448489", "0.7448489", "0.74154866", "0.7414818", "0.73950034", "0.7244226", "0.7191573", "0.7164593", "0.7132306", "0.71306413"...
0.87099695
2
Returns dictionary of all chart objects supported by this test.
def QBXz(YKHO): dixj = [] I1mm = False for zFiD in YKHO.ResultsForCSVfile: if I1mm: dixj.append(zFiD) if len(zFiD) == 0: I1mm = True c0yN = {} for ytbe, lRRg in map(None, YKHO.FrameSizeList, YKHO.ILOADlist): Z9rn = YKHO.CreateRateVsRangeGraph(ytbe, lRR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0yN(YKHO):\n return YKHO.container['charts']", "def c0yN(YKHO):\n return YKHO._charts", "def c0yN(YKHO):\n return YKHO.properties.get('charts', BmUx(YKHO.context, bOKq, oudJ('charts', YKHO.resource_path)))", "def aahj(YKHO):\n return sorted(((NKcE[5:], JfyU) for NKcE, JfyU in YKHO.__class__....
[ "0.69593924", "0.6798381", "0.66532433", "0.6136536", "0.6111613", "0.6086991", "0.5799147", "0.5626746", "0.56218415", "0.5500341", "0.54916686", "0.5474156", "0.54647464", "0.54535556", "0.54518366", "0.5447293", "0.5435039", "0.53563887", "0.5341619", "0.53244686", "0.5297...
0.5805826
6
Returns integer representing condition severity.
def og44(ycBG, Kiih, mSEH): if ycBG == qEJV.MISSING_VAL or Kiih == qEJV.MISSING_VAL or mSEH == qEJV.MISSING_VAL: jGRS = 'grey' rdwf = 0 elif ycBG - Kiih < LK2A or mSEH >= FoTx: jGRS = 'red' rdwf = 3 elif ycBG - Kiih < cjBS or mSEH >= AA7u: jGRS = 'yellow' rdwf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')", "def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')", "def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')", "def rwlZ(YKHO):\n return YKHO._severity", "def rwlZ(YKHO):\n return YKHO._severity", "def rwlZ(YKHO) -> ...
[ "0.7769303", "0.7769303", "0.7769303", "0.7663294", "0.7663294", "0.7498207", "0.7457291", "0.744162", "0.73335856", "0.7295736", "0.7295736", "0.7295736", "0.7009136", "0.69886327", "0.6892374", "0.6577652", "0.65687114", "0.65422255", "0.64995885", "0.6195847", "0.6009437",...
0.0
-1
Generates the model. Model from the paper `Deep Convolutional Neural Networks for Hyperspectral Image Classification`. See Section 3 `CNNBased HSI Classification` in the paper for an explanation about the structure and parameters.
def dQKQ(SGPK): MxXY = SGPK['n1'] LEev = SGPK['k1'] cWFu = SGPK['n2'] ZQPE = SGPK['n3'] Xyq7 = SGPK['k2'] re_p = SGPK['n4'] GxqA = SGPK['n5'] LfmO = 20 C3ST = bdPE.models.Sequential() C3ST.add(bdPE.layers.Conv2D(filters=LfmO, kernel_size=(LEev, 1), padding='valid', data_format='c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YZe9():\n C3ST = ileL()\n C3ST.add(yHwh(64, 3, data_format='channels_last', activation='relu', padding='same', input_shape=(PLSm, s3Vn, 3)))\n C3ST.add(YMbS(pool_size=2, strides=2))\n C3ST.add(yHwh(64, 3, activation='relu', padding='same'))\n C3ST.add(YMbS(pool_size=2, strides=2))\n C3ST.add(...
[ "0.7273317", "0.71614426", "0.7148825", "0.7114565", "0.70972764", "0.7067017", "0.7065465", "0.70437163", "0.69676495", "0.6936707", "0.69254875", "0.6898314", "0.6854568", "0.6853388", "0.6839613", "0.6795579", "0.6783441", "0.67684126", "0.67531115", "0.6739921", "0.673970...
0.0
-1
Generates the model. Model from the paper `Hyperspectral Image Classification with Convolutional Neural Networks`.
def J4Zi(SGPK): qt8X = SGPK['num_features'] VGrB = SGPK['num_classes'] C3ST = bdPE.models.Sequential() C3ST.add(bdPE.layers.Conv2D(filters=32, kernel_size=(9, 16), padding='same', data_format='channels_last', activation='tanh', input_shape=(9, qt8X, 1))) C3ST.add(bdPE.layers.Conv2D(filters=32, kerne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pPQk():\n C3ST = FYrf.Sequential()\n C3ST.add(fhcK.Conv2D(32, (3, 3), activation='relu', input_shape=(150, 150, 3)))\n C3ST.add(fhcK.MaxPooling2D((2, 2)))\n C3ST.add(fhcK.Conv2D(64, (3, 3), activation='relu'))\n C3ST.add(fhcK.MaxPooling2D((2, 2)))\n C3ST.add(fhcK.Conv2D(128, (3, 3), activatio...
[ "0.74906576", "0.737708", "0.7374737", "0.73634493", "0.72738254", "0.722179", "0.719926", "0.7169744", "0.7165971", "0.71573997", "0.7155907", "0.70832247", "0.70800775", "0.700203", "0.6984699", "0.6975053", "0.6929465", "0.69279003", "0.69197756", "0.6908886", "0.6897424",...
0.67032945
34
Plots the training evaluation data of the model. Model from the paper `Deep Convolutional Neural Networks for Hyperspectral Image Classification`.
def KA9q(ad8h, C7_O): IEpi = ad8h.history['acc'] GB1e = ad8h.history['val_acc'] YbcW = ad8h.history['loss'] _0UF = ad8h.history['val_loss'] HasU = range(len(IEpi)) QrM1.figure() QrM1.plot(HasU, IEpi, 'bo', label='Training accuracy') QrM1.plot(HasU, GB1e, 'b', label='Validation accuracy')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LNHs(ad8h, C7_O):\n IEpi = ad8h.history['acc']\n GB1e = ad8h.history['val_acc']\n YbcW = ad8h.history['loss']\n _0UF = ad8h.history['val_loss']\n HasU = range(len(IEpi))\n QrM1.figure()\n QrM1.plot(HasU, IEpi, 'bo', label='Training accuracy')\n QrM1.plot(HasU, GB1e, 'b', label='Validati...
[ "0.7542084", "0.74669844", "0.72453004", "0.7223387", "0.7192263", "0.71492183", "0.7140505", "0.7054963", "0.6979223", "0.6964172", "0.69600993", "0.6952179", "0.68771577", "0.6875886", "0.68262106", "0.6817834", "0.6802001", "0.67861915", "0.67545164", "0.6744266", "0.67390...
0.7668084
0
Plots the training evaluation data of the model. Model from the paper `Hyperspectral Image Classification with Convolutional Neural Networks`.
def LNHs(ad8h, C7_O): IEpi = ad8h.history['acc'] GB1e = ad8h.history['val_acc'] YbcW = ad8h.history['loss'] _0UF = ad8h.history['val_loss'] HasU = range(len(IEpi)) QrM1.figure() QrM1.plot(HasU, IEpi, 'bo', label='Training accuracy') QrM1.plot(HasU, GB1e, 'b', label='Validation accuracy')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KA9q(ad8h, C7_O):\n IEpi = ad8h.history['acc']\n GB1e = ad8h.history['val_acc']\n YbcW = ad8h.history['loss']\n _0UF = ad8h.history['val_loss']\n HasU = range(len(IEpi))\n QrM1.figure()\n QrM1.plot(HasU, IEpi, 'bo', label='Training accuracy')\n QrM1.plot(HasU, GB1e, 'b', label='Validati...
[ "0.76353586", "0.7385049", "0.731253", "0.72681344", "0.7253085", "0.7234777", "0.7126624", "0.69923985", "0.6957708", "0.69074744", "0.6898441", "0.6861298", "0.68581146", "0.6856867", "0.6853311", "0.6842307", "0.68256897", "0.6770244", "0.67635125", "0.67462647", "0.672040...
0.74850214
1
Plots the training evaluation data of the model. Model from the paper `Hyperspectral Image Classification with Convolutional Neural Networks`.
def HRY8(ad8h, ytjR, A3RF, C7_O): SWox = onpT.default_timer() ad8h.predict(ytjR) C7pn = onpT.default_timer() ITS7 = C7pn - SWox iBLD = int(ytjR.shape[0] / ITS7) PaWE = ad8h.score(ytjR, A3RF) o1Hj = '\nprediction time: {:.3f}s ({}px/s)\n'.format(ITS7, iBLD) gyVd = 'val_accuracy: {:.3f}\...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KA9q(ad8h, C7_O):\n IEpi = ad8h.history['acc']\n GB1e = ad8h.history['val_acc']\n YbcW = ad8h.history['loss']\n _0UF = ad8h.history['val_loss']\n HasU = range(len(IEpi))\n QrM1.figure()\n QrM1.plot(HasU, IEpi, 'bo', label='Training accuracy')\n QrM1.plot(HasU, GB1e, 'b', label='Validati...
[ "0.76363397", "0.74857736", "0.73833954", "0.7310451", "0.7267302", "0.7252611", "0.7234279", "0.71253246", "0.6992255", "0.6955936", "0.69071275", "0.68974733", "0.68606985", "0.6858053", "0.6855054", "0.68527275", "0.6840225", "0.6824793", "0.6770499", "0.67630816", "0.6745...
0.6651616
28
Test API cannot make an order by unauthorised user (POST request).
def I0Wd(YKHO): geh0 = YKHO.client().post('/api/v2/orders', data=qQXR.dumps(YKHO.order_data), content_type='application/json') Aofo = qQXR.loads(geh0.data) YKHO.assertEqual(Aofo['message'], 'Token is mising!. You need to sign in first') YKHO.assertEqual(geh0.status_code, 401)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XOMR(YKHO):\n Ylbp = YKHO.login_user()\n NT__ = qQXR.loads(Ylbp.data.decode())['access_token']\n geh0 = YKHO.client().post('/api/v2/orders', headers={'x-access-token': NT__}, data=qQXR.dumps(YKHO.order_data), content_type='application/json')\n YKHO.assertEqual(geh0.status_code, 201)\n geh0 = YKH...
[ "0.81316954", "0.80734015", "0.7594781", "0.7561987", "0.74970907", "0.7308627", "0.7302554", "0.7179246", "0.71111685", "0.7108617", "0.70498455", "0.70459586", "0.69648284", "0.69372946", "0.6934432", "0.6933783", "0.68794", "0.68776923", "0.6870652", "0.68523437", "0.68474...
0.8783594
0
Test API cannot get orders by regular user (GET request).
def XOMR(YKHO): Ylbp = YKHO.login_user() NT__ = qQXR.loads(Ylbp.data.decode())['access_token'] geh0 = YKHO.client().post('/api/v2/orders', headers={'x-access-token': NT__}, data=qQXR.dumps(YKHO.order_data), content_type='application/json') YKHO.assertEqual(geh0.status_code, 201) geh0 = YKHO.client()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uMky(YKHO):\n YKHO.client.force_authenticate(YKHO.user)\n bD7m = IxeK(YKHO.order.id)\n _hkX = YKHO.client.get(bD7m)\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_200_OK)\n with YKHO.subTest('Unauthenticated users may not use the API.'):\n YKHO.client.logout()\n geh0 = YKHO.client....
[ "0.82348883", "0.8143619", "0.8028673", "0.7914913", "0.7882654", "0.7690229", "0.75544363", "0.74755096", "0.745036", "0.741735", "0.72958523", "0.7180769", "0.7164221", "0.7164221", "0.71428716", "0.7105029", "0.7039351", "0.7024808", "0.7008482", "0.6971587", "0.6965985", ...
0.85777783
0
Test API cannot delete an order if user not owner (DELETE request).
def rT9k(YKHO): Ylbp = YKHO.login_user() moWz = YKHO.login_admin_user() NT__ = qQXR.loads(Ylbp.data.decode())['access_token'] tTi7 = qQXR.loads(moWz.data.decode())['access_token'] geh0 = YKHO.client().post('/api/v2/orders', headers={'x-access-token': NT__}, data=qQXR.dumps(YKHO.order_data), content_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYM0(YKHO):\n Ylbp = YKHO.login_user()\n NT__ = qQXR.loads(Ylbp.data.decode())['access_token']\n geh0 = YKHO.client().post('/api/v2/orders', headers={'x-access-token': NT__}, data=qQXR.dumps(YKHO.order_data), content_type='application/json')\n YKHO.assertEqual(geh0.status_code, 201)\n geh0 = YKH...
[ "0.85853326", "0.797096", "0.7581545", "0.743529", "0.7404028", "0.7306585", "0.71920556", "0.7126621", "0.71054995", "0.7040966", "0.69914645", "0.69272304", "0.691377", "0.69126827", "0.68701845", "0.6857445", "0.68496644", "0.67300075", "0.67289585", "0.67275727", "0.67230...
0.88546735
0
Test API cannot delete an order if doesn't exist (DELETE request).
def X0A7(YKHO): Ylbp = YKHO.login_user() NT__ = qQXR.loads(Ylbp.data.decode())['access_token'] geh0 = YKHO.client().post('/api/v2/orders', headers={'x-access-token': NT__}, data=qQXR.dumps(YKHO.order_data), content_type='application/json') YKHO.assertEqual(geh0.status_code, 201) geh0 = YKHO.client()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hh2n(YKHO):\n T4Wy = x8N0.objects.get(id=YKHO.response.data['id'])\n geh0 = YKHO.client.delete(gxEw('order_details', kwargs={'order_id': T4Wy.id}), format='json', follow=True)\n YKHO.assertEquals(geh0.status_code, jGRS.HTTP_204_NO_CONTENT)", "def XQly(YKHO):\n YKHO.orders_list.place_order(YKHO.or...
[ "0.80378914", "0.7969679", "0.78958875", "0.7693193", "0.75279903", "0.74650407", "0.7254609", "0.7209717", "0.7153256", "0.7075835", "0.70690346", "0.7053524", "0.7002133", "0.70007026", "0.69981444", "0.6991164", "0.6953879", "0.6946775", "0.69466794", "0.6928087", "0.68891...
0.87875044
0
Separate values with a comma in array2string.
def eEUC(jzdc, BG10=None, rhd_=None, pLzl=None): return oyIN.array2string(jzdc, BG10, rhd_, pLzl, separator=', ', prefix='', style=str).replace('..., ', '..., ' if Lpna else 'Ellipsis, ')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8L_(qw7D):\n return ','.join((str(WKvO) for WKvO in qw7D))", "def P8L_(qw7D):\n return ','.join((str(WKvO) for WKvO in qw7D))", "def XZYi(qw7D):\n hkWs = []\n for Mkmy in qw7D:\n hkWs.append(','.join([str(tTpl) for tTpl in Mkmy]))\n return ' '.join(hkWs)", "def ECvZ(ezWE, VWe_=', '...
[ "0.69929737", "0.6902601", "0.67887294", "0.6738385", "0.6713219", "0.6601589", "0.6556977", "0.6480791", "0.6461941", "0.6446728", "0.63959646", "0.6392251", "0.63810694", "0.63782966", "0.63289976", "0.62891847", "0.62744576", "0.6273592", "0.6265061", "0.6250876", "0.62184...
0.0
-1
Extracts logmel energies from the given frames.
def dx8R(VIPT, fQqb, *, B2fa={}): vC9B = [] for f4IJ in VIPT: VYvU = gLif.feature.melspectrogram(y=f4IJ, sr=fQqb, power=1, **B2fa) vC9B.append(oyIN.mean(gLif.core.amplitude_to_db(VYvU).T, axis=0)) return oyIN.array(vC9B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _YPR(R5Jy):\n with open(R5Jy, 'r') as eHNT:\n hGN5 = eHNT.readlines()\n OnKD = g3By.findall(''.join(hGN5))\n return list([float(ZfUD.split()[1]) for ZfUD in OnKD])", "def JXBD(f4IJ):\n return XTiz.sum(f4IJ ** 2) / XTiz.float64(len(f4IJ))", "def JXBD(f4IJ):\n return oyIN.sum(f4IJ ** 2)...
[ "0.614679", "0.5971718", "0.59690106", "0.57360893", "0.54906696", "0.5436379", "0.54297936", "0.5335597", "0.530135", "0.52653104", "0.5224114", "0.52122605", "0.51696557", "0.5117125", "0.5111649", "0.5109586", "0.510869", "0.51055866", "0.51013744", "0.50663465", "0.506622...
0.6964603
0
Return the total duration of all events
def V34a(YKHO): if YKHO.events == None: raise Exception('event detector has not been called for a timeseries') return sum([tvqc.duration() for tvqc in YKHO.events])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EdTY(YKHO):\n WbTE = 0\n for bTKY in YKHO.entries:\n WbTE += bTKY.get_duration()\n return WbTE", "def qZ1g(YKHO):\n return (YKHO.stop - YKHO.start).sum()", "def ONFB(YKHO):\n RcXH = [CcuX.duration for CcuX in j2k1.objects.filter(series=YKHO)]\n return Pusg(lambda WKvO, LVAh: WKvO +...
[ "0.7356099", "0.7167941", "0.6815445", "0.6712624", "0.6648239", "0.6564534", "0.64879084", "0.6410677", "0.6394221", "0.63889503", "0.6378186", "0.63695914", "0.63648343", "0.6339672", "0.63242865", "0.63170195", "0.63170195", "0.6316054", "0.62947315", "0.6291546", "0.62915...
0.8528004
0
Create an EventDetector object based on the label; example of labels are 'L50E03G10OP' or 'T65E05G00CL'
def jJxR(UXqs): if len(UXqs) != 11: raise Exception('invalid event detector label: "%s"' % UXqs) if UXqs[0] == 'L': nge7 = UXqs[:3] else: nge7 = float(UXqs[1:3]) ut5U = float(UXqs[4:6]) k_OE = float(UXqs[7:9]) UpT1 = UXqs[-2:] return DeNj(Lbeta=nge7, E=ut5U, minTauG=k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s50S(Emd4, UXqs):\n return Emd4(UXqs.specimen_id, UXqs.views)", "def nLvj(YKHO, zFiD):\n U5bT = pRbJ()\n s2mk = zFiD.split()\n exwG = len(s2mk)\n if exwG == 1:\n U5bT.word_label = s2mk[0]\n U5bT.start = None\n U5bT.end = None\n U5bT.phone_label = None\n U5bT....
[ "0.616163", "0.60876155", "0.5580792", "0.5515266", "0.5447746", "0.54368335", "0.53632784", "0.5349861", "0.5341501", "0.53397423", "0.5294632", "0.5269414", "0.52547485", "0.5155434", "0.51529074", "0.5133967", "0.5097059", "0.5092845", "0.50801194", "0.50793135", "0.506558...
0.86213464
0
Validate that contact works at company.
def nrOS(YKHO, nPrm): Nhg3 = ZNZ2(YKHO.instance, nPrm) q9zX = Nhg3.get_value(YKHO.company_field) Mxk0 = Nhg3.get_value(YKHO.contact_field) if Mxk0.company != q9zX: raise sUXu({YKHO.contact_field: YKHO.message})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _LVE(YKHO, q9zX: Company) -> s9HI:\n if q9zX:\n q9zX.has_perm(oZou.SECOND, YKHO.context['request'].user)\n return q9zX", "def YJ2N(YKHO, zrIJ):\n if YKHO.contact_api_key is None:\n k8wH.secho('[!] No Full Contact API key, so skipping company lookup.', fg='red')\n return None\n ...
[ "0.6468794", "0.5980664", "0.59506935", "0.5894009", "0.58926266", "0.5826065", "0.56606483", "0.56520915", "0.5587614", "0.55876005", "0.5551284", "0.55261856", "0.54993", "0.5498477", "0.5491925", "0.54838765", "0.54824877", "0.5412108", "0.5391571", "0.5360912", "0.5327758...
0.6208012
1
Validate that no other active quote exists.
def nrOS(YKHO, nPrm=None): if YKHO.instance.quote and (not YKHO.instance.quote.is_cancelled()): raise Qubj(YKHO.message)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U2y2(YKHO, NCC9: str) -> bool:\n return any((vexM for vexM in YKHO.quotes if vexM.content.lower() == NCC9.lower()))", "def zj_6(YKHO):\n pmON = lfdS.test_util.init_quotefile(YKHO.tempdir, 'quotes1.txt')\n NCC9 = nNXP.Quote(' This is an added quote.', 'Another author', 'Publication', ['tag1, tag2'])...
[ "0.5747989", "0.57406384", "0.5694497", "0.5638584", "0.54726636", "0.5431665", "0.5402564", "0.53784084", "0.5377113", "0.53460467", "0.5255905", "0.5229999", "0.5181424", "0.51718605", "0.5163591", "0.5128918", "0.5106957", "0.5106867", "0.50925434", "0.5089082", "0.508064"...
0.49599954
30
Validate that the actual_time field for all the assignees is set.
def nrOS(YKHO): if any((a9OA.actual_time is None for a9OA in YKHO.order.assignees.all())): raise sUXu({widx.NON_FIELD_ERRORS_KEY: YKHO.message})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, nPrm=None):\n if not YKHO.instance.assignees.count():\n raise sUXu({'assignees': [YKHO.no_assignees_message]})\n if not YKHO.instance.assignees.filter(is_lead=True).count():\n raise sUXu({'assignee_lead': [YKHO.no_lead_assignee_message]})\n if not YKHO.instance.assignees.aggre...
[ "0.62578154", "0.60257274", "0.5846542", "0.5798009", "0.5765732", "0.57263684", "0.5691919", "0.56517375", "0.56238663", "0.55846256", "0.55471796", "0.55441684", "0.5480494", "0.5470317", "0.5445394", "0.54265475", "0.54178244", "0.5416805", "0.54017943", "0.53827286", "0.5...
0.79807216
0
returns dataframe with doji candle column
def L3NH(WW0T): jQ3Z = WW0T.copy() wymw = abs(jQ3Z['close'] - jQ3Z['open']).median() jQ3Z['doji'] = abs(jQ3Z['close'] - jQ3Z['open']) <= 0.05 * wymw return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L3NH(WW0T):\n jQ3Z = WW0T.copy()\n wymw = abs(jQ3Z['close'] - jQ3Z['open']).median()\n jQ3Z['doji'] = abs(jQ3Z['close'] - jQ3Z['open']) <= 0.05 * wymw\n return jQ3Z", "def TcO7(o61b, QTq5=['Date', 'Close', 'Open', 'High', 'Low', 'Adj Close', 'Volume']):\n print('\\n\\n\\n======================...
[ "0.7177601", "0.617902", "0.6167698", "0.616418", "0.6136793", "0.6031459", "0.59011847", "0.58371955", "0.5828615", "0.5820551", "0.57958883", "0.5777113", "0.5771385", "0.5748469", "0.5708042", "0.5699576", "0.5694383", "0.5692249", "0.56770724", "0.567203", "0.567017", "...
0.70665765
1
Forward pass through CGCNN.
def KVH6(YKHO, DVf2, c6Hu, bAiv, _BVD, mhW1) -> llWB: lfBr = YKHO.material_nn(DVf2, c6Hu, bAiv, _BVD, mhW1) return YKHO.output_nn(lfBr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, pKvt: torch.Tensor) -> ht2j.Tensor:\n WKvO = YKHO.conv1(pKvt)\n WKvO = YKHO.maxpool(WKvO)\n for YRbF in range(YKHO._num_layers):\n WKvO = getattr(YKHO, 'C%d' % (YRbF + 1))(WKvO)\n WKvO = YKHO.avgpool(WKvO)\n WKvO = WKvO.view(WKvO.size(0), -1)\n WKvO = YKHO.fc(WKvO)\n retu...
[ "0.6816531", "0.6782716", "0.6493475", "0.6476742", "0.64520603", "0.6427258", "0.6415382", "0.63828665", "0.637629", "0.6357232", "0.63075477", "0.627369", "0.62720245", "0.6257584", "0.6257211", "0.62189716", "0.6207396", "0.62021744", "0.6192087", "0.6192087", "0.6172831",...
0.0
-1
Forward pass through the ConvLayer.
def KVH6(YKHO, E3N7, c6Hu, bAiv, _BVD) -> llWB: SbsR = E3N7[_BVD, :] i6ak = E3N7[bAiv, :] qAXP = ht2j.cat([i6ak, SbsR, c6Hu], dim=1) qAXP = YKHO.fc_full(qAXP) qAXP = YKHO.bn1(qAXP) KTBs, XGdx = qAXP.chunk(2, dim=1) KTBs = ht2j.sigmoid(KTBs) XGdx = Z8UB(XGdx) VU12 = KTBs * XGdx y1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = (WKvO - 127.5) / 127.5\n WKvO = YKHO.convs(WKvO)\n WKvO = WKvO.mean(-1).mean(-1)\n WKvO = YKHO.output(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO):\n WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.conv1(WKvO)), (2, 2))\n WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.conv2(WKvO))...
[ "0.711918", "0.71191025", "0.7093731", "0.7038039", "0.70232356", "0.699296", "0.6987883", "0.6979936", "0.697402", "0.69594353", "0.69167703", "0.69167703", "0.6907656", "0.6907656", "0.68883425", "0.6863273", "0.6845201", "0.6836763", "0.68301606", "0.6823488", "0.68095106"...
0.0
-1
Assert that when retainUnsent is False, the count in `total_unsent_rows_removed` is at least 0
def b1Vl(): ZlgM = i48E.select([OR1H.c.total_unsent_rows_removed]).select_from(OR1H).order_by(OR1H.c.id.desc()).limit(1) vJxi = R4f_() vJxi['retainUnsent'] = False open(Nu1S, 'w').close() with open(Nu1S, 'r+') as Fv2L: Fv2L.write(qQXR.dumps(vJxi)) ITS7.sleep(IFcu(vJxi['wait']) * 2) A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WMRs():\n ZlgM = i48E.select([OR1H.c.total_unsent_rows_removed]).select_from(OR1H).order_by(OR1H.c.id.desc()).limit(1)\n vJxi = R4f_()\n vJxi['retainUnsent'] = True\n open(Nu1S, 'w').close()\n with open(Nu1S, 'r+') as Fv2L:\n Fv2L.write(qQXR.dumps(vJxi))\n ITS7.sleep(IFcu(vJxi['wait'])...
[ "0.6544264", "0.6492185", "0.62513465", "0.6145343", "0.58549976", "0.58342844", "0.57413626", "0.57136875", "0.5702678", "0.5669056", "0.5642327", "0.56340873", "0.5511554", "0.5508407", "0.54713744", "0.5463716", "0.5463716", "0.5460407", "0.54453796", "0.54184407", "0.5411...
0.63627756
2
Assert that when retainUnsent is True, the `total_unsent_rows_removed` is 0.
def WMRs(): ZlgM = i48E.select([OR1H.c.total_unsent_rows_removed]).select_from(OR1H).order_by(OR1H.c.id.desc()).limit(1) vJxi = R4f_() vJxi['retainUnsent'] = True open(Nu1S, 'w').close() with open(Nu1S, 'r+') as Fv2L: Fv2L.write(qQXR.dumps(vJxi)) ITS7.sleep(IFcu(vJxi['wait']) * 2) Ao...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tR5N():\n xxno()\n fTqk()\n GPtr = NkS1(age=72, retain_unsent=True)\n assert GPtr['age']['value'] == '72'\n assert GPtr['retainUnsent']['value'] == 'True'\n LpmA()\n DR2N = DUZc()\n U96t, qwpZ = ilx0()\n Neqp(min_id=U96t, max_id=qwpZ)\n Wwcp, nVNM = blK_(GPtr, ui2M)\n RKD7 = Xu...
[ "0.65981007", "0.62875456", "0.62666833", "0.62274873", "0.5974208", "0.5842526", "0.56894517", "0.5583534", "0.5577256", "0.55751497", "0.5562179", "0.54568297", "0.54323435", "0.5418037", "0.5411867", "0.5398727", "0.5370703", "0.5356979", "0.5345173", "0.533924", "0.533924...
0.6449659
1
Assert that there aren't any residue rows remaining after delete.
def ZTUz(): ZlgM = i48E.select([OR1H.c.total_failed_to_remove]).select_from(OR1H) Aofo = g26D(ZlgM) assert [BWXx[0] == 0 for BWXx in Aofo]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8ej(YKHO):\n Qrt_ = kxTZ()\n hKn5 = 1\n rcIZ.objects.create(partition=Qrt_, cluster=hKn5)\n YEnM = rcIZ.objects(partition=Qrt_, cluster=hKn5).first()\n YKHO.assertFalse({G1Hx: Ty9i for G1Hx, Ty9i in YEnM._values.items() if Ty9i.deleted})\n YEnM.text = 'foo'\n YEnM.save()", "def rev_(YKH...
[ "0.6619022", "0.6572682", "0.65622807", "0.6496505", "0.64885324", "0.64030516", "0.6402442", "0.6355086", "0.6333897", "0.6311791", "0.6310154", "0.63090396", "0.62944275", "0.62850076", "0.62634355", "0.6246851", "0.62169945", "0.62087333", "0.62064046", "0.61764145", "0.61...
0.59676284
45
Return left edge of minimum magnitude bin
def XmhJ(YKHO): return YKHO.min_mag
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SpEv(eHNT: SwimmingFish) -> float:\n if eHNT.dx > 0:\n return eHNT.posn.x\n else:\n return eHNT.posn.x - eHNT.fish.size", "def KW0g(YKHO, EcVT, yzQ0):\n MKlR = YKHO.op_norm(EcVT, yzQ0[0])\n if YKHO.K.is_zero(MKlR):\n return None\n MKlR -= yzQ0[1]\n if YKHO.variant == xl...
[ "0.6740905", "0.6382151", "0.6129807", "0.60924727", "0.6045674", "0.6012799", "0.5992438", "0.59662306", "0.5964623", "0.5947477", "0.59038836", "0.5887518", "0.5877542", "0.5858324", "0.582485", "0.58064526", "0.57795286", "0.57714194", "0.5745885", "0.5742873", "0.57419926...
0.7109807
0
Blit images to screen.
def MQT3(YKHO): YKHO.start_button.blit_me() YKHO.title.blit_me() YKHO.screen.blit(YKHO.unicorn_img, YKHO.rect)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iD4s(YKHO):\n YKHO.screen.blit(YKHO.dial, YKHO.dialPos)\n YKHO.screen.blit(YKHO.rotatedImage, YKHO.rotatedImageRectangle)", "def dM6E(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.rect)", "def rxBj(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.rect)", "def rxBj(YKHO):\n YKHO.screen.blit(YKHO.ima...
[ "0.78004557", "0.72737366", "0.7127933", "0.7127933", "0.7127933", "0.7127933", "0.7127933", "0.7127933", "0.7127933", "0.7127933", "0.7127933", "0.7127933", "0.7100833", "0.7100833", "0.7100833", "0.7100659", "0.7100659", "0.7100659", "0.7100659", "0.7061471", "0.7044952", ...
0.61099
57
return Position of p's subtree key k or last node searched
def gRXS(YKHO, XP5J, G1Hx): if G1Hx == XP5J.key(): return XP5J elif G1Hx < XP5J.key(): if YKHO.left(XP5J) is not None: return YKHO._subtree_search(YKHO.left(XP5J), G1Hx) elif YKHO.right(XP5J) is not None: return YKHO._subtree_search(YKHO.right(XP5J), G1Hx) return XP5J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gRXS(YKHO, XP5J, G1Hx):\n if G1Hx == XP5J.key():\n return XP5J\n elif G1Hx < XP5J.key():\n if YKHO.left(XP5J) is not None:\n return YKHO._subtree_search(YKHO.left(XP5J), G1Hx)\n elif YKHO.right(XP5J) is not None:\n return YKHO._subtree_search(YKHO.right(XP5J), G1Hx)\n ...
[ "0.76520073", "0.7254559", "0.7033196", "0.69944155", "0.6934508", "0.69074726", "0.68335104", "0.6717298", "0.6690014", "0.66356456", "0.6634695", "0.6562115", "0.65234435", "0.6513386", "0.6502584", "0.648878", "0.6488224", "0.6463764", "0.64378124", "0.64058745", "0.63767"...
0.82677317
0
Convert and show image in matplotlib
def r2sP(VXjJ): ETO8(VXjJ) QrM1.ion() QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i5J1(pmON):\n VXjJ = SnjK.imread(pmON)\n gwMT = QrM1.imshow(VXjJ)\n QrM1.show()\n QrM1.close()", "def i5J1(LNo8):\n QrM1.imshow(LNo8, cmap='gray')\n QrM1.show()", "def p1dx(EcVT):\n Xn71 = EcVT.reshape(28, 28)\n ycBG = QrM1.imshow(Xn71)\n QrM1.show()", "def V6hz(YKHO):\n SNv...
[ "0.7240341", "0.72171354", "0.72147304", "0.7109893", "0.7059927", "0.70595276", "0.70595276", "0.70595276", "0.6964306", "0.69348985", "0.6921574", "0.6881371", "0.6808193", "0.6787899", "0.67845756", "0.6767024", "0.67652357", "0.6749043", "0.6747291", "0.674624", "0.671015...
0.67624605
17
Returns parent directory location
def jNha(): return GkAb(xAKo).parent.parent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmqI(pmON):\n return Hy7s.path.dirname(pmON)", "def su__(pmON):\n return SOoY(Hy7s.path.dirname(pmON))", "def Eyiy():\n pmON = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n pmON = '/'.join(pmON.split('/')[:-1])\n return pmON", "def w2bf(pmON):\n if not Hy7s.path.isdir(pmON):\n pm...
[ "0.8413406", "0.8372473", "0.82589805", "0.82514536", "0.8214239", "0.81748766", "0.8142769", "0.80121386", "0.7901326", "0.77953523", "0.7590437", "0.732964", "0.72327983", "0.7178573", "0.7162037", "0.7161591", "0.71206045", "0.70540994", "0.7022676", "0.69965327", "0.69786...
0.72297055
13
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, iPEw): 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.84568954", "0.83923674", "0.81447554", "0.81407183", "0.81326675", "0.80941343", "0.8092415", "0.8092415", "0.8092415", "0.8085536", "0.8085536", "0.8076502", "0.8076502", "0.8066026" ]
0.0
-1
Vectorized haversine distance calculation
def GeVo(XP5J: np.ndarray, vexM: np.ndarray) -> float: Csk6 = vexM - XP5J jzdc = epAf.sin(Csk6[0] / 2.0) ** 2 + epAf.cos(XP5J[0]) * epAf.cos(vexM[0]) * epAf.sin(Csk6[1] / 2.0) ** 2 Z9rn = 2 * epAf.atan2(epAf.sqrt(jzdc), epAf.sqrt(1.0 - jzdc)) return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pS8a(q9Dp, JEOk, N27k, zabe):\n q9Dp, JEOk, N27k, zabe = map(oyIN.radians, (q9Dp, JEOk, N27k, zabe))\n n_9K = N27k - q9Dp\n H91H = zabe - JEOk\n jzdc = oyIN.square(oyIN.sin(n_9K / 2)) + oyIN.cos(q9Dp) * oyIN.multiply(oyIN.cos(N27k), oyIN.square(oyIN.sin(H91H / 2)))\n Z9rn = 2 * oyIN.arcsin(oyIN....
[ "0.76570636", "0.71194756", "0.70101315", "0.6953141", "0.68675005", "0.68037647", "0.6800873", "0.67691875", "0.6767622", "0.67247975", "0.6711416", "0.66254157", "0.65995014", "0.65977913", "0.65671486", "0.6563485", "0.6548713", "0.6532873", "0.65280765", "0.65091723", "0....
0.6652647
11
Vectorized haversine distance calculation
def p1YX(XP5J: np.ndarray, vexM: np.ndarray) -> float: m6kB = 6378137.0 return GeVo(oyIN.radians(XP5J), oyIN.radians(vexM)) * m6kB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pS8a(q9Dp, JEOk, N27k, zabe):\n q9Dp, JEOk, N27k, zabe = map(oyIN.radians, (q9Dp, JEOk, N27k, zabe))\n n_9K = N27k - q9Dp\n H91H = zabe - JEOk\n jzdc = oyIN.square(oyIN.sin(n_9K / 2)) + oyIN.cos(q9Dp) * oyIN.multiply(oyIN.cos(N27k), oyIN.square(oyIN.sin(H91H / 2)))\n Z9rn = 2 * oyIN.arcsin(oyIN....
[ "0.7656346", "0.71199733", "0.7011706", "0.6954516", "0.6868793", "0.6804427", "0.68033296", "0.6770777", "0.67682624", "0.6726308", "0.6713218", "0.6652968", "0.6626013", "0.6601472", "0.6599804", "0.6569076", "0.656506", "0.65500146", "0.6535164", "0.6529891", "0.6510912", ...
0.62582076
59
Return or bind the executing device to output tensor.
def a2Be(YKHO, yvT9=None): if yvT9 is not None: yvT9._device = YKHO._device.copy() return yvT9 return YKHO._device.copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def begE(YKHO):\n return YKHO._tensor.device", "def LI2u(YKHO, **B2fa):\n with ZylS.variable_scope(YKHO.layer_scope):\n return YKHO.out", "def begE(YKHO) -> ht2j.device:\n return YKHO._device", "def hlse(YKHO, *qIxc, **B2fa) -> ivw6:\n return ivw6(args=list(qIxc), kwargs=B2fa)", "def vZp...
[ "0.67755586", "0.6211564", "0.60707", "0.6029104", "0.5898456", "0.589778", "0.5896882", "0.589323", "0.5870643", "0.5797109", "0.5773679", "0.57615006", "0.5758959", "0.5733176", "0.5733176", "0.5733176", "0.5729339", "0.56980926", "0.5696714", "0.56568754", "0.5655757", "...
0.53547525
39
Sends a 401 response that enables basic auth
def NLCy(): return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.80936956", "0.809273", "0.795861", "0.78515965", "0.7842818", "0.78245074", "0.7766247", "0.7754811", "0.7747721", "0.7747721", "0.7747721", "0.7747721", "0.7747721", "0.7747721", "0.7747721", "0.7747721", "0.7719394", "0.766773", "0.76642597", "0.76496774", "0.7614337", ...
0.7810836
17
I run before every test in this class Creats a VGG16 model and gets the last layer,
def FCbF(YKHO): print('\n-------------------------------------\nIn Test_KerasLayers:', YKHO._testMethodName) YKHO.model = HxRh() YKHO.last_layer = YKHO.model.submodules[-1] Rs4w.weightwatcher.keras = bdPE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u01z():\n rvDU = HxRh(weights='imagenet', include_top=True)\n C3ST = wOed(inputs=rvDU.input, outputs=rvDU.get_layer('fc2').output)\n return C3ST", "def n8cN():\n v8sj = HxRh(input_shape=(EJNo[0], EJNo[1], 3), weights='imagenet', include_top=False)\n for gEmA in v8sj.layers:\n gEmA.train...
[ "0.71699524", "0.7156078", "0.7144145", "0.6992418", "0.67956144", "0.6720736", "0.66947323", "0.6686446", "0.6629766", "0.66060966", "0.65839607", "0.6548315", "0.6508151", "0.6502141", "0.6454946", "0.64524907", "0.6446467", "0.643815", "0.6415911", "0.6411335", "0.6406146"...
0.6039993
51
I run before every test in this class Creats a VGG16 model and gets the last layer,
def FCbF(YKHO): print('\n-------------------------------------\nIn Test_PyTorchLayers:', YKHO._testMethodName) Rs4w.weightwatcher.torch = ht2j YKHO.model = FYrf.resnet18() for gEmA in YKHO.model.modules(): YKHO.last_layer = gEmA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u01z():\n rvDU = HxRh(weights='imagenet', include_top=True)\n C3ST = wOed(inputs=rvDU.input, outputs=rvDU.get_layer('fc2').output)\n return C3ST", "def n8cN():\n v8sj = HxRh(input_shape=(EJNo[0], EJNo[1], 3), weights='imagenet', include_top=False)\n for gEmA in v8sj.layers:\n gEmA.train...
[ "0.7168294", "0.71543777", "0.71423453", "0.6990208", "0.67931354", "0.6719671", "0.6691702", "0.6684858", "0.66287065", "0.6604035", "0.658112", "0.65468466", "0.650707", "0.6503614", "0.6456134", "0.64508593", "0.6443264", "0.64390254", "0.6415212", "0.6408311", "0.6403717"...
0.0
-1
Remove any leftover temp files from failed tests; this should never be necessaery
def PkTX(Emd4): yMwY._remove_all_ww_tmp_dirs() super().tearDownClass() return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GLtq():\n RRlC = SC2F.glob(f'{vmiX}/tmp/*')\n for eHNT in RRlC:\n try:\n Hy7s.remove(eHNT)\n except Exception:\n pass", "def tBIc(YKHO) -> None:\n iku2 = [eHNT for eHNT in SC2F.glob('steps/tests/test_output/*') if not ZbWC.match('\\\\.keep', eHNT)]\n for nUeQ i...
[ "0.78060484", "0.77982086", "0.77926356", "0.7736854", "0.7627535", "0.7540641", "0.75195307", "0.75190467", "0.7506287", "0.750539", "0.7436323", "0.73915875", "0.73809326", "0.7311558", "0.7304898", "0.7304511", "0.7295666", "0.7287898", "0.72855985", "0.7280487", "0.725396...
0.0
-1
Tests that if we create a temporary directory, and the test fails, that it is added to the tmp_dirs
def OIvG(YKHO): l_jd = None try: with bxBA(dir=Lbww, prefix='ww_') as eG0V: print(f'using {eG0V} as model_dir') YKHO.assertTrue(eG0V.startswith(Lbww)) l_jd = str(eG0V) print(f'checking {l_jd} ') YKHO.assertTrue(False) except: pass ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yIib():\n Csk6 = '{home}/tmp'.format(home=Hy7s.path.expanduser('~'))\n assert Hy7s.path.isdir(Csk6)\n assert Hy7s.access(Csk6, Hy7s.W_OK)", "def WXA9(cU3o, Pty3):\n if cU3o is None or cU3o == '':\n cU3o = gbPf.mkdtemp(suffix=Pty3, dir='.')\n elif Hy7s.path.exists(cU3o):\n raise E...
[ "0.78611225", "0.7789471", "0.77465194", "0.77359927", "0.7723105", "0.76571536", "0.7652669", "0.7494761", "0.74411243", "0.7390888", "0.7380444", "0.73603755", "0.7356869", "0.73471725", "0.724662", "0.7236655", "0.7219758", "0.7215304", "0.7201361", "0.7188414", "0.7184946...
0.7764006
2
Remove class specific weights_dir, and any leftover temp files from failed tests
def PkTX(Emd4): yMwY._remove_ww_tmp_dir(Emd4.weights_dir) yMwY._remove_all_ww_tmp_dirs() super().tearDownClass() return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zdce(YKHO):\n SBt6 = EWyC._make_tmp_weights_dir()\n YKHO.assertTrue(Hy7s.path.isdir(SBt6))\n yMwY._remove_ww_tmp_dir(SBt6)\n YKHO.assertFalse(Hy7s.path.isdir(SBt6))\n return", "def tBIc(YKHO) -> None:\n iku2 = [eHNT for eHNT in SC2F.glob('steps/tests/test_output/*') if not ZbWC.match('\\\\....
[ "0.7424175", "0.7176647", "0.7105716", "0.70257425", "0.7003182", "0.6930262", "0.69094855", "0.67877483", "0.67855895", "0.6771196", "0.67627794", "0.6758681", "0.673299", "0.67195857", "0.67174816", "0.67018116", "0.6695787", "0.6683954", "0.6681542", "0.6676443", "0.666886...
0.7654598
0
I run before every test in this class Creats a VGG16 model and gets the last layer,
def FCbF(YKHO): print('\n-------------------------------------\nIn Test_PyStateDictLayers:', YKHO._testMethodName) Rs4w.weightwatcher.torch = ht2j YKHO.model = FYrf.resnet18().state_dict() for H5ew in YKHO.model.keys(): if H5ew.endswith('.weight'): lzjZ = H5ew[:-len('.weight')] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u01z():\n rvDU = HxRh(weights='imagenet', include_top=True)\n C3ST = wOed(inputs=rvDU.input, outputs=rvDU.get_layer('fc2').output)\n return C3ST", "def n8cN():\n v8sj = HxRh(input_shape=(EJNo[0], EJNo[1], 3), weights='imagenet', include_top=False)\n for gEmA in v8sj.layers:\n gEmA.train...
[ "0.7168294", "0.71543777", "0.71423453", "0.6990208", "0.67931354", "0.6719671", "0.6691702", "0.6684858", "0.66287065", "0.6604035", "0.658112", "0.65468466", "0.650707", "0.6503614", "0.6456134", "0.64508593", "0.6443264", "0.64390254", "0.6415212", "0.6408311", "0.6403717"...
0.0
-1
Test that ww.LAYER_TYPE.DENSE filter is applied only to DENSE layers
def sefk(YKHO): iQG7 = YKHO.watcher.describe(pool=False, min_evals=1) B9Xe = iQG7[iQG7.layer_type == str(NIqo.DENSE)] J1lc = len(B9Xe) YKHO.assertEqual(J1lc, 3, '3 dense layers, but {} found'.format(J1lc)) YqPl = iQG7[iQG7.layer_type == str(NIqo.CONV2D)] w5mq = len(YqPl) YKHO.assertEqual(w5m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPAi(YKHO):\n print('test_filter_dense_layer_types')\n iQG7 = YKHO.watcher.describe(layers=[NIqo.DENSE])\n print(iQG7)\n B9Xe = iQG7[iQG7.layer_type == str(NIqo.DENSE)]\n J1lc = len(B9Xe)\n YKHO.assertEqual(J1lc, 3, '3 dense layers, but {} found'.format(J1lc))\n YKHO.assertTrue((B9Xe.N > 0...
[ "0.72056395", "0.6853185", "0.67411697", "0.5925648", "0.58145314", "0.55425835", "0.54277843", "0.54049164", "0.5355866", "0.52974844", "0.5289692", "0.52886176", "0.52618957", "0.5258047", "0.5256818", "0.52451396", "0.52286124", "0.52186435", "0.5201913", "0.51897806", "0....
0.5554918
5
Remove class specific weights_dir, and any leftover temp files from failed tests
def PkTX(Emd4): yMwY._remove_ww_tmp_dir(Emd4.weights_dir) yMwY._remove_all_ww_tmp_dirs() super().tearDownClass() return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zdce(YKHO):\n SBt6 = EWyC._make_tmp_weights_dir()\n YKHO.assertTrue(Hy7s.path.isdir(SBt6))\n yMwY._remove_ww_tmp_dir(SBt6)\n YKHO.assertFalse(Hy7s.path.isdir(SBt6))\n return", "def tBIc(YKHO) -> None:\n iku2 = [eHNT for eHNT in SC2F.glob('steps/tests/test_output/*') if not ZbWC.match('\\\\....
[ "0.7424175", "0.7176647", "0.7105716", "0.70257425", "0.7003182", "0.6930262", "0.69094855", "0.67877483", "0.67855895", "0.6771196", "0.67627794", "0.6758681", "0.673299", "0.67195857", "0.67174816", "0.67018116", "0.6695787", "0.6683954", "0.6681542", "0.6676443", "0.666886...
0.7654598
1
Generate and return the currently available prediction model. Model may be `None` if there is no currently available model.
def C3ST(YKHO) -> h8nf[U3th]: L5LA = YKHO._paths['cascade_file'] C3ST = None if Hy7s.path.isfile(L5LA) and YKHO.settings.class_index is not None: C3ST = U3th(L5LA, YKHO.settings) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WjRz(YKHO) -> wOed:\n assert YKHO.model_name\n print('Check if Model exists.')\n if YKHO.model_name in YKHO.models:\n print('Model does exists.')\n C3ST = wOed(YKHO, name=YKHO.model_name)\n if not Hy7s.path.isdir('outputs'):\n C3ST.download('outputs', exist_ok=True)\n ...
[ "0.7133013", "0.711182", "0.7066499", "0.6942665", "0.6882", "0.6780109", "0.66772157", "0.66243124", "0.6547993", "0.6547592", "0.64965606", "0.6486453", "0.6448505", "0.64302766", "0.6423706", "0.642238", "0.64218825", "0.64057624", "0.63462746", "0.63136405", "0.6301953", ...
0.0
-1
ensure roll functionality works
def VXti(YKHO): RsVW = 3 gwV4 = BC_n(RsVW) L6HE = eW67(RsVW, colors={1: 'blue', 2: 'yellow', 3: 'gold'}) YKHO.assertEqual(gwV4.last_roll, None) gwV4.roll() L6HE.roll() for Csk6 in [gwV4, L6HE]: YKHO.assertTrue(Csk6.last_roll > 0 and Csk6.last_roll <= RsVW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rKSe():\n pass", "def prEZ(YKHO):\n return GD_A.roll(YKHO)", "def Cuay(YKHO):\n raise NotImplementedError()", "def rKSe(YKHO):\n return YKHO._roll", "def rKSe(YKHO):\n return YKHO._roll", "def rKSe(YKHO):\n YKHO.rolled = tuKI.randint(1, 6)\n return YKHO.rolled", "def LrMy(YKHO,...
[ "0.78988034", "0.69984275", "0.68144846", "0.6710742", "0.6710742", "0.6510638", "0.64724505", "0.6379821", "0.63268256", "0.6326657", "0.63209385", "0.6293037", "0.62467825", "0.6245015", "0.62369853", "0.62205154", "0.61906636", "0.61276203", "0.6089827", "0.6087172", "0.60...
0.62519413
12
remove the stuff that you built in setUp (e.g. directories) not needed for Die classes
def tBIc(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Baw8(Emd4):\n if not Hy7s.path.exists(PfW7):\n Hy7s.makedirs(PfW7)\n if not Hy7s.path.exists(bq0Q):\n Hy7s.makedirs(bq0Q)\n jcgT(SC2F.iglob(Hy7s.path.join(PfW7, '*.*')))\n jcgT(SC2F.iglob(Hy7s.path.join(bq0Q, '*.*')))\n super(Emd4, HPsZ).setUpClass()", "def PkTX(Emd4):\n pmON ...
[ "0.730096", "0.7235276", "0.71437234", "0.7124335", "0.71212745", "0.7006987", "0.6999593", "0.69697315", "0.6957369", "0.69515526", "0.69515526", "0.6941795", "0.6935265", "0.6858815", "0.6858815", "0.68494093", "0.683472", "0.6833853", "0.682159", "0.681106", "0.681106", ...
0.0
-1
Takes a set of distributions over the [0,1] interval and translates them into softmax of their expected values
def KVH6(YKHO, hnFq, Kt_s): gQss = YKHO.expected_value_calc(hnFq) BFeB = vuvg.softmax(gQss / Kt_s, dim=-1) return BFeB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(hkxX):\n nwEM = oyIN.exp(hkxX)\n return nwEM / sum(nwEM)", "def N93T(g4y1):\n return oyIN.exp(g4y1) / float(sum(oyIN.exp(g4y1)))", "def N93T(g4y1):\n return oyIN.exp(g4y1) / float(sum(oyIN.exp(g4y1)))", "def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",...
[ "0.73730695", "0.71532553", "0.71532553", "0.7138015", "0.7133507", "0.7119097", "0.7119097", "0.7073773", "0.7073773", "0.7073773", "0.7073773", "0.7073773", "0.7073773", "0.7073773", "0.7073773", "0.7066461", "0.7062208", "0.7003875", "0.69743395", "0.6971242", "0.69638306"...
0.0
-1
Calculates the aggregation of probabilities assuming Thompson sampling. actions can be one index or actions1, actions2
def upU3(hnFq, L6TZ, TPHe=False): L6TZ = L6TZ / L6TZ.sum(-1, keepdim=True) if TPHe: assert all([XP5J >= 0 for XP5J in L6TZ.view(-1)]) assert all([(XP5J - 1.0).abs() < SGf8 for XP5J in L6TZ.sum(-1)]) L6TZ = L6TZ.unsqueeze(len(L6TZ.size())) HsuF = (hnFq * L6TZ).sum(-2) if TPHe: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wwRm(YKHO, wspz, xASv):\n BFeB = oyIN.ones(len(wspz)) / 2\n return BFeB", "def wwRm(YKHO, wspz, xASv):\n BFeB = []\n for d6pt, (QTBn, XeOP) in enumerate(zip(wspz, xASv)):\n eUNT = YKHO.sample_action(QTBn)\n if XeOP == eUNT:\n BFeB.append(1)\n else:\n BFe...
[ "0.6763311", "0.66574484", "0.6566668", "0.6504399", "0.6493721", "0.6406789", "0.6231681", "0.6153917", "0.6113219", "0.6106338", "0.609098", "0.6083855", "0.6067049", "0.60604006", "0.6016603", "0.600746", "0.6003862", "0.5999234", "0.5961963", "0.5959977", "0.5952519", "...
0.0
-1
Tokenizes a phrase using the nltk tokenizer. If the phrase already has subwords, these will be overwritten.
def Ylh1(A0cm): assert isinstance(A0cm, KSu_) s2mk = Dhdw.word_tokenize(A0cm.phrase) A0cm.add_words([KLCG(word=GIN8) for GIN8 in s2mk]) return A0cm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(yAmx):\n return Dhdw.word_tokenize(yAmx)", "def UIAG(YKHO, A0cm: Phrase, b0j5: Tokenizer=None) -> None:\n b0j5 = YKHO._get_tokenizer(b0j5)\n if b0j5 is None:\n return None\n s2mk = b0j5.tokenize(A0cm.phrase_string)\n for xTkX, eOtH in enumerate(s2mk):\n if xTkX == 0:\n ...
[ "0.6886672", "0.6772981", "0.66353106", "0.65527", "0.6473158", "0.64144146", "0.64010584", "0.6382285", "0.6368636", "0.636459", "0.63491786", "0.6308058", "0.63062394", "0.6271902", "0.6240912", "0.62335527", "0.61950946", "0.61872786", "0.61510533", "0.6143522", "0.6128763...
0.8272181
0
Write a DataFrame to CSV, creating the output directory if necessary. Log the output path and number of rows.
def RZtn(jQ3Z: pd.DataFrame, LWY6) -> None: G9jH.info('Writing detection records to disk') OTY2 = Hy7s.path.split(LWY6)[0] if not Hy7s.path.exists(OTY2): Hy7s.makedirs(OTY2) jQ3Z.to_csv(LWY6, index=False) G9jH.info(f'{len(jQ3Z)} records written to {LWY6}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P5pD(Ikji, qaEx):\n Ikji.coalesce(1).write.format('csv').option('header', 'true').mode('overwrite').save(qaEx)", "def pi8J(jQ3Z, gIsw):\n try:\n jQ3Z.to_csv(Hy7s.path.join(Qeo_, gIsw))\n except:\n pass", "def aVpL(jQ3Z, ytgA):\n if not Hy7s.path.isdir(Hy7s.path.split(ytgA)[0]):\n ...
[ "0.7551525", "0.73792434", "0.7282722", "0.72569335", "0.72496927", "0.72234684", "0.72109115", "0.7204214", "0.71625125", "0.7120945", "0.71160054", "0.70913947", "0.70762366", "0.70755386", "0.7073337", "0.70104086", "0.6941631", "0.6923366", "0.6892683", "0.6856349", "0.68...
0.777608
0
Verify the parent name.
def gQkW(wbiw, bNKA, xtX7, xC3W='root cloud asset'): if wbiw is None and bNKA is None and (xtX7 is None): raise JrY3.RequiredArgumentException('--organization or --project or --folder', 'Should specify the organization, or project, or the folder for {0}.'.format(xC3W)) if wbiw and bNKA: raise Jr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kgXq(YEnM, dx2i):\n if YEnM.parent is None:\n return False\n if YEnM.parent.name is None:\n return False\n elif YEnM.parent.name == dx2i:\n return True\n else:\n return kgXq(YEnM.parent, dx2i)", "def GAHn(YKHO):\n nPrm = YKHO.cleaned_data['parent']\n if nPrm == Y...
[ "0.6971745", "0.66671616", "0.6659929", "0.66385084", "0.6593543", "0.65022653", "0.6481075", "0.6472918", "0.64529395", "0.6449775", "0.64379877", "0.6420261", "0.641911", "0.639148", "0.63750476", "0.6349837", "0.6343843", "0.6343843", "0.63341004", "0.63258344", "0.6258896...
0.0
-1
Gets the parent name from organization Id, project Id, or folder Id.
def Oz3I(wbiw, bNKA, xtX7, xC3W='root cloud asset'): gQkW(wbiw, bNKA, xtX7, xC3W) if wbiw: return 'organizations/{0}'.format(wbiw) if xtX7: return 'folders/{0}'.format(xtX7) return 'projects/{0}'.format(bNKA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAwq(YKHO, KmYg: str) -> str:\n ACnF = YKHO.parent_types[KmYg]\n return ACnF[1] if len(ACnF) > 1 else ''", "def PAwq(YKHO, hbFX) -> str:\n return list(YKHO._nodes[hbFX]['parents'].keys())[0]", "def H7rZ(YKHO) -> str:\n return YKHO._db_data.parent_id", "def PAwq(YKHO):\n H7rZ = YKHO.client....
[ "0.769294", "0.7574789", "0.72668004", "0.7213511", "0.7172086", "0.7172086", "0.7136938", "0.71029955", "0.699289", "0.69741285", "0.6971407", "0.6917706", "0.6889737", "0.6842269", "0.6804137", "0.6779201", "0.6779201", "0.6738915", "0.67058074", "0.6656991", "0.6656106", ...
0.691313
12
Get the parent name from organization Number, project Id, or folder Number.
def Cdfb(wbiw, bNKA, xtX7): if wbiw: return 'organizations/{0}'.format(wbiw) if xtX7: return 'folders/{0}'.format(xtX7) return 'projects/{0}'.format(Vjyu.GetProjectNumber(bNKA))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAwq(YKHO, KmYg: str) -> str:\n ACnF = YKHO.parent_types[KmYg]\n return ACnF[1] if len(ACnF) > 1 else ''", "def H7rZ(YKHO) -> str:\n return YKHO._db_data.parent_id", "def KWnA(YKHO):\n return UiY4.coordsys_parentname(YKHO)", "def PAwq(YKHO, hbFX) -> str:\n return list(YKHO._nodes[hbFX]['pa...
[ "0.74285823", "0.72129714", "0.7165588", "0.71459377", "0.714557", "0.7143463", "0.7143463", "0.70638025", "0.7050558", "0.7038914", "0.70210785", "0.6866854", "0.68090117", "0.67352647", "0.6734735", "0.6658442", "0.66483736", "0.66422474", "0.6626789", "0.6626789", "0.66190...
0.7091101
7
Verify the parent name.
def ih4o(wbiw, bNKA, xC3W='root cloud asset'): if wbiw is None and bNKA is None: raise JrY3.RequiredArgumentException('--organization or --project', 'Should specify the organization, or project for {0}.'.format(xC3W)) if wbiw and bNKA: raise JrY3.ConflictingArgumentsException('organization', 'pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kgXq(YEnM, dx2i):\n if YEnM.parent is None:\n return False\n if YEnM.parent.name is None:\n return False\n elif YEnM.parent.name == dx2i:\n return True\n else:\n return kgXq(YEnM.parent, dx2i)", "def GAHn(YKHO):\n nPrm = YKHO.cleaned_data['parent']\n if nPrm == Y...
[ "0.6971745", "0.66671616", "0.6659929", "0.66385084", "0.6593543", "0.65022653", "0.6481075", "0.6472918", "0.64529395", "0.6449775", "0.64379877", "0.6420261", "0.641911", "0.639148", "0.63750476", "0.6349837", "0.6343843", "0.6343843", "0.63341004", "0.63258344", "0.6258896...
0.0
-1