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
Gets an unsorted sequence of values.
def oKbK(YKHO): return YKHO.d.keys()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TSF4(YKHO, hkxX):\n wEf2 = []\n for YRbF in range(1, len(hkxX)):\n wEf2.append(hkxX[YRbF])\n return wEf2", "def Sae6(YKHO, fE52, mB6j):\n\n def LNkV(wEf2):\n \"\"\"Continuously yields the given value\"\"\"\n while True:\n yield wEf2\n if fE52 != mB6j:\n y...
[ "0.68395025", "0.65376776", "0.6513399", "0.6475322", "0.6339628", "0.63281965", "0.63075423", "0.6256406", "0.62059915", "0.6186508", "0.61488193", "0.61175627", "0.6117088", "0.6116854", "0.6105889", "0.61019284", "0.60908765", "0.6084912", "0.6067774", "0.6031542", "0.6020...
0.0
-1
Normalizes this PMF so the sum of all probs is fraction.
def NBqJ(YKHO, wA3x=1.0): if YKHO.log: raise ValueError('Pmf is under a log transform') wjRY = YKHO.Total() if wjRY == 0.0: raise ValueError('total probability is zero.') G9jH.warning('Normalize: total probability is zero.') return wjRY aM8h = float(wA3x) / wjRY for W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(YKHO):\n y0Da.stochastify_c(YKHO.plast)\n y0Da.stochastify_d(YKHO.frac)", "def BAZW(yOP5):\n if (PmPi := yOP5.sum()) != 0:\n yOP5 /= PmPi\n else:\n yOP5 = oyIN.ones(len(yOP5)) / len(yOP5)\n return yOP5", "def KF2g(YKHO):\n i9Rn = 0.0\n for YRbF in range(len(YKHO.val)...
[ "0.7239677", "0.6821269", "0.6790307", "0.67533094", "0.6750226", "0.67489886", "0.6610289", "0.6541931", "0.6538196", "0.6538196", "0.6518012", "0.64776033", "0.64765316", "0.64524883", "0.6425236", "0.6390322", "0.638805", "0.6312224", "0.62611586", "0.6240223", "0.622718",...
0.743872
1
Chooses a random element from this PMF.
def RHmZ(YKHO): if len(YKHO.d) == 0: raise ValueError('Pmf contains no values.') pan_ = tuKI.random() wjRY = 0.0 for WKvO, XP5J in YKHO.d.items(): wjRY += XP5J if wjRY >= pan_: return WKvO assert False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())", "def s4C4(YKHO):\n pass", "def To1S(YKHO):\n id = tuKI.sample(YKHO.only('id').all(), 1)\n return id[0]", "def Acvy(YKHO):\n return tuKI.choice(YKHO)", "def UI...
[ "0.7926503", "0.73517317", "0.72684914", "0.7106725", "0.7035872", "0.68949455", "0.6858592", "0.68305695", "0.68254673", "0.68111926", "0.6785028", "0.67842096", "0.6782231", "0.67794377", "0.6773018", "0.677272", "0.6738438", "0.67204493", "0.67104644", "0.670549", "0.67019...
0.0
-1
Checks whether the values in this histogram are a subset of the values in the given histogram.
def oASY(YKHO, Elif): for wEf2, QTg7 in YKHO.Items(): if QTg7 > Elif.Freq(wEf2): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NDFX(vcn7: dict, frOM: dict) -> bool:\n return all((H5ew in frOM and frOM[H5ew] == vcn7[H5ew] for H5ew in vcn7.keys()))", "def sASB(YKHO, twyM):\n if twyM.length() < YKHO.length():\n return False\n for U6D_ in YKHO.data.keys():\n if not twyM.contains(U6D_):\n return False\n ...
[ "0.66081184", "0.65816796", "0.64895767", "0.64425874", "0.63235474", "0.6305182", "0.62874246", "0.62684286", "0.6252739", "0.62428737", "0.62372875", "0.62372875", "0.61506253", "0.6130635", "0.61045676", "0.60485554", "0.6034889", "0.6027985", "0.6011706", "0.59788024", "0...
0.7049952
1
Initializes a Beta distribution.
def FIMM(YKHO, Cwt5=1, UqYS=1, mWFP=''): YKHO.alpha = Cwt5 YKHO.beta = UqYS YKHO.name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dytv(mWFP, Cwt5, UqYS):\n return im04(mWFP, h8io, (Cwt5, UqYS))", "def KBG_():\n return ZylS.zeros_initializer()", "def FIMM(YKHO, Cwt5: float=1.0, UqYS: float=1.0):\n super().__init__(Cwt5, UqYS)", "def PbJi(WKvO, jzdc, Fg_i):\n tjUW = UqYS(jzdc, Fg_i)\n LVAh = oyIN.power(WKvO, jzdc - 1) ...
[ "0.6972539", "0.68853396", "0.6867101", "0.6851721", "0.6780601", "0.67644626", "0.67282873", "0.67178035", "0.6666596", "0.6664413", "0.664046", "0.66389745", "0.66342115", "0.659618", "0.658242", "0.64744854", "0.6466211", "0.64330566", "0.6422103", "0.6386931", "0.6340636"...
0.5906038
81
Updates a Beta distribution.
def nSyy(YKHO, nPrm): kJiB, wZ4A = nPrm YKHO.alpha += kJiB YKHO.beta += wZ4A
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qp7v(YKHO):\n YKHO.beta = YKHO.beta_scale * 2 * oyIN.log(YKHO.ndim * YKHO.number_design_points * oyIN.square(oyIN.pi) * oyIN.square(YKHO.iteration + 1) / (6 * YKHO.delta))", "def vHuH(YKHO):\n if YKHO.hypothesis == 'equality':\n YKHO.beta = YKHO._beta\n YKHO.power = 1 - YKHO.beta\n eli...
[ "0.7472056", "0.7446616", "0.73290205", "0.7286158", "0.7276688", "0.7109806", "0.70274776", "0.70017254", "0.6988057", "0.6949107", "0.68893003", "0.6748775", "0.66572", "0.6575514", "0.6505737", "0.6489111", "0.64752495", "0.64246404", "0.6316919", "0.6306449", "0.6259182",...
0.5507818
86
Returns the CDF of this distribution.
def J_qL(YKHO, paSp=101): fUYa = [YRbF / (paSp - 1.0) for YRbF in range(paSp)] hnFq = [Zxt2.special.betainc(YKHO.alpha, YKHO.beta, WKvO) for WKvO in fUYa] YzER = TwCc(fUYa, hnFq) return YzER
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzER(YKHO, BWXx):\n return YKHO._normal.cdf(BWXx)", "def YzER(YKHO) -> ZvKj:\n return ZvKj(distribution=YKHO._distribution, method_name='cdf', name='CDF', parent=YKHO)", "def YzER(YKHO, WKvO):\n return YKHO.distr.cdf(WKvO)", "def YzER(YKHO) -> dtgG:\n return dtgG(distribution=YKHO._distributi...
[ "0.8083586", "0.8071905", "0.80520415", "0.7933854", "0.79202366", "0.789259", "0.7863979", "0.7771424", "0.77554053", "0.76536226", "0.76308507", "0.7500574", "0.74693185", "0.7456768", "0.7418096", "0.74023694", "0.73898816", "0.73399156", "0.73072505", "0.7290882", "0.7274...
0.6317611
83
clear the screen in case of GNU/Linux or windows
def efLM(): if Oz1B() == 'Linux': Hy7s.system('clear') if Oz1B() == 'Windows': Hy7s.system('cls')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I1Av():\n if a9EH.system() == 'Linux':\n Oz1B('clear')\n elif a9EH.system() == 'Windows':\n Oz1B('cls')", "def Y6_N():\n if Hy7s.name == 'posix':\n Hy7s.system('clear')\n elif Hy7s.name == 'nt':\n Hy7s.system('cls')", "def I1Av():\n if mWFP == 'nt':\n bGrB ...
[ "0.92029864", "0.9099913", "0.90377575", "0.9022506", "0.8998003", "0.893418", "0.8905827", "0.8904909", "0.8904909", "0.8904909", "0.8904909", "0.8896751", "0.88622457", "0.8838464", "0.8835318", "0.8822035", "0.8760677", "0.8753143", "0.8748981", "0.8737725", "0.86570394", ...
0.8578451
27
Add a vertex to the graph.
def ohmD(YKHO, oqUi): if oqUi in YKHO.vertices: print('WARNING: That vertex already exists') else: 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.72129834
79
Add a directed edge to the graph.
def rz7z(YKHO, hQHm, jlSq): if hQHm in YKHO.vertices and jlSq in YKHO.vertices: YKHO.vertices[hQHm].add(jlSq) else: raise IndexError('That vertex does not exist!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, tTpl: DirectedEdge):\n YKHO.adj_list[tTpl.from_()].add(tTpl)", "def WYRu(YKHO, hQHm, jlSq):\n if hQHm in YKHO.vertices:\n YKHO.vertices[hQHm].edges.add(jlSq)\n else:\n raise IndexError('That vertex does not exists!')", "def rz7z(YKHO, D70y):\n aF0O, Br5Q = D70y\n YKH...
[ "0.79309577", "0.7796649", "0.7781548", "0.7707968", "0.7668806", "0.7651581", "0.7651581", "0.7525708", "0.74792725", "0.745677", "0.74287933", "0.741344", "0.73661786", "0.73553336", "0.7293821", "0.7286357", "0.72765976", "0.7252291", "0.72504973", "0.7247043", "0.722701",...
0.0
-1
function to get payloads from txt file and return payloads in list format
def slhU(m5KI): pmON = str() if m5KI == 'xss': pmON = str(GkAb(xAKo).absolute().parent.parent / 'assessment/payloads/xss.txt') elif m5KI == 'bufferoverflow': pmON = str(GkAb(xAKo).absolute().parent.parent / 'assessment/payloads/BufferOverflow.txt') elif m5KI == 'common_parameters': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yETz(YKHO):\n if not YKHO.PAYLOADS_FILE:\n return []\n yETz = []\n VS_8 = kwpV(interpolation=None)\n VS_8.read_file(open(Ja5X(YKHO.CONFIG_DIR, YKHO.PAYLOADS_FILE)))\n N5Pj = d65s(YKHO.options)\n for XLMv in VS_8.sections():\n o8ew, JbyC = N5Pj.process_line(VS_8[XLMv]['payload'])...
[ "0.6922474", "0.67994255", "0.6505692", "0.6443137", "0.6407277", "0.6368269", "0.6352333", "0.63250756", "0.6239255", "0.6238311", "0.6236516", "0.62331074", "0.6232423", "0.62279063", "0.62156063", "0.61778593", "0.6153967", "0.61528087", "0.6148004", "0.6142745", "0.612955...
0.6887226
1
Returns cost for given parameters theta
def sSN_(q7In, g4y1, gXXc, qCv9, _Qec=0): return 1 / (2 * qCv9) * sum((W3ev(q7In, g4y1, qCv9) - gXXc[:qCv9].ravel()) ** 2) + _Qec / (2 * qCv9) * sum(q7In[1:] ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sSN_(YKHO, q7In: np.ndarray) -> oyIN.ndarray:\n pass", "def sSN_(YKHO, q7In):\n EcVT = YKHO.X\n LVAh = YKHO.y\n Ae2G = YKHO.lb\n r8hN = YKHO.m\n dbiM = oyIN.sum((oyIN.dot(EcVT, q7In) - LVAh) ** 2) / (2 * r8hN)\n lQ3t = Ae2G / (2 * r8hN) * oyIN.sum(q7In[1:] ** 2)\n Oa10 = dbiM + lQ3t\n...
[ "0.85398567", "0.8232479", "0.82154405", "0.809511", "0.7985964", "0.79573786", "0.7956145", "0.7889663", "0.7881653", "0.7867058", "0.78194135", "0.7809512", "0.77627957", "0.7728956", "0.7727726", "0.7697822", "0.7654181", "0.7652637", "0.7648513", "0.76403356", "0.7638359"...
0.0
-1
Replace any values that are negative with a reasonable positive value. The replacement value is the average of all the positive values, subject to slight noise so no returned values are the same.
def ioST(T6S7: [float]) -> [float]: gHOu = len([WKvO for WKvO in T6S7 if WKvO <= 0.0]) if gHOu == 0: return list(T6S7) T6S7 = oyIN.array(T6S7) xupD = [WKvO for WKvO in oyIN.where(T6S7 <= 0.0)[0]] h2ku = T6S7[T6S7 > 0.0] yviY = oyIN.mean(h2ku) bsoL = [1 + (tuKI.random() - 0.5) / 100 f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n4xJ(YKHO):\n YKHO.df[i9zc] = YKHO.df[i9zc].mask(YKHO.df[i9zc] < 0)", "def MlUE(YKHO, aZlQ=0):\n YKHO.array[YKHO.array < 0] = aZlQ", "def wwaT(nPrm):\n for rdlD in nPrm:\n for BWXx in rdlD:\n if BWXx == '-':\n rdlD[rdlD.index(BWXx)] = '-1'\n return nPrm", "def...
[ "0.78112227", "0.7168129", "0.6555656", "0.60896933", "0.60697025", "0.60603553", "0.6020367", "0.59996426", "0.59658563", "0.5949636", "0.59279245", "0.5925939", "0.5917991", "0.5860694", "0.5856078", "0.58515644", "0.5845463", "0.58426243", "0.5841609", "0.58335376", "0.583...
0.72263867
1
Draw a value from a Gaussian distribution, requiring it to be positive. If a negative value is sampled, return a value related to exp(val); thus all values are positive, but more negative values are closer to 0
def Sc3Z(yGTL: float, WTkW: float): wEf2 = oyIN.random.normal(loc=yGTL, scale=WTkW) if wEf2 < 0: EaX9 = epAf.exp(wEf2 / 10) / 100 return EaX9 return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)", "def IAWS(WKvO, nJ9F, WTkW):\n return oyIN.exp(-((WKvO - nJ9F) / WTkW) ** 2 / 2.0)", "def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(WKvO: float) -> float:\n return oyIN.exp(-(WKvO ** 2 / 2))", "def FUFQ(JBMS, nfqd, WKvO):\n Z9...
[ "0.71377265", "0.705563", "0.6953003", "0.69486916", "0.6941934", "0.6940697", "0.6842663", "0.6829319", "0.6780535", "0.67581993", "0.6699703", "0.6696065", "0.669202", "0.6670413", "0.6655889", "0.66093683", "0.65720475", "0.65610975", "0.6535863", "0.65327287", "0.64906555...
0.71905583
0
Returns an iterable of nodes in the neighborhood of the given `node` parameter.
def A_IW(YKHO, Q6kx): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QwJh(YKHO, Q6kx):\n return (pmON.to_node for pmON in YKHO.neighbors[Q6kx])", "def A_IW(YKHO, Q6kx):\n if Q6kx not in YKHO.nodes:\n return []\n return [jbXL[0] for jbXL in YKHO.inner.get(Q6kx, [])]", "def A_IW(YKHO, Q6kx):\n try:\n Aofo = list(YKHO._graph.neighbors(Q6kx))\n exce...
[ "0.8167422", "0.78922695", "0.7780606", "0.76932055", "0.76672494", "0.7495139", "0.7469881", "0.74368733", "0.7397252", "0.7390687", "0.73031706", "0.7266373", "0.7265031", "0.71770555", "0.71389043", "0.7019654", "0.7004352", "0.69542736", "0.6907873", "0.687677", "0.684025...
0.7467923
7
Calculate distance between generated and real point and make average.
def yCVo(YKHO, jpwO, wWvP): PKrx = 0 for YRbF in range(YKHO.window): PKrx += YKHO.count_distance(wWvP[YRbF][0], wWvP[YRbF][1], jpwO[YRbF][0], jpwO[YRbF][1]) PKrx = PKrx / YKHO.window if PKrx > 300: PKrx = 300 return PKrx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DYNc(YKHO, ywdi):\n eDKD = YKHO.calcdistanceFromRef(ywdi)\n return sum(eDKD) / len(eDKD)", "def Ayfi(YKHO, *, ZPYz: bool=True):\n YKHO.inspect\n WKvO, LVAh = (YKHO.x, YKHO.y)\n if YKHO.coordinate_system == 'll':\n WKvO, LVAh = _JMH.to_utm_in(lats=YKHO.y, lons=YKHO.y, epsg=YKHO.epsg, dat...
[ "0.66065073", "0.6508192", "0.6449099", "0.6264309", "0.6224044", "0.6184585", "0.6152449", "0.6106427", "0.60883874", "0.60703385", "0.6057323", "0.60349596", "0.6033774", "0.60299015", "0.6014175", "0.598487", "0.59847623", "0.5965727", "0.5944623", "0.59349895", "0.5932478...
0.75257397
0
Return a JSONfriendly representation of the object. Use a dictionary literal rather than builtin dict() to avoid builtin lookup costs. Do not simply return self.__dict__. It can be intercepted and mutated, adding, modifying or removing instance attributes as a result.
def l8Z8(YKHO): return {'name': YKHO.name, 'url': YKHO.url}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOg6(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n ...
[ "0.79942095", "0.7992664", "0.7992664", "0.7992664", "0.7992664", "0.7992664", "0.7992664", "0.799206", "0.7976474", "0.7976474", "0.7929269", "0.78636533", "0.7852006", "0.7852006", "0.78054583", "0.77722055", "0.77722055", "0.77722055", "0.7751881", "0.7750867", "0.77505493...
0.72370255
82
Return a JSONfriendly representation of the object. Use a dictionary literal rather than builtin dict() to avoid builtin lookup costs. Do not simply return self.__dict__. It can be intercepted and mutated, adding, modifying or removing instance attributes as a result.
def l8Z8(YKHO): return {'url': YKHO.url, 'name': YKHO.name, 'gender': YKHO.gender, 'birth_year': YKHO.birth_year, 'homeworld': YKHO.homeworld}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOg6(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n ...
[ "0.799408", "0.79918844", "0.79918844", "0.79918844", "0.79918844", "0.79918844", "0.79918844", "0.79916793", "0.7975662", "0.7975662", "0.7928731", "0.78636557", "0.7853314", "0.7853314", "0.7805154", "0.7773049", "0.7773049", "0.7773049", "0.7751027", "0.77508265", "0.77507...
0.773761
22
Return a JSONfriendly representation of the object. Use a dictionary literal rather than builtin dict() to avoid builtin lookup costs. Do not simply return self.__dict__. It can be intercepted and mutated, adding, modifying or removing instance attributes as a result.
def l8Z8(YKHO): return {'url': YKHO.url, 'name': YKHO.name, 'gravity': YKHO.gravity, 'climate': YKHO.climate, 'terrain': YKHO.terrain, 'population': YKHO.population}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOg6(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n ...
[ "0.7993995", "0.79923224", "0.79923224", "0.79923224", "0.79923224", "0.79923224", "0.79923224", "0.79919744", "0.79762095", "0.79762095", "0.7928721", "0.78628325", "0.78525597", "0.78525597", "0.77724135", "0.77724135", "0.77724135", "0.77517223", "0.775116", "0.7749697", "...
0.78053415
14
Return a JSONfriendly representation of the object. Use a dictionary literal rather than builtin dict() to avoid builtin lookup costs. Do not simply return self.__dict__. It can be intercepted and mutated, adding, modifying or removing instance attributes as a result.
def l8Z8(YKHO): return {'url': YKHO.url, 'name': YKHO.name, 'starship_class': YKHO.starship_class, 'model': YKHO.model, 'manufacturer': YKHO.manufacturer, 'dimensions': YKHO.dimensions, 'max_atmosphering_speed': YKHO.max_atmosphering_speed, 'hyperdrive_rating': YKHO.hyperdrive_rating, 'MGLT': YKHO.MGLT, 'crew': YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eOg6(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n ...
[ "0.7995503", "0.79935294", "0.79935294", "0.79935294", "0.79935294", "0.79935294", "0.79935294", "0.7992879", "0.7977253", "0.7977253", "0.793054", "0.7864423", "0.7853675", "0.7853675", "0.7805384", "0.7773868", "0.7773868", "0.7773868", "0.7752324", "0.7751798", "0.7751603"...
0.768167
32
Serializes basic objects (e.g., dictionaries and lists) as JSON using default encoder. Writes content to the provided filepath.
def uP8n(VqRE, nPrm): with open(VqRE, 'w', encoding='utf-8') as o1P6: qQXR.dump(nPrm, o1P6, ensure_ascii=False, indent=2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g6uP(VqRE, YEnM):\n with open(VqRE, 'w', encoding='utf-8') as o1P6:\n qQXR.dump(YEnM, o1P6, cls=osWM, ensure_ascii=False, indent=2)", "def oD7C(YKHO, qaEx):\n fGC9 = YKHO.to_dict()\n MnDN = BnWp()\n try:\n with open(qaEx, 'w') as yzQ0:\n yzQ0.write(MnDN.encode(fGC9))\n ...
[ "0.7404942", "0.702416", "0.69221246", "0.68513465", "0.6782109", "0.6709458", "0.66982883", "0.6692658", "0.66813755", "0.6632085", "0.6627269", "0.66048676", "0.659231", "0.65810686", "0.6580043", "0.656956", "0.65485466", "0.65199375", "0.6517714", "0.65037084", "0.6490099...
0.6483747
21
Serializes complex objects (e.g., composite class instances) as JSON by adding a CustomEncoder to the json.dump() call. Writes content to the provided filepath.
def g6uP(VqRE, YEnM): with open(VqRE, 'w', encoding='utf-8') as o1P6: qQXR.dump(YEnM, o1P6, cls=osWM, ensure_ascii=False, indent=2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO, V6eb, AEF4=False):\n B2fa = {'cls': OLFN.ComplexEncoder, 'sort_keys': True}\n if AEF4:\n B2fa['indent'] = 4\n with open(V6eb, 'w+') as eHNT:\n qQXR.dump(YKHO.to_dict(), eHNT, **B2fa)\n return True", "def oD7C(YKHO, qaEx):\n fGC9 = YKHO.to_dict()\n MnDN = BnWp()\n ...
[ "0.7282735", "0.67765015", "0.66610354", "0.65355074", "0.6499466", "0.64937365", "0.6452017", "0.6400815", "0.63871586", "0.63341975", "0.6333523", "0.6301922", "0.6282591", "0.62585", "0.62491494", "0.6242862", "0.6233929", "0.6209295", "0.6179215", "0.6161338", "0.61542404...
0.7622135
0
Constructor Can be passed a reference to an already existing ProjectTree if desired, otherwise it creates a new instance of this object.
def FIMM(YKHO, p_z1, av7k=None, NCqB='en_us'): super(XAg4, YKHO).__init__() YKHO.manager = p_z1 YKHO.setWindowTitle(bGrB('Project explorer')) YKHO.resize(800, 500) if not Hy7s.path.isfile(ZBJx): raise IOError('OSF logo not found at expected path: {}'.format(ZBJx)) gBbF = CsJA.QIcon(ZBJx)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, BldF, IVdp=None):\n YKHO.work_tree = BldF\n YKHO.buildable_projects = dict()\n YKHO.git_projects = dict()\n if not IVdp:\n IVdp = list()\n if YKHO.work_tree not in IVdp:\n IVdp.append(YKHO.work_tree)\n YKHO._load_projects(IVdp)", "def FIMM(YKHO, J_Es):\n YKHO.tre...
[ "0.6754721", "0.6702013", "0.65933037", "0.6588155", "0.6574279", "0.6526918", "0.6526918", "0.6502082", "0.65004945", "0.6350578", "0.6337756", "0.6279099", "0.6241873", "0.6241873", "0.62402225", "0.6229206", "0.62199205", "0.62116855", "0.61695045", "0.6106791", "0.6043476...
0.5750029
43
Check if the given point is on the sphere.
def ZGbh(ZQPE, cWFu, MxXY): ktCO = YKHO._elementsCount[2] w379 = YKHO._elementsCount[0] xTp2 = YKHO._elementsCount[1] WKvO = YKHO._shield3D.px return (ZQPE == ktCO or ZQPE == 0 or cWFu == 0 or (cWFu == w379) or (MxXY == 0) or (MxXY == xTp2)) and WKvO[ZQPE][cWFu][MxXY]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CaWi(WKvO, LVAh, epBp, r1VO=None):\n if (WKvO - JPqE) ** 2 <= r1VO ** 2:\n return True\n if (LVAh - fXzF) ** 2 <= r1VO ** 2:\n return True\n if (epBp - l592) ** 2 <= r1VO ** 2:\n return True\n else:\n return False", "def TG6l(XP5J, Mkmy, y4fz=oyIN.array([0, 0, 0])):\n ...
[ "0.7863473", "0.75174004", "0.7393617", "0.71154773", "0.71108", "0.7057944", "0.69713235", "0.6852389", "0.6687751", "0.6685356", "0.66746134", "0.6653439", "0.6651819", "0.6644071", "0.6637709", "0.66129845", "0.66087747", "0.6588635", "0.65426016", "0.6538099", "0.6527821"...
0.70633906
5
Check if the given point is on the sphere.
def ZGbh(YKHO, ZQPE, cWFu, MxXY): ktCO = YKHO._elementsCount[2] xTp2 = YKHO._elementsCount[1] rQ3h = YKHO._shield3D.px return (ZQPE == ktCO or cWFu == 0 or MxXY == xTp2) and rQ3h[ZQPE][cWFu][MxXY]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CaWi(WKvO, LVAh, epBp, r1VO=None):\n if (WKvO - JPqE) ** 2 <= r1VO ** 2:\n return True\n if (LVAh - fXzF) ** 2 <= r1VO ** 2:\n return True\n if (epBp - l592) ** 2 <= r1VO ** 2:\n return True\n else:\n return False", "def TG6l(XP5J, Mkmy, y4fz=oyIN.array([0, 0, 0])):\n ...
[ "0.7863473", "0.75174004", "0.7393617", "0.71154773", "0.71108", "0.70633906", "0.7057944", "0.6852389", "0.6687751", "0.6685356", "0.66746134", "0.6653439", "0.6651819", "0.6644071", "0.6637709", "0.66129845", "0.66087747", "0.6588635", "0.65426016", "0.6538099", "0.6527821"...
0.69713235
7
adds the given card to the collection. The 'normal' and 'foil' argument are expected in the POST request. They must be integers
def GMtK(S5Ok): L03z = OE02() if L03z.validate_on_submit(): c5ow.collection.add(card_id=S5Ok, data=L03z.data) return ('', 200) else: return (WsL5.jsonify(L03z.errors), 400)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lACn(YKHO, dxhl):\n YKHO.cards.append(dxhl)", "def lACn(YKHO, dxhl):\n YKHO.append(dxhl)", "def H2v5(YKHO, dxhl):\n YKHO.cards.append(dxhl)\n YKHO.savePile()", "def H2v5(YKHO, dxhl):\n YKHO.cards.append(dxhl)", "def H2v5(YKHO, dxhl):\n YKHO.cards.append(dxhl)", "def lACn(YKHO, dxhl)...
[ "0.72819805", "0.7265442", "0.71598446", "0.71560585", "0.71560585", "0.71478826", "0.71419823", "0.7130779", "0.7123068", "0.7119741", "0.7079489", "0.7078891", "0.70482993", "0.70482993", "0.70482993", "0.70482993", "0.70482993", "0.70482993", "0.70482993", "0.70482993", "0...
0.7347978
0
Adds a new card to the given deck
def wjOP(mWFP: str, S5Ok: int): L03z = sGH4() if L03z.validate_on_submit(): c5ow.collection.decks.add_card(mWFP, S5Ok, **L03z.data) return ('', 200) return (WsL5.jsonify(L03z.errors), 400)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lACn(YKHO, nf_0):\n YKHO.cards.append(nf_0.draw_card())", "def lACn(YKHO, nf_0):\n YKHO.cards.append(nf_0.pop_card())", "def lACn(YKHO, dxhl):\n if isinstance(dxhl, F1Hz):\n return YKHO.decks.append(dxhl)\n else:\n raise TypeError('card must be a Card object')", "def lACn(YKHO, ...
[ "0.8849503", "0.8709904", "0.84505373", "0.8402257", "0.8307353", "0.8304907", "0.8294826", "0.8291428", "0.8291428", "0.827843", "0.8271212", "0.8271212", "0.8271212", "0.8271212", "0.8271212", "0.8271212", "0.8271212", "0.8271212", "0.8271212", "0.8271212", "0.82657534", ...
0.7778685
44
Gets or creates model instances from list. If instance with name exists, gets instance, otherwise creates new instance.
def bVgM(mWFP, C3ST, vGfb): nPrm = vGfb.pop(mWFP) return list(map(lambda WKvO: C3ST.objects.get_or_create(name=WKvO['name'])[0], nPrm))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cDO8(Emd4, CXYT: str) -> Gr37:\n if CXYT not in vg4R.ALL_ACTIVITY_REFERENCE_LIST_TYPES:\n raise Exception('Invalid ActivityListModel id: %s' % CXYT)\n LEXu = Emd4.get(CXYT, strict=False)\n if LEXu is None:\n LEXu = Emd4(id=CXYT, activity_references=[])\n LEXu.update_timestamps()\n...
[ "0.65767884", "0.58969754", "0.58801246", "0.56467754", "0.5636779", "0.56170297", "0.5579585", "0.555853", "0.5513353", "0.5504271", "0.54759717", "0.54654866", "0.5450427", "0.5437495", "0.5408337", "0.5403418", "0.54015034", "0.53439206", "0.5330104", "0.52907974", "0.5282...
0.5780996
3
Returns boolean specifying whether user from request has edit permissions for the instance.
def zUuR(YKHO, YEnM): CBIr = YKHO.context['request'].user return YEnM.creator == CBIr or CBIr.is_staff or CBIr.is_superuser
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HnoJ(YKHO):\n return YKHO.protected_properties.requestingUserCanEdit", "def hO62(YKHO):\n return 'owner' in YKHO.permissions() and YKHO.editable()", "def hO62(YKHO, CBIr):\n if getattr(CBIr, 'is_admin', False):\n return True\n elif YKHO.is_managed:\n return False\n else:\n ...
[ "0.86245984", "0.83201796", "0.8287235", "0.8024643", "0.78327787", "0.7831899", "0.7825927", "0.78042924", "0.7737217", "0.77250123", "0.76205194", "0.7600923", "0.7544029", "0.7513683", "0.7436441", "0.73657465", "0.73285204", "0.7287087", "0.72804356", "0.7264549", "0.7197...
0.8364434
2
Returns boolean specifying whether user from request has edit permissions for the instance.
def zUuR(YKHO, YEnM): CBIr = YKHO.context['request'].user return YEnM.creator == CBIr or CBIr.is_staff or CBIr.is_superuser
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HnoJ(YKHO):\n return YKHO.protected_properties.requestingUserCanEdit", "def hO62(YKHO):\n return 'owner' in YKHO.permissions() and YKHO.editable()", "def hO62(YKHO, CBIr):\n if getattr(CBIr, 'is_admin', False):\n return True\n elif YKHO.is_managed:\n return False\n else:\n ...
[ "0.8625523", "0.83211637", "0.8287347", "0.80247825", "0.7833129", "0.78321165", "0.782707", "0.7805072", "0.7738683", "0.7724861", "0.76215947", "0.7601276", "0.75445443", "0.75149095", "0.7436053", "0.7366677", "0.73298216", "0.72876036", "0.7281596", "0.72649175", "0.71983...
0.8365123
1
The hierarchy of this TimeSeries, if any. If set, the hierarchy is encoded as a dictionary, whose keys are individual components and values are the set of parent(s) of these components in the hierarchy.
def gEYm(YKHO) -> h8nf[cuzp]: return YKHO._xa.attrs.get(HQZn, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gEYm(YKHO):\n yv6U = YKHO.parent.hierarchy if YKHO.parent else []\n yv6U.append(YKHO)\n return yv6U", "def CSyM(YKHO):\n return", "def CSyM(YKHO):\n return", "def gEYm(YKHO):\n QWcs = YKHO\n V_D6 = [QWcs._mapping_name]\n while QWcs._parent:\n V_D6.append(QWcs._parent._mappi...
[ "0.6640176", "0.6361594", "0.6361594", "0.6294062", "0.62381864", "0.62047803", "0.5982965", "0.5982965", "0.59755075", "0.58425254", "0.5729355", "0.5635155", "0.5602052", "0.5590553", "0.55767024", "0.5566219", "0.5563629", "0.55608296", "0.55597705", "0.552667", "0.5517885...
0.6172732
6
Whether this series is hierarchical or not.
def xrkt(YKHO) -> bool: return YKHO.hierarchy is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TWWW(YKHO):\n return", "def x80f(YKHO):\n return", "def loae(YKHO) -> bool:\n return YKHO.has_value() or YKHO.has_default()", "def seMD(YKHO):\n return", "def pz5D(YKHO) -> bool:\n if YKHO.symbol not in {'*', 'node', 'child', 'text', '(name)', ':', 'document-node', 'element', 'schema-ele...
[ "0.6329789", "0.6287133", "0.6126795", "0.6125063", "0.6119352", "0.6115039", "0.6079226", "0.6074223", "0.60559255", "0.60403275", "0.6039479", "0.6031008", "0.6029116", "0.6005917", "0.5990004", "0.5951269", "0.59288234", "0.5885839", "0.5861444", "0.5854535", "0.5852532", ...
0.6956001
0
The top level component name of this series, or None if the series has no hierarchy.
def jEt3(YKHO) -> h8nf[str]: return YKHO._top_level_component
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO) -> str | None:\n return YKHO.component.name if YKHO.component else None", "def mWFP(YKHO) -> str:\n if YKHO.is_root():\n return ''\n else:\n assert YKHO.parts\n return YKHO.parts[-1]", "def maxk(YKHO) -> str:\n return YKHO._component_name", "def ZcDZ(YKHO):\n ...
[ "0.7488653", "0.68085855", "0.6791958", "0.6764366", "0.6732072", "0.6675145", "0.66749007", "0.66749007", "0.66492194", "0.6640011", "0.6634974", "0.66217643", "0.6596909", "0.65850824", "0.65555346", "0.6513481", "0.6461097", "0.6458719", "0.6458719", "0.6423936", "0.641004...
0.80630445
0
The univariate series containing the single toplevel component of this series, or None if the series has no hierarchy.
def JwoM(YKHO) -> h8nf['TimeSeries']: return YKHO[YKHO.top_level_component] if YKHO.has_hierarchy else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UT6j(YKHO) -> h8nf[x1iM['TimeSeries']]:\n return YKHO[[Z9rn for Z9rn in YKHO.components if Z9rn in YKHO.bottom_level_components]] if YKHO.has_hierarchy else None", "def e_zv(YKHO):\n if YKHO in YKHO.layer.top_scenes:\n return YKHO\n elif YKHO.fparent is None:\n return None\n else:\n...
[ "0.6712311", "0.6361965", "0.6218028", "0.62173486", "0.60855854", "0.6077057", "0.6073437", "0.6034122", "0.598769", "0.5965324", "0.59580296", "0.59503037", "0.5894433", "0.5883338", "0.5872176", "0.5869614", "0.58448017", "0.584379", "0.5841868", "0.5822592", "0.5803596", ...
0.8283829
0
Number of samples contained in the series.
def cDK5(YKHO) -> int: return len(YKHO._xa.sample)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Toal(YKHO: BaseDataset) -> int:\n return YKHO.n_series", "def n1d8(YKHO):\n return YKHO.sample_count", "def n1d8(YKHO):\n return YKHO.sample_count", "def exwG(YKHO):\n return len(YKHO._samples)", "def VRbV(YKHO):\n return len(YKHO.samp_dict.keys())", "def UHFx(YKHO):\n return len(YK...
[ "0.82689226", "0.80567044", "0.80567044", "0.79564774", "0.7859541", "0.7854452", "0.7821048", "0.78052706", "0.779078", "0.7785059", "0.7782637", "0.77675706", "0.7719692", "0.77025783", "0.7639037", "0.76124203", "0.7604086", "0.7583765", "0.75638086", "0.75462574", "0.7501...
0.8025303
3
Whether this series is deterministic.
def DoX8(YKHO) -> bool: return YKHO.n_samples == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DoX8(YKHO):\n return YKHO._is_deterministic", "def uIDB(YKHO) -> bool:\n return not YKHO.is_deterministic", "def m_wo(YKHO):\n if len(YKHO.Initial) != 1:\n return False\n for aevO in YKHO.delta:\n for BhJz in YKHO.delta[aevO]:\n if BhJz == qGyE or len(YKHO.delta[aevO][B...
[ "0.7386743", "0.70502734", "0.67442906", "0.6463652", "0.64309156", "0.6414303", "0.63711137", "0.6254429", "0.6224187", "0.6187634", "0.61801326", "0.6170611", "0.6080051", "0.60584325", "0.60403854", "0.60301197", "0.6028453", "0.60185087", "0.6010647", "0.5998505", "0.5982...
0.7775334
0
Whether this series is stochastic (= probabilistic).
def xeOw(YKHO) -> bool: return YKHO.is_stochastic
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIDB(YKHO) -> bool:\n return not YKHO.is_deterministic", "def vi72(YKHO):\n return uIDB(YKHO.players, YKHO.noise)", "def vi72(YKHO):\n return uIDB(YKHO.players, YKHO.noise)", "def uIDB(Bwa6, ARTs):\n return ARTs or any((XP5J.classifier['stochastic'] for XP5J in Bwa6))", "def uIDB(Bwa6, ARTs...
[ "0.80981445", "0.7780932", "0.7780932", "0.7607746", "0.74673665", "0.7390937", "0.63434184", "0.6300553", "0.6285086", "0.6224388", "0.6177932", "0.61446685", "0.60680425", "0.6045788", "0.60417897", "0.60417897", "0.60417897", "0.60398096", "0.60398096", "0.59930694", "0.59...
0.800134
1
The dtype of the series' values.
def yDqo(YKHO): return YKHO._xa.values.dtype
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDqo(YKHO):\n return YKHO.value.dtype", "def yDqo(YKHO):\n return YKHO.x.dtype", "def yDqo(YKHO):\n if YKHO.values is not None and len(YKHO.values.shape) == 3:\n return oyIN.array(YKHO.values, copy=False).dtype\n else:\n return None", "def yDqo(YKHO):\n return YKHO._ds.dtype"...
[ "0.8262645", "0.8033256", "0.7999078", "0.79944617", "0.7965121", "0.7896075", "0.78587884", "0.78277874", "0.7810535", "0.7801165", "0.7801165", "0.7801165", "0.7801165", "0.77902734", "0.7748609", "0.7726391", "0.771787", "0.771787", "0.771787", "0.771787", "0.771787", "0...
0.8114871
1
The time index of this time series.
def it6R(YKHO) -> uLKX[rLdf.DatetimeIndex, rLdf.RangeIndex]: return YKHO._time_index.copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def it6R(YKHO):\n return YKHO._time_index", "def it6R(YKHO):\n if YKHO._time_index:\n return YKHO._time_index\n yt1z = []\n for a1PO in YKHO.file.TimesList:\n yt1z.append(rLdf.Timestamp(year=a1PO.get_Year(), month=a1PO.get_Month(), day=a1PO.get_Day(), hour=a1PO.get_Hour(), minute=a1PO.g...
[ "0.85297155", "0.81600076", "0.751712", "0.74855494", "0.7482798", "0.7479253", "0.74387884", "0.7144847", "0.70835966", "0.7055494", "0.69709885", "0.69511855", "0.69400406", "0.69303733", "0.6927596", "0.69162786", "0.6909526", "0.6909526", "0.6909526", "0.6906387", "0.6906...
0.7259903
7
Whether this series is indexed with a DatetimeIndex (otherwise it is indexed with an RangeIndex).
def iI8U(YKHO) -> bool: return YKHO._has_datetime_index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vgdo(YKHO) -> bool:\n return YKHO._is_time_series_index", "def GyzZ(YKHO) -> bool:\n return not YKHO._has_datetime_index", "def fHK6(jQ3Z: pd.DataFrame) -> bool:\n return jQ3Z.index.unique().inferred_freq is not None", "def e3eQ(dy_H, Zw42=('Unnamed: 0', 'pk', 'index', '')):\n if dy_H.name in...
[ "0.79947716", "0.74148506", "0.70525", "0.70074624", "0.70074624", "0.68317616", "0.66150993", "0.6592921", "0.6232279", "0.61465615", "0.61359936", "0.6079974", "0.60360354", "0.6004598", "0.59924567", "0.5971968", "0.59563017", "0.59309465", "0.58551097", "0.58534133", "0.5...
0.74799246
1
Whether this series contains static covariates.
def en0F(YKHO) -> bool: return YKHO.static_covariates is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UA1Z(YKHO):\n if len(YKHO.getBirds()) > 0:\n return False\n for A5aE in YKHO.getPigs():\n if A5aE.getVelocity() > 8:\n return False\n for _g9D in YKHO.getPolys():\n if _g9D.getVelocity() > 8:\n return False\n return True", "def Jc9u(YKHO) -> h8nf[rLdf.Da...
[ "0.6750307", "0.66636604", "0.6639144", "0.6447452", "0.63590103", "0.6294443", "0.62665313", "0.6205637", "0.61895925", "0.60653937", "0.5998404", "0.5953391", "0.5940458", "0.59403086", "0.592599", "0.58645165", "0.5835694", "0.58344173", "0.5834153", "0.582896", "0.5812226...
0.8574863
0
Converts this series to a new series with desired dtype.
def CVhi(YKHO, yDqo: Union[str, np.dtype]) -> uJDI: return YKHO.__class__(YKHO._xa.astype(yDqo))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CVhi(YKHO, yDqo):\n return YKHO._data.astype(yDqo)", "def CVhi(YKHO, yDqo):\n return YKHO._data.astype(yDqo)", "def CVhi(YKHO, yDqo):\n raise NotImplementedError", "def CVhi(YKHO, yDqo):\n UXqs = YKHO.copylabel()\n WKvO = YKHO.x.astype(yDqo)\n return eXg7(WKvO, UXqs, validate=False)", ...
[ "0.7257549", "0.7257549", "0.72331184", "0.6743791", "0.6680765", "0.66689", "0.6635615", "0.66148776", "0.6604716", "0.6498232", "0.6486703", "0.64515555", "0.6414137", "0.63538986", "0.6353172", "0.6273392", "0.6226572", "0.62130165", "0.6201693", "0.61818486", "0.6161118",...
0.71361065
3
Start time of the series. Returns Union[pandas.Timestamp, int] A timestamp containing the first time of the TimeSeries (if indexed by DatetimeIndex), or an integer (if indexed by RangeIndex)
def SWox(YKHO) -> uLKX[rLdf.Timestamp, int]: return YKHO._time_index[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZeRG(YKHO):\n return YKHO.data[0][0]", "def SWox(YKHO):\n return hA3p(YKHO.data.get('start_ms')) if YKHO.data.get('start_ms') != 0 else 0", "def SWox(YKHO):\n return YKHO.time_range()[0]", "def K4yx(YKHO):\n return aEIX(YKHO.start)", "def t2Xw(i8WE):\n lGE9 = i8WE.min()\n FdoN = lGE9....
[ "0.7538908", "0.6942941", "0.6866424", "0.68318677", "0.6819634", "0.67519814", "0.6702623", "0.6574212", "0.6561091", "0.6561091", "0.65190554", "0.64888823", "0.63881207", "0.6349201", "0.63409173", "0.63251984", "0.63032097", "0.6289005", "0.62742734", "0.62594944", "0.625...
0.8447318
0
End time of the series. Returns Union[pandas.Timestamp, int] A timestamp containing the last time of the TimeSeries (if indexed by DatetimeIndex), or an integer (if indexed by RangeIndex)
def C7pn(YKHO) -> uLKX[rLdf.Timestamp, int]: return YKHO._time_index[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tetj(YKHO):\n return aEIX(YKHO.end)", "def C7pn(YKHO):\n return YKHO.time_range()[1]", "def C7pn(YKHO):\n return hA3p(YKHO.data.get('end_ms')) if YKHO.data.get('start_ms') != 0 else 0", "def Tetj(YKHO):\n return YKHO._end_timestamp", "def C7pn(YKHO):\n return YKHO.inits[-1] + YKHO.durati...
[ "0.7177217", "0.7106052", "0.7102446", "0.7024276", "0.6889232", "0.68508226", "0.6849729", "0.68409014", "0.6833198", "0.681161", "0.6807222", "0.6794303", "0.6793695", "0.6793695", "0.6793695", "0.6792434", "0.6780479", "0.67725426", "0.67725426", "0.67725426", "0.67725426"...
0.86267567
0
Return a 2D array of dimension (component, static variable), containing the static covariate values of the TimeSeries.
def By6t(YKHO, jth9: bool=True) -> h8nf[oyIN.ndarray]: return YKHO.static_covariates.to_numpy(copy=jth9) if YKHO.has_static_covariates else YKHO.static_covariates
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ydle(YKHO, UksD):\n return YKHO.__melmix[:, UksD]", "def GvlY(YKHO):\n Rv0k = oyIN.shape(YKHO.pos)\n Ssnc = oyIN.zeros(4 + 3 * YKHO.ats * Rv0k[0] + Rv0k[0])\n Ssnc[0] = YKHO.timestep\n Ssnc[1] = YKHO.nclusts\n Ssnc[2] = YKHO.ats\n LMlj = Rv0k[0]\n Ssnc[3] = LMlj\n Q2SW = 4 + 3 * YK...
[ "0.60875475", "0.60594887", "0.6017011", "0.595548", "0.5934262", "0.5924066", "0.5902776", "0.5883116", "0.57902956", "0.57863444", "0.57634586", "0.57438225", "0.5700398", "0.5693572", "0.5686661", "0.5659108", "0.56430596", "0.55169433", "0.5513466", "0.54887235", "0.54885...
0.5673683
15
Make a copy of this series. Returns TimeSeries A copy of this time series.
def jth9(YKHO) -> uJDI: return YKHO.__class__(YKHO._xa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n jth9 = YKHO.copy_reg()\n jth9.assign_parent(YKHO.time_series)\n jth9.value_array = YKHO.value_array.copy()\n return jth9", "def F5lq(YKHO, jth9=True) -> rLdf.Series:\n YKHO._assert_univariate()\n YKHO._assert_deterministic()\n if jth9:\n return rLdf.Series(YKHO._xa[:...
[ "0.7613346", "0.7259902", "0.7256845", "0.7004543", "0.68352896", "0.678342", "0.6574878", "0.65390134", "0.6463745", "0.64249665", "0.6421886", "0.6391875", "0.6292795", "0.6252135", "0.62435263", "0.62324053", "0.6221059", "0.61224467", "0.6119336", "0.6105469", "0.6086005"...
0.822146
0
Converts a point along the time axis index into an integer index ranging in (0, len(series)1).
def b3hQ(YKHO, AU8u: Union[pd.Timestamp, float, int], DOuq=True) -> int: jSx_ = -1 if isinstance(AU8u, float): i_Sf(0.0 <= AU8u <= 1.0, 'point (float) should be between 0.0 and 1.0.', bo34) jSx_ = int((len(YKHO) - 1) * AU8u) elif isinstance(AU8u, (int, oyIN.int64)): if YKHO.has_datet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR7g(YKHO, qjOj):\n return int(oyIN.round(qjOj * YKHO.samplerate))", "def A6QP(RQER, Fjkm):\n AIZ9 = Fjkm.shape[0] - 1\n iBFX = Fjkm[-1] - Fjkm[0]\n m37G = iBFX / AIZ9\n YPaw = int(round(m37G))\n itmz = Tpdk.date2num(RQER, Fjkm.units, Fjkm.calendar)\n CABS = (itmz - Fjkm[0]) / YPaw\n ...
[ "0.7162256", "0.69840086", "0.68078804", "0.669612", "0.6497118", "0.64911807", "0.64183575", "0.6411351", "0.63331974", "0.62986624", "0.62658834", "0.62042665", "0.6140884", "0.611958", "0.6105555", "0.60636723", "0.6048717", "0.6020967", "0.60079163", "0.6003592", "0.60002...
0.6637536
4
Builds the kwargs dictionary for the transformation function.
def mQFX(nGID, aQNt): Tuqy = nGID.get('mode', 'expanding') i_Sf(Tuqy in v2L0.keys(), f"Invalid window operation: '{Tuqy}'. Must be one of {v2L0.keys()}.", bo34) erDd = v2L0[Tuqy] if 'min_periods' not in nGID: nGID['min_periods'] = 0 if Tuqy == 'ewm' else 1 if Tuqy == 'rolling': if 'c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pgGe(YKHO, B2fa):\n tBeV = YKHO.default_kwargs.copy()\n tBeV.update(B2fa)\n if 'transform' not in tBeV and YKHO.transform:\n tBeV['transform'] = YKHO.transform\n return tBeV", "def AFMx(YKHO, m2Zb, InUh):\n return {'_passed_function': m2Zb, 'kwarg_dict': InUh, 'container': YKHO.containe...
[ "0.73178244", "0.726622", "0.71109426", "0.6585702", "0.658456", "0.6424171", "0.64189124", "0.6348752", "0.63394535", "0.6229958", "0.621433", "0.6212362", "0.6189569", "0.6182414", "0.6171481", "0.61616176", "0.61562973", "0.61449295", "0.613128", "0.6122923", "0.61084014",...
0.6269543
9
Return a JSON string representation of this deterministic series. At the moment this function works only on deterministic time series (i.e., made of 1 sample). Notes Static covariates are not returned in the JSON string. When using `TimeSeries.from_json()`, the static covariates can be added with input argument `static...
def oD7C(YKHO) -> str: return YKHO.pd_dataframe().to_json(orient='split', date_format='iso')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Utvh(YKHO) -> str:\n R8cc = {}\n R8cc['loc_id'] = YKHO.loc_id\n R8cc['timestamp'] = YKHO.timestamp\n R8cc['samp_sizes'] = YKHO.samp_sizes\n R8cc['observations'] = YKHO.observations\n return qQXR.dumps(R8cc)", "def IZ3T(YKHO) -> str:\n R8cc = {}\n R8cc['loc_id'] = YKHO.loc_id\n R8cc...
[ "0.6133363", "0.6110882", "0.60674405", "0.6051951", "0.6047059", "0.58838797", "0.57916975", "0.57916975", "0.5722649", "0.57124203", "0.5705557", "0.5685971", "0.56825334", "0.56825334", "0.5610646", "0.56085086", "0.55706054", "0.55644464", "0.5552739", "0.55516565", "0.55...
0.5369709
66
Return a ``TimeSeries`` containing the mean calculated over the specified axis. If we reduce over time (``axis=0``), the resulting ``TimeSeries`` will have length one and will use the first entry of the original ``time_index``. If we perform the calculation over the components (``axis=1``), the resulting single compone...
def JBMS(YKHO, jDK_: int=2) -> uJDI: Cc00 = YKHO._xa.values.mean(axis=jDK_, keepdims=True) XFf3 = YKHO._get_agg_coords('components_mean', jDK_) iumD = zuVY.DataArray(Cc00, dims=YKHO._xa.dims, coords=XFf3, attrs=YKHO._xa.attrs if jDK_ != 1 else dict()) return YKHO.__class__(iumD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(YKHO, jDK_=None):\n return YKHO._stats_return_type(jDK_)._from_apply('mean', YKHO, jDK_)", "def USKV(YKHO, jDK_):\n jDK_ = jDK_.lower()\n ezWE = oyIN.mean(YKHO.data, axis=YKHO.conf['order'][jDK_])\n Fv2L = YKHO.UpdateConf(jDK_)\n return D6E7(array=ezWE, conf=Fv2L)", "def JBMS(YKHO, jDK_...
[ "0.6975687", "0.66366845", "0.6282929", "0.61807764", "0.61722296", "0.60518456", "0.60518456", "0.6040417", "0.6020002", "0.5988327", "0.59136283", "0.5835162", "0.58302575", "0.5814083", "0.5794384", "0.5775621", "0.5750888", "0.5745467", "0.5718943", "0.56990075", "0.56977...
0.71783084
0
Return a ``TimeSeries`` containing the median calculated over the specified axis. If we reduce over time (``axis=0``), the resulting ``TimeSeries`` will have length one and will use the first entry of the original ``time_index``. If we perform the calculation over the components (``axis=1``), the resulting single compo...
def BjRM(YKHO, jDK_: int=2) -> uJDI: Cc00 = oyIN.median(YKHO._xa.values, axis=jDK_, overwrite_input=False, keepdims=True) XFf3 = YKHO._get_agg_coords('components_median', jDK_) iumD = zuVY.DataArray(Cc00, dims=YKHO._xa.dims, coords=XFf3, attrs=YKHO._xa.attrs if jDK_ != 1 else dict()) return YKHO.__class...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BjRM(YKHO, jDK_=None):\n return YKHO._stats_return_type(jDK_)._from_apply('median', YKHO, jDK_)", "def BjRM(YKHO, jDK_=None):\n return YKHO.__reduce(tF9S.nanmedian, axis=jDK_)", "def qPfM(hkxX, jDK_=None):\n return oyIN.median(hkxX, jDK_)", "def PW3S(qw7D, jDK_=None):\n if isinstance(jDK_, tu...
[ "0.732523", "0.6777878", "0.6649375", "0.6448003", "0.6432223", "0.6313819", "0.62679434", "0.6186562", "0.61729366", "0.6082369", "0.59974307", "0.59506387", "0.59358346", "0.5923299", "0.5855936", "0.57053787", "0.55561066", "0.54556394", "0.5425142", "0.541587", "0.5406356...
0.7320376
1
Return a ``TimeSeries`` containing the sum calculated over the specified axis. If we reduce over time (``axis=0``), the resulting ``TimeSeries`` will have length one and will use the first entry of the original ``time_index``. If we perform the calculation over the components (``axis=1``), the resulting single componen...
def sum(YKHO, jDK_: int=2) -> uJDI: Cc00 = YKHO._xa.values.sum(axis=jDK_, keepdims=True) XFf3 = YKHO._get_agg_coords('components_sum', jDK_) iumD = zuVY.DataArray(Cc00, dims=YKHO._xa.dims, coords=XFf3, attrs=YKHO._xa.attrs if jDK_ != 1 else dict()) return YKHO.__class__(iumD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum(YKHO, jDK_=None):\n return YKHO._stats_return_type(jDK_)._from_apply('sum', YKHO, jDK_)", "def sum(YKHO, jDK_: int) -> llWB:\n return L4zi.get('csr_reduce_sum')(YKHO, jDK_)", "def sum(YKHO, WKvO, jDK_=None):\n nvUx(NotImplementedError)", "def WEi6(WKvO, jDK_):\n if type(jDK_) == list:\n ...
[ "0.6735076", "0.6243556", "0.59379816", "0.5831852", "0.5737173", "0.57133013", "0.5549887", "0.55401057", "0.54909307", "0.54827535", "0.5468272", "0.5463414", "0.5455822", "0.54338855", "0.54224247", "0.5402791", "0.53617245", "0.5350798", "0.53262883", "0.53262883", "0.531...
0.67820454
0
Return a ``TimeSeries`` containing the min calculated over the specified axis. If we reduce over time (``axis=0``), the resulting ``TimeSeries`` will have length one and will use the first entry of the original ``time_index``. If we perform the calculation over the components (``axis=1``), the resulting single componen...
def min(YKHO, jDK_: int=2) -> uJDI: Cc00 = YKHO._xa.values.min(axis=jDK_, keepdims=True) XFf3 = YKHO._get_agg_coords('components_min', jDK_) iumD = zuVY.DataArray(Cc00, dims=YKHO._xa.dims, coords=XFf3, attrs=YKHO._xa.attrs if jDK_ != 1 else dict()) return YKHO.__class__(iumD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min(YKHO, jDK_=None):\n return YKHO._stats_return_type(jDK_)._from_apply('min', YKHO, jDK_)", "def fsrv(YKHO, jDK_=0, nLK1=True, *qIxc, **B2fa):\n if not all((Csk6 != oyIN.dtype('O') for Csk6 in YKHO._get_dtypes())):\n raise TypeError(\"reduction operation 'argmin' not allowed for this dtype\")\...
[ "0.7268067", "0.6672716", "0.65901244", "0.6530145", "0.63343763", "0.6224577", "0.6203437", "0.61946213", "0.6038397", "0.5975859", "0.5947339", "0.5858073", "0.58171165", "0.5798174", "0.5786442", "0.57637155", "0.5760437", "0.57284296", "0.56919503", "0.56693214", "0.56648...
0.72028023
1
Return a ``TimeSeries`` containing the max calculated over the specified axis. If we reduce over time (``axis=0``), the resulting ``TimeSeries`` will have length one and will use the first entry of the original ``time_index``. If we perform the calculation over the components (``axis=1``), the resulting single componen...
def max(YKHO, jDK_: int=2) -> uJDI: Cc00 = YKHO._xa.values.max(axis=jDK_, keepdims=True) XFf3 = YKHO._get_agg_coords('components_max', jDK_) iumD = zuVY.DataArray(Cc00, dims=YKHO._xa.dims, coords=XFf3, attrs=YKHO._xa.attrs if jDK_ != 1 else dict()) return YKHO.__class__(iumD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max(YKHO, jDK_=None):\n return YKHO._stats_return_type(jDK_)._from_apply('max', YKHO, jDK_)", "def Z8HC(YKHO, jDK_=0, nLK1=True, *qIxc, **B2fa):\n if not all((Csk6 != oyIN.dtype('O') for Csk6 in YKHO._get_dtypes())):\n raise TypeError(\"reduction operation 'argmax' not allowed for this dtype\")\...
[ "0.72249144", "0.65809715", "0.64917094", "0.64568794", "0.6408779", "0.6350132", "0.62543595", "0.6243549", "0.62409896", "0.61343384", "0.61021775", "0.6075821", "0.5996384", "0.599054", "0.598732", "0.5955011", "0.58885306", "0.5812557", "0.58056307", "0.5799294", "0.57798...
0.72711235
0
Return a deterministic ``TimeSeries`` containing the kurtosis of each component (over the samples) of this stochastic ``TimeSeries``. This works only on stochastic series (i.e., with more than 1 sample)
def HiYA(YKHO, **B2fa) -> uJDI: YKHO._assert_stochastic() Cc00 = oyIN.expand_dims(HiYA(YKHO._xa.values, axis=2, **B2fa), axis=2) iumD = zuVY.DataArray(Cc00, dims=YKHO._xa.dims, coords=YKHO._xa.coords, attrs=YKHO._xa.attrs) return YKHO.__class__(iumD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HiYA(YKHO, jzdc, jDK_=0):\n try:\n TK2h = Zxt2.stats.kurtosis(jzdc, jDK_)\n return TK2h\n except Exception as e:\n print('An exception occurred. Here is the message:\\n', tTpl)", "def HiYA(YKHO):\n jzdc = (YKHO.df - 2) ** 2 * oC2Y(YKHO.df / 2 - 2)\n return 3 * (jzdc / (4 * oC...
[ "0.6658584", "0.664981", "0.6592967", "0.6531893", "0.6498756", "0.6476004", "0.6448517", "0.6413821", "0.6371576", "0.6263397", "0.6241784", "0.6230746", "0.6128847", "0.61048204", "0.60657704", "0.6050682", "0.603229", "0.58734024", "0.58136696", "0.57537836", "0.5716634", ...
0.715395
0
Return an xarray DataArray instance with missing dates inserted from an input xarray DataArray. The first dimension of the input DataArray `xa` has to be the time dimension. This requires either a provided `freq` or the possibility to infer a unique frequency (see
def tY1U(Emd4, HMUk: xr.DataArray, QTg7: Optional[Union[str, int]]=None) -> zuVY.DataArray: if QTg7 is not None: return Emd4._restore_xarray_from_frequency(HMUk, QTg7) PEeS(len(HMUk) <= 2, 'Input time series must be of (length>=3) when fill_missing_dates=True and freq=None.', bo34) FlBr = HMUk.dims[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOHY(Emd4, HMUk: xr.DataArray, QTg7: Union[str, int]) -> zuVY.DataArray:\n FlBr = HMUk.dims[0]\n ubx3 = Emd4._sort_index(HMUk, copy=False)\n it6R = ubx3.get_index(FlBr)\n fM_w = rLdf.Series(index=it6R, dtype='object')\n if isinstance(it6R, rLdf.DatetimeIndex):\n iI8U = True\n fM_w ...
[ "0.7560392", "0.6930992", "0.6137778", "0.6074182", "0.598214", "0.5776442", "0.56493425", "0.5477695", "0.5464935", "0.5444866", "0.53141564", "0.5253059", "0.52434087", "0.5178467", "0.5162467", "0.5148113", "0.51274407", "0.5054277", "0.501791", "0.5016598", "0.49667558", ...
0.8122068
0
Return an xarray DataArray instance that is resampled from an input xarray DataArray `xa` with frequency `freq`. `freq` should be the inferred or actual frequency of `xa`. All data from `xa` is maintained in the output DataArray at the corresponding dates. Any missing dates from `xa` will be inserted into the returned ...
def DOHY(Emd4, HMUk: xr.DataArray, QTg7: Union[str, int]) -> zuVY.DataArray: FlBr = HMUk.dims[0] ubx3 = Emd4._sort_index(HMUk, copy=False) it6R = ubx3.get_index(FlBr) fM_w = rLdf.Series(index=it6R, dtype='object') if isinstance(it6R, rLdf.DatetimeIndex): iI8U = True fM_w = fM_w.asfre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tY1U(Emd4, HMUk: xr.DataArray, QTg7: Optional[Union[str, int]]=None) -> zuVY.DataArray:\n if QTg7 is not None:\n return Emd4._restore_xarray_from_frequency(HMUk, QTg7)\n PEeS(len(HMUk) <= 2, 'Input time series must be of (length>=3) when fill_missing_dates=True and freq=None.', bo34)\n FlBr = H...
[ "0.74719167", "0.65003896", "0.64212686", "0.62201166", "0.6069467", "0.60632277", "0.59771323", "0.59650546", "0.59244674", "0.59146696", "0.5874976", "0.58417946", "0.5810287", "0.571888", "0.5688176", "0.56645983", "0.56254834", "0.5597295", "0.55837536", "0.5555426", "0.5...
0.86512077
0
Return an DataArray instance with static covariates and hierarchy stored in the array's attributes.
def AOuv(lEkq, Jc9u, gEYm): lEkq.attrs[yizN] = Jc9u lEkq.attrs[HQZn] = gEYm return lEkq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _wAE(YKHO, mWFP: Hashable) -> DataArray:\n from xarray.core.dataarray import DataArray\n try:\n Es0b = YKHO._variables[mWFP]\n except KeyError:\n bGrB, mWFP, Es0b = zowI(YKHO._variables, mWFP, YKHO.dims)\n KFIZ = set(Es0b.dims)\n jNOo: dict[eA6S, iQnE] = {}\n for G1Hx in YKHO._v...
[ "0.6434128", "0.62556666", "0.61062986", "0.6063843", "0.59738815", "0.59344304", "0.5928157", "0.5841398", "0.58280647", "0.576541", "0.5742484", "0.5704704", "0.56682956", "0.56682956", "0.5654865", "0.5654865", "0.5654673", "0.56541497", "0.56216115", "0.5603449", "0.55986...
0.66821456
0
Get Chebyshev approximation of the CDF.
def aXTc(kzAT, _7Gw, hyEe, SGf8=10 ** (-15)): if not (oyIN.isfinite(_7Gw) and oyIN.isfinite(hyEe)): raise ValueError('Bounds must be finite.') if not _7Gw < hyEe: raise ValueError('Lower bound must be less than upper bound.') WKvO, GUUu = b9nF(kzAT, _7Gw, hyEe, SGf8) nhpD = Zlmd(GUUu) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzER(YKHO, WKvO):\n return YKHO.distr.cdf(WKvO)", "def YzER(YKHO, WKvO):\n return YKHO._frozen.cdf(WKvO)", "def dgYa(Z9rn: np.array) -> oyIN.array:\n exwG = len(Z9rn)\n if exwG <= 1:\n return oyIN.zeros((exwG,))\n bdDj = oyIN.zeros((exwG - 1,))\n yzQ0 = 2.0 * oyIN.arange(1.0, exwG)...
[ "0.69194627", "0.69088686", "0.68075854", "0.678848", "0.67547005", "0.6607485", "0.6566257", "0.6542003", "0.64945585", "0.64787555", "0.64093506", "0.6404659", "0.63868344", "0.63746023", "0.63442266", "0.6331064", "0.6329288", "0.63085204", "0.62842876", "0.6279504", "0.62...
0.6657325
5
Gets the status of this PaymentCard.
def jGRS(YKHO) -> str: return YKHO._status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z8Ab(YKHO):\n return YKHO._current_payment_status", "def R2ET(YKHO) -> VL3y:\n nPrm = {'CREATED': VL3y.WAITING, 'PREAUTH': VL3y.PREAUTH, 'PAYED': VL3y.CONFIRMED, 'REJECTED': VL3y.REJECTED}\n return nPrm.get(YKHO.status, VL3y.ERROR)", "def QtQ8(YKHO):\n return YKHO._status", "def QtQ8(YKHO):\n...
[ "0.78511477", "0.76817036", "0.7679829", "0.7679829", "0.7679829", "0.7599107", "0.7598229", "0.7597882", "0.7597882", "0.7578423", "0.7578423", "0.75759107", "0.75613725", "0.7530807", "0.7530807", "0.7530807", "0.7521816", "0.7521816", "0.7521816", "0.7521816", "0.7516739",...
0.0
-1
Sets the transaction_info of this PaymentCard.
def l2fg(YKHO, l2fg: TransactionInfo): YKHO._transaction_info = l2fg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ys5w(YKHO, ys5w):\n YKHO._merchant_info = ys5w", "def dDJO(YKHO, dDJO):\n YKHO._credit_card_info = dDJO", "def EeYd(YKHO, EeYd):\n YKHO._payment_information = EeYd", "def HQdK(YKHO, HQdK):\n YKHO._credit_card_information = HQdK", "def P2WC(YKHO, P2WC):\n YKHO._transaction_amount = P2WC",...
[ "0.7077811", "0.67003185", "0.65755767", "0.65351677", "0.6377949", "0.6311352", "0.6253231", "0.622152", "0.6133016", "0.6133016", "0.6105591", "0.60537076", "0.5998827", "0.596191", "0.595263", "0.59383607", "0.5919962", "0.5912486", "0.5912486", "0.5912486", "0.5912486", ...
0.81791306
0
Return the length of this binary search tree
def u54L(YKHO): return super(nkvf, YKHO).length()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return bDkR._len(YKHO._root)", "def ESP5(YKHO) -> int:\n return YKHO.root.tree_size()", "def u54L(YKHO):\n if YKHO is None:\n return 0\n elif YKHO.left is None and YKHO.right is None:\n return 1\n elif YKHO.left is None:\n return u54L(YKHO.right) + 1\n e...
[ "0.84426725", "0.81305665", "0.7996275", "0.79741675", "0.7903535", "0.78872085", "0.785065", "0.7782964", "0.7782025", "0.7774118", "0.7711712", "0.7711712", "0.7707381", "0.76853037", "0.7667154", "0.7657526", "0.7657526", "0.76495844", "0.76339906", "0.76273054", "0.759897...
0.0
-1
Return True if this binary search tree contains no nodes
def FBfn(YKHO): return YKHO.length() == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n \"\"\"Takes no arguments.\n Returns True if the tree is empty and False otherwise.\"\"\"\n return YKHO.root == None", "def FBfn(YKHO: AbstractTree) -> bool:\n return YKHO._root is None", "def j2V2(YKHO):\n return YKHO.treestore.get_iter_first() == None", "def lsmZ(YKHO):\...
[ "0.8545624", "0.840317", "0.8330874", "0.83012", "0.83005756", "0.8297012", "0.82544917", "0.81851655", "0.81851655", "0.81851655", "0.8155328", "0.8152483", "0.8146737", "0.8143049", "0.8143049", "0.8143049", "0.81094253", "0.8093143", "0.808106", "0.808106", "0.80694044", ...
0.0
-1
Return the value associated with the given key, or return None
def NMoC(YKHO, H5ew): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew):\n try:\n return YKHO[H5ew]\n except KeyError:\n return None", "def NMoC(YKHO, H5ew):\n Q6kx = YKHO._get(H5ew)\n return Q6kx.value if Q6kx else None", "def _oqe(YKHO, H5ew):\n for G1Hx, Ty9i in YKHO._map:\n if H5ew == G1Hx:\n return Ty9i\n ...
[ "0.8390954", "0.8173996", "0.811088", "0.8094921", "0.8053376", "0.8028557", "0.80051166", "0.8004823", "0.79182035", "0.7905872", "0.78767926", "0.7835601", "0.7835601", "0.778133", "0.77812356", "0.7740581", "0.7732288", "0.77284306", "0.77168554", "0.7700189", "0.7643445",...
0.0
-1
Return a list of all values in this hash table
def hkxX(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkxX(YKHO):\n hkxX = []\n for q24Q, mT6A in YKHO.__iter__():\n hkxX.append(mT6A)\n return hkxX", "def hkxX(YKHO):\n return [YKHO[G1Hx] for G1Hx in YKHO.keys()]", "def hkxX(YKHO):\n yv6U = []\n for H5ew in YKHO:\n yv6U.append(YKHO[H5ew])\n return yv6U", "def hkxX(YKHO):\...
[ "0.830275", "0.80967075", "0.8090176", "0.8040093", "0.7967378", "0.79434687", "0.7933409", "0.7906068", "0.7868788", "0.78679913", "0.7821845", "0.7785501", "0.77829254", "0.772351", "0.76621634", "0.76570475", "0.758271", "0.7580915", "0.75759876", "0.7572527", "0.75675255"...
0.0
-1
Returns the start node
def pu_z(YKHO): return YKHO.start_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XDbp(YKHO):\n return YKHO.start_node", "def pu_z(YKHO):\n return YKHO.__start_node", "def pu_z(YKHO):\n return YKHO._nodes[0]", "def XDbp(YKHO):\n return YKHO.initial_state", "def XDbp(YKHO):\n return YKHO.map.map_rep[YKHO.initY][YKHO.initX]", "def orK2(YKHO):\n if YKHO.head_node ==...
[ "0.9169882", "0.90446997", "0.8978762", "0.818026", "0.815232", "0.8063896", "0.7678116", "0.7616511", "0.7616244", "0.761623", "0.7589828", "0.73769784", "0.7340339", "0.7308756", "0.7273752", "0.717564", "0.7104557", "0.7097151", "0.7075274", "0.70720065", "0.7068056", "0...
0.9076043
1
Returns True if the node is the goal, otherwise False
def HjJj(YKHO, Q6kx): try: for YRbF in range(len(YKHO.goal_)): for r845 in range(len(YKHO.goal_[YRbF])): if YKHO.goal_[YRbF][r845] != Q6kx[YRbF][r845]: return False except: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HjJj(YKHO, Q6kx):\n if YKHO.get_h_score(Q6kx, YKHO.goal_node) == 0:\n return True\n else:\n return False", "def Fa6j(YKHO, Q6kx, xi3E=None):\n return False", "def HjJj(Q6kx, xi3E):\n return xi3E & Q6kx.state == xi3E", "def HjJj(YKHO, Q6kx):\n return Q6kx in YKHO.goals", "de...
[ "0.83292913", "0.8304361", "0.82455695", "0.8237733", "0.81587344", "0.80770075", "0.7947861", "0.788316", "0.7828484", "0.74618554", "0.7427384", "0.73609066", "0.73310256", "0.72649366", "0.72618777", "0.72216535", "0.7188816", "0.7174314", "0.71651685", "0.71651685", "0.71...
0.8019159
6
Get the groups details for all the groups including any in components.
def c84i(YKHO) -> cuzp[str, cQ68]: rmyT = YKHO.get_blocknames() TGWh = [] moMn = jth9.deepcopy(YKHO._config.groups) for uOe2 in moMn.values(): TGWh.extend(uOe2.blocks) for UksD in YKHO._components.values(): for IXKo, C4gk in UksD.groups.items(): if IXKo not in moMn.keys()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MvIi():\n return u8YN()", "def MvIi(YKHO):\n return YKHO._get(url_suffix='groups/').get('data')", "def aSJg(YKHO):\n pass", "def Bk0s(YKHO):\n return list(YKHO._groups)", "def MvIi(YKHO):\n return G4JS.get(YKHO.build_url('groups')).json()['response']", "def aSJg(YKHO):\n with CLDb()...
[ "0.7981391", "0.7801269", "0.77707857", "0.77077836", "0.7604963", "0.7529526", "0.74987835", "0.7493623", "0.74295527", "0.74295527", "0.74209887", "0.74157226", "0.7409586", "0.7407905", "0.73941547", "0.73765165", "0.7358632", "0.7353964", "0.7345503", "0.7345503", "0.7345...
0.74244344
10
Get the name of the configuration.
def Ks8p(YKHO) -> str: return YKHO._config.get_name()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._config.get(BiEj)", "def mWFP(YKHO):\n return YKHO._config[BiEj]", "def mWFP(YKHO):\n return YKHO._config[BiEj]", "def mWFP(YKHO):\n return YKHO._config.name", "def mWFP(YKHO):\n return YKHO._config.name", "def mWFP(YKHO):\n return YKHO._config.name", "de...
[ "0.9059931", "0.8964661", "0.8956315", "0.8908427", "0.8908427", "0.8908427", "0.8846887", "0.86525667", "0.86279076", "0.85962546", "0.8551948", "0.8518763", "0.81105083", "0.8003556", "0.79335445", "0.79335445", "0.7861723", "0.78223485", "0.7776977", "0.7761518", "0.773418...
0.9325008
0
Stops the test application at the end of the test run
def Wyrp(Emd4): vXNj()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bgK0(YKHO):\n pass", "def _Uzd(YKHO):\n pass", "def tBIc(YKHO):\n YKHO.app.kill()", "def gfui(YKHO):\n YKHO.main_running = False", "def tBIc(YKHO):\n YKHO.app.kill()", "def tBIc(YKHO):\n YKHO.app.kill()", "def tBIc(YKHO):\n YKHO.app.kill()", "def JCyR():\n lBC3.coda_kids.u...
[ "0.81418914", "0.80974275", "0.7824776", "0.7714227", "0.76835567", "0.76835567", "0.76835567", "0.76624435", "0.7658733", "0.7658733", "0.7581354", "0.75733757", "0.75573844", "0.75573844", "0.74817544", "0.74427545", "0.7409496", "0.736033", "0.7348331", "0.7347959", "0.734...
0.0
-1
Store a word in a given address in the memory.
def VUF1(YKHO, UTX6, GIN8): WZHJ = YKHO._active_locations(UTX6) YKHO.content[WZHJ] = XTiz.clip(YKHO.content[WZHJ] + B0gN.convert(GIN8), -YKHO.counter_range, YKHO.counter_range)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AQhk(YKHO, rRzo, GIN8):\n if not isinstance(GIN8, (int, Swre, udu8, str)):\n raise RuntimeError(\"Can't put item of type %s into memory.\" % type(GIN8))\n elif isinstance(GIN8, str) and len(GIN8) > 4:\n raise RuntimeError(\"Words are only 4 bytes long. Can't accept a word of length %d.\" %...
[ "0.82567143", "0.76881945", "0.72757167", "0.7047603", "0.68842155", "0.6767936", "0.66701496", "0.66701496", "0.6645257", "0.65967554", "0.6555698", "0.65144044", "0.64175075", "0.64076287", "0.6323721", "0.63229907", "0.63205457", "0.63152325", "0.6238798", "0.62263215", "0...
0.7687597
2
Retrieve a word stored in the memory given an address.
def GKJL(YKHO, UTX6): return XTiz.clip(sum(YKHO.content[YKHO._active_locations(UTX6)]), 0, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vy9x(YKHO, rRzo):\n return YKHO.memory_data[rRzo]", "def uRH5(YKHO, UTX6):\n return YKHO._data[UTX6]", "def Swy_(YKHO, UTX6: str) -> str:\n return YKHO.memory[YKHO._bin_to_dec(UTX6)]", "def vy9x(YKHO, UTX6):\n return YKHO.read(UTX6 + 1) << 8 | YKHO.read(UTX6)", "def T_IL(YKHO, hksT=None, _p...
[ "0.8412477", "0.8378921", "0.7787006", "0.77062124", "0.7612877", "0.7051655", "0.66621417", "0.6661336", "0.66303235", "0.6613773", "0.6575747", "0.6548087", "0.6548087", "0.6513519", "0.6497795", "0.6468293", "0.6441301", "0.64303684", "0.63933355", "0.63666", "0.633491", ...
0.55372846
93
Return a string to identify the object in the admin app.
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def object(YKHO) -> str:\n return qe4Y.get(YKHO, 'object')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def id(YKHO) -> str:\n if YKHO.owner:\n return f'{YKHO.owner}.{YKHO.name}'\n return...
[ "0.7448286", "0.7231513", "0.7231513", "0.7137449", "0.70685476", "0.70685476", "0.70113486", "0.698308", "0.6876111", "0.68648475", "0.68585485", "0.68546706", "0.6840457", "0.679989", "0.679989", "0.6781741", "0.67737067", "0.67355776", "0.6727883", "0.67255455", "0.6725318...
0.0
-1
Return a string to identify the object in the admin app.
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def object(YKHO) -> str:\n return qe4Y.get(YKHO, 'object')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def id(YKHO) -> str:\n if YKHO.owner:\n return f'{YKHO.owner}.{YKHO.name}'\n return...
[ "0.7448286", "0.7231513", "0.7231513", "0.7137449", "0.70685476", "0.70685476", "0.70113486", "0.698308", "0.6876111", "0.68648475", "0.68585485", "0.68546706", "0.6840457", "0.679989", "0.679989", "0.6781741", "0.67737067", "0.67355776", "0.6727883", "0.67255455", "0.6725318...
0.0
-1
Returns a QuerySet of Recipes Given a list of ingredients and a range, the database will be queried to find all recipes with common association between the ingredients. Once these are found, the range provided will determine how many recipes are actually returned.
def inCZ(YKHO, zKHR, yKcO=0, Os4s=200): gZcC = YKHO._make_qs_list(zKHR) Yv78 = YKHO._dict_to_qs(gZcC) if len(Yv78) > 0: Yv78 = Yv78[yKcO:Os4s] else: swKa = LC16.objects.none() Yv78 = list(swKa.values()) return Yv78
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VBVV(Yv78):\n if Yv78 is None:\n return FYrf.Recipe.objects.all()\n else:\n return FYrf.Recipe.objects.filter(pk__in=Yv78)", "def inCZ(YKHO, xDcj=None, BA9O={'name': 'ascending'}, B2Dn=0, bNfU=10):\n return YKHO.recipes_repo.find_recipes(xDcj, BA9O, B2Dn, bNfU)", "def PUru(YKHO, Yv78...
[ "0.6011291", "0.5899752", "0.587198", "0.5635321", "0.5479982", "0.5374626", "0.5356674", "0.5355841", "0.5353257", "0.53441405", "0.52643514", "0.5256236", "0.5244377", "0.5230971", "0.52012724", "0.51989806", "0.5180562", "0.5173762", "0.51676136", "0.5163846", "0.516141", ...
0.75766325
0
Return a string to identify the object in the admin app.
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def object(YKHO) -> str:\n return qe4Y.get(YKHO, 'object')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def id(YKHO) -> str:\n if YKHO.owner:\n return f'{YKHO.owner}.{YKHO.name}'\n return...
[ "0.7448286", "0.7231513", "0.7231513", "0.7137449", "0.70685476", "0.70685476", "0.70113486", "0.698308", "0.6876111", "0.68648475", "0.68585485", "0.68546706", "0.6840457", "0.679989", "0.679989", "0.6781741", "0.67737067", "0.67355776", "0.6727883", "0.67255455", "0.6725318...
0.0
-1
Return a string to identify the object in the admin app.
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def object(YKHO) -> str:\n return qe4Y.get(YKHO, 'object')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def id(YKHO) -> str:\n if YKHO.owner:\n return f'{YKHO.owner}.{YKHO.name}'\n return...
[ "0.7449353", "0.72317564", "0.72317564", "0.7137577", "0.7068792", "0.7068792", "0.70111775", "0.6982868", "0.6876053", "0.6864655", "0.68593526", "0.6854133", "0.68402165", "0.680047", "0.680047", "0.6781319", "0.6774467", "0.6735914", "0.6728277", "0.67259216", "0.67249584"...
0.0
-1
Return a queryset of the appliances required by this recipe.
def pzYj(YKHO): return YKHO.appliances.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pzYj(YKHO) -> list:\n return YKHO._get('/appliance')", "def pzYj(YKHO):\n bD7m = YKHO.api_addr + '/user/appliances'\n qv1X = d1VJ(bD7m)\n return YKHO._opener(qv1X)", "def EJXD(YKHO):\n xtZG = ['oven', 'microwave', 'deep-fryer', 'mixer', 'blender', 'food processor']\n jBhe = ' '.join(YKHO....
[ "0.7228043", "0.68274564", "0.6760251", "0.646143", "0.6266271", "0.6077478", "0.6050303", "0.5954911", "0.59252036", "0.58458006", "0.57590634", "0.5741634", "0.57351595", "0.5692092", "0.56801534", "0.5645295", "0.563987", "0.5619078", "0.56094635", "0.55765957", "0.5574091...
0.78174233
0
Return the average rating for the recipe.
def lcsm(YKHO): return YKHO.userrating_set.all().aggregate(gjQi('value'))['value__avg']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lqWM(YKHO):\n return sum(YKHO.ratings) / len(YKHO.ratings)", "def lqWM(YKHO):\n wjRY = 0\n exwG = 0\n if len(YKHO.ratings) > 0:\n for RrWF in YKHO.ratings:\n wjRY += RrWF\n exwG += 1\n return wjRY / exwG\n else:\n print('There are no ratings for {titl...
[ "0.8243886", "0.814104", "0.7967984", "0.7964575", "0.78888667", "0.782536", "0.7806617", "0.77710736", "0.76575375", "0.76168257", "0.7583944", "0.74964035", "0.74899185", "0.7479434", "0.7469174", "0.74269545", "0.7421064", "0.72344464", "0.72272867", "0.7185325", "0.712001...
0.7027611
22
Return a string to identify the object in the admin app.
def zAg0(YKHO): return str(YKHO.recipe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def object(YKHO) -> str:\n return qe4Y.get(YKHO, 'object')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def id(YKHO) -> str:\n if YKHO.owner:\n return f'{YKHO.owner}.{YKHO.name}'\n return...
[ "0.7448286", "0.7231513", "0.7231513", "0.7137449", "0.70685476", "0.70685476", "0.70113486", "0.698308", "0.6876111", "0.68648475", "0.68585485", "0.68546706", "0.6840457", "0.679989", "0.679989", "0.6781741", "0.67737067", "0.67355776", "0.6727883", "0.67255455", "0.6725318...
0.0
-1
Return a string to identify the object in the admin app.
def zAg0(YKHO): return str(YKHO.recipe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def object(YKHO) -> str:\n return qe4Y.get(YKHO, 'object')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def Nrrm(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_identifier')", "def id(YKHO) -> str:\n if YKHO.owner:\n return f'{YKHO.owner}.{YKHO.name}'\n return...
[ "0.7448286", "0.7231513", "0.7231513", "0.7137449", "0.70685476", "0.70685476", "0.70113486", "0.698308", "0.6876111", "0.68648475", "0.68585485", "0.68546706", "0.6840457", "0.679989", "0.679989", "0.6781741", "0.67737067", "0.67355776", "0.6727883", "0.67255455", "0.6725318...
0.0
-1
Construct a string representation of this rating link.
def zAg0(YKHO): return '{0} ({1}) : {2}'.format(YKHO.recipe, YKHO.user, YKHO.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{}'.format(YKHO.name, YKHO.rating, YKHO.photoURLString)", "def zAg0(YKHO) -> str:\n return f'\\tTitle: {YKHO.title}\\n\\tLink: {YKHO.link}\\n\\tPrice: {YKHO.price}\\n\\tAverage Rating: {YKHO.average_rating}\\n'", "def zAg0(YKHO):\n return '{}'.format(YKHO.rating)", "def wHJ...
[ "0.721679", "0.7093566", "0.7053703", "0.6870463", "0.68331194", "0.6803527", "0.6793956", "0.67832327", "0.6781729", "0.66636443", "0.66366106", "0.65493065", "0.65242404", "0.6505573", "0.6458777", "0.645329", "0.6381915", "0.63726234", "0.63697016", "0.6368248", "0.6366069...
0.0
-1
Turn a floating point threshold into a string that can be used as a CSS class name.
def S3TM(gwAu): return 'threshold-' + str(gwAu).replace('.', '_')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZvYj(WKvO):\n if WKvO < 0.5:\n return 0\n else:\n return 1", "def FYKK(FGW3: float, gwAu: int=100000, phJ9: int=2) -> str:\n FGW3 = NBZ8(FGW3)\n if FGW3 < gwAu:\n return str(round(float(FGW3), phJ9))\n return ovg3(FGW3, phJ9)", "def RbMt(Ty9i, gwAu=0.25):\n jQ3Z = oyI...
[ "0.6534311", "0.6373494", "0.6014155", "0.5805267", "0.57814395", "0.5747614", "0.566996", "0.5592288", "0.5518891", "0.54972583", "0.5496349", "0.5455926", "0.54163235", "0.5410699", "0.5399803", "0.5389487", "0.5375978", "0.5367832", "0.53559744", "0.53154296", "0.52644765"...
0.80672795
0
Freezes the state of a session into a pruned computation graph. Creates a new computation graph where variable nodes are replaced by constants taking their current value in the session. The new graph will be pruned so subgraphs that are not necessary to compute the requested outputs are removed. session The TensorFlow ...
def _w3s(cuiw, j1Hi=None, OnZF=None, lUZN=True): from tensorflow.python.framework.graph_util import convert_variables_to_constants pNZh = cuiw.graph with pNZh.as_default(): hq9i = list(set((Ty9i.op.name for Ty9i in ZylS.global_variables())).difference(j1Hi or [])) OnZF = OnZF or [] O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _w3s(cuiw, j1Hi=None, OnZF=None, lUZN=True):\n from tensorflow.python.framework.graph_util import convert_variables_to_constants\n pNZh = cuiw.graph\n with pNZh.as_default():\n hq9i = list(set((Ty9i.op.name for Ty9i in ZylS.global_variables())).difference(j1Hi or []))\n OnZF = OnZF or []...
[ "0.8342415", "0.8332142", "0.8324737", "0.83197993", "0.831508", "0.831508", "0.831508", "0.831508", "0.83103615", "0.83103615", "0.83103615", "0.83103615", "0.83096117", "0.8302066", "0.8294726", "0.8243368", "0.77232105", "0.6368989", "0.634526", "0.62955445", "0.61494815",...
0.83503807
0
Sets the asks of this Price.
def n6xu(YKHO, n6xu): YKHO._asks = n6xu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n6xu(YKHO, n6xu):\n if n6xu is None:\n raise ValueError('Invalid value for `asks`, must not be `None`')\n YKHO._asks = n6xu", "def jE25(YKHO, BWXx):\n YKHO.__ask_price = BWXx", "def q7cz(YKHO, q7cz):\n YKHO._ask_price = q7cz", "def mrsm(YKHO, n6xu, BeD_):\n YKHO._order_manager._clea...
[ "0.729988", "0.71768636", "0.7149096", "0.64206487", "0.63944674", "0.63944674", "0.60872376", "0.5621655", "0.5621655", "0.54640937", "0.5309206", "0.5294911", "0.5273431", "0.52541673", "0.5223218", "0.5180418", "0.51559865", "0.5079099", "0.5076525", "0.507213", "0.5069954...
0.76625556
0
Sets the units_available of this Price.
def qgks(YKHO, qgks): YKHO._units_available = qgks
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iHBh(YKHO, iHBh):\n YKHO._units_free = iHBh", "def nFDf(YKHO, rYO3):\n YKHO.units_earned = rYO3", "def ninm(YKHO, ninm):\n YKHO._allowed_units = ninm", "def rYO3(YKHO, rYO3: float):\n YKHO._units = rYO3", "def rYO3(YKHO, rYO3):\n YKHO._units = rYO3", "def rYO3(YKHO, rYO3):\n YKHO.__...
[ "0.7030298", "0.6963547", "0.6735609", "0.6649499", "0.6624916", "0.6583288", "0.64893734", "0.63775456", "0.62172085", "0.61450696", "0.6038037", "0.5973784", "0.5940782", "0.59367275", "0.59049994", "0.590004", "0.5896095", "0.58739614", "0.5852824", "0.5819696", "0.5813394...
0.87742895
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
Gets the _datetime of this DeploymentEvent.
def yNWX(YKHO) -> str: return YKHO.__datetime
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qcWV(YKHO):\n return YKHO._dt", "def qcWV(YKHO):\n return YKHO._datetime", "def qcWV(YKHO):\n if YKHO._dt is None:\n YKHO._dt = qcWV.datetime.utcfromtimestamp(YKHO.time())\n return YKHO._dt", "def o5Ya(YKHO):\n return YKHO.attrs.get(YKHO.AttributeNames.DATETIME, None)", "def o5Ya(...
[ "0.7281994", "0.71556515", "0.71131074", "0.7112823", "0.7034195", "0.6966889", "0.6955276", "0.69445425", "0.68156874", "0.67943484", "0.66760534", "0.66664225", "0.66664225", "0.66572565", "0.6615773", "0.6615773", "0.65999246", "0.65991056", "0.6578163", "0.6543754", "0.64...
0.6603258
16
Gets the entity_id of this DeploymentEvent.
def g2g3(YKHO) -> str: return YKHO._entity_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g2g3(YKHO) -> int:\n return qe4Y.get(YKHO, 'entity_id')", "def g2g3(YKHO):\n return YKHO._entity_id", "def g2g3(YKHO):\n return YKHO._entity_id", "def g2g3(YKHO):\n return YKHO._entity_id", "def g2g3(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'entity_id')", "def RQ6U(YKHO):\n if 'e...
[ "0.7623205", "0.7579889", "0.7579889", "0.7579889", "0.7306541", "0.6958054", "0.69035536", "0.68649834", "0.68649834", "0.68649834", "0.68649834", "0.6830107", "0.67949814", "0.6790727", "0.66932285", "0.667635", "0.667635", "0.6645134", "0.66208017", "0.65893924", "0.657915...
0.7361468
4
Gets the type of this DeploymentEvent.
def type(YKHO) -> str: return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type(YKHO):\n return b7D7.getName(YKHO._type)", "def hEKL(YKHO) -> str:\n return YKHO._event_type", "def hEKL(YKHO):\n return YKHO.message['event']['event_type']", "def type(YKHO):\n return so0H._types[type(YKHO)]", "def sO7t(YKHO) -> str:\n return qe4Y.get(YKHO, 'deployment_type')", "...
[ "0.74508494", "0.7412776", "0.73429334", "0.72974503", "0.72862387", "0.72644717", "0.71749794", "0.7079205", "0.7006472", "0.7006472", "0.69473606", "0.69473606", "0.6943889", "0.6873606", "0.68352485", "0.68126065", "0.66235954", "0.66132843", "0.66132843", "0.66132843", "0...
0.0
-1
Sends the main turtle back to the origin and sets its heading.
def wJmi(cEyu: float) -> None: a1PO.pu() a1PO.setpos(0, 0) a1PO.seth(cEyu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZN_(YKHO):\n ZbiO.goto(YKHO.location)\n YylR = ZbiO.towards(YKHO.destination)\n ZbiO.setheading(YylR)\n ZbiO.forward(YKHO.radius / 2)\n YKHO.location = ZbiO.position()", "def ERzv(H2v2):\n ZbiO.setheading(270)\n ZbiO.down()\n ZbiO.forward(H2v2)\n ZbiO.up()\n ZbiO.setheading(0)"...
[ "0.73779106", "0.72688603", "0.7166516", "0.7081919", "0.69683176", "0.685008", "0.676082", "0.6737406", "0.6686859", "0.66554224", "0.6618916", "0.66161585", "0.64862394", "0.6408613", "0.63800824", "0.6285343", "0.6275316", "0.62056357", "0.6126848", "0.6109406", "0.6076424...
0.72160876
2
Accessor for the enemy health.
def ZnpV(YKHO): return YKHO._health
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b1jl(YKHO):\n return YKHO.health", "def b1jl(YKHO):\n return YKHO.health", "def b1jl(YKHO):\n return YKHO.health", "def gasA(YKHO) -> int:\n return YKHO.health", "def gasA(YKHO):\n return YKHO.me['health']", "def gasA(YKHO):\n return YKHO._health", "def KcrJ(YKHO):\n raise NotI...
[ "0.7945008", "0.79024833", "0.7872677", "0.77866566", "0.76933247", "0.76928717", "0.7682527", "0.7464206", "0.7357643", "0.72743", "0.7199538", "0.7199538", "0.71641034", "0.7116637", "0.7065272", "0.6773065", "0.6695007", "0.66624075", "0.66014177", "0.65334713", "0.6484380...
0.75095534
7
Initializes the ghost class. Health is set to a large number because the ghost is meant to not be killed.
def FIMM(YKHO, cl53, iBIi): super(Hlz3, YKHO).__init__('Sprites/Ghost', 99999999999, cl53, iBIi) YKHO.hiding = True YKHO.board = iBIi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIcm(YKHO):\n YKHO.maxHealth = 20\n YKHO.health = 20\n YKHO.deck = QHsX(YKHO.cardList, YKHO)\n YKHO.hand = MsG1(YKHO)\n YKHO.board = yELo(YKHO)\n YKHO.energy = 0\n YKHO.totalEnergy = 0\n YKHO.shadows = 0\n YKHO.turnsPlayed = 0\n YKHO.invocationsThisTurn = []\n YKHO.evolutions =...
[ "0.66038966", "0.64347744", "0.6397143", "0.6369919", "0.6313634", "0.62905496", "0.6283611", "0.6234282", "0.6183408", "0.6183408", "0.6183408", "0.61681885", "0.61666244", "0.6133375", "0.61316836", "0.6112154", "0.6092467", "0.6076183", "0.60642695", "0.60053843", "0.59972...
0.6038383
19
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
def cfQO(tvqc, QpfX): print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId']) "\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n " i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])...
[ "0.69176674", "0.67606366", "0.6581286", "0.64886004", "0.64555144", "0.63743496", "0.62837315", "0.6268011", "0.62676686", "0.6242927", "0.6215864", "0.6212501", "0.61916476", "0.61766326", "0.6150242", "0.61432534", "0.6130625", "0.6129557", "0.6049202", "0.6007502", "0.598...
0.55848324
79
Parses a string and returns a dictionary with the key/value pairs contained in it.
def WC_0(vIwR: str, we_r: str='\n', WIHt: str='=', Dyj9: str | None=None) -> cuzp[str, str]: BQDi.raise_if_falsy(line_sep=we_r, value_sep=WIHt) cmPJ = {} if not vIwR: return cmPJ for zFiD in vIwR.split(we_r): G1Hx, Ty9i = zFiD.partition(WIHt)[::2] G1Hx = G1Hx.strip() Ty9i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s7Lz(s_ww):\n R8cc = {}\n laPh = s_ww.split(',')\n for bTKY in laPh:\n H5ew = bTKY.split(':')[0]\n BWXx = bTKY.split(':')[1].split(';')[0]\n cM24 = bTKY.split(';')[1]\n if cM24 == 'str':\n R8cc[H5ew] = BWXx\n elif cM24 == 'int':\n R8cc[H5ew] = i...
[ "0.7754001", "0.76343685", "0.75652814", "0.755373", "0.7465642", "0.73852295", "0.73167455", "0.72032297", "0.7187279", "0.71802396", "0.70728016", "0.6914916", "0.6894767", "0.6889197", "0.68680716", "0.6864937", "0.6847601", "0.6842984", "0.68313867", "0.6826027", "0.67885...
0.741883
5
Recursively updates nested dictionaries.
def gde_(cmPJ: Mapping, LpmY: Mapping) -> cuzp: WMwn = dict(cmPJ) for G1Hx, Ty9i in LpmY.items(): if isinstance(Ty9i, dict): Aofo = gde_(WMwn.get(G1Hx, {}), Ty9i) WMwn[G1Hx] = Aofo else: WMwn[G1Hx] = LpmY[G1Hx] return WMwn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YMaG(j6sz, LpmY):\n import nested_dict as fHgE\n Hcc8 = fHgE.nested_dict(j6sz)\n YySO = fHgE.nested_dict(LpmY)\n Hcc8.update(YySO)\n return Hcc8.to_dict()", "def C09e(tbx9, sUFK):\n for G1Hx, Ty9i in sUFK.items():\n if isinstance(Ty9i, g760.Mapping):\n Mkmy = C09e(tbx9.get...
[ "0.7754771", "0.7728959", "0.76753795", "0.7636125", "0.76225424", "0.7619115", "0.7600492", "0.7595643", "0.75545776", "0.754874", "0.7495399", "0.74930257", "0.7492896", "0.74769616", "0.74532914", "0.7434116", "0.74039346", "0.7401274", "0.739346", "0.733458", "0.7333593",...
0.77549005
0
Test that a deleted template is not included
def yOqD(YKHO): FYhl = list(rr1n(organization=YKHO.organization)) YKHO.assertEquals(len(FYhl), 14) YKHO.template_election_day.deleted = True YKHO.template_election_day.save() U2zl = list(rr1n(organization=YKHO.organization)) YKHO.assertEquals(len(U2zl), 12) W6mk = list(rr1n(organization=YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S5Eo(AZgw, KDYH):\n qm1k, MynF = TU9R('template_name', 'template_folder')(KDYH)\n AZgw.patch('app.engines.get_template', return_value=False)\n nUtV = P4t4.engines.remove_template(qm1k, MynF)\n assert nUtV['is_successful'] is False\n assert nUtV['msg'] == Xwgg('template_missing', template_name=qm...
[ "0.72272587", "0.67130834", "0.66039586", "0.6601392", "0.6547487", "0.6477207", "0.64704883", "0.6436379", "0.6422589", "0.6409443", "0.63883924", "0.6367638", "0.63529104", "0.63515097", "0.6338469", "0.6337075", "0.6332701", "0.6305991", "0.628073", "0.6268862", "0.6268458...
0.0
-1
Specifies the name of the Resource Group where the Virtual Hub should exist. Changing this forces a new resource to be created.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gMm1(YKHO, mWFP):\n YKHO.groupName = mWFP", "def b0A6(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'virtual_network_resource_group')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def ...
[ "0.6558107", "0.6450715", "0.6339959", "0.6339959", "0.63310367", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", "0.62471926", ...
0.6372916
14
The SKU of the Virtual Hub. Possible values are `Basic` and `Standard`. Changing this forces a new resource to be created.
def PXIM(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'sku')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXIM(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> 'outputs.ResourceSkuResponse':\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> qe4Y.Input[...
[ "0.7361108", "0.71781987", "0.71781987", "0.71772933", "0.71616113", "0.71616113", "0.70083594", "0.69998527", "0.6989527", "0.6989527", "0.6985332", "0.6985332", "0.6985332", "0.6985332", "0.695579", "0.695579", "0.695579", "0.6933324", "0.69276434", "0.69244313", "0.6810533...
0.7047972
7