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
Dense version of GAT.
def FIMM(YKHO, mQkE, l_wy, q1vv, hr1G, Cwt5, prkQ): super(sjZv, YKHO).__init__() YKHO.dropout = hr1G YKHO.attentions = [qz4s(mQkE, l_wy, dropout=hr1G, alpha=Cwt5, concat=True) for bGrB in range(prkQ)] for YRbF, v2uf in enumerate(YKHO.attentions): YKHO.add_module('attention_{}'.format(YRbF), v2uf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y4I9(YKHO):\n YKHO.g = YKHO.tensor.calcBhattacharyya(YKHO.l)", "def ZVsL(YKHO):\n qi6C = [[ZylS.identity(Vlb9) for Vlb9 in YKHO.params] for aTqo in range(YKHO.batch_size_G)]\n KgqM = ZylS.split(YKHO.X, YKHO.batch_size_G)\n WVfN = ZylS.split(YKHO.y, YKHO.batch_size_G)\n EinP = [YKHO.model_fun(Z...
[ "0.64760274", "0.61745125", "0.6032927", "0.6025716", "0.5986026", "0.5918554", "0.5891656", "0.58866566", "0.58427864", "0.58353937", "0.5828208", "0.5822424", "0.58105785", "0.5805133", "0.5799729", "0.57900155", "0.5789868", "0.57867205", "0.57813394", "0.57669044", "0.576...
0.0
-1
Usage get_age_col(customer_df, 'dob', '')
def Z6Ms(YKHO, jQ3Z, SOIg, jF7w, VkR4, OCmv, R9hI): with aG20('dask'): jQ3Z['age'] = '' for YRbF in range(len(jQ3Z)): y6Fc = jQ3Z[SOIg][YRbF] y6Fc = y6Fc.split(jF7w) lO87 = int(y6Fc[R9hI]) x0eS = int(y6Fc[OCmv]) CjKC = int(y6Fc[VkR4]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(jQ3Z, I1iR):\n pass", "def UP9k(WfCS):\n ZJe_ = WfCS[0]\n I0UR = WfCS[1]\n if rLdf.isnull(ZJe_):\n if I0UR == 1:\n return V3PG\n elif I0UR == 2:\n return qF7y\n else:\n return T6JQ\n else:\n return ZJe_", "def ZJe_(YKHO) -> h8...
[ "0.67171884", "0.6653173", "0.6306702", "0.6276291", "0.6243726", "0.61759377", "0.6163181", "0.61426425", "0.6101828", "0.6097595", "0.60599416", "0.605791", "0.60333824", "0.5985126", "0.597204", "0.596825", "0.59648097", "0.5907257", "0.590589", "0.5891083", "0.5861758", ...
0.70852584
0
grouping less occurring categorical variables into others category
def ATk1(YKHO, __n6, arHl): with aG20('dask'): TXeQ = [] for fvDH in arHl: CYX4 = dict(__n6[fvDH].value_counts(normalize=True) * 100) DumB = list(CYX4.items()) T6S7 = [] for YRbF in range(len(DumB)): if DumB[YRbF][1] <= 0.1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kW8v(GVWp, af07, n0jV, gwAu):\n yqgm = GVWp[n0jV].value_counts() / GVWp.shape[0]\n QuHj = yqgm.loc[yqgm.values < gwAu].index\n for Ghho in QuHj:\n GVWp[n0jV].replace({Ghho: 'others'}, inplace=True)\n af07[n0jV].replace({Ghho: 'others'}, inplace=True)", "def baHI(YKHO):\n yFi2 = list...
[ "0.70005476", "0.65086126", "0.6218484", "0.6124414", "0.6101576", "0.6087414", "0.6080215", "0.60579354", "0.602035", "0.59660316", "0.59516734", "0.58598006", "0.583199", "0.5786242", "0.5775728", "0.5769356", "0.57555467", "0.5709663", "0.5675546", "0.5658216", "0.56566674...
0.6818531
1
returns a list of columns that can be considered for drop
def khBX(YKHO, jQ3Z, ro5J): """correlation matrix""" zfTQ = jQ3Z.corr().abs() 'Select upper triangle of correlation matrix' CN9P = zfTQ.where(oyIN.triu(oyIN.ones(zfTQ.shape), k=1).astype(oyIN.bool)) 'Find index of feature columns with correlation greater than provided threshold' ex31 = [iVRZ for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pu4P():\n return ['parcelid', 'logerror', 'transactiondate', 'propertyzoningdesc', 'propertycountylandusecode']", "def VwMS(YKHO, bOBl, ex31):\n return bOBl.drop(ex31, axis=1).to_numpy().tolist()", "def uuFt(jQ3Z, Sglu=[]):\n fnmS = ['amount_tsh', 'date_recorded', 'gps_height', 'population', 'cons...
[ "0.8235814", "0.77009153", "0.75107396", "0.7455058", "0.7326721", "0.72907203", "0.72791326", "0.7164763", "0.7053611", "0.69857806", "0.6942814", "0.6932102", "0.6871572", "0.68471044", "0.68032974", "0.67611617", "0.67583525", "0.6743008", "0.6721599", "0.6707176", "0.6672...
0.0
-1
Unpack multivariate normal distribution.
def zhri(pImw, fD99): def zxlK(Ty9i): """Convert diagonal variance to full covariance matrix. Assumes `v` represents diagonal variance elements only. """ LSjI = Ty9i.shape[0] apZK = Ty9i.shape[1] PFC2 = oyIN.zeros([LSjI, apZK, apZK]) for K3kO in range(LSjI):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c81J(B9EC, Md2Z, PCpl):\n exwG = len(B9EC)\n EcVT = []\n epBp = []\n G1Hx = 0\n for yGTL, WTkW, exwG in zip(B9EC, Md2Z, PCpl):\n EcVT.append(oyIN.random.normal(yGTL, WTkW, exwG))\n epBp.append([G1Hx] * exwG)\n G1Hx += 1\n EcVT = oyIN.concatenate(EcVT)\n epBp = oyIN.con...
[ "0.65550184", "0.64442116", "0.6009075", "0.5926379", "0.59027326", "0.5873713", "0.5857318", "0.5853809", "0.58135945", "0.5782165", "0.57817066", "0.5770277", "0.57685274", "0.5764399", "0.57144773", "0.5658981", "0.5656719", "0.56131613", "0.5595167", "0.5588808", "0.55824...
0.0
-1
compute an n period moving average. type is 'simple' | 'exponential'
def ZCKv(WKvO, exwG, type='simple'): WKvO = oyIN.asarray(WKvO) if type == 'simple': _mSQ = oyIN.ones(exwG) else: _mSQ = oyIN.exp(oyIN.linspace(-1.0, 0.0, exwG)) _mSQ /= _mSQ.sum() jzdc = oyIN.convolve(WKvO, _mSQ, mode='full')[:len(WKvO)] jzdc[:exwG] = jzdc[exwG] return jzdc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(WKvO, exwG=10, type='simple'):\n WKvO = oyIN.asarray(WKvO)\n if type == 'simple':\n yzQ0 = oyIN.ones(exwG)\n yzQ0 /= yzQ0.sum()\n qqgr = oyIN.convolve(WKvO, yzQ0, mode='full')[:len(WKvO)]\n qqgr[:exwG] = qqgr[exwG]\n else:\n qqgr = oyIN.zeros_like(WKvO)\n ...
[ "0.8018785", "0.77802366", "0.7715111", "0.7660856", "0.7568504", "0.75576633", "0.75276864", "0.75131696", "0.7499784", "0.7494311", "0.746439", "0.74298704", "0.7428391", "0.7412966", "0.73936677", "0.7375895", "0.7325144", "0.73046064", "0.73002404", "0.7280171", "0.726669...
0.77002496
3
get_reshaped_tensors Reshapes tensors for use in loss function Outputs pred of shape (NxHxW)xC and label of shape (NxHxW) Each minibatch element is expanded as HxW elements with the same label as the original minibatch element
def flP6(YKHO, EcVT, UXqs): nvEb = YKHO.net_D(EcVT) swoL, Q8FT, Gh3j, vzQi = nvEb.shape nvEb = XLeW(nvEb) WRvX = None if UXqs == 1: WRvX = YKHO.one_tensor.expand_as(VOUr) elif UXqs == 0: WRvX = YKHO.zero_tensor.expand_as(VOUr) else: assert UXqs.numel() == swoL and len...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EaGh(ly9N, qbil, ZOym):\n qZdX = oyIN.array(ZOym)[oyIN.isin(ZOym, ['node', 'feature'], invert=True)].tolist()\n ly9N = ly9N.rename(*ZOym).align_to(..., 'node', 'feature').flatten(qZdX, 'data_points').rename(None)\n qbil = qbil.rename(*ZOym).align_to(..., 'node', 'feature').flatten(qZdX, 'data_points')...
[ "0.67131215", "0.6549601", "0.6504594", "0.64330655", "0.62793154", "0.62793154", "0.6259537", "0.62352437", "0.62252355", "0.61676997", "0.61391306", "0.613774", "0.60667896", "0.60424876", "0.6028591", "0.60227364", "0.59947455", "0.5946444", "0.5893789", "0.5873813", "0.58...
0.76295364
0
__init__ SegLoss is a class for computing segmentation loss Loss can be one of normal crossentropy or an adversarial type of loss Adversarial loss makes use of a neural network for parametrization
def FIMM(YKHO, VKhi): assert VKhi.loss.split('_')[0] in u_3K.LOSSES, 'Invalid loss' YKHO.opts = VKhi if VKhi.loss.split('_')[0] in LN76._modes: ngTp = int(VKhi.image_shape.split(',')[0]) + VKhi.n_labels n3sz = OoBr.make_discriminator(in_channels=ngTp, disc_type=VKhi.disc_type, norm_name=VKhi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.loss_fn = ht2j.nn.MSELoss(size_average=None, reduce=None, reduction='mean')", "def FIMM(YKHO):\n super(E7Y5, YKHO).__init__('Training Loss', 'loss', loss=[], val_loss=[])", "def FIMM(YKHO, type='nsgan', WYz0=1.0, Af2d=0.0):\n super(ZGB8, YKHO).__init__()\n YKHO.type = type\n ...
[ "0.71664697", "0.7001597", "0.6969657", "0.68976754", "0.67767406", "0.6742488", "0.67280585", "0.66701305", "0.66701305", "0.66652673", "0.6653957", "0.6630837", "0.6627763", "0.6621136", "0.6613756", "0.65989846", "0.65773195", "0.6568053", "0.65593505", "0.6532359", "0.651...
0.6902356
3
set_requires_grad Sets whether or not we computer the gradient for nets
def F41H(YKHO, JHDS, _6Ge=False): if not isinstance(JHDS, list): JHDS = [JHDS] for Zxma in JHDS: if Zxma is not None: for xqoZ in Zxma.parameters(): xqoZ.requires_grad = _6Ge
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F41H(eVVj, _6Ge=False):\n for xqoZ in eVVj.parameters():\n xqoZ.requires_grad = _6Ge", "def F41H(YKHO, bo34, Zxma, _6Ge=False):\n for k78t in Zxma.parameters():\n k78t.requires_grad = _6Ge", "def F41H(YKHO, JHDS, _6Ge=False):\n if not isinstance(JHDS, list):\n JHDS = [JHDS]\n ...
[ "0.85516346", "0.8543514", "0.8179647", "0.81529635", "0.813507", "0.80981135", "0.8087951", "0.8087951", "0.8087951", "0.80839133", "0.80713046", "0.80713046", "0.7725939", "0.7591568", "0.73407125", "0.7318265", "0.7312712", "0.7277614", "0.7232254", "0.7227158", "0.7181175...
0.80631304
15
Find a node in a tree.
def QZvK(kyMs, Q6kx): if Q6kx.galaxyID == kyMs: return Q6kx else: for YRbF in Q6kx.children: WKvO = QZvK(kyMs, YRbF) if WKvO != None: return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QiNe(YKHO, Q6kx):\n return YKHO.root.find(Q6kx.data)", "def pHXM(YKHO, *qIxc):\n if not YKHO.is_tree_not_empty_or_error():\n return\n YKHO.find_handler.find_a_node()", "def yKxK(YKHO, TmxZ):\n YRbF = 0\n while YRbF < len(YKHO.nodes):\n if YKHO.nodes[YRbF][0] == TmxZ:\n ...
[ "0.8363581", "0.8113218", "0.79737455", "0.7799508", "0.7697251", "0.7634676", "0.7625133", "0.7477463", "0.7439548", "0.74324495", "0.74117994", "0.7397528", "0.73935175", "0.7361483", "0.7319216", "0.7319216", "0.7319216", "0.7307215", "0.73047477", "0.72472805", "0.7242183...
0.72569096
19
Return whether one argument is the difference between the other two. x, y, and z are all integers. >>> diff(5, 3, 2) 5 3 is 2 True >>> diff(2, 3, 5) 5 3 is 2 True >>> diff(2, 5, 3) 5 3 is 2 True >>> diff(2, 3, 5) 3 5 is 2 True >>> diff(5, 3, 2) 5 2 is 3 True >>> diff(2, 3, 5) 2 3 is 5 True >>> diff(2, 3, 5) False >>> d...
def yk4i(WKvO, LVAh, epBp): if WKvO - LVAh == epBp or LVAh - WKvO == epBp or WKvO - epBp == LVAh or (epBp - WKvO == LVAh) or (epBp - LVAh == WKvO) or (LVAh - epBp == WKvO): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yk4i(WKvO, LVAh, epBp):\n sum = (WKvO + LVAh + epBp) / 2\n return sum == WKvO or sum == LVAh or sum == epBp", "def yk4i(YKHO) -> bool:\n return YKHO.args.diff", "def by6d(WKvO, LVAh):\n return WKvO - LVAh", "def ia5j(o4D3, si3g, Rtnc, ajwV, skBL, mPai):\n rMLb = o4D3 - ajwV\n jNBy = si3...
[ "0.7679926", "0.64450663", "0.5990593", "0.59784466", "0.5714792", "0.56905305", "0.56558186", "0.56278366", "0.5529979", "0.5492348", "0.54454887", "0.54309905", "0.53863907", "0.5298117", "0.528594", "0.52667546", "0.5260528", "0.5259372", "0.5242498", "0.5184183", "0.51628...
0.79717505
0
Returns the gradient of the distance function. Note that for the first order, the signed distance function of any shape is fully expressed by the closet point to the border. The gradient is simply the normalized vecor pointing towards or away from that point depending on whether we are outside or inside of the shape. T...
def UqHS(YKHO, WKvO): EARX = WKvO - YKHO.closest_point(WKvO) Zihr = -1.0 if YKHO.is_inside(WKvO) else 1.0 return Zihr * EARX / u5Ow(EARX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chog(WKvO, hLRM):\n EARX = (WKvO.T - hLRM).T\n return EARX / u5Ow(EARX)", "def C6PX(YKHO, WKvO):\n finE = (WKvO - YKHO.center).ravel()\n return finE if finE.norm() == 0 else finE / finE.norm()", "def eUlf(YKHO, eHNT: Callable, WKvO: np.ndarray) -> oyIN.ndarray:\n return (YKHO.gradient_f or Y...
[ "0.6735633", "0.6661758", "0.65948343", "0.6593056", "0.6543429", "0.6534424", "0.65029544", "0.64970785", "0.6436987", "0.64344364", "0.64344364", "0.63824135", "0.63718605", "0.6355428", "0.63431025", "0.6339406", "0.63017946", "0.63003576", "0.6294723", "0.6273588", "0.622...
0.6835012
0
Returns the hessian of the distance function.
def YXLg(YKHO, WKvO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PUxS(EcVT=None, XcU5=None):\n return -oyIN.dot(EcVT.T, oyIN.dot(XcU5, EcVT))", "def PUxS(amiz, Pnha):\n LVAh = Pnha.get_label()\n return 1.0 / oyIN.power(oyIN.cosh(amiz - LVAh), 2)", "def IrHh(YKHO):\n C7Ls, Fg_i = YKHO.graph.get_hessian()\n return (C7Ls.toarray(), Fg_i)", "def Mq9I(YKHO, ...
[ "0.7676823", "0.75265753", "0.74714154", "0.74589217", "0.7397679", "0.7321647", "0.7191376", "0.7126223", "0.71075565", "0.6977758", "0.6879958", "0.6842469", "0.678896", "0.67570436", "0.6753311", "0.6751911", "0.670982", "0.6645955", "0.66428804", "0.6626616", "0.6617449",...
0.78622216
0
Returns the hessian of the distance function to a point
def vN6I(WKvO, hLRM): EARX = (WKvO.T - hLRM).T GpHA = 1.0 / u5Ow(EARX) return GpHA * oyIN.eye(WKvO.size) - GpHA ** 3 * oyIN.outer(EARX, EARX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXLg(YKHO, WKvO):\n raise NotImplementedError()", "def PUxS(amiz, Pnha):\n LVAh = Pnha.get_label()\n return 1.0 / oyIN.power(oyIN.cosh(amiz - LVAh), 2)", "def PUxS(amiz, Pnha):\n LVAh = Pnha.get_label()\n return (-oyIN.log1p(amiz) + oyIN.log1p(LVAh) + 1) / oyIN.power(amiz + 1, 2)", "def PU...
[ "0.78866047", "0.71827805", "0.7099147", "0.70385873", "0.7003211", "0.69125867", "0.6837497", "0.6647295", "0.65535957", "0.64167726", "0.64123404", "0.64098555", "0.6360885", "0.6351457", "0.63502777", "0.63230664", "0.632007", "0.6230178", "0.6206399", "0.6191914", "0.6190...
0.8168959
0
Returns false if any of the component of the vector is smaller or bigger than the lower and top corner of the box respectively
def EDs6(YKHO, WKvO): yRE3 = YKHO.lower_corner() YOR7 = YKHO.upper_corner() xuug = WKvO.shape == (2,) or WKvO.shape == (3,) ROpF = 1 if xuug else (WKvO.shape[1], WKvO.shape[2]) bJYl = oyIN.full(ROpF, True) for G1Hx in range(WKvO.shape[0]): bJYl = oyIN.where(oyIN.logical_or(WKvO[G1Hx] < y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dSBn(YKHO, FlUN):\n for YRbF in range(len(YKHO.bounds)):\n if FlUN[YRbF][0] < YKHO.bounds[YRbF][0] or FlUN[YRbF][1] > YKHO.bounds[YRbF][1]:\n return False\n return True", "def vX_r(jNOo, FlUN):\n if FlUN[0][0] < jNOo[0] < FlUN[1][0] and FlUN[1][1] < jNOo[1] < FlUN[0][1]:\n r...
[ "0.7808541", "0.7449364", "0.7449364", "0.7377001", "0.7149638", "0.7129573", "0.7094852", "0.7086616", "0.7080524", "0.70785886", "0.7046259", "0.7007351", "0.692795", "0.6900159", "0.688473", "0.68577915", "0.6852498", "0.684888", "0.68458796", "0.68348587", "0.6833361", ...
0.0
-1
Returns the signed distance (SD) to a cylinder shape; negative inside and positive outside. This function is paralleized, meanning that if called on an array (2 or 3, n, n) it will return a matrix of SDField.
def ew2Z(YKHO, WKvO): assert WKvO.size == 3 return u5Ow((WKvO[:2].T - YKHO.origin[:2]).T) - YKHO.radius
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zokm(YKHO):\n aUJK = YKHO.radar.fields[YKHO.name_dz]['data']\n HGCR = YKHO.radar.fields[YKHO.name_dr]['data']\n veDp = YKHO.radar.fields[YKHO.name_kd]['data']\n pKiF, QD2k, yGTL = y1R9.calc_dsd(dz=aUJK, zdr=HGCR, kdp=veDp, band=YKHO.band, method='2009')\n YKHO.add_field_to_radar_object(pKiF, fie...
[ "0.57192355", "0.5649343", "0.54606223", "0.54560184", "0.5390275", "0.538674", "0.53720737", "0.5349286", "0.5342046", "0.5328975", "0.53087103", "0.53079426", "0.52926815", "0.52906793", "0.52722687", "0.52613264", "0.52260095", "0.5225056", "0.51850206", "0.5171626", "0.51...
0.0
-1
Mesh grid definition matches the one in the PixelMap class Note that it is only defined for squared boxes. simply takes as input the number of points which corresponds to the number of cells for the PixelMap
def mWKm(YKHO, hZqr=100): assert YKHO.dim[0] == YKHO.dim[1] B1Wx = YKHO.dim[0] / hZqr xx9t = YKHO.extent() wBZN = xx9t.x_min + 0.5 * B1Wx re6M = xx9t.x_max - 0.5 * B1Wx KDmU = xx9t.y_min + 0.5 * B1Wx rwK9 = xx9t.y_max - 0.5 * B1Wx WKvO = oyIN.linspace(wBZN, re6M, hZqr) LVAh = oyIN.li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, glpy, sA0R, Kphd):\n YKHO.h = (Kphd - sA0R) / (glpy - 1)\n WKvO = oyIN.linspace(sA0R, Kphd, glpy)\n super(D09q, YKHO).__init__(WKvO)", "def pzDV(YKHO):\n Rv0k = YKHO.size\n NPOo = Rv0k // 2\n DDhU = Rv0k // 2\n WKvO, LVAh = oyIN.meshgrid(oyIN.arange(0, Rv0k) - oyIN.floor(float...
[ "0.6981154", "0.6977575", "0.69312936", "0.6907688", "0.6900968", "0.6875997", "0.6822596", "0.68025", "0.6801731", "0.67314506", "0.6727313", "0.6727313", "0.6727313", "0.6709518", "0.66994256", "0.6696304", "0.66832024", "0.6683202", "0.6679177", "0.6679177", "0.66665316", ...
0.69333804
2
Samples a workspace randomly composed of nb_circles the radius parameter specifies the max fraction of workspace diagonal used for a circle radius.
def uovq(Jgs1, jDO8=0.15, NOi7=1, OufZ=1): HUs2 = lnpD(ptKf(dim=[NOi7, OufZ])) KsTk = jDO8 * HUs2.box.diag() fLvd = 0.5 * jDO8 * HUs2.box.diag() HUs2.obstacles = [None] * Jgs1 for YRbF in range(Jgs1): hgjH = HUs2.box.sample_uniform() r1VO = (KsTk - fLvd) * oyIN.random.rand() + fLvd ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G57F(Jgs1):\n eKGI = oyIN.random.rand(Jgs1, 2)\n MEia = oyIN.random.rand(Jgs1)\n return list(zip(eKGI, MEia))", "def FIsD(_IjS, UsDa, Rv0k=512, Y1Ps=3000):\n dIng = oyIN.zeros((Rv0k, Rv0k))\n ectM = 0\n tFxX = oyIN.zeros((Y1Ps,))\n kZ6R = 0\n for P2GO in range(Y1Ps):\n Mkmy = o...
[ "0.69041705", "0.6426511", "0.63771546", "0.6172744", "0.61677474", "0.61295354", "0.5914842", "0.59105504", "0.5848745", "0.58281744", "0.58272856", "0.5822792", "0.58019036", "0.5754253", "0.570936", "0.56847346", "0.5673628", "0.5671789", "0.56710255", "0.5590676", "0.559"...
0.83488125
0
Return the number of slices associated with this Redshift result. Redshift UNLOAD creates on object per "slice" of the cluster. We might want to iterate over that, so this get the count of them.
def TGAk(YKHO): return len(YKHO.cell_manifest['part_urls'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pd7Q(YKHO):\n nPrm, bGrB = YKHO.run_query(Xc_P, fetch=True)\n try:\n aALo = nPrm[0][0]\n except IndexError:\n print('Could not derive number of slices of Redshift cluster.')\n return aALo", "def aALo(YKHO) -> int:\n return YKHO.parsed['sSliceArray']['lSize']", "def aALo(YKHO) -...
[ "0.76297766", "0.68022823", "0.6686801", "0.6532581", "0.6256796", "0.6256796", "0.61006016", "0.60515606", "0.5972819", "0.5942277", "0.5913432", "0.58976173", "0.5883817", "0.58787185", "0.5861341", "0.58495265", "0.58469945", "0.58423406", "0.5841874", "0.58398765", "0.583...
0.6218169
6
Creates a column transformer for the chosen tabular preprocessors
def WgYu(YKHO, EcVT: Dict[str, Any], LVAh: Any=None) -> 'TabularColumnTransformer': YKHO.check_requirements(EcVT, LVAh) EWEq = 'drop' ij6v = 'drop' D5KA = bnPn(EcVT) if len(EcVT['numerical_columns']): EWEq = TkMt(*D5KA['numerical']) if len(EcVT['categorical_columns']): ij6v = TkM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B4Jy(nPrm: DataFrame, reDz: int) -> AzJI[oMl1, x1iM[str], x1iM[str], x1iM[str]]:\n Aif4, hbgP = QCfN.get_categorical_cols(nPrm, reDz)\n opg8 = QCfN.get_numerical_cols(nPrm)\n vdyA = zBcB(strategy='mean')\n unz_ = Y0rt(steps=[('simple_imputer', zBcB(strategy='most_frequent')), ('one_hot_encoder', RH...
[ "0.63105255", "0.59938735", "0.5934915", "0.5902313", "0.56927735", "0.56810594", "0.5663548", "0.5608376", "0.5594271", "0.557378", "0.55706275", "0.55630726", "0.5507006", "0.55000645", "0.5482114", "0.54603815", "0.53965986", "0.53703755", "0.5364303", "0.53632677", "0.535...
0.5792743
4
Returns True if this process matches the string. See px_process_test.test_match() for the exact definition of how the matching is done.
def kUBT(YKHO, vIwR, BGTw=True): if vIwR is None: return True if YKHO.username == vIwR: return True if not BGTw: if YKHO.username.startswith(vIwR): return True if vIwR in YKHO.cmdline: return True if vIwR in YKHO.cmdline.lower(): return True if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kUBT(YKHO, vIwR: Text) -> bool:\n YKHO._m_session.next()\n return ue_N(YKHO, vIwR)", "def kUBT(YKHO, KCHu):\n return bool(ZbWC.search(YKHO.expr, KCHu.strip()))", "def JATT(YKHO, uI27: str) -> bool:\n if not uI27:\n return True\n if uI27 in YKHO._matches:\n return True\n for ...
[ "0.7299423", "0.7183547", "0.71499395", "0.70870143", "0.6816022", "0.6810301", "0.67942387", "0.6745078", "0.66214716", "0.6504238", "0.6482062", "0.6396889", "0.6359306", "0.6336467", "0.6315138", "0.63062793", "0.6242357", "0.62346673", "0.6207174", "0.6206756", "0.6190784...
0.6597672
9
Test that tags returned for user
def IARo(YKHO): uDCI = egNl().objects.create_user('other@weller.com', 'testpass') OhYN.objects.create(user=uDCI, name='Fruity') TZ9E = OhYN.objects.create(user=YKHO.user, name='Comfort Food') Ylbp = YKHO.client.get(ebJ5) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.assertEqual(len(Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GhmM(YKHO):\n uDCI = egNl().objects.create_user('user1@user.com', 'Test123#')\n TZ9E = OhYN.objects.create(user=YKHO.user, name='tag-1')\n OhYN.objects.create(user=uDCI, name='tag-2')\n Ylbp = YKHO.client.get(V1ts)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(...
[ "0.812512", "0.8017606", "0.7980732", "0.793896", "0.79285586", "0.7910356", "0.7890973", "0.7887962", "0.7881344", "0.7878649", "0.779482", "0.77636987", "0.77026707", "0.753255", "0.74137175", "0.7407089", "0.7349539", "0.7284364", "0.722194", "0.7192085", "0.7116979", "0...
0.78728664
10
Test that user can create a tag
def yRRA(YKHO): pB3N = {'name': 'TestTag'} YKHO.client.post(ebJ5, pB3N) vtfo = OhYN.objects.filter(user=YKHO.user, name=pB3N['name']).exists() YKHO.assertTrue(vtfo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AQZV(YKHO, smPF, Onn9, DW23, mUrV, I8Xd, FhOY):\n Vq3K = u82X.create(can_create_tags=w9kv.ORG_ADMINS, owner_org=mUrV['standalone'])\n _hkX = Onn9[I8Xd].post(gxEw('tag-list'), data={'name': 'FOO', 'tag_class': Vq3K.pk})\n assert _hkX.status_code == (201 if FhOY else 403)", "def FDpy(YKHO):\n pass"...
[ "0.8362395", "0.8108622", "0.8103418", "0.80203974", "0.80048966", "0.7942463", "0.7919429", "0.7871367", "0.78664494", "0.7853949", "0.7848487", "0.7845245", "0.7825375", "0.7812111", "0.7775082", "0.777288", "0.7739361", "0.77275515", "0.77198267", "0.7678564", "0.7613468",...
0.7832567
12
Test that invalid tags cant be created
def q6oT(YKHO): pB3N = {'name': ''} Ylbp = YKHO.client.post(ebJ5, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pRdW(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ebJ5, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def WvHB(YKHO):\n ZzrS = ls4T()\n Ol8d = \"Error trying to insert a tag: please choose a tag from <a rel='noopener' target='_blank' href='https://github.co...
[ "0.8268161", "0.8171883", "0.81592524", "0.81314105", "0.8127189", "0.81029665", "0.80879706", "0.8079837", "0.8065712", "0.806096", "0.79794884", "0.79315555", "0.7858273", "0.7858021", "0.77925336", "0.7688217", "0.7631509", "0.7565952", "0.75527775", "0.75457346", "0.74607...
0.8207259
1
Constructor should leave to load yaml file.
def as4H(YKHO) -> None: GPtr = PSrQ() RSZh(GPtr, [None, None, None, None, None, None, None, None, None, None])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, azvK):\n YKHO.config = eJb6.load(open(azvK, 'r'))", "def FIMM(YKHO):\n import yaml\n YKHO.yaml = yaml", "def f9B0(YKHO, Ux0P):\n raise NotImplementedError()", "def FIMM(YKHO, SGPW=None, J_Es=None):\n YKHO.dct = None\n YKHO.yaml_source = SGPW\n YKHO.anytree = None\n YKHO...
[ "0.8355404", "0.80659616", "0.79782563", "0.7791785", "0.7788394", "0.7747922", "0.7683893", "0.76265407", "0.7609131", "0.75717986", "0.7530788", "0.7530788", "0.7497776", "0.74760807", "0.7408685", "0.7397854", "0.73731613", "0.72904193", "0.7283369", "0.72717303", "0.72252...
0.0
-1
Return a tuple of (python_dependencies, system_dependencies) for the collection install path given. Both items returned are a list of dependencies.
def y2f_(pmON): hyGP = vVVl(pmON) BpRX = hyGP.get_dependency('python') JYbi = [] if BpRX: JYbi = mn7m(Hy7s.path.join(pmON, BpRX)) U5dL = hyGP.get_dependency('system') FcvY = [] if U5dL: FcvY = Qyd0(Hy7s.path.join(pmON, U5dL)) return (JYbi, FcvY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ERJ(YKHO):\n return YKHO.name_convert_deps_list(xcko.deps_from_pyp_format(YKHO.archive.find_list_argument('install_requires'), runtime=True))", "def UxtD(YKHO):\n fUpG = YKHO._pkg.CurrentVer\n if fUpG is None:\n return []\n return YKHO._getDependencies(fUpG)", "def SMAd(YKHO) -> AzJI['D...
[ "0.6895375", "0.66156536", "0.6584652", "0.6562231", "0.65480554", "0.63901746", "0.6387865", "0.6386661", "0.6353448", "0.6340905", "0.6338803", "0.62717766", "0.626254", "0.6246869", "0.6205742", "0.6203965", "0.6181585", "0.61747205", "0.61627537", "0.6160625", "0.61555344...
0.7253516
0
Pass in a string and trys to convert to float. If it fails it will return False else True.
def PkBx(YKHO, vIwR): try: float(vIwR) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e5f3(YKHO, vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def NfmA(KCHu):\n try:\n float(KCHu)\n except ValueError:\n return False\n return True", "def e5f3(vIwR):\n try:\n float(vIwR)\n except ValueError:\n ...
[ "0.8468804", "0.8378199", "0.83467007", "0.82761747", "0.82761747", "0.82643783", "0.82533956", "0.8245919", "0.8230716", "0.8226503", "0.82018715", "0.8181614", "0.81711924", "0.81445014", "0.8132099", "0.8097868", "0.8097868", "0.8097868", "0.8097868", "0.80443895", "0.8019...
0.8226252
10
Validate the on_get method returns 200 on success
def HHtO(YKHO, d4y1): Aofo = d4y1.simulate_get('/api/v1.0/configdocs', headers=BJsk.AUTH_HEADERS) assert Aofo.status_code == 200 assert Aofo.text == qQXR.dumps(BJsk.str_responder(), default=str) assert Aofo.headers['content-type'] == 'application/json'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GjxN(YKHO, bD7m, *qIxc, **B2fa):\n geh0 = YKHO.get(bD7m, *qIxc, **B2fa)\n YKHO.response_200(geh0)\n return geh0", "def GjxN(YKHO, bD7m, *qIxc, **B2fa):\n geh0 = super(Xe_x, YKHO).get(bD7m, *qIxc, **B2fa)\n YKHO.response_200(geh0)\n return geh0", "def KTc0(YKHO):\n return YKHO.get_succe...
[ "0.79636526", "0.7857247", "0.7762263", "0.75987214", "0.75245214", "0.75245214", "0.75245214", "0.749336", "0.749336", "0.749336", "0.749336", "0.749336", "0.74361914", "0.74361914", "0.74361914", "0.74361914", "0.74361914", "0.74361914", "0.74361914", "0.74361914", "0.74361...
0.0
-1
Validate the on_get method returns 200 on success
def z7Da(YKHO, d4y1): Aofo = d4y1.simulate_get('/api/v1.0/configdocs/coll1', headers=BJsk.AUTH_HEADERS) assert Aofo.status_code == 200
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GjxN(YKHO, bD7m, *qIxc, **B2fa):\n geh0 = YKHO.get(bD7m, *qIxc, **B2fa)\n YKHO.response_200(geh0)\n return geh0", "def GjxN(YKHO, bD7m, *qIxc, **B2fa):\n geh0 = super(Xe_x, YKHO).get(bD7m, *qIxc, **B2fa)\n YKHO.response_200(geh0)\n return geh0", "def KTc0(YKHO):\n return YKHO.get_succe...
[ "0.7963706", "0.78572553", "0.77639097", "0.7598098", "0.75239706", "0.75239706", "0.75239706", "0.7492485", "0.7492485", "0.7492485", "0.7492485", "0.7492485", "0.74357206", "0.74357206", "0.74357206", "0.74357206", "0.74357206", "0.74357206", "0.74357206", "0.74357206", "0....
0.0
-1
Tests the post collection method of the ConfigdocsResource
def KL2_(YKHO): SAs9.set_override('deployment_version_create', 'Skip', 'validations') B0gN = None EZ2Z = 'trees' P4Tn = 'lots of info' with Po4F.object(AQh6, 'add_collection') as liu6: tKrx = kkJv() B0gN = AQh6(JRIE) tKrx.post_collection(helper=B0gN, collection_id=EZ2Z, docum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x04o(YKHO):\n pass", "def hOsr(YKHO):\n YEnM = YKHO.model.objects.get(slug=YKHO.slug)\n M0Js = {'identifier': 'test0001', 'name': 'Test Name', 'repository': YEnM.id, 'publication_status': FYrf.Collection.DRAFT}\n for Jyyj in ['date_set', 'otherformofname_set']:\n M0Js['%s-INITIAL_FORMS' % ...
[ "0.7271049", "0.72287965", "0.7150955", "0.68120015", "0.6762616", "0.66938114", "0.66162986", "0.66114664", "0.65456474", "0.65343213", "0.6533196", "0.64486533", "0.6443307", "0.64025515", "0.6399475", "0.6384239", "0.63716406", "0.63145596", "0.62602484", "0.62427264", "0....
0.83693224
0
Tests the post collection method of the ConfigdocsResource
def URex(YKHO): SAs9.set_override('deployment_version_create', 'Skip', 'validations') B0gN = None EZ2Z = 'trees' P4Tn = 'lots of info' with trZe.raises(zRcu) as uO8T: tKrx = kkJv() B0gN = AQh6(JRIE) tKrx.post_collection(helper=B0gN, collection_id=EZ2Z, document_data=P4Tn) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KL2_(YKHO):\n SAs9.set_override('deployment_version_create', 'Skip', 'validations')\n B0gN = None\n EZ2Z = 'trees'\n P4Tn = 'lots of info'\n with Po4F.object(AQh6, 'add_collection') as liu6:\n tKrx = kkJv()\n B0gN = AQh6(JRIE)\n tKrx.post_collection(helper=B0gN, collection_i...
[ "0.83694714", "0.727349", "0.7230935", "0.71521646", "0.68120706", "0.6763901", "0.6696606", "0.6616818", "0.66106856", "0.6548609", "0.6535441", "0.65351486", "0.64493394", "0.64452285", "0.6401999", "0.6401297", "0.6384035", "0.63715243", "0.63156855", "0.62597495", "0.6243...
0.6229106
25
Tests the post collection method of the ConfigdocsResource
def P_Sq(YKHO): SAs9.set_override('deployment_version_create', 'Skip', 'validations') B0gN = None EZ2Z = 'trees' P4Tn = 'lots of info' with Po4F.object(AQh6, 'add_collection') as liu6: tKrx = kkJv() B0gN = AQh6(JRIE) with trZe.raises(zRcu) as uO8T: tKrx.post_colle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KL2_(YKHO):\n SAs9.set_override('deployment_version_create', 'Skip', 'validations')\n B0gN = None\n EZ2Z = 'trees'\n P4Tn = 'lots of info'\n with Po4F.object(AQh6, 'add_collection') as liu6:\n tKrx = kkJv()\n B0gN = AQh6(JRIE)\n tKrx.post_collection(helper=B0gN, collection_i...
[ "0.83697796", "0.7272116", "0.7230412", "0.6813435", "0.67626625", "0.66943955", "0.6616871", "0.6611323", "0.65464675", "0.6534332", "0.6533898", "0.64491975", "0.6442696", "0.64040446", "0.64001954", "0.6383256", "0.63709486", "0.63165945", "0.62612855", "0.6242323", "0.623...
0.71523327
3
Tests the post collection method of the ConfigdocsResource
def nKtH(YKHO): SAs9.set_override('deployment_version_create', 'eRRoR', 'validations') B0gN = None EZ2Z = 'trees' P4Tn = 'lots of info' tKrx = kkJv() B0gN = AQh6(JRIE) with trZe.raises(zRcu) as uO8T: tKrx.post_collection(helper=B0gN, collection_id=EZ2Z, document_data=P4Tn) assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KL2_(YKHO):\n SAs9.set_override('deployment_version_create', 'Skip', 'validations')\n B0gN = None\n EZ2Z = 'trees'\n P4Tn = 'lots of info'\n with Po4F.object(AQh6, 'add_collection') as liu6:\n tKrx = kkJv()\n B0gN = AQh6(JRIE)\n tKrx.post_collection(helper=B0gN, collection_i...
[ "0.83697796", "0.7272116", "0.7230412", "0.71523327", "0.6813435", "0.67626625", "0.66943955", "0.6616871", "0.6611323", "0.65464675", "0.6534332", "0.6533898", "0.64491975", "0.6442696", "0.64040446", "0.64001954", "0.6383256", "0.63709486", "0.63165945", "0.62612855", "0.62...
0.6129836
33
Tests the post collection method of the ConfigdocsResource
def rfq1(YKHO): SAs9.set_override('deployment_version_create', 'warnING', 'validations') B0gN = None EZ2Z = 'trees' P4Tn = 'lots of info' with Po4F.object(AQh6, 'add_collection') as liu6: tKrx = kkJv() B0gN = AQh6(JRIE) jGRS = tKrx.post_collection(helper=B0gN, collection_id=E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KL2_(YKHO):\n SAs9.set_override('deployment_version_create', 'Skip', 'validations')\n B0gN = None\n EZ2Z = 'trees'\n P4Tn = 'lots of info'\n with Po4F.object(AQh6, 'add_collection') as liu6:\n tKrx = kkJv()\n B0gN = AQh6(JRIE)\n tKrx.post_collection(helper=B0gN, collection_i...
[ "0.83693224", "0.7271049", "0.72287965", "0.7150955", "0.68120015", "0.6762616", "0.66938114", "0.66162986", "0.66114664", "0.65456474", "0.65343213", "0.6533196", "0.64486533", "0.6443307", "0.6399475", "0.6384239", "0.63716406", "0.63145596", "0.62602484", "0.62427264", "0....
0.64025515
14
Tests the post collection method of the ConfigdocsResource
def r1nJ(YKHO): SAs9.set_override('deployment_version_create', 'iNfO', 'validations') B0gN = None EZ2Z = 'trees' P4Tn = 'lots of info' with Po4F.object(AQh6, 'add_collection') as liu6: tKrx = kkJv() B0gN = AQh6(JRIE) jGRS = tKrx.post_collection(helper=B0gN, collection_id=EZ2Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KL2_(YKHO):\n SAs9.set_override('deployment_version_create', 'Skip', 'validations')\n B0gN = None\n EZ2Z = 'trees'\n P4Tn = 'lots of info'\n with Po4F.object(AQh6, 'add_collection') as liu6:\n tKrx = kkJv()\n B0gN = AQh6(JRIE)\n tKrx.post_collection(helper=B0gN, collection_i...
[ "0.83694714", "0.727349", "0.7230935", "0.71521646", "0.6763901", "0.6696606", "0.6616818", "0.66106856", "0.6548609", "0.6535441", "0.65351486", "0.64493394", "0.64452285", "0.6401999", "0.6401297", "0.6384035", "0.63715243", "0.63156855", "0.62597495", "0.62430966", "0.6237...
0.68120706
4
Tests the post collection method of the ConfigdocsResource
def utle(YKHO): SAs9.set_override('deployment_version_create', 'SKip', 'validations') B0gN = None EZ2Z = 'trees' P4Tn = 'lots of info' with Po4F.object(AQh6, 'add_collection') as gfym, Po4F.object(kkJv, '_validate_deployment_version') as B73A: tKrx = kkJv() B0gN = AQh6(JRIE) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KL2_(YKHO):\n SAs9.set_override('deployment_version_create', 'Skip', 'validations')\n B0gN = None\n EZ2Z = 'trees'\n P4Tn = 'lots of info'\n with Po4F.object(AQh6, 'add_collection') as liu6:\n tKrx = kkJv()\n B0gN = AQh6(JRIE)\n tKrx.post_collection(helper=B0gN, collection_i...
[ "0.83697796", "0.7272116", "0.7230412", "0.71523327", "0.6813435", "0.67626625", "0.66943955", "0.6616871", "0.6611323", "0.65464675", "0.6534332", "0.6533898", "0.64491975", "0.6442696", "0.64040446", "0.64001954", "0.6383256", "0.63709486", "0.63165945", "0.6242323", "0.623...
0.62612855
19
Generate a random filename.
def SD3U(Xt49=64): bo34.debug('_gen_filename(%s)', Xt49) return ''.join([tuKI.choice(vIwR.ascii_letters) for bGrB in range(Xt49)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qUV2():\n Si_B = tuKI.getrandbits(32)\n return '.random_%s' % Si_B", "def GK7x(YKHO):\n dISJ = qcWV.datetime.now().strftime('%Y%m%d%H%M%S')\n return '%s%s' % (dISJ, str(tuKI.randrange(1000, 10000)))", "def HXID(KAOR, Ux0P):\n return 'photos/%s-%s' % (''.join((tuKI.choice(vIwR.ascii_letters +...
[ "0.8973338", "0.8783047", "0.8500939", "0.8441316", "0.8427566", "0.84011316", "0.825116", "0.82504654", "0.8088068", "0.8082006", "0.79709613", "0.7884939", "0.786132", "0.78137124", "0.7811055", "0.7794826", "0.7791121", "0.7765229", "0.77623904", "0.77280456", "0.77221215"...
0.82586294
6
Converts the matplotlib plot specified by 'figure' to a PNG image and returns it. The supplied figure is closed and inaccessible after this call.
def lsxx(JI1i): LaVg = xDSY.BytesIO() JI1i.savefig(LaVg, format='png') LaVg.seek(0) LNo8 = ZylS.image.decode_png(LaVg.getvalue(), channels=4) LNo8 = ZylS.expand_dims(LNo8, axis=0) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsxx(JI1i):\n LaVg = xDSY.BytesIO()\n QrM1.savefig(LaVg, format='png', dpi=200)\n QrM1.close(JI1i)\n LaVg.seek(0)\n LNo8 = ZylS.image.decode_png(LaVg.getvalue(), channels=4)\n LNo8 = ZylS.expand_dims(LNo8, 0)\n return LNo8", "def lsxx(JI1i):\n LaVg = xDSY.BytesIO()\n QrM1.savefig(L...
[ "0.7816733", "0.78152263", "0.7795127", "0.77016735", "0.76722866", "0.7656375", "0.7647617", "0.7640511", "0.7615489", "0.7615489", "0.7615489", "0.7615489", "0.7615489", "0.7614239", "0.7587228", "0.7587228", "0.7587228", "0.75696874", "0.7568947", "0.75521624", "0.75421804...
0.7750032
3
creates new data frame based on previous observation
def Ujri(nPrm, YUjG, Crrw=False): G68k = [] for YRbF in range(len(nPrm) - YUjG): if Crrw: try: G68k.append(nPrm.iloc[YRbF + YUjG].as_matrix()) except AttributeError: G68k.append(nPrm.iloc[YRbF + YUjG]) else: KQOt = nPrm.iloc[YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QNdO(qIxc, FeC_=True):\n jQ3Z = qIxc.query1\n PC2s = rLdf.to_datetime(jQ3Z['date']).sort_values()\n if PC2s is None:\n raise Exception('Model must be fit before this can be used.')\n t5BG = PC2s.max()\n w4Sv = qIxc.steps_to_predict\n YdD0 = rLdf.bdate_range(start=t5BG, periods=w4Sv + 1...
[ "0.64512295", "0.63111013", "0.6110729", "0.595968", "0.59454215", "0.5939336", "0.5901699", "0.58999175", "0.58978635", "0.589644", "0.5879617", "0.5802377", "0.5754314", "0.57488906", "0.5744484", "0.5744234", "0.5739523", "0.5738645", "0.5709993", "0.56524706", "0.5651131"...
0.0
-1
Skeleton of email validation. Included for completion only. We should really use a thirdparty validator (such as Django's).
def Bt7w(D3lj): jneN = ZbWC.compile('[^@]+@[^@]+') if not jneN.match(D3lj): raise IZLB()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TuBt(YKHO):\n D3lj = str(YKHO.email_address)\n D3lj = D3lj.replace(' ', '')\n ffuP = ZbWC.search('^[a-z]+[._]?[a-z0-9]+[@]\\\\w+[.]\\\\w+[.]?\\\\w{2,3}$', D3lj)\n N7sD = D3lj.find('<')\n ksBp = D3lj.find('>')\n uWrF = D3lj.find('[')\n sbXL = D3lj.find(']')\n hcyD = D3lj[N7sD + 1:ksBp]\n...
[ "0.7997052", "0.7894461", "0.7537892", "0.75297177", "0.74853575", "0.7421076", "0.7371776", "0.7114118", "0.711391", "0.7104161", "0.7103198", "0.7055005", "0.7006071", "0.6985787", "0.69451547", "0.69451547", "0.69363", "0.69328517", "0.6918237", "0.6905751", "0.68692815", ...
0.0
-1
Returns the hashed password, prepended by a salt. If a salt is given, it is used. Otherwise, a random one is generated.
def DjAE(KaGP, NTfD=None): if NTfD is None: dBuj = vIwR.letters + vIwR.digits NTfD = ''.join((tuKI.choice(dBuj) for YRbF in Ni9Y(bkcb._salt_len))) if len(NTfD) != bkcb._salt_len: raise ValueError('Salt of unexpected size: {0}'.format(len(NTfD))) MKlR = bkcb(NTfD + hqsM(NTfD + KaGP).h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xPb7(jTXt, NTfD):\n lpha = len(NTfD) / 2\n jTXt = NTfD[:lpha] + jTXt + NTfD[lpha:]\n jTXt = fY9n(xORj(jTXt).digest()).strip()\n return jTXt", "def I83C():\n return ''.join((chr(tuKI.randint(33, 127)) for bGrB in Ni9Y(64)))", "def vhgk(jTXt, NTfD):\n return B2KD(jTXt + NTfD).hexdigest()", ...
[ "0.7742547", "0.7558581", "0.74040204", "0.73913074", "0.73785543", "0.73589015", "0.7344483", "0.73077476", "0.72390133", "0.7206245", "0.7205915", "0.71695197", "0.7156255", "0.71116644", "0.7094198", "0.7080954", "0.7056033", "0.7043052", "0.7043052", "0.69891304", "0.6972...
0.6680682
45
Get webdriver for firefox.
def Kb0w(): zu0L = cSpz.Firefox() return zu0L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z2H3():\n Uj_T = cSpz.Firefox()\n Uj_T.maximize_window()\n return Uj_T", "def zSYI(YKHO):\n YKHO.driver = cSpz.Firefox(executable_path=XBop().install())\n return YKHO.driver", "def OMWp(YKHO):\n E_qD = cSpz.Firefox()\n E_qD.implicitly_wait(30)\n return E_qD", "def DbxN():\n E_q...
[ "0.8349713", "0.8056007", "0.8029143", "0.742856", "0.7376307", "0.72481245", "0.7242498", "0.7235515", "0.70889485", "0.7030629", "0.7023273", "0.69908625", "0.6890605", "0.67880446", "0.6754967", "0.6713542", "0.6689629", "0.6614747", "0.66108423", "0.6531759", "0.65095824"...
0.79234475
3
Get webdriver for chrome.
def F4Aa(): zu0L = cSpz.Chrome() return zu0L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSxB() -> cSpz.Chrome:\n return cSpz.Chrome()", "def aDzh(YKHO):\n E_qD = cSpz.Chrome(executable_path=Hy7s.environ.get('EXECUTABLE_PATH'))\n E_qD.get(YKHO.url)\n return E_qD", "def eB7L(YKHO):\n YKHO.driver = cSpz.Chrome(executable_path=JQMo().install())\n return YKHO.driver", "def t8iy...
[ "0.8151181", "0.7787903", "0.77623", "0.7627564", "0.76264185", "0.7603735", "0.7567145", "0.7561601", "0.7383502", "0.7229599", "0.72157747", "0.7149866", "0.7111555", "0.7105306", "0.70873475", "0.70103985", "0.69618374", "0.69429326", "0.69277424", "0.6913037", "0.6882322"...
0.7858227
1
performs union on list of lists
def mmTm(nPrm): return list(set().union(*nPrm))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4Iy(Ef6H):\n P6bq = []\n for KCHu in Ef6H:\n if KCHu != None:\n P6bq.extend(KCHu)\n return P6bq", "def mIqn(*qIxc: list) -> set:\n return set().union(*qIxc)", "def zk73(zznG, Wd5v):\n Hvvh = set(zznG).union(set(Wd5v))\n return Hvvh", "def b65I(nwEZ):\n xbui = set(e...
[ "0.8047228", "0.77862304", "0.7684283", "0.7617899", "0.7561321", "0.75083095", "0.7359394", "0.73328245", "0.7308982", "0.7285782", "0.7233228", "0.7191242", "0.7156028", "0.71549934", "0.70573574", "0.7052685", "0.7005307", "0.6946132", "0.689627", "0.6831539", "0.6784167",...
0.8191268
0
infers the dtype of the resultant column when the given column, 'colname' of input dataframes, 'dfs' are appended together
def QWv1(K2kF, Qg73): m1c7 = [jQ3Z.get_dtype(Qg73) for jQ3Z in K2kF if Qg73 in jQ3Z.columns] return GmUl(m1c7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aa4Y(K2kF, inyq, vcZl):\n if len(K2kF) < 1:\n raise ValueError('dfs: input is empty!')\n if len(K2kF) != len(inyq):\n raise ValueError(\"add_null_column_and_type_cast: length of 'dfs' and 'is_frov_df' differ!\")\n echN = JTUU(K2kF, vcZl)\n FQd5 = oyIN.sum(echN) == 4\n if FQd5:\n ...
[ "0.687382", "0.6250536", "0.6153014", "0.61346", "0.6133222", "0.6024001", "0.60103804", "0.59219843", "0.5865792", "0.5862814", "0.58512336", "0.5820007", "0.5807341", "0.57828116", "0.57434624", "0.5725877", "0.5720046", "0.5715178", "0.56869555", "0.5686849", "0.56447357",...
0.77979755
0
checks name and types of columns of each dataframes in 'dfs', returns False, in case any one of them if found to be inconsistent, otherwise returns True.
def JTUU(K2kF, vcZl): Zw42 = oyIN.asarray([jQ3Z.index.name if jQ3Z.has_index() else None for jQ3Z in K2kF]) SCsK = oyIN.all(Zw42 == Zw42[0]) MH8B = oyIN.asarray([jQ3Z.index.dtype if jQ3Z.has_index() else None for jQ3Z in K2kF]) QPvY = oyIN.all(MH8B == MH8B[0]) uZXU = True i5RD = True for Z9r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xm7W(K2kF, AAHb) -> bool:\n if type(K2kF) is not list:\n K2kF = [K2kF]\n if type(AAHb) is not list:\n AAHb = [AAHb]\n for jQ3Z in K2kF:\n _WTL = set(AAHb)\n PxOp = set(jQ3Z.columns)\n ezF6 = _WTL - PxOp\n if ezF6 is not None and len(ezF6) != 0:\n fo...
[ "0.77362275", "0.741645", "0.7327914", "0.7244391", "0.7170236", "0.7091469", "0.702445", "0.6925186", "0.6881895", "0.6782056", "0.6732128", "0.6724189", "0.6631411", "0.6550236", "0.64536834", "0.6370401", "0.63453794", "0.6282593", "0.6266892", "0.6247903", "0.62349355", ...
0.79266405
0
Registers the `google.appengine.api.lib_config`_ ``ConfigHandle`` and returns its settings as a ``dict``.
def U3Xl(Emd4, **B2fa): Z9rn = {} GPtr = Emd4.get_config(**B2fa) for H5ew in GPtr._defaults: Z9rn[H5ew] = GPtr.__getattr__(H5ew) return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO: EnvPool) -> cuzp[str, ImMB]:\n return dict(zip(YKHO._spec._config_keys, YKHO._spec._config_values))", "def h0xJ():\n return dict(auth_method=GPtr.AUTH_METHOD, enable_user_registration=GPtr.ENABLE_USER_REGISTRATION)", "def iPNW(YKHO, GPtr):\n pass", "def qgQo():\n YvvE = PSrQ.get_al...
[ "0.6029273", "0.602597", "0.5985681", "0.5922132", "0.5830456", "0.5676614", "0.5674212", "0.56503606", "0.5643905", "0.56416374", "0.56416374", "0.5626523", "0.56112415", "0.5572333", "0.55028814", "0.55024624", "0.5490441", "0.5474579", "0.5458013", "0.54475355", "0.5443497...
0.0
-1
Resets the model with the best weight
def OWfQ(YKHO, ephx): for H5ew, C3ST in YKHO.networks.items(): if YKHO.config['networks'][H5ew]['trainable']: _mSQ = ephx[H5ew] _mSQ = {G1Hx: _mSQ[G1Hx] for G1Hx in _mSQ if G1Hx in C3ST.state_dict()} C3ST.load_state_dict(_mSQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMkV(C3ST):\n if hasattr(C3ST, 'reset_parameters'):\n C3ST.reset_parameters()", "def UMkV(YKHO):\n pass", "def UMkV(YKHO):\n\n def fAZZ(r8hN):\n if hasattr(r8hN, 'reset_parameters'):\n r8hN.reset_parameters()\n YKHO.model.apply(fAZZ)\n return", "def FaSl(YKHO):\n ...
[ "0.7570868", "0.74850863", "0.74716926", "0.7355228", "0.72853416", "0.72401404", "0.72066987", "0.7119328", "0.7108211", "0.706628", "0.70482904", "0.7003456", "0.6945351", "0.6945351", "0.6945351", "0.6945351", "0.6935322", "0.6935322", "0.69294137", "0.6928172", "0.6918182...
0.65511274
39
Resets the model with the best weight
def O6Mv(YKHO, ZD_x): OE44 = ht2j.load(ZD_x) ephx = OE44['state_dict'] y58L = OE44['opt_state_dict'] pF84 = OE44['opt_crit_state_dict'] H5Sa = OE44['sch_state_dict'] eh0G = OE44['sch_crit_state_dict'] for H5ew, C3ST in YKHO.networks.items(): if YKHO.config['networks'][H5ew]['trainabl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMkV(C3ST):\n if hasattr(C3ST, 'reset_parameters'):\n C3ST.reset_parameters()", "def UMkV(YKHO):\n pass", "def UMkV(YKHO):\n\n def fAZZ(r8hN):\n if hasattr(r8hN, 'reset_parameters'):\n r8hN.reset_parameters()\n YKHO.model.apply(fAZZ)\n return", "def FaSl(YKHO):\n ...
[ "0.7570868", "0.74850863", "0.74716926", "0.7355228", "0.72853416", "0.72401404", "0.72066987", "0.7119328", "0.7108211", "0.706628", "0.70482904", "0.7003456", "0.6945351", "0.6945351", "0.6945351", "0.6945351", "0.6935322", "0.6935322", "0.69294137", "0.6928172", "0.6918182...
0.0
-1
Returns a Curried version of a two argument function func. >>> from operator import add >>> x = lambda_curry2(add) >>> y = x(3) >>> y(5) 8
def BPeJ(JfyU): """*** YOUR CODE HERE ***""" return kZw3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BPeJ(JfyU):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return lambda WKvO: lambda LVAh: JfyU(WKvO, LVAh)", "def BPeJ(JfyU):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return lambda LVAh: lambda WKvO: JfyU(WKvO, LVAh)", "def aDRM(*Vsly: Any, **Z23b: Any) -> ImMB:\n return iezF(*qIxc + Vsly, **dict(B2...
[ "0.8448605", "0.84001005", "0.7498462", "0.73091507", "0.7282562", "0.7042812", "0.696254", "0.6936291", "0.67783856", "0.61910784", "0.619089", "0.61577886", "0.61403245", "0.6082303", "0.6070659", "0.6060842", "0.6024559", "0.589897", "0.5815444", "0.57580453", "0.57141787"...
0.80456436
2
Returns a function that is itself a higher order function
def n2fR(Dyub, EmyI, IxvY): """*** YOUR CODE HERE ***"""
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BRRQ(JfyU):\n return oXX5(MlYu.functools.partial, lSki, JfyU)", "def BRRQ(JfyU):\n\n def iezF(*qIxc, **B2fa):\n return JfyU(qIxc, **B2fa)\n return iezF", "def BRRQ(eHNT):\n\n def OiU7(WKvO):\n\n def EmyI(LVAh):\n return eHNT(WKvO, LVAh)\n return EmyI\n return ...
[ "0.686708", "0.6843147", "0.6768439", "0.67209864", "0.6637316", "0.66252285", "0.66043895", "0.65982985", "0.6509319", "0.6488611", "0.6488611", "0.6470897", "0.64611024", "0.6460412", "0.6443428", "0.642418", "0.6418928", "0.638297", "0.63810354", "0.6361467", "0.63261086",...
0.0
-1
Returns lists of nonunique elements in a sortable list.
def Du9B(input): PwWw = set() S2wa = set() for LihS in input: if LihS in PwWw and LihS not in S2wa: S2wa.add(LihS) PwWw.add(LihS) return S2wa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vaOw(YKHO, zXzD):\n Aofo = []\n PwWw = set()\n for ZfUD in zXzD:\n if not ZfUD in PwWw:\n PwWw.add(ZfUD)\n Aofo.append(ZfUD)\n return Aofo", "def kcwm(Ty9i: Iterable) -> list:\n P6bq = []\n for WKvO in Ty9i:\n if WKvO not in P6bq:\n P6bq.append...
[ "0.6883839", "0.67036104", "0.6678207", "0.66613925", "0.6631546", "0.6594335", "0.6588495", "0.65209115", "0.65209115", "0.6496326", "0.6476574", "0.645618", "0.645388", "0.64520276", "0.64520276", "0.6441696", "0.643202", "0.6423085", "0.64221525", "0.6418714", "0.63794225"...
0.0
-1
Return a version of this context with admin flag set.
def MRKc(YKHO, mK4e=None, f2Tp=False): QpfX = YKHO.deepcopy() QpfX.is_admin = True if 'admin' not in QpfX.roles: QpfX.roles.append('admin') if mK4e is not None: QpfX.read_deleted = mK4e return QpfX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rdLF(gaZx=False):\n QpfX = K1Ja(None, project=None, is_admin=True, show_deleted=gaZx, overwrite=False)\n return QpfX", "def dp9S(YKHO):\n return YKHO._admin", "def dp9S(YKHO):\n return YKHO._admin", "def zy8Y(gaZx=False, tvN0=False):\n QpfX = K1Ja(user_id=None, project=None, is_admin=True,...
[ "0.768672", "0.7685361", "0.76731634", "0.7217049", "0.7091192", "0.7048387", "0.7003764", "0.69737977", "0.69119495", "0.6684111", "0.6684111", "0.6684111", "0.6684111", "0.6684111", "0.6642681", "0.6597024", "0.6579088", "0.6511053", "0.65077657", "0.6490477", "0.6474092", ...
0.61156374
52
Get the coordinates of the corners of a bounding box from the min/max values.
def TuBp(MPlV: tuple[str, ...], fgwV: list[Number] | ArrayLike, PLdg: list[Number] | ArrayLike) -> qHOR: fgwV = YHjr(fgwV) PLdg = YHjr(PLdg) if len(fgwV) not in (2, 3): raise ValueError('bounding box must be 2D or 3D') if len(fgwV) == 2: assert len(MPlV) == 2 return qHOR([[fgwV[0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYZu(YKHO):\n if not YKHO.coordinates:\n Uiz0('Failed to find any coordinates in %s' % YKHO)\n return None\n _lJB = YKHO.coordinates[0].copy()\n XtcD = YKHO.coordinates[0].copy()\n for ZMlM in YKHO.coordinates:\n _lJB.setToMin(ZMlM)\n XtcD.setToMax(ZMlM)\n return (_lJ...
[ "0.779278", "0.7674555", "0.7632851", "0.75952905", "0.7532774", "0.7480671", "0.74503815", "0.74434966", "0.74426585", "0.7417588", "0.74106854", "0.74005187", "0.7389849", "0.7343302", "0.73212606", "0.73087084", "0.7297454", "0.7257264", "0.72485214", "0.7216189", "0.72068...
0.7302956
16
Get all corners of a bounding box in the intrinsic coordinates of an element.
def Te4g(U6D_: SpatialElement, MPlV: tuple[str, ...], fgwV: list[Number] | ArrayLike, PLdg: list[Number] | ArrayLike, DGkF: str) -> tuple[JNmu, tuple[str, ...]]: from spatialdata.transformations import get_transformation fgwV = YHjr(fgwV) PLdg = YHjr(PLdg) t6K1 = get_transformation(U6D_, to_coordinate_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVnl(X7zS, Rusy=(0, 1)):\n return oyIN.array(list(Hs6x.product(X7zS[:2], X7zS[2:4], X7zS[4:] or Rusy)))", "def pmnP(ROpF, rnv5):\n E330, p0HN, a4DC = ROpF\n E330 -= 1\n p0HN -= 1\n a4DC -= 1\n FlUN = oyIN.array([[0.0, 0, 0, 1], [E330, 0, 0, 1], [0, p0HN, 0, 1], [0, 0, a4DC, 1], [E330, p0HN,...
[ "0.6915818", "0.68289036", "0.6746915", "0.67371225", "0.67079335", "0.6649707", "0.66376257", "0.66305673", "0.6623701", "0.65691245", "0.65451044", "0.6538275", "0.6535842", "0.64958376", "0.64950246", "0.64896387", "0.648569", "0.6481882", "0.6463395", "0.6457383", "0.6425...
0.66714716
5
Deletes a full backup. You cannot delete automatic backups using this API.
def i7UE(YKHO, RjST, **B2fa): JFat = '/backups/{backupId}' NKcE = 'DELETE' HoOA = ['retry_strategy', 'if_match'] YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA] if YXyZ: raise ValueError('delete_backup got unknown kwargs: {!r}'.format(YXyZ)) IatV = {'backupId': RjST} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7UE(LWEy=None, uEPf=None):\n pass", "def Rly6(YKHO, JKMw):\n if isinstance(JKMw, QMSQ):\n JKMw = YKHO.clients('trove').backups.get(JKMw)\n else:\n pass\n na1r.debug('Deleting backup: [%s: %s]' % (JKMw.name, JKMw.id))\n YKHO.clients('trove').backups.delete(JKMw)\n BfDw.wait_fo...
[ "0.7243198", "0.69634014", "0.6780192", "0.66938853", "0.6606564", "0.6593789", "0.65511215", "0.65265226", "0.64789194", "0.64408517", "0.64121765", "0.6408662", "0.63368845", "0.6331946", "0.63024664", "0.62766886", "0.6273781", "0.62214106", "0.6213804", "0.62005585", "0.6...
0.5149657
47
Creates and downloads a wallet for the specified Autonomous Database.
def ckl9(YKHO, MVCV, SQrt, **B2fa): JFat = '/autonomousDatabases/{autonomousDatabaseId}/actions/generateWallet' NKcE = 'POST' HoOA = ['retry_strategy', 'opc_request_id', 'opc_retry_token'] YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA] if YXyZ: raise ValueError('generate_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YsGx(YKHO, MVCV, **B2fa):\n JFat = '/autonomousDatabases/{autonomousDatabaseId}/wallet'\n NKcE = 'GET'\n HoOA = ['retry_strategy', 'opc_request_id']\n YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA]\n if YXyZ:\n raise ValueError('get_autonomous_database_wallet got unknow...
[ "0.63236314", "0.62519944", "0.62323356", "0.62005126", "0.59255606", "0.5750894", "0.5745428", "0.57405764", "0.57309073", "0.571344", "0.5693935", "0.5682991", "0.5666864", "0.56440055", "0.56405723", "0.5620084", "0.5603534", "0.55998075", "0.55773914", "0.5568691", "0.555...
0.65855247
0
Validates the specified VM cluster network.
def wcc8(YKHO, KAFy, U7yk, **B2fa): JFat = '/exadataInfrastructures/{exadataInfrastructureId}/vmClusterNetworks/{vmClusterNetworkId}/actions/validate' NKcE = 'POST' HoOA = ['retry_strategy', 'opc_request_id', 'opc_retry_token'] YXyZ = [ibDM for ibDM in jKi7.iterkeys(B2fa) if ibDM not in HoOA] if YXy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvKY(Emd4, QQ2d, bxGi, hKn5, Df41=None):\n yf3m = QQ2d.get('cidr', bxGi.cidr)\n H_ex = QQ2d.get('ip_ranges', [(Mkmy.first, Mkmy.last) for Mkmy in bxGi.ip_ranges])\n Tl0b = QQ2d.get('release', bxGi.get('release'))\n if Tl0b != bxGi.get('release'):\n raise UAju.InvalidData('Network release cou...
[ "0.6358715", "0.6191309", "0.6172501", "0.61127096", "0.6078738", "0.58125335", "0.57707757", "0.57434046", "0.57086676", "0.5673798", "0.56677806", "0.5645139", "0.5575715", "0.55526", "0.55450296", "0.55357975", "0.55318093", "0.5504419", "0.5428963", "0.540587", "0.5347189...
0.6880799
0
Return text labels for the FashionMNIST dataset.
def ILRR(Crrw): rTn4 = ['t-shirt', 'trouser', 'pullover', 'dress', 'coat', 'sandal', 'shirt', 'sneaker', 'bag', 'ankle boot'] return [rTn4[int(YRbF)] for YRbF in Crrw]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILRR(Crrw):\n rTn4 = ['t-shirt', 'trouser', 'pullover', 'dress', 'coat', 'sandal', 'shirt', 'sneaker', 'bag', 'ankle boot']\n return [rTn4[int(YRbF)] for YRbF in Crrw]", "def ILRR(Crrw):\n rTn4 = ['t-shirt', 'trouser', 'pullover', 'dress', 'coat', 'sandal', 'shirt', 'sneaker', 'bag', 'ankle boot']\n...
[ "0.788269", "0.788269", "0.788269", "0.7107919", "0.686822", "0.68397975", "0.6725238", "0.6714997", "0.6711535", "0.6702081", "0.6702081", "0.6689332", "0.665735", "0.6617206", "0.65914714", "0.65914714", "0.6510813", "0.6505991", "0.6484292", "0.64840555", "0.6479326", "0...
0.80044043
0
Plot a list of images.
def cPsg(xkjI, NwL4, ulBT, k1TJ=None, NXpY=1.5): wytA = (ulBT * NXpY, NwL4 * NXpY) bGrB, MPlV = QrM1.subplots(NwL4, ulBT, figsize=wytA) MPlV = MPlV.flatten() for YRbF, (aNZO, VXjJ) in enumerate(zip(MPlV, xkjI)): aNZO.imshow(tiDt.numpy(VXjJ)) aNZO.axes.get_xaxis().set_visible(False) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U0xK(Khnv, mWFP):\n wK7l = 9\n LZpg, MPlV = QrM1.subplots(wK7l, wK7l)\n LZpg.subplots_adjust(hspace=0.5, wspace=0.5)\n for YRbF, aNZO in enumerate(MPlV.flat):\n if YRbF >= len(Khnv):\n break\n aNZO.imshow(Khnv[YRbF])\n aNZO.set_xticks([])\n aNZO.set_yticks([])...
[ "0.79204726", "0.78599036", "0.7746442", "0.76411104", "0.7626449", "0.74846655", "0.7458517", "0.7444317", "0.74378115", "0.74378115", "0.74378115", "0.74378115", "0.74347323", "0.7433808", "0.7421343", "0.7386235", "0.73496294", "0.7334937", "0.73131055", "0.7301013", "0.72...
0.68028504
71
Update token attribute with next token from scanner.
def KcGG(YKHO) -> None: YKHO.token = YKHO.scanner.next_token()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ucSA(YKHO):\n YKHO.__current_token = YKHO.__tokens[YKHO.__token_index]\n YKHO.__token_index += 1", "def ucSA(YKHO):\n YKHO.__cur_token = YKHO.__tokens[YKHO.__cur_token_index]\n YKHO.__cur_token_index += 1", "def RZ97(YKHO):\n YKHO.__cur_token = YKHO.__tokens[YKHO.__i]\n YKHO.__i += 1", ...
[ "0.7279033", "0.71674585", "0.6742078", "0.6690783", "0.6661158", "0.6644757", "0.6644757", "0.6585761", "0.6540084", "0.6523995", "0.64904004", "0.63429534", "0.6244682", "0.6244682", "0.6244682", "0.6173471", "0.6163037", "0.6163037", "0.61164397", "0.60779756", "0.60672516...
0.7757192
0
Splits text into parenthesized statements (outermost parentheses) and unparenthesized statements return List of split strings without parentheses
def IUIs(l5Ny): lpha = [] xwm2 = '' Gl5N = 0 for YRbF in range(0, len(l5Ny)): Ynym = l5Ny[YRbF] if Ynym == '(': Gl5N += 1 if len(xwm2) > 0 and Gl5N == 1: lpha.append(xwm2) xwm2 = '' xwm2 += Ynym if Ynym == ')': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mM6A(yAmx):\n for WKvO in list('()[]{}'):\n yAmx = yAmx.replace(WKvO, '|')\n return [WKvO.strip() for WKvO in yAmx.split('|') if len(WKvO.strip()) > 0]", "def zAOX(l5Ny, wAJt, NWDz='', vDp9='', PenU='\\'\"'):\n nJNG = []\n GuZ9 = dict(((hcXw, 0) for hcXw in NWDz + PenU))\n tmr2 = dict(z...
[ "0.72570777", "0.724806", "0.68636215", "0.6756311", "0.67213255", "0.6643738", "0.66057616", "0.6582766", "0.64548063", "0.64218026", "0.6388703", "0.6360688", "0.63142294", "0.6300057", "0.6290037", "0.62712276", "0.6263419", "0.62312204", "0.6219087", "0.61996305", "0.6181...
0.7799458
0
Getter method for vrf_name, mapped from YANG variable /pim_mcache_state/vrf_name (string)
def snI6(YKHO): return YKHO.__vrf_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y_5m(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(...
[ "0.68290645", "0.68290645", "0.6703787", "0.60025233", "0.5597512", "0.5523355", "0.5142065", "0.5129214", "0.5101385", "0.50154096", "0.4997113", "0.49907228", "0.4869961", "0.4842087", "0.48120758", "0.48055848", "0.4787149", "0.47657946", "0.4765577", "0.4765292", "0.47652...
0.6532933
3
Setter method for vrf_name, mapped from YANG variable /pim_mcache_state/vrf_name (string)
def Y_5m(YKHO, Ty9i, tyeH=False): _AKB = getattr(YKHO, '_parent', None) if _AKB is not None and tyeH is False: raise AttributeError('Cannot set keys directly when' + ' within an instantiated list') if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def omp9(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=jKi7.text_type, is_leaf=True, yang_name='name', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='networkautomation:y...
[ "0.63012195", "0.63012195", "0.6276575", "0.6276575", "0.6276575", "0.6276575", "0.62551266", "0.60747945", "0.59964967", "0.59964967", "0.59964967", "0.59964967", "0.59964967", "0.59964967", "0.59964967", "0.59964967", "0.59964967", "0.59964967", "0.59964967", "0.59964967", ...
0.74130946
0
Getter method for is_w_g, mapped from YANG variable /pim_mcache_state/is_w_g (uint8)
def ktUN(YKHO): return YKHO.__is_w_g
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A7i5(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name='is-w-g', rest_name='is-w-g', parent=YKHO, path_helper=YKHO._path_helper, e...
[ "0.77545744", "0.6158291", "0.565576", "0.5435156", "0.5415716", "0.526752", "0.52203786", "0.5169411", "0.51247853", "0.51247853", "0.5100102", "0.5100102", "0.5055366", "0.5045234", "0.5032179", "0.50175184", "0.5011204", "0.49817076", "0.49706057", "0.49611977", "0.4961122...
0.76186323
1
Getter method for spt, mapped from YANG variable /pim_mcache_state/spt (uint8)
def kldt(YKHO): return YKHO.__spt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BgLB(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name='spt', rest_name='spt', parent=YKHO, path_helper=YKHO._path_helper, extmeth...
[ "0.6822154", "0.5784166", "0.51281524", "0.5108441", "0.5015738", "0.49675992", "0.49624062", "0.48942533", "0.48867407", "0.4849949", "0.48250854", "0.48102942", "0.48087227", "0.48057327", "0.47910136", "0.47660995", "0.47335428", "0.47335428", "0.46634284", "0.46580654", "...
0.63483876
1
Getter method for lsrc, mapped from YANG variable /pim_mcache_state/lsrc (uint8)
def mViH(YKHO): return YKHO.__lsrc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uo92(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name='lsrc', rest_name='lsrc', parent=YKHO, path_helper=YKHO._path_helper, extme...
[ "0.73173755", "0.5266032", "0.5175613", "0.5175613", "0.5073083", "0.498942", "0.49534518", "0.48801488", "0.4854783", "0.48201793", "0.4771636", "0.47489148", "0.4707349", "0.47006008", "0.46874237", "0.4663284", "0.4636797", "0.4618643", "0.4618643", "0.4618643", "0.4575489...
0.6818579
1
Getter method for sp_mode, mapped from YANG variable /pim_mcache_state/sp_mode (uint8)
def siZZ(YKHO): return YKHO.__sp_mode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHd9(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name='sp-mode', rest_name='sp-mode', parent=YKHO, path_helper=YKHO._path_helper,...
[ "0.78697634", "0.64756215", "0.62774855", "0.62702745", "0.61498505", "0.6087993", "0.6078074", "0.5960183", "0.5881827", "0.58601177", "0.5815354", "0.57963264", "0.57940394", "0.5785609", "0.57829297", "0.57780135", "0.575977", "0.5752076", "0.5721963", "0.5712091", "0.5710...
0.74507946
1
Setter method for sp_mode, mapped from YANG variable /pim_mcache_state/sp_mode (uint8)
def hHd9(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name='sp-mode', rest_name='sp-mode', parent=YKHO, path_helper=YKHO._path_helper, extmetho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wo3p(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name='ssm-mode', rest_name='ssm-mode', parent=YKHO, path_helper=YKHO._path_helpe...
[ "0.7195208", "0.6879411", "0.68159825", "0.65119827", "0.6195385", "0.6163474", "0.6038256", "0.5811875", "0.5799948", "0.5793422", "0.57057923", "0.56826603", "0.5665691", "0.55961823", "0.55803156", "0.55792314", "0.5567911", "0.5558363", "0.55580306", "0.55063105", "0.5506...
0.87572443
0
Returns the scroll_timeout value of the ScrollView child.
def TtWo(YKHO): return YKHO._scroll.scroll_timeout
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TtWo(YKHO, BWXx):\n YKHO._scroll.scroll_timeout = BWXx", "def CVKD(YKHO):\n return YKHO._scroll.scroll_distance", "def KIZn(YKHO):\n return YKHO.__timeout", "def KIZn(YKHO):\n return YKHO.__timeout", "def kWoe(YKHO):\n return YKHO._timeout", "def Rv29(YKHO):\n return YKHO.timeout", ...
[ "0.64337975", "0.6255524", "0.62249386", "0.62249386", "0.61935747", "0.6158654", "0.60891813", "0.60512304", "0.60508573", "0.6029197", "0.6022299", "0.6022299", "0.5996928", "0.5996928", "0.5996928", "0.5996928", "0.5996928", "0.5996928", "0.5996928", "0.5996928", "0.599692...
0.80885804
0
Returns the effect_y value of the ScrollView child.
def B86E(YKHO): return YKHO._scroll.effect_y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B86E(YKHO, BWXx):\n YKHO._scroll.effect_y = BWXx", "def wzl3(YKHO):\n return YKHO._scroll.scroll_y", "def cZG0(YKHO):\n return YKHO._scroll.bar_pos_y", "def BBTF(YKHO):\n return YKHO.widget.position[1]", "def ETx3(YKHO):\n return YKHO._scroll.do_scroll_y", "def YEdl(YKHO):\n return ...
[ "0.73542196", "0.66190076", "0.6387985", "0.63652444", "0.62588143", "0.6195527", "0.6104203", "0.6075802", "0.6045266", "0.60380226", "0.60305065", "0.6001478", "0.59955144", "0.59923065", "0.59923065", "0.5982249", "0.59649605", "0.59592664", "0.59303737", "0.58959687", "0....
0.8489371
0
Returns the effect_x value of the ScrollView child.
def d9t9(YKHO): return YKHO._scroll.effect_x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d9t9(YKHO, BWXx):\n YKHO._scroll.effect_x = BWXx", "def W1uy(YKHO):\n return YKHO._scroll.scroll_x", "def zHl9(YKHO):\n return YKHO._scroll.do_scroll_x", "def KYYS(YKHO):\n return YKHO._rendered_pos_x", "def vAgg(YKHO):\n return YKHO.widget.position[0]", "def Aco_(YKHO):\n return YK...
[ "0.7227504", "0.6598358", "0.62500286", "0.61148286", "0.6092955", "0.60499144", "0.60027003", "0.59146345", "0.5873581", "0.5860368", "0.5860368", "0.58265036", "0.58116156", "0.5780425", "0.57702035", "0.57507354", "0.57497925", "0.56966305", "0.56845635", "0.5678516", "0.5...
0.8438167
0
Returns the bar_pos_y value of the ScrollView child.
def cZG0(YKHO): return YKHO._scroll.bar_pos_y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZG0(YKHO, BWXx):\n YKHO._scroll.bar_pos_y = BWXx", "def ZL8V(YKHO):\n return YKHO._scroll.bar_pos", "def BBTF(YKHO):\n return YKHO.widget.position[1]", "def wzl3(YKHO):\n return YKHO._scroll.scroll_y", "def CU0i(YKHO):\n return YKHO.__pos_y", "def IkQz(YKHO):\n return YKHO._positio...
[ "0.77595305", "0.7469157", "0.7116559", "0.71111286", "0.69308966", "0.6908554", "0.6908554", "0.6890728", "0.6824009", "0.6817707", "0.68076956", "0.66601217", "0.6629251", "0.6602428", "0.65205145", "0.6499964", "0.64882255", "0.6473738", "0.6455226", "0.64470994", "0.64274...
0.8606651
0
Converts a dictionary with observed frequencies to normalised probabilities.
def G2hb(m2Vb): wjRY = float(sum(m2Vb.values())) return {G1Hx: Ty9i / wjRY for G1Hx, Ty9i in m2Vb.items()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WErR: Dict[str, float]) -> cuzp[str, float]:\n wjRY = sum(WErR.values())\n return {H5ew: BWXx / wjRY for H5ew, BWXx in WErR.items()}", "def BUia(iaEi):\n wjRY = sum(iaEi.values())\n return {a1PO: iaEi[a1PO] / wjRY for a1PO in iaEi}", "def NkkI(WErR):\n for bGrB, nPrm in WErR.items():\n ...
[ "0.7712519", "0.74688554", "0.74130476", "0.7274837", "0.7225728", "0.7181431", "0.70086986", "0.7002261", "0.69698095", "0.6966095", "0.69609594", "0.69457173", "0.68672884", "0.68644255", "0.6840429", "0.683621", "0.6823605", "0.67999583", "0.6799306", "0.66629255", "0.6655...
0.7119656
6
Creates a new Checkpoint from an existing checkpoint.
def J4ls(YKHO, vauY): YKHO.partition_id = vauY.partition_id YKHO.offset = vauY.offset YKHO.sequence_number = vauY.sequence_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B0wE(YKHO, pmON):\n pmON = pmON.strip('/')\n if not YKHO.file_exists(pmON):\n raise jA2G.HTTPError(404)\n gWlF = YKHO._get_os_path(pmON)\n WMPk = u'checkpoint'\n UUES = YKHO.get_checkpoint_path(WMPk, pmON)\n YKHO.log.debug('creating checkpoint for %s', pmON)\n YKHO._copy(gWlF, UUES)...
[ "0.6797133", "0.6717946", "0.67170364", "0.66676486", "0.6655524", "0.6545572", "0.63600516", "0.63383514", "0.6265797", "0.6252693", "0.6243327", "0.62303907", "0.6161855", "0.61281466", "0.6100292", "0.60328174", "0.59957635", "0.5988743", "0.5943033", "0.59237975", "0.5889...
0.6567512
5
Return the (host, port) tuple for a particular key.
def Q6kx(H5ew): YRbF = g5Ba.crc32(H5ew) % len(yMjJ) return yMjJ[YRbF]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i44Y(YKHO, H5ew):\n if type(H5ew) == int:\n return YKHO.get_port_by_index(H5ew)\n else:\n return YKHO.get_port_by_symbol(H5ew)", "def tHcK(YKHO, hcos):\n H5ew = YKHO.socket.recv(20).decode()\n YKHO.socket.send(str(hcos).encode())\n nUJI = int(YKHO.socket.recv(10))\n YKHO.socke...
[ "0.6381692", "0.60794187", "0.6064142", "0.60525346", "0.60435945", "0.6037632", "0.60279953", "0.5996888", "0.5959635", "0.5939864", "0.58595973", "0.5811703", "0.57983315", "0.579189", "0.5785236", "0.57634205", "0.57535344", "0.5752281", "0.5735543", "0.56809086", "0.56275...
0.0
-1
Convert a number from config format to hex.
def mN3C(FGW3): return apzJ.int_to_hex_string(FGW3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QNxS(BWXx):\n if not isinstance(BWXx, exCv):\n raise ValueError(\"'value' must be %s, not %s\" % (str, type(BWXx)))\n return '{0:0{1}x}'.format(int(BWXx, 16), 16)", "def rkzY(BWXx) -> str:\n return '{:x}'.format(BWXx).zfill(2)", "def ZN1f(exwG):\n if exwG < 16:\n return '0' + '%X'...
[ "0.7054674", "0.69862145", "0.6928071", "0.6851075", "0.6838989", "0.68184686", "0.6815262", "0.6803596", "0.6797094", "0.6795775", "0.6766506", "0.67543477", "0.67400354", "0.6707177", "0.6643788", "0.6586678", "0.65446395", "0.6533725", "0.65285796", "0.6519597", "0.6514094...
0.82836545
0
Transpose matrices to get return trips (internalexternal > externalinternal)
def _pum(r9ud, MCdC): for Hqyb in r9ud: MCdC.matrix_calculator(result='mf' + Hqyb + 'od', expression='mf' + Hqyb + 'dis + mf' + Hqyb + 'dis' + "'")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NrfS(YKHO):\n for YRbF in range(1, 6):\n r8hN = SppC(data=range(YRbF * YRbF))\n for Mkmy in range(YRbF):\n Csk6 = r8hN.get_row(Mkmy)\n YKHO.check_vector(Csk6, range(Mkmy * YRbF, Mkmy * YRbF + YRbF))\n Csk6 = r8hN.get_column(Mkmy)\n YKHO.check_vector(...
[ "0.75742674", "0.73348147", "0.73039746", "0.7275891", "0.7236955", "0.7229631", "0.7201823", "0.7179765", "0.7176434", "0.71071255", "0.71011955", "0.71011955", "0.7080521", "0.70453197", "0.7028024", "0.7026354", "0.7012339", "0.70063394", "0.6989975", "0.6983637", "0.69700...
0.0
-1
Reduce the environment value at current position, unless the agent is full. If agent stores over 100 units, throw up (add to the environment) and skip eating at this step
def RZ97(YKHO): if YKHO.store > 100: YKHO.environment[YKHO.y][YKHO.x] += YKHO.store YKHO.store = 0 elif YKHO.environment[YKHO.y][YKHO.x] > 10: YKHO.environment[YKHO.y][YKHO.x] -= 10 YKHO.store += 10 else: YKHO.store += YKHO.environment[YKHO.y][YKHO.x] YKHO.env...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RZ97(YKHO):\n while YKHO.store <= 100:\n if YKHO.environment[YKHO.y][YKHO.x] > 10:\n YKHO.environment[YKHO.y][YKHO.x] -= 10\n YKHO.store += 10\n return YKHO.store\n else:\n YKHO.store += YKHO.environment[YKHO.y][YKHO.x]\n YKHO.environment[...
[ "0.6719024", "0.6301274", "0.62924767", "0.6104554", "0.5937465", "0.583415", "0.5765263", "0.56229997", "0.5612615", "0.5541522", "0.5524888", "0.5498799", "0.5479368", "0.5465811", "0.5415197", "0.5412444", "0.5396089", "0.53860533", "0.5352037", "0.5350948", "0.53456813", ...
0.69645995
0
In the case that the tag requested does not exist, rather than raise Http404, set self.object to None. get_context_data and the template deal with this case appropriately.
def NMoC(YKHO, QePW, *qIxc, **B2fa): try: YKHO.object = YKHO.get_object() except uhgT: YKHO.object = None QpfX = YKHO.get_context_data(object=YKHO.object) return YKHO.render_to_response(QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tCbc(YKHO, **B2fa):\n QpfX = super(YEq8, YKHO).get_context_data(**B2fa)\n QpfX['tag'] = YKHO.kwargs.get('slug')\n return QpfX", "def jrJy(YKHO, QePW, QpfX):\n YKHO.new_location = 'tag__{0}'.format(YKHO.t.pk)\n super().process_context(QePW, QpfX)", "def AMX5(YKHO, QePW, Tj3G):\n return Iof...
[ "0.66137326", "0.6403248", "0.6221473", "0.61724323", "0.61446476", "0.61446476", "0.6070688", "0.5971811", "0.5850835", "0.5804611", "0.5754711", "0.57546103", "0.57433397", "0.5734709", "0.566213", "0.5641404", "0.56284803", "0.55394226", "0.54786724", "0.5447201", "0.54069...
0.60398704
7
Get the virtual type.
def MMy_(YKHO): return 'KVM'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ODYR(YKHO):\n return YKHO.__v_type", "def type(YKHO):\n return YKHO.types[YKHO._internal.get_type()]", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def FRul(YKHO):\n return YKHO.p_type", "def FRul(YKHO):\n return YKHO.__type", "def FRul(YKHO):\n return YKHO.__type", "def FR...
[ "0.71948785", "0.66984254", "0.6686082", "0.667756", "0.66616714", "0.66616714", "0.66590095", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405", "0.6651405",...
0.64738435
67
Get the NetDevice instance of specified VF.
def xYIm(YKHO, c1FD): for c5nC in YKHO.host_dut.ports_info: if 'vfs_port' in c5nC.keys(): for bIwZ in c5nC['vfs_port']: if c1FD == bIwZ.pci: return bIwZ return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OTrW(BDAm, mTmQ, t0qN, L3WJ=True):\n YEnM = A8VZ(BDAm, ei4T.vif.VIFHostDevice, port_profile=mTmQ, plugin=t0qN, dev_address=BDAm['profile']['pci_slot'], dev_type=ei4T.fields.VIFHostDeviceDevType.ETHERNET)\n if L3WJ and BDAm['network']['bridge'] is not None:\n YEnM.network.bridge = BDAm['network']['...
[ "0.633045", "0.5689641", "0.54638463", "0.5403286", "0.5398629", "0.53652906", "0.5309161", "0.52390444", "0.52284896", "0.52055764", "0.5200193", "0.51887983", "0.51771635", "0.5140984", "0.51365155", "0.5130522", "0.5127762", "0.5088269", "0.507879", "0.5078761", "0.5068577...
0.5457005
3
Returns True if all of the conditions match
def yG9s(*iPqd): def GfdN(): for Z9rn in iPqd: if not Z9rn(): return False return True return GfdN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfdN(YKHO, LU8G, S4M2, CRsh):\n if not LU8G:\n return True\n for WiO8 in LU8G:\n if isinstance(WiO8, exCv):\n WiO8 = (WiO8,)\n if all([YKHO._check(ZfUD, S4M2, CRsh) for ZfUD in WiO8]):\n return True\n return False", "def GfdN(YKHO, LU8G, S4M2, CRsh):\n i...
[ "0.7197821", "0.7170281", "0.70025945", "0.69128937", "0.6862448", "0.6852124", "0.6846196", "0.6840131", "0.6829542", "0.6767119", "0.6665793", "0.66513693", "0.66418684", "0.6577424", "0.6563634", "0.6552794", "0.6549011", "0.6412646", "0.6376207", "0.6362596", "0.6344531",...
0.715097
2
The custom ModelForm's `Meta.exclude` is respected by `GenericInlineModelAdmin.get_formset`, and overridden if `ModelAdmin.exclude` or `GenericInlineModelAdmin.exclude` are defined. Refs 15907.
def RI_B(YKHO): class MediaForm(Hk5i): class Meta: C3ST = Dua8 DNHh = ['url'] class MediaInline(SYk5): DNHh = ['description'] L03z = uCjb C3ST = Dua8 class EpisodeAdmin(dp9S.ModelAdmin): hfF4 = [GQsy] fHeP = rE1Y(aqVO, YKHO.site) YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q95t(YKHO):\n\n class MediaForm(Hk5i):\n\n class Meta:\n C3ST = Dua8\n DNHh = ['url']\n\n class MediaInline(SYk5):\n Eeme = ['description']\n L03z = uCjb\n C3ST = Dua8\n\n class EpisodeAdmin(dp9S.ModelAdmin):\n hfF4 = [GQsy]\n fHeP = rE1Y(aqV...
[ "0.75818735", "0.6961711", "0.67730474", "0.6694206", "0.6694206", "0.6374457", "0.63116354", "0.61209404", "0.6087814", "0.6067074", "0.6050609", "0.5874482", "0.567677", "0.56156087", "0.558977", "0.5557609", "0.55570924", "0.55525976", "0.55506456", "0.55325556", "0.553104...
0.8223486
0
Check for localadmin privs. Checked by view all services for sc_manager_all_access
def m9nt(YKHO): try: nvo_ = k7RZ.dcerpc.v5.transport.SMBTransport(YKHO.host, 445, '\\svcctl', smb_connection=YKHO.smbconn) xyzv = nvo_.get_dce_rpc() xyzv.connect() try: G9jH.debug('localadmin Binding start') xyzv.bind(k7RZ.dcerpc.v5.scmr.MSRPC_UUID_SCMR) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4un() -> bool:\n return gk2W.windll.shell32.IsUserAnAdmin() == 1", "def nqo9(YKHO):\n if YKHO.group_profile_id.name == 'Admin Profile' and (not YKHO.has_full_sysadmin_access):\n raise Warning(bGrB('Cannot uncheck `Full Sysadmin Access` for users with Admin Profile. An Admin user always has `Ful...
[ "0.67316735", "0.6697484", "0.66117543", "0.6591138", "0.6445353", "0.6436028", "0.6435342", "0.6435342", "0.6435342", "0.6424916", "0.6352163", "0.63451254", "0.6297695", "0.629494", "0.62926954", "0.6286632", "0.62783635", "0.6267731", "0.6267731", "0.62348396", "0.6232057"...
0.71353155
0
Chose a random color and a random number from the color and number choices
def tuKI(YKHO): YKHO.number = tuKI.choice(YKHO._NUMBER_CHOICE) YKHO.color = tuKI.choice(YKHO._COLOR_CHOICE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pph3():\n return tuKI.choice(F4JO)", "def Q1j8():\n return ajWY(0, oIn1 - 1)", "def pph3():\n Z5Q9 = tuKI.random()\n jlxe = tuKI.random()\n pPPK = tuKI.random()\n return (Z5Q9, jlxe, pPPK)", "def igEX():\n return (ajWY(40, 200), ajWY(40, 200), ajWY(40, 200))", "def Q5jr():\n Mkm...
[ "0.7905379", "0.7774117", "0.7578753", "0.7482567", "0.7407462", "0.7406348", "0.727781", "0.72421324", "0.72313327", "0.7218073", "0.71760666", "0.71723133", "0.7135083", "0.7123524", "0.71188945", "0.7112115", "0.7105226", "0.7101325", "0.7052559", "0.7026749", "0.7022984",...
0.7545727
3
convert long int to dotted quad string
def SMAU(exwG): Csk6 = 256 * 256 * 256 vexM = [] while Csk6 > 0: r8hN, exwG = divmod(exwG, Csk6) vexM.append(str(r8hN)) Csk6 = Csk6 / 256 return '.'.join(vexM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RET5(YKHO, FGW3):\n return GGmw.inet_ntoa(BlNT.pack('<L', FGW3))", "def UsEz(Csk6):\n if abs(Csk6) < 10 ** 5:\n return str(Csk6)\n aioF = str(abs(Csk6))\n w520 = len(aioF) - 1\n return ('-' if Csk6 < 0 else '') + aioF[0] + '.' + aioF[1:6] + 'e+' + str(w520)", "def u8hB(gmTb):\n byt...
[ "0.7234016", "0.6894243", "0.65509564", "0.64925814", "0.6470008", "0.6439816", "0.6371944", "0.6359865", "0.6337081", "0.63302696", "0.6307359", "0.6300033", "0.61775523", "0.6170327", "0.6167215", "0.61133444", "0.6111373", "0.6093402", "0.6072571", "0.6064372", "0.6045474"...
0.6530728
3
Returns whether the command is activated or not.
def ksfB(YKHO): B0gN = uleV() if YKHO.message: jGRS = B0gN.command_is_active(YKHO.message.chat, YKHO.name[1:]) return jGRS return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b27A(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'activate')", "def K_r6(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'activated')", "def K_r6(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'activated')", "def K_r6(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return...
[ "0.7512418", "0.7497881", "0.74374175", "0.74374175", "0.7429952", "0.7429952", "0.7300732", "0.71145767", "0.7049519", "0.7047549", "0.6968911", "0.6968911", "0.6968911", "0.6968911", "0.6968911", "0.6968911", "0.6968911", "0.6968911", "0.6968911", "0.6968911", "0.6968911", ...
0.7653239
0
Chunks text if length exceeds Telegrams character limit. Returns list of chunks.
def yOAJ(YKHO, l5Ny): BcCR = 4096 j34H = int(len(l5Ny) / BcCR + 1) if j34H > 0: eHxA = [] WKvO = 0 for YRbF in range(j34H): eHxA.append(l5Ny[BcCR * WKvO:BcCR * (WKvO + 1)]) WKvO += 1 return eHxA return [l5Ny]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgfD(l5Ny):\n l5Ny = l5Ny.replace('\\n', '').replace('\\t', '')\n eHxA = []\n Rhv4 = l5Ny.split('.')\n for yAmx in Rhv4:\n if len(yAmx) in range(25, 125):\n eHxA.append('\"{}\"'.format(yAmx))\n elif len(yAmx) < 25:\n cbnA = True\n elif len(yAmx) > 125:\n ...
[ "0.7129072", "0.682768", "0.6698594", "0.6673953", "0.6634062", "0.65990394", "0.65326124", "0.65237963", "0.6510464", "0.61921555", "0.6188523", "0.61558324", "0.606228", "0.60522145", "0.60356086", "0.601005", "0.593215", "0.59183234", "0.59096956", "0.5902972", "0.5887641"...
0.82045466
0
Compute the average precision of each target continuation in `targets` given the playlistsong `scores`. Precisely, we find the cut points where recall increases and compute the precision there. Averaging them gives the mean average precision. The precision at the first cut point is the mean
def rY83(cCrA, x6A0, PJWX=True): if PJWX: print('\tComputing average precision...') x6aZ = [] Wi6e = [] miSy = oyIN.where(oyIN.diff(x6A0.indptr) != 0)[0] WOME = x6A0.shape[0] - len(miSy) if WOME > 0 and PJWX: print("\t\tWarning: 'targets' has {} empty rows. Is that ok?".format(WO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LuSb(x6A0, cCrA):\n p3aO = o0TP(x6A0, cCrA)\n return oyIN.median(p3aO)", "def ZKRe(cCrA, x6A0, CuYV, PJWX=True):\n if PJWX:\n print('\\tComputing precision and recall...')\n rhd_ = {nMvt: [] for nMvt in CuYV}\n AOzf = {nMvt: [] for nMvt in CuYV}\n miSy = oyIN.where(oyIN.diff(x6A0.ind...
[ "0.7591627", "0.72868955", "0.70735836", "0.7030428", "0.7022342", "0.70074", "0.7004762", "0.7003833", "0.6879449", "0.6874304", "0.6870456", "0.680942", "0.67838335", "0.6729448", "0.6717431", "0.67073226", "0.6652517", "0.6594749", "0.65911514", "0.65885305", "0.6580241", ...
0.846166
0
List courses of selected university and department.
def i8S6(QePW, X5CZ, wcLj, lO87, dQwM=True): X5CZ = uRlK.parse.unquote(X5CZ) q_fT = QePW.session.get('unicode') if not q_fT: return vKnz('index:choose_university') nNXP = k7Af(q_fT) if not dQwM: if X5CZ not in [eHNT[0] for eHNT in nNXP.Faculties]: return False if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n G9jH.info(YKHO.request.params)\n nOOD = FYrf.university_key(YKHO.request.get('university'))\n RCCf = nOOD.get()\n if not RCCf:\n YKHO.abort(404, detail='University not found')\n YEnM = []\n CBIr = DW23.get_current_user()\n nPrm = {}\n nPrm['user'] = CBIr.email() if ...
[ "0.6678329", "0.6666067", "0.6565517", "0.6514412", "0.64692163", "0.63851136", "0.6338256", "0.6337178", "0.6306989", "0.63037825", "0.6257222", "0.62334204", "0.6225343", "0.62210983", "0.6203889", "0.61752176", "0.61115736", "0.61112386", "0.60846615", "0.60814", "0.607269...
0.7446869
0
Return a 2d nparray encoding an image after preprocessing. The array is normalized to [0,1] assuming input is from [0,255].
def DZ0a(pmON, Tuqy='L'): Aofo = XTiz.array(hnIv.open(pmON).convert(Tuqy)) if Tuqy == 'L': Aofo = XTiz.expand_dims(Aofo, 0) else: Aofo = XTiz.swapaxes(Aofo, 2, 0) Aofo = Aofo / 255.0 return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fjyB(VXjJ):\n VXjJ = oyIN.expand_dims(VXjJ, axis=0)\n VXjJ = VXjJ / 127.5 - 1\n return VXjJ", "def G2mu(VXjJ: np.ndarray) -> oyIN.ndarray:\n return VXjJ", "def psm6(pKvt):\n pKvt = pKvt.numpy().transpose((1, 2, 0))\n JBMS = oyIN.array([0.485, 0.456, 0.406])\n M1Jx = oyIN.array([0.229, ...
[ "0.7391296", "0.71079177", "0.7096664", "0.7077131", "0.7033347", "0.7033347", "0.7033347", "0.7019611", "0.6936296", "0.6923244", "0.6922489", "0.6898083", "0.68477345", "0.6846539", "0.68448025", "0.6784237", "0.6754528", "0.674954", "0.6744778", "0.671506", "0.6700426", ...
0.0
-1
Return a list of 2d nparrays encoding a list of images.
def fPcm(BTLB, Tuqy='L'): return [DZ0a(VXjJ, Tuqy) for VXjJ in BTLB]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sb8Z(dir):\n e5N9 = []\n for str in dir:\n VXjJ = LNo8.load_img(str, target_size=(128, 128))\n WKvO = LNo8.img_to_array(VXjJ)\n e5N9.append(WKvO)\n U9Z2 = oyIN.array(e5N9)\n del e5N9\n return U9Z2", "def a8Pe(ThLH):\n Yw_3 = []\n ThLH = ThLH.reshape(10000, 3, 32, 32)...
[ "0.7170626", "0.71588224", "0.68391776", "0.6757469", "0.67222416", "0.6712542", "0.6709608", "0.664361", "0.6634192", "0.6631397", "0.65359837", "0.6525485", "0.65224296", "0.65224296", "0.64937556", "0.64873445", "0.64393896", "0.6422898", "0.6410199", "0.6410199", "0.64101...
0.0
-1
Get distance between two points described with latitute and longitude.
def l8Ij(igSk, iT5T, TGuP, JSDM): bD7m = 'http://vldb.gsi.go.jp/sokuchi/surveycalc/surveycalc/bl2st_calc.pl?latitude1={}&longitude1={}&latitude2={}&longitude2={}&ellipsoid=bessel&outputType=json'.format(igSk, iT5T, TGuP, JSDM) Xtmf = 0 while Xtmf <= 10: Aofo = G4JS.get(bD7m) JBvl = Aofo.stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YRrr, CcJL, HTmV, vnyE):\n vqVR = vrq2.cos(YRrr / 180.0 * vrq2.pi)\n WKvO = YRrr - HTmV\n LVAh = (CcJL - vnyE) * vqVR\n return vrq2.sqrt(WKvO * WKvO + LVAh * LVAh) * xJue", "def AcQ8(igSk, PNCc, TGuP, v7YJ):\n return (igSk - TGuP) ** 2 + (PNCc - v7YJ) ** 2", "def tXlz(Y7V5, xMqw, ofRU, ...
[ "0.7906342", "0.7905626", "0.78773695", "0.7750861", "0.7704509", "0.7687413", "0.7676589", "0.7608658", "0.7605283", "0.7563282", "0.7548929", "0.75016266", "0.7495613", "0.74951136", "0.74694705", "0.7466295", "0.74644923", "0.7459267", "0.7445111", "0.74418646", "0.7431721...
0.0
-1
Add a vertex to the graph.
def ohmD(YKHO, oqUi): if oqUi in YKHO.vertices: return YKHO.vertices[oqUi] = set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohm...
[ "0.876498", "0.8674855", "0.8674855", "0.8674855", "0.8674855", "0.8674855", "0.8655163", "0.8531929", "0.842015", "0.84112304", "0.8328189", "0.8269451", "0.8237771", "0.82342374", "0.8208921", "0.8208921", "0.817981", "0.81537074", "0.80292004", "0.8029009", "0.7977791", ...
0.70409906
100
Return a list containing a path from starting_vertex to destination_vertex in depthfirst order.
def K2kF(YKHO, mmUT, RVDX): E5BI = S9Ut() E5BI.push([mmUT]) azXi = set() while E5BI.size() > 0: pmON = E5BI.pop() e2gD = pmON[-1] if e2gD not in azXi: if e2gD == RVDX: return pmON azXi.add(e2gD) for WHgD in YKHO.get_neighbors(e2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K2kF(YKHO, mmUT, RVDX):\n c7pe = {mmUT: None}\n azXi = {mmUT}\n E5BI = S9Ut()\n E5BI.push(mmUT)\n while E5BI.size() > 0:\n jvSB = E5BI.pop()\n if jvSB == RVDX:\n break\n for Ty9i in YKHO.get_neighbors(jvSB):\n if Ty9i not in azXi:\n c7pe[...
[ "0.78847337", "0.7783784", "0.7404306", "0.73785645", "0.7354188", "0.73011875", "0.72949994", "0.72733784", "0.7263815", "0.7223911", "0.7188659", "0.7181115", "0.71477175", "0.71432954", "0.71327394", "0.71116", "0.71055573", "0.7075222", "0.70627594", "0.70490324", "0.7047...
0.7340596
5
Return a unique file path by appending random alphanumeric characters to the given filename, as necesary.
def BNMw(AGPF, Ux0P): Kvd8 = vIwR.ascii_letters + vIwR.digits dZk2 = GkAb(AGPF) m3zO = GkAb(Ux0P) aPr_ = m3zO.stem + '_' Fst3 = m3zO.suffix T3YQ = dZk2 / (aPr_ + Fst3) while T3YQ.exists(): aPr_ += tuKI.choice(Kvd8) T3YQ = dZk2 / (aPr_ + Fst3) return T3YQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuqz(Ux0P):\n return '%s__%s' % (kxTZ(), Ux0P)", "def wOyJ(Ux0P: str) -> str:\n _c1T = qcWV.utcnow().strftime('%Y-%m-%d-%H%M%S')\n aPr_, Fst3 = Ux0P.rsplit('.', 1)\n return '{0}-{1}-{2}.{3}'.format(aPr_, _c1T, str(kxTZ()), Fst3)", "def qUV2():\n Si_B = tuKI.getrandbits(32)\n return '.rand...
[ "0.8196571", "0.814201", "0.8141977", "0.80514556", "0.8015829", "0.7936116", "0.7863588", "0.7829831", "0.7821087", "0.7817557", "0.7811966", "0.77556884", "0.77496713", "0.7730553", "0.7698568", "0.7515255", "0.75065446", "0.75055295", "0.74912184", "0.74502695", "0.7432903...
0.7311955
27
Get label config templates from directory (as usual 'examples' directory)
def oJkP(): from collections import defaultdict, OrderedDict DqlU = defaultdict(list) for YRbF, pmON in enumerate(RASS()): Wxnj = open(pmON).read() try: xbif.fromstring(Wxnj) except Exception as e: bo34.error("Can't parse XML for label config template from " +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oJkP(YKHO):\n RRlC = Fm8B.list_files('./template/config')\n return [{'name': GkAb(nUeQ).stem, 'config': trUu(nUeQ)} for nUeQ in RRlC]", "def kabO() -> str:\n return 'tests/labels.toml'", "def cU6b(xr_q: str):\n p_9N = oAb3.Path(xAKo).resolve()\n DqlU = p_9N.parent / 'templates' / xr_q\n d...
[ "0.6731025", "0.64387196", "0.64002687", "0.61976546", "0.6064236", "0.6046089", "0.60120404", "0.6004149", "0.5989363", "0.59882194", "0.59882194", "0.59882194", "0.598276", "0.59793746", "0.59732676", "0.5947074", "0.59452", "0.5940895", "0.59103316", "0.5910264", "0.590421...
0.70000154
0
List all container groups in a resource group.
def G3pm(x0hE, TRLE=None): if TRLE is None: return x0hE.list() return x0hE.list_by_resource_group(TRLE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Fmd():\n TRFU = []\n ACO7 = {}\n Az5W = {'Action': 'ListGroups'}\n return crPO(TRFU, ACO7, Az5W)", "def _Fmd():\n with zVa7() as nNXP:\n A97Q = nNXP.groups().list_groups()\n tyNF = YJgg(['ID', 'Name'], [iWi5] * 2)\n for Oa1e in A97Q[Crrw.GROUP_LIST]:\n tyNF.add([Oa1e[Crrw....
[ "0.75483567", "0.75477725", "0.7295024", "0.7282393", "0.7160853", "0.7111634", "0.7038611", "0.702396", "0.7009451", "0.70045567", "0.6949552", "0.6919302", "0.69186467", "0.6885582", "0.68717885", "0.68489635", "0.6821008", "0.68196714", "0.67860353", "0.678215", "0.6781323...
0.6233851
75
Initialize a Unet Upconv block.
def FIMM(YKHO, ApQ8, dxEX, _Ycl, dvgN, hr1G, uNRR): super(zgjp, YKHO).__init__() YKHO.up = U78l.Sequential(U78l.Upsample(mode='bilinear', scale_factor=2, align_corners=False), U78l.Conv2d(ApQ8, dxEX, kernel_size=3, padding=int(dvgN), bias=False)) ApQ8 = 2 * dxEX YKHO.conv_block = kMOE(ApQ8, dxEX, _Ycl, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, yIp6: str='conv2D', WFdm: str=None, l7uB: str=None, dBuj: str='max2D'):\n print('Initializing Unet')\n YKHO.transpose = False\n YKHO.up_sample = False\n if l7uB:\n YKHO.expand = q3ZY[l7uB].value\n YKHO.transpose = True\n if WFdm:\n YKHO.expand = xX7u[WFdm].value\n...
[ "0.75148803", "0.702868", "0.69634616", "0.6849295", "0.68229735", "0.67857856", "0.6783233", "0.67822623", "0.67109555", "0.67025685", "0.67025685", "0.67025685", "0.67025685", "0.6692528", "0.66883457", "0.6648777", "0.65591484", "0.6535946", "0.65245557", "0.64748406", "0....
0.79069996
0