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
Clean the values from the cells.
def o8c1(g75m): nPrm = g75m.string try: return nPrm.strip(' \n:-') except AttributeError: return u''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0SS(YKHO):\n YKHO.df['price'] = YKHO.df['price'].apply(lambda WKvO: YKHO.__normalize_price(WKvO))\n YKHO.df['subtype of property'] = YKHO.df['subtype of property'].apply(lambda WKvO: YKHO.__normalize_subtype(WKvO))\n YKHO.__save()", "def x0SS(YKHO):\n YKHO.values = []\n YKHO.times = []", "d...
[ "0.70210165", "0.69108564", "0.6846924", "0.68002844", "0.67072886", "0.6636495", "0.6627861", "0.6587673", "0.6586685", "0.6457414", "0.64344203", "0.63800466", "0.6353801", "0.63490623", "0.6347219", "0.63329715", "0.63132286", "0.6248321", "0.6247946", "0.6226419", "0.6225...
0.0
-1
returns rgb[a] tuple of the color with values in range 0.255
def d7Eb(YKHO, qfpW): return [Z9rn * 255 for Z9rn in YKHO.parse(qfpW)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_bX():\n Mkmy = oyIN.random.uniform()\n Oa1e = Mkmy\n Fg_i = Mkmy\n d7Eb = d7Eb - 0.3\n return (Mkmy, Oa1e, Fg_i)", "def nMpv(YKHO):\n cCuI = YKHO.get_rgba()\n return (int(cCuI[0] * 255), int(cCuI[1] * 255), int(cCuI[2] * 255))", "def OguN(Mkmy, Oa1e, Fg_i):\n return tuple([int(rou...
[ "0.768827", "0.76232797", "0.7607318", "0.7562035", "0.7528411", "0.72902304", "0.7288311", "0.7269566", "0.7245302", "0.7241478", "0.7226192", "0.72253746", "0.7208673", "0.7171564", "0.7164033", "0.7154148", "0.71443754", "0.71194136", "0.71019715", "0.71019715", "0.709869"...
0.69474906
33
queue redraw of the sprite. this function is called automatically whenever a sprite attribute changes. sprite changes that happen during scene redraw are ignored in order to avoid echoes. Call scene.redraw() explicitly if you need to redraw in these cases.
def gCKv(YKHO): F6jf = YKHO.get_scene() if F6jf: F6jf.redraw()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCKv(YKHO):\n if YKHO.__drawing_queued == False:\n YKHO.__drawing_queued = True\n YKHO._last_frame_time = JRYC.datetime.now()\n f63A.timeout_add(1000 / YKHO.framerate, YKHO.__redraw_loop)", "def QdZT(YKHO):\n YKHO.all_sprites.update()", "def gCKv(YKHO):\n YKHO.send({'msg': 're...
[ "0.6826841", "0.65953714", "0.65931976", "0.65931976", "0.64576083", "0.6450134", "0.63615495", "0.6336953", "0.63029236", "0.63007075", "0.6286257", "0.6227257", "0.6199541", "0.618128", "0.6162636", "0.6155209", "0.6133854", "0.6132362", "0.613004", "0.61192536", "0.6099664...
0.640914
6
Returns flat list of the sprite tree for simplified iteration
def PBXi(YKHO): def t9j0(qP20): if not qP20: return for Jqc7 in qP20: if Jqc7.visible: yield Jqc7 for aUGN in t9j0(Jqc7.get_mouse_sprites()): yield aUGN return t9j0(YKHO.get_mouse_sprites())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qP20(YKHO):\n return list(YKHO.spritedict)", "def qP20(YKHO):\n rPcR = []\n for u5GY in [AKIC.sprites() for AKIC in YKHO.groups]:\n rPcR.extend(u5GY)\n return rPcR", "def XO9N(YKHO):\n for Jqc7 in YKHO.sprites:\n for Hr10 in Jqc7.all_child_sprites():\n yield Hr10\n ...
[ "0.6755723", "0.6655461", "0.6607075", "0.63716155", "0.6274112", "0.615289", "0.60920966", "0.607349", "0.60321546", "0.6016882", "0.5998461", "0.595133", "0.5914404", "0.58943754", "0.5834383", "0.5832939", "0.582722", "0.58087885", "0.5740157", "0.5736504", "0.573084", "...
0.6415322
3
Returns a dictionary of the object's attributes
def MNRr(YKHO): iOI9 = {'attributes': YKHO.attributes, 'name': YKHO.name, 'models': YKHO.models, 'cache': YKHO.cache} return iOI9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o8Kj(YKHO):\n return dict(YKHO.__dict__)", "def azoT(Emd4):\n return dict(Emd4._attributes)", "def h6gc(YKHO):\n qXTy = {}\n qXTy['name'] = YKHO.name\n return qXTy", "def MNRr(YKHO):\n return {hkS8: getattr(YKHO, hkS8) for hkS8 in YKHO.ATTRIBUTES if hasattr(YKHO, hkS8)}", "def azoT(YK...
[ "0.81032956", "0.79559433", "0.7839186", "0.7826243", "0.7749962", "0.773791", "0.7719973", "0.7709837", "0.7703258", "0.76826507", "0.7678162", "0.76648283", "0.76644826", "0.76531005", "0.76376027", "0.76167053", "0.7606536", "0.7606536", "0.7596715", "0.75719994", "0.75682...
0.7341107
47
Approximates the integral by taking the mean value of n sample points
def vKZI(YRbF): return sum((Kt_s(2.0 * g_QQ - 1.0, YRbF) for g_QQ in WKvO)) / exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GOhn(P2GO, TRVV, Ngpo, J1b4, dg7v):\n ywwl = ((J1b4 - TRVV) * (dg7v - Ngpo)).astype(float)[:, oyIN.newaxis]\n return fZwH(P2GO, TRVV, Ngpo, J1b4, dg7v) / ywwl", "def A00z(exwG, JBMS, ifkm):\n BmL1 = lambda WKvO: WKvO ** exwG * eQSh.norm.pdf(WKvO, loc=JBMS, scale=ifkm)\n Qiat = lambda WKvO: eQSh.n...
[ "0.6774359", "0.6662888", "0.6556042", "0.65066636", "0.64874834", "0.6350698", "0.6330544", "0.63240105", "0.6317469", "0.63135636", "0.62890756", "0.6280329", "0.6278744", "0.6270084", "0.6258426", "0.62517256", "0.62257576", "0.621606", "0.62145734", "0.61856574", "0.61654...
0.7024117
0
Create a UNet model with the specified parameters.
def LQs7(*, GhuM, dxEX, Ep8u, PY12, mWFP, BKEM, xYGm, dvgN, rb7a, YAaY, x199, OR7m, IlDk, iRGN, XdpA, xXg7, iUCw, ITfN, jEwi, LwSi, IQe6, PzVQ, zjgh, j0m_, b750, k0uJ=None, Plsy=None, nJoZ=None, p5c_=None, **B2fa): assert dvgN in ['same', 'valid'] assert BKEM in ['linear', 'sigmoid'] assert OR7m in lo_L ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8cN(YKHO):\n if YKHO.model_type == 'U_Net':\n YKHO.unet = hdBG(img_ch=YKHO.img_ch, output_ch=1)\n elif YKHO.model_type == 'R2U_Net':\n YKHO.unet = mXKX(img_ch=YKHO.img_ch, output_ch=1, t=YKHO.t)\n elif YKHO.model_type == 'AttU_Net':\n YKHO.unet = jRaR(img_ch=YKHO.img_ch, output_c...
[ "0.7488325", "0.7194086", "0.68852425", "0.6877446", "0.6750321", "0.6734245", "0.67236775", "0.6678562", "0.6670191", "0.66698694", "0.66610515", "0.6622374", "0.66027164", "0.65785074", "0.6577268", "0.6574072", "0.6566768", "0.65514845", "0.65125746", "0.6459944", "0.64490...
0.5998769
99
Convert to grayscale and store as float32. PIL is used for image conversions.
def iiKZ(YKHO, QTBn): QTBn = QTBn.astype('float') if YKHO.input_image: QTBn = QTBn - 128.0 QTBn = QTBn / 255.0 return QTBn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gBe3(LNo8):\n return LNo8.astype('float64') / 255.0", "def qWz7(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)", "def qWz7(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)", "def qWz7(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2GRAY)", "def qWz7(VXjJ):\n return X...
[ "0.70119816", "0.696624", "0.696624", "0.6946168", "0.6946168", "0.6946168", "0.6946168", "0.6946168", "0.6887581", "0.685663", "0.685663", "0.685663", "0.685663", "0.683085", "0.6822283", "0.6821598", "0.6819323", "0.67776906", "0.6760897", "0.67278475", "0.67278475", "0.6...
0.0
-1
Clipping reward between 1 and 1
def gWIS(YKHO, vOGg): return oyIN.sign(vOGg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pSmb(vOGg):\n if vOGg > 0:\n return 1\n elif vOGg < 0:\n return -1\n else:\n return 0", "def O_PL(YKHO, vOGg: np.ndarray) -> oyIN.ndarray:\n if YKHO.norm_reward:\n vOGg = oyIN.clip(vOGg / oyIN.sqrt(YKHO.ret_rms.var + YKHO.epsilon), -YKHO.clip_reward, YKHO.clip_reward)\...
[ "0.82969934", "0.7193542", "0.6797862", "0.6695184", "0.66483873", "0.66374", "0.66374", "0.66363937", "0.6610107", "0.65876967", "0.6584032", "0.65770113", "0.65247196", "0.65051967", "0.6487961", "0.64767593", "0.64719474", "0.6460492", "0.6444292", "0.643959", "0.6423994",...
0.6949215
2
Finds the bearing from this to another point in degrees 0 is taken to be positive in the x axis 3 decimal places of accuracy if both points are identical, returns 90
def Je4s(YKHO, XP5J): if not isinstance(XP5J, YKHO.__class__): raise TypeError('Point expected, ' + XP5J.__class__.__name__ + ' found') Stdb = XP5J.x - YKHO.x d6_d = XP5J.y - YKHO.y Je4s = vwZf(d6_d, Stdb) return -round(_IXK(Je4s), 3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GVMD(O3Ka, qqsd):\n C3yo = qqsd.lon - O3Ka.lon\n H2Hj = qqsd.lat - O3Ka.lat\n Je4s = 90.0 + epAf.atan2(-H2Hj, C3yo) * 57.2957795\n if Je4s < 0:\n Je4s += 360.0\n return Je4s", "def Je4s(KwKv: Coordinates, YBrO: Coordinates) -> float:\n pTny = PZ77.WGS84\n zFiD = pTny.Inverse(KwKv....
[ "0.8001028", "0.77612036", "0.7637118", "0.7535436", "0.7490481", "0.733182", "0.72837096", "0.7214976", "0.7178835", "0.71778756", "0.7155988", "0.7117685", "0.7109763", "0.7104819", "0.7093009", "0.7071723", "0.7065482", "0.70323956", "0.7016364", "0.69986653", "0.6959959",...
0.73701406
5
Returns temperature at LCL. T T at 2m in Kelvin QV QV at 2m [01] PS surface pressure
def FM1n(Kt_s, wfxe, Ub6x): Brq_ = jF8T(wfxe, Kt_s, Ub6x) VWrU = Kt_s - 273.16 gnoa = Kt_s - (14.55 + 0.114 * VWrU) * (1 - Brq_) + ((2.5 + 0.007 * VWrU) * (1 - Brq_)) ** 3 + (15.9 + 0.117 * VWrU) * (1 - Brq_) ** 14 AXpl = 1 / (1 / (gnoa - 56) + RKD7(Kt_s / gnoa) / 800) + 56 return AXpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovGo(yizX):\n return z1KK.kT * yizX", "def LpBd(uL0C, Vq3K, XP5J):\n YgLq = BSBl(Vq3K)\n LpBd = (1.0 + 0.608 * PInX(uL0C, Vq3K, XP5J)) * YgLq\n return LpBd", "def ovGo(YKHO):\n Yh3e = YKHO.data.adc_t\n Z9rn = YKHO.calibration\n CIn9 = ((Yh3e >> 3) - (Z9rn.T1 << 1)) * Z9rn.T2 >> 11\n ...
[ "0.74484736", "0.7440637", "0.7373816", "0.706755", "0.705701", "0.70216453", "0.70044684", "0.6979399", "0.6976251", "0.69743687", "0.696614", "0.6942633", "0.6931453", "0.6919788", "0.68802416", "0.6877309", "0.6854417", "0.68430525", "0.68306714", "0.68117917", "0.6772167"...
0.0
-1
Compute cumulative probability. Given a list of SWW scores in region ``vals``, return list ``freqs_cum`` where probability that randomly picked value in `vals` is equal or greater than i equals freqs_cum[i]. Max_val is the largest possible value that can be expected in `vals`.
def cGmV(T6S7, JCoA): J1c0, bGrB = XTiz.histogram(T6S7, bins=range(JCoA + 1 + 1), density=True) LBlx = XTiz.cumsum(J1c0[::-1]) return LBlx[::-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cq38(T6S7):\n flrn = [0 for wEf2 in range(0, max(T6S7))]\n kUYK = [wEf2 + 1 for wEf2 in range(0, max(T6S7))]\n for BWXx in T6S7:\n flrn[BWXx - 1] += 1\n flrn = [QTg7 / len(T6S7) for QTg7 in flrn]\n return (kUYK, flrn)", "def A1tq(fUYa, CkYf=True):\n YzER = TGxd(fUYa, CkYf)\n retur...
[ "0.61339694", "0.5870926", "0.56602764", "0.5561179", "0.5524621", "0.55178744", "0.54322445", "0.53426087", "0.5180543", "0.5172552", "0.5163535", "0.5087556", "0.5063701", "0.50629854", "0.5058408", "0.503685", "0.5027199", "0.5026385", "0.49967626", "0.49835223", "0.495023...
0.6897905
0
Helper function to normalize a vector to the range (0, 1)
def NkkI(T6S7): kpLf = oyIN.min(T6S7) JCoA = oyIN.max(T6S7) return (T6S7 - kpLf) / (JCoA - kpLf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDTB(Ty9i):\n return Ty9i / i1gc(Ty9i)", "def AKms(iArr):\n min = oyIN.min(iArr)\n max = oyIN.max(iArr)\n range = max - min\n iArr = iArr - min\n if epAf.fabs(range) >= 1e-10:\n iArr = iArr / range\n iArr = iArr - 0.5\n else:\n iArr = iArr - min\n return iArr", ...
[ "0.8411605", "0.8397153", "0.8243138", "0.81792194", "0.8161329", "0.80947816", "0.8053238", "0.8041873", "0.80191404", "0.7963669", "0.7962966", "0.79355747", "0.7880043", "0.78680974", "0.78587765", "0.7858173", "0.7845323", "0.78345245", "0.782696", "0.77739954", "0.776796...
0.7101024
93
Returns the unique names of all the children as a list.
def izwJ(YKHO): return sorted(set((Z9rn.name for Z9rn in YKHO.children)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mfd6(YKHO):\n return YKHO._children.keys()", "def fDxs(YKHO):\n try:\n ZWCE = [WKvO.name for WKvO in YKHO.children]\n except AttributeError:\n raise AttributeError('No name set for child [{}]'.format(YKHO.name))\n else:\n return ZWCE", "def fDxs(YKHO) -> fHNa[str]:\n ret...
[ "0.82738036", "0.81569463", "0.8039128", "0.7660154", "0.7511948", "0.73863983", "0.7343358", "0.7323438", "0.7229946", "0.7229946", "0.7229946", "0.7229946", "0.7229946", "0.7218043", "0.7171644", "0.7137912", "0.71151924", "0.7096796", "0.7087552", "0.7066333", "0.7057523",...
0.7281885
8
Returns the name of the section.
def XLMv(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M8YW(YKHO):\n raise NotImplementedError()", "def M8YW(YKHO):\n return YKHO.value", "def HVam(YKHO, XLMv):\n return None", "def jXK2(YKHO, mWFP: str) -> str:\n return f'\"{akhO}{mWFP}\"'", "def Ntrt(YKHO):\n return J8uC.SBSection_GetName(YKHO)", "def xDj7(YKHO):\n raise NotImplemente...
[ "0.8622926", "0.8607266", "0.8412069", "0.8279465", "0.8014682", "0.78674257", "0.7410611", "0.74024373", "0.7384567", "0.731824", "0.72511035", "0.71875334", "0.71848136", "0.7157766", "0.711948", "0.70816994", "0.7021638", "0.6990595", "0.696724", "0.68549544", "0.6821163",...
0.8391283
3
Returns all of the deduplicated parents as a list. If a child has no parent, the child itself is treated as the parent.
def ACnF(YKHO): ACnF = [] PwWw = set() for Z9rn in YKHO.children: XP5J = Z9rn.parent if XP5J is not None: if XP5J not in PwWw: ACnF.append(XP5J) PwWw.add(XP5J) elif Z9rn not in PwWw: ACnF.append(Z9rn) PwWw.add(Z9rn) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rKzm(YKHO):\n ACnF = []\n _AKB = YKHO._parent\n while _AKB is not None:\n ACnF.append(_AKB)\n _AKB = _AKB._parent\n ACnF.reverse()\n return ACnF", "def HqGg(YKHO):\n ACnF = []\n ZfUD = YKHO\n while ZfUD.parent is not None:\n ACnF.append(ZfUD.parent)\n ZfUD ...
[ "0.7314901", "0.726888", "0.7195835", "0.7161934", "0.7153962", "0.7045152", "0.6923321", "0.6883966", "0.6819174", "0.6811464", "0.68074155", "0.6717781", "0.6699623", "0.6693483", "0.66703504", "0.6663349", "0.6651944", "0.6651605", "0.66191655", "0.6589523", "0.6577394", ...
0.7401886
0
Returns the furthest ancestor ``Entry`` instances of all children. If a child has no furthest ancestor, the child itself is treated as a root.
def YPJ1(YKHO): YPJ1 = [] PwWw = set() for Z9rn in YKHO.children: Mkmy = Z9rn.root if Mkmy is not None: if Mkmy not in PwWw: YPJ1.append(Mkmy) PwWw.add(Mkmy) elif Z9rn not in PwWw: YPJ1.append(Z9rn) PwWw.add(Z9rn) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AzfL(YKHO):\n JZlq = [YKHO.value]\n _AKB = YKHO.parent\n while _AKB:\n JZlq.append(_AKB.value)\n _AKB = _AKB._get_parent()\n return JZlq", "def tk5Y(YKHO):\n sSaq = YKHO\n for F_G6 in YKHO.iter_ancestors():\n sSaq = F_G6\n return sSaq", "def JZlq(YKHO, *, tk5Y: Opt...
[ "0.62533575", "0.6206472", "0.59248126", "0.58636546", "0.58617234", "0.58181274", "0.58095694", "0.57553405", "0.5739685", "0.57183385", "0.567232", "0.564793", "0.5629392", "0.56268346", "0.56173176", "0.5533334", "0.552314", "0.5510857", "0.5461639", "0.5460281", "0.544386...
0.5734322
9
Returns the values of all the children as a list.
def hkxX(YKHO): return [Z9rn.value for Z9rn in YKHO.children if Z9rn.value is not None]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7sj(YKHO):\n return [Ty9i for G1Hx, Ty9i in sorted(YKHO.children.items())]", "def yrsg(YKHO):\n return list(YKHO.__children)", "def afYC(YKHO):\n return [Z9rn for Z9rn in YKHO._children]", "def SUyF(YKHO, mWFP: str) -> x1iM[list]:\n return [WgYu.child_values(mWFP) for WgYu in YKHO]", "def ...
[ "0.8249242", "0.8093202", "0.80443704", "0.79764265", "0.79320925", "0.79178", "0.78741604", "0.78741133", "0.7813438", "0.7801938", "0.7801938", "0.77976656", "0.7738969", "0.7725947", "0.76837957", "0.76742303", "0.7666959", "0.7630405", "0.7630405", "0.7613326", "0.7602953...
0.8072763
2
Returns the unique values of all the children as a list.
def AtJO(YKHO): return sorted(set((Z9rn.value for Z9rn in YKHO.children if Z9rn.value is not None)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gFOW(YKHO):\n Ys9o = YKHO.get_all_children()\n return [WKvO for Ty9i in Ys9o.values() for WKvO in Ty9i]", "def i7sj(YKHO):\n return [Ty9i for G1Hx, Ty9i in sorted(YKHO.children.items())]", "def njjt(YKHO) -> list:\n ycBG = YKHO.child_items\n YKHO.child_items = list()\n return ycBG", "de...
[ "0.777715", "0.74611497", "0.7421279", "0.736581", "0.7184037", "0.7143085", "0.69678944", "0.6926875", "0.691781", "0.69071054", "0.684657", "0.68024176", "0.6788812", "0.6784569", "0.6731405", "0.6731405", "0.6720377", "0.6705203", "0.6699241", "0.6690517", "0.6677888", "...
0.79184484
0
from_dict is a helper function that does its best to convert a python dict
def jG8h(zXzD): def _gRY(Csk6): Aofo = [] for G1Hx, Ty9i in Csk6.items(): if isinstance(Ty9i, dict): Aofo.append(RAUw(name=G1Hx, children=_gRY(Ty9i))) elif isinstance(Ty9i, list): Ylbp = [RAUw(name=G1Hx, children=_gRY(YRbF)) if isinstance(YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, fGC9):\n ...", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4....
[ "0.8054288", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "0.7736612", "...
0.0
-1
Returns True if this SR class understands the given dconf string
def upba(type): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iwu4(Emd4, Fv2L: Dict[str, Any]) -> bool:\n ...", "def dg96(str, cmPJ=WLfZ.code_gen_config):\n if str in cmPJ:\n return cmPJ[str]\n return False", "def DBBl(YKHO, xqoZ):\n for KCHu in YKHO.CONF_ENTRIES:\n if ZbWC.match('^' + KCHu + '$', xqoZ):\n return True\n return ...
[ "0.66033036", "0.61644536", "0.57772654", "0.5760133", "0.5727536", "0.5702944", "0.56961346", "0.56961346", "0.56556934", "0.56093395", "0.55788594", "0.5559541", "0.5555977", "0.5516535", "0.54099584", "0.53905135", "0.53789026", "0.5365346", "0.5363424", "0.5356253", "0.53...
0.0
-1
Reset method of the environment. The history of the model is also reset. Returns
def SiRx(YKHO): rNYq = super(YecH, YKHO).reset() YKHO.set_history(rNYq, 1) return rNYq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n return YKHO.env.reset()", "def SiRx(YKHO):\n return YKHO.env.reset()", "def SiRx(YKHO):\n return YKHO.env.reset()", "def SiRx(YKHO):\n return YKHO.__env.reset()", "def SiRx(YKHO):\n YKHO.model.reset()", "def yo0O(YKHO):\n QTBn = YKHO.env.reset()\n QTBn = YKHO.prepro...
[ "0.8375503", "0.8375503", "0.8375503", "0.83568996", "0.8159549", "0.815387", "0.8148064", "0.79162663", "0.7905278", "0.7871985", "0.78698814", "0.7856251", "0.7822176", "0.7789399", "0.77542967", "0.7717859", "0.7717859", "0.7712139", "0.7712139", "0.7702668", "0.76865804",...
0.8844016
0
Log Errors caused by Updates.
def P1dF(QdZT, QpfX): bo34.warning('Update "%s" caused error "%s"', QdZT, QpfX.error)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)", "def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')", "def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err...
[ "0.7895395", "0.788395", "0.78750193", "0.7873498", "0.78300834", "0.7790406", "0.7785151", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.7781314", "0.77660847", "0.77220625", "0.77220625", "0.7721968", "0.77089256", "0.76969343", "0.76579255", "0.7...
0.7746185
18
Create a bullet object where the ship is located
def FIMM(YKHO, tJm0, Vjhr, C7MP): super(GBVa, YKHO).__init__() YKHO.screen = Vjhr YKHO.rect = a9eO.Rect(0, 0, tJm0.bullet_width, tJm0.bullet_height) YKHO.rect.centerx = C7MP.rect.centerx YKHO.rect.top = C7MP.rect.top YKHO.y = float(YKHO.rect.y) YKHO.color = tJm0.bullet_color YKHO.speed_f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Vjhr, C7MP):\n super(GBVa, YKHO).__init__()\n YKHO.screen = Vjhr\n YKHO.rect = a9eO.Rect(0, 0, 20, 5)\n YKHO.rect.centerx = C7MP.rect.centerx\n YKHO.rect.top = C7MP.rect.top\n YKHO.x = YKHO.rect.x\n YKHO.color = (60, 60, 60)\n YKHO.speed_factor = 3", "def FIMM(YKHO, Vjhr, C...
[ "0.7672661", "0.76446986", "0.7595857", "0.74215347", "0.7415238", "0.7398941", "0.73229474", "0.7296659", "0.725444", "0.721073", "0.70125425", "0.6996246", "0.69504875", "0.6930621", "0.69284785", "0.6889903", "0.6867771", "0.6842089", "0.68251956", "0.68205804", "0.680124"...
0.7365168
6
Returns string version of the symbol table.
def Oqh1(YKHO): REqm = max([len(G1Hx) for G1Hx in YKHO.symbols]) sTfF = '\n'.join(['%*s = %s' % (REqm, H5ew, YKHO.symbols[H5ew]) for H5ew in YKHO.symbols]) return sTfF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.hash_table)", "def zAg0(YKHO):\n return str(YKHO._table)", "def zAg0(YKHO):\n return str(YKHO._table)", "def zAg0(YKHO):\n return str(YKHO._table)", "def zAg0(YKHO):\n hlel = ''\n hlel += '\\t\\t'\n for YRbF in range(YKHO.number_of_symbols):\n h...
[ "0.649268", "0.64885974", "0.64885974", "0.64885974", "0.6418355", "0.6337983", "0.63103133", "0.6303973", "0.6263541", "0.6257364", "0.6240201", "0.6232045", "0.62155217", "0.62070596", "0.6172071", "0.61706847", "0.6167492", "0.6167492", "0.6166673", "0.61656237", "0.613822...
0.84209454
0
Recursively merge two dictionaries into a single dictionary.
def k1Ji(LFlW: Dict[str, Any], _tIi: Dict[str, Any]) -> cuzp[str, ImMB]: for H5ew, BWXx in LFlW.items(): if H5ew in _tIi: if isinstance(BWXx, g760.Mapping) and isinstance(_tIi[H5ew], g760.Mapping): _tIi[H5ew] = k1Ji(BWXx, _tIi[H5ew]) XIcQ = LFlW.copy() XIcQ.update(_tIi) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roQF(jzdc, Fg_i):\n return W0j7(jth9.deepcopy(jzdc), Fg_i)", "def Kzq2(jzdc: dict, Fg_i: dict) -> dict:\n for H5ew in Fg_i:\n if H5ew in jzdc:\n if isinstance(jzdc[H5ew], dict) and isinstance(Fg_i[H5ew], dict):\n Kzq2(jzdc[H5ew], Fg_i[H5ew])\n elif jzdc[H5ew]...
[ "0.8180638", "0.8175531", "0.8166532", "0.8133811", "0.81141776", "0.80924726", "0.8077441", "0.8068455", "0.80366135", "0.8018077", "0.80104476", "0.7999365", "0.79918224", "0.79603904", "0.7951689", "0.7948821", "0.79375005", "0.7933627", "0.7925516", "0.79018664", "0.78702...
0.8194653
0
Loads chromedriver from path
def bd97(RAwU): if RAwU: E_qD = cSpz.Chrome('../../../../chromedriver') else: E_qD = cSpz.Chrome('C:\\Users\\manuel.lopez\\Documents\\chromedriver.exe') try: E_qD.maximize_window() except: pass return E_qD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uuqy(YKHO):\n E_qD = None\n if YKHO.browser == 'firefox':\n ktUp = cSpz.FirefoxProfile(YKHO.browser_path)\n E_qD = cSpz.Firefox(ktUp)\n elif YKHO.browser == 'chrome':\n uh1m = cSpz.ChromeOptions()\n if YKHO.browser_path:\n print('here!!!', YKHO.browser_path)\n ...
[ "0.7269925", "0.7207782", "0.7048372", "0.7002865", "0.6871757", "0.6664108", "0.6578152", "0.6560123", "0.65596026", "0.6535799", "0.64918387", "0.64857256", "0.6481962", "0.6406813", "0.6388294", "0.63579345", "0.63133997", "0.6285158", "0.62629235", "0.62605006", "0.623552...
0.7103957
2
Like login_required but also checks for admin access
def MgXm(JfyU): @uKii @xBlr.wraps(JfyU) def h3Xc(*qIxc, **B2fa): if c5ow.user_level < 2: return _ZMm.unauthorized() return JfyU(*qIxc, **B2fa) return h3Xc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MgXm(*qIxc, **B2fa):\n\n def gmaE(P6bq):\n if not P6bq.is_authenticated:\n return False\n if not P6bq.is_admin:\n raise wPvU\n return True\n return zcWo(gmaE, *qIxc, **B2fa)", "def MgXm(DCgT):\n\n def Jypj(YKHO, *qIxc, **B2fa):\n Jpbe = YKHO.auth\n ...
[ "0.80614007", "0.78865874", "0.7772579", "0.77691424", "0.7727817", "0.7675783", "0.7675783", "0.7675783", "0.7671969", "0.7639473", "0.74320966", "0.7430413", "0.7371194", "0.7361267", "0.7306321", "0.7269381", "0.7255046", "0.7209021", "0.7199481", "0.71820456", "0.7142054"...
0.76756287
8
Returns the bond angle between three backbone atoms, defined by 'bond_angle'.
def q7In(yHt9, Tqr_): return q7In
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tqr_(YKHO, YRbF, r845, G1Hx):\n im04 = cHPo.bond_angle(YKHO._handle, YRbF, r845, G1Hx)\n return im04", "def Tqr_(YKHO, vvCZ, AhI2, R_EE):\n lSjb = YKHO.xx[:, vvCZ] - YKHO.xx[:, AhI2]\n v8Fa = YKHO.xx[:, R_EE] - YKHO.xx[:, AhI2]\n tRqG = oyIN.arccos(YKHO.dot_pdt(lSjb, v8Fa) / (pEuX.norm(lSjb, a...
[ "0.7104552", "0.7080734", "0.695764", "0.6906759", "0.6748071", "0.674658", "0.674658", "0.6532496", "0.6481022", "0.6448872", "0.6351693", "0.62977195", "0.62977195", "0.62898016", "0.6279723", "0.627129", "0.62494624", "0.624067", "0.6227633", "0.6219678", "0.6209771", "0...
0.6050675
37
Check if uploaded file(s) have/has the right extension.
def XT0o(Ux0P, KzJa=set(['txt'])): return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in KzJa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGfQ(YKHO):\n Ux0P, Fst3 = YKHO.file_name.split('.')\n if Fst3 not in ['csv', 'xlsx']:\n return 'Please upload a CSV or XLSX file only _/\\\\_'\n return True", "def vGk3(YKHO):\n return YKHO.extension in YKHO.file_type_dict", "def XT0o(Va2z):\n return Va2z.strip('.') in UWr8", "def ...
[ "0.81958616", "0.80312294", "0.7925695", "0.7878213", "0.77945894", "0.77755266", "0.7708499", "0.768742", "0.7659035", "0.7637215", "0.7630073", "0.75985885", "0.75958896", "0.758455", "0.7583055", "0.7563017", "0.75609", "0.7560738", "0.756023", "0.756005", "0.756005", "0...
0.0
-1
Gets the id of this ExternalShipment.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def wfbg(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n ...
[ "0.71058726", "0.71058726", "0.71058726", "0.70663613", "0.70569855", "0.7013752", "0.7013752", "0.7013752", "0.7013752", "0.7013752", "0.7013752", "0.7013752", "0.7013752", "0.7013752", "0.7013752", "0.7003349", "0.7003349", "0.7003349", "0.7003349", "0.7003349", "0.6987293"...
0.0
-1
Gets the create_date of this ExternalShipment.
def Cbc0(YKHO): return YKHO._create_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cbc0(YKHO):\n return YKHO.__create_date", "def Cbc0(YKHO) -> qcWV:\n return YKHO._create_date", "def uVt6(YKHO):\n return YKHO._payload.get_created_date()", "def d8PD(YKHO) -> qcWV.date:\n return YKHO._creation_date", "def d8PD(YKHO) -> qcWV.date:\n return YKHO._creation_date", "def a0...
[ "0.7924843", "0.7905273", "0.7728623", "0.73663616", "0.73663616", "0.72936255", "0.72891295", "0.72891295", "0.72891295", "0.72891295", "0.72891295", "0.7221807", "0.713962", "0.71391016", "0.7127262", "0.7127262", "0.70832616", "0.7056554", "0.7056554", "0.7056554", "0.7056...
0.80414647
0
Gets the modify_date of this ExternalShipment.
def mXGG(YKHO): return YKHO._modify_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lOhs(YKHO):\n return YKHO._modified_date", "def KK98(YKHO):\n return YKHO._date_modified", "def z6F7(YKHO):\n U6D_ = YKHO.get_element('//dc:date')\n if U6D_ is None:\n return None\n p60L = U6D_.text\n return cJ1g.decode(p60L)", "def mfCm(YKHO) -> qcWV:\n return YKHO._modified_...
[ "0.7451912", "0.7131755", "0.7047956", "0.698782", "0.6922634", "0.68843585", "0.6752797", "0.6720887", "0.6638792", "0.6631009", "0.6555294", "0.65062743", "0.65062743", "0.64971596", "0.6467389", "0.6458714", "0.63287973", "0.6327573", "0.62926644", "0.62561345", "0.6226544...
0.7868634
0
Sets the modify_date of this ExternalShipment.
def mXGG(YKHO, mXGG): YKHO._modify_date = mXGG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lOhs(YKHO, lOhs):\n YKHO._modified_date = lOhs", "def lOhs(YKHO, lOhs):\n YKHO._modified_date = lOhs", "def KK98(YKHO, KK98):\n YKHO._date_modified = KK98", "def KK98(YKHO, KK98):\n YKHO._date_modified = KK98", "def KK98(YKHO, KK98):\n YKHO._date_modified = KK98", "def KK98(YKHO, KK98)...
[ "0.72294825", "0.7219074", "0.689192", "0.689192", "0.689192", "0.689192", "0.689192", "0.689192", "0.689192", "0.689192", "0.689192", "0.689192", "0.689192", "0.68055594", "0.67854995", "0.67260104", "0.66590106", "0.6533649", "0.65109", "0.5950782", "0.5950782", "0.589982...
0.82254
0
Gets the order_id of this ExternalShipment.
def zJ7I(YKHO): return YKHO._order_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXyg(YKHO):\n return YKHO.__order_id", "def zJ7I(YKHO) -> int:\n return YKHO._order_id", "def C67a(YKHO):\n return YKHO._ext_order_id", "def yWdm(YKHO):\n return YKHO._id_order", "def Ijcl(YKHO) -> int:\n return YKHO._order_number", "def AtRw(YKHO):\n zJ7I = YKHO._counter\n YKHO....
[ "0.78845507", "0.77967656", "0.7442082", "0.68280774", "0.67564625", "0.6747788", "0.67016083", "0.6696839", "0.6382072", "0.6382072", "0.6224079", "0.62225723", "0.6183298", "0.6127065", "0.6068836", "0.60126", "0.6000701", "0.5981901", "0.5956094", "0.5780586", "0.57783854"...
0.786696
1
Sets the order_id of this ExternalShipment.
def zJ7I(YKHO, zJ7I): YKHO._order_id = zJ7I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FjrU(YKHO, zJ7I):\n YKHO.__order_id = zJ7I", "def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I", "def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I", "def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I", "def zJ7I(YKHO, zJ7I):\n YKHO._order_id = zJ7I", "def zJ7I(YKHO, zJ7I):\n YKHO._order_id = ...
[ "0.81969565", "0.8103137", "0.8103137", "0.8103137", "0.8103137", "0.8103137", "0.76380897", "0.7523664", "0.74963534", "0.74849963", "0.73386127", "0.71493965", "0.7030668", "0.6936443", "0.6871212", "0.68299097", "0.6762264", "0.66908723", "0.6491729", "0.64088386", "0.6338...
0.805405
6
Gets the carrier_id of this ExternalShipment.
def oWcl(YKHO): return YKHO._carrier_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kWYc(YKHO):\n return YKHO.__carrier_code", "def plL4(YKHO) -> str:\n return qe4Y.get(YKHO, 'carrier_account_number')", "def EEKh(YKHO) -> str:\n return qe4Y.get(YKHO, 'carrier_name')", "def EEKh(YKHO) -> str:\n return qe4Y.get(YKHO, 'carrier_name')", "def oWcl(YKHO, oWcl):\n YKHO._carrie...
[ "0.7542238", "0.7181322", "0.6968812", "0.6968812", "0.60578716", "0.598714", "0.5898949", "0.57875013", "0.57653165", "0.574291", "0.5620933", "0.55781496", "0.55166936", "0.54914504", "0.5445359", "0.5445359", "0.5408447", "0.53931254", "0.53813595", "0.53759056", "0.537197...
0.8573999
0
Sets the carrier_id of this ExternalShipment.
def oWcl(YKHO, oWcl): YKHO._carrier_id = oWcl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kWYc(YKHO, kWYc):\n YKHO._carrier_code = kWYc", "def oWcl(YKHO):\n return YKHO._carrier_id", "def EEKh(YKHO, EEKh):\n if EEKh is not None and len(EEKh) > 20:\n raise ValueError('Invalid value for `carrier_name`, length must be less than or equal to `20`')\n YKHO._carrier_name = EEKh", ...
[ "0.71447223", "0.70388764", "0.6114161", "0.5993015", "0.5980734", "0.5980734", "0.57348466", "0.5703077", "0.5698697", "0.56709033", "0.56641394", "0.56637967", "0.56637967", "0.56637967", "0.55709565", "0.5509444", "0.5432977", "0.5371641", "0.5371641", "0.5327086", "0.5236...
0.85172945
0
Gets the tracking_no of this ExternalShipment.
def SH1s(YKHO): return YKHO._tracking_no
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n9t8(YKHO) -> str:\n return qe4Y.get(YKHO, 'tracking_number')", "def n9t8(YKHO) -> str:\n return qe4Y.get(YKHO, 'tracking_number')", "def aJNy(YKHO, vkFH):\n if qtzc.match(vkFH):\n Ltpw = dict(StampsTxID=vkFH)\n else:\n Ltpw = dict(TrackingNumber=vkFH)\n return YKHO.call('Track...
[ "0.7657626", "0.7657626", "0.66360015", "0.65876675", "0.65876675", "0.64128304", "0.6408257", "0.6218169", "0.61274517", "0.61022437", "0.59193444", "0.5912008", "0.5901932", "0.5845953", "0.5763907", "0.57538086", "0.57538086", "0.57538086", "0.5735137", "0.56824565", "0.56...
0.8098886
0
Gets the dim2_in of this ExternalShipment.
def SneL(YKHO): return YKHO._dim2_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aVHZ(YKHO):\n return YKHO._dim1_in", "def SneL(YKHO, SneL):\n YKHO._dim2_in = SneL", "def FWxw(YKHO):\n return YKHO._dim3_in", "def _stK(YKHO):\n return YKHO.x2", "def _stK(YKHO):\n return YKHO.x2", "def cWFu(YKHO):\n return YKHO._n2", "def QyVM(YKHO):\n return YKHO.IN", "def...
[ "0.7086189", "0.66521376", "0.66063917", "0.60212123", "0.60212123", "0.5879434", "0.5799491", "0.57895726", "0.57473916", "0.57087964", "0.569938", "0.56418633", "0.5605135", "0.55998975", "0.55708283", "0.5530437", "0.5507109", "0.5507109", "0.54979944", "0.543081", "0.5430...
0.84125143
0
Sets the dim2_in of this ExternalShipment.
def SneL(YKHO, SneL): YKHO._dim2_in = SneL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SneL(YKHO):\n return YKHO._dim2_in", "def aVHZ(YKHO, aVHZ):\n YKHO._dim1_in = aVHZ", "def FWxw(YKHO, FWxw):\n YKHO._dim3_in = FWxw", "def V_6l(YKHO, ZHfW: 'itkImageUC2') -> 'void':\n return sWT0.itkN4BiasFieldCorrectionImageFilterISS2IUC2ISS2_SetInput2(YKHO, ZHfW)", "def V_6l(YKHO, ZHfW: 'i...
[ "0.6850547", "0.68104297", "0.60556203", "0.5662343", "0.5644356", "0.5617433", "0.5616402", "0.5599412", "0.5511693", "0.5483376", "0.5462283", "0.5441586", "0.54388094", "0.54058796", "0.5405548", "0.53897333", "0.53610796", "0.5358025", "0.5339607", "0.5321899", "0.5304081...
0.84877
0
Gets the dim3_in of this ExternalShipment.
def FWxw(YKHO): return YKHO._dim3_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWxw(YKHO, FWxw):\n YKHO._dim3_in = FWxw", "def aVHZ(YKHO):\n return YKHO._dim1_in", "def SneL(YKHO):\n return YKHO._dim2_in", "def ZB7u(YKHO):\n return YKHO._data_train['3d']", "def vNQ8(YKHO):\n return oekH.DataSetIndex3D_get_dimension(YKHO)", "def NAD_(YKHO):\n return YKHO._data_...
[ "0.6899491", "0.66956246", "0.646262", "0.61760026", "0.6156594", "0.601185", "0.56836784", "0.5679506", "0.5670303", "0.56677043", "0.56481034", "0.56045485", "0.55562764", "0.55166674", "0.5501327", "0.5493386", "0.5472969", "0.5472969", "0.54701465", "0.5463744", "0.545170...
0.8562472
0
Sets the dim3_in of this ExternalShipment.
def FWxw(YKHO, FWxw): YKHO._dim3_in = FWxw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWxw(YKHO):\n return YKHO._dim3_in", "def aVHZ(YKHO, aVHZ):\n YKHO._dim1_in = aVHZ", "def rNcn(YKHO, rNcn):\n YKHO._x3 = rNcn", "def SneL(YKHO, SneL):\n YKHO._dim2_in = SneL", "def nzcK(YKHO, LNo8: 'itkImageF3') -> 'void':\n return sWT0.itkN4BiasFieldCorrectionImageFilterISS3IUC3ISS3_Set...
[ "0.6968725", "0.63967156", "0.6209284", "0.60701513", "0.5728692", "0.57045674", "0.5691144", "0.56775016", "0.5606498", "0.56022143", "0.55786437", "0.55699", "0.55685437", "0.5567469", "0.5564645", "0.55309534", "0.54810596", "0.5433299", "0.5422747", "0.5422652", "0.542165...
0.864952
0
Gets the weight_lbs of this ExternalShipment.
def cr0z(YKHO): return YKHO._weight_lbs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NiGY(YKHO):\n return round(YKHO.weight / 0.45359237, 1)", "def upAO(YKHO):\n return float(YKHO.weight_lbs) * 0.453592", "def js1f(YKHO):\n return YKHO.weights", "def wT46(YKHO):\n return YKHO._weights", "def wT46(YKHO):\n return YKHO._weights", "def wT46(YKHO):\n return YKHO._weight...
[ "0.79914886", "0.73022693", "0.720043", "0.71972483", "0.71972483", "0.71970904", "0.717692", "0.717692", "0.7149933", "0.71366984", "0.7121461", "0.71000254", "0.70772076", "0.7064003", "0.7060571", "0.6988907", "0.6988907", "0.6937874", "0.6908579", "0.6908579", "0.68894243...
0.866025
0
Gets the dim_weight of this ExternalShipment.
def PWsY(YKHO): return YKHO._dim_weight
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWGk(YKHO, Norb=None):\n if Norb is None:\n Norb = YKHO._body_input_depth\n MuED = YKHO._get_initializer(Norb)\n return ZylS.get_variable(name='weights', shape=(YKHO._vocab_size, Norb), initializer=MuED)", "def upAO(YKHO):\n return YKHO._space._weight", "def Vb5m(YKHO):\n return YKHO....
[ "0.7240214", "0.7075994", "0.70608515", "0.69931346", "0.6988021", "0.6962028", "0.69360876", "0.69360876", "0.69216615", "0.69216615", "0.69139504", "0.6909302", "0.69038653", "0.69038653", "0.69038653", "0.69038653", "0.69038653", "0.6894715", "0.6894715", "0.6880567", "0.6...
0.85942423
0
Sets the residential of this ExternalShipment.
def QVjZ(YKHO, QVjZ): YKHO._residential = QVjZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVjZ(YKHO):\n return YKHO._residential", "def LjG9(YKHO, kUkU):\n if YKHO.residue == None:\n YKHO.residue = kUkU", "def yGyV(YKHO, yGyV):\n YKHO._residency_status = yGyV", "def rvpO(YKHO, uuHL):\n if YKHO.res.isDifferent(uuHL):\n YKHO.res.copy(uuHL)\n YKHO.grad_updated = ...
[ "0.63978076", "0.60463434", "0.5800818", "0.576833", "0.5610074", "0.55925953", "0.552399", "0.552399", "0.54724234", "0.5384742", "0.5258543", "0.5192835", "0.51731205", "0.51688546", "0.5132074", "0.511052", "0.511052", "0.511052", "0.50866604", "0.5037349", "0.49641404", ...
0.834244
0
Gets the zone of this ExternalShipment.
def lhKE(YKHO): return YKHO._zone
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lhKE(YKHO):\n return type(YKHO).importeur.salle.get_zone(YKHO._nom_zone)", "def lhKE(YKHO) -> int:\n return YKHO._zone", "def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')", "def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')", "def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zo...
[ "0.8016437", "0.7598766", "0.75539076", "0.75539076", "0.75539076", "0.75539076", "0.75539076", "0.743992", "0.743992", "0.74192816", "0.74192816", "0.7298869", "0.72822976", "0.72822976", "0.72612804", "0.7188592", "0.7188592", "0.7188592", "0.7188592", "0.7188592", "0.71885...
0.7930331
1
Gets the status of this ExternalShipment.
def jGRS(YKHO): return YKHO._status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n return YKHO._status", "def CHRo(YKHO):\n return YKHO._status", "def VLTN(YKHO):\n return YKHO._service.get_status()", "def VLTN(YKHO):\n return YKHO._status", "def VLTN(YKHO):\n return YKHO._status", "def QtQ8(YKHO):\n return YKHO._status", "def QtQ8(YKHO):\n retu...
[ "0.74603534", "0.7437951", "0.74218255", "0.74078125", "0.74078125", "0.7372012", "0.7372012", "0.7372012", "0.7369902", "0.7352162", "0.73093414", "0.73093414", "0.73093414", "0.7288423", "0.72834325", "0.72834325", "0.72834325", "0.72834325", "0.7241294", "0.7231745", "0.72...
0.6965101
55
Gets the custom_fields of this ExternalShipment.
def Sno3(YKHO): return YKHO._custom_fields
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGxv(YKHO):\n return YKHO._custom_fields", "def Sno3(YKHO):\n return YKHO._get('custom_field_identifiers')", "def K3YW(YKHO):\n return qI07.objects.filter(content_type=DDS9.objects.get_for_model(YKHO))", "def K3YW(YKHO):\n V_D6 = []\n if YKHO.fields_tag in YKHO.params:\n Krm4 = YKHO...
[ "0.7658099", "0.733513", "0.7061521", "0.68915904", "0.68882567", "0.66426194", "0.6604428", "0.658477", "0.65519613", "0.6531755", "0.6531755", "0.6478199", "0.63594997", "0.6316097", "0.6316097", "0.6247308", "0.6209886", "0.62047935", "0.61960167", "0.61960167", "0.6177184...
0.8020623
0
Sets the custom_fields of this ExternalShipment.
def Sno3(YKHO, Sno3): YKHO._custom_fields = Sno3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3", "def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3", "def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3", "def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3", "def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3", "def Sno3(YKHO, Sno3)...
[ "0.7890188", "0.7866537", "0.7866537", "0.7866537", "0.7866537", "0.7866537", "0.7866537", "0.699557", "0.6687834", "0.6687834", "0.64324754", "0.64324754", "0.6429519", "0.6429519", "0.6293134", "0.6200117", "0.6128449", "0.6128449", "0.6010084", "0.59998065", "0.59998065", ...
0.7825588
7
Returns the string representation of the model
def gTzM(YKHO): return EyO9(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
Computes the forward pass for an affine (fullyconnected) layer. The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N examples, where each example x[i] has shape (d_1, ..., d_k). We will reshape each input into a vector of dimension D = d_1 ... d_k, and then transform it to an output vector of dimensio...
def Fav1(WKvO, yzQ0, Fg_i): yvT9 = None EcVT = WKvO.reshape(WKvO.shape[0], -1) yvT9 = EcVT.dot(yzQ0) + Fg_i wyyA = (WKvO, yzQ0, Fg_i) return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fav1(YKHO, WKvO, yzQ0, Fg_i):\n yvT9 = None\n YDdR = WKvO.shape[0]\n vexM = oyIN.reshape(WKvO, [YDdR, -1])\n yvT9 = oyIN.dot(vexM, yzQ0) + Fg_i\n wyyA = (WKvO, yzQ0, Fg_i)\n return (yvT9, wyyA)", "def Fav1(WKvO, yzQ0, Fg_i):\n yvT9 = None\n eeYG = WKvO.reshape(WKvO.shape[0], -1)\n ...
[ "0.675808", "0.67490184", "0.6720965", "0.66803575", "0.6649583", "0.6644814", "0.6622977", "0.65935576", "0.6590151", "0.6579468", "0.6571113", "0.65630305", "0.6530894", "0.6494367", "0.64902854", "0.6476856", "0.64625907", "0.6439255", "0.64391434", "0.6409112", "0.6406712...
0.62102354
61
Computes the backward pass for an affine layer.
def Kt1o(zYcP, wyyA): WKvO, yzQ0, Fg_i = wyyA Jw7X, ncXl, NCls = (None, None, None) EcVT = WKvO.reshape(WKvO.shape[0], -1) v8j0 = oyIN.dot(zYcP, yzQ0.T) Jw7X = v8j0.reshape(WKvO.shape) ncXl = oyIN.dot(EcVT.T, zYcP) NCls = oyIN.sum(zYcP, axis=0) return (Jw7X, ncXl, NCls)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n Jw7X = zYcP.dot(yzQ0.T).reshape(WKvO.shape)\n ncXl = WKvO.reshape(WKvO.shape[0], -1).T.dot(zYcP)\n NCls = oyIN.ones((1, zYcP.shape[0])).dot(zYcP)\n return (Jw7X, ncXl, NCls)", "def Kt1o(zYcP, wyyA):\n W...
[ "0.73662406", "0.73652834", "0.732474", "0.7313612", "0.7313612", "0.72996736", "0.72996736", "0.72996736", "0.72996736", "0.72996736", "0.7293254", "0.7250458", "0.72409606", "0.7224414", "0.7196709", "0.7155475", "0.7131797", "0.7116419", "0.70520604", "0.7050007", "0.70488...
0.7285048
11
Computes the forward pass for a layer of rectified linear units (ReLUs).
def wN5Y(WKvO): yvT9 = None yvT9 = WKvO * (WKvO > 0) wyyA = WKvO return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = ht2j.from_numpy(WKvO).type(ht2j.FloatTensor).unsqueeze(0)\n WKvO = ht2j.autograd.Variable(WKvO)\n WKvO = vuvg.relu(YKHO.l1(WKvO))\n WKvO = YKHO.l2(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO: Tensor) -> llWB:\n return StA9.reglu(WKvO)", "def drfk(YKHO):\n\n de...
[ "0.6679781", "0.66286653", "0.6547163", "0.6460596", "0.64428824", "0.64364123", "0.63979214", "0.6371656", "0.6319996", "0.63163096", "0.6305067", "0.6300998", "0.62817127", "0.62416285", "0.62340057", "0.6208523", "0.6186704", "0.61818707", "0.6181222", "0.61805546", "0.618...
0.59992653
35
Forward pass for batch normalization. During training the sample mean and (uncorrected) sample variance are computed from minibatch statistics and used to normalize the incoming data. During training we also keep an exponentially decaying running mean of the mean and variance of each feature, and these averages are use...
def d3MU(WKvO, KMvS, UqYS, Y7R2): Tuqy = Y7R2['mode'] SGf8 = Y7R2.get('eps', 1e-05) H0zq = Y7R2.get('momentum', 0.9) ywwl, lWPh = WKvO.shape zsZT = Y7R2.get('running_mean', oyIN.zeros(lWPh, dtype=WKvO.dtype)) xl1j = Y7R2.get('running_var', oyIN.zeros(lWPh, dtype=WKvO.dtype)) yvT9, wyyA = (No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vWKW(YKHO, input, Tuqy):\n H0zq = YKHO.momentum\n if Tuqy == 'train':\n Nc6L = oyIN.mean(input)\n QrBZ = oyIN.var(input)\n YKHO.running_mean = H0zq * YKHO.running_mean + (1 - H0zq) * Nc6L\n YKHO.running_var = H0zq * YKHO.running_var + (1 - H0zq) * QrBZ\n mbJQ = input - ...
[ "0.76318276", "0.744233", "0.7403765", "0.73378116", "0.7294931", "0.72892654", "0.7270998", "0.72484046", "0.7207344", "0.7179942", "0.71701556", "0.7069432", "0.7066413", "0.69772005", "0.68992597", "0.68766344", "0.6846138", "0.6810151", "0.6778289", "0.6777846", "0.677784...
0.7172994
10
Computes the forward pass for spatial batch normalization.
def HXea(WKvO, KMvS, UqYS, Y7R2): yvT9, wyyA = (None, None) pass return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXea(WKvO, KMvS, UqYS, Y7R2):\n yvT9, wyyA = (None, None)\n WKvO = oyIN.swapaxes(WKvO, axis1=1, axis2=-1)\n x1Kq = WKvO.reshape(-1, WKvO.shape[-1])\n jrsp, wyyA = d3MU(x1Kq, KMvS, UqYS, Y7R2)\n yvT9 = oyIN.swapaxes(jrsp.reshape(WKvO.shape), axis1=1, axis2=-1)\n return (yvT9, wyyA)", "def HX...
[ "0.74716836", "0.7389862", "0.73459315", "0.7322281", "0.73096836", "0.73081756", "0.72910506", "0.72878885", "0.72591394", "0.7244061", "0.72172964", "0.71505934", "0.71485525", "0.714164", "0.71383333", "0.7117519", "0.70766634", "0.70694226", "0.70425344", "0.7040451", "0....
0.75228405
0
Computes the loss and gradient for softmax classification.
def w7Eo(WKvO, LVAh): BFeB = oyIN.exp(WKvO - oyIN.max(WKvO, axis=1, keepdims=True)) BFeB /= oyIN.sum(BFeB, axis=1, keepdims=True) ywwl = WKvO.shape[0] N77f = -oyIN.sum(oyIN.log(BFeB[oyIN.arange(ywwl), LVAh])) / ywwl Jw7X = BFeB.copy() Jw7X[oyIN.arange(ywwl), LVAh] -= 1 Jw7X /= ywwl retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vyIu(XcU5, EcVT, LVAh, lQ3t):\n N77f = 0.0\n HFON = oyIN.zeros_like(XcU5)\n jTqs = XcU5.shape[1]\n o6yt = EcVT.shape[0]\n N77f = 0.0\n for YRbF in range(o6yt):\n cCrA = EcVT[YRbF].dot(XcU5)\n IUaw = N93T(cCrA)\n HUaR = IUaw[LVAh[YRbF]]\n N77f += -oyIN.log(HUaR)\n ...
[ "0.7839425", "0.78304684", "0.7753366", "0.7729938", "0.7727774", "0.7578895", "0.7563663", "0.74926066", "0.7474452", "0.7455784", "0.74416703", "0.7431377", "0.74229133", "0.7422538", "0.740921", "0.74013317", "0.739999", "0.73985493", "0.73796654", "0.7371129", "0.73416007...
0.0
-1
Reads requirements.txt and preprocess it to be feed into setuptools. This is the only possible way (we found) how requirements.txt can be reused in setup.py using dependencies from private github repositories. Links must be appendend by `{StringWithAtLeastOneNumber}` or something like that, so e.g. `9231` works as well...
def tz_l(): WmM4 = open('requirements.txt', 'r').readlines() TKON = [] wPdp = [] for Eorv in WmM4: if 'git+ssh' in Eorv: sKYw = Eorv.split('#')[-1] wPdp.append(Eorv.strip() + '-9876543210') TKON.append(sKYw.replace('egg=', '').rstrip()) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnMZ(qIxc):\n with open(qIxc.file) as eHNT:\n for zFiD in eHNT:\n vOPP = zFiD.split('==')\n if len(vOPP) == 2:\n KEkS(vOPP[0].strip(), vOPP[1].strip())\n else:\n HwRy.exit(\"\\nName format in cext.txt is incorrect. Should be 'packageName=...
[ "0.71434206", "0.6788672", "0.6769008", "0.6754692", "0.6749542", "0.67455816", "0.67164725", "0.66885823", "0.6637844", "0.6621147", "0.6613108", "0.6594993", "0.65839046", "0.65680695", "0.6566961", "0.6564948", "0.65448076", "0.65420395", "0.653416", "0.65177816", "0.65027...
0.69368464
1
Get children for word in index idx idx starts with 1, zero meaning root
def RbaF(YKHO, or8S): afYC = [] for YRbF in Ni9Y(len(YKHO.parents)): if YKHO.parents[YRbF] == or8S: afYC.append(YRbF + 1) return afYC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pF8J(YKHO, or8S):\n afYC = []\n a0GJ = or8S * 2 + 1\n if a0GJ < len(YKHO.items):\n afYC.append(a0GJ)\n TLv5 = or8S * 2 + 2\n if TLv5 < len(YKHO.items):\n afYC.append(TLv5)\n return afYC", "def afYC(GIN8, OJS7):\n BDwY = list()\n for YRbF in range(len(GIN8)):\n aUG...
[ "0.6869319", "0.6690724", "0.666693", "0.6164576", "0.60957724", "0.6044773", "0.5941573", "0.5940472", "0.59248924", "0.58497643", "0.58224773", "0.57977915", "0.57606524", "0.5739888", "0.56887376", "0.5649999", "0.5647614", "0.5592148", "0.5568666", "0.55530614", "0.553343...
0.6907937
0
Load "dotenv" files in order of precedence to set environment variables. If an env var is already set it is not overwritten, so earlier files in the list are preferred over later files. Changes the current working directory to the location of the first file found, with the assumption that it is in the top level project...
def ikv7(pmON=None): if wylh is None: if pmON or Hy7s.path.exists('.env') or Hy7s.path.exists('.flaskenv'): k8wH.secho(' * Tip: There are .env files present. Do "pip install python-dotenv" to use them.', fg='yellow') return if pmON is not None: return wylh.load_dotenv(pmON) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gm1W():\n if not Twf1.PIPENV_DONT_LOAD_ENV:\n fJd3 = bNKA.project_directory or '.'\n kWP0 = Twf1.PIPENV_DOTENV_LOCATION or Hy7s.sep.join([fJd3, '.env'])\n if Hy7s.path.isfile(kWP0):\n k8wH.echo(G7dc.normal(TYei('Loading .env environment variables…'), bold=True), err=True)\n ...
[ "0.8017085", "0.7649256", "0.7578934", "0.7425032", "0.7402618", "0.73351574", "0.72096246", "0.7146864", "0.69702315", "0.6901238", "0.68873835", "0.66742224", "0.66497976", "0.66438484", "0.6632757", "0.64691603", "0.6372627", "0.6216752", "0.6113733", "0.5938882", "0.58928...
0.7649087
2
Get the environment the app is running in, indicated by the
def wJxA(): return Hy7s.environ.get('FLASK_ENV') or 'production'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TaFc(P4t4=wk5E):\n return P4t4.config.get('ENVIORNMENT', 'DEVELOPMENT')", "def B6cH(Emd4, P4t4):\n return P4t4.registry.settings.get('env.name')", "def I0_M(YKHO):\n return YKHO.environment", "def kLRF():\n _63S = wk5E.config.get('POD_NAMESPACE').lower()\n if _63S.endswith('dev'):\n ...
[ "0.8326068", "0.8110672", "0.80849504", "0.80530983", "0.80530983", "0.80530983", "0.8037035", "0.8005887", "0.79930776", "0.7941203", "0.7845693", "0.78309715", "0.78013057", "0.78013057", "0.78013057", "0.77959806", "0.77683884", "0.77683884", "0.77591944", "0.7742694", "0....
0.7242996
57
Returns a dictionary from parameter names to descriptions. Returns
def Rdgn(Emd4): return dict(buf_sch_params='buffer schematic parameters', dff_sch_params='dff schematic parameters', n_stage='number of stages', debug='True to debug')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MnWk(YKHO):\n aevO = YKHO.describe()\n return dict([(XP5J['key'], XP5J) for XP5J in aevO['parameters']])", "def SGPK(YKHO):\n return dict(((G1Hx, getattr(YKHO, G1Hx)) for G1Hx in YKHO._parameter_names))", "def SGPK(YKHO) -> cuzp[str, ImMB]:\n return {mWFP: getattr(YKHO, mWFP) for mWFP in YKHO.p...
[ "0.8323599", "0.7416645", "0.73098916", "0.72821087", "0.7112357", "0.69728196", "0.69145745", "0.6907672", "0.68014175", "0.68006855", "0.6749965", "0.67406386", "0.6739034", "0.670004", "0.66252285", "0.65529186", "0.6518889", "0.65064925", "0.6504026", "0.64932585", "0.646...
0.68064445
8
Count how many terminal nodes (leaves, or in this case, nodes that have a nullary operator) are in this node.
def ARYw(YKHO): if YKHO.children: return sum((aUGN.count_leaves() for aUGN in YKHO.children)) else: return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k6c0(YKHO, Q6kx=None):\n if Q6kx is None:\n Q6kx = YKHO.root\n return len([exwG for exwG in YKHO._walk(Q6kx) if YKHO.is_terminal(exwG)])", "def UHFx(YKHO):\n if YKHO.left is None:\n if YKHO.right is None:\n return 1\n return 1 + YKHO.right.count()\n if YKHO.right i...
[ "0.7457344", "0.74053645", "0.72812605", "0.67609775", "0.6759513", "0.6749735", "0.6726011", "0.6688619", "0.66861254", "0.6653891", "0.66514444", "0.6644652", "0.66254526", "0.66241443", "0.6617163", "0.6606574", "0.659709", "0.65924585", "0.65921676", "0.6582018", "0.65743...
0.67212826
7
Creates a Citrination PIF object from the Container object.
def Tq_I(tyNF, mWFP=None, PObu=None, xo17={}, C9U5={}, tpqA={}, WmM4=YKDD): zGKt = tyNF if mWFP is None: zGKt = ACOY(tyNF, 0) mWFP = Vn7Z if PObu is None: PObu = HeyK(mWFP) LFKX = set(tyNF.columns) LFKX = LFKX - xo17.keys() xo17 = m0CI(xo17) LFKX = LFKX - tpqA.keys() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxSP(YKHO, yIVm):\n mWFP = yIVm['name']\n QTBn = yIVm['status']\n if QTBn == 'Running':\n QTBn = uRpm.RUNNING\n elif QTBn == 'Frozen':\n QTBn = uRpm.PAUSED\n else:\n QTBn = uRpm.STOPPED\n dDGN = yIVm\n CWDC = yIVm['config'].get('volatile.base_image', None)\n Wb0n = ...
[ "0.5992618", "0.5490578", "0.5415525", "0.540795", "0.5402225", "0.53985757", "0.53949904", "0.53845763", "0.53492004", "0.532763", "0.53011376", "0.5285203", "0.528323", "0.5279326", "0.52658725", "0.5246509", "0.5241477", "0.5239236", "0.5218842", "0.5216826", "0.52130723",...
0.0
-1
Init a new TeamMembershipsAPI object with the provided RestSession.
def FIMM(YKHO, cuiw): assert isinstance(cuiw, jtXB) super(foPe, YKHO).__init__() YKHO._session = cuiw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, cuiw, N9z1):\n TSw_(cuiw, jtXB)\n super(meKM, YKHO).__init__()\n YKHO._session = cuiw\n YKHO._object_factory = N9z1", "def FIMM(YKHO, eOtH: str=None, cuiw: aiohttp.client.ClientSession=None):\n if not ExMO.instance and (not eOtH):\n raise TypeError('token must be specified fo...
[ "0.6467897", "0.61477816", "0.6082615", "0.60409105", "0.60409105", "0.5870761", "0.58606195", "0.5828771", "0.5827463", "0.5817114", "0.57812214", "0.57730925", "0.5743353", "0.5721473", "0.5703317", "0.5693225", "0.56865007", "0.5678874", "0.5667177", "0.5624547", "0.559706...
0.8193401
0
Lists all team memberships. By default, lists memberships for teams to which the authenticated user belongs. Use teamId to list memberships for a team, by ID. This method supports Cisco Spark's implementation of RFC5988 Web Linking to provide pagination support. It returns a generator container that incrementally yield...
def list(YKHO, R90f=None, max=None): assert R90f is None or isinstance(R90f, jUrF) assert max is None or isinstance(max, int) NArs = {} if R90f: NArs['teamId'] = R90f if max: NArs['max'] = max DumB = YKHO._session.get_items('team/memberships', params=NArs) for ZfUD in DumB: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mAB6(YKHO, vexM=None, BA9O=None, _Ucv=10):\n NArs = {}\n if BA9O is not None:\n NArs['sort'] = BA9O\n if vexM is not None:\n NArs['q'] = vexM\n NArs['pagelen'] = _Ucv\n for tINr in YKHO._get_paged(None, trailing=True, paging_workaround=True, params=NArs):\n yield YKHO.__get_...
[ "0.627013", "0.5871445", "0.5775036", "0.5762153", "0.5723768", "0.57162815", "0.56556785", "0.5616507", "0.5563759", "0.5559346", "0.55518895", "0.54998016", "0.54743725", "0.54172146", "0.5417214", "0.54123026", "0.54052013", "0.5386415", "0.5371182", "0.535912", "0.5355825...
0.7128887
0
normalise to 2D space
def kwsU(lWTy): enSi = txNa().fit_transform(lWTy) lRCx = EHUa(n_components=2).fit_transform(enSi) return lRCx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PM0B(nPrm):\n return (nPrm - oyIN.mean(nPrm, axis=1)[:, oyIN.newaxis]) / oyIN.std(nPrm, axis=1)[:, oyIN.newaxis]", "def NkkI(YKHO):\n YKHO.arr /= ZYEE.norm2(YKHO.arr)", "def NkkI(YKHO):\n Csk6 = oyIN.sqrt(YKHO.nx ** 2 + YKHO.ny ** 2 + YKHO.nz ** 2)\n YKHO.nx /= Csk6\n YKHO.ny /= Csk6\n YK...
[ "0.7536148", "0.7505008", "0.7364575", "0.7260322", "0.72050005", "0.7145111", "0.71435297", "0.71221334", "0.70945454", "0.7025304", "0.69671345", "0.69421077", "0.6938301", "0.6928553", "0.6872532", "0.68578494", "0.6793449", "0.67874604", "0.67856157", "0.6771319", "0.6754...
0.0
-1
Compute the logarithmic scoring rule, normalized so that perfect predictions get a score of 1, and uniform predictions a score of 0.
def IqYE(mtwv, gBjs): exwG = float(len(mtwv)) return RKD7(mtwv[gBjs]) / -RKD7(1 / exwG) + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bipu(p1kx):\n ...", "def Ebso(Y8eF: np.ndarray, aMgO: np.ndarray) -> float:\n return -(Y8eF * oyIN.log(aMgO)).sum(axis=1).mean()", "def ILM5(aPd6=1.0, G1Hx=1.0, nJ9F=0.0):\n\n def YAWX(aC0l, GTPh):\n tJf9 = GTPh[oyIN.arange(len(aC0l)), aC0l]\n return oyIN.sum(aPd6 / (1.0 + oyIN.exp(-...
[ "0.7023235", "0.67486256", "0.6745761", "0.66849494", "0.66274685", "0.6610363", "0.66080356", "0.6596197", "0.6514175", "0.65065426", "0.6457787", "0.6456802", "0.6435638", "0.6416542", "0.63926363", "0.6334368", "0.6316832", "0.63073856", "0.6302375", "0.629115", "0.6265572...
0.6984803
1
Return the intersection of two lines, in slope+intercept form, or None if there isn't one (parallel lines). Returns a Point.
def XMlP(cnXz, Ijzj): if cnXz.slope - Ijzj.slope == 0: return None Jity = (Ijzj.intercept - cnXz.intercept) / (cnXz.slope - Ijzj.slope) TWQQ = cnXz.slope * Jity + cnXz.intercept return PvyL(Jity, TWQQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQin(YKHO, zFiD):\n if zFiD is None or YKHO.slope == zFiD.slope:\n return\n CxOh = YKHO.x_intercept(zFiD)\n uayI = YKHO.slope * CxOh + YKHO.intercept\n return PvyL(CxOh, uayI)", "def aX0P(jtyf, V70B):\n jzdc, Fg_i = jtyf\n Z9rn, Csk6 = V70B\n o4D3, si3g = jzdc\n ajwV, skBL = Fg...
[ "0.80036366", "0.7459101", "0.73335016", "0.73190576", "0.72984606", "0.7289683", "0.7280215", "0.7275195", "0.72669", "0.72076505", "0.7153911", "0.7146603", "0.7121513", "0.7079215", "0.7071392", "0.7062106", "0.69876236", "0.6978141", "0.697471", "0.69620466", "0.6946539",...
0.83204234
0
r"""Compute the average precision (AP) score for multilabel tasks. The AP score summarizes a precisionrecall curve as an weighted mean of precisions at each threshold, with the
def p76S(aTLP: Tensor, pan_: Tensor, svPB: int, S8vG: Optional[Literal['micro', 'macro', 'weighted', 'none']]='macro', Nhxk: Optional[Union[int, List[float], Tensor]]=None, Ngtq: Optional[int]=None, rUrJ: bool=True) -> llWB: if rUrJ: kXKk(svPB, S8vG, Nhxk, Ngtq) oX63(aTLP, pan_, svPB, Ngtq) aTLP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CTbp(AOzf, rhd_):\n YuCV = oyIN.concatenate(([0.0], AOzf, [1.0]))\n BsPE = oyIN.concatenate(([0.0], rhd_, [0.0]))\n for YRbF in range(BsPE.size - 1, 0, -1):\n BsPE[YRbF - 1] = oyIN.maximum(BsPE[YRbF - 1], BsPE[YRbF])\n YRbF = oyIN.where(YuCV[1:] != YuCV[:-1])[0]\n VqfF = oyIN.sum((YuCV[YR...
[ "0.772927", "0.76995283", "0.76875746", "0.76875746", "0.76875746", "0.76875746", "0.76875746", "0.76875746", "0.76665014", "0.76517844", "0.76517844", "0.76517844", "0.76517844", "0.76452434", "0.7641202", "0.7641202", "0.7641202", "0.7641202", "0.7641202", "0.76274806", "0....
0.68321097
56
r"""Compute the average precision (AP) score. The AP score summarizes a precisionrecall curve as an weighted mean of precisions at each threshold, with the
def uSAa(aTLP: Tensor, pan_: Tensor, D5gV: Literal['binary', 'multiclass', 'multilabel'], Nhxk: Optional[Union[int, List[float], Tensor]]=None, jTqs: Optional[int]=None, svPB: Optional[int]=None, S8vG: Optional[Literal['macro', 'weighted', 'none']]='macro', Ngtq: Optional[int]=None, rUrJ: bool=True) -> h8nf[llWB]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H6dO(AOzf, rhd_):\n YuCV = oyIN.concatenate(([0.0], AOzf, [1.0]))\n BsPE = oyIN.concatenate(([0.0], rhd_, [0.0]))\n for YRbF in range(BsPE.size - 1, 0, -1):\n BsPE[YRbF - 1] = oyIN.maximum(BsPE[YRbF - 1], BsPE[YRbF])\n YRbF = oyIN.where(YuCV[1:] != YuCV[:-1])[0]\n VqfF = oyIN.sum((YuCV[YR...
[ "0.8377275", "0.8377275", "0.8377275", "0.8377275", "0.83738136", "0.835737", "0.835737", "0.835737", "0.835737", "0.835737", "0.8355305", "0.8347821", "0.8347821", "0.8347821", "0.8347821", "0.8347821", "0.8347821", "0.8345284", "0.8336377", "0.8336377", "0.8336377", "0.83...
0.0
-1
Return the polling state.
def KZ_I(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def poll_and_get_state(YKHO):\n await eqv8(YKHO.hass, 60)\n QTBn = YKHO.hass.states.get(YKHO.entity_id)\n assert QTBn is not None\n return QTBn", "def ja6o(YKHO):\n IOKn = YKHO._alarm()\n return IOKn.state", "def lUir(YKHO):\n if YKHO.db_connection.poll() == CBZq.POLL_OK:\n aB...
[ "0.7293356", "0.7084267", "0.7076358", "0.70510584", "0.7025789", "0.6984706", "0.69791013", "0.69772166", "0.69690984", "0.6961726", "0.694051", "0.6920858", "0.6912413", "0.6905527", "0.68835574", "0.6876464", "0.6865388", "0.6865246", "0.6862717", "0.6855354", "0.6841702",...
0.0
-1
Return coordinator of this player.
def S3vU(YKHO): return YKHO._coordinator
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyg0(YKHO):\n return YKHO._player", "def mCd_(YKHO):\n return YKHO.current_player", "def mCd_(YKHO):\n return YKHO.__player", "def mCd_(YKHO):\n return YKHO._current_player", "def mCd_(YKHO):\n return YKHO.__current_player", "def mCd_(YKHO):\n return YKHO.__current_player", "def G...
[ "0.660014", "0.6588499", "0.6562948", "0.65622634", "0.6556042", "0.6556042", "0.65476984", "0.65347415", "0.6533016", "0.6533016", "0.65075225", "0.64863497", "0.6477967", "0.6453754", "0.6453754", "0.6453754", "0.6453754", "0.6453754", "0.63882565", "0.6246412", "0.6242634"...
0.79020315
0
Return true if volume is muted.
def qHHI(YKHO): return YKHO._player_volume_muted
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHHI(YKHO):\n return YKHO.device.get_muted()", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._volume.muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n retur...
[ "0.88813984", "0.8875379", "0.88482434", "0.87981415", "0.87981415", "0.87981415", "0.87981415", "0.87981415", "0.87981415", "0.87981415", "0.8795085", "0.8793224", "0.8756127", "0.8753885", "0.87500024", "0.87497073", "0.8715691", "0.86372066", "0.8037425", "0.77761436", "0....
0.8717795
16
When was the position of the current playing media valid. Returns value from homeassistant.util.dt.utcnow().
def saDb(YKHO): if YKHO._coordinator: return YKHO._coordinator.media_position_updated_at return YKHO._media_position_updated_at
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saDb(YKHO) -> JRYC.datetime | None:\n if not YKHO._currently_playing:\n return None\n return d2O_(YKHO._currently_playing['timestamp'] / 1000)", "def saDb(YKHO):\n return YKHO._media_status_received_time", "def saDb(YKHO):\n return YKHO._player_dev.media_position_updated_at", "def saDb...
[ "0.80572325", "0.7619498", "0.7351645", "0.7170639", "0.70034945", "0.6833218", "0.6609124", "0.6590937", "0.6589596", "0.6523302", "0.649319", "0.6471873", "0.64458674", "0.6419856", "0.63980067", "0.6384556", "0.6288515", "0.62760174", "0.6261927", "0.6245234", "0.62369156"...
0.6993599
5
Image url of current playing media.
def jlYN(YKHO): if YKHO._coordinator: return YKHO._coordinator.media_image_url return YKHO._media_image_url
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jlYN(YKHO) -> str | None:\n if YKHO._currently_playing.get('item') is None or not YKHO._currently_playing['item']['album']['images']:\n return None\n return jL8T(YKHO._currently_playing['item']['album'])", "def jlYN(YKHO):\n if YKHO._stream_image is None:\n return 'http://localhost:818...
[ "0.8391614", "0.8232066", "0.8213623", "0.82109135", "0.8130162", "0.81204623", "0.79643553", "0.7683956", "0.74568343", "0.7444492", "0.73765844", "0.73736334", "0.7348825", "0.73280025", "0.727053", "0.7255315", "0.7250822", "0.7237203", "0.72178316", "0.7175083", "0.717437...
0.79459935
7
Title of current playing media.
def _0LT(YKHO): if YKHO._coordinator: return YKHO._coordinator.media_title return YKHO._media_title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0LT(YKHO):\n return YKHO._player_dev.current_title", "def _0LT(YKHO) -> str | None:\n ZfUD = YKHO._currently_playing.get('item') or {}\n return ZfUD.get('name')", "def sUzl(YKHO):\n return YKHO.title", "def _0LT(YKHO):\n return YKHO.device.get_media_title()", "def _0LT(YKHO):\n retur...
[ "0.9074788", "0.8974278", "0.8637662", "0.8612", "0.8540756", "0.84744346", "0.84744346", "0.84651077", "0.8461154", "0.8393813", "0.8361119", "0.83494514", "0.8334087", "0.83109385", "0.82211417", "0.8217555", "0.8179813", "0.8171462", "0.8170073", "0.81019264", "0.8097681",...
0.8200619
16
Mute (true) or unmute (false) media player.
def YAvG(YKHO, KkzS): YKHO._player.mute = KkzS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkzS(YKHO, KkzS):\n YKHO.zoneCmd('on' if KkzS else 'off', mcmd='PutVolumeMute')", "def YAvG(YKHO, KkzS: bool) -> None:\n JVOJ = 'ON' if KkzS else 'OFF'\n YKHO.telnet_command(f'MU{JVOJ})')", "async def toggle_mute(YKHO):\n oyg0: ESA9.DefaultPlayer = YKHO.bot.lavalink.player_manager.get(YKHO.guil...
[ "0.8109269", "0.80495983", "0.8028652", "0.7875998", "0.7842638", "0.7797436", "0.7755181", "0.7737093", "0.76722234", "0.7647712", "0.7630306", "0.7514275", "0.74908876", "0.7484372", "0.7476535", "0.74621487", "0.74245465", "0.74172854", "0.7409556", "0.73284715", "0.732282...
0.7824641
5
List of available input sources.
def oOdw(YKHO): if YKHO._coordinator: return YKHO._coordinator.source_list ZGE9 = YKHO._speaker_info['model_name'] c7pe = [] if YKHO._favorite_sources: for vpNv in YKHO._favorite_sources: c7pe.append(vpNv['title']) if 'PLAY:5' in ZGE9: c7pe += [E6Yl] elif 'PLA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oOdw(YKHO) -> x1iM[str]:\n if YKHO.mysources:\n return YKHO.mysources\n return YKHO._get_list('SI')", "def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')", "def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')", "def w1o0(YKHO):...
[ "0.765328", "0.76203656", "0.76203656", "0.7598599", "0.745293", "0.745293", "0.74438626", "0.74329925", "0.73871773", "0.7371998", "0.7325716", "0.7312083", "0.7304809", "0.7294203", "0.7252239", "0.7170494", "0.71214986", "0.70619494", "0.70545626", "0.70545626", "0.7051095...
0.70020944
25
Name of the current input source.
def JZXy(YKHO): if YKHO._coordinator: return YKHO._coordinator.source return YKHO._source_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KoHv(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'source_name')", "def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')", "def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')", "def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y...
[ "0.88115805", "0.8352229", "0.8352229", "0.8352229", "0.82161313", "0.7646011", "0.7583743", "0.75818515", "0.75818515", "0.75818515", "0.7559096", "0.7555666", "0.7330288", "0.73110974", "0.7224072", "0.72103053", "0.72103053", "0.7177751", "0.7177751", "0.7177751", "0.71777...
0.7217536
15
Send the play_media command to the media player. If ATTR_MEDIA_ENQUEUE is True, add `media_id` to the queue.
def YUWu(YKHO, tGci, tQOT, **B2fa): if B2fa.get(c5HS): from soco.exceptions import SoCoUPnPException try: YKHO._player.add_uri_to_queue(tQOT) except SoCoUPnPException: vzeF.error('Error parsing media uri "%s", please check it\'s a valid media resource supported by Son...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YUWu(YKHO, tGci, tQOT, **B2fa):\n del B2fa\n if tGci in [_96p, afpH]:\n iG42 = GGmw(Oxad, jFBC)\n iG42.connect((YKHO._host, YKHO._port))\n YKHO._play = True\n iG42.sendall('{};'.format(tQOT).encode())\n iG42.close()\n N5MO(10)\n YKHO._play = False\n els...
[ "0.7194602", "0.7146867", "0.7137542", "0.71320313", "0.70418054", "0.68618023", "0.6830014", "0.67982996", "0.6781033", "0.6765596", "0.67650753", "0.674263", "0.6714181", "0.6598476", "0.6596578", "0.6595731", "0.6543699", "0.6369547", "0.6337996", "0.6274787", "0.6264524",...
0.7945423
0
Return device specific state attributes.
def R1i3(YKHO): return {IuCy: YKHO.is_coordinator}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_at...
[ "0.88108975", "0.8712805", "0.8712805", "0.8712805", "0.8712805", "0.86934614", "0.8681972", "0.8663977", "0.86243933", "0.86243933", "0.86243933", "0.86243933", "0.86243933", "0.86159307", "0.86159307", "0.85891783", "0.85891783", "0.85891783", "0.85788935", "0.8571439", "0....
0.0
-1
Construct instance for a driver (and optionally parameters).
def FIMM(YKHO, KXIt, **CUWp): VlDb = tF99('.backends.' + KXIt, __package__) C6NV = getattr(VlDb, 'Backend') YKHO.backend = C6NV(**CUWp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i8vq(YKHO):\n yR_P = ANWz.import_module(YKHO.driver_module)\n hGlK = getattr(yR_P, YKHO.driver_class)\n YKHO.driver = hGlK(YKHO.send_event, YKHO.refdes)\n YKHO.driver.set_init_params(YKHO.init_params)\n RKD7.info('Imported and created driver from module: %r class: %r driver: %r refdes: %r', yR_P...
[ "0.70701873", "0.6914889", "0.6914889", "0.6914889", "0.6914889", "0.6914889", "0.68859464", "0.66803837", "0.655073", "0.63597167", "0.632963", "0.6307583", "0.6302571", "0.6282051", "0.6257237", "0.62232727", "0.6215224", "0.6191666", "0.6142242", "0.61396927", "0.61128825"...
0.5577212
64
Remove all current connection objects.
def YDyk(YKHO): YKHO.connections = {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ljzB(YKHO):\n for UzPC in YKHO.connections:\n UzPC.close()\n del UzPC", "def TNIu(YKHO):\n for eVVj in YKHO:\n eVVj.remove_self_connection()", "def yTAg(YKHO):\n for Ilxn in YKHO.__connections:\n YKHO.free_connection(Ilxn)", "def aDvc(YKHO):\n for hgFb in YKHO._cm....
[ "0.8026519", "0.7815604", "0.7748598", "0.7569522", "0.7445675", "0.7377189", "0.7358891", "0.73174804", "0.731261", "0.7275027", "0.72569984", "0.72433496", "0.7234901", "0.72129935", "0.7165222", "0.7152556", "0.7133065", "0.71243334", "0.71086997", "0.7064367", "0.6944584"...
0.69286007
22
Create an engine based on sqlalchemy's create_engine.
def jqi5(YKHO): YKHO._engine = y2U9(YKHO.driver + YKHO.connection_string)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSwy():\n global engine\n if eHpk is None:\n yIVm.bind = eHpk = _9Kn('sqlalchemy')", "def WSwy(Zu8l=None):\n GPtr = gTTK(Zu8l)\n j8eK = GPtr.SQLALCHEMY_DATABASE_URI\n return y2U9(j8eK)", "def y2U9(YKHO):\n RKD7.info('Creating new Engine for %s', YKHO.database)\n return i48E.crea...
[ "0.8809494", "0.8572505", "0.82567865", "0.8231876", "0.8163926", "0.8106927", "0.81025404", "0.81007135", "0.80876094", "0.8082747", "0.8010395", "0.79276323", "0.78902954", "0.78325313", "0.7743826", "0.7737906", "0.77317035", "0.7705559", "0.7669467", "0.7655026", "0.76229...
0.0
-1
Draw a blank screen with some text.
def drzy(YKHO): fs6s.cls(col=KgYT) dsZh = O1SN[:] dsZh.insert(1, '{:04}'.format(YKHO.score)) for YRbF, l5Ny in enumerate(dsZh): JCr6 = (fs6s.FONT_HEIGHT + 2) * YRbF RDpa = YKHO.center_text(l5Ny, Wl2e) fs6s.text(RDpa, a3Er + JCr6, l5Ny, aQwR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmr_(YKHO):\n YKHO._screen.fill(XDQs)\n a9eO.display.update()", "def JmFt(YKHO):\n YKHO.screen.blit(YKHO.txt_surface, (YKHO.rect.x + 5, YKHO.rect.y + 5))\n g74T.draw.rect(YKHO.screen, YKHO.color, YKHO.rect, 2)", "def JmFt(YKHO):\n YKHO.screen.blit(YKHO.txt_surface, (YKHO.rect.x + 5, YKHO.rec...
[ "0.7276232", "0.7182895", "0.7139109", "0.703891", "0.69433576", "0.6868845", "0.68667126", "0.6865744", "0.68651223", "0.6834729", "0.6834729", "0.6826686", "0.6817782", "0.6807014", "0.67891276", "0.6780118", "0.6752461", "0.67450446", "0.6737292", "0.6736282", "0.6733996",...
0.0
-1
Returns the mutation probability for this virus.
def A3kx(YKHO): return YKHO.mutProb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IPh0(YKHO):\n return YKHO.__mutation_probability", "def Q7Be(YKHO):\n return Pusg(seET.mul, (Q6kx.prob for Q6kx in YKHO.walk()), 1)", "def v5y2(YKHO):\n if oyIN.random.rand() < HItR:\n return oyIN.random.uniform(-upqq, upqq)\n return 0", "def vBI3(YKHO):\n return YKHO._prob_mutate_i...
[ "0.8182024", "0.6878931", "0.6706013", "0.6528119", "0.64479053", "0.6399554", "0.63717586", "0.62790984", "0.6037698", "0.59286326", "0.5919402", "0.58927846", "0.58752435", "0.58726585", "0.58630544", "0.58375233", "0.58301246", "0.5808464", "0.57988364", "0.5797963", "0.57...
0.66757035
3
Test _append_label step. Expected behavior is that the pipeline appends the String label (i.e. '02M') of each user to a list of dicts containing BigQuery output.
def W6M3(YKHO): with wUKe() as XP5J: WbAn = XP5J | 'CreateDurationData' >> DAMg.Create(iWA1.DURATION_DATA) kkrV = WbAn | 'AppendLabel' >> DAMg.Map(biH0.append_label) tDkU(kkrV, ZWQj(iWA1.LABEL_DATA))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zh6a(zVa7, um_8):\n try:\n dixj = zVa7.users().labels().create(userId='me', body=a3hq(um_8)).execute()\n tO9_ = um_8 + ' created successfully'\n G9jH.info(tO9_)\n print(tO9_)\n except UAju.HttpError as error:\n print('An error occurred: %s', P1dF)", "def euZr(zVa7):\n...
[ "0.65909904", "0.65384394", "0.6154621", "0.5820966", "0.57911485", "0.57864326", "0.57551426", "0.56821924", "0.5668576", "0.56515753", "0.5645698", "0.5644852", "0.5642364", "0.5608188", "0.55893815", "0.557167", "0.5561587", "0.5555219", "0.55361843", "0.55272037", "0.5525...
0.67502695
0
Returns the main device that experiments are to be ran on. Note that some components can and should still run on cpu for memory reasons so this should only be used to retrieve devices for things that would potentially run on the gpu.
def VeaS(): YMDC = tgzD().general wqL3 = YMDC.gpu begE = ht2j.device(f'cuda:{wqL3}' if wqL3 >= 0 else 'cpu') return begE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VeaS():\n if ht2j.cuda.is_available():\n begE = ht2j.device('cuda:0')\n else:\n begE = ht2j.device('cpu')\n return begE", "def M4N3():\n if idx7.cuda.is_available():\n return idx7.device('cuda')\n return idx7.device('cpu')", "def VeaS(wqL3=True):\n return ht2j.device(...
[ "0.79435134", "0.79373723", "0.7882855", "0.787277", "0.78568834", "0.784979", "0.779129", "0.7738687", "0.7681935", "0.7680256", "0.76681644", "0.76272583", "0.7610312", "0.75658405", "0.75639784", "0.75575477", "0.7541312", "0.7516135", "0.7502205", "0.7502205", "0.7502205"...
0.8183599
0
Generator that walks along nodes connected in a path.
def ZAda(YKHO, yKcO: 'Node'=None): if yKcO is None: if len(YKHO.edges) > 1: raise ValueError('Node {!r} has more than one edge'.format(YKHO)) if len(YKHO.edges) == 0: return yKcO = next(iter(YKHO.edges)) yield YKHO if len(yKcO.edges) > 2: raise ValueEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO, WKvO) -> bDy6['Node']:\n yield YKHO", "def nDZ0(YKHO, Q6kx=None):\n if Q6kx is None:\n Q6kx = YKHO.root\n for exwG in YKHO.node(Q6kx).succ:\n yield exwG\n for gAeH in YKHO._walk(exwG):\n yield gAeH", "def Vs4Q(YKHO):\n for Q6kx in YKHO.graph.nodes():\n...
[ "0.7109029", "0.7063212", "0.6792127", "0.6755838", "0.66577786", "0.66007346", "0.6598396", "0.65220016", "0.651435", "0.6500492", "0.64971715", "0.6456005", "0.6376249", "0.63673544", "0.632146", "0.63000244", "0.6255939", "0.6247767", "0.62475556", "0.6230627", "0.62283796...
0.6066401
38
Load a json fixture.
def VryH(Ux0P: str) -> ImMB: pmON = FzMn(Ux0P) return qQXR.loads(pmON.read_text(encoding='utf-8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VryH(gIsw):\n qaEx = Hy7s.path.join(Hy7s.path.abspath(Hy7s.path.dirname(xAKo)), 'fixtures', gIsw)\n with open(qaEx, 'r') as wM3v:\n return qQXR.load(wM3v)", "def lc9H():\n pass", "def vRCC(YKHO):\n try:\n with htTT(IOError):\n with YKHO.module.open_resource('fixtures/da...
[ "0.7747936", "0.7458118", "0.73813707", "0.7367473", "0.70847785", "0.6986554", "0.6874579", "0.68356067", "0.67812437", "0.6780365", "0.6714818", "0.6701685", "0.66484386", "0.6598484", "0.65790284", "0.6577875", "0.65666115", "0.65665764", "0.6566023", "0.6556648", "0.65542...
0.8241791
0
Mock specified dbus services on bus. to_mock is dictionary where the key is a dbus service to mock (module must exist in dbus_service_mocks). Value is the object path for the mocked service. Can also be a list of object paths or None (if the mocked service defines the object path). A dictionary is returned where the ke...
async def mock_dbus_services(tJJu: dict[str, list[str] | str | None], Pjr8: MessageBus) -> dict[str, dict[str, ujhf] | ujhf]: B373: dict[str, list[ujhf] | ujhf] = {} z71V: set[str] = set() for yR_P in pWCE('dbus_service_mocks', base=xAKo): if yR_P in tJJu: EYln = tF99(f'{__package__}.dbu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i0Pu(YKHO, C9U5, _xNI):\n for H5ew, BWXx in C9U5.items():\n setattr(_xNI, H5ew, TMAJ.MagicMock(return_value=BWXx))\n return _xNI", "def eCGt(Ak3z: str | None=None) -> ujhf:\n return hp1l()", "def eCGt(Ak3z: str | None=None) -> ujhf:\n return wk86()", "def eCGt(Ak3z: str | None=None) ->...
[ "0.5508064", "0.5296506", "0.5253764", "0.51050276", "0.51018065", "0.5050168", "0.50229377", "0.497777", "0.48135442", "0.48012236", "0.47848105", "0.47676614", "0.47225198", "0.47114578", "0.46918076", "0.4684671", "0.46441317", "0.46392986", "0.46354342", "0.4586092", "0.4...
0.83547926
0
Initialize an account of a member with the readings for different energy types
def FIMM(YKHO, Z31E, ecT5): YKHO.account_id = Z31E YKHO.billing_readings = {} for SbDT in ecT5: for pHjO in SbDT: if pHjO not in YKHO.BILLING_TYPES: raise Mk1a(pHjO) YKHO.billing_readings[pHjO] = YKHO.get_readings_for_account(SbDT[pHjO])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HAM_(YKHO):\n YKHO.account = {'equity': 0.0, 'cash': 0.0, 'buying_power': 0.0, 'multiplier': 1}", "def FIMM(YKHO, xHCt):\n YKHO.init_bal = xHCt\n YKHO.account = xHCt\n YKHO.fees = _4hU", "def FIMM(YKHO):\n YKHO._inventory = dict()\n YKHO._members = dict()", "def FIMM(YKHO, SCkQ):\n c...
[ "0.6533888", "0.5798827", "0.5730374", "0.5671427", "0.5619317", "0.55916137", "0.55833024", "0.5575055", "0.5540917", "0.5536426", "0.5512219", "0.551096", "0.5496544", "0.549546", "0.54876024", "0.5482435", "0.5475964", "0.54700035", "0.5466513", "0.54628015", "0.54430187",...
0.6819996
0
Initialize the application by registering the `close_db` function to run on request teardown. Additionally, register cli commands
def cBi7(P4t4): P4t4.teardown_appcontext(ssTe) P4t4.cli.add_command(Fpzw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmIz(P4t4):\n P4t4.teardown_appcontext(ssTe)\n P4t4.cli.add_command(CcZn)", "def GmIz(P4t4):\n P4t4.teardown_appcontext(ssTe)\n P4t4.cli.add_command(Fpzw)", "def GmIz(P4t4):\n P4t4.teardown_appcontext(ssTe)\n P4t4.cli.add_command(Fpzw)", "def GmIz(P4t4):\n P4t4.teardown_appcontext(ss...
[ "0.8062149", "0.7815839", "0.7814519", "0.7814519", "0.7814519", "0.7814519", "0.7814519", "0.7625825", "0.7519316", "0.7395775", "0.72515035", "0.72515035", "0.7241543", "0.71351355", "0.7011164", "0.6860624", "0.671465", "0.6568719", "0.65618026", "0.6529139", "0.6523839", ...
0.7460894
9
Stops the animation thread.
def fFx9(YKHO): if YKHO.__animation_thread is None: return if not YKHO.__animation_thread.is_alive: return YKHO.__stop_animation_thread.set() YKHO.__animation_thread.join()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iZ1n(YKHO) -> None:\n try:\n YKHO._animation_thread.cancel()\n del YKHO._animation_thread\n except:\n pass", "def o6iP(YKHO):\n if YKHO.animate_thread_id:\n YKHO.animate_thread_stop = True\n while YKHO.animate_thread_id:\n pass", "def uyfZ(YKHO):\n ...
[ "0.86170137", "0.821057", "0.8129079", "0.8116427", "0.80045176", "0.7941231", "0.7772955", "0.77287143", "0.77140754", "0.76346296", "0.7612921", "0.76097786", "0.7519324", "0.75181", "0.7516554", "0.7498064", "0.7431099", "0.7410588", "0.7407753", "0.7388332", "0.7368414", ...
0.74600095
16
Switches off all LEDs.
def SbBL(YKHO): YKHO.__turn_off_all_pixels()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZyH(YKHO):\n YKHO.set_leds_state(0)", "def qm5q(YKHO):\n for yQ5t in YKHO.leds:\n YKHO.set_PWM_dutycycle(yQ5t, 0)", "def SCq0():\n F8uC.blue_led1.brightness = 0\n F8uC.blue_led2.brightness = 0", "def SCq0(YKHO):\n if not YKHO.leds:\n return\n YKHO.animate_stop()\n for ...
[ "0.8695972", "0.8619025", "0.85326356", "0.8487834", "0.84760976", "0.83194906", "0.82384634", "0.7938302", "0.7929885", "0.7741311", "0.7688908", "0.76648957", "0.76497585", "0.7644183", "0.7614224", "0.7577309", "0.7564199", "0.75549525", "0.7550856", "0.75160754", "0.75111...
0.0
-1
Prints the string representation of an instance based on the class name and id
def IJmj(YKHO, qIxc): zFiD = qIxc.split() if len(zFiD) == 0: print('** class name missing **') elif globals().get(zFiD[0]) is None: print("** class doesn't exist **") elif len(zFiD) == 1: print('** instance id missing **') else: eUNp = S8SU.all() H5ew = zFiD[0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n b5m0 = YKHO.__class__.__name__\n cmPJ = YKHO.to_dict()\n del cmPJ['__class__']\n return '[{}] ({}) {}'.format(b5m0, YKHO.id, cmPJ)", "def zAg0(YKHO):\n _2sc = YKHO.__class__.__name__\n return '[{}] ({}) {}'.format(_2sc, YKHO.id, YKHO.__dict__)", "def zAg0(YKHO):\n rwjl = ...
[ "0.7621416", "0.7550867", "0.74565405", "0.7367085", "0.7265665", "0.7212725", "0.7194747", "0.7191808", "0.7179944", "0.714016", "0.70557976", "0.7053636", "0.70495194", "0.70495194", "0.70495194", "0.70495194", "0.70495194", "0.70495194", "0.7048318", "0.70465475", "0.70311...
0.6958231
29
graph symmetric normalization; moiover, the normalizing vector is returned
def XsOV(yvY1): qcTN = oyIN.zeros(yvY1.V) hvKF = oyIN.zeros(yvY1.V) for tTpl in range(yvY1.E): jzdc = yvY1.edges[tTpl, 0] Fg_i = yvY1.edges[tTpl, 1] Csk6 = yvY1.weights[tTpl] qcTN[jzdc] = qcTN[jzdc] + Csk6 hvKF[Fg_i] = hvKF[Fg_i] + Csk6 qcTN[qcTN == 0] = 1 hvK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(Ty9i):\n CkYf = oyIN.linalg.norm(Ty9i)\n if CkYf == 0:\n return Ty9i\n return Ty9i / CkYf", "def lgZ7(Ty9i):\n CkYf = oyIN.linalg.norm(Ty9i)\n Ty9i = Ty9i / CkYf\n return Ty9i", "def NkkI(YKHO):\n YKHO.number_of_vectors = YKHO.values.shape[0]\n rRIa = oyIN.linalg.norm(YK...
[ "0.68088126", "0.68070287", "0.67184544", "0.67029375", "0.67027515", "0.66890603", "0.666734", "0.65908045", "0.65866816", "0.6583444", "0.6568879", "0.65672046", "0.65254027", "0.6521792", "0.6520945", "0.65171957", "0.65107816", "0.6497538", "0.6489858", "0.64759326", "0.6...
0.7293162
0
Generate a action number. Determine whether to explore or exploit by epsilon value
def rKSe(YKHO, _hZ2): GybS = int(YKHO.table.index[0]) ADdS = oyIN.random.uniform(0, 1, 1)[0] if ADdS <= _hZ2: return oyIN.random.randint(YKHO.action_num) else: return GybS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OU8Y(T8ck, QTBn, xASv, _hZ2=0.5):\n if oyIN.random.random() < _hZ2:\n XeOP = l489(xASv)\n else:\n XeOP, bGrB = ePBn(T8ck, QTBn, xASv)\n return XeOP", "def naKJ(w3RL, QTBn, _hZ2, ph8c):\n Aofo = ZylS.random.uniform((1,))\n if Aofo < _hZ2:\n return tuKI.randint(0, ph8c - 1)\...
[ "0.6969818", "0.68498904", "0.67923063", "0.677551", "0.67658496", "0.6685272", "0.66361433", "0.66331923", "0.66089314", "0.65911305", "0.65803516", "0.6506971", "0.6493174", "0.64891887", "0.64526284", "0.64287806", "0.64172673", "0.6411541", "0.6402383", "0.6399378", "0.63...
0.684716
2