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
Helper method to obtain the nonnan/inf indices of an array.
def ho4d(jzdc): return ~F2Lk(jzdc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F2Lk(jzdc):\n return oyIN.isnan(jzdc) | oyIN.isinf(jzdc)", "def Or4w(bDYe):\n JYJ2 = oyIN.argwhere(oyIN.isnan(bDYe))\n U_It = oyIN.argwhere(oyIN.isinf(bDYe))\n bo34.debug('Index with NaN:%s\\n' % JYJ2)\n bo34.debug('Index with INF:%s\\n' % U_It)\n return (JYJ2, U_It)", "def i_Dm(jzdc):\n ...
[ "0.8781888", "0.74705476", "0.70909446", "0.70899624", "0.6970378", "0.67857516", "0.67395794", "0.67336833", "0.67074484", "0.6603537", "0.66001695", "0.6576352", "0.65398145", "0.6445831", "0.64262635", "0.640912", "0.6401403", "0.63242984", "0.63099605", "0.63099605", "0.6...
0.8209425
1
Computes the moving average over an array given a window size.
def ZCKv(jzdc, KnxT=3): return oyIN.mean(agUT(jzdc, KnxT), -1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(nPrm, yMhW):\n KnxT = oyIN.ones(int(yMhW)) / float(yMhW)\n return oyIN.convolve(nPrm, KnxT, 'same')", "def ZCKv(nPrm, yMhW):\n return oyIN.convolve(nPrm, oyIN.ones((yMhW,)) / yMhW, mode='same')", "def ZCKv(nPrm, yMhW):\n fHeP = []\n zqxI = int((yMhW - 1) / 2)\n for exwG in range(len(...
[ "0.89314175", "0.89244074", "0.86248815", "0.8382381", "0.8382381", "0.8382381", "0.8382381", "0.8288036", "0.82154286", "0.8190354", "0.8118238", "0.8095136", "0.8030323", "0.799678", "0.7938427", "0.79332274", "0.79312587", "0.79312587", "0.790763", "0.7894638", "0.7880361"...
0.8117595
11
Computes the moving avg and std. over an array given a window size.
def eiS6(jzdc, KnxT=3): jzdc = jzdc.astype('d') yGTL, wEsz = Y7GP.moving_avg_std(jzdc, KnxT) return (oyIN.asarray(yGTL), oyIN.asarray(wEsz))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(nPrm, yMhW):\n return oyIN.convolve(nPrm, oyIN.ones((yMhW,)) / yMhW, mode='same')", "def ZCKv(nPrm, yMhW):\n KnxT = oyIN.ones(int(yMhW)) / float(yMhW)\n return oyIN.convolve(nPrm, KnxT, 'same')", "def ZCKv(nPrm, yMhW):\n fHeP = []\n zqxI = int((yMhW - 1) / 2)\n for exwG in range(len(...
[ "0.81315994", "0.80900234", "0.79123986", "0.784678", "0.78101104", "0.7745394", "0.7714901", "0.7714901", "0.7714901", "0.7714901", "0.76331383", "0.76027507", "0.7533182", "0.7524075", "0.7499915", "0.7444158", "0.73831975", "0.73811024", "0.7374926", "0.7347702", "0.734692...
0.78731835
3
Computes the moving maximum over an array given a window size.
def erLF(jzdc, KnxT=3): return oyIN.max(agUT(jzdc, KnxT), axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sitx(jQ3Z, yMhW=125):\n jQ3Z['moving_max'] = jQ3Z.High.rolling(yMhW).max()\n for YRbF, (f6_R, rdlD) in enumerate(jQ3Z[jQ3Z.moving_max.isnull()][::-1].iterrows()):\n jQ3Z.loc[f6_R, 'moving_max'] = jQ3Z[jQ3Z.moving_max.isnull()].High.max()\n return jQ3Z", "def DXm7(ezWE, KnxT, jDK_=-1, NKcE='fi...
[ "0.7560413", "0.74862725", "0.73749477", "0.6997973", "0.67325205", "0.66782415", "0.6639809", "0.6397063", "0.6219048", "0.62189543", "0.6044774", "0.60226035", "0.60019666", "0.5993869", "0.5971626", "0.59461164", "0.5924296", "0.5874415", "0.5858259", "0.58514017", "0.5818...
0.8370287
0
Paginate query if we can't use flasksqlalchemy query (we use regular sqlalchemy one instead)
def roPg(xDcj, B2Dn, USOo=20, DhBL=True): if DhBL and B2Dn < 1: eTsH(404) DumB = xDcj.limit(USOo).offset((B2Dn - 1) * USOo).all() if not DumB and B2Dn != 1 and DhBL: eTsH(404) if B2Dn == 1 and len(DumB) < USOo: wjRY = len(DumB) else: wjRY = xDcj.order_by(None).count()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roPg(Emd4, **B2fa):\n return Emd4.query.paginate(**B2fa)", "def Z1fV(YKHO, xDcj, vgXP=None, qoqK=None):\n if vgXP is not None:\n xDcj = xDcj.offset(vgXP)\n if qoqK is not None:\n xDcj = xDcj.limit(qoqK)\n return xDcj", "def yBEd(QpfX, _5yy, qoqK, u2qj, pbwn, KUnM, vgXP=None, hPTY=...
[ "0.67776674", "0.6596315", "0.65697724", "0.6563213", "0.6467098", "0.63764066", "0.62764645", "0.62685955", "0.6250859", "0.61918676", "0.61773556", "0.61489165", "0.61041623", "0.6069064", "0.60687584", "0.6066655", "0.60656", "0.60506237", "0.6032678", "0.60292023", "0.601...
0.55942136
80
The string representation of the state. ASCII art FTW!
def zAg0(YKHO): KCHu = '' for rdlD in YKHO.cells: KCHu += '|' for eL5z in rdlD: fndD = '%%%dd|' % round(epAf.log(b74H, 10) + 0.5) KCHu += fndD % (eL5z.value if eL5z else 0) KCHu += '\n' return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return str(YKHO.state)", "def wHJl(YKHO):\n return YKHO.mdp.state_string(YKHO.state)", "def str(YKHO):\n return '-'.join(YKHO.state_arr)", "def zAg0(YKHO):\n return 'State{\\n %s \\n}' % '\\n'.join(['\\t{}: {}'.format(G1Hx, str(YRbF)) for G1Hx, YRbF in YKHO.__dict__.items() if n...
[ "0.85141593", "0.8317268", "0.80560243", "0.805144", "0.800601", "0.7970721", "0.7919085", "0.7904876", "0.7898536", "0.7882423", "0.77658063", "0.7758567", "0.77222586", "0.76995105", "0.7695196", "0.7664155", "0.76394457", "0.76380014", "0.7621619", "0.7596529", "0.75751346...
0.0
-1
Clip image and then normalize to [0, 1]
def NkkI(VOC_, _T4P=-oyIN.inf, VW4n=oyIN.inf, UAE4='extend', R4jI=3, EoEk=6, KLUF=None, DhEj=False): VOC_ = VOC_.astype(oyIN.float) if UAE4 == 'optimize': VOC_ = kxky(VOC_, lower_sigma=R4jI, upper_sigma=EoEk, bg_thresh=KLUF, force_otsu=DhEj) elif UAE4 == 'extend': if 0 < _T4P < 1 and 0 < VW4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(YKHO):\n YKHO.img = oyIN.clip(YKHO.img - YKHO.img.mean(), -1, 1)", "def kwsU(YKHO):\n YKHO.img = oyIN.clip(YKHO.img, 0, 150.0) / 150.0", "def kwsU(YKHO):\n YKHO.img = YKHO.img.astype(oyIN.float32) / 255.0\n YKHO.img -= YKHO.img.mean()", "def Ekx3(YKHO, VXjJ):\n VXjJ /= 255.0\n VXjJ...
[ "0.81783617", "0.7962691", "0.77115655", "0.7695154", "0.76300544", "0.75649476", "0.7304543", "0.7290534", "0.72846574", "0.72471446", "0.719233", "0.71481", "0.7142488", "0.71008986", "0.7075024", "0.7070912", "0.7055892", "0.69836485", "0.69836485", "0.69496524", "0.694103...
0.0
-1
This function computes a linear scalarization of the two objectives to obtain a unique reward.
def dFuw(NC9p, fcKQ, oUxu, _mSQ, jjGJ): if oUxu == 'linear' or oUxu == 'linear_adaptative': x6pX = _mSQ[0] qgMH = _mSQ[1] return x6pX * NC9p + qgMH * fcKQ elif oUxu == 'chebyshev': rPsY = 0 kGhm = 0 x6pX = _mSQ[0] qgMH = _mSQ[1] W8ye = jjGJ[0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, j93S, Nqp_):\n J1b4 = YKHO.rewVec[j93S]\n CYjz = YKHO.rewVec[Nqp_]\n return CYjz - J1b4", "def TdGg(YKHO):\n YKHO.term1 = -YKHO.dist ** 2\n YKHO.term2 = 0\n jFFD = YKHO.term1 + YKHO.term2\n return jFFD", "def hqVu(YKHO):\n Cwt5 = 1\n YKHO.term1 = -YKHO.dist ** 2\n Y...
[ "0.6650375", "0.634337", "0.62499684", "0.62204903", "0.6157942", "0.60906297", "0.6052745", "0.60490626", "0.599156", "0.59887445", "0.59561276", "0.59092695", "0.58848906", "0.58726823", "0.5856462", "0.58355725", "0.58228123", "0.5799118", "0.57851166", "0.57700217", "0.57...
0.6168463
4
This function takes the predictor model and the SMILES string and returns a numerical reward.
def xyVK(iyYY, jxry, IoeD): p90m = [jxry] if IoeD == 'sas': p90m[0] = OJ0g.MolFromSmiles(jxry) XGH0 = o2nu(p90m) vOGg = XGH0[0] else: nvEb = iyYY.predict(p90m) vOGg = oyIN.exp(nvEb / 4 - 1) return vOGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XyUB(iyYY, jxry):\n p90m = [jxry]\n p90m[0] = OJ0g.MolFromSmiles(jxry)\n ldfi = o2nu(p90m)\n MaIU = ldfi[0]\n fcKQ = oyIN.exp(-MaIU + 3)\n p90m = [jxry]\n nvEb = iyYY.predict(p90m)\n NC9p = oyIN.exp(nvEb / 4 - 1)\n return (NC9p, fcKQ)", "def BiIn(YKHO):\n raise NotImplementedErr...
[ "0.6302556", "0.59386677", "0.5892143", "0.5773345", "0.57570255", "0.570735", "0.5680002", "0.5661837", "0.56254566", "0.5618247", "0.56107503", "0.55926216", "0.5563313", "0.5548278", "0.5548278", "0.55450916", "0.55034333", "0.54606825", "0.54549646", "0.54534006", "0.5452...
0.6293018
1
This function takes the predictor model and the SMILES string and returns a numerical reward.
def XyUB(iyYY, jxry): p90m = [jxry] p90m[0] = OJ0g.MolFromSmiles(jxry) ldfi = o2nu(p90m) MaIU = ldfi[0] fcKQ = oyIN.exp(-MaIU + 3) p90m = [jxry] nvEb = iyYY.predict(p90m) NC9p = oyIN.exp(nvEb / 4 - 1) return (NC9p, fcKQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyVK(iyYY, jxry, IoeD):\n p90m = [jxry]\n if IoeD == 'sas':\n p90m[0] = OJ0g.MolFromSmiles(jxry)\n XGH0 = o2nu(p90m)\n vOGg = XGH0[0]\n else:\n nvEb = iyYY.predict(p90m)\n vOGg = oyIN.exp(nvEb / 4 - 1)\n return vOGg", "def BiIn(YKHO):\n raise NotImplementedEr...
[ "0.62931895", "0.59399146", "0.589344", "0.5774647", "0.5758885", "0.5709541", "0.56819475", "0.56627595", "0.5624971", "0.5620023", "0.5612374", "0.5593995", "0.5563631", "0.5548885", "0.5548885", "0.55469346", "0.5504845", "0.5461065", "0.5455891", "0.5454587", "0.5453713",...
0.6301494
0
This function performs a simple moving average between the last 9 elements and the last one obtained.
def ZCKv(gdeS, Qj8D, CCcy=10): BEhj = oyIN.sum(gdeS[-(CCcy - 1):]) + Qj8D BEhj = BEhj / (len(gdeS[-(CCcy - 1):]) + 1) return BEhj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(dy_H, exwG):\n return oyIN.average(dy_H[-exwG:])", "def ZCKv(nPrm, exwG=3):\n U5bT = oyIN.cumsum(nPrm, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG]\n return U5bT[exwG - 1:] / exwG", "def beX2(WKvO):\n Y8Kb = []\n for yzQ0 in range(1, min(50, U9jm), 5):\n ycBG = oyIN...
[ "0.7892797", "0.75666577", "0.7511824", "0.74913585", "0.7488682", "0.7477132", "0.7448236", "0.742391", "0.7407496", "0.7404053", "0.7386409", "0.73627937", "0.73056364", "0.7238794", "0.7235553", "0.72349715", "0.7189677", "0.7168706", "0.7153031", "0.708851", "0.7078111", ...
0.75616795
2
Given the dashboard name, the dashboards part of the configuration, and the default datasource, generate a dashboard. We use the skeleton.json file, and fill it with given panels and template variables. Rows have titles, panels, and optional repeat and collapse options. Panels span can be configured. 12 = one lie. A da...
def yZeN(mWFP, e7YI, pd8u): nPrm = {} fGTW = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') OxGU = Hy7s.path.join(fGTW, 'skeleton.json') with open(OxGU) as gE0W: nPrm = qQXR.load(gE0W) Dck1 = e7YI[mWFP] DqlU = Dck1.get('templating', []) usx6 = Dck1.get('rows', []) if 'inher...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nj2I(GPtr, wyyA):\n return dKht(GPtr, {'name': 'Default Dashboard', 'layout': 'row', 'plots': []}, wyyA)", "def XtuK(mWFP, Dck1=None, QiMW=None, usx6=None, cygL=None, z39Z='grafana'):\n U5bT = {'name': mWFP, 'result': None, 'comment': '', 'changes': {}}\n if not z39Z:\n raise xE6Z('profile is...
[ "0.6844455", "0.64117277", "0.6123303", "0.60305464", "0.59181356", "0.5776461", "0.5749709", "0.5724873", "0.56978863", "0.5686382", "0.56712705", "0.56511104", "0.54941255", "0.5475067", "0.54462", "0.54394394", "0.54211056", "0.5420091", "0.53575104", "0.5338952", "0.53380...
0.8438529
0
Returns a random point on a 100x100 grid.
def qRtf(): return (tuKI.randrange(100), tuKI.randrange(100))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgS0():\n return tuKI.randint(0, 50)", "def qRtf():\n return (ajWY(0, 4), 2)", "def DG8r():\n WKvO = tuKI.randint(-100, 100)\n LVAh = tuKI.randint(-100, 100)\n return (WKvO, LVAh)", "def DG8r():\n WKvO = tuKI.randint(-100, 100)\n LVAh = tuKI.randint(-100, 100)\n return (WKvO, LVAh...
[ "0.7975734", "0.76520026", "0.7638092", "0.7638092", "0.75170124", "0.7515509", "0.75112486", "0.7476425", "0.7349093", "0.7263476", "0.7255371", "0.7236048", "0.72288126", "0.7226625", "0.7222816", "0.71976614", "0.7192914", "0.70601684", "0.7029654", "0.7000448", "0.6999451...
0.77295464
1
Returns a list of random points, one for each player.
def FQt5(Bwa6): LTIa = [] for oyg0 in Bwa6: AU8u = qRtf() LTIa += AU8u return LTIa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FQt5(Bwa6):\n LTIa = []\n for oyg0 in Bwa6:\n AU8u = qRtf()\n LTIa.append(AU8u)\n return LTIa", "def FQt5(Bwa6):\n return [qRtf() for oyg0 in Bwa6]", "def Kd9I(YKHO):\n kNJt = [YKHO.p1, YKHO.p2]\n tuKI.shuffle(kNJt)\n return kNJt", "def nkGx(YKHO):\n Bwa6 = []\n f...
[ "0.8367587", "0.80584323", "0.72642845", "0.7173896", "0.7148249", "0.706722", "0.6924613", "0.69061124", "0.69061124", "0.68870133", "0.6838589", "0.6601854", "0.65008706", "0.64802647", "0.64802647", "0.64802647", "0.6475879", "0.64710516", "0.64417154", "0.6419626", "0.641...
0.8157946
1
Returns a String with title of subscription offer
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qc_H(YKHO):\n return YKHO.getInvoiceNumber()", "def Upwb(XWXu):\n YbZO = rKuS(XWXu, 'html.parser')\n try:\n return YbZO.find(id='ogl-title').text.strip()\n except AttributeError:\n return", "def Upwb(YKHO):\n if not YKHO.customer:\n return QRWf.STR_AVAILABLE\n return ...
[ "0.6428984", "0.63393396", "0.63150775", "0.6213045", "0.61904526", "0.61828345", "0.6172794", "0.61638904", "0.6147051", "0.6144035", "0.6144035", "0.61437386", "0.6131031", "0.6131031", "0.6125399", "0.608443", "0.6031665", "0.60308677", "0.6022974", "0.6016865", "0.6014434...
0.0
-1
Validates that an active user exists with the given email address.
def YBiq(YKHO): D3lj = YKHO.cleaned_data['email'] YKHO.users_cache = mv1M.objects.filter(email__iexact=D3lj, is_active=True) if not len(YKHO.users_cache): raise H6V6.ValidationError('Usuário não encontrado, verifique o e-mail por favor.') return D3lj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7zm(D3lj):\n if not TQW7.get_user(D3lj):\n raise sUXu(Eair('USER_DOES_NOT_EXIST')[0])", "def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if not CBIr:\n raise sUXu('No account with that email exists')", "def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filt...
[ "0.81902933", "0.7717907", "0.7717907", "0.7717907", "0.76407635", "0.7586327", "0.7584269", "0.7481129", "0.7463923", "0.74482906", "0.73777455", "0.737078", "0.73142296", "0.7280902", "0.7265008", "0.7263734", "0.7222965", "0.7123422", "0.7098196", "0.7085384", "0.7075183",...
0.0
-1
quickSort function using zitler's continuous domination predicate
def vk7q(YKHO, ezWE, gqRb, ODP9): if len(ezWE) == 1: return ezWE if gqRb < ODP9: mM0K = YKHO.partition(ezWE, gqRb, ODP9) YKHO.quickSort(ezWE, gqRb, mM0K - 1) YKHO.quickSort(ezWE, mM0K + 1, ODP9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L8TF(ezWE, yKcO, Os4s):\n if yKcO < Os4s:\n mM0K = uXoo.partition(ezWE, yKcO, Os4s)\n uXoo.do_quick_sort(ezWE, yKcO, mM0K - 1)\n uXoo.do_quick_sort(ezWE, mM0K + 1, Os4s)", "def vk7q(BDwY, XP5J, Mkmy, nPrm):\n if XP5J < Mkmy:\n vexM = Qrt_(BDwY, XP5J, Mkmy, nPrm)\n vk7...
[ "0.71653575", "0.7125035", "0.70468813", "0.70120364", "0.7008785", "0.69987446", "0.6968116", "0.69344294", "0.69140667", "0.68962103", "0.68419135", "0.6816415", "0.67416805", "0.67325574", "0.6714223", "0.66934425", "0.6671156", "0.66609323", "0.6645546", "0.66408926", "0....
0.6862317
10
Optional. The workloads configuration settings for the GKE cluster associated with the Cloud Composer environment. The GKE cluster runs Airflow scheduler, web server and workers workloads. This field is supported for Cloud Composer environments in versions composer2..airflow.. and newer.
def DJD7(YKHO) -> h8nf[qe4Y.Input['WorkloadsConfigArgs']]: return qe4Y.get(YKHO, 'workloads_config')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _xqe(YKHO) -> h8nf[qe4Y.Input['WorkflowTemplatePlacementManagedClusterConfigWorkerConfigArgs']]:\n return qe4Y.get(YKHO, 'worker_config')", "def _xqe(YKHO) -> h8nf[qe4Y.Input['ClusterClusterConfigWorkerConfigArgs']]:\n return qe4Y.get(YKHO, 'worker_config')", "def _xqe(YKHO) -> h8nf[qe4Y.Input['Worke...
[ "0.62252885", "0.5975489", "0.5687075", "0.5579088", "0.55638224", "0.5513456", "0.54960686", "0.54149467", "0.53908414", "0.53869283", "0.5298836", "0.5296239", "0.52779657", "0.52779657", "0.5263301", "0.52474177", "0.52398485", "0.5212658", "0.52101886", "0.5204539", "0.51...
0.70894635
0
Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. For Cloud Composer environments in versions composer1..airflow.., this field is applicable only when `use_ip_aliases` is true.
def v1L_(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cluster_secondary_range_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n7wP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'ip_policy_cluster_secondary_range_name')", "def hUAd(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'secondary_ip_range_names')", "def XjKx(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'ip_policy_services_secondary_range_name')", "def g1B...
[ "0.7025274", "0.65391695", "0.64814764", "0.641684", "0.641684", "0.6162358", "0.6162358", "0.6066795", "0.5970925", "0.59128237", "0.58407116", "0.5757487", "0.5757487", "0.5756122", "0.5756122", "0.57279325", "0.5686038", "0.56729317", "0.5670349", "0.5548798", "0.5548798",...
0.65769964
1
Start time of the first recurrence of the maintenance window.
def SWox(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'start_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWox(YKHO):\n return YKHO.time_range()[0]", "def R4lU(YKHO):\n pass", "def SWox(YKHO) -> qcWV:\n return YKHO.timer_start_time", "def SWox(YKHO) -> int:\n pass", "def fHon(YKHO):\n return qcWV.now() - fCoM(days=7)", "def SWox(YKHO):\n return YKHO.time_list[0]", "def yKcO(YKHO):\n ...
[ "0.71034026", "0.6986237", "0.69744354", "0.69742906", "0.69461155", "0.691842", "0.68904465", "0.6876799", "0.6865278", "0.6828514", "0.6675421", "0.66566986", "0.6642121", "0.65699434", "0.65604436", "0.65579134", "0.6556602", "0.65492785", "0.65492785", "0.6530547", "0.652...
0.0
-1
Optional. The Google Cloud Platform Service Account to be used by the node VMs. If a service account is not specified, the "default" Compute Engine service account is used. Cannot be updated.
def zOZf(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'service_account')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q9A_(qIxc, cO4L, CLDI):\n if qIxc.service_account is not None:\n y0cW = ''\n if not qIxc.service_account.startswith('projects/'):\n y0cW = 'projects/-/serviceAccounts/'\n cO4L.serviceAccount = y0cW + qIxc.service_account\n CLDI.append('serviceAccount')", "def zOZf(YK...
[ "0.67209566", "0.6496677", "0.64820343", "0.6464401", "0.63325495", "0.63213813", "0.61927074", "0.61927074", "0.6176484", "0.6138013", "0.6096432", "0.59749436", "0.5896484", "0.5881964", "0.5833054", "0.57908523", "0.57501054", "0.5735419", "0.571011", "0.568347", "0.568347...
0.66824186
1
Optional. Custom Python Package Index (PyPI) packages to be installed in the environment. Keys refer to the lowercase package name such as "numpy" and values are the lowercase extras and version specifier such as "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a package without pinning it to a ve...
def PcWj(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'pypi_packages')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D_ay(YKHO):\n exec(YKHO.findKeyWordOption('INSTALL_CYTHON'))\n YKHO.install_cython = hJ9p\n exec(YKHO.findKeyWordOption('INSTALL_NUMPY'))\n YKHO.install_numpy = a4XN\n exec(YKHO.findKeyWordOption('INSTALL_SCIPY'))\n YKHO.install_scipy = hgoD", "def NL2l():\n nPrm = {'PkgA': ['vers1', 've...
[ "0.60240847", "0.59953094", "0.59718084", "0.59130144", "0.591254", "0.57599735", "0.5757578", "0.5705643", "0.56994575", "0.56918865", "0.56126606", "0.5600022", "0.55890715", "0.55830973", "0.5567651", "0.5557007", "0.5555393", "0.5517493", "0.550118", "0.5455988", "0.54556...
0.6417846
0
Optional. The number of schedulers for Airflow. This field is supported for Cloud Composer environments in versions composer1..airflow2...
def szhv(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'scheduler_count')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cpru(YKHO):\n return YKHO.__schedulers", "def cpru(YKHO):\n return YKHO.__schedulers", "def cpru(YKHO):\n return YKHO.__schedulers", "def cpru(YKHO):\n return YKHO.__schedulers", "def cpru(YKHO):\n return YKHO.__schedulers", "def cpru(YKHO):\n return YKHO.__schedulers", "def cpru(...
[ "0.59551704", "0.59551704", "0.59551704", "0.59551704", "0.59551704", "0.59551704", "0.59551704", "0.59551704", "0.59551704", "0.58613247", "0.5767009", "0.56793463", "0.5650505", "0.5589589", "0.5572993", "0.5529958", "0.5495084", "0.5447355", "0.54306227", "0.54111433", "0....
0.6633075
0
Find the values of the x data from a given positive/negative values of the y data.
def lWja(WKvO, LVAh, SRM8): if SRM8 < 0: P1dF('y_to_find is always positive.') else: Doch = KeYn(WKvO, LVAh - SRM8) qi5t = KeYn(WKvO, LVAh + SRM8) return (Doch, qi5t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lbuf(YKHO):\n VN4h, y2M2, Idjf = YKHO.get_pos_neg_xy(YKHO.xy, positive_col=0)\n TNZb = VN4h.ix[:, 0:LVAh.shape[1]].copy()\n JZAh = VN4h.ix[:, LVAh.shape[1]:].copy()\n tv7C = y2M2.ix[:, 0:LVAh.shape[1]].copy()\n npAN = y2M2.ix[:, LVAh.shape[1]:].copy()\n return (TNZb, JZAh, tv7C, npAN, Idjf)",...
[ "0.72492087", "0.6625841", "0.6433287", "0.6377821", "0.63003206", "0.624596", "0.6203636", "0.61913764", "0.61841667", "0.6161957", "0.61546427", "0.61531705", "0.6133742", "0.6118429", "0.61125207", "0.6091178", "0.6076862", "0.606301", "0.6003196", "0.5985698", "0.5959076"...
0.60559636
18
Returns true if the type2 exactly matches type1, or matches supertype where type1 has a wildcard subtype.
def wAnK(GUJU, e1Ea, mJOE, QBCc): if GUJU == mJOE: if e1Ea == '*' or e1Ea == QBCc: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d5qq(uGHt, Fvlg):\n if uGHt in ('children', 'elements'):\n return Fvlg in ('children', 'elements')\n else:\n return uGHt == Fvlg", "def gbn5(wizG, oPUJ, tJPp):\n for GUJU, e1Ea in tJPp:\n if wAnK(GUJU, e1Ea, wizG, oPUJ):\n return True\n return False", "def kUBT(Y...
[ "0.6798022", "0.67458206", "0.6665309", "0.6351744", "0.61998713", "0.61872226", "0.6142269", "0.6087316", "0.60762805", "0.6003962", "0.599611", "0.5983002", "0.59575367", "0.59242356", "0.5921911", "0.5910068", "0.5909655", "0.58939743", "0.58605015", "0.5834692", "0.582658...
0.8425465
0
Returns true if the given type is matched by a type in the list.
def gbn5(wizG, oPUJ, tJPp): for GUJU, e1Ea in tJPp: if wAnK(GUJU, e1Ea, wizG, oPUJ): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WO9f(YKHO, tJPp):\n if YKHO.tcontext is None:\n return False\n return YKHO.__typeMatch(YKHO.tcontext, tJPp)", "def drtP(YKHO, tJPp):\n if YKHO.scontext is None:\n return False\n return YKHO.__typeMatch(YKHO.scontext, tJPp)", "def hHld(YKHO, ZfUD):\n if not YKHO.types:\n ...
[ "0.7305444", "0.6946157", "0.69103605", "0.67727154", "0.67340297", "0.6730527", "0.6653255", "0.66521823", "0.66275406", "0.6623615", "0.6620619", "0.661557", "0.6569031", "0.65500474", "0.65353656", "0.65352875", "0.651987", "0.64540607", "0.64537364", "0.64049506", "0.6392...
0.8098762
0
Create a sparse representention of x.
def OUIX(jWe2, yDqo=oyIN.int32): _0VL = [] hkxX = [] for exwG, Q6uT in enumerate(jWe2): _0VL.extend(zip([exwG] * len(Q6uT), Ni9Y(len(Q6uT)))) hkxX.extend(Q6uT) _0VL = oyIN.asarray(_0VL, dtype=oyIN.int64) hkxX = oyIN.asarray(hkxX, dtype=yDqo) ROpF = oyIN.asarray([len(jWe2), oyIN.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXM_(WKvO):\n zHeZ = ht2j.typename(WKvO).split('.')[-1]\n UX5J = getattr(ht2j.sparse, zHeZ)\n _0VL = ht2j.nonzero(WKvO)\n if len(_0VL.shape) == 0:\n return UX5J(*WKvO.shape)\n _0VL = _0VL.t()\n hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL.shape[0])))]\n return UX5J(_0VL, hkx...
[ "0.7594727", "0.75688916", "0.75688916", "0.75688916", "0.75688916", "0.75688916", "0.75688916", "0.746936", "0.7329175", "0.70457846", "0.7010973", "0.6988596", "0.68559825", "0.6804742", "0.67750764", "0.6769434", "0.66373175", "0.6592939", "0.6498369", "0.6437577", "0.6437...
0.0
-1
This returns a short string representation, which is at most 25 characters long. If the original text is longer than 25 characters, the last 3 characters of the short string should be '...'.
def zAg0(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WG1H(l5Ny: str, BcCR: int=75) -> str:\n if len(l5Ny) < BcCR:\n return l5Ny\n return l5Ny[0:72] + '...'", "def UQvk(YKHO):\n if len(YKHO.text) < 128:\n return YKHO.text\n return YKHO.text[:128] + '...'", "def T63M(nPrm, u54L=800):\n yQDB = str(nPrm)[:u54L]\n if len(str(nPrm))...
[ "0.8359632", "0.80008006", "0.77879304", "0.7499113", "0.7497381", "0.7393697", "0.7376424", "0.73444945", "0.72780025", "0.72711265", "0.7179515", "0.7124088", "0.7114685", "0.7015095", "0.6955299", "0.691659", "0.6882868", "0.6863347", "0.6841277", "0.6818957", "0.67809296"...
0.0
-1
accepts a single string parameter consisting of two positive integers and a singe operator between them, where the operator is one of +, , , or /. There may also be arbitrarily many spaces before or after either number and /or the operator. The function returns the int or float value created by evaluating the expressio...
def PWxZ(lsX7): Maem = '+-*/' for YRbF, bseI in enumerate(lsX7): if bseI == '+': return PWxZ(lsX7[:YRbF]) + PWxZ(lsX7[YRbF + 1:]) elif bseI == '-': if YRbF == 0 or lsX7[YRbF - 1] in Maem: continue else: return PWxZ(lsX7[:YRbF]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HQO5(KCHu):\n wjRY = 0\n Y8Kb = list()\n for ZfUD in KCHu.strip().split():\n Y8Kb.append(ZfUD)\n if Y8Kb[0] == '+' or Y8Kb[0] == '-':\n for ZfUD in Y8Kb:\n if ZfUD == '+':\n seET = '+'\n elif ZfUD == '-':\n seET = '-'\n el...
[ "0.7653725", "0.75422347", "0.71069807", "0.7090832", "0.7088807", "0.7009134", "0.6974001", "0.6964793", "0.69433606", "0.69202584", "0.6916891", "0.6901169", "0.6882495", "0.68279016", "0.67626405", "0.67143357", "0.6712057", "0.6703827", "0.66797185", "0.66764444", "0.6666...
0.6314174
49
Return the thermocouple temperature value in degrees celsius.
def StQF(): Ty9i = vlQU() if Ty9i & 7: return float('NaN') if Ty9i & 2147483648: Ty9i >>= 18 Ty9i -= 16384 else: Ty9i >>= 18 return Ty9i * 0.25
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rcrL(YKHO) -> float:\n TZ_R = float(YKHO.__reading[rO6F['temperature']])\n return RV7L(TZ_R)", "def QGow(YKHO):\n return YKHO.temp", "def ovGo(YKHO):\n YKHO._read_temperature()\n return YKHO._t_fine / 5120.0", "def ovGo(YKHO) -> float:\n YKHO._read_temperature()\n return YKHO._t_fine...
[ "0.8404257", "0.8351108", "0.81638885", "0.81176156", "0.80833536", "0.80693734", "0.8024793", "0.798456", "0.7971358", "0.79552615", "0.79265213", "0.79156315", "0.7866739", "0.7836086", "0.7824358", "0.7824358", "0.7824358", "0.7824358", "0.7824358", "0.7824358", "0.7824358...
0.0
-1
Get a random choice
async def choose(YKHO, OaeV, *mrPm): if len(mrPm) >= 2: Acvy = mrPm[tuKI.randint(0, len(mrPm) - 1)] await YKHO.bot.say(f'I choose\n> {Acvy}') else: await YKHO.bot.say(':x: At least 2 options must be provided :x:')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0oI(YKHO):\n return tuKI.choice(YKHO.choices.split(':'))", "def Acvy(YKHO):\n return tuKI.choice(YKHO)", "def Acvy(*qIxc):\n return tuKI.choice(qIxc)", "def azh2(*qIxc):\n return tuKI.choice(qIxc)", "def y0Fi(YKHO):\n return Acvy(YKHO._contents)", "def Q0Ir(**B2fa):\n return tuKI.c...
[ "0.8274378", "0.822726", "0.82103723", "0.8181055", "0.81213814", "0.80663043", "0.8048921", "0.80239475", "0.79942596", "0.7919984", "0.7893496", "0.7889123", "0.78890574", "0.78025526", "0.77409345", "0.77409345", "0.77409345", "0.77369994", "0.7705298", "0.7677608", "0.763...
0.0
-1
Parse the given XML and use the document element to create a Python instance. xml_text An XML document. This should be data (Python 2 str or Python 3 bytes), or a text (Python 2 unicode or Python 3 str) in the L{pyxb._InputEncoding} encoding. default_namespace The L{pyxb.Namespace} instance to use as the default namesp...
def KA8b(k1P2, UyKZ=None, ePoz=None): if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle: Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2) return E91p(Mf7r.documentElement, default_namespace=UyKZ) if UyKZ is None: UyKZ = jFQi.fallbackNamespace() IjKD = Aw3s.binding.saxer.make_parser(fallback_names...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KA8b(k1P2, UyKZ=None, ePoz=None):\n if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle:\n Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2)\n return E91p(Mf7r.documentElement, default_namespace=UyKZ)\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n IjKD = Aw3s.binding.saxer.make_parser(fal...
[ "0.740718", "0.73812515", "0.73812515", "0.73812515", "0.73812515", "0.73812515", "0.73732084", "0.73732084", "0.73732084", "0.73732084", "0.73732084", "0.73732084", "0.73732084", "0.73732084", "0.73732084", "0.73732084", "0.73732084", "0.73336726", "0.6960374", "0.6372002", ...
0.73204666
19
get the job id
def q3vm(YKHO): return YKHO.job_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')", "def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')", "def aJ_O(YKHO):\n return YKHO.__dr.getJobID()", "def aJ_O(YKHO):\n return getattr(YKHO.data, 'jobID', None)", "def aJ_O(YKHO):\n return YKHO.__jobID", "def aJ_O(YKHO):\n ...
[ "0.89310014", "0.89310014", "0.86705697", "0.864541", "0.8618704", "0.8618704", "0.8614076", "0.8614076", "0.8614076", "0.8614076", "0.8614076", "0.8614076", "0.8614076", "0.8569074", "0.853087", "0.8349892", "0.82790565", "0.8235869", "0.8102336", "0.8018831", "0.80060756", ...
0.8964654
0
Transform local vehicle info to pixel info, with ego placed at lower center of image. Here the ego local coordinate is lefthanded, the pixel coordinate is also lefthanded, with its origin at the left bottom.
def Ws2Q(dhze, ZRUH, G5LP, N0ky): WKvO, LVAh, xTkQ, vC9B, yzQ0 = dhze UL1z = (WKvO + ZRUH) / G5LP * N0ky GNzn = LVAh / G5LP * N0ky + N0ky / 2 RJhj = xTkQ DjAq = vC9B / G5LP * N0ky SFOt = yzQ0 / G5LP * N0ky y5c6 = (UL1z, GNzn, RJhj, DjAq, SFOt) return y5c6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ar4N(YKHO, DvsY, epBp=0.0):\n P6bq, Ty9i = DvsY\n assert epBp == 0.0\n jzdc = YKHO.h1 * P6bq + YKHO.h2 * Ty9i + YKHO.h3\n Fg_i = YKHO.h4 * P6bq + YKHO.h5 * Ty9i + YKHO.h6\n Z9rn = YKHO.h7 * P6bq + YKHO.h8 * Ty9i + YKHO.h9\n return (jzdc / Z9rn, Fg_i / Z9rn, 0.0)", "def GTYT(rb7a, _QFc):\n ...
[ "0.64336836", "0.63822114", "0.63493073", "0.5984647", "0.5982159", "0.5982159", "0.59666777", "0.593239", "0.5928079", "0.58428353", "0.5809634", "0.5786214", "0.57839894", "0.56861025", "0.56512386", "0.5604856", "0.55593646", "0.5537596", "0.5529202", "0.55099404", "0.5485...
0.56544554
14
returns a list containing all columns name in the query or
def ZLJ_(yRPt): XP5J = yRPt[4].value if XP5J.count('*'): return '*' else: return ZbWC.findall("[\\w.']+", XP5J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZLJ_(YKHO):\n Aofo = YKHO.query.result()\n return [Jyyj.name for Jyyj in Aofo.schema]", "def ToWh(YKHO):\n if YKHO._query is not None:\n return jth9.copy(YKHO._query.colnames)", "def ZLJ_(YKHO):\n return YKHO.query.columns", "def WfCS(YKHO):\n yv6U = []\n iZr3 = 'SELECT column_na...
[ "0.8427799", "0.83518904", "0.8094362", "0.80463904", "0.79512155", "0.78208023", "0.7772976", "0.77246845", "0.7662968", "0.7646509", "0.764078", "0.7636928", "0.7621614", "0.76090807", "0.7577773", "0.7564703", "0.7556748", "0.7534019", "0.7527877", "0.75208557", "0.7520138...
0.0
-1
Perform LIST request and generate response.
def list(YKHO, c3_R, P1Wh=1000, _mYG=None, dd3z=None): if c3_R is None: RdPg.error('Index Id is required.') return (False, None) RdPg.info('Processing request in IndexAPI') yoae = '/indexes/' + uRlK.parse.quote(c3_R, safe='') o2VW = '' PdmG = {} PdmG['max-keys'] = P1Wh if _mY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def list(YKHO) -> dict:\n return await YKHO.vapix.request('post', SyQi)", "def list(YKHO):\n return YKHO._get_response_body(['list'])", "def Nyyo(YKHO):\n geh0 = YKHO.authed_get('{}-list'.format(XBe4))\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def P74o(YKHO, QePW, **B2fa):\n...
[ "0.71747094", "0.711241", "0.7035807", "0.70001286", "0.69823533", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", "0.6960003", ...
0.0
-1
calculate the amount of infrastructure per defined area
def BYK7(f0tD, lbna, rAod): BNEm, wNlR, LtOv, lxvU = rHX_(rAod, base_calculation=True) Zuih = y8mP(BNEm) KkHn = ir6A(lbna) Itki = {uOe2: rLdf.DataFrame() for uOe2 in KkHn} print('Time to import the fetched data files and put it in a dictionairy for base calculations for area: {}'.format(f0tD)) f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aw0V(YKHO):\n pass", "def f0tD(YKHO):\n return oyIN.sum(YKHO.areas)", "def P7XM(YKHO):\n return sum(list(map(lambda XP5J: XP5J.area_size, YKHO.premises.filter(T8ck(is_leasable=True) & T8ck(is_occupied=True)))))", "def vn7_(EbWA):\n pass", "def Egj0(YKHO):\n return YKHO.class_area.sum()",...
[ "0.70060915", "0.6934112", "0.68314993", "0.67145634", "0.6620001", "0.6522419", "0.65019256", "0.64940786", "0.6420576", "0.63926804", "0.63926804", "0.63926804", "0.6325999", "0.6325999", "0.6325999", "0.6307087", "0.6295857", "0.62932336", "0.6291074", "0.6291074", "0.6280...
0.0
-1
Return gpu(i) if exists, otherwise return cpu().
def ILtj(YRbF=0): if ht2j.cuda.device_count() >= YRbF + 1: return ht2j.device(f'cuda:{YRbF}') return ht2j.device('cpu')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VeaS(YRbF: int=0):\n if ht2j.cuda.is_available() and YRbF is not None:\n YfpN = list(range(ht2j.cuda.device_count()))\n iOKy = YfpN[YRbF]\n ht2j.cuda.set_device(iOKy)\n Csk6 = ht2j.device(f'cuda:{iOKy}')\n else:\n Csk6 = ht2j.device('cpu')\n return Csk6", "def htdq...
[ "0.6996068", "0.6860963", "0.67274725", "0.6726211", "0.66248924", "0.6618056", "0.65555316", "0.65496796", "0.6545737", "0.65297234", "0.6495042", "0.6495042", "0.6495042", "0.64912754", "0.64809376", "0.6457954", "0.6438594", "0.6433487", "0.64014125", "0.63197255", "0.6288...
0.7851047
0
Decorator that caches the return value for each call to f(args). Then when called again with same args, we can just look it up.
def i_PE(eHNT): wyyA = {} def ECmi(*qIxc): try: return wyyA[qIxc] except KeyError: wyyA[qIxc] = Aofo = eHNT(*qIxc) return Aofo except TypeError: return eHNT(qIxc) return ECmi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxxd(eHNT):\n wyyA = {}\n\n def KmAm(*qIxc):\n if qIxc in wyyA:\n return wyyA[qIxc]\n Aofo = eHNT(*qIxc)\n wyyA[qIxc] = Aofo\n return Aofo\n return KmAm", "def rxxd(eHNT, wyyA={}):\n\n def Oa1e(*qIxc, **B2fa):\n H5ew = (eHNT, tuple(qIxc), frozenset(B2...
[ "0.819423", "0.8017124", "0.8000191", "0.7857092", "0.7834044", "0.7801336", "0.78007543", "0.77882147", "0.7781652", "0.7747478", "0.77082586", "0.76759166", "0.766435", "0.76585215", "0.7617397", "0.76126665", "0.76126665", "0.7560012", "0.7493605", "0.74881124", "0.7449170...
0.77713144
9
(Dot) Returns the dot on this cell
def BoO6(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BoO6(YKHO):\n return YKHO.Dot", "def BoO6(YKHO):\n return YKHO._dot", "def BoO6(YKHO):\n return None", "def zhFN(YKHO):\n return YKHO._dot_value", "def BJ1H(YKHO) -> str:\n return YKHO.value", "def MMgw(YKHO):\n return YKHO.dots", "def BoO6(YKHO):\n return 'digraph G{\\n%s}' % ...
[ "0.8385384", "0.79403985", "0.7809915", "0.74510163", "0.73463136", "0.7246078", "0.70959693", "0.7059766", "0.7053174", "0.70258707", "0.6876929", "0.68385524", "0.67934656", "0.6702819", "0.6643134", "0.66395664", "0.6548", "0.6541732", "0.65169156", "0.6491929", "0.6479612...
0.7742713
3
(Dot) Returns the dot on this cell
def BoO6(YKHO): return YKHO._dot
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BoO6(YKHO):\n return YKHO.Dot", "def BoO6(YKHO):\n return None", "def BoO6(YKHO):\n raise NotImplementedError()", "def zhFN(YKHO):\n return YKHO._dot_value", "def BJ1H(YKHO) -> str:\n return YKHO.value", "def MMgw(YKHO):\n return YKHO.dots", "def BoO6(YKHO):\n return 'digraph G...
[ "0.83852583", "0.7809352", "0.7741943", "0.74503636", "0.7345783", "0.7245755", "0.7095605", "0.7060148", "0.70532393", "0.70256346", "0.6877428", "0.68387747", "0.6792816", "0.67024773", "0.664274", "0.6639521", "0.6548012", "0.65424496", "0.6517455", "0.64912933", "0.647888...
0.7940226
1
Sets the dot of this cell to 'dot'
def qk4K(YKHO, BJ1H): YKHO._dot = BJ1H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RcZb(YKHO, BWXx):\n YKHO.__dot = BWXx", "def qk4K(YKHO, Z6gX: int):\n YKHO.Dot = Z6gX", "def zhFN(YKHO, BWXx):\n YKHO._dot_value = BWXx", "def Cf12(YKHO, BJ1H):\n YKHO.partners_dot_values.append(BJ1H)", "def BoO6(YKHO):\n return YKHO.Dot", "def EdHi(YKHO, BWXx):\n YKHO._dotsonly = B...
[ "0.86567605", "0.8111071", "0.7456128", "0.7060954", "0.6841041", "0.6772609", "0.6691414", "0.6440228", "0.6404093", "0.62749296", "0.6208609", "0.6208609", "0.6208609", "0.6208609", "0.6208609", "0.6208609", "0.6208609", "0.6208609", "0.6208609", "0.6208609", "0.6208609", ...
0.86590266
0
(Dot) Returns None, since no dot exists on this cell
def BoO6(YKHO): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BoO6(YKHO):\n return YKHO.Dot", "def BoO6(YKHO):\n raise NotImplementedError()", "def BoO6(YKHO):\n return YKHO._dot", "def zhFN(YKHO):\n return YKHO._dot_value", "def zWxR(YKHO, WKvO, LVAh):\n hcXw = '.'\n for ROpF in YKHO.elements:\n if ROpF.covering_pixel(WKvO, LVAh):\n ...
[ "0.6971171", "0.66717225", "0.664976", "0.6228115", "0.6199294", "0.61673224", "0.61545295", "0.61531025", "0.61291975", "0.6126454", "0.60981244", "0.6078155", "0.60593", "0.6050186", "0.60308367", "0.6003476", "0.60023504", "0.59870464", "0.5973187", "0.5929041", "0.581067"...
0.7385637
0
Returns human readable string of this cell
def zAg0(YKHO): return YKHO.__class__.__name__ + '()'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'Cell {},{}'.format(YKHO.row, YKHO.col)", "def zAg0(YKHO):\n return str(YKHO.cells)", "def zAg0(YKHO):\n KCHu = ''\n for rdlD in YKHO.cells:\n KCHu += '|'\n for eL5z in rdlD:\n fndD = '%%%dd|' % round(epAf.log(b74H, 10) + 0.5)\n KCHu += f...
[ "0.8182249", "0.7877349", "0.77499455", "0.77242064", "0.7706723", "0.76722264", "0.76269466", "0.7623986", "0.76121676", "0.7574858", "0.7558555", "0.754977", "0.7523797", "0.75117683", "0.75117683", "0.7440445", "0.7431686", "0.73996526", "0.7374057", "0.7346107", "0.733637...
0.0
-1
Testing the GET reviewrequests//diffs//files//diffcomments/ API as an anonymous user
def VvH8(YKHO): SREp = 'Sample comment.' lnN1 = YKHO.create_review_request(create_repository=True, publish=True) OIkQ = YKHO.create_diffset(lnN1) A5j5 = YKHO.create_filediff(OIkQ) Slbv = YKHO.create_review(lnN1, publish=True) aM_I = YKHO.create_diff_comment(Slbv, A5j5, text=SREp) YKHO.client...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wu8t(YKHO):\n SREp = 'Sample comment.'\n lnN1 = RDXT.objects.public()[0]\n OIkQ = lnN1.diffset_history.diffsets.latest()\n A5j5 = OIkQ.files.all()[0]\n uDyx = YKHO.apiPost(HqYi.get_list_url(lnN1), expected_mimetype=HqYi.item_mimetype)\n YKHO.assertEqual(uDyx['stat'], 'ok')\n YKHO.assertTru...
[ "0.7892015", "0.73359025", "0.7033416", "0.682644", "0.6736014", "0.6711246", "0.6622976", "0.6599656", "0.65532416", "0.64487594", "0.644095", "0.6426928", "0.64196044", "0.6415313", "0.6365286", "0.6358784", "0.6346611", "0.63147646", "0.62977576", "0.6260262", "0.6227882",...
0.80952424
0
Testing the GET reviewrequests//diffs//files//diffcomments/ API with ?line=
def Dh8B(YKHO): SREp = 'Sample comment.' JV7H = 10 lnN1 = YKHO.create_review_request(create_repository=True, publish=True) OIkQ = YKHO.create_diffset(lnN1) A5j5 = YKHO.create_filediff(OIkQ) Slbv = YKHO.create_review(lnN1, publish=True) YKHO.create_diff_comment(Slbv, A5j5, text=SREp, first_li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gVG5(YKHO):\n SREp = 'Sample comment.'\n JV7H = 10\n lnN1 = RDXT.objects.public()[0]\n OIkQ = lnN1.diffset_history.diffsets.latest()\n A5j5 = OIkQ.files.all()[0]\n uDyx = YKHO.apiPost(HqYi.get_list_url(lnN1), expected_mimetype=HqYi.item_mimetype)\n YKHO.assertEqual(uDyx['stat'], 'ok')\n ...
[ "0.8343616", "0.7237085", "0.7202986", "0.7150979", "0.69698673", "0.6899609", "0.68016946", "0.6796778", "0.6740746", "0.6702189", "0.6648844", "0.66377354", "0.6637422", "0.6574968", "0.6571636", "0.65463597", "0.65368646", "0.6250001", "0.62480295", "0.6206966", "0.6198987...
0.8390111
0
Return a numpy array of the result date dictionaries.
def YdD0(YKHO): try: return oyIN.array([Csk6 for YRbF in YKHO.entries for Csk6 in YRbF['dates']]) except: print('No results found. Try running a query first.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Tub(YKHO):\n RGYk = y8cn.BASE_URI\n RGYk += '/response/datetime'\n x6TT = {'array': True}\n vgAy = fPb2.clean_url(RGYk)\n kkzV = {'user-agent': 'Stamplay SDK', 'accept': 'application/json'}\n z1oz = YKHO.http_client.get(vgAy, headers=kkzV, query_parameters=x6TT)\n if YKHO.http_call_back !...
[ "0.63536566", "0.63050795", "0.6281783", "0.62467486", "0.6154611", "0.6149008", "0.6129168", "0.6049578", "0.59834224", "0.5964188", "0.5960082", "0.59286314", "0.5911215", "0.5848945", "0.58331394", "0.5817924", "0.5816111", "0.58101374", "0.57901824", "0.576866", "0.576866...
0.75760275
0
unformat datetime to string
def pbww(SRYB): _c1T = None if SRYB: try: _c1T = qcWV.datetime.strftime(SRYB, DAsM) except: pass return _c1T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ew8P(JRYC):\n qRbS = JRYC.replace(microsecond=0)\n return qRbS.isoformat().replace(':', '-')", "def Ff_b(ppPa):\n return str(ppPa).split('.')[0].replace(':', '-')", "def ab7L(Ty9i):\n if isinstance(Ty9i, qcWV):\n return Ty9i.strftime('%Y-%m-%dT%H:%M:%S')\n return Ty9i", "def X0tj(JR...
[ "0.7411533", "0.72729856", "0.71670675", "0.7147708", "0.70945674", "0.70346373", "0.70194143", "0.70146", "0.6993576", "0.6956658", "0.6938366", "0.68849665", "0.6862793", "0.6833102", "0.6828007", "0.68174446", "0.6811986", "0.68017167", "0.67830724", "0.6750083", "0.674057...
0.0
-1
Tests whether simple upsert works correctly when the conflicting field is a foreign key specified as an object.
def zfal(): _AJk = SY8m({}) C3ST = SY8m({'other': FYrf.OneToOneField(_AJk, on_delete=FYrf.CASCADE), 'data': FYrf.CharField(max_length=255)}) REbe = _AJk.objects.create() BzZr = C3ST.objects.on_conflict(['other'], Q60Q.UPDATE).insert_and_get(other=REbe, data='some data') assert BzZr.other == REbe ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CAy3():\n _AJk = SY8m({})\n C3ST = SY8m({'other': FYrf.OneToOneField(_AJk, on_delete=FYrf.CASCADE), 'data': FYrf.CharField(max_length=255)})\n REbe = _AJk.objects.create()\n BzZr = C3ST.objects.on_conflict(['other_id'], Q60Q.UPDATE).insert_and_get(other_id=REbe.pk, data='some data')\n assert BzZ...
[ "0.7353878", "0.6593945", "0.6447733", "0.6439227", "0.64305514", "0.6347961", "0.6202161", "0.61481005", "0.6120602", "0.60647786", "0.60465693", "0.6024689", "0.5996863", "0.59878546", "0.59430104", "0.59391546", "0.5924596", "0.5887248", "0.58814913", "0.58729905", "0.5862...
0.7526256
0
Tests whether simple upsert works correctly when the conflicting field is a foreign key specified as an id.
def CAy3(): _AJk = SY8m({}) C3ST = SY8m({'other': FYrf.OneToOneField(_AJk, on_delete=FYrf.CASCADE), 'data': FYrf.CharField(max_length=255)}) REbe = _AJk.objects.create() BzZr = C3ST.objects.on_conflict(['other_id'], Q60Q.UPDATE).insert_and_get(other_id=REbe.pk, data='some data') assert BzZr.other ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zfal():\n _AJk = SY8m({})\n C3ST = SY8m({'other': FYrf.OneToOneField(_AJk, on_delete=FYrf.CASCADE), 'data': FYrf.CharField(max_length=255)})\n REbe = _AJk.objects.create()\n BzZr = C3ST.objects.on_conflict(['other'], Q60Q.UPDATE).insert_and_get(other=REbe, data='some data')\n assert BzZr.other =...
[ "0.72714186", "0.6790072", "0.6742663", "0.6618973", "0.64542925", "0.6398769", "0.6308508", "0.6256964", "0.62142956", "0.612559", "0.6119673", "0.60539126", "0.60366297", "0.60069036", "0.5974323", "0.5962936", "0.5962122", "0.5960493", "0.59213495", "0.59158194", "0.590484...
0.7568007
0
This function is for viewing the plot of your cost history. You can run it by uncommenting this plot_cost_history(alpha, cost_history) call in predictions. If you want to run this locally, you should print the return value from this function.
def nPVy(Cwt5, CCS1): ybb8 = CwDs.DataFrame({'Cost_History': CCS1, 'Iteration': range(len(CCS1))}) return aqjz(ybb8, G3IS('Iteration', 'Cost_History')) + IbhU() + jkPz('Cost History for alpha = %.3f' % Cwt5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KRcs(CCS1):\n QcNK.plot(CCS1)\n QcNK.xlabel('Iteration')\n QcNK.ylabel('J_Theta')\n QcNK.title('Cost function using Gradient Descent')\n pass", "def WByD(FLXQ):\n print()\n print(' **************** ')\n print(' *** Loss *** ')\n print(' **************** ')\n N77f = FLXQ.hist...
[ "0.76599145", "0.7093302", "0.692395", "0.69042665", "0.6799891", "0.67865515", "0.6772567", "0.6753761", "0.6734191", "0.6690651", "0.6678397", "0.6614296", "0.66096836", "0.6575692", "0.65597963", "0.65572596", "0.65479445", "0.6546003", "0.64733756", "0.6469424", "0.642957...
0.81524646
1
Get the form action url that depends to the chosen environment
def yeHF(YKHO): YKHO.ensure_one() if YKHO.environment == 'prod': return YKHO.paybox_form_action_url else: return YKHO.paybox_form_action_url_test
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gxlP(YKHO):\n NKRf = YKHO.env['ir.config_parameter'].sudo().get_param('web.base.url')\n return YKHO.checkout_url + \"?url='%s'\" % KVWQ.urljoin(NKRf)", "def w3q_(YKHO):\n return YKHO._get_bambora_urls(YKHO.environment)['bambora_form_url']", "def vyOL(YKHO):\n pass", "def M164(YKHO, KAOR):\n ...
[ "0.79226804", "0.72646815", "0.69474834", "0.65365744", "0.6502626", "0.63103056", "0.6260445", "0.62054753", "0.61475575", "0.60703003", "0.6016915", "0.59639317", "0.5963877", "0.5955919", "0.5935578", "0.5926109", "0.5926109", "0.5916987", "0.5906977", "0.5896251", "0.5879...
0.83269334
0
Get the authentication key that depends to the chosen environment
def kSCg(YKHO): YKHO.ensure_one() if YKHO.environment == 'prod': return YKHO.paybox_authentication_key else: return YKHO.paybox_test_authentication_key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sBrm(YKHO) -> str:\n if 'GRAPHISTRY_API_KEY' in Hy7s.environ:\n return Hy7s.environ['GRAPHISTRY_API_KEY']\n else:\n return PSrQ.get('graphistry', 'api_key')", "def Jpbe():\n return Hy7s.environ.get('BEARER_TOKEN')", "def rLF4(IH1p=M7QX):\n return Hy7s.environ[IH1p]", "def Vu5X()...
[ "0.7210774", "0.7167182", "0.7147934", "0.71139234", "0.69741267", "0.69741267", "0.6905668", "0.6859259", "0.68350685", "0.68086344", "0.67612416", "0.67612416", "0.67612416", "0.67612416", "0.6744243", "0.6738912", "0.67239976", "0.67178714", "0.6716381", "0.6714681", "0.67...
0.80547595
0
Return the answer to part one of this day Expectation is that the answer is in the correct format
def sg7z(m6Me): return sum(Aou6(m6Me, 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANfV(YKHO) -> str:\n return qe4Y.get(YKHO, 'answer')", "def UNg2():\n return '\\nCorrect!'", "def mFfZ(bAls):\n BUm8, oPhP, cHnl = bAls\n return str(dwAN(BUm8, oPhP, cHnl))", "def snEu():\n ANfV = 6310\n Aofo = Z4tP.day06(input=Hy7s.path.join(I7OS, 'input', 'day06.txt'), output=Hy7s.pat...
[ "0.6476308", "0.6425289", "0.6394254", "0.63789845", "0.62983", "0.6233664", "0.6115625", "0.6112744", "0.60727525", "0.6028592", "0.599963", "0.5974815", "0.58884174", "0.5876488", "0.58555967", "0.5708775", "0.57059115", "0.5696779", "0.5668067", "0.5663049", "0.56382823", ...
0.0
-1
Initialize the driver session, this function is called everytime a new instance of the driver is created
def uIcm(YKHO, QpfX): YKHO.ip_maps_server = '192.168.186.141' YKHO.tcp_port_maps_server = 10024 YKHO.cas_client = EAGT.CasClient(YKHO.ip_maps_server, YKHO.tcp_port_maps_server) YKHO.cas_timeout = 20000 YKHO.line2num = '3035471340' YKHO.connected = False YKHO.result = 'None' YKHO.get_cs_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7xb(YKHO):\n pass", "def P7xb(YKHO):\n pass", "def FIMM(YKHO):\n YKHO.__driver = YKHO.__get_driver()", "def FIMM(YKHO):\n YKHO.driver = AajZ.driver", "def apcj(YKHO):\n YKHO._client = YKHO.driver.connection", "def FIMM(YKHO, E_qD):\n print(f'#~~~~{YKHO.__class__.__name__} init')\n ...
[ "0.7733996", "0.7733996", "0.7541938", "0.7419839", "0.7405092", "0.7319936", "0.722319", "0.71054256", "0.705111", "0.705111", "0.705111", "0.705111", "0.705111", "0.697097", "0.6970392", "0.6970392", "0.68736315", "0.682864", "0.6818134", "0.68133855", "0.67922", "0.67898...
0.0
-1
Returns a bool specifying if the process is currently active.
def ksfB(YKHO): return YKHO.state == YKHO.STATE_ACTIVE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO):\n NRWD = O0k5.Process(YKHO.process.pid)\n if NRWD.status() == O0k5.STATUS_ZOMBIE:\n return False\n return True", "def ksfB(YKHO) -> bool:\n if not YKHO._rpc:\n return False\n if type(YKHO._rpc) is O0k5.Popen:\n YKHO._rpc.poll()\n return YKHO._rpc.is_running(...
[ "0.816696", "0.80842996", "0.80692345", "0.79445785", "0.7913682", "0.7913682", "0.7884162", "0.7880628", "0.7874903", "0.78012043", "0.77661735", "0.77661735", "0.77661735", "0.77661735", "0.77593833", "0.7718256", "0.7718256", "0.77141106", "0.77141106", "0.77141106", "0.77...
0.75218004
42
Return the string description of our running state.
def bo2O(YKHO): return YKHO.STATES[YKHO.state]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PEq7(YKHO):\n if YKHO.running:\n return 'RUNNING'\n return 'STOPPED'", "def YkRJ(YKHO):\n return YKHO.engine.get_desc()", "def ja6o(YKHO):\n return '%s-%s' % (YKHO._data['lifecycle_state'], YKHO._att_data['lifecycle_state'])", "def wHJl(YKHO):\n return str(YKHO.state)", "def wHJl(...
[ "0.8030703", "0.7872908", "0.7458232", "0.743292", "0.73831916", "0.7284336", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0.725348", "0...
0.79487133
1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z, OFnF, ZR0n, xmOx): dBfS = OerS[OFnF][0] LPP1 = xoS0[ZR0n] EcKZ = DOKt[xmOx] uWQg = '\n | \n | Time stats for {}: [{}] [{}]\n |'.format(dBfS, LPP1, EcKZ) Gj5I = '' Tcf_ = '' if ZR0n == 0: sve5 = xoS0[jQ3Z['Month'].mode()[0]] Tcf_ = '\n | >> Most popular month: '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.8001252", "0.79222965", "0.78933024", "0.78628844", "0.78607917", "0.7840687", "0.78012836", "0.7786372", "0.7736968", "0.7724636", "0.7715267", "0.7709949", "0.77061343", "0.7703284", "0.76915216", "0.768726", "0.7681907", "0.7680392", "0.7673678", "0.76631093", "0.766182...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z, OFnF, ZR0n, xmOx): dBfS = OerS[OFnF][0] LPP1 = xoS0[ZR0n] EcKZ = DOKt[xmOx] uWQg = '\n | \n | Station stats for {}: [{}] [{}]\n |'.format(dBfS, LPP1, EcKZ) _8rG = jQ3Z['Start Station'].mode()[0] MWxL = '\n | >> Most popular start station: ' + _8rG oFx8 = jQ3Z['End Station'].mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.7349932
37
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z, OFnF, ZR0n, xmOx): dBfS = OerS[OFnF][0] LPP1 = xoS0[ZR0n] EcKZ = DOKt[xmOx] uWQg = '\n | \n | Trip duration stats for {}: [{}] [{}]\n |'.format(dBfS, LPP1, EcKZ) lLPx = int(jQ3Z['Trip Duration'].sum()) kvZi = '\n | >> Total travel time (days, h:mm:ss): ' + str(qcWV.timedelta(secon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Tests admin can post message to merchant
def RR_g(YKHO): geh0 = YKHO.client.post(gxEw('login'), {'username': YKHO.admin.username, 'password': 'password1'}) YKHO.assertEqual(geh0.status_code, 302) YKHO.msg_stub['recipient'] = YKHO.merchant.username geh0 = YKHO.client.post(gxEw('messages'), YKHO.msg_stub) TNSt = LuKW.objects.latest('sent_at'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aGH9(YKHO):\n geh0 = YKHO.client.post(gxEw('login'), {'username': YKHO.merchant.username, 'password': 'password2'})\n YKHO.assertEqual(geh0.status_code, 302)\n YKHO.msg_stub['recipient'] = YKHO.admin.username\n geh0 = YKHO.client.post(gxEw('messages'), YKHO.msg_stub, follow=True)\n TNSt = LuKW.o...
[ "0.8364225", "0.75688165", "0.7396239", "0.73445004", "0.71720684", "0.71271175", "0.7123423", "0.7076265", "0.7075672", "0.70378417", "0.6985315", "0.6957198", "0.69395965", "0.691992", "0.69093454", "0.69019204", "0.68401194", "0.6817241", "0.67572415", "0.67353487", "0.673...
0.8442364
0
Tests admin can read message from merchant
def _2GN(YKHO): geh0 = YKHO.client.post(gxEw('login'), {'username': YKHO.merchant.username, 'password': 'password2'}) YKHO.assertRedirects(geh0, gxEw('homepage'), status_code=302) YKHO.msg_stub['recipient'] = YKHO.admin.username geh0 = YKHO.client.post(gxEw('messages'), YKHO.msg_stub) TNSt = LuKW.ob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FvQ_(YKHO):\n geh0 = YKHO.client.post(gxEw('login'), {'username': YKHO.admin.username, 'password': 'password1'})\n YKHO.assertRedirects(geh0, gxEw('homepage'), status_code=302)\n YKHO.msg_stub['recipient'] = YKHO.merchant.username\n geh0 = YKHO.client.post(gxEw('messages'), YKHO.msg_stub)\n y4Ut...
[ "0.85129625", "0.70570004", "0.7017926", "0.698214", "0.6958981", "0.6958981", "0.6855478", "0.65363765", "0.649418", "0.64806366", "0.6416393", "0.6371199", "0.63206047", "0.62924147", "0.62924147", "0.6273726", "0.6227917", "0.6227917", "0.62011516", "0.61959714", "0.618028...
0.851221
1
Tests merchant can post message to admin
def aGH9(YKHO): geh0 = YKHO.client.post(gxEw('login'), {'username': YKHO.merchant.username, 'password': 'password2'}) YKHO.assertEqual(geh0.status_code, 302) YKHO.msg_stub['recipient'] = YKHO.admin.username geh0 = YKHO.client.post(gxEw('messages'), YKHO.msg_stub, follow=True) TNSt = LuKW.objects.lat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RR_g(YKHO):\n geh0 = YKHO.client.post(gxEw('login'), {'username': YKHO.admin.username, 'password': 'password1'})\n YKHO.assertEqual(geh0.status_code, 302)\n YKHO.msg_stub['recipient'] = YKHO.merchant.username\n geh0 = YKHO.client.post(gxEw('messages'), YKHO.msg_stub)\n TNSt = LuKW.objects.latest...
[ "0.84122103", "0.75479615", "0.74948174", "0.74471927", "0.7385827", "0.73638207", "0.7351097", "0.73126936", "0.7204452", "0.71793765", "0.70382303", "0.69828814", "0.69828814", "0.69828814", "0.69828814", "0.69828814", "0.69828814", "0.69472265", "0.6879473", "0.6879473", "...
0.8372936
1
Tests merchant can read message from admin
def FvQ_(YKHO): geh0 = YKHO.client.post(gxEw('login'), {'username': YKHO.admin.username, 'password': 'password1'}) YKHO.assertRedirects(geh0, gxEw('homepage'), status_code=302) YKHO.msg_stub['recipient'] = YKHO.merchant.username geh0 = YKHO.client.post(gxEw('messages'), YKHO.msg_stub) y4Ut = LuKW.ob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _2GN(YKHO):\n geh0 = YKHO.client.post(gxEw('login'), {'username': YKHO.merchant.username, 'password': 'password2'})\n YKHO.assertRedirects(geh0, gxEw('homepage'), status_code=302)\n YKHO.msg_stub['recipient'] = YKHO.admin.username\n geh0 = YKHO.client.post(gxEw('messages'), YKHO.msg_stub)\n TNSt...
[ "0.8426708", "0.7031314", "0.69714653", "0.691373", "0.68451554", "0.68451554", "0.68349624", "0.6448358", "0.642012", "0.63627094", "0.63354194", "0.63256395", "0.63242906", "0.63069105", "0.6287899", "0.6258109", "0.62508", "0.62331325", "0.62076133", "0.6170462", "0.616732...
0.8453814
0
Swap the items at position i and j, and their keys, and update bucket
def icNh(YKHO, YRbF, r845): YKHO.value[YRbF], YKHO.value[r845] = (YKHO.value[r845], YKHO.value[YRbF]) YKHO.keys[YRbF], YKHO.keys[r845] = (YKHO.keys[r845], YKHO.keys[YRbF]) YKHO.bucket[YKHO.value[YRbF]] = YRbF YKHO.bucket[YKHO.value[r845]] = r845
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zh_p(YKHO, YRbF: int, r845: int) -> None:\n YKHO.pos_map[YKHO.arr[YRbF][0]], YKHO.pos_map[YKHO.arr[r845][0]] = (YKHO.pos_map[YKHO.arr[r845][0]], YKHO.pos_map[YKHO.arr[YRbF][0]])\n YKHO.arr[YRbF], YKHO.arr[r845] = (YKHO.arr[r845], YKHO.arr[YRbF])", "def b3SJ(YKHO, YRbF, r845):\n YKHO.index_table.get(...
[ "0.7422593", "0.71660244", "0.68491167", "0.68007654", "0.6750341", "0.67015827", "0.66836596", "0.6667826", "0.66248024", "0.66248024", "0.65346384", "0.64124554", "0.6406821", "0.6401965", "0.63187504", "0.63059574", "0.6247997", "0.6247997", "0.61082613", "0.60643286", "0....
0.8085947
0
Test that json marshaler use custom marshaler to marshal a field. 1. Create a subclass of JSONMarshaler with redefined create_field_marshaler factory. 2. Create json marshaler from the subclass. 3. Marshal a field. 4. Check that custom marshaler is used to marshal a field.
def YgBA(): class _CustomFieldMarshaler(OXZy): dpML = fr9X('Custom marshaled field') jVu0 = v5OR().marshal_field(wsY0(name='field')) assert jVu0 == 'Custom marshaled field', 'Wrong field data'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fd6Y(Ehsq):\n Ehsq.setattr(WE15, 'marshal', lambda YKHO: 'Marshaled field')\n jVu0 = OXZy().marshal_field(wsY0(name='field'))\n assert jVu0 == 'Marshaled field', 'Wrong field data'", "def iseZ():\n\n class _CustomEntityMarshaler(OXZy):\n h9mm = fr9X('Custom marshaled entity')\n udsx = p...
[ "0.7965865", "0.6930045", "0.6547306", "0.643454", "0.6372473", "0.6241121", "0.61476403", "0.6143904", "0.6102062", "0.60947686", "0.60939896", "0.6086085", "0.6078155", "0.5986672", "0.598558", "0.59728837", "0.59396416", "0.59203815", "0.58997786", "0.5897217", "0.58719534...
0.8892414
0
Test that json marshaler use custom marshaler to marshal an entity. 1. Create a subclass of JSONMarshaler with redefined create_entity_marshaler factory. 2. Create json marshaler from the subclass. 3. Marshal an entity. 4. Check that custom marshaler is used to marshal an entity.
def iseZ(): class _CustomEntityMarshaler(OXZy): h9mm = fr9X('Custom marshaled entity') udsx = pN6D().marshal_entity(entity=ahCL()) assert udsx == 'Custom marshaled entity', 'Wrong entity data'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzDn(Ehsq):\n Ehsq.setattr(VIU8, 'marshal', lambda YKHO: 'Marshaled entity')\n udsx = OXZy().marshal_entity(entity=ahCL())\n assert udsx == 'Marshaled entity', 'Wrong entity data'", "def YgBA():\n\n class _CustomFieldMarshaler(OXZy):\n dpML = fr9X('Custom marshaled field')\n jVu0 = v5OR...
[ "0.74899304", "0.7404321", "0.68721807", "0.660895", "0.64839727", "0.6420533", "0.6385974", "0.6090654", "0.60090506", "0.59808266", "0.5917872", "0.5836135", "0.58342034", "0.57909757", "0.5661598", "0.5647307", "0.5546914", "0.5493251", "0.543229", "0.5405131", "0.5381173"...
0.8781773
0
Test that error is propagated from entity marshaler to json marshaler. 1. Create json marshaler. 2. Try to marshal invalid entity. 3. Check that error is raised. 4. Check that error is the same as one that entity marshaler raises.
def Srm_(): sn3x = None w89m = OXZy() with trZe.raises(ValueError) as W5dc: w89m.marshal_entity(sn3x) with trZe.raises(ValueError) as Drto: w89m.create_entity_marshaler(sn3x).marshal() assert W5dc.value.args[0] == Drto.value.args[0], 'Wrong error is raised'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ahZm():\n mCuU = None\n w89m = OXZy()\n with trZe.raises(ValueError) as W5dc:\n w89m.marshal_action(mCuU)\n with trZe.raises(ValueError) as Drto:\n w89m.create_action_marshaler(mCuU).marshal()\n assert W5dc.value.args[0] == Drto.value.args[0], 'Wrong error is raised'", "def XiDZ(...
[ "0.7325612", "0.73065007", "0.72691625", "0.6960502", "0.68513525", "0.67652595", "0.67522466", "0.6646655", "0.6531105", "0.6507151", "0.6402134", "0.6393095", "0.62946427", "0.62823784", "0.62797", "0.6265344", "0.6245764", "0.6238149", "0.6201112", "0.6192699", "0.6191863"...
0.83935505
0
Diagonal gate test circuits with deterministic count output.
def N_D9(d3Zp=True): SFUt = [] jOpO = vR29(2, 'qr') if d3Zp: KBgZ = NCgL(2, 'cr') WpwY = (jOpO, KBgZ) else: WpwY = (jOpO,) d7pR = [1, -1] for t3jy in [0, 1]: for A2lD in [d7pR, oyIN.array(d7pR), oyIN.array(d7pR, dtype=float), oyIN.array(d7pR, dtype=complex)]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XCFE(YKHO, NKcE, begE):\n DDLl = YKHO.backend(method=NKcE, device=begE, seed_simulator=YKHO.SEED)\n Mz_G = 100\n SFUt = QYap.id_gate_circuits_deterministic(final_measure=True)\n x6A0 = QYap.id_gate_counts_deterministic(Mz_G)\n Aofo = DDLl.run(SFUt, shots=Mz_G).result()\n YKHO.assertSuccess(Ao...
[ "0.6741599", "0.64627755", "0.63270086", "0.6303415", "0.62892276", "0.62842315", "0.62786674", "0.62585425", "0.6239921", "0.6231084", "0.6230087", "0.6229766", "0.6223384", "0.6223086", "0.6215215", "0.62115717", "0.61999077", "0.6186186", "0.6185896", "0.61769056", "0.6166...
0.66168904
1
Diagonal gate test circuits with deterministic counts.
def ANp3(): x6A0 = [] x6A0 += 4 * [oyIN.array([0, 1, 0, 0])] x6A0 += 4 * [oyIN.array([0, 0, 1, 0])] x6A0 += 4 * [oyIN.array([0, 0, 0, 1])] x6A0 += [oyIN.array([0, 0, 0, oyIN.exp(-1j * oyIN.pi / G1Hx)]) for G1Hx in [10, 100, 1000, 10000]] return x6A0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_D9(d3Zp=True):\n SFUt = []\n jOpO = vR29(2, 'qr')\n if d3Zp:\n KBgZ = NCgL(2, 'cr')\n WpwY = (jOpO, KBgZ)\n else:\n WpwY = (jOpO,)\n d7pR = [1, -1]\n for t3jy in [0, 1]:\n for A2lD in [d7pR, oyIN.array(d7pR), oyIN.array(d7pR, dtype=float), oyIN.array(d7pR, dtype=...
[ "0.6990494", "0.6809074", "0.6579431", "0.65666866", "0.6554707", "0.6546819", "0.654517", "0.6536547", "0.651933", "0.6519229", "0.65170634", "0.6507377", "0.647675", "0.6465768", "0.6462726", "0.6447374", "0.6444007", "0.64353216", "0.64294916", "0.64147776", "0.64130074", ...
0.59022176
60
get the subnet id of private network of router1 very specific for gbp openstack installation
def pxyN(YKHO): VWZy = YKHO.get_network_attribute('private', 'subnets')[0] wHXl = YKHO.get_router_attribute('router1', 'id') BVjX = YKHO.get_network_attribute('private', 'id') avwO = YKHO.get_network_attribute('public', 'id') if VWZy and wHXl: YKHO.client.remove_interface_router(wHXl, {'subn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyfM(YKHO):\n return YKHO._gcp_instance.get('networkInterfaces', [{}])[0].get('subnetwork')", "def IRUU():\n return SFUl.network.network_address", "def pyfM():\n try:\n GXzF = qgI7.metadata['network']['interfaces']['macs']\n vEq1 = None\n for Pp4r, o8Kj in GXzF.items():\n ...
[ "0.7249643", "0.71836627", "0.70386183", "0.7017714", "0.69901973", "0.6975605", "0.68745416", "0.6819125", "0.6819125", "0.6819125", "0.6819125", "0.6755885", "0.6755885", "0.6755885", "0.67476636", "0.67128634", "0.67128634", "0.67128634", "0.67128634", "0.67128634", "0.671...
0.0
-1
Unload a config entry.
async def async_unload_entry(ajET: core.HomeAssistant, bTKY: config_entries.ConfigEntry) -> bool: yT1k = all(await V7ok.gather(*[ajET.config_entries.async_forward_entry_unload(bTKY, 'sensor')])) ajET.data[Sugg][bTKY.entry_id]['unsub_options_update_listener']() if yT1k: ajET.data[Sugg].pop(bTKY.entry...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6737991", "0.6730449", "0.6713354", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.66074973", "0.658...
0.67085946
15
Returns a copy of this parameter
def jth9(YKHO): return jth9(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO) -> 'Parameter':\n XP5J = YKHO.__class__(YKHO.ptype, _qLf(YKHO.value))\n return XP5J", "def jth9(YKHO):\n return lcgk(YKHO.data, YKHO.color, YKHO.axis)", "def jth9(YKHO):\n return ZwdI(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO.name, YKHO.value)", "def FzJk(YKHO):\n ...
[ "0.83385646", "0.76359653", "0.72908145", "0.7283307", "0.7276761", "0.7276761", "0.7276761", "0.7276761", "0.7276761", "0.7190825", "0.7135566", "0.7131012", "0.7131012", "0.703039", "0.6986791", "0.6986791", "0.6986791", "0.6986791", "0.6969917", "0.69523716", "0.69491", ...
0.0
-1
Construct an interval from center and percentage tolerance. >>> str_interval(make_center_percent(2, 50)) '1.0 to 3.0'
def bS6N(Z9rn, XP5J): return VOlW(Z9rn - Z9rn * XP5J / 100, Z9rn + Z9rn * XP5J / 100)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bS6N(Z9rn, XP5J):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return BJvC(Z9rn, XP5J * Z9rn / 100)", "def mjJ1(nPrm, DuZT):\n Cwt5 = (1 - DuZT / 100) / 2\n a1PO = Zxt2.stats.t.ppf(1 - Cwt5, len(nPrm) - 1)\n KCHu = mJX1(nPrm)\n P1dF = a1PO * KCHu / len(nPrm) ** 0.5\n r8hN = JBMS(nPrm)\n ret...
[ "0.5961772", "0.57227147", "0.56834537", "0.563804", "0.5595386", "0.5576803", "0.5541839", "0.55076975", "0.5446707", "0.54362833", "0.54362833", "0.52847505", "0.5273507", "0.5232729", "0.52271783", "0.5223526", "0.51560897", "0.5152636", "0.5132938", "0.5116744", "0.506811...
0.6592742
0
Return the interval that is the range the quadratic defined by a, b, and c, for domain interval x. >>> str_interval(quadratic(interval(0, 2), 2, 3, 1)) '3 to 0.125' >>> str_interval(quadratic(interval(1, 3), 2, 3, 1)) '0 to 10'
def vTAe(WKvO, jzdc, Fg_i, Z9rn): HQB3, HMUk, TNF5 = (-Fg_i / (2 * jzdc), IDsK(WKvO), A2Fp(WKvO)) BZ29 = lambda exwG: jzdc * exwG * exwG + Fg_i * exwG + Z9rn vjJT, HWOi, MDf6 = (BZ29(HMUk), BZ29(TNF5), BZ29(HQB3)) if HMUk > HQB3 or TNF5 < HQB3: LSh8, CN9P = (min(vjJT, HWOi), max(vjJT, HWOi)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vTAe(WKvO, jzdc, Fg_i, Z9rn):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n\n def _g9D(a1PO):\n return jzdc * a1PO * a1PO + Fg_i * a1PO + Z9rn\n LSh8 = _g9D(IDsK(WKvO))\n CN9P = _g9D(A2Fp(WKvO))\n if -Fg_i / (2 * jzdc) <= A2Fp(WKvO) and -Fg_i / (2 * jzdc) >= IDsK(WKvO):\n JjPI = (4 * jzdc...
[ "0.68918663", "0.63496685", "0.63353395", "0.63353395", "0.63303655", "0.6329892", "0.5839209", "0.58223104", "0.57829636", "0.5757719", "0.5743325", "0.5670679", "0.5646001", "0.5642072", "0.5635254", "0.56350356", "0.55868256", "0.55835974", "0.5577699", "0.5562462", "0.553...
0.72511023
0
Return whether x contains 0.
def OYWD(WKvO): return IDsK(WKvO) > 0 or A2Fp(WKvO) < 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Witr(YKHO, WKvO):\n pass", "def a3cq(WKvO):\n return WKvO.is_zero", "def CgEI(YKHO, WKvO):\n return abs(WKvO) <= 1e-06", "def Witr(YKHO):\n for BWXx in YKHO._v:\n if BWXx != 0:\n return False\n return True", "def PNxx(YKHO) -> bool:\n ...", "def Witr(YKHO):\n YR...
[ "0.8473712", "0.83869094", "0.8287959", "0.76348454", "0.75622225", "0.7509619", "0.75031716", "0.74900126", "0.74900126", "0.7447157", "0.7442606", "0.74217594", "0.7380367", "0.73215157", "0.7316109", "0.7248896", "0.7204784", "0.7198332", "0.71955067", "0.7179548", "0.7179...
0.70593244
25
Return the interval that contains all squares of values in x, where x does not contain 0.
def sg0X(WKvO): assert OYWD(WKvO), 'square_interval is incorrect for x containing 0' return nYRp(WKvO, WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sg0X(WKvO):\n assert OYWD(WKvO), 'square_interval is incorrect for x containing 0'\n return nYRp(WKvO, WKvO)", "def K2kH(WKvO):\n if not isinstance(WKvO, oyIN.ndarray):\n WKvO = oyIN.array(WKvO)\n if not WKvO.dtype == oyIN.bool:\n WKvO = WKvO != 0\n srux = oyIN.zeros_like(WKvO, d...
[ "0.769402", "0.663632", "0.6399845", "0.62440807", "0.6187543", "0.615348", "0.6123984", "0.60740185", "0.60199463", "0.5960209", "0.59600055", "0.5874483", "0.58455825", "0.5834062", "0.5814319", "0.5804545", "0.5788109", "0.5772407", "0.5746383", "0.57405764", "0.57009906",...
0.7719792
0
Dumps a dictionary into JSON always in UTF8 encoding and outputting the letters as they are (no ugly escaping)
def e1Ec(nPrm, qaEx, u2qj=True, _9UV=True, SStx=False, jTXt=None, NTfD='', H5ew=None, dm3f=None): with CFr4(qaEx, password=jTXt, salt=NTfD, allow_overwrite=_9UV, append=SStx, key=H5ew, key_password=dm3f) as G6EG: qQXR.dump(nPrm, G6EG, indent=4, sort_keys=u2qj, ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1Ec(cmPJ):\n return qQXR.dumps(cmPJ)", "def QDAt(Op6c, eHNT, **B2fa):\n vIwR = Qkec(Op6c, **B2fa)\n try:\n eHNT.write(vIwR)\n except UnicodeEncodeError:\n eHNT.write(vIwR.encode('ascii', 'replace').decode())", "def ChRH(nPrm):\n return qQXR.dumps(nPrm).encode('UTF-8')", "def...
[ "0.7282652", "0.7202671", "0.71101844", "0.68794966", "0.68688995", "0.679199", "0.6769273", "0.67260075", "0.67174405", "0.67174405", "0.650894", "0.65024155", "0.6496356", "0.644419", "0.63960254", "0.6393528", "0.6392611", "0.6343514", "0.63189304", "0.63041484", "0.628829...
0.0
-1
Please initialize your classes (including FileInformation, DirectoryInformation) this way. You may need to implement your own constructors for FileInformation and DirectoryInformation in order to get the necessary authentication information passed in
def FIMM(YKHO, ypig, P2Oj, zNig, _AKB): ypig = ypig.rstrip('/') YKHO.fullPath = ypig if isinstance(P2Oj, exCv): YKHO.lastModified = d5IO.parser.parse(P2Oj) else: YKHO.lastModified = P2Oj YKHO.size = zNig YKHO.parent = _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Sd6D, kUZF, NtEF, jTXt):\n YKHO.username = NtEF\n YKHO.password = jTXt\n YKHO.root_directory = Sd6D\n YKHO.current_directory = kUZF\n YKHO.read_file_name = None\n YKHO.index = 0", "def FIMM(YKHO):\n YKHO.username = None\n YKHO.password = None\n YKHO.root_directory = Hy7s...
[ "0.707421", "0.67615837", "0.6712003", "0.6702256", "0.6686693", "0.6637131", "0.66222894", "0.6621886", "0.65814173", "0.6558781", "0.6533316", "0.644028", "0.64168227", "0.6377044", "0.63425016", "0.6331973", "0.6325878", "0.6311765", "0.6309675", "0.6309675", "0.6309675", ...
0.0
-1
Gets the name of the object, without the prefix path (basename)
def mWFP(YKHO): return Hy7s.path.basename(YKHO.fullPath)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H6TY(YEnM):\n jzdc = str(YEnM.__class__).lower().split('.')[-1].split(\"'\")[0]\n return jzdc", "def hRqW(YEnM):\n if hasattr(YEnM, '__name__'):\n return nOOm(YEnM.__name__, QCJc)\n return nOOm(str(YEnM), QCJc)", "def B_QI(YKHO):\n return YKHO.obj_name", "def lccI(YEnM):\n if not...
[ "0.8007321", "0.7989309", "0.78879774", "0.7701333", "0.766833", "0.762053", "0.75857776", "0.758561", "0.7562714", "0.7560248", "0.7528073", "0.7528073", "0.75018007", "0.74810195", "0.7475793", "0.7427752", "0.74161476", "0.7412612", "0.7410867", "0.7410413", "0.7410413", ...
0.74495953
15
Mock load function through get_coin_market_chart_by_id. Mock returns a dict saved as .json
def EAWI(YKHO, sEzN): with open('tests/data/btc_usd_test_data.json') as eHNT: h68g = qQXR.load(eHNT) sEzN.return_value = h68g ee8p = tyeH(['-c', 'bitcoin']) YKHO.assertEqual(ee8p.coin_symbol, 'bitcoin') YKHO.assertIsInstance(ee8p, mX0t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tkhl(YKHO, sEzN):\n with open('tests/data/btc_usd_test_data.json') as eHNT:\n h68g = qQXR.load(eHNT)\n sEzN.return_value = h68g\n ee8p = tyeH(['-c', 'bitcoin'])\n Kp1L, cmJd = oQRR(ee8p, ['--vs', 'usd'])\n YKHO.assertTrue(Kp1L.shape == (722, 2))\n YKHO.assertTrue(cmJd == 'usd')", "de...
[ "0.6354353", "0.5640094", "0.5616353", "0.55647784", "0.55397207", "0.5504307", "0.54796004", "0.5421678", "0.5418568", "0.5417787", "0.54073656", "0.5395265", "0.53821146", "0.5376977", "0.5344302", "0.5340234", "0.5333106", "0.5312333", "0.5305761", "0.5297067", "0.52956706...
0.6730065
0
Mock load function through get_coin_market_chart_by_id. Mock returns a dict saved as .json
def Tkhl(YKHO, sEzN): with open('tests/data/btc_usd_test_data.json') as eHNT: h68g = qQXR.load(eHNT) sEzN.return_value = h68g ee8p = tyeH(['-c', 'bitcoin']) Kp1L, cmJd = oQRR(ee8p, ['--vs', 'usd']) YKHO.assertTrue(Kp1L.shape == (722, 2)) YKHO.assertTrue(cmJd == 'usd')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EAWI(YKHO, sEzN):\n with open('tests/data/btc_usd_test_data.json') as eHNT:\n h68g = qQXR.load(eHNT)\n sEzN.return_value = h68g\n ee8p = tyeH(['-c', 'bitcoin'])\n YKHO.assertEqual(ee8p.coin_symbol, 'bitcoin')\n YKHO.assertIsInstance(ee8p, mX0t)", "def fdQO(YKHO):\n BRlT = YKHO.client...
[ "0.67300636", "0.56408256", "0.561628", "0.5564545", "0.5540018", "0.55051637", "0.5478862", "0.5421621", "0.5419053", "0.54178536", "0.5406544", "0.53962505", "0.5382452", "0.53771245", "0.53450006", "0.5339507", "0.53331536", "0.5312842", "0.5305863", "0.5298342", "0.529671...
0.6354754
1
Gets the id of this ConfigurableProductDataOptionInterface.
def id(YKHO) -> int: return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smJ7(YKHO):\n return YKHO.data_id", "def mLJR(YKHO):\n return YKHO.getData()['id']", "def kwEa(YKHO) -> h8nf[int]:\n return YKHO._data_id", "def id(YKHO):\n return YKHO.data.id", "def id(YKHO):\n return YKHO.data.get('id', None)", "def c55i(YKHO):\n return YKHO._properties.get('id')...
[ "0.6539816", "0.64839715", "0.6457537", "0.64177483", "0.63725036", "0.6354024", "0.6320736", "0.62611437", "0.62611437", "0.618405", "0.61192226", "0.6114112", "0.6114112", "0.6093236", "0.6093236", "0.6093236", "0.6093236", "0.609155", "0.60912174", "0.60912174", "0.6079193...
0.5848884
100
Gets the attribute_id of this ConfigurableProductDataOptionInterface.
def E0C9(YKHO) -> str: return YKHO._attribute_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rFy8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'data_attribute_id')", "def rFy8(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'data_attribute_id')", "def HNpE(YKHO):\n return YKHO._attribute_set_id", "def id(YKHO):\n return YKHO.attrs.get(YKHO.id_attribute)", "def LH4i(YKHO):\n...
[ "0.7377089", "0.7162533", "0.62577873", "0.6248824", "0.6132133", "0.6132133", "0.60018325", "0.5949558", "0.59263015", "0.589064", "0.5868537", "0.57955176", "0.5752806", "0.5747086", "0.57367736", "0.57285875", "0.5692162", "0.56816846", "0.5646083", "0.5639757", "0.5637254...
0.72988874
1
Gets the label of this ConfigurableProductDataOptionInterface.
def UXqs(YKHO) -> str: return YKHO._label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXqs(YKHO):\n return F4bN(YKHO.data_source, YKHO.name)", "def UXqs(YKHO):\n return YKHO.data['label']", "def DeTJ(YKHO):\n if YKHO.label != None:\n return YKHO.label\n else:\n return YKHO.name", "def UXqs(YKHO):\n if 'label' in YKHO:\n return YKHO['label']\n else:\n...
[ "0.7291488", "0.71303815", "0.705718", "0.70086414", "0.6989684", "0.6989684", "0.6989684", "0.6989684", "0.6989684", "0.6989684", "0.6989684", "0.69684166", "0.69684166", "0.6956673", "0.6956673", "0.6956673", "0.6956673", "0.6956673", "0.6956673", "0.6956673", "0.6956673", ...
0.6917863
91
Gets the position of this ConfigurableProductDataOptionInterface.
def dQgj(YKHO) -> int: return YKHO._position
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jHgk(YKHO):\n return int(YKHO.options.index(YKHO.option.get()))", "def XtSp(YKHO):\n if YKHO._h >= len(YKHO._options):\n return 0\n else:\n return YKHO._start_line / (len(YKHO._options) - YKHO._h)", "def dQgj(YKHO):\n return YKHO['position']", "def dQgj(YKHO, MTKo: str) -> str:\...
[ "0.6420167", "0.64056337", "0.6394422", "0.63811207", "0.63545233", "0.6338968", "0.6332181", "0.6332181", "0.6329716", "0.63179183", "0.6310214", "0.6304146", "0.63038546", "0.63038546", "0.63038546", "0.63038546", "0.63038546", "0.63038546", "0.63038546", "0.63038546", "0.6...
0.6338924
6
Gets the values of this ConfigurableProductDataOptionInterface.
def hkxX(YKHO) -> x1iM[y_cd]: return YKHO._values
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLtf(YKHO):\n return {'optid': YKHO.option_id}", "def bgRQ(YKHO):\n return super(v6cU, YKHO).getValues()", "def iIby(YKHO):\n return (YKHO.conditionCombo.currentText(), YKHO.temporaryCheckBox.isChecked(), YKHO.enabledCheckBox.isChecked(), YKHO.ignoreSpinBox.value())", "def Iso7(YKHO):\n retur...
[ "0.6854639", "0.6397709", "0.62970763", "0.6293116", "0.6221372", "0.6208144", "0.61127335", "0.61127335", "0.6101033", "0.6097499", "0.6096981", "0.6077566", "0.6071261", "0.60699207", "0.6046338", "0.60401833", "0.60176086", "0.6010923", "0.6005244", "0.6004974", "0.6002139...
0.8448983
0
Gets the product_id of this ConfigurableProductDataOptionInterface.
def Mc9N(YKHO) -> int: return YKHO._product_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Trci(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO):\n return YKHO._product_id", "def Mc9N(YKHO) -> int:\n return getattr(YKHO, '_product_id', None)", "def Mc9N(YKHO):\n return YKHO.get_pro...
[ "0.7441641", "0.73884666", "0.73884666", "0.73884666", "0.73735344", "0.73228264", "0.7214123", "0.7214123", "0.7099394", "0.7075059", "0.6959445", "0.6915453", "0.6795361", "0.67133945", "0.65482074", "0.6533735", "0.6446997", "0.6439374", "0.635906", "0.6298756", "0.6216805...
0.7291673
6
Loads and returns settings from a YAML file
def CQCf(pmON): with open(pmON, 'r') as nUeQ: return qQXR.load(nUeQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TuHQ():\n with open(Hy7s.path.join(fMn6, '../road-colors.yml'), 'r') as Ga6V:\n return eJb6.load(Ga6V)", "def PR1W():\n RJsz = open('settings.yml')\n gCuF = eJb6.safe_load(RJsz)\n RJsz.close()\n return gCuF", "def TuHQ():\n RJsz = open('../settings.yml')\n gCuF = eJb6.safe_load(...
[ "0.8301477", "0.8210652", "0.8073273", "0.80075175", "0.7818856", "0.7641494", "0.7598637", "0.75930023", "0.7575215", "0.7574721", "0.7550166", "0.7544067", "0.750516", "0.7473151", "0.7469191", "0.7456538", "0.74502987", "0.7430667", "0.7424905", "0.7415405", "0.740996", ...
0.0
-1
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): if not isinstance(Elif, AkJE): return True return YKHO.to_dict() != Elif.to_dict()
{ "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.83931243", "0.83552086", "0.82955265", "0.8132768", "0.81150424", "0.81002593", "0.80996835", "0.80982906", "0.80982906", "0.80930424", "0.80930424", "0.80930424", "0.80930424", "0.8085779", "0.8085779", "0.8085779", "0.8085779", "0.8085779", "0.8067391", "0.80594134", "0....
0.0
-1
Given a string of grade level (e.g. '1'), generate a random score within the range.
def gDz0(T8k0): fmL7 = tuKI.random() T8k0 += fmL7 MOZW, gSE7 = iIby.get_difficulty(T8k0, 0) return (MOZW, gSE7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XziO(p1kx):\n if p1kx >= JCHB:\n return 'A'\n elif p1kx >= TWwo:\n return 'B'\n elif p1kx >= y4iN:\n return 'C'\n elif p1kx >= U4E5:\n return 'D'\n elif p1kx >= GkbR:\n return 'E'\n return 'F'", "def ztRs(p1kx):\n if 0 <= p1kx < 50:\n return 'Bad...
[ "0.6447766", "0.6433863", "0.63920146", "0.6299936", "0.6195654", "0.609457", "0.59970933", "0.5982794", "0.59788305", "0.5928051", "0.5881657", "0.58772177", "0.58568984", "0.58352387", "0.5832559", "0.58128804", "0.58106524", "0.577721", "0.5773192", "0.5755633", "0.5721507...
0.69672644
0
Generate sha256 for filename
def cvuE(Ux0P, Z1S6=65536): hqsM = HBct.sha256() with open(Ux0P, 'rb') as eHNT: for XkN1 in iter(lambda: eHNT.read(Z1S6), b''): hqsM.update(XkN1) return hqsM.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vb3_(Ux0P):\n return vFhS(Ux0P, 'sha256')", "def twIP(gIsw: str) -> str:\n vRyL = HBct.sha256()\n with open(gIsw, 'rb') as nUeQ:\n while True:\n yOAJ = nUeQ.read(vRyL.block_size)\n if not yOAJ:\n break\n vRyL.update(yOAJ)\n return vRyL.hexdig...
[ "0.80200464", "0.79058576", "0.7894534", "0.78506947", "0.78355193", "0.7739703", "0.77152777", "0.76667315", "0.76070535", "0.75970936", "0.75956786", "0.7586012", "0.75624174", "0.75484043", "0.754494", "0.7530579", "0.749799", "0.7467973", "0.74235696", "0.74134177", "0.74...
0.6751449
83
Freeze all parameters. Including both items in conv and bn. Only work for BatchNorm2d method in different normalize methods.
def FiJ9(YKHO): for XP5J in YKHO.parameters(): XP5J.requires_grad = False LTQ5.convert_frozen_batchnorm(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AYMA(r8hN):\n mPQc = r8hN.__class__.__name__\n if mPQc.find('BatchNorm') != -1:\n for XP5J in r8hN.parameters():\n XP5J.requires_grad = False\n r8hN.eval()", "def OGtb(r8hN):\n r8hN = jWIY(r8hN)\n for XP5J in r8hN.parameters():\n XP5J.requires_grad = False\n ret...
[ "0.6987964", "0.6895163", "0.6845223", "0.68232775", "0.67553484", "0.6709698", "0.6709698", "0.6662842", "0.659684", "0.65736604", "0.6557157", "0.6552686", "0.65020037", "0.6492293", "0.6474669", "0.6442991", "0.64288276", "0.641858", "0.641858", "0.64025795", "0.64007986",...
0.7892227
0
Gets a trigger object. Trigger object is a callable that accepts a
def INz2(iqFZ: TriggerLike) -> wqbP: from pytorch_pfn_extras.training.triggers import interval_trigger if isinstance(iqFZ, wqbP): return iqFZ elif callable(iqFZ): return C8cz(iqFZ) elif iqFZ is None: return C8cz(Lxu8) else: return interval_trigger.IntervalTrigger(*iqF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XCjG(YKHO):\n return YKHO.__trigger", "def XCjG(YKHO):\n return YKHO.__trigger", "def INz2(av29=None):\n pass", "def iqFZ(YKHO):\n if YKHO.object.val != 0:\n return None\n if YKHO._trigger is None:\n YKHO._trigger = YKHO._api.trigger(YKHO.objectid.val)\n return YKHO._trigg...
[ "0.7201425", "0.7201425", "0.71969384", "0.697791", "0.6809389", "0.62668633", "0.62156737", "0.617475", "0.6155781", "0.6150798", "0.61396825", "0.61355233", "0.59762055", "0.59523207", "0.5945219", "0.59193766", "0.59193766", "0.59148794", "0.5884617", "0.5872115", "0.58693...
0.7745048
0
Normalization can be applied by setting `normalize=True`.
def LwSz(Y8eF, aMgO, KndY, NkkI=False, iMGt=QrM1.cm.YlOrBr, Ux0P=None, GAJY=20): QrM1.clf() QrM1.rc('font', size=GAJY) LZpg, aNZO = QrM1.subplots(figsize=(6, 6)) oyIN.set_printoptions(precision=2) Bcwd = YsYU(Y8eF, aMgO) if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO):\n pass", "def NkkI(YKHO):\n z_1F.point_relative_normalization()", "def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())", "def NkkI(YKHO):\n CkYf = YKHO.norm()\n YKHO.values /= CkYf", "def NkkI(YKHO, CkYf='l1'):\n nPrm = YKHO.data.astype(oyIN.float64)\n YKHO.data = N3vq.preproc...
[ "0.7629007", "0.75990415", "0.75078684", "0.7478355", "0.7470084", "0.743688", "0.74355954", "0.73958695", "0.73851025", "0.7318193", "0.7285644", "0.7275722", "0.718215", "0.7170987", "0.715831", "0.7131692", "0.71169215", "0.7115437", "0.7110852", "0.7107648", "0.7101092", ...
0.0
-1
Creates a sliding windowed observable based upon the window size. window_size {Number} The number of items in the window scheduler {Scheduler} [Optional] Optional scheduler used for parameterization of concurrency. If not specified, defaults to Scheduler.timeout. Returns a windowed observable {Observable} based upon th...
def IyjG(YKHO, yMhW, IesV=None): IesV = IesV or Jo_Y return U94b(YKHO, yMhW, IesV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def agUT(Q6uT, yMhW):\n for YRbF in Ni9Y(len(Q6uT) - yMhW + 1):\n yield Q6uT[YRbF:YRbF + yMhW]", "def K3Td(OxJJ, zNig):\n S7dm = y54_(OxJJ, zNig)\n for YRbF in Ni9Y(1, zNig):\n for mAB6 in S7dm[YRbF:]:\n next(mAB6, None)\n return list(DMWo(*S7dm))", "def K3Td(YKHO, yv6U, zN...
[ "0.6693391", "0.6566417", "0.65447295", "0.647425", "0.640114", "0.640114", "0.63774604", "0.63706553", "0.6367083", "0.62986696", "0.6295346", "0.62014073", "0.605237", "0.60493237", "0.60189426", "0.60186136", "0.5991074", "0.58549666", "0.584372", "0.5839888", "0.5828747",...
0.7847682
0
Determines the squared difference pixel by pixel between two images.
def wFvR(AuRb: Image, I28C: Image, yFgu: Image=None) -> hnIv: ycBG = OjO7(yFgu) pIRl(AuRb, I28C, ycBG) return naF9(ycBG, yFgu, 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jfF7(_z_f, tgYj):\n mSn1, OJuM, BvMi = _z_f.shape\n IP77, Fh7c, rKYz = tgYj.shape\n assert mSn1 == IP77\n assert OJuM == Fh7c\n assert BvMi == rKYz\n Aofo = oyIN.zeros((mSn1, OJuM))\n for WKvO in range(mSn1):\n for LVAh in range(OJuM):\n CgH5 = 0.0\n for Fg_i i...
[ "0.78714234", "0.7680848", "0.7379316", "0.71974385", "0.71844727", "0.71481514", "0.71294665", "0.7032641", "0.70227253", "0.69950455", "0.6994749", "0.6963887", "0.68877846", "0.6713943", "0.6683839", "0.6655129", "0.6616273", "0.65629", "0.6553127", "0.6524531", "0.6514972...
0.8077409
0
Returns True if a route exists between two nodes in a directed graph, False otherwise. Return False if at least one of the nodes doesn't exist.
def oPcn(pNZh, yKcO, Os4s, azXi=[]): azXi.append(yKcO) if yKcO not in pNZh or Os4s not in pNZh: return False if yKcO == Os4s: return True if Os4s in pNZh[yKcO]: return True for fP8F in pNZh[yKcO]: if fP8F in azXi: continue Aofo = oPcn(pNZh, fP8F, O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KFCX(YKHO, IaK1, r30l):\n return jHsn.has_path(YKHO._graph, IaK1[0], r30l[0])", "def cmBw(YKHO, V3IK: int, vyDA: int) -> bool:\n return YKHO.adjacency_matrix[V3IK][vyDA] != 0", "def aNjn(am0q: list, Ziit: tuple):\n XIgt = g5js()\n XIgt.put(Ziit[0])\n azXi = []\n while not XIgt.empty():\n ...
[ "0.7484102", "0.7247366", "0.7222908", "0.70763886", "0.69621295", "0.6950251", "0.6940067", "0.6936337", "0.6877685", "0.68764085", "0.6868243", "0.6857571", "0.6828193", "0.67810935", "0.6736013", "0.66533846", "0.66533846", "0.664581", "0.6596589", "0.6595144", "0.6543903"...
0.6165027
54
Truncates the Laurent polynomial p, returning only terms of degree <n, similar to the truncate method for polynomials.
def RH9J(XP5J, exwG): WY2F = XP5J._dict() dict = {} for G1Hx in WY2F: if G1Hx[0] < exwG: dict[G1Hx] = WY2F[G1Hx] return XP5J.parent()(dict)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d3b7(Wbaq, u54L):\n return Wbaq & 2 ** u54L - 1", "def JNU5(eHNT, XP5J):\n return eHNT.per(kakC(eHNT.rep, eHNT.dom.convert(XP5J), eHNT.lev, eHNT.dom))", "def UduK(XP5J, exwG):\n assert exwG >= 1\n if exwG == 1:\n return oyIN.array([1 / XP5J[0]])\n Csk6 = XP5J.shape[0]\n G1Hx = (exw...
[ "0.59846216", "0.5925711", "0.58534044", "0.5839924", "0.5715922", "0.56781524", "0.56067634", "0.559105", "0.55591846", "0.5555807", "0.5508184", "0.5496219", "0.5457256", "0.54287755", "0.54082185", "0.54054004", "0.53904444", "0.5382488", "0.5375148", "0.53274035", "0.5318...
0.7751064
0