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
Converts integer seconds since unix epoch to a string.
def jput(ITS7): return qcWV.fromtimestamp(ITS7).strftime('%Y-%m-%d %H:%M:%S')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S1BX(C6wh):\n import time\n return time.ctime(C6wh)", "def JWNY(a1PO):\n i8WE = ITS7.mktime(a1PO.timetuple())\n return '{}'.format(p6zu(i8WE))", "def _Vy8():\n return int(ITS7.time())", "def qtWj(BWXx):\n if isinstance(BWXx, qcWV.datetime):\n return int(GRk0.timegm(BWXx.timetuple...
[ "0.7763496", "0.75669646", "0.7320496", "0.7123376", "0.7068388", "0.69953847", "0.69455695", "0.68575084", "0.6743077", "0.6740264", "0.67081416", "0.6658527", "0.66203564", "0.6616006", "0.66125506", "0.66107774", "0.65811116", "0.6577285", "0.6569493", "0.64912826", "0.649...
0.0
-1
Returns the current birth count en resets it to 0.
def vpQz(YKHO): UHFx = YKHO.birth_count YKHO.birth_count = 0 return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def twbi(YKHO):\n UHFx = YKHO.death_count\n YKHO.death_count = 0\n return UHFx", "def Kb0M(yvY1):\n return yvY1._n", "def ZJe_(YKHO):\n if YKHO.date_of_birth:\n wzkt = rIAI.now()\n return wzkt.year - YKHO.date_of_birth.year\n return None", "def SsX7(YKHO):\n RZkk = qcWV.dat...
[ "0.69342595", "0.67608", "0.6760256", "0.6757113", "0.6691612", "0.66834444", "0.6560026", "0.65085936", "0.6489702", "0.6489702", "0.64793205", "0.64754045", "0.6447855", "0.64473903", "0.64258575", "0.6412054", "0.64110786", "0.6376778", "0.6375713", "0.63556373", "0.635190...
0.86321115
0
Loads the Iris dataset and splits it into testing and training datasets
def lDrX(dMYj=1): EcVT, fuBA = jEkL(True) return bHtP(EcVT, fuBA, test_size=1 - dMYj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rhr4(YKHO):\n tuKI.seed(58454)\n YKHO.train_x = []\n YKHO.train_y = []\n YKHO.dev_x = []\n YKHO.dev_y = []\n YKHO.test_x = []\n YKHO.test_y = []\n YKHO.splits = []\n for Ux0P in sorted(SC2F.iglob(mVXX + '/*')):\n with open(Ux0P, 'r', encoding='ISO-8859-1') as eZ_W:\n ...
[ "0.7798387", "0.7549179", "0.7444928", "0.74297494", "0.74100393", "0.73134416", "0.72489786", "0.7239684", "0.72175175", "0.72165304", "0.7207213", "0.7196956", "0.71778244", "0.71331567", "0.7107275", "0.7101026", "0.7100713", "0.7064174", "0.70633507", "0.7052133", "0.7045...
0.73805934
5
Plots the line plot of the given data
def O42U(*nPrm, Rwf5=2, UXEK='output.pdf'): LZpg = QrM1.figure(figsize=(30, 10)) for Csk6 in nPrm: QrM1.plot(range(Rwf5, Rwf5 + len(Csk6)), Csk6) QrM1.savefig(UXEK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hx4M(WKvO):\n QrM1.plot(WKvO)", "def Hx4M(YKHO, nPrm):\n if not nPrm:\n print('data for this plot not available')\n return\n else:\n [YKHO.fig_line.removeItem(kj9G) for kj9G in YKHO.line_plots]\n YKHO.line_plots = []\n zFiD = g74T.PlotCurveItem()\n zFiD.setD...
[ "0.8070806", "0.7759444", "0.7452546", "0.7287737", "0.7195989", "0.71932656", "0.7151722", "0.7117949", "0.7116123", "0.7114347", "0.700576", "0.7002308", "0.6986553", "0.6986369", "0.698408", "0.69798076", "0.6968208", "0.69585645", "0.6912103", "0.6905298", "0.6875076", ...
0.7095922
10
Does the melting phase for one cell and returns it.
def dkeq(CG54, yGTL=bBdi, KMvS=BR4e): CG54['d'] = CG54['d'] + yGTL * CG54['b'] + KMvS * CG54['c'] CG54['b'] = (1 - yGTL) * CG54['b'] CG54['c'] = (1 - KMvS) * CG54['c'] return CG54
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PpW8(VmPb):\n return VmPb.tile.get_modificator(VmPb, 'mobility')", "def VmPb():\n pass", "def SIQp(YKHO):\n return YKHO", "def l80C(YKHO, rdlD, fvDH):\n YKHO.value = YKHO.cells[rdlD][fvDH]\n return YKHO.value", "def kGaG(VmPb, VqGH, fAu8, D8Lu, hcXw, Kt_s, JRYC, KCHu=1):\n i8nr = 2.8e...
[ "0.6004605", "0.5668096", "0.56406295", "0.55924195", "0.5554514", "0.5509254", "0.549451", "0.5452081", "0.54520655", "0.53885937", "0.5379886", "0.53670955", "0.53055125", "0.5292239", "0.5281131", "0.52785987", "0.527391", "0.52652663", "0.5239419", "0.5228213", "0.5221844...
0.0
-1
Check that the initial job data is written to the json files.
def PKa4(oCfW): HWYl = False if oCfW.isfile(f'{'signac_job_document.json'}'): HWYl = True return HWYl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mHyf(Emd4):\n if not Hy7s.path.exists(Hy7s.path.dirname(wjbk.JSON_PATH)):\n Hy7s.mkdir(Hy7s.path.dirname(wjbk.JSON_PATH))\n if not Hy7s.path.isfile(wjbk.JSON_PATH):\n print('>>Program data file not detected | generating new object now.')\n nPrm = {'entry_count': 0, 'entry_path': '{}'...
[ "0.72048295", "0.65414137", "0.6470115", "0.6448255", "0.6235375", "0.6198725", "0.6146102", "0.61268204", "0.6102713", "0.6078993", "0.6077364", "0.60356283", "0.6011883", "0.5987578", "0.59818625", "0.59813356", "0.5964125", "0.5958668", "0.5946367", "0.59401065", "0.593646...
0.6830922
1
The histogram xaxis variable (same as xvar)
def NkBi(YKHO): return YKHO.xvar
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EJM3(YKHO):\n return [PI4o.hist_x for PI4o in YKHO.axes]", "def NkBi(YKHO):\n return YKHO['xaxis']", "def XBVn(YKHO, WKvO, dCji, kyIY):\n QrM1.hist(WKvO)\n QrM1.xlabel(dCji)\n QrM1.title(kyIY)\n QrM1.show()", "def ZsPH(YKHO):\n return YKHO._bins[0]", "def AXka(WKvO):\n LZpg, aNZ...
[ "0.6788188", "0.67558545", "0.6588894", "0.647168", "0.64655393", "0.6449879", "0.6268732", "0.62648994", "0.6229182", "0.60999537", "0.60915226", "0.60915226", "0.60827976", "0.603607", "0.6001075", "0.5955949", "0.595521", "0.58844006", "0.58836883", "0.5868244", "0.5867839...
0.7744746
0
Calculates the output shape based on the input shape, kernel size, paddings and strides.
def rG9p(ETfU, kk3m, UP6E=[0, 0, 0], FEri=[1, 1, 1]): lWPh, C7Ls, XcU5 = ETfU OWwh, Mh8E, CRzg = kk3m A7LZ = 1 + (lWPh + 2 * UP6E[0] - OWwh) // FEri[0] XHuv = 1 + (C7Ls + 2 * UP6E[1] - Mh8E) // FEri[1] oRHo = 1 + (XcU5 + 2 * UP6E[2] - CRzg) // FEri[2] return [A7LZ, XHuv, oRHo]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4yo(GhuM, FEri, Gf3K):\n if isinstance(FEri, int):\n FEri = (FEri, FEri)\n f2ba = ZylS.compat.dimension_value(GhuM[1])\n if f2ba is not None:\n f2ba = int(epAf.ceil(f2ba / FEri[0]))\n FNnM = ZylS.compat.dimension_value(GhuM[2])\n if FNnM is not None:\n FNnM = int(epAf.ceil(...
[ "0.7813039", "0.7631983", "0.76185346", "0.75936294", "0.75497735", "0.75220215", "0.7500489", "0.74244195", "0.7422821", "0.73928624", "0.73927814", "0.7381722", "0.7331328", "0.7324854", "0.7324854", "0.73064303", "0.72756404", "0.7258436", "0.7240369", "0.72271806", "0.720...
0.73885435
11
Computes the log of the probability density function of the normal N(mean, cov) for the data x. The normal may be univariate or multivariate. Wrapper for older versions of scipy.multivariate_normal.logpdf which don't support support the allow_singular keyword prior to verion 0.15.0. If it is not supported, and cov is s...
def QF3p(WKvO, JBMS, PFC2, xfO4=True): sfI4 = oyIN.asarray(JBMS).flatten() hFXF = oyIN.asarray(WKvO).flatten() if H3y4: return nSzW.logpdf(hFXF, sfI4, PFC2, xfO4) else: return nSzW.logpdf(hFXF, sfI4, PFC2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cb0j(WKvO, JBMS, PFC2):\n return nSzW.logpdf(WKvO, mean=JBMS, cov=PFC2)", "def I6nD(WKvO, JBMS, jLbF):\n apZK = JBMS.shape[0]\n Jw7X = WKvO - JBMS\n hGGi = Zxt2.linalg.inv(jLbF)\n fOg4 = Zxt2.linalg.det(jLbF)\n OCOs = oyIN.dot(oyIN.dot(Jw7X.T, hGGi), Jw7X) + apZK * oyIN.log(2 * oyIN.pi) + o...
[ "0.8413952", "0.7973339", "0.78450006", "0.7771565", "0.7742634", "0.7716705", "0.76580775", "0.76246357", "0.75928783", "0.7425889", "0.7419479", "0.74151504", "0.7414944", "0.73925996", "0.7367138", "0.73477715", "0.7318821", "0.7318458", "0.73164964", "0.7297251", "0.72919...
0.8786113
0
returns normal distribution (pdf) for x given a Gaussian with the specified mean and variance. All must be scalars. gaussian (1,2,3) is equivalent to scipy.stats.norm(2,math.sqrt(3)).pdf(1) It is quite a bit faster albeit much less flexible than the latter.
def IAWS(WKvO, JBMS, SRYB): return oyIN.exp(-0.5 * (oyIN.asarray(WKvO) - JBMS) ** 2 / SRYB) / epAf.sqrt(2 * epAf.pi * SRYB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qhzd(WKvO, JBMS, WTkW):\n return oyIN.exp(-0.5 * ((WKvO - JBMS) / WTkW) ** 2) / (WTkW * oyIN.sqrt(2.0 * oyIN.pi))", "def IAWS(epBp, JBMS=0, ee6l=None, WTkW=1):\n WTkW = ee6l if ee6l is not None else WTkW\n CkYf = eQSh.norm(loc=JBMS, scale=WTkW)\n kzAT = CkYf.pdf(epBp, loc=JBMS, scale=WTkW)\n r...
[ "0.8031022", "0.78489304", "0.78085697", "0.77602947", "0.77096194", "0.7693132", "0.76570094", "0.7463232", "0.7441848", "0.7430419", "0.74177474", "0.7409235", "0.74009293", "0.7374455", "0.7314554", "0.7313534", "0.7279669", "0.72542554", "0.72119665", "0.71606314", "0.706...
0.740289
12
This is designed to replace scipy.stats.multivariate_normal which is not available before version 0.14. You may either pass in a
def rBuZ(WKvO, yGTL, PFC2): WKvO = oyIN.array(WKvO, copy=False, ndmin=1).flatten() yGTL = oyIN.array(yGTL, copy=False, ndmin=1).flatten() jHsn = len(yGTL) PFC2 = uyYQ(PFC2, jHsn) Mjks = jHsn * epAf.log(2 * epAf.pi) + oyIN.linalg.slogdet(PFC2)[1] XObx = WKvO - yGTL if H4yH.issparse(PFC2): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WGTe(mWFP, JBMS, M1Jx):\n if isinstance(JBMS, list) or (getattr(JBMS, 'is_Matrix', False) and isinstance(M1Jx, list)) or getattr(M1Jx, 'is_Matrix', False):\n from sympy.stats.joint_rv_types import MultivariateNormal\n return MultivariateNormal(mWFP, JBMS, M1Jx)\n return im04(mWFP, W34_, (JB...
[ "0.66935486", "0.6682616", "0.65924895", "0.6434206", "0.64323115", "0.6410123", "0.64090943", "0.6320777", "0.63199645", "0.62396336", "0.6233869", "0.6222069", "0.6209454", "0.6150574", "0.6147925", "0.6125383", "0.60958594", "0.60918576", "0.6052286", "0.6046275", "0.60460...
0.0
-1
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)", "def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,...
[ "0.78404945", "0.7541354", "0.753996", "0.7491138", "0.7434801", "0.74207747", "0.73415834", "0.7320252", "0.7299599", "0.7287539", "0.72799367", "0.72799367", "0.7257735", "0.7226928", "0.72204214", "0.7214909", "0.7214909", "0.7210775", "0.7198222", "0.71639067", "0.7161914...
0.70801866
84
Constructs a ResNet18 model.
def qUH4(mL4f=False, **B2fa): C3ST = NIBq(em1m, [2, 2, 2, 2], **B2fa) if mL4f: oIHg(C3ST, rA0C.load_url(mDCG['resnet18'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v19q(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return C3ST", "def qUH4(mL4f=True, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['res...
[ "0.78036934", "0.73894507", "0.7378036", "0.73664284", "0.7342958", "0.73350024", "0.7325735", "0.7325735", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.729254", ...
0.69189376
34
Constructs a ResNet34 model.
def OwNx(mL4f=False, **B2fa): C3ST = NIBq(em1m, [3, 4, 6, 3], **B2fa) if mL4f: oIHg(C3ST, rA0C.load_url(mDCG['resnet34'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwNx(nZt5=10):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], 2 * nZt5)\n return C3ST", "def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MO...
[ "0.7703386", "0.74675333", "0.74524", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7428298", "0.7427917", "0.7424663", "0.7424663", "0.7407424", "0.73827267", "0.737552", "0.73492414", "...
0.70888406
29
Constructs a ResNet50 model.
def uwZX(mL4f=False, tk5Y='./pretrain_models', **B2fa): C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa) if mL4f: from ..models.model_store import get_model_file C3ST.load_state_dict(ht2j.load(get_model_file('resnet50', root=tk5Y)), strict=False) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def abVM():\n global ResNet50_model\n L9vW = uwZX.ResNet50(weights='imagenet')\n L9vW._make_predict_function()", "def g4bj(YKHO):\n from tensorflow.keras.applications import ResNet50\n rvDU = ResNet50(input_shape=(uwaB.IMAGE_SIZE_EYES, uwaB.IMAGE_SIZE_EYES, 3), include_top=False, weights='imagenet...
[ "0.7942998", "0.7562238", "0.7498587", "0.74903464", "0.748225", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.7474884", "0.74686694", "0.7455879", "0.7455879", "0.7453793", "0.7451919", "0.74174935", "0.7413509", ...
0.7203076
36
Constructs a ResNet152 model.
def hVyu(mL4f=False, **B2fa): C3ST = NIBq(MF6R, [3, 8, 36, 3], **B2fa) if mL4f: oIHg(C3ST, rA0C.load_url(mDCG['resnet152'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], c2s7, **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n return C3ST", "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url...
[ "0.7557265", "0.7420262", "0.74164534", "0.74026406", "0.74026406", "0.74026406", "0.74026406", "0.74026406", "0.74026406", "0.74026406", "0.74026406", "0.74026406", "0.74026406", "0.73906183", "0.73906183", "0.7366163", "0.73595834", "0.73568684", "0.73468107", "0.7324853", ...
0.71767616
25
Calculates the variance for the likelihood function.
def I8JS(JfyU: object, LVAh: np.array, WKvO: np.array, Aofo: dict, wZTJ: str) -> tuple: exwG = LVAh.size KCHu = HJyy(lambda q7In: JfyU(q7In, LVAh, WKvO), Aofo.x) Fg_i = KCHu.T @ KCHu / exwG if wZTJ == 'Hessian': c8rh = Aofo.hess_inv PFC2 = 1 / exwG * c8rh elif wZTJ == 'Outer Product'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8JS(BkYD):\n return qw7D.variance(BkYD)", "def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL", "def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.0 * YKHO.mu + YKHO.sigma ** 2)", "def I8JS(YKHO):\n raise NotImplementedError", "def I8JS(...
[ "0.7936802", "0.77765954", "0.771674", "0.77061594", "0.76587236", "0.762272", "0.76128846", "0.76082623", "0.7550636", "0.75450915", "0.7508719", "0.7505865", "0.7463065", "0.7449437", "0.74488884", "0.7446216", "0.7446216", "0.7446216", "0.74434453", "0.7442332", "0.7426067...
0.0
-1
Save json in file Return nothing
def PF_N(UxL2, Ux0P): with open(Ux0P, 'w', encoding='utf-8') as eHNT: eHNT.write(qQXR.dumps(UxL2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n if YKHO.path:\n YKHO.saved = True\n with open(YKHO.path, 'w') as eHNT:\n eHNT.write(YKHO.json())", "def xkzz(YKHO):\n with open(YKHO.file_path, 'w') as eHNT:\n qQXR.dump(YKHO.data, eHNT)", "def ZMos(YKHO):\n with open(YKHO.file, 'w') as _RR0:\n ...
[ "0.81161296", "0.8019578", "0.79946977", "0.79245937", "0.78890574", "0.7857002", "0.778834", "0.7781261", "0.77724403", "0.77451265", "0.7743121", "0.7712178", "0.770519", "0.7703607", "0.76976556", "0.76771593", "0.76418406", "0.76017684", "0.76005214", "0.75974226", "0.759...
0.0
-1
Return the state of the entity.
def Debg(YKHO): return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO) -> uLKX[None, str, int, float]:\n return YKHO._entity.get(N4T2)", "def QTBn(YKHO):\n return YKHO.get_state()", "def GBfH(YKHO):\n return YKHO.state", "def QTBn(YKHO):\n return YKHO._get_state()", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state"...
[ "0.8337619", "0.7702563", "0.7638512", "0.7633944", "0.7620094", "0.7620094", "0.7620094", "0.7612864", "0.7605297", "0.7602402", "0.75564414", "0.75564414", "0.75564414", "0.75564414", "0.75564414", "0.75564414", "0.75564414", "0.7532665", "0.7522079", "0.7522079", "0.749583...
0.0
-1
Testing the name field is required and gives correct error
def xTPi(SYsl): B2Dn = W3q7(SYsl) B2Dn.load() B2Dn.click_submit() assert B2Dn.name_error() == 'Please fill out this field.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHq5(YKHO):\n KAOR = qcrw(name='this_is_a_valid_field')\n try:\n KAOR.full_clean()\n except sUXu as err:\n YKHO.assertNotIn('name', XObx.error_dict)\n else:\n YKHO.fail('Validation error not raised')", "def vq57(YKHO):\n with YKHO.assertRaisesMessage(sUXu, 'Enter a valid n...
[ "0.8168304", "0.8119046", "0.8009111", "0.7953324", "0.7846751", "0.7836797", "0.78069335", "0.7613711", "0.75563705", "0.75481164", "0.7546321", "0.7515221", "0.74807817", "0.7402152", "0.7400026", "0.73343587", "0.7265856", "0.72614396", "0.72393185", "0.7232396", "0.720002...
0.6950745
48
Testing the name will not error when name is entered.
def HtWa(SYsl): B2Dn = W3q7(SYsl) B2Dn.load() B2Dn.test_name('Test') B2Dn.click_submit() assert B2Dn.name_error() == ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vq57(YKHO):\n with YKHO.assertRaisesMessage(sUXu, 'Enter a valid name.'):\n YKHO.data.clean_fields()", "def vq57():\n assert huKo.validate_name_input('John Doe') == 'John Doe'", "def tFxl(YKHO):\n with YKHO.assertRaises(ValueError):\n IVmX.check_field_name(HtA0)", "def fUbN(YKHO, m...
[ "0.7954197", "0.78486896", "0.7777872", "0.776045", "0.77265924", "0.7701792", "0.7657218", "0.761915", "0.7611405", "0.76056993", "0.7588392", "0.7587794", "0.75609046", "0.7521219", "0.7491702", "0.7491366", "0.7480865", "0.74720234", "0.74069756", "0.73847103", "0.73752975...
0.7407105
18
Testing that the message submits and doesn't take you to a new page. Message will not email or properly submit in local container.
def rBjt(SYsl): B2Dn = W3q7(SYsl) B2Dn.load() B2Dn.test_name('Test') B2Dn.test_email('test@example.com') B2Dn.test_message('Test message please ignore') B2Dn.click_submit() assert SYsl.current_url == B2Dn.get_url() + '/'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AUJX(YKHO):\n YKHO.selenium.get('%s%s' % (YKHO.live_server_url, '/guestboard/'))\n Ol8d = YKHO.selenium.find_element_by_css_selector('textarea[name=\"message\"]')\n ZriL = YKHO.selenium.find_element_by_css_selector('input[type=\"submit\"]')\n Ol8d.send_keys('Test Message 100')\n Ol8d.send_keys(O...
[ "0.759597", "0.729849", "0.7266336", "0.7194663", "0.71098375", "0.71075946", "0.707423", "0.7059337", "0.7059337", "0.7057276", "0.6990979", "0.69751006", "0.6934708", "0.6934708", "0.6913389", "0.69106585", "0.68847173", "0.6854364", "0.6847483", "0.6841176", "0.67878413", ...
0.68613356
17
Test that a TypeError exception is raised when an invalid ApplicationNamespace value is used to construct an ApplicationSpecificInformation object.
def wHqH(YKHO): itK_ = 'invalid' gZZs = QEEw() qIxc = [itK_, gZZs] YKHO.assertRaisesRegexp(TypeError, 'invalid application namespace', GIO8, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EbVf(YKHO):\n itK_ = Q8IW()\n gZZs = 'invalid'\n qIxc = [itK_, gZZs]\n YKHO.assertRaisesRegexp(TypeError, 'invalid application data', GIO8, *qIxc)", "def xx8e(YKHO):\n Ilxn = ['Test product Apple']\n with YKHO.assertRaises(TypeError) as tTpl:\n YKHO.Product._get_msm_domain(Ilxn)\n ...
[ "0.7994005", "0.62621295", "0.6227161", "0.6206632", "0.6200943", "0.6194386", "0.61927295", "0.61815655", "0.61734587", "0.6156869", "0.615226", "0.6143759", "0.6130704", "0.6118493", "0.6112667", "0.61077017", "0.61075675", "0.6096456", "0.6063987", "0.60635245", "0.6057550...
0.84922796
0
Test that an ApplicationSpecificInformation object with no data can be created using the create class method.
def VVCF(YKHO): YKHO._test_create(None, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iVKo(YKHO) -> None:\n cgSI: dict = SdFu.create()\n assert cgSI is not None", "def gFRt(YKHO):\n pass", "def gFRt(YKHO):\n pass", "def FlNZ(YKHO):\n pass", "def S3Od(YKHO):\n vC9B = qvOq()\n YKHO.assertEqual(None, vC9B.status)\n YKHO.assertEqual(None, vC9B.lock_date)\n YKHO.as...
[ "0.65380335", "0.6466265", "0.6466265", "0.6409818", "0.63132715", "0.63033545", "0.61846477", "0.616574", "0.6132918", "0.6078109", "0.6048483", "0.60456", "0.60378784", "0.6034404", "0.6007345", "0.6004662", "0.6003615", "0.59816986", "0.5980747", "0.59523", "0.593871", "...
0.6325889
4
Calls parent constructors and initializes adversary specs.
def FIMM(YKHO, GikI, vtM7=False, P5Kk=False): super(njxZ, YKHO).__init__(GikI, check_dims=vtM7, isolation=P5Kk) if not GikI.batched: YKHO._env = kErd([GikI], multithreading=not YKHO._pool) YKHO._agent_time_step = None YKHO.adversary_action_spec = OFgU.from_spec(YKHO._env.adversary_action_spec) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **B2fa):\n YKHO._initialize_protocols()\n super().__init__(*qIxc, **B2fa)", "def FIMM(YKHO, *qIxc, **B2fa):\n YKHO._initialize_protocols()\n super().__init__(*qIxc, **B2fa)", "def uIcm(YKHO):\n YKHO.dao = YKHO.dao or YKHO._generate_dao(db_uri=YKHO.db_uri, initialize=True)\n...
[ "0.6306741", "0.6306741", "0.62805873", "0.6251443", "0.6233012", "0.6149528", "0.614527", "0.61236316", "0.6122446", "0.6086367", "0.6053941", "0.6051134", "0.6051134", "0.60433465", "0.60209817", "0.6015351", "0.60145545", "0.600698", "0.59979355", "0.59952635", "0.59893215...
0.0
-1
Modify a string to make its numbers suitable for natural sorting.
def p3kC(KCHu): return ZbWC.sub('\\d+', lambda r8hN: r8hN.group(0).rjust(16, '0'), KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TGDD(vIwR):\n return [int(KCHu) if KCHu.isdigit() else KCHu for KCHu in ZbWC.split('(\\\\d+)', vIwR)]", "def MAlU(KCHu):\n import re\n mXDZ = '([0-9]+)'\n return [int(Z9rn) if Z9rn.isdigit() else Z9rn.lower() for Z9rn in re.split(mXDZ, KCHu)]", "def TGDD():\n a8Pe = lambda l5Ny: int(l5Ny) if...
[ "0.772008", "0.76528484", "0.76274997", "0.76223326", "0.7584317", "0.7527984", "0.75130033", "0.74560356", "0.74380875", "0.7346322", "0.72677237", "0.72599596", "0.72200483", "0.7207936", "0.71977425", "0.71621066", "0.71304184", "0.71212715", "0.7120299", "0.7116354", "0.7...
0.0
-1
Create an ingress based on a dict.
def FLbx(BI_J: NetworkingV1Api, _63S, TBsA) -> str: print('Create an ingress:') BI_J.create_namespaced_ingress(_63S, TBsA) print(f"Ingress created with name '{TBsA['metadata']['name']}'") return TBsA['metadata']['name']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETUR(YKHO, QePW, QpfX):\n nPrm = dGYv().load(tAF2(QePW))\n nUeQ = nPrm['content']\n _63S = nPrm['namespace']\n pZZv = eJb6.safe_load(nUeQ)\n d4y1 = x0hE.CustomObjectsApi()\n d4y1.create_namespaced_custom_object(group='traefik.containo.us', version='v1alpha1', namespace=_63S, plural='ingressro...
[ "0.64150685", "0.61910665", "0.59402305", "0.5688539", "0.56108487", "0.54076016", "0.53251624", "0.5316077", "0.52939516", "0.52583534", "0.52583534", "0.5248708", "0.51874304", "0.5171948", "0.5171139", "0.51188844", "0.51174027", "0.5117212", "0.5112284", "0.50515467", "0....
0.6409732
1
Create an ingress based on a dict.
def LdsH(hQHm: CoreV1Api, TBsA) -> str: print('Create a namespace:') hQHm.create_namespace(TBsA) print(f"Namespace created with name '{TBsA['metadata']['name']}'") return TBsA['metadata']['name']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETUR(YKHO, QePW, QpfX):\n nPrm = dGYv().load(tAF2(QePW))\n nUeQ = nPrm['content']\n _63S = nPrm['namespace']\n pZZv = eJb6.safe_load(nUeQ)\n d4y1 = x0hE.CustomObjectsApi()\n d4y1.create_namespaced_custom_object(group='traefik.containo.us', version='v1alpha1', namespace=_63S, plural='ingressro...
[ "0.64150685", "0.6409732", "0.61910665", "0.59402305", "0.5688539", "0.56108487", "0.54076016", "0.53251624", "0.5316077", "0.52939516", "0.52583534", "0.52583534", "0.5248708", "0.51874304", "0.5171948", "0.5171139", "0.51188844", "0.51174027", "0.5117212", "0.5112284", "0.5...
0.0
-1
Create a configmap based on yaml file.
def htGp(hQHm: CoreV1Api, _63S, ygAu) -> str: print(f'Load {ygAu}') with open(ygAu) as eHNT: kbO9 = eJb6.safe_load(eHNT) return Tkba(hQHm, _63S, kbO9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C8fz(mWFP, _63S='', aBOe=None, s54N=True, TnYq=None):\n KHhB(tcvO(mWFP, _63S, aBOe, s54N, TnYq))", "def tcvO(mWFP, _63S='', aBOe=None, s54N=True, TnYq=None):\n qIxc = ['kubectl', 'create', 'configmap', mWFP]\n if _63S:\n qIxc.extend(['-n', _63S])\n c2Yh = False\n if aBOe and TnYq:\n ...
[ "0.7657613", "0.75358504", "0.6882314", "0.68331575", "0.67447877", "0.6719596", "0.66971916", "0.66874677", "0.6681247", "0.6681247", "0.66741896", "0.66741896", "0.6666082", "0.6657136", "0.66285944", "0.65740377", "0.65353864", "0.65209967", "0.65201664", "0.6515985", "0.6...
0.74601257
2
Replace a configmap based on a dict.
def pV9l(hQHm: CoreV1Api, mWFP, _63S, TBsA) -> None: print(f"Replace a configMap: '{mWFP}'") hQHm.replace_namespaced_config_map(mWFP, _63S, TBsA) print('ConfigMap replaced')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qx_G(YKHO, a9kU):\n if isinstance(a9kU, PSrQ):\n a9kU = vars(a9kU)\n for H5ew, wEf2 in a9kU.items():\n YKHO.__setattr__(H5ew, wEf2)", "def dhWJ(YKHO, XP5J, KCHu, Csk6=None):\n if Csk6 is None:\n Csk6 = YKHO.config\n for G1Hx, Ty9i in Csk6.iteritems():\n if isinstance(T...
[ "0.7326559", "0.727051", "0.727051", "0.70562977", "0.701148", "0.6511967", "0.6483451", "0.6444995", "0.6443649", "0.62877035", "0.6267233", "0.62513036", "0.62334937", "0.6215905", "0.61954397", "0.61910564", "0.61852354", "0.6147221", "0.6115054", "0.60911113", "0.60673124...
0.7497111
0
Get contents of /etc/nginx/nginx.conf in the pod
def u6kh(hQHm: CoreV1Api, mwuI, tA8n=None) -> str: if tA8n is None: tA8n = LnSR(hQHm, mwuI) qaEx = '/etc/nginx/nginx.conf' return nSzq(hQHm, qaEx, tA8n, mwuI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gnTN(hQHm: CoreV1Api, mwuI, yRIL, e5wU, WbIu) -> str:\n qaEx = f'/etc/nginx/conf.d/{mwuI}-{yRIL}.conf'\n return nSzq(hQHm, qaEx, e5wU, WbIu)", "def tWm1(hQHm: CoreV1Api, RWI8, kFeU, e5wU, WbIu) -> str:\n qaEx = f'/etc/nginx/stream-conf.d/ts_{RWI8}_{kFeU}.conf'\n return nSzq(hQHm, qaEx, e5wU, WbIu...
[ "0.6764068", "0.6729278", "0.6704021", "0.6271077", "0.6240935", "0.62239444", "0.61925566", "0.60371", "0.5930296", "0.59125495", "0.5903373", "0.5874615", "0.58719987", "0.58554816", "0.5834359", "0.5812438", "0.5760017", "0.57545376", "0.5746453", "0.57401896", "0.568833",...
0.7395397
0
Create a backend application. An application consists of 3 backend services.
def aMVR(FmRW, zv1n, _63S) -> None: QiPT(FmRW, f'{vwyN}/common/app/{zv1n}/app.yaml', _63S)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif():\n BneB = eD5n(path=xAKo)\n P4t4 = BneB.create_app()\n return P4t4", "def AMSD(AadL=None, fimU=None, jTsx=None, Pl09=None):\n pass", "def z_uJ(DDLl=None):\n return hKFC.App.create_app('tests.orm', orm_backend=DDLl)", "def LUif():\n return eLpg(mode='app')", "def LUif(*qIxc, **B...
[ "0.7380043", "0.73171175", "0.7166117", "0.71264887", "0.7043338", "0.69783515", "0.69783515", "0.69605815", "0.6956446", "0.69116515", "0.6911521", "0.6907538", "0.68534595", "0.68461967", "0.6843996", "0.6843523", "0.67679024", "0.6755055", "0.6751849", "0.6747086", "0.6744...
0.0
-1
Create an ingress with AppProtect annotations
def UPAr(FmRW, ygAu, _63S, CX3n, riLr, lAz6, BGIt) -> None: print('Load ingress yaml and set AppProtect annotations') if '/' in CX3n: Qabx = CX3n else: Qabx = f'{_63S}/{CX3n}' A8zI = f'{_63S}/logconf' with open(ygAu) as eHNT: A97Q = eJb6.safe_load(eHNT) A97Q['metadata...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bbaQ(FmRW, ygAu, mWFP, _63S, CX3n, riLr, lAz6, BGIt) -> None:\n print('Load ingress yaml and set AppProtect annotations')\n Qabx = f'{_63S}/{CX3n}'\n A8zI = f'{_63S}/logconf'\n with open(ygAu) as eHNT:\n A97Q = eJb6.safe_load(eHNT)\n A97Q['metadata']['annotations']['appprotect.f5.com/...
[ "0.6952442", "0.63451916", "0.6167271", "0.6122077", "0.5931967", "0.5920002", "0.5866729", "0.55828923", "0.55386275", "0.54580617", "0.54184633", "0.5369344", "0.5352022", "0.53257114", "0.532411", "0.5294382", "0.52492684", "0.52449197", "0.52339655", "0.523315", "0.522786...
0.76524895
0
Create an ingress with AppProtect annotations
def EyRY(FmRW, ygAu, _63S, rl10) -> None: print('Load ingress yaml and set DOS annotations') with open(ygAu) as eHNT: A97Q = eJb6.safe_load(eHNT) A97Q['metadata']['annotations']['appprotectdos.f5.com/app-protect-dos-resource'] = rl10 FLbx(FmRW.networking_v1, _63S, A97Q)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UPAr(FmRW, ygAu, _63S, CX3n, riLr, lAz6, BGIt) -> None:\n print('Load ingress yaml and set AppProtect annotations')\n if '/' in CX3n:\n Qabx = CX3n\n else:\n Qabx = f'{_63S}/{CX3n}'\n A8zI = f'{_63S}/logconf'\n with open(ygAu) as eHNT:\n A97Q = eJb6.safe_load(eHNT)\n ...
[ "0.76524895", "0.6952442", "0.6167271", "0.6122077", "0.5931967", "0.5920002", "0.5866729", "0.55828923", "0.55386275", "0.54580617", "0.54184633", "0.5369344", "0.5352022", "0.53257114", "0.532411", "0.5294382", "0.52492684", "0.52449197", "0.52339655", "0.523315", "0.522786...
0.63451916
2
Integrate flux density in the telescope aperture. Convert signal from W / m^2 / Hz into W / Hz.
def DYOd(YKHO): Te3J = oyIN.sum(YKHO.horn.open) return eCRp(Te3J * oyIN.pi * YKHO.horn.radeff ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zQMB(YKHO, lwdm='photlam'):\n P6bq = YKHO.fluxunits\n YKHO.convert(lwdm)\n qJa9, shSu = YKHO.getArrays()\n YKHO.convert(P6bq)\n return YKHO.trapezoidIntegration(qJa9, shSu)", "def zQMB(YKHO, Cqok: Spectrum) -> float:\n if Cqok.wave_mode != sg5f.Mode.LAMBDA:\n raise ValueError('Spectr...
[ "0.71207386", "0.62522846", "0.6249755", "0.6220063", "0.6178058", "0.60891867", "0.59931505", "0.59197414", "0.59110504", "0.590919", "0.58921814", "0.5850194", "0.5849759", "0.581696", "0.58115923", "0.5800975", "0.5797228", "0.57697034", "0.5754547", "0.57437116", "0.57405...
0.0
-1
Return the filter operator. Convert units from W/Hz to W.
def SvY_(YKHO): if YKHO.filter.bandwidth == 0: return ZTJr() return eCRp(YKHO.filter.bandwidth)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khtY(YKHO):\n try:\n return YKHO.filter_['op']\n except KeyError:\n raise WirG(\"Can't find op of a filter\")", "def YcsD(YKHO):\n if YKHO.__FILTER == '-':\n return 'PASS'\n elif YKHO.__FILTER == 'notfound':\n return 'NtF'\n elif YKHO.__FILTER == 'lt2count':\n ...
[ "0.65538126", "0.6369701", "0.6142532", "0.6110927", "0.6087882", "0.6054611", "0.60403186", "0.6027261", "0.6010553", "0.59351605", "0.59351605", "0.59351605", "0.59351605", "0.59351605", "0.59131646", "0.59131646", "0.59131646", "0.59058267", "0.59058267", "0.59058267", "0....
0.7579462
0
Return the inverse timetime noise correlation matrix as an Operator.
def JWz6(YKHO, NgvF): return M13T.get_invntt_operator(YKHO, NgvF, fknee=YKHO.detector.fknee, fslope=YKHO.detector.fslope, ncorr=YKHO.detector.ncorr, nep=YKHO.detector.nep)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g08r(YKHO, ITS7):\n return oyIN.cos(YKHO.frequency * ITS7) * vexM.qeye(2) + 1j * oyIN.sin(YKHO.frequency * ITS7) * vexM.sigmay()", "def S1m0(WY6E, KVH6, NKcE='dSPM', Vpdb=1.0 / 9.0):\n xqQM(KVH6, WY6E)\n UVjQ = facj(WY6E)\n ucvf = UVjQ['ch_names']\n SqvK = len(ucvf)\n Sh5w = WY6E['info']['b...
[ "0.62733924", "0.56623024", "0.5633918", "0.5626087", "0.55984277", "0.5500203", "0.5498248", "0.548717", "0.5475243", "0.5468933", "0.54294556", "0.5422549", "0.5404213", "0.5402311", "0.53832084", "0.5345718", "0.5340825", "0.53183186", "0.5297887", "0.5271945", "0.5270197"...
0.0
-1
filter_nus base frequencies array filter_relative_bandwidths array of relative bandwidths center_detector bolean, optional if True, take only one detector at the centre of the focal plane Needed to study the synthesised beam
def FIMM(YKHO, Csk6): print('This is JCHInstrument Multiband Instrument') venw, SV7T, X_8f, a1kB, uGwy, M_a4 = eumT(Csk6['filter_nu'] / 1000000000.0, Csk6['nf_sub'], Csk6['filter_relative_bandwidth']) YKHO.FRBW = Csk6['filter_relative_bandwidth'] AjzU = Csk6.copy() YKHO.nsubbands = len(X_8f) if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvyH(nHI3, sXDh):\n import nibabel as GPal\n import numpy as oyIN\n import os\n zwKb = 0.08\n PxAd = 0.01\n Vb5F = 1 / 3.0\n VXjJ = GPal.load(nHI3)\n U03N = GPal.load(sXDh).get_data().astype(bool)\n yMdi = VXjJ.shape[-1]\n vuvg = oyIN.zeros(yMdi)\n f59A = yMdi / 2 + 1\n if z...
[ "0.5633464", "0.55557275", "0.5548421", "0.55312914", "0.54920214", "0.54860824", "0.5482702", "0.53415996", "0.5336153", "0.5327085", "0.52888703", "0.5282402", "0.52606744", "0.52524793", "0.5225826", "0.5222387", "0.5219529", "0.5207265", "0.51874846", "0.51844496", "0.518...
0.0
-1
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> dict:\n pass", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def sS6L(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO) -> dict:\n return YKHO.__data__", "def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(Y...
[ "0.8867926", "0.8861291", "0.8325109", "0.8323158", "0.8313032", "0.8288802", "0.8288802", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8251281", "0.8234439", "0.8234439", "0.8216978", "...
0.0
-1
Returns the Fourier Transform of y.
def cwu1(LVAh): ywwl = len(LVAh) Z9rn = oyIN.zeros(ywwl // 2 + 1, complex) for G1Hx in range(ywwl // 2 + 1): for exwG in range(ywwl): Z9rn[G1Hx] += LVAh[exwG] * oyIN.exp(-2j * oyIN.pi * G1Hx * exwG / ywwl) return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D8MD(YKHO):\n a1PO = YKHO.axis\n LVAh = YKHO.data\n if isinstance(a1PO, qupb):\n yzQ0 = a1PO.get_FrequencyAxis()\n if a1PO.atype == 'complete':\n fuBA = a1PO.length * XTiz.fft.fftshift(XTiz.fft.ifft(XTiz.fft.fftshift(LVAh))) * a1PO.step\n elif a1PO.atype == 'upper-half'...
[ "0.8092518", "0.77903944", "0.7763294", "0.7222806", "0.7222806", "0.70587105", "0.70288503", "0.69849336", "0.6895383", "0.6883246", "0.677619", "0.6580774", "0.6580271", "0.6523747", "0.6506204", "0.64597505", "0.645079", "0.64116967", "0.6399698", "0.63222164", "0.63078105...
0.5776829
61
Returns the Fourier Transform of y.
def TJeO(LVAh): ywwl = len(LVAh) exwG = oyIN.arange(ywwl) Z9rn = oyIN.zeros(ywwl // 2 + 1, complex) for G1Hx in range(ywwl // 2 + 1): gJ14 = LVAh * oyIN.exp(-2j * oyIN.pi * G1Hx * exwG / ywwl) Z9rn[G1Hx] = oyIN.sum(gJ14) return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D8MD(YKHO):\n a1PO = YKHO.axis\n LVAh = YKHO.data\n if isinstance(a1PO, qupb):\n yzQ0 = a1PO.get_FrequencyAxis()\n if a1PO.atype == 'complete':\n fuBA = a1PO.length * XTiz.fft.fftshift(XTiz.fft.ifft(XTiz.fft.fftshift(LVAh))) * a1PO.step\n elif a1PO.atype == 'upper-half'...
[ "0.8092518", "0.77903944", "0.7763294", "0.7222806", "0.7222806", "0.70587105", "0.70288503", "0.69849336", "0.6895383", "0.6883246", "0.677619", "0.6580774", "0.6580271", "0.6523747", "0.6506204", "0.64597505", "0.645079", "0.64116967", "0.63222164", "0.63078105", "0.6294954...
0.6399698
18
Returns the Fourier Transform of y.
def GN36(LVAh): ywwl = len(LVAh) exwG = oyIN.arange(ywwl) G1Hx = oyIN.arange(ywwl // 2 + 1) G1Hx = G1Hx[:, oyIN.newaxis] gJ14 = LVAh * oyIN.exp(-2j * oyIN.pi * G1Hx * exwG / ywwl) Z9rn = gJ14.sum(axis=1) return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D8MD(YKHO):\n a1PO = YKHO.axis\n LVAh = YKHO.data\n if isinstance(a1PO, qupb):\n yzQ0 = a1PO.get_FrequencyAxis()\n if a1PO.atype == 'complete':\n fuBA = a1PO.length * XTiz.fft.fftshift(XTiz.fft.ifft(XTiz.fft.fftshift(LVAh))) * a1PO.step\n elif a1PO.atype == 'upper-half'...
[ "0.8092518", "0.77903944", "0.7763294", "0.70587105", "0.70288503", "0.69849336", "0.6895383", "0.6883246", "0.677619", "0.6580774", "0.6580271", "0.6523747", "0.6506204", "0.64597505", "0.645079", "0.64116967", "0.6399698", "0.63222164", "0.63078105", "0.6294954", "0.6282755...
0.7222806
3
Function takes a letter and returns the index position of that letter with 0 being 'a' or 'A' and 'z' being 25. Function should be case insensitive.
def etjM(sZqf): KoG3 = vIwR.ascii_lowercase return KoG3.index(sZqf.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQtK(YKHO, sZqf):\n gZgb = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n return gZgb.index(str(sZqf).upper()) + 1", "def etjM(sZqf):\n sZqf = str(sZqf)\n sZqf = sZqf.lower()\n return ord(sZqf) - 97", "def etjM(sZqf):\n sZqf = sZqf.lower()\n dQgj = ord(sZqf) - 97\n return dQgj", "def etjM(sZqf):\...
[ "0.849705", "0.83214384", "0.8291776", "0.8291776", "0.8234342", "0.8223119", "0.81742555", "0.80502784", "0.7969703", "0.794401", "0.79399467", "0.79263854", "0.7915032", "0.78559417", "0.7851943", "0.7851717", "0.7801936", "0.77960056", "0.77489555", "0.76992804", "0.769092...
0.87867695
0
Returns two cleaned lists from a dictionary The aforementioned dictionary should contain some subdictionaries containing the parameters, the MRR values and the accuracies related to the different configurations.
def MMmM(Emd4, WXU4): r6L8 = [] FunL = [] yIVC = None taNw = None eXkc = None NmoK = None Rn3Z = None for H5ew, BWXx in WXU4.items(): yIVC = BWXx['means_accuracy'] taNw = BWXx['means_mrr'] eXkc = BWXx['params'] NmoK = list(zip(eXkc, yIVC)) NmoK.sor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r02l(cmPJ):\n _VX8 = {}\n wX_w = {}\n Hvvh = []\n for H5ew in cmPJ.keys():\n _VX8[H5ew] = 'seq'\n for BWXx in cmPJ.values():\n wX_w[BWXx] = 'text'\n for (B2hD, UXsi), (gfpw, c163) in zip(_VX8.items(), wX_w.items()):\n Hvvh.append({UXsi: int(B2hD), c163: gfpw})\n return...
[ "0.60241866", "0.5566498", "0.5528169", "0.5440179", "0.5421941", "0.5361061", "0.53387237", "0.5334267", "0.5325737", "0.52902114", "0.52709025", "0.5249379", "0.52336425", "0.5231776", "0.52284896", "0.5208797", "0.51960933", "0.51728565", "0.51162374", "0.5095005", "0.5082...
0.69261783
0
Log Errors caused by Updates.
def P1dF(QdZT, QpfX): QdZT.message.reply_text('Please correct your link. Keep calm and wait our server work on it') bo34.warning('Update "%s" caused error "%s"', QdZT, QpfX.error)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)", "def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')", "def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err...
[ "0.7895395", "0.788395", "0.78750193", "0.7873498", "0.78300834", "0.7790406", "0.7785151", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.7781314", "0.77660847", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.774618...
0.0
-1
Generate an id that can be used to match this file with others Rather than just use the file_hash to represent the file, additionally including the file_size will allow for an even more accurate match. While the likelihood of a hash collision with sha512 is highly minimal including file_size allows to handle the situat...
def id(YKHO): return '{file_hash}#{file_size}'.format(file_hash=YKHO._file_hash, file_size=YKHO._file_size)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dQiW(YKHO):\n if YKHO.file_size < 65536 * 2:\n return None\n try:\n P2NW = 'q'\n KuP7 = BlNT.calcsize(P2NW)\n with open(YKHO.file_path, 'rb') as nHI3:\n dQiW = YKHO.file_size\n for bGrB in range(65536 / KuP7):\n rNVB = nHI3.read(KuP7)\n ...
[ "0.76841533", "0.68983275", "0.6789372", "0.6750976", "0.6729587", "0.6721651", "0.66450816", "0.6641326", "0.6627502", "0.65819645", "0.6551016", "0.65161544", "0.6501833", "0.647285", "0.6469891", "0.6467619", "0.645293", "0.64163285", "0.64091974", "0.63895833", "0.6389469...
0.7527081
1
Gets an unreal material for use. If it's not already loaded, it will load it automatically and cache it for next time
def vOhv(YKHO, bbJw: str) -> v7_G: if bbJw in YKHO.loadedParentMaterials: return YKHO.loadedParentMaterials[bbJw] tTFm = '/Game/Rainbow/MasterMaterials/{matname}.{matname}'.format(matname=bbJw) pVmj = None try: pVmj = G0So.load_object(v7_G, tTFm) except Exception: G0So.log_wa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iWzc(YKHO, ax49: RSEMaterialDefinition):\n PJWX = False\n if ax49.texture_name.string.startswith('cl02_spray1'):\n PJWX = True\n Yfub = Vtu8(ax49)\n UnuA = YKHO.get_unreal_master_material(Yfub)\n if PJWX:\n G0So.log('=====================')\n G0So.log(ax49.texture_name.strin...
[ "0.6933235", "0.6876673", "0.68318105", "0.68266517", "0.6750748", "0.67435825", "0.6707075", "0.66234845", "0.6604582", "0.6521512", "0.65198123", "0.6518453", "0.6474147", "0.6439105", "0.6432881", "0.63975686", "0.6372123", "0.6359258", "0.63374144", "0.62795633", "0.61707...
0.68426806
2
Sets the start_time of this V1Checkpoint.
def SWox(YKHO, SWox): if SWox is None: raise ValueError('Invalid value for `start_time`, must not be `None`') YKHO._start_time = SWox
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWox(YKHO, SWox: float):\n YKHO._start_time = SWox", "def I_9r(YKHO, R4lU):\n YKHO.start_time = R4lU", "def I_9r(YKHO, SWox):\n YKHO.__check_time(SWox)\n if isinstance(SWox, str):\n SWox = YKHO.__iso_time_to_timestamp(SWox)\n YKHO.__start_time = SWox\n return YKHO", "def SWox(YKH...
[ "0.76471496", "0.76296324", "0.7523458", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.7457272", "0.741018", "0.73560244", "0.7285195", "0.7273305", "0.72094023", "0.7118145", ...
0.77406555
0
Sets the determined_version of this V1Checkpoint.
def rqsT(YKHO, rqsT): YKHO._determined_version = rqsT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R2V2(YKHO, DpZH):\n YKHO.version = DpZH", "def R2V2(YKHO, DpZH):\n YKHO._version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO.version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO._version = DpZH", "def dPFR(YKHO, DpZH):\n assert float(DpZH) in YKHO.supportedVersions, 'Version ' + str(DpZH) + ' is no...
[ "0.62669915", "0.6263953", "0.61762905", "0.6156767", "0.6118657", "0.59000546", "0.5888215", "0.5887166", "0.586827", "0.586827", "0.586827", "0.58561254", "0.58561254", "0.58452857", "0.5840121", "0.582357", "0.5819036", "0.5819036", "0.5819036", "0.5819036", "0.5819036", ...
0.778956
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
set_sync_mode(value) Set or unset the SubChannel in sync mode. When in sync mode, all channels that send messages to this channel are blocked if the queue for this SubChannel reaches a certain size. This feature can be used to limit the rate of senders if the consumer (i.e. the one that calls recv()) cannot keep up wit...
def dLrE(YKHO, BWXx): BWXx = bool(BWXx) if YKHO._queue_status == eRtj: YKHO._send_block_message_to_senders('ok') if BWXx: YKHO._queue_status = vCVw else: YKHO._queue_status = QjyK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dLrE(YKHO, Eoq5):\n XObx = _e0h.ulAOSetConfig(YKHO.__handle, wbVG.SYNC_MODE, 0, Eoq5)\n if XObx != 0:\n raise MQtc(XObx)", "def dLrE(YKHO, Tuqy, zXYK=1):\n YKHO.com_link.set_operation_mode(Tuqy, zXYK)", "def bEqh(YKHO, etR_):\n if etR_:\n YKHO.setPrmTelegram.stationStatus |= dnO0....
[ "0.74108225", "0.64932036", "0.6092294", "0.58632296", "0.58272576", "0.5723193", "0.5629693", "0.5611034", "0.55936533", "0.558939", "0.54679596", "0.54679596", "0.5399889", "0.537546", "0.5374023", "0.53510636", "0.534351", "0.5329095", "0.53246665", "0.5286759", "0.5286118...
0.7014158
1
convert a list of dictionaries into a dictionary keyed on the specified dictionary key
def js81(CksG, H5ew): return dict([(ETu_[H5ew], ETu_) for ETu_ in CksG])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMVT(IqQl, i9wJ, GI3A):\n TDnD = {}\n for ZfUD in IqQl:\n TDnD[ZfUD[i9wJ]] = ZfUD[GI3A]\n return TDnD", "def BOen(vC9B, dln7, rAxx):\n return {ATUZ[dln7]: ATUZ[rAxx] for ATUZ in vC9B}", "def tcxO(dzf3: List[Dict[str, Any]]) -> cuzp[str, ImMB]:\n return dict(wjgw(*dzf3))", "def sVmz(...
[ "0.73576295", "0.7351564", "0.7264456", "0.724196", "0.72274905", "0.71780473", "0.711674", "0.7107068", "0.70724726", "0.702461", "0.699182", "0.69635755", "0.6873109", "0.6841916", "0.68106645", "0.67807317", "0.67316324", "0.6722933", "0.6593903", "0.65480155", "0.6528791"...
0.7106067
8
Marker attribute to tell we are overriding a method
def jRxN(m2Zb): return m2Zb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DlBa(*qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", ...
[ "0.72010046", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", "0.6840362", ...
0.69942546
1
A lazy property that is only evaluated once. Reduces clutter code and is similar to a singleton implementation for a property.
def t8jp(m2Zb): xC3W = '_' + m2Zb.__name__ @property @xBlr.wraps(m2Zb) def h3Xc(YKHO): if not hasattr(YKHO, xC3W): setattr(YKHO, xC3W, m2Zb(YKHO)) return getattr(YKHO, xC3W) return h3Xc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8jp(FYKK):\n hGI9 = '_lazy_' + FYKK.__name__\n\n @property\n def VjgO(YKHO):\n if not hasattr(YKHO, hGI9):\n setattr(YKHO, hGI9, FYKK(YKHO))\n return getattr(YKHO, hGI9)\n return VjgO", "def bxSf(JfyU):\n mWFP = '_lazy_' + JfyU.__name__\n\n @property\n def gd4N(...
[ "0.78198284", "0.77563727", "0.77331483", "0.7647069", "0.75874937", "0.75218797", "0.75026894", "0.74714875", "0.7413551", "0.72100717", "0.7160589", "0.71529055", "0.6918184", "0.67935747", "0.6718657", "0.66846067", "0.66675496", "0.6664649", "0.6664649", "0.6664405", "0.6...
0.71221447
12
Chain an iterable of streams together into a single buffered stream.
def jKsX(JJXN, klGB=xDSY.DEFAULT_BUFFER_SIZE, VWe_=b''): bNfG = [] if VWe_: XVAW = len(JJXN) - 1 for or8S, wOb_ in enumerate(JJXN): bNfG.append(wOb_) if or8S != XVAW: bNfG.append(xDSY.BytesIO(VWe_)) else: bNfG = JJXN class ChainStream(xDSY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNCK(YKHO, *ix7N):\n YKHO._stream = Hs6x.chain(YKHO._stream, *ix7N)\n return YKHO", "def eNCK(*ix7N):\n for OxJJ in ix7N:\n yield from OxJJ", "def Khtg(OxJJ, klGB=xDSY.DEFAULT_BUFFER_SIZE):\n\n class IterStream(xDSY.RawIOBase):\n\n def FIMM(YKHO):\n YKHO.leftover = None...
[ "0.74182165", "0.6536631", "0.6480008", "0.6251896", "0.62001765", "0.6148071", "0.6118101", "0.60547405", "0.6027184", "0.59760267", "0.5962075", "0.5942216", "0.59189874", "0.5899568", "0.5888851", "0.5849201", "0.5822031", "0.5818285", "0.5788369", "0.5757349", "0.5750822"...
0.73262376
1
Registers an action in this objects REST server (service) by the given method and route.
def ZQy4(YKHO, NKcE, PsCT, uPxI, DCgT): if YKHO._endpoint is None: return PsCT = f'{YKHO.fix_route(YKHO._base_route)}{YKHO.fix_route(PsCT)}' YKHO._endpoint.register_route(NKcE, PsCT, uPxI, DCgT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eipA(YKHO, XeOP: Action):\n XeOP.set_server(YKHO)\n _MXF = '' if XeOP.route.startswith('/') else '/'\n eD8c = f'{_MXF}{XeOP.route}'\n\n @P4t4.route(rule=eD8c, methods=['POST'])\n def nVrR():\n print('handling it')\n xGqu = QePW.get_json(force=True)\n return pz3A(XeOP.remote(...
[ "0.712532", "0.70127", "0.66985327", "0.668508", "0.6522721", "0.6456387", "0.64522904", "0.6418922", "0.6370847", "0.6201941", "0.61644924", "0.61370385", "0.61231995", "0.6065002", "0.6030319", "0.6021306", "0.60205775", "0.6004641", "0.597927", "0.5934653", "0.5928689", ...
0.68558073
2
Registers a middleware for a given route in HTTP endpoint.
def TKfi(YKHO, PsCT, XeOP): if YKHO._endpoint is None: return PsCT = YKHO._append_base_route(YKHO.fix_route(PsCT)) YKHO._endpoint.register_interceptor(PsCT, XeOP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gr_i(PsCT):\n\n def riO5(JfyU):\n hPmM.routes[PsCT] = JfyU\n return JfyU\n return riO5", "def gr_i(YKHO, w2IS: str, DCgT: Callable):\n YKHO.routes[w2IS] = DCgT", "def PsCT(YKHO, PsCT: str):\n\n def mrMx(tTee):\n YKHO.add_route(PsCT, tTee)\n return tTee\n return mr...
[ "0.67036575", "0.66637754", "0.64622897", "0.6393974", "0.6246563", "0.622777", "0.62215436", "0.6091811", "0.6072415", "0.59551376", "0.5953986", "0.5916735", "0.5916735", "0.5886527", "0.5860702", "0.5842425", "0.58124113", "0.579719", "0.5786363", "0.5774563", "0.5735333",...
0.5923751
11
To reverse the linked list in group of k size.\n [TC=O(n)/SC=O(1)]
def wzF4(YKHO, sdCG=None, G1Hx=0): if not sdCG: sdCG = YKHO.head if G1Hx == 1: return YKHO.reverse(sdCG) UHFx = 1 yKcO = sdCG htXl = None Paff = None while sdCG: if UHFx == G1Hx: appj = sdCG.next sdCG.next = None Gi3G, sdCG = YKHO.r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gxwV(sdCG, G1Hx):\n Vo9x = o7DN(0)\n Vo9x.next = sdCG\n THkp = Vo9x\n yKcO, J3uN = (sdCG, THkp)\n while yKcO is not None:\n for YRbF in range(G1Hx):\n J3uN = J3uN.next\n if J3uN is None:\n return Vo9x.next\n x19x = J3uN.next\n yKcO, J3uN ...
[ "0.84436864", "0.8111137", "0.8103449", "0.7990999", "0.79510933", "0.7950899", "0.7893289", "0.76738334", "0.7522855", "0.7510759", "0.7367337", "0.72533697", "0.71891814", "0.7039521", "0.703322", "0.6992243", "0.69287837", "0.68928343", "0.6852402", "0.68484056", "0.681557...
0.74853706
10
A function to segregate even and odd numbers in the linked list.\n [TC=O(n)/SC=O(1)]
def hRiJ(YKHO, sdCG=None): if not sdCG: sdCG = YKHO.head Juxh = None mKkh = None Yn6e = None htXl = None while sdCG: if sdCG.val % 2 != 0: if not Juxh: Juxh = sdCG if not mKkh: mKkh = sdCG else: m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cLIG(yv6U: List[int]) -> x1iM[int]:\n vf3I, C_CQ = (0, len(yv6U) - 1)\n while vf3I < C_CQ:\n if yv6U[vf3I] % 2 == 0:\n vf3I += 1\n else:\n yv6U[vf3I], yv6U[C_CQ] = (yv6U[C_CQ], yv6U[vf3I])\n C_CQ -= 1\n return yv6U", "def jPLs(yv6U):\n _s5Q = []\n ...
[ "0.7537751", "0.7066734", "0.6997888", "0.6979697", "0.6944371", "0.69394416", "0.6867518", "0.6840828", "0.6797563", "0.6731903", "0.67211926", "0.6695914", "0.6687683", "0.66552967", "0.6628224", "0.6600959", "0.65906525", "0.6583189", "0.65596414", "0.6558527", "0.6554084"...
0.75417054
0
The object identifier associated with the Azure Stack device connecting to Azure.
def PWo5(YKHO) -> str: return qe4Y.get(YKHO, 'device_object_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def ShR8(YKHO):\n return YKHO._innogy_device.id", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def NBcv(YKHO) -> str:\n return qe4Y...
[ "0.7244091", "0.7244091", "0.70270956", "0.6967051", "0.6967051", "0.6935474", "0.6882629", "0.6845806", "0.68262374", "0.68010557", "0.68010557", "0.6796181", "0.6787584", "0.6752122", "0.6752122", "0.674476", "0.674239", "0.674239", "0.6729822", "0.67138296", "0.66600484", ...
0.77187896
0
ID of the resource.
def id(YKHO) -> str: return qe4Y.get(YKHO, 'id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO):\n return YKHO._resource_id", "def id(YKHO):\n return YKHO._getValue('resource-id')", "def PcW4(YKHO) -> str:\n return YKHO.__resource_id", "def PcW4(YKHO):\n raise NotImplementedError()", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:...
[ "0.89963454", "0.8903709", "0.8508965", "0.8495583", "0.8481617", "0.8481617", "0.8481617", "0.84309727", "0.8354592", "0.83387667", "0.8214729", "0.80259675", "0.7940199", "0.7940199", "0.7940199", "0.7940199", "0.7940199", "0.79299307", "0.7900974", "0.7897617", "0.7897617"...
0.76819086
72
The identifier associated with the device subscription.
def laSb(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'linked_subscription_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JuHa(YKHO) -> str:\n return qe4Y.get(YKHO, 'subscription_id')", "def JuHa(YKHO) -> str:\n return qe4Y.get(YKHO, 'subscription_id')", "def JuHa(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subscription_id')", "def JuHa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'subscription_id')", "d...
[ "0.8338204", "0.8338204", "0.77434176", "0.77078974", "0.7498821", "0.7490811", "0.7461283", "0.7461283", "0.7461283", "0.7461283", "0.7461283", "0.74159104", "0.7411195", "0.7411195", "0.7394062", "0.73625433", "0.7354825", "0.7354825", "0.7352019", "0.7343465", "0.7285024",...
0.6863481
64
Name of the resource.
def mWFP(YKHO) -> str: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._resource_name", "def kFeU(YKHO):\n return YKHO._resource_name", "def kFeU(YKHO):\n return YKHO.__resource_name", "def kFeU(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_name')", "def IhID(Emd4):\n return 'name'", "def mWFP(YKHO) -> ZHT8.ResourceName:\n r...
[ "0.92041606", "0.899139", "0.89776903", "0.88771373", "0.84507245", "0.8301838", "0.82765496", "0.82765496", "0.82270175", "0.8158751", "0.8049978", "0.80246156", "0.8005692", "0.7985773", "0.7729387", "0.7661662", "0.7661662", "0.7661662", "0.7661662", "0.7650472", "0.762955...
0.7618751
58
The identifier associated with the device registration.
def lsNO(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'registration_resource_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jf3N(YKHO):\n return YKHO.unique_id", "def ShR8(YKHO):\n return YKHO.device.id", "def ShR8(YKHO) -> str:\n return YKHO._device.device_id", "def ShR8(YKHO):\n return YKHO._device.device_id", "def ShR8(YKHO):\n return YKHO._device.device_id", "def jf3N(YKHO) -> str:\n return qe4Y.get(...
[ "0.8155006", "0.80708784", "0.8053679", "0.8041327", "0.8041327", "0.8024979", "0.8024979", "0.79604745", "0.795064", "0.79431695", "0.79407483", "0.785641", "0.785641", "0.7851609", "0.78238463", "0.78238463", "0.7788196", "0.77760947", "0.77513933", "0.7730934", "0.7696796"...
0.7121049
80
Merges two sorted lists recursively. >>> merge([1, 3, 5], [2, 4, 6]) [1, 2, 3, 4, 5, 6] >>> merge([], [2, 4, 6]) [2, 4, 6] >>> merge([1, 2, 3], []) [1, 2, 3] >>> merge([5, 7], [2, 4, 6]) [2, 4, 5, 6, 7]
def vGZu(zznG, Wd5v): """*** YOUR CODE HERE ***""" jtyf, V70B = (len(zznG), len(Wd5v)) KCHu = [] YRbF, r845 = (0, 0) while YRbF < jtyf and r845 < V70B: if zznG[YRbF] <= Wd5v[r845]: KCHu = KCHu + [zznG[YRbF]] YRbF += 1 else: KCHu = KCHu + [Wd5v[r845...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGZu(LFlW, _tIi):\n if not LFlW:\n return _tIi\n if not _tIi:\n return LFlW\n if LFlW[0] < _tIi[0]:\n return [LFlW[0]] + vGZu(LFlW[1:], _tIi)\n return [_tIi[0]] + vGZu(LFlW, _tIi[1:])", "def vGZu(LFlW, _tIi):\n if len(LFlW) * len(_tIi) == 0:\n return LFlW + _tIi\n ...
[ "0.75500166", "0.7479607", "0.7428769", "0.72811764", "0.7277792", "0.72669005", "0.7227435", "0.7213894", "0.7180628", "0.7170667", "0.716291", "0.71441936", "0.7069748", "0.70519406", "0.70272064", "0.70111287", "0.6999902", "0.69925195", "0.6982051", "0.69809306", "0.69541...
0.0
-1
Get aws config file path from environment
def zF9K(YKHO): return Hy7s.environ.get(uwaB.AWS_CONFIG_PATH_ENV_VAR_NAME)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S673():\n return Hy7s.getenv('NESTOR_CONFIG_PATH')", "def ArMa():\n return Hy7s.environ.get('SYNAPSE_CONFIG_PATH', Q2bU.client.CONFIG_FILE)", "def p_3N():\n return Hy7s.environ.get('PULP_SMASH_CONFIG_FILE', 'settings.json')", "def gLaz():\n try:\n BHHb['ENV_PATH']\n except KeyError:...
[ "0.76597726", "0.7633286", "0.75058556", "0.74927306", "0.73916316", "0.7370322", "0.73514676", "0.73306626", "0.72982234", "0.72056305", "0.71735996", "0.71279", "0.7113914", "0.7072622", "0.6995801", "0.6968159", "0.6905262", "0.6867395", "0.68574744", "0.68285066", "0.6814...
0.893358
0
Return the user object whose email address is ``email``.
def CP7V(Emd4, D3lj): return GhOX.query(Emd4).filter(Emd4.email_address == D3lj).first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYTf(Emd4, D3lj):\n return Emd4.query.filter_by(email=D3lj).one()", "def CYTf(Emd4, D3lj):\n CBIr = mv1M.query.filter(mv1M.email == D3lj).first()\n return CBIr", "def CYTf(D3lj: str) -> mv1M:\n return DQE7(mv1M, mv1M.email, D3lj)", "def CYTf(YKHO, D3lj: str) -> mv1M:\n return mv1M().get_by...
[ "0.9007129", "0.89451736", "0.88622034", "0.88602185", "0.87956774", "0.8786207", "0.87812555", "0.8775062", "0.8774389", "0.8769141", "0.87498254", "0.870799", "0.87069297", "0.8705377", "0.8696851", "0.8695541", "0.8682459", "0.86726636", "0.8652948", "0.86449385", "0.86411...
0.0
-1
Hash ``password`` on the fly and store its hashed version.
def m_qJ(YKHO, jTXt): kg40 = jTXt if isinstance(jTXt, QMSQ): tDWO = jTXt.encode('UTF-8') else: tDWO = jTXt NTfD = B2KD() NTfD.update(Hy7s.urandom(60)) hash = B2KD() hash.update(tDWO + NTfD.hexdigest()) kg40 = NTfD.hexdigest() + hash.hexdigest() if not isinstance(kg40,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)", "def qzFd(jTXt: str):\n return jf1V.hash...
[ "0.8339944", "0.8339944", "0.831834", "0.8281688", "0.7923743", "0.79195917", "0.79195917", "0.7899813", "0.78895307", "0.78759265", "0.7819188", "0.776222", "0.77621055", "0.7728389", "0.76983523", "0.7690273", "0.7666041", "0.7665516", "0.76580423", "0.7644685", "0.7589644"...
0.0
-1
Return the hashed version of the password.
def QVq7(YKHO): return YKHO._password
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaVN(Emd4, jTXt: str) -> str:\n return jf1V.hash(jTXt)", "def kaVN(jTXt):\n return jf1V.hash(jTXt)", "def kaVN(YKHO, jTXt) -> str:\n return YKHO.pwd_context.hash(jTXt)", "def a2tF(jTXt):\n return B8ni.hashpw(jTXt.encode('utf-8'), B8ni.gensalt())", "def kaVN(jTXt: str):\n return jf1V.hash...
[ "0.8270324", "0.8219192", "0.8207896", "0.82000995", "0.8161713", "0.81462765", "0.8138622", "0.80877197", "0.8085041", "0.8078438", "0.8078438", "0.80645514", "0.8062632", "0.8056538", "0.8040849", "0.80285496", "0.80235326", "0.80136126", "0.801312", "0.8009189", "0.7996763...
0.0
-1
Return list of family members IDs.
def nO3s(YKHO) -> list[str]: return YKHO.family.members_ids
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gp6O(YKHO):\n xibX = ''\n cntZ = True\n for r8hN in YKHO.members.all():\n if cntZ:\n xibX += str(r8hN.id)\n cntZ = False\n else:\n xibX += ',' + str(r8hN.id)\n return xibX", "def bMVo(YKHO, Po24):\n return", "def dr2h(YKHO):\n dixj = []\n ...
[ "0.74310386", "0.6750556", "0.6693543", "0.6612502", "0.6602993", "0.659649", "0.6584629", "0.65719736", "0.65347093", "0.65101063", "0.6483487", "0.6481452", "0.6453231", "0.64320403", "0.6379135", "0.63730043", "0.636506", "0.636506", "0.63541937", "0.63254803", "0.62704605...
0.8610075
0
Return the family variant genotype flattened to a 1d array.
def W7ox(YKHO) -> oyIN.ndarray: assert YKHO.gt is not None return YKHO.gt.flatten(order='F')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afxS(YKHO) -> list[list[int]]:\n assert YKHO.gt is not None\n wvib = zip(YKHO.allele_indexes, YKHO.family_allele_indexes)\n Bnzw = oyIN.zeros(shape=YKHO.gt.shape, dtype=oyIN.int8)\n for jr6f, ZPms in wvib:\n Bnzw[YKHO.gt == jr6f] = ZPms\n return [list(Bnzw[:, r8hN]) for r8hN in range(Bnzw...
[ "0.65773", "0.65679723", "0.6119233", "0.60992146", "0.607755", "0.6054561", "0.6048595", "0.6048595", "0.5988584", "0.59776425", "0.5878731", "0.5838908", "0.5786779", "0.5785652", "0.576651", "0.57498175", "0.5747284", "0.5747284", "0.57395166", "0.573808", "0.56959945", ...
0.5697231
20
Return list of sexes that are affected by this variant in family.
def WSZu(YKHO) -> list[h8nf[Y8W3]]: if YKHO._variant_in_sexes is None: YKHO._variant_in_sexes = [YKHO.family.persons[Ii1o].sex if Ii1o is not None else None for Ii1o in YKHO.variant_in_members] return YKHO._variant_in_sexes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rlxZ(YKHO):\n return YKHO.exclude(sex__in=['male', 'female'])", "def IoKf(YKHO):\n hR7O = pp0i.__iter__()\n uvH_ = []\n xWiE = True\n while xWiE:\n try:\n EE3v = hR7O.next()\n uvH_.append(EE3v.title)\n except StopIteration:\n xWiE = False\n ret...
[ "0.6304542", "0.62055767", "0.6052152", "0.5922023", "0.58731806", "0.5754776", "0.5752923", "0.5734586", "0.567637", "0.56697893", "0.56577957", "0.5611734", "0.56031966", "0.5595291", "0.5573682", "0.55258584", "0.5513297", "0.54602945", "0.54571134", "0.54295236", "0.54162...
0.84074163
0
Return True if all alleles in the variant are `unknown`.
def yqP0(YKHO) -> bool: assert YKHO.gt is not None return WXCF(YKHO.gt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqP0(YKHO) -> bool:\n return all(map(lambda QlGa: QlGa.is_unknown, YKHO.word_iter()))", "def ChMY(YKHO):\n for BWXx in YKHO.__encountered_word:\n if not BWXx:\n return False\n return True", "def yqP0(YKHO) -> bool:\n return YKHO.word == YKHO.UNKNOWN_TOKEN", "def BEIq(YKHO):\...
[ "0.7359584", "0.6516596", "0.6396791", "0.63947725", "0.6194291", "0.6086488", "0.60713613", "0.59667283", "0.59534633", "0.59512573", "0.59223855", "0.5871699", "0.58512676", "0.5847164", "0.58400977", "0.5833462", "0.5821325", "0.5808601", "0.5796111", "0.578919", "0.576202...
0.7328318
1
Checks received against expected, and returns whether or not they match (True if they do, False otherwise). If the argument is a float, will do an approximate check. If the arugment is a data structure will do an approximate check on all of its contents.
def qO5B(aEqx, CGbw): try: if type(aEqx) == dict: return aEqx.keys() == CGbw.keys() and all([qO5B(aEqx[G1Hx], CGbw[G1Hx]) for G1Hx in aEqx.keys()]) elif type(aEqx) == list or type(aEqx) == set: return len(aEqx) == len(CGbw) and all([qO5B(hQHm, jlSq) for hQHm, jlSq in zip(aEqx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENxK(YKHO):\n input = Qyor([LryA(zZ1q('foo'), [cpkQ('a', uCc1())], yAt4(Kqvv()), n3Kt([cpkQ('b', cQpX(3, Kqvv())), RXLT(zZ1q('b'))])), LryA(zZ1q('main'), [], cqEx(), n3Kt([cpkQ('a', tFgz()), cpkQ('b', uCc1()), qx2M('=', _lnX(QXuD(zZ1q('foo'), [zZ1q('b')]), yYeT(1)), qx2M('>', zZ1q('b'), zZ1q('a')))]))])\n ...
[ "0.6847576", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "0.6777445", "...
0.6947422
0
Checks received against expected, throws an AssertionError if they don't match. If the argument is a float, will do an approximate check. If the arugment is a data structure will do an approximate check on all of its contents.
def LLrw(aEqx, CGbw): assert qO5B(aEqx, CGbw), f'Failed: Expected {aEqx}, but received {CGbw}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zqvr(zXzD, aEqx):\n WEM8 = True\n Lmia(YKHO.wrap(zXzD).as_float(), aEqx)", "def bbRj(YKHO, jzdc, Fg_i, RA_F=0.0001):\n try:\n if len(jzdc) != len(Fg_i):\n raise AssertionError('array length: %d != %d' % (len(jzdc), len(Fg_i)))\n for YRbF in range(0, len(jzdc)):\n ...
[ "0.70805323", "0.6953383", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717", "0.69269717",...
0.0
-1
Builds a new AMRDetection object.
def FIMM(YKHO, r0HC: ResfinderBlastDatabase, KRqu, GEhv: PointfinderBlastDatabase=None, XnUp: bool=False, kmfe: str=None, zz4a: list=[], bU0Y: ComplexMutations=None, FtdB: PlasmidfinderBlastDatabase=None) -> None: YKHO._resfinder_database = r0HC YKHO._amr_detection_handler = KRqu YKHO._pointfinder_database ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cc7Y(YKHO, VSSy: AbstractAI) -> zHBR:\n pass", "def uA8U(YKHO):\n pSjj = PNq_()\n jzdc = Ecyr(pSjj, alnfile=YKHO.__model_alignment, knowns=f'{YKHO.__unique_template}A', sequence=YKHO.__sequenceCode, assess_methods=(sK1t.DOPE, sK1t.GA341))\n jzdc.starting_model = 1\n jzdc.ending_model = 5\n ...
[ "0.5856908", "0.53277385", "0.5260108", "0.52302414", "0.5226086", "0.5169244", "0.5120055", "0.511786", "0.5054505", "0.5029915", "0.50259423", "0.501975", "0.501267", "0.49911734", "0.4964731", "0.49645686", "0.4958354", "0.4957515", "0.49526542", "0.4946586", "0.49459943",...
0.0
-1
Checks if path is valid and converts it to compatible string.
def wlYV(pmON): try: ShIM(pmON) _yzm = Hy7s.path.normpath(pmON) if a9EH.system() == 'Windows': _yzm = _yzm + '\\' elif a9EH.system() in ('Linux', 'Darwin'): _yzm = _yzm + '/' return _yzm except (sUXu, OSError) as e: print(f'{tTpl}\n', file=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YYOZ(pmON):\n return str", "def ichz(pmON):\n if isinstance(pmON, _jPd):\n return GkAb(pmON)\n else:\n return pmON", "def Dt2g(YKHO):\n Mkmy = OyQC(obj='/../badwolf')\n assert isinstance(Mkmy, oAb3.Path)\n if fjEm:\n assert format(Mkmy).endswith('badwolf')\n else:\...
[ "0.8187113", "0.7128463", "0.70442086", "0.70424616", "0.70308954", "0.6877005", "0.68444556", "0.6835156", "0.68185246", "0.68098223", "0.6809364", "0.68034476", "0.6779341", "0.6716431", "0.67130524", "0.6697417", "0.668178", "0.6651472", "0.66210234", "0.65772873", "0.6548...
0.0
-1
Initialize the `GravitationalWave` class.
def FIMM(YKHO, a1PO, LVAh, cwnp=True): super().__init__(a1PO, LVAh, cwnp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.sensor = pBiD.initialize()", "def FIMM(YKHO):\n YKHO.g = 9.81\n YKHO.state_dims = 2\n YKHO.vmax = 6.0\n YKHO.state_range = oyIN.array([[0, 2 * oyIN.pi], [-YKHO.vmax, YKHO.vmax]])\n YKHO.delta_t = 0.1\n YKHO._internaldt = 0.01\n YKHO._integration_ratio = int(round(YK...
[ "0.62035745", "0.6191054", "0.6092903", "0.6092903", "0.60401815", "0.5969472", "0.5934337", "0.5906773", "0.5906326", "0.5892219", "0.5878677", "0.5837528", "0.5830108", "0.58071613", "0.5801165", "0.5797991", "0.57977647", "0.5792345", "0.57806677", "0.57777536", "0.5777753...
0.0
-1
Check if the file is parseable as CSV by the pandas library. This will try to load the file as CSV into a pandas dataframe and discard the output
def ySrt(JzH2): try: jQ3Z = rLdf.read_csv(JzH2, error_bad_lines=True) G9jH.info(f'Readable as a CSV file: {JzH2}') except: G9jH.error(f'Failed to read as CSV file: {JzH2}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxyL(gIsw, Cejq=False):\n xYvp = ['int16', 'int32', 'int64', 'float16', 'float32', 'float64']\n Nqlg = Ki2L(gIsw)\n if not Nqlg:\n return (False, 'File is empty')\n Nqlg = ''.join(Nqlg)\n try:\n pMVb = m6_J.Sniffer().sniff(Nqlg, delimiters=',|;\\t')\n except Exception:\n ...
[ "0.72496766", "0.686533", "0.6756868", "0.66838455", "0.66301775", "0.6548125", "0.65435857", "0.654219", "0.65132666", "0.6445397", "0.62925625", "0.62883157", "0.62810606", "0.62478364", "0.62449974", "0.62414396", "0.6208394", "0.6207632", "0.6191946", "0.6174998", "0.6159...
0.82210195
0
Reset the drawing stack to the clean and empty stack.
def yD4P(YKHO): YKHO._reset()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk(YKHO):\n YKHO._stack = []", "def SiRx(YKHO):\n YKHO.state = 'ground'\n YKHO.prev_state = None\n YKHO.next_state = None\n YKHO.history = []\n YKHO.main_screen.clear()\n YKHO.alt_screen.clear()\n YKHO.screen = YKHO.main_screen\n YKHO.row = 0\n YKHO.col = 0\n YKHO.saved_cur...
[ "0.7607789", "0.7175732", "0.71704155", "0.7113711", "0.71114993", "0.70971274", "0.7091061", "0.70639217", "0.7031032", "0.70008886", "0.6946793", "0.69408435", "0.6906119", "0.68996036", "0.6892026", "0.6888557", "0.6880947", "0.68628454", "0.68511075", "0.6847086", "0.6814...
0.0
-1
Returns the width of the current page.
def TVTK(YKHO): if YKHO._width is None: return 1000 return YKHO._width
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XO1t(YKHO):\n return YKHO._page_width", "def XO1t(YKHO):\n return YKHO._page_width", "def V8C_(YKHO):\n return YKHO.current().get_width()", "def V8C_(YKHO):\n return YKHO._width", "def V8C_(YKHO):\n return YKHO._w", "def TVTK(YKHO):\n return YKHO._internal.get_width()", "def V8C_(...
[ "0.8497619", "0.8497619", "0.7835058", "0.7555904", "0.74535733", "0.7412616", "0.741252", "0.73863786", "0.73863786", "0.73863786", "0.73863786", "0.73863786", "0.73863786", "0.73722076", "0.736906", "0.736906", "0.736906", "0.734162", "0.7336746", "0.7336746", "0.73254216",...
0.7087788
67
Skew the canvas with given `angle1` and `angle2`. If only one argument is provided a proportional skew is applied. The center of skewing can optionally be set via the `center` keyword argument. By default this is the origin.
def uRwD(YKHO, BYPJ, C_oE=0, hgjH=(0, 0)): BYPJ = epAf.radians(BYPJ) C_oE = epAf.radians(C_oE) YKHO.transform((1, epAf.tan(C_oE), epAf.tan(BYPJ), 1, 0, 0), hgjH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRwD(YKHO, H6ix=0, IUkI=0, LpaZ=False):\n from .affine import uRwD\n if LpaZ:\n YKHO = uRwD(geom=YKHO, x_angle=H6ix, y_angle=IUkI)\n return YKHO\n return uRwD(geom=YKHO, x_angle=H6ix, y_angle=IUkI)", "def PWzm(YKHO, bS2e=None, bRDp=None):\n Vj8B = pS2Q = None\n if bS2e is not Non...
[ "0.5012187", "0.5001066", "0.4875199", "0.4853464", "0.48032865", "0.45797476", "0.4557888", "0.45495886", "0.45054755", "0.45043424", "0.449193", "0.44520932", "0.44341964", "0.4398909", "0.43649113", "0.43564472", "0.43368292", "0.43108234", "0.43103737", "0.4294591", "0.42...
0.82848006
0
Returns a list of typesetted bounding boxes `((x, y, w, h), baseLineOffset, formattedSubString)`. A `box` could be a `(x, y, w, h)` or a bezierPath object. Optionally an alignment can be set.
def vKYL(YKHO, FUjE, FlUN, mIJV=None): if not isinstance(FUjE, (str, t2No)): raise TypeError("expected 'str' or 'FormattedString', got '%s'" % type(FUjE).__name__) W1TU = UQtd('CharactersBounds', ['bounds', 'baselineOffset', 'formattedSubString']) X7zS = list() pmON, (WKvO, LVAh) = YKHO._dummyCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cviu(ZHfW, MVIL, z9Rz):\n from scipy.ndimage.measurements import find_objects\n FlUN = find_objects(ZHfW.astype(int))[0]\n pvd3, jHsn = ZHfW.shape\n BQGg = max(0, int(FlUN[1].start - MVIL / z9Rz)) + 1\n bYzl = min(jHsn - 1, int(FlUN[1].stop + MVIL / z9Rz)) + 1\n h3cg = max(0, int(FlUN[0].star...
[ "0.6711252", "0.6285126", "0.6277485", "0.6265713", "0.624614", "0.6170798", "0.61615133", "0.61615133", "0.61615133", "0.61615133", "0.61615133", "0.61615133", "0.61615133", "0.61523557", "0.61387", "0.61300224", "0.6113019", "0.61109173", "0.6097637", "0.6071427", "0.603067...
0.5802973
45
Return all InputTags referenced by a module or pset, along with their values
def vxPT(yR_P): g4y1 = {} for mWFP in yR_P.parameterNames_(): xC3W = yR_P.__dict__[mWFP] if isinstance(xC3W, HlLx.InputTag): g4y1[mWFP] = xC3W.value() elif isinstance(xC3W, HlLx.VInputTag): for YRbF, wEf2 in enumerate(xC3W.value()): g4y1['%s[%d]' %...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g4y1(YKHO):\n return [XP5J for XP5J in YKHO._plugs.values() if XP5J.isInput()]", "def g4y1(YKHO):\n return YKHO.nodes('input')", "def Zo7w(YKHO):\n YKHO.get_vars()\n YKHO.get_params()\n YKHO.get_sets()", "def Zo7w(YKHO):\n return YKHO.inputs", "def uJLp(YKHO):\n return YKHO.params[...
[ "0.62893724", "0.61752254", "0.6160073", "0.6083263", "0.6067046", "0.60315657", "0.59462875", "0.5890799", "0.58831584", "0.58831584", "0.58831584", "0.58735275", "0.57887745", "0.5776129", "0.57554233", "0.57554233", "0.57554233", "0.57554233", "0.57554233", "0.57554233", "...
0.7268181
0
Construct a knot vector appropriate for the orderk interpolation.
def QhDS(WKvO, G1Hx): return cqkc.r_[(WKvO[0],) * G1Hx, WKvO, (WKvO[-1],) * G1Hx]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jHaz(YKHO):\n Avdc = YKHO._find_number_of_knots()\n Hi0U = 0.0\n rQNZ = 1.0\n Jz4I = Avdc - 2 * (YKHO._degree + 1)\n EAdr = 1.0 / (Jz4I + 1)\n x1fj = 0.0\n for YRbF in range(0, YKHO._degree + 1, 1):\n YKHO._knot_vector.append(Hi0U)\n for YRbF in range(0, Jz4I, 1):\n x1fj +...
[ "0.7589459", "0.7293292", "0.7015241", "0.6936064", "0.6787753", "0.6687056", "0.66833544", "0.64302754", "0.6412344", "0.64059985", "0.6324592", "0.62187254", "0.6189993", "0.6117854", "0.61067325", "0.6083851", "0.6079272", "0.6059958", "0.6054517", "0.6053683", "0.5953288"...
0.60616124
17
Test round trip JSON serialization
def GcbB(YKHO): kLQb = LrWE([1], frequencies=oyIN.linspace(int(100000000.0), int(150000000.0), int(20000000.0))) YKHO.assertRoundTripSerializable(kLQb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoPi(YKHO):\n YKHO._TestReadSerialized(YKHO._serializer, YKHO._json_dict)", "def QoPi(YKHO):\n YKHO._TestReadSerialized(YKHO._serializer, YKHO._json_dict)", "def ephY(YKHO):\n nPrm = {'a': ['b', 'c'], 'd': 1, 'e': 'foo'}\n YKHO.assertEqual(nPrm, Napc(nPrm))", "def FCYx(YKHO):\n nMY2 = qQXR...
[ "0.7525027", "0.7525027", "0.7340649", "0.7334643", "0.73038876", "0.7263834", "0.72627825", "0.7253797", "0.72011137", "0.7200889", "0.7155566", "0.7144377", "0.7136353", "0.70911884", "0.70911884", "0.70629865", "0.7052616", "0.70271343", "0.70142466", "0.6996084", "0.69909...
0.6308157
98
Test that the initial circuit is added to the experiment circuits correctly.
def gdkg(YKHO): DDLl = RU4f(experiment_helper=dJ_P(gate_name='measure', freq_offset=1000000.0, iq_cluster_centers=[((0.0, 0.0), (-1.0, 0.0))], iq_cluster_width=[0.2])) KA1t = Rv0t(1, name='initial_circuit') KA1t.x(0) XVA2 = LrWE([0], backend=DDLl, frequencies=[5000000000.0, 5050000000.0, 5100000000.0]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y9Zu(YKHO):\n pass", "def susm(YKHO, NArs):\n DPNn, LlXp = NArs\n DDLl = RU4f(experiment_helper=dJ_P(gate_name='measure', freq_offset=1000000.0, iq_cluster_centers=[((0.0, 0.0), (-1.0, 0.0))], iq_cluster_width=[0.2]))\n pw0K = LrWE([0], DDLl)\n try:\n pw0K.set_experiment_options(initial...
[ "0.77294046", "0.7698537", "0.767728", "0.74943864", "0.7239787", "0.7164908", "0.7151229", "0.7144906", "0.711794", "0.7098984", "0.7069991", "0.70491266", "0.6926986", "0.6836406", "0.6821151", "0.68163633", "0.67135555", "0.67066854", "0.66792417", "0.666541", "0.6598566",...
0.7153844
6
Test detection of invalid ``initial_circuit`` values.
def CV5x(YKHO, NArs): DPNn, LlXp = NArs DDLl = RU4f(experiment_helper=dJ_P(gate_name='measure', freq_offset=1000000.0, iq_cluster_centers=[((0.0, 0.0), (-1.0, 0.0))], iq_cluster_width=[0.2])) pw0K = LrWE([0], DDLl) with YKHO.assertRaises(eP6a, msg=f"Setting initial circuit to invalid '{LlXp}' did not fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Unhx(YKHO):\n if YKHO.C_in is None:\n raise Exception('You have to specify the initial conditions first.')\n if YKHO.scale_in is None:\n raise Exception('You have to specify the initial scale first.')\n if YKHO.scale_high is None:\n raise Exception('You have to specify the high sc...
[ "0.6603614", "0.65181875", "0.62000364", "0.6157907", "0.6144905", "0.61147857", "0.6074082", "0.60547507", "0.6043494", "0.6016248", "0.59925795", "0.59756523", "0.5862308", "0.5823181", "0.5817766", "0.5806615", "0.5805257", "0.57646245", "0.5736392", "0.5720312", "0.571814...
0.7232386
0
Prepend the element as the first one in the list while keeping the order of structure. O(1)
def qIuc(YKHO, BWXx): YKHO._head = YKHO.Node(BWXx, YKHO._head) YKHO._len += 1 if YKHO._len == 1: YKHO._tail = YKHO._head
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7SI(yv6U, BWXx):\n yv6U.remove(BWXx)\n yv6U.insert(0, BWXx)", "def e7SI(yv6U, BWXx):\n yv6U.remove(BWXx)\n yv6U.insert(0, BWXx)", "def qIuc(YKHO, ZfUD: Any) -> None:\n Esd_ = NSB4(ZfUD)\n Esd_.next = YKHO._first\n if YKHO._first != None:\n YKHO._first.prev = Esd_\n YKHO....
[ "0.76640034", "0.76640034", "0.7451151", "0.73970217", "0.7346343", "0.73300046", "0.7307443", "0.7247826", "0.72403127", "0.71966", "0.71035576", "0.70588976", "0.7033346", "0.6950382", "0.694049", "0.6935565", "0.6918803", "0.68713295", "0.6849209", "0.6842555", "0.68082374...
0.66245604
33
Gets the datetime for the beginning of the current term Return the datetime for the beginning of the current time where the month is Jan, May, Sept and the day is 1
def Spnx(): rg4j = m6Z7() while not CO1Q(rg4j): rg4j = rg4j - qcWV.timedelta(days=1) return rg4j
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(YKHO):\n return yo7_()", "def cTeD(Csk6):\n wzkt = qcWV.now()\n if Csk6 == None:\n Csk6 = wzkt\n if type(Csk6) == type(wzkt):\n Csk6 = Csk6.date()\n return Csk6.replace(day=1)", "def RSQo():\n return qcWV.now().replace(hour=0, minute=0, second=0, microsecond=0)", "def...
[ "0.7185463", "0.7150717", "0.71412134", "0.71317816", "0.6972999", "0.68184656", "0.67921126", "0.6759449", "0.67206264", "0.6682101", "0.6664399", "0.6661314", "0.66560143", "0.65953225", "0.65922314", "0.6569267", "0.6549841", "0.6547242", "0.65222025", "0.64914775", "0.645...
0.8617197
0
Fixes the given variable and converts it to a callable variable.
def T6La(Es0b): if Es0b.count('$') == 2: return Es0b[1:-1] else: try: h3Aq, DOuq = Es0b.split('.', 1) return f"kwargs['{h3Aq}'].{DOuq}" except ValueError: try: h3Aq, DOuq = Es0b.split('[', 1) return f"kwargs['{h3Aq}'][{D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w4H9(SRYB):\n if callable(SRYB):\n im04 = SRYB()\n else:\n im04 = SRYB\n return im04", "def xBs1(WKvO):\n return WKvO() if callable(WKvO) else WKvO", "def bM0u(KCHu: str) -> YrBT:\n\n def JfyU(Ty9i):\n return eval(KCHu)\n return JfyU", "def lT2H(YKHO, xqoZ):\n re...
[ "0.7843291", "0.60475934", "0.550939", "0.5509063", "0.54128027", "0.5406194", "0.5363004", "0.5340498", "0.53337973", "0.53125376", "0.52968013", "0.5256459", "0.52305686", "0.5202034", "0.5196339", "0.5191178", "0.5191178", "0.5172652", "0.5148782", "0.5145958", "0.51415914...
0.5125871
22
Creates two placeholder of shape (n_x,none) and (n_y,none)
def ajAQ(ZuM2, eV2A): EcVT = ZylS.placeholder(dtype=ZylS.float32, shape=(ZuM2, None), name='X') fuBA = ZylS.placeholder(dtype=ZylS.float32, shape=(eV2A, None), name='Y') return (EcVT, fuBA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajAQ(ZuM2, eV2A):\n EcVT = ZylS.placeholder(shape=(ZuM2, None), dtype=ZylS.float32)\n fuBA = ZylS.placeholder(shape=(eV2A, None), dtype=ZylS.float32)\n return (EcVT, fuBA)", "def ajAQ(ZuM2, eV2A):\n EcVT = ZylS.placeholder(ZylS.float32, shape=[ZuM2, None])\n fuBA = ZylS.placeholder(ZylS.float3...
[ "0.82108104", "0.8167793", "0.8107012", "0.8095223", "0.8058053", "0.80388016", "0.7869864", "0.77560127", "0.7428657", "0.7350339", "0.7198688", "0.71452415", "0.7052635", "0.6857978", "0.66973037", "0.6677317", "0.6446095", "0.6440911", "0.64402217", "0.64368004", "0.634149...
0.8234366
0
Convert array to single line string
def aGaE(EcVT, bLp4=', ', Y78L=' | ', FMLJ='{:.3g}', LXIT=('[ ', ' ]'), pLzl=True): if isinstance(EcVT, (list, tuple)): EcVT = P8oC.getvector(EcVT) def H6Oj(WKvO): KCHu = '' for r845, tTpl in enumerate(WKvO): if abs(tTpl) < 1e-12: tTpl = 0 if r845...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B8KE(qw7D):\n Mkmy = oyIN.array2string(qw7D, separator=', ', suppress_small=True)\n return ' '.join((zFiD.strip() for zFiD in Mkmy.splitlines()))", "def CplT(qw7D):\n return '\\n'.join(qw7D)", "def kfX1(qw7D):\n return ' '.join([ZfUD.strip() for ZfUD in repr(qw7D).split('\\n')])", "def CRCz(q...
[ "0.81605273", "0.78876203", "0.7492539", "0.73373985", "0.7293235", "0.7293235", "0.7145644", "0.7108725", "0.6965576", "0.6894225", "0.6849887", "0.68444616", "0.68302107", "0.67803925", "0.67662066", "0.676105", "0.6757203", "0.67402947", "0.66814196", "0.66766405", "0.6671...
0.0
-1
Basic 2frame conv model.
def k7B2(): QjBU = xEBh.basic_params1() QjBU.hidden_size = 64 QjBU.batch_size = 8 QjBU.num_hidden_layers = 3 QjBU.optimizer = 'Adam' QjBU.learning_rate_constant = 0.0002 QjBU.learning_rate_warmup_steps = 500 QjBU.learning_rate_schedule = 'constant * linear_warmup' QjBU.label_smoothin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cJ5i():\n C3ST = ileL()\n C3ST.name = 'cnn_yf_1'\n C3ST.add(yHwh(50, 5, data_format='channels_last', kernel_initializer='he_normal', input_shape=(243, 320, 1)))\n C3ST.add(GVKG())\n C3ST.add(MroH('relu'))\n C3ST.add(yHwh(50, 4))\n C3ST.add(GVKG())\n C3ST.add(MroH('relu'))\n C3ST.add(...
[ "0.687545", "0.6568842", "0.6487266", "0.6396855", "0.62347233", "0.62243634", "0.6213967", "0.6211032", "0.6141372", "0.6123319", "0.6107249", "0.60889184", "0.6080012", "0.6079761", "0.60765576", "0.60559195", "0.60217375", "0.6007454", "0.59972197", "0.59946096", "0.598504...
0.5697796
77
Return this DrawingObject's type.
def YwLH(YKHO): return 6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO.__type", "def FRul(YKHO):\n return YKHO.__type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n ...
[ "0.7570208", "0.7570208", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.7448628", "0.744548", "0.7444222", "0.74395156", "0.74395156", "0.74395156", "0.74395156", "0.74356127",...
0.0
-1
Unauthenticated users should not be able to access posts via APIListView
def zR0v(YKHO): bD7m = gxEw('posts') _hkX = YKHO.client.get(bD7m) YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_401_UNAUTHORIZED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NHs4(YKHO):\n geh0 = YKHO.client.get('/posts/')\n YKHO.assertEqual(401, geh0.status_code)\n YKHO.assertEqual('Unauthorized', geh0.status_text)", "def JJc5(YKHO):\n YKHO.client.credentials(HTTP_AUTHORIZATION='Bearer wrong_token')\n bD7m = gxEw('api-post-comments-create', kwargs={'version': 'v1'...
[ "0.7197004", "0.6844021", "0.66500217", "0.65699", "0.6523741", "0.6523741", "0.6507781", "0.649662", "0.64845526", "0.6461015", "0.6446185", "0.6438254", "0.64281446", "0.642277", "0.6411486", "0.6385507", "0.6363294", "0.629943", "0.62774193", "0.6271695", "0.6267952", "0...
0.63934404
15
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Returns a SQLite connection to the hub controller's primary database.
def lxP0(): UzPC = None try: UzPC = iHv3.connect(yal6) except Exception: print(Exception) raise NotImplementedError('TODO Errors here should be handled appropriately.') return UzPC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lxP0():\n return iHv3.connect(CfNs())", "def l8Qj():\n return iHv3.connect('../data/events.db')", "def GGod(YKHO):\n return iHv3.connect(YKHO.filename)", "def DcSJ():\n return iHv3.connect('./accounts.db')", "def GGod():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = iHv3...
[ "0.7677688", "0.76175755", "0.760386", "0.75206596", "0.7393711", "0.73874074", "0.7359748", "0.7346476", "0.73179346", "0.7308224", "0.7268354", "0.72682375", "0.7258282", "0.72563857", "0.7239588", "0.7239588", "0.72345316", "0.72321033", "0.71881956", "0.71881956", "0.7186...
0.0
-1