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
Creates multivariate `Deterministic` or `Normal` distribution.
def iEBR(yDqo, ROpF, mWFP, XJsN, mTT0): hksT, NXpY = Tu7I(yDqo, ROpF, mWFP, XJsN, mTT0) if NXpY is None: pImw = VxLT.Deterministic(loc=hksT) else: pImw = WgKH.Normal(loc=hksT, scale=NXpY) GNGo = _WqI.shape(pImw.batch_shape_tensor())[0] return uu9a.Independent(pImw, reinterpreted_batc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwuD(Emd4, yGTL: Union[float, np.ndarray]=0.0, WTkW: Union[float, np.ndarray]=1.0, yokr: Optional[int]=0):\n if WTkW == 0:\n return fT0y([1.0], [oyIN.exp(yGTL)], seed=yokr)\n return super().__new__(Emd4)", "def AFlK(JBMS, PFC2, exwG, nUHY):\n if exwG == 1:\n WKvO = oyIN.random.default_...
[ "0.6883635", "0.68276316", "0.6710429", "0.6335857", "0.63293964", "0.62173027", "0.62057513", "0.61219674", "0.61156815", "0.6100747", "0.61004573", "0.59886724", "0.59272844", "0.5892869", "0.5887673", "0.58717716", "0.58471864", "0.5843168", "0.58346343", "0.58154094", "0....
0.0
-1
Denselyconnected layer with local reparameterization estimator. This layer implements the Bayesian variational inference analogue to a dense layer by assuming the `kernel` and/or the `bias` are drawn from distributions. By default, the layer implements a stochastic forward pass via sampling from the kernel and bias pos...
def eCVR(g4y1, rYO3, YDYE=None, GpC8=None, XJsN=True, CJ8N=LXG2(), QoAb=lambda Csk6: Csk6.sample(), xk80=lambda yDqo, *qIxc: WgKH.Normal(loc=yDqo.as_numpy_dtype(0.0), scale=yDqo.as_numpy_dtype(1.0)), neTV=lambda vexM, XP5J, PrmE: _jhd.kl_divergence(vexM, XP5J), RwG3=LXG2(is_singular=True), Yzzy=lambda Csk6: Csk6.sample...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KaoB(g4y1, rYO3, YDYE=None, GpC8=None, XJsN=True, CJ8N=LXG2(), QoAb=lambda Csk6: Csk6.sample(), xk80=lambda yDqo, *qIxc: WgKH.Normal(loc=yDqo.as_numpy_dtype(0.0), scale=yDqo.as_numpy_dtype(1.0)), neTV=lambda vexM, XP5J, PrmE: _jhd.kl_divergence(vexM, XP5J), RwG3=LXG2(is_singular=True), Yzzy=lambda Csk6: Csk6.s...
[ "0.6641123", "0.6115173", "0.5956767", "0.5865014", "0.5811584", "0.5803007", "0.57451874", "0.5724043", "0.56831336", "0.566493", "0.5661822", "0.56238157", "0.5545864", "0.55448514", "0.55011815", "0.5471089", "0.54635906", "0.5449913", "0.5443284", "0.5442257", "0.54296845...
0.6967587
0
Sprite is to left or right of screen
def BbUM(YKHO): return YKHO.rect.right <= 0 or YKHO.rect.left >= YKHO.screen_rect.width
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IUJc(YKHO):\n if YKHO.x >= YKHO.scene.screen.get_width() - YKHO.image.get_width() or YKHO.x <= 0:\n return True\n else:\n return False", "def WaKS(YKHO):\n YKHO.rect.centerx += 9", "def bjjd(YKHO):\n if YKHO.rect.right < i1q_:\n YKHO.rect.right += YKHO.speed", "def BOYQ(Y...
[ "0.7339836", "0.69387275", "0.68455005", "0.6781197", "0.6766592", "0.6663586", "0.66262686", "0.660086", "0.657184", "0.655616", "0.65025014", "0.64966536", "0.64768547", "0.64475805", "0.64141047", "0.6411345", "0.6404503", "0.6382406", "0.6370232", "0.6261869", "0.6233783"...
0.5728622
99
Plot the Mean value of responses in the test set
def tmii(XPLX, ee9X, qFBB, cnFW=True): QrM1.rcParams['svg.fonttype'] = 'none' dCji = 'Optimization Step' cHAw = f'Mean {qFBB} in Test Set' QrM1.plot([bGrB for bGrB in range(len(XPLX))], XPLX, marker='s', markerfacecolor='m', markeredgecolor='black', c='m', markersize=0.1, markeredgewidth=0.01) QrM1....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def km2X(jQ3Z, WKvO, cQCM, Q7SE, xkzz=False, nUHY=True):\n LZpg, hh7H = QrM1.subplots(figsize=(15, 15))\n fTVC = hh7H.twinx()\n Ehky = WKvO\n if jQ3Z[WKvO].dtype == 'int':\n WKvO = jQ3Z[WKvO].astype('category')\n elif jQ3Z[WKvO].dtype == 'float':\n WKvO = rLdf.cut(jQ3Z[WKvO], bins=10)\...
[ "0.67125005", "0.6430533", "0.6387076", "0.63750094", "0.6330063", "0.6288587", "0.62821716", "0.62392116", "0.6179099", "0.61760074", "0.6146362", "0.6135676", "0.61342424", "0.61103433", "0.61024773", "0.6095314", "0.60907954", "0.60318244", "0.6028813", "0.6020579", "0.601...
0.65759766
1
Generate TFRecord dataset from a list of csv files with detections.
def rPWE(n80H: str, PbsD: str, RpYU: list, ecF5: dict=None): WJI9 = ZylS.python_io.TFRecordWriter(n80H) JaKZ = eiMo(ecF5) for mlch, m6_J in zip(PbsD, RpYU): _73Q = rLdf.read_csv(m6_J) qDyV = V6ua(_73Q) pmON = Hy7s.path.join(mlch) for uOe2 in qDyV: Mpe1 = D7IR(uOe2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wif8(uTAc):\n bPNP = []\n for qZOt in uTAc:\n with open(Hy7s.path.join('data', qZOt)) as z36O:\n N5Pj = m6_J.reader(z36O, delimiter=',')\n next(N5Pj)\n for rdlD in N5Pj:\n bPNP.append(rdlD[1])\n return bPNP", "def oUGu(BuvW, Ep8u, Tuqy):\n\n ...
[ "0.6571864", "0.637632", "0.63269085", "0.63152325", "0.63044286", "0.6209742", "0.61987484", "0.6196607", "0.6083322", "0.606753", "0.60378313", "0.6013575", "0.6008749", "0.6006046", "0.6001604", "0.599372", "0.5973993", "0.59596205", "0.59187835", "0.5910725", "0.58999115"...
0.58151203
33
Decay learning rates of g
def c6l7(YKHO, gRsv): for Lwm5 in YKHO.g_optimizer.param_groups: Lwm5['lr'] = gRsv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VNTV(YKHO):\n sfVb = ZylS.get_collection(ZylS.GraphKeys.REGULARIZATION_LOSSES)\n RKD7.info('Weight decay variables')\n [RKD7.info(WKvO) for WKvO in sfVb]\n RKD7.info('Total length: {}'.format(len(sfVb)))\n if len(sfVb) > 0:\n return ZylS.add_n(sfVb)\n else:\n RKD7.warning('No we...
[ "0.70114493", "0.69808054", "0.6935475", "0.6935475", "0.69351035", "0.6895724", "0.6886578", "0.68547916", "0.6831603", "0.6829386", "0.6799702", "0.6777535", "0.67560023", "0.67556185", "0.6743513", "0.6742004", "0.67062783", "0.6682914", "0.66825324", "0.66825324", "0.6653...
0.0
-1
Reset the gradient buffers.
def YP7j(YKHO): YKHO.g_optimizer.zero_grad()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YP7j(YKHO):\n YKHO.unet.zero_grad()", "def YP7j(YKHO):\n YKHO.g_optimizer.zero_grad()\n YKHO.d_optimizer.zero_grad()\n YKHO.dr_optimizer.zero_grad()", "def YP7j(YKHO):\n YKHO.unet.zero_grad()", "def YP7j(YKHO):\n YKHO.g_optimizer.zero_grad()\n YKHO.d_optimizer.zero_grad()", "def YP...
[ "0.7156704", "0.71406925", "0.71314186", "0.71080565", "0.71080565", "0.71080565", "0.70542574", "0.6996964", "0.69681984", "0.6928698", "0.678635", "0.67519945", "0.6728927", "0.6691359", "0.668999", "0.66764534", "0.66677326", "0.6606647", "0.65908575", "0.65665776", "0.656...
0.7002798
7
Check if there is Energy Expended.
def GeAv(YKHO, JbyC): return JbyC & 8 != 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def baQ3(YKHO):\n if YKHO.player.get_energy() <= 0:\n print('\\nSorry, you ran out of energy and died.')\n print('Maybe the AI program will bring you back again...')\n HwRy.exit()\n elif YKHO.player.get_energy() < 15:\n print('******************************************************...
[ "0.6731871", "0.62530476", "0.61856246", "0.6057652", "0.6050333", "0.60226136", "0.59565777", "0.58627975", "0.5839908", "0.58172625", "0.57811123", "0.5769362", "0.5762572", "0.57570845", "0.5737044", "0.5701645", "0.56978434", "0.56756836", "0.5655556", "0.5653673", "0.563...
0.8124157
0
Test post object with custom attributes.
def aUBg(YKHO): eK5b = YKHO.generator.generate_custom_attribute bGrB, Mb1j = eK5b('product', attribute_type='Text', title='normal text') Ii1o = FYrf.Person.query.first().id LZeO = [{'product': {'kind': None, 'owners': [], 'custom_attribute_values': [{'attribute_value': 'my custom attribute value', 'cust...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EaAT(YKHO):\n pass", "def WM_V(YKHO):\n geh0 = YKHO._post()\n YKHO.assertEquals(YKHO.model.objects.count(), 1)\n YEnM = YKHO.model.objects.get()\n YKHO.assertEquals(YEnM.pk, YKHO.obj.pk)\n YKHO.assertRedirectsNoFollow(geh0, YEnM.get_absolute_url())\n YKHO.assertEquals(YEnM.name, YKHO.pos...
[ "0.71695477", "0.702918", "0.70240444", "0.70239055", "0.696607", "0.6828099", "0.6753909", "0.666823", "0.662503", "0.6567288", "0.6546403", "0.6529289", "0.651847", "0.6516403", "0.6437588", "0.63941807", "0.6383632", "0.63717246", "0.6317528", "0.6294524", "0.6271675", "...
0.67223376
7
Return a saved state value, None if item is undefined.
def OP2O(YKHO, ZfUD): return YKHO._state['data'].get(ZfUD, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def JgjC(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def JgjC(YKHO, ...
[ "0.635614", "0.635614", "0.635614", "0.6147364", "0.6147364", "0.6143075", "0.6132287", "0.60980505", "0.60980505", "0.60980505", "0.5938607", "0.5816747", "0.57945025", "0.57495975", "0.57337904", "0.5725388", "0.57218087", "0.57218087", "0.56860113", "0.56860113", "0.568601...
0.64269394
1
Return a saved state value, None if item is undefined.
def JgjC(YKHO, ZfUD): return YKHO._state['data'].get(ZfUD, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ...
[ "0.6429514", "0.6429514", "0.6358824", "0.6358824", "0.6358824", "0.6145407", "0.61317384", "0.61004424", "0.61004424", "0.61004424", "0.5938212", "0.58158153", "0.5793487", "0.5748117", "0.57325107", "0.5726615", "0.5721914", "0.5721914", "0.5684511", "0.5684511", "0.5684511...
0.6149625
6
Render the cell for a given column and row.
def fCZ6(iVRZ, rdlD): return iVRZ.render_cell(rdlD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fCZ6(YKHO, rdlD, fvDH):\n sEAN = YKHO.env\n zNig = YKHO.CELL_WIDTH\n BcQj = YKHO.PANEL_HEIGHT\n MVIL = YKHO.MARGIN\n Vjhr = YKHO.screen\n r1VO = (zNig - 2 * MVIL) // 2\n gSiG = (MVIL + zNig) * rdlD + MVIL\n ynCn = (MVIL + zNig) * fvDH + MVIL + BcQj\n lm7q = MVIL + zNig // 2 + rdlD * ...
[ "0.80208915", "0.7057236", "0.6879578", "0.6787069", "0.6762434", "0.6730548", "0.6730548", "0.6730548", "0.6730548", "0.6707078", "0.6657402", "0.66424626", "0.66310644", "0.65979606", "0.65421677", "0.65223783", "0.6510289", "0.64564073", "0.6454309", "0.6396337", "0.625513...
0.8833946
0
Modify the query string of an URL to change the ``sort_variable_name`` argument.
def kxSg(xDcj, Jyyj, VkNZ, type): xDcj = xDcj.copy() if type == 'desc': xDcj[VkNZ] = '-' + Jyyj elif type == 'asc': xDcj[VkNZ] = Jyyj return xDcj.urlencode()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JVFi():\n assert gmoQ('http://example.com/a?b=1&c=2') == 'http://example.com/a?b=1&c=2'\n assert gmoQ('http://example.com/a?c=2&b=1') == 'http://example.com/a?b=1&c=2'", "def xbLn(YKHO, xDcj, fCvO):\n if ':sort' in xDcj:\n MQFH = ':sort'\n elif '@sort' in xDcj and xDcj.is_root:\n MQ...
[ "0.6178298", "0.5965117", "0.5931693", "0.5763603", "0.57338655", "0.5701205", "0.5659237", "0.55262357", "0.5501779", "0.54842824", "0.5456122", "0.5456122", "0.5407841", "0.5407841", "0.5386435", "0.5386435", "0.53451675", "0.53092784", "0.53051645", "0.5269677", "0.5269677...
0.7990209
0
Return whether obj is an estimator class or estimator object.
def u_ur(YEnM): if as9g(YEnM): return issubclass(YEnM, nDw0) else: return isinstance(YEnM, nDw0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HNRA(YEnM):\n if not as9g(YEnM):\n YEnM = type(YEnM)\n JgUE = issubclass(YEnM, afK8)\n QSoC = issubclass(YEnM, PpMM)\n Udax = JgUE and (not QSoC)\n return Udax", "def _QjL(YEnM):\n return HNRA(YEnM) and kql9(YEnM) == 'classifier'", "def n5hJ(BHCt):\n return getattr(BHCt, '_estim...
[ "0.8014405", "0.7595821", "0.7336298", "0.7137613", "0.6930118", "0.6818005", "0.67669797", "0.6660152", "0.6638926", "0.6541589", "0.6501123", "0.6461391", "0.64600104", "0.6415006", "0.6392823", "0.6380369", "0.6375919", "0.6374647", "0.6367869", "0.6343212", "0.6337032", ...
0.86432767
0
Calculates the Shannon Entropy of given dataSet. The Shannon entropy equation provides a way to estimate the average minimum number of bits needed to encode a label based on the frequency of the labels.
def ElV2(__n6): zhKx = len(__n6) MbQg = {} for iArr in __n6: Yj9g = iArr[-1] if Yj9g not in MbQg: MbQg[Yj9g] = 0 MbQg[Yj9g] += 1 oqGu = 0.0 for UXqs in MbQg: RAw8 = MbQg[UXqs] / zhKx oqGu -= RAw8 * RKD7(RAw8, 2) return oqGu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqGu(nPrm):\n _CS_, tm40 = (mBkc(nPrm), oyIN.float(len(nPrm)))\n return -sum((UHFx / tm40 * oyIN.log2(UHFx / tm40) for UHFx in _CS_.values()))", "def vrza(YKHO, KCHu):\n tTpl = KCHu[oyIN.nonzero(KCHu)] ** 2 * oyIN.log(KCHu[oyIN.nonzero(KCHu)] ** 2)\n return oyIN.sum(tTpl)", "def C7Ls(YKHO, nPrm...
[ "0.70676106", "0.6903988", "0.6821142", "0.6816265", "0.67478627", "0.67198783", "0.6675629", "0.65205294", "0.64137226", "0.63329506", "0.6314733", "0.6307148", "0.6305175", "0.62166697", "0.62098753", "0.6208406", "0.6208014", "0.61947745", "0.6191617", "0.61649585", "0.615...
0.6940564
1
Returns the ratio of a circle's circumference to its diameter.
def mM0K(): hwDb().prec += 2 FxAZ = SkPU = lIY7 = iSjc.Decimal(1) imE1 = iSjc.Decimal(0.25) cD4Q = iSjc.Decimal(0.5).sqrt() while True: SkPU = (SkPU + cD4Q) / 2 cD4Q = (FxAZ * cD4Q).sqrt() yk4i = SkPU - FxAZ FxAZ = SkPU imE1 -= lIY7 * yk4i * yk4i if yk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GiOJ(YKHO):\n return epAf.pi * YKHO.radius * 2", "def NrEI(YKHO):\n return YKHO.radius * 2", "def NrEI(YKHO):\n return YKHO.radius * 2", "def AKpL(YKHO):\n PXIy = []\n for YRbF, EBgd in enumerate(YKHO.points):\n for HpuQ in YKHO.points[YRbF + 1:]:\n PXIy.append(GoRQ(EBgd,...
[ "0.74936026", "0.7465725", "0.7465725", "0.74169195", "0.73851794", "0.7363345", "0.7214506", "0.71231043", "0.69820744", "0.69820505", "0.6794374", "0.6792565", "0.67510515", "0.673118", "0.67278904", "0.671904", "0.6695147", "0.66586185", "0.6655653", "0.66363215", "0.66322...
0.0
-1
Returns the principal angle in radians that a given point on the cartesian plane makes with respect to the positive x axis with the origin as the vertex.
def vwZf(LVAh, WKvO): if WKvO == 0: if LVAh == 0: raise DDUq('2-arg inverse tangent not defined at the origin') return mM0K().copy_sign(iSjc.Decimal(LVAh)) / 2 elif LVAh == 0: return mM0K() if WKvO < 0 else iSjc.Decimal(0) hwDb().prec += 2 d7pR = iSjc.Decimal(LVAh) / ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YylR(YKHO):\n Ty9i = YKHO.p1 - YKHO.p0\n return vwZf(Ty9i.y, Ty9i.x)", "def YylR(YKHO, iArr):\n return epAf.degrees(epAf.acos(YKHO.dot(iArr) / (YKHO.magnitude() * iArr.magnitude())))", "def YylR(YKHO):\n return D4LM(BJ1H((YKHO.a - YKHO.o) / YKHO.r, (YKHO.b - YKHO.o) / YKHO.r))", "def Tbd6(YKH...
[ "0.6609037", "0.65563405", "0.6453497", "0.6387948", "0.6383385", "0.63802844", "0.63756114", "0.63479453", "0.632503", "0.6248011", "0.6158966", "0.6090713", "0.6074302", "0.6054061", "0.6030921", "0.6015549", "0.5998766", "0.59560853", "0.5954354", "0.5946966", "0.5942134",...
0.0
-1
Returns True if two numbers are sufficiently close to each other in value, which is to say the absolute value of the relative error is less than some referential benchmark value.
def QYfG(_1qI, zDMu, eRdl=iSjc.Decimal('1E-9')): if not isinstance(_1qI, iSjc.Decimal): _1qI = iSjc.Decimal(_1qI) if not isinstance(zDMu, iSjc.Decimal): zDMu = iSjc.Decimal(zDMu) XObx = abs(_1qI - zDMu) if _1qI == 0: if zDMu == 0: return True return XObx < eRd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aT1D(o4D3, ajwV):\n if abs(o4D3 - ajwV) <= mNmR:\n return True\n return False", "def cnd2(_1qI: float, zDMu: float, P1dF: float) -> bool:\n if abs(_1qI - zDMu) < P1dF:\n return True\n return False", "def oilP(WKvO, LVAh):\n return abs(WKvO - LVAh) < eBM9", "def KQVf(WKvO: flo...
[ "0.7548929", "0.71317583", "0.700821", "0.6881023", "0.67989886", "0.67319375", "0.66923684", "0.6684985", "0.66588753", "0.6652563", "0.66485775", "0.66010374", "0.657033", "0.6560013", "0.65048045", "0.65044624", "0.64887196", "0.6473519", "0.64599335", "0.6443668", "0.6436...
0.64375395
20
Return self == other.
def xa14(YKHO, Elif): return YKHO._real == Elif.real and YKHO._imag == Elif.imag
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n return InF8(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return YKHO is E...
[ "0.9198537", "0.9198537", "0.9066762", "0.9051376", "0.9051376", "0.90299064", "0.8804954", "0.87542135", "0.87542135", "0.8745204", "0.87217265", "0.87139297", "0.8660616", "0.8639041", "0.8623532", "0.8623532", "0.861087", "0.86094683", "0.85829055", "0.8562941", "0.8560450...
0.0
-1
Return self != other.
def Vdqg(YKHO, Elif): return YKHO._real != Elif.real or YKHO._imag != Elif.imag
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return n...
[ "0.91486967", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", "0.9095688", ...
0.0
-1
Returns the real component of self.
def ZbWC(YKHO): return YKHO._real
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UksD(YKHO):\n return YKHO._component", "def UksD(YKHO):\n return YKHO._component", "def fhLn(YKHO):\n return _VfD.ASTNode_getReal(YKHO)", "def wWvP(YKHO):\n return YKHO.__array_ufunc__(oyIN.real, '__call__', YKHO)", "def WKvO(YKHO):\n return YKHO[0]", "def hNO6(YKHO):\n return mJjH....
[ "0.70407456", "0.70407456", "0.6786648", "0.6683108", "0.6659795", "0.64961165", "0.6467658", "0.6467658", "0.6447271", "0.6337336", "0.63372976", "0.62657636", "0.6202698", "0.61456364", "0.61456364", "0.61456364", "0.61456364", "0.61456364", "0.61456364", "0.61456364", "0.6...
0.0
-1
Returns True if both components have the same exponent or if both components are NaN.
def zJUd(YKHO, QpfX=None): return YKHO._real.same_quantum(YKHO._imag, QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xg3M(wNuL, Mlb1, mHct):\n if Vu05(wNuL, mHct) and Vu05(Mlb1, mHct):\n return True\n return wNuL == Mlb1", "def Sloh(wNuL, Mlb1):\n return q402(wNuL) and q402(Mlb1) or wNuL == Mlb1", "def nxS0(WKvO: float) -> bool:\n return WKvO != WKvO", "def C68P(TP50, fHZS):\n return round(TP50 - ...
[ "0.678818", "0.6634419", "0.6394451", "0.61989486", "0.61525494", "0.60909194", "0.6079987", "0.607357", "0.60450697", "0.60420126", "0.6006073", "0.5983916", "0.5967535", "0.5935726", "0.59140116", "0.5900962", "0.58940023", "0.58644414", "0.58503306", "0.58083636", "0.57963...
0.0
-1
Returns True or False on winning weapons.
def rk5s(YKHO, a0GJ, TLv5): return a0GJ == 'rock' and TLv5 == 'scissors' or (a0GJ == 'scissors' and TLv5 == 'paper') or (a0GJ == 'paper' and TLv5 == 'rock')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jYdw(YKHO):\n return True", "def kTv5(YKHO):\n if YKHO.current_room.name == 'Victory':\n return True\n else:\n return False", "def jYdw(YKHO):\n if YKHO.game_is_tied():\n return False\n NHrC = YKHO.steps_available(YKHO.loc)\n XGXK = YKHO.steps_available(YKHO.opponent_...
[ "0.77233344", "0.76039624", "0.7554692", "0.70986086", "0.70483893", "0.7028392", "0.6982729", "0.69607526", "0.6934914", "0.6888762", "0.68240255", "0.6802607", "0.67202747", "0.6705797", "0.6696729", "0.66643006", "0.66197366", "0.65990067", "0.65852463", "0.6563705", "0.65...
0.0
-1
Sets the branch_match_kind of this Branchrestriction.
def w17W(YKHO, w17W): if w17W is None: raise ValueError('Invalid value for `branch_match_kind`, must not be `None`') BbPm = ['branching_model', 'glob'] if w17W not in BbPm: raise ValueError('Invalid value for `branch_match_kind` ({0}), must be one of {1}'.format(w17W, BbPm)) YKHO._branch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w17W(YKHO):\n return YKHO.get_data('branch_match_kind')", "def FIMM(YKHO, w17W=None, GQKl=None, moMn=None, id=None, eJTR=None, wPdp=None, mXDZ=None, DW23=None, BWXx=None):\n YKHO._branch_match_kind = None\n YKHO._branch_type = None\n YKHO._groups = None\n YKHO._id = None\n YKHO._kind = None...
[ "0.660618", "0.6483435", "0.5436025", "0.542187", "0.5382977", "0.5370938", "0.5316458", "0.51883185", "0.5144634", "0.51438063", "0.50719225", "0.48980653", "0.4870266", "0.47889227", "0.47667858", "0.47437418", "0.47412166", "0.47246608", "0.47246513", "0.47222733", "0.4660...
0.8350047
0
Sets the branch_type of this Branchrestriction.
def GQKl(YKHO, GQKl): BbPm = ['feature', 'bugfix', 'release', 'hotfix', 'development', 'production'] if GQKl not in BbPm: raise ValueError('Invalid value for `branch_type` ({0}), must be one of {1}'.format(GQKl, BbPm)) YKHO._branch_type = GQKl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TG_K(YKHO, Qy0e):\n YKHO.type_balle = Qy0e", "def xO_s(YKHO, Pbul):\n YKHO.hgType = Pbul", "def xO_s(YKHO, Pbul):\n YKHO.huntGroup.setHgType(Pbul)", "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO.type = type", "def Q7_x(YKHO, YsUp):\n YKHO._type = YsUp", ...
[ "0.6524324", "0.6260105", "0.59710634", "0.59515464", "0.59515464", "0.58956015", "0.5889222", "0.5764757", "0.5651019", "0.5627617", "0.5578686", "0.55183876", "0.55183876", "0.55183876", "0.55183876", "0.5494313", "0.54888445", "0.54888445", "0.5484459", "0.5484459", "0.548...
0.79962516
0
Sets the groups of this Branchrestriction.
def moMn(YKHO, moMn): YKHO._groups = moMn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def moMn(YKHO, moMn):\n YKHO._groups = moMn", "def Ndlf(YKHO, moMn):\n YKHO.groups = moMn[:]", "def GJRy(YKHO, AQnM, moMn):\n YKHO._check_groups(moMn)\n YKHO._groups[AQnM] = tuple(moMn)", "def moMn(YKHO, moMn):\n if moMn is None:\n raise ValueError('Invalid value for `groups`, must not ...
[ "0.74621856", "0.7115692", "0.6383976", "0.63487846", "0.6155966", "0.5983142", "0.59386146", "0.5890647", "0.5849653", "0.5765736", "0.5755647", "0.5745167", "0.5715525", "0.57036144", "0.5703288", "0.5688512", "0.5666007", "0.5650765", "0.5638324", "0.56322986", "0.56005627...
0.7337564
3
Sets the id of this Branchrestriction.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def id(YKHO, id):\n if id is None:\n raise ValueError('Invalid value for `id`, must not be `None`')\n YKHO._id...
[ "0.71410817", "0.6904162", "0.6784741", "0.6675873", "0.6522554", "0.6522554", "0.6522554", "0.6505147", "0.6480972", "0.64220935", "0.64220935", "0.64220935", "0.64220935", "0.64220935", "0.64220935", "0.64220935", "0.64220935", "0.64220935", "0.64220935", "0.64220935", "0.6...
0.0
-1
Sets the kind of this Branchrestriction.
def eJTR(YKHO, eJTR): if eJTR is None: raise ValueError('Invalid value for `kind`, must not be `None`') BbPm = ['require_tasks_to_be_completed', 'require_passing_builds_to_merge', 'force', 'require_all_dependencies_merged', 'push', 'require_approvals_to_merge', 'enforce_merge_checks', 'restrict_merges',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def meGU(YKHO, X4oY):\n YKHO.kind = X4oY", "def eJTR(YKHO, eJTR):\n YKHO._kind = eJTR", "def type(YKHO, eJTR):\n YKHO.type = eJTR", "def rY8W(L4A2, LSXZ):\n pass", "def w17W(YKHO, w17W):\n if w17W is None:\n raise ValueError('Invalid value for `branch_match_kind`, must not be `None`')...
[ "0.68285924", "0.6470312", "0.6317965", "0.62362915", "0.6006996", "0.5924938", "0.5904838", "0.58630073", "0.5789489", "0.57533014", "0.57399637", "0.5734314", "0.5698222", "0.56862885", "0.5636929", "0.5548835", "0.5484049", "0.53875524", "0.5307235", "0.5279889", "0.523345...
0.61608446
4
Sets the links of this Branchrestriction.
def wPdp(YKHO, wPdp): YKHO._links = wPdp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wPdp(YKHO, wPdp):\n YKHO._links = wPdp", "def wPdp(YKHO, wPdp):\n if wPdp is None:\n raise ValueError('Invalid value for `links`, must not be `None`')\n YKHO._links = wPdp", "def wPdp(YKHO, wPdp):\n YKHO.container['links'] = wPdp", "def bvaK(YKHO, nHgl):\n YKHO.cannotLinkConstraints...
[ "0.75328267", "0.73548615", "0.6972824", "0.68244547", "0.67944944", "0.6548574", "0.6494223", "0.6267699", "0.61857617", "0.6082956", "0.6028528", "0.60262114", "0.6000829", "0.59866095", "0.58545965", "0.56815594", "0.56507695", "0.5562596", "0.5527477", "0.55181044", "0.55...
0.7473172
11
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, Do7_): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84568954", "0.83923674", "0.81447554", "0.81407183", "0.81326675", "0.80941343", "0.8092415", "0.8092415", "0.8092415", "0.8085536", "0.8085536", "0.8076502", "0.8076502", "0.8066026" ]
0.0
-1
Check the vertex equals another, returns a Boolean.
def xa14(YKHO, Elif): if type(Elif) is type(YKHO): return YKHO.x == Elif.x and YKHO.y == Elif.y and (YKHO.z == Elif.z) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, nZF_):\n return YKHO.name == nZF_.name and YKHO.state == nZF_.state", "def xa14(YKHO, Elif: Vertex) -> bool:\n if isinstance(Elif, YKHO.__class__):\n return YKHO.id == Elif.id and YKHO.edges == Elif.edges\n return False", "def xa14(YKHO, Elif):\n return YKHO.vertices == Elif.v...
[ "0.83838844", "0.83070326", "0.75481176", "0.737792", "0.715381", "0.6971738", "0.69161123", "0.69116545", "0.69053376", "0.69039017", "0.68875784", "0.6885239", "0.6873749", "0.6844305", "0.6834107", "0.6818732", "0.6815809", "0.6805608", "0.6804715", "0.67558473", "0.675584...
0.68496317
13
Check the vertex equals another, returns a Boolean.
def JWbp(YKHO, Elif): if type(Elif) is type(YKHO): return YKHO.x < Elif.x and YKHO.y < Elif.y and (YKHO.z < Elif.z) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, nZF_):\n return YKHO.name == nZF_.name and YKHO.state == nZF_.state", "def xa14(YKHO, Elif: Vertex) -> bool:\n if isinstance(Elif, YKHO.__class__):\n return YKHO.id == Elif.id and YKHO.edges == Elif.edges\n return False", "def xa14(YKHO, Elif):\n return YKHO.vertices == Elif.v...
[ "0.83833754", "0.8306732", "0.75479376", "0.73782146", "0.7153019", "0.6973345", "0.6917412", "0.6912378", "0.6905216", "0.69050443", "0.6888866", "0.68868613", "0.6875014", "0.6852429", "0.68460214", "0.6833924", "0.6819111", "0.68172264", "0.68060887", "0.6805833", "0.67575...
0.0
-1
Get a config attribute. If the attribute is defined in the userspecified file, that is used, otherwise the default config file attribute is used if possible. If the attribute is a dictionary, the items in config and default_config will be merged.
def tgzD(YKHO, hkS8): t4px = YKHO.get_default_config(hkS8) pmOv = t4px if YKHO.config is not None: try: pmOv = getattr(YKHO.config, hkS8) except AttributeError: pass if isinstance(pmOv, dict): pmOv = dict(t4px.items() + pmOv.items()) return pmOv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO, cEyu, xC3W):\n if xC3W in YKHO._config[cEyu]:\n return YKHO._config[cEyu][xC3W]\n else:\n return None", "def yDgW(YKHO, hkS8):\n pmOv = None\n try:\n pmOv = getattr(YKHO.config_default, hkS8)\n except AttributeError:\n pass\n return pmOv", "def yDgW(...
[ "0.6982713", "0.688402", "0.688402", "0.6746678", "0.6355968", "0.6295456", "0.6233581", "0.62221605", "0.6165364", "0.60803264", "0.6016906", "0.59591967", "0.5928763", "0.59222674", "0.5912237", "0.5907417", "0.5904703", "0.58924955", "0.58680886", "0.5863755", "0.5840508",...
0.6954067
2
Get a config attribute from the default config file.
def yDgW(YKHO, hkS8): pmOv = None try: pmOv = getattr(YKHO.config_default, hkS8) except AttributeError: pass return pmOv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(hkS8):\n if not hasattr(GPtr, 'config'):\n with open('config.json') as eHNT:\n GPtr.config = eval(eHNT.read())\n Q6kx = GPtr.config\n for Q7me in hkS8.split('.'):\n Q6kx = Q6kx[Q7me]\n return Q6kx", "def tgzD(YKHO, cEyu, xC3W):\n if xC3W in YKHO._config[cEyu]:\n ...
[ "0.69072163", "0.68364984", "0.68191034", "0.68070394", "0.67674494", "0.6752202", "0.67013013", "0.6679043", "0.6679043", "0.66362315", "0.6618547", "0.6600685", "0.6594299", "0.658867", "0.6563987", "0.6536496", "0.6503308", "0.64591897", "0.6441625", "0.643911", "0.6423064...
0.76260424
1
Set led to on or off
def jZCl(YKHO, zF0X=True): if zF0X: xi8C.output(YKHO.LED, xi8C.HIGH) else: xi8C.output(YKHO.LED, xi8C.LOW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LciP(YKHO):\n d6Md = 0\n while d6Md != '':\n d6Md = input('Enter 0 or 1 to turn LED on or off or enter to exit.\\n')\n if d6Md == '0':\n YKHO.board.write(b'0')\n ITS7.sleep(1)\n elif d6Md == '1':\n YKHO.board.write(b'1')\n ITS7.sleep(1)\n ...
[ "0.79782146", "0.7749223", "0.7710936", "0.7599412", "0.7477314", "0.74591464", "0.742145", "0.72503704", "0.72437567", "0.723886", "0.72186434", "0.7209715", "0.72033614", "0.71153045", "0.710765", "0.7073784", "0.7063215", "0.70554596", "0.70242", "0.7020301", "0.6982956", ...
0.8478801
0
Remove the statistics after the simulation is over.
def Uq54(YKHO): YKHO._stats = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tf3z(YKHO):\n YKHO.stats.reset()", "def Tf3z(YKHO):\n YKHO.stats.reset()", "def AKii(YKHO):\n try:\n return YKHO._clearstats\n except Exception as e:\n raise tTpl", "def AKii(YKHO):\n try:\n return YKHO._clearstats\n except Exception as e:\n raise tTpl", "d...
[ "0.75836", "0.75836", "0.7306759", "0.7306759", "0.7306759", "0.7306759", "0.7048999", "0.7031562", "0.69378775", "0.6798965", "0.6756686", "0.6756686", "0.6756686", "0.6756686", "0.6693251", "0.66695166", "0.66652423", "0.6624123", "0.6605653", "0.64991975", "0.64556265", ...
0.7928672
0
Convert a ``numpy.ndarray`` to tensor. See ``ToTensor`` for more details.
def MD8Z(xKOL): if not Ve1f(xKOL): raise TypeError('pic should be ndarray. Got {}'.format(type(xKOL))) VXjJ = ht2j.from_numpy(xKOL.transpose((2, 0, 1))) if isinstance(VXjJ, ht2j.ByteTensor): return VXjJ.float().div(255) else: return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BiYq(qw7D, begE=None):\n vhpA = ht2j.from_numpy(qw7D)\n return vhpA", "def BiYq(qw7D, jf3N=-1):\n vhpA = ht2j.from_numpy(qw7D)\n if jf3N >= 0:\n vhpA = vhpA.cuda(jf3N)\n return vhpA", "def WTDd(vhpA):\n raise NotImplementedError", "def syWo(qw7D):\n vhpA = ht2j.from_numpy(qw7D...
[ "0.8022027", "0.7629677", "0.7398654", "0.73371905", "0.68952143", "0.68611306", "0.68370765", "0.6781893", "0.6735821", "0.6712615", "0.6666945", "0.6653137", "0.651048", "0.64829683", "0.6482934", "0.64753187", "0.6411293", "0.6337385", "0.6335414", "0.63148385", "0.6294852...
0.56928414
56
Get number of days in month.
def ImM5(YKHO): return YKHO.value.max_days
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhrV(YKHO):\n return GRk0.monthrange(YKHO.year, YKHO.month)[1]", "def vhrV(lO87, x0eS):\n qE0M = wTnG(lO87, x0eS)[1]\n return qE0M", "def Y6l4(lO87=2019, x0eS=1):\n return wTnG(lO87, x0eS)[1]", "def YD1v(lO87, x0eS):\n RJtn = kUN6(OxLQ(lO87))\n return RJtn[x0eS - 1]", "def Oaiy(YKHO) ...
[ "0.8454375", "0.794394", "0.79145175", "0.7765448", "0.7725565", "0.7708659", "0.76919466", "0.76673126", "0.7550836", "0.7549315", "0.75278175", "0.72877043", "0.7282457", "0.7255492", "0.7255492", "0.7198137", "0.71825606", "0.7153615", "0.71391714", "0.71391714", "0.713917...
0.0
-1
Get ordinal of month.
def VVMx(YKHO): return YKHO.value.ordinal
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0eS(YKHO) -> int:\n if YKHO.is_old_style:\n return int(YKHO.split('/', 1)[1][2:4])\n return int(YKHO[2:4])", "def _3oT(YKHO):\n return (YKHO.month - 1) * 20 + YKHO.day - 1", "def x0eS(YKHO) -> int:\n return YKHO.arxiv_id.month", "def E2ep(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get...
[ "0.75749946", "0.74889636", "0.73740244", "0.7161771", "0.7161771", "0.70405376", "0.69933325", "0.69933325", "0.68510437", "0.6839338", "0.6826002", "0.68003434", "0.68003434", "0.67992705", "0.6790069", "0.675658", "0.6746827", "0.6716623", "0.6703019", "0.6694222", "0.6564...
0.6379779
28
Return object 'Month' by ordinal.
def g95C(VVMx): if not isinstance(VVMx, int): raise ValueError('Ordinal must be integer.') for x0eS in KqIa: if x0eS.ordinal == VVMx: return x0eS return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0eS(YKHO) -> int:\n return YKHO.arxiv_id.month", "def x0eS(YKHO):\n return X_Rw.month.Month(YKHO.calendar_month, YKHO.calendar_year)", "def x0eS(YKHO):\n return YKHO._months", "def x0eS(YKHO, x0eS: str):\n return _mmD(YKHO.months, 'month', x0eS)", "def x0eS(YKHO):\n return YKHO.__month"...
[ "0.69983417", "0.6950296", "0.6868998", "0.6794386", "0.67482686", "0.66860425", "0.66860425", "0.6682167", "0.6616864", "0.66096556", "0.6601976", "0.65622497", "0.65622497", "0.6508325", "0.6494035", "0.6474948", "0.6461141", "0.642812", "0.6424749", "0.6410988", "0.6408480...
0.6495497
14
Get number of days in month.
def DuP6(YKHO, lO87=None): soYV = YKHO._max_days if YKHO.name == 'FEBRUARY': if lO87 is None: raise ValueError("Year is necessary for 'FEBRUARY'.") return soYV[1] if YKHO.is_leap(lO87) else soYV[0] return soYV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhrV(YKHO):\n return GRk0.monthrange(YKHO.year, YKHO.month)[1]", "def vhrV(lO87, x0eS):\n qE0M = wTnG(lO87, x0eS)[1]\n return qE0M", "def Y6l4(lO87=2019, x0eS=1):\n return wTnG(lO87, x0eS)[1]", "def YD1v(lO87, x0eS):\n RJtn = kUN6(OxLQ(lO87))\n return RJtn[x0eS - 1]", "def Oaiy(YKHO) ...
[ "0.8454375", "0.794394", "0.79145175", "0.7765448", "0.7725565", "0.7708659", "0.76919466", "0.76673126", "0.7550836", "0.7549315", "0.75278175", "0.72877043", "0.7282457", "0.7255492", "0.7255492", "0.7198137", "0.71825606", "0.7153615", "0.71391714", "0.71391714", "0.713917...
0.0
-1
Gets the number of open trades
def aiNn(YKHO): m_mG = YKHO.oanda.get_trades(YKHO.account_id) m_mG = len(m_mG['trades']) return m_mG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def _get_num_open_trades(YKHO) -> int:\n mLGw = 0\n for q2Xo in YKHO.trades:\n mLGw += len(YKHO.trades[q2Xo]['open'])\n return mLGw", "async def _get_num_open_high_low_trades(YKHO) -> float:\n gqRb = 0\n ODP9 = 0\n for q2Xo in YKHO.trades:\n izFS = YKHO.market.adjusted_close...
[ "0.9037047", "0.73155195", "0.7179559", "0.7101679", "0.6668676", "0.65677446", "0.6369358", "0.6217808", "0.62137926", "0.61293733", "0.6116637", "0.60710436", "0.6048239", "0.60423577", "0.601068", "0.601068", "0.59848744", "0.5967277", "0.5851773", "0.5831641", "0.582883",...
0.6888877
4
Add experience to the buffer
def SStx(YKHO, GsKL: Experience) -> None: YKHO.buffer.append(GsKL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, GsKL):\n YKHO.buffer.append(GsKL)", "def ilp5(YKHO, XeOP, QTBn, vOGg, f9TP):\n YKHO.replay_buffer.add_experience(XeOP, QTBn, vOGg, f9TP)", "def SStx(YKHO, GsKL):\n YKHO.buffer.append(GsKL)\n YKHO.number += 1", "def H2v5(YKHO, GsKL: []):\n if len(YKHO.buffer) + len(GsKL) >= YKHO....
[ "0.8270671", "0.7972978", "0.7935725", "0.7499212", "0.7168458", "0.6970688", "0.64405805", "0.6439643", "0.6391008", "0.6333003", "0.62965715", "0.6290895", "0.6290808", "0.62784195", "0.61150753", "0.6087419", "0.6083567", "0.6074423", "0.6072279", "0.60656404", "0.60410774...
0.7916825
3
Extracts word embeddings from a model. Words is a list that stores all words you want to extract.
def B8GD(C3ST, V22M): KTQ3 = {} for GIN8 in V22M: KTQ3[GIN8] = C3ST[GIN8] return KTQ3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1PJ(YKHO, DWkG, C3ST):\n print(' ** Embedding words')\n V22M = DWkG.words\n F_On = [C3ST.get_word_vector(GIN8) for GIN8 in V22M]\n return [(yzQ0, *Ty9i) for yzQ0, Ty9i in zip(V22M, F_On)]", "def PPWO(YKHO, V22M):\n if not YKHO._is_cased_embedding:\n return YKHO._word_vocab[[GIN8.low...
[ "0.7265877", "0.668241", "0.6576272", "0.6500501", "0.6433811", "0.64005715", "0.63875705", "0.6342498", "0.6318351", "0.6253743", "0.61638373", "0.6144107", "0.6135777", "0.6128297", "0.6110521", "0.6087532", "0.60740346", "0.60688305", "0.6054182", "0.6012976", "0.59826314"...
0.77758694
0
returns accurate path for wit folder, keyword can be 'images' or 'staging_area' because those are the dirs to be found in .wit. If no keyword is given, return the path of .wit dir
def Sapi(peBr=None): if not peBr: peBr = '.wit' for tk5Y, AQSv, bGrB in Hy7s.walk(Hy7s.getcwd()): for Csk6 in AQSv: if Csk6 == peBr and '.wit' in tk5Y: pmON = Hy7s.path.join(tk5Y, Csk6) return pmON if Csk6 == peBr: pmON = Hy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuOs(Ux0P):\n cCAD = False\n for tk5Y, AQSv, RRlC in Hy7s.walk(Hy7s.getcwd()):\n for Csk6 in AQSv:\n if Csk6 == Ux0P:\n cCAD = True\n for eHNT in RRlC:\n if eHNT == Ux0P:\n cCAD = True\n if cCAD:\n pmON = Hy7s.path.join(t...
[ "0.63301", "0.56051725", "0.55470157", "0.5512353", "0.5512353", "0.5460567", "0.5299562", "0.52823067", "0.5281486", "0.52296907", "0.52296907", "0.52296907", "0.5213343", "0.515731", "0.5156855", "0.51405036", "0.51170063", "0.51162934", "0.5097116", "0.5057716", "0.5056171...
0.80345017
0
return path for a filename that is outside of .wit folder
def uuOs(Ux0P): cCAD = False for tk5Y, AQSv, RRlC in Hy7s.walk(Hy7s.getcwd()): for Csk6 in AQSv: if Csk6 == Ux0P: cCAD = True for eHNT in RRlC: if eHNT == Ux0P: cCAD = True if cCAD: pmON = Hy7s.path.join(tk5Y, Ux0P) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sapi(peBr=None):\n if not peBr:\n peBr = '.wit'\n for tk5Y, AQSv, bGrB in Hy7s.walk(Hy7s.getcwd()):\n for Csk6 in AQSv:\n if Csk6 == peBr and '.wit' in tk5Y:\n pmON = Hy7s.path.join(tk5Y, Csk6)\n return pmON\n if Csk6 == peBr:\n ...
[ "0.6868828", "0.6712559", "0.6710115", "0.66976225", "0.66645324", "0.6653813", "0.6525332", "0.6494162", "0.64756966", "0.6475048", "0.64653164", "0.64574844", "0.6453546", "0.64271796", "0.6399978", "0.6398724", "0.63881546", "0.637245", "0.63635427", "0.6319702", "0.631886...
0.7927605
0
Add a viapoint to the trajectory Observations and corresponding basis activations
def AXaA(YKHO, a1PO, GLdF, qVFv=1e-06): YKHO._viapoints.append({'t': a1PO, 'traj_point': GLdF, 'traj_point_sigma': qVFv})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLpQ(YKHO, WKvO, AOlJ):\n YKHO.v.append([WKvO, AOlJ])\n YKHO.poli = None", "def QO1E(YKHO, WKvO):\n YKHO.I += YKHO.V[WKvO]", "def JLpQ(YKHO, WKvO, AOlJ, Jw7X):\n YKHO.v.append([WKvO, AOlJ, Jw7X])\n YKHO.v.append([WKvO, AOlJ, Jw7X])\n YKHO.poli = None", "def q_Tz(YKHO, GLdF, qVFv=1e-06):...
[ "0.5817057", "0.5759475", "0.5742527", "0.56013054", "0.545676", "0.5419693", "0.54117703", "0.53282315", "0.5310157", "0.53041965", "0.5267117", "0.5218006", "0.517006", "0.5151938", "0.51368517", "0.5098627", "0.5056349", "0.50355524", "0.50213325", "0.4967857", "0.49663374...
0.7220424
0
Checks if an example contains a transit event or not.
def YtOc(YKHO, z6xv): D5vm = YKHO.meta_data_frame[YKHO.meta_data_frame['disposition'] == 'PC'] return z6xv in D5vm['lightcurve_path'].values
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wsi3(YKHO):\n if type(YKHO.source) is SBAB and type(YKHO.target) is QRWf or (type(YKHO.source) is QRWf and type(YKHO.target) is SBAB):\n YKHO._is_event_timex = True\n elif type(YKHO.source) is QRWf and type(YKHO.target) is QRWf:\n YKHO._is_event_event = True\n elif type(YKHO.source) is S...
[ "0.6005038", "0.57885283", "0.5730419", "0.57259446", "0.57145303", "0.57056946", "0.56648713", "0.56540024", "0.5621802", "0.5603452", "0.5558246", "0.55431855", "0.5542522", "0.5534795", "0.55129504", "0.5475181", "0.54525983", "0.54235405", "0.5408933", "0.53454006", "0.53...
0.0
-1
Tests building fuzzers with invalid project name.
def lMmG(YKHO): with gbPf.TemporaryDirectory() as z_es: YKHO.assertFalse(JvTe.build_fuzzers('not_a_valid_project', 'oss-fuzz', z_es, commit_sha='0b95fe1039ed7c38fea1f97078316bfc1030c523'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eZb8(YKHO):\n YKHO.assertFalse(JvTe.check_fuzzer_build(Wdnm))", "def ZXBI(YKHO):\n YKHO.assertFalse(JvTe.build_fuzzers(CqPu, 'oss-fuzz', 'not/a/dir', commit_sha='0b95fe1039ed7c38fea1f97078316bfc1030c523'))", "def H9SD(YKHO):\n with gbPf.TemporaryDirectory() as z_es:\n YKHO.assertFalse(JvTe....
[ "0.76435965", "0.7348087", "0.71242833", "0.68992496", "0.6844128", "0.67781764", "0.6562975", "0.6561238", "0.6255851", "0.618119", "0.61574364", "0.6134565", "0.6042468", "0.6028488", "0.60157096", "0.58723766", "0.58681095", "0.573515", "0.5697077", "0.5688184", "0.5621889...
0.8437932
0
Update insurance array based on updated balance array
def rjb9(tVkP, C9fk, fjsh, Vp8p): wMl7 = tVkP[bbqi] kfTu = oyIN.zeros(len(tVkP[0])) kfTu[0] = tVkP[yP1g][0] kfTu[1:] = wMl7[1:] * C9fk + fjsh for or8S in range(len(kfTu)): if wMl7[or8S] <= 0: kfTu[or8S] = 0 return kfTu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZY0D(tVkP):\n AQnM = tVkP[MdiN]\n wpUv = oyIN.zeros(len(tVkP[0]))\n wpUv[0] = tVkP[bbqi][0]\n for or8S in range(1, len(tVkP[0])):\n wpUv[or8S] = wpUv[or8S - 1] - AQnM[or8S]\n if wpUv[or8S] < 0.01 and wpUv[or8S] > 0:\n wpUv[or8S] = 0\n return wpUv", "async def _update_b...
[ "0.6546169", "0.64840865", "0.62686056", "0.6048139", "0.6021053", "0.5924032", "0.5890425", "0.58120793", "0.5784999", "0.5744058", "0.5729858", "0.56960356", "0.5672298", "0.5654038", "0.5626236", "0.5617756", "0.56087947", "0.56087947", "0.56087947", "0.5598436", "0.559303...
0.7062385
0
Recalculate the insurance column based on user changes on insurance
def KN64(tVkP, Mdsf): IPV7 = tVkP[yP1g] for or8S in range(len(tVkP[0])): if Mdsf[or8S] != None: IPV7[or8S] = Mdsf[or8S] return IPV7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjb9(tVkP, C9fk, fjsh, Vp8p):\n wMl7 = tVkP[bbqi]\n kfTu = oyIN.zeros(len(tVkP[0]))\n kfTu[0] = tVkP[yP1g][0]\n kfTu[1:] = wMl7[1:] * C9fk + fjsh\n for or8S in range(len(kfTu)):\n if wMl7[or8S] <= 0:\n kfTu[or8S] = 0\n return kfTu", "def d5Jg(YKHO):\n pass", "def Caa5...
[ "0.6069558", "0.5998544", "0.5566583", "0.5510681", "0.54773957", "0.54104286", "0.5410082", "0.540798", "0.5368224", "0.5353994", "0.5350984", "0.53258336", "0.5324168", "0.5294887", "0.5258726", "0.52482384", "0.5230158", "0.5169313", "0.51664513", "0.5159043", "0.5138139",...
0.6058711
1
Return the precision of this complex field.
def eRdl(YKHO): return YKHO._prec
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO) -> float:\n return YKHO._matrix.precision", "def rhd_(YKHO):\n return YKHO.__precision", "def rhd_(YKHO):\n return YKHO.__precision", "def rhd_(YKHO):\n return p4BK", "def rhd_(YKHO):\n hG7h, g1pg = (len(YKHO.__true_positives), len(YKHO.__false_positives))\n return float(hG...
[ "0.80162644", "0.7938163", "0.7938163", "0.7619381", "0.72521555", "0.69013", "0.6884501", "0.68068284", "0.67756194", "0.6718772", "0.66843766", "0.66352844", "0.6630464", "0.66153187", "0.6564608", "0.6512811", "0.6203379", "0.6180934", "0.6172411", "0.6163582", "0.6084975"...
0.71333754
6
r""" Return a string representation of ``self`` in the Magma language.
def JdZx(YKHO, snrf): return 'ComplexField(%s : Bits := true)' % YKHO.prec()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n if __debug__:\n JBZA = 'CM' in dsE5.active\n else:\n JBZA = False\n return YKHO.asstring(short=False, header=True, summary=True, description=JBZA)", "def zAg0(YKHO):\n QxIo = '{} object in the {} language, consisting of {}...
[ "0.7128488", "0.7093338", "0.69856733", "0.69812316", "0.69684005", "0.69684005", "0.69525003", "0.6931051", "0.68866134", "0.68866134", "0.68866134", "0.6865793", "0.686535", "0.684833", "0.684833", "0.684833", "0.684833", "0.6842436", "0.6838721", "0.68160474", "0.6813367",...
0.0
-1
Compare ``self`` to ``other``.
def Aicm(YKHO, Elif): if not isinstance(Elif, eZ47): return eHkp(type(YKHO), type(Elif)) return eHkp(YKHO._prec, Elif._prec)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n raise NotImplementedError", "def xa14(YKHO, Elif):\n raise NotImplementedError", "def xa14(YKHO, Elif):\n raise NotImplementedError", "def Aicm(YKHO, Elif):\n if isinstance(Elif, type(YKHO)):\n return eHkp(YKHO.number, Elif.number)\n return NotImplemented", "de...
[ "0.7709011", "0.7709011", "0.7709011", "0.7670916", "0.7654335", "0.7654335", "0.764131", "0.76292026", "0.75581163", "0.75546825", "0.75511265", "0.75511265", "0.75511265", "0.75511265", "0.75489324", "0.75249094", "0.75054294", "0.7490404", "0.7490404", "0.7479606", "0.7457...
0.0
-1
Return a string representation of ``self``.
def aRbh(YKHO): return 'Complex Field with %s bits of precision' % YKHO._prec
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(YKHO) -> str:\n raise NotImplementedError", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return YKHO.as_string()", "def wHJl(YKHO) -> str:\n return str(YKHO)", "def CZBi(YKHO):\n return YKHO.__repr__()", "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO):...
[ "0.8741423", "0.87224996", "0.8680442", "0.85674626", "0.85082954", "0.8498878", "0.8472973", "0.84432036", "0.84432036", "0.84432036", "0.84432036", "0.84149486", "0.84149486", "0.84149486", "0.84149486", "0.84149486", "0.84149486", "0.84149486", "0.84149486", "0.84149486", ...
0.0
-1
r""" Return a latex representation of ``self``.
def eMsG(YKHO): return '\\Bold{C}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eMsG(YKHO):\n from sage.misc.latex import latex\n if YKHO.parent()._chart.manifold().options.textbook_output:\n return latex(L3v7(YKHO._express))\n else:\n return latex(YKHO._express)", "def eMsG(YKHO):\n if len(YKHO) == 0:\n return YKHO.__unit._latex_()\n try:\n z1...
[ "0.81067616", "0.76876116", "0.76216835", "0.74790126", "0.7452841", "0.7366953", "0.7366953", "0.7348528", "0.72450554", "0.72160286", "0.718362", "0.7082809", "0.70819694", "0.7045076", "0.7036125", "0.702141", "0.70076203", "0.696737", "0.69583", "0.6921434", "0.6907416", ...
0.67545474
25
r""" Return the characteristic of `\CC`, which is 0.
def rkjD(YKHO): from .integer import Integer return Integer(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nq1b(YKHO, EcVT):\n return 0", "def oAYX(Fg_i):\n return f'{int(bool(Fg_i)):>{trmE}}'", "def yaJB(YKHO):\n HRJ_ = YKHO.tp\n pWm4 = YKHO.tn\n ytgA = YKHO.fp\n FYKK = YKHO.fn\n return HRJ_ * pWm4 / oyIN.sqrt((HRJ_ + ytgA) * (HRJ_ + FYKK) * (pWm4 + ytgA) * (pWm4 + FYKK))", "def yaJB(YKH...
[ "0.63939583", "0.62558913", "0.6185733", "0.5951148", "0.5950505", "0.5924652", "0.58709973", "0.5856308", "0.5794466", "0.5776383", "0.5724243", "0.5705976", "0.5692357", "0.5653391", "0.5582844", "0.5581636", "0.55805135", "0.55805135", "0.5534668", "0.55254614", "0.5509804...
0.5670158
13
Ensure the window length provided to a transform is valid.
def uM83(XfQO): if XfQO is None: raise sK3B('window_length must be provided') if not isinstance(XfQO, wpGN): raise sK3B('window_length must be an integer-like number') if XfQO == 0: raise sK3B('window_length must be non-zero') if XfQO < 0: raise sK3B('window_length must b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fT92(YKHO):\n with trZe.raises(cB0D):\n EAyl(inputs=[L4Ul()])\n EAyl(inputs=[L4Ul()], window_length=1)", "def EDOA(u54L, KnxT):\n Xgmb(w_5H.hanning(u54L), oyIN.array(KnxT))", "def RSm2(YKHO):\n UKoM = Ds0J('0 1.2 2.1 3.4 0.02 0.01 1.02 0.08')\n SxwQ = Ds0J('0.5 1.0 4.1 0.0 0.0 1.23 0....
[ "0.61781234", "0.57504064", "0.5594496", "0.55634314", "0.5485149", "0.53104687", "0.5258147", "0.5211918", "0.51369745", "0.5125402", "0.51213956", "0.5102692", "0.50767523", "0.5075916", "0.50742066", "0.5053022", "0.5029944", "0.5006983", "0.49745876", "0.49557382", "0.495...
0.7018821
0
Remove all cells with library size above or below a certain threshold.
def EVXl(nPrm, *T8Rw, tAX0=None, yArv=None, Kw2W=None, VBDo=False, P4s4=None, qYYb=None): PDA6 = Tcon.library_size(nPrm) return BoNY(nPrm, *T8Rw, values=PDA6, cutoff=tAX0, percentile=yArv, keep_cells=Kw2W, return_values=VBDo, sample_labels=P4s4, filter_per_sample=qYYb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _FsE(NCls, gwAu):\n D38U = []\n for YRbF, WKvO in NCls.iterrows():\n if WKvO['size'] < gwAu:\n D38U.append(YRbF)\n print('Numero de imagenes: ', len(NCls) - len(D38U), ' de ', len(NCls))\n return NCls.drop(D38U)", "def K7KD(oUSw, qonS):\n VTcd, ObL9 = (oUSw[:, 2] - oUSw[:, 0]...
[ "0.6857945", "0.66592896", "0.6406223", "0.633541", "0.633541", "0.6328605", "0.6296911", "0.6255339", "0.61858565", "0.59448", "0.59253705", "0.5911765", "0.58696234", "0.5844147", "0.5844072", "0.584353", "0.58364373", "0.5801732", "0.58010906", "0.57729167", "0.57339525", ...
0.6291844
7
Filter all duplicate cells.
def wJVv(nPrm, *T8Rw, P4s4=None): if P4s4 is not None: qmLP.warn('`sample_labels` is deprecated. Passing `sample_labels` as `extra_data`.', DeprecationWarning) T8Rw = list(T8Rw) + [P4s4] gsuv = h_r4(nPrm) nPrm = EfUA.select_rows(nPrm, *T8Rw, idx=gsuv) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MsoG(YKHO):\n from axs.catalog import AxsCatalog\n return YKHO.filter(YKHO._df[AxsCatalog.DUP_COLNAME] == 0)", "def iSC8(YKHO):\n\n def zmrZ():\n lRtJ = set()\n for IZ6w, E0Gw, yzQ0 in YKHO.gen:\n if (min(IZ6w, E0Gw), max(IZ6w, E0Gw)) in lRtJ:\n continue\n ...
[ "0.6507822", "0.6353606", "0.60733736", "0.60639966", "0.59615827", "0.5895223", "0.5846177", "0.58456755", "0.57898045", "0.57874453", "0.5745656", "0.5714447", "0.5706828", "0.5698283", "0.5634563", "0.5620885", "0.55829716", "0.555794", "0.54890656", "0.54648495", "0.54597...
0.5347904
26
Return xmlformatted string representing query result.
def a1rL(xDcj): tk5Y = sjWw(xDcj) vxAb = '\n'.join((' {col} CDATA #REQUIRED'.format(col=fvDH) for fvDH in xDcj.cols)) GgKa = '<!DOCTYPE {root} [\n <!ELEMENT {root} ({row})*>\n <!ELEMENT {row} EMPTY>\n <!ATTLIST {row}\n{attlist}\n >\n]>'.format(root=xDcj.root, row=xDcj.row, attlist=vxAb) return QGpr.tos...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Infz(YKHO, nVWr):\n dixj = nVWr.data\n i_PC = VvkT()\n ChRH = i_PC.dumps({'data': dixj})\n print(ChRH)\n return ''", "def format(Emd4, Aofo, Zj3e='result', hKIB='head', Iij1='row'):\n U5bT = '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n'\n U5bT += '<%s>' % Zj3e + '\\n'\n U5bT += ' <...
[ "0.8073055", "0.7138711", "0.66492414", "0.637289", "0.6335337", "0.6314267", "0.60827446", "0.60282624", "0.6000834", "0.5980814", "0.59194195", "0.58998626", "0.58989894", "0.5879399", "0.5877428", "0.58768123", "0.58663577", "0.5855469", "0.58418506", "0.5834019", "0.58238...
0.70674473
2
Return jsonformatted string representing query result.
def H5zg(xDcj): usx6 = [dict(rdlD.attrib) for rdlD in sjWw(xDcj)] return qQXR.dumps(usx6, indent=2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KiiV(YKHO, nVWr):\n dixj = nVWr.data\n i_PC = j8tJ()\n ChRH = i_PC.dumps(dixj)\n print(ChRH)\n return ''", "def u5_P(YKHO, Aofo):\n return str(Aofo)", "def KKK3(dixj):\n U5Jc = qQXR.loads(dixj.to_json())\n O_hj = qQXR.dumps(U5Jc, indent=4)\n return O_hj", "def IZ3T(YKHO):\n ...
[ "0.8192802", "0.68817216", "0.6860699", "0.67340505", "0.66919434", "0.66919434", "0.66919434", "0.66919434", "0.66919434", "0.66919434", "0.66919434", "0.66919434", "0.66919434", "0.66919434", "0.6685108", "0.6682299", "0.665037", "0.6637528", "0.6635697", "0.6635697", "0.66...
0.6854796
3
Returns the next probe that must be run immediately. If the earliest available probe needs to be run later, this will internally wait until it's time to run the probe. If the scheduling queue changes while waiting, the earliest scheduled probe will be reelected immediately. This means that you can concurrently add and ...
async def get_next(YKHO) -> ThAv: b6Gq: h8nf[HwIj] = None while b6Gq is None: try: b6Gq = YKHO.queue[0] except IndexError: async with YKHO.queue_changed: await YKHO.queue_changed.wait() else: with lkEY.move_on_at(b6Gq.next_time): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xn5b(YKHO):\n try:\n U5bT = YKHO._queue.get(block=True, timeout=0.5)\n YKHO._queue.task_done()\n return U5bT\n except gGq6.Empty:\n if not YKHO.is_running():\n raise\n else:\n return None", "def xn5b(YKHO):\n try:\n U5bT = YKHO._queue.g...
[ "0.61887944", "0.60196537", "0.59081274", "0.573002", "0.5656411", "0.5599499", "0.5520124", "0.54116374", "0.52884704", "0.5268198", "0.5264708", "0.52560306", "0.5237014", "0.5232957", "0.5217256", "0.51940256", "0.5187326", "0.51839", "0.51692384", "0.5098743", "0.5076269"...
0.86496276
0
BatchNorm1d over the batch, N. Requires shape (N, C, L). Otherwise, same as torch.nn.BatchNorm1d with extra num_channel. Cannot do the temporal batch norm case.
def FIMM(YKHO, Qi3c: int, HhVR: int, SGf8: float=1e-05, H0zq: float=0.1, rnv5: bool=True, zGSe: bool=True) -> None: HhVR = Qi3c * HhVR super().__init__(HhVR, SGf8, H0zq, rnv5, zGSe) YKHO.flatten = U78l.Flatten()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def idFg(FRUf):\n _hZ2 = 0.001\n _ni1, It1b = ZylS.nn.moments(FRUf, [0])\n FRUf = ZylS.nn.batch_normalization(FRUf, mean=_ni1, variance=It1b, offset=None, scale=None, variance_epsilon=_hZ2)\n return FRUf", "def idFg(YKHO, g4y1):\n WKvO = g4y1\n WKvO = YKHO.bn(WKvO)\n return WKvO", "def idF...
[ "0.70602345", "0.6922279", "0.6911417", "0.6898921", "0.6787584", "0.65479213", "0.6368629", "0.63485044", "0.6315762", "0.62954116", "0.62581193", "0.62194026", "0.6193065", "0.61433405", "0.6093739", "0.6082891", "0.60733795", "0.6065571", "0.6050721", "0.6043515", "0.60255...
0.0
-1
Convert tracker boxes to a standardized format (x, y, w, h)
def kTxB(oUSw, mUYN): IAbH = [] CS8v = [] for a1PO in oUSw: if mUYN: o4D3, si3g, ajwV, skBL, Huo2 = a1PO.astype(oyIN.int32) WKvO, LVAh, yzQ0, MKlR = (min(o4D3, ajwV), min(si3g, skBL), oyIN.abs(ajwV - o4D3), oyIN.abs(skBL - si3g)) else: WKvO, LVAh, yzQ0, MK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8Pe(zNig, FlUN):\n ncXl = 1.0 / zNig[0]\n GzWn = 1.0 / zNig[1]\n WKvO = (FlUN[0] + FlUN[1]) / 2.0\n LVAh = (FlUN[2] + FlUN[3]) / 2.0\n yzQ0 = FlUN[1] - FlUN[0]\n MKlR = FlUN[3] - FlUN[2]\n WKvO = WKvO * ncXl\n yzQ0 = yzQ0 * ncXl\n LVAh = LVAh * GzWn\n MKlR = MKlR * GzWn\n retu...
[ "0.6848397", "0.6612929", "0.6455999", "0.64266545", "0.64206326", "0.6216739", "0.62066585", "0.6170469", "0.61687094", "0.6116827", "0.6020458", "0.60040593", "0.59891135", "0.5978143", "0.5969502", "0.5967825", "0.59642386", "0.5929327", "0.5927229", "0.5903745", "0.589503...
0.68655056
0
Return an accumulator function that takes a single numeric argument and accumulates that argument into total, then returns total. >>> acc = make_accumulator() >>> acc(15) 15 >>> acc(10) 25 >>> acc2 = make_accumulator() >>> acc2(7) 7 >>> acc3 = acc2 >>> acc3(6) 13 >>> acc2(5) 18 >>> acc(4) 29
def bMpl(): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bMpl():\n sum = []\n\n def alQJ(WKvO):\n sum.append(WKvO)\n wjRY = 0\n for LihS in sum:\n wjRY += LihS\n return wjRY\n return alQJ", "def k06t(YKHO):\n raise NotImplementedError", "def GzH2():\n wjRY = 0\n\n def ksZE(WKvO):\n nonlocal total\n ...
[ "0.7567601", "0.6434998", "0.62577957", "0.62115055", "0.6123985", "0.6123985", "0.60399216", "0.60283095", "0.60177696", "0.59717524", "0.5931308", "0.5864821", "0.5806483", "0.57568526", "0.57179654", "0.5701432", "0.5651258", "0.56238264", "0.5621056", "0.5498875", "0.5488...
0.6917254
1
Sends a 401 response that enables basic auth
def NLCy(): return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7843114", "0.7824419", "0.776624", "0.7754693", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.771945", "0.7667712", "0.7664151", "0.76493174", "0.76140213", "0.76131...
0.7810746
26
Test homepage route with location params.
def TzCm(YKHO): with YKHO.client: geh0 = YKHO.client.get('/?location=US-CA') YKHO.assertEqual(geh0.status_code, 200) YKHO.assertIn(b'California News', geh0.data) geh0 = YKHO.client.get('/?location=US-FAKE') YKHO.assertEqual(geh0.status_code, 200) YKHO.assertIn(b'No da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)", "def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)", "def GvGQ(YKHO):\n geh0 = YKHO.app.get('/')\n YKHO.assertTrue(geh0.status_code, 200)", "def ...
[ "0.7126617", "0.7126617", "0.6980778", "0.69588023", "0.69265205", "0.68410796", "0.68087685", "0.6780387", "0.67687", "0.6744791", "0.6688457", "0.66666925", "0.666617", "0.6618392", "0.6618085", "0.6587523", "0.6515065", "0.6479519", "0.6477713", "0.6461935", "0.6437698", ...
0.7055962
2
Test login POST route w/ invalid credentials.
def fZ0C(YKHO): mv1M.signup(username='testuser2', password='PASSWORD', location='US-FL') NCls.session.commit() with P4t4.app_context(): L03z = qnV1(username='testuser2', password='WRONG_PASSWORD') with YKHO.client: geh0 = YKHO.client.post('/login', data=L03z.data, follow_redirects=True) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7oF(YKHO):\n Aofo = YKHO.client.post('/login', data={'username': 'test_user1', 'password': 'test_pass2'}, follow_redirects=True)\n YKHO.assertEqual(Aofo.status_code, 200)\n YKHO.assertIn(b'The password you inputed for test_user1 is incorrect. Try again!', Aofo.data)", "def Nz9D(YKHO, *bGrB):\n t...
[ "0.8252938", "0.82021385", "0.8058481", "0.803621", "0.80001605", "0.791227", "0.79057145", "0.7897973", "0.7865996", "0.7789902", "0.7751401", "0.7729049", "0.77182835", "0.77131015", "0.7707831", "0.76876646", "0.76692814", "0.7611026", "0.7602175", "0.7589674", "0.7543333"...
0.7219975
50
Test user location GET route w/o logged in user.
def AjLC(YKHO): with YKHO.client: P6bq = mv1M.query.first() geh0 = YKHO.client.get(f'/users/${P6bq.username}/location', follow_redirects=True) YKHO.assertIn(b'Unauthorized.', geh0.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JMDJ(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n with YKHO.client as Z9rn:\n with Z9rn.session_transaction() as cb_Q:\n cb_Q[tQkc] = IrOQ.id\n geh0 = Z9rn.get('/users/anotherUser/location', follow_redirects=True)\n YKHO.assertEqual(geh0.status_code, 2...
[ "0.72751456", "0.70904523", "0.67806196", "0.6583521", "0.65551674", "0.6539657", "0.6484461", "0.6366712", "0.6246071", "0.62313557", "0.6212521", "0.62110037", "0.6210344", "0.62081033", "0.6203838", "0.62025476", "0.619941", "0.61915636", "0.6153907", "0.61218476", "0.6121...
0.7437403
0
Test user location GET route w/ logged in user.
def ShpO(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() with YKHO.client as Z9rn: with Z9rn.session_transaction() as cb_Q: cb_Q[tQkc] = IrOQ.id geh0 = Z9rn.get(f'/users/{IrOQ.username}/location', follow_redirects=True) YKHO.assertEqual(geh0.status_code, 200) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JMDJ(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n with YKHO.client as Z9rn:\n with Z9rn.session_transaction() as cb_Q:\n cb_Q[tQkc] = IrOQ.id\n geh0 = Z9rn.get('/users/anotherUser/location', follow_redirects=True)\n YKHO.assertEqual(geh0.status_code, 2...
[ "0.73714465", "0.73374885", "0.6747311", "0.67367697", "0.64646333", "0.64151454", "0.6389424", "0.6379252", "0.63781023", "0.63493884", "0.6333009", "0.6326079", "0.62559444", "0.62451816", "0.62256205", "0.6218647", "0.6201266", "0.6200421", "0.6200421", "0.6196672", "0.617...
0.7192185
2
Test wrong user location GET route w/ logged in user.
def JMDJ(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() with YKHO.client as Z9rn: with Z9rn.session_transaction() as cb_Q: cb_Q[tQkc] = IrOQ.id geh0 = Z9rn.get('/users/anotherUser/location', follow_redirects=True) YKHO.assertEqual(geh0.status_code, 200) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AjLC(YKHO):\n with YKHO.client:\n P6bq = mv1M.query.first()\n geh0 = YKHO.client.get(f'/users/${P6bq.username}/location', follow_redirects=True)\n YKHO.assertIn(b'Unauthorized.', geh0.data)", "def ShpO(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n with YKHO.c...
[ "0.7383094", "0.7055438", "0.6973297", "0.68218935", "0.6774831", "0.6774831", "0.6774831", "0.6774831", "0.66833216", "0.6638217", "0.6563056", "0.6541757", "0.6528573", "0.6516021", "0.6514362", "0.6506936", "0.6506936", "0.6506936", "0.6417328", "0.64118284", "0.6396186", ...
0.7313256
1
Test user saved articles GET route w/o logged in user.
def slFp(YKHO): with YKHO.client: P6bq = mv1M.query.first() geh0 = YKHO.client.get(f'/users/${P6bq.username}/saved-articles', follow_redirects=True) YKHO.assertIn(b'Unauthorized.', geh0.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q83r(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n with YKHO.client as Z9rn:\n with Z9rn.session_transaction() as cb_Q:\n cb_Q[tQkc] = IrOQ.id\n geh0 = Z9rn.get('/users/anotherUser/location', follow_redirects=True)\n YKHO.assertEqual(geh0.status_code, 2...
[ "0.75301933", "0.7484046", "0.6795192", "0.6790967", "0.673682", "0.66530854", "0.6623884", "0.66120976", "0.65798074", "0.65774906", "0.65136284", "0.6437879", "0.64297575", "0.6372395", "0.6316534", "0.6299589", "0.62957436", "0.62810946", "0.62802845", "0.62760323", "0.624...
0.81484205
0
Test user saved articles GET route w/ logged in user.
def CMFD(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() with YKHO.client as Z9rn: with Z9rn.session_transaction() as cb_Q: cb_Q[tQkc] = IrOQ.id geh0 = Z9rn.get(f'/users/{IrOQ.username}/saved-articles', follow_redirects=True) YKHO.assertEqual(geh0.status_code, 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slFp(YKHO):\n with YKHO.client:\n P6bq = mv1M.query.first()\n geh0 = YKHO.client.get(f'/users/${P6bq.username}/saved-articles', follow_redirects=True)\n YKHO.assertIn(b'Unauthorized.', geh0.data)", "def Q83r(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n with ...
[ "0.80580217", "0.76165485", "0.6846217", "0.6821734", "0.67638856", "0.6754496", "0.6665632", "0.6643979", "0.66295296", "0.6603077", "0.65474147", "0.65359545", "0.65296173", "0.6502077", "0.6474109", "0.64039344", "0.63245237", "0.628762", "0.6285193", "0.62720716", "0.6264...
0.7561221
2
Test wrong user saved articles GET route w/ logged in user.
def Q83r(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() with YKHO.client as Z9rn: with Z9rn.session_transaction() as cb_Q: cb_Q[tQkc] = IrOQ.id geh0 = Z9rn.get('/users/anotherUser/location', follow_redirects=True) YKHO.assertEqual(geh0.status_code, 200) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slFp(YKHO):\n with YKHO.client:\n P6bq = mv1M.query.first()\n geh0 = YKHO.client.get(f'/users/${P6bq.username}/saved-articles', follow_redirects=True)\n YKHO.assertIn(b'Unauthorized.', geh0.data)", "def CMFD(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n with ...
[ "0.7879827", "0.72719616", "0.6872468", "0.68596584", "0.67939293", "0.67724085", "0.67254126", "0.6712251", "0.6711524", "0.6681882", "0.6681173", "0.65779424", "0.6541725", "0.65361035", "0.6509388", "0.6500808", "0.64987755", "0.6474946", "0.647328", "0.64704055", "0.64658...
0.75056505
1
Test user saved article POST route w/ logged in user.
def DKEX(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() jzdc = wHLq.query.filter_by(saved_by=IrOQ.id).all() with P4t4.app_context(): L03z = fAyN(path=jzdc[0].path, url=jzdc[0].url, location=jzdc[0].location, title=jzdc[0].title, excerpt=jzdc[0].excerpt, image=jzdc[0].image, source=jzd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UnmW(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n jzdc = wHLq.query.filter_by(saved_by=IrOQ.id).all()\n mv1M.signup(username='testuser2', password='PASSWORD', location='US-FL')\n NCls.session.commit()\n KoVS = mv1M.query.filter_by(username='testuser2').one()\n with P4t4.a...
[ "0.7399259", "0.7111708", "0.70298916", "0.69399166", "0.67694587", "0.67291105", "0.67022", "0.6637124", "0.6637124", "0.6610007", "0.65476483", "0.65366125", "0.6530042", "0.65098774", "0.6509555", "0.64837223", "0.64598477", "0.64592874", "0.64531237", "0.6449709", "0.6392...
0.73646975
1
Test wrong user saved article POST route w/ logged in user.
def jjzY(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() jzdc = wHLq.query.filter_by(saved_by=IrOQ.id).all() mv1M.signup(username='testuser2', password='PASSWORD', location='US-FL') NCls.session.commit() KoVS = mv1M.query.filter_by(username='testuser2').one() with P4t4.app_context(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UnmW(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n jzdc = wHLq.query.filter_by(saved_by=IrOQ.id).all()\n mv1M.signup(username='testuser2', password='PASSWORD', location='US-FL')\n NCls.session.commit()\n KoVS = mv1M.query.filter_by(username='testuser2').one()\n with P4t4.a...
[ "0.70764816", "0.68455493", "0.6780872", "0.6766503", "0.66686046", "0.6634975", "0.6631664", "0.659899", "0.65880996", "0.6587624", "0.6540605", "0.65155923", "0.64827955", "0.64679945", "0.6448429", "0.6414598", "0.63951975", "0.63810015", "0.636428", "0.636428", "0.6320789...
0.6744496
4
Test user saved article POST route w/o logged in user.
def UnmW(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() jzdc = wHLq.query.filter_by(saved_by=IrOQ.id).all() mv1M.signup(username='testuser2', password='PASSWORD', location='US-FL') NCls.session.commit() KoVS = mv1M.query.filter_by(username='testuser2').one() with P4t4.app_context(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DKEX(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n jzdc = wHLq.query.filter_by(saved_by=IrOQ.id).all()\n with P4t4.app_context():\n L03z = fAyN(path=jzdc[0].path, url=jzdc[0].url, location=jzdc[0].location, title=jzdc[0].title, excerpt=jzdc[0].excerpt, image=jzdc[0].image, s...
[ "0.7176774", "0.69636154", "0.6927341", "0.6857316", "0.68053246", "0.66379553", "0.66011095", "0.6597171", "0.65928423", "0.6525459", "0.6519771", "0.6519771", "0.6518567", "0.64228773", "0.6413204", "0.6411368", "0.6379105", "0.63685346", "0.6366547", "0.63598216", "0.63367...
0.72546494
0
Test user sort saved articles PATCH route w/o logged in user.
def e68Z(YKHO): with YKHO.client: P6bq = mv1M.query.first() geh0 = YKHO.client.patch(f'/users/${P6bq.username}/saved-articles', follow_redirects=True) YKHO.assertIn(b'Unauthorized.', geh0.data) YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ERMS(YKHO):\n IrOQ = mv1M.query.filter_by(username='testuser').one()\n mv1M.signup(username='testuser2', password='PASSWORD', location='US-FL')\n NCls.session.commit()\n KoVS = mv1M.query.filter_by(username='testuser2').one()\n with YKHO.client as Z9rn:\n with Z9rn.session_transaction() a...
[ "0.7392448", "0.7251366", "0.6369687", "0.61882484", "0.61654633", "0.6017641", "0.60083044", "0.5988215", "0.5965181", "0.5875579", "0.58318573", "0.5822886", "0.58100957", "0.57776326", "0.5772916", "0.57627577", "0.57487935", "0.5746072", "0.57396024", "0.5732534", "0.5724...
0.80012494
0
Test user sort saved article PATCH route w/ logged in user.
def rMus(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() jzdc = wHLq.query.filter_by(saved_by=IrOQ.id).all() with P4t4.app_context(): L03z = fAyN(path=jzdc[0].path, url=jzdc[0].url, location=jzdc[0].location, title=jzdc[0].title, excerpt=jzdc[0].excerpt, image=jzdc[0].image, source=jzd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e68Z(YKHO):\n with YKHO.client:\n P6bq = mv1M.query.first()\n geh0 = YKHO.client.patch(f'/users/${P6bq.username}/saved-articles', follow_redirects=True)\n YKHO.assertIn(b'Unauthorized.', geh0.data)\n YKHO.assertEqual(geh0.status_code, 200)", "def ERMS(YKHO):\n IrOQ = mv1M.qu...
[ "0.7922849", "0.7409088", "0.66333216", "0.63777864", "0.63361496", "0.6187593", "0.6176324", "0.6110985", "0.60596526", "0.6043125", "0.59926564", "0.5940337", "0.5939828", "0.5930393", "0.5900189", "0.5896901", "0.58950436", "0.5861858", "0.5856839", "0.585185", "0.5805451"...
0.72069687
2
Test wrong user sort saved article PATCH route w/ logged in user.
def ERMS(YKHO): IrOQ = mv1M.query.filter_by(username='testuser').one() mv1M.signup(username='testuser2', password='PASSWORD', location='US-FL') NCls.session.commit() KoVS = mv1M.query.filter_by(username='testuser2').one() with YKHO.client as Z9rn: with Z9rn.session_transaction() as cb_Q: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e68Z(YKHO):\n with YKHO.client:\n P6bq = mv1M.query.first()\n geh0 = YKHO.client.patch(f'/users/${P6bq.username}/saved-articles', follow_redirects=True)\n YKHO.assertIn(b'Unauthorized.', geh0.data)\n YKHO.assertEqual(geh0.status_code, 200)", "def fYfJ(YKHO):\n bD7m = gxEw('p...
[ "0.78071696", "0.6823352", "0.6767462", "0.67212415", "0.6671268", "0.6624037", "0.64513713", "0.6433423", "0.6410915", "0.63829714", "0.63579154", "0.6323414", "0.63207364", "0.6315069", "0.6290836", "0.6236841", "0.6210708", "0.6196189", "0.619518", "0.61899686", "0.6172942...
0.7352162
1
This functions checks whether input date string is between input start date string and to end date string
def BQTL(Sek5, A9x0, TW1L, mXDZ='%d-%m-%Y'): import sys from datetime import datetime try: BVzl = datetime.strptime(Sek5, mXDZ).date() f_eo = datetime.strptime(A9x0, mXDZ).date() NTec = datetime.strptime(TW1L, mXDZ).date() if f_eo <= BVzl and BVzl <= NTec: return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BAwd(HK6U, kepv, KhBf):\n if HK6U > KhBf:\n return False\n if HK6U < kepv:\n return False\n return True", "def TY75(aJ2e, yKcO, Os4s):\n WKvO = slWZ(aJ2e)\n return WKvO <= Os4s and WKvO >= yKcO", "def W_lJ(wOXW, PJbu):\n try:\n n9nB = qcWV.fromisoformat(wOXW)\n ...
[ "0.7849753", "0.76580286", "0.7656711", "0.7211986", "0.6976649", "0.69418436", "0.691801", "0.69140196", "0.69043565", "0.6786955", "0.67546314", "0.67459905", "0.65896416", "0.64261085", "0.6395907", "0.6371844", "0.6310035", "0.6307657", "0.6269493", "0.6245867", "0.624581...
0.8025939
0
Saves a plot object with showing message
def CqeB(QrM1, pmON, SVgs=True, Msmm=True, wN2A=True): if SVgs: print('Saving to {}'.format(pmON)) if Msmm: QrM1.savefig(pmON, bbox_inches='tight', pad_inches=0) else: QrM1.savefig(pmON) if wN2A: print('')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a2vR(YKHO):\n pass", "def Zcbg(YKHO, tvqc):\n taDu = 'PNG (*.png)|*.png'\n beBk = lnPd.FileDialog(YKHO, message='Save plot as...', defaultDir=Hy7s.getcwd(), defaultFile='plot.png', wildcard=taDu, style=lnPd.SAVE)\n if beBk.ShowModal() == lnPd.ID_OK:\n pmON = beBk.GetPath()\n YKHO.ca...
[ "0.8497265", "0.73613065", "0.69812757", "0.6870931", "0.68566364", "0.6796502", "0.675206", "0.6715448", "0.6700636", "0.66601396", "0.6648489", "0.6620172", "0.65819126", "0.6570276", "0.6540196", "0.6502102", "0.6489511", "0.6487128", "0.64746606", "0.64494145", "0.6419864...
0.6399153
23
Numerically stable version of sigmoid function. Taken from Assignment 2.
def Ccnu(WKvO): hlel = oyIN.zeros(WKvO.shape) uYDe = WKvO >= 0 D1zF = WKvO < 0 hlel[uYDe] = 1 / (1 + oyIN.exp(-WKvO[uYDe])) hlel[D1zF] = oyIN.divide(oyIN.exp(WKvO[D1zF]), 1 + oyIN.exp(WKvO[D1zF])) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))", "def m1Hg(WKvO):\n return ...
[ "0.85846925", "0.85715055", "0.85715055", "0.8533385", "0.85272235", "0.8518283", "0.8518283", "0.84872323", "0.84872323", "0.84872323", "0.84872323", "0.84872323", "0.84872323", "0.84648824", "0.846446", "0.84491193", "0.84464", "0.84268767", "0.8426077", "0.8422556", "0.841...
0.77025676
98
Calculates affine transformations of sigmoid
def NqIk(sFFK, r8hN=10, Z9rn=3): if type(sFFK) != oyIN.ndarray: WKvO = oyIN.array([sFFK]) else: WKvO = sFFK WKvO = EjtT(WKvO, r8hN, Z9rn) hlel = Ccnu(WKvO) if type(sFFK) != oyIN.ndarray: return hlel[0] else: return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VSk8(WKvO):\n return WKvO * 0.5 + 0.5", "def jEQD(WKvO, yzQ0, Fg_i):\n jzdc, A45l = Fav1(WKvO, yzQ0, Fg_i)\n yvT9, iSgk = Kgre(jzdc)\n wyyA = (A45l, iSgk)\n return (yvT9, wyyA)", "def lqfo(WKvO):\n return (WKvO - 0.5) * 2.0", "def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5)...
[ "0.728688", "0.71955705", "0.7104531", "0.7080513", "0.7071187", "0.707076", "0.69978404", "0.6977138", "0.6977138", "0.69714606", "0.69714606", "0.69714606", "0.69714606", "0.69714606", "0.69714606", "0.696388", "0.69501716", "0.6949755", "0.69190335", "0.6909729", "0.689043...
0.7332949
0
Calculates the integral e^{x^2} f(x) dx numerically.
def AMTy(eHNT, tjON, r8hN, Z9rn): LTIa, _mSQ = oyIN.polynomial.hermite.hermgauss(tjON) Ynj4 = eHNT(LTIa, m=r8hN, c=Z9rn) vuvg = oyIN.sum(Ynj4 * _mSQ) return vuvg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EmyI(WKvO):\n return WKvO ** 2 + 2 * WKvO + 1", "def HyQz(YKHO, LVAh):\n return EuFP.quad_vec(lambda WKvO: WKvO ** 2.0 * oyIN.sqrt(WKvO ** 2.0 + LVAh ** 2.0) / (oyIN.exp(WKvO) + 1.0), 0.0, 500.0)[0]", "def FaRZ(WKvO):\n KMvS = 0.577215665\n return -KMvS - B_0t(WKvO, 1) - oyIN.log(WKvO)", "def...
[ "0.66732836", "0.64203036", "0.6069754", "0.6052687", "0.6024172", "0.59957707", "0.5964896", "0.591946", "0.58927697", "0.58796", "0.58796", "0.58104354", "0.5767218", "0.57546866", "0.5744972", "0.5728148", "0.57104796", "0.56900185", "0.5668421", "0.56031543", "0.558352", ...
0.0
-1
Returns KE from the momentum vector
def c9rx(XP5J, NXpY=1): XP5J = XP5J.flatten() return NXpY * 0.5 * oyIN.sum(oyIN.multiply(XP5J, XP5J))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VEAL(G1Hx):\n lz9e = 9.7846113e-07\n EI9L = 12.263868\n ut5U = (-1.0 + oyIN.sqrt(1.0 + 4.0 * lz9e * EI9L ** 2 * G1Hx ** 2)) / (2.0 * lz9e)\n return ut5U", "def DNaa(Oa10, G1Hx):\n ut5U = -2 * Oa10 * oyIN.cos(G1Hx)\n return ut5U", "def vrXm(ut5U):\n if oyIN.min(ut5U) >= 100:\n re...
[ "0.71807945", "0.70496315", "0.6939545", "0.68826014", "0.6822304", "0.6754371", "0.6718966", "0.6524951", "0.6509311", "0.64933944", "0.6420543", "0.64157987", "0.6399082", "0.6347327", "0.6341967", "0.629807", "0.6265332", "0.6226262", "0.6220273", "0.6191231", "0.61510354"...
0.0
-1
return sizes of output queues.
def xTr9(YKHO): Aofo = [] for vexM in YKHO.outqueues: Aofo.append(vexM.qsize()) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xTr9(YKHO):\n Aofo = []\n for vexM in YKHO.outqueues:\n Aofo.append(vexM.qsize())\n return Aofo", "def qHmv(YKHO):\n return YKHO._engine.get_all_output_tensors_sizes()", "def aWCD(YKHO):\n return len(YKHO.groups)", "def Sc2R(YKHO):\n OJHV = _OGd('results_dir')\n Ux0P = Hy7s.pa...
[ "0.8995115", "0.7129151", "0.7115764", "0.70966893", "0.69873023", "0.69465595", "0.69439024", "0.6940555", "0.6940555", "0.6940555", "0.6940555", "0.69172883", "0.69172883", "0.69113106", "0.69016397", "0.68971395", "0.6835457", "0.6804229", "0.6777378", "0.66525924", "0.663...
0.9046233
0
close connection with the server.
def quit(YKHO, lo9Y='', *qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO._connection.close()\n print('Closed connection....')", "def zml5(YKHO):\n print('closing connection...')\n YKHO.s.close()\n quit()", "def ngVb(YKHO):\n YKHO.nodesocket.close()", "def ngVb(YKHO):\n YKHO.conn.close()", "def ngVb(YKHO):\n if YKHO.socket:\n ...
[ "0.81794584", "0.8136035", "0.8089123", "0.80348945", "0.8020672", "0.8013639", "0.80051285", "0.7999521", "0.798737", "0.7982346", "0.7982346", "0.7973022", "0.792874", "0.7918277", "0.7892073", "0.7850703", "0.7824399", "0.7824399", "0.7824399", "0.7824399", "0.7824399", ...
0.0
-1
convert markup to IRC bold.
def NkkI(YKHO, RcQu): FUjE = CksM(RcQu, ['\x02', '\x03']) FUjE = ZbWC.sub('\\s+', ' ', RcQu) FUjE = WTsK(FUjE) FUjE = FUjE.replace('\x02', '*') FUjE = FUjE.replace('<b>', '*') FUjE = FUjE.replace('</b>', '*') FUjE = FUjE.replace('<i>', '') FUjE = FUjE.replace('</i>', '') FUjE = FUjE....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ux1P(a3m5):\n for SKux in ZbWC.findall('\\\\*\\\\*.*?\\\\*\\\\*', a3m5, ZbWC.M):\n oYcr = '\\\\textbf{' + ZbWC.findall('\\\\*\\\\*(.*?)\\\\*\\\\*', SKux, ZbWC.M)[0] + '}'\n a3m5 = a3m5.replace(SKux, oYcr)\n for SKux in ZbWC.findall('__.*?__', a3m5, ZbWC.M):\n oYcr = '\\\\textbf{' + Z...
[ "0.6645335", "0.66015893", "0.64435273", "0.6426406", "0.6425068", "0.6345588", "0.61542314", "0.6106281", "0.60682184", "0.6032436", "0.6017657", "0.59722066", "0.5946256", "0.5886245", "0.5838541", "0.583267", "0.57723445", "0.5772097", "0.57436997", "0.57153505", "0.567842...
0.5192131
39
The position of the bins for the histogram based on the current state.
def Pyrc(YKHO): if YKHO.hist_x_min is None or YKHO.hist_x_max is None or YKHO.hist_n_bin is None: return None if YKHO.x_log: return oyIN.logspace(oyIN.log10(YKHO.hist_x_min), oyIN.log10(YKHO.hist_x_max), YKHO.hist_n_bin + 1) elif isinstance(YKHO.hist_x_min, oyIN.datetime64): wBZN = Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pyrc(YKHO):\n if YKHO.hist_x_min is None or YKHO.hist_x_max is None or YKHO.hist_n_bin is None:\n return None\n if YKHO.x_log:\n return oyIN.logspace(oyIN.log10(YKHO.hist_x_min), oyIN.log10(YKHO.hist_x_max), YKHO.hist_n_bin + 1)\n else:\n return oyIN.linspace(YKHO.hist_x_min, YKHO...
[ "0.6661031", "0.6540836", "0.64741886", "0.6455725", "0.6455725", "0.6393859", "0.63581336", "0.6334161", "0.6307209", "0.61829287", "0.61670864", "0.608374", "0.6055638", "0.60100234", "0.59851366", "0.59765875", "0.5963052", "0.59426653", "0.5920312", "0.5918137", "0.588193...
0.64850295
2
Test that the repr method returns an official representation of the object as a string.
def H4zp(YKHO): jI4j = dl5x('Penguin Group', 'New York', 'fiction', 1, 'White Noise', av29('Don', '', 'DeLillo'), "Delillo's White Noise follows narrator Jack Gladney, a professor at a small Liberal Arts college and describes an academic year. Jack teaches at a school called the College-on-the-Hill, where he serves...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4zp(YKHO):\n Vo9x = yp3N()\n repr(Vo9x)", "def H4zp():\n Z9rn = Lr0q(4)\n assert Z9rn.__repr__() == 'Circle(4)'", "def IAm3(Iup5):\n return repr(Iup5)", "def H4zp(YKHO):\n YKHO.assertEqual(repr(YKHO.card), 'A of Spades')", "def repr(WKvO) -> FgBH:\n pass", "def H4zp(YKHO):\n ...
[ "0.8037619", "0.7992412", "0.7988347", "0.7737927", "0.76742977", "0.7670939", "0.7617808", "0.7584389", "0.75466436", "0.7544901", "0.7543479", "0.7535306", "0.7476006", "0.7457964", "0.7454906", "0.74449784", "0.74011624", "0.7344937", "0.7343532", "0.73381126", "0.7324486"...
0.7562513
8
Returns the largest test statistic seen during simulations.
def WkTF(YKHO): return max(YKHO.test_stats)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFFy(YKHO, QOe9):\n return", "def Znzv(QybJ):\n return oyIN.array(QybJ).max(axis=0)", "def max(YKHO):\n return max(YKHO.sample)", "def eVBu(YKHO):\n return YKHO.max_simsecs_value", "def PCuY(YKHO):\n return YKHO.maximise_aquisition(YKHO.expected_improvement)", "def Dy1r(YKHO):\n Mgd...
[ "0.71215695", "0.64967453", "0.64642525", "0.6404307", "0.6377231", "0.63149863", "0.62553626", "0.62291723", "0.6219297", "0.6210953", "0.6198376", "0.6198376", "0.6198376", "0.6198376", "0.6198376", "0.6198376", "0.6178518", "0.6176318", "0.61617124", "0.6131281", "0.612617...
0.7995712
0
Get file name from path or URL.
def FYKK(eHNT): return eHNT[eHNT.rfind('/') + 1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g_2H(pmON):\n return Hy7s.path.basename(pmON)", "def yFjF(pmON):\n return pmON.split('/')[-1]", "def g_2H(pmON: str) -> str:\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]", "def gIsw(pmON):\n return Hy7s.path.basename(pmON).split('.')[0]", "def Ooqe(pmON):\n return pmON.split(...
[ "0.83026415", "0.80025476", "0.79701763", "0.793759", "0.78346217", "0.7797902", "0.77886164", "0.7755772", "0.77403927", "0.77323234", "0.7596781", "0.75798994", "0.7536698", "0.7515717", "0.7494808", "0.74541545", "0.7425901", "0.7408403", "0.7400185", "0.7398898", "0.73831...
0.0
-1
Render the main page
def Ozko(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ozko():\n return TvZl('main_page.html')", "def b8V_():\n return TvZl('main.html')", "def b8V_():\n return TvZl('main.html')", "def b8V_():\n B2Dn = xhTS()\n DumB = UlWi(B2Dn)\n SV4W = CDCC()\n QpfX = {'current_page': B2Dn, 'total_pages': SV4W, 'items': DumB}\n return TvZl('index.h...
[ "0.82781464", "0.7775523", "0.7775523", "0.7712574", "0.7690664", "0.7571747", "0.7568287", "0.75666183", "0.7554107", "0.75477314", "0.7508612", "0.74583364", "0.7413243", "0.7413243", "0.73617375", "0.732339", "0.732339", "0.7316146", "0.72481865", "0.7230807", "0.720924", ...
0.8103563
1
generate 10 char random string
def wRip(): Aofo = '' for YRbF in range(1, 11): Aofo += str(int(9 * tuKI.random()) + 1)[0] return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))", "def _yz_(gzVs=10):\n U5bT = ''\n for YRbF in range(gzVs):\n U5bT += tuKI.choice(vIwR.ascii_letters + vIwR.digits)\n return U5bT", "def uAxD() -> str:\n w7kn = tuKI.randint(8, 20)\n ...
[ "0.8173635", "0.7999708", "0.79775035", "0.79560435", "0.79028094", "0.78892934", "0.7889082", "0.7856121", "0.7818488", "0.7791472", "0.7777588", "0.77717924", "0.77635163", "0.77627087", "0.7739786", "0.77337325", "0.7718114", "0.7682214", "0.76815695", "0.76779777", "0.763...
0.0
-1
Calculates the PROGREV column. Note that TOTREV2 is taken from 990EZ part I, 9, while TOTREV is calculated from the expense and income subtotals. This is the only column like this, and usually any discrepencies between stated and calculated values are tested in the validation steps. However, it was always done this way...
def NEZ9(YKHO, aVwc): return aVwc['EXPS'] + aVwc['NETINC']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iTO5(HwPl, dym2):\n jTes = (HwPl + dym2 == 2).sum()\n G9Fx = sum([1 if dhQp == 1 and HwPl[YRbF] == 0 else 0 for YRbF, dhQp in enumerate(dym2.values)])\n rhd_ = float(jTes / (jTes + G9Fx))\n AOzf = float(jTes / HwPl.sum())\n if rhd_ == 0:\n nK5p = 0\n else:\n nK5p = float(2 * (rh...
[ "0.5233093", "0.5203486", "0.51458496", "0.51440907", "0.50617236", "0.5038878", "0.5017143", "0.49467668", "0.49305633", "0.48918483", "0.47984198", "0.47847646", "0.4761369", "0.4751597", "0.47405678", "0.4718419", "0.47177008", "0.47128147", "0.47058326", "0.47043058", "0....
0.44060236
61
Opens a new database connection if there is none yet for the current application context.
def GGod(): if not hasattr(Oa1e, 'sqlite_db'): Oa1e.sqlite_db = _uJw() return Oa1e.sqlite_db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db", "def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)", "def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)", "def W...
[ "0.7737639", "0.7582971", "0.73180443", "0.71693045", "0.70220166", "0.6966687", "0.6954785", "0.69486743", "0.6897534", "0.6842663", "0.68292314", "0.68191963", "0.680592", "0.67950195", "0.67697805", "0.6762173", "0.6751266", "0.6746273", "0.67316663", "0.670031", "0.668866...
0.63833284
97
r"""__init__(self, D, NP, nFES, A, r, Qmin, Qmax, benchmark).
def FIMM(YKHO, lWPh, NKNl, nPMm, k0lF, Mkmy, PCR3, T2bq, T1WL): YKHO.benchmark = Fm8B().get_benchmark(T1WL) YKHO.D = lWPh YKHO.NP = NKNl YKHO.nFES = nPMm YKHO.A = k0lF YKHO.r = Mkmy YKHO.Qmin = PCR3 YKHO.Qmax = T2bq YKHO.Lower = YKHO.benchmark.Lower YKHO.Upper = YKHO.benchmark.Up...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, lWPh, NKNl, nPMm, _Jz5, ev62, SL2f, **B2fa):\n YKHO.D = lWPh\n YKHO.NP = NKNl\n YKHO.nFES = nPMm\n YKHO.nRuns = _Jz5\n YKHO.useAlgorithms = ev62\n YKHO.useBenchmarks = SL2f\n YKHO.A = B2fa.get('A', 0.5)\n YKHO.r = B2fa.get('r', 0.5)\n YKHO.Qmin = B2fa.get('Qmin', 0.0)\n ...
[ "0.833456", "0.73318726", "0.7140078", "0.7128374", "0.69076264", "0.6724363", "0.6678731", "0.66203773", "0.660097", "0.65016097", "0.6476472", "0.64714676", "0.6461092", "0.64531547", "0.64224076", "0.6417313", "0.64146835", "0.63949335", "0.6377039", "0.6350337", "0.634836...
0.8789331
0